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