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