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