1247738Sbapt#! /bin/sh 2247738Sbapt# Guess values for system-dependent variables and create Makefiles. 3247738Sbapt# Generated by GNU Autoconf 2.67 for yaml 0.1.4. 4247738Sbapt# 5247738Sbapt# Report bugs to <http://pyyaml.org/newticket?component=libyaml>. 6247738Sbapt# 7247738Sbapt# 8247738Sbapt# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9247738Sbapt# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10247738Sbapt# Foundation, Inc. 11247738Sbapt# 12247738Sbapt# 13247738Sbapt# This configure script is free software; the Free Software Foundation 14247738Sbapt# gives unlimited permission to copy, distribute and modify it. 15247738Sbapt## -------------------- ## 16247738Sbapt## M4sh Initialization. ## 17247738Sbapt## -------------------- ## 18247738Sbapt 19247738Sbapt# Be more Bourne compatible 20247738SbaptDUALCASE=1; export DUALCASE # for MKS sh 21247738Sbaptif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22247738Sbapt emulate sh 23247738Sbapt NULLCMD=: 24247738Sbapt # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25247738Sbapt # is contrary to our usage. Disable this feature. 26247738Sbapt alias -g '${1+"$@"}'='"$@"' 27247738Sbapt setopt NO_GLOB_SUBST 28247738Sbaptelse 29247738Sbapt case `(set -o) 2>/dev/null` in #( 30247738Sbapt *posix*) : 31247738Sbapt set -o posix ;; #( 32247738Sbapt *) : 33247738Sbapt ;; 34247738Sbaptesac 35247738Sbaptfi 36247738Sbapt 37247738Sbapt 38247738Sbaptas_nl=' 39247738Sbapt' 40247738Sbaptexport as_nl 41247738Sbapt# Printing a long string crashes Solaris 7 /usr/bin/printf. 42247738Sbaptas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43247738Sbaptas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44247738Sbaptas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45247738Sbapt# Prefer a ksh shell builtin over an external printf program on Solaris, 46247738Sbapt# but without wasting forks for bash or zsh. 47247738Sbaptif test -z "$BASH_VERSION$ZSH_VERSION" \ 48247738Sbapt && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49247738Sbapt as_echo='print -r --' 50247738Sbapt as_echo_n='print -rn --' 51247738Sbaptelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52247738Sbapt as_echo='printf %s\n' 53247738Sbapt as_echo_n='printf %s' 54247738Sbaptelse 55247738Sbapt if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56247738Sbapt as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57247738Sbapt as_echo_n='/usr/ucb/echo -n' 58247738Sbapt else 59247738Sbapt as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60247738Sbapt as_echo_n_body='eval 61247738Sbapt arg=$1; 62247738Sbapt case $arg in #( 63247738Sbapt *"$as_nl"*) 64247738Sbapt expr "X$arg" : "X\\(.*\\)$as_nl"; 65247738Sbapt arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66247738Sbapt esac; 67247738Sbapt expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68247738Sbapt ' 69247738Sbapt export as_echo_n_body 70247738Sbapt as_echo_n='sh -c $as_echo_n_body as_echo' 71247738Sbapt fi 72247738Sbapt export as_echo_body 73247738Sbapt as_echo='sh -c $as_echo_body as_echo' 74247738Sbaptfi 75247738Sbapt 76247738Sbapt# The user is always right. 77247738Sbaptif test "${PATH_SEPARATOR+set}" != set; then 78247738Sbapt PATH_SEPARATOR=: 79247738Sbapt (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80247738Sbapt (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81247738Sbapt PATH_SEPARATOR=';' 82247738Sbapt } 83247738Sbaptfi 84247738Sbapt 85247738Sbapt 86247738Sbapt# IFS 87247738Sbapt# We need space, tab and new line, in precisely that order. Quoting is 88247738Sbapt# there to prevent editors from complaining about space-tab. 89247738Sbapt# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90247738Sbapt# splitting by setting IFS to empty value.) 91247738SbaptIFS=" "" $as_nl" 92247738Sbapt 93247738Sbapt# Find who we are. Look in the path if we contain no directory separator. 94247738Sbaptcase $0 in #(( 95247738Sbapt *[\\/]* ) as_myself=$0 ;; 96247738Sbapt *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97247738Sbaptfor as_dir in $PATH 98247738Sbaptdo 99247738Sbapt IFS=$as_save_IFS 100247738Sbapt test -z "$as_dir" && as_dir=. 101247738Sbapt test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102247738Sbapt done 103247738SbaptIFS=$as_save_IFS 104247738Sbapt 105247738Sbapt ;; 106247738Sbaptesac 107247738Sbapt# We did not find ourselves, most probably we were run as `sh COMMAND' 108247738Sbapt# in which case we are not to be found in the path. 109247738Sbaptif test "x$as_myself" = x; then 110247738Sbapt as_myself=$0 111247738Sbaptfi 112247738Sbaptif test ! -f "$as_myself"; then 113247738Sbapt $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114247738Sbapt exit 1 115247738Sbaptfi 116247738Sbapt 117247738Sbapt# Unset variables that we do not need and which cause bugs (e.g. in 118247738Sbapt# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119247738Sbapt# suppresses any "Segmentation fault" message there. '((' could 120247738Sbapt# trigger a bug in pdksh 5.2.14. 121247738Sbaptfor as_var in BASH_ENV ENV MAIL MAILPATH 122247738Sbaptdo eval test x\${$as_var+set} = xset \ 123247738Sbapt && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124247738Sbaptdone 125247738SbaptPS1='$ ' 126247738SbaptPS2='> ' 127247738SbaptPS4='+ ' 128247738Sbapt 129247738Sbapt# NLS nuisances. 130247738SbaptLC_ALL=C 131247738Sbaptexport LC_ALL 132247738SbaptLANGUAGE=C 133247738Sbaptexport LANGUAGE 134247738Sbapt 135247738Sbapt# CDPATH. 136247738Sbapt(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137247738Sbapt 138247738Sbaptif test "x$CONFIG_SHELL" = x; then 139247738Sbapt as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140247738Sbapt emulate sh 141247738Sbapt NULLCMD=: 142247738Sbapt # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143247738Sbapt # is contrary to our usage. Disable this feature. 144247738Sbapt alias -g '\${1+\"\$@\"}'='\"\$@\"' 145247738Sbapt setopt NO_GLOB_SUBST 146247738Sbaptelse 147247738Sbapt case \`(set -o) 2>/dev/null\` in #( 148247738Sbapt *posix*) : 149247738Sbapt set -o posix ;; #( 150247738Sbapt *) : 151247738Sbapt ;; 152247738Sbaptesac 153247738Sbaptfi 154247738Sbapt" 155247738Sbapt as_required="as_fn_return () { (exit \$1); } 156247738Sbaptas_fn_success () { as_fn_return 0; } 157247738Sbaptas_fn_failure () { as_fn_return 1; } 158247738Sbaptas_fn_ret_success () { return 0; } 159247738Sbaptas_fn_ret_failure () { return 1; } 160247738Sbapt 161247738Sbaptexitcode=0 162247738Sbaptas_fn_success || { exitcode=1; echo as_fn_success failed.; } 163247738Sbaptas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164247738Sbaptas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165247738Sbaptas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166247738Sbaptif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167247738Sbapt 168247738Sbaptelse 169247738Sbapt exitcode=1; echo positional parameters were not saved. 170247738Sbaptfi 171247738Sbapttest x\$exitcode = x0 || exit 1" 172247738Sbapt as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173247738Sbapt as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174247738Sbapt eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175247738Sbapt test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176247738Sbapttest \$(( 1 + 1 )) = 2 || exit 1" 177247738Sbapt if (eval "$as_required") 2>/dev/null; then : 178247738Sbapt as_have_required=yes 179247738Sbaptelse 180247738Sbapt as_have_required=no 181247738Sbaptfi 182247738Sbapt if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 183247738Sbapt 184247738Sbaptelse 185247738Sbapt as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 186247738Sbaptas_found=false 187247738Sbaptfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 188247738Sbaptdo 189247738Sbapt IFS=$as_save_IFS 190247738Sbapt test -z "$as_dir" && as_dir=. 191247738Sbapt as_found=: 192247738Sbapt case $as_dir in #( 193247738Sbapt /*) 194247738Sbapt for as_base in sh bash ksh sh5; do 195247738Sbapt # Try only shells that exist, to save several forks. 196247738Sbapt as_shell=$as_dir/$as_base 197247738Sbapt if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 198247738Sbapt { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 199247738Sbapt CONFIG_SHELL=$as_shell as_have_required=yes 200247738Sbapt if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 201247738Sbapt break 2 202247738Sbaptfi 203247738Sbaptfi 204247738Sbapt done;; 205247738Sbapt esac 206247738Sbapt as_found=false 207247738Sbaptdone 208247738Sbapt$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 209247738Sbapt { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 210247738Sbapt CONFIG_SHELL=$SHELL as_have_required=yes 211247738Sbaptfi; } 212247738SbaptIFS=$as_save_IFS 213247738Sbapt 214247738Sbapt 215247738Sbapt if test "x$CONFIG_SHELL" != x; then : 216247738Sbapt # We cannot yet assume a decent shell, so we have to provide a 217247738Sbapt # neutralization value for shells without unset; and this also 218247738Sbapt # works around shells that cannot unset nonexistent variables. 219247738Sbapt BASH_ENV=/dev/null 220247738Sbapt ENV=/dev/null 221247738Sbapt (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222247738Sbapt export CONFIG_SHELL 223247738Sbapt exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 224247738Sbaptfi 225247738Sbapt 226247738Sbapt if test x$as_have_required = xno; then : 227247738Sbapt $as_echo "$0: This script requires a shell more modern than all" 228247738Sbapt $as_echo "$0: the shells that I found on your system." 229247738Sbapt if test x${ZSH_VERSION+set} = xset ; then 230247738Sbapt $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 231247738Sbapt $as_echo "$0: be upgraded to zsh 4.3.4 or later." 232247738Sbapt else 233247738Sbapt $as_echo "$0: Please tell bug-autoconf@gnu.org and http://pyyaml.org/newticket?component=libyaml about 234247738Sbapt$0: your system, including any error possibly output before 235247738Sbapt$0: this message. Then install a modern shell, or manually 236247738Sbapt$0: run the script under such a shell if you do have one." 237247738Sbapt fi 238247738Sbapt exit 1 239247738Sbaptfi 240247738Sbaptfi 241247738Sbaptfi 242247738SbaptSHELL=${CONFIG_SHELL-/bin/sh} 243247738Sbaptexport SHELL 244247738Sbapt# Unset more variables known to interfere with behavior of common tools. 245247738SbaptCLICOLOR_FORCE= GREP_OPTIONS= 246247738Sbaptunset CLICOLOR_FORCE GREP_OPTIONS 247247738Sbapt 248247738Sbapt## --------------------- ## 249247738Sbapt## M4sh Shell Functions. ## 250247738Sbapt## --------------------- ## 251247738Sbapt# as_fn_unset VAR 252247738Sbapt# --------------- 253247738Sbapt# Portably unset VAR. 254247738Sbaptas_fn_unset () 255247738Sbapt{ 256247738Sbapt { eval $1=; unset $1;} 257247738Sbapt} 258247738Sbaptas_unset=as_fn_unset 259247738Sbapt 260247738Sbapt# as_fn_set_status STATUS 261247738Sbapt# ----------------------- 262247738Sbapt# Set $? to STATUS, without forking. 263247738Sbaptas_fn_set_status () 264247738Sbapt{ 265247738Sbapt return $1 266247738Sbapt} # as_fn_set_status 267247738Sbapt 268247738Sbapt# as_fn_exit STATUS 269247738Sbapt# ----------------- 270247738Sbapt# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 271247738Sbaptas_fn_exit () 272247738Sbapt{ 273247738Sbapt set +e 274247738Sbapt as_fn_set_status $1 275247738Sbapt exit $1 276247738Sbapt} # as_fn_exit 277247738Sbapt 278247738Sbapt# as_fn_mkdir_p 279247738Sbapt# ------------- 280247738Sbapt# Create "$as_dir" as a directory, including parents if necessary. 281247738Sbaptas_fn_mkdir_p () 282247738Sbapt{ 283247738Sbapt 284247738Sbapt case $as_dir in #( 285247738Sbapt -*) as_dir=./$as_dir;; 286247738Sbapt esac 287247738Sbapt test -d "$as_dir" || eval $as_mkdir_p || { 288247738Sbapt as_dirs= 289247738Sbapt while :; do 290247738Sbapt case $as_dir in #( 291247738Sbapt *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 292247738Sbapt *) as_qdir=$as_dir;; 293247738Sbapt esac 294247738Sbapt as_dirs="'$as_qdir' $as_dirs" 295247738Sbapt as_dir=`$as_dirname -- "$as_dir" || 296247738Sbapt$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 297247738Sbapt X"$as_dir" : 'X\(//\)[^/]' \| \ 298247738Sbapt X"$as_dir" : 'X\(//\)$' \| \ 299247738Sbapt X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 300247738Sbapt$as_echo X"$as_dir" | 301247738Sbapt sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 302247738Sbapt s//\1/ 303247738Sbapt q 304247738Sbapt } 305247738Sbapt /^X\(\/\/\)[^/].*/{ 306247738Sbapt s//\1/ 307247738Sbapt q 308247738Sbapt } 309247738Sbapt /^X\(\/\/\)$/{ 310247738Sbapt s//\1/ 311247738Sbapt q 312247738Sbapt } 313247738Sbapt /^X\(\/\).*/{ 314247738Sbapt s//\1/ 315247738Sbapt q 316247738Sbapt } 317247738Sbapt s/.*/./; q'` 318247738Sbapt test -d "$as_dir" && break 319247738Sbapt done 320247738Sbapt test -z "$as_dirs" || eval "mkdir $as_dirs" 321247738Sbapt } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 322247738Sbapt 323247738Sbapt 324247738Sbapt} # as_fn_mkdir_p 325247738Sbapt# as_fn_append VAR VALUE 326247738Sbapt# ---------------------- 327247738Sbapt# Append the text in VALUE to the end of the definition contained in VAR. Take 328247738Sbapt# advantage of any shell optimizations that allow amortized linear growth over 329247738Sbapt# repeated appends, instead of the typical quadratic growth present in naive 330247738Sbapt# implementations. 331247738Sbaptif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 332247738Sbapt eval 'as_fn_append () 333247738Sbapt { 334247738Sbapt eval $1+=\$2 335247738Sbapt }' 336247738Sbaptelse 337247738Sbapt as_fn_append () 338247738Sbapt { 339247738Sbapt eval $1=\$$1\$2 340247738Sbapt } 341247738Sbaptfi # as_fn_append 342247738Sbapt 343247738Sbapt# as_fn_arith ARG... 344247738Sbapt# ------------------ 345247738Sbapt# Perform arithmetic evaluation on the ARGs, and store the result in the 346247738Sbapt# global $as_val. Take advantage of shells that can avoid forks. The arguments 347247738Sbapt# must be portable across $(()) and expr. 348247738Sbaptif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 349247738Sbapt eval 'as_fn_arith () 350247738Sbapt { 351247738Sbapt as_val=$(( $* )) 352247738Sbapt }' 353247738Sbaptelse 354247738Sbapt as_fn_arith () 355247738Sbapt { 356247738Sbapt as_val=`expr "$@" || test $? -eq 1` 357247738Sbapt } 358247738Sbaptfi # as_fn_arith 359247738Sbapt 360247738Sbapt 361247738Sbapt# as_fn_error STATUS ERROR [LINENO LOG_FD] 362247738Sbapt# ---------------------------------------- 363247738Sbapt# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 364247738Sbapt# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 365247738Sbapt# script with STATUS, using 1 if that was 0. 366247738Sbaptas_fn_error () 367247738Sbapt{ 368247738Sbapt as_status=$1; test $as_status -eq 0 && as_status=1 369247738Sbapt if test "$4"; then 370247738Sbapt as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 371247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 372247738Sbapt fi 373247738Sbapt $as_echo "$as_me: error: $2" >&2 374247738Sbapt as_fn_exit $as_status 375247738Sbapt} # as_fn_error 376247738Sbapt 377247738Sbaptif expr a : '\(a\)' >/dev/null 2>&1 && 378247738Sbapt test "X`expr 00001 : '.*\(...\)'`" = X001; then 379247738Sbapt as_expr=expr 380247738Sbaptelse 381247738Sbapt as_expr=false 382247738Sbaptfi 383247738Sbapt 384247738Sbaptif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 385247738Sbapt as_basename=basename 386247738Sbaptelse 387247738Sbapt as_basename=false 388247738Sbaptfi 389247738Sbapt 390247738Sbaptif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 391247738Sbapt as_dirname=dirname 392247738Sbaptelse 393247738Sbapt as_dirname=false 394247738Sbaptfi 395247738Sbapt 396247738Sbaptas_me=`$as_basename -- "$0" || 397247738Sbapt$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 398247738Sbapt X"$0" : 'X\(//\)$' \| \ 399247738Sbapt X"$0" : 'X\(/\)' \| . 2>/dev/null || 400247738Sbapt$as_echo X/"$0" | 401247738Sbapt sed '/^.*\/\([^/][^/]*\)\/*$/{ 402247738Sbapt s//\1/ 403247738Sbapt q 404247738Sbapt } 405247738Sbapt /^X\/\(\/\/\)$/{ 406247738Sbapt s//\1/ 407247738Sbapt q 408247738Sbapt } 409247738Sbapt /^X\/\(\/\).*/{ 410247738Sbapt s//\1/ 411247738Sbapt q 412247738Sbapt } 413247738Sbapt s/.*/./; q'` 414247738Sbapt 415247738Sbapt# Avoid depending upon Character Ranges. 416247738Sbaptas_cr_letters='abcdefghijklmnopqrstuvwxyz' 417247738Sbaptas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 418247738Sbaptas_cr_Letters=$as_cr_letters$as_cr_LETTERS 419247738Sbaptas_cr_digits='0123456789' 420247738Sbaptas_cr_alnum=$as_cr_Letters$as_cr_digits 421247738Sbapt 422247738Sbapt 423247738Sbapt as_lineno_1=$LINENO as_lineno_1a=$LINENO 424247738Sbapt as_lineno_2=$LINENO as_lineno_2a=$LINENO 425247738Sbapt eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 426247738Sbapt test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 427247738Sbapt # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 428247738Sbapt sed -n ' 429247738Sbapt p 430247738Sbapt /[$]LINENO/= 431247738Sbapt ' <$as_myself | 432247738Sbapt sed ' 433247738Sbapt s/[$]LINENO.*/&-/ 434247738Sbapt t lineno 435247738Sbapt b 436247738Sbapt :lineno 437247738Sbapt N 438247738Sbapt :loop 439247738Sbapt s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 440247738Sbapt t loop 441247738Sbapt s/-\n.*// 442247738Sbapt ' >$as_me.lineno && 443247738Sbapt chmod +x "$as_me.lineno" || 444247738Sbapt { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 445247738Sbapt 446247738Sbapt # Don't try to exec as it changes $[0], causing all sort of problems 447247738Sbapt # (the dirname of $[0] is not the place where we might find the 448247738Sbapt # original and so on. Autoconf is especially sensitive to this). 449247738Sbapt . "./$as_me.lineno" 450247738Sbapt # Exit status is that of the last command. 451247738Sbapt exit 452247738Sbapt} 453247738Sbapt 454247738SbaptECHO_C= ECHO_N= ECHO_T= 455247738Sbaptcase `echo -n x` in #((((( 456247738Sbapt-n*) 457247738Sbapt case `echo 'xy\c'` in 458247738Sbapt *c*) ECHO_T=' ';; # ECHO_T is single tab character. 459247738Sbapt xy) ECHO_C='\c';; 460247738Sbapt *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 461247738Sbapt ECHO_T=' ';; 462247738Sbapt esac;; 463247738Sbapt*) 464247738Sbapt ECHO_N='-n';; 465247738Sbaptesac 466247738Sbapt 467247738Sbaptrm -f conf$$ conf$$.exe conf$$.file 468247738Sbaptif test -d conf$$.dir; then 469247738Sbapt rm -f conf$$.dir/conf$$.file 470247738Sbaptelse 471247738Sbapt rm -f conf$$.dir 472247738Sbapt mkdir conf$$.dir 2>/dev/null 473247738Sbaptfi 474247738Sbaptif (echo >conf$$.file) 2>/dev/null; then 475247738Sbapt if ln -s conf$$.file conf$$ 2>/dev/null; then 476247738Sbapt as_ln_s='ln -s' 477247738Sbapt # ... but there are two gotchas: 478247738Sbapt # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 479247738Sbapt # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 480247738Sbapt # In both cases, we have to default to `cp -p'. 481247738Sbapt ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 482247738Sbapt as_ln_s='cp -p' 483247738Sbapt elif ln conf$$.file conf$$ 2>/dev/null; then 484247738Sbapt as_ln_s=ln 485247738Sbapt else 486247738Sbapt as_ln_s='cp -p' 487247738Sbapt fi 488247738Sbaptelse 489247738Sbapt as_ln_s='cp -p' 490247738Sbaptfi 491247738Sbaptrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 492247738Sbaptrmdir conf$$.dir 2>/dev/null 493247738Sbapt 494247738Sbaptif mkdir -p . 2>/dev/null; then 495247738Sbapt as_mkdir_p='mkdir -p "$as_dir"' 496247738Sbaptelse 497247738Sbapt test -d ./-p && rmdir ./-p 498247738Sbapt as_mkdir_p=false 499247738Sbaptfi 500247738Sbapt 501247738Sbaptif test -x / >/dev/null 2>&1; then 502247738Sbapt as_test_x='test -x' 503247738Sbaptelse 504247738Sbapt if ls -dL / >/dev/null 2>&1; then 505247738Sbapt as_ls_L_option=L 506247738Sbapt else 507247738Sbapt as_ls_L_option= 508247738Sbapt fi 509247738Sbapt as_test_x=' 510247738Sbapt eval sh -c '\'' 511247738Sbapt if test -d "$1"; then 512247738Sbapt test -d "$1/."; 513247738Sbapt else 514247738Sbapt case $1 in #( 515247738Sbapt -*)set "./$1";; 516247738Sbapt esac; 517247738Sbapt case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 518247738Sbapt ???[sx]*):;;*)false;;esac;fi 519247738Sbapt '\'' sh 520247738Sbapt ' 521247738Sbaptfi 522247738Sbaptas_executable_p=$as_test_x 523247738Sbapt 524247738Sbapt# Sed expression to map a string onto a valid CPP name. 525247738Sbaptas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 526247738Sbapt 527247738Sbapt# Sed expression to map a string onto a valid variable name. 528247738Sbaptas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 529247738Sbapt 530247738Sbapt 531247738Sbapt 532247738Sbapt# Check that we are running under the correct shell. 533247738SbaptSHELL=${CONFIG_SHELL-/bin/sh} 534247738Sbapt 535247738Sbaptcase X$lt_ECHO in 536247738SbaptX*--fallback-echo) 537247738Sbapt # Remove one level of quotation (which was required for Make). 538247738Sbapt ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 539247738Sbapt ;; 540247738Sbaptesac 541247738Sbapt 542247738SbaptECHO=${lt_ECHO-echo} 543247738Sbaptif test "X$1" = X--no-reexec; then 544247738Sbapt # Discard the --no-reexec flag, and continue. 545247738Sbapt shift 546247738Sbaptelif test "X$1" = X--fallback-echo; then 547247738Sbapt # Avoid inline document here, it may be left over 548247738Sbapt : 549247738Sbaptelif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 550247738Sbapt # Yippee, $ECHO works! 551247738Sbapt : 552247738Sbaptelse 553247738Sbapt # Restart under the correct shell. 554247738Sbapt exec $SHELL "$0" --no-reexec ${1+"$@"} 555247738Sbaptfi 556247738Sbapt 557247738Sbaptif test "X$1" = X--fallback-echo; then 558247738Sbapt # used as fallback echo 559247738Sbapt shift 560247738Sbapt cat <<_LT_EOF 561247738Sbapt$* 562247738Sbapt_LT_EOF 563247738Sbapt exit 0 564247738Sbaptfi 565247738Sbapt 566247738Sbapt# The HP-UX ksh and POSIX shell print the target directory to stdout 567247738Sbapt# if CDPATH is set. 568247738Sbapt(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 569247738Sbapt 570247738Sbaptif test -z "$lt_ECHO"; then 571247738Sbapt if test "X${echo_test_string+set}" != Xset; then 572247738Sbapt # find a string as large as possible, as long as the shell can cope with it 573247738Sbapt for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 574247738Sbapt # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 575247738Sbapt if { echo_test_string=`eval $cmd`; } 2>/dev/null && 576247738Sbapt { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 577247738Sbapt then 578247738Sbapt break 579247738Sbapt fi 580247738Sbapt done 581247738Sbapt fi 582247738Sbapt 583247738Sbapt if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 584247738Sbapt echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 585247738Sbapt test "X$echo_testing_string" = "X$echo_test_string"; then 586247738Sbapt : 587247738Sbapt else 588247738Sbapt # The Solaris, AIX, and Digital Unix default echo programs unquote 589247738Sbapt # backslashes. This makes it impossible to quote backslashes using 590247738Sbapt # echo "$something" | sed 's/\\/\\\\/g' 591247738Sbapt # 592247738Sbapt # So, first we look for a working echo in the user's PATH. 593247738Sbapt 594247738Sbapt lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 595247738Sbapt for dir in $PATH /usr/ucb; do 596247738Sbapt IFS="$lt_save_ifs" 597247738Sbapt if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 598247738Sbapt test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 599247738Sbapt echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 600247738Sbapt test "X$echo_testing_string" = "X$echo_test_string"; then 601247738Sbapt ECHO="$dir/echo" 602247738Sbapt break 603247738Sbapt fi 604247738Sbapt done 605247738Sbapt IFS="$lt_save_ifs" 606247738Sbapt 607247738Sbapt if test "X$ECHO" = Xecho; then 608247738Sbapt # We didn't find a better echo, so look for alternatives. 609247738Sbapt if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 610247738Sbapt echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 611247738Sbapt test "X$echo_testing_string" = "X$echo_test_string"; then 612247738Sbapt # This shell has a builtin print -r that does the trick. 613247738Sbapt ECHO='print -r' 614247738Sbapt elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 615247738Sbapt test "X$CONFIG_SHELL" != X/bin/ksh; then 616247738Sbapt # If we have ksh, try running configure again with it. 617247738Sbapt ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 618247738Sbapt export ORIGINAL_CONFIG_SHELL 619247738Sbapt CONFIG_SHELL=/bin/ksh 620247738Sbapt export CONFIG_SHELL 621247738Sbapt exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 622247738Sbapt else 623247738Sbapt # Try using printf. 624247738Sbapt ECHO='printf %s\n' 625247738Sbapt if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 626247738Sbapt echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 627247738Sbapt test "X$echo_testing_string" = "X$echo_test_string"; then 628247738Sbapt # Cool, printf works 629247738Sbapt : 630247738Sbapt elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 631247738Sbapt test "X$echo_testing_string" = 'X\t' && 632247738Sbapt echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 633247738Sbapt test "X$echo_testing_string" = "X$echo_test_string"; then 634247738Sbapt CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 635247738Sbapt export CONFIG_SHELL 636247738Sbapt SHELL="$CONFIG_SHELL" 637247738Sbapt export SHELL 638247738Sbapt ECHO="$CONFIG_SHELL $0 --fallback-echo" 639247738Sbapt elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 640247738Sbapt test "X$echo_testing_string" = 'X\t' && 641247738Sbapt echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 642247738Sbapt test "X$echo_testing_string" = "X$echo_test_string"; then 643247738Sbapt ECHO="$CONFIG_SHELL $0 --fallback-echo" 644247738Sbapt else 645247738Sbapt # maybe with a smaller string... 646247738Sbapt prev=: 647247738Sbapt 648247738Sbapt for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 649247738Sbapt if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 650247738Sbapt then 651247738Sbapt break 652247738Sbapt fi 653247738Sbapt prev="$cmd" 654247738Sbapt done 655247738Sbapt 656247738Sbapt if test "$prev" != 'sed 50q "$0"'; then 657247738Sbapt echo_test_string=`eval $prev` 658247738Sbapt export echo_test_string 659247738Sbapt exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 660247738Sbapt else 661247738Sbapt # Oops. We lost completely, so just stick with echo. 662247738Sbapt ECHO=echo 663247738Sbapt fi 664247738Sbapt fi 665247738Sbapt fi 666247738Sbapt fi 667247738Sbapt fi 668247738Sbaptfi 669247738Sbapt 670247738Sbapt# Copy echo and quote the copy suitably for passing to libtool from 671247738Sbapt# the Makefile, instead of quoting the original, which is used later. 672247738Sbaptlt_ECHO=$ECHO 673247738Sbaptif test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 674247738Sbapt lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 675247738Sbaptfi 676247738Sbapt 677247738Sbapt 678247738Sbapt 679247738Sbapt 680247738Sbapttest -n "$DJDIR" || exec 7<&0 </dev/null 681247738Sbaptexec 6>&1 682247738Sbapt 683247738Sbapt# Name of the host. 684247738Sbapt# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 685247738Sbapt# so uname gets run too. 686247738Sbaptac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 687247738Sbapt 688247738Sbapt# 689247738Sbapt# Initializations. 690247738Sbapt# 691247738Sbaptac_default_prefix=/usr/local 692247738Sbaptac_clean_files= 693247738Sbaptac_config_libobj_dir=. 694247738SbaptLIBOBJS= 695247738Sbaptcross_compiling=no 696247738Sbaptsubdirs= 697247738SbaptMFLAGS= 698247738SbaptMAKEFLAGS= 699247738Sbapt 700247738Sbapt# Identity of this package. 701247738SbaptPACKAGE_NAME='yaml' 702247738SbaptPACKAGE_TARNAME='yaml' 703247738SbaptPACKAGE_VERSION='0.1.4' 704247738SbaptPACKAGE_STRING='yaml 0.1.4' 705247738SbaptPACKAGE_BUGREPORT='http://pyyaml.org/newticket?component=libyaml' 706247738SbaptPACKAGE_URL='' 707247738Sbapt 708247738Sbapt# Factoring default headers for most tests. 709247738Sbaptac_includes_default="\ 710247738Sbapt#include <stdio.h> 711247738Sbapt#ifdef HAVE_SYS_TYPES_H 712247738Sbapt# include <sys/types.h> 713247738Sbapt#endif 714247738Sbapt#ifdef HAVE_SYS_STAT_H 715247738Sbapt# include <sys/stat.h> 716247738Sbapt#endif 717247738Sbapt#ifdef STDC_HEADERS 718247738Sbapt# include <stdlib.h> 719247738Sbapt# include <stddef.h> 720247738Sbapt#else 721247738Sbapt# ifdef HAVE_STDLIB_H 722247738Sbapt# include <stdlib.h> 723247738Sbapt# endif 724247738Sbapt#endif 725247738Sbapt#ifdef HAVE_STRING_H 726247738Sbapt# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 727247738Sbapt# include <memory.h> 728247738Sbapt# endif 729247738Sbapt# include <string.h> 730247738Sbapt#endif 731247738Sbapt#ifdef HAVE_STRINGS_H 732247738Sbapt# include <strings.h> 733247738Sbapt#endif 734247738Sbapt#ifdef HAVE_INTTYPES_H 735247738Sbapt# include <inttypes.h> 736247738Sbapt#endif 737247738Sbapt#ifdef HAVE_STDINT_H 738247738Sbapt# include <stdint.h> 739247738Sbapt#endif 740247738Sbapt#ifdef HAVE_UNISTD_H 741247738Sbapt# include <unistd.h> 742247738Sbapt#endif" 743247738Sbapt 744247738Sbaptac_subst_vars='am__EXEEXT_FALSE 745247738Sbaptam__EXEEXT_TRUE 746247738SbaptLTLIBOBJS 747247738SbaptLIBOBJS 748247738SbaptDOXYGEN_FALSE 749247738SbaptDOXYGEN_TRUE 750247738SbaptDOXYGEN 751247738SbaptOTOOL64 752247738SbaptOTOOL 753247738SbaptLIPO 754247738SbaptNMEDIT 755247738SbaptDSYMUTIL 756247738Sbaptlt_ECHO 757247738SbaptRANLIB 758247738SbaptAR 759247738SbaptOBJDUMP 760247738SbaptNM 761247738Sbaptac_ct_DUMPBIN 762247738SbaptDUMPBIN 763247738SbaptLD 764247738SbaptFGREP 765247738SbaptEGREP 766247738SbaptGREP 767247738SbaptSED 768247738Sbapthost_os 769247738Sbapthost_vendor 770247738Sbapthost_cpu 771247738Sbapthost 772247738Sbaptbuild_os 773247738Sbaptbuild_vendor 774247738Sbaptbuild_cpu 775247738Sbaptbuild 776247738SbaptLIBTOOL 777247738SbaptLN_S 778247738SbaptCPP 779247738Sbaptam__fastdepCC_FALSE 780247738Sbaptam__fastdepCC_TRUE 781247738SbaptCCDEPMODE 782247738SbaptAMDEPBACKSLASH 783247738SbaptAMDEP_FALSE 784247738SbaptAMDEP_TRUE 785247738Sbaptam__quote 786247738Sbaptam__include 787247738SbaptDEPDIR 788247738SbaptOBJEXT 789247738SbaptEXEEXT 790247738Sbaptac_ct_CC 791247738SbaptCPPFLAGS 792247738SbaptLDFLAGS 793247738SbaptCFLAGS 794247738SbaptCC 795247738SbaptYAML_LT_AGE 796247738SbaptYAML_LT_REVISION 797247738SbaptYAML_LT_CURRENT 798247738SbaptYAML_LT_RELEASE 799247738Sbaptam__untar 800247738Sbaptam__tar 801247738SbaptAMTAR 802247738Sbaptam__leading_dot 803247738SbaptSET_MAKE 804247738SbaptAWK 805247738Sbaptmkdir_p 806247738SbaptMKDIR_P 807247738SbaptINSTALL_STRIP_PROGRAM 808247738SbaptSTRIP 809247738Sbaptinstall_sh 810247738SbaptMAKEINFO 811247738SbaptAUTOHEADER 812247738SbaptAUTOMAKE 813247738SbaptAUTOCONF 814247738SbaptACLOCAL 815247738SbaptVERSION 816247738SbaptPACKAGE 817247738SbaptCYGPATH_W 818247738Sbaptam__isrc 819247738SbaptINSTALL_DATA 820247738SbaptINSTALL_SCRIPT 821247738SbaptINSTALL_PROGRAM 822247738Sbapttarget_alias 823247738Sbapthost_alias 824247738Sbaptbuild_alias 825247738SbaptLIBS 826247738SbaptECHO_T 827247738SbaptECHO_N 828247738SbaptECHO_C 829247738SbaptDEFS 830247738Sbaptmandir 831247738Sbaptlocaledir 832247738Sbaptlibdir 833247738Sbaptpsdir 834247738Sbaptpdfdir 835247738Sbaptdvidir 836247738Sbapthtmldir 837247738Sbaptinfodir 838247738Sbaptdocdir 839247738Sbaptoldincludedir 840247738Sbaptincludedir 841247738Sbaptlocalstatedir 842247738Sbaptsharedstatedir 843247738Sbaptsysconfdir 844247738Sbaptdatadir 845247738Sbaptdatarootdir 846247738Sbaptlibexecdir 847247738Sbaptsbindir 848247738Sbaptbindir 849247738Sbaptprogram_transform_name 850247738Sbaptprefix 851247738Sbaptexec_prefix 852247738SbaptPACKAGE_URL 853247738SbaptPACKAGE_BUGREPORT 854247738SbaptPACKAGE_STRING 855247738SbaptPACKAGE_VERSION 856247738SbaptPACKAGE_TARNAME 857247738SbaptPACKAGE_NAME 858247738SbaptPATH_SEPARATOR 859247738SbaptSHELL' 860247738Sbaptac_subst_files='' 861247738Sbaptac_user_opts=' 862247738Sbaptenable_option_checking 863247738Sbaptenable_dependency_tracking 864247738Sbaptenable_shared 865247738Sbaptenable_static 866247738Sbaptwith_pic 867247738Sbaptenable_fast_install 868247738Sbaptwith_gnu_ld 869247738Sbaptenable_libtool_lock 870247738Sbapt' 871247738Sbapt ac_precious_vars='build_alias 872247738Sbapthost_alias 873247738Sbapttarget_alias 874247738SbaptCC 875247738SbaptCFLAGS 876247738SbaptLDFLAGS 877247738SbaptLIBS 878247738SbaptCPPFLAGS 879247738SbaptCPP' 880247738Sbapt 881247738Sbapt 882247738Sbapt# Initialize some variables set by options. 883247738Sbaptac_init_help= 884247738Sbaptac_init_version=false 885247738Sbaptac_unrecognized_opts= 886247738Sbaptac_unrecognized_sep= 887247738Sbapt# The variables have the same names as the options, with 888247738Sbapt# dashes changed to underlines. 889247738Sbaptcache_file=/dev/null 890247738Sbaptexec_prefix=NONE 891247738Sbaptno_create= 892247738Sbaptno_recursion= 893247738Sbaptprefix=NONE 894247738Sbaptprogram_prefix=NONE 895247738Sbaptprogram_suffix=NONE 896247738Sbaptprogram_transform_name=s,x,x, 897247738Sbaptsilent= 898247738Sbaptsite= 899247738Sbaptsrcdir= 900247738Sbaptverbose= 901247738Sbaptx_includes=NONE 902247738Sbaptx_libraries=NONE 903247738Sbapt 904247738Sbapt# Installation directory options. 905247738Sbapt# These are left unexpanded so users can "make install exec_prefix=/foo" 906247738Sbapt# and all the variables that are supposed to be based on exec_prefix 907247738Sbapt# by default will actually change. 908247738Sbapt# Use braces instead of parens because sh, perl, etc. also accept them. 909247738Sbapt# (The list follows the same order as the GNU Coding Standards.) 910247738Sbaptbindir='${exec_prefix}/bin' 911247738Sbaptsbindir='${exec_prefix}/sbin' 912247738Sbaptlibexecdir='${exec_prefix}/libexec' 913247738Sbaptdatarootdir='${prefix}/share' 914247738Sbaptdatadir='${datarootdir}' 915247738Sbaptsysconfdir='${prefix}/etc' 916247738Sbaptsharedstatedir='${prefix}/com' 917247738Sbaptlocalstatedir='${prefix}/var' 918247738Sbaptincludedir='${prefix}/include' 919247738Sbaptoldincludedir='/usr/include' 920247738Sbaptdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 921247738Sbaptinfodir='${datarootdir}/info' 922247738Sbapthtmldir='${docdir}' 923247738Sbaptdvidir='${docdir}' 924247738Sbaptpdfdir='${docdir}' 925247738Sbaptpsdir='${docdir}' 926247738Sbaptlibdir='${exec_prefix}/lib' 927247738Sbaptlocaledir='${datarootdir}/locale' 928247738Sbaptmandir='${datarootdir}/man' 929247738Sbapt 930247738Sbaptac_prev= 931247738Sbaptac_dashdash= 932247738Sbaptfor ac_option 933247738Sbaptdo 934247738Sbapt # If the previous option needs an argument, assign it. 935247738Sbapt if test -n "$ac_prev"; then 936247738Sbapt eval $ac_prev=\$ac_option 937247738Sbapt ac_prev= 938247738Sbapt continue 939247738Sbapt fi 940247738Sbapt 941247738Sbapt case $ac_option in 942247738Sbapt *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 943247738Sbapt *=) ac_optarg= ;; 944247738Sbapt *) ac_optarg=yes ;; 945247738Sbapt esac 946247738Sbapt 947247738Sbapt # Accept the important Cygnus configure options, so we can diagnose typos. 948247738Sbapt 949247738Sbapt case $ac_dashdash$ac_option in 950247738Sbapt --) 951247738Sbapt ac_dashdash=yes ;; 952247738Sbapt 953247738Sbapt -bindir | --bindir | --bindi | --bind | --bin | --bi) 954247738Sbapt ac_prev=bindir ;; 955247738Sbapt -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 956247738Sbapt bindir=$ac_optarg ;; 957247738Sbapt 958247738Sbapt -build | --build | --buil | --bui | --bu) 959247738Sbapt ac_prev=build_alias ;; 960247738Sbapt -build=* | --build=* | --buil=* | --bui=* | --bu=*) 961247738Sbapt build_alias=$ac_optarg ;; 962247738Sbapt 963247738Sbapt -cache-file | --cache-file | --cache-fil | --cache-fi \ 964247738Sbapt | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 965247738Sbapt ac_prev=cache_file ;; 966247738Sbapt -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 967247738Sbapt | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 968247738Sbapt cache_file=$ac_optarg ;; 969247738Sbapt 970247738Sbapt --config-cache | -C) 971247738Sbapt cache_file=config.cache ;; 972247738Sbapt 973247738Sbapt -datadir | --datadir | --datadi | --datad) 974247738Sbapt ac_prev=datadir ;; 975247738Sbapt -datadir=* | --datadir=* | --datadi=* | --datad=*) 976247738Sbapt datadir=$ac_optarg ;; 977247738Sbapt 978247738Sbapt -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 979247738Sbapt | --dataroo | --dataro | --datar) 980247738Sbapt ac_prev=datarootdir ;; 981247738Sbapt -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 982247738Sbapt | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 983247738Sbapt datarootdir=$ac_optarg ;; 984247738Sbapt 985247738Sbapt -disable-* | --disable-*) 986247738Sbapt ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 987247738Sbapt # Reject names that are not valid shell variable names. 988247738Sbapt expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 989247738Sbapt as_fn_error $? "invalid feature name: $ac_useropt" 990247738Sbapt ac_useropt_orig=$ac_useropt 991247738Sbapt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 992247738Sbapt case $ac_user_opts in 993247738Sbapt *" 994247738Sbapt"enable_$ac_useropt" 995247738Sbapt"*) ;; 996247738Sbapt *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 997247738Sbapt ac_unrecognized_sep=', ';; 998247738Sbapt esac 999247738Sbapt eval enable_$ac_useropt=no ;; 1000247738Sbapt 1001247738Sbapt -docdir | --docdir | --docdi | --doc | --do) 1002247738Sbapt ac_prev=docdir ;; 1003247738Sbapt -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1004247738Sbapt docdir=$ac_optarg ;; 1005247738Sbapt 1006247738Sbapt -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1007247738Sbapt ac_prev=dvidir ;; 1008247738Sbapt -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1009247738Sbapt dvidir=$ac_optarg ;; 1010247738Sbapt 1011247738Sbapt -enable-* | --enable-*) 1012247738Sbapt ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1013247738Sbapt # Reject names that are not valid shell variable names. 1014247738Sbapt expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1015247738Sbapt as_fn_error $? "invalid feature name: $ac_useropt" 1016247738Sbapt ac_useropt_orig=$ac_useropt 1017247738Sbapt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1018247738Sbapt case $ac_user_opts in 1019247738Sbapt *" 1020247738Sbapt"enable_$ac_useropt" 1021247738Sbapt"*) ;; 1022247738Sbapt *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1023247738Sbapt ac_unrecognized_sep=', ';; 1024247738Sbapt esac 1025247738Sbapt eval enable_$ac_useropt=\$ac_optarg ;; 1026247738Sbapt 1027247738Sbapt -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1028247738Sbapt | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1029247738Sbapt | --exec | --exe | --ex) 1030247738Sbapt ac_prev=exec_prefix ;; 1031247738Sbapt -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1032247738Sbapt | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1033247738Sbapt | --exec=* | --exe=* | --ex=*) 1034247738Sbapt exec_prefix=$ac_optarg ;; 1035247738Sbapt 1036247738Sbapt -gas | --gas | --ga | --g) 1037247738Sbapt # Obsolete; use --with-gas. 1038247738Sbapt with_gas=yes ;; 1039247738Sbapt 1040247738Sbapt -help | --help | --hel | --he | -h) 1041247738Sbapt ac_init_help=long ;; 1042247738Sbapt -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1043247738Sbapt ac_init_help=recursive ;; 1044247738Sbapt -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1045247738Sbapt ac_init_help=short ;; 1046247738Sbapt 1047247738Sbapt -host | --host | --hos | --ho) 1048247738Sbapt ac_prev=host_alias ;; 1049247738Sbapt -host=* | --host=* | --hos=* | --ho=*) 1050247738Sbapt host_alias=$ac_optarg ;; 1051247738Sbapt 1052247738Sbapt -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1053247738Sbapt ac_prev=htmldir ;; 1054247738Sbapt -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1055247738Sbapt | --ht=*) 1056247738Sbapt htmldir=$ac_optarg ;; 1057247738Sbapt 1058247738Sbapt -includedir | --includedir | --includedi | --included | --include \ 1059247738Sbapt | --includ | --inclu | --incl | --inc) 1060247738Sbapt ac_prev=includedir ;; 1061247738Sbapt -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1062247738Sbapt | --includ=* | --inclu=* | --incl=* | --inc=*) 1063247738Sbapt includedir=$ac_optarg ;; 1064247738Sbapt 1065247738Sbapt -infodir | --infodir | --infodi | --infod | --info | --inf) 1066247738Sbapt ac_prev=infodir ;; 1067247738Sbapt -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1068247738Sbapt infodir=$ac_optarg ;; 1069247738Sbapt 1070247738Sbapt -libdir | --libdir | --libdi | --libd) 1071247738Sbapt ac_prev=libdir ;; 1072247738Sbapt -libdir=* | --libdir=* | --libdi=* | --libd=*) 1073247738Sbapt libdir=$ac_optarg ;; 1074247738Sbapt 1075247738Sbapt -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1076247738Sbapt | --libexe | --libex | --libe) 1077247738Sbapt ac_prev=libexecdir ;; 1078247738Sbapt -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1079247738Sbapt | --libexe=* | --libex=* | --libe=*) 1080247738Sbapt libexecdir=$ac_optarg ;; 1081247738Sbapt 1082247738Sbapt -localedir | --localedir | --localedi | --localed | --locale) 1083247738Sbapt ac_prev=localedir ;; 1084247738Sbapt -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1085247738Sbapt localedir=$ac_optarg ;; 1086247738Sbapt 1087247738Sbapt -localstatedir | --localstatedir | --localstatedi | --localstated \ 1088247738Sbapt | --localstate | --localstat | --localsta | --localst | --locals) 1089247738Sbapt ac_prev=localstatedir ;; 1090247738Sbapt -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1091247738Sbapt | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1092247738Sbapt localstatedir=$ac_optarg ;; 1093247738Sbapt 1094247738Sbapt -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1095247738Sbapt ac_prev=mandir ;; 1096247738Sbapt -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1097247738Sbapt mandir=$ac_optarg ;; 1098247738Sbapt 1099247738Sbapt -nfp | --nfp | --nf) 1100247738Sbapt # Obsolete; use --without-fp. 1101247738Sbapt with_fp=no ;; 1102247738Sbapt 1103247738Sbapt -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1104247738Sbapt | --no-cr | --no-c | -n) 1105247738Sbapt no_create=yes ;; 1106247738Sbapt 1107247738Sbapt -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1108247738Sbapt | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1109247738Sbapt no_recursion=yes ;; 1110247738Sbapt 1111247738Sbapt -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1112247738Sbapt | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1113247738Sbapt | --oldin | --oldi | --old | --ol | --o) 1114247738Sbapt ac_prev=oldincludedir ;; 1115247738Sbapt -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1116247738Sbapt | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1117247738Sbapt | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1118247738Sbapt oldincludedir=$ac_optarg ;; 1119247738Sbapt 1120247738Sbapt -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1121247738Sbapt ac_prev=prefix ;; 1122247738Sbapt -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1123247738Sbapt prefix=$ac_optarg ;; 1124247738Sbapt 1125247738Sbapt -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1126247738Sbapt | --program-pre | --program-pr | --program-p) 1127247738Sbapt ac_prev=program_prefix ;; 1128247738Sbapt -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1129247738Sbapt | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1130247738Sbapt program_prefix=$ac_optarg ;; 1131247738Sbapt 1132247738Sbapt -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1133247738Sbapt | --program-suf | --program-su | --program-s) 1134247738Sbapt ac_prev=program_suffix ;; 1135247738Sbapt -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1136247738Sbapt | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1137247738Sbapt program_suffix=$ac_optarg ;; 1138247738Sbapt 1139247738Sbapt -program-transform-name | --program-transform-name \ 1140247738Sbapt | --program-transform-nam | --program-transform-na \ 1141247738Sbapt | --program-transform-n | --program-transform- \ 1142247738Sbapt | --program-transform | --program-transfor \ 1143247738Sbapt | --program-transfo | --program-transf \ 1144247738Sbapt | --program-trans | --program-tran \ 1145247738Sbapt | --progr-tra | --program-tr | --program-t) 1146247738Sbapt ac_prev=program_transform_name ;; 1147247738Sbapt -program-transform-name=* | --program-transform-name=* \ 1148247738Sbapt | --program-transform-nam=* | --program-transform-na=* \ 1149247738Sbapt | --program-transform-n=* | --program-transform-=* \ 1150247738Sbapt | --program-transform=* | --program-transfor=* \ 1151247738Sbapt | --program-transfo=* | --program-transf=* \ 1152247738Sbapt | --program-trans=* | --program-tran=* \ 1153247738Sbapt | --progr-tra=* | --program-tr=* | --program-t=*) 1154247738Sbapt program_transform_name=$ac_optarg ;; 1155247738Sbapt 1156247738Sbapt -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1157247738Sbapt ac_prev=pdfdir ;; 1158247738Sbapt -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1159247738Sbapt pdfdir=$ac_optarg ;; 1160247738Sbapt 1161247738Sbapt -psdir | --psdir | --psdi | --psd | --ps) 1162247738Sbapt ac_prev=psdir ;; 1163247738Sbapt -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1164247738Sbapt psdir=$ac_optarg ;; 1165247738Sbapt 1166247738Sbapt -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1167247738Sbapt | -silent | --silent | --silen | --sile | --sil) 1168247738Sbapt silent=yes ;; 1169247738Sbapt 1170247738Sbapt -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1171247738Sbapt ac_prev=sbindir ;; 1172247738Sbapt -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1173247738Sbapt | --sbi=* | --sb=*) 1174247738Sbapt sbindir=$ac_optarg ;; 1175247738Sbapt 1176247738Sbapt -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1177247738Sbapt | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1178247738Sbapt | --sharedst | --shareds | --shared | --share | --shar \ 1179247738Sbapt | --sha | --sh) 1180247738Sbapt ac_prev=sharedstatedir ;; 1181247738Sbapt -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1182247738Sbapt | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1183247738Sbapt | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1184247738Sbapt | --sha=* | --sh=*) 1185247738Sbapt sharedstatedir=$ac_optarg ;; 1186247738Sbapt 1187247738Sbapt -site | --site | --sit) 1188247738Sbapt ac_prev=site ;; 1189247738Sbapt -site=* | --site=* | --sit=*) 1190247738Sbapt site=$ac_optarg ;; 1191247738Sbapt 1192247738Sbapt -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1193247738Sbapt ac_prev=srcdir ;; 1194247738Sbapt -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1195247738Sbapt srcdir=$ac_optarg ;; 1196247738Sbapt 1197247738Sbapt -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1198247738Sbapt | --syscon | --sysco | --sysc | --sys | --sy) 1199247738Sbapt ac_prev=sysconfdir ;; 1200247738Sbapt -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1201247738Sbapt | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1202247738Sbapt sysconfdir=$ac_optarg ;; 1203247738Sbapt 1204247738Sbapt -target | --target | --targe | --targ | --tar | --ta | --t) 1205247738Sbapt ac_prev=target_alias ;; 1206247738Sbapt -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1207247738Sbapt target_alias=$ac_optarg ;; 1208247738Sbapt 1209247738Sbapt -v | -verbose | --verbose | --verbos | --verbo | --verb) 1210247738Sbapt verbose=yes ;; 1211247738Sbapt 1212247738Sbapt -version | --version | --versio | --versi | --vers | -V) 1213247738Sbapt ac_init_version=: ;; 1214247738Sbapt 1215247738Sbapt -with-* | --with-*) 1216247738Sbapt ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1217247738Sbapt # Reject names that are not valid shell variable names. 1218247738Sbapt expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1219247738Sbapt as_fn_error $? "invalid package name: $ac_useropt" 1220247738Sbapt ac_useropt_orig=$ac_useropt 1221247738Sbapt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1222247738Sbapt case $ac_user_opts in 1223247738Sbapt *" 1224247738Sbapt"with_$ac_useropt" 1225247738Sbapt"*) ;; 1226247738Sbapt *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1227247738Sbapt ac_unrecognized_sep=', ';; 1228247738Sbapt esac 1229247738Sbapt eval with_$ac_useropt=\$ac_optarg ;; 1230247738Sbapt 1231247738Sbapt -without-* | --without-*) 1232247738Sbapt ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1233247738Sbapt # Reject names that are not valid shell variable names. 1234247738Sbapt expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1235247738Sbapt as_fn_error $? "invalid package name: $ac_useropt" 1236247738Sbapt ac_useropt_orig=$ac_useropt 1237247738Sbapt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1238247738Sbapt case $ac_user_opts in 1239247738Sbapt *" 1240247738Sbapt"with_$ac_useropt" 1241247738Sbapt"*) ;; 1242247738Sbapt *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1243247738Sbapt ac_unrecognized_sep=', ';; 1244247738Sbapt esac 1245247738Sbapt eval with_$ac_useropt=no ;; 1246247738Sbapt 1247247738Sbapt --x) 1248247738Sbapt # Obsolete; use --with-x. 1249247738Sbapt with_x=yes ;; 1250247738Sbapt 1251247738Sbapt -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1252247738Sbapt | --x-incl | --x-inc | --x-in | --x-i) 1253247738Sbapt ac_prev=x_includes ;; 1254247738Sbapt -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1255247738Sbapt | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1256247738Sbapt x_includes=$ac_optarg ;; 1257247738Sbapt 1258247738Sbapt -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1259247738Sbapt | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1260247738Sbapt ac_prev=x_libraries ;; 1261247738Sbapt -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1262247738Sbapt | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1263247738Sbapt x_libraries=$ac_optarg ;; 1264247738Sbapt 1265247738Sbapt -*) as_fn_error $? "unrecognized option: \`$ac_option' 1266247738SbaptTry \`$0 --help' for more information" 1267247738Sbapt ;; 1268247738Sbapt 1269247738Sbapt *=*) 1270247738Sbapt ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1271247738Sbapt # Reject names that are not valid shell variable names. 1272247738Sbapt case $ac_envvar in #( 1273247738Sbapt '' | [0-9]* | *[!_$as_cr_alnum]* ) 1274247738Sbapt as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1275247738Sbapt esac 1276247738Sbapt eval $ac_envvar=\$ac_optarg 1277247738Sbapt export $ac_envvar ;; 1278247738Sbapt 1279247738Sbapt *) 1280247738Sbapt # FIXME: should be removed in autoconf 3.0. 1281247738Sbapt $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1282247738Sbapt expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1283247738Sbapt $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1284247738Sbapt : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1285247738Sbapt ;; 1286247738Sbapt 1287247738Sbapt esac 1288247738Sbaptdone 1289247738Sbapt 1290247738Sbaptif test -n "$ac_prev"; then 1291247738Sbapt ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1292247738Sbapt as_fn_error $? "missing argument to $ac_option" 1293247738Sbaptfi 1294247738Sbapt 1295247738Sbaptif test -n "$ac_unrecognized_opts"; then 1296247738Sbapt case $enable_option_checking in 1297247738Sbapt no) ;; 1298247738Sbapt fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1299247738Sbapt *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1300247738Sbapt esac 1301247738Sbaptfi 1302247738Sbapt 1303247738Sbapt# Check all directory arguments for consistency. 1304247738Sbaptfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1305247738Sbapt datadir sysconfdir sharedstatedir localstatedir includedir \ 1306247738Sbapt oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1307247738Sbapt libdir localedir mandir 1308247738Sbaptdo 1309247738Sbapt eval ac_val=\$$ac_var 1310247738Sbapt # Remove trailing slashes. 1311247738Sbapt case $ac_val in 1312247738Sbapt */ ) 1313247738Sbapt ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1314247738Sbapt eval $ac_var=\$ac_val;; 1315247738Sbapt esac 1316247738Sbapt # Be sure to have absolute directory names. 1317247738Sbapt case $ac_val in 1318247738Sbapt [\\/$]* | ?:[\\/]* ) continue;; 1319247738Sbapt NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1320247738Sbapt esac 1321247738Sbapt as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1322247738Sbaptdone 1323247738Sbapt 1324247738Sbapt# There might be people who depend on the old broken behavior: `$host' 1325247738Sbapt# used to hold the argument of --host etc. 1326247738Sbapt# FIXME: To remove some day. 1327247738Sbaptbuild=$build_alias 1328247738Sbapthost=$host_alias 1329247738Sbapttarget=$target_alias 1330247738Sbapt 1331247738Sbapt# FIXME: To remove some day. 1332247738Sbaptif test "x$host_alias" != x; then 1333247738Sbapt if test "x$build_alias" = x; then 1334247738Sbapt cross_compiling=maybe 1335247738Sbapt $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1336247738Sbapt If a cross compiler is detected then cross compile mode will be used" >&2 1337247738Sbapt elif test "x$build_alias" != "x$host_alias"; then 1338247738Sbapt cross_compiling=yes 1339247738Sbapt fi 1340247738Sbaptfi 1341247738Sbapt 1342247738Sbaptac_tool_prefix= 1343247738Sbapttest -n "$host_alias" && ac_tool_prefix=$host_alias- 1344247738Sbapt 1345247738Sbapttest "$silent" = yes && exec 6>/dev/null 1346247738Sbapt 1347247738Sbapt 1348247738Sbaptac_pwd=`pwd` && test -n "$ac_pwd" && 1349247738Sbaptac_ls_di=`ls -di .` && 1350247738Sbaptac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1351247738Sbapt as_fn_error $? "working directory cannot be determined" 1352247738Sbapttest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1353247738Sbapt as_fn_error $? "pwd does not report name of working directory" 1354247738Sbapt 1355247738Sbapt 1356247738Sbapt# Find the source files, if location was not specified. 1357247738Sbaptif test -z "$srcdir"; then 1358247738Sbapt ac_srcdir_defaulted=yes 1359247738Sbapt # Try the directory containing this script, then the parent directory. 1360247738Sbapt ac_confdir=`$as_dirname -- "$as_myself" || 1361247738Sbapt$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1362247738Sbapt X"$as_myself" : 'X\(//\)[^/]' \| \ 1363247738Sbapt X"$as_myself" : 'X\(//\)$' \| \ 1364247738Sbapt X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1365247738Sbapt$as_echo X"$as_myself" | 1366247738Sbapt sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1367247738Sbapt s//\1/ 1368247738Sbapt q 1369247738Sbapt } 1370247738Sbapt /^X\(\/\/\)[^/].*/{ 1371247738Sbapt s//\1/ 1372247738Sbapt q 1373247738Sbapt } 1374247738Sbapt /^X\(\/\/\)$/{ 1375247738Sbapt s//\1/ 1376247738Sbapt q 1377247738Sbapt } 1378247738Sbapt /^X\(\/\).*/{ 1379247738Sbapt s//\1/ 1380247738Sbapt q 1381247738Sbapt } 1382247738Sbapt s/.*/./; q'` 1383247738Sbapt srcdir=$ac_confdir 1384247738Sbapt if test ! -r "$srcdir/$ac_unique_file"; then 1385247738Sbapt srcdir=.. 1386247738Sbapt fi 1387247738Sbaptelse 1388247738Sbapt ac_srcdir_defaulted=no 1389247738Sbaptfi 1390247738Sbaptif test ! -r "$srcdir/$ac_unique_file"; then 1391247738Sbapt test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1392247738Sbapt as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1393247738Sbaptfi 1394247738Sbaptac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1395247738Sbaptac_abs_confdir=`( 1396247738Sbapt cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1397247738Sbapt pwd)` 1398247738Sbapt# When building in place, set srcdir=. 1399247738Sbaptif test "$ac_abs_confdir" = "$ac_pwd"; then 1400247738Sbapt srcdir=. 1401247738Sbaptfi 1402247738Sbapt# Remove unnecessary trailing slashes from srcdir. 1403247738Sbapt# Double slashes in file names in object file debugging info 1404247738Sbapt# mess up M-x gdb in Emacs. 1405247738Sbaptcase $srcdir in 1406247738Sbapt*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1407247738Sbaptesac 1408247738Sbaptfor ac_var in $ac_precious_vars; do 1409247738Sbapt eval ac_env_${ac_var}_set=\${${ac_var}+set} 1410247738Sbapt eval ac_env_${ac_var}_value=\$${ac_var} 1411247738Sbapt eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1412247738Sbapt eval ac_cv_env_${ac_var}_value=\$${ac_var} 1413247738Sbaptdone 1414247738Sbapt 1415247738Sbapt# 1416247738Sbapt# Report the --help message. 1417247738Sbapt# 1418247738Sbaptif test "$ac_init_help" = "long"; then 1419247738Sbapt # Omit some internal or obsolete options to make the list less imposing. 1420247738Sbapt # This message is too long to be a string in the A/UX 3.1 sh. 1421247738Sbapt cat <<_ACEOF 1422247738Sbapt\`configure' configures yaml 0.1.4 to adapt to many kinds of systems. 1423247738Sbapt 1424247738SbaptUsage: $0 [OPTION]... [VAR=VALUE]... 1425247738Sbapt 1426247738SbaptTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1427247738SbaptVAR=VALUE. See below for descriptions of some of the useful variables. 1428247738Sbapt 1429247738SbaptDefaults for the options are specified in brackets. 1430247738Sbapt 1431247738SbaptConfiguration: 1432247738Sbapt -h, --help display this help and exit 1433247738Sbapt --help=short display options specific to this package 1434247738Sbapt --help=recursive display the short help of all the included packages 1435247738Sbapt -V, --version display version information and exit 1436247738Sbapt -q, --quiet, --silent do not print \`checking ...' messages 1437247738Sbapt --cache-file=FILE cache test results in FILE [disabled] 1438247738Sbapt -C, --config-cache alias for \`--cache-file=config.cache' 1439247738Sbapt -n, --no-create do not create output files 1440247738Sbapt --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1441247738Sbapt 1442247738SbaptInstallation directories: 1443247738Sbapt --prefix=PREFIX install architecture-independent files in PREFIX 1444247738Sbapt [$ac_default_prefix] 1445247738Sbapt --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1446247738Sbapt [PREFIX] 1447247738Sbapt 1448247738SbaptBy default, \`make install' will install all the files in 1449247738Sbapt\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1450247738Sbaptan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1451247738Sbaptfor instance \`--prefix=\$HOME'. 1452247738Sbapt 1453247738SbaptFor better control, use the options below. 1454247738Sbapt 1455247738SbaptFine tuning of the installation directories: 1456247738Sbapt --bindir=DIR user executables [EPREFIX/bin] 1457247738Sbapt --sbindir=DIR system admin executables [EPREFIX/sbin] 1458247738Sbapt --libexecdir=DIR program executables [EPREFIX/libexec] 1459247738Sbapt --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1460247738Sbapt --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1461247738Sbapt --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1462247738Sbapt --libdir=DIR object code libraries [EPREFIX/lib] 1463247738Sbapt --includedir=DIR C header files [PREFIX/include] 1464247738Sbapt --oldincludedir=DIR C header files for non-gcc [/usr/include] 1465247738Sbapt --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1466247738Sbapt --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1467247738Sbapt --infodir=DIR info documentation [DATAROOTDIR/info] 1468247738Sbapt --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1469247738Sbapt --mandir=DIR man documentation [DATAROOTDIR/man] 1470247738Sbapt --docdir=DIR documentation root [DATAROOTDIR/doc/yaml] 1471247738Sbapt --htmldir=DIR html documentation [DOCDIR] 1472247738Sbapt --dvidir=DIR dvi documentation [DOCDIR] 1473247738Sbapt --pdfdir=DIR pdf documentation [DOCDIR] 1474247738Sbapt --psdir=DIR ps documentation [DOCDIR] 1475247738Sbapt_ACEOF 1476247738Sbapt 1477247738Sbapt cat <<\_ACEOF 1478247738Sbapt 1479247738SbaptProgram names: 1480247738Sbapt --program-prefix=PREFIX prepend PREFIX to installed program names 1481247738Sbapt --program-suffix=SUFFIX append SUFFIX to installed program names 1482247738Sbapt --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1483247738Sbapt 1484247738SbaptSystem types: 1485247738Sbapt --build=BUILD configure for building on BUILD [guessed] 1486247738Sbapt --host=HOST cross-compile to build programs to run on HOST [BUILD] 1487247738Sbapt_ACEOF 1488247738Sbaptfi 1489247738Sbapt 1490247738Sbaptif test -n "$ac_init_help"; then 1491247738Sbapt case $ac_init_help in 1492247738Sbapt short | recursive ) echo "Configuration of yaml 0.1.4:";; 1493247738Sbapt esac 1494247738Sbapt cat <<\_ACEOF 1495247738Sbapt 1496247738SbaptOptional Features: 1497247738Sbapt --disable-option-checking ignore unrecognized --enable/--with options 1498247738Sbapt --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1499247738Sbapt --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1500247738Sbapt --disable-dependency-tracking speeds up one-time build 1501247738Sbapt --enable-dependency-tracking do not reject slow dependency extractors 1502247738Sbapt --enable-shared[=PKGS] build shared libraries [default=yes] 1503247738Sbapt --enable-static[=PKGS] build static libraries [default=yes] 1504247738Sbapt --enable-fast-install[=PKGS] 1505247738Sbapt optimize for fast installation [default=yes] 1506247738Sbapt --disable-libtool-lock avoid locking (might break parallel builds) 1507247738Sbapt 1508247738SbaptOptional Packages: 1509247738Sbapt --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1510247738Sbapt --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1511247738Sbapt --with-pic try to use only PIC/non-PIC objects [default=use 1512247738Sbapt both] 1513247738Sbapt --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1514247738Sbapt 1515247738SbaptSome influential environment variables: 1516247738Sbapt CC C compiler command 1517247738Sbapt CFLAGS C compiler flags 1518247738Sbapt LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1519247738Sbapt nonstandard directory <lib dir> 1520247738Sbapt LIBS libraries to pass to the linker, e.g. -l<library> 1521247738Sbapt CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1522247738Sbapt you have headers in a nonstandard directory <include dir> 1523247738Sbapt CPP C preprocessor 1524247738Sbapt 1525247738SbaptUse these variables to override the choices made by `configure' or to help 1526247738Sbaptit to find libraries and programs with nonstandard names/locations. 1527247738Sbapt 1528247738SbaptReport bugs to <http://pyyaml.org/newticket?component=libyaml>. 1529247738Sbapt_ACEOF 1530247738Sbaptac_status=$? 1531247738Sbaptfi 1532247738Sbapt 1533247738Sbaptif test "$ac_init_help" = "recursive"; then 1534247738Sbapt # If there are subdirs, report their specific --help. 1535247738Sbapt for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1536247738Sbapt test -d "$ac_dir" || 1537247738Sbapt { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1538247738Sbapt continue 1539247738Sbapt ac_builddir=. 1540247738Sbapt 1541247738Sbaptcase "$ac_dir" in 1542247738Sbapt.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1543247738Sbapt*) 1544247738Sbapt ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1545247738Sbapt # A ".." for each directory in $ac_dir_suffix. 1546247738Sbapt ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1547247738Sbapt case $ac_top_builddir_sub in 1548247738Sbapt "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1549247738Sbapt *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1550247738Sbapt esac ;; 1551247738Sbaptesac 1552247738Sbaptac_abs_top_builddir=$ac_pwd 1553247738Sbaptac_abs_builddir=$ac_pwd$ac_dir_suffix 1554247738Sbapt# for backward compatibility: 1555247738Sbaptac_top_builddir=$ac_top_build_prefix 1556247738Sbapt 1557247738Sbaptcase $srcdir in 1558247738Sbapt .) # We are building in place. 1559247738Sbapt ac_srcdir=. 1560247738Sbapt ac_top_srcdir=$ac_top_builddir_sub 1561247738Sbapt ac_abs_top_srcdir=$ac_pwd ;; 1562247738Sbapt [\\/]* | ?:[\\/]* ) # Absolute name. 1563247738Sbapt ac_srcdir=$srcdir$ac_dir_suffix; 1564247738Sbapt ac_top_srcdir=$srcdir 1565247738Sbapt ac_abs_top_srcdir=$srcdir ;; 1566247738Sbapt *) # Relative name. 1567247738Sbapt ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1568247738Sbapt ac_top_srcdir=$ac_top_build_prefix$srcdir 1569247738Sbapt ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1570247738Sbaptesac 1571247738Sbaptac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1572247738Sbapt 1573247738Sbapt cd "$ac_dir" || { ac_status=$?; continue; } 1574247738Sbapt # Check for guested configure. 1575247738Sbapt if test -f "$ac_srcdir/configure.gnu"; then 1576247738Sbapt echo && 1577247738Sbapt $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1578247738Sbapt elif test -f "$ac_srcdir/configure"; then 1579247738Sbapt echo && 1580247738Sbapt $SHELL "$ac_srcdir/configure" --help=recursive 1581247738Sbapt else 1582247738Sbapt $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1583247738Sbapt fi || ac_status=$? 1584247738Sbapt cd "$ac_pwd" || { ac_status=$?; break; } 1585247738Sbapt done 1586247738Sbaptfi 1587247738Sbapt 1588247738Sbapttest -n "$ac_init_help" && exit $ac_status 1589247738Sbaptif $ac_init_version; then 1590247738Sbapt cat <<\_ACEOF 1591247738Sbaptyaml configure 0.1.4 1592247738Sbaptgenerated by GNU Autoconf 2.67 1593247738Sbapt 1594247738SbaptCopyright (C) 2010 Free Software Foundation, Inc. 1595247738SbaptThis configure script is free software; the Free Software Foundation 1596247738Sbaptgives unlimited permission to copy, distribute and modify it. 1597247738Sbapt_ACEOF 1598247738Sbapt exit 1599247738Sbaptfi 1600247738Sbapt 1601247738Sbapt## ------------------------ ## 1602247738Sbapt## Autoconf initialization. ## 1603247738Sbapt## ------------------------ ## 1604247738Sbapt 1605247738Sbapt# ac_fn_c_try_compile LINENO 1606247738Sbapt# -------------------------- 1607247738Sbapt# Try to compile conftest.$ac_ext, and return whether this succeeded. 1608247738Sbaptac_fn_c_try_compile () 1609247738Sbapt{ 1610247738Sbapt as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1611247738Sbapt rm -f conftest.$ac_objext 1612247738Sbapt if { { ac_try="$ac_compile" 1613247738Sbaptcase "(($ac_try" in 1614247738Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1615247738Sbapt *) ac_try_echo=$ac_try;; 1616247738Sbaptesac 1617247738Sbapteval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1618247738Sbapt$as_echo "$ac_try_echo"; } >&5 1619247738Sbapt (eval "$ac_compile") 2>conftest.err 1620247738Sbapt ac_status=$? 1621247738Sbapt if test -s conftest.err; then 1622247738Sbapt grep -v '^ *+' conftest.err >conftest.er1 1623247738Sbapt cat conftest.er1 >&5 1624247738Sbapt mv -f conftest.er1 conftest.err 1625247738Sbapt fi 1626247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1627247738Sbapt test $ac_status = 0; } && { 1628247738Sbapt test -z "$ac_c_werror_flag" || 1629247738Sbapt test ! -s conftest.err 1630247738Sbapt } && test -s conftest.$ac_objext; then : 1631247738Sbapt ac_retval=0 1632247738Sbaptelse 1633247738Sbapt $as_echo "$as_me: failed program was:" >&5 1634247738Sbaptsed 's/^/| /' conftest.$ac_ext >&5 1635247738Sbapt 1636247738Sbapt ac_retval=1 1637247738Sbaptfi 1638247738Sbapt eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1639247738Sbapt as_fn_set_status $ac_retval 1640247738Sbapt 1641247738Sbapt} # ac_fn_c_try_compile 1642247738Sbapt 1643247738Sbapt# ac_fn_c_try_cpp LINENO 1644247738Sbapt# ---------------------- 1645247738Sbapt# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1646247738Sbaptac_fn_c_try_cpp () 1647247738Sbapt{ 1648247738Sbapt as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1649247738Sbapt if { { ac_try="$ac_cpp conftest.$ac_ext" 1650247738Sbaptcase "(($ac_try" in 1651247738Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1652247738Sbapt *) ac_try_echo=$ac_try;; 1653247738Sbaptesac 1654247738Sbapteval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1655247738Sbapt$as_echo "$ac_try_echo"; } >&5 1656247738Sbapt (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1657247738Sbapt ac_status=$? 1658247738Sbapt if test -s conftest.err; then 1659247738Sbapt grep -v '^ *+' conftest.err >conftest.er1 1660247738Sbapt cat conftest.er1 >&5 1661247738Sbapt mv -f conftest.er1 conftest.err 1662247738Sbapt fi 1663247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1664247738Sbapt test $ac_status = 0; } > conftest.i && { 1665247738Sbapt test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1666247738Sbapt test ! -s conftest.err 1667247738Sbapt }; then : 1668247738Sbapt ac_retval=0 1669247738Sbaptelse 1670247738Sbapt $as_echo "$as_me: failed program was:" >&5 1671247738Sbaptsed 's/^/| /' conftest.$ac_ext >&5 1672247738Sbapt 1673247738Sbapt ac_retval=1 1674247738Sbaptfi 1675247738Sbapt eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1676247738Sbapt as_fn_set_status $ac_retval 1677247738Sbapt 1678247738Sbapt} # ac_fn_c_try_cpp 1679247738Sbapt 1680247738Sbapt# ac_fn_c_try_link LINENO 1681247738Sbapt# ----------------------- 1682247738Sbapt# Try to link conftest.$ac_ext, and return whether this succeeded. 1683247738Sbaptac_fn_c_try_link () 1684247738Sbapt{ 1685247738Sbapt as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1686247738Sbapt rm -f conftest.$ac_objext conftest$ac_exeext 1687247738Sbapt if { { ac_try="$ac_link" 1688247738Sbaptcase "(($ac_try" in 1689247738Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1690247738Sbapt *) ac_try_echo=$ac_try;; 1691247738Sbaptesac 1692247738Sbapteval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1693247738Sbapt$as_echo "$ac_try_echo"; } >&5 1694247738Sbapt (eval "$ac_link") 2>conftest.err 1695247738Sbapt ac_status=$? 1696247738Sbapt if test -s conftest.err; then 1697247738Sbapt grep -v '^ *+' conftest.err >conftest.er1 1698247738Sbapt cat conftest.er1 >&5 1699247738Sbapt mv -f conftest.er1 conftest.err 1700247738Sbapt fi 1701247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1702247738Sbapt test $ac_status = 0; } && { 1703247738Sbapt test -z "$ac_c_werror_flag" || 1704247738Sbapt test ! -s conftest.err 1705247738Sbapt } && test -s conftest$ac_exeext && { 1706247738Sbapt test "$cross_compiling" = yes || 1707247738Sbapt $as_test_x conftest$ac_exeext 1708247738Sbapt }; then : 1709247738Sbapt ac_retval=0 1710247738Sbaptelse 1711247738Sbapt $as_echo "$as_me: failed program was:" >&5 1712247738Sbaptsed 's/^/| /' conftest.$ac_ext >&5 1713247738Sbapt 1714247738Sbapt ac_retval=1 1715247738Sbaptfi 1716247738Sbapt # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1717247738Sbapt # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1718247738Sbapt # interfere with the next link command; also delete a directory that is 1719247738Sbapt # left behind by Apple's compiler. We do this before executing the actions. 1720247738Sbapt rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1721247738Sbapt eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1722247738Sbapt as_fn_set_status $ac_retval 1723247738Sbapt 1724247738Sbapt} # ac_fn_c_try_link 1725247738Sbapt 1726247738Sbapt# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1727247738Sbapt# ------------------------------------------------------- 1728247738Sbapt# Tests whether HEADER exists and can be compiled using the include files in 1729247738Sbapt# INCLUDES, setting the cache variable VAR accordingly. 1730247738Sbaptac_fn_c_check_header_compile () 1731247738Sbapt{ 1732247738Sbapt as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1733247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1734247738Sbapt$as_echo_n "checking for $2... " >&6; } 1735247738Sbaptif eval "test \"\${$3+set}\"" = set; then : 1736247738Sbapt $as_echo_n "(cached) " >&6 1737247738Sbaptelse 1738247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1739247738Sbapt/* end confdefs.h. */ 1740247738Sbapt$4 1741247738Sbapt#include <$2> 1742247738Sbapt_ACEOF 1743247738Sbaptif ac_fn_c_try_compile "$LINENO"; then : 1744247738Sbapt eval "$3=yes" 1745247738Sbaptelse 1746247738Sbapt eval "$3=no" 1747247738Sbaptfi 1748247738Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1749247738Sbaptfi 1750247738Sbapteval ac_res=\$$3 1751247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1752247738Sbapt$as_echo "$ac_res" >&6; } 1753247738Sbapt eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1754247738Sbapt 1755247738Sbapt} # ac_fn_c_check_header_compile 1756247738Sbapt 1757247738Sbapt# ac_fn_c_try_run LINENO 1758247738Sbapt# ---------------------- 1759247738Sbapt# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1760247738Sbapt# that executables *can* be run. 1761247738Sbaptac_fn_c_try_run () 1762247738Sbapt{ 1763247738Sbapt as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1764247738Sbapt if { { ac_try="$ac_link" 1765247738Sbaptcase "(($ac_try" in 1766247738Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1767247738Sbapt *) ac_try_echo=$ac_try;; 1768247738Sbaptesac 1769247738Sbapteval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1770247738Sbapt$as_echo "$ac_try_echo"; } >&5 1771247738Sbapt (eval "$ac_link") 2>&5 1772247738Sbapt ac_status=$? 1773247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1774247738Sbapt test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1775247738Sbapt { { case "(($ac_try" in 1776247738Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1777247738Sbapt *) ac_try_echo=$ac_try;; 1778247738Sbaptesac 1779247738Sbapteval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1780247738Sbapt$as_echo "$ac_try_echo"; } >&5 1781247738Sbapt (eval "$ac_try") 2>&5 1782247738Sbapt ac_status=$? 1783247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1784247738Sbapt test $ac_status = 0; }; }; then : 1785247738Sbapt ac_retval=0 1786247738Sbaptelse 1787247738Sbapt $as_echo "$as_me: program exited with status $ac_status" >&5 1788247738Sbapt $as_echo "$as_me: failed program was:" >&5 1789247738Sbaptsed 's/^/| /' conftest.$ac_ext >&5 1790247738Sbapt 1791247738Sbapt ac_retval=$ac_status 1792247738Sbaptfi 1793247738Sbapt rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1794247738Sbapt eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1795247738Sbapt as_fn_set_status $ac_retval 1796247738Sbapt 1797247738Sbapt} # ac_fn_c_try_run 1798247738Sbapt 1799247738Sbapt# ac_fn_c_check_func LINENO FUNC VAR 1800247738Sbapt# ---------------------------------- 1801247738Sbapt# Tests whether FUNC exists, setting the cache variable VAR accordingly 1802247738Sbaptac_fn_c_check_func () 1803247738Sbapt{ 1804247738Sbapt as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1805247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1806247738Sbapt$as_echo_n "checking for $2... " >&6; } 1807247738Sbaptif eval "test \"\${$3+set}\"" = set; then : 1808247738Sbapt $as_echo_n "(cached) " >&6 1809247738Sbaptelse 1810247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1811247738Sbapt/* end confdefs.h. */ 1812247738Sbapt/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1813247738Sbapt For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1814247738Sbapt#define $2 innocuous_$2 1815247738Sbapt 1816247738Sbapt/* System header to define __stub macros and hopefully few prototypes, 1817247738Sbapt which can conflict with char $2 (); below. 1818247738Sbapt Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1819247738Sbapt <limits.h> exists even on freestanding compilers. */ 1820247738Sbapt 1821247738Sbapt#ifdef __STDC__ 1822247738Sbapt# include <limits.h> 1823247738Sbapt#else 1824247738Sbapt# include <assert.h> 1825247738Sbapt#endif 1826247738Sbapt 1827247738Sbapt#undef $2 1828247738Sbapt 1829247738Sbapt/* Override any GCC internal prototype to avoid an error. 1830247738Sbapt Use char because int might match the return type of a GCC 1831247738Sbapt builtin and then its argument prototype would still apply. */ 1832247738Sbapt#ifdef __cplusplus 1833247738Sbaptextern "C" 1834247738Sbapt#endif 1835247738Sbaptchar $2 (); 1836247738Sbapt/* The GNU C library defines this for functions which it implements 1837247738Sbapt to always fail with ENOSYS. Some functions are actually named 1838247738Sbapt something starting with __ and the normal name is an alias. */ 1839247738Sbapt#if defined __stub_$2 || defined __stub___$2 1840247738Sbaptchoke me 1841247738Sbapt#endif 1842247738Sbapt 1843247738Sbaptint 1844247738Sbaptmain () 1845247738Sbapt{ 1846247738Sbaptreturn $2 (); 1847247738Sbapt ; 1848247738Sbapt return 0; 1849247738Sbapt} 1850247738Sbapt_ACEOF 1851247738Sbaptif ac_fn_c_try_link "$LINENO"; then : 1852247738Sbapt eval "$3=yes" 1853247738Sbaptelse 1854247738Sbapt eval "$3=no" 1855247738Sbaptfi 1856247738Sbaptrm -f core conftest.err conftest.$ac_objext \ 1857247738Sbapt conftest$ac_exeext conftest.$ac_ext 1858247738Sbaptfi 1859247738Sbapteval ac_res=\$$3 1860247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1861247738Sbapt$as_echo "$ac_res" >&6; } 1862247738Sbapt eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1863247738Sbapt 1864247738Sbapt} # ac_fn_c_check_func 1865247738Sbapt 1866247738Sbapt# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1867247738Sbapt# ------------------------------------------------------- 1868247738Sbapt# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1869247738Sbapt# the include files in INCLUDES and setting the cache variable VAR 1870247738Sbapt# accordingly. 1871247738Sbaptac_fn_c_check_header_mongrel () 1872247738Sbapt{ 1873247738Sbapt as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1874247738Sbapt if eval "test \"\${$3+set}\"" = set; then : 1875247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1876247738Sbapt$as_echo_n "checking for $2... " >&6; } 1877247738Sbaptif eval "test \"\${$3+set}\"" = set; then : 1878247738Sbapt $as_echo_n "(cached) " >&6 1879247738Sbaptfi 1880247738Sbapteval ac_res=\$$3 1881247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1882247738Sbapt$as_echo "$ac_res" >&6; } 1883247738Sbaptelse 1884247738Sbapt # Is the header compilable? 1885247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1886247738Sbapt$as_echo_n "checking $2 usability... " >&6; } 1887247738Sbaptcat confdefs.h - <<_ACEOF >conftest.$ac_ext 1888247738Sbapt/* end confdefs.h. */ 1889247738Sbapt$4 1890247738Sbapt#include <$2> 1891247738Sbapt_ACEOF 1892247738Sbaptif ac_fn_c_try_compile "$LINENO"; then : 1893247738Sbapt ac_header_compiler=yes 1894247738Sbaptelse 1895247738Sbapt ac_header_compiler=no 1896247738Sbaptfi 1897247738Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1898247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1899247738Sbapt$as_echo "$ac_header_compiler" >&6; } 1900247738Sbapt 1901247738Sbapt# Is the header present? 1902247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1903247738Sbapt$as_echo_n "checking $2 presence... " >&6; } 1904247738Sbaptcat confdefs.h - <<_ACEOF >conftest.$ac_ext 1905247738Sbapt/* end confdefs.h. */ 1906247738Sbapt#include <$2> 1907247738Sbapt_ACEOF 1908247738Sbaptif ac_fn_c_try_cpp "$LINENO"; then : 1909247738Sbapt ac_header_preproc=yes 1910247738Sbaptelse 1911247738Sbapt ac_header_preproc=no 1912247738Sbaptfi 1913247738Sbaptrm -f conftest.err conftest.i conftest.$ac_ext 1914247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1915247738Sbapt$as_echo "$ac_header_preproc" >&6; } 1916247738Sbapt 1917247738Sbapt# So? What about this header? 1918247738Sbaptcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1919247738Sbapt yes:no: ) 1920247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1921247738Sbapt$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1922247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1923247738Sbapt$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1924247738Sbapt ;; 1925247738Sbapt no:yes:* ) 1926247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1927247738Sbapt$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1928247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1929247738Sbapt$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1930247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1931247738Sbapt$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1932247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1933247738Sbapt$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1934247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1935247738Sbapt$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1936247738Sbapt( $as_echo "## ------------------------------------------------------------ ## 1937247738Sbapt## Report this to http://pyyaml.org/newticket?component=libyaml ## 1938247738Sbapt## ------------------------------------------------------------ ##" 1939247738Sbapt ) | sed "s/^/$as_me: WARNING: /" >&2 1940247738Sbapt ;; 1941247738Sbaptesac 1942247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1943247738Sbapt$as_echo_n "checking for $2... " >&6; } 1944247738Sbaptif eval "test \"\${$3+set}\"" = set; then : 1945247738Sbapt $as_echo_n "(cached) " >&6 1946247738Sbaptelse 1947247738Sbapt eval "$3=\$ac_header_compiler" 1948247738Sbaptfi 1949247738Sbapteval ac_res=\$$3 1950247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1951247738Sbapt$as_echo "$ac_res" >&6; } 1952247738Sbaptfi 1953247738Sbapt eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1954247738Sbapt 1955247738Sbapt} # ac_fn_c_check_header_mongrel 1956247738Sbapt 1957247738Sbapt# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1958247738Sbapt# ------------------------------------------- 1959247738Sbapt# Tests whether TYPE exists after having included INCLUDES, setting cache 1960247738Sbapt# variable VAR accordingly. 1961247738Sbaptac_fn_c_check_type () 1962247738Sbapt{ 1963247738Sbapt as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1964247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1965247738Sbapt$as_echo_n "checking for $2... " >&6; } 1966247738Sbaptif eval "test \"\${$3+set}\"" = set; then : 1967247738Sbapt $as_echo_n "(cached) " >&6 1968247738Sbaptelse 1969247738Sbapt eval "$3=no" 1970247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1971247738Sbapt/* end confdefs.h. */ 1972247738Sbapt$4 1973247738Sbaptint 1974247738Sbaptmain () 1975247738Sbapt{ 1976247738Sbaptif (sizeof ($2)) 1977247738Sbapt return 0; 1978247738Sbapt ; 1979247738Sbapt return 0; 1980247738Sbapt} 1981247738Sbapt_ACEOF 1982247738Sbaptif ac_fn_c_try_compile "$LINENO"; then : 1983247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1984247738Sbapt/* end confdefs.h. */ 1985247738Sbapt$4 1986247738Sbaptint 1987247738Sbaptmain () 1988247738Sbapt{ 1989247738Sbaptif (sizeof (($2))) 1990247738Sbapt return 0; 1991247738Sbapt ; 1992247738Sbapt return 0; 1993247738Sbapt} 1994247738Sbapt_ACEOF 1995247738Sbaptif ac_fn_c_try_compile "$LINENO"; then : 1996247738Sbapt 1997247738Sbaptelse 1998247738Sbapt eval "$3=yes" 1999247738Sbaptfi 2000247738Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2001247738Sbaptfi 2002247738Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2003247738Sbaptfi 2004247738Sbapteval ac_res=\$$3 2005247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2006247738Sbapt$as_echo "$ac_res" >&6; } 2007247738Sbapt eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2008247738Sbapt 2009247738Sbapt} # ac_fn_c_check_type 2010247738Sbaptcat >config.log <<_ACEOF 2011247738SbaptThis file contains any messages produced by compilers while 2012247738Sbaptrunning configure, to aid debugging if configure makes a mistake. 2013247738Sbapt 2014247738SbaptIt was created by yaml $as_me 0.1.4, which was 2015247738Sbaptgenerated by GNU Autoconf 2.67. Invocation command line was 2016247738Sbapt 2017247738Sbapt $ $0 $@ 2018247738Sbapt 2019247738Sbapt_ACEOF 2020247738Sbaptexec 5>>config.log 2021247738Sbapt{ 2022247738Sbaptcat <<_ASUNAME 2023247738Sbapt## --------- ## 2024247738Sbapt## Platform. ## 2025247738Sbapt## --------- ## 2026247738Sbapt 2027247738Sbapthostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2028247738Sbaptuname -m = `(uname -m) 2>/dev/null || echo unknown` 2029247738Sbaptuname -r = `(uname -r) 2>/dev/null || echo unknown` 2030247738Sbaptuname -s = `(uname -s) 2>/dev/null || echo unknown` 2031247738Sbaptuname -v = `(uname -v) 2>/dev/null || echo unknown` 2032247738Sbapt 2033247738Sbapt/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2034247738Sbapt/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2035247738Sbapt 2036247738Sbapt/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2037247738Sbapt/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2038247738Sbapt/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2039247738Sbapt/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2040247738Sbapt/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2041247738Sbapt/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2042247738Sbapt/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2043247738Sbapt 2044247738Sbapt_ASUNAME 2045247738Sbapt 2046247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2047247738Sbaptfor as_dir in $PATH 2048247738Sbaptdo 2049247738Sbapt IFS=$as_save_IFS 2050247738Sbapt test -z "$as_dir" && as_dir=. 2051247738Sbapt $as_echo "PATH: $as_dir" 2052247738Sbapt done 2053247738SbaptIFS=$as_save_IFS 2054247738Sbapt 2055247738Sbapt} >&5 2056247738Sbapt 2057247738Sbaptcat >&5 <<_ACEOF 2058247738Sbapt 2059247738Sbapt 2060247738Sbapt## ----------- ## 2061247738Sbapt## Core tests. ## 2062247738Sbapt## ----------- ## 2063247738Sbapt 2064247738Sbapt_ACEOF 2065247738Sbapt 2066247738Sbapt 2067247738Sbapt# Keep a trace of the command line. 2068247738Sbapt# Strip out --no-create and --no-recursion so they do not pile up. 2069247738Sbapt# Strip out --silent because we don't want to record it for future runs. 2070247738Sbapt# Also quote any args containing shell meta-characters. 2071247738Sbapt# Make two passes to allow for proper duplicate-argument suppression. 2072247738Sbaptac_configure_args= 2073247738Sbaptac_configure_args0= 2074247738Sbaptac_configure_args1= 2075247738Sbaptac_must_keep_next=false 2076247738Sbaptfor ac_pass in 1 2 2077247738Sbaptdo 2078247738Sbapt for ac_arg 2079247738Sbapt do 2080247738Sbapt case $ac_arg in 2081247738Sbapt -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2082247738Sbapt -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2083247738Sbapt | -silent | --silent | --silen | --sile | --sil) 2084247738Sbapt continue ;; 2085247738Sbapt *\'*) 2086247738Sbapt ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2087247738Sbapt esac 2088247738Sbapt case $ac_pass in 2089247738Sbapt 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2090247738Sbapt 2) 2091247738Sbapt as_fn_append ac_configure_args1 " '$ac_arg'" 2092247738Sbapt if test $ac_must_keep_next = true; then 2093247738Sbapt ac_must_keep_next=false # Got value, back to normal. 2094247738Sbapt else 2095247738Sbapt case $ac_arg in 2096247738Sbapt *=* | --config-cache | -C | -disable-* | --disable-* \ 2097247738Sbapt | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2098247738Sbapt | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2099247738Sbapt | -with-* | --with-* | -without-* | --without-* | --x) 2100247738Sbapt case "$ac_configure_args0 " in 2101247738Sbapt "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2102247738Sbapt esac 2103247738Sbapt ;; 2104247738Sbapt -* ) ac_must_keep_next=true ;; 2105247738Sbapt esac 2106247738Sbapt fi 2107247738Sbapt as_fn_append ac_configure_args " '$ac_arg'" 2108247738Sbapt ;; 2109247738Sbapt esac 2110247738Sbapt done 2111247738Sbaptdone 2112247738Sbapt{ ac_configure_args0=; unset ac_configure_args0;} 2113247738Sbapt{ ac_configure_args1=; unset ac_configure_args1;} 2114247738Sbapt 2115247738Sbapt# When interrupted or exit'd, cleanup temporary files, and complete 2116247738Sbapt# config.log. We remove comments because anyway the quotes in there 2117247738Sbapt# would cause problems or look ugly. 2118247738Sbapt# WARNING: Use '\'' to represent an apostrophe within the trap. 2119247738Sbapt# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2120247738Sbapttrap 'exit_status=$? 2121247738Sbapt # Save into config.log some information that might help in debugging. 2122247738Sbapt { 2123247738Sbapt echo 2124247738Sbapt 2125247738Sbapt $as_echo "## ---------------- ## 2126247738Sbapt## Cache variables. ## 2127247738Sbapt## ---------------- ##" 2128247738Sbapt echo 2129247738Sbapt # The following way of writing the cache mishandles newlines in values, 2130247738Sbapt( 2131247738Sbapt for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2132247738Sbapt eval ac_val=\$$ac_var 2133247738Sbapt case $ac_val in #( 2134247738Sbapt *${as_nl}*) 2135247738Sbapt case $ac_var in #( 2136247738Sbapt *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2137247738Sbapt$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2138247738Sbapt esac 2139247738Sbapt case $ac_var in #( 2140247738Sbapt _ | IFS | as_nl) ;; #( 2141247738Sbapt BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2142247738Sbapt *) { eval $ac_var=; unset $ac_var;} ;; 2143247738Sbapt esac ;; 2144247738Sbapt esac 2145247738Sbapt done 2146247738Sbapt (set) 2>&1 | 2147247738Sbapt case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2148247738Sbapt *${as_nl}ac_space=\ *) 2149247738Sbapt sed -n \ 2150247738Sbapt "s/'\''/'\''\\\\'\'''\''/g; 2151247738Sbapt s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2152247738Sbapt ;; #( 2153247738Sbapt *) 2154247738Sbapt sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2155247738Sbapt ;; 2156247738Sbapt esac | 2157247738Sbapt sort 2158247738Sbapt) 2159247738Sbapt echo 2160247738Sbapt 2161247738Sbapt $as_echo "## ----------------- ## 2162247738Sbapt## Output variables. ## 2163247738Sbapt## ----------------- ##" 2164247738Sbapt echo 2165247738Sbapt for ac_var in $ac_subst_vars 2166247738Sbapt do 2167247738Sbapt eval ac_val=\$$ac_var 2168247738Sbapt case $ac_val in 2169247738Sbapt *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2170247738Sbapt esac 2171247738Sbapt $as_echo "$ac_var='\''$ac_val'\''" 2172247738Sbapt done | sort 2173247738Sbapt echo 2174247738Sbapt 2175247738Sbapt if test -n "$ac_subst_files"; then 2176247738Sbapt $as_echo "## ------------------- ## 2177247738Sbapt## File substitutions. ## 2178247738Sbapt## ------------------- ##" 2179247738Sbapt echo 2180247738Sbapt for ac_var in $ac_subst_files 2181247738Sbapt do 2182247738Sbapt eval ac_val=\$$ac_var 2183247738Sbapt case $ac_val in 2184247738Sbapt *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2185247738Sbapt esac 2186247738Sbapt $as_echo "$ac_var='\''$ac_val'\''" 2187247738Sbapt done | sort 2188247738Sbapt echo 2189247738Sbapt fi 2190247738Sbapt 2191247738Sbapt if test -s confdefs.h; then 2192247738Sbapt $as_echo "## ----------- ## 2193247738Sbapt## confdefs.h. ## 2194247738Sbapt## ----------- ##" 2195247738Sbapt echo 2196247738Sbapt cat confdefs.h 2197247738Sbapt echo 2198247738Sbapt fi 2199247738Sbapt test "$ac_signal" != 0 && 2200247738Sbapt $as_echo "$as_me: caught signal $ac_signal" 2201247738Sbapt $as_echo "$as_me: exit $exit_status" 2202247738Sbapt } >&5 2203247738Sbapt rm -f core *.core core.conftest.* && 2204247738Sbapt rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2205247738Sbapt exit $exit_status 2206247738Sbapt' 0 2207247738Sbaptfor ac_signal in 1 2 13 15; do 2208247738Sbapt trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2209247738Sbaptdone 2210247738Sbaptac_signal=0 2211247738Sbapt 2212247738Sbapt# confdefs.h avoids OS command line length limits that DEFS can exceed. 2213247738Sbaptrm -f -r conftest* confdefs.h 2214247738Sbapt 2215247738Sbapt$as_echo "/* confdefs.h */" > confdefs.h 2216247738Sbapt 2217247738Sbapt# Predefined preprocessor variables. 2218247738Sbapt 2219247738Sbaptcat >>confdefs.h <<_ACEOF 2220247738Sbapt#define PACKAGE_NAME "$PACKAGE_NAME" 2221247738Sbapt_ACEOF 2222247738Sbapt 2223247738Sbaptcat >>confdefs.h <<_ACEOF 2224247738Sbapt#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2225247738Sbapt_ACEOF 2226247738Sbapt 2227247738Sbaptcat >>confdefs.h <<_ACEOF 2228247738Sbapt#define PACKAGE_VERSION "$PACKAGE_VERSION" 2229247738Sbapt_ACEOF 2230247738Sbapt 2231247738Sbaptcat >>confdefs.h <<_ACEOF 2232247738Sbapt#define PACKAGE_STRING "$PACKAGE_STRING" 2233247738Sbapt_ACEOF 2234247738Sbapt 2235247738Sbaptcat >>confdefs.h <<_ACEOF 2236247738Sbapt#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2237247738Sbapt_ACEOF 2238247738Sbapt 2239247738Sbaptcat >>confdefs.h <<_ACEOF 2240247738Sbapt#define PACKAGE_URL "$PACKAGE_URL" 2241247738Sbapt_ACEOF 2242247738Sbapt 2243247738Sbapt 2244247738Sbapt# Let the site file select an alternate cache file if it wants to. 2245247738Sbapt# Prefer an explicitly selected file to automatically selected ones. 2246247738Sbaptac_site_file1=NONE 2247247738Sbaptac_site_file2=NONE 2248247738Sbaptif test -n "$CONFIG_SITE"; then 2249247738Sbapt # We do not want a PATH search for config.site. 2250247738Sbapt case $CONFIG_SITE in #(( 2251247738Sbapt -*) ac_site_file1=./$CONFIG_SITE;; 2252247738Sbapt */*) ac_site_file1=$CONFIG_SITE;; 2253247738Sbapt *) ac_site_file1=./$CONFIG_SITE;; 2254247738Sbapt esac 2255247738Sbaptelif test "x$prefix" != xNONE; then 2256247738Sbapt ac_site_file1=$prefix/share/config.site 2257247738Sbapt ac_site_file2=$prefix/etc/config.site 2258247738Sbaptelse 2259247738Sbapt ac_site_file1=$ac_default_prefix/share/config.site 2260247738Sbapt ac_site_file2=$ac_default_prefix/etc/config.site 2261247738Sbaptfi 2262247738Sbaptfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 2263247738Sbaptdo 2264247738Sbapt test "x$ac_site_file" = xNONE && continue 2265247738Sbapt if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2266247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2267247738Sbapt$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2268247738Sbapt sed 's/^/| /' "$ac_site_file" >&5 2269247738Sbapt . "$ac_site_file" \ 2270247738Sbapt || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2271247738Sbapt$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2272247738Sbaptas_fn_error $? "failed to load site script $ac_site_file 2273247738SbaptSee \`config.log' for more details" "$LINENO" 5 ; } 2274247738Sbapt fi 2275247738Sbaptdone 2276247738Sbapt 2277247738Sbaptif test -r "$cache_file"; then 2278247738Sbapt # Some versions of bash will fail to source /dev/null (special files 2279247738Sbapt # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2280247738Sbapt if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2281247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2282247738Sbapt$as_echo "$as_me: loading cache $cache_file" >&6;} 2283247738Sbapt case $cache_file in 2284247738Sbapt [\\/]* | ?:[\\/]* ) . "$cache_file";; 2285247738Sbapt *) . "./$cache_file";; 2286247738Sbapt esac 2287247738Sbapt fi 2288247738Sbaptelse 2289247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2290247738Sbapt$as_echo "$as_me: creating cache $cache_file" >&6;} 2291247738Sbapt >$cache_file 2292247738Sbaptfi 2293247738Sbapt 2294247738Sbapt# Check that the precious variables saved in the cache have kept the same 2295247738Sbapt# value. 2296247738Sbaptac_cache_corrupted=false 2297247738Sbaptfor ac_var in $ac_precious_vars; do 2298247738Sbapt eval ac_old_set=\$ac_cv_env_${ac_var}_set 2299247738Sbapt eval ac_new_set=\$ac_env_${ac_var}_set 2300247738Sbapt eval ac_old_val=\$ac_cv_env_${ac_var}_value 2301247738Sbapt eval ac_new_val=\$ac_env_${ac_var}_value 2302247738Sbapt case $ac_old_set,$ac_new_set in 2303247738Sbapt set,) 2304247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2305247738Sbapt$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2306247738Sbapt ac_cache_corrupted=: ;; 2307247738Sbapt ,set) 2308247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2309247738Sbapt$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2310247738Sbapt ac_cache_corrupted=: ;; 2311247738Sbapt ,);; 2312247738Sbapt *) 2313247738Sbapt if test "x$ac_old_val" != "x$ac_new_val"; then 2314247738Sbapt # differences in whitespace do not lead to failure. 2315247738Sbapt ac_old_val_w=`echo x $ac_old_val` 2316247738Sbapt ac_new_val_w=`echo x $ac_new_val` 2317247738Sbapt if test "$ac_old_val_w" != "$ac_new_val_w"; then 2318247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2319247738Sbapt$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2320247738Sbapt ac_cache_corrupted=: 2321247738Sbapt else 2322247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2323247738Sbapt$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2324247738Sbapt eval $ac_var=\$ac_old_val 2325247738Sbapt fi 2326247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2327247738Sbapt$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2328247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2329247738Sbapt$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2330247738Sbapt fi;; 2331247738Sbapt esac 2332247738Sbapt # Pass precious variables to config.status. 2333247738Sbapt if test "$ac_new_set" = set; then 2334247738Sbapt case $ac_new_val in 2335247738Sbapt *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2336247738Sbapt *) ac_arg=$ac_var=$ac_new_val ;; 2337247738Sbapt esac 2338247738Sbapt case " $ac_configure_args " in 2339247738Sbapt *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2340247738Sbapt *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2341247738Sbapt esac 2342247738Sbapt fi 2343247738Sbaptdone 2344247738Sbaptif $ac_cache_corrupted; then 2345247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2346247738Sbapt$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2347247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2348247738Sbapt$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2349247738Sbapt as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2350247738Sbaptfi 2351247738Sbapt## -------------------- ## 2352247738Sbapt## Main body of script. ## 2353247738Sbapt## -------------------- ## 2354247738Sbapt 2355247738Sbaptac_ext=c 2356247738Sbaptac_cpp='$CPP $CPPFLAGS' 2357247738Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2358247738Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2359247738Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 2360247738Sbapt 2361247738Sbapt 2362247738Sbaptac_aux_dir= 2363247738Sbaptfor ac_dir in config "$srcdir"/config; do 2364247738Sbapt if test -f "$ac_dir/install-sh"; then 2365247738Sbapt ac_aux_dir=$ac_dir 2366247738Sbapt ac_install_sh="$ac_aux_dir/install-sh -c" 2367247738Sbapt break 2368247738Sbapt elif test -f "$ac_dir/install.sh"; then 2369247738Sbapt ac_aux_dir=$ac_dir 2370247738Sbapt ac_install_sh="$ac_aux_dir/install.sh -c" 2371247738Sbapt break 2372247738Sbapt elif test -f "$ac_dir/shtool"; then 2373247738Sbapt ac_aux_dir=$ac_dir 2374247738Sbapt ac_install_sh="$ac_aux_dir/shtool install -c" 2375247738Sbapt break 2376247738Sbapt fi 2377247738Sbaptdone 2378247738Sbaptif test -z "$ac_aux_dir"; then 2379247738Sbapt as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2380247738Sbaptfi 2381247738Sbapt 2382247738Sbapt# These three variables are undocumented and unsupported, 2383247738Sbapt# and are intended to be withdrawn in a future Autoconf release. 2384247738Sbapt# They can cause serious problems if a builder's source tree is in a directory 2385247738Sbapt# whose full name contains unusual characters. 2386247738Sbaptac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2387247738Sbaptac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2388247738Sbaptac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2389247738Sbapt 2390247738Sbapt 2391247738Sbaptac_config_headers="$ac_config_headers config.h" 2392247738Sbapt 2393247738Sbaptam__api_version='1.11' 2394247738Sbapt 2395247738Sbapt# Find a good install program. We prefer a C program (faster), 2396247738Sbapt# so one script is as good as another. But avoid the broken or 2397247738Sbapt# incompatible versions: 2398247738Sbapt# SysV /etc/install, /usr/sbin/install 2399247738Sbapt# SunOS /usr/etc/install 2400247738Sbapt# IRIX /sbin/install 2401247738Sbapt# AIX /bin/install 2402247738Sbapt# AmigaOS /C/install, which installs bootblocks on floppy discs 2403247738Sbapt# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2404247738Sbapt# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2405247738Sbapt# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2406247738Sbapt# OS/2's system install, which has a completely different semantic 2407247738Sbapt# ./install, which can be erroneously created by make from ./install.sh. 2408247738Sbapt# Reject install programs that cannot install multiple files. 2409247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2410247738Sbapt$as_echo_n "checking for a BSD-compatible install... " >&6; } 2411247738Sbaptif test -z "$INSTALL"; then 2412247738Sbaptif test "${ac_cv_path_install+set}" = set; then : 2413247738Sbapt $as_echo_n "(cached) " >&6 2414247738Sbaptelse 2415247738Sbapt as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2416247738Sbaptfor as_dir in $PATH 2417247738Sbaptdo 2418247738Sbapt IFS=$as_save_IFS 2419247738Sbapt test -z "$as_dir" && as_dir=. 2420247738Sbapt # Account for people who put trailing slashes in PATH elements. 2421247738Sbaptcase $as_dir/ in #(( 2422247738Sbapt ./ | .// | /[cC]/* | \ 2423247738Sbapt /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2424247738Sbapt ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2425247738Sbapt /usr/ucb/* ) ;; 2426247738Sbapt *) 2427247738Sbapt # OSF1 and SCO ODT 3.0 have their own names for install. 2428247738Sbapt # Don't use installbsd from OSF since it installs stuff as root 2429247738Sbapt # by default. 2430247738Sbapt for ac_prog in ginstall scoinst install; do 2431247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 2432247738Sbapt if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2433247738Sbapt if test $ac_prog = install && 2434247738Sbapt grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2435247738Sbapt # AIX install. It has an incompatible calling convention. 2436247738Sbapt : 2437247738Sbapt elif test $ac_prog = install && 2438247738Sbapt grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2439247738Sbapt # program-specific install script used by HP pwplus--don't use. 2440247738Sbapt : 2441247738Sbapt else 2442247738Sbapt rm -rf conftest.one conftest.two conftest.dir 2443247738Sbapt echo one > conftest.one 2444247738Sbapt echo two > conftest.two 2445247738Sbapt mkdir conftest.dir 2446247738Sbapt if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2447247738Sbapt test -s conftest.one && test -s conftest.two && 2448247738Sbapt test -s conftest.dir/conftest.one && 2449247738Sbapt test -s conftest.dir/conftest.two 2450247738Sbapt then 2451247738Sbapt ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2452247738Sbapt break 3 2453247738Sbapt fi 2454247738Sbapt fi 2455247738Sbapt fi 2456247738Sbapt done 2457247738Sbapt done 2458247738Sbapt ;; 2459247738Sbaptesac 2460247738Sbapt 2461247738Sbapt done 2462247738SbaptIFS=$as_save_IFS 2463247738Sbapt 2464247738Sbaptrm -rf conftest.one conftest.two conftest.dir 2465247738Sbapt 2466247738Sbaptfi 2467247738Sbapt if test "${ac_cv_path_install+set}" = set; then 2468247738Sbapt INSTALL=$ac_cv_path_install 2469247738Sbapt else 2470247738Sbapt # As a last resort, use the slow shell script. Don't cache a 2471247738Sbapt # value for INSTALL within a source directory, because that will 2472247738Sbapt # break other packages using the cache if that directory is 2473247738Sbapt # removed, or if the value is a relative name. 2474247738Sbapt INSTALL=$ac_install_sh 2475247738Sbapt fi 2476247738Sbaptfi 2477247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2478247738Sbapt$as_echo "$INSTALL" >&6; } 2479247738Sbapt 2480247738Sbapt# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2481247738Sbapt# It thinks the first close brace ends the variable substitution. 2482247738Sbapttest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2483247738Sbapt 2484247738Sbapttest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2485247738Sbapt 2486247738Sbapttest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2487247738Sbapt 2488247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2489247738Sbapt$as_echo_n "checking whether build environment is sane... " >&6; } 2490247738Sbapt# Just in case 2491247738Sbaptsleep 1 2492247738Sbaptecho timestamp > conftest.file 2493247738Sbapt# Reject unsafe characters in $srcdir or the absolute working directory 2494247738Sbapt# name. Accept space and tab only in the latter. 2495247738Sbaptam_lf=' 2496247738Sbapt' 2497247738Sbaptcase `pwd` in 2498247738Sbapt *[\\\"\#\$\&\'\`$am_lf]*) 2499247738Sbapt as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; 2500247738Sbaptesac 2501247738Sbaptcase $srcdir in 2502247738Sbapt *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2503247738Sbapt as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; 2504247738Sbaptesac 2505247738Sbapt 2506247738Sbapt# Do `set' in a subshell so we don't clobber the current shell's 2507247738Sbapt# arguments. Must try -L first in case configure is actually a 2508247738Sbapt# symlink; some systems play weird games with the mod time of symlinks 2509247738Sbapt# (eg FreeBSD returns the mod time of the symlink's containing 2510247738Sbapt# directory). 2511247738Sbaptif ( 2512247738Sbapt set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2513247738Sbapt if test "$*" = "X"; then 2514247738Sbapt # -L didn't work. 2515247738Sbapt set X `ls -t "$srcdir/configure" conftest.file` 2516247738Sbapt fi 2517247738Sbapt rm -f conftest.file 2518247738Sbapt if test "$*" != "X $srcdir/configure conftest.file" \ 2519247738Sbapt && test "$*" != "X conftest.file $srcdir/configure"; then 2520247738Sbapt 2521247738Sbapt # If neither matched, then we have a broken ls. This can happen 2522247738Sbapt # if, for instance, CONFIG_SHELL is bash and it inherits a 2523247738Sbapt # broken ls alias from the environment. This has actually 2524247738Sbapt # happened. Such a system could not be considered "sane". 2525247738Sbapt as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2526247738Sbaptalias in your environment" "$LINENO" 5 2527247738Sbapt fi 2528247738Sbapt 2529247738Sbapt test "$2" = conftest.file 2530247738Sbapt ) 2531247738Sbaptthen 2532247738Sbapt # Ok. 2533247738Sbapt : 2534247738Sbaptelse 2535247738Sbapt as_fn_error $? "newly created file is older than distributed files! 2536247738SbaptCheck your system clock" "$LINENO" 5 2537247738Sbaptfi 2538247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2539247738Sbapt$as_echo "yes" >&6; } 2540247738Sbapttest "$program_prefix" != NONE && 2541247738Sbapt program_transform_name="s&^&$program_prefix&;$program_transform_name" 2542247738Sbapt# Use a double $ so make ignores it. 2543247738Sbapttest "$program_suffix" != NONE && 2544247738Sbapt program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2545247738Sbapt# Double any \ or $. 2546247738Sbapt# By default was `s,x,x', remove it if useless. 2547247738Sbaptac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2548247738Sbaptprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2549247738Sbapt 2550247738Sbapt# expand $ac_aux_dir to an absolute path 2551247738Sbaptam_aux_dir=`cd $ac_aux_dir && pwd` 2552247738Sbapt 2553247738Sbaptif test x"${MISSING+set}" != xset; then 2554247738Sbapt case $am_aux_dir in 2555247738Sbapt *\ * | *\ *) 2556247738Sbapt MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2557247738Sbapt *) 2558247738Sbapt MISSING="\${SHELL} $am_aux_dir/missing" ;; 2559247738Sbapt esac 2560247738Sbaptfi 2561247738Sbapt# Use eval to expand $SHELL 2562247738Sbaptif eval "$MISSING --run true"; then 2563247738Sbapt am_missing_run="$MISSING --run " 2564247738Sbaptelse 2565247738Sbapt am_missing_run= 2566247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2567247738Sbapt$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2568247738Sbaptfi 2569247738Sbapt 2570247738Sbaptif test x"${install_sh}" != xset; then 2571247738Sbapt case $am_aux_dir in 2572247738Sbapt *\ * | *\ *) 2573247738Sbapt install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2574247738Sbapt *) 2575247738Sbapt install_sh="\${SHELL} $am_aux_dir/install-sh" 2576247738Sbapt esac 2577247738Sbaptfi 2578247738Sbapt 2579247738Sbapt# Installed binaries are usually stripped using `strip' when the user 2580247738Sbapt# run `make install-strip'. However `strip' might not be the right 2581247738Sbapt# tool to use in cross-compilation environments, therefore Automake 2582247738Sbapt# will honor the `STRIP' environment variable to overrule this program. 2583247738Sbaptif test "$cross_compiling" != no; then 2584247738Sbapt if test -n "$ac_tool_prefix"; then 2585247738Sbapt # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2586247738Sbaptset dummy ${ac_tool_prefix}strip; ac_word=$2 2587247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2588247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 2589247738Sbaptif test "${ac_cv_prog_STRIP+set}" = set; then : 2590247738Sbapt $as_echo_n "(cached) " >&6 2591247738Sbaptelse 2592247738Sbapt if test -n "$STRIP"; then 2593247738Sbapt ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2594247738Sbaptelse 2595247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2596247738Sbaptfor as_dir in $PATH 2597247738Sbaptdo 2598247738Sbapt IFS=$as_save_IFS 2599247738Sbapt test -z "$as_dir" && as_dir=. 2600247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 2601247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2602247738Sbapt ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2603247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2604247738Sbapt break 2 2605247738Sbapt fi 2606247738Sbaptdone 2607247738Sbapt done 2608247738SbaptIFS=$as_save_IFS 2609247738Sbapt 2610247738Sbaptfi 2611247738Sbaptfi 2612247738SbaptSTRIP=$ac_cv_prog_STRIP 2613247738Sbaptif test -n "$STRIP"; then 2614247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2615247738Sbapt$as_echo "$STRIP" >&6; } 2616247738Sbaptelse 2617247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2618247738Sbapt$as_echo "no" >&6; } 2619247738Sbaptfi 2620247738Sbapt 2621247738Sbapt 2622247738Sbaptfi 2623247738Sbaptif test -z "$ac_cv_prog_STRIP"; then 2624247738Sbapt ac_ct_STRIP=$STRIP 2625247738Sbapt # Extract the first word of "strip", so it can be a program name with args. 2626247738Sbaptset dummy strip; ac_word=$2 2627247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2628247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 2629247738Sbaptif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2630247738Sbapt $as_echo_n "(cached) " >&6 2631247738Sbaptelse 2632247738Sbapt if test -n "$ac_ct_STRIP"; then 2633247738Sbapt ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2634247738Sbaptelse 2635247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2636247738Sbaptfor as_dir in $PATH 2637247738Sbaptdo 2638247738Sbapt IFS=$as_save_IFS 2639247738Sbapt test -z "$as_dir" && as_dir=. 2640247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 2641247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2642247738Sbapt ac_cv_prog_ac_ct_STRIP="strip" 2643247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2644247738Sbapt break 2 2645247738Sbapt fi 2646247738Sbaptdone 2647247738Sbapt done 2648247738SbaptIFS=$as_save_IFS 2649247738Sbapt 2650247738Sbaptfi 2651247738Sbaptfi 2652247738Sbaptac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2653247738Sbaptif test -n "$ac_ct_STRIP"; then 2654247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2655247738Sbapt$as_echo "$ac_ct_STRIP" >&6; } 2656247738Sbaptelse 2657247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2658247738Sbapt$as_echo "no" >&6; } 2659247738Sbaptfi 2660247738Sbapt 2661247738Sbapt if test "x$ac_ct_STRIP" = x; then 2662247738Sbapt STRIP=":" 2663247738Sbapt else 2664247738Sbapt case $cross_compiling:$ac_tool_warned in 2665247738Sbaptyes:) 2666247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2667247738Sbapt$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2668247738Sbaptac_tool_warned=yes ;; 2669247738Sbaptesac 2670247738Sbapt STRIP=$ac_ct_STRIP 2671247738Sbapt fi 2672247738Sbaptelse 2673247738Sbapt STRIP="$ac_cv_prog_STRIP" 2674247738Sbaptfi 2675247738Sbapt 2676247738Sbaptfi 2677247738SbaptINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2678247738Sbapt 2679247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2680247738Sbapt$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2681247738Sbaptif test -z "$MKDIR_P"; then 2682247738Sbapt if test "${ac_cv_path_mkdir+set}" = set; then : 2683247738Sbapt $as_echo_n "(cached) " >&6 2684247738Sbaptelse 2685247738Sbapt as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2686247738Sbaptfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2687247738Sbaptdo 2688247738Sbapt IFS=$as_save_IFS 2689247738Sbapt test -z "$as_dir" && as_dir=. 2690247738Sbapt for ac_prog in mkdir gmkdir; do 2691247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 2692247738Sbapt { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2693247738Sbapt case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2694247738Sbapt 'mkdir (GNU coreutils) '* | \ 2695247738Sbapt 'mkdir (coreutils) '* | \ 2696247738Sbapt 'mkdir (fileutils) '4.1*) 2697247738Sbapt ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2698247738Sbapt break 3;; 2699247738Sbapt esac 2700247738Sbapt done 2701247738Sbapt done 2702247738Sbapt done 2703247738SbaptIFS=$as_save_IFS 2704247738Sbapt 2705247738Sbaptfi 2706247738Sbapt 2707247738Sbapt test -d ./--version && rmdir ./--version 2708247738Sbapt if test "${ac_cv_path_mkdir+set}" = set; then 2709247738Sbapt MKDIR_P="$ac_cv_path_mkdir -p" 2710247738Sbapt else 2711247738Sbapt # As a last resort, use the slow shell script. Don't cache a 2712247738Sbapt # value for MKDIR_P within a source directory, because that will 2713247738Sbapt # break other packages using the cache if that directory is 2714247738Sbapt # removed, or if the value is a relative name. 2715247738Sbapt MKDIR_P="$ac_install_sh -d" 2716247738Sbapt fi 2717247738Sbaptfi 2718247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2719247738Sbapt$as_echo "$MKDIR_P" >&6; } 2720247738Sbapt 2721247738Sbaptmkdir_p="$MKDIR_P" 2722247738Sbaptcase $mkdir_p in 2723247738Sbapt [\\/$]* | ?:[\\/]*) ;; 2724247738Sbapt */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2725247738Sbaptesac 2726247738Sbapt 2727247738Sbaptfor ac_prog in gawk mawk nawk awk 2728247738Sbaptdo 2729247738Sbapt # Extract the first word of "$ac_prog", so it can be a program name with args. 2730247738Sbaptset dummy $ac_prog; ac_word=$2 2731247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2732247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 2733247738Sbaptif test "${ac_cv_prog_AWK+set}" = set; then : 2734247738Sbapt $as_echo_n "(cached) " >&6 2735247738Sbaptelse 2736247738Sbapt if test -n "$AWK"; then 2737247738Sbapt ac_cv_prog_AWK="$AWK" # Let the user override the test. 2738247738Sbaptelse 2739247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2740247738Sbaptfor as_dir in $PATH 2741247738Sbaptdo 2742247738Sbapt IFS=$as_save_IFS 2743247738Sbapt test -z "$as_dir" && as_dir=. 2744247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 2745247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2746247738Sbapt ac_cv_prog_AWK="$ac_prog" 2747247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2748247738Sbapt break 2 2749247738Sbapt fi 2750247738Sbaptdone 2751247738Sbapt done 2752247738SbaptIFS=$as_save_IFS 2753247738Sbapt 2754247738Sbaptfi 2755247738Sbaptfi 2756247738SbaptAWK=$ac_cv_prog_AWK 2757247738Sbaptif test -n "$AWK"; then 2758247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2759247738Sbapt$as_echo "$AWK" >&6; } 2760247738Sbaptelse 2761247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2762247738Sbapt$as_echo "no" >&6; } 2763247738Sbaptfi 2764247738Sbapt 2765247738Sbapt 2766247738Sbapt test -n "$AWK" && break 2767247738Sbaptdone 2768247738Sbapt 2769247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2770247738Sbapt$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2771247738Sbaptset x ${MAKE-make} 2772247738Sbaptac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2773247738Sbaptif eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : 2774247738Sbapt $as_echo_n "(cached) " >&6 2775247738Sbaptelse 2776247738Sbapt cat >conftest.make <<\_ACEOF 2777247738SbaptSHELL = /bin/sh 2778247738Sbaptall: 2779247738Sbapt @echo '@@@%%%=$(MAKE)=@@@%%%' 2780247738Sbapt_ACEOF 2781247738Sbapt# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2782247738Sbaptcase `${MAKE-make} -f conftest.make 2>/dev/null` in 2783247738Sbapt *@@@%%%=?*=@@@%%%*) 2784247738Sbapt eval ac_cv_prog_make_${ac_make}_set=yes;; 2785247738Sbapt *) 2786247738Sbapt eval ac_cv_prog_make_${ac_make}_set=no;; 2787247738Sbaptesac 2788247738Sbaptrm -f conftest.make 2789247738Sbaptfi 2790247738Sbaptif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2791247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2792247738Sbapt$as_echo "yes" >&6; } 2793247738Sbapt SET_MAKE= 2794247738Sbaptelse 2795247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2796247738Sbapt$as_echo "no" >&6; } 2797247738Sbapt SET_MAKE="MAKE=${MAKE-make}" 2798247738Sbaptfi 2799247738Sbapt 2800247738Sbaptrm -rf .tst 2>/dev/null 2801247738Sbaptmkdir .tst 2>/dev/null 2802247738Sbaptif test -d .tst; then 2803247738Sbapt am__leading_dot=. 2804247738Sbaptelse 2805247738Sbapt am__leading_dot=_ 2806247738Sbaptfi 2807247738Sbaptrmdir .tst 2>/dev/null 2808247738Sbapt 2809247738Sbaptif test "`cd $srcdir && pwd`" != "`pwd`"; then 2810247738Sbapt # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2811247738Sbapt # is not polluted with repeated "-I." 2812247738Sbapt am__isrc=' -I$(srcdir)' 2813247738Sbapt # test to see if srcdir already configured 2814247738Sbapt if test -f $srcdir/config.status; then 2815247738Sbapt as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2816247738Sbapt fi 2817247738Sbaptfi 2818247738Sbapt 2819247738Sbapt# test whether we have cygpath 2820247738Sbaptif test -z "$CYGPATH_W"; then 2821247738Sbapt if (cygpath --version) >/dev/null 2>/dev/null; then 2822247738Sbapt CYGPATH_W='cygpath -w' 2823247738Sbapt else 2824247738Sbapt CYGPATH_W=echo 2825247738Sbapt fi 2826247738Sbaptfi 2827247738Sbapt 2828247738Sbapt 2829247738Sbapt# Define the identity of the package. 2830247738Sbapt PACKAGE='yaml' 2831247738Sbapt VERSION='0.1.4' 2832247738Sbapt 2833247738Sbapt 2834247738Sbaptcat >>confdefs.h <<_ACEOF 2835247738Sbapt#define PACKAGE "$PACKAGE" 2836247738Sbapt_ACEOF 2837247738Sbapt 2838247738Sbapt 2839247738Sbaptcat >>confdefs.h <<_ACEOF 2840247738Sbapt#define VERSION "$VERSION" 2841247738Sbapt_ACEOF 2842247738Sbapt 2843247738Sbapt# Some tools Automake needs. 2844247738Sbapt 2845247738SbaptACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2846247738Sbapt 2847247738Sbapt 2848247738SbaptAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2849247738Sbapt 2850247738Sbapt 2851247738SbaptAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2852247738Sbapt 2853247738Sbapt 2854247738SbaptAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2855247738Sbapt 2856247738Sbapt 2857247738SbaptMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2858247738Sbapt 2859247738Sbapt# We need awk for the "check" target. The system "awk" is bad on 2860247738Sbapt# some platforms. 2861247738Sbapt# Always define AMTAR for backward compatibility. 2862247738Sbapt 2863247738SbaptAMTAR=${AMTAR-"${am_missing_run}tar"} 2864247738Sbapt 2865247738Sbaptam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2866247738Sbapt 2867247738Sbapt 2868247738Sbapt 2869247738Sbapt 2870247738Sbapt 2871247738Sbapt 2872247738Sbapt# Define macro variables for the package version numbers. 2873247738Sbapt 2874247738Sbapt$as_echo "#define YAML_VERSION_MAJOR 0" >>confdefs.h 2875247738Sbapt 2876247738Sbapt 2877247738Sbapt$as_echo "#define YAML_VERSION_MINOR 1" >>confdefs.h 2878247738Sbapt 2879247738Sbapt 2880247738Sbapt$as_echo "#define YAML_VERSION_PATCH 4" >>confdefs.h 2881247738Sbapt 2882247738Sbapt 2883247738Sbapt$as_echo "#define YAML_VERSION_STRING \"0.1.4\"" >>confdefs.h 2884247738Sbapt 2885247738Sbapt 2886247738Sbapt# Define substitutions for the libtool version numbers. 2887247738SbaptYAML_LT_RELEASE=0 2888247738SbaptYAML_LT_CURRENT=2 2889247738SbaptYAML_LT_REVISION=2 2890247738SbaptYAML_LT_AGE=0 2891247738Sbapt 2892247738Sbapt 2893247738Sbapt 2894247738Sbapt 2895247738Sbapt 2896247738Sbapt# Note: in order to update checks, run `autoscan` and look through "configure.scan". 2897247738Sbapt 2898247738Sbapt# Checks for programs. 2899247738Sbaptac_ext=c 2900247738Sbaptac_cpp='$CPP $CPPFLAGS' 2901247738Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2902247738Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2903247738Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 2904247738Sbaptif test -n "$ac_tool_prefix"; then 2905247738Sbapt # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2906247738Sbaptset dummy ${ac_tool_prefix}gcc; ac_word=$2 2907247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2908247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 2909247738Sbaptif test "${ac_cv_prog_CC+set}" = set; then : 2910247738Sbapt $as_echo_n "(cached) " >&6 2911247738Sbaptelse 2912247738Sbapt if test -n "$CC"; then 2913247738Sbapt ac_cv_prog_CC="$CC" # Let the user override the test. 2914247738Sbaptelse 2915247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2916247738Sbaptfor as_dir in $PATH 2917247738Sbaptdo 2918247738Sbapt IFS=$as_save_IFS 2919247738Sbapt test -z "$as_dir" && as_dir=. 2920247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 2921247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2922247738Sbapt ac_cv_prog_CC="${ac_tool_prefix}gcc" 2923247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2924247738Sbapt break 2 2925247738Sbapt fi 2926247738Sbaptdone 2927247738Sbapt done 2928247738SbaptIFS=$as_save_IFS 2929247738Sbapt 2930247738Sbaptfi 2931247738Sbaptfi 2932247738SbaptCC=$ac_cv_prog_CC 2933247738Sbaptif test -n "$CC"; then 2934247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2935247738Sbapt$as_echo "$CC" >&6; } 2936247738Sbaptelse 2937247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2938247738Sbapt$as_echo "no" >&6; } 2939247738Sbaptfi 2940247738Sbapt 2941247738Sbapt 2942247738Sbaptfi 2943247738Sbaptif test -z "$ac_cv_prog_CC"; then 2944247738Sbapt ac_ct_CC=$CC 2945247738Sbapt # Extract the first word of "gcc", so it can be a program name with args. 2946247738Sbaptset dummy gcc; ac_word=$2 2947247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2948247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 2949247738Sbaptif test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2950247738Sbapt $as_echo_n "(cached) " >&6 2951247738Sbaptelse 2952247738Sbapt if test -n "$ac_ct_CC"; then 2953247738Sbapt ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2954247738Sbaptelse 2955247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2956247738Sbaptfor as_dir in $PATH 2957247738Sbaptdo 2958247738Sbapt IFS=$as_save_IFS 2959247738Sbapt test -z "$as_dir" && as_dir=. 2960247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 2961247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2962247738Sbapt ac_cv_prog_ac_ct_CC="gcc" 2963247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2964247738Sbapt break 2 2965247738Sbapt fi 2966247738Sbaptdone 2967247738Sbapt done 2968247738SbaptIFS=$as_save_IFS 2969247738Sbapt 2970247738Sbaptfi 2971247738Sbaptfi 2972247738Sbaptac_ct_CC=$ac_cv_prog_ac_ct_CC 2973247738Sbaptif test -n "$ac_ct_CC"; then 2974247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2975247738Sbapt$as_echo "$ac_ct_CC" >&6; } 2976247738Sbaptelse 2977247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2978247738Sbapt$as_echo "no" >&6; } 2979247738Sbaptfi 2980247738Sbapt 2981247738Sbapt if test "x$ac_ct_CC" = x; then 2982247738Sbapt CC="" 2983247738Sbapt else 2984247738Sbapt case $cross_compiling:$ac_tool_warned in 2985247738Sbaptyes:) 2986247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2987247738Sbapt$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2988247738Sbaptac_tool_warned=yes ;; 2989247738Sbaptesac 2990247738Sbapt CC=$ac_ct_CC 2991247738Sbapt fi 2992247738Sbaptelse 2993247738Sbapt CC="$ac_cv_prog_CC" 2994247738Sbaptfi 2995247738Sbapt 2996247738Sbaptif test -z "$CC"; then 2997247738Sbapt if test -n "$ac_tool_prefix"; then 2998247738Sbapt # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2999247738Sbaptset dummy ${ac_tool_prefix}cc; ac_word=$2 3000247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3001247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 3002247738Sbaptif test "${ac_cv_prog_CC+set}" = set; then : 3003247738Sbapt $as_echo_n "(cached) " >&6 3004247738Sbaptelse 3005247738Sbapt if test -n "$CC"; then 3006247738Sbapt ac_cv_prog_CC="$CC" # Let the user override the test. 3007247738Sbaptelse 3008247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3009247738Sbaptfor as_dir in $PATH 3010247738Sbaptdo 3011247738Sbapt IFS=$as_save_IFS 3012247738Sbapt test -z "$as_dir" && as_dir=. 3013247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 3014247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3015247738Sbapt ac_cv_prog_CC="${ac_tool_prefix}cc" 3016247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3017247738Sbapt break 2 3018247738Sbapt fi 3019247738Sbaptdone 3020247738Sbapt done 3021247738SbaptIFS=$as_save_IFS 3022247738Sbapt 3023247738Sbaptfi 3024247738Sbaptfi 3025247738SbaptCC=$ac_cv_prog_CC 3026247738Sbaptif test -n "$CC"; then 3027247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3028247738Sbapt$as_echo "$CC" >&6; } 3029247738Sbaptelse 3030247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3031247738Sbapt$as_echo "no" >&6; } 3032247738Sbaptfi 3033247738Sbapt 3034247738Sbapt 3035247738Sbapt fi 3036247738Sbaptfi 3037247738Sbaptif test -z "$CC"; then 3038247738Sbapt # Extract the first word of "cc", so it can be a program name with args. 3039247738Sbaptset dummy cc; ac_word=$2 3040247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3041247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 3042247738Sbaptif test "${ac_cv_prog_CC+set}" = set; then : 3043247738Sbapt $as_echo_n "(cached) " >&6 3044247738Sbaptelse 3045247738Sbapt if test -n "$CC"; then 3046247738Sbapt ac_cv_prog_CC="$CC" # Let the user override the test. 3047247738Sbaptelse 3048247738Sbapt ac_prog_rejected=no 3049247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3050247738Sbaptfor as_dir in $PATH 3051247738Sbaptdo 3052247738Sbapt IFS=$as_save_IFS 3053247738Sbapt test -z "$as_dir" && as_dir=. 3054247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 3055247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3056247738Sbapt if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3057247738Sbapt ac_prog_rejected=yes 3058247738Sbapt continue 3059247738Sbapt fi 3060247738Sbapt ac_cv_prog_CC="cc" 3061247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3062247738Sbapt break 2 3063247738Sbapt fi 3064247738Sbaptdone 3065247738Sbapt done 3066247738SbaptIFS=$as_save_IFS 3067247738Sbapt 3068247738Sbaptif test $ac_prog_rejected = yes; then 3069247738Sbapt # We found a bogon in the path, so make sure we never use it. 3070247738Sbapt set dummy $ac_cv_prog_CC 3071247738Sbapt shift 3072247738Sbapt if test $# != 0; then 3073247738Sbapt # We chose a different compiler from the bogus one. 3074247738Sbapt # However, it has the same basename, so the bogon will be chosen 3075247738Sbapt # first if we set CC to just the basename; use the full file name. 3076247738Sbapt shift 3077247738Sbapt ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3078247738Sbapt fi 3079247738Sbaptfi 3080247738Sbaptfi 3081247738Sbaptfi 3082247738SbaptCC=$ac_cv_prog_CC 3083247738Sbaptif test -n "$CC"; then 3084247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3085247738Sbapt$as_echo "$CC" >&6; } 3086247738Sbaptelse 3087247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3088247738Sbapt$as_echo "no" >&6; } 3089247738Sbaptfi 3090247738Sbapt 3091247738Sbapt 3092247738Sbaptfi 3093247738Sbaptif test -z "$CC"; then 3094247738Sbapt if test -n "$ac_tool_prefix"; then 3095247738Sbapt for ac_prog in cl.exe 3096247738Sbapt do 3097247738Sbapt # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3098247738Sbaptset dummy $ac_tool_prefix$ac_prog; ac_word=$2 3099247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3100247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 3101247738Sbaptif test "${ac_cv_prog_CC+set}" = set; then : 3102247738Sbapt $as_echo_n "(cached) " >&6 3103247738Sbaptelse 3104247738Sbapt if test -n "$CC"; then 3105247738Sbapt ac_cv_prog_CC="$CC" # Let the user override the test. 3106247738Sbaptelse 3107247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3108247738Sbaptfor as_dir in $PATH 3109247738Sbaptdo 3110247738Sbapt IFS=$as_save_IFS 3111247738Sbapt test -z "$as_dir" && as_dir=. 3112247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 3113247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3114247738Sbapt ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3115247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3116247738Sbapt break 2 3117247738Sbapt fi 3118247738Sbaptdone 3119247738Sbapt done 3120247738SbaptIFS=$as_save_IFS 3121247738Sbapt 3122247738Sbaptfi 3123247738Sbaptfi 3124247738SbaptCC=$ac_cv_prog_CC 3125247738Sbaptif test -n "$CC"; then 3126247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3127247738Sbapt$as_echo "$CC" >&6; } 3128247738Sbaptelse 3129247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3130247738Sbapt$as_echo "no" >&6; } 3131247738Sbaptfi 3132247738Sbapt 3133247738Sbapt 3134247738Sbapt test -n "$CC" && break 3135247738Sbapt done 3136247738Sbaptfi 3137247738Sbaptif test -z "$CC"; then 3138247738Sbapt ac_ct_CC=$CC 3139247738Sbapt for ac_prog in cl.exe 3140247738Sbaptdo 3141247738Sbapt # Extract the first word of "$ac_prog", so it can be a program name with args. 3142247738Sbaptset dummy $ac_prog; ac_word=$2 3143247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3144247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 3145247738Sbaptif test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3146247738Sbapt $as_echo_n "(cached) " >&6 3147247738Sbaptelse 3148247738Sbapt if test -n "$ac_ct_CC"; then 3149247738Sbapt ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3150247738Sbaptelse 3151247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3152247738Sbaptfor as_dir in $PATH 3153247738Sbaptdo 3154247738Sbapt IFS=$as_save_IFS 3155247738Sbapt test -z "$as_dir" && as_dir=. 3156247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 3157247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3158247738Sbapt ac_cv_prog_ac_ct_CC="$ac_prog" 3159247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3160247738Sbapt break 2 3161247738Sbapt fi 3162247738Sbaptdone 3163247738Sbapt done 3164247738SbaptIFS=$as_save_IFS 3165247738Sbapt 3166247738Sbaptfi 3167247738Sbaptfi 3168247738Sbaptac_ct_CC=$ac_cv_prog_ac_ct_CC 3169247738Sbaptif test -n "$ac_ct_CC"; then 3170247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3171247738Sbapt$as_echo "$ac_ct_CC" >&6; } 3172247738Sbaptelse 3173247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3174247738Sbapt$as_echo "no" >&6; } 3175247738Sbaptfi 3176247738Sbapt 3177247738Sbapt 3178247738Sbapt test -n "$ac_ct_CC" && break 3179247738Sbaptdone 3180247738Sbapt 3181247738Sbapt if test "x$ac_ct_CC" = x; then 3182247738Sbapt CC="" 3183247738Sbapt else 3184247738Sbapt case $cross_compiling:$ac_tool_warned in 3185247738Sbaptyes:) 3186247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3187247738Sbapt$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3188247738Sbaptac_tool_warned=yes ;; 3189247738Sbaptesac 3190247738Sbapt CC=$ac_ct_CC 3191247738Sbapt fi 3192247738Sbaptfi 3193247738Sbapt 3194247738Sbaptfi 3195247738Sbapt 3196247738Sbapt 3197247738Sbapttest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3198247738Sbapt$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3199247738Sbaptas_fn_error $? "no acceptable C compiler found in \$PATH 3200247738SbaptSee \`config.log' for more details" "$LINENO" 5 ; } 3201247738Sbapt 3202247738Sbapt# Provide some information about the compiler. 3203247738Sbapt$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3204247738Sbaptset X $ac_compile 3205247738Sbaptac_compiler=$2 3206247738Sbaptfor ac_option in --version -v -V -qversion; do 3207247738Sbapt { { ac_try="$ac_compiler $ac_option >&5" 3208247738Sbaptcase "(($ac_try" in 3209247738Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3210247738Sbapt *) ac_try_echo=$ac_try;; 3211247738Sbaptesac 3212247738Sbapteval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3213247738Sbapt$as_echo "$ac_try_echo"; } >&5 3214247738Sbapt (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3215247738Sbapt ac_status=$? 3216247738Sbapt if test -s conftest.err; then 3217247738Sbapt sed '10a\ 3218247738Sbapt... rest of stderr output deleted ... 3219247738Sbapt 10q' conftest.err >conftest.er1 3220247738Sbapt cat conftest.er1 >&5 3221247738Sbapt fi 3222247738Sbapt rm -f conftest.er1 conftest.err 3223247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3224247738Sbapt test $ac_status = 0; } 3225247738Sbaptdone 3226247738Sbapt 3227247738Sbaptcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3228247738Sbapt/* end confdefs.h. */ 3229247738Sbapt 3230247738Sbaptint 3231247738Sbaptmain () 3232247738Sbapt{ 3233247738Sbapt 3234247738Sbapt ; 3235247738Sbapt return 0; 3236247738Sbapt} 3237247738Sbapt_ACEOF 3238247738Sbaptac_clean_files_save=$ac_clean_files 3239247738Sbaptac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3240247738Sbapt# Try to create an executable without -o first, disregard a.out. 3241247738Sbapt# It will help us diagnose broken compilers, and finding out an intuition 3242247738Sbapt# of exeext. 3243247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3244247738Sbapt$as_echo_n "checking whether the C compiler works... " >&6; } 3245247738Sbaptac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3246247738Sbapt 3247247738Sbapt# The possible output files: 3248247738Sbaptac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3249247738Sbapt 3250247738Sbaptac_rmfiles= 3251247738Sbaptfor ac_file in $ac_files 3252247738Sbaptdo 3253247738Sbapt case $ac_file in 3254247738Sbapt *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3255247738Sbapt * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3256247738Sbapt esac 3257247738Sbaptdone 3258247738Sbaptrm -f $ac_rmfiles 3259247738Sbapt 3260247738Sbaptif { { ac_try="$ac_link_default" 3261247738Sbaptcase "(($ac_try" in 3262247738Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3263247738Sbapt *) ac_try_echo=$ac_try;; 3264247738Sbaptesac 3265247738Sbapteval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3266247738Sbapt$as_echo "$ac_try_echo"; } >&5 3267247738Sbapt (eval "$ac_link_default") 2>&5 3268247738Sbapt ac_status=$? 3269247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3270247738Sbapt test $ac_status = 0; }; then : 3271247738Sbapt # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3272247738Sbapt# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3273247738Sbapt# in a Makefile. We should not override ac_cv_exeext if it was cached, 3274247738Sbapt# so that the user can short-circuit this test for compilers unknown to 3275247738Sbapt# Autoconf. 3276247738Sbaptfor ac_file in $ac_files '' 3277247738Sbaptdo 3278247738Sbapt test -f "$ac_file" || continue 3279247738Sbapt case $ac_file in 3280247738Sbapt *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3281247738Sbapt ;; 3282247738Sbapt [ab].out ) 3283247738Sbapt # We found the default executable, but exeext='' is most 3284247738Sbapt # certainly right. 3285247738Sbapt break;; 3286247738Sbapt *.* ) 3287247738Sbapt if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3288247738Sbapt then :; else 3289247738Sbapt ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3290247738Sbapt fi 3291247738Sbapt # We set ac_cv_exeext here because the later test for it is not 3292247738Sbapt # safe: cross compilers may not add the suffix if given an `-o' 3293247738Sbapt # argument, so we may need to know it at that point already. 3294247738Sbapt # Even if this section looks crufty: it has the advantage of 3295247738Sbapt # actually working. 3296247738Sbapt break;; 3297247738Sbapt * ) 3298247738Sbapt break;; 3299247738Sbapt esac 3300247738Sbaptdone 3301247738Sbapttest "$ac_cv_exeext" = no && ac_cv_exeext= 3302247738Sbapt 3303247738Sbaptelse 3304247738Sbapt ac_file='' 3305247738Sbaptfi 3306247738Sbaptif test -z "$ac_file"; then : 3307247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3308247738Sbapt$as_echo "no" >&6; } 3309247738Sbapt$as_echo "$as_me: failed program was:" >&5 3310247738Sbaptsed 's/^/| /' conftest.$ac_ext >&5 3311247738Sbapt 3312247738Sbapt{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3313247738Sbapt$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3314247738Sbaptas_fn_error 77 "C compiler cannot create executables 3315247738SbaptSee \`config.log' for more details" "$LINENO" 5 ; } 3316247738Sbaptelse 3317247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3318247738Sbapt$as_echo "yes" >&6; } 3319247738Sbaptfi 3320247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3321247738Sbapt$as_echo_n "checking for C compiler default output file name... " >&6; } 3322247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3323247738Sbapt$as_echo "$ac_file" >&6; } 3324247738Sbaptac_exeext=$ac_cv_exeext 3325247738Sbapt 3326247738Sbaptrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3327247738Sbaptac_clean_files=$ac_clean_files_save 3328247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3329247738Sbapt$as_echo_n "checking for suffix of executables... " >&6; } 3330247738Sbaptif { { ac_try="$ac_link" 3331247738Sbaptcase "(($ac_try" in 3332247738Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3333247738Sbapt *) ac_try_echo=$ac_try;; 3334247738Sbaptesac 3335247738Sbapteval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3336247738Sbapt$as_echo "$ac_try_echo"; } >&5 3337247738Sbapt (eval "$ac_link") 2>&5 3338247738Sbapt ac_status=$? 3339247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3340247738Sbapt test $ac_status = 0; }; then : 3341247738Sbapt # If both `conftest.exe' and `conftest' are `present' (well, observable) 3342247738Sbapt# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3343247738Sbapt# work properly (i.e., refer to `conftest.exe'), while it won't with 3344247738Sbapt# `rm'. 3345247738Sbaptfor ac_file in conftest.exe conftest conftest.*; do 3346247738Sbapt test -f "$ac_file" || continue 3347247738Sbapt case $ac_file in 3348247738Sbapt *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3349247738Sbapt *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3350247738Sbapt break;; 3351247738Sbapt * ) break;; 3352247738Sbapt esac 3353247738Sbaptdone 3354247738Sbaptelse 3355247738Sbapt { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3356247738Sbapt$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3357247738Sbaptas_fn_error $? "cannot compute suffix of executables: cannot compile and link 3358247738SbaptSee \`config.log' for more details" "$LINENO" 5 ; } 3359247738Sbaptfi 3360247738Sbaptrm -f conftest conftest$ac_cv_exeext 3361247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3362247738Sbapt$as_echo "$ac_cv_exeext" >&6; } 3363247738Sbapt 3364247738Sbaptrm -f conftest.$ac_ext 3365247738SbaptEXEEXT=$ac_cv_exeext 3366247738Sbaptac_exeext=$EXEEXT 3367247738Sbaptcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3368247738Sbapt/* end confdefs.h. */ 3369247738Sbapt#include <stdio.h> 3370247738Sbaptint 3371247738Sbaptmain () 3372247738Sbapt{ 3373247738SbaptFILE *f = fopen ("conftest.out", "w"); 3374247738Sbapt return ferror (f) || fclose (f) != 0; 3375247738Sbapt 3376247738Sbapt ; 3377247738Sbapt return 0; 3378247738Sbapt} 3379247738Sbapt_ACEOF 3380247738Sbaptac_clean_files="$ac_clean_files conftest.out" 3381247738Sbapt# Check that the compiler produces executables we can run. If not, either 3382247738Sbapt# the compiler is broken, or we cross compile. 3383247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3384247738Sbapt$as_echo_n "checking whether we are cross compiling... " >&6; } 3385247738Sbaptif test "$cross_compiling" != yes; then 3386247738Sbapt { { ac_try="$ac_link" 3387247738Sbaptcase "(($ac_try" in 3388247738Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3389247738Sbapt *) ac_try_echo=$ac_try;; 3390247738Sbaptesac 3391247738Sbapteval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3392247738Sbapt$as_echo "$ac_try_echo"; } >&5 3393247738Sbapt (eval "$ac_link") 2>&5 3394247738Sbapt ac_status=$? 3395247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3396247738Sbapt test $ac_status = 0; } 3397247738Sbapt if { ac_try='./conftest$ac_cv_exeext' 3398247738Sbapt { { case "(($ac_try" in 3399247738Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3400247738Sbapt *) ac_try_echo=$ac_try;; 3401247738Sbaptesac 3402247738Sbapteval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3403247738Sbapt$as_echo "$ac_try_echo"; } >&5 3404247738Sbapt (eval "$ac_try") 2>&5 3405247738Sbapt ac_status=$? 3406247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3407247738Sbapt test $ac_status = 0; }; }; then 3408247738Sbapt cross_compiling=no 3409247738Sbapt else 3410247738Sbapt if test "$cross_compiling" = maybe; then 3411247738Sbapt cross_compiling=yes 3412247738Sbapt else 3413247738Sbapt { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3414247738Sbapt$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3415247738Sbaptas_fn_error $? "cannot run C compiled programs. 3416247738SbaptIf you meant to cross compile, use \`--host'. 3417247738SbaptSee \`config.log' for more details" "$LINENO" 5 ; } 3418247738Sbapt fi 3419247738Sbapt fi 3420247738Sbaptfi 3421247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3422247738Sbapt$as_echo "$cross_compiling" >&6; } 3423247738Sbapt 3424247738Sbaptrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3425247738Sbaptac_clean_files=$ac_clean_files_save 3426247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3427247738Sbapt$as_echo_n "checking for suffix of object files... " >&6; } 3428247738Sbaptif test "${ac_cv_objext+set}" = set; then : 3429247738Sbapt $as_echo_n "(cached) " >&6 3430247738Sbaptelse 3431247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3432247738Sbapt/* end confdefs.h. */ 3433247738Sbapt 3434247738Sbaptint 3435247738Sbaptmain () 3436247738Sbapt{ 3437247738Sbapt 3438247738Sbapt ; 3439247738Sbapt return 0; 3440247738Sbapt} 3441247738Sbapt_ACEOF 3442247738Sbaptrm -f conftest.o conftest.obj 3443247738Sbaptif { { ac_try="$ac_compile" 3444247738Sbaptcase "(($ac_try" in 3445247738Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3446247738Sbapt *) ac_try_echo=$ac_try;; 3447247738Sbaptesac 3448247738Sbapteval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3449247738Sbapt$as_echo "$ac_try_echo"; } >&5 3450247738Sbapt (eval "$ac_compile") 2>&5 3451247738Sbapt ac_status=$? 3452247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3453247738Sbapt test $ac_status = 0; }; then : 3454247738Sbapt for ac_file in conftest.o conftest.obj conftest.*; do 3455247738Sbapt test -f "$ac_file" || continue; 3456247738Sbapt case $ac_file in 3457247738Sbapt *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3458247738Sbapt *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3459247738Sbapt break;; 3460247738Sbapt esac 3461247738Sbaptdone 3462247738Sbaptelse 3463247738Sbapt $as_echo "$as_me: failed program was:" >&5 3464247738Sbaptsed 's/^/| /' conftest.$ac_ext >&5 3465247738Sbapt 3466247738Sbapt{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3467247738Sbapt$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3468247738Sbaptas_fn_error $? "cannot compute suffix of object files: cannot compile 3469247738SbaptSee \`config.log' for more details" "$LINENO" 5 ; } 3470247738Sbaptfi 3471247738Sbaptrm -f conftest.$ac_cv_objext conftest.$ac_ext 3472247738Sbaptfi 3473247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3474247738Sbapt$as_echo "$ac_cv_objext" >&6; } 3475247738SbaptOBJEXT=$ac_cv_objext 3476247738Sbaptac_objext=$OBJEXT 3477247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3478247738Sbapt$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3479247738Sbaptif test "${ac_cv_c_compiler_gnu+set}" = set; then : 3480247738Sbapt $as_echo_n "(cached) " >&6 3481247738Sbaptelse 3482247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3483247738Sbapt/* end confdefs.h. */ 3484247738Sbapt 3485247738Sbaptint 3486247738Sbaptmain () 3487247738Sbapt{ 3488247738Sbapt#ifndef __GNUC__ 3489247738Sbapt choke me 3490247738Sbapt#endif 3491247738Sbapt 3492247738Sbapt ; 3493247738Sbapt return 0; 3494247738Sbapt} 3495247738Sbapt_ACEOF 3496247738Sbaptif ac_fn_c_try_compile "$LINENO"; then : 3497247738Sbapt ac_compiler_gnu=yes 3498247738Sbaptelse 3499247738Sbapt ac_compiler_gnu=no 3500247738Sbaptfi 3501247738Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3502247738Sbaptac_cv_c_compiler_gnu=$ac_compiler_gnu 3503247738Sbapt 3504247738Sbaptfi 3505247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3506247738Sbapt$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3507247738Sbaptif test $ac_compiler_gnu = yes; then 3508247738Sbapt GCC=yes 3509247738Sbaptelse 3510247738Sbapt GCC= 3511247738Sbaptfi 3512247738Sbaptac_test_CFLAGS=${CFLAGS+set} 3513247738Sbaptac_save_CFLAGS=$CFLAGS 3514247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3515247738Sbapt$as_echo_n "checking whether $CC accepts -g... " >&6; } 3516247738Sbaptif test "${ac_cv_prog_cc_g+set}" = set; then : 3517247738Sbapt $as_echo_n "(cached) " >&6 3518247738Sbaptelse 3519247738Sbapt ac_save_c_werror_flag=$ac_c_werror_flag 3520247738Sbapt ac_c_werror_flag=yes 3521247738Sbapt ac_cv_prog_cc_g=no 3522247738Sbapt CFLAGS="-g" 3523247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3524247738Sbapt/* end confdefs.h. */ 3525247738Sbapt 3526247738Sbaptint 3527247738Sbaptmain () 3528247738Sbapt{ 3529247738Sbapt 3530247738Sbapt ; 3531247738Sbapt return 0; 3532247738Sbapt} 3533247738Sbapt_ACEOF 3534247738Sbaptif ac_fn_c_try_compile "$LINENO"; then : 3535247738Sbapt ac_cv_prog_cc_g=yes 3536247738Sbaptelse 3537247738Sbapt CFLAGS="" 3538247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3539247738Sbapt/* end confdefs.h. */ 3540247738Sbapt 3541247738Sbaptint 3542247738Sbaptmain () 3543247738Sbapt{ 3544247738Sbapt 3545247738Sbapt ; 3546247738Sbapt return 0; 3547247738Sbapt} 3548247738Sbapt_ACEOF 3549247738Sbaptif ac_fn_c_try_compile "$LINENO"; then : 3550247738Sbapt 3551247738Sbaptelse 3552247738Sbapt ac_c_werror_flag=$ac_save_c_werror_flag 3553247738Sbapt CFLAGS="-g" 3554247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3555247738Sbapt/* end confdefs.h. */ 3556247738Sbapt 3557247738Sbaptint 3558247738Sbaptmain () 3559247738Sbapt{ 3560247738Sbapt 3561247738Sbapt ; 3562247738Sbapt return 0; 3563247738Sbapt} 3564247738Sbapt_ACEOF 3565247738Sbaptif ac_fn_c_try_compile "$LINENO"; then : 3566247738Sbapt ac_cv_prog_cc_g=yes 3567247738Sbaptfi 3568247738Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3569247738Sbaptfi 3570247738Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3571247738Sbaptfi 3572247738Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3573247738Sbapt ac_c_werror_flag=$ac_save_c_werror_flag 3574247738Sbaptfi 3575247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3576247738Sbapt$as_echo "$ac_cv_prog_cc_g" >&6; } 3577247738Sbaptif test "$ac_test_CFLAGS" = set; then 3578247738Sbapt CFLAGS=$ac_save_CFLAGS 3579247738Sbaptelif test $ac_cv_prog_cc_g = yes; then 3580247738Sbapt if test "$GCC" = yes; then 3581247738Sbapt CFLAGS="-g -O2" 3582247738Sbapt else 3583247738Sbapt CFLAGS="-g" 3584247738Sbapt fi 3585247738Sbaptelse 3586247738Sbapt if test "$GCC" = yes; then 3587247738Sbapt CFLAGS="-O2" 3588247738Sbapt else 3589247738Sbapt CFLAGS= 3590247738Sbapt fi 3591247738Sbaptfi 3592247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3593247738Sbapt$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3594247738Sbaptif test "${ac_cv_prog_cc_c89+set}" = set; then : 3595247738Sbapt $as_echo_n "(cached) " >&6 3596247738Sbaptelse 3597247738Sbapt ac_cv_prog_cc_c89=no 3598247738Sbaptac_save_CC=$CC 3599247738Sbaptcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3600247738Sbapt/* end confdefs.h. */ 3601247738Sbapt#include <stdarg.h> 3602247738Sbapt#include <stdio.h> 3603247738Sbapt#include <sys/types.h> 3604247738Sbapt#include <sys/stat.h> 3605247738Sbapt/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3606247738Sbaptstruct buf { int x; }; 3607247738SbaptFILE * (*rcsopen) (struct buf *, struct stat *, int); 3608247738Sbaptstatic char *e (p, i) 3609247738Sbapt char **p; 3610247738Sbapt int i; 3611247738Sbapt{ 3612247738Sbapt return p[i]; 3613247738Sbapt} 3614247738Sbaptstatic char *f (char * (*g) (char **, int), char **p, ...) 3615247738Sbapt{ 3616247738Sbapt char *s; 3617247738Sbapt va_list v; 3618247738Sbapt va_start (v,p); 3619247738Sbapt s = g (p, va_arg (v,int)); 3620247738Sbapt va_end (v); 3621247738Sbapt return s; 3622247738Sbapt} 3623247738Sbapt 3624247738Sbapt/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3625247738Sbapt function prototypes and stuff, but not '\xHH' hex character constants. 3626247738Sbapt These don't provoke an error unfortunately, instead are silently treated 3627247738Sbapt as 'x'. The following induces an error, until -std is added to get 3628247738Sbapt proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3629247738Sbapt array size at least. It's necessary to write '\x00'==0 to get something 3630247738Sbapt that's true only with -std. */ 3631247738Sbaptint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3632247738Sbapt 3633247738Sbapt/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3634247738Sbapt inside strings and character constants. */ 3635247738Sbapt#define FOO(x) 'x' 3636247738Sbaptint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3637247738Sbapt 3638247738Sbaptint test (int i, double x); 3639247738Sbaptstruct s1 {int (*f) (int a);}; 3640247738Sbaptstruct s2 {int (*f) (double a);}; 3641247738Sbaptint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3642247738Sbaptint argc; 3643247738Sbaptchar **argv; 3644247738Sbaptint 3645247738Sbaptmain () 3646247738Sbapt{ 3647247738Sbaptreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3648247738Sbapt ; 3649247738Sbapt return 0; 3650247738Sbapt} 3651247738Sbapt_ACEOF 3652247738Sbaptfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3653247738Sbapt -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3654247738Sbaptdo 3655247738Sbapt CC="$ac_save_CC $ac_arg" 3656247738Sbapt if ac_fn_c_try_compile "$LINENO"; then : 3657247738Sbapt ac_cv_prog_cc_c89=$ac_arg 3658247738Sbaptfi 3659247738Sbaptrm -f core conftest.err conftest.$ac_objext 3660247738Sbapt test "x$ac_cv_prog_cc_c89" != "xno" && break 3661247738Sbaptdone 3662247738Sbaptrm -f conftest.$ac_ext 3663247738SbaptCC=$ac_save_CC 3664247738Sbapt 3665247738Sbaptfi 3666247738Sbapt# AC_CACHE_VAL 3667247738Sbaptcase "x$ac_cv_prog_cc_c89" in 3668247738Sbapt x) 3669247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3670247738Sbapt$as_echo "none needed" >&6; } ;; 3671247738Sbapt xno) 3672247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3673247738Sbapt$as_echo "unsupported" >&6; } ;; 3674247738Sbapt *) 3675247738Sbapt CC="$CC $ac_cv_prog_cc_c89" 3676247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3677247738Sbapt$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3678247738Sbaptesac 3679247738Sbaptif test "x$ac_cv_prog_cc_c89" != xno; then : 3680247738Sbapt 3681247738Sbaptfi 3682247738Sbapt 3683247738Sbaptac_ext=c 3684247738Sbaptac_cpp='$CPP $CPPFLAGS' 3685247738Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3686247738Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3687247738Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 3688247738SbaptDEPDIR="${am__leading_dot}deps" 3689247738Sbapt 3690247738Sbaptac_config_commands="$ac_config_commands depfiles" 3691247738Sbapt 3692247738Sbapt 3693247738Sbaptam_make=${MAKE-make} 3694247738Sbaptcat > confinc << 'END' 3695247738Sbaptam__doit: 3696247738Sbapt @echo this is the am__doit target 3697247738Sbapt.PHONY: am__doit 3698247738SbaptEND 3699247738Sbapt# If we don't find an include directive, just comment out the code. 3700247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3701247738Sbapt$as_echo_n "checking for style of include used by $am_make... " >&6; } 3702247738Sbaptam__include="#" 3703247738Sbaptam__quote= 3704247738Sbapt_am_result=none 3705247738Sbapt# First try GNU make style include. 3706247738Sbaptecho "include confinc" > confmf 3707247738Sbapt# Ignore all kinds of additional output from `make'. 3708247738Sbaptcase `$am_make -s -f confmf 2> /dev/null` in #( 3709247738Sbapt*the\ am__doit\ target*) 3710247738Sbapt am__include=include 3711247738Sbapt am__quote= 3712247738Sbapt _am_result=GNU 3713247738Sbapt ;; 3714247738Sbaptesac 3715247738Sbapt# Now try BSD make style include. 3716247738Sbaptif test "$am__include" = "#"; then 3717247738Sbapt echo '.include "confinc"' > confmf 3718247738Sbapt case `$am_make -s -f confmf 2> /dev/null` in #( 3719247738Sbapt *the\ am__doit\ target*) 3720247738Sbapt am__include=.include 3721247738Sbapt am__quote="\"" 3722247738Sbapt _am_result=BSD 3723247738Sbapt ;; 3724247738Sbapt esac 3725247738Sbaptfi 3726247738Sbapt 3727247738Sbapt 3728247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3729247738Sbapt$as_echo "$_am_result" >&6; } 3730247738Sbaptrm -f confinc confmf 3731247738Sbapt 3732247738Sbapt# Check whether --enable-dependency-tracking was given. 3733247738Sbaptif test "${enable_dependency_tracking+set}" = set; then : 3734247738Sbapt enableval=$enable_dependency_tracking; 3735247738Sbaptfi 3736247738Sbapt 3737247738Sbaptif test "x$enable_dependency_tracking" != xno; then 3738247738Sbapt am_depcomp="$ac_aux_dir/depcomp" 3739247738Sbapt AMDEPBACKSLASH='\' 3740247738Sbaptfi 3741247738Sbapt if test "x$enable_dependency_tracking" != xno; then 3742247738Sbapt AMDEP_TRUE= 3743247738Sbapt AMDEP_FALSE='#' 3744247738Sbaptelse 3745247738Sbapt AMDEP_TRUE='#' 3746247738Sbapt AMDEP_FALSE= 3747247738Sbaptfi 3748247738Sbapt 3749247738Sbapt 3750247738Sbapt 3751247738Sbaptdepcc="$CC" am_compiler_list= 3752247738Sbapt 3753247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3754247738Sbapt$as_echo_n "checking dependency style of $depcc... " >&6; } 3755247738Sbaptif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3756247738Sbapt $as_echo_n "(cached) " >&6 3757247738Sbaptelse 3758247738Sbapt if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3759247738Sbapt # We make a subdir and do the tests there. Otherwise we can end up 3760247738Sbapt # making bogus files that we don't know about and never remove. For 3761247738Sbapt # instance it was reported that on HP-UX the gcc test will end up 3762247738Sbapt # making a dummy file named `D' -- because `-MD' means `put the output 3763247738Sbapt # in D'. 3764247738Sbapt mkdir conftest.dir 3765247738Sbapt # Copy depcomp to subdir because otherwise we won't find it if we're 3766247738Sbapt # using a relative directory. 3767247738Sbapt cp "$am_depcomp" conftest.dir 3768247738Sbapt cd conftest.dir 3769247738Sbapt # We will build objects and dependencies in a subdirectory because 3770247738Sbapt # it helps to detect inapplicable dependency modes. For instance 3771247738Sbapt # both Tru64's cc and ICC support -MD to output dependencies as a 3772247738Sbapt # side effect of compilation, but ICC will put the dependencies in 3773247738Sbapt # the current directory while Tru64 will put them in the object 3774247738Sbapt # directory. 3775247738Sbapt mkdir sub 3776247738Sbapt 3777247738Sbapt am_cv_CC_dependencies_compiler_type=none 3778247738Sbapt if test "$am_compiler_list" = ""; then 3779247738Sbapt am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3780247738Sbapt fi 3781247738Sbapt am__universal=false 3782247738Sbapt case " $depcc " in #( 3783247738Sbapt *\ -arch\ *\ -arch\ *) am__universal=true ;; 3784247738Sbapt esac 3785247738Sbapt 3786247738Sbapt for depmode in $am_compiler_list; do 3787247738Sbapt # Setup a source with many dependencies, because some compilers 3788247738Sbapt # like to wrap large dependency lists on column 80 (with \), and 3789247738Sbapt # we should not choose a depcomp mode which is confused by this. 3790247738Sbapt # 3791247738Sbapt # We need to recreate these files for each test, as the compiler may 3792247738Sbapt # overwrite some of them when testing with obscure command lines. 3793247738Sbapt # This happens at least with the AIX C compiler. 3794247738Sbapt : > sub/conftest.c 3795247738Sbapt for i in 1 2 3 4 5 6; do 3796247738Sbapt echo '#include "conftst'$i'.h"' >> sub/conftest.c 3797247738Sbapt # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3798247738Sbapt # Solaris 8's {/usr,}/bin/sh. 3799247738Sbapt touch sub/conftst$i.h 3800247738Sbapt done 3801247738Sbapt echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3802247738Sbapt 3803247738Sbapt # We check with `-c' and `-o' for the sake of the "dashmstdout" 3804247738Sbapt # mode. It turns out that the SunPro C++ compiler does not properly 3805247738Sbapt # handle `-M -o', and we need to detect this. Also, some Intel 3806247738Sbapt # versions had trouble with output in subdirs 3807247738Sbapt am__obj=sub/conftest.${OBJEXT-o} 3808247738Sbapt am__minus_obj="-o $am__obj" 3809247738Sbapt case $depmode in 3810247738Sbapt gcc) 3811247738Sbapt # This depmode causes a compiler race in universal mode. 3812247738Sbapt test "$am__universal" = false || continue 3813247738Sbapt ;; 3814247738Sbapt nosideeffect) 3815247738Sbapt # after this tag, mechanisms are not by side-effect, so they'll 3816247738Sbapt # only be used when explicitly requested 3817247738Sbapt if test "x$enable_dependency_tracking" = xyes; then 3818247738Sbapt continue 3819247738Sbapt else 3820247738Sbapt break 3821247738Sbapt fi 3822247738Sbapt ;; 3823247738Sbapt msvisualcpp | msvcmsys) 3824247738Sbapt # This compiler won't grok `-c -o', but also, the minuso test has 3825247738Sbapt # not run yet. These depmodes are late enough in the game, and 3826247738Sbapt # so weak that their functioning should not be impacted. 3827247738Sbapt am__obj=conftest.${OBJEXT-o} 3828247738Sbapt am__minus_obj= 3829247738Sbapt ;; 3830247738Sbapt none) break ;; 3831247738Sbapt esac 3832247738Sbapt if depmode=$depmode \ 3833247738Sbapt source=sub/conftest.c object=$am__obj \ 3834247738Sbapt depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3835247738Sbapt $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3836247738Sbapt >/dev/null 2>conftest.err && 3837247738Sbapt grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3838247738Sbapt grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3839247738Sbapt grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3840247738Sbapt ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3841247738Sbapt # icc doesn't choke on unknown options, it will just issue warnings 3842247738Sbapt # or remarks (even with -Werror). So we grep stderr for any message 3843247738Sbapt # that says an option was ignored or not supported. 3844247738Sbapt # When given -MP, icc 7.0 and 7.1 complain thusly: 3845247738Sbapt # icc: Command line warning: ignoring option '-M'; no argument required 3846247738Sbapt # The diagnosis changed in icc 8.0: 3847247738Sbapt # icc: Command line remark: option '-MP' not supported 3848247738Sbapt if (grep 'ignoring option' conftest.err || 3849247738Sbapt grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3850247738Sbapt am_cv_CC_dependencies_compiler_type=$depmode 3851247738Sbapt break 3852247738Sbapt fi 3853247738Sbapt fi 3854247738Sbapt done 3855247738Sbapt 3856247738Sbapt cd .. 3857247738Sbapt rm -rf conftest.dir 3858247738Sbaptelse 3859247738Sbapt am_cv_CC_dependencies_compiler_type=none 3860247738Sbaptfi 3861247738Sbapt 3862247738Sbaptfi 3863247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3864247738Sbapt$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3865247738SbaptCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3866247738Sbapt 3867247738Sbapt if 3868247738Sbapt test "x$enable_dependency_tracking" != xno \ 3869247738Sbapt && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3870247738Sbapt am__fastdepCC_TRUE= 3871247738Sbapt am__fastdepCC_FALSE='#' 3872247738Sbaptelse 3873247738Sbapt am__fastdepCC_TRUE='#' 3874247738Sbapt am__fastdepCC_FALSE= 3875247738Sbaptfi 3876247738Sbapt 3877247738Sbapt 3878247738Sbaptac_ext=c 3879247738Sbaptac_cpp='$CPP $CPPFLAGS' 3880247738Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3881247738Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3882247738Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 3883247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3884247738Sbapt$as_echo_n "checking how to run the C preprocessor... " >&6; } 3885247738Sbapt# On Suns, sometimes $CPP names a directory. 3886247738Sbaptif test -n "$CPP" && test -d "$CPP"; then 3887247738Sbapt CPP= 3888247738Sbaptfi 3889247738Sbaptif test -z "$CPP"; then 3890247738Sbapt if test "${ac_cv_prog_CPP+set}" = set; then : 3891247738Sbapt $as_echo_n "(cached) " >&6 3892247738Sbaptelse 3893247738Sbapt # Double quotes because CPP needs to be expanded 3894247738Sbapt for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3895247738Sbapt do 3896247738Sbapt ac_preproc_ok=false 3897247738Sbaptfor ac_c_preproc_warn_flag in '' yes 3898247738Sbaptdo 3899247738Sbapt # Use a header file that comes with gcc, so configuring glibc 3900247738Sbapt # with a fresh cross-compiler works. 3901247738Sbapt # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3902247738Sbapt # <limits.h> exists even on freestanding compilers. 3903247738Sbapt # On the NeXT, cc -E runs the code through the compiler's parser, 3904247738Sbapt # not just through cpp. "Syntax error" is here to catch this case. 3905247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3906247738Sbapt/* end confdefs.h. */ 3907247738Sbapt#ifdef __STDC__ 3908247738Sbapt# include <limits.h> 3909247738Sbapt#else 3910247738Sbapt# include <assert.h> 3911247738Sbapt#endif 3912247738Sbapt Syntax error 3913247738Sbapt_ACEOF 3914247738Sbaptif ac_fn_c_try_cpp "$LINENO"; then : 3915247738Sbapt 3916247738Sbaptelse 3917247738Sbapt # Broken: fails on valid input. 3918247738Sbaptcontinue 3919247738Sbaptfi 3920247738Sbaptrm -f conftest.err conftest.i conftest.$ac_ext 3921247738Sbapt 3922247738Sbapt # OK, works on sane cases. Now check whether nonexistent headers 3923247738Sbapt # can be detected and how. 3924247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3925247738Sbapt/* end confdefs.h. */ 3926247738Sbapt#include <ac_nonexistent.h> 3927247738Sbapt_ACEOF 3928247738Sbaptif ac_fn_c_try_cpp "$LINENO"; then : 3929247738Sbapt # Broken: success on invalid input. 3930247738Sbaptcontinue 3931247738Sbaptelse 3932247738Sbapt # Passes both tests. 3933247738Sbaptac_preproc_ok=: 3934247738Sbaptbreak 3935247738Sbaptfi 3936247738Sbaptrm -f conftest.err conftest.i conftest.$ac_ext 3937247738Sbapt 3938247738Sbaptdone 3939247738Sbapt# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3940247738Sbaptrm -f conftest.i conftest.err conftest.$ac_ext 3941247738Sbaptif $ac_preproc_ok; then : 3942247738Sbapt break 3943247738Sbaptfi 3944247738Sbapt 3945247738Sbapt done 3946247738Sbapt ac_cv_prog_CPP=$CPP 3947247738Sbapt 3948247738Sbaptfi 3949247738Sbapt CPP=$ac_cv_prog_CPP 3950247738Sbaptelse 3951247738Sbapt ac_cv_prog_CPP=$CPP 3952247738Sbaptfi 3953247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3954247738Sbapt$as_echo "$CPP" >&6; } 3955247738Sbaptac_preproc_ok=false 3956247738Sbaptfor ac_c_preproc_warn_flag in '' yes 3957247738Sbaptdo 3958247738Sbapt # Use a header file that comes with gcc, so configuring glibc 3959247738Sbapt # with a fresh cross-compiler works. 3960247738Sbapt # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3961247738Sbapt # <limits.h> exists even on freestanding compilers. 3962247738Sbapt # On the NeXT, cc -E runs the code through the compiler's parser, 3963247738Sbapt # not just through cpp. "Syntax error" is here to catch this case. 3964247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3965247738Sbapt/* end confdefs.h. */ 3966247738Sbapt#ifdef __STDC__ 3967247738Sbapt# include <limits.h> 3968247738Sbapt#else 3969247738Sbapt# include <assert.h> 3970247738Sbapt#endif 3971247738Sbapt Syntax error 3972247738Sbapt_ACEOF 3973247738Sbaptif ac_fn_c_try_cpp "$LINENO"; then : 3974247738Sbapt 3975247738Sbaptelse 3976247738Sbapt # Broken: fails on valid input. 3977247738Sbaptcontinue 3978247738Sbaptfi 3979247738Sbaptrm -f conftest.err conftest.i conftest.$ac_ext 3980247738Sbapt 3981247738Sbapt # OK, works on sane cases. Now check whether nonexistent headers 3982247738Sbapt # can be detected and how. 3983247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3984247738Sbapt/* end confdefs.h. */ 3985247738Sbapt#include <ac_nonexistent.h> 3986247738Sbapt_ACEOF 3987247738Sbaptif ac_fn_c_try_cpp "$LINENO"; then : 3988247738Sbapt # Broken: success on invalid input. 3989247738Sbaptcontinue 3990247738Sbaptelse 3991247738Sbapt # Passes both tests. 3992247738Sbaptac_preproc_ok=: 3993247738Sbaptbreak 3994247738Sbaptfi 3995247738Sbaptrm -f conftest.err conftest.i conftest.$ac_ext 3996247738Sbapt 3997247738Sbaptdone 3998247738Sbapt# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3999247738Sbaptrm -f conftest.i conftest.err conftest.$ac_ext 4000247738Sbaptif $ac_preproc_ok; then : 4001247738Sbapt 4002247738Sbaptelse 4003247738Sbapt { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4004247738Sbapt$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4005247738Sbaptas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4006247738SbaptSee \`config.log' for more details" "$LINENO" 5 ; } 4007247738Sbaptfi 4008247738Sbapt 4009247738Sbaptac_ext=c 4010247738Sbaptac_cpp='$CPP $CPPFLAGS' 4011247738Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4012247738Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4013247738Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 4014247738Sbapt 4015247738Sbapt 4016247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4017247738Sbapt$as_echo_n "checking whether ln -s works... " >&6; } 4018247738SbaptLN_S=$as_ln_s 4019247738Sbaptif test "$LN_S" = "ln -s"; then 4020247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4021247738Sbapt$as_echo "yes" >&6; } 4022247738Sbaptelse 4023247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4024247738Sbapt$as_echo "no, using $LN_S" >&6; } 4025247738Sbaptfi 4026247738Sbapt 4027247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4028247738Sbapt$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4029247738Sbaptset x ${MAKE-make} 4030247738Sbaptac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4031247738Sbaptif eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : 4032247738Sbapt $as_echo_n "(cached) " >&6 4033247738Sbaptelse 4034247738Sbapt cat >conftest.make <<\_ACEOF 4035247738SbaptSHELL = /bin/sh 4036247738Sbaptall: 4037247738Sbapt @echo '@@@%%%=$(MAKE)=@@@%%%' 4038247738Sbapt_ACEOF 4039247738Sbapt# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4040247738Sbaptcase `${MAKE-make} -f conftest.make 2>/dev/null` in 4041247738Sbapt *@@@%%%=?*=@@@%%%*) 4042247738Sbapt eval ac_cv_prog_make_${ac_make}_set=yes;; 4043247738Sbapt *) 4044247738Sbapt eval ac_cv_prog_make_${ac_make}_set=no;; 4045247738Sbaptesac 4046247738Sbaptrm -f conftest.make 4047247738Sbaptfi 4048247738Sbaptif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4049247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4050247738Sbapt$as_echo "yes" >&6; } 4051247738Sbapt SET_MAKE= 4052247738Sbaptelse 4053247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4054247738Sbapt$as_echo "no" >&6; } 4055247738Sbapt SET_MAKE="MAKE=${MAKE-make}" 4056247738Sbaptfi 4057247738Sbapt 4058247738Sbaptcase `pwd` in 4059247738Sbapt *\ * | *\ *) 4060247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4061247738Sbapt$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4062247738Sbaptesac 4063247738Sbapt 4064247738Sbapt 4065247738Sbapt 4066247738Sbaptmacro_version='2.2.6b' 4067247738Sbaptmacro_revision='1.3017' 4068247738Sbapt 4069247738Sbapt 4070247738Sbapt 4071247738Sbapt 4072247738Sbapt 4073247738Sbapt 4074247738Sbapt 4075247738Sbapt 4076247738Sbapt 4077247738Sbapt 4078247738Sbapt 4079247738Sbapt 4080247738Sbapt 4081247738Sbaptltmain="$ac_aux_dir/ltmain.sh" 4082247738Sbapt 4083247738Sbapt# Make sure we can run config.sub. 4084247738Sbapt$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4085247738Sbapt as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4086247738Sbapt 4087247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4088247738Sbapt$as_echo_n "checking build system type... " >&6; } 4089247738Sbaptif test "${ac_cv_build+set}" = set; then : 4090247738Sbapt $as_echo_n "(cached) " >&6 4091247738Sbaptelse 4092247738Sbapt ac_build_alias=$build_alias 4093247738Sbapttest "x$ac_build_alias" = x && 4094247738Sbapt ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4095247738Sbapttest "x$ac_build_alias" = x && 4096247738Sbapt as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4097247738Sbaptac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4098247738Sbapt as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4099247738Sbapt 4100247738Sbaptfi 4101247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4102247738Sbapt$as_echo "$ac_cv_build" >&6; } 4103247738Sbaptcase $ac_cv_build in 4104247738Sbapt*-*-*) ;; 4105247738Sbapt*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; 4106247738Sbaptesac 4107247738Sbaptbuild=$ac_cv_build 4108247738Sbaptac_save_IFS=$IFS; IFS='-' 4109247738Sbaptset x $ac_cv_build 4110247738Sbaptshift 4111247738Sbaptbuild_cpu=$1 4112247738Sbaptbuild_vendor=$2 4113247738Sbaptshift; shift 4114247738Sbapt# Remember, the first character of IFS is used to create $*, 4115247738Sbapt# except with old shells: 4116247738Sbaptbuild_os=$* 4117247738SbaptIFS=$ac_save_IFS 4118247738Sbaptcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4119247738Sbapt 4120247738Sbapt 4121247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4122247738Sbapt$as_echo_n "checking host system type... " >&6; } 4123247738Sbaptif test "${ac_cv_host+set}" = set; then : 4124247738Sbapt $as_echo_n "(cached) " >&6 4125247738Sbaptelse 4126247738Sbapt if test "x$host_alias" = x; then 4127247738Sbapt ac_cv_host=$ac_cv_build 4128247738Sbaptelse 4129247738Sbapt ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4130247738Sbapt as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4131247738Sbaptfi 4132247738Sbapt 4133247738Sbaptfi 4134247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4135247738Sbapt$as_echo "$ac_cv_host" >&6; } 4136247738Sbaptcase $ac_cv_host in 4137247738Sbapt*-*-*) ;; 4138247738Sbapt*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; 4139247738Sbaptesac 4140247738Sbapthost=$ac_cv_host 4141247738Sbaptac_save_IFS=$IFS; IFS='-' 4142247738Sbaptset x $ac_cv_host 4143247738Sbaptshift 4144247738Sbapthost_cpu=$1 4145247738Sbapthost_vendor=$2 4146247738Sbaptshift; shift 4147247738Sbapt# Remember, the first character of IFS is used to create $*, 4148247738Sbapt# except with old shells: 4149247738Sbapthost_os=$* 4150247738SbaptIFS=$ac_save_IFS 4151247738Sbaptcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4152247738Sbapt 4153247738Sbapt 4154247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4155247738Sbapt$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4156247738Sbaptif test "${ac_cv_path_SED+set}" = set; then : 4157247738Sbapt $as_echo_n "(cached) " >&6 4158247738Sbaptelse 4159247738Sbapt ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4160247738Sbapt for ac_i in 1 2 3 4 5 6 7; do 4161247738Sbapt ac_script="$ac_script$as_nl$ac_script" 4162247738Sbapt done 4163247738Sbapt echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4164247738Sbapt { ac_script=; unset ac_script;} 4165247738Sbapt if test -z "$SED"; then 4166247738Sbapt ac_path_SED_found=false 4167247738Sbapt # Loop through the user's path and test for each of PROGNAME-LIST 4168247738Sbapt as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4169247738Sbaptfor as_dir in $PATH 4170247738Sbaptdo 4171247738Sbapt IFS=$as_save_IFS 4172247738Sbapt test -z "$as_dir" && as_dir=. 4173247738Sbapt for ac_prog in sed gsed; do 4174247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 4175247738Sbapt ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4176247738Sbapt { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4177247738Sbapt# Check for GNU ac_path_SED and select it if it is found. 4178247738Sbapt # Check for GNU $ac_path_SED 4179247738Sbaptcase `"$ac_path_SED" --version 2>&1` in 4180247738Sbapt*GNU*) 4181247738Sbapt ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4182247738Sbapt*) 4183247738Sbapt ac_count=0 4184247738Sbapt $as_echo_n 0123456789 >"conftest.in" 4185247738Sbapt while : 4186247738Sbapt do 4187247738Sbapt cat "conftest.in" "conftest.in" >"conftest.tmp" 4188247738Sbapt mv "conftest.tmp" "conftest.in" 4189247738Sbapt cp "conftest.in" "conftest.nl" 4190247738Sbapt $as_echo '' >> "conftest.nl" 4191247738Sbapt "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4192247738Sbapt diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4193247738Sbapt as_fn_arith $ac_count + 1 && ac_count=$as_val 4194247738Sbapt if test $ac_count -gt ${ac_path_SED_max-0}; then 4195247738Sbapt # Best one so far, save it but keep looking for a better one 4196247738Sbapt ac_cv_path_SED="$ac_path_SED" 4197247738Sbapt ac_path_SED_max=$ac_count 4198247738Sbapt fi 4199247738Sbapt # 10*(2^10) chars as input seems more than enough 4200247738Sbapt test $ac_count -gt 10 && break 4201247738Sbapt done 4202247738Sbapt rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4203247738Sbaptesac 4204247738Sbapt 4205247738Sbapt $ac_path_SED_found && break 3 4206247738Sbapt done 4207247738Sbapt done 4208247738Sbapt done 4209247738SbaptIFS=$as_save_IFS 4210247738Sbapt if test -z "$ac_cv_path_SED"; then 4211247738Sbapt as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4212247738Sbapt fi 4213247738Sbaptelse 4214247738Sbapt ac_cv_path_SED=$SED 4215247738Sbaptfi 4216247738Sbapt 4217247738Sbaptfi 4218247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4219247738Sbapt$as_echo "$ac_cv_path_SED" >&6; } 4220247738Sbapt SED="$ac_cv_path_SED" 4221247738Sbapt rm -f conftest.sed 4222247738Sbapt 4223247738Sbapttest -z "$SED" && SED=sed 4224247738SbaptXsed="$SED -e 1s/^X//" 4225247738Sbapt 4226247738Sbapt 4227247738Sbapt 4228247738Sbapt 4229247738Sbapt 4230247738Sbapt 4231247738Sbapt 4232247738Sbapt 4233247738Sbapt 4234247738Sbapt 4235247738Sbapt 4236247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4237247738Sbapt$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4238247738Sbaptif test "${ac_cv_path_GREP+set}" = set; then : 4239247738Sbapt $as_echo_n "(cached) " >&6 4240247738Sbaptelse 4241247738Sbapt if test -z "$GREP"; then 4242247738Sbapt ac_path_GREP_found=false 4243247738Sbapt # Loop through the user's path and test for each of PROGNAME-LIST 4244247738Sbapt as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4245247738Sbaptfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4246247738Sbaptdo 4247247738Sbapt IFS=$as_save_IFS 4248247738Sbapt test -z "$as_dir" && as_dir=. 4249247738Sbapt for ac_prog in grep ggrep; do 4250247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 4251247738Sbapt ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4252247738Sbapt { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4253247738Sbapt# Check for GNU ac_path_GREP and select it if it is found. 4254247738Sbapt # Check for GNU $ac_path_GREP 4255247738Sbaptcase `"$ac_path_GREP" --version 2>&1` in 4256247738Sbapt*GNU*) 4257247738Sbapt ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4258247738Sbapt*) 4259247738Sbapt ac_count=0 4260247738Sbapt $as_echo_n 0123456789 >"conftest.in" 4261247738Sbapt while : 4262247738Sbapt do 4263247738Sbapt cat "conftest.in" "conftest.in" >"conftest.tmp" 4264247738Sbapt mv "conftest.tmp" "conftest.in" 4265247738Sbapt cp "conftest.in" "conftest.nl" 4266247738Sbapt $as_echo 'GREP' >> "conftest.nl" 4267247738Sbapt "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4268247738Sbapt diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4269247738Sbapt as_fn_arith $ac_count + 1 && ac_count=$as_val 4270247738Sbapt if test $ac_count -gt ${ac_path_GREP_max-0}; then 4271247738Sbapt # Best one so far, save it but keep looking for a better one 4272247738Sbapt ac_cv_path_GREP="$ac_path_GREP" 4273247738Sbapt ac_path_GREP_max=$ac_count 4274247738Sbapt fi 4275247738Sbapt # 10*(2^10) chars as input seems more than enough 4276247738Sbapt test $ac_count -gt 10 && break 4277247738Sbapt done 4278247738Sbapt rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4279247738Sbaptesac 4280247738Sbapt 4281247738Sbapt $ac_path_GREP_found && break 3 4282247738Sbapt done 4283247738Sbapt done 4284247738Sbapt done 4285247738SbaptIFS=$as_save_IFS 4286247738Sbapt if test -z "$ac_cv_path_GREP"; then 4287247738Sbapt as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4288247738Sbapt fi 4289247738Sbaptelse 4290247738Sbapt ac_cv_path_GREP=$GREP 4291247738Sbaptfi 4292247738Sbapt 4293247738Sbaptfi 4294247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4295247738Sbapt$as_echo "$ac_cv_path_GREP" >&6; } 4296247738Sbapt GREP="$ac_cv_path_GREP" 4297247738Sbapt 4298247738Sbapt 4299247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4300247738Sbapt$as_echo_n "checking for egrep... " >&6; } 4301247738Sbaptif test "${ac_cv_path_EGREP+set}" = set; then : 4302247738Sbapt $as_echo_n "(cached) " >&6 4303247738Sbaptelse 4304247738Sbapt if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4305247738Sbapt then ac_cv_path_EGREP="$GREP -E" 4306247738Sbapt else 4307247738Sbapt if test -z "$EGREP"; then 4308247738Sbapt ac_path_EGREP_found=false 4309247738Sbapt # Loop through the user's path and test for each of PROGNAME-LIST 4310247738Sbapt as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4311247738Sbaptfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4312247738Sbaptdo 4313247738Sbapt IFS=$as_save_IFS 4314247738Sbapt test -z "$as_dir" && as_dir=. 4315247738Sbapt for ac_prog in egrep; do 4316247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 4317247738Sbapt ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4318247738Sbapt { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4319247738Sbapt# Check for GNU ac_path_EGREP and select it if it is found. 4320247738Sbapt # Check for GNU $ac_path_EGREP 4321247738Sbaptcase `"$ac_path_EGREP" --version 2>&1` in 4322247738Sbapt*GNU*) 4323247738Sbapt ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4324247738Sbapt*) 4325247738Sbapt ac_count=0 4326247738Sbapt $as_echo_n 0123456789 >"conftest.in" 4327247738Sbapt while : 4328247738Sbapt do 4329247738Sbapt cat "conftest.in" "conftest.in" >"conftest.tmp" 4330247738Sbapt mv "conftest.tmp" "conftest.in" 4331247738Sbapt cp "conftest.in" "conftest.nl" 4332247738Sbapt $as_echo 'EGREP' >> "conftest.nl" 4333247738Sbapt "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4334247738Sbapt diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4335247738Sbapt as_fn_arith $ac_count + 1 && ac_count=$as_val 4336247738Sbapt if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4337247738Sbapt # Best one so far, save it but keep looking for a better one 4338247738Sbapt ac_cv_path_EGREP="$ac_path_EGREP" 4339247738Sbapt ac_path_EGREP_max=$ac_count 4340247738Sbapt fi 4341247738Sbapt # 10*(2^10) chars as input seems more than enough 4342247738Sbapt test $ac_count -gt 10 && break 4343247738Sbapt done 4344247738Sbapt rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4345247738Sbaptesac 4346247738Sbapt 4347247738Sbapt $ac_path_EGREP_found && break 3 4348247738Sbapt done 4349247738Sbapt done 4350247738Sbapt done 4351247738SbaptIFS=$as_save_IFS 4352247738Sbapt if test -z "$ac_cv_path_EGREP"; then 4353247738Sbapt as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4354247738Sbapt fi 4355247738Sbaptelse 4356247738Sbapt ac_cv_path_EGREP=$EGREP 4357247738Sbaptfi 4358247738Sbapt 4359247738Sbapt fi 4360247738Sbaptfi 4361247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4362247738Sbapt$as_echo "$ac_cv_path_EGREP" >&6; } 4363247738Sbapt EGREP="$ac_cv_path_EGREP" 4364247738Sbapt 4365247738Sbapt 4366247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4367247738Sbapt$as_echo_n "checking for fgrep... " >&6; } 4368247738Sbaptif test "${ac_cv_path_FGREP+set}" = set; then : 4369247738Sbapt $as_echo_n "(cached) " >&6 4370247738Sbaptelse 4371247738Sbapt if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4372247738Sbapt then ac_cv_path_FGREP="$GREP -F" 4373247738Sbapt else 4374247738Sbapt if test -z "$FGREP"; then 4375247738Sbapt ac_path_FGREP_found=false 4376247738Sbapt # Loop through the user's path and test for each of PROGNAME-LIST 4377247738Sbapt as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4378247738Sbaptfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4379247738Sbaptdo 4380247738Sbapt IFS=$as_save_IFS 4381247738Sbapt test -z "$as_dir" && as_dir=. 4382247738Sbapt for ac_prog in fgrep; do 4383247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 4384247738Sbapt ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4385247738Sbapt { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4386247738Sbapt# Check for GNU ac_path_FGREP and select it if it is found. 4387247738Sbapt # Check for GNU $ac_path_FGREP 4388247738Sbaptcase `"$ac_path_FGREP" --version 2>&1` in 4389247738Sbapt*GNU*) 4390247738Sbapt ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4391247738Sbapt*) 4392247738Sbapt ac_count=0 4393247738Sbapt $as_echo_n 0123456789 >"conftest.in" 4394247738Sbapt while : 4395247738Sbapt do 4396247738Sbapt cat "conftest.in" "conftest.in" >"conftest.tmp" 4397247738Sbapt mv "conftest.tmp" "conftest.in" 4398247738Sbapt cp "conftest.in" "conftest.nl" 4399247738Sbapt $as_echo 'FGREP' >> "conftest.nl" 4400247738Sbapt "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4401247738Sbapt diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4402247738Sbapt as_fn_arith $ac_count + 1 && ac_count=$as_val 4403247738Sbapt if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4404247738Sbapt # Best one so far, save it but keep looking for a better one 4405247738Sbapt ac_cv_path_FGREP="$ac_path_FGREP" 4406247738Sbapt ac_path_FGREP_max=$ac_count 4407247738Sbapt fi 4408247738Sbapt # 10*(2^10) chars as input seems more than enough 4409247738Sbapt test $ac_count -gt 10 && break 4410247738Sbapt done 4411247738Sbapt rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4412247738Sbaptesac 4413247738Sbapt 4414247738Sbapt $ac_path_FGREP_found && break 3 4415247738Sbapt done 4416247738Sbapt done 4417247738Sbapt done 4418247738SbaptIFS=$as_save_IFS 4419247738Sbapt if test -z "$ac_cv_path_FGREP"; then 4420247738Sbapt as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4421247738Sbapt fi 4422247738Sbaptelse 4423247738Sbapt ac_cv_path_FGREP=$FGREP 4424247738Sbaptfi 4425247738Sbapt 4426247738Sbapt fi 4427247738Sbaptfi 4428247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4429247738Sbapt$as_echo "$ac_cv_path_FGREP" >&6; } 4430247738Sbapt FGREP="$ac_cv_path_FGREP" 4431247738Sbapt 4432247738Sbapt 4433247738Sbapttest -z "$GREP" && GREP=grep 4434247738Sbapt 4435247738Sbapt 4436247738Sbapt 4437247738Sbapt 4438247738Sbapt 4439247738Sbapt 4440247738Sbapt 4441247738Sbapt 4442247738Sbapt 4443247738Sbapt 4444247738Sbapt 4445247738Sbapt 4446247738Sbapt 4447247738Sbapt 4448247738Sbapt 4449247738Sbapt 4450247738Sbapt 4451247738Sbapt 4452247738Sbapt 4453247738Sbapt# Check whether --with-gnu-ld was given. 4454247738Sbaptif test "${with_gnu_ld+set}" = set; then : 4455247738Sbapt withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4456247738Sbaptelse 4457247738Sbapt with_gnu_ld=no 4458247738Sbaptfi 4459247738Sbapt 4460247738Sbaptac_prog=ld 4461247738Sbaptif test "$GCC" = yes; then 4462247738Sbapt # Check if gcc -print-prog-name=ld gives a path. 4463247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4464247738Sbapt$as_echo_n "checking for ld used by $CC... " >&6; } 4465247738Sbapt case $host in 4466247738Sbapt *-*-mingw*) 4467247738Sbapt # gcc leaves a trailing carriage return which upsets mingw 4468247738Sbapt ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4469247738Sbapt *) 4470247738Sbapt ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4471247738Sbapt esac 4472247738Sbapt case $ac_prog in 4473247738Sbapt # Accept absolute paths. 4474247738Sbapt [\\/]* | ?:[\\/]*) 4475247738Sbapt re_direlt='/[^/][^/]*/\.\./' 4476247738Sbapt # Canonicalize the pathname of ld 4477247738Sbapt ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4478247738Sbapt while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4479247738Sbapt ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4480247738Sbapt done 4481247738Sbapt test -z "$LD" && LD="$ac_prog" 4482247738Sbapt ;; 4483247738Sbapt "") 4484247738Sbapt # If it fails, then pretend we aren't using GCC. 4485247738Sbapt ac_prog=ld 4486247738Sbapt ;; 4487247738Sbapt *) 4488247738Sbapt # If it is relative, then search for the first ld in PATH. 4489247738Sbapt with_gnu_ld=unknown 4490247738Sbapt ;; 4491247738Sbapt esac 4492247738Sbaptelif test "$with_gnu_ld" = yes; then 4493247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4494247738Sbapt$as_echo_n "checking for GNU ld... " >&6; } 4495247738Sbaptelse 4496247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4497247738Sbapt$as_echo_n "checking for non-GNU ld... " >&6; } 4498247738Sbaptfi 4499247738Sbaptif test "${lt_cv_path_LD+set}" = set; then : 4500247738Sbapt $as_echo_n "(cached) " >&6 4501247738Sbaptelse 4502247738Sbapt if test -z "$LD"; then 4503247738Sbapt lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4504247738Sbapt for ac_dir in $PATH; do 4505247738Sbapt IFS="$lt_save_ifs" 4506247738Sbapt test -z "$ac_dir" && ac_dir=. 4507247738Sbapt if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4508247738Sbapt lt_cv_path_LD="$ac_dir/$ac_prog" 4509247738Sbapt # Check to see if the program is GNU ld. I'd rather use --version, 4510247738Sbapt # but apparently some variants of GNU ld only accept -v. 4511247738Sbapt # Break only if it was the GNU/non-GNU ld that we prefer. 4512247738Sbapt case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4513247738Sbapt *GNU* | *'with BFD'*) 4514247738Sbapt test "$with_gnu_ld" != no && break 4515247738Sbapt ;; 4516247738Sbapt *) 4517247738Sbapt test "$with_gnu_ld" != yes && break 4518247738Sbapt ;; 4519247738Sbapt esac 4520247738Sbapt fi 4521247738Sbapt done 4522247738Sbapt IFS="$lt_save_ifs" 4523247738Sbaptelse 4524247738Sbapt lt_cv_path_LD="$LD" # Let the user override the test with a path. 4525247738Sbaptfi 4526247738Sbaptfi 4527247738Sbapt 4528247738SbaptLD="$lt_cv_path_LD" 4529247738Sbaptif test -n "$LD"; then 4530247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4531247738Sbapt$as_echo "$LD" >&6; } 4532247738Sbaptelse 4533247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4534247738Sbapt$as_echo "no" >&6; } 4535247738Sbaptfi 4536247738Sbapttest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4537247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4538247738Sbapt$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4539247738Sbaptif test "${lt_cv_prog_gnu_ld+set}" = set; then : 4540247738Sbapt $as_echo_n "(cached) " >&6 4541247738Sbaptelse 4542247738Sbapt # I'd rather use --version here, but apparently some GNU lds only accept -v. 4543247738Sbaptcase `$LD -v 2>&1 </dev/null` in 4544247738Sbapt*GNU* | *'with BFD'*) 4545247738Sbapt lt_cv_prog_gnu_ld=yes 4546247738Sbapt ;; 4547247738Sbapt*) 4548247738Sbapt lt_cv_prog_gnu_ld=no 4549247738Sbapt ;; 4550247738Sbaptesac 4551247738Sbaptfi 4552247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4553247738Sbapt$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4554247738Sbaptwith_gnu_ld=$lt_cv_prog_gnu_ld 4555247738Sbapt 4556247738Sbapt 4557247738Sbapt 4558247738Sbapt 4559247738Sbapt 4560247738Sbapt 4561247738Sbapt 4562247738Sbapt 4563247738Sbapt 4564247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4565247738Sbapt$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4566247738Sbaptif test "${lt_cv_path_NM+set}" = set; then : 4567247738Sbapt $as_echo_n "(cached) " >&6 4568247738Sbaptelse 4569247738Sbapt if test -n "$NM"; then 4570247738Sbapt # Let the user override the test. 4571247738Sbapt lt_cv_path_NM="$NM" 4572247738Sbaptelse 4573247738Sbapt lt_nm_to_check="${ac_tool_prefix}nm" 4574247738Sbapt if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4575247738Sbapt lt_nm_to_check="$lt_nm_to_check nm" 4576247738Sbapt fi 4577247738Sbapt for lt_tmp_nm in $lt_nm_to_check; do 4578247738Sbapt lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4579247738Sbapt for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4580247738Sbapt IFS="$lt_save_ifs" 4581247738Sbapt test -z "$ac_dir" && ac_dir=. 4582247738Sbapt tmp_nm="$ac_dir/$lt_tmp_nm" 4583247738Sbapt if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4584247738Sbapt # Check to see if the nm accepts a BSD-compat flag. 4585247738Sbapt # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4586247738Sbapt # nm: unknown option "B" ignored 4587247738Sbapt # Tru64's nm complains that /dev/null is an invalid object file 4588247738Sbapt case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4589247738Sbapt */dev/null* | *'Invalid file or object type'*) 4590247738Sbapt lt_cv_path_NM="$tmp_nm -B" 4591247738Sbapt break 4592247738Sbapt ;; 4593247738Sbapt *) 4594247738Sbapt case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4595247738Sbapt */dev/null*) 4596247738Sbapt lt_cv_path_NM="$tmp_nm -p" 4597247738Sbapt break 4598247738Sbapt ;; 4599247738Sbapt *) 4600247738Sbapt lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4601247738Sbapt continue # so that we can try to find one that supports BSD flags 4602247738Sbapt ;; 4603247738Sbapt esac 4604247738Sbapt ;; 4605247738Sbapt esac 4606247738Sbapt fi 4607247738Sbapt done 4608247738Sbapt IFS="$lt_save_ifs" 4609247738Sbapt done 4610247738Sbapt : ${lt_cv_path_NM=no} 4611247738Sbaptfi 4612247738Sbaptfi 4613247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4614247738Sbapt$as_echo "$lt_cv_path_NM" >&6; } 4615247738Sbaptif test "$lt_cv_path_NM" != "no"; then 4616247738Sbapt NM="$lt_cv_path_NM" 4617247738Sbaptelse 4618247738Sbapt # Didn't find any BSD compatible name lister, look for dumpbin. 4619247738Sbapt if test -n "$ac_tool_prefix"; then 4620247738Sbapt for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4621247738Sbapt do 4622247738Sbapt # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4623247738Sbaptset dummy $ac_tool_prefix$ac_prog; ac_word=$2 4624247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4625247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 4626247738Sbaptif test "${ac_cv_prog_DUMPBIN+set}" = set; then : 4627247738Sbapt $as_echo_n "(cached) " >&6 4628247738Sbaptelse 4629247738Sbapt if test -n "$DUMPBIN"; then 4630247738Sbapt ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4631247738Sbaptelse 4632247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4633247738Sbaptfor as_dir in $PATH 4634247738Sbaptdo 4635247738Sbapt IFS=$as_save_IFS 4636247738Sbapt test -z "$as_dir" && as_dir=. 4637247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 4638247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4639247738Sbapt ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4640247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4641247738Sbapt break 2 4642247738Sbapt fi 4643247738Sbaptdone 4644247738Sbapt done 4645247738SbaptIFS=$as_save_IFS 4646247738Sbapt 4647247738Sbaptfi 4648247738Sbaptfi 4649247738SbaptDUMPBIN=$ac_cv_prog_DUMPBIN 4650247738Sbaptif test -n "$DUMPBIN"; then 4651247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4652247738Sbapt$as_echo "$DUMPBIN" >&6; } 4653247738Sbaptelse 4654247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4655247738Sbapt$as_echo "no" >&6; } 4656247738Sbaptfi 4657247738Sbapt 4658247738Sbapt 4659247738Sbapt test -n "$DUMPBIN" && break 4660247738Sbapt done 4661247738Sbaptfi 4662247738Sbaptif test -z "$DUMPBIN"; then 4663247738Sbapt ac_ct_DUMPBIN=$DUMPBIN 4664247738Sbapt for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4665247738Sbaptdo 4666247738Sbapt # Extract the first word of "$ac_prog", so it can be a program name with args. 4667247738Sbaptset dummy $ac_prog; ac_word=$2 4668247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4669247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 4670247738Sbaptif test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 4671247738Sbapt $as_echo_n "(cached) " >&6 4672247738Sbaptelse 4673247738Sbapt if test -n "$ac_ct_DUMPBIN"; then 4674247738Sbapt ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4675247738Sbaptelse 4676247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4677247738Sbaptfor as_dir in $PATH 4678247738Sbaptdo 4679247738Sbapt IFS=$as_save_IFS 4680247738Sbapt test -z "$as_dir" && as_dir=. 4681247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 4682247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4683247738Sbapt ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4684247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4685247738Sbapt break 2 4686247738Sbapt fi 4687247738Sbaptdone 4688247738Sbapt done 4689247738SbaptIFS=$as_save_IFS 4690247738Sbapt 4691247738Sbaptfi 4692247738Sbaptfi 4693247738Sbaptac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4694247738Sbaptif test -n "$ac_ct_DUMPBIN"; then 4695247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4696247738Sbapt$as_echo "$ac_ct_DUMPBIN" >&6; } 4697247738Sbaptelse 4698247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4699247738Sbapt$as_echo "no" >&6; } 4700247738Sbaptfi 4701247738Sbapt 4702247738Sbapt 4703247738Sbapt test -n "$ac_ct_DUMPBIN" && break 4704247738Sbaptdone 4705247738Sbapt 4706247738Sbapt if test "x$ac_ct_DUMPBIN" = x; then 4707247738Sbapt DUMPBIN=":" 4708247738Sbapt else 4709247738Sbapt case $cross_compiling:$ac_tool_warned in 4710247738Sbaptyes:) 4711247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4712247738Sbapt$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4713247738Sbaptac_tool_warned=yes ;; 4714247738Sbaptesac 4715247738Sbapt DUMPBIN=$ac_ct_DUMPBIN 4716247738Sbapt fi 4717247738Sbaptfi 4718247738Sbapt 4719247738Sbapt 4720247738Sbapt if test "$DUMPBIN" != ":"; then 4721247738Sbapt NM="$DUMPBIN" 4722247738Sbapt fi 4723247738Sbaptfi 4724247738Sbapttest -z "$NM" && NM=nm 4725247738Sbapt 4726247738Sbapt 4727247738Sbapt 4728247738Sbapt 4729247738Sbapt 4730247738Sbapt 4731247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4732247738Sbapt$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4733247738Sbaptif test "${lt_cv_nm_interface+set}" = set; then : 4734247738Sbapt $as_echo_n "(cached) " >&6 4735247738Sbaptelse 4736247738Sbapt lt_cv_nm_interface="BSD nm" 4737247738Sbapt echo "int some_variable = 0;" > conftest.$ac_ext 4738247738Sbapt (eval echo "\"\$as_me:4738: $ac_compile\"" >&5) 4739247738Sbapt (eval "$ac_compile" 2>conftest.err) 4740247738Sbapt cat conftest.err >&5 4741247738Sbapt (eval echo "\"\$as_me:4741: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4742247738Sbapt (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4743247738Sbapt cat conftest.err >&5 4744247738Sbapt (eval echo "\"\$as_me:4744: output\"" >&5) 4745247738Sbapt cat conftest.out >&5 4746247738Sbapt if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4747247738Sbapt lt_cv_nm_interface="MS dumpbin" 4748247738Sbapt fi 4749247738Sbapt rm -f conftest* 4750247738Sbaptfi 4751247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4752247738Sbapt$as_echo "$lt_cv_nm_interface" >&6; } 4753247738Sbapt 4754247738Sbapt# find the maximum length of command line arguments 4755247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4756247738Sbapt$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4757247738Sbaptif test "${lt_cv_sys_max_cmd_len+set}" = set; then : 4758247738Sbapt $as_echo_n "(cached) " >&6 4759247738Sbaptelse 4760247738Sbapt i=0 4761247738Sbapt teststring="ABCD" 4762247738Sbapt 4763247738Sbapt case $build_os in 4764247738Sbapt msdosdjgpp*) 4765247738Sbapt # On DJGPP, this test can blow up pretty badly due to problems in libc 4766247738Sbapt # (any single argument exceeding 2000 bytes causes a buffer overrun 4767247738Sbapt # during glob expansion). Even if it were fixed, the result of this 4768247738Sbapt # check would be larger than it should be. 4769247738Sbapt lt_cv_sys_max_cmd_len=12288; # 12K is about right 4770247738Sbapt ;; 4771247738Sbapt 4772247738Sbapt gnu*) 4773247738Sbapt # Under GNU Hurd, this test is not required because there is 4774247738Sbapt # no limit to the length of command line arguments. 4775247738Sbapt # Libtool will interpret -1 as no limit whatsoever 4776247738Sbapt lt_cv_sys_max_cmd_len=-1; 4777247738Sbapt ;; 4778247738Sbapt 4779247738Sbapt cygwin* | mingw* | cegcc*) 4780247738Sbapt # On Win9x/ME, this test blows up -- it succeeds, but takes 4781247738Sbapt # about 5 minutes as the teststring grows exponentially. 4782247738Sbapt # Worse, since 9x/ME are not pre-emptively multitasking, 4783247738Sbapt # you end up with a "frozen" computer, even though with patience 4784247738Sbapt # the test eventually succeeds (with a max line length of 256k). 4785247738Sbapt # Instead, let's just punt: use the minimum linelength reported by 4786247738Sbapt # all of the supported platforms: 8192 (on NT/2K/XP). 4787247738Sbapt lt_cv_sys_max_cmd_len=8192; 4788247738Sbapt ;; 4789247738Sbapt 4790247738Sbapt amigaos*) 4791247738Sbapt # On AmigaOS with pdksh, this test takes hours, literally. 4792247738Sbapt # So we just punt and use a minimum line length of 8192. 4793247738Sbapt lt_cv_sys_max_cmd_len=8192; 4794247738Sbapt ;; 4795247738Sbapt 4796247738Sbapt netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4797247738Sbapt # This has been around since 386BSD, at least. Likely further. 4798247738Sbapt if test -x /sbin/sysctl; then 4799247738Sbapt lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4800247738Sbapt elif test -x /usr/sbin/sysctl; then 4801247738Sbapt lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4802247738Sbapt else 4803247738Sbapt lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4804247738Sbapt fi 4805247738Sbapt # And add a safety zone 4806247738Sbapt lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4807247738Sbapt lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4808247738Sbapt ;; 4809247738Sbapt 4810247738Sbapt interix*) 4811247738Sbapt # We know the value 262144 and hardcode it with a safety zone (like BSD) 4812247738Sbapt lt_cv_sys_max_cmd_len=196608 4813247738Sbapt ;; 4814247738Sbapt 4815247738Sbapt osf*) 4816247738Sbapt # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4817247738Sbapt # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4818247738Sbapt # nice to cause kernel panics so lets avoid the loop below. 4819247738Sbapt # First set a reasonable default. 4820247738Sbapt lt_cv_sys_max_cmd_len=16384 4821247738Sbapt # 4822247738Sbapt if test -x /sbin/sysconfig; then 4823247738Sbapt case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4824247738Sbapt *1*) lt_cv_sys_max_cmd_len=-1 ;; 4825247738Sbapt esac 4826247738Sbapt fi 4827247738Sbapt ;; 4828247738Sbapt sco3.2v5*) 4829247738Sbapt lt_cv_sys_max_cmd_len=102400 4830247738Sbapt ;; 4831247738Sbapt sysv5* | sco5v6* | sysv4.2uw2*) 4832247738Sbapt kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4833247738Sbapt if test -n "$kargmax"; then 4834247738Sbapt lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4835247738Sbapt else 4836247738Sbapt lt_cv_sys_max_cmd_len=32768 4837247738Sbapt fi 4838247738Sbapt ;; 4839247738Sbapt *) 4840247738Sbapt lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4841247738Sbapt if test -n "$lt_cv_sys_max_cmd_len"; then 4842247738Sbapt lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4843247738Sbapt lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4844247738Sbapt else 4845247738Sbapt # Make teststring a little bigger before we do anything with it. 4846247738Sbapt # a 1K string should be a reasonable start. 4847247738Sbapt for i in 1 2 3 4 5 6 7 8 ; do 4848247738Sbapt teststring=$teststring$teststring 4849247738Sbapt done 4850247738Sbapt SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4851247738Sbapt # If test is not a shell built-in, we'll probably end up computing a 4852247738Sbapt # maximum length that is only half of the actual maximum length, but 4853247738Sbapt # we can't tell. 4854247738Sbapt while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4855247738Sbapt = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4856247738Sbapt test $i != 17 # 1/2 MB should be enough 4857247738Sbapt do 4858247738Sbapt i=`expr $i + 1` 4859247738Sbapt teststring=$teststring$teststring 4860247738Sbapt done 4861247738Sbapt # Only check the string length outside the loop. 4862247738Sbapt lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4863247738Sbapt teststring= 4864247738Sbapt # Add a significant safety factor because C++ compilers can tack on 4865247738Sbapt # massive amounts of additional arguments before passing them to the 4866247738Sbapt # linker. It appears as though 1/2 is a usable value. 4867247738Sbapt lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4868247738Sbapt fi 4869247738Sbapt ;; 4870247738Sbapt esac 4871247738Sbapt 4872247738Sbaptfi 4873247738Sbapt 4874247738Sbaptif test -n $lt_cv_sys_max_cmd_len ; then 4875247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4876247738Sbapt$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4877247738Sbaptelse 4878247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4879247738Sbapt$as_echo "none" >&6; } 4880247738Sbaptfi 4881247738Sbaptmax_cmd_len=$lt_cv_sys_max_cmd_len 4882247738Sbapt 4883247738Sbapt 4884247738Sbapt 4885247738Sbapt 4886247738Sbapt 4887247738Sbapt 4888247738Sbapt: ${CP="cp -f"} 4889247738Sbapt: ${MV="mv -f"} 4890247738Sbapt: ${RM="rm -f"} 4891247738Sbapt 4892247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4893247738Sbapt$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4894247738Sbapt# Try some XSI features 4895247738Sbaptxsi_shell=no 4896247738Sbapt( _lt_dummy="a/b/c" 4897247738Sbapt test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4898247738Sbapt = c,a/b,, \ 4899247738Sbapt && eval 'test $(( 1 + 1 )) -eq 2 \ 4900247738Sbapt && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4901247738Sbapt && xsi_shell=yes 4902247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4903247738Sbapt$as_echo "$xsi_shell" >&6; } 4904247738Sbapt 4905247738Sbapt 4906247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4907247738Sbapt$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4908247738Sbaptlt_shell_append=no 4909247738Sbapt( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4910247738Sbapt >/dev/null 2>&1 \ 4911247738Sbapt && lt_shell_append=yes 4912247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4913247738Sbapt$as_echo "$lt_shell_append" >&6; } 4914247738Sbapt 4915247738Sbapt 4916247738Sbaptif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4917247738Sbapt lt_unset=unset 4918247738Sbaptelse 4919247738Sbapt lt_unset=false 4920247738Sbaptfi 4921247738Sbapt 4922247738Sbapt 4923247738Sbapt 4924247738Sbapt 4925247738Sbapt 4926247738Sbapt# test EBCDIC or ASCII 4927247738Sbaptcase `echo X|tr X '\101'` in 4928247738Sbapt A) # ASCII based system 4929247738Sbapt # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4930247738Sbapt lt_SP2NL='tr \040 \012' 4931247738Sbapt lt_NL2SP='tr \015\012 \040\040' 4932247738Sbapt ;; 4933247738Sbapt *) # EBCDIC based system 4934247738Sbapt lt_SP2NL='tr \100 \n' 4935247738Sbapt lt_NL2SP='tr \r\n \100\100' 4936247738Sbapt ;; 4937247738Sbaptesac 4938247738Sbapt 4939247738Sbapt 4940247738Sbapt 4941247738Sbapt 4942247738Sbapt 4943247738Sbapt 4944247738Sbapt 4945247738Sbapt 4946247738Sbapt 4947247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4948247738Sbapt$as_echo_n "checking for $LD option to reload object files... " >&6; } 4949247738Sbaptif test "${lt_cv_ld_reload_flag+set}" = set; then : 4950247738Sbapt $as_echo_n "(cached) " >&6 4951247738Sbaptelse 4952247738Sbapt lt_cv_ld_reload_flag='-r' 4953247738Sbaptfi 4954247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4955247738Sbapt$as_echo "$lt_cv_ld_reload_flag" >&6; } 4956247738Sbaptreload_flag=$lt_cv_ld_reload_flag 4957247738Sbaptcase $reload_flag in 4958247738Sbapt"" | " "*) ;; 4959247738Sbapt*) reload_flag=" $reload_flag" ;; 4960247738Sbaptesac 4961247738Sbaptreload_cmds='$LD$reload_flag -o $output$reload_objs' 4962247738Sbaptcase $host_os in 4963247738Sbapt darwin*) 4964247738Sbapt if test "$GCC" = yes; then 4965247738Sbapt reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4966247738Sbapt else 4967247738Sbapt reload_cmds='$LD$reload_flag -o $output$reload_objs' 4968247738Sbapt fi 4969247738Sbapt ;; 4970247738Sbaptesac 4971247738Sbapt 4972247738Sbapt 4973247738Sbapt 4974247738Sbapt 4975247738Sbapt 4976247738Sbapt 4977247738Sbapt 4978247738Sbapt 4979247738Sbapt 4980247738Sbaptif test -n "$ac_tool_prefix"; then 4981247738Sbapt # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4982247738Sbaptset dummy ${ac_tool_prefix}objdump; ac_word=$2 4983247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4984247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 4985247738Sbaptif test "${ac_cv_prog_OBJDUMP+set}" = set; then : 4986247738Sbapt $as_echo_n "(cached) " >&6 4987247738Sbaptelse 4988247738Sbapt if test -n "$OBJDUMP"; then 4989247738Sbapt ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4990247738Sbaptelse 4991247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4992247738Sbaptfor as_dir in $PATH 4993247738Sbaptdo 4994247738Sbapt IFS=$as_save_IFS 4995247738Sbapt test -z "$as_dir" && as_dir=. 4996247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 4997247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4998247738Sbapt ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4999247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5000247738Sbapt break 2 5001247738Sbapt fi 5002247738Sbaptdone 5003247738Sbapt done 5004247738SbaptIFS=$as_save_IFS 5005247738Sbapt 5006247738Sbaptfi 5007247738Sbaptfi 5008247738SbaptOBJDUMP=$ac_cv_prog_OBJDUMP 5009247738Sbaptif test -n "$OBJDUMP"; then 5010247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5011247738Sbapt$as_echo "$OBJDUMP" >&6; } 5012247738Sbaptelse 5013247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5014247738Sbapt$as_echo "no" >&6; } 5015247738Sbaptfi 5016247738Sbapt 5017247738Sbapt 5018247738Sbaptfi 5019247738Sbaptif test -z "$ac_cv_prog_OBJDUMP"; then 5020247738Sbapt ac_ct_OBJDUMP=$OBJDUMP 5021247738Sbapt # Extract the first word of "objdump", so it can be a program name with args. 5022247738Sbaptset dummy objdump; ac_word=$2 5023247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5024247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 5025247738Sbaptif test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5026247738Sbapt $as_echo_n "(cached) " >&6 5027247738Sbaptelse 5028247738Sbapt if test -n "$ac_ct_OBJDUMP"; then 5029247738Sbapt ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5030247738Sbaptelse 5031247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5032247738Sbaptfor as_dir in $PATH 5033247738Sbaptdo 5034247738Sbapt IFS=$as_save_IFS 5035247738Sbapt test -z "$as_dir" && as_dir=. 5036247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 5037247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5038247738Sbapt ac_cv_prog_ac_ct_OBJDUMP="objdump" 5039247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5040247738Sbapt break 2 5041247738Sbapt fi 5042247738Sbaptdone 5043247738Sbapt done 5044247738SbaptIFS=$as_save_IFS 5045247738Sbapt 5046247738Sbaptfi 5047247738Sbaptfi 5048247738Sbaptac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5049247738Sbaptif test -n "$ac_ct_OBJDUMP"; then 5050247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5051247738Sbapt$as_echo "$ac_ct_OBJDUMP" >&6; } 5052247738Sbaptelse 5053247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5054247738Sbapt$as_echo "no" >&6; } 5055247738Sbaptfi 5056247738Sbapt 5057247738Sbapt if test "x$ac_ct_OBJDUMP" = x; then 5058247738Sbapt OBJDUMP="false" 5059247738Sbapt else 5060247738Sbapt case $cross_compiling:$ac_tool_warned in 5061247738Sbaptyes:) 5062247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5063247738Sbapt$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5064247738Sbaptac_tool_warned=yes ;; 5065247738Sbaptesac 5066247738Sbapt OBJDUMP=$ac_ct_OBJDUMP 5067247738Sbapt fi 5068247738Sbaptelse 5069247738Sbapt OBJDUMP="$ac_cv_prog_OBJDUMP" 5070247738Sbaptfi 5071247738Sbapt 5072247738Sbapttest -z "$OBJDUMP" && OBJDUMP=objdump 5073247738Sbapt 5074247738Sbapt 5075247738Sbapt 5076247738Sbapt 5077247738Sbapt 5078247738Sbapt 5079247738Sbapt 5080247738Sbapt 5081247738Sbapt 5082247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5083247738Sbapt$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5084247738Sbaptif test "${lt_cv_deplibs_check_method+set}" = set; then : 5085247738Sbapt $as_echo_n "(cached) " >&6 5086247738Sbaptelse 5087247738Sbapt lt_cv_file_magic_cmd='$MAGIC_CMD' 5088247738Sbaptlt_cv_file_magic_test_file= 5089247738Sbaptlt_cv_deplibs_check_method='unknown' 5090247738Sbapt# Need to set the preceding variable on all platforms that support 5091247738Sbapt# interlibrary dependencies. 5092247738Sbapt# 'none' -- dependencies not supported. 5093247738Sbapt# `unknown' -- same as none, but documents that we really don't know. 5094247738Sbapt# 'pass_all' -- all dependencies passed with no checks. 5095247738Sbapt# 'test_compile' -- check by making test program. 5096247738Sbapt# 'file_magic [[regex]]' -- check by looking for files in library path 5097247738Sbapt# which responds to the $file_magic_cmd with a given extended regex. 5098247738Sbapt# If you have `file' or equivalent on your system and you're not sure 5099247738Sbapt# whether `pass_all' will *always* work, you probably want this one. 5100247738Sbapt 5101247738Sbaptcase $host_os in 5102247738Sbaptaix[4-9]*) 5103247738Sbapt lt_cv_deplibs_check_method=pass_all 5104247738Sbapt ;; 5105247738Sbapt 5106247738Sbaptbeos*) 5107247738Sbapt lt_cv_deplibs_check_method=pass_all 5108247738Sbapt ;; 5109247738Sbapt 5110247738Sbaptbsdi[45]*) 5111247738Sbapt lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5112247738Sbapt lt_cv_file_magic_cmd='/usr/bin/file -L' 5113247738Sbapt lt_cv_file_magic_test_file=/shlib/libc.so 5114247738Sbapt ;; 5115247738Sbapt 5116247738Sbaptcygwin*) 5117247738Sbapt # func_win32_libid is a shell function defined in ltmain.sh 5118247738Sbapt lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5119247738Sbapt lt_cv_file_magic_cmd='func_win32_libid' 5120247738Sbapt ;; 5121247738Sbapt 5122247738Sbaptmingw* | pw32*) 5123247738Sbapt # Base MSYS/MinGW do not provide the 'file' command needed by 5124247738Sbapt # func_win32_libid shell function, so use a weaker test based on 'objdump', 5125247738Sbapt # unless we find 'file', for example because we are cross-compiling. 5126247738Sbapt if ( file / ) >/dev/null 2>&1; then 5127247738Sbapt lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5128247738Sbapt lt_cv_file_magic_cmd='func_win32_libid' 5129247738Sbapt else 5130247738Sbapt lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5131247738Sbapt lt_cv_file_magic_cmd='$OBJDUMP -f' 5132247738Sbapt fi 5133247738Sbapt ;; 5134247738Sbapt 5135247738Sbaptcegcc) 5136247738Sbapt # use the weaker test based on 'objdump'. See mingw*. 5137247738Sbapt lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5138247738Sbapt lt_cv_file_magic_cmd='$OBJDUMP -f' 5139247738Sbapt ;; 5140247738Sbapt 5141247738Sbaptdarwin* | rhapsody*) 5142247738Sbapt lt_cv_deplibs_check_method=pass_all 5143247738Sbapt ;; 5144247738Sbapt 5145247738Sbaptfreebsd* | dragonfly*) 5146247738Sbapt if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5147247738Sbapt case $host_cpu in 5148247738Sbapt i*86 ) 5149247738Sbapt # Not sure whether the presence of OpenBSD here was a mistake. 5150247738Sbapt # Let's accept both of them until this is cleared up. 5151247738Sbapt lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5152247738Sbapt lt_cv_file_magic_cmd=/usr/bin/file 5153247738Sbapt lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5154247738Sbapt ;; 5155247738Sbapt esac 5156247738Sbapt else 5157247738Sbapt lt_cv_deplibs_check_method=pass_all 5158247738Sbapt fi 5159247738Sbapt ;; 5160247738Sbapt 5161247738Sbaptgnu*) 5162247738Sbapt lt_cv_deplibs_check_method=pass_all 5163247738Sbapt ;; 5164247738Sbapt 5165247738Sbapthpux10.20* | hpux11*) 5166247738Sbapt lt_cv_file_magic_cmd=/usr/bin/file 5167247738Sbapt case $host_cpu in 5168247738Sbapt ia64*) 5169247738Sbapt lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5170247738Sbapt lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5171247738Sbapt ;; 5172247738Sbapt hppa*64*) 5173247738Sbapt lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 5174247738Sbapt lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5175247738Sbapt ;; 5176247738Sbapt *) 5177247738Sbapt lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5178247738Sbapt lt_cv_file_magic_test_file=/usr/lib/libc.sl 5179247738Sbapt ;; 5180247738Sbapt esac 5181247738Sbapt ;; 5182247738Sbapt 5183247738Sbaptinterix[3-9]*) 5184247738Sbapt # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5185247738Sbapt lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5186247738Sbapt ;; 5187247738Sbapt 5188247738Sbaptirix5* | irix6* | nonstopux*) 5189247738Sbapt case $LD in 5190247738Sbapt *-32|*"-32 ") libmagic=32-bit;; 5191247738Sbapt *-n32|*"-n32 ") libmagic=N32;; 5192247738Sbapt *-64|*"-64 ") libmagic=64-bit;; 5193247738Sbapt *) libmagic=never-match;; 5194247738Sbapt esac 5195247738Sbapt lt_cv_deplibs_check_method=pass_all 5196247738Sbapt ;; 5197247738Sbapt 5198247738Sbapt# This must be Linux ELF. 5199247738Sbaptlinux* | k*bsd*-gnu | kopensolaris*-gnu) 5200247738Sbapt lt_cv_deplibs_check_method=pass_all 5201247738Sbapt ;; 5202247738Sbapt 5203247738Sbaptnetbsd* | netbsdelf*-gnu) 5204247738Sbapt if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5205247738Sbapt lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5206247738Sbapt else 5207247738Sbapt lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5208247738Sbapt fi 5209247738Sbapt ;; 5210247738Sbapt 5211247738Sbaptnewos6*) 5212247738Sbapt lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5213247738Sbapt lt_cv_file_magic_cmd=/usr/bin/file 5214247738Sbapt lt_cv_file_magic_test_file=/usr/lib/libnls.so 5215247738Sbapt ;; 5216247738Sbapt 5217247738Sbapt*nto* | *qnx*) 5218247738Sbapt lt_cv_deplibs_check_method=pass_all 5219247738Sbapt ;; 5220247738Sbapt 5221247738Sbaptopenbsd*) 5222247738Sbapt if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5223247738Sbapt lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5224247738Sbapt else 5225247738Sbapt lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5226247738Sbapt fi 5227247738Sbapt ;; 5228247738Sbapt 5229247738Sbaptosf3* | osf4* | osf5*) 5230247738Sbapt lt_cv_deplibs_check_method=pass_all 5231247738Sbapt ;; 5232247738Sbapt 5233247738Sbaptrdos*) 5234247738Sbapt lt_cv_deplibs_check_method=pass_all 5235247738Sbapt ;; 5236247738Sbapt 5237247738Sbaptsolaris*) 5238247738Sbapt lt_cv_deplibs_check_method=pass_all 5239247738Sbapt ;; 5240247738Sbapt 5241247738Sbaptsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5242247738Sbapt lt_cv_deplibs_check_method=pass_all 5243247738Sbapt ;; 5244247738Sbapt 5245247738Sbaptsysv4 | sysv4.3*) 5246247738Sbapt case $host_vendor in 5247247738Sbapt motorola) 5248247738Sbapt 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]' 5249247738Sbapt lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5250247738Sbapt ;; 5251247738Sbapt ncr) 5252247738Sbapt lt_cv_deplibs_check_method=pass_all 5253247738Sbapt ;; 5254247738Sbapt sequent) 5255247738Sbapt lt_cv_file_magic_cmd='/bin/file' 5256247738Sbapt lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5257247738Sbapt ;; 5258247738Sbapt sni) 5259247738Sbapt lt_cv_file_magic_cmd='/bin/file' 5260247738Sbapt lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5261247738Sbapt lt_cv_file_magic_test_file=/lib/libc.so 5262247738Sbapt ;; 5263247738Sbapt siemens) 5264247738Sbapt lt_cv_deplibs_check_method=pass_all 5265247738Sbapt ;; 5266247738Sbapt pc) 5267247738Sbapt lt_cv_deplibs_check_method=pass_all 5268247738Sbapt ;; 5269247738Sbapt esac 5270247738Sbapt ;; 5271247738Sbapt 5272247738Sbapttpf*) 5273247738Sbapt lt_cv_deplibs_check_method=pass_all 5274247738Sbapt ;; 5275247738Sbaptesac 5276247738Sbapt 5277247738Sbaptfi 5278247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5279247738Sbapt$as_echo "$lt_cv_deplibs_check_method" >&6; } 5280247738Sbaptfile_magic_cmd=$lt_cv_file_magic_cmd 5281247738Sbaptdeplibs_check_method=$lt_cv_deplibs_check_method 5282247738Sbapttest -z "$deplibs_check_method" && deplibs_check_method=unknown 5283247738Sbapt 5284247738Sbapt 5285247738Sbapt 5286247738Sbapt 5287247738Sbapt 5288247738Sbapt 5289247738Sbapt 5290247738Sbapt 5291247738Sbapt 5292247738Sbapt 5293247738Sbapt 5294247738Sbapt 5295247738Sbaptif test -n "$ac_tool_prefix"; then 5296247738Sbapt # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5297247738Sbaptset dummy ${ac_tool_prefix}ar; ac_word=$2 5298247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5299247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 5300247738Sbaptif test "${ac_cv_prog_AR+set}" = set; then : 5301247738Sbapt $as_echo_n "(cached) " >&6 5302247738Sbaptelse 5303247738Sbapt if test -n "$AR"; then 5304247738Sbapt ac_cv_prog_AR="$AR" # Let the user override the test. 5305247738Sbaptelse 5306247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5307247738Sbaptfor as_dir in $PATH 5308247738Sbaptdo 5309247738Sbapt IFS=$as_save_IFS 5310247738Sbapt test -z "$as_dir" && as_dir=. 5311247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 5312247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5313247738Sbapt ac_cv_prog_AR="${ac_tool_prefix}ar" 5314247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5315247738Sbapt break 2 5316247738Sbapt fi 5317247738Sbaptdone 5318247738Sbapt done 5319247738SbaptIFS=$as_save_IFS 5320247738Sbapt 5321247738Sbaptfi 5322247738Sbaptfi 5323247738SbaptAR=$ac_cv_prog_AR 5324247738Sbaptif test -n "$AR"; then 5325247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5326247738Sbapt$as_echo "$AR" >&6; } 5327247738Sbaptelse 5328247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5329247738Sbapt$as_echo "no" >&6; } 5330247738Sbaptfi 5331247738Sbapt 5332247738Sbapt 5333247738Sbaptfi 5334247738Sbaptif test -z "$ac_cv_prog_AR"; then 5335247738Sbapt ac_ct_AR=$AR 5336247738Sbapt # Extract the first word of "ar", so it can be a program name with args. 5337247738Sbaptset dummy ar; ac_word=$2 5338247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5339247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 5340247738Sbaptif test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5341247738Sbapt $as_echo_n "(cached) " >&6 5342247738Sbaptelse 5343247738Sbapt if test -n "$ac_ct_AR"; then 5344247738Sbapt ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5345247738Sbaptelse 5346247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5347247738Sbaptfor as_dir in $PATH 5348247738Sbaptdo 5349247738Sbapt IFS=$as_save_IFS 5350247738Sbapt test -z "$as_dir" && as_dir=. 5351247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 5352247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5353247738Sbapt ac_cv_prog_ac_ct_AR="ar" 5354247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5355247738Sbapt break 2 5356247738Sbapt fi 5357247738Sbaptdone 5358247738Sbapt done 5359247738SbaptIFS=$as_save_IFS 5360247738Sbapt 5361247738Sbaptfi 5362247738Sbaptfi 5363247738Sbaptac_ct_AR=$ac_cv_prog_ac_ct_AR 5364247738Sbaptif test -n "$ac_ct_AR"; then 5365247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5366247738Sbapt$as_echo "$ac_ct_AR" >&6; } 5367247738Sbaptelse 5368247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5369247738Sbapt$as_echo "no" >&6; } 5370247738Sbaptfi 5371247738Sbapt 5372247738Sbapt if test "x$ac_ct_AR" = x; then 5373247738Sbapt AR="false" 5374247738Sbapt else 5375247738Sbapt case $cross_compiling:$ac_tool_warned in 5376247738Sbaptyes:) 5377247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5378247738Sbapt$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5379247738Sbaptac_tool_warned=yes ;; 5380247738Sbaptesac 5381247738Sbapt AR=$ac_ct_AR 5382247738Sbapt fi 5383247738Sbaptelse 5384247738Sbapt AR="$ac_cv_prog_AR" 5385247738Sbaptfi 5386247738Sbapt 5387247738Sbapttest -z "$AR" && AR=ar 5388247738Sbapttest -z "$AR_FLAGS" && AR_FLAGS=cru 5389247738Sbapt 5390247738Sbapt 5391247738Sbapt 5392247738Sbapt 5393247738Sbapt 5394247738Sbapt 5395247738Sbapt 5396247738Sbapt 5397247738Sbapt 5398247738Sbapt 5399247738Sbapt 5400247738Sbaptif test -n "$ac_tool_prefix"; then 5401247738Sbapt # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5402247738Sbaptset dummy ${ac_tool_prefix}strip; ac_word=$2 5403247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5404247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 5405247738Sbaptif test "${ac_cv_prog_STRIP+set}" = set; then : 5406247738Sbapt $as_echo_n "(cached) " >&6 5407247738Sbaptelse 5408247738Sbapt if test -n "$STRIP"; then 5409247738Sbapt ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5410247738Sbaptelse 5411247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5412247738Sbaptfor as_dir in $PATH 5413247738Sbaptdo 5414247738Sbapt IFS=$as_save_IFS 5415247738Sbapt test -z "$as_dir" && as_dir=. 5416247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 5417247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5418247738Sbapt ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5419247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5420247738Sbapt break 2 5421247738Sbapt fi 5422247738Sbaptdone 5423247738Sbapt done 5424247738SbaptIFS=$as_save_IFS 5425247738Sbapt 5426247738Sbaptfi 5427247738Sbaptfi 5428247738SbaptSTRIP=$ac_cv_prog_STRIP 5429247738Sbaptif test -n "$STRIP"; then 5430247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5431247738Sbapt$as_echo "$STRIP" >&6; } 5432247738Sbaptelse 5433247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5434247738Sbapt$as_echo "no" >&6; } 5435247738Sbaptfi 5436247738Sbapt 5437247738Sbapt 5438247738Sbaptfi 5439247738Sbaptif test -z "$ac_cv_prog_STRIP"; then 5440247738Sbapt ac_ct_STRIP=$STRIP 5441247738Sbapt # Extract the first word of "strip", so it can be a program name with args. 5442247738Sbaptset dummy strip; ac_word=$2 5443247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5444247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 5445247738Sbaptif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 5446247738Sbapt $as_echo_n "(cached) " >&6 5447247738Sbaptelse 5448247738Sbapt if test -n "$ac_ct_STRIP"; then 5449247738Sbapt ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5450247738Sbaptelse 5451247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5452247738Sbaptfor as_dir in $PATH 5453247738Sbaptdo 5454247738Sbapt IFS=$as_save_IFS 5455247738Sbapt test -z "$as_dir" && as_dir=. 5456247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 5457247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5458247738Sbapt ac_cv_prog_ac_ct_STRIP="strip" 5459247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5460247738Sbapt break 2 5461247738Sbapt fi 5462247738Sbaptdone 5463247738Sbapt done 5464247738SbaptIFS=$as_save_IFS 5465247738Sbapt 5466247738Sbaptfi 5467247738Sbaptfi 5468247738Sbaptac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5469247738Sbaptif test -n "$ac_ct_STRIP"; then 5470247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5471247738Sbapt$as_echo "$ac_ct_STRIP" >&6; } 5472247738Sbaptelse 5473247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5474247738Sbapt$as_echo "no" >&6; } 5475247738Sbaptfi 5476247738Sbapt 5477247738Sbapt if test "x$ac_ct_STRIP" = x; then 5478247738Sbapt STRIP=":" 5479247738Sbapt else 5480247738Sbapt case $cross_compiling:$ac_tool_warned in 5481247738Sbaptyes:) 5482247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5483247738Sbapt$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5484247738Sbaptac_tool_warned=yes ;; 5485247738Sbaptesac 5486247738Sbapt STRIP=$ac_ct_STRIP 5487247738Sbapt fi 5488247738Sbaptelse 5489247738Sbapt STRIP="$ac_cv_prog_STRIP" 5490247738Sbaptfi 5491247738Sbapt 5492247738Sbapttest -z "$STRIP" && STRIP=: 5493247738Sbapt 5494247738Sbapt 5495247738Sbapt 5496247738Sbapt 5497247738Sbapt 5498247738Sbapt 5499247738Sbaptif test -n "$ac_tool_prefix"; then 5500247738Sbapt # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5501247738Sbaptset dummy ${ac_tool_prefix}ranlib; ac_word=$2 5502247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5503247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 5504247738Sbaptif test "${ac_cv_prog_RANLIB+set}" = set; then : 5505247738Sbapt $as_echo_n "(cached) " >&6 5506247738Sbaptelse 5507247738Sbapt if test -n "$RANLIB"; then 5508247738Sbapt ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5509247738Sbaptelse 5510247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5511247738Sbaptfor as_dir in $PATH 5512247738Sbaptdo 5513247738Sbapt IFS=$as_save_IFS 5514247738Sbapt test -z "$as_dir" && as_dir=. 5515247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 5516247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5517247738Sbapt ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5518247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5519247738Sbapt break 2 5520247738Sbapt fi 5521247738Sbaptdone 5522247738Sbapt done 5523247738SbaptIFS=$as_save_IFS 5524247738Sbapt 5525247738Sbaptfi 5526247738Sbaptfi 5527247738SbaptRANLIB=$ac_cv_prog_RANLIB 5528247738Sbaptif test -n "$RANLIB"; then 5529247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5530247738Sbapt$as_echo "$RANLIB" >&6; } 5531247738Sbaptelse 5532247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5533247738Sbapt$as_echo "no" >&6; } 5534247738Sbaptfi 5535247738Sbapt 5536247738Sbapt 5537247738Sbaptfi 5538247738Sbaptif test -z "$ac_cv_prog_RANLIB"; then 5539247738Sbapt ac_ct_RANLIB=$RANLIB 5540247738Sbapt # Extract the first word of "ranlib", so it can be a program name with args. 5541247738Sbaptset dummy ranlib; ac_word=$2 5542247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5543247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 5544247738Sbaptif test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5545247738Sbapt $as_echo_n "(cached) " >&6 5546247738Sbaptelse 5547247738Sbapt if test -n "$ac_ct_RANLIB"; then 5548247738Sbapt ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5549247738Sbaptelse 5550247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5551247738Sbaptfor as_dir in $PATH 5552247738Sbaptdo 5553247738Sbapt IFS=$as_save_IFS 5554247738Sbapt test -z "$as_dir" && as_dir=. 5555247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 5556247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5557247738Sbapt ac_cv_prog_ac_ct_RANLIB="ranlib" 5558247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5559247738Sbapt break 2 5560247738Sbapt fi 5561247738Sbaptdone 5562247738Sbapt done 5563247738SbaptIFS=$as_save_IFS 5564247738Sbapt 5565247738Sbaptfi 5566247738Sbaptfi 5567247738Sbaptac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5568247738Sbaptif test -n "$ac_ct_RANLIB"; then 5569247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5570247738Sbapt$as_echo "$ac_ct_RANLIB" >&6; } 5571247738Sbaptelse 5572247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5573247738Sbapt$as_echo "no" >&6; } 5574247738Sbaptfi 5575247738Sbapt 5576247738Sbapt if test "x$ac_ct_RANLIB" = x; then 5577247738Sbapt RANLIB=":" 5578247738Sbapt else 5579247738Sbapt case $cross_compiling:$ac_tool_warned in 5580247738Sbaptyes:) 5581247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5582247738Sbapt$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5583247738Sbaptac_tool_warned=yes ;; 5584247738Sbaptesac 5585247738Sbapt RANLIB=$ac_ct_RANLIB 5586247738Sbapt fi 5587247738Sbaptelse 5588247738Sbapt RANLIB="$ac_cv_prog_RANLIB" 5589247738Sbaptfi 5590247738Sbapt 5591247738Sbapttest -z "$RANLIB" && RANLIB=: 5592247738Sbapt 5593247738Sbapt 5594247738Sbapt 5595247738Sbapt 5596247738Sbapt 5597247738Sbapt 5598247738Sbapt# Determine commands to create old-style static archives. 5599247738Sbaptold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5600247738Sbaptold_postinstall_cmds='chmod 644 $oldlib' 5601247738Sbaptold_postuninstall_cmds= 5602247738Sbapt 5603247738Sbaptif test -n "$RANLIB"; then 5604247738Sbapt case $host_os in 5605247738Sbapt openbsd*) 5606247738Sbapt old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5607247738Sbapt ;; 5608247738Sbapt *) 5609247738Sbapt old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5610247738Sbapt ;; 5611247738Sbapt esac 5612247738Sbapt old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5613247738Sbaptfi 5614247738Sbapt 5615247738Sbapt 5616247738Sbapt 5617247738Sbapt 5618247738Sbapt 5619247738Sbapt 5620247738Sbapt 5621247738Sbapt 5622247738Sbapt 5623247738Sbapt 5624247738Sbapt 5625247738Sbapt 5626247738Sbapt 5627247738Sbapt 5628247738Sbapt 5629247738Sbapt 5630247738Sbapt 5631247738Sbapt 5632247738Sbapt 5633247738Sbapt 5634247738Sbapt 5635247738Sbapt 5636247738Sbapt 5637247738Sbapt 5638247738Sbapt 5639247738Sbapt 5640247738Sbapt 5641247738Sbapt 5642247738Sbapt 5643247738Sbapt 5644247738Sbapt 5645247738Sbapt 5646247738Sbapt 5647247738Sbapt 5648247738Sbapt# If no C compiler was specified, use CC. 5649247738SbaptLTCC=${LTCC-"$CC"} 5650247738Sbapt 5651247738Sbapt# If no C compiler flags were specified, use CFLAGS. 5652247738SbaptLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5653247738Sbapt 5654247738Sbapt# Allow CC to be a program name with arguments. 5655247738Sbaptcompiler=$CC 5656247738Sbapt 5657247738Sbapt 5658247738Sbapt# Check for command to grab the raw symbol name followed by C symbol from nm. 5659247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5660247738Sbapt$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5661247738Sbaptif test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 5662247738Sbapt $as_echo_n "(cached) " >&6 5663247738Sbaptelse 5664247738Sbapt 5665247738Sbapt# These are sane defaults that work on at least a few old systems. 5666247738Sbapt# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5667247738Sbapt 5668247738Sbapt# Character class describing NM global symbol codes. 5669247738Sbaptsymcode='[BCDEGRST]' 5670247738Sbapt 5671247738Sbapt# Regexp to match symbols that can be accessed directly from C. 5672247738Sbaptsympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5673247738Sbapt 5674247738Sbapt# Define system-specific variables. 5675247738Sbaptcase $host_os in 5676247738Sbaptaix*) 5677247738Sbapt symcode='[BCDT]' 5678247738Sbapt ;; 5679247738Sbaptcygwin* | mingw* | pw32* | cegcc*) 5680247738Sbapt symcode='[ABCDGISTW]' 5681247738Sbapt ;; 5682247738Sbapthpux*) 5683247738Sbapt if test "$host_cpu" = ia64; then 5684247738Sbapt symcode='[ABCDEGRST]' 5685247738Sbapt fi 5686247738Sbapt ;; 5687247738Sbaptirix* | nonstopux*) 5688247738Sbapt symcode='[BCDEGRST]' 5689247738Sbapt ;; 5690247738Sbaptosf*) 5691247738Sbapt symcode='[BCDEGQRST]' 5692247738Sbapt ;; 5693247738Sbaptsolaris*) 5694247738Sbapt symcode='[BDRT]' 5695247738Sbapt ;; 5696247738Sbaptsco3.2v5*) 5697247738Sbapt symcode='[DT]' 5698247738Sbapt ;; 5699247738Sbaptsysv4.2uw2*) 5700247738Sbapt symcode='[DT]' 5701247738Sbapt ;; 5702247738Sbaptsysv5* | sco5v6* | unixware* | OpenUNIX*) 5703247738Sbapt symcode='[ABDT]' 5704247738Sbapt ;; 5705247738Sbaptsysv4) 5706247738Sbapt symcode='[DFNSTU]' 5707247738Sbapt ;; 5708247738Sbaptesac 5709247738Sbapt 5710247738Sbapt# If we're using GNU nm, then use its standard symbol codes. 5711247738Sbaptcase `$NM -V 2>&1` in 5712247738Sbapt*GNU* | *'with BFD'*) 5713247738Sbapt symcode='[ABCDGIRSTW]' ;; 5714247738Sbaptesac 5715247738Sbapt 5716247738Sbapt# Transform an extracted symbol line into a proper C declaration. 5717247738Sbapt# Some systems (esp. on ia64) link data and code symbols differently, 5718247738Sbapt# so use this general approach. 5719247738Sbaptlt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5720247738Sbapt 5721247738Sbapt# Transform an extracted symbol line into symbol name and symbol address 5722247738Sbaptlt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5723247738Sbaptlt_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'" 5724247738Sbapt 5725247738Sbapt# Handle CRLF in mingw tool chain 5726247738Sbaptopt_cr= 5727247738Sbaptcase $build_os in 5728247738Sbaptmingw*) 5729247738Sbapt opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5730247738Sbapt ;; 5731247738Sbaptesac 5732247738Sbapt 5733247738Sbapt# Try without a prefix underscore, then with it. 5734247738Sbaptfor ac_symprfx in "" "_"; do 5735247738Sbapt 5736247738Sbapt # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5737247738Sbapt symxfrm="\\1 $ac_symprfx\\2 \\2" 5738247738Sbapt 5739247738Sbapt # Write the raw and C identifiers. 5740247738Sbapt if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5741247738Sbapt # Fake it for dumpbin and say T for any non-static function 5742247738Sbapt # and D for any global variable. 5743247738Sbapt # Also find C++ and __fastcall symbols from MSVC++, 5744247738Sbapt # which start with @ or ?. 5745247738Sbapt lt_cv_sys_global_symbol_pipe="$AWK '"\ 5746247738Sbapt" {last_section=section; section=\$ 3};"\ 5747247738Sbapt" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5748247738Sbapt" \$ 0!~/External *\|/{next};"\ 5749247738Sbapt" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5750247738Sbapt" {if(hide[section]) next};"\ 5751247738Sbapt" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5752247738Sbapt" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5753247738Sbapt" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5754247738Sbapt" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5755247738Sbapt" ' prfx=^$ac_symprfx" 5756247738Sbapt else 5757247738Sbapt lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5758247738Sbapt fi 5759247738Sbapt 5760247738Sbapt # Check to see that the pipe works correctly. 5761247738Sbapt pipe_works=no 5762247738Sbapt 5763247738Sbapt rm -f conftest* 5764247738Sbapt cat > conftest.$ac_ext <<_LT_EOF 5765247738Sbapt#ifdef __cplusplus 5766247738Sbaptextern "C" { 5767247738Sbapt#endif 5768247738Sbaptchar nm_test_var; 5769247738Sbaptvoid nm_test_func(void); 5770247738Sbaptvoid nm_test_func(void){} 5771247738Sbapt#ifdef __cplusplus 5772247738Sbapt} 5773247738Sbapt#endif 5774247738Sbaptint main(){nm_test_var='a';nm_test_func();return(0);} 5775247738Sbapt_LT_EOF 5776247738Sbapt 5777247738Sbapt if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5778247738Sbapt (eval $ac_compile) 2>&5 5779247738Sbapt ac_status=$? 5780247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5781247738Sbapt test $ac_status = 0; }; then 5782247738Sbapt # Now try to grab the symbols. 5783247738Sbapt nlist=conftest.nm 5784247738Sbapt if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 5785247738Sbapt (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5786247738Sbapt ac_status=$? 5787247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5788247738Sbapt test $ac_status = 0; } && test -s "$nlist"; then 5789247738Sbapt # Try sorting and uniquifying the output. 5790247738Sbapt if sort "$nlist" | uniq > "$nlist"T; then 5791247738Sbapt mv -f "$nlist"T "$nlist" 5792247738Sbapt else 5793247738Sbapt rm -f "$nlist"T 5794247738Sbapt fi 5795247738Sbapt 5796247738Sbapt # Make sure that we snagged all the symbols we need. 5797247738Sbapt if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5798247738Sbapt if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5799247738Sbapt cat <<_LT_EOF > conftest.$ac_ext 5800247738Sbapt#ifdef __cplusplus 5801247738Sbaptextern "C" { 5802247738Sbapt#endif 5803247738Sbapt 5804247738Sbapt_LT_EOF 5805247738Sbapt # Now generate the symbol file. 5806247738Sbapt eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5807247738Sbapt 5808247738Sbapt cat <<_LT_EOF >> conftest.$ac_ext 5809247738Sbapt 5810247738Sbapt/* The mapping between symbol names and symbols. */ 5811247738Sbaptconst struct { 5812247738Sbapt const char *name; 5813247738Sbapt void *address; 5814247738Sbapt} 5815247738Sbaptlt__PROGRAM__LTX_preloaded_symbols[] = 5816247738Sbapt{ 5817247738Sbapt { "@PROGRAM@", (void *) 0 }, 5818247738Sbapt_LT_EOF 5819247738Sbapt $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5820247738Sbapt cat <<\_LT_EOF >> conftest.$ac_ext 5821247738Sbapt {0, (void *) 0} 5822247738Sbapt}; 5823247738Sbapt 5824247738Sbapt/* This works around a problem in FreeBSD linker */ 5825247738Sbapt#ifdef FREEBSD_WORKAROUND 5826247738Sbaptstatic const void *lt_preloaded_setup() { 5827247738Sbapt return lt__PROGRAM__LTX_preloaded_symbols; 5828247738Sbapt} 5829247738Sbapt#endif 5830247738Sbapt 5831247738Sbapt#ifdef __cplusplus 5832247738Sbapt} 5833247738Sbapt#endif 5834247738Sbapt_LT_EOF 5835247738Sbapt # Now try linking the two files. 5836247738Sbapt mv conftest.$ac_objext conftstm.$ac_objext 5837247738Sbapt lt_save_LIBS="$LIBS" 5838247738Sbapt lt_save_CFLAGS="$CFLAGS" 5839247738Sbapt LIBS="conftstm.$ac_objext" 5840247738Sbapt CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5841247738Sbapt if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5842247738Sbapt (eval $ac_link) 2>&5 5843247738Sbapt ac_status=$? 5844247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5845247738Sbapt test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5846247738Sbapt pipe_works=yes 5847247738Sbapt fi 5848247738Sbapt LIBS="$lt_save_LIBS" 5849247738Sbapt CFLAGS="$lt_save_CFLAGS" 5850247738Sbapt else 5851247738Sbapt echo "cannot find nm_test_func in $nlist" >&5 5852247738Sbapt fi 5853247738Sbapt else 5854247738Sbapt echo "cannot find nm_test_var in $nlist" >&5 5855247738Sbapt fi 5856247738Sbapt else 5857247738Sbapt echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5858247738Sbapt fi 5859247738Sbapt else 5860247738Sbapt echo "$progname: failed program was:" >&5 5861247738Sbapt cat conftest.$ac_ext >&5 5862247738Sbapt fi 5863247738Sbapt rm -rf conftest* conftst* 5864247738Sbapt 5865247738Sbapt # Do not use the global_symbol_pipe unless it works. 5866247738Sbapt if test "$pipe_works" = yes; then 5867247738Sbapt break 5868247738Sbapt else 5869247738Sbapt lt_cv_sys_global_symbol_pipe= 5870247738Sbapt fi 5871247738Sbaptdone 5872247738Sbapt 5873247738Sbaptfi 5874247738Sbapt 5875247738Sbaptif test -z "$lt_cv_sys_global_symbol_pipe"; then 5876247738Sbapt lt_cv_sys_global_symbol_to_cdecl= 5877247738Sbaptfi 5878247738Sbaptif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5879247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5880247738Sbapt$as_echo "failed" >&6; } 5881247738Sbaptelse 5882247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5883247738Sbapt$as_echo "ok" >&6; } 5884247738Sbaptfi 5885247738Sbapt 5886247738Sbapt 5887247738Sbapt 5888247738Sbapt 5889247738Sbapt 5890247738Sbapt 5891247738Sbapt 5892247738Sbapt 5893247738Sbapt 5894247738Sbapt 5895247738Sbapt 5896247738Sbapt 5897247738Sbapt 5898247738Sbapt 5899247738Sbapt 5900247738Sbapt 5901247738Sbapt 5902247738Sbapt 5903247738Sbapt 5904247738Sbapt 5905247738Sbapt 5906247738Sbapt 5907247738Sbapt 5908247738Sbapt# Check whether --enable-libtool-lock was given. 5909247738Sbaptif test "${enable_libtool_lock+set}" = set; then : 5910247738Sbapt enableval=$enable_libtool_lock; 5911247738Sbaptfi 5912247738Sbapt 5913247738Sbapttest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5914247738Sbapt 5915247738Sbapt# Some flags need to be propagated to the compiler or linker for good 5916247738Sbapt# libtool support. 5917247738Sbaptcase $host in 5918247738Sbaptia64-*-hpux*) 5919247738Sbapt # Find out which ABI we are using. 5920247738Sbapt echo 'int i;' > conftest.$ac_ext 5921247738Sbapt if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5922247738Sbapt (eval $ac_compile) 2>&5 5923247738Sbapt ac_status=$? 5924247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5925247738Sbapt test $ac_status = 0; }; then 5926247738Sbapt case `/usr/bin/file conftest.$ac_objext` in 5927247738Sbapt *ELF-32*) 5928247738Sbapt HPUX_IA64_MODE="32" 5929247738Sbapt ;; 5930247738Sbapt *ELF-64*) 5931247738Sbapt HPUX_IA64_MODE="64" 5932247738Sbapt ;; 5933247738Sbapt esac 5934247738Sbapt fi 5935247738Sbapt rm -rf conftest* 5936247738Sbapt ;; 5937247738Sbapt*-*-irix6*) 5938247738Sbapt # Find out which ABI we are using. 5939247738Sbapt echo '#line 5939 "configure"' > conftest.$ac_ext 5940247738Sbapt if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5941247738Sbapt (eval $ac_compile) 2>&5 5942247738Sbapt ac_status=$? 5943247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5944247738Sbapt test $ac_status = 0; }; then 5945247738Sbapt if test "$lt_cv_prog_gnu_ld" = yes; then 5946247738Sbapt case `/usr/bin/file conftest.$ac_objext` in 5947247738Sbapt *32-bit*) 5948247738Sbapt LD="${LD-ld} -melf32bsmip" 5949247738Sbapt ;; 5950247738Sbapt *N32*) 5951247738Sbapt LD="${LD-ld} -melf32bmipn32" 5952247738Sbapt ;; 5953247738Sbapt *64-bit*) 5954247738Sbapt LD="${LD-ld} -melf64bmip" 5955247738Sbapt ;; 5956247738Sbapt esac 5957247738Sbapt else 5958247738Sbapt case `/usr/bin/file conftest.$ac_objext` in 5959247738Sbapt *32-bit*) 5960247738Sbapt LD="${LD-ld} -32" 5961247738Sbapt ;; 5962247738Sbapt *N32*) 5963247738Sbapt LD="${LD-ld} -n32" 5964247738Sbapt ;; 5965247738Sbapt *64-bit*) 5966247738Sbapt LD="${LD-ld} -64" 5967247738Sbapt ;; 5968247738Sbapt esac 5969247738Sbapt fi 5970247738Sbapt fi 5971247738Sbapt rm -rf conftest* 5972247738Sbapt ;; 5973247738Sbapt 5974247738Sbaptx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5975247738Sbapts390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5976247738Sbapt # Find out which ABI we are using. 5977247738Sbapt echo 'int i;' > conftest.$ac_ext 5978247738Sbapt if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5979247738Sbapt (eval $ac_compile) 2>&5 5980247738Sbapt ac_status=$? 5981247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5982247738Sbapt test $ac_status = 0; }; then 5983247738Sbapt case `/usr/bin/file conftest.o` in 5984247738Sbapt *32-bit*) 5985247738Sbapt case $host in 5986247738Sbapt x86_64-*kfreebsd*-gnu) 5987247738Sbapt LD="${LD-ld} -m elf_i386_fbsd" 5988247738Sbapt ;; 5989247738Sbapt x86_64-*linux*) 5990247738Sbapt LD="${LD-ld} -m elf_i386" 5991247738Sbapt ;; 5992247738Sbapt ppc64-*linux*|powerpc64-*linux*) 5993247738Sbapt LD="${LD-ld} -m elf32ppclinux" 5994247738Sbapt ;; 5995247738Sbapt s390x-*linux*) 5996247738Sbapt LD="${LD-ld} -m elf_s390" 5997247738Sbapt ;; 5998247738Sbapt sparc64-*linux*) 5999247738Sbapt LD="${LD-ld} -m elf32_sparc" 6000247738Sbapt ;; 6001247738Sbapt esac 6002247738Sbapt ;; 6003247738Sbapt *64-bit*) 6004247738Sbapt case $host in 6005247738Sbapt x86_64-*kfreebsd*-gnu) 6006247738Sbapt LD="${LD-ld} -m elf_x86_64_fbsd" 6007247738Sbapt ;; 6008247738Sbapt x86_64-*linux*) 6009247738Sbapt LD="${LD-ld} -m elf_x86_64" 6010247738Sbapt ;; 6011247738Sbapt ppc*-*linux*|powerpc*-*linux*) 6012247738Sbapt LD="${LD-ld} -m elf64ppc" 6013247738Sbapt ;; 6014247738Sbapt s390*-*linux*|s390*-*tpf*) 6015247738Sbapt LD="${LD-ld} -m elf64_s390" 6016247738Sbapt ;; 6017247738Sbapt sparc*-*linux*) 6018247738Sbapt LD="${LD-ld} -m elf64_sparc" 6019247738Sbapt ;; 6020247738Sbapt esac 6021247738Sbapt ;; 6022247738Sbapt esac 6023247738Sbapt fi 6024247738Sbapt rm -rf conftest* 6025247738Sbapt ;; 6026247738Sbapt 6027247738Sbapt*-*-sco3.2v5*) 6028247738Sbapt # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6029247738Sbapt SAVE_CFLAGS="$CFLAGS" 6030247738Sbapt CFLAGS="$CFLAGS -belf" 6031247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6032247738Sbapt$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6033247738Sbaptif test "${lt_cv_cc_needs_belf+set}" = set; then : 6034247738Sbapt $as_echo_n "(cached) " >&6 6035247738Sbaptelse 6036247738Sbapt ac_ext=c 6037247738Sbaptac_cpp='$CPP $CPPFLAGS' 6038247738Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6039247738Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6040247738Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 6041247738Sbapt 6042247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6043247738Sbapt/* end confdefs.h. */ 6044247738Sbapt 6045247738Sbaptint 6046247738Sbaptmain () 6047247738Sbapt{ 6048247738Sbapt 6049247738Sbapt ; 6050247738Sbapt return 0; 6051247738Sbapt} 6052247738Sbapt_ACEOF 6053247738Sbaptif ac_fn_c_try_link "$LINENO"; then : 6054247738Sbapt lt_cv_cc_needs_belf=yes 6055247738Sbaptelse 6056247738Sbapt lt_cv_cc_needs_belf=no 6057247738Sbaptfi 6058247738Sbaptrm -f core conftest.err conftest.$ac_objext \ 6059247738Sbapt conftest$ac_exeext conftest.$ac_ext 6060247738Sbapt ac_ext=c 6061247738Sbaptac_cpp='$CPP $CPPFLAGS' 6062247738Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6063247738Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6064247738Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 6065247738Sbapt 6066247738Sbaptfi 6067247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6068247738Sbapt$as_echo "$lt_cv_cc_needs_belf" >&6; } 6069247738Sbapt if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6070247738Sbapt # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6071247738Sbapt CFLAGS="$SAVE_CFLAGS" 6072247738Sbapt fi 6073247738Sbapt ;; 6074247738Sbaptsparc*-*solaris*) 6075247738Sbapt # Find out which ABI we are using. 6076247738Sbapt echo 'int i;' > conftest.$ac_ext 6077247738Sbapt if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6078247738Sbapt (eval $ac_compile) 2>&5 6079247738Sbapt ac_status=$? 6080247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6081247738Sbapt test $ac_status = 0; }; then 6082247738Sbapt case `/usr/bin/file conftest.o` in 6083247738Sbapt *64-bit*) 6084247738Sbapt case $lt_cv_prog_gnu_ld in 6085247738Sbapt yes*) LD="${LD-ld} -m elf64_sparc" ;; 6086247738Sbapt *) 6087247738Sbapt if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6088247738Sbapt LD="${LD-ld} -64" 6089247738Sbapt fi 6090247738Sbapt ;; 6091247738Sbapt esac 6092247738Sbapt ;; 6093247738Sbapt esac 6094247738Sbapt fi 6095247738Sbapt rm -rf conftest* 6096247738Sbapt ;; 6097247738Sbaptesac 6098247738Sbapt 6099247738Sbaptneed_locks="$enable_libtool_lock" 6100247738Sbapt 6101247738Sbapt 6102247738Sbapt case $host_os in 6103247738Sbapt rhapsody* | darwin*) 6104247738Sbapt if test -n "$ac_tool_prefix"; then 6105247738Sbapt # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6106247738Sbaptset dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6107247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6108247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 6109247738Sbaptif test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6110247738Sbapt $as_echo_n "(cached) " >&6 6111247738Sbaptelse 6112247738Sbapt if test -n "$DSYMUTIL"; then 6113247738Sbapt ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6114247738Sbaptelse 6115247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6116247738Sbaptfor as_dir in $PATH 6117247738Sbaptdo 6118247738Sbapt IFS=$as_save_IFS 6119247738Sbapt test -z "$as_dir" && as_dir=. 6120247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 6121247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6122247738Sbapt ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6123247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6124247738Sbapt break 2 6125247738Sbapt fi 6126247738Sbaptdone 6127247738Sbapt done 6128247738SbaptIFS=$as_save_IFS 6129247738Sbapt 6130247738Sbaptfi 6131247738Sbaptfi 6132247738SbaptDSYMUTIL=$ac_cv_prog_DSYMUTIL 6133247738Sbaptif test -n "$DSYMUTIL"; then 6134247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6135247738Sbapt$as_echo "$DSYMUTIL" >&6; } 6136247738Sbaptelse 6137247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6138247738Sbapt$as_echo "no" >&6; } 6139247738Sbaptfi 6140247738Sbapt 6141247738Sbapt 6142247738Sbaptfi 6143247738Sbaptif test -z "$ac_cv_prog_DSYMUTIL"; then 6144247738Sbapt ac_ct_DSYMUTIL=$DSYMUTIL 6145247738Sbapt # Extract the first word of "dsymutil", so it can be a program name with args. 6146247738Sbaptset dummy dsymutil; ac_word=$2 6147247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6148247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 6149247738Sbaptif test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6150247738Sbapt $as_echo_n "(cached) " >&6 6151247738Sbaptelse 6152247738Sbapt if test -n "$ac_ct_DSYMUTIL"; then 6153247738Sbapt ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6154247738Sbaptelse 6155247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6156247738Sbaptfor as_dir in $PATH 6157247738Sbaptdo 6158247738Sbapt IFS=$as_save_IFS 6159247738Sbapt test -z "$as_dir" && as_dir=. 6160247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 6161247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6162247738Sbapt ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6163247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6164247738Sbapt break 2 6165247738Sbapt fi 6166247738Sbaptdone 6167247738Sbapt done 6168247738SbaptIFS=$as_save_IFS 6169247738Sbapt 6170247738Sbaptfi 6171247738Sbaptfi 6172247738Sbaptac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6173247738Sbaptif test -n "$ac_ct_DSYMUTIL"; then 6174247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6175247738Sbapt$as_echo "$ac_ct_DSYMUTIL" >&6; } 6176247738Sbaptelse 6177247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6178247738Sbapt$as_echo "no" >&6; } 6179247738Sbaptfi 6180247738Sbapt 6181247738Sbapt if test "x$ac_ct_DSYMUTIL" = x; then 6182247738Sbapt DSYMUTIL=":" 6183247738Sbapt else 6184247738Sbapt case $cross_compiling:$ac_tool_warned in 6185247738Sbaptyes:) 6186247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6187247738Sbapt$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6188247738Sbaptac_tool_warned=yes ;; 6189247738Sbaptesac 6190247738Sbapt DSYMUTIL=$ac_ct_DSYMUTIL 6191247738Sbapt fi 6192247738Sbaptelse 6193247738Sbapt DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6194247738Sbaptfi 6195247738Sbapt 6196247738Sbapt if test -n "$ac_tool_prefix"; then 6197247738Sbapt # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6198247738Sbaptset dummy ${ac_tool_prefix}nmedit; ac_word=$2 6199247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6200247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 6201247738Sbaptif test "${ac_cv_prog_NMEDIT+set}" = set; then : 6202247738Sbapt $as_echo_n "(cached) " >&6 6203247738Sbaptelse 6204247738Sbapt if test -n "$NMEDIT"; then 6205247738Sbapt ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6206247738Sbaptelse 6207247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6208247738Sbaptfor as_dir in $PATH 6209247738Sbaptdo 6210247738Sbapt IFS=$as_save_IFS 6211247738Sbapt test -z "$as_dir" && as_dir=. 6212247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 6213247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6214247738Sbapt ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6215247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6216247738Sbapt break 2 6217247738Sbapt fi 6218247738Sbaptdone 6219247738Sbapt done 6220247738SbaptIFS=$as_save_IFS 6221247738Sbapt 6222247738Sbaptfi 6223247738Sbaptfi 6224247738SbaptNMEDIT=$ac_cv_prog_NMEDIT 6225247738Sbaptif test -n "$NMEDIT"; then 6226247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6227247738Sbapt$as_echo "$NMEDIT" >&6; } 6228247738Sbaptelse 6229247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6230247738Sbapt$as_echo "no" >&6; } 6231247738Sbaptfi 6232247738Sbapt 6233247738Sbapt 6234247738Sbaptfi 6235247738Sbaptif test -z "$ac_cv_prog_NMEDIT"; then 6236247738Sbapt ac_ct_NMEDIT=$NMEDIT 6237247738Sbapt # Extract the first word of "nmedit", so it can be a program name with args. 6238247738Sbaptset dummy nmedit; ac_word=$2 6239247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6240247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 6241247738Sbaptif test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6242247738Sbapt $as_echo_n "(cached) " >&6 6243247738Sbaptelse 6244247738Sbapt if test -n "$ac_ct_NMEDIT"; then 6245247738Sbapt ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6246247738Sbaptelse 6247247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6248247738Sbaptfor as_dir in $PATH 6249247738Sbaptdo 6250247738Sbapt IFS=$as_save_IFS 6251247738Sbapt test -z "$as_dir" && as_dir=. 6252247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 6253247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6254247738Sbapt ac_cv_prog_ac_ct_NMEDIT="nmedit" 6255247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6256247738Sbapt break 2 6257247738Sbapt fi 6258247738Sbaptdone 6259247738Sbapt done 6260247738SbaptIFS=$as_save_IFS 6261247738Sbapt 6262247738Sbaptfi 6263247738Sbaptfi 6264247738Sbaptac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6265247738Sbaptif test -n "$ac_ct_NMEDIT"; then 6266247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6267247738Sbapt$as_echo "$ac_ct_NMEDIT" >&6; } 6268247738Sbaptelse 6269247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6270247738Sbapt$as_echo "no" >&6; } 6271247738Sbaptfi 6272247738Sbapt 6273247738Sbapt if test "x$ac_ct_NMEDIT" = x; then 6274247738Sbapt NMEDIT=":" 6275247738Sbapt else 6276247738Sbapt case $cross_compiling:$ac_tool_warned in 6277247738Sbaptyes:) 6278247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6279247738Sbapt$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6280247738Sbaptac_tool_warned=yes ;; 6281247738Sbaptesac 6282247738Sbapt NMEDIT=$ac_ct_NMEDIT 6283247738Sbapt fi 6284247738Sbaptelse 6285247738Sbapt NMEDIT="$ac_cv_prog_NMEDIT" 6286247738Sbaptfi 6287247738Sbapt 6288247738Sbapt if test -n "$ac_tool_prefix"; then 6289247738Sbapt # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6290247738Sbaptset dummy ${ac_tool_prefix}lipo; ac_word=$2 6291247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6292247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 6293247738Sbaptif test "${ac_cv_prog_LIPO+set}" = set; then : 6294247738Sbapt $as_echo_n "(cached) " >&6 6295247738Sbaptelse 6296247738Sbapt if test -n "$LIPO"; then 6297247738Sbapt ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6298247738Sbaptelse 6299247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6300247738Sbaptfor as_dir in $PATH 6301247738Sbaptdo 6302247738Sbapt IFS=$as_save_IFS 6303247738Sbapt test -z "$as_dir" && as_dir=. 6304247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 6305247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6306247738Sbapt ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6307247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6308247738Sbapt break 2 6309247738Sbapt fi 6310247738Sbaptdone 6311247738Sbapt done 6312247738SbaptIFS=$as_save_IFS 6313247738Sbapt 6314247738Sbaptfi 6315247738Sbaptfi 6316247738SbaptLIPO=$ac_cv_prog_LIPO 6317247738Sbaptif test -n "$LIPO"; then 6318247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6319247738Sbapt$as_echo "$LIPO" >&6; } 6320247738Sbaptelse 6321247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6322247738Sbapt$as_echo "no" >&6; } 6323247738Sbaptfi 6324247738Sbapt 6325247738Sbapt 6326247738Sbaptfi 6327247738Sbaptif test -z "$ac_cv_prog_LIPO"; then 6328247738Sbapt ac_ct_LIPO=$LIPO 6329247738Sbapt # Extract the first word of "lipo", so it can be a program name with args. 6330247738Sbaptset dummy lipo; ac_word=$2 6331247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6332247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 6333247738Sbaptif test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6334247738Sbapt $as_echo_n "(cached) " >&6 6335247738Sbaptelse 6336247738Sbapt if test -n "$ac_ct_LIPO"; then 6337247738Sbapt ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6338247738Sbaptelse 6339247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6340247738Sbaptfor as_dir in $PATH 6341247738Sbaptdo 6342247738Sbapt IFS=$as_save_IFS 6343247738Sbapt test -z "$as_dir" && as_dir=. 6344247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 6345247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6346247738Sbapt ac_cv_prog_ac_ct_LIPO="lipo" 6347247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6348247738Sbapt break 2 6349247738Sbapt fi 6350247738Sbaptdone 6351247738Sbapt done 6352247738SbaptIFS=$as_save_IFS 6353247738Sbapt 6354247738Sbaptfi 6355247738Sbaptfi 6356247738Sbaptac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6357247738Sbaptif test -n "$ac_ct_LIPO"; then 6358247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6359247738Sbapt$as_echo "$ac_ct_LIPO" >&6; } 6360247738Sbaptelse 6361247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6362247738Sbapt$as_echo "no" >&6; } 6363247738Sbaptfi 6364247738Sbapt 6365247738Sbapt if test "x$ac_ct_LIPO" = x; then 6366247738Sbapt LIPO=":" 6367247738Sbapt else 6368247738Sbapt case $cross_compiling:$ac_tool_warned in 6369247738Sbaptyes:) 6370247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6371247738Sbapt$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6372247738Sbaptac_tool_warned=yes ;; 6373247738Sbaptesac 6374247738Sbapt LIPO=$ac_ct_LIPO 6375247738Sbapt fi 6376247738Sbaptelse 6377247738Sbapt LIPO="$ac_cv_prog_LIPO" 6378247738Sbaptfi 6379247738Sbapt 6380247738Sbapt if test -n "$ac_tool_prefix"; then 6381247738Sbapt # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6382247738Sbaptset dummy ${ac_tool_prefix}otool; ac_word=$2 6383247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6384247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 6385247738Sbaptif test "${ac_cv_prog_OTOOL+set}" = set; then : 6386247738Sbapt $as_echo_n "(cached) " >&6 6387247738Sbaptelse 6388247738Sbapt if test -n "$OTOOL"; then 6389247738Sbapt ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6390247738Sbaptelse 6391247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6392247738Sbaptfor as_dir in $PATH 6393247738Sbaptdo 6394247738Sbapt IFS=$as_save_IFS 6395247738Sbapt test -z "$as_dir" && as_dir=. 6396247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 6397247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6398247738Sbapt ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6399247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6400247738Sbapt break 2 6401247738Sbapt fi 6402247738Sbaptdone 6403247738Sbapt done 6404247738SbaptIFS=$as_save_IFS 6405247738Sbapt 6406247738Sbaptfi 6407247738Sbaptfi 6408247738SbaptOTOOL=$ac_cv_prog_OTOOL 6409247738Sbaptif test -n "$OTOOL"; then 6410247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6411247738Sbapt$as_echo "$OTOOL" >&6; } 6412247738Sbaptelse 6413247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6414247738Sbapt$as_echo "no" >&6; } 6415247738Sbaptfi 6416247738Sbapt 6417247738Sbapt 6418247738Sbaptfi 6419247738Sbaptif test -z "$ac_cv_prog_OTOOL"; then 6420247738Sbapt ac_ct_OTOOL=$OTOOL 6421247738Sbapt # Extract the first word of "otool", so it can be a program name with args. 6422247738Sbaptset dummy otool; ac_word=$2 6423247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6424247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 6425247738Sbaptif test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 6426247738Sbapt $as_echo_n "(cached) " >&6 6427247738Sbaptelse 6428247738Sbapt if test -n "$ac_ct_OTOOL"; then 6429247738Sbapt ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6430247738Sbaptelse 6431247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6432247738Sbaptfor as_dir in $PATH 6433247738Sbaptdo 6434247738Sbapt IFS=$as_save_IFS 6435247738Sbapt test -z "$as_dir" && as_dir=. 6436247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 6437247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6438247738Sbapt ac_cv_prog_ac_ct_OTOOL="otool" 6439247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6440247738Sbapt break 2 6441247738Sbapt fi 6442247738Sbaptdone 6443247738Sbapt done 6444247738SbaptIFS=$as_save_IFS 6445247738Sbapt 6446247738Sbaptfi 6447247738Sbaptfi 6448247738Sbaptac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6449247738Sbaptif test -n "$ac_ct_OTOOL"; then 6450247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6451247738Sbapt$as_echo "$ac_ct_OTOOL" >&6; } 6452247738Sbaptelse 6453247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6454247738Sbapt$as_echo "no" >&6; } 6455247738Sbaptfi 6456247738Sbapt 6457247738Sbapt if test "x$ac_ct_OTOOL" = x; then 6458247738Sbapt OTOOL=":" 6459247738Sbapt else 6460247738Sbapt case $cross_compiling:$ac_tool_warned in 6461247738Sbaptyes:) 6462247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6463247738Sbapt$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6464247738Sbaptac_tool_warned=yes ;; 6465247738Sbaptesac 6466247738Sbapt OTOOL=$ac_ct_OTOOL 6467247738Sbapt fi 6468247738Sbaptelse 6469247738Sbapt OTOOL="$ac_cv_prog_OTOOL" 6470247738Sbaptfi 6471247738Sbapt 6472247738Sbapt if test -n "$ac_tool_prefix"; then 6473247738Sbapt # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6474247738Sbaptset dummy ${ac_tool_prefix}otool64; ac_word=$2 6475247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6476247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 6477247738Sbaptif test "${ac_cv_prog_OTOOL64+set}" = set; then : 6478247738Sbapt $as_echo_n "(cached) " >&6 6479247738Sbaptelse 6480247738Sbapt if test -n "$OTOOL64"; then 6481247738Sbapt ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6482247738Sbaptelse 6483247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6484247738Sbaptfor as_dir in $PATH 6485247738Sbaptdo 6486247738Sbapt IFS=$as_save_IFS 6487247738Sbapt test -z "$as_dir" && as_dir=. 6488247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 6489247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6490247738Sbapt ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6491247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6492247738Sbapt break 2 6493247738Sbapt fi 6494247738Sbaptdone 6495247738Sbapt done 6496247738SbaptIFS=$as_save_IFS 6497247738Sbapt 6498247738Sbaptfi 6499247738Sbaptfi 6500247738SbaptOTOOL64=$ac_cv_prog_OTOOL64 6501247738Sbaptif test -n "$OTOOL64"; then 6502247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6503247738Sbapt$as_echo "$OTOOL64" >&6; } 6504247738Sbaptelse 6505247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6506247738Sbapt$as_echo "no" >&6; } 6507247738Sbaptfi 6508247738Sbapt 6509247738Sbapt 6510247738Sbaptfi 6511247738Sbaptif test -z "$ac_cv_prog_OTOOL64"; then 6512247738Sbapt ac_ct_OTOOL64=$OTOOL64 6513247738Sbapt # Extract the first word of "otool64", so it can be a program name with args. 6514247738Sbaptset dummy otool64; ac_word=$2 6515247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6516247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 6517247738Sbaptif test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 6518247738Sbapt $as_echo_n "(cached) " >&6 6519247738Sbaptelse 6520247738Sbapt if test -n "$ac_ct_OTOOL64"; then 6521247738Sbapt ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6522247738Sbaptelse 6523247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6524247738Sbaptfor as_dir in $PATH 6525247738Sbaptdo 6526247738Sbapt IFS=$as_save_IFS 6527247738Sbapt test -z "$as_dir" && as_dir=. 6528247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 6529247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6530247738Sbapt ac_cv_prog_ac_ct_OTOOL64="otool64" 6531247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6532247738Sbapt break 2 6533247738Sbapt fi 6534247738Sbaptdone 6535247738Sbapt done 6536247738SbaptIFS=$as_save_IFS 6537247738Sbapt 6538247738Sbaptfi 6539247738Sbaptfi 6540247738Sbaptac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6541247738Sbaptif test -n "$ac_ct_OTOOL64"; then 6542247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6543247738Sbapt$as_echo "$ac_ct_OTOOL64" >&6; } 6544247738Sbaptelse 6545247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6546247738Sbapt$as_echo "no" >&6; } 6547247738Sbaptfi 6548247738Sbapt 6549247738Sbapt if test "x$ac_ct_OTOOL64" = x; then 6550247738Sbapt OTOOL64=":" 6551247738Sbapt else 6552247738Sbapt case $cross_compiling:$ac_tool_warned in 6553247738Sbaptyes:) 6554247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6555247738Sbapt$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6556247738Sbaptac_tool_warned=yes ;; 6557247738Sbaptesac 6558247738Sbapt OTOOL64=$ac_ct_OTOOL64 6559247738Sbapt fi 6560247738Sbaptelse 6561247738Sbapt OTOOL64="$ac_cv_prog_OTOOL64" 6562247738Sbaptfi 6563247738Sbapt 6564247738Sbapt 6565247738Sbapt 6566247738Sbapt 6567247738Sbapt 6568247738Sbapt 6569247738Sbapt 6570247738Sbapt 6571247738Sbapt 6572247738Sbapt 6573247738Sbapt 6574247738Sbapt 6575247738Sbapt 6576247738Sbapt 6577247738Sbapt 6578247738Sbapt 6579247738Sbapt 6580247738Sbapt 6581247738Sbapt 6582247738Sbapt 6583247738Sbapt 6584247738Sbapt 6585247738Sbapt 6586247738Sbapt 6587247738Sbapt 6588247738Sbapt 6589247738Sbapt 6590247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6591247738Sbapt$as_echo_n "checking for -single_module linker flag... " >&6; } 6592247738Sbaptif test "${lt_cv_apple_cc_single_mod+set}" = set; then : 6593247738Sbapt $as_echo_n "(cached) " >&6 6594247738Sbaptelse 6595247738Sbapt lt_cv_apple_cc_single_mod=no 6596247738Sbapt if test -z "${LT_MULTI_MODULE}"; then 6597247738Sbapt # By default we will add the -single_module flag. You can override 6598247738Sbapt # by either setting the environment variable LT_MULTI_MODULE 6599247738Sbapt # non-empty at configure time, or by adding -multi_module to the 6600247738Sbapt # link flags. 6601247738Sbapt rm -rf libconftest.dylib* 6602247738Sbapt echo "int foo(void){return 1;}" > conftest.c 6603247738Sbapt echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6604247738Sbapt-dynamiclib -Wl,-single_module conftest.c" >&5 6605247738Sbapt $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6606247738Sbapt -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6607247738Sbapt _lt_result=$? 6608247738Sbapt if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6609247738Sbapt lt_cv_apple_cc_single_mod=yes 6610247738Sbapt else 6611247738Sbapt cat conftest.err >&5 6612247738Sbapt fi 6613247738Sbapt rm -rf libconftest.dylib* 6614247738Sbapt rm -f conftest.* 6615247738Sbapt fi 6616247738Sbaptfi 6617247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6618247738Sbapt$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6619247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6620247738Sbapt$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6621247738Sbaptif test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 6622247738Sbapt $as_echo_n "(cached) " >&6 6623247738Sbaptelse 6624247738Sbapt lt_cv_ld_exported_symbols_list=no 6625247738Sbapt save_LDFLAGS=$LDFLAGS 6626247738Sbapt echo "_main" > conftest.sym 6627247738Sbapt LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6628247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6629247738Sbapt/* end confdefs.h. */ 6630247738Sbapt 6631247738Sbaptint 6632247738Sbaptmain () 6633247738Sbapt{ 6634247738Sbapt 6635247738Sbapt ; 6636247738Sbapt return 0; 6637247738Sbapt} 6638247738Sbapt_ACEOF 6639247738Sbaptif ac_fn_c_try_link "$LINENO"; then : 6640247738Sbapt lt_cv_ld_exported_symbols_list=yes 6641247738Sbaptelse 6642247738Sbapt lt_cv_ld_exported_symbols_list=no 6643247738Sbaptfi 6644247738Sbaptrm -f core conftest.err conftest.$ac_objext \ 6645247738Sbapt conftest$ac_exeext conftest.$ac_ext 6646247738Sbapt LDFLAGS="$save_LDFLAGS" 6647247738Sbapt 6648247738Sbaptfi 6649247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6650247738Sbapt$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6651247738Sbapt case $host_os in 6652247738Sbapt rhapsody* | darwin1.[012]) 6653247738Sbapt _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6654247738Sbapt darwin1.*) 6655247738Sbapt _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6656247738Sbapt darwin*) # darwin 5.x on 6657247738Sbapt # if running on 10.5 or later, the deployment target defaults 6658247738Sbapt # to the OS version, if on x86, and 10.4, the deployment 6659247738Sbapt # target defaults to 10.4. Don't you love it? 6660247738Sbapt case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6661247738Sbapt 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6662247738Sbapt _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6663247738Sbapt 10.[012]*) 6664247738Sbapt _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6665247738Sbapt 10.*) 6666247738Sbapt _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6667247738Sbapt esac 6668247738Sbapt ;; 6669247738Sbapt esac 6670247738Sbapt if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6671247738Sbapt _lt_dar_single_mod='$single_module' 6672247738Sbapt fi 6673247738Sbapt if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6674247738Sbapt _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6675247738Sbapt else 6676247738Sbapt _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6677247738Sbapt fi 6678247738Sbapt if test "$DSYMUTIL" != ":"; then 6679247738Sbapt _lt_dsymutil='~$DSYMUTIL $lib || :' 6680247738Sbapt else 6681247738Sbapt _lt_dsymutil= 6682247738Sbapt fi 6683247738Sbapt ;; 6684247738Sbapt esac 6685247738Sbapt 6686247738Sbapt 6687247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6688247738Sbapt$as_echo_n "checking for ANSI C header files... " >&6; } 6689247738Sbaptif test "${ac_cv_header_stdc+set}" = set; then : 6690247738Sbapt $as_echo_n "(cached) " >&6 6691247738Sbaptelse 6692247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6693247738Sbapt/* end confdefs.h. */ 6694247738Sbapt#include <stdlib.h> 6695247738Sbapt#include <stdarg.h> 6696247738Sbapt#include <string.h> 6697247738Sbapt#include <float.h> 6698247738Sbapt 6699247738Sbaptint 6700247738Sbaptmain () 6701247738Sbapt{ 6702247738Sbapt 6703247738Sbapt ; 6704247738Sbapt return 0; 6705247738Sbapt} 6706247738Sbapt_ACEOF 6707247738Sbaptif ac_fn_c_try_compile "$LINENO"; then : 6708247738Sbapt ac_cv_header_stdc=yes 6709247738Sbaptelse 6710247738Sbapt ac_cv_header_stdc=no 6711247738Sbaptfi 6712247738Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6713247738Sbapt 6714247738Sbaptif test $ac_cv_header_stdc = yes; then 6715247738Sbapt # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6716247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6717247738Sbapt/* end confdefs.h. */ 6718247738Sbapt#include <string.h> 6719247738Sbapt 6720247738Sbapt_ACEOF 6721247738Sbaptif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6722247738Sbapt $EGREP "memchr" >/dev/null 2>&1; then : 6723247738Sbapt 6724247738Sbaptelse 6725247738Sbapt ac_cv_header_stdc=no 6726247738Sbaptfi 6727247738Sbaptrm -f conftest* 6728247738Sbapt 6729247738Sbaptfi 6730247738Sbapt 6731247738Sbaptif test $ac_cv_header_stdc = yes; then 6732247738Sbapt # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6733247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6734247738Sbapt/* end confdefs.h. */ 6735247738Sbapt#include <stdlib.h> 6736247738Sbapt 6737247738Sbapt_ACEOF 6738247738Sbaptif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6739247738Sbapt $EGREP "free" >/dev/null 2>&1; then : 6740247738Sbapt 6741247738Sbaptelse 6742247738Sbapt ac_cv_header_stdc=no 6743247738Sbaptfi 6744247738Sbaptrm -f conftest* 6745247738Sbapt 6746247738Sbaptfi 6747247738Sbapt 6748247738Sbaptif test $ac_cv_header_stdc = yes; then 6749247738Sbapt # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6750247738Sbapt if test "$cross_compiling" = yes; then : 6751247738Sbapt : 6752247738Sbaptelse 6753247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6754247738Sbapt/* end confdefs.h. */ 6755247738Sbapt#include <ctype.h> 6756247738Sbapt#include <stdlib.h> 6757247738Sbapt#if ((' ' & 0x0FF) == 0x020) 6758247738Sbapt# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6759247738Sbapt# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6760247738Sbapt#else 6761247738Sbapt# define ISLOWER(c) \ 6762247738Sbapt (('a' <= (c) && (c) <= 'i') \ 6763247738Sbapt || ('j' <= (c) && (c) <= 'r') \ 6764247738Sbapt || ('s' <= (c) && (c) <= 'z')) 6765247738Sbapt# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6766247738Sbapt#endif 6767247738Sbapt 6768247738Sbapt#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6769247738Sbaptint 6770247738Sbaptmain () 6771247738Sbapt{ 6772247738Sbapt int i; 6773247738Sbapt for (i = 0; i < 256; i++) 6774247738Sbapt if (XOR (islower (i), ISLOWER (i)) 6775247738Sbapt || toupper (i) != TOUPPER (i)) 6776247738Sbapt return 2; 6777247738Sbapt return 0; 6778247738Sbapt} 6779247738Sbapt_ACEOF 6780247738Sbaptif ac_fn_c_try_run "$LINENO"; then : 6781247738Sbapt 6782247738Sbaptelse 6783247738Sbapt ac_cv_header_stdc=no 6784247738Sbaptfi 6785247738Sbaptrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6786247738Sbapt conftest.$ac_objext conftest.beam conftest.$ac_ext 6787247738Sbaptfi 6788247738Sbapt 6789247738Sbaptfi 6790247738Sbaptfi 6791247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6792247738Sbapt$as_echo "$ac_cv_header_stdc" >&6; } 6793247738Sbaptif test $ac_cv_header_stdc = yes; then 6794247738Sbapt 6795247738Sbapt$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6796247738Sbapt 6797247738Sbaptfi 6798247738Sbapt 6799247738Sbapt# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6800247738Sbaptfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6801247738Sbapt inttypes.h stdint.h unistd.h 6802247738Sbaptdo : 6803247738Sbapt as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6804247738Sbaptac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6805247738Sbapt" 6806247738Sbaptif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6807247738Sbapt cat >>confdefs.h <<_ACEOF 6808247738Sbapt#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6809247738Sbapt_ACEOF 6810247738Sbapt 6811247738Sbaptfi 6812247738Sbapt 6813247738Sbaptdone 6814247738Sbapt 6815247738Sbapt 6816247738Sbaptfor ac_header in dlfcn.h 6817247738Sbaptdo : 6818247738Sbapt ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 6819247738Sbapt" 6820247738Sbaptif test "x$ac_cv_header_dlfcn_h" = x""yes; then : 6821247738Sbapt cat >>confdefs.h <<_ACEOF 6822247738Sbapt#define HAVE_DLFCN_H 1 6823247738Sbapt_ACEOF 6824247738Sbapt 6825247738Sbaptfi 6826247738Sbapt 6827247738Sbaptdone 6828247738Sbapt 6829247738Sbapt 6830247738Sbapt 6831247738Sbapt# Set options 6832247738Sbapt 6833247738Sbapt 6834247738Sbapt 6835247738Sbapt enable_dlopen=no 6836247738Sbapt 6837247738Sbapt 6838247738Sbapt enable_win32_dll=no 6839247738Sbapt 6840247738Sbapt 6841247738Sbapt # Check whether --enable-shared was given. 6842247738Sbaptif test "${enable_shared+set}" = set; then : 6843247738Sbapt enableval=$enable_shared; p=${PACKAGE-default} 6844247738Sbapt case $enableval in 6845247738Sbapt yes) enable_shared=yes ;; 6846247738Sbapt no) enable_shared=no ;; 6847247738Sbapt *) 6848247738Sbapt enable_shared=no 6849247738Sbapt # Look at the argument we got. We use all the common list separators. 6850247738Sbapt lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6851247738Sbapt for pkg in $enableval; do 6852247738Sbapt IFS="$lt_save_ifs" 6853247738Sbapt if test "X$pkg" = "X$p"; then 6854247738Sbapt enable_shared=yes 6855247738Sbapt fi 6856247738Sbapt done 6857247738Sbapt IFS="$lt_save_ifs" 6858247738Sbapt ;; 6859247738Sbapt esac 6860247738Sbaptelse 6861247738Sbapt enable_shared=yes 6862247738Sbaptfi 6863247738Sbapt 6864247738Sbapt 6865247738Sbapt 6866247738Sbapt 6867247738Sbapt 6868247738Sbapt 6869247738Sbapt 6870247738Sbapt 6871247738Sbapt 6872247738Sbapt # Check whether --enable-static was given. 6873247738Sbaptif test "${enable_static+set}" = set; then : 6874247738Sbapt enableval=$enable_static; p=${PACKAGE-default} 6875247738Sbapt case $enableval in 6876247738Sbapt yes) enable_static=yes ;; 6877247738Sbapt no) enable_static=no ;; 6878247738Sbapt *) 6879247738Sbapt enable_static=no 6880247738Sbapt # Look at the argument we got. We use all the common list separators. 6881247738Sbapt lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6882247738Sbapt for pkg in $enableval; do 6883247738Sbapt IFS="$lt_save_ifs" 6884247738Sbapt if test "X$pkg" = "X$p"; then 6885247738Sbapt enable_static=yes 6886247738Sbapt fi 6887247738Sbapt done 6888247738Sbapt IFS="$lt_save_ifs" 6889247738Sbapt ;; 6890247738Sbapt esac 6891247738Sbaptelse 6892247738Sbapt enable_static=yes 6893247738Sbaptfi 6894247738Sbapt 6895247738Sbapt 6896247738Sbapt 6897247738Sbapt 6898247738Sbapt 6899247738Sbapt 6900247738Sbapt 6901247738Sbapt 6902247738Sbapt 6903247738Sbapt 6904247738Sbapt# Check whether --with-pic was given. 6905247738Sbaptif test "${with_pic+set}" = set; then : 6906247738Sbapt withval=$with_pic; pic_mode="$withval" 6907247738Sbaptelse 6908247738Sbapt pic_mode=default 6909247738Sbaptfi 6910247738Sbapt 6911247738Sbapt 6912247738Sbapttest -z "$pic_mode" && pic_mode=default 6913247738Sbapt 6914247738Sbapt 6915247738Sbapt 6916247738Sbapt 6917247738Sbapt 6918247738Sbapt 6919247738Sbapt 6920247738Sbapt # Check whether --enable-fast-install was given. 6921247738Sbaptif test "${enable_fast_install+set}" = set; then : 6922247738Sbapt enableval=$enable_fast_install; p=${PACKAGE-default} 6923247738Sbapt case $enableval in 6924247738Sbapt yes) enable_fast_install=yes ;; 6925247738Sbapt no) enable_fast_install=no ;; 6926247738Sbapt *) 6927247738Sbapt enable_fast_install=no 6928247738Sbapt # Look at the argument we got. We use all the common list separators. 6929247738Sbapt lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6930247738Sbapt for pkg in $enableval; do 6931247738Sbapt IFS="$lt_save_ifs" 6932247738Sbapt if test "X$pkg" = "X$p"; then 6933247738Sbapt enable_fast_install=yes 6934247738Sbapt fi 6935247738Sbapt done 6936247738Sbapt IFS="$lt_save_ifs" 6937247738Sbapt ;; 6938247738Sbapt esac 6939247738Sbaptelse 6940247738Sbapt enable_fast_install=yes 6941247738Sbaptfi 6942247738Sbapt 6943247738Sbapt 6944247738Sbapt 6945247738Sbapt 6946247738Sbapt 6947247738Sbapt 6948247738Sbapt 6949247738Sbapt 6950247738Sbapt 6951247738Sbapt 6952247738Sbapt 6953247738Sbapt# This can be used to rebuild libtool when needed 6954247738SbaptLIBTOOL_DEPS="$ltmain" 6955247738Sbapt 6956247738Sbapt# Always use our own libtool. 6957247738SbaptLIBTOOL='$(SHELL) $(top_builddir)/libtool' 6958247738Sbapt 6959247738Sbapt 6960247738Sbapt 6961247738Sbapt 6962247738Sbapt 6963247738Sbapt 6964247738Sbapt 6965247738Sbapt 6966247738Sbapt 6967247738Sbapt 6968247738Sbapt 6969247738Sbapt 6970247738Sbapt 6971247738Sbapt 6972247738Sbapt 6973247738Sbapt 6974247738Sbapt 6975247738Sbapt 6976247738Sbapt 6977247738Sbapt 6978247738Sbapt 6979247738Sbapt 6980247738Sbapt 6981247738Sbapt 6982247738Sbapt 6983247738Sbapttest -z "$LN_S" && LN_S="ln -s" 6984247738Sbapt 6985247738Sbapt 6986247738Sbapt 6987247738Sbapt 6988247738Sbapt 6989247738Sbapt 6990247738Sbapt 6991247738Sbapt 6992247738Sbapt 6993247738Sbapt 6994247738Sbapt 6995247738Sbapt 6996247738Sbapt 6997247738Sbapt 6998247738Sbaptif test -n "${ZSH_VERSION+set}" ; then 6999247738Sbapt setopt NO_GLOB_SUBST 7000247738Sbaptfi 7001247738Sbapt 7002247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7003247738Sbapt$as_echo_n "checking for objdir... " >&6; } 7004247738Sbaptif test "${lt_cv_objdir+set}" = set; then : 7005247738Sbapt $as_echo_n "(cached) " >&6 7006247738Sbaptelse 7007247738Sbapt rm -f .libs 2>/dev/null 7008247738Sbaptmkdir .libs 2>/dev/null 7009247738Sbaptif test -d .libs; then 7010247738Sbapt lt_cv_objdir=.libs 7011247738Sbaptelse 7012247738Sbapt # MS-DOS does not allow filenames that begin with a dot. 7013247738Sbapt lt_cv_objdir=_libs 7014247738Sbaptfi 7015247738Sbaptrmdir .libs 2>/dev/null 7016247738Sbaptfi 7017247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7018247738Sbapt$as_echo "$lt_cv_objdir" >&6; } 7019247738Sbaptobjdir=$lt_cv_objdir 7020247738Sbapt 7021247738Sbapt 7022247738Sbapt 7023247738Sbapt 7024247738Sbapt 7025247738Sbaptcat >>confdefs.h <<_ACEOF 7026247738Sbapt#define LT_OBJDIR "$lt_cv_objdir/" 7027247738Sbapt_ACEOF 7028247738Sbapt 7029247738Sbapt 7030247738Sbapt 7031247738Sbapt 7032247738Sbapt 7033247738Sbapt 7034247738Sbapt 7035247738Sbapt 7036247738Sbapt 7037247738Sbapt 7038247738Sbapt 7039247738Sbapt 7040247738Sbapt 7041247738Sbapt 7042247738Sbapt 7043247738Sbapt 7044247738Sbapt 7045247738Sbaptcase $host_os in 7046247738Sbaptaix3*) 7047247738Sbapt # AIX sometimes has problems with the GCC collect2 program. For some 7048247738Sbapt # reason, if we set the COLLECT_NAMES environment variable, the problems 7049247738Sbapt # vanish in a puff of smoke. 7050247738Sbapt if test "X${COLLECT_NAMES+set}" != Xset; then 7051247738Sbapt COLLECT_NAMES= 7052247738Sbapt export COLLECT_NAMES 7053247738Sbapt fi 7054247738Sbapt ;; 7055247738Sbaptesac 7056247738Sbapt 7057247738Sbapt# Sed substitution that helps us do robust quoting. It backslashifies 7058247738Sbapt# metacharacters that are still active within double-quoted strings. 7059247738Sbaptsed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7060247738Sbapt 7061247738Sbapt# Same as above, but do not quote variable references. 7062247738Sbaptdouble_quote_subst='s/\(["`\\]\)/\\\1/g' 7063247738Sbapt 7064247738Sbapt# Sed substitution to delay expansion of an escaped shell variable in a 7065247738Sbapt# double_quote_subst'ed string. 7066247738Sbaptdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7067247738Sbapt 7068247738Sbapt# Sed substitution to delay expansion of an escaped single quote. 7069247738Sbaptdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7070247738Sbapt 7071247738Sbapt# Sed substitution to avoid accidental globbing in evaled expressions 7072247738Sbaptno_glob_subst='s/\*/\\\*/g' 7073247738Sbapt 7074247738Sbapt# Global variables: 7075247738Sbaptofile=libtool 7076247738Sbaptcan_build_shared=yes 7077247738Sbapt 7078247738Sbapt# All known linkers require a `.a' archive for static linking (except MSVC, 7079247738Sbapt# which needs '.lib'). 7080247738Sbaptlibext=a 7081247738Sbapt 7082247738Sbaptwith_gnu_ld="$lt_cv_prog_gnu_ld" 7083247738Sbapt 7084247738Sbaptold_CC="$CC" 7085247738Sbaptold_CFLAGS="$CFLAGS" 7086247738Sbapt 7087247738Sbapt# Set sane defaults for various variables 7088247738Sbapttest -z "$CC" && CC=cc 7089247738Sbapttest -z "$LTCC" && LTCC=$CC 7090247738Sbapttest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7091247738Sbapttest -z "$LD" && LD=ld 7092247738Sbapttest -z "$ac_objext" && ac_objext=o 7093247738Sbapt 7094247738Sbaptfor cc_temp in $compiler""; do 7095247738Sbapt case $cc_temp in 7096247738Sbapt compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7097247738Sbapt distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7098247738Sbapt \-*) ;; 7099247738Sbapt *) break;; 7100247738Sbapt esac 7101247738Sbaptdone 7102247738Sbaptcc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7103247738Sbapt 7104247738Sbapt 7105247738Sbapt# Only perform the check for file, if the check method requires it 7106247738Sbapttest -z "$MAGIC_CMD" && MAGIC_CMD=file 7107247738Sbaptcase $deplibs_check_method in 7108247738Sbaptfile_magic*) 7109247738Sbapt if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7110247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7111247738Sbapt$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7112247738Sbaptif test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7113247738Sbapt $as_echo_n "(cached) " >&6 7114247738Sbaptelse 7115247738Sbapt case $MAGIC_CMD in 7116247738Sbapt[\\/*] | ?:[\\/]*) 7117247738Sbapt lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7118247738Sbapt ;; 7119247738Sbapt*) 7120247738Sbapt lt_save_MAGIC_CMD="$MAGIC_CMD" 7121247738Sbapt lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7122247738Sbapt ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7123247738Sbapt for ac_dir in $ac_dummy; do 7124247738Sbapt IFS="$lt_save_ifs" 7125247738Sbapt test -z "$ac_dir" && ac_dir=. 7126247738Sbapt if test -f $ac_dir/${ac_tool_prefix}file; then 7127247738Sbapt lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7128247738Sbapt if test -n "$file_magic_test_file"; then 7129247738Sbapt case $deplibs_check_method in 7130247738Sbapt "file_magic "*) 7131247738Sbapt file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7132247738Sbapt MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7133247738Sbapt if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7134247738Sbapt $EGREP "$file_magic_regex" > /dev/null; then 7135247738Sbapt : 7136247738Sbapt else 7137247738Sbapt cat <<_LT_EOF 1>&2 7138247738Sbapt 7139247738Sbapt*** Warning: the command libtool uses to detect shared libraries, 7140247738Sbapt*** $file_magic_cmd, produces output that libtool cannot recognize. 7141247738Sbapt*** The result is that libtool may fail to recognize shared libraries 7142247738Sbapt*** as such. This will affect the creation of libtool libraries that 7143247738Sbapt*** depend on shared libraries, but programs linked with such libtool 7144247738Sbapt*** libraries will work regardless of this problem. Nevertheless, you 7145247738Sbapt*** may want to report the problem to your system manager and/or to 7146247738Sbapt*** bug-libtool@gnu.org 7147247738Sbapt 7148247738Sbapt_LT_EOF 7149247738Sbapt fi ;; 7150247738Sbapt esac 7151247738Sbapt fi 7152247738Sbapt break 7153247738Sbapt fi 7154247738Sbapt done 7155247738Sbapt IFS="$lt_save_ifs" 7156247738Sbapt MAGIC_CMD="$lt_save_MAGIC_CMD" 7157247738Sbapt ;; 7158247738Sbaptesac 7159247738Sbaptfi 7160247738Sbapt 7161247738SbaptMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7162247738Sbaptif test -n "$MAGIC_CMD"; then 7163247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7164247738Sbapt$as_echo "$MAGIC_CMD" >&6; } 7165247738Sbaptelse 7166247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7167247738Sbapt$as_echo "no" >&6; } 7168247738Sbaptfi 7169247738Sbapt 7170247738Sbapt 7171247738Sbapt 7172247738Sbapt 7173247738Sbapt 7174247738Sbaptif test -z "$lt_cv_path_MAGIC_CMD"; then 7175247738Sbapt if test -n "$ac_tool_prefix"; then 7176247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7177247738Sbapt$as_echo_n "checking for file... " >&6; } 7178247738Sbaptif test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7179247738Sbapt $as_echo_n "(cached) " >&6 7180247738Sbaptelse 7181247738Sbapt case $MAGIC_CMD in 7182247738Sbapt[\\/*] | ?:[\\/]*) 7183247738Sbapt lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7184247738Sbapt ;; 7185247738Sbapt*) 7186247738Sbapt lt_save_MAGIC_CMD="$MAGIC_CMD" 7187247738Sbapt lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7188247738Sbapt ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7189247738Sbapt for ac_dir in $ac_dummy; do 7190247738Sbapt IFS="$lt_save_ifs" 7191247738Sbapt test -z "$ac_dir" && ac_dir=. 7192247738Sbapt if test -f $ac_dir/file; then 7193247738Sbapt lt_cv_path_MAGIC_CMD="$ac_dir/file" 7194247738Sbapt if test -n "$file_magic_test_file"; then 7195247738Sbapt case $deplibs_check_method in 7196247738Sbapt "file_magic "*) 7197247738Sbapt file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7198247738Sbapt MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7199247738Sbapt if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7200247738Sbapt $EGREP "$file_magic_regex" > /dev/null; then 7201247738Sbapt : 7202247738Sbapt else 7203247738Sbapt cat <<_LT_EOF 1>&2 7204247738Sbapt 7205247738Sbapt*** Warning: the command libtool uses to detect shared libraries, 7206247738Sbapt*** $file_magic_cmd, produces output that libtool cannot recognize. 7207247738Sbapt*** The result is that libtool may fail to recognize shared libraries 7208247738Sbapt*** as such. This will affect the creation of libtool libraries that 7209247738Sbapt*** depend on shared libraries, but programs linked with such libtool 7210247738Sbapt*** libraries will work regardless of this problem. Nevertheless, you 7211247738Sbapt*** may want to report the problem to your system manager and/or to 7212247738Sbapt*** bug-libtool@gnu.org 7213247738Sbapt 7214247738Sbapt_LT_EOF 7215247738Sbapt fi ;; 7216247738Sbapt esac 7217247738Sbapt fi 7218247738Sbapt break 7219247738Sbapt fi 7220247738Sbapt done 7221247738Sbapt IFS="$lt_save_ifs" 7222247738Sbapt MAGIC_CMD="$lt_save_MAGIC_CMD" 7223247738Sbapt ;; 7224247738Sbaptesac 7225247738Sbaptfi 7226247738Sbapt 7227247738SbaptMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7228247738Sbaptif test -n "$MAGIC_CMD"; then 7229247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7230247738Sbapt$as_echo "$MAGIC_CMD" >&6; } 7231247738Sbaptelse 7232247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7233247738Sbapt$as_echo "no" >&6; } 7234247738Sbaptfi 7235247738Sbapt 7236247738Sbapt 7237247738Sbapt else 7238247738Sbapt MAGIC_CMD=: 7239247738Sbapt fi 7240247738Sbaptfi 7241247738Sbapt 7242247738Sbapt fi 7243247738Sbapt ;; 7244247738Sbaptesac 7245247738Sbapt 7246247738Sbapt# Use C for the default configuration in the libtool script 7247247738Sbapt 7248247738Sbaptlt_save_CC="$CC" 7249247738Sbaptac_ext=c 7250247738Sbaptac_cpp='$CPP $CPPFLAGS' 7251247738Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7252247738Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7253247738Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 7254247738Sbapt 7255247738Sbapt 7256247738Sbapt# Source file extension for C test sources. 7257247738Sbaptac_ext=c 7258247738Sbapt 7259247738Sbapt# Object file extension for compiled C test sources. 7260247738Sbaptobjext=o 7261247738Sbaptobjext=$objext 7262247738Sbapt 7263247738Sbapt# Code to be used in simple compile tests 7264247738Sbaptlt_simple_compile_test_code="int some_variable = 0;" 7265247738Sbapt 7266247738Sbapt# Code to be used in simple link tests 7267247738Sbaptlt_simple_link_test_code='int main(){return(0);}' 7268247738Sbapt 7269247738Sbapt 7270247738Sbapt 7271247738Sbapt 7272247738Sbapt 7273247738Sbapt 7274247738Sbapt 7275247738Sbapt# If no C compiler was specified, use CC. 7276247738SbaptLTCC=${LTCC-"$CC"} 7277247738Sbapt 7278247738Sbapt# If no C compiler flags were specified, use CFLAGS. 7279247738SbaptLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7280247738Sbapt 7281247738Sbapt# Allow CC to be a program name with arguments. 7282247738Sbaptcompiler=$CC 7283247738Sbapt 7284247738Sbapt# Save the default compiler, since it gets overwritten when the other 7285247738Sbapt# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7286247738Sbaptcompiler_DEFAULT=$CC 7287247738Sbapt 7288247738Sbapt# save warnings/boilerplate of simple test code 7289247738Sbaptac_outfile=conftest.$ac_objext 7290247738Sbaptecho "$lt_simple_compile_test_code" >conftest.$ac_ext 7291247738Sbapteval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7292247738Sbapt_lt_compiler_boilerplate=`cat conftest.err` 7293247738Sbapt$RM conftest* 7294247738Sbapt 7295247738Sbaptac_outfile=conftest.$ac_objext 7296247738Sbaptecho "$lt_simple_link_test_code" >conftest.$ac_ext 7297247738Sbapteval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7298247738Sbapt_lt_linker_boilerplate=`cat conftest.err` 7299247738Sbapt$RM -r conftest* 7300247738Sbapt 7301247738Sbapt 7302247738Sbaptif test -n "$compiler"; then 7303247738Sbapt 7304247738Sbaptlt_prog_compiler_no_builtin_flag= 7305247738Sbapt 7306247738Sbaptif test "$GCC" = yes; then 7307247738Sbapt lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7308247738Sbapt 7309247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7310247738Sbapt$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7311247738Sbaptif test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7312247738Sbapt $as_echo_n "(cached) " >&6 7313247738Sbaptelse 7314247738Sbapt lt_cv_prog_compiler_rtti_exceptions=no 7315247738Sbapt ac_outfile=conftest.$ac_objext 7316247738Sbapt echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7317247738Sbapt lt_compiler_flag="-fno-rtti -fno-exceptions" 7318247738Sbapt # Insert the option either (1) after the last *FLAGS variable, or 7319247738Sbapt # (2) before a word containing "conftest.", or (3) at the end. 7320247738Sbapt # Note that $ac_compile itself does not contain backslashes and begins 7321247738Sbapt # with a dollar sign (not a hyphen), so the echo should work correctly. 7322247738Sbapt # The option is referenced via a variable to avoid confusing sed. 7323247738Sbapt lt_compile=`echo "$ac_compile" | $SED \ 7324247738Sbapt -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7325247738Sbapt -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7326247738Sbapt -e 's:$: $lt_compiler_flag:'` 7327247738Sbapt (eval echo "\"\$as_me:7327: $lt_compile\"" >&5) 7328247738Sbapt (eval "$lt_compile" 2>conftest.err) 7329247738Sbapt ac_status=$? 7330247738Sbapt cat conftest.err >&5 7331247738Sbapt echo "$as_me:7331: \$? = $ac_status" >&5 7332247738Sbapt if (exit $ac_status) && test -s "$ac_outfile"; then 7333247738Sbapt # The compiler can only warn and ignore the option if not recognized 7334247738Sbapt # So say no if there are warnings other than the usual output. 7335247738Sbapt $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7336247738Sbapt $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7337247738Sbapt if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7338247738Sbapt lt_cv_prog_compiler_rtti_exceptions=yes 7339247738Sbapt fi 7340247738Sbapt fi 7341247738Sbapt $RM conftest* 7342247738Sbapt 7343247738Sbaptfi 7344247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7345247738Sbapt$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7346247738Sbapt 7347247738Sbaptif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7348247738Sbapt lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7349247738Sbaptelse 7350247738Sbapt : 7351247738Sbaptfi 7352247738Sbapt 7353247738Sbaptfi 7354247738Sbapt 7355247738Sbapt 7356247738Sbapt 7357247738Sbapt 7358247738Sbapt 7359247738Sbapt 7360247738Sbapt lt_prog_compiler_wl= 7361247738Sbaptlt_prog_compiler_pic= 7362247738Sbaptlt_prog_compiler_static= 7363247738Sbapt 7364247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7365247738Sbapt$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7366247738Sbapt 7367247738Sbapt if test "$GCC" = yes; then 7368247738Sbapt lt_prog_compiler_wl='-Wl,' 7369247738Sbapt lt_prog_compiler_static='-static' 7370247738Sbapt 7371247738Sbapt case $host_os in 7372247738Sbapt aix*) 7373247738Sbapt # All AIX code is PIC. 7374247738Sbapt if test "$host_cpu" = ia64; then 7375247738Sbapt # AIX 5 now supports IA64 processor 7376247738Sbapt lt_prog_compiler_static='-Bstatic' 7377247738Sbapt fi 7378247738Sbapt ;; 7379247738Sbapt 7380247738Sbapt amigaos*) 7381247738Sbapt case $host_cpu in 7382247738Sbapt powerpc) 7383247738Sbapt # see comment about AmigaOS4 .so support 7384247738Sbapt lt_prog_compiler_pic='-fPIC' 7385247738Sbapt ;; 7386247738Sbapt m68k) 7387247738Sbapt # FIXME: we need at least 68020 code to build shared libraries, but 7388247738Sbapt # adding the `-m68020' flag to GCC prevents building anything better, 7389247738Sbapt # like `-m68040'. 7390247738Sbapt lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7391247738Sbapt ;; 7392247738Sbapt esac 7393247738Sbapt ;; 7394247738Sbapt 7395247738Sbapt beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7396247738Sbapt # PIC is the default for these OSes. 7397247738Sbapt ;; 7398247738Sbapt 7399247738Sbapt mingw* | cygwin* | pw32* | os2* | cegcc*) 7400247738Sbapt # This hack is so that the source file can tell whether it is being 7401247738Sbapt # built for inclusion in a dll (and should export symbols for example). 7402247738Sbapt # Although the cygwin gcc ignores -fPIC, still need this for old-style 7403247738Sbapt # (--disable-auto-import) libraries 7404247738Sbapt lt_prog_compiler_pic='-DDLL_EXPORT' 7405247738Sbapt ;; 7406247738Sbapt 7407247738Sbapt darwin* | rhapsody*) 7408247738Sbapt # PIC is the default on this platform 7409247738Sbapt # Common symbols not allowed in MH_DYLIB files 7410247738Sbapt lt_prog_compiler_pic='-fno-common' 7411247738Sbapt ;; 7412247738Sbapt 7413247738Sbapt hpux*) 7414247738Sbapt # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7415247738Sbapt # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7416247738Sbapt # sets the default TLS model and affects inlining. 7417247738Sbapt case $host_cpu in 7418247738Sbapt hppa*64*) 7419247738Sbapt # +Z the default 7420247738Sbapt ;; 7421247738Sbapt *) 7422247738Sbapt lt_prog_compiler_pic='-fPIC' 7423247738Sbapt ;; 7424247738Sbapt esac 7425247738Sbapt ;; 7426247738Sbapt 7427247738Sbapt interix[3-9]*) 7428247738Sbapt # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7429247738Sbapt # Instead, we relocate shared libraries at runtime. 7430247738Sbapt ;; 7431247738Sbapt 7432247738Sbapt msdosdjgpp*) 7433247738Sbapt # Just because we use GCC doesn't mean we suddenly get shared libraries 7434247738Sbapt # on systems that don't support them. 7435247738Sbapt lt_prog_compiler_can_build_shared=no 7436247738Sbapt enable_shared=no 7437247738Sbapt ;; 7438247738Sbapt 7439247738Sbapt *nto* | *qnx*) 7440247738Sbapt # QNX uses GNU C++, but need to define -shared option too, otherwise 7441247738Sbapt # it will coredump. 7442247738Sbapt lt_prog_compiler_pic='-fPIC -shared' 7443247738Sbapt ;; 7444247738Sbapt 7445247738Sbapt sysv4*MP*) 7446247738Sbapt if test -d /usr/nec; then 7447247738Sbapt lt_prog_compiler_pic=-Kconform_pic 7448247738Sbapt fi 7449247738Sbapt ;; 7450247738Sbapt 7451247738Sbapt *) 7452247738Sbapt lt_prog_compiler_pic='-fPIC' 7453247738Sbapt ;; 7454247738Sbapt esac 7455247738Sbapt else 7456247738Sbapt # PORTME Check for flag to pass linker flags through the system compiler. 7457247738Sbapt case $host_os in 7458247738Sbapt aix*) 7459247738Sbapt lt_prog_compiler_wl='-Wl,' 7460247738Sbapt if test "$host_cpu" = ia64; then 7461247738Sbapt # AIX 5 now supports IA64 processor 7462247738Sbapt lt_prog_compiler_static='-Bstatic' 7463247738Sbapt else 7464247738Sbapt lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7465247738Sbapt fi 7466247738Sbapt ;; 7467247738Sbapt 7468247738Sbapt mingw* | cygwin* | pw32* | os2* | cegcc*) 7469247738Sbapt # This hack is so that the source file can tell whether it is being 7470247738Sbapt # built for inclusion in a dll (and should export symbols for example). 7471247738Sbapt lt_prog_compiler_pic='-DDLL_EXPORT' 7472247738Sbapt ;; 7473247738Sbapt 7474247738Sbapt hpux9* | hpux10* | hpux11*) 7475247738Sbapt lt_prog_compiler_wl='-Wl,' 7476247738Sbapt # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7477247738Sbapt # not for PA HP-UX. 7478247738Sbapt case $host_cpu in 7479247738Sbapt hppa*64*|ia64*) 7480247738Sbapt # +Z the default 7481247738Sbapt ;; 7482247738Sbapt *) 7483247738Sbapt lt_prog_compiler_pic='+Z' 7484247738Sbapt ;; 7485247738Sbapt esac 7486247738Sbapt # Is there a better lt_prog_compiler_static that works with the bundled CC? 7487247738Sbapt lt_prog_compiler_static='${wl}-a ${wl}archive' 7488247738Sbapt ;; 7489247738Sbapt 7490247738Sbapt irix5* | irix6* | nonstopux*) 7491247738Sbapt lt_prog_compiler_wl='-Wl,' 7492247738Sbapt # PIC (with -KPIC) is the default. 7493247738Sbapt lt_prog_compiler_static='-non_shared' 7494247738Sbapt ;; 7495247738Sbapt 7496247738Sbapt linux* | k*bsd*-gnu | kopensolaris*-gnu) 7497247738Sbapt case $cc_basename in 7498247738Sbapt # old Intel for x86_64 which still supported -KPIC. 7499247738Sbapt ecc*) 7500247738Sbapt lt_prog_compiler_wl='-Wl,' 7501247738Sbapt lt_prog_compiler_pic='-KPIC' 7502247738Sbapt lt_prog_compiler_static='-static' 7503247738Sbapt ;; 7504247738Sbapt # icc used to be incompatible with GCC. 7505247738Sbapt # ICC 10 doesn't accept -KPIC any more. 7506247738Sbapt icc* | ifort*) 7507247738Sbapt lt_prog_compiler_wl='-Wl,' 7508247738Sbapt lt_prog_compiler_pic='-fPIC' 7509247738Sbapt lt_prog_compiler_static='-static' 7510247738Sbapt ;; 7511247738Sbapt # Lahey Fortran 8.1. 7512247738Sbapt lf95*) 7513247738Sbapt lt_prog_compiler_wl='-Wl,' 7514247738Sbapt lt_prog_compiler_pic='--shared' 7515247738Sbapt lt_prog_compiler_static='--static' 7516247738Sbapt ;; 7517247738Sbapt pgcc* | pgf77* | pgf90* | pgf95*) 7518247738Sbapt # Portland Group compilers (*not* the Pentium gcc compiler, 7519247738Sbapt # which looks to be a dead project) 7520247738Sbapt lt_prog_compiler_wl='-Wl,' 7521247738Sbapt lt_prog_compiler_pic='-fpic' 7522247738Sbapt lt_prog_compiler_static='-Bstatic' 7523247738Sbapt ;; 7524247738Sbapt ccc*) 7525247738Sbapt lt_prog_compiler_wl='-Wl,' 7526247738Sbapt # All Alpha code is PIC. 7527247738Sbapt lt_prog_compiler_static='-non_shared' 7528247738Sbapt ;; 7529247738Sbapt xl*) 7530247738Sbapt # IBM XL C 8.0/Fortran 10.1 on PPC 7531247738Sbapt lt_prog_compiler_wl='-Wl,' 7532247738Sbapt lt_prog_compiler_pic='-qpic' 7533247738Sbapt lt_prog_compiler_static='-qstaticlink' 7534247738Sbapt ;; 7535247738Sbapt *) 7536247738Sbapt case `$CC -V 2>&1 | sed 5q` in 7537247738Sbapt *Sun\ C*) 7538247738Sbapt # Sun C 5.9 7539247738Sbapt lt_prog_compiler_pic='-KPIC' 7540247738Sbapt lt_prog_compiler_static='-Bstatic' 7541247738Sbapt lt_prog_compiler_wl='-Wl,' 7542247738Sbapt ;; 7543247738Sbapt *Sun\ F*) 7544247738Sbapt # Sun Fortran 8.3 passes all unrecognized flags to the linker 7545247738Sbapt lt_prog_compiler_pic='-KPIC' 7546247738Sbapt lt_prog_compiler_static='-Bstatic' 7547247738Sbapt lt_prog_compiler_wl='' 7548247738Sbapt ;; 7549247738Sbapt esac 7550247738Sbapt ;; 7551247738Sbapt esac 7552247738Sbapt ;; 7553247738Sbapt 7554247738Sbapt newsos6) 7555247738Sbapt lt_prog_compiler_pic='-KPIC' 7556247738Sbapt lt_prog_compiler_static='-Bstatic' 7557247738Sbapt ;; 7558247738Sbapt 7559247738Sbapt *nto* | *qnx*) 7560247738Sbapt # QNX uses GNU C++, but need to define -shared option too, otherwise 7561247738Sbapt # it will coredump. 7562247738Sbapt lt_prog_compiler_pic='-fPIC -shared' 7563247738Sbapt ;; 7564247738Sbapt 7565247738Sbapt osf3* | osf4* | osf5*) 7566247738Sbapt lt_prog_compiler_wl='-Wl,' 7567247738Sbapt # All OSF/1 code is PIC. 7568247738Sbapt lt_prog_compiler_static='-non_shared' 7569247738Sbapt ;; 7570247738Sbapt 7571247738Sbapt rdos*) 7572247738Sbapt lt_prog_compiler_static='-non_shared' 7573247738Sbapt ;; 7574247738Sbapt 7575247738Sbapt solaris*) 7576247738Sbapt lt_prog_compiler_pic='-KPIC' 7577247738Sbapt lt_prog_compiler_static='-Bstatic' 7578247738Sbapt case $cc_basename in 7579247738Sbapt f77* | f90* | f95*) 7580247738Sbapt lt_prog_compiler_wl='-Qoption ld ';; 7581247738Sbapt *) 7582247738Sbapt lt_prog_compiler_wl='-Wl,';; 7583247738Sbapt esac 7584247738Sbapt ;; 7585247738Sbapt 7586247738Sbapt sunos4*) 7587247738Sbapt lt_prog_compiler_wl='-Qoption ld ' 7588247738Sbapt lt_prog_compiler_pic='-PIC' 7589247738Sbapt lt_prog_compiler_static='-Bstatic' 7590247738Sbapt ;; 7591247738Sbapt 7592247738Sbapt sysv4 | sysv4.2uw2* | sysv4.3*) 7593247738Sbapt lt_prog_compiler_wl='-Wl,' 7594247738Sbapt lt_prog_compiler_pic='-KPIC' 7595247738Sbapt lt_prog_compiler_static='-Bstatic' 7596247738Sbapt ;; 7597247738Sbapt 7598247738Sbapt sysv4*MP*) 7599247738Sbapt if test -d /usr/nec ;then 7600247738Sbapt lt_prog_compiler_pic='-Kconform_pic' 7601247738Sbapt lt_prog_compiler_static='-Bstatic' 7602247738Sbapt fi 7603247738Sbapt ;; 7604247738Sbapt 7605247738Sbapt sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7606247738Sbapt lt_prog_compiler_wl='-Wl,' 7607247738Sbapt lt_prog_compiler_pic='-KPIC' 7608247738Sbapt lt_prog_compiler_static='-Bstatic' 7609247738Sbapt ;; 7610247738Sbapt 7611247738Sbapt unicos*) 7612247738Sbapt lt_prog_compiler_wl='-Wl,' 7613247738Sbapt lt_prog_compiler_can_build_shared=no 7614247738Sbapt ;; 7615247738Sbapt 7616247738Sbapt uts4*) 7617247738Sbapt lt_prog_compiler_pic='-pic' 7618247738Sbapt lt_prog_compiler_static='-Bstatic' 7619247738Sbapt ;; 7620247738Sbapt 7621247738Sbapt *) 7622247738Sbapt lt_prog_compiler_can_build_shared=no 7623247738Sbapt ;; 7624247738Sbapt esac 7625247738Sbapt fi 7626247738Sbapt 7627247738Sbaptcase $host_os in 7628247738Sbapt # For platforms which do not support PIC, -DPIC is meaningless: 7629247738Sbapt *djgpp*) 7630247738Sbapt lt_prog_compiler_pic= 7631247738Sbapt ;; 7632247738Sbapt *) 7633247738Sbapt lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7634247738Sbapt ;; 7635247738Sbaptesac 7636247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 7637247738Sbapt$as_echo "$lt_prog_compiler_pic" >&6; } 7638247738Sbapt 7639247738Sbapt 7640247738Sbapt 7641247738Sbapt 7642247738Sbapt 7643247738Sbapt 7644247738Sbapt# 7645247738Sbapt# Check to make sure the PIC flag actually works. 7646247738Sbapt# 7647247738Sbaptif test -n "$lt_prog_compiler_pic"; then 7648247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7649247738Sbapt$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7650247738Sbaptif test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 7651247738Sbapt $as_echo_n "(cached) " >&6 7652247738Sbaptelse 7653247738Sbapt lt_cv_prog_compiler_pic_works=no 7654247738Sbapt ac_outfile=conftest.$ac_objext 7655247738Sbapt echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7656247738Sbapt lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7657247738Sbapt # Insert the option either (1) after the last *FLAGS variable, or 7658247738Sbapt # (2) before a word containing "conftest.", or (3) at the end. 7659247738Sbapt # Note that $ac_compile itself does not contain backslashes and begins 7660247738Sbapt # with a dollar sign (not a hyphen), so the echo should work correctly. 7661247738Sbapt # The option is referenced via a variable to avoid confusing sed. 7662247738Sbapt lt_compile=`echo "$ac_compile" | $SED \ 7663247738Sbapt -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7664247738Sbapt -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7665247738Sbapt -e 's:$: $lt_compiler_flag:'` 7666247738Sbapt (eval echo "\"\$as_me:7666: $lt_compile\"" >&5) 7667247738Sbapt (eval "$lt_compile" 2>conftest.err) 7668247738Sbapt ac_status=$? 7669247738Sbapt cat conftest.err >&5 7670247738Sbapt echo "$as_me:7670: \$? = $ac_status" >&5 7671247738Sbapt if (exit $ac_status) && test -s "$ac_outfile"; then 7672247738Sbapt # The compiler can only warn and ignore the option if not recognized 7673247738Sbapt # So say no if there are warnings other than the usual output. 7674247738Sbapt $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7675247738Sbapt $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7676247738Sbapt if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7677247738Sbapt lt_cv_prog_compiler_pic_works=yes 7678247738Sbapt fi 7679247738Sbapt fi 7680247738Sbapt $RM conftest* 7681247738Sbapt 7682247738Sbaptfi 7683247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7684247738Sbapt$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7685247738Sbapt 7686247738Sbaptif test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7687247738Sbapt case $lt_prog_compiler_pic in 7688247738Sbapt "" | " "*) ;; 7689247738Sbapt *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7690247738Sbapt esac 7691247738Sbaptelse 7692247738Sbapt lt_prog_compiler_pic= 7693247738Sbapt lt_prog_compiler_can_build_shared=no 7694247738Sbaptfi 7695247738Sbapt 7696247738Sbaptfi 7697247738Sbapt 7698247738Sbapt 7699247738Sbapt 7700247738Sbapt 7701247738Sbapt 7702247738Sbapt 7703247738Sbapt# 7704247738Sbapt# Check to make sure the static flag actually works. 7705247738Sbapt# 7706247738Sbaptwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7707247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7708247738Sbapt$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7709247738Sbaptif test "${lt_cv_prog_compiler_static_works+set}" = set; then : 7710247738Sbapt $as_echo_n "(cached) " >&6 7711247738Sbaptelse 7712247738Sbapt lt_cv_prog_compiler_static_works=no 7713247738Sbapt save_LDFLAGS="$LDFLAGS" 7714247738Sbapt LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7715247738Sbapt echo "$lt_simple_link_test_code" > conftest.$ac_ext 7716247738Sbapt if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7717247738Sbapt # The linker can only warn and ignore the option if not recognized 7718247738Sbapt # So say no if there are warnings 7719247738Sbapt if test -s conftest.err; then 7720247738Sbapt # Append any errors to the config.log. 7721247738Sbapt cat conftest.err 1>&5 7722247738Sbapt $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7723247738Sbapt $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7724247738Sbapt if diff conftest.exp conftest.er2 >/dev/null; then 7725247738Sbapt lt_cv_prog_compiler_static_works=yes 7726247738Sbapt fi 7727247738Sbapt else 7728247738Sbapt lt_cv_prog_compiler_static_works=yes 7729247738Sbapt fi 7730247738Sbapt fi 7731247738Sbapt $RM -r conftest* 7732247738Sbapt LDFLAGS="$save_LDFLAGS" 7733247738Sbapt 7734247738Sbaptfi 7735247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 7736247738Sbapt$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7737247738Sbapt 7738247738Sbaptif test x"$lt_cv_prog_compiler_static_works" = xyes; then 7739247738Sbapt : 7740247738Sbaptelse 7741247738Sbapt lt_prog_compiler_static= 7742247738Sbaptfi 7743247738Sbapt 7744247738Sbapt 7745247738Sbapt 7746247738Sbapt 7747247738Sbapt 7748247738Sbapt 7749247738Sbapt 7750247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7751247738Sbapt$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7752247738Sbaptif test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7753247738Sbapt $as_echo_n "(cached) " >&6 7754247738Sbaptelse 7755247738Sbapt lt_cv_prog_compiler_c_o=no 7756247738Sbapt $RM -r conftest 2>/dev/null 7757247738Sbapt mkdir conftest 7758247738Sbapt cd conftest 7759247738Sbapt mkdir out 7760247738Sbapt echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7761247738Sbapt 7762247738Sbapt lt_compiler_flag="-o out/conftest2.$ac_objext" 7763247738Sbapt # Insert the option either (1) after the last *FLAGS variable, or 7764247738Sbapt # (2) before a word containing "conftest.", or (3) at the end. 7765247738Sbapt # Note that $ac_compile itself does not contain backslashes and begins 7766247738Sbapt # with a dollar sign (not a hyphen), so the echo should work correctly. 7767247738Sbapt lt_compile=`echo "$ac_compile" | $SED \ 7768247738Sbapt -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7769247738Sbapt -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7770247738Sbapt -e 's:$: $lt_compiler_flag:'` 7771247738Sbapt (eval echo "\"\$as_me:7771: $lt_compile\"" >&5) 7772247738Sbapt (eval "$lt_compile" 2>out/conftest.err) 7773247738Sbapt ac_status=$? 7774247738Sbapt cat out/conftest.err >&5 7775247738Sbapt echo "$as_me:7775: \$? = $ac_status" >&5 7776247738Sbapt if (exit $ac_status) && test -s out/conftest2.$ac_objext 7777247738Sbapt then 7778247738Sbapt # The compiler can only warn and ignore the option if not recognized 7779247738Sbapt # So say no if there are warnings 7780247738Sbapt $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7781247738Sbapt $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7782247738Sbapt if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7783247738Sbapt lt_cv_prog_compiler_c_o=yes 7784247738Sbapt fi 7785247738Sbapt fi 7786247738Sbapt chmod u+w . 2>&5 7787247738Sbapt $RM conftest* 7788247738Sbapt # SGI C++ compiler will create directory out/ii_files/ for 7789247738Sbapt # template instantiation 7790247738Sbapt test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7791247738Sbapt $RM out/* && rmdir out 7792247738Sbapt cd .. 7793247738Sbapt $RM -r conftest 7794247738Sbapt $RM conftest* 7795247738Sbapt 7796247738Sbaptfi 7797247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7798247738Sbapt$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7799247738Sbapt 7800247738Sbapt 7801247738Sbapt 7802247738Sbapt 7803247738Sbapt 7804247738Sbapt 7805247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7806247738Sbapt$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7807247738Sbaptif test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7808247738Sbapt $as_echo_n "(cached) " >&6 7809247738Sbaptelse 7810247738Sbapt lt_cv_prog_compiler_c_o=no 7811247738Sbapt $RM -r conftest 2>/dev/null 7812247738Sbapt mkdir conftest 7813247738Sbapt cd conftest 7814247738Sbapt mkdir out 7815247738Sbapt echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7816247738Sbapt 7817247738Sbapt lt_compiler_flag="-o out/conftest2.$ac_objext" 7818247738Sbapt # Insert the option either (1) after the last *FLAGS variable, or 7819247738Sbapt # (2) before a word containing "conftest.", or (3) at the end. 7820247738Sbapt # Note that $ac_compile itself does not contain backslashes and begins 7821247738Sbapt # with a dollar sign (not a hyphen), so the echo should work correctly. 7822247738Sbapt lt_compile=`echo "$ac_compile" | $SED \ 7823247738Sbapt -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7824247738Sbapt -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7825247738Sbapt -e 's:$: $lt_compiler_flag:'` 7826247738Sbapt (eval echo "\"\$as_me:7826: $lt_compile\"" >&5) 7827247738Sbapt (eval "$lt_compile" 2>out/conftest.err) 7828247738Sbapt ac_status=$? 7829247738Sbapt cat out/conftest.err >&5 7830247738Sbapt echo "$as_me:7830: \$? = $ac_status" >&5 7831247738Sbapt if (exit $ac_status) && test -s out/conftest2.$ac_objext 7832247738Sbapt then 7833247738Sbapt # The compiler can only warn and ignore the option if not recognized 7834247738Sbapt # So say no if there are warnings 7835247738Sbapt $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7836247738Sbapt $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7837247738Sbapt if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7838247738Sbapt lt_cv_prog_compiler_c_o=yes 7839247738Sbapt fi 7840247738Sbapt fi 7841247738Sbapt chmod u+w . 2>&5 7842247738Sbapt $RM conftest* 7843247738Sbapt # SGI C++ compiler will create directory out/ii_files/ for 7844247738Sbapt # template instantiation 7845247738Sbapt test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7846247738Sbapt $RM out/* && rmdir out 7847247738Sbapt cd .. 7848247738Sbapt $RM -r conftest 7849247738Sbapt $RM conftest* 7850247738Sbapt 7851247738Sbaptfi 7852247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7853247738Sbapt$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7854247738Sbapt 7855247738Sbapt 7856247738Sbapt 7857247738Sbapt 7858247738Sbapthard_links="nottested" 7859247738Sbaptif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7860247738Sbapt # do not overwrite the value of need_locks provided by the user 7861247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 7862247738Sbapt$as_echo_n "checking if we can lock with hard links... " >&6; } 7863247738Sbapt hard_links=yes 7864247738Sbapt $RM conftest* 7865247738Sbapt ln conftest.a conftest.b 2>/dev/null && hard_links=no 7866247738Sbapt touch conftest.a 7867247738Sbapt ln conftest.a conftest.b 2>&5 || hard_links=no 7868247738Sbapt ln conftest.a conftest.b 2>/dev/null && hard_links=no 7869247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 7870247738Sbapt$as_echo "$hard_links" >&6; } 7871247738Sbapt if test "$hard_links" = no; then 7872247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7873247738Sbapt$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7874247738Sbapt need_locks=warn 7875247738Sbapt fi 7876247738Sbaptelse 7877247738Sbapt need_locks=no 7878247738Sbaptfi 7879247738Sbapt 7880247738Sbapt 7881247738Sbapt 7882247738Sbapt 7883247738Sbapt 7884247738Sbapt 7885247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7886247738Sbapt$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 7887247738Sbapt 7888247738Sbapt runpath_var= 7889247738Sbapt allow_undefined_flag= 7890247738Sbapt always_export_symbols=no 7891247738Sbapt archive_cmds= 7892247738Sbapt archive_expsym_cmds= 7893247738Sbapt compiler_needs_object=no 7894247738Sbapt enable_shared_with_static_runtimes=no 7895247738Sbapt export_dynamic_flag_spec= 7896247738Sbapt export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7897247738Sbapt hardcode_automatic=no 7898247738Sbapt hardcode_direct=no 7899247738Sbapt hardcode_direct_absolute=no 7900247738Sbapt hardcode_libdir_flag_spec= 7901247738Sbapt hardcode_libdir_flag_spec_ld= 7902247738Sbapt hardcode_libdir_separator= 7903247738Sbapt hardcode_minus_L=no 7904247738Sbapt hardcode_shlibpath_var=unsupported 7905247738Sbapt inherit_rpath=no 7906247738Sbapt link_all_deplibs=unknown 7907247738Sbapt module_cmds= 7908247738Sbapt module_expsym_cmds= 7909247738Sbapt old_archive_from_new_cmds= 7910247738Sbapt old_archive_from_expsyms_cmds= 7911247738Sbapt thread_safe_flag_spec= 7912247738Sbapt whole_archive_flag_spec= 7913247738Sbapt # include_expsyms should be a list of space-separated symbols to be *always* 7914247738Sbapt # included in the symbol list 7915247738Sbapt include_expsyms= 7916247738Sbapt # exclude_expsyms can be an extended regexp of symbols to exclude 7917247738Sbapt # it will be wrapped by ` (' and `)$', so one must not match beginning or 7918247738Sbapt # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7919247738Sbapt # as well as any symbol that contains `d'. 7920247738Sbapt exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 7921247738Sbapt # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7922247738Sbapt # platforms (ab)use it in PIC code, but their linkers get confused if 7923247738Sbapt # the symbol is explicitly referenced. Since portable code cannot 7924247738Sbapt # rely on this symbol name, it's probably fine to never include it in 7925247738Sbapt # preloaded symbol tables. 7926247738Sbapt # Exclude shared library initialization/finalization symbols. 7927247738Sbapt extract_expsyms_cmds= 7928247738Sbapt 7929247738Sbapt case $host_os in 7930247738Sbapt cygwin* | mingw* | pw32* | cegcc*) 7931247738Sbapt # FIXME: the MSVC++ port hasn't been tested in a loooong time 7932247738Sbapt # When not using gcc, we currently assume that we are using 7933247738Sbapt # Microsoft Visual C++. 7934247738Sbapt if test "$GCC" != yes; then 7935247738Sbapt with_gnu_ld=no 7936247738Sbapt fi 7937247738Sbapt ;; 7938247738Sbapt interix*) 7939247738Sbapt # we just hope/assume this is gcc and not c89 (= MSVC++) 7940247738Sbapt with_gnu_ld=yes 7941247738Sbapt ;; 7942247738Sbapt openbsd*) 7943247738Sbapt with_gnu_ld=no 7944247738Sbapt ;; 7945247738Sbapt linux* | k*bsd*-gnu) 7946247738Sbapt link_all_deplibs=no 7947247738Sbapt ;; 7948247738Sbapt esac 7949247738Sbapt 7950247738Sbapt ld_shlibs=yes 7951247738Sbapt if test "$with_gnu_ld" = yes; then 7952247738Sbapt # If archive_cmds runs LD, not CC, wlarc should be empty 7953247738Sbapt wlarc='${wl}' 7954247738Sbapt 7955247738Sbapt # Set some defaults for GNU ld with shared library support. These 7956247738Sbapt # are reset later if shared libraries are not supported. Putting them 7957247738Sbapt # here allows them to be overridden if necessary. 7958247738Sbapt runpath_var=LD_RUN_PATH 7959247738Sbapt hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7960247738Sbapt export_dynamic_flag_spec='${wl}--export-dynamic' 7961247738Sbapt # ancient GNU ld didn't support --whole-archive et. al. 7962247738Sbapt if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 7963247738Sbapt whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7964247738Sbapt else 7965247738Sbapt whole_archive_flag_spec= 7966247738Sbapt fi 7967247738Sbapt supports_anon_versioning=no 7968247738Sbapt case `$LD -v 2>&1` in 7969247738Sbapt *GNU\ gold*) supports_anon_versioning=yes ;; 7970247738Sbapt *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7971247738Sbapt *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7972247738Sbapt *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7973247738Sbapt *\ 2.11.*) ;; # other 2.11 versions 7974247738Sbapt *) supports_anon_versioning=yes ;; 7975247738Sbapt esac 7976247738Sbapt 7977247738Sbapt # See if GNU ld supports shared libraries. 7978247738Sbapt case $host_os in 7979247738Sbapt aix[3-9]*) 7980247738Sbapt # On AIX/PPC, the GNU linker is very broken 7981247738Sbapt if test "$host_cpu" != ia64; then 7982247738Sbapt ld_shlibs=no 7983247738Sbapt cat <<_LT_EOF 1>&2 7984247738Sbapt 7985247738Sbapt*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7986247738Sbapt*** to be unable to reliably create shared libraries on AIX. 7987247738Sbapt*** Therefore, libtool is disabling shared libraries support. If you 7988247738Sbapt*** really care for shared libraries, you may want to modify your PATH 7989247738Sbapt*** so that a non-GNU linker is found, and then restart. 7990247738Sbapt 7991247738Sbapt_LT_EOF 7992247738Sbapt fi 7993247738Sbapt ;; 7994247738Sbapt 7995247738Sbapt amigaos*) 7996247738Sbapt case $host_cpu in 7997247738Sbapt powerpc) 7998247738Sbapt # see comment about AmigaOS4 .so support 7999247738Sbapt archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8000247738Sbapt archive_expsym_cmds='' 8001247738Sbapt ;; 8002247738Sbapt m68k) 8003247738Sbapt 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)' 8004247738Sbapt hardcode_libdir_flag_spec='-L$libdir' 8005247738Sbapt hardcode_minus_L=yes 8006247738Sbapt ;; 8007247738Sbapt esac 8008247738Sbapt ;; 8009247738Sbapt 8010247738Sbapt beos*) 8011247738Sbapt if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8012247738Sbapt allow_undefined_flag=unsupported 8013247738Sbapt # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8014247738Sbapt # support --undefined. This deserves some investigation. FIXME 8015247738Sbapt archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8016247738Sbapt else 8017247738Sbapt ld_shlibs=no 8018247738Sbapt fi 8019247738Sbapt ;; 8020247738Sbapt 8021247738Sbapt cygwin* | mingw* | pw32* | cegcc*) 8022247738Sbapt # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8023247738Sbapt # as there is no search path for DLLs. 8024247738Sbapt hardcode_libdir_flag_spec='-L$libdir' 8025247738Sbapt allow_undefined_flag=unsupported 8026247738Sbapt always_export_symbols=no 8027247738Sbapt enable_shared_with_static_runtimes=yes 8028247738Sbapt export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8029247738Sbapt 8030247738Sbapt if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8031247738Sbapt archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8032247738Sbapt # If the export-symbols file already is a .def file (1st line 8033247738Sbapt # is EXPORTS), use it as is; otherwise, prepend... 8034247738Sbapt archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8035247738Sbapt cp $export_symbols $output_objdir/$soname.def; 8036247738Sbapt else 8037247738Sbapt echo EXPORTS > $output_objdir/$soname.def; 8038247738Sbapt cat $export_symbols >> $output_objdir/$soname.def; 8039247738Sbapt fi~ 8040247738Sbapt $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8041247738Sbapt else 8042247738Sbapt ld_shlibs=no 8043247738Sbapt fi 8044247738Sbapt ;; 8045247738Sbapt 8046247738Sbapt interix[3-9]*) 8047247738Sbapt hardcode_direct=no 8048247738Sbapt hardcode_shlibpath_var=no 8049247738Sbapt hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8050247738Sbapt export_dynamic_flag_spec='${wl}-E' 8051247738Sbapt # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8052247738Sbapt # Instead, shared libraries are loaded at an image base (0x10000000 by 8053247738Sbapt # default) and relocated if they conflict, which is a slow very memory 8054247738Sbapt # consuming and fragmenting process. To avoid this, we pick a random, 8055247738Sbapt # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8056247738Sbapt # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8057247738Sbapt archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8058247738Sbapt 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' 8059247738Sbapt ;; 8060247738Sbapt 8061247738Sbapt gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8062247738Sbapt tmp_diet=no 8063247738Sbapt if test "$host_os" = linux-dietlibc; then 8064247738Sbapt case $cc_basename in 8065247738Sbapt diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8066247738Sbapt esac 8067247738Sbapt fi 8068247738Sbapt if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8069247738Sbapt && test "$tmp_diet" = no 8070247738Sbapt then 8071247738Sbapt tmp_addflag= 8072247738Sbapt tmp_sharedflag='-shared' 8073247738Sbapt case $cc_basename,$host_cpu in 8074247738Sbapt pgcc*) # Portland Group C compiler 8075247738Sbapt whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8076247738Sbapt tmp_addflag=' $pic_flag' 8077247738Sbapt ;; 8078247738Sbapt pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8079247738Sbapt whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8080247738Sbapt tmp_addflag=' $pic_flag -Mnomain' ;; 8081247738Sbapt ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8082247738Sbapt tmp_addflag=' -i_dynamic' ;; 8083247738Sbapt efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8084247738Sbapt tmp_addflag=' -i_dynamic -nofor_main' ;; 8085247738Sbapt ifc* | ifort*) # Intel Fortran compiler 8086247738Sbapt tmp_addflag=' -nofor_main' ;; 8087247738Sbapt lf95*) # Lahey Fortran 8.1 8088247738Sbapt whole_archive_flag_spec= 8089247738Sbapt tmp_sharedflag='--shared' ;; 8090247738Sbapt xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8091247738Sbapt tmp_sharedflag='-qmkshrobj' 8092247738Sbapt tmp_addflag= ;; 8093247738Sbapt esac 8094247738Sbapt case `$CC -V 2>&1 | sed 5q` in 8095247738Sbapt *Sun\ C*) # Sun C 5.9 8096247738Sbapt whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8097247738Sbapt compiler_needs_object=yes 8098247738Sbapt tmp_sharedflag='-G' ;; 8099247738Sbapt *Sun\ F*) # Sun Fortran 8.3 8100247738Sbapt tmp_sharedflag='-G' ;; 8101247738Sbapt esac 8102247738Sbapt archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8103247738Sbapt 8104247738Sbapt if test "x$supports_anon_versioning" = xyes; then 8105247738Sbapt archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8106247738Sbapt cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8107247738Sbapt echo "local: *; };" >> $output_objdir/$libname.ver~ 8108247738Sbapt $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8109247738Sbapt fi 8110247738Sbapt 8111247738Sbapt case $cc_basename in 8112247738Sbapt xlf*) 8113247738Sbapt # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8114247738Sbapt whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8115247738Sbapt hardcode_libdir_flag_spec= 8116247738Sbapt hardcode_libdir_flag_spec_ld='-rpath $libdir' 8117247738Sbapt archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8118247738Sbapt if test "x$supports_anon_versioning" = xyes; then 8119247738Sbapt archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8120247738Sbapt cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8121247738Sbapt echo "local: *; };" >> $output_objdir/$libname.ver~ 8122247738Sbapt $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8123247738Sbapt fi 8124247738Sbapt ;; 8125247738Sbapt esac 8126247738Sbapt else 8127247738Sbapt ld_shlibs=no 8128247738Sbapt fi 8129247738Sbapt ;; 8130247738Sbapt 8131247738Sbapt netbsd* | netbsdelf*-gnu) 8132247738Sbapt if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8133247738Sbapt archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8134247738Sbapt wlarc= 8135247738Sbapt else 8136247738Sbapt archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8137247738Sbapt archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8138247738Sbapt fi 8139247738Sbapt ;; 8140247738Sbapt 8141247738Sbapt solaris*) 8142247738Sbapt if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8143247738Sbapt ld_shlibs=no 8144247738Sbapt cat <<_LT_EOF 1>&2 8145247738Sbapt 8146247738Sbapt*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8147247738Sbapt*** create shared libraries on Solaris systems. Therefore, libtool 8148247738Sbapt*** is disabling shared libraries support. We urge you to upgrade GNU 8149247738Sbapt*** binutils to release 2.9.1 or newer. Another option is to modify 8150247738Sbapt*** your PATH or compiler configuration so that the native linker is 8151247738Sbapt*** used, and then restart. 8152247738Sbapt 8153247738Sbapt_LT_EOF 8154247738Sbapt elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8155247738Sbapt archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8156247738Sbapt archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8157247738Sbapt else 8158247738Sbapt ld_shlibs=no 8159247738Sbapt fi 8160247738Sbapt ;; 8161247738Sbapt 8162247738Sbapt sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8163247738Sbapt case `$LD -v 2>&1` in 8164247738Sbapt *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8165247738Sbapt ld_shlibs=no 8166247738Sbapt cat <<_LT_EOF 1>&2 8167247738Sbapt 8168247738Sbapt*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8169247738Sbapt*** reliably create shared libraries on SCO systems. Therefore, libtool 8170247738Sbapt*** is disabling shared libraries support. We urge you to upgrade GNU 8171247738Sbapt*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8172247738Sbapt*** your PATH or compiler configuration so that the native linker is 8173247738Sbapt*** used, and then restart. 8174247738Sbapt 8175247738Sbapt_LT_EOF 8176247738Sbapt ;; 8177247738Sbapt *) 8178247738Sbapt # For security reasons, it is highly recommended that you always 8179247738Sbapt # use absolute paths for naming shared libraries, and exclude the 8180247738Sbapt # DT_RUNPATH tag from executables and libraries. But doing so 8181247738Sbapt # requires that you compile everything twice, which is a pain. 8182247738Sbapt if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8183247738Sbapt hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8184247738Sbapt archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8185247738Sbapt archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8186247738Sbapt else 8187247738Sbapt ld_shlibs=no 8188247738Sbapt fi 8189247738Sbapt ;; 8190247738Sbapt esac 8191247738Sbapt ;; 8192247738Sbapt 8193247738Sbapt sunos4*) 8194247738Sbapt archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8195247738Sbapt wlarc= 8196247738Sbapt hardcode_direct=yes 8197247738Sbapt hardcode_shlibpath_var=no 8198247738Sbapt ;; 8199247738Sbapt 8200247738Sbapt *) 8201247738Sbapt if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8202247738Sbapt archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8203247738Sbapt archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8204247738Sbapt else 8205247738Sbapt ld_shlibs=no 8206247738Sbapt fi 8207247738Sbapt ;; 8208247738Sbapt esac 8209247738Sbapt 8210247738Sbapt if test "$ld_shlibs" = no; then 8211247738Sbapt runpath_var= 8212247738Sbapt hardcode_libdir_flag_spec= 8213247738Sbapt export_dynamic_flag_spec= 8214247738Sbapt whole_archive_flag_spec= 8215247738Sbapt fi 8216247738Sbapt else 8217247738Sbapt # PORTME fill in a description of your system's linker (not GNU ld) 8218247738Sbapt case $host_os in 8219247738Sbapt aix3*) 8220247738Sbapt allow_undefined_flag=unsupported 8221247738Sbapt always_export_symbols=yes 8222247738Sbapt 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' 8223247738Sbapt # Note: this linker hardcodes the directories in LIBPATH if there 8224247738Sbapt # are no directories specified by -L. 8225247738Sbapt hardcode_minus_L=yes 8226247738Sbapt if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8227247738Sbapt # Neither direct hardcoding nor static linking is supported with a 8228247738Sbapt # broken collect2. 8229247738Sbapt hardcode_direct=unsupported 8230247738Sbapt fi 8231247738Sbapt ;; 8232247738Sbapt 8233247738Sbapt aix[4-9]*) 8234247738Sbapt if test "$host_cpu" = ia64; then 8235247738Sbapt # On IA64, the linker does run time linking by default, so we don't 8236247738Sbapt # have to do anything special. 8237247738Sbapt aix_use_runtimelinking=no 8238247738Sbapt exp_sym_flag='-Bexport' 8239247738Sbapt no_entry_flag="" 8240247738Sbapt else 8241247738Sbapt # If we're using GNU nm, then we don't want the "-C" option. 8242247738Sbapt # -C means demangle to AIX nm, but means don't demangle with GNU nm 8243247738Sbapt if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8244247738Sbapt export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8245247738Sbapt else 8246247738Sbapt 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' 8247247738Sbapt fi 8248247738Sbapt aix_use_runtimelinking=no 8249247738Sbapt 8250247738Sbapt # Test if we are trying to use run time linking or normal 8251247738Sbapt # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8252247738Sbapt # need to do runtime linking. 8253247738Sbapt case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8254247738Sbapt for ld_flag in $LDFLAGS; do 8255247738Sbapt if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8256247738Sbapt aix_use_runtimelinking=yes 8257247738Sbapt break 8258247738Sbapt fi 8259247738Sbapt done 8260247738Sbapt ;; 8261247738Sbapt esac 8262247738Sbapt 8263247738Sbapt exp_sym_flag='-bexport' 8264247738Sbapt no_entry_flag='-bnoentry' 8265247738Sbapt fi 8266247738Sbapt 8267247738Sbapt # When large executables or shared objects are built, AIX ld can 8268247738Sbapt # have problems creating the table of contents. If linking a library 8269247738Sbapt # or program results in "error TOC overflow" add -mminimal-toc to 8270247738Sbapt # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8271247738Sbapt # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8272247738Sbapt 8273247738Sbapt archive_cmds='' 8274247738Sbapt hardcode_direct=yes 8275247738Sbapt hardcode_direct_absolute=yes 8276247738Sbapt hardcode_libdir_separator=':' 8277247738Sbapt link_all_deplibs=yes 8278247738Sbapt file_list_spec='${wl}-f,' 8279247738Sbapt 8280247738Sbapt if test "$GCC" = yes; then 8281247738Sbapt case $host_os in aix4.[012]|aix4.[012].*) 8282247738Sbapt # We only want to do this on AIX 4.2 and lower, the check 8283247738Sbapt # below for broken collect2 doesn't work under 4.3+ 8284247738Sbapt collect2name=`${CC} -print-prog-name=collect2` 8285247738Sbapt if test -f "$collect2name" && 8286247738Sbapt strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8287247738Sbapt then 8288247738Sbapt # We have reworked collect2 8289247738Sbapt : 8290247738Sbapt else 8291247738Sbapt # We have old collect2 8292247738Sbapt hardcode_direct=unsupported 8293247738Sbapt # It fails to find uninstalled libraries when the uninstalled 8294247738Sbapt # path is not listed in the libpath. Setting hardcode_minus_L 8295247738Sbapt # to unsupported forces relinking 8296247738Sbapt hardcode_minus_L=yes 8297247738Sbapt hardcode_libdir_flag_spec='-L$libdir' 8298247738Sbapt hardcode_libdir_separator= 8299247738Sbapt fi 8300247738Sbapt ;; 8301247738Sbapt esac 8302247738Sbapt shared_flag='-shared' 8303247738Sbapt if test "$aix_use_runtimelinking" = yes; then 8304247738Sbapt shared_flag="$shared_flag "'${wl}-G' 8305247738Sbapt fi 8306247738Sbapt link_all_deplibs=no 8307247738Sbapt else 8308247738Sbapt # not using gcc 8309247738Sbapt if test "$host_cpu" = ia64; then 8310247738Sbapt # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8311247738Sbapt # chokes on -Wl,-G. The following line is correct: 8312247738Sbapt shared_flag='-G' 8313247738Sbapt else 8314247738Sbapt if test "$aix_use_runtimelinking" = yes; then 8315247738Sbapt shared_flag='${wl}-G' 8316247738Sbapt else 8317247738Sbapt shared_flag='${wl}-bM:SRE' 8318247738Sbapt fi 8319247738Sbapt fi 8320247738Sbapt fi 8321247738Sbapt 8322247738Sbapt export_dynamic_flag_spec='${wl}-bexpall' 8323247738Sbapt # It seems that -bexpall does not export symbols beginning with 8324247738Sbapt # underscore (_), so it is better to generate a list of symbols to export. 8325247738Sbapt always_export_symbols=yes 8326247738Sbapt if test "$aix_use_runtimelinking" = yes; then 8327247738Sbapt # Warning - without using the other runtime loading flags (-brtl), 8328247738Sbapt # -berok will link without error, but may produce a broken library. 8329247738Sbapt allow_undefined_flag='-berok' 8330247738Sbapt # Determine the default libpath from the value encoded in an 8331247738Sbapt # empty executable. 8332247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8333247738Sbapt/* end confdefs.h. */ 8334247738Sbapt 8335247738Sbaptint 8336247738Sbaptmain () 8337247738Sbapt{ 8338247738Sbapt 8339247738Sbapt ; 8340247738Sbapt return 0; 8341247738Sbapt} 8342247738Sbapt_ACEOF 8343247738Sbaptif ac_fn_c_try_link "$LINENO"; then : 8344247738Sbapt 8345247738Sbaptlt_aix_libpath_sed=' 8346247738Sbapt /Import File Strings/,/^$/ { 8347247738Sbapt /^0/ { 8348247738Sbapt s/^0 *\(.*\)$/\1/ 8349247738Sbapt p 8350247738Sbapt } 8351247738Sbapt }' 8352247738Sbaptaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8353247738Sbapt# Check for a 64-bit object if we didn't find anything. 8354247738Sbaptif test -z "$aix_libpath"; then 8355247738Sbapt aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8356247738Sbaptfi 8357247738Sbaptfi 8358247738Sbaptrm -f core conftest.err conftest.$ac_objext \ 8359247738Sbapt conftest$ac_exeext conftest.$ac_ext 8360247738Sbaptif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8361247738Sbapt 8362247738Sbapt hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8363247738Sbapt archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8364247738Sbapt else 8365247738Sbapt if test "$host_cpu" = ia64; then 8366247738Sbapt hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8367247738Sbapt allow_undefined_flag="-z nodefs" 8368247738Sbapt 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" 8369247738Sbapt else 8370247738Sbapt # Determine the default libpath from the value encoded in an 8371247738Sbapt # empty executable. 8372247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8373247738Sbapt/* end confdefs.h. */ 8374247738Sbapt 8375247738Sbaptint 8376247738Sbaptmain () 8377247738Sbapt{ 8378247738Sbapt 8379247738Sbapt ; 8380247738Sbapt return 0; 8381247738Sbapt} 8382247738Sbapt_ACEOF 8383247738Sbaptif ac_fn_c_try_link "$LINENO"; then : 8384247738Sbapt 8385247738Sbaptlt_aix_libpath_sed=' 8386247738Sbapt /Import File Strings/,/^$/ { 8387247738Sbapt /^0/ { 8388247738Sbapt s/^0 *\(.*\)$/\1/ 8389247738Sbapt p 8390247738Sbapt } 8391247738Sbapt }' 8392247738Sbaptaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8393247738Sbapt# Check for a 64-bit object if we didn't find anything. 8394247738Sbaptif test -z "$aix_libpath"; then 8395247738Sbapt aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8396247738Sbaptfi 8397247738Sbaptfi 8398247738Sbaptrm -f core conftest.err conftest.$ac_objext \ 8399247738Sbapt conftest$ac_exeext conftest.$ac_ext 8400247738Sbaptif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8401247738Sbapt 8402247738Sbapt hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8403247738Sbapt # Warning - without using the other run time loading flags, 8404247738Sbapt # -berok will link without error, but may produce a broken library. 8405247738Sbapt no_undefined_flag=' ${wl}-bernotok' 8406247738Sbapt allow_undefined_flag=' ${wl}-berok' 8407247738Sbapt # Exported symbols can be pulled into shared objects from archives 8408247738Sbapt whole_archive_flag_spec='$convenience' 8409247738Sbapt archive_cmds_need_lc=yes 8410247738Sbapt # This is similar to how AIX traditionally builds its shared libraries. 8411247738Sbapt 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' 8412247738Sbapt fi 8413247738Sbapt fi 8414247738Sbapt ;; 8415247738Sbapt 8416247738Sbapt amigaos*) 8417247738Sbapt case $host_cpu in 8418247738Sbapt powerpc) 8419247738Sbapt # see comment about AmigaOS4 .so support 8420247738Sbapt archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8421247738Sbapt archive_expsym_cmds='' 8422247738Sbapt ;; 8423247738Sbapt m68k) 8424247738Sbapt 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)' 8425247738Sbapt hardcode_libdir_flag_spec='-L$libdir' 8426247738Sbapt hardcode_minus_L=yes 8427247738Sbapt ;; 8428247738Sbapt esac 8429247738Sbapt ;; 8430247738Sbapt 8431247738Sbapt bsdi[45]*) 8432247738Sbapt export_dynamic_flag_spec=-rdynamic 8433247738Sbapt ;; 8434247738Sbapt 8435247738Sbapt cygwin* | mingw* | pw32* | cegcc*) 8436247738Sbapt # When not using gcc, we currently assume that we are using 8437247738Sbapt # Microsoft Visual C++. 8438247738Sbapt # hardcode_libdir_flag_spec is actually meaningless, as there is 8439247738Sbapt # no search path for DLLs. 8440247738Sbapt hardcode_libdir_flag_spec=' ' 8441247738Sbapt allow_undefined_flag=unsupported 8442247738Sbapt # Tell ltmain to make .lib files, not .a files. 8443247738Sbapt libext=lib 8444247738Sbapt # Tell ltmain to make .dll files, not .so files. 8445247738Sbapt shrext_cmds=".dll" 8446247738Sbapt # FIXME: Setting linknames here is a bad hack. 8447247738Sbapt archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8448247738Sbapt # The linker will automatically build a .lib file if we build a DLL. 8449247738Sbapt old_archive_from_new_cmds='true' 8450247738Sbapt # FIXME: Should let the user specify the lib program. 8451247738Sbapt old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8452247738Sbapt fix_srcfile_path='`cygpath -w "$srcfile"`' 8453247738Sbapt enable_shared_with_static_runtimes=yes 8454247738Sbapt ;; 8455247738Sbapt 8456247738Sbapt darwin* | rhapsody*) 8457247738Sbapt 8458247738Sbapt 8459247738Sbapt archive_cmds_need_lc=no 8460247738Sbapt hardcode_direct=no 8461247738Sbapt hardcode_automatic=yes 8462247738Sbapt hardcode_shlibpath_var=unsupported 8463247738Sbapt whole_archive_flag_spec='' 8464247738Sbapt link_all_deplibs=yes 8465247738Sbapt allow_undefined_flag="$_lt_dar_allow_undefined" 8466247738Sbapt case $cc_basename in 8467247738Sbapt ifort*) _lt_dar_can_shared=yes ;; 8468247738Sbapt *) _lt_dar_can_shared=$GCC ;; 8469247738Sbapt esac 8470247738Sbapt if test "$_lt_dar_can_shared" = "yes"; then 8471247738Sbapt output_verbose_link_cmd=echo 8472247738Sbapt archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8473247738Sbapt module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8474247738Sbapt 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}" 8475247738Sbapt 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}" 8476247738Sbapt 8477247738Sbapt else 8478247738Sbapt ld_shlibs=no 8479247738Sbapt fi 8480247738Sbapt 8481247738Sbapt ;; 8482247738Sbapt 8483247738Sbapt dgux*) 8484247738Sbapt archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8485247738Sbapt hardcode_libdir_flag_spec='-L$libdir' 8486247738Sbapt hardcode_shlibpath_var=no 8487247738Sbapt ;; 8488247738Sbapt 8489247738Sbapt freebsd1*) 8490247738Sbapt ld_shlibs=no 8491247738Sbapt ;; 8492247738Sbapt 8493247738Sbapt # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8494247738Sbapt # support. Future versions do this automatically, but an explicit c++rt0.o 8495247738Sbapt # does not break anything, and helps significantly (at the cost of a little 8496247738Sbapt # extra space). 8497247738Sbapt freebsd2.2*) 8498247738Sbapt archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8499247738Sbapt hardcode_libdir_flag_spec='-R$libdir' 8500247738Sbapt hardcode_direct=yes 8501247738Sbapt hardcode_shlibpath_var=no 8502247738Sbapt ;; 8503247738Sbapt 8504247738Sbapt # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8505247738Sbapt freebsd2*) 8506247738Sbapt archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8507247738Sbapt hardcode_direct=yes 8508247738Sbapt hardcode_minus_L=yes 8509247738Sbapt hardcode_shlibpath_var=no 8510247738Sbapt ;; 8511247738Sbapt 8512247738Sbapt # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8513247738Sbapt freebsd* | dragonfly*) 8514247738Sbapt archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8515247738Sbapt hardcode_libdir_flag_spec='-R$libdir' 8516247738Sbapt hardcode_direct=yes 8517247738Sbapt hardcode_shlibpath_var=no 8518247738Sbapt ;; 8519247738Sbapt 8520247738Sbapt hpux9*) 8521247738Sbapt if test "$GCC" = yes; then 8522247738Sbapt archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8523247738Sbapt else 8524247738Sbapt 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' 8525247738Sbapt fi 8526247738Sbapt hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8527247738Sbapt hardcode_libdir_separator=: 8528247738Sbapt hardcode_direct=yes 8529247738Sbapt 8530247738Sbapt # hardcode_minus_L: Not really in the search PATH, 8531247738Sbapt # but as the default location of the library. 8532247738Sbapt hardcode_minus_L=yes 8533247738Sbapt export_dynamic_flag_spec='${wl}-E' 8534247738Sbapt ;; 8535247738Sbapt 8536247738Sbapt hpux10*) 8537247738Sbapt if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8538247738Sbapt archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8539247738Sbapt else 8540247738Sbapt archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8541247738Sbapt fi 8542247738Sbapt if test "$with_gnu_ld" = no; then 8543247738Sbapt hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8544247738Sbapt hardcode_libdir_flag_spec_ld='+b $libdir' 8545247738Sbapt hardcode_libdir_separator=: 8546247738Sbapt hardcode_direct=yes 8547247738Sbapt hardcode_direct_absolute=yes 8548247738Sbapt export_dynamic_flag_spec='${wl}-E' 8549247738Sbapt # hardcode_minus_L: Not really in the search PATH, 8550247738Sbapt # but as the default location of the library. 8551247738Sbapt hardcode_minus_L=yes 8552247738Sbapt fi 8553247738Sbapt ;; 8554247738Sbapt 8555247738Sbapt hpux11*) 8556247738Sbapt if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8557247738Sbapt case $host_cpu in 8558247738Sbapt hppa*64*) 8559247738Sbapt archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8560247738Sbapt ;; 8561247738Sbapt ia64*) 8562247738Sbapt archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8563247738Sbapt ;; 8564247738Sbapt *) 8565247738Sbapt archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8566247738Sbapt ;; 8567247738Sbapt esac 8568247738Sbapt else 8569247738Sbapt case $host_cpu in 8570247738Sbapt hppa*64*) 8571247738Sbapt archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8572247738Sbapt ;; 8573247738Sbapt ia64*) 8574247738Sbapt archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8575247738Sbapt ;; 8576247738Sbapt *) 8577247738Sbapt archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8578247738Sbapt ;; 8579247738Sbapt esac 8580247738Sbapt fi 8581247738Sbapt if test "$with_gnu_ld" = no; then 8582247738Sbapt hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8583247738Sbapt hardcode_libdir_separator=: 8584247738Sbapt 8585247738Sbapt case $host_cpu in 8586247738Sbapt hppa*64*|ia64*) 8587247738Sbapt hardcode_direct=no 8588247738Sbapt hardcode_shlibpath_var=no 8589247738Sbapt ;; 8590247738Sbapt *) 8591247738Sbapt hardcode_direct=yes 8592247738Sbapt hardcode_direct_absolute=yes 8593247738Sbapt export_dynamic_flag_spec='${wl}-E' 8594247738Sbapt 8595247738Sbapt # hardcode_minus_L: Not really in the search PATH, 8596247738Sbapt # but as the default location of the library. 8597247738Sbapt hardcode_minus_L=yes 8598247738Sbapt ;; 8599247738Sbapt esac 8600247738Sbapt fi 8601247738Sbapt ;; 8602247738Sbapt 8603247738Sbapt irix5* | irix6* | nonstopux*) 8604247738Sbapt if test "$GCC" = yes; then 8605247738Sbapt archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8606247738Sbapt # Try to use the -exported_symbol ld option, if it does not 8607247738Sbapt # work, assume that -exports_file does not work either and 8608247738Sbapt # implicitly export all symbols. 8609247738Sbapt save_LDFLAGS="$LDFLAGS" 8610247738Sbapt LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8611247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8612247738Sbapt/* end confdefs.h. */ 8613247738Sbaptint foo(void) {} 8614247738Sbapt_ACEOF 8615247738Sbaptif ac_fn_c_try_link "$LINENO"; then : 8616247738Sbapt archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 8617247738Sbapt 8618247738Sbaptfi 8619247738Sbaptrm -f core conftest.err conftest.$ac_objext \ 8620247738Sbapt conftest$ac_exeext conftest.$ac_ext 8621247738Sbapt LDFLAGS="$save_LDFLAGS" 8622247738Sbapt else 8623247738Sbapt archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8624247738Sbapt archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 8625247738Sbapt fi 8626247738Sbapt archive_cmds_need_lc='no' 8627247738Sbapt hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8628247738Sbapt hardcode_libdir_separator=: 8629247738Sbapt inherit_rpath=yes 8630247738Sbapt link_all_deplibs=yes 8631247738Sbapt ;; 8632247738Sbapt 8633247738Sbapt netbsd* | netbsdelf*-gnu) 8634247738Sbapt if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8635247738Sbapt archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8636247738Sbapt else 8637247738Sbapt archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8638247738Sbapt fi 8639247738Sbapt hardcode_libdir_flag_spec='-R$libdir' 8640247738Sbapt hardcode_direct=yes 8641247738Sbapt hardcode_shlibpath_var=no 8642247738Sbapt ;; 8643247738Sbapt 8644247738Sbapt newsos6) 8645247738Sbapt archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8646247738Sbapt hardcode_direct=yes 8647247738Sbapt hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8648247738Sbapt hardcode_libdir_separator=: 8649247738Sbapt hardcode_shlibpath_var=no 8650247738Sbapt ;; 8651247738Sbapt 8652247738Sbapt *nto* | *qnx*) 8653247738Sbapt ;; 8654247738Sbapt 8655247738Sbapt openbsd*) 8656247738Sbapt if test -f /usr/libexec/ld.so; then 8657247738Sbapt hardcode_direct=yes 8658247738Sbapt hardcode_shlibpath_var=no 8659247738Sbapt hardcode_direct_absolute=yes 8660247738Sbapt if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8661247738Sbapt archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8662247738Sbapt archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8663247738Sbapt hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8664247738Sbapt export_dynamic_flag_spec='${wl}-E' 8665247738Sbapt else 8666247738Sbapt case $host_os in 8667247738Sbapt openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8668247738Sbapt archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8669247738Sbapt hardcode_libdir_flag_spec='-R$libdir' 8670247738Sbapt ;; 8671247738Sbapt *) 8672247738Sbapt archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8673247738Sbapt hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8674247738Sbapt ;; 8675247738Sbapt esac 8676247738Sbapt fi 8677247738Sbapt else 8678247738Sbapt ld_shlibs=no 8679247738Sbapt fi 8680247738Sbapt ;; 8681247738Sbapt 8682247738Sbapt os2*) 8683247738Sbapt hardcode_libdir_flag_spec='-L$libdir' 8684247738Sbapt hardcode_minus_L=yes 8685247738Sbapt allow_undefined_flag=unsupported 8686247738Sbapt 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' 8687247738Sbapt old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8688247738Sbapt ;; 8689247738Sbapt 8690247738Sbapt osf3*) 8691247738Sbapt if test "$GCC" = yes; then 8692247738Sbapt allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8693247738Sbapt archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8694247738Sbapt else 8695247738Sbapt allow_undefined_flag=' -expect_unresolved \*' 8696247738Sbapt archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8697247738Sbapt fi 8698247738Sbapt archive_cmds_need_lc='no' 8699247738Sbapt hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8700247738Sbapt hardcode_libdir_separator=: 8701247738Sbapt ;; 8702247738Sbapt 8703247738Sbapt osf4* | osf5*) # as osf3* with the addition of -msym flag 8704247738Sbapt if test "$GCC" = yes; then 8705247738Sbapt allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8706247738Sbapt archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8707247738Sbapt hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8708247738Sbapt else 8709247738Sbapt allow_undefined_flag=' -expect_unresolved \*' 8710247738Sbapt archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8711247738Sbapt 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~ 8712247738Sbapt $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 8713247738Sbapt 8714247738Sbapt # Both c and cxx compiler support -rpath directly 8715247738Sbapt hardcode_libdir_flag_spec='-rpath $libdir' 8716247738Sbapt fi 8717247738Sbapt archive_cmds_need_lc='no' 8718247738Sbapt hardcode_libdir_separator=: 8719247738Sbapt ;; 8720247738Sbapt 8721247738Sbapt solaris*) 8722247738Sbapt no_undefined_flag=' -z defs' 8723247738Sbapt if test "$GCC" = yes; then 8724247738Sbapt wlarc='${wl}' 8725247738Sbapt archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8726247738Sbapt archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8727247738Sbapt $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8728247738Sbapt else 8729247738Sbapt case `$CC -V 2>&1` in 8730247738Sbapt *"Compilers 5.0"*) 8731247738Sbapt wlarc='' 8732247738Sbapt archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8733247738Sbapt archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8734247738Sbapt $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8735247738Sbapt ;; 8736247738Sbapt *) 8737247738Sbapt wlarc='${wl}' 8738247738Sbapt archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8739247738Sbapt archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8740247738Sbapt $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8741247738Sbapt ;; 8742247738Sbapt esac 8743247738Sbapt fi 8744247738Sbapt hardcode_libdir_flag_spec='-R$libdir' 8745247738Sbapt hardcode_shlibpath_var=no 8746247738Sbapt case $host_os in 8747247738Sbapt solaris2.[0-5] | solaris2.[0-5].*) ;; 8748247738Sbapt *) 8749247738Sbapt # The compiler driver will combine and reorder linker options, 8750247738Sbapt # but understands `-z linker_flag'. GCC discards it without `$wl', 8751247738Sbapt # but is careful enough not to reorder. 8752247738Sbapt # Supported since Solaris 2.6 (maybe 2.5.1?) 8753247738Sbapt if test "$GCC" = yes; then 8754247738Sbapt whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8755247738Sbapt else 8756247738Sbapt whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8757247738Sbapt fi 8758247738Sbapt ;; 8759247738Sbapt esac 8760247738Sbapt link_all_deplibs=yes 8761247738Sbapt ;; 8762247738Sbapt 8763247738Sbapt sunos4*) 8764247738Sbapt if test "x$host_vendor" = xsequent; then 8765247738Sbapt # Use $CC to link under sequent, because it throws in some extra .o 8766247738Sbapt # files that make .init and .fini sections work. 8767247738Sbapt archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8768247738Sbapt else 8769247738Sbapt archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8770247738Sbapt fi 8771247738Sbapt hardcode_libdir_flag_spec='-L$libdir' 8772247738Sbapt hardcode_direct=yes 8773247738Sbapt hardcode_minus_L=yes 8774247738Sbapt hardcode_shlibpath_var=no 8775247738Sbapt ;; 8776247738Sbapt 8777247738Sbapt sysv4) 8778247738Sbapt case $host_vendor in 8779247738Sbapt sni) 8780247738Sbapt archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8781247738Sbapt hardcode_direct=yes # is this really true??? 8782247738Sbapt ;; 8783247738Sbapt siemens) 8784247738Sbapt ## LD is ld it makes a PLAMLIB 8785247738Sbapt ## CC just makes a GrossModule. 8786247738Sbapt archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8787247738Sbapt reload_cmds='$CC -r -o $output$reload_objs' 8788247738Sbapt hardcode_direct=no 8789247738Sbapt ;; 8790247738Sbapt motorola) 8791247738Sbapt archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8792247738Sbapt hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8793247738Sbapt ;; 8794247738Sbapt esac 8795247738Sbapt runpath_var='LD_RUN_PATH' 8796247738Sbapt hardcode_shlibpath_var=no 8797247738Sbapt ;; 8798247738Sbapt 8799247738Sbapt sysv4.3*) 8800247738Sbapt archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8801247738Sbapt hardcode_shlibpath_var=no 8802247738Sbapt export_dynamic_flag_spec='-Bexport' 8803247738Sbapt ;; 8804247738Sbapt 8805247738Sbapt sysv4*MP*) 8806247738Sbapt if test -d /usr/nec; then 8807247738Sbapt archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8808247738Sbapt hardcode_shlibpath_var=no 8809247738Sbapt runpath_var=LD_RUN_PATH 8810247738Sbapt hardcode_runpath_var=yes 8811247738Sbapt ld_shlibs=yes 8812247738Sbapt fi 8813247738Sbapt ;; 8814247738Sbapt 8815247738Sbapt sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8816247738Sbapt no_undefined_flag='${wl}-z,text' 8817247738Sbapt archive_cmds_need_lc=no 8818247738Sbapt hardcode_shlibpath_var=no 8819247738Sbapt runpath_var='LD_RUN_PATH' 8820247738Sbapt 8821247738Sbapt if test "$GCC" = yes; then 8822247738Sbapt archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8823247738Sbapt archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8824247738Sbapt else 8825247738Sbapt archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8826247738Sbapt archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8827247738Sbapt fi 8828247738Sbapt ;; 8829247738Sbapt 8830247738Sbapt sysv5* | sco3.2v5* | sco5v6*) 8831247738Sbapt # Note: We can NOT use -z defs as we might desire, because we do not 8832247738Sbapt # link with -lc, and that would cause any symbols used from libc to 8833247738Sbapt # always be unresolved, which means just about no library would 8834247738Sbapt # ever link correctly. If we're not using GNU ld we use -z text 8835247738Sbapt # though, which does catch some bad symbols but isn't as heavy-handed 8836247738Sbapt # as -z defs. 8837247738Sbapt no_undefined_flag='${wl}-z,text' 8838247738Sbapt allow_undefined_flag='${wl}-z,nodefs' 8839247738Sbapt archive_cmds_need_lc=no 8840247738Sbapt hardcode_shlibpath_var=no 8841247738Sbapt hardcode_libdir_flag_spec='${wl}-R,$libdir' 8842247738Sbapt hardcode_libdir_separator=':' 8843247738Sbapt link_all_deplibs=yes 8844247738Sbapt export_dynamic_flag_spec='${wl}-Bexport' 8845247738Sbapt runpath_var='LD_RUN_PATH' 8846247738Sbapt 8847247738Sbapt if test "$GCC" = yes; then 8848247738Sbapt archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8849247738Sbapt archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8850247738Sbapt else 8851247738Sbapt archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8852247738Sbapt archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8853247738Sbapt fi 8854247738Sbapt ;; 8855247738Sbapt 8856247738Sbapt uts4*) 8857247738Sbapt archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8858247738Sbapt hardcode_libdir_flag_spec='-L$libdir' 8859247738Sbapt hardcode_shlibpath_var=no 8860247738Sbapt ;; 8861247738Sbapt 8862247738Sbapt *) 8863247738Sbapt ld_shlibs=no 8864247738Sbapt ;; 8865247738Sbapt esac 8866247738Sbapt 8867247738Sbapt if test x$host_vendor = xsni; then 8868247738Sbapt case $host in 8869247738Sbapt sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8870247738Sbapt export_dynamic_flag_spec='${wl}-Blargedynsym' 8871247738Sbapt ;; 8872247738Sbapt esac 8873247738Sbapt fi 8874247738Sbapt fi 8875247738Sbapt 8876247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 8877247738Sbapt$as_echo "$ld_shlibs" >&6; } 8878247738Sbapttest "$ld_shlibs" = no && can_build_shared=no 8879247738Sbapt 8880247738Sbaptwith_gnu_ld=$with_gnu_ld 8881247738Sbapt 8882247738Sbapt 8883247738Sbapt 8884247738Sbapt 8885247738Sbapt 8886247738Sbapt 8887247738Sbapt 8888247738Sbapt 8889247738Sbapt 8890247738Sbapt 8891247738Sbapt 8892247738Sbapt 8893247738Sbapt 8894247738Sbapt 8895247738Sbapt 8896247738Sbapt# 8897247738Sbapt# Do we need to explicitly link libc? 8898247738Sbapt# 8899247738Sbaptcase "x$archive_cmds_need_lc" in 8900247738Sbaptx|xyes) 8901247738Sbapt # Assume -lc should be added 8902247738Sbapt archive_cmds_need_lc=yes 8903247738Sbapt 8904247738Sbapt if test "$enable_shared" = yes && test "$GCC" = yes; then 8905247738Sbapt case $archive_cmds in 8906247738Sbapt *'~'*) 8907247738Sbapt # FIXME: we may have to deal with multi-command sequences. 8908247738Sbapt ;; 8909247738Sbapt '$CC '*) 8910247738Sbapt # Test whether the compiler implicitly links with -lc since on some 8911247738Sbapt # systems, -lgcc has to come before -lc. If gcc already passes -lc 8912247738Sbapt # to ld, don't add -lc before -lgcc. 8913247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 8914247738Sbapt$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 8915247738Sbapt $RM conftest* 8916247738Sbapt echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8917247738Sbapt 8918247738Sbapt if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8919247738Sbapt (eval $ac_compile) 2>&5 8920247738Sbapt ac_status=$? 8921247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8922247738Sbapt test $ac_status = 0; } 2>conftest.err; then 8923247738Sbapt soname=conftest 8924247738Sbapt lib=conftest 8925247738Sbapt libobjs=conftest.$ac_objext 8926247738Sbapt deplibs= 8927247738Sbapt wl=$lt_prog_compiler_wl 8928247738Sbapt pic_flag=$lt_prog_compiler_pic 8929247738Sbapt compiler_flags=-v 8930247738Sbapt linker_flags=-v 8931247738Sbapt verstring= 8932247738Sbapt output_objdir=. 8933247738Sbapt libname=conftest 8934247738Sbapt lt_save_allow_undefined_flag=$allow_undefined_flag 8935247738Sbapt allow_undefined_flag= 8936247738Sbapt if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 8937247738Sbapt (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 8938247738Sbapt ac_status=$? 8939247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8940247738Sbapt test $ac_status = 0; } 8941247738Sbapt then 8942247738Sbapt archive_cmds_need_lc=no 8943247738Sbapt else 8944247738Sbapt archive_cmds_need_lc=yes 8945247738Sbapt fi 8946247738Sbapt allow_undefined_flag=$lt_save_allow_undefined_flag 8947247738Sbapt else 8948247738Sbapt cat conftest.err 1>&5 8949247738Sbapt fi 8950247738Sbapt $RM conftest* 8951247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 8952247738Sbapt$as_echo "$archive_cmds_need_lc" >&6; } 8953247738Sbapt ;; 8954247738Sbapt esac 8955247738Sbapt fi 8956247738Sbapt ;; 8957247738Sbaptesac 8958247738Sbapt 8959247738Sbapt 8960247738Sbapt 8961247738Sbapt 8962247738Sbapt 8963247738Sbapt 8964247738Sbapt 8965247738Sbapt 8966247738Sbapt 8967247738Sbapt 8968247738Sbapt 8969247738Sbapt 8970247738Sbapt 8971247738Sbapt 8972247738Sbapt 8973247738Sbapt 8974247738Sbapt 8975247738Sbapt 8976247738Sbapt 8977247738Sbapt 8978247738Sbapt 8979247738Sbapt 8980247738Sbapt 8981247738Sbapt 8982247738Sbapt 8983247738Sbapt 8984247738Sbapt 8985247738Sbapt 8986247738Sbapt 8987247738Sbapt 8988247738Sbapt 8989247738Sbapt 8990247738Sbapt 8991247738Sbapt 8992247738Sbapt 8993247738Sbapt 8994247738Sbapt 8995247738Sbapt 8996247738Sbapt 8997247738Sbapt 8998247738Sbapt 8999247738Sbapt 9000247738Sbapt 9001247738Sbapt 9002247738Sbapt 9003247738Sbapt 9004247738Sbapt 9005247738Sbapt 9006247738Sbapt 9007247738Sbapt 9008247738Sbapt 9009247738Sbapt 9010247738Sbapt 9011247738Sbapt 9012247738Sbapt 9013247738Sbapt 9014247738Sbapt 9015247738Sbapt 9016247738Sbapt 9017247738Sbapt 9018247738Sbapt 9019247738Sbapt 9020247738Sbapt 9021247738Sbapt 9022247738Sbapt 9023247738Sbapt 9024247738Sbapt 9025247738Sbapt 9026247738Sbapt 9027247738Sbapt 9028247738Sbapt 9029247738Sbapt 9030247738Sbapt 9031247738Sbapt 9032247738Sbapt 9033247738Sbapt 9034247738Sbapt 9035247738Sbapt 9036247738Sbapt 9037247738Sbapt 9038247738Sbapt 9039247738Sbapt 9040247738Sbapt 9041247738Sbapt 9042247738Sbapt 9043247738Sbapt 9044247738Sbapt 9045247738Sbapt 9046247738Sbapt 9047247738Sbapt 9048247738Sbapt 9049247738Sbapt 9050247738Sbapt 9051247738Sbapt 9052247738Sbapt 9053247738Sbapt 9054247738Sbapt 9055247738Sbapt 9056247738Sbapt 9057247738Sbapt 9058247738Sbapt 9059247738Sbapt 9060247738Sbapt 9061247738Sbapt 9062247738Sbapt 9063247738Sbapt 9064247738Sbapt 9065247738Sbapt 9066247738Sbapt 9067247738Sbapt 9068247738Sbapt 9069247738Sbapt 9070247738Sbapt 9071247738Sbapt 9072247738Sbapt 9073247738Sbapt 9074247738Sbapt 9075247738Sbapt 9076247738Sbapt 9077247738Sbapt 9078247738Sbapt 9079247738Sbapt 9080247738Sbapt 9081247738Sbapt 9082247738Sbapt 9083247738Sbapt 9084247738Sbapt 9085247738Sbapt 9086247738Sbapt 9087247738Sbapt 9088247738Sbapt 9089247738Sbapt 9090247738Sbapt 9091247738Sbapt 9092247738Sbapt 9093247738Sbapt 9094247738Sbapt 9095247738Sbapt 9096247738Sbapt 9097247738Sbapt 9098247738Sbapt 9099247738Sbapt 9100247738Sbapt 9101247738Sbapt 9102247738Sbapt 9103247738Sbapt 9104247738Sbapt 9105247738Sbapt 9106247738Sbapt 9107247738Sbapt 9108247738Sbapt 9109247738Sbapt 9110247738Sbapt 9111247738Sbapt 9112247738Sbapt 9113247738Sbapt 9114247738Sbapt 9115247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9116247738Sbapt$as_echo_n "checking dynamic linker characteristics... " >&6; } 9117247738Sbapt 9118247738Sbaptif test "$GCC" = yes; then 9119247738Sbapt case $host_os in 9120247738Sbapt darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9121247738Sbapt *) lt_awk_arg="/^libraries:/" ;; 9122247738Sbapt esac 9123247738Sbapt lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9124247738Sbapt if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9125247738Sbapt # if the path contains ";" then we assume it to be the separator 9126247738Sbapt # otherwise default to the standard path separator (i.e. ":") - it is 9127247738Sbapt # assumed that no part of a normal pathname contains ";" but that should 9128247738Sbapt # okay in the real world where ";" in dirpaths is itself problematic. 9129247738Sbapt lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9130247738Sbapt else 9131247738Sbapt lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9132247738Sbapt fi 9133247738Sbapt # Ok, now we have the path, separated by spaces, we can step through it 9134247738Sbapt # and add multilib dir if necessary. 9135247738Sbapt lt_tmp_lt_search_path_spec= 9136247738Sbapt lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9137247738Sbapt for lt_sys_path in $lt_search_path_spec; do 9138247738Sbapt if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9139247738Sbapt lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9140247738Sbapt else 9141247738Sbapt test -d "$lt_sys_path" && \ 9142247738Sbapt lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9143247738Sbapt fi 9144247738Sbapt done 9145247738Sbapt lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9146247738SbaptBEGIN {RS=" "; FS="/|\n";} { 9147247738Sbapt lt_foo=""; 9148247738Sbapt lt_count=0; 9149247738Sbapt for (lt_i = NF; lt_i > 0; lt_i--) { 9150247738Sbapt if ($lt_i != "" && $lt_i != ".") { 9151247738Sbapt if ($lt_i == "..") { 9152247738Sbapt lt_count++; 9153247738Sbapt } else { 9154247738Sbapt if (lt_count == 0) { 9155247738Sbapt lt_foo="/" $lt_i lt_foo; 9156247738Sbapt } else { 9157247738Sbapt lt_count--; 9158247738Sbapt } 9159247738Sbapt } 9160247738Sbapt } 9161247738Sbapt } 9162247738Sbapt if (lt_foo != "") { lt_freq[lt_foo]++; } 9163247738Sbapt if (lt_freq[lt_foo] == 1) { print lt_foo; } 9164247738Sbapt}'` 9165247738Sbapt sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9166247738Sbaptelse 9167247738Sbapt sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9168247738Sbaptfi 9169247738Sbaptlibrary_names_spec= 9170247738Sbaptlibname_spec='lib$name' 9171247738Sbaptsoname_spec= 9172247738Sbaptshrext_cmds=".so" 9173247738Sbaptpostinstall_cmds= 9174247738Sbaptpostuninstall_cmds= 9175247738Sbaptfinish_cmds= 9176247738Sbaptfinish_eval= 9177247738Sbaptshlibpath_var= 9178247738Sbaptshlibpath_overrides_runpath=unknown 9179247738Sbaptversion_type=none 9180247738Sbaptdynamic_linker="$host_os ld.so" 9181247738Sbaptsys_lib_dlsearch_path_spec="/lib /usr/lib" 9182247738Sbaptneed_lib_prefix=unknown 9183247738Sbapthardcode_into_libs=no 9184247738Sbapt 9185247738Sbapt# when you set need_version to no, make sure it does not cause -set_version 9186247738Sbapt# flags to be left without arguments 9187247738Sbaptneed_version=unknown 9188247738Sbapt 9189247738Sbaptcase $host_os in 9190247738Sbaptaix3*) 9191247738Sbapt version_type=linux 9192247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9193247738Sbapt shlibpath_var=LIBPATH 9194247738Sbapt 9195247738Sbapt # AIX 3 has no versioning support, so we append a major version to the name. 9196247738Sbapt soname_spec='${libname}${release}${shared_ext}$major' 9197247738Sbapt ;; 9198247738Sbapt 9199247738Sbaptaix[4-9]*) 9200247738Sbapt version_type=linux 9201247738Sbapt need_lib_prefix=no 9202247738Sbapt need_version=no 9203247738Sbapt hardcode_into_libs=yes 9204247738Sbapt if test "$host_cpu" = ia64; then 9205247738Sbapt # AIX 5 supports IA64 9206247738Sbapt library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9207247738Sbapt shlibpath_var=LD_LIBRARY_PATH 9208247738Sbapt else 9209247738Sbapt # With GCC up to 2.95.x, collect2 would create an import file 9210247738Sbapt # for dependence libraries. The import file would start with 9211247738Sbapt # the line `#! .'. This would cause the generated library to 9212247738Sbapt # depend on `.', always an invalid library. This was fixed in 9213247738Sbapt # development snapshots of GCC prior to 3.0. 9214247738Sbapt case $host_os in 9215247738Sbapt aix4 | aix4.[01] | aix4.[01].*) 9216247738Sbapt if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9217247738Sbapt echo ' yes ' 9218247738Sbapt echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9219247738Sbapt : 9220247738Sbapt else 9221247738Sbapt can_build_shared=no 9222247738Sbapt fi 9223247738Sbapt ;; 9224247738Sbapt esac 9225247738Sbapt # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9226247738Sbapt # soname into executable. Probably we can add versioning support to 9227247738Sbapt # collect2, so additional links can be useful in future. 9228247738Sbapt if test "$aix_use_runtimelinking" = yes; then 9229247738Sbapt # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9230247738Sbapt # instead of lib<name>.a to let people know that these are not 9231247738Sbapt # typical AIX shared libraries. 9232247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9233247738Sbapt else 9234247738Sbapt # We preserve .a as extension for shared libraries through AIX4.2 9235247738Sbapt # and later when we are not doing run time linking. 9236247738Sbapt library_names_spec='${libname}${release}.a $libname.a' 9237247738Sbapt soname_spec='${libname}${release}${shared_ext}$major' 9238247738Sbapt fi 9239247738Sbapt shlibpath_var=LIBPATH 9240247738Sbapt fi 9241247738Sbapt ;; 9242247738Sbapt 9243247738Sbaptamigaos*) 9244247738Sbapt case $host_cpu in 9245247738Sbapt powerpc) 9246247738Sbapt # Since July 2007 AmigaOS4 officially supports .so libraries. 9247247738Sbapt # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9248247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9249247738Sbapt ;; 9250247738Sbapt m68k) 9251247738Sbapt library_names_spec='$libname.ixlibrary $libname.a' 9252247738Sbapt # Create ${libname}_ixlibrary.a entries in /sys/libs. 9253247738Sbapt finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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' 9254247738Sbapt ;; 9255247738Sbapt esac 9256247738Sbapt ;; 9257247738Sbapt 9258247738Sbaptbeos*) 9259247738Sbapt library_names_spec='${libname}${shared_ext}' 9260247738Sbapt dynamic_linker="$host_os ld.so" 9261247738Sbapt shlibpath_var=LIBRARY_PATH 9262247738Sbapt ;; 9263247738Sbapt 9264247738Sbaptbsdi[45]*) 9265247738Sbapt version_type=linux 9266247738Sbapt need_version=no 9267247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9268247738Sbapt soname_spec='${libname}${release}${shared_ext}$major' 9269247738Sbapt finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9270247738Sbapt shlibpath_var=LD_LIBRARY_PATH 9271247738Sbapt sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9272247738Sbapt sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9273247738Sbapt # the default ld.so.conf also contains /usr/contrib/lib and 9274247738Sbapt # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9275247738Sbapt # libtool to hard-code these into programs 9276247738Sbapt ;; 9277247738Sbapt 9278247738Sbaptcygwin* | mingw* | pw32* | cegcc*) 9279247738Sbapt version_type=windows 9280247738Sbapt shrext_cmds=".dll" 9281247738Sbapt need_version=no 9282247738Sbapt need_lib_prefix=no 9283247738Sbapt 9284247738Sbapt case $GCC,$host_os in 9285247738Sbapt yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9286247738Sbapt library_names_spec='$libname.dll.a' 9287247738Sbapt # DLL is installed to $(libdir)/../bin by postinstall_cmds 9288247738Sbapt postinstall_cmds='base_file=`basename \${file}`~ 9289247738Sbapt dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9290247738Sbapt dldir=$destdir/`dirname \$dlpath`~ 9291247738Sbapt test -d \$dldir || mkdir -p \$dldir~ 9292247738Sbapt $install_prog $dir/$dlname \$dldir/$dlname~ 9293247738Sbapt chmod a+x \$dldir/$dlname~ 9294247738Sbapt if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9295247738Sbapt eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9296247738Sbapt fi' 9297247738Sbapt postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9298247738Sbapt dlpath=$dir/\$dldll~ 9299247738Sbapt $RM \$dlpath' 9300247738Sbapt shlibpath_overrides_runpath=yes 9301247738Sbapt 9302247738Sbapt case $host_os in 9303247738Sbapt cygwin*) 9304247738Sbapt # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9305247738Sbapt soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9306247738Sbapt sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9307247738Sbapt ;; 9308247738Sbapt mingw* | cegcc*) 9309247738Sbapt # MinGW DLLs use traditional 'lib' prefix 9310247738Sbapt soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9311247738Sbapt sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9312247738Sbapt if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9313247738Sbapt # It is most probably a Windows format PATH printed by 9314247738Sbapt # mingw gcc, but we are running on Cygwin. Gcc prints its search 9315247738Sbapt # path with ; separators, and with drive letters. We can handle the 9316247738Sbapt # drive letters (cygwin fileutils understands them), so leave them, 9317247738Sbapt # especially as we might pass files found there to a mingw objdump, 9318247738Sbapt # which wouldn't understand a cygwinified path. Ahh. 9319247738Sbapt sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9320247738Sbapt else 9321247738Sbapt sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9322247738Sbapt fi 9323247738Sbapt ;; 9324247738Sbapt pw32*) 9325247738Sbapt # pw32 DLLs use 'pw' prefix rather than 'lib' 9326247738Sbapt library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9327247738Sbapt ;; 9328247738Sbapt esac 9329247738Sbapt ;; 9330247738Sbapt 9331247738Sbapt *) 9332247738Sbapt library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9333247738Sbapt ;; 9334247738Sbapt esac 9335247738Sbapt dynamic_linker='Win32 ld.exe' 9336247738Sbapt # FIXME: first we should search . and the directory the executable is in 9337247738Sbapt shlibpath_var=PATH 9338247738Sbapt ;; 9339247738Sbapt 9340247738Sbaptdarwin* | rhapsody*) 9341247738Sbapt dynamic_linker="$host_os dyld" 9342247738Sbapt version_type=darwin 9343247738Sbapt need_lib_prefix=no 9344247738Sbapt need_version=no 9345247738Sbapt library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9346247738Sbapt soname_spec='${libname}${release}${major}$shared_ext' 9347247738Sbapt shlibpath_overrides_runpath=yes 9348247738Sbapt shlibpath_var=DYLD_LIBRARY_PATH 9349247738Sbapt shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9350247738Sbapt 9351247738Sbapt sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9352247738Sbapt sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9353247738Sbapt ;; 9354247738Sbapt 9355247738Sbaptdgux*) 9356247738Sbapt version_type=linux 9357247738Sbapt need_lib_prefix=no 9358247738Sbapt need_version=no 9359247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9360247738Sbapt soname_spec='${libname}${release}${shared_ext}$major' 9361247738Sbapt shlibpath_var=LD_LIBRARY_PATH 9362247738Sbapt ;; 9363247738Sbapt 9364247738Sbaptfreebsd1*) 9365247738Sbapt dynamic_linker=no 9366247738Sbapt ;; 9367247738Sbapt 9368247738Sbaptfreebsd* | dragonfly*) 9369247738Sbapt # DragonFly does not have aout. When/if they implement a new 9370247738Sbapt # versioning mechanism, adjust this. 9371247738Sbapt if test -x /usr/bin/objformat; then 9372247738Sbapt objformat=`/usr/bin/objformat` 9373247738Sbapt else 9374247738Sbapt case $host_os in 9375247738Sbapt freebsd[123]*) objformat=aout ;; 9376247738Sbapt *) objformat=elf ;; 9377247738Sbapt esac 9378247738Sbapt fi 9379247738Sbapt version_type=freebsd-$objformat 9380247738Sbapt case $version_type in 9381247738Sbapt freebsd-elf*) 9382247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9383247738Sbapt need_version=no 9384247738Sbapt need_lib_prefix=no 9385247738Sbapt ;; 9386247738Sbapt freebsd-*) 9387247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9388247738Sbapt need_version=yes 9389247738Sbapt ;; 9390247738Sbapt esac 9391247738Sbapt shlibpath_var=LD_LIBRARY_PATH 9392247738Sbapt case $host_os in 9393247738Sbapt freebsd2*) 9394247738Sbapt shlibpath_overrides_runpath=yes 9395247738Sbapt ;; 9396247738Sbapt freebsd3.[01]* | freebsdelf3.[01]*) 9397247738Sbapt shlibpath_overrides_runpath=yes 9398247738Sbapt hardcode_into_libs=yes 9399247738Sbapt ;; 9400247738Sbapt freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9401247738Sbapt freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9402247738Sbapt shlibpath_overrides_runpath=no 9403247738Sbapt hardcode_into_libs=yes 9404247738Sbapt ;; 9405247738Sbapt *) # from 4.6 on, and DragonFly 9406247738Sbapt shlibpath_overrides_runpath=yes 9407247738Sbapt hardcode_into_libs=yes 9408247738Sbapt ;; 9409247738Sbapt esac 9410247738Sbapt ;; 9411247738Sbapt 9412247738Sbaptgnu*) 9413247738Sbapt version_type=linux 9414247738Sbapt need_lib_prefix=no 9415247738Sbapt need_version=no 9416247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9417247738Sbapt soname_spec='${libname}${release}${shared_ext}$major' 9418247738Sbapt shlibpath_var=LD_LIBRARY_PATH 9419247738Sbapt hardcode_into_libs=yes 9420247738Sbapt ;; 9421247738Sbapt 9422247738Sbapthpux9* | hpux10* | hpux11*) 9423247738Sbapt # Give a soname corresponding to the major version so that dld.sl refuses to 9424247738Sbapt # link against other versions. 9425247738Sbapt version_type=sunos 9426247738Sbapt need_lib_prefix=no 9427247738Sbapt need_version=no 9428247738Sbapt case $host_cpu in 9429247738Sbapt ia64*) 9430247738Sbapt shrext_cmds='.so' 9431247738Sbapt hardcode_into_libs=yes 9432247738Sbapt dynamic_linker="$host_os dld.so" 9433247738Sbapt shlibpath_var=LD_LIBRARY_PATH 9434247738Sbapt shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9435247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9436247738Sbapt soname_spec='${libname}${release}${shared_ext}$major' 9437247738Sbapt if test "X$HPUX_IA64_MODE" = X32; then 9438247738Sbapt sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9439247738Sbapt else 9440247738Sbapt sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9441247738Sbapt fi 9442247738Sbapt sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9443247738Sbapt ;; 9444247738Sbapt hppa*64*) 9445247738Sbapt shrext_cmds='.sl' 9446247738Sbapt hardcode_into_libs=yes 9447247738Sbapt dynamic_linker="$host_os dld.sl" 9448247738Sbapt shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9449247738Sbapt shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9450247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9451247738Sbapt soname_spec='${libname}${release}${shared_ext}$major' 9452247738Sbapt sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9453247738Sbapt sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9454247738Sbapt ;; 9455247738Sbapt *) 9456247738Sbapt shrext_cmds='.sl' 9457247738Sbapt dynamic_linker="$host_os dld.sl" 9458247738Sbapt shlibpath_var=SHLIB_PATH 9459247738Sbapt shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9460247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9461247738Sbapt soname_spec='${libname}${release}${shared_ext}$major' 9462247738Sbapt ;; 9463247738Sbapt esac 9464247738Sbapt # HP-UX runs *really* slowly unless shared libraries are mode 555. 9465247738Sbapt postinstall_cmds='chmod 555 $lib' 9466247738Sbapt ;; 9467247738Sbapt 9468247738Sbaptinterix[3-9]*) 9469247738Sbapt version_type=linux 9470247738Sbapt need_lib_prefix=no 9471247738Sbapt need_version=no 9472247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9473247738Sbapt soname_spec='${libname}${release}${shared_ext}$major' 9474247738Sbapt dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9475247738Sbapt shlibpath_var=LD_LIBRARY_PATH 9476247738Sbapt shlibpath_overrides_runpath=no 9477247738Sbapt hardcode_into_libs=yes 9478247738Sbapt ;; 9479247738Sbapt 9480247738Sbaptirix5* | irix6* | nonstopux*) 9481247738Sbapt case $host_os in 9482247738Sbapt nonstopux*) version_type=nonstopux ;; 9483247738Sbapt *) 9484247738Sbapt if test "$lt_cv_prog_gnu_ld" = yes; then 9485247738Sbapt version_type=linux 9486247738Sbapt else 9487247738Sbapt version_type=irix 9488247738Sbapt fi ;; 9489247738Sbapt esac 9490247738Sbapt need_lib_prefix=no 9491247738Sbapt need_version=no 9492247738Sbapt soname_spec='${libname}${release}${shared_ext}$major' 9493247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9494247738Sbapt case $host_os in 9495247738Sbapt irix5* | nonstopux*) 9496247738Sbapt libsuff= shlibsuff= 9497247738Sbapt ;; 9498247738Sbapt *) 9499247738Sbapt case $LD in # libtool.m4 will add one of these switches to LD 9500247738Sbapt *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9501247738Sbapt libsuff= shlibsuff= libmagic=32-bit;; 9502247738Sbapt *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9503247738Sbapt libsuff=32 shlibsuff=N32 libmagic=N32;; 9504247738Sbapt *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9505247738Sbapt libsuff=64 shlibsuff=64 libmagic=64-bit;; 9506247738Sbapt *) libsuff= shlibsuff= libmagic=never-match;; 9507247738Sbapt esac 9508247738Sbapt ;; 9509247738Sbapt esac 9510247738Sbapt shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9511247738Sbapt shlibpath_overrides_runpath=no 9512247738Sbapt sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9513247738Sbapt sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9514247738Sbapt hardcode_into_libs=yes 9515247738Sbapt ;; 9516247738Sbapt 9517247738Sbapt# No shared lib support for Linux oldld, aout, or coff. 9518247738Sbaptlinux*oldld* | linux*aout* | linux*coff*) 9519247738Sbapt dynamic_linker=no 9520247738Sbapt ;; 9521247738Sbapt 9522247738Sbapt# This must be Linux ELF. 9523247738Sbaptlinux* | k*bsd*-gnu | kopensolaris*-gnu) 9524247738Sbapt version_type=linux 9525247738Sbapt need_lib_prefix=no 9526247738Sbapt need_version=no 9527247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9528247738Sbapt soname_spec='${libname}${release}${shared_ext}$major' 9529247738Sbapt finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9530247738Sbapt shlibpath_var=LD_LIBRARY_PATH 9531247738Sbapt shlibpath_overrides_runpath=no 9532247738Sbapt # Some binutils ld are patched to set DT_RUNPATH 9533247738Sbapt save_LDFLAGS=$LDFLAGS 9534247738Sbapt save_libdir=$libdir 9535247738Sbapt eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9536247738Sbapt LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9537247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9538247738Sbapt/* end confdefs.h. */ 9539247738Sbapt 9540247738Sbaptint 9541247738Sbaptmain () 9542247738Sbapt{ 9543247738Sbapt 9544247738Sbapt ; 9545247738Sbapt return 0; 9546247738Sbapt} 9547247738Sbapt_ACEOF 9548247738Sbaptif ac_fn_c_try_link "$LINENO"; then : 9549247738Sbapt if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 9550247738Sbapt shlibpath_overrides_runpath=yes 9551247738Sbaptfi 9552247738Sbaptfi 9553247738Sbaptrm -f core conftest.err conftest.$ac_objext \ 9554247738Sbapt conftest$ac_exeext conftest.$ac_ext 9555247738Sbapt LDFLAGS=$save_LDFLAGS 9556247738Sbapt libdir=$save_libdir 9557247738Sbapt 9558247738Sbapt # This implies no fast_install, which is unacceptable. 9559247738Sbapt # Some rework will be needed to allow for fast_install 9560247738Sbapt # before this can be enabled. 9561247738Sbapt hardcode_into_libs=yes 9562247738Sbapt 9563247738Sbapt # Append ld.so.conf contents to the search path 9564247738Sbapt if test -f /etc/ld.so.conf; then 9565247738Sbapt 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;/^$/d' | tr '\n' ' '` 9566247738Sbapt sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9567247738Sbapt fi 9568247738Sbapt 9569247738Sbapt # We used to test for /lib/ld.so.1 and disable shared libraries on 9570247738Sbapt # powerpc, because MkLinux only supported shared libraries with the 9571247738Sbapt # GNU dynamic linker. Since this was broken with cross compilers, 9572247738Sbapt # most powerpc-linux boxes support dynamic linking these days and 9573247738Sbapt # people can always --disable-shared, the test was removed, and we 9574247738Sbapt # assume the GNU/Linux dynamic linker is in use. 9575247738Sbapt dynamic_linker='GNU/Linux ld.so' 9576247738Sbapt ;; 9577247738Sbapt 9578247738Sbaptnetbsdelf*-gnu) 9579247738Sbapt version_type=linux 9580247738Sbapt need_lib_prefix=no 9581247738Sbapt need_version=no 9582247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9583247738Sbapt soname_spec='${libname}${release}${shared_ext}$major' 9584247738Sbapt shlibpath_var=LD_LIBRARY_PATH 9585247738Sbapt shlibpath_overrides_runpath=no 9586247738Sbapt hardcode_into_libs=yes 9587247738Sbapt dynamic_linker='NetBSD ld.elf_so' 9588247738Sbapt ;; 9589247738Sbapt 9590247738Sbaptnetbsd*) 9591247738Sbapt version_type=sunos 9592247738Sbapt need_lib_prefix=no 9593247738Sbapt need_version=no 9594247738Sbapt if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9595247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9596247738Sbapt finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9597247738Sbapt dynamic_linker='NetBSD (a.out) ld.so' 9598247738Sbapt else 9599247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9600247738Sbapt soname_spec='${libname}${release}${shared_ext}$major' 9601247738Sbapt dynamic_linker='NetBSD ld.elf_so' 9602247738Sbapt fi 9603247738Sbapt shlibpath_var=LD_LIBRARY_PATH 9604247738Sbapt shlibpath_overrides_runpath=yes 9605247738Sbapt hardcode_into_libs=yes 9606247738Sbapt ;; 9607247738Sbapt 9608247738Sbaptnewsos6) 9609247738Sbapt version_type=linux 9610247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9611247738Sbapt shlibpath_var=LD_LIBRARY_PATH 9612247738Sbapt shlibpath_overrides_runpath=yes 9613247738Sbapt ;; 9614247738Sbapt 9615247738Sbapt*nto* | *qnx*) 9616247738Sbapt version_type=qnx 9617247738Sbapt need_lib_prefix=no 9618247738Sbapt need_version=no 9619247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9620247738Sbapt soname_spec='${libname}${release}${shared_ext}$major' 9621247738Sbapt shlibpath_var=LD_LIBRARY_PATH 9622247738Sbapt shlibpath_overrides_runpath=no 9623247738Sbapt hardcode_into_libs=yes 9624247738Sbapt dynamic_linker='ldqnx.so' 9625247738Sbapt ;; 9626247738Sbapt 9627247738Sbaptopenbsd*) 9628247738Sbapt version_type=sunos 9629247738Sbapt sys_lib_dlsearch_path_spec="/usr/lib" 9630247738Sbapt need_lib_prefix=no 9631247738Sbapt # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9632247738Sbapt case $host_os in 9633247738Sbapt openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9634247738Sbapt *) need_version=no ;; 9635247738Sbapt esac 9636247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9637247738Sbapt finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9638247738Sbapt shlibpath_var=LD_LIBRARY_PATH 9639247738Sbapt if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9640247738Sbapt case $host_os in 9641247738Sbapt openbsd2.[89] | openbsd2.[89].*) 9642247738Sbapt shlibpath_overrides_runpath=no 9643247738Sbapt ;; 9644247738Sbapt *) 9645247738Sbapt shlibpath_overrides_runpath=yes 9646247738Sbapt ;; 9647247738Sbapt esac 9648247738Sbapt else 9649247738Sbapt shlibpath_overrides_runpath=yes 9650247738Sbapt fi 9651247738Sbapt ;; 9652247738Sbapt 9653247738Sbaptos2*) 9654247738Sbapt libname_spec='$name' 9655247738Sbapt shrext_cmds=".dll" 9656247738Sbapt need_lib_prefix=no 9657247738Sbapt library_names_spec='$libname${shared_ext} $libname.a' 9658247738Sbapt dynamic_linker='OS/2 ld.exe' 9659247738Sbapt shlibpath_var=LIBPATH 9660247738Sbapt ;; 9661247738Sbapt 9662247738Sbaptosf3* | osf4* | osf5*) 9663247738Sbapt version_type=osf 9664247738Sbapt need_lib_prefix=no 9665247738Sbapt need_version=no 9666247738Sbapt soname_spec='${libname}${release}${shared_ext}$major' 9667247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9668247738Sbapt shlibpath_var=LD_LIBRARY_PATH 9669247738Sbapt sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9670247738Sbapt sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9671247738Sbapt ;; 9672247738Sbapt 9673247738Sbaptrdos*) 9674247738Sbapt dynamic_linker=no 9675247738Sbapt ;; 9676247738Sbapt 9677247738Sbaptsolaris*) 9678247738Sbapt version_type=linux 9679247738Sbapt need_lib_prefix=no 9680247738Sbapt need_version=no 9681247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9682247738Sbapt soname_spec='${libname}${release}${shared_ext}$major' 9683247738Sbapt shlibpath_var=LD_LIBRARY_PATH 9684247738Sbapt shlibpath_overrides_runpath=yes 9685247738Sbapt hardcode_into_libs=yes 9686247738Sbapt # ldd complains unless libraries are executable 9687247738Sbapt postinstall_cmds='chmod +x $lib' 9688247738Sbapt ;; 9689247738Sbapt 9690247738Sbaptsunos4*) 9691247738Sbapt version_type=sunos 9692247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9693247738Sbapt finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9694247738Sbapt shlibpath_var=LD_LIBRARY_PATH 9695247738Sbapt shlibpath_overrides_runpath=yes 9696247738Sbapt if test "$with_gnu_ld" = yes; then 9697247738Sbapt need_lib_prefix=no 9698247738Sbapt fi 9699247738Sbapt need_version=yes 9700247738Sbapt ;; 9701247738Sbapt 9702247738Sbaptsysv4 | sysv4.3*) 9703247738Sbapt version_type=linux 9704247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9705247738Sbapt soname_spec='${libname}${release}${shared_ext}$major' 9706247738Sbapt shlibpath_var=LD_LIBRARY_PATH 9707247738Sbapt case $host_vendor in 9708247738Sbapt sni) 9709247738Sbapt shlibpath_overrides_runpath=no 9710247738Sbapt need_lib_prefix=no 9711247738Sbapt runpath_var=LD_RUN_PATH 9712247738Sbapt ;; 9713247738Sbapt siemens) 9714247738Sbapt need_lib_prefix=no 9715247738Sbapt ;; 9716247738Sbapt motorola) 9717247738Sbapt need_lib_prefix=no 9718247738Sbapt need_version=no 9719247738Sbapt shlibpath_overrides_runpath=no 9720247738Sbapt sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9721247738Sbapt ;; 9722247738Sbapt esac 9723247738Sbapt ;; 9724247738Sbapt 9725247738Sbaptsysv4*MP*) 9726247738Sbapt if test -d /usr/nec ;then 9727247738Sbapt version_type=linux 9728247738Sbapt library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9729247738Sbapt soname_spec='$libname${shared_ext}.$major' 9730247738Sbapt shlibpath_var=LD_LIBRARY_PATH 9731247738Sbapt fi 9732247738Sbapt ;; 9733247738Sbapt 9734247738Sbaptsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9735247738Sbapt version_type=freebsd-elf 9736247738Sbapt need_lib_prefix=no 9737247738Sbapt need_version=no 9738247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9739247738Sbapt soname_spec='${libname}${release}${shared_ext}$major' 9740247738Sbapt shlibpath_var=LD_LIBRARY_PATH 9741247738Sbapt shlibpath_overrides_runpath=yes 9742247738Sbapt hardcode_into_libs=yes 9743247738Sbapt if test "$with_gnu_ld" = yes; then 9744247738Sbapt sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9745247738Sbapt else 9746247738Sbapt sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9747247738Sbapt case $host_os in 9748247738Sbapt sco3.2v5*) 9749247738Sbapt sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9750247738Sbapt ;; 9751247738Sbapt esac 9752247738Sbapt fi 9753247738Sbapt sys_lib_dlsearch_path_spec='/usr/lib' 9754247738Sbapt ;; 9755247738Sbapt 9756247738Sbapttpf*) 9757247738Sbapt # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9758247738Sbapt version_type=linux 9759247738Sbapt need_lib_prefix=no 9760247738Sbapt need_version=no 9761247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9762247738Sbapt shlibpath_var=LD_LIBRARY_PATH 9763247738Sbapt shlibpath_overrides_runpath=no 9764247738Sbapt hardcode_into_libs=yes 9765247738Sbapt ;; 9766247738Sbapt 9767247738Sbaptuts4*) 9768247738Sbapt version_type=linux 9769247738Sbapt library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9770247738Sbapt soname_spec='${libname}${release}${shared_ext}$major' 9771247738Sbapt shlibpath_var=LD_LIBRARY_PATH 9772247738Sbapt ;; 9773247738Sbapt 9774247738Sbapt*) 9775247738Sbapt dynamic_linker=no 9776247738Sbapt ;; 9777247738Sbaptesac 9778247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 9779247738Sbapt$as_echo "$dynamic_linker" >&6; } 9780247738Sbapttest "$dynamic_linker" = no && can_build_shared=no 9781247738Sbapt 9782247738Sbaptvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9783247738Sbaptif test "$GCC" = yes; then 9784247738Sbapt variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9785247738Sbaptfi 9786247738Sbapt 9787247738Sbaptif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9788247738Sbapt sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9789247738Sbaptfi 9790247738Sbaptif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9791247738Sbapt sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9792247738Sbaptfi 9793247738Sbapt 9794247738Sbapt 9795247738Sbapt 9796247738Sbapt 9797247738Sbapt 9798247738Sbapt 9799247738Sbapt 9800247738Sbapt 9801247738Sbapt 9802247738Sbapt 9803247738Sbapt 9804247738Sbapt 9805247738Sbapt 9806247738Sbapt 9807247738Sbapt 9808247738Sbapt 9809247738Sbapt 9810247738Sbapt 9811247738Sbapt 9812247738Sbapt 9813247738Sbapt 9814247738Sbapt 9815247738Sbapt 9816247738Sbapt 9817247738Sbapt 9818247738Sbapt 9819247738Sbapt 9820247738Sbapt 9821247738Sbapt 9822247738Sbapt 9823247738Sbapt 9824247738Sbapt 9825247738Sbapt 9826247738Sbapt 9827247738Sbapt 9828247738Sbapt 9829247738Sbapt 9830247738Sbapt 9831247738Sbapt 9832247738Sbapt 9833247738Sbapt 9834247738Sbapt 9835247738Sbapt 9836247738Sbapt 9837247738Sbapt 9838247738Sbapt 9839247738Sbapt 9840247738Sbapt 9841247738Sbapt 9842247738Sbapt 9843247738Sbapt 9844247738Sbapt 9845247738Sbapt 9846247738Sbapt 9847247738Sbapt 9848247738Sbapt 9849247738Sbapt 9850247738Sbapt 9851247738Sbapt 9852247738Sbapt 9853247738Sbapt 9854247738Sbapt 9855247738Sbapt 9856247738Sbapt 9857247738Sbapt 9858247738Sbapt 9859247738Sbapt 9860247738Sbapt 9861247738Sbapt 9862247738Sbapt 9863247738Sbapt 9864247738Sbapt 9865247738Sbapt 9866247738Sbapt 9867247738Sbapt 9868247738Sbapt 9869247738Sbapt 9870247738Sbapt 9871247738Sbapt 9872247738Sbapt 9873247738Sbapt 9874247738Sbapt 9875247738Sbapt 9876247738Sbapt 9877247738Sbapt 9878247738Sbapt 9879247738Sbapt 9880247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 9881247738Sbapt$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9882247738Sbapthardcode_action= 9883247738Sbaptif test -n "$hardcode_libdir_flag_spec" || 9884247738Sbapt test -n "$runpath_var" || 9885247738Sbapt test "X$hardcode_automatic" = "Xyes" ; then 9886247738Sbapt 9887247738Sbapt # We can hardcode non-existent directories. 9888247738Sbapt if test "$hardcode_direct" != no && 9889247738Sbapt # If the only mechanism to avoid hardcoding is shlibpath_var, we 9890247738Sbapt # have to relink, otherwise we might link with an installed library 9891247738Sbapt # when we should be linking with a yet-to-be-installed one 9892247738Sbapt ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 9893247738Sbapt test "$hardcode_minus_L" != no; then 9894247738Sbapt # Linking always hardcodes the temporary library directory. 9895247738Sbapt hardcode_action=relink 9896247738Sbapt else 9897247738Sbapt # We can link without hardcoding, and we can hardcode nonexisting dirs. 9898247738Sbapt hardcode_action=immediate 9899247738Sbapt fi 9900247738Sbaptelse 9901247738Sbapt # We cannot hardcode anything, or else we can only hardcode existing 9902247738Sbapt # directories. 9903247738Sbapt hardcode_action=unsupported 9904247738Sbaptfi 9905247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 9906247738Sbapt$as_echo "$hardcode_action" >&6; } 9907247738Sbapt 9908247738Sbaptif test "$hardcode_action" = relink || 9909247738Sbapt test "$inherit_rpath" = yes; then 9910247738Sbapt # Fast installation is not supported 9911247738Sbapt enable_fast_install=no 9912247738Sbaptelif test "$shlibpath_overrides_runpath" = yes || 9913247738Sbapt test "$enable_shared" = no; then 9914247738Sbapt # Fast installation is not necessary 9915247738Sbapt enable_fast_install=needless 9916247738Sbaptfi 9917247738Sbapt 9918247738Sbapt 9919247738Sbapt 9920247738Sbapt 9921247738Sbapt 9922247738Sbapt 9923247738Sbapt if test "x$enable_dlopen" != xyes; then 9924247738Sbapt enable_dlopen=unknown 9925247738Sbapt enable_dlopen_self=unknown 9926247738Sbapt enable_dlopen_self_static=unknown 9927247738Sbaptelse 9928247738Sbapt lt_cv_dlopen=no 9929247738Sbapt lt_cv_dlopen_libs= 9930247738Sbapt 9931247738Sbapt case $host_os in 9932247738Sbapt beos*) 9933247738Sbapt lt_cv_dlopen="load_add_on" 9934247738Sbapt lt_cv_dlopen_libs= 9935247738Sbapt lt_cv_dlopen_self=yes 9936247738Sbapt ;; 9937247738Sbapt 9938247738Sbapt mingw* | pw32* | cegcc*) 9939247738Sbapt lt_cv_dlopen="LoadLibrary" 9940247738Sbapt lt_cv_dlopen_libs= 9941247738Sbapt ;; 9942247738Sbapt 9943247738Sbapt cygwin*) 9944247738Sbapt lt_cv_dlopen="dlopen" 9945247738Sbapt lt_cv_dlopen_libs= 9946247738Sbapt ;; 9947247738Sbapt 9948247738Sbapt darwin*) 9949247738Sbapt # if libdl is installed we need to link against it 9950247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9951247738Sbapt$as_echo_n "checking for dlopen in -ldl... " >&6; } 9952247738Sbaptif test "${ac_cv_lib_dl_dlopen+set}" = set; then : 9953247738Sbapt $as_echo_n "(cached) " >&6 9954247738Sbaptelse 9955247738Sbapt ac_check_lib_save_LIBS=$LIBS 9956247738SbaptLIBS="-ldl $LIBS" 9957247738Sbaptcat confdefs.h - <<_ACEOF >conftest.$ac_ext 9958247738Sbapt/* end confdefs.h. */ 9959247738Sbapt 9960247738Sbapt/* Override any GCC internal prototype to avoid an error. 9961247738Sbapt Use char because int might match the return type of a GCC 9962247738Sbapt builtin and then its argument prototype would still apply. */ 9963247738Sbapt#ifdef __cplusplus 9964247738Sbaptextern "C" 9965247738Sbapt#endif 9966247738Sbaptchar dlopen (); 9967247738Sbaptint 9968247738Sbaptmain () 9969247738Sbapt{ 9970247738Sbaptreturn dlopen (); 9971247738Sbapt ; 9972247738Sbapt return 0; 9973247738Sbapt} 9974247738Sbapt_ACEOF 9975247738Sbaptif ac_fn_c_try_link "$LINENO"; then : 9976247738Sbapt ac_cv_lib_dl_dlopen=yes 9977247738Sbaptelse 9978247738Sbapt ac_cv_lib_dl_dlopen=no 9979247738Sbaptfi 9980247738Sbaptrm -f core conftest.err conftest.$ac_objext \ 9981247738Sbapt conftest$ac_exeext conftest.$ac_ext 9982247738SbaptLIBS=$ac_check_lib_save_LIBS 9983247738Sbaptfi 9984247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9985247738Sbapt$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9986247738Sbaptif test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 9987247738Sbapt lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9988247738Sbaptelse 9989247738Sbapt 9990247738Sbapt lt_cv_dlopen="dyld" 9991247738Sbapt lt_cv_dlopen_libs= 9992247738Sbapt lt_cv_dlopen_self=yes 9993247738Sbapt 9994247738Sbaptfi 9995247738Sbapt 9996247738Sbapt ;; 9997247738Sbapt 9998247738Sbapt *) 9999247738Sbapt ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10000247738Sbaptif test "x$ac_cv_func_shl_load" = x""yes; then : 10001247738Sbapt lt_cv_dlopen="shl_load" 10002247738Sbaptelse 10003247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10004247738Sbapt$as_echo_n "checking for shl_load in -ldld... " >&6; } 10005247738Sbaptif test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10006247738Sbapt $as_echo_n "(cached) " >&6 10007247738Sbaptelse 10008247738Sbapt ac_check_lib_save_LIBS=$LIBS 10009247738SbaptLIBS="-ldld $LIBS" 10010247738Sbaptcat confdefs.h - <<_ACEOF >conftest.$ac_ext 10011247738Sbapt/* end confdefs.h. */ 10012247738Sbapt 10013247738Sbapt/* Override any GCC internal prototype to avoid an error. 10014247738Sbapt Use char because int might match the return type of a GCC 10015247738Sbapt builtin and then its argument prototype would still apply. */ 10016247738Sbapt#ifdef __cplusplus 10017247738Sbaptextern "C" 10018247738Sbapt#endif 10019247738Sbaptchar shl_load (); 10020247738Sbaptint 10021247738Sbaptmain () 10022247738Sbapt{ 10023247738Sbaptreturn shl_load (); 10024247738Sbapt ; 10025247738Sbapt return 0; 10026247738Sbapt} 10027247738Sbapt_ACEOF 10028247738Sbaptif ac_fn_c_try_link "$LINENO"; then : 10029247738Sbapt ac_cv_lib_dld_shl_load=yes 10030247738Sbaptelse 10031247738Sbapt ac_cv_lib_dld_shl_load=no 10032247738Sbaptfi 10033247738Sbaptrm -f core conftest.err conftest.$ac_objext \ 10034247738Sbapt conftest$ac_exeext conftest.$ac_ext 10035247738SbaptLIBS=$ac_check_lib_save_LIBS 10036247738Sbaptfi 10037247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10038247738Sbapt$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10039247738Sbaptif test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10040247738Sbapt lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10041247738Sbaptelse 10042247738Sbapt ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10043247738Sbaptif test "x$ac_cv_func_dlopen" = x""yes; then : 10044247738Sbapt lt_cv_dlopen="dlopen" 10045247738Sbaptelse 10046247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10047247738Sbapt$as_echo_n "checking for dlopen in -ldl... " >&6; } 10048247738Sbaptif test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10049247738Sbapt $as_echo_n "(cached) " >&6 10050247738Sbaptelse 10051247738Sbapt ac_check_lib_save_LIBS=$LIBS 10052247738SbaptLIBS="-ldl $LIBS" 10053247738Sbaptcat confdefs.h - <<_ACEOF >conftest.$ac_ext 10054247738Sbapt/* end confdefs.h. */ 10055247738Sbapt 10056247738Sbapt/* Override any GCC internal prototype to avoid an error. 10057247738Sbapt Use char because int might match the return type of a GCC 10058247738Sbapt builtin and then its argument prototype would still apply. */ 10059247738Sbapt#ifdef __cplusplus 10060247738Sbaptextern "C" 10061247738Sbapt#endif 10062247738Sbaptchar dlopen (); 10063247738Sbaptint 10064247738Sbaptmain () 10065247738Sbapt{ 10066247738Sbaptreturn dlopen (); 10067247738Sbapt ; 10068247738Sbapt return 0; 10069247738Sbapt} 10070247738Sbapt_ACEOF 10071247738Sbaptif ac_fn_c_try_link "$LINENO"; then : 10072247738Sbapt ac_cv_lib_dl_dlopen=yes 10073247738Sbaptelse 10074247738Sbapt ac_cv_lib_dl_dlopen=no 10075247738Sbaptfi 10076247738Sbaptrm -f core conftest.err conftest.$ac_objext \ 10077247738Sbapt conftest$ac_exeext conftest.$ac_ext 10078247738SbaptLIBS=$ac_check_lib_save_LIBS 10079247738Sbaptfi 10080247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10081247738Sbapt$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10082247738Sbaptif test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10083247738Sbapt lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10084247738Sbaptelse 10085247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10086247738Sbapt$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10087247738Sbaptif test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10088247738Sbapt $as_echo_n "(cached) " >&6 10089247738Sbaptelse 10090247738Sbapt ac_check_lib_save_LIBS=$LIBS 10091247738SbaptLIBS="-lsvld $LIBS" 10092247738Sbaptcat confdefs.h - <<_ACEOF >conftest.$ac_ext 10093247738Sbapt/* end confdefs.h. */ 10094247738Sbapt 10095247738Sbapt/* Override any GCC internal prototype to avoid an error. 10096247738Sbapt Use char because int might match the return type of a GCC 10097247738Sbapt builtin and then its argument prototype would still apply. */ 10098247738Sbapt#ifdef __cplusplus 10099247738Sbaptextern "C" 10100247738Sbapt#endif 10101247738Sbaptchar dlopen (); 10102247738Sbaptint 10103247738Sbaptmain () 10104247738Sbapt{ 10105247738Sbaptreturn dlopen (); 10106247738Sbapt ; 10107247738Sbapt return 0; 10108247738Sbapt} 10109247738Sbapt_ACEOF 10110247738Sbaptif ac_fn_c_try_link "$LINENO"; then : 10111247738Sbapt ac_cv_lib_svld_dlopen=yes 10112247738Sbaptelse 10113247738Sbapt ac_cv_lib_svld_dlopen=no 10114247738Sbaptfi 10115247738Sbaptrm -f core conftest.err conftest.$ac_objext \ 10116247738Sbapt conftest$ac_exeext conftest.$ac_ext 10117247738SbaptLIBS=$ac_check_lib_save_LIBS 10118247738Sbaptfi 10119247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10120247738Sbapt$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10121247738Sbaptif test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10122247738Sbapt lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10123247738Sbaptelse 10124247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10125247738Sbapt$as_echo_n "checking for dld_link in -ldld... " >&6; } 10126247738Sbaptif test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10127247738Sbapt $as_echo_n "(cached) " >&6 10128247738Sbaptelse 10129247738Sbapt ac_check_lib_save_LIBS=$LIBS 10130247738SbaptLIBS="-ldld $LIBS" 10131247738Sbaptcat confdefs.h - <<_ACEOF >conftest.$ac_ext 10132247738Sbapt/* end confdefs.h. */ 10133247738Sbapt 10134247738Sbapt/* Override any GCC internal prototype to avoid an error. 10135247738Sbapt Use char because int might match the return type of a GCC 10136247738Sbapt builtin and then its argument prototype would still apply. */ 10137247738Sbapt#ifdef __cplusplus 10138247738Sbaptextern "C" 10139247738Sbapt#endif 10140247738Sbaptchar dld_link (); 10141247738Sbaptint 10142247738Sbaptmain () 10143247738Sbapt{ 10144247738Sbaptreturn dld_link (); 10145247738Sbapt ; 10146247738Sbapt return 0; 10147247738Sbapt} 10148247738Sbapt_ACEOF 10149247738Sbaptif ac_fn_c_try_link "$LINENO"; then : 10150247738Sbapt ac_cv_lib_dld_dld_link=yes 10151247738Sbaptelse 10152247738Sbapt ac_cv_lib_dld_dld_link=no 10153247738Sbaptfi 10154247738Sbaptrm -f core conftest.err conftest.$ac_objext \ 10155247738Sbapt conftest$ac_exeext conftest.$ac_ext 10156247738SbaptLIBS=$ac_check_lib_save_LIBS 10157247738Sbaptfi 10158247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10159247738Sbapt$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10160247738Sbaptif test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10161247738Sbapt lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10162247738Sbaptfi 10163247738Sbapt 10164247738Sbapt 10165247738Sbaptfi 10166247738Sbapt 10167247738Sbapt 10168247738Sbaptfi 10169247738Sbapt 10170247738Sbapt 10171247738Sbaptfi 10172247738Sbapt 10173247738Sbapt 10174247738Sbaptfi 10175247738Sbapt 10176247738Sbapt 10177247738Sbaptfi 10178247738Sbapt 10179247738Sbapt ;; 10180247738Sbapt esac 10181247738Sbapt 10182247738Sbapt if test "x$lt_cv_dlopen" != xno; then 10183247738Sbapt enable_dlopen=yes 10184247738Sbapt else 10185247738Sbapt enable_dlopen=no 10186247738Sbapt fi 10187247738Sbapt 10188247738Sbapt case $lt_cv_dlopen in 10189247738Sbapt dlopen) 10190247738Sbapt save_CPPFLAGS="$CPPFLAGS" 10191247738Sbapt test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10192247738Sbapt 10193247738Sbapt save_LDFLAGS="$LDFLAGS" 10194247738Sbapt wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10195247738Sbapt 10196247738Sbapt save_LIBS="$LIBS" 10197247738Sbapt LIBS="$lt_cv_dlopen_libs $LIBS" 10198247738Sbapt 10199247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10200247738Sbapt$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10201247738Sbaptif test "${lt_cv_dlopen_self+set}" = set; then : 10202247738Sbapt $as_echo_n "(cached) " >&6 10203247738Sbaptelse 10204247738Sbapt if test "$cross_compiling" = yes; then : 10205247738Sbapt lt_cv_dlopen_self=cross 10206247738Sbaptelse 10207247738Sbapt lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10208247738Sbapt lt_status=$lt_dlunknown 10209247738Sbapt cat > conftest.$ac_ext <<_LT_EOF 10210247738Sbapt#line 10210 "configure" 10211247738Sbapt#include "confdefs.h" 10212247738Sbapt 10213247738Sbapt#if HAVE_DLFCN_H 10214247738Sbapt#include <dlfcn.h> 10215247738Sbapt#endif 10216247738Sbapt 10217247738Sbapt#include <stdio.h> 10218247738Sbapt 10219247738Sbapt#ifdef RTLD_GLOBAL 10220247738Sbapt# define LT_DLGLOBAL RTLD_GLOBAL 10221247738Sbapt#else 10222247738Sbapt# ifdef DL_GLOBAL 10223247738Sbapt# define LT_DLGLOBAL DL_GLOBAL 10224247738Sbapt# else 10225247738Sbapt# define LT_DLGLOBAL 0 10226247738Sbapt# endif 10227247738Sbapt#endif 10228247738Sbapt 10229247738Sbapt/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10230247738Sbapt find out it does not work in some platform. */ 10231247738Sbapt#ifndef LT_DLLAZY_OR_NOW 10232247738Sbapt# ifdef RTLD_LAZY 10233247738Sbapt# define LT_DLLAZY_OR_NOW RTLD_LAZY 10234247738Sbapt# else 10235247738Sbapt# ifdef DL_LAZY 10236247738Sbapt# define LT_DLLAZY_OR_NOW DL_LAZY 10237247738Sbapt# else 10238247738Sbapt# ifdef RTLD_NOW 10239247738Sbapt# define LT_DLLAZY_OR_NOW RTLD_NOW 10240247738Sbapt# else 10241247738Sbapt# ifdef DL_NOW 10242247738Sbapt# define LT_DLLAZY_OR_NOW DL_NOW 10243247738Sbapt# else 10244247738Sbapt# define LT_DLLAZY_OR_NOW 0 10245247738Sbapt# endif 10246247738Sbapt# endif 10247247738Sbapt# endif 10248247738Sbapt# endif 10249247738Sbapt#endif 10250247738Sbapt 10251247738Sbaptvoid fnord() { int i=42;} 10252247738Sbaptint main () 10253247738Sbapt{ 10254247738Sbapt void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10255247738Sbapt int status = $lt_dlunknown; 10256247738Sbapt 10257247738Sbapt if (self) 10258247738Sbapt { 10259247738Sbapt if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10260247738Sbapt else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10261247738Sbapt /* dlclose (self); */ 10262247738Sbapt } 10263247738Sbapt else 10264247738Sbapt puts (dlerror ()); 10265247738Sbapt 10266247738Sbapt return status; 10267247738Sbapt} 10268247738Sbapt_LT_EOF 10269247738Sbapt if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10270247738Sbapt (eval $ac_link) 2>&5 10271247738Sbapt ac_status=$? 10272247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10273247738Sbapt test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10274247738Sbapt (./conftest; exit; ) >&5 2>/dev/null 10275247738Sbapt lt_status=$? 10276247738Sbapt case x$lt_status in 10277247738Sbapt x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10278247738Sbapt x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10279247738Sbapt x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10280247738Sbapt esac 10281247738Sbapt else : 10282247738Sbapt # compilation failed 10283247738Sbapt lt_cv_dlopen_self=no 10284247738Sbapt fi 10285247738Sbaptfi 10286247738Sbaptrm -fr conftest* 10287247738Sbapt 10288247738Sbapt 10289247738Sbaptfi 10290247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10291247738Sbapt$as_echo "$lt_cv_dlopen_self" >&6; } 10292247738Sbapt 10293247738Sbapt if test "x$lt_cv_dlopen_self" = xyes; then 10294247738Sbapt wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10295247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10296247738Sbapt$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10297247738Sbaptif test "${lt_cv_dlopen_self_static+set}" = set; then : 10298247738Sbapt $as_echo_n "(cached) " >&6 10299247738Sbaptelse 10300247738Sbapt if test "$cross_compiling" = yes; then : 10301247738Sbapt lt_cv_dlopen_self_static=cross 10302247738Sbaptelse 10303247738Sbapt lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10304247738Sbapt lt_status=$lt_dlunknown 10305247738Sbapt cat > conftest.$ac_ext <<_LT_EOF 10306247738Sbapt#line 10306 "configure" 10307247738Sbapt#include "confdefs.h" 10308247738Sbapt 10309247738Sbapt#if HAVE_DLFCN_H 10310247738Sbapt#include <dlfcn.h> 10311247738Sbapt#endif 10312247738Sbapt 10313247738Sbapt#include <stdio.h> 10314247738Sbapt 10315247738Sbapt#ifdef RTLD_GLOBAL 10316247738Sbapt# define LT_DLGLOBAL RTLD_GLOBAL 10317247738Sbapt#else 10318247738Sbapt# ifdef DL_GLOBAL 10319247738Sbapt# define LT_DLGLOBAL DL_GLOBAL 10320247738Sbapt# else 10321247738Sbapt# define LT_DLGLOBAL 0 10322247738Sbapt# endif 10323247738Sbapt#endif 10324247738Sbapt 10325247738Sbapt/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10326247738Sbapt find out it does not work in some platform. */ 10327247738Sbapt#ifndef LT_DLLAZY_OR_NOW 10328247738Sbapt# ifdef RTLD_LAZY 10329247738Sbapt# define LT_DLLAZY_OR_NOW RTLD_LAZY 10330247738Sbapt# else 10331247738Sbapt# ifdef DL_LAZY 10332247738Sbapt# define LT_DLLAZY_OR_NOW DL_LAZY 10333247738Sbapt# else 10334247738Sbapt# ifdef RTLD_NOW 10335247738Sbapt# define LT_DLLAZY_OR_NOW RTLD_NOW 10336247738Sbapt# else 10337247738Sbapt# ifdef DL_NOW 10338247738Sbapt# define LT_DLLAZY_OR_NOW DL_NOW 10339247738Sbapt# else 10340247738Sbapt# define LT_DLLAZY_OR_NOW 0 10341247738Sbapt# endif 10342247738Sbapt# endif 10343247738Sbapt# endif 10344247738Sbapt# endif 10345247738Sbapt#endif 10346247738Sbapt 10347247738Sbaptvoid fnord() { int i=42;} 10348247738Sbaptint main () 10349247738Sbapt{ 10350247738Sbapt void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10351247738Sbapt int status = $lt_dlunknown; 10352247738Sbapt 10353247738Sbapt if (self) 10354247738Sbapt { 10355247738Sbapt if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10356247738Sbapt else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10357247738Sbapt /* dlclose (self); */ 10358247738Sbapt } 10359247738Sbapt else 10360247738Sbapt puts (dlerror ()); 10361247738Sbapt 10362247738Sbapt return status; 10363247738Sbapt} 10364247738Sbapt_LT_EOF 10365247738Sbapt if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10366247738Sbapt (eval $ac_link) 2>&5 10367247738Sbapt ac_status=$? 10368247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10369247738Sbapt test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10370247738Sbapt (./conftest; exit; ) >&5 2>/dev/null 10371247738Sbapt lt_status=$? 10372247738Sbapt case x$lt_status in 10373247738Sbapt x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10374247738Sbapt x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10375247738Sbapt x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10376247738Sbapt esac 10377247738Sbapt else : 10378247738Sbapt # compilation failed 10379247738Sbapt lt_cv_dlopen_self_static=no 10380247738Sbapt fi 10381247738Sbaptfi 10382247738Sbaptrm -fr conftest* 10383247738Sbapt 10384247738Sbapt 10385247738Sbaptfi 10386247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10387247738Sbapt$as_echo "$lt_cv_dlopen_self_static" >&6; } 10388247738Sbapt fi 10389247738Sbapt 10390247738Sbapt CPPFLAGS="$save_CPPFLAGS" 10391247738Sbapt LDFLAGS="$save_LDFLAGS" 10392247738Sbapt LIBS="$save_LIBS" 10393247738Sbapt ;; 10394247738Sbapt esac 10395247738Sbapt 10396247738Sbapt case $lt_cv_dlopen_self in 10397247738Sbapt yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10398247738Sbapt *) enable_dlopen_self=unknown ;; 10399247738Sbapt esac 10400247738Sbapt 10401247738Sbapt case $lt_cv_dlopen_self_static in 10402247738Sbapt yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10403247738Sbapt *) enable_dlopen_self_static=unknown ;; 10404247738Sbapt esac 10405247738Sbaptfi 10406247738Sbapt 10407247738Sbapt 10408247738Sbapt 10409247738Sbapt 10410247738Sbapt 10411247738Sbapt 10412247738Sbapt 10413247738Sbapt 10414247738Sbapt 10415247738Sbapt 10416247738Sbapt 10417247738Sbapt 10418247738Sbapt 10419247738Sbapt 10420247738Sbapt 10421247738Sbapt 10422247738Sbapt 10423247738Sbaptstriplib= 10424247738Sbaptold_striplib= 10425247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10426247738Sbapt$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10427247738Sbaptif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10428247738Sbapt test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10429247738Sbapt test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10430247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10431247738Sbapt$as_echo "yes" >&6; } 10432247738Sbaptelse 10433247738Sbapt# FIXME - insert some real tests, host_os isn't really good enough 10434247738Sbapt case $host_os in 10435247738Sbapt darwin*) 10436247738Sbapt if test -n "$STRIP" ; then 10437247738Sbapt striplib="$STRIP -x" 10438247738Sbapt old_striplib="$STRIP -S" 10439247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10440247738Sbapt$as_echo "yes" >&6; } 10441247738Sbapt else 10442247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10443247738Sbapt$as_echo "no" >&6; } 10444247738Sbapt fi 10445247738Sbapt ;; 10446247738Sbapt *) 10447247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10448247738Sbapt$as_echo "no" >&6; } 10449247738Sbapt ;; 10450247738Sbapt esac 10451247738Sbaptfi 10452247738Sbapt 10453247738Sbapt 10454247738Sbapt 10455247738Sbapt 10456247738Sbapt 10457247738Sbapt 10458247738Sbapt 10459247738Sbapt 10460247738Sbapt 10461247738Sbapt 10462247738Sbapt 10463247738Sbapt 10464247738Sbapt # Report which library types will actually be built 10465247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10466247738Sbapt$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10467247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10468247738Sbapt$as_echo "$can_build_shared" >&6; } 10469247738Sbapt 10470247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10471247738Sbapt$as_echo_n "checking whether to build shared libraries... " >&6; } 10472247738Sbapt test "$can_build_shared" = "no" && enable_shared=no 10473247738Sbapt 10474247738Sbapt # On AIX, shared libraries and static libraries use the same namespace, and 10475247738Sbapt # are all built from PIC. 10476247738Sbapt case $host_os in 10477247738Sbapt aix3*) 10478247738Sbapt test "$enable_shared" = yes && enable_static=no 10479247738Sbapt if test -n "$RANLIB"; then 10480247738Sbapt archive_cmds="$archive_cmds~\$RANLIB \$lib" 10481247738Sbapt postinstall_cmds='$RANLIB $lib' 10482247738Sbapt fi 10483247738Sbapt ;; 10484247738Sbapt 10485247738Sbapt aix[4-9]*) 10486247738Sbapt if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10487247738Sbapt test "$enable_shared" = yes && enable_static=no 10488247738Sbapt fi 10489247738Sbapt ;; 10490247738Sbapt esac 10491247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10492247738Sbapt$as_echo "$enable_shared" >&6; } 10493247738Sbapt 10494247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10495247738Sbapt$as_echo_n "checking whether to build static libraries... " >&6; } 10496247738Sbapt # Make sure either enable_shared or enable_static is yes. 10497247738Sbapt test "$enable_shared" = yes || enable_static=yes 10498247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10499247738Sbapt$as_echo "$enable_static" >&6; } 10500247738Sbapt 10501247738Sbapt 10502247738Sbapt 10503247738Sbapt 10504247738Sbaptfi 10505247738Sbaptac_ext=c 10506247738Sbaptac_cpp='$CPP $CPPFLAGS' 10507247738Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10508247738Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10509247738Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 10510247738Sbapt 10511247738SbaptCC="$lt_save_CC" 10512247738Sbapt 10513247738Sbapt 10514247738Sbapt 10515247738Sbapt 10516247738Sbapt 10517247738Sbapt 10518247738Sbapt 10519247738Sbapt 10520247738Sbapt 10521247738Sbapt 10522247738Sbapt 10523247738Sbapt 10524247738Sbapt 10525247738Sbapt ac_config_commands="$ac_config_commands libtool" 10526247738Sbapt 10527247738Sbapt 10528247738Sbapt 10529247738Sbapt 10530247738Sbapt# Only expand once: 10531247738Sbapt 10532247738Sbapt 10533247738Sbapt 10534247738Sbapt# Extract the first word of "doxygen", so it can be a program name with args. 10535247738Sbaptset dummy doxygen; ac_word=$2 10536247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10537247738Sbapt$as_echo_n "checking for $ac_word... " >&6; } 10538247738Sbaptif test "${ac_cv_prog_DOXYGEN+set}" = set; then : 10539247738Sbapt $as_echo_n "(cached) " >&6 10540247738Sbaptelse 10541247738Sbapt if test -n "$DOXYGEN"; then 10542247738Sbapt ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test. 10543247738Sbaptelse 10544247738Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10545247738Sbaptfor as_dir in $PATH 10546247738Sbaptdo 10547247738Sbapt IFS=$as_save_IFS 10548247738Sbapt test -z "$as_dir" && as_dir=. 10549247738Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 10550247738Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10551247738Sbapt ac_cv_prog_DOXYGEN="true" 10552247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10553247738Sbapt break 2 10554247738Sbapt fi 10555247738Sbaptdone 10556247738Sbapt done 10557247738SbaptIFS=$as_save_IFS 10558247738Sbapt 10559247738Sbapt test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="false" 10560247738Sbaptfi 10561247738Sbaptfi 10562247738SbaptDOXYGEN=$ac_cv_prog_DOXYGEN 10563247738Sbaptif test -n "$DOXYGEN"; then 10564247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 10565247738Sbapt$as_echo "$DOXYGEN" >&6; } 10566247738Sbaptelse 10567247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10568247738Sbapt$as_echo "no" >&6; } 10569247738Sbaptfi 10570247738Sbapt 10571247738Sbapt 10572247738Sbapt if test "$DOXYGEN" = true; then 10573247738Sbapt DOXYGEN_TRUE= 10574247738Sbapt DOXYGEN_FALSE='#' 10575247738Sbaptelse 10576247738Sbapt DOXYGEN_TRUE='#' 10577247738Sbapt DOXYGEN_FALSE= 10578247738Sbaptfi 10579247738Sbapt 10580247738Sbapt 10581247738Sbapt# Checks for header files. 10582247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 10583247738Sbapt$as_echo_n "checking for ANSI C header files... " >&6; } 10584247738Sbaptif test "${ac_cv_header_stdc+set}" = set; then : 10585247738Sbapt $as_echo_n "(cached) " >&6 10586247738Sbaptelse 10587247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10588247738Sbapt/* end confdefs.h. */ 10589247738Sbapt#include <stdlib.h> 10590247738Sbapt#include <stdarg.h> 10591247738Sbapt#include <string.h> 10592247738Sbapt#include <float.h> 10593247738Sbapt 10594247738Sbaptint 10595247738Sbaptmain () 10596247738Sbapt{ 10597247738Sbapt 10598247738Sbapt ; 10599247738Sbapt return 0; 10600247738Sbapt} 10601247738Sbapt_ACEOF 10602247738Sbaptif ac_fn_c_try_compile "$LINENO"; then : 10603247738Sbapt ac_cv_header_stdc=yes 10604247738Sbaptelse 10605247738Sbapt ac_cv_header_stdc=no 10606247738Sbaptfi 10607247738Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10608247738Sbapt 10609247738Sbaptif test $ac_cv_header_stdc = yes; then 10610247738Sbapt # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 10611247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10612247738Sbapt/* end confdefs.h. */ 10613247738Sbapt#include <string.h> 10614247738Sbapt 10615247738Sbapt_ACEOF 10616247738Sbaptif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10617247738Sbapt $EGREP "memchr" >/dev/null 2>&1; then : 10618247738Sbapt 10619247738Sbaptelse 10620247738Sbapt ac_cv_header_stdc=no 10621247738Sbaptfi 10622247738Sbaptrm -f conftest* 10623247738Sbapt 10624247738Sbaptfi 10625247738Sbapt 10626247738Sbaptif test $ac_cv_header_stdc = yes; then 10627247738Sbapt # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 10628247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10629247738Sbapt/* end confdefs.h. */ 10630247738Sbapt#include <stdlib.h> 10631247738Sbapt 10632247738Sbapt_ACEOF 10633247738Sbaptif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10634247738Sbapt $EGREP "free" >/dev/null 2>&1; then : 10635247738Sbapt 10636247738Sbaptelse 10637247738Sbapt ac_cv_header_stdc=no 10638247738Sbaptfi 10639247738Sbaptrm -f conftest* 10640247738Sbapt 10641247738Sbaptfi 10642247738Sbapt 10643247738Sbaptif test $ac_cv_header_stdc = yes; then 10644247738Sbapt # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 10645247738Sbapt if test "$cross_compiling" = yes; then : 10646247738Sbapt : 10647247738Sbaptelse 10648247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10649247738Sbapt/* end confdefs.h. */ 10650247738Sbapt#include <ctype.h> 10651247738Sbapt#include <stdlib.h> 10652247738Sbapt#if ((' ' & 0x0FF) == 0x020) 10653247738Sbapt# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 10654247738Sbapt# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 10655247738Sbapt#else 10656247738Sbapt# define ISLOWER(c) \ 10657247738Sbapt (('a' <= (c) && (c) <= 'i') \ 10658247738Sbapt || ('j' <= (c) && (c) <= 'r') \ 10659247738Sbapt || ('s' <= (c) && (c) <= 'z')) 10660247738Sbapt# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 10661247738Sbapt#endif 10662247738Sbapt 10663247738Sbapt#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 10664247738Sbaptint 10665247738Sbaptmain () 10666247738Sbapt{ 10667247738Sbapt int i; 10668247738Sbapt for (i = 0; i < 256; i++) 10669247738Sbapt if (XOR (islower (i), ISLOWER (i)) 10670247738Sbapt || toupper (i) != TOUPPER (i)) 10671247738Sbapt return 2; 10672247738Sbapt return 0; 10673247738Sbapt} 10674247738Sbapt_ACEOF 10675247738Sbaptif ac_fn_c_try_run "$LINENO"; then : 10676247738Sbapt 10677247738Sbaptelse 10678247738Sbapt ac_cv_header_stdc=no 10679247738Sbaptfi 10680247738Sbaptrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10681247738Sbapt conftest.$ac_objext conftest.beam conftest.$ac_ext 10682247738Sbaptfi 10683247738Sbapt 10684247738Sbaptfi 10685247738Sbaptfi 10686247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 10687247738Sbapt$as_echo "$ac_cv_header_stdc" >&6; } 10688247738Sbaptif test $ac_cv_header_stdc = yes; then 10689247738Sbapt 10690247738Sbapt$as_echo "#define STDC_HEADERS 1" >>confdefs.h 10691247738Sbapt 10692247738Sbaptfi 10693247738Sbapt 10694247738Sbaptfor ac_header in stdlib.h 10695247738Sbaptdo : 10696247738Sbapt ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 10697247738Sbaptif test "x$ac_cv_header_stdlib_h" = x""yes; then : 10698247738Sbapt cat >>confdefs.h <<_ACEOF 10699247738Sbapt#define HAVE_STDLIB_H 1 10700247738Sbapt_ACEOF 10701247738Sbapt 10702247738Sbaptfi 10703247738Sbapt 10704247738Sbaptdone 10705247738Sbapt 10706247738Sbapt 10707247738Sbapt# Checks for typedefs, structures, and compiler characteristics. 10708247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 10709247738Sbapt$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 10710247738Sbaptif test "${ac_cv_c_const+set}" = set; then : 10711247738Sbapt $as_echo_n "(cached) " >&6 10712247738Sbaptelse 10713247738Sbapt cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10714247738Sbapt/* end confdefs.h. */ 10715247738Sbapt 10716247738Sbaptint 10717247738Sbaptmain () 10718247738Sbapt{ 10719247738Sbapt/* FIXME: Include the comments suggested by Paul. */ 10720247738Sbapt#ifndef __cplusplus 10721247738Sbapt /* Ultrix mips cc rejects this. */ 10722247738Sbapt typedef int charset[2]; 10723247738Sbapt const charset cs; 10724247738Sbapt /* SunOS 4.1.1 cc rejects this. */ 10725247738Sbapt char const *const *pcpcc; 10726247738Sbapt char **ppc; 10727247738Sbapt /* NEC SVR4.0.2 mips cc rejects this. */ 10728247738Sbapt struct point {int x, y;}; 10729247738Sbapt static struct point const zero = {0,0}; 10730247738Sbapt /* AIX XL C 1.02.0.0 rejects this. 10731247738Sbapt It does not let you subtract one const X* pointer from another in 10732247738Sbapt an arm of an if-expression whose if-part is not a constant 10733247738Sbapt expression */ 10734247738Sbapt const char *g = "string"; 10735247738Sbapt pcpcc = &g + (g ? g-g : 0); 10736247738Sbapt /* HPUX 7.0 cc rejects these. */ 10737247738Sbapt ++pcpcc; 10738247738Sbapt ppc = (char**) pcpcc; 10739247738Sbapt pcpcc = (char const *const *) ppc; 10740247738Sbapt { /* SCO 3.2v4 cc rejects this. */ 10741247738Sbapt char *t; 10742247738Sbapt char const *s = 0 ? (char *) 0 : (char const *) 0; 10743247738Sbapt 10744247738Sbapt *t++ = 0; 10745247738Sbapt if (s) return 0; 10746247738Sbapt } 10747247738Sbapt { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 10748247738Sbapt int x[] = {25, 17}; 10749247738Sbapt const int *foo = &x[0]; 10750247738Sbapt ++foo; 10751247738Sbapt } 10752247738Sbapt { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 10753247738Sbapt typedef const int *iptr; 10754247738Sbapt iptr p = 0; 10755247738Sbapt ++p; 10756247738Sbapt } 10757247738Sbapt { /* AIX XL C 1.02.0.0 rejects this saying 10758247738Sbapt "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 10759247738Sbapt struct s { int j; const int *ap[3]; }; 10760247738Sbapt struct s *b; b->j = 5; 10761247738Sbapt } 10762247738Sbapt { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 10763247738Sbapt const int foo = 10; 10764247738Sbapt if (!foo) return 0; 10765247738Sbapt } 10766247738Sbapt return !cs[0] && !zero.x; 10767247738Sbapt#endif 10768247738Sbapt 10769247738Sbapt ; 10770247738Sbapt return 0; 10771247738Sbapt} 10772247738Sbapt_ACEOF 10773247738Sbaptif ac_fn_c_try_compile "$LINENO"; then : 10774247738Sbapt ac_cv_c_const=yes 10775247738Sbaptelse 10776247738Sbapt ac_cv_c_const=no 10777247738Sbaptfi 10778247738Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10779247738Sbaptfi 10780247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 10781247738Sbapt$as_echo "$ac_cv_c_const" >&6; } 10782247738Sbaptif test $ac_cv_c_const = no; then 10783247738Sbapt 10784247738Sbapt$as_echo "#define const /**/" >>confdefs.h 10785247738Sbapt 10786247738Sbaptfi 10787247738Sbapt 10788247738Sbaptac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 10789247738Sbaptif test "x$ac_cv_type_size_t" = x""yes; then : 10790247738Sbapt 10791247738Sbaptelse 10792247738Sbapt 10793247738Sbaptcat >>confdefs.h <<_ACEOF 10794247738Sbapt#define size_t unsigned int 10795247738Sbapt_ACEOF 10796247738Sbapt 10797247738Sbaptfi 10798247738Sbapt 10799247738Sbapt 10800247738Sbapt# Define Makefiles. 10801247738Sbaptac_config_files="$ac_config_files yaml-0.1.pc include/Makefile src/Makefile Makefile tests/Makefile win32/Makefile" 10802247738Sbapt 10803247738Sbapt 10804247738Sbapt# Generate the "configure" script. 10805247738Sbaptcat >confcache <<\_ACEOF 10806247738Sbapt# This file is a shell script that caches the results of configure 10807247738Sbapt# tests run on this system so they can be shared between configure 10808247738Sbapt# scripts and configure runs, see configure's option --config-cache. 10809247738Sbapt# It is not useful on other systems. If it contains results you don't 10810247738Sbapt# want to keep, you may remove or edit it. 10811247738Sbapt# 10812247738Sbapt# config.status only pays attention to the cache file if you give it 10813247738Sbapt# the --recheck option to rerun configure. 10814247738Sbapt# 10815247738Sbapt# `ac_cv_env_foo' variables (set or unset) will be overridden when 10816247738Sbapt# loading this file, other *unset* `ac_cv_foo' will be assigned the 10817247738Sbapt# following values. 10818247738Sbapt 10819247738Sbapt_ACEOF 10820247738Sbapt 10821247738Sbapt# The following way of writing the cache mishandles newlines in values, 10822247738Sbapt# but we know of no workaround that is simple, portable, and efficient. 10823247738Sbapt# So, we kill variables containing newlines. 10824247738Sbapt# Ultrix sh set writes to stderr and can't be redirected directly, 10825247738Sbapt# and sets the high bit in the cache file unless we assign to the vars. 10826247738Sbapt( 10827247738Sbapt for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10828247738Sbapt eval ac_val=\$$ac_var 10829247738Sbapt case $ac_val in #( 10830247738Sbapt *${as_nl}*) 10831247738Sbapt case $ac_var in #( 10832247738Sbapt *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10833247738Sbapt$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10834247738Sbapt esac 10835247738Sbapt case $ac_var in #( 10836247738Sbapt _ | IFS | as_nl) ;; #( 10837247738Sbapt BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10838247738Sbapt *) { eval $ac_var=; unset $ac_var;} ;; 10839247738Sbapt esac ;; 10840247738Sbapt esac 10841247738Sbapt done 10842247738Sbapt 10843247738Sbapt (set) 2>&1 | 10844247738Sbapt case $as_nl`(ac_space=' '; set) 2>&1` in #( 10845247738Sbapt *${as_nl}ac_space=\ *) 10846247738Sbapt # `set' does not quote correctly, so add quotes: double-quote 10847247738Sbapt # substitution turns \\\\ into \\, and sed turns \\ into \. 10848247738Sbapt sed -n \ 10849247738Sbapt "s/'/'\\\\''/g; 10850247738Sbapt s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10851247738Sbapt ;; #( 10852247738Sbapt *) 10853247738Sbapt # `set' quotes correctly as required by POSIX, so do not add quotes. 10854247738Sbapt sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10855247738Sbapt ;; 10856247738Sbapt esac | 10857247738Sbapt sort 10858247738Sbapt) | 10859247738Sbapt sed ' 10860247738Sbapt /^ac_cv_env_/b end 10861247738Sbapt t clear 10862247738Sbapt :clear 10863247738Sbapt s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10864247738Sbapt t end 10865247738Sbapt s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10866247738Sbapt :end' >>confcache 10867247738Sbaptif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10868247738Sbapt if test -w "$cache_file"; then 10869247738Sbapt test "x$cache_file" != "x/dev/null" && 10870247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10871247738Sbapt$as_echo "$as_me: updating cache $cache_file" >&6;} 10872247738Sbapt cat confcache >$cache_file 10873247738Sbapt else 10874247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10875247738Sbapt$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10876247738Sbapt fi 10877247738Sbaptfi 10878247738Sbaptrm -f confcache 10879247738Sbapt 10880247738Sbapttest "x$prefix" = xNONE && prefix=$ac_default_prefix 10881247738Sbapt# Let make expand exec_prefix. 10882247738Sbapttest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10883247738Sbapt 10884247738SbaptDEFS=-DHAVE_CONFIG_H 10885247738Sbapt 10886247738Sbaptac_libobjs= 10887247738Sbaptac_ltlibobjs= 10888247738SbaptU= 10889247738Sbaptfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10890247738Sbapt # 1. Remove the extension, and $U if already installed. 10891247738Sbapt ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10892247738Sbapt ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10893247738Sbapt # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10894247738Sbapt # will be set to the directory where LIBOBJS objects are built. 10895247738Sbapt as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10896247738Sbapt as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10897247738Sbaptdone 10898247738SbaptLIBOBJS=$ac_libobjs 10899247738Sbapt 10900247738SbaptLTLIBOBJS=$ac_ltlibobjs 10901247738Sbapt 10902247738Sbapt 10903247738Sbapt if test -n "$EXEEXT"; then 10904247738Sbapt am__EXEEXT_TRUE= 10905247738Sbapt am__EXEEXT_FALSE='#' 10906247738Sbaptelse 10907247738Sbapt am__EXEEXT_TRUE='#' 10908247738Sbapt am__EXEEXT_FALSE= 10909247738Sbaptfi 10910247738Sbapt 10911247738Sbaptif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10912247738Sbapt as_fn_error $? "conditional \"AMDEP\" was never defined. 10913247738SbaptUsually this means the macro was only invoked conditionally." "$LINENO" 5 10914247738Sbaptfi 10915247738Sbaptif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10916247738Sbapt as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10917247738SbaptUsually this means the macro was only invoked conditionally." "$LINENO" 5 10918247738Sbaptfi 10919247738Sbaptif test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then 10920247738Sbapt as_fn_error $? "conditional \"DOXYGEN\" was never defined. 10921247738SbaptUsually this means the macro was only invoked conditionally." "$LINENO" 5 10922247738Sbaptfi 10923247738Sbapt 10924247738Sbapt: ${CONFIG_STATUS=./config.status} 10925247738Sbaptac_write_fail=0 10926247738Sbaptac_clean_files_save=$ac_clean_files 10927247738Sbaptac_clean_files="$ac_clean_files $CONFIG_STATUS" 10928247738Sbapt{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10929247738Sbapt$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10930247738Sbaptas_write_fail=0 10931247738Sbaptcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10932247738Sbapt#! $SHELL 10933247738Sbapt# Generated by $as_me. 10934247738Sbapt# Run this file to recreate the current configuration. 10935247738Sbapt# Compiler output produced by configure, useful for debugging 10936247738Sbapt# configure, is in config.log if it exists. 10937247738Sbapt 10938247738Sbaptdebug=false 10939247738Sbaptac_cs_recheck=false 10940247738Sbaptac_cs_silent=false 10941247738Sbapt 10942247738SbaptSHELL=\${CONFIG_SHELL-$SHELL} 10943247738Sbaptexport SHELL 10944247738Sbapt_ASEOF 10945247738Sbaptcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10946247738Sbapt## -------------------- ## 10947247738Sbapt## M4sh Initialization. ## 10948247738Sbapt## -------------------- ## 10949247738Sbapt 10950247738Sbapt# Be more Bourne compatible 10951247738SbaptDUALCASE=1; export DUALCASE # for MKS sh 10952247738Sbaptif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10953247738Sbapt emulate sh 10954247738Sbapt NULLCMD=: 10955247738Sbapt # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10956247738Sbapt # is contrary to our usage. Disable this feature. 10957247738Sbapt alias -g '${1+"$@"}'='"$@"' 10958247738Sbapt setopt NO_GLOB_SUBST 10959247738Sbaptelse 10960247738Sbapt case `(set -o) 2>/dev/null` in #( 10961247738Sbapt *posix*) : 10962247738Sbapt set -o posix ;; #( 10963247738Sbapt *) : 10964247738Sbapt ;; 10965247738Sbaptesac 10966247738Sbaptfi 10967247738Sbapt 10968247738Sbapt 10969247738Sbaptas_nl=' 10970247738Sbapt' 10971247738Sbaptexport as_nl 10972247738Sbapt# Printing a long string crashes Solaris 7 /usr/bin/printf. 10973247738Sbaptas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10974247738Sbaptas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10975247738Sbaptas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10976247738Sbapt# Prefer a ksh shell builtin over an external printf program on Solaris, 10977247738Sbapt# but without wasting forks for bash or zsh. 10978247738Sbaptif test -z "$BASH_VERSION$ZSH_VERSION" \ 10979247738Sbapt && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10980247738Sbapt as_echo='print -r --' 10981247738Sbapt as_echo_n='print -rn --' 10982247738Sbaptelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10983247738Sbapt as_echo='printf %s\n' 10984247738Sbapt as_echo_n='printf %s' 10985247738Sbaptelse 10986247738Sbapt if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10987247738Sbapt as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10988247738Sbapt as_echo_n='/usr/ucb/echo -n' 10989247738Sbapt else 10990247738Sbapt as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10991247738Sbapt as_echo_n_body='eval 10992247738Sbapt arg=$1; 10993247738Sbapt case $arg in #( 10994247738Sbapt *"$as_nl"*) 10995247738Sbapt expr "X$arg" : "X\\(.*\\)$as_nl"; 10996247738Sbapt arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10997247738Sbapt esac; 10998247738Sbapt expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10999247738Sbapt ' 11000247738Sbapt export as_echo_n_body 11001247738Sbapt as_echo_n='sh -c $as_echo_n_body as_echo' 11002247738Sbapt fi 11003247738Sbapt export as_echo_body 11004247738Sbapt as_echo='sh -c $as_echo_body as_echo' 11005247738Sbaptfi 11006247738Sbapt 11007247738Sbapt# The user is always right. 11008247738Sbaptif test "${PATH_SEPARATOR+set}" != set; then 11009247738Sbapt PATH_SEPARATOR=: 11010247738Sbapt (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11011247738Sbapt (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11012247738Sbapt PATH_SEPARATOR=';' 11013247738Sbapt } 11014247738Sbaptfi 11015247738Sbapt 11016247738Sbapt 11017247738Sbapt# IFS 11018247738Sbapt# We need space, tab and new line, in precisely that order. Quoting is 11019247738Sbapt# there to prevent editors from complaining about space-tab. 11020247738Sbapt# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11021247738Sbapt# splitting by setting IFS to empty value.) 11022247738SbaptIFS=" "" $as_nl" 11023247738Sbapt 11024247738Sbapt# Find who we are. Look in the path if we contain no directory separator. 11025247738Sbaptcase $0 in #(( 11026247738Sbapt *[\\/]* ) as_myself=$0 ;; 11027247738Sbapt *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11028247738Sbaptfor as_dir in $PATH 11029247738Sbaptdo 11030247738Sbapt IFS=$as_save_IFS 11031247738Sbapt test -z "$as_dir" && as_dir=. 11032247738Sbapt test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11033247738Sbapt done 11034247738SbaptIFS=$as_save_IFS 11035247738Sbapt 11036247738Sbapt ;; 11037247738Sbaptesac 11038247738Sbapt# We did not find ourselves, most probably we were run as `sh COMMAND' 11039247738Sbapt# in which case we are not to be found in the path. 11040247738Sbaptif test "x$as_myself" = x; then 11041247738Sbapt as_myself=$0 11042247738Sbaptfi 11043247738Sbaptif test ! -f "$as_myself"; then 11044247738Sbapt $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11045247738Sbapt exit 1 11046247738Sbaptfi 11047247738Sbapt 11048247738Sbapt# Unset variables that we do not need and which cause bugs (e.g. in 11049247738Sbapt# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11050247738Sbapt# suppresses any "Segmentation fault" message there. '((' could 11051247738Sbapt# trigger a bug in pdksh 5.2.14. 11052247738Sbaptfor as_var in BASH_ENV ENV MAIL MAILPATH 11053247738Sbaptdo eval test x\${$as_var+set} = xset \ 11054247738Sbapt && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11055247738Sbaptdone 11056247738SbaptPS1='$ ' 11057247738SbaptPS2='> ' 11058247738SbaptPS4='+ ' 11059247738Sbapt 11060247738Sbapt# NLS nuisances. 11061247738SbaptLC_ALL=C 11062247738Sbaptexport LC_ALL 11063247738SbaptLANGUAGE=C 11064247738Sbaptexport LANGUAGE 11065247738Sbapt 11066247738Sbapt# CDPATH. 11067247738Sbapt(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11068247738Sbapt 11069247738Sbapt 11070247738Sbapt# as_fn_error STATUS ERROR [LINENO LOG_FD] 11071247738Sbapt# ---------------------------------------- 11072247738Sbapt# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11073247738Sbapt# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11074247738Sbapt# script with STATUS, using 1 if that was 0. 11075247738Sbaptas_fn_error () 11076247738Sbapt{ 11077247738Sbapt as_status=$1; test $as_status -eq 0 && as_status=1 11078247738Sbapt if test "$4"; then 11079247738Sbapt as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11080247738Sbapt $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11081247738Sbapt fi 11082247738Sbapt $as_echo "$as_me: error: $2" >&2 11083247738Sbapt as_fn_exit $as_status 11084247738Sbapt} # as_fn_error 11085247738Sbapt 11086247738Sbapt 11087247738Sbapt# as_fn_set_status STATUS 11088247738Sbapt# ----------------------- 11089247738Sbapt# Set $? to STATUS, without forking. 11090247738Sbaptas_fn_set_status () 11091247738Sbapt{ 11092247738Sbapt return $1 11093247738Sbapt} # as_fn_set_status 11094247738Sbapt 11095247738Sbapt# as_fn_exit STATUS 11096247738Sbapt# ----------------- 11097247738Sbapt# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11098247738Sbaptas_fn_exit () 11099247738Sbapt{ 11100247738Sbapt set +e 11101247738Sbapt as_fn_set_status $1 11102247738Sbapt exit $1 11103247738Sbapt} # as_fn_exit 11104247738Sbapt 11105247738Sbapt# as_fn_unset VAR 11106247738Sbapt# --------------- 11107247738Sbapt# Portably unset VAR. 11108247738Sbaptas_fn_unset () 11109247738Sbapt{ 11110247738Sbapt { eval $1=; unset $1;} 11111247738Sbapt} 11112247738Sbaptas_unset=as_fn_unset 11113247738Sbapt# as_fn_append VAR VALUE 11114247738Sbapt# ---------------------- 11115247738Sbapt# Append the text in VALUE to the end of the definition contained in VAR. Take 11116247738Sbapt# advantage of any shell optimizations that allow amortized linear growth over 11117247738Sbapt# repeated appends, instead of the typical quadratic growth present in naive 11118247738Sbapt# implementations. 11119247738Sbaptif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11120247738Sbapt eval 'as_fn_append () 11121247738Sbapt { 11122247738Sbapt eval $1+=\$2 11123247738Sbapt }' 11124247738Sbaptelse 11125247738Sbapt as_fn_append () 11126247738Sbapt { 11127247738Sbapt eval $1=\$$1\$2 11128247738Sbapt } 11129247738Sbaptfi # as_fn_append 11130247738Sbapt 11131247738Sbapt# as_fn_arith ARG... 11132247738Sbapt# ------------------ 11133247738Sbapt# Perform arithmetic evaluation on the ARGs, and store the result in the 11134247738Sbapt# global $as_val. Take advantage of shells that can avoid forks. The arguments 11135247738Sbapt# must be portable across $(()) and expr. 11136247738Sbaptif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11137247738Sbapt eval 'as_fn_arith () 11138247738Sbapt { 11139247738Sbapt as_val=$(( $* )) 11140247738Sbapt }' 11141247738Sbaptelse 11142247738Sbapt as_fn_arith () 11143247738Sbapt { 11144247738Sbapt as_val=`expr "$@" || test $? -eq 1` 11145247738Sbapt } 11146247738Sbaptfi # as_fn_arith 11147247738Sbapt 11148247738Sbapt 11149247738Sbaptif expr a : '\(a\)' >/dev/null 2>&1 && 11150247738Sbapt test "X`expr 00001 : '.*\(...\)'`" = X001; then 11151247738Sbapt as_expr=expr 11152247738Sbaptelse 11153247738Sbapt as_expr=false 11154247738Sbaptfi 11155247738Sbapt 11156247738Sbaptif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11157247738Sbapt as_basename=basename 11158247738Sbaptelse 11159247738Sbapt as_basename=false 11160247738Sbaptfi 11161247738Sbapt 11162247738Sbaptif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11163247738Sbapt as_dirname=dirname 11164247738Sbaptelse 11165247738Sbapt as_dirname=false 11166247738Sbaptfi 11167247738Sbapt 11168247738Sbaptas_me=`$as_basename -- "$0" || 11169247738Sbapt$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11170247738Sbapt X"$0" : 'X\(//\)$' \| \ 11171247738Sbapt X"$0" : 'X\(/\)' \| . 2>/dev/null || 11172247738Sbapt$as_echo X/"$0" | 11173247738Sbapt sed '/^.*\/\([^/][^/]*\)\/*$/{ 11174247738Sbapt s//\1/ 11175247738Sbapt q 11176247738Sbapt } 11177247738Sbapt /^X\/\(\/\/\)$/{ 11178247738Sbapt s//\1/ 11179247738Sbapt q 11180247738Sbapt } 11181247738Sbapt /^X\/\(\/\).*/{ 11182247738Sbapt s//\1/ 11183247738Sbapt q 11184247738Sbapt } 11185247738Sbapt s/.*/./; q'` 11186247738Sbapt 11187247738Sbapt# Avoid depending upon Character Ranges. 11188247738Sbaptas_cr_letters='abcdefghijklmnopqrstuvwxyz' 11189247738Sbaptas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11190247738Sbaptas_cr_Letters=$as_cr_letters$as_cr_LETTERS 11191247738Sbaptas_cr_digits='0123456789' 11192247738Sbaptas_cr_alnum=$as_cr_Letters$as_cr_digits 11193247738Sbapt 11194247738SbaptECHO_C= ECHO_N= ECHO_T= 11195247738Sbaptcase `echo -n x` in #((((( 11196247738Sbapt-n*) 11197247738Sbapt case `echo 'xy\c'` in 11198247738Sbapt *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11199247738Sbapt xy) ECHO_C='\c';; 11200247738Sbapt *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11201247738Sbapt ECHO_T=' ';; 11202247738Sbapt esac;; 11203247738Sbapt*) 11204247738Sbapt ECHO_N='-n';; 11205247738Sbaptesac 11206247738Sbapt 11207247738Sbaptrm -f conf$$ conf$$.exe conf$$.file 11208247738Sbaptif test -d conf$$.dir; then 11209247738Sbapt rm -f conf$$.dir/conf$$.file 11210247738Sbaptelse 11211247738Sbapt rm -f conf$$.dir 11212247738Sbapt mkdir conf$$.dir 2>/dev/null 11213247738Sbaptfi 11214247738Sbaptif (echo >conf$$.file) 2>/dev/null; then 11215247738Sbapt if ln -s conf$$.file conf$$ 2>/dev/null; then 11216247738Sbapt as_ln_s='ln -s' 11217247738Sbapt # ... but there are two gotchas: 11218247738Sbapt # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11219247738Sbapt # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11220247738Sbapt # In both cases, we have to default to `cp -p'. 11221247738Sbapt ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11222247738Sbapt as_ln_s='cp -p' 11223247738Sbapt elif ln conf$$.file conf$$ 2>/dev/null; then 11224247738Sbapt as_ln_s=ln 11225247738Sbapt else 11226247738Sbapt as_ln_s='cp -p' 11227247738Sbapt fi 11228247738Sbaptelse 11229247738Sbapt as_ln_s='cp -p' 11230247738Sbaptfi 11231247738Sbaptrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11232247738Sbaptrmdir conf$$.dir 2>/dev/null 11233247738Sbapt 11234247738Sbapt 11235247738Sbapt# as_fn_mkdir_p 11236247738Sbapt# ------------- 11237247738Sbapt# Create "$as_dir" as a directory, including parents if necessary. 11238247738Sbaptas_fn_mkdir_p () 11239247738Sbapt{ 11240247738Sbapt 11241247738Sbapt case $as_dir in #( 11242247738Sbapt -*) as_dir=./$as_dir;; 11243247738Sbapt esac 11244247738Sbapt test -d "$as_dir" || eval $as_mkdir_p || { 11245247738Sbapt as_dirs= 11246247738Sbapt while :; do 11247247738Sbapt case $as_dir in #( 11248247738Sbapt *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11249247738Sbapt *) as_qdir=$as_dir;; 11250247738Sbapt esac 11251247738Sbapt as_dirs="'$as_qdir' $as_dirs" 11252247738Sbapt as_dir=`$as_dirname -- "$as_dir" || 11253247738Sbapt$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11254247738Sbapt X"$as_dir" : 'X\(//\)[^/]' \| \ 11255247738Sbapt X"$as_dir" : 'X\(//\)$' \| \ 11256247738Sbapt X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11257247738Sbapt$as_echo X"$as_dir" | 11258247738Sbapt sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11259247738Sbapt s//\1/ 11260247738Sbapt q 11261247738Sbapt } 11262247738Sbapt /^X\(\/\/\)[^/].*/{ 11263247738Sbapt s//\1/ 11264247738Sbapt q 11265247738Sbapt } 11266247738Sbapt /^X\(\/\/\)$/{ 11267247738Sbapt s//\1/ 11268247738Sbapt q 11269247738Sbapt } 11270247738Sbapt /^X\(\/\).*/{ 11271247738Sbapt s//\1/ 11272247738Sbapt q 11273247738Sbapt } 11274247738Sbapt s/.*/./; q'` 11275247738Sbapt test -d "$as_dir" && break 11276247738Sbapt done 11277247738Sbapt test -z "$as_dirs" || eval "mkdir $as_dirs" 11278247738Sbapt } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11279247738Sbapt 11280247738Sbapt 11281247738Sbapt} # as_fn_mkdir_p 11282247738Sbaptif mkdir -p . 2>/dev/null; then 11283247738Sbapt as_mkdir_p='mkdir -p "$as_dir"' 11284247738Sbaptelse 11285247738Sbapt test -d ./-p && rmdir ./-p 11286247738Sbapt as_mkdir_p=false 11287247738Sbaptfi 11288247738Sbapt 11289247738Sbaptif test -x / >/dev/null 2>&1; then 11290247738Sbapt as_test_x='test -x' 11291247738Sbaptelse 11292247738Sbapt if ls -dL / >/dev/null 2>&1; then 11293247738Sbapt as_ls_L_option=L 11294247738Sbapt else 11295247738Sbapt as_ls_L_option= 11296247738Sbapt fi 11297247738Sbapt as_test_x=' 11298247738Sbapt eval sh -c '\'' 11299247738Sbapt if test -d "$1"; then 11300247738Sbapt test -d "$1/."; 11301247738Sbapt else 11302247738Sbapt case $1 in #( 11303247738Sbapt -*)set "./$1";; 11304247738Sbapt esac; 11305247738Sbapt case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11306247738Sbapt ???[sx]*):;;*)false;;esac;fi 11307247738Sbapt '\'' sh 11308247738Sbapt ' 11309247738Sbaptfi 11310247738Sbaptas_executable_p=$as_test_x 11311247738Sbapt 11312247738Sbapt# Sed expression to map a string onto a valid CPP name. 11313247738Sbaptas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11314247738Sbapt 11315247738Sbapt# Sed expression to map a string onto a valid variable name. 11316247738Sbaptas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11317247738Sbapt 11318247738Sbapt 11319247738Sbaptexec 6>&1 11320247738Sbapt## ----------------------------------- ## 11321247738Sbapt## Main body of $CONFIG_STATUS script. ## 11322247738Sbapt## ----------------------------------- ## 11323247738Sbapt_ASEOF 11324247738Sbapttest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11325247738Sbapt 11326247738Sbaptcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11327247738Sbapt# Save the log message, to keep $0 and so on meaningful, and to 11328247738Sbapt# report actual input values of CONFIG_FILES etc. instead of their 11329247738Sbapt# values after options handling. 11330247738Sbaptac_log=" 11331247738SbaptThis file was extended by yaml $as_me 0.1.4, which was 11332247738Sbaptgenerated by GNU Autoconf 2.67. Invocation command line was 11333247738Sbapt 11334247738Sbapt CONFIG_FILES = $CONFIG_FILES 11335247738Sbapt CONFIG_HEADERS = $CONFIG_HEADERS 11336247738Sbapt CONFIG_LINKS = $CONFIG_LINKS 11337247738Sbapt CONFIG_COMMANDS = $CONFIG_COMMANDS 11338247738Sbapt $ $0 $@ 11339247738Sbapt 11340247738Sbapton `(hostname || uname -n) 2>/dev/null | sed 1q` 11341247738Sbapt" 11342247738Sbapt 11343247738Sbapt_ACEOF 11344247738Sbapt 11345247738Sbaptcase $ac_config_files in *" 11346247738Sbapt"*) set x $ac_config_files; shift; ac_config_files=$*;; 11347247738Sbaptesac 11348247738Sbapt 11349247738Sbaptcase $ac_config_headers in *" 11350247738Sbapt"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11351247738Sbaptesac 11352247738Sbapt 11353247738Sbapt 11354247738Sbaptcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11355247738Sbapt# Files that config.status was made for. 11356247738Sbaptconfig_files="$ac_config_files" 11357247738Sbaptconfig_headers="$ac_config_headers" 11358247738Sbaptconfig_commands="$ac_config_commands" 11359247738Sbapt 11360247738Sbapt_ACEOF 11361247738Sbapt 11362247738Sbaptcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11363247738Sbaptac_cs_usage="\ 11364247738Sbapt\`$as_me' instantiates files and other configuration actions 11365247738Sbaptfrom templates according to the current configuration. Unless the files 11366247738Sbaptand actions are specified as TAGs, all are instantiated by default. 11367247738Sbapt 11368247738SbaptUsage: $0 [OPTION]... [TAG]... 11369247738Sbapt 11370247738Sbapt -h, --help print this help, then exit 11371247738Sbapt -V, --version print version number and configuration settings, then exit 11372247738Sbapt --config print configuration, then exit 11373247738Sbapt -q, --quiet, --silent 11374247738Sbapt do not print progress messages 11375247738Sbapt -d, --debug don't remove temporary files 11376247738Sbapt --recheck update $as_me by reconfiguring in the same conditions 11377247738Sbapt --file=FILE[:TEMPLATE] 11378247738Sbapt instantiate the configuration file FILE 11379247738Sbapt --header=FILE[:TEMPLATE] 11380247738Sbapt instantiate the configuration header FILE 11381247738Sbapt 11382247738SbaptConfiguration files: 11383247738Sbapt$config_files 11384247738Sbapt 11385247738SbaptConfiguration headers: 11386247738Sbapt$config_headers 11387247738Sbapt 11388247738SbaptConfiguration commands: 11389247738Sbapt$config_commands 11390247738Sbapt 11391247738SbaptReport bugs to <http://pyyaml.org/newticket?component=libyaml>." 11392247738Sbapt 11393247738Sbapt_ACEOF 11394247738Sbaptcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11395247738Sbaptac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11396247738Sbaptac_cs_version="\\ 11397247738Sbaptyaml config.status 0.1.4 11398247738Sbaptconfigured by $0, generated by GNU Autoconf 2.67, 11399247738Sbapt with options \\"\$ac_cs_config\\" 11400247738Sbapt 11401247738SbaptCopyright (C) 2010 Free Software Foundation, Inc. 11402247738SbaptThis config.status script is free software; the Free Software Foundation 11403247738Sbaptgives unlimited permission to copy, distribute and modify it." 11404247738Sbapt 11405247738Sbaptac_pwd='$ac_pwd' 11406247738Sbaptsrcdir='$srcdir' 11407247738SbaptINSTALL='$INSTALL' 11408247738SbaptMKDIR_P='$MKDIR_P' 11409247738SbaptAWK='$AWK' 11410247738Sbapttest -n "\$AWK" || AWK=awk 11411247738Sbapt_ACEOF 11412247738Sbapt 11413247738Sbaptcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11414247738Sbapt# The default lists apply if the user does not specify any file. 11415247738Sbaptac_need_defaults=: 11416247738Sbaptwhile test $# != 0 11417247738Sbaptdo 11418247738Sbapt case $1 in 11419247738Sbapt --*=?*) 11420247738Sbapt ac_option=`expr "X$1" : 'X\([^=]*\)='` 11421247738Sbapt ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11422247738Sbapt ac_shift=: 11423247738Sbapt ;; 11424247738Sbapt --*=) 11425247738Sbapt ac_option=`expr "X$1" : 'X\([^=]*\)='` 11426247738Sbapt ac_optarg= 11427247738Sbapt ac_shift=: 11428247738Sbapt ;; 11429247738Sbapt *) 11430247738Sbapt ac_option=$1 11431247738Sbapt ac_optarg=$2 11432247738Sbapt ac_shift=shift 11433247738Sbapt ;; 11434247738Sbapt esac 11435247738Sbapt 11436247738Sbapt case $ac_option in 11437247738Sbapt # Handling of the options. 11438247738Sbapt -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11439247738Sbapt ac_cs_recheck=: ;; 11440247738Sbapt --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11441247738Sbapt $as_echo "$ac_cs_version"; exit ;; 11442247738Sbapt --config | --confi | --conf | --con | --co | --c ) 11443247738Sbapt $as_echo "$ac_cs_config"; exit ;; 11444247738Sbapt --debug | --debu | --deb | --de | --d | -d ) 11445247738Sbapt debug=: ;; 11446247738Sbapt --file | --fil | --fi | --f ) 11447247738Sbapt $ac_shift 11448247738Sbapt case $ac_optarg in 11449247738Sbapt *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11450247738Sbapt '') as_fn_error $? "missing file argument" ;; 11451247738Sbapt esac 11452247738Sbapt as_fn_append CONFIG_FILES " '$ac_optarg'" 11453247738Sbapt ac_need_defaults=false;; 11454247738Sbapt --header | --heade | --head | --hea ) 11455247738Sbapt $ac_shift 11456247738Sbapt case $ac_optarg in 11457247738Sbapt *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11458247738Sbapt esac 11459247738Sbapt as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11460247738Sbapt ac_need_defaults=false;; 11461247738Sbapt --he | --h) 11462247738Sbapt # Conflict between --help and --header 11463247738Sbapt as_fn_error $? "ambiguous option: \`$1' 11464247738SbaptTry \`$0 --help' for more information.";; 11465247738Sbapt --help | --hel | -h ) 11466247738Sbapt $as_echo "$ac_cs_usage"; exit ;; 11467247738Sbapt -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11468247738Sbapt | -silent | --silent | --silen | --sile | --sil | --si | --s) 11469247738Sbapt ac_cs_silent=: ;; 11470247738Sbapt 11471247738Sbapt # This is an error. 11472247738Sbapt -*) as_fn_error $? "unrecognized option: \`$1' 11473247738SbaptTry \`$0 --help' for more information." ;; 11474247738Sbapt 11475247738Sbapt *) as_fn_append ac_config_targets " $1" 11476247738Sbapt ac_need_defaults=false ;; 11477247738Sbapt 11478247738Sbapt esac 11479247738Sbapt shift 11480247738Sbaptdone 11481247738Sbapt 11482247738Sbaptac_configure_extra_args= 11483247738Sbapt 11484247738Sbaptif $ac_cs_silent; then 11485247738Sbapt exec 6>/dev/null 11486247738Sbapt ac_configure_extra_args="$ac_configure_extra_args --silent" 11487247738Sbaptfi 11488247738Sbapt 11489247738Sbapt_ACEOF 11490247738Sbaptcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11491247738Sbaptif \$ac_cs_recheck; then 11492247738Sbapt set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11493247738Sbapt shift 11494247738Sbapt \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11495247738Sbapt CONFIG_SHELL='$SHELL' 11496247738Sbapt export CONFIG_SHELL 11497247738Sbapt exec "\$@" 11498247738Sbaptfi 11499247738Sbapt 11500247738Sbapt_ACEOF 11501247738Sbaptcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11502247738Sbaptexec 5>>config.log 11503247738Sbapt{ 11504247738Sbapt echo 11505247738Sbapt sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11506247738Sbapt## Running $as_me. ## 11507247738Sbapt_ASBOX 11508247738Sbapt $as_echo "$ac_log" 11509247738Sbapt} >&5 11510247738Sbapt 11511247738Sbapt_ACEOF 11512247738Sbaptcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11513247738Sbapt# 11514247738Sbapt# INIT-COMMANDS 11515247738Sbapt# 11516247738SbaptAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11517247738Sbapt 11518247738Sbapt 11519247738Sbapt# The HP-UX ksh and POSIX shell print the target directory to stdout 11520247738Sbapt# if CDPATH is set. 11521247738Sbapt(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11522247738Sbapt 11523247738Sbaptsed_quote_subst='$sed_quote_subst' 11524247738Sbaptdouble_quote_subst='$double_quote_subst' 11525247738Sbaptdelay_variable_subst='$delay_variable_subst' 11526247738Sbaptmacro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 11527247738Sbaptmacro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 11528247738Sbaptenable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 11529247738Sbaptenable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 11530247738Sbaptpic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 11531247738Sbaptenable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 11532247738Sbapthost_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 11533247738Sbapthost='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 11534247738Sbapthost_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 11535247738Sbaptbuild_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 11536247738Sbaptbuild='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 11537247738Sbaptbuild_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 11538247738SbaptSED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 11539247738SbaptXsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 11540247738SbaptGREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 11541247738SbaptEGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 11542247738SbaptFGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 11543247738SbaptLD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 11544247738SbaptNM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 11545247738SbaptLN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 11546247738Sbaptmax_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 11547247738Sbaptac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 11548247738Sbaptexeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 11549247738Sbaptlt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 11550247738Sbaptlt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 11551247738Sbaptlt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 11552247738Sbaptreload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 11553247738Sbaptreload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11554247738SbaptOBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 11555247738Sbaptdeplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 11556247738Sbaptfile_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 11557247738SbaptAR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 11558247738SbaptAR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 11559247738SbaptSTRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 11560247738SbaptRANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 11561247738Sbaptold_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11562247738Sbaptold_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11563247738Sbaptold_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11564247738SbaptCC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 11565247738SbaptCFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 11566247738Sbaptcompiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 11567247738SbaptGCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 11568247738Sbaptlt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 11569247738Sbaptlt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 11570247738Sbaptlt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 11571247738Sbaptlt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 11572247738Sbaptobjdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 11573247738SbaptSHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 11574247738SbaptECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 11575247738SbaptMAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 11576247738Sbaptlt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 11577247738Sbaptlt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 11578247738Sbaptlt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 11579247738Sbaptlt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 11580247738Sbaptlt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 11581247738Sbaptneed_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 11582247738SbaptDSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 11583247738SbaptNMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 11584247738SbaptLIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 11585247738SbaptOTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 11586247738SbaptOTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 11587247738Sbaptlibext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 11588247738Sbaptshrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11589247738Sbaptextract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11590247738Sbaptarchive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 11591247738Sbaptenable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 11592247738Sbaptexport_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 11593247738Sbaptwhole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 11594247738Sbaptcompiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 11595247738Sbaptold_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11596247738Sbaptold_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11597247738Sbaptarchive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11598247738Sbaptarchive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11599247738Sbaptmodule_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11600247738Sbaptmodule_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11601247738Sbaptwith_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 11602247738Sbaptallow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 11603247738Sbaptno_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 11604247738Sbapthardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 11605247738Sbapthardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 11606247738Sbapthardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 11607247738Sbapthardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 11608247738Sbapthardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 11609247738Sbapthardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 11610247738Sbapthardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 11611247738Sbapthardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 11612247738Sbaptinherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 11613247738Sbaptlink_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 11614247738Sbaptfix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 11615247738Sbaptalways_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 11616247738Sbaptexport_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11617247738Sbaptexclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 11618247738Sbaptinclude_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 11619247738Sbaptprelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11620247738Sbaptfile_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 11621247738Sbaptvariables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 11622247738Sbaptneed_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 11623247738Sbaptneed_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 11624247738Sbaptversion_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 11625247738Sbaptrunpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 11626247738Sbaptshlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 11627247738Sbaptshlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 11628247738Sbaptlibname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 11629247738Sbaptlibrary_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 11630247738Sbaptsoname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 11631247738Sbaptpostinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11632247738Sbaptpostuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11633247738Sbaptfinish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11634247738Sbaptfinish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 11635247738Sbapthardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 11636247738Sbaptsys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 11637247738Sbaptsys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 11638247738Sbapthardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 11639247738Sbaptenable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 11640247738Sbaptenable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 11641247738Sbaptenable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 11642247738Sbaptold_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 11643247738Sbaptstriplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 11644247738Sbapt 11645247738SbaptLTCC='$LTCC' 11646247738SbaptLTCFLAGS='$LTCFLAGS' 11647247738Sbaptcompiler='$compiler_DEFAULT' 11648247738Sbapt 11649247738Sbapt# Quote evaled strings. 11650247738Sbaptfor var in SED \ 11651247738SbaptGREP \ 11652247738SbaptEGREP \ 11653247738SbaptFGREP \ 11654247738SbaptLD \ 11655247738SbaptNM \ 11656247738SbaptLN_S \ 11657247738Sbaptlt_SP2NL \ 11658247738Sbaptlt_NL2SP \ 11659247738Sbaptreload_flag \ 11660247738SbaptOBJDUMP \ 11661247738Sbaptdeplibs_check_method \ 11662247738Sbaptfile_magic_cmd \ 11663247738SbaptAR \ 11664247738SbaptAR_FLAGS \ 11665247738SbaptSTRIP \ 11666247738SbaptRANLIB \ 11667247738SbaptCC \ 11668247738SbaptCFLAGS \ 11669247738Sbaptcompiler \ 11670247738Sbaptlt_cv_sys_global_symbol_pipe \ 11671247738Sbaptlt_cv_sys_global_symbol_to_cdecl \ 11672247738Sbaptlt_cv_sys_global_symbol_to_c_name_address \ 11673247738Sbaptlt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 11674247738SbaptSHELL \ 11675247738SbaptECHO \ 11676247738Sbaptlt_prog_compiler_no_builtin_flag \ 11677247738Sbaptlt_prog_compiler_wl \ 11678247738Sbaptlt_prog_compiler_pic \ 11679247738Sbaptlt_prog_compiler_static \ 11680247738Sbaptlt_cv_prog_compiler_c_o \ 11681247738Sbaptneed_locks \ 11682247738SbaptDSYMUTIL \ 11683247738SbaptNMEDIT \ 11684247738SbaptLIPO \ 11685247738SbaptOTOOL \ 11686247738SbaptOTOOL64 \ 11687247738Sbaptshrext_cmds \ 11688247738Sbaptexport_dynamic_flag_spec \ 11689247738Sbaptwhole_archive_flag_spec \ 11690247738Sbaptcompiler_needs_object \ 11691247738Sbaptwith_gnu_ld \ 11692247738Sbaptallow_undefined_flag \ 11693247738Sbaptno_undefined_flag \ 11694247738Sbapthardcode_libdir_flag_spec \ 11695247738Sbapthardcode_libdir_flag_spec_ld \ 11696247738Sbapthardcode_libdir_separator \ 11697247738Sbaptfix_srcfile_path \ 11698247738Sbaptexclude_expsyms \ 11699247738Sbaptinclude_expsyms \ 11700247738Sbaptfile_list_spec \ 11701247738Sbaptvariables_saved_for_relink \ 11702247738Sbaptlibname_spec \ 11703247738Sbaptlibrary_names_spec \ 11704247738Sbaptsoname_spec \ 11705247738Sbaptfinish_eval \ 11706247738Sbaptold_striplib \ 11707247738Sbaptstriplib; do 11708247738Sbapt case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 11709247738Sbapt *[\\\\\\\`\\"\\\$]*) 11710247738Sbapt eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 11711247738Sbapt ;; 11712247738Sbapt *) 11713247738Sbapt eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 11714247738Sbapt ;; 11715247738Sbapt esac 11716247738Sbaptdone 11717247738Sbapt 11718247738Sbapt# Double-quote double-evaled strings. 11719247738Sbaptfor var in reload_cmds \ 11720247738Sbaptold_postinstall_cmds \ 11721247738Sbaptold_postuninstall_cmds \ 11722247738Sbaptold_archive_cmds \ 11723247738Sbaptextract_expsyms_cmds \ 11724247738Sbaptold_archive_from_new_cmds \ 11725247738Sbaptold_archive_from_expsyms_cmds \ 11726247738Sbaptarchive_cmds \ 11727247738Sbaptarchive_expsym_cmds \ 11728247738Sbaptmodule_cmds \ 11729247738Sbaptmodule_expsym_cmds \ 11730247738Sbaptexport_symbols_cmds \ 11731247738Sbaptprelink_cmds \ 11732247738Sbaptpostinstall_cmds \ 11733247738Sbaptpostuninstall_cmds \ 11734247738Sbaptfinish_cmds \ 11735247738Sbaptsys_lib_search_path_spec \ 11736247738Sbaptsys_lib_dlsearch_path_spec; do 11737247738Sbapt case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 11738247738Sbapt *[\\\\\\\`\\"\\\$]*) 11739247738Sbapt eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 11740247738Sbapt ;; 11741247738Sbapt *) 11742247738Sbapt eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 11743247738Sbapt ;; 11744247738Sbapt esac 11745247738Sbaptdone 11746247738Sbapt 11747247738Sbapt# Fix-up fallback echo if it was mangled by the above quoting rules. 11748247738Sbaptcase \$lt_ECHO in 11749247738Sbapt*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 11750247738Sbapt ;; 11751247738Sbaptesac 11752247738Sbapt 11753247738Sbaptac_aux_dir='$ac_aux_dir' 11754247738Sbaptxsi_shell='$xsi_shell' 11755247738Sbaptlt_shell_append='$lt_shell_append' 11756247738Sbapt 11757247738Sbapt# See if we are running on zsh, and set the options which allow our 11758247738Sbapt# commands through without removal of \ escapes INIT. 11759247738Sbaptif test -n "\${ZSH_VERSION+set}" ; then 11760247738Sbapt setopt NO_GLOB_SUBST 11761247738Sbaptfi 11762247738Sbapt 11763247738Sbapt 11764247738Sbapt PACKAGE='$PACKAGE' 11765247738Sbapt VERSION='$VERSION' 11766247738Sbapt TIMESTAMP='$TIMESTAMP' 11767247738Sbapt RM='$RM' 11768247738Sbapt ofile='$ofile' 11769247738Sbapt 11770247738Sbapt 11771247738Sbapt 11772247738Sbapt 11773247738Sbapt_ACEOF 11774247738Sbapt 11775247738Sbaptcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11776247738Sbapt 11777247738Sbapt# Handling of arguments. 11778247738Sbaptfor ac_config_target in $ac_config_targets 11779247738Sbaptdo 11780247738Sbapt case $ac_config_target in 11781247738Sbapt "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11782247738Sbapt "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11783247738Sbapt "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 11784247738Sbapt "yaml-0.1.pc") CONFIG_FILES="$CONFIG_FILES yaml-0.1.pc" ;; 11785247738Sbapt "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 11786247738Sbapt "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 11787247738Sbapt "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11788247738Sbapt "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 11789247738Sbapt "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;; 11790247738Sbapt 11791247738Sbapt *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; 11792247738Sbapt esac 11793247738Sbaptdone 11794247738Sbapt 11795247738Sbapt 11796247738Sbapt# If the user did not use the arguments to specify the items to instantiate, 11797247738Sbapt# then the envvar interface is used. Set only those that are not. 11798247738Sbapt# We use the long form for the default assignment because of an extremely 11799247738Sbapt# bizarre bug on SunOS 4.1.3. 11800247738Sbaptif $ac_need_defaults; then 11801247738Sbapt test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11802247738Sbapt test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11803247738Sbapt test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11804247738Sbaptfi 11805247738Sbapt 11806247738Sbapt# Have a temporary directory for convenience. Make it in the build tree 11807247738Sbapt# simply because there is no reason against having it here, and in addition, 11808247738Sbapt# creating and moving files from /tmp can sometimes cause problems. 11809247738Sbapt# Hook for its removal unless debugging. 11810247738Sbapt# Note that there is a small window in which the directory will not be cleaned: 11811247738Sbapt# after its creation but before its name has been assigned to `$tmp'. 11812247738Sbapt$debug || 11813247738Sbapt{ 11814247738Sbapt tmp= 11815247738Sbapt trap 'exit_status=$? 11816247738Sbapt { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 11817247738Sbapt' 0 11818247738Sbapt trap 'as_fn_exit 1' 1 2 13 15 11819247738Sbapt} 11820247738Sbapt# Create a (secure) tmp directory for tmp files. 11821247738Sbapt 11822247738Sbapt{ 11823247738Sbapt tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11824247738Sbapt test -n "$tmp" && test -d "$tmp" 11825247738Sbapt} || 11826247738Sbapt{ 11827247738Sbapt tmp=./conf$$-$RANDOM 11828247738Sbapt (umask 077 && mkdir "$tmp") 11829247738Sbapt} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11830247738Sbapt 11831247738Sbapt# Set up the scripts for CONFIG_FILES section. 11832247738Sbapt# No need to generate them if there are no CONFIG_FILES. 11833247738Sbapt# This happens for instance with `./config.status config.h'. 11834247738Sbaptif test -n "$CONFIG_FILES"; then 11835247738Sbapt 11836247738Sbapt 11837247738Sbaptac_cr=`echo X | tr X '\015'` 11838247738Sbapt# On cygwin, bash can eat \r inside `` if the user requested igncr. 11839247738Sbapt# But we know of no other shell where ac_cr would be empty at this 11840247738Sbapt# point, so we can use a bashism as a fallback. 11841247738Sbaptif test "x$ac_cr" = x; then 11842247738Sbapt eval ac_cr=\$\'\\r\' 11843247738Sbaptfi 11844247738Sbaptac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11845247738Sbaptif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11846247738Sbapt ac_cs_awk_cr='\\r' 11847247738Sbaptelse 11848247738Sbapt ac_cs_awk_cr=$ac_cr 11849247738Sbaptfi 11850247738Sbapt 11851247738Sbaptecho 'BEGIN {' >"$tmp/subs1.awk" && 11852247738Sbapt_ACEOF 11853247738Sbapt 11854247738Sbapt 11855247738Sbapt{ 11856247738Sbapt echo "cat >conf$$subs.awk <<_ACEOF" && 11857247738Sbapt echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11858247738Sbapt echo "_ACEOF" 11859247738Sbapt} >conf$$subs.sh || 11860247738Sbapt as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11861247738Sbaptac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11862247738Sbaptac_delim='%!_!# ' 11863247738Sbaptfor ac_last_try in false false false false false :; do 11864247738Sbapt . ./conf$$subs.sh || 11865247738Sbapt as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11866247738Sbapt 11867247738Sbapt ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11868247738Sbapt if test $ac_delim_n = $ac_delim_num; then 11869247738Sbapt break 11870247738Sbapt elif $ac_last_try; then 11871247738Sbapt as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11872247738Sbapt else 11873247738Sbapt ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11874247738Sbapt fi 11875247738Sbaptdone 11876247738Sbaptrm -f conf$$subs.sh 11877247738Sbapt 11878247738Sbaptcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11879247738Sbaptcat >>"\$tmp/subs1.awk" <<\\_ACAWK && 11880247738Sbapt_ACEOF 11881247738Sbaptsed -n ' 11882247738Sbapth 11883247738Sbapts/^/S["/; s/!.*/"]=/ 11884247738Sbaptp 11885247738Sbaptg 11886247738Sbapts/^[^!]*!// 11887247738Sbapt:repl 11888247738Sbaptt repl 11889247738Sbapts/'"$ac_delim"'$// 11890247738Sbaptt delim 11891247738Sbapt:nl 11892247738Sbapth 11893247738Sbapts/\(.\{148\}\)..*/\1/ 11894247738Sbaptt more1 11895247738Sbapts/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11896247738Sbaptp 11897247738Sbaptn 11898247738Sbaptb repl 11899247738Sbapt:more1 11900247738Sbapts/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11901247738Sbaptp 11902247738Sbaptg 11903247738Sbapts/.\{148\}// 11904247738Sbaptt nl 11905247738Sbapt:delim 11906247738Sbapth 11907247738Sbapts/\(.\{148\}\)..*/\1/ 11908247738Sbaptt more2 11909247738Sbapts/["\\]/\\&/g; s/^/"/; s/$/"/ 11910247738Sbaptp 11911247738Sbaptb 11912247738Sbapt:more2 11913247738Sbapts/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11914247738Sbaptp 11915247738Sbaptg 11916247738Sbapts/.\{148\}// 11917247738Sbaptt delim 11918247738Sbapt' <conf$$subs.awk | sed ' 11919247738Sbapt/^[^""]/{ 11920247738Sbapt N 11921247738Sbapt s/\n// 11922247738Sbapt} 11923247738Sbapt' >>$CONFIG_STATUS || ac_write_fail=1 11924247738Sbaptrm -f conf$$subs.awk 11925247738Sbaptcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11926247738Sbapt_ACAWK 11927247738Sbaptcat >>"\$tmp/subs1.awk" <<_ACAWK && 11928247738Sbapt for (key in S) S_is_set[key] = 1 11929247738Sbapt FS = "" 11930247738Sbapt 11931247738Sbapt} 11932247738Sbapt{ 11933247738Sbapt line = $ 0 11934247738Sbapt nfields = split(line, field, "@") 11935247738Sbapt substed = 0 11936247738Sbapt len = length(field[1]) 11937247738Sbapt for (i = 2; i < nfields; i++) { 11938247738Sbapt key = field[i] 11939247738Sbapt keylen = length(key) 11940247738Sbapt if (S_is_set[key]) { 11941247738Sbapt value = S[key] 11942247738Sbapt line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11943247738Sbapt len += length(value) + length(field[++i]) 11944247738Sbapt substed = 1 11945247738Sbapt } else 11946247738Sbapt len += 1 + keylen 11947247738Sbapt } 11948247738Sbapt 11949247738Sbapt print line 11950247738Sbapt} 11951247738Sbapt 11952247738Sbapt_ACAWK 11953247738Sbapt_ACEOF 11954247738Sbaptcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11955247738Sbaptif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11956247738Sbapt sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11957247738Sbaptelse 11958247738Sbapt cat 11959247738Sbaptfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 11960247738Sbapt || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11961247738Sbapt_ACEOF 11962247738Sbapt 11963247738Sbapt# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11964247738Sbapt# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11965247738Sbapt# trailing colons and then remove the whole line if VPATH becomes empty 11966247738Sbapt# (actually we leave an empty line to preserve line numbers). 11967247738Sbaptif test "x$srcdir" = x.; then 11968247738Sbapt ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11969247738Sbapth 11970247738Sbapts/// 11971247738Sbapts/^/:/ 11972247738Sbapts/[ ]*$/:/ 11973247738Sbapts/:\$(srcdir):/:/g 11974247738Sbapts/:\${srcdir}:/:/g 11975247738Sbapts/:@srcdir@:/:/g 11976247738Sbapts/^:*// 11977247738Sbapts/:*$// 11978247738Sbaptx 11979247738Sbapts/\(=[ ]*\).*/\1/ 11980247738SbaptG 11981247738Sbapts/\n// 11982247738Sbapts/^[^=]*=[ ]*$// 11983247738Sbapt}' 11984247738Sbaptfi 11985247738Sbapt 11986247738Sbaptcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11987247738Sbaptfi # test -n "$CONFIG_FILES" 11988247738Sbapt 11989247738Sbapt# Set up the scripts for CONFIG_HEADERS section. 11990247738Sbapt# No need to generate them if there are no CONFIG_HEADERS. 11991247738Sbapt# This happens for instance with `./config.status Makefile'. 11992247738Sbaptif test -n "$CONFIG_HEADERS"; then 11993247738Sbaptcat >"$tmp/defines.awk" <<\_ACAWK || 11994247738SbaptBEGIN { 11995247738Sbapt_ACEOF 11996247738Sbapt 11997247738Sbapt# Transform confdefs.h into an awk script `defines.awk', embedded as 11998247738Sbapt# here-document in config.status, that substitutes the proper values into 11999247738Sbapt# config.h.in to produce config.h. 12000247738Sbapt 12001247738Sbapt# Create a delimiter string that does not exist in confdefs.h, to ease 12002247738Sbapt# handling of long lines. 12003247738Sbaptac_delim='%!_!# ' 12004247738Sbaptfor ac_last_try in false false :; do 12005247738Sbapt ac_t=`sed -n "/$ac_delim/p" confdefs.h` 12006247738Sbapt if test -z "$ac_t"; then 12007247738Sbapt break 12008247738Sbapt elif $ac_last_try; then 12009247738Sbapt as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12010247738Sbapt else 12011247738Sbapt ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12012247738Sbapt fi 12013247738Sbaptdone 12014247738Sbapt 12015247738Sbapt# For the awk script, D is an array of macro values keyed by name, 12016247738Sbapt# likewise P contains macro parameters if any. Preserve backslash 12017247738Sbapt# newline sequences. 12018247738Sbapt 12019247738Sbaptac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12020247738Sbaptsed -n ' 12021247738Sbapts/.\{148\}/&'"$ac_delim"'/g 12022247738Sbaptt rset 12023247738Sbapt:rset 12024247738Sbapts/^[ ]*#[ ]*define[ ][ ]*/ / 12025247738Sbaptt def 12026247738Sbaptd 12027247738Sbapt:def 12028247738Sbapts/\\$// 12029247738Sbaptt bsnl 12030247738Sbapts/["\\]/\\&/g 12031247738Sbapts/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12032247738SbaptD["\1"]=" \3"/p 12033247738Sbapts/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12034247738Sbaptd 12035247738Sbapt:bsnl 12036247738Sbapts/["\\]/\\&/g 12037247738Sbapts/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12038247738SbaptD["\1"]=" \3\\\\\\n"\\/p 12039247738Sbaptt cont 12040247738Sbapts/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12041247738Sbaptt cont 12042247738Sbaptd 12043247738Sbapt:cont 12044247738Sbaptn 12045247738Sbapts/.\{148\}/&'"$ac_delim"'/g 12046247738Sbaptt clear 12047247738Sbapt:clear 12048247738Sbapts/\\$// 12049247738Sbaptt bsnlc 12050247738Sbapts/["\\]/\\&/g; s/^/"/; s/$/"/p 12051247738Sbaptd 12052247738Sbapt:bsnlc 12053247738Sbapts/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12054247738Sbaptb cont 12055247738Sbapt' <confdefs.h | sed ' 12056247738Sbapts/'"$ac_delim"'/"\\\ 12057247738Sbapt"/g' >>$CONFIG_STATUS || ac_write_fail=1 12058247738Sbapt 12059247738Sbaptcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12060247738Sbapt for (key in D) D_is_set[key] = 1 12061247738Sbapt FS = "" 12062247738Sbapt} 12063247738Sbapt/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12064247738Sbapt line = \$ 0 12065247738Sbapt split(line, arg, " ") 12066247738Sbapt if (arg[1] == "#") { 12067247738Sbapt defundef = arg[2] 12068247738Sbapt mac1 = arg[3] 12069247738Sbapt } else { 12070247738Sbapt defundef = substr(arg[1], 2) 12071247738Sbapt mac1 = arg[2] 12072247738Sbapt } 12073247738Sbapt split(mac1, mac2, "(") #) 12074247738Sbapt macro = mac2[1] 12075247738Sbapt prefix = substr(line, 1, index(line, defundef) - 1) 12076247738Sbapt if (D_is_set[macro]) { 12077247738Sbapt # Preserve the white space surrounding the "#". 12078247738Sbapt print prefix "define", macro P[macro] D[macro] 12079247738Sbapt next 12080247738Sbapt } else { 12081247738Sbapt # Replace #undef with comments. This is necessary, for example, 12082247738Sbapt # in the case of _POSIX_SOURCE, which is predefined and required 12083247738Sbapt # on some systems where configure will not decide to define it. 12084247738Sbapt if (defundef == "undef") { 12085247738Sbapt print "/*", prefix defundef, macro, "*/" 12086247738Sbapt next 12087247738Sbapt } 12088247738Sbapt } 12089247738Sbapt} 12090247738Sbapt{ print } 12091247738Sbapt_ACAWK 12092247738Sbapt_ACEOF 12093247738Sbaptcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12094247738Sbapt as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12095247738Sbaptfi # test -n "$CONFIG_HEADERS" 12096247738Sbapt 12097247738Sbapt 12098247738Sbapteval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12099247738Sbaptshift 12100247738Sbaptfor ac_tag 12101247738Sbaptdo 12102247738Sbapt case $ac_tag in 12103247738Sbapt :[FHLC]) ac_mode=$ac_tag; continue;; 12104247738Sbapt esac 12105247738Sbapt case $ac_mode$ac_tag in 12106247738Sbapt :[FHL]*:*);; 12107247738Sbapt :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; 12108247738Sbapt :[FH]-) ac_tag=-:-;; 12109247738Sbapt :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12110247738Sbapt esac 12111247738Sbapt ac_save_IFS=$IFS 12112247738Sbapt IFS=: 12113247738Sbapt set x $ac_tag 12114247738Sbapt IFS=$ac_save_IFS 12115247738Sbapt shift 12116247738Sbapt ac_file=$1 12117247738Sbapt shift 12118247738Sbapt 12119247738Sbapt case $ac_mode in 12120247738Sbapt :L) ac_source=$1;; 12121247738Sbapt :[FH]) 12122247738Sbapt ac_file_inputs= 12123247738Sbapt for ac_f 12124247738Sbapt do 12125247738Sbapt case $ac_f in 12126247738Sbapt -) ac_f="$tmp/stdin";; 12127247738Sbapt *) # Look for the file first in the build tree, then in the source tree 12128247738Sbapt # (if the path is not absolute). The absolute path cannot be DOS-style, 12129247738Sbapt # because $ac_f cannot contain `:'. 12130247738Sbapt test -f "$ac_f" || 12131247738Sbapt case $ac_f in 12132247738Sbapt [\\/$]*) false;; 12133247738Sbapt *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12134247738Sbapt esac || 12135247738Sbapt as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; 12136247738Sbapt esac 12137247738Sbapt case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12138247738Sbapt as_fn_append ac_file_inputs " '$ac_f'" 12139247738Sbapt done 12140247738Sbapt 12141247738Sbapt # Let's still pretend it is `configure' which instantiates (i.e., don't 12142247738Sbapt # use $as_me), people would be surprised to read: 12143247738Sbapt # /* config.h. Generated by config.status. */ 12144247738Sbapt configure_input='Generated from '` 12145247738Sbapt $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12146247738Sbapt `' by configure.' 12147247738Sbapt if test x"$ac_file" != x-; then 12148247738Sbapt configure_input="$ac_file. $configure_input" 12149247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12150247738Sbapt$as_echo "$as_me: creating $ac_file" >&6;} 12151247738Sbapt fi 12152247738Sbapt # Neutralize special characters interpreted by sed in replacement strings. 12153247738Sbapt case $configure_input in #( 12154247738Sbapt *\&* | *\|* | *\\* ) 12155247738Sbapt ac_sed_conf_input=`$as_echo "$configure_input" | 12156247738Sbapt sed 's/[\\\\&|]/\\\\&/g'`;; #( 12157247738Sbapt *) ac_sed_conf_input=$configure_input;; 12158247738Sbapt esac 12159247738Sbapt 12160247738Sbapt case $ac_tag in 12161247738Sbapt *:-:* | *:-) cat >"$tmp/stdin" \ 12162247738Sbapt || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12163247738Sbapt esac 12164247738Sbapt ;; 12165247738Sbapt esac 12166247738Sbapt 12167247738Sbapt ac_dir=`$as_dirname -- "$ac_file" || 12168247738Sbapt$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12169247738Sbapt X"$ac_file" : 'X\(//\)[^/]' \| \ 12170247738Sbapt X"$ac_file" : 'X\(//\)$' \| \ 12171247738Sbapt X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12172247738Sbapt$as_echo X"$ac_file" | 12173247738Sbapt sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12174247738Sbapt s//\1/ 12175247738Sbapt q 12176247738Sbapt } 12177247738Sbapt /^X\(\/\/\)[^/].*/{ 12178247738Sbapt s//\1/ 12179247738Sbapt q 12180247738Sbapt } 12181247738Sbapt /^X\(\/\/\)$/{ 12182247738Sbapt s//\1/ 12183247738Sbapt q 12184247738Sbapt } 12185247738Sbapt /^X\(\/\).*/{ 12186247738Sbapt s//\1/ 12187247738Sbapt q 12188247738Sbapt } 12189247738Sbapt s/.*/./; q'` 12190247738Sbapt as_dir="$ac_dir"; as_fn_mkdir_p 12191247738Sbapt ac_builddir=. 12192247738Sbapt 12193247738Sbaptcase "$ac_dir" in 12194247738Sbapt.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12195247738Sbapt*) 12196247738Sbapt ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12197247738Sbapt # A ".." for each directory in $ac_dir_suffix. 12198247738Sbapt ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12199247738Sbapt case $ac_top_builddir_sub in 12200247738Sbapt "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12201247738Sbapt *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12202247738Sbapt esac ;; 12203247738Sbaptesac 12204247738Sbaptac_abs_top_builddir=$ac_pwd 12205247738Sbaptac_abs_builddir=$ac_pwd$ac_dir_suffix 12206247738Sbapt# for backward compatibility: 12207247738Sbaptac_top_builddir=$ac_top_build_prefix 12208247738Sbapt 12209247738Sbaptcase $srcdir in 12210247738Sbapt .) # We are building in place. 12211247738Sbapt ac_srcdir=. 12212247738Sbapt ac_top_srcdir=$ac_top_builddir_sub 12213247738Sbapt ac_abs_top_srcdir=$ac_pwd ;; 12214247738Sbapt [\\/]* | ?:[\\/]* ) # Absolute name. 12215247738Sbapt ac_srcdir=$srcdir$ac_dir_suffix; 12216247738Sbapt ac_top_srcdir=$srcdir 12217247738Sbapt ac_abs_top_srcdir=$srcdir ;; 12218247738Sbapt *) # Relative name. 12219247738Sbapt ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12220247738Sbapt ac_top_srcdir=$ac_top_build_prefix$srcdir 12221247738Sbapt ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12222247738Sbaptesac 12223247738Sbaptac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12224247738Sbapt 12225247738Sbapt 12226247738Sbapt case $ac_mode in 12227247738Sbapt :F) 12228247738Sbapt # 12229247738Sbapt # CONFIG_FILE 12230247738Sbapt # 12231247738Sbapt 12232247738Sbapt case $INSTALL in 12233247738Sbapt [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12234247738Sbapt *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12235247738Sbapt esac 12236247738Sbapt ac_MKDIR_P=$MKDIR_P 12237247738Sbapt case $MKDIR_P in 12238247738Sbapt [\\/$]* | ?:[\\/]* ) ;; 12239247738Sbapt */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12240247738Sbapt esac 12241247738Sbapt_ACEOF 12242247738Sbapt 12243247738Sbaptcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12244247738Sbapt# If the template does not know about datarootdir, expand it. 12245247738Sbapt# FIXME: This hack should be removed a few years after 2.60. 12246247738Sbaptac_datarootdir_hack=; ac_datarootdir_seen= 12247247738Sbaptac_sed_dataroot=' 12248247738Sbapt/datarootdir/ { 12249247738Sbapt p 12250247738Sbapt q 12251247738Sbapt} 12252247738Sbapt/@datadir@/p 12253247738Sbapt/@docdir@/p 12254247738Sbapt/@infodir@/p 12255247738Sbapt/@localedir@/p 12256247738Sbapt/@mandir@/p' 12257247738Sbaptcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12258247738Sbapt*datarootdir*) ac_datarootdir_seen=yes;; 12259247738Sbapt*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12260247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12261247738Sbapt$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12262247738Sbapt_ACEOF 12263247738Sbaptcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12264247738Sbapt ac_datarootdir_hack=' 12265247738Sbapt s&@datadir@&$datadir&g 12266247738Sbapt s&@docdir@&$docdir&g 12267247738Sbapt s&@infodir@&$infodir&g 12268247738Sbapt s&@localedir@&$localedir&g 12269247738Sbapt s&@mandir@&$mandir&g 12270247738Sbapt s&\\\${datarootdir}&$datarootdir&g' ;; 12271247738Sbaptesac 12272247738Sbapt_ACEOF 12273247738Sbapt 12274247738Sbapt# Neutralize VPATH when `$srcdir' = `.'. 12275247738Sbapt# Shell code in configure.ac might set extrasub. 12276247738Sbapt# FIXME: do we really want to maintain this feature? 12277247738Sbaptcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12278247738Sbaptac_sed_extra="$ac_vpsub 12279247738Sbapt$extrasub 12280247738Sbapt_ACEOF 12281247738Sbaptcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12282247738Sbapt:t 12283247738Sbapt/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12284247738Sbapts|@configure_input@|$ac_sed_conf_input|;t t 12285247738Sbapts&@top_builddir@&$ac_top_builddir_sub&;t t 12286247738Sbapts&@top_build_prefix@&$ac_top_build_prefix&;t t 12287247738Sbapts&@srcdir@&$ac_srcdir&;t t 12288247738Sbapts&@abs_srcdir@&$ac_abs_srcdir&;t t 12289247738Sbapts&@top_srcdir@&$ac_top_srcdir&;t t 12290247738Sbapts&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12291247738Sbapts&@builddir@&$ac_builddir&;t t 12292247738Sbapts&@abs_builddir@&$ac_abs_builddir&;t t 12293247738Sbapts&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12294247738Sbapts&@INSTALL@&$ac_INSTALL&;t t 12295247738Sbapts&@MKDIR_P@&$ac_MKDIR_P&;t t 12296247738Sbapt$ac_datarootdir_hack 12297247738Sbapt" 12298247738Sbapteval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 12299247738Sbapt || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12300247738Sbapt 12301247738Sbapttest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12302247738Sbapt { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12303247738Sbapt { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12304247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12305247738Sbaptwhich seems to be undefined. Please make sure it is defined" >&5 12306247738Sbapt$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12307247738Sbaptwhich seems to be undefined. Please make sure it is defined" >&2;} 12308247738Sbapt 12309247738Sbapt rm -f "$tmp/stdin" 12310247738Sbapt case $ac_file in 12311247738Sbapt -) cat "$tmp/out" && rm -f "$tmp/out";; 12312247738Sbapt *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 12313247738Sbapt esac \ 12314247738Sbapt || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12315247738Sbapt ;; 12316247738Sbapt :H) 12317247738Sbapt # 12318247738Sbapt # CONFIG_HEADER 12319247738Sbapt # 12320247738Sbapt if test x"$ac_file" != x-; then 12321247738Sbapt { 12322247738Sbapt $as_echo "/* $configure_input */" \ 12323247738Sbapt && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 12324247738Sbapt } >"$tmp/config.h" \ 12325247738Sbapt || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12326247738Sbapt if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 12327247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12328247738Sbapt$as_echo "$as_me: $ac_file is unchanged" >&6;} 12329247738Sbapt else 12330247738Sbapt rm -f "$ac_file" 12331247738Sbapt mv "$tmp/config.h" "$ac_file" \ 12332247738Sbapt || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12333247738Sbapt fi 12334247738Sbapt else 12335247738Sbapt $as_echo "/* $configure_input */" \ 12336247738Sbapt && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 12337247738Sbapt || as_fn_error $? "could not create -" "$LINENO" 5 12338247738Sbapt fi 12339247738Sbapt# Compute "$ac_file"'s index in $config_headers. 12340247738Sbapt_am_arg="$ac_file" 12341247738Sbapt_am_stamp_count=1 12342247738Sbaptfor _am_header in $config_headers :; do 12343247738Sbapt case $_am_header in 12344247738Sbapt $_am_arg | $_am_arg:* ) 12345247738Sbapt break ;; 12346247738Sbapt * ) 12347247738Sbapt _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12348247738Sbapt esac 12349247738Sbaptdone 12350247738Sbaptecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12351247738Sbapt$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12352247738Sbapt X"$_am_arg" : 'X\(//\)[^/]' \| \ 12353247738Sbapt X"$_am_arg" : 'X\(//\)$' \| \ 12354247738Sbapt X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12355247738Sbapt$as_echo X"$_am_arg" | 12356247738Sbapt sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12357247738Sbapt s//\1/ 12358247738Sbapt q 12359247738Sbapt } 12360247738Sbapt /^X\(\/\/\)[^/].*/{ 12361247738Sbapt s//\1/ 12362247738Sbapt q 12363247738Sbapt } 12364247738Sbapt /^X\(\/\/\)$/{ 12365247738Sbapt s//\1/ 12366247738Sbapt q 12367247738Sbapt } 12368247738Sbapt /^X\(\/\).*/{ 12369247738Sbapt s//\1/ 12370247738Sbapt q 12371247738Sbapt } 12372247738Sbapt s/.*/./; q'`/stamp-h$_am_stamp_count 12373247738Sbapt ;; 12374247738Sbapt 12375247738Sbapt :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12376247738Sbapt$as_echo "$as_me: executing $ac_file commands" >&6;} 12377247738Sbapt ;; 12378247738Sbapt esac 12379247738Sbapt 12380247738Sbapt 12381247738Sbapt case $ac_file$ac_mode in 12382247738Sbapt "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12383247738Sbapt # Autoconf 2.62 quotes --file arguments for eval, but not when files 12384247738Sbapt # are listed without --file. Let's play safe and only enable the eval 12385247738Sbapt # if we detect the quoting. 12386247738Sbapt case $CONFIG_FILES in 12387247738Sbapt *\'*) eval set x "$CONFIG_FILES" ;; 12388247738Sbapt *) set x $CONFIG_FILES ;; 12389247738Sbapt esac 12390247738Sbapt shift 12391247738Sbapt for mf 12392247738Sbapt do 12393247738Sbapt # Strip MF so we end up with the name of the file. 12394247738Sbapt mf=`echo "$mf" | sed -e 's/:.*$//'` 12395247738Sbapt # Check whether this is an Automake generated Makefile or not. 12396247738Sbapt # We used to match only the files named `Makefile.in', but 12397247738Sbapt # some people rename them; so instead we look at the file content. 12398247738Sbapt # Grep'ing the first line is not enough: some people post-process 12399247738Sbapt # each Makefile.in and add a new line on top of each file to say so. 12400247738Sbapt # Grep'ing the whole file is not good either: AIX grep has a line 12401247738Sbapt # limit of 2048, but all sed's we know have understand at least 4000. 12402247738Sbapt if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12403247738Sbapt dirpart=`$as_dirname -- "$mf" || 12404247738Sbapt$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12405247738Sbapt X"$mf" : 'X\(//\)[^/]' \| \ 12406247738Sbapt X"$mf" : 'X\(//\)$' \| \ 12407247738Sbapt X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12408247738Sbapt$as_echo X"$mf" | 12409247738Sbapt sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12410247738Sbapt s//\1/ 12411247738Sbapt q 12412247738Sbapt } 12413247738Sbapt /^X\(\/\/\)[^/].*/{ 12414247738Sbapt s//\1/ 12415247738Sbapt q 12416247738Sbapt } 12417247738Sbapt /^X\(\/\/\)$/{ 12418247738Sbapt s//\1/ 12419247738Sbapt q 12420247738Sbapt } 12421247738Sbapt /^X\(\/\).*/{ 12422247738Sbapt s//\1/ 12423247738Sbapt q 12424247738Sbapt } 12425247738Sbapt s/.*/./; q'` 12426247738Sbapt else 12427247738Sbapt continue 12428247738Sbapt fi 12429247738Sbapt # Extract the definition of DEPDIR, am__include, and am__quote 12430247738Sbapt # from the Makefile without running `make'. 12431247738Sbapt DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12432247738Sbapt test -z "$DEPDIR" && continue 12433247738Sbapt am__include=`sed -n 's/^am__include = //p' < "$mf"` 12434247738Sbapt test -z "am__include" && continue 12435247738Sbapt am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12436247738Sbapt # When using ansi2knr, U may be empty or an underscore; expand it 12437247738Sbapt U=`sed -n 's/^U = //p' < "$mf"` 12438247738Sbapt # Find all dependency output files, they are included files with 12439247738Sbapt # $(DEPDIR) in their names. We invoke sed twice because it is the 12440247738Sbapt # simplest approach to changing $(DEPDIR) to its actual value in the 12441247738Sbapt # expansion. 12442247738Sbapt for file in `sed -n " 12443247738Sbapt s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12444247738Sbapt sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 12445247738Sbapt # Make sure the directory exists. 12446247738Sbapt test -f "$dirpart/$file" && continue 12447247738Sbapt fdir=`$as_dirname -- "$file" || 12448247738Sbapt$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12449247738Sbapt X"$file" : 'X\(//\)[^/]' \| \ 12450247738Sbapt X"$file" : 'X\(//\)$' \| \ 12451247738Sbapt X"$file" : 'X\(/\)' \| . 2>/dev/null || 12452247738Sbapt$as_echo X"$file" | 12453247738Sbapt sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12454247738Sbapt s//\1/ 12455247738Sbapt q 12456247738Sbapt } 12457247738Sbapt /^X\(\/\/\)[^/].*/{ 12458247738Sbapt s//\1/ 12459247738Sbapt q 12460247738Sbapt } 12461247738Sbapt /^X\(\/\/\)$/{ 12462247738Sbapt s//\1/ 12463247738Sbapt q 12464247738Sbapt } 12465247738Sbapt /^X\(\/\).*/{ 12466247738Sbapt s//\1/ 12467247738Sbapt q 12468247738Sbapt } 12469247738Sbapt s/.*/./; q'` 12470247738Sbapt as_dir=$dirpart/$fdir; as_fn_mkdir_p 12471247738Sbapt # echo "creating $dirpart/$file" 12472247738Sbapt echo '# dummy' > "$dirpart/$file" 12473247738Sbapt done 12474247738Sbapt done 12475247738Sbapt} 12476247738Sbapt ;; 12477247738Sbapt "libtool":C) 12478247738Sbapt 12479247738Sbapt # See if we are running on zsh, and set the options which allow our 12480247738Sbapt # commands through without removal of \ escapes. 12481247738Sbapt if test -n "${ZSH_VERSION+set}" ; then 12482247738Sbapt setopt NO_GLOB_SUBST 12483247738Sbapt fi 12484247738Sbapt 12485247738Sbapt cfgfile="${ofile}T" 12486247738Sbapt trap "$RM \"$cfgfile\"; exit 1" 1 2 15 12487247738Sbapt $RM "$cfgfile" 12488247738Sbapt 12489247738Sbapt cat <<_LT_EOF >> "$cfgfile" 12490247738Sbapt#! $SHELL 12491247738Sbapt 12492247738Sbapt# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 12493247738Sbapt# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 12494247738Sbapt# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12495247738Sbapt# NOTE: Changes made to this file will be lost: look at ltmain.sh. 12496247738Sbapt# 12497247738Sbapt# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 12498247738Sbapt# 2006, 2007, 2008 Free Software Foundation, Inc. 12499247738Sbapt# Written by Gordon Matzigkeit, 1996 12500247738Sbapt# 12501247738Sbapt# This file is part of GNU Libtool. 12502247738Sbapt# 12503247738Sbapt# GNU Libtool is free software; you can redistribute it and/or 12504247738Sbapt# modify it under the terms of the GNU General Public License as 12505247738Sbapt# published by the Free Software Foundation; either version 2 of 12506247738Sbapt# the License, or (at your option) any later version. 12507247738Sbapt# 12508247738Sbapt# As a special exception to the GNU General Public License, 12509247738Sbapt# if you distribute this file as part of a program or library that 12510247738Sbapt# is built using GNU Libtool, you may include this file under the 12511247738Sbapt# same distribution terms that you use for the rest of that program. 12512247738Sbapt# 12513247738Sbapt# GNU Libtool is distributed in the hope that it will be useful, 12514247738Sbapt# but WITHOUT ANY WARRANTY; without even the implied warranty of 12515247738Sbapt# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12516247738Sbapt# GNU General Public License for more details. 12517247738Sbapt# 12518247738Sbapt# You should have received a copy of the GNU General Public License 12519247738Sbapt# along with GNU Libtool; see the file COPYING. If not, a copy 12520247738Sbapt# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 12521247738Sbapt# obtained by writing to the Free Software Foundation, Inc., 12522247738Sbapt# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 12523247738Sbapt 12524247738Sbapt 12525247738Sbapt# The names of the tagged configurations supported by this script. 12526247738Sbaptavailable_tags="" 12527247738Sbapt 12528247738Sbapt# ### BEGIN LIBTOOL CONFIG 12529247738Sbapt 12530247738Sbapt# Which release of libtool.m4 was used? 12531247738Sbaptmacro_version=$macro_version 12532247738Sbaptmacro_revision=$macro_revision 12533247738Sbapt 12534247738Sbapt# Whether or not to build shared libraries. 12535247738Sbaptbuild_libtool_libs=$enable_shared 12536247738Sbapt 12537247738Sbapt# Whether or not to build static libraries. 12538247738Sbaptbuild_old_libs=$enable_static 12539247738Sbapt 12540247738Sbapt# What type of objects to build. 12541247738Sbaptpic_mode=$pic_mode 12542247738Sbapt 12543247738Sbapt# Whether or not to optimize for fast installation. 12544247738Sbaptfast_install=$enable_fast_install 12545247738Sbapt 12546247738Sbapt# The host system. 12547247738Sbapthost_alias=$host_alias 12548247738Sbapthost=$host 12549247738Sbapthost_os=$host_os 12550247738Sbapt 12551247738Sbapt# The build system. 12552247738Sbaptbuild_alias=$build_alias 12553247738Sbaptbuild=$build 12554247738Sbaptbuild_os=$build_os 12555247738Sbapt 12556247738Sbapt# A sed program that does not truncate output. 12557247738SbaptSED=$lt_SED 12558247738Sbapt 12559247738Sbapt# Sed that helps us avoid accidentally triggering echo(1) options like -n. 12560247738SbaptXsed="\$SED -e 1s/^X//" 12561247738Sbapt 12562247738Sbapt# A grep program that handles long lines. 12563247738SbaptGREP=$lt_GREP 12564247738Sbapt 12565247738Sbapt# An ERE matcher. 12566247738SbaptEGREP=$lt_EGREP 12567247738Sbapt 12568247738Sbapt# A literal string matcher. 12569247738SbaptFGREP=$lt_FGREP 12570247738Sbapt 12571247738Sbapt# A BSD- or MS-compatible name lister. 12572247738SbaptNM=$lt_NM 12573247738Sbapt 12574247738Sbapt# Whether we need soft or hard links. 12575247738SbaptLN_S=$lt_LN_S 12576247738Sbapt 12577247738Sbapt# What is the maximum length of a command? 12578247738Sbaptmax_cmd_len=$max_cmd_len 12579247738Sbapt 12580247738Sbapt# Object file suffix (normally "o"). 12581247738Sbaptobjext=$ac_objext 12582247738Sbapt 12583247738Sbapt# Executable file suffix (normally ""). 12584247738Sbaptexeext=$exeext 12585247738Sbapt 12586247738Sbapt# whether the shell understands "unset". 12587247738Sbaptlt_unset=$lt_unset 12588247738Sbapt 12589247738Sbapt# turn spaces into newlines. 12590247738SbaptSP2NL=$lt_lt_SP2NL 12591247738Sbapt 12592247738Sbapt# turn newlines into spaces. 12593247738SbaptNL2SP=$lt_lt_NL2SP 12594247738Sbapt 12595247738Sbapt# How to create reloadable object files. 12596247738Sbaptreload_flag=$lt_reload_flag 12597247738Sbaptreload_cmds=$lt_reload_cmds 12598247738Sbapt 12599247738Sbapt# An object symbol dumper. 12600247738SbaptOBJDUMP=$lt_OBJDUMP 12601247738Sbapt 12602247738Sbapt# Method to check whether dependent libraries are shared objects. 12603247738Sbaptdeplibs_check_method=$lt_deplibs_check_method 12604247738Sbapt 12605247738Sbapt# Command to use when deplibs_check_method == "file_magic". 12606247738Sbaptfile_magic_cmd=$lt_file_magic_cmd 12607247738Sbapt 12608247738Sbapt# The archiver. 12609247738SbaptAR=$lt_AR 12610247738SbaptAR_FLAGS=$lt_AR_FLAGS 12611247738Sbapt 12612247738Sbapt# A symbol stripping program. 12613247738SbaptSTRIP=$lt_STRIP 12614247738Sbapt 12615247738Sbapt# Commands used to install an old-style archive. 12616247738SbaptRANLIB=$lt_RANLIB 12617247738Sbaptold_postinstall_cmds=$lt_old_postinstall_cmds 12618247738Sbaptold_postuninstall_cmds=$lt_old_postuninstall_cmds 12619247738Sbapt 12620247738Sbapt# A C compiler. 12621247738SbaptLTCC=$lt_CC 12622247738Sbapt 12623247738Sbapt# LTCC compiler flags. 12624247738SbaptLTCFLAGS=$lt_CFLAGS 12625247738Sbapt 12626247738Sbapt# Take the output of nm and produce a listing of raw symbols and C names. 12627247738Sbaptglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12628247738Sbapt 12629247738Sbapt# Transform the output of nm in a proper C declaration. 12630247738Sbaptglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12631247738Sbapt 12632247738Sbapt# Transform the output of nm in a C name address pair. 12633247738Sbaptglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12634247738Sbapt 12635247738Sbapt# Transform the output of nm in a C name address pair when lib prefix is needed. 12636247738Sbaptglobal_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 12637247738Sbapt 12638247738Sbapt# The name of the directory that contains temporary libtool files. 12639247738Sbaptobjdir=$objdir 12640247738Sbapt 12641247738Sbapt# Shell to use when invoking shell scripts. 12642247738SbaptSHELL=$lt_SHELL 12643247738Sbapt 12644247738Sbapt# An echo program that does not interpret backslashes. 12645247738SbaptECHO=$lt_ECHO 12646247738Sbapt 12647247738Sbapt# Used to examine libraries when file_magic_cmd begins with "file". 12648247738SbaptMAGIC_CMD=$MAGIC_CMD 12649247738Sbapt 12650247738Sbapt# Must we lock files when doing compilation? 12651247738Sbaptneed_locks=$lt_need_locks 12652247738Sbapt 12653247738Sbapt# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 12654247738SbaptDSYMUTIL=$lt_DSYMUTIL 12655247738Sbapt 12656247738Sbapt# Tool to change global to local symbols on Mac OS X. 12657247738SbaptNMEDIT=$lt_NMEDIT 12658247738Sbapt 12659247738Sbapt# Tool to manipulate fat objects and archives on Mac OS X. 12660247738SbaptLIPO=$lt_LIPO 12661247738Sbapt 12662247738Sbapt# ldd/readelf like tool for Mach-O binaries on Mac OS X. 12663247738SbaptOTOOL=$lt_OTOOL 12664247738Sbapt 12665247738Sbapt# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 12666247738SbaptOTOOL64=$lt_OTOOL64 12667247738Sbapt 12668247738Sbapt# Old archive suffix (normally "a"). 12669247738Sbaptlibext=$libext 12670247738Sbapt 12671247738Sbapt# Shared library suffix (normally ".so"). 12672247738Sbaptshrext_cmds=$lt_shrext_cmds 12673247738Sbapt 12674247738Sbapt# The commands to extract the exported symbol list from a shared archive. 12675247738Sbaptextract_expsyms_cmds=$lt_extract_expsyms_cmds 12676247738Sbapt 12677247738Sbapt# Variables whose values should be saved in libtool wrapper scripts and 12678247738Sbapt# restored at link time. 12679247738Sbaptvariables_saved_for_relink=$lt_variables_saved_for_relink 12680247738Sbapt 12681247738Sbapt# Do we need the "lib" prefix for modules? 12682247738Sbaptneed_lib_prefix=$need_lib_prefix 12683247738Sbapt 12684247738Sbapt# Do we need a version for libraries? 12685247738Sbaptneed_version=$need_version 12686247738Sbapt 12687247738Sbapt# Library versioning type. 12688247738Sbaptversion_type=$version_type 12689247738Sbapt 12690247738Sbapt# Shared library runtime path variable. 12691247738Sbaptrunpath_var=$runpath_var 12692247738Sbapt 12693247738Sbapt# Shared library path variable. 12694247738Sbaptshlibpath_var=$shlibpath_var 12695247738Sbapt 12696247738Sbapt# Is shlibpath searched before the hard-coded library search path? 12697247738Sbaptshlibpath_overrides_runpath=$shlibpath_overrides_runpath 12698247738Sbapt 12699247738Sbapt# Format of library name prefix. 12700247738Sbaptlibname_spec=$lt_libname_spec 12701247738Sbapt 12702247738Sbapt# List of archive names. First name is the real one, the rest are links. 12703247738Sbapt# The last name is the one that the linker finds with -lNAME 12704247738Sbaptlibrary_names_spec=$lt_library_names_spec 12705247738Sbapt 12706247738Sbapt# The coded name of the library, if different from the real name. 12707247738Sbaptsoname_spec=$lt_soname_spec 12708247738Sbapt 12709247738Sbapt# Command to use after installation of a shared archive. 12710247738Sbaptpostinstall_cmds=$lt_postinstall_cmds 12711247738Sbapt 12712247738Sbapt# Command to use after uninstallation of a shared archive. 12713247738Sbaptpostuninstall_cmds=$lt_postuninstall_cmds 12714247738Sbapt 12715247738Sbapt# Commands used to finish a libtool library installation in a directory. 12716247738Sbaptfinish_cmds=$lt_finish_cmds 12717247738Sbapt 12718247738Sbapt# As "finish_cmds", except a single script fragment to be evaled but 12719247738Sbapt# not shown. 12720247738Sbaptfinish_eval=$lt_finish_eval 12721247738Sbapt 12722247738Sbapt# Whether we should hardcode library paths into libraries. 12723247738Sbapthardcode_into_libs=$hardcode_into_libs 12724247738Sbapt 12725247738Sbapt# Compile-time system search path for libraries. 12726247738Sbaptsys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12727247738Sbapt 12728247738Sbapt# Run-time system search path for libraries. 12729247738Sbaptsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12730247738Sbapt 12731247738Sbapt# Whether dlopen is supported. 12732247738Sbaptdlopen_support=$enable_dlopen 12733247738Sbapt 12734247738Sbapt# Whether dlopen of programs is supported. 12735247738Sbaptdlopen_self=$enable_dlopen_self 12736247738Sbapt 12737247738Sbapt# Whether dlopen of statically linked programs is supported. 12738247738Sbaptdlopen_self_static=$enable_dlopen_self_static 12739247738Sbapt 12740247738Sbapt# Commands to strip libraries. 12741247738Sbaptold_striplib=$lt_old_striplib 12742247738Sbaptstriplib=$lt_striplib 12743247738Sbapt 12744247738Sbapt 12745247738Sbapt# The linker used to build libraries. 12746247738SbaptLD=$lt_LD 12747247738Sbapt 12748247738Sbapt# Commands used to build an old-style archive. 12749247738Sbaptold_archive_cmds=$lt_old_archive_cmds 12750247738Sbapt 12751247738Sbapt# A language specific compiler. 12752247738SbaptCC=$lt_compiler 12753247738Sbapt 12754247738Sbapt# Is the compiler the GNU compiler? 12755247738Sbaptwith_gcc=$GCC 12756247738Sbapt 12757247738Sbapt# Compiler flag to turn off builtin functions. 12758247738Sbaptno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 12759247738Sbapt 12760247738Sbapt# How to pass a linker flag through the compiler. 12761247738Sbaptwl=$lt_lt_prog_compiler_wl 12762247738Sbapt 12763247738Sbapt# Additional compiler flags for building library objects. 12764247738Sbaptpic_flag=$lt_lt_prog_compiler_pic 12765247738Sbapt 12766247738Sbapt# Compiler flag to prevent dynamic linking. 12767247738Sbaptlink_static_flag=$lt_lt_prog_compiler_static 12768247738Sbapt 12769247738Sbapt# Does compiler simultaneously support -c and -o options? 12770247738Sbaptcompiler_c_o=$lt_lt_cv_prog_compiler_c_o 12771247738Sbapt 12772247738Sbapt# Whether or not to add -lc for building shared libraries. 12773247738Sbaptbuild_libtool_need_lc=$archive_cmds_need_lc 12774247738Sbapt 12775247738Sbapt# Whether or not to disallow shared libs when runtime libs are static. 12776247738Sbaptallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 12777247738Sbapt 12778247738Sbapt# Compiler flag to allow reflexive dlopens. 12779247738Sbaptexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec 12780247738Sbapt 12781247738Sbapt# Compiler flag to generate shared objects directly from archives. 12782247738Sbaptwhole_archive_flag_spec=$lt_whole_archive_flag_spec 12783247738Sbapt 12784247738Sbapt# Whether the compiler copes with passing no objects directly. 12785247738Sbaptcompiler_needs_object=$lt_compiler_needs_object 12786247738Sbapt 12787247738Sbapt# Create an old-style archive from a shared archive. 12788247738Sbaptold_archive_from_new_cmds=$lt_old_archive_from_new_cmds 12789247738Sbapt 12790247738Sbapt# Create a temporary old-style archive to link instead of a shared archive. 12791247738Sbaptold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 12792247738Sbapt 12793247738Sbapt# Commands used to build a shared archive. 12794247738Sbaptarchive_cmds=$lt_archive_cmds 12795247738Sbaptarchive_expsym_cmds=$lt_archive_expsym_cmds 12796247738Sbapt 12797247738Sbapt# Commands used to build a loadable module if different from building 12798247738Sbapt# a shared archive. 12799247738Sbaptmodule_cmds=$lt_module_cmds 12800247738Sbaptmodule_expsym_cmds=$lt_module_expsym_cmds 12801247738Sbapt 12802247738Sbapt# Whether we are building with GNU ld or not. 12803247738Sbaptwith_gnu_ld=$lt_with_gnu_ld 12804247738Sbapt 12805247738Sbapt# Flag that allows shared libraries with undefined symbols to be built. 12806247738Sbaptallow_undefined_flag=$lt_allow_undefined_flag 12807247738Sbapt 12808247738Sbapt# Flag that enforces no undefined symbols. 12809247738Sbaptno_undefined_flag=$lt_no_undefined_flag 12810247738Sbapt 12811247738Sbapt# Flag to hardcode \$libdir into a binary during linking. 12812247738Sbapt# This must work even if \$libdir does not exist 12813247738Sbapthardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 12814247738Sbapt 12815247738Sbapt# If ld is used when linking, flag to hardcode \$libdir into a binary 12816247738Sbapt# during linking. This must work even if \$libdir does not exist. 12817247738Sbapthardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 12818247738Sbapt 12819247738Sbapt# Whether we need a single "-rpath" flag with a separated argument. 12820247738Sbapthardcode_libdir_separator=$lt_hardcode_libdir_separator 12821247738Sbapt 12822247738Sbapt# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 12823247738Sbapt# DIR into the resulting binary. 12824247738Sbapthardcode_direct=$hardcode_direct 12825247738Sbapt 12826247738Sbapt# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 12827247738Sbapt# DIR into the resulting binary and the resulting library dependency is 12828247738Sbapt# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 12829247738Sbapt# library is relocated. 12830247738Sbapthardcode_direct_absolute=$hardcode_direct_absolute 12831247738Sbapt 12832247738Sbapt# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 12833247738Sbapt# into the resulting binary. 12834247738Sbapthardcode_minus_L=$hardcode_minus_L 12835247738Sbapt 12836247738Sbapt# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 12837247738Sbapt# into the resulting binary. 12838247738Sbapthardcode_shlibpath_var=$hardcode_shlibpath_var 12839247738Sbapt 12840247738Sbapt# Set to "yes" if building a shared library automatically hardcodes DIR 12841247738Sbapt# into the library and all subsequent libraries and executables linked 12842247738Sbapt# against it. 12843247738Sbapthardcode_automatic=$hardcode_automatic 12844247738Sbapt 12845247738Sbapt# Set to yes if linker adds runtime paths of dependent libraries 12846247738Sbapt# to runtime path list. 12847247738Sbaptinherit_rpath=$inherit_rpath 12848247738Sbapt 12849247738Sbapt# Whether libtool must link a program against all its dependency libraries. 12850247738Sbaptlink_all_deplibs=$link_all_deplibs 12851247738Sbapt 12852247738Sbapt# Fix the shell variable \$srcfile for the compiler. 12853247738Sbaptfix_srcfile_path=$lt_fix_srcfile_path 12854247738Sbapt 12855247738Sbapt# Set to "yes" if exported symbols are required. 12856247738Sbaptalways_export_symbols=$always_export_symbols 12857247738Sbapt 12858247738Sbapt# The commands to list exported symbols. 12859247738Sbaptexport_symbols_cmds=$lt_export_symbols_cmds 12860247738Sbapt 12861247738Sbapt# Symbols that should not be listed in the preloaded symbols. 12862247738Sbaptexclude_expsyms=$lt_exclude_expsyms 12863247738Sbapt 12864247738Sbapt# Symbols that must always be exported. 12865247738Sbaptinclude_expsyms=$lt_include_expsyms 12866247738Sbapt 12867247738Sbapt# Commands necessary for linking programs (against libraries) with templates. 12868247738Sbaptprelink_cmds=$lt_prelink_cmds 12869247738Sbapt 12870247738Sbapt# Specify filename containing input files. 12871247738Sbaptfile_list_spec=$lt_file_list_spec 12872247738Sbapt 12873247738Sbapt# How to hardcode a shared library path into an executable. 12874247738Sbapthardcode_action=$hardcode_action 12875247738Sbapt 12876247738Sbapt# ### END LIBTOOL CONFIG 12877247738Sbapt 12878247738Sbapt_LT_EOF 12879247738Sbapt 12880247738Sbapt case $host_os in 12881247738Sbapt aix3*) 12882247738Sbapt cat <<\_LT_EOF >> "$cfgfile" 12883247738Sbapt# AIX sometimes has problems with the GCC collect2 program. For some 12884247738Sbapt# reason, if we set the COLLECT_NAMES environment variable, the problems 12885247738Sbapt# vanish in a puff of smoke. 12886247738Sbaptif test "X${COLLECT_NAMES+set}" != Xset; then 12887247738Sbapt COLLECT_NAMES= 12888247738Sbapt export COLLECT_NAMES 12889247738Sbaptfi 12890247738Sbapt_LT_EOF 12891247738Sbapt ;; 12892247738Sbapt esac 12893247738Sbapt 12894247738Sbapt 12895247738Sbaptltmain="$ac_aux_dir/ltmain.sh" 12896247738Sbapt 12897247738Sbapt 12898247738Sbapt # We use sed instead of cat because bash on DJGPP gets confused if 12899247738Sbapt # if finds mixed CR/LF and LF-only lines. Since sed operates in 12900247738Sbapt # text mode, it properly converts lines to CR/LF. This bash problem 12901247738Sbapt # is reportedly fixed, but why not run on old versions too? 12902247738Sbapt sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 12903247738Sbapt || (rm -f "$cfgfile"; exit 1) 12904247738Sbapt 12905247738Sbapt case $xsi_shell in 12906247738Sbapt yes) 12907247738Sbapt cat << \_LT_EOF >> "$cfgfile" 12908247738Sbapt 12909247738Sbapt# func_dirname file append nondir_replacement 12910247738Sbapt# Compute the dirname of FILE. If nonempty, add APPEND to the result, 12911247738Sbapt# otherwise set result to NONDIR_REPLACEMENT. 12912247738Sbaptfunc_dirname () 12913247738Sbapt{ 12914247738Sbapt case ${1} in 12915247738Sbapt */*) func_dirname_result="${1%/*}${2}" ;; 12916247738Sbapt * ) func_dirname_result="${3}" ;; 12917247738Sbapt esac 12918247738Sbapt} 12919247738Sbapt 12920247738Sbapt# func_basename file 12921247738Sbaptfunc_basename () 12922247738Sbapt{ 12923247738Sbapt func_basename_result="${1##*/}" 12924247738Sbapt} 12925247738Sbapt 12926247738Sbapt# func_dirname_and_basename file append nondir_replacement 12927247738Sbapt# perform func_basename and func_dirname in a single function 12928247738Sbapt# call: 12929247738Sbapt# dirname: Compute the dirname of FILE. If nonempty, 12930247738Sbapt# add APPEND to the result, otherwise set result 12931247738Sbapt# to NONDIR_REPLACEMENT. 12932247738Sbapt# value returned in "$func_dirname_result" 12933247738Sbapt# basename: Compute filename of FILE. 12934247738Sbapt# value retuned in "$func_basename_result" 12935247738Sbapt# Implementation must be kept synchronized with func_dirname 12936247738Sbapt# and func_basename. For efficiency, we do not delegate to 12937247738Sbapt# those functions but instead duplicate the functionality here. 12938247738Sbaptfunc_dirname_and_basename () 12939247738Sbapt{ 12940247738Sbapt case ${1} in 12941247738Sbapt */*) func_dirname_result="${1%/*}${2}" ;; 12942247738Sbapt * ) func_dirname_result="${3}" ;; 12943247738Sbapt esac 12944247738Sbapt func_basename_result="${1##*/}" 12945247738Sbapt} 12946247738Sbapt 12947247738Sbapt# func_stripname prefix suffix name 12948247738Sbapt# strip PREFIX and SUFFIX off of NAME. 12949247738Sbapt# PREFIX and SUFFIX must not contain globbing or regex special 12950247738Sbapt# characters, hashes, percent signs, but SUFFIX may contain a leading 12951247738Sbapt# dot (in which case that matches only a dot). 12952247738Sbaptfunc_stripname () 12953247738Sbapt{ 12954247738Sbapt # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 12955247738Sbapt # positional parameters, so assign one to ordinary parameter first. 12956247738Sbapt func_stripname_result=${3} 12957247738Sbapt func_stripname_result=${func_stripname_result#"${1}"} 12958247738Sbapt func_stripname_result=${func_stripname_result%"${2}"} 12959247738Sbapt} 12960247738Sbapt 12961247738Sbapt# func_opt_split 12962247738Sbaptfunc_opt_split () 12963247738Sbapt{ 12964247738Sbapt func_opt_split_opt=${1%%=*} 12965247738Sbapt func_opt_split_arg=${1#*=} 12966247738Sbapt} 12967247738Sbapt 12968247738Sbapt# func_lo2o object 12969247738Sbaptfunc_lo2o () 12970247738Sbapt{ 12971247738Sbapt case ${1} in 12972247738Sbapt *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 12973247738Sbapt *) func_lo2o_result=${1} ;; 12974247738Sbapt esac 12975247738Sbapt} 12976247738Sbapt 12977247738Sbapt# func_xform libobj-or-source 12978247738Sbaptfunc_xform () 12979247738Sbapt{ 12980247738Sbapt func_xform_result=${1%.*}.lo 12981247738Sbapt} 12982247738Sbapt 12983247738Sbapt# func_arith arithmetic-term... 12984247738Sbaptfunc_arith () 12985247738Sbapt{ 12986247738Sbapt func_arith_result=$(( $* )) 12987247738Sbapt} 12988247738Sbapt 12989247738Sbapt# func_len string 12990247738Sbapt# STRING may not start with a hyphen. 12991247738Sbaptfunc_len () 12992247738Sbapt{ 12993247738Sbapt func_len_result=${#1} 12994247738Sbapt} 12995247738Sbapt 12996247738Sbapt_LT_EOF 12997247738Sbapt ;; 12998247738Sbapt *) # Bourne compatible functions. 12999247738Sbapt cat << \_LT_EOF >> "$cfgfile" 13000247738Sbapt 13001247738Sbapt# func_dirname file append nondir_replacement 13002247738Sbapt# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13003247738Sbapt# otherwise set result to NONDIR_REPLACEMENT. 13004247738Sbaptfunc_dirname () 13005247738Sbapt{ 13006247738Sbapt # Extract subdirectory from the argument. 13007247738Sbapt func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 13008247738Sbapt if test "X$func_dirname_result" = "X${1}"; then 13009247738Sbapt func_dirname_result="${3}" 13010247738Sbapt else 13011247738Sbapt func_dirname_result="$func_dirname_result${2}" 13012247738Sbapt fi 13013247738Sbapt} 13014247738Sbapt 13015247738Sbapt# func_basename file 13016247738Sbaptfunc_basename () 13017247738Sbapt{ 13018247738Sbapt func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 13019247738Sbapt} 13020247738Sbapt 13021247738Sbapt 13022247738Sbapt# func_stripname prefix suffix name 13023247738Sbapt# strip PREFIX and SUFFIX off of NAME. 13024247738Sbapt# PREFIX and SUFFIX must not contain globbing or regex special 13025247738Sbapt# characters, hashes, percent signs, but SUFFIX may contain a leading 13026247738Sbapt# dot (in which case that matches only a dot). 13027247738Sbapt# func_strip_suffix prefix name 13028247738Sbaptfunc_stripname () 13029247738Sbapt{ 13030247738Sbapt case ${2} in 13031247738Sbapt .*) func_stripname_result=`$ECHO "X${3}" \ 13032247738Sbapt | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 13033247738Sbapt *) func_stripname_result=`$ECHO "X${3}" \ 13034247738Sbapt | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 13035247738Sbapt esac 13036247738Sbapt} 13037247738Sbapt 13038247738Sbapt# sed scripts: 13039247738Sbaptmy_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 13040247738Sbaptmy_sed_long_arg='1s/^-[^=]*=//' 13041247738Sbapt 13042247738Sbapt# func_opt_split 13043247738Sbaptfunc_opt_split () 13044247738Sbapt{ 13045247738Sbapt func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 13046247738Sbapt func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 13047247738Sbapt} 13048247738Sbapt 13049247738Sbapt# func_lo2o object 13050247738Sbaptfunc_lo2o () 13051247738Sbapt{ 13052247738Sbapt func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 13053247738Sbapt} 13054247738Sbapt 13055247738Sbapt# func_xform libobj-or-source 13056247738Sbaptfunc_xform () 13057247738Sbapt{ 13058247738Sbapt func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 13059247738Sbapt} 13060247738Sbapt 13061247738Sbapt# func_arith arithmetic-term... 13062247738Sbaptfunc_arith () 13063247738Sbapt{ 13064247738Sbapt func_arith_result=`expr "$@"` 13065247738Sbapt} 13066247738Sbapt 13067247738Sbapt# func_len string 13068247738Sbapt# STRING may not start with a hyphen. 13069247738Sbaptfunc_len () 13070247738Sbapt{ 13071247738Sbapt func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 13072247738Sbapt} 13073247738Sbapt 13074247738Sbapt_LT_EOF 13075247738Sbaptesac 13076247738Sbapt 13077247738Sbaptcase $lt_shell_append in 13078247738Sbapt yes) 13079247738Sbapt cat << \_LT_EOF >> "$cfgfile" 13080247738Sbapt 13081247738Sbapt# func_append var value 13082247738Sbapt# Append VALUE to the end of shell variable VAR. 13083247738Sbaptfunc_append () 13084247738Sbapt{ 13085247738Sbapt eval "$1+=\$2" 13086247738Sbapt} 13087247738Sbapt_LT_EOF 13088247738Sbapt ;; 13089247738Sbapt *) 13090247738Sbapt cat << \_LT_EOF >> "$cfgfile" 13091247738Sbapt 13092247738Sbapt# func_append var value 13093247738Sbapt# Append VALUE to the end of shell variable VAR. 13094247738Sbaptfunc_append () 13095247738Sbapt{ 13096247738Sbapt eval "$1=\$$1\$2" 13097247738Sbapt} 13098247738Sbapt 13099247738Sbapt_LT_EOF 13100247738Sbapt ;; 13101247738Sbapt esac 13102247738Sbapt 13103247738Sbapt 13104247738Sbapt sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 13105247738Sbapt || (rm -f "$cfgfile"; exit 1) 13106247738Sbapt 13107247738Sbapt mv -f "$cfgfile" "$ofile" || 13108247738Sbapt (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 13109247738Sbapt chmod +x "$ofile" 13110247738Sbapt 13111247738Sbapt ;; 13112247738Sbapt 13113247738Sbapt esac 13114247738Sbaptdone # for ac_tag 13115247738Sbapt 13116247738Sbapt 13117247738Sbaptas_fn_exit 0 13118247738Sbapt_ACEOF 13119247738Sbaptac_clean_files=$ac_clean_files_save 13120247738Sbapt 13121247738Sbapttest $ac_write_fail = 0 || 13122247738Sbapt as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13123247738Sbapt 13124247738Sbapt 13125247738Sbapt# configure is writing to config.log, and then calls config.status. 13126247738Sbapt# config.status does its own redirection, appending to config.log. 13127247738Sbapt# Unfortunately, on DOS this fails, as config.log is still kept open 13128247738Sbapt# by configure, so config.status won't be able to write to it; its 13129247738Sbapt# output is simply discarded. So we exec the FD to /dev/null, 13130247738Sbapt# effectively closing config.log, so it can be properly (re)opened and 13131247738Sbapt# appended to by config.status. When coming back to configure, we 13132247738Sbapt# need to make the FD available again. 13133247738Sbaptif test "$no_create" != yes; then 13134247738Sbapt ac_cs_success=: 13135247738Sbapt ac_config_status_args= 13136247738Sbapt test "$silent" = yes && 13137247738Sbapt ac_config_status_args="$ac_config_status_args --quiet" 13138247738Sbapt exec 5>/dev/null 13139247738Sbapt $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13140247738Sbapt exec 5>>config.log 13141247738Sbapt # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13142247738Sbapt # would make configure fail if this is the last instruction. 13143247738Sbapt $ac_cs_success || as_fn_exit 1 13144247738Sbaptfi 13145247738Sbaptif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13146247738Sbapt { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13147247738Sbapt$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13148247738Sbaptfi 13149247738Sbapt 13150