1#! /bin/sh 2# From configure.ac Revision: 4719 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.69 for pgadmin3 1.22.2. 5# 6# Report bugs to <pgadmin-support@postgresql.org>. 7# 8# Copyright 2002 - 2016 The pgAdmin Development Team 9# 10# 11# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 12# 13# 14# This configure script is free software; the Free Software Foundation 15# gives unlimited permission to copy, distribute and modify it. 16## -------------------- ## 17## M4sh Initialization. ## 18## -------------------- ## 19 20# Be more Bourne compatible 21DUALCASE=1; export DUALCASE # for MKS sh 22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39as_nl=' 40' 41export as_nl 42# Printing a long string crashes Solaris 7 /usr/bin/printf. 43as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 46# Prefer a ksh shell builtin over an external printf program on Solaris, 47# but without wasting forks for bash or zsh. 48if test -z "$BASH_VERSION$ZSH_VERSION" \ 49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='print -r --' 51 as_echo_n='print -rn --' 52elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 53 as_echo='printf %s\n' 54 as_echo_n='printf %s' 55else 56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 58 as_echo_n='/usr/ucb/echo -n' 59 else 60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 61 as_echo_n_body='eval 62 arg=$1; 63 case $arg in #( 64 *"$as_nl"*) 65 expr "X$arg" : "X\\(.*\\)$as_nl"; 66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 67 esac; 68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 69 ' 70 export as_echo_n_body 71 as_echo_n='sh -c $as_echo_n_body as_echo' 72 fi 73 export as_echo_body 74 as_echo='sh -c $as_echo_body as_echo' 75fi 76 77# The user is always right. 78if test "${PATH_SEPARATOR+set}" != set; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# IFS 88# We need space, tab and new line, in precisely that order. Quoting is 89# there to prevent editors from complaining about space-tab. 90# (If _AS_PATH_WALK were called with IFS unset, it would disable word 91# splitting by setting IFS to empty value.) 92IFS=" "" $as_nl" 93 94# Find who we are. Look in the path if we contain no directory separator. 95as_myself= 96case $0 in #(( 97 *[\\/]* ) as_myself=$0 ;; 98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 99for as_dir in $PATH 100do 101 IFS=$as_save_IFS 102 test -z "$as_dir" && as_dir=. 103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 104 done 105IFS=$as_save_IFS 106 107 ;; 108esac 109# We did not find ourselves, most probably we were run as `sh COMMAND' 110# in which case we are not to be found in the path. 111if test "x$as_myself" = x; then 112 as_myself=$0 113fi 114if test ! -f "$as_myself"; then 115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 116 exit 1 117fi 118 119# Unset variables that we do not need and which cause bugs (e.g. in 120# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 121# suppresses any "Segmentation fault" message there. '((' could 122# trigger a bug in pdksh 5.2.14. 123for as_var in BASH_ENV ENV MAIL MAILPATH 124do eval test x\${$as_var+set} = xset \ 125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 126done 127PS1='$ ' 128PS2='> ' 129PS4='+ ' 130 131# NLS nuisances. 132LC_ALL=C 133export LC_ALL 134LANGUAGE=C 135export LANGUAGE 136 137# CDPATH. 138(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 139 140# Use a proper internal environment variable to ensure we don't fall 141 # into an infinite loop, continuously re-executing ourselves. 142 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 143 _as_can_reexec=no; export _as_can_reexec; 144 # We cannot yet assume a decent shell, so we have to provide a 145# neutralization value for shells without unset; and this also 146# works around shells that cannot unset nonexistent variables. 147# Preserve -v and -x to the replacement shell. 148BASH_ENV=/dev/null 149ENV=/dev/null 150(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 151case $- in # (((( 152 *v*x* | *x*v* ) as_opts=-vx ;; 153 *v* ) as_opts=-v ;; 154 *x* ) as_opts=-x ;; 155 * ) as_opts= ;; 156esac 157exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 158# Admittedly, this is quite paranoid, since all the known shells bail 159# out after a failed `exec'. 160$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 161as_fn_exit 255 162 fi 163 # We don't want this to propagate to other subprocesses. 164 { _as_can_reexec=; unset _as_can_reexec;} 165if test "x$CONFIG_SHELL" = x; then 166 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 167 emulate sh 168 NULLCMD=: 169 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 170 # is contrary to our usage. Disable this feature. 171 alias -g '\${1+\"\$@\"}'='\"\$@\"' 172 setopt NO_GLOB_SUBST 173else 174 case \`(set -o) 2>/dev/null\` in #( 175 *posix*) : 176 set -o posix ;; #( 177 *) : 178 ;; 179esac 180fi 181" 182 as_required="as_fn_return () { (exit \$1); } 183as_fn_success () { as_fn_return 0; } 184as_fn_failure () { as_fn_return 1; } 185as_fn_ret_success () { return 0; } 186as_fn_ret_failure () { return 1; } 187 188exitcode=0 189as_fn_success || { exitcode=1; echo as_fn_success failed.; } 190as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 191as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 192as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 193if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 194 195else 196 exitcode=1; echo positional parameters were not saved. 197fi 198test x\$exitcode = x0 || exit 1 199test -x / || exit 1" 200 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 201 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 202 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 203 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 204test \$(( 1 + 1 )) = 2 || exit 1" 205 if (eval "$as_required") 2>/dev/null; then : 206 as_have_required=yes 207else 208 as_have_required=no 209fi 210 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 211 212else 213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 214as_found=false 215for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 216do 217 IFS=$as_save_IFS 218 test -z "$as_dir" && as_dir=. 219 as_found=: 220 case $as_dir in #( 221 /*) 222 for as_base in sh bash ksh sh5; do 223 # Try only shells that exist, to save several forks. 224 as_shell=$as_dir/$as_base 225 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 226 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 227 CONFIG_SHELL=$as_shell as_have_required=yes 228 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 229 break 2 230fi 231fi 232 done;; 233 esac 234 as_found=false 235done 236$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 237 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 238 CONFIG_SHELL=$SHELL as_have_required=yes 239fi; } 240IFS=$as_save_IFS 241 242 243 if test "x$CONFIG_SHELL" != x; then : 244 export CONFIG_SHELL 245 # We cannot yet assume a decent shell, so we have to provide a 246# neutralization value for shells without unset; and this also 247# works around shells that cannot unset nonexistent variables. 248# Preserve -v and -x to the replacement shell. 249BASH_ENV=/dev/null 250ENV=/dev/null 251(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 252case $- in # (((( 253 *v*x* | *x*v* ) as_opts=-vx ;; 254 *v* ) as_opts=-v ;; 255 *x* ) as_opts=-x ;; 256 * ) as_opts= ;; 257esac 258exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 259# Admittedly, this is quite paranoid, since all the known shells bail 260# out after a failed `exec'. 261$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 262exit 255 263fi 264 265 if test x$as_have_required = xno; then : 266 $as_echo "$0: This script requires a shell more modern than all" 267 $as_echo "$0: the shells that I found on your system." 268 if test x${ZSH_VERSION+set} = xset ; then 269 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 270 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 271 else 272 $as_echo "$0: Please tell bug-autoconf@gnu.org and 273$0: pgadmin-support@postgresql.org about your system, 274$0: including any error possibly output before this 275$0: message. Then install a modern shell, or manually run 276$0: the script under such a shell if you do have one." 277 fi 278 exit 1 279fi 280fi 281fi 282SHELL=${CONFIG_SHELL-/bin/sh} 283export SHELL 284# Unset more variables known to interfere with behavior of common tools. 285CLICOLOR_FORCE= GREP_OPTIONS= 286unset CLICOLOR_FORCE GREP_OPTIONS 287 288## --------------------- ## 289## M4sh Shell Functions. ## 290## --------------------- ## 291# as_fn_unset VAR 292# --------------- 293# Portably unset VAR. 294as_fn_unset () 295{ 296 { eval $1=; unset $1;} 297} 298as_unset=as_fn_unset 299 300# as_fn_set_status STATUS 301# ----------------------- 302# Set $? to STATUS, without forking. 303as_fn_set_status () 304{ 305 return $1 306} # as_fn_set_status 307 308# as_fn_exit STATUS 309# ----------------- 310# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 311as_fn_exit () 312{ 313 set +e 314 as_fn_set_status $1 315 exit $1 316} # as_fn_exit 317 318# as_fn_mkdir_p 319# ------------- 320# Create "$as_dir" as a directory, including parents if necessary. 321as_fn_mkdir_p () 322{ 323 324 case $as_dir in #( 325 -*) as_dir=./$as_dir;; 326 esac 327 test -d "$as_dir" || eval $as_mkdir_p || { 328 as_dirs= 329 while :; do 330 case $as_dir in #( 331 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 332 *) as_qdir=$as_dir;; 333 esac 334 as_dirs="'$as_qdir' $as_dirs" 335 as_dir=`$as_dirname -- "$as_dir" || 336$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 337 X"$as_dir" : 'X\(//\)[^/]' \| \ 338 X"$as_dir" : 'X\(//\)$' \| \ 339 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 340$as_echo X"$as_dir" | 341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 342 s//\1/ 343 q 344 } 345 /^X\(\/\/\)[^/].*/{ 346 s//\1/ 347 q 348 } 349 /^X\(\/\/\)$/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\).*/{ 354 s//\1/ 355 q 356 } 357 s/.*/./; q'` 358 test -d "$as_dir" && break 359 done 360 test -z "$as_dirs" || eval "mkdir $as_dirs" 361 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 362 363 364} # as_fn_mkdir_p 365 366# as_fn_executable_p FILE 367# ----------------------- 368# Test if FILE is an executable regular file. 369as_fn_executable_p () 370{ 371 test -f "$1" && test -x "$1" 372} # as_fn_executable_p 373# as_fn_append VAR VALUE 374# ---------------------- 375# Append the text in VALUE to the end of the definition contained in VAR. Take 376# advantage of any shell optimizations that allow amortized linear growth over 377# repeated appends, instead of the typical quadratic growth present in naive 378# implementations. 379if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 380 eval 'as_fn_append () 381 { 382 eval $1+=\$2 383 }' 384else 385 as_fn_append () 386 { 387 eval $1=\$$1\$2 388 } 389fi # as_fn_append 390 391# as_fn_arith ARG... 392# ------------------ 393# Perform arithmetic evaluation on the ARGs, and store the result in the 394# global $as_val. Take advantage of shells that can avoid forks. The arguments 395# must be portable across $(()) and expr. 396if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 397 eval 'as_fn_arith () 398 { 399 as_val=$(( $* )) 400 }' 401else 402 as_fn_arith () 403 { 404 as_val=`expr "$@" || test $? -eq 1` 405 } 406fi # as_fn_arith 407 408 409# as_fn_error STATUS ERROR [LINENO LOG_FD] 410# ---------------------------------------- 411# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 412# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 413# script with STATUS, using 1 if that was 0. 414as_fn_error () 415{ 416 as_status=$1; test $as_status -eq 0 && as_status=1 417 if test "$4"; then 418 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 419 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 420 fi 421 $as_echo "$as_me: error: $2" >&2 422 as_fn_exit $as_status 423} # as_fn_error 424 425if expr a : '\(a\)' >/dev/null 2>&1 && 426 test "X`expr 00001 : '.*\(...\)'`" = X001; then 427 as_expr=expr 428else 429 as_expr=false 430fi 431 432if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 433 as_basename=basename 434else 435 as_basename=false 436fi 437 438if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 439 as_dirname=dirname 440else 441 as_dirname=false 442fi 443 444as_me=`$as_basename -- "$0" || 445$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 446 X"$0" : 'X\(//\)$' \| \ 447 X"$0" : 'X\(/\)' \| . 2>/dev/null || 448$as_echo X/"$0" | 449 sed '/^.*\/\([^/][^/]*\)\/*$/{ 450 s//\1/ 451 q 452 } 453 /^X\/\(\/\/\)$/{ 454 s//\1/ 455 q 456 } 457 /^X\/\(\/\).*/{ 458 s//\1/ 459 q 460 } 461 s/.*/./; q'` 462 463# Avoid depending upon Character Ranges. 464as_cr_letters='abcdefghijklmnopqrstuvwxyz' 465as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 466as_cr_Letters=$as_cr_letters$as_cr_LETTERS 467as_cr_digits='0123456789' 468as_cr_alnum=$as_cr_Letters$as_cr_digits 469 470 471 as_lineno_1=$LINENO as_lineno_1a=$LINENO 472 as_lineno_2=$LINENO as_lineno_2a=$LINENO 473 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 474 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 475 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 476 sed -n ' 477 p 478 /[$]LINENO/= 479 ' <$as_myself | 480 sed ' 481 s/[$]LINENO.*/&-/ 482 t lineno 483 b 484 :lineno 485 N 486 :loop 487 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 488 t loop 489 s/-\n.*// 490 ' >$as_me.lineno && 491 chmod +x "$as_me.lineno" || 492 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 493 494 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 495 # already done that, so ensure we don't try to do so again and fall 496 # in an infinite loop. This has already happened in practice. 497 _as_can_reexec=no; export _as_can_reexec 498 # Don't try to exec as it changes $[0], causing all sort of problems 499 # (the dirname of $[0] is not the place where we might find the 500 # original and so on. Autoconf is especially sensitive to this). 501 . "./$as_me.lineno" 502 # Exit status is that of the last command. 503 exit 504} 505 506ECHO_C= ECHO_N= ECHO_T= 507case `echo -n x` in #((((( 508-n*) 509 case `echo 'xy\c'` in 510 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 511 xy) ECHO_C='\c';; 512 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 513 ECHO_T=' ';; 514 esac;; 515*) 516 ECHO_N='-n';; 517esac 518 519rm -f conf$$ conf$$.exe conf$$.file 520if test -d conf$$.dir; then 521 rm -f conf$$.dir/conf$$.file 522else 523 rm -f conf$$.dir 524 mkdir conf$$.dir 2>/dev/null 525fi 526if (echo >conf$$.file) 2>/dev/null; then 527 if ln -s conf$$.file conf$$ 2>/dev/null; then 528 as_ln_s='ln -s' 529 # ... but there are two gotchas: 530 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 531 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 532 # In both cases, we have to default to `cp -pR'. 533 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 534 as_ln_s='cp -pR' 535 elif ln conf$$.file conf$$ 2>/dev/null; then 536 as_ln_s=ln 537 else 538 as_ln_s='cp -pR' 539 fi 540else 541 as_ln_s='cp -pR' 542fi 543rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 544rmdir conf$$.dir 2>/dev/null 545 546if mkdir -p . 2>/dev/null; then 547 as_mkdir_p='mkdir -p "$as_dir"' 548else 549 test -d ./-p && rmdir ./-p 550 as_mkdir_p=false 551fi 552 553as_test_x='test -x' 554as_executable_p=as_fn_executable_p 555 556# Sed expression to map a string onto a valid CPP name. 557as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 558 559# Sed expression to map a string onto a valid variable name. 560as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 561 562 563test -n "$DJDIR" || exec 7<&0 </dev/null 564exec 6>&1 565 566# Name of the host. 567# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 568# so uname gets run too. 569ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 570 571# 572# Initializations. 573# 574ac_default_prefix=/usr/local 575ac_clean_files= 576ac_config_libobj_dir=. 577LIBOBJS= 578cross_compiling=no 579subdirs= 580MFLAGS= 581MAKEFLAGS= 582 583# Identity of this package. 584PACKAGE_NAME='pgadmin3' 585PACKAGE_TARNAME='pgadmin3' 586PACKAGE_VERSION='1.22.2' 587PACKAGE_STRING='pgadmin3 1.22.2' 588PACKAGE_BUGREPORT='pgadmin-support@postgresql.org' 589PACKAGE_URL='' 590 591ac_unique_file="pgadmin/pgAdmin3.cpp" 592ac_default_prefix=/usr/local/pgadmin3 593# Factoring default headers for most tests. 594ac_includes_default="\ 595#include <stdio.h> 596#ifdef HAVE_SYS_TYPES_H 597# include <sys/types.h> 598#endif 599#ifdef HAVE_SYS_STAT_H 600# include <sys/stat.h> 601#endif 602#ifdef STDC_HEADERS 603# include <stdlib.h> 604# include <stddef.h> 605#else 606# ifdef HAVE_STDLIB_H 607# include <stdlib.h> 608# endif 609#endif 610#ifdef HAVE_STRING_H 611# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 612# include <memory.h> 613# endif 614# include <string.h> 615#endif 616#ifdef HAVE_STRINGS_H 617# include <strings.h> 618#endif 619#ifdef HAVE_INTTYPES_H 620# include <inttypes.h> 621#endif 622#ifdef HAVE_STDINT_H 623# include <stdint.h> 624#endif 625#ifdef HAVE_UNISTD_H 626# include <unistd.h> 627#endif" 628 629ac_subst_vars='am__EXEEXT_FALSE 630am__EXEEXT_TRUE 631LTLIBOBJS 632SPHINX_BUILD_FALSE 633SPHINX_BUILD_TRUE 634LIBZ_PREFIX 635LTLIBZ 636LIBZ 637HAVE_LIBZ 638LIBGCRYPT_FALSE 639LIBGCRYPT_TRUE 640BUILD_SSH_TUNNEL_FALSE 641BUILD_SSH_TUNNEL_TRUE 642LIBSREQUIRED 643LIBGCRYPT_PREFIX 644LTLIBGCRYPT 645LIBGCRYPT 646HAVE_LIBGCRYPT 647LIBSSL_PREFIX 648LTLIBSSL 649LIBSSL 650HAVE_LIBSSL 651EDB_LIBPQ_FALSE 652EDB_LIBPQ_TRUE 653INSTALL_DOCS_FALSE 654INSTALL_DOCS_TRUE 655BUILD_DEBUG_FALSE 656BUILD_DEBUG_TRUE 657APPBUNDLE_FALSE 658APPBUNDLE_TRUE 659bundledir 660LIBOBJS 661POW_LIB 662HAVE_SYS_UN_H_FALSE 663HAVE_SYS_UN_H_TRUE 664EGREP 665GREP 666CPP 667SUN_CXX_FALSE 668SUN_CXX_TRUE 669SUN_CC_FALSE 670SUN_CC_TRUE 671RANLIB 672am__fastdepCXX_FALSE 673am__fastdepCXX_TRUE 674CXXDEPMODE 675ac_ct_CXX 676CXXFLAGS 677CXX 678am__fastdepCC_FALSE 679am__fastdepCC_TRUE 680CCDEPMODE 681am__nodep 682AMDEPBACKSLASH 683AMDEP_FALSE 684AMDEP_TRUE 685am__quote 686am__include 687DEPDIR 688OBJEXT 689EXEEXT 690ac_ct_CC 691CPPFLAGS 692LDFLAGS 693CFLAGS 694CC 695AM_BACKSLASH 696AM_DEFAULT_VERBOSITY 697AM_DEFAULT_V 698AM_V 699am__untar 700am__tar 701AMTAR 702am__leading_dot 703SET_MAKE 704AWK 705mkdir_p 706MKDIR_P 707INSTALL_STRIP_PROGRAM 708STRIP 709install_sh 710MAKEINFO 711AUTOHEADER 712AUTOMAKE 713AUTOCONF 714ACLOCAL 715VERSION 716PACKAGE 717CYGPATH_W 718am__isrc 719INSTALL_DATA 720INSTALL_SCRIPT 721INSTALL_PROGRAM 722host_os 723host_vendor 724host_cpu 725host 726build_os 727build_vendor 728build_cpu 729build 730target_alias 731host_alias 732build_alias 733LIBS 734ECHO_T 735ECHO_N 736ECHO_C 737DEFS 738mandir 739localedir 740libdir 741psdir 742pdfdir 743dvidir 744htmldir 745infodir 746docdir 747oldincludedir 748includedir 749localstatedir 750sharedstatedir 751sysconfdir 752datadir 753datarootdir 754libexecdir 755sbindir 756bindir 757program_transform_name 758prefix 759exec_prefix 760PACKAGE_URL 761PACKAGE_BUGREPORT 762PACKAGE_STRING 763PACKAGE_VERSION 764PACKAGE_TARNAME 765PACKAGE_NAME 766PATH_SEPARATOR 767SHELL 768XSLT_CONFIG 769XML2_CONFIG 770png2c_LDADD 771pgScript_LDADD 772pgsTest_LDADD 773pgadmin3_LDADD 774WX_CONFIG 775EDB_LIBPQ 776PG_CONFIG 777BUILD_DEBUG 778HAVE_DATABASEDESIGNER 779SPHINX_BUILD' 780ac_subst_files='' 781ac_user_opts=' 782enable_option_checking 783enable_silent_rules 784enable_dependency_tracking 785enable_debug 786enable_static 787enable_appbundle 788enable_databasedesigner 789with_pgsql 790with_arch_i386 791with_arch_x86_64 792with_arch_ppc 793with_arch_ppc64 794with_wx_version 795with_wx 796with_libxml2 797with_libxslt 798with_libgcrypt 799with_openssl 800with_libz 801with_gnu_ld 802enable_rpath 803with_libssl_prefix 804with_libgcrypt_prefix 805with_libz_prefix 806with_sphinx_build 807' 808 ac_precious_vars='build_alias 809host_alias 810target_alias 811CC 812CFLAGS 813LDFLAGS 814LIBS 815CPPFLAGS 816CXX 817CXXFLAGS 818CCC 819CPP' 820 821 822# Initialize some variables set by options. 823ac_init_help= 824ac_init_version=false 825ac_unrecognized_opts= 826ac_unrecognized_sep= 827# The variables have the same names as the options, with 828# dashes changed to underlines. 829cache_file=/dev/null 830exec_prefix=NONE 831no_create= 832no_recursion= 833prefix=NONE 834program_prefix=NONE 835program_suffix=NONE 836program_transform_name=s,x,x, 837silent= 838site= 839srcdir= 840verbose= 841x_includes=NONE 842x_libraries=NONE 843 844# Installation directory options. 845# These are left unexpanded so users can "make install exec_prefix=/foo" 846# and all the variables that are supposed to be based on exec_prefix 847# by default will actually change. 848# Use braces instead of parens because sh, perl, etc. also accept them. 849# (The list follows the same order as the GNU Coding Standards.) 850bindir='${exec_prefix}/bin' 851sbindir='${exec_prefix}/sbin' 852libexecdir='${exec_prefix}/libexec' 853datarootdir='${prefix}/share' 854datadir='${datarootdir}' 855sysconfdir='${prefix}/etc' 856sharedstatedir='${prefix}/com' 857localstatedir='${prefix}/var' 858includedir='${prefix}/include' 859oldincludedir='/usr/include' 860docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 861infodir='${datarootdir}/info' 862htmldir='${docdir}' 863dvidir='${docdir}' 864pdfdir='${docdir}' 865psdir='${docdir}' 866libdir='${exec_prefix}/lib' 867localedir='${datarootdir}/locale' 868mandir='${datarootdir}/man' 869 870ac_prev= 871ac_dashdash= 872for ac_option 873do 874 # If the previous option needs an argument, assign it. 875 if test -n "$ac_prev"; then 876 eval $ac_prev=\$ac_option 877 ac_prev= 878 continue 879 fi 880 881 case $ac_option in 882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 883 *=) ac_optarg= ;; 884 *) ac_optarg=yes ;; 885 esac 886 887 # Accept the important Cygnus configure options, so we can diagnose typos. 888 889 case $ac_dashdash$ac_option in 890 --) 891 ac_dashdash=yes ;; 892 893 -bindir | --bindir | --bindi | --bind | --bin | --bi) 894 ac_prev=bindir ;; 895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 896 bindir=$ac_optarg ;; 897 898 -build | --build | --buil | --bui | --bu) 899 ac_prev=build_alias ;; 900 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 901 build_alias=$ac_optarg ;; 902 903 -cache-file | --cache-file | --cache-fil | --cache-fi \ 904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 905 ac_prev=cache_file ;; 906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 908 cache_file=$ac_optarg ;; 909 910 --config-cache | -C) 911 cache_file=config.cache ;; 912 913 -datadir | --datadir | --datadi | --datad) 914 ac_prev=datadir ;; 915 -datadir=* | --datadir=* | --datadi=* | --datad=*) 916 datadir=$ac_optarg ;; 917 918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 919 | --dataroo | --dataro | --datar) 920 ac_prev=datarootdir ;; 921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 923 datarootdir=$ac_optarg ;; 924 925 -disable-* | --disable-*) 926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 927 # Reject names that are not valid shell variable names. 928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 929 as_fn_error $? "invalid feature name: $ac_useropt" 930 ac_useropt_orig=$ac_useropt 931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 932 case $ac_user_opts in 933 *" 934"enable_$ac_useropt" 935"*) ;; 936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 937 ac_unrecognized_sep=', ';; 938 esac 939 eval enable_$ac_useropt=no ;; 940 941 -docdir | --docdir | --docdi | --doc | --do) 942 ac_prev=docdir ;; 943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 944 docdir=$ac_optarg ;; 945 946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 947 ac_prev=dvidir ;; 948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 949 dvidir=$ac_optarg ;; 950 951 -enable-* | --enable-*) 952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 953 # Reject names that are not valid shell variable names. 954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 955 as_fn_error $? "invalid feature name: $ac_useropt" 956 ac_useropt_orig=$ac_useropt 957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 958 case $ac_user_opts in 959 *" 960"enable_$ac_useropt" 961"*) ;; 962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 963 ac_unrecognized_sep=', ';; 964 esac 965 eval enable_$ac_useropt=\$ac_optarg ;; 966 967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 969 | --exec | --exe | --ex) 970 ac_prev=exec_prefix ;; 971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 973 | --exec=* | --exe=* | --ex=*) 974 exec_prefix=$ac_optarg ;; 975 976 -gas | --gas | --ga | --g) 977 # Obsolete; use --with-gas. 978 with_gas=yes ;; 979 980 -help | --help | --hel | --he | -h) 981 ac_init_help=long ;; 982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 983 ac_init_help=recursive ;; 984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 985 ac_init_help=short ;; 986 987 -host | --host | --hos | --ho) 988 ac_prev=host_alias ;; 989 -host=* | --host=* | --hos=* | --ho=*) 990 host_alias=$ac_optarg ;; 991 992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 993 ac_prev=htmldir ;; 994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 995 | --ht=*) 996 htmldir=$ac_optarg ;; 997 998 -includedir | --includedir | --includedi | --included | --include \ 999 | --includ | --inclu | --incl | --inc) 1000 ac_prev=includedir ;; 1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1002 | --includ=* | --inclu=* | --incl=* | --inc=*) 1003 includedir=$ac_optarg ;; 1004 1005 -infodir | --infodir | --infodi | --infod | --info | --inf) 1006 ac_prev=infodir ;; 1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1008 infodir=$ac_optarg ;; 1009 1010 -libdir | --libdir | --libdi | --libd) 1011 ac_prev=libdir ;; 1012 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1013 libdir=$ac_optarg ;; 1014 1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1016 | --libexe | --libex | --libe) 1017 ac_prev=libexecdir ;; 1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1019 | --libexe=* | --libex=* | --libe=*) 1020 libexecdir=$ac_optarg ;; 1021 1022 -localedir | --localedir | --localedi | --localed | --locale) 1023 ac_prev=localedir ;; 1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1025 localedir=$ac_optarg ;; 1026 1027 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1028 | --localstate | --localstat | --localsta | --localst | --locals) 1029 ac_prev=localstatedir ;; 1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1032 localstatedir=$ac_optarg ;; 1033 1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1035 ac_prev=mandir ;; 1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1037 mandir=$ac_optarg ;; 1038 1039 -nfp | --nfp | --nf) 1040 # Obsolete; use --without-fp. 1041 with_fp=no ;; 1042 1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1044 | --no-cr | --no-c | -n) 1045 no_create=yes ;; 1046 1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1049 no_recursion=yes ;; 1050 1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1053 | --oldin | --oldi | --old | --ol | --o) 1054 ac_prev=oldincludedir ;; 1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1058 oldincludedir=$ac_optarg ;; 1059 1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1061 ac_prev=prefix ;; 1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1063 prefix=$ac_optarg ;; 1064 1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1066 | --program-pre | --program-pr | --program-p) 1067 ac_prev=program_prefix ;; 1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1070 program_prefix=$ac_optarg ;; 1071 1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1073 | --program-suf | --program-su | --program-s) 1074 ac_prev=program_suffix ;; 1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1077 program_suffix=$ac_optarg ;; 1078 1079 -program-transform-name | --program-transform-name \ 1080 | --program-transform-nam | --program-transform-na \ 1081 | --program-transform-n | --program-transform- \ 1082 | --program-transform | --program-transfor \ 1083 | --program-transfo | --program-transf \ 1084 | --program-trans | --program-tran \ 1085 | --progr-tra | --program-tr | --program-t) 1086 ac_prev=program_transform_name ;; 1087 -program-transform-name=* | --program-transform-name=* \ 1088 | --program-transform-nam=* | --program-transform-na=* \ 1089 | --program-transform-n=* | --program-transform-=* \ 1090 | --program-transform=* | --program-transfor=* \ 1091 | --program-transfo=* | --program-transf=* \ 1092 | --program-trans=* | --program-tran=* \ 1093 | --progr-tra=* | --program-tr=* | --program-t=*) 1094 program_transform_name=$ac_optarg ;; 1095 1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1097 ac_prev=pdfdir ;; 1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1099 pdfdir=$ac_optarg ;; 1100 1101 -psdir | --psdir | --psdi | --psd | --ps) 1102 ac_prev=psdir ;; 1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1104 psdir=$ac_optarg ;; 1105 1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1107 | -silent | --silent | --silen | --sile | --sil) 1108 silent=yes ;; 1109 1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1111 ac_prev=sbindir ;; 1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1113 | --sbi=* | --sb=*) 1114 sbindir=$ac_optarg ;; 1115 1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1118 | --sharedst | --shareds | --shared | --share | --shar \ 1119 | --sha | --sh) 1120 ac_prev=sharedstatedir ;; 1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1124 | --sha=* | --sh=*) 1125 sharedstatedir=$ac_optarg ;; 1126 1127 -site | --site | --sit) 1128 ac_prev=site ;; 1129 -site=* | --site=* | --sit=*) 1130 site=$ac_optarg ;; 1131 1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1133 ac_prev=srcdir ;; 1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1135 srcdir=$ac_optarg ;; 1136 1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1138 | --syscon | --sysco | --sysc | --sys | --sy) 1139 ac_prev=sysconfdir ;; 1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1142 sysconfdir=$ac_optarg ;; 1143 1144 -target | --target | --targe | --targ | --tar | --ta | --t) 1145 ac_prev=target_alias ;; 1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1147 target_alias=$ac_optarg ;; 1148 1149 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1150 verbose=yes ;; 1151 1152 -version | --version | --versio | --versi | --vers | -V) 1153 ac_init_version=: ;; 1154 1155 -with-* | --with-*) 1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1157 # Reject names that are not valid shell variable names. 1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1159 as_fn_error $? "invalid package name: $ac_useropt" 1160 ac_useropt_orig=$ac_useropt 1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1162 case $ac_user_opts in 1163 *" 1164"with_$ac_useropt" 1165"*) ;; 1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1167 ac_unrecognized_sep=', ';; 1168 esac 1169 eval with_$ac_useropt=\$ac_optarg ;; 1170 1171 -without-* | --without-*) 1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1173 # Reject names that are not valid shell variable names. 1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1175 as_fn_error $? "invalid package name: $ac_useropt" 1176 ac_useropt_orig=$ac_useropt 1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1178 case $ac_user_opts in 1179 *" 1180"with_$ac_useropt" 1181"*) ;; 1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1183 ac_unrecognized_sep=', ';; 1184 esac 1185 eval with_$ac_useropt=no ;; 1186 1187 --x) 1188 # Obsolete; use --with-x. 1189 with_x=yes ;; 1190 1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1192 | --x-incl | --x-inc | --x-in | --x-i) 1193 ac_prev=x_includes ;; 1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1196 x_includes=$ac_optarg ;; 1197 1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1200 ac_prev=x_libraries ;; 1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1203 x_libraries=$ac_optarg ;; 1204 1205 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1206Try \`$0 --help' for more information" 1207 ;; 1208 1209 *=*) 1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1211 # Reject names that are not valid shell variable names. 1212 case $ac_envvar in #( 1213 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1215 esac 1216 eval $ac_envvar=\$ac_optarg 1217 export $ac_envvar ;; 1218 1219 *) 1220 # FIXME: should be removed in autoconf 3.0. 1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1225 ;; 1226 1227 esac 1228done 1229 1230if test -n "$ac_prev"; then 1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1232 as_fn_error $? "missing argument to $ac_option" 1233fi 1234 1235if test -n "$ac_unrecognized_opts"; then 1236 case $enable_option_checking in 1237 no) ;; 1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1240 esac 1241fi 1242 1243# Check all directory arguments for consistency. 1244for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1245 datadir sysconfdir sharedstatedir localstatedir includedir \ 1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1247 libdir localedir mandir 1248do 1249 eval ac_val=\$$ac_var 1250 # Remove trailing slashes. 1251 case $ac_val in 1252 */ ) 1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1254 eval $ac_var=\$ac_val;; 1255 esac 1256 # Be sure to have absolute directory names. 1257 case $ac_val in 1258 [\\/$]* | ?:[\\/]* ) continue;; 1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1260 esac 1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1262done 1263 1264# There might be people who depend on the old broken behavior: `$host' 1265# used to hold the argument of --host etc. 1266# FIXME: To remove some day. 1267build=$build_alias 1268host=$host_alias 1269target=$target_alias 1270 1271# FIXME: To remove some day. 1272if test "x$host_alias" != x; then 1273 if test "x$build_alias" = x; then 1274 cross_compiling=maybe 1275 elif test "x$build_alias" != "x$host_alias"; then 1276 cross_compiling=yes 1277 fi 1278fi 1279 1280ac_tool_prefix= 1281test -n "$host_alias" && ac_tool_prefix=$host_alias- 1282 1283test "$silent" = yes && exec 6>/dev/null 1284 1285 1286ac_pwd=`pwd` && test -n "$ac_pwd" && 1287ac_ls_di=`ls -di .` && 1288ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1289 as_fn_error $? "working directory cannot be determined" 1290test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1291 as_fn_error $? "pwd does not report name of working directory" 1292 1293 1294# Find the source files, if location was not specified. 1295if test -z "$srcdir"; then 1296 ac_srcdir_defaulted=yes 1297 # Try the directory containing this script, then the parent directory. 1298 ac_confdir=`$as_dirname -- "$as_myself" || 1299$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1300 X"$as_myself" : 'X\(//\)[^/]' \| \ 1301 X"$as_myself" : 'X\(//\)$' \| \ 1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1303$as_echo X"$as_myself" | 1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1305 s//\1/ 1306 q 1307 } 1308 /^X\(\/\/\)[^/].*/{ 1309 s//\1/ 1310 q 1311 } 1312 /^X\(\/\/\)$/{ 1313 s//\1/ 1314 q 1315 } 1316 /^X\(\/\).*/{ 1317 s//\1/ 1318 q 1319 } 1320 s/.*/./; q'` 1321 srcdir=$ac_confdir 1322 if test ! -r "$srcdir/$ac_unique_file"; then 1323 srcdir=.. 1324 fi 1325else 1326 ac_srcdir_defaulted=no 1327fi 1328if test ! -r "$srcdir/$ac_unique_file"; then 1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1331fi 1332ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1333ac_abs_confdir=`( 1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1335 pwd)` 1336# When building in place, set srcdir=. 1337if test "$ac_abs_confdir" = "$ac_pwd"; then 1338 srcdir=. 1339fi 1340# Remove unnecessary trailing slashes from srcdir. 1341# Double slashes in file names in object file debugging info 1342# mess up M-x gdb in Emacs. 1343case $srcdir in 1344*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1345esac 1346for ac_var in $ac_precious_vars; do 1347 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1348 eval ac_env_${ac_var}_value=\$${ac_var} 1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1350 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1351done 1352 1353# 1354# Report the --help message. 1355# 1356if test "$ac_init_help" = "long"; then 1357 # Omit some internal or obsolete options to make the list less imposing. 1358 # This message is too long to be a string in the A/UX 3.1 sh. 1359 cat <<_ACEOF 1360\`configure' configures pgadmin3 1.22.2 to adapt to many kinds of systems. 1361 1362Usage: $0 [OPTION]... [VAR=VALUE]... 1363 1364To assign environment variables (e.g., CC, CFLAGS...), specify them as 1365VAR=VALUE. See below for descriptions of some of the useful variables. 1366 1367Defaults for the options are specified in brackets. 1368 1369Configuration: 1370 -h, --help display this help and exit 1371 --help=short display options specific to this package 1372 --help=recursive display the short help of all the included packages 1373 -V, --version display version information and exit 1374 -q, --quiet, --silent do not print \`checking ...' messages 1375 --cache-file=FILE cache test results in FILE [disabled] 1376 -C, --config-cache alias for \`--cache-file=config.cache' 1377 -n, --no-create do not create output files 1378 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1379 1380Installation directories: 1381 --prefix=PREFIX install architecture-independent files in PREFIX 1382 [$ac_default_prefix] 1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1384 [PREFIX] 1385 1386By default, \`make install' will install all the files in 1387\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1388an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1389for instance \`--prefix=\$HOME'. 1390 1391For better control, use the options below. 1392 1393Fine tuning of the installation directories: 1394 --bindir=DIR user executables [EPREFIX/bin] 1395 --sbindir=DIR system admin executables [EPREFIX/sbin] 1396 --libexecdir=DIR program executables [EPREFIX/libexec] 1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1400 --libdir=DIR object code libraries [EPREFIX/lib] 1401 --includedir=DIR C header files [PREFIX/include] 1402 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1405 --infodir=DIR info documentation [DATAROOTDIR/info] 1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1407 --mandir=DIR man documentation [DATAROOTDIR/man] 1408 --docdir=DIR documentation root [DATAROOTDIR/doc/pgadmin3] 1409 --htmldir=DIR html documentation [DOCDIR] 1410 --dvidir=DIR dvi documentation [DOCDIR] 1411 --pdfdir=DIR pdf documentation [DOCDIR] 1412 --psdir=DIR ps documentation [DOCDIR] 1413_ACEOF 1414 1415 cat <<\_ACEOF 1416 1417Program names: 1418 --program-prefix=PREFIX prepend PREFIX to installed program names 1419 --program-suffix=SUFFIX append SUFFIX to installed program names 1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1421 1422System types: 1423 --build=BUILD configure for building on BUILD [guessed] 1424 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1425_ACEOF 1426fi 1427 1428if test -n "$ac_init_help"; then 1429 case $ac_init_help in 1430 short | recursive ) echo "Configuration of pgadmin3 1.22.2:";; 1431 esac 1432 cat <<\_ACEOF 1433 1434Optional Features: 1435 --disable-option-checking ignore unrecognized --enable/--with options 1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1438 --enable-silent-rules less verbose build output (undo: "make V=1") 1439 --disable-silent-rules verbose build output (undo: "make V=0") 1440 --enable-dependency-tracking 1441 do not reject slow dependency extractors 1442 --disable-dependency-tracking 1443 speeds up one-time build 1444 --enable-debug build a debug version of pgAdmin3 1445 --enable-static build a statically linked version of pgAdmin3 1446 --enable-appbundle Build a Mac OS X appbundle 1447 --enable-databasedesigner build the database designer of pgAdmin3 1448 --disable-rpath do not hardcode runtime library paths 1449 1450Optional Packages: 1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1453 --with-pgsql=DIR root directory for PostgreSQL installation 1454 --with-arch-i386 include an i386 image in an OS X Universal build 1455 --with-arch-x86_64 include an x86_64 image in an OS X Universal build 1456 --with-arch-ppc include a PPC image in an OS X Universal build 1457 --with-arch-ppc64 include a PPC64 image in an OS X Universal build 1458 --with-wx-version=<version> the wxWidgets version in major.minor format (default: 2.8) 1459 --with-wx=DIR root directory for wxWidgets installation 1460 --with-libxml2=DIR root directory for libxml2 installation 1461 --with-libxslt=DIR root directory for libxslt installation 1462 --with-libgcrypt Use Libgcrypt for crypto 1463 --with-openssl Use OpenSSL for crypto 1464 --with-libz Use Libz for compression 1465 --with-gnu-ld assume the C compiler uses GNU ld default=no 1466 --with-libssl-prefix[=DIR] search for libssl in DIR/include and DIR/lib 1467 --without-libssl-prefix don't search for libssl in includedir and libdir 1468 --with-libgcrypt-prefix[=DIR] search for libgcrypt in DIR/include and DIR/lib 1469 --without-libgcrypt-prefix don't search for libgcrypt in includedir and libdir 1470 --with-libz-prefix[=DIR] search for libz in DIR/include and DIR/lib 1471 --without-libz-prefix don't search for libz in includedir and libdir 1472 --with-sphinx-build=FILE sphinx-build executable to build the docs with 1473 1474Some influential environment variables: 1475 CC C compiler command 1476 CFLAGS C compiler flags 1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1478 nonstandard directory <lib dir> 1479 LIBS libraries to pass to the linker, e.g. -l<library> 1480 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1481 you have headers in a nonstandard directory <include dir> 1482 CXX C++ compiler command 1483 CXXFLAGS C++ compiler flags 1484 CPP C preprocessor 1485 1486Use these variables to override the choices made by `configure' or to help 1487it to find libraries and programs with nonstandard names/locations. 1488 1489Report bugs to <pgadmin-support@postgresql.org>. 1490_ACEOF 1491ac_status=$? 1492fi 1493 1494if test "$ac_init_help" = "recursive"; then 1495 # If there are subdirs, report their specific --help. 1496 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1497 test -d "$ac_dir" || 1498 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1499 continue 1500 ac_builddir=. 1501 1502case "$ac_dir" in 1503.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1504*) 1505 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1506 # A ".." for each directory in $ac_dir_suffix. 1507 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1508 case $ac_top_builddir_sub in 1509 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1510 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1511 esac ;; 1512esac 1513ac_abs_top_builddir=$ac_pwd 1514ac_abs_builddir=$ac_pwd$ac_dir_suffix 1515# for backward compatibility: 1516ac_top_builddir=$ac_top_build_prefix 1517 1518case $srcdir in 1519 .) # We are building in place. 1520 ac_srcdir=. 1521 ac_top_srcdir=$ac_top_builddir_sub 1522 ac_abs_top_srcdir=$ac_pwd ;; 1523 [\\/]* | ?:[\\/]* ) # Absolute name. 1524 ac_srcdir=$srcdir$ac_dir_suffix; 1525 ac_top_srcdir=$srcdir 1526 ac_abs_top_srcdir=$srcdir ;; 1527 *) # Relative name. 1528 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1529 ac_top_srcdir=$ac_top_build_prefix$srcdir 1530 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1531esac 1532ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1533 1534 cd "$ac_dir" || { ac_status=$?; continue; } 1535 # Check for guested configure. 1536 if test -f "$ac_srcdir/configure.gnu"; then 1537 echo && 1538 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1539 elif test -f "$ac_srcdir/configure"; then 1540 echo && 1541 $SHELL "$ac_srcdir/configure" --help=recursive 1542 else 1543 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1544 fi || ac_status=$? 1545 cd "$ac_pwd" || { ac_status=$?; break; } 1546 done 1547fi 1548 1549test -n "$ac_init_help" && exit $ac_status 1550if $ac_init_version; then 1551 cat <<\_ACEOF 1552pgadmin3 configure 1.22.2 1553generated by GNU Autoconf 2.69 1554 1555Copyright (C) 2012 Free Software Foundation, Inc. 1556This configure script is free software; the Free Software Foundation 1557gives unlimited permission to copy, distribute and modify it. 1558 1559Copyright 2002 - 2016 The pgAdmin Development Team 1560_ACEOF 1561 exit 1562fi 1563 1564## ------------------------ ## 1565## Autoconf initialization. ## 1566## ------------------------ ## 1567 1568# ac_fn_c_try_compile LINENO 1569# -------------------------- 1570# Try to compile conftest.$ac_ext, and return whether this succeeded. 1571ac_fn_c_try_compile () 1572{ 1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1574 rm -f conftest.$ac_objext 1575 if { { ac_try="$ac_compile" 1576case "(($ac_try" in 1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1578 *) ac_try_echo=$ac_try;; 1579esac 1580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1581$as_echo "$ac_try_echo"; } >&5 1582 (eval "$ac_compile") 2>conftest.err 1583 ac_status=$? 1584 if test -s conftest.err; then 1585 grep -v '^ *+' conftest.err >conftest.er1 1586 cat conftest.er1 >&5 1587 mv -f conftest.er1 conftest.err 1588 fi 1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1590 test $ac_status = 0; } && { 1591 test -z "$ac_c_werror_flag" || 1592 test ! -s conftest.err 1593 } && test -s conftest.$ac_objext; then : 1594 ac_retval=0 1595else 1596 $as_echo "$as_me: failed program was:" >&5 1597sed 's/^/| /' conftest.$ac_ext >&5 1598 1599 ac_retval=1 1600fi 1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1602 as_fn_set_status $ac_retval 1603 1604} # ac_fn_c_try_compile 1605 1606# ac_fn_cxx_try_compile LINENO 1607# ---------------------------- 1608# Try to compile conftest.$ac_ext, and return whether this succeeded. 1609ac_fn_cxx_try_compile () 1610{ 1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1612 rm -f conftest.$ac_objext 1613 if { { ac_try="$ac_compile" 1614case "(($ac_try" in 1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1616 *) ac_try_echo=$ac_try;; 1617esac 1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1619$as_echo "$ac_try_echo"; } >&5 1620 (eval "$ac_compile") 2>conftest.err 1621 ac_status=$? 1622 if test -s conftest.err; then 1623 grep -v '^ *+' conftest.err >conftest.er1 1624 cat conftest.er1 >&5 1625 mv -f conftest.er1 conftest.err 1626 fi 1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1628 test $ac_status = 0; } && { 1629 test -z "$ac_cxx_werror_flag" || 1630 test ! -s conftest.err 1631 } && test -s conftest.$ac_objext; then : 1632 ac_retval=0 1633else 1634 $as_echo "$as_me: failed program was:" >&5 1635sed 's/^/| /' conftest.$ac_ext >&5 1636 1637 ac_retval=1 1638fi 1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1640 as_fn_set_status $ac_retval 1641 1642} # ac_fn_cxx_try_compile 1643 1644# ac_fn_c_try_cpp LINENO 1645# ---------------------- 1646# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1647ac_fn_c_try_cpp () 1648{ 1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1650 if { { ac_try="$ac_cpp conftest.$ac_ext" 1651case "(($ac_try" in 1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1653 *) ac_try_echo=$ac_try;; 1654esac 1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1656$as_echo "$ac_try_echo"; } >&5 1657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1658 ac_status=$? 1659 if test -s conftest.err; then 1660 grep -v '^ *+' conftest.err >conftest.er1 1661 cat conftest.er1 >&5 1662 mv -f conftest.er1 conftest.err 1663 fi 1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1665 test $ac_status = 0; } > conftest.i && { 1666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1667 test ! -s conftest.err 1668 }; then : 1669 ac_retval=0 1670else 1671 $as_echo "$as_me: failed program was:" >&5 1672sed 's/^/| /' conftest.$ac_ext >&5 1673 1674 ac_retval=1 1675fi 1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1677 as_fn_set_status $ac_retval 1678 1679} # ac_fn_c_try_cpp 1680 1681# ac_fn_c_try_run LINENO 1682# ---------------------- 1683# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1684# that executables *can* be run. 1685ac_fn_c_try_run () 1686{ 1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1688 if { { ac_try="$ac_link" 1689case "(($ac_try" in 1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1691 *) ac_try_echo=$ac_try;; 1692esac 1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1694$as_echo "$ac_try_echo"; } >&5 1695 (eval "$ac_link") 2>&5 1696 ac_status=$? 1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1698 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1699 { { case "(($ac_try" in 1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1701 *) ac_try_echo=$ac_try;; 1702esac 1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1704$as_echo "$ac_try_echo"; } >&5 1705 (eval "$ac_try") 2>&5 1706 ac_status=$? 1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1708 test $ac_status = 0; }; }; then : 1709 ac_retval=0 1710else 1711 $as_echo "$as_me: program exited with status $ac_status" >&5 1712 $as_echo "$as_me: failed program was:" >&5 1713sed 's/^/| /' conftest.$ac_ext >&5 1714 1715 ac_retval=$ac_status 1716fi 1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1719 as_fn_set_status $ac_retval 1720 1721} # ac_fn_c_try_run 1722 1723# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1724# ------------------------------------------------------- 1725# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1726# the include files in INCLUDES and setting the cache variable VAR 1727# accordingly. 1728ac_fn_c_check_header_mongrel () 1729{ 1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1731 if eval \${$3+:} false; then : 1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1733$as_echo_n "checking for $2... " >&6; } 1734if eval \${$3+:} false; then : 1735 $as_echo_n "(cached) " >&6 1736fi 1737eval ac_res=\$$3 1738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1739$as_echo "$ac_res" >&6; } 1740else 1741 # Is the header compilable? 1742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1743$as_echo_n "checking $2 usability... " >&6; } 1744cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1745/* end confdefs.h. */ 1746$4 1747#include <$2> 1748_ACEOF 1749if ac_fn_c_try_compile "$LINENO"; then : 1750 ac_header_compiler=yes 1751else 1752 ac_header_compiler=no 1753fi 1754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1756$as_echo "$ac_header_compiler" >&6; } 1757 1758# Is the header present? 1759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1760$as_echo_n "checking $2 presence... " >&6; } 1761cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1762/* end confdefs.h. */ 1763#include <$2> 1764_ACEOF 1765if ac_fn_c_try_cpp "$LINENO"; then : 1766 ac_header_preproc=yes 1767else 1768 ac_header_preproc=no 1769fi 1770rm -f conftest.err conftest.i conftest.$ac_ext 1771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1772$as_echo "$ac_header_preproc" >&6; } 1773 1774# So? What about this header? 1775case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1776 yes:no: ) 1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1778$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1780$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1781 ;; 1782 no:yes:* ) 1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1784$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1786$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1788$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1790$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1792$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1793( $as_echo "## --------------------------------------------- ## 1794## Report this to pgadmin-support@postgresql.org ## 1795## --------------------------------------------- ##" 1796 ) | sed "s/^/$as_me: WARNING: /" >&2 1797 ;; 1798esac 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1800$as_echo_n "checking for $2... " >&6; } 1801if eval \${$3+:} false; then : 1802 $as_echo_n "(cached) " >&6 1803else 1804 eval "$3=\$ac_header_compiler" 1805fi 1806eval ac_res=\$$3 1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1808$as_echo "$ac_res" >&6; } 1809fi 1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1811 1812} # ac_fn_c_check_header_mongrel 1813 1814# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1815# ------------------------------------------------------- 1816# Tests whether HEADER exists and can be compiled using the include files in 1817# INCLUDES, setting the cache variable VAR accordingly. 1818ac_fn_c_check_header_compile () 1819{ 1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1822$as_echo_n "checking for $2... " >&6; } 1823if eval \${$3+:} false; then : 1824 $as_echo_n "(cached) " >&6 1825else 1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1827/* end confdefs.h. */ 1828$4 1829#include <$2> 1830_ACEOF 1831if ac_fn_c_try_compile "$LINENO"; then : 1832 eval "$3=yes" 1833else 1834 eval "$3=no" 1835fi 1836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1837fi 1838eval ac_res=\$$3 1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1840$as_echo "$ac_res" >&6; } 1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1842 1843} # ac_fn_c_check_header_compile 1844 1845# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1846# ------------------------------------------- 1847# Tests whether TYPE exists after having included INCLUDES, setting cache 1848# variable VAR accordingly. 1849ac_fn_c_check_type () 1850{ 1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1853$as_echo_n "checking for $2... " >&6; } 1854if eval \${$3+:} false; then : 1855 $as_echo_n "(cached) " >&6 1856else 1857 eval "$3=no" 1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1859/* end confdefs.h. */ 1860$4 1861int 1862main () 1863{ 1864if (sizeof ($2)) 1865 return 0; 1866 ; 1867 return 0; 1868} 1869_ACEOF 1870if ac_fn_c_try_compile "$LINENO"; then : 1871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1872/* end confdefs.h. */ 1873$4 1874int 1875main () 1876{ 1877if (sizeof (($2))) 1878 return 0; 1879 ; 1880 return 0; 1881} 1882_ACEOF 1883if ac_fn_c_try_compile "$LINENO"; then : 1884 1885else 1886 eval "$3=yes" 1887fi 1888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1889fi 1890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1891fi 1892eval ac_res=\$$3 1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1894$as_echo "$ac_res" >&6; } 1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1896 1897} # ac_fn_c_check_type 1898 1899# ac_fn_c_try_link LINENO 1900# ----------------------- 1901# Try to link conftest.$ac_ext, and return whether this succeeded. 1902ac_fn_c_try_link () 1903{ 1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1905 rm -f conftest.$ac_objext conftest$ac_exeext 1906 if { { ac_try="$ac_link" 1907case "(($ac_try" in 1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1909 *) ac_try_echo=$ac_try;; 1910esac 1911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1912$as_echo "$ac_try_echo"; } >&5 1913 (eval "$ac_link") 2>conftest.err 1914 ac_status=$? 1915 if test -s conftest.err; then 1916 grep -v '^ *+' conftest.err >conftest.er1 1917 cat conftest.er1 >&5 1918 mv -f conftest.er1 conftest.err 1919 fi 1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1921 test $ac_status = 0; } && { 1922 test -z "$ac_c_werror_flag" || 1923 test ! -s conftest.err 1924 } && test -s conftest$ac_exeext && { 1925 test "$cross_compiling" = yes || 1926 test -x conftest$ac_exeext 1927 }; then : 1928 ac_retval=0 1929else 1930 $as_echo "$as_me: failed program was:" >&5 1931sed 's/^/| /' conftest.$ac_ext >&5 1932 1933 ac_retval=1 1934fi 1935 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1936 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1937 # interfere with the next link command; also delete a directory that is 1938 # left behind by Apple's compiler. We do this before executing the actions. 1939 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1941 as_fn_set_status $ac_retval 1942 1943} # ac_fn_c_try_link 1944 1945# ac_fn_c_check_func LINENO FUNC VAR 1946# ---------------------------------- 1947# Tests whether FUNC exists, setting the cache variable VAR accordingly 1948ac_fn_c_check_func () 1949{ 1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1952$as_echo_n "checking for $2... " >&6; } 1953if eval \${$3+:} false; then : 1954 $as_echo_n "(cached) " >&6 1955else 1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1957/* end confdefs.h. */ 1958/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1959 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1960#define $2 innocuous_$2 1961 1962/* System header to define __stub macros and hopefully few prototypes, 1963 which can conflict with char $2 (); below. 1964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1965 <limits.h> exists even on freestanding compilers. */ 1966 1967#ifdef __STDC__ 1968# include <limits.h> 1969#else 1970# include <assert.h> 1971#endif 1972 1973#undef $2 1974 1975/* Override any GCC internal prototype to avoid an error. 1976 Use char because int might match the return type of a GCC 1977 builtin and then its argument prototype would still apply. */ 1978#ifdef __cplusplus 1979extern "C" 1980#endif 1981char $2 (); 1982/* The GNU C library defines this for functions which it implements 1983 to always fail with ENOSYS. Some functions are actually named 1984 something starting with __ and the normal name is an alias. */ 1985#if defined __stub_$2 || defined __stub___$2 1986choke me 1987#endif 1988 1989int 1990main () 1991{ 1992return $2 (); 1993 ; 1994 return 0; 1995} 1996_ACEOF 1997if ac_fn_c_try_link "$LINENO"; then : 1998 eval "$3=yes" 1999else 2000 eval "$3=no" 2001fi 2002rm -f core conftest.err conftest.$ac_objext \ 2003 conftest$ac_exeext conftest.$ac_ext 2004fi 2005eval ac_res=\$$3 2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2007$as_echo "$ac_res" >&6; } 2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2009 2010} # ac_fn_c_check_func 2011cat >config.log <<_ACEOF 2012This file contains any messages produced by compilers while 2013running configure, to aid debugging if configure makes a mistake. 2014 2015It was created by pgadmin3 $as_me 1.22.2, which was 2016generated by GNU Autoconf 2.69. Invocation command line was 2017 2018 $ $0 $@ 2019 2020_ACEOF 2021exec 5>>config.log 2022{ 2023cat <<_ASUNAME 2024## --------- ## 2025## Platform. ## 2026## --------- ## 2027 2028hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2029uname -m = `(uname -m) 2>/dev/null || echo unknown` 2030uname -r = `(uname -r) 2>/dev/null || echo unknown` 2031uname -s = `(uname -s) 2>/dev/null || echo unknown` 2032uname -v = `(uname -v) 2>/dev/null || echo unknown` 2033 2034/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2035/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2036 2037/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2038/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2039/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2040/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2041/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2042/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2043/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2044 2045_ASUNAME 2046 2047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2048for as_dir in $PATH 2049do 2050 IFS=$as_save_IFS 2051 test -z "$as_dir" && as_dir=. 2052 $as_echo "PATH: $as_dir" 2053 done 2054IFS=$as_save_IFS 2055 2056} >&5 2057 2058cat >&5 <<_ACEOF 2059 2060 2061## ----------- ## 2062## Core tests. ## 2063## ----------- ## 2064 2065_ACEOF 2066 2067 2068# Keep a trace of the command line. 2069# Strip out --no-create and --no-recursion so they do not pile up. 2070# Strip out --silent because we don't want to record it for future runs. 2071# Also quote any args containing shell meta-characters. 2072# Make two passes to allow for proper duplicate-argument suppression. 2073ac_configure_args= 2074ac_configure_args0= 2075ac_configure_args1= 2076ac_must_keep_next=false 2077for ac_pass in 1 2 2078do 2079 for ac_arg 2080 do 2081 case $ac_arg in 2082 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2084 | -silent | --silent | --silen | --sile | --sil) 2085 continue ;; 2086 *\'*) 2087 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2088 esac 2089 case $ac_pass in 2090 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2091 2) 2092 as_fn_append ac_configure_args1 " '$ac_arg'" 2093 if test $ac_must_keep_next = true; then 2094 ac_must_keep_next=false # Got value, back to normal. 2095 else 2096 case $ac_arg in 2097 *=* | --config-cache | -C | -disable-* | --disable-* \ 2098 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2099 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2100 | -with-* | --with-* | -without-* | --without-* | --x) 2101 case "$ac_configure_args0 " in 2102 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2103 esac 2104 ;; 2105 -* ) ac_must_keep_next=true ;; 2106 esac 2107 fi 2108 as_fn_append ac_configure_args " '$ac_arg'" 2109 ;; 2110 esac 2111 done 2112done 2113{ ac_configure_args0=; unset ac_configure_args0;} 2114{ ac_configure_args1=; unset ac_configure_args1;} 2115 2116# When interrupted or exit'd, cleanup temporary files, and complete 2117# config.log. We remove comments because anyway the quotes in there 2118# would cause problems or look ugly. 2119# WARNING: Use '\'' to represent an apostrophe within the trap. 2120# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2121trap 'exit_status=$? 2122 # Save into config.log some information that might help in debugging. 2123 { 2124 echo 2125 2126 $as_echo "## ---------------- ## 2127## Cache variables. ## 2128## ---------------- ##" 2129 echo 2130 # The following way of writing the cache mishandles newlines in values, 2131( 2132 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2133 eval ac_val=\$$ac_var 2134 case $ac_val in #( 2135 *${as_nl}*) 2136 case $ac_var in #( 2137 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2138$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2139 esac 2140 case $ac_var in #( 2141 _ | IFS | as_nl) ;; #( 2142 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2143 *) { eval $ac_var=; unset $ac_var;} ;; 2144 esac ;; 2145 esac 2146 done 2147 (set) 2>&1 | 2148 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2149 *${as_nl}ac_space=\ *) 2150 sed -n \ 2151 "s/'\''/'\''\\\\'\'''\''/g; 2152 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2153 ;; #( 2154 *) 2155 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2156 ;; 2157 esac | 2158 sort 2159) 2160 echo 2161 2162 $as_echo "## ----------------- ## 2163## Output variables. ## 2164## ----------------- ##" 2165 echo 2166 for ac_var in $ac_subst_vars 2167 do 2168 eval ac_val=\$$ac_var 2169 case $ac_val in 2170 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2171 esac 2172 $as_echo "$ac_var='\''$ac_val'\''" 2173 done | sort 2174 echo 2175 2176 if test -n "$ac_subst_files"; then 2177 $as_echo "## ------------------- ## 2178## File substitutions. ## 2179## ------------------- ##" 2180 echo 2181 for ac_var in $ac_subst_files 2182 do 2183 eval ac_val=\$$ac_var 2184 case $ac_val in 2185 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2186 esac 2187 $as_echo "$ac_var='\''$ac_val'\''" 2188 done | sort 2189 echo 2190 fi 2191 2192 if test -s confdefs.h; then 2193 $as_echo "## ----------- ## 2194## confdefs.h. ## 2195## ----------- ##" 2196 echo 2197 cat confdefs.h 2198 echo 2199 fi 2200 test "$ac_signal" != 0 && 2201 $as_echo "$as_me: caught signal $ac_signal" 2202 $as_echo "$as_me: exit $exit_status" 2203 } >&5 2204 rm -f core *.core core.conftest.* && 2205 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2206 exit $exit_status 2207' 0 2208for ac_signal in 1 2 13 15; do 2209 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2210done 2211ac_signal=0 2212 2213# confdefs.h avoids OS command line length limits that DEFS can exceed. 2214rm -f -r conftest* confdefs.h 2215 2216$as_echo "/* confdefs.h */" > confdefs.h 2217 2218# Predefined preprocessor variables. 2219 2220cat >>confdefs.h <<_ACEOF 2221#define PACKAGE_NAME "$PACKAGE_NAME" 2222_ACEOF 2223 2224cat >>confdefs.h <<_ACEOF 2225#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2226_ACEOF 2227 2228cat >>confdefs.h <<_ACEOF 2229#define PACKAGE_VERSION "$PACKAGE_VERSION" 2230_ACEOF 2231 2232cat >>confdefs.h <<_ACEOF 2233#define PACKAGE_STRING "$PACKAGE_STRING" 2234_ACEOF 2235 2236cat >>confdefs.h <<_ACEOF 2237#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2238_ACEOF 2239 2240cat >>confdefs.h <<_ACEOF 2241#define PACKAGE_URL "$PACKAGE_URL" 2242_ACEOF 2243 2244 2245# Let the site file select an alternate cache file if it wants to. 2246# Prefer an explicitly selected file to automatically selected ones. 2247ac_site_file1=NONE 2248ac_site_file2=NONE 2249if test -n "$CONFIG_SITE"; then 2250 # We do not want a PATH search for config.site. 2251 case $CONFIG_SITE in #(( 2252 -*) ac_site_file1=./$CONFIG_SITE;; 2253 */*) ac_site_file1=$CONFIG_SITE;; 2254 *) ac_site_file1=./$CONFIG_SITE;; 2255 esac 2256elif test "x$prefix" != xNONE; then 2257 ac_site_file1=$prefix/share/config.site 2258 ac_site_file2=$prefix/etc/config.site 2259else 2260 ac_site_file1=$ac_default_prefix/share/config.site 2261 ac_site_file2=$ac_default_prefix/etc/config.site 2262fi 2263for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2264do 2265 test "x$ac_site_file" = xNONE && continue 2266 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2267 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2268$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2269 sed 's/^/| /' "$ac_site_file" >&5 2270 . "$ac_site_file" \ 2271 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2273as_fn_error $? "failed to load site script $ac_site_file 2274See \`config.log' for more details" "$LINENO" 5; } 2275 fi 2276done 2277 2278if test -r "$cache_file"; then 2279 # Some versions of bash will fail to source /dev/null (special files 2280 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2281 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2282 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2283$as_echo "$as_me: loading cache $cache_file" >&6;} 2284 case $cache_file in 2285 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2286 *) . "./$cache_file";; 2287 esac 2288 fi 2289else 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2291$as_echo "$as_me: creating cache $cache_file" >&6;} 2292 >$cache_file 2293fi 2294 2295# Check that the precious variables saved in the cache have kept the same 2296# value. 2297ac_cache_corrupted=false 2298for ac_var in $ac_precious_vars; do 2299 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2300 eval ac_new_set=\$ac_env_${ac_var}_set 2301 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2302 eval ac_new_val=\$ac_env_${ac_var}_value 2303 case $ac_old_set,$ac_new_set in 2304 set,) 2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2306$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2307 ac_cache_corrupted=: ;; 2308 ,set) 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2310$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2311 ac_cache_corrupted=: ;; 2312 ,);; 2313 *) 2314 if test "x$ac_old_val" != "x$ac_new_val"; then 2315 # differences in whitespace do not lead to failure. 2316 ac_old_val_w=`echo x $ac_old_val` 2317 ac_new_val_w=`echo x $ac_new_val` 2318 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2320$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2321 ac_cache_corrupted=: 2322 else 2323 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2324$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2325 eval $ac_var=\$ac_old_val 2326 fi 2327 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2328$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2329 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2330$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2331 fi;; 2332 esac 2333 # Pass precious variables to config.status. 2334 if test "$ac_new_set" = set; then 2335 case $ac_new_val in 2336 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2337 *) ac_arg=$ac_var=$ac_new_val ;; 2338 esac 2339 case " $ac_configure_args " in 2340 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2341 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2342 esac 2343 fi 2344done 2345if $ac_cache_corrupted; then 2346 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2349$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2350 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2351fi 2352## -------------------- ## 2353## Main body of script. ## 2354## -------------------- ## 2355 2356ac_ext=c 2357ac_cpp='$CPP $CPPFLAGS' 2358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2360ac_compiler_gnu=$ac_cv_c_compiler_gnu 2361 2362 2363ac_aux_dir= 2364for ac_dir in config "$srcdir"/config; do 2365 if test -f "$ac_dir/install-sh"; then 2366 ac_aux_dir=$ac_dir 2367 ac_install_sh="$ac_aux_dir/install-sh -c" 2368 break 2369 elif test -f "$ac_dir/install.sh"; then 2370 ac_aux_dir=$ac_dir 2371 ac_install_sh="$ac_aux_dir/install.sh -c" 2372 break 2373 elif test -f "$ac_dir/shtool"; then 2374 ac_aux_dir=$ac_dir 2375 ac_install_sh="$ac_aux_dir/shtool install -c" 2376 break 2377 fi 2378done 2379if test -z "$ac_aux_dir"; then 2380 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2381fi 2382 2383# These three variables are undocumented and unsupported, 2384# and are intended to be withdrawn in a future Autoconf release. 2385# They can cause serious problems if a builder's source tree is in a directory 2386# whose full name contains unusual characters. 2387ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2388ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2389ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2390 2391 2392 2393ac_config_headers="$ac_config_headers config.h" 2394 2395# Make sure we can run config.sub. 2396$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2397 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2398 2399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2400$as_echo_n "checking build system type... " >&6; } 2401if ${ac_cv_build+:} false; then : 2402 $as_echo_n "(cached) " >&6 2403else 2404 ac_build_alias=$build_alias 2405test "x$ac_build_alias" = x && 2406 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2407test "x$ac_build_alias" = x && 2408 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2409ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2410 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2411 2412fi 2413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2414$as_echo "$ac_cv_build" >&6; } 2415case $ac_cv_build in 2416*-*-*) ;; 2417*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2418esac 2419build=$ac_cv_build 2420ac_save_IFS=$IFS; IFS='-' 2421set x $ac_cv_build 2422shift 2423build_cpu=$1 2424build_vendor=$2 2425shift; shift 2426# Remember, the first character of IFS is used to create $*, 2427# except with old shells: 2428build_os=$* 2429IFS=$ac_save_IFS 2430case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2431 2432 2433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2434$as_echo_n "checking host system type... " >&6; } 2435if ${ac_cv_host+:} false; then : 2436 $as_echo_n "(cached) " >&6 2437else 2438 if test "x$host_alias" = x; then 2439 ac_cv_host=$ac_cv_build 2440else 2441 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2442 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2443fi 2444 2445fi 2446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2447$as_echo "$ac_cv_host" >&6; } 2448case $ac_cv_host in 2449*-*-*) ;; 2450*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2451esac 2452host=$ac_cv_host 2453ac_save_IFS=$IFS; IFS='-' 2454set x $ac_cv_host 2455shift 2456host_cpu=$1 2457host_vendor=$2 2458shift; shift 2459# Remember, the first character of IFS is used to create $*, 2460# except with old shells: 2461host_os=$* 2462IFS=$ac_save_IFS 2463case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2464 2465 2466am__api_version='1.15' 2467 2468# Find a good install program. We prefer a C program (faster), 2469# so one script is as good as another. But avoid the broken or 2470# incompatible versions: 2471# SysV /etc/install, /usr/sbin/install 2472# SunOS /usr/etc/install 2473# IRIX /sbin/install 2474# AIX /bin/install 2475# AmigaOS /C/install, which installs bootblocks on floppy discs 2476# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2477# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2478# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2479# OS/2's system install, which has a completely different semantic 2480# ./install, which can be erroneously created by make from ./install.sh. 2481# Reject install programs that cannot install multiple files. 2482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2483$as_echo_n "checking for a BSD-compatible install... " >&6; } 2484if test -z "$INSTALL"; then 2485if ${ac_cv_path_install+:} false; then : 2486 $as_echo_n "(cached) " >&6 2487else 2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2489for as_dir in $PATH 2490do 2491 IFS=$as_save_IFS 2492 test -z "$as_dir" && as_dir=. 2493 # Account for people who put trailing slashes in PATH elements. 2494case $as_dir/ in #(( 2495 ./ | .// | /[cC]/* | \ 2496 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2497 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2498 /usr/ucb/* ) ;; 2499 *) 2500 # OSF1 and SCO ODT 3.0 have their own names for install. 2501 # Don't use installbsd from OSF since it installs stuff as root 2502 # by default. 2503 for ac_prog in ginstall scoinst install; do 2504 for ac_exec_ext in '' $ac_executable_extensions; do 2505 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2506 if test $ac_prog = install && 2507 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2508 # AIX install. It has an incompatible calling convention. 2509 : 2510 elif test $ac_prog = install && 2511 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2512 # program-specific install script used by HP pwplus--don't use. 2513 : 2514 else 2515 rm -rf conftest.one conftest.two conftest.dir 2516 echo one > conftest.one 2517 echo two > conftest.two 2518 mkdir conftest.dir 2519 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2520 test -s conftest.one && test -s conftest.two && 2521 test -s conftest.dir/conftest.one && 2522 test -s conftest.dir/conftest.two 2523 then 2524 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2525 break 3 2526 fi 2527 fi 2528 fi 2529 done 2530 done 2531 ;; 2532esac 2533 2534 done 2535IFS=$as_save_IFS 2536 2537rm -rf conftest.one conftest.two conftest.dir 2538 2539fi 2540 if test "${ac_cv_path_install+set}" = set; then 2541 INSTALL=$ac_cv_path_install 2542 else 2543 # As a last resort, use the slow shell script. Don't cache a 2544 # value for INSTALL within a source directory, because that will 2545 # break other packages using the cache if that directory is 2546 # removed, or if the value is a relative name. 2547 INSTALL=$ac_install_sh 2548 fi 2549fi 2550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2551$as_echo "$INSTALL" >&6; } 2552 2553# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2554# It thinks the first close brace ends the variable substitution. 2555test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2556 2557test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2558 2559test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2560 2561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2562$as_echo_n "checking whether build environment is sane... " >&6; } 2563# Reject unsafe characters in $srcdir or the absolute working directory 2564# name. Accept space and tab only in the latter. 2565am_lf=' 2566' 2567case `pwd` in 2568 *[\\\"\#\$\&\'\`$am_lf]*) 2569 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2570esac 2571case $srcdir in 2572 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2573 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2574esac 2575 2576# Do 'set' in a subshell so we don't clobber the current shell's 2577# arguments. Must try -L first in case configure is actually a 2578# symlink; some systems play weird games with the mod time of symlinks 2579# (eg FreeBSD returns the mod time of the symlink's containing 2580# directory). 2581if ( 2582 am_has_slept=no 2583 for am_try in 1 2; do 2584 echo "timestamp, slept: $am_has_slept" > conftest.file 2585 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2586 if test "$*" = "X"; then 2587 # -L didn't work. 2588 set X `ls -t "$srcdir/configure" conftest.file` 2589 fi 2590 if test "$*" != "X $srcdir/configure conftest.file" \ 2591 && test "$*" != "X conftest.file $srcdir/configure"; then 2592 2593 # If neither matched, then we have a broken ls. This can happen 2594 # if, for instance, CONFIG_SHELL is bash and it inherits a 2595 # broken ls alias from the environment. This has actually 2596 # happened. Such a system could not be considered "sane". 2597 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2598 alias in your environment" "$LINENO" 5 2599 fi 2600 if test "$2" = conftest.file || test $am_try -eq 2; then 2601 break 2602 fi 2603 # Just in case. 2604 sleep 1 2605 am_has_slept=yes 2606 done 2607 test "$2" = conftest.file 2608 ) 2609then 2610 # Ok. 2611 : 2612else 2613 as_fn_error $? "newly created file is older than distributed files! 2614Check your system clock" "$LINENO" 5 2615fi 2616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2617$as_echo "yes" >&6; } 2618# If we didn't sleep, we still need to ensure time stamps of config.status and 2619# generated files are strictly newer. 2620am_sleep_pid= 2621if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2622 ( sleep 1 ) & 2623 am_sleep_pid=$! 2624fi 2625 2626rm -f conftest.file 2627 2628test "$program_prefix" != NONE && 2629 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2630# Use a double $ so make ignores it. 2631test "$program_suffix" != NONE && 2632 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2633# Double any \ or $. 2634# By default was `s,x,x', remove it if useless. 2635ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2636program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2637 2638# Expand $ac_aux_dir to an absolute path. 2639am_aux_dir=`cd "$ac_aux_dir" && pwd` 2640 2641if test x"${MISSING+set}" != xset; then 2642 case $am_aux_dir in 2643 *\ * | *\ *) 2644 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2645 *) 2646 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2647 esac 2648fi 2649# Use eval to expand $SHELL 2650if eval "$MISSING --is-lightweight"; then 2651 am_missing_run="$MISSING " 2652else 2653 am_missing_run= 2654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2655$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2656fi 2657 2658if test x"${install_sh+set}" != xset; then 2659 case $am_aux_dir in 2660 *\ * | *\ *) 2661 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2662 *) 2663 install_sh="\${SHELL} $am_aux_dir/install-sh" 2664 esac 2665fi 2666 2667# Installed binaries are usually stripped using 'strip' when the user 2668# run "make install-strip". However 'strip' might not be the right 2669# tool to use in cross-compilation environments, therefore Automake 2670# will honor the 'STRIP' environment variable to overrule this program. 2671if test "$cross_compiling" != no; then 2672 if test -n "$ac_tool_prefix"; then 2673 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2674set dummy ${ac_tool_prefix}strip; ac_word=$2 2675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2676$as_echo_n "checking for $ac_word... " >&6; } 2677if ${ac_cv_prog_STRIP+:} false; then : 2678 $as_echo_n "(cached) " >&6 2679else 2680 if test -n "$STRIP"; then 2681 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2682else 2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2684for as_dir in $PATH 2685do 2686 IFS=$as_save_IFS 2687 test -z "$as_dir" && as_dir=. 2688 for ac_exec_ext in '' $ac_executable_extensions; do 2689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2690 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2692 break 2 2693 fi 2694done 2695 done 2696IFS=$as_save_IFS 2697 2698fi 2699fi 2700STRIP=$ac_cv_prog_STRIP 2701if test -n "$STRIP"; then 2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2703$as_echo "$STRIP" >&6; } 2704else 2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2706$as_echo "no" >&6; } 2707fi 2708 2709 2710fi 2711if test -z "$ac_cv_prog_STRIP"; then 2712 ac_ct_STRIP=$STRIP 2713 # Extract the first word of "strip", so it can be a program name with args. 2714set dummy strip; ac_word=$2 2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2716$as_echo_n "checking for $ac_word... " >&6; } 2717if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2718 $as_echo_n "(cached) " >&6 2719else 2720 if test -n "$ac_ct_STRIP"; then 2721 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2722else 2723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2724for as_dir in $PATH 2725do 2726 IFS=$as_save_IFS 2727 test -z "$as_dir" && as_dir=. 2728 for ac_exec_ext in '' $ac_executable_extensions; do 2729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2730 ac_cv_prog_ac_ct_STRIP="strip" 2731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2732 break 2 2733 fi 2734done 2735 done 2736IFS=$as_save_IFS 2737 2738fi 2739fi 2740ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2741if test -n "$ac_ct_STRIP"; then 2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2743$as_echo "$ac_ct_STRIP" >&6; } 2744else 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2746$as_echo "no" >&6; } 2747fi 2748 2749 if test "x$ac_ct_STRIP" = x; then 2750 STRIP=":" 2751 else 2752 case $cross_compiling:$ac_tool_warned in 2753yes:) 2754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2756ac_tool_warned=yes ;; 2757esac 2758 STRIP=$ac_ct_STRIP 2759 fi 2760else 2761 STRIP="$ac_cv_prog_STRIP" 2762fi 2763 2764fi 2765INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2766 2767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2768$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2769if test -z "$MKDIR_P"; then 2770 if ${ac_cv_path_mkdir+:} false; then : 2771 $as_echo_n "(cached) " >&6 2772else 2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2774for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2775do 2776 IFS=$as_save_IFS 2777 test -z "$as_dir" && as_dir=. 2778 for ac_prog in mkdir gmkdir; do 2779 for ac_exec_ext in '' $ac_executable_extensions; do 2780 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2781 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2782 'mkdir (GNU coreutils) '* | \ 2783 'mkdir (coreutils) '* | \ 2784 'mkdir (fileutils) '4.1*) 2785 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2786 break 3;; 2787 esac 2788 done 2789 done 2790 done 2791IFS=$as_save_IFS 2792 2793fi 2794 2795 test -d ./--version && rmdir ./--version 2796 if test "${ac_cv_path_mkdir+set}" = set; then 2797 MKDIR_P="$ac_cv_path_mkdir -p" 2798 else 2799 # As a last resort, use the slow shell script. Don't cache a 2800 # value for MKDIR_P within a source directory, because that will 2801 # break other packages using the cache if that directory is 2802 # removed, or if the value is a relative name. 2803 MKDIR_P="$ac_install_sh -d" 2804 fi 2805fi 2806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2807$as_echo "$MKDIR_P" >&6; } 2808 2809for ac_prog in gawk mawk nawk awk 2810do 2811 # Extract the first word of "$ac_prog", so it can be a program name with args. 2812set dummy $ac_prog; ac_word=$2 2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2814$as_echo_n "checking for $ac_word... " >&6; } 2815if ${ac_cv_prog_AWK+:} false; then : 2816 $as_echo_n "(cached) " >&6 2817else 2818 if test -n "$AWK"; then 2819 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2820else 2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2822for as_dir in $PATH 2823do 2824 IFS=$as_save_IFS 2825 test -z "$as_dir" && as_dir=. 2826 for ac_exec_ext in '' $ac_executable_extensions; do 2827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2828 ac_cv_prog_AWK="$ac_prog" 2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2830 break 2 2831 fi 2832done 2833 done 2834IFS=$as_save_IFS 2835 2836fi 2837fi 2838AWK=$ac_cv_prog_AWK 2839if test -n "$AWK"; then 2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2841$as_echo "$AWK" >&6; } 2842else 2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2844$as_echo "no" >&6; } 2845fi 2846 2847 2848 test -n "$AWK" && break 2849done 2850 2851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2852$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2853set x ${MAKE-make} 2854ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2855if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2856 $as_echo_n "(cached) " >&6 2857else 2858 cat >conftest.make <<\_ACEOF 2859SHELL = /bin/sh 2860all: 2861 @echo '@@@%%%=$(MAKE)=@@@%%%' 2862_ACEOF 2863# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2864case `${MAKE-make} -f conftest.make 2>/dev/null` in 2865 *@@@%%%=?*=@@@%%%*) 2866 eval ac_cv_prog_make_${ac_make}_set=yes;; 2867 *) 2868 eval ac_cv_prog_make_${ac_make}_set=no;; 2869esac 2870rm -f conftest.make 2871fi 2872if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2874$as_echo "yes" >&6; } 2875 SET_MAKE= 2876else 2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2878$as_echo "no" >&6; } 2879 SET_MAKE="MAKE=${MAKE-make}" 2880fi 2881 2882rm -rf .tst 2>/dev/null 2883mkdir .tst 2>/dev/null 2884if test -d .tst; then 2885 am__leading_dot=. 2886else 2887 am__leading_dot=_ 2888fi 2889rmdir .tst 2>/dev/null 2890 2891# Check whether --enable-silent-rules was given. 2892if test "${enable_silent_rules+set}" = set; then : 2893 enableval=$enable_silent_rules; 2894fi 2895 2896case $enable_silent_rules in # ((( 2897 yes) AM_DEFAULT_VERBOSITY=0;; 2898 no) AM_DEFAULT_VERBOSITY=1;; 2899 *) AM_DEFAULT_VERBOSITY=1;; 2900esac 2901am_make=${MAKE-make} 2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2903$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2904if ${am_cv_make_support_nested_variables+:} false; then : 2905 $as_echo_n "(cached) " >&6 2906else 2907 if $as_echo 'TRUE=$(BAR$(V)) 2908BAR0=false 2909BAR1=true 2910V=1 2911am__doit: 2912 @$(TRUE) 2913.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2914 am_cv_make_support_nested_variables=yes 2915else 2916 am_cv_make_support_nested_variables=no 2917fi 2918fi 2919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2920$as_echo "$am_cv_make_support_nested_variables" >&6; } 2921if test $am_cv_make_support_nested_variables = yes; then 2922 AM_V='$(V)' 2923 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2924else 2925 AM_V=$AM_DEFAULT_VERBOSITY 2926 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2927fi 2928AM_BACKSLASH='\' 2929 2930if test "`cd $srcdir && pwd`" != "`pwd`"; then 2931 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2932 # is not polluted with repeated "-I." 2933 am__isrc=' -I$(srcdir)' 2934 # test to see if srcdir already configured 2935 if test -f $srcdir/config.status; then 2936 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2937 fi 2938fi 2939 2940# test whether we have cygpath 2941if test -z "$CYGPATH_W"; then 2942 if (cygpath --version) >/dev/null 2>/dev/null; then 2943 CYGPATH_W='cygpath -w' 2944 else 2945 CYGPATH_W=echo 2946 fi 2947fi 2948 2949 2950# Define the identity of the package. 2951 PACKAGE='pgadmin3' 2952 VERSION='1.22.2' 2953 2954 2955cat >>confdefs.h <<_ACEOF 2956#define PACKAGE "$PACKAGE" 2957_ACEOF 2958 2959 2960cat >>confdefs.h <<_ACEOF 2961#define VERSION "$VERSION" 2962_ACEOF 2963 2964# Some tools Automake needs. 2965 2966ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2967 2968 2969AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2970 2971 2972AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2973 2974 2975AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2976 2977 2978MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2979 2980# For better backward compatibility. To be removed once Automake 1.9.x 2981# dies out for good. For more background, see: 2982# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2983# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2984mkdir_p='$(MKDIR_P)' 2985 2986# We need awk for the "check" target (and possibly the TAP driver). The 2987# system "awk" is bad on some platforms. 2988# Always define AMTAR for backward compatibility. Yes, it's still used 2989# in the wild :-( We should find a proper way to deprecate it ... 2990AMTAR='$${TAR-tar}' 2991 2992 2993# We'll loop over all known methods to create a tar archive until one works. 2994_am_tools='gnutar plaintar pax cpio none' 2995 2996# The POSIX 1988 'ustar' format is defined with fixed-size fields. 2997 # There is notably a 21 bits limit for the UID and the GID. In fact, 2998 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 2999 # and bug#13588). 3000 am_max_uid=2097151 # 2^21 - 1 3001 am_max_gid=$am_max_uid 3002 # The $UID and $GID variables are not portable, so we need to resort 3003 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3004 # below are definitely unexpected, so allow the users to see them 3005 # (that is, avoid stderr redirection). 3006 am_uid=`id -u || echo unknown` 3007 am_gid=`id -g || echo unknown` 3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3009$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3010 if test $am_uid -le $am_max_uid; then 3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3012$as_echo "yes" >&6; } 3013 else 3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3015$as_echo "no" >&6; } 3016 _am_tools=none 3017 fi 3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3019$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3020 if test $am_gid -le $am_max_gid; then 3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3022$as_echo "yes" >&6; } 3023 else 3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3025$as_echo "no" >&6; } 3026 _am_tools=none 3027 fi 3028 3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3030$as_echo_n "checking how to create a ustar tar archive... " >&6; } 3031 3032 # Go ahead even if we have the value already cached. We do so because we 3033 # need to set the values for the 'am__tar' and 'am__untar' variables. 3034 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3035 3036 for _am_tool in $_am_tools; do 3037 case $_am_tool in 3038 gnutar) 3039 for _am_tar in tar gnutar gtar; do 3040 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3041 ($_am_tar --version) >&5 2>&5 3042 ac_status=$? 3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3044 (exit $ac_status); } && break 3045 done 3046 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3047 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3048 am__untar="$_am_tar -xf -" 3049 ;; 3050 plaintar) 3051 # Must skip GNU tar: if it does not support --format= it doesn't create 3052 # ustar tarball either. 3053 (tar --version) >/dev/null 2>&1 && continue 3054 am__tar='tar chf - "$$tardir"' 3055 am__tar_='tar chf - "$tardir"' 3056 am__untar='tar xf -' 3057 ;; 3058 pax) 3059 am__tar='pax -L -x ustar -w "$$tardir"' 3060 am__tar_='pax -L -x ustar -w "$tardir"' 3061 am__untar='pax -r' 3062 ;; 3063 cpio) 3064 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3065 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3066 am__untar='cpio -i -H ustar -d' 3067 ;; 3068 none) 3069 am__tar=false 3070 am__tar_=false 3071 am__untar=false 3072 ;; 3073 esac 3074 3075 # If the value was cached, stop now. We just wanted to have am__tar 3076 # and am__untar set. 3077 test -n "${am_cv_prog_tar_ustar}" && break 3078 3079 # tar/untar a dummy directory, and stop if the command works. 3080 rm -rf conftest.dir 3081 mkdir conftest.dir 3082 echo GrepMe > conftest.dir/file 3083 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3084 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3085 ac_status=$? 3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3087 (exit $ac_status); } 3088 rm -rf conftest.dir 3089 if test -s conftest.tar; then 3090 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3091 ($am__untar <conftest.tar) >&5 2>&5 3092 ac_status=$? 3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3094 (exit $ac_status); } 3095 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3096 (cat conftest.dir/file) >&5 2>&5 3097 ac_status=$? 3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3099 (exit $ac_status); } 3100 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3101 fi 3102 done 3103 rm -rf conftest.dir 3104 3105 if ${am_cv_prog_tar_ustar+:} false; then : 3106 $as_echo_n "(cached) " >&6 3107else 3108 am_cv_prog_tar_ustar=$_am_tool 3109fi 3110 3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3112$as_echo "$am_cv_prog_tar_ustar" >&6; } 3113 3114 3115 3116 3117 3118 3119# POSIX will say in a future version that running "rm -f" with no argument 3120# is OK; and we want to be able to make that assumption in our Makefile 3121# recipes. So use an aggressive probe to check that the usage we want is 3122# actually supported "in the wild" to an acceptable degree. 3123# See automake bug#10828. 3124# To make any issue more visible, cause the running configure to be aborted 3125# by default if the 'rm' program in use doesn't match our expectations; the 3126# user can still override this though. 3127if rm -f && rm -fr && rm -rf; then : OK; else 3128 cat >&2 <<'END' 3129Oops! 3130 3131Your 'rm' program seems unable to run without file operands specified 3132on the command line, even when the '-f' option is present. This is contrary 3133to the behaviour of most rm programs out there, and not conforming with 3134the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3135 3136Please tell bug-automake@gnu.org about your system, including the value 3137of your $PATH and any error possibly output before this message. This 3138can help us improve future automake versions. 3139 3140END 3141 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3142 echo 'Configuration will proceed anyway, since you have set the' >&2 3143 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3144 echo >&2 3145 else 3146 cat >&2 <<'END' 3147Aborting the configuration process, to ensure you take notice of the issue. 3148 3149You can download and install GNU coreutils to get an 'rm' implementation 3150that behaves properly: <http://www.gnu.org/software/coreutils/>. 3151 3152If you want to complete the configuration process using your problematic 3153'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3154to "yes", and re-run configure. 3155 3156END 3157 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3158 fi 3159fi 3160 3161 3162 3163# Checks for programs. 3164ac_ext=c 3165ac_cpp='$CPP $CPPFLAGS' 3166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3168ac_compiler_gnu=$ac_cv_c_compiler_gnu 3169if test -n "$ac_tool_prefix"; then 3170 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3171set dummy ${ac_tool_prefix}gcc; ac_word=$2 3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3173$as_echo_n "checking for $ac_word... " >&6; } 3174if ${ac_cv_prog_CC+:} false; then : 3175 $as_echo_n "(cached) " >&6 3176else 3177 if test -n "$CC"; then 3178 ac_cv_prog_CC="$CC" # Let the user override the test. 3179else 3180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3181for as_dir in $PATH 3182do 3183 IFS=$as_save_IFS 3184 test -z "$as_dir" && as_dir=. 3185 for ac_exec_ext in '' $ac_executable_extensions; do 3186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3187 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3189 break 2 3190 fi 3191done 3192 done 3193IFS=$as_save_IFS 3194 3195fi 3196fi 3197CC=$ac_cv_prog_CC 3198if test -n "$CC"; then 3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3200$as_echo "$CC" >&6; } 3201else 3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3203$as_echo "no" >&6; } 3204fi 3205 3206 3207fi 3208if test -z "$ac_cv_prog_CC"; then 3209 ac_ct_CC=$CC 3210 # Extract the first word of "gcc", so it can be a program name with args. 3211set dummy gcc; ac_word=$2 3212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3213$as_echo_n "checking for $ac_word... " >&6; } 3214if ${ac_cv_prog_ac_ct_CC+:} false; then : 3215 $as_echo_n "(cached) " >&6 3216else 3217 if test -n "$ac_ct_CC"; then 3218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3219else 3220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3221for as_dir in $PATH 3222do 3223 IFS=$as_save_IFS 3224 test -z "$as_dir" && as_dir=. 3225 for ac_exec_ext in '' $ac_executable_extensions; do 3226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3227 ac_cv_prog_ac_ct_CC="gcc" 3228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3229 break 2 3230 fi 3231done 3232 done 3233IFS=$as_save_IFS 3234 3235fi 3236fi 3237ac_ct_CC=$ac_cv_prog_ac_ct_CC 3238if test -n "$ac_ct_CC"; then 3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3240$as_echo "$ac_ct_CC" >&6; } 3241else 3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3243$as_echo "no" >&6; } 3244fi 3245 3246 if test "x$ac_ct_CC" = x; then 3247 CC="" 3248 else 3249 case $cross_compiling:$ac_tool_warned in 3250yes:) 3251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3253ac_tool_warned=yes ;; 3254esac 3255 CC=$ac_ct_CC 3256 fi 3257else 3258 CC="$ac_cv_prog_CC" 3259fi 3260 3261if test -z "$CC"; then 3262 if test -n "$ac_tool_prefix"; then 3263 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3264set dummy ${ac_tool_prefix}cc; ac_word=$2 3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3266$as_echo_n "checking for $ac_word... " >&6; } 3267if ${ac_cv_prog_CC+:} false; then : 3268 $as_echo_n "(cached) " >&6 3269else 3270 if test -n "$CC"; then 3271 ac_cv_prog_CC="$CC" # Let the user override the test. 3272else 3273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3274for as_dir in $PATH 3275do 3276 IFS=$as_save_IFS 3277 test -z "$as_dir" && as_dir=. 3278 for ac_exec_ext in '' $ac_executable_extensions; do 3279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3280 ac_cv_prog_CC="${ac_tool_prefix}cc" 3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3282 break 2 3283 fi 3284done 3285 done 3286IFS=$as_save_IFS 3287 3288fi 3289fi 3290CC=$ac_cv_prog_CC 3291if test -n "$CC"; then 3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3293$as_echo "$CC" >&6; } 3294else 3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3296$as_echo "no" >&6; } 3297fi 3298 3299 3300 fi 3301fi 3302if test -z "$CC"; then 3303 # Extract the first word of "cc", so it can be a program name with args. 3304set dummy cc; ac_word=$2 3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3306$as_echo_n "checking for $ac_word... " >&6; } 3307if ${ac_cv_prog_CC+:} false; then : 3308 $as_echo_n "(cached) " >&6 3309else 3310 if test -n "$CC"; then 3311 ac_cv_prog_CC="$CC" # Let the user override the test. 3312else 3313 ac_prog_rejected=no 3314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3315for as_dir in $PATH 3316do 3317 IFS=$as_save_IFS 3318 test -z "$as_dir" && as_dir=. 3319 for ac_exec_ext in '' $ac_executable_extensions; do 3320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3321 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3322 ac_prog_rejected=yes 3323 continue 3324 fi 3325 ac_cv_prog_CC="cc" 3326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3327 break 2 3328 fi 3329done 3330 done 3331IFS=$as_save_IFS 3332 3333if test $ac_prog_rejected = yes; then 3334 # We found a bogon in the path, so make sure we never use it. 3335 set dummy $ac_cv_prog_CC 3336 shift 3337 if test $# != 0; then 3338 # We chose a different compiler from the bogus one. 3339 # However, it has the same basename, so the bogon will be chosen 3340 # first if we set CC to just the basename; use the full file name. 3341 shift 3342 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3343 fi 3344fi 3345fi 3346fi 3347CC=$ac_cv_prog_CC 3348if test -n "$CC"; then 3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3350$as_echo "$CC" >&6; } 3351else 3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3353$as_echo "no" >&6; } 3354fi 3355 3356 3357fi 3358if test -z "$CC"; then 3359 if test -n "$ac_tool_prefix"; then 3360 for ac_prog in cl.exe 3361 do 3362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3363set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3365$as_echo_n "checking for $ac_word... " >&6; } 3366if ${ac_cv_prog_CC+:} false; then : 3367 $as_echo_n "(cached) " >&6 3368else 3369 if test -n "$CC"; then 3370 ac_cv_prog_CC="$CC" # Let the user override the test. 3371else 3372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3373for as_dir in $PATH 3374do 3375 IFS=$as_save_IFS 3376 test -z "$as_dir" && as_dir=. 3377 for ac_exec_ext in '' $ac_executable_extensions; do 3378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3379 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3381 break 2 3382 fi 3383done 3384 done 3385IFS=$as_save_IFS 3386 3387fi 3388fi 3389CC=$ac_cv_prog_CC 3390if test -n "$CC"; then 3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3392$as_echo "$CC" >&6; } 3393else 3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3395$as_echo "no" >&6; } 3396fi 3397 3398 3399 test -n "$CC" && break 3400 done 3401fi 3402if test -z "$CC"; then 3403 ac_ct_CC=$CC 3404 for ac_prog in cl.exe 3405do 3406 # Extract the first word of "$ac_prog", so it can be a program name with args. 3407set dummy $ac_prog; ac_word=$2 3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3409$as_echo_n "checking for $ac_word... " >&6; } 3410if ${ac_cv_prog_ac_ct_CC+:} false; then : 3411 $as_echo_n "(cached) " >&6 3412else 3413 if test -n "$ac_ct_CC"; then 3414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3415else 3416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3417for as_dir in $PATH 3418do 3419 IFS=$as_save_IFS 3420 test -z "$as_dir" && as_dir=. 3421 for ac_exec_ext in '' $ac_executable_extensions; do 3422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3423 ac_cv_prog_ac_ct_CC="$ac_prog" 3424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3425 break 2 3426 fi 3427done 3428 done 3429IFS=$as_save_IFS 3430 3431fi 3432fi 3433ac_ct_CC=$ac_cv_prog_ac_ct_CC 3434if test -n "$ac_ct_CC"; then 3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3436$as_echo "$ac_ct_CC" >&6; } 3437else 3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3439$as_echo "no" >&6; } 3440fi 3441 3442 3443 test -n "$ac_ct_CC" && break 3444done 3445 3446 if test "x$ac_ct_CC" = x; then 3447 CC="" 3448 else 3449 case $cross_compiling:$ac_tool_warned in 3450yes:) 3451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3453ac_tool_warned=yes ;; 3454esac 3455 CC=$ac_ct_CC 3456 fi 3457fi 3458 3459fi 3460 3461 3462test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3464as_fn_error $? "no acceptable C compiler found in \$PATH 3465See \`config.log' for more details" "$LINENO" 5; } 3466 3467# Provide some information about the compiler. 3468$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3469set X $ac_compile 3470ac_compiler=$2 3471for ac_option in --version -v -V -qversion; do 3472 { { ac_try="$ac_compiler $ac_option >&5" 3473case "(($ac_try" in 3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3475 *) ac_try_echo=$ac_try;; 3476esac 3477eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3478$as_echo "$ac_try_echo"; } >&5 3479 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3480 ac_status=$? 3481 if test -s conftest.err; then 3482 sed '10a\ 3483... rest of stderr output deleted ... 3484 10q' conftest.err >conftest.er1 3485 cat conftest.er1 >&5 3486 fi 3487 rm -f conftest.er1 conftest.err 3488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3489 test $ac_status = 0; } 3490done 3491 3492cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3493/* end confdefs.h. */ 3494 3495int 3496main () 3497{ 3498 3499 ; 3500 return 0; 3501} 3502_ACEOF 3503ac_clean_files_save=$ac_clean_files 3504ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3505# Try to create an executable without -o first, disregard a.out. 3506# It will help us diagnose broken compilers, and finding out an intuition 3507# of exeext. 3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3509$as_echo_n "checking whether the C compiler works... " >&6; } 3510ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3511 3512# The possible output files: 3513ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3514 3515ac_rmfiles= 3516for ac_file in $ac_files 3517do 3518 case $ac_file in 3519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3520 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3521 esac 3522done 3523rm -f $ac_rmfiles 3524 3525if { { ac_try="$ac_link_default" 3526case "(($ac_try" in 3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3528 *) ac_try_echo=$ac_try;; 3529esac 3530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3531$as_echo "$ac_try_echo"; } >&5 3532 (eval "$ac_link_default") 2>&5 3533 ac_status=$? 3534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3535 test $ac_status = 0; }; then : 3536 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3537# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3538# in a Makefile. We should not override ac_cv_exeext if it was cached, 3539# so that the user can short-circuit this test for compilers unknown to 3540# Autoconf. 3541for ac_file in $ac_files '' 3542do 3543 test -f "$ac_file" || continue 3544 case $ac_file in 3545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3546 ;; 3547 [ab].out ) 3548 # We found the default executable, but exeext='' is most 3549 # certainly right. 3550 break;; 3551 *.* ) 3552 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3553 then :; else 3554 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3555 fi 3556 # We set ac_cv_exeext here because the later test for it is not 3557 # safe: cross compilers may not add the suffix if given an `-o' 3558 # argument, so we may need to know it at that point already. 3559 # Even if this section looks crufty: it has the advantage of 3560 # actually working. 3561 break;; 3562 * ) 3563 break;; 3564 esac 3565done 3566test "$ac_cv_exeext" = no && ac_cv_exeext= 3567 3568else 3569 ac_file='' 3570fi 3571if test -z "$ac_file"; then : 3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3573$as_echo "no" >&6; } 3574$as_echo "$as_me: failed program was:" >&5 3575sed 's/^/| /' conftest.$ac_ext >&5 3576 3577{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3579as_fn_error 77 "C compiler cannot create executables 3580See \`config.log' for more details" "$LINENO" 5; } 3581else 3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3583$as_echo "yes" >&6; } 3584fi 3585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3586$as_echo_n "checking for C compiler default output file name... " >&6; } 3587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3588$as_echo "$ac_file" >&6; } 3589ac_exeext=$ac_cv_exeext 3590 3591rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3592ac_clean_files=$ac_clean_files_save 3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3594$as_echo_n "checking for suffix of executables... " >&6; } 3595if { { ac_try="$ac_link" 3596case "(($ac_try" in 3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3598 *) ac_try_echo=$ac_try;; 3599esac 3600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3601$as_echo "$ac_try_echo"; } >&5 3602 (eval "$ac_link") 2>&5 3603 ac_status=$? 3604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3605 test $ac_status = 0; }; then : 3606 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3607# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3608# work properly (i.e., refer to `conftest.exe'), while it won't with 3609# `rm'. 3610for ac_file in conftest.exe conftest conftest.*; do 3611 test -f "$ac_file" || continue 3612 case $ac_file in 3613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3614 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3615 break;; 3616 * ) break;; 3617 esac 3618done 3619else 3620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3622as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3623See \`config.log' for more details" "$LINENO" 5; } 3624fi 3625rm -f conftest conftest$ac_cv_exeext 3626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3627$as_echo "$ac_cv_exeext" >&6; } 3628 3629rm -f conftest.$ac_ext 3630EXEEXT=$ac_cv_exeext 3631ac_exeext=$EXEEXT 3632cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3633/* end confdefs.h. */ 3634#include <stdio.h> 3635int 3636main () 3637{ 3638FILE *f = fopen ("conftest.out", "w"); 3639 return ferror (f) || fclose (f) != 0; 3640 3641 ; 3642 return 0; 3643} 3644_ACEOF 3645ac_clean_files="$ac_clean_files conftest.out" 3646# Check that the compiler produces executables we can run. If not, either 3647# the compiler is broken, or we cross compile. 3648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3649$as_echo_n "checking whether we are cross compiling... " >&6; } 3650if test "$cross_compiling" != yes; then 3651 { { ac_try="$ac_link" 3652case "(($ac_try" in 3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3654 *) ac_try_echo=$ac_try;; 3655esac 3656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3657$as_echo "$ac_try_echo"; } >&5 3658 (eval "$ac_link") 2>&5 3659 ac_status=$? 3660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3661 test $ac_status = 0; } 3662 if { ac_try='./conftest$ac_cv_exeext' 3663 { { case "(($ac_try" in 3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3665 *) ac_try_echo=$ac_try;; 3666esac 3667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3668$as_echo "$ac_try_echo"; } >&5 3669 (eval "$ac_try") 2>&5 3670 ac_status=$? 3671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3672 test $ac_status = 0; }; }; then 3673 cross_compiling=no 3674 else 3675 if test "$cross_compiling" = maybe; then 3676 cross_compiling=yes 3677 else 3678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3680as_fn_error $? "cannot run C compiled programs. 3681If you meant to cross compile, use \`--host'. 3682See \`config.log' for more details" "$LINENO" 5; } 3683 fi 3684 fi 3685fi 3686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3687$as_echo "$cross_compiling" >&6; } 3688 3689rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3690ac_clean_files=$ac_clean_files_save 3691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3692$as_echo_n "checking for suffix of object files... " >&6; } 3693if ${ac_cv_objext+:} false; then : 3694 $as_echo_n "(cached) " >&6 3695else 3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3697/* end confdefs.h. */ 3698 3699int 3700main () 3701{ 3702 3703 ; 3704 return 0; 3705} 3706_ACEOF 3707rm -f conftest.o conftest.obj 3708if { { ac_try="$ac_compile" 3709case "(($ac_try" in 3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3711 *) ac_try_echo=$ac_try;; 3712esac 3713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3714$as_echo "$ac_try_echo"; } >&5 3715 (eval "$ac_compile") 2>&5 3716 ac_status=$? 3717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3718 test $ac_status = 0; }; then : 3719 for ac_file in conftest.o conftest.obj conftest.*; do 3720 test -f "$ac_file" || continue; 3721 case $ac_file in 3722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3723 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3724 break;; 3725 esac 3726done 3727else 3728 $as_echo "$as_me: failed program was:" >&5 3729sed 's/^/| /' conftest.$ac_ext >&5 3730 3731{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3733as_fn_error $? "cannot compute suffix of object files: cannot compile 3734See \`config.log' for more details" "$LINENO" 5; } 3735fi 3736rm -f conftest.$ac_cv_objext conftest.$ac_ext 3737fi 3738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3739$as_echo "$ac_cv_objext" >&6; } 3740OBJEXT=$ac_cv_objext 3741ac_objext=$OBJEXT 3742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3743$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3744if ${ac_cv_c_compiler_gnu+:} false; then : 3745 $as_echo_n "(cached) " >&6 3746else 3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3748/* end confdefs.h. */ 3749 3750int 3751main () 3752{ 3753#ifndef __GNUC__ 3754 choke me 3755#endif 3756 3757 ; 3758 return 0; 3759} 3760_ACEOF 3761if ac_fn_c_try_compile "$LINENO"; then : 3762 ac_compiler_gnu=yes 3763else 3764 ac_compiler_gnu=no 3765fi 3766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3767ac_cv_c_compiler_gnu=$ac_compiler_gnu 3768 3769fi 3770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3771$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3772if test $ac_compiler_gnu = yes; then 3773 GCC=yes 3774else 3775 GCC= 3776fi 3777ac_test_CFLAGS=${CFLAGS+set} 3778ac_save_CFLAGS=$CFLAGS 3779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3780$as_echo_n "checking whether $CC accepts -g... " >&6; } 3781if ${ac_cv_prog_cc_g+:} false; then : 3782 $as_echo_n "(cached) " >&6 3783else 3784 ac_save_c_werror_flag=$ac_c_werror_flag 3785 ac_c_werror_flag=yes 3786 ac_cv_prog_cc_g=no 3787 CFLAGS="-g" 3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3789/* end confdefs.h. */ 3790 3791int 3792main () 3793{ 3794 3795 ; 3796 return 0; 3797} 3798_ACEOF 3799if ac_fn_c_try_compile "$LINENO"; then : 3800 ac_cv_prog_cc_g=yes 3801else 3802 CFLAGS="" 3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3804/* end confdefs.h. */ 3805 3806int 3807main () 3808{ 3809 3810 ; 3811 return 0; 3812} 3813_ACEOF 3814if ac_fn_c_try_compile "$LINENO"; then : 3815 3816else 3817 ac_c_werror_flag=$ac_save_c_werror_flag 3818 CFLAGS="-g" 3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3820/* end confdefs.h. */ 3821 3822int 3823main () 3824{ 3825 3826 ; 3827 return 0; 3828} 3829_ACEOF 3830if ac_fn_c_try_compile "$LINENO"; then : 3831 ac_cv_prog_cc_g=yes 3832fi 3833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3834fi 3835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3836fi 3837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3838 ac_c_werror_flag=$ac_save_c_werror_flag 3839fi 3840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3841$as_echo "$ac_cv_prog_cc_g" >&6; } 3842if test "$ac_test_CFLAGS" = set; then 3843 CFLAGS=$ac_save_CFLAGS 3844elif test $ac_cv_prog_cc_g = yes; then 3845 if test "$GCC" = yes; then 3846 CFLAGS="-g -O2" 3847 else 3848 CFLAGS="-g" 3849 fi 3850else 3851 if test "$GCC" = yes; then 3852 CFLAGS="-O2" 3853 else 3854 CFLAGS= 3855 fi 3856fi 3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3858$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3859if ${ac_cv_prog_cc_c89+:} false; then : 3860 $as_echo_n "(cached) " >&6 3861else 3862 ac_cv_prog_cc_c89=no 3863ac_save_CC=$CC 3864cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3865/* end confdefs.h. */ 3866#include <stdarg.h> 3867#include <stdio.h> 3868struct stat; 3869/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3870struct buf { int x; }; 3871FILE * (*rcsopen) (struct buf *, struct stat *, int); 3872static char *e (p, i) 3873 char **p; 3874 int i; 3875{ 3876 return p[i]; 3877} 3878static char *f (char * (*g) (char **, int), char **p, ...) 3879{ 3880 char *s; 3881 va_list v; 3882 va_start (v,p); 3883 s = g (p, va_arg (v,int)); 3884 va_end (v); 3885 return s; 3886} 3887 3888/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3889 function prototypes and stuff, but not '\xHH' hex character constants. 3890 These don't provoke an error unfortunately, instead are silently treated 3891 as 'x'. The following induces an error, until -std is added to get 3892 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3893 array size at least. It's necessary to write '\x00'==0 to get something 3894 that's true only with -std. */ 3895int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3896 3897/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3898 inside strings and character constants. */ 3899#define FOO(x) 'x' 3900int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3901 3902int test (int i, double x); 3903struct s1 {int (*f) (int a);}; 3904struct s2 {int (*f) (double a);}; 3905int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3906int argc; 3907char **argv; 3908int 3909main () 3910{ 3911return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3912 ; 3913 return 0; 3914} 3915_ACEOF 3916for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3917 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3918do 3919 CC="$ac_save_CC $ac_arg" 3920 if ac_fn_c_try_compile "$LINENO"; then : 3921 ac_cv_prog_cc_c89=$ac_arg 3922fi 3923rm -f core conftest.err conftest.$ac_objext 3924 test "x$ac_cv_prog_cc_c89" != "xno" && break 3925done 3926rm -f conftest.$ac_ext 3927CC=$ac_save_CC 3928 3929fi 3930# AC_CACHE_VAL 3931case "x$ac_cv_prog_cc_c89" in 3932 x) 3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3934$as_echo "none needed" >&6; } ;; 3935 xno) 3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3937$as_echo "unsupported" >&6; } ;; 3938 *) 3939 CC="$CC $ac_cv_prog_cc_c89" 3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3941$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3942esac 3943if test "x$ac_cv_prog_cc_c89" != xno; then : 3944 3945fi 3946 3947ac_ext=c 3948ac_cpp='$CPP $CPPFLAGS' 3949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3951ac_compiler_gnu=$ac_cv_c_compiler_gnu 3952 3953ac_ext=c 3954ac_cpp='$CPP $CPPFLAGS' 3955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3957ac_compiler_gnu=$ac_cv_c_compiler_gnu 3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3959$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3960if ${am_cv_prog_cc_c_o+:} false; then : 3961 $as_echo_n "(cached) " >&6 3962else 3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3964/* end confdefs.h. */ 3965 3966int 3967main () 3968{ 3969 3970 ; 3971 return 0; 3972} 3973_ACEOF 3974 # Make sure it works both with $CC and with simple cc. 3975 # Following AC_PROG_CC_C_O, we do the test twice because some 3976 # compilers refuse to overwrite an existing .o file with -o, 3977 # though they will create one. 3978 am_cv_prog_cc_c_o=yes 3979 for am_i in 1 2; do 3980 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3981 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3982 ac_status=$? 3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3984 (exit $ac_status); } \ 3985 && test -f conftest2.$ac_objext; then 3986 : OK 3987 else 3988 am_cv_prog_cc_c_o=no 3989 break 3990 fi 3991 done 3992 rm -f core conftest* 3993 unset am_i 3994fi 3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3996$as_echo "$am_cv_prog_cc_c_o" >&6; } 3997if test "$am_cv_prog_cc_c_o" != yes; then 3998 # Losing compiler, so override with the script. 3999 # FIXME: It is wrong to rewrite CC. 4000 # But if we don't then we get into trouble of one sort or another. 4001 # A longer-term fix would be to have automake use am__CC in this case, 4002 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4003 CC="$am_aux_dir/compile $CC" 4004fi 4005ac_ext=c 4006ac_cpp='$CPP $CPPFLAGS' 4007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4009ac_compiler_gnu=$ac_cv_c_compiler_gnu 4010 4011DEPDIR="${am__leading_dot}deps" 4012 4013ac_config_commands="$ac_config_commands depfiles" 4014 4015 4016am_make=${MAKE-make} 4017cat > confinc << 'END' 4018am__doit: 4019 @echo this is the am__doit target 4020.PHONY: am__doit 4021END 4022# If we don't find an include directive, just comment out the code. 4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4024$as_echo_n "checking for style of include used by $am_make... " >&6; } 4025am__include="#" 4026am__quote= 4027_am_result=none 4028# First try GNU make style include. 4029echo "include confinc" > confmf 4030# Ignore all kinds of additional output from 'make'. 4031case `$am_make -s -f confmf 2> /dev/null` in #( 4032*the\ am__doit\ target*) 4033 am__include=include 4034 am__quote= 4035 _am_result=GNU 4036 ;; 4037esac 4038# Now try BSD make style include. 4039if test "$am__include" = "#"; then 4040 echo '.include "confinc"' > confmf 4041 case `$am_make -s -f confmf 2> /dev/null` in #( 4042 *the\ am__doit\ target*) 4043 am__include=.include 4044 am__quote="\"" 4045 _am_result=BSD 4046 ;; 4047 esac 4048fi 4049 4050 4051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4052$as_echo "$_am_result" >&6; } 4053rm -f confinc confmf 4054 4055# Check whether --enable-dependency-tracking was given. 4056if test "${enable_dependency_tracking+set}" = set; then : 4057 enableval=$enable_dependency_tracking; 4058fi 4059 4060if test "x$enable_dependency_tracking" != xno; then 4061 am_depcomp="$ac_aux_dir/depcomp" 4062 AMDEPBACKSLASH='\' 4063 am__nodep='_no' 4064fi 4065 if test "x$enable_dependency_tracking" != xno; then 4066 AMDEP_TRUE= 4067 AMDEP_FALSE='#' 4068else 4069 AMDEP_TRUE='#' 4070 AMDEP_FALSE= 4071fi 4072 4073 4074 4075depcc="$CC" am_compiler_list= 4076 4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4078$as_echo_n "checking dependency style of $depcc... " >&6; } 4079if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4080 $as_echo_n "(cached) " >&6 4081else 4082 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4083 # We make a subdir and do the tests there. Otherwise we can end up 4084 # making bogus files that we don't know about and never remove. For 4085 # instance it was reported that on HP-UX the gcc test will end up 4086 # making a dummy file named 'D' -- because '-MD' means "put the output 4087 # in D". 4088 rm -rf conftest.dir 4089 mkdir conftest.dir 4090 # Copy depcomp to subdir because otherwise we won't find it if we're 4091 # using a relative directory. 4092 cp "$am_depcomp" conftest.dir 4093 cd conftest.dir 4094 # We will build objects and dependencies in a subdirectory because 4095 # it helps to detect inapplicable dependency modes. For instance 4096 # both Tru64's cc and ICC support -MD to output dependencies as a 4097 # side effect of compilation, but ICC will put the dependencies in 4098 # the current directory while Tru64 will put them in the object 4099 # directory. 4100 mkdir sub 4101 4102 am_cv_CC_dependencies_compiler_type=none 4103 if test "$am_compiler_list" = ""; then 4104 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4105 fi 4106 am__universal=false 4107 case " $depcc " in #( 4108 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4109 esac 4110 4111 for depmode in $am_compiler_list; do 4112 # Setup a source with many dependencies, because some compilers 4113 # like to wrap large dependency lists on column 80 (with \), and 4114 # we should not choose a depcomp mode which is confused by this. 4115 # 4116 # We need to recreate these files for each test, as the compiler may 4117 # overwrite some of them when testing with obscure command lines. 4118 # This happens at least with the AIX C compiler. 4119 : > sub/conftest.c 4120 for i in 1 2 3 4 5 6; do 4121 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4122 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4123 # Solaris 10 /bin/sh. 4124 echo '/* dummy */' > sub/conftst$i.h 4125 done 4126 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4127 4128 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4129 # mode. It turns out that the SunPro C++ compiler does not properly 4130 # handle '-M -o', and we need to detect this. Also, some Intel 4131 # versions had trouble with output in subdirs. 4132 am__obj=sub/conftest.${OBJEXT-o} 4133 am__minus_obj="-o $am__obj" 4134 case $depmode in 4135 gcc) 4136 # This depmode causes a compiler race in universal mode. 4137 test "$am__universal" = false || continue 4138 ;; 4139 nosideeffect) 4140 # After this tag, mechanisms are not by side-effect, so they'll 4141 # only be used when explicitly requested. 4142 if test "x$enable_dependency_tracking" = xyes; then 4143 continue 4144 else 4145 break 4146 fi 4147 ;; 4148 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4149 # This compiler won't grok '-c -o', but also, the minuso test has 4150 # not run yet. These depmodes are late enough in the game, and 4151 # so weak that their functioning should not be impacted. 4152 am__obj=conftest.${OBJEXT-o} 4153 am__minus_obj= 4154 ;; 4155 none) break ;; 4156 esac 4157 if depmode=$depmode \ 4158 source=sub/conftest.c object=$am__obj \ 4159 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4160 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4161 >/dev/null 2>conftest.err && 4162 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4163 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4164 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4165 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4166 # icc doesn't choke on unknown options, it will just issue warnings 4167 # or remarks (even with -Werror). So we grep stderr for any message 4168 # that says an option was ignored or not supported. 4169 # When given -MP, icc 7.0 and 7.1 complain thusly: 4170 # icc: Command line warning: ignoring option '-M'; no argument required 4171 # The diagnosis changed in icc 8.0: 4172 # icc: Command line remark: option '-MP' not supported 4173 if (grep 'ignoring option' conftest.err || 4174 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4175 am_cv_CC_dependencies_compiler_type=$depmode 4176 break 4177 fi 4178 fi 4179 done 4180 4181 cd .. 4182 rm -rf conftest.dir 4183else 4184 am_cv_CC_dependencies_compiler_type=none 4185fi 4186 4187fi 4188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4189$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4190CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4191 4192 if 4193 test "x$enable_dependency_tracking" != xno \ 4194 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4195 am__fastdepCC_TRUE= 4196 am__fastdepCC_FALSE='#' 4197else 4198 am__fastdepCC_TRUE='#' 4199 am__fastdepCC_FALSE= 4200fi 4201 4202 4203ac_ext=cpp 4204ac_cpp='$CXXCPP $CPPFLAGS' 4205ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4206ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4207ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4208if test -z "$CXX"; then 4209 if test -n "$CCC"; then 4210 CXX=$CCC 4211 else 4212 if test -n "$ac_tool_prefix"; then 4213 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4214 do 4215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4216set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4218$as_echo_n "checking for $ac_word... " >&6; } 4219if ${ac_cv_prog_CXX+:} false; then : 4220 $as_echo_n "(cached) " >&6 4221else 4222 if test -n "$CXX"; then 4223 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4224else 4225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4226for as_dir in $PATH 4227do 4228 IFS=$as_save_IFS 4229 test -z "$as_dir" && as_dir=. 4230 for ac_exec_ext in '' $ac_executable_extensions; do 4231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4232 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4234 break 2 4235 fi 4236done 4237 done 4238IFS=$as_save_IFS 4239 4240fi 4241fi 4242CXX=$ac_cv_prog_CXX 4243if test -n "$CXX"; then 4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4245$as_echo "$CXX" >&6; } 4246else 4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4248$as_echo "no" >&6; } 4249fi 4250 4251 4252 test -n "$CXX" && break 4253 done 4254fi 4255if test -z "$CXX"; then 4256 ac_ct_CXX=$CXX 4257 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4258do 4259 # Extract the first word of "$ac_prog", so it can be a program name with args. 4260set dummy $ac_prog; ac_word=$2 4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4262$as_echo_n "checking for $ac_word... " >&6; } 4263if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4264 $as_echo_n "(cached) " >&6 4265else 4266 if test -n "$ac_ct_CXX"; then 4267 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4268else 4269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4270for as_dir in $PATH 4271do 4272 IFS=$as_save_IFS 4273 test -z "$as_dir" && as_dir=. 4274 for ac_exec_ext in '' $ac_executable_extensions; do 4275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4276 ac_cv_prog_ac_ct_CXX="$ac_prog" 4277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4278 break 2 4279 fi 4280done 4281 done 4282IFS=$as_save_IFS 4283 4284fi 4285fi 4286ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4287if test -n "$ac_ct_CXX"; then 4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4289$as_echo "$ac_ct_CXX" >&6; } 4290else 4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4292$as_echo "no" >&6; } 4293fi 4294 4295 4296 test -n "$ac_ct_CXX" && break 4297done 4298 4299 if test "x$ac_ct_CXX" = x; then 4300 CXX="g++" 4301 else 4302 case $cross_compiling:$ac_tool_warned in 4303yes:) 4304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4306ac_tool_warned=yes ;; 4307esac 4308 CXX=$ac_ct_CXX 4309 fi 4310fi 4311 4312 fi 4313fi 4314# Provide some information about the compiler. 4315$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4316set X $ac_compile 4317ac_compiler=$2 4318for ac_option in --version -v -V -qversion; do 4319 { { ac_try="$ac_compiler $ac_option >&5" 4320case "(($ac_try" in 4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4322 *) ac_try_echo=$ac_try;; 4323esac 4324eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4325$as_echo "$ac_try_echo"; } >&5 4326 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4327 ac_status=$? 4328 if test -s conftest.err; then 4329 sed '10a\ 4330... rest of stderr output deleted ... 4331 10q' conftest.err >conftest.er1 4332 cat conftest.er1 >&5 4333 fi 4334 rm -f conftest.er1 conftest.err 4335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4336 test $ac_status = 0; } 4337done 4338 4339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4340$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4341if ${ac_cv_cxx_compiler_gnu+:} false; then : 4342 $as_echo_n "(cached) " >&6 4343else 4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4345/* end confdefs.h. */ 4346 4347int 4348main () 4349{ 4350#ifndef __GNUC__ 4351 choke me 4352#endif 4353 4354 ; 4355 return 0; 4356} 4357_ACEOF 4358if ac_fn_cxx_try_compile "$LINENO"; then : 4359 ac_compiler_gnu=yes 4360else 4361 ac_compiler_gnu=no 4362fi 4363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4364ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4365 4366fi 4367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4368$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4369if test $ac_compiler_gnu = yes; then 4370 GXX=yes 4371else 4372 GXX= 4373fi 4374ac_test_CXXFLAGS=${CXXFLAGS+set} 4375ac_save_CXXFLAGS=$CXXFLAGS 4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4377$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4378if ${ac_cv_prog_cxx_g+:} false; then : 4379 $as_echo_n "(cached) " >&6 4380else 4381 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4382 ac_cxx_werror_flag=yes 4383 ac_cv_prog_cxx_g=no 4384 CXXFLAGS="-g" 4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4386/* end confdefs.h. */ 4387 4388int 4389main () 4390{ 4391 4392 ; 4393 return 0; 4394} 4395_ACEOF 4396if ac_fn_cxx_try_compile "$LINENO"; then : 4397 ac_cv_prog_cxx_g=yes 4398else 4399 CXXFLAGS="" 4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4401/* end confdefs.h. */ 4402 4403int 4404main () 4405{ 4406 4407 ; 4408 return 0; 4409} 4410_ACEOF 4411if ac_fn_cxx_try_compile "$LINENO"; then : 4412 4413else 4414 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4415 CXXFLAGS="-g" 4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4417/* end confdefs.h. */ 4418 4419int 4420main () 4421{ 4422 4423 ; 4424 return 0; 4425} 4426_ACEOF 4427if ac_fn_cxx_try_compile "$LINENO"; then : 4428 ac_cv_prog_cxx_g=yes 4429fi 4430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4431fi 4432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4433fi 4434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4435 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4436fi 4437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4438$as_echo "$ac_cv_prog_cxx_g" >&6; } 4439if test "$ac_test_CXXFLAGS" = set; then 4440 CXXFLAGS=$ac_save_CXXFLAGS 4441elif test $ac_cv_prog_cxx_g = yes; then 4442 if test "$GXX" = yes; then 4443 CXXFLAGS="-g -O2" 4444 else 4445 CXXFLAGS="-g" 4446 fi 4447else 4448 if test "$GXX" = yes; then 4449 CXXFLAGS="-O2" 4450 else 4451 CXXFLAGS= 4452 fi 4453fi 4454ac_ext=c 4455ac_cpp='$CPP $CPPFLAGS' 4456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4458ac_compiler_gnu=$ac_cv_c_compiler_gnu 4459 4460depcc="$CXX" am_compiler_list= 4461 4462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4463$as_echo_n "checking dependency style of $depcc... " >&6; } 4464if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4465 $as_echo_n "(cached) " >&6 4466else 4467 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4468 # We make a subdir and do the tests there. Otherwise we can end up 4469 # making bogus files that we don't know about and never remove. For 4470 # instance it was reported that on HP-UX the gcc test will end up 4471 # making a dummy file named 'D' -- because '-MD' means "put the output 4472 # in D". 4473 rm -rf conftest.dir 4474 mkdir conftest.dir 4475 # Copy depcomp to subdir because otherwise we won't find it if we're 4476 # using a relative directory. 4477 cp "$am_depcomp" conftest.dir 4478 cd conftest.dir 4479 # We will build objects and dependencies in a subdirectory because 4480 # it helps to detect inapplicable dependency modes. For instance 4481 # both Tru64's cc and ICC support -MD to output dependencies as a 4482 # side effect of compilation, but ICC will put the dependencies in 4483 # the current directory while Tru64 will put them in the object 4484 # directory. 4485 mkdir sub 4486 4487 am_cv_CXX_dependencies_compiler_type=none 4488 if test "$am_compiler_list" = ""; then 4489 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4490 fi 4491 am__universal=false 4492 case " $depcc " in #( 4493 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4494 esac 4495 4496 for depmode in $am_compiler_list; do 4497 # Setup a source with many dependencies, because some compilers 4498 # like to wrap large dependency lists on column 80 (with \), and 4499 # we should not choose a depcomp mode which is confused by this. 4500 # 4501 # We need to recreate these files for each test, as the compiler may 4502 # overwrite some of them when testing with obscure command lines. 4503 # This happens at least with the AIX C compiler. 4504 : > sub/conftest.c 4505 for i in 1 2 3 4 5 6; do 4506 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4507 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4508 # Solaris 10 /bin/sh. 4509 echo '/* dummy */' > sub/conftst$i.h 4510 done 4511 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4512 4513 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4514 # mode. It turns out that the SunPro C++ compiler does not properly 4515 # handle '-M -o', and we need to detect this. Also, some Intel 4516 # versions had trouble with output in subdirs. 4517 am__obj=sub/conftest.${OBJEXT-o} 4518 am__minus_obj="-o $am__obj" 4519 case $depmode in 4520 gcc) 4521 # This depmode causes a compiler race in universal mode. 4522 test "$am__universal" = false || continue 4523 ;; 4524 nosideeffect) 4525 # After this tag, mechanisms are not by side-effect, so they'll 4526 # only be used when explicitly requested. 4527 if test "x$enable_dependency_tracking" = xyes; then 4528 continue 4529 else 4530 break 4531 fi 4532 ;; 4533 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4534 # This compiler won't grok '-c -o', but also, the minuso test has 4535 # not run yet. These depmodes are late enough in the game, and 4536 # so weak that their functioning should not be impacted. 4537 am__obj=conftest.${OBJEXT-o} 4538 am__minus_obj= 4539 ;; 4540 none) break ;; 4541 esac 4542 if depmode=$depmode \ 4543 source=sub/conftest.c object=$am__obj \ 4544 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4545 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4546 >/dev/null 2>conftest.err && 4547 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4548 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4549 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4550 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4551 # icc doesn't choke on unknown options, it will just issue warnings 4552 # or remarks (even with -Werror). So we grep stderr for any message 4553 # that says an option was ignored or not supported. 4554 # When given -MP, icc 7.0 and 7.1 complain thusly: 4555 # icc: Command line warning: ignoring option '-M'; no argument required 4556 # The diagnosis changed in icc 8.0: 4557 # icc: Command line remark: option '-MP' not supported 4558 if (grep 'ignoring option' conftest.err || 4559 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4560 am_cv_CXX_dependencies_compiler_type=$depmode 4561 break 4562 fi 4563 fi 4564 done 4565 4566 cd .. 4567 rm -rf conftest.dir 4568else 4569 am_cv_CXX_dependencies_compiler_type=none 4570fi 4571 4572fi 4573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4574$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4575CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4576 4577 if 4578 test "x$enable_dependency_tracking" != xno \ 4579 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4580 am__fastdepCXX_TRUE= 4581 am__fastdepCXX_FALSE='#' 4582else 4583 am__fastdepCXX_TRUE='#' 4584 am__fastdepCXX_FALSE= 4585fi 4586 4587 4588 4589if test -n "$ac_tool_prefix"; then 4590 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4591set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4593$as_echo_n "checking for $ac_word... " >&6; } 4594if ${ac_cv_prog_RANLIB+:} false; then : 4595 $as_echo_n "(cached) " >&6 4596else 4597 if test -n "$RANLIB"; then 4598 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4599else 4600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4601for as_dir in $PATH 4602do 4603 IFS=$as_save_IFS 4604 test -z "$as_dir" && as_dir=. 4605 for ac_exec_ext in '' $ac_executable_extensions; do 4606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4607 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4609 break 2 4610 fi 4611done 4612 done 4613IFS=$as_save_IFS 4614 4615fi 4616fi 4617RANLIB=$ac_cv_prog_RANLIB 4618if test -n "$RANLIB"; then 4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4620$as_echo "$RANLIB" >&6; } 4621else 4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4623$as_echo "no" >&6; } 4624fi 4625 4626 4627fi 4628if test -z "$ac_cv_prog_RANLIB"; then 4629 ac_ct_RANLIB=$RANLIB 4630 # Extract the first word of "ranlib", so it can be a program name with args. 4631set dummy ranlib; ac_word=$2 4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4633$as_echo_n "checking for $ac_word... " >&6; } 4634if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4635 $as_echo_n "(cached) " >&6 4636else 4637 if test -n "$ac_ct_RANLIB"; then 4638 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4639else 4640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4641for as_dir in $PATH 4642do 4643 IFS=$as_save_IFS 4644 test -z "$as_dir" && as_dir=. 4645 for ac_exec_ext in '' $ac_executable_extensions; do 4646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4647 ac_cv_prog_ac_ct_RANLIB="ranlib" 4648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4649 break 2 4650 fi 4651done 4652 done 4653IFS=$as_save_IFS 4654 4655fi 4656fi 4657ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4658if test -n "$ac_ct_RANLIB"; then 4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4660$as_echo "$ac_ct_RANLIB" >&6; } 4661else 4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4663$as_echo "no" >&6; } 4664fi 4665 4666 if test "x$ac_ct_RANLIB" = x; then 4667 RANLIB=":" 4668 else 4669 case $cross_compiling:$ac_tool_warned in 4670yes:) 4671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4673ac_tool_warned=yes ;; 4674esac 4675 RANLIB=$ac_ct_RANLIB 4676 fi 4677else 4678 RANLIB="$ac_cv_prog_RANLIB" 4679fi 4680 4681 4682 if test "$ac_cv_prog_cxx_g" = no; then 4683 as_fn_error $? "could not find a suitable C++ compiler to build pgAdmin" "$LINENO" 5 4684 fi 4685 4686 4687 $CC -V 2>test.txt 4688 SUN_STR=`head -1 test.txt |cut -f2 -d" "` 4689 rm -rf test.txt 4690 if test "$SUN_STR" = "Sun"; then 4691 SUN_CC_COMPILER=yes 4692 fi 4693 4694 $CXX -V 2>test.txt 4695 SUN_STR=`head -1 test.txt |cut -f2 -d" "` 4696 rm -rf test.txt 4697 if test "$SUN_STR" = "Sun"; then 4698 SUN_CXX_COMPILER=yes 4699 fi 4700 4701 4702 if test x$SUN_CC_COMPILER = xyes; then 4703 SUN_CC_TRUE= 4704 SUN_CC_FALSE='#' 4705else 4706 SUN_CC_TRUE='#' 4707 SUN_CC_FALSE= 4708fi 4709 4710 if test x$SUN_CXX_COMPILER = xyes; then 4711 SUN_CXX_TRUE= 4712 SUN_CXX_FALSE='#' 4713else 4714 SUN_CXX_TRUE='#' 4715 SUN_CXX_FALSE= 4716fi 4717 4718 4719# Checks for header files. 4720 4721ac_ext=c 4722ac_cpp='$CPP $CPPFLAGS' 4723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4725ac_compiler_gnu=$ac_cv_c_compiler_gnu 4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4727$as_echo_n "checking how to run the C preprocessor... " >&6; } 4728# On Suns, sometimes $CPP names a directory. 4729if test -n "$CPP" && test -d "$CPP"; then 4730 CPP= 4731fi 4732if test -z "$CPP"; then 4733 if ${ac_cv_prog_CPP+:} false; then : 4734 $as_echo_n "(cached) " >&6 4735else 4736 # Double quotes because CPP needs to be expanded 4737 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4738 do 4739 ac_preproc_ok=false 4740for ac_c_preproc_warn_flag in '' yes 4741do 4742 # Use a header file that comes with gcc, so configuring glibc 4743 # with a fresh cross-compiler works. 4744 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4745 # <limits.h> exists even on freestanding compilers. 4746 # On the NeXT, cc -E runs the code through the compiler's parser, 4747 # not just through cpp. "Syntax error" is here to catch this case. 4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4749/* end confdefs.h. */ 4750#ifdef __STDC__ 4751# include <limits.h> 4752#else 4753# include <assert.h> 4754#endif 4755 Syntax error 4756_ACEOF 4757if ac_fn_c_try_cpp "$LINENO"; then : 4758 4759else 4760 # Broken: fails on valid input. 4761continue 4762fi 4763rm -f conftest.err conftest.i conftest.$ac_ext 4764 4765 # OK, works on sane cases. Now check whether nonexistent headers 4766 # can be detected and how. 4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4768/* end confdefs.h. */ 4769#include <ac_nonexistent.h> 4770_ACEOF 4771if ac_fn_c_try_cpp "$LINENO"; then : 4772 # Broken: success on invalid input. 4773continue 4774else 4775 # Passes both tests. 4776ac_preproc_ok=: 4777break 4778fi 4779rm -f conftest.err conftest.i conftest.$ac_ext 4780 4781done 4782# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4783rm -f conftest.i conftest.err conftest.$ac_ext 4784if $ac_preproc_ok; then : 4785 break 4786fi 4787 4788 done 4789 ac_cv_prog_CPP=$CPP 4790 4791fi 4792 CPP=$ac_cv_prog_CPP 4793else 4794 ac_cv_prog_CPP=$CPP 4795fi 4796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4797$as_echo "$CPP" >&6; } 4798ac_preproc_ok=false 4799for ac_c_preproc_warn_flag in '' yes 4800do 4801 # Use a header file that comes with gcc, so configuring glibc 4802 # with a fresh cross-compiler works. 4803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4804 # <limits.h> exists even on freestanding compilers. 4805 # On the NeXT, cc -E runs the code through the compiler's parser, 4806 # not just through cpp. "Syntax error" is here to catch this case. 4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4808/* end confdefs.h. */ 4809#ifdef __STDC__ 4810# include <limits.h> 4811#else 4812# include <assert.h> 4813#endif 4814 Syntax error 4815_ACEOF 4816if ac_fn_c_try_cpp "$LINENO"; then : 4817 4818else 4819 # Broken: fails on valid input. 4820continue 4821fi 4822rm -f conftest.err conftest.i conftest.$ac_ext 4823 4824 # OK, works on sane cases. Now check whether nonexistent headers 4825 # can be detected and how. 4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4827/* end confdefs.h. */ 4828#include <ac_nonexistent.h> 4829_ACEOF 4830if ac_fn_c_try_cpp "$LINENO"; then : 4831 # Broken: success on invalid input. 4832continue 4833else 4834 # Passes both tests. 4835ac_preproc_ok=: 4836break 4837fi 4838rm -f conftest.err conftest.i conftest.$ac_ext 4839 4840done 4841# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4842rm -f conftest.i conftest.err conftest.$ac_ext 4843if $ac_preproc_ok; then : 4844 4845else 4846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4847$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4848as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4849See \`config.log' for more details" "$LINENO" 5; } 4850fi 4851 4852ac_ext=c 4853ac_cpp='$CPP $CPPFLAGS' 4854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4856ac_compiler_gnu=$ac_cv_c_compiler_gnu 4857 4858 4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4860$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4861if ${ac_cv_path_GREP+:} false; then : 4862 $as_echo_n "(cached) " >&6 4863else 4864 if test -z "$GREP"; then 4865 ac_path_GREP_found=false 4866 # Loop through the user's path and test for each of PROGNAME-LIST 4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4868for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4869do 4870 IFS=$as_save_IFS 4871 test -z "$as_dir" && as_dir=. 4872 for ac_prog in grep ggrep; do 4873 for ac_exec_ext in '' $ac_executable_extensions; do 4874 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4875 as_fn_executable_p "$ac_path_GREP" || continue 4876# Check for GNU ac_path_GREP and select it if it is found. 4877 # Check for GNU $ac_path_GREP 4878case `"$ac_path_GREP" --version 2>&1` in 4879*GNU*) 4880 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4881*) 4882 ac_count=0 4883 $as_echo_n 0123456789 >"conftest.in" 4884 while : 4885 do 4886 cat "conftest.in" "conftest.in" >"conftest.tmp" 4887 mv "conftest.tmp" "conftest.in" 4888 cp "conftest.in" "conftest.nl" 4889 $as_echo 'GREP' >> "conftest.nl" 4890 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4892 as_fn_arith $ac_count + 1 && ac_count=$as_val 4893 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4894 # Best one so far, save it but keep looking for a better one 4895 ac_cv_path_GREP="$ac_path_GREP" 4896 ac_path_GREP_max=$ac_count 4897 fi 4898 # 10*(2^10) chars as input seems more than enough 4899 test $ac_count -gt 10 && break 4900 done 4901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4902esac 4903 4904 $ac_path_GREP_found && break 3 4905 done 4906 done 4907 done 4908IFS=$as_save_IFS 4909 if test -z "$ac_cv_path_GREP"; then 4910 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4911 fi 4912else 4913 ac_cv_path_GREP=$GREP 4914fi 4915 4916fi 4917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4918$as_echo "$ac_cv_path_GREP" >&6; } 4919 GREP="$ac_cv_path_GREP" 4920 4921 4922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4923$as_echo_n "checking for egrep... " >&6; } 4924if ${ac_cv_path_EGREP+:} false; then : 4925 $as_echo_n "(cached) " >&6 4926else 4927 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4928 then ac_cv_path_EGREP="$GREP -E" 4929 else 4930 if test -z "$EGREP"; then 4931 ac_path_EGREP_found=false 4932 # Loop through the user's path and test for each of PROGNAME-LIST 4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4934for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4935do 4936 IFS=$as_save_IFS 4937 test -z "$as_dir" && as_dir=. 4938 for ac_prog in egrep; do 4939 for ac_exec_ext in '' $ac_executable_extensions; do 4940 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4941 as_fn_executable_p "$ac_path_EGREP" || continue 4942# Check for GNU ac_path_EGREP and select it if it is found. 4943 # Check for GNU $ac_path_EGREP 4944case `"$ac_path_EGREP" --version 2>&1` in 4945*GNU*) 4946 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4947*) 4948 ac_count=0 4949 $as_echo_n 0123456789 >"conftest.in" 4950 while : 4951 do 4952 cat "conftest.in" "conftest.in" >"conftest.tmp" 4953 mv "conftest.tmp" "conftest.in" 4954 cp "conftest.in" "conftest.nl" 4955 $as_echo 'EGREP' >> "conftest.nl" 4956 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4957 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4958 as_fn_arith $ac_count + 1 && ac_count=$as_val 4959 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4960 # Best one so far, save it but keep looking for a better one 4961 ac_cv_path_EGREP="$ac_path_EGREP" 4962 ac_path_EGREP_max=$ac_count 4963 fi 4964 # 10*(2^10) chars as input seems more than enough 4965 test $ac_count -gt 10 && break 4966 done 4967 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4968esac 4969 4970 $ac_path_EGREP_found && break 3 4971 done 4972 done 4973 done 4974IFS=$as_save_IFS 4975 if test -z "$ac_cv_path_EGREP"; then 4976 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4977 fi 4978else 4979 ac_cv_path_EGREP=$EGREP 4980fi 4981 4982 fi 4983fi 4984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4985$as_echo "$ac_cv_path_EGREP" >&6; } 4986 EGREP="$ac_cv_path_EGREP" 4987 4988 4989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4990$as_echo_n "checking for ANSI C header files... " >&6; } 4991if ${ac_cv_header_stdc+:} false; then : 4992 $as_echo_n "(cached) " >&6 4993else 4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4995/* end confdefs.h. */ 4996#include <stdlib.h> 4997#include <stdarg.h> 4998#include <string.h> 4999#include <float.h> 5000 5001int 5002main () 5003{ 5004 5005 ; 5006 return 0; 5007} 5008_ACEOF 5009if ac_fn_c_try_compile "$LINENO"; then : 5010 ac_cv_header_stdc=yes 5011else 5012 ac_cv_header_stdc=no 5013fi 5014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5015 5016if test $ac_cv_header_stdc = yes; then 5017 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5019/* end confdefs.h. */ 5020#include <string.h> 5021 5022_ACEOF 5023if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5024 $EGREP "memchr" >/dev/null 2>&1; then : 5025 5026else 5027 ac_cv_header_stdc=no 5028fi 5029rm -f conftest* 5030 5031fi 5032 5033if test $ac_cv_header_stdc = yes; then 5034 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5036/* end confdefs.h. */ 5037#include <stdlib.h> 5038 5039_ACEOF 5040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5041 $EGREP "free" >/dev/null 2>&1; then : 5042 5043else 5044 ac_cv_header_stdc=no 5045fi 5046rm -f conftest* 5047 5048fi 5049 5050if test $ac_cv_header_stdc = yes; then 5051 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5052 if test "$cross_compiling" = yes; then : 5053 : 5054else 5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5056/* end confdefs.h. */ 5057#include <ctype.h> 5058#include <stdlib.h> 5059#if ((' ' & 0x0FF) == 0x020) 5060# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5061# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5062#else 5063# define ISLOWER(c) \ 5064 (('a' <= (c) && (c) <= 'i') \ 5065 || ('j' <= (c) && (c) <= 'r') \ 5066 || ('s' <= (c) && (c) <= 'z')) 5067# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5068#endif 5069 5070#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5071int 5072main () 5073{ 5074 int i; 5075 for (i = 0; i < 256; i++) 5076 if (XOR (islower (i), ISLOWER (i)) 5077 || toupper (i) != TOUPPER (i)) 5078 return 2; 5079 return 0; 5080} 5081_ACEOF 5082if ac_fn_c_try_run "$LINENO"; then : 5083 5084else 5085 ac_cv_header_stdc=no 5086fi 5087rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5088 conftest.$ac_objext conftest.beam conftest.$ac_ext 5089fi 5090 5091fi 5092fi 5093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5094$as_echo "$ac_cv_header_stdc" >&6; } 5095if test $ac_cv_header_stdc = yes; then 5096 5097$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5098 5099fi 5100 5101# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5102for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5103 inttypes.h stdint.h unistd.h 5104do : 5105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5106ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5107" 5108if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5109 cat >>confdefs.h <<_ACEOF 5110#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5111_ACEOF 5112 5113fi 5114 5115done 5116 5117 5118for ac_header in arpa/inet.h netdb.h netinet/in.h stdlib.h 5119do : 5120 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5121ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5122if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5123 cat >>confdefs.h <<_ACEOF 5124#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5125_ACEOF 5126 5127fi 5128 5129done 5130 5131for ac_header in errno.h fcntl.h stdio.h unistd.h sys/uio.h 5132do : 5133 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5134ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5135if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5136 cat >>confdefs.h <<_ACEOF 5137#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5138_ACEOF 5139 5140fi 5141 5142done 5143 5144for ac_header in sys/select.h sys/socket.h sys/ioctl.h sys/time.h 5145do : 5146 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5147ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5148if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5149 cat >>confdefs.h <<_ACEOF 5150#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5151_ACEOF 5152 5153fi 5154 5155done 5156 5157for ac_header in sys/un.h 5158do : 5159 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" 5160if test "x$ac_cv_header_sys_un_h" = xyes; then : 5161 cat >>confdefs.h <<_ACEOF 5162#define HAVE_SYS_UN_H 1 5163_ACEOF 5164 have_sys_un_h=yes 5165else 5166 have_sys_un_h=no 5167fi 5168 5169done 5170 5171 if test "x$have_sys_un_h" = xyes; then 5172 HAVE_SYS_UN_H_TRUE= 5173 HAVE_SYS_UN_H_FALSE='#' 5174else 5175 HAVE_SYS_UN_H_TRUE='#' 5176 HAVE_SYS_UN_H_FALSE= 5177fi 5178 5179ac_config_headers="$ac_config_headers pgadmin/include/libssh2/libssh2_config.h" 5180 5181 5182# Checks for typedefs, structures, and compiler characteristics. 5183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 5184$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 5185if ${ac_cv_header_stdbool_h+:} false; then : 5186 $as_echo_n "(cached) " >&6 5187else 5188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5189/* end confdefs.h. */ 5190 5191 #include <stdbool.h> 5192 #ifndef bool 5193 "error: bool is not defined" 5194 #endif 5195 #ifndef false 5196 "error: false is not defined" 5197 #endif 5198 #if false 5199 "error: false is not 0" 5200 #endif 5201 #ifndef true 5202 "error: true is not defined" 5203 #endif 5204 #if true != 1 5205 "error: true is not 1" 5206 #endif 5207 #ifndef __bool_true_false_are_defined 5208 "error: __bool_true_false_are_defined is not defined" 5209 #endif 5210 5211 struct s { _Bool s: 1; _Bool t; } s; 5212 5213 char a[true == 1 ? 1 : -1]; 5214 char b[false == 0 ? 1 : -1]; 5215 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 5216 char d[(bool) 0.5 == true ? 1 : -1]; 5217 /* See body of main program for 'e'. */ 5218 char f[(_Bool) 0.0 == false ? 1 : -1]; 5219 char g[true]; 5220 char h[sizeof (_Bool)]; 5221 char i[sizeof s.t]; 5222 enum { j = false, k = true, l = false * true, m = true * 256 }; 5223 /* The following fails for 5224 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 5225 _Bool n[m]; 5226 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 5227 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 5228 /* Catch a bug in an HP-UX C compiler. See 5229 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 5230 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 5231 */ 5232 _Bool q = true; 5233 _Bool *pq = &q; 5234 5235int 5236main () 5237{ 5238 5239 bool e = &s; 5240 *pq |= q; 5241 *pq |= ! q; 5242 /* Refer to every declared value, to avoid compiler optimizations. */ 5243 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 5244 + !m + !n + !o + !p + !q + !pq); 5245 5246 ; 5247 return 0; 5248} 5249_ACEOF 5250if ac_fn_c_try_compile "$LINENO"; then : 5251 ac_cv_header_stdbool_h=yes 5252else 5253 ac_cv_header_stdbool_h=no 5254fi 5255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5256fi 5257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 5258$as_echo "$ac_cv_header_stdbool_h" >&6; } 5259 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 5260if test "x$ac_cv_type__Bool" = xyes; then : 5261 5262cat >>confdefs.h <<_ACEOF 5263#define HAVE__BOOL 1 5264_ACEOF 5265 5266 5267fi 5268 5269 5270if test $ac_cv_header_stdbool_h = yes; then 5271 5272$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 5273 5274fi 5275 5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 5277$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 5278if ${ac_cv_c_const+:} false; then : 5279 $as_echo_n "(cached) " >&6 5280else 5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5282/* end confdefs.h. */ 5283 5284int 5285main () 5286{ 5287 5288#ifndef __cplusplus 5289 /* Ultrix mips cc rejects this sort of thing. */ 5290 typedef int charset[2]; 5291 const charset cs = { 0, 0 }; 5292 /* SunOS 4.1.1 cc rejects this. */ 5293 char const *const *pcpcc; 5294 char **ppc; 5295 /* NEC SVR4.0.2 mips cc rejects this. */ 5296 struct point {int x, y;}; 5297 static struct point const zero = {0,0}; 5298 /* AIX XL C 1.02.0.0 rejects this. 5299 It does not let you subtract one const X* pointer from another in 5300 an arm of an if-expression whose if-part is not a constant 5301 expression */ 5302 const char *g = "string"; 5303 pcpcc = &g + (g ? g-g : 0); 5304 /* HPUX 7.0 cc rejects these. */ 5305 ++pcpcc; 5306 ppc = (char**) pcpcc; 5307 pcpcc = (char const *const *) ppc; 5308 { /* SCO 3.2v4 cc rejects this sort of thing. */ 5309 char tx; 5310 char *t = &tx; 5311 char const *s = 0 ? (char *) 0 : (char const *) 0; 5312 5313 *t++ = 0; 5314 if (s) return 0; 5315 } 5316 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5317 int x[] = {25, 17}; 5318 const int *foo = &x[0]; 5319 ++foo; 5320 } 5321 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5322 typedef const int *iptr; 5323 iptr p = 0; 5324 ++p; 5325 } 5326 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 5327 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5328 struct s { int j; const int *ap[3]; } bx; 5329 struct s *b = &bx; b->j = 5; 5330 } 5331 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5332 const int foo = 10; 5333 if (!foo) return 0; 5334 } 5335 return !cs[0] && !zero.x; 5336#endif 5337 5338 ; 5339 return 0; 5340} 5341_ACEOF 5342if ac_fn_c_try_compile "$LINENO"; then : 5343 ac_cv_c_const=yes 5344else 5345 ac_cv_c_const=no 5346fi 5347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5348fi 5349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 5350$as_echo "$ac_cv_c_const" >&6; } 5351if test $ac_cv_c_const = no; then 5352 5353$as_echo "#define const /**/" >>confdefs.h 5354 5355fi 5356 5357ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 5358if test "x$ac_cv_type_size_t" = xyes; then : 5359 5360else 5361 5362cat >>confdefs.h <<_ACEOF 5363#define size_t unsigned int 5364_ACEOF 5365 5366fi 5367 5368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 5369$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 5370if ${ac_cv_header_time+:} false; then : 5371 $as_echo_n "(cached) " >&6 5372else 5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5374/* end confdefs.h. */ 5375#include <sys/types.h> 5376#include <sys/time.h> 5377#include <time.h> 5378 5379int 5380main () 5381{ 5382if ((struct tm *) 0) 5383return 0; 5384 ; 5385 return 0; 5386} 5387_ACEOF 5388if ac_fn_c_try_compile "$LINENO"; then : 5389 ac_cv_header_time=yes 5390else 5391 ac_cv_header_time=no 5392fi 5393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5394fi 5395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 5396$as_echo "$ac_cv_header_time" >&6; } 5397if test $ac_cv_header_time = yes; then 5398 5399$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 5400 5401fi 5402 5403 5404# Checks for library functions. 5405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 5406$as_echo_n "checking for working strtod... " >&6; } 5407if ${ac_cv_func_strtod+:} false; then : 5408 $as_echo_n "(cached) " >&6 5409else 5410 if test "$cross_compiling" = yes; then : 5411 ac_cv_func_strtod=no 5412else 5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5414/* end confdefs.h. */ 5415 5416$ac_includes_default 5417#ifndef strtod 5418double strtod (); 5419#endif 5420int 5421main() 5422{ 5423 { 5424 /* Some versions of Linux strtod mis-parse strings with leading '+'. */ 5425 char *string = " +69"; 5426 char *term; 5427 double value; 5428 value = strtod (string, &term); 5429 if (value != 69 || term != (string + 4)) 5430 return 1; 5431 } 5432 5433 { 5434 /* Under Solaris 2.4, strtod returns the wrong value for the 5435 terminating character under some conditions. */ 5436 char *string = "NaN"; 5437 char *term; 5438 strtod (string, &term); 5439 if (term != string && *(term - 1) == 0) 5440 return 1; 5441 } 5442 return 0; 5443} 5444 5445_ACEOF 5446if ac_fn_c_try_run "$LINENO"; then : 5447 ac_cv_func_strtod=yes 5448else 5449 ac_cv_func_strtod=no 5450fi 5451rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5452 conftest.$ac_objext conftest.beam conftest.$ac_ext 5453fi 5454 5455fi 5456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 5457$as_echo "$ac_cv_func_strtod" >&6; } 5458if test $ac_cv_func_strtod = no; then 5459 case " $LIBOBJS " in 5460 *" strtod.$ac_objext "* ) ;; 5461 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" 5462 ;; 5463esac 5464 5465ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" 5466if test "x$ac_cv_func_pow" = xyes; then : 5467 5468fi 5469 5470if test $ac_cv_func_pow = no; then 5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 5472$as_echo_n "checking for pow in -lm... " >&6; } 5473if ${ac_cv_lib_m_pow+:} false; then : 5474 $as_echo_n "(cached) " >&6 5475else 5476 ac_check_lib_save_LIBS=$LIBS 5477LIBS="-lm $LIBS" 5478cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5479/* end confdefs.h. */ 5480 5481/* Override any GCC internal prototype to avoid an error. 5482 Use char because int might match the return type of a GCC 5483 builtin and then its argument prototype would still apply. */ 5484#ifdef __cplusplus 5485extern "C" 5486#endif 5487char pow (); 5488int 5489main () 5490{ 5491return pow (); 5492 ; 5493 return 0; 5494} 5495_ACEOF 5496if ac_fn_c_try_link "$LINENO"; then : 5497 ac_cv_lib_m_pow=yes 5498else 5499 ac_cv_lib_m_pow=no 5500fi 5501rm -f core conftest.err conftest.$ac_objext \ 5502 conftest$ac_exeext conftest.$ac_ext 5503LIBS=$ac_check_lib_save_LIBS 5504fi 5505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 5506$as_echo "$ac_cv_lib_m_pow" >&6; } 5507if test "x$ac_cv_lib_m_pow" = xyes; then : 5508 POW_LIB=-lm 5509else 5510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 5511$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} 5512fi 5513 5514fi 5515 5516fi 5517 5518for ac_func in gethostbyname inet_ntoa memmove memset strchr 5519do : 5520 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5521ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 5522if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 5523 cat >>confdefs.h <<_ACEOF 5524#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5525_ACEOF 5526 5527fi 5528done 5529 5530 5531# Custom checks 5532 5533 # Check whether --enable-debug was given. 5534if test "${enable_debug+set}" = set; then : 5535 enableval=$enable_debug; 5536 if test "$enableval" = yes 5537 then 5538 BUILD_DEBUG=yes 5539 else 5540 BUILD_DEBUG=no 5541 fi 5542 5543else 5544 5545 BUILD_DEBUG=no 5546 5547fi 5548 5549 5550 5551 # Check whether --enable-static was given. 5552if test "${enable_static+set}" = set; then : 5553 enableval=$enable_static; 5554 if test "$enableval" = yes 5555 then 5556 BUILD_STATIC=yes 5557 WX_STATIC="--static=yes" 5558 else 5559 BUILD_STATIC=no 5560 WX_STATIC="--static=no" 5561 fi 5562 5563else 5564 5565 BUILD_STATIC=no 5566 WX_STATIC="--static=no" 5567 5568fi 5569 5570 5571 5572 # Check whether --enable-appbundle was given. 5573if test "${enable_appbundle+set}" = set; then : 5574 enableval=$enable_appbundle; 5575 if test "$enableval" = yes 5576 then 5577 BUILD_APPBUNDLE=yes 5578 prefix=$(pwd)/tmp 5579 bundledir="$(pwd)/pgAdmin3.app" 5580 bindir="$bundledir/Contents/MacOS" 5581 datadir="$bundledir/Contents/SharedSupport" 5582 5583 else 5584 BUILD_APPBUNDLE=no 5585 fi 5586 5587else 5588 5589 BUILD_APPBUNDLE=no 5590 5591fi 5592 5593 5594 5595 # Check whether --enable-databasedesigner was given. 5596if test "${enable_databasedesigner+set}" = set; then : 5597 enableval=$enable_databasedesigner; 5598 if test "$enableval" = yes 5599 then 5600 HAVE_DATABASEDESIGNER=yes 5601 else 5602 HAVE_DATABASEDESIGNER=no 5603 fi 5604 5605else 5606 5607 HAVE_DATABASEDESIGNER=no 5608 5609fi 5610 5611 5612 5613 if test x$BUILD_APPBUNDLE = xyes; then 5614 APPBUNDLE_TRUE= 5615 APPBUNDLE_FALSE='#' 5616else 5617 APPBUNDLE_TRUE='#' 5618 APPBUNDLE_FALSE= 5619fi 5620 5621 if test x$BUILD_DEBUG = xyes; then 5622 BUILD_DEBUG_TRUE= 5623 BUILD_DEBUG_FALSE='#' 5624else 5625 BUILD_DEBUG_TRUE='#' 5626 BUILD_DEBUG_FALSE= 5627fi 5628 5629 if test x$INSTALL_DOCS = xyes; then 5630 INSTALL_DOCS_TRUE= 5631 INSTALL_DOCS_FALSE='#' 5632else 5633 INSTALL_DOCS_TRUE='#' 5634 INSTALL_DOCS_FALSE= 5635fi 5636 5637 5638 5639 5640# Check whether --with-pgsql was given. 5641if test "${with_pgsql+set}" = set; then : 5642 withval=$with_pgsql; 5643 if test "$withval" != no 5644 then 5645 PG_HOME="$withval" 5646 if test ! -f "${PG_HOME}/bin/pg_config" 5647 then 5648 as_fn_error $? "Could not find your PostgreSQL installation in ${PG_HOME}" "$LINENO" 5 5649 fi 5650 5651 fi 5652 PG_CONFIG=${PG_HOME}/bin/pg_config 5653 5654else 5655 5656 PG_HOME=/usr/local/pgsql 5657 if test ! -f "${PG_HOME}/bin/pg_config" 5658 then 5659 PG_HOME=/usr/local 5660 if test ! -f "${PG_HOME}/bin/pg_config" 5661 then 5662 PG_HOME=/usr 5663 if test ! -f "${PG_HOME}/bin/pg_config" 5664 then 5665 # Search the path 5666 for ac_prog in pg_config 5667do 5668 # Extract the first word of "$ac_prog", so it can be a program name with args. 5669set dummy $ac_prog; ac_word=$2 5670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5671$as_echo_n "checking for $ac_word... " >&6; } 5672if ${ac_cv_path_PG_CONFIG+:} false; then : 5673 $as_echo_n "(cached) " >&6 5674else 5675 case $PG_CONFIG in 5676 [\\/]* | ?:[\\/]*) 5677 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path. 5678 ;; 5679 *) 5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5681for as_dir in $PATH 5682do 5683 IFS=$as_save_IFS 5684 test -z "$as_dir" && as_dir=. 5685 for ac_exec_ext in '' $ac_executable_extensions; do 5686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5687 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5689 break 2 5690 fi 5691done 5692 done 5693IFS=$as_save_IFS 5694 5695 ;; 5696esac 5697fi 5698PG_CONFIG=$ac_cv_path_PG_CONFIG 5699if test -n "$PG_CONFIG"; then 5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5 5701$as_echo "$PG_CONFIG" >&6; } 5702else 5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5704$as_echo "no" >&6; } 5705fi 5706 5707 5708 test -n "$PG_CONFIG" && break 5709done 5710 5711 if test ! -f "${PG_CONFIG}" 5712 then 5713 as_fn_error $? "Could not find your PostgreSQL installation. You might need to use the --with-pgsql=DIR configure option" "$LINENO" 5 5714 else 5715 PG_HOME=`${PG_CONFIG} --bindir | sed "s/\/bin$//"` 5716 fi 5717 fi 5718 fi 5719 fi 5720 PG_CONFIG=${PG_HOME}/bin/pg_config 5721 5722fi 5723 5724 5725 5726 if test -n "${PG_HOME}" 5727 then 5728 PG_LIB=`${PG_CONFIG} --libdir` 5729 5730 PGSQL_OLD_LDFLAGS="$LDFLAGS" 5731 PGSQL_OLD_CPPFLAGS="$CPPFLAGS" 5732 5733 5734 ac_ext=c 5735ac_cpp='$CPP $CPPFLAGS' 5736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5738ac_compiler_gnu=$ac_cv_c_compiler_gnu 5739 5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5 5741$as_echo_n "checking for SSL_library_init in -lssl... " >&6; } 5742if ${ac_cv_lib_ssl_SSL_library_init+:} false; then : 5743 $as_echo_n "(cached) " >&6 5744else 5745 ac_check_lib_save_LIBS=$LIBS 5746LIBS="-lssl $LIBS" 5747cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5748/* end confdefs.h. */ 5749 5750/* Override any GCC internal prototype to avoid an error. 5751 Use char because int might match the return type of a GCC 5752 builtin and then its argument prototype would still apply. */ 5753#ifdef __cplusplus 5754extern "C" 5755#endif 5756char SSL_library_init (); 5757int 5758main () 5759{ 5760return SSL_library_init (); 5761 ; 5762 return 0; 5763} 5764_ACEOF 5765if ac_fn_c_try_link "$LINENO"; then : 5766 ac_cv_lib_ssl_SSL_library_init=yes 5767else 5768 ac_cv_lib_ssl_SSL_library_init=no 5769fi 5770rm -f core conftest.err conftest.$ac_objext \ 5771 conftest$ac_exeext conftest.$ac_ext 5772LIBS=$ac_check_lib_save_LIBS 5773fi 5774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5 5775$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; } 5776if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then : 5777 LIB_SSL=yes 5778else 5779 LIB_SSL=no 5780fi 5781 5782 ac_ext=c 5783ac_cpp='$CPP $CPPFLAGS' 5784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5786ac_compiler_gnu=$ac_cv_c_compiler_gnu 5787 5788 5789 5790 ac_ext=c 5791ac_cpp='$CPP $CPPFLAGS' 5792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5794ac_compiler_gnu=$ac_cv_c_compiler_gnu 5795 5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_sendauth in -lkrb5" >&5 5797$as_echo_n "checking for krb5_sendauth in -lkrb5... " >&6; } 5798if ${ac_cv_lib_krb5_krb5_sendauth+:} false; then : 5799 $as_echo_n "(cached) " >&6 5800else 5801 ac_check_lib_save_LIBS=$LIBS 5802LIBS="-lkrb5 $LIBS" 5803cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5804/* end confdefs.h. */ 5805 5806/* Override any GCC internal prototype to avoid an error. 5807 Use char because int might match the return type of a GCC 5808 builtin and then its argument prototype would still apply. */ 5809#ifdef __cplusplus 5810extern "C" 5811#endif 5812char krb5_sendauth (); 5813int 5814main () 5815{ 5816return krb5_sendauth (); 5817 ; 5818 return 0; 5819} 5820_ACEOF 5821if ac_fn_c_try_link "$LINENO"; then : 5822 ac_cv_lib_krb5_krb5_sendauth=yes 5823else 5824 ac_cv_lib_krb5_krb5_sendauth=no 5825fi 5826rm -f core conftest.err conftest.$ac_objext \ 5827 conftest$ac_exeext conftest.$ac_ext 5828LIBS=$ac_check_lib_save_LIBS 5829fi 5830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_sendauth" >&5 5831$as_echo "$ac_cv_lib_krb5_krb5_sendauth" >&6; } 5832if test "x$ac_cv_lib_krb5_krb5_sendauth" = xyes; then : 5833 LIB_KRB5=yes 5834else 5835 LIB_KRB5=no 5836fi 5837 5838 ac_ext=c 5839ac_cpp='$CPP $CPPFLAGS' 5840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5842ac_compiler_gnu=$ac_cv_c_compiler_gnu 5843 5844 5845 5846 # Solaris/Mac need -lssl for this test 5847 case "${host}" in 5848 *solaris* | *-apple-darwin*) 5849 if test "$LIB_SSL" = "yes" 5850 then 5851 LDFLAGS="$LDFLAGS -L${PG_LIB} -lssl" 5852 else 5853 LDFLAGS="$LDFLAGS -L${PG_LIB}" 5854 fi 5855 ;; 5856 *) 5857 LDFLAGS="$LDFLAGS -L${PG_LIB}" 5858 ;; 5859 esac 5860 5861 5862 # Check for PQexec (basic sanity check!) 5863 if test "$BUILD_STATIC" = "yes" 5864 then 5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexec in libpq.a" >&5 5866$as_echo_n "checking for PQexec in libpq.a... " >&6; } 5867 if test "$(nm ${PG_LIB}/libpq.a | grep -c PQexec)" -gt 0 5868 then 5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5 5870$as_echo "present" >&6; } 5871 PG_LIBPQ="yes" 5872 else 5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5 5874$as_echo "not present" >&6; } 5875 PG_LIBPQ="no" 5876 fi 5877 else 5878 5879 ac_ext=c 5880ac_cpp='$CPP $CPPFLAGS' 5881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5883ac_compiler_gnu=$ac_cv_c_compiler_gnu 5884 5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexec in -lpq" >&5 5886$as_echo_n "checking for PQexec in -lpq... " >&6; } 5887if ${ac_cv_lib_pq_PQexec+:} false; then : 5888 $as_echo_n "(cached) " >&6 5889else 5890 ac_check_lib_save_LIBS=$LIBS 5891LIBS="-lpq $LIBS" 5892cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5893/* end confdefs.h. */ 5894 5895/* Override any GCC internal prototype to avoid an error. 5896 Use char because int might match the return type of a GCC 5897 builtin and then its argument prototype would still apply. */ 5898#ifdef __cplusplus 5899extern "C" 5900#endif 5901char PQexec (); 5902int 5903main () 5904{ 5905return PQexec (); 5906 ; 5907 return 0; 5908} 5909_ACEOF 5910if ac_fn_c_try_link "$LINENO"; then : 5911 ac_cv_lib_pq_PQexec=yes 5912else 5913 ac_cv_lib_pq_PQexec=no 5914fi 5915rm -f core conftest.err conftest.$ac_objext \ 5916 conftest$ac_exeext conftest.$ac_ext 5917LIBS=$ac_check_lib_save_LIBS 5918fi 5919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexec" >&5 5920$as_echo "$ac_cv_lib_pq_PQexec" >&6; } 5921if test "x$ac_cv_lib_pq_PQexec" = xyes; then : 5922 PG_LIBPQ=yes 5923else 5924 PG_LIBPQ=no 5925fi 5926 5927 ac_ext=c 5928ac_cpp='$CPP $CPPFLAGS' 5929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5931ac_compiler_gnu=$ac_cv_c_compiler_gnu 5932 5933 fi 5934 5935 # Check for PQconninfoParse 5936 if test "$BUILD_STATIC" = "yes" 5937 then 5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQconninfoParse in libpq.a" >&5 5939$as_echo_n "checking for PQconninfoParse in libpq.a... " >&6; } 5940 if test "$(nm ${PG_LIB}/libpq.a | grep -c PQconninfoParse)" -gt 0 5941 then 5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5 5943$as_echo "present" >&6; } 5944 HAVE_CONNINFO_PARSE="yes" 5945 else 5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5 5947$as_echo "not present" >&6; } 5948 HAVE_CONNINFO_PARSE="no" 5949 fi 5950 else 5951 5952 ac_ext=c 5953ac_cpp='$CPP $CPPFLAGS' 5954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5956ac_compiler_gnu=$ac_cv_c_compiler_gnu 5957 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQconninfoParse in -lpq" >&5 5959$as_echo_n "checking for PQconninfoParse in -lpq... " >&6; } 5960if ${ac_cv_lib_pq_PQconninfoParse+:} false; then : 5961 $as_echo_n "(cached) " >&6 5962else 5963 ac_check_lib_save_LIBS=$LIBS 5964LIBS="-lpq $LIBS" 5965cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5966/* end confdefs.h. */ 5967 5968/* Override any GCC internal prototype to avoid an error. 5969 Use char because int might match the return type of a GCC 5970 builtin and then its argument prototype would still apply. */ 5971#ifdef __cplusplus 5972extern "C" 5973#endif 5974char PQconninfoParse (); 5975int 5976main () 5977{ 5978return PQconninfoParse (); 5979 ; 5980 return 0; 5981} 5982_ACEOF 5983if ac_fn_c_try_link "$LINENO"; then : 5984 ac_cv_lib_pq_PQconninfoParse=yes 5985else 5986 ac_cv_lib_pq_PQconninfoParse=no 5987fi 5988rm -f core conftest.err conftest.$ac_objext \ 5989 conftest$ac_exeext conftest.$ac_ext 5990LIBS=$ac_check_lib_save_LIBS 5991fi 5992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQconninfoParse" >&5 5993$as_echo "$ac_cv_lib_pq_PQconninfoParse" >&6; } 5994if test "x$ac_cv_lib_pq_PQconninfoParse" = xyes; then : 5995 HAVE_CONNINFO_PARSE=yes 5996else 5997 HAVE_CONNINFO_PARSE=no 5998fi 5999 6000 ac_ext=c 6001ac_cpp='$CPP $CPPFLAGS' 6002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6004ac_compiler_gnu=$ac_cv_c_compiler_gnu 6005 6006 fi 6007 6008 6009 ac_ext=c 6010ac_cpp='$CPP $CPPFLAGS' 6011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6013ac_compiler_gnu=$ac_cv_c_compiler_gnu 6014 6015 6016 if test "$LIB_SSL" = "yes" 6017 then 6018 # Check for SSL support 6019 if test "$BUILD_STATIC" = "yes" 6020 then 6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in libpq.a" >&5 6022$as_echo_n "checking for SSL_connect in libpq.a... " >&6; } 6023 if test "$(nm ${PG_LIB}/libpq.a | grep -c SSL_connect)" -gt 0 6024 then 6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5 6026$as_echo "present" >&6; } 6027 PG_SSL="yes" 6028 else 6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5 6030$as_echo "not present" >&6; } 6031 PG_SSL="no" 6032 fi 6033 else 6034 if test "$build_cpu-$build_vendor" = "powerpc-apple" -o "$build_cpu-$build_vendor" = "i386-apple" -o "$build_cpu-$build_vendor" = "i686-apple" 6035 then 6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lpq" >&5 6037$as_echo_n "checking for SSL_connect in -lpq... " >&6; } 6038 if test "$(otool -L ${PG_LIB}/libpq.?.dylib | grep -c libssl)" -gt 0 6039 then 6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5 6041$as_echo "present" >&6; } 6042 PG_SSL="yes" 6043 else 6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5 6045$as_echo "not present" >&6; } 6046 PG_SSL="no" 6047 fi 6048 else 6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lpq" >&5 6050$as_echo_n "checking for SSL_connect in -lpq... " >&6; } 6051if ${ac_cv_lib_pq_SSL_connect+:} false; then : 6052 $as_echo_n "(cached) " >&6 6053else 6054 ac_check_lib_save_LIBS=$LIBS 6055LIBS="-lpq "-lssl" $LIBS" 6056cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6057/* end confdefs.h. */ 6058 6059/* Override any GCC internal prototype to avoid an error. 6060 Use char because int might match the return type of a GCC 6061 builtin and then its argument prototype would still apply. */ 6062#ifdef __cplusplus 6063extern "C" 6064#endif 6065char SSL_connect (); 6066int 6067main () 6068{ 6069return SSL_connect (); 6070 ; 6071 return 0; 6072} 6073_ACEOF 6074if ac_fn_c_try_link "$LINENO"; then : 6075 ac_cv_lib_pq_SSL_connect=yes 6076else 6077 ac_cv_lib_pq_SSL_connect=no 6078fi 6079rm -f core conftest.err conftest.$ac_objext \ 6080 conftest$ac_exeext conftest.$ac_ext 6081LIBS=$ac_check_lib_save_LIBS 6082fi 6083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_SSL_connect" >&5 6084$as_echo "$ac_cv_lib_pq_SSL_connect" >&6; } 6085if test "x$ac_cv_lib_pq_SSL_connect" = xyes; then : 6086 PG_SSL=yes 6087else 6088 PG_SSL=no 6089fi 6090 6091 fi 6092 fi 6093 else 6094 PG_SSL="no" 6095 fi 6096 6097 if test "$LIB_KRB5" = "yes" 6098 then 6099 # Check for Kerberos support 6100 6101 LDFLAGS="$LDFLAGS -lkrb5" 6102 6103 if test "$BUILD_STATIC" = "yes" 6104 then 6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_free_principal in libpq.a" >&5 6106$as_echo_n "checking for krb5_free_principal in libpq.a... " >&6; } 6107 if test "$(nm ${PG_LIB}/libpq.a | grep -c krb5_free_principal)" -gt 0 6108 then 6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5 6110$as_echo "present" >&6; } 6111 PG_KRB5="yes" 6112 else 6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5 6114$as_echo "not present" >&6; } 6115 PG_KRB5="no" 6116 fi 6117 else 6118 if test "$build_cpu-$build_vendor" = "powerpc-apple" -o "$build_cpu-$build_vendor" = "i386-apple" -o "$build_cpu-$build_vendor" = "i686-apple" 6119 then 6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_free_principle in -lpq" >&5 6121$as_echo_n "checking for krb5_free_principle in -lpq... " >&6; } 6122 if test "$(otool -L ${PG_LIB}/libpq.?.dylib | grep -c libkrb5)" -gt 0 6123 then 6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5 6125$as_echo "present" >&6; } 6126 PG_KRB5="yes" 6127 else 6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5 6129$as_echo "not present" >&6; } 6130 PG_KRB5="no" 6131 fi 6132 else 6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_free_principal in -lpq" >&5 6134$as_echo_n "checking for krb5_free_principal in -lpq... " >&6; } 6135if ${ac_cv_lib_pq_krb5_free_principal+:} false; then : 6136 $as_echo_n "(cached) " >&6 6137else 6138 ac_check_lib_save_LIBS=$LIBS 6139LIBS="-lpq $LIBS" 6140cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6141/* end confdefs.h. */ 6142 6143/* Override any GCC internal prototype to avoid an error. 6144 Use char because int might match the return type of a GCC 6145 builtin and then its argument prototype would still apply. */ 6146#ifdef __cplusplus 6147extern "C" 6148#endif 6149char krb5_free_principal (); 6150int 6151main () 6152{ 6153return krb5_free_principal (); 6154 ; 6155 return 0; 6156} 6157_ACEOF 6158if ac_fn_c_try_link "$LINENO"; then : 6159 ac_cv_lib_pq_krb5_free_principal=yes 6160else 6161 ac_cv_lib_pq_krb5_free_principal=no 6162fi 6163rm -f core conftest.err conftest.$ac_objext \ 6164 conftest$ac_exeext conftest.$ac_ext 6165LIBS=$ac_check_lib_save_LIBS 6166fi 6167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_krb5_free_principal" >&5 6168$as_echo "$ac_cv_lib_pq_krb5_free_principal" >&6; } 6169if test "x$ac_cv_lib_pq_krb5_free_principal" = xyes; then : 6170 PG_KRB5=yes 6171else 6172 PG_KRB5=no 6173fi 6174 6175 fi 6176 fi 6177 else 6178 PG_KRB5="no" 6179 fi 6180 6181 ac_ext=c 6182ac_cpp='$CPP $CPPFLAGS' 6183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6185ac_compiler_gnu=$ac_cv_c_compiler_gnu 6186 6187 6188 PG_INCLUDE=`${PG_CONFIG} --includedir` 6189 PG_SVRINCLUDE=`${PG_CONFIG} --includedir-server` 6190 PG_PKGINCLUDE=`${PG_CONFIG} --pkgincludedir` 6191 CPPFLAGS="$CPPFLAGS -I${PG_INCLUDE} -I${PG_SVRINCLUDE} -I${PG_PKGINCLUDE}" 6192 6193 PG_VERSION=`${PG_CONFIG} --version` 6194 6195 if test "$build_os" = "mingw32" 6196 then 6197 CRYPTO_LIB="" 6198 else 6199 CRYPTO_LIB="-lcrypto" 6200 fi 6201 6202 if test "$BUILD_STATIC" = "yes" 6203 then 6204 if test "$build_cpu-$build_vendor" = "powerpc-apple" -o "$build_cpu-$build_vendor" = "i386-apple" -o "$build_cpu-$build_vendor" = "i686-apple" 6205 then 6206 CRYPT_LIB="" 6207 else 6208 CRYPT_LIB="-lcrypt" 6209 fi 6210 6211 if test "$PG_SSL" = "yes" 6212 then 6213 LIBS="${PG_LIB}/libpq.a $CRYPT_LIB $LIBS -lssl $CRYPTO_LIB" 6214 else 6215 LIBS="${PG_LIB}/libpq.a $CRYPT_LIB $LIBS $CRYPTO_LIB" 6216 fi 6217 6218 if test "$PG_KRB5" = "yes" 6219 then 6220 LIBS="$LIBS -lkrb5" 6221 fi 6222 else 6223 if test "$PG_SSL" = "yes" 6224 then 6225 LIBS="$LIBS -L${PG_LIB} -lpq" 6226 else 6227 LIBS="$LIBS -L${PG_LIB} $CRYPTO_LIB -lpq" 6228 fi 6229 fi 6230 6231 6232 ac_ext=c 6233ac_cpp='$CPP $CPPFLAGS' 6234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6236ac_compiler_gnu=$ac_cv_c_compiler_gnu 6237 6238 ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default" 6239if test "x$ac_cv_header_libpq_fe_h" = xyes; then : 6240 PG_LIBPQFE=yes 6241else 6242 PG_LIBPQFE=no 6243fi 6244 6245 6246 ac_ext=c 6247ac_cpp='$CPP $CPPFLAGS' 6248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6250ac_compiler_gnu=$ac_cv_c_compiler_gnu 6251 6252 6253 if test "$PG_LIBPQ" = "yes" 6254 then 6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PostgreSQL in ${PG_HOME}" >&5 6256$as_echo_n "checking PostgreSQL in ${PG_HOME}... " >&6; } 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6258$as_echo "ok" >&6; } 6259 else 6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PostgreSQL in ${PG_HOME}" >&5 6261$as_echo_n "checking PostgreSQL in ${PG_HOME}... " >&6; } 6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6263$as_echo "failed" >&6; } 6264 LDFLAGS="$PGSQL_OLD_LDFLAGS" 6265 CPPFLAGS="$PGSQL_OLD_CPPFLAGS" 6266 as_fn_error $? "you must specify a valid PostgreSQL 8.4+ installation with --with-pgsql=DIR" "$LINENO" 5 6267 fi 6268 6269 if test "$PG_SSL" = "yes" 6270 then 6271 CPPFLAGS="$CPPFLAGS -DPG_SSL" 6272 fi 6273 if test "$HAVE_CONNINFO_PARSE" = "yes" 6274 then 6275 CPPFLAGS="$CPPFLAGS -DHAVE_CONNINFO_PARSE" 6276 fi 6277 if test "$HAVE_DATABASEDESIGNER" = "yes" 6278 then 6279 CPPFLAGS="$CPPFLAGS -DDATABASEDESIGNER" 6280 fi 6281 6282 # Avoid linking with things we don't need. Really this is a hack 6283 # to prevent png2c linking with libpq with gcc on non-OSX OSs 6284 if test "$SUN_CC_COMPILER" != "yes" 6285 then 6286 case "${host}" in 6287 *-apple-darwin*) 6288 ;; 6289 *solaris*) 6290 LDFLAGS="$LDFLAGS" 6291 ;; 6292 *) 6293 LDFLAGS="$LDFLAGS -Wl,-as-needed" 6294 ;; 6295 esac 6296 fi 6297 fi 6298 6299 6300 if test "$BUILD_STATIC" = "yes" 6301 then 6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQgetOutResult in libpq.a" >&5 6303$as_echo_n "checking for PQgetOutResult in libpq.a... " >&6; } 6304 if test "$(nm ${PG_LIB}/libpq.a | grep -c PQgetOutResult)" -gt 0 6305 then 6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5 6307$as_echo "present" >&6; } 6308 EDB_LIBPQ="yes" 6309 else 6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5 6311$as_echo "not present" >&6; } 6312 EDB_LIBPQ="no" 6313 fi 6314 else 6315 6316 ac_ext=c 6317ac_cpp='$CPP $CPPFLAGS' 6318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6320ac_compiler_gnu=$ac_cv_c_compiler_gnu 6321 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQgetOutResult in -lpq" >&5 6323$as_echo_n "checking for PQgetOutResult in -lpq... " >&6; } 6324if ${ac_cv_lib_pq_PQgetOutResult+:} false; then : 6325 $as_echo_n "(cached) " >&6 6326else 6327 ac_check_lib_save_LIBS=$LIBS 6328LIBS="-lpq $LIBS" 6329cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6330/* end confdefs.h. */ 6331 6332/* Override any GCC internal prototype to avoid an error. 6333 Use char because int might match the return type of a GCC 6334 builtin and then its argument prototype would still apply. */ 6335#ifdef __cplusplus 6336extern "C" 6337#endif 6338char PQgetOutResult (); 6339int 6340main () 6341{ 6342return PQgetOutResult (); 6343 ; 6344 return 0; 6345} 6346_ACEOF 6347if ac_fn_c_try_link "$LINENO"; then : 6348 ac_cv_lib_pq_PQgetOutResult=yes 6349else 6350 ac_cv_lib_pq_PQgetOutResult=no 6351fi 6352rm -f core conftest.err conftest.$ac_objext \ 6353 conftest$ac_exeext conftest.$ac_ext 6354LIBS=$ac_check_lib_save_LIBS 6355fi 6356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQgetOutResult" >&5 6357$as_echo "$ac_cv_lib_pq_PQgetOutResult" >&6; } 6358if test "x$ac_cv_lib_pq_PQgetOutResult" = xyes; then : 6359 EDB_LIBPQ=yes 6360else 6361 EDB_LIBPQ=no 6362fi 6363 6364 ac_ext=c 6365ac_cpp='$CPP $CPPFLAGS' 6366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6368ac_compiler_gnu=$ac_cv_c_compiler_gnu 6369 6370 fi 6371 6372 if test x$EDB_LIBPQ = xyes; then 6373 EDB_LIBPQ_TRUE= 6374 EDB_LIBPQ_FALSE='#' 6375else 6376 EDB_LIBPQ_TRUE='#' 6377 EDB_LIBPQ_FALSE= 6378fi 6379 6380 6381 6382 6383# Check whether --with-arch-i386 was given. 6384if test "${with_arch_i386+set}" = set; then : 6385 withval=$with_arch_i386; 6386 if test "$withval" = "yes" 6387 then 6388 OSX_ARCH="$OSX_ARCH -arch i386" 6389 fi 6390 6391fi 6392 6393 6394 6395# Check whether --with-arch-x86_64 was given. 6396if test "${with_arch_x86_64+set}" = set; then : 6397 withval=$with_arch_x86_64; 6398 if test "$withval" = "yes" 6399 then 6400 OSX_ARCH="$OSX_ARCH -arch x86_64" 6401 fi 6402 6403fi 6404 6405 6406 6407# Check whether --with-arch-ppc was given. 6408if test "${with_arch_ppc+set}" = set; then : 6409 withval=$with_arch_ppc; 6410 if test "$withval" = "yes" 6411 then 6412 OSX_ARCH="$OSX_ARCH -arch ppc" 6413 fi 6414 6415fi 6416 6417 6418 6419# Check whether --with-arch-ppc64 was given. 6420if test "${with_arch_ppc64+set}" = set; then : 6421 withval=$with_arch_ppc64; 6422 if test "$withval" = "yes" 6423 then 6424 OSX_ARCH="$OSX_ARCH -arch ppc64" 6425 fi 6426 6427fi 6428 6429 6430 6431 6432# Check whether --with-wx-version was given. 6433if test "${with_wx_version+set}" = set; then : 6434 withval=$with_wx_version; 6435 if test "$withval" = yes; then 6436 as_fn_error $? "you must specify a version number when using --with-wx-version=<version number>" "$LINENO" 5 6437 else 6438 if test -z "$withval"; then 6439 as_fn_error $? "you must specify a version number when using --with-wx-version=<version number>" "$LINENO" 5 6440 else 6441 WX_VERSION="$withval" 6442 fi 6443 fi 6444 6445else 6446 6447 WX_VERSION="2.8" 6448 6449fi 6450 6451 6452 6453 6454# Check whether --with-wx was given. 6455if test "${with_wx+set}" = set; then : 6456 withval=$with_wx; 6457 if test "$withval" != no 6458 then 6459 WX_HOME="$withval" 6460 if test ! -f "${WX_HOME}/bin/wxgtk3u-3.0-config" 6461 then 6462 as_fn_error $? "Could not find your wxWidgets installation in ${WX_HOME}" "$LINENO" 5 6463 fi 6464 6465 fi 6466 WX_CONFIG=${WX_HOME}/bin/wxgtk3u-3.0-config 6467 6468else 6469 6470 WX_HOME=/usr/local/wx2 6471 if test ! -f "${WX_HOME}/bin/wxgtk3u-3.0-config" 6472 then 6473 WX_HOME=/usr/local 6474 if test ! -f "${WX_HOME}/bin/wxgtk3u-3.0-config" 6475 then 6476 WX_HOME=/usr 6477 if test ! -f "${WX_HOME}/bin/wxgtk3u-3.0-config" 6478 then 6479 # Search the path 6480 for ac_prog in wx-config 6481do 6482 # Extract the first word of "$ac_prog", so it can be a program name with args. 6483set dummy $ac_prog; ac_word=$2 6484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6485$as_echo_n "checking for $ac_word... " >&6; } 6486if ${ac_cv_path_WX_CONFIG+:} false; then : 6487 $as_echo_n "(cached) " >&6 6488else 6489 case $WX_CONFIG in 6490 [\\/]* | ?:[\\/]*) 6491 ac_cv_path_WX_CONFIG="$WX_CONFIG" # Let the user override the test with a path. 6492 ;; 6493 *) 6494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6495for as_dir in $PATH 6496do 6497 IFS=$as_save_IFS 6498 test -z "$as_dir" && as_dir=. 6499 for ac_exec_ext in '' $ac_executable_extensions; do 6500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6501 ac_cv_path_WX_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6503 break 2 6504 fi 6505done 6506 done 6507IFS=$as_save_IFS 6508 6509 ;; 6510esac 6511fi 6512WX_CONFIG=$ac_cv_path_WX_CONFIG 6513if test -n "$WX_CONFIG"; then 6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG" >&5 6515$as_echo "$WX_CONFIG" >&6; } 6516else 6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6518$as_echo "no" >&6; } 6519fi 6520 6521 6522 test -n "$WX_CONFIG" && break 6523done 6524 6525 if test ! -f "${WX_CONFIG}" 6526 then 6527 as_fn_error $? "Could not find your wxWidgets installation. You might need to use the --with-wx=DIR configure option" "$LINENO" 5 6528 else 6529 WX_HOME=`${WX_CONFIG} --prefix` 6530 fi 6531 fi 6532 fi 6533 fi 6534 WX_CONFIG=${WX_HOME}/bin/wxgtk3u-3.0-config 6535 6536fi 6537 6538 6539 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking wxWidgets version" >&5 6541$as_echo_n "checking wxWidgets version... " >&6; } 6542 TMP_WX_VERSION=`${WX_CONFIG} --version=${WX_VERSION} --version 2> /dev/null` 6543 if test "$TMP_WX_VERSION" = "" 6544 then 6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6546$as_echo "failed" >&6; } 6547 as_fn_error $? "The version of wxWidgets required (${WX_VERSION}) is not supported by the installations in ${WX_HOME}." "$LINENO" 5 6548 fi 6549 WX_MAJOR=`expr ${TMP_WX_VERSION} : '\([0-9]*\)'` 6550 WX_MINOR=`expr ${TMP_WX_VERSION} : '[0-9]*\.\([0-9]*\)'` 6551 if test "$WX_MAJOR" -lt 2; then 6552 as_fn_error $? "wxWidgets 2.8.0 or newer is required to build pgAdmin" "$LINENO" 5 6553 fi 6554 if test "$WX_MAJOR" -eq 2 && test "$WX_MINOR" -lt 8; then 6555 as_fn_error $? "wxWidgets 2.8.0 or newer is required to build pgAdmin" "$LINENO" 5 6556 fi 6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6558$as_echo "ok" >&6; } 6559 6560 6561 if test -n "${WX_HOME}" 6562 then 6563 LDFLAGS="$LDFLAGS -L${WX_HOME}/lib" 6564 WX_OLD_LDFLAGS="$LDFLAGS" 6565 WX_OLD_CPPFLAGS="$CPPFLAGS" 6566 6567 if test "$BUILD_DEBUG" = yes 6568 then 6569 WX_NEW_CPPFLAGS=`${WX_CONFIG} --cppflags --unicode=yes --debug=yes --version=${WX_VERSION} 2> /dev/null` 6570 CPPFLAGS="$CPPFLAGS $WX_NEW_CPPFLAGS" 6571 CFLAGS=`echo $CFLAGS | sed -e "s/-O2/-O0/g"` 6572 CXXFLAGS=`echo $CXXFLAGS | sed -e "s/-O2/-O0/g"` 6573 6574 pgadmin3_LDADD=`${WX_CONFIG} ${WX_STATIC} --libs std,stc,aui --unicode=yes --debug=yes --version=${WX_VERSION} 2> /dev/null` 6575 pgsTest_LDADD=`${WX_CONFIG} ${WX_STATIC} --libs base,core,xml --unicode=yes --debug=yes --version=${WX_VERSION} 2> /dev/null` 6576 pgScript_LDADD=`${WX_CONFIG} ${WX_STATIC} --libs base,core,xml --unicode=yes --debug=yes --version=${WX_VERSION} 2> /dev/null` 6577 else 6578 WX_NEW_CPPFLAGS=`${WX_CONFIG} --cppflags --unicode=yes --debug=no --version=${WX_VERSION} 2> /dev/null` 6579 CPPFLAGS="$CPPFLAGS $WX_NEW_CPPFLAGS -DEMBED_XRC" 6580 CFLAGS=`echo $CFLAGS | sed -e "s/-g //g"` 6581 CXXFLAGS=`echo $CXXFLAGS | sed -e "s/-g //g"` 6582 6583 pgadmin3_LDADD=`${WX_CONFIG} ${WX_STATIC} --libs std,stc,aui --unicode=yes --debug=no --version=${WX_VERSION} 2> /dev/null` 6584 pgsTest_LDADD=`${WX_CONFIG} ${WX_STATIC} --libs base,core,xml --unicode=yes --debug=no --version=${WX_VERSION} 2> /dev/null` 6585 pgScript_LDADD=`${WX_CONFIG} ${WX_STATIC} --libs base,core,xml --unicode=yes --debug=no --version=${WX_VERSION} 2> /dev/null` 6586 fi 6587 6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking wxWidgets in ${WX_HOME}" >&5 6589$as_echo_n "checking wxWidgets in ${WX_HOME}... " >&6; } 6590 if test "$WX_NEW_CPPFLAGS" = "" -o "$pgadmin3_LDADD" = "" 6591 then 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6593$as_echo "failed" >&6; } 6594 as_fn_error $? "Your wxWidgets installation cannot support pgAdmin in the selected configuration. This may be because it was configured without the --enable-unicode option, or the combination of dynamic/static linking and debug/non-debug libraries selected did not match any installed wxWidgets libraries." "$LINENO" 5 6595 else 6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6597$as_echo "ok" >&6; } 6598 fi 6599 6600 case "${host}" in 6601 *-apple-darwin*) 6602 6603 # Use the default arch if none is specified. 6604 if test "$OSX_ARCH" = "" 6605 then 6606 OSX_ARCH="-arch `uname -p`" 6607 fi 6608 6609 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 6610 CPPFLAGS="$CPPFLAGS $OSX_ARCH" 6611 6612 # Strip any existing arch flags from LDFLAGS and add the desired ones 6613 # This is required as wxWidgets 2.8 (but not 2.9) includes the arch flags 6614 # in it's --libs output. 6615 pgadmin3_LDADD=`echo $pgadmin3_LDADD | sed -e "s/-arch ppc//g" -e "s/-arch i386//g" -e "s/-arch x86_64//g" -e "s/-arch ppc64//g"` 6616 pgadmin3_LDADD="$pgadmin3_LDADD $OSX_ARCH" 6617 pgsTest_LDADD=`echo $pgsTest_LDADD | sed -e "s/-arch ppc//g" -e "s/-arch i386//g" -e "s/-arch x86_64//g" -e "s/-arch ppc64//g"` 6618 pgsTest_LDADD="$pgsTest_LDADD $OSX_ARCH" 6619 pgScript_LDADD=`echo $pgScript_LDADD | sed -e "s/-arch ppc//g" -e "s/-arch i386//g" -e "s/-arch x86_64//g" -e "s/-arch ppc64//g"` 6620 pgScript_LDADD="$pgScript_LDADD $OSX_ARCH" 6621 png2c_LDADD="$OSX_ARCH" 6622 6623 ;; 6624 *solaris*) 6625 LDFLAGS="$LDFLAGS -lnsl" 6626 ;; 6627 *) 6628 ;; 6629 esac 6630 fi 6631 6632 6633 6634 6635# Check whether --with-libxml2 was given. 6636if test "${with_libxml2+set}" = set; then : 6637 withval=$with_libxml2; 6638 if test "$withval" != no 6639 then 6640 XML2_HOME="$withval" 6641 if test ! -f "${XML2_HOME}/bin/xml2-config" 6642 then 6643 as_fn_error $? "Could not find your libxml2 installation in ${XML2_HOME}" "$LINENO" 5 6644 fi 6645 fi 6646 XML2_CONFIG=${XML2_HOME}/bin/xml2-config 6647 6648else 6649 6650 XML2_HOME=/usr/local 6651 if test ! -f "${XML2_HOME}/bin/xml2-config" 6652 then 6653 6654 XML2_HOME=/usr 6655 if test ! -f "${XML2_HOME}/bin/xml2-config" 6656 then 6657 XML2_HOME=/mingw 6658 if test ! -f "${XML2_HOME}/bin/xml2-config" 6659 then 6660 # Search the path 6661 for ac_prog in xml2-config 6662do 6663 # Extract the first word of "$ac_prog", so it can be a program name with args. 6664set dummy $ac_prog; ac_word=$2 6665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6666$as_echo_n "checking for $ac_word... " >&6; } 6667if ${ac_cv_path_XML2_CONFIG+:} false; then : 6668 $as_echo_n "(cached) " >&6 6669else 6670 case $XML2_CONFIG in 6671 [\\/]* | ?:[\\/]*) 6672 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path. 6673 ;; 6674 *) 6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6676for as_dir in $PATH 6677do 6678 IFS=$as_save_IFS 6679 test -z "$as_dir" && as_dir=. 6680 for ac_exec_ext in '' $ac_executable_extensions; do 6681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6682 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6684 break 2 6685 fi 6686done 6687 done 6688IFS=$as_save_IFS 6689 6690 ;; 6691esac 6692fi 6693XML2_CONFIG=$ac_cv_path_XML2_CONFIG 6694if test -n "$XML2_CONFIG"; then 6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5 6696$as_echo "$XML2_CONFIG" >&6; } 6697else 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6699$as_echo "no" >&6; } 6700fi 6701 6702 6703 test -n "$XML2_CONFIG" && break 6704done 6705 6706 if test ! -f "${XML2_CONFIG}" 6707 then 6708 as_fn_error $? "Could not find your libxml2 installation. You might need to use the --with-libxml2=DIR configure option" "$LINENO" 5 6709 else 6710 XML2_HOME=`${XML2_CONFIG} --prefix` 6711 fi 6712 fi 6713 fi 6714 fi 6715 XML2_CONFIG=${XML2_HOME}/bin/xml2-config 6716 6717fi 6718 6719 6720 6721 if test -n "${XML2_HOME}" 6722 then 6723 XML2_CFLAGS=`${XML2_CONFIG} --cflags` 6724 XML2_LIBS=`${XML2_CONFIG} --libs` 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 in ${XML2_HOME}" >&5 6726$as_echo_n "checking libxml2 in ${XML2_HOME}... " >&6; } 6727 if test "${XML2_CFLAGS}" = "" -o "${XML2_LIBS}" = "" 6728 then 6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6730$as_echo "failed" >&6; } 6731 as_fn_error $? "Your libxml2 installation does not appear to be complete" "$LINENO" 5 6732 else 6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6734$as_echo "ok" >&6; } 6735 CPPFLAGS="$CPPFLAGS $XML2_CFLAGS" 6736 pgadmin3_LDADD="${pgadmin3_LDADD} $XML2_LIBS" 6737 fi 6738 fi 6739 6740 6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 version" >&5 6742$as_echo_n "checking libxml2 version... " >&6; } 6743 XML2_VERSION=`${XML2_CONFIG} --version` 6744 XML2_MAJOR=`expr ${XML2_VERSION} : '\([0-9]*\)'` 6745 XML2_MINOR=`expr ${XML2_VERSION} : '[0-9]*\.\([0-9]*\)'` 6746 XML2_REVISION=`expr ${XML2_VERSION} : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 6747 if test "$XML2_MAJOR" -lt 2; then 6748 as_fn_error $? "libxml2 2.6.18 or newer is required to build pgAdmin" "$LINENO" 5 6749 fi 6750 if test "$XML2_MAJOR" -eq 2 && test "$XML2_MINOR" -lt 6; then 6751 as_fn_error $? "libxml2 2.6.18 or newer is required to build pgAdmin" "$LINENO" 5 6752 fi 6753 if test "$XML2_MAJOR" -eq 2 && test "$XML2_MINOR" -eq 6 && test "$XML2_REVISION" -lt 18; then 6754 as_fn_error $? "libxml2 2.6.18 or newer is required to build pgAdmin" "$LINENO" 5 6755 fi 6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6757$as_echo "ok" >&6; } 6758 6759 6760 6761 6762# Check whether --with-libxslt was given. 6763if test "${with_libxslt+set}" = set; then : 6764 withval=$with_libxslt; 6765 if test "$withval" != no 6766 then 6767 XSLT_HOME="$withval" 6768 if test ! -f "${XSLT_HOME}/bin/xslt-config" 6769 then 6770 as_fn_error $? "Could not find your libxslt installation in ${XSLT_HOME}" "$LINENO" 5 6771 fi 6772 fi 6773 XSLT_CONFIG=${XSLT_HOME}/bin/xslt-config 6774 6775else 6776 6777 XSLT_HOME=/usr/local 6778 if test ! -f "${XSLT_HOME}/bin/xslt-config" 6779 then 6780 6781 XSLT_HOME=/usr 6782 if test ! -f "${XSLT_HOME}/bin/xslt-config" 6783 then 6784 XSLT_HOME=/mingw 6785 if test ! -f "${XSLT_HOME}/bin/xslt-config" 6786 then 6787 # Search the path 6788 for ac_prog in xslt-config 6789do 6790 # Extract the first word of "$ac_prog", so it can be a program name with args. 6791set dummy $ac_prog; ac_word=$2 6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6793$as_echo_n "checking for $ac_word... " >&6; } 6794if ${ac_cv_path_XSLT_CONFIG+:} false; then : 6795 $as_echo_n "(cached) " >&6 6796else 6797 case $XSLT_CONFIG in 6798 [\\/]* | ?:[\\/]*) 6799 ac_cv_path_XSLT_CONFIG="$XSLT_CONFIG" # Let the user override the test with a path. 6800 ;; 6801 *) 6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6803for as_dir in $PATH 6804do 6805 IFS=$as_save_IFS 6806 test -z "$as_dir" && as_dir=. 6807 for ac_exec_ext in '' $ac_executable_extensions; do 6808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6809 ac_cv_path_XSLT_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6811 break 2 6812 fi 6813done 6814 done 6815IFS=$as_save_IFS 6816 6817 ;; 6818esac 6819fi 6820XSLT_CONFIG=$ac_cv_path_XSLT_CONFIG 6821if test -n "$XSLT_CONFIG"; then 6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT_CONFIG" >&5 6823$as_echo "$XSLT_CONFIG" >&6; } 6824else 6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6826$as_echo "no" >&6; } 6827fi 6828 6829 6830 test -n "$XSLT_CONFIG" && break 6831done 6832 6833 if test ! -f "${XSLT_CONFIG}" 6834 then 6835 as_fn_error $? "Could not find your libxslt installation. You might need to use the --with-libxslt=DIR configure option" "$LINENO" 5 6836 else 6837 XSLT_HOME=`${XSLT_CONFIG} --prefix` 6838 fi 6839 fi 6840 fi 6841 fi 6842 XSLT_CONFIG=${XSLT_HOME}/bin/xslt-config 6843 6844fi 6845 6846 6847 6848 if test -n "${XSLT_HOME}" 6849 then 6850 XSLT_CFLAGS=`${XSLT_CONFIG} --cflags` 6851 XSLT_LIBS=`${XSLT_CONFIG} --libs` 6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxslt in ${XSLT_HOME}" >&5 6853$as_echo_n "checking libxslt in ${XSLT_HOME}... " >&6; } 6854 if test "${XSLT_CFLAGS}" = "" -o "${XSLT_LIBS}" = "" 6855 then 6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6857$as_echo "failed" >&6; } 6858 as_fn_error $? "Your libxslt installation does not appear to be complete" "$LINENO" 5 6859 else 6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6861$as_echo "ok" >&6; } 6862 CPPFLAGS="$CPPFLAGS $XSLT_CFLAGS" 6863 pgadmin3_LDADD="${pgadmin3_LDADD} $XSLT_LIBS" 6864 fi 6865 fi 6866 6867 6868# Configure parameters 6869 6870# Check whether --with-libgcrypt was given. 6871if test "${with_libgcrypt+set}" = set; then : 6872 withval=$with_libgcrypt; use_libgcrypt=$withval 6873else 6874 use_libgcrypt=auto 6875fi 6876 6877 6878# Check whether --with-openssl was given. 6879if test "${with_openssl+set}" = set; then : 6880 withval=$with_openssl; use_openssl=$withval 6881else 6882 use_openssl=auto 6883fi 6884 6885 6886# Check whether --with-libz was given. 6887if test "${with_libz+set}" = set; then : 6888 withval=$with_libz; use_libz=$withval 6889else 6890 use_libz=auto 6891fi 6892 6893 6894# Look for OpenSSL (default) 6895if test "$use_openssl" != "no" && test "$use_libgcrypt" != "yes"; then 6896 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" 6897if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : 6898 6899else 6900 as_fn_error $? "Couldn't find openssl/ssl.h...install the OpenSSL devel package " "$LINENO" 5 6901fi 6902 6903 6904 6905 if test "X$prefix" = "XNONE"; then 6906 acl_final_prefix="$ac_default_prefix" 6907 else 6908 acl_final_prefix="$prefix" 6909 fi 6910 if test "X$exec_prefix" = "XNONE"; then 6911 acl_final_exec_prefix='${prefix}' 6912 else 6913 acl_final_exec_prefix="$exec_prefix" 6914 fi 6915 acl_save_prefix="$prefix" 6916 prefix="$acl_final_prefix" 6917 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 6918 prefix="$acl_save_prefix" 6919 6920 6921# Check whether --with-gnu-ld was given. 6922if test "${with_gnu_ld+set}" = set; then : 6923 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6924else 6925 with_gnu_ld=no 6926fi 6927 6928# Prepare PATH_SEPARATOR. 6929# The user is always right. 6930if test "${PATH_SEPARATOR+set}" != set; then 6931 echo "#! /bin/sh" >conf$$.sh 6932 echo "exit 0" >>conf$$.sh 6933 chmod +x conf$$.sh 6934 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6935 PATH_SEPARATOR=';' 6936 else 6937 PATH_SEPARATOR=: 6938 fi 6939 rm -f conf$$.sh 6940fi 6941ac_prog=ld 6942if test "$GCC" = yes; then 6943 # Check if gcc -print-prog-name=ld gives a path. 6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 6945$as_echo_n "checking for ld used by GCC... " >&6; } 6946 case $host in 6947 *-*-mingw*) 6948 # gcc leaves a trailing carriage return which upsets mingw 6949 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6950 *) 6951 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6952 esac 6953 case $ac_prog in 6954 # Accept absolute paths. 6955 [\\/]* | [A-Za-z]:[\\/]*) 6956 re_direlt='/[^/][^/]*/\.\./' 6957 # Canonicalize the path of ld 6958 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 6959 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 6960 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 6961 done 6962 test -z "$LD" && LD="$ac_prog" 6963 ;; 6964 "") 6965 # If it fails, then pretend we aren't using GCC. 6966 ac_prog=ld 6967 ;; 6968 *) 6969 # If it is relative, then search for the first ld in PATH. 6970 with_gnu_ld=unknown 6971 ;; 6972 esac 6973elif test "$with_gnu_ld" = yes; then 6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6975$as_echo_n "checking for GNU ld... " >&6; } 6976else 6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6978$as_echo_n "checking for non-GNU ld... " >&6; } 6979fi 6980if ${acl_cv_path_LD+:} false; then : 6981 $as_echo_n "(cached) " >&6 6982else 6983 if test -z "$LD"; then 6984 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 6985 for ac_dir in $PATH; do 6986 test -z "$ac_dir" && ac_dir=. 6987 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6988 acl_cv_path_LD="$ac_dir/$ac_prog" 6989 # Check to see if the program is GNU ld. I'd rather use --version, 6990 # but apparently some GNU ld's only accept -v. 6991 # Break only if it was the GNU/non-GNU ld that we prefer. 6992 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 6993 *GNU* | *'with BFD'*) 6994 test "$with_gnu_ld" != no && break ;; 6995 *) 6996 test "$with_gnu_ld" != yes && break ;; 6997 esac 6998 fi 6999 done 7000 IFS="$ac_save_ifs" 7001else 7002 acl_cv_path_LD="$LD" # Let the user override the test with a path. 7003fi 7004fi 7005 7006LD="$acl_cv_path_LD" 7007if test -n "$LD"; then 7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7009$as_echo "$LD" >&6; } 7010else 7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7012$as_echo "no" >&6; } 7013fi 7014test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7016$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7017if ${acl_cv_prog_gnu_ld+:} false; then : 7018 $as_echo_n "(cached) " >&6 7019else 7020 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 7021case `$LD -v 2>&1 </dev/null` in 7022*GNU* | *'with BFD'*) 7023 acl_cv_prog_gnu_ld=yes ;; 7024*) 7025 acl_cv_prog_gnu_ld=no ;; 7026esac 7027fi 7028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 7029$as_echo "$acl_cv_prog_gnu_ld" >&6; } 7030with_gnu_ld=$acl_cv_prog_gnu_ld 7031 7032 7033 7034 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 7036$as_echo_n "checking for shared library run path origin... " >&6; } 7037if ${acl_cv_rpath+:} false; then : 7038 $as_echo_n "(cached) " >&6 7039else 7040 7041 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 7042 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 7043 . ./conftest.sh 7044 rm -f ./conftest.sh 7045 acl_cv_rpath=done 7046 7047fi 7048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 7049$as_echo "$acl_cv_rpath" >&6; } 7050 wl="$acl_cv_wl" 7051 acl_libext="$acl_cv_libext" 7052 acl_shlibext="$acl_cv_shlibext" 7053 acl_libname_spec="$acl_cv_libname_spec" 7054 acl_library_names_spec="$acl_cv_library_names_spec" 7055 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 7056 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 7057 acl_hardcode_direct="$acl_cv_hardcode_direct" 7058 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 7059 # Check whether --enable-rpath was given. 7060if test "${enable_rpath+set}" = set; then : 7061 enableval=$enable_rpath; : 7062else 7063 enable_rpath=yes 7064fi 7065 7066 7067 7068 acl_libdirstem=lib 7069 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 7070 if test -n "$searchpath"; then 7071 acl_save_IFS="${IFS= }"; IFS=":" 7072 for searchdir in $searchpath; do 7073 if test -d "$searchdir"; then 7074 case "$searchdir" in 7075 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 7076 *) searchdir=`cd "$searchdir" && pwd` 7077 case "$searchdir" in 7078 */lib64 ) acl_libdirstem=lib64 ;; 7079 esac ;; 7080 esac 7081 fi 7082 done 7083 IFS="$acl_save_IFS" 7084 fi 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 use_additional=yes 7097 7098 acl_save_prefix="$prefix" 7099 prefix="$acl_final_prefix" 7100 acl_save_exec_prefix="$exec_prefix" 7101 exec_prefix="$acl_final_exec_prefix" 7102 7103 eval additional_includedir=\"$includedir\" 7104 eval additional_libdir=\"$libdir\" 7105 7106 exec_prefix="$acl_save_exec_prefix" 7107 prefix="$acl_save_prefix" 7108 7109 7110# Check whether --with-libssl-prefix was given. 7111if test "${with_libssl_prefix+set}" = set; then : 7112 withval=$with_libssl_prefix; 7113 if test "X$withval" = "Xno"; then 7114 use_additional=no 7115 else 7116 if test "X$withval" = "X"; then 7117 7118 acl_save_prefix="$prefix" 7119 prefix="$acl_final_prefix" 7120 acl_save_exec_prefix="$exec_prefix" 7121 exec_prefix="$acl_final_exec_prefix" 7122 7123 eval additional_includedir=\"$includedir\" 7124 eval additional_libdir=\"$libdir\" 7125 7126 exec_prefix="$acl_save_exec_prefix" 7127 prefix="$acl_save_prefix" 7128 7129 else 7130 additional_includedir="$withval/include" 7131 additional_libdir="$withval/$acl_libdirstem" 7132 fi 7133 fi 7134 7135fi 7136 7137 LIBSSL= 7138 LTLIBSSL= 7139 INCSSL= 7140 LIBSSL_PREFIX= 7141 rpathdirs= 7142 ltrpathdirs= 7143 names_already_handled= 7144 names_next_round='ssl crypto' 7145 while test -n "$names_next_round"; do 7146 names_this_round="$names_next_round" 7147 names_next_round= 7148 for name in $names_this_round; do 7149 already_handled= 7150 for n in $names_already_handled; do 7151 if test "$n" = "$name"; then 7152 already_handled=yes 7153 break 7154 fi 7155 done 7156 if test -z "$already_handled"; then 7157 names_already_handled="$names_already_handled $name" 7158 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 7159 eval value=\"\$HAVE_LIB$uppername\" 7160 if test -n "$value"; then 7161 if test "$value" = yes; then 7162 eval value=\"\$LIB$uppername\" 7163 test -z "$value" || LIBSSL="${LIBSSL}${LIBSSL:+ }$value" 7164 eval value=\"\$LTLIB$uppername\" 7165 test -z "$value" || LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }$value" 7166 else 7167 : 7168 fi 7169 else 7170 found_dir= 7171 found_la= 7172 found_so= 7173 found_a= 7174 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 7175 if test -n "$acl_shlibext"; then 7176 shrext=".$acl_shlibext" # typically: shrext=.so 7177 else 7178 shrext= 7179 fi 7180 if test $use_additional = yes; then 7181 dir="$additional_libdir" 7182 if test -n "$acl_shlibext"; then 7183 if test -f "$dir/$libname$shrext"; then 7184 found_dir="$dir" 7185 found_so="$dir/$libname$shrext" 7186 else 7187 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 7188 ver=`(cd "$dir" && \ 7189 for f in "$libname$shrext".*; do echo "$f"; done \ 7190 | sed -e "s,^$libname$shrext\\\\.,," \ 7191 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 7192 | sed 1q ) 2>/dev/null` 7193 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 7194 found_dir="$dir" 7195 found_so="$dir/$libname$shrext.$ver" 7196 fi 7197 else 7198 eval library_names=\"$acl_library_names_spec\" 7199 for f in $library_names; do 7200 if test -f "$dir/$f"; then 7201 found_dir="$dir" 7202 found_so="$dir/$f" 7203 break 7204 fi 7205 done 7206 fi 7207 fi 7208 fi 7209 if test "X$found_dir" = "X"; then 7210 if test -f "$dir/$libname.$acl_libext"; then 7211 found_dir="$dir" 7212 found_a="$dir/$libname.$acl_libext" 7213 fi 7214 fi 7215 if test "X$found_dir" != "X"; then 7216 if test -f "$dir/$libname.la"; then 7217 found_la="$dir/$libname.la" 7218 fi 7219 fi 7220 fi 7221 if test "X$found_dir" = "X"; then 7222 for x in $LDFLAGS $LTLIBSSL; do 7223 7224 acl_save_prefix="$prefix" 7225 prefix="$acl_final_prefix" 7226 acl_save_exec_prefix="$exec_prefix" 7227 exec_prefix="$acl_final_exec_prefix" 7228 eval x=\"$x\" 7229 exec_prefix="$acl_save_exec_prefix" 7230 prefix="$acl_save_prefix" 7231 7232 case "$x" in 7233 -L*) 7234 dir=`echo "X$x" | sed -e 's/^X-L//'` 7235 if test -n "$acl_shlibext"; then 7236 if test -f "$dir/$libname$shrext"; then 7237 found_dir="$dir" 7238 found_so="$dir/$libname$shrext" 7239 else 7240 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 7241 ver=`(cd "$dir" && \ 7242 for f in "$libname$shrext".*; do echo "$f"; done \ 7243 | sed -e "s,^$libname$shrext\\\\.,," \ 7244 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 7245 | sed 1q ) 2>/dev/null` 7246 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 7247 found_dir="$dir" 7248 found_so="$dir/$libname$shrext.$ver" 7249 fi 7250 else 7251 eval library_names=\"$acl_library_names_spec\" 7252 for f in $library_names; do 7253 if test -f "$dir/$f"; then 7254 found_dir="$dir" 7255 found_so="$dir/$f" 7256 break 7257 fi 7258 done 7259 fi 7260 fi 7261 fi 7262 if test "X$found_dir" = "X"; then 7263 if test -f "$dir/$libname.$acl_libext"; then 7264 found_dir="$dir" 7265 found_a="$dir/$libname.$acl_libext" 7266 fi 7267 fi 7268 if test "X$found_dir" != "X"; then 7269 if test -f "$dir/$libname.la"; then 7270 found_la="$dir/$libname.la" 7271 fi 7272 fi 7273 ;; 7274 esac 7275 if test "X$found_dir" != "X"; then 7276 break 7277 fi 7278 done 7279 fi 7280 if test "X$found_dir" != "X"; then 7281 LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-L$found_dir -l$name" 7282 if test "X$found_so" != "X"; then 7283 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then 7284 LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so" 7285 else 7286 haveit= 7287 for x in $ltrpathdirs; do 7288 if test "X$x" = "X$found_dir"; then 7289 haveit=yes 7290 break 7291 fi 7292 done 7293 if test -z "$haveit"; then 7294 ltrpathdirs="$ltrpathdirs $found_dir" 7295 fi 7296 if test "$acl_hardcode_direct" = yes; then 7297 LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so" 7298 else 7299 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 7300 LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so" 7301 haveit= 7302 for x in $rpathdirs; do 7303 if test "X$x" = "X$found_dir"; then 7304 haveit=yes 7305 break 7306 fi 7307 done 7308 if test -z "$haveit"; then 7309 rpathdirs="$rpathdirs $found_dir" 7310 fi 7311 else 7312 haveit= 7313 for x in $LDFLAGS $LIBSSL; do 7314 7315 acl_save_prefix="$prefix" 7316 prefix="$acl_final_prefix" 7317 acl_save_exec_prefix="$exec_prefix" 7318 exec_prefix="$acl_final_exec_prefix" 7319 eval x=\"$x\" 7320 exec_prefix="$acl_save_exec_prefix" 7321 prefix="$acl_save_prefix" 7322 7323 if test "X$x" = "X-L$found_dir"; then 7324 haveit=yes 7325 break 7326 fi 7327 done 7328 if test -z "$haveit"; then 7329 LIBSSL="${LIBSSL}${LIBSSL:+ }-L$found_dir" 7330 fi 7331 if test "$acl_hardcode_minus_L" != no; then 7332 LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so" 7333 else 7334 LIBSSL="${LIBSSL}${LIBSSL:+ }-l$name" 7335 fi 7336 fi 7337 fi 7338 fi 7339 else 7340 if test "X$found_a" != "X"; then 7341 LIBSSL="${LIBSSL}${LIBSSL:+ }$found_a" 7342 else 7343 LIBSSL="${LIBSSL}${LIBSSL:+ }-L$found_dir -l$name" 7344 fi 7345 fi 7346 additional_includedir= 7347 case "$found_dir" in 7348 */$acl_libdirstem | */$acl_libdirstem/) 7349 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 7350 LIBSSL_PREFIX="$basedir" 7351 additional_includedir="$basedir/include" 7352 ;; 7353 esac 7354 if test "X$additional_includedir" != "X"; then 7355 if test "X$additional_includedir" != "X/usr/include"; then 7356 haveit= 7357 if test "X$additional_includedir" = "X/usr/local/include"; then 7358 if test -n "$GCC"; then 7359 case $host_os in 7360 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 7361 esac 7362 fi 7363 fi 7364 if test -z "$haveit"; then 7365 for x in $CPPFLAGS $INCSSL; do 7366 7367 acl_save_prefix="$prefix" 7368 prefix="$acl_final_prefix" 7369 acl_save_exec_prefix="$exec_prefix" 7370 exec_prefix="$acl_final_exec_prefix" 7371 eval x=\"$x\" 7372 exec_prefix="$acl_save_exec_prefix" 7373 prefix="$acl_save_prefix" 7374 7375 if test "X$x" = "X-I$additional_includedir"; then 7376 haveit=yes 7377 break 7378 fi 7379 done 7380 if test -z "$haveit"; then 7381 if test -d "$additional_includedir"; then 7382 INCSSL="${INCSSL}${INCSSL:+ }-I$additional_includedir" 7383 fi 7384 fi 7385 fi 7386 fi 7387 fi 7388 if test -n "$found_la"; then 7389 save_libdir="$libdir" 7390 case "$found_la" in 7391 */* | *\\*) . "$found_la" ;; 7392 *) . "./$found_la" ;; 7393 esac 7394 libdir="$save_libdir" 7395 for dep in $dependency_libs; do 7396 case "$dep" in 7397 -L*) 7398 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 7399 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 7400 haveit= 7401 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 7402 if test -n "$GCC"; then 7403 case $host_os in 7404 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 7405 esac 7406 fi 7407 fi 7408 if test -z "$haveit"; then 7409 haveit= 7410 for x in $LDFLAGS $LIBSSL; do 7411 7412 acl_save_prefix="$prefix" 7413 prefix="$acl_final_prefix" 7414 acl_save_exec_prefix="$exec_prefix" 7415 exec_prefix="$acl_final_exec_prefix" 7416 eval x=\"$x\" 7417 exec_prefix="$acl_save_exec_prefix" 7418 prefix="$acl_save_prefix" 7419 7420 if test "X$x" = "X-L$additional_libdir"; then 7421 haveit=yes 7422 break 7423 fi 7424 done 7425 if test -z "$haveit"; then 7426 if test -d "$additional_libdir"; then 7427 LIBSSL="${LIBSSL}${LIBSSL:+ }-L$additional_libdir" 7428 fi 7429 fi 7430 haveit= 7431 for x in $LDFLAGS $LTLIBSSL; do 7432 7433 acl_save_prefix="$prefix" 7434 prefix="$acl_final_prefix" 7435 acl_save_exec_prefix="$exec_prefix" 7436 exec_prefix="$acl_final_exec_prefix" 7437 eval x=\"$x\" 7438 exec_prefix="$acl_save_exec_prefix" 7439 prefix="$acl_save_prefix" 7440 7441 if test "X$x" = "X-L$additional_libdir"; then 7442 haveit=yes 7443 break 7444 fi 7445 done 7446 if test -z "$haveit"; then 7447 if test -d "$additional_libdir"; then 7448 LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-L$additional_libdir" 7449 fi 7450 fi 7451 fi 7452 fi 7453 ;; 7454 -R*) 7455 dir=`echo "X$dep" | sed -e 's/^X-R//'` 7456 if test "$enable_rpath" != no; then 7457 haveit= 7458 for x in $rpathdirs; do 7459 if test "X$x" = "X$dir"; then 7460 haveit=yes 7461 break 7462 fi 7463 done 7464 if test -z "$haveit"; then 7465 rpathdirs="$rpathdirs $dir" 7466 fi 7467 haveit= 7468 for x in $ltrpathdirs; do 7469 if test "X$x" = "X$dir"; then 7470 haveit=yes 7471 break 7472 fi 7473 done 7474 if test -z "$haveit"; then 7475 ltrpathdirs="$ltrpathdirs $dir" 7476 fi 7477 fi 7478 ;; 7479 -l*) 7480 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 7481 ;; 7482 *.la) 7483 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 7484 ;; 7485 *) 7486 LIBSSL="${LIBSSL}${LIBSSL:+ }$dep" 7487 LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }$dep" 7488 ;; 7489 esac 7490 done 7491 fi 7492 else 7493 LIBSSL="${LIBSSL}${LIBSSL:+ }-l$name" 7494 LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-l$name" 7495 fi 7496 fi 7497 fi 7498 done 7499 done 7500 if test "X$rpathdirs" != "X"; then 7501 if test -n "$acl_hardcode_libdir_separator"; then 7502 alldirs= 7503 for found_dir in $rpathdirs; do 7504 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 7505 done 7506 acl_save_libdir="$libdir" 7507 libdir="$alldirs" 7508 eval flag=\"$acl_hardcode_libdir_flag_spec\" 7509 libdir="$acl_save_libdir" 7510 LIBSSL="${LIBSSL}${LIBSSL:+ }$flag" 7511 else 7512 for found_dir in $rpathdirs; do 7513 acl_save_libdir="$libdir" 7514 libdir="$found_dir" 7515 eval flag=\"$acl_hardcode_libdir_flag_spec\" 7516 libdir="$acl_save_libdir" 7517 LIBSSL="${LIBSSL}${LIBSSL:+ }$flag" 7518 done 7519 fi 7520 fi 7521 if test "X$ltrpathdirs" != "X"; then 7522 for found_dir in $ltrpathdirs; do 7523 LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-R$found_dir" 7524 done 7525 fi 7526 7527 7528 ac_save_CPPFLAGS="$CPPFLAGS" 7529 7530 for element in $INCSSL; do 7531 haveit= 7532 for x in $CPPFLAGS; do 7533 7534 acl_save_prefix="$prefix" 7535 prefix="$acl_final_prefix" 7536 acl_save_exec_prefix="$exec_prefix" 7537 exec_prefix="$acl_final_exec_prefix" 7538 eval x=\"$x\" 7539 exec_prefix="$acl_save_exec_prefix" 7540 prefix="$acl_save_prefix" 7541 7542 if test "X$x" = "X$element"; then 7543 haveit=yes 7544 break 7545 fi 7546 done 7547 if test -z "$haveit"; then 7548 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 7549 fi 7550 done 7551 7552 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssl" >&5 7554$as_echo_n "checking for libssl... " >&6; } 7555if ${ac_cv_libssl+:} false; then : 7556 $as_echo_n "(cached) " >&6 7557else 7558 7559 ac_save_LIBS="$LIBS" 7560 LIBS="$LIBS $LIBSSL" 7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7562/* end confdefs.h. */ 7563#include <openssl/ssl.h> 7564int 7565main () 7566{ 7567 7568 ; 7569 return 0; 7570} 7571_ACEOF 7572if ac_fn_c_try_link "$LINENO"; then : 7573 ac_cv_libssl=yes 7574else 7575 ac_cv_libssl=no 7576fi 7577rm -f core conftest.err conftest.$ac_objext \ 7578 conftest$ac_exeext conftest.$ac_ext 7579 LIBS="$ac_save_LIBS" 7580 7581fi 7582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libssl" >&5 7583$as_echo "$ac_cv_libssl" >&6; } 7584 if test "$ac_cv_libssl" = yes; then 7585 HAVE_LIBSSL=yes 7586 7587$as_echo "#define HAVE_LIBSSL 1" >>confdefs.h 7588 7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libssl" >&5 7590$as_echo_n "checking how to link with libssl... " >&6; } 7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBSSL" >&5 7592$as_echo "$LIBSSL" >&6; } 7593 else 7594 HAVE_LIBSSL=no 7595 CPPFLAGS="$ac_save_CPPFLAGS" 7596 LIBSSL= 7597 LTLIBSSL= 7598 LIBSSL_PREFIX= 7599 fi 7600 7601 7602 7603 7604 7605 7606 7607 LIBSREQUIRED=libssl,libcrypto 7608fi 7609 7610# Look for libgcrypt 7611if test "$ac_cv_libssl" != "yes" && test "$use_libgcrypt" != "no"; then 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 use_additional=yes 7623 7624 acl_save_prefix="$prefix" 7625 prefix="$acl_final_prefix" 7626 acl_save_exec_prefix="$exec_prefix" 7627 exec_prefix="$acl_final_exec_prefix" 7628 7629 eval additional_includedir=\"$includedir\" 7630 eval additional_libdir=\"$libdir\" 7631 7632 exec_prefix="$acl_save_exec_prefix" 7633 prefix="$acl_save_prefix" 7634 7635 7636# Check whether --with-libgcrypt-prefix was given. 7637if test "${with_libgcrypt_prefix+set}" = set; then : 7638 withval=$with_libgcrypt_prefix; 7639 if test "X$withval" = "Xno"; then 7640 use_additional=no 7641 else 7642 if test "X$withval" = "X"; then 7643 7644 acl_save_prefix="$prefix" 7645 prefix="$acl_final_prefix" 7646 acl_save_exec_prefix="$exec_prefix" 7647 exec_prefix="$acl_final_exec_prefix" 7648 7649 eval additional_includedir=\"$includedir\" 7650 eval additional_libdir=\"$libdir\" 7651 7652 exec_prefix="$acl_save_exec_prefix" 7653 prefix="$acl_save_prefix" 7654 7655 else 7656 additional_includedir="$withval/include" 7657 additional_libdir="$withval/$acl_libdirstem" 7658 fi 7659 fi 7660 7661fi 7662 7663 LIBGCRYPT= 7664 LTLIBGCRYPT= 7665 INCGCRYPT= 7666 LIBGCRYPT_PREFIX= 7667 rpathdirs= 7668 ltrpathdirs= 7669 names_already_handled= 7670 names_next_round='gcrypt ' 7671 while test -n "$names_next_round"; do 7672 names_this_round="$names_next_round" 7673 names_next_round= 7674 for name in $names_this_round; do 7675 already_handled= 7676 for n in $names_already_handled; do 7677 if test "$n" = "$name"; then 7678 already_handled=yes 7679 break 7680 fi 7681 done 7682 if test -z "$already_handled"; then 7683 names_already_handled="$names_already_handled $name" 7684 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 7685 eval value=\"\$HAVE_LIB$uppername\" 7686 if test -n "$value"; then 7687 if test "$value" = yes; then 7688 eval value=\"\$LIB$uppername\" 7689 test -z "$value" || LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$value" 7690 eval value=\"\$LTLIB$uppername\" 7691 test -z "$value" || LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$value" 7692 else 7693 : 7694 fi 7695 else 7696 found_dir= 7697 found_la= 7698 found_so= 7699 found_a= 7700 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 7701 if test -n "$acl_shlibext"; then 7702 shrext=".$acl_shlibext" # typically: shrext=.so 7703 else 7704 shrext= 7705 fi 7706 if test $use_additional = yes; then 7707 dir="$additional_libdir" 7708 if test -n "$acl_shlibext"; then 7709 if test -f "$dir/$libname$shrext"; then 7710 found_dir="$dir" 7711 found_so="$dir/$libname$shrext" 7712 else 7713 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 7714 ver=`(cd "$dir" && \ 7715 for f in "$libname$shrext".*; do echo "$f"; done \ 7716 | sed -e "s,^$libname$shrext\\\\.,," \ 7717 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 7718 | sed 1q ) 2>/dev/null` 7719 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 7720 found_dir="$dir" 7721 found_so="$dir/$libname$shrext.$ver" 7722 fi 7723 else 7724 eval library_names=\"$acl_library_names_spec\" 7725 for f in $library_names; do 7726 if test -f "$dir/$f"; then 7727 found_dir="$dir" 7728 found_so="$dir/$f" 7729 break 7730 fi 7731 done 7732 fi 7733 fi 7734 fi 7735 if test "X$found_dir" = "X"; then 7736 if test -f "$dir/$libname.$acl_libext"; then 7737 found_dir="$dir" 7738 found_a="$dir/$libname.$acl_libext" 7739 fi 7740 fi 7741 if test "X$found_dir" != "X"; then 7742 if test -f "$dir/$libname.la"; then 7743 found_la="$dir/$libname.la" 7744 fi 7745 fi 7746 fi 7747 if test "X$found_dir" = "X"; then 7748 for x in $LDFLAGS $LTLIBGCRYPT; do 7749 7750 acl_save_prefix="$prefix" 7751 prefix="$acl_final_prefix" 7752 acl_save_exec_prefix="$exec_prefix" 7753 exec_prefix="$acl_final_exec_prefix" 7754 eval x=\"$x\" 7755 exec_prefix="$acl_save_exec_prefix" 7756 prefix="$acl_save_prefix" 7757 7758 case "$x" in 7759 -L*) 7760 dir=`echo "X$x" | sed -e 's/^X-L//'` 7761 if test -n "$acl_shlibext"; then 7762 if test -f "$dir/$libname$shrext"; then 7763 found_dir="$dir" 7764 found_so="$dir/$libname$shrext" 7765 else 7766 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 7767 ver=`(cd "$dir" && \ 7768 for f in "$libname$shrext".*; do echo "$f"; done \ 7769 | sed -e "s,^$libname$shrext\\\\.,," \ 7770 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 7771 | sed 1q ) 2>/dev/null` 7772 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 7773 found_dir="$dir" 7774 found_so="$dir/$libname$shrext.$ver" 7775 fi 7776 else 7777 eval library_names=\"$acl_library_names_spec\" 7778 for f in $library_names; do 7779 if test -f "$dir/$f"; then 7780 found_dir="$dir" 7781 found_so="$dir/$f" 7782 break 7783 fi 7784 done 7785 fi 7786 fi 7787 fi 7788 if test "X$found_dir" = "X"; then 7789 if test -f "$dir/$libname.$acl_libext"; then 7790 found_dir="$dir" 7791 found_a="$dir/$libname.$acl_libext" 7792 fi 7793 fi 7794 if test "X$found_dir" != "X"; then 7795 if test -f "$dir/$libname.la"; then 7796 found_la="$dir/$libname.la" 7797 fi 7798 fi 7799 ;; 7800 esac 7801 if test "X$found_dir" != "X"; then 7802 break 7803 fi 7804 done 7805 fi 7806 if test "X$found_dir" != "X"; then 7807 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$found_dir -l$name" 7808 if test "X$found_so" != "X"; then 7809 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then 7810 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so" 7811 else 7812 haveit= 7813 for x in $ltrpathdirs; do 7814 if test "X$x" = "X$found_dir"; then 7815 haveit=yes 7816 break 7817 fi 7818 done 7819 if test -z "$haveit"; then 7820 ltrpathdirs="$ltrpathdirs $found_dir" 7821 fi 7822 if test "$acl_hardcode_direct" = yes; then 7823 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so" 7824 else 7825 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 7826 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so" 7827 haveit= 7828 for x in $rpathdirs; do 7829 if test "X$x" = "X$found_dir"; then 7830 haveit=yes 7831 break 7832 fi 7833 done 7834 if test -z "$haveit"; then 7835 rpathdirs="$rpathdirs $found_dir" 7836 fi 7837 else 7838 haveit= 7839 for x in $LDFLAGS $LIBGCRYPT; do 7840 7841 acl_save_prefix="$prefix" 7842 prefix="$acl_final_prefix" 7843 acl_save_exec_prefix="$exec_prefix" 7844 exec_prefix="$acl_final_exec_prefix" 7845 eval x=\"$x\" 7846 exec_prefix="$acl_save_exec_prefix" 7847 prefix="$acl_save_prefix" 7848 7849 if test "X$x" = "X-L$found_dir"; then 7850 haveit=yes 7851 break 7852 fi 7853 done 7854 if test -z "$haveit"; then 7855 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir" 7856 fi 7857 if test "$acl_hardcode_minus_L" != no; then 7858 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so" 7859 else 7860 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name" 7861 fi 7862 fi 7863 fi 7864 fi 7865 else 7866 if test "X$found_a" != "X"; then 7867 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_a" 7868 else 7869 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir -l$name" 7870 fi 7871 fi 7872 additional_includedir= 7873 case "$found_dir" in 7874 */$acl_libdirstem | */$acl_libdirstem/) 7875 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 7876 LIBGCRYPT_PREFIX="$basedir" 7877 additional_includedir="$basedir/include" 7878 ;; 7879 esac 7880 if test "X$additional_includedir" != "X"; then 7881 if test "X$additional_includedir" != "X/usr/include"; then 7882 haveit= 7883 if test "X$additional_includedir" = "X/usr/local/include"; then 7884 if test -n "$GCC"; then 7885 case $host_os in 7886 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 7887 esac 7888 fi 7889 fi 7890 if test -z "$haveit"; then 7891 for x in $CPPFLAGS $INCGCRYPT; do 7892 7893 acl_save_prefix="$prefix" 7894 prefix="$acl_final_prefix" 7895 acl_save_exec_prefix="$exec_prefix" 7896 exec_prefix="$acl_final_exec_prefix" 7897 eval x=\"$x\" 7898 exec_prefix="$acl_save_exec_prefix" 7899 prefix="$acl_save_prefix" 7900 7901 if test "X$x" = "X-I$additional_includedir"; then 7902 haveit=yes 7903 break 7904 fi 7905 done 7906 if test -z "$haveit"; then 7907 if test -d "$additional_includedir"; then 7908 INCGCRYPT="${INCGCRYPT}${INCGCRYPT:+ }-I$additional_includedir" 7909 fi 7910 fi 7911 fi 7912 fi 7913 fi 7914 if test -n "$found_la"; then 7915 save_libdir="$libdir" 7916 case "$found_la" in 7917 */* | *\\*) . "$found_la" ;; 7918 *) . "./$found_la" ;; 7919 esac 7920 libdir="$save_libdir" 7921 for dep in $dependency_libs; do 7922 case "$dep" in 7923 -L*) 7924 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 7925 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 7926 haveit= 7927 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 7928 if test -n "$GCC"; then 7929 case $host_os in 7930 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 7931 esac 7932 fi 7933 fi 7934 if test -z "$haveit"; then 7935 haveit= 7936 for x in $LDFLAGS $LIBGCRYPT; do 7937 7938 acl_save_prefix="$prefix" 7939 prefix="$acl_final_prefix" 7940 acl_save_exec_prefix="$exec_prefix" 7941 exec_prefix="$acl_final_exec_prefix" 7942 eval x=\"$x\" 7943 exec_prefix="$acl_save_exec_prefix" 7944 prefix="$acl_save_prefix" 7945 7946 if test "X$x" = "X-L$additional_libdir"; then 7947 haveit=yes 7948 break 7949 fi 7950 done 7951 if test -z "$haveit"; then 7952 if test -d "$additional_libdir"; then 7953 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$additional_libdir" 7954 fi 7955 fi 7956 haveit= 7957 for x in $LDFLAGS $LTLIBGCRYPT; do 7958 7959 acl_save_prefix="$prefix" 7960 prefix="$acl_final_prefix" 7961 acl_save_exec_prefix="$exec_prefix" 7962 exec_prefix="$acl_final_exec_prefix" 7963 eval x=\"$x\" 7964 exec_prefix="$acl_save_exec_prefix" 7965 prefix="$acl_save_prefix" 7966 7967 if test "X$x" = "X-L$additional_libdir"; then 7968 haveit=yes 7969 break 7970 fi 7971 done 7972 if test -z "$haveit"; then 7973 if test -d "$additional_libdir"; then 7974 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$additional_libdir" 7975 fi 7976 fi 7977 fi 7978 fi 7979 ;; 7980 -R*) 7981 dir=`echo "X$dep" | sed -e 's/^X-R//'` 7982 if test "$enable_rpath" != no; then 7983 haveit= 7984 for x in $rpathdirs; do 7985 if test "X$x" = "X$dir"; then 7986 haveit=yes 7987 break 7988 fi 7989 done 7990 if test -z "$haveit"; then 7991 rpathdirs="$rpathdirs $dir" 7992 fi 7993 haveit= 7994 for x in $ltrpathdirs; do 7995 if test "X$x" = "X$dir"; then 7996 haveit=yes 7997 break 7998 fi 7999 done 8000 if test -z "$haveit"; then 8001 ltrpathdirs="$ltrpathdirs $dir" 8002 fi 8003 fi 8004 ;; 8005 -l*) 8006 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 8007 ;; 8008 *.la) 8009 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 8010 ;; 8011 *) 8012 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$dep" 8013 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$dep" 8014 ;; 8015 esac 8016 done 8017 fi 8018 else 8019 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name" 8020 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-l$name" 8021 fi 8022 fi 8023 fi 8024 done 8025 done 8026 if test "X$rpathdirs" != "X"; then 8027 if test -n "$acl_hardcode_libdir_separator"; then 8028 alldirs= 8029 for found_dir in $rpathdirs; do 8030 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 8031 done 8032 acl_save_libdir="$libdir" 8033 libdir="$alldirs" 8034 eval flag=\"$acl_hardcode_libdir_flag_spec\" 8035 libdir="$acl_save_libdir" 8036 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag" 8037 else 8038 for found_dir in $rpathdirs; do 8039 acl_save_libdir="$libdir" 8040 libdir="$found_dir" 8041 eval flag=\"$acl_hardcode_libdir_flag_spec\" 8042 libdir="$acl_save_libdir" 8043 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag" 8044 done 8045 fi 8046 fi 8047 if test "X$ltrpathdirs" != "X"; then 8048 for found_dir in $ltrpathdirs; do 8049 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-R$found_dir" 8050 done 8051 fi 8052 8053 8054 ac_save_CPPFLAGS="$CPPFLAGS" 8055 8056 for element in $INCGCRYPT; do 8057 haveit= 8058 for x in $CPPFLAGS; do 8059 8060 acl_save_prefix="$prefix" 8061 prefix="$acl_final_prefix" 8062 acl_save_exec_prefix="$exec_prefix" 8063 exec_prefix="$acl_final_exec_prefix" 8064 eval x=\"$x\" 8065 exec_prefix="$acl_save_exec_prefix" 8066 prefix="$acl_save_prefix" 8067 8068 if test "X$x" = "X$element"; then 8069 haveit=yes 8070 break 8071 fi 8072 done 8073 if test -z "$haveit"; then 8074 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 8075 fi 8076 done 8077 8078 8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcrypt" >&5 8080$as_echo_n "checking for libgcrypt... " >&6; } 8081if ${ac_cv_libgcrypt+:} false; then : 8082 $as_echo_n "(cached) " >&6 8083else 8084 8085 ac_save_LIBS="$LIBS" 8086 LIBS="$LIBS $LIBGCRYPT" 8087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8088/* end confdefs.h. */ 8089#include <gcrypt.h> 8090int 8091main () 8092{ 8093 8094 ; 8095 return 0; 8096} 8097_ACEOF 8098if ac_fn_c_try_link "$LINENO"; then : 8099 ac_cv_libgcrypt=yes 8100else 8101 ac_cv_libgcrypt=no 8102fi 8103rm -f core conftest.err conftest.$ac_objext \ 8104 conftest$ac_exeext conftest.$ac_ext 8105 LIBS="$ac_save_LIBS" 8106 8107fi 8108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgcrypt" >&5 8109$as_echo "$ac_cv_libgcrypt" >&6; } 8110 if test "$ac_cv_libgcrypt" = yes; then 8111 HAVE_LIBGCRYPT=yes 8112 8113$as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h 8114 8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgcrypt" >&5 8116$as_echo_n "checking how to link with libgcrypt... " >&6; } 8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT" >&5 8118$as_echo "$LIBGCRYPT" >&6; } 8119 else 8120 HAVE_LIBGCRYPT=no 8121 CPPFLAGS="$ac_save_CPPFLAGS" 8122 LIBGCRYPT= 8123 LTLIBGCRYPT= 8124 LIBGCRYPT_PREFIX= 8125 fi 8126 8127 8128 8129 8130 8131 8132 8133 LIBSREQUIRED=libgcrypt 8134fi 8135 8136 8137 8138if test "$ac_cv_libssl" != "yes" && test "$ac_cv_libgcrypt" != "yes"; then 8139 { $as_echo "$as_me:${as_lineno-$LINENO}: cannot find OpenSSL or Libgcrypt, try --with-libssl-prefix=PATH or --with-libgcrypt-prefix=PATH" >&5 8140$as_echo "$as_me: cannot find OpenSSL or Libgcrypt, try --with-libssl-prefix=PATH or --with-libgcrypt-prefix=PATH" >&6;} 8141 BUILD_SSH_TUNNEL="no" 8142else 8143 BUILD_SSH_TUNNEL="yes" 8144fi 8145 if test x$BUILD_SSH_TUNNEL = xyes; then 8146 BUILD_SSH_TUNNEL_TRUE= 8147 BUILD_SSH_TUNNEL_FALSE='#' 8148else 8149 BUILD_SSH_TUNNEL_TRUE='#' 8150 BUILD_SSH_TUNNEL_FALSE= 8151fi 8152 8153 8154if test "$ac_cv_libssl" = "yes"; then 8155 8156$as_echo "#define LIBSSH2_OPENSSL 1" >>confdefs.h 8157 8158 8159$as_echo "#define HAVE_OPENSSL_CRYPTO 1" >>confdefs.h 8160 8161 CPPFLAGS="$CPPFLAGS -DHAVE_OPENSSL_CRYPTO -DLIBSSH2_OPENSSL" 8162 LIBS="$LIBS $LIBSSL" 8163fi 8164 8165if test "$ac_cv_libgcrypt" = "yes"; then 8166 CPPFLAGS="$CPPFLAGS -DHAVE_GCRYPT" 8167 LIBS="$LIBS $LIBGCRYPT" 8168 8169$as_echo "#define LIBSSH2_LIBGCRYPT 1" >>confdefs.h 8170 8171fi 8172 if test "$ac_cv_libgcrypt" = "yes"; then 8173 LIBGCRYPT_TRUE= 8174 LIBGCRYPT_FALSE='#' 8175else 8176 LIBGCRYPT_TRUE='#' 8177 LIBGCRYPT_FALSE= 8178fi 8179 8180 8181# Not all OpenSSL have AES-CTR functions. 8182if test "$ac_cv_libssl" = "yes"; then 8183 save_LDFLAGS="$LDFLAGS" 8184 LDFLAGS="$LDFLAGS $LIBSSL" 8185 for ac_func in EVP_aes_128_ctr 8186do : 8187 ac_fn_c_check_func "$LINENO" "EVP_aes_128_ctr" "ac_cv_func_EVP_aes_128_ctr" 8188if test "x$ac_cv_func_EVP_aes_128_ctr" = xyes; then : 8189 cat >>confdefs.h <<_ACEOF 8190#define HAVE_EVP_AES_128_CTR 1 8191_ACEOF 8192 8193fi 8194done 8195 8196 LDFLAGS="$save_LDFLAGS" 8197fi 8198 8199# Look for Libz 8200if test "$use_libz" != "no"; then 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 use_additional=yes 8212 8213 acl_save_prefix="$prefix" 8214 prefix="$acl_final_prefix" 8215 acl_save_exec_prefix="$exec_prefix" 8216 exec_prefix="$acl_final_exec_prefix" 8217 8218 eval additional_includedir=\"$includedir\" 8219 eval additional_libdir=\"$libdir\" 8220 8221 exec_prefix="$acl_save_exec_prefix" 8222 prefix="$acl_save_prefix" 8223 8224 8225# Check whether --with-libz-prefix was given. 8226if test "${with_libz_prefix+set}" = set; then : 8227 withval=$with_libz_prefix; 8228 if test "X$withval" = "Xno"; then 8229 use_additional=no 8230 else 8231 if test "X$withval" = "X"; then 8232 8233 acl_save_prefix="$prefix" 8234 prefix="$acl_final_prefix" 8235 acl_save_exec_prefix="$exec_prefix" 8236 exec_prefix="$acl_final_exec_prefix" 8237 8238 eval additional_includedir=\"$includedir\" 8239 eval additional_libdir=\"$libdir\" 8240 8241 exec_prefix="$acl_save_exec_prefix" 8242 prefix="$acl_save_prefix" 8243 8244 else 8245 additional_includedir="$withval/include" 8246 additional_libdir="$withval/$acl_libdirstem" 8247 fi 8248 fi 8249 8250fi 8251 8252 LIBZ= 8253 LTLIBZ= 8254 INCZ= 8255 LIBZ_PREFIX= 8256 rpathdirs= 8257 ltrpathdirs= 8258 names_already_handled= 8259 names_next_round='z ' 8260 while test -n "$names_next_round"; do 8261 names_this_round="$names_next_round" 8262 names_next_round= 8263 for name in $names_this_round; do 8264 already_handled= 8265 for n in $names_already_handled; do 8266 if test "$n" = "$name"; then 8267 already_handled=yes 8268 break 8269 fi 8270 done 8271 if test -z "$already_handled"; then 8272 names_already_handled="$names_already_handled $name" 8273 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 8274 eval value=\"\$HAVE_LIB$uppername\" 8275 if test -n "$value"; then 8276 if test "$value" = yes; then 8277 eval value=\"\$LIB$uppername\" 8278 test -z "$value" || LIBZ="${LIBZ}${LIBZ:+ }$value" 8279 eval value=\"\$LTLIB$uppername\" 8280 test -z "$value" || LTLIBZ="${LTLIBZ}${LTLIBZ:+ }$value" 8281 else 8282 : 8283 fi 8284 else 8285 found_dir= 8286 found_la= 8287 found_so= 8288 found_a= 8289 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 8290 if test -n "$acl_shlibext"; then 8291 shrext=".$acl_shlibext" # typically: shrext=.so 8292 else 8293 shrext= 8294 fi 8295 if test $use_additional = yes; then 8296 dir="$additional_libdir" 8297 if test -n "$acl_shlibext"; then 8298 if test -f "$dir/$libname$shrext"; then 8299 found_dir="$dir" 8300 found_so="$dir/$libname$shrext" 8301 else 8302 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 8303 ver=`(cd "$dir" && \ 8304 for f in "$libname$shrext".*; do echo "$f"; done \ 8305 | sed -e "s,^$libname$shrext\\\\.,," \ 8306 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 8307 | sed 1q ) 2>/dev/null` 8308 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 8309 found_dir="$dir" 8310 found_so="$dir/$libname$shrext.$ver" 8311 fi 8312 else 8313 eval library_names=\"$acl_library_names_spec\" 8314 for f in $library_names; do 8315 if test -f "$dir/$f"; then 8316 found_dir="$dir" 8317 found_so="$dir/$f" 8318 break 8319 fi 8320 done 8321 fi 8322 fi 8323 fi 8324 if test "X$found_dir" = "X"; then 8325 if test -f "$dir/$libname.$acl_libext"; then 8326 found_dir="$dir" 8327 found_a="$dir/$libname.$acl_libext" 8328 fi 8329 fi 8330 if test "X$found_dir" != "X"; then 8331 if test -f "$dir/$libname.la"; then 8332 found_la="$dir/$libname.la" 8333 fi 8334 fi 8335 fi 8336 if test "X$found_dir" = "X"; then 8337 for x in $LDFLAGS $LTLIBZ; do 8338 8339 acl_save_prefix="$prefix" 8340 prefix="$acl_final_prefix" 8341 acl_save_exec_prefix="$exec_prefix" 8342 exec_prefix="$acl_final_exec_prefix" 8343 eval x=\"$x\" 8344 exec_prefix="$acl_save_exec_prefix" 8345 prefix="$acl_save_prefix" 8346 8347 case "$x" in 8348 -L*) 8349 dir=`echo "X$x" | sed -e 's/^X-L//'` 8350 if test -n "$acl_shlibext"; then 8351 if test -f "$dir/$libname$shrext"; then 8352 found_dir="$dir" 8353 found_so="$dir/$libname$shrext" 8354 else 8355 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 8356 ver=`(cd "$dir" && \ 8357 for f in "$libname$shrext".*; do echo "$f"; done \ 8358 | sed -e "s,^$libname$shrext\\\\.,," \ 8359 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 8360 | sed 1q ) 2>/dev/null` 8361 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 8362 found_dir="$dir" 8363 found_so="$dir/$libname$shrext.$ver" 8364 fi 8365 else 8366 eval library_names=\"$acl_library_names_spec\" 8367 for f in $library_names; do 8368 if test -f "$dir/$f"; then 8369 found_dir="$dir" 8370 found_so="$dir/$f" 8371 break 8372 fi 8373 done 8374 fi 8375 fi 8376 fi 8377 if test "X$found_dir" = "X"; then 8378 if test -f "$dir/$libname.$acl_libext"; then 8379 found_dir="$dir" 8380 found_a="$dir/$libname.$acl_libext" 8381 fi 8382 fi 8383 if test "X$found_dir" != "X"; then 8384 if test -f "$dir/$libname.la"; then 8385 found_la="$dir/$libname.la" 8386 fi 8387 fi 8388 ;; 8389 esac 8390 if test "X$found_dir" != "X"; then 8391 break 8392 fi 8393 done 8394 fi 8395 if test "X$found_dir" != "X"; then 8396 LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-L$found_dir -l$name" 8397 if test "X$found_so" != "X"; then 8398 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then 8399 LIBZ="${LIBZ}${LIBZ:+ }$found_so" 8400 else 8401 haveit= 8402 for x in $ltrpathdirs; do 8403 if test "X$x" = "X$found_dir"; then 8404 haveit=yes 8405 break 8406 fi 8407 done 8408 if test -z "$haveit"; then 8409 ltrpathdirs="$ltrpathdirs $found_dir" 8410 fi 8411 if test "$acl_hardcode_direct" = yes; then 8412 LIBZ="${LIBZ}${LIBZ:+ }$found_so" 8413 else 8414 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 8415 LIBZ="${LIBZ}${LIBZ:+ }$found_so" 8416 haveit= 8417 for x in $rpathdirs; do 8418 if test "X$x" = "X$found_dir"; then 8419 haveit=yes 8420 break 8421 fi 8422 done 8423 if test -z "$haveit"; then 8424 rpathdirs="$rpathdirs $found_dir" 8425 fi 8426 else 8427 haveit= 8428 for x in $LDFLAGS $LIBZ; do 8429 8430 acl_save_prefix="$prefix" 8431 prefix="$acl_final_prefix" 8432 acl_save_exec_prefix="$exec_prefix" 8433 exec_prefix="$acl_final_exec_prefix" 8434 eval x=\"$x\" 8435 exec_prefix="$acl_save_exec_prefix" 8436 prefix="$acl_save_prefix" 8437 8438 if test "X$x" = "X-L$found_dir"; then 8439 haveit=yes 8440 break 8441 fi 8442 done 8443 if test -z "$haveit"; then 8444 LIBZ="${LIBZ}${LIBZ:+ }-L$found_dir" 8445 fi 8446 if test "$acl_hardcode_minus_L" != no; then 8447 LIBZ="${LIBZ}${LIBZ:+ }$found_so" 8448 else 8449 LIBZ="${LIBZ}${LIBZ:+ }-l$name" 8450 fi 8451 fi 8452 fi 8453 fi 8454 else 8455 if test "X$found_a" != "X"; then 8456 LIBZ="${LIBZ}${LIBZ:+ }$found_a" 8457 else 8458 LIBZ="${LIBZ}${LIBZ:+ }-L$found_dir -l$name" 8459 fi 8460 fi 8461 additional_includedir= 8462 case "$found_dir" in 8463 */$acl_libdirstem | */$acl_libdirstem/) 8464 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 8465 LIBZ_PREFIX="$basedir" 8466 additional_includedir="$basedir/include" 8467 ;; 8468 esac 8469 if test "X$additional_includedir" != "X"; then 8470 if test "X$additional_includedir" != "X/usr/include"; then 8471 haveit= 8472 if test "X$additional_includedir" = "X/usr/local/include"; then 8473 if test -n "$GCC"; then 8474 case $host_os in 8475 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 8476 esac 8477 fi 8478 fi 8479 if test -z "$haveit"; then 8480 for x in $CPPFLAGS $INCZ; do 8481 8482 acl_save_prefix="$prefix" 8483 prefix="$acl_final_prefix" 8484 acl_save_exec_prefix="$exec_prefix" 8485 exec_prefix="$acl_final_exec_prefix" 8486 eval x=\"$x\" 8487 exec_prefix="$acl_save_exec_prefix" 8488 prefix="$acl_save_prefix" 8489 8490 if test "X$x" = "X-I$additional_includedir"; then 8491 haveit=yes 8492 break 8493 fi 8494 done 8495 if test -z "$haveit"; then 8496 if test -d "$additional_includedir"; then 8497 INCZ="${INCZ}${INCZ:+ }-I$additional_includedir" 8498 fi 8499 fi 8500 fi 8501 fi 8502 fi 8503 if test -n "$found_la"; then 8504 save_libdir="$libdir" 8505 case "$found_la" in 8506 */* | *\\*) . "$found_la" ;; 8507 *) . "./$found_la" ;; 8508 esac 8509 libdir="$save_libdir" 8510 for dep in $dependency_libs; do 8511 case "$dep" in 8512 -L*) 8513 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 8514 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 8515 haveit= 8516 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 8517 if test -n "$GCC"; then 8518 case $host_os in 8519 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 8520 esac 8521 fi 8522 fi 8523 if test -z "$haveit"; then 8524 haveit= 8525 for x in $LDFLAGS $LIBZ; do 8526 8527 acl_save_prefix="$prefix" 8528 prefix="$acl_final_prefix" 8529 acl_save_exec_prefix="$exec_prefix" 8530 exec_prefix="$acl_final_exec_prefix" 8531 eval x=\"$x\" 8532 exec_prefix="$acl_save_exec_prefix" 8533 prefix="$acl_save_prefix" 8534 8535 if test "X$x" = "X-L$additional_libdir"; then 8536 haveit=yes 8537 break 8538 fi 8539 done 8540 if test -z "$haveit"; then 8541 if test -d "$additional_libdir"; then 8542 LIBZ="${LIBZ}${LIBZ:+ }-L$additional_libdir" 8543 fi 8544 fi 8545 haveit= 8546 for x in $LDFLAGS $LTLIBZ; do 8547 8548 acl_save_prefix="$prefix" 8549 prefix="$acl_final_prefix" 8550 acl_save_exec_prefix="$exec_prefix" 8551 exec_prefix="$acl_final_exec_prefix" 8552 eval x=\"$x\" 8553 exec_prefix="$acl_save_exec_prefix" 8554 prefix="$acl_save_prefix" 8555 8556 if test "X$x" = "X-L$additional_libdir"; then 8557 haveit=yes 8558 break 8559 fi 8560 done 8561 if test -z "$haveit"; then 8562 if test -d "$additional_libdir"; then 8563 LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-L$additional_libdir" 8564 fi 8565 fi 8566 fi 8567 fi 8568 ;; 8569 -R*) 8570 dir=`echo "X$dep" | sed -e 's/^X-R//'` 8571 if test "$enable_rpath" != no; then 8572 haveit= 8573 for x in $rpathdirs; do 8574 if test "X$x" = "X$dir"; then 8575 haveit=yes 8576 break 8577 fi 8578 done 8579 if test -z "$haveit"; then 8580 rpathdirs="$rpathdirs $dir" 8581 fi 8582 haveit= 8583 for x in $ltrpathdirs; do 8584 if test "X$x" = "X$dir"; then 8585 haveit=yes 8586 break 8587 fi 8588 done 8589 if test -z "$haveit"; then 8590 ltrpathdirs="$ltrpathdirs $dir" 8591 fi 8592 fi 8593 ;; 8594 -l*) 8595 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 8596 ;; 8597 *.la) 8598 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 8599 ;; 8600 *) 8601 LIBZ="${LIBZ}${LIBZ:+ }$dep" 8602 LTLIBZ="${LTLIBZ}${LTLIBZ:+ }$dep" 8603 ;; 8604 esac 8605 done 8606 fi 8607 else 8608 LIBZ="${LIBZ}${LIBZ:+ }-l$name" 8609 LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-l$name" 8610 fi 8611 fi 8612 fi 8613 done 8614 done 8615 if test "X$rpathdirs" != "X"; then 8616 if test -n "$acl_hardcode_libdir_separator"; then 8617 alldirs= 8618 for found_dir in $rpathdirs; do 8619 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 8620 done 8621 acl_save_libdir="$libdir" 8622 libdir="$alldirs" 8623 eval flag=\"$acl_hardcode_libdir_flag_spec\" 8624 libdir="$acl_save_libdir" 8625 LIBZ="${LIBZ}${LIBZ:+ }$flag" 8626 else 8627 for found_dir in $rpathdirs; do 8628 acl_save_libdir="$libdir" 8629 libdir="$found_dir" 8630 eval flag=\"$acl_hardcode_libdir_flag_spec\" 8631 libdir="$acl_save_libdir" 8632 LIBZ="${LIBZ}${LIBZ:+ }$flag" 8633 done 8634 fi 8635 fi 8636 if test "X$ltrpathdirs" != "X"; then 8637 for found_dir in $ltrpathdirs; do 8638 LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-R$found_dir" 8639 done 8640 fi 8641 8642 8643 ac_save_CPPFLAGS="$CPPFLAGS" 8644 8645 for element in $INCZ; do 8646 haveit= 8647 for x in $CPPFLAGS; do 8648 8649 acl_save_prefix="$prefix" 8650 prefix="$acl_final_prefix" 8651 acl_save_exec_prefix="$exec_prefix" 8652 exec_prefix="$acl_final_exec_prefix" 8653 eval x=\"$x\" 8654 exec_prefix="$acl_save_exec_prefix" 8655 prefix="$acl_save_prefix" 8656 8657 if test "X$x" = "X$element"; then 8658 haveit=yes 8659 break 8660 fi 8661 done 8662 if test -z "$haveit"; then 8663 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 8664 fi 8665 done 8666 8667 8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libz" >&5 8669$as_echo_n "checking for libz... " >&6; } 8670if ${ac_cv_libz+:} false; then : 8671 $as_echo_n "(cached) " >&6 8672else 8673 8674 ac_save_LIBS="$LIBS" 8675 LIBS="$LIBS $LIBZ" 8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8677/* end confdefs.h. */ 8678#include <zlib.h> 8679int 8680main () 8681{ 8682 8683 ; 8684 return 0; 8685} 8686_ACEOF 8687if ac_fn_c_try_link "$LINENO"; then : 8688 ac_cv_libz=yes 8689else 8690 ac_cv_libz=no 8691fi 8692rm -f core conftest.err conftest.$ac_objext \ 8693 conftest$ac_exeext conftest.$ac_ext 8694 LIBS="$ac_save_LIBS" 8695 8696fi 8697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libz" >&5 8698$as_echo "$ac_cv_libz" >&6; } 8699 if test "$ac_cv_libz" = yes; then 8700 HAVE_LIBZ=yes 8701 8702$as_echo "#define HAVE_LIBZ 1" >>confdefs.h 8703 8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libz" >&5 8705$as_echo_n "checking how to link with libz... " >&6; } 8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBZ" >&5 8707$as_echo "$LIBZ" >&6; } 8708 else 8709 HAVE_LIBZ=no 8710 CPPFLAGS="$ac_save_CPPFLAGS" 8711 LIBZ= 8712 LTLIBZ= 8713 LIBZ_PREFIX= 8714 fi 8715 8716 8717 8718 8719 8720 8721 8722 if test "$ac_cv_libz" != yes; then 8723 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot find libz, disabling compression" >&5 8724$as_echo "$as_me: Cannot find libz, disabling compression" >&6;} 8725 { $as_echo "$as_me:${as_lineno-$LINENO}: Try --with-libz-prefix=PATH if you know you have it" >&5 8726$as_echo "$as_me: Try --with-libz-prefix=PATH if you know you have it" >&6;} 8727 else 8728 LIBS="$LIBS $LIBZ" 8729 8730$as_echo "#define LIBSSH2_HAVE_ZLIB 1" >>confdefs.h 8731 8732 fi 8733fi 8734 8735 8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking non-blocking sockets style" >&5 8737$as_echo_n "checking non-blocking sockets style... " >&6; } 8738 8739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8740/* end confdefs.h. */ 8741 8742/* headers for O_NONBLOCK test */ 8743#include <sys/types.h> 8744#include <unistd.h> 8745#include <fcntl.h> 8746 8747int 8748main () 8749{ 8750 8751/* try to compile O_NONBLOCK */ 8752 8753#if defined(sun) || defined(__sun__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) 8754# if defined(__SVR4) || defined(__srv4__) 8755# define PLATFORM_SOLARIS 8756# else 8757# define PLATFORM_SUNOS4 8758# endif 8759#endif 8760#if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX41) 8761# define PLATFORM_AIX_V3 8762#endif 8763 8764#if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3) || defined(__BEOS__) 8765#error "O_NONBLOCK does not work on this platform" 8766#endif 8767 int socket; 8768 int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK); 8769 8770 ; 8771 return 0; 8772} 8773_ACEOF 8774if ac_fn_c_try_compile "$LINENO"; then : 8775 8776nonblock="O_NONBLOCK" 8777 8778$as_echo "#define HAVE_O_NONBLOCK 1" >>confdefs.h 8779 8780 8781else 8782 8783 8784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8785/* end confdefs.h. */ 8786 8787/* headers for FIONBIO test */ 8788#include <unistd.h> 8789#include <stropts.h> 8790 8791int 8792main () 8793{ 8794 8795/* FIONBIO source test (old-style unix) */ 8796 int socket; 8797 int flags = ioctl(socket, FIONBIO, &flags); 8798 8799 ; 8800 return 0; 8801} 8802_ACEOF 8803if ac_fn_c_try_compile "$LINENO"; then : 8804 8805nonblock="FIONBIO" 8806 8807$as_echo "#define HAVE_FIONBIO 1" >>confdefs.h 8808 8809 8810else 8811 8812 8813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8814/* end confdefs.h. */ 8815 8816/* headers for ioctlsocket test (Windows) */ 8817#undef inline 8818#ifdef HAVE_WINDOWS_H 8819#ifndef WIN32_LEAN_AND_MEAN 8820#define WIN32_LEAN_AND_MEAN 8821#endif 8822#include <windows.h> 8823#ifdef HAVE_WINSOCK2_H 8824#include <winsock2.h> 8825#else 8826#ifdef HAVE_WINSOCK_H 8827#include <winsock.h> 8828#endif 8829#endif 8830#endif 8831 8832int 8833main () 8834{ 8835 8836/* ioctlsocket source code */ 8837 SOCKET sd; 8838 unsigned long flags = 0; 8839 sd = socket(0, 0, 0); 8840 ioctlsocket(sd, FIONBIO, &flags); 8841 8842 ; 8843 return 0; 8844} 8845_ACEOF 8846if ac_fn_c_try_compile "$LINENO"; then : 8847 8848nonblock="ioctlsocket" 8849 8850$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h 8851 8852 8853else 8854 8855 8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8857/* end confdefs.h. */ 8858 8859/* headers for IoctlSocket test (Amiga?) */ 8860#include <sys/ioctl.h> 8861 8862int 8863main () 8864{ 8865 8866/* IoctlSocket source code */ 8867 int socket; 8868 int flags = IoctlSocket(socket, FIONBIO, (long)1); 8869 8870 ; 8871 return 0; 8872} 8873_ACEOF 8874if ac_fn_c_try_link "$LINENO"; then : 8875 8876nonblock="IoctlSocket" 8877 8878$as_echo "#define HAVE_IOCTLSOCKET_CASE 1" >>confdefs.h 8879 8880 8881else 8882 8883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8884/* end confdefs.h. */ 8885 8886/* headers for SO_NONBLOCK test (BeOS) */ 8887#include <socket.h> 8888 8889int 8890main () 8891{ 8892 8893/* SO_NONBLOCK source code */ 8894 long b = 1; 8895 int socket; 8896 int flags = setsockopt(socket, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b)); 8897 8898 ; 8899 return 0; 8900} 8901_ACEOF 8902if ac_fn_c_try_compile "$LINENO"; then : 8903 8904nonblock="SO_NONBLOCK" 8905 8906$as_echo "#define HAVE_SO_NONBLOCK 1" >>confdefs.h 8907 8908 8909else 8910 8911nonblock="nada" 8912 8913$as_echo "#define HAVE_DISABLED_NONBLOCKING 1" >>confdefs.h 8914 8915 8916fi 8917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8918 8919 8920fi 8921rm -f core conftest.err conftest.$ac_objext \ 8922 conftest$ac_exeext conftest.$ac_ext 8923 8924 8925fi 8926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8927 8928 8929fi 8930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8931 8932 8933fi 8934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nonblock" >&5 8936$as_echo "$nonblock" >&6; } 8937 8938 if test "$nonblock" = "nada"; then 8939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-block sockets disabled" >&5 8940$as_echo "$as_me: WARNING: non-block sockets disabled" >&2;} 8941 fi 8942 8943 8944 8945 8946# Check whether --with-sphinx-build was given. 8947if test "${with_sphinx_build+set}" = set; then : 8948 withval=$with_sphinx_build; 8949 if test "$withval" != no 8950 then 8951 SPHINX_BUILD="$withval" 8952 if test ! -f "${SPHINX_BUILD}" 8953 then 8954 as_fn_error $? "Could not find your sphinx-build executable ${SPHINX_BUILD}" "$LINENO" 5 8955 fi 8956 8957 fi 8958 8959else 8960 8961 SPHINX_BUILD=/usr/local/bin/sphinx-build 8962 if test ! -f "${SPHINX_BUILD}" 8963 then 8964 SPHINX_BUILD=/usr/bin/sphinx-build 8965 if test ! -f "${SPHINX_BUILD}" 8966 then 8967 # Search the path 8968 SPHINX_BUILD="" 8969 for ac_prog in sphinx-build sphinx-build-2.7 sphinx-build-2.6 8970do 8971 # Extract the first word of "$ac_prog", so it can be a program name with args. 8972set dummy $ac_prog; ac_word=$2 8973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8974$as_echo_n "checking for $ac_word... " >&6; } 8975if ${ac_cv_path_SPHINX_BUILD+:} false; then : 8976 $as_echo_n "(cached) " >&6 8977else 8978 case $SPHINX_BUILD in 8979 [\\/]* | ?:[\\/]*) 8980 ac_cv_path_SPHINX_BUILD="$SPHINX_BUILD" # Let the user override the test with a path. 8981 ;; 8982 *) 8983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8984for as_dir in $PATH 8985do 8986 IFS=$as_save_IFS 8987 test -z "$as_dir" && as_dir=. 8988 for ac_exec_ext in '' $ac_executable_extensions; do 8989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8990 ac_cv_path_SPHINX_BUILD="$as_dir/$ac_word$ac_exec_ext" 8991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8992 break 2 8993 fi 8994done 8995 done 8996IFS=$as_save_IFS 8997 8998 ;; 8999esac 9000fi 9001SPHINX_BUILD=$ac_cv_path_SPHINX_BUILD 9002if test -n "$SPHINX_BUILD"; then 9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINX_BUILD" >&5 9004$as_echo "$SPHINX_BUILD" >&6; } 9005else 9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9007$as_echo "no" >&6; } 9008fi 9009 9010 9011 test -n "$SPHINX_BUILD" && break 9012done 9013test -n "$SPHINX_BUILD" || SPHINX_BUILD="""" 9014 9015 if test ! -f "${SPHINX_BUILD}" 9016 then 9017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find your sphinx-build executable. You might need to use the --with-sphinx-build=FILE configure option" >&5 9018$as_echo "$as_me: WARNING: Could not find your sphinx-build executable. You might need to use the --with-sphinx-build=FILE configure option" >&2;} 9019 fi 9020 fi 9021 fi 9022 9023fi 9024 9025 9026 if test x$SPHINX_BUILD != x; then 9027 SPHINX_BUILD_TRUE= 9028 SPHINX_BUILD_FALSE='#' 9029else 9030 SPHINX_BUILD_TRUE='#' 9031 SPHINX_BUILD_FALSE= 9032fi 9033 9034 9035ac_config_files="$ac_config_files Makefile branding/Makefile i18n/Makefile plugins.d/Makefile pgadmin/Makefile pkg/Makefile pkg/debian/Makefile pkg/mac/Makefile pkg/mandrake/Makefile pkg/redhat/Makefile pkg/slackware/Makefile pkg/src/Makefile pkg/suse/Makefile pkg/win32/Makefile xtra/Makefile xtra/png2c/Makefile xtra/wx-build/Makefile" 9036 9037cat >confcache <<\_ACEOF 9038# This file is a shell script that caches the results of configure 9039# tests run on this system so they can be shared between configure 9040# scripts and configure runs, see configure's option --config-cache. 9041# It is not useful on other systems. If it contains results you don't 9042# want to keep, you may remove or edit it. 9043# 9044# config.status only pays attention to the cache file if you give it 9045# the --recheck option to rerun configure. 9046# 9047# `ac_cv_env_foo' variables (set or unset) will be overridden when 9048# loading this file, other *unset* `ac_cv_foo' will be assigned the 9049# following values. 9050 9051_ACEOF 9052 9053# The following way of writing the cache mishandles newlines in values, 9054# but we know of no workaround that is simple, portable, and efficient. 9055# So, we kill variables containing newlines. 9056# Ultrix sh set writes to stderr and can't be redirected directly, 9057# and sets the high bit in the cache file unless we assign to the vars. 9058( 9059 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 9060 eval ac_val=\$$ac_var 9061 case $ac_val in #( 9062 *${as_nl}*) 9063 case $ac_var in #( 9064 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 9065$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 9066 esac 9067 case $ac_var in #( 9068 _ | IFS | as_nl) ;; #( 9069 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 9070 *) { eval $ac_var=; unset $ac_var;} ;; 9071 esac ;; 9072 esac 9073 done 9074 9075 (set) 2>&1 | 9076 case $as_nl`(ac_space=' '; set) 2>&1` in #( 9077 *${as_nl}ac_space=\ *) 9078 # `set' does not quote correctly, so add quotes: double-quote 9079 # substitution turns \\\\ into \\, and sed turns \\ into \. 9080 sed -n \ 9081 "s/'/'\\\\''/g; 9082 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 9083 ;; #( 9084 *) 9085 # `set' quotes correctly as required by POSIX, so do not add quotes. 9086 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 9087 ;; 9088 esac | 9089 sort 9090) | 9091 sed ' 9092 /^ac_cv_env_/b end 9093 t clear 9094 :clear 9095 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 9096 t end 9097 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 9098 :end' >>confcache 9099if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 9100 if test -w "$cache_file"; then 9101 if test "x$cache_file" != "x/dev/null"; then 9102 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 9103$as_echo "$as_me: updating cache $cache_file" >&6;} 9104 if test ! -f "$cache_file" || test -h "$cache_file"; then 9105 cat confcache >"$cache_file" 9106 else 9107 case $cache_file in #( 9108 */* | ?:*) 9109 mv -f confcache "$cache_file"$$ && 9110 mv -f "$cache_file"$$ "$cache_file" ;; #( 9111 *) 9112 mv -f confcache "$cache_file" ;; 9113 esac 9114 fi 9115 fi 9116 else 9117 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 9118$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 9119 fi 9120fi 9121rm -f confcache 9122 9123test "x$prefix" = xNONE && prefix=$ac_default_prefix 9124# Let make expand exec_prefix. 9125test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 9126 9127DEFS=-DHAVE_CONFIG_H 9128 9129ac_libobjs= 9130ac_ltlibobjs= 9131U= 9132for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 9133 # 1. Remove the extension, and $U if already installed. 9134 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 9135 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 9136 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 9137 # will be set to the directory where LIBOBJS objects are built. 9138 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 9139 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 9140done 9141LIBOBJS=$ac_libobjs 9142 9143LTLIBOBJS=$ac_ltlibobjs 9144 9145 9146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 9147$as_echo_n "checking that generated files are newer than configure... " >&6; } 9148 if test -n "$am_sleep_pid"; then 9149 # Hide warnings about reused PIDs. 9150 wait $am_sleep_pid 2>/dev/null 9151 fi 9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 9153$as_echo "done" >&6; } 9154 if test -n "$EXEEXT"; then 9155 am__EXEEXT_TRUE= 9156 am__EXEEXT_FALSE='#' 9157else 9158 am__EXEEXT_TRUE='#' 9159 am__EXEEXT_FALSE= 9160fi 9161 9162if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 9163 as_fn_error $? "conditional \"AMDEP\" was never defined. 9164Usually this means the macro was only invoked conditionally." "$LINENO" 5 9165fi 9166if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 9167 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 9168Usually this means the macro was only invoked conditionally." "$LINENO" 5 9169fi 9170if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 9171 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 9172Usually this means the macro was only invoked conditionally." "$LINENO" 5 9173fi 9174if test -z "${SUN_CC_TRUE}" && test -z "${SUN_CC_FALSE}"; then 9175 as_fn_error $? "conditional \"SUN_CC\" was never defined. 9176Usually this means the macro was only invoked conditionally." "$LINENO" 5 9177fi 9178if test -z "${SUN_CXX_TRUE}" && test -z "${SUN_CXX_FALSE}"; then 9179 as_fn_error $? "conditional \"SUN_CXX\" was never defined. 9180Usually this means the macro was only invoked conditionally." "$LINENO" 5 9181fi 9182if test -z "${HAVE_SYS_UN_H_TRUE}" && test -z "${HAVE_SYS_UN_H_FALSE}"; then 9183 as_fn_error $? "conditional \"HAVE_SYS_UN_H\" was never defined. 9184Usually this means the macro was only invoked conditionally." "$LINENO" 5 9185fi 9186if test -z "${APPBUNDLE_TRUE}" && test -z "${APPBUNDLE_FALSE}"; then 9187 as_fn_error $? "conditional \"APPBUNDLE\" was never defined. 9188Usually this means the macro was only invoked conditionally." "$LINENO" 5 9189fi 9190if test -z "${BUILD_DEBUG_TRUE}" && test -z "${BUILD_DEBUG_FALSE}"; then 9191 as_fn_error $? "conditional \"BUILD_DEBUG\" was never defined. 9192Usually this means the macro was only invoked conditionally." "$LINENO" 5 9193fi 9194if test -z "${INSTALL_DOCS_TRUE}" && test -z "${INSTALL_DOCS_FALSE}"; then 9195 as_fn_error $? "conditional \"INSTALL_DOCS\" was never defined. 9196Usually this means the macro was only invoked conditionally." "$LINENO" 5 9197fi 9198if test -z "${EDB_LIBPQ_TRUE}" && test -z "${EDB_LIBPQ_FALSE}"; then 9199 as_fn_error $? "conditional \"EDB_LIBPQ\" was never defined. 9200Usually this means the macro was only invoked conditionally." "$LINENO" 5 9201fi 9202if test -z "${BUILD_SSH_TUNNEL_TRUE}" && test -z "${BUILD_SSH_TUNNEL_FALSE}"; then 9203 as_fn_error $? "conditional \"BUILD_SSH_TUNNEL\" was never defined. 9204Usually this means the macro was only invoked conditionally." "$LINENO" 5 9205fi 9206if test -z "${LIBGCRYPT_TRUE}" && test -z "${LIBGCRYPT_FALSE}"; then 9207 as_fn_error $? "conditional \"LIBGCRYPT\" was never defined. 9208Usually this means the macro was only invoked conditionally." "$LINENO" 5 9209fi 9210if test -z "${SPHINX_BUILD_TRUE}" && test -z "${SPHINX_BUILD_FALSE}"; then 9211 as_fn_error $? "conditional \"SPHINX_BUILD\" was never defined. 9212Usually this means the macro was only invoked conditionally." "$LINENO" 5 9213fi 9214 9215: "${CONFIG_STATUS=./config.status}" 9216ac_write_fail=0 9217ac_clean_files_save=$ac_clean_files 9218ac_clean_files="$ac_clean_files $CONFIG_STATUS" 9219{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 9220$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 9221as_write_fail=0 9222cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 9223#! $SHELL 9224# Generated by $as_me. 9225# Run this file to recreate the current configuration. 9226# Compiler output produced by configure, useful for debugging 9227# configure, is in config.log if it exists. 9228 9229debug=false 9230ac_cs_recheck=false 9231ac_cs_silent=false 9232 9233SHELL=\${CONFIG_SHELL-$SHELL} 9234export SHELL 9235_ASEOF 9236cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 9237## -------------------- ## 9238## M4sh Initialization. ## 9239## -------------------- ## 9240 9241# Be more Bourne compatible 9242DUALCASE=1; export DUALCASE # for MKS sh 9243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 9244 emulate sh 9245 NULLCMD=: 9246 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 9247 # is contrary to our usage. Disable this feature. 9248 alias -g '${1+"$@"}'='"$@"' 9249 setopt NO_GLOB_SUBST 9250else 9251 case `(set -o) 2>/dev/null` in #( 9252 *posix*) : 9253 set -o posix ;; #( 9254 *) : 9255 ;; 9256esac 9257fi 9258 9259 9260as_nl=' 9261' 9262export as_nl 9263# Printing a long string crashes Solaris 7 /usr/bin/printf. 9264as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 9265as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 9266as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 9267# Prefer a ksh shell builtin over an external printf program on Solaris, 9268# but without wasting forks for bash or zsh. 9269if test -z "$BASH_VERSION$ZSH_VERSION" \ 9270 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 9271 as_echo='print -r --' 9272 as_echo_n='print -rn --' 9273elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 9274 as_echo='printf %s\n' 9275 as_echo_n='printf %s' 9276else 9277 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 9278 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 9279 as_echo_n='/usr/ucb/echo -n' 9280 else 9281 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 9282 as_echo_n_body='eval 9283 arg=$1; 9284 case $arg in #( 9285 *"$as_nl"*) 9286 expr "X$arg" : "X\\(.*\\)$as_nl"; 9287 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 9288 esac; 9289 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 9290 ' 9291 export as_echo_n_body 9292 as_echo_n='sh -c $as_echo_n_body as_echo' 9293 fi 9294 export as_echo_body 9295 as_echo='sh -c $as_echo_body as_echo' 9296fi 9297 9298# The user is always right. 9299if test "${PATH_SEPARATOR+set}" != set; then 9300 PATH_SEPARATOR=: 9301 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 9302 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 9303 PATH_SEPARATOR=';' 9304 } 9305fi 9306 9307 9308# IFS 9309# We need space, tab and new line, in precisely that order. Quoting is 9310# there to prevent editors from complaining about space-tab. 9311# (If _AS_PATH_WALK were called with IFS unset, it would disable word 9312# splitting by setting IFS to empty value.) 9313IFS=" "" $as_nl" 9314 9315# Find who we are. Look in the path if we contain no directory separator. 9316as_myself= 9317case $0 in #(( 9318 *[\\/]* ) as_myself=$0 ;; 9319 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9320for as_dir in $PATH 9321do 9322 IFS=$as_save_IFS 9323 test -z "$as_dir" && as_dir=. 9324 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 9325 done 9326IFS=$as_save_IFS 9327 9328 ;; 9329esac 9330# We did not find ourselves, most probably we were run as `sh COMMAND' 9331# in which case we are not to be found in the path. 9332if test "x$as_myself" = x; then 9333 as_myself=$0 9334fi 9335if test ! -f "$as_myself"; then 9336 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 9337 exit 1 9338fi 9339 9340# Unset variables that we do not need and which cause bugs (e.g. in 9341# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 9342# suppresses any "Segmentation fault" message there. '((' could 9343# trigger a bug in pdksh 5.2.14. 9344for as_var in BASH_ENV ENV MAIL MAILPATH 9345do eval test x\${$as_var+set} = xset \ 9346 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 9347done 9348PS1='$ ' 9349PS2='> ' 9350PS4='+ ' 9351 9352# NLS nuisances. 9353LC_ALL=C 9354export LC_ALL 9355LANGUAGE=C 9356export LANGUAGE 9357 9358# CDPATH. 9359(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9360 9361 9362# as_fn_error STATUS ERROR [LINENO LOG_FD] 9363# ---------------------------------------- 9364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 9365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 9366# script with STATUS, using 1 if that was 0. 9367as_fn_error () 9368{ 9369 as_status=$1; test $as_status -eq 0 && as_status=1 9370 if test "$4"; then 9371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 9372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 9373 fi 9374 $as_echo "$as_me: error: $2" >&2 9375 as_fn_exit $as_status 9376} # as_fn_error 9377 9378 9379# as_fn_set_status STATUS 9380# ----------------------- 9381# Set $? to STATUS, without forking. 9382as_fn_set_status () 9383{ 9384 return $1 9385} # as_fn_set_status 9386 9387# as_fn_exit STATUS 9388# ----------------- 9389# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 9390as_fn_exit () 9391{ 9392 set +e 9393 as_fn_set_status $1 9394 exit $1 9395} # as_fn_exit 9396 9397# as_fn_unset VAR 9398# --------------- 9399# Portably unset VAR. 9400as_fn_unset () 9401{ 9402 { eval $1=; unset $1;} 9403} 9404as_unset=as_fn_unset 9405# as_fn_append VAR VALUE 9406# ---------------------- 9407# Append the text in VALUE to the end of the definition contained in VAR. Take 9408# advantage of any shell optimizations that allow amortized linear growth over 9409# repeated appends, instead of the typical quadratic growth present in naive 9410# implementations. 9411if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 9412 eval 'as_fn_append () 9413 { 9414 eval $1+=\$2 9415 }' 9416else 9417 as_fn_append () 9418 { 9419 eval $1=\$$1\$2 9420 } 9421fi # as_fn_append 9422 9423# as_fn_arith ARG... 9424# ------------------ 9425# Perform arithmetic evaluation on the ARGs, and store the result in the 9426# global $as_val. Take advantage of shells that can avoid forks. The arguments 9427# must be portable across $(()) and expr. 9428if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 9429 eval 'as_fn_arith () 9430 { 9431 as_val=$(( $* )) 9432 }' 9433else 9434 as_fn_arith () 9435 { 9436 as_val=`expr "$@" || test $? -eq 1` 9437 } 9438fi # as_fn_arith 9439 9440 9441if expr a : '\(a\)' >/dev/null 2>&1 && 9442 test "X`expr 00001 : '.*\(...\)'`" = X001; then 9443 as_expr=expr 9444else 9445 as_expr=false 9446fi 9447 9448if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 9449 as_basename=basename 9450else 9451 as_basename=false 9452fi 9453 9454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 9455 as_dirname=dirname 9456else 9457 as_dirname=false 9458fi 9459 9460as_me=`$as_basename -- "$0" || 9461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 9462 X"$0" : 'X\(//\)$' \| \ 9463 X"$0" : 'X\(/\)' \| . 2>/dev/null || 9464$as_echo X/"$0" | 9465 sed '/^.*\/\([^/][^/]*\)\/*$/{ 9466 s//\1/ 9467 q 9468 } 9469 /^X\/\(\/\/\)$/{ 9470 s//\1/ 9471 q 9472 } 9473 /^X\/\(\/\).*/{ 9474 s//\1/ 9475 q 9476 } 9477 s/.*/./; q'` 9478 9479# Avoid depending upon Character Ranges. 9480as_cr_letters='abcdefghijklmnopqrstuvwxyz' 9481as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 9482as_cr_Letters=$as_cr_letters$as_cr_LETTERS 9483as_cr_digits='0123456789' 9484as_cr_alnum=$as_cr_Letters$as_cr_digits 9485 9486ECHO_C= ECHO_N= ECHO_T= 9487case `echo -n x` in #((((( 9488-n*) 9489 case `echo 'xy\c'` in 9490 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 9491 xy) ECHO_C='\c';; 9492 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 9493 ECHO_T=' ';; 9494 esac;; 9495*) 9496 ECHO_N='-n';; 9497esac 9498 9499rm -f conf$$ conf$$.exe conf$$.file 9500if test -d conf$$.dir; then 9501 rm -f conf$$.dir/conf$$.file 9502else 9503 rm -f conf$$.dir 9504 mkdir conf$$.dir 2>/dev/null 9505fi 9506if (echo >conf$$.file) 2>/dev/null; then 9507 if ln -s conf$$.file conf$$ 2>/dev/null; then 9508 as_ln_s='ln -s' 9509 # ... but there are two gotchas: 9510 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 9511 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 9512 # In both cases, we have to default to `cp -pR'. 9513 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 9514 as_ln_s='cp -pR' 9515 elif ln conf$$.file conf$$ 2>/dev/null; then 9516 as_ln_s=ln 9517 else 9518 as_ln_s='cp -pR' 9519 fi 9520else 9521 as_ln_s='cp -pR' 9522fi 9523rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 9524rmdir conf$$.dir 2>/dev/null 9525 9526 9527# as_fn_mkdir_p 9528# ------------- 9529# Create "$as_dir" as a directory, including parents if necessary. 9530as_fn_mkdir_p () 9531{ 9532 9533 case $as_dir in #( 9534 -*) as_dir=./$as_dir;; 9535 esac 9536 test -d "$as_dir" || eval $as_mkdir_p || { 9537 as_dirs= 9538 while :; do 9539 case $as_dir in #( 9540 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 9541 *) as_qdir=$as_dir;; 9542 esac 9543 as_dirs="'$as_qdir' $as_dirs" 9544 as_dir=`$as_dirname -- "$as_dir" || 9545$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9546 X"$as_dir" : 'X\(//\)[^/]' \| \ 9547 X"$as_dir" : 'X\(//\)$' \| \ 9548 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 9549$as_echo X"$as_dir" | 9550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9551 s//\1/ 9552 q 9553 } 9554 /^X\(\/\/\)[^/].*/{ 9555 s//\1/ 9556 q 9557 } 9558 /^X\(\/\/\)$/{ 9559 s//\1/ 9560 q 9561 } 9562 /^X\(\/\).*/{ 9563 s//\1/ 9564 q 9565 } 9566 s/.*/./; q'` 9567 test -d "$as_dir" && break 9568 done 9569 test -z "$as_dirs" || eval "mkdir $as_dirs" 9570 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 9571 9572 9573} # as_fn_mkdir_p 9574if mkdir -p . 2>/dev/null; then 9575 as_mkdir_p='mkdir -p "$as_dir"' 9576else 9577 test -d ./-p && rmdir ./-p 9578 as_mkdir_p=false 9579fi 9580 9581 9582# as_fn_executable_p FILE 9583# ----------------------- 9584# Test if FILE is an executable regular file. 9585as_fn_executable_p () 9586{ 9587 test -f "$1" && test -x "$1" 9588} # as_fn_executable_p 9589as_test_x='test -x' 9590as_executable_p=as_fn_executable_p 9591 9592# Sed expression to map a string onto a valid CPP name. 9593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 9594 9595# Sed expression to map a string onto a valid variable name. 9596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 9597 9598 9599exec 6>&1 9600## ----------------------------------- ## 9601## Main body of $CONFIG_STATUS script. ## 9602## ----------------------------------- ## 9603_ASEOF 9604test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 9605 9606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9607# Save the log message, to keep $0 and so on meaningful, and to 9608# report actual input values of CONFIG_FILES etc. instead of their 9609# values after options handling. 9610ac_log=" 9611This file was extended by pgadmin3 $as_me 1.22.2, which was 9612generated by GNU Autoconf 2.69. Invocation command line was 9613 9614 CONFIG_FILES = $CONFIG_FILES 9615 CONFIG_HEADERS = $CONFIG_HEADERS 9616 CONFIG_LINKS = $CONFIG_LINKS 9617 CONFIG_COMMANDS = $CONFIG_COMMANDS 9618 $ $0 $@ 9619 9620on `(hostname || uname -n) 2>/dev/null | sed 1q` 9621" 9622 9623_ACEOF 9624 9625case $ac_config_files in *" 9626"*) set x $ac_config_files; shift; ac_config_files=$*;; 9627esac 9628 9629case $ac_config_headers in *" 9630"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 9631esac 9632 9633 9634cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9635# Files that config.status was made for. 9636config_files="$ac_config_files" 9637config_headers="$ac_config_headers" 9638config_commands="$ac_config_commands" 9639 9640_ACEOF 9641 9642cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9643ac_cs_usage="\ 9644\`$as_me' instantiates files and other configuration actions 9645from templates according to the current configuration. Unless the files 9646and actions are specified as TAGs, all are instantiated by default. 9647 9648Usage: $0 [OPTION]... [TAG]... 9649 9650 -h, --help print this help, then exit 9651 -V, --version print version number and configuration settings, then exit 9652 --config print configuration, then exit 9653 -q, --quiet, --silent 9654 do not print progress messages 9655 -d, --debug don't remove temporary files 9656 --recheck update $as_me by reconfiguring in the same conditions 9657 --file=FILE[:TEMPLATE] 9658 instantiate the configuration file FILE 9659 --header=FILE[:TEMPLATE] 9660 instantiate the configuration header FILE 9661 9662Configuration files: 9663$config_files 9664 9665Configuration headers: 9666$config_headers 9667 9668Configuration commands: 9669$config_commands 9670 9671Report bugs to <pgadmin-support@postgresql.org>." 9672 9673_ACEOF 9674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9675ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 9676ac_cs_version="\\ 9677pgadmin3 config.status 1.22.2 9678configured by $0, generated by GNU Autoconf 2.69, 9679 with options \\"\$ac_cs_config\\" 9680 9681Copyright (C) 2012 Free Software Foundation, Inc. 9682This config.status script is free software; the Free Software Foundation 9683gives unlimited permission to copy, distribute and modify it." 9684 9685ac_pwd='$ac_pwd' 9686srcdir='$srcdir' 9687INSTALL='$INSTALL' 9688MKDIR_P='$MKDIR_P' 9689AWK='$AWK' 9690test -n "\$AWK" || AWK=awk 9691_ACEOF 9692 9693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9694# The default lists apply if the user does not specify any file. 9695ac_need_defaults=: 9696while test $# != 0 9697do 9698 case $1 in 9699 --*=?*) 9700 ac_option=`expr "X$1" : 'X\([^=]*\)='` 9701 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 9702 ac_shift=: 9703 ;; 9704 --*=) 9705 ac_option=`expr "X$1" : 'X\([^=]*\)='` 9706 ac_optarg= 9707 ac_shift=: 9708 ;; 9709 *) 9710 ac_option=$1 9711 ac_optarg=$2 9712 ac_shift=shift 9713 ;; 9714 esac 9715 9716 case $ac_option in 9717 # Handling of the options. 9718 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 9719 ac_cs_recheck=: ;; 9720 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 9721 $as_echo "$ac_cs_version"; exit ;; 9722 --config | --confi | --conf | --con | --co | --c ) 9723 $as_echo "$ac_cs_config"; exit ;; 9724 --debug | --debu | --deb | --de | --d | -d ) 9725 debug=: ;; 9726 --file | --fil | --fi | --f ) 9727 $ac_shift 9728 case $ac_optarg in 9729 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 9730 '') as_fn_error $? "missing file argument" ;; 9731 esac 9732 as_fn_append CONFIG_FILES " '$ac_optarg'" 9733 ac_need_defaults=false;; 9734 --header | --heade | --head | --hea ) 9735 $ac_shift 9736 case $ac_optarg in 9737 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 9738 esac 9739 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 9740 ac_need_defaults=false;; 9741 --he | --h) 9742 # Conflict between --help and --header 9743 as_fn_error $? "ambiguous option: \`$1' 9744Try \`$0 --help' for more information.";; 9745 --help | --hel | -h ) 9746 $as_echo "$ac_cs_usage"; exit ;; 9747 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 9748 | -silent | --silent | --silen | --sile | --sil | --si | --s) 9749 ac_cs_silent=: ;; 9750 9751 # This is an error. 9752 -*) as_fn_error $? "unrecognized option: \`$1' 9753Try \`$0 --help' for more information." ;; 9754 9755 *) as_fn_append ac_config_targets " $1" 9756 ac_need_defaults=false ;; 9757 9758 esac 9759 shift 9760done 9761 9762ac_configure_extra_args= 9763 9764if $ac_cs_silent; then 9765 exec 6>/dev/null 9766 ac_configure_extra_args="$ac_configure_extra_args --silent" 9767fi 9768 9769_ACEOF 9770cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9771if \$ac_cs_recheck; then 9772 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 9773 shift 9774 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 9775 CONFIG_SHELL='$SHELL' 9776 export CONFIG_SHELL 9777 exec "\$@" 9778fi 9779 9780_ACEOF 9781cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9782exec 5>>config.log 9783{ 9784 echo 9785 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 9786## Running $as_me. ## 9787_ASBOX 9788 $as_echo "$ac_log" 9789} >&5 9790 9791_ACEOF 9792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9793# 9794# INIT-COMMANDS 9795# 9796AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 9797 9798_ACEOF 9799 9800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9801 9802# Handling of arguments. 9803for ac_config_target in $ac_config_targets 9804do 9805 case $ac_config_target in 9806 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 9807 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 9808 "pgadmin/include/libssh2/libssh2_config.h") CONFIG_HEADERS="$CONFIG_HEADERS pgadmin/include/libssh2/libssh2_config.h" ;; 9809 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 9810 "branding/Makefile") CONFIG_FILES="$CONFIG_FILES branding/Makefile" ;; 9811 "i18n/Makefile") CONFIG_FILES="$CONFIG_FILES i18n/Makefile" ;; 9812 "plugins.d/Makefile") CONFIG_FILES="$CONFIG_FILES plugins.d/Makefile" ;; 9813 "pgadmin/Makefile") CONFIG_FILES="$CONFIG_FILES pgadmin/Makefile" ;; 9814 "pkg/Makefile") CONFIG_FILES="$CONFIG_FILES pkg/Makefile" ;; 9815 "pkg/debian/Makefile") CONFIG_FILES="$CONFIG_FILES pkg/debian/Makefile" ;; 9816 "pkg/mac/Makefile") CONFIG_FILES="$CONFIG_FILES pkg/mac/Makefile" ;; 9817 "pkg/mandrake/Makefile") CONFIG_FILES="$CONFIG_FILES pkg/mandrake/Makefile" ;; 9818 "pkg/redhat/Makefile") CONFIG_FILES="$CONFIG_FILES pkg/redhat/Makefile" ;; 9819 "pkg/slackware/Makefile") CONFIG_FILES="$CONFIG_FILES pkg/slackware/Makefile" ;; 9820 "pkg/src/Makefile") CONFIG_FILES="$CONFIG_FILES pkg/src/Makefile" ;; 9821 "pkg/suse/Makefile") CONFIG_FILES="$CONFIG_FILES pkg/suse/Makefile" ;; 9822 "pkg/win32/Makefile") CONFIG_FILES="$CONFIG_FILES pkg/win32/Makefile" ;; 9823 "xtra/Makefile") CONFIG_FILES="$CONFIG_FILES xtra/Makefile" ;; 9824 "xtra/png2c/Makefile") CONFIG_FILES="$CONFIG_FILES xtra/png2c/Makefile" ;; 9825 "xtra/wx-build/Makefile") CONFIG_FILES="$CONFIG_FILES xtra/wx-build/Makefile" ;; 9826 9827 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 9828 esac 9829done 9830 9831 9832# If the user did not use the arguments to specify the items to instantiate, 9833# then the envvar interface is used. Set only those that are not. 9834# We use the long form for the default assignment because of an extremely 9835# bizarre bug on SunOS 4.1.3. 9836if $ac_need_defaults; then 9837 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 9838 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 9839 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 9840fi 9841 9842# Have a temporary directory for convenience. Make it in the build tree 9843# simply because there is no reason against having it here, and in addition, 9844# creating and moving files from /tmp can sometimes cause problems. 9845# Hook for its removal unless debugging. 9846# Note that there is a small window in which the directory will not be cleaned: 9847# after its creation but before its name has been assigned to `$tmp'. 9848$debug || 9849{ 9850 tmp= ac_tmp= 9851 trap 'exit_status=$? 9852 : "${ac_tmp:=$tmp}" 9853 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 9854' 0 9855 trap 'as_fn_exit 1' 1 2 13 15 9856} 9857# Create a (secure) tmp directory for tmp files. 9858 9859{ 9860 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 9861 test -d "$tmp" 9862} || 9863{ 9864 tmp=./conf$$-$RANDOM 9865 (umask 077 && mkdir "$tmp") 9866} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 9867ac_tmp=$tmp 9868 9869# Set up the scripts for CONFIG_FILES section. 9870# No need to generate them if there are no CONFIG_FILES. 9871# This happens for instance with `./config.status config.h'. 9872if test -n "$CONFIG_FILES"; then 9873 9874 9875ac_cr=`echo X | tr X '\015'` 9876# On cygwin, bash can eat \r inside `` if the user requested igncr. 9877# But we know of no other shell where ac_cr would be empty at this 9878# point, so we can use a bashism as a fallback. 9879if test "x$ac_cr" = x; then 9880 eval ac_cr=\$\'\\r\' 9881fi 9882ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 9883if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 9884 ac_cs_awk_cr='\\r' 9885else 9886 ac_cs_awk_cr=$ac_cr 9887fi 9888 9889echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 9890_ACEOF 9891 9892 9893{ 9894 echo "cat >conf$$subs.awk <<_ACEOF" && 9895 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 9896 echo "_ACEOF" 9897} >conf$$subs.sh || 9898 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9899ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 9900ac_delim='%!_!# ' 9901for ac_last_try in false false false false false :; do 9902 . ./conf$$subs.sh || 9903 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9904 9905 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 9906 if test $ac_delim_n = $ac_delim_num; then 9907 break 9908 elif $ac_last_try; then 9909 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9910 else 9911 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9912 fi 9913done 9914rm -f conf$$subs.sh 9915 9916cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9917cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 9918_ACEOF 9919sed -n ' 9920h 9921s/^/S["/; s/!.*/"]=/ 9922p 9923g 9924s/^[^!]*!// 9925:repl 9926t repl 9927s/'"$ac_delim"'$// 9928t delim 9929:nl 9930h 9931s/\(.\{148\}\)..*/\1/ 9932t more1 9933s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 9934p 9935n 9936b repl 9937:more1 9938s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9939p 9940g 9941s/.\{148\}// 9942t nl 9943:delim 9944h 9945s/\(.\{148\}\)..*/\1/ 9946t more2 9947s/["\\]/\\&/g; s/^/"/; s/$/"/ 9948p 9949b 9950:more2 9951s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9952p 9953g 9954s/.\{148\}// 9955t delim 9956' <conf$$subs.awk | sed ' 9957/^[^""]/{ 9958 N 9959 s/\n// 9960} 9961' >>$CONFIG_STATUS || ac_write_fail=1 9962rm -f conf$$subs.awk 9963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9964_ACAWK 9965cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 9966 for (key in S) S_is_set[key] = 1 9967 FS = "" 9968 9969} 9970{ 9971 line = $ 0 9972 nfields = split(line, field, "@") 9973 substed = 0 9974 len = length(field[1]) 9975 for (i = 2; i < nfields; i++) { 9976 key = field[i] 9977 keylen = length(key) 9978 if (S_is_set[key]) { 9979 value = S[key] 9980 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 9981 len += length(value) + length(field[++i]) 9982 substed = 1 9983 } else 9984 len += 1 + keylen 9985 } 9986 9987 print line 9988} 9989 9990_ACAWK 9991_ACEOF 9992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9993if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 9994 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 9995else 9996 cat 9997fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 9998 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 9999_ACEOF 10000 10001# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 10002# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 10003# trailing colons and then remove the whole line if VPATH becomes empty 10004# (actually we leave an empty line to preserve line numbers). 10005if test "x$srcdir" = x.; then 10006 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 10007h 10008s/// 10009s/^/:/ 10010s/[ ]*$/:/ 10011s/:\$(srcdir):/:/g 10012s/:\${srcdir}:/:/g 10013s/:@srcdir@:/:/g 10014s/^:*// 10015s/:*$// 10016x 10017s/\(=[ ]*\).*/\1/ 10018G 10019s/\n// 10020s/^[^=]*=[ ]*$// 10021}' 10022fi 10023 10024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10025fi # test -n "$CONFIG_FILES" 10026 10027# Set up the scripts for CONFIG_HEADERS section. 10028# No need to generate them if there are no CONFIG_HEADERS. 10029# This happens for instance with `./config.status Makefile'. 10030if test -n "$CONFIG_HEADERS"; then 10031cat >"$ac_tmp/defines.awk" <<\_ACAWK || 10032BEGIN { 10033_ACEOF 10034 10035# Transform confdefs.h into an awk script `defines.awk', embedded as 10036# here-document in config.status, that substitutes the proper values into 10037# config.h.in to produce config.h. 10038 10039# Create a delimiter string that does not exist in confdefs.h, to ease 10040# handling of long lines. 10041ac_delim='%!_!# ' 10042for ac_last_try in false false :; do 10043 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 10044 if test -z "$ac_tt"; then 10045 break 10046 elif $ac_last_try; then 10047 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 10048 else 10049 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10050 fi 10051done 10052 10053# For the awk script, D is an array of macro values keyed by name, 10054# likewise P contains macro parameters if any. Preserve backslash 10055# newline sequences. 10056 10057ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 10058sed -n ' 10059s/.\{148\}/&'"$ac_delim"'/g 10060t rset 10061:rset 10062s/^[ ]*#[ ]*define[ ][ ]*/ / 10063t def 10064d 10065:def 10066s/\\$// 10067t bsnl 10068s/["\\]/\\&/g 10069s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 10070D["\1"]=" \3"/p 10071s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 10072d 10073:bsnl 10074s/["\\]/\\&/g 10075s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 10076D["\1"]=" \3\\\\\\n"\\/p 10077t cont 10078s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 10079t cont 10080d 10081:cont 10082n 10083s/.\{148\}/&'"$ac_delim"'/g 10084t clear 10085:clear 10086s/\\$// 10087t bsnlc 10088s/["\\]/\\&/g; s/^/"/; s/$/"/p 10089d 10090:bsnlc 10091s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 10092b cont 10093' <confdefs.h | sed ' 10094s/'"$ac_delim"'/"\\\ 10095"/g' >>$CONFIG_STATUS || ac_write_fail=1 10096 10097cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10098 for (key in D) D_is_set[key] = 1 10099 FS = "" 10100} 10101/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 10102 line = \$ 0 10103 split(line, arg, " ") 10104 if (arg[1] == "#") { 10105 defundef = arg[2] 10106 mac1 = arg[3] 10107 } else { 10108 defundef = substr(arg[1], 2) 10109 mac1 = arg[2] 10110 } 10111 split(mac1, mac2, "(") #) 10112 macro = mac2[1] 10113 prefix = substr(line, 1, index(line, defundef) - 1) 10114 if (D_is_set[macro]) { 10115 # Preserve the white space surrounding the "#". 10116 print prefix "define", macro P[macro] D[macro] 10117 next 10118 } else { 10119 # Replace #undef with comments. This is necessary, for example, 10120 # in the case of _POSIX_SOURCE, which is predefined and required 10121 # on some systems where configure will not decide to define it. 10122 if (defundef == "undef") { 10123 print "/*", prefix defundef, macro, "*/" 10124 next 10125 } 10126 } 10127} 10128{ print } 10129_ACAWK 10130_ACEOF 10131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10132 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 10133fi # test -n "$CONFIG_HEADERS" 10134 10135 10136eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 10137shift 10138for ac_tag 10139do 10140 case $ac_tag in 10141 :[FHLC]) ac_mode=$ac_tag; continue;; 10142 esac 10143 case $ac_mode$ac_tag in 10144 :[FHL]*:*);; 10145 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 10146 :[FH]-) ac_tag=-:-;; 10147 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 10148 esac 10149 ac_save_IFS=$IFS 10150 IFS=: 10151 set x $ac_tag 10152 IFS=$ac_save_IFS 10153 shift 10154 ac_file=$1 10155 shift 10156 10157 case $ac_mode in 10158 :L) ac_source=$1;; 10159 :[FH]) 10160 ac_file_inputs= 10161 for ac_f 10162 do 10163 case $ac_f in 10164 -) ac_f="$ac_tmp/stdin";; 10165 *) # Look for the file first in the build tree, then in the source tree 10166 # (if the path is not absolute). The absolute path cannot be DOS-style, 10167 # because $ac_f cannot contain `:'. 10168 test -f "$ac_f" || 10169 case $ac_f in 10170 [\\/$]*) false;; 10171 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 10172 esac || 10173 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 10174 esac 10175 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 10176 as_fn_append ac_file_inputs " '$ac_f'" 10177 done 10178 10179 # Let's still pretend it is `configure' which instantiates (i.e., don't 10180 # use $as_me), people would be surprised to read: 10181 # /* config.h. Generated by config.status. */ 10182 configure_input='Generated from '` 10183 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 10184 `' by configure.' 10185 if test x"$ac_file" != x-; then 10186 configure_input="$ac_file. $configure_input" 10187 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 10188$as_echo "$as_me: creating $ac_file" >&6;} 10189 fi 10190 # Neutralize special characters interpreted by sed in replacement strings. 10191 case $configure_input in #( 10192 *\&* | *\|* | *\\* ) 10193 ac_sed_conf_input=`$as_echo "$configure_input" | 10194 sed 's/[\\\\&|]/\\\\&/g'`;; #( 10195 *) ac_sed_conf_input=$configure_input;; 10196 esac 10197 10198 case $ac_tag in 10199 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 10200 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 10201 esac 10202 ;; 10203 esac 10204 10205 ac_dir=`$as_dirname -- "$ac_file" || 10206$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10207 X"$ac_file" : 'X\(//\)[^/]' \| \ 10208 X"$ac_file" : 'X\(//\)$' \| \ 10209 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 10210$as_echo X"$ac_file" | 10211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10212 s//\1/ 10213 q 10214 } 10215 /^X\(\/\/\)[^/].*/{ 10216 s//\1/ 10217 q 10218 } 10219 /^X\(\/\/\)$/{ 10220 s//\1/ 10221 q 10222 } 10223 /^X\(\/\).*/{ 10224 s//\1/ 10225 q 10226 } 10227 s/.*/./; q'` 10228 as_dir="$ac_dir"; as_fn_mkdir_p 10229 ac_builddir=. 10230 10231case "$ac_dir" in 10232.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 10233*) 10234 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 10235 # A ".." for each directory in $ac_dir_suffix. 10236 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 10237 case $ac_top_builddir_sub in 10238 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 10239 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 10240 esac ;; 10241esac 10242ac_abs_top_builddir=$ac_pwd 10243ac_abs_builddir=$ac_pwd$ac_dir_suffix 10244# for backward compatibility: 10245ac_top_builddir=$ac_top_build_prefix 10246 10247case $srcdir in 10248 .) # We are building in place. 10249 ac_srcdir=. 10250 ac_top_srcdir=$ac_top_builddir_sub 10251 ac_abs_top_srcdir=$ac_pwd ;; 10252 [\\/]* | ?:[\\/]* ) # Absolute name. 10253 ac_srcdir=$srcdir$ac_dir_suffix; 10254 ac_top_srcdir=$srcdir 10255 ac_abs_top_srcdir=$srcdir ;; 10256 *) # Relative name. 10257 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 10258 ac_top_srcdir=$ac_top_build_prefix$srcdir 10259 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 10260esac 10261ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 10262 10263 10264 case $ac_mode in 10265 :F) 10266 # 10267 # CONFIG_FILE 10268 # 10269 10270 case $INSTALL in 10271 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 10272 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 10273 esac 10274 ac_MKDIR_P=$MKDIR_P 10275 case $MKDIR_P in 10276 [\\/$]* | ?:[\\/]* ) ;; 10277 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 10278 esac 10279_ACEOF 10280 10281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10282# If the template does not know about datarootdir, expand it. 10283# FIXME: This hack should be removed a few years after 2.60. 10284ac_datarootdir_hack=; ac_datarootdir_seen= 10285ac_sed_dataroot=' 10286/datarootdir/ { 10287 p 10288 q 10289} 10290/@datadir@/p 10291/@docdir@/p 10292/@infodir@/p 10293/@localedir@/p 10294/@mandir@/p' 10295case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 10296*datarootdir*) ac_datarootdir_seen=yes;; 10297*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 10298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 10299$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 10300_ACEOF 10301cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10302 ac_datarootdir_hack=' 10303 s&@datadir@&$datadir&g 10304 s&@docdir@&$docdir&g 10305 s&@infodir@&$infodir&g 10306 s&@localedir@&$localedir&g 10307 s&@mandir@&$mandir&g 10308 s&\\\${datarootdir}&$datarootdir&g' ;; 10309esac 10310_ACEOF 10311 10312# Neutralize VPATH when `$srcdir' = `.'. 10313# Shell code in configure.ac might set extrasub. 10314# FIXME: do we really want to maintain this feature? 10315cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10316ac_sed_extra="$ac_vpsub 10317$extrasub 10318_ACEOF 10319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10320:t 10321/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 10322s|@configure_input@|$ac_sed_conf_input|;t t 10323s&@top_builddir@&$ac_top_builddir_sub&;t t 10324s&@top_build_prefix@&$ac_top_build_prefix&;t t 10325s&@srcdir@&$ac_srcdir&;t t 10326s&@abs_srcdir@&$ac_abs_srcdir&;t t 10327s&@top_srcdir@&$ac_top_srcdir&;t t 10328s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 10329s&@builddir@&$ac_builddir&;t t 10330s&@abs_builddir@&$ac_abs_builddir&;t t 10331s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 10332s&@INSTALL@&$ac_INSTALL&;t t 10333s&@MKDIR_P@&$ac_MKDIR_P&;t t 10334$ac_datarootdir_hack 10335" 10336eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 10337 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10338 10339test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 10340 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 10341 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 10342 "$ac_tmp/out"`; test -z "$ac_out"; } && 10343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 10344which seems to be undefined. Please make sure it is defined" >&5 10345$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 10346which seems to be undefined. Please make sure it is defined" >&2;} 10347 10348 rm -f "$ac_tmp/stdin" 10349 case $ac_file in 10350 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 10351 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 10352 esac \ 10353 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10354 ;; 10355 :H) 10356 # 10357 # CONFIG_HEADER 10358 # 10359 if test x"$ac_file" != x-; then 10360 { 10361 $as_echo "/* $configure_input */" \ 10362 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 10363 } >"$ac_tmp/config.h" \ 10364 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10365 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 10366 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 10367$as_echo "$as_me: $ac_file is unchanged" >&6;} 10368 else 10369 rm -f "$ac_file" 10370 mv "$ac_tmp/config.h" "$ac_file" \ 10371 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10372 fi 10373 else 10374 $as_echo "/* $configure_input */" \ 10375 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 10376 || as_fn_error $? "could not create -" "$LINENO" 5 10377 fi 10378# Compute "$ac_file"'s index in $config_headers. 10379_am_arg="$ac_file" 10380_am_stamp_count=1 10381for _am_header in $config_headers :; do 10382 case $_am_header in 10383 $_am_arg | $_am_arg:* ) 10384 break ;; 10385 * ) 10386 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 10387 esac 10388done 10389echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 10390$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10391 X"$_am_arg" : 'X\(//\)[^/]' \| \ 10392 X"$_am_arg" : 'X\(//\)$' \| \ 10393 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 10394$as_echo X"$_am_arg" | 10395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10396 s//\1/ 10397 q 10398 } 10399 /^X\(\/\/\)[^/].*/{ 10400 s//\1/ 10401 q 10402 } 10403 /^X\(\/\/\)$/{ 10404 s//\1/ 10405 q 10406 } 10407 /^X\(\/\).*/{ 10408 s//\1/ 10409 q 10410 } 10411 s/.*/./; q'`/stamp-h$_am_stamp_count 10412 ;; 10413 10414 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 10415$as_echo "$as_me: executing $ac_file commands" >&6;} 10416 ;; 10417 esac 10418 10419 10420 case $ac_file$ac_mode in 10421 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 10422 # Older Autoconf quotes --file arguments for eval, but not when files 10423 # are listed without --file. Let's play safe and only enable the eval 10424 # if we detect the quoting. 10425 case $CONFIG_FILES in 10426 *\'*) eval set x "$CONFIG_FILES" ;; 10427 *) set x $CONFIG_FILES ;; 10428 esac 10429 shift 10430 for mf 10431 do 10432 # Strip MF so we end up with the name of the file. 10433 mf=`echo "$mf" | sed -e 's/:.*$//'` 10434 # Check whether this is an Automake generated Makefile or not. 10435 # We used to match only the files named 'Makefile.in', but 10436 # some people rename them; so instead we look at the file content. 10437 # Grep'ing the first line is not enough: some people post-process 10438 # each Makefile.in and add a new line on top of each file to say so. 10439 # Grep'ing the whole file is not good either: AIX grep has a line 10440 # limit of 2048, but all sed's we know have understand at least 4000. 10441 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 10442 dirpart=`$as_dirname -- "$mf" || 10443$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10444 X"$mf" : 'X\(//\)[^/]' \| \ 10445 X"$mf" : 'X\(//\)$' \| \ 10446 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 10447$as_echo X"$mf" | 10448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10449 s//\1/ 10450 q 10451 } 10452 /^X\(\/\/\)[^/].*/{ 10453 s//\1/ 10454 q 10455 } 10456 /^X\(\/\/\)$/{ 10457 s//\1/ 10458 q 10459 } 10460 /^X\(\/\).*/{ 10461 s//\1/ 10462 q 10463 } 10464 s/.*/./; q'` 10465 else 10466 continue 10467 fi 10468 # Extract the definition of DEPDIR, am__include, and am__quote 10469 # from the Makefile without running 'make'. 10470 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 10471 test -z "$DEPDIR" && continue 10472 am__include=`sed -n 's/^am__include = //p' < "$mf"` 10473 test -z "$am__include" && continue 10474 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 10475 # Find all dependency output files, they are included files with 10476 # $(DEPDIR) in their names. We invoke sed twice because it is the 10477 # simplest approach to changing $(DEPDIR) to its actual value in the 10478 # expansion. 10479 for file in `sed -n " 10480 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 10481 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 10482 # Make sure the directory exists. 10483 test -f "$dirpart/$file" && continue 10484 fdir=`$as_dirname -- "$file" || 10485$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10486 X"$file" : 'X\(//\)[^/]' \| \ 10487 X"$file" : 'X\(//\)$' \| \ 10488 X"$file" : 'X\(/\)' \| . 2>/dev/null || 10489$as_echo X"$file" | 10490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10491 s//\1/ 10492 q 10493 } 10494 /^X\(\/\/\)[^/].*/{ 10495 s//\1/ 10496 q 10497 } 10498 /^X\(\/\/\)$/{ 10499 s//\1/ 10500 q 10501 } 10502 /^X\(\/\).*/{ 10503 s//\1/ 10504 q 10505 } 10506 s/.*/./; q'` 10507 as_dir=$dirpart/$fdir; as_fn_mkdir_p 10508 # echo "creating $dirpart/$file" 10509 echo '# dummy' > "$dirpart/$file" 10510 done 10511 done 10512} 10513 ;; 10514 10515 esac 10516done # for ac_tag 10517 10518 10519as_fn_exit 0 10520_ACEOF 10521ac_clean_files=$ac_clean_files_save 10522 10523test $ac_write_fail = 0 || 10524 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 10525 10526 10527# configure is writing to config.log, and then calls config.status. 10528# config.status does its own redirection, appending to config.log. 10529# Unfortunately, on DOS this fails, as config.log is still kept open 10530# by configure, so config.status won't be able to write to it; its 10531# output is simply discarded. So we exec the FD to /dev/null, 10532# effectively closing config.log, so it can be properly (re)opened and 10533# appended to by config.status. When coming back to configure, we 10534# need to make the FD available again. 10535if test "$no_create" != yes; then 10536 ac_cs_success=: 10537 ac_config_status_args= 10538 test "$silent" = yes && 10539 ac_config_status_args="$ac_config_status_args --quiet" 10540 exec 5>/dev/null 10541 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 10542 exec 5>>config.log 10543 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 10544 # would make configure fail if this is the last instruction. 10545 $ac_cs_success || as_fn_exit 1 10546fi 10547if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 10548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 10549$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 10550fi 10551 10552 10553 10554 # Print a configuration summary 10555 echo 10556 echo "PostgreSQL directory: $PG_HOME" 10557 echo "PostgreSQL pg_config binary: $PG_CONFIG" 10558 echo "PostgreSQL version: $PG_VERSION" 10559 echo 10560 if test "$HAVE_CONNINFO_PARSE" = yes 10561 then 10562 echo "PostgreSQL PQconninfoParse support: Present" 10563 else 10564 echo "PostgreSQL PQconninfoParse support: Missing" 10565 fi 10566 if test "$PG_SSL" = yes 10567 then 10568 echo "PostgreSQL SSL support: Present" 10569 else 10570 echo "PostgreSQL SSL support: Missing" 10571 fi 10572 echo 10573 echo "wxWidgets directory: $WX_HOME" 10574 echo "wxWidgets wx-config binary: $WX_CONFIG" 10575 echo "wxWidgets version: wxWidgets "`$WX_CONFIG --version --version=$WX_VERSION` 10576 echo 10577 echo "libxml2 directory: $XML2_HOME" 10578 echo "libxml2 xml2-config binary: $XML2_CONFIG" 10579 echo "libxml2 version: libxml2 "`$XML2_CONFIG --version` 10580 echo 10581 echo "libxslt directory: $XSLT_HOME" 10582 echo "libxslt xslt-config binary: $XSLT_CONFIG" 10583 echo "libxslt version: libxslt "`$XSLT_CONFIG --version` 10584 echo 10585 if test "$HAVE_DATABASEDESIGNER" = yes 10586 then 10587 echo "Building Database Designer: Yes" 10588 else 10589 echo "Building Database Designer: No" 10590 fi 10591 echo 10592 if test "$BUILD_SSH_TUNNEL" = yes 10593 then 10594 echo "Building SSH Tunnel: Yes" 10595 if test "$ac_cv_libssl" = yes 10596 then 10597 echo "Crypto library: OpenSSL" 10598 else test "$ac_cv_libgcrypt" = yes 10599 echo "Crypto library: libgcrypt" 10600 fi 10601 if test "$ac_cv_libz" = yes 10602 then 10603 echo "libz compression: yes" 10604 else 10605 echo "libz compression: no" 10606 fi 10607 else 10608 echo "Building SSH Tunnel: No" 10609 fi 10610 echo 10611 if test "$BUILD_DEBUG" = yes 10612 then 10613 echo "Building a debug version of pgAdmin: Yes" 10614 else 10615 echo "Building a debug version of pgAdmin: No" 10616 fi 10617 if test "$BUILD_STATIC" = yes 10618 then 10619 echo "Statically linking pgAdmin: Yes" 10620 else 10621 echo "Statically linking pgAdmin: No" 10622 fi 10623 if test "$BUILD_APPBUNDLE" = yes 10624 then 10625 echo "Building a Mac OS X appbundle: Yes" 10626 else 10627 echo "Building a Mac OS X appbundle: No" 10628 fi 10629 echo 10630 if test "$SPHINX_BUILD" = "" 10631 then 10632 echo "sphinx-build executable: <not found>" 10633 else 10634 echo "sphinx-build executable: ${SPHINX_BUILD}" 10635 fi 10636 echo 10637 echo "pgAdmin configuration is now complete. You can now compile and" 10638 echo "install pgAdmin using 'make; make install'." 10639 echo 10640 10641