1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for psqlodbc 13.02.0000. 4# 5# Report bugs to <pgsql-odbc@postgresql.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: pgsql-odbc@postgresql.org about your system, including 279$0: any error possibly output before this message. Then 280$0: install a modern shell, or manually run the script 281$0: under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='psqlodbc' 592PACKAGE_TARNAME='psqlodbc' 593PACKAGE_VERSION='13.02.0000' 594PACKAGE_STRING='psqlodbc 13.02.0000' 595PACKAGE_BUGREPORT='pgsql-odbc@postgresql.org' 596PACKAGE_URL='' 597 598ac_unique_file="bind.c" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639OTOOL64 640OTOOL 641LIPO 642NMEDIT 643DSYMUTIL 644MANIFEST_TOOL 645RANLIB 646ac_ct_AR 647AR 648LN_S 649NM 650ac_ct_DUMPBIN 651DUMPBIN 652LD 653FGREP 654SED 655LIBTOOL 656OBJDUMP 657DLLTOOL 658AS 659host_os 660host_vendor 661host_cpu 662host 663build_os 664build_vendor 665build_cpu 666build 667PROVE 668PG_CONFIG 669LIBODBC 670ODBC_CONFIG 671EGREP 672GREP 673CPP 674GCC_FALSE 675GCC_TRUE 676am__fastdepCC_FALSE 677am__fastdepCC_TRUE 678CCDEPMODE 679am__nodep 680AMDEPBACKSLASH 681AMDEP_FALSE 682AMDEP_TRUE 683am__quote 684am__include 685DEPDIR 686OBJEXT 687EXEEXT 688ac_ct_CC 689CPPFLAGS 690LDFLAGS 691CFLAGS 692CC 693MAINT 694MAINTAINER_MODE_FALSE 695MAINTAINER_MODE_TRUE 696AM_BACKSLASH 697AM_DEFAULT_VERBOSITY 698AM_DEFAULT_V 699AM_V 700am__untar 701am__tar 702AMTAR 703am__leading_dot 704SET_MAKE 705AWK 706mkdir_p 707MKDIR_P 708INSTALL_STRIP_PROGRAM 709STRIP 710install_sh 711MAKEINFO 712AUTOHEADER 713AUTOMAKE 714AUTOCONF 715ACLOCAL 716VERSION 717PACKAGE 718CYGPATH_W 719am__isrc 720INSTALL_DATA 721INSTALL_SCRIPT 722INSTALL_PROGRAM 723target_alias 724host_alias 725build_alias 726LIBS 727ECHO_T 728ECHO_N 729ECHO_C 730DEFS 731mandir 732localedir 733libdir 734psdir 735pdfdir 736dvidir 737htmldir 738infodir 739docdir 740oldincludedir 741includedir 742localstatedir 743sharedstatedir 744sysconfdir 745datadir 746datarootdir 747libexecdir 748sbindir 749bindir 750program_transform_name 751prefix 752exec_prefix 753PACKAGE_URL 754PACKAGE_BUGREPORT 755PACKAGE_STRING 756PACKAGE_VERSION 757PACKAGE_TARNAME 758PACKAGE_NAME 759PATH_SEPARATOR 760SHELL' 761ac_subst_files='' 762ac_user_opts=' 763enable_option_checking 764enable_silent_rules 765enable_maintainer_mode 766enable_dependency_tracking 767with_unixodbc 768with_iodbc 769with_libpq 770enable_pthreads 771enable_static 772enable_shared 773with_pic 774enable_fast_install 775with_gnu_ld 776with_sysroot 777enable_libtool_lock 778' 779 ac_precious_vars='build_alias 780host_alias 781target_alias 782CC 783CFLAGS 784LDFLAGS 785LIBS 786CPPFLAGS 787CPP' 788 789 790# Initialize some variables set by options. 791ac_init_help= 792ac_init_version=false 793ac_unrecognized_opts= 794ac_unrecognized_sep= 795# The variables have the same names as the options, with 796# dashes changed to underlines. 797cache_file=/dev/null 798exec_prefix=NONE 799no_create= 800no_recursion= 801prefix=NONE 802program_prefix=NONE 803program_suffix=NONE 804program_transform_name=s,x,x, 805silent= 806site= 807srcdir= 808verbose= 809x_includes=NONE 810x_libraries=NONE 811 812# Installation directory options. 813# These are left unexpanded so users can "make install exec_prefix=/foo" 814# and all the variables that are supposed to be based on exec_prefix 815# by default will actually change. 816# Use braces instead of parens because sh, perl, etc. also accept them. 817# (The list follows the same order as the GNU Coding Standards.) 818bindir='${exec_prefix}/bin' 819sbindir='${exec_prefix}/sbin' 820libexecdir='${exec_prefix}/libexec' 821datarootdir='${prefix}/share' 822datadir='${datarootdir}' 823sysconfdir='${prefix}/etc' 824sharedstatedir='${prefix}/com' 825localstatedir='${prefix}/var' 826includedir='${prefix}/include' 827oldincludedir='/usr/include' 828docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 829infodir='${datarootdir}/info' 830htmldir='${docdir}' 831dvidir='${docdir}' 832pdfdir='${docdir}' 833psdir='${docdir}' 834libdir='${exec_prefix}/lib' 835localedir='${datarootdir}/locale' 836mandir='${datarootdir}/man' 837 838ac_prev= 839ac_dashdash= 840for ac_option 841do 842 # If the previous option needs an argument, assign it. 843 if test -n "$ac_prev"; then 844 eval $ac_prev=\$ac_option 845 ac_prev= 846 continue 847 fi 848 849 case $ac_option in 850 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 851 *=) ac_optarg= ;; 852 *) ac_optarg=yes ;; 853 esac 854 855 # Accept the important Cygnus configure options, so we can diagnose typos. 856 857 case $ac_dashdash$ac_option in 858 --) 859 ac_dashdash=yes ;; 860 861 -bindir | --bindir | --bindi | --bind | --bin | --bi) 862 ac_prev=bindir ;; 863 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 864 bindir=$ac_optarg ;; 865 866 -build | --build | --buil | --bui | --bu) 867 ac_prev=build_alias ;; 868 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 869 build_alias=$ac_optarg ;; 870 871 -cache-file | --cache-file | --cache-fil | --cache-fi \ 872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 873 ac_prev=cache_file ;; 874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 876 cache_file=$ac_optarg ;; 877 878 --config-cache | -C) 879 cache_file=config.cache ;; 880 881 -datadir | --datadir | --datadi | --datad) 882 ac_prev=datadir ;; 883 -datadir=* | --datadir=* | --datadi=* | --datad=*) 884 datadir=$ac_optarg ;; 885 886 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 887 | --dataroo | --dataro | --datar) 888 ac_prev=datarootdir ;; 889 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 890 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 891 datarootdir=$ac_optarg ;; 892 893 -disable-* | --disable-*) 894 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 895 # Reject names that are not valid shell variable names. 896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 897 as_fn_error $? "invalid feature name: $ac_useropt" 898 ac_useropt_orig=$ac_useropt 899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 900 case $ac_user_opts in 901 *" 902"enable_$ac_useropt" 903"*) ;; 904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 905 ac_unrecognized_sep=', ';; 906 esac 907 eval enable_$ac_useropt=no ;; 908 909 -docdir | --docdir | --docdi | --doc | --do) 910 ac_prev=docdir ;; 911 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 912 docdir=$ac_optarg ;; 913 914 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 915 ac_prev=dvidir ;; 916 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 917 dvidir=$ac_optarg ;; 918 919 -enable-* | --enable-*) 920 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 921 # Reject names that are not valid shell variable names. 922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 923 as_fn_error $? "invalid feature name: $ac_useropt" 924 ac_useropt_orig=$ac_useropt 925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 926 case $ac_user_opts in 927 *" 928"enable_$ac_useropt" 929"*) ;; 930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 931 ac_unrecognized_sep=', ';; 932 esac 933 eval enable_$ac_useropt=\$ac_optarg ;; 934 935 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 936 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 937 | --exec | --exe | --ex) 938 ac_prev=exec_prefix ;; 939 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 940 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 941 | --exec=* | --exe=* | --ex=*) 942 exec_prefix=$ac_optarg ;; 943 944 -gas | --gas | --ga | --g) 945 # Obsolete; use --with-gas. 946 with_gas=yes ;; 947 948 -help | --help | --hel | --he | -h) 949 ac_init_help=long ;; 950 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 951 ac_init_help=recursive ;; 952 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 953 ac_init_help=short ;; 954 955 -host | --host | --hos | --ho) 956 ac_prev=host_alias ;; 957 -host=* | --host=* | --hos=* | --ho=*) 958 host_alias=$ac_optarg ;; 959 960 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 961 ac_prev=htmldir ;; 962 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 963 | --ht=*) 964 htmldir=$ac_optarg ;; 965 966 -includedir | --includedir | --includedi | --included | --include \ 967 | --includ | --inclu | --incl | --inc) 968 ac_prev=includedir ;; 969 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 970 | --includ=* | --inclu=* | --incl=* | --inc=*) 971 includedir=$ac_optarg ;; 972 973 -infodir | --infodir | --infodi | --infod | --info | --inf) 974 ac_prev=infodir ;; 975 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 976 infodir=$ac_optarg ;; 977 978 -libdir | --libdir | --libdi | --libd) 979 ac_prev=libdir ;; 980 -libdir=* | --libdir=* | --libdi=* | --libd=*) 981 libdir=$ac_optarg ;; 982 983 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 984 | --libexe | --libex | --libe) 985 ac_prev=libexecdir ;; 986 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 987 | --libexe=* | --libex=* | --libe=*) 988 libexecdir=$ac_optarg ;; 989 990 -localedir | --localedir | --localedi | --localed | --locale) 991 ac_prev=localedir ;; 992 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 993 localedir=$ac_optarg ;; 994 995 -localstatedir | --localstatedir | --localstatedi | --localstated \ 996 | --localstate | --localstat | --localsta | --localst | --locals) 997 ac_prev=localstatedir ;; 998 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 999 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1000 localstatedir=$ac_optarg ;; 1001 1002 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1003 ac_prev=mandir ;; 1004 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1005 mandir=$ac_optarg ;; 1006 1007 -nfp | --nfp | --nf) 1008 # Obsolete; use --without-fp. 1009 with_fp=no ;; 1010 1011 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1012 | --no-cr | --no-c | -n) 1013 no_create=yes ;; 1014 1015 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1016 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1017 no_recursion=yes ;; 1018 1019 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1020 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1021 | --oldin | --oldi | --old | --ol | --o) 1022 ac_prev=oldincludedir ;; 1023 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1024 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1025 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1026 oldincludedir=$ac_optarg ;; 1027 1028 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1029 ac_prev=prefix ;; 1030 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1031 prefix=$ac_optarg ;; 1032 1033 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1034 | --program-pre | --program-pr | --program-p) 1035 ac_prev=program_prefix ;; 1036 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1037 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1038 program_prefix=$ac_optarg ;; 1039 1040 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1041 | --program-suf | --program-su | --program-s) 1042 ac_prev=program_suffix ;; 1043 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1044 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1045 program_suffix=$ac_optarg ;; 1046 1047 -program-transform-name | --program-transform-name \ 1048 | --program-transform-nam | --program-transform-na \ 1049 | --program-transform-n | --program-transform- \ 1050 | --program-transform | --program-transfor \ 1051 | --program-transfo | --program-transf \ 1052 | --program-trans | --program-tran \ 1053 | --progr-tra | --program-tr | --program-t) 1054 ac_prev=program_transform_name ;; 1055 -program-transform-name=* | --program-transform-name=* \ 1056 | --program-transform-nam=* | --program-transform-na=* \ 1057 | --program-transform-n=* | --program-transform-=* \ 1058 | --program-transform=* | --program-transfor=* \ 1059 | --program-transfo=* | --program-transf=* \ 1060 | --program-trans=* | --program-tran=* \ 1061 | --progr-tra=* | --program-tr=* | --program-t=*) 1062 program_transform_name=$ac_optarg ;; 1063 1064 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1065 ac_prev=pdfdir ;; 1066 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1067 pdfdir=$ac_optarg ;; 1068 1069 -psdir | --psdir | --psdi | --psd | --ps) 1070 ac_prev=psdir ;; 1071 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1072 psdir=$ac_optarg ;; 1073 1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1075 | -silent | --silent | --silen | --sile | --sil) 1076 silent=yes ;; 1077 1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1079 ac_prev=sbindir ;; 1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1081 | --sbi=* | --sb=*) 1082 sbindir=$ac_optarg ;; 1083 1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1086 | --sharedst | --shareds | --shared | --share | --shar \ 1087 | --sha | --sh) 1088 ac_prev=sharedstatedir ;; 1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1092 | --sha=* | --sh=*) 1093 sharedstatedir=$ac_optarg ;; 1094 1095 -site | --site | --sit) 1096 ac_prev=site ;; 1097 -site=* | --site=* | --sit=*) 1098 site=$ac_optarg ;; 1099 1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1101 ac_prev=srcdir ;; 1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1103 srcdir=$ac_optarg ;; 1104 1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1106 | --syscon | --sysco | --sysc | --sys | --sy) 1107 ac_prev=sysconfdir ;; 1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1110 sysconfdir=$ac_optarg ;; 1111 1112 -target | --target | --targe | --targ | --tar | --ta | --t) 1113 ac_prev=target_alias ;; 1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1115 target_alias=$ac_optarg ;; 1116 1117 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1118 verbose=yes ;; 1119 1120 -version | --version | --versio | --versi | --vers | -V) 1121 ac_init_version=: ;; 1122 1123 -with-* | --with-*) 1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1125 # Reject names that are not valid shell variable names. 1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1127 as_fn_error $? "invalid package name: $ac_useropt" 1128 ac_useropt_orig=$ac_useropt 1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1130 case $ac_user_opts in 1131 *" 1132"with_$ac_useropt" 1133"*) ;; 1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1135 ac_unrecognized_sep=', ';; 1136 esac 1137 eval with_$ac_useropt=\$ac_optarg ;; 1138 1139 -without-* | --without-*) 1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1141 # Reject names that are not valid shell variable names. 1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1143 as_fn_error $? "invalid package name: $ac_useropt" 1144 ac_useropt_orig=$ac_useropt 1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1146 case $ac_user_opts in 1147 *" 1148"with_$ac_useropt" 1149"*) ;; 1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1151 ac_unrecognized_sep=', ';; 1152 esac 1153 eval with_$ac_useropt=no ;; 1154 1155 --x) 1156 # Obsolete; use --with-x. 1157 with_x=yes ;; 1158 1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1160 | --x-incl | --x-inc | --x-in | --x-i) 1161 ac_prev=x_includes ;; 1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1164 x_includes=$ac_optarg ;; 1165 1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1168 ac_prev=x_libraries ;; 1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1171 x_libraries=$ac_optarg ;; 1172 1173 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1174Try \`$0 --help' for more information" 1175 ;; 1176 1177 *=*) 1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1179 # Reject names that are not valid shell variable names. 1180 case $ac_envvar in #( 1181 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1182 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1183 esac 1184 eval $ac_envvar=\$ac_optarg 1185 export $ac_envvar ;; 1186 1187 *) 1188 # FIXME: should be removed in autoconf 3.0. 1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1192 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1193 ;; 1194 1195 esac 1196done 1197 1198if test -n "$ac_prev"; then 1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1200 as_fn_error $? "missing argument to $ac_option" 1201fi 1202 1203if test -n "$ac_unrecognized_opts"; then 1204 case $enable_option_checking in 1205 no) ;; 1206 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1208 esac 1209fi 1210 1211# Check all directory arguments for consistency. 1212for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1213 datadir sysconfdir sharedstatedir localstatedir includedir \ 1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1215 libdir localedir mandir 1216do 1217 eval ac_val=\$$ac_var 1218 # Remove trailing slashes. 1219 case $ac_val in 1220 */ ) 1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1222 eval $ac_var=\$ac_val;; 1223 esac 1224 # Be sure to have absolute directory names. 1225 case $ac_val in 1226 [\\/$]* | ?:[\\/]* ) continue;; 1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1228 esac 1229 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1230done 1231 1232# There might be people who depend on the old broken behavior: `$host' 1233# used to hold the argument of --host etc. 1234# FIXME: To remove some day. 1235build=$build_alias 1236host=$host_alias 1237target=$target_alias 1238 1239# FIXME: To remove some day. 1240if test "x$host_alias" != x; then 1241 if test "x$build_alias" = x; then 1242 cross_compiling=maybe 1243 elif test "x$build_alias" != "x$host_alias"; then 1244 cross_compiling=yes 1245 fi 1246fi 1247 1248ac_tool_prefix= 1249test -n "$host_alias" && ac_tool_prefix=$host_alias- 1250 1251test "$silent" = yes && exec 6>/dev/null 1252 1253 1254ac_pwd=`pwd` && test -n "$ac_pwd" && 1255ac_ls_di=`ls -di .` && 1256ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1257 as_fn_error $? "working directory cannot be determined" 1258test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1259 as_fn_error $? "pwd does not report name of working directory" 1260 1261 1262# Find the source files, if location was not specified. 1263if test -z "$srcdir"; then 1264 ac_srcdir_defaulted=yes 1265 # Try the directory containing this script, then the parent directory. 1266 ac_confdir=`$as_dirname -- "$as_myself" || 1267$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1268 X"$as_myself" : 'X\(//\)[^/]' \| \ 1269 X"$as_myself" : 'X\(//\)$' \| \ 1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1271$as_echo X"$as_myself" | 1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1273 s//\1/ 1274 q 1275 } 1276 /^X\(\/\/\)[^/].*/{ 1277 s//\1/ 1278 q 1279 } 1280 /^X\(\/\/\)$/{ 1281 s//\1/ 1282 q 1283 } 1284 /^X\(\/\).*/{ 1285 s//\1/ 1286 q 1287 } 1288 s/.*/./; q'` 1289 srcdir=$ac_confdir 1290 if test ! -r "$srcdir/$ac_unique_file"; then 1291 srcdir=.. 1292 fi 1293else 1294 ac_srcdir_defaulted=no 1295fi 1296if test ! -r "$srcdir/$ac_unique_file"; then 1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1298 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1299fi 1300ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1301ac_abs_confdir=`( 1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1303 pwd)` 1304# When building in place, set srcdir=. 1305if test "$ac_abs_confdir" = "$ac_pwd"; then 1306 srcdir=. 1307fi 1308# Remove unnecessary trailing slashes from srcdir. 1309# Double slashes in file names in object file debugging info 1310# mess up M-x gdb in Emacs. 1311case $srcdir in 1312*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1313esac 1314for ac_var in $ac_precious_vars; do 1315 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1316 eval ac_env_${ac_var}_value=\$${ac_var} 1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1318 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1319done 1320 1321# 1322# Report the --help message. 1323# 1324if test "$ac_init_help" = "long"; then 1325 # Omit some internal or obsolete options to make the list less imposing. 1326 # This message is too long to be a string in the A/UX 3.1 sh. 1327 cat <<_ACEOF 1328\`configure' configures psqlodbc 13.02.0000 to adapt to many kinds of systems. 1329 1330Usage: $0 [OPTION]... [VAR=VALUE]... 1331 1332To assign environment variables (e.g., CC, CFLAGS...), specify them as 1333VAR=VALUE. See below for descriptions of some of the useful variables. 1334 1335Defaults for the options are specified in brackets. 1336 1337Configuration: 1338 -h, --help display this help and exit 1339 --help=short display options specific to this package 1340 --help=recursive display the short help of all the included packages 1341 -V, --version display version information and exit 1342 -q, --quiet, --silent do not print \`checking ...' messages 1343 --cache-file=FILE cache test results in FILE [disabled] 1344 -C, --config-cache alias for \`--cache-file=config.cache' 1345 -n, --no-create do not create output files 1346 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1347 1348Installation directories: 1349 --prefix=PREFIX install architecture-independent files in PREFIX 1350 [$ac_default_prefix] 1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1352 [PREFIX] 1353 1354By default, \`make install' will install all the files in 1355\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1356an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1357for instance \`--prefix=\$HOME'. 1358 1359For better control, use the options below. 1360 1361Fine tuning of the installation directories: 1362 --bindir=DIR user executables [EPREFIX/bin] 1363 --sbindir=DIR system admin executables [EPREFIX/sbin] 1364 --libexecdir=DIR program executables [EPREFIX/libexec] 1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1368 --libdir=DIR object code libraries [EPREFIX/lib] 1369 --includedir=DIR C header files [PREFIX/include] 1370 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1373 --infodir=DIR info documentation [DATAROOTDIR/info] 1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1375 --mandir=DIR man documentation [DATAROOTDIR/man] 1376 --docdir=DIR documentation root [DATAROOTDIR/doc/psqlodbc] 1377 --htmldir=DIR html documentation [DOCDIR] 1378 --dvidir=DIR dvi documentation [DOCDIR] 1379 --pdfdir=DIR pdf documentation [DOCDIR] 1380 --psdir=DIR ps documentation [DOCDIR] 1381_ACEOF 1382 1383 cat <<\_ACEOF 1384 1385Program names: 1386 --program-prefix=PREFIX prepend PREFIX to installed program names 1387 --program-suffix=SUFFIX append SUFFIX to installed program names 1388 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1389 1390System types: 1391 --build=BUILD configure for building on BUILD [guessed] 1392 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1393_ACEOF 1394fi 1395 1396if test -n "$ac_init_help"; then 1397 case $ac_init_help in 1398 short | recursive ) echo "Configuration of psqlodbc 13.02.0000:";; 1399 esac 1400 cat <<\_ACEOF 1401 1402Optional Features: 1403 --disable-option-checking ignore unrecognized --enable/--with options 1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1406 --enable-silent-rules less verbose build output (undo: "make V=1") 1407 --disable-silent-rules verbose build output (undo: "make V=0") 1408 --enable-maintainer-mode 1409 enable make rules and dependencies not useful (and 1410 sometimes confusing) to the casual installer 1411 --enable-dependency-tracking 1412 do not reject slow dependency extractors 1413 --disable-dependency-tracking 1414 speeds up one-time build 1415 --disable-pthreads do not build with POSIX threads 1416 --enable-static[=PKGS] build static libraries [default=no] 1417 --enable-shared[=PKGS] build shared libraries [default=yes] 1418 --enable-fast-install[=PKGS] 1419 optimize for fast installation [default=yes] 1420 --disable-libtool-lock avoid locking (might break parallel builds) 1421 1422Optional Packages: 1423 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1424 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1425 --with-unixodbc[=DIR] [default=yes] DIR is the unixODBC base install 1426 directory or the path to odbc_config 1427 --with-iodbc[=DIR] [default=no] DIR is the iODBC base install 1428 directory or the path to iodbc-config 1429 --with-libpq[=DIR] DIR is the PostgreSQL base install 1430 directory or the path to pg_config 1431 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1432 both] 1433 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1434 --with-sysroot=DIR Search for dependent libraries within DIR 1435 (or the compiler's sysroot if not specified). 1436 1437Some influential environment variables: 1438 CC C compiler command 1439 CFLAGS C compiler flags 1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1441 nonstandard directory <lib dir> 1442 LIBS libraries to pass to the linker, e.g. -l<library> 1443 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1444 you have headers in a nonstandard directory <include dir> 1445 CPP C preprocessor 1446 1447Use these variables to override the choices made by `configure' or to help 1448it to find libraries and programs with nonstandard names/locations. 1449 1450Report bugs to <pgsql-odbc@postgresql.org>. 1451_ACEOF 1452ac_status=$? 1453fi 1454 1455if test "$ac_init_help" = "recursive"; then 1456 # If there are subdirs, report their specific --help. 1457 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1458 test -d "$ac_dir" || 1459 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1460 continue 1461 ac_builddir=. 1462 1463case "$ac_dir" in 1464.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1465*) 1466 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1467 # A ".." for each directory in $ac_dir_suffix. 1468 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1469 case $ac_top_builddir_sub in 1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1472 esac ;; 1473esac 1474ac_abs_top_builddir=$ac_pwd 1475ac_abs_builddir=$ac_pwd$ac_dir_suffix 1476# for backward compatibility: 1477ac_top_builddir=$ac_top_build_prefix 1478 1479case $srcdir in 1480 .) # We are building in place. 1481 ac_srcdir=. 1482 ac_top_srcdir=$ac_top_builddir_sub 1483 ac_abs_top_srcdir=$ac_pwd ;; 1484 [\\/]* | ?:[\\/]* ) # Absolute name. 1485 ac_srcdir=$srcdir$ac_dir_suffix; 1486 ac_top_srcdir=$srcdir 1487 ac_abs_top_srcdir=$srcdir ;; 1488 *) # Relative name. 1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1490 ac_top_srcdir=$ac_top_build_prefix$srcdir 1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1492esac 1493ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1494 1495 cd "$ac_dir" || { ac_status=$?; continue; } 1496 # Check for guested configure. 1497 if test -f "$ac_srcdir/configure.gnu"; then 1498 echo && 1499 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1500 elif test -f "$ac_srcdir/configure"; then 1501 echo && 1502 $SHELL "$ac_srcdir/configure" --help=recursive 1503 else 1504 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1505 fi || ac_status=$? 1506 cd "$ac_pwd" || { ac_status=$?; break; } 1507 done 1508fi 1509 1510test -n "$ac_init_help" && exit $ac_status 1511if $ac_init_version; then 1512 cat <<\_ACEOF 1513psqlodbc configure 13.02.0000 1514generated by GNU Autoconf 2.69 1515 1516Copyright (C) 2012 Free Software Foundation, Inc. 1517This configure script is free software; the Free Software Foundation 1518gives unlimited permission to copy, distribute and modify it. 1519_ACEOF 1520 exit 1521fi 1522 1523## ------------------------ ## 1524## Autoconf initialization. ## 1525## ------------------------ ## 1526 1527# ac_fn_c_try_compile LINENO 1528# -------------------------- 1529# Try to compile conftest.$ac_ext, and return whether this succeeded. 1530ac_fn_c_try_compile () 1531{ 1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1533 rm -f conftest.$ac_objext 1534 if { { ac_try="$ac_compile" 1535case "(($ac_try" in 1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1537 *) ac_try_echo=$ac_try;; 1538esac 1539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1540$as_echo "$ac_try_echo"; } >&5 1541 (eval "$ac_compile") 2>conftest.err 1542 ac_status=$? 1543 if test -s conftest.err; then 1544 grep -v '^ *+' conftest.err >conftest.er1 1545 cat conftest.er1 >&5 1546 mv -f conftest.er1 conftest.err 1547 fi 1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1549 test $ac_status = 0; } && { 1550 test -z "$ac_c_werror_flag" || 1551 test ! -s conftest.err 1552 } && test -s conftest.$ac_objext; then : 1553 ac_retval=0 1554else 1555 $as_echo "$as_me: failed program was:" >&5 1556sed 's/^/| /' conftest.$ac_ext >&5 1557 1558 ac_retval=1 1559fi 1560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1561 as_fn_set_status $ac_retval 1562 1563} # ac_fn_c_try_compile 1564 1565# ac_fn_c_try_run LINENO 1566# ---------------------- 1567# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1568# that executables *can* be run. 1569ac_fn_c_try_run () 1570{ 1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1572 if { { ac_try="$ac_link" 1573case "(($ac_try" in 1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1575 *) ac_try_echo=$ac_try;; 1576esac 1577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1578$as_echo "$ac_try_echo"; } >&5 1579 (eval "$ac_link") 2>&5 1580 ac_status=$? 1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1582 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1583 { { case "(($ac_try" in 1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1585 *) ac_try_echo=$ac_try;; 1586esac 1587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1588$as_echo "$ac_try_echo"; } >&5 1589 (eval "$ac_try") 2>&5 1590 ac_status=$? 1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1592 test $ac_status = 0; }; }; then : 1593 ac_retval=0 1594else 1595 $as_echo "$as_me: program exited with status $ac_status" >&5 1596 $as_echo "$as_me: failed program was:" >&5 1597sed 's/^/| /' conftest.$ac_ext >&5 1598 1599 ac_retval=$ac_status 1600fi 1601 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1603 as_fn_set_status $ac_retval 1604 1605} # ac_fn_c_try_run 1606 1607# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1608# -------------------------------------------- 1609# Tries to find the compile-time value of EXPR in a program that includes 1610# INCLUDES, setting VAR accordingly. Returns whether the value could be 1611# computed 1612ac_fn_c_compute_int () 1613{ 1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1615 if test "$cross_compiling" = yes; then 1616 # Depending upon the size, compute the lo and hi bounds. 1617cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1618/* end confdefs.h. */ 1619$4 1620int 1621main () 1622{ 1623static int test_array [1 - 2 * !(($2) >= 0)]; 1624test_array [0] = 0; 1625return test_array [0]; 1626 1627 ; 1628 return 0; 1629} 1630_ACEOF 1631if ac_fn_c_try_compile "$LINENO"; then : 1632 ac_lo=0 ac_mid=0 1633 while :; do 1634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1635/* end confdefs.h. */ 1636$4 1637int 1638main () 1639{ 1640static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1641test_array [0] = 0; 1642return test_array [0]; 1643 1644 ; 1645 return 0; 1646} 1647_ACEOF 1648if ac_fn_c_try_compile "$LINENO"; then : 1649 ac_hi=$ac_mid; break 1650else 1651 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1652 if test $ac_lo -le $ac_mid; then 1653 ac_lo= ac_hi= 1654 break 1655 fi 1656 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1657fi 1658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1659 done 1660else 1661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1662/* end confdefs.h. */ 1663$4 1664int 1665main () 1666{ 1667static int test_array [1 - 2 * !(($2) < 0)]; 1668test_array [0] = 0; 1669return test_array [0]; 1670 1671 ; 1672 return 0; 1673} 1674_ACEOF 1675if ac_fn_c_try_compile "$LINENO"; then : 1676 ac_hi=-1 ac_mid=-1 1677 while :; do 1678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1679/* end confdefs.h. */ 1680$4 1681int 1682main () 1683{ 1684static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1685test_array [0] = 0; 1686return test_array [0]; 1687 1688 ; 1689 return 0; 1690} 1691_ACEOF 1692if ac_fn_c_try_compile "$LINENO"; then : 1693 ac_lo=$ac_mid; break 1694else 1695 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1696 if test $ac_mid -le $ac_hi; then 1697 ac_lo= ac_hi= 1698 break 1699 fi 1700 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1701fi 1702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1703 done 1704else 1705 ac_lo= ac_hi= 1706fi 1707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1708fi 1709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1710# Binary search between lo and hi bounds. 1711while test "x$ac_lo" != "x$ac_hi"; do 1712 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1714/* end confdefs.h. */ 1715$4 1716int 1717main () 1718{ 1719static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1720test_array [0] = 0; 1721return test_array [0]; 1722 1723 ; 1724 return 0; 1725} 1726_ACEOF 1727if ac_fn_c_try_compile "$LINENO"; then : 1728 ac_hi=$ac_mid 1729else 1730 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1731fi 1732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1733done 1734case $ac_lo in #(( 1735?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 1736'') ac_retval=1 ;; 1737esac 1738 else 1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1740/* end confdefs.h. */ 1741$4 1742static long int longval () { return $2; } 1743static unsigned long int ulongval () { return $2; } 1744#include <stdio.h> 1745#include <stdlib.h> 1746int 1747main () 1748{ 1749 1750 FILE *f = fopen ("conftest.val", "w"); 1751 if (! f) 1752 return 1; 1753 if (($2) < 0) 1754 { 1755 long int i = longval (); 1756 if (i != ($2)) 1757 return 1; 1758 fprintf (f, "%ld", i); 1759 } 1760 else 1761 { 1762 unsigned long int i = ulongval (); 1763 if (i != ($2)) 1764 return 1; 1765 fprintf (f, "%lu", i); 1766 } 1767 /* Do not output a trailing newline, as this causes \r\n confusion 1768 on some platforms. */ 1769 return ferror (f) || fclose (f) != 0; 1770 1771 ; 1772 return 0; 1773} 1774_ACEOF 1775if ac_fn_c_try_run "$LINENO"; then : 1776 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 1777else 1778 ac_retval=1 1779fi 1780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 1781 conftest.$ac_objext conftest.beam conftest.$ac_ext 1782rm -f conftest.val 1783 1784 fi 1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1786 as_fn_set_status $ac_retval 1787 1788} # ac_fn_c_compute_int 1789 1790# ac_fn_c_try_cpp LINENO 1791# ---------------------- 1792# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1793ac_fn_c_try_cpp () 1794{ 1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1796 if { { ac_try="$ac_cpp conftest.$ac_ext" 1797case "(($ac_try" in 1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1799 *) ac_try_echo=$ac_try;; 1800esac 1801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1802$as_echo "$ac_try_echo"; } >&5 1803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1804 ac_status=$? 1805 if test -s conftest.err; then 1806 grep -v '^ *+' conftest.err >conftest.er1 1807 cat conftest.er1 >&5 1808 mv -f conftest.er1 conftest.err 1809 fi 1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1811 test $ac_status = 0; } > conftest.i && { 1812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1813 test ! -s conftest.err 1814 }; then : 1815 ac_retval=0 1816else 1817 $as_echo "$as_me: failed program was:" >&5 1818sed 's/^/| /' conftest.$ac_ext >&5 1819 1820 ac_retval=1 1821fi 1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1823 as_fn_set_status $ac_retval 1824 1825} # ac_fn_c_try_cpp 1826 1827# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1828# ------------------------------------------------------- 1829# Tests whether HEADER exists and can be compiled using the include files in 1830# INCLUDES, setting the cache variable VAR accordingly. 1831ac_fn_c_check_header_compile () 1832{ 1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1835$as_echo_n "checking for $2... " >&6; } 1836if eval \${$3+:} false; then : 1837 $as_echo_n "(cached) " >&6 1838else 1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1840/* end confdefs.h. */ 1841$4 1842#include <$2> 1843_ACEOF 1844if ac_fn_c_try_compile "$LINENO"; then : 1845 eval "$3=yes" 1846else 1847 eval "$3=no" 1848fi 1849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1850fi 1851eval ac_res=\$$3 1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1853$as_echo "$ac_res" >&6; } 1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1855 1856} # ac_fn_c_check_header_compile 1857 1858# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1859# ------------------------------------------- 1860# Tests whether TYPE exists after having included INCLUDES, setting cache 1861# variable VAR accordingly. 1862ac_fn_c_check_type () 1863{ 1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1866$as_echo_n "checking for $2... " >&6; } 1867if eval \${$3+:} false; then : 1868 $as_echo_n "(cached) " >&6 1869else 1870 eval "$3=no" 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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1885/* end confdefs.h. */ 1886$4 1887int 1888main () 1889{ 1890if (sizeof (($2))) 1891 return 0; 1892 ; 1893 return 0; 1894} 1895_ACEOF 1896if ac_fn_c_try_compile "$LINENO"; then : 1897 1898else 1899 eval "$3=yes" 1900fi 1901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1902fi 1903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1904fi 1905eval ac_res=\$$3 1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1907$as_echo "$ac_res" >&6; } 1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1909 1910} # ac_fn_c_check_type 1911 1912# ac_fn_c_try_link LINENO 1913# ----------------------- 1914# Try to link conftest.$ac_ext, and return whether this succeeded. 1915ac_fn_c_try_link () 1916{ 1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1918 rm -f conftest.$ac_objext conftest$ac_exeext 1919 if { { ac_try="$ac_link" 1920case "(($ac_try" in 1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1922 *) ac_try_echo=$ac_try;; 1923esac 1924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1925$as_echo "$ac_try_echo"; } >&5 1926 (eval "$ac_link") 2>conftest.err 1927 ac_status=$? 1928 if test -s conftest.err; then 1929 grep -v '^ *+' conftest.err >conftest.er1 1930 cat conftest.er1 >&5 1931 mv -f conftest.er1 conftest.err 1932 fi 1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1934 test $ac_status = 0; } && { 1935 test -z "$ac_c_werror_flag" || 1936 test ! -s conftest.err 1937 } && test -s conftest$ac_exeext && { 1938 test "$cross_compiling" = yes || 1939 test -x conftest$ac_exeext 1940 }; then : 1941 ac_retval=0 1942else 1943 $as_echo "$as_me: failed program was:" >&5 1944sed 's/^/| /' conftest.$ac_ext >&5 1945 1946 ac_retval=1 1947fi 1948 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1949 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1950 # interfere with the next link command; also delete a directory that is 1951 # left behind by Apple's compiler. We do this before executing the actions. 1952 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1954 as_fn_set_status $ac_retval 1955 1956} # ac_fn_c_try_link 1957 1958# ac_fn_c_check_func LINENO FUNC VAR 1959# ---------------------------------- 1960# Tests whether FUNC exists, setting the cache variable VAR accordingly 1961ac_fn_c_check_func () 1962{ 1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1965$as_echo_n "checking for $2... " >&6; } 1966if eval \${$3+:} false; then : 1967 $as_echo_n "(cached) " >&6 1968else 1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1970/* end confdefs.h. */ 1971/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1972 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1973#define $2 innocuous_$2 1974 1975/* System header to define __stub macros and hopefully few prototypes, 1976 which can conflict with char $2 (); below. 1977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1978 <limits.h> exists even on freestanding compilers. */ 1979 1980#ifdef __STDC__ 1981# include <limits.h> 1982#else 1983# include <assert.h> 1984#endif 1985 1986#undef $2 1987 1988/* Override any GCC internal prototype to avoid an error. 1989 Use char because int might match the return type of a GCC 1990 builtin and then its argument prototype would still apply. */ 1991#ifdef __cplusplus 1992extern "C" 1993#endif 1994char $2 (); 1995/* The GNU C library defines this for functions which it implements 1996 to always fail with ENOSYS. Some functions are actually named 1997 something starting with __ and the normal name is an alias. */ 1998#if defined __stub_$2 || defined __stub___$2 1999choke me 2000#endif 2001 2002int 2003main () 2004{ 2005return $2 (); 2006 ; 2007 return 0; 2008} 2009_ACEOF 2010if ac_fn_c_try_link "$LINENO"; then : 2011 eval "$3=yes" 2012else 2013 eval "$3=no" 2014fi 2015rm -f core conftest.err conftest.$ac_objext \ 2016 conftest$ac_exeext conftest.$ac_ext 2017fi 2018eval ac_res=\$$3 2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2020$as_echo "$ac_res" >&6; } 2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2022 2023} # ac_fn_c_check_func 2024 2025# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2026# ------------------------------------------------------- 2027# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2028# the include files in INCLUDES and setting the cache variable VAR 2029# accordingly. 2030ac_fn_c_check_header_mongrel () 2031{ 2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2033 if eval \${$3+:} false; then : 2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2035$as_echo_n "checking for $2... " >&6; } 2036if eval \${$3+:} false; then : 2037 $as_echo_n "(cached) " >&6 2038fi 2039eval ac_res=\$$3 2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2041$as_echo "$ac_res" >&6; } 2042else 2043 # Is the header compilable? 2044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2045$as_echo_n "checking $2 usability... " >&6; } 2046cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2047/* end confdefs.h. */ 2048$4 2049#include <$2> 2050_ACEOF 2051if ac_fn_c_try_compile "$LINENO"; then : 2052 ac_header_compiler=yes 2053else 2054 ac_header_compiler=no 2055fi 2056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2058$as_echo "$ac_header_compiler" >&6; } 2059 2060# Is the header present? 2061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2062$as_echo_n "checking $2 presence... " >&6; } 2063cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2064/* end confdefs.h. */ 2065#include <$2> 2066_ACEOF 2067if ac_fn_c_try_cpp "$LINENO"; then : 2068 ac_header_preproc=yes 2069else 2070 ac_header_preproc=no 2071fi 2072rm -f conftest.err conftest.i conftest.$ac_ext 2073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2074$as_echo "$ac_header_preproc" >&6; } 2075 2076# So? What about this header? 2077case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2078 yes:no: ) 2079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2080$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2082$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2083 ;; 2084 no:yes:* ) 2085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2086$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2088$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2090$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2092$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2094$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2095( $as_echo "## ---------------------------------------- ## 2096## Report this to pgsql-odbc@postgresql.org ## 2097## ---------------------------------------- ##" 2098 ) | sed "s/^/$as_me: WARNING: /" >&2 2099 ;; 2100esac 2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2102$as_echo_n "checking for $2... " >&6; } 2103if eval \${$3+:} false; then : 2104 $as_echo_n "(cached) " >&6 2105else 2106 eval "$3=\$ac_header_compiler" 2107fi 2108eval ac_res=\$$3 2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2110$as_echo "$ac_res" >&6; } 2111fi 2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2113 2114} # ac_fn_c_check_header_mongrel 2115 2116# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2117# --------------------------------------------- 2118# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2119# accordingly. 2120ac_fn_c_check_decl () 2121{ 2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2123 as_decl_name=`echo $2|sed 's/ *(.*//'` 2124 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2126$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2127if eval \${$3+:} false; then : 2128 $as_echo_n "(cached) " >&6 2129else 2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2131/* end confdefs.h. */ 2132$4 2133int 2134main () 2135{ 2136#ifndef $as_decl_name 2137#ifdef __cplusplus 2138 (void) $as_decl_use; 2139#else 2140 (void) $as_decl_name; 2141#endif 2142#endif 2143 2144 ; 2145 return 0; 2146} 2147_ACEOF 2148if ac_fn_c_try_compile "$LINENO"; then : 2149 eval "$3=yes" 2150else 2151 eval "$3=no" 2152fi 2153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2154fi 2155eval ac_res=\$$3 2156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2157$as_echo "$ac_res" >&6; } 2158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2159 2160} # ac_fn_c_check_decl 2161cat >config.log <<_ACEOF 2162This file contains any messages produced by compilers while 2163running configure, to aid debugging if configure makes a mistake. 2164 2165It was created by psqlodbc $as_me 13.02.0000, which was 2166generated by GNU Autoconf 2.69. Invocation command line was 2167 2168 $ $0 $@ 2169 2170_ACEOF 2171exec 5>>config.log 2172{ 2173cat <<_ASUNAME 2174## --------- ## 2175## Platform. ## 2176## --------- ## 2177 2178hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2179uname -m = `(uname -m) 2>/dev/null || echo unknown` 2180uname -r = `(uname -r) 2>/dev/null || echo unknown` 2181uname -s = `(uname -s) 2>/dev/null || echo unknown` 2182uname -v = `(uname -v) 2>/dev/null || echo unknown` 2183 2184/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2185/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2186 2187/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2188/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2189/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2190/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2191/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2192/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2193/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2194 2195_ASUNAME 2196 2197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2198for as_dir in $PATH 2199do 2200 IFS=$as_save_IFS 2201 test -z "$as_dir" && as_dir=. 2202 $as_echo "PATH: $as_dir" 2203 done 2204IFS=$as_save_IFS 2205 2206} >&5 2207 2208cat >&5 <<_ACEOF 2209 2210 2211## ----------- ## 2212## Core tests. ## 2213## ----------- ## 2214 2215_ACEOF 2216 2217 2218# Keep a trace of the command line. 2219# Strip out --no-create and --no-recursion so they do not pile up. 2220# Strip out --silent because we don't want to record it for future runs. 2221# Also quote any args containing shell meta-characters. 2222# Make two passes to allow for proper duplicate-argument suppression. 2223ac_configure_args= 2224ac_configure_args0= 2225ac_configure_args1= 2226ac_must_keep_next=false 2227for ac_pass in 1 2 2228do 2229 for ac_arg 2230 do 2231 case $ac_arg in 2232 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2234 | -silent | --silent | --silen | --sile | --sil) 2235 continue ;; 2236 *\'*) 2237 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2238 esac 2239 case $ac_pass in 2240 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2241 2) 2242 as_fn_append ac_configure_args1 " '$ac_arg'" 2243 if test $ac_must_keep_next = true; then 2244 ac_must_keep_next=false # Got value, back to normal. 2245 else 2246 case $ac_arg in 2247 *=* | --config-cache | -C | -disable-* | --disable-* \ 2248 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2249 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2250 | -with-* | --with-* | -without-* | --without-* | --x) 2251 case "$ac_configure_args0 " in 2252 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2253 esac 2254 ;; 2255 -* ) ac_must_keep_next=true ;; 2256 esac 2257 fi 2258 as_fn_append ac_configure_args " '$ac_arg'" 2259 ;; 2260 esac 2261 done 2262done 2263{ ac_configure_args0=; unset ac_configure_args0;} 2264{ ac_configure_args1=; unset ac_configure_args1;} 2265 2266# When interrupted or exit'd, cleanup temporary files, and complete 2267# config.log. We remove comments because anyway the quotes in there 2268# would cause problems or look ugly. 2269# WARNING: Use '\'' to represent an apostrophe within the trap. 2270# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2271trap 'exit_status=$? 2272 # Save into config.log some information that might help in debugging. 2273 { 2274 echo 2275 2276 $as_echo "## ---------------- ## 2277## Cache variables. ## 2278## ---------------- ##" 2279 echo 2280 # The following way of writing the cache mishandles newlines in values, 2281( 2282 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2283 eval ac_val=\$$ac_var 2284 case $ac_val in #( 2285 *${as_nl}*) 2286 case $ac_var in #( 2287 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2288$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2289 esac 2290 case $ac_var in #( 2291 _ | IFS | as_nl) ;; #( 2292 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2293 *) { eval $ac_var=; unset $ac_var;} ;; 2294 esac ;; 2295 esac 2296 done 2297 (set) 2>&1 | 2298 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2299 *${as_nl}ac_space=\ *) 2300 sed -n \ 2301 "s/'\''/'\''\\\\'\'''\''/g; 2302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2303 ;; #( 2304 *) 2305 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2306 ;; 2307 esac | 2308 sort 2309) 2310 echo 2311 2312 $as_echo "## ----------------- ## 2313## Output variables. ## 2314## ----------------- ##" 2315 echo 2316 for ac_var in $ac_subst_vars 2317 do 2318 eval ac_val=\$$ac_var 2319 case $ac_val in 2320 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2321 esac 2322 $as_echo "$ac_var='\''$ac_val'\''" 2323 done | sort 2324 echo 2325 2326 if test -n "$ac_subst_files"; then 2327 $as_echo "## ------------------- ## 2328## File substitutions. ## 2329## ------------------- ##" 2330 echo 2331 for ac_var in $ac_subst_files 2332 do 2333 eval ac_val=\$$ac_var 2334 case $ac_val in 2335 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2336 esac 2337 $as_echo "$ac_var='\''$ac_val'\''" 2338 done | sort 2339 echo 2340 fi 2341 2342 if test -s confdefs.h; then 2343 $as_echo "## ----------- ## 2344## confdefs.h. ## 2345## ----------- ##" 2346 echo 2347 cat confdefs.h 2348 echo 2349 fi 2350 test "$ac_signal" != 0 && 2351 $as_echo "$as_me: caught signal $ac_signal" 2352 $as_echo "$as_me: exit $exit_status" 2353 } >&5 2354 rm -f core *.core core.conftest.* && 2355 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2356 exit $exit_status 2357' 0 2358for ac_signal in 1 2 13 15; do 2359 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2360done 2361ac_signal=0 2362 2363# confdefs.h avoids OS command line length limits that DEFS can exceed. 2364rm -f -r conftest* confdefs.h 2365 2366$as_echo "/* confdefs.h */" > confdefs.h 2367 2368# Predefined preprocessor variables. 2369 2370cat >>confdefs.h <<_ACEOF 2371#define PACKAGE_NAME "$PACKAGE_NAME" 2372_ACEOF 2373 2374cat >>confdefs.h <<_ACEOF 2375#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2376_ACEOF 2377 2378cat >>confdefs.h <<_ACEOF 2379#define PACKAGE_VERSION "$PACKAGE_VERSION" 2380_ACEOF 2381 2382cat >>confdefs.h <<_ACEOF 2383#define PACKAGE_STRING "$PACKAGE_STRING" 2384_ACEOF 2385 2386cat >>confdefs.h <<_ACEOF 2387#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2388_ACEOF 2389 2390cat >>confdefs.h <<_ACEOF 2391#define PACKAGE_URL "$PACKAGE_URL" 2392_ACEOF 2393 2394 2395# Let the site file select an alternate cache file if it wants to. 2396# Prefer an explicitly selected file to automatically selected ones. 2397ac_site_file1=NONE 2398ac_site_file2=NONE 2399if test -n "$CONFIG_SITE"; then 2400 # We do not want a PATH search for config.site. 2401 case $CONFIG_SITE in #(( 2402 -*) ac_site_file1=./$CONFIG_SITE;; 2403 */*) ac_site_file1=$CONFIG_SITE;; 2404 *) ac_site_file1=./$CONFIG_SITE;; 2405 esac 2406elif test "x$prefix" != xNONE; then 2407 ac_site_file1=$prefix/share/config.site 2408 ac_site_file2=$prefix/etc/config.site 2409else 2410 ac_site_file1=$ac_default_prefix/share/config.site 2411 ac_site_file2=$ac_default_prefix/etc/config.site 2412fi 2413for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2414do 2415 test "x$ac_site_file" = xNONE && continue 2416 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2417 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2418$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2419 sed 's/^/| /' "$ac_site_file" >&5 2420 . "$ac_site_file" \ 2421 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2423as_fn_error $? "failed to load site script $ac_site_file 2424See \`config.log' for more details" "$LINENO" 5; } 2425 fi 2426done 2427 2428if test -r "$cache_file"; then 2429 # Some versions of bash will fail to source /dev/null (special files 2430 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2431 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2432 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2433$as_echo "$as_me: loading cache $cache_file" >&6;} 2434 case $cache_file in 2435 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2436 *) . "./$cache_file";; 2437 esac 2438 fi 2439else 2440 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2441$as_echo "$as_me: creating cache $cache_file" >&6;} 2442 >$cache_file 2443fi 2444 2445# Check that the precious variables saved in the cache have kept the same 2446# value. 2447ac_cache_corrupted=false 2448for ac_var in $ac_precious_vars; do 2449 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2450 eval ac_new_set=\$ac_env_${ac_var}_set 2451 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2452 eval ac_new_val=\$ac_env_${ac_var}_value 2453 case $ac_old_set,$ac_new_set in 2454 set,) 2455 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2456$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2457 ac_cache_corrupted=: ;; 2458 ,set) 2459 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2460$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2461 ac_cache_corrupted=: ;; 2462 ,);; 2463 *) 2464 if test "x$ac_old_val" != "x$ac_new_val"; then 2465 # differences in whitespace do not lead to failure. 2466 ac_old_val_w=`echo x $ac_old_val` 2467 ac_new_val_w=`echo x $ac_new_val` 2468 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2470$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2471 ac_cache_corrupted=: 2472 else 2473 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2474$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2475 eval $ac_var=\$ac_old_val 2476 fi 2477 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2478$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2479 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2480$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2481 fi;; 2482 esac 2483 # Pass precious variables to config.status. 2484 if test "$ac_new_set" = set; then 2485 case $ac_new_val in 2486 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2487 *) ac_arg=$ac_var=$ac_new_val ;; 2488 esac 2489 case " $ac_configure_args " in 2490 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2491 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2492 esac 2493 fi 2494done 2495if $ac_cache_corrupted; then 2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2498 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2499$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2500 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2501fi 2502## -------------------- ## 2503## Main body of script. ## 2504## -------------------- ## 2505 2506ac_ext=c 2507ac_cpp='$CPP $CPPFLAGS' 2508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2510ac_compiler_gnu=$ac_cv_c_compiler_gnu 2511 2512 2513 2514ac_aux_dir= 2515for ac_dir in config "$srcdir"/config; do 2516 if test -f "$ac_dir/install-sh"; then 2517 ac_aux_dir=$ac_dir 2518 ac_install_sh="$ac_aux_dir/install-sh -c" 2519 break 2520 elif test -f "$ac_dir/install.sh"; then 2521 ac_aux_dir=$ac_dir 2522 ac_install_sh="$ac_aux_dir/install.sh -c" 2523 break 2524 elif test -f "$ac_dir/shtool"; then 2525 ac_aux_dir=$ac_dir 2526 ac_install_sh="$ac_aux_dir/shtool install -c" 2527 break 2528 fi 2529done 2530if test -z "$ac_aux_dir"; then 2531 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2532fi 2533 2534# These three variables are undocumented and unsupported, 2535# and are intended to be withdrawn in a future Autoconf release. 2536# They can cause serious problems if a builder's source tree is in a directory 2537# whose full name contains unusual characters. 2538ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2539ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2540ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2541 2542 2543am__api_version='1.15' 2544 2545# Find a good install program. We prefer a C program (faster), 2546# so one script is as good as another. But avoid the broken or 2547# incompatible versions: 2548# SysV /etc/install, /usr/sbin/install 2549# SunOS /usr/etc/install 2550# IRIX /sbin/install 2551# AIX /bin/install 2552# AmigaOS /C/install, which installs bootblocks on floppy discs 2553# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2554# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2555# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2556# OS/2's system install, which has a completely different semantic 2557# ./install, which can be erroneously created by make from ./install.sh. 2558# Reject install programs that cannot install multiple files. 2559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2560$as_echo_n "checking for a BSD-compatible install... " >&6; } 2561if test -z "$INSTALL"; then 2562if ${ac_cv_path_install+:} false; then : 2563 $as_echo_n "(cached) " >&6 2564else 2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2566for as_dir in $PATH 2567do 2568 IFS=$as_save_IFS 2569 test -z "$as_dir" && as_dir=. 2570 # Account for people who put trailing slashes in PATH elements. 2571case $as_dir/ in #(( 2572 ./ | .// | /[cC]/* | \ 2573 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2574 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2575 /usr/ucb/* ) ;; 2576 *) 2577 # OSF1 and SCO ODT 3.0 have their own names for install. 2578 # Don't use installbsd from OSF since it installs stuff as root 2579 # by default. 2580 for ac_prog in ginstall scoinst install; do 2581 for ac_exec_ext in '' $ac_executable_extensions; do 2582 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2583 if test $ac_prog = install && 2584 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2585 # AIX install. It has an incompatible calling convention. 2586 : 2587 elif test $ac_prog = install && 2588 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2589 # program-specific install script used by HP pwplus--don't use. 2590 : 2591 else 2592 rm -rf conftest.one conftest.two conftest.dir 2593 echo one > conftest.one 2594 echo two > conftest.two 2595 mkdir conftest.dir 2596 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2597 test -s conftest.one && test -s conftest.two && 2598 test -s conftest.dir/conftest.one && 2599 test -s conftest.dir/conftest.two 2600 then 2601 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2602 break 3 2603 fi 2604 fi 2605 fi 2606 done 2607 done 2608 ;; 2609esac 2610 2611 done 2612IFS=$as_save_IFS 2613 2614rm -rf conftest.one conftest.two conftest.dir 2615 2616fi 2617 if test "${ac_cv_path_install+set}" = set; then 2618 INSTALL=$ac_cv_path_install 2619 else 2620 # As a last resort, use the slow shell script. Don't cache a 2621 # value for INSTALL within a source directory, because that will 2622 # break other packages using the cache if that directory is 2623 # removed, or if the value is a relative name. 2624 INSTALL=$ac_install_sh 2625 fi 2626fi 2627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2628$as_echo "$INSTALL" >&6; } 2629 2630# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2631# It thinks the first close brace ends the variable substitution. 2632test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2633 2634test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2635 2636test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2637 2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2639$as_echo_n "checking whether build environment is sane... " >&6; } 2640# Reject unsafe characters in $srcdir or the absolute working directory 2641# name. Accept space and tab only in the latter. 2642am_lf=' 2643' 2644case `pwd` in 2645 *[\\\"\#\$\&\'\`$am_lf]*) 2646 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2647esac 2648case $srcdir in 2649 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2650 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2651esac 2652 2653# Do 'set' in a subshell so we don't clobber the current shell's 2654# arguments. Must try -L first in case configure is actually a 2655# symlink; some systems play weird games with the mod time of symlinks 2656# (eg FreeBSD returns the mod time of the symlink's containing 2657# directory). 2658if ( 2659 am_has_slept=no 2660 for am_try in 1 2; do 2661 echo "timestamp, slept: $am_has_slept" > conftest.file 2662 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2663 if test "$*" = "X"; then 2664 # -L didn't work. 2665 set X `ls -t "$srcdir/configure" conftest.file` 2666 fi 2667 if test "$*" != "X $srcdir/configure conftest.file" \ 2668 && test "$*" != "X conftest.file $srcdir/configure"; then 2669 2670 # If neither matched, then we have a broken ls. This can happen 2671 # if, for instance, CONFIG_SHELL is bash and it inherits a 2672 # broken ls alias from the environment. This has actually 2673 # happened. Such a system could not be considered "sane". 2674 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2675 alias in your environment" "$LINENO" 5 2676 fi 2677 if test "$2" = conftest.file || test $am_try -eq 2; then 2678 break 2679 fi 2680 # Just in case. 2681 sleep 1 2682 am_has_slept=yes 2683 done 2684 test "$2" = conftest.file 2685 ) 2686then 2687 # Ok. 2688 : 2689else 2690 as_fn_error $? "newly created file is older than distributed files! 2691Check your system clock" "$LINENO" 5 2692fi 2693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2694$as_echo "yes" >&6; } 2695# If we didn't sleep, we still need to ensure time stamps of config.status and 2696# generated files are strictly newer. 2697am_sleep_pid= 2698if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2699 ( sleep 1 ) & 2700 am_sleep_pid=$! 2701fi 2702 2703rm -f conftest.file 2704 2705test "$program_prefix" != NONE && 2706 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2707# Use a double $ so make ignores it. 2708test "$program_suffix" != NONE && 2709 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2710# Double any \ or $. 2711# By default was `s,x,x', remove it if useless. 2712ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2713program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2714 2715# Expand $ac_aux_dir to an absolute path. 2716am_aux_dir=`cd "$ac_aux_dir" && pwd` 2717 2718if test x"${MISSING+set}" != xset; then 2719 case $am_aux_dir in 2720 *\ * | *\ *) 2721 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2722 *) 2723 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2724 esac 2725fi 2726# Use eval to expand $SHELL 2727if eval "$MISSING --is-lightweight"; then 2728 am_missing_run="$MISSING " 2729else 2730 am_missing_run= 2731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2732$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2733fi 2734 2735if test x"${install_sh+set}" != xset; then 2736 case $am_aux_dir in 2737 *\ * | *\ *) 2738 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2739 *) 2740 install_sh="\${SHELL} $am_aux_dir/install-sh" 2741 esac 2742fi 2743 2744# Installed binaries are usually stripped using 'strip' when the user 2745# run "make install-strip". However 'strip' might not be the right 2746# tool to use in cross-compilation environments, therefore Automake 2747# will honor the 'STRIP' environment variable to overrule this program. 2748if test "$cross_compiling" != no; then 2749 if test -n "$ac_tool_prefix"; then 2750 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2751set dummy ${ac_tool_prefix}strip; ac_word=$2 2752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2753$as_echo_n "checking for $ac_word... " >&6; } 2754if ${ac_cv_prog_STRIP+:} false; then : 2755 $as_echo_n "(cached) " >&6 2756else 2757 if test -n "$STRIP"; then 2758 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2759else 2760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2761for as_dir in $PATH 2762do 2763 IFS=$as_save_IFS 2764 test -z "$as_dir" && as_dir=. 2765 for ac_exec_ext in '' $ac_executable_extensions; do 2766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2767 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2769 break 2 2770 fi 2771done 2772 done 2773IFS=$as_save_IFS 2774 2775fi 2776fi 2777STRIP=$ac_cv_prog_STRIP 2778if test -n "$STRIP"; then 2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2780$as_echo "$STRIP" >&6; } 2781else 2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2783$as_echo "no" >&6; } 2784fi 2785 2786 2787fi 2788if test -z "$ac_cv_prog_STRIP"; then 2789 ac_ct_STRIP=$STRIP 2790 # Extract the first word of "strip", so it can be a program name with args. 2791set dummy strip; ac_word=$2 2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2793$as_echo_n "checking for $ac_word... " >&6; } 2794if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2795 $as_echo_n "(cached) " >&6 2796else 2797 if test -n "$ac_ct_STRIP"; then 2798 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2799else 2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2801for as_dir in $PATH 2802do 2803 IFS=$as_save_IFS 2804 test -z "$as_dir" && as_dir=. 2805 for ac_exec_ext in '' $ac_executable_extensions; do 2806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2807 ac_cv_prog_ac_ct_STRIP="strip" 2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2809 break 2 2810 fi 2811done 2812 done 2813IFS=$as_save_IFS 2814 2815fi 2816fi 2817ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2818if test -n "$ac_ct_STRIP"; then 2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2820$as_echo "$ac_ct_STRIP" >&6; } 2821else 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2823$as_echo "no" >&6; } 2824fi 2825 2826 if test "x$ac_ct_STRIP" = x; then 2827 STRIP=":" 2828 else 2829 case $cross_compiling:$ac_tool_warned in 2830yes:) 2831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2833ac_tool_warned=yes ;; 2834esac 2835 STRIP=$ac_ct_STRIP 2836 fi 2837else 2838 STRIP="$ac_cv_prog_STRIP" 2839fi 2840 2841fi 2842INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2843 2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2845$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2846if test -z "$MKDIR_P"; then 2847 if ${ac_cv_path_mkdir+:} false; then : 2848 $as_echo_n "(cached) " >&6 2849else 2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2851for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2852do 2853 IFS=$as_save_IFS 2854 test -z "$as_dir" && as_dir=. 2855 for ac_prog in mkdir gmkdir; do 2856 for ac_exec_ext in '' $ac_executable_extensions; do 2857 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2858 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2859 'mkdir (GNU coreutils) '* | \ 2860 'mkdir (coreutils) '* | \ 2861 'mkdir (fileutils) '4.1*) 2862 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2863 break 3;; 2864 esac 2865 done 2866 done 2867 done 2868IFS=$as_save_IFS 2869 2870fi 2871 2872 test -d ./--version && rmdir ./--version 2873 if test "${ac_cv_path_mkdir+set}" = set; then 2874 MKDIR_P="$ac_cv_path_mkdir -p" 2875 else 2876 # As a last resort, use the slow shell script. Don't cache a 2877 # value for MKDIR_P within a source directory, because that will 2878 # break other packages using the cache if that directory is 2879 # removed, or if the value is a relative name. 2880 MKDIR_P="$ac_install_sh -d" 2881 fi 2882fi 2883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2884$as_echo "$MKDIR_P" >&6; } 2885 2886for ac_prog in gawk mawk nawk awk 2887do 2888 # Extract the first word of "$ac_prog", so it can be a program name with args. 2889set dummy $ac_prog; ac_word=$2 2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2891$as_echo_n "checking for $ac_word... " >&6; } 2892if ${ac_cv_prog_AWK+:} false; then : 2893 $as_echo_n "(cached) " >&6 2894else 2895 if test -n "$AWK"; then 2896 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2897else 2898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2899for as_dir in $PATH 2900do 2901 IFS=$as_save_IFS 2902 test -z "$as_dir" && as_dir=. 2903 for ac_exec_ext in '' $ac_executable_extensions; do 2904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2905 ac_cv_prog_AWK="$ac_prog" 2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2907 break 2 2908 fi 2909done 2910 done 2911IFS=$as_save_IFS 2912 2913fi 2914fi 2915AWK=$ac_cv_prog_AWK 2916if test -n "$AWK"; then 2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2918$as_echo "$AWK" >&6; } 2919else 2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2921$as_echo "no" >&6; } 2922fi 2923 2924 2925 test -n "$AWK" && break 2926done 2927 2928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2929$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2930set x ${MAKE-make} 2931ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2932if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2933 $as_echo_n "(cached) " >&6 2934else 2935 cat >conftest.make <<\_ACEOF 2936SHELL = /bin/sh 2937all: 2938 @echo '@@@%%%=$(MAKE)=@@@%%%' 2939_ACEOF 2940# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2941case `${MAKE-make} -f conftest.make 2>/dev/null` in 2942 *@@@%%%=?*=@@@%%%*) 2943 eval ac_cv_prog_make_${ac_make}_set=yes;; 2944 *) 2945 eval ac_cv_prog_make_${ac_make}_set=no;; 2946esac 2947rm -f conftest.make 2948fi 2949if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2951$as_echo "yes" >&6; } 2952 SET_MAKE= 2953else 2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2955$as_echo "no" >&6; } 2956 SET_MAKE="MAKE=${MAKE-make}" 2957fi 2958 2959rm -rf .tst 2>/dev/null 2960mkdir .tst 2>/dev/null 2961if test -d .tst; then 2962 am__leading_dot=. 2963else 2964 am__leading_dot=_ 2965fi 2966rmdir .tst 2>/dev/null 2967 2968# Check whether --enable-silent-rules was given. 2969if test "${enable_silent_rules+set}" = set; then : 2970 enableval=$enable_silent_rules; 2971fi 2972 2973case $enable_silent_rules in # ((( 2974 yes) AM_DEFAULT_VERBOSITY=0;; 2975 no) AM_DEFAULT_VERBOSITY=1;; 2976 *) AM_DEFAULT_VERBOSITY=1;; 2977esac 2978am_make=${MAKE-make} 2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2980$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2981if ${am_cv_make_support_nested_variables+:} false; then : 2982 $as_echo_n "(cached) " >&6 2983else 2984 if $as_echo 'TRUE=$(BAR$(V)) 2985BAR0=false 2986BAR1=true 2987V=1 2988am__doit: 2989 @$(TRUE) 2990.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2991 am_cv_make_support_nested_variables=yes 2992else 2993 am_cv_make_support_nested_variables=no 2994fi 2995fi 2996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2997$as_echo "$am_cv_make_support_nested_variables" >&6; } 2998if test $am_cv_make_support_nested_variables = yes; then 2999 AM_V='$(V)' 3000 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3001else 3002 AM_V=$AM_DEFAULT_VERBOSITY 3003 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3004fi 3005AM_BACKSLASH='\' 3006 3007if test "`cd $srcdir && pwd`" != "`pwd`"; then 3008 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3009 # is not polluted with repeated "-I." 3010 am__isrc=' -I$(srcdir)' 3011 # test to see if srcdir already configured 3012 if test -f $srcdir/config.status; then 3013 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3014 fi 3015fi 3016 3017# test whether we have cygpath 3018if test -z "$CYGPATH_W"; then 3019 if (cygpath --version) >/dev/null 2>/dev/null; then 3020 CYGPATH_W='cygpath -w' 3021 else 3022 CYGPATH_W=echo 3023 fi 3024fi 3025 3026 3027# Define the identity of the package. 3028 PACKAGE='psqlodbc' 3029 VERSION='13.02.0000' 3030 3031 3032cat >>confdefs.h <<_ACEOF 3033#define PACKAGE "$PACKAGE" 3034_ACEOF 3035 3036 3037cat >>confdefs.h <<_ACEOF 3038#define VERSION "$VERSION" 3039_ACEOF 3040 3041# Some tools Automake needs. 3042 3043ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3044 3045 3046AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3047 3048 3049AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3050 3051 3052AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3053 3054 3055MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3056 3057# For better backward compatibility. To be removed once Automake 1.9.x 3058# dies out for good. For more background, see: 3059# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3060# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3061mkdir_p='$(MKDIR_P)' 3062 3063# We need awk for the "check" target (and possibly the TAP driver). The 3064# system "awk" is bad on some platforms. 3065# Always define AMTAR for backward compatibility. Yes, it's still used 3066# in the wild :-( We should find a proper way to deprecate it ... 3067AMTAR='$${TAR-tar}' 3068 3069 3070# We'll loop over all known methods to create a tar archive until one works. 3071_am_tools='gnutar pax cpio none' 3072 3073am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3074 3075 3076 3077 3078 3079 3080# POSIX will say in a future version that running "rm -f" with no argument 3081# is OK; and we want to be able to make that assumption in our Makefile 3082# recipes. So use an aggressive probe to check that the usage we want is 3083# actually supported "in the wild" to an acceptable degree. 3084# See automake bug#10828. 3085# To make any issue more visible, cause the running configure to be aborted 3086# by default if the 'rm' program in use doesn't match our expectations; the 3087# user can still override this though. 3088if rm -f && rm -fr && rm -rf; then : OK; else 3089 cat >&2 <<'END' 3090Oops! 3091 3092Your 'rm' program seems unable to run without file operands specified 3093on the command line, even when the '-f' option is present. This is contrary 3094to the behaviour of most rm programs out there, and not conforming with 3095the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3096 3097Please tell bug-automake@gnu.org about your system, including the value 3098of your $PATH and any error possibly output before this message. This 3099can help us improve future automake versions. 3100 3101END 3102 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3103 echo 'Configuration will proceed anyway, since you have set the' >&2 3104 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3105 echo >&2 3106 else 3107 cat >&2 <<'END' 3108Aborting the configuration process, to ensure you take notice of the issue. 3109 3110You can download and install GNU coreutils to get an 'rm' implementation 3111that behaves properly: <http://www.gnu.org/software/coreutils/>. 3112 3113If you want to complete the configuration process using your problematic 3114'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3115to "yes", and re-run configure. 3116 3117END 3118 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3119 fi 3120fi 3121 3122 3123ac_config_headers="$ac_config_headers config.h" 3124 3125 3126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3127$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3128 # Check whether --enable-maintainer-mode was given. 3129if test "${enable_maintainer_mode+set}" = set; then : 3130 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3131else 3132 USE_MAINTAINER_MODE=no 3133fi 3134 3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3136$as_echo "$USE_MAINTAINER_MODE" >&6; } 3137 if test $USE_MAINTAINER_MODE = yes; then 3138 MAINTAINER_MODE_TRUE= 3139 MAINTAINER_MODE_FALSE='#' 3140else 3141 MAINTAINER_MODE_TRUE='#' 3142 MAINTAINER_MODE_FALSE= 3143fi 3144 3145 MAINT=$MAINTAINER_MODE_TRUE 3146 3147 3148 3149 3150# 0. Options processing 3151 3152ac_ext=c 3153ac_cpp='$CPP $CPPFLAGS' 3154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3156ac_compiler_gnu=$ac_cv_c_compiler_gnu 3157if test -n "$ac_tool_prefix"; then 3158 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3159set dummy ${ac_tool_prefix}gcc; ac_word=$2 3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3161$as_echo_n "checking for $ac_word... " >&6; } 3162if ${ac_cv_prog_CC+:} false; then : 3163 $as_echo_n "(cached) " >&6 3164else 3165 if test -n "$CC"; then 3166 ac_cv_prog_CC="$CC" # Let the user override the test. 3167else 3168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3169for as_dir in $PATH 3170do 3171 IFS=$as_save_IFS 3172 test -z "$as_dir" && as_dir=. 3173 for ac_exec_ext in '' $ac_executable_extensions; do 3174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3175 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3177 break 2 3178 fi 3179done 3180 done 3181IFS=$as_save_IFS 3182 3183fi 3184fi 3185CC=$ac_cv_prog_CC 3186if test -n "$CC"; then 3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3188$as_echo "$CC" >&6; } 3189else 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3191$as_echo "no" >&6; } 3192fi 3193 3194 3195fi 3196if test -z "$ac_cv_prog_CC"; then 3197 ac_ct_CC=$CC 3198 # Extract the first word of "gcc", so it can be a program name with args. 3199set dummy gcc; ac_word=$2 3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3201$as_echo_n "checking for $ac_word... " >&6; } 3202if ${ac_cv_prog_ac_ct_CC+:} false; then : 3203 $as_echo_n "(cached) " >&6 3204else 3205 if test -n "$ac_ct_CC"; then 3206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3207else 3208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3209for as_dir in $PATH 3210do 3211 IFS=$as_save_IFS 3212 test -z "$as_dir" && as_dir=. 3213 for ac_exec_ext in '' $ac_executable_extensions; do 3214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3215 ac_cv_prog_ac_ct_CC="gcc" 3216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3217 break 2 3218 fi 3219done 3220 done 3221IFS=$as_save_IFS 3222 3223fi 3224fi 3225ac_ct_CC=$ac_cv_prog_ac_ct_CC 3226if test -n "$ac_ct_CC"; then 3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3228$as_echo "$ac_ct_CC" >&6; } 3229else 3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3231$as_echo "no" >&6; } 3232fi 3233 3234 if test "x$ac_ct_CC" = x; then 3235 CC="" 3236 else 3237 case $cross_compiling:$ac_tool_warned in 3238yes:) 3239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3241ac_tool_warned=yes ;; 3242esac 3243 CC=$ac_ct_CC 3244 fi 3245else 3246 CC="$ac_cv_prog_CC" 3247fi 3248 3249if test -z "$CC"; then 3250 if test -n "$ac_tool_prefix"; then 3251 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3252set dummy ${ac_tool_prefix}cc; ac_word=$2 3253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3254$as_echo_n "checking for $ac_word... " >&6; } 3255if ${ac_cv_prog_CC+:} false; then : 3256 $as_echo_n "(cached) " >&6 3257else 3258 if test -n "$CC"; then 3259 ac_cv_prog_CC="$CC" # Let the user override the test. 3260else 3261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3262for as_dir in $PATH 3263do 3264 IFS=$as_save_IFS 3265 test -z "$as_dir" && as_dir=. 3266 for ac_exec_ext in '' $ac_executable_extensions; do 3267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3268 ac_cv_prog_CC="${ac_tool_prefix}cc" 3269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3270 break 2 3271 fi 3272done 3273 done 3274IFS=$as_save_IFS 3275 3276fi 3277fi 3278CC=$ac_cv_prog_CC 3279if test -n "$CC"; then 3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3281$as_echo "$CC" >&6; } 3282else 3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3284$as_echo "no" >&6; } 3285fi 3286 3287 3288 fi 3289fi 3290if test -z "$CC"; then 3291 # Extract the first word of "cc", so it can be a program name with args. 3292set dummy cc; ac_word=$2 3293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3294$as_echo_n "checking for $ac_word... " >&6; } 3295if ${ac_cv_prog_CC+:} false; then : 3296 $as_echo_n "(cached) " >&6 3297else 3298 if test -n "$CC"; then 3299 ac_cv_prog_CC="$CC" # Let the user override the test. 3300else 3301 ac_prog_rejected=no 3302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3303for as_dir in $PATH 3304do 3305 IFS=$as_save_IFS 3306 test -z "$as_dir" && as_dir=. 3307 for ac_exec_ext in '' $ac_executable_extensions; do 3308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3309 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3310 ac_prog_rejected=yes 3311 continue 3312 fi 3313 ac_cv_prog_CC="cc" 3314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3315 break 2 3316 fi 3317done 3318 done 3319IFS=$as_save_IFS 3320 3321if test $ac_prog_rejected = yes; then 3322 # We found a bogon in the path, so make sure we never use it. 3323 set dummy $ac_cv_prog_CC 3324 shift 3325 if test $# != 0; then 3326 # We chose a different compiler from the bogus one. 3327 # However, it has the same basename, so the bogon will be chosen 3328 # first if we set CC to just the basename; use the full file name. 3329 shift 3330 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3331 fi 3332fi 3333fi 3334fi 3335CC=$ac_cv_prog_CC 3336if test -n "$CC"; then 3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3338$as_echo "$CC" >&6; } 3339else 3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3341$as_echo "no" >&6; } 3342fi 3343 3344 3345fi 3346if test -z "$CC"; then 3347 if test -n "$ac_tool_prefix"; then 3348 for ac_prog in cl.exe 3349 do 3350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3351set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3353$as_echo_n "checking for $ac_word... " >&6; } 3354if ${ac_cv_prog_CC+:} false; then : 3355 $as_echo_n "(cached) " >&6 3356else 3357 if test -n "$CC"; then 3358 ac_cv_prog_CC="$CC" # Let the user override the test. 3359else 3360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3361for as_dir in $PATH 3362do 3363 IFS=$as_save_IFS 3364 test -z "$as_dir" && as_dir=. 3365 for ac_exec_ext in '' $ac_executable_extensions; do 3366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3367 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3369 break 2 3370 fi 3371done 3372 done 3373IFS=$as_save_IFS 3374 3375fi 3376fi 3377CC=$ac_cv_prog_CC 3378if test -n "$CC"; then 3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3380$as_echo "$CC" >&6; } 3381else 3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3383$as_echo "no" >&6; } 3384fi 3385 3386 3387 test -n "$CC" && break 3388 done 3389fi 3390if test -z "$CC"; then 3391 ac_ct_CC=$CC 3392 for ac_prog in cl.exe 3393do 3394 # Extract the first word of "$ac_prog", so it can be a program name with args. 3395set dummy $ac_prog; ac_word=$2 3396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3397$as_echo_n "checking for $ac_word... " >&6; } 3398if ${ac_cv_prog_ac_ct_CC+:} false; then : 3399 $as_echo_n "(cached) " >&6 3400else 3401 if test -n "$ac_ct_CC"; then 3402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3403else 3404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3405for as_dir in $PATH 3406do 3407 IFS=$as_save_IFS 3408 test -z "$as_dir" && as_dir=. 3409 for ac_exec_ext in '' $ac_executable_extensions; do 3410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3411 ac_cv_prog_ac_ct_CC="$ac_prog" 3412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3413 break 2 3414 fi 3415done 3416 done 3417IFS=$as_save_IFS 3418 3419fi 3420fi 3421ac_ct_CC=$ac_cv_prog_ac_ct_CC 3422if test -n "$ac_ct_CC"; then 3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3424$as_echo "$ac_ct_CC" >&6; } 3425else 3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3427$as_echo "no" >&6; } 3428fi 3429 3430 3431 test -n "$ac_ct_CC" && break 3432done 3433 3434 if test "x$ac_ct_CC" = x; then 3435 CC="" 3436 else 3437 case $cross_compiling:$ac_tool_warned in 3438yes:) 3439{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3440$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3441ac_tool_warned=yes ;; 3442esac 3443 CC=$ac_ct_CC 3444 fi 3445fi 3446 3447fi 3448 3449 3450test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3452as_fn_error $? "no acceptable C compiler found in \$PATH 3453See \`config.log' for more details" "$LINENO" 5; } 3454 3455# Provide some information about the compiler. 3456$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3457set X $ac_compile 3458ac_compiler=$2 3459for ac_option in --version -v -V -qversion; do 3460 { { ac_try="$ac_compiler $ac_option >&5" 3461case "(($ac_try" in 3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3463 *) ac_try_echo=$ac_try;; 3464esac 3465eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3466$as_echo "$ac_try_echo"; } >&5 3467 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3468 ac_status=$? 3469 if test -s conftest.err; then 3470 sed '10a\ 3471... rest of stderr output deleted ... 3472 10q' conftest.err >conftest.er1 3473 cat conftest.er1 >&5 3474 fi 3475 rm -f conftest.er1 conftest.err 3476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3477 test $ac_status = 0; } 3478done 3479 3480cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3481/* end confdefs.h. */ 3482 3483int 3484main () 3485{ 3486 3487 ; 3488 return 0; 3489} 3490_ACEOF 3491ac_clean_files_save=$ac_clean_files 3492ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3493# Try to create an executable without -o first, disregard a.out. 3494# It will help us diagnose broken compilers, and finding out an intuition 3495# of exeext. 3496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3497$as_echo_n "checking whether the C compiler works... " >&6; } 3498ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3499 3500# The possible output files: 3501ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3502 3503ac_rmfiles= 3504for ac_file in $ac_files 3505do 3506 case $ac_file in 3507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3508 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3509 esac 3510done 3511rm -f $ac_rmfiles 3512 3513if { { ac_try="$ac_link_default" 3514case "(($ac_try" in 3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3516 *) ac_try_echo=$ac_try;; 3517esac 3518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3519$as_echo "$ac_try_echo"; } >&5 3520 (eval "$ac_link_default") 2>&5 3521 ac_status=$? 3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3523 test $ac_status = 0; }; then : 3524 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3525# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3526# in a Makefile. We should not override ac_cv_exeext if it was cached, 3527# so that the user can short-circuit this test for compilers unknown to 3528# Autoconf. 3529for ac_file in $ac_files '' 3530do 3531 test -f "$ac_file" || continue 3532 case $ac_file in 3533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3534 ;; 3535 [ab].out ) 3536 # We found the default executable, but exeext='' is most 3537 # certainly right. 3538 break;; 3539 *.* ) 3540 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3541 then :; else 3542 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3543 fi 3544 # We set ac_cv_exeext here because the later test for it is not 3545 # safe: cross compilers may not add the suffix if given an `-o' 3546 # argument, so we may need to know it at that point already. 3547 # Even if this section looks crufty: it has the advantage of 3548 # actually working. 3549 break;; 3550 * ) 3551 break;; 3552 esac 3553done 3554test "$ac_cv_exeext" = no && ac_cv_exeext= 3555 3556else 3557 ac_file='' 3558fi 3559if test -z "$ac_file"; then : 3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3561$as_echo "no" >&6; } 3562$as_echo "$as_me: failed program was:" >&5 3563sed 's/^/| /' conftest.$ac_ext >&5 3564 3565{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3566$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3567as_fn_error 77 "C compiler cannot create executables 3568See \`config.log' for more details" "$LINENO" 5; } 3569else 3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3571$as_echo "yes" >&6; } 3572fi 3573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3574$as_echo_n "checking for C compiler default output file name... " >&6; } 3575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3576$as_echo "$ac_file" >&6; } 3577ac_exeext=$ac_cv_exeext 3578 3579rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3580ac_clean_files=$ac_clean_files_save 3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3582$as_echo_n "checking for suffix of executables... " >&6; } 3583if { { ac_try="$ac_link" 3584case "(($ac_try" in 3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3586 *) ac_try_echo=$ac_try;; 3587esac 3588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3589$as_echo "$ac_try_echo"; } >&5 3590 (eval "$ac_link") 2>&5 3591 ac_status=$? 3592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3593 test $ac_status = 0; }; then : 3594 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3595# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3596# work properly (i.e., refer to `conftest.exe'), while it won't with 3597# `rm'. 3598for ac_file in conftest.exe conftest conftest.*; do 3599 test -f "$ac_file" || continue 3600 case $ac_file in 3601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3602 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3603 break;; 3604 * ) break;; 3605 esac 3606done 3607else 3608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3610as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3611See \`config.log' for more details" "$LINENO" 5; } 3612fi 3613rm -f conftest conftest$ac_cv_exeext 3614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3615$as_echo "$ac_cv_exeext" >&6; } 3616 3617rm -f conftest.$ac_ext 3618EXEEXT=$ac_cv_exeext 3619ac_exeext=$EXEEXT 3620cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3621/* end confdefs.h. */ 3622#include <stdio.h> 3623int 3624main () 3625{ 3626FILE *f = fopen ("conftest.out", "w"); 3627 return ferror (f) || fclose (f) != 0; 3628 3629 ; 3630 return 0; 3631} 3632_ACEOF 3633ac_clean_files="$ac_clean_files conftest.out" 3634# Check that the compiler produces executables we can run. If not, either 3635# the compiler is broken, or we cross compile. 3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3637$as_echo_n "checking whether we are cross compiling... " >&6; } 3638if test "$cross_compiling" != yes; then 3639 { { ac_try="$ac_link" 3640case "(($ac_try" in 3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3642 *) ac_try_echo=$ac_try;; 3643esac 3644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3645$as_echo "$ac_try_echo"; } >&5 3646 (eval "$ac_link") 2>&5 3647 ac_status=$? 3648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3649 test $ac_status = 0; } 3650 if { ac_try='./conftest$ac_cv_exeext' 3651 { { case "(($ac_try" in 3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3653 *) ac_try_echo=$ac_try;; 3654esac 3655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3656$as_echo "$ac_try_echo"; } >&5 3657 (eval "$ac_try") 2>&5 3658 ac_status=$? 3659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3660 test $ac_status = 0; }; }; then 3661 cross_compiling=no 3662 else 3663 if test "$cross_compiling" = maybe; then 3664 cross_compiling=yes 3665 else 3666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3668as_fn_error $? "cannot run C compiled programs. 3669If you meant to cross compile, use \`--host'. 3670See \`config.log' for more details" "$LINENO" 5; } 3671 fi 3672 fi 3673fi 3674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3675$as_echo "$cross_compiling" >&6; } 3676 3677rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3678ac_clean_files=$ac_clean_files_save 3679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3680$as_echo_n "checking for suffix of object files... " >&6; } 3681if ${ac_cv_objext+:} false; then : 3682 $as_echo_n "(cached) " >&6 3683else 3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3685/* end confdefs.h. */ 3686 3687int 3688main () 3689{ 3690 3691 ; 3692 return 0; 3693} 3694_ACEOF 3695rm -f conftest.o conftest.obj 3696if { { ac_try="$ac_compile" 3697case "(($ac_try" in 3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3699 *) ac_try_echo=$ac_try;; 3700esac 3701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3702$as_echo "$ac_try_echo"; } >&5 3703 (eval "$ac_compile") 2>&5 3704 ac_status=$? 3705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3706 test $ac_status = 0; }; then : 3707 for ac_file in conftest.o conftest.obj conftest.*; do 3708 test -f "$ac_file" || continue; 3709 case $ac_file in 3710 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3711 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3712 break;; 3713 esac 3714done 3715else 3716 $as_echo "$as_me: failed program was:" >&5 3717sed 's/^/| /' conftest.$ac_ext >&5 3718 3719{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3720$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3721as_fn_error $? "cannot compute suffix of object files: cannot compile 3722See \`config.log' for more details" "$LINENO" 5; } 3723fi 3724rm -f conftest.$ac_cv_objext conftest.$ac_ext 3725fi 3726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3727$as_echo "$ac_cv_objext" >&6; } 3728OBJEXT=$ac_cv_objext 3729ac_objext=$OBJEXT 3730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3731$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3732if ${ac_cv_c_compiler_gnu+:} false; then : 3733 $as_echo_n "(cached) " >&6 3734else 3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3736/* end confdefs.h. */ 3737 3738int 3739main () 3740{ 3741#ifndef __GNUC__ 3742 choke me 3743#endif 3744 3745 ; 3746 return 0; 3747} 3748_ACEOF 3749if ac_fn_c_try_compile "$LINENO"; then : 3750 ac_compiler_gnu=yes 3751else 3752 ac_compiler_gnu=no 3753fi 3754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3755ac_cv_c_compiler_gnu=$ac_compiler_gnu 3756 3757fi 3758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3759$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3760if test $ac_compiler_gnu = yes; then 3761 GCC=yes 3762else 3763 GCC= 3764fi 3765ac_test_CFLAGS=${CFLAGS+set} 3766ac_save_CFLAGS=$CFLAGS 3767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3768$as_echo_n "checking whether $CC accepts -g... " >&6; } 3769if ${ac_cv_prog_cc_g+:} false; then : 3770 $as_echo_n "(cached) " >&6 3771else 3772 ac_save_c_werror_flag=$ac_c_werror_flag 3773 ac_c_werror_flag=yes 3774 ac_cv_prog_cc_g=no 3775 CFLAGS="-g" 3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3777/* end confdefs.h. */ 3778 3779int 3780main () 3781{ 3782 3783 ; 3784 return 0; 3785} 3786_ACEOF 3787if ac_fn_c_try_compile "$LINENO"; then : 3788 ac_cv_prog_cc_g=yes 3789else 3790 CFLAGS="" 3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3792/* end confdefs.h. */ 3793 3794int 3795main () 3796{ 3797 3798 ; 3799 return 0; 3800} 3801_ACEOF 3802if ac_fn_c_try_compile "$LINENO"; then : 3803 3804else 3805 ac_c_werror_flag=$ac_save_c_werror_flag 3806 CFLAGS="-g" 3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3808/* end confdefs.h. */ 3809 3810int 3811main () 3812{ 3813 3814 ; 3815 return 0; 3816} 3817_ACEOF 3818if ac_fn_c_try_compile "$LINENO"; then : 3819 ac_cv_prog_cc_g=yes 3820fi 3821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3822fi 3823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3824fi 3825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3826 ac_c_werror_flag=$ac_save_c_werror_flag 3827fi 3828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3829$as_echo "$ac_cv_prog_cc_g" >&6; } 3830if test "$ac_test_CFLAGS" = set; then 3831 CFLAGS=$ac_save_CFLAGS 3832elif test $ac_cv_prog_cc_g = yes; then 3833 if test "$GCC" = yes; then 3834 CFLAGS="-g -O2" 3835 else 3836 CFLAGS="-g" 3837 fi 3838else 3839 if test "$GCC" = yes; then 3840 CFLAGS="-O2" 3841 else 3842 CFLAGS= 3843 fi 3844fi 3845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3846$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3847if ${ac_cv_prog_cc_c89+:} false; then : 3848 $as_echo_n "(cached) " >&6 3849else 3850 ac_cv_prog_cc_c89=no 3851ac_save_CC=$CC 3852cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3853/* end confdefs.h. */ 3854#include <stdarg.h> 3855#include <stdio.h> 3856struct stat; 3857/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3858struct buf { int x; }; 3859FILE * (*rcsopen) (struct buf *, struct stat *, int); 3860static char *e (p, i) 3861 char **p; 3862 int i; 3863{ 3864 return p[i]; 3865} 3866static char *f (char * (*g) (char **, int), char **p, ...) 3867{ 3868 char *s; 3869 va_list v; 3870 va_start (v,p); 3871 s = g (p, va_arg (v,int)); 3872 va_end (v); 3873 return s; 3874} 3875 3876/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3877 function prototypes and stuff, but not '\xHH' hex character constants. 3878 These don't provoke an error unfortunately, instead are silently treated 3879 as 'x'. The following induces an error, until -std is added to get 3880 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3881 array size at least. It's necessary to write '\x00'==0 to get something 3882 that's true only with -std. */ 3883int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3884 3885/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3886 inside strings and character constants. */ 3887#define FOO(x) 'x' 3888int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3889 3890int test (int i, double x); 3891struct s1 {int (*f) (int a);}; 3892struct s2 {int (*f) (double a);}; 3893int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3894int argc; 3895char **argv; 3896int 3897main () 3898{ 3899return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3900 ; 3901 return 0; 3902} 3903_ACEOF 3904for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3905 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3906do 3907 CC="$ac_save_CC $ac_arg" 3908 if ac_fn_c_try_compile "$LINENO"; then : 3909 ac_cv_prog_cc_c89=$ac_arg 3910fi 3911rm -f core conftest.err conftest.$ac_objext 3912 test "x$ac_cv_prog_cc_c89" != "xno" && break 3913done 3914rm -f conftest.$ac_ext 3915CC=$ac_save_CC 3916 3917fi 3918# AC_CACHE_VAL 3919case "x$ac_cv_prog_cc_c89" in 3920 x) 3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3922$as_echo "none needed" >&6; } ;; 3923 xno) 3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3925$as_echo "unsupported" >&6; } ;; 3926 *) 3927 CC="$CC $ac_cv_prog_cc_c89" 3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3929$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3930esac 3931if test "x$ac_cv_prog_cc_c89" != xno; then : 3932 3933fi 3934 3935ac_ext=c 3936ac_cpp='$CPP $CPPFLAGS' 3937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3939ac_compiler_gnu=$ac_cv_c_compiler_gnu 3940 3941ac_ext=c 3942ac_cpp='$CPP $CPPFLAGS' 3943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3945ac_compiler_gnu=$ac_cv_c_compiler_gnu 3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3947$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3948if ${am_cv_prog_cc_c_o+:} false; then : 3949 $as_echo_n "(cached) " >&6 3950else 3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3952/* end confdefs.h. */ 3953 3954int 3955main () 3956{ 3957 3958 ; 3959 return 0; 3960} 3961_ACEOF 3962 # Make sure it works both with $CC and with simple cc. 3963 # Following AC_PROG_CC_C_O, we do the test twice because some 3964 # compilers refuse to overwrite an existing .o file with -o, 3965 # though they will create one. 3966 am_cv_prog_cc_c_o=yes 3967 for am_i in 1 2; do 3968 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3969 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3970 ac_status=$? 3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3972 (exit $ac_status); } \ 3973 && test -f conftest2.$ac_objext; then 3974 : OK 3975 else 3976 am_cv_prog_cc_c_o=no 3977 break 3978 fi 3979 done 3980 rm -f core conftest* 3981 unset am_i 3982fi 3983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3984$as_echo "$am_cv_prog_cc_c_o" >&6; } 3985if test "$am_cv_prog_cc_c_o" != yes; then 3986 # Losing compiler, so override with the script. 3987 # FIXME: It is wrong to rewrite CC. 3988 # But if we don't then we get into trouble of one sort or another. 3989 # A longer-term fix would be to have automake use am__CC in this case, 3990 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3991 CC="$am_aux_dir/compile $CC" 3992fi 3993ac_ext=c 3994ac_cpp='$CPP $CPPFLAGS' 3995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3997ac_compiler_gnu=$ac_cv_c_compiler_gnu 3998 3999DEPDIR="${am__leading_dot}deps" 4000 4001ac_config_commands="$ac_config_commands depfiles" 4002 4003 4004am_make=${MAKE-make} 4005cat > confinc << 'END' 4006am__doit: 4007 @echo this is the am__doit target 4008.PHONY: am__doit 4009END 4010# If we don't find an include directive, just comment out the code. 4011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4012$as_echo_n "checking for style of include used by $am_make... " >&6; } 4013am__include="#" 4014am__quote= 4015_am_result=none 4016# First try GNU make style include. 4017echo "include confinc" > confmf 4018# Ignore all kinds of additional output from 'make'. 4019case `$am_make -s -f confmf 2> /dev/null` in #( 4020*the\ am__doit\ target*) 4021 am__include=include 4022 am__quote= 4023 _am_result=GNU 4024 ;; 4025esac 4026# Now try BSD make style include. 4027if test "$am__include" = "#"; then 4028 echo '.include "confinc"' > confmf 4029 case `$am_make -s -f confmf 2> /dev/null` in #( 4030 *the\ am__doit\ target*) 4031 am__include=.include 4032 am__quote="\"" 4033 _am_result=BSD 4034 ;; 4035 esac 4036fi 4037 4038 4039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4040$as_echo "$_am_result" >&6; } 4041rm -f confinc confmf 4042 4043# Check whether --enable-dependency-tracking was given. 4044if test "${enable_dependency_tracking+set}" = set; then : 4045 enableval=$enable_dependency_tracking; 4046fi 4047 4048if test "x$enable_dependency_tracking" != xno; then 4049 am_depcomp="$ac_aux_dir/depcomp" 4050 AMDEPBACKSLASH='\' 4051 am__nodep='_no' 4052fi 4053 if test "x$enable_dependency_tracking" != xno; then 4054 AMDEP_TRUE= 4055 AMDEP_FALSE='#' 4056else 4057 AMDEP_TRUE='#' 4058 AMDEP_FALSE= 4059fi 4060 4061 4062 4063depcc="$CC" am_compiler_list= 4064 4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4066$as_echo_n "checking dependency style of $depcc... " >&6; } 4067if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4068 $as_echo_n "(cached) " >&6 4069else 4070 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4071 # We make a subdir and do the tests there. Otherwise we can end up 4072 # making bogus files that we don't know about and never remove. For 4073 # instance it was reported that on HP-UX the gcc test will end up 4074 # making a dummy file named 'D' -- because '-MD' means "put the output 4075 # in D". 4076 rm -rf conftest.dir 4077 mkdir conftest.dir 4078 # Copy depcomp to subdir because otherwise we won't find it if we're 4079 # using a relative directory. 4080 cp "$am_depcomp" conftest.dir 4081 cd conftest.dir 4082 # We will build objects and dependencies in a subdirectory because 4083 # it helps to detect inapplicable dependency modes. For instance 4084 # both Tru64's cc and ICC support -MD to output dependencies as a 4085 # side effect of compilation, but ICC will put the dependencies in 4086 # the current directory while Tru64 will put them in the object 4087 # directory. 4088 mkdir sub 4089 4090 am_cv_CC_dependencies_compiler_type=none 4091 if test "$am_compiler_list" = ""; then 4092 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4093 fi 4094 am__universal=false 4095 case " $depcc " in #( 4096 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4097 esac 4098 4099 for depmode in $am_compiler_list; do 4100 # Setup a source with many dependencies, because some compilers 4101 # like to wrap large dependency lists on column 80 (with \), and 4102 # we should not choose a depcomp mode which is confused by this. 4103 # 4104 # We need to recreate these files for each test, as the compiler may 4105 # overwrite some of them when testing with obscure command lines. 4106 # This happens at least with the AIX C compiler. 4107 : > sub/conftest.c 4108 for i in 1 2 3 4 5 6; do 4109 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4110 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4111 # Solaris 10 /bin/sh. 4112 echo '/* dummy */' > sub/conftst$i.h 4113 done 4114 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4115 4116 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4117 # mode. It turns out that the SunPro C++ compiler does not properly 4118 # handle '-M -o', and we need to detect this. Also, some Intel 4119 # versions had trouble with output in subdirs. 4120 am__obj=sub/conftest.${OBJEXT-o} 4121 am__minus_obj="-o $am__obj" 4122 case $depmode in 4123 gcc) 4124 # This depmode causes a compiler race in universal mode. 4125 test "$am__universal" = false || continue 4126 ;; 4127 nosideeffect) 4128 # After this tag, mechanisms are not by side-effect, so they'll 4129 # only be used when explicitly requested. 4130 if test "x$enable_dependency_tracking" = xyes; then 4131 continue 4132 else 4133 break 4134 fi 4135 ;; 4136 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4137 # This compiler won't grok '-c -o', but also, the minuso test has 4138 # not run yet. These depmodes are late enough in the game, and 4139 # so weak that their functioning should not be impacted. 4140 am__obj=conftest.${OBJEXT-o} 4141 am__minus_obj= 4142 ;; 4143 none) break ;; 4144 esac 4145 if depmode=$depmode \ 4146 source=sub/conftest.c object=$am__obj \ 4147 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4148 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4149 >/dev/null 2>conftest.err && 4150 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4151 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4152 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4153 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4154 # icc doesn't choke on unknown options, it will just issue warnings 4155 # or remarks (even with -Werror). So we grep stderr for any message 4156 # that says an option was ignored or not supported. 4157 # When given -MP, icc 7.0 and 7.1 complain thusly: 4158 # icc: Command line warning: ignoring option '-M'; no argument required 4159 # The diagnosis changed in icc 8.0: 4160 # icc: Command line remark: option '-MP' not supported 4161 if (grep 'ignoring option' conftest.err || 4162 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4163 am_cv_CC_dependencies_compiler_type=$depmode 4164 break 4165 fi 4166 fi 4167 done 4168 4169 cd .. 4170 rm -rf conftest.dir 4171else 4172 am_cv_CC_dependencies_compiler_type=none 4173fi 4174 4175fi 4176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4177$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4178CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4179 4180 if 4181 test "x$enable_dependency_tracking" != xno \ 4182 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4183 am__fastdepCC_TRUE= 4184 am__fastdepCC_FALSE='#' 4185else 4186 am__fastdepCC_TRUE='#' 4187 am__fastdepCC_FALSE= 4188fi 4189 4190 4191 4192 if test -n "$GCC"; then 4193 GCC_TRUE= 4194 GCC_FALSE='#' 4195else 4196 GCC_TRUE='#' 4197 GCC_FALSE= 4198fi 4199 4200 4201# All AC_CHECK_SIZEOF() or AC_CHECK_TYPES() calls were move from 4. 4202# unixODBC wants the following to get sane behavior for ODBCINT64 4203 4204ac_ext=c 4205ac_cpp='$CPP $CPPFLAGS' 4206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4208ac_compiler_gnu=$ac_cv_c_compiler_gnu 4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4210$as_echo_n "checking how to run the C preprocessor... " >&6; } 4211# On Suns, sometimes $CPP names a directory. 4212if test -n "$CPP" && test -d "$CPP"; then 4213 CPP= 4214fi 4215if test -z "$CPP"; then 4216 if ${ac_cv_prog_CPP+:} false; then : 4217 $as_echo_n "(cached) " >&6 4218else 4219 # Double quotes because CPP needs to be expanded 4220 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4221 do 4222 ac_preproc_ok=false 4223for ac_c_preproc_warn_flag in '' yes 4224do 4225 # Use a header file that comes with gcc, so configuring glibc 4226 # with a fresh cross-compiler works. 4227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4228 # <limits.h> exists even on freestanding compilers. 4229 # On the NeXT, cc -E runs the code through the compiler's parser, 4230 # not just through cpp. "Syntax error" is here to catch this case. 4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4232/* end confdefs.h. */ 4233#ifdef __STDC__ 4234# include <limits.h> 4235#else 4236# include <assert.h> 4237#endif 4238 Syntax error 4239_ACEOF 4240if ac_fn_c_try_cpp "$LINENO"; then : 4241 4242else 4243 # Broken: fails on valid input. 4244continue 4245fi 4246rm -f conftest.err conftest.i conftest.$ac_ext 4247 4248 # OK, works on sane cases. Now check whether nonexistent headers 4249 # can be detected and how. 4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4251/* end confdefs.h. */ 4252#include <ac_nonexistent.h> 4253_ACEOF 4254if ac_fn_c_try_cpp "$LINENO"; then : 4255 # Broken: success on invalid input. 4256continue 4257else 4258 # Passes both tests. 4259ac_preproc_ok=: 4260break 4261fi 4262rm -f conftest.err conftest.i conftest.$ac_ext 4263 4264done 4265# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4266rm -f conftest.i conftest.err conftest.$ac_ext 4267if $ac_preproc_ok; then : 4268 break 4269fi 4270 4271 done 4272 ac_cv_prog_CPP=$CPP 4273 4274fi 4275 CPP=$ac_cv_prog_CPP 4276else 4277 ac_cv_prog_CPP=$CPP 4278fi 4279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4280$as_echo "$CPP" >&6; } 4281ac_preproc_ok=false 4282for ac_c_preproc_warn_flag in '' yes 4283do 4284 # Use a header file that comes with gcc, so configuring glibc 4285 # with a fresh cross-compiler works. 4286 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4287 # <limits.h> exists even on freestanding compilers. 4288 # On the NeXT, cc -E runs the code through the compiler's parser, 4289 # not just through cpp. "Syntax error" is here to catch this case. 4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4291/* end confdefs.h. */ 4292#ifdef __STDC__ 4293# include <limits.h> 4294#else 4295# include <assert.h> 4296#endif 4297 Syntax error 4298_ACEOF 4299if ac_fn_c_try_cpp "$LINENO"; then : 4300 4301else 4302 # Broken: fails on valid input. 4303continue 4304fi 4305rm -f conftest.err conftest.i conftest.$ac_ext 4306 4307 # OK, works on sane cases. Now check whether nonexistent headers 4308 # can be detected and how. 4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4310/* end confdefs.h. */ 4311#include <ac_nonexistent.h> 4312_ACEOF 4313if ac_fn_c_try_cpp "$LINENO"; then : 4314 # Broken: success on invalid input. 4315continue 4316else 4317 # Passes both tests. 4318ac_preproc_ok=: 4319break 4320fi 4321rm -f conftest.err conftest.i conftest.$ac_ext 4322 4323done 4324# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4325rm -f conftest.i conftest.err conftest.$ac_ext 4326if $ac_preproc_ok; then : 4327 4328else 4329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4331as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4332See \`config.log' for more details" "$LINENO" 5; } 4333fi 4334 4335ac_ext=c 4336ac_cpp='$CPP $CPPFLAGS' 4337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4339ac_compiler_gnu=$ac_cv_c_compiler_gnu 4340 4341 4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4343$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4344if ${ac_cv_path_GREP+:} false; then : 4345 $as_echo_n "(cached) " >&6 4346else 4347 if test -z "$GREP"; then 4348 ac_path_GREP_found=false 4349 # Loop through the user's path and test for each of PROGNAME-LIST 4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4351for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4352do 4353 IFS=$as_save_IFS 4354 test -z "$as_dir" && as_dir=. 4355 for ac_prog in grep ggrep; do 4356 for ac_exec_ext in '' $ac_executable_extensions; do 4357 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4358 as_fn_executable_p "$ac_path_GREP" || continue 4359# Check for GNU ac_path_GREP and select it if it is found. 4360 # Check for GNU $ac_path_GREP 4361case `"$ac_path_GREP" --version 2>&1` in 4362*GNU*) 4363 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4364*) 4365 ac_count=0 4366 $as_echo_n 0123456789 >"conftest.in" 4367 while : 4368 do 4369 cat "conftest.in" "conftest.in" >"conftest.tmp" 4370 mv "conftest.tmp" "conftest.in" 4371 cp "conftest.in" "conftest.nl" 4372 $as_echo 'GREP' >> "conftest.nl" 4373 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4374 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4375 as_fn_arith $ac_count + 1 && ac_count=$as_val 4376 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4377 # Best one so far, save it but keep looking for a better one 4378 ac_cv_path_GREP="$ac_path_GREP" 4379 ac_path_GREP_max=$ac_count 4380 fi 4381 # 10*(2^10) chars as input seems more than enough 4382 test $ac_count -gt 10 && break 4383 done 4384 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4385esac 4386 4387 $ac_path_GREP_found && break 3 4388 done 4389 done 4390 done 4391IFS=$as_save_IFS 4392 if test -z "$ac_cv_path_GREP"; then 4393 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4394 fi 4395else 4396 ac_cv_path_GREP=$GREP 4397fi 4398 4399fi 4400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4401$as_echo "$ac_cv_path_GREP" >&6; } 4402 GREP="$ac_cv_path_GREP" 4403 4404 4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4406$as_echo_n "checking for egrep... " >&6; } 4407if ${ac_cv_path_EGREP+:} false; then : 4408 $as_echo_n "(cached) " >&6 4409else 4410 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4411 then ac_cv_path_EGREP="$GREP -E" 4412 else 4413 if test -z "$EGREP"; then 4414 ac_path_EGREP_found=false 4415 # Loop through the user's path and test for each of PROGNAME-LIST 4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4417for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4418do 4419 IFS=$as_save_IFS 4420 test -z "$as_dir" && as_dir=. 4421 for ac_prog in egrep; do 4422 for ac_exec_ext in '' $ac_executable_extensions; do 4423 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4424 as_fn_executable_p "$ac_path_EGREP" || continue 4425# Check for GNU ac_path_EGREP and select it if it is found. 4426 # Check for GNU $ac_path_EGREP 4427case `"$ac_path_EGREP" --version 2>&1` in 4428*GNU*) 4429 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4430*) 4431 ac_count=0 4432 $as_echo_n 0123456789 >"conftest.in" 4433 while : 4434 do 4435 cat "conftest.in" "conftest.in" >"conftest.tmp" 4436 mv "conftest.tmp" "conftest.in" 4437 cp "conftest.in" "conftest.nl" 4438 $as_echo 'EGREP' >> "conftest.nl" 4439 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4440 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4441 as_fn_arith $ac_count + 1 && ac_count=$as_val 4442 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4443 # Best one so far, save it but keep looking for a better one 4444 ac_cv_path_EGREP="$ac_path_EGREP" 4445 ac_path_EGREP_max=$ac_count 4446 fi 4447 # 10*(2^10) chars as input seems more than enough 4448 test $ac_count -gt 10 && break 4449 done 4450 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4451esac 4452 4453 $ac_path_EGREP_found && break 3 4454 done 4455 done 4456 done 4457IFS=$as_save_IFS 4458 if test -z "$ac_cv_path_EGREP"; then 4459 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4460 fi 4461else 4462 ac_cv_path_EGREP=$EGREP 4463fi 4464 4465 fi 4466fi 4467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4468$as_echo "$ac_cv_path_EGREP" >&6; } 4469 EGREP="$ac_cv_path_EGREP" 4470 4471 4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4473$as_echo_n "checking for ANSI C header files... " >&6; } 4474if ${ac_cv_header_stdc+:} false; then : 4475 $as_echo_n "(cached) " >&6 4476else 4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4478/* end confdefs.h. */ 4479#include <stdlib.h> 4480#include <stdarg.h> 4481#include <string.h> 4482#include <float.h> 4483 4484int 4485main () 4486{ 4487 4488 ; 4489 return 0; 4490} 4491_ACEOF 4492if ac_fn_c_try_compile "$LINENO"; then : 4493 ac_cv_header_stdc=yes 4494else 4495 ac_cv_header_stdc=no 4496fi 4497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4498 4499if test $ac_cv_header_stdc = yes; then 4500 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4502/* end confdefs.h. */ 4503#include <string.h> 4504 4505_ACEOF 4506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4507 $EGREP "memchr" >/dev/null 2>&1; then : 4508 4509else 4510 ac_cv_header_stdc=no 4511fi 4512rm -f conftest* 4513 4514fi 4515 4516if test $ac_cv_header_stdc = yes; then 4517 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4519/* end confdefs.h. */ 4520#include <stdlib.h> 4521 4522_ACEOF 4523if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4524 $EGREP "free" >/dev/null 2>&1; then : 4525 4526else 4527 ac_cv_header_stdc=no 4528fi 4529rm -f conftest* 4530 4531fi 4532 4533if test $ac_cv_header_stdc = yes; then 4534 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4535 if test "$cross_compiling" = yes; then : 4536 : 4537else 4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4539/* end confdefs.h. */ 4540#include <ctype.h> 4541#include <stdlib.h> 4542#if ((' ' & 0x0FF) == 0x020) 4543# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4544# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4545#else 4546# define ISLOWER(c) \ 4547 (('a' <= (c) && (c) <= 'i') \ 4548 || ('j' <= (c) && (c) <= 'r') \ 4549 || ('s' <= (c) && (c) <= 'z')) 4550# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4551#endif 4552 4553#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4554int 4555main () 4556{ 4557 int i; 4558 for (i = 0; i < 256; i++) 4559 if (XOR (islower (i), ISLOWER (i)) 4560 || toupper (i) != TOUPPER (i)) 4561 return 2; 4562 return 0; 4563} 4564_ACEOF 4565if ac_fn_c_try_run "$LINENO"; then : 4566 4567else 4568 ac_cv_header_stdc=no 4569fi 4570rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4571 conftest.$ac_objext conftest.beam conftest.$ac_ext 4572fi 4573 4574fi 4575fi 4576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4577$as_echo "$ac_cv_header_stdc" >&6; } 4578if test $ac_cv_header_stdc = yes; then 4579 4580$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4581 4582fi 4583 4584# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4585for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4586 inttypes.h stdint.h unistd.h 4587do : 4588 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4589ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4590" 4591if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4592 cat >>confdefs.h <<_ACEOF 4593#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4594_ACEOF 4595 4596fi 4597 4598done 4599 4600 4601# The cast to long int works around a bug in the HP C Compiler 4602# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4603# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4604# This bug is HP SR number 8606223364. 4605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 4606$as_echo_n "checking size of long... " >&6; } 4607if ${ac_cv_sizeof_long+:} false; then : 4608 $as_echo_n "(cached) " >&6 4609else 4610 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 4611 4612else 4613 if test "$ac_cv_type_long" = yes; then 4614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4616as_fn_error 77 "cannot compute sizeof (long) 4617See \`config.log' for more details" "$LINENO" 5; } 4618 else 4619 ac_cv_sizeof_long=0 4620 fi 4621fi 4622 4623fi 4624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 4625$as_echo "$ac_cv_sizeof_long" >&6; } 4626 4627 4628 4629cat >>confdefs.h <<_ACEOF 4630#define SIZEOF_LONG $ac_cv_sizeof_long 4631_ACEOF 4632 4633 4634# The cast to long int works around a bug in the HP C Compiler 4635# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4636# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4637# This bug is HP SR number 8606223364. 4638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 4639$as_echo_n "checking size of long int... " >&6; } 4640if ${ac_cv_sizeof_long_int+:} false; then : 4641 $as_echo_n "(cached) " >&6 4642else 4643 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : 4644 4645else 4646 if test "$ac_cv_type_long_int" = yes; then 4647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4648$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4649as_fn_error 77 "cannot compute sizeof (long int) 4650See \`config.log' for more details" "$LINENO" 5; } 4651 else 4652 ac_cv_sizeof_long_int=0 4653 fi 4654fi 4655 4656fi 4657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 4658$as_echo "$ac_cv_sizeof_long_int" >&6; } 4659 4660 4661 4662cat >>confdefs.h <<_ACEOF 4663#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int 4664_ACEOF 4665 4666 # for unixODBC 4667# The cast to long int works around a bug in the HP C Compiler 4668# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4669# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4670# This bug is HP SR number 8606223364. 4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 4672$as_echo_n "checking size of void *... " >&6; } 4673if ${ac_cv_sizeof_void_p+:} false; then : 4674 $as_echo_n "(cached) " >&6 4675else 4676 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 4677 4678else 4679 if test "$ac_cv_type_void_p" = yes; then 4680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4681$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4682as_fn_error 77 "cannot compute sizeof (void *) 4683See \`config.log' for more details" "$LINENO" 5; } 4684 else 4685 ac_cv_sizeof_void_p=0 4686 fi 4687fi 4688 4689fi 4690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 4691$as_echo "$ac_cv_sizeof_void_p" >&6; } 4692 4693 4694 4695cat >>confdefs.h <<_ACEOF 4696#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 4697_ACEOF 4698 4699 4700ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 4701if test "x$ac_cv_type_long_long" = xyes; then : 4702 4703cat >>confdefs.h <<_ACEOF 4704#define HAVE_LONG_LONG 1 4705_ACEOF 4706 4707 4708fi 4709 4710ac_fn_c_check_type "$LINENO" "signed char" "ac_cv_type_signed_char" "$ac_includes_default" 4711if test "x$ac_cv_type_signed_char" = xyes; then : 4712 4713cat >>confdefs.h <<_ACEOF 4714#define HAVE_SIGNED_CHAR 1 4715_ACEOF 4716 4717 4718fi 4719 4720ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 4721if test "x$ac_cv_type_ssize_t" = xyes; then : 4722 4723cat >>confdefs.h <<_ACEOF 4724#define HAVE_SSIZE_T 1 4725_ACEOF 4726 4727 4728fi 4729 4730ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 4731if test "x$ac_cv_type_size_t" = xyes; then : 4732 4733else 4734 4735cat >>confdefs.h <<_ACEOF 4736#define size_t unsigned int 4737_ACEOF 4738 4739fi 4740 4741 4742# Check if "-Wall" is valid 4743if test -n "$GCC" && test "$ac_test_CFLAGS" != set; then 4744 4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking -Wall is a valid compile option" >&5 4746$as_echo_n "checking -Wall is a valid compile option... " >&6; } 4747 CFLAGS_SAVE="${CFLAGS}" 4748 CFLAGS="${CFLAGS} -Wall" 4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4750/* end confdefs.h. */ 4751#include <stdio.h> 4752int 4753main () 4754{ 4755 4756 ; 4757 return 0; 4758} 4759_ACEOF 4760if ac_fn_c_try_compile "$LINENO"; then : 4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4762$as_echo "yes" >&6; } 4763else 4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4765$as_echo "no" >&6; } 4766 CFLAGS="${CFLAGS_SAVE}" 4767fi 4768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4769fi 4770 4771# 4772# Whether unixODBC driver manager is used 4773# 4774 4775# Check whether --with-unixodbc was given. 4776if test "${with_unixodbc+set}" = set; then : 4777 withval=$with_unixodbc; 4778else 4779 with_unixodbc=yes 4780fi 4781 4782 4783 4784# 4785# Whether iODBC driver manager is used 4786# 4787 4788# Check whether --with-iodbc was given. 4789if test "${with_iodbc+set}" = set; then : 4790 withval=$with_iodbc; 4791else 4792 with_iodbc=no 4793fi 4794 4795 4796 4797if test "$with_iodbc" != no; then 4798 with_unixodbc=no 4799 4800$as_echo "#define WITH_IODBC 1" >>confdefs.h 4801 4802 if test "$with_iodbc" = yes; then 4803 for ac_prog in iodbc-config 4804do 4805 # Extract the first word of "$ac_prog", so it can be a program name with args. 4806set dummy $ac_prog; ac_word=$2 4807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4808$as_echo_n "checking for $ac_word... " >&6; } 4809if ${ac_cv_path_ODBC_CONFIG+:} false; then : 4810 $as_echo_n "(cached) " >&6 4811else 4812 case $ODBC_CONFIG in 4813 [\\/]* | ?:[\\/]*) 4814 ac_cv_path_ODBC_CONFIG="$ODBC_CONFIG" # Let the user override the test with a path. 4815 ;; 4816 *) 4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4818for as_dir in $PATH 4819do 4820 IFS=$as_save_IFS 4821 test -z "$as_dir" && as_dir=. 4822 for ac_exec_ext in '' $ac_executable_extensions; do 4823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4824 ac_cv_path_ODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4826 break 2 4827 fi 4828done 4829 done 4830IFS=$as_save_IFS 4831 4832 ;; 4833esac 4834fi 4835ODBC_CONFIG=$ac_cv_path_ODBC_CONFIG 4836if test -n "$ODBC_CONFIG"; then 4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODBC_CONFIG" >&5 4838$as_echo "$ODBC_CONFIG" >&6; } 4839else 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4841$as_echo "no" >&6; } 4842fi 4843 4844 4845 test -n "$ODBC_CONFIG" && break 4846done 4847 4848 else 4849 ODBC_CONFIG=$with_iodbc 4850 fi 4851 if test ! -x "${ODBC_CONFIG}/bin/iodbc-config"; then 4852 if test ! -x "${ODBC_CONFIG}"; then 4853 as_fn_error $? "iodbc-config not found (required for iODBC build)" "$LINENO" 5 4854 fi 4855 else 4856 ODBC_CONFIG=${ODBC_CONFIG}/bin/iodbc-config 4857 fi 4858fi 4859 4860wo_odbc_config=__without_odbc_config 4861if test "$with_unixodbc" != no; then 4862 4863$as_echo "#define WITH_UNIXODBC 1" >>confdefs.h 4864 4865 if test "$with_unixodbc" = yes; then 4866 for ac_prog in odbc_config 4867do 4868 # Extract the first word of "$ac_prog", so it can be a program name with args. 4869set dummy $ac_prog; ac_word=$2 4870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4871$as_echo_n "checking for $ac_word... " >&6; } 4872if ${ac_cv_path_ODBC_CONFIG+:} false; then : 4873 $as_echo_n "(cached) " >&6 4874else 4875 case $ODBC_CONFIG in 4876 [\\/]* | ?:[\\/]*) 4877 ac_cv_path_ODBC_CONFIG="$ODBC_CONFIG" # Let the user override the test with a path. 4878 ;; 4879 *) 4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4881for as_dir in $PATH 4882do 4883 IFS=$as_save_IFS 4884 test -z "$as_dir" && as_dir=. 4885 for ac_exec_ext in '' $ac_executable_extensions; do 4886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4887 ac_cv_path_ODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4889 break 2 4890 fi 4891done 4892 done 4893IFS=$as_save_IFS 4894 4895 ;; 4896esac 4897fi 4898ODBC_CONFIG=$ac_cv_path_ODBC_CONFIG 4899if test -n "$ODBC_CONFIG"; then 4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODBC_CONFIG" >&5 4901$as_echo "$ODBC_CONFIG" >&6; } 4902else 4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4904$as_echo "no" >&6; } 4905fi 4906 4907 4908 test -n "$ODBC_CONFIG" && break 4909done 4910 4911 else 4912 ODBC_CONFIG=$with_unixodbc 4913 fi 4914 if test "${ODBC_CONFIG}" = "${wo_odbc_config}"; then 4915 : 4916 elif test ! -x "${ODBC_CONFIG}/bin/odbc_config"; then 4917 if test ! -x "${ODBC_CONFIG}"; then 4918 as_fn_error $? "odbc_config not found (required for unixODBC build)" "$LINENO" 5 4919 fi 4920 else 4921 ODBC_CONFIG=${ODBC_CONFIG}/bin/odbc_config 4922 fi 4923fi 4924 4925# 4926# ODBC include and library 4927# 4928 4929if test "$ODBC_CONFIG" != ""; then 4930 if test "$with_iodbc" != no; then 4931 ODBC_INCLUDE=`${ODBC_CONFIG} --cflags` 4932 CPPFLAGS="$CPPFLAGS ${ODBC_INCLUDE}" 4933 # Linking libiodoc is rather problematic 4934 ODBC_LIBDIR=`${ODBC_CONFIG} --libs | sed -e "s/^\(-L\|.*[ \t]-L\)\([^ \n\r\f\t]*\).*$/-L\2/"` 4935 LDFLAGS="$LDFLAGS ${ODBC_LIBDIR}" 4936 LIBODBC=`${ODBC_CONFIG} --libs` # for regression test 4937 elif test "${ODBC_CONFIG}" = "${wo_odbc_config}"; then 4938 ODBC_INCLUDE=/usr/include 4939 CPPFLAGS="$CPPFLAGS -I${ODBC_INCLUDE}" 4940 ODBC_LIBDiR="" 4941 LIBODBC="-lodbc" # for regression test 4942 else 4943 ODBC_INCLUDE=`${ODBC_CONFIG} --include-prefix` 4944 CPPFLAGS="$CPPFLAGS -I${ODBC_INCLUDE}" 4945 # Linking libodbc is rather problematic 4946 ODBC_LIBDIR=`${ODBC_CONFIG} --lib-prefix` 4947 if test "${ODBC_LIBDIR}" != ""; then 4948 LDFLAGS="$LDFLAGS -L${ODBC_LIBDIR}" 4949 fi 4950 LIBODBC=`${ODBC_CONFIG} --libs` # for regression test 4951 fi 4952 { $as_echo "$as_me:${as_lineno-$LINENO}: using $ODBC_INCLUDE $ODBC_LIBDIR" >&5 4953$as_echo "$as_me: using $ODBC_INCLUDE $ODBC_LIBDIR" >&6;} 4954 { $as_echo "$as_me:${as_lineno-$LINENO}: using $LIBODBC for regression test" >&5 4955$as_echo "$as_me: using $LIBODBC for regression test" >&6;} 4956fi 4957 4958 4959# 4960# SQLCOLATTRIBUTE_SQLLEN check 4961# 4962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking last argument to SQLColAttribute is SQLLEN *" >&5 4963$as_echo_n "checking last argument to SQLColAttribute is SQLLEN *... " >&6; } 4964cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4965/* end confdefs.h. */ 4966 4967#include <sql.h> 4968 4969SQLRETURN SQL_API SQLColAttribute(SQLHSTMT StatementHandle, 4970 SQLUSMALLINT ColumnNumber, 4971 SQLUSMALLINT FieldIdentifier, 4972 SQLPOINTER CharacterAttribute, 4973 SQLSMALLINT BufferLength, 4974 SQLSMALLINT *StringLength, 4975 SQLLEN *NumericAttribute) 4976{ 4977 SQLLEN t = 1; 4978 *NumericAttribute = t; 4979 return 0; 4980} 4981 4982_ACEOF 4983if ac_fn_c_try_compile "$LINENO"; then : 4984 4985$as_echo "#define SQLCOLATTRIBUTE_SQLLEN 1" >>confdefs.h 4986 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4988$as_echo "yes" >&6; } 4989else 4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4991$as_echo "no" >&6; } 4992 4993fi 4994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4995 4996 4997# 4998# Whether libpq functionalities are used 4999# 5000 5001# Check whether --with-libpq was given. 5002if test "${with_libpq+set}" = set; then : 5003 withval=$with_libpq; 5004else 5005 with_libpq=yes 5006fi 5007 5008 5009if test "$with_libpq" = no; then 5010 as_fn_error $? "libpq is mandatory, --without-libpq is no longer supported" "$LINENO" 5 5011fi 5012 5013if test "$with_libpq" != yes; then 5014 if test -d "$with_libpq"; then 5015 PATH="$with_libpq/bin:$PATH" 5016 CPPFLAGS="$CPPFLAGS -I$with_libpq/include -I$with_libpq/include/postgresql/internal" 5017 LDFLAGS="$LDFLAGS -L$with_libpq/lib" 5018 else 5019 if test -x "$with_libpq"; then 5020 PG_CONFIG=$with_libpq 5021 else 5022 as_fn_error $? "specified pg_config not found" "$LINENO" 5 5023 fi 5024 fi 5025fi 5026 5027# 5028# Pthreads 5029# 5030 5031 5032pgac_args="$pgac_args enable_pthreads" 5033 5034# Check whether --enable-pthreads was given. 5035if test "${enable_pthreads+set}" = set; then : 5036 enableval=$enable_pthreads; 5037 case $enableval in 5038 yes) 5039 5040$as_echo "#define POSIX_MULTITHREAD_SUPPORT 1" >>confdefs.h 5041 5042 5043$as_echo "#define _REENTRANT 1" >>confdefs.h 5044 5045 ;; 5046 no) 5047 : 5048 ;; 5049 *) 5050 as_fn_error $? "no argument expected for --enable-pthreads option" "$LINENO" 5 5051 ;; 5052 esac 5053 5054else 5055 enable_pthreads=yes 5056 5057$as_echo "#define POSIX_MULTITHREAD_SUPPORT 1" >>confdefs.h 5058 5059 5060$as_echo "#define _REENTRANT 1" >>confdefs.h 5061 5062fi 5063 5064 5065 5066 5067# 5068# Find libpq headers and libraries 5069# 5070 5071if test -z "$PG_CONFIG"; then 5072 for ac_prog in pg_config 5073do 5074 # Extract the first word of "$ac_prog", so it can be a program name with args. 5075set dummy $ac_prog; ac_word=$2 5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5077$as_echo_n "checking for $ac_word... " >&6; } 5078if ${ac_cv_path_PG_CONFIG+:} false; then : 5079 $as_echo_n "(cached) " >&6 5080else 5081 case $PG_CONFIG in 5082 [\\/]* | ?:[\\/]*) 5083 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path. 5084 ;; 5085 *) 5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5087for as_dir in $PATH 5088do 5089 IFS=$as_save_IFS 5090 test -z "$as_dir" && as_dir=. 5091 for ac_exec_ext in '' $ac_executable_extensions; do 5092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5093 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5095 break 2 5096 fi 5097done 5098 done 5099IFS=$as_save_IFS 5100 5101 ;; 5102esac 5103fi 5104PG_CONFIG=$ac_cv_path_PG_CONFIG 5105if test -n "$PG_CONFIG"; then 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5 5107$as_echo "$PG_CONFIG" >&6; } 5108else 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5110$as_echo "no" >&6; } 5111fi 5112 5113 5114 test -n "$PG_CONFIG" && break 5115done 5116 5117fi 5118 5119if test -n "$PG_CONFIG"; then 5120 pg_includedir=`"$PG_CONFIG" --includedir` 5121 pg_pkg_includedir=`"$PG_CONFIG" --pkgincludedir` 5122 pg_libdir=`"$PG_CONFIG" --libdir` 5123 CPPFLAGS="$CPPFLAGS -I$pg_includedir -I$pg_pkg_includedir/internal" 5124 LDFLAGS="$LDFLAGS -L$pg_libdir" 5125fi 5126 5127 5128 5129# 1. Programs 5130 5131# 'prove' is used to pretty-print regression test results, if available. 5132for ac_prog in prove 5133do 5134 # Extract the first word of "$ac_prog", so it can be a program name with args. 5135set dummy $ac_prog; ac_word=$2 5136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5137$as_echo_n "checking for $ac_word... " >&6; } 5138if ${ac_cv_prog_PROVE+:} false; then : 5139 $as_echo_n "(cached) " >&6 5140else 5141 if test -n "$PROVE"; then 5142 ac_cv_prog_PROVE="$PROVE" # Let the user override the test. 5143else 5144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5145for as_dir in $PATH 5146do 5147 IFS=$as_save_IFS 5148 test -z "$as_dir" && as_dir=. 5149 for ac_exec_ext in '' $ac_executable_extensions; do 5150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5151 ac_cv_prog_PROVE="$ac_prog" 5152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5153 break 2 5154 fi 5155done 5156 done 5157IFS=$as_save_IFS 5158 5159fi 5160fi 5161PROVE=$ac_cv_prog_PROVE 5162if test -n "$PROVE"; then 5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5 5164$as_echo "$PROVE" >&6; } 5165else 5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5167$as_echo "no" >&6; } 5168fi 5169 5170 5171 test -n "$PROVE" && break 5172done 5173 5174 5175# 2. Libraries 5176 5177# Make sure we can run config.sub. 5178$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5179 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5180 5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5182$as_echo_n "checking build system type... " >&6; } 5183if ${ac_cv_build+:} false; then : 5184 $as_echo_n "(cached) " >&6 5185else 5186 ac_build_alias=$build_alias 5187test "x$ac_build_alias" = x && 5188 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5189test "x$ac_build_alias" = x && 5190 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5191ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5192 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5193 5194fi 5195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5196$as_echo "$ac_cv_build" >&6; } 5197case $ac_cv_build in 5198*-*-*) ;; 5199*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5200esac 5201build=$ac_cv_build 5202ac_save_IFS=$IFS; IFS='-' 5203set x $ac_cv_build 5204shift 5205build_cpu=$1 5206build_vendor=$2 5207shift; shift 5208# Remember, the first character of IFS is used to create $*, 5209# except with old shells: 5210build_os=$* 5211IFS=$ac_save_IFS 5212case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5213 5214 5215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5216$as_echo_n "checking host system type... " >&6; } 5217if ${ac_cv_host+:} false; then : 5218 $as_echo_n "(cached) " >&6 5219else 5220 if test "x$host_alias" = x; then 5221 ac_cv_host=$ac_cv_build 5222else 5223 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5224 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5225fi 5226 5227fi 5228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5229$as_echo "$ac_cv_host" >&6; } 5230case $ac_cv_host in 5231*-*-*) ;; 5232*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5233esac 5234host=$ac_cv_host 5235ac_save_IFS=$IFS; IFS='-' 5236set x $ac_cv_host 5237shift 5238host_cpu=$1 5239host_vendor=$2 5240shift; shift 5241# Remember, the first character of IFS is used to create $*, 5242# except with old shells: 5243host_os=$* 5244IFS=$ac_save_IFS 5245case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5246 5247 5248enable_win32_dll=yes 5249 5250case $host in 5251*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 5252 if test -n "$ac_tool_prefix"; then 5253 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 5254set dummy ${ac_tool_prefix}as; ac_word=$2 5255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5256$as_echo_n "checking for $ac_word... " >&6; } 5257if ${ac_cv_prog_AS+:} false; then : 5258 $as_echo_n "(cached) " >&6 5259else 5260 if test -n "$AS"; then 5261 ac_cv_prog_AS="$AS" # Let the user override the test. 5262else 5263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5264for as_dir in $PATH 5265do 5266 IFS=$as_save_IFS 5267 test -z "$as_dir" && as_dir=. 5268 for ac_exec_ext in '' $ac_executable_extensions; do 5269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5270 ac_cv_prog_AS="${ac_tool_prefix}as" 5271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5272 break 2 5273 fi 5274done 5275 done 5276IFS=$as_save_IFS 5277 5278fi 5279fi 5280AS=$ac_cv_prog_AS 5281if test -n "$AS"; then 5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 5283$as_echo "$AS" >&6; } 5284else 5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5286$as_echo "no" >&6; } 5287fi 5288 5289 5290fi 5291if test -z "$ac_cv_prog_AS"; then 5292 ac_ct_AS=$AS 5293 # Extract the first word of "as", so it can be a program name with args. 5294set dummy as; ac_word=$2 5295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5296$as_echo_n "checking for $ac_word... " >&6; } 5297if ${ac_cv_prog_ac_ct_AS+:} false; then : 5298 $as_echo_n "(cached) " >&6 5299else 5300 if test -n "$ac_ct_AS"; then 5301 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 5302else 5303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5304for as_dir in $PATH 5305do 5306 IFS=$as_save_IFS 5307 test -z "$as_dir" && as_dir=. 5308 for ac_exec_ext in '' $ac_executable_extensions; do 5309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5310 ac_cv_prog_ac_ct_AS="as" 5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5312 break 2 5313 fi 5314done 5315 done 5316IFS=$as_save_IFS 5317 5318fi 5319fi 5320ac_ct_AS=$ac_cv_prog_ac_ct_AS 5321if test -n "$ac_ct_AS"; then 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 5323$as_echo "$ac_ct_AS" >&6; } 5324else 5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5326$as_echo "no" >&6; } 5327fi 5328 5329 if test "x$ac_ct_AS" = x; then 5330 AS="false" 5331 else 5332 case $cross_compiling:$ac_tool_warned in 5333yes:) 5334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5336ac_tool_warned=yes ;; 5337esac 5338 AS=$ac_ct_AS 5339 fi 5340else 5341 AS="$ac_cv_prog_AS" 5342fi 5343 5344 if test -n "$ac_tool_prefix"; then 5345 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5346set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5348$as_echo_n "checking for $ac_word... " >&6; } 5349if ${ac_cv_prog_DLLTOOL+:} false; then : 5350 $as_echo_n "(cached) " >&6 5351else 5352 if test -n "$DLLTOOL"; then 5353 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5354else 5355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5356for as_dir in $PATH 5357do 5358 IFS=$as_save_IFS 5359 test -z "$as_dir" && as_dir=. 5360 for ac_exec_ext in '' $ac_executable_extensions; do 5361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5362 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5364 break 2 5365 fi 5366done 5367 done 5368IFS=$as_save_IFS 5369 5370fi 5371fi 5372DLLTOOL=$ac_cv_prog_DLLTOOL 5373if test -n "$DLLTOOL"; then 5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5375$as_echo "$DLLTOOL" >&6; } 5376else 5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5378$as_echo "no" >&6; } 5379fi 5380 5381 5382fi 5383if test -z "$ac_cv_prog_DLLTOOL"; then 5384 ac_ct_DLLTOOL=$DLLTOOL 5385 # Extract the first word of "dlltool", so it can be a program name with args. 5386set dummy dlltool; ac_word=$2 5387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5388$as_echo_n "checking for $ac_word... " >&6; } 5389if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5390 $as_echo_n "(cached) " >&6 5391else 5392 if test -n "$ac_ct_DLLTOOL"; then 5393 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5394else 5395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5396for as_dir in $PATH 5397do 5398 IFS=$as_save_IFS 5399 test -z "$as_dir" && as_dir=. 5400 for ac_exec_ext in '' $ac_executable_extensions; do 5401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5402 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5404 break 2 5405 fi 5406done 5407 done 5408IFS=$as_save_IFS 5409 5410fi 5411fi 5412ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5413if test -n "$ac_ct_DLLTOOL"; then 5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5415$as_echo "$ac_ct_DLLTOOL" >&6; } 5416else 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5418$as_echo "no" >&6; } 5419fi 5420 5421 if test "x$ac_ct_DLLTOOL" = x; then 5422 DLLTOOL="false" 5423 else 5424 case $cross_compiling:$ac_tool_warned in 5425yes:) 5426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5428ac_tool_warned=yes ;; 5429esac 5430 DLLTOOL=$ac_ct_DLLTOOL 5431 fi 5432else 5433 DLLTOOL="$ac_cv_prog_DLLTOOL" 5434fi 5435 5436 if test -n "$ac_tool_prefix"; then 5437 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5438set dummy ${ac_tool_prefix}objdump; ac_word=$2 5439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5440$as_echo_n "checking for $ac_word... " >&6; } 5441if ${ac_cv_prog_OBJDUMP+:} false; then : 5442 $as_echo_n "(cached) " >&6 5443else 5444 if test -n "$OBJDUMP"; then 5445 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5446else 5447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5448for as_dir in $PATH 5449do 5450 IFS=$as_save_IFS 5451 test -z "$as_dir" && as_dir=. 5452 for ac_exec_ext in '' $ac_executable_extensions; do 5453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5454 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5456 break 2 5457 fi 5458done 5459 done 5460IFS=$as_save_IFS 5461 5462fi 5463fi 5464OBJDUMP=$ac_cv_prog_OBJDUMP 5465if test -n "$OBJDUMP"; then 5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5467$as_echo "$OBJDUMP" >&6; } 5468else 5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5470$as_echo "no" >&6; } 5471fi 5472 5473 5474fi 5475if test -z "$ac_cv_prog_OBJDUMP"; then 5476 ac_ct_OBJDUMP=$OBJDUMP 5477 # Extract the first word of "objdump", so it can be a program name with args. 5478set dummy objdump; ac_word=$2 5479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5480$as_echo_n "checking for $ac_word... " >&6; } 5481if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5482 $as_echo_n "(cached) " >&6 5483else 5484 if test -n "$ac_ct_OBJDUMP"; then 5485 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5486else 5487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5488for as_dir in $PATH 5489do 5490 IFS=$as_save_IFS 5491 test -z "$as_dir" && as_dir=. 5492 for ac_exec_ext in '' $ac_executable_extensions; do 5493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5494 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5496 break 2 5497 fi 5498done 5499 done 5500IFS=$as_save_IFS 5501 5502fi 5503fi 5504ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5505if test -n "$ac_ct_OBJDUMP"; then 5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5507$as_echo "$ac_ct_OBJDUMP" >&6; } 5508else 5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5510$as_echo "no" >&6; } 5511fi 5512 5513 if test "x$ac_ct_OBJDUMP" = x; then 5514 OBJDUMP="false" 5515 else 5516 case $cross_compiling:$ac_tool_warned in 5517yes:) 5518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5520ac_tool_warned=yes ;; 5521esac 5522 OBJDUMP=$ac_ct_OBJDUMP 5523 fi 5524else 5525 OBJDUMP="$ac_cv_prog_OBJDUMP" 5526fi 5527 5528 ;; 5529esac 5530 5531test -z "$AS" && AS=as 5532 5533 5534 5535 5536 5537test -z "$DLLTOOL" && DLLTOOL=dlltool 5538 5539 5540 5541 5542 5543test -z "$OBJDUMP" && OBJDUMP=objdump 5544 5545 5546 5547 5548 5549 5550 5551# Check whether --enable-static was given. 5552if test "${enable_static+set}" = set; then : 5553 enableval=$enable_static; p=${PACKAGE-default} 5554 case $enableval in 5555 yes) enable_static=yes ;; 5556 no) enable_static=no ;; 5557 *) 5558 enable_static=no 5559 # Look at the argument we got. We use all the common list separators. 5560 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5561 for pkg in $enableval; do 5562 IFS="$lt_save_ifs" 5563 if test "X$pkg" = "X$p"; then 5564 enable_static=yes 5565 fi 5566 done 5567 IFS="$lt_save_ifs" 5568 ;; 5569 esac 5570else 5571 enable_static=no 5572fi 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582enable_dlopen=yes 5583 5584 5585 5586case `pwd` in 5587 *\ * | *\ *) 5588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5589$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5590esac 5591 5592 5593 5594macro_version='2.4.2' 5595macro_revision='1.3337' 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609ltmain="$ac_aux_dir/ltmain.sh" 5610 5611# Backslashify metacharacters that are still active within 5612# double-quoted strings. 5613sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5614 5615# Same as above, but do not quote variable references. 5616double_quote_subst='s/\(["`\\]\)/\\\1/g' 5617 5618# Sed substitution to delay expansion of an escaped shell variable in a 5619# double_quote_subst'ed string. 5620delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5621 5622# Sed substitution to delay expansion of an escaped single quote. 5623delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5624 5625# Sed substitution to avoid accidental globbing in evaled expressions 5626no_glob_subst='s/\*/\\\*/g' 5627 5628ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5629ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5630ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5631 5632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5633$as_echo_n "checking how to print strings... " >&6; } 5634# Test print first, because it will be a builtin if present. 5635if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5636 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5637 ECHO='print -r --' 5638elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5639 ECHO='printf %s\n' 5640else 5641 # Use this function as a fallback that always works. 5642 func_fallback_echo () 5643 { 5644 eval 'cat <<_LTECHO_EOF 5645$1 5646_LTECHO_EOF' 5647 } 5648 ECHO='func_fallback_echo' 5649fi 5650 5651# func_echo_all arg... 5652# Invoke $ECHO with all args, space-separated. 5653func_echo_all () 5654{ 5655 $ECHO "" 5656} 5657 5658case "$ECHO" in 5659 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5660$as_echo "printf" >&6; } ;; 5661 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5662$as_echo "print -r" >&6; } ;; 5663 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5664$as_echo "cat" >&6; } ;; 5665esac 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5681$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5682if ${ac_cv_path_SED+:} false; then : 5683 $as_echo_n "(cached) " >&6 5684else 5685 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5686 for ac_i in 1 2 3 4 5 6 7; do 5687 ac_script="$ac_script$as_nl$ac_script" 5688 done 5689 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5690 { ac_script=; unset ac_script;} 5691 if test -z "$SED"; then 5692 ac_path_SED_found=false 5693 # Loop through the user's path and test for each of PROGNAME-LIST 5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5695for as_dir in $PATH 5696do 5697 IFS=$as_save_IFS 5698 test -z "$as_dir" && as_dir=. 5699 for ac_prog in sed gsed; do 5700 for ac_exec_ext in '' $ac_executable_extensions; do 5701 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5702 as_fn_executable_p "$ac_path_SED" || continue 5703# Check for GNU ac_path_SED and select it if it is found. 5704 # Check for GNU $ac_path_SED 5705case `"$ac_path_SED" --version 2>&1` in 5706*GNU*) 5707 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5708*) 5709 ac_count=0 5710 $as_echo_n 0123456789 >"conftest.in" 5711 while : 5712 do 5713 cat "conftest.in" "conftest.in" >"conftest.tmp" 5714 mv "conftest.tmp" "conftest.in" 5715 cp "conftest.in" "conftest.nl" 5716 $as_echo '' >> "conftest.nl" 5717 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5718 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5719 as_fn_arith $ac_count + 1 && ac_count=$as_val 5720 if test $ac_count -gt ${ac_path_SED_max-0}; then 5721 # Best one so far, save it but keep looking for a better one 5722 ac_cv_path_SED="$ac_path_SED" 5723 ac_path_SED_max=$ac_count 5724 fi 5725 # 10*(2^10) chars as input seems more than enough 5726 test $ac_count -gt 10 && break 5727 done 5728 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5729esac 5730 5731 $ac_path_SED_found && break 3 5732 done 5733 done 5734 done 5735IFS=$as_save_IFS 5736 if test -z "$ac_cv_path_SED"; then 5737 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5738 fi 5739else 5740 ac_cv_path_SED=$SED 5741fi 5742 5743fi 5744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5745$as_echo "$ac_cv_path_SED" >&6; } 5746 SED="$ac_cv_path_SED" 5747 rm -f conftest.sed 5748 5749test -z "$SED" && SED=sed 5750Xsed="$SED -e 1s/^X//" 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5763$as_echo_n "checking for fgrep... " >&6; } 5764if ${ac_cv_path_FGREP+:} false; then : 5765 $as_echo_n "(cached) " >&6 5766else 5767 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5768 then ac_cv_path_FGREP="$GREP -F" 5769 else 5770 if test -z "$FGREP"; then 5771 ac_path_FGREP_found=false 5772 # Loop through the user's path and test for each of PROGNAME-LIST 5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5774for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5775do 5776 IFS=$as_save_IFS 5777 test -z "$as_dir" && as_dir=. 5778 for ac_prog in fgrep; do 5779 for ac_exec_ext in '' $ac_executable_extensions; do 5780 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5781 as_fn_executable_p "$ac_path_FGREP" || continue 5782# Check for GNU ac_path_FGREP and select it if it is found. 5783 # Check for GNU $ac_path_FGREP 5784case `"$ac_path_FGREP" --version 2>&1` in 5785*GNU*) 5786 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5787*) 5788 ac_count=0 5789 $as_echo_n 0123456789 >"conftest.in" 5790 while : 5791 do 5792 cat "conftest.in" "conftest.in" >"conftest.tmp" 5793 mv "conftest.tmp" "conftest.in" 5794 cp "conftest.in" "conftest.nl" 5795 $as_echo 'FGREP' >> "conftest.nl" 5796 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5798 as_fn_arith $ac_count + 1 && ac_count=$as_val 5799 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5800 # Best one so far, save it but keep looking for a better one 5801 ac_cv_path_FGREP="$ac_path_FGREP" 5802 ac_path_FGREP_max=$ac_count 5803 fi 5804 # 10*(2^10) chars as input seems more than enough 5805 test $ac_count -gt 10 && break 5806 done 5807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5808esac 5809 5810 $ac_path_FGREP_found && break 3 5811 done 5812 done 5813 done 5814IFS=$as_save_IFS 5815 if test -z "$ac_cv_path_FGREP"; then 5816 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5817 fi 5818else 5819 ac_cv_path_FGREP=$FGREP 5820fi 5821 5822 fi 5823fi 5824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5825$as_echo "$ac_cv_path_FGREP" >&6; } 5826 FGREP="$ac_cv_path_FGREP" 5827 5828 5829test -z "$GREP" && GREP=grep 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849# Check whether --with-gnu-ld was given. 5850if test "${with_gnu_ld+set}" = set; then : 5851 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5852else 5853 with_gnu_ld=no 5854fi 5855 5856ac_prog=ld 5857if test "$GCC" = yes; then 5858 # Check if gcc -print-prog-name=ld gives a path. 5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5860$as_echo_n "checking for ld used by $CC... " >&6; } 5861 case $host in 5862 *-*-mingw*) 5863 # gcc leaves a trailing carriage return which upsets mingw 5864 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5865 *) 5866 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5867 esac 5868 case $ac_prog in 5869 # Accept absolute paths. 5870 [\\/]* | ?:[\\/]*) 5871 re_direlt='/[^/][^/]*/\.\./' 5872 # Canonicalize the pathname of ld 5873 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5874 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5875 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5876 done 5877 test -z "$LD" && LD="$ac_prog" 5878 ;; 5879 "") 5880 # If it fails, then pretend we aren't using GCC. 5881 ac_prog=ld 5882 ;; 5883 *) 5884 # If it is relative, then search for the first ld in PATH. 5885 with_gnu_ld=unknown 5886 ;; 5887 esac 5888elif test "$with_gnu_ld" = yes; then 5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5890$as_echo_n "checking for GNU ld... " >&6; } 5891else 5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5893$as_echo_n "checking for non-GNU ld... " >&6; } 5894fi 5895if ${lt_cv_path_LD+:} false; then : 5896 $as_echo_n "(cached) " >&6 5897else 5898 if test -z "$LD"; then 5899 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5900 for ac_dir in $PATH; do 5901 IFS="$lt_save_ifs" 5902 test -z "$ac_dir" && ac_dir=. 5903 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5904 lt_cv_path_LD="$ac_dir/$ac_prog" 5905 # Check to see if the program is GNU ld. I'd rather use --version, 5906 # but apparently some variants of GNU ld only accept -v. 5907 # Break only if it was the GNU/non-GNU ld that we prefer. 5908 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5909 *GNU* | *'with BFD'*) 5910 test "$with_gnu_ld" != no && break 5911 ;; 5912 *) 5913 test "$with_gnu_ld" != yes && break 5914 ;; 5915 esac 5916 fi 5917 done 5918 IFS="$lt_save_ifs" 5919else 5920 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5921fi 5922fi 5923 5924LD="$lt_cv_path_LD" 5925if test -n "$LD"; then 5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5927$as_echo "$LD" >&6; } 5928else 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5930$as_echo "no" >&6; } 5931fi 5932test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5934$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5935if ${lt_cv_prog_gnu_ld+:} false; then : 5936 $as_echo_n "(cached) " >&6 5937else 5938 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5939case `$LD -v 2>&1 </dev/null` in 5940*GNU* | *'with BFD'*) 5941 lt_cv_prog_gnu_ld=yes 5942 ;; 5943*) 5944 lt_cv_prog_gnu_ld=no 5945 ;; 5946esac 5947fi 5948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5949$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5950with_gnu_ld=$lt_cv_prog_gnu_ld 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5961$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5962if ${lt_cv_path_NM+:} false; then : 5963 $as_echo_n "(cached) " >&6 5964else 5965 if test -n "$NM"; then 5966 # Let the user override the test. 5967 lt_cv_path_NM="$NM" 5968else 5969 lt_nm_to_check="${ac_tool_prefix}nm" 5970 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5971 lt_nm_to_check="$lt_nm_to_check nm" 5972 fi 5973 for lt_tmp_nm in $lt_nm_to_check; do 5974 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5975 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5976 IFS="$lt_save_ifs" 5977 test -z "$ac_dir" && ac_dir=. 5978 tmp_nm="$ac_dir/$lt_tmp_nm" 5979 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5980 # Check to see if the nm accepts a BSD-compat flag. 5981 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5982 # nm: unknown option "B" ignored 5983 # Tru64's nm complains that /dev/null is an invalid object file 5984 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5985 */dev/null* | *'Invalid file or object type'*) 5986 lt_cv_path_NM="$tmp_nm -B" 5987 break 5988 ;; 5989 *) 5990 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5991 */dev/null*) 5992 lt_cv_path_NM="$tmp_nm -p" 5993 break 5994 ;; 5995 *) 5996 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5997 continue # so that we can try to find one that supports BSD flags 5998 ;; 5999 esac 6000 ;; 6001 esac 6002 fi 6003 done 6004 IFS="$lt_save_ifs" 6005 done 6006 : ${lt_cv_path_NM=no} 6007fi 6008fi 6009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6010$as_echo "$lt_cv_path_NM" >&6; } 6011if test "$lt_cv_path_NM" != "no"; then 6012 NM="$lt_cv_path_NM" 6013else 6014 # Didn't find any BSD compatible name lister, look for dumpbin. 6015 if test -n "$DUMPBIN"; then : 6016 # Let the user override the test. 6017 else 6018 if test -n "$ac_tool_prefix"; then 6019 for ac_prog in dumpbin "link -dump" 6020 do 6021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6022set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6024$as_echo_n "checking for $ac_word... " >&6; } 6025if ${ac_cv_prog_DUMPBIN+:} false; then : 6026 $as_echo_n "(cached) " >&6 6027else 6028 if test -n "$DUMPBIN"; then 6029 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6030else 6031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6032for as_dir in $PATH 6033do 6034 IFS=$as_save_IFS 6035 test -z "$as_dir" && as_dir=. 6036 for ac_exec_ext in '' $ac_executable_extensions; do 6037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6038 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6040 break 2 6041 fi 6042done 6043 done 6044IFS=$as_save_IFS 6045 6046fi 6047fi 6048DUMPBIN=$ac_cv_prog_DUMPBIN 6049if test -n "$DUMPBIN"; then 6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6051$as_echo "$DUMPBIN" >&6; } 6052else 6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6054$as_echo "no" >&6; } 6055fi 6056 6057 6058 test -n "$DUMPBIN" && break 6059 done 6060fi 6061if test -z "$DUMPBIN"; then 6062 ac_ct_DUMPBIN=$DUMPBIN 6063 for ac_prog in dumpbin "link -dump" 6064do 6065 # Extract the first word of "$ac_prog", so it can be a program name with args. 6066set dummy $ac_prog; ac_word=$2 6067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6068$as_echo_n "checking for $ac_word... " >&6; } 6069if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6070 $as_echo_n "(cached) " >&6 6071else 6072 if test -n "$ac_ct_DUMPBIN"; then 6073 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6074else 6075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6076for as_dir in $PATH 6077do 6078 IFS=$as_save_IFS 6079 test -z "$as_dir" && as_dir=. 6080 for ac_exec_ext in '' $ac_executable_extensions; do 6081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6082 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6084 break 2 6085 fi 6086done 6087 done 6088IFS=$as_save_IFS 6089 6090fi 6091fi 6092ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6093if test -n "$ac_ct_DUMPBIN"; then 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6095$as_echo "$ac_ct_DUMPBIN" >&6; } 6096else 6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6098$as_echo "no" >&6; } 6099fi 6100 6101 6102 test -n "$ac_ct_DUMPBIN" && break 6103done 6104 6105 if test "x$ac_ct_DUMPBIN" = x; then 6106 DUMPBIN=":" 6107 else 6108 case $cross_compiling:$ac_tool_warned in 6109yes:) 6110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6112ac_tool_warned=yes ;; 6113esac 6114 DUMPBIN=$ac_ct_DUMPBIN 6115 fi 6116fi 6117 6118 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 6119 *COFF*) 6120 DUMPBIN="$DUMPBIN -symbols" 6121 ;; 6122 *) 6123 DUMPBIN=: 6124 ;; 6125 esac 6126 fi 6127 6128 if test "$DUMPBIN" != ":"; then 6129 NM="$DUMPBIN" 6130 fi 6131fi 6132test -z "$NM" && NM=nm 6133 6134 6135 6136 6137 6138 6139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6140$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6141if ${lt_cv_nm_interface+:} false; then : 6142 $as_echo_n "(cached) " >&6 6143else 6144 lt_cv_nm_interface="BSD nm" 6145 echo "int some_variable = 0;" > conftest.$ac_ext 6146 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6147 (eval "$ac_compile" 2>conftest.err) 6148 cat conftest.err >&5 6149 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6150 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6151 cat conftest.err >&5 6152 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6153 cat conftest.out >&5 6154 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6155 lt_cv_nm_interface="MS dumpbin" 6156 fi 6157 rm -f conftest* 6158fi 6159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6160$as_echo "$lt_cv_nm_interface" >&6; } 6161 6162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6163$as_echo_n "checking whether ln -s works... " >&6; } 6164LN_S=$as_ln_s 6165if test "$LN_S" = "ln -s"; then 6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6167$as_echo "yes" >&6; } 6168else 6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6170$as_echo "no, using $LN_S" >&6; } 6171fi 6172 6173# find the maximum length of command line arguments 6174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6175$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6176if ${lt_cv_sys_max_cmd_len+:} false; then : 6177 $as_echo_n "(cached) " >&6 6178else 6179 i=0 6180 teststring="ABCD" 6181 6182 case $build_os in 6183 msdosdjgpp*) 6184 # On DJGPP, this test can blow up pretty badly due to problems in libc 6185 # (any single argument exceeding 2000 bytes causes a buffer overrun 6186 # during glob expansion). Even if it were fixed, the result of this 6187 # check would be larger than it should be. 6188 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6189 ;; 6190 6191 gnu*) 6192 # Under GNU Hurd, this test is not required because there is 6193 # no limit to the length of command line arguments. 6194 # Libtool will interpret -1 as no limit whatsoever 6195 lt_cv_sys_max_cmd_len=-1; 6196 ;; 6197 6198 cygwin* | mingw* | cegcc*) 6199 # On Win9x/ME, this test blows up -- it succeeds, but takes 6200 # about 5 minutes as the teststring grows exponentially. 6201 # Worse, since 9x/ME are not pre-emptively multitasking, 6202 # you end up with a "frozen" computer, even though with patience 6203 # the test eventually succeeds (with a max line length of 256k). 6204 # Instead, let's just punt: use the minimum linelength reported by 6205 # all of the supported platforms: 8192 (on NT/2K/XP). 6206 lt_cv_sys_max_cmd_len=8192; 6207 ;; 6208 6209 mint*) 6210 # On MiNT this can take a long time and run out of memory. 6211 lt_cv_sys_max_cmd_len=8192; 6212 ;; 6213 6214 amigaos*) 6215 # On AmigaOS with pdksh, this test takes hours, literally. 6216 # So we just punt and use a minimum line length of 8192. 6217 lt_cv_sys_max_cmd_len=8192; 6218 ;; 6219 6220 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6221 # This has been around since 386BSD, at least. Likely further. 6222 if test -x /sbin/sysctl; then 6223 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6224 elif test -x /usr/sbin/sysctl; then 6225 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6226 else 6227 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6228 fi 6229 # And add a safety zone 6230 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6231 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6232 ;; 6233 6234 interix*) 6235 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6236 lt_cv_sys_max_cmd_len=196608 6237 ;; 6238 6239 os2*) 6240 # The test takes a long time on OS/2. 6241 lt_cv_sys_max_cmd_len=8192 6242 ;; 6243 6244 osf*) 6245 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6246 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6247 # nice to cause kernel panics so lets avoid the loop below. 6248 # First set a reasonable default. 6249 lt_cv_sys_max_cmd_len=16384 6250 # 6251 if test -x /sbin/sysconfig; then 6252 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6253 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6254 esac 6255 fi 6256 ;; 6257 sco3.2v5*) 6258 lt_cv_sys_max_cmd_len=102400 6259 ;; 6260 sysv5* | sco5v6* | sysv4.2uw2*) 6261 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6262 if test -n "$kargmax"; then 6263 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6264 else 6265 lt_cv_sys_max_cmd_len=32768 6266 fi 6267 ;; 6268 *) 6269 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6270 if test -n "$lt_cv_sys_max_cmd_len"; then 6271 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6272 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6273 else 6274 # Make teststring a little bigger before we do anything with it. 6275 # a 1K string should be a reasonable start. 6276 for i in 1 2 3 4 5 6 7 8 ; do 6277 teststring=$teststring$teststring 6278 done 6279 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6280 # If test is not a shell built-in, we'll probably end up computing a 6281 # maximum length that is only half of the actual maximum length, but 6282 # we can't tell. 6283 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 6284 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6285 test $i != 17 # 1/2 MB should be enough 6286 do 6287 i=`expr $i + 1` 6288 teststring=$teststring$teststring 6289 done 6290 # Only check the string length outside the loop. 6291 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6292 teststring= 6293 # Add a significant safety factor because C++ compilers can tack on 6294 # massive amounts of additional arguments before passing them to the 6295 # linker. It appears as though 1/2 is a usable value. 6296 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6297 fi 6298 ;; 6299 esac 6300 6301fi 6302 6303if test -n $lt_cv_sys_max_cmd_len ; then 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6305$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6306else 6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6308$as_echo "none" >&6; } 6309fi 6310max_cmd_len=$lt_cv_sys_max_cmd_len 6311 6312 6313 6314 6315 6316 6317: ${CP="cp -f"} 6318: ${MV="mv -f"} 6319: ${RM="rm -f"} 6320 6321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6322$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6323# Try some XSI features 6324xsi_shell=no 6325( _lt_dummy="a/b/c" 6326 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 6327 = c,a/b,b/c, \ 6328 && eval 'test $(( 1 + 1 )) -eq 2 \ 6329 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6330 && xsi_shell=yes 6331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6332$as_echo "$xsi_shell" >&6; } 6333 6334 6335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6336$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6337lt_shell_append=no 6338( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6339 >/dev/null 2>&1 \ 6340 && lt_shell_append=yes 6341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6342$as_echo "$lt_shell_append" >&6; } 6343 6344 6345if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6346 lt_unset=unset 6347else 6348 lt_unset=false 6349fi 6350 6351 6352 6353 6354 6355# test EBCDIC or ASCII 6356case `echo X|tr X '\101'` in 6357 A) # ASCII based system 6358 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6359 lt_SP2NL='tr \040 \012' 6360 lt_NL2SP='tr \015\012 \040\040' 6361 ;; 6362 *) # EBCDIC based system 6363 lt_SP2NL='tr \100 \n' 6364 lt_NL2SP='tr \r\n \100\100' 6365 ;; 6366esac 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6377$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6378if ${lt_cv_to_host_file_cmd+:} false; then : 6379 $as_echo_n "(cached) " >&6 6380else 6381 case $host in 6382 *-*-mingw* ) 6383 case $build in 6384 *-*-mingw* ) # actually msys 6385 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6386 ;; 6387 *-*-cygwin* ) 6388 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6389 ;; 6390 * ) # otherwise, assume *nix 6391 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6392 ;; 6393 esac 6394 ;; 6395 *-*-cygwin* ) 6396 case $build in 6397 *-*-mingw* ) # actually msys 6398 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6399 ;; 6400 *-*-cygwin* ) 6401 lt_cv_to_host_file_cmd=func_convert_file_noop 6402 ;; 6403 * ) # otherwise, assume *nix 6404 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6405 ;; 6406 esac 6407 ;; 6408 * ) # unhandled hosts (and "normal" native builds) 6409 lt_cv_to_host_file_cmd=func_convert_file_noop 6410 ;; 6411esac 6412 6413fi 6414 6415to_host_file_cmd=$lt_cv_to_host_file_cmd 6416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6417$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6418 6419 6420 6421 6422 6423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6424$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6425if ${lt_cv_to_tool_file_cmd+:} false; then : 6426 $as_echo_n "(cached) " >&6 6427else 6428 #assume ordinary cross tools, or native build. 6429lt_cv_to_tool_file_cmd=func_convert_file_noop 6430case $host in 6431 *-*-mingw* ) 6432 case $build in 6433 *-*-mingw* ) # actually msys 6434 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6435 ;; 6436 esac 6437 ;; 6438esac 6439 6440fi 6441 6442to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6444$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6445 6446 6447 6448 6449 6450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6451$as_echo_n "checking for $LD option to reload object files... " >&6; } 6452if ${lt_cv_ld_reload_flag+:} false; then : 6453 $as_echo_n "(cached) " >&6 6454else 6455 lt_cv_ld_reload_flag='-r' 6456fi 6457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6458$as_echo "$lt_cv_ld_reload_flag" >&6; } 6459reload_flag=$lt_cv_ld_reload_flag 6460case $reload_flag in 6461"" | " "*) ;; 6462*) reload_flag=" $reload_flag" ;; 6463esac 6464reload_cmds='$LD$reload_flag -o $output$reload_objs' 6465case $host_os in 6466 cygwin* | mingw* | pw32* | cegcc*) 6467 if test "$GCC" != yes; then 6468 reload_cmds=false 6469 fi 6470 ;; 6471 darwin*) 6472 if test "$GCC" = yes; then 6473 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6474 else 6475 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6476 fi 6477 ;; 6478esac 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488if test -n "$ac_tool_prefix"; then 6489 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6490set dummy ${ac_tool_prefix}objdump; ac_word=$2 6491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6492$as_echo_n "checking for $ac_word... " >&6; } 6493if ${ac_cv_prog_OBJDUMP+:} false; then : 6494 $as_echo_n "(cached) " >&6 6495else 6496 if test -n "$OBJDUMP"; then 6497 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6498else 6499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6500for as_dir in $PATH 6501do 6502 IFS=$as_save_IFS 6503 test -z "$as_dir" && as_dir=. 6504 for ac_exec_ext in '' $ac_executable_extensions; do 6505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6506 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6508 break 2 6509 fi 6510done 6511 done 6512IFS=$as_save_IFS 6513 6514fi 6515fi 6516OBJDUMP=$ac_cv_prog_OBJDUMP 6517if test -n "$OBJDUMP"; then 6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6519$as_echo "$OBJDUMP" >&6; } 6520else 6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6522$as_echo "no" >&6; } 6523fi 6524 6525 6526fi 6527if test -z "$ac_cv_prog_OBJDUMP"; then 6528 ac_ct_OBJDUMP=$OBJDUMP 6529 # Extract the first word of "objdump", so it can be a program name with args. 6530set dummy objdump; ac_word=$2 6531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6532$as_echo_n "checking for $ac_word... " >&6; } 6533if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6534 $as_echo_n "(cached) " >&6 6535else 6536 if test -n "$ac_ct_OBJDUMP"; then 6537 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6538else 6539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6540for as_dir in $PATH 6541do 6542 IFS=$as_save_IFS 6543 test -z "$as_dir" && as_dir=. 6544 for ac_exec_ext in '' $ac_executable_extensions; do 6545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6546 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6548 break 2 6549 fi 6550done 6551 done 6552IFS=$as_save_IFS 6553 6554fi 6555fi 6556ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6557if test -n "$ac_ct_OBJDUMP"; then 6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6559$as_echo "$ac_ct_OBJDUMP" >&6; } 6560else 6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6562$as_echo "no" >&6; } 6563fi 6564 6565 if test "x$ac_ct_OBJDUMP" = x; then 6566 OBJDUMP="false" 6567 else 6568 case $cross_compiling:$ac_tool_warned in 6569yes:) 6570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6572ac_tool_warned=yes ;; 6573esac 6574 OBJDUMP=$ac_ct_OBJDUMP 6575 fi 6576else 6577 OBJDUMP="$ac_cv_prog_OBJDUMP" 6578fi 6579 6580test -z "$OBJDUMP" && OBJDUMP=objdump 6581 6582 6583 6584 6585 6586 6587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6588$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6589if ${lt_cv_deplibs_check_method+:} false; then : 6590 $as_echo_n "(cached) " >&6 6591else 6592 lt_cv_file_magic_cmd='$MAGIC_CMD' 6593lt_cv_file_magic_test_file= 6594lt_cv_deplibs_check_method='unknown' 6595# Need to set the preceding variable on all platforms that support 6596# interlibrary dependencies. 6597# 'none' -- dependencies not supported. 6598# `unknown' -- same as none, but documents that we really don't know. 6599# 'pass_all' -- all dependencies passed with no checks. 6600# 'test_compile' -- check by making test program. 6601# 'file_magic [[regex]]' -- check by looking for files in library path 6602# which responds to the $file_magic_cmd with a given extended regex. 6603# If you have `file' or equivalent on your system and you're not sure 6604# whether `pass_all' will *always* work, you probably want this one. 6605 6606case $host_os in 6607aix[4-9]*) 6608 lt_cv_deplibs_check_method=pass_all 6609 ;; 6610 6611beos*) 6612 lt_cv_deplibs_check_method=pass_all 6613 ;; 6614 6615bsdi[45]*) 6616 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6617 lt_cv_file_magic_cmd='/usr/bin/file -L' 6618 lt_cv_file_magic_test_file=/shlib/libc.so 6619 ;; 6620 6621cygwin*) 6622 # func_win32_libid is a shell function defined in ltmain.sh 6623 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6624 lt_cv_file_magic_cmd='func_win32_libid' 6625 ;; 6626 6627mingw* | pw32*) 6628 # Base MSYS/MinGW do not provide the 'file' command needed by 6629 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6630 # unless we find 'file', for example because we are cross-compiling. 6631 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6632 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6633 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6634 lt_cv_file_magic_cmd='func_win32_libid' 6635 else 6636 # Keep this pattern in sync with the one in func_win32_libid. 6637 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6638 lt_cv_file_magic_cmd='$OBJDUMP -f' 6639 fi 6640 ;; 6641 6642cegcc*) 6643 # use the weaker test based on 'objdump'. See mingw*. 6644 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6645 lt_cv_file_magic_cmd='$OBJDUMP -f' 6646 ;; 6647 6648darwin* | rhapsody*) 6649 lt_cv_deplibs_check_method=pass_all 6650 ;; 6651 6652freebsd* | dragonfly*) 6653 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6654 case $host_cpu in 6655 i*86 ) 6656 # Not sure whether the presence of OpenBSD here was a mistake. 6657 # Let's accept both of them until this is cleared up. 6658 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6659 lt_cv_file_magic_cmd=/usr/bin/file 6660 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6661 ;; 6662 esac 6663 else 6664 lt_cv_deplibs_check_method=pass_all 6665 fi 6666 ;; 6667 6668gnu*) 6669 lt_cv_deplibs_check_method=pass_all 6670 ;; 6671 6672haiku*) 6673 lt_cv_deplibs_check_method=pass_all 6674 ;; 6675 6676hpux10.20* | hpux11*) 6677 lt_cv_file_magic_cmd=/usr/bin/file 6678 case $host_cpu in 6679 ia64*) 6680 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6681 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6682 ;; 6683 hppa*64*) 6684 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 6685 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6686 ;; 6687 *) 6688 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6689 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6690 ;; 6691 esac 6692 ;; 6693 6694interix[3-9]*) 6695 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6696 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6697 ;; 6698 6699irix5* | irix6* | nonstopux*) 6700 case $LD in 6701 *-32|*"-32 ") libmagic=32-bit;; 6702 *-n32|*"-n32 ") libmagic=N32;; 6703 *-64|*"-64 ") libmagic=64-bit;; 6704 *) libmagic=never-match;; 6705 esac 6706 lt_cv_deplibs_check_method=pass_all 6707 ;; 6708 6709# This must be glibc/ELF. 6710linux* | k*bsd*-gnu | kopensolaris*-gnu) 6711 lt_cv_deplibs_check_method=pass_all 6712 ;; 6713 6714netbsd*) 6715 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6716 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6717 else 6718 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6719 fi 6720 ;; 6721 6722newos6*) 6723 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6724 lt_cv_file_magic_cmd=/usr/bin/file 6725 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6726 ;; 6727 6728*nto* | *qnx*) 6729 lt_cv_deplibs_check_method=pass_all 6730 ;; 6731 6732openbsd*) 6733 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6734 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6735 else 6736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6737 fi 6738 ;; 6739 6740osf3* | osf4* | osf5*) 6741 lt_cv_deplibs_check_method=pass_all 6742 ;; 6743 6744rdos*) 6745 lt_cv_deplibs_check_method=pass_all 6746 ;; 6747 6748solaris*) 6749 lt_cv_deplibs_check_method=pass_all 6750 ;; 6751 6752sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6753 lt_cv_deplibs_check_method=pass_all 6754 ;; 6755 6756sysv4 | sysv4.3*) 6757 case $host_vendor in 6758 motorola) 6759 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 6760 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6761 ;; 6762 ncr) 6763 lt_cv_deplibs_check_method=pass_all 6764 ;; 6765 sequent) 6766 lt_cv_file_magic_cmd='/bin/file' 6767 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6768 ;; 6769 sni) 6770 lt_cv_file_magic_cmd='/bin/file' 6771 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6772 lt_cv_file_magic_test_file=/lib/libc.so 6773 ;; 6774 siemens) 6775 lt_cv_deplibs_check_method=pass_all 6776 ;; 6777 pc) 6778 lt_cv_deplibs_check_method=pass_all 6779 ;; 6780 esac 6781 ;; 6782 6783tpf*) 6784 lt_cv_deplibs_check_method=pass_all 6785 ;; 6786esac 6787 6788fi 6789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6790$as_echo "$lt_cv_deplibs_check_method" >&6; } 6791 6792file_magic_glob= 6793want_nocaseglob=no 6794if test "$build" = "$host"; then 6795 case $host_os in 6796 mingw* | pw32*) 6797 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6798 want_nocaseglob=yes 6799 else 6800 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6801 fi 6802 ;; 6803 esac 6804fi 6805 6806file_magic_cmd=$lt_cv_file_magic_cmd 6807deplibs_check_method=$lt_cv_deplibs_check_method 6808test -z "$deplibs_check_method" && deplibs_check_method=unknown 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831if test -n "$ac_tool_prefix"; then 6832 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6833set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6835$as_echo_n "checking for $ac_word... " >&6; } 6836if ${ac_cv_prog_DLLTOOL+:} false; then : 6837 $as_echo_n "(cached) " >&6 6838else 6839 if test -n "$DLLTOOL"; then 6840 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6841else 6842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6843for as_dir in $PATH 6844do 6845 IFS=$as_save_IFS 6846 test -z "$as_dir" && as_dir=. 6847 for ac_exec_ext in '' $ac_executable_extensions; do 6848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6849 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6851 break 2 6852 fi 6853done 6854 done 6855IFS=$as_save_IFS 6856 6857fi 6858fi 6859DLLTOOL=$ac_cv_prog_DLLTOOL 6860if test -n "$DLLTOOL"; then 6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6862$as_echo "$DLLTOOL" >&6; } 6863else 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6865$as_echo "no" >&6; } 6866fi 6867 6868 6869fi 6870if test -z "$ac_cv_prog_DLLTOOL"; then 6871 ac_ct_DLLTOOL=$DLLTOOL 6872 # Extract the first word of "dlltool", so it can be a program name with args. 6873set dummy dlltool; ac_word=$2 6874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6875$as_echo_n "checking for $ac_word... " >&6; } 6876if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6877 $as_echo_n "(cached) " >&6 6878else 6879 if test -n "$ac_ct_DLLTOOL"; then 6880 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6881else 6882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6883for as_dir in $PATH 6884do 6885 IFS=$as_save_IFS 6886 test -z "$as_dir" && as_dir=. 6887 for ac_exec_ext in '' $ac_executable_extensions; do 6888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6889 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6891 break 2 6892 fi 6893done 6894 done 6895IFS=$as_save_IFS 6896 6897fi 6898fi 6899ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6900if test -n "$ac_ct_DLLTOOL"; then 6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6902$as_echo "$ac_ct_DLLTOOL" >&6; } 6903else 6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6905$as_echo "no" >&6; } 6906fi 6907 6908 if test "x$ac_ct_DLLTOOL" = x; then 6909 DLLTOOL="false" 6910 else 6911 case $cross_compiling:$ac_tool_warned in 6912yes:) 6913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6915ac_tool_warned=yes ;; 6916esac 6917 DLLTOOL=$ac_ct_DLLTOOL 6918 fi 6919else 6920 DLLTOOL="$ac_cv_prog_DLLTOOL" 6921fi 6922 6923test -z "$DLLTOOL" && DLLTOOL=dlltool 6924 6925 6926 6927 6928 6929 6930 6931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6932$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6933if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6934 $as_echo_n "(cached) " >&6 6935else 6936 lt_cv_sharedlib_from_linklib_cmd='unknown' 6937 6938case $host_os in 6939cygwin* | mingw* | pw32* | cegcc*) 6940 # two different shell functions defined in ltmain.sh 6941 # decide which to use based on capabilities of $DLLTOOL 6942 case `$DLLTOOL --help 2>&1` in 6943 *--identify-strict*) 6944 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6945 ;; 6946 *) 6947 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6948 ;; 6949 esac 6950 ;; 6951*) 6952 # fallback: assume linklib IS sharedlib 6953 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6954 ;; 6955esac 6956 6957fi 6958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6959$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6960sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6961test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6962 6963 6964 6965 6966 6967 6968 6969if test -n "$ac_tool_prefix"; then 6970 for ac_prog in ar 6971 do 6972 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6973set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6975$as_echo_n "checking for $ac_word... " >&6; } 6976if ${ac_cv_prog_AR+:} false; then : 6977 $as_echo_n "(cached) " >&6 6978else 6979 if test -n "$AR"; then 6980 ac_cv_prog_AR="$AR" # Let the user override the test. 6981else 6982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6983for as_dir in $PATH 6984do 6985 IFS=$as_save_IFS 6986 test -z "$as_dir" && as_dir=. 6987 for ac_exec_ext in '' $ac_executable_extensions; do 6988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6989 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6991 break 2 6992 fi 6993done 6994 done 6995IFS=$as_save_IFS 6996 6997fi 6998fi 6999AR=$ac_cv_prog_AR 7000if test -n "$AR"; then 7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7002$as_echo "$AR" >&6; } 7003else 7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7005$as_echo "no" >&6; } 7006fi 7007 7008 7009 test -n "$AR" && break 7010 done 7011fi 7012if test -z "$AR"; then 7013 ac_ct_AR=$AR 7014 for ac_prog in ar 7015do 7016 # Extract the first word of "$ac_prog", so it can be a program name with args. 7017set dummy $ac_prog; ac_word=$2 7018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7019$as_echo_n "checking for $ac_word... " >&6; } 7020if ${ac_cv_prog_ac_ct_AR+:} false; then : 7021 $as_echo_n "(cached) " >&6 7022else 7023 if test -n "$ac_ct_AR"; then 7024 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7025else 7026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7027for as_dir in $PATH 7028do 7029 IFS=$as_save_IFS 7030 test -z "$as_dir" && as_dir=. 7031 for ac_exec_ext in '' $ac_executable_extensions; do 7032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7033 ac_cv_prog_ac_ct_AR="$ac_prog" 7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7035 break 2 7036 fi 7037done 7038 done 7039IFS=$as_save_IFS 7040 7041fi 7042fi 7043ac_ct_AR=$ac_cv_prog_ac_ct_AR 7044if test -n "$ac_ct_AR"; then 7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7046$as_echo "$ac_ct_AR" >&6; } 7047else 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7049$as_echo "no" >&6; } 7050fi 7051 7052 7053 test -n "$ac_ct_AR" && break 7054done 7055 7056 if test "x$ac_ct_AR" = x; then 7057 AR="false" 7058 else 7059 case $cross_compiling:$ac_tool_warned in 7060yes:) 7061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7063ac_tool_warned=yes ;; 7064esac 7065 AR=$ac_ct_AR 7066 fi 7067fi 7068 7069: ${AR=ar} 7070: ${AR_FLAGS=cru} 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7083$as_echo_n "checking for archiver @FILE support... " >&6; } 7084if ${lt_cv_ar_at_file+:} false; then : 7085 $as_echo_n "(cached) " >&6 7086else 7087 lt_cv_ar_at_file=no 7088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7089/* end confdefs.h. */ 7090 7091int 7092main () 7093{ 7094 7095 ; 7096 return 0; 7097} 7098_ACEOF 7099if ac_fn_c_try_compile "$LINENO"; then : 7100 echo conftest.$ac_objext > conftest.lst 7101 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7103 (eval $lt_ar_try) 2>&5 7104 ac_status=$? 7105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7106 test $ac_status = 0; } 7107 if test "$ac_status" -eq 0; then 7108 # Ensure the archiver fails upon bogus file names. 7109 rm -f conftest.$ac_objext libconftest.a 7110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7111 (eval $lt_ar_try) 2>&5 7112 ac_status=$? 7113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7114 test $ac_status = 0; } 7115 if test "$ac_status" -ne 0; then 7116 lt_cv_ar_at_file=@ 7117 fi 7118 fi 7119 rm -f conftest.* libconftest.a 7120 7121fi 7122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7123 7124fi 7125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7126$as_echo "$lt_cv_ar_at_file" >&6; } 7127 7128if test "x$lt_cv_ar_at_file" = xno; then 7129 archiver_list_spec= 7130else 7131 archiver_list_spec=$lt_cv_ar_at_file 7132fi 7133 7134 7135 7136 7137 7138 7139 7140if test -n "$ac_tool_prefix"; then 7141 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7142set dummy ${ac_tool_prefix}strip; ac_word=$2 7143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7144$as_echo_n "checking for $ac_word... " >&6; } 7145if ${ac_cv_prog_STRIP+:} false; then : 7146 $as_echo_n "(cached) " >&6 7147else 7148 if test -n "$STRIP"; then 7149 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7150else 7151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7152for as_dir in $PATH 7153do 7154 IFS=$as_save_IFS 7155 test -z "$as_dir" && as_dir=. 7156 for ac_exec_ext in '' $ac_executable_extensions; do 7157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7158 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7160 break 2 7161 fi 7162done 7163 done 7164IFS=$as_save_IFS 7165 7166fi 7167fi 7168STRIP=$ac_cv_prog_STRIP 7169if test -n "$STRIP"; then 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7171$as_echo "$STRIP" >&6; } 7172else 7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7174$as_echo "no" >&6; } 7175fi 7176 7177 7178fi 7179if test -z "$ac_cv_prog_STRIP"; then 7180 ac_ct_STRIP=$STRIP 7181 # Extract the first word of "strip", so it can be a program name with args. 7182set dummy strip; ac_word=$2 7183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7184$as_echo_n "checking for $ac_word... " >&6; } 7185if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7186 $as_echo_n "(cached) " >&6 7187else 7188 if test -n "$ac_ct_STRIP"; then 7189 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7190else 7191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7192for as_dir in $PATH 7193do 7194 IFS=$as_save_IFS 7195 test -z "$as_dir" && as_dir=. 7196 for ac_exec_ext in '' $ac_executable_extensions; do 7197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7198 ac_cv_prog_ac_ct_STRIP="strip" 7199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7200 break 2 7201 fi 7202done 7203 done 7204IFS=$as_save_IFS 7205 7206fi 7207fi 7208ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7209if test -n "$ac_ct_STRIP"; then 7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7211$as_echo "$ac_ct_STRIP" >&6; } 7212else 7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7214$as_echo "no" >&6; } 7215fi 7216 7217 if test "x$ac_ct_STRIP" = x; then 7218 STRIP=":" 7219 else 7220 case $cross_compiling:$ac_tool_warned in 7221yes:) 7222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7224ac_tool_warned=yes ;; 7225esac 7226 STRIP=$ac_ct_STRIP 7227 fi 7228else 7229 STRIP="$ac_cv_prog_STRIP" 7230fi 7231 7232test -z "$STRIP" && STRIP=: 7233 7234 7235 7236 7237 7238 7239if test -n "$ac_tool_prefix"; then 7240 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7241set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7243$as_echo_n "checking for $ac_word... " >&6; } 7244if ${ac_cv_prog_RANLIB+:} false; then : 7245 $as_echo_n "(cached) " >&6 7246else 7247 if test -n "$RANLIB"; then 7248 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7249else 7250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7251for as_dir in $PATH 7252do 7253 IFS=$as_save_IFS 7254 test -z "$as_dir" && as_dir=. 7255 for ac_exec_ext in '' $ac_executable_extensions; do 7256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7257 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7259 break 2 7260 fi 7261done 7262 done 7263IFS=$as_save_IFS 7264 7265fi 7266fi 7267RANLIB=$ac_cv_prog_RANLIB 7268if test -n "$RANLIB"; then 7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7270$as_echo "$RANLIB" >&6; } 7271else 7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7273$as_echo "no" >&6; } 7274fi 7275 7276 7277fi 7278if test -z "$ac_cv_prog_RANLIB"; then 7279 ac_ct_RANLIB=$RANLIB 7280 # Extract the first word of "ranlib", so it can be a program name with args. 7281set dummy ranlib; ac_word=$2 7282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7283$as_echo_n "checking for $ac_word... " >&6; } 7284if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7285 $as_echo_n "(cached) " >&6 7286else 7287 if test -n "$ac_ct_RANLIB"; then 7288 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7289else 7290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7291for as_dir in $PATH 7292do 7293 IFS=$as_save_IFS 7294 test -z "$as_dir" && as_dir=. 7295 for ac_exec_ext in '' $ac_executable_extensions; do 7296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7297 ac_cv_prog_ac_ct_RANLIB="ranlib" 7298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7299 break 2 7300 fi 7301done 7302 done 7303IFS=$as_save_IFS 7304 7305fi 7306fi 7307ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7308if test -n "$ac_ct_RANLIB"; then 7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7310$as_echo "$ac_ct_RANLIB" >&6; } 7311else 7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7313$as_echo "no" >&6; } 7314fi 7315 7316 if test "x$ac_ct_RANLIB" = x; then 7317 RANLIB=":" 7318 else 7319 case $cross_compiling:$ac_tool_warned in 7320yes:) 7321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7323ac_tool_warned=yes ;; 7324esac 7325 RANLIB=$ac_ct_RANLIB 7326 fi 7327else 7328 RANLIB="$ac_cv_prog_RANLIB" 7329fi 7330 7331test -z "$RANLIB" && RANLIB=: 7332 7333 7334 7335 7336 7337 7338# Determine commands to create old-style static archives. 7339old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7340old_postinstall_cmds='chmod 644 $oldlib' 7341old_postuninstall_cmds= 7342 7343if test -n "$RANLIB"; then 7344 case $host_os in 7345 openbsd*) 7346 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7347 ;; 7348 *) 7349 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7350 ;; 7351 esac 7352 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7353fi 7354 7355case $host_os in 7356 darwin*) 7357 lock_old_archive_extraction=yes ;; 7358 *) 7359 lock_old_archive_extraction=no ;; 7360esac 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400# If no C compiler was specified, use CC. 7401LTCC=${LTCC-"$CC"} 7402 7403# If no C compiler flags were specified, use CFLAGS. 7404LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7405 7406# Allow CC to be a program name with arguments. 7407compiler=$CC 7408 7409 7410# Check for command to grab the raw symbol name followed by C symbol from nm. 7411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7412$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7413if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7414 $as_echo_n "(cached) " >&6 7415else 7416 7417# These are sane defaults that work on at least a few old systems. 7418# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7419 7420# Character class describing NM global symbol codes. 7421symcode='[BCDEGRST]' 7422 7423# Regexp to match symbols that can be accessed directly from C. 7424sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7425 7426# Define system-specific variables. 7427case $host_os in 7428aix*) 7429 symcode='[BCDT]' 7430 ;; 7431cygwin* | mingw* | pw32* | cegcc*) 7432 symcode='[ABCDGISTW]' 7433 ;; 7434hpux*) 7435 if test "$host_cpu" = ia64; then 7436 symcode='[ABCDEGRST]' 7437 fi 7438 ;; 7439irix* | nonstopux*) 7440 symcode='[BCDEGRST]' 7441 ;; 7442osf*) 7443 symcode='[BCDEGQRST]' 7444 ;; 7445solaris*) 7446 symcode='[BDRT]' 7447 ;; 7448sco3.2v5*) 7449 symcode='[DT]' 7450 ;; 7451sysv4.2uw2*) 7452 symcode='[DT]' 7453 ;; 7454sysv5* | sco5v6* | unixware* | OpenUNIX*) 7455 symcode='[ABDT]' 7456 ;; 7457sysv4) 7458 symcode='[DFNSTU]' 7459 ;; 7460esac 7461 7462# If we're using GNU nm, then use its standard symbol codes. 7463case `$NM -V 2>&1` in 7464*GNU* | *'with BFD'*) 7465 symcode='[ABCDGIRSTW]' ;; 7466esac 7467 7468# Transform an extracted symbol line into a proper C declaration. 7469# Some systems (esp. on ia64) link data and code symbols differently, 7470# so use this general approach. 7471lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7472 7473# Transform an extracted symbol line into symbol name and symbol address 7474lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7475lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 7476 7477# Handle CRLF in mingw tool chain 7478opt_cr= 7479case $build_os in 7480mingw*) 7481 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7482 ;; 7483esac 7484 7485# Try without a prefix underscore, then with it. 7486for ac_symprfx in "" "_"; do 7487 7488 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7489 symxfrm="\\1 $ac_symprfx\\2 \\2" 7490 7491 # Write the raw and C identifiers. 7492 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7493 # Fake it for dumpbin and say T for any non-static function 7494 # and D for any global variable. 7495 # Also find C++ and __fastcall symbols from MSVC++, 7496 # which start with @ or ?. 7497 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7498" {last_section=section; section=\$ 3};"\ 7499" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7500" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7501" \$ 0!~/External *\|/{next};"\ 7502" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7503" {if(hide[section]) next};"\ 7504" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7505" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7506" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7507" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7508" ' prfx=^$ac_symprfx" 7509 else 7510 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7511 fi 7512 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7513 7514 # Check to see that the pipe works correctly. 7515 pipe_works=no 7516 7517 rm -f conftest* 7518 cat > conftest.$ac_ext <<_LT_EOF 7519#ifdef __cplusplus 7520extern "C" { 7521#endif 7522char nm_test_var; 7523void nm_test_func(void); 7524void nm_test_func(void){} 7525#ifdef __cplusplus 7526} 7527#endif 7528int main(){nm_test_var='a';nm_test_func();return(0);} 7529_LT_EOF 7530 7531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7532 (eval $ac_compile) 2>&5 7533 ac_status=$? 7534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7535 test $ac_status = 0; }; then 7536 # Now try to grab the symbols. 7537 nlist=conftest.nm 7538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7539 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7540 ac_status=$? 7541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7542 test $ac_status = 0; } && test -s "$nlist"; then 7543 # Try sorting and uniquifying the output. 7544 if sort "$nlist" | uniq > "$nlist"T; then 7545 mv -f "$nlist"T "$nlist" 7546 else 7547 rm -f "$nlist"T 7548 fi 7549 7550 # Make sure that we snagged all the symbols we need. 7551 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7552 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7553 cat <<_LT_EOF > conftest.$ac_ext 7554/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7555#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 7556/* DATA imports from DLLs on WIN32 con't be const, because runtime 7557 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7558# define LT_DLSYM_CONST 7559#elif defined(__osf__) 7560/* This system does not cope well with relocations in const data. */ 7561# define LT_DLSYM_CONST 7562#else 7563# define LT_DLSYM_CONST const 7564#endif 7565 7566#ifdef __cplusplus 7567extern "C" { 7568#endif 7569 7570_LT_EOF 7571 # Now generate the symbol file. 7572 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7573 7574 cat <<_LT_EOF >> conftest.$ac_ext 7575 7576/* The mapping between symbol names and symbols. */ 7577LT_DLSYM_CONST struct { 7578 const char *name; 7579 void *address; 7580} 7581lt__PROGRAM__LTX_preloaded_symbols[] = 7582{ 7583 { "@PROGRAM@", (void *) 0 }, 7584_LT_EOF 7585 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7586 cat <<\_LT_EOF >> conftest.$ac_ext 7587 {0, (void *) 0} 7588}; 7589 7590/* This works around a problem in FreeBSD linker */ 7591#ifdef FREEBSD_WORKAROUND 7592static const void *lt_preloaded_setup() { 7593 return lt__PROGRAM__LTX_preloaded_symbols; 7594} 7595#endif 7596 7597#ifdef __cplusplus 7598} 7599#endif 7600_LT_EOF 7601 # Now try linking the two files. 7602 mv conftest.$ac_objext conftstm.$ac_objext 7603 lt_globsym_save_LIBS=$LIBS 7604 lt_globsym_save_CFLAGS=$CFLAGS 7605 LIBS="conftstm.$ac_objext" 7606 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7608 (eval $ac_link) 2>&5 7609 ac_status=$? 7610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7611 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7612 pipe_works=yes 7613 fi 7614 LIBS=$lt_globsym_save_LIBS 7615 CFLAGS=$lt_globsym_save_CFLAGS 7616 else 7617 echo "cannot find nm_test_func in $nlist" >&5 7618 fi 7619 else 7620 echo "cannot find nm_test_var in $nlist" >&5 7621 fi 7622 else 7623 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7624 fi 7625 else 7626 echo "$progname: failed program was:" >&5 7627 cat conftest.$ac_ext >&5 7628 fi 7629 rm -rf conftest* conftst* 7630 7631 # Do not use the global_symbol_pipe unless it works. 7632 if test "$pipe_works" = yes; then 7633 break 7634 else 7635 lt_cv_sys_global_symbol_pipe= 7636 fi 7637done 7638 7639fi 7640 7641if test -z "$lt_cv_sys_global_symbol_pipe"; then 7642 lt_cv_sys_global_symbol_to_cdecl= 7643fi 7644if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7646$as_echo "failed" >&6; } 7647else 7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7649$as_echo "ok" >&6; } 7650fi 7651 7652# Response file support. 7653if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7654 nm_file_list_spec='@' 7655elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7656 nm_file_list_spec='@' 7657fi 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7686$as_echo_n "checking for sysroot... " >&6; } 7687 7688# Check whether --with-sysroot was given. 7689if test "${with_sysroot+set}" = set; then : 7690 withval=$with_sysroot; 7691else 7692 with_sysroot=no 7693fi 7694 7695 7696lt_sysroot= 7697case ${with_sysroot} in #( 7698 yes) 7699 if test "$GCC" = yes; then 7700 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7701 fi 7702 ;; #( 7703 /*) 7704 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7705 ;; #( 7706 no|'') 7707 ;; #( 7708 *) 7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7710$as_echo "${with_sysroot}" >&6; } 7711 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7712 ;; 7713esac 7714 7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7716$as_echo "${lt_sysroot:-no}" >&6; } 7717 7718 7719 7720 7721 7722# Check whether --enable-libtool-lock was given. 7723if test "${enable_libtool_lock+set}" = set; then : 7724 enableval=$enable_libtool_lock; 7725fi 7726 7727test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7728 7729# Some flags need to be propagated to the compiler or linker for good 7730# libtool support. 7731case $host in 7732ia64-*-hpux*) 7733 # Find out which ABI we are using. 7734 echo 'int i;' > conftest.$ac_ext 7735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7736 (eval $ac_compile) 2>&5 7737 ac_status=$? 7738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7739 test $ac_status = 0; }; then 7740 case `/usr/bin/file conftest.$ac_objext` in 7741 *ELF-32*) 7742 HPUX_IA64_MODE="32" 7743 ;; 7744 *ELF-64*) 7745 HPUX_IA64_MODE="64" 7746 ;; 7747 esac 7748 fi 7749 rm -rf conftest* 7750 ;; 7751*-*-irix6*) 7752 # Find out which ABI we are using. 7753 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7755 (eval $ac_compile) 2>&5 7756 ac_status=$? 7757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7758 test $ac_status = 0; }; then 7759 if test "$lt_cv_prog_gnu_ld" = yes; then 7760 case `/usr/bin/file conftest.$ac_objext` in 7761 *32-bit*) 7762 LD="${LD-ld} -melf32bsmip" 7763 ;; 7764 *N32*) 7765 LD="${LD-ld} -melf32bmipn32" 7766 ;; 7767 *64-bit*) 7768 LD="${LD-ld} -melf64bmip" 7769 ;; 7770 esac 7771 else 7772 case `/usr/bin/file conftest.$ac_objext` in 7773 *32-bit*) 7774 LD="${LD-ld} -32" 7775 ;; 7776 *N32*) 7777 LD="${LD-ld} -n32" 7778 ;; 7779 *64-bit*) 7780 LD="${LD-ld} -64" 7781 ;; 7782 esac 7783 fi 7784 fi 7785 rm -rf conftest* 7786 ;; 7787 7788x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7789s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7790 # Find out which ABI we are using. 7791 echo 'int i;' > conftest.$ac_ext 7792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7793 (eval $ac_compile) 2>&5 7794 ac_status=$? 7795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7796 test $ac_status = 0; }; then 7797 case `/usr/bin/file conftest.o` in 7798 *32-bit*) 7799 case $host in 7800 x86_64-*kfreebsd*-gnu) 7801 LD="${LD-ld} -m elf_i386_fbsd" 7802 ;; 7803 x86_64-*linux*) 7804 LD="${LD-ld} -m elf_i386" 7805 ;; 7806 ppc64-*linux*|powerpc64-*linux*) 7807 LD="${LD-ld} -m elf32ppclinux" 7808 ;; 7809 s390x-*linux*) 7810 LD="${LD-ld} -m elf_s390" 7811 ;; 7812 sparc64-*linux*) 7813 LD="${LD-ld} -m elf32_sparc" 7814 ;; 7815 esac 7816 ;; 7817 *64-bit*) 7818 case $host in 7819 x86_64-*kfreebsd*-gnu) 7820 LD="${LD-ld} -m elf_x86_64_fbsd" 7821 ;; 7822 x86_64-*linux*) 7823 LD="${LD-ld} -m elf_x86_64" 7824 ;; 7825 ppc*-*linux*|powerpc*-*linux*) 7826 LD="${LD-ld} -m elf64ppc" 7827 ;; 7828 s390*-*linux*|s390*-*tpf*) 7829 LD="${LD-ld} -m elf64_s390" 7830 ;; 7831 sparc*-*linux*) 7832 LD="${LD-ld} -m elf64_sparc" 7833 ;; 7834 esac 7835 ;; 7836 esac 7837 fi 7838 rm -rf conftest* 7839 ;; 7840 7841*-*-sco3.2v5*) 7842 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7843 SAVE_CFLAGS="$CFLAGS" 7844 CFLAGS="$CFLAGS -belf" 7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7846$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7847if ${lt_cv_cc_needs_belf+:} false; then : 7848 $as_echo_n "(cached) " >&6 7849else 7850 ac_ext=c 7851ac_cpp='$CPP $CPPFLAGS' 7852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7854ac_compiler_gnu=$ac_cv_c_compiler_gnu 7855 7856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7857/* end confdefs.h. */ 7858 7859int 7860main () 7861{ 7862 7863 ; 7864 return 0; 7865} 7866_ACEOF 7867if ac_fn_c_try_link "$LINENO"; then : 7868 lt_cv_cc_needs_belf=yes 7869else 7870 lt_cv_cc_needs_belf=no 7871fi 7872rm -f core conftest.err conftest.$ac_objext \ 7873 conftest$ac_exeext conftest.$ac_ext 7874 ac_ext=c 7875ac_cpp='$CPP $CPPFLAGS' 7876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7878ac_compiler_gnu=$ac_cv_c_compiler_gnu 7879 7880fi 7881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7882$as_echo "$lt_cv_cc_needs_belf" >&6; } 7883 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7884 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7885 CFLAGS="$SAVE_CFLAGS" 7886 fi 7887 ;; 7888*-*solaris*) 7889 # Find out which ABI we are using. 7890 echo 'int i;' > conftest.$ac_ext 7891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7892 (eval $ac_compile) 2>&5 7893 ac_status=$? 7894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7895 test $ac_status = 0; }; then 7896 case `/usr/bin/file conftest.o` in 7897 *64-bit*) 7898 case $lt_cv_prog_gnu_ld in 7899 yes*) 7900 case $host in 7901 i?86-*-solaris*) 7902 LD="${LD-ld} -m elf_x86_64" 7903 ;; 7904 sparc*-*-solaris*) 7905 LD="${LD-ld} -m elf64_sparc" 7906 ;; 7907 esac 7908 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7909 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7910 LD="${LD-ld}_sol2" 7911 fi 7912 ;; 7913 *) 7914 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7915 LD="${LD-ld} -64" 7916 fi 7917 ;; 7918 esac 7919 ;; 7920 esac 7921 fi 7922 rm -rf conftest* 7923 ;; 7924esac 7925 7926need_locks="$enable_libtool_lock" 7927 7928if test -n "$ac_tool_prefix"; then 7929 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7930set dummy ${ac_tool_prefix}mt; ac_word=$2 7931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7932$as_echo_n "checking for $ac_word... " >&6; } 7933if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7934 $as_echo_n "(cached) " >&6 7935else 7936 if test -n "$MANIFEST_TOOL"; then 7937 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7938else 7939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7940for as_dir in $PATH 7941do 7942 IFS=$as_save_IFS 7943 test -z "$as_dir" && as_dir=. 7944 for ac_exec_ext in '' $ac_executable_extensions; do 7945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7946 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7948 break 2 7949 fi 7950done 7951 done 7952IFS=$as_save_IFS 7953 7954fi 7955fi 7956MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7957if test -n "$MANIFEST_TOOL"; then 7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7959$as_echo "$MANIFEST_TOOL" >&6; } 7960else 7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7962$as_echo "no" >&6; } 7963fi 7964 7965 7966fi 7967if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7968 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7969 # Extract the first word of "mt", so it can be a program name with args. 7970set dummy mt; ac_word=$2 7971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7972$as_echo_n "checking for $ac_word... " >&6; } 7973if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7974 $as_echo_n "(cached) " >&6 7975else 7976 if test -n "$ac_ct_MANIFEST_TOOL"; then 7977 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7978else 7979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7980for as_dir in $PATH 7981do 7982 IFS=$as_save_IFS 7983 test -z "$as_dir" && as_dir=. 7984 for ac_exec_ext in '' $ac_executable_extensions; do 7985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7986 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7988 break 2 7989 fi 7990done 7991 done 7992IFS=$as_save_IFS 7993 7994fi 7995fi 7996ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7997if test -n "$ac_ct_MANIFEST_TOOL"; then 7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7999$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8000else 8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8002$as_echo "no" >&6; } 8003fi 8004 8005 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8006 MANIFEST_TOOL=":" 8007 else 8008 case $cross_compiling:$ac_tool_warned in 8009yes:) 8010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8012ac_tool_warned=yes ;; 8013esac 8014 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8015 fi 8016else 8017 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8018fi 8019 8020test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8022$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8023if ${lt_cv_path_mainfest_tool+:} false; then : 8024 $as_echo_n "(cached) " >&6 8025else 8026 lt_cv_path_mainfest_tool=no 8027 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8028 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8029 cat conftest.err >&5 8030 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8031 lt_cv_path_mainfest_tool=yes 8032 fi 8033 rm -f conftest* 8034fi 8035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8036$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8037if test "x$lt_cv_path_mainfest_tool" != xyes; then 8038 MANIFEST_TOOL=: 8039fi 8040 8041 8042 8043 8044 8045 8046 case $host_os in 8047 rhapsody* | darwin*) 8048 if test -n "$ac_tool_prefix"; then 8049 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8050set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8052$as_echo_n "checking for $ac_word... " >&6; } 8053if ${ac_cv_prog_DSYMUTIL+:} false; then : 8054 $as_echo_n "(cached) " >&6 8055else 8056 if test -n "$DSYMUTIL"; then 8057 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8058else 8059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8060for as_dir in $PATH 8061do 8062 IFS=$as_save_IFS 8063 test -z "$as_dir" && as_dir=. 8064 for ac_exec_ext in '' $ac_executable_extensions; do 8065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8066 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8068 break 2 8069 fi 8070done 8071 done 8072IFS=$as_save_IFS 8073 8074fi 8075fi 8076DSYMUTIL=$ac_cv_prog_DSYMUTIL 8077if test -n "$DSYMUTIL"; then 8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8079$as_echo "$DSYMUTIL" >&6; } 8080else 8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8082$as_echo "no" >&6; } 8083fi 8084 8085 8086fi 8087if test -z "$ac_cv_prog_DSYMUTIL"; then 8088 ac_ct_DSYMUTIL=$DSYMUTIL 8089 # Extract the first word of "dsymutil", so it can be a program name with args. 8090set dummy dsymutil; ac_word=$2 8091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8092$as_echo_n "checking for $ac_word... " >&6; } 8093if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8094 $as_echo_n "(cached) " >&6 8095else 8096 if test -n "$ac_ct_DSYMUTIL"; then 8097 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8098else 8099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8100for as_dir in $PATH 8101do 8102 IFS=$as_save_IFS 8103 test -z "$as_dir" && as_dir=. 8104 for ac_exec_ext in '' $ac_executable_extensions; do 8105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8106 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8108 break 2 8109 fi 8110done 8111 done 8112IFS=$as_save_IFS 8113 8114fi 8115fi 8116ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8117if test -n "$ac_ct_DSYMUTIL"; then 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8119$as_echo "$ac_ct_DSYMUTIL" >&6; } 8120else 8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8122$as_echo "no" >&6; } 8123fi 8124 8125 if test "x$ac_ct_DSYMUTIL" = x; then 8126 DSYMUTIL=":" 8127 else 8128 case $cross_compiling:$ac_tool_warned in 8129yes:) 8130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8132ac_tool_warned=yes ;; 8133esac 8134 DSYMUTIL=$ac_ct_DSYMUTIL 8135 fi 8136else 8137 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8138fi 8139 8140 if test -n "$ac_tool_prefix"; then 8141 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8142set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8144$as_echo_n "checking for $ac_word... " >&6; } 8145if ${ac_cv_prog_NMEDIT+:} false; then : 8146 $as_echo_n "(cached) " >&6 8147else 8148 if test -n "$NMEDIT"; then 8149 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8150else 8151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8152for as_dir in $PATH 8153do 8154 IFS=$as_save_IFS 8155 test -z "$as_dir" && as_dir=. 8156 for ac_exec_ext in '' $ac_executable_extensions; do 8157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8158 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8160 break 2 8161 fi 8162done 8163 done 8164IFS=$as_save_IFS 8165 8166fi 8167fi 8168NMEDIT=$ac_cv_prog_NMEDIT 8169if test -n "$NMEDIT"; then 8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8171$as_echo "$NMEDIT" >&6; } 8172else 8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8174$as_echo "no" >&6; } 8175fi 8176 8177 8178fi 8179if test -z "$ac_cv_prog_NMEDIT"; then 8180 ac_ct_NMEDIT=$NMEDIT 8181 # Extract the first word of "nmedit", so it can be a program name with args. 8182set dummy nmedit; ac_word=$2 8183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8184$as_echo_n "checking for $ac_word... " >&6; } 8185if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8186 $as_echo_n "(cached) " >&6 8187else 8188 if test -n "$ac_ct_NMEDIT"; then 8189 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8190else 8191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8192for as_dir in $PATH 8193do 8194 IFS=$as_save_IFS 8195 test -z "$as_dir" && as_dir=. 8196 for ac_exec_ext in '' $ac_executable_extensions; do 8197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8198 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8200 break 2 8201 fi 8202done 8203 done 8204IFS=$as_save_IFS 8205 8206fi 8207fi 8208ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8209if test -n "$ac_ct_NMEDIT"; then 8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8211$as_echo "$ac_ct_NMEDIT" >&6; } 8212else 8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8214$as_echo "no" >&6; } 8215fi 8216 8217 if test "x$ac_ct_NMEDIT" = x; then 8218 NMEDIT=":" 8219 else 8220 case $cross_compiling:$ac_tool_warned in 8221yes:) 8222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8224ac_tool_warned=yes ;; 8225esac 8226 NMEDIT=$ac_ct_NMEDIT 8227 fi 8228else 8229 NMEDIT="$ac_cv_prog_NMEDIT" 8230fi 8231 8232 if test -n "$ac_tool_prefix"; then 8233 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8234set dummy ${ac_tool_prefix}lipo; ac_word=$2 8235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8236$as_echo_n "checking for $ac_word... " >&6; } 8237if ${ac_cv_prog_LIPO+:} false; then : 8238 $as_echo_n "(cached) " >&6 8239else 8240 if test -n "$LIPO"; then 8241 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8242else 8243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8244for as_dir in $PATH 8245do 8246 IFS=$as_save_IFS 8247 test -z "$as_dir" && as_dir=. 8248 for ac_exec_ext in '' $ac_executable_extensions; do 8249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8250 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8252 break 2 8253 fi 8254done 8255 done 8256IFS=$as_save_IFS 8257 8258fi 8259fi 8260LIPO=$ac_cv_prog_LIPO 8261if test -n "$LIPO"; then 8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8263$as_echo "$LIPO" >&6; } 8264else 8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8266$as_echo "no" >&6; } 8267fi 8268 8269 8270fi 8271if test -z "$ac_cv_prog_LIPO"; then 8272 ac_ct_LIPO=$LIPO 8273 # Extract the first word of "lipo", so it can be a program name with args. 8274set dummy lipo; ac_word=$2 8275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8276$as_echo_n "checking for $ac_word... " >&6; } 8277if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8278 $as_echo_n "(cached) " >&6 8279else 8280 if test -n "$ac_ct_LIPO"; then 8281 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8282else 8283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8284for as_dir in $PATH 8285do 8286 IFS=$as_save_IFS 8287 test -z "$as_dir" && as_dir=. 8288 for ac_exec_ext in '' $ac_executable_extensions; do 8289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8290 ac_cv_prog_ac_ct_LIPO="lipo" 8291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8292 break 2 8293 fi 8294done 8295 done 8296IFS=$as_save_IFS 8297 8298fi 8299fi 8300ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8301if test -n "$ac_ct_LIPO"; then 8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8303$as_echo "$ac_ct_LIPO" >&6; } 8304else 8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8306$as_echo "no" >&6; } 8307fi 8308 8309 if test "x$ac_ct_LIPO" = x; then 8310 LIPO=":" 8311 else 8312 case $cross_compiling:$ac_tool_warned in 8313yes:) 8314{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8315$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8316ac_tool_warned=yes ;; 8317esac 8318 LIPO=$ac_ct_LIPO 8319 fi 8320else 8321 LIPO="$ac_cv_prog_LIPO" 8322fi 8323 8324 if test -n "$ac_tool_prefix"; then 8325 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8326set dummy ${ac_tool_prefix}otool; ac_word=$2 8327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8328$as_echo_n "checking for $ac_word... " >&6; } 8329if ${ac_cv_prog_OTOOL+:} false; then : 8330 $as_echo_n "(cached) " >&6 8331else 8332 if test -n "$OTOOL"; then 8333 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8334else 8335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8336for as_dir in $PATH 8337do 8338 IFS=$as_save_IFS 8339 test -z "$as_dir" && as_dir=. 8340 for ac_exec_ext in '' $ac_executable_extensions; do 8341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8342 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8344 break 2 8345 fi 8346done 8347 done 8348IFS=$as_save_IFS 8349 8350fi 8351fi 8352OTOOL=$ac_cv_prog_OTOOL 8353if test -n "$OTOOL"; then 8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8355$as_echo "$OTOOL" >&6; } 8356else 8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8358$as_echo "no" >&6; } 8359fi 8360 8361 8362fi 8363if test -z "$ac_cv_prog_OTOOL"; then 8364 ac_ct_OTOOL=$OTOOL 8365 # Extract the first word of "otool", so it can be a program name with args. 8366set dummy otool; ac_word=$2 8367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8368$as_echo_n "checking for $ac_word... " >&6; } 8369if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8370 $as_echo_n "(cached) " >&6 8371else 8372 if test -n "$ac_ct_OTOOL"; then 8373 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8374else 8375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8376for as_dir in $PATH 8377do 8378 IFS=$as_save_IFS 8379 test -z "$as_dir" && as_dir=. 8380 for ac_exec_ext in '' $ac_executable_extensions; do 8381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8382 ac_cv_prog_ac_ct_OTOOL="otool" 8383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8384 break 2 8385 fi 8386done 8387 done 8388IFS=$as_save_IFS 8389 8390fi 8391fi 8392ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8393if test -n "$ac_ct_OTOOL"; then 8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8395$as_echo "$ac_ct_OTOOL" >&6; } 8396else 8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8398$as_echo "no" >&6; } 8399fi 8400 8401 if test "x$ac_ct_OTOOL" = x; then 8402 OTOOL=":" 8403 else 8404 case $cross_compiling:$ac_tool_warned in 8405yes:) 8406{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8408ac_tool_warned=yes ;; 8409esac 8410 OTOOL=$ac_ct_OTOOL 8411 fi 8412else 8413 OTOOL="$ac_cv_prog_OTOOL" 8414fi 8415 8416 if test -n "$ac_tool_prefix"; then 8417 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8418set dummy ${ac_tool_prefix}otool64; ac_word=$2 8419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8420$as_echo_n "checking for $ac_word... " >&6; } 8421if ${ac_cv_prog_OTOOL64+:} false; then : 8422 $as_echo_n "(cached) " >&6 8423else 8424 if test -n "$OTOOL64"; then 8425 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8426else 8427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8428for as_dir in $PATH 8429do 8430 IFS=$as_save_IFS 8431 test -z "$as_dir" && as_dir=. 8432 for ac_exec_ext in '' $ac_executable_extensions; do 8433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8434 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8436 break 2 8437 fi 8438done 8439 done 8440IFS=$as_save_IFS 8441 8442fi 8443fi 8444OTOOL64=$ac_cv_prog_OTOOL64 8445if test -n "$OTOOL64"; then 8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8447$as_echo "$OTOOL64" >&6; } 8448else 8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8450$as_echo "no" >&6; } 8451fi 8452 8453 8454fi 8455if test -z "$ac_cv_prog_OTOOL64"; then 8456 ac_ct_OTOOL64=$OTOOL64 8457 # Extract the first word of "otool64", so it can be a program name with args. 8458set dummy otool64; ac_word=$2 8459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8460$as_echo_n "checking for $ac_word... " >&6; } 8461if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8462 $as_echo_n "(cached) " >&6 8463else 8464 if test -n "$ac_ct_OTOOL64"; then 8465 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8466else 8467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8468for as_dir in $PATH 8469do 8470 IFS=$as_save_IFS 8471 test -z "$as_dir" && as_dir=. 8472 for ac_exec_ext in '' $ac_executable_extensions; do 8473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8474 ac_cv_prog_ac_ct_OTOOL64="otool64" 8475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8476 break 2 8477 fi 8478done 8479 done 8480IFS=$as_save_IFS 8481 8482fi 8483fi 8484ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8485if test -n "$ac_ct_OTOOL64"; then 8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8487$as_echo "$ac_ct_OTOOL64" >&6; } 8488else 8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8490$as_echo "no" >&6; } 8491fi 8492 8493 if test "x$ac_ct_OTOOL64" = x; then 8494 OTOOL64=":" 8495 else 8496 case $cross_compiling:$ac_tool_warned in 8497yes:) 8498{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8499$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8500ac_tool_warned=yes ;; 8501esac 8502 OTOOL64=$ac_ct_OTOOL64 8503 fi 8504else 8505 OTOOL64="$ac_cv_prog_OTOOL64" 8506fi 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8535$as_echo_n "checking for -single_module linker flag... " >&6; } 8536if ${lt_cv_apple_cc_single_mod+:} false; then : 8537 $as_echo_n "(cached) " >&6 8538else 8539 lt_cv_apple_cc_single_mod=no 8540 if test -z "${LT_MULTI_MODULE}"; then 8541 # By default we will add the -single_module flag. You can override 8542 # by either setting the environment variable LT_MULTI_MODULE 8543 # non-empty at configure time, or by adding -multi_module to the 8544 # link flags. 8545 rm -rf libconftest.dylib* 8546 echo "int foo(void){return 1;}" > conftest.c 8547 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8548-dynamiclib -Wl,-single_module conftest.c" >&5 8549 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8550 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8551 _lt_result=$? 8552 # If there is a non-empty error log, and "single_module" 8553 # appears in it, assume the flag caused a linker warning 8554 if test -s conftest.err && $GREP single_module conftest.err; then 8555 cat conftest.err >&5 8556 # Otherwise, if the output was created with a 0 exit code from 8557 # the compiler, it worked. 8558 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 8559 lt_cv_apple_cc_single_mod=yes 8560 else 8561 cat conftest.err >&5 8562 fi 8563 rm -rf libconftest.dylib* 8564 rm -f conftest.* 8565 fi 8566fi 8567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8568$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8569 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8571$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8572if ${lt_cv_ld_exported_symbols_list+:} false; then : 8573 $as_echo_n "(cached) " >&6 8574else 8575 lt_cv_ld_exported_symbols_list=no 8576 save_LDFLAGS=$LDFLAGS 8577 echo "_main" > conftest.sym 8578 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8580/* end confdefs.h. */ 8581 8582int 8583main () 8584{ 8585 8586 ; 8587 return 0; 8588} 8589_ACEOF 8590if ac_fn_c_try_link "$LINENO"; then : 8591 lt_cv_ld_exported_symbols_list=yes 8592else 8593 lt_cv_ld_exported_symbols_list=no 8594fi 8595rm -f core conftest.err conftest.$ac_objext \ 8596 conftest$ac_exeext conftest.$ac_ext 8597 LDFLAGS="$save_LDFLAGS" 8598 8599fi 8600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8601$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8602 8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8604$as_echo_n "checking for -force_load linker flag... " >&6; } 8605if ${lt_cv_ld_force_load+:} false; then : 8606 $as_echo_n "(cached) " >&6 8607else 8608 lt_cv_ld_force_load=no 8609 cat > conftest.c << _LT_EOF 8610int forced_loaded() { return 2;} 8611_LT_EOF 8612 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8613 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8614 echo "$AR cru libconftest.a conftest.o" >&5 8615 $AR cru libconftest.a conftest.o 2>&5 8616 echo "$RANLIB libconftest.a" >&5 8617 $RANLIB libconftest.a 2>&5 8618 cat > conftest.c << _LT_EOF 8619int main() { return 0;} 8620_LT_EOF 8621 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8622 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8623 _lt_result=$? 8624 if test -s conftest.err && $GREP force_load conftest.err; then 8625 cat conftest.err >&5 8626 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 8627 lt_cv_ld_force_load=yes 8628 else 8629 cat conftest.err >&5 8630 fi 8631 rm -f conftest.err libconftest.a conftest conftest.c 8632 rm -rf conftest.dSYM 8633 8634fi 8635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8636$as_echo "$lt_cv_ld_force_load" >&6; } 8637 case $host_os in 8638 rhapsody* | darwin1.[012]) 8639 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8640 darwin1.*) 8641 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8642 darwin*) # darwin 5.x on 8643 # if running on 10.5 or later, the deployment target defaults 8644 # to the OS version, if on x86, and 10.4, the deployment 8645 # target defaults to 10.4. Don't you love it? 8646 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8647 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8648 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8649 10.[012]*) 8650 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8651 10.*) 8652 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8653 esac 8654 ;; 8655 esac 8656 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8657 _lt_dar_single_mod='$single_module' 8658 fi 8659 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8660 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8661 else 8662 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8663 fi 8664 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8665 _lt_dsymutil='~$DSYMUTIL $lib || :' 8666 else 8667 _lt_dsymutil= 8668 fi 8669 ;; 8670 esac 8671 8672for ac_header in dlfcn.h 8673do : 8674 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8675" 8676if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8677 cat >>confdefs.h <<_ACEOF 8678#define HAVE_DLFCN_H 1 8679_ACEOF 8680 8681fi 8682 8683done 8684 8685 8686 8687 8688 8689# Set options 8690 8691 8692 8693 8694 8695 # Check whether --enable-shared was given. 8696if test "${enable_shared+set}" = set; then : 8697 enableval=$enable_shared; p=${PACKAGE-default} 8698 case $enableval in 8699 yes) enable_shared=yes ;; 8700 no) enable_shared=no ;; 8701 *) 8702 enable_shared=no 8703 # Look at the argument we got. We use all the common list separators. 8704 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8705 for pkg in $enableval; do 8706 IFS="$lt_save_ifs" 8707 if test "X$pkg" = "X$p"; then 8708 enable_shared=yes 8709 fi 8710 done 8711 IFS="$lt_save_ifs" 8712 ;; 8713 esac 8714else 8715 enable_shared=yes 8716fi 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728# Check whether --with-pic was given. 8729if test "${with_pic+set}" = set; then : 8730 withval=$with_pic; lt_p=${PACKAGE-default} 8731 case $withval in 8732 yes|no) pic_mode=$withval ;; 8733 *) 8734 pic_mode=default 8735 # Look at the argument we got. We use all the common list separators. 8736 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8737 for lt_pkg in $withval; do 8738 IFS="$lt_save_ifs" 8739 if test "X$lt_pkg" = "X$lt_p"; then 8740 pic_mode=yes 8741 fi 8742 done 8743 IFS="$lt_save_ifs" 8744 ;; 8745 esac 8746else 8747 pic_mode=default 8748fi 8749 8750 8751test -z "$pic_mode" && pic_mode=default 8752 8753 8754 8755 8756 8757 8758 8759 # Check whether --enable-fast-install was given. 8760if test "${enable_fast_install+set}" = set; then : 8761 enableval=$enable_fast_install; p=${PACKAGE-default} 8762 case $enableval in 8763 yes) enable_fast_install=yes ;; 8764 no) enable_fast_install=no ;; 8765 *) 8766 enable_fast_install=no 8767 # Look at the argument we got. We use all the common list separators. 8768 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8769 for pkg in $enableval; do 8770 IFS="$lt_save_ifs" 8771 if test "X$pkg" = "X$p"; then 8772 enable_fast_install=yes 8773 fi 8774 done 8775 IFS="$lt_save_ifs" 8776 ;; 8777 esac 8778else 8779 enable_fast_install=yes 8780fi 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792# This can be used to rebuild libtool when needed 8793LIBTOOL_DEPS="$ltmain" 8794 8795# Always use our own libtool. 8796LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827test -z "$LN_S" && LN_S="ln -s" 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842if test -n "${ZSH_VERSION+set}" ; then 8843 setopt NO_GLOB_SUBST 8844fi 8845 8846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8847$as_echo_n "checking for objdir... " >&6; } 8848if ${lt_cv_objdir+:} false; then : 8849 $as_echo_n "(cached) " >&6 8850else 8851 rm -f .libs 2>/dev/null 8852mkdir .libs 2>/dev/null 8853if test -d .libs; then 8854 lt_cv_objdir=.libs 8855else 8856 # MS-DOS does not allow filenames that begin with a dot. 8857 lt_cv_objdir=_libs 8858fi 8859rmdir .libs 2>/dev/null 8860fi 8861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8862$as_echo "$lt_cv_objdir" >&6; } 8863objdir=$lt_cv_objdir 8864 8865 8866 8867 8868 8869cat >>confdefs.h <<_ACEOF 8870#define LT_OBJDIR "$lt_cv_objdir/" 8871_ACEOF 8872 8873 8874 8875 8876case $host_os in 8877aix3*) 8878 # AIX sometimes has problems with the GCC collect2 program. For some 8879 # reason, if we set the COLLECT_NAMES environment variable, the problems 8880 # vanish in a puff of smoke. 8881 if test "X${COLLECT_NAMES+set}" != Xset; then 8882 COLLECT_NAMES= 8883 export COLLECT_NAMES 8884 fi 8885 ;; 8886esac 8887 8888# Global variables: 8889ofile=libtool 8890can_build_shared=yes 8891 8892# All known linkers require a `.a' archive for static linking (except MSVC, 8893# which needs '.lib'). 8894libext=a 8895 8896with_gnu_ld="$lt_cv_prog_gnu_ld" 8897 8898old_CC="$CC" 8899old_CFLAGS="$CFLAGS" 8900 8901# Set sane defaults for various variables 8902test -z "$CC" && CC=cc 8903test -z "$LTCC" && LTCC=$CC 8904test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8905test -z "$LD" && LD=ld 8906test -z "$ac_objext" && ac_objext=o 8907 8908for cc_temp in $compiler""; do 8909 case $cc_temp in 8910 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8911 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8912 \-*) ;; 8913 *) break;; 8914 esac 8915done 8916cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8917 8918 8919# Only perform the check for file, if the check method requires it 8920test -z "$MAGIC_CMD" && MAGIC_CMD=file 8921case $deplibs_check_method in 8922file_magic*) 8923 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8925$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8926if ${lt_cv_path_MAGIC_CMD+:} false; then : 8927 $as_echo_n "(cached) " >&6 8928else 8929 case $MAGIC_CMD in 8930[\\/*] | ?:[\\/]*) 8931 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8932 ;; 8933*) 8934 lt_save_MAGIC_CMD="$MAGIC_CMD" 8935 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8936 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8937 for ac_dir in $ac_dummy; do 8938 IFS="$lt_save_ifs" 8939 test -z "$ac_dir" && ac_dir=. 8940 if test -f $ac_dir/${ac_tool_prefix}file; then 8941 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8942 if test -n "$file_magic_test_file"; then 8943 case $deplibs_check_method in 8944 "file_magic "*) 8945 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8946 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8947 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8948 $EGREP "$file_magic_regex" > /dev/null; then 8949 : 8950 else 8951 cat <<_LT_EOF 1>&2 8952 8953*** Warning: the command libtool uses to detect shared libraries, 8954*** $file_magic_cmd, produces output that libtool cannot recognize. 8955*** The result is that libtool may fail to recognize shared libraries 8956*** as such. This will affect the creation of libtool libraries that 8957*** depend on shared libraries, but programs linked with such libtool 8958*** libraries will work regardless of this problem. Nevertheless, you 8959*** may want to report the problem to your system manager and/or to 8960*** bug-libtool@gnu.org 8961 8962_LT_EOF 8963 fi ;; 8964 esac 8965 fi 8966 break 8967 fi 8968 done 8969 IFS="$lt_save_ifs" 8970 MAGIC_CMD="$lt_save_MAGIC_CMD" 8971 ;; 8972esac 8973fi 8974 8975MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8976if test -n "$MAGIC_CMD"; then 8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8978$as_echo "$MAGIC_CMD" >&6; } 8979else 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8981$as_echo "no" >&6; } 8982fi 8983 8984 8985 8986 8987 8988if test -z "$lt_cv_path_MAGIC_CMD"; then 8989 if test -n "$ac_tool_prefix"; then 8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8991$as_echo_n "checking for file... " >&6; } 8992if ${lt_cv_path_MAGIC_CMD+:} false; then : 8993 $as_echo_n "(cached) " >&6 8994else 8995 case $MAGIC_CMD in 8996[\\/*] | ?:[\\/]*) 8997 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8998 ;; 8999*) 9000 lt_save_MAGIC_CMD="$MAGIC_CMD" 9001 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9002 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9003 for ac_dir in $ac_dummy; do 9004 IFS="$lt_save_ifs" 9005 test -z "$ac_dir" && ac_dir=. 9006 if test -f $ac_dir/file; then 9007 lt_cv_path_MAGIC_CMD="$ac_dir/file" 9008 if test -n "$file_magic_test_file"; then 9009 case $deplibs_check_method in 9010 "file_magic "*) 9011 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9012 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9013 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9014 $EGREP "$file_magic_regex" > /dev/null; then 9015 : 9016 else 9017 cat <<_LT_EOF 1>&2 9018 9019*** Warning: the command libtool uses to detect shared libraries, 9020*** $file_magic_cmd, produces output that libtool cannot recognize. 9021*** The result is that libtool may fail to recognize shared libraries 9022*** as such. This will affect the creation of libtool libraries that 9023*** depend on shared libraries, but programs linked with such libtool 9024*** libraries will work regardless of this problem. Nevertheless, you 9025*** may want to report the problem to your system manager and/or to 9026*** bug-libtool@gnu.org 9027 9028_LT_EOF 9029 fi ;; 9030 esac 9031 fi 9032 break 9033 fi 9034 done 9035 IFS="$lt_save_ifs" 9036 MAGIC_CMD="$lt_save_MAGIC_CMD" 9037 ;; 9038esac 9039fi 9040 9041MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9042if test -n "$MAGIC_CMD"; then 9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9044$as_echo "$MAGIC_CMD" >&6; } 9045else 9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9047$as_echo "no" >&6; } 9048fi 9049 9050 9051 else 9052 MAGIC_CMD=: 9053 fi 9054fi 9055 9056 fi 9057 ;; 9058esac 9059 9060# Use C for the default configuration in the libtool script 9061 9062lt_save_CC="$CC" 9063ac_ext=c 9064ac_cpp='$CPP $CPPFLAGS' 9065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9067ac_compiler_gnu=$ac_cv_c_compiler_gnu 9068 9069 9070# Source file extension for C test sources. 9071ac_ext=c 9072 9073# Object file extension for compiled C test sources. 9074objext=o 9075objext=$objext 9076 9077# Code to be used in simple compile tests 9078lt_simple_compile_test_code="int some_variable = 0;" 9079 9080# Code to be used in simple link tests 9081lt_simple_link_test_code='int main(){return(0);}' 9082 9083 9084 9085 9086 9087 9088 9089# If no C compiler was specified, use CC. 9090LTCC=${LTCC-"$CC"} 9091 9092# If no C compiler flags were specified, use CFLAGS. 9093LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9094 9095# Allow CC to be a program name with arguments. 9096compiler=$CC 9097 9098# Save the default compiler, since it gets overwritten when the other 9099# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9100compiler_DEFAULT=$CC 9101 9102# save warnings/boilerplate of simple test code 9103ac_outfile=conftest.$ac_objext 9104echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9105eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9106_lt_compiler_boilerplate=`cat conftest.err` 9107$RM conftest* 9108 9109ac_outfile=conftest.$ac_objext 9110echo "$lt_simple_link_test_code" >conftest.$ac_ext 9111eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9112_lt_linker_boilerplate=`cat conftest.err` 9113$RM -r conftest* 9114 9115 9116## CAVEAT EMPTOR: 9117## There is no encapsulation within the following macros, do not change 9118## the running order or otherwise move them around unless you know exactly 9119## what you are doing... 9120if test -n "$compiler"; then 9121 9122lt_prog_compiler_no_builtin_flag= 9123 9124if test "$GCC" = yes; then 9125 case $cc_basename in 9126 nvcc*) 9127 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9128 *) 9129 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9130 esac 9131 9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9133$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9134if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9135 $as_echo_n "(cached) " >&6 9136else 9137 lt_cv_prog_compiler_rtti_exceptions=no 9138 ac_outfile=conftest.$ac_objext 9139 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9140 lt_compiler_flag="-fno-rtti -fno-exceptions" 9141 # Insert the option either (1) after the last *FLAGS variable, or 9142 # (2) before a word containing "conftest.", or (3) at the end. 9143 # Note that $ac_compile itself does not contain backslashes and begins 9144 # with a dollar sign (not a hyphen), so the echo should work correctly. 9145 # The option is referenced via a variable to avoid confusing sed. 9146 lt_compile=`echo "$ac_compile" | $SED \ 9147 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9149 -e 's:$: $lt_compiler_flag:'` 9150 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9151 (eval "$lt_compile" 2>conftest.err) 9152 ac_status=$? 9153 cat conftest.err >&5 9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9155 if (exit $ac_status) && test -s "$ac_outfile"; then 9156 # The compiler can only warn and ignore the option if not recognized 9157 # So say no if there are warnings other than the usual output. 9158 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9159 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9160 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9161 lt_cv_prog_compiler_rtti_exceptions=yes 9162 fi 9163 fi 9164 $RM conftest* 9165 9166fi 9167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9168$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9169 9170if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9171 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9172else 9173 : 9174fi 9175 9176fi 9177 9178 9179 9180 9181 9182 9183 lt_prog_compiler_wl= 9184lt_prog_compiler_pic= 9185lt_prog_compiler_static= 9186 9187 9188 if test "$GCC" = yes; then 9189 lt_prog_compiler_wl='-Wl,' 9190 lt_prog_compiler_static='-static' 9191 9192 case $host_os in 9193 aix*) 9194 # All AIX code is PIC. 9195 if test "$host_cpu" = ia64; then 9196 # AIX 5 now supports IA64 processor 9197 lt_prog_compiler_static='-Bstatic' 9198 fi 9199 ;; 9200 9201 amigaos*) 9202 case $host_cpu in 9203 powerpc) 9204 # see comment about AmigaOS4 .so support 9205 lt_prog_compiler_pic='-fPIC' 9206 ;; 9207 m68k) 9208 # FIXME: we need at least 68020 code to build shared libraries, but 9209 # adding the `-m68020' flag to GCC prevents building anything better, 9210 # like `-m68040'. 9211 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9212 ;; 9213 esac 9214 ;; 9215 9216 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9217 # PIC is the default for these OSes. 9218 ;; 9219 9220 mingw* | cygwin* | pw32* | os2* | cegcc*) 9221 # This hack is so that the source file can tell whether it is being 9222 # built for inclusion in a dll (and should export symbols for example). 9223 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9224 # (--disable-auto-import) libraries 9225 lt_prog_compiler_pic='-DDLL_EXPORT' 9226 ;; 9227 9228 darwin* | rhapsody*) 9229 # PIC is the default on this platform 9230 # Common symbols not allowed in MH_DYLIB files 9231 lt_prog_compiler_pic='-fno-common' 9232 ;; 9233 9234 haiku*) 9235 # PIC is the default for Haiku. 9236 # The "-static" flag exists, but is broken. 9237 lt_prog_compiler_static= 9238 ;; 9239 9240 hpux*) 9241 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9242 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9243 # sets the default TLS model and affects inlining. 9244 case $host_cpu in 9245 hppa*64*) 9246 # +Z the default 9247 ;; 9248 *) 9249 lt_prog_compiler_pic='-fPIC' 9250 ;; 9251 esac 9252 ;; 9253 9254 interix[3-9]*) 9255 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9256 # Instead, we relocate shared libraries at runtime. 9257 ;; 9258 9259 msdosdjgpp*) 9260 # Just because we use GCC doesn't mean we suddenly get shared libraries 9261 # on systems that don't support them. 9262 lt_prog_compiler_can_build_shared=no 9263 enable_shared=no 9264 ;; 9265 9266 *nto* | *qnx*) 9267 # QNX uses GNU C++, but need to define -shared option too, otherwise 9268 # it will coredump. 9269 lt_prog_compiler_pic='-fPIC -shared' 9270 ;; 9271 9272 sysv4*MP*) 9273 if test -d /usr/nec; then 9274 lt_prog_compiler_pic=-Kconform_pic 9275 fi 9276 ;; 9277 9278 *) 9279 lt_prog_compiler_pic='-fPIC' 9280 ;; 9281 esac 9282 9283 case $cc_basename in 9284 nvcc*) # Cuda Compiler Driver 2.2 9285 lt_prog_compiler_wl='-Xlinker ' 9286 if test -n "$lt_prog_compiler_pic"; then 9287 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9288 fi 9289 ;; 9290 esac 9291 else 9292 # PORTME Check for flag to pass linker flags through the system compiler. 9293 case $host_os in 9294 aix*) 9295 lt_prog_compiler_wl='-Wl,' 9296 if test "$host_cpu" = ia64; then 9297 # AIX 5 now supports IA64 processor 9298 lt_prog_compiler_static='-Bstatic' 9299 else 9300 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9301 fi 9302 ;; 9303 9304 mingw* | cygwin* | pw32* | os2* | cegcc*) 9305 # This hack is so that the source file can tell whether it is being 9306 # built for inclusion in a dll (and should export symbols for example). 9307 lt_prog_compiler_pic='-DDLL_EXPORT' 9308 ;; 9309 9310 hpux9* | hpux10* | hpux11*) 9311 lt_prog_compiler_wl='-Wl,' 9312 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9313 # not for PA HP-UX. 9314 case $host_cpu in 9315 hppa*64*|ia64*) 9316 # +Z the default 9317 ;; 9318 *) 9319 lt_prog_compiler_pic='+Z' 9320 ;; 9321 esac 9322 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9323 lt_prog_compiler_static='${wl}-a ${wl}archive' 9324 ;; 9325 9326 irix5* | irix6* | nonstopux*) 9327 lt_prog_compiler_wl='-Wl,' 9328 # PIC (with -KPIC) is the default. 9329 lt_prog_compiler_static='-non_shared' 9330 ;; 9331 9332 linux* | k*bsd*-gnu | kopensolaris*-gnu) 9333 case $cc_basename in 9334 # old Intel for x86_64 which still supported -KPIC. 9335 ecc*) 9336 lt_prog_compiler_wl='-Wl,' 9337 lt_prog_compiler_pic='-KPIC' 9338 lt_prog_compiler_static='-static' 9339 ;; 9340 # icc used to be incompatible with GCC. 9341 # ICC 10 doesn't accept -KPIC any more. 9342 icc* | ifort*) 9343 lt_prog_compiler_wl='-Wl,' 9344 lt_prog_compiler_pic='-fPIC' 9345 lt_prog_compiler_static='-static' 9346 ;; 9347 # Lahey Fortran 8.1. 9348 lf95*) 9349 lt_prog_compiler_wl='-Wl,' 9350 lt_prog_compiler_pic='--shared' 9351 lt_prog_compiler_static='--static' 9352 ;; 9353 nagfor*) 9354 # NAG Fortran compiler 9355 lt_prog_compiler_wl='-Wl,-Wl,,' 9356 lt_prog_compiler_pic='-PIC' 9357 lt_prog_compiler_static='-Bstatic' 9358 ;; 9359 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9360 # Portland Group compilers (*not* the Pentium gcc compiler, 9361 # which looks to be a dead project) 9362 lt_prog_compiler_wl='-Wl,' 9363 lt_prog_compiler_pic='-fpic' 9364 lt_prog_compiler_static='-Bstatic' 9365 ;; 9366 ccc*) 9367 lt_prog_compiler_wl='-Wl,' 9368 # All Alpha code is PIC. 9369 lt_prog_compiler_static='-non_shared' 9370 ;; 9371 xl* | bgxl* | bgf* | mpixl*) 9372 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9373 lt_prog_compiler_wl='-Wl,' 9374 lt_prog_compiler_pic='-qpic' 9375 lt_prog_compiler_static='-qstaticlink' 9376 ;; 9377 *) 9378 case `$CC -V 2>&1 | sed 5q` in 9379 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9380 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9381 lt_prog_compiler_pic='-KPIC' 9382 lt_prog_compiler_static='-Bstatic' 9383 lt_prog_compiler_wl='' 9384 ;; 9385 *Sun\ F* | *Sun*Fortran*) 9386 lt_prog_compiler_pic='-KPIC' 9387 lt_prog_compiler_static='-Bstatic' 9388 lt_prog_compiler_wl='-Qoption ld ' 9389 ;; 9390 *Sun\ C*) 9391 # Sun C 5.9 9392 lt_prog_compiler_pic='-KPIC' 9393 lt_prog_compiler_static='-Bstatic' 9394 lt_prog_compiler_wl='-Wl,' 9395 ;; 9396 *Intel*\ [CF]*Compiler*) 9397 lt_prog_compiler_wl='-Wl,' 9398 lt_prog_compiler_pic='-fPIC' 9399 lt_prog_compiler_static='-static' 9400 ;; 9401 *Portland\ Group*) 9402 lt_prog_compiler_wl='-Wl,' 9403 lt_prog_compiler_pic='-fpic' 9404 lt_prog_compiler_static='-Bstatic' 9405 ;; 9406 esac 9407 ;; 9408 esac 9409 ;; 9410 9411 newsos6) 9412 lt_prog_compiler_pic='-KPIC' 9413 lt_prog_compiler_static='-Bstatic' 9414 ;; 9415 9416 *nto* | *qnx*) 9417 # QNX uses GNU C++, but need to define -shared option too, otherwise 9418 # it will coredump. 9419 lt_prog_compiler_pic='-fPIC -shared' 9420 ;; 9421 9422 osf3* | osf4* | osf5*) 9423 lt_prog_compiler_wl='-Wl,' 9424 # All OSF/1 code is PIC. 9425 lt_prog_compiler_static='-non_shared' 9426 ;; 9427 9428 rdos*) 9429 lt_prog_compiler_static='-non_shared' 9430 ;; 9431 9432 solaris*) 9433 lt_prog_compiler_pic='-KPIC' 9434 lt_prog_compiler_static='-Bstatic' 9435 case $cc_basename in 9436 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9437 lt_prog_compiler_wl='-Qoption ld ';; 9438 *) 9439 lt_prog_compiler_wl='-Wl,';; 9440 esac 9441 ;; 9442 9443 sunos4*) 9444 lt_prog_compiler_wl='-Qoption ld ' 9445 lt_prog_compiler_pic='-PIC' 9446 lt_prog_compiler_static='-Bstatic' 9447 ;; 9448 9449 sysv4 | sysv4.2uw2* | sysv4.3*) 9450 lt_prog_compiler_wl='-Wl,' 9451 lt_prog_compiler_pic='-KPIC' 9452 lt_prog_compiler_static='-Bstatic' 9453 ;; 9454 9455 sysv4*MP*) 9456 if test -d /usr/nec ;then 9457 lt_prog_compiler_pic='-Kconform_pic' 9458 lt_prog_compiler_static='-Bstatic' 9459 fi 9460 ;; 9461 9462 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9463 lt_prog_compiler_wl='-Wl,' 9464 lt_prog_compiler_pic='-KPIC' 9465 lt_prog_compiler_static='-Bstatic' 9466 ;; 9467 9468 unicos*) 9469 lt_prog_compiler_wl='-Wl,' 9470 lt_prog_compiler_can_build_shared=no 9471 ;; 9472 9473 uts4*) 9474 lt_prog_compiler_pic='-pic' 9475 lt_prog_compiler_static='-Bstatic' 9476 ;; 9477 9478 *) 9479 lt_prog_compiler_can_build_shared=no 9480 ;; 9481 esac 9482 fi 9483 9484case $host_os in 9485 # For platforms which do not support PIC, -DPIC is meaningless: 9486 *djgpp*) 9487 lt_prog_compiler_pic= 9488 ;; 9489 *) 9490 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9491 ;; 9492esac 9493 9494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9495$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9496if ${lt_cv_prog_compiler_pic+:} false; then : 9497 $as_echo_n "(cached) " >&6 9498else 9499 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9500fi 9501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9502$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9503lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9504 9505# 9506# Check to make sure the PIC flag actually works. 9507# 9508if test -n "$lt_prog_compiler_pic"; then 9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9510$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9511if ${lt_cv_prog_compiler_pic_works+:} false; then : 9512 $as_echo_n "(cached) " >&6 9513else 9514 lt_cv_prog_compiler_pic_works=no 9515 ac_outfile=conftest.$ac_objext 9516 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9517 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9518 # Insert the option either (1) after the last *FLAGS variable, or 9519 # (2) before a word containing "conftest.", or (3) at the end. 9520 # Note that $ac_compile itself does not contain backslashes and begins 9521 # with a dollar sign (not a hyphen), so the echo should work correctly. 9522 # The option is referenced via a variable to avoid confusing sed. 9523 lt_compile=`echo "$ac_compile" | $SED \ 9524 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9525 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9526 -e 's:$: $lt_compiler_flag:'` 9527 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9528 (eval "$lt_compile" 2>conftest.err) 9529 ac_status=$? 9530 cat conftest.err >&5 9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9532 if (exit $ac_status) && test -s "$ac_outfile"; then 9533 # The compiler can only warn and ignore the option if not recognized 9534 # So say no if there are warnings other than the usual output. 9535 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9536 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9537 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9538 lt_cv_prog_compiler_pic_works=yes 9539 fi 9540 fi 9541 $RM conftest* 9542 9543fi 9544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9545$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9546 9547if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9548 case $lt_prog_compiler_pic in 9549 "" | " "*) ;; 9550 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9551 esac 9552else 9553 lt_prog_compiler_pic= 9554 lt_prog_compiler_can_build_shared=no 9555fi 9556 9557fi 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569# 9570# Check to make sure the static flag actually works. 9571# 9572wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9574$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9575if ${lt_cv_prog_compiler_static_works+:} false; then : 9576 $as_echo_n "(cached) " >&6 9577else 9578 lt_cv_prog_compiler_static_works=no 9579 save_LDFLAGS="$LDFLAGS" 9580 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9581 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9582 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9583 # The linker can only warn and ignore the option if not recognized 9584 # So say no if there are warnings 9585 if test -s conftest.err; then 9586 # Append any errors to the config.log. 9587 cat conftest.err 1>&5 9588 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9589 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9590 if diff conftest.exp conftest.er2 >/dev/null; then 9591 lt_cv_prog_compiler_static_works=yes 9592 fi 9593 else 9594 lt_cv_prog_compiler_static_works=yes 9595 fi 9596 fi 9597 $RM -r conftest* 9598 LDFLAGS="$save_LDFLAGS" 9599 9600fi 9601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9602$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9603 9604if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9605 : 9606else 9607 lt_prog_compiler_static= 9608fi 9609 9610 9611 9612 9613 9614 9615 9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9617$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9618if ${lt_cv_prog_compiler_c_o+:} false; then : 9619 $as_echo_n "(cached) " >&6 9620else 9621 lt_cv_prog_compiler_c_o=no 9622 $RM -r conftest 2>/dev/null 9623 mkdir conftest 9624 cd conftest 9625 mkdir out 9626 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9627 9628 lt_compiler_flag="-o out/conftest2.$ac_objext" 9629 # Insert the option either (1) after the last *FLAGS variable, or 9630 # (2) before a word containing "conftest.", or (3) at the end. 9631 # Note that $ac_compile itself does not contain backslashes and begins 9632 # with a dollar sign (not a hyphen), so the echo should work correctly. 9633 lt_compile=`echo "$ac_compile" | $SED \ 9634 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9635 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9636 -e 's:$: $lt_compiler_flag:'` 9637 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9638 (eval "$lt_compile" 2>out/conftest.err) 9639 ac_status=$? 9640 cat out/conftest.err >&5 9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9642 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9643 then 9644 # The compiler can only warn and ignore the option if not recognized 9645 # So say no if there are warnings 9646 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9647 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9648 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9649 lt_cv_prog_compiler_c_o=yes 9650 fi 9651 fi 9652 chmod u+w . 2>&5 9653 $RM conftest* 9654 # SGI C++ compiler will create directory out/ii_files/ for 9655 # template instantiation 9656 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9657 $RM out/* && rmdir out 9658 cd .. 9659 $RM -r conftest 9660 $RM conftest* 9661 9662fi 9663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9664$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9665 9666 9667 9668 9669 9670 9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9672$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9673if ${lt_cv_prog_compiler_c_o+:} false; then : 9674 $as_echo_n "(cached) " >&6 9675else 9676 lt_cv_prog_compiler_c_o=no 9677 $RM -r conftest 2>/dev/null 9678 mkdir conftest 9679 cd conftest 9680 mkdir out 9681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9682 9683 lt_compiler_flag="-o out/conftest2.$ac_objext" 9684 # Insert the option either (1) after the last *FLAGS variable, or 9685 # (2) before a word containing "conftest.", or (3) at the end. 9686 # Note that $ac_compile itself does not contain backslashes and begins 9687 # with a dollar sign (not a hyphen), so the echo should work correctly. 9688 lt_compile=`echo "$ac_compile" | $SED \ 9689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9691 -e 's:$: $lt_compiler_flag:'` 9692 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9693 (eval "$lt_compile" 2>out/conftest.err) 9694 ac_status=$? 9695 cat out/conftest.err >&5 9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9697 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9698 then 9699 # The compiler can only warn and ignore the option if not recognized 9700 # So say no if there are warnings 9701 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9702 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9703 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9704 lt_cv_prog_compiler_c_o=yes 9705 fi 9706 fi 9707 chmod u+w . 2>&5 9708 $RM conftest* 9709 # SGI C++ compiler will create directory out/ii_files/ for 9710 # template instantiation 9711 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9712 $RM out/* && rmdir out 9713 cd .. 9714 $RM -r conftest 9715 $RM conftest* 9716 9717fi 9718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9719$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9720 9721 9722 9723 9724hard_links="nottested" 9725if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9726 # do not overwrite the value of need_locks provided by the user 9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9728$as_echo_n "checking if we can lock with hard links... " >&6; } 9729 hard_links=yes 9730 $RM conftest* 9731 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9732 touch conftest.a 9733 ln conftest.a conftest.b 2>&5 || hard_links=no 9734 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9736$as_echo "$hard_links" >&6; } 9737 if test "$hard_links" = no; then 9738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9739$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9740 need_locks=warn 9741 fi 9742else 9743 need_locks=no 9744fi 9745 9746 9747 9748 9749 9750 9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9752$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9753 9754 runpath_var= 9755 allow_undefined_flag= 9756 always_export_symbols=no 9757 archive_cmds= 9758 archive_expsym_cmds= 9759 compiler_needs_object=no 9760 enable_shared_with_static_runtimes=no 9761 export_dynamic_flag_spec= 9762 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9763 hardcode_automatic=no 9764 hardcode_direct=no 9765 hardcode_direct_absolute=no 9766 hardcode_libdir_flag_spec= 9767 hardcode_libdir_separator= 9768 hardcode_minus_L=no 9769 hardcode_shlibpath_var=unsupported 9770 inherit_rpath=no 9771 link_all_deplibs=unknown 9772 module_cmds= 9773 module_expsym_cmds= 9774 old_archive_from_new_cmds= 9775 old_archive_from_expsyms_cmds= 9776 thread_safe_flag_spec= 9777 whole_archive_flag_spec= 9778 # include_expsyms should be a list of space-separated symbols to be *always* 9779 # included in the symbol list 9780 include_expsyms= 9781 # exclude_expsyms can be an extended regexp of symbols to exclude 9782 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9783 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9784 # as well as any symbol that contains `d'. 9785 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9786 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9787 # platforms (ab)use it in PIC code, but their linkers get confused if 9788 # the symbol is explicitly referenced. Since portable code cannot 9789 # rely on this symbol name, it's probably fine to never include it in 9790 # preloaded symbol tables. 9791 # Exclude shared library initialization/finalization symbols. 9792 extract_expsyms_cmds= 9793 9794 case $host_os in 9795 cygwin* | mingw* | pw32* | cegcc*) 9796 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9797 # When not using gcc, we currently assume that we are using 9798 # Microsoft Visual C++. 9799 if test "$GCC" != yes; then 9800 with_gnu_ld=no 9801 fi 9802 ;; 9803 interix*) 9804 # we just hope/assume this is gcc and not c89 (= MSVC++) 9805 with_gnu_ld=yes 9806 ;; 9807 openbsd*) 9808 with_gnu_ld=no 9809 ;; 9810 esac 9811 9812 ld_shlibs=yes 9813 9814 # On some targets, GNU ld is compatible enough with the native linker 9815 # that we're better off using the native interface for both. 9816 lt_use_gnu_ld_interface=no 9817 if test "$with_gnu_ld" = yes; then 9818 case $host_os in 9819 aix*) 9820 # The AIX port of GNU ld has always aspired to compatibility 9821 # with the native linker. However, as the warning in the GNU ld 9822 # block says, versions before 2.19.5* couldn't really create working 9823 # shared libraries, regardless of the interface used. 9824 case `$LD -v 2>&1` in 9825 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9826 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9827 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9828 *) 9829 lt_use_gnu_ld_interface=yes 9830 ;; 9831 esac 9832 ;; 9833 *) 9834 lt_use_gnu_ld_interface=yes 9835 ;; 9836 esac 9837 fi 9838 9839 if test "$lt_use_gnu_ld_interface" = yes; then 9840 # If archive_cmds runs LD, not CC, wlarc should be empty 9841 wlarc='${wl}' 9842 9843 # Set some defaults for GNU ld with shared library support. These 9844 # are reset later if shared libraries are not supported. Putting them 9845 # here allows them to be overridden if necessary. 9846 runpath_var=LD_RUN_PATH 9847 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9848 export_dynamic_flag_spec='${wl}--export-dynamic' 9849 # ancient GNU ld didn't support --whole-archive et. al. 9850 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9851 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9852 else 9853 whole_archive_flag_spec= 9854 fi 9855 supports_anon_versioning=no 9856 case `$LD -v 2>&1` in 9857 *GNU\ gold*) supports_anon_versioning=yes ;; 9858 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9859 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9860 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9861 *\ 2.11.*) ;; # other 2.11 versions 9862 *) supports_anon_versioning=yes ;; 9863 esac 9864 9865 # See if GNU ld supports shared libraries. 9866 case $host_os in 9867 aix[3-9]*) 9868 # On AIX/PPC, the GNU linker is very broken 9869 if test "$host_cpu" != ia64; then 9870 ld_shlibs=no 9871 cat <<_LT_EOF 1>&2 9872 9873*** Warning: the GNU linker, at least up to release 2.19, is reported 9874*** to be unable to reliably create shared libraries on AIX. 9875*** Therefore, libtool is disabling shared libraries support. If you 9876*** really care for shared libraries, you may want to install binutils 9877*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9878*** You will then need to restart the configuration process. 9879 9880_LT_EOF 9881 fi 9882 ;; 9883 9884 amigaos*) 9885 case $host_cpu in 9886 powerpc) 9887 # see comment about AmigaOS4 .so support 9888 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9889 archive_expsym_cmds='' 9890 ;; 9891 m68k) 9892 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 9893 hardcode_libdir_flag_spec='-L$libdir' 9894 hardcode_minus_L=yes 9895 ;; 9896 esac 9897 ;; 9898 9899 beos*) 9900 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9901 allow_undefined_flag=unsupported 9902 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9903 # support --undefined. This deserves some investigation. FIXME 9904 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9905 else 9906 ld_shlibs=no 9907 fi 9908 ;; 9909 9910 cygwin* | mingw* | pw32* | cegcc*) 9911 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9912 # as there is no search path for DLLs. 9913 hardcode_libdir_flag_spec='-L$libdir' 9914 export_dynamic_flag_spec='${wl}--export-all-symbols' 9915 allow_undefined_flag=unsupported 9916 always_export_symbols=no 9917 enable_shared_with_static_runtimes=yes 9918 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 9919 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9920 9921 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9922 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9923 # If the export-symbols file already is a .def file (1st line 9924 # is EXPORTS), use it as is; otherwise, prepend... 9925 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9926 cp $export_symbols $output_objdir/$soname.def; 9927 else 9928 echo EXPORTS > $output_objdir/$soname.def; 9929 cat $export_symbols >> $output_objdir/$soname.def; 9930 fi~ 9931 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9932 else 9933 ld_shlibs=no 9934 fi 9935 ;; 9936 9937 haiku*) 9938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9939 link_all_deplibs=yes 9940 ;; 9941 9942 interix[3-9]*) 9943 hardcode_direct=no 9944 hardcode_shlibpath_var=no 9945 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9946 export_dynamic_flag_spec='${wl}-E' 9947 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9948 # Instead, shared libraries are loaded at an image base (0x10000000 by 9949 # default) and relocated if they conflict, which is a slow very memory 9950 # consuming and fragmenting process. To avoid this, we pick a random, 9951 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9952 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9953 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9954 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9955 ;; 9956 9957 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9958 tmp_diet=no 9959 if test "$host_os" = linux-dietlibc; then 9960 case $cc_basename in 9961 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9962 esac 9963 fi 9964 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9965 && test "$tmp_diet" = no 9966 then 9967 tmp_addflag=' $pic_flag' 9968 tmp_sharedflag='-shared' 9969 case $cc_basename,$host_cpu in 9970 pgcc*) # Portland Group C compiler 9971 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9972 tmp_addflag=' $pic_flag' 9973 ;; 9974 pgf77* | pgf90* | pgf95* | pgfortran*) 9975 # Portland Group f77 and f90 compilers 9976 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9977 tmp_addflag=' $pic_flag -Mnomain' ;; 9978 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9979 tmp_addflag=' -i_dynamic' ;; 9980 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9981 tmp_addflag=' -i_dynamic -nofor_main' ;; 9982 ifc* | ifort*) # Intel Fortran compiler 9983 tmp_addflag=' -nofor_main' ;; 9984 lf95*) # Lahey Fortran 8.1 9985 whole_archive_flag_spec= 9986 tmp_sharedflag='--shared' ;; 9987 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9988 tmp_sharedflag='-qmkshrobj' 9989 tmp_addflag= ;; 9990 nvcc*) # Cuda Compiler Driver 2.2 9991 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9992 compiler_needs_object=yes 9993 ;; 9994 esac 9995 case `$CC -V 2>&1 | sed 5q` in 9996 *Sun\ C*) # Sun C 5.9 9997 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9998 compiler_needs_object=yes 9999 tmp_sharedflag='-G' ;; 10000 *Sun\ F*) # Sun Fortran 8.3 10001 tmp_sharedflag='-G' ;; 10002 esac 10003 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10004 10005 if test "x$supports_anon_versioning" = xyes; then 10006 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10007 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10008 echo "local: *; };" >> $output_objdir/$libname.ver~ 10009 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 10010 fi 10011 10012 case $cc_basename in 10013 xlf* | bgf* | bgxlf* | mpixlf*) 10014 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10015 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10017 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10018 if test "x$supports_anon_versioning" = xyes; then 10019 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10020 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10021 echo "local: *; };" >> $output_objdir/$libname.ver~ 10022 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10023 fi 10024 ;; 10025 esac 10026 else 10027 ld_shlibs=no 10028 fi 10029 ;; 10030 10031 netbsd*) 10032 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10033 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10034 wlarc= 10035 else 10036 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10037 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10038 fi 10039 ;; 10040 10041 solaris*) 10042 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10043 ld_shlibs=no 10044 cat <<_LT_EOF 1>&2 10045 10046*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10047*** create shared libraries on Solaris systems. Therefore, libtool 10048*** is disabling shared libraries support. We urge you to upgrade GNU 10049*** binutils to release 2.9.1 or newer. Another option is to modify 10050*** your PATH or compiler configuration so that the native linker is 10051*** used, and then restart. 10052 10053_LT_EOF 10054 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10055 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10056 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10057 else 10058 ld_shlibs=no 10059 fi 10060 ;; 10061 10062 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10063 case `$LD -v 2>&1` in 10064 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10065 ld_shlibs=no 10066 cat <<_LT_EOF 1>&2 10067 10068*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10069*** reliably create shared libraries on SCO systems. Therefore, libtool 10070*** is disabling shared libraries support. We urge you to upgrade GNU 10071*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10072*** your PATH or compiler configuration so that the native linker is 10073*** used, and then restart. 10074 10075_LT_EOF 10076 ;; 10077 *) 10078 # For security reasons, it is highly recommended that you always 10079 # use absolute paths for naming shared libraries, and exclude the 10080 # DT_RUNPATH tag from executables and libraries. But doing so 10081 # requires that you compile everything twice, which is a pain. 10082 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10083 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10084 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10085 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10086 else 10087 ld_shlibs=no 10088 fi 10089 ;; 10090 esac 10091 ;; 10092 10093 sunos4*) 10094 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10095 wlarc= 10096 hardcode_direct=yes 10097 hardcode_shlibpath_var=no 10098 ;; 10099 10100 *) 10101 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10102 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10103 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10104 else 10105 ld_shlibs=no 10106 fi 10107 ;; 10108 esac 10109 10110 if test "$ld_shlibs" = no; then 10111 runpath_var= 10112 hardcode_libdir_flag_spec= 10113 export_dynamic_flag_spec= 10114 whole_archive_flag_spec= 10115 fi 10116 else 10117 # PORTME fill in a description of your system's linker (not GNU ld) 10118 case $host_os in 10119 aix3*) 10120 allow_undefined_flag=unsupported 10121 always_export_symbols=yes 10122 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 10123 # Note: this linker hardcodes the directories in LIBPATH if there 10124 # are no directories specified by -L. 10125 hardcode_minus_L=yes 10126 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 10127 # Neither direct hardcoding nor static linking is supported with a 10128 # broken collect2. 10129 hardcode_direct=unsupported 10130 fi 10131 ;; 10132 10133 aix[4-9]*) 10134 if test "$host_cpu" = ia64; then 10135 # On IA64, the linker does run time linking by default, so we don't 10136 # have to do anything special. 10137 aix_use_runtimelinking=no 10138 exp_sym_flag='-Bexport' 10139 no_entry_flag="" 10140 else 10141 # If we're using GNU nm, then we don't want the "-C" option. 10142 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10143 # Also, AIX nm treats weak defined symbols like other global 10144 # defined symbols, whereas GNU nm marks them as "W". 10145 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10146 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10147 else 10148 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10149 fi 10150 aix_use_runtimelinking=no 10151 10152 # Test if we are trying to use run time linking or normal 10153 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10154 # need to do runtime linking. 10155 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10156 for ld_flag in $LDFLAGS; do 10157 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10158 aix_use_runtimelinking=yes 10159 break 10160 fi 10161 done 10162 ;; 10163 esac 10164 10165 exp_sym_flag='-bexport' 10166 no_entry_flag='-bnoentry' 10167 fi 10168 10169 # When large executables or shared objects are built, AIX ld can 10170 # have problems creating the table of contents. If linking a library 10171 # or program results in "error TOC overflow" add -mminimal-toc to 10172 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10173 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10174 10175 archive_cmds='' 10176 hardcode_direct=yes 10177 hardcode_direct_absolute=yes 10178 hardcode_libdir_separator=':' 10179 link_all_deplibs=yes 10180 file_list_spec='${wl}-f,' 10181 10182 if test "$GCC" = yes; then 10183 case $host_os in aix4.[012]|aix4.[012].*) 10184 # We only want to do this on AIX 4.2 and lower, the check 10185 # below for broken collect2 doesn't work under 4.3+ 10186 collect2name=`${CC} -print-prog-name=collect2` 10187 if test -f "$collect2name" && 10188 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10189 then 10190 # We have reworked collect2 10191 : 10192 else 10193 # We have old collect2 10194 hardcode_direct=unsupported 10195 # It fails to find uninstalled libraries when the uninstalled 10196 # path is not listed in the libpath. Setting hardcode_minus_L 10197 # to unsupported forces relinking 10198 hardcode_minus_L=yes 10199 hardcode_libdir_flag_spec='-L$libdir' 10200 hardcode_libdir_separator= 10201 fi 10202 ;; 10203 esac 10204 shared_flag='-shared' 10205 if test "$aix_use_runtimelinking" = yes; then 10206 shared_flag="$shared_flag "'${wl}-G' 10207 fi 10208 else 10209 # not using gcc 10210 if test "$host_cpu" = ia64; then 10211 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10212 # chokes on -Wl,-G. The following line is correct: 10213 shared_flag='-G' 10214 else 10215 if test "$aix_use_runtimelinking" = yes; then 10216 shared_flag='${wl}-G' 10217 else 10218 shared_flag='${wl}-bM:SRE' 10219 fi 10220 fi 10221 fi 10222 10223 export_dynamic_flag_spec='${wl}-bexpall' 10224 # It seems that -bexpall does not export symbols beginning with 10225 # underscore (_), so it is better to generate a list of symbols to export. 10226 always_export_symbols=yes 10227 if test "$aix_use_runtimelinking" = yes; then 10228 # Warning - without using the other runtime loading flags (-brtl), 10229 # -berok will link without error, but may produce a broken library. 10230 allow_undefined_flag='-berok' 10231 # Determine the default libpath from the value encoded in an 10232 # empty executable. 10233 if test "${lt_cv_aix_libpath+set}" = set; then 10234 aix_libpath=$lt_cv_aix_libpath 10235else 10236 if ${lt_cv_aix_libpath_+:} false; then : 10237 $as_echo_n "(cached) " >&6 10238else 10239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10240/* end confdefs.h. */ 10241 10242int 10243main () 10244{ 10245 10246 ; 10247 return 0; 10248} 10249_ACEOF 10250if ac_fn_c_try_link "$LINENO"; then : 10251 10252 lt_aix_libpath_sed=' 10253 /Import File Strings/,/^$/ { 10254 /^0/ { 10255 s/^0 *\([^ ]*\) *$/\1/ 10256 p 10257 } 10258 }' 10259 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10260 # Check for a 64-bit object if we didn't find anything. 10261 if test -z "$lt_cv_aix_libpath_"; then 10262 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10263 fi 10264fi 10265rm -f core conftest.err conftest.$ac_objext \ 10266 conftest$ac_exeext conftest.$ac_ext 10267 if test -z "$lt_cv_aix_libpath_"; then 10268 lt_cv_aix_libpath_="/usr/lib:/lib" 10269 fi 10270 10271fi 10272 10273 aix_libpath=$lt_cv_aix_libpath_ 10274fi 10275 10276 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10277 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10278 else 10279 if test "$host_cpu" = ia64; then 10280 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10281 allow_undefined_flag="-z nodefs" 10282 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 10283 else 10284 # Determine the default libpath from the value encoded in an 10285 # empty executable. 10286 if test "${lt_cv_aix_libpath+set}" = set; then 10287 aix_libpath=$lt_cv_aix_libpath 10288else 10289 if ${lt_cv_aix_libpath_+:} false; then : 10290 $as_echo_n "(cached) " >&6 10291else 10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10293/* end confdefs.h. */ 10294 10295int 10296main () 10297{ 10298 10299 ; 10300 return 0; 10301} 10302_ACEOF 10303if ac_fn_c_try_link "$LINENO"; then : 10304 10305 lt_aix_libpath_sed=' 10306 /Import File Strings/,/^$/ { 10307 /^0/ { 10308 s/^0 *\([^ ]*\) *$/\1/ 10309 p 10310 } 10311 }' 10312 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10313 # Check for a 64-bit object if we didn't find anything. 10314 if test -z "$lt_cv_aix_libpath_"; then 10315 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10316 fi 10317fi 10318rm -f core conftest.err conftest.$ac_objext \ 10319 conftest$ac_exeext conftest.$ac_ext 10320 if test -z "$lt_cv_aix_libpath_"; then 10321 lt_cv_aix_libpath_="/usr/lib:/lib" 10322 fi 10323 10324fi 10325 10326 aix_libpath=$lt_cv_aix_libpath_ 10327fi 10328 10329 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10330 # Warning - without using the other run time loading flags, 10331 # -berok will link without error, but may produce a broken library. 10332 no_undefined_flag=' ${wl}-bernotok' 10333 allow_undefined_flag=' ${wl}-berok' 10334 if test "$with_gnu_ld" = yes; then 10335 # We only use this code for GNU lds that support --whole-archive. 10336 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10337 else 10338 # Exported symbols can be pulled into shared objects from archives 10339 whole_archive_flag_spec='$convenience' 10340 fi 10341 archive_cmds_need_lc=yes 10342 # This is similar to how AIX traditionally builds its shared libraries. 10343 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10344 fi 10345 fi 10346 ;; 10347 10348 amigaos*) 10349 case $host_cpu in 10350 powerpc) 10351 # see comment about AmigaOS4 .so support 10352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10353 archive_expsym_cmds='' 10354 ;; 10355 m68k) 10356 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 10357 hardcode_libdir_flag_spec='-L$libdir' 10358 hardcode_minus_L=yes 10359 ;; 10360 esac 10361 ;; 10362 10363 bsdi[45]*) 10364 export_dynamic_flag_spec=-rdynamic 10365 ;; 10366 10367 cygwin* | mingw* | pw32* | cegcc*) 10368 # When not using gcc, we currently assume that we are using 10369 # Microsoft Visual C++. 10370 # hardcode_libdir_flag_spec is actually meaningless, as there is 10371 # no search path for DLLs. 10372 case $cc_basename in 10373 cl*) 10374 # Native MSVC 10375 hardcode_libdir_flag_spec=' ' 10376 allow_undefined_flag=unsupported 10377 always_export_symbols=yes 10378 file_list_spec='@' 10379 # Tell ltmain to make .lib files, not .a files. 10380 libext=lib 10381 # Tell ltmain to make .dll files, not .so files. 10382 shrext_cmds=".dll" 10383 # FIXME: Setting linknames here is a bad hack. 10384 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10385 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10386 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10387 else 10388 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10389 fi~ 10390 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10391 linknames=' 10392 # The linker will not automatically build a static lib if we build a DLL. 10393 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10394 enable_shared_with_static_runtimes=yes 10395 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10396 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10397 # Don't use ranlib 10398 old_postinstall_cmds='chmod 644 $oldlib' 10399 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10400 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10401 case $lt_outputfile in 10402 *.exe|*.EXE) ;; 10403 *) 10404 lt_outputfile="$lt_outputfile.exe" 10405 lt_tool_outputfile="$lt_tool_outputfile.exe" 10406 ;; 10407 esac~ 10408 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10409 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10410 $RM "$lt_outputfile.manifest"; 10411 fi' 10412 ;; 10413 *) 10414 # Assume MSVC wrapper 10415 hardcode_libdir_flag_spec=' ' 10416 allow_undefined_flag=unsupported 10417 # Tell ltmain to make .lib files, not .a files. 10418 libext=lib 10419 # Tell ltmain to make .dll files, not .so files. 10420 shrext_cmds=".dll" 10421 # FIXME: Setting linknames here is a bad hack. 10422 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10423 # The linker will automatically build a .lib file if we build a DLL. 10424 old_archive_from_new_cmds='true' 10425 # FIXME: Should let the user specify the lib program. 10426 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10427 enable_shared_with_static_runtimes=yes 10428 ;; 10429 esac 10430 ;; 10431 10432 darwin* | rhapsody*) 10433 10434 10435 archive_cmds_need_lc=no 10436 hardcode_direct=no 10437 hardcode_automatic=yes 10438 hardcode_shlibpath_var=unsupported 10439 if test "$lt_cv_ld_force_load" = "yes"; then 10440 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 10441 10442 else 10443 whole_archive_flag_spec='' 10444 fi 10445 link_all_deplibs=yes 10446 allow_undefined_flag="$_lt_dar_allow_undefined" 10447 case $cc_basename in 10448 ifort*) _lt_dar_can_shared=yes ;; 10449 *) _lt_dar_can_shared=$GCC ;; 10450 esac 10451 if test "$_lt_dar_can_shared" = "yes"; then 10452 output_verbose_link_cmd=func_echo_all 10453 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10454 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10455 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 10456 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 10457 10458 else 10459 ld_shlibs=no 10460 fi 10461 10462 ;; 10463 10464 dgux*) 10465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10466 hardcode_libdir_flag_spec='-L$libdir' 10467 hardcode_shlibpath_var=no 10468 ;; 10469 10470 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10471 # support. Future versions do this automatically, but an explicit c++rt0.o 10472 # does not break anything, and helps significantly (at the cost of a little 10473 # extra space). 10474 freebsd2.2*) 10475 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10476 hardcode_libdir_flag_spec='-R$libdir' 10477 hardcode_direct=yes 10478 hardcode_shlibpath_var=no 10479 ;; 10480 10481 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10482 freebsd2.*) 10483 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10484 hardcode_direct=yes 10485 hardcode_minus_L=yes 10486 hardcode_shlibpath_var=no 10487 ;; 10488 10489 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10490 freebsd* | dragonfly*) 10491 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10492 hardcode_libdir_flag_spec='-R$libdir' 10493 hardcode_direct=yes 10494 hardcode_shlibpath_var=no 10495 ;; 10496 10497 hpux9*) 10498 if test "$GCC" = yes; then 10499 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10500 else 10501 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10502 fi 10503 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10504 hardcode_libdir_separator=: 10505 hardcode_direct=yes 10506 10507 # hardcode_minus_L: Not really in the search PATH, 10508 # but as the default location of the library. 10509 hardcode_minus_L=yes 10510 export_dynamic_flag_spec='${wl}-E' 10511 ;; 10512 10513 hpux10*) 10514 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10515 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10516 else 10517 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10518 fi 10519 if test "$with_gnu_ld" = no; then 10520 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10521 hardcode_libdir_separator=: 10522 hardcode_direct=yes 10523 hardcode_direct_absolute=yes 10524 export_dynamic_flag_spec='${wl}-E' 10525 # hardcode_minus_L: Not really in the search PATH, 10526 # but as the default location of the library. 10527 hardcode_minus_L=yes 10528 fi 10529 ;; 10530 10531 hpux11*) 10532 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10533 case $host_cpu in 10534 hppa*64*) 10535 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10536 ;; 10537 ia64*) 10538 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10539 ;; 10540 *) 10541 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10542 ;; 10543 esac 10544 else 10545 case $host_cpu in 10546 hppa*64*) 10547 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10548 ;; 10549 ia64*) 10550 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10551 ;; 10552 *) 10553 10554 # Older versions of the 11.00 compiler do not understand -b yet 10555 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10557$as_echo_n "checking if $CC understands -b... " >&6; } 10558if ${lt_cv_prog_compiler__b+:} false; then : 10559 $as_echo_n "(cached) " >&6 10560else 10561 lt_cv_prog_compiler__b=no 10562 save_LDFLAGS="$LDFLAGS" 10563 LDFLAGS="$LDFLAGS -b" 10564 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10565 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10566 # The linker can only warn and ignore the option if not recognized 10567 # So say no if there are warnings 10568 if test -s conftest.err; then 10569 # Append any errors to the config.log. 10570 cat conftest.err 1>&5 10571 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10572 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10573 if diff conftest.exp conftest.er2 >/dev/null; then 10574 lt_cv_prog_compiler__b=yes 10575 fi 10576 else 10577 lt_cv_prog_compiler__b=yes 10578 fi 10579 fi 10580 $RM -r conftest* 10581 LDFLAGS="$save_LDFLAGS" 10582 10583fi 10584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10585$as_echo "$lt_cv_prog_compiler__b" >&6; } 10586 10587if test x"$lt_cv_prog_compiler__b" = xyes; then 10588 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10589else 10590 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10591fi 10592 10593 ;; 10594 esac 10595 fi 10596 if test "$with_gnu_ld" = no; then 10597 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10598 hardcode_libdir_separator=: 10599 10600 case $host_cpu in 10601 hppa*64*|ia64*) 10602 hardcode_direct=no 10603 hardcode_shlibpath_var=no 10604 ;; 10605 *) 10606 hardcode_direct=yes 10607 hardcode_direct_absolute=yes 10608 export_dynamic_flag_spec='${wl}-E' 10609 10610 # hardcode_minus_L: Not really in the search PATH, 10611 # but as the default location of the library. 10612 hardcode_minus_L=yes 10613 ;; 10614 esac 10615 fi 10616 ;; 10617 10618 irix5* | irix6* | nonstopux*) 10619 if test "$GCC" = yes; then 10620 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10621 # Try to use the -exported_symbol ld option, if it does not 10622 # work, assume that -exports_file does not work either and 10623 # implicitly export all symbols. 10624 # This should be the same for all languages, so no per-tag cache variable. 10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10626$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10627if ${lt_cv_irix_exported_symbol+:} false; then : 10628 $as_echo_n "(cached) " >&6 10629else 10630 save_LDFLAGS="$LDFLAGS" 10631 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10633/* end confdefs.h. */ 10634int foo (void) { return 0; } 10635_ACEOF 10636if ac_fn_c_try_link "$LINENO"; then : 10637 lt_cv_irix_exported_symbol=yes 10638else 10639 lt_cv_irix_exported_symbol=no 10640fi 10641rm -f core conftest.err conftest.$ac_objext \ 10642 conftest$ac_exeext conftest.$ac_ext 10643 LDFLAGS="$save_LDFLAGS" 10644fi 10645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10646$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10647 if test "$lt_cv_irix_exported_symbol" = yes; then 10648 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 10649 fi 10650 else 10651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 10652 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 10653 fi 10654 archive_cmds_need_lc='no' 10655 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10656 hardcode_libdir_separator=: 10657 inherit_rpath=yes 10658 link_all_deplibs=yes 10659 ;; 10660 10661 netbsd*) 10662 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10663 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10664 else 10665 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10666 fi 10667 hardcode_libdir_flag_spec='-R$libdir' 10668 hardcode_direct=yes 10669 hardcode_shlibpath_var=no 10670 ;; 10671 10672 newsos6) 10673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10674 hardcode_direct=yes 10675 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10676 hardcode_libdir_separator=: 10677 hardcode_shlibpath_var=no 10678 ;; 10679 10680 *nto* | *qnx*) 10681 ;; 10682 10683 openbsd*) 10684 if test -f /usr/libexec/ld.so; then 10685 hardcode_direct=yes 10686 hardcode_shlibpath_var=no 10687 hardcode_direct_absolute=yes 10688 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10689 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10690 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10691 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10692 export_dynamic_flag_spec='${wl}-E' 10693 else 10694 case $host_os in 10695 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10696 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10697 hardcode_libdir_flag_spec='-R$libdir' 10698 ;; 10699 *) 10700 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10701 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10702 ;; 10703 esac 10704 fi 10705 else 10706 ld_shlibs=no 10707 fi 10708 ;; 10709 10710 os2*) 10711 hardcode_libdir_flag_spec='-L$libdir' 10712 hardcode_minus_L=yes 10713 allow_undefined_flag=unsupported 10714 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10715 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10716 ;; 10717 10718 osf3*) 10719 if test "$GCC" = yes; then 10720 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10721 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10722 else 10723 allow_undefined_flag=' -expect_unresolved \*' 10724 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 10725 fi 10726 archive_cmds_need_lc='no' 10727 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10728 hardcode_libdir_separator=: 10729 ;; 10730 10731 osf4* | osf5*) # as osf3* with the addition of -msym flag 10732 if test "$GCC" = yes; then 10733 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10734 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10735 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10736 else 10737 allow_undefined_flag=' -expect_unresolved \*' 10738 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 10739 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 10740 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 10741 10742 # Both c and cxx compiler support -rpath directly 10743 hardcode_libdir_flag_spec='-rpath $libdir' 10744 fi 10745 archive_cmds_need_lc='no' 10746 hardcode_libdir_separator=: 10747 ;; 10748 10749 solaris*) 10750 no_undefined_flag=' -z defs' 10751 if test "$GCC" = yes; then 10752 wlarc='${wl}' 10753 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10754 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10755 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10756 else 10757 case `$CC -V 2>&1` in 10758 *"Compilers 5.0"*) 10759 wlarc='' 10760 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10761 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10762 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10763 ;; 10764 *) 10765 wlarc='${wl}' 10766 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10767 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10768 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10769 ;; 10770 esac 10771 fi 10772 hardcode_libdir_flag_spec='-R$libdir' 10773 hardcode_shlibpath_var=no 10774 case $host_os in 10775 solaris2.[0-5] | solaris2.[0-5].*) ;; 10776 *) 10777 # The compiler driver will combine and reorder linker options, 10778 # but understands `-z linker_flag'. GCC discards it without `$wl', 10779 # but is careful enough not to reorder. 10780 # Supported since Solaris 2.6 (maybe 2.5.1?) 10781 if test "$GCC" = yes; then 10782 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10783 else 10784 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10785 fi 10786 ;; 10787 esac 10788 link_all_deplibs=yes 10789 ;; 10790 10791 sunos4*) 10792 if test "x$host_vendor" = xsequent; then 10793 # Use $CC to link under sequent, because it throws in some extra .o 10794 # files that make .init and .fini sections work. 10795 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10796 else 10797 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10798 fi 10799 hardcode_libdir_flag_spec='-L$libdir' 10800 hardcode_direct=yes 10801 hardcode_minus_L=yes 10802 hardcode_shlibpath_var=no 10803 ;; 10804 10805 sysv4) 10806 case $host_vendor in 10807 sni) 10808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10809 hardcode_direct=yes # is this really true??? 10810 ;; 10811 siemens) 10812 ## LD is ld it makes a PLAMLIB 10813 ## CC just makes a GrossModule. 10814 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10815 reload_cmds='$CC -r -o $output$reload_objs' 10816 hardcode_direct=no 10817 ;; 10818 motorola) 10819 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10820 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10821 ;; 10822 esac 10823 runpath_var='LD_RUN_PATH' 10824 hardcode_shlibpath_var=no 10825 ;; 10826 10827 sysv4.3*) 10828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10829 hardcode_shlibpath_var=no 10830 export_dynamic_flag_spec='-Bexport' 10831 ;; 10832 10833 sysv4*MP*) 10834 if test -d /usr/nec; then 10835 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10836 hardcode_shlibpath_var=no 10837 runpath_var=LD_RUN_PATH 10838 hardcode_runpath_var=yes 10839 ld_shlibs=yes 10840 fi 10841 ;; 10842 10843 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10844 no_undefined_flag='${wl}-z,text' 10845 archive_cmds_need_lc=no 10846 hardcode_shlibpath_var=no 10847 runpath_var='LD_RUN_PATH' 10848 10849 if test "$GCC" = yes; then 10850 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10851 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10852 else 10853 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10854 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10855 fi 10856 ;; 10857 10858 sysv5* | sco3.2v5* | sco5v6*) 10859 # Note: We can NOT use -z defs as we might desire, because we do not 10860 # link with -lc, and that would cause any symbols used from libc to 10861 # always be unresolved, which means just about no library would 10862 # ever link correctly. If we're not using GNU ld we use -z text 10863 # though, which does catch some bad symbols but isn't as heavy-handed 10864 # as -z defs. 10865 no_undefined_flag='${wl}-z,text' 10866 allow_undefined_flag='${wl}-z,nodefs' 10867 archive_cmds_need_lc=no 10868 hardcode_shlibpath_var=no 10869 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10870 hardcode_libdir_separator=':' 10871 link_all_deplibs=yes 10872 export_dynamic_flag_spec='${wl}-Bexport' 10873 runpath_var='LD_RUN_PATH' 10874 10875 if test "$GCC" = yes; then 10876 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10877 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10878 else 10879 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10880 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10881 fi 10882 ;; 10883 10884 uts4*) 10885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10886 hardcode_libdir_flag_spec='-L$libdir' 10887 hardcode_shlibpath_var=no 10888 ;; 10889 10890 *) 10891 ld_shlibs=no 10892 ;; 10893 esac 10894 10895 if test x$host_vendor = xsni; then 10896 case $host in 10897 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10898 export_dynamic_flag_spec='${wl}-Blargedynsym' 10899 ;; 10900 esac 10901 fi 10902 fi 10903 10904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10905$as_echo "$ld_shlibs" >&6; } 10906test "$ld_shlibs" = no && can_build_shared=no 10907 10908with_gnu_ld=$with_gnu_ld 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924# 10925# Do we need to explicitly link libc? 10926# 10927case "x$archive_cmds_need_lc" in 10928x|xyes) 10929 # Assume -lc should be added 10930 archive_cmds_need_lc=yes 10931 10932 if test "$enable_shared" = yes && test "$GCC" = yes; then 10933 case $archive_cmds in 10934 *'~'*) 10935 # FIXME: we may have to deal with multi-command sequences. 10936 ;; 10937 '$CC '*) 10938 # Test whether the compiler implicitly links with -lc since on some 10939 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10940 # to ld, don't add -lc before -lgcc. 10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10942$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10943if ${lt_cv_archive_cmds_need_lc+:} false; then : 10944 $as_echo_n "(cached) " >&6 10945else 10946 $RM conftest* 10947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10948 10949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10950 (eval $ac_compile) 2>&5 10951 ac_status=$? 10952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10953 test $ac_status = 0; } 2>conftest.err; then 10954 soname=conftest 10955 lib=conftest 10956 libobjs=conftest.$ac_objext 10957 deplibs= 10958 wl=$lt_prog_compiler_wl 10959 pic_flag=$lt_prog_compiler_pic 10960 compiler_flags=-v 10961 linker_flags=-v 10962 verstring= 10963 output_objdir=. 10964 libname=conftest 10965 lt_save_allow_undefined_flag=$allow_undefined_flag 10966 allow_undefined_flag= 10967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10968 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10969 ac_status=$? 10970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10971 test $ac_status = 0; } 10972 then 10973 lt_cv_archive_cmds_need_lc=no 10974 else 10975 lt_cv_archive_cmds_need_lc=yes 10976 fi 10977 allow_undefined_flag=$lt_save_allow_undefined_flag 10978 else 10979 cat conftest.err 1>&5 10980 fi 10981 $RM conftest* 10982 10983fi 10984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10985$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10986 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10987 ;; 10988 esac 10989 fi 10990 ;; 10991esac 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11145$as_echo_n "checking dynamic linker characteristics... " >&6; } 11146 11147if test "$GCC" = yes; then 11148 case $host_os in 11149 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 11150 *) lt_awk_arg="/^libraries:/" ;; 11151 esac 11152 case $host_os in 11153 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 11154 *) lt_sed_strip_eq="s,=/,/,g" ;; 11155 esac 11156 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11157 case $lt_search_path_spec in 11158 *\;*) 11159 # if the path contains ";" then we assume it to be the separator 11160 # otherwise default to the standard path separator (i.e. ":") - it is 11161 # assumed that no part of a normal pathname contains ";" but that should 11162 # okay in the real world where ";" in dirpaths is itself problematic. 11163 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11164 ;; 11165 *) 11166 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11167 ;; 11168 esac 11169 # Ok, now we have the path, separated by spaces, we can step through it 11170 # and add multilib dir if necessary. 11171 lt_tmp_lt_search_path_spec= 11172 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11173 for lt_sys_path in $lt_search_path_spec; do 11174 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11175 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11176 else 11177 test -d "$lt_sys_path" && \ 11178 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11179 fi 11180 done 11181 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11182BEGIN {RS=" "; FS="/|\n";} { 11183 lt_foo=""; 11184 lt_count=0; 11185 for (lt_i = NF; lt_i > 0; lt_i--) { 11186 if ($lt_i != "" && $lt_i != ".") { 11187 if ($lt_i == "..") { 11188 lt_count++; 11189 } else { 11190 if (lt_count == 0) { 11191 lt_foo="/" $lt_i lt_foo; 11192 } else { 11193 lt_count--; 11194 } 11195 } 11196 } 11197 } 11198 if (lt_foo != "") { lt_freq[lt_foo]++; } 11199 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11200}'` 11201 # AWK program above erroneously prepends '/' to C:/dos/paths 11202 # for these hosts. 11203 case $host_os in 11204 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11205 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 11206 esac 11207 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11208else 11209 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11210fi 11211library_names_spec= 11212libname_spec='lib$name' 11213soname_spec= 11214shrext_cmds=".so" 11215postinstall_cmds= 11216postuninstall_cmds= 11217finish_cmds= 11218finish_eval= 11219shlibpath_var= 11220shlibpath_overrides_runpath=unknown 11221version_type=none 11222dynamic_linker="$host_os ld.so" 11223sys_lib_dlsearch_path_spec="/lib /usr/lib" 11224need_lib_prefix=unknown 11225hardcode_into_libs=no 11226 11227# when you set need_version to no, make sure it does not cause -set_version 11228# flags to be left without arguments 11229need_version=unknown 11230 11231case $host_os in 11232aix3*) 11233 version_type=linux # correct to gnu/linux during the next big refactor 11234 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11235 shlibpath_var=LIBPATH 11236 11237 # AIX 3 has no versioning support, so we append a major version to the name. 11238 soname_spec='${libname}${release}${shared_ext}$major' 11239 ;; 11240 11241aix[4-9]*) 11242 version_type=linux # correct to gnu/linux during the next big refactor 11243 need_lib_prefix=no 11244 need_version=no 11245 hardcode_into_libs=yes 11246 if test "$host_cpu" = ia64; then 11247 # AIX 5 supports IA64 11248 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11249 shlibpath_var=LD_LIBRARY_PATH 11250 else 11251 # With GCC up to 2.95.x, collect2 would create an import file 11252 # for dependence libraries. The import file would start with 11253 # the line `#! .'. This would cause the generated library to 11254 # depend on `.', always an invalid library. This was fixed in 11255 # development snapshots of GCC prior to 3.0. 11256 case $host_os in 11257 aix4 | aix4.[01] | aix4.[01].*) 11258 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11259 echo ' yes ' 11260 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11261 : 11262 else 11263 can_build_shared=no 11264 fi 11265 ;; 11266 esac 11267 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11268 # soname into executable. Probably we can add versioning support to 11269 # collect2, so additional links can be useful in future. 11270 if test "$aix_use_runtimelinking" = yes; then 11271 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11272 # instead of lib<name>.a to let people know that these are not 11273 # typical AIX shared libraries. 11274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11275 else 11276 # We preserve .a as extension for shared libraries through AIX4.2 11277 # and later when we are not doing run time linking. 11278 library_names_spec='${libname}${release}.a $libname.a' 11279 soname_spec='${libname}${release}${shared_ext}$major' 11280 fi 11281 shlibpath_var=LIBPATH 11282 fi 11283 ;; 11284 11285amigaos*) 11286 case $host_cpu in 11287 powerpc) 11288 # Since July 2007 AmigaOS4 officially supports .so libraries. 11289 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11291 ;; 11292 m68k) 11293 library_names_spec='$libname.ixlibrary $libname.a' 11294 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11295 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11296 ;; 11297 esac 11298 ;; 11299 11300beos*) 11301 library_names_spec='${libname}${shared_ext}' 11302 dynamic_linker="$host_os ld.so" 11303 shlibpath_var=LIBRARY_PATH 11304 ;; 11305 11306bsdi[45]*) 11307 version_type=linux # correct to gnu/linux during the next big refactor 11308 need_version=no 11309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11310 soname_spec='${libname}${release}${shared_ext}$major' 11311 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11312 shlibpath_var=LD_LIBRARY_PATH 11313 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11314 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11315 # the default ld.so.conf also contains /usr/contrib/lib and 11316 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11317 # libtool to hard-code these into programs 11318 ;; 11319 11320cygwin* | mingw* | pw32* | cegcc*) 11321 version_type=windows 11322 shrext_cmds=".dll" 11323 need_version=no 11324 need_lib_prefix=no 11325 11326 case $GCC,$cc_basename in 11327 yes,*) 11328 # gcc 11329 library_names_spec='$libname.dll.a' 11330 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11331 postinstall_cmds='base_file=`basename \${file}`~ 11332 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11333 dldir=$destdir/`dirname \$dlpath`~ 11334 test -d \$dldir || mkdir -p \$dldir~ 11335 $install_prog $dir/$dlname \$dldir/$dlname~ 11336 chmod a+x \$dldir/$dlname~ 11337 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11338 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11339 fi' 11340 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11341 dlpath=$dir/\$dldll~ 11342 $RM \$dlpath' 11343 shlibpath_overrides_runpath=yes 11344 11345 case $host_os in 11346 cygwin*) 11347 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11348 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11349 11350 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11351 ;; 11352 mingw* | cegcc*) 11353 # MinGW DLLs use traditional 'lib' prefix 11354 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11355 ;; 11356 pw32*) 11357 # pw32 DLLs use 'pw' prefix rather than 'lib' 11358 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11359 ;; 11360 esac 11361 dynamic_linker='Win32 ld.exe' 11362 ;; 11363 11364 *,cl*) 11365 # Native MSVC 11366 libname_spec='$name' 11367 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11368 library_names_spec='${libname}.dll.lib' 11369 11370 case $build_os in 11371 mingw*) 11372 sys_lib_search_path_spec= 11373 lt_save_ifs=$IFS 11374 IFS=';' 11375 for lt_path in $LIB 11376 do 11377 IFS=$lt_save_ifs 11378 # Let DOS variable expansion print the short 8.3 style file name. 11379 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11380 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11381 done 11382 IFS=$lt_save_ifs 11383 # Convert to MSYS style. 11384 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11385 ;; 11386 cygwin*) 11387 # Convert to unix form, then to dos form, then back to unix form 11388 # but this time dos style (no spaces!) so that the unix form looks 11389 # like /cygdrive/c/PROGRA~1:/cygdr... 11390 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11391 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11392 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11393 ;; 11394 *) 11395 sys_lib_search_path_spec="$LIB" 11396 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11397 # It is most probably a Windows format PATH. 11398 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11399 else 11400 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11401 fi 11402 # FIXME: find the short name or the path components, as spaces are 11403 # common. (e.g. "Program Files" -> "PROGRA~1") 11404 ;; 11405 esac 11406 11407 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11408 postinstall_cmds='base_file=`basename \${file}`~ 11409 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11410 dldir=$destdir/`dirname \$dlpath`~ 11411 test -d \$dldir || mkdir -p \$dldir~ 11412 $install_prog $dir/$dlname \$dldir/$dlname' 11413 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11414 dlpath=$dir/\$dldll~ 11415 $RM \$dlpath' 11416 shlibpath_overrides_runpath=yes 11417 dynamic_linker='Win32 link.exe' 11418 ;; 11419 11420 *) 11421 # Assume MSVC wrapper 11422 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11423 dynamic_linker='Win32 ld.exe' 11424 ;; 11425 esac 11426 # FIXME: first we should search . and the directory the executable is in 11427 shlibpath_var=PATH 11428 ;; 11429 11430darwin* | rhapsody*) 11431 dynamic_linker="$host_os dyld" 11432 version_type=darwin 11433 need_lib_prefix=no 11434 need_version=no 11435 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11436 soname_spec='${libname}${release}${major}$shared_ext' 11437 shlibpath_overrides_runpath=yes 11438 shlibpath_var=DYLD_LIBRARY_PATH 11439 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11440 11441 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11442 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11443 ;; 11444 11445dgux*) 11446 version_type=linux # correct to gnu/linux during the next big refactor 11447 need_lib_prefix=no 11448 need_version=no 11449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11450 soname_spec='${libname}${release}${shared_ext}$major' 11451 shlibpath_var=LD_LIBRARY_PATH 11452 ;; 11453 11454freebsd* | dragonfly*) 11455 # DragonFly does not have aout. When/if they implement a new 11456 # versioning mechanism, adjust this. 11457 if test -x /usr/bin/objformat; then 11458 objformat=`/usr/bin/objformat` 11459 else 11460 case $host_os in 11461 freebsd[23].*) objformat=aout ;; 11462 *) objformat=elf ;; 11463 esac 11464 fi 11465 version_type=freebsd-$objformat 11466 case $version_type in 11467 freebsd-elf*) 11468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11469 need_version=no 11470 need_lib_prefix=no 11471 ;; 11472 freebsd-*) 11473 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11474 need_version=yes 11475 ;; 11476 esac 11477 shlibpath_var=LD_LIBRARY_PATH 11478 case $host_os in 11479 freebsd2.*) 11480 shlibpath_overrides_runpath=yes 11481 ;; 11482 freebsd3.[01]* | freebsdelf3.[01]*) 11483 shlibpath_overrides_runpath=yes 11484 hardcode_into_libs=yes 11485 ;; 11486 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11487 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11488 shlibpath_overrides_runpath=no 11489 hardcode_into_libs=yes 11490 ;; 11491 *) # from 4.6 on, and DragonFly 11492 shlibpath_overrides_runpath=yes 11493 hardcode_into_libs=yes 11494 ;; 11495 esac 11496 ;; 11497 11498gnu*) 11499 version_type=linux # correct to gnu/linux during the next big refactor 11500 need_lib_prefix=no 11501 need_version=no 11502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11503 soname_spec='${libname}${release}${shared_ext}$major' 11504 shlibpath_var=LD_LIBRARY_PATH 11505 shlibpath_overrides_runpath=no 11506 hardcode_into_libs=yes 11507 ;; 11508 11509haiku*) 11510 version_type=linux # correct to gnu/linux during the next big refactor 11511 need_lib_prefix=no 11512 need_version=no 11513 dynamic_linker="$host_os runtime_loader" 11514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11515 soname_spec='${libname}${release}${shared_ext}$major' 11516 shlibpath_var=LIBRARY_PATH 11517 shlibpath_overrides_runpath=yes 11518 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11519 hardcode_into_libs=yes 11520 ;; 11521 11522hpux9* | hpux10* | hpux11*) 11523 # Give a soname corresponding to the major version so that dld.sl refuses to 11524 # link against other versions. 11525 version_type=sunos 11526 need_lib_prefix=no 11527 need_version=no 11528 case $host_cpu in 11529 ia64*) 11530 shrext_cmds='.so' 11531 hardcode_into_libs=yes 11532 dynamic_linker="$host_os dld.so" 11533 shlibpath_var=LD_LIBRARY_PATH 11534 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11536 soname_spec='${libname}${release}${shared_ext}$major' 11537 if test "X$HPUX_IA64_MODE" = X32; then 11538 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11539 else 11540 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11541 fi 11542 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11543 ;; 11544 hppa*64*) 11545 shrext_cmds='.sl' 11546 hardcode_into_libs=yes 11547 dynamic_linker="$host_os dld.sl" 11548 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11549 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11551 soname_spec='${libname}${release}${shared_ext}$major' 11552 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11553 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11554 ;; 11555 *) 11556 shrext_cmds='.sl' 11557 dynamic_linker="$host_os dld.sl" 11558 shlibpath_var=SHLIB_PATH 11559 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11561 soname_spec='${libname}${release}${shared_ext}$major' 11562 ;; 11563 esac 11564 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11565 postinstall_cmds='chmod 555 $lib' 11566 # or fails outright, so override atomically: 11567 install_override_mode=555 11568 ;; 11569 11570interix[3-9]*) 11571 version_type=linux # correct to gnu/linux during the next big refactor 11572 need_lib_prefix=no 11573 need_version=no 11574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11575 soname_spec='${libname}${release}${shared_ext}$major' 11576 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11577 shlibpath_var=LD_LIBRARY_PATH 11578 shlibpath_overrides_runpath=no 11579 hardcode_into_libs=yes 11580 ;; 11581 11582irix5* | irix6* | nonstopux*) 11583 case $host_os in 11584 nonstopux*) version_type=nonstopux ;; 11585 *) 11586 if test "$lt_cv_prog_gnu_ld" = yes; then 11587 version_type=linux # correct to gnu/linux during the next big refactor 11588 else 11589 version_type=irix 11590 fi ;; 11591 esac 11592 need_lib_prefix=no 11593 need_version=no 11594 soname_spec='${libname}${release}${shared_ext}$major' 11595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11596 case $host_os in 11597 irix5* | nonstopux*) 11598 libsuff= shlibsuff= 11599 ;; 11600 *) 11601 case $LD in # libtool.m4 will add one of these switches to LD 11602 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11603 libsuff= shlibsuff= libmagic=32-bit;; 11604 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11605 libsuff=32 shlibsuff=N32 libmagic=N32;; 11606 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11607 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11608 *) libsuff= shlibsuff= libmagic=never-match;; 11609 esac 11610 ;; 11611 esac 11612 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11613 shlibpath_overrides_runpath=no 11614 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11615 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11616 hardcode_into_libs=yes 11617 ;; 11618 11619# No shared lib support for Linux oldld, aout, or coff. 11620linux*oldld* | linux*aout* | linux*coff*) 11621 dynamic_linker=no 11622 ;; 11623 11624# This must be glibc/ELF. 11625linux* | k*bsd*-gnu | kopensolaris*-gnu) 11626 version_type=linux # correct to gnu/linux during the next big refactor 11627 need_lib_prefix=no 11628 need_version=no 11629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11630 soname_spec='${libname}${release}${shared_ext}$major' 11631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11632 shlibpath_var=LD_LIBRARY_PATH 11633 shlibpath_overrides_runpath=no 11634 11635 # Some binutils ld are patched to set DT_RUNPATH 11636 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11637 $as_echo_n "(cached) " >&6 11638else 11639 lt_cv_shlibpath_overrides_runpath=no 11640 save_LDFLAGS=$LDFLAGS 11641 save_libdir=$libdir 11642 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11643 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11645/* end confdefs.h. */ 11646 11647int 11648main () 11649{ 11650 11651 ; 11652 return 0; 11653} 11654_ACEOF 11655if ac_fn_c_try_link "$LINENO"; then : 11656 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11657 lt_cv_shlibpath_overrides_runpath=yes 11658fi 11659fi 11660rm -f core conftest.err conftest.$ac_objext \ 11661 conftest$ac_exeext conftest.$ac_ext 11662 LDFLAGS=$save_LDFLAGS 11663 libdir=$save_libdir 11664 11665fi 11666 11667 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11668 11669 # This implies no fast_install, which is unacceptable. 11670 # Some rework will be needed to allow for fast_install 11671 # before this can be enabled. 11672 hardcode_into_libs=yes 11673 11674 # Append ld.so.conf contents to the search path 11675 if test -f /etc/ld.so.conf; then 11676 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 11677 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11678 fi 11679 11680 # We used to test for /lib/ld.so.1 and disable shared libraries on 11681 # powerpc, because MkLinux only supported shared libraries with the 11682 # GNU dynamic linker. Since this was broken with cross compilers, 11683 # most powerpc-linux boxes support dynamic linking these days and 11684 # people can always --disable-shared, the test was removed, and we 11685 # assume the GNU/Linux dynamic linker is in use. 11686 dynamic_linker='GNU/Linux ld.so' 11687 ;; 11688 11689netbsd*) 11690 version_type=sunos 11691 need_lib_prefix=no 11692 need_version=no 11693 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11696 dynamic_linker='NetBSD (a.out) ld.so' 11697 else 11698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11699 soname_spec='${libname}${release}${shared_ext}$major' 11700 dynamic_linker='NetBSD ld.elf_so' 11701 fi 11702 shlibpath_var=LD_LIBRARY_PATH 11703 shlibpath_overrides_runpath=yes 11704 hardcode_into_libs=yes 11705 ;; 11706 11707newsos6) 11708 version_type=linux # correct to gnu/linux during the next big refactor 11709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11710 shlibpath_var=LD_LIBRARY_PATH 11711 shlibpath_overrides_runpath=yes 11712 ;; 11713 11714*nto* | *qnx*) 11715 version_type=qnx 11716 need_lib_prefix=no 11717 need_version=no 11718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11719 soname_spec='${libname}${release}${shared_ext}$major' 11720 shlibpath_var=LD_LIBRARY_PATH 11721 shlibpath_overrides_runpath=no 11722 hardcode_into_libs=yes 11723 dynamic_linker='ldqnx.so' 11724 ;; 11725 11726openbsd*) 11727 version_type=sunos 11728 sys_lib_dlsearch_path_spec="/usr/lib" 11729 need_lib_prefix=no 11730 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11731 case $host_os in 11732 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11733 *) need_version=no ;; 11734 esac 11735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11736 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11737 shlibpath_var=LD_LIBRARY_PATH 11738 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11739 case $host_os in 11740 openbsd2.[89] | openbsd2.[89].*) 11741 shlibpath_overrides_runpath=no 11742 ;; 11743 *) 11744 shlibpath_overrides_runpath=yes 11745 ;; 11746 esac 11747 else 11748 shlibpath_overrides_runpath=yes 11749 fi 11750 ;; 11751 11752os2*) 11753 libname_spec='$name' 11754 shrext_cmds=".dll" 11755 need_lib_prefix=no 11756 library_names_spec='$libname${shared_ext} $libname.a' 11757 dynamic_linker='OS/2 ld.exe' 11758 shlibpath_var=LIBPATH 11759 ;; 11760 11761osf3* | osf4* | osf5*) 11762 version_type=osf 11763 need_lib_prefix=no 11764 need_version=no 11765 soname_spec='${libname}${release}${shared_ext}$major' 11766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11767 shlibpath_var=LD_LIBRARY_PATH 11768 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11769 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11770 ;; 11771 11772rdos*) 11773 dynamic_linker=no 11774 ;; 11775 11776solaris*) 11777 version_type=linux # correct to gnu/linux during the next big refactor 11778 need_lib_prefix=no 11779 need_version=no 11780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11781 soname_spec='${libname}${release}${shared_ext}$major' 11782 shlibpath_var=LD_LIBRARY_PATH 11783 shlibpath_overrides_runpath=yes 11784 hardcode_into_libs=yes 11785 # ldd complains unless libraries are executable 11786 postinstall_cmds='chmod +x $lib' 11787 ;; 11788 11789sunos4*) 11790 version_type=sunos 11791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11792 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11793 shlibpath_var=LD_LIBRARY_PATH 11794 shlibpath_overrides_runpath=yes 11795 if test "$with_gnu_ld" = yes; then 11796 need_lib_prefix=no 11797 fi 11798 need_version=yes 11799 ;; 11800 11801sysv4 | sysv4.3*) 11802 version_type=linux # correct to gnu/linux during the next big refactor 11803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11804 soname_spec='${libname}${release}${shared_ext}$major' 11805 shlibpath_var=LD_LIBRARY_PATH 11806 case $host_vendor in 11807 sni) 11808 shlibpath_overrides_runpath=no 11809 need_lib_prefix=no 11810 runpath_var=LD_RUN_PATH 11811 ;; 11812 siemens) 11813 need_lib_prefix=no 11814 ;; 11815 motorola) 11816 need_lib_prefix=no 11817 need_version=no 11818 shlibpath_overrides_runpath=no 11819 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11820 ;; 11821 esac 11822 ;; 11823 11824sysv4*MP*) 11825 if test -d /usr/nec ;then 11826 version_type=linux # correct to gnu/linux during the next big refactor 11827 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11828 soname_spec='$libname${shared_ext}.$major' 11829 shlibpath_var=LD_LIBRARY_PATH 11830 fi 11831 ;; 11832 11833sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11834 version_type=freebsd-elf 11835 need_lib_prefix=no 11836 need_version=no 11837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11838 soname_spec='${libname}${release}${shared_ext}$major' 11839 shlibpath_var=LD_LIBRARY_PATH 11840 shlibpath_overrides_runpath=yes 11841 hardcode_into_libs=yes 11842 if test "$with_gnu_ld" = yes; then 11843 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11844 else 11845 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11846 case $host_os in 11847 sco3.2v5*) 11848 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11849 ;; 11850 esac 11851 fi 11852 sys_lib_dlsearch_path_spec='/usr/lib' 11853 ;; 11854 11855tpf*) 11856 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11857 version_type=linux # correct to gnu/linux during the next big refactor 11858 need_lib_prefix=no 11859 need_version=no 11860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11861 shlibpath_var=LD_LIBRARY_PATH 11862 shlibpath_overrides_runpath=no 11863 hardcode_into_libs=yes 11864 ;; 11865 11866uts4*) 11867 version_type=linux # correct to gnu/linux during the next big refactor 11868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11869 soname_spec='${libname}${release}${shared_ext}$major' 11870 shlibpath_var=LD_LIBRARY_PATH 11871 ;; 11872 11873*) 11874 dynamic_linker=no 11875 ;; 11876esac 11877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11878$as_echo "$dynamic_linker" >&6; } 11879test "$dynamic_linker" = no && can_build_shared=no 11880 11881variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11882if test "$GCC" = yes; then 11883 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11884fi 11885 11886if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11887 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11888fi 11889if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11890 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11891fi 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11985$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11986hardcode_action= 11987if test -n "$hardcode_libdir_flag_spec" || 11988 test -n "$runpath_var" || 11989 test "X$hardcode_automatic" = "Xyes" ; then 11990 11991 # We can hardcode non-existent directories. 11992 if test "$hardcode_direct" != no && 11993 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11994 # have to relink, otherwise we might link with an installed library 11995 # when we should be linking with a yet-to-be-installed one 11996 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11997 test "$hardcode_minus_L" != no; then 11998 # Linking always hardcodes the temporary library directory. 11999 hardcode_action=relink 12000 else 12001 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12002 hardcode_action=immediate 12003 fi 12004else 12005 # We cannot hardcode anything, or else we can only hardcode existing 12006 # directories. 12007 hardcode_action=unsupported 12008fi 12009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12010$as_echo "$hardcode_action" >&6; } 12011 12012if test "$hardcode_action" = relink || 12013 test "$inherit_rpath" = yes; then 12014 # Fast installation is not supported 12015 enable_fast_install=no 12016elif test "$shlibpath_overrides_runpath" = yes || 12017 test "$enable_shared" = no; then 12018 # Fast installation is not necessary 12019 enable_fast_install=needless 12020fi 12021 12022 12023 12024 12025 12026 12027 if test "x$enable_dlopen" != xyes; then 12028 enable_dlopen=unknown 12029 enable_dlopen_self=unknown 12030 enable_dlopen_self_static=unknown 12031else 12032 lt_cv_dlopen=no 12033 lt_cv_dlopen_libs= 12034 12035 case $host_os in 12036 beos*) 12037 lt_cv_dlopen="load_add_on" 12038 lt_cv_dlopen_libs= 12039 lt_cv_dlopen_self=yes 12040 ;; 12041 12042 mingw* | pw32* | cegcc*) 12043 lt_cv_dlopen="LoadLibrary" 12044 lt_cv_dlopen_libs= 12045 ;; 12046 12047 cygwin*) 12048 lt_cv_dlopen="dlopen" 12049 lt_cv_dlopen_libs= 12050 ;; 12051 12052 darwin*) 12053 # if libdl is installed we need to link against it 12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12055$as_echo_n "checking for dlopen in -ldl... " >&6; } 12056if ${ac_cv_lib_dl_dlopen+:} false; then : 12057 $as_echo_n "(cached) " >&6 12058else 12059 ac_check_lib_save_LIBS=$LIBS 12060LIBS="-ldl $LIBS" 12061cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12062/* end confdefs.h. */ 12063 12064/* Override any GCC internal prototype to avoid an error. 12065 Use char because int might match the return type of a GCC 12066 builtin and then its argument prototype would still apply. */ 12067#ifdef __cplusplus 12068extern "C" 12069#endif 12070char dlopen (); 12071int 12072main () 12073{ 12074return dlopen (); 12075 ; 12076 return 0; 12077} 12078_ACEOF 12079if ac_fn_c_try_link "$LINENO"; then : 12080 ac_cv_lib_dl_dlopen=yes 12081else 12082 ac_cv_lib_dl_dlopen=no 12083fi 12084rm -f core conftest.err conftest.$ac_objext \ 12085 conftest$ac_exeext conftest.$ac_ext 12086LIBS=$ac_check_lib_save_LIBS 12087fi 12088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12089$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12090if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12091 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12092else 12093 12094 lt_cv_dlopen="dyld" 12095 lt_cv_dlopen_libs= 12096 lt_cv_dlopen_self=yes 12097 12098fi 12099 12100 ;; 12101 12102 *) 12103 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12104if test "x$ac_cv_func_shl_load" = xyes; then : 12105 lt_cv_dlopen="shl_load" 12106else 12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12108$as_echo_n "checking for shl_load in -ldld... " >&6; } 12109if ${ac_cv_lib_dld_shl_load+:} false; then : 12110 $as_echo_n "(cached) " >&6 12111else 12112 ac_check_lib_save_LIBS=$LIBS 12113LIBS="-ldld $LIBS" 12114cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12115/* end confdefs.h. */ 12116 12117/* Override any GCC internal prototype to avoid an error. 12118 Use char because int might match the return type of a GCC 12119 builtin and then its argument prototype would still apply. */ 12120#ifdef __cplusplus 12121extern "C" 12122#endif 12123char shl_load (); 12124int 12125main () 12126{ 12127return shl_load (); 12128 ; 12129 return 0; 12130} 12131_ACEOF 12132if ac_fn_c_try_link "$LINENO"; then : 12133 ac_cv_lib_dld_shl_load=yes 12134else 12135 ac_cv_lib_dld_shl_load=no 12136fi 12137rm -f core conftest.err conftest.$ac_objext \ 12138 conftest$ac_exeext conftest.$ac_ext 12139LIBS=$ac_check_lib_save_LIBS 12140fi 12141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12142$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12143if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12144 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 12145else 12146 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12147if test "x$ac_cv_func_dlopen" = xyes; then : 12148 lt_cv_dlopen="dlopen" 12149else 12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12151$as_echo_n "checking for dlopen in -ldl... " >&6; } 12152if ${ac_cv_lib_dl_dlopen+:} false; then : 12153 $as_echo_n "(cached) " >&6 12154else 12155 ac_check_lib_save_LIBS=$LIBS 12156LIBS="-ldl $LIBS" 12157cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12158/* end confdefs.h. */ 12159 12160/* Override any GCC internal prototype to avoid an error. 12161 Use char because int might match the return type of a GCC 12162 builtin and then its argument prototype would still apply. */ 12163#ifdef __cplusplus 12164extern "C" 12165#endif 12166char dlopen (); 12167int 12168main () 12169{ 12170return dlopen (); 12171 ; 12172 return 0; 12173} 12174_ACEOF 12175if ac_fn_c_try_link "$LINENO"; then : 12176 ac_cv_lib_dl_dlopen=yes 12177else 12178 ac_cv_lib_dl_dlopen=no 12179fi 12180rm -f core conftest.err conftest.$ac_objext \ 12181 conftest$ac_exeext conftest.$ac_ext 12182LIBS=$ac_check_lib_save_LIBS 12183fi 12184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12185$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12186if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12187 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12188else 12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12190$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12191if ${ac_cv_lib_svld_dlopen+:} false; then : 12192 $as_echo_n "(cached) " >&6 12193else 12194 ac_check_lib_save_LIBS=$LIBS 12195LIBS="-lsvld $LIBS" 12196cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12197/* end confdefs.h. */ 12198 12199/* Override any GCC internal prototype to avoid an error. 12200 Use char because int might match the return type of a GCC 12201 builtin and then its argument prototype would still apply. */ 12202#ifdef __cplusplus 12203extern "C" 12204#endif 12205char dlopen (); 12206int 12207main () 12208{ 12209return dlopen (); 12210 ; 12211 return 0; 12212} 12213_ACEOF 12214if ac_fn_c_try_link "$LINENO"; then : 12215 ac_cv_lib_svld_dlopen=yes 12216else 12217 ac_cv_lib_svld_dlopen=no 12218fi 12219rm -f core conftest.err conftest.$ac_objext \ 12220 conftest$ac_exeext conftest.$ac_ext 12221LIBS=$ac_check_lib_save_LIBS 12222fi 12223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12224$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12225if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12226 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12227else 12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12229$as_echo_n "checking for dld_link in -ldld... " >&6; } 12230if ${ac_cv_lib_dld_dld_link+:} false; then : 12231 $as_echo_n "(cached) " >&6 12232else 12233 ac_check_lib_save_LIBS=$LIBS 12234LIBS="-ldld $LIBS" 12235cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12236/* end confdefs.h. */ 12237 12238/* Override any GCC internal prototype to avoid an error. 12239 Use char because int might match the return type of a GCC 12240 builtin and then its argument prototype would still apply. */ 12241#ifdef __cplusplus 12242extern "C" 12243#endif 12244char dld_link (); 12245int 12246main () 12247{ 12248return dld_link (); 12249 ; 12250 return 0; 12251} 12252_ACEOF 12253if ac_fn_c_try_link "$LINENO"; then : 12254 ac_cv_lib_dld_dld_link=yes 12255else 12256 ac_cv_lib_dld_dld_link=no 12257fi 12258rm -f core conftest.err conftest.$ac_objext \ 12259 conftest$ac_exeext conftest.$ac_ext 12260LIBS=$ac_check_lib_save_LIBS 12261fi 12262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12263$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12264if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12265 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12266fi 12267 12268 12269fi 12270 12271 12272fi 12273 12274 12275fi 12276 12277 12278fi 12279 12280 12281fi 12282 12283 ;; 12284 esac 12285 12286 if test "x$lt_cv_dlopen" != xno; then 12287 enable_dlopen=yes 12288 else 12289 enable_dlopen=no 12290 fi 12291 12292 case $lt_cv_dlopen in 12293 dlopen) 12294 save_CPPFLAGS="$CPPFLAGS" 12295 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12296 12297 save_LDFLAGS="$LDFLAGS" 12298 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12299 12300 save_LIBS="$LIBS" 12301 LIBS="$lt_cv_dlopen_libs $LIBS" 12302 12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12304$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12305if ${lt_cv_dlopen_self+:} false; then : 12306 $as_echo_n "(cached) " >&6 12307else 12308 if test "$cross_compiling" = yes; then : 12309 lt_cv_dlopen_self=cross 12310else 12311 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12312 lt_status=$lt_dlunknown 12313 cat > conftest.$ac_ext <<_LT_EOF 12314#line $LINENO "configure" 12315#include "confdefs.h" 12316 12317#if HAVE_DLFCN_H 12318#include <dlfcn.h> 12319#endif 12320 12321#include <stdio.h> 12322 12323#ifdef RTLD_GLOBAL 12324# define LT_DLGLOBAL RTLD_GLOBAL 12325#else 12326# ifdef DL_GLOBAL 12327# define LT_DLGLOBAL DL_GLOBAL 12328# else 12329# define LT_DLGLOBAL 0 12330# endif 12331#endif 12332 12333/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12334 find out it does not work in some platform. */ 12335#ifndef LT_DLLAZY_OR_NOW 12336# ifdef RTLD_LAZY 12337# define LT_DLLAZY_OR_NOW RTLD_LAZY 12338# else 12339# ifdef DL_LAZY 12340# define LT_DLLAZY_OR_NOW DL_LAZY 12341# else 12342# ifdef RTLD_NOW 12343# define LT_DLLAZY_OR_NOW RTLD_NOW 12344# else 12345# ifdef DL_NOW 12346# define LT_DLLAZY_OR_NOW DL_NOW 12347# else 12348# define LT_DLLAZY_OR_NOW 0 12349# endif 12350# endif 12351# endif 12352# endif 12353#endif 12354 12355/* When -fvisbility=hidden is used, assume the code has been annotated 12356 correspondingly for the symbols needed. */ 12357#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12358int fnord () __attribute__((visibility("default"))); 12359#endif 12360 12361int fnord () { return 42; } 12362int main () 12363{ 12364 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12365 int status = $lt_dlunknown; 12366 12367 if (self) 12368 { 12369 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12370 else 12371 { 12372 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12373 else puts (dlerror ()); 12374 } 12375 /* dlclose (self); */ 12376 } 12377 else 12378 puts (dlerror ()); 12379 12380 return status; 12381} 12382_LT_EOF 12383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12384 (eval $ac_link) 2>&5 12385 ac_status=$? 12386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12387 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12388 (./conftest; exit; ) >&5 2>/dev/null 12389 lt_status=$? 12390 case x$lt_status in 12391 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12392 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12393 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12394 esac 12395 else : 12396 # compilation failed 12397 lt_cv_dlopen_self=no 12398 fi 12399fi 12400rm -fr conftest* 12401 12402 12403fi 12404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12405$as_echo "$lt_cv_dlopen_self" >&6; } 12406 12407 if test "x$lt_cv_dlopen_self" = xyes; then 12408 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12410$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12411if ${lt_cv_dlopen_self_static+:} false; then : 12412 $as_echo_n "(cached) " >&6 12413else 12414 if test "$cross_compiling" = yes; then : 12415 lt_cv_dlopen_self_static=cross 12416else 12417 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12418 lt_status=$lt_dlunknown 12419 cat > conftest.$ac_ext <<_LT_EOF 12420#line $LINENO "configure" 12421#include "confdefs.h" 12422 12423#if HAVE_DLFCN_H 12424#include <dlfcn.h> 12425#endif 12426 12427#include <stdio.h> 12428 12429#ifdef RTLD_GLOBAL 12430# define LT_DLGLOBAL RTLD_GLOBAL 12431#else 12432# ifdef DL_GLOBAL 12433# define LT_DLGLOBAL DL_GLOBAL 12434# else 12435# define LT_DLGLOBAL 0 12436# endif 12437#endif 12438 12439/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12440 find out it does not work in some platform. */ 12441#ifndef LT_DLLAZY_OR_NOW 12442# ifdef RTLD_LAZY 12443# define LT_DLLAZY_OR_NOW RTLD_LAZY 12444# else 12445# ifdef DL_LAZY 12446# define LT_DLLAZY_OR_NOW DL_LAZY 12447# else 12448# ifdef RTLD_NOW 12449# define LT_DLLAZY_OR_NOW RTLD_NOW 12450# else 12451# ifdef DL_NOW 12452# define LT_DLLAZY_OR_NOW DL_NOW 12453# else 12454# define LT_DLLAZY_OR_NOW 0 12455# endif 12456# endif 12457# endif 12458# endif 12459#endif 12460 12461/* When -fvisbility=hidden is used, assume the code has been annotated 12462 correspondingly for the symbols needed. */ 12463#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12464int fnord () __attribute__((visibility("default"))); 12465#endif 12466 12467int fnord () { return 42; } 12468int main () 12469{ 12470 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12471 int status = $lt_dlunknown; 12472 12473 if (self) 12474 { 12475 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12476 else 12477 { 12478 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12479 else puts (dlerror ()); 12480 } 12481 /* dlclose (self); */ 12482 } 12483 else 12484 puts (dlerror ()); 12485 12486 return status; 12487} 12488_LT_EOF 12489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12490 (eval $ac_link) 2>&5 12491 ac_status=$? 12492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12493 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12494 (./conftest; exit; ) >&5 2>/dev/null 12495 lt_status=$? 12496 case x$lt_status in 12497 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12498 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12499 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12500 esac 12501 else : 12502 # compilation failed 12503 lt_cv_dlopen_self_static=no 12504 fi 12505fi 12506rm -fr conftest* 12507 12508 12509fi 12510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12511$as_echo "$lt_cv_dlopen_self_static" >&6; } 12512 fi 12513 12514 CPPFLAGS="$save_CPPFLAGS" 12515 LDFLAGS="$save_LDFLAGS" 12516 LIBS="$save_LIBS" 12517 ;; 12518 esac 12519 12520 case $lt_cv_dlopen_self in 12521 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12522 *) enable_dlopen_self=unknown ;; 12523 esac 12524 12525 case $lt_cv_dlopen_self_static in 12526 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12527 *) enable_dlopen_self_static=unknown ;; 12528 esac 12529fi 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547striplib= 12548old_striplib= 12549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12550$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12551if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12552 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12553 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12555$as_echo "yes" >&6; } 12556else 12557# FIXME - insert some real tests, host_os isn't really good enough 12558 case $host_os in 12559 darwin*) 12560 if test -n "$STRIP" ; then 12561 striplib="$STRIP -x" 12562 old_striplib="$STRIP -S" 12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12564$as_echo "yes" >&6; } 12565 else 12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12567$as_echo "no" >&6; } 12568 fi 12569 ;; 12570 *) 12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12572$as_echo "no" >&6; } 12573 ;; 12574 esac 12575fi 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 # Report which library types will actually be built 12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12590$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12592$as_echo "$can_build_shared" >&6; } 12593 12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12595$as_echo_n "checking whether to build shared libraries... " >&6; } 12596 test "$can_build_shared" = "no" && enable_shared=no 12597 12598 # On AIX, shared libraries and static libraries use the same namespace, and 12599 # are all built from PIC. 12600 case $host_os in 12601 aix3*) 12602 test "$enable_shared" = yes && enable_static=no 12603 if test -n "$RANLIB"; then 12604 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12605 postinstall_cmds='$RANLIB $lib' 12606 fi 12607 ;; 12608 12609 aix[4-9]*) 12610 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12611 test "$enable_shared" = yes && enable_static=no 12612 fi 12613 ;; 12614 esac 12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12616$as_echo "$enable_shared" >&6; } 12617 12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12619$as_echo_n "checking whether to build static libraries... " >&6; } 12620 # Make sure either enable_shared or enable_static is yes. 12621 test "$enable_shared" = yes || enable_static=yes 12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12623$as_echo "$enable_static" >&6; } 12624 12625 12626 12627 12628fi 12629ac_ext=c 12630ac_cpp='$CPP $CPPFLAGS' 12631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12633ac_compiler_gnu=$ac_cv_c_compiler_gnu 12634 12635CC="$lt_save_CC" 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 ac_config_commands="$ac_config_commands libtool" 12652 12653 12654 12655 12656# Only expand once: 12657 12658 12659 12660if test "$with_unixodbc" != no; then 12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SQLGetPrivateProfileString" >&5 12662$as_echo_n "checking for library containing SQLGetPrivateProfileString... " >&6; } 12663if ${ac_cv_search_SQLGetPrivateProfileString+:} false; then : 12664 $as_echo_n "(cached) " >&6 12665else 12666 ac_func_search_save_LIBS=$LIBS 12667cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12668/* end confdefs.h. */ 12669 12670/* Override any GCC internal prototype to avoid an error. 12671 Use char because int might match the return type of a GCC 12672 builtin and then its argument prototype would still apply. */ 12673#ifdef __cplusplus 12674extern "C" 12675#endif 12676char SQLGetPrivateProfileString (); 12677int 12678main () 12679{ 12680return SQLGetPrivateProfileString (); 12681 ; 12682 return 0; 12683} 12684_ACEOF 12685for ac_lib in '' odbcinst; do 12686 if test -z "$ac_lib"; then 12687 ac_res="none required" 12688 else 12689 ac_res=-l$ac_lib 12690 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12691 fi 12692 if ac_fn_c_try_link "$LINENO"; then : 12693 ac_cv_search_SQLGetPrivateProfileString=$ac_res 12694fi 12695rm -f core conftest.err conftest.$ac_objext \ 12696 conftest$ac_exeext 12697 if ${ac_cv_search_SQLGetPrivateProfileString+:} false; then : 12698 break 12699fi 12700done 12701if ${ac_cv_search_SQLGetPrivateProfileString+:} false; then : 12702 12703else 12704 ac_cv_search_SQLGetPrivateProfileString=no 12705fi 12706rm conftest.$ac_ext 12707LIBS=$ac_func_search_save_LIBS 12708fi 12709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SQLGetPrivateProfileString" >&5 12710$as_echo "$ac_cv_search_SQLGetPrivateProfileString" >&6; } 12711ac_res=$ac_cv_search_SQLGetPrivateProfileString 12712if test "$ac_res" != no; then : 12713 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12714 12715else 12716 as_fn_error $? "unixODBC library \"odbcinst\" not found" "$LINENO" 5 12717fi 12718 12719fi 12720 12721if test "$with_iodbc" != no; then 12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SQLGetPrivateProfileString" >&5 12723$as_echo_n "checking for library containing SQLGetPrivateProfileString... " >&6; } 12724if ${ac_cv_search_SQLGetPrivateProfileString+:} false; then : 12725 $as_echo_n "(cached) " >&6 12726else 12727 ac_func_search_save_LIBS=$LIBS 12728cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12729/* end confdefs.h. */ 12730 12731/* Override any GCC internal prototype to avoid an error. 12732 Use char because int might match the return type of a GCC 12733 builtin and then its argument prototype would still apply. */ 12734#ifdef __cplusplus 12735extern "C" 12736#endif 12737char SQLGetPrivateProfileString (); 12738int 12739main () 12740{ 12741return SQLGetPrivateProfileString (); 12742 ; 12743 return 0; 12744} 12745_ACEOF 12746for ac_lib in '' iodbcinst; do 12747 if test -z "$ac_lib"; then 12748 ac_res="none required" 12749 else 12750 ac_res=-l$ac_lib 12751 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12752 fi 12753 if ac_fn_c_try_link "$LINENO"; then : 12754 ac_cv_search_SQLGetPrivateProfileString=$ac_res 12755fi 12756rm -f core conftest.err conftest.$ac_objext \ 12757 conftest$ac_exeext 12758 if ${ac_cv_search_SQLGetPrivateProfileString+:} false; then : 12759 break 12760fi 12761done 12762if ${ac_cv_search_SQLGetPrivateProfileString+:} false; then : 12763 12764else 12765 ac_cv_search_SQLGetPrivateProfileString=no 12766fi 12767rm conftest.$ac_ext 12768LIBS=$ac_func_search_save_LIBS 12769fi 12770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SQLGetPrivateProfileString" >&5 12771$as_echo "$ac_cv_search_SQLGetPrivateProfileString" >&6; } 12772ac_res=$ac_cv_search_SQLGetPrivateProfileString 12773if test "$ac_res" != no; then : 12774 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12775 12776else 12777 as_fn_error $? "iODBC library \"iodbcinst\" not found" "$LINENO" 5 12778fi 12779 12780fi 12781 12782if test "$enable_pthreads" = yes; then 12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 12784$as_echo_n "checking for pthread_create in -lpthreads... " >&6; } 12785if ${ac_cv_lib_pthreads_pthread_create+:} false; then : 12786 $as_echo_n "(cached) " >&6 12787else 12788 ac_check_lib_save_LIBS=$LIBS 12789LIBS="-lpthreads $LIBS" 12790cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12791/* end confdefs.h. */ 12792 12793/* Override any GCC internal prototype to avoid an error. 12794 Use char because int might match the return type of a GCC 12795 builtin and then its argument prototype would still apply. */ 12796#ifdef __cplusplus 12797extern "C" 12798#endif 12799char pthread_create (); 12800int 12801main () 12802{ 12803return pthread_create (); 12804 ; 12805 return 0; 12806} 12807_ACEOF 12808if ac_fn_c_try_link "$LINENO"; then : 12809 ac_cv_lib_pthreads_pthread_create=yes 12810else 12811 ac_cv_lib_pthreads_pthread_create=no 12812fi 12813rm -f core conftest.err conftest.$ac_objext \ 12814 conftest$ac_exeext conftest.$ac_ext 12815LIBS=$ac_check_lib_save_LIBS 12816fi 12817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 12818$as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } 12819if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : 12820 cat >>confdefs.h <<_ACEOF 12821#define HAVE_LIBPTHREADS 1 12822_ACEOF 12823 12824 LIBS="-lpthreads $LIBS" 12825 12826else 12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 12828$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 12829if ${ac_cv_lib_pthread_pthread_create+:} false; then : 12830 $as_echo_n "(cached) " >&6 12831else 12832 ac_check_lib_save_LIBS=$LIBS 12833LIBS="-lpthread $LIBS" 12834cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12835/* end confdefs.h. */ 12836 12837/* Override any GCC internal prototype to avoid an error. 12838 Use char because int might match the return type of a GCC 12839 builtin and then its argument prototype would still apply. */ 12840#ifdef __cplusplus 12841extern "C" 12842#endif 12843char pthread_create (); 12844int 12845main () 12846{ 12847return pthread_create (); 12848 ; 12849 return 0; 12850} 12851_ACEOF 12852if ac_fn_c_try_link "$LINENO"; then : 12853 ac_cv_lib_pthread_pthread_create=yes 12854else 12855 ac_cv_lib_pthread_pthread_create=no 12856fi 12857rm -f core conftest.err conftest.$ac_objext \ 12858 conftest$ac_exeext conftest.$ac_ext 12859LIBS=$ac_check_lib_save_LIBS 12860fi 12861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 12862$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 12863if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : 12864 cat >>confdefs.h <<_ACEOF 12865#define HAVE_LIBPTHREAD 1 12866_ACEOF 12867 12868 LIBS="-lpthread $LIBS" 12869 12870fi 12871 12872fi 12873 12874fi 12875 12876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetSingleRowMode in -lpq" >&5 12877$as_echo_n "checking for PQsetSingleRowMode in -lpq... " >&6; } 12878if ${ac_cv_lib_pq_PQsetSingleRowMode+:} false; then : 12879 $as_echo_n "(cached) " >&6 12880else 12881 ac_check_lib_save_LIBS=$LIBS 12882LIBS="-lpq $LIBS" 12883cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12884/* end confdefs.h. */ 12885 12886/* Override any GCC internal prototype to avoid an error. 12887 Use char because int might match the return type of a GCC 12888 builtin and then its argument prototype would still apply. */ 12889#ifdef __cplusplus 12890extern "C" 12891#endif 12892char PQsetSingleRowMode (); 12893int 12894main () 12895{ 12896return PQsetSingleRowMode (); 12897 ; 12898 return 0; 12899} 12900_ACEOF 12901if ac_fn_c_try_link "$LINENO"; then : 12902 ac_cv_lib_pq_PQsetSingleRowMode=yes 12903else 12904 ac_cv_lib_pq_PQsetSingleRowMode=no 12905fi 12906rm -f core conftest.err conftest.$ac_objext \ 12907 conftest$ac_exeext conftest.$ac_ext 12908LIBS=$ac_check_lib_save_LIBS 12909fi 12910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetSingleRowMode" >&5 12911$as_echo "$ac_cv_lib_pq_PQsetSingleRowMode" >&6; } 12912if test "x$ac_cv_lib_pq_PQsetSingleRowMode" = xyes; then : 12913 cat >>confdefs.h <<_ACEOF 12914#define HAVE_LIBPQ 1 12915_ACEOF 12916 12917 LIBS="-lpq $LIBS" 12918 12919else 12920 as_fn_error $? "libpq library version >= 9.2 is required" "$LINENO" 5 12921fi 12922 12923 12924# 3. Header files 12925 12926for ac_header in locale.h sys/time.h uchar.h 12927do : 12928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12929ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12930if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12931 cat >>confdefs.h <<_ACEOF 12932#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12933_ACEOF 12934 12935fi 12936 12937done 12938 12939ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default" 12940if test "x$ac_cv_header_libpq_fe_h" = xyes; then : 12941 12942else 12943 as_fn_error $? "libpq header not found" "$LINENO" 5 12944fi 12945 12946 12947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 12948$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 12949if ${ac_cv_header_time+:} false; then : 12950 $as_echo_n "(cached) " >&6 12951else 12952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12953/* end confdefs.h. */ 12954#include <sys/types.h> 12955#include <sys/time.h> 12956#include <time.h> 12957 12958int 12959main () 12960{ 12961if ((struct tm *) 0) 12962return 0; 12963 ; 12964 return 0; 12965} 12966_ACEOF 12967if ac_fn_c_try_compile "$LINENO"; then : 12968 ac_cv_header_time=yes 12969else 12970 ac_cv_header_time=no 12971fi 12972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12973fi 12974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 12975$as_echo "$ac_cv_header_time" >&6; } 12976if test $ac_cv_header_time = yes; then 12977 12978$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 12979 12980fi 12981 12982 12983 12984# 4. Types(all members were moved to 0.) 12985 12986# 5. Structures 12987 12988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 12989$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 12990if ${ac_cv_struct_tm+:} false; then : 12991 $as_echo_n "(cached) " >&6 12992else 12993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12994/* end confdefs.h. */ 12995#include <sys/types.h> 12996#include <time.h> 12997 12998int 12999main () 13000{ 13001struct tm tm; 13002 int *p = &tm.tm_sec; 13003 return !p; 13004 ; 13005 return 0; 13006} 13007_ACEOF 13008if ac_fn_c_try_compile "$LINENO"; then : 13009 ac_cv_struct_tm=time.h 13010else 13011 ac_cv_struct_tm=sys/time.h 13012fi 13013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13014fi 13015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 13016$as_echo "$ac_cv_struct_tm" >&6; } 13017if test $ac_cv_struct_tm = sys/time.h; then 13018 13019$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 13020 13021fi 13022 13023 13024# 6. Compiler characteristics 13025 13026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13027$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13028if ${ac_cv_c_const+:} false; then : 13029 $as_echo_n "(cached) " >&6 13030else 13031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13032/* end confdefs.h. */ 13033 13034int 13035main () 13036{ 13037 13038#ifndef __cplusplus 13039 /* Ultrix mips cc rejects this sort of thing. */ 13040 typedef int charset[2]; 13041 const charset cs = { 0, 0 }; 13042 /* SunOS 4.1.1 cc rejects this. */ 13043 char const *const *pcpcc; 13044 char **ppc; 13045 /* NEC SVR4.0.2 mips cc rejects this. */ 13046 struct point {int x, y;}; 13047 static struct point const zero = {0,0}; 13048 /* AIX XL C 1.02.0.0 rejects this. 13049 It does not let you subtract one const X* pointer from another in 13050 an arm of an if-expression whose if-part is not a constant 13051 expression */ 13052 const char *g = "string"; 13053 pcpcc = &g + (g ? g-g : 0); 13054 /* HPUX 7.0 cc rejects these. */ 13055 ++pcpcc; 13056 ppc = (char**) pcpcc; 13057 pcpcc = (char const *const *) ppc; 13058 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13059 char tx; 13060 char *t = &tx; 13061 char const *s = 0 ? (char *) 0 : (char const *) 0; 13062 13063 *t++ = 0; 13064 if (s) return 0; 13065 } 13066 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13067 int x[] = {25, 17}; 13068 const int *foo = &x[0]; 13069 ++foo; 13070 } 13071 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13072 typedef const int *iptr; 13073 iptr p = 0; 13074 ++p; 13075 } 13076 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13077 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13078 struct s { int j; const int *ap[3]; } bx; 13079 struct s *b = &bx; b->j = 5; 13080 } 13081 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13082 const int foo = 10; 13083 if (!foo) return 0; 13084 } 13085 return !cs[0] && !zero.x; 13086#endif 13087 13088 ; 13089 return 0; 13090} 13091_ACEOF 13092if ac_fn_c_try_compile "$LINENO"; then : 13093 ac_cv_c_const=yes 13094else 13095 ac_cv_c_const=no 13096fi 13097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13098fi 13099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13100$as_echo "$ac_cv_c_const" >&6; } 13101if test $ac_cv_c_const = no; then 13102 13103$as_echo "#define const /**/" >>confdefs.h 13104 13105fi 13106 13107 13108 13109# 7. Functions, global variables 13110 13111ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 13112if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 13113 ac_have_decl=1 13114else 13115 ac_have_decl=0 13116fi 13117 13118cat >>confdefs.h <<_ACEOF 13119#define HAVE_DECL_STRERROR_R $ac_have_decl 13120_ACEOF 13121 13122for ac_func in strerror_r 13123do : 13124 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 13125if test "x$ac_cv_func_strerror_r" = xyes; then : 13126 cat >>confdefs.h <<_ACEOF 13127#define HAVE_STRERROR_R 1 13128_ACEOF 13129 13130fi 13131done 13132 13133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 13134$as_echo_n "checking whether strerror_r returns char *... " >&6; } 13135if ${ac_cv_func_strerror_r_char_p+:} false; then : 13136 $as_echo_n "(cached) " >&6 13137else 13138 13139 ac_cv_func_strerror_r_char_p=no 13140 if test $ac_cv_have_decl_strerror_r = yes; then 13141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13142/* end confdefs.h. */ 13143$ac_includes_default 13144int 13145main () 13146{ 13147 13148 char buf[100]; 13149 char x = *strerror_r (0, buf, sizeof buf); 13150 char *p = strerror_r (0, buf, sizeof buf); 13151 return !p || x; 13152 13153 ; 13154 return 0; 13155} 13156_ACEOF 13157if ac_fn_c_try_compile "$LINENO"; then : 13158 ac_cv_func_strerror_r_char_p=yes 13159fi 13160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13161 else 13162 # strerror_r is not declared. Choose between 13163 # systems that have relatively inaccessible declarations for the 13164 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 13165 # former has a strerror_r that returns char*, while the latter 13166 # has a strerror_r that returns `int'. 13167 # This test should segfault on the DEC system. 13168 if test "$cross_compiling" = yes; then : 13169 : 13170else 13171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13172/* end confdefs.h. */ 13173$ac_includes_default 13174 extern char *strerror_r (); 13175int 13176main () 13177{ 13178char buf[100]; 13179 char x = *strerror_r (0, buf, sizeof buf); 13180 return ! isalpha (x); 13181 ; 13182 return 0; 13183} 13184_ACEOF 13185if ac_fn_c_try_run "$LINENO"; then : 13186 ac_cv_func_strerror_r_char_p=yes 13187fi 13188rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13189 conftest.$ac_objext conftest.beam conftest.$ac_ext 13190fi 13191 13192 fi 13193 13194fi 13195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 13196$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 13197if test $ac_cv_func_strerror_r_char_p = yes; then 13198 13199$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 13200 13201fi 13202 13203for ac_func in strtoul strtoll strlcat mbstowcs wcstombs mbrtoc16 c16rtomb 13204do : 13205 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13206ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13207if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13208 cat >>confdefs.h <<_ACEOF 13209#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13210_ACEOF 13211 13212fi 13213done 13214 13215 13216for ac_func in PQsslInUse 13217do : 13218 ac_fn_c_check_func "$LINENO" "PQsslInUse" "ac_cv_func_PQsslInUse" 13219if test "x$ac_cv_func_PQsslInUse" = xyes; then : 13220 cat >>confdefs.h <<_ACEOF 13221#define HAVE_PQSSLINUSE 1 13222_ACEOF 13223 13224fi 13225done 13226 13227 13228if test "$enable_pthreads" = yes; then 13229 for ac_func in localtime_r strtok_r pthread_mutexattr_settype 13230do : 13231 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13232ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13233if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13234 cat >>confdefs.h <<_ACEOF 13235#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13236_ACEOF 13237 13238fi 13239done 13240 13241 13242 if test x"$ac_cv_func_pthread_mutexattr_settype" = xyes; then 13243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13244/* end confdefs.h. */ 13245#include <pthread.h> 13246int 13247main () 13248{ 13249int i = PTHREAD_MUTEX_RECURSIVE; 13250 ; 13251 return 0; 13252} 13253_ACEOF 13254if ac_fn_c_try_compile "$LINENO"; then : 13255 13256$as_echo "#define PG_RECURSIVE_MUTEXATTR PTHREAD_MUTEX_RECURSIVE" >>confdefs.h 13257 13258else 13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13260/* end confdefs.h. */ 13261#include <pthread.h> 13262int 13263main () 13264{ 13265int i = PTHREAD_MUTEX_RECURSIVE_NP; 13266 ; 13267 return 0; 13268} 13269_ACEOF 13270if ac_fn_c_try_compile "$LINENO"; then : 13271 13272$as_echo "#define PG_RECURSIVE_MUTEXATTR PTHREAD_MUTEX_RECURSIVE_NP" >>confdefs.h 13273 13274fi 13275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13276fi 13277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13278 fi 13279fi 13280 13281# 8. Libltdl This release doesn't need libltdl 13282# AC_CHECK_LIB(ltdl, lt_dlopen) 13283 13284 13285ac_config_files="$ac_config_files Makefile test/Makefile" 13286 13287cat >confcache <<\_ACEOF 13288# This file is a shell script that caches the results of configure 13289# tests run on this system so they can be shared between configure 13290# scripts and configure runs, see configure's option --config-cache. 13291# It is not useful on other systems. If it contains results you don't 13292# want to keep, you may remove or edit it. 13293# 13294# config.status only pays attention to the cache file if you give it 13295# the --recheck option to rerun configure. 13296# 13297# `ac_cv_env_foo' variables (set or unset) will be overridden when 13298# loading this file, other *unset* `ac_cv_foo' will be assigned the 13299# following values. 13300 13301_ACEOF 13302 13303# The following way of writing the cache mishandles newlines in values, 13304# but we know of no workaround that is simple, portable, and efficient. 13305# So, we kill variables containing newlines. 13306# Ultrix sh set writes to stderr and can't be redirected directly, 13307# and sets the high bit in the cache file unless we assign to the vars. 13308( 13309 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13310 eval ac_val=\$$ac_var 13311 case $ac_val in #( 13312 *${as_nl}*) 13313 case $ac_var in #( 13314 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13315$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13316 esac 13317 case $ac_var in #( 13318 _ | IFS | as_nl) ;; #( 13319 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13320 *) { eval $ac_var=; unset $ac_var;} ;; 13321 esac ;; 13322 esac 13323 done 13324 13325 (set) 2>&1 | 13326 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13327 *${as_nl}ac_space=\ *) 13328 # `set' does not quote correctly, so add quotes: double-quote 13329 # substitution turns \\\\ into \\, and sed turns \\ into \. 13330 sed -n \ 13331 "s/'/'\\\\''/g; 13332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13333 ;; #( 13334 *) 13335 # `set' quotes correctly as required by POSIX, so do not add quotes. 13336 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13337 ;; 13338 esac | 13339 sort 13340) | 13341 sed ' 13342 /^ac_cv_env_/b end 13343 t clear 13344 :clear 13345 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13346 t end 13347 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13348 :end' >>confcache 13349if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13350 if test -w "$cache_file"; then 13351 if test "x$cache_file" != "x/dev/null"; then 13352 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13353$as_echo "$as_me: updating cache $cache_file" >&6;} 13354 if test ! -f "$cache_file" || test -h "$cache_file"; then 13355 cat confcache >"$cache_file" 13356 else 13357 case $cache_file in #( 13358 */* | ?:*) 13359 mv -f confcache "$cache_file"$$ && 13360 mv -f "$cache_file"$$ "$cache_file" ;; #( 13361 *) 13362 mv -f confcache "$cache_file" ;; 13363 esac 13364 fi 13365 fi 13366 else 13367 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13368$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13369 fi 13370fi 13371rm -f confcache 13372 13373test "x$prefix" = xNONE && prefix=$ac_default_prefix 13374# Let make expand exec_prefix. 13375test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13376 13377DEFS=-DHAVE_CONFIG_H 13378 13379ac_libobjs= 13380ac_ltlibobjs= 13381for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13382 # 1. Remove the extension, and $U if already installed. 13383 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13384 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13385 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13386 # will be set to the directory where LIBOBJS objects are built. 13387 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13388 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13389done 13390LIBOBJS=$ac_libobjs 13391 13392LTLIBOBJS=$ac_ltlibobjs 13393 13394 13395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13396$as_echo_n "checking that generated files are newer than configure... " >&6; } 13397 if test -n "$am_sleep_pid"; then 13398 # Hide warnings about reused PIDs. 13399 wait $am_sleep_pid 2>/dev/null 13400 fi 13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13402$as_echo "done" >&6; } 13403 if test -n "$EXEEXT"; then 13404 am__EXEEXT_TRUE= 13405 am__EXEEXT_FALSE='#' 13406else 13407 am__EXEEXT_TRUE='#' 13408 am__EXEEXT_FALSE= 13409fi 13410 13411if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13412 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 13413Usually this means the macro was only invoked conditionally." "$LINENO" 5 13414fi 13415if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13416 as_fn_error $? "conditional \"AMDEP\" was never defined. 13417Usually this means the macro was only invoked conditionally." "$LINENO" 5 13418fi 13419if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13420 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13421Usually this means the macro was only invoked conditionally." "$LINENO" 5 13422fi 13423if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then 13424 as_fn_error $? "conditional \"GCC\" was never defined. 13425Usually this means the macro was only invoked conditionally." "$LINENO" 5 13426fi 13427 13428: "${CONFIG_STATUS=./config.status}" 13429ac_write_fail=0 13430ac_clean_files_save=$ac_clean_files 13431ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13432{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13433$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13434as_write_fail=0 13435cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13436#! $SHELL 13437# Generated by $as_me. 13438# Run this file to recreate the current configuration. 13439# Compiler output produced by configure, useful for debugging 13440# configure, is in config.log if it exists. 13441 13442debug=false 13443ac_cs_recheck=false 13444ac_cs_silent=false 13445 13446SHELL=\${CONFIG_SHELL-$SHELL} 13447export SHELL 13448_ASEOF 13449cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13450## -------------------- ## 13451## M4sh Initialization. ## 13452## -------------------- ## 13453 13454# Be more Bourne compatible 13455DUALCASE=1; export DUALCASE # for MKS sh 13456if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13457 emulate sh 13458 NULLCMD=: 13459 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13460 # is contrary to our usage. Disable this feature. 13461 alias -g '${1+"$@"}'='"$@"' 13462 setopt NO_GLOB_SUBST 13463else 13464 case `(set -o) 2>/dev/null` in #( 13465 *posix*) : 13466 set -o posix ;; #( 13467 *) : 13468 ;; 13469esac 13470fi 13471 13472 13473as_nl=' 13474' 13475export as_nl 13476# Printing a long string crashes Solaris 7 /usr/bin/printf. 13477as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13478as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13479as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13480# Prefer a ksh shell builtin over an external printf program on Solaris, 13481# but without wasting forks for bash or zsh. 13482if test -z "$BASH_VERSION$ZSH_VERSION" \ 13483 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13484 as_echo='print -r --' 13485 as_echo_n='print -rn --' 13486elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13487 as_echo='printf %s\n' 13488 as_echo_n='printf %s' 13489else 13490 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13491 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13492 as_echo_n='/usr/ucb/echo -n' 13493 else 13494 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13495 as_echo_n_body='eval 13496 arg=$1; 13497 case $arg in #( 13498 *"$as_nl"*) 13499 expr "X$arg" : "X\\(.*\\)$as_nl"; 13500 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13501 esac; 13502 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13503 ' 13504 export as_echo_n_body 13505 as_echo_n='sh -c $as_echo_n_body as_echo' 13506 fi 13507 export as_echo_body 13508 as_echo='sh -c $as_echo_body as_echo' 13509fi 13510 13511# The user is always right. 13512if test "${PATH_SEPARATOR+set}" != set; then 13513 PATH_SEPARATOR=: 13514 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13515 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13516 PATH_SEPARATOR=';' 13517 } 13518fi 13519 13520 13521# IFS 13522# We need space, tab and new line, in precisely that order. Quoting is 13523# there to prevent editors from complaining about space-tab. 13524# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13525# splitting by setting IFS to empty value.) 13526IFS=" "" $as_nl" 13527 13528# Find who we are. Look in the path if we contain no directory separator. 13529as_myself= 13530case $0 in #(( 13531 *[\\/]* ) as_myself=$0 ;; 13532 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13533for as_dir in $PATH 13534do 13535 IFS=$as_save_IFS 13536 test -z "$as_dir" && as_dir=. 13537 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13538 done 13539IFS=$as_save_IFS 13540 13541 ;; 13542esac 13543# We did not find ourselves, most probably we were run as `sh COMMAND' 13544# in which case we are not to be found in the path. 13545if test "x$as_myself" = x; then 13546 as_myself=$0 13547fi 13548if test ! -f "$as_myself"; then 13549 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13550 exit 1 13551fi 13552 13553# Unset variables that we do not need and which cause bugs (e.g. in 13554# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13555# suppresses any "Segmentation fault" message there. '((' could 13556# trigger a bug in pdksh 5.2.14. 13557for as_var in BASH_ENV ENV MAIL MAILPATH 13558do eval test x\${$as_var+set} = xset \ 13559 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13560done 13561PS1='$ ' 13562PS2='> ' 13563PS4='+ ' 13564 13565# NLS nuisances. 13566LC_ALL=C 13567export LC_ALL 13568LANGUAGE=C 13569export LANGUAGE 13570 13571# CDPATH. 13572(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13573 13574 13575# as_fn_error STATUS ERROR [LINENO LOG_FD] 13576# ---------------------------------------- 13577# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13578# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13579# script with STATUS, using 1 if that was 0. 13580as_fn_error () 13581{ 13582 as_status=$1; test $as_status -eq 0 && as_status=1 13583 if test "$4"; then 13584 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13585 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13586 fi 13587 $as_echo "$as_me: error: $2" >&2 13588 as_fn_exit $as_status 13589} # as_fn_error 13590 13591 13592# as_fn_set_status STATUS 13593# ----------------------- 13594# Set $? to STATUS, without forking. 13595as_fn_set_status () 13596{ 13597 return $1 13598} # as_fn_set_status 13599 13600# as_fn_exit STATUS 13601# ----------------- 13602# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13603as_fn_exit () 13604{ 13605 set +e 13606 as_fn_set_status $1 13607 exit $1 13608} # as_fn_exit 13609 13610# as_fn_unset VAR 13611# --------------- 13612# Portably unset VAR. 13613as_fn_unset () 13614{ 13615 { eval $1=; unset $1;} 13616} 13617as_unset=as_fn_unset 13618# as_fn_append VAR VALUE 13619# ---------------------- 13620# Append the text in VALUE to the end of the definition contained in VAR. Take 13621# advantage of any shell optimizations that allow amortized linear growth over 13622# repeated appends, instead of the typical quadratic growth present in naive 13623# implementations. 13624if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13625 eval 'as_fn_append () 13626 { 13627 eval $1+=\$2 13628 }' 13629else 13630 as_fn_append () 13631 { 13632 eval $1=\$$1\$2 13633 } 13634fi # as_fn_append 13635 13636# as_fn_arith ARG... 13637# ------------------ 13638# Perform arithmetic evaluation on the ARGs, and store the result in the 13639# global $as_val. Take advantage of shells that can avoid forks. The arguments 13640# must be portable across $(()) and expr. 13641if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13642 eval 'as_fn_arith () 13643 { 13644 as_val=$(( $* )) 13645 }' 13646else 13647 as_fn_arith () 13648 { 13649 as_val=`expr "$@" || test $? -eq 1` 13650 } 13651fi # as_fn_arith 13652 13653 13654if expr a : '\(a\)' >/dev/null 2>&1 && 13655 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13656 as_expr=expr 13657else 13658 as_expr=false 13659fi 13660 13661if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13662 as_basename=basename 13663else 13664 as_basename=false 13665fi 13666 13667if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13668 as_dirname=dirname 13669else 13670 as_dirname=false 13671fi 13672 13673as_me=`$as_basename -- "$0" || 13674$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13675 X"$0" : 'X\(//\)$' \| \ 13676 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13677$as_echo X/"$0" | 13678 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13679 s//\1/ 13680 q 13681 } 13682 /^X\/\(\/\/\)$/{ 13683 s//\1/ 13684 q 13685 } 13686 /^X\/\(\/\).*/{ 13687 s//\1/ 13688 q 13689 } 13690 s/.*/./; q'` 13691 13692# Avoid depending upon Character Ranges. 13693as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13694as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13695as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13696as_cr_digits='0123456789' 13697as_cr_alnum=$as_cr_Letters$as_cr_digits 13698 13699ECHO_C= ECHO_N= ECHO_T= 13700case `echo -n x` in #((((( 13701-n*) 13702 case `echo 'xy\c'` in 13703 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13704 xy) ECHO_C='\c';; 13705 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13706 ECHO_T=' ';; 13707 esac;; 13708*) 13709 ECHO_N='-n';; 13710esac 13711 13712rm -f conf$$ conf$$.exe conf$$.file 13713if test -d conf$$.dir; then 13714 rm -f conf$$.dir/conf$$.file 13715else 13716 rm -f conf$$.dir 13717 mkdir conf$$.dir 2>/dev/null 13718fi 13719if (echo >conf$$.file) 2>/dev/null; then 13720 if ln -s conf$$.file conf$$ 2>/dev/null; then 13721 as_ln_s='ln -s' 13722 # ... but there are two gotchas: 13723 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13724 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13725 # In both cases, we have to default to `cp -pR'. 13726 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13727 as_ln_s='cp -pR' 13728 elif ln conf$$.file conf$$ 2>/dev/null; then 13729 as_ln_s=ln 13730 else 13731 as_ln_s='cp -pR' 13732 fi 13733else 13734 as_ln_s='cp -pR' 13735fi 13736rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13737rmdir conf$$.dir 2>/dev/null 13738 13739 13740# as_fn_mkdir_p 13741# ------------- 13742# Create "$as_dir" as a directory, including parents if necessary. 13743as_fn_mkdir_p () 13744{ 13745 13746 case $as_dir in #( 13747 -*) as_dir=./$as_dir;; 13748 esac 13749 test -d "$as_dir" || eval $as_mkdir_p || { 13750 as_dirs= 13751 while :; do 13752 case $as_dir in #( 13753 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13754 *) as_qdir=$as_dir;; 13755 esac 13756 as_dirs="'$as_qdir' $as_dirs" 13757 as_dir=`$as_dirname -- "$as_dir" || 13758$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13759 X"$as_dir" : 'X\(//\)[^/]' \| \ 13760 X"$as_dir" : 'X\(//\)$' \| \ 13761 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13762$as_echo X"$as_dir" | 13763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13764 s//\1/ 13765 q 13766 } 13767 /^X\(\/\/\)[^/].*/{ 13768 s//\1/ 13769 q 13770 } 13771 /^X\(\/\/\)$/{ 13772 s//\1/ 13773 q 13774 } 13775 /^X\(\/\).*/{ 13776 s//\1/ 13777 q 13778 } 13779 s/.*/./; q'` 13780 test -d "$as_dir" && break 13781 done 13782 test -z "$as_dirs" || eval "mkdir $as_dirs" 13783 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13784 13785 13786} # as_fn_mkdir_p 13787if mkdir -p . 2>/dev/null; then 13788 as_mkdir_p='mkdir -p "$as_dir"' 13789else 13790 test -d ./-p && rmdir ./-p 13791 as_mkdir_p=false 13792fi 13793 13794 13795# as_fn_executable_p FILE 13796# ----------------------- 13797# Test if FILE is an executable regular file. 13798as_fn_executable_p () 13799{ 13800 test -f "$1" && test -x "$1" 13801} # as_fn_executable_p 13802as_test_x='test -x' 13803as_executable_p=as_fn_executable_p 13804 13805# Sed expression to map a string onto a valid CPP name. 13806as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13807 13808# Sed expression to map a string onto a valid variable name. 13809as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13810 13811 13812exec 6>&1 13813## ----------------------------------- ## 13814## Main body of $CONFIG_STATUS script. ## 13815## ----------------------------------- ## 13816_ASEOF 13817test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13818 13819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13820# Save the log message, to keep $0 and so on meaningful, and to 13821# report actual input values of CONFIG_FILES etc. instead of their 13822# values after options handling. 13823ac_log=" 13824This file was extended by psqlodbc $as_me 13.02.0000, which was 13825generated by GNU Autoconf 2.69. Invocation command line was 13826 13827 CONFIG_FILES = $CONFIG_FILES 13828 CONFIG_HEADERS = $CONFIG_HEADERS 13829 CONFIG_LINKS = $CONFIG_LINKS 13830 CONFIG_COMMANDS = $CONFIG_COMMANDS 13831 $ $0 $@ 13832 13833on `(hostname || uname -n) 2>/dev/null | sed 1q` 13834" 13835 13836_ACEOF 13837 13838case $ac_config_files in *" 13839"*) set x $ac_config_files; shift; ac_config_files=$*;; 13840esac 13841 13842case $ac_config_headers in *" 13843"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13844esac 13845 13846 13847cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13848# Files that config.status was made for. 13849config_files="$ac_config_files" 13850config_headers="$ac_config_headers" 13851config_commands="$ac_config_commands" 13852 13853_ACEOF 13854 13855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13856ac_cs_usage="\ 13857\`$as_me' instantiates files and other configuration actions 13858from templates according to the current configuration. Unless the files 13859and actions are specified as TAGs, all are instantiated by default. 13860 13861Usage: $0 [OPTION]... [TAG]... 13862 13863 -h, --help print this help, then exit 13864 -V, --version print version number and configuration settings, then exit 13865 --config print configuration, then exit 13866 -q, --quiet, --silent 13867 do not print progress messages 13868 -d, --debug don't remove temporary files 13869 --recheck update $as_me by reconfiguring in the same conditions 13870 --file=FILE[:TEMPLATE] 13871 instantiate the configuration file FILE 13872 --header=FILE[:TEMPLATE] 13873 instantiate the configuration header FILE 13874 13875Configuration files: 13876$config_files 13877 13878Configuration headers: 13879$config_headers 13880 13881Configuration commands: 13882$config_commands 13883 13884Report bugs to <pgsql-odbc@postgresql.org>." 13885 13886_ACEOF 13887cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13888ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13889ac_cs_version="\\ 13890psqlodbc config.status 13.02.0000 13891configured by $0, generated by GNU Autoconf 2.69, 13892 with options \\"\$ac_cs_config\\" 13893 13894Copyright (C) 2012 Free Software Foundation, Inc. 13895This config.status script is free software; the Free Software Foundation 13896gives unlimited permission to copy, distribute and modify it." 13897 13898ac_pwd='$ac_pwd' 13899srcdir='$srcdir' 13900INSTALL='$INSTALL' 13901MKDIR_P='$MKDIR_P' 13902AWK='$AWK' 13903test -n "\$AWK" || AWK=awk 13904_ACEOF 13905 13906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13907# The default lists apply if the user does not specify any file. 13908ac_need_defaults=: 13909while test $# != 0 13910do 13911 case $1 in 13912 --*=?*) 13913 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13914 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13915 ac_shift=: 13916 ;; 13917 --*=) 13918 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13919 ac_optarg= 13920 ac_shift=: 13921 ;; 13922 *) 13923 ac_option=$1 13924 ac_optarg=$2 13925 ac_shift=shift 13926 ;; 13927 esac 13928 13929 case $ac_option in 13930 # Handling of the options. 13931 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13932 ac_cs_recheck=: ;; 13933 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13934 $as_echo "$ac_cs_version"; exit ;; 13935 --config | --confi | --conf | --con | --co | --c ) 13936 $as_echo "$ac_cs_config"; exit ;; 13937 --debug | --debu | --deb | --de | --d | -d ) 13938 debug=: ;; 13939 --file | --fil | --fi | --f ) 13940 $ac_shift 13941 case $ac_optarg in 13942 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13943 '') as_fn_error $? "missing file argument" ;; 13944 esac 13945 as_fn_append CONFIG_FILES " '$ac_optarg'" 13946 ac_need_defaults=false;; 13947 --header | --heade | --head | --hea ) 13948 $ac_shift 13949 case $ac_optarg in 13950 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13951 esac 13952 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13953 ac_need_defaults=false;; 13954 --he | --h) 13955 # Conflict between --help and --header 13956 as_fn_error $? "ambiguous option: \`$1' 13957Try \`$0 --help' for more information.";; 13958 --help | --hel | -h ) 13959 $as_echo "$ac_cs_usage"; exit ;; 13960 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13961 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13962 ac_cs_silent=: ;; 13963 13964 # This is an error. 13965 -*) as_fn_error $? "unrecognized option: \`$1' 13966Try \`$0 --help' for more information." ;; 13967 13968 *) as_fn_append ac_config_targets " $1" 13969 ac_need_defaults=false ;; 13970 13971 esac 13972 shift 13973done 13974 13975ac_configure_extra_args= 13976 13977if $ac_cs_silent; then 13978 exec 6>/dev/null 13979 ac_configure_extra_args="$ac_configure_extra_args --silent" 13980fi 13981 13982_ACEOF 13983cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13984if \$ac_cs_recheck; then 13985 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13986 shift 13987 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13988 CONFIG_SHELL='$SHELL' 13989 export CONFIG_SHELL 13990 exec "\$@" 13991fi 13992 13993_ACEOF 13994cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13995exec 5>>config.log 13996{ 13997 echo 13998 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13999## Running $as_me. ## 14000_ASBOX 14001 $as_echo "$ac_log" 14002} >&5 14003 14004_ACEOF 14005cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14006# 14007# INIT-COMMANDS 14008# 14009AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14010 14011 14012# The HP-UX ksh and POSIX shell print the target directory to stdout 14013# if CDPATH is set. 14014(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14015 14016sed_quote_subst='$sed_quote_subst' 14017double_quote_subst='$double_quote_subst' 14018delay_variable_subst='$delay_variable_subst' 14019AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 14020DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14021OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14022enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14023macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14024macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14025enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14026pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14027enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14028SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14029ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14030PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14031host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14032host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14033host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14034build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14035build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14036build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14037SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14038Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14039GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14040EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14041FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14042LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14043NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14044LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14045max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14046ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14047exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14048lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14049lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14050lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14051lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14052lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14053reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14054reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14055deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14056file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14057file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14058want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14059sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14060AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14061AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14062archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14063STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14064RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14065old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14066old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14067old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14068lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14069CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14070CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14071compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14072GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14073lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14074lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14075lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14076lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 14077nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14078lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14079objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14080MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14081lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14082lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14083lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14084lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14085lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14086need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14087MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14088DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14089NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14090LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14091OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14092OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14093libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14094shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14095extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14096archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14097enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14098export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14099whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14100compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14101old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14102old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14103archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14104archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14105module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14106module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14107with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14108allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14109no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14110hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14111hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14112hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14113hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14114hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14115hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14116hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14117inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14118link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14119always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14120export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14121exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14122include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14123prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14124postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14125file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14126variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14127need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14128need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14129version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14130runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14131shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14132shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14133libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14134library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14135soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14136install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14137postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14138postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14139finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14140finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14141hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14142sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14143sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 14144hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14145enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14146enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14147enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14148old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14149striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14150 14151LTCC='$LTCC' 14152LTCFLAGS='$LTCFLAGS' 14153compiler='$compiler_DEFAULT' 14154 14155# A function that is used when there is no print builtin or printf. 14156func_fallback_echo () 14157{ 14158 eval 'cat <<_LTECHO_EOF 14159\$1 14160_LTECHO_EOF' 14161} 14162 14163# Quote evaled strings. 14164for var in AS \ 14165DLLTOOL \ 14166OBJDUMP \ 14167SHELL \ 14168ECHO \ 14169PATH_SEPARATOR \ 14170SED \ 14171GREP \ 14172EGREP \ 14173FGREP \ 14174LD \ 14175NM \ 14176LN_S \ 14177lt_SP2NL \ 14178lt_NL2SP \ 14179reload_flag \ 14180deplibs_check_method \ 14181file_magic_cmd \ 14182file_magic_glob \ 14183want_nocaseglob \ 14184sharedlib_from_linklib_cmd \ 14185AR \ 14186AR_FLAGS \ 14187archiver_list_spec \ 14188STRIP \ 14189RANLIB \ 14190CC \ 14191CFLAGS \ 14192compiler \ 14193lt_cv_sys_global_symbol_pipe \ 14194lt_cv_sys_global_symbol_to_cdecl \ 14195lt_cv_sys_global_symbol_to_c_name_address \ 14196lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14197nm_file_list_spec \ 14198lt_prog_compiler_no_builtin_flag \ 14199lt_prog_compiler_pic \ 14200lt_prog_compiler_wl \ 14201lt_prog_compiler_static \ 14202lt_cv_prog_compiler_c_o \ 14203need_locks \ 14204MANIFEST_TOOL \ 14205DSYMUTIL \ 14206NMEDIT \ 14207LIPO \ 14208OTOOL \ 14209OTOOL64 \ 14210shrext_cmds \ 14211export_dynamic_flag_spec \ 14212whole_archive_flag_spec \ 14213compiler_needs_object \ 14214with_gnu_ld \ 14215allow_undefined_flag \ 14216no_undefined_flag \ 14217hardcode_libdir_flag_spec \ 14218hardcode_libdir_separator \ 14219exclude_expsyms \ 14220include_expsyms \ 14221file_list_spec \ 14222variables_saved_for_relink \ 14223libname_spec \ 14224library_names_spec \ 14225soname_spec \ 14226install_override_mode \ 14227finish_eval \ 14228old_striplib \ 14229striplib; do 14230 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14231 *[\\\\\\\`\\"\\\$]*) 14232 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14233 ;; 14234 *) 14235 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14236 ;; 14237 esac 14238done 14239 14240# Double-quote double-evaled strings. 14241for var in reload_cmds \ 14242old_postinstall_cmds \ 14243old_postuninstall_cmds \ 14244old_archive_cmds \ 14245extract_expsyms_cmds \ 14246old_archive_from_new_cmds \ 14247old_archive_from_expsyms_cmds \ 14248archive_cmds \ 14249archive_expsym_cmds \ 14250module_cmds \ 14251module_expsym_cmds \ 14252export_symbols_cmds \ 14253prelink_cmds \ 14254postlink_cmds \ 14255postinstall_cmds \ 14256postuninstall_cmds \ 14257finish_cmds \ 14258sys_lib_search_path_spec \ 14259sys_lib_dlsearch_path_spec; do 14260 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14261 *[\\\\\\\`\\"\\\$]*) 14262 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14263 ;; 14264 *) 14265 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14266 ;; 14267 esac 14268done 14269 14270ac_aux_dir='$ac_aux_dir' 14271xsi_shell='$xsi_shell' 14272lt_shell_append='$lt_shell_append' 14273 14274# See if we are running on zsh, and set the options which allow our 14275# commands through without removal of \ escapes INIT. 14276if test -n "\${ZSH_VERSION+set}" ; then 14277 setopt NO_GLOB_SUBST 14278fi 14279 14280 14281 PACKAGE='$PACKAGE' 14282 VERSION='$VERSION' 14283 TIMESTAMP='$TIMESTAMP' 14284 RM='$RM' 14285 ofile='$ofile' 14286 14287 14288 14289 14290_ACEOF 14291 14292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14293 14294# Handling of arguments. 14295for ac_config_target in $ac_config_targets 14296do 14297 case $ac_config_target in 14298 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14299 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14300 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14301 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14302 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 14303 14304 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14305 esac 14306done 14307 14308 14309# If the user did not use the arguments to specify the items to instantiate, 14310# then the envvar interface is used. Set only those that are not. 14311# We use the long form for the default assignment because of an extremely 14312# bizarre bug on SunOS 4.1.3. 14313if $ac_need_defaults; then 14314 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14315 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14316 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14317fi 14318 14319# Have a temporary directory for convenience. Make it in the build tree 14320# simply because there is no reason against having it here, and in addition, 14321# creating and moving files from /tmp can sometimes cause problems. 14322# Hook for its removal unless debugging. 14323# Note that there is a small window in which the directory will not be cleaned: 14324# after its creation but before its name has been assigned to `$tmp'. 14325$debug || 14326{ 14327 tmp= ac_tmp= 14328 trap 'exit_status=$? 14329 : "${ac_tmp:=$tmp}" 14330 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14331' 0 14332 trap 'as_fn_exit 1' 1 2 13 15 14333} 14334# Create a (secure) tmp directory for tmp files. 14335 14336{ 14337 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14338 test -d "$tmp" 14339} || 14340{ 14341 tmp=./conf$$-$RANDOM 14342 (umask 077 && mkdir "$tmp") 14343} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14344ac_tmp=$tmp 14345 14346# Set up the scripts for CONFIG_FILES section. 14347# No need to generate them if there are no CONFIG_FILES. 14348# This happens for instance with `./config.status config.h'. 14349if test -n "$CONFIG_FILES"; then 14350 14351 14352ac_cr=`echo X | tr X '\015'` 14353# On cygwin, bash can eat \r inside `` if the user requested igncr. 14354# But we know of no other shell where ac_cr would be empty at this 14355# point, so we can use a bashism as a fallback. 14356if test "x$ac_cr" = x; then 14357 eval ac_cr=\$\'\\r\' 14358fi 14359ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14360if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14361 ac_cs_awk_cr='\\r' 14362else 14363 ac_cs_awk_cr=$ac_cr 14364fi 14365 14366echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14367_ACEOF 14368 14369 14370{ 14371 echo "cat >conf$$subs.awk <<_ACEOF" && 14372 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14373 echo "_ACEOF" 14374} >conf$$subs.sh || 14375 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14376ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14377ac_delim='%!_!# ' 14378for ac_last_try in false false false false false :; do 14379 . ./conf$$subs.sh || 14380 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14381 14382 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14383 if test $ac_delim_n = $ac_delim_num; then 14384 break 14385 elif $ac_last_try; then 14386 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14387 else 14388 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14389 fi 14390done 14391rm -f conf$$subs.sh 14392 14393cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14394cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14395_ACEOF 14396sed -n ' 14397h 14398s/^/S["/; s/!.*/"]=/ 14399p 14400g 14401s/^[^!]*!// 14402:repl 14403t repl 14404s/'"$ac_delim"'$// 14405t delim 14406:nl 14407h 14408s/\(.\{148\}\)..*/\1/ 14409t more1 14410s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14411p 14412n 14413b repl 14414:more1 14415s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14416p 14417g 14418s/.\{148\}// 14419t nl 14420:delim 14421h 14422s/\(.\{148\}\)..*/\1/ 14423t more2 14424s/["\\]/\\&/g; s/^/"/; s/$/"/ 14425p 14426b 14427:more2 14428s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14429p 14430g 14431s/.\{148\}// 14432t delim 14433' <conf$$subs.awk | sed ' 14434/^[^""]/{ 14435 N 14436 s/\n// 14437} 14438' >>$CONFIG_STATUS || ac_write_fail=1 14439rm -f conf$$subs.awk 14440cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14441_ACAWK 14442cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14443 for (key in S) S_is_set[key] = 1 14444 FS = "" 14445 14446} 14447{ 14448 line = $ 0 14449 nfields = split(line, field, "@") 14450 substed = 0 14451 len = length(field[1]) 14452 for (i = 2; i < nfields; i++) { 14453 key = field[i] 14454 keylen = length(key) 14455 if (S_is_set[key]) { 14456 value = S[key] 14457 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14458 len += length(value) + length(field[++i]) 14459 substed = 1 14460 } else 14461 len += 1 + keylen 14462 } 14463 14464 print line 14465} 14466 14467_ACAWK 14468_ACEOF 14469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14470if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14471 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14472else 14473 cat 14474fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14475 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14476_ACEOF 14477 14478# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14479# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14480# trailing colons and then remove the whole line if VPATH becomes empty 14481# (actually we leave an empty line to preserve line numbers). 14482if test "x$srcdir" = x.; then 14483 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14484h 14485s/// 14486s/^/:/ 14487s/[ ]*$/:/ 14488s/:\$(srcdir):/:/g 14489s/:\${srcdir}:/:/g 14490s/:@srcdir@:/:/g 14491s/^:*// 14492s/:*$// 14493x 14494s/\(=[ ]*\).*/\1/ 14495G 14496s/\n// 14497s/^[^=]*=[ ]*$// 14498}' 14499fi 14500 14501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14502fi # test -n "$CONFIG_FILES" 14503 14504# Set up the scripts for CONFIG_HEADERS section. 14505# No need to generate them if there are no CONFIG_HEADERS. 14506# This happens for instance with `./config.status Makefile'. 14507if test -n "$CONFIG_HEADERS"; then 14508cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14509BEGIN { 14510_ACEOF 14511 14512# Transform confdefs.h into an awk script `defines.awk', embedded as 14513# here-document in config.status, that substitutes the proper values into 14514# config.h.in to produce config.h. 14515 14516# Create a delimiter string that does not exist in confdefs.h, to ease 14517# handling of long lines. 14518ac_delim='%!_!# ' 14519for ac_last_try in false false :; do 14520 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14521 if test -z "$ac_tt"; then 14522 break 14523 elif $ac_last_try; then 14524 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14525 else 14526 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14527 fi 14528done 14529 14530# For the awk script, D is an array of macro values keyed by name, 14531# likewise P contains macro parameters if any. Preserve backslash 14532# newline sequences. 14533 14534ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14535sed -n ' 14536s/.\{148\}/&'"$ac_delim"'/g 14537t rset 14538:rset 14539s/^[ ]*#[ ]*define[ ][ ]*/ / 14540t def 14541d 14542:def 14543s/\\$// 14544t bsnl 14545s/["\\]/\\&/g 14546s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14547D["\1"]=" \3"/p 14548s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14549d 14550:bsnl 14551s/["\\]/\\&/g 14552s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14553D["\1"]=" \3\\\\\\n"\\/p 14554t cont 14555s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14556t cont 14557d 14558:cont 14559n 14560s/.\{148\}/&'"$ac_delim"'/g 14561t clear 14562:clear 14563s/\\$// 14564t bsnlc 14565s/["\\]/\\&/g; s/^/"/; s/$/"/p 14566d 14567:bsnlc 14568s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14569b cont 14570' <confdefs.h | sed ' 14571s/'"$ac_delim"'/"\\\ 14572"/g' >>$CONFIG_STATUS || ac_write_fail=1 14573 14574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14575 for (key in D) D_is_set[key] = 1 14576 FS = "" 14577} 14578/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14579 line = \$ 0 14580 split(line, arg, " ") 14581 if (arg[1] == "#") { 14582 defundef = arg[2] 14583 mac1 = arg[3] 14584 } else { 14585 defundef = substr(arg[1], 2) 14586 mac1 = arg[2] 14587 } 14588 split(mac1, mac2, "(") #) 14589 macro = mac2[1] 14590 prefix = substr(line, 1, index(line, defundef) - 1) 14591 if (D_is_set[macro]) { 14592 # Preserve the white space surrounding the "#". 14593 print prefix "define", macro P[macro] D[macro] 14594 next 14595 } else { 14596 # Replace #undef with comments. This is necessary, for example, 14597 # in the case of _POSIX_SOURCE, which is predefined and required 14598 # on some systems where configure will not decide to define it. 14599 if (defundef == "undef") { 14600 print "/*", prefix defundef, macro, "*/" 14601 next 14602 } 14603 } 14604} 14605{ print } 14606_ACAWK 14607_ACEOF 14608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14609 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14610fi # test -n "$CONFIG_HEADERS" 14611 14612 14613eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14614shift 14615for ac_tag 14616do 14617 case $ac_tag in 14618 :[FHLC]) ac_mode=$ac_tag; continue;; 14619 esac 14620 case $ac_mode$ac_tag in 14621 :[FHL]*:*);; 14622 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14623 :[FH]-) ac_tag=-:-;; 14624 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14625 esac 14626 ac_save_IFS=$IFS 14627 IFS=: 14628 set x $ac_tag 14629 IFS=$ac_save_IFS 14630 shift 14631 ac_file=$1 14632 shift 14633 14634 case $ac_mode in 14635 :L) ac_source=$1;; 14636 :[FH]) 14637 ac_file_inputs= 14638 for ac_f 14639 do 14640 case $ac_f in 14641 -) ac_f="$ac_tmp/stdin";; 14642 *) # Look for the file first in the build tree, then in the source tree 14643 # (if the path is not absolute). The absolute path cannot be DOS-style, 14644 # because $ac_f cannot contain `:'. 14645 test -f "$ac_f" || 14646 case $ac_f in 14647 [\\/$]*) false;; 14648 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14649 esac || 14650 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14651 esac 14652 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14653 as_fn_append ac_file_inputs " '$ac_f'" 14654 done 14655 14656 # Let's still pretend it is `configure' which instantiates (i.e., don't 14657 # use $as_me), people would be surprised to read: 14658 # /* config.h. Generated by config.status. */ 14659 configure_input='Generated from '` 14660 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14661 `' by configure.' 14662 if test x"$ac_file" != x-; then 14663 configure_input="$ac_file. $configure_input" 14664 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14665$as_echo "$as_me: creating $ac_file" >&6;} 14666 fi 14667 # Neutralize special characters interpreted by sed in replacement strings. 14668 case $configure_input in #( 14669 *\&* | *\|* | *\\* ) 14670 ac_sed_conf_input=`$as_echo "$configure_input" | 14671 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14672 *) ac_sed_conf_input=$configure_input;; 14673 esac 14674 14675 case $ac_tag in 14676 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14677 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14678 esac 14679 ;; 14680 esac 14681 14682 ac_dir=`$as_dirname -- "$ac_file" || 14683$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14684 X"$ac_file" : 'X\(//\)[^/]' \| \ 14685 X"$ac_file" : 'X\(//\)$' \| \ 14686 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14687$as_echo X"$ac_file" | 14688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14689 s//\1/ 14690 q 14691 } 14692 /^X\(\/\/\)[^/].*/{ 14693 s//\1/ 14694 q 14695 } 14696 /^X\(\/\/\)$/{ 14697 s//\1/ 14698 q 14699 } 14700 /^X\(\/\).*/{ 14701 s//\1/ 14702 q 14703 } 14704 s/.*/./; q'` 14705 as_dir="$ac_dir"; as_fn_mkdir_p 14706 ac_builddir=. 14707 14708case "$ac_dir" in 14709.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14710*) 14711 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14712 # A ".." for each directory in $ac_dir_suffix. 14713 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14714 case $ac_top_builddir_sub in 14715 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14716 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14717 esac ;; 14718esac 14719ac_abs_top_builddir=$ac_pwd 14720ac_abs_builddir=$ac_pwd$ac_dir_suffix 14721# for backward compatibility: 14722ac_top_builddir=$ac_top_build_prefix 14723 14724case $srcdir in 14725 .) # We are building in place. 14726 ac_srcdir=. 14727 ac_top_srcdir=$ac_top_builddir_sub 14728 ac_abs_top_srcdir=$ac_pwd ;; 14729 [\\/]* | ?:[\\/]* ) # Absolute name. 14730 ac_srcdir=$srcdir$ac_dir_suffix; 14731 ac_top_srcdir=$srcdir 14732 ac_abs_top_srcdir=$srcdir ;; 14733 *) # Relative name. 14734 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14735 ac_top_srcdir=$ac_top_build_prefix$srcdir 14736 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14737esac 14738ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14739 14740 14741 case $ac_mode in 14742 :F) 14743 # 14744 # CONFIG_FILE 14745 # 14746 14747 case $INSTALL in 14748 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14749 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14750 esac 14751 ac_MKDIR_P=$MKDIR_P 14752 case $MKDIR_P in 14753 [\\/$]* | ?:[\\/]* ) ;; 14754 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14755 esac 14756_ACEOF 14757 14758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14759# If the template does not know about datarootdir, expand it. 14760# FIXME: This hack should be removed a few years after 2.60. 14761ac_datarootdir_hack=; ac_datarootdir_seen= 14762ac_sed_dataroot=' 14763/datarootdir/ { 14764 p 14765 q 14766} 14767/@datadir@/p 14768/@docdir@/p 14769/@infodir@/p 14770/@localedir@/p 14771/@mandir@/p' 14772case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14773*datarootdir*) ac_datarootdir_seen=yes;; 14774*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14776$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14777_ACEOF 14778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14779 ac_datarootdir_hack=' 14780 s&@datadir@&$datadir&g 14781 s&@docdir@&$docdir&g 14782 s&@infodir@&$infodir&g 14783 s&@localedir@&$localedir&g 14784 s&@mandir@&$mandir&g 14785 s&\\\${datarootdir}&$datarootdir&g' ;; 14786esac 14787_ACEOF 14788 14789# Neutralize VPATH when `$srcdir' = `.'. 14790# Shell code in configure.ac might set extrasub. 14791# FIXME: do we really want to maintain this feature? 14792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14793ac_sed_extra="$ac_vpsub 14794$extrasub 14795_ACEOF 14796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14797:t 14798/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14799s|@configure_input@|$ac_sed_conf_input|;t t 14800s&@top_builddir@&$ac_top_builddir_sub&;t t 14801s&@top_build_prefix@&$ac_top_build_prefix&;t t 14802s&@srcdir@&$ac_srcdir&;t t 14803s&@abs_srcdir@&$ac_abs_srcdir&;t t 14804s&@top_srcdir@&$ac_top_srcdir&;t t 14805s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14806s&@builddir@&$ac_builddir&;t t 14807s&@abs_builddir@&$ac_abs_builddir&;t t 14808s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14809s&@INSTALL@&$ac_INSTALL&;t t 14810s&@MKDIR_P@&$ac_MKDIR_P&;t t 14811$ac_datarootdir_hack 14812" 14813eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14814 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14815 14816test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14817 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14818 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14819 "$ac_tmp/out"`; test -z "$ac_out"; } && 14820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14821which seems to be undefined. Please make sure it is defined" >&5 14822$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14823which seems to be undefined. Please make sure it is defined" >&2;} 14824 14825 rm -f "$ac_tmp/stdin" 14826 case $ac_file in 14827 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14828 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14829 esac \ 14830 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14831 ;; 14832 :H) 14833 # 14834 # CONFIG_HEADER 14835 # 14836 if test x"$ac_file" != x-; then 14837 { 14838 $as_echo "/* $configure_input */" \ 14839 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14840 } >"$ac_tmp/config.h" \ 14841 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14842 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14843 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14844$as_echo "$as_me: $ac_file is unchanged" >&6;} 14845 else 14846 rm -f "$ac_file" 14847 mv "$ac_tmp/config.h" "$ac_file" \ 14848 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14849 fi 14850 else 14851 $as_echo "/* $configure_input */" \ 14852 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14853 || as_fn_error $? "could not create -" "$LINENO" 5 14854 fi 14855# Compute "$ac_file"'s index in $config_headers. 14856_am_arg="$ac_file" 14857_am_stamp_count=1 14858for _am_header in $config_headers :; do 14859 case $_am_header in 14860 $_am_arg | $_am_arg:* ) 14861 break ;; 14862 * ) 14863 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14864 esac 14865done 14866echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14867$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14868 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14869 X"$_am_arg" : 'X\(//\)$' \| \ 14870 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14871$as_echo X"$_am_arg" | 14872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14873 s//\1/ 14874 q 14875 } 14876 /^X\(\/\/\)[^/].*/{ 14877 s//\1/ 14878 q 14879 } 14880 /^X\(\/\/\)$/{ 14881 s//\1/ 14882 q 14883 } 14884 /^X\(\/\).*/{ 14885 s//\1/ 14886 q 14887 } 14888 s/.*/./; q'`/stamp-h$_am_stamp_count 14889 ;; 14890 14891 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14892$as_echo "$as_me: executing $ac_file commands" >&6;} 14893 ;; 14894 esac 14895 14896 14897 case $ac_file$ac_mode in 14898 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14899 # Older Autoconf quotes --file arguments for eval, but not when files 14900 # are listed without --file. Let's play safe and only enable the eval 14901 # if we detect the quoting. 14902 case $CONFIG_FILES in 14903 *\'*) eval set x "$CONFIG_FILES" ;; 14904 *) set x $CONFIG_FILES ;; 14905 esac 14906 shift 14907 for mf 14908 do 14909 # Strip MF so we end up with the name of the file. 14910 mf=`echo "$mf" | sed -e 's/:.*$//'` 14911 # Check whether this is an Automake generated Makefile or not. 14912 # We used to match only the files named 'Makefile.in', but 14913 # some people rename them; so instead we look at the file content. 14914 # Grep'ing the first line is not enough: some people post-process 14915 # each Makefile.in and add a new line on top of each file to say so. 14916 # Grep'ing the whole file is not good either: AIX grep has a line 14917 # limit of 2048, but all sed's we know have understand at least 4000. 14918 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14919 dirpart=`$as_dirname -- "$mf" || 14920$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14921 X"$mf" : 'X\(//\)[^/]' \| \ 14922 X"$mf" : 'X\(//\)$' \| \ 14923 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14924$as_echo X"$mf" | 14925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14926 s//\1/ 14927 q 14928 } 14929 /^X\(\/\/\)[^/].*/{ 14930 s//\1/ 14931 q 14932 } 14933 /^X\(\/\/\)$/{ 14934 s//\1/ 14935 q 14936 } 14937 /^X\(\/\).*/{ 14938 s//\1/ 14939 q 14940 } 14941 s/.*/./; q'` 14942 else 14943 continue 14944 fi 14945 # Extract the definition of DEPDIR, am__include, and am__quote 14946 # from the Makefile without running 'make'. 14947 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14948 test -z "$DEPDIR" && continue 14949 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14950 test -z "$am__include" && continue 14951 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14952 # Find all dependency output files, they are included files with 14953 # $(DEPDIR) in their names. We invoke sed twice because it is the 14954 # simplest approach to changing $(DEPDIR) to its actual value in the 14955 # expansion. 14956 for file in `sed -n " 14957 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14958 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 14959 # Make sure the directory exists. 14960 test -f "$dirpart/$file" && continue 14961 fdir=`$as_dirname -- "$file" || 14962$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14963 X"$file" : 'X\(//\)[^/]' \| \ 14964 X"$file" : 'X\(//\)$' \| \ 14965 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14966$as_echo X"$file" | 14967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14968 s//\1/ 14969 q 14970 } 14971 /^X\(\/\/\)[^/].*/{ 14972 s//\1/ 14973 q 14974 } 14975 /^X\(\/\/\)$/{ 14976 s//\1/ 14977 q 14978 } 14979 /^X\(\/\).*/{ 14980 s//\1/ 14981 q 14982 } 14983 s/.*/./; q'` 14984 as_dir=$dirpart/$fdir; as_fn_mkdir_p 14985 # echo "creating $dirpart/$file" 14986 echo '# dummy' > "$dirpart/$file" 14987 done 14988 done 14989} 14990 ;; 14991 "libtool":C) 14992 14993 # See if we are running on zsh, and set the options which allow our 14994 # commands through without removal of \ escapes. 14995 if test -n "${ZSH_VERSION+set}" ; then 14996 setopt NO_GLOB_SUBST 14997 fi 14998 14999 cfgfile="${ofile}T" 15000 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15001 $RM "$cfgfile" 15002 15003 cat <<_LT_EOF >> "$cfgfile" 15004#! $SHELL 15005 15006# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15007# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15008# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15009# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15010# 15011# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15012# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 15013# Foundation, Inc. 15014# Written by Gordon Matzigkeit, 1996 15015# 15016# This file is part of GNU Libtool. 15017# 15018# GNU Libtool is free software; you can redistribute it and/or 15019# modify it under the terms of the GNU General Public License as 15020# published by the Free Software Foundation; either version 2 of 15021# the License, or (at your option) any later version. 15022# 15023# As a special exception to the GNU General Public License, 15024# if you distribute this file as part of a program or library that 15025# is built using GNU Libtool, you may include this file under the 15026# same distribution terms that you use for the rest of that program. 15027# 15028# GNU Libtool is distributed in the hope that it will be useful, 15029# but WITHOUT ANY WARRANTY; without even the implied warranty of 15030# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15031# GNU General Public License for more details. 15032# 15033# You should have received a copy of the GNU General Public License 15034# along with GNU Libtool; see the file COPYING. If not, a copy 15035# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15036# obtained by writing to the Free Software Foundation, Inc., 15037# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15038 15039 15040# The names of the tagged configurations supported by this script. 15041available_tags="" 15042 15043# ### BEGIN LIBTOOL CONFIG 15044 15045# Assembler program. 15046AS=$lt_AS 15047 15048# DLL creation program. 15049DLLTOOL=$lt_DLLTOOL 15050 15051# Object dumper program. 15052OBJDUMP=$lt_OBJDUMP 15053 15054# Whether or not to build static libraries. 15055build_old_libs=$enable_static 15056 15057# Which release of libtool.m4 was used? 15058macro_version=$macro_version 15059macro_revision=$macro_revision 15060 15061# Whether or not to build shared libraries. 15062build_libtool_libs=$enable_shared 15063 15064# What type of objects to build. 15065pic_mode=$pic_mode 15066 15067# Whether or not to optimize for fast installation. 15068fast_install=$enable_fast_install 15069 15070# Shell to use when invoking shell scripts. 15071SHELL=$lt_SHELL 15072 15073# An echo program that protects backslashes. 15074ECHO=$lt_ECHO 15075 15076# The PATH separator for the build system. 15077PATH_SEPARATOR=$lt_PATH_SEPARATOR 15078 15079# The host system. 15080host_alias=$host_alias 15081host=$host 15082host_os=$host_os 15083 15084# The build system. 15085build_alias=$build_alias 15086build=$build 15087build_os=$build_os 15088 15089# A sed program that does not truncate output. 15090SED=$lt_SED 15091 15092# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15093Xsed="\$SED -e 1s/^X//" 15094 15095# A grep program that handles long lines. 15096GREP=$lt_GREP 15097 15098# An ERE matcher. 15099EGREP=$lt_EGREP 15100 15101# A literal string matcher. 15102FGREP=$lt_FGREP 15103 15104# A BSD- or MS-compatible name lister. 15105NM=$lt_NM 15106 15107# Whether we need soft or hard links. 15108LN_S=$lt_LN_S 15109 15110# What is the maximum length of a command? 15111max_cmd_len=$max_cmd_len 15112 15113# Object file suffix (normally "o"). 15114objext=$ac_objext 15115 15116# Executable file suffix (normally ""). 15117exeext=$exeext 15118 15119# whether the shell understands "unset". 15120lt_unset=$lt_unset 15121 15122# turn spaces into newlines. 15123SP2NL=$lt_lt_SP2NL 15124 15125# turn newlines into spaces. 15126NL2SP=$lt_lt_NL2SP 15127 15128# convert \$build file names to \$host format. 15129to_host_file_cmd=$lt_cv_to_host_file_cmd 15130 15131# convert \$build files to toolchain format. 15132to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15133 15134# Method to check whether dependent libraries are shared objects. 15135deplibs_check_method=$lt_deplibs_check_method 15136 15137# Command to use when deplibs_check_method = "file_magic". 15138file_magic_cmd=$lt_file_magic_cmd 15139 15140# How to find potential files when deplibs_check_method = "file_magic". 15141file_magic_glob=$lt_file_magic_glob 15142 15143# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15144want_nocaseglob=$lt_want_nocaseglob 15145 15146# Command to associate shared and link libraries. 15147sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15148 15149# The archiver. 15150AR=$lt_AR 15151 15152# Flags to create an archive. 15153AR_FLAGS=$lt_AR_FLAGS 15154 15155# How to feed a file listing to the archiver. 15156archiver_list_spec=$lt_archiver_list_spec 15157 15158# A symbol stripping program. 15159STRIP=$lt_STRIP 15160 15161# Commands used to install an old-style archive. 15162RANLIB=$lt_RANLIB 15163old_postinstall_cmds=$lt_old_postinstall_cmds 15164old_postuninstall_cmds=$lt_old_postuninstall_cmds 15165 15166# Whether to use a lock for old archive extraction. 15167lock_old_archive_extraction=$lock_old_archive_extraction 15168 15169# A C compiler. 15170LTCC=$lt_CC 15171 15172# LTCC compiler flags. 15173LTCFLAGS=$lt_CFLAGS 15174 15175# Take the output of nm and produce a listing of raw symbols and C names. 15176global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15177 15178# Transform the output of nm in a proper C declaration. 15179global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15180 15181# Transform the output of nm in a C name address pair. 15182global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15183 15184# Transform the output of nm in a C name address pair when lib prefix is needed. 15185global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15186 15187# Specify filename containing input files for \$NM. 15188nm_file_list_spec=$lt_nm_file_list_spec 15189 15190# The root where to search for dependent libraries,and in which our libraries should be installed. 15191lt_sysroot=$lt_sysroot 15192 15193# The name of the directory that contains temporary libtool files. 15194objdir=$objdir 15195 15196# Used to examine libraries when file_magic_cmd begins with "file". 15197MAGIC_CMD=$MAGIC_CMD 15198 15199# Must we lock files when doing compilation? 15200need_locks=$lt_need_locks 15201 15202# Manifest tool. 15203MANIFEST_TOOL=$lt_MANIFEST_TOOL 15204 15205# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15206DSYMUTIL=$lt_DSYMUTIL 15207 15208# Tool to change global to local symbols on Mac OS X. 15209NMEDIT=$lt_NMEDIT 15210 15211# Tool to manipulate fat objects and archives on Mac OS X. 15212LIPO=$lt_LIPO 15213 15214# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15215OTOOL=$lt_OTOOL 15216 15217# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15218OTOOL64=$lt_OTOOL64 15219 15220# Old archive suffix (normally "a"). 15221libext=$libext 15222 15223# Shared library suffix (normally ".so"). 15224shrext_cmds=$lt_shrext_cmds 15225 15226# The commands to extract the exported symbol list from a shared archive. 15227extract_expsyms_cmds=$lt_extract_expsyms_cmds 15228 15229# Variables whose values should be saved in libtool wrapper scripts and 15230# restored at link time. 15231variables_saved_for_relink=$lt_variables_saved_for_relink 15232 15233# Do we need the "lib" prefix for modules? 15234need_lib_prefix=$need_lib_prefix 15235 15236# Do we need a version for libraries? 15237need_version=$need_version 15238 15239# Library versioning type. 15240version_type=$version_type 15241 15242# Shared library runtime path variable. 15243runpath_var=$runpath_var 15244 15245# Shared library path variable. 15246shlibpath_var=$shlibpath_var 15247 15248# Is shlibpath searched before the hard-coded library search path? 15249shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15250 15251# Format of library name prefix. 15252libname_spec=$lt_libname_spec 15253 15254# List of archive names. First name is the real one, the rest are links. 15255# The last name is the one that the linker finds with -lNAME 15256library_names_spec=$lt_library_names_spec 15257 15258# The coded name of the library, if different from the real name. 15259soname_spec=$lt_soname_spec 15260 15261# Permission mode override for installation of shared libraries. 15262install_override_mode=$lt_install_override_mode 15263 15264# Command to use after installation of a shared archive. 15265postinstall_cmds=$lt_postinstall_cmds 15266 15267# Command to use after uninstallation of a shared archive. 15268postuninstall_cmds=$lt_postuninstall_cmds 15269 15270# Commands used to finish a libtool library installation in a directory. 15271finish_cmds=$lt_finish_cmds 15272 15273# As "finish_cmds", except a single script fragment to be evaled but 15274# not shown. 15275finish_eval=$lt_finish_eval 15276 15277# Whether we should hardcode library paths into libraries. 15278hardcode_into_libs=$hardcode_into_libs 15279 15280# Compile-time system search path for libraries. 15281sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15282 15283# Run-time system search path for libraries. 15284sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15285 15286# Whether dlopen is supported. 15287dlopen_support=$enable_dlopen 15288 15289# Whether dlopen of programs is supported. 15290dlopen_self=$enable_dlopen_self 15291 15292# Whether dlopen of statically linked programs is supported. 15293dlopen_self_static=$enable_dlopen_self_static 15294 15295# Commands to strip libraries. 15296old_striplib=$lt_old_striplib 15297striplib=$lt_striplib 15298 15299 15300# The linker used to build libraries. 15301LD=$lt_LD 15302 15303# How to create reloadable object files. 15304reload_flag=$lt_reload_flag 15305reload_cmds=$lt_reload_cmds 15306 15307# Commands used to build an old-style archive. 15308old_archive_cmds=$lt_old_archive_cmds 15309 15310# A language specific compiler. 15311CC=$lt_compiler 15312 15313# Is the compiler the GNU compiler? 15314with_gcc=$GCC 15315 15316# Compiler flag to turn off builtin functions. 15317no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15318 15319# Additional compiler flags for building library objects. 15320pic_flag=$lt_lt_prog_compiler_pic 15321 15322# How to pass a linker flag through the compiler. 15323wl=$lt_lt_prog_compiler_wl 15324 15325# Compiler flag to prevent dynamic linking. 15326link_static_flag=$lt_lt_prog_compiler_static 15327 15328# Does compiler simultaneously support -c and -o options? 15329compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15330 15331# Whether or not to add -lc for building shared libraries. 15332build_libtool_need_lc=$archive_cmds_need_lc 15333 15334# Whether or not to disallow shared libs when runtime libs are static. 15335allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15336 15337# Compiler flag to allow reflexive dlopens. 15338export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15339 15340# Compiler flag to generate shared objects directly from archives. 15341whole_archive_flag_spec=$lt_whole_archive_flag_spec 15342 15343# Whether the compiler copes with passing no objects directly. 15344compiler_needs_object=$lt_compiler_needs_object 15345 15346# Create an old-style archive from a shared archive. 15347old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15348 15349# Create a temporary old-style archive to link instead of a shared archive. 15350old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15351 15352# Commands used to build a shared archive. 15353archive_cmds=$lt_archive_cmds 15354archive_expsym_cmds=$lt_archive_expsym_cmds 15355 15356# Commands used to build a loadable module if different from building 15357# a shared archive. 15358module_cmds=$lt_module_cmds 15359module_expsym_cmds=$lt_module_expsym_cmds 15360 15361# Whether we are building with GNU ld or not. 15362with_gnu_ld=$lt_with_gnu_ld 15363 15364# Flag that allows shared libraries with undefined symbols to be built. 15365allow_undefined_flag=$lt_allow_undefined_flag 15366 15367# Flag that enforces no undefined symbols. 15368no_undefined_flag=$lt_no_undefined_flag 15369 15370# Flag to hardcode \$libdir into a binary during linking. 15371# This must work even if \$libdir does not exist 15372hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15373 15374# Whether we need a single "-rpath" flag with a separated argument. 15375hardcode_libdir_separator=$lt_hardcode_libdir_separator 15376 15377# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15378# DIR into the resulting binary. 15379hardcode_direct=$hardcode_direct 15380 15381# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15382# DIR into the resulting binary and the resulting library dependency is 15383# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15384# library is relocated. 15385hardcode_direct_absolute=$hardcode_direct_absolute 15386 15387# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15388# into the resulting binary. 15389hardcode_minus_L=$hardcode_minus_L 15390 15391# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15392# into the resulting binary. 15393hardcode_shlibpath_var=$hardcode_shlibpath_var 15394 15395# Set to "yes" if building a shared library automatically hardcodes DIR 15396# into the library and all subsequent libraries and executables linked 15397# against it. 15398hardcode_automatic=$hardcode_automatic 15399 15400# Set to yes if linker adds runtime paths of dependent libraries 15401# to runtime path list. 15402inherit_rpath=$inherit_rpath 15403 15404# Whether libtool must link a program against all its dependency libraries. 15405link_all_deplibs=$link_all_deplibs 15406 15407# Set to "yes" if exported symbols are required. 15408always_export_symbols=$always_export_symbols 15409 15410# The commands to list exported symbols. 15411export_symbols_cmds=$lt_export_symbols_cmds 15412 15413# Symbols that should not be listed in the preloaded symbols. 15414exclude_expsyms=$lt_exclude_expsyms 15415 15416# Symbols that must always be exported. 15417include_expsyms=$lt_include_expsyms 15418 15419# Commands necessary for linking programs (against libraries) with templates. 15420prelink_cmds=$lt_prelink_cmds 15421 15422# Commands necessary for finishing linking programs. 15423postlink_cmds=$lt_postlink_cmds 15424 15425# Specify filename containing input files. 15426file_list_spec=$lt_file_list_spec 15427 15428# How to hardcode a shared library path into an executable. 15429hardcode_action=$hardcode_action 15430 15431# ### END LIBTOOL CONFIG 15432 15433_LT_EOF 15434 15435 case $host_os in 15436 aix3*) 15437 cat <<\_LT_EOF >> "$cfgfile" 15438# AIX sometimes has problems with the GCC collect2 program. For some 15439# reason, if we set the COLLECT_NAMES environment variable, the problems 15440# vanish in a puff of smoke. 15441if test "X${COLLECT_NAMES+set}" != Xset; then 15442 COLLECT_NAMES= 15443 export COLLECT_NAMES 15444fi 15445_LT_EOF 15446 ;; 15447 esac 15448 15449 15450ltmain="$ac_aux_dir/ltmain.sh" 15451 15452 15453 # We use sed instead of cat because bash on DJGPP gets confused if 15454 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15455 # text mode, it properly converts lines to CR/LF. This bash problem 15456 # is reportedly fixed, but why not run on old versions too? 15457 sed '$q' "$ltmain" >> "$cfgfile" \ 15458 || (rm -f "$cfgfile"; exit 1) 15459 15460 if test x"$xsi_shell" = xyes; then 15461 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 15462func_dirname ()\ 15463{\ 15464\ case ${1} in\ 15465\ */*) func_dirname_result="${1%/*}${2}" ;;\ 15466\ * ) func_dirname_result="${3}" ;;\ 15467\ esac\ 15468} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 15469 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15470 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15471test 0 -eq $? || _lt_function_replace_fail=: 15472 15473 15474 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 15475func_basename ()\ 15476{\ 15477\ func_basename_result="${1##*/}"\ 15478} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 15479 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15480 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15481test 0 -eq $? || _lt_function_replace_fail=: 15482 15483 15484 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 15485func_dirname_and_basename ()\ 15486{\ 15487\ case ${1} in\ 15488\ */*) func_dirname_result="${1%/*}${2}" ;;\ 15489\ * ) func_dirname_result="${3}" ;;\ 15490\ esac\ 15491\ func_basename_result="${1##*/}"\ 15492} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 15493 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15494 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15495test 0 -eq $? || _lt_function_replace_fail=: 15496 15497 15498 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 15499func_stripname ()\ 15500{\ 15501\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 15502\ # positional parameters, so assign one to ordinary parameter first.\ 15503\ func_stripname_result=${3}\ 15504\ func_stripname_result=${func_stripname_result#"${1}"}\ 15505\ func_stripname_result=${func_stripname_result%"${2}"}\ 15506} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 15507 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15508 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15509test 0 -eq $? || _lt_function_replace_fail=: 15510 15511 15512 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 15513func_split_long_opt ()\ 15514{\ 15515\ func_split_long_opt_name=${1%%=*}\ 15516\ func_split_long_opt_arg=${1#*=}\ 15517} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 15518 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15519 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15520test 0 -eq $? || _lt_function_replace_fail=: 15521 15522 15523 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 15524func_split_short_opt ()\ 15525{\ 15526\ func_split_short_opt_arg=${1#??}\ 15527\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 15528} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 15529 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15530 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15531test 0 -eq $? || _lt_function_replace_fail=: 15532 15533 15534 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 15535func_lo2o ()\ 15536{\ 15537\ case ${1} in\ 15538\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 15539\ *) func_lo2o_result=${1} ;;\ 15540\ esac\ 15541} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 15542 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15543 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15544test 0 -eq $? || _lt_function_replace_fail=: 15545 15546 15547 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 15548func_xform ()\ 15549{\ 15550 func_xform_result=${1%.*}.lo\ 15551} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 15552 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15553 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15554test 0 -eq $? || _lt_function_replace_fail=: 15555 15556 15557 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 15558func_arith ()\ 15559{\ 15560 func_arith_result=$(( $* ))\ 15561} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 15562 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15563 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15564test 0 -eq $? || _lt_function_replace_fail=: 15565 15566 15567 sed -e '/^func_len ()$/,/^} # func_len /c\ 15568func_len ()\ 15569{\ 15570 func_len_result=${#1}\ 15571} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 15572 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15573 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15574test 0 -eq $? || _lt_function_replace_fail=: 15575 15576fi 15577 15578if test x"$lt_shell_append" = xyes; then 15579 sed -e '/^func_append ()$/,/^} # func_append /c\ 15580func_append ()\ 15581{\ 15582 eval "${1}+=\\${2}"\ 15583} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 15584 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15585 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15586test 0 -eq $? || _lt_function_replace_fail=: 15587 15588 15589 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 15590func_append_quoted ()\ 15591{\ 15592\ func_quote_for_eval "${2}"\ 15593\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 15594} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 15595 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15596 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15597test 0 -eq $? || _lt_function_replace_fail=: 15598 15599 15600 # Save a `func_append' function call where possible by direct use of '+=' 15601 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 15602 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15603 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15604 test 0 -eq $? || _lt_function_replace_fail=: 15605else 15606 # Save a `func_append' function call even when '+=' is not available 15607 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 15608 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15609 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15610 test 0 -eq $? || _lt_function_replace_fail=: 15611fi 15612 15613if test x"$_lt_function_replace_fail" = x":"; then 15614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 15615$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 15616fi 15617 15618 15619 mv -f "$cfgfile" "$ofile" || 15620 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15621 chmod +x "$ofile" 15622 15623 ;; 15624 15625 esac 15626done # for ac_tag 15627 15628 15629as_fn_exit 0 15630_ACEOF 15631ac_clean_files=$ac_clean_files_save 15632 15633test $ac_write_fail = 0 || 15634 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15635 15636 15637# configure is writing to config.log, and then calls config.status. 15638# config.status does its own redirection, appending to config.log. 15639# Unfortunately, on DOS this fails, as config.log is still kept open 15640# by configure, so config.status won't be able to write to it; its 15641# output is simply discarded. So we exec the FD to /dev/null, 15642# effectively closing config.log, so it can be properly (re)opened and 15643# appended to by config.status. When coming back to configure, we 15644# need to make the FD available again. 15645if test "$no_create" != yes; then 15646 ac_cs_success=: 15647 ac_config_status_args= 15648 test "$silent" = yes && 15649 ac_config_status_args="$ac_config_status_args --quiet" 15650 exec 5>/dev/null 15651 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15652 exec 5>>config.log 15653 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15654 # would make configure fail if this is the last instruction. 15655 $ac_cs_success || as_fn_exit 1 15656fi 15657if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15659$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15660fi 15661 15662