1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for gocr 0.52. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME='gocr' 579PACKAGE_TARNAME='gocr' 580PACKAGE_VERSION='0.52' 581PACKAGE_STRING='gocr 0.52' 582PACKAGE_BUGREPORT='' 583PACKAGE_URL='' 584 585# Factoring default headers for most tests. 586ac_includes_default="\ 587#include <stdio.h> 588#ifdef HAVE_SYS_TYPES_H 589# include <sys/types.h> 590#endif 591#ifdef HAVE_SYS_STAT_H 592# include <sys/stat.h> 593#endif 594#ifdef STDC_HEADERS 595# include <stdlib.h> 596# include <stddef.h> 597#else 598# ifdef HAVE_STDLIB_H 599# include <stdlib.h> 600# endif 601#endif 602#ifdef HAVE_STRING_H 603# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 604# include <memory.h> 605# endif 606# include <string.h> 607#endif 608#ifdef HAVE_STRINGS_H 609# include <strings.h> 610#endif 611#ifdef HAVE_INTTYPES_H 612# include <inttypes.h> 613#endif 614#ifdef HAVE_STDINT_H 615# include <stdint.h> 616#endif 617#ifdef HAVE_UNISTD_H 618# include <unistd.h> 619#endif" 620 621ac_subst_vars='LTLIBOBJS 622LIBOBJS 623EGREP 624GREP 625CPP 626SET_MAKE 627INSTALL_DATA 628INSTALL_SCRIPT 629INSTALL_PROGRAM 630OBJEXT 631EXEEXT 632ac_ct_CC 633CPPFLAGS 634LDFLAGS 635CFLAGS 636CC 637target_alias 638host_alias 639build_alias 640LIBS 641ECHO_T 642ECHO_N 643ECHO_C 644DEFS 645mandir 646localedir 647libdir 648psdir 649pdfdir 650dvidir 651htmldir 652infodir 653docdir 654oldincludedir 655includedir 656localstatedir 657sharedstatedir 658sysconfdir 659datadir 660datarootdir 661libexecdir 662sbindir 663bindir 664program_transform_name 665prefix 666exec_prefix 667PACKAGE_URL 668PACKAGE_BUGREPORT 669PACKAGE_STRING 670PACKAGE_VERSION 671PACKAGE_TARNAME 672PACKAGE_NAME 673PATH_SEPARATOR 674SHELL' 675ac_subst_files='' 676ac_user_opts=' 677enable_option_checking 678with_debug 679with_netpbm 680' 681 ac_precious_vars='build_alias 682host_alias 683target_alias 684CC 685CFLAGS 686LDFLAGS 687LIBS 688CPPFLAGS 689CPP' 690 691 692# Initialize some variables set by options. 693ac_init_help= 694ac_init_version=false 695ac_unrecognized_opts= 696ac_unrecognized_sep= 697# The variables have the same names as the options, with 698# dashes changed to underlines. 699cache_file=/dev/null 700exec_prefix=NONE 701no_create= 702no_recursion= 703prefix=NONE 704program_prefix=NONE 705program_suffix=NONE 706program_transform_name=s,x,x, 707silent= 708site= 709srcdir= 710verbose= 711x_includes=NONE 712x_libraries=NONE 713 714# Installation directory options. 715# These are left unexpanded so users can "make install exec_prefix=/foo" 716# and all the variables that are supposed to be based on exec_prefix 717# by default will actually change. 718# Use braces instead of parens because sh, perl, etc. also accept them. 719# (The list follows the same order as the GNU Coding Standards.) 720bindir='${exec_prefix}/bin' 721sbindir='${exec_prefix}/sbin' 722libexecdir='${exec_prefix}/libexec' 723datarootdir='${prefix}/share' 724datadir='${datarootdir}' 725sysconfdir='${prefix}/etc' 726sharedstatedir='${prefix}/com' 727localstatedir='${prefix}/var' 728includedir='${prefix}/include' 729oldincludedir='/usr/include' 730docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 731infodir='${datarootdir}/info' 732htmldir='${docdir}' 733dvidir='${docdir}' 734pdfdir='${docdir}' 735psdir='${docdir}' 736libdir='${exec_prefix}/lib' 737localedir='${datarootdir}/locale' 738mandir='${datarootdir}/man' 739 740ac_prev= 741ac_dashdash= 742for ac_option 743do 744 # If the previous option needs an argument, assign it. 745 if test -n "$ac_prev"; then 746 eval $ac_prev=\$ac_option 747 ac_prev= 748 continue 749 fi 750 751 case $ac_option in 752 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 753 *=) ac_optarg= ;; 754 *) ac_optarg=yes ;; 755 esac 756 757 # Accept the important Cygnus configure options, so we can diagnose typos. 758 759 case $ac_dashdash$ac_option in 760 --) 761 ac_dashdash=yes ;; 762 763 -bindir | --bindir | --bindi | --bind | --bin | --bi) 764 ac_prev=bindir ;; 765 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 766 bindir=$ac_optarg ;; 767 768 -build | --build | --buil | --bui | --bu) 769 ac_prev=build_alias ;; 770 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 771 build_alias=$ac_optarg ;; 772 773 -cache-file | --cache-file | --cache-fil | --cache-fi \ 774 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 775 ac_prev=cache_file ;; 776 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 777 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 778 cache_file=$ac_optarg ;; 779 780 --config-cache | -C) 781 cache_file=config.cache ;; 782 783 -datadir | --datadir | --datadi | --datad) 784 ac_prev=datadir ;; 785 -datadir=* | --datadir=* | --datadi=* | --datad=*) 786 datadir=$ac_optarg ;; 787 788 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 789 | --dataroo | --dataro | --datar) 790 ac_prev=datarootdir ;; 791 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 792 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 793 datarootdir=$ac_optarg ;; 794 795 -disable-* | --disable-*) 796 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 797 # Reject names that are not valid shell variable names. 798 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 799 as_fn_error $? "invalid feature name: $ac_useropt" 800 ac_useropt_orig=$ac_useropt 801 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 802 case $ac_user_opts in 803 *" 804"enable_$ac_useropt" 805"*) ;; 806 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 807 ac_unrecognized_sep=', ';; 808 esac 809 eval enable_$ac_useropt=no ;; 810 811 -docdir | --docdir | --docdi | --doc | --do) 812 ac_prev=docdir ;; 813 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 814 docdir=$ac_optarg ;; 815 816 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 817 ac_prev=dvidir ;; 818 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 819 dvidir=$ac_optarg ;; 820 821 -enable-* | --enable-*) 822 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 823 # Reject names that are not valid shell variable names. 824 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 825 as_fn_error $? "invalid feature name: $ac_useropt" 826 ac_useropt_orig=$ac_useropt 827 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 828 case $ac_user_opts in 829 *" 830"enable_$ac_useropt" 831"*) ;; 832 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 833 ac_unrecognized_sep=', ';; 834 esac 835 eval enable_$ac_useropt=\$ac_optarg ;; 836 837 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 838 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 839 | --exec | --exe | --ex) 840 ac_prev=exec_prefix ;; 841 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 842 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 843 | --exec=* | --exe=* | --ex=*) 844 exec_prefix=$ac_optarg ;; 845 846 -gas | --gas | --ga | --g) 847 # Obsolete; use --with-gas. 848 with_gas=yes ;; 849 850 -help | --help | --hel | --he | -h) 851 ac_init_help=long ;; 852 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 853 ac_init_help=recursive ;; 854 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 855 ac_init_help=short ;; 856 857 -host | --host | --hos | --ho) 858 ac_prev=host_alias ;; 859 -host=* | --host=* | --hos=* | --ho=*) 860 host_alias=$ac_optarg ;; 861 862 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 863 ac_prev=htmldir ;; 864 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 865 | --ht=*) 866 htmldir=$ac_optarg ;; 867 868 -includedir | --includedir | --includedi | --included | --include \ 869 | --includ | --inclu | --incl | --inc) 870 ac_prev=includedir ;; 871 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 872 | --includ=* | --inclu=* | --incl=* | --inc=*) 873 includedir=$ac_optarg ;; 874 875 -infodir | --infodir | --infodi | --infod | --info | --inf) 876 ac_prev=infodir ;; 877 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 878 infodir=$ac_optarg ;; 879 880 -libdir | --libdir | --libdi | --libd) 881 ac_prev=libdir ;; 882 -libdir=* | --libdir=* | --libdi=* | --libd=*) 883 libdir=$ac_optarg ;; 884 885 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 886 | --libexe | --libex | --libe) 887 ac_prev=libexecdir ;; 888 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 889 | --libexe=* | --libex=* | --libe=*) 890 libexecdir=$ac_optarg ;; 891 892 -localedir | --localedir | --localedi | --localed | --locale) 893 ac_prev=localedir ;; 894 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 895 localedir=$ac_optarg ;; 896 897 -localstatedir | --localstatedir | --localstatedi | --localstated \ 898 | --localstate | --localstat | --localsta | --localst | --locals) 899 ac_prev=localstatedir ;; 900 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 901 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 902 localstatedir=$ac_optarg ;; 903 904 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 905 ac_prev=mandir ;; 906 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 907 mandir=$ac_optarg ;; 908 909 -nfp | --nfp | --nf) 910 # Obsolete; use --without-fp. 911 with_fp=no ;; 912 913 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 914 | --no-cr | --no-c | -n) 915 no_create=yes ;; 916 917 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 918 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 919 no_recursion=yes ;; 920 921 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 922 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 923 | --oldin | --oldi | --old | --ol | --o) 924 ac_prev=oldincludedir ;; 925 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 926 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 927 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 928 oldincludedir=$ac_optarg ;; 929 930 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 931 ac_prev=prefix ;; 932 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 933 prefix=$ac_optarg ;; 934 935 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 936 | --program-pre | --program-pr | --program-p) 937 ac_prev=program_prefix ;; 938 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 939 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 940 program_prefix=$ac_optarg ;; 941 942 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 943 | --program-suf | --program-su | --program-s) 944 ac_prev=program_suffix ;; 945 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 946 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 947 program_suffix=$ac_optarg ;; 948 949 -program-transform-name | --program-transform-name \ 950 | --program-transform-nam | --program-transform-na \ 951 | --program-transform-n | --program-transform- \ 952 | --program-transform | --program-transfor \ 953 | --program-transfo | --program-transf \ 954 | --program-trans | --program-tran \ 955 | --progr-tra | --program-tr | --program-t) 956 ac_prev=program_transform_name ;; 957 -program-transform-name=* | --program-transform-name=* \ 958 | --program-transform-nam=* | --program-transform-na=* \ 959 | --program-transform-n=* | --program-transform-=* \ 960 | --program-transform=* | --program-transfor=* \ 961 | --program-transfo=* | --program-transf=* \ 962 | --program-trans=* | --program-tran=* \ 963 | --progr-tra=* | --program-tr=* | --program-t=*) 964 program_transform_name=$ac_optarg ;; 965 966 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 967 ac_prev=pdfdir ;; 968 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 969 pdfdir=$ac_optarg ;; 970 971 -psdir | --psdir | --psdi | --psd | --ps) 972 ac_prev=psdir ;; 973 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 974 psdir=$ac_optarg ;; 975 976 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 977 | -silent | --silent | --silen | --sile | --sil) 978 silent=yes ;; 979 980 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 981 ac_prev=sbindir ;; 982 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 983 | --sbi=* | --sb=*) 984 sbindir=$ac_optarg ;; 985 986 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 987 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 988 | --sharedst | --shareds | --shared | --share | --shar \ 989 | --sha | --sh) 990 ac_prev=sharedstatedir ;; 991 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 992 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 993 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 994 | --sha=* | --sh=*) 995 sharedstatedir=$ac_optarg ;; 996 997 -site | --site | --sit) 998 ac_prev=site ;; 999 -site=* | --site=* | --sit=*) 1000 site=$ac_optarg ;; 1001 1002 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1003 ac_prev=srcdir ;; 1004 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1005 srcdir=$ac_optarg ;; 1006 1007 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1008 | --syscon | --sysco | --sysc | --sys | --sy) 1009 ac_prev=sysconfdir ;; 1010 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1011 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1012 sysconfdir=$ac_optarg ;; 1013 1014 -target | --target | --targe | --targ | --tar | --ta | --t) 1015 ac_prev=target_alias ;; 1016 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1017 target_alias=$ac_optarg ;; 1018 1019 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1020 verbose=yes ;; 1021 1022 -version | --version | --versio | --versi | --vers | -V) 1023 ac_init_version=: ;; 1024 1025 -with-* | --with-*) 1026 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1027 # Reject names that are not valid shell variable names. 1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1029 as_fn_error $? "invalid package name: $ac_useropt" 1030 ac_useropt_orig=$ac_useropt 1031 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1032 case $ac_user_opts in 1033 *" 1034"with_$ac_useropt" 1035"*) ;; 1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1037 ac_unrecognized_sep=', ';; 1038 esac 1039 eval with_$ac_useropt=\$ac_optarg ;; 1040 1041 -without-* | --without-*) 1042 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1043 # Reject names that are not valid shell variable names. 1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1045 as_fn_error $? "invalid package name: $ac_useropt" 1046 ac_useropt_orig=$ac_useropt 1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1048 case $ac_user_opts in 1049 *" 1050"with_$ac_useropt" 1051"*) ;; 1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1053 ac_unrecognized_sep=', ';; 1054 esac 1055 eval with_$ac_useropt=no ;; 1056 1057 --x) 1058 # Obsolete; use --with-x. 1059 with_x=yes ;; 1060 1061 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1062 | --x-incl | --x-inc | --x-in | --x-i) 1063 ac_prev=x_includes ;; 1064 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1065 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1066 x_includes=$ac_optarg ;; 1067 1068 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1069 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1070 ac_prev=x_libraries ;; 1071 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1072 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1073 x_libraries=$ac_optarg ;; 1074 1075 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1076Try \`$0 --help' for more information" 1077 ;; 1078 1079 *=*) 1080 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1081 # Reject names that are not valid shell variable names. 1082 case $ac_envvar in #( 1083 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1084 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1085 esac 1086 eval $ac_envvar=\$ac_optarg 1087 export $ac_envvar ;; 1088 1089 *) 1090 # FIXME: should be removed in autoconf 3.0. 1091 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1092 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1093 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1094 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1095 ;; 1096 1097 esac 1098done 1099 1100if test -n "$ac_prev"; then 1101 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1102 as_fn_error $? "missing argument to $ac_option" 1103fi 1104 1105if test -n "$ac_unrecognized_opts"; then 1106 case $enable_option_checking in 1107 no) ;; 1108 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1109 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1110 esac 1111fi 1112 1113# Check all directory arguments for consistency. 1114for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1115 datadir sysconfdir sharedstatedir localstatedir includedir \ 1116 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1117 libdir localedir mandir 1118do 1119 eval ac_val=\$$ac_var 1120 # Remove trailing slashes. 1121 case $ac_val in 1122 */ ) 1123 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1124 eval $ac_var=\$ac_val;; 1125 esac 1126 # Be sure to have absolute directory names. 1127 case $ac_val in 1128 [\\/$]* | ?:[\\/]* ) continue;; 1129 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1130 esac 1131 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1132done 1133 1134# There might be people who depend on the old broken behavior: `$host' 1135# used to hold the argument of --host etc. 1136# FIXME: To remove some day. 1137build=$build_alias 1138host=$host_alias 1139target=$target_alias 1140 1141# FIXME: To remove some day. 1142if test "x$host_alias" != x; then 1143 if test "x$build_alias" = x; then 1144 cross_compiling=maybe 1145 elif test "x$build_alias" != "x$host_alias"; then 1146 cross_compiling=yes 1147 fi 1148fi 1149 1150ac_tool_prefix= 1151test -n "$host_alias" && ac_tool_prefix=$host_alias- 1152 1153test "$silent" = yes && exec 6>/dev/null 1154 1155 1156ac_pwd=`pwd` && test -n "$ac_pwd" && 1157ac_ls_di=`ls -di .` && 1158ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1159 as_fn_error $? "working directory cannot be determined" 1160test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1161 as_fn_error $? "pwd does not report name of working directory" 1162 1163 1164# Find the source files, if location was not specified. 1165if test -z "$srcdir"; then 1166 ac_srcdir_defaulted=yes 1167 # Try the directory containing this script, then the parent directory. 1168 ac_confdir=`$as_dirname -- "$as_myself" || 1169$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1170 X"$as_myself" : 'X\(//\)[^/]' \| \ 1171 X"$as_myself" : 'X\(//\)$' \| \ 1172 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1173$as_echo X"$as_myself" | 1174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1175 s//\1/ 1176 q 1177 } 1178 /^X\(\/\/\)[^/].*/{ 1179 s//\1/ 1180 q 1181 } 1182 /^X\(\/\/\)$/{ 1183 s//\1/ 1184 q 1185 } 1186 /^X\(\/\).*/{ 1187 s//\1/ 1188 q 1189 } 1190 s/.*/./; q'` 1191 srcdir=$ac_confdir 1192 if test ! -r "$srcdir/$ac_unique_file"; then 1193 srcdir=.. 1194 fi 1195else 1196 ac_srcdir_defaulted=no 1197fi 1198if test ! -r "$srcdir/$ac_unique_file"; then 1199 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1200 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1201fi 1202ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1203ac_abs_confdir=`( 1204 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1205 pwd)` 1206# When building in place, set srcdir=. 1207if test "$ac_abs_confdir" = "$ac_pwd"; then 1208 srcdir=. 1209fi 1210# Remove unnecessary trailing slashes from srcdir. 1211# Double slashes in file names in object file debugging info 1212# mess up M-x gdb in Emacs. 1213case $srcdir in 1214*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1215esac 1216for ac_var in $ac_precious_vars; do 1217 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1218 eval ac_env_${ac_var}_value=\$${ac_var} 1219 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1220 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1221done 1222 1223# 1224# Report the --help message. 1225# 1226if test "$ac_init_help" = "long"; then 1227 # Omit some internal or obsolete options to make the list less imposing. 1228 # This message is too long to be a string in the A/UX 3.1 sh. 1229 cat <<_ACEOF 1230\`configure' configures gocr 0.52 to adapt to many kinds of systems. 1231 1232Usage: $0 [OPTION]... [VAR=VALUE]... 1233 1234To assign environment variables (e.g., CC, CFLAGS...), specify them as 1235VAR=VALUE. See below for descriptions of some of the useful variables. 1236 1237Defaults for the options are specified in brackets. 1238 1239Configuration: 1240 -h, --help display this help and exit 1241 --help=short display options specific to this package 1242 --help=recursive display the short help of all the included packages 1243 -V, --version display version information and exit 1244 -q, --quiet, --silent do not print \`checking ...' messages 1245 --cache-file=FILE cache test results in FILE [disabled] 1246 -C, --config-cache alias for \`--cache-file=config.cache' 1247 -n, --no-create do not create output files 1248 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1249 1250Installation directories: 1251 --prefix=PREFIX install architecture-independent files in PREFIX 1252 [$ac_default_prefix] 1253 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1254 [PREFIX] 1255 1256By default, \`make install' will install all the files in 1257\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1258an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1259for instance \`--prefix=\$HOME'. 1260 1261For better control, use the options below. 1262 1263Fine tuning of the installation directories: 1264 --bindir=DIR user executables [EPREFIX/bin] 1265 --sbindir=DIR system admin executables [EPREFIX/sbin] 1266 --libexecdir=DIR program executables [EPREFIX/libexec] 1267 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1268 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1269 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1270 --libdir=DIR object code libraries [EPREFIX/lib] 1271 --includedir=DIR C header files [PREFIX/include] 1272 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1273 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1274 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1275 --infodir=DIR info documentation [DATAROOTDIR/info] 1276 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1277 --mandir=DIR man documentation [DATAROOTDIR/man] 1278 --docdir=DIR documentation root [DATAROOTDIR/doc/gocr] 1279 --htmldir=DIR html documentation [DOCDIR] 1280 --dvidir=DIR dvi documentation [DOCDIR] 1281 --pdfdir=DIR pdf documentation [DOCDIR] 1282 --psdir=DIR ps documentation [DOCDIR] 1283_ACEOF 1284 1285 cat <<\_ACEOF 1286_ACEOF 1287fi 1288 1289if test -n "$ac_init_help"; then 1290 case $ac_init_help in 1291 short | recursive ) echo "Configuration of gocr 0.52:";; 1292 esac 1293 cat <<\_ACEOF 1294 1295Optional Packages: 1296 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1297 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1298 --with-debug switching on debugging (more verbose output) 1299 --with-netpbm=PATH enter the PATH to netpbm package 1300 1301Some influential environment variables: 1302 CC C compiler command 1303 CFLAGS C compiler flags 1304 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1305 nonstandard directory <lib dir> 1306 LIBS libraries to pass to the linker, e.g. -l<library> 1307 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1308 you have headers in a nonstandard directory <include dir> 1309 CPP C preprocessor 1310 1311Use these variables to override the choices made by `configure' or to help 1312it to find libraries and programs with nonstandard names/locations. 1313 1314Report bugs to the package provider. 1315_ACEOF 1316ac_status=$? 1317fi 1318 1319if test "$ac_init_help" = "recursive"; then 1320 # If there are subdirs, report their specific --help. 1321 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1322 test -d "$ac_dir" || 1323 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1324 continue 1325 ac_builddir=. 1326 1327case "$ac_dir" in 1328.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1329*) 1330 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1331 # A ".." for each directory in $ac_dir_suffix. 1332 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1333 case $ac_top_builddir_sub in 1334 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1335 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1336 esac ;; 1337esac 1338ac_abs_top_builddir=$ac_pwd 1339ac_abs_builddir=$ac_pwd$ac_dir_suffix 1340# for backward compatibility: 1341ac_top_builddir=$ac_top_build_prefix 1342 1343case $srcdir in 1344 .) # We are building in place. 1345 ac_srcdir=. 1346 ac_top_srcdir=$ac_top_builddir_sub 1347 ac_abs_top_srcdir=$ac_pwd ;; 1348 [\\/]* | ?:[\\/]* ) # Absolute name. 1349 ac_srcdir=$srcdir$ac_dir_suffix; 1350 ac_top_srcdir=$srcdir 1351 ac_abs_top_srcdir=$srcdir ;; 1352 *) # Relative name. 1353 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1354 ac_top_srcdir=$ac_top_build_prefix$srcdir 1355 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1356esac 1357ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1358 1359 cd "$ac_dir" || { ac_status=$?; continue; } 1360 # Check for guested configure. 1361 if test -f "$ac_srcdir/configure.gnu"; then 1362 echo && 1363 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1364 elif test -f "$ac_srcdir/configure"; then 1365 echo && 1366 $SHELL "$ac_srcdir/configure" --help=recursive 1367 else 1368 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1369 fi || ac_status=$? 1370 cd "$ac_pwd" || { ac_status=$?; break; } 1371 done 1372fi 1373 1374test -n "$ac_init_help" && exit $ac_status 1375if $ac_init_version; then 1376 cat <<\_ACEOF 1377gocr configure 0.52 1378generated by GNU Autoconf 2.69 1379 1380Copyright (C) 2012 Free Software Foundation, Inc. 1381This configure script is free software; the Free Software Foundation 1382gives unlimited permission to copy, distribute and modify it. 1383_ACEOF 1384 exit 1385fi 1386 1387## ------------------------ ## 1388## Autoconf initialization. ## 1389## ------------------------ ## 1390 1391# ac_fn_c_try_compile LINENO 1392# -------------------------- 1393# Try to compile conftest.$ac_ext, and return whether this succeeded. 1394ac_fn_c_try_compile () 1395{ 1396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1397 rm -f conftest.$ac_objext 1398 if { { ac_try="$ac_compile" 1399case "(($ac_try" in 1400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1401 *) ac_try_echo=$ac_try;; 1402esac 1403eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1404$as_echo "$ac_try_echo"; } >&5 1405 (eval "$ac_compile") 2>conftest.err 1406 ac_status=$? 1407 if test -s conftest.err; then 1408 grep -v '^ *+' conftest.err >conftest.er1 1409 cat conftest.er1 >&5 1410 mv -f conftest.er1 conftest.err 1411 fi 1412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1413 test $ac_status = 0; } && { 1414 test -z "$ac_c_werror_flag" || 1415 test ! -s conftest.err 1416 } && test -s conftest.$ac_objext; then : 1417 ac_retval=0 1418else 1419 $as_echo "$as_me: failed program was:" >&5 1420sed 's/^/| /' conftest.$ac_ext >&5 1421 1422 ac_retval=1 1423fi 1424 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1425 as_fn_set_status $ac_retval 1426 1427} # ac_fn_c_try_compile 1428 1429# ac_fn_c_try_link LINENO 1430# ----------------------- 1431# Try to link conftest.$ac_ext, and return whether this succeeded. 1432ac_fn_c_try_link () 1433{ 1434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1435 rm -f conftest.$ac_objext conftest$ac_exeext 1436 if { { ac_try="$ac_link" 1437case "(($ac_try" in 1438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1439 *) ac_try_echo=$ac_try;; 1440esac 1441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1442$as_echo "$ac_try_echo"; } >&5 1443 (eval "$ac_link") 2>conftest.err 1444 ac_status=$? 1445 if test -s conftest.err; then 1446 grep -v '^ *+' conftest.err >conftest.er1 1447 cat conftest.er1 >&5 1448 mv -f conftest.er1 conftest.err 1449 fi 1450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1451 test $ac_status = 0; } && { 1452 test -z "$ac_c_werror_flag" || 1453 test ! -s conftest.err 1454 } && test -s conftest$ac_exeext && { 1455 test "$cross_compiling" = yes || 1456 test -x conftest$ac_exeext 1457 }; then : 1458 ac_retval=0 1459else 1460 $as_echo "$as_me: failed program was:" >&5 1461sed 's/^/| /' conftest.$ac_ext >&5 1462 1463 ac_retval=1 1464fi 1465 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1466 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1467 # interfere with the next link command; also delete a directory that is 1468 # left behind by Apple's compiler. We do this before executing the actions. 1469 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1470 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1471 as_fn_set_status $ac_retval 1472 1473} # ac_fn_c_try_link 1474 1475# ac_fn_c_try_cpp LINENO 1476# ---------------------- 1477# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1478ac_fn_c_try_cpp () 1479{ 1480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1481 if { { ac_try="$ac_cpp conftest.$ac_ext" 1482case "(($ac_try" in 1483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1484 *) ac_try_echo=$ac_try;; 1485esac 1486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1487$as_echo "$ac_try_echo"; } >&5 1488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1489 ac_status=$? 1490 if test -s conftest.err; then 1491 grep -v '^ *+' conftest.err >conftest.er1 1492 cat conftest.er1 >&5 1493 mv -f conftest.er1 conftest.err 1494 fi 1495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1496 test $ac_status = 0; } > conftest.i && { 1497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1498 test ! -s conftest.err 1499 }; then : 1500 ac_retval=0 1501else 1502 $as_echo "$as_me: failed program was:" >&5 1503sed 's/^/| /' conftest.$ac_ext >&5 1504 1505 ac_retval=1 1506fi 1507 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1508 as_fn_set_status $ac_retval 1509 1510} # ac_fn_c_try_cpp 1511 1512# ac_fn_c_try_run LINENO 1513# ---------------------- 1514# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1515# that executables *can* be run. 1516ac_fn_c_try_run () 1517{ 1518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1519 if { { ac_try="$ac_link" 1520case "(($ac_try" in 1521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1522 *) ac_try_echo=$ac_try;; 1523esac 1524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1525$as_echo "$ac_try_echo"; } >&5 1526 (eval "$ac_link") 2>&5 1527 ac_status=$? 1528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1529 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1530 { { case "(($ac_try" in 1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1532 *) ac_try_echo=$ac_try;; 1533esac 1534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1535$as_echo "$ac_try_echo"; } >&5 1536 (eval "$ac_try") 2>&5 1537 ac_status=$? 1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1539 test $ac_status = 0; }; }; then : 1540 ac_retval=0 1541else 1542 $as_echo "$as_me: program exited with status $ac_status" >&5 1543 $as_echo "$as_me: failed program was:" >&5 1544sed 's/^/| /' conftest.$ac_ext >&5 1545 1546 ac_retval=$ac_status 1547fi 1548 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1550 as_fn_set_status $ac_retval 1551 1552} # ac_fn_c_try_run 1553 1554# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1555# ------------------------------------------------------- 1556# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1557# the include files in INCLUDES and setting the cache variable VAR 1558# accordingly. 1559ac_fn_c_check_header_mongrel () 1560{ 1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1562 if eval \${$3+:} false; then : 1563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1564$as_echo_n "checking for $2... " >&6; } 1565if eval \${$3+:} false; then : 1566 $as_echo_n "(cached) " >&6 1567fi 1568eval ac_res=\$$3 1569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1570$as_echo "$ac_res" >&6; } 1571else 1572 # Is the header compilable? 1573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1574$as_echo_n "checking $2 usability... " >&6; } 1575cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1576/* end confdefs.h. */ 1577$4 1578#include <$2> 1579_ACEOF 1580if ac_fn_c_try_compile "$LINENO"; then : 1581 ac_header_compiler=yes 1582else 1583 ac_header_compiler=no 1584fi 1585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1587$as_echo "$ac_header_compiler" >&6; } 1588 1589# Is the header present? 1590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1591$as_echo_n "checking $2 presence... " >&6; } 1592cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1593/* end confdefs.h. */ 1594#include <$2> 1595_ACEOF 1596if ac_fn_c_try_cpp "$LINENO"; then : 1597 ac_header_preproc=yes 1598else 1599 ac_header_preproc=no 1600fi 1601rm -f conftest.err conftest.i conftest.$ac_ext 1602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1603$as_echo "$ac_header_preproc" >&6; } 1604 1605# So? What about this header? 1606case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1607 yes:no: ) 1608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1609$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1611$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1612 ;; 1613 no:yes:* ) 1614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1615$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1617$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1619$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1621$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1623$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1624 ;; 1625esac 1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1627$as_echo_n "checking for $2... " >&6; } 1628if eval \${$3+:} false; then : 1629 $as_echo_n "(cached) " >&6 1630else 1631 eval "$3=\$ac_header_compiler" 1632fi 1633eval ac_res=\$$3 1634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1635$as_echo "$ac_res" >&6; } 1636fi 1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1638 1639} # ac_fn_c_check_header_mongrel 1640 1641# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1642# ------------------------------------------------------- 1643# Tests whether HEADER exists and can be compiled using the include files in 1644# INCLUDES, setting the cache variable VAR accordingly. 1645ac_fn_c_check_header_compile () 1646{ 1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1649$as_echo_n "checking for $2... " >&6; } 1650if eval \${$3+:} false; then : 1651 $as_echo_n "(cached) " >&6 1652else 1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1654/* end confdefs.h. */ 1655$4 1656#include <$2> 1657_ACEOF 1658if ac_fn_c_try_compile "$LINENO"; then : 1659 eval "$3=yes" 1660else 1661 eval "$3=no" 1662fi 1663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1664fi 1665eval ac_res=\$$3 1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1667$as_echo "$ac_res" >&6; } 1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1669 1670} # ac_fn_c_check_header_compile 1671 1672# ac_fn_c_check_func LINENO FUNC VAR 1673# ---------------------------------- 1674# Tests whether FUNC exists, setting the cache variable VAR accordingly 1675ac_fn_c_check_func () 1676{ 1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1679$as_echo_n "checking for $2... " >&6; } 1680if eval \${$3+:} false; then : 1681 $as_echo_n "(cached) " >&6 1682else 1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1684/* end confdefs.h. */ 1685/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1686 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1687#define $2 innocuous_$2 1688 1689/* System header to define __stub macros and hopefully few prototypes, 1690 which can conflict with char $2 (); below. 1691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1692 <limits.h> exists even on freestanding compilers. */ 1693 1694#ifdef __STDC__ 1695# include <limits.h> 1696#else 1697# include <assert.h> 1698#endif 1699 1700#undef $2 1701 1702/* Override any GCC internal prototype to avoid an error. 1703 Use char because int might match the return type of a GCC 1704 builtin and then its argument prototype would still apply. */ 1705#ifdef __cplusplus 1706extern "C" 1707#endif 1708char $2 (); 1709/* The GNU C library defines this for functions which it implements 1710 to always fail with ENOSYS. Some functions are actually named 1711 something starting with __ and the normal name is an alias. */ 1712#if defined __stub_$2 || defined __stub___$2 1713choke me 1714#endif 1715 1716int 1717main () 1718{ 1719return $2 (); 1720 ; 1721 return 0; 1722} 1723_ACEOF 1724if ac_fn_c_try_link "$LINENO"; then : 1725 eval "$3=yes" 1726else 1727 eval "$3=no" 1728fi 1729rm -f core conftest.err conftest.$ac_objext \ 1730 conftest$ac_exeext conftest.$ac_ext 1731fi 1732eval ac_res=\$$3 1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1734$as_echo "$ac_res" >&6; } 1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1736 1737} # ac_fn_c_check_func 1738cat >config.log <<_ACEOF 1739This file contains any messages produced by compilers while 1740running configure, to aid debugging if configure makes a mistake. 1741 1742It was created by gocr $as_me 0.52, which was 1743generated by GNU Autoconf 2.69. Invocation command line was 1744 1745 $ $0 $@ 1746 1747_ACEOF 1748exec 5>>config.log 1749{ 1750cat <<_ASUNAME 1751## --------- ## 1752## Platform. ## 1753## --------- ## 1754 1755hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1756uname -m = `(uname -m) 2>/dev/null || echo unknown` 1757uname -r = `(uname -r) 2>/dev/null || echo unknown` 1758uname -s = `(uname -s) 2>/dev/null || echo unknown` 1759uname -v = `(uname -v) 2>/dev/null || echo unknown` 1760 1761/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1762/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1763 1764/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1765/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1766/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1767/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1768/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1769/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1770/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1771 1772_ASUNAME 1773 1774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1775for as_dir in $PATH 1776do 1777 IFS=$as_save_IFS 1778 test -z "$as_dir" && as_dir=. 1779 $as_echo "PATH: $as_dir" 1780 done 1781IFS=$as_save_IFS 1782 1783} >&5 1784 1785cat >&5 <<_ACEOF 1786 1787 1788## ----------- ## 1789## Core tests. ## 1790## ----------- ## 1791 1792_ACEOF 1793 1794 1795# Keep a trace of the command line. 1796# Strip out --no-create and --no-recursion so they do not pile up. 1797# Strip out --silent because we don't want to record it for future runs. 1798# Also quote any args containing shell meta-characters. 1799# Make two passes to allow for proper duplicate-argument suppression. 1800ac_configure_args= 1801ac_configure_args0= 1802ac_configure_args1= 1803ac_must_keep_next=false 1804for ac_pass in 1 2 1805do 1806 for ac_arg 1807 do 1808 case $ac_arg in 1809 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1810 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1811 | -silent | --silent | --silen | --sile | --sil) 1812 continue ;; 1813 *\'*) 1814 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1815 esac 1816 case $ac_pass in 1817 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1818 2) 1819 as_fn_append ac_configure_args1 " '$ac_arg'" 1820 if test $ac_must_keep_next = true; then 1821 ac_must_keep_next=false # Got value, back to normal. 1822 else 1823 case $ac_arg in 1824 *=* | --config-cache | -C | -disable-* | --disable-* \ 1825 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1826 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1827 | -with-* | --with-* | -without-* | --without-* | --x) 1828 case "$ac_configure_args0 " in 1829 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1830 esac 1831 ;; 1832 -* ) ac_must_keep_next=true ;; 1833 esac 1834 fi 1835 as_fn_append ac_configure_args " '$ac_arg'" 1836 ;; 1837 esac 1838 done 1839done 1840{ ac_configure_args0=; unset ac_configure_args0;} 1841{ ac_configure_args1=; unset ac_configure_args1;} 1842 1843# When interrupted or exit'd, cleanup temporary files, and complete 1844# config.log. We remove comments because anyway the quotes in there 1845# would cause problems or look ugly. 1846# WARNING: Use '\'' to represent an apostrophe within the trap. 1847# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1848trap 'exit_status=$? 1849 # Save into config.log some information that might help in debugging. 1850 { 1851 echo 1852 1853 $as_echo "## ---------------- ## 1854## Cache variables. ## 1855## ---------------- ##" 1856 echo 1857 # The following way of writing the cache mishandles newlines in values, 1858( 1859 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1860 eval ac_val=\$$ac_var 1861 case $ac_val in #( 1862 *${as_nl}*) 1863 case $ac_var in #( 1864 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1865$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1866 esac 1867 case $ac_var in #( 1868 _ | IFS | as_nl) ;; #( 1869 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1870 *) { eval $ac_var=; unset $ac_var;} ;; 1871 esac ;; 1872 esac 1873 done 1874 (set) 2>&1 | 1875 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1876 *${as_nl}ac_space=\ *) 1877 sed -n \ 1878 "s/'\''/'\''\\\\'\'''\''/g; 1879 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1880 ;; #( 1881 *) 1882 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1883 ;; 1884 esac | 1885 sort 1886) 1887 echo 1888 1889 $as_echo "## ----------------- ## 1890## Output variables. ## 1891## ----------------- ##" 1892 echo 1893 for ac_var in $ac_subst_vars 1894 do 1895 eval ac_val=\$$ac_var 1896 case $ac_val in 1897 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1898 esac 1899 $as_echo "$ac_var='\''$ac_val'\''" 1900 done | sort 1901 echo 1902 1903 if test -n "$ac_subst_files"; then 1904 $as_echo "## ------------------- ## 1905## File substitutions. ## 1906## ------------------- ##" 1907 echo 1908 for ac_var in $ac_subst_files 1909 do 1910 eval ac_val=\$$ac_var 1911 case $ac_val in 1912 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1913 esac 1914 $as_echo "$ac_var='\''$ac_val'\''" 1915 done | sort 1916 echo 1917 fi 1918 1919 if test -s confdefs.h; then 1920 $as_echo "## ----------- ## 1921## confdefs.h. ## 1922## ----------- ##" 1923 echo 1924 cat confdefs.h 1925 echo 1926 fi 1927 test "$ac_signal" != 0 && 1928 $as_echo "$as_me: caught signal $ac_signal" 1929 $as_echo "$as_me: exit $exit_status" 1930 } >&5 1931 rm -f core *.core core.conftest.* && 1932 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1933 exit $exit_status 1934' 0 1935for ac_signal in 1 2 13 15; do 1936 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1937done 1938ac_signal=0 1939 1940# confdefs.h avoids OS command line length limits that DEFS can exceed. 1941rm -f -r conftest* confdefs.h 1942 1943$as_echo "/* confdefs.h */" > confdefs.h 1944 1945# Predefined preprocessor variables. 1946 1947cat >>confdefs.h <<_ACEOF 1948#define PACKAGE_NAME "$PACKAGE_NAME" 1949_ACEOF 1950 1951cat >>confdefs.h <<_ACEOF 1952#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1953_ACEOF 1954 1955cat >>confdefs.h <<_ACEOF 1956#define PACKAGE_VERSION "$PACKAGE_VERSION" 1957_ACEOF 1958 1959cat >>confdefs.h <<_ACEOF 1960#define PACKAGE_STRING "$PACKAGE_STRING" 1961_ACEOF 1962 1963cat >>confdefs.h <<_ACEOF 1964#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1965_ACEOF 1966 1967cat >>confdefs.h <<_ACEOF 1968#define PACKAGE_URL "$PACKAGE_URL" 1969_ACEOF 1970 1971 1972# Let the site file select an alternate cache file if it wants to. 1973# Prefer an explicitly selected file to automatically selected ones. 1974ac_site_file1=NONE 1975ac_site_file2=NONE 1976if test -n "$CONFIG_SITE"; then 1977 # We do not want a PATH search for config.site. 1978 case $CONFIG_SITE in #(( 1979 -*) ac_site_file1=./$CONFIG_SITE;; 1980 */*) ac_site_file1=$CONFIG_SITE;; 1981 *) ac_site_file1=./$CONFIG_SITE;; 1982 esac 1983elif test "x$prefix" != xNONE; then 1984 ac_site_file1=$prefix/share/config.site 1985 ac_site_file2=$prefix/etc/config.site 1986else 1987 ac_site_file1=$ac_default_prefix/share/config.site 1988 ac_site_file2=$ac_default_prefix/etc/config.site 1989fi 1990for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1991do 1992 test "x$ac_site_file" = xNONE && continue 1993 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1994 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1995$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1996 sed 's/^/| /' "$ac_site_file" >&5 1997 . "$ac_site_file" \ 1998 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2000as_fn_error $? "failed to load site script $ac_site_file 2001See \`config.log' for more details" "$LINENO" 5; } 2002 fi 2003done 2004 2005if test -r "$cache_file"; then 2006 # Some versions of bash will fail to source /dev/null (special files 2007 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2008 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2009 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2010$as_echo "$as_me: loading cache $cache_file" >&6;} 2011 case $cache_file in 2012 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2013 *) . "./$cache_file";; 2014 esac 2015 fi 2016else 2017 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2018$as_echo "$as_me: creating cache $cache_file" >&6;} 2019 >$cache_file 2020fi 2021 2022# Check that the precious variables saved in the cache have kept the same 2023# value. 2024ac_cache_corrupted=false 2025for ac_var in $ac_precious_vars; do 2026 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2027 eval ac_new_set=\$ac_env_${ac_var}_set 2028 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2029 eval ac_new_val=\$ac_env_${ac_var}_value 2030 case $ac_old_set,$ac_new_set in 2031 set,) 2032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2033$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2034 ac_cache_corrupted=: ;; 2035 ,set) 2036 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2037$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2038 ac_cache_corrupted=: ;; 2039 ,);; 2040 *) 2041 if test "x$ac_old_val" != "x$ac_new_val"; then 2042 # differences in whitespace do not lead to failure. 2043 ac_old_val_w=`echo x $ac_old_val` 2044 ac_new_val_w=`echo x $ac_new_val` 2045 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2046 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2047$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2048 ac_cache_corrupted=: 2049 else 2050 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2051$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2052 eval $ac_var=\$ac_old_val 2053 fi 2054 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2055$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2056 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2057$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2058 fi;; 2059 esac 2060 # Pass precious variables to config.status. 2061 if test "$ac_new_set" = set; then 2062 case $ac_new_val in 2063 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2064 *) ac_arg=$ac_var=$ac_new_val ;; 2065 esac 2066 case " $ac_configure_args " in 2067 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2068 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2069 esac 2070 fi 2071done 2072if $ac_cache_corrupted; then 2073 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2074$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2075 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2076$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2077 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2078fi 2079## -------------------- ## 2080## Main body of script. ## 2081## -------------------- ## 2082 2083ac_ext=c 2084ac_cpp='$CPP $CPPFLAGS' 2085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2087ac_compiler_gnu=$ac_cv_c_compiler_gnu 2088 2089 2090 2091ac_config_headers="$ac_config_headers include/config.h" 2092 2093 2094ac_ext=c 2095ac_cpp='$CPP $CPPFLAGS' 2096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2098ac_compiler_gnu=$ac_cv_c_compiler_gnu 2099if test -n "$ac_tool_prefix"; then 2100 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2101set dummy ${ac_tool_prefix}gcc; ac_word=$2 2102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2103$as_echo_n "checking for $ac_word... " >&6; } 2104if ${ac_cv_prog_CC+:} false; then : 2105 $as_echo_n "(cached) " >&6 2106else 2107 if test -n "$CC"; then 2108 ac_cv_prog_CC="$CC" # Let the user override the test. 2109else 2110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2111for as_dir in $PATH 2112do 2113 IFS=$as_save_IFS 2114 test -z "$as_dir" && as_dir=. 2115 for ac_exec_ext in '' $ac_executable_extensions; do 2116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2117 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2119 break 2 2120 fi 2121done 2122 done 2123IFS=$as_save_IFS 2124 2125fi 2126fi 2127CC=$ac_cv_prog_CC 2128if test -n "$CC"; then 2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2130$as_echo "$CC" >&6; } 2131else 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2133$as_echo "no" >&6; } 2134fi 2135 2136 2137fi 2138if test -z "$ac_cv_prog_CC"; then 2139 ac_ct_CC=$CC 2140 # Extract the first word of "gcc", so it can be a program name with args. 2141set dummy gcc; ac_word=$2 2142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2143$as_echo_n "checking for $ac_word... " >&6; } 2144if ${ac_cv_prog_ac_ct_CC+:} false; then : 2145 $as_echo_n "(cached) " >&6 2146else 2147 if test -n "$ac_ct_CC"; then 2148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2149else 2150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2151for as_dir in $PATH 2152do 2153 IFS=$as_save_IFS 2154 test -z "$as_dir" && as_dir=. 2155 for ac_exec_ext in '' $ac_executable_extensions; do 2156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2157 ac_cv_prog_ac_ct_CC="gcc" 2158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2159 break 2 2160 fi 2161done 2162 done 2163IFS=$as_save_IFS 2164 2165fi 2166fi 2167ac_ct_CC=$ac_cv_prog_ac_ct_CC 2168if test -n "$ac_ct_CC"; then 2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2170$as_echo "$ac_ct_CC" >&6; } 2171else 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2173$as_echo "no" >&6; } 2174fi 2175 2176 if test "x$ac_ct_CC" = x; then 2177 CC="" 2178 else 2179 case $cross_compiling:$ac_tool_warned in 2180yes:) 2181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2183ac_tool_warned=yes ;; 2184esac 2185 CC=$ac_ct_CC 2186 fi 2187else 2188 CC="$ac_cv_prog_CC" 2189fi 2190 2191if test -z "$CC"; then 2192 if test -n "$ac_tool_prefix"; then 2193 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2194set dummy ${ac_tool_prefix}cc; ac_word=$2 2195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2196$as_echo_n "checking for $ac_word... " >&6; } 2197if ${ac_cv_prog_CC+:} false; then : 2198 $as_echo_n "(cached) " >&6 2199else 2200 if test -n "$CC"; then 2201 ac_cv_prog_CC="$CC" # Let the user override the test. 2202else 2203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2204for as_dir in $PATH 2205do 2206 IFS=$as_save_IFS 2207 test -z "$as_dir" && as_dir=. 2208 for ac_exec_ext in '' $ac_executable_extensions; do 2209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2210 ac_cv_prog_CC="${ac_tool_prefix}cc" 2211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2212 break 2 2213 fi 2214done 2215 done 2216IFS=$as_save_IFS 2217 2218fi 2219fi 2220CC=$ac_cv_prog_CC 2221if test -n "$CC"; then 2222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2223$as_echo "$CC" >&6; } 2224else 2225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2226$as_echo "no" >&6; } 2227fi 2228 2229 2230 fi 2231fi 2232if test -z "$CC"; then 2233 # Extract the first word of "cc", so it can be a program name with args. 2234set dummy cc; ac_word=$2 2235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2236$as_echo_n "checking for $ac_word... " >&6; } 2237if ${ac_cv_prog_CC+:} false; then : 2238 $as_echo_n "(cached) " >&6 2239else 2240 if test -n "$CC"; then 2241 ac_cv_prog_CC="$CC" # Let the user override the test. 2242else 2243 ac_prog_rejected=no 2244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2245for as_dir in $PATH 2246do 2247 IFS=$as_save_IFS 2248 test -z "$as_dir" && as_dir=. 2249 for ac_exec_ext in '' $ac_executable_extensions; do 2250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2251 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2252 ac_prog_rejected=yes 2253 continue 2254 fi 2255 ac_cv_prog_CC="cc" 2256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2257 break 2 2258 fi 2259done 2260 done 2261IFS=$as_save_IFS 2262 2263if test $ac_prog_rejected = yes; then 2264 # We found a bogon in the path, so make sure we never use it. 2265 set dummy $ac_cv_prog_CC 2266 shift 2267 if test $# != 0; then 2268 # We chose a different compiler from the bogus one. 2269 # However, it has the same basename, so the bogon will be chosen 2270 # first if we set CC to just the basename; use the full file name. 2271 shift 2272 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2273 fi 2274fi 2275fi 2276fi 2277CC=$ac_cv_prog_CC 2278if test -n "$CC"; then 2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2280$as_echo "$CC" >&6; } 2281else 2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2283$as_echo "no" >&6; } 2284fi 2285 2286 2287fi 2288if test -z "$CC"; then 2289 if test -n "$ac_tool_prefix"; then 2290 for ac_prog in cl.exe 2291 do 2292 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2293set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2295$as_echo_n "checking for $ac_word... " >&6; } 2296if ${ac_cv_prog_CC+:} false; then : 2297 $as_echo_n "(cached) " >&6 2298else 2299 if test -n "$CC"; then 2300 ac_cv_prog_CC="$CC" # Let the user override the test. 2301else 2302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2303for as_dir in $PATH 2304do 2305 IFS=$as_save_IFS 2306 test -z "$as_dir" && as_dir=. 2307 for ac_exec_ext in '' $ac_executable_extensions; do 2308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2309 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2311 break 2 2312 fi 2313done 2314 done 2315IFS=$as_save_IFS 2316 2317fi 2318fi 2319CC=$ac_cv_prog_CC 2320if test -n "$CC"; then 2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2322$as_echo "$CC" >&6; } 2323else 2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2325$as_echo "no" >&6; } 2326fi 2327 2328 2329 test -n "$CC" && break 2330 done 2331fi 2332if test -z "$CC"; then 2333 ac_ct_CC=$CC 2334 for ac_prog in cl.exe 2335do 2336 # Extract the first word of "$ac_prog", so it can be a program name with args. 2337set dummy $ac_prog; ac_word=$2 2338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2339$as_echo_n "checking for $ac_word... " >&6; } 2340if ${ac_cv_prog_ac_ct_CC+:} false; then : 2341 $as_echo_n "(cached) " >&6 2342else 2343 if test -n "$ac_ct_CC"; then 2344 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2345else 2346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2347for as_dir in $PATH 2348do 2349 IFS=$as_save_IFS 2350 test -z "$as_dir" && as_dir=. 2351 for ac_exec_ext in '' $ac_executable_extensions; do 2352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2353 ac_cv_prog_ac_ct_CC="$ac_prog" 2354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2355 break 2 2356 fi 2357done 2358 done 2359IFS=$as_save_IFS 2360 2361fi 2362fi 2363ac_ct_CC=$ac_cv_prog_ac_ct_CC 2364if test -n "$ac_ct_CC"; then 2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2366$as_echo "$ac_ct_CC" >&6; } 2367else 2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2369$as_echo "no" >&6; } 2370fi 2371 2372 2373 test -n "$ac_ct_CC" && break 2374done 2375 2376 if test "x$ac_ct_CC" = x; then 2377 CC="" 2378 else 2379 case $cross_compiling:$ac_tool_warned in 2380yes:) 2381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2383ac_tool_warned=yes ;; 2384esac 2385 CC=$ac_ct_CC 2386 fi 2387fi 2388 2389fi 2390 2391 2392test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2394as_fn_error $? "no acceptable C compiler found in \$PATH 2395See \`config.log' for more details" "$LINENO" 5; } 2396 2397# Provide some information about the compiler. 2398$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2399set X $ac_compile 2400ac_compiler=$2 2401for ac_option in --version -v -V -qversion; do 2402 { { ac_try="$ac_compiler $ac_option >&5" 2403case "(($ac_try" in 2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2405 *) ac_try_echo=$ac_try;; 2406esac 2407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2408$as_echo "$ac_try_echo"; } >&5 2409 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2410 ac_status=$? 2411 if test -s conftest.err; then 2412 sed '10a\ 2413... rest of stderr output deleted ... 2414 10q' conftest.err >conftest.er1 2415 cat conftest.er1 >&5 2416 fi 2417 rm -f conftest.er1 conftest.err 2418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2419 test $ac_status = 0; } 2420done 2421 2422cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2423/* end confdefs.h. */ 2424 2425int 2426main () 2427{ 2428 2429 ; 2430 return 0; 2431} 2432_ACEOF 2433ac_clean_files_save=$ac_clean_files 2434ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2435# Try to create an executable without -o first, disregard a.out. 2436# It will help us diagnose broken compilers, and finding out an intuition 2437# of exeext. 2438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2439$as_echo_n "checking whether the C compiler works... " >&6; } 2440ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2441 2442# The possible output files: 2443ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2444 2445ac_rmfiles= 2446for ac_file in $ac_files 2447do 2448 case $ac_file in 2449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2450 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2451 esac 2452done 2453rm -f $ac_rmfiles 2454 2455if { { ac_try="$ac_link_default" 2456case "(($ac_try" in 2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2458 *) ac_try_echo=$ac_try;; 2459esac 2460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2461$as_echo "$ac_try_echo"; } >&5 2462 (eval "$ac_link_default") 2>&5 2463 ac_status=$? 2464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2465 test $ac_status = 0; }; then : 2466 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2467# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2468# in a Makefile. We should not override ac_cv_exeext if it was cached, 2469# so that the user can short-circuit this test for compilers unknown to 2470# Autoconf. 2471for ac_file in $ac_files '' 2472do 2473 test -f "$ac_file" || continue 2474 case $ac_file in 2475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2476 ;; 2477 [ab].out ) 2478 # We found the default executable, but exeext='' is most 2479 # certainly right. 2480 break;; 2481 *.* ) 2482 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2483 then :; else 2484 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2485 fi 2486 # We set ac_cv_exeext here because the later test for it is not 2487 # safe: cross compilers may not add the suffix if given an `-o' 2488 # argument, so we may need to know it at that point already. 2489 # Even if this section looks crufty: it has the advantage of 2490 # actually working. 2491 break;; 2492 * ) 2493 break;; 2494 esac 2495done 2496test "$ac_cv_exeext" = no && ac_cv_exeext= 2497 2498else 2499 ac_file='' 2500fi 2501if test -z "$ac_file"; then : 2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2503$as_echo "no" >&6; } 2504$as_echo "$as_me: failed program was:" >&5 2505sed 's/^/| /' conftest.$ac_ext >&5 2506 2507{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2509as_fn_error 77 "C compiler cannot create executables 2510See \`config.log' for more details" "$LINENO" 5; } 2511else 2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2513$as_echo "yes" >&6; } 2514fi 2515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2516$as_echo_n "checking for C compiler default output file name... " >&6; } 2517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2518$as_echo "$ac_file" >&6; } 2519ac_exeext=$ac_cv_exeext 2520 2521rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2522ac_clean_files=$ac_clean_files_save 2523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2524$as_echo_n "checking for suffix of executables... " >&6; } 2525if { { ac_try="$ac_link" 2526case "(($ac_try" in 2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2528 *) ac_try_echo=$ac_try;; 2529esac 2530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2531$as_echo "$ac_try_echo"; } >&5 2532 (eval "$ac_link") 2>&5 2533 ac_status=$? 2534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2535 test $ac_status = 0; }; then : 2536 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2537# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2538# work properly (i.e., refer to `conftest.exe'), while it won't with 2539# `rm'. 2540for ac_file in conftest.exe conftest conftest.*; do 2541 test -f "$ac_file" || continue 2542 case $ac_file in 2543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2544 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2545 break;; 2546 * ) break;; 2547 esac 2548done 2549else 2550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2552as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2553See \`config.log' for more details" "$LINENO" 5; } 2554fi 2555rm -f conftest conftest$ac_cv_exeext 2556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2557$as_echo "$ac_cv_exeext" >&6; } 2558 2559rm -f conftest.$ac_ext 2560EXEEXT=$ac_cv_exeext 2561ac_exeext=$EXEEXT 2562cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2563/* end confdefs.h. */ 2564#include <stdio.h> 2565int 2566main () 2567{ 2568FILE *f = fopen ("conftest.out", "w"); 2569 return ferror (f) || fclose (f) != 0; 2570 2571 ; 2572 return 0; 2573} 2574_ACEOF 2575ac_clean_files="$ac_clean_files conftest.out" 2576# Check that the compiler produces executables we can run. If not, either 2577# the compiler is broken, or we cross compile. 2578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2579$as_echo_n "checking whether we are cross compiling... " >&6; } 2580if test "$cross_compiling" != yes; then 2581 { { ac_try="$ac_link" 2582case "(($ac_try" in 2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2584 *) ac_try_echo=$ac_try;; 2585esac 2586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2587$as_echo "$ac_try_echo"; } >&5 2588 (eval "$ac_link") 2>&5 2589 ac_status=$? 2590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2591 test $ac_status = 0; } 2592 if { ac_try='./conftest$ac_cv_exeext' 2593 { { case "(($ac_try" in 2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2595 *) ac_try_echo=$ac_try;; 2596esac 2597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2598$as_echo "$ac_try_echo"; } >&5 2599 (eval "$ac_try") 2>&5 2600 ac_status=$? 2601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2602 test $ac_status = 0; }; }; then 2603 cross_compiling=no 2604 else 2605 if test "$cross_compiling" = maybe; then 2606 cross_compiling=yes 2607 else 2608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2610as_fn_error $? "cannot run C compiled programs. 2611If you meant to cross compile, use \`--host'. 2612See \`config.log' for more details" "$LINENO" 5; } 2613 fi 2614 fi 2615fi 2616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2617$as_echo "$cross_compiling" >&6; } 2618 2619rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2620ac_clean_files=$ac_clean_files_save 2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2622$as_echo_n "checking for suffix of object files... " >&6; } 2623if ${ac_cv_objext+:} false; then : 2624 $as_echo_n "(cached) " >&6 2625else 2626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2627/* end confdefs.h. */ 2628 2629int 2630main () 2631{ 2632 2633 ; 2634 return 0; 2635} 2636_ACEOF 2637rm -f conftest.o conftest.obj 2638if { { ac_try="$ac_compile" 2639case "(($ac_try" in 2640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2641 *) ac_try_echo=$ac_try;; 2642esac 2643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2644$as_echo "$ac_try_echo"; } >&5 2645 (eval "$ac_compile") 2>&5 2646 ac_status=$? 2647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2648 test $ac_status = 0; }; then : 2649 for ac_file in conftest.o conftest.obj conftest.*; do 2650 test -f "$ac_file" || continue; 2651 case $ac_file in 2652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2653 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2654 break;; 2655 esac 2656done 2657else 2658 $as_echo "$as_me: failed program was:" >&5 2659sed 's/^/| /' conftest.$ac_ext >&5 2660 2661{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2663as_fn_error $? "cannot compute suffix of object files: cannot compile 2664See \`config.log' for more details" "$LINENO" 5; } 2665fi 2666rm -f conftest.$ac_cv_objext conftest.$ac_ext 2667fi 2668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2669$as_echo "$ac_cv_objext" >&6; } 2670OBJEXT=$ac_cv_objext 2671ac_objext=$OBJEXT 2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2673$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2674if ${ac_cv_c_compiler_gnu+:} false; then : 2675 $as_echo_n "(cached) " >&6 2676else 2677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2678/* end confdefs.h. */ 2679 2680int 2681main () 2682{ 2683#ifndef __GNUC__ 2684 choke me 2685#endif 2686 2687 ; 2688 return 0; 2689} 2690_ACEOF 2691if ac_fn_c_try_compile "$LINENO"; then : 2692 ac_compiler_gnu=yes 2693else 2694 ac_compiler_gnu=no 2695fi 2696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2697ac_cv_c_compiler_gnu=$ac_compiler_gnu 2698 2699fi 2700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2701$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2702if test $ac_compiler_gnu = yes; then 2703 GCC=yes 2704else 2705 GCC= 2706fi 2707ac_test_CFLAGS=${CFLAGS+set} 2708ac_save_CFLAGS=$CFLAGS 2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2710$as_echo_n "checking whether $CC accepts -g... " >&6; } 2711if ${ac_cv_prog_cc_g+:} false; then : 2712 $as_echo_n "(cached) " >&6 2713else 2714 ac_save_c_werror_flag=$ac_c_werror_flag 2715 ac_c_werror_flag=yes 2716 ac_cv_prog_cc_g=no 2717 CFLAGS="-g" 2718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2719/* end confdefs.h. */ 2720 2721int 2722main () 2723{ 2724 2725 ; 2726 return 0; 2727} 2728_ACEOF 2729if ac_fn_c_try_compile "$LINENO"; then : 2730 ac_cv_prog_cc_g=yes 2731else 2732 CFLAGS="" 2733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2734/* end confdefs.h. */ 2735 2736int 2737main () 2738{ 2739 2740 ; 2741 return 0; 2742} 2743_ACEOF 2744if ac_fn_c_try_compile "$LINENO"; then : 2745 2746else 2747 ac_c_werror_flag=$ac_save_c_werror_flag 2748 CFLAGS="-g" 2749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2750/* end confdefs.h. */ 2751 2752int 2753main () 2754{ 2755 2756 ; 2757 return 0; 2758} 2759_ACEOF 2760if ac_fn_c_try_compile "$LINENO"; then : 2761 ac_cv_prog_cc_g=yes 2762fi 2763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2764fi 2765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2766fi 2767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2768 ac_c_werror_flag=$ac_save_c_werror_flag 2769fi 2770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2771$as_echo "$ac_cv_prog_cc_g" >&6; } 2772if test "$ac_test_CFLAGS" = set; then 2773 CFLAGS=$ac_save_CFLAGS 2774elif test $ac_cv_prog_cc_g = yes; then 2775 if test "$GCC" = yes; then 2776 CFLAGS="-g -O2" 2777 else 2778 CFLAGS="-g" 2779 fi 2780else 2781 if test "$GCC" = yes; then 2782 CFLAGS="-O2" 2783 else 2784 CFLAGS= 2785 fi 2786fi 2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2788$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2789if ${ac_cv_prog_cc_c89+:} false; then : 2790 $as_echo_n "(cached) " >&6 2791else 2792 ac_cv_prog_cc_c89=no 2793ac_save_CC=$CC 2794cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2795/* end confdefs.h. */ 2796#include <stdarg.h> 2797#include <stdio.h> 2798struct stat; 2799/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2800struct buf { int x; }; 2801FILE * (*rcsopen) (struct buf *, struct stat *, int); 2802static char *e (p, i) 2803 char **p; 2804 int i; 2805{ 2806 return p[i]; 2807} 2808static char *f (char * (*g) (char **, int), char **p, ...) 2809{ 2810 char *s; 2811 va_list v; 2812 va_start (v,p); 2813 s = g (p, va_arg (v,int)); 2814 va_end (v); 2815 return s; 2816} 2817 2818/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2819 function prototypes and stuff, but not '\xHH' hex character constants. 2820 These don't provoke an error unfortunately, instead are silently treated 2821 as 'x'. The following induces an error, until -std is added to get 2822 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2823 array size at least. It's necessary to write '\x00'==0 to get something 2824 that's true only with -std. */ 2825int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2826 2827/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2828 inside strings and character constants. */ 2829#define FOO(x) 'x' 2830int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2831 2832int test (int i, double x); 2833struct s1 {int (*f) (int a);}; 2834struct s2 {int (*f) (double a);}; 2835int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2836int argc; 2837char **argv; 2838int 2839main () 2840{ 2841return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2842 ; 2843 return 0; 2844} 2845_ACEOF 2846for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2847 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2848do 2849 CC="$ac_save_CC $ac_arg" 2850 if ac_fn_c_try_compile "$LINENO"; then : 2851 ac_cv_prog_cc_c89=$ac_arg 2852fi 2853rm -f core conftest.err conftest.$ac_objext 2854 test "x$ac_cv_prog_cc_c89" != "xno" && break 2855done 2856rm -f conftest.$ac_ext 2857CC=$ac_save_CC 2858 2859fi 2860# AC_CACHE_VAL 2861case "x$ac_cv_prog_cc_c89" in 2862 x) 2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 2864$as_echo "none needed" >&6; } ;; 2865 xno) 2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 2867$as_echo "unsupported" >&6; } ;; 2868 *) 2869 CC="$CC $ac_cv_prog_cc_c89" 2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 2871$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 2872esac 2873if test "x$ac_cv_prog_cc_c89" != xno; then : 2874 2875fi 2876 2877ac_ext=c 2878ac_cpp='$CPP $CPPFLAGS' 2879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2881ac_compiler_gnu=$ac_cv_c_compiler_gnu 2882 2883ac_aux_dir= 2884for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2885 if test -f "$ac_dir/install-sh"; then 2886 ac_aux_dir=$ac_dir 2887 ac_install_sh="$ac_aux_dir/install-sh -c" 2888 break 2889 elif test -f "$ac_dir/install.sh"; then 2890 ac_aux_dir=$ac_dir 2891 ac_install_sh="$ac_aux_dir/install.sh -c" 2892 break 2893 elif test -f "$ac_dir/shtool"; then 2894 ac_aux_dir=$ac_dir 2895 ac_install_sh="$ac_aux_dir/shtool install -c" 2896 break 2897 fi 2898done 2899if test -z "$ac_aux_dir"; then 2900 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2901fi 2902 2903# These three variables are undocumented and unsupported, 2904# and are intended to be withdrawn in a future Autoconf release. 2905# They can cause serious problems if a builder's source tree is in a directory 2906# whose full name contains unusual characters. 2907ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2908ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2909ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2910 2911 2912# Find a good install program. We prefer a C program (faster), 2913# so one script is as good as another. But avoid the broken or 2914# incompatible versions: 2915# SysV /etc/install, /usr/sbin/install 2916# SunOS /usr/etc/install 2917# IRIX /sbin/install 2918# AIX /bin/install 2919# AmigaOS /C/install, which installs bootblocks on floppy discs 2920# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2921# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2922# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2923# OS/2's system install, which has a completely different semantic 2924# ./install, which can be erroneously created by make from ./install.sh. 2925# Reject install programs that cannot install multiple files. 2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2927$as_echo_n "checking for a BSD-compatible install... " >&6; } 2928if test -z "$INSTALL"; then 2929if ${ac_cv_path_install+:} false; then : 2930 $as_echo_n "(cached) " >&6 2931else 2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2933for as_dir in $PATH 2934do 2935 IFS=$as_save_IFS 2936 test -z "$as_dir" && as_dir=. 2937 # Account for people who put trailing slashes in PATH elements. 2938case $as_dir/ in #(( 2939 ./ | .// | /[cC]/* | \ 2940 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2941 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2942 /usr/ucb/* ) ;; 2943 *) 2944 # OSF1 and SCO ODT 3.0 have their own names for install. 2945 # Don't use installbsd from OSF since it installs stuff as root 2946 # by default. 2947 for ac_prog in ginstall scoinst install; do 2948 for ac_exec_ext in '' $ac_executable_extensions; do 2949 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2950 if test $ac_prog = install && 2951 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2952 # AIX install. It has an incompatible calling convention. 2953 : 2954 elif test $ac_prog = install && 2955 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2956 # program-specific install script used by HP pwplus--don't use. 2957 : 2958 else 2959 rm -rf conftest.one conftest.two conftest.dir 2960 echo one > conftest.one 2961 echo two > conftest.two 2962 mkdir conftest.dir 2963 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2964 test -s conftest.one && test -s conftest.two && 2965 test -s conftest.dir/conftest.one && 2966 test -s conftest.dir/conftest.two 2967 then 2968 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2969 break 3 2970 fi 2971 fi 2972 fi 2973 done 2974 done 2975 ;; 2976esac 2977 2978 done 2979IFS=$as_save_IFS 2980 2981rm -rf conftest.one conftest.two conftest.dir 2982 2983fi 2984 if test "${ac_cv_path_install+set}" = set; then 2985 INSTALL=$ac_cv_path_install 2986 else 2987 # As a last resort, use the slow shell script. Don't cache a 2988 # value for INSTALL within a source directory, because that will 2989 # break other packages using the cache if that directory is 2990 # removed, or if the value is a relative name. 2991 INSTALL=$ac_install_sh 2992 fi 2993fi 2994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2995$as_echo "$INSTALL" >&6; } 2996 2997# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2998# It thinks the first close brace ends the variable substitution. 2999test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3000 3001test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3002 3003test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3004 3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3006$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3007set x ${MAKE-make} 3008ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3009if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3010 $as_echo_n "(cached) " >&6 3011else 3012 cat >conftest.make <<\_ACEOF 3013SHELL = /bin/sh 3014all: 3015 @echo '@@@%%%=$(MAKE)=@@@%%%' 3016_ACEOF 3017# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3018case `${MAKE-make} -f conftest.make 2>/dev/null` in 3019 *@@@%%%=?*=@@@%%%*) 3020 eval ac_cv_prog_make_${ac_make}_set=yes;; 3021 *) 3022 eval ac_cv_prog_make_${ac_make}_set=no;; 3023esac 3024rm -f conftest.make 3025fi 3026if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3028$as_echo "yes" >&6; } 3029 SET_MAKE= 3030else 3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3032$as_echo "no" >&6; } 3033 SET_MAKE="MAKE=${MAKE-make}" 3034fi 3035 3036 3037 3038# Check whether --with-debug was given. 3039if test "${with_debug+set}" = set; then : 3040 withval=$with_debug; CPPFLAGS="-Wall -g -fexceptions -DDO_DEBUG=1 $CPPFLAGS" 3041fi 3042 3043if test "$with_debug"; then echo "debugging enabled"; fi 3044 3045 3046# Check whether --with-netpbm was given. 3047if test "${with_netpbm+set}" = set; then : 3048 withval=$with_netpbm; if test "$withval" != "no"; then 3049 LDFLAGS="-L$withval/lib $LDFLAGS";\ 3050 CPPFLAGS="-I$withval/include $CPPFLAGS";\ 3051 fi 3052fi 3053 3054if test -n "$with_netpbm"; then echo "option: with_netpbm $with_netpbm"; fi 3055 3056if test "$with_netpbm" != "no"; then 3057# netpbm-10.26 + SuSE-10.0: netpbm needs mathlib -lm 3058# netpbm-10 : libnetpbm + pam.h (+ p[bgpn]m.h, libp[bgpn]m.so as links) 3059# netpbm-9 : libpnm + pnm.h (+ p[bgp]m.h) 3060# pnm_readpaminit (netpbm-10) 3061# pnm_readpnminit (netpbm-9,10) 3062# ToDo: how to check that -lm is needed? 3063LDFLAGS="-lm $LDFLAGS" 3064 3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pnm_readpnminit" >&5 3066$as_echo_n "checking for library containing pnm_readpnminit... " >&6; } 3067if ${ac_cv_search_pnm_readpnminit+:} false; then : 3068 $as_echo_n "(cached) " >&6 3069else 3070 ac_func_search_save_LIBS=$LIBS 3071cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3072/* end confdefs.h. */ 3073 3074/* Override any GCC internal prototype to avoid an error. 3075 Use char because int might match the return type of a GCC 3076 builtin and then its argument prototype would still apply. */ 3077#ifdef __cplusplus 3078extern "C" 3079#endif 3080char pnm_readpnminit (); 3081int 3082main () 3083{ 3084return pnm_readpnminit (); 3085 ; 3086 return 0; 3087} 3088_ACEOF 3089for ac_lib in '' netpbm pnm; do 3090 if test -z "$ac_lib"; then 3091 ac_res="none required" 3092 else 3093 ac_res=-l$ac_lib 3094 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3095 fi 3096 if ac_fn_c_try_link "$LINENO"; then : 3097 ac_cv_search_pnm_readpnminit=$ac_res 3098fi 3099rm -f core conftest.err conftest.$ac_objext \ 3100 conftest$ac_exeext 3101 if ${ac_cv_search_pnm_readpnminit+:} false; then : 3102 break 3103fi 3104done 3105if ${ac_cv_search_pnm_readpnminit+:} false; then : 3106 3107else 3108 ac_cv_search_pnm_readpnminit=no 3109fi 3110rm conftest.$ac_ext 3111LIBS=$ac_func_search_save_LIBS 3112fi 3113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pnm_readpnminit" >&5 3114$as_echo "$ac_cv_search_pnm_readpnminit" >&6; } 3115ac_res=$ac_cv_search_pnm_readpnminit 3116if test "$ac_res" != no; then : 3117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3118 check_netpbm_h="pam.h pnm.h" 3119else 3120 echo " * * * try option --with-netpbm=PATH" 3121fi 3122 3123fi 3124 3125ac_ext=c 3126ac_cpp='$CPP $CPPFLAGS' 3127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3129ac_compiler_gnu=$ac_cv_c_compiler_gnu 3130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3131$as_echo_n "checking how to run the C preprocessor... " >&6; } 3132# On Suns, sometimes $CPP names a directory. 3133if test -n "$CPP" && test -d "$CPP"; then 3134 CPP= 3135fi 3136if test -z "$CPP"; then 3137 if ${ac_cv_prog_CPP+:} false; then : 3138 $as_echo_n "(cached) " >&6 3139else 3140 # Double quotes because CPP needs to be expanded 3141 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3142 do 3143 ac_preproc_ok=false 3144for ac_c_preproc_warn_flag in '' yes 3145do 3146 # Use a header file that comes with gcc, so configuring glibc 3147 # with a fresh cross-compiler works. 3148 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3149 # <limits.h> exists even on freestanding compilers. 3150 # On the NeXT, cc -E runs the code through the compiler's parser, 3151 # not just through cpp. "Syntax error" is here to catch this case. 3152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3153/* end confdefs.h. */ 3154#ifdef __STDC__ 3155# include <limits.h> 3156#else 3157# include <assert.h> 3158#endif 3159 Syntax error 3160_ACEOF 3161if ac_fn_c_try_cpp "$LINENO"; then : 3162 3163else 3164 # Broken: fails on valid input. 3165continue 3166fi 3167rm -f conftest.err conftest.i conftest.$ac_ext 3168 3169 # OK, works on sane cases. Now check whether nonexistent headers 3170 # can be detected and how. 3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3172/* end confdefs.h. */ 3173#include <ac_nonexistent.h> 3174_ACEOF 3175if ac_fn_c_try_cpp "$LINENO"; then : 3176 # Broken: success on invalid input. 3177continue 3178else 3179 # Passes both tests. 3180ac_preproc_ok=: 3181break 3182fi 3183rm -f conftest.err conftest.i conftest.$ac_ext 3184 3185done 3186# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3187rm -f conftest.i conftest.err conftest.$ac_ext 3188if $ac_preproc_ok; then : 3189 break 3190fi 3191 3192 done 3193 ac_cv_prog_CPP=$CPP 3194 3195fi 3196 CPP=$ac_cv_prog_CPP 3197else 3198 ac_cv_prog_CPP=$CPP 3199fi 3200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3201$as_echo "$CPP" >&6; } 3202ac_preproc_ok=false 3203for ac_c_preproc_warn_flag in '' yes 3204do 3205 # Use a header file that comes with gcc, so configuring glibc 3206 # with a fresh cross-compiler works. 3207 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3208 # <limits.h> exists even on freestanding compilers. 3209 # On the NeXT, cc -E runs the code through the compiler's parser, 3210 # not just through cpp. "Syntax error" is here to catch this case. 3211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3212/* end confdefs.h. */ 3213#ifdef __STDC__ 3214# include <limits.h> 3215#else 3216# include <assert.h> 3217#endif 3218 Syntax error 3219_ACEOF 3220if ac_fn_c_try_cpp "$LINENO"; then : 3221 3222else 3223 # Broken: fails on valid input. 3224continue 3225fi 3226rm -f conftest.err conftest.i conftest.$ac_ext 3227 3228 # OK, works on sane cases. Now check whether nonexistent headers 3229 # can be detected and how. 3230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3231/* end confdefs.h. */ 3232#include <ac_nonexistent.h> 3233_ACEOF 3234if ac_fn_c_try_cpp "$LINENO"; then : 3235 # Broken: success on invalid input. 3236continue 3237else 3238 # Passes both tests. 3239ac_preproc_ok=: 3240break 3241fi 3242rm -f conftest.err conftest.i conftest.$ac_ext 3243 3244done 3245# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3246rm -f conftest.i conftest.err conftest.$ac_ext 3247if $ac_preproc_ok; then : 3248 3249else 3250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3252as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3253See \`config.log' for more details" "$LINENO" 5; } 3254fi 3255 3256ac_ext=c 3257ac_cpp='$CPP $CPPFLAGS' 3258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3260ac_compiler_gnu=$ac_cv_c_compiler_gnu 3261 3262 3263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3264$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3265if ${ac_cv_path_GREP+:} false; then : 3266 $as_echo_n "(cached) " >&6 3267else 3268 if test -z "$GREP"; then 3269 ac_path_GREP_found=false 3270 # Loop through the user's path and test for each of PROGNAME-LIST 3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3272for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3273do 3274 IFS=$as_save_IFS 3275 test -z "$as_dir" && as_dir=. 3276 for ac_prog in grep ggrep; do 3277 for ac_exec_ext in '' $ac_executable_extensions; do 3278 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3279 as_fn_executable_p "$ac_path_GREP" || continue 3280# Check for GNU ac_path_GREP and select it if it is found. 3281 # Check for GNU $ac_path_GREP 3282case `"$ac_path_GREP" --version 2>&1` in 3283*GNU*) 3284 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3285*) 3286 ac_count=0 3287 $as_echo_n 0123456789 >"conftest.in" 3288 while : 3289 do 3290 cat "conftest.in" "conftest.in" >"conftest.tmp" 3291 mv "conftest.tmp" "conftest.in" 3292 cp "conftest.in" "conftest.nl" 3293 $as_echo 'GREP' >> "conftest.nl" 3294 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3295 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3296 as_fn_arith $ac_count + 1 && ac_count=$as_val 3297 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3298 # Best one so far, save it but keep looking for a better one 3299 ac_cv_path_GREP="$ac_path_GREP" 3300 ac_path_GREP_max=$ac_count 3301 fi 3302 # 10*(2^10) chars as input seems more than enough 3303 test $ac_count -gt 10 && break 3304 done 3305 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3306esac 3307 3308 $ac_path_GREP_found && break 3 3309 done 3310 done 3311 done 3312IFS=$as_save_IFS 3313 if test -z "$ac_cv_path_GREP"; then 3314 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3315 fi 3316else 3317 ac_cv_path_GREP=$GREP 3318fi 3319 3320fi 3321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3322$as_echo "$ac_cv_path_GREP" >&6; } 3323 GREP="$ac_cv_path_GREP" 3324 3325 3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3327$as_echo_n "checking for egrep... " >&6; } 3328if ${ac_cv_path_EGREP+:} false; then : 3329 $as_echo_n "(cached) " >&6 3330else 3331 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3332 then ac_cv_path_EGREP="$GREP -E" 3333 else 3334 if test -z "$EGREP"; then 3335 ac_path_EGREP_found=false 3336 # Loop through the user's path and test for each of PROGNAME-LIST 3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3338for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3339do 3340 IFS=$as_save_IFS 3341 test -z "$as_dir" && as_dir=. 3342 for ac_prog in egrep; do 3343 for ac_exec_ext in '' $ac_executable_extensions; do 3344 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3345 as_fn_executable_p "$ac_path_EGREP" || continue 3346# Check for GNU ac_path_EGREP and select it if it is found. 3347 # Check for GNU $ac_path_EGREP 3348case `"$ac_path_EGREP" --version 2>&1` in 3349*GNU*) 3350 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3351*) 3352 ac_count=0 3353 $as_echo_n 0123456789 >"conftest.in" 3354 while : 3355 do 3356 cat "conftest.in" "conftest.in" >"conftest.tmp" 3357 mv "conftest.tmp" "conftest.in" 3358 cp "conftest.in" "conftest.nl" 3359 $as_echo 'EGREP' >> "conftest.nl" 3360 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3361 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3362 as_fn_arith $ac_count + 1 && ac_count=$as_val 3363 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3364 # Best one so far, save it but keep looking for a better one 3365 ac_cv_path_EGREP="$ac_path_EGREP" 3366 ac_path_EGREP_max=$ac_count 3367 fi 3368 # 10*(2^10) chars as input seems more than enough 3369 test $ac_count -gt 10 && break 3370 done 3371 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3372esac 3373 3374 $ac_path_EGREP_found && break 3 3375 done 3376 done 3377 done 3378IFS=$as_save_IFS 3379 if test -z "$ac_cv_path_EGREP"; then 3380 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3381 fi 3382else 3383 ac_cv_path_EGREP=$EGREP 3384fi 3385 3386 fi 3387fi 3388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3389$as_echo "$ac_cv_path_EGREP" >&6; } 3390 EGREP="$ac_cv_path_EGREP" 3391 3392 3393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3394$as_echo_n "checking for ANSI C header files... " >&6; } 3395if ${ac_cv_header_stdc+:} false; then : 3396 $as_echo_n "(cached) " >&6 3397else 3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3399/* end confdefs.h. */ 3400#include <stdlib.h> 3401#include <stdarg.h> 3402#include <string.h> 3403#include <float.h> 3404 3405int 3406main () 3407{ 3408 3409 ; 3410 return 0; 3411} 3412_ACEOF 3413if ac_fn_c_try_compile "$LINENO"; then : 3414 ac_cv_header_stdc=yes 3415else 3416 ac_cv_header_stdc=no 3417fi 3418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3419 3420if test $ac_cv_header_stdc = yes; then 3421 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3423/* end confdefs.h. */ 3424#include <string.h> 3425 3426_ACEOF 3427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3428 $EGREP "memchr" >/dev/null 2>&1; then : 3429 3430else 3431 ac_cv_header_stdc=no 3432fi 3433rm -f conftest* 3434 3435fi 3436 3437if test $ac_cv_header_stdc = yes; then 3438 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3440/* end confdefs.h. */ 3441#include <stdlib.h> 3442 3443_ACEOF 3444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3445 $EGREP "free" >/dev/null 2>&1; then : 3446 3447else 3448 ac_cv_header_stdc=no 3449fi 3450rm -f conftest* 3451 3452fi 3453 3454if test $ac_cv_header_stdc = yes; then 3455 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3456 if test "$cross_compiling" = yes; then : 3457 : 3458else 3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3460/* end confdefs.h. */ 3461#include <ctype.h> 3462#include <stdlib.h> 3463#if ((' ' & 0x0FF) == 0x020) 3464# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3465# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3466#else 3467# define ISLOWER(c) \ 3468 (('a' <= (c) && (c) <= 'i') \ 3469 || ('j' <= (c) && (c) <= 'r') \ 3470 || ('s' <= (c) && (c) <= 'z')) 3471# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3472#endif 3473 3474#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3475int 3476main () 3477{ 3478 int i; 3479 for (i = 0; i < 256; i++) 3480 if (XOR (islower (i), ISLOWER (i)) 3481 || toupper (i) != TOUPPER (i)) 3482 return 2; 3483 return 0; 3484} 3485_ACEOF 3486if ac_fn_c_try_run "$LINENO"; then : 3487 3488else 3489 ac_cv_header_stdc=no 3490fi 3491rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3492 conftest.$ac_objext conftest.beam conftest.$ac_ext 3493fi 3494 3495fi 3496fi 3497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3498$as_echo "$ac_cv_header_stdc" >&6; } 3499if test $ac_cv_header_stdc = yes; then 3500 3501$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3502 3503fi 3504 3505# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3506for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3507 inttypes.h stdint.h unistd.h 3508do : 3509 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3510ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3511" 3512if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3513 cat >>confdefs.h <<_ACEOF 3514#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3515_ACEOF 3516 3517fi 3518 3519done 3520 3521 3522for ac_header in unistd.h wchar.h ${check_netpbm_h} 3523do : 3524 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3525ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 3526if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3527 cat >>confdefs.h <<_ACEOF 3528#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3529_ACEOF 3530 3531fi 3532 3533done 3534 3535 3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 3537$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 3538if ${ac_cv_c_const+:} false; then : 3539 $as_echo_n "(cached) " >&6 3540else 3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3542/* end confdefs.h. */ 3543 3544int 3545main () 3546{ 3547 3548#ifndef __cplusplus 3549 /* Ultrix mips cc rejects this sort of thing. */ 3550 typedef int charset[2]; 3551 const charset cs = { 0, 0 }; 3552 /* SunOS 4.1.1 cc rejects this. */ 3553 char const *const *pcpcc; 3554 char **ppc; 3555 /* NEC SVR4.0.2 mips cc rejects this. */ 3556 struct point {int x, y;}; 3557 static struct point const zero = {0,0}; 3558 /* AIX XL C 1.02.0.0 rejects this. 3559 It does not let you subtract one const X* pointer from another in 3560 an arm of an if-expression whose if-part is not a constant 3561 expression */ 3562 const char *g = "string"; 3563 pcpcc = &g + (g ? g-g : 0); 3564 /* HPUX 7.0 cc rejects these. */ 3565 ++pcpcc; 3566 ppc = (char**) pcpcc; 3567 pcpcc = (char const *const *) ppc; 3568 { /* SCO 3.2v4 cc rejects this sort of thing. */ 3569 char tx; 3570 char *t = &tx; 3571 char const *s = 0 ? (char *) 0 : (char const *) 0; 3572 3573 *t++ = 0; 3574 if (s) return 0; 3575 } 3576 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 3577 int x[] = {25, 17}; 3578 const int *foo = &x[0]; 3579 ++foo; 3580 } 3581 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 3582 typedef const int *iptr; 3583 iptr p = 0; 3584 ++p; 3585 } 3586 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 3587 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 3588 struct s { int j; const int *ap[3]; } bx; 3589 struct s *b = &bx; b->j = 5; 3590 } 3591 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 3592 const int foo = 10; 3593 if (!foo) return 0; 3594 } 3595 return !cs[0] && !zero.x; 3596#endif 3597 3598 ; 3599 return 0; 3600} 3601_ACEOF 3602if ac_fn_c_try_compile "$LINENO"; then : 3603 ac_cv_c_const=yes 3604else 3605 ac_cv_c_const=no 3606fi 3607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3608fi 3609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 3610$as_echo "$ac_cv_c_const" >&6; } 3611if test $ac_cv_c_const = no; then 3612 3613$as_echo "#define const /**/" >>confdefs.h 3614 3615fi 3616 3617 3618if ${ac_cv_func_setvbuf_reversed+:} false; then : 3619 $as_echo_n "(cached) " >&6 3620else 3621 ac_cv_func_setvbuf_reversed=no 3622fi 3623 3624 3625for ac_func in wcschr wcsdup gettimeofday popen 3626do : 3627 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 3628ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 3629if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 3630 cat >>confdefs.h <<_ACEOF 3631#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 3632_ACEOF 3633 3634fi 3635done 3636 3637 3638 3639ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile man/Makefile" 3640 3641cat >confcache <<\_ACEOF 3642# This file is a shell script that caches the results of configure 3643# tests run on this system so they can be shared between configure 3644# scripts and configure runs, see configure's option --config-cache. 3645# It is not useful on other systems. If it contains results you don't 3646# want to keep, you may remove or edit it. 3647# 3648# config.status only pays attention to the cache file if you give it 3649# the --recheck option to rerun configure. 3650# 3651# `ac_cv_env_foo' variables (set or unset) will be overridden when 3652# loading this file, other *unset* `ac_cv_foo' will be assigned the 3653# following values. 3654 3655_ACEOF 3656 3657# The following way of writing the cache mishandles newlines in values, 3658# but we know of no workaround that is simple, portable, and efficient. 3659# So, we kill variables containing newlines. 3660# Ultrix sh set writes to stderr and can't be redirected directly, 3661# and sets the high bit in the cache file unless we assign to the vars. 3662( 3663 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 3664 eval ac_val=\$$ac_var 3665 case $ac_val in #( 3666 *${as_nl}*) 3667 case $ac_var in #( 3668 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3669$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3670 esac 3671 case $ac_var in #( 3672 _ | IFS | as_nl) ;; #( 3673 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3674 *) { eval $ac_var=; unset $ac_var;} ;; 3675 esac ;; 3676 esac 3677 done 3678 3679 (set) 2>&1 | 3680 case $as_nl`(ac_space=' '; set) 2>&1` in #( 3681 *${as_nl}ac_space=\ *) 3682 # `set' does not quote correctly, so add quotes: double-quote 3683 # substitution turns \\\\ into \\, and sed turns \\ into \. 3684 sed -n \ 3685 "s/'/'\\\\''/g; 3686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 3687 ;; #( 3688 *) 3689 # `set' quotes correctly as required by POSIX, so do not add quotes. 3690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3691 ;; 3692 esac | 3693 sort 3694) | 3695 sed ' 3696 /^ac_cv_env_/b end 3697 t clear 3698 :clear 3699 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 3700 t end 3701 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 3702 :end' >>confcache 3703if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 3704 if test -w "$cache_file"; then 3705 if test "x$cache_file" != "x/dev/null"; then 3706 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 3707$as_echo "$as_me: updating cache $cache_file" >&6;} 3708 if test ! -f "$cache_file" || test -h "$cache_file"; then 3709 cat confcache >"$cache_file" 3710 else 3711 case $cache_file in #( 3712 */* | ?:*) 3713 mv -f confcache "$cache_file"$$ && 3714 mv -f "$cache_file"$$ "$cache_file" ;; #( 3715 *) 3716 mv -f confcache "$cache_file" ;; 3717 esac 3718 fi 3719 fi 3720 else 3721 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 3722$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 3723 fi 3724fi 3725rm -f confcache 3726 3727test "x$prefix" = xNONE && prefix=$ac_default_prefix 3728# Let make expand exec_prefix. 3729test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 3730 3731DEFS=-DHAVE_CONFIG_H 3732 3733ac_libobjs= 3734ac_ltlibobjs= 3735U= 3736for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 3737 # 1. Remove the extension, and $U if already installed. 3738 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 3739 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 3740 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 3741 # will be set to the directory where LIBOBJS objects are built. 3742 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 3743 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 3744done 3745LIBOBJS=$ac_libobjs 3746 3747LTLIBOBJS=$ac_ltlibobjs 3748 3749 3750 3751: "${CONFIG_STATUS=./config.status}" 3752ac_write_fail=0 3753ac_clean_files_save=$ac_clean_files 3754ac_clean_files="$ac_clean_files $CONFIG_STATUS" 3755{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 3756$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 3757as_write_fail=0 3758cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 3759#! $SHELL 3760# Generated by $as_me. 3761# Run this file to recreate the current configuration. 3762# Compiler output produced by configure, useful for debugging 3763# configure, is in config.log if it exists. 3764 3765debug=false 3766ac_cs_recheck=false 3767ac_cs_silent=false 3768 3769SHELL=\${CONFIG_SHELL-$SHELL} 3770export SHELL 3771_ASEOF 3772cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 3773## -------------------- ## 3774## M4sh Initialization. ## 3775## -------------------- ## 3776 3777# Be more Bourne compatible 3778DUALCASE=1; export DUALCASE # for MKS sh 3779if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 3780 emulate sh 3781 NULLCMD=: 3782 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 3783 # is contrary to our usage. Disable this feature. 3784 alias -g '${1+"$@"}'='"$@"' 3785 setopt NO_GLOB_SUBST 3786else 3787 case `(set -o) 2>/dev/null` in #( 3788 *posix*) : 3789 set -o posix ;; #( 3790 *) : 3791 ;; 3792esac 3793fi 3794 3795 3796as_nl=' 3797' 3798export as_nl 3799# Printing a long string crashes Solaris 7 /usr/bin/printf. 3800as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3801as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 3802as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 3803# Prefer a ksh shell builtin over an external printf program on Solaris, 3804# but without wasting forks for bash or zsh. 3805if test -z "$BASH_VERSION$ZSH_VERSION" \ 3806 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 3807 as_echo='print -r --' 3808 as_echo_n='print -rn --' 3809elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 3810 as_echo='printf %s\n' 3811 as_echo_n='printf %s' 3812else 3813 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 3814 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 3815 as_echo_n='/usr/ucb/echo -n' 3816 else 3817 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 3818 as_echo_n_body='eval 3819 arg=$1; 3820 case $arg in #( 3821 *"$as_nl"*) 3822 expr "X$arg" : "X\\(.*\\)$as_nl"; 3823 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 3824 esac; 3825 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 3826 ' 3827 export as_echo_n_body 3828 as_echo_n='sh -c $as_echo_n_body as_echo' 3829 fi 3830 export as_echo_body 3831 as_echo='sh -c $as_echo_body as_echo' 3832fi 3833 3834# The user is always right. 3835if test "${PATH_SEPARATOR+set}" != set; then 3836 PATH_SEPARATOR=: 3837 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 3838 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 3839 PATH_SEPARATOR=';' 3840 } 3841fi 3842 3843 3844# IFS 3845# We need space, tab and new line, in precisely that order. Quoting is 3846# there to prevent editors from complaining about space-tab. 3847# (If _AS_PATH_WALK were called with IFS unset, it would disable word 3848# splitting by setting IFS to empty value.) 3849IFS=" "" $as_nl" 3850 3851# Find who we are. Look in the path if we contain no directory separator. 3852as_myself= 3853case $0 in #(( 3854 *[\\/]* ) as_myself=$0 ;; 3855 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3856for as_dir in $PATH 3857do 3858 IFS=$as_save_IFS 3859 test -z "$as_dir" && as_dir=. 3860 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 3861 done 3862IFS=$as_save_IFS 3863 3864 ;; 3865esac 3866# We did not find ourselves, most probably we were run as `sh COMMAND' 3867# in which case we are not to be found in the path. 3868if test "x$as_myself" = x; then 3869 as_myself=$0 3870fi 3871if test ! -f "$as_myself"; then 3872 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 3873 exit 1 3874fi 3875 3876# Unset variables that we do not need and which cause bugs (e.g. in 3877# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 3878# suppresses any "Segmentation fault" message there. '((' could 3879# trigger a bug in pdksh 5.2.14. 3880for as_var in BASH_ENV ENV MAIL MAILPATH 3881do eval test x\${$as_var+set} = xset \ 3882 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 3883done 3884PS1='$ ' 3885PS2='> ' 3886PS4='+ ' 3887 3888# NLS nuisances. 3889LC_ALL=C 3890export LC_ALL 3891LANGUAGE=C 3892export LANGUAGE 3893 3894# CDPATH. 3895(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 3896 3897 3898# as_fn_error STATUS ERROR [LINENO LOG_FD] 3899# ---------------------------------------- 3900# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 3901# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 3902# script with STATUS, using 1 if that was 0. 3903as_fn_error () 3904{ 3905 as_status=$1; test $as_status -eq 0 && as_status=1 3906 if test "$4"; then 3907 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3908 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 3909 fi 3910 $as_echo "$as_me: error: $2" >&2 3911 as_fn_exit $as_status 3912} # as_fn_error 3913 3914 3915# as_fn_set_status STATUS 3916# ----------------------- 3917# Set $? to STATUS, without forking. 3918as_fn_set_status () 3919{ 3920 return $1 3921} # as_fn_set_status 3922 3923# as_fn_exit STATUS 3924# ----------------- 3925# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 3926as_fn_exit () 3927{ 3928 set +e 3929 as_fn_set_status $1 3930 exit $1 3931} # as_fn_exit 3932 3933# as_fn_unset VAR 3934# --------------- 3935# Portably unset VAR. 3936as_fn_unset () 3937{ 3938 { eval $1=; unset $1;} 3939} 3940as_unset=as_fn_unset 3941# as_fn_append VAR VALUE 3942# ---------------------- 3943# Append the text in VALUE to the end of the definition contained in VAR. Take 3944# advantage of any shell optimizations that allow amortized linear growth over 3945# repeated appends, instead of the typical quadratic growth present in naive 3946# implementations. 3947if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 3948 eval 'as_fn_append () 3949 { 3950 eval $1+=\$2 3951 }' 3952else 3953 as_fn_append () 3954 { 3955 eval $1=\$$1\$2 3956 } 3957fi # as_fn_append 3958 3959# as_fn_arith ARG... 3960# ------------------ 3961# Perform arithmetic evaluation on the ARGs, and store the result in the 3962# global $as_val. Take advantage of shells that can avoid forks. The arguments 3963# must be portable across $(()) and expr. 3964if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 3965 eval 'as_fn_arith () 3966 { 3967 as_val=$(( $* )) 3968 }' 3969else 3970 as_fn_arith () 3971 { 3972 as_val=`expr "$@" || test $? -eq 1` 3973 } 3974fi # as_fn_arith 3975 3976 3977if expr a : '\(a\)' >/dev/null 2>&1 && 3978 test "X`expr 00001 : '.*\(...\)'`" = X001; then 3979 as_expr=expr 3980else 3981 as_expr=false 3982fi 3983 3984if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 3985 as_basename=basename 3986else 3987 as_basename=false 3988fi 3989 3990if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 3991 as_dirname=dirname 3992else 3993 as_dirname=false 3994fi 3995 3996as_me=`$as_basename -- "$0" || 3997$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 3998 X"$0" : 'X\(//\)$' \| \ 3999 X"$0" : 'X\(/\)' \| . 2>/dev/null || 4000$as_echo X/"$0" | 4001 sed '/^.*\/\([^/][^/]*\)\/*$/{ 4002 s//\1/ 4003 q 4004 } 4005 /^X\/\(\/\/\)$/{ 4006 s//\1/ 4007 q 4008 } 4009 /^X\/\(\/\).*/{ 4010 s//\1/ 4011 q 4012 } 4013 s/.*/./; q'` 4014 4015# Avoid depending upon Character Ranges. 4016as_cr_letters='abcdefghijklmnopqrstuvwxyz' 4017as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4018as_cr_Letters=$as_cr_letters$as_cr_LETTERS 4019as_cr_digits='0123456789' 4020as_cr_alnum=$as_cr_Letters$as_cr_digits 4021 4022ECHO_C= ECHO_N= ECHO_T= 4023case `echo -n x` in #((((( 4024-n*) 4025 case `echo 'xy\c'` in 4026 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 4027 xy) ECHO_C='\c';; 4028 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 4029 ECHO_T=' ';; 4030 esac;; 4031*) 4032 ECHO_N='-n';; 4033esac 4034 4035rm -f conf$$ conf$$.exe conf$$.file 4036if test -d conf$$.dir; then 4037 rm -f conf$$.dir/conf$$.file 4038else 4039 rm -f conf$$.dir 4040 mkdir conf$$.dir 2>/dev/null 4041fi 4042if (echo >conf$$.file) 2>/dev/null; then 4043 if ln -s conf$$.file conf$$ 2>/dev/null; then 4044 as_ln_s='ln -s' 4045 # ... but there are two gotchas: 4046 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 4047 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 4048 # In both cases, we have to default to `cp -pR'. 4049 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 4050 as_ln_s='cp -pR' 4051 elif ln conf$$.file conf$$ 2>/dev/null; then 4052 as_ln_s=ln 4053 else 4054 as_ln_s='cp -pR' 4055 fi 4056else 4057 as_ln_s='cp -pR' 4058fi 4059rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 4060rmdir conf$$.dir 2>/dev/null 4061 4062 4063# as_fn_mkdir_p 4064# ------------- 4065# Create "$as_dir" as a directory, including parents if necessary. 4066as_fn_mkdir_p () 4067{ 4068 4069 case $as_dir in #( 4070 -*) as_dir=./$as_dir;; 4071 esac 4072 test -d "$as_dir" || eval $as_mkdir_p || { 4073 as_dirs= 4074 while :; do 4075 case $as_dir in #( 4076 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 4077 *) as_qdir=$as_dir;; 4078 esac 4079 as_dirs="'$as_qdir' $as_dirs" 4080 as_dir=`$as_dirname -- "$as_dir" || 4081$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4082 X"$as_dir" : 'X\(//\)[^/]' \| \ 4083 X"$as_dir" : 'X\(//\)$' \| \ 4084 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 4085$as_echo X"$as_dir" | 4086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4087 s//\1/ 4088 q 4089 } 4090 /^X\(\/\/\)[^/].*/{ 4091 s//\1/ 4092 q 4093 } 4094 /^X\(\/\/\)$/{ 4095 s//\1/ 4096 q 4097 } 4098 /^X\(\/\).*/{ 4099 s//\1/ 4100 q 4101 } 4102 s/.*/./; q'` 4103 test -d "$as_dir" && break 4104 done 4105 test -z "$as_dirs" || eval "mkdir $as_dirs" 4106 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 4107 4108 4109} # as_fn_mkdir_p 4110if mkdir -p . 2>/dev/null; then 4111 as_mkdir_p='mkdir -p "$as_dir"' 4112else 4113 test -d ./-p && rmdir ./-p 4114 as_mkdir_p=false 4115fi 4116 4117 4118# as_fn_executable_p FILE 4119# ----------------------- 4120# Test if FILE is an executable regular file. 4121as_fn_executable_p () 4122{ 4123 test -f "$1" && test -x "$1" 4124} # as_fn_executable_p 4125as_test_x='test -x' 4126as_executable_p=as_fn_executable_p 4127 4128# Sed expression to map a string onto a valid CPP name. 4129as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 4130 4131# Sed expression to map a string onto a valid variable name. 4132as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 4133 4134 4135exec 6>&1 4136## ----------------------------------- ## 4137## Main body of $CONFIG_STATUS script. ## 4138## ----------------------------------- ## 4139_ASEOF 4140test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 4141 4142cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4143# Save the log message, to keep $0 and so on meaningful, and to 4144# report actual input values of CONFIG_FILES etc. instead of their 4145# values after options handling. 4146ac_log=" 4147This file was extended by gocr $as_me 0.52, which was 4148generated by GNU Autoconf 2.69. Invocation command line was 4149 4150 CONFIG_FILES = $CONFIG_FILES 4151 CONFIG_HEADERS = $CONFIG_HEADERS 4152 CONFIG_LINKS = $CONFIG_LINKS 4153 CONFIG_COMMANDS = $CONFIG_COMMANDS 4154 $ $0 $@ 4155 4156on `(hostname || uname -n) 2>/dev/null | sed 1q` 4157" 4158 4159_ACEOF 4160 4161case $ac_config_files in *" 4162"*) set x $ac_config_files; shift; ac_config_files=$*;; 4163esac 4164 4165case $ac_config_headers in *" 4166"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 4167esac 4168 4169 4170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4171# Files that config.status was made for. 4172config_files="$ac_config_files" 4173config_headers="$ac_config_headers" 4174 4175_ACEOF 4176 4177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4178ac_cs_usage="\ 4179\`$as_me' instantiates files and other configuration actions 4180from templates according to the current configuration. Unless the files 4181and actions are specified as TAGs, all are instantiated by default. 4182 4183Usage: $0 [OPTION]... [TAG]... 4184 4185 -h, --help print this help, then exit 4186 -V, --version print version number and configuration settings, then exit 4187 --config print configuration, then exit 4188 -q, --quiet, --silent 4189 do not print progress messages 4190 -d, --debug don't remove temporary files 4191 --recheck update $as_me by reconfiguring in the same conditions 4192 --file=FILE[:TEMPLATE] 4193 instantiate the configuration file FILE 4194 --header=FILE[:TEMPLATE] 4195 instantiate the configuration header FILE 4196 4197Configuration files: 4198$config_files 4199 4200Configuration headers: 4201$config_headers 4202 4203Report bugs to the package provider." 4204 4205_ACEOF 4206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4207ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 4208ac_cs_version="\\ 4209gocr config.status 0.52 4210configured by $0, generated by GNU Autoconf 2.69, 4211 with options \\"\$ac_cs_config\\" 4212 4213Copyright (C) 2012 Free Software Foundation, Inc. 4214This config.status script is free software; the Free Software Foundation 4215gives unlimited permission to copy, distribute and modify it." 4216 4217ac_pwd='$ac_pwd' 4218srcdir='$srcdir' 4219INSTALL='$INSTALL' 4220test -n "\$AWK" || AWK=awk 4221_ACEOF 4222 4223cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4224# The default lists apply if the user does not specify any file. 4225ac_need_defaults=: 4226while test $# != 0 4227do 4228 case $1 in 4229 --*=?*) 4230 ac_option=`expr "X$1" : 'X\([^=]*\)='` 4231 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 4232 ac_shift=: 4233 ;; 4234 --*=) 4235 ac_option=`expr "X$1" : 'X\([^=]*\)='` 4236 ac_optarg= 4237 ac_shift=: 4238 ;; 4239 *) 4240 ac_option=$1 4241 ac_optarg=$2 4242 ac_shift=shift 4243 ;; 4244 esac 4245 4246 case $ac_option in 4247 # Handling of the options. 4248 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4249 ac_cs_recheck=: ;; 4250 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 4251 $as_echo "$ac_cs_version"; exit ;; 4252 --config | --confi | --conf | --con | --co | --c ) 4253 $as_echo "$ac_cs_config"; exit ;; 4254 --debug | --debu | --deb | --de | --d | -d ) 4255 debug=: ;; 4256 --file | --fil | --fi | --f ) 4257 $ac_shift 4258 case $ac_optarg in 4259 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 4260 '') as_fn_error $? "missing file argument" ;; 4261 esac 4262 as_fn_append CONFIG_FILES " '$ac_optarg'" 4263 ac_need_defaults=false;; 4264 --header | --heade | --head | --hea ) 4265 $ac_shift 4266 case $ac_optarg in 4267 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 4268 esac 4269 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 4270 ac_need_defaults=false;; 4271 --he | --h) 4272 # Conflict between --help and --header 4273 as_fn_error $? "ambiguous option: \`$1' 4274Try \`$0 --help' for more information.";; 4275 --help | --hel | -h ) 4276 $as_echo "$ac_cs_usage"; exit ;; 4277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 4278 | -silent | --silent | --silen | --sile | --sil | --si | --s) 4279 ac_cs_silent=: ;; 4280 4281 # This is an error. 4282 -*) as_fn_error $? "unrecognized option: \`$1' 4283Try \`$0 --help' for more information." ;; 4284 4285 *) as_fn_append ac_config_targets " $1" 4286 ac_need_defaults=false ;; 4287 4288 esac 4289 shift 4290done 4291 4292ac_configure_extra_args= 4293 4294if $ac_cs_silent; then 4295 exec 6>/dev/null 4296 ac_configure_extra_args="$ac_configure_extra_args --silent" 4297fi 4298 4299_ACEOF 4300cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4301if \$ac_cs_recheck; then 4302 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 4303 shift 4304 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 4305 CONFIG_SHELL='$SHELL' 4306 export CONFIG_SHELL 4307 exec "\$@" 4308fi 4309 4310_ACEOF 4311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4312exec 5>>config.log 4313{ 4314 echo 4315 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 4316## Running $as_me. ## 4317_ASBOX 4318 $as_echo "$ac_log" 4319} >&5 4320 4321_ACEOF 4322cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4323_ACEOF 4324 4325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4326 4327# Handling of arguments. 4328for ac_config_target in $ac_config_targets 4329do 4330 case $ac_config_target in 4331 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 4332 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 4333 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 4334 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 4335 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 4336 4337 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 4338 esac 4339done 4340 4341 4342# If the user did not use the arguments to specify the items to instantiate, 4343# then the envvar interface is used. Set only those that are not. 4344# We use the long form for the default assignment because of an extremely 4345# bizarre bug on SunOS 4.1.3. 4346if $ac_need_defaults; then 4347 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 4348 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 4349fi 4350 4351# Have a temporary directory for convenience. Make it in the build tree 4352# simply because there is no reason against having it here, and in addition, 4353# creating and moving files from /tmp can sometimes cause problems. 4354# Hook for its removal unless debugging. 4355# Note that there is a small window in which the directory will not be cleaned: 4356# after its creation but before its name has been assigned to `$tmp'. 4357$debug || 4358{ 4359 tmp= ac_tmp= 4360 trap 'exit_status=$? 4361 : "${ac_tmp:=$tmp}" 4362 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 4363' 0 4364 trap 'as_fn_exit 1' 1 2 13 15 4365} 4366# Create a (secure) tmp directory for tmp files. 4367 4368{ 4369 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 4370 test -d "$tmp" 4371} || 4372{ 4373 tmp=./conf$$-$RANDOM 4374 (umask 077 && mkdir "$tmp") 4375} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 4376ac_tmp=$tmp 4377 4378# Set up the scripts for CONFIG_FILES section. 4379# No need to generate them if there are no CONFIG_FILES. 4380# This happens for instance with `./config.status config.h'. 4381if test -n "$CONFIG_FILES"; then 4382 4383 4384ac_cr=`echo X | tr X '\015'` 4385# On cygwin, bash can eat \r inside `` if the user requested igncr. 4386# But we know of no other shell where ac_cr would be empty at this 4387# point, so we can use a bashism as a fallback. 4388if test "x$ac_cr" = x; then 4389 eval ac_cr=\$\'\\r\' 4390fi 4391ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 4392if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 4393 ac_cs_awk_cr='\\r' 4394else 4395 ac_cs_awk_cr=$ac_cr 4396fi 4397 4398echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 4399_ACEOF 4400 4401 4402{ 4403 echo "cat >conf$$subs.awk <<_ACEOF" && 4404 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 4405 echo "_ACEOF" 4406} >conf$$subs.sh || 4407 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 4408ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 4409ac_delim='%!_!# ' 4410for ac_last_try in false false false false false :; do 4411 . ./conf$$subs.sh || 4412 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 4413 4414 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 4415 if test $ac_delim_n = $ac_delim_num; then 4416 break 4417 elif $ac_last_try; then 4418 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 4419 else 4420 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 4421 fi 4422done 4423rm -f conf$$subs.sh 4424 4425cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4426cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 4427_ACEOF 4428sed -n ' 4429h 4430s/^/S["/; s/!.*/"]=/ 4431p 4432g 4433s/^[^!]*!// 4434:repl 4435t repl 4436s/'"$ac_delim"'$// 4437t delim 4438:nl 4439h 4440s/\(.\{148\}\)..*/\1/ 4441t more1 4442s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 4443p 4444n 4445b repl 4446:more1 4447s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 4448p 4449g 4450s/.\{148\}// 4451t nl 4452:delim 4453h 4454s/\(.\{148\}\)..*/\1/ 4455t more2 4456s/["\\]/\\&/g; s/^/"/; s/$/"/ 4457p 4458b 4459:more2 4460s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 4461p 4462g 4463s/.\{148\}// 4464t delim 4465' <conf$$subs.awk | sed ' 4466/^[^""]/{ 4467 N 4468 s/\n// 4469} 4470' >>$CONFIG_STATUS || ac_write_fail=1 4471rm -f conf$$subs.awk 4472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4473_ACAWK 4474cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 4475 for (key in S) S_is_set[key] = 1 4476 FS = "" 4477 4478} 4479{ 4480 line = $ 0 4481 nfields = split(line, field, "@") 4482 substed = 0 4483 len = length(field[1]) 4484 for (i = 2; i < nfields; i++) { 4485 key = field[i] 4486 keylen = length(key) 4487 if (S_is_set[key]) { 4488 value = S[key] 4489 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 4490 len += length(value) + length(field[++i]) 4491 substed = 1 4492 } else 4493 len += 1 + keylen 4494 } 4495 4496 print line 4497} 4498 4499_ACAWK 4500_ACEOF 4501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4502if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 4503 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 4504else 4505 cat 4506fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 4507 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 4508_ACEOF 4509 4510# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 4511# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 4512# trailing colons and then remove the whole line if VPATH becomes empty 4513# (actually we leave an empty line to preserve line numbers). 4514if test "x$srcdir" = x.; then 4515 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 4516h 4517s/// 4518s/^/:/ 4519s/[ ]*$/:/ 4520s/:\$(srcdir):/:/g 4521s/:\${srcdir}:/:/g 4522s/:@srcdir@:/:/g 4523s/^:*// 4524s/:*$// 4525x 4526s/\(=[ ]*\).*/\1/ 4527G 4528s/\n// 4529s/^[^=]*=[ ]*$// 4530}' 4531fi 4532 4533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4534fi # test -n "$CONFIG_FILES" 4535 4536# Set up the scripts for CONFIG_HEADERS section. 4537# No need to generate them if there are no CONFIG_HEADERS. 4538# This happens for instance with `./config.status Makefile'. 4539if test -n "$CONFIG_HEADERS"; then 4540cat >"$ac_tmp/defines.awk" <<\_ACAWK || 4541BEGIN { 4542_ACEOF 4543 4544# Transform confdefs.h into an awk script `defines.awk', embedded as 4545# here-document in config.status, that substitutes the proper values into 4546# config.h.in to produce config.h. 4547 4548# Create a delimiter string that does not exist in confdefs.h, to ease 4549# handling of long lines. 4550ac_delim='%!_!# ' 4551for ac_last_try in false false :; do 4552 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 4553 if test -z "$ac_tt"; then 4554 break 4555 elif $ac_last_try; then 4556 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 4557 else 4558 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 4559 fi 4560done 4561 4562# For the awk script, D is an array of macro values keyed by name, 4563# likewise P contains macro parameters if any. Preserve backslash 4564# newline sequences. 4565 4566ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 4567sed -n ' 4568s/.\{148\}/&'"$ac_delim"'/g 4569t rset 4570:rset 4571s/^[ ]*#[ ]*define[ ][ ]*/ / 4572t def 4573d 4574:def 4575s/\\$// 4576t bsnl 4577s/["\\]/\\&/g 4578s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 4579D["\1"]=" \3"/p 4580s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 4581d 4582:bsnl 4583s/["\\]/\\&/g 4584s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 4585D["\1"]=" \3\\\\\\n"\\/p 4586t cont 4587s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 4588t cont 4589d 4590:cont 4591n 4592s/.\{148\}/&'"$ac_delim"'/g 4593t clear 4594:clear 4595s/\\$// 4596t bsnlc 4597s/["\\]/\\&/g; s/^/"/; s/$/"/p 4598d 4599:bsnlc 4600s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 4601b cont 4602' <confdefs.h | sed ' 4603s/'"$ac_delim"'/"\\\ 4604"/g' >>$CONFIG_STATUS || ac_write_fail=1 4605 4606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4607 for (key in D) D_is_set[key] = 1 4608 FS = "" 4609} 4610/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 4611 line = \$ 0 4612 split(line, arg, " ") 4613 if (arg[1] == "#") { 4614 defundef = arg[2] 4615 mac1 = arg[3] 4616 } else { 4617 defundef = substr(arg[1], 2) 4618 mac1 = arg[2] 4619 } 4620 split(mac1, mac2, "(") #) 4621 macro = mac2[1] 4622 prefix = substr(line, 1, index(line, defundef) - 1) 4623 if (D_is_set[macro]) { 4624 # Preserve the white space surrounding the "#". 4625 print prefix "define", macro P[macro] D[macro] 4626 next 4627 } else { 4628 # Replace #undef with comments. This is necessary, for example, 4629 # in the case of _POSIX_SOURCE, which is predefined and required 4630 # on some systems where configure will not decide to define it. 4631 if (defundef == "undef") { 4632 print "/*", prefix defundef, macro, "*/" 4633 next 4634 } 4635 } 4636} 4637{ print } 4638_ACAWK 4639_ACEOF 4640cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4641 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 4642fi # test -n "$CONFIG_HEADERS" 4643 4644 4645eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 4646shift 4647for ac_tag 4648do 4649 case $ac_tag in 4650 :[FHLC]) ac_mode=$ac_tag; continue;; 4651 esac 4652 case $ac_mode$ac_tag in 4653 :[FHL]*:*);; 4654 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 4655 :[FH]-) ac_tag=-:-;; 4656 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 4657 esac 4658 ac_save_IFS=$IFS 4659 IFS=: 4660 set x $ac_tag 4661 IFS=$ac_save_IFS 4662 shift 4663 ac_file=$1 4664 shift 4665 4666 case $ac_mode in 4667 :L) ac_source=$1;; 4668 :[FH]) 4669 ac_file_inputs= 4670 for ac_f 4671 do 4672 case $ac_f in 4673 -) ac_f="$ac_tmp/stdin";; 4674 *) # Look for the file first in the build tree, then in the source tree 4675 # (if the path is not absolute). The absolute path cannot be DOS-style, 4676 # because $ac_f cannot contain `:'. 4677 test -f "$ac_f" || 4678 case $ac_f in 4679 [\\/$]*) false;; 4680 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 4681 esac || 4682 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 4683 esac 4684 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 4685 as_fn_append ac_file_inputs " '$ac_f'" 4686 done 4687 4688 # Let's still pretend it is `configure' which instantiates (i.e., don't 4689 # use $as_me), people would be surprised to read: 4690 # /* config.h. Generated by config.status. */ 4691 configure_input='Generated from '` 4692 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 4693 `' by configure.' 4694 if test x"$ac_file" != x-; then 4695 configure_input="$ac_file. $configure_input" 4696 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 4697$as_echo "$as_me: creating $ac_file" >&6;} 4698 fi 4699 # Neutralize special characters interpreted by sed in replacement strings. 4700 case $configure_input in #( 4701 *\&* | *\|* | *\\* ) 4702 ac_sed_conf_input=`$as_echo "$configure_input" | 4703 sed 's/[\\\\&|]/\\\\&/g'`;; #( 4704 *) ac_sed_conf_input=$configure_input;; 4705 esac 4706 4707 case $ac_tag in 4708 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 4709 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 4710 esac 4711 ;; 4712 esac 4713 4714 ac_dir=`$as_dirname -- "$ac_file" || 4715$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4716 X"$ac_file" : 'X\(//\)[^/]' \| \ 4717 X"$ac_file" : 'X\(//\)$' \| \ 4718 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 4719$as_echo X"$ac_file" | 4720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4721 s//\1/ 4722 q 4723 } 4724 /^X\(\/\/\)[^/].*/{ 4725 s//\1/ 4726 q 4727 } 4728 /^X\(\/\/\)$/{ 4729 s//\1/ 4730 q 4731 } 4732 /^X\(\/\).*/{ 4733 s//\1/ 4734 q 4735 } 4736 s/.*/./; q'` 4737 as_dir="$ac_dir"; as_fn_mkdir_p 4738 ac_builddir=. 4739 4740case "$ac_dir" in 4741.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 4742*) 4743 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 4744 # A ".." for each directory in $ac_dir_suffix. 4745 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 4746 case $ac_top_builddir_sub in 4747 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 4748 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 4749 esac ;; 4750esac 4751ac_abs_top_builddir=$ac_pwd 4752ac_abs_builddir=$ac_pwd$ac_dir_suffix 4753# for backward compatibility: 4754ac_top_builddir=$ac_top_build_prefix 4755 4756case $srcdir in 4757 .) # We are building in place. 4758 ac_srcdir=. 4759 ac_top_srcdir=$ac_top_builddir_sub 4760 ac_abs_top_srcdir=$ac_pwd ;; 4761 [\\/]* | ?:[\\/]* ) # Absolute name. 4762 ac_srcdir=$srcdir$ac_dir_suffix; 4763 ac_top_srcdir=$srcdir 4764 ac_abs_top_srcdir=$srcdir ;; 4765 *) # Relative name. 4766 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 4767 ac_top_srcdir=$ac_top_build_prefix$srcdir 4768 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 4769esac 4770ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 4771 4772 4773 case $ac_mode in 4774 :F) 4775 # 4776 # CONFIG_FILE 4777 # 4778 4779 case $INSTALL in 4780 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 4781 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 4782 esac 4783_ACEOF 4784 4785cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4786# If the template does not know about datarootdir, expand it. 4787# FIXME: This hack should be removed a few years after 2.60. 4788ac_datarootdir_hack=; ac_datarootdir_seen= 4789ac_sed_dataroot=' 4790/datarootdir/ { 4791 p 4792 q 4793} 4794/@datadir@/p 4795/@docdir@/p 4796/@infodir@/p 4797/@localedir@/p 4798/@mandir@/p' 4799case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 4800*datarootdir*) ac_datarootdir_seen=yes;; 4801*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 4802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 4803$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 4804_ACEOF 4805cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4806 ac_datarootdir_hack=' 4807 s&@datadir@&$datadir&g 4808 s&@docdir@&$docdir&g 4809 s&@infodir@&$infodir&g 4810 s&@localedir@&$localedir&g 4811 s&@mandir@&$mandir&g 4812 s&\\\${datarootdir}&$datarootdir&g' ;; 4813esac 4814_ACEOF 4815 4816# Neutralize VPATH when `$srcdir' = `.'. 4817# Shell code in configure.ac might set extrasub. 4818# FIXME: do we really want to maintain this feature? 4819cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4820ac_sed_extra="$ac_vpsub 4821$extrasub 4822_ACEOF 4823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4824:t 4825/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 4826s|@configure_input@|$ac_sed_conf_input|;t t 4827s&@top_builddir@&$ac_top_builddir_sub&;t t 4828s&@top_build_prefix@&$ac_top_build_prefix&;t t 4829s&@srcdir@&$ac_srcdir&;t t 4830s&@abs_srcdir@&$ac_abs_srcdir&;t t 4831s&@top_srcdir@&$ac_top_srcdir&;t t 4832s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 4833s&@builddir@&$ac_builddir&;t t 4834s&@abs_builddir@&$ac_abs_builddir&;t t 4835s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 4836s&@INSTALL@&$ac_INSTALL&;t t 4837$ac_datarootdir_hack 4838" 4839eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 4840 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 4841 4842test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 4843 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 4844 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 4845 "$ac_tmp/out"`; test -z "$ac_out"; } && 4846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 4847which seems to be undefined. Please make sure it is defined" >&5 4848$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 4849which seems to be undefined. Please make sure it is defined" >&2;} 4850 4851 rm -f "$ac_tmp/stdin" 4852 case $ac_file in 4853 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 4854 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 4855 esac \ 4856 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 4857 ;; 4858 :H) 4859 # 4860 # CONFIG_HEADER 4861 # 4862 if test x"$ac_file" != x-; then 4863 { 4864 $as_echo "/* $configure_input */" \ 4865 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 4866 } >"$ac_tmp/config.h" \ 4867 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 4868 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 4869 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 4870$as_echo "$as_me: $ac_file is unchanged" >&6;} 4871 else 4872 rm -f "$ac_file" 4873 mv "$ac_tmp/config.h" "$ac_file" \ 4874 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 4875 fi 4876 else 4877 $as_echo "/* $configure_input */" \ 4878 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 4879 || as_fn_error $? "could not create -" "$LINENO" 5 4880 fi 4881 ;; 4882 4883 4884 esac 4885 4886done # for ac_tag 4887 4888 4889as_fn_exit 0 4890_ACEOF 4891ac_clean_files=$ac_clean_files_save 4892 4893test $ac_write_fail = 0 || 4894 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 4895 4896 4897# configure is writing to config.log, and then calls config.status. 4898# config.status does its own redirection, appending to config.log. 4899# Unfortunately, on DOS this fails, as config.log is still kept open 4900# by configure, so config.status won't be able to write to it; its 4901# output is simply discarded. So we exec the FD to /dev/null, 4902# effectively closing config.log, so it can be properly (re)opened and 4903# appended to by config.status. When coming back to configure, we 4904# need to make the FD available again. 4905if test "$no_create" != yes; then 4906 ac_cs_success=: 4907 ac_config_status_args= 4908 test "$silent" = yes && 4909 ac_config_status_args="$ac_config_status_args --quiet" 4910 exec 5>/dev/null 4911 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 4912 exec 5>>config.log 4913 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 4914 # would make configure fail if this is the last instruction. 4915 $ac_cs_success || as_fn_exit 1 4916fi 4917if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 4918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 4919$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 4920fi 4921 4922