1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65 for pngnq 1.1. 4# 5# Report bugs to <stuart.coyle@gmail.com>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 10# Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15# 16# Copyright 2008-2011, Stuart Coyle 17## -------------------- ## 18## M4sh Initialization. ## 19## -------------------- ## 20 21# Be more Bourne compatible 22DUALCASE=1; export DUALCASE # for MKS sh 23if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 24 emulate sh 25 NULLCMD=: 26 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 27 # is contrary to our usage. Disable this feature. 28 alias -g '${1+"$@"}'='"$@"' 29 setopt NO_GLOB_SUBST 30else 31 case `(set -o) 2>/dev/null` in #( 32 *posix*) : 33 set -o posix ;; #( 34 *) : 35 ;; 36esac 37fi 38 39 40as_nl=' 41' 42export as_nl 43# Printing a long string crashes Solaris 7 /usr/bin/printf. 44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 47# Prefer a ksh shell builtin over an external printf program on Solaris, 48# but without wasting forks for bash or zsh. 49if test -z "$BASH_VERSION$ZSH_VERSION" \ 50 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 51 as_echo='print -r --' 52 as_echo_n='print -rn --' 53elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 54 as_echo='printf %s\n' 55 as_echo_n='printf %s' 56else 57 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 58 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 59 as_echo_n='/usr/ucb/echo -n' 60 else 61 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 62 as_echo_n_body='eval 63 arg=$1; 64 case $arg in #( 65 *"$as_nl"*) 66 expr "X$arg" : "X\\(.*\\)$as_nl"; 67 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 68 esac; 69 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 70 ' 71 export as_echo_n_body 72 as_echo_n='sh -c $as_echo_n_body as_echo' 73 fi 74 export as_echo_body 75 as_echo='sh -c $as_echo_body as_echo' 76fi 77 78# The user is always right. 79if test "${PATH_SEPARATOR+set}" != set; then 80 PATH_SEPARATOR=: 81 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 82 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 83 PATH_SEPARATOR=';' 84 } 85fi 86 87 88# IFS 89# We need space, tab and new line, in precisely that order. Quoting is 90# there to prevent editors from complaining about space-tab. 91# (If _AS_PATH_WALK were called with IFS unset, it would disable word 92# splitting by setting IFS to empty value.) 93IFS=" "" $as_nl" 94 95# Find who we are. Look in the path if we contain no directory separator. 96case $0 in #(( 97 *[\\/]* ) as_myself=$0 ;; 98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 99for as_dir in $PATH 100do 101 IFS=$as_save_IFS 102 test -z "$as_dir" && as_dir=. 103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 104 done 105IFS=$as_save_IFS 106 107 ;; 108esac 109# We did not find ourselves, most probably we were run as `sh COMMAND' 110# in which case we are not to be found in the path. 111if test "x$as_myself" = x; then 112 as_myself=$0 113fi 114if test ! -f "$as_myself"; then 115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 116 exit 1 117fi 118 119# Unset variables that we do not need and which cause bugs (e.g. in 120# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 121# suppresses any "Segmentation fault" message there. '((' could 122# trigger a bug in pdksh 5.2.14. 123for as_var in BASH_ENV ENV MAIL MAILPATH 124do eval test x\${$as_var+set} = xset \ 125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 126done 127PS1='$ ' 128PS2='> ' 129PS4='+ ' 130 131# NLS nuisances. 132LC_ALL=C 133export LC_ALL 134LANGUAGE=C 135export LANGUAGE 136 137# CDPATH. 138(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 139 140if test "x$CONFIG_SHELL" = x; then 141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 142 emulate sh 143 NULLCMD=: 144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 145 # is contrary to our usage. Disable this feature. 146 alias -g '\${1+\"\$@\"}'='\"\$@\"' 147 setopt NO_GLOB_SUBST 148else 149 case \`(set -o) 2>/dev/null\` in #( 150 *posix*) : 151 set -o posix ;; #( 152 *) : 153 ;; 154esac 155fi 156" 157 as_required="as_fn_return () { (exit \$1); } 158as_fn_success () { as_fn_return 0; } 159as_fn_failure () { as_fn_return 1; } 160as_fn_ret_success () { return 0; } 161as_fn_ret_failure () { return 1; } 162 163exitcode=0 164as_fn_success || { exitcode=1; echo as_fn_success failed.; } 165as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 166as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 167as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 168if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 169 170else 171 exitcode=1; echo positional parameters were not saved. 172fi 173test x\$exitcode = x0 || exit 1" 174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 178test \$(( 1 + 1 )) = 2 || exit 1" 179 if (eval "$as_required") 2>/dev/null; then : 180 as_have_required=yes 181else 182 as_have_required=no 183fi 184 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 185 186else 187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 188as_found=false 189for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 190do 191 IFS=$as_save_IFS 192 test -z "$as_dir" && as_dir=. 193 as_found=: 194 case $as_dir in #( 195 /*) 196 for as_base in sh bash ksh sh5; do 197 # Try only shells that exist, to save several forks. 198 as_shell=$as_dir/$as_base 199 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 200 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 201 CONFIG_SHELL=$as_shell as_have_required=yes 202 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 203 break 2 204fi 205fi 206 done;; 207 esac 208 as_found=false 209done 210$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 211 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 212 CONFIG_SHELL=$SHELL as_have_required=yes 213fi; } 214IFS=$as_save_IFS 215 216 217 if test "x$CONFIG_SHELL" != x; then : 218 # We cannot yet assume a decent shell, so we have to provide a 219 # neutralization value for shells without unset; and this also 220 # works around shells that cannot unset nonexistent variables. 221 BASH_ENV=/dev/null 222 ENV=/dev/null 223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224 export CONFIG_SHELL 225 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 226fi 227 228 if test x$as_have_required = xno; then : 229 $as_echo "$0: This script requires a shell more modern than all" 230 $as_echo "$0: the shells that I found on your system." 231 if test x${ZSH_VERSION+set} = xset ; then 232 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 233 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 234 else 235 $as_echo "$0: Please tell bug-autoconf@gnu.org and 236$0: stuart.coyle@gmail.com about your system, including any 237$0: error possibly output before this message. Then install 238$0: a modern shell, or manually run the script under such a 239$0: shell if you do have one." 240 fi 241 exit 1 242fi 243fi 244fi 245SHELL=${CONFIG_SHELL-/bin/sh} 246export SHELL 247# Unset more variables known to interfere with behavior of common tools. 248CLICOLOR_FORCE= GREP_OPTIONS= 249unset CLICOLOR_FORCE GREP_OPTIONS 250 251## --------------------- ## 252## M4sh Shell Functions. ## 253## --------------------- ## 254# as_fn_unset VAR 255# --------------- 256# Portably unset VAR. 257as_fn_unset () 258{ 259 { eval $1=; unset $1;} 260} 261as_unset=as_fn_unset 262 263# as_fn_set_status STATUS 264# ----------------------- 265# Set $? to STATUS, without forking. 266as_fn_set_status () 267{ 268 return $1 269} # as_fn_set_status 270 271# as_fn_exit STATUS 272# ----------------- 273# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 274as_fn_exit () 275{ 276 set +e 277 as_fn_set_status $1 278 exit $1 279} # as_fn_exit 280 281# as_fn_mkdir_p 282# ------------- 283# Create "$as_dir" as a directory, including parents if necessary. 284as_fn_mkdir_p () 285{ 286 287 case $as_dir in #( 288 -*) as_dir=./$as_dir;; 289 esac 290 test -d "$as_dir" || eval $as_mkdir_p || { 291 as_dirs= 292 while :; do 293 case $as_dir in #( 294 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 295 *) as_qdir=$as_dir;; 296 esac 297 as_dirs="'$as_qdir' $as_dirs" 298 as_dir=`$as_dirname -- "$as_dir" || 299$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 300 X"$as_dir" : 'X\(//\)[^/]' \| \ 301 X"$as_dir" : 'X\(//\)$' \| \ 302 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 303$as_echo X"$as_dir" | 304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 305 s//\1/ 306 q 307 } 308 /^X\(\/\/\)[^/].*/{ 309 s//\1/ 310 q 311 } 312 /^X\(\/\/\)$/{ 313 s//\1/ 314 q 315 } 316 /^X\(\/\).*/{ 317 s//\1/ 318 q 319 } 320 s/.*/./; q'` 321 test -d "$as_dir" && break 322 done 323 test -z "$as_dirs" || eval "mkdir $as_dirs" 324 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 325 326 327} # as_fn_mkdir_p 328# as_fn_append VAR VALUE 329# ---------------------- 330# Append the text in VALUE to the end of the definition contained in VAR. Take 331# advantage of any shell optimizations that allow amortized linear growth over 332# repeated appends, instead of the typical quadratic growth present in naive 333# implementations. 334if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 335 eval 'as_fn_append () 336 { 337 eval $1+=\$2 338 }' 339else 340 as_fn_append () 341 { 342 eval $1=\$$1\$2 343 } 344fi # as_fn_append 345 346# as_fn_arith ARG... 347# ------------------ 348# Perform arithmetic evaluation on the ARGs, and store the result in the 349# global $as_val. Take advantage of shells that can avoid forks. The arguments 350# must be portable across $(()) and expr. 351if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 352 eval 'as_fn_arith () 353 { 354 as_val=$(( $* )) 355 }' 356else 357 as_fn_arith () 358 { 359 as_val=`expr "$@" || test $? -eq 1` 360 } 361fi # as_fn_arith 362 363 364# as_fn_error ERROR [LINENO LOG_FD] 365# --------------------------------- 366# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 367# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 368# script with status $?, using 1 if that was 0. 369as_fn_error () 370{ 371 as_status=$?; test $as_status -eq 0 && as_status=1 372 if test "$3"; then 373 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 374 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 375 fi 376 $as_echo "$as_me: error: $1" >&2 377 as_fn_exit $as_status 378} # as_fn_error 379 380if expr a : '\(a\)' >/dev/null 2>&1 && 381 test "X`expr 00001 : '.*\(...\)'`" = X001; then 382 as_expr=expr 383else 384 as_expr=false 385fi 386 387if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 388 as_basename=basename 389else 390 as_basename=false 391fi 392 393if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 394 as_dirname=dirname 395else 396 as_dirname=false 397fi 398 399as_me=`$as_basename -- "$0" || 400$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 401 X"$0" : 'X\(//\)$' \| \ 402 X"$0" : 'X\(/\)' \| . 2>/dev/null || 403$as_echo X/"$0" | 404 sed '/^.*\/\([^/][^/]*\)\/*$/{ 405 s//\1/ 406 q 407 } 408 /^X\/\(\/\/\)$/{ 409 s//\1/ 410 q 411 } 412 /^X\/\(\/\).*/{ 413 s//\1/ 414 q 415 } 416 s/.*/./; q'` 417 418# Avoid depending upon Character Ranges. 419as_cr_letters='abcdefghijklmnopqrstuvwxyz' 420as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 421as_cr_Letters=$as_cr_letters$as_cr_LETTERS 422as_cr_digits='0123456789' 423as_cr_alnum=$as_cr_Letters$as_cr_digits 424 425 426 as_lineno_1=$LINENO as_lineno_1a=$LINENO 427 as_lineno_2=$LINENO as_lineno_2a=$LINENO 428 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 429 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 430 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 431 sed -n ' 432 p 433 /[$]LINENO/= 434 ' <$as_myself | 435 sed ' 436 s/[$]LINENO.*/&-/ 437 t lineno 438 b 439 :lineno 440 N 441 :loop 442 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 443 t loop 444 s/-\n.*// 445 ' >$as_me.lineno && 446 chmod +x "$as_me.lineno" || 447 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 448 449 # Don't try to exec as it changes $[0], causing all sort of problems 450 # (the dirname of $[0] is not the place where we might find the 451 # original and so on. Autoconf is especially sensitive to this). 452 . "./$as_me.lineno" 453 # Exit status is that of the last command. 454 exit 455} 456 457ECHO_C= ECHO_N= ECHO_T= 458case `echo -n x` in #((((( 459-n*) 460 case `echo 'xy\c'` in 461 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 462 xy) ECHO_C='\c';; 463 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 464 ECHO_T=' ';; 465 esac;; 466*) 467 ECHO_N='-n';; 468esac 469 470rm -f conf$$ conf$$.exe conf$$.file 471if test -d conf$$.dir; then 472 rm -f conf$$.dir/conf$$.file 473else 474 rm -f conf$$.dir 475 mkdir conf$$.dir 2>/dev/null 476fi 477if (echo >conf$$.file) 2>/dev/null; then 478 if ln -s conf$$.file conf$$ 2>/dev/null; then 479 as_ln_s='ln -s' 480 # ... but there are two gotchas: 481 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 482 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 483 # In both cases, we have to default to `cp -p'. 484 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 485 as_ln_s='cp -p' 486 elif ln conf$$.file conf$$ 2>/dev/null; then 487 as_ln_s=ln 488 else 489 as_ln_s='cp -p' 490 fi 491else 492 as_ln_s='cp -p' 493fi 494rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 495rmdir conf$$.dir 2>/dev/null 496 497if mkdir -p . 2>/dev/null; then 498 as_mkdir_p='mkdir -p "$as_dir"' 499else 500 test -d ./-p && rmdir ./-p 501 as_mkdir_p=false 502fi 503 504if test -x / >/dev/null 2>&1; then 505 as_test_x='test -x' 506else 507 if ls -dL / >/dev/null 2>&1; then 508 as_ls_L_option=L 509 else 510 as_ls_L_option= 511 fi 512 as_test_x=' 513 eval sh -c '\'' 514 if test -d "$1"; then 515 test -d "$1/."; 516 else 517 case $1 in #( 518 -*)set "./$1";; 519 esac; 520 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 521 ???[sx]*):;;*)false;;esac;fi 522 '\'' sh 523 ' 524fi 525as_executable_p=$as_test_x 526 527# Sed expression to map a string onto a valid CPP name. 528as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 529 530# Sed expression to map a string onto a valid variable name. 531as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 532 533 534test -n "$DJDIR" || exec 7<&0 </dev/null 535exec 6>&1 536 537# Name of the host. 538# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 539# so uname gets run too. 540ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 541 542# 543# Initializations. 544# 545ac_default_prefix=/usr/local 546ac_clean_files= 547ac_config_libobj_dir=. 548LIBOBJS= 549cross_compiling=no 550subdirs= 551MFLAGS= 552MAKEFLAGS= 553 554# Identity of this package. 555PACKAGE_NAME='pngnq' 556PACKAGE_TARNAME='pngnq' 557PACKAGE_VERSION='1.1' 558PACKAGE_STRING='pngnq 1.1' 559PACKAGE_BUGREPORT='stuart.coyle@gmail.com' 560PACKAGE_URL='' 561 562# Factoring default headers for most tests. 563ac_includes_default="\ 564#include <stdio.h> 565#ifdef HAVE_SYS_TYPES_H 566# include <sys/types.h> 567#endif 568#ifdef HAVE_SYS_STAT_H 569# include <sys/stat.h> 570#endif 571#ifdef STDC_HEADERS 572# include <stdlib.h> 573# include <stddef.h> 574#else 575# ifdef HAVE_STDLIB_H 576# include <stdlib.h> 577# endif 578#endif 579#ifdef HAVE_STRING_H 580# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 581# include <memory.h> 582# endif 583# include <string.h> 584#endif 585#ifdef HAVE_STRINGS_H 586# include <strings.h> 587#endif 588#ifdef HAVE_INTTYPES_H 589# include <inttypes.h> 590#endif 591#ifdef HAVE_STDINT_H 592# include <stdint.h> 593#endif 594#ifdef HAVE_UNISTD_H 595# include <unistd.h> 596#endif" 597 598ac_subst_vars='am__EXEEXT_FALSE 599am__EXEEXT_TRUE 600LTLIBOBJS 601USE_FREEGETOPT_FALSE 602USE_FREEGETOPT_TRUE 603PNG_LIBS 604PNG_CFLAGS 605PKG_CONFIG 606LIBOBJS 607EGREP 608GREP 609CPP 610am__fastdepCC_FALSE 611am__fastdepCC_TRUE 612CCDEPMODE 613AMDEPBACKSLASH 614AMDEP_FALSE 615AMDEP_TRUE 616am__quote 617am__include 618DEPDIR 619OBJEXT 620EXEEXT 621ac_ct_CC 622CPPFLAGS 623LDFLAGS 624CFLAGS 625CC 626HAS_LIBPNG_CONFIG 627am__untar 628am__tar 629AMTAR 630am__leading_dot 631SET_MAKE 632AWK 633mkdir_p 634MKDIR_P 635INSTALL_STRIP_PROGRAM 636STRIP 637install_sh 638MAKEINFO 639AUTOHEADER 640AUTOMAKE 641AUTOCONF 642ACLOCAL 643VERSION 644PACKAGE 645CYGPATH_W 646am__isrc 647INSTALL_DATA 648INSTALL_SCRIPT 649INSTALL_PROGRAM 650target_alias 651host_alias 652build_alias 653LIBS 654ECHO_T 655ECHO_N 656ECHO_C 657DEFS 658mandir 659localedir 660libdir 661psdir 662pdfdir 663dvidir 664htmldir 665infodir 666docdir 667oldincludedir 668includedir 669localstatedir 670sharedstatedir 671sysconfdir 672datadir 673datarootdir 674libexecdir 675sbindir 676bindir 677program_transform_name 678prefix 679exec_prefix 680PACKAGE_URL 681PACKAGE_BUGREPORT 682PACKAGE_STRING 683PACKAGE_VERSION 684PACKAGE_TARNAME 685PACKAGE_NAME 686PATH_SEPARATOR 687SHELL' 688ac_subst_files='' 689ac_user_opts=' 690enable_option_checking 691enable_dependency_tracking 692' 693 ac_precious_vars='build_alias 694host_alias 695target_alias 696CC 697CFLAGS 698LDFLAGS 699LIBS 700CPPFLAGS 701CPP 702PKG_CONFIG 703PNG_CFLAGS 704PNG_LIBS' 705 706 707# Initialize some variables set by options. 708ac_init_help= 709ac_init_version=false 710ac_unrecognized_opts= 711ac_unrecognized_sep= 712# The variables have the same names as the options, with 713# dashes changed to underlines. 714cache_file=/dev/null 715exec_prefix=NONE 716no_create= 717no_recursion= 718prefix=NONE 719program_prefix=NONE 720program_suffix=NONE 721program_transform_name=s,x,x, 722silent= 723site= 724srcdir= 725verbose= 726x_includes=NONE 727x_libraries=NONE 728 729# Installation directory options. 730# These are left unexpanded so users can "make install exec_prefix=/foo" 731# and all the variables that are supposed to be based on exec_prefix 732# by default will actually change. 733# Use braces instead of parens because sh, perl, etc. also accept them. 734# (The list follows the same order as the GNU Coding Standards.) 735bindir='${exec_prefix}/bin' 736sbindir='${exec_prefix}/sbin' 737libexecdir='${exec_prefix}/libexec' 738datarootdir='${prefix}/share' 739datadir='${datarootdir}' 740sysconfdir='${prefix}/etc' 741sharedstatedir='${prefix}/com' 742localstatedir='${prefix}/var' 743includedir='${prefix}/include' 744oldincludedir='/usr/include' 745docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 746infodir='${datarootdir}/info' 747htmldir='${docdir}' 748dvidir='${docdir}' 749pdfdir='${docdir}' 750psdir='${docdir}' 751libdir='${exec_prefix}/lib' 752localedir='${datarootdir}/locale' 753mandir='${datarootdir}/man' 754 755ac_prev= 756ac_dashdash= 757for ac_option 758do 759 # If the previous option needs an argument, assign it. 760 if test -n "$ac_prev"; then 761 eval $ac_prev=\$ac_option 762 ac_prev= 763 continue 764 fi 765 766 case $ac_option in 767 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 768 *) ac_optarg=yes ;; 769 esac 770 771 # Accept the important Cygnus configure options, so we can diagnose typos. 772 773 case $ac_dashdash$ac_option in 774 --) 775 ac_dashdash=yes ;; 776 777 -bindir | --bindir | --bindi | --bind | --bin | --bi) 778 ac_prev=bindir ;; 779 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 780 bindir=$ac_optarg ;; 781 782 -build | --build | --buil | --bui | --bu) 783 ac_prev=build_alias ;; 784 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 785 build_alias=$ac_optarg ;; 786 787 -cache-file | --cache-file | --cache-fil | --cache-fi \ 788 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 789 ac_prev=cache_file ;; 790 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 791 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 792 cache_file=$ac_optarg ;; 793 794 --config-cache | -C) 795 cache_file=config.cache ;; 796 797 -datadir | --datadir | --datadi | --datad) 798 ac_prev=datadir ;; 799 -datadir=* | --datadir=* | --datadi=* | --datad=*) 800 datadir=$ac_optarg ;; 801 802 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 803 | --dataroo | --dataro | --datar) 804 ac_prev=datarootdir ;; 805 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 806 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 807 datarootdir=$ac_optarg ;; 808 809 -disable-* | --disable-*) 810 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 811 # Reject names that are not valid shell variable names. 812 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 813 as_fn_error "invalid feature name: $ac_useropt" 814 ac_useropt_orig=$ac_useropt 815 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 816 case $ac_user_opts in 817 *" 818"enable_$ac_useropt" 819"*) ;; 820 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 821 ac_unrecognized_sep=', ';; 822 esac 823 eval enable_$ac_useropt=no ;; 824 825 -docdir | --docdir | --docdi | --doc | --do) 826 ac_prev=docdir ;; 827 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 828 docdir=$ac_optarg ;; 829 830 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 831 ac_prev=dvidir ;; 832 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 833 dvidir=$ac_optarg ;; 834 835 -enable-* | --enable-*) 836 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 837 # Reject names that are not valid shell variable names. 838 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 839 as_fn_error "invalid feature name: $ac_useropt" 840 ac_useropt_orig=$ac_useropt 841 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 842 case $ac_user_opts in 843 *" 844"enable_$ac_useropt" 845"*) ;; 846 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 847 ac_unrecognized_sep=', ';; 848 esac 849 eval enable_$ac_useropt=\$ac_optarg ;; 850 851 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 852 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 853 | --exec | --exe | --ex) 854 ac_prev=exec_prefix ;; 855 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 856 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 857 | --exec=* | --exe=* | --ex=*) 858 exec_prefix=$ac_optarg ;; 859 860 -gas | --gas | --ga | --g) 861 # Obsolete; use --with-gas. 862 with_gas=yes ;; 863 864 -help | --help | --hel | --he | -h) 865 ac_init_help=long ;; 866 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 867 ac_init_help=recursive ;; 868 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 869 ac_init_help=short ;; 870 871 -host | --host | --hos | --ho) 872 ac_prev=host_alias ;; 873 -host=* | --host=* | --hos=* | --ho=*) 874 host_alias=$ac_optarg ;; 875 876 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 877 ac_prev=htmldir ;; 878 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 879 | --ht=*) 880 htmldir=$ac_optarg ;; 881 882 -includedir | --includedir | --includedi | --included | --include \ 883 | --includ | --inclu | --incl | --inc) 884 ac_prev=includedir ;; 885 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 886 | --includ=* | --inclu=* | --incl=* | --inc=*) 887 includedir=$ac_optarg ;; 888 889 -infodir | --infodir | --infodi | --infod | --info | --inf) 890 ac_prev=infodir ;; 891 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 892 infodir=$ac_optarg ;; 893 894 -libdir | --libdir | --libdi | --libd) 895 ac_prev=libdir ;; 896 -libdir=* | --libdir=* | --libdi=* | --libd=*) 897 libdir=$ac_optarg ;; 898 899 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 900 | --libexe | --libex | --libe) 901 ac_prev=libexecdir ;; 902 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 903 | --libexe=* | --libex=* | --libe=*) 904 libexecdir=$ac_optarg ;; 905 906 -localedir | --localedir | --localedi | --localed | --locale) 907 ac_prev=localedir ;; 908 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 909 localedir=$ac_optarg ;; 910 911 -localstatedir | --localstatedir | --localstatedi | --localstated \ 912 | --localstate | --localstat | --localsta | --localst | --locals) 913 ac_prev=localstatedir ;; 914 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 915 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 916 localstatedir=$ac_optarg ;; 917 918 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 919 ac_prev=mandir ;; 920 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 921 mandir=$ac_optarg ;; 922 923 -nfp | --nfp | --nf) 924 # Obsolete; use --without-fp. 925 with_fp=no ;; 926 927 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 928 | --no-cr | --no-c | -n) 929 no_create=yes ;; 930 931 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 932 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 933 no_recursion=yes ;; 934 935 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 936 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 937 | --oldin | --oldi | --old | --ol | --o) 938 ac_prev=oldincludedir ;; 939 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 940 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 941 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 942 oldincludedir=$ac_optarg ;; 943 944 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 945 ac_prev=prefix ;; 946 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 947 prefix=$ac_optarg ;; 948 949 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 950 | --program-pre | --program-pr | --program-p) 951 ac_prev=program_prefix ;; 952 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 953 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 954 program_prefix=$ac_optarg ;; 955 956 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 957 | --program-suf | --program-su | --program-s) 958 ac_prev=program_suffix ;; 959 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 960 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 961 program_suffix=$ac_optarg ;; 962 963 -program-transform-name | --program-transform-name \ 964 | --program-transform-nam | --program-transform-na \ 965 | --program-transform-n | --program-transform- \ 966 | --program-transform | --program-transfor \ 967 | --program-transfo | --program-transf \ 968 | --program-trans | --program-tran \ 969 | --progr-tra | --program-tr | --program-t) 970 ac_prev=program_transform_name ;; 971 -program-transform-name=* | --program-transform-name=* \ 972 | --program-transform-nam=* | --program-transform-na=* \ 973 | --program-transform-n=* | --program-transform-=* \ 974 | --program-transform=* | --program-transfor=* \ 975 | --program-transfo=* | --program-transf=* \ 976 | --program-trans=* | --program-tran=* \ 977 | --progr-tra=* | --program-tr=* | --program-t=*) 978 program_transform_name=$ac_optarg ;; 979 980 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 981 ac_prev=pdfdir ;; 982 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 983 pdfdir=$ac_optarg ;; 984 985 -psdir | --psdir | --psdi | --psd | --ps) 986 ac_prev=psdir ;; 987 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 988 psdir=$ac_optarg ;; 989 990 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 991 | -silent | --silent | --silen | --sile | --sil) 992 silent=yes ;; 993 994 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 995 ac_prev=sbindir ;; 996 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 997 | --sbi=* | --sb=*) 998 sbindir=$ac_optarg ;; 999 1000 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1001 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1002 | --sharedst | --shareds | --shared | --share | --shar \ 1003 | --sha | --sh) 1004 ac_prev=sharedstatedir ;; 1005 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1006 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1007 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1008 | --sha=* | --sh=*) 1009 sharedstatedir=$ac_optarg ;; 1010 1011 -site | --site | --sit) 1012 ac_prev=site ;; 1013 -site=* | --site=* | --sit=*) 1014 site=$ac_optarg ;; 1015 1016 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1017 ac_prev=srcdir ;; 1018 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1019 srcdir=$ac_optarg ;; 1020 1021 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1022 | --syscon | --sysco | --sysc | --sys | --sy) 1023 ac_prev=sysconfdir ;; 1024 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1025 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1026 sysconfdir=$ac_optarg ;; 1027 1028 -target | --target | --targe | --targ | --tar | --ta | --t) 1029 ac_prev=target_alias ;; 1030 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1031 target_alias=$ac_optarg ;; 1032 1033 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1034 verbose=yes ;; 1035 1036 -version | --version | --versio | --versi | --vers | -V) 1037 ac_init_version=: ;; 1038 1039 -with-* | --with-*) 1040 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1041 # Reject names that are not valid shell variable names. 1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1043 as_fn_error "invalid package name: $ac_useropt" 1044 ac_useropt_orig=$ac_useropt 1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1046 case $ac_user_opts in 1047 *" 1048"with_$ac_useropt" 1049"*) ;; 1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1051 ac_unrecognized_sep=', ';; 1052 esac 1053 eval with_$ac_useropt=\$ac_optarg ;; 1054 1055 -without-* | --without-*) 1056 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1057 # Reject names that are not valid shell variable names. 1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1059 as_fn_error "invalid package name: $ac_useropt" 1060 ac_useropt_orig=$ac_useropt 1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1062 case $ac_user_opts in 1063 *" 1064"with_$ac_useropt" 1065"*) ;; 1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1067 ac_unrecognized_sep=', ';; 1068 esac 1069 eval with_$ac_useropt=no ;; 1070 1071 --x) 1072 # Obsolete; use --with-x. 1073 with_x=yes ;; 1074 1075 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1076 | --x-incl | --x-inc | --x-in | --x-i) 1077 ac_prev=x_includes ;; 1078 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1079 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1080 x_includes=$ac_optarg ;; 1081 1082 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1083 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1084 ac_prev=x_libraries ;; 1085 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1086 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1087 x_libraries=$ac_optarg ;; 1088 1089 -*) as_fn_error "unrecognized option: \`$ac_option' 1090Try \`$0 --help' for more information." 1091 ;; 1092 1093 *=*) 1094 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1095 # Reject names that are not valid shell variable names. 1096 case $ac_envvar in #( 1097 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1098 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1099 esac 1100 eval $ac_envvar=\$ac_optarg 1101 export $ac_envvar ;; 1102 1103 *) 1104 # FIXME: should be removed in autoconf 3.0. 1105 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1106 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1107 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1108 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1109 ;; 1110 1111 esac 1112done 1113 1114if test -n "$ac_prev"; then 1115 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1116 as_fn_error "missing argument to $ac_option" 1117fi 1118 1119if test -n "$ac_unrecognized_opts"; then 1120 case $enable_option_checking in 1121 no) ;; 1122 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1123 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1124 esac 1125fi 1126 1127# Check all directory arguments for consistency. 1128for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1129 datadir sysconfdir sharedstatedir localstatedir includedir \ 1130 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1131 libdir localedir mandir 1132do 1133 eval ac_val=\$$ac_var 1134 # Remove trailing slashes. 1135 case $ac_val in 1136 */ ) 1137 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1138 eval $ac_var=\$ac_val;; 1139 esac 1140 # Be sure to have absolute directory names. 1141 case $ac_val in 1142 [\\/$]* | ?:[\\/]* ) continue;; 1143 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1144 esac 1145 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1146done 1147 1148# There might be people who depend on the old broken behavior: `$host' 1149# used to hold the argument of --host etc. 1150# FIXME: To remove some day. 1151build=$build_alias 1152host=$host_alias 1153target=$target_alias 1154 1155# FIXME: To remove some day. 1156if test "x$host_alias" != x; then 1157 if test "x$build_alias" = x; then 1158 cross_compiling=maybe 1159 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1160 If a cross compiler is detected then cross compile mode will be used." >&2 1161 elif test "x$build_alias" != "x$host_alias"; then 1162 cross_compiling=yes 1163 fi 1164fi 1165 1166ac_tool_prefix= 1167test -n "$host_alias" && ac_tool_prefix=$host_alias- 1168 1169test "$silent" = yes && exec 6>/dev/null 1170 1171 1172ac_pwd=`pwd` && test -n "$ac_pwd" && 1173ac_ls_di=`ls -di .` && 1174ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1175 as_fn_error "working directory cannot be determined" 1176test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1177 as_fn_error "pwd does not report name of working directory" 1178 1179 1180# Find the source files, if location was not specified. 1181if test -z "$srcdir"; then 1182 ac_srcdir_defaulted=yes 1183 # Try the directory containing this script, then the parent directory. 1184 ac_confdir=`$as_dirname -- "$as_myself" || 1185$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1186 X"$as_myself" : 'X\(//\)[^/]' \| \ 1187 X"$as_myself" : 'X\(//\)$' \| \ 1188 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1189$as_echo X"$as_myself" | 1190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1191 s//\1/ 1192 q 1193 } 1194 /^X\(\/\/\)[^/].*/{ 1195 s//\1/ 1196 q 1197 } 1198 /^X\(\/\/\)$/{ 1199 s//\1/ 1200 q 1201 } 1202 /^X\(\/\).*/{ 1203 s//\1/ 1204 q 1205 } 1206 s/.*/./; q'` 1207 srcdir=$ac_confdir 1208 if test ! -r "$srcdir/$ac_unique_file"; then 1209 srcdir=.. 1210 fi 1211else 1212 ac_srcdir_defaulted=no 1213fi 1214if test ! -r "$srcdir/$ac_unique_file"; then 1215 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1216 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1217fi 1218ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1219ac_abs_confdir=`( 1220 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1221 pwd)` 1222# When building in place, set srcdir=. 1223if test "$ac_abs_confdir" = "$ac_pwd"; then 1224 srcdir=. 1225fi 1226# Remove unnecessary trailing slashes from srcdir. 1227# Double slashes in file names in object file debugging info 1228# mess up M-x gdb in Emacs. 1229case $srcdir in 1230*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1231esac 1232for ac_var in $ac_precious_vars; do 1233 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1234 eval ac_env_${ac_var}_value=\$${ac_var} 1235 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1236 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1237done 1238 1239# 1240# Report the --help message. 1241# 1242if test "$ac_init_help" = "long"; then 1243 # Omit some internal or obsolete options to make the list less imposing. 1244 # This message is too long to be a string in the A/UX 3.1 sh. 1245 cat <<_ACEOF 1246\`configure' configures pngnq 1.1 to adapt to many kinds of systems. 1247 1248Usage: $0 [OPTION]... [VAR=VALUE]... 1249 1250To assign environment variables (e.g., CC, CFLAGS...), specify them as 1251VAR=VALUE. See below for descriptions of some of the useful variables. 1252 1253Defaults for the options are specified in brackets. 1254 1255Configuration: 1256 -h, --help display this help and exit 1257 --help=short display options specific to this package 1258 --help=recursive display the short help of all the included packages 1259 -V, --version display version information and exit 1260 -q, --quiet, --silent do not print \`checking...' messages 1261 --cache-file=FILE cache test results in FILE [disabled] 1262 -C, --config-cache alias for \`--cache-file=config.cache' 1263 -n, --no-create do not create output files 1264 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1265 1266Installation directories: 1267 --prefix=PREFIX install architecture-independent files in PREFIX 1268 [$ac_default_prefix] 1269 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1270 [PREFIX] 1271 1272By default, \`make install' will install all the files in 1273\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1274an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1275for instance \`--prefix=\$HOME'. 1276 1277For better control, use the options below. 1278 1279Fine tuning of the installation directories: 1280 --bindir=DIR user executables [EPREFIX/bin] 1281 --sbindir=DIR system admin executables [EPREFIX/sbin] 1282 --libexecdir=DIR program executables [EPREFIX/libexec] 1283 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1284 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1285 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1286 --libdir=DIR object code libraries [EPREFIX/lib] 1287 --includedir=DIR C header files [PREFIX/include] 1288 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1289 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1290 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1291 --infodir=DIR info documentation [DATAROOTDIR/info] 1292 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1293 --mandir=DIR man documentation [DATAROOTDIR/man] 1294 --docdir=DIR documentation root [DATAROOTDIR/doc/pngnq] 1295 --htmldir=DIR html documentation [DOCDIR] 1296 --dvidir=DIR dvi documentation [DOCDIR] 1297 --pdfdir=DIR pdf documentation [DOCDIR] 1298 --psdir=DIR ps documentation [DOCDIR] 1299_ACEOF 1300 1301 cat <<\_ACEOF 1302 1303Program names: 1304 --program-prefix=PREFIX prepend PREFIX to installed program names 1305 --program-suffix=SUFFIX append SUFFIX to installed program names 1306 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1307_ACEOF 1308fi 1309 1310if test -n "$ac_init_help"; then 1311 case $ac_init_help in 1312 short | recursive ) echo "Configuration of pngnq 1.1:";; 1313 esac 1314 cat <<\_ACEOF 1315 1316Optional Features: 1317 --disable-option-checking ignore unrecognized --enable/--with options 1318 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1319 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1320 --disable-dependency-tracking speeds up one-time build 1321 --enable-dependency-tracking do not reject slow dependency extractors 1322 1323Some influential environment variables: 1324 CC C compiler command 1325 CFLAGS C compiler flags 1326 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1327 nonstandard directory <lib dir> 1328 LIBS libraries to pass to the linker, e.g. -l<library> 1329 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1330 you have headers in a nonstandard directory <include dir> 1331 CPP C preprocessor 1332 PKG_CONFIG path to pkg-config utility 1333 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 1334 PNG_LIBS linker flags for PNG, overriding pkg-config 1335 1336Use these variables to override the choices made by `configure' or to help 1337it to find libraries and programs with nonstandard names/locations. 1338 1339Report bugs to <stuart.coyle@gmail.com>. 1340_ACEOF 1341ac_status=$? 1342fi 1343 1344if test "$ac_init_help" = "recursive"; then 1345 # If there are subdirs, report their specific --help. 1346 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1347 test -d "$ac_dir" || 1348 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1349 continue 1350 ac_builddir=. 1351 1352case "$ac_dir" in 1353.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1354*) 1355 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1356 # A ".." for each directory in $ac_dir_suffix. 1357 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1358 case $ac_top_builddir_sub in 1359 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1360 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1361 esac ;; 1362esac 1363ac_abs_top_builddir=$ac_pwd 1364ac_abs_builddir=$ac_pwd$ac_dir_suffix 1365# for backward compatibility: 1366ac_top_builddir=$ac_top_build_prefix 1367 1368case $srcdir in 1369 .) # We are building in place. 1370 ac_srcdir=. 1371 ac_top_srcdir=$ac_top_builddir_sub 1372 ac_abs_top_srcdir=$ac_pwd ;; 1373 [\\/]* | ?:[\\/]* ) # Absolute name. 1374 ac_srcdir=$srcdir$ac_dir_suffix; 1375 ac_top_srcdir=$srcdir 1376 ac_abs_top_srcdir=$srcdir ;; 1377 *) # Relative name. 1378 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1379 ac_top_srcdir=$ac_top_build_prefix$srcdir 1380 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1381esac 1382ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1383 1384 cd "$ac_dir" || { ac_status=$?; continue; } 1385 # Check for guested configure. 1386 if test -f "$ac_srcdir/configure.gnu"; then 1387 echo && 1388 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1389 elif test -f "$ac_srcdir/configure"; then 1390 echo && 1391 $SHELL "$ac_srcdir/configure" --help=recursive 1392 else 1393 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1394 fi || ac_status=$? 1395 cd "$ac_pwd" || { ac_status=$?; break; } 1396 done 1397fi 1398 1399test -n "$ac_init_help" && exit $ac_status 1400if $ac_init_version; then 1401 cat <<\_ACEOF 1402pngnq configure 1.1 1403generated by GNU Autoconf 2.65 1404 1405Copyright (C) 2009 Free Software Foundation, Inc. 1406This configure script is free software; the Free Software Foundation 1407gives unlimited permission to copy, distribute and modify it. 1408 1409Copyright 2008-2011, Stuart Coyle 1410_ACEOF 1411 exit 1412fi 1413 1414## ------------------------ ## 1415## Autoconf initialization. ## 1416## ------------------------ ## 1417 1418# ac_fn_c_try_compile LINENO 1419# -------------------------- 1420# Try to compile conftest.$ac_ext, and return whether this succeeded. 1421ac_fn_c_try_compile () 1422{ 1423 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1424 rm -f conftest.$ac_objext 1425 if { { ac_try="$ac_compile" 1426case "(($ac_try" in 1427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1428 *) ac_try_echo=$ac_try;; 1429esac 1430eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1431$as_echo "$ac_try_echo"; } >&5 1432 (eval "$ac_compile") 2>conftest.err 1433 ac_status=$? 1434 if test -s conftest.err; then 1435 grep -v '^ *+' conftest.err >conftest.er1 1436 cat conftest.er1 >&5 1437 mv -f conftest.er1 conftest.err 1438 fi 1439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1440 test $ac_status = 0; } && { 1441 test -z "$ac_c_werror_flag" || 1442 test ! -s conftest.err 1443 } && test -s conftest.$ac_objext; then : 1444 ac_retval=0 1445else 1446 $as_echo "$as_me: failed program was:" >&5 1447sed 's/^/| /' conftest.$ac_ext >&5 1448 1449 ac_retval=1 1450fi 1451 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1452 as_fn_set_status $ac_retval 1453 1454} # ac_fn_c_try_compile 1455 1456# ac_fn_c_try_cpp LINENO 1457# ---------------------- 1458# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1459ac_fn_c_try_cpp () 1460{ 1461 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1462 if { { ac_try="$ac_cpp conftest.$ac_ext" 1463case "(($ac_try" in 1464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1465 *) ac_try_echo=$ac_try;; 1466esac 1467eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1468$as_echo "$ac_try_echo"; } >&5 1469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1470 ac_status=$? 1471 if test -s conftest.err; then 1472 grep -v '^ *+' conftest.err >conftest.er1 1473 cat conftest.er1 >&5 1474 mv -f conftest.er1 conftest.err 1475 fi 1476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1477 test $ac_status = 0; } >/dev/null && { 1478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1479 test ! -s conftest.err 1480 }; then : 1481 ac_retval=0 1482else 1483 $as_echo "$as_me: failed program was:" >&5 1484sed 's/^/| /' conftest.$ac_ext >&5 1485 1486 ac_retval=1 1487fi 1488 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1489 as_fn_set_status $ac_retval 1490 1491} # ac_fn_c_try_cpp 1492 1493# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1494# ------------------------------------------------------- 1495# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1496# the include files in INCLUDES and setting the cache variable VAR 1497# accordingly. 1498ac_fn_c_check_header_mongrel () 1499{ 1500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1501 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1503$as_echo_n "checking for $2... " >&6; } 1504if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1505 $as_echo_n "(cached) " >&6 1506fi 1507eval ac_res=\$$3 1508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1509$as_echo "$ac_res" >&6; } 1510else 1511 # Is the header compilable? 1512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1513$as_echo_n "checking $2 usability... " >&6; } 1514cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1515/* end confdefs.h. */ 1516$4 1517#include <$2> 1518_ACEOF 1519if ac_fn_c_try_compile "$LINENO"; then : 1520 ac_header_compiler=yes 1521else 1522 ac_header_compiler=no 1523fi 1524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1526$as_echo "$ac_header_compiler" >&6; } 1527 1528# Is the header present? 1529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1530$as_echo_n "checking $2 presence... " >&6; } 1531cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1532/* end confdefs.h. */ 1533#include <$2> 1534_ACEOF 1535if ac_fn_c_try_cpp "$LINENO"; then : 1536 ac_header_preproc=yes 1537else 1538 ac_header_preproc=no 1539fi 1540rm -f conftest.err conftest.$ac_ext 1541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1542$as_echo "$ac_header_preproc" >&6; } 1543 1544# So? What about this header? 1545case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1546 yes:no: ) 1547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1548$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1550$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1551 ;; 1552 no:yes:* ) 1553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1554$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1556$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1558$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1560$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1562$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1563( cat <<\_ASBOX 1564## ------------------------------------- ## 1565## Report this to stuart.coyle@gmail.com ## 1566## ------------------------------------- ## 1567_ASBOX 1568 ) | sed "s/^/$as_me: WARNING: /" >&2 1569 ;; 1570esac 1571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1572$as_echo_n "checking for $2... " >&6; } 1573if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1574 $as_echo_n "(cached) " >&6 1575else 1576 eval "$3=\$ac_header_compiler" 1577fi 1578eval ac_res=\$$3 1579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1580$as_echo "$ac_res" >&6; } 1581fi 1582 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1583 1584} # ac_fn_c_check_header_mongrel 1585 1586# ac_fn_c_try_run LINENO 1587# ---------------------- 1588# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1589# that executables *can* be run. 1590ac_fn_c_try_run () 1591{ 1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1593 if { { ac_try="$ac_link" 1594case "(($ac_try" in 1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1596 *) ac_try_echo=$ac_try;; 1597esac 1598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1599$as_echo "$ac_try_echo"; } >&5 1600 (eval "$ac_link") 2>&5 1601 ac_status=$? 1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1603 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1604 { { case "(($ac_try" in 1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1606 *) ac_try_echo=$ac_try;; 1607esac 1608eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1609$as_echo "$ac_try_echo"; } >&5 1610 (eval "$ac_try") 2>&5 1611 ac_status=$? 1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1613 test $ac_status = 0; }; }; then : 1614 ac_retval=0 1615else 1616 $as_echo "$as_me: program exited with status $ac_status" >&5 1617 $as_echo "$as_me: failed program was:" >&5 1618sed 's/^/| /' conftest.$ac_ext >&5 1619 1620 ac_retval=$ac_status 1621fi 1622 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1623 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1624 as_fn_set_status $ac_retval 1625 1626} # ac_fn_c_try_run 1627 1628# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1629# ------------------------------------------------------- 1630# Tests whether HEADER exists and can be compiled using the include files in 1631# INCLUDES, setting the cache variable VAR accordingly. 1632ac_fn_c_check_header_compile () 1633{ 1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1636$as_echo_n "checking for $2... " >&6; } 1637if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1638 $as_echo_n "(cached) " >&6 1639else 1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1641/* end confdefs.h. */ 1642$4 1643#include <$2> 1644_ACEOF 1645if ac_fn_c_try_compile "$LINENO"; then : 1646 eval "$3=yes" 1647else 1648 eval "$3=no" 1649fi 1650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1651fi 1652eval ac_res=\$$3 1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1654$as_echo "$ac_res" >&6; } 1655 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1656 1657} # ac_fn_c_check_header_compile 1658 1659# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1660# ------------------------------------------- 1661# Tests whether TYPE exists after having included INCLUDES, setting cache 1662# variable VAR accordingly. 1663ac_fn_c_check_type () 1664{ 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1667$as_echo_n "checking for $2... " >&6; } 1668if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1669 $as_echo_n "(cached) " >&6 1670else 1671 eval "$3=no" 1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1673/* end confdefs.h. */ 1674$4 1675int 1676main () 1677{ 1678if (sizeof ($2)) 1679 return 0; 1680 ; 1681 return 0; 1682} 1683_ACEOF 1684if ac_fn_c_try_compile "$LINENO"; then : 1685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1686/* end confdefs.h. */ 1687$4 1688int 1689main () 1690{ 1691if (sizeof (($2))) 1692 return 0; 1693 ; 1694 return 0; 1695} 1696_ACEOF 1697if ac_fn_c_try_compile "$LINENO"; then : 1698 1699else 1700 eval "$3=yes" 1701fi 1702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1703fi 1704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1705fi 1706eval ac_res=\$$3 1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1708$as_echo "$ac_res" >&6; } 1709 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1710 1711} # ac_fn_c_check_type 1712 1713# ac_fn_c_try_link LINENO 1714# ----------------------- 1715# Try to link conftest.$ac_ext, and return whether this succeeded. 1716ac_fn_c_try_link () 1717{ 1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1719 rm -f conftest.$ac_objext conftest$ac_exeext 1720 if { { ac_try="$ac_link" 1721case "(($ac_try" in 1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1723 *) ac_try_echo=$ac_try;; 1724esac 1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1726$as_echo "$ac_try_echo"; } >&5 1727 (eval "$ac_link") 2>conftest.err 1728 ac_status=$? 1729 if test -s conftest.err; then 1730 grep -v '^ *+' conftest.err >conftest.er1 1731 cat conftest.er1 >&5 1732 mv -f conftest.er1 conftest.err 1733 fi 1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1735 test $ac_status = 0; } && { 1736 test -z "$ac_c_werror_flag" || 1737 test ! -s conftest.err 1738 } && test -s conftest$ac_exeext && { 1739 test "$cross_compiling" = yes || 1740 $as_test_x conftest$ac_exeext 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 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1750 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1751 # interfere with the next link command; also delete a directory that is 1752 # left behind by Apple's compiler. We do this before executing the actions. 1753 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1754 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1755 as_fn_set_status $ac_retval 1756 1757} # ac_fn_c_try_link 1758 1759# ac_fn_c_check_func LINENO FUNC VAR 1760# ---------------------------------- 1761# Tests whether FUNC exists, setting the cache variable VAR accordingly 1762ac_fn_c_check_func () 1763{ 1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1766$as_echo_n "checking for $2... " >&6; } 1767if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1768 $as_echo_n "(cached) " >&6 1769else 1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1771/* end confdefs.h. */ 1772/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1773 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1774#define $2 innocuous_$2 1775 1776/* System header to define __stub macros and hopefully few prototypes, 1777 which can conflict with char $2 (); below. 1778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1779 <limits.h> exists even on freestanding compilers. */ 1780 1781#ifdef __STDC__ 1782# include <limits.h> 1783#else 1784# include <assert.h> 1785#endif 1786 1787#undef $2 1788 1789/* Override any GCC internal prototype to avoid an error. 1790 Use char because int might match the return type of a GCC 1791 builtin and then its argument prototype would still apply. */ 1792#ifdef __cplusplus 1793extern "C" 1794#endif 1795char $2 (); 1796/* The GNU C library defines this for functions which it implements 1797 to always fail with ENOSYS. Some functions are actually named 1798 something starting with __ and the normal name is an alias. */ 1799#if defined __stub_$2 || defined __stub___$2 1800choke me 1801#endif 1802 1803int 1804main () 1805{ 1806return $2 (); 1807 ; 1808 return 0; 1809} 1810_ACEOF 1811if ac_fn_c_try_link "$LINENO"; then : 1812 eval "$3=yes" 1813else 1814 eval "$3=no" 1815fi 1816rm -f core conftest.err conftest.$ac_objext \ 1817 conftest$ac_exeext conftest.$ac_ext 1818fi 1819eval ac_res=\$$3 1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1821$as_echo "$ac_res" >&6; } 1822 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1823 1824} # ac_fn_c_check_func 1825cat >config.log <<_ACEOF 1826This file contains any messages produced by compilers while 1827running configure, to aid debugging if configure makes a mistake. 1828 1829It was created by pngnq $as_me 1.1, which was 1830generated by GNU Autoconf 2.65. Invocation command line was 1831 1832 $ $0 $@ 1833 1834_ACEOF 1835exec 5>>config.log 1836{ 1837cat <<_ASUNAME 1838## --------- ## 1839## Platform. ## 1840## --------- ## 1841 1842hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1843uname -m = `(uname -m) 2>/dev/null || echo unknown` 1844uname -r = `(uname -r) 2>/dev/null || echo unknown` 1845uname -s = `(uname -s) 2>/dev/null || echo unknown` 1846uname -v = `(uname -v) 2>/dev/null || echo unknown` 1847 1848/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1849/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1850 1851/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1852/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1853/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1854/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1855/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1856/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1857/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1858 1859_ASUNAME 1860 1861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1862for as_dir in $PATH 1863do 1864 IFS=$as_save_IFS 1865 test -z "$as_dir" && as_dir=. 1866 $as_echo "PATH: $as_dir" 1867 done 1868IFS=$as_save_IFS 1869 1870} >&5 1871 1872cat >&5 <<_ACEOF 1873 1874 1875## ----------- ## 1876## Core tests. ## 1877## ----------- ## 1878 1879_ACEOF 1880 1881 1882# Keep a trace of the command line. 1883# Strip out --no-create and --no-recursion so they do not pile up. 1884# Strip out --silent because we don't want to record it for future runs. 1885# Also quote any args containing shell meta-characters. 1886# Make two passes to allow for proper duplicate-argument suppression. 1887ac_configure_args= 1888ac_configure_args0= 1889ac_configure_args1= 1890ac_must_keep_next=false 1891for ac_pass in 1 2 1892do 1893 for ac_arg 1894 do 1895 case $ac_arg in 1896 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1897 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1898 | -silent | --silent | --silen | --sile | --sil) 1899 continue ;; 1900 *\'*) 1901 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1902 esac 1903 case $ac_pass in 1904 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1905 2) 1906 as_fn_append ac_configure_args1 " '$ac_arg'" 1907 if test $ac_must_keep_next = true; then 1908 ac_must_keep_next=false # Got value, back to normal. 1909 else 1910 case $ac_arg in 1911 *=* | --config-cache | -C | -disable-* | --disable-* \ 1912 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1913 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1914 | -with-* | --with-* | -without-* | --without-* | --x) 1915 case "$ac_configure_args0 " in 1916 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1917 esac 1918 ;; 1919 -* ) ac_must_keep_next=true ;; 1920 esac 1921 fi 1922 as_fn_append ac_configure_args " '$ac_arg'" 1923 ;; 1924 esac 1925 done 1926done 1927{ ac_configure_args0=; unset ac_configure_args0;} 1928{ ac_configure_args1=; unset ac_configure_args1;} 1929 1930# When interrupted or exit'd, cleanup temporary files, and complete 1931# config.log. We remove comments because anyway the quotes in there 1932# would cause problems or look ugly. 1933# WARNING: Use '\'' to represent an apostrophe within the trap. 1934# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1935trap 'exit_status=$? 1936 # Save into config.log some information that might help in debugging. 1937 { 1938 echo 1939 1940 cat <<\_ASBOX 1941## ---------------- ## 1942## Cache variables. ## 1943## ---------------- ## 1944_ASBOX 1945 echo 1946 # The following way of writing the cache mishandles newlines in values, 1947( 1948 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1949 eval ac_val=\$$ac_var 1950 case $ac_val in #( 1951 *${as_nl}*) 1952 case $ac_var in #( 1953 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1954$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1955 esac 1956 case $ac_var in #( 1957 _ | IFS | as_nl) ;; #( 1958 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1959 *) { eval $ac_var=; unset $ac_var;} ;; 1960 esac ;; 1961 esac 1962 done 1963 (set) 2>&1 | 1964 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1965 *${as_nl}ac_space=\ *) 1966 sed -n \ 1967 "s/'\''/'\''\\\\'\'''\''/g; 1968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1969 ;; #( 1970 *) 1971 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1972 ;; 1973 esac | 1974 sort 1975) 1976 echo 1977 1978 cat <<\_ASBOX 1979## ----------------- ## 1980## Output variables. ## 1981## ----------------- ## 1982_ASBOX 1983 echo 1984 for ac_var in $ac_subst_vars 1985 do 1986 eval ac_val=\$$ac_var 1987 case $ac_val in 1988 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1989 esac 1990 $as_echo "$ac_var='\''$ac_val'\''" 1991 done | sort 1992 echo 1993 1994 if test -n "$ac_subst_files"; then 1995 cat <<\_ASBOX 1996## ------------------- ## 1997## File substitutions. ## 1998## ------------------- ## 1999_ASBOX 2000 echo 2001 for ac_var in $ac_subst_files 2002 do 2003 eval ac_val=\$$ac_var 2004 case $ac_val in 2005 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2006 esac 2007 $as_echo "$ac_var='\''$ac_val'\''" 2008 done | sort 2009 echo 2010 fi 2011 2012 if test -s confdefs.h; then 2013 cat <<\_ASBOX 2014## ----------- ## 2015## confdefs.h. ## 2016## ----------- ## 2017_ASBOX 2018 echo 2019 cat confdefs.h 2020 echo 2021 fi 2022 test "$ac_signal" != 0 && 2023 $as_echo "$as_me: caught signal $ac_signal" 2024 $as_echo "$as_me: exit $exit_status" 2025 } >&5 2026 rm -f core *.core core.conftest.* && 2027 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2028 exit $exit_status 2029' 0 2030for ac_signal in 1 2 13 15; do 2031 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2032done 2033ac_signal=0 2034 2035# confdefs.h avoids OS command line length limits that DEFS can exceed. 2036rm -f -r conftest* confdefs.h 2037 2038$as_echo "/* confdefs.h */" > confdefs.h 2039 2040# Predefined preprocessor variables. 2041 2042cat >>confdefs.h <<_ACEOF 2043#define PACKAGE_NAME "$PACKAGE_NAME" 2044_ACEOF 2045 2046cat >>confdefs.h <<_ACEOF 2047#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2048_ACEOF 2049 2050cat >>confdefs.h <<_ACEOF 2051#define PACKAGE_VERSION "$PACKAGE_VERSION" 2052_ACEOF 2053 2054cat >>confdefs.h <<_ACEOF 2055#define PACKAGE_STRING "$PACKAGE_STRING" 2056_ACEOF 2057 2058cat >>confdefs.h <<_ACEOF 2059#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2060_ACEOF 2061 2062cat >>confdefs.h <<_ACEOF 2063#define PACKAGE_URL "$PACKAGE_URL" 2064_ACEOF 2065 2066 2067# Let the site file select an alternate cache file if it wants to. 2068# Prefer an explicitly selected file to automatically selected ones. 2069ac_site_file1=NONE 2070ac_site_file2=NONE 2071if test -n "$CONFIG_SITE"; then 2072 ac_site_file1=$CONFIG_SITE 2073elif test "x$prefix" != xNONE; then 2074 ac_site_file1=$prefix/share/config.site 2075 ac_site_file2=$prefix/etc/config.site 2076else 2077 ac_site_file1=$ac_default_prefix/share/config.site 2078 ac_site_file2=$ac_default_prefix/etc/config.site 2079fi 2080for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2081do 2082 test "x$ac_site_file" = xNONE && continue 2083 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2084 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2085$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2086 sed 's/^/| /' "$ac_site_file" >&5 2087 . "$ac_site_file" 2088 fi 2089done 2090 2091if test -r "$cache_file"; then 2092 # Some versions of bash will fail to source /dev/null (special files 2093 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2094 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2095 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2096$as_echo "$as_me: loading cache $cache_file" >&6;} 2097 case $cache_file in 2098 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2099 *) . "./$cache_file";; 2100 esac 2101 fi 2102else 2103 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2104$as_echo "$as_me: creating cache $cache_file" >&6;} 2105 >$cache_file 2106fi 2107 2108# Check that the precious variables saved in the cache have kept the same 2109# value. 2110ac_cache_corrupted=false 2111for ac_var in $ac_precious_vars; do 2112 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2113 eval ac_new_set=\$ac_env_${ac_var}_set 2114 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2115 eval ac_new_val=\$ac_env_${ac_var}_value 2116 case $ac_old_set,$ac_new_set in 2117 set,) 2118 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2119$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2120 ac_cache_corrupted=: ;; 2121 ,set) 2122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2123$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2124 ac_cache_corrupted=: ;; 2125 ,);; 2126 *) 2127 if test "x$ac_old_val" != "x$ac_new_val"; then 2128 # differences in whitespace do not lead to failure. 2129 ac_old_val_w=`echo x $ac_old_val` 2130 ac_new_val_w=`echo x $ac_new_val` 2131 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2133$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2134 ac_cache_corrupted=: 2135 else 2136 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2137$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2138 eval $ac_var=\$ac_old_val 2139 fi 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2141$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2143$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2144 fi;; 2145 esac 2146 # Pass precious variables to config.status. 2147 if test "$ac_new_set" = set; then 2148 case $ac_new_val in 2149 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2150 *) ac_arg=$ac_var=$ac_new_val ;; 2151 esac 2152 case " $ac_configure_args " in 2153 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2154 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2155 esac 2156 fi 2157done 2158if $ac_cache_corrupted; then 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2162$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2163 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2164fi 2165## -------------------- ## 2166## Main body of script. ## 2167## -------------------- ## 2168 2169ac_ext=c 2170ac_cpp='$CPP $CPPFLAGS' 2171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2173ac_compiler_gnu=$ac_cv_c_compiler_gnu 2174 2175 2176am__api_version='1.11' 2177 2178ac_aux_dir= 2179for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2180 for ac_t in install-sh install.sh shtool; do 2181 if test -f "$ac_dir/$ac_t"; then 2182 ac_aux_dir=$ac_dir 2183 ac_install_sh="$ac_aux_dir/$ac_t -c" 2184 break 2 2185 fi 2186 done 2187done 2188if test -z "$ac_aux_dir"; then 2189 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2190fi 2191 2192# These three variables are undocumented and unsupported, 2193# and are intended to be withdrawn in a future Autoconf release. 2194# They can cause serious problems if a builder's source tree is in a directory 2195# whose full name contains unusual characters. 2196ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2197ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2198ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2199 2200 2201# Find a good install program. We prefer a C program (faster), 2202# so one script is as good as another. But avoid the broken or 2203# incompatible versions: 2204# SysV /etc/install, /usr/sbin/install 2205# SunOS /usr/etc/install 2206# IRIX /sbin/install 2207# AIX /bin/install 2208# AmigaOS /C/install, which installs bootblocks on floppy discs 2209# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2210# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2211# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2212# OS/2's system install, which has a completely different semantic 2213# ./install, which can be erroneously created by make from ./install.sh. 2214# Reject install programs that cannot install multiple files. 2215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2216$as_echo_n "checking for a BSD-compatible install... " >&6; } 2217if test -z "$INSTALL"; then 2218if test "${ac_cv_path_install+set}" = set; then : 2219 $as_echo_n "(cached) " >&6 2220else 2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2222for as_dir in $PATH 2223do 2224 IFS=$as_save_IFS 2225 test -z "$as_dir" && as_dir=. 2226 # Account for people who put trailing slashes in PATH elements. 2227case $as_dir/ in #(( 2228 ./ | .// | /[cC]/* | \ 2229 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2230 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2231 /usr/ucb/* ) ;; 2232 *) 2233 # OSF1 and SCO ODT 3.0 have their own names for install. 2234 # Don't use installbsd from OSF since it installs stuff as root 2235 # by default. 2236 for ac_prog in ginstall scoinst install; do 2237 for ac_exec_ext in '' $ac_executable_extensions; do 2238 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2239 if test $ac_prog = install && 2240 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2241 # AIX install. It has an incompatible calling convention. 2242 : 2243 elif test $ac_prog = install && 2244 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2245 # program-specific install script used by HP pwplus--don't use. 2246 : 2247 else 2248 rm -rf conftest.one conftest.two conftest.dir 2249 echo one > conftest.one 2250 echo two > conftest.two 2251 mkdir conftest.dir 2252 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2253 test -s conftest.one && test -s conftest.two && 2254 test -s conftest.dir/conftest.one && 2255 test -s conftest.dir/conftest.two 2256 then 2257 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2258 break 3 2259 fi 2260 fi 2261 fi 2262 done 2263 done 2264 ;; 2265esac 2266 2267 done 2268IFS=$as_save_IFS 2269 2270rm -rf conftest.one conftest.two conftest.dir 2271 2272fi 2273 if test "${ac_cv_path_install+set}" = set; then 2274 INSTALL=$ac_cv_path_install 2275 else 2276 # As a last resort, use the slow shell script. Don't cache a 2277 # value for INSTALL within a source directory, because that will 2278 # break other packages using the cache if that directory is 2279 # removed, or if the value is a relative name. 2280 INSTALL=$ac_install_sh 2281 fi 2282fi 2283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2284$as_echo "$INSTALL" >&6; } 2285 2286# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2287# It thinks the first close brace ends the variable substitution. 2288test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2289 2290test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2291 2292test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2293 2294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2295$as_echo_n "checking whether build environment is sane... " >&6; } 2296# Just in case 2297sleep 1 2298echo timestamp > conftest.file 2299# Reject unsafe characters in $srcdir or the absolute working directory 2300# name. Accept space and tab only in the latter. 2301am_lf=' 2302' 2303case `pwd` in 2304 *[\\\"\#\$\&\'\`$am_lf]*) 2305 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2306esac 2307case $srcdir in 2308 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2309 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2310esac 2311 2312# Do `set' in a subshell so we don't clobber the current shell's 2313# arguments. Must try -L first in case configure is actually a 2314# symlink; some systems play weird games with the mod time of symlinks 2315# (eg FreeBSD returns the mod time of the symlink's containing 2316# directory). 2317if ( 2318 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2319 if test "$*" = "X"; then 2320 # -L didn't work. 2321 set X `ls -t "$srcdir/configure" conftest.file` 2322 fi 2323 rm -f conftest.file 2324 if test "$*" != "X $srcdir/configure conftest.file" \ 2325 && test "$*" != "X conftest.file $srcdir/configure"; then 2326 2327 # If neither matched, then we have a broken ls. This can happen 2328 # if, for instance, CONFIG_SHELL is bash and it inherits a 2329 # broken ls alias from the environment. This has actually 2330 # happened. Such a system could not be considered "sane". 2331 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2332alias in your environment" "$LINENO" 5 2333 fi 2334 2335 test "$2" = conftest.file 2336 ) 2337then 2338 # Ok. 2339 : 2340else 2341 as_fn_error "newly created file is older than distributed files! 2342Check your system clock" "$LINENO" 5 2343fi 2344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2345$as_echo "yes" >&6; } 2346test "$program_prefix" != NONE && 2347 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2348# Use a double $ so make ignores it. 2349test "$program_suffix" != NONE && 2350 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2351# Double any \ or $. 2352# By default was `s,x,x', remove it if useless. 2353ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2354program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2355 2356# expand $ac_aux_dir to an absolute path 2357am_aux_dir=`cd $ac_aux_dir && pwd` 2358 2359if test x"${MISSING+set}" != xset; then 2360 case $am_aux_dir in 2361 *\ * | *\ *) 2362 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2363 *) 2364 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2365 esac 2366fi 2367# Use eval to expand $SHELL 2368if eval "$MISSING --run true"; then 2369 am_missing_run="$MISSING --run " 2370else 2371 am_missing_run= 2372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2373$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2374fi 2375 2376if test x"${install_sh}" != xset; then 2377 case $am_aux_dir in 2378 *\ * | *\ *) 2379 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2380 *) 2381 install_sh="\${SHELL} $am_aux_dir/install-sh" 2382 esac 2383fi 2384 2385# Installed binaries are usually stripped using `strip' when the user 2386# run `make install-strip'. However `strip' might not be the right 2387# tool to use in cross-compilation environments, therefore Automake 2388# will honor the `STRIP' environment variable to overrule this program. 2389if test "$cross_compiling" != no; then 2390 if test -n "$ac_tool_prefix"; then 2391 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2392set dummy ${ac_tool_prefix}strip; ac_word=$2 2393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2394$as_echo_n "checking for $ac_word... " >&6; } 2395if test "${ac_cv_prog_STRIP+set}" = set; then : 2396 $as_echo_n "(cached) " >&6 2397else 2398 if test -n "$STRIP"; then 2399 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2400else 2401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2402for as_dir in $PATH 2403do 2404 IFS=$as_save_IFS 2405 test -z "$as_dir" && as_dir=. 2406 for ac_exec_ext in '' $ac_executable_extensions; do 2407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2408 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2410 break 2 2411 fi 2412done 2413 done 2414IFS=$as_save_IFS 2415 2416fi 2417fi 2418STRIP=$ac_cv_prog_STRIP 2419if test -n "$STRIP"; then 2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2421$as_echo "$STRIP" >&6; } 2422else 2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2424$as_echo "no" >&6; } 2425fi 2426 2427 2428fi 2429if test -z "$ac_cv_prog_STRIP"; then 2430 ac_ct_STRIP=$STRIP 2431 # Extract the first word of "strip", so it can be a program name with args. 2432set dummy strip; ac_word=$2 2433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2434$as_echo_n "checking for $ac_word... " >&6; } 2435if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2436 $as_echo_n "(cached) " >&6 2437else 2438 if test -n "$ac_ct_STRIP"; then 2439 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2440else 2441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2442for as_dir in $PATH 2443do 2444 IFS=$as_save_IFS 2445 test -z "$as_dir" && as_dir=. 2446 for ac_exec_ext in '' $ac_executable_extensions; do 2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2448 ac_cv_prog_ac_ct_STRIP="strip" 2449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2450 break 2 2451 fi 2452done 2453 done 2454IFS=$as_save_IFS 2455 2456fi 2457fi 2458ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2459if test -n "$ac_ct_STRIP"; then 2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2461$as_echo "$ac_ct_STRIP" >&6; } 2462else 2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2464$as_echo "no" >&6; } 2465fi 2466 2467 if test "x$ac_ct_STRIP" = x; then 2468 STRIP=":" 2469 else 2470 case $cross_compiling:$ac_tool_warned in 2471yes:) 2472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2474ac_tool_warned=yes ;; 2475esac 2476 STRIP=$ac_ct_STRIP 2477 fi 2478else 2479 STRIP="$ac_cv_prog_STRIP" 2480fi 2481 2482fi 2483INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2484 2485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2486$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2487if test -z "$MKDIR_P"; then 2488 if test "${ac_cv_path_mkdir+set}" = set; then : 2489 $as_echo_n "(cached) " >&6 2490else 2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2492for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2493do 2494 IFS=$as_save_IFS 2495 test -z "$as_dir" && as_dir=. 2496 for ac_prog in mkdir gmkdir; do 2497 for ac_exec_ext in '' $ac_executable_extensions; do 2498 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2499 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2500 'mkdir (GNU coreutils) '* | \ 2501 'mkdir (coreutils) '* | \ 2502 'mkdir (fileutils) '4.1*) 2503 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2504 break 3;; 2505 esac 2506 done 2507 done 2508 done 2509IFS=$as_save_IFS 2510 2511fi 2512 2513 test -d ./--version && rmdir ./--version 2514 if test "${ac_cv_path_mkdir+set}" = set; then 2515 MKDIR_P="$ac_cv_path_mkdir -p" 2516 else 2517 # As a last resort, use the slow shell script. Don't cache a 2518 # value for MKDIR_P within a source directory, because that will 2519 # break other packages using the cache if that directory is 2520 # removed, or if the value is a relative name. 2521 MKDIR_P="$ac_install_sh -d" 2522 fi 2523fi 2524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2525$as_echo "$MKDIR_P" >&6; } 2526 2527mkdir_p="$MKDIR_P" 2528case $mkdir_p in 2529 [\\/$]* | ?:[\\/]*) ;; 2530 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2531esac 2532 2533for ac_prog in gawk mawk nawk awk 2534do 2535 # Extract the first word of "$ac_prog", so it can be a program name with args. 2536set dummy $ac_prog; ac_word=$2 2537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2538$as_echo_n "checking for $ac_word... " >&6; } 2539if test "${ac_cv_prog_AWK+set}" = set; then : 2540 $as_echo_n "(cached) " >&6 2541else 2542 if test -n "$AWK"; then 2543 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2544else 2545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2546for as_dir in $PATH 2547do 2548 IFS=$as_save_IFS 2549 test -z "$as_dir" && as_dir=. 2550 for ac_exec_ext in '' $ac_executable_extensions; do 2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2552 ac_cv_prog_AWK="$ac_prog" 2553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2554 break 2 2555 fi 2556done 2557 done 2558IFS=$as_save_IFS 2559 2560fi 2561fi 2562AWK=$ac_cv_prog_AWK 2563if test -n "$AWK"; then 2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2565$as_echo "$AWK" >&6; } 2566else 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2568$as_echo "no" >&6; } 2569fi 2570 2571 2572 test -n "$AWK" && break 2573done 2574 2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2576$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2577set x ${MAKE-make} 2578ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2579if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2580 $as_echo_n "(cached) " >&6 2581else 2582 cat >conftest.make <<\_ACEOF 2583SHELL = /bin/sh 2584all: 2585 @echo '@@@%%%=$(MAKE)=@@@%%%' 2586_ACEOF 2587# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2588case `${MAKE-make} -f conftest.make 2>/dev/null` in 2589 *@@@%%%=?*=@@@%%%*) 2590 eval ac_cv_prog_make_${ac_make}_set=yes;; 2591 *) 2592 eval ac_cv_prog_make_${ac_make}_set=no;; 2593esac 2594rm -f conftest.make 2595fi 2596if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2598$as_echo "yes" >&6; } 2599 SET_MAKE= 2600else 2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2602$as_echo "no" >&6; } 2603 SET_MAKE="MAKE=${MAKE-make}" 2604fi 2605 2606rm -rf .tst 2>/dev/null 2607mkdir .tst 2>/dev/null 2608if test -d .tst; then 2609 am__leading_dot=. 2610else 2611 am__leading_dot=_ 2612fi 2613rmdir .tst 2>/dev/null 2614 2615if test "`cd $srcdir && pwd`" != "`pwd`"; then 2616 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2617 # is not polluted with repeated "-I." 2618 am__isrc=' -I$(srcdir)' 2619 # test to see if srcdir already configured 2620 if test -f $srcdir/config.status; then 2621 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2622 fi 2623fi 2624 2625# test whether we have cygpath 2626if test -z "$CYGPATH_W"; then 2627 if (cygpath --version) >/dev/null 2>/dev/null; then 2628 CYGPATH_W='cygpath -w' 2629 else 2630 CYGPATH_W=echo 2631 fi 2632fi 2633 2634 2635# Define the identity of the package. 2636 PACKAGE='pngnq' 2637 VERSION='1.1' 2638 2639 2640cat >>confdefs.h <<_ACEOF 2641#define PACKAGE "$PACKAGE" 2642_ACEOF 2643 2644 2645cat >>confdefs.h <<_ACEOF 2646#define VERSION "$VERSION" 2647_ACEOF 2648 2649# Some tools Automake needs. 2650 2651ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2652 2653 2654AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2655 2656 2657AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2658 2659 2660AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2661 2662 2663MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2664 2665# We need awk for the "check" target. The system "awk" is bad on 2666# some platforms. 2667# Always define AMTAR for backward compatibility. 2668 2669AMTAR=${AMTAR-"${am_missing_run}tar"} 2670 2671am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2672 2673 2674 2675 2676-Wall -Werror 2677 2678 2679# check for progs 2680# Extract the first word of "libpng-config", so it can be a program name with args. 2681set dummy libpng-config; ac_word=$2 2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2683$as_echo_n "checking for $ac_word... " >&6; } 2684if test "${ac_cv_prog_HAS_LIBPNG_CONFIG+set}" = set; then : 2685 $as_echo_n "(cached) " >&6 2686else 2687 if test -n "$HAS_LIBPNG_CONFIG"; then 2688 ac_cv_prog_HAS_LIBPNG_CONFIG="$HAS_LIBPNG_CONFIG" # Let the user override the test. 2689else 2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2691for as_dir in $PATH 2692do 2693 IFS=$as_save_IFS 2694 test -z "$as_dir" && as_dir=. 2695 for ac_exec_ext in '' $ac_executable_extensions; do 2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2697 ac_cv_prog_HAS_LIBPNG_CONFIG="1" 2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2699 break 2 2700 fi 2701done 2702 done 2703IFS=$as_save_IFS 2704 2705fi 2706fi 2707HAS_LIBPNG_CONFIG=$ac_cv_prog_HAS_LIBPNG_CONFIG 2708if test -n "$HAS_LIBPNG_CONFIG"; then 2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_LIBPNG_CONFIG" >&5 2710$as_echo "$HAS_LIBPNG_CONFIG" >&6; } 2711else 2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2713$as_echo "no" >&6; } 2714fi 2715 2716 2717 2718# checks for header files 2719DEPDIR="${am__leading_dot}deps" 2720 2721ac_config_commands="$ac_config_commands depfiles" 2722 2723 2724am_make=${MAKE-make} 2725cat > confinc << 'END' 2726am__doit: 2727 @echo this is the am__doit target 2728.PHONY: am__doit 2729END 2730# If we don't find an include directive, just comment out the code. 2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2732$as_echo_n "checking for style of include used by $am_make... " >&6; } 2733am__include="#" 2734am__quote= 2735_am_result=none 2736# First try GNU make style include. 2737echo "include confinc" > confmf 2738# Ignore all kinds of additional output from `make'. 2739case `$am_make -s -f confmf 2> /dev/null` in #( 2740*the\ am__doit\ target*) 2741 am__include=include 2742 am__quote= 2743 _am_result=GNU 2744 ;; 2745esac 2746# Now try BSD make style include. 2747if test "$am__include" = "#"; then 2748 echo '.include "confinc"' > confmf 2749 case `$am_make -s -f confmf 2> /dev/null` in #( 2750 *the\ am__doit\ target*) 2751 am__include=.include 2752 am__quote="\"" 2753 _am_result=BSD 2754 ;; 2755 esac 2756fi 2757 2758 2759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2760$as_echo "$_am_result" >&6; } 2761rm -f confinc confmf 2762 2763# Check whether --enable-dependency-tracking was given. 2764if test "${enable_dependency_tracking+set}" = set; then : 2765 enableval=$enable_dependency_tracking; 2766fi 2767 2768if test "x$enable_dependency_tracking" != xno; then 2769 am_depcomp="$ac_aux_dir/depcomp" 2770 AMDEPBACKSLASH='\' 2771fi 2772 if test "x$enable_dependency_tracking" != xno; then 2773 AMDEP_TRUE= 2774 AMDEP_FALSE='#' 2775else 2776 AMDEP_TRUE='#' 2777 AMDEP_FALSE= 2778fi 2779 2780 2781ac_ext=c 2782ac_cpp='$CPP $CPPFLAGS' 2783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2785ac_compiler_gnu=$ac_cv_c_compiler_gnu 2786if test -n "$ac_tool_prefix"; then 2787 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2788set dummy ${ac_tool_prefix}gcc; ac_word=$2 2789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2790$as_echo_n "checking for $ac_word... " >&6; } 2791if test "${ac_cv_prog_CC+set}" = set; then : 2792 $as_echo_n "(cached) " >&6 2793else 2794 if test -n "$CC"; then 2795 ac_cv_prog_CC="$CC" # Let the user override the test. 2796else 2797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2798for as_dir in $PATH 2799do 2800 IFS=$as_save_IFS 2801 test -z "$as_dir" && as_dir=. 2802 for ac_exec_ext in '' $ac_executable_extensions; do 2803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2804 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2806 break 2 2807 fi 2808done 2809 done 2810IFS=$as_save_IFS 2811 2812fi 2813fi 2814CC=$ac_cv_prog_CC 2815if test -n "$CC"; then 2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2817$as_echo "$CC" >&6; } 2818else 2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2820$as_echo "no" >&6; } 2821fi 2822 2823 2824fi 2825if test -z "$ac_cv_prog_CC"; then 2826 ac_ct_CC=$CC 2827 # Extract the first word of "gcc", so it can be a program name with args. 2828set dummy gcc; ac_word=$2 2829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2830$as_echo_n "checking for $ac_word... " >&6; } 2831if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2832 $as_echo_n "(cached) " >&6 2833else 2834 if test -n "$ac_ct_CC"; then 2835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2836else 2837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2838for as_dir in $PATH 2839do 2840 IFS=$as_save_IFS 2841 test -z "$as_dir" && as_dir=. 2842 for ac_exec_ext in '' $ac_executable_extensions; do 2843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2844 ac_cv_prog_ac_ct_CC="gcc" 2845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2846 break 2 2847 fi 2848done 2849 done 2850IFS=$as_save_IFS 2851 2852fi 2853fi 2854ac_ct_CC=$ac_cv_prog_ac_ct_CC 2855if test -n "$ac_ct_CC"; then 2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2857$as_echo "$ac_ct_CC" >&6; } 2858else 2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2860$as_echo "no" >&6; } 2861fi 2862 2863 if test "x$ac_ct_CC" = x; then 2864 CC="" 2865 else 2866 case $cross_compiling:$ac_tool_warned in 2867yes:) 2868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2870ac_tool_warned=yes ;; 2871esac 2872 CC=$ac_ct_CC 2873 fi 2874else 2875 CC="$ac_cv_prog_CC" 2876fi 2877 2878if test -z "$CC"; then 2879 if test -n "$ac_tool_prefix"; then 2880 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2881set dummy ${ac_tool_prefix}cc; ac_word=$2 2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2883$as_echo_n "checking for $ac_word... " >&6; } 2884if test "${ac_cv_prog_CC+set}" = set; then : 2885 $as_echo_n "(cached) " >&6 2886else 2887 if test -n "$CC"; then 2888 ac_cv_prog_CC="$CC" # Let the user override the test. 2889else 2890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2891for as_dir in $PATH 2892do 2893 IFS=$as_save_IFS 2894 test -z "$as_dir" && as_dir=. 2895 for ac_exec_ext in '' $ac_executable_extensions; do 2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2897 ac_cv_prog_CC="${ac_tool_prefix}cc" 2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2899 break 2 2900 fi 2901done 2902 done 2903IFS=$as_save_IFS 2904 2905fi 2906fi 2907CC=$ac_cv_prog_CC 2908if test -n "$CC"; then 2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2910$as_echo "$CC" >&6; } 2911else 2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2913$as_echo "no" >&6; } 2914fi 2915 2916 2917 fi 2918fi 2919if test -z "$CC"; then 2920 # Extract the first word of "cc", so it can be a program name with args. 2921set dummy cc; ac_word=$2 2922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2923$as_echo_n "checking for $ac_word... " >&6; } 2924if test "${ac_cv_prog_CC+set}" = set; then : 2925 $as_echo_n "(cached) " >&6 2926else 2927 if test -n "$CC"; then 2928 ac_cv_prog_CC="$CC" # Let the user override the test. 2929else 2930 ac_prog_rejected=no 2931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2932for as_dir in $PATH 2933do 2934 IFS=$as_save_IFS 2935 test -z "$as_dir" && as_dir=. 2936 for ac_exec_ext in '' $ac_executable_extensions; do 2937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2938 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2939 ac_prog_rejected=yes 2940 continue 2941 fi 2942 ac_cv_prog_CC="cc" 2943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2944 break 2 2945 fi 2946done 2947 done 2948IFS=$as_save_IFS 2949 2950if test $ac_prog_rejected = yes; then 2951 # We found a bogon in the path, so make sure we never use it. 2952 set dummy $ac_cv_prog_CC 2953 shift 2954 if test $# != 0; then 2955 # We chose a different compiler from the bogus one. 2956 # However, it has the same basename, so the bogon will be chosen 2957 # first if we set CC to just the basename; use the full file name. 2958 shift 2959 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2960 fi 2961fi 2962fi 2963fi 2964CC=$ac_cv_prog_CC 2965if test -n "$CC"; then 2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2967$as_echo "$CC" >&6; } 2968else 2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2970$as_echo "no" >&6; } 2971fi 2972 2973 2974fi 2975if test -z "$CC"; then 2976 if test -n "$ac_tool_prefix"; then 2977 for ac_prog in cl.exe 2978 do 2979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2980set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2982$as_echo_n "checking for $ac_word... " >&6; } 2983if test "${ac_cv_prog_CC+set}" = set; then : 2984 $as_echo_n "(cached) " >&6 2985else 2986 if test -n "$CC"; then 2987 ac_cv_prog_CC="$CC" # Let the user override the test. 2988else 2989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2990for as_dir in $PATH 2991do 2992 IFS=$as_save_IFS 2993 test -z "$as_dir" && as_dir=. 2994 for ac_exec_ext in '' $ac_executable_extensions; do 2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2996 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2998 break 2 2999 fi 3000done 3001 done 3002IFS=$as_save_IFS 3003 3004fi 3005fi 3006CC=$ac_cv_prog_CC 3007if test -n "$CC"; then 3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3009$as_echo "$CC" >&6; } 3010else 3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3012$as_echo "no" >&6; } 3013fi 3014 3015 3016 test -n "$CC" && break 3017 done 3018fi 3019if test -z "$CC"; then 3020 ac_ct_CC=$CC 3021 for ac_prog in cl.exe 3022do 3023 # Extract the first word of "$ac_prog", so it can be a program name with args. 3024set dummy $ac_prog; ac_word=$2 3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3026$as_echo_n "checking for $ac_word... " >&6; } 3027if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3028 $as_echo_n "(cached) " >&6 3029else 3030 if test -n "$ac_ct_CC"; then 3031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3032else 3033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3034for as_dir in $PATH 3035do 3036 IFS=$as_save_IFS 3037 test -z "$as_dir" && as_dir=. 3038 for ac_exec_ext in '' $ac_executable_extensions; do 3039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3040 ac_cv_prog_ac_ct_CC="$ac_prog" 3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3042 break 2 3043 fi 3044done 3045 done 3046IFS=$as_save_IFS 3047 3048fi 3049fi 3050ac_ct_CC=$ac_cv_prog_ac_ct_CC 3051if test -n "$ac_ct_CC"; then 3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3053$as_echo "$ac_ct_CC" >&6; } 3054else 3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3056$as_echo "no" >&6; } 3057fi 3058 3059 3060 test -n "$ac_ct_CC" && break 3061done 3062 3063 if test "x$ac_ct_CC" = x; then 3064 CC="" 3065 else 3066 case $cross_compiling:$ac_tool_warned in 3067yes:) 3068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3070ac_tool_warned=yes ;; 3071esac 3072 CC=$ac_ct_CC 3073 fi 3074fi 3075 3076fi 3077 3078 3079test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3081as_fn_error "no acceptable C compiler found in \$PATH 3082See \`config.log' for more details." "$LINENO" 5; } 3083 3084# Provide some information about the compiler. 3085$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3086set X $ac_compile 3087ac_compiler=$2 3088for ac_option in --version -v -V -qversion; do 3089 { { ac_try="$ac_compiler $ac_option >&5" 3090case "(($ac_try" in 3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3092 *) ac_try_echo=$ac_try;; 3093esac 3094eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3095$as_echo "$ac_try_echo"; } >&5 3096 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3097 ac_status=$? 3098 if test -s conftest.err; then 3099 sed '10a\ 3100... rest of stderr output deleted ... 3101 10q' conftest.err >conftest.er1 3102 cat conftest.er1 >&5 3103 fi 3104 rm -f conftest.er1 conftest.err 3105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3106 test $ac_status = 0; } 3107done 3108 3109cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3110/* end confdefs.h. */ 3111 3112int 3113main () 3114{ 3115 3116 ; 3117 return 0; 3118} 3119_ACEOF 3120ac_clean_files_save=$ac_clean_files 3121ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3122# Try to create an executable without -o first, disregard a.out. 3123# It will help us diagnose broken compilers, and finding out an intuition 3124# of exeext. 3125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3126$as_echo_n "checking whether the C compiler works... " >&6; } 3127ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3128 3129# The possible output files: 3130ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3131 3132ac_rmfiles= 3133for ac_file in $ac_files 3134do 3135 case $ac_file in 3136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3137 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3138 esac 3139done 3140rm -f $ac_rmfiles 3141 3142if { { ac_try="$ac_link_default" 3143case "(($ac_try" in 3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3145 *) ac_try_echo=$ac_try;; 3146esac 3147eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3148$as_echo "$ac_try_echo"; } >&5 3149 (eval "$ac_link_default") 2>&5 3150 ac_status=$? 3151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3152 test $ac_status = 0; }; then : 3153 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3154# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3155# in a Makefile. We should not override ac_cv_exeext if it was cached, 3156# so that the user can short-circuit this test for compilers unknown to 3157# Autoconf. 3158for ac_file in $ac_files '' 3159do 3160 test -f "$ac_file" || continue 3161 case $ac_file in 3162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3163 ;; 3164 [ab].out ) 3165 # We found the default executable, but exeext='' is most 3166 # certainly right. 3167 break;; 3168 *.* ) 3169 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3170 then :; else 3171 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3172 fi 3173 # We set ac_cv_exeext here because the later test for it is not 3174 # safe: cross compilers may not add the suffix if given an `-o' 3175 # argument, so we may need to know it at that point already. 3176 # Even if this section looks crufty: it has the advantage of 3177 # actually working. 3178 break;; 3179 * ) 3180 break;; 3181 esac 3182done 3183test "$ac_cv_exeext" = no && ac_cv_exeext= 3184 3185else 3186 ac_file='' 3187fi 3188if test -z "$ac_file"; then : 3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3190$as_echo "no" >&6; } 3191$as_echo "$as_me: failed program was:" >&5 3192sed 's/^/| /' conftest.$ac_ext >&5 3193 3194{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3195$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3196{ as_fn_set_status 77 3197as_fn_error "C compiler cannot create executables 3198See \`config.log' for more details." "$LINENO" 5; }; } 3199else 3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3201$as_echo "yes" >&6; } 3202fi 3203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3204$as_echo_n "checking for C compiler default output file name... " >&6; } 3205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3206$as_echo "$ac_file" >&6; } 3207ac_exeext=$ac_cv_exeext 3208 3209rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3210ac_clean_files=$ac_clean_files_save 3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3212$as_echo_n "checking for suffix of executables... " >&6; } 3213if { { ac_try="$ac_link" 3214case "(($ac_try" in 3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3216 *) ac_try_echo=$ac_try;; 3217esac 3218eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3219$as_echo "$ac_try_echo"; } >&5 3220 (eval "$ac_link") 2>&5 3221 ac_status=$? 3222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3223 test $ac_status = 0; }; then : 3224 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3225# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3226# work properly (i.e., refer to `conftest.exe'), while it won't with 3227# `rm'. 3228for ac_file in conftest.exe conftest conftest.*; do 3229 test -f "$ac_file" || continue 3230 case $ac_file in 3231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3232 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3233 break;; 3234 * ) break;; 3235 esac 3236done 3237else 3238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3240as_fn_error "cannot compute suffix of executables: cannot compile and link 3241See \`config.log' for more details." "$LINENO" 5; } 3242fi 3243rm -f conftest conftest$ac_cv_exeext 3244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3245$as_echo "$ac_cv_exeext" >&6; } 3246 3247rm -f conftest.$ac_ext 3248EXEEXT=$ac_cv_exeext 3249ac_exeext=$EXEEXT 3250cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3251/* end confdefs.h. */ 3252#include <stdio.h> 3253int 3254main () 3255{ 3256FILE *f = fopen ("conftest.out", "w"); 3257 return ferror (f) || fclose (f) != 0; 3258 3259 ; 3260 return 0; 3261} 3262_ACEOF 3263ac_clean_files="$ac_clean_files conftest.out" 3264# Check that the compiler produces executables we can run. If not, either 3265# the compiler is broken, or we cross compile. 3266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3267$as_echo_n "checking whether we are cross compiling... " >&6; } 3268if test "$cross_compiling" != yes; then 3269 { { ac_try="$ac_link" 3270case "(($ac_try" in 3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3272 *) ac_try_echo=$ac_try;; 3273esac 3274eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3275$as_echo "$ac_try_echo"; } >&5 3276 (eval "$ac_link") 2>&5 3277 ac_status=$? 3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3279 test $ac_status = 0; } 3280 if { ac_try='./conftest$ac_cv_exeext' 3281 { { case "(($ac_try" in 3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3283 *) ac_try_echo=$ac_try;; 3284esac 3285eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3286$as_echo "$ac_try_echo"; } >&5 3287 (eval "$ac_try") 2>&5 3288 ac_status=$? 3289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3290 test $ac_status = 0; }; }; then 3291 cross_compiling=no 3292 else 3293 if test "$cross_compiling" = maybe; then 3294 cross_compiling=yes 3295 else 3296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3298as_fn_error "cannot run C compiled programs. 3299If you meant to cross compile, use \`--host'. 3300See \`config.log' for more details." "$LINENO" 5; } 3301 fi 3302 fi 3303fi 3304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3305$as_echo "$cross_compiling" >&6; } 3306 3307rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3308ac_clean_files=$ac_clean_files_save 3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3310$as_echo_n "checking for suffix of object files... " >&6; } 3311if test "${ac_cv_objext+set}" = set; then : 3312 $as_echo_n "(cached) " >&6 3313else 3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3315/* end confdefs.h. */ 3316 3317int 3318main () 3319{ 3320 3321 ; 3322 return 0; 3323} 3324_ACEOF 3325rm -f conftest.o conftest.obj 3326if { { ac_try="$ac_compile" 3327case "(($ac_try" in 3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3329 *) ac_try_echo=$ac_try;; 3330esac 3331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3332$as_echo "$ac_try_echo"; } >&5 3333 (eval "$ac_compile") 2>&5 3334 ac_status=$? 3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3336 test $ac_status = 0; }; then : 3337 for ac_file in conftest.o conftest.obj conftest.*; do 3338 test -f "$ac_file" || continue; 3339 case $ac_file in 3340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3341 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3342 break;; 3343 esac 3344done 3345else 3346 $as_echo "$as_me: failed program was:" >&5 3347sed 's/^/| /' conftest.$ac_ext >&5 3348 3349{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3351as_fn_error "cannot compute suffix of object files: cannot compile 3352See \`config.log' for more details." "$LINENO" 5; } 3353fi 3354rm -f conftest.$ac_cv_objext conftest.$ac_ext 3355fi 3356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3357$as_echo "$ac_cv_objext" >&6; } 3358OBJEXT=$ac_cv_objext 3359ac_objext=$OBJEXT 3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3361$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3362if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3363 $as_echo_n "(cached) " >&6 3364else 3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3366/* end confdefs.h. */ 3367 3368int 3369main () 3370{ 3371#ifndef __GNUC__ 3372 choke me 3373#endif 3374 3375 ; 3376 return 0; 3377} 3378_ACEOF 3379if ac_fn_c_try_compile "$LINENO"; then : 3380 ac_compiler_gnu=yes 3381else 3382 ac_compiler_gnu=no 3383fi 3384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3385ac_cv_c_compiler_gnu=$ac_compiler_gnu 3386 3387fi 3388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3389$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3390if test $ac_compiler_gnu = yes; then 3391 GCC=yes 3392else 3393 GCC= 3394fi 3395ac_test_CFLAGS=${CFLAGS+set} 3396ac_save_CFLAGS=$CFLAGS 3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3398$as_echo_n "checking whether $CC accepts -g... " >&6; } 3399if test "${ac_cv_prog_cc_g+set}" = set; then : 3400 $as_echo_n "(cached) " >&6 3401else 3402 ac_save_c_werror_flag=$ac_c_werror_flag 3403 ac_c_werror_flag=yes 3404 ac_cv_prog_cc_g=no 3405 CFLAGS="-g" 3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3407/* end confdefs.h. */ 3408 3409int 3410main () 3411{ 3412 3413 ; 3414 return 0; 3415} 3416_ACEOF 3417if ac_fn_c_try_compile "$LINENO"; then : 3418 ac_cv_prog_cc_g=yes 3419else 3420 CFLAGS="" 3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3422/* end confdefs.h. */ 3423 3424int 3425main () 3426{ 3427 3428 ; 3429 return 0; 3430} 3431_ACEOF 3432if ac_fn_c_try_compile "$LINENO"; then : 3433 3434else 3435 ac_c_werror_flag=$ac_save_c_werror_flag 3436 CFLAGS="-g" 3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3438/* end confdefs.h. */ 3439 3440int 3441main () 3442{ 3443 3444 ; 3445 return 0; 3446} 3447_ACEOF 3448if ac_fn_c_try_compile "$LINENO"; then : 3449 ac_cv_prog_cc_g=yes 3450fi 3451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3452fi 3453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3454fi 3455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3456 ac_c_werror_flag=$ac_save_c_werror_flag 3457fi 3458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3459$as_echo "$ac_cv_prog_cc_g" >&6; } 3460if test "$ac_test_CFLAGS" = set; then 3461 CFLAGS=$ac_save_CFLAGS 3462elif test $ac_cv_prog_cc_g = yes; then 3463 if test "$GCC" = yes; then 3464 CFLAGS="-g -O2" 3465 else 3466 CFLAGS="-g" 3467 fi 3468else 3469 if test "$GCC" = yes; then 3470 CFLAGS="-O2" 3471 else 3472 CFLAGS= 3473 fi 3474fi 3475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3476$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3477if test "${ac_cv_prog_cc_c89+set}" = set; then : 3478 $as_echo_n "(cached) " >&6 3479else 3480 ac_cv_prog_cc_c89=no 3481ac_save_CC=$CC 3482cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3483/* end confdefs.h. */ 3484#include <stdarg.h> 3485#include <stdio.h> 3486#include <sys/types.h> 3487#include <sys/stat.h> 3488/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3489struct buf { int x; }; 3490FILE * (*rcsopen) (struct buf *, struct stat *, int); 3491static char *e (p, i) 3492 char **p; 3493 int i; 3494{ 3495 return p[i]; 3496} 3497static char *f (char * (*g) (char **, int), char **p, ...) 3498{ 3499 char *s; 3500 va_list v; 3501 va_start (v,p); 3502 s = g (p, va_arg (v,int)); 3503 va_end (v); 3504 return s; 3505} 3506 3507/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3508 function prototypes and stuff, but not '\xHH' hex character constants. 3509 These don't provoke an error unfortunately, instead are silently treated 3510 as 'x'. The following induces an error, until -std is added to get 3511 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3512 array size at least. It's necessary to write '\x00'==0 to get something 3513 that's true only with -std. */ 3514int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3515 3516/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3517 inside strings and character constants. */ 3518#define FOO(x) 'x' 3519int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3520 3521int test (int i, double x); 3522struct s1 {int (*f) (int a);}; 3523struct s2 {int (*f) (double a);}; 3524int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3525int argc; 3526char **argv; 3527int 3528main () 3529{ 3530return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3531 ; 3532 return 0; 3533} 3534_ACEOF 3535for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3536 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3537do 3538 CC="$ac_save_CC $ac_arg" 3539 if ac_fn_c_try_compile "$LINENO"; then : 3540 ac_cv_prog_cc_c89=$ac_arg 3541fi 3542rm -f core conftest.err conftest.$ac_objext 3543 test "x$ac_cv_prog_cc_c89" != "xno" && break 3544done 3545rm -f conftest.$ac_ext 3546CC=$ac_save_CC 3547 3548fi 3549# AC_CACHE_VAL 3550case "x$ac_cv_prog_cc_c89" in 3551 x) 3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3553$as_echo "none needed" >&6; } ;; 3554 xno) 3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3556$as_echo "unsupported" >&6; } ;; 3557 *) 3558 CC="$CC $ac_cv_prog_cc_c89" 3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3560$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3561esac 3562if test "x$ac_cv_prog_cc_c89" != xno; then : 3563 3564fi 3565 3566ac_ext=c 3567ac_cpp='$CPP $CPPFLAGS' 3568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3570ac_compiler_gnu=$ac_cv_c_compiler_gnu 3571 3572depcc="$CC" am_compiler_list= 3573 3574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3575$as_echo_n "checking dependency style of $depcc... " >&6; } 3576if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3577 $as_echo_n "(cached) " >&6 3578else 3579 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3580 # We make a subdir and do the tests there. Otherwise we can end up 3581 # making bogus files that we don't know about and never remove. For 3582 # instance it was reported that on HP-UX the gcc test will end up 3583 # making a dummy file named `D' -- because `-MD' means `put the output 3584 # in D'. 3585 mkdir conftest.dir 3586 # Copy depcomp to subdir because otherwise we won't find it if we're 3587 # using a relative directory. 3588 cp "$am_depcomp" conftest.dir 3589 cd conftest.dir 3590 # We will build objects and dependencies in a subdirectory because 3591 # it helps to detect inapplicable dependency modes. For instance 3592 # both Tru64's cc and ICC support -MD to output dependencies as a 3593 # side effect of compilation, but ICC will put the dependencies in 3594 # the current directory while Tru64 will put them in the object 3595 # directory. 3596 mkdir sub 3597 3598 am_cv_CC_dependencies_compiler_type=none 3599 if test "$am_compiler_list" = ""; then 3600 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3601 fi 3602 am__universal=false 3603 case " $depcc " in #( 3604 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3605 esac 3606 3607 for depmode in $am_compiler_list; do 3608 # Setup a source with many dependencies, because some compilers 3609 # like to wrap large dependency lists on column 80 (with \), and 3610 # we should not choose a depcomp mode which is confused by this. 3611 # 3612 # We need to recreate these files for each test, as the compiler may 3613 # overwrite some of them when testing with obscure command lines. 3614 # This happens at least with the AIX C compiler. 3615 : > sub/conftest.c 3616 for i in 1 2 3 4 5 6; do 3617 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3618 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3619 # Solaris 8's {/usr,}/bin/sh. 3620 touch sub/conftst$i.h 3621 done 3622 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3623 3624 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3625 # mode. It turns out that the SunPro C++ compiler does not properly 3626 # handle `-M -o', and we need to detect this. Also, some Intel 3627 # versions had trouble with output in subdirs 3628 am__obj=sub/conftest.${OBJEXT-o} 3629 am__minus_obj="-o $am__obj" 3630 case $depmode in 3631 gcc) 3632 # This depmode causes a compiler race in universal mode. 3633 test "$am__universal" = false || continue 3634 ;; 3635 nosideeffect) 3636 # after this tag, mechanisms are not by side-effect, so they'll 3637 # only be used when explicitly requested 3638 if test "x$enable_dependency_tracking" = xyes; then 3639 continue 3640 else 3641 break 3642 fi 3643 ;; 3644 msvisualcpp | msvcmsys) 3645 # This compiler won't grok `-c -o', but also, the minuso test has 3646 # not run yet. These depmodes are late enough in the game, and 3647 # so weak that their functioning should not be impacted. 3648 am__obj=conftest.${OBJEXT-o} 3649 am__minus_obj= 3650 ;; 3651 none) break ;; 3652 esac 3653 if depmode=$depmode \ 3654 source=sub/conftest.c object=$am__obj \ 3655 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3656 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3657 >/dev/null 2>conftest.err && 3658 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3659 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3660 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3661 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3662 # icc doesn't choke on unknown options, it will just issue warnings 3663 # or remarks (even with -Werror). So we grep stderr for any message 3664 # that says an option was ignored or not supported. 3665 # When given -MP, icc 7.0 and 7.1 complain thusly: 3666 # icc: Command line warning: ignoring option '-M'; no argument required 3667 # The diagnosis changed in icc 8.0: 3668 # icc: Command line remark: option '-MP' not supported 3669 if (grep 'ignoring option' conftest.err || 3670 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3671 am_cv_CC_dependencies_compiler_type=$depmode 3672 break 3673 fi 3674 fi 3675 done 3676 3677 cd .. 3678 rm -rf conftest.dir 3679else 3680 am_cv_CC_dependencies_compiler_type=none 3681fi 3682 3683fi 3684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3685$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3686CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3687 3688 if 3689 test "x$enable_dependency_tracking" != xno \ 3690 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3691 am__fastdepCC_TRUE= 3692 am__fastdepCC_FALSE='#' 3693else 3694 am__fastdepCC_TRUE='#' 3695 am__fastdepCC_FALSE= 3696fi 3697 3698 3699 3700ac_ext=c 3701ac_cpp='$CPP $CPPFLAGS' 3702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3704ac_compiler_gnu=$ac_cv_c_compiler_gnu 3705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3706$as_echo_n "checking how to run the C preprocessor... " >&6; } 3707# On Suns, sometimes $CPP names a directory. 3708if test -n "$CPP" && test -d "$CPP"; then 3709 CPP= 3710fi 3711if test -z "$CPP"; then 3712 if test "${ac_cv_prog_CPP+set}" = set; then : 3713 $as_echo_n "(cached) " >&6 3714else 3715 # Double quotes because CPP needs to be expanded 3716 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3717 do 3718 ac_preproc_ok=false 3719for ac_c_preproc_warn_flag in '' yes 3720do 3721 # Use a header file that comes with gcc, so configuring glibc 3722 # with a fresh cross-compiler works. 3723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3724 # <limits.h> exists even on freestanding compilers. 3725 # On the NeXT, cc -E runs the code through the compiler's parser, 3726 # not just through cpp. "Syntax error" is here to catch this case. 3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3728/* end confdefs.h. */ 3729#ifdef __STDC__ 3730# include <limits.h> 3731#else 3732# include <assert.h> 3733#endif 3734 Syntax error 3735_ACEOF 3736if ac_fn_c_try_cpp "$LINENO"; then : 3737 3738else 3739 # Broken: fails on valid input. 3740continue 3741fi 3742rm -f conftest.err conftest.$ac_ext 3743 3744 # OK, works on sane cases. Now check whether nonexistent headers 3745 # can be detected and how. 3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3747/* end confdefs.h. */ 3748#include <ac_nonexistent.h> 3749_ACEOF 3750if ac_fn_c_try_cpp "$LINENO"; then : 3751 # Broken: success on invalid input. 3752continue 3753else 3754 # Passes both tests. 3755ac_preproc_ok=: 3756break 3757fi 3758rm -f conftest.err conftest.$ac_ext 3759 3760done 3761# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3762rm -f conftest.err conftest.$ac_ext 3763if $ac_preproc_ok; then : 3764 break 3765fi 3766 3767 done 3768 ac_cv_prog_CPP=$CPP 3769 3770fi 3771 CPP=$ac_cv_prog_CPP 3772else 3773 ac_cv_prog_CPP=$CPP 3774fi 3775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3776$as_echo "$CPP" >&6; } 3777ac_preproc_ok=false 3778for ac_c_preproc_warn_flag in '' yes 3779do 3780 # Use a header file that comes with gcc, so configuring glibc 3781 # with a fresh cross-compiler works. 3782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3783 # <limits.h> exists even on freestanding compilers. 3784 # On the NeXT, cc -E runs the code through the compiler's parser, 3785 # not just through cpp. "Syntax error" is here to catch this case. 3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3787/* end confdefs.h. */ 3788#ifdef __STDC__ 3789# include <limits.h> 3790#else 3791# include <assert.h> 3792#endif 3793 Syntax error 3794_ACEOF 3795if ac_fn_c_try_cpp "$LINENO"; then : 3796 3797else 3798 # Broken: fails on valid input. 3799continue 3800fi 3801rm -f conftest.err conftest.$ac_ext 3802 3803 # OK, works on sane cases. Now check whether nonexistent headers 3804 # can be detected and how. 3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3806/* end confdefs.h. */ 3807#include <ac_nonexistent.h> 3808_ACEOF 3809if ac_fn_c_try_cpp "$LINENO"; then : 3810 # Broken: success on invalid input. 3811continue 3812else 3813 # Passes both tests. 3814ac_preproc_ok=: 3815break 3816fi 3817rm -f conftest.err conftest.$ac_ext 3818 3819done 3820# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3821rm -f conftest.err conftest.$ac_ext 3822if $ac_preproc_ok; then : 3823 3824else 3825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3827as_fn_error "C preprocessor \"$CPP\" fails sanity check 3828See \`config.log' for more details." "$LINENO" 5; } 3829fi 3830 3831ac_ext=c 3832ac_cpp='$CPP $CPPFLAGS' 3833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3835ac_compiler_gnu=$ac_cv_c_compiler_gnu 3836 3837 3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3839$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3840if test "${ac_cv_path_GREP+set}" = set; then : 3841 $as_echo_n "(cached) " >&6 3842else 3843 if test -z "$GREP"; then 3844 ac_path_GREP_found=false 3845 # Loop through the user's path and test for each of PROGNAME-LIST 3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3847for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3848do 3849 IFS=$as_save_IFS 3850 test -z "$as_dir" && as_dir=. 3851 for ac_prog in grep ggrep; do 3852 for ac_exec_ext in '' $ac_executable_extensions; do 3853 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3854 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3855# Check for GNU ac_path_GREP and select it if it is found. 3856 # Check for GNU $ac_path_GREP 3857case `"$ac_path_GREP" --version 2>&1` in 3858*GNU*) 3859 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3860*) 3861 ac_count=0 3862 $as_echo_n 0123456789 >"conftest.in" 3863 while : 3864 do 3865 cat "conftest.in" "conftest.in" >"conftest.tmp" 3866 mv "conftest.tmp" "conftest.in" 3867 cp "conftest.in" "conftest.nl" 3868 $as_echo 'GREP' >> "conftest.nl" 3869 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3870 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3871 as_fn_arith $ac_count + 1 && ac_count=$as_val 3872 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3873 # Best one so far, save it but keep looking for a better one 3874 ac_cv_path_GREP="$ac_path_GREP" 3875 ac_path_GREP_max=$ac_count 3876 fi 3877 # 10*(2^10) chars as input seems more than enough 3878 test $ac_count -gt 10 && break 3879 done 3880 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3881esac 3882 3883 $ac_path_GREP_found && break 3 3884 done 3885 done 3886 done 3887IFS=$as_save_IFS 3888 if test -z "$ac_cv_path_GREP"; then 3889 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3890 fi 3891else 3892 ac_cv_path_GREP=$GREP 3893fi 3894 3895fi 3896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3897$as_echo "$ac_cv_path_GREP" >&6; } 3898 GREP="$ac_cv_path_GREP" 3899 3900 3901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3902$as_echo_n "checking for egrep... " >&6; } 3903if test "${ac_cv_path_EGREP+set}" = set; then : 3904 $as_echo_n "(cached) " >&6 3905else 3906 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3907 then ac_cv_path_EGREP="$GREP -E" 3908 else 3909 if test -z "$EGREP"; then 3910 ac_path_EGREP_found=false 3911 # Loop through the user's path and test for each of PROGNAME-LIST 3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3913for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3914do 3915 IFS=$as_save_IFS 3916 test -z "$as_dir" && as_dir=. 3917 for ac_prog in egrep; do 3918 for ac_exec_ext in '' $ac_executable_extensions; do 3919 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3920 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3921# Check for GNU ac_path_EGREP and select it if it is found. 3922 # Check for GNU $ac_path_EGREP 3923case `"$ac_path_EGREP" --version 2>&1` in 3924*GNU*) 3925 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3926*) 3927 ac_count=0 3928 $as_echo_n 0123456789 >"conftest.in" 3929 while : 3930 do 3931 cat "conftest.in" "conftest.in" >"conftest.tmp" 3932 mv "conftest.tmp" "conftest.in" 3933 cp "conftest.in" "conftest.nl" 3934 $as_echo 'EGREP' >> "conftest.nl" 3935 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3936 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3937 as_fn_arith $ac_count + 1 && ac_count=$as_val 3938 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3939 # Best one so far, save it but keep looking for a better one 3940 ac_cv_path_EGREP="$ac_path_EGREP" 3941 ac_path_EGREP_max=$ac_count 3942 fi 3943 # 10*(2^10) chars as input seems more than enough 3944 test $ac_count -gt 10 && break 3945 done 3946 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3947esac 3948 3949 $ac_path_EGREP_found && break 3 3950 done 3951 done 3952 done 3953IFS=$as_save_IFS 3954 if test -z "$ac_cv_path_EGREP"; then 3955 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3956 fi 3957else 3958 ac_cv_path_EGREP=$EGREP 3959fi 3960 3961 fi 3962fi 3963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3964$as_echo "$ac_cv_path_EGREP" >&6; } 3965 EGREP="$ac_cv_path_EGREP" 3966 3967 3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3969$as_echo_n "checking for ANSI C header files... " >&6; } 3970if test "${ac_cv_header_stdc+set}" = set; then : 3971 $as_echo_n "(cached) " >&6 3972else 3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3974/* end confdefs.h. */ 3975#include <stdlib.h> 3976#include <stdarg.h> 3977#include <string.h> 3978#include <float.h> 3979 3980int 3981main () 3982{ 3983 3984 ; 3985 return 0; 3986} 3987_ACEOF 3988if ac_fn_c_try_compile "$LINENO"; then : 3989 ac_cv_header_stdc=yes 3990else 3991 ac_cv_header_stdc=no 3992fi 3993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3994 3995if test $ac_cv_header_stdc = yes; then 3996 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3998/* end confdefs.h. */ 3999#include <string.h> 4000 4001_ACEOF 4002if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4003 $EGREP "memchr" >/dev/null 2>&1; then : 4004 4005else 4006 ac_cv_header_stdc=no 4007fi 4008rm -f conftest* 4009 4010fi 4011 4012if test $ac_cv_header_stdc = yes; then 4013 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4015/* end confdefs.h. */ 4016#include <stdlib.h> 4017 4018_ACEOF 4019if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4020 $EGREP "free" >/dev/null 2>&1; then : 4021 4022else 4023 ac_cv_header_stdc=no 4024fi 4025rm -f conftest* 4026 4027fi 4028 4029if test $ac_cv_header_stdc = yes; then 4030 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4031 if test "$cross_compiling" = yes; then : 4032 : 4033else 4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4035/* end confdefs.h. */ 4036#include <ctype.h> 4037#include <stdlib.h> 4038#if ((' ' & 0x0FF) == 0x020) 4039# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4040# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4041#else 4042# define ISLOWER(c) \ 4043 (('a' <= (c) && (c) <= 'i') \ 4044 || ('j' <= (c) && (c) <= 'r') \ 4045 || ('s' <= (c) && (c) <= 'z')) 4046# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4047#endif 4048 4049#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4050int 4051main () 4052{ 4053 int i; 4054 for (i = 0; i < 256; i++) 4055 if (XOR (islower (i), ISLOWER (i)) 4056 || toupper (i) != TOUPPER (i)) 4057 return 2; 4058 return 0; 4059} 4060_ACEOF 4061if ac_fn_c_try_run "$LINENO"; then : 4062 4063else 4064 ac_cv_header_stdc=no 4065fi 4066rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4067 conftest.$ac_objext conftest.beam conftest.$ac_ext 4068fi 4069 4070fi 4071fi 4072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4073$as_echo "$ac_cv_header_stdc" >&6; } 4074if test $ac_cv_header_stdc = yes; then 4075 4076$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4077 4078fi 4079 4080# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4081for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4082 inttypes.h stdint.h unistd.h 4083do : 4084 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4085ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4086" 4087eval as_val=\$$as_ac_Header 4088 if test "x$as_val" = x""yes; then : 4089 cat >>confdefs.h <<_ACEOF 4090#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4091_ACEOF 4092 4093fi 4094 4095done 4096 4097 4098for ac_header in ctype.h 4099do : 4100 ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default" 4101if test "x$ac_cv_header_ctype_h" = x""yes; then : 4102 cat >>confdefs.h <<_ACEOF 4103#define HAVE_CTYPE_H 1 4104_ACEOF 4105 4106fi 4107 4108done 4109 4110for ac_header in sys/stat.h 4111do : 4112 ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" 4113if test "x$ac_cv_header_sys_stat_h" = x""yes; then : 4114 cat >>confdefs.h <<_ACEOF 4115#define HAVE_SYS_STAT_H 1 4116_ACEOF 4117 4118fi 4119 4120done 4121 4122for ac_header in sys/time.h 4123do : 4124 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 4125if test "x$ac_cv_header_sys_time_h" = x""yes; then : 4126 cat >>confdefs.h <<_ACEOF 4127#define HAVE_SYS_TIME_H 1 4128_ACEOF 4129 4130fi 4131 4132done 4133 4134for ac_header in valgrind/callgrind.h 4135do : 4136 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/callgrind.h" "ac_cv_header_valgrind_callgrind_h" "$ac_includes_default" 4137if test "x$ac_cv_header_valgrind_callgrind_h" = x""yes; then : 4138 cat >>confdefs.h <<_ACEOF 4139#define HAVE_VALGRIND_CALLGRIND_H 1 4140_ACEOF 4141 4142fi 4143 4144done 4145 4146for ac_header in fcntl.h 4147do : 4148 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 4149if test "x$ac_cv_header_fcntl_h" = x""yes; then : 4150 cat >>confdefs.h <<_ACEOF 4151#define HAVE_FCNTL_H 1 4152_ACEOF 4153 4154fi 4155 4156done 4157 4158for ac_header in unistd.h 4159do : 4160 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 4161if test "x$ac_cv_header_unistd_h" = x""yes; then : 4162 cat >>confdefs.h <<_ACEOF 4163#define HAVE_UNISTD_H 1 4164_ACEOF 4165 4166fi 4167 4168done 4169 4170for ac_header in stdlib.h 4171do : 4172 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 4173if test "x$ac_cv_header_stdlib_h" = x""yes; then : 4174 cat >>confdefs.h <<_ACEOF 4175#define HAVE_STDLIB_H 1 4176_ACEOF 4177 4178fi 4179 4180done 4181 4182 4183# checks for compiler characteristics 4184ac_ext=c 4185ac_cpp='$CPP $CPPFLAGS' 4186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4188ac_compiler_gnu=$ac_cv_c_compiler_gnu 4189if test -n "$ac_tool_prefix"; then 4190 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4191set dummy ${ac_tool_prefix}gcc; ac_word=$2 4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4193$as_echo_n "checking for $ac_word... " >&6; } 4194if test "${ac_cv_prog_CC+set}" = set; then : 4195 $as_echo_n "(cached) " >&6 4196else 4197 if test -n "$CC"; then 4198 ac_cv_prog_CC="$CC" # Let the user override the test. 4199else 4200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4201for as_dir in $PATH 4202do 4203 IFS=$as_save_IFS 4204 test -z "$as_dir" && as_dir=. 4205 for ac_exec_ext in '' $ac_executable_extensions; do 4206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4207 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4209 break 2 4210 fi 4211done 4212 done 4213IFS=$as_save_IFS 4214 4215fi 4216fi 4217CC=$ac_cv_prog_CC 4218if test -n "$CC"; then 4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4220$as_echo "$CC" >&6; } 4221else 4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4223$as_echo "no" >&6; } 4224fi 4225 4226 4227fi 4228if test -z "$ac_cv_prog_CC"; then 4229 ac_ct_CC=$CC 4230 # Extract the first word of "gcc", so it can be a program name with args. 4231set dummy gcc; ac_word=$2 4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4233$as_echo_n "checking for $ac_word... " >&6; } 4234if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4235 $as_echo_n "(cached) " >&6 4236else 4237 if test -n "$ac_ct_CC"; then 4238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4239else 4240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4241for as_dir in $PATH 4242do 4243 IFS=$as_save_IFS 4244 test -z "$as_dir" && as_dir=. 4245 for ac_exec_ext in '' $ac_executable_extensions; do 4246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4247 ac_cv_prog_ac_ct_CC="gcc" 4248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4249 break 2 4250 fi 4251done 4252 done 4253IFS=$as_save_IFS 4254 4255fi 4256fi 4257ac_ct_CC=$ac_cv_prog_ac_ct_CC 4258if test -n "$ac_ct_CC"; then 4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4260$as_echo "$ac_ct_CC" >&6; } 4261else 4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4263$as_echo "no" >&6; } 4264fi 4265 4266 if test "x$ac_ct_CC" = x; then 4267 CC="" 4268 else 4269 case $cross_compiling:$ac_tool_warned in 4270yes:) 4271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4273ac_tool_warned=yes ;; 4274esac 4275 CC=$ac_ct_CC 4276 fi 4277else 4278 CC="$ac_cv_prog_CC" 4279fi 4280 4281if test -z "$CC"; then 4282 if test -n "$ac_tool_prefix"; then 4283 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4284set dummy ${ac_tool_prefix}cc; ac_word=$2 4285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4286$as_echo_n "checking for $ac_word... " >&6; } 4287if test "${ac_cv_prog_CC+set}" = set; then : 4288 $as_echo_n "(cached) " >&6 4289else 4290 if test -n "$CC"; then 4291 ac_cv_prog_CC="$CC" # Let the user override the test. 4292else 4293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4294for as_dir in $PATH 4295do 4296 IFS=$as_save_IFS 4297 test -z "$as_dir" && as_dir=. 4298 for ac_exec_ext in '' $ac_executable_extensions; do 4299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4300 ac_cv_prog_CC="${ac_tool_prefix}cc" 4301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4302 break 2 4303 fi 4304done 4305 done 4306IFS=$as_save_IFS 4307 4308fi 4309fi 4310CC=$ac_cv_prog_CC 4311if test -n "$CC"; then 4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4313$as_echo "$CC" >&6; } 4314else 4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4316$as_echo "no" >&6; } 4317fi 4318 4319 4320 fi 4321fi 4322if test -z "$CC"; then 4323 # Extract the first word of "cc", so it can be a program name with args. 4324set dummy cc; ac_word=$2 4325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4326$as_echo_n "checking for $ac_word... " >&6; } 4327if test "${ac_cv_prog_CC+set}" = set; then : 4328 $as_echo_n "(cached) " >&6 4329else 4330 if test -n "$CC"; then 4331 ac_cv_prog_CC="$CC" # Let the user override the test. 4332else 4333 ac_prog_rejected=no 4334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4335for as_dir in $PATH 4336do 4337 IFS=$as_save_IFS 4338 test -z "$as_dir" && as_dir=. 4339 for ac_exec_ext in '' $ac_executable_extensions; do 4340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4341 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4342 ac_prog_rejected=yes 4343 continue 4344 fi 4345 ac_cv_prog_CC="cc" 4346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4347 break 2 4348 fi 4349done 4350 done 4351IFS=$as_save_IFS 4352 4353if test $ac_prog_rejected = yes; then 4354 # We found a bogon in the path, so make sure we never use it. 4355 set dummy $ac_cv_prog_CC 4356 shift 4357 if test $# != 0; then 4358 # We chose a different compiler from the bogus one. 4359 # However, it has the same basename, so the bogon will be chosen 4360 # first if we set CC to just the basename; use the full file name. 4361 shift 4362 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4363 fi 4364fi 4365fi 4366fi 4367CC=$ac_cv_prog_CC 4368if test -n "$CC"; then 4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4370$as_echo "$CC" >&6; } 4371else 4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4373$as_echo "no" >&6; } 4374fi 4375 4376 4377fi 4378if test -z "$CC"; then 4379 if test -n "$ac_tool_prefix"; then 4380 for ac_prog in cl.exe 4381 do 4382 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4383set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4385$as_echo_n "checking for $ac_word... " >&6; } 4386if test "${ac_cv_prog_CC+set}" = set; then : 4387 $as_echo_n "(cached) " >&6 4388else 4389 if test -n "$CC"; then 4390 ac_cv_prog_CC="$CC" # Let the user override the test. 4391else 4392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4393for as_dir in $PATH 4394do 4395 IFS=$as_save_IFS 4396 test -z "$as_dir" && as_dir=. 4397 for ac_exec_ext in '' $ac_executable_extensions; do 4398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4399 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4401 break 2 4402 fi 4403done 4404 done 4405IFS=$as_save_IFS 4406 4407fi 4408fi 4409CC=$ac_cv_prog_CC 4410if test -n "$CC"; then 4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4412$as_echo "$CC" >&6; } 4413else 4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4415$as_echo "no" >&6; } 4416fi 4417 4418 4419 test -n "$CC" && break 4420 done 4421fi 4422if test -z "$CC"; then 4423 ac_ct_CC=$CC 4424 for ac_prog in cl.exe 4425do 4426 # Extract the first word of "$ac_prog", so it can be a program name with args. 4427set dummy $ac_prog; ac_word=$2 4428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4429$as_echo_n "checking for $ac_word... " >&6; } 4430if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4431 $as_echo_n "(cached) " >&6 4432else 4433 if test -n "$ac_ct_CC"; then 4434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4435else 4436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4437for as_dir in $PATH 4438do 4439 IFS=$as_save_IFS 4440 test -z "$as_dir" && as_dir=. 4441 for ac_exec_ext in '' $ac_executable_extensions; do 4442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4443 ac_cv_prog_ac_ct_CC="$ac_prog" 4444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4445 break 2 4446 fi 4447done 4448 done 4449IFS=$as_save_IFS 4450 4451fi 4452fi 4453ac_ct_CC=$ac_cv_prog_ac_ct_CC 4454if test -n "$ac_ct_CC"; then 4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4456$as_echo "$ac_ct_CC" >&6; } 4457else 4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4459$as_echo "no" >&6; } 4460fi 4461 4462 4463 test -n "$ac_ct_CC" && break 4464done 4465 4466 if test "x$ac_ct_CC" = x; then 4467 CC="" 4468 else 4469 case $cross_compiling:$ac_tool_warned in 4470yes:) 4471{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4473ac_tool_warned=yes ;; 4474esac 4475 CC=$ac_ct_CC 4476 fi 4477fi 4478 4479fi 4480 4481 4482test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4484as_fn_error "no acceptable C compiler found in \$PATH 4485See \`config.log' for more details." "$LINENO" 5; } 4486 4487# Provide some information about the compiler. 4488$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4489set X $ac_compile 4490ac_compiler=$2 4491for ac_option in --version -v -V -qversion; do 4492 { { ac_try="$ac_compiler $ac_option >&5" 4493case "(($ac_try" in 4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4495 *) ac_try_echo=$ac_try;; 4496esac 4497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4498$as_echo "$ac_try_echo"; } >&5 4499 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4500 ac_status=$? 4501 if test -s conftest.err; then 4502 sed '10a\ 4503... rest of stderr output deleted ... 4504 10q' conftest.err >conftest.er1 4505 cat conftest.er1 >&5 4506 fi 4507 rm -f conftest.er1 conftest.err 4508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4509 test $ac_status = 0; } 4510done 4511 4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4513$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4514if test "${ac_cv_c_compiler_gnu+set}" = set; then : 4515 $as_echo_n "(cached) " >&6 4516else 4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4518/* end confdefs.h. */ 4519 4520int 4521main () 4522{ 4523#ifndef __GNUC__ 4524 choke me 4525#endif 4526 4527 ; 4528 return 0; 4529} 4530_ACEOF 4531if ac_fn_c_try_compile "$LINENO"; then : 4532 ac_compiler_gnu=yes 4533else 4534 ac_compiler_gnu=no 4535fi 4536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4537ac_cv_c_compiler_gnu=$ac_compiler_gnu 4538 4539fi 4540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4541$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4542if test $ac_compiler_gnu = yes; then 4543 GCC=yes 4544else 4545 GCC= 4546fi 4547ac_test_CFLAGS=${CFLAGS+set} 4548ac_save_CFLAGS=$CFLAGS 4549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4550$as_echo_n "checking whether $CC accepts -g... " >&6; } 4551if test "${ac_cv_prog_cc_g+set}" = set; then : 4552 $as_echo_n "(cached) " >&6 4553else 4554 ac_save_c_werror_flag=$ac_c_werror_flag 4555 ac_c_werror_flag=yes 4556 ac_cv_prog_cc_g=no 4557 CFLAGS="-g" 4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4559/* end confdefs.h. */ 4560 4561int 4562main () 4563{ 4564 4565 ; 4566 return 0; 4567} 4568_ACEOF 4569if ac_fn_c_try_compile "$LINENO"; then : 4570 ac_cv_prog_cc_g=yes 4571else 4572 CFLAGS="" 4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4574/* end confdefs.h. */ 4575 4576int 4577main () 4578{ 4579 4580 ; 4581 return 0; 4582} 4583_ACEOF 4584if ac_fn_c_try_compile "$LINENO"; then : 4585 4586else 4587 ac_c_werror_flag=$ac_save_c_werror_flag 4588 CFLAGS="-g" 4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4590/* end confdefs.h. */ 4591 4592int 4593main () 4594{ 4595 4596 ; 4597 return 0; 4598} 4599_ACEOF 4600if ac_fn_c_try_compile "$LINENO"; then : 4601 ac_cv_prog_cc_g=yes 4602fi 4603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4604fi 4605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4606fi 4607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4608 ac_c_werror_flag=$ac_save_c_werror_flag 4609fi 4610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4611$as_echo "$ac_cv_prog_cc_g" >&6; } 4612if test "$ac_test_CFLAGS" = set; then 4613 CFLAGS=$ac_save_CFLAGS 4614elif test $ac_cv_prog_cc_g = yes; then 4615 if test "$GCC" = yes; then 4616 CFLAGS="-g -O2" 4617 else 4618 CFLAGS="-g" 4619 fi 4620else 4621 if test "$GCC" = yes; then 4622 CFLAGS="-O2" 4623 else 4624 CFLAGS= 4625 fi 4626fi 4627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4628$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4629if test "${ac_cv_prog_cc_c89+set}" = set; then : 4630 $as_echo_n "(cached) " >&6 4631else 4632 ac_cv_prog_cc_c89=no 4633ac_save_CC=$CC 4634cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4635/* end confdefs.h. */ 4636#include <stdarg.h> 4637#include <stdio.h> 4638#include <sys/types.h> 4639#include <sys/stat.h> 4640/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4641struct buf { int x; }; 4642FILE * (*rcsopen) (struct buf *, struct stat *, int); 4643static char *e (p, i) 4644 char **p; 4645 int i; 4646{ 4647 return p[i]; 4648} 4649static char *f (char * (*g) (char **, int), char **p, ...) 4650{ 4651 char *s; 4652 va_list v; 4653 va_start (v,p); 4654 s = g (p, va_arg (v,int)); 4655 va_end (v); 4656 return s; 4657} 4658 4659/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4660 function prototypes and stuff, but not '\xHH' hex character constants. 4661 These don't provoke an error unfortunately, instead are silently treated 4662 as 'x'. The following induces an error, until -std is added to get 4663 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4664 array size at least. It's necessary to write '\x00'==0 to get something 4665 that's true only with -std. */ 4666int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4667 4668/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4669 inside strings and character constants. */ 4670#define FOO(x) 'x' 4671int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4672 4673int test (int i, double x); 4674struct s1 {int (*f) (int a);}; 4675struct s2 {int (*f) (double a);}; 4676int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4677int argc; 4678char **argv; 4679int 4680main () 4681{ 4682return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4683 ; 4684 return 0; 4685} 4686_ACEOF 4687for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4688 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4689do 4690 CC="$ac_save_CC $ac_arg" 4691 if ac_fn_c_try_compile "$LINENO"; then : 4692 ac_cv_prog_cc_c89=$ac_arg 4693fi 4694rm -f core conftest.err conftest.$ac_objext 4695 test "x$ac_cv_prog_cc_c89" != "xno" && break 4696done 4697rm -f conftest.$ac_ext 4698CC=$ac_save_CC 4699 4700fi 4701# AC_CACHE_VAL 4702case "x$ac_cv_prog_cc_c89" in 4703 x) 4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4705$as_echo "none needed" >&6; } ;; 4706 xno) 4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4708$as_echo "unsupported" >&6; } ;; 4709 *) 4710 CC="$CC $ac_cv_prog_cc_c89" 4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4712$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4713esac 4714if test "x$ac_cv_prog_cc_c89" != xno; then : 4715 4716fi 4717 4718ac_ext=c 4719ac_cpp='$CPP $CPPFLAGS' 4720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4722ac_compiler_gnu=$ac_cv_c_compiler_gnu 4723 4724depcc="$CC" am_compiler_list= 4725 4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4727$as_echo_n "checking dependency style of $depcc... " >&6; } 4728if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4729 $as_echo_n "(cached) " >&6 4730else 4731 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4732 # We make a subdir and do the tests there. Otherwise we can end up 4733 # making bogus files that we don't know about and never remove. For 4734 # instance it was reported that on HP-UX the gcc test will end up 4735 # making a dummy file named `D' -- because `-MD' means `put the output 4736 # in D'. 4737 mkdir conftest.dir 4738 # Copy depcomp to subdir because otherwise we won't find it if we're 4739 # using a relative directory. 4740 cp "$am_depcomp" conftest.dir 4741 cd conftest.dir 4742 # We will build objects and dependencies in a subdirectory because 4743 # it helps to detect inapplicable dependency modes. For instance 4744 # both Tru64's cc and ICC support -MD to output dependencies as a 4745 # side effect of compilation, but ICC will put the dependencies in 4746 # the current directory while Tru64 will put them in the object 4747 # directory. 4748 mkdir sub 4749 4750 am_cv_CC_dependencies_compiler_type=none 4751 if test "$am_compiler_list" = ""; then 4752 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4753 fi 4754 am__universal=false 4755 case " $depcc " in #( 4756 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4757 esac 4758 4759 for depmode in $am_compiler_list; do 4760 # Setup a source with many dependencies, because some compilers 4761 # like to wrap large dependency lists on column 80 (with \), and 4762 # we should not choose a depcomp mode which is confused by this. 4763 # 4764 # We need to recreate these files for each test, as the compiler may 4765 # overwrite some of them when testing with obscure command lines. 4766 # This happens at least with the AIX C compiler. 4767 : > sub/conftest.c 4768 for i in 1 2 3 4 5 6; do 4769 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4770 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4771 # Solaris 8's {/usr,}/bin/sh. 4772 touch sub/conftst$i.h 4773 done 4774 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4775 4776 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4777 # mode. It turns out that the SunPro C++ compiler does not properly 4778 # handle `-M -o', and we need to detect this. Also, some Intel 4779 # versions had trouble with output in subdirs 4780 am__obj=sub/conftest.${OBJEXT-o} 4781 am__minus_obj="-o $am__obj" 4782 case $depmode in 4783 gcc) 4784 # This depmode causes a compiler race in universal mode. 4785 test "$am__universal" = false || continue 4786 ;; 4787 nosideeffect) 4788 # after this tag, mechanisms are not by side-effect, so they'll 4789 # only be used when explicitly requested 4790 if test "x$enable_dependency_tracking" = xyes; then 4791 continue 4792 else 4793 break 4794 fi 4795 ;; 4796 msvisualcpp | msvcmsys) 4797 # This compiler won't grok `-c -o', but also, the minuso test has 4798 # not run yet. These depmodes are late enough in the game, and 4799 # so weak that their functioning should not be impacted. 4800 am__obj=conftest.${OBJEXT-o} 4801 am__minus_obj= 4802 ;; 4803 none) break ;; 4804 esac 4805 if depmode=$depmode \ 4806 source=sub/conftest.c object=$am__obj \ 4807 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4808 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4809 >/dev/null 2>conftest.err && 4810 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4811 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4812 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4813 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4814 # icc doesn't choke on unknown options, it will just issue warnings 4815 # or remarks (even with -Werror). So we grep stderr for any message 4816 # that says an option was ignored or not supported. 4817 # When given -MP, icc 7.0 and 7.1 complain thusly: 4818 # icc: Command line warning: ignoring option '-M'; no argument required 4819 # The diagnosis changed in icc 8.0: 4820 # icc: Command line remark: option '-MP' not supported 4821 if (grep 'ignoring option' conftest.err || 4822 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4823 am_cv_CC_dependencies_compiler_type=$depmode 4824 break 4825 fi 4826 fi 4827 done 4828 4829 cd .. 4830 rm -rf conftest.dir 4831else 4832 am_cv_CC_dependencies_compiler_type=none 4833fi 4834 4835fi 4836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4837$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4838CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4839 4840 if 4841 test "x$enable_dependency_tracking" != xno \ 4842 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4843 am__fastdepCC_TRUE= 4844 am__fastdepCC_FALSE='#' 4845else 4846 am__fastdepCC_TRUE='#' 4847 am__fastdepCC_FALSE= 4848fi 4849 4850 4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4852$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4853if test "${ac_cv_c_const+set}" = set; then : 4854 $as_echo_n "(cached) " >&6 4855else 4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4857/* end confdefs.h. */ 4858 4859int 4860main () 4861{ 4862/* FIXME: Include the comments suggested by Paul. */ 4863#ifndef __cplusplus 4864 /* Ultrix mips cc rejects this. */ 4865 typedef int charset[2]; 4866 const charset cs; 4867 /* SunOS 4.1.1 cc rejects this. */ 4868 char const *const *pcpcc; 4869 char **ppc; 4870 /* NEC SVR4.0.2 mips cc rejects this. */ 4871 struct point {int x, y;}; 4872 static struct point const zero = {0,0}; 4873 /* AIX XL C 1.02.0.0 rejects this. 4874 It does not let you subtract one const X* pointer from another in 4875 an arm of an if-expression whose if-part is not a constant 4876 expression */ 4877 const char *g = "string"; 4878 pcpcc = &g + (g ? g-g : 0); 4879 /* HPUX 7.0 cc rejects these. */ 4880 ++pcpcc; 4881 ppc = (char**) pcpcc; 4882 pcpcc = (char const *const *) ppc; 4883 { /* SCO 3.2v4 cc rejects this. */ 4884 char *t; 4885 char const *s = 0 ? (char *) 0 : (char const *) 0; 4886 4887 *t++ = 0; 4888 if (s) return 0; 4889 } 4890 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4891 int x[] = {25, 17}; 4892 const int *foo = &x[0]; 4893 ++foo; 4894 } 4895 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4896 typedef const int *iptr; 4897 iptr p = 0; 4898 ++p; 4899 } 4900 { /* AIX XL C 1.02.0.0 rejects this saying 4901 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4902 struct s { int j; const int *ap[3]; }; 4903 struct s *b; b->j = 5; 4904 } 4905 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4906 const int foo = 10; 4907 if (!foo) return 0; 4908 } 4909 return !cs[0] && !zero.x; 4910#endif 4911 4912 ; 4913 return 0; 4914} 4915_ACEOF 4916if ac_fn_c_try_compile "$LINENO"; then : 4917 ac_cv_c_const=yes 4918else 4919 ac_cv_c_const=no 4920fi 4921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4922fi 4923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4924$as_echo "$ac_cv_c_const" >&6; } 4925if test $ac_cv_c_const = no; then 4926 4927$as_echo "#define const /**/" >>confdefs.h 4928 4929fi 4930 4931for ac_header in stdlib.h 4932do : 4933 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 4934if test "x$ac_cv_header_stdlib_h" = x""yes; then : 4935 cat >>confdefs.h <<_ACEOF 4936#define HAVE_STDLIB_H 1 4937_ACEOF 4938 4939fi 4940 4941done 4942 4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 4944$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 4945if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : 4946 $as_echo_n "(cached) " >&6 4947else 4948 if test "$cross_compiling" = yes; then : 4949 ac_cv_func_malloc_0_nonnull=no 4950else 4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4952/* end confdefs.h. */ 4953#if defined STDC_HEADERS || defined HAVE_STDLIB_H 4954# include <stdlib.h> 4955#else 4956char *malloc (); 4957#endif 4958 4959int 4960main () 4961{ 4962return ! malloc (0); 4963 ; 4964 return 0; 4965} 4966_ACEOF 4967if ac_fn_c_try_run "$LINENO"; then : 4968 ac_cv_func_malloc_0_nonnull=yes 4969else 4970 ac_cv_func_malloc_0_nonnull=no 4971fi 4972rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4973 conftest.$ac_objext conftest.beam conftest.$ac_ext 4974fi 4975 4976fi 4977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 4978$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 4979if test $ac_cv_func_malloc_0_nonnull = yes; then : 4980 4981$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 4982 4983else 4984 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 4985 4986 case " $LIBOBJS " in 4987 *" malloc.$ac_objext "* ) ;; 4988 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 4989 ;; 4990esac 4991 4992 4993$as_echo "#define malloc rpl_malloc" >>confdefs.h 4994 4995fi 4996 4997 4998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 4999$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } 5000if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then : 5001 $as_echo_n "(cached) " >&6 5002else 5003 rm -f conftest.sym conftest.file 5004echo >conftest.file 5005if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 5006 if test "$cross_compiling" = yes; then : 5007 ac_cv_func_lstat_dereferences_slashed_symlink=no 5008else 5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5010/* end confdefs.h. */ 5011$ac_includes_default 5012int 5013main () 5014{ 5015struct stat sbuf; 5016 /* Linux will dereference the symlink and fail, as required by POSIX. 5017 That is better in the sense that it means we will not 5018 have to compile and use the lstat wrapper. */ 5019 return lstat ("conftest.sym/", &sbuf) == 0; 5020 ; 5021 return 0; 5022} 5023_ACEOF 5024if ac_fn_c_try_run "$LINENO"; then : 5025 ac_cv_func_lstat_dereferences_slashed_symlink=yes 5026else 5027 ac_cv_func_lstat_dereferences_slashed_symlink=no 5028fi 5029rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5030 conftest.$ac_objext conftest.beam conftest.$ac_ext 5031fi 5032 5033else 5034 # If the `ln -s' command failed, then we probably don't even 5035 # have an lstat function. 5036 ac_cv_func_lstat_dereferences_slashed_symlink=no 5037fi 5038rm -f conftest.sym conftest.file 5039 5040fi 5041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 5042$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 5043 5044test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 5045 5046cat >>confdefs.h <<_ACEOF 5047#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 5048_ACEOF 5049 5050 5051if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then 5052 case " $LIBOBJS " in 5053 *" lstat.$ac_objext "* ) ;; 5054 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 5055 ;; 5056esac 5057 5058fi 5059 5060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 5061$as_echo_n "checking whether stat accepts an empty string... " >&6; } 5062if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then : 5063 $as_echo_n "(cached) " >&6 5064else 5065 if test "$cross_compiling" = yes; then : 5066 ac_cv_func_stat_empty_string_bug=yes 5067else 5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5069/* end confdefs.h. */ 5070$ac_includes_default 5071int 5072main () 5073{ 5074struct stat sbuf; 5075 return stat ("", &sbuf) == 0; 5076 ; 5077 return 0; 5078} 5079_ACEOF 5080if ac_fn_c_try_run "$LINENO"; then : 5081 ac_cv_func_stat_empty_string_bug=no 5082else 5083 ac_cv_func_stat_empty_string_bug=yes 5084fi 5085rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5086 conftest.$ac_objext conftest.beam conftest.$ac_ext 5087fi 5088 5089fi 5090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 5091$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } 5092if test $ac_cv_func_stat_empty_string_bug = yes; then 5093 case " $LIBOBJS " in 5094 *" stat.$ac_objext "* ) ;; 5095 *) LIBOBJS="$LIBOBJS stat.$ac_objext" 5096 ;; 5097esac 5098 5099 5100cat >>confdefs.h <<_ACEOF 5101#define HAVE_STAT_EMPTY_STRING_BUG 1 5102_ACEOF 5103 5104fi 5105 5106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 5107$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 5108if test "${ac_cv_header_stdbool_h+set}" = set; then : 5109 $as_echo_n "(cached) " >&6 5110else 5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5112/* end confdefs.h. */ 5113 5114#include <stdbool.h> 5115#ifndef bool 5116 "error: bool is not defined" 5117#endif 5118#ifndef false 5119 "error: false is not defined" 5120#endif 5121#if false 5122 "error: false is not 0" 5123#endif 5124#ifndef true 5125 "error: true is not defined" 5126#endif 5127#if true != 1 5128 "error: true is not 1" 5129#endif 5130#ifndef __bool_true_false_are_defined 5131 "error: __bool_true_false_are_defined is not defined" 5132#endif 5133 5134 struct s { _Bool s: 1; _Bool t; } s; 5135 5136 char a[true == 1 ? 1 : -1]; 5137 char b[false == 0 ? 1 : -1]; 5138 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 5139 char d[(bool) 0.5 == true ? 1 : -1]; 5140 bool e = &s; 5141 char f[(_Bool) 0.0 == false ? 1 : -1]; 5142 char g[true]; 5143 char h[sizeof (_Bool)]; 5144 char i[sizeof s.t]; 5145 enum { j = false, k = true, l = false * true, m = true * 256 }; 5146 /* The following fails for 5147 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 5148 _Bool n[m]; 5149 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 5150 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 5151# if defined __xlc__ || defined __GNUC__ 5152 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 5153 reported by James Lemley on 2005-10-05; see 5154 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html 5155 This test is not quite right, since xlc is allowed to 5156 reject this program, as the initializer for xlcbug is 5157 not one of the forms that C requires support for. 5158 However, doing the test right would require a runtime 5159 test, and that would make cross-compilation harder. 5160 Let us hope that IBM fixes the xlc bug, and also adds 5161 support for this kind of constant expression. In the 5162 meantime, this test will reject xlc, which is OK, since 5163 our stdbool.h substitute should suffice. We also test 5164 this with GCC, where it should work, to detect more 5165 quickly whether someone messes up the test in the 5166 future. */ 5167 char digs[] = "0123456789"; 5168 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); 5169# endif 5170 /* Catch a bug in an HP-UX C compiler. See 5171 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 5172 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 5173 */ 5174 _Bool q = true; 5175 _Bool *pq = &q; 5176 5177int 5178main () 5179{ 5180 5181 *pq |= q; 5182 *pq |= ! q; 5183 /* Refer to every declared value, to avoid compiler optimizations. */ 5184 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 5185 + !m + !n + !o + !p + !q + !pq); 5186 5187 ; 5188 return 0; 5189} 5190_ACEOF 5191if ac_fn_c_try_compile "$LINENO"; then : 5192 ac_cv_header_stdbool_h=yes 5193else 5194 ac_cv_header_stdbool_h=no 5195fi 5196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5197fi 5198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 5199$as_echo "$ac_cv_header_stdbool_h" >&6; } 5200ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 5201if test "x$ac_cv_type__Bool" = x""yes; then : 5202 5203cat >>confdefs.h <<_ACEOF 5204#define HAVE__BOOL 1 5205_ACEOF 5206 5207 5208fi 5209 5210if test $ac_cv_header_stdbool_h = yes; then 5211 5212$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 5213 5214fi 5215 5216 5217# checks for libraries 5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5 5219$as_echo_n "checking for library containing zlibVersion... " >&6; } 5220if test "${ac_cv_search_zlibVersion+set}" = set; then : 5221 $as_echo_n "(cached) " >&6 5222else 5223 ac_func_search_save_LIBS=$LIBS 5224cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5225/* end confdefs.h. */ 5226 5227/* Override any GCC internal prototype to avoid an error. 5228 Use char because int might match the return type of a GCC 5229 builtin and then its argument prototype would still apply. */ 5230#ifdef __cplusplus 5231extern "C" 5232#endif 5233char zlibVersion (); 5234int 5235main () 5236{ 5237return zlibVersion (); 5238 ; 5239 return 0; 5240} 5241_ACEOF 5242for ac_lib in '' z; do 5243 if test -z "$ac_lib"; then 5244 ac_res="none required" 5245 else 5246 ac_res=-l$ac_lib 5247 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5248 fi 5249 if ac_fn_c_try_link "$LINENO"; then : 5250 ac_cv_search_zlibVersion=$ac_res 5251fi 5252rm -f core conftest.err conftest.$ac_objext \ 5253 conftest$ac_exeext 5254 if test "${ac_cv_search_zlibVersion+set}" = set; then : 5255 break 5256fi 5257done 5258if test "${ac_cv_search_zlibVersion+set}" = set; then : 5259 5260else 5261 ac_cv_search_zlibVersion=no 5262fi 5263rm conftest.$ac_ext 5264LIBS=$ac_func_search_save_LIBS 5265fi 5266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5 5267$as_echo "$ac_cv_search_zlibVersion" >&6; } 5268ac_res=$ac_cv_search_zlibVersion 5269if test "$ac_res" != no; then : 5270 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5271 5272fi 5273 5274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5 5275$as_echo_n "checking for library containing sqrt... " >&6; } 5276if test "${ac_cv_search_sqrt+set}" = set; then : 5277 $as_echo_n "(cached) " >&6 5278else 5279 ac_func_search_save_LIBS=$LIBS 5280cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5281/* end confdefs.h. */ 5282 5283/* Override any GCC internal prototype to avoid an error. 5284 Use char because int might match the return type of a GCC 5285 builtin and then its argument prototype would still apply. */ 5286#ifdef __cplusplus 5287extern "C" 5288#endif 5289char sqrt (); 5290int 5291main () 5292{ 5293return sqrt (); 5294 ; 5295 return 0; 5296} 5297_ACEOF 5298for ac_lib in '' m; do 5299 if test -z "$ac_lib"; then 5300 ac_res="none required" 5301 else 5302 ac_res=-l$ac_lib 5303 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5304 fi 5305 if ac_fn_c_try_link "$LINENO"; then : 5306 ac_cv_search_sqrt=$ac_res 5307fi 5308rm -f core conftest.err conftest.$ac_objext \ 5309 conftest$ac_exeext 5310 if test "${ac_cv_search_sqrt+set}" = set; then : 5311 break 5312fi 5313done 5314if test "${ac_cv_search_sqrt+set}" = set; then : 5315 5316else 5317 ac_cv_search_sqrt=no 5318fi 5319rm conftest.$ac_ext 5320LIBS=$ac_func_search_save_LIBS 5321fi 5322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5 5323$as_echo "$ac_cv_search_sqrt" >&6; } 5324ac_res=$ac_cv_search_sqrt 5325if test "$ac_res" != no; then : 5326 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5327 5328fi 5329 5330 5331 5332if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5333 if test -n "$ac_tool_prefix"; then 5334 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5335set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5337$as_echo_n "checking for $ac_word... " >&6; } 5338if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 5339 $as_echo_n "(cached) " >&6 5340else 5341 case $PKG_CONFIG in 5342 [\\/]* | ?:[\\/]*) 5343 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5344 ;; 5345 *) 5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5347for as_dir in $PATH 5348do 5349 IFS=$as_save_IFS 5350 test -z "$as_dir" && as_dir=. 5351 for ac_exec_ext in '' $ac_executable_extensions; do 5352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5353 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5355 break 2 5356 fi 5357done 5358 done 5359IFS=$as_save_IFS 5360 5361 ;; 5362esac 5363fi 5364PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5365if test -n "$PKG_CONFIG"; then 5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5367$as_echo "$PKG_CONFIG" >&6; } 5368else 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5370$as_echo "no" >&6; } 5371fi 5372 5373 5374fi 5375if test -z "$ac_cv_path_PKG_CONFIG"; then 5376 ac_pt_PKG_CONFIG=$PKG_CONFIG 5377 # Extract the first word of "pkg-config", so it can be a program name with args. 5378set dummy pkg-config; ac_word=$2 5379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5380$as_echo_n "checking for $ac_word... " >&6; } 5381if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 5382 $as_echo_n "(cached) " >&6 5383else 5384 case $ac_pt_PKG_CONFIG in 5385 [\\/]* | ?:[\\/]*) 5386 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5387 ;; 5388 *) 5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5390for as_dir in $PATH 5391do 5392 IFS=$as_save_IFS 5393 test -z "$as_dir" && as_dir=. 5394 for ac_exec_ext in '' $ac_executable_extensions; do 5395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5396 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5398 break 2 5399 fi 5400done 5401 done 5402IFS=$as_save_IFS 5403 5404 ;; 5405esac 5406fi 5407ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5408if test -n "$ac_pt_PKG_CONFIG"; then 5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5410$as_echo "$ac_pt_PKG_CONFIG" >&6; } 5411else 5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5413$as_echo "no" >&6; } 5414fi 5415 5416 if test "x$ac_pt_PKG_CONFIG" = x; then 5417 PKG_CONFIG="" 5418 else 5419 case $cross_compiling:$ac_tool_warned in 5420yes:) 5421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5423ac_tool_warned=yes ;; 5424esac 5425 PKG_CONFIG=$ac_pt_PKG_CONFIG 5426 fi 5427else 5428 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5429fi 5430 5431fi 5432if test -n "$PKG_CONFIG"; then 5433 _pkg_min_version=0.9.0 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5435$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5436 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5438$as_echo "yes" >&6; } 5439 else 5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5441$as_echo "no" >&6; } 5442 PKG_CONFIG="" 5443 fi 5444 5445fi 5446 5447pkg_failed=no 5448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 5449$as_echo_n "checking for PNG... " >&6; } 5450 5451if test -n "$PNG_CFLAGS"; then 5452 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 5453 elif test -n "$PKG_CONFIG"; then 5454 if test -n "$PKG_CONFIG" && \ 5455 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2.0\""; } >&5 5456 ($PKG_CONFIG --exists --print-errors "libpng >= 1.2.0") 2>&5 5457 ac_status=$? 5458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5459 test $ac_status = 0; }; then 5460 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.2.0" 2>/dev/null` 5461else 5462 pkg_failed=yes 5463fi 5464 else 5465 pkg_failed=untried 5466fi 5467if test -n "$PNG_LIBS"; then 5468 pkg_cv_PNG_LIBS="$PNG_LIBS" 5469 elif test -n "$PKG_CONFIG"; then 5470 if test -n "$PKG_CONFIG" && \ 5471 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2.0\""; } >&5 5472 ($PKG_CONFIG --exists --print-errors "libpng >= 1.2.0") 2>&5 5473 ac_status=$? 5474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5475 test $ac_status = 0; }; then 5476 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.2.0" 2>/dev/null` 5477else 5478 pkg_failed=yes 5479fi 5480 else 5481 pkg_failed=untried 5482fi 5483 5484 5485 5486if test $pkg_failed = yes; then 5487 5488if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 5489 _pkg_short_errors_supported=yes 5490else 5491 _pkg_short_errors_supported=no 5492fi 5493 if test $_pkg_short_errors_supported = yes; then 5494 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng >= 1.2.0" 2>&1` 5495 else 5496 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng >= 1.2.0" 2>&1` 5497 fi 5498 # Put the nasty error message in config.log where it belongs 5499 echo "$PNG_PKG_ERRORS" >&5 5500 5501 as_fn_error "Package requirements (libpng >= 1.2.0) were not met: 5502 5503$PNG_PKG_ERRORS 5504 5505Consider adjusting the PKG_CONFIG_PATH environment variable if you 5506installed software in a non-standard prefix. 5507 5508Alternatively, you may set the environment variables PNG_CFLAGS 5509and PNG_LIBS to avoid the need to call pkg-config. 5510See the pkg-config man page for more details. 5511" "$LINENO" 5 5512elif test $pkg_failed = untried; then 5513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5515as_fn_error "The pkg-config script could not be found or is too old. Make sure it 5516is in your PATH or set the PKG_CONFIG environment variable to the full 5517path to pkg-config. 5518 5519Alternatively, you may set the environment variables PNG_CFLAGS 5520and PNG_LIBS to avoid the need to call pkg-config. 5521See the pkg-config man page for more details. 5522 5523To get pkg-config, see <http://pkg-config.freedesktop.org/>. 5524See \`config.log' for more details." "$LINENO" 5; } 5525else 5526 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 5527 PNG_LIBS=$pkg_cv_PNG_LIBS 5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5529$as_echo "yes" >&6; } 5530 : 5531fi 5532 5533# checks for library functions 5534for ac_func in getopt 5535do : 5536 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" 5537if test "x$ac_cv_func_getopt" = x""yes; then : 5538 cat >>confdefs.h <<_ACEOF 5539#define HAVE_GETOPT 1 5540_ACEOF 5541 5542fi 5543done 5544 5545for ac_func in floor 5546do : 5547 ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor" 5548if test "x$ac_cv_func_floor" = x""yes; then : 5549 cat >>confdefs.h <<_ACEOF 5550#define HAVE_FLOOR 1 5551_ACEOF 5552 5553fi 5554done 5555 5556for ac_func in memmove 5557do : 5558 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 5559if test "x$ac_cv_func_memmove" = x""yes; then : 5560 cat >>confdefs.h <<_ACEOF 5561#define HAVE_MEMMOVE 1 5562_ACEOF 5563 5564fi 5565done 5566 5567for ac_func in memset 5568do : 5569 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset" 5570if test "x$ac_cv_func_memset" = x""yes; then : 5571 cat >>confdefs.h <<_ACEOF 5572#define HAVE_MEMSET 1 5573_ACEOF 5574 5575fi 5576done 5577 5578for ac_func in pow 5579do : 5580 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" 5581if test "x$ac_cv_func_pow" = x""yes; then : 5582 cat >>confdefs.h <<_ACEOF 5583#define HAVE_POW 1 5584_ACEOF 5585 5586fi 5587done 5588 5589for ac_func in sqrt 5590do : 5591 ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt" 5592if test "x$ac_cv_func_sqrt" = x""yes; then : 5593 cat >>confdefs.h <<_ACEOF 5594#define HAVE_SQRT 1 5595_ACEOF 5596 5597fi 5598done 5599 5600for ac_func in strchr 5601do : 5602 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr" 5603if test "x$ac_cv_func_strchr" = x""yes; then : 5604 cat >>confdefs.h <<_ACEOF 5605#define HAVE_STRCHR 1 5606_ACEOF 5607 5608fi 5609done 5610 5611for ac_func in strrchr 5612do : 5613 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr" 5614if test "x$ac_cv_func_strrchr" = x""yes; then : 5615 cat >>confdefs.h <<_ACEOF 5616#define HAVE_STRRCHR 1 5617_ACEOF 5618 5619fi 5620done 5621 5622 5623ac_config_headers="$ac_config_headers src/config.h" 5624 5625 if test $ac_cv_func_getopt = "no" ; then 5626 USE_FREEGETOPT_TRUE= 5627 USE_FREEGETOPT_FALSE='#' 5628else 5629 USE_FREEGETOPT_TRUE='#' 5630 USE_FREEGETOPT_FALSE= 5631fi 5632 5633ac_config_files="$ac_config_files Makefile src/Makefile freegetopt/Makefile" 5634 5635cat >confcache <<\_ACEOF 5636# This file is a shell script that caches the results of configure 5637# tests run on this system so they can be shared between configure 5638# scripts and configure runs, see configure's option --config-cache. 5639# It is not useful on other systems. If it contains results you don't 5640# want to keep, you may remove or edit it. 5641# 5642# config.status only pays attention to the cache file if you give it 5643# the --recheck option to rerun configure. 5644# 5645# `ac_cv_env_foo' variables (set or unset) will be overridden when 5646# loading this file, other *unset* `ac_cv_foo' will be assigned the 5647# following values. 5648 5649_ACEOF 5650 5651# The following way of writing the cache mishandles newlines in values, 5652# but we know of no workaround that is simple, portable, and efficient. 5653# So, we kill variables containing newlines. 5654# Ultrix sh set writes to stderr and can't be redirected directly, 5655# and sets the high bit in the cache file unless we assign to the vars. 5656( 5657 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 5658 eval ac_val=\$$ac_var 5659 case $ac_val in #( 5660 *${as_nl}*) 5661 case $ac_var in #( 5662 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 5663$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 5664 esac 5665 case $ac_var in #( 5666 _ | IFS | as_nl) ;; #( 5667 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 5668 *) { eval $ac_var=; unset $ac_var;} ;; 5669 esac ;; 5670 esac 5671 done 5672 5673 (set) 2>&1 | 5674 case $as_nl`(ac_space=' '; set) 2>&1` in #( 5675 *${as_nl}ac_space=\ *) 5676 # `set' does not quote correctly, so add quotes: double-quote 5677 # substitution turns \\\\ into \\, and sed turns \\ into \. 5678 sed -n \ 5679 "s/'/'\\\\''/g; 5680 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5681 ;; #( 5682 *) 5683 # `set' quotes correctly as required by POSIX, so do not add quotes. 5684 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 5685 ;; 5686 esac | 5687 sort 5688) | 5689 sed ' 5690 /^ac_cv_env_/b end 5691 t clear 5692 :clear 5693 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5694 t end 5695 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5696 :end' >>confcache 5697if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 5698 if test -w "$cache_file"; then 5699 test "x$cache_file" != "x/dev/null" && 5700 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 5701$as_echo "$as_me: updating cache $cache_file" >&6;} 5702 cat confcache >$cache_file 5703 else 5704 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 5705$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 5706 fi 5707fi 5708rm -f confcache 5709 5710test "x$prefix" = xNONE && prefix=$ac_default_prefix 5711# Let make expand exec_prefix. 5712test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5713 5714DEFS=-DHAVE_CONFIG_H 5715 5716ac_libobjs= 5717ac_ltlibobjs= 5718for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5719 # 1. Remove the extension, and $U if already installed. 5720 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 5721 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 5722 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 5723 # will be set to the directory where LIBOBJS objects are built. 5724 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 5725 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 5726done 5727LIBOBJS=$ac_libobjs 5728 5729LTLIBOBJS=$ac_ltlibobjs 5730 5731 5732 if test -n "$EXEEXT"; then 5733 am__EXEEXT_TRUE= 5734 am__EXEEXT_FALSE='#' 5735else 5736 am__EXEEXT_TRUE='#' 5737 am__EXEEXT_FALSE= 5738fi 5739 5740if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 5741 as_fn_error "conditional \"AMDEP\" was never defined. 5742Usually this means the macro was only invoked conditionally." "$LINENO" 5 5743fi 5744if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 5745 as_fn_error "conditional \"am__fastdepCC\" was never defined. 5746Usually this means the macro was only invoked conditionally." "$LINENO" 5 5747fi 5748if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 5749 as_fn_error "conditional \"am__fastdepCC\" was never defined. 5750Usually this means the macro was only invoked conditionally." "$LINENO" 5 5751fi 5752if test -z "${USE_FREEGETOPT_TRUE}" && test -z "${USE_FREEGETOPT_FALSE}"; then 5753 as_fn_error "conditional \"USE_FREEGETOPT\" was never defined. 5754Usually this means the macro was only invoked conditionally." "$LINENO" 5 5755fi 5756 5757: ${CONFIG_STATUS=./config.status} 5758ac_write_fail=0 5759ac_clean_files_save=$ac_clean_files 5760ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5761{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 5762$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 5763as_write_fail=0 5764cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 5765#! $SHELL 5766# Generated by $as_me. 5767# Run this file to recreate the current configuration. 5768# Compiler output produced by configure, useful for debugging 5769# configure, is in config.log if it exists. 5770 5771debug=false 5772ac_cs_recheck=false 5773ac_cs_silent=false 5774 5775SHELL=\${CONFIG_SHELL-$SHELL} 5776export SHELL 5777_ASEOF 5778cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 5779## -------------------- ## 5780## M4sh Initialization. ## 5781## -------------------- ## 5782 5783# Be more Bourne compatible 5784DUALCASE=1; export DUALCASE # for MKS sh 5785if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 5786 emulate sh 5787 NULLCMD=: 5788 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 5789 # is contrary to our usage. Disable this feature. 5790 alias -g '${1+"$@"}'='"$@"' 5791 setopt NO_GLOB_SUBST 5792else 5793 case `(set -o) 2>/dev/null` in #( 5794 *posix*) : 5795 set -o posix ;; #( 5796 *) : 5797 ;; 5798esac 5799fi 5800 5801 5802as_nl=' 5803' 5804export as_nl 5805# Printing a long string crashes Solaris 7 /usr/bin/printf. 5806as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5807as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 5808as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 5809# Prefer a ksh shell builtin over an external printf program on Solaris, 5810# but without wasting forks for bash or zsh. 5811if test -z "$BASH_VERSION$ZSH_VERSION" \ 5812 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 5813 as_echo='print -r --' 5814 as_echo_n='print -rn --' 5815elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5816 as_echo='printf %s\n' 5817 as_echo_n='printf %s' 5818else 5819 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5820 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5821 as_echo_n='/usr/ucb/echo -n' 5822 else 5823 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 5824 as_echo_n_body='eval 5825 arg=$1; 5826 case $arg in #( 5827 *"$as_nl"*) 5828 expr "X$arg" : "X\\(.*\\)$as_nl"; 5829 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 5830 esac; 5831 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 5832 ' 5833 export as_echo_n_body 5834 as_echo_n='sh -c $as_echo_n_body as_echo' 5835 fi 5836 export as_echo_body 5837 as_echo='sh -c $as_echo_body as_echo' 5838fi 5839 5840# The user is always right. 5841if test "${PATH_SEPARATOR+set}" != set; then 5842 PATH_SEPARATOR=: 5843 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 5844 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 5845 PATH_SEPARATOR=';' 5846 } 5847fi 5848 5849 5850# IFS 5851# We need space, tab and new line, in precisely that order. Quoting is 5852# there to prevent editors from complaining about space-tab. 5853# (If _AS_PATH_WALK were called with IFS unset, it would disable word 5854# splitting by setting IFS to empty value.) 5855IFS=" "" $as_nl" 5856 5857# Find who we are. Look in the path if we contain no directory separator. 5858case $0 in #(( 5859 *[\\/]* ) as_myself=$0 ;; 5860 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5861for as_dir in $PATH 5862do 5863 IFS=$as_save_IFS 5864 test -z "$as_dir" && as_dir=. 5865 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5866 done 5867IFS=$as_save_IFS 5868 5869 ;; 5870esac 5871# We did not find ourselves, most probably we were run as `sh COMMAND' 5872# in which case we are not to be found in the path. 5873if test "x$as_myself" = x; then 5874 as_myself=$0 5875fi 5876if test ! -f "$as_myself"; then 5877 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 5878 exit 1 5879fi 5880 5881# Unset variables that we do not need and which cause bugs (e.g. in 5882# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 5883# suppresses any "Segmentation fault" message there. '((' could 5884# trigger a bug in pdksh 5.2.14. 5885for as_var in BASH_ENV ENV MAIL MAILPATH 5886do eval test x\${$as_var+set} = xset \ 5887 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 5888done 5889PS1='$ ' 5890PS2='> ' 5891PS4='+ ' 5892 5893# NLS nuisances. 5894LC_ALL=C 5895export LC_ALL 5896LANGUAGE=C 5897export LANGUAGE 5898 5899# CDPATH. 5900(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 5901 5902 5903# as_fn_error ERROR [LINENO LOG_FD] 5904# --------------------------------- 5905# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 5906# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 5907# script with status $?, using 1 if that was 0. 5908as_fn_error () 5909{ 5910 as_status=$?; test $as_status -eq 0 && as_status=1 5911 if test "$3"; then 5912 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 5913 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 5914 fi 5915 $as_echo "$as_me: error: $1" >&2 5916 as_fn_exit $as_status 5917} # as_fn_error 5918 5919 5920# as_fn_set_status STATUS 5921# ----------------------- 5922# Set $? to STATUS, without forking. 5923as_fn_set_status () 5924{ 5925 return $1 5926} # as_fn_set_status 5927 5928# as_fn_exit STATUS 5929# ----------------- 5930# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 5931as_fn_exit () 5932{ 5933 set +e 5934 as_fn_set_status $1 5935 exit $1 5936} # as_fn_exit 5937 5938# as_fn_unset VAR 5939# --------------- 5940# Portably unset VAR. 5941as_fn_unset () 5942{ 5943 { eval $1=; unset $1;} 5944} 5945as_unset=as_fn_unset 5946# as_fn_append VAR VALUE 5947# ---------------------- 5948# Append the text in VALUE to the end of the definition contained in VAR. Take 5949# advantage of any shell optimizations that allow amortized linear growth over 5950# repeated appends, instead of the typical quadratic growth present in naive 5951# implementations. 5952if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 5953 eval 'as_fn_append () 5954 { 5955 eval $1+=\$2 5956 }' 5957else 5958 as_fn_append () 5959 { 5960 eval $1=\$$1\$2 5961 } 5962fi # as_fn_append 5963 5964# as_fn_arith ARG... 5965# ------------------ 5966# Perform arithmetic evaluation on the ARGs, and store the result in the 5967# global $as_val. Take advantage of shells that can avoid forks. The arguments 5968# must be portable across $(()) and expr. 5969if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 5970 eval 'as_fn_arith () 5971 { 5972 as_val=$(( $* )) 5973 }' 5974else 5975 as_fn_arith () 5976 { 5977 as_val=`expr "$@" || test $? -eq 1` 5978 } 5979fi # as_fn_arith 5980 5981 5982if expr a : '\(a\)' >/dev/null 2>&1 && 5983 test "X`expr 00001 : '.*\(...\)'`" = X001; then 5984 as_expr=expr 5985else 5986 as_expr=false 5987fi 5988 5989if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 5990 as_basename=basename 5991else 5992 as_basename=false 5993fi 5994 5995if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 5996 as_dirname=dirname 5997else 5998 as_dirname=false 5999fi 6000 6001as_me=`$as_basename -- "$0" || 6002$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 6003 X"$0" : 'X\(//\)$' \| \ 6004 X"$0" : 'X\(/\)' \| . 2>/dev/null || 6005$as_echo X/"$0" | 6006 sed '/^.*\/\([^/][^/]*\)\/*$/{ 6007 s//\1/ 6008 q 6009 } 6010 /^X\/\(\/\/\)$/{ 6011 s//\1/ 6012 q 6013 } 6014 /^X\/\(\/\).*/{ 6015 s//\1/ 6016 q 6017 } 6018 s/.*/./; q'` 6019 6020# Avoid depending upon Character Ranges. 6021as_cr_letters='abcdefghijklmnopqrstuvwxyz' 6022as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 6023as_cr_Letters=$as_cr_letters$as_cr_LETTERS 6024as_cr_digits='0123456789' 6025as_cr_alnum=$as_cr_Letters$as_cr_digits 6026 6027ECHO_C= ECHO_N= ECHO_T= 6028case `echo -n x` in #((((( 6029-n*) 6030 case `echo 'xy\c'` in 6031 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 6032 xy) ECHO_C='\c';; 6033 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 6034 ECHO_T=' ';; 6035 esac;; 6036*) 6037 ECHO_N='-n';; 6038esac 6039 6040rm -f conf$$ conf$$.exe conf$$.file 6041if test -d conf$$.dir; then 6042 rm -f conf$$.dir/conf$$.file 6043else 6044 rm -f conf$$.dir 6045 mkdir conf$$.dir 2>/dev/null 6046fi 6047if (echo >conf$$.file) 2>/dev/null; then 6048 if ln -s conf$$.file conf$$ 2>/dev/null; then 6049 as_ln_s='ln -s' 6050 # ... but there are two gotchas: 6051 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 6052 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 6053 # In both cases, we have to default to `cp -p'. 6054 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 6055 as_ln_s='cp -p' 6056 elif ln conf$$.file conf$$ 2>/dev/null; then 6057 as_ln_s=ln 6058 else 6059 as_ln_s='cp -p' 6060 fi 6061else 6062 as_ln_s='cp -p' 6063fi 6064rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 6065rmdir conf$$.dir 2>/dev/null 6066 6067 6068# as_fn_mkdir_p 6069# ------------- 6070# Create "$as_dir" as a directory, including parents if necessary. 6071as_fn_mkdir_p () 6072{ 6073 6074 case $as_dir in #( 6075 -*) as_dir=./$as_dir;; 6076 esac 6077 test -d "$as_dir" || eval $as_mkdir_p || { 6078 as_dirs= 6079 while :; do 6080 case $as_dir in #( 6081 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 6082 *) as_qdir=$as_dir;; 6083 esac 6084 as_dirs="'$as_qdir' $as_dirs" 6085 as_dir=`$as_dirname -- "$as_dir" || 6086$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6087 X"$as_dir" : 'X\(//\)[^/]' \| \ 6088 X"$as_dir" : 'X\(//\)$' \| \ 6089 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 6090$as_echo X"$as_dir" | 6091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6092 s//\1/ 6093 q 6094 } 6095 /^X\(\/\/\)[^/].*/{ 6096 s//\1/ 6097 q 6098 } 6099 /^X\(\/\/\)$/{ 6100 s//\1/ 6101 q 6102 } 6103 /^X\(\/\).*/{ 6104 s//\1/ 6105 q 6106 } 6107 s/.*/./; q'` 6108 test -d "$as_dir" && break 6109 done 6110 test -z "$as_dirs" || eval "mkdir $as_dirs" 6111 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 6112 6113 6114} # as_fn_mkdir_p 6115if mkdir -p . 2>/dev/null; then 6116 as_mkdir_p='mkdir -p "$as_dir"' 6117else 6118 test -d ./-p && rmdir ./-p 6119 as_mkdir_p=false 6120fi 6121 6122if test -x / >/dev/null 2>&1; then 6123 as_test_x='test -x' 6124else 6125 if ls -dL / >/dev/null 2>&1; then 6126 as_ls_L_option=L 6127 else 6128 as_ls_L_option= 6129 fi 6130 as_test_x=' 6131 eval sh -c '\'' 6132 if test -d "$1"; then 6133 test -d "$1/."; 6134 else 6135 case $1 in #( 6136 -*)set "./$1";; 6137 esac; 6138 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 6139 ???[sx]*):;;*)false;;esac;fi 6140 '\'' sh 6141 ' 6142fi 6143as_executable_p=$as_test_x 6144 6145# Sed expression to map a string onto a valid CPP name. 6146as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 6147 6148# Sed expression to map a string onto a valid variable name. 6149as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 6150 6151 6152exec 6>&1 6153## ----------------------------------- ## 6154## Main body of $CONFIG_STATUS script. ## 6155## ----------------------------------- ## 6156_ASEOF 6157test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 6158 6159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6160# Save the log message, to keep $0 and so on meaningful, and to 6161# report actual input values of CONFIG_FILES etc. instead of their 6162# values after options handling. 6163ac_log=" 6164This file was extended by pngnq $as_me 1.1, which was 6165generated by GNU Autoconf 2.65. Invocation command line was 6166 6167 CONFIG_FILES = $CONFIG_FILES 6168 CONFIG_HEADERS = $CONFIG_HEADERS 6169 CONFIG_LINKS = $CONFIG_LINKS 6170 CONFIG_COMMANDS = $CONFIG_COMMANDS 6171 $ $0 $@ 6172 6173on `(hostname || uname -n) 2>/dev/null | sed 1q` 6174" 6175 6176_ACEOF 6177 6178case $ac_config_files in *" 6179"*) set x $ac_config_files; shift; ac_config_files=$*;; 6180esac 6181 6182case $ac_config_headers in *" 6183"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 6184esac 6185 6186 6187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6188# Files that config.status was made for. 6189config_files="$ac_config_files" 6190config_headers="$ac_config_headers" 6191config_commands="$ac_config_commands" 6192 6193_ACEOF 6194 6195cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6196ac_cs_usage="\ 6197\`$as_me' instantiates files and other configuration actions 6198from templates according to the current configuration. Unless the files 6199and actions are specified as TAGs, all are instantiated by default. 6200 6201Usage: $0 [OPTION]... [TAG]... 6202 6203 -h, --help print this help, then exit 6204 -V, --version print version number and configuration settings, then exit 6205 --config print configuration, then exit 6206 -q, --quiet, --silent 6207 do not print progress messages 6208 -d, --debug don't remove temporary files 6209 --recheck update $as_me by reconfiguring in the same conditions 6210 --file=FILE[:TEMPLATE] 6211 instantiate the configuration file FILE 6212 --header=FILE[:TEMPLATE] 6213 instantiate the configuration header FILE 6214 6215Configuration files: 6216$config_files 6217 6218Configuration headers: 6219$config_headers 6220 6221Configuration commands: 6222$config_commands 6223 6224Report bugs to <stuart.coyle@gmail.com>." 6225 6226_ACEOF 6227cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6228ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 6229ac_cs_version="\\ 6230pngnq config.status 1.1 6231configured by $0, generated by GNU Autoconf 2.65, 6232 with options \\"\$ac_cs_config\\" 6233 6234Copyright (C) 2009 Free Software Foundation, Inc. 6235This config.status script is free software; the Free Software Foundation 6236gives unlimited permission to copy, distribute and modify it." 6237 6238ac_pwd='$ac_pwd' 6239srcdir='$srcdir' 6240INSTALL='$INSTALL' 6241MKDIR_P='$MKDIR_P' 6242AWK='$AWK' 6243test -n "\$AWK" || AWK=awk 6244_ACEOF 6245 6246cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6247# The default lists apply if the user does not specify any file. 6248ac_need_defaults=: 6249while test $# != 0 6250do 6251 case $1 in 6252 --*=*) 6253 ac_option=`expr "X$1" : 'X\([^=]*\)='` 6254 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 6255 ac_shift=: 6256 ;; 6257 *) 6258 ac_option=$1 6259 ac_optarg=$2 6260 ac_shift=shift 6261 ;; 6262 esac 6263 6264 case $ac_option in 6265 # Handling of the options. 6266 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 6267 ac_cs_recheck=: ;; 6268 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 6269 $as_echo "$ac_cs_version"; exit ;; 6270 --config | --confi | --conf | --con | --co | --c ) 6271 $as_echo "$ac_cs_config"; exit ;; 6272 --debug | --debu | --deb | --de | --d | -d ) 6273 debug=: ;; 6274 --file | --fil | --fi | --f ) 6275 $ac_shift 6276 case $ac_optarg in 6277 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 6278 esac 6279 as_fn_append CONFIG_FILES " '$ac_optarg'" 6280 ac_need_defaults=false;; 6281 --header | --heade | --head | --hea ) 6282 $ac_shift 6283 case $ac_optarg in 6284 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 6285 esac 6286 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 6287 ac_need_defaults=false;; 6288 --he | --h) 6289 # Conflict between --help and --header 6290 as_fn_error "ambiguous option: \`$1' 6291Try \`$0 --help' for more information.";; 6292 --help | --hel | -h ) 6293 $as_echo "$ac_cs_usage"; exit ;; 6294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 6295 | -silent | --silent | --silen | --sile | --sil | --si | --s) 6296 ac_cs_silent=: ;; 6297 6298 # This is an error. 6299 -*) as_fn_error "unrecognized option: \`$1' 6300Try \`$0 --help' for more information." ;; 6301 6302 *) as_fn_append ac_config_targets " $1" 6303 ac_need_defaults=false ;; 6304 6305 esac 6306 shift 6307done 6308 6309ac_configure_extra_args= 6310 6311if $ac_cs_silent; then 6312 exec 6>/dev/null 6313 ac_configure_extra_args="$ac_configure_extra_args --silent" 6314fi 6315 6316_ACEOF 6317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6318if \$ac_cs_recheck; then 6319 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6320 shift 6321 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 6322 CONFIG_SHELL='$SHELL' 6323 export CONFIG_SHELL 6324 exec "\$@" 6325fi 6326 6327_ACEOF 6328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6329exec 5>>config.log 6330{ 6331 echo 6332 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 6333## Running $as_me. ## 6334_ASBOX 6335 $as_echo "$ac_log" 6336} >&5 6337 6338_ACEOF 6339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6340# 6341# INIT-COMMANDS 6342# 6343AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 6344 6345_ACEOF 6346 6347cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6348 6349# Handling of arguments. 6350for ac_config_target in $ac_config_targets 6351do 6352 case $ac_config_target in 6353 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 6354 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 6355 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 6356 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 6357 "freegetopt/Makefile") CONFIG_FILES="$CONFIG_FILES freegetopt/Makefile" ;; 6358 6359 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 6360 esac 6361done 6362 6363 6364# If the user did not use the arguments to specify the items to instantiate, 6365# then the envvar interface is used. Set only those that are not. 6366# We use the long form for the default assignment because of an extremely 6367# bizarre bug on SunOS 4.1.3. 6368if $ac_need_defaults; then 6369 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 6370 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 6371 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 6372fi 6373 6374# Have a temporary directory for convenience. Make it in the build tree 6375# simply because there is no reason against having it here, and in addition, 6376# creating and moving files from /tmp can sometimes cause problems. 6377# Hook for its removal unless debugging. 6378# Note that there is a small window in which the directory will not be cleaned: 6379# after its creation but before its name has been assigned to `$tmp'. 6380$debug || 6381{ 6382 tmp= 6383 trap 'exit_status=$? 6384 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 6385' 0 6386 trap 'as_fn_exit 1' 1 2 13 15 6387} 6388# Create a (secure) tmp directory for tmp files. 6389 6390{ 6391 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 6392 test -n "$tmp" && test -d "$tmp" 6393} || 6394{ 6395 tmp=./conf$$-$RANDOM 6396 (umask 077 && mkdir "$tmp") 6397} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 6398 6399# Set up the scripts for CONFIG_FILES section. 6400# No need to generate them if there are no CONFIG_FILES. 6401# This happens for instance with `./config.status config.h'. 6402if test -n "$CONFIG_FILES"; then 6403 6404 6405ac_cr=`echo X | tr X '\015'` 6406# On cygwin, bash can eat \r inside `` if the user requested igncr. 6407# But we know of no other shell where ac_cr would be empty at this 6408# point, so we can use a bashism as a fallback. 6409if test "x$ac_cr" = x; then 6410 eval ac_cr=\$\'\\r\' 6411fi 6412ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 6413if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 6414 ac_cs_awk_cr='\r' 6415else 6416 ac_cs_awk_cr=$ac_cr 6417fi 6418 6419echo 'BEGIN {' >"$tmp/subs1.awk" && 6420_ACEOF 6421 6422 6423{ 6424 echo "cat >conf$$subs.awk <<_ACEOF" && 6425 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 6426 echo "_ACEOF" 6427} >conf$$subs.sh || 6428 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 6429ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 6430ac_delim='%!_!# ' 6431for ac_last_try in false false false false false :; do 6432 . ./conf$$subs.sh || 6433 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 6434 6435 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 6436 if test $ac_delim_n = $ac_delim_num; then 6437 break 6438 elif $ac_last_try; then 6439 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 6440 else 6441 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6442 fi 6443done 6444rm -f conf$$subs.sh 6445 6446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6447cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 6448_ACEOF 6449sed -n ' 6450h 6451s/^/S["/; s/!.*/"]=/ 6452p 6453g 6454s/^[^!]*!// 6455:repl 6456t repl 6457s/'"$ac_delim"'$// 6458t delim 6459:nl 6460h 6461s/\(.\{148\}\)..*/\1/ 6462t more1 6463s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 6464p 6465n 6466b repl 6467:more1 6468s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6469p 6470g 6471s/.\{148\}// 6472t nl 6473:delim 6474h 6475s/\(.\{148\}\)..*/\1/ 6476t more2 6477s/["\\]/\\&/g; s/^/"/; s/$/"/ 6478p 6479b 6480:more2 6481s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6482p 6483g 6484s/.\{148\}// 6485t delim 6486' <conf$$subs.awk | sed ' 6487/^[^""]/{ 6488 N 6489 s/\n// 6490} 6491' >>$CONFIG_STATUS || ac_write_fail=1 6492rm -f conf$$subs.awk 6493cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6494_ACAWK 6495cat >>"\$tmp/subs1.awk" <<_ACAWK && 6496 for (key in S) S_is_set[key] = 1 6497 FS = "" 6498 6499} 6500{ 6501 line = $ 0 6502 nfields = split(line, field, "@") 6503 substed = 0 6504 len = length(field[1]) 6505 for (i = 2; i < nfields; i++) { 6506 key = field[i] 6507 keylen = length(key) 6508 if (S_is_set[key]) { 6509 value = S[key] 6510 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 6511 len += length(value) + length(field[++i]) 6512 substed = 1 6513 } else 6514 len += 1 + keylen 6515 } 6516 6517 print line 6518} 6519 6520_ACAWK 6521_ACEOF 6522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6523if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 6524 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 6525else 6526 cat 6527fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 6528 || as_fn_error "could not setup config files machinery" "$LINENO" 5 6529_ACEOF 6530 6531# VPATH may cause trouble with some makes, so we remove $(srcdir), 6532# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 6533# trailing colons and then remove the whole line if VPATH becomes empty 6534# (actually we leave an empty line to preserve line numbers). 6535if test "x$srcdir" = x.; then 6536 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 6537s/:*\$(srcdir):*/:/ 6538s/:*\${srcdir}:*/:/ 6539s/:*@srcdir@:*/:/ 6540s/^\([^=]*=[ ]*\):*/\1/ 6541s/:*$// 6542s/^[^=]*=[ ]*$// 6543}' 6544fi 6545 6546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6547fi # test -n "$CONFIG_FILES" 6548 6549# Set up the scripts for CONFIG_HEADERS section. 6550# No need to generate them if there are no CONFIG_HEADERS. 6551# This happens for instance with `./config.status Makefile'. 6552if test -n "$CONFIG_HEADERS"; then 6553cat >"$tmp/defines.awk" <<\_ACAWK || 6554BEGIN { 6555_ACEOF 6556 6557# Transform confdefs.h into an awk script `defines.awk', embedded as 6558# here-document in config.status, that substitutes the proper values into 6559# config.h.in to produce config.h. 6560 6561# Create a delimiter string that does not exist in confdefs.h, to ease 6562# handling of long lines. 6563ac_delim='%!_!# ' 6564for ac_last_try in false false :; do 6565 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 6566 if test -z "$ac_t"; then 6567 break 6568 elif $ac_last_try; then 6569 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 6570 else 6571 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6572 fi 6573done 6574 6575# For the awk script, D is an array of macro values keyed by name, 6576# likewise P contains macro parameters if any. Preserve backslash 6577# newline sequences. 6578 6579ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 6580sed -n ' 6581s/.\{148\}/&'"$ac_delim"'/g 6582t rset 6583:rset 6584s/^[ ]*#[ ]*define[ ][ ]*/ / 6585t def 6586d 6587:def 6588s/\\$// 6589t bsnl 6590s/["\\]/\\&/g 6591s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6592D["\1"]=" \3"/p 6593s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 6594d 6595:bsnl 6596s/["\\]/\\&/g 6597s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6598D["\1"]=" \3\\\\\\n"\\/p 6599t cont 6600s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 6601t cont 6602d 6603:cont 6604n 6605s/.\{148\}/&'"$ac_delim"'/g 6606t clear 6607:clear 6608s/\\$// 6609t bsnlc 6610s/["\\]/\\&/g; s/^/"/; s/$/"/p 6611d 6612:bsnlc 6613s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 6614b cont 6615' <confdefs.h | sed ' 6616s/'"$ac_delim"'/"\\\ 6617"/g' >>$CONFIG_STATUS || ac_write_fail=1 6618 6619cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6620 for (key in D) D_is_set[key] = 1 6621 FS = "" 6622} 6623/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 6624 line = \$ 0 6625 split(line, arg, " ") 6626 if (arg[1] == "#") { 6627 defundef = arg[2] 6628 mac1 = arg[3] 6629 } else { 6630 defundef = substr(arg[1], 2) 6631 mac1 = arg[2] 6632 } 6633 split(mac1, mac2, "(") #) 6634 macro = mac2[1] 6635 prefix = substr(line, 1, index(line, defundef) - 1) 6636 if (D_is_set[macro]) { 6637 # Preserve the white space surrounding the "#". 6638 print prefix "define", macro P[macro] D[macro] 6639 next 6640 } else { 6641 # Replace #undef with comments. This is necessary, for example, 6642 # in the case of _POSIX_SOURCE, which is predefined and required 6643 # on some systems where configure will not decide to define it. 6644 if (defundef == "undef") { 6645 print "/*", prefix defundef, macro, "*/" 6646 next 6647 } 6648 } 6649} 6650{ print } 6651_ACAWK 6652_ACEOF 6653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6654 as_fn_error "could not setup config headers machinery" "$LINENO" 5 6655fi # test -n "$CONFIG_HEADERS" 6656 6657 6658eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 6659shift 6660for ac_tag 6661do 6662 case $ac_tag in 6663 :[FHLC]) ac_mode=$ac_tag; continue;; 6664 esac 6665 case $ac_mode$ac_tag in 6666 :[FHL]*:*);; 6667 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 6668 :[FH]-) ac_tag=-:-;; 6669 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 6670 esac 6671 ac_save_IFS=$IFS 6672 IFS=: 6673 set x $ac_tag 6674 IFS=$ac_save_IFS 6675 shift 6676 ac_file=$1 6677 shift 6678 6679 case $ac_mode in 6680 :L) ac_source=$1;; 6681 :[FH]) 6682 ac_file_inputs= 6683 for ac_f 6684 do 6685 case $ac_f in 6686 -) ac_f="$tmp/stdin";; 6687 *) # Look for the file first in the build tree, then in the source tree 6688 # (if the path is not absolute). The absolute path cannot be DOS-style, 6689 # because $ac_f cannot contain `:'. 6690 test -f "$ac_f" || 6691 case $ac_f in 6692 [\\/$]*) false;; 6693 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 6694 esac || 6695 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 6696 esac 6697 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 6698 as_fn_append ac_file_inputs " '$ac_f'" 6699 done 6700 6701 # Let's still pretend it is `configure' which instantiates (i.e., don't 6702 # use $as_me), people would be surprised to read: 6703 # /* config.h. Generated by config.status. */ 6704 configure_input='Generated from '` 6705 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 6706 `' by configure.' 6707 if test x"$ac_file" != x-; then 6708 configure_input="$ac_file. $configure_input" 6709 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 6710$as_echo "$as_me: creating $ac_file" >&6;} 6711 fi 6712 # Neutralize special characters interpreted by sed in replacement strings. 6713 case $configure_input in #( 6714 *\&* | *\|* | *\\* ) 6715 ac_sed_conf_input=`$as_echo "$configure_input" | 6716 sed 's/[\\\\&|]/\\\\&/g'`;; #( 6717 *) ac_sed_conf_input=$configure_input;; 6718 esac 6719 6720 case $ac_tag in 6721 *:-:* | *:-) cat >"$tmp/stdin" \ 6722 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 6723 esac 6724 ;; 6725 esac 6726 6727 ac_dir=`$as_dirname -- "$ac_file" || 6728$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6729 X"$ac_file" : 'X\(//\)[^/]' \| \ 6730 X"$ac_file" : 'X\(//\)$' \| \ 6731 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 6732$as_echo X"$ac_file" | 6733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6734 s//\1/ 6735 q 6736 } 6737 /^X\(\/\/\)[^/].*/{ 6738 s//\1/ 6739 q 6740 } 6741 /^X\(\/\/\)$/{ 6742 s//\1/ 6743 q 6744 } 6745 /^X\(\/\).*/{ 6746 s//\1/ 6747 q 6748 } 6749 s/.*/./; q'` 6750 as_dir="$ac_dir"; as_fn_mkdir_p 6751 ac_builddir=. 6752 6753case "$ac_dir" in 6754.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 6755*) 6756 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 6757 # A ".." for each directory in $ac_dir_suffix. 6758 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 6759 case $ac_top_builddir_sub in 6760 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 6761 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 6762 esac ;; 6763esac 6764ac_abs_top_builddir=$ac_pwd 6765ac_abs_builddir=$ac_pwd$ac_dir_suffix 6766# for backward compatibility: 6767ac_top_builddir=$ac_top_build_prefix 6768 6769case $srcdir in 6770 .) # We are building in place. 6771 ac_srcdir=. 6772 ac_top_srcdir=$ac_top_builddir_sub 6773 ac_abs_top_srcdir=$ac_pwd ;; 6774 [\\/]* | ?:[\\/]* ) # Absolute name. 6775 ac_srcdir=$srcdir$ac_dir_suffix; 6776 ac_top_srcdir=$srcdir 6777 ac_abs_top_srcdir=$srcdir ;; 6778 *) # Relative name. 6779 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 6780 ac_top_srcdir=$ac_top_build_prefix$srcdir 6781 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 6782esac 6783ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 6784 6785 6786 case $ac_mode in 6787 :F) 6788 # 6789 # CONFIG_FILE 6790 # 6791 6792 case $INSTALL in 6793 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 6794 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 6795 esac 6796 ac_MKDIR_P=$MKDIR_P 6797 case $MKDIR_P in 6798 [\\/$]* | ?:[\\/]* ) ;; 6799 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 6800 esac 6801_ACEOF 6802 6803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6804# If the template does not know about datarootdir, expand it. 6805# FIXME: This hack should be removed a few years after 2.60. 6806ac_datarootdir_hack=; ac_datarootdir_seen= 6807ac_sed_dataroot=' 6808/datarootdir/ { 6809 p 6810 q 6811} 6812/@datadir@/p 6813/@docdir@/p 6814/@infodir@/p 6815/@localedir@/p 6816/@mandir@/p' 6817case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 6818*datarootdir*) ac_datarootdir_seen=yes;; 6819*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 6820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 6821$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 6822_ACEOF 6823cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6824 ac_datarootdir_hack=' 6825 s&@datadir@&$datadir&g 6826 s&@docdir@&$docdir&g 6827 s&@infodir@&$infodir&g 6828 s&@localedir@&$localedir&g 6829 s&@mandir@&$mandir&g 6830 s&\\\${datarootdir}&$datarootdir&g' ;; 6831esac 6832_ACEOF 6833 6834# Neutralize VPATH when `$srcdir' = `.'. 6835# Shell code in configure.ac might set extrasub. 6836# FIXME: do we really want to maintain this feature? 6837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6838ac_sed_extra="$ac_vpsub 6839$extrasub 6840_ACEOF 6841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6842:t 6843/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6844s|@configure_input@|$ac_sed_conf_input|;t t 6845s&@top_builddir@&$ac_top_builddir_sub&;t t 6846s&@top_build_prefix@&$ac_top_build_prefix&;t t 6847s&@srcdir@&$ac_srcdir&;t t 6848s&@abs_srcdir@&$ac_abs_srcdir&;t t 6849s&@top_srcdir@&$ac_top_srcdir&;t t 6850s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 6851s&@builddir@&$ac_builddir&;t t 6852s&@abs_builddir@&$ac_abs_builddir&;t t 6853s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 6854s&@INSTALL@&$ac_INSTALL&;t t 6855s&@MKDIR_P@&$ac_MKDIR_P&;t t 6856$ac_datarootdir_hack 6857" 6858eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 6859 || as_fn_error "could not create $ac_file" "$LINENO" 5 6860 6861test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 6862 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 6863 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6865which seems to be undefined. Please make sure it is defined." >&5 6866$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6867which seems to be undefined. Please make sure it is defined." >&2;} 6868 6869 rm -f "$tmp/stdin" 6870 case $ac_file in 6871 -) cat "$tmp/out" && rm -f "$tmp/out";; 6872 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 6873 esac \ 6874 || as_fn_error "could not create $ac_file" "$LINENO" 5 6875 ;; 6876 :H) 6877 # 6878 # CONFIG_HEADER 6879 # 6880 if test x"$ac_file" != x-; then 6881 { 6882 $as_echo "/* $configure_input */" \ 6883 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 6884 } >"$tmp/config.h" \ 6885 || as_fn_error "could not create $ac_file" "$LINENO" 5 6886 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 6887 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 6888$as_echo "$as_me: $ac_file is unchanged" >&6;} 6889 else 6890 rm -f "$ac_file" 6891 mv "$tmp/config.h" "$ac_file" \ 6892 || as_fn_error "could not create $ac_file" "$LINENO" 5 6893 fi 6894 else 6895 $as_echo "/* $configure_input */" \ 6896 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 6897 || as_fn_error "could not create -" "$LINENO" 5 6898 fi 6899# Compute "$ac_file"'s index in $config_headers. 6900_am_arg="$ac_file" 6901_am_stamp_count=1 6902for _am_header in $config_headers :; do 6903 case $_am_header in 6904 $_am_arg | $_am_arg:* ) 6905 break ;; 6906 * ) 6907 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 6908 esac 6909done 6910echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 6911$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6912 X"$_am_arg" : 'X\(//\)[^/]' \| \ 6913 X"$_am_arg" : 'X\(//\)$' \| \ 6914 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 6915$as_echo X"$_am_arg" | 6916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6917 s//\1/ 6918 q 6919 } 6920 /^X\(\/\/\)[^/].*/{ 6921 s//\1/ 6922 q 6923 } 6924 /^X\(\/\/\)$/{ 6925 s//\1/ 6926 q 6927 } 6928 /^X\(\/\).*/{ 6929 s//\1/ 6930 q 6931 } 6932 s/.*/./; q'`/stamp-h$_am_stamp_count 6933 ;; 6934 6935 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 6936$as_echo "$as_me: executing $ac_file commands" >&6;} 6937 ;; 6938 esac 6939 6940 6941 case $ac_file$ac_mode in 6942 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 6943 # Autoconf 2.62 quotes --file arguments for eval, but not when files 6944 # are listed without --file. Let's play safe and only enable the eval 6945 # if we detect the quoting. 6946 case $CONFIG_FILES in 6947 *\'*) eval set x "$CONFIG_FILES" ;; 6948 *) set x $CONFIG_FILES ;; 6949 esac 6950 shift 6951 for mf 6952 do 6953 # Strip MF so we end up with the name of the file. 6954 mf=`echo "$mf" | sed -e 's/:.*$//'` 6955 # Check whether this is an Automake generated Makefile or not. 6956 # We used to match only the files named `Makefile.in', but 6957 # some people rename them; so instead we look at the file content. 6958 # Grep'ing the first line is not enough: some people post-process 6959 # each Makefile.in and add a new line on top of each file to say so. 6960 # Grep'ing the whole file is not good either: AIX grep has a line 6961 # limit of 2048, but all sed's we know have understand at least 4000. 6962 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 6963 dirpart=`$as_dirname -- "$mf" || 6964$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6965 X"$mf" : 'X\(//\)[^/]' \| \ 6966 X"$mf" : 'X\(//\)$' \| \ 6967 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 6968$as_echo X"$mf" | 6969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6970 s//\1/ 6971 q 6972 } 6973 /^X\(\/\/\)[^/].*/{ 6974 s//\1/ 6975 q 6976 } 6977 /^X\(\/\/\)$/{ 6978 s//\1/ 6979 q 6980 } 6981 /^X\(\/\).*/{ 6982 s//\1/ 6983 q 6984 } 6985 s/.*/./; q'` 6986 else 6987 continue 6988 fi 6989 # Extract the definition of DEPDIR, am__include, and am__quote 6990 # from the Makefile without running `make'. 6991 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 6992 test -z "$DEPDIR" && continue 6993 am__include=`sed -n 's/^am__include = //p' < "$mf"` 6994 test -z "am__include" && continue 6995 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 6996 # When using ansi2knr, U may be empty or an underscore; expand it 6997 U=`sed -n 's/^U = //p' < "$mf"` 6998 # Find all dependency output files, they are included files with 6999 # $(DEPDIR) in their names. We invoke sed twice because it is the 7000 # simplest approach to changing $(DEPDIR) to its actual value in the 7001 # expansion. 7002 for file in `sed -n " 7003 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 7004 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 7005 # Make sure the directory exists. 7006 test -f "$dirpart/$file" && continue 7007 fdir=`$as_dirname -- "$file" || 7008$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7009 X"$file" : 'X\(//\)[^/]' \| \ 7010 X"$file" : 'X\(//\)$' \| \ 7011 X"$file" : 'X\(/\)' \| . 2>/dev/null || 7012$as_echo X"$file" | 7013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7014 s//\1/ 7015 q 7016 } 7017 /^X\(\/\/\)[^/].*/{ 7018 s//\1/ 7019 q 7020 } 7021 /^X\(\/\/\)$/{ 7022 s//\1/ 7023 q 7024 } 7025 /^X\(\/\).*/{ 7026 s//\1/ 7027 q 7028 } 7029 s/.*/./; q'` 7030 as_dir=$dirpart/$fdir; as_fn_mkdir_p 7031 # echo "creating $dirpart/$file" 7032 echo '# dummy' > "$dirpart/$file" 7033 done 7034 done 7035} 7036 ;; 7037 7038 esac 7039done # for ac_tag 7040 7041 7042as_fn_exit 0 7043_ACEOF 7044ac_clean_files=$ac_clean_files_save 7045 7046test $ac_write_fail = 0 || 7047 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 7048 7049 7050# configure is writing to config.log, and then calls config.status. 7051# config.status does its own redirection, appending to config.log. 7052# Unfortunately, on DOS this fails, as config.log is still kept open 7053# by configure, so config.status won't be able to write to it; its 7054# output is simply discarded. So we exec the FD to /dev/null, 7055# effectively closing config.log, so it can be properly (re)opened and 7056# appended to by config.status. When coming back to configure, we 7057# need to make the FD available again. 7058if test "$no_create" != yes; then 7059 ac_cs_success=: 7060 ac_config_status_args= 7061 test "$silent" = yes && 7062 ac_config_status_args="$ac_config_status_args --quiet" 7063 exec 5>/dev/null 7064 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 7065 exec 5>>config.log 7066 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 7067 # would make configure fail if this is the last instruction. 7068 $ac_cs_success || as_fn_exit $? 7069fi 7070if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 7071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 7072$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 7073fi 7074 7075