annotate src/opusfile-0.9/configure @ 69:7aeed7906520

Add Opus sources and macOS builds
author Chris Cannam
date Wed, 23 Jan 2019 13:48:08 +0000
parents
children
rev   line source
Chris@69 1 #! /bin/sh
Chris@69 2 # Guess values for system-dependent variables and create Makefiles.
Chris@69 3 # Generated by GNU Autoconf 2.69 for opusfile 0.9.
Chris@69 4 #
Chris@69 5 # Report bugs to <opus@xiph.org>.
Chris@69 6 #
Chris@69 7 #
Chris@69 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Chris@69 9 #
Chris@69 10 #
Chris@69 11 # This configure script is free software; the Free Software Foundation
Chris@69 12 # gives unlimited permission to copy, distribute and modify it.
Chris@69 13 ## -------------------- ##
Chris@69 14 ## M4sh Initialization. ##
Chris@69 15 ## -------------------- ##
Chris@69 16
Chris@69 17 # Be more Bourne compatible
Chris@69 18 DUALCASE=1; export DUALCASE # for MKS sh
Chris@69 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Chris@69 20 emulate sh
Chris@69 21 NULLCMD=:
Chris@69 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Chris@69 23 # is contrary to our usage. Disable this feature.
Chris@69 24 alias -g '${1+"$@"}'='"$@"'
Chris@69 25 setopt NO_GLOB_SUBST
Chris@69 26 else
Chris@69 27 case `(set -o) 2>/dev/null` in #(
Chris@69 28 *posix*) :
Chris@69 29 set -o posix ;; #(
Chris@69 30 *) :
Chris@69 31 ;;
Chris@69 32 esac
Chris@69 33 fi
Chris@69 34
Chris@69 35
Chris@69 36 as_nl='
Chris@69 37 '
Chris@69 38 export as_nl
Chris@69 39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
Chris@69 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@69 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@69 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@69 43 # Prefer a ksh shell builtin over an external printf program on Solaris,
Chris@69 44 # but without wasting forks for bash or zsh.
Chris@69 45 if test -z "$BASH_VERSION$ZSH_VERSION" \
Chris@69 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@69 47 as_echo='print -r --'
Chris@69 48 as_echo_n='print -rn --'
Chris@69 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@69 50 as_echo='printf %s\n'
Chris@69 51 as_echo_n='printf %s'
Chris@69 52 else
Chris@69 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
Chris@69 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
Chris@69 55 as_echo_n='/usr/ucb/echo -n'
Chris@69 56 else
Chris@69 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
Chris@69 58 as_echo_n_body='eval
Chris@69 59 arg=$1;
Chris@69 60 case $arg in #(
Chris@69 61 *"$as_nl"*)
Chris@69 62 expr "X$arg" : "X\\(.*\\)$as_nl";
Chris@69 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
Chris@69 64 esac;
Chris@69 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
Chris@69 66 '
Chris@69 67 export as_echo_n_body
Chris@69 68 as_echo_n='sh -c $as_echo_n_body as_echo'
Chris@69 69 fi
Chris@69 70 export as_echo_body
Chris@69 71 as_echo='sh -c $as_echo_body as_echo'
Chris@69 72 fi
Chris@69 73
Chris@69 74 # The user is always right.
Chris@69 75 if test "${PATH_SEPARATOR+set}" != set; then
Chris@69 76 PATH_SEPARATOR=:
Chris@69 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
Chris@69 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
Chris@69 79 PATH_SEPARATOR=';'
Chris@69 80 }
Chris@69 81 fi
Chris@69 82
Chris@69 83
Chris@69 84 # IFS
Chris@69 85 # We need space, tab and new line, in precisely that order. Quoting is
Chris@69 86 # there to prevent editors from complaining about space-tab.
Chris@69 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
Chris@69 88 # splitting by setting IFS to empty value.)
Chris@69 89 IFS=" "" $as_nl"
Chris@69 90
Chris@69 91 # Find who we are. Look in the path if we contain no directory separator.
Chris@69 92 as_myself=
Chris@69 93 case $0 in #((
Chris@69 94 *[\\/]* ) as_myself=$0 ;;
Chris@69 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 96 for as_dir in $PATH
Chris@69 97 do
Chris@69 98 IFS=$as_save_IFS
Chris@69 99 test -z "$as_dir" && as_dir=.
Chris@69 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
Chris@69 101 done
Chris@69 102 IFS=$as_save_IFS
Chris@69 103
Chris@69 104 ;;
Chris@69 105 esac
Chris@69 106 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@69 107 # in which case we are not to be found in the path.
Chris@69 108 if test "x$as_myself" = x; then
Chris@69 109 as_myself=$0
Chris@69 110 fi
Chris@69 111 if test ! -f "$as_myself"; then
Chris@69 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Chris@69 113 exit 1
Chris@69 114 fi
Chris@69 115
Chris@69 116 # Unset variables that we do not need and which cause bugs (e.g. in
Chris@69 117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
Chris@69 118 # suppresses any "Segmentation fault" message there. '((' could
Chris@69 119 # trigger a bug in pdksh 5.2.14.
Chris@69 120 for as_var in BASH_ENV ENV MAIL MAILPATH
Chris@69 121 do eval test x\${$as_var+set} = xset \
Chris@69 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Chris@69 123 done
Chris@69 124 PS1='$ '
Chris@69 125 PS2='> '
Chris@69 126 PS4='+ '
Chris@69 127
Chris@69 128 # NLS nuisances.
Chris@69 129 LC_ALL=C
Chris@69 130 export LC_ALL
Chris@69 131 LANGUAGE=C
Chris@69 132 export LANGUAGE
Chris@69 133
Chris@69 134 # CDPATH.
Chris@69 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@69 136
Chris@69 137 # Use a proper internal environment variable to ensure we don't fall
Chris@69 138 # into an infinite loop, continuously re-executing ourselves.
Chris@69 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
Chris@69 140 _as_can_reexec=no; export _as_can_reexec;
Chris@69 141 # We cannot yet assume a decent shell, so we have to provide a
Chris@69 142 # neutralization value for shells without unset; and this also
Chris@69 143 # works around shells that cannot unset nonexistent variables.
Chris@69 144 # Preserve -v and -x to the replacement shell.
Chris@69 145 BASH_ENV=/dev/null
Chris@69 146 ENV=/dev/null
Chris@69 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
Chris@69 148 case $- in # ((((
Chris@69 149 *v*x* | *x*v* ) as_opts=-vx ;;
Chris@69 150 *v* ) as_opts=-v ;;
Chris@69 151 *x* ) as_opts=-x ;;
Chris@69 152 * ) as_opts= ;;
Chris@69 153 esac
Chris@69 154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
Chris@69 155 # Admittedly, this is quite paranoid, since all the known shells bail
Chris@69 156 # out after a failed `exec'.
Chris@69 157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
Chris@69 158 as_fn_exit 255
Chris@69 159 fi
Chris@69 160 # We don't want this to propagate to other subprocesses.
Chris@69 161 { _as_can_reexec=; unset _as_can_reexec;}
Chris@69 162 if test "x$CONFIG_SHELL" = x; then
Chris@69 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
Chris@69 164 emulate sh
Chris@69 165 NULLCMD=:
Chris@69 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
Chris@69 167 # is contrary to our usage. Disable this feature.
Chris@69 168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
Chris@69 169 setopt NO_GLOB_SUBST
Chris@69 170 else
Chris@69 171 case \`(set -o) 2>/dev/null\` in #(
Chris@69 172 *posix*) :
Chris@69 173 set -o posix ;; #(
Chris@69 174 *) :
Chris@69 175 ;;
Chris@69 176 esac
Chris@69 177 fi
Chris@69 178 "
Chris@69 179 as_required="as_fn_return () { (exit \$1); }
Chris@69 180 as_fn_success () { as_fn_return 0; }
Chris@69 181 as_fn_failure () { as_fn_return 1; }
Chris@69 182 as_fn_ret_success () { return 0; }
Chris@69 183 as_fn_ret_failure () { return 1; }
Chris@69 184
Chris@69 185 exitcode=0
Chris@69 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
Chris@69 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
Chris@69 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
Chris@69 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
Chris@69 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
Chris@69 191
Chris@69 192 else
Chris@69 193 exitcode=1; echo positional parameters were not saved.
Chris@69 194 fi
Chris@69 195 test x\$exitcode = x0 || exit 1
Chris@69 196 test -x / || exit 1"
Chris@69 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
Chris@69 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
Chris@69 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
Chris@69 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
Chris@69 201 test \$(( 1 + 1 )) = 2 || exit 1
Chris@69 202
Chris@69 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
Chris@69 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@69 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
Chris@69 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
Chris@69 207 PATH=/empty FPATH=/empty; export PATH FPATH
Chris@69 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
Chris@69 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
Chris@69 210 if (eval "$as_required") 2>/dev/null; then :
Chris@69 211 as_have_required=yes
Chris@69 212 else
Chris@69 213 as_have_required=no
Chris@69 214 fi
Chris@69 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
Chris@69 216
Chris@69 217 else
Chris@69 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 219 as_found=false
Chris@69 220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Chris@69 221 do
Chris@69 222 IFS=$as_save_IFS
Chris@69 223 test -z "$as_dir" && as_dir=.
Chris@69 224 as_found=:
Chris@69 225 case $as_dir in #(
Chris@69 226 /*)
Chris@69 227 for as_base in sh bash ksh sh5; do
Chris@69 228 # Try only shells that exist, to save several forks.
Chris@69 229 as_shell=$as_dir/$as_base
Chris@69 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
Chris@69 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
Chris@69 232 CONFIG_SHELL=$as_shell as_have_required=yes
Chris@69 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
Chris@69 234 break 2
Chris@69 235 fi
Chris@69 236 fi
Chris@69 237 done;;
Chris@69 238 esac
Chris@69 239 as_found=false
Chris@69 240 done
Chris@69 241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
Chris@69 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
Chris@69 243 CONFIG_SHELL=$SHELL as_have_required=yes
Chris@69 244 fi; }
Chris@69 245 IFS=$as_save_IFS
Chris@69 246
Chris@69 247
Chris@69 248 if test "x$CONFIG_SHELL" != x; then :
Chris@69 249 export CONFIG_SHELL
Chris@69 250 # We cannot yet assume a decent shell, so we have to provide a
Chris@69 251 # neutralization value for shells without unset; and this also
Chris@69 252 # works around shells that cannot unset nonexistent variables.
Chris@69 253 # Preserve -v and -x to the replacement shell.
Chris@69 254 BASH_ENV=/dev/null
Chris@69 255 ENV=/dev/null
Chris@69 256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
Chris@69 257 case $- in # ((((
Chris@69 258 *v*x* | *x*v* ) as_opts=-vx ;;
Chris@69 259 *v* ) as_opts=-v ;;
Chris@69 260 *x* ) as_opts=-x ;;
Chris@69 261 * ) as_opts= ;;
Chris@69 262 esac
Chris@69 263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
Chris@69 264 # Admittedly, this is quite paranoid, since all the known shells bail
Chris@69 265 # out after a failed `exec'.
Chris@69 266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
Chris@69 267 exit 255
Chris@69 268 fi
Chris@69 269
Chris@69 270 if test x$as_have_required = xno; then :
Chris@69 271 $as_echo "$0: This script requires a shell more modern than all"
Chris@69 272 $as_echo "$0: the shells that I found on your system."
Chris@69 273 if test x${ZSH_VERSION+set} = xset ; then
Chris@69 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
Chris@69 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
Chris@69 276 else
Chris@69 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and opus@xiph.org
Chris@69 278 $0: about your system, including any error possibly output
Chris@69 279 $0: before this message. Then install a modern shell, or
Chris@69 280 $0: manually run the script under such a shell if you do
Chris@69 281 $0: have one."
Chris@69 282 fi
Chris@69 283 exit 1
Chris@69 284 fi
Chris@69 285 fi
Chris@69 286 fi
Chris@69 287 SHELL=${CONFIG_SHELL-/bin/sh}
Chris@69 288 export SHELL
Chris@69 289 # Unset more variables known to interfere with behavior of common tools.
Chris@69 290 CLICOLOR_FORCE= GREP_OPTIONS=
Chris@69 291 unset CLICOLOR_FORCE GREP_OPTIONS
Chris@69 292
Chris@69 293 ## --------------------- ##
Chris@69 294 ## M4sh Shell Functions. ##
Chris@69 295 ## --------------------- ##
Chris@69 296 # as_fn_unset VAR
Chris@69 297 # ---------------
Chris@69 298 # Portably unset VAR.
Chris@69 299 as_fn_unset ()
Chris@69 300 {
Chris@69 301 { eval $1=; unset $1;}
Chris@69 302 }
Chris@69 303 as_unset=as_fn_unset
Chris@69 304
Chris@69 305 # as_fn_set_status STATUS
Chris@69 306 # -----------------------
Chris@69 307 # Set $? to STATUS, without forking.
Chris@69 308 as_fn_set_status ()
Chris@69 309 {
Chris@69 310 return $1
Chris@69 311 } # as_fn_set_status
Chris@69 312
Chris@69 313 # as_fn_exit STATUS
Chris@69 314 # -----------------
Chris@69 315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
Chris@69 316 as_fn_exit ()
Chris@69 317 {
Chris@69 318 set +e
Chris@69 319 as_fn_set_status $1
Chris@69 320 exit $1
Chris@69 321 } # as_fn_exit
Chris@69 322
Chris@69 323 # as_fn_mkdir_p
Chris@69 324 # -------------
Chris@69 325 # Create "$as_dir" as a directory, including parents if necessary.
Chris@69 326 as_fn_mkdir_p ()
Chris@69 327 {
Chris@69 328
Chris@69 329 case $as_dir in #(
Chris@69 330 -*) as_dir=./$as_dir;;
Chris@69 331 esac
Chris@69 332 test -d "$as_dir" || eval $as_mkdir_p || {
Chris@69 333 as_dirs=
Chris@69 334 while :; do
Chris@69 335 case $as_dir in #(
Chris@69 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Chris@69 337 *) as_qdir=$as_dir;;
Chris@69 338 esac
Chris@69 339 as_dirs="'$as_qdir' $as_dirs"
Chris@69 340 as_dir=`$as_dirname -- "$as_dir" ||
Chris@69 341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@69 342 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@69 343 X"$as_dir" : 'X\(//\)$' \| \
Chris@69 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Chris@69 345 $as_echo X"$as_dir" |
Chris@69 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@69 347 s//\1/
Chris@69 348 q
Chris@69 349 }
Chris@69 350 /^X\(\/\/\)[^/].*/{
Chris@69 351 s//\1/
Chris@69 352 q
Chris@69 353 }
Chris@69 354 /^X\(\/\/\)$/{
Chris@69 355 s//\1/
Chris@69 356 q
Chris@69 357 }
Chris@69 358 /^X\(\/\).*/{
Chris@69 359 s//\1/
Chris@69 360 q
Chris@69 361 }
Chris@69 362 s/.*/./; q'`
Chris@69 363 test -d "$as_dir" && break
Chris@69 364 done
Chris@69 365 test -z "$as_dirs" || eval "mkdir $as_dirs"
Chris@69 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Chris@69 367
Chris@69 368
Chris@69 369 } # as_fn_mkdir_p
Chris@69 370
Chris@69 371 # as_fn_executable_p FILE
Chris@69 372 # -----------------------
Chris@69 373 # Test if FILE is an executable regular file.
Chris@69 374 as_fn_executable_p ()
Chris@69 375 {
Chris@69 376 test -f "$1" && test -x "$1"
Chris@69 377 } # as_fn_executable_p
Chris@69 378 # as_fn_append VAR VALUE
Chris@69 379 # ----------------------
Chris@69 380 # Append the text in VALUE to the end of the definition contained in VAR. Take
Chris@69 381 # advantage of any shell optimizations that allow amortized linear growth over
Chris@69 382 # repeated appends, instead of the typical quadratic growth present in naive
Chris@69 383 # implementations.
Chris@69 384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
Chris@69 385 eval 'as_fn_append ()
Chris@69 386 {
Chris@69 387 eval $1+=\$2
Chris@69 388 }'
Chris@69 389 else
Chris@69 390 as_fn_append ()
Chris@69 391 {
Chris@69 392 eval $1=\$$1\$2
Chris@69 393 }
Chris@69 394 fi # as_fn_append
Chris@69 395
Chris@69 396 # as_fn_arith ARG...
Chris@69 397 # ------------------
Chris@69 398 # Perform arithmetic evaluation on the ARGs, and store the result in the
Chris@69 399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
Chris@69 400 # must be portable across $(()) and expr.
Chris@69 401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
Chris@69 402 eval 'as_fn_arith ()
Chris@69 403 {
Chris@69 404 as_val=$(( $* ))
Chris@69 405 }'
Chris@69 406 else
Chris@69 407 as_fn_arith ()
Chris@69 408 {
Chris@69 409 as_val=`expr "$@" || test $? -eq 1`
Chris@69 410 }
Chris@69 411 fi # as_fn_arith
Chris@69 412
Chris@69 413
Chris@69 414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
Chris@69 415 # ----------------------------------------
Chris@69 416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
Chris@69 417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Chris@69 418 # script with STATUS, using 1 if that was 0.
Chris@69 419 as_fn_error ()
Chris@69 420 {
Chris@69 421 as_status=$1; test $as_status -eq 0 && as_status=1
Chris@69 422 if test "$4"; then
Chris@69 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@69 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Chris@69 425 fi
Chris@69 426 $as_echo "$as_me: error: $2" >&2
Chris@69 427 as_fn_exit $as_status
Chris@69 428 } # as_fn_error
Chris@69 429
Chris@69 430 if expr a : '\(a\)' >/dev/null 2>&1 &&
Chris@69 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Chris@69 432 as_expr=expr
Chris@69 433 else
Chris@69 434 as_expr=false
Chris@69 435 fi
Chris@69 436
Chris@69 437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Chris@69 438 as_basename=basename
Chris@69 439 else
Chris@69 440 as_basename=false
Chris@69 441 fi
Chris@69 442
Chris@69 443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Chris@69 444 as_dirname=dirname
Chris@69 445 else
Chris@69 446 as_dirname=false
Chris@69 447 fi
Chris@69 448
Chris@69 449 as_me=`$as_basename -- "$0" ||
Chris@69 450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@69 451 X"$0" : 'X\(//\)$' \| \
Chris@69 452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Chris@69 453 $as_echo X/"$0" |
Chris@69 454 sed '/^.*\/\([^/][^/]*\)\/*$/{
Chris@69 455 s//\1/
Chris@69 456 q
Chris@69 457 }
Chris@69 458 /^X\/\(\/\/\)$/{
Chris@69 459 s//\1/
Chris@69 460 q
Chris@69 461 }
Chris@69 462 /^X\/\(\/\).*/{
Chris@69 463 s//\1/
Chris@69 464 q
Chris@69 465 }
Chris@69 466 s/.*/./; q'`
Chris@69 467
Chris@69 468 # Avoid depending upon Character Ranges.
Chris@69 469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
Chris@69 470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Chris@69 471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
Chris@69 472 as_cr_digits='0123456789'
Chris@69 473 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@69 474
Chris@69 475
Chris@69 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
Chris@69 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
Chris@69 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
Chris@69 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
Chris@69 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Chris@69 481 sed -n '
Chris@69 482 p
Chris@69 483 /[$]LINENO/=
Chris@69 484 ' <$as_myself |
Chris@69 485 sed '
Chris@69 486 s/[$]LINENO.*/&-/
Chris@69 487 t lineno
Chris@69 488 b
Chris@69 489 :lineno
Chris@69 490 N
Chris@69 491 :loop
Chris@69 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Chris@69 493 t loop
Chris@69 494 s/-\n.*//
Chris@69 495 ' >$as_me.lineno &&
Chris@69 496 chmod +x "$as_me.lineno" ||
Chris@69 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Chris@69 498
Chris@69 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
Chris@69 500 # already done that, so ensure we don't try to do so again and fall
Chris@69 501 # in an infinite loop. This has already happened in practice.
Chris@69 502 _as_can_reexec=no; export _as_can_reexec
Chris@69 503 # Don't try to exec as it changes $[0], causing all sort of problems
Chris@69 504 # (the dirname of $[0] is not the place where we might find the
Chris@69 505 # original and so on. Autoconf is especially sensitive to this).
Chris@69 506 . "./$as_me.lineno"
Chris@69 507 # Exit status is that of the last command.
Chris@69 508 exit
Chris@69 509 }
Chris@69 510
Chris@69 511 ECHO_C= ECHO_N= ECHO_T=
Chris@69 512 case `echo -n x` in #(((((
Chris@69 513 -n*)
Chris@69 514 case `echo 'xy\c'` in
Chris@69 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Chris@69 516 xy) ECHO_C='\c';;
Chris@69 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
Chris@69 518 ECHO_T=' ';;
Chris@69 519 esac;;
Chris@69 520 *)
Chris@69 521 ECHO_N='-n';;
Chris@69 522 esac
Chris@69 523
Chris@69 524 rm -f conf$$ conf$$.exe conf$$.file
Chris@69 525 if test -d conf$$.dir; then
Chris@69 526 rm -f conf$$.dir/conf$$.file
Chris@69 527 else
Chris@69 528 rm -f conf$$.dir
Chris@69 529 mkdir conf$$.dir 2>/dev/null
Chris@69 530 fi
Chris@69 531 if (echo >conf$$.file) 2>/dev/null; then
Chris@69 532 if ln -s conf$$.file conf$$ 2>/dev/null; then
Chris@69 533 as_ln_s='ln -s'
Chris@69 534 # ... but there are two gotchas:
Chris@69 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
Chris@69 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Chris@69 537 # In both cases, we have to default to `cp -pR'.
Chris@69 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@69 539 as_ln_s='cp -pR'
Chris@69 540 elif ln conf$$.file conf$$ 2>/dev/null; then
Chris@69 541 as_ln_s=ln
Chris@69 542 else
Chris@69 543 as_ln_s='cp -pR'
Chris@69 544 fi
Chris@69 545 else
Chris@69 546 as_ln_s='cp -pR'
Chris@69 547 fi
Chris@69 548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Chris@69 549 rmdir conf$$.dir 2>/dev/null
Chris@69 550
Chris@69 551 if mkdir -p . 2>/dev/null; then
Chris@69 552 as_mkdir_p='mkdir -p "$as_dir"'
Chris@69 553 else
Chris@69 554 test -d ./-p && rmdir ./-p
Chris@69 555 as_mkdir_p=false
Chris@69 556 fi
Chris@69 557
Chris@69 558 as_test_x='test -x'
Chris@69 559 as_executable_p=as_fn_executable_p
Chris@69 560
Chris@69 561 # Sed expression to map a string onto a valid CPP name.
Chris@69 562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Chris@69 563
Chris@69 564 # Sed expression to map a string onto a valid variable name.
Chris@69 565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Chris@69 566
Chris@69 567 SHELL=${CONFIG_SHELL-/bin/sh}
Chris@69 568
Chris@69 569
Chris@69 570 test -n "$DJDIR" || exec 7<&0 </dev/null
Chris@69 571 exec 6>&1
Chris@69 572
Chris@69 573 # Name of the host.
Chris@69 574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Chris@69 575 # so uname gets run too.
Chris@69 576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@69 577
Chris@69 578 #
Chris@69 579 # Initializations.
Chris@69 580 #
Chris@69 581 ac_default_prefix=/usr/local
Chris@69 582 ac_clean_files=
Chris@69 583 ac_config_libobj_dir=.
Chris@69 584 LIBOBJS=
Chris@69 585 cross_compiling=no
Chris@69 586 subdirs=
Chris@69 587 MFLAGS=
Chris@69 588 MAKEFLAGS=
Chris@69 589
Chris@69 590 # Identity of this package.
Chris@69 591 PACKAGE_NAME='opusfile'
Chris@69 592 PACKAGE_TARNAME='opusfile'
Chris@69 593 PACKAGE_VERSION='0.9'
Chris@69 594 PACKAGE_STRING='opusfile 0.9'
Chris@69 595 PACKAGE_BUGREPORT='opus@xiph.org'
Chris@69 596 PACKAGE_URL=''
Chris@69 597
Chris@69 598 ac_unique_file="src/opusfile.c"
Chris@69 599 # Factoring default headers for most tests.
Chris@69 600 ac_includes_default="\
Chris@69 601 #include <stdio.h>
Chris@69 602 #ifdef HAVE_SYS_TYPES_H
Chris@69 603 # include <sys/types.h>
Chris@69 604 #endif
Chris@69 605 #ifdef HAVE_SYS_STAT_H
Chris@69 606 # include <sys/stat.h>
Chris@69 607 #endif
Chris@69 608 #ifdef STDC_HEADERS
Chris@69 609 # include <stdlib.h>
Chris@69 610 # include <stddef.h>
Chris@69 611 #else
Chris@69 612 # ifdef HAVE_STDLIB_H
Chris@69 613 # include <stdlib.h>
Chris@69 614 # endif
Chris@69 615 #endif
Chris@69 616 #ifdef HAVE_STRING_H
Chris@69 617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Chris@69 618 # include <memory.h>
Chris@69 619 # endif
Chris@69 620 # include <string.h>
Chris@69 621 #endif
Chris@69 622 #ifdef HAVE_STRINGS_H
Chris@69 623 # include <strings.h>
Chris@69 624 #endif
Chris@69 625 #ifdef HAVE_INTTYPES_H
Chris@69 626 # include <inttypes.h>
Chris@69 627 #endif
Chris@69 628 #ifdef HAVE_STDINT_H
Chris@69 629 # include <stdint.h>
Chris@69 630 #endif
Chris@69 631 #ifdef HAVE_UNISTD_H
Chris@69 632 # include <unistd.h>
Chris@69 633 #endif"
Chris@69 634
Chris@69 635 ac_subst_vars='am__EXEEXT_FALSE
Chris@69 636 am__EXEEXT_TRUE
Chris@69 637 LTLIBOBJS
Chris@69 638 LIBOBJS
Chris@69 639 HAVE_DOXYGEN_FALSE
Chris@69 640 HAVE_DOXYGEN_TRUE
Chris@69 641 HAVE_DOT
Chris@69 642 HAVE_DOXYGEN
Chris@69 643 lrintf_lib
Chris@69 644 OP_ENABLE_EXAMPLES_FALSE
Chris@69 645 OP_ENABLE_EXAMPLES_TRUE
Chris@69 646 DEPS_LIBS
Chris@69 647 DEPS_CFLAGS
Chris@69 648 openssl
Chris@69 649 OP_ENABLE_HTTP_FALSE
Chris@69 650 OP_ENABLE_HTTP_TRUE
Chris@69 651 URL_DEPS_LIBS
Chris@69 652 URL_DEPS_CFLAGS
Chris@69 653 PKG_CONFIG_LIBDIR
Chris@69 654 PKG_CONFIG_PATH
Chris@69 655 PKG_CONFIG
Chris@69 656 OP_WIN32_FALSE
Chris@69 657 OP_WIN32_TRUE
Chris@69 658 OP_LT_AGE
Chris@69 659 OP_LT_REVISION
Chris@69 660 OP_LT_CURRENT
Chris@69 661 LT_SYS_LIBRARY_PATH
Chris@69 662 OTOOL64
Chris@69 663 OTOOL
Chris@69 664 LIPO
Chris@69 665 NMEDIT
Chris@69 666 DSYMUTIL
Chris@69 667 MANIFEST_TOOL
Chris@69 668 RANLIB
Chris@69 669 ac_ct_AR
Chris@69 670 AR
Chris@69 671 DLLTOOL
Chris@69 672 OBJDUMP
Chris@69 673 LN_S
Chris@69 674 NM
Chris@69 675 ac_ct_DUMPBIN
Chris@69 676 DUMPBIN
Chris@69 677 LD
Chris@69 678 FGREP
Chris@69 679 SED
Chris@69 680 host_os
Chris@69 681 host_vendor
Chris@69 682 host_cpu
Chris@69 683 host
Chris@69 684 build_os
Chris@69 685 build_vendor
Chris@69 686 build_cpu
Chris@69 687 build
Chris@69 688 LIBTOOL
Chris@69 689 MAINT
Chris@69 690 MAINTAINER_MODE_FALSE
Chris@69 691 MAINTAINER_MODE_TRUE
Chris@69 692 AM_BACKSLASH
Chris@69 693 AM_DEFAULT_VERBOSITY
Chris@69 694 AM_DEFAULT_V
Chris@69 695 AM_V
Chris@69 696 am__fastdepCC_FALSE
Chris@69 697 am__fastdepCC_TRUE
Chris@69 698 CCDEPMODE
Chris@69 699 am__nodep
Chris@69 700 AMDEPBACKSLASH
Chris@69 701 AMDEP_FALSE
Chris@69 702 AMDEP_TRUE
Chris@69 703 am__quote
Chris@69 704 am__include
Chris@69 705 DEPDIR
Chris@69 706 am__untar
Chris@69 707 am__tar
Chris@69 708 AMTAR
Chris@69 709 am__leading_dot
Chris@69 710 SET_MAKE
Chris@69 711 AWK
Chris@69 712 mkdir_p
Chris@69 713 MKDIR_P
Chris@69 714 INSTALL_STRIP_PROGRAM
Chris@69 715 STRIP
Chris@69 716 install_sh
Chris@69 717 MAKEINFO
Chris@69 718 AUTOHEADER
Chris@69 719 AUTOMAKE
Chris@69 720 AUTOCONF
Chris@69 721 ACLOCAL
Chris@69 722 VERSION
Chris@69 723 PACKAGE
Chris@69 724 CYGPATH_W
Chris@69 725 am__isrc
Chris@69 726 INSTALL_DATA
Chris@69 727 INSTALL_SCRIPT
Chris@69 728 INSTALL_PROGRAM
Chris@69 729 EGREP
Chris@69 730 GREP
Chris@69 731 CPP
Chris@69 732 OBJEXT
Chris@69 733 EXEEXT
Chris@69 734 ac_ct_CC
Chris@69 735 CPPFLAGS
Chris@69 736 LDFLAGS
Chris@69 737 CFLAGS
Chris@69 738 CC
Chris@69 739 target_alias
Chris@69 740 host_alias
Chris@69 741 build_alias
Chris@69 742 LIBS
Chris@69 743 ECHO_T
Chris@69 744 ECHO_N
Chris@69 745 ECHO_C
Chris@69 746 DEFS
Chris@69 747 mandir
Chris@69 748 localedir
Chris@69 749 libdir
Chris@69 750 psdir
Chris@69 751 pdfdir
Chris@69 752 dvidir
Chris@69 753 htmldir
Chris@69 754 infodir
Chris@69 755 docdir
Chris@69 756 oldincludedir
Chris@69 757 includedir
Chris@69 758 localstatedir
Chris@69 759 sharedstatedir
Chris@69 760 sysconfdir
Chris@69 761 datadir
Chris@69 762 datarootdir
Chris@69 763 libexecdir
Chris@69 764 sbindir
Chris@69 765 bindir
Chris@69 766 program_transform_name
Chris@69 767 prefix
Chris@69 768 exec_prefix
Chris@69 769 PACKAGE_URL
Chris@69 770 PACKAGE_BUGREPORT
Chris@69 771 PACKAGE_STRING
Chris@69 772 PACKAGE_VERSION
Chris@69 773 PACKAGE_TARNAME
Chris@69 774 PACKAGE_NAME
Chris@69 775 PATH_SEPARATOR
Chris@69 776 SHELL'
Chris@69 777 ac_subst_files=''
Chris@69 778 ac_user_opts='
Chris@69 779 enable_option_checking
Chris@69 780 enable_largefile
Chris@69 781 enable_dependency_tracking
Chris@69 782 enable_silent_rules
Chris@69 783 enable_maintainer_mode
Chris@69 784 enable_shared
Chris@69 785 enable_static
Chris@69 786 with_pic
Chris@69 787 enable_fast_install
Chris@69 788 with_aix_soname
Chris@69 789 with_gnu_ld
Chris@69 790 with_sysroot
Chris@69 791 enable_libtool_lock
Chris@69 792 enable_assertions
Chris@69 793 enable_http
Chris@69 794 enable_fixed_point
Chris@69 795 enable_float
Chris@69 796 enable_examples
Chris@69 797 enable_doc
Chris@69 798 '
Chris@69 799 ac_precious_vars='build_alias
Chris@69 800 host_alias
Chris@69 801 target_alias
Chris@69 802 CC
Chris@69 803 CFLAGS
Chris@69 804 LDFLAGS
Chris@69 805 LIBS
Chris@69 806 CPPFLAGS
Chris@69 807 CPP
Chris@69 808 LT_SYS_LIBRARY_PATH
Chris@69 809 PKG_CONFIG
Chris@69 810 PKG_CONFIG_PATH
Chris@69 811 PKG_CONFIG_LIBDIR
Chris@69 812 URL_DEPS_CFLAGS
Chris@69 813 URL_DEPS_LIBS
Chris@69 814 DEPS_CFLAGS
Chris@69 815 DEPS_LIBS'
Chris@69 816
Chris@69 817
Chris@69 818 # Initialize some variables set by options.
Chris@69 819 ac_init_help=
Chris@69 820 ac_init_version=false
Chris@69 821 ac_unrecognized_opts=
Chris@69 822 ac_unrecognized_sep=
Chris@69 823 # The variables have the same names as the options, with
Chris@69 824 # dashes changed to underlines.
Chris@69 825 cache_file=/dev/null
Chris@69 826 exec_prefix=NONE
Chris@69 827 no_create=
Chris@69 828 no_recursion=
Chris@69 829 prefix=NONE
Chris@69 830 program_prefix=NONE
Chris@69 831 program_suffix=NONE
Chris@69 832 program_transform_name=s,x,x,
Chris@69 833 silent=
Chris@69 834 site=
Chris@69 835 srcdir=
Chris@69 836 verbose=
Chris@69 837 x_includes=NONE
Chris@69 838 x_libraries=NONE
Chris@69 839
Chris@69 840 # Installation directory options.
Chris@69 841 # These are left unexpanded so users can "make install exec_prefix=/foo"
Chris@69 842 # and all the variables that are supposed to be based on exec_prefix
Chris@69 843 # by default will actually change.
Chris@69 844 # Use braces instead of parens because sh, perl, etc. also accept them.
Chris@69 845 # (The list follows the same order as the GNU Coding Standards.)
Chris@69 846 bindir='${exec_prefix}/bin'
Chris@69 847 sbindir='${exec_prefix}/sbin'
Chris@69 848 libexecdir='${exec_prefix}/libexec'
Chris@69 849 datarootdir='${prefix}/share'
Chris@69 850 datadir='${datarootdir}'
Chris@69 851 sysconfdir='${prefix}/etc'
Chris@69 852 sharedstatedir='${prefix}/com'
Chris@69 853 localstatedir='${prefix}/var'
Chris@69 854 includedir='${prefix}/include'
Chris@69 855 oldincludedir='/usr/include'
Chris@69 856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
Chris@69 857 infodir='${datarootdir}/info'
Chris@69 858 htmldir='${docdir}'
Chris@69 859 dvidir='${docdir}'
Chris@69 860 pdfdir='${docdir}'
Chris@69 861 psdir='${docdir}'
Chris@69 862 libdir='${exec_prefix}/lib'
Chris@69 863 localedir='${datarootdir}/locale'
Chris@69 864 mandir='${datarootdir}/man'
Chris@69 865
Chris@69 866 ac_prev=
Chris@69 867 ac_dashdash=
Chris@69 868 for ac_option
Chris@69 869 do
Chris@69 870 # If the previous option needs an argument, assign it.
Chris@69 871 if test -n "$ac_prev"; then
Chris@69 872 eval $ac_prev=\$ac_option
Chris@69 873 ac_prev=
Chris@69 874 continue
Chris@69 875 fi
Chris@69 876
Chris@69 877 case $ac_option in
Chris@69 878 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
Chris@69 879 *=) ac_optarg= ;;
Chris@69 880 *) ac_optarg=yes ;;
Chris@69 881 esac
Chris@69 882
Chris@69 883 # Accept the important Cygnus configure options, so we can diagnose typos.
Chris@69 884
Chris@69 885 case $ac_dashdash$ac_option in
Chris@69 886 --)
Chris@69 887 ac_dashdash=yes ;;
Chris@69 888
Chris@69 889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
Chris@69 890 ac_prev=bindir ;;
Chris@69 891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Chris@69 892 bindir=$ac_optarg ;;
Chris@69 893
Chris@69 894 -build | --build | --buil | --bui | --bu)
Chris@69 895 ac_prev=build_alias ;;
Chris@69 896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Chris@69 897 build_alias=$ac_optarg ;;
Chris@69 898
Chris@69 899 -cache-file | --cache-file | --cache-fil | --cache-fi \
Chris@69 900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
Chris@69 901 ac_prev=cache_file ;;
Chris@69 902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
Chris@69 903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Chris@69 904 cache_file=$ac_optarg ;;
Chris@69 905
Chris@69 906 --config-cache | -C)
Chris@69 907 cache_file=config.cache ;;
Chris@69 908
Chris@69 909 -datadir | --datadir | --datadi | --datad)
Chris@69 910 ac_prev=datadir ;;
Chris@69 911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Chris@69 912 datadir=$ac_optarg ;;
Chris@69 913
Chris@69 914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
Chris@69 915 | --dataroo | --dataro | --datar)
Chris@69 916 ac_prev=datarootdir ;;
Chris@69 917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
Chris@69 918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
Chris@69 919 datarootdir=$ac_optarg ;;
Chris@69 920
Chris@69 921 -disable-* | --disable-*)
Chris@69 922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Chris@69 923 # Reject names that are not valid shell variable names.
Chris@69 924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@69 925 as_fn_error $? "invalid feature name: $ac_useropt"
Chris@69 926 ac_useropt_orig=$ac_useropt
Chris@69 927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@69 928 case $ac_user_opts in
Chris@69 929 *"
Chris@69 930 "enable_$ac_useropt"
Chris@69 931 "*) ;;
Chris@69 932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
Chris@69 933 ac_unrecognized_sep=', ';;
Chris@69 934 esac
Chris@69 935 eval enable_$ac_useropt=no ;;
Chris@69 936
Chris@69 937 -docdir | --docdir | --docdi | --doc | --do)
Chris@69 938 ac_prev=docdir ;;
Chris@69 939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
Chris@69 940 docdir=$ac_optarg ;;
Chris@69 941
Chris@69 942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
Chris@69 943 ac_prev=dvidir ;;
Chris@69 944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
Chris@69 945 dvidir=$ac_optarg ;;
Chris@69 946
Chris@69 947 -enable-* | --enable-*)
Chris@69 948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Chris@69 949 # Reject names that are not valid shell variable names.
Chris@69 950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@69 951 as_fn_error $? "invalid feature name: $ac_useropt"
Chris@69 952 ac_useropt_orig=$ac_useropt
Chris@69 953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@69 954 case $ac_user_opts in
Chris@69 955 *"
Chris@69 956 "enable_$ac_useropt"
Chris@69 957 "*) ;;
Chris@69 958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
Chris@69 959 ac_unrecognized_sep=', ';;
Chris@69 960 esac
Chris@69 961 eval enable_$ac_useropt=\$ac_optarg ;;
Chris@69 962
Chris@69 963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
Chris@69 964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
Chris@69 965 | --exec | --exe | --ex)
Chris@69 966 ac_prev=exec_prefix ;;
Chris@69 967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
Chris@69 968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
Chris@69 969 | --exec=* | --exe=* | --ex=*)
Chris@69 970 exec_prefix=$ac_optarg ;;
Chris@69 971
Chris@69 972 -gas | --gas | --ga | --g)
Chris@69 973 # Obsolete; use --with-gas.
Chris@69 974 with_gas=yes ;;
Chris@69 975
Chris@69 976 -help | --help | --hel | --he | -h)
Chris@69 977 ac_init_help=long ;;
Chris@69 978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
Chris@69 979 ac_init_help=recursive ;;
Chris@69 980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
Chris@69 981 ac_init_help=short ;;
Chris@69 982
Chris@69 983 -host | --host | --hos | --ho)
Chris@69 984 ac_prev=host_alias ;;
Chris@69 985 -host=* | --host=* | --hos=* | --ho=*)
Chris@69 986 host_alias=$ac_optarg ;;
Chris@69 987
Chris@69 988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
Chris@69 989 ac_prev=htmldir ;;
Chris@69 990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
Chris@69 991 | --ht=*)
Chris@69 992 htmldir=$ac_optarg ;;
Chris@69 993
Chris@69 994 -includedir | --includedir | --includedi | --included | --include \
Chris@69 995 | --includ | --inclu | --incl | --inc)
Chris@69 996 ac_prev=includedir ;;
Chris@69 997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
Chris@69 998 | --includ=* | --inclu=* | --incl=* | --inc=*)
Chris@69 999 includedir=$ac_optarg ;;
Chris@69 1000
Chris@69 1001 -infodir | --infodir | --infodi | --infod | --info | --inf)
Chris@69 1002 ac_prev=infodir ;;
Chris@69 1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Chris@69 1004 infodir=$ac_optarg ;;
Chris@69 1005
Chris@69 1006 -libdir | --libdir | --libdi | --libd)
Chris@69 1007 ac_prev=libdir ;;
Chris@69 1008 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Chris@69 1009 libdir=$ac_optarg ;;
Chris@69 1010
Chris@69 1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
Chris@69 1012 | --libexe | --libex | --libe)
Chris@69 1013 ac_prev=libexecdir ;;
Chris@69 1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
Chris@69 1015 | --libexe=* | --libex=* | --libe=*)
Chris@69 1016 libexecdir=$ac_optarg ;;
Chris@69 1017
Chris@69 1018 -localedir | --localedir | --localedi | --localed | --locale)
Chris@69 1019 ac_prev=localedir ;;
Chris@69 1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
Chris@69 1021 localedir=$ac_optarg ;;
Chris@69 1022
Chris@69 1023 -localstatedir | --localstatedir | --localstatedi | --localstated \
Chris@69 1024 | --localstate | --localstat | --localsta | --localst | --locals)
Chris@69 1025 ac_prev=localstatedir ;;
Chris@69 1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Chris@69 1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Chris@69 1028 localstatedir=$ac_optarg ;;
Chris@69 1029
Chris@69 1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
Chris@69 1031 ac_prev=mandir ;;
Chris@69 1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Chris@69 1033 mandir=$ac_optarg ;;
Chris@69 1034
Chris@69 1035 -nfp | --nfp | --nf)
Chris@69 1036 # Obsolete; use --without-fp.
Chris@69 1037 with_fp=no ;;
Chris@69 1038
Chris@69 1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Chris@69 1040 | --no-cr | --no-c | -n)
Chris@69 1041 no_create=yes ;;
Chris@69 1042
Chris@69 1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
Chris@69 1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
Chris@69 1045 no_recursion=yes ;;
Chris@69 1046
Chris@69 1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
Chris@69 1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
Chris@69 1049 | --oldin | --oldi | --old | --ol | --o)
Chris@69 1050 ac_prev=oldincludedir ;;
Chris@69 1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
Chris@69 1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
Chris@69 1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Chris@69 1054 oldincludedir=$ac_optarg ;;
Chris@69 1055
Chris@69 1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
Chris@69 1057 ac_prev=prefix ;;
Chris@69 1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Chris@69 1059 prefix=$ac_optarg ;;
Chris@69 1060
Chris@69 1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \
Chris@69 1062 | --program-pre | --program-pr | --program-p)
Chris@69 1063 ac_prev=program_prefix ;;
Chris@69 1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \
Chris@69 1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Chris@69 1066 program_prefix=$ac_optarg ;;
Chris@69 1067
Chris@69 1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \
Chris@69 1069 | --program-suf | --program-su | --program-s)
Chris@69 1070 ac_prev=program_suffix ;;
Chris@69 1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \
Chris@69 1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Chris@69 1073 program_suffix=$ac_optarg ;;
Chris@69 1074
Chris@69 1075 -program-transform-name | --program-transform-name \
Chris@69 1076 | --program-transform-nam | --program-transform-na \
Chris@69 1077 | --program-transform-n | --program-transform- \
Chris@69 1078 | --program-transform | --program-transfor \
Chris@69 1079 | --program-transfo | --program-transf \
Chris@69 1080 | --program-trans | --program-tran \
Chris@69 1081 | --progr-tra | --program-tr | --program-t)
Chris@69 1082 ac_prev=program_transform_name ;;
Chris@69 1083 -program-transform-name=* | --program-transform-name=* \
Chris@69 1084 | --program-transform-nam=* | --program-transform-na=* \
Chris@69 1085 | --program-transform-n=* | --program-transform-=* \
Chris@69 1086 | --program-transform=* | --program-transfor=* \
Chris@69 1087 | --program-transfo=* | --program-transf=* \
Chris@69 1088 | --program-trans=* | --program-tran=* \
Chris@69 1089 | --progr-tra=* | --program-tr=* | --program-t=*)
Chris@69 1090 program_transform_name=$ac_optarg ;;
Chris@69 1091
Chris@69 1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
Chris@69 1093 ac_prev=pdfdir ;;
Chris@69 1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
Chris@69 1095 pdfdir=$ac_optarg ;;
Chris@69 1096
Chris@69 1097 -psdir | --psdir | --psdi | --psd | --ps)
Chris@69 1098 ac_prev=psdir ;;
Chris@69 1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
Chris@69 1100 psdir=$ac_optarg ;;
Chris@69 1101
Chris@69 1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@69 1103 | -silent | --silent | --silen | --sile | --sil)
Chris@69 1104 silent=yes ;;
Chris@69 1105
Chris@69 1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
Chris@69 1107 ac_prev=sbindir ;;
Chris@69 1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
Chris@69 1109 | --sbi=* | --sb=*)
Chris@69 1110 sbindir=$ac_optarg ;;
Chris@69 1111
Chris@69 1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
Chris@69 1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
Chris@69 1114 | --sharedst | --shareds | --shared | --share | --shar \
Chris@69 1115 | --sha | --sh)
Chris@69 1116 ac_prev=sharedstatedir ;;
Chris@69 1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
Chris@69 1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
Chris@69 1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
Chris@69 1120 | --sha=* | --sh=*)
Chris@69 1121 sharedstatedir=$ac_optarg ;;
Chris@69 1122
Chris@69 1123 -site | --site | --sit)
Chris@69 1124 ac_prev=site ;;
Chris@69 1125 -site=* | --site=* | --sit=*)
Chris@69 1126 site=$ac_optarg ;;
Chris@69 1127
Chris@69 1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
Chris@69 1129 ac_prev=srcdir ;;
Chris@69 1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Chris@69 1131 srcdir=$ac_optarg ;;
Chris@69 1132
Chris@69 1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
Chris@69 1134 | --syscon | --sysco | --sysc | --sys | --sy)
Chris@69 1135 ac_prev=sysconfdir ;;
Chris@69 1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
Chris@69 1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Chris@69 1138 sysconfdir=$ac_optarg ;;
Chris@69 1139
Chris@69 1140 -target | --target | --targe | --targ | --tar | --ta | --t)
Chris@69 1141 ac_prev=target_alias ;;
Chris@69 1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Chris@69 1143 target_alias=$ac_optarg ;;
Chris@69 1144
Chris@69 1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
Chris@69 1146 verbose=yes ;;
Chris@69 1147
Chris@69 1148 -version | --version | --versio | --versi | --vers | -V)
Chris@69 1149 ac_init_version=: ;;
Chris@69 1150
Chris@69 1151 -with-* | --with-*)
Chris@69 1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Chris@69 1153 # Reject names that are not valid shell variable names.
Chris@69 1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@69 1155 as_fn_error $? "invalid package name: $ac_useropt"
Chris@69 1156 ac_useropt_orig=$ac_useropt
Chris@69 1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@69 1158 case $ac_user_opts in
Chris@69 1159 *"
Chris@69 1160 "with_$ac_useropt"
Chris@69 1161 "*) ;;
Chris@69 1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
Chris@69 1163 ac_unrecognized_sep=', ';;
Chris@69 1164 esac
Chris@69 1165 eval with_$ac_useropt=\$ac_optarg ;;
Chris@69 1166
Chris@69 1167 -without-* | --without-*)
Chris@69 1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Chris@69 1169 # Reject names that are not valid shell variable names.
Chris@69 1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@69 1171 as_fn_error $? "invalid package name: $ac_useropt"
Chris@69 1172 ac_useropt_orig=$ac_useropt
Chris@69 1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@69 1174 case $ac_user_opts in
Chris@69 1175 *"
Chris@69 1176 "with_$ac_useropt"
Chris@69 1177 "*) ;;
Chris@69 1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
Chris@69 1179 ac_unrecognized_sep=', ';;
Chris@69 1180 esac
Chris@69 1181 eval with_$ac_useropt=no ;;
Chris@69 1182
Chris@69 1183 --x)
Chris@69 1184 # Obsolete; use --with-x.
Chris@69 1185 with_x=yes ;;
Chris@69 1186
Chris@69 1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
Chris@69 1188 | --x-incl | --x-inc | --x-in | --x-i)
Chris@69 1189 ac_prev=x_includes ;;
Chris@69 1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
Chris@69 1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Chris@69 1192 x_includes=$ac_optarg ;;
Chris@69 1193
Chris@69 1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \
Chris@69 1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
Chris@69 1196 ac_prev=x_libraries ;;
Chris@69 1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
Chris@69 1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Chris@69 1199 x_libraries=$ac_optarg ;;
Chris@69 1200
Chris@69 1201 -*) as_fn_error $? "unrecognized option: \`$ac_option'
Chris@69 1202 Try \`$0 --help' for more information"
Chris@69 1203 ;;
Chris@69 1204
Chris@69 1205 *=*)
Chris@69 1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
Chris@69 1207 # Reject names that are not valid shell variable names.
Chris@69 1208 case $ac_envvar in #(
Chris@69 1209 '' | [0-9]* | *[!_$as_cr_alnum]* )
Chris@69 1210 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Chris@69 1211 esac
Chris@69 1212 eval $ac_envvar=\$ac_optarg
Chris@69 1213 export $ac_envvar ;;
Chris@69 1214
Chris@69 1215 *)
Chris@69 1216 # FIXME: should be removed in autoconf 3.0.
Chris@69 1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Chris@69 1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Chris@69 1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Chris@69 1220 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Chris@69 1221 ;;
Chris@69 1222
Chris@69 1223 esac
Chris@69 1224 done
Chris@69 1225
Chris@69 1226 if test -n "$ac_prev"; then
Chris@69 1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Chris@69 1228 as_fn_error $? "missing argument to $ac_option"
Chris@69 1229 fi
Chris@69 1230
Chris@69 1231 if test -n "$ac_unrecognized_opts"; then
Chris@69 1232 case $enable_option_checking in
Chris@69 1233 no) ;;
Chris@69 1234 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Chris@69 1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Chris@69 1236 esac
Chris@69 1237 fi
Chris@69 1238
Chris@69 1239 # Check all directory arguments for consistency.
Chris@69 1240 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
Chris@69 1241 datadir sysconfdir sharedstatedir localstatedir includedir \
Chris@69 1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Chris@69 1243 libdir localedir mandir
Chris@69 1244 do
Chris@69 1245 eval ac_val=\$$ac_var
Chris@69 1246 # Remove trailing slashes.
Chris@69 1247 case $ac_val in
Chris@69 1248 */ )
Chris@69 1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
Chris@69 1250 eval $ac_var=\$ac_val;;
Chris@69 1251 esac
Chris@69 1252 # Be sure to have absolute directory names.
Chris@69 1253 case $ac_val in
Chris@69 1254 [\\/$]* | ?:[\\/]* ) continue;;
Chris@69 1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Chris@69 1256 esac
Chris@69 1257 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Chris@69 1258 done
Chris@69 1259
Chris@69 1260 # There might be people who depend on the old broken behavior: `$host'
Chris@69 1261 # used to hold the argument of --host etc.
Chris@69 1262 # FIXME: To remove some day.
Chris@69 1263 build=$build_alias
Chris@69 1264 host=$host_alias
Chris@69 1265 target=$target_alias
Chris@69 1266
Chris@69 1267 # FIXME: To remove some day.
Chris@69 1268 if test "x$host_alias" != x; then
Chris@69 1269 if test "x$build_alias" = x; then
Chris@69 1270 cross_compiling=maybe
Chris@69 1271 elif test "x$build_alias" != "x$host_alias"; then
Chris@69 1272 cross_compiling=yes
Chris@69 1273 fi
Chris@69 1274 fi
Chris@69 1275
Chris@69 1276 ac_tool_prefix=
Chris@69 1277 test -n "$host_alias" && ac_tool_prefix=$host_alias-
Chris@69 1278
Chris@69 1279 test "$silent" = yes && exec 6>/dev/null
Chris@69 1280
Chris@69 1281
Chris@69 1282 ac_pwd=`pwd` && test -n "$ac_pwd" &&
Chris@69 1283 ac_ls_di=`ls -di .` &&
Chris@69 1284 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Chris@69 1285 as_fn_error $? "working directory cannot be determined"
Chris@69 1286 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Chris@69 1287 as_fn_error $? "pwd does not report name of working directory"
Chris@69 1288
Chris@69 1289
Chris@69 1290 # Find the source files, if location was not specified.
Chris@69 1291 if test -z "$srcdir"; then
Chris@69 1292 ac_srcdir_defaulted=yes
Chris@69 1293 # Try the directory containing this script, then the parent directory.
Chris@69 1294 ac_confdir=`$as_dirname -- "$as_myself" ||
Chris@69 1295 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@69 1296 X"$as_myself" : 'X\(//\)[^/]' \| \
Chris@69 1297 X"$as_myself" : 'X\(//\)$' \| \
Chris@69 1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
Chris@69 1299 $as_echo X"$as_myself" |
Chris@69 1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@69 1301 s//\1/
Chris@69 1302 q
Chris@69 1303 }
Chris@69 1304 /^X\(\/\/\)[^/].*/{
Chris@69 1305 s//\1/
Chris@69 1306 q
Chris@69 1307 }
Chris@69 1308 /^X\(\/\/\)$/{
Chris@69 1309 s//\1/
Chris@69 1310 q
Chris@69 1311 }
Chris@69 1312 /^X\(\/\).*/{
Chris@69 1313 s//\1/
Chris@69 1314 q
Chris@69 1315 }
Chris@69 1316 s/.*/./; q'`
Chris@69 1317 srcdir=$ac_confdir
Chris@69 1318 if test ! -r "$srcdir/$ac_unique_file"; then
Chris@69 1319 srcdir=..
Chris@69 1320 fi
Chris@69 1321 else
Chris@69 1322 ac_srcdir_defaulted=no
Chris@69 1323 fi
Chris@69 1324 if test ! -r "$srcdir/$ac_unique_file"; then
Chris@69 1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Chris@69 1326 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Chris@69 1327 fi
Chris@69 1328 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
Chris@69 1329 ac_abs_confdir=`(
Chris@69 1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Chris@69 1331 pwd)`
Chris@69 1332 # When building in place, set srcdir=.
Chris@69 1333 if test "$ac_abs_confdir" = "$ac_pwd"; then
Chris@69 1334 srcdir=.
Chris@69 1335 fi
Chris@69 1336 # Remove unnecessary trailing slashes from srcdir.
Chris@69 1337 # Double slashes in file names in object file debugging info
Chris@69 1338 # mess up M-x gdb in Emacs.
Chris@69 1339 case $srcdir in
Chris@69 1340 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
Chris@69 1341 esac
Chris@69 1342 for ac_var in $ac_precious_vars; do
Chris@69 1343 eval ac_env_${ac_var}_set=\${${ac_var}+set}
Chris@69 1344 eval ac_env_${ac_var}_value=\$${ac_var}
Chris@69 1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
Chris@69 1346 eval ac_cv_env_${ac_var}_value=\$${ac_var}
Chris@69 1347 done
Chris@69 1348
Chris@69 1349 #
Chris@69 1350 # Report the --help message.
Chris@69 1351 #
Chris@69 1352 if test "$ac_init_help" = "long"; then
Chris@69 1353 # Omit some internal or obsolete options to make the list less imposing.
Chris@69 1354 # This message is too long to be a string in the A/UX 3.1 sh.
Chris@69 1355 cat <<_ACEOF
Chris@69 1356 \`configure' configures opusfile 0.9 to adapt to many kinds of systems.
Chris@69 1357
Chris@69 1358 Usage: $0 [OPTION]... [VAR=VALUE]...
Chris@69 1359
Chris@69 1360 To assign environment variables (e.g., CC, CFLAGS...), specify them as
Chris@69 1361 VAR=VALUE. See below for descriptions of some of the useful variables.
Chris@69 1362
Chris@69 1363 Defaults for the options are specified in brackets.
Chris@69 1364
Chris@69 1365 Configuration:
Chris@69 1366 -h, --help display this help and exit
Chris@69 1367 --help=short display options specific to this package
Chris@69 1368 --help=recursive display the short help of all the included packages
Chris@69 1369 -V, --version display version information and exit
Chris@69 1370 -q, --quiet, --silent do not print \`checking ...' messages
Chris@69 1371 --cache-file=FILE cache test results in FILE [disabled]
Chris@69 1372 -C, --config-cache alias for \`--cache-file=config.cache'
Chris@69 1373 -n, --no-create do not create output files
Chris@69 1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
Chris@69 1375
Chris@69 1376 Installation directories:
Chris@69 1377 --prefix=PREFIX install architecture-independent files in PREFIX
Chris@69 1378 [$ac_default_prefix]
Chris@69 1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Chris@69 1380 [PREFIX]
Chris@69 1381
Chris@69 1382 By default, \`make install' will install all the files in
Chris@69 1383 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
Chris@69 1384 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
Chris@69 1385 for instance \`--prefix=\$HOME'.
Chris@69 1386
Chris@69 1387 For better control, use the options below.
Chris@69 1388
Chris@69 1389 Fine tuning of the installation directories:
Chris@69 1390 --bindir=DIR user executables [EPREFIX/bin]
Chris@69 1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
Chris@69 1392 --libexecdir=DIR program executables [EPREFIX/libexec]
Chris@69 1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
Chris@69 1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
Chris@69 1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Chris@69 1396 --libdir=DIR object code libraries [EPREFIX/lib]
Chris@69 1397 --includedir=DIR C header files [PREFIX/include]
Chris@69 1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Chris@69 1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
Chris@69 1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
Chris@69 1401 --infodir=DIR info documentation [DATAROOTDIR/info]
Chris@69 1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
Chris@69 1403 --mandir=DIR man documentation [DATAROOTDIR/man]
Chris@69 1404 --docdir=DIR documentation root [DATAROOTDIR/doc/opusfile]
Chris@69 1405 --htmldir=DIR html documentation [DOCDIR]
Chris@69 1406 --dvidir=DIR dvi documentation [DOCDIR]
Chris@69 1407 --pdfdir=DIR pdf documentation [DOCDIR]
Chris@69 1408 --psdir=DIR ps documentation [DOCDIR]
Chris@69 1409 _ACEOF
Chris@69 1410
Chris@69 1411 cat <<\_ACEOF
Chris@69 1412
Chris@69 1413 Program names:
Chris@69 1414 --program-prefix=PREFIX prepend PREFIX to installed program names
Chris@69 1415 --program-suffix=SUFFIX append SUFFIX to installed program names
Chris@69 1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
Chris@69 1417
Chris@69 1418 System types:
Chris@69 1419 --build=BUILD configure for building on BUILD [guessed]
Chris@69 1420 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Chris@69 1421 _ACEOF
Chris@69 1422 fi
Chris@69 1423
Chris@69 1424 if test -n "$ac_init_help"; then
Chris@69 1425 case $ac_init_help in
Chris@69 1426 short | recursive ) echo "Configuration of opusfile 0.9:";;
Chris@69 1427 esac
Chris@69 1428 cat <<\_ACEOF
Chris@69 1429
Chris@69 1430 Optional Features:
Chris@69 1431 --disable-option-checking ignore unrecognized --enable/--with options
Chris@69 1432 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
Chris@69 1433 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Chris@69 1434 --disable-largefile omit support for large files
Chris@69 1435 --enable-dependency-tracking
Chris@69 1436 do not reject slow dependency extractors
Chris@69 1437 --disable-dependency-tracking
Chris@69 1438 speeds up one-time build
Chris@69 1439 --enable-silent-rules less verbose build output (undo: "make V=1")
Chris@69 1440 --disable-silent-rules verbose build output (undo: "make V=0")
Chris@69 1441 --disable-maintainer-mode
Chris@69 1442 disable make rules and dependencies not useful (and
Chris@69 1443 sometimes confusing) to the casual installer
Chris@69 1444 --enable-shared[=PKGS] build shared libraries [default=yes]
Chris@69 1445 --enable-static[=PKGS] build static libraries [default=yes]
Chris@69 1446 --enable-fast-install[=PKGS]
Chris@69 1447 optimize for fast installation [default=yes]
Chris@69 1448 --disable-libtool-lock avoid locking (might break parallel builds)
Chris@69 1449 --enable-assertions Enable assertions in code
Chris@69 1450 --disable-http Disable HTTP support
Chris@69 1451 --enable-fixed-point Enable fixed-point calculation
Chris@69 1452 --disable-float Disable floating-point API
Chris@69 1453 --disable-examples Do not build example applications
Chris@69 1454 --disable-doc Do not build API documentation
Chris@69 1455
Chris@69 1456 Optional Packages:
Chris@69 1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
Chris@69 1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Chris@69 1459 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
Chris@69 1460 both]
Chris@69 1461 --with-aix-soname=aix|svr4|both
Chris@69 1462 shared library versioning (aka "SONAME") variant to
Chris@69 1463 provide on AIX, [default=aix].
Chris@69 1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Chris@69 1465 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
Chris@69 1466 compiler's sysroot if not specified).
Chris@69 1467
Chris@69 1468 Some influential environment variables:
Chris@69 1469 CC C compiler command
Chris@69 1470 CFLAGS C compiler flags
Chris@69 1471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
Chris@69 1472 nonstandard directory <lib dir>
Chris@69 1473 LIBS libraries to pass to the linker, e.g. -l<library>
Chris@69 1474 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Chris@69 1475 you have headers in a nonstandard directory <include dir>
Chris@69 1476 CPP C preprocessor
Chris@69 1477 LT_SYS_LIBRARY_PATH
Chris@69 1478 User-defined run-time library search path.
Chris@69 1479 PKG_CONFIG path to pkg-config utility
Chris@69 1480 PKG_CONFIG_PATH
Chris@69 1481 directories to add to pkg-config's search path
Chris@69 1482 PKG_CONFIG_LIBDIR
Chris@69 1483 path overriding pkg-config's built-in search path
Chris@69 1484 URL_DEPS_CFLAGS
Chris@69 1485 C compiler flags for URL_DEPS, overriding pkg-config
Chris@69 1486 URL_DEPS_LIBS
Chris@69 1487 linker flags for URL_DEPS, overriding pkg-config
Chris@69 1488 DEPS_CFLAGS C compiler flags for DEPS, overriding pkg-config
Chris@69 1489 DEPS_LIBS linker flags for DEPS, overriding pkg-config
Chris@69 1490
Chris@69 1491 Use these variables to override the choices made by `configure' or to help
Chris@69 1492 it to find libraries and programs with nonstandard names/locations.
Chris@69 1493
Chris@69 1494 Report bugs to <opus@xiph.org>.
Chris@69 1495 _ACEOF
Chris@69 1496 ac_status=$?
Chris@69 1497 fi
Chris@69 1498
Chris@69 1499 if test "$ac_init_help" = "recursive"; then
Chris@69 1500 # If there are subdirs, report their specific --help.
Chris@69 1501 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Chris@69 1502 test -d "$ac_dir" ||
Chris@69 1503 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
Chris@69 1504 continue
Chris@69 1505 ac_builddir=.
Chris@69 1506
Chris@69 1507 case "$ac_dir" in
Chris@69 1508 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@69 1509 *)
Chris@69 1510 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Chris@69 1511 # A ".." for each directory in $ac_dir_suffix.
Chris@69 1512 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Chris@69 1513 case $ac_top_builddir_sub in
Chris@69 1514 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@69 1515 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@69 1516 esac ;;
Chris@69 1517 esac
Chris@69 1518 ac_abs_top_builddir=$ac_pwd
Chris@69 1519 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@69 1520 # for backward compatibility:
Chris@69 1521 ac_top_builddir=$ac_top_build_prefix
Chris@69 1522
Chris@69 1523 case $srcdir in
Chris@69 1524 .) # We are building in place.
Chris@69 1525 ac_srcdir=.
Chris@69 1526 ac_top_srcdir=$ac_top_builddir_sub
Chris@69 1527 ac_abs_top_srcdir=$ac_pwd ;;
Chris@69 1528 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@69 1529 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@69 1530 ac_top_srcdir=$srcdir
Chris@69 1531 ac_abs_top_srcdir=$srcdir ;;
Chris@69 1532 *) # Relative name.
Chris@69 1533 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@69 1534 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@69 1535 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@69 1536 esac
Chris@69 1537 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@69 1538
Chris@69 1539 cd "$ac_dir" || { ac_status=$?; continue; }
Chris@69 1540 # Check for guested configure.
Chris@69 1541 if test -f "$ac_srcdir/configure.gnu"; then
Chris@69 1542 echo &&
Chris@69 1543 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
Chris@69 1544 elif test -f "$ac_srcdir/configure"; then
Chris@69 1545 echo &&
Chris@69 1546 $SHELL "$ac_srcdir/configure" --help=recursive
Chris@69 1547 else
Chris@69 1548 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Chris@69 1549 fi || ac_status=$?
Chris@69 1550 cd "$ac_pwd" || { ac_status=$?; break; }
Chris@69 1551 done
Chris@69 1552 fi
Chris@69 1553
Chris@69 1554 test -n "$ac_init_help" && exit $ac_status
Chris@69 1555 if $ac_init_version; then
Chris@69 1556 cat <<\_ACEOF
Chris@69 1557 opusfile configure 0.9
Chris@69 1558 generated by GNU Autoconf 2.69
Chris@69 1559
Chris@69 1560 Copyright (C) 2012 Free Software Foundation, Inc.
Chris@69 1561 This configure script is free software; the Free Software Foundation
Chris@69 1562 gives unlimited permission to copy, distribute and modify it.
Chris@69 1563 _ACEOF
Chris@69 1564 exit
Chris@69 1565 fi
Chris@69 1566
Chris@69 1567 ## ------------------------ ##
Chris@69 1568 ## Autoconf initialization. ##
Chris@69 1569 ## ------------------------ ##
Chris@69 1570
Chris@69 1571 # ac_fn_c_try_compile LINENO
Chris@69 1572 # --------------------------
Chris@69 1573 # Try to compile conftest.$ac_ext, and return whether this succeeded.
Chris@69 1574 ac_fn_c_try_compile ()
Chris@69 1575 {
Chris@69 1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@69 1577 rm -f conftest.$ac_objext
Chris@69 1578 if { { ac_try="$ac_compile"
Chris@69 1579 case "(($ac_try" in
Chris@69 1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@69 1581 *) ac_try_echo=$ac_try;;
Chris@69 1582 esac
Chris@69 1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@69 1584 $as_echo "$ac_try_echo"; } >&5
Chris@69 1585 (eval "$ac_compile") 2>conftest.err
Chris@69 1586 ac_status=$?
Chris@69 1587 if test -s conftest.err; then
Chris@69 1588 grep -v '^ *+' conftest.err >conftest.er1
Chris@69 1589 cat conftest.er1 >&5
Chris@69 1590 mv -f conftest.er1 conftest.err
Chris@69 1591 fi
Chris@69 1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 1593 test $ac_status = 0; } && {
Chris@69 1594 test -z "$ac_c_werror_flag" ||
Chris@69 1595 test ! -s conftest.err
Chris@69 1596 } && test -s conftest.$ac_objext; then :
Chris@69 1597 ac_retval=0
Chris@69 1598 else
Chris@69 1599 $as_echo "$as_me: failed program was:" >&5
Chris@69 1600 sed 's/^/| /' conftest.$ac_ext >&5
Chris@69 1601
Chris@69 1602 ac_retval=1
Chris@69 1603 fi
Chris@69 1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@69 1605 as_fn_set_status $ac_retval
Chris@69 1606
Chris@69 1607 } # ac_fn_c_try_compile
Chris@69 1608
Chris@69 1609 # ac_fn_c_try_cpp LINENO
Chris@69 1610 # ----------------------
Chris@69 1611 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
Chris@69 1612 ac_fn_c_try_cpp ()
Chris@69 1613 {
Chris@69 1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@69 1615 if { { ac_try="$ac_cpp conftest.$ac_ext"
Chris@69 1616 case "(($ac_try" in
Chris@69 1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@69 1618 *) ac_try_echo=$ac_try;;
Chris@69 1619 esac
Chris@69 1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@69 1621 $as_echo "$ac_try_echo"; } >&5
Chris@69 1622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
Chris@69 1623 ac_status=$?
Chris@69 1624 if test -s conftest.err; then
Chris@69 1625 grep -v '^ *+' conftest.err >conftest.er1
Chris@69 1626 cat conftest.er1 >&5
Chris@69 1627 mv -f conftest.er1 conftest.err
Chris@69 1628 fi
Chris@69 1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 1630 test $ac_status = 0; } > conftest.i && {
Chris@69 1631 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
Chris@69 1632 test ! -s conftest.err
Chris@69 1633 }; then :
Chris@69 1634 ac_retval=0
Chris@69 1635 else
Chris@69 1636 $as_echo "$as_me: failed program was:" >&5
Chris@69 1637 sed 's/^/| /' conftest.$ac_ext >&5
Chris@69 1638
Chris@69 1639 ac_retval=1
Chris@69 1640 fi
Chris@69 1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@69 1642 as_fn_set_status $ac_retval
Chris@69 1643
Chris@69 1644 } # ac_fn_c_try_cpp
Chris@69 1645
Chris@69 1646 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
Chris@69 1647 # -------------------------------------------------------
Chris@69 1648 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
Chris@69 1649 # the include files in INCLUDES and setting the cache variable VAR
Chris@69 1650 # accordingly.
Chris@69 1651 ac_fn_c_check_header_mongrel ()
Chris@69 1652 {
Chris@69 1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@69 1654 if eval \${$3+:} false; then :
Chris@69 1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@69 1656 $as_echo_n "checking for $2... " >&6; }
Chris@69 1657 if eval \${$3+:} false; then :
Chris@69 1658 $as_echo_n "(cached) " >&6
Chris@69 1659 fi
Chris@69 1660 eval ac_res=\$$3
Chris@69 1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@69 1662 $as_echo "$ac_res" >&6; }
Chris@69 1663 else
Chris@69 1664 # Is the header compilable?
Chris@69 1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
Chris@69 1666 $as_echo_n "checking $2 usability... " >&6; }
Chris@69 1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 1668 /* end confdefs.h. */
Chris@69 1669 $4
Chris@69 1670 #include <$2>
Chris@69 1671 _ACEOF
Chris@69 1672 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 1673 ac_header_compiler=yes
Chris@69 1674 else
Chris@69 1675 ac_header_compiler=no
Chris@69 1676 fi
Chris@69 1677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
Chris@69 1679 $as_echo "$ac_header_compiler" >&6; }
Chris@69 1680
Chris@69 1681 # Is the header present?
Chris@69 1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
Chris@69 1683 $as_echo_n "checking $2 presence... " >&6; }
Chris@69 1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 1685 /* end confdefs.h. */
Chris@69 1686 #include <$2>
Chris@69 1687 _ACEOF
Chris@69 1688 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@69 1689 ac_header_preproc=yes
Chris@69 1690 else
Chris@69 1691 ac_header_preproc=no
Chris@69 1692 fi
Chris@69 1693 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@69 1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
Chris@69 1695 $as_echo "$ac_header_preproc" >&6; }
Chris@69 1696
Chris@69 1697 # So? What about this header?
Chris@69 1698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
Chris@69 1699 yes:no: )
Chris@69 1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
Chris@69 1701 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
Chris@69 1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
Chris@69 1703 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Chris@69 1704 ;;
Chris@69 1705 no:yes:* )
Chris@69 1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
Chris@69 1707 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
Chris@69 1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
Chris@69 1709 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
Chris@69 1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
Chris@69 1711 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
Chris@69 1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
Chris@69 1713 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
Chris@69 1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
Chris@69 1715 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Chris@69 1716 ( $as_echo "## ---------------------------- ##
Chris@69 1717 ## Report this to opus@xiph.org ##
Chris@69 1718 ## ---------------------------- ##"
Chris@69 1719 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris@69 1720 ;;
Chris@69 1721 esac
Chris@69 1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@69 1723 $as_echo_n "checking for $2... " >&6; }
Chris@69 1724 if eval \${$3+:} false; then :
Chris@69 1725 $as_echo_n "(cached) " >&6
Chris@69 1726 else
Chris@69 1727 eval "$3=\$ac_header_compiler"
Chris@69 1728 fi
Chris@69 1729 eval ac_res=\$$3
Chris@69 1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@69 1731 $as_echo "$ac_res" >&6; }
Chris@69 1732 fi
Chris@69 1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@69 1734
Chris@69 1735 } # ac_fn_c_check_header_mongrel
Chris@69 1736
Chris@69 1737 # ac_fn_c_try_run LINENO
Chris@69 1738 # ----------------------
Chris@69 1739 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
Chris@69 1740 # that executables *can* be run.
Chris@69 1741 ac_fn_c_try_run ()
Chris@69 1742 {
Chris@69 1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@69 1744 if { { ac_try="$ac_link"
Chris@69 1745 case "(($ac_try" in
Chris@69 1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@69 1747 *) ac_try_echo=$ac_try;;
Chris@69 1748 esac
Chris@69 1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@69 1750 $as_echo "$ac_try_echo"; } >&5
Chris@69 1751 (eval "$ac_link") 2>&5
Chris@69 1752 ac_status=$?
Chris@69 1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 1754 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
Chris@69 1755 { { case "(($ac_try" in
Chris@69 1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@69 1757 *) ac_try_echo=$ac_try;;
Chris@69 1758 esac
Chris@69 1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@69 1760 $as_echo "$ac_try_echo"; } >&5
Chris@69 1761 (eval "$ac_try") 2>&5
Chris@69 1762 ac_status=$?
Chris@69 1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 1764 test $ac_status = 0; }; }; then :
Chris@69 1765 ac_retval=0
Chris@69 1766 else
Chris@69 1767 $as_echo "$as_me: program exited with status $ac_status" >&5
Chris@69 1768 $as_echo "$as_me: failed program was:" >&5
Chris@69 1769 sed 's/^/| /' conftest.$ac_ext >&5
Chris@69 1770
Chris@69 1771 ac_retval=$ac_status
Chris@69 1772 fi
Chris@69 1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@69 1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@69 1775 as_fn_set_status $ac_retval
Chris@69 1776
Chris@69 1777 } # ac_fn_c_try_run
Chris@69 1778
Chris@69 1779 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
Chris@69 1780 # -------------------------------------------------------
Chris@69 1781 # Tests whether HEADER exists and can be compiled using the include files in
Chris@69 1782 # INCLUDES, setting the cache variable VAR accordingly.
Chris@69 1783 ac_fn_c_check_header_compile ()
Chris@69 1784 {
Chris@69 1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@69 1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@69 1787 $as_echo_n "checking for $2... " >&6; }
Chris@69 1788 if eval \${$3+:} false; then :
Chris@69 1789 $as_echo_n "(cached) " >&6
Chris@69 1790 else
Chris@69 1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 1792 /* end confdefs.h. */
Chris@69 1793 $4
Chris@69 1794 #include <$2>
Chris@69 1795 _ACEOF
Chris@69 1796 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 1797 eval "$3=yes"
Chris@69 1798 else
Chris@69 1799 eval "$3=no"
Chris@69 1800 fi
Chris@69 1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 1802 fi
Chris@69 1803 eval ac_res=\$$3
Chris@69 1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@69 1805 $as_echo "$ac_res" >&6; }
Chris@69 1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@69 1807
Chris@69 1808 } # ac_fn_c_check_header_compile
Chris@69 1809
Chris@69 1810 # ac_fn_c_try_link LINENO
Chris@69 1811 # -----------------------
Chris@69 1812 # Try to link conftest.$ac_ext, and return whether this succeeded.
Chris@69 1813 ac_fn_c_try_link ()
Chris@69 1814 {
Chris@69 1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@69 1816 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@69 1817 if { { ac_try="$ac_link"
Chris@69 1818 case "(($ac_try" in
Chris@69 1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@69 1820 *) ac_try_echo=$ac_try;;
Chris@69 1821 esac
Chris@69 1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@69 1823 $as_echo "$ac_try_echo"; } >&5
Chris@69 1824 (eval "$ac_link") 2>conftest.err
Chris@69 1825 ac_status=$?
Chris@69 1826 if test -s conftest.err; then
Chris@69 1827 grep -v '^ *+' conftest.err >conftest.er1
Chris@69 1828 cat conftest.er1 >&5
Chris@69 1829 mv -f conftest.er1 conftest.err
Chris@69 1830 fi
Chris@69 1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 1832 test $ac_status = 0; } && {
Chris@69 1833 test -z "$ac_c_werror_flag" ||
Chris@69 1834 test ! -s conftest.err
Chris@69 1835 } && test -s conftest$ac_exeext && {
Chris@69 1836 test "$cross_compiling" = yes ||
Chris@69 1837 test -x conftest$ac_exeext
Chris@69 1838 }; then :
Chris@69 1839 ac_retval=0
Chris@69 1840 else
Chris@69 1841 $as_echo "$as_me: failed program was:" >&5
Chris@69 1842 sed 's/^/| /' conftest.$ac_ext >&5
Chris@69 1843
Chris@69 1844 ac_retval=1
Chris@69 1845 fi
Chris@69 1846 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
Chris@69 1847 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
Chris@69 1848 # interfere with the next link command; also delete a directory that is
Chris@69 1849 # left behind by Apple's compiler. We do this before executing the actions.
Chris@69 1850 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@69 1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@69 1852 as_fn_set_status $ac_retval
Chris@69 1853
Chris@69 1854 } # ac_fn_c_try_link
Chris@69 1855
Chris@69 1856 # ac_fn_c_check_func LINENO FUNC VAR
Chris@69 1857 # ----------------------------------
Chris@69 1858 # Tests whether FUNC exists, setting the cache variable VAR accordingly
Chris@69 1859 ac_fn_c_check_func ()
Chris@69 1860 {
Chris@69 1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@69 1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@69 1863 $as_echo_n "checking for $2... " >&6; }
Chris@69 1864 if eval \${$3+:} false; then :
Chris@69 1865 $as_echo_n "(cached) " >&6
Chris@69 1866 else
Chris@69 1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 1868 /* end confdefs.h. */
Chris@69 1869 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
Chris@69 1870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
Chris@69 1871 #define $2 innocuous_$2
Chris@69 1872
Chris@69 1873 /* System header to define __stub macros and hopefully few prototypes,
Chris@69 1874 which can conflict with char $2 (); below.
Chris@69 1875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@69 1876 <limits.h> exists even on freestanding compilers. */
Chris@69 1877
Chris@69 1878 #ifdef __STDC__
Chris@69 1879 # include <limits.h>
Chris@69 1880 #else
Chris@69 1881 # include <assert.h>
Chris@69 1882 #endif
Chris@69 1883
Chris@69 1884 #undef $2
Chris@69 1885
Chris@69 1886 /* Override any GCC internal prototype to avoid an error.
Chris@69 1887 Use char because int might match the return type of a GCC
Chris@69 1888 builtin and then its argument prototype would still apply. */
Chris@69 1889 #ifdef __cplusplus
Chris@69 1890 extern "C"
Chris@69 1891 #endif
Chris@69 1892 char $2 ();
Chris@69 1893 /* The GNU C library defines this for functions which it implements
Chris@69 1894 to always fail with ENOSYS. Some functions are actually named
Chris@69 1895 something starting with __ and the normal name is an alias. */
Chris@69 1896 #if defined __stub_$2 || defined __stub___$2
Chris@69 1897 choke me
Chris@69 1898 #endif
Chris@69 1899
Chris@69 1900 int
Chris@69 1901 main ()
Chris@69 1902 {
Chris@69 1903 return $2 ();
Chris@69 1904 ;
Chris@69 1905 return 0;
Chris@69 1906 }
Chris@69 1907 _ACEOF
Chris@69 1908 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 1909 eval "$3=yes"
Chris@69 1910 else
Chris@69 1911 eval "$3=no"
Chris@69 1912 fi
Chris@69 1913 rm -f core conftest.err conftest.$ac_objext \
Chris@69 1914 conftest$ac_exeext conftest.$ac_ext
Chris@69 1915 fi
Chris@69 1916 eval ac_res=\$$3
Chris@69 1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@69 1918 $as_echo "$ac_res" >&6; }
Chris@69 1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@69 1920
Chris@69 1921 } # ac_fn_c_check_func
Chris@69 1922 cat >config.log <<_ACEOF
Chris@69 1923 This file contains any messages produced by compilers while
Chris@69 1924 running configure, to aid debugging if configure makes a mistake.
Chris@69 1925
Chris@69 1926 It was created by opusfile $as_me 0.9, which was
Chris@69 1927 generated by GNU Autoconf 2.69. Invocation command line was
Chris@69 1928
Chris@69 1929 $ $0 $@
Chris@69 1930
Chris@69 1931 _ACEOF
Chris@69 1932 exec 5>>config.log
Chris@69 1933 {
Chris@69 1934 cat <<_ASUNAME
Chris@69 1935 ## --------- ##
Chris@69 1936 ## Platform. ##
Chris@69 1937 ## --------- ##
Chris@69 1938
Chris@69 1939 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@69 1940 uname -m = `(uname -m) 2>/dev/null || echo unknown`
Chris@69 1941 uname -r = `(uname -r) 2>/dev/null || echo unknown`
Chris@69 1942 uname -s = `(uname -s) 2>/dev/null || echo unknown`
Chris@69 1943 uname -v = `(uname -v) 2>/dev/null || echo unknown`
Chris@69 1944
Chris@69 1945 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
Chris@69 1946 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
Chris@69 1947
Chris@69 1948 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
Chris@69 1949 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
Chris@69 1950 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Chris@69 1951 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Chris@69 1952 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
Chris@69 1953 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
Chris@69 1954 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
Chris@69 1955
Chris@69 1956 _ASUNAME
Chris@69 1957
Chris@69 1958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 1959 for as_dir in $PATH
Chris@69 1960 do
Chris@69 1961 IFS=$as_save_IFS
Chris@69 1962 test -z "$as_dir" && as_dir=.
Chris@69 1963 $as_echo "PATH: $as_dir"
Chris@69 1964 done
Chris@69 1965 IFS=$as_save_IFS
Chris@69 1966
Chris@69 1967 } >&5
Chris@69 1968
Chris@69 1969 cat >&5 <<_ACEOF
Chris@69 1970
Chris@69 1971
Chris@69 1972 ## ----------- ##
Chris@69 1973 ## Core tests. ##
Chris@69 1974 ## ----------- ##
Chris@69 1975
Chris@69 1976 _ACEOF
Chris@69 1977
Chris@69 1978
Chris@69 1979 # Keep a trace of the command line.
Chris@69 1980 # Strip out --no-create and --no-recursion so they do not pile up.
Chris@69 1981 # Strip out --silent because we don't want to record it for future runs.
Chris@69 1982 # Also quote any args containing shell meta-characters.
Chris@69 1983 # Make two passes to allow for proper duplicate-argument suppression.
Chris@69 1984 ac_configure_args=
Chris@69 1985 ac_configure_args0=
Chris@69 1986 ac_configure_args1=
Chris@69 1987 ac_must_keep_next=false
Chris@69 1988 for ac_pass in 1 2
Chris@69 1989 do
Chris@69 1990 for ac_arg
Chris@69 1991 do
Chris@69 1992 case $ac_arg in
Chris@69 1993 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
Chris@69 1994 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@69 1995 | -silent | --silent | --silen | --sile | --sil)
Chris@69 1996 continue ;;
Chris@69 1997 *\'*)
Chris@69 1998 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@69 1999 esac
Chris@69 2000 case $ac_pass in
Chris@69 2001 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Chris@69 2002 2)
Chris@69 2003 as_fn_append ac_configure_args1 " '$ac_arg'"
Chris@69 2004 if test $ac_must_keep_next = true; then
Chris@69 2005 ac_must_keep_next=false # Got value, back to normal.
Chris@69 2006 else
Chris@69 2007 case $ac_arg in
Chris@69 2008 *=* | --config-cache | -C | -disable-* | --disable-* \
Chris@69 2009 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
Chris@69 2010 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
Chris@69 2011 | -with-* | --with-* | -without-* | --without-* | --x)
Chris@69 2012 case "$ac_configure_args0 " in
Chris@69 2013 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
Chris@69 2014 esac
Chris@69 2015 ;;
Chris@69 2016 -* ) ac_must_keep_next=true ;;
Chris@69 2017 esac
Chris@69 2018 fi
Chris@69 2019 as_fn_append ac_configure_args " '$ac_arg'"
Chris@69 2020 ;;
Chris@69 2021 esac
Chris@69 2022 done
Chris@69 2023 done
Chris@69 2024 { ac_configure_args0=; unset ac_configure_args0;}
Chris@69 2025 { ac_configure_args1=; unset ac_configure_args1;}
Chris@69 2026
Chris@69 2027 # When interrupted or exit'd, cleanup temporary files, and complete
Chris@69 2028 # config.log. We remove comments because anyway the quotes in there
Chris@69 2029 # would cause problems or look ugly.
Chris@69 2030 # WARNING: Use '\'' to represent an apostrophe within the trap.
Chris@69 2031 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Chris@69 2032 trap 'exit_status=$?
Chris@69 2033 # Save into config.log some information that might help in debugging.
Chris@69 2034 {
Chris@69 2035 echo
Chris@69 2036
Chris@69 2037 $as_echo "## ---------------- ##
Chris@69 2038 ## Cache variables. ##
Chris@69 2039 ## ---------------- ##"
Chris@69 2040 echo
Chris@69 2041 # The following way of writing the cache mishandles newlines in values,
Chris@69 2042 (
Chris@69 2043 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
Chris@69 2044 eval ac_val=\$$ac_var
Chris@69 2045 case $ac_val in #(
Chris@69 2046 *${as_nl}*)
Chris@69 2047 case $ac_var in #(
Chris@69 2048 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Chris@69 2049 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Chris@69 2050 esac
Chris@69 2051 case $ac_var in #(
Chris@69 2052 _ | IFS | as_nl) ;; #(
Chris@69 2053 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Chris@69 2054 *) { eval $ac_var=; unset $ac_var;} ;;
Chris@69 2055 esac ;;
Chris@69 2056 esac
Chris@69 2057 done
Chris@69 2058 (set) 2>&1 |
Chris@69 2059 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
Chris@69 2060 *${as_nl}ac_space=\ *)
Chris@69 2061 sed -n \
Chris@69 2062 "s/'\''/'\''\\\\'\'''\''/g;
Chris@69 2063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
Chris@69 2064 ;; #(
Chris@69 2065 *)
Chris@69 2066 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@69 2067 ;;
Chris@69 2068 esac |
Chris@69 2069 sort
Chris@69 2070 )
Chris@69 2071 echo
Chris@69 2072
Chris@69 2073 $as_echo "## ----------------- ##
Chris@69 2074 ## Output variables. ##
Chris@69 2075 ## ----------------- ##"
Chris@69 2076 echo
Chris@69 2077 for ac_var in $ac_subst_vars
Chris@69 2078 do
Chris@69 2079 eval ac_val=\$$ac_var
Chris@69 2080 case $ac_val in
Chris@69 2081 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Chris@69 2082 esac
Chris@69 2083 $as_echo "$ac_var='\''$ac_val'\''"
Chris@69 2084 done | sort
Chris@69 2085 echo
Chris@69 2086
Chris@69 2087 if test -n "$ac_subst_files"; then
Chris@69 2088 $as_echo "## ------------------- ##
Chris@69 2089 ## File substitutions. ##
Chris@69 2090 ## ------------------- ##"
Chris@69 2091 echo
Chris@69 2092 for ac_var in $ac_subst_files
Chris@69 2093 do
Chris@69 2094 eval ac_val=\$$ac_var
Chris@69 2095 case $ac_val in
Chris@69 2096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Chris@69 2097 esac
Chris@69 2098 $as_echo "$ac_var='\''$ac_val'\''"
Chris@69 2099 done | sort
Chris@69 2100 echo
Chris@69 2101 fi
Chris@69 2102
Chris@69 2103 if test -s confdefs.h; then
Chris@69 2104 $as_echo "## ----------- ##
Chris@69 2105 ## confdefs.h. ##
Chris@69 2106 ## ----------- ##"
Chris@69 2107 echo
Chris@69 2108 cat confdefs.h
Chris@69 2109 echo
Chris@69 2110 fi
Chris@69 2111 test "$ac_signal" != 0 &&
Chris@69 2112 $as_echo "$as_me: caught signal $ac_signal"
Chris@69 2113 $as_echo "$as_me: exit $exit_status"
Chris@69 2114 } >&5
Chris@69 2115 rm -f core *.core core.conftest.* &&
Chris@69 2116 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Chris@69 2117 exit $exit_status
Chris@69 2118 ' 0
Chris@69 2119 for ac_signal in 1 2 13 15; do
Chris@69 2120 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Chris@69 2121 done
Chris@69 2122 ac_signal=0
Chris@69 2123
Chris@69 2124 # confdefs.h avoids OS command line length limits that DEFS can exceed.
Chris@69 2125 rm -f -r conftest* confdefs.h
Chris@69 2126
Chris@69 2127 $as_echo "/* confdefs.h */" > confdefs.h
Chris@69 2128
Chris@69 2129 # Predefined preprocessor variables.
Chris@69 2130
Chris@69 2131 cat >>confdefs.h <<_ACEOF
Chris@69 2132 #define PACKAGE_NAME "$PACKAGE_NAME"
Chris@69 2133 _ACEOF
Chris@69 2134
Chris@69 2135 cat >>confdefs.h <<_ACEOF
Chris@69 2136 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
Chris@69 2137 _ACEOF
Chris@69 2138
Chris@69 2139 cat >>confdefs.h <<_ACEOF
Chris@69 2140 #define PACKAGE_VERSION "$PACKAGE_VERSION"
Chris@69 2141 _ACEOF
Chris@69 2142
Chris@69 2143 cat >>confdefs.h <<_ACEOF
Chris@69 2144 #define PACKAGE_STRING "$PACKAGE_STRING"
Chris@69 2145 _ACEOF
Chris@69 2146
Chris@69 2147 cat >>confdefs.h <<_ACEOF
Chris@69 2148 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Chris@69 2149 _ACEOF
Chris@69 2150
Chris@69 2151 cat >>confdefs.h <<_ACEOF
Chris@69 2152 #define PACKAGE_URL "$PACKAGE_URL"
Chris@69 2153 _ACEOF
Chris@69 2154
Chris@69 2155
Chris@69 2156 # Let the site file select an alternate cache file if it wants to.
Chris@69 2157 # Prefer an explicitly selected file to automatically selected ones.
Chris@69 2158 ac_site_file1=NONE
Chris@69 2159 ac_site_file2=NONE
Chris@69 2160 if test -n "$CONFIG_SITE"; then
Chris@69 2161 # We do not want a PATH search for config.site.
Chris@69 2162 case $CONFIG_SITE in #((
Chris@69 2163 -*) ac_site_file1=./$CONFIG_SITE;;
Chris@69 2164 */*) ac_site_file1=$CONFIG_SITE;;
Chris@69 2165 *) ac_site_file1=./$CONFIG_SITE;;
Chris@69 2166 esac
Chris@69 2167 elif test "x$prefix" != xNONE; then
Chris@69 2168 ac_site_file1=$prefix/share/config.site
Chris@69 2169 ac_site_file2=$prefix/etc/config.site
Chris@69 2170 else
Chris@69 2171 ac_site_file1=$ac_default_prefix/share/config.site
Chris@69 2172 ac_site_file2=$ac_default_prefix/etc/config.site
Chris@69 2173 fi
Chris@69 2174 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Chris@69 2175 do
Chris@69 2176 test "x$ac_site_file" = xNONE && continue
Chris@69 2177 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Chris@69 2178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Chris@69 2179 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
Chris@69 2180 sed 's/^/| /' "$ac_site_file" >&5
Chris@69 2181 . "$ac_site_file" \
Chris@69 2182 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@69 2183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@69 2184 as_fn_error $? "failed to load site script $ac_site_file
Chris@69 2185 See \`config.log' for more details" "$LINENO" 5; }
Chris@69 2186 fi
Chris@69 2187 done
Chris@69 2188
Chris@69 2189 if test -r "$cache_file"; then
Chris@69 2190 # Some versions of bash will fail to source /dev/null (special files
Chris@69 2191 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
Chris@69 2192 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Chris@69 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Chris@69 2194 $as_echo "$as_me: loading cache $cache_file" >&6;}
Chris@69 2195 case $cache_file in
Chris@69 2196 [\\/]* | ?:[\\/]* ) . "$cache_file";;
Chris@69 2197 *) . "./$cache_file";;
Chris@69 2198 esac
Chris@69 2199 fi
Chris@69 2200 else
Chris@69 2201 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Chris@69 2202 $as_echo "$as_me: creating cache $cache_file" >&6;}
Chris@69 2203 >$cache_file
Chris@69 2204 fi
Chris@69 2205
Chris@69 2206 # Check that the precious variables saved in the cache have kept the same
Chris@69 2207 # value.
Chris@69 2208 ac_cache_corrupted=false
Chris@69 2209 for ac_var in $ac_precious_vars; do
Chris@69 2210 eval ac_old_set=\$ac_cv_env_${ac_var}_set
Chris@69 2211 eval ac_new_set=\$ac_env_${ac_var}_set
Chris@69 2212 eval ac_old_val=\$ac_cv_env_${ac_var}_value
Chris@69 2213 eval ac_new_val=\$ac_env_${ac_var}_value
Chris@69 2214 case $ac_old_set,$ac_new_set in
Chris@69 2215 set,)
Chris@69 2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Chris@69 2217 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Chris@69 2218 ac_cache_corrupted=: ;;
Chris@69 2219 ,set)
Chris@69 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Chris@69 2221 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Chris@69 2222 ac_cache_corrupted=: ;;
Chris@69 2223 ,);;
Chris@69 2224 *)
Chris@69 2225 if test "x$ac_old_val" != "x$ac_new_val"; then
Chris@69 2226 # differences in whitespace do not lead to failure.
Chris@69 2227 ac_old_val_w=`echo x $ac_old_val`
Chris@69 2228 ac_new_val_w=`echo x $ac_new_val`
Chris@69 2229 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Chris@69 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Chris@69 2231 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Chris@69 2232 ac_cache_corrupted=:
Chris@69 2233 else
Chris@69 2234 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Chris@69 2235 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
Chris@69 2236 eval $ac_var=\$ac_old_val
Chris@69 2237 fi
Chris@69 2238 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Chris@69 2239 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Chris@69 2240 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Chris@69 2241 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Chris@69 2242 fi;;
Chris@69 2243 esac
Chris@69 2244 # Pass precious variables to config.status.
Chris@69 2245 if test "$ac_new_set" = set; then
Chris@69 2246 case $ac_new_val in
Chris@69 2247 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@69 2248 *) ac_arg=$ac_var=$ac_new_val ;;
Chris@69 2249 esac
Chris@69 2250 case " $ac_configure_args " in
Chris@69 2251 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Chris@69 2252 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Chris@69 2253 esac
Chris@69 2254 fi
Chris@69 2255 done
Chris@69 2256 if $ac_cache_corrupted; then
Chris@69 2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@69 2258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@69 2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Chris@69 2260 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Chris@69 2261 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Chris@69 2262 fi
Chris@69 2263 ## -------------------- ##
Chris@69 2264 ## Main body of script. ##
Chris@69 2265 ## -------------------- ##
Chris@69 2266
Chris@69 2267 ac_ext=c
Chris@69 2268 ac_cpp='$CPP $CPPFLAGS'
Chris@69 2269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@69 2270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@69 2271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@69 2272
Chris@69 2273
Chris@69 2274
Chris@69 2275
Chris@69 2276
Chris@69 2277 ac_aux_dir=
Chris@69 2278 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Chris@69 2279 if test -f "$ac_dir/install-sh"; then
Chris@69 2280 ac_aux_dir=$ac_dir
Chris@69 2281 ac_install_sh="$ac_aux_dir/install-sh -c"
Chris@69 2282 break
Chris@69 2283 elif test -f "$ac_dir/install.sh"; then
Chris@69 2284 ac_aux_dir=$ac_dir
Chris@69 2285 ac_install_sh="$ac_aux_dir/install.sh -c"
Chris@69 2286 break
Chris@69 2287 elif test -f "$ac_dir/shtool"; then
Chris@69 2288 ac_aux_dir=$ac_dir
Chris@69 2289 ac_install_sh="$ac_aux_dir/shtool install -c"
Chris@69 2290 break
Chris@69 2291 fi
Chris@69 2292 done
Chris@69 2293 if test -z "$ac_aux_dir"; then
Chris@69 2294 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Chris@69 2295 fi
Chris@69 2296
Chris@69 2297 # These three variables are undocumented and unsupported,
Chris@69 2298 # and are intended to be withdrawn in a future Autoconf release.
Chris@69 2299 # They can cause serious problems if a builder's source tree is in a directory
Chris@69 2300 # whose full name contains unusual characters.
Chris@69 2301 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
Chris@69 2302 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
Chris@69 2303 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Chris@69 2304
Chris@69 2305
Chris@69 2306 # Expand $ac_aux_dir to an absolute path.
Chris@69 2307 am_aux_dir=`cd "$ac_aux_dir" && pwd`
Chris@69 2308
Chris@69 2309 ac_ext=c
Chris@69 2310 ac_cpp='$CPP $CPPFLAGS'
Chris@69 2311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@69 2312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@69 2313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@69 2314 if test -n "$ac_tool_prefix"; then
Chris@69 2315 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
Chris@69 2316 set dummy ${ac_tool_prefix}gcc; ac_word=$2
Chris@69 2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 2318 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 2319 if ${ac_cv_prog_CC+:} false; then :
Chris@69 2320 $as_echo_n "(cached) " >&6
Chris@69 2321 else
Chris@69 2322 if test -n "$CC"; then
Chris@69 2323 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@69 2324 else
Chris@69 2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 2326 for as_dir in $PATH
Chris@69 2327 do
Chris@69 2328 IFS=$as_save_IFS
Chris@69 2329 test -z "$as_dir" && as_dir=.
Chris@69 2330 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 2331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 2332 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Chris@69 2333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 2334 break 2
Chris@69 2335 fi
Chris@69 2336 done
Chris@69 2337 done
Chris@69 2338 IFS=$as_save_IFS
Chris@69 2339
Chris@69 2340 fi
Chris@69 2341 fi
Chris@69 2342 CC=$ac_cv_prog_CC
Chris@69 2343 if test -n "$CC"; then
Chris@69 2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@69 2345 $as_echo "$CC" >&6; }
Chris@69 2346 else
Chris@69 2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 2348 $as_echo "no" >&6; }
Chris@69 2349 fi
Chris@69 2350
Chris@69 2351
Chris@69 2352 fi
Chris@69 2353 if test -z "$ac_cv_prog_CC"; then
Chris@69 2354 ac_ct_CC=$CC
Chris@69 2355 # Extract the first word of "gcc", so it can be a program name with args.
Chris@69 2356 set dummy gcc; ac_word=$2
Chris@69 2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 2358 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 2359 if ${ac_cv_prog_ac_ct_CC+:} false; then :
Chris@69 2360 $as_echo_n "(cached) " >&6
Chris@69 2361 else
Chris@69 2362 if test -n "$ac_ct_CC"; then
Chris@69 2363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@69 2364 else
Chris@69 2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 2366 for as_dir in $PATH
Chris@69 2367 do
Chris@69 2368 IFS=$as_save_IFS
Chris@69 2369 test -z "$as_dir" && as_dir=.
Chris@69 2370 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 2371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 2372 ac_cv_prog_ac_ct_CC="gcc"
Chris@69 2373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 2374 break 2
Chris@69 2375 fi
Chris@69 2376 done
Chris@69 2377 done
Chris@69 2378 IFS=$as_save_IFS
Chris@69 2379
Chris@69 2380 fi
Chris@69 2381 fi
Chris@69 2382 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@69 2383 if test -n "$ac_ct_CC"; then
Chris@69 2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Chris@69 2385 $as_echo "$ac_ct_CC" >&6; }
Chris@69 2386 else
Chris@69 2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 2388 $as_echo "no" >&6; }
Chris@69 2389 fi
Chris@69 2390
Chris@69 2391 if test "x$ac_ct_CC" = x; then
Chris@69 2392 CC=""
Chris@69 2393 else
Chris@69 2394 case $cross_compiling:$ac_tool_warned in
Chris@69 2395 yes:)
Chris@69 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 2397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 2398 ac_tool_warned=yes ;;
Chris@69 2399 esac
Chris@69 2400 CC=$ac_ct_CC
Chris@69 2401 fi
Chris@69 2402 else
Chris@69 2403 CC="$ac_cv_prog_CC"
Chris@69 2404 fi
Chris@69 2405
Chris@69 2406 if test -z "$CC"; then
Chris@69 2407 if test -n "$ac_tool_prefix"; then
Chris@69 2408 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Chris@69 2409 set dummy ${ac_tool_prefix}cc; ac_word=$2
Chris@69 2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 2411 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 2412 if ${ac_cv_prog_CC+:} false; then :
Chris@69 2413 $as_echo_n "(cached) " >&6
Chris@69 2414 else
Chris@69 2415 if test -n "$CC"; then
Chris@69 2416 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@69 2417 else
Chris@69 2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 2419 for as_dir in $PATH
Chris@69 2420 do
Chris@69 2421 IFS=$as_save_IFS
Chris@69 2422 test -z "$as_dir" && as_dir=.
Chris@69 2423 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 2424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 2425 ac_cv_prog_CC="${ac_tool_prefix}cc"
Chris@69 2426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 2427 break 2
Chris@69 2428 fi
Chris@69 2429 done
Chris@69 2430 done
Chris@69 2431 IFS=$as_save_IFS
Chris@69 2432
Chris@69 2433 fi
Chris@69 2434 fi
Chris@69 2435 CC=$ac_cv_prog_CC
Chris@69 2436 if test -n "$CC"; then
Chris@69 2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@69 2438 $as_echo "$CC" >&6; }
Chris@69 2439 else
Chris@69 2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 2441 $as_echo "no" >&6; }
Chris@69 2442 fi
Chris@69 2443
Chris@69 2444
Chris@69 2445 fi
Chris@69 2446 fi
Chris@69 2447 if test -z "$CC"; then
Chris@69 2448 # Extract the first word of "cc", so it can be a program name with args.
Chris@69 2449 set dummy cc; ac_word=$2
Chris@69 2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 2451 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 2452 if ${ac_cv_prog_CC+:} false; then :
Chris@69 2453 $as_echo_n "(cached) " >&6
Chris@69 2454 else
Chris@69 2455 if test -n "$CC"; then
Chris@69 2456 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@69 2457 else
Chris@69 2458 ac_prog_rejected=no
Chris@69 2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 2460 for as_dir in $PATH
Chris@69 2461 do
Chris@69 2462 IFS=$as_save_IFS
Chris@69 2463 test -z "$as_dir" && as_dir=.
Chris@69 2464 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 2465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 2466 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
Chris@69 2467 ac_prog_rejected=yes
Chris@69 2468 continue
Chris@69 2469 fi
Chris@69 2470 ac_cv_prog_CC="cc"
Chris@69 2471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 2472 break 2
Chris@69 2473 fi
Chris@69 2474 done
Chris@69 2475 done
Chris@69 2476 IFS=$as_save_IFS
Chris@69 2477
Chris@69 2478 if test $ac_prog_rejected = yes; then
Chris@69 2479 # We found a bogon in the path, so make sure we never use it.
Chris@69 2480 set dummy $ac_cv_prog_CC
Chris@69 2481 shift
Chris@69 2482 if test $# != 0; then
Chris@69 2483 # We chose a different compiler from the bogus one.
Chris@69 2484 # However, it has the same basename, so the bogon will be chosen
Chris@69 2485 # first if we set CC to just the basename; use the full file name.
Chris@69 2486 shift
Chris@69 2487 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Chris@69 2488 fi
Chris@69 2489 fi
Chris@69 2490 fi
Chris@69 2491 fi
Chris@69 2492 CC=$ac_cv_prog_CC
Chris@69 2493 if test -n "$CC"; then
Chris@69 2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@69 2495 $as_echo "$CC" >&6; }
Chris@69 2496 else
Chris@69 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 2498 $as_echo "no" >&6; }
Chris@69 2499 fi
Chris@69 2500
Chris@69 2501
Chris@69 2502 fi
Chris@69 2503 if test -z "$CC"; then
Chris@69 2504 if test -n "$ac_tool_prefix"; then
Chris@69 2505 for ac_prog in cl.exe
Chris@69 2506 do
Chris@69 2507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@69 2508 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@69 2509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 2510 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 2511 if ${ac_cv_prog_CC+:} false; then :
Chris@69 2512 $as_echo_n "(cached) " >&6
Chris@69 2513 else
Chris@69 2514 if test -n "$CC"; then
Chris@69 2515 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@69 2516 else
Chris@69 2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 2518 for as_dir in $PATH
Chris@69 2519 do
Chris@69 2520 IFS=$as_save_IFS
Chris@69 2521 test -z "$as_dir" && as_dir=.
Chris@69 2522 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 2523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 2524 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Chris@69 2525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 2526 break 2
Chris@69 2527 fi
Chris@69 2528 done
Chris@69 2529 done
Chris@69 2530 IFS=$as_save_IFS
Chris@69 2531
Chris@69 2532 fi
Chris@69 2533 fi
Chris@69 2534 CC=$ac_cv_prog_CC
Chris@69 2535 if test -n "$CC"; then
Chris@69 2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@69 2537 $as_echo "$CC" >&6; }
Chris@69 2538 else
Chris@69 2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 2540 $as_echo "no" >&6; }
Chris@69 2541 fi
Chris@69 2542
Chris@69 2543
Chris@69 2544 test -n "$CC" && break
Chris@69 2545 done
Chris@69 2546 fi
Chris@69 2547 if test -z "$CC"; then
Chris@69 2548 ac_ct_CC=$CC
Chris@69 2549 for ac_prog in cl.exe
Chris@69 2550 do
Chris@69 2551 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@69 2552 set dummy $ac_prog; ac_word=$2
Chris@69 2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 2554 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 2555 if ${ac_cv_prog_ac_ct_CC+:} false; then :
Chris@69 2556 $as_echo_n "(cached) " >&6
Chris@69 2557 else
Chris@69 2558 if test -n "$ac_ct_CC"; then
Chris@69 2559 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@69 2560 else
Chris@69 2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 2562 for as_dir in $PATH
Chris@69 2563 do
Chris@69 2564 IFS=$as_save_IFS
Chris@69 2565 test -z "$as_dir" && as_dir=.
Chris@69 2566 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 2567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 2568 ac_cv_prog_ac_ct_CC="$ac_prog"
Chris@69 2569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 2570 break 2
Chris@69 2571 fi
Chris@69 2572 done
Chris@69 2573 done
Chris@69 2574 IFS=$as_save_IFS
Chris@69 2575
Chris@69 2576 fi
Chris@69 2577 fi
Chris@69 2578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@69 2579 if test -n "$ac_ct_CC"; then
Chris@69 2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Chris@69 2581 $as_echo "$ac_ct_CC" >&6; }
Chris@69 2582 else
Chris@69 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 2584 $as_echo "no" >&6; }
Chris@69 2585 fi
Chris@69 2586
Chris@69 2587
Chris@69 2588 test -n "$ac_ct_CC" && break
Chris@69 2589 done
Chris@69 2590
Chris@69 2591 if test "x$ac_ct_CC" = x; then
Chris@69 2592 CC=""
Chris@69 2593 else
Chris@69 2594 case $cross_compiling:$ac_tool_warned in
Chris@69 2595 yes:)
Chris@69 2596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 2597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 2598 ac_tool_warned=yes ;;
Chris@69 2599 esac
Chris@69 2600 CC=$ac_ct_CC
Chris@69 2601 fi
Chris@69 2602 fi
Chris@69 2603
Chris@69 2604 fi
Chris@69 2605
Chris@69 2606
Chris@69 2607 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@69 2608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@69 2609 as_fn_error $? "no acceptable C compiler found in \$PATH
Chris@69 2610 See \`config.log' for more details" "$LINENO" 5; }
Chris@69 2611
Chris@69 2612 # Provide some information about the compiler.
Chris@69 2613 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Chris@69 2614 set X $ac_compile
Chris@69 2615 ac_compiler=$2
Chris@69 2616 for ac_option in --version -v -V -qversion; do
Chris@69 2617 { { ac_try="$ac_compiler $ac_option >&5"
Chris@69 2618 case "(($ac_try" in
Chris@69 2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@69 2620 *) ac_try_echo=$ac_try;;
Chris@69 2621 esac
Chris@69 2622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@69 2623 $as_echo "$ac_try_echo"; } >&5
Chris@69 2624 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Chris@69 2625 ac_status=$?
Chris@69 2626 if test -s conftest.err; then
Chris@69 2627 sed '10a\
Chris@69 2628 ... rest of stderr output deleted ...
Chris@69 2629 10q' conftest.err >conftest.er1
Chris@69 2630 cat conftest.er1 >&5
Chris@69 2631 fi
Chris@69 2632 rm -f conftest.er1 conftest.err
Chris@69 2633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 2634 test $ac_status = 0; }
Chris@69 2635 done
Chris@69 2636
Chris@69 2637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 2638 /* end confdefs.h. */
Chris@69 2639
Chris@69 2640 int
Chris@69 2641 main ()
Chris@69 2642 {
Chris@69 2643
Chris@69 2644 ;
Chris@69 2645 return 0;
Chris@69 2646 }
Chris@69 2647 _ACEOF
Chris@69 2648 ac_clean_files_save=$ac_clean_files
Chris@69 2649 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Chris@69 2650 # Try to create an executable without -o first, disregard a.out.
Chris@69 2651 # It will help us diagnose broken compilers, and finding out an intuition
Chris@69 2652 # of exeext.
Chris@69 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
Chris@69 2654 $as_echo_n "checking whether the C compiler works... " >&6; }
Chris@69 2655 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Chris@69 2656
Chris@69 2657 # The possible output files:
Chris@69 2658 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
Chris@69 2659
Chris@69 2660 ac_rmfiles=
Chris@69 2661 for ac_file in $ac_files
Chris@69 2662 do
Chris@69 2663 case $ac_file in
Chris@69 2664 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Chris@69 2665 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
Chris@69 2666 esac
Chris@69 2667 done
Chris@69 2668 rm -f $ac_rmfiles
Chris@69 2669
Chris@69 2670 if { { ac_try="$ac_link_default"
Chris@69 2671 case "(($ac_try" in
Chris@69 2672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@69 2673 *) ac_try_echo=$ac_try;;
Chris@69 2674 esac
Chris@69 2675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@69 2676 $as_echo "$ac_try_echo"; } >&5
Chris@69 2677 (eval "$ac_link_default") 2>&5
Chris@69 2678 ac_status=$?
Chris@69 2679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 2680 test $ac_status = 0; }; then :
Chris@69 2681 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
Chris@69 2682 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
Chris@69 2683 # in a Makefile. We should not override ac_cv_exeext if it was cached,
Chris@69 2684 # so that the user can short-circuit this test for compilers unknown to
Chris@69 2685 # Autoconf.
Chris@69 2686 for ac_file in $ac_files ''
Chris@69 2687 do
Chris@69 2688 test -f "$ac_file" || continue
Chris@69 2689 case $ac_file in
Chris@69 2690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Chris@69 2691 ;;
Chris@69 2692 [ab].out )
Chris@69 2693 # We found the default executable, but exeext='' is most
Chris@69 2694 # certainly right.
Chris@69 2695 break;;
Chris@69 2696 *.* )
Chris@69 2697 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Chris@69 2698 then :; else
Chris@69 2699 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@69 2700 fi
Chris@69 2701 # We set ac_cv_exeext here because the later test for it is not
Chris@69 2702 # safe: cross compilers may not add the suffix if given an `-o'
Chris@69 2703 # argument, so we may need to know it at that point already.
Chris@69 2704 # Even if this section looks crufty: it has the advantage of
Chris@69 2705 # actually working.
Chris@69 2706 break;;
Chris@69 2707 * )
Chris@69 2708 break;;
Chris@69 2709 esac
Chris@69 2710 done
Chris@69 2711 test "$ac_cv_exeext" = no && ac_cv_exeext=
Chris@69 2712
Chris@69 2713 else
Chris@69 2714 ac_file=''
Chris@69 2715 fi
Chris@69 2716 if test -z "$ac_file"; then :
Chris@69 2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 2718 $as_echo "no" >&6; }
Chris@69 2719 $as_echo "$as_me: failed program was:" >&5
Chris@69 2720 sed 's/^/| /' conftest.$ac_ext >&5
Chris@69 2721
Chris@69 2722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@69 2723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@69 2724 as_fn_error 77 "C compiler cannot create executables
Chris@69 2725 See \`config.log' for more details" "$LINENO" 5; }
Chris@69 2726 else
Chris@69 2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 2728 $as_echo "yes" >&6; }
Chris@69 2729 fi
Chris@69 2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
Chris@69 2731 $as_echo_n "checking for C compiler default output file name... " >&6; }
Chris@69 2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
Chris@69 2733 $as_echo "$ac_file" >&6; }
Chris@69 2734 ac_exeext=$ac_cv_exeext
Chris@69 2735
Chris@69 2736 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Chris@69 2737 ac_clean_files=$ac_clean_files_save
Chris@69 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Chris@69 2739 $as_echo_n "checking for suffix of executables... " >&6; }
Chris@69 2740 if { { ac_try="$ac_link"
Chris@69 2741 case "(($ac_try" in
Chris@69 2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@69 2743 *) ac_try_echo=$ac_try;;
Chris@69 2744 esac
Chris@69 2745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@69 2746 $as_echo "$ac_try_echo"; } >&5
Chris@69 2747 (eval "$ac_link") 2>&5
Chris@69 2748 ac_status=$?
Chris@69 2749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 2750 test $ac_status = 0; }; then :
Chris@69 2751 # If both `conftest.exe' and `conftest' are `present' (well, observable)
Chris@69 2752 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
Chris@69 2753 # work properly (i.e., refer to `conftest.exe'), while it won't with
Chris@69 2754 # `rm'.
Chris@69 2755 for ac_file in conftest.exe conftest conftest.*; do
Chris@69 2756 test -f "$ac_file" || continue
Chris@69 2757 case $ac_file in
Chris@69 2758 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Chris@69 2759 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@69 2760 break;;
Chris@69 2761 * ) break;;
Chris@69 2762 esac
Chris@69 2763 done
Chris@69 2764 else
Chris@69 2765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@69 2766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@69 2767 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Chris@69 2768 See \`config.log' for more details" "$LINENO" 5; }
Chris@69 2769 fi
Chris@69 2770 rm -f conftest conftest$ac_cv_exeext
Chris@69 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Chris@69 2772 $as_echo "$ac_cv_exeext" >&6; }
Chris@69 2773
Chris@69 2774 rm -f conftest.$ac_ext
Chris@69 2775 EXEEXT=$ac_cv_exeext
Chris@69 2776 ac_exeext=$EXEEXT
Chris@69 2777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 2778 /* end confdefs.h. */
Chris@69 2779 #include <stdio.h>
Chris@69 2780 int
Chris@69 2781 main ()
Chris@69 2782 {
Chris@69 2783 FILE *f = fopen ("conftest.out", "w");
Chris@69 2784 return ferror (f) || fclose (f) != 0;
Chris@69 2785
Chris@69 2786 ;
Chris@69 2787 return 0;
Chris@69 2788 }
Chris@69 2789 _ACEOF
Chris@69 2790 ac_clean_files="$ac_clean_files conftest.out"
Chris@69 2791 # Check that the compiler produces executables we can run. If not, either
Chris@69 2792 # the compiler is broken, or we cross compile.
Chris@69 2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
Chris@69 2794 $as_echo_n "checking whether we are cross compiling... " >&6; }
Chris@69 2795 if test "$cross_compiling" != yes; then
Chris@69 2796 { { ac_try="$ac_link"
Chris@69 2797 case "(($ac_try" in
Chris@69 2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@69 2799 *) ac_try_echo=$ac_try;;
Chris@69 2800 esac
Chris@69 2801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@69 2802 $as_echo "$ac_try_echo"; } >&5
Chris@69 2803 (eval "$ac_link") 2>&5
Chris@69 2804 ac_status=$?
Chris@69 2805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 2806 test $ac_status = 0; }
Chris@69 2807 if { ac_try='./conftest$ac_cv_exeext'
Chris@69 2808 { { case "(($ac_try" in
Chris@69 2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@69 2810 *) ac_try_echo=$ac_try;;
Chris@69 2811 esac
Chris@69 2812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@69 2813 $as_echo "$ac_try_echo"; } >&5
Chris@69 2814 (eval "$ac_try") 2>&5
Chris@69 2815 ac_status=$?
Chris@69 2816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 2817 test $ac_status = 0; }; }; then
Chris@69 2818 cross_compiling=no
Chris@69 2819 else
Chris@69 2820 if test "$cross_compiling" = maybe; then
Chris@69 2821 cross_compiling=yes
Chris@69 2822 else
Chris@69 2823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@69 2824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@69 2825 as_fn_error $? "cannot run C compiled programs.
Chris@69 2826 If you meant to cross compile, use \`--host'.
Chris@69 2827 See \`config.log' for more details" "$LINENO" 5; }
Chris@69 2828 fi
Chris@69 2829 fi
Chris@69 2830 fi
Chris@69 2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
Chris@69 2832 $as_echo "$cross_compiling" >&6; }
Chris@69 2833
Chris@69 2834 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
Chris@69 2835 ac_clean_files=$ac_clean_files_save
Chris@69 2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Chris@69 2837 $as_echo_n "checking for suffix of object files... " >&6; }
Chris@69 2838 if ${ac_cv_objext+:} false; then :
Chris@69 2839 $as_echo_n "(cached) " >&6
Chris@69 2840 else
Chris@69 2841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 2842 /* end confdefs.h. */
Chris@69 2843
Chris@69 2844 int
Chris@69 2845 main ()
Chris@69 2846 {
Chris@69 2847
Chris@69 2848 ;
Chris@69 2849 return 0;
Chris@69 2850 }
Chris@69 2851 _ACEOF
Chris@69 2852 rm -f conftest.o conftest.obj
Chris@69 2853 if { { ac_try="$ac_compile"
Chris@69 2854 case "(($ac_try" in
Chris@69 2855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@69 2856 *) ac_try_echo=$ac_try;;
Chris@69 2857 esac
Chris@69 2858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@69 2859 $as_echo "$ac_try_echo"; } >&5
Chris@69 2860 (eval "$ac_compile") 2>&5
Chris@69 2861 ac_status=$?
Chris@69 2862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 2863 test $ac_status = 0; }; then :
Chris@69 2864 for ac_file in conftest.o conftest.obj conftest.*; do
Chris@69 2865 test -f "$ac_file" || continue;
Chris@69 2866 case $ac_file in
Chris@69 2867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Chris@69 2868 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
Chris@69 2869 break;;
Chris@69 2870 esac
Chris@69 2871 done
Chris@69 2872 else
Chris@69 2873 $as_echo "$as_me: failed program was:" >&5
Chris@69 2874 sed 's/^/| /' conftest.$ac_ext >&5
Chris@69 2875
Chris@69 2876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@69 2877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@69 2878 as_fn_error $? "cannot compute suffix of object files: cannot compile
Chris@69 2879 See \`config.log' for more details" "$LINENO" 5; }
Chris@69 2880 fi
Chris@69 2881 rm -f conftest.$ac_cv_objext conftest.$ac_ext
Chris@69 2882 fi
Chris@69 2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Chris@69 2884 $as_echo "$ac_cv_objext" >&6; }
Chris@69 2885 OBJEXT=$ac_cv_objext
Chris@69 2886 ac_objext=$OBJEXT
Chris@69 2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Chris@69 2888 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Chris@69 2889 if ${ac_cv_c_compiler_gnu+:} false; then :
Chris@69 2890 $as_echo_n "(cached) " >&6
Chris@69 2891 else
Chris@69 2892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 2893 /* end confdefs.h. */
Chris@69 2894
Chris@69 2895 int
Chris@69 2896 main ()
Chris@69 2897 {
Chris@69 2898 #ifndef __GNUC__
Chris@69 2899 choke me
Chris@69 2900 #endif
Chris@69 2901
Chris@69 2902 ;
Chris@69 2903 return 0;
Chris@69 2904 }
Chris@69 2905 _ACEOF
Chris@69 2906 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 2907 ac_compiler_gnu=yes
Chris@69 2908 else
Chris@69 2909 ac_compiler_gnu=no
Chris@69 2910 fi
Chris@69 2911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 2912 ac_cv_c_compiler_gnu=$ac_compiler_gnu
Chris@69 2913
Chris@69 2914 fi
Chris@69 2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Chris@69 2916 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
Chris@69 2917 if test $ac_compiler_gnu = yes; then
Chris@69 2918 GCC=yes
Chris@69 2919 else
Chris@69 2920 GCC=
Chris@69 2921 fi
Chris@69 2922 ac_test_CFLAGS=${CFLAGS+set}
Chris@69 2923 ac_save_CFLAGS=$CFLAGS
Chris@69 2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Chris@69 2925 $as_echo_n "checking whether $CC accepts -g... " >&6; }
Chris@69 2926 if ${ac_cv_prog_cc_g+:} false; then :
Chris@69 2927 $as_echo_n "(cached) " >&6
Chris@69 2928 else
Chris@69 2929 ac_save_c_werror_flag=$ac_c_werror_flag
Chris@69 2930 ac_c_werror_flag=yes
Chris@69 2931 ac_cv_prog_cc_g=no
Chris@69 2932 CFLAGS="-g"
Chris@69 2933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 2934 /* end confdefs.h. */
Chris@69 2935
Chris@69 2936 int
Chris@69 2937 main ()
Chris@69 2938 {
Chris@69 2939
Chris@69 2940 ;
Chris@69 2941 return 0;
Chris@69 2942 }
Chris@69 2943 _ACEOF
Chris@69 2944 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 2945 ac_cv_prog_cc_g=yes
Chris@69 2946 else
Chris@69 2947 CFLAGS=""
Chris@69 2948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 2949 /* end confdefs.h. */
Chris@69 2950
Chris@69 2951 int
Chris@69 2952 main ()
Chris@69 2953 {
Chris@69 2954
Chris@69 2955 ;
Chris@69 2956 return 0;
Chris@69 2957 }
Chris@69 2958 _ACEOF
Chris@69 2959 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 2960
Chris@69 2961 else
Chris@69 2962 ac_c_werror_flag=$ac_save_c_werror_flag
Chris@69 2963 CFLAGS="-g"
Chris@69 2964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 2965 /* end confdefs.h. */
Chris@69 2966
Chris@69 2967 int
Chris@69 2968 main ()
Chris@69 2969 {
Chris@69 2970
Chris@69 2971 ;
Chris@69 2972 return 0;
Chris@69 2973 }
Chris@69 2974 _ACEOF
Chris@69 2975 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 2976 ac_cv_prog_cc_g=yes
Chris@69 2977 fi
Chris@69 2978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 2979 fi
Chris@69 2980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 2981 fi
Chris@69 2982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 2983 ac_c_werror_flag=$ac_save_c_werror_flag
Chris@69 2984 fi
Chris@69 2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Chris@69 2986 $as_echo "$ac_cv_prog_cc_g" >&6; }
Chris@69 2987 if test "$ac_test_CFLAGS" = set; then
Chris@69 2988 CFLAGS=$ac_save_CFLAGS
Chris@69 2989 elif test $ac_cv_prog_cc_g = yes; then
Chris@69 2990 if test "$GCC" = yes; then
Chris@69 2991 CFLAGS="-g -O2"
Chris@69 2992 else
Chris@69 2993 CFLAGS="-g"
Chris@69 2994 fi
Chris@69 2995 else
Chris@69 2996 if test "$GCC" = yes; then
Chris@69 2997 CFLAGS="-O2"
Chris@69 2998 else
Chris@69 2999 CFLAGS=
Chris@69 3000 fi
Chris@69 3001 fi
Chris@69 3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Chris@69 3003 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Chris@69 3004 if ${ac_cv_prog_cc_c89+:} false; then :
Chris@69 3005 $as_echo_n "(cached) " >&6
Chris@69 3006 else
Chris@69 3007 ac_cv_prog_cc_c89=no
Chris@69 3008 ac_save_CC=$CC
Chris@69 3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 3010 /* end confdefs.h. */
Chris@69 3011 #include <stdarg.h>
Chris@69 3012 #include <stdio.h>
Chris@69 3013 struct stat;
Chris@69 3014 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
Chris@69 3015 struct buf { int x; };
Chris@69 3016 FILE * (*rcsopen) (struct buf *, struct stat *, int);
Chris@69 3017 static char *e (p, i)
Chris@69 3018 char **p;
Chris@69 3019 int i;
Chris@69 3020 {
Chris@69 3021 return p[i];
Chris@69 3022 }
Chris@69 3023 static char *f (char * (*g) (char **, int), char **p, ...)
Chris@69 3024 {
Chris@69 3025 char *s;
Chris@69 3026 va_list v;
Chris@69 3027 va_start (v,p);
Chris@69 3028 s = g (p, va_arg (v,int));
Chris@69 3029 va_end (v);
Chris@69 3030 return s;
Chris@69 3031 }
Chris@69 3032
Chris@69 3033 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
Chris@69 3034 function prototypes and stuff, but not '\xHH' hex character constants.
Chris@69 3035 These don't provoke an error unfortunately, instead are silently treated
Chris@69 3036 as 'x'. The following induces an error, until -std is added to get
Chris@69 3037 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
Chris@69 3038 array size at least. It's necessary to write '\x00'==0 to get something
Chris@69 3039 that's true only with -std. */
Chris@69 3040 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
Chris@69 3041
Chris@69 3042 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
Chris@69 3043 inside strings and character constants. */
Chris@69 3044 #define FOO(x) 'x'
Chris@69 3045 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
Chris@69 3046
Chris@69 3047 int test (int i, double x);
Chris@69 3048 struct s1 {int (*f) (int a);};
Chris@69 3049 struct s2 {int (*f) (double a);};
Chris@69 3050 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
Chris@69 3051 int argc;
Chris@69 3052 char **argv;
Chris@69 3053 int
Chris@69 3054 main ()
Chris@69 3055 {
Chris@69 3056 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
Chris@69 3057 ;
Chris@69 3058 return 0;
Chris@69 3059 }
Chris@69 3060 _ACEOF
Chris@69 3061 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
Chris@69 3062 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Chris@69 3063 do
Chris@69 3064 CC="$ac_save_CC $ac_arg"
Chris@69 3065 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 3066 ac_cv_prog_cc_c89=$ac_arg
Chris@69 3067 fi
Chris@69 3068 rm -f core conftest.err conftest.$ac_objext
Chris@69 3069 test "x$ac_cv_prog_cc_c89" != "xno" && break
Chris@69 3070 done
Chris@69 3071 rm -f conftest.$ac_ext
Chris@69 3072 CC=$ac_save_CC
Chris@69 3073
Chris@69 3074 fi
Chris@69 3075 # AC_CACHE_VAL
Chris@69 3076 case "x$ac_cv_prog_cc_c89" in
Chris@69 3077 x)
Chris@69 3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Chris@69 3079 $as_echo "none needed" >&6; } ;;
Chris@69 3080 xno)
Chris@69 3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Chris@69 3082 $as_echo "unsupported" >&6; } ;;
Chris@69 3083 *)
Chris@69 3084 CC="$CC $ac_cv_prog_cc_c89"
Chris@69 3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Chris@69 3086 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Chris@69 3087 esac
Chris@69 3088 if test "x$ac_cv_prog_cc_c89" != xno; then :
Chris@69 3089
Chris@69 3090 fi
Chris@69 3091
Chris@69 3092 ac_ext=c
Chris@69 3093 ac_cpp='$CPP $CPPFLAGS'
Chris@69 3094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@69 3095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@69 3096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@69 3097
Chris@69 3098 ac_ext=c
Chris@69 3099 ac_cpp='$CPP $CPPFLAGS'
Chris@69 3100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@69 3101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@69 3102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@69 3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
Chris@69 3104 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
Chris@69 3105 if ${am_cv_prog_cc_c_o+:} false; then :
Chris@69 3106 $as_echo_n "(cached) " >&6
Chris@69 3107 else
Chris@69 3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 3109 /* end confdefs.h. */
Chris@69 3110
Chris@69 3111 int
Chris@69 3112 main ()
Chris@69 3113 {
Chris@69 3114
Chris@69 3115 ;
Chris@69 3116 return 0;
Chris@69 3117 }
Chris@69 3118 _ACEOF
Chris@69 3119 # Make sure it works both with $CC and with simple cc.
Chris@69 3120 # Following AC_PROG_CC_C_O, we do the test twice because some
Chris@69 3121 # compilers refuse to overwrite an existing .o file with -o,
Chris@69 3122 # though they will create one.
Chris@69 3123 am_cv_prog_cc_c_o=yes
Chris@69 3124 for am_i in 1 2; do
Chris@69 3125 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
Chris@69 3126 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
Chris@69 3127 ac_status=$?
Chris@69 3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@69 3129 (exit $ac_status); } \
Chris@69 3130 && test -f conftest2.$ac_objext; then
Chris@69 3131 : OK
Chris@69 3132 else
Chris@69 3133 am_cv_prog_cc_c_o=no
Chris@69 3134 break
Chris@69 3135 fi
Chris@69 3136 done
Chris@69 3137 rm -f core conftest*
Chris@69 3138 unset am_i
Chris@69 3139 fi
Chris@69 3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
Chris@69 3141 $as_echo "$am_cv_prog_cc_c_o" >&6; }
Chris@69 3142 if test "$am_cv_prog_cc_c_o" != yes; then
Chris@69 3143 # Losing compiler, so override with the script.
Chris@69 3144 # FIXME: It is wrong to rewrite CC.
Chris@69 3145 # But if we don't then we get into trouble of one sort or another.
Chris@69 3146 # A longer-term fix would be to have automake use am__CC in this case,
Chris@69 3147 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
Chris@69 3148 CC="$am_aux_dir/compile $CC"
Chris@69 3149 fi
Chris@69 3150 ac_ext=c
Chris@69 3151 ac_cpp='$CPP $CPPFLAGS'
Chris@69 3152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@69 3153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@69 3154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@69 3155
Chris@69 3156
Chris@69 3157
Chris@69 3158 ac_ext=c
Chris@69 3159 ac_cpp='$CPP $CPPFLAGS'
Chris@69 3160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@69 3161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@69 3162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@69 3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Chris@69 3164 $as_echo_n "checking how to run the C preprocessor... " >&6; }
Chris@69 3165 # On Suns, sometimes $CPP names a directory.
Chris@69 3166 if test -n "$CPP" && test -d "$CPP"; then
Chris@69 3167 CPP=
Chris@69 3168 fi
Chris@69 3169 if test -z "$CPP"; then
Chris@69 3170 if ${ac_cv_prog_CPP+:} false; then :
Chris@69 3171 $as_echo_n "(cached) " >&6
Chris@69 3172 else
Chris@69 3173 # Double quotes because CPP needs to be expanded
Chris@69 3174 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
Chris@69 3175 do
Chris@69 3176 ac_preproc_ok=false
Chris@69 3177 for ac_c_preproc_warn_flag in '' yes
Chris@69 3178 do
Chris@69 3179 # Use a header file that comes with gcc, so configuring glibc
Chris@69 3180 # with a fresh cross-compiler works.
Chris@69 3181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@69 3182 # <limits.h> exists even on freestanding compilers.
Chris@69 3183 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@69 3184 # not just through cpp. "Syntax error" is here to catch this case.
Chris@69 3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 3186 /* end confdefs.h. */
Chris@69 3187 #ifdef __STDC__
Chris@69 3188 # include <limits.h>
Chris@69 3189 #else
Chris@69 3190 # include <assert.h>
Chris@69 3191 #endif
Chris@69 3192 Syntax error
Chris@69 3193 _ACEOF
Chris@69 3194 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@69 3195
Chris@69 3196 else
Chris@69 3197 # Broken: fails on valid input.
Chris@69 3198 continue
Chris@69 3199 fi
Chris@69 3200 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@69 3201
Chris@69 3202 # OK, works on sane cases. Now check whether nonexistent headers
Chris@69 3203 # can be detected and how.
Chris@69 3204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 3205 /* end confdefs.h. */
Chris@69 3206 #include <ac_nonexistent.h>
Chris@69 3207 _ACEOF
Chris@69 3208 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@69 3209 # Broken: success on invalid input.
Chris@69 3210 continue
Chris@69 3211 else
Chris@69 3212 # Passes both tests.
Chris@69 3213 ac_preproc_ok=:
Chris@69 3214 break
Chris@69 3215 fi
Chris@69 3216 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@69 3217
Chris@69 3218 done
Chris@69 3219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@69 3220 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@69 3221 if $ac_preproc_ok; then :
Chris@69 3222 break
Chris@69 3223 fi
Chris@69 3224
Chris@69 3225 done
Chris@69 3226 ac_cv_prog_CPP=$CPP
Chris@69 3227
Chris@69 3228 fi
Chris@69 3229 CPP=$ac_cv_prog_CPP
Chris@69 3230 else
Chris@69 3231 ac_cv_prog_CPP=$CPP
Chris@69 3232 fi
Chris@69 3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Chris@69 3234 $as_echo "$CPP" >&6; }
Chris@69 3235 ac_preproc_ok=false
Chris@69 3236 for ac_c_preproc_warn_flag in '' yes
Chris@69 3237 do
Chris@69 3238 # Use a header file that comes with gcc, so configuring glibc
Chris@69 3239 # with a fresh cross-compiler works.
Chris@69 3240 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@69 3241 # <limits.h> exists even on freestanding compilers.
Chris@69 3242 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@69 3243 # not just through cpp. "Syntax error" is here to catch this case.
Chris@69 3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 3245 /* end confdefs.h. */
Chris@69 3246 #ifdef __STDC__
Chris@69 3247 # include <limits.h>
Chris@69 3248 #else
Chris@69 3249 # include <assert.h>
Chris@69 3250 #endif
Chris@69 3251 Syntax error
Chris@69 3252 _ACEOF
Chris@69 3253 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@69 3254
Chris@69 3255 else
Chris@69 3256 # Broken: fails on valid input.
Chris@69 3257 continue
Chris@69 3258 fi
Chris@69 3259 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@69 3260
Chris@69 3261 # OK, works on sane cases. Now check whether nonexistent headers
Chris@69 3262 # can be detected and how.
Chris@69 3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 3264 /* end confdefs.h. */
Chris@69 3265 #include <ac_nonexistent.h>
Chris@69 3266 _ACEOF
Chris@69 3267 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@69 3268 # Broken: success on invalid input.
Chris@69 3269 continue
Chris@69 3270 else
Chris@69 3271 # Passes both tests.
Chris@69 3272 ac_preproc_ok=:
Chris@69 3273 break
Chris@69 3274 fi
Chris@69 3275 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@69 3276
Chris@69 3277 done
Chris@69 3278 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@69 3279 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@69 3280 if $ac_preproc_ok; then :
Chris@69 3281
Chris@69 3282 else
Chris@69 3283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@69 3284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@69 3285 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
Chris@69 3286 See \`config.log' for more details" "$LINENO" 5; }
Chris@69 3287 fi
Chris@69 3288
Chris@69 3289 ac_ext=c
Chris@69 3290 ac_cpp='$CPP $CPPFLAGS'
Chris@69 3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@69 3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@69 3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@69 3294
Chris@69 3295
Chris@69 3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Chris@69 3297 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Chris@69 3298 if ${ac_cv_path_GREP+:} false; then :
Chris@69 3299 $as_echo_n "(cached) " >&6
Chris@69 3300 else
Chris@69 3301 if test -z "$GREP"; then
Chris@69 3302 ac_path_GREP_found=false
Chris@69 3303 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@69 3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 3305 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@69 3306 do
Chris@69 3307 IFS=$as_save_IFS
Chris@69 3308 test -z "$as_dir" && as_dir=.
Chris@69 3309 for ac_prog in grep ggrep; do
Chris@69 3310 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 3311 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@69 3312 as_fn_executable_p "$ac_path_GREP" || continue
Chris@69 3313 # Check for GNU ac_path_GREP and select it if it is found.
Chris@69 3314 # Check for GNU $ac_path_GREP
Chris@69 3315 case `"$ac_path_GREP" --version 2>&1` in
Chris@69 3316 *GNU*)
Chris@69 3317 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
Chris@69 3318 *)
Chris@69 3319 ac_count=0
Chris@69 3320 $as_echo_n 0123456789 >"conftest.in"
Chris@69 3321 while :
Chris@69 3322 do
Chris@69 3323 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@69 3324 mv "conftest.tmp" "conftest.in"
Chris@69 3325 cp "conftest.in" "conftest.nl"
Chris@69 3326 $as_echo 'GREP' >> "conftest.nl"
Chris@69 3327 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@69 3328 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@69 3329 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@69 3330 if test $ac_count -gt ${ac_path_GREP_max-0}; then
Chris@69 3331 # Best one so far, save it but keep looking for a better one
Chris@69 3332 ac_cv_path_GREP="$ac_path_GREP"
Chris@69 3333 ac_path_GREP_max=$ac_count
Chris@69 3334 fi
Chris@69 3335 # 10*(2^10) chars as input seems more than enough
Chris@69 3336 test $ac_count -gt 10 && break
Chris@69 3337 done
Chris@69 3338 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@69 3339 esac
Chris@69 3340
Chris@69 3341 $ac_path_GREP_found && break 3
Chris@69 3342 done
Chris@69 3343 done
Chris@69 3344 done
Chris@69 3345 IFS=$as_save_IFS
Chris@69 3346 if test -z "$ac_cv_path_GREP"; then
Chris@69 3347 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@69 3348 fi
Chris@69 3349 else
Chris@69 3350 ac_cv_path_GREP=$GREP
Chris@69 3351 fi
Chris@69 3352
Chris@69 3353 fi
Chris@69 3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Chris@69 3355 $as_echo "$ac_cv_path_GREP" >&6; }
Chris@69 3356 GREP="$ac_cv_path_GREP"
Chris@69 3357
Chris@69 3358
Chris@69 3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Chris@69 3360 $as_echo_n "checking for egrep... " >&6; }
Chris@69 3361 if ${ac_cv_path_EGREP+:} false; then :
Chris@69 3362 $as_echo_n "(cached) " >&6
Chris@69 3363 else
Chris@69 3364 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
Chris@69 3365 then ac_cv_path_EGREP="$GREP -E"
Chris@69 3366 else
Chris@69 3367 if test -z "$EGREP"; then
Chris@69 3368 ac_path_EGREP_found=false
Chris@69 3369 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@69 3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 3371 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@69 3372 do
Chris@69 3373 IFS=$as_save_IFS
Chris@69 3374 test -z "$as_dir" && as_dir=.
Chris@69 3375 for ac_prog in egrep; do
Chris@69 3376 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 3377 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@69 3378 as_fn_executable_p "$ac_path_EGREP" || continue
Chris@69 3379 # Check for GNU ac_path_EGREP and select it if it is found.
Chris@69 3380 # Check for GNU $ac_path_EGREP
Chris@69 3381 case `"$ac_path_EGREP" --version 2>&1` in
Chris@69 3382 *GNU*)
Chris@69 3383 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
Chris@69 3384 *)
Chris@69 3385 ac_count=0
Chris@69 3386 $as_echo_n 0123456789 >"conftest.in"
Chris@69 3387 while :
Chris@69 3388 do
Chris@69 3389 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@69 3390 mv "conftest.tmp" "conftest.in"
Chris@69 3391 cp "conftest.in" "conftest.nl"
Chris@69 3392 $as_echo 'EGREP' >> "conftest.nl"
Chris@69 3393 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@69 3394 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@69 3395 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@69 3396 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
Chris@69 3397 # Best one so far, save it but keep looking for a better one
Chris@69 3398 ac_cv_path_EGREP="$ac_path_EGREP"
Chris@69 3399 ac_path_EGREP_max=$ac_count
Chris@69 3400 fi
Chris@69 3401 # 10*(2^10) chars as input seems more than enough
Chris@69 3402 test $ac_count -gt 10 && break
Chris@69 3403 done
Chris@69 3404 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@69 3405 esac
Chris@69 3406
Chris@69 3407 $ac_path_EGREP_found && break 3
Chris@69 3408 done
Chris@69 3409 done
Chris@69 3410 done
Chris@69 3411 IFS=$as_save_IFS
Chris@69 3412 if test -z "$ac_cv_path_EGREP"; then
Chris@69 3413 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@69 3414 fi
Chris@69 3415 else
Chris@69 3416 ac_cv_path_EGREP=$EGREP
Chris@69 3417 fi
Chris@69 3418
Chris@69 3419 fi
Chris@69 3420 fi
Chris@69 3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Chris@69 3422 $as_echo "$ac_cv_path_EGREP" >&6; }
Chris@69 3423 EGREP="$ac_cv_path_EGREP"
Chris@69 3424
Chris@69 3425
Chris@69 3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Chris@69 3427 $as_echo_n "checking for ANSI C header files... " >&6; }
Chris@69 3428 if ${ac_cv_header_stdc+:} false; then :
Chris@69 3429 $as_echo_n "(cached) " >&6
Chris@69 3430 else
Chris@69 3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 3432 /* end confdefs.h. */
Chris@69 3433 #include <stdlib.h>
Chris@69 3434 #include <stdarg.h>
Chris@69 3435 #include <string.h>
Chris@69 3436 #include <float.h>
Chris@69 3437
Chris@69 3438 int
Chris@69 3439 main ()
Chris@69 3440 {
Chris@69 3441
Chris@69 3442 ;
Chris@69 3443 return 0;
Chris@69 3444 }
Chris@69 3445 _ACEOF
Chris@69 3446 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 3447 ac_cv_header_stdc=yes
Chris@69 3448 else
Chris@69 3449 ac_cv_header_stdc=no
Chris@69 3450 fi
Chris@69 3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 3452
Chris@69 3453 if test $ac_cv_header_stdc = yes; then
Chris@69 3454 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Chris@69 3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 3456 /* end confdefs.h. */
Chris@69 3457 #include <string.h>
Chris@69 3458
Chris@69 3459 _ACEOF
Chris@69 3460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@69 3461 $EGREP "memchr" >/dev/null 2>&1; then :
Chris@69 3462
Chris@69 3463 else
Chris@69 3464 ac_cv_header_stdc=no
Chris@69 3465 fi
Chris@69 3466 rm -f conftest*
Chris@69 3467
Chris@69 3468 fi
Chris@69 3469
Chris@69 3470 if test $ac_cv_header_stdc = yes; then
Chris@69 3471 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Chris@69 3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 3473 /* end confdefs.h. */
Chris@69 3474 #include <stdlib.h>
Chris@69 3475
Chris@69 3476 _ACEOF
Chris@69 3477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@69 3478 $EGREP "free" >/dev/null 2>&1; then :
Chris@69 3479
Chris@69 3480 else
Chris@69 3481 ac_cv_header_stdc=no
Chris@69 3482 fi
Chris@69 3483 rm -f conftest*
Chris@69 3484
Chris@69 3485 fi
Chris@69 3486
Chris@69 3487 if test $ac_cv_header_stdc = yes; then
Chris@69 3488 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Chris@69 3489 if test "$cross_compiling" = yes; then :
Chris@69 3490 :
Chris@69 3491 else
Chris@69 3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 3493 /* end confdefs.h. */
Chris@69 3494 #include <ctype.h>
Chris@69 3495 #include <stdlib.h>
Chris@69 3496 #if ((' ' & 0x0FF) == 0x020)
Chris@69 3497 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
Chris@69 3498 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Chris@69 3499 #else
Chris@69 3500 # define ISLOWER(c) \
Chris@69 3501 (('a' <= (c) && (c) <= 'i') \
Chris@69 3502 || ('j' <= (c) && (c) <= 'r') \
Chris@69 3503 || ('s' <= (c) && (c) <= 'z'))
Chris@69 3504 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
Chris@69 3505 #endif
Chris@69 3506
Chris@69 3507 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Chris@69 3508 int
Chris@69 3509 main ()
Chris@69 3510 {
Chris@69 3511 int i;
Chris@69 3512 for (i = 0; i < 256; i++)
Chris@69 3513 if (XOR (islower (i), ISLOWER (i))
Chris@69 3514 || toupper (i) != TOUPPER (i))
Chris@69 3515 return 2;
Chris@69 3516 return 0;
Chris@69 3517 }
Chris@69 3518 _ACEOF
Chris@69 3519 if ac_fn_c_try_run "$LINENO"; then :
Chris@69 3520
Chris@69 3521 else
Chris@69 3522 ac_cv_header_stdc=no
Chris@69 3523 fi
Chris@69 3524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@69 3525 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@69 3526 fi
Chris@69 3527
Chris@69 3528 fi
Chris@69 3529 fi
Chris@69 3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Chris@69 3531 $as_echo "$ac_cv_header_stdc" >&6; }
Chris@69 3532 if test $ac_cv_header_stdc = yes; then
Chris@69 3533
Chris@69 3534 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
Chris@69 3535
Chris@69 3536 fi
Chris@69 3537
Chris@69 3538 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
Chris@69 3539 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Chris@69 3540 inttypes.h stdint.h unistd.h
Chris@69 3541 do :
Chris@69 3542 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Chris@69 3543 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
Chris@69 3544 "
Chris@69 3545 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@69 3546 cat >>confdefs.h <<_ACEOF
Chris@69 3547 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris@69 3548 _ACEOF
Chris@69 3549
Chris@69 3550 fi
Chris@69 3551
Chris@69 3552 done
Chris@69 3553
Chris@69 3554
Chris@69 3555
Chris@69 3556 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
Chris@69 3557 if test "x$ac_cv_header_minix_config_h" = xyes; then :
Chris@69 3558 MINIX=yes
Chris@69 3559 else
Chris@69 3560 MINIX=
Chris@69 3561 fi
Chris@69 3562
Chris@69 3563
Chris@69 3564 if test "$MINIX" = yes; then
Chris@69 3565
Chris@69 3566 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
Chris@69 3567
Chris@69 3568
Chris@69 3569 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
Chris@69 3570
Chris@69 3571
Chris@69 3572 $as_echo "#define _MINIX 1" >>confdefs.h
Chris@69 3573
Chris@69 3574 fi
Chris@69 3575
Chris@69 3576
Chris@69 3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
Chris@69 3578 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
Chris@69 3579 if ${ac_cv_safe_to_define___extensions__+:} false; then :
Chris@69 3580 $as_echo_n "(cached) " >&6
Chris@69 3581 else
Chris@69 3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 3583 /* end confdefs.h. */
Chris@69 3584
Chris@69 3585 # define __EXTENSIONS__ 1
Chris@69 3586 $ac_includes_default
Chris@69 3587 int
Chris@69 3588 main ()
Chris@69 3589 {
Chris@69 3590
Chris@69 3591 ;
Chris@69 3592 return 0;
Chris@69 3593 }
Chris@69 3594 _ACEOF
Chris@69 3595 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 3596 ac_cv_safe_to_define___extensions__=yes
Chris@69 3597 else
Chris@69 3598 ac_cv_safe_to_define___extensions__=no
Chris@69 3599 fi
Chris@69 3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 3601 fi
Chris@69 3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
Chris@69 3603 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
Chris@69 3604 test $ac_cv_safe_to_define___extensions__ = yes &&
Chris@69 3605 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
Chris@69 3606
Chris@69 3607 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
Chris@69 3608
Chris@69 3609 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
Chris@69 3610
Chris@69 3611 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
Chris@69 3612
Chris@69 3613 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
Chris@69 3614
Chris@69 3615
Chris@69 3616 # Check whether --enable-largefile was given.
Chris@69 3617 if test "${enable_largefile+set}" = set; then :
Chris@69 3618 enableval=$enable_largefile;
Chris@69 3619 fi
Chris@69 3620
Chris@69 3621 if test "$enable_largefile" != no; then
Chris@69 3622
Chris@69 3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
Chris@69 3624 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
Chris@69 3625 if ${ac_cv_sys_largefile_CC+:} false; then :
Chris@69 3626 $as_echo_n "(cached) " >&6
Chris@69 3627 else
Chris@69 3628 ac_cv_sys_largefile_CC=no
Chris@69 3629 if test "$GCC" != yes; then
Chris@69 3630 ac_save_CC=$CC
Chris@69 3631 while :; do
Chris@69 3632 # IRIX 6.2 and later do not support large files by default,
Chris@69 3633 # so use the C compiler's -n32 option if that helps.
Chris@69 3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 3635 /* end confdefs.h. */
Chris@69 3636 #include <sys/types.h>
Chris@69 3637 /* Check that off_t can represent 2**63 - 1 correctly.
Chris@69 3638 We can't simply define LARGE_OFF_T to be 9223372036854775807,
Chris@69 3639 since some C++ compilers masquerading as C compilers
Chris@69 3640 incorrectly reject 9223372036854775807. */
Chris@69 3641 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
Chris@69 3642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
Chris@69 3643 && LARGE_OFF_T % 2147483647 == 1)
Chris@69 3644 ? 1 : -1];
Chris@69 3645 int
Chris@69 3646 main ()
Chris@69 3647 {
Chris@69 3648
Chris@69 3649 ;
Chris@69 3650 return 0;
Chris@69 3651 }
Chris@69 3652 _ACEOF
Chris@69 3653 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 3654 break
Chris@69 3655 fi
Chris@69 3656 rm -f core conftest.err conftest.$ac_objext
Chris@69 3657 CC="$CC -n32"
Chris@69 3658 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 3659 ac_cv_sys_largefile_CC=' -n32'; break
Chris@69 3660 fi
Chris@69 3661 rm -f core conftest.err conftest.$ac_objext
Chris@69 3662 break
Chris@69 3663 done
Chris@69 3664 CC=$ac_save_CC
Chris@69 3665 rm -f conftest.$ac_ext
Chris@69 3666 fi
Chris@69 3667 fi
Chris@69 3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
Chris@69 3669 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
Chris@69 3670 if test "$ac_cv_sys_largefile_CC" != no; then
Chris@69 3671 CC=$CC$ac_cv_sys_largefile_CC
Chris@69 3672 fi
Chris@69 3673
Chris@69 3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
Chris@69 3675 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
Chris@69 3676 if ${ac_cv_sys_file_offset_bits+:} false; then :
Chris@69 3677 $as_echo_n "(cached) " >&6
Chris@69 3678 else
Chris@69 3679 while :; do
Chris@69 3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 3681 /* end confdefs.h. */
Chris@69 3682 #include <sys/types.h>
Chris@69 3683 /* Check that off_t can represent 2**63 - 1 correctly.
Chris@69 3684 We can't simply define LARGE_OFF_T to be 9223372036854775807,
Chris@69 3685 since some C++ compilers masquerading as C compilers
Chris@69 3686 incorrectly reject 9223372036854775807. */
Chris@69 3687 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
Chris@69 3688 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
Chris@69 3689 && LARGE_OFF_T % 2147483647 == 1)
Chris@69 3690 ? 1 : -1];
Chris@69 3691 int
Chris@69 3692 main ()
Chris@69 3693 {
Chris@69 3694
Chris@69 3695 ;
Chris@69 3696 return 0;
Chris@69 3697 }
Chris@69 3698 _ACEOF
Chris@69 3699 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 3700 ac_cv_sys_file_offset_bits=no; break
Chris@69 3701 fi
Chris@69 3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 3704 /* end confdefs.h. */
Chris@69 3705 #define _FILE_OFFSET_BITS 64
Chris@69 3706 #include <sys/types.h>
Chris@69 3707 /* Check that off_t can represent 2**63 - 1 correctly.
Chris@69 3708 We can't simply define LARGE_OFF_T to be 9223372036854775807,
Chris@69 3709 since some C++ compilers masquerading as C compilers
Chris@69 3710 incorrectly reject 9223372036854775807. */
Chris@69 3711 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
Chris@69 3712 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
Chris@69 3713 && LARGE_OFF_T % 2147483647 == 1)
Chris@69 3714 ? 1 : -1];
Chris@69 3715 int
Chris@69 3716 main ()
Chris@69 3717 {
Chris@69 3718
Chris@69 3719 ;
Chris@69 3720 return 0;
Chris@69 3721 }
Chris@69 3722 _ACEOF
Chris@69 3723 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 3724 ac_cv_sys_file_offset_bits=64; break
Chris@69 3725 fi
Chris@69 3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 3727 ac_cv_sys_file_offset_bits=unknown
Chris@69 3728 break
Chris@69 3729 done
Chris@69 3730 fi
Chris@69 3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
Chris@69 3732 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
Chris@69 3733 case $ac_cv_sys_file_offset_bits in #(
Chris@69 3734 no | unknown) ;;
Chris@69 3735 *)
Chris@69 3736 cat >>confdefs.h <<_ACEOF
Chris@69 3737 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
Chris@69 3738 _ACEOF
Chris@69 3739 ;;
Chris@69 3740 esac
Chris@69 3741 rm -rf conftest*
Chris@69 3742 if test $ac_cv_sys_file_offset_bits = unknown; then
Chris@69 3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
Chris@69 3744 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
Chris@69 3745 if ${ac_cv_sys_large_files+:} false; then :
Chris@69 3746 $as_echo_n "(cached) " >&6
Chris@69 3747 else
Chris@69 3748 while :; do
Chris@69 3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 3750 /* end confdefs.h. */
Chris@69 3751 #include <sys/types.h>
Chris@69 3752 /* Check that off_t can represent 2**63 - 1 correctly.
Chris@69 3753 We can't simply define LARGE_OFF_T to be 9223372036854775807,
Chris@69 3754 since some C++ compilers masquerading as C compilers
Chris@69 3755 incorrectly reject 9223372036854775807. */
Chris@69 3756 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
Chris@69 3757 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
Chris@69 3758 && LARGE_OFF_T % 2147483647 == 1)
Chris@69 3759 ? 1 : -1];
Chris@69 3760 int
Chris@69 3761 main ()
Chris@69 3762 {
Chris@69 3763
Chris@69 3764 ;
Chris@69 3765 return 0;
Chris@69 3766 }
Chris@69 3767 _ACEOF
Chris@69 3768 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 3769 ac_cv_sys_large_files=no; break
Chris@69 3770 fi
Chris@69 3771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 3773 /* end confdefs.h. */
Chris@69 3774 #define _LARGE_FILES 1
Chris@69 3775 #include <sys/types.h>
Chris@69 3776 /* Check that off_t can represent 2**63 - 1 correctly.
Chris@69 3777 We can't simply define LARGE_OFF_T to be 9223372036854775807,
Chris@69 3778 since some C++ compilers masquerading as C compilers
Chris@69 3779 incorrectly reject 9223372036854775807. */
Chris@69 3780 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
Chris@69 3781 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
Chris@69 3782 && LARGE_OFF_T % 2147483647 == 1)
Chris@69 3783 ? 1 : -1];
Chris@69 3784 int
Chris@69 3785 main ()
Chris@69 3786 {
Chris@69 3787
Chris@69 3788 ;
Chris@69 3789 return 0;
Chris@69 3790 }
Chris@69 3791 _ACEOF
Chris@69 3792 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 3793 ac_cv_sys_large_files=1; break
Chris@69 3794 fi
Chris@69 3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 3796 ac_cv_sys_large_files=unknown
Chris@69 3797 break
Chris@69 3798 done
Chris@69 3799 fi
Chris@69 3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
Chris@69 3801 $as_echo "$ac_cv_sys_large_files" >&6; }
Chris@69 3802 case $ac_cv_sys_large_files in #(
Chris@69 3803 no | unknown) ;;
Chris@69 3804 *)
Chris@69 3805 cat >>confdefs.h <<_ACEOF
Chris@69 3806 #define _LARGE_FILES $ac_cv_sys_large_files
Chris@69 3807 _ACEOF
Chris@69 3808 ;;
Chris@69 3809 esac
Chris@69 3810 rm -rf conftest*
Chris@69 3811 fi
Chris@69 3812
Chris@69 3813
Chris@69 3814 fi
Chris@69 3815
Chris@69 3816
Chris@69 3817 am__api_version='1.15'
Chris@69 3818
Chris@69 3819 # Find a good install program. We prefer a C program (faster),
Chris@69 3820 # so one script is as good as another. But avoid the broken or
Chris@69 3821 # incompatible versions:
Chris@69 3822 # SysV /etc/install, /usr/sbin/install
Chris@69 3823 # SunOS /usr/etc/install
Chris@69 3824 # IRIX /sbin/install
Chris@69 3825 # AIX /bin/install
Chris@69 3826 # AmigaOS /C/install, which installs bootblocks on floppy discs
Chris@69 3827 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Chris@69 3828 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
Chris@69 3829 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Chris@69 3830 # OS/2's system install, which has a completely different semantic
Chris@69 3831 # ./install, which can be erroneously created by make from ./install.sh.
Chris@69 3832 # Reject install programs that cannot install multiple files.
Chris@69 3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Chris@69 3834 $as_echo_n "checking for a BSD-compatible install... " >&6; }
Chris@69 3835 if test -z "$INSTALL"; then
Chris@69 3836 if ${ac_cv_path_install+:} false; then :
Chris@69 3837 $as_echo_n "(cached) " >&6
Chris@69 3838 else
Chris@69 3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 3840 for as_dir in $PATH
Chris@69 3841 do
Chris@69 3842 IFS=$as_save_IFS
Chris@69 3843 test -z "$as_dir" && as_dir=.
Chris@69 3844 # Account for people who put trailing slashes in PATH elements.
Chris@69 3845 case $as_dir/ in #((
Chris@69 3846 ./ | .// | /[cC]/* | \
Chris@69 3847 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Chris@69 3848 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Chris@69 3849 /usr/ucb/* ) ;;
Chris@69 3850 *)
Chris@69 3851 # OSF1 and SCO ODT 3.0 have their own names for install.
Chris@69 3852 # Don't use installbsd from OSF since it installs stuff as root
Chris@69 3853 # by default.
Chris@69 3854 for ac_prog in ginstall scoinst install; do
Chris@69 3855 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 3856 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Chris@69 3857 if test $ac_prog = install &&
Chris@69 3858 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@69 3859 # AIX install. It has an incompatible calling convention.
Chris@69 3860 :
Chris@69 3861 elif test $ac_prog = install &&
Chris@69 3862 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@69 3863 # program-specific install script used by HP pwplus--don't use.
Chris@69 3864 :
Chris@69 3865 else
Chris@69 3866 rm -rf conftest.one conftest.two conftest.dir
Chris@69 3867 echo one > conftest.one
Chris@69 3868 echo two > conftest.two
Chris@69 3869 mkdir conftest.dir
Chris@69 3870 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
Chris@69 3871 test -s conftest.one && test -s conftest.two &&
Chris@69 3872 test -s conftest.dir/conftest.one &&
Chris@69 3873 test -s conftest.dir/conftest.two
Chris@69 3874 then
Chris@69 3875 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
Chris@69 3876 break 3
Chris@69 3877 fi
Chris@69 3878 fi
Chris@69 3879 fi
Chris@69 3880 done
Chris@69 3881 done
Chris@69 3882 ;;
Chris@69 3883 esac
Chris@69 3884
Chris@69 3885 done
Chris@69 3886 IFS=$as_save_IFS
Chris@69 3887
Chris@69 3888 rm -rf conftest.one conftest.two conftest.dir
Chris@69 3889
Chris@69 3890 fi
Chris@69 3891 if test "${ac_cv_path_install+set}" = set; then
Chris@69 3892 INSTALL=$ac_cv_path_install
Chris@69 3893 else
Chris@69 3894 # As a last resort, use the slow shell script. Don't cache a
Chris@69 3895 # value for INSTALL within a source directory, because that will
Chris@69 3896 # break other packages using the cache if that directory is
Chris@69 3897 # removed, or if the value is a relative name.
Chris@69 3898 INSTALL=$ac_install_sh
Chris@69 3899 fi
Chris@69 3900 fi
Chris@69 3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Chris@69 3902 $as_echo "$INSTALL" >&6; }
Chris@69 3903
Chris@69 3904 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
Chris@69 3905 # It thinks the first close brace ends the variable substitution.
Chris@69 3906 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Chris@69 3907
Chris@69 3908 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Chris@69 3909
Chris@69 3910 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Chris@69 3911
Chris@69 3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
Chris@69 3913 $as_echo_n "checking whether build environment is sane... " >&6; }
Chris@69 3914 # Reject unsafe characters in $srcdir or the absolute working directory
Chris@69 3915 # name. Accept space and tab only in the latter.
Chris@69 3916 am_lf='
Chris@69 3917 '
Chris@69 3918 case `pwd` in
Chris@69 3919 *[\\\"\#\$\&\'\`$am_lf]*)
Chris@69 3920 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Chris@69 3921 esac
Chris@69 3922 case $srcdir in
Chris@69 3923 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Chris@69 3924 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
Chris@69 3925 esac
Chris@69 3926
Chris@69 3927 # Do 'set' in a subshell so we don't clobber the current shell's
Chris@69 3928 # arguments. Must try -L first in case configure is actually a
Chris@69 3929 # symlink; some systems play weird games with the mod time of symlinks
Chris@69 3930 # (eg FreeBSD returns the mod time of the symlink's containing
Chris@69 3931 # directory).
Chris@69 3932 if (
Chris@69 3933 am_has_slept=no
Chris@69 3934 for am_try in 1 2; do
Chris@69 3935 echo "timestamp, slept: $am_has_slept" > conftest.file
Chris@69 3936 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Chris@69 3937 if test "$*" = "X"; then
Chris@69 3938 # -L didn't work.
Chris@69 3939 set X `ls -t "$srcdir/configure" conftest.file`
Chris@69 3940 fi
Chris@69 3941 if test "$*" != "X $srcdir/configure conftest.file" \
Chris@69 3942 && test "$*" != "X conftest.file $srcdir/configure"; then
Chris@69 3943
Chris@69 3944 # If neither matched, then we have a broken ls. This can happen
Chris@69 3945 # if, for instance, CONFIG_SHELL is bash and it inherits a
Chris@69 3946 # broken ls alias from the environment. This has actually
Chris@69 3947 # happened. Such a system could not be considered "sane".
Chris@69 3948 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
Chris@69 3949 alias in your environment" "$LINENO" 5
Chris@69 3950 fi
Chris@69 3951 if test "$2" = conftest.file || test $am_try -eq 2; then
Chris@69 3952 break
Chris@69 3953 fi
Chris@69 3954 # Just in case.
Chris@69 3955 sleep 1
Chris@69 3956 am_has_slept=yes
Chris@69 3957 done
Chris@69 3958 test "$2" = conftest.file
Chris@69 3959 )
Chris@69 3960 then
Chris@69 3961 # Ok.
Chris@69 3962 :
Chris@69 3963 else
Chris@69 3964 as_fn_error $? "newly created file is older than distributed files!
Chris@69 3965 Check your system clock" "$LINENO" 5
Chris@69 3966 fi
Chris@69 3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 3968 $as_echo "yes" >&6; }
Chris@69 3969 # If we didn't sleep, we still need to ensure time stamps of config.status and
Chris@69 3970 # generated files are strictly newer.
Chris@69 3971 am_sleep_pid=
Chris@69 3972 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
Chris@69 3973 ( sleep 1 ) &
Chris@69 3974 am_sleep_pid=$!
Chris@69 3975 fi
Chris@69 3976
Chris@69 3977 rm -f conftest.file
Chris@69 3978
Chris@69 3979 test "$program_prefix" != NONE &&
Chris@69 3980 program_transform_name="s&^&$program_prefix&;$program_transform_name"
Chris@69 3981 # Use a double $ so make ignores it.
Chris@69 3982 test "$program_suffix" != NONE &&
Chris@69 3983 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Chris@69 3984 # Double any \ or $.
Chris@69 3985 # By default was `s,x,x', remove it if useless.
Chris@69 3986 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
Chris@69 3987 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Chris@69 3988
Chris@69 3989 if test x"${MISSING+set}" != xset; then
Chris@69 3990 case $am_aux_dir in
Chris@69 3991 *\ * | *\ *)
Chris@69 3992 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
Chris@69 3993 *)
Chris@69 3994 MISSING="\${SHELL} $am_aux_dir/missing" ;;
Chris@69 3995 esac
Chris@69 3996 fi
Chris@69 3997 # Use eval to expand $SHELL
Chris@69 3998 if eval "$MISSING --is-lightweight"; then
Chris@69 3999 am_missing_run="$MISSING "
Chris@69 4000 else
Chris@69 4001 am_missing_run=
Chris@69 4002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
Chris@69 4003 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
Chris@69 4004 fi
Chris@69 4005
Chris@69 4006 if test x"${install_sh+set}" != xset; then
Chris@69 4007 case $am_aux_dir in
Chris@69 4008 *\ * | *\ *)
Chris@69 4009 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
Chris@69 4010 *)
Chris@69 4011 install_sh="\${SHELL} $am_aux_dir/install-sh"
Chris@69 4012 esac
Chris@69 4013 fi
Chris@69 4014
Chris@69 4015 # Installed binaries are usually stripped using 'strip' when the user
Chris@69 4016 # run "make install-strip". However 'strip' might not be the right
Chris@69 4017 # tool to use in cross-compilation environments, therefore Automake
Chris@69 4018 # will honor the 'STRIP' environment variable to overrule this program.
Chris@69 4019 if test "$cross_compiling" != no; then
Chris@69 4020 if test -n "$ac_tool_prefix"; then
Chris@69 4021 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Chris@69 4022 set dummy ${ac_tool_prefix}strip; ac_word=$2
Chris@69 4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 4024 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 4025 if ${ac_cv_prog_STRIP+:} false; then :
Chris@69 4026 $as_echo_n "(cached) " >&6
Chris@69 4027 else
Chris@69 4028 if test -n "$STRIP"; then
Chris@69 4029 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
Chris@69 4030 else
Chris@69 4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 4032 for as_dir in $PATH
Chris@69 4033 do
Chris@69 4034 IFS=$as_save_IFS
Chris@69 4035 test -z "$as_dir" && as_dir=.
Chris@69 4036 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 4037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 4038 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Chris@69 4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 4040 break 2
Chris@69 4041 fi
Chris@69 4042 done
Chris@69 4043 done
Chris@69 4044 IFS=$as_save_IFS
Chris@69 4045
Chris@69 4046 fi
Chris@69 4047 fi
Chris@69 4048 STRIP=$ac_cv_prog_STRIP
Chris@69 4049 if test -n "$STRIP"; then
Chris@69 4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Chris@69 4051 $as_echo "$STRIP" >&6; }
Chris@69 4052 else
Chris@69 4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 4054 $as_echo "no" >&6; }
Chris@69 4055 fi
Chris@69 4056
Chris@69 4057
Chris@69 4058 fi
Chris@69 4059 if test -z "$ac_cv_prog_STRIP"; then
Chris@69 4060 ac_ct_STRIP=$STRIP
Chris@69 4061 # Extract the first word of "strip", so it can be a program name with args.
Chris@69 4062 set dummy strip; ac_word=$2
Chris@69 4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 4064 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 4065 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Chris@69 4066 $as_echo_n "(cached) " >&6
Chris@69 4067 else
Chris@69 4068 if test -n "$ac_ct_STRIP"; then
Chris@69 4069 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Chris@69 4070 else
Chris@69 4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 4072 for as_dir in $PATH
Chris@69 4073 do
Chris@69 4074 IFS=$as_save_IFS
Chris@69 4075 test -z "$as_dir" && as_dir=.
Chris@69 4076 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 4077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 4078 ac_cv_prog_ac_ct_STRIP="strip"
Chris@69 4079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 4080 break 2
Chris@69 4081 fi
Chris@69 4082 done
Chris@69 4083 done
Chris@69 4084 IFS=$as_save_IFS
Chris@69 4085
Chris@69 4086 fi
Chris@69 4087 fi
Chris@69 4088 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
Chris@69 4089 if test -n "$ac_ct_STRIP"; then
Chris@69 4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Chris@69 4091 $as_echo "$ac_ct_STRIP" >&6; }
Chris@69 4092 else
Chris@69 4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 4094 $as_echo "no" >&6; }
Chris@69 4095 fi
Chris@69 4096
Chris@69 4097 if test "x$ac_ct_STRIP" = x; then
Chris@69 4098 STRIP=":"
Chris@69 4099 else
Chris@69 4100 case $cross_compiling:$ac_tool_warned in
Chris@69 4101 yes:)
Chris@69 4102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 4103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 4104 ac_tool_warned=yes ;;
Chris@69 4105 esac
Chris@69 4106 STRIP=$ac_ct_STRIP
Chris@69 4107 fi
Chris@69 4108 else
Chris@69 4109 STRIP="$ac_cv_prog_STRIP"
Chris@69 4110 fi
Chris@69 4111
Chris@69 4112 fi
Chris@69 4113 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Chris@69 4114
Chris@69 4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
Chris@69 4116 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Chris@69 4117 if test -z "$MKDIR_P"; then
Chris@69 4118 if ${ac_cv_path_mkdir+:} false; then :
Chris@69 4119 $as_echo_n "(cached) " >&6
Chris@69 4120 else
Chris@69 4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 4122 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
Chris@69 4123 do
Chris@69 4124 IFS=$as_save_IFS
Chris@69 4125 test -z "$as_dir" && as_dir=.
Chris@69 4126 for ac_prog in mkdir gmkdir; do
Chris@69 4127 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 4128 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Chris@69 4129 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
Chris@69 4130 'mkdir (GNU coreutils) '* | \
Chris@69 4131 'mkdir (coreutils) '* | \
Chris@69 4132 'mkdir (fileutils) '4.1*)
Chris@69 4133 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
Chris@69 4134 break 3;;
Chris@69 4135 esac
Chris@69 4136 done
Chris@69 4137 done
Chris@69 4138 done
Chris@69 4139 IFS=$as_save_IFS
Chris@69 4140
Chris@69 4141 fi
Chris@69 4142
Chris@69 4143 test -d ./--version && rmdir ./--version
Chris@69 4144 if test "${ac_cv_path_mkdir+set}" = set; then
Chris@69 4145 MKDIR_P="$ac_cv_path_mkdir -p"
Chris@69 4146 else
Chris@69 4147 # As a last resort, use the slow shell script. Don't cache a
Chris@69 4148 # value for MKDIR_P within a source directory, because that will
Chris@69 4149 # break other packages using the cache if that directory is
Chris@69 4150 # removed, or if the value is a relative name.
Chris@69 4151 MKDIR_P="$ac_install_sh -d"
Chris@69 4152 fi
Chris@69 4153 fi
Chris@69 4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
Chris@69 4155 $as_echo "$MKDIR_P" >&6; }
Chris@69 4156
Chris@69 4157 for ac_prog in gawk mawk nawk awk
Chris@69 4158 do
Chris@69 4159 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@69 4160 set dummy $ac_prog; ac_word=$2
Chris@69 4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 4162 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 4163 if ${ac_cv_prog_AWK+:} false; then :
Chris@69 4164 $as_echo_n "(cached) " >&6
Chris@69 4165 else
Chris@69 4166 if test -n "$AWK"; then
Chris@69 4167 ac_cv_prog_AWK="$AWK" # Let the user override the test.
Chris@69 4168 else
Chris@69 4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 4170 for as_dir in $PATH
Chris@69 4171 do
Chris@69 4172 IFS=$as_save_IFS
Chris@69 4173 test -z "$as_dir" && as_dir=.
Chris@69 4174 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 4175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 4176 ac_cv_prog_AWK="$ac_prog"
Chris@69 4177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 4178 break 2
Chris@69 4179 fi
Chris@69 4180 done
Chris@69 4181 done
Chris@69 4182 IFS=$as_save_IFS
Chris@69 4183
Chris@69 4184 fi
Chris@69 4185 fi
Chris@69 4186 AWK=$ac_cv_prog_AWK
Chris@69 4187 if test -n "$AWK"; then
Chris@69 4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Chris@69 4189 $as_echo "$AWK" >&6; }
Chris@69 4190 else
Chris@69 4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 4192 $as_echo "no" >&6; }
Chris@69 4193 fi
Chris@69 4194
Chris@69 4195
Chris@69 4196 test -n "$AWK" && break
Chris@69 4197 done
Chris@69 4198
Chris@69 4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Chris@69 4200 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
Chris@69 4201 set x ${MAKE-make}
Chris@69 4202 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Chris@69 4203 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Chris@69 4204 $as_echo_n "(cached) " >&6
Chris@69 4205 else
Chris@69 4206 cat >conftest.make <<\_ACEOF
Chris@69 4207 SHELL = /bin/sh
Chris@69 4208 all:
Chris@69 4209 @echo '@@@%%%=$(MAKE)=@@@%%%'
Chris@69 4210 _ACEOF
Chris@69 4211 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Chris@69 4212 case `${MAKE-make} -f conftest.make 2>/dev/null` in
Chris@69 4213 *@@@%%%=?*=@@@%%%*)
Chris@69 4214 eval ac_cv_prog_make_${ac_make}_set=yes;;
Chris@69 4215 *)
Chris@69 4216 eval ac_cv_prog_make_${ac_make}_set=no;;
Chris@69 4217 esac
Chris@69 4218 rm -f conftest.make
Chris@69 4219 fi
Chris@69 4220 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Chris@69 4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 4222 $as_echo "yes" >&6; }
Chris@69 4223 SET_MAKE=
Chris@69 4224 else
Chris@69 4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 4226 $as_echo "no" >&6; }
Chris@69 4227 SET_MAKE="MAKE=${MAKE-make}"
Chris@69 4228 fi
Chris@69 4229
Chris@69 4230 rm -rf .tst 2>/dev/null
Chris@69 4231 mkdir .tst 2>/dev/null
Chris@69 4232 if test -d .tst; then
Chris@69 4233 am__leading_dot=.
Chris@69 4234 else
Chris@69 4235 am__leading_dot=_
Chris@69 4236 fi
Chris@69 4237 rmdir .tst 2>/dev/null
Chris@69 4238
Chris@69 4239 DEPDIR="${am__leading_dot}deps"
Chris@69 4240
Chris@69 4241 ac_config_commands="$ac_config_commands depfiles"
Chris@69 4242
Chris@69 4243
Chris@69 4244 am_make=${MAKE-make}
Chris@69 4245 cat > confinc << 'END'
Chris@69 4246 am__doit:
Chris@69 4247 @echo this is the am__doit target
Chris@69 4248 .PHONY: am__doit
Chris@69 4249 END
Chris@69 4250 # If we don't find an include directive, just comment out the code.
Chris@69 4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
Chris@69 4252 $as_echo_n "checking for style of include used by $am_make... " >&6; }
Chris@69 4253 am__include="#"
Chris@69 4254 am__quote=
Chris@69 4255 _am_result=none
Chris@69 4256 # First try GNU make style include.
Chris@69 4257 echo "include confinc" > confmf
Chris@69 4258 # Ignore all kinds of additional output from 'make'.
Chris@69 4259 case `$am_make -s -f confmf 2> /dev/null` in #(
Chris@69 4260 *the\ am__doit\ target*)
Chris@69 4261 am__include=include
Chris@69 4262 am__quote=
Chris@69 4263 _am_result=GNU
Chris@69 4264 ;;
Chris@69 4265 esac
Chris@69 4266 # Now try BSD make style include.
Chris@69 4267 if test "$am__include" = "#"; then
Chris@69 4268 echo '.include "confinc"' > confmf
Chris@69 4269 case `$am_make -s -f confmf 2> /dev/null` in #(
Chris@69 4270 *the\ am__doit\ target*)
Chris@69 4271 am__include=.include
Chris@69 4272 am__quote="\""
Chris@69 4273 _am_result=BSD
Chris@69 4274 ;;
Chris@69 4275 esac
Chris@69 4276 fi
Chris@69 4277
Chris@69 4278
Chris@69 4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
Chris@69 4280 $as_echo "$_am_result" >&6; }
Chris@69 4281 rm -f confinc confmf
Chris@69 4282
Chris@69 4283 # Check whether --enable-dependency-tracking was given.
Chris@69 4284 if test "${enable_dependency_tracking+set}" = set; then :
Chris@69 4285 enableval=$enable_dependency_tracking;
Chris@69 4286 fi
Chris@69 4287
Chris@69 4288 if test "x$enable_dependency_tracking" != xno; then
Chris@69 4289 am_depcomp="$ac_aux_dir/depcomp"
Chris@69 4290 AMDEPBACKSLASH='\'
Chris@69 4291 am__nodep='_no'
Chris@69 4292 fi
Chris@69 4293 if test "x$enable_dependency_tracking" != xno; then
Chris@69 4294 AMDEP_TRUE=
Chris@69 4295 AMDEP_FALSE='#'
Chris@69 4296 else
Chris@69 4297 AMDEP_TRUE='#'
Chris@69 4298 AMDEP_FALSE=
Chris@69 4299 fi
Chris@69 4300
Chris@69 4301
Chris@69 4302 # Check whether --enable-silent-rules was given.
Chris@69 4303 if test "${enable_silent_rules+set}" = set; then :
Chris@69 4304 enableval=$enable_silent_rules;
Chris@69 4305 fi
Chris@69 4306
Chris@69 4307 case $enable_silent_rules in # (((
Chris@69 4308 yes) AM_DEFAULT_VERBOSITY=0;;
Chris@69 4309 no) AM_DEFAULT_VERBOSITY=1;;
Chris@69 4310 *) AM_DEFAULT_VERBOSITY=1;;
Chris@69 4311 esac
Chris@69 4312 am_make=${MAKE-make}
Chris@69 4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
Chris@69 4314 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
Chris@69 4315 if ${am_cv_make_support_nested_variables+:} false; then :
Chris@69 4316 $as_echo_n "(cached) " >&6
Chris@69 4317 else
Chris@69 4318 if $as_echo 'TRUE=$(BAR$(V))
Chris@69 4319 BAR0=false
Chris@69 4320 BAR1=true
Chris@69 4321 V=1
Chris@69 4322 am__doit:
Chris@69 4323 @$(TRUE)
Chris@69 4324 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
Chris@69 4325 am_cv_make_support_nested_variables=yes
Chris@69 4326 else
Chris@69 4327 am_cv_make_support_nested_variables=no
Chris@69 4328 fi
Chris@69 4329 fi
Chris@69 4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
Chris@69 4331 $as_echo "$am_cv_make_support_nested_variables" >&6; }
Chris@69 4332 if test $am_cv_make_support_nested_variables = yes; then
Chris@69 4333 AM_V='$(V)'
Chris@69 4334 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
Chris@69 4335 else
Chris@69 4336 AM_V=$AM_DEFAULT_VERBOSITY
Chris@69 4337 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
Chris@69 4338 fi
Chris@69 4339 AM_BACKSLASH='\'
Chris@69 4340
Chris@69 4341 if test "`cd $srcdir && pwd`" != "`pwd`"; then
Chris@69 4342 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
Chris@69 4343 # is not polluted with repeated "-I."
Chris@69 4344 am__isrc=' -I$(srcdir)'
Chris@69 4345 # test to see if srcdir already configured
Chris@69 4346 if test -f $srcdir/config.status; then
Chris@69 4347 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Chris@69 4348 fi
Chris@69 4349 fi
Chris@69 4350
Chris@69 4351 # test whether we have cygpath
Chris@69 4352 if test -z "$CYGPATH_W"; then
Chris@69 4353 if (cygpath --version) >/dev/null 2>/dev/null; then
Chris@69 4354 CYGPATH_W='cygpath -w'
Chris@69 4355 else
Chris@69 4356 CYGPATH_W=echo
Chris@69 4357 fi
Chris@69 4358 fi
Chris@69 4359
Chris@69 4360
Chris@69 4361 # Define the identity of the package.
Chris@69 4362 PACKAGE='opusfile'
Chris@69 4363 VERSION='0.9'
Chris@69 4364
Chris@69 4365
Chris@69 4366 # Some tools Automake needs.
Chris@69 4367
Chris@69 4368 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
Chris@69 4369
Chris@69 4370
Chris@69 4371 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
Chris@69 4372
Chris@69 4373
Chris@69 4374 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
Chris@69 4375
Chris@69 4376
Chris@69 4377 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
Chris@69 4378
Chris@69 4379
Chris@69 4380 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
Chris@69 4381
Chris@69 4382 # For better backward compatibility. To be removed once Automake 1.9.x
Chris@69 4383 # dies out for good. For more background, see:
Chris@69 4384 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
Chris@69 4385 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
Chris@69 4386 mkdir_p='$(MKDIR_P)'
Chris@69 4387
Chris@69 4388 # We need awk for the "check" target (and possibly the TAP driver). The
Chris@69 4389 # system "awk" is bad on some platforms.
Chris@69 4390 # Always define AMTAR for backward compatibility. Yes, it's still used
Chris@69 4391 # in the wild :-( We should find a proper way to deprecate it ...
Chris@69 4392 AMTAR='$${TAR-tar}'
Chris@69 4393
Chris@69 4394
Chris@69 4395 # We'll loop over all known methods to create a tar archive until one works.
Chris@69 4396 _am_tools='gnutar pax cpio none'
Chris@69 4397
Chris@69 4398 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
Chris@69 4399
Chris@69 4400
Chris@69 4401
Chris@69 4402
Chris@69 4403
Chris@69 4404 depcc="$CC" am_compiler_list=
Chris@69 4405
Chris@69 4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Chris@69 4407 $as_echo_n "checking dependency style of $depcc... " >&6; }
Chris@69 4408 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Chris@69 4409 $as_echo_n "(cached) " >&6
Chris@69 4410 else
Chris@69 4411 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
Chris@69 4412 # We make a subdir and do the tests there. Otherwise we can end up
Chris@69 4413 # making bogus files that we don't know about and never remove. For
Chris@69 4414 # instance it was reported that on HP-UX the gcc test will end up
Chris@69 4415 # making a dummy file named 'D' -- because '-MD' means "put the output
Chris@69 4416 # in D".
Chris@69 4417 rm -rf conftest.dir
Chris@69 4418 mkdir conftest.dir
Chris@69 4419 # Copy depcomp to subdir because otherwise we won't find it if we're
Chris@69 4420 # using a relative directory.
Chris@69 4421 cp "$am_depcomp" conftest.dir
Chris@69 4422 cd conftest.dir
Chris@69 4423 # We will build objects and dependencies in a subdirectory because
Chris@69 4424 # it helps to detect inapplicable dependency modes. For instance
Chris@69 4425 # both Tru64's cc and ICC support -MD to output dependencies as a
Chris@69 4426 # side effect of compilation, but ICC will put the dependencies in
Chris@69 4427 # the current directory while Tru64 will put them in the object
Chris@69 4428 # directory.
Chris@69 4429 mkdir sub
Chris@69 4430
Chris@69 4431 am_cv_CC_dependencies_compiler_type=none
Chris@69 4432 if test "$am_compiler_list" = ""; then
Chris@69 4433 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
Chris@69 4434 fi
Chris@69 4435 am__universal=false
Chris@69 4436 case " $depcc " in #(
Chris@69 4437 *\ -arch\ *\ -arch\ *) am__universal=true ;;
Chris@69 4438 esac
Chris@69 4439
Chris@69 4440 for depmode in $am_compiler_list; do
Chris@69 4441 # Setup a source with many dependencies, because some compilers
Chris@69 4442 # like to wrap large dependency lists on column 80 (with \), and
Chris@69 4443 # we should not choose a depcomp mode which is confused by this.
Chris@69 4444 #
Chris@69 4445 # We need to recreate these files for each test, as the compiler may
Chris@69 4446 # overwrite some of them when testing with obscure command lines.
Chris@69 4447 # This happens at least with the AIX C compiler.
Chris@69 4448 : > sub/conftest.c
Chris@69 4449 for i in 1 2 3 4 5 6; do
Chris@69 4450 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Chris@69 4451 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
Chris@69 4452 # Solaris 10 /bin/sh.
Chris@69 4453 echo '/* dummy */' > sub/conftst$i.h
Chris@69 4454 done
Chris@69 4455 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Chris@69 4456
Chris@69 4457 # We check with '-c' and '-o' for the sake of the "dashmstdout"
Chris@69 4458 # mode. It turns out that the SunPro C++ compiler does not properly
Chris@69 4459 # handle '-M -o', and we need to detect this. Also, some Intel
Chris@69 4460 # versions had trouble with output in subdirs.
Chris@69 4461 am__obj=sub/conftest.${OBJEXT-o}
Chris@69 4462 am__minus_obj="-o $am__obj"
Chris@69 4463 case $depmode in
Chris@69 4464 gcc)
Chris@69 4465 # This depmode causes a compiler race in universal mode.
Chris@69 4466 test "$am__universal" = false || continue
Chris@69 4467 ;;
Chris@69 4468 nosideeffect)
Chris@69 4469 # After this tag, mechanisms are not by side-effect, so they'll
Chris@69 4470 # only be used when explicitly requested.
Chris@69 4471 if test "x$enable_dependency_tracking" = xyes; then
Chris@69 4472 continue
Chris@69 4473 else
Chris@69 4474 break
Chris@69 4475 fi
Chris@69 4476 ;;
Chris@69 4477 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
Chris@69 4478 # This compiler won't grok '-c -o', but also, the minuso test has
Chris@69 4479 # not run yet. These depmodes are late enough in the game, and
Chris@69 4480 # so weak that their functioning should not be impacted.
Chris@69 4481 am__obj=conftest.${OBJEXT-o}
Chris@69 4482 am__minus_obj=
Chris@69 4483 ;;
Chris@69 4484 none) break ;;
Chris@69 4485 esac
Chris@69 4486 if depmode=$depmode \
Chris@69 4487 source=sub/conftest.c object=$am__obj \
Chris@69 4488 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Chris@69 4489 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Chris@69 4490 >/dev/null 2>conftest.err &&
Chris@69 4491 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@69 4492 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@69 4493 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Chris@69 4494 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Chris@69 4495 # icc doesn't choke on unknown options, it will just issue warnings
Chris@69 4496 # or remarks (even with -Werror). So we grep stderr for any message
Chris@69 4497 # that says an option was ignored or not supported.
Chris@69 4498 # When given -MP, icc 7.0 and 7.1 complain thusly:
Chris@69 4499 # icc: Command line warning: ignoring option '-M'; no argument required
Chris@69 4500 # The diagnosis changed in icc 8.0:
Chris@69 4501 # icc: Command line remark: option '-MP' not supported
Chris@69 4502 if (grep 'ignoring option' conftest.err ||
Chris@69 4503 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Chris@69 4504 am_cv_CC_dependencies_compiler_type=$depmode
Chris@69 4505 break
Chris@69 4506 fi
Chris@69 4507 fi
Chris@69 4508 done
Chris@69 4509
Chris@69 4510 cd ..
Chris@69 4511 rm -rf conftest.dir
Chris@69 4512 else
Chris@69 4513 am_cv_CC_dependencies_compiler_type=none
Chris@69 4514 fi
Chris@69 4515
Chris@69 4516 fi
Chris@69 4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Chris@69 4518 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Chris@69 4519 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
Chris@69 4520
Chris@69 4521 if
Chris@69 4522 test "x$enable_dependency_tracking" != xno \
Chris@69 4523 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
Chris@69 4524 am__fastdepCC_TRUE=
Chris@69 4525 am__fastdepCC_FALSE='#'
Chris@69 4526 else
Chris@69 4527 am__fastdepCC_TRUE='#'
Chris@69 4528 am__fastdepCC_FALSE=
Chris@69 4529 fi
Chris@69 4530
Chris@69 4531
Chris@69 4532
Chris@69 4533 # POSIX will say in a future version that running "rm -f" with no argument
Chris@69 4534 # is OK; and we want to be able to make that assumption in our Makefile
Chris@69 4535 # recipes. So use an aggressive probe to check that the usage we want is
Chris@69 4536 # actually supported "in the wild" to an acceptable degree.
Chris@69 4537 # See automake bug#10828.
Chris@69 4538 # To make any issue more visible, cause the running configure to be aborted
Chris@69 4539 # by default if the 'rm' program in use doesn't match our expectations; the
Chris@69 4540 # user can still override this though.
Chris@69 4541 if rm -f && rm -fr && rm -rf; then : OK; else
Chris@69 4542 cat >&2 <<'END'
Chris@69 4543 Oops!
Chris@69 4544
Chris@69 4545 Your 'rm' program seems unable to run without file operands specified
Chris@69 4546 on the command line, even when the '-f' option is present. This is contrary
Chris@69 4547 to the behaviour of most rm programs out there, and not conforming with
Chris@69 4548 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
Chris@69 4549
Chris@69 4550 Please tell bug-automake@gnu.org about your system, including the value
Chris@69 4551 of your $PATH and any error possibly output before this message. This
Chris@69 4552 can help us improve future automake versions.
Chris@69 4553
Chris@69 4554 END
Chris@69 4555 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
Chris@69 4556 echo 'Configuration will proceed anyway, since you have set the' >&2
Chris@69 4557 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
Chris@69 4558 echo >&2
Chris@69 4559 else
Chris@69 4560 cat >&2 <<'END'
Chris@69 4561 Aborting the configuration process, to ensure you take notice of the issue.
Chris@69 4562
Chris@69 4563 You can download and install GNU coreutils to get an 'rm' implementation
Chris@69 4564 that behaves properly: <http://www.gnu.org/software/coreutils/>.
Chris@69 4565
Chris@69 4566 If you want to complete the configuration process using your problematic
Chris@69 4567 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
Chris@69 4568 to "yes", and re-run configure.
Chris@69 4569
Chris@69 4570 END
Chris@69 4571 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
Chris@69 4572 fi
Chris@69 4573 fi
Chris@69 4574
Chris@69 4575
Chris@69 4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
Chris@69 4577 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
Chris@69 4578 # Check whether --enable-maintainer-mode was given.
Chris@69 4579 if test "${enable_maintainer_mode+set}" = set; then :
Chris@69 4580 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
Chris@69 4581 else
Chris@69 4582 USE_MAINTAINER_MODE=yes
Chris@69 4583 fi
Chris@69 4584
Chris@69 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
Chris@69 4586 $as_echo "$USE_MAINTAINER_MODE" >&6; }
Chris@69 4587 if test $USE_MAINTAINER_MODE = yes; then
Chris@69 4588 MAINTAINER_MODE_TRUE=
Chris@69 4589 MAINTAINER_MODE_FALSE='#'
Chris@69 4590 else
Chris@69 4591 MAINTAINER_MODE_TRUE='#'
Chris@69 4592 MAINTAINER_MODE_FALSE=
Chris@69 4593 fi
Chris@69 4594
Chris@69 4595 MAINT=$MAINTAINER_MODE_TRUE
Chris@69 4596
Chris@69 4597
Chris@69 4598 case `pwd` in
Chris@69 4599 *\ * | *\ *)
Chris@69 4600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
Chris@69 4601 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Chris@69 4602 esac
Chris@69 4603
Chris@69 4604
Chris@69 4605
Chris@69 4606 macro_version='2.4.6'
Chris@69 4607 macro_revision='2.4.6'
Chris@69 4608
Chris@69 4609
Chris@69 4610
Chris@69 4611
Chris@69 4612
Chris@69 4613
Chris@69 4614
Chris@69 4615
Chris@69 4616
Chris@69 4617
Chris@69 4618
Chris@69 4619
Chris@69 4620
Chris@69 4621 ltmain=$ac_aux_dir/ltmain.sh
Chris@69 4622
Chris@69 4623 # Make sure we can run config.sub.
Chris@69 4624 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Chris@69 4625 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Chris@69 4626
Chris@69 4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Chris@69 4628 $as_echo_n "checking build system type... " >&6; }
Chris@69 4629 if ${ac_cv_build+:} false; then :
Chris@69 4630 $as_echo_n "(cached) " >&6
Chris@69 4631 else
Chris@69 4632 ac_build_alias=$build_alias
Chris@69 4633 test "x$ac_build_alias" = x &&
Chris@69 4634 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
Chris@69 4635 test "x$ac_build_alias" = x &&
Chris@69 4636 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Chris@69 4637 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Chris@69 4638 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Chris@69 4639
Chris@69 4640 fi
Chris@69 4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Chris@69 4642 $as_echo "$ac_cv_build" >&6; }
Chris@69 4643 case $ac_cv_build in
Chris@69 4644 *-*-*) ;;
Chris@69 4645 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Chris@69 4646 esac
Chris@69 4647 build=$ac_cv_build
Chris@69 4648 ac_save_IFS=$IFS; IFS='-'
Chris@69 4649 set x $ac_cv_build
Chris@69 4650 shift
Chris@69 4651 build_cpu=$1
Chris@69 4652 build_vendor=$2
Chris@69 4653 shift; shift
Chris@69 4654 # Remember, the first character of IFS is used to create $*,
Chris@69 4655 # except with old shells:
Chris@69 4656 build_os=$*
Chris@69 4657 IFS=$ac_save_IFS
Chris@69 4658 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Chris@69 4659
Chris@69 4660
Chris@69 4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Chris@69 4662 $as_echo_n "checking host system type... " >&6; }
Chris@69 4663 if ${ac_cv_host+:} false; then :
Chris@69 4664 $as_echo_n "(cached) " >&6
Chris@69 4665 else
Chris@69 4666 if test "x$host_alias" = x; then
Chris@69 4667 ac_cv_host=$ac_cv_build
Chris@69 4668 else
Chris@69 4669 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Chris@69 4670 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Chris@69 4671 fi
Chris@69 4672
Chris@69 4673 fi
Chris@69 4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Chris@69 4675 $as_echo "$ac_cv_host" >&6; }
Chris@69 4676 case $ac_cv_host in
Chris@69 4677 *-*-*) ;;
Chris@69 4678 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Chris@69 4679 esac
Chris@69 4680 host=$ac_cv_host
Chris@69 4681 ac_save_IFS=$IFS; IFS='-'
Chris@69 4682 set x $ac_cv_host
Chris@69 4683 shift
Chris@69 4684 host_cpu=$1
Chris@69 4685 host_vendor=$2
Chris@69 4686 shift; shift
Chris@69 4687 # Remember, the first character of IFS is used to create $*,
Chris@69 4688 # except with old shells:
Chris@69 4689 host_os=$*
Chris@69 4690 IFS=$ac_save_IFS
Chris@69 4691 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Chris@69 4692
Chris@69 4693
Chris@69 4694 # Backslashify metacharacters that are still active within
Chris@69 4695 # double-quoted strings.
Chris@69 4696 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
Chris@69 4697
Chris@69 4698 # Same as above, but do not quote variable references.
Chris@69 4699 double_quote_subst='s/\(["`\\]\)/\\\1/g'
Chris@69 4700
Chris@69 4701 # Sed substitution to delay expansion of an escaped shell variable in a
Chris@69 4702 # double_quote_subst'ed string.
Chris@69 4703 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
Chris@69 4704
Chris@69 4705 # Sed substitution to delay expansion of an escaped single quote.
Chris@69 4706 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
Chris@69 4707
Chris@69 4708 # Sed substitution to avoid accidental globbing in evaled expressions
Chris@69 4709 no_glob_subst='s/\*/\\\*/g'
Chris@69 4710
Chris@69 4711 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@69 4712 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
Chris@69 4713 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
Chris@69 4714
Chris@69 4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
Chris@69 4716 $as_echo_n "checking how to print strings... " >&6; }
Chris@69 4717 # Test print first, because it will be a builtin if present.
Chris@69 4718 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
Chris@69 4719 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
Chris@69 4720 ECHO='print -r --'
Chris@69 4721 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
Chris@69 4722 ECHO='printf %s\n'
Chris@69 4723 else
Chris@69 4724 # Use this function as a fallback that always works.
Chris@69 4725 func_fallback_echo ()
Chris@69 4726 {
Chris@69 4727 eval 'cat <<_LTECHO_EOF
Chris@69 4728 $1
Chris@69 4729 _LTECHO_EOF'
Chris@69 4730 }
Chris@69 4731 ECHO='func_fallback_echo'
Chris@69 4732 fi
Chris@69 4733
Chris@69 4734 # func_echo_all arg...
Chris@69 4735 # Invoke $ECHO with all args, space-separated.
Chris@69 4736 func_echo_all ()
Chris@69 4737 {
Chris@69 4738 $ECHO ""
Chris@69 4739 }
Chris@69 4740
Chris@69 4741 case $ECHO in
Chris@69 4742 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
Chris@69 4743 $as_echo "printf" >&6; } ;;
Chris@69 4744 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
Chris@69 4745 $as_echo "print -r" >&6; } ;;
Chris@69 4746 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
Chris@69 4747 $as_echo "cat" >&6; } ;;
Chris@69 4748 esac
Chris@69 4749
Chris@69 4750
Chris@69 4751
Chris@69 4752
Chris@69 4753
Chris@69 4754
Chris@69 4755
Chris@69 4756
Chris@69 4757
Chris@69 4758
Chris@69 4759
Chris@69 4760
Chris@69 4761
Chris@69 4762
Chris@69 4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
Chris@69 4764 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
Chris@69 4765 if ${ac_cv_path_SED+:} false; then :
Chris@69 4766 $as_echo_n "(cached) " >&6
Chris@69 4767 else
Chris@69 4768 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
Chris@69 4769 for ac_i in 1 2 3 4 5 6 7; do
Chris@69 4770 ac_script="$ac_script$as_nl$ac_script"
Chris@69 4771 done
Chris@69 4772 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Chris@69 4773 { ac_script=; unset ac_script;}
Chris@69 4774 if test -z "$SED"; then
Chris@69 4775 ac_path_SED_found=false
Chris@69 4776 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@69 4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 4778 for as_dir in $PATH
Chris@69 4779 do
Chris@69 4780 IFS=$as_save_IFS
Chris@69 4781 test -z "$as_dir" && as_dir=.
Chris@69 4782 for ac_prog in sed gsed; do
Chris@69 4783 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 4784 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Chris@69 4785 as_fn_executable_p "$ac_path_SED" || continue
Chris@69 4786 # Check for GNU ac_path_SED and select it if it is found.
Chris@69 4787 # Check for GNU $ac_path_SED
Chris@69 4788 case `"$ac_path_SED" --version 2>&1` in
Chris@69 4789 *GNU*)
Chris@69 4790 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
Chris@69 4791 *)
Chris@69 4792 ac_count=0
Chris@69 4793 $as_echo_n 0123456789 >"conftest.in"
Chris@69 4794 while :
Chris@69 4795 do
Chris@69 4796 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@69 4797 mv "conftest.tmp" "conftest.in"
Chris@69 4798 cp "conftest.in" "conftest.nl"
Chris@69 4799 $as_echo '' >> "conftest.nl"
Chris@69 4800 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@69 4801 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@69 4802 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@69 4803 if test $ac_count -gt ${ac_path_SED_max-0}; then
Chris@69 4804 # Best one so far, save it but keep looking for a better one
Chris@69 4805 ac_cv_path_SED="$ac_path_SED"
Chris@69 4806 ac_path_SED_max=$ac_count
Chris@69 4807 fi
Chris@69 4808 # 10*(2^10) chars as input seems more than enough
Chris@69 4809 test $ac_count -gt 10 && break
Chris@69 4810 done
Chris@69 4811 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@69 4812 esac
Chris@69 4813
Chris@69 4814 $ac_path_SED_found && break 3
Chris@69 4815 done
Chris@69 4816 done
Chris@69 4817 done
Chris@69 4818 IFS=$as_save_IFS
Chris@69 4819 if test -z "$ac_cv_path_SED"; then
Chris@69 4820 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Chris@69 4821 fi
Chris@69 4822 else
Chris@69 4823 ac_cv_path_SED=$SED
Chris@69 4824 fi
Chris@69 4825
Chris@69 4826 fi
Chris@69 4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
Chris@69 4828 $as_echo "$ac_cv_path_SED" >&6; }
Chris@69 4829 SED="$ac_cv_path_SED"
Chris@69 4830 rm -f conftest.sed
Chris@69 4831
Chris@69 4832 test -z "$SED" && SED=sed
Chris@69 4833 Xsed="$SED -e 1s/^X//"
Chris@69 4834
Chris@69 4835
Chris@69 4836
Chris@69 4837
Chris@69 4838
Chris@69 4839
Chris@69 4840
Chris@69 4841
Chris@69 4842
Chris@69 4843
Chris@69 4844
Chris@69 4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
Chris@69 4846 $as_echo_n "checking for fgrep... " >&6; }
Chris@69 4847 if ${ac_cv_path_FGREP+:} false; then :
Chris@69 4848 $as_echo_n "(cached) " >&6
Chris@69 4849 else
Chris@69 4850 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
Chris@69 4851 then ac_cv_path_FGREP="$GREP -F"
Chris@69 4852 else
Chris@69 4853 if test -z "$FGREP"; then
Chris@69 4854 ac_path_FGREP_found=false
Chris@69 4855 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@69 4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 4857 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@69 4858 do
Chris@69 4859 IFS=$as_save_IFS
Chris@69 4860 test -z "$as_dir" && as_dir=.
Chris@69 4861 for ac_prog in fgrep; do
Chris@69 4862 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 4863 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@69 4864 as_fn_executable_p "$ac_path_FGREP" || continue
Chris@69 4865 # Check for GNU ac_path_FGREP and select it if it is found.
Chris@69 4866 # Check for GNU $ac_path_FGREP
Chris@69 4867 case `"$ac_path_FGREP" --version 2>&1` in
Chris@69 4868 *GNU*)
Chris@69 4869 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
Chris@69 4870 *)
Chris@69 4871 ac_count=0
Chris@69 4872 $as_echo_n 0123456789 >"conftest.in"
Chris@69 4873 while :
Chris@69 4874 do
Chris@69 4875 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@69 4876 mv "conftest.tmp" "conftest.in"
Chris@69 4877 cp "conftest.in" "conftest.nl"
Chris@69 4878 $as_echo 'FGREP' >> "conftest.nl"
Chris@69 4879 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@69 4880 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@69 4881 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@69 4882 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
Chris@69 4883 # Best one so far, save it but keep looking for a better one
Chris@69 4884 ac_cv_path_FGREP="$ac_path_FGREP"
Chris@69 4885 ac_path_FGREP_max=$ac_count
Chris@69 4886 fi
Chris@69 4887 # 10*(2^10) chars as input seems more than enough
Chris@69 4888 test $ac_count -gt 10 && break
Chris@69 4889 done
Chris@69 4890 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@69 4891 esac
Chris@69 4892
Chris@69 4893 $ac_path_FGREP_found && break 3
Chris@69 4894 done
Chris@69 4895 done
Chris@69 4896 done
Chris@69 4897 IFS=$as_save_IFS
Chris@69 4898 if test -z "$ac_cv_path_FGREP"; then
Chris@69 4899 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@69 4900 fi
Chris@69 4901 else
Chris@69 4902 ac_cv_path_FGREP=$FGREP
Chris@69 4903 fi
Chris@69 4904
Chris@69 4905 fi
Chris@69 4906 fi
Chris@69 4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
Chris@69 4908 $as_echo "$ac_cv_path_FGREP" >&6; }
Chris@69 4909 FGREP="$ac_cv_path_FGREP"
Chris@69 4910
Chris@69 4911
Chris@69 4912 test -z "$GREP" && GREP=grep
Chris@69 4913
Chris@69 4914
Chris@69 4915
Chris@69 4916
Chris@69 4917
Chris@69 4918
Chris@69 4919
Chris@69 4920
Chris@69 4921
Chris@69 4922
Chris@69 4923
Chris@69 4924
Chris@69 4925
Chris@69 4926
Chris@69 4927
Chris@69 4928
Chris@69 4929
Chris@69 4930
Chris@69 4931
Chris@69 4932 # Check whether --with-gnu-ld was given.
Chris@69 4933 if test "${with_gnu_ld+set}" = set; then :
Chris@69 4934 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
Chris@69 4935 else
Chris@69 4936 with_gnu_ld=no
Chris@69 4937 fi
Chris@69 4938
Chris@69 4939 ac_prog=ld
Chris@69 4940 if test yes = "$GCC"; then
Chris@69 4941 # Check if gcc -print-prog-name=ld gives a path.
Chris@69 4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Chris@69 4943 $as_echo_n "checking for ld used by $CC... " >&6; }
Chris@69 4944 case $host in
Chris@69 4945 *-*-mingw*)
Chris@69 4946 # gcc leaves a trailing carriage return, which upsets mingw
Chris@69 4947 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
Chris@69 4948 *)
Chris@69 4949 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
Chris@69 4950 esac
Chris@69 4951 case $ac_prog in
Chris@69 4952 # Accept absolute paths.
Chris@69 4953 [\\/]* | ?:[\\/]*)
Chris@69 4954 re_direlt='/[^/][^/]*/\.\./'
Chris@69 4955 # Canonicalize the pathname of ld
Chris@69 4956 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
Chris@69 4957 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
Chris@69 4958 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Chris@69 4959 done
Chris@69 4960 test -z "$LD" && LD=$ac_prog
Chris@69 4961 ;;
Chris@69 4962 "")
Chris@69 4963 # If it fails, then pretend we aren't using GCC.
Chris@69 4964 ac_prog=ld
Chris@69 4965 ;;
Chris@69 4966 *)
Chris@69 4967 # If it is relative, then search for the first ld in PATH.
Chris@69 4968 with_gnu_ld=unknown
Chris@69 4969 ;;
Chris@69 4970 esac
Chris@69 4971 elif test yes = "$with_gnu_ld"; then
Chris@69 4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Chris@69 4973 $as_echo_n "checking for GNU ld... " >&6; }
Chris@69 4974 else
Chris@69 4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Chris@69 4976 $as_echo_n "checking for non-GNU ld... " >&6; }
Chris@69 4977 fi
Chris@69 4978 if ${lt_cv_path_LD+:} false; then :
Chris@69 4979 $as_echo_n "(cached) " >&6
Chris@69 4980 else
Chris@69 4981 if test -z "$LD"; then
Chris@69 4982 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Chris@69 4983 for ac_dir in $PATH; do
Chris@69 4984 IFS=$lt_save_ifs
Chris@69 4985 test -z "$ac_dir" && ac_dir=.
Chris@69 4986 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Chris@69 4987 lt_cv_path_LD=$ac_dir/$ac_prog
Chris@69 4988 # Check to see if the program is GNU ld. I'd rather use --version,
Chris@69 4989 # but apparently some variants of GNU ld only accept -v.
Chris@69 4990 # Break only if it was the GNU/non-GNU ld that we prefer.
Chris@69 4991 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
Chris@69 4992 *GNU* | *'with BFD'*)
Chris@69 4993 test no != "$with_gnu_ld" && break
Chris@69 4994 ;;
Chris@69 4995 *)
Chris@69 4996 test yes != "$with_gnu_ld" && break
Chris@69 4997 ;;
Chris@69 4998 esac
Chris@69 4999 fi
Chris@69 5000 done
Chris@69 5001 IFS=$lt_save_ifs
Chris@69 5002 else
Chris@69 5003 lt_cv_path_LD=$LD # Let the user override the test with a path.
Chris@69 5004 fi
Chris@69 5005 fi
Chris@69 5006
Chris@69 5007 LD=$lt_cv_path_LD
Chris@69 5008 if test -n "$LD"; then
Chris@69 5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Chris@69 5010 $as_echo "$LD" >&6; }
Chris@69 5011 else
Chris@69 5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 5013 $as_echo "no" >&6; }
Chris@69 5014 fi
Chris@69 5015 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Chris@69 5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Chris@69 5017 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Chris@69 5018 if ${lt_cv_prog_gnu_ld+:} false; then :
Chris@69 5019 $as_echo_n "(cached) " >&6
Chris@69 5020 else
Chris@69 5021 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Chris@69 5022 case `$LD -v 2>&1 </dev/null` in
Chris@69 5023 *GNU* | *'with BFD'*)
Chris@69 5024 lt_cv_prog_gnu_ld=yes
Chris@69 5025 ;;
Chris@69 5026 *)
Chris@69 5027 lt_cv_prog_gnu_ld=no
Chris@69 5028 ;;
Chris@69 5029 esac
Chris@69 5030 fi
Chris@69 5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Chris@69 5032 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
Chris@69 5033 with_gnu_ld=$lt_cv_prog_gnu_ld
Chris@69 5034
Chris@69 5035
Chris@69 5036
Chris@69 5037
Chris@69 5038
Chris@69 5039
Chris@69 5040
Chris@69 5041
Chris@69 5042
Chris@69 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
Chris@69 5044 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Chris@69 5045 if ${lt_cv_path_NM+:} false; then :
Chris@69 5046 $as_echo_n "(cached) " >&6
Chris@69 5047 else
Chris@69 5048 if test -n "$NM"; then
Chris@69 5049 # Let the user override the test.
Chris@69 5050 lt_cv_path_NM=$NM
Chris@69 5051 else
Chris@69 5052 lt_nm_to_check=${ac_tool_prefix}nm
Chris@69 5053 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
Chris@69 5054 lt_nm_to_check="$lt_nm_to_check nm"
Chris@69 5055 fi
Chris@69 5056 for lt_tmp_nm in $lt_nm_to_check; do
Chris@69 5057 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Chris@69 5058 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
Chris@69 5059 IFS=$lt_save_ifs
Chris@69 5060 test -z "$ac_dir" && ac_dir=.
Chris@69 5061 tmp_nm=$ac_dir/$lt_tmp_nm
Chris@69 5062 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
Chris@69 5063 # Check to see if the nm accepts a BSD-compat flag.
Chris@69 5064 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
Chris@69 5065 # nm: unknown option "B" ignored
Chris@69 5066 # Tru64's nm complains that /dev/null is an invalid object file
Chris@69 5067 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
Chris@69 5068 case $build_os in
Chris@69 5069 mingw*) lt_bad_file=conftest.nm/nofile ;;
Chris@69 5070 *) lt_bad_file=/dev/null ;;
Chris@69 5071 esac
Chris@69 5072 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
Chris@69 5073 *$lt_bad_file* | *'Invalid file or object type'*)
Chris@69 5074 lt_cv_path_NM="$tmp_nm -B"
Chris@69 5075 break 2
Chris@69 5076 ;;
Chris@69 5077 *)
Chris@69 5078 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
Chris@69 5079 */dev/null*)
Chris@69 5080 lt_cv_path_NM="$tmp_nm -p"
Chris@69 5081 break 2
Chris@69 5082 ;;
Chris@69 5083 *)
Chris@69 5084 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
Chris@69 5085 continue # so that we can try to find one that supports BSD flags
Chris@69 5086 ;;
Chris@69 5087 esac
Chris@69 5088 ;;
Chris@69 5089 esac
Chris@69 5090 fi
Chris@69 5091 done
Chris@69 5092 IFS=$lt_save_ifs
Chris@69 5093 done
Chris@69 5094 : ${lt_cv_path_NM=no}
Chris@69 5095 fi
Chris@69 5096 fi
Chris@69 5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
Chris@69 5098 $as_echo "$lt_cv_path_NM" >&6; }
Chris@69 5099 if test no != "$lt_cv_path_NM"; then
Chris@69 5100 NM=$lt_cv_path_NM
Chris@69 5101 else
Chris@69 5102 # Didn't find any BSD compatible name lister, look for dumpbin.
Chris@69 5103 if test -n "$DUMPBIN"; then :
Chris@69 5104 # Let the user override the test.
Chris@69 5105 else
Chris@69 5106 if test -n "$ac_tool_prefix"; then
Chris@69 5107 for ac_prog in dumpbin "link -dump"
Chris@69 5108 do
Chris@69 5109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@69 5110 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@69 5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 5112 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 5113 if ${ac_cv_prog_DUMPBIN+:} false; then :
Chris@69 5114 $as_echo_n "(cached) " >&6
Chris@69 5115 else
Chris@69 5116 if test -n "$DUMPBIN"; then
Chris@69 5117 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
Chris@69 5118 else
Chris@69 5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 5120 for as_dir in $PATH
Chris@69 5121 do
Chris@69 5122 IFS=$as_save_IFS
Chris@69 5123 test -z "$as_dir" && as_dir=.
Chris@69 5124 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 5125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 5126 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Chris@69 5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 5128 break 2
Chris@69 5129 fi
Chris@69 5130 done
Chris@69 5131 done
Chris@69 5132 IFS=$as_save_IFS
Chris@69 5133
Chris@69 5134 fi
Chris@69 5135 fi
Chris@69 5136 DUMPBIN=$ac_cv_prog_DUMPBIN
Chris@69 5137 if test -n "$DUMPBIN"; then
Chris@69 5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
Chris@69 5139 $as_echo "$DUMPBIN" >&6; }
Chris@69 5140 else
Chris@69 5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 5142 $as_echo "no" >&6; }
Chris@69 5143 fi
Chris@69 5144
Chris@69 5145
Chris@69 5146 test -n "$DUMPBIN" && break
Chris@69 5147 done
Chris@69 5148 fi
Chris@69 5149 if test -z "$DUMPBIN"; then
Chris@69 5150 ac_ct_DUMPBIN=$DUMPBIN
Chris@69 5151 for ac_prog in dumpbin "link -dump"
Chris@69 5152 do
Chris@69 5153 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@69 5154 set dummy $ac_prog; ac_word=$2
Chris@69 5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 5156 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 5157 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Chris@69 5158 $as_echo_n "(cached) " >&6
Chris@69 5159 else
Chris@69 5160 if test -n "$ac_ct_DUMPBIN"; then
Chris@69 5161 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
Chris@69 5162 else
Chris@69 5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 5164 for as_dir in $PATH
Chris@69 5165 do
Chris@69 5166 IFS=$as_save_IFS
Chris@69 5167 test -z "$as_dir" && as_dir=.
Chris@69 5168 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 5169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 5170 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Chris@69 5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 5172 break 2
Chris@69 5173 fi
Chris@69 5174 done
Chris@69 5175 done
Chris@69 5176 IFS=$as_save_IFS
Chris@69 5177
Chris@69 5178 fi
Chris@69 5179 fi
Chris@69 5180 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
Chris@69 5181 if test -n "$ac_ct_DUMPBIN"; then
Chris@69 5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
Chris@69 5183 $as_echo "$ac_ct_DUMPBIN" >&6; }
Chris@69 5184 else
Chris@69 5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 5186 $as_echo "no" >&6; }
Chris@69 5187 fi
Chris@69 5188
Chris@69 5189
Chris@69 5190 test -n "$ac_ct_DUMPBIN" && break
Chris@69 5191 done
Chris@69 5192
Chris@69 5193 if test "x$ac_ct_DUMPBIN" = x; then
Chris@69 5194 DUMPBIN=":"
Chris@69 5195 else
Chris@69 5196 case $cross_compiling:$ac_tool_warned in
Chris@69 5197 yes:)
Chris@69 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 5199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 5200 ac_tool_warned=yes ;;
Chris@69 5201 esac
Chris@69 5202 DUMPBIN=$ac_ct_DUMPBIN
Chris@69 5203 fi
Chris@69 5204 fi
Chris@69 5205
Chris@69 5206 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
Chris@69 5207 *COFF*)
Chris@69 5208 DUMPBIN="$DUMPBIN -symbols -headers"
Chris@69 5209 ;;
Chris@69 5210 *)
Chris@69 5211 DUMPBIN=:
Chris@69 5212 ;;
Chris@69 5213 esac
Chris@69 5214 fi
Chris@69 5215
Chris@69 5216 if test : != "$DUMPBIN"; then
Chris@69 5217 NM=$DUMPBIN
Chris@69 5218 fi
Chris@69 5219 fi
Chris@69 5220 test -z "$NM" && NM=nm
Chris@69 5221
Chris@69 5222
Chris@69 5223
Chris@69 5224
Chris@69 5225
Chris@69 5226
Chris@69 5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
Chris@69 5228 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
Chris@69 5229 if ${lt_cv_nm_interface+:} false; then :
Chris@69 5230 $as_echo_n "(cached) " >&6
Chris@69 5231 else
Chris@69 5232 lt_cv_nm_interface="BSD nm"
Chris@69 5233 echo "int some_variable = 0;" > conftest.$ac_ext
Chris@69 5234 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Chris@69 5235 (eval "$ac_compile" 2>conftest.err)
Chris@69 5236 cat conftest.err >&5
Chris@69 5237 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Chris@69 5238 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
Chris@69 5239 cat conftest.err >&5
Chris@69 5240 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Chris@69 5241 cat conftest.out >&5
Chris@69 5242 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
Chris@69 5243 lt_cv_nm_interface="MS dumpbin"
Chris@69 5244 fi
Chris@69 5245 rm -f conftest*
Chris@69 5246 fi
Chris@69 5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
Chris@69 5248 $as_echo "$lt_cv_nm_interface" >&6; }
Chris@69 5249
Chris@69 5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Chris@69 5251 $as_echo_n "checking whether ln -s works... " >&6; }
Chris@69 5252 LN_S=$as_ln_s
Chris@69 5253 if test "$LN_S" = "ln -s"; then
Chris@69 5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 5255 $as_echo "yes" >&6; }
Chris@69 5256 else
Chris@69 5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Chris@69 5258 $as_echo "no, using $LN_S" >&6; }
Chris@69 5259 fi
Chris@69 5260
Chris@69 5261 # find the maximum length of command line arguments
Chris@69 5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
Chris@69 5263 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
Chris@69 5264 if ${lt_cv_sys_max_cmd_len+:} false; then :
Chris@69 5265 $as_echo_n "(cached) " >&6
Chris@69 5266 else
Chris@69 5267 i=0
Chris@69 5268 teststring=ABCD
Chris@69 5269
Chris@69 5270 case $build_os in
Chris@69 5271 msdosdjgpp*)
Chris@69 5272 # On DJGPP, this test can blow up pretty badly due to problems in libc
Chris@69 5273 # (any single argument exceeding 2000 bytes causes a buffer overrun
Chris@69 5274 # during glob expansion). Even if it were fixed, the result of this
Chris@69 5275 # check would be larger than it should be.
Chris@69 5276 lt_cv_sys_max_cmd_len=12288; # 12K is about right
Chris@69 5277 ;;
Chris@69 5278
Chris@69 5279 gnu*)
Chris@69 5280 # Under GNU Hurd, this test is not required because there is
Chris@69 5281 # no limit to the length of command line arguments.
Chris@69 5282 # Libtool will interpret -1 as no limit whatsoever
Chris@69 5283 lt_cv_sys_max_cmd_len=-1;
Chris@69 5284 ;;
Chris@69 5285
Chris@69 5286 cygwin* | mingw* | cegcc*)
Chris@69 5287 # On Win9x/ME, this test blows up -- it succeeds, but takes
Chris@69 5288 # about 5 minutes as the teststring grows exponentially.
Chris@69 5289 # Worse, since 9x/ME are not pre-emptively multitasking,
Chris@69 5290 # you end up with a "frozen" computer, even though with patience
Chris@69 5291 # the test eventually succeeds (with a max line length of 256k).
Chris@69 5292 # Instead, let's just punt: use the minimum linelength reported by
Chris@69 5293 # all of the supported platforms: 8192 (on NT/2K/XP).
Chris@69 5294 lt_cv_sys_max_cmd_len=8192;
Chris@69 5295 ;;
Chris@69 5296
Chris@69 5297 mint*)
Chris@69 5298 # On MiNT this can take a long time and run out of memory.
Chris@69 5299 lt_cv_sys_max_cmd_len=8192;
Chris@69 5300 ;;
Chris@69 5301
Chris@69 5302 amigaos*)
Chris@69 5303 # On AmigaOS with pdksh, this test takes hours, literally.
Chris@69 5304 # So we just punt and use a minimum line length of 8192.
Chris@69 5305 lt_cv_sys_max_cmd_len=8192;
Chris@69 5306 ;;
Chris@69 5307
Chris@69 5308 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
Chris@69 5309 # This has been around since 386BSD, at least. Likely further.
Chris@69 5310 if test -x /sbin/sysctl; then
Chris@69 5311 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
Chris@69 5312 elif test -x /usr/sbin/sysctl; then
Chris@69 5313 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
Chris@69 5314 else
Chris@69 5315 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Chris@69 5316 fi
Chris@69 5317 # And add a safety zone
Chris@69 5318 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Chris@69 5319 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Chris@69 5320 ;;
Chris@69 5321
Chris@69 5322 interix*)
Chris@69 5323 # We know the value 262144 and hardcode it with a safety zone (like BSD)
Chris@69 5324 lt_cv_sys_max_cmd_len=196608
Chris@69 5325 ;;
Chris@69 5326
Chris@69 5327 os2*)
Chris@69 5328 # The test takes a long time on OS/2.
Chris@69 5329 lt_cv_sys_max_cmd_len=8192
Chris@69 5330 ;;
Chris@69 5331
Chris@69 5332 osf*)
Chris@69 5333 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
Chris@69 5334 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
Chris@69 5335 # nice to cause kernel panics so lets avoid the loop below.
Chris@69 5336 # First set a reasonable default.
Chris@69 5337 lt_cv_sys_max_cmd_len=16384
Chris@69 5338 #
Chris@69 5339 if test -x /sbin/sysconfig; then
Chris@69 5340 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
Chris@69 5341 *1*) lt_cv_sys_max_cmd_len=-1 ;;
Chris@69 5342 esac
Chris@69 5343 fi
Chris@69 5344 ;;
Chris@69 5345 sco3.2v5*)
Chris@69 5346 lt_cv_sys_max_cmd_len=102400
Chris@69 5347 ;;
Chris@69 5348 sysv5* | sco5v6* | sysv4.2uw2*)
Chris@69 5349 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
Chris@69 5350 if test -n "$kargmax"; then
Chris@69 5351 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
Chris@69 5352 else
Chris@69 5353 lt_cv_sys_max_cmd_len=32768
Chris@69 5354 fi
Chris@69 5355 ;;
Chris@69 5356 *)
Chris@69 5357 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Chris@69 5358 if test -n "$lt_cv_sys_max_cmd_len" && \
Chris@69 5359 test undefined != "$lt_cv_sys_max_cmd_len"; then
Chris@69 5360 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Chris@69 5361 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Chris@69 5362 else
Chris@69 5363 # Make teststring a little bigger before we do anything with it.
Chris@69 5364 # a 1K string should be a reasonable start.
Chris@69 5365 for i in 1 2 3 4 5 6 7 8; do
Chris@69 5366 teststring=$teststring$teststring
Chris@69 5367 done
Chris@69 5368 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
Chris@69 5369 # If test is not a shell built-in, we'll probably end up computing a
Chris@69 5370 # maximum length that is only half of the actual maximum length, but
Chris@69 5371 # we can't tell.
Chris@69 5372 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
Chris@69 5373 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Chris@69 5374 test 17 != "$i" # 1/2 MB should be enough
Chris@69 5375 do
Chris@69 5376 i=`expr $i + 1`
Chris@69 5377 teststring=$teststring$teststring
Chris@69 5378 done
Chris@69 5379 # Only check the string length outside the loop.
Chris@69 5380 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
Chris@69 5381 teststring=
Chris@69 5382 # Add a significant safety factor because C++ compilers can tack on
Chris@69 5383 # massive amounts of additional arguments before passing them to the
Chris@69 5384 # linker. It appears as though 1/2 is a usable value.
Chris@69 5385 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
Chris@69 5386 fi
Chris@69 5387 ;;
Chris@69 5388 esac
Chris@69 5389
Chris@69 5390 fi
Chris@69 5391
Chris@69 5392 if test -n "$lt_cv_sys_max_cmd_len"; then
Chris@69 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
Chris@69 5394 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
Chris@69 5395 else
Chris@69 5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
Chris@69 5397 $as_echo "none" >&6; }
Chris@69 5398 fi
Chris@69 5399 max_cmd_len=$lt_cv_sys_max_cmd_len
Chris@69 5400
Chris@69 5401
Chris@69 5402
Chris@69 5403
Chris@69 5404
Chris@69 5405
Chris@69 5406 : ${CP="cp -f"}
Chris@69 5407 : ${MV="mv -f"}
Chris@69 5408 : ${RM="rm -f"}
Chris@69 5409
Chris@69 5410 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Chris@69 5411 lt_unset=unset
Chris@69 5412 else
Chris@69 5413 lt_unset=false
Chris@69 5414 fi
Chris@69 5415
Chris@69 5416
Chris@69 5417
Chris@69 5418
Chris@69 5419
Chris@69 5420 # test EBCDIC or ASCII
Chris@69 5421 case `echo X|tr X '\101'` in
Chris@69 5422 A) # ASCII based system
Chris@69 5423 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
Chris@69 5424 lt_SP2NL='tr \040 \012'
Chris@69 5425 lt_NL2SP='tr \015\012 \040\040'
Chris@69 5426 ;;
Chris@69 5427 *) # EBCDIC based system
Chris@69 5428 lt_SP2NL='tr \100 \n'
Chris@69 5429 lt_NL2SP='tr \r\n \100\100'
Chris@69 5430 ;;
Chris@69 5431 esac
Chris@69 5432
Chris@69 5433
Chris@69 5434
Chris@69 5435
Chris@69 5436
Chris@69 5437
Chris@69 5438
Chris@69 5439
Chris@69 5440
Chris@69 5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
Chris@69 5442 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
Chris@69 5443 if ${lt_cv_to_host_file_cmd+:} false; then :
Chris@69 5444 $as_echo_n "(cached) " >&6
Chris@69 5445 else
Chris@69 5446 case $host in
Chris@69 5447 *-*-mingw* )
Chris@69 5448 case $build in
Chris@69 5449 *-*-mingw* ) # actually msys
Chris@69 5450 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
Chris@69 5451 ;;
Chris@69 5452 *-*-cygwin* )
Chris@69 5453 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
Chris@69 5454 ;;
Chris@69 5455 * ) # otherwise, assume *nix
Chris@69 5456 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
Chris@69 5457 ;;
Chris@69 5458 esac
Chris@69 5459 ;;
Chris@69 5460 *-*-cygwin* )
Chris@69 5461 case $build in
Chris@69 5462 *-*-mingw* ) # actually msys
Chris@69 5463 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
Chris@69 5464 ;;
Chris@69 5465 *-*-cygwin* )
Chris@69 5466 lt_cv_to_host_file_cmd=func_convert_file_noop
Chris@69 5467 ;;
Chris@69 5468 * ) # otherwise, assume *nix
Chris@69 5469 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
Chris@69 5470 ;;
Chris@69 5471 esac
Chris@69 5472 ;;
Chris@69 5473 * ) # unhandled hosts (and "normal" native builds)
Chris@69 5474 lt_cv_to_host_file_cmd=func_convert_file_noop
Chris@69 5475 ;;
Chris@69 5476 esac
Chris@69 5477
Chris@69 5478 fi
Chris@69 5479
Chris@69 5480 to_host_file_cmd=$lt_cv_to_host_file_cmd
Chris@69 5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
Chris@69 5482 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
Chris@69 5483
Chris@69 5484
Chris@69 5485
Chris@69 5486
Chris@69 5487
Chris@69 5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
Chris@69 5489 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
Chris@69 5490 if ${lt_cv_to_tool_file_cmd+:} false; then :
Chris@69 5491 $as_echo_n "(cached) " >&6
Chris@69 5492 else
Chris@69 5493 #assume ordinary cross tools, or native build.
Chris@69 5494 lt_cv_to_tool_file_cmd=func_convert_file_noop
Chris@69 5495 case $host in
Chris@69 5496 *-*-mingw* )
Chris@69 5497 case $build in
Chris@69 5498 *-*-mingw* ) # actually msys
Chris@69 5499 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
Chris@69 5500 ;;
Chris@69 5501 esac
Chris@69 5502 ;;
Chris@69 5503 esac
Chris@69 5504
Chris@69 5505 fi
Chris@69 5506
Chris@69 5507 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Chris@69 5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
Chris@69 5509 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
Chris@69 5510
Chris@69 5511
Chris@69 5512
Chris@69 5513
Chris@69 5514
Chris@69 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
Chris@69 5516 $as_echo_n "checking for $LD option to reload object files... " >&6; }
Chris@69 5517 if ${lt_cv_ld_reload_flag+:} false; then :
Chris@69 5518 $as_echo_n "(cached) " >&6
Chris@69 5519 else
Chris@69 5520 lt_cv_ld_reload_flag='-r'
Chris@69 5521 fi
Chris@69 5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
Chris@69 5523 $as_echo "$lt_cv_ld_reload_flag" >&6; }
Chris@69 5524 reload_flag=$lt_cv_ld_reload_flag
Chris@69 5525 case $reload_flag in
Chris@69 5526 "" | " "*) ;;
Chris@69 5527 *) reload_flag=" $reload_flag" ;;
Chris@69 5528 esac
Chris@69 5529 reload_cmds='$LD$reload_flag -o $output$reload_objs'
Chris@69 5530 case $host_os in
Chris@69 5531 cygwin* | mingw* | pw32* | cegcc*)
Chris@69 5532 if test yes != "$GCC"; then
Chris@69 5533 reload_cmds=false
Chris@69 5534 fi
Chris@69 5535 ;;
Chris@69 5536 darwin*)
Chris@69 5537 if test yes = "$GCC"; then
Chris@69 5538 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
Chris@69 5539 else
Chris@69 5540 reload_cmds='$LD$reload_flag -o $output$reload_objs'
Chris@69 5541 fi
Chris@69 5542 ;;
Chris@69 5543 esac
Chris@69 5544
Chris@69 5545
Chris@69 5546
Chris@69 5547
Chris@69 5548
Chris@69 5549
Chris@69 5550
Chris@69 5551
Chris@69 5552
Chris@69 5553 if test -n "$ac_tool_prefix"; then
Chris@69 5554 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
Chris@69 5555 set dummy ${ac_tool_prefix}objdump; ac_word=$2
Chris@69 5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 5557 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 5558 if ${ac_cv_prog_OBJDUMP+:} false; then :
Chris@69 5559 $as_echo_n "(cached) " >&6
Chris@69 5560 else
Chris@69 5561 if test -n "$OBJDUMP"; then
Chris@69 5562 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
Chris@69 5563 else
Chris@69 5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 5565 for as_dir in $PATH
Chris@69 5566 do
Chris@69 5567 IFS=$as_save_IFS
Chris@69 5568 test -z "$as_dir" && as_dir=.
Chris@69 5569 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 5570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 5571 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Chris@69 5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 5573 break 2
Chris@69 5574 fi
Chris@69 5575 done
Chris@69 5576 done
Chris@69 5577 IFS=$as_save_IFS
Chris@69 5578
Chris@69 5579 fi
Chris@69 5580 fi
Chris@69 5581 OBJDUMP=$ac_cv_prog_OBJDUMP
Chris@69 5582 if test -n "$OBJDUMP"; then
Chris@69 5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Chris@69 5584 $as_echo "$OBJDUMP" >&6; }
Chris@69 5585 else
Chris@69 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 5587 $as_echo "no" >&6; }
Chris@69 5588 fi
Chris@69 5589
Chris@69 5590
Chris@69 5591 fi
Chris@69 5592 if test -z "$ac_cv_prog_OBJDUMP"; then
Chris@69 5593 ac_ct_OBJDUMP=$OBJDUMP
Chris@69 5594 # Extract the first word of "objdump", so it can be a program name with args.
Chris@69 5595 set dummy objdump; ac_word=$2
Chris@69 5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 5597 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 5598 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Chris@69 5599 $as_echo_n "(cached) " >&6
Chris@69 5600 else
Chris@69 5601 if test -n "$ac_ct_OBJDUMP"; then
Chris@69 5602 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
Chris@69 5603 else
Chris@69 5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 5605 for as_dir in $PATH
Chris@69 5606 do
Chris@69 5607 IFS=$as_save_IFS
Chris@69 5608 test -z "$as_dir" && as_dir=.
Chris@69 5609 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 5610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 5611 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Chris@69 5612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 5613 break 2
Chris@69 5614 fi
Chris@69 5615 done
Chris@69 5616 done
Chris@69 5617 IFS=$as_save_IFS
Chris@69 5618
Chris@69 5619 fi
Chris@69 5620 fi
Chris@69 5621 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
Chris@69 5622 if test -n "$ac_ct_OBJDUMP"; then
Chris@69 5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Chris@69 5624 $as_echo "$ac_ct_OBJDUMP" >&6; }
Chris@69 5625 else
Chris@69 5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 5627 $as_echo "no" >&6; }
Chris@69 5628 fi
Chris@69 5629
Chris@69 5630 if test "x$ac_ct_OBJDUMP" = x; then
Chris@69 5631 OBJDUMP="false"
Chris@69 5632 else
Chris@69 5633 case $cross_compiling:$ac_tool_warned in
Chris@69 5634 yes:)
Chris@69 5635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 5636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 5637 ac_tool_warned=yes ;;
Chris@69 5638 esac
Chris@69 5639 OBJDUMP=$ac_ct_OBJDUMP
Chris@69 5640 fi
Chris@69 5641 else
Chris@69 5642 OBJDUMP="$ac_cv_prog_OBJDUMP"
Chris@69 5643 fi
Chris@69 5644
Chris@69 5645 test -z "$OBJDUMP" && OBJDUMP=objdump
Chris@69 5646
Chris@69 5647
Chris@69 5648
Chris@69 5649
Chris@69 5650
Chris@69 5651
Chris@69 5652
Chris@69 5653
Chris@69 5654
Chris@69 5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
Chris@69 5656 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
Chris@69 5657 if ${lt_cv_deplibs_check_method+:} false; then :
Chris@69 5658 $as_echo_n "(cached) " >&6
Chris@69 5659 else
Chris@69 5660 lt_cv_file_magic_cmd='$MAGIC_CMD'
Chris@69 5661 lt_cv_file_magic_test_file=
Chris@69 5662 lt_cv_deplibs_check_method='unknown'
Chris@69 5663 # Need to set the preceding variable on all platforms that support
Chris@69 5664 # interlibrary dependencies.
Chris@69 5665 # 'none' -- dependencies not supported.
Chris@69 5666 # 'unknown' -- same as none, but documents that we really don't know.
Chris@69 5667 # 'pass_all' -- all dependencies passed with no checks.
Chris@69 5668 # 'test_compile' -- check by making test program.
Chris@69 5669 # 'file_magic [[regex]]' -- check by looking for files in library path
Chris@69 5670 # that responds to the $file_magic_cmd with a given extended regex.
Chris@69 5671 # If you have 'file' or equivalent on your system and you're not sure
Chris@69 5672 # whether 'pass_all' will *always* work, you probably want this one.
Chris@69 5673
Chris@69 5674 case $host_os in
Chris@69 5675 aix[4-9]*)
Chris@69 5676 lt_cv_deplibs_check_method=pass_all
Chris@69 5677 ;;
Chris@69 5678
Chris@69 5679 beos*)
Chris@69 5680 lt_cv_deplibs_check_method=pass_all
Chris@69 5681 ;;
Chris@69 5682
Chris@69 5683 bsdi[45]*)
Chris@69 5684 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
Chris@69 5685 lt_cv_file_magic_cmd='/usr/bin/file -L'
Chris@69 5686 lt_cv_file_magic_test_file=/shlib/libc.so
Chris@69 5687 ;;
Chris@69 5688
Chris@69 5689 cygwin*)
Chris@69 5690 # func_win32_libid is a shell function defined in ltmain.sh
Chris@69 5691 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Chris@69 5692 lt_cv_file_magic_cmd='func_win32_libid'
Chris@69 5693 ;;
Chris@69 5694
Chris@69 5695 mingw* | pw32*)
Chris@69 5696 # Base MSYS/MinGW do not provide the 'file' command needed by
Chris@69 5697 # func_win32_libid shell function, so use a weaker test based on 'objdump',
Chris@69 5698 # unless we find 'file', for example because we are cross-compiling.
Chris@69 5699 if ( file / ) >/dev/null 2>&1; then
Chris@69 5700 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Chris@69 5701 lt_cv_file_magic_cmd='func_win32_libid'
Chris@69 5702 else
Chris@69 5703 # Keep this pattern in sync with the one in func_win32_libid.
Chris@69 5704 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
Chris@69 5705 lt_cv_file_magic_cmd='$OBJDUMP -f'
Chris@69 5706 fi
Chris@69 5707 ;;
Chris@69 5708
Chris@69 5709 cegcc*)
Chris@69 5710 # use the weaker test based on 'objdump'. See mingw*.
Chris@69 5711 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
Chris@69 5712 lt_cv_file_magic_cmd='$OBJDUMP -f'
Chris@69 5713 ;;
Chris@69 5714
Chris@69 5715 darwin* | rhapsody*)
Chris@69 5716 lt_cv_deplibs_check_method=pass_all
Chris@69 5717 ;;
Chris@69 5718
Chris@69 5719 freebsd* | dragonfly*)
Chris@69 5720 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Chris@69 5721 case $host_cpu in
Chris@69 5722 i*86 )
Chris@69 5723 # Not sure whether the presence of OpenBSD here was a mistake.
Chris@69 5724 # Let's accept both of them until this is cleared up.
Chris@69 5725 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
Chris@69 5726 lt_cv_file_magic_cmd=/usr/bin/file
Chris@69 5727 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
Chris@69 5728 ;;
Chris@69 5729 esac
Chris@69 5730 else
Chris@69 5731 lt_cv_deplibs_check_method=pass_all
Chris@69 5732 fi
Chris@69 5733 ;;
Chris@69 5734
Chris@69 5735 haiku*)
Chris@69 5736 lt_cv_deplibs_check_method=pass_all
Chris@69 5737 ;;
Chris@69 5738
Chris@69 5739 hpux10.20* | hpux11*)
Chris@69 5740 lt_cv_file_magic_cmd=/usr/bin/file
Chris@69 5741 case $host_cpu in
Chris@69 5742 ia64*)
Chris@69 5743 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
Chris@69 5744 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
Chris@69 5745 ;;
Chris@69 5746 hppa*64*)
Chris@69 5747 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
Chris@69 5748 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
Chris@69 5749 ;;
Chris@69 5750 *)
Chris@69 5751 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
Chris@69 5752 lt_cv_file_magic_test_file=/usr/lib/libc.sl
Chris@69 5753 ;;
Chris@69 5754 esac
Chris@69 5755 ;;
Chris@69 5756
Chris@69 5757 interix[3-9]*)
Chris@69 5758 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
Chris@69 5759 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
Chris@69 5760 ;;
Chris@69 5761
Chris@69 5762 irix5* | irix6* | nonstopux*)
Chris@69 5763 case $LD in
Chris@69 5764 *-32|*"-32 ") libmagic=32-bit;;
Chris@69 5765 *-n32|*"-n32 ") libmagic=N32;;
Chris@69 5766 *-64|*"-64 ") libmagic=64-bit;;
Chris@69 5767 *) libmagic=never-match;;
Chris@69 5768 esac
Chris@69 5769 lt_cv_deplibs_check_method=pass_all
Chris@69 5770 ;;
Chris@69 5771
Chris@69 5772 # This must be glibc/ELF.
Chris@69 5773 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Chris@69 5774 lt_cv_deplibs_check_method=pass_all
Chris@69 5775 ;;
Chris@69 5776
Chris@69 5777 netbsd*)
Chris@69 5778 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Chris@69 5779 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Chris@69 5780 else
Chris@69 5781 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
Chris@69 5782 fi
Chris@69 5783 ;;
Chris@69 5784
Chris@69 5785 newos6*)
Chris@69 5786 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
Chris@69 5787 lt_cv_file_magic_cmd=/usr/bin/file
Chris@69 5788 lt_cv_file_magic_test_file=/usr/lib/libnls.so
Chris@69 5789 ;;
Chris@69 5790
Chris@69 5791 *nto* | *qnx*)
Chris@69 5792 lt_cv_deplibs_check_method=pass_all
Chris@69 5793 ;;
Chris@69 5794
Chris@69 5795 openbsd* | bitrig*)
Chris@69 5796 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Chris@69 5797 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
Chris@69 5798 else
Chris@69 5799 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Chris@69 5800 fi
Chris@69 5801 ;;
Chris@69 5802
Chris@69 5803 osf3* | osf4* | osf5*)
Chris@69 5804 lt_cv_deplibs_check_method=pass_all
Chris@69 5805 ;;
Chris@69 5806
Chris@69 5807 rdos*)
Chris@69 5808 lt_cv_deplibs_check_method=pass_all
Chris@69 5809 ;;
Chris@69 5810
Chris@69 5811 solaris*)
Chris@69 5812 lt_cv_deplibs_check_method=pass_all
Chris@69 5813 ;;
Chris@69 5814
Chris@69 5815 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Chris@69 5816 lt_cv_deplibs_check_method=pass_all
Chris@69 5817 ;;
Chris@69 5818
Chris@69 5819 sysv4 | sysv4.3*)
Chris@69 5820 case $host_vendor in
Chris@69 5821 motorola)
Chris@69 5822 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]'
Chris@69 5823 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
Chris@69 5824 ;;
Chris@69 5825 ncr)
Chris@69 5826 lt_cv_deplibs_check_method=pass_all
Chris@69 5827 ;;
Chris@69 5828 sequent)
Chris@69 5829 lt_cv_file_magic_cmd='/bin/file'
Chris@69 5830 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
Chris@69 5831 ;;
Chris@69 5832 sni)
Chris@69 5833 lt_cv_file_magic_cmd='/bin/file'
Chris@69 5834 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
Chris@69 5835 lt_cv_file_magic_test_file=/lib/libc.so
Chris@69 5836 ;;
Chris@69 5837 siemens)
Chris@69 5838 lt_cv_deplibs_check_method=pass_all
Chris@69 5839 ;;
Chris@69 5840 pc)
Chris@69 5841 lt_cv_deplibs_check_method=pass_all
Chris@69 5842 ;;
Chris@69 5843 esac
Chris@69 5844 ;;
Chris@69 5845
Chris@69 5846 tpf*)
Chris@69 5847 lt_cv_deplibs_check_method=pass_all
Chris@69 5848 ;;
Chris@69 5849 os2*)
Chris@69 5850 lt_cv_deplibs_check_method=pass_all
Chris@69 5851 ;;
Chris@69 5852 esac
Chris@69 5853
Chris@69 5854 fi
Chris@69 5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
Chris@69 5856 $as_echo "$lt_cv_deplibs_check_method" >&6; }
Chris@69 5857
Chris@69 5858 file_magic_glob=
Chris@69 5859 want_nocaseglob=no
Chris@69 5860 if test "$build" = "$host"; then
Chris@69 5861 case $host_os in
Chris@69 5862 mingw* | pw32*)
Chris@69 5863 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
Chris@69 5864 want_nocaseglob=yes
Chris@69 5865 else
Chris@69 5866 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
Chris@69 5867 fi
Chris@69 5868 ;;
Chris@69 5869 esac
Chris@69 5870 fi
Chris@69 5871
Chris@69 5872 file_magic_cmd=$lt_cv_file_magic_cmd
Chris@69 5873 deplibs_check_method=$lt_cv_deplibs_check_method
Chris@69 5874 test -z "$deplibs_check_method" && deplibs_check_method=unknown
Chris@69 5875
Chris@69 5876
Chris@69 5877
Chris@69 5878
Chris@69 5879
Chris@69 5880
Chris@69 5881
Chris@69 5882
Chris@69 5883
Chris@69 5884
Chris@69 5885
Chris@69 5886
Chris@69 5887
Chris@69 5888
Chris@69 5889
Chris@69 5890
Chris@69 5891
Chris@69 5892
Chris@69 5893
Chris@69 5894
Chris@69 5895
Chris@69 5896
Chris@69 5897 if test -n "$ac_tool_prefix"; then
Chris@69 5898 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
Chris@69 5899 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Chris@69 5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 5901 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 5902 if ${ac_cv_prog_DLLTOOL+:} false; then :
Chris@69 5903 $as_echo_n "(cached) " >&6
Chris@69 5904 else
Chris@69 5905 if test -n "$DLLTOOL"; then
Chris@69 5906 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
Chris@69 5907 else
Chris@69 5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 5909 for as_dir in $PATH
Chris@69 5910 do
Chris@69 5911 IFS=$as_save_IFS
Chris@69 5912 test -z "$as_dir" && as_dir=.
Chris@69 5913 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 5914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 5915 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Chris@69 5916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 5917 break 2
Chris@69 5918 fi
Chris@69 5919 done
Chris@69 5920 done
Chris@69 5921 IFS=$as_save_IFS
Chris@69 5922
Chris@69 5923 fi
Chris@69 5924 fi
Chris@69 5925 DLLTOOL=$ac_cv_prog_DLLTOOL
Chris@69 5926 if test -n "$DLLTOOL"; then
Chris@69 5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Chris@69 5928 $as_echo "$DLLTOOL" >&6; }
Chris@69 5929 else
Chris@69 5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 5931 $as_echo "no" >&6; }
Chris@69 5932 fi
Chris@69 5933
Chris@69 5934
Chris@69 5935 fi
Chris@69 5936 if test -z "$ac_cv_prog_DLLTOOL"; then
Chris@69 5937 ac_ct_DLLTOOL=$DLLTOOL
Chris@69 5938 # Extract the first word of "dlltool", so it can be a program name with args.
Chris@69 5939 set dummy dlltool; ac_word=$2
Chris@69 5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 5941 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 5942 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
Chris@69 5943 $as_echo_n "(cached) " >&6
Chris@69 5944 else
Chris@69 5945 if test -n "$ac_ct_DLLTOOL"; then
Chris@69 5946 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
Chris@69 5947 else
Chris@69 5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 5949 for as_dir in $PATH
Chris@69 5950 do
Chris@69 5951 IFS=$as_save_IFS
Chris@69 5952 test -z "$as_dir" && as_dir=.
Chris@69 5953 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 5954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 5955 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Chris@69 5956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 5957 break 2
Chris@69 5958 fi
Chris@69 5959 done
Chris@69 5960 done
Chris@69 5961 IFS=$as_save_IFS
Chris@69 5962
Chris@69 5963 fi
Chris@69 5964 fi
Chris@69 5965 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
Chris@69 5966 if test -n "$ac_ct_DLLTOOL"; then
Chris@69 5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Chris@69 5968 $as_echo "$ac_ct_DLLTOOL" >&6; }
Chris@69 5969 else
Chris@69 5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 5971 $as_echo "no" >&6; }
Chris@69 5972 fi
Chris@69 5973
Chris@69 5974 if test "x$ac_ct_DLLTOOL" = x; then
Chris@69 5975 DLLTOOL="false"
Chris@69 5976 else
Chris@69 5977 case $cross_compiling:$ac_tool_warned in
Chris@69 5978 yes:)
Chris@69 5979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 5980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 5981 ac_tool_warned=yes ;;
Chris@69 5982 esac
Chris@69 5983 DLLTOOL=$ac_ct_DLLTOOL
Chris@69 5984 fi
Chris@69 5985 else
Chris@69 5986 DLLTOOL="$ac_cv_prog_DLLTOOL"
Chris@69 5987 fi
Chris@69 5988
Chris@69 5989 test -z "$DLLTOOL" && DLLTOOL=dlltool
Chris@69 5990
Chris@69 5991
Chris@69 5992
Chris@69 5993
Chris@69 5994
Chris@69 5995
Chris@69 5996
Chris@69 5997
Chris@69 5998
Chris@69 5999
Chris@69 6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
Chris@69 6001 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
Chris@69 6002 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
Chris@69 6003 $as_echo_n "(cached) " >&6
Chris@69 6004 else
Chris@69 6005 lt_cv_sharedlib_from_linklib_cmd='unknown'
Chris@69 6006
Chris@69 6007 case $host_os in
Chris@69 6008 cygwin* | mingw* | pw32* | cegcc*)
Chris@69 6009 # two different shell functions defined in ltmain.sh;
Chris@69 6010 # decide which one to use based on capabilities of $DLLTOOL
Chris@69 6011 case `$DLLTOOL --help 2>&1` in
Chris@69 6012 *--identify-strict*)
Chris@69 6013 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
Chris@69 6014 ;;
Chris@69 6015 *)
Chris@69 6016 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
Chris@69 6017 ;;
Chris@69 6018 esac
Chris@69 6019 ;;
Chris@69 6020 *)
Chris@69 6021 # fallback: assume linklib IS sharedlib
Chris@69 6022 lt_cv_sharedlib_from_linklib_cmd=$ECHO
Chris@69 6023 ;;
Chris@69 6024 esac
Chris@69 6025
Chris@69 6026 fi
Chris@69 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
Chris@69 6028 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
Chris@69 6029 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
Chris@69 6030 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
Chris@69 6031
Chris@69 6032
Chris@69 6033
Chris@69 6034
Chris@69 6035
Chris@69 6036
Chris@69 6037
Chris@69 6038 if test -n "$ac_tool_prefix"; then
Chris@69 6039 for ac_prog in ar
Chris@69 6040 do
Chris@69 6041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@69 6042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@69 6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 6044 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 6045 if ${ac_cv_prog_AR+:} false; then :
Chris@69 6046 $as_echo_n "(cached) " >&6
Chris@69 6047 else
Chris@69 6048 if test -n "$AR"; then
Chris@69 6049 ac_cv_prog_AR="$AR" # Let the user override the test.
Chris@69 6050 else
Chris@69 6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 6052 for as_dir in $PATH
Chris@69 6053 do
Chris@69 6054 IFS=$as_save_IFS
Chris@69 6055 test -z "$as_dir" && as_dir=.
Chris@69 6056 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 6057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 6058 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Chris@69 6059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 6060 break 2
Chris@69 6061 fi
Chris@69 6062 done
Chris@69 6063 done
Chris@69 6064 IFS=$as_save_IFS
Chris@69 6065
Chris@69 6066 fi
Chris@69 6067 fi
Chris@69 6068 AR=$ac_cv_prog_AR
Chris@69 6069 if test -n "$AR"; then
Chris@69 6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Chris@69 6071 $as_echo "$AR" >&6; }
Chris@69 6072 else
Chris@69 6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 6074 $as_echo "no" >&6; }
Chris@69 6075 fi
Chris@69 6076
Chris@69 6077
Chris@69 6078 test -n "$AR" && break
Chris@69 6079 done
Chris@69 6080 fi
Chris@69 6081 if test -z "$AR"; then
Chris@69 6082 ac_ct_AR=$AR
Chris@69 6083 for ac_prog in ar
Chris@69 6084 do
Chris@69 6085 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@69 6086 set dummy $ac_prog; ac_word=$2
Chris@69 6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 6088 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 6089 if ${ac_cv_prog_ac_ct_AR+:} false; then :
Chris@69 6090 $as_echo_n "(cached) " >&6
Chris@69 6091 else
Chris@69 6092 if test -n "$ac_ct_AR"; then
Chris@69 6093 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Chris@69 6094 else
Chris@69 6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 6096 for as_dir in $PATH
Chris@69 6097 do
Chris@69 6098 IFS=$as_save_IFS
Chris@69 6099 test -z "$as_dir" && as_dir=.
Chris@69 6100 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 6101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 6102 ac_cv_prog_ac_ct_AR="$ac_prog"
Chris@69 6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 6104 break 2
Chris@69 6105 fi
Chris@69 6106 done
Chris@69 6107 done
Chris@69 6108 IFS=$as_save_IFS
Chris@69 6109
Chris@69 6110 fi
Chris@69 6111 fi
Chris@69 6112 ac_ct_AR=$ac_cv_prog_ac_ct_AR
Chris@69 6113 if test -n "$ac_ct_AR"; then
Chris@69 6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Chris@69 6115 $as_echo "$ac_ct_AR" >&6; }
Chris@69 6116 else
Chris@69 6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 6118 $as_echo "no" >&6; }
Chris@69 6119 fi
Chris@69 6120
Chris@69 6121
Chris@69 6122 test -n "$ac_ct_AR" && break
Chris@69 6123 done
Chris@69 6124
Chris@69 6125 if test "x$ac_ct_AR" = x; then
Chris@69 6126 AR="false"
Chris@69 6127 else
Chris@69 6128 case $cross_compiling:$ac_tool_warned in
Chris@69 6129 yes:)
Chris@69 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 6131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 6132 ac_tool_warned=yes ;;
Chris@69 6133 esac
Chris@69 6134 AR=$ac_ct_AR
Chris@69 6135 fi
Chris@69 6136 fi
Chris@69 6137
Chris@69 6138 : ${AR=ar}
Chris@69 6139 : ${AR_FLAGS=cru}
Chris@69 6140
Chris@69 6141
Chris@69 6142
Chris@69 6143
Chris@69 6144
Chris@69 6145
Chris@69 6146
Chris@69 6147
Chris@69 6148
Chris@69 6149
Chris@69 6150
Chris@69 6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
Chris@69 6152 $as_echo_n "checking for archiver @FILE support... " >&6; }
Chris@69 6153 if ${lt_cv_ar_at_file+:} false; then :
Chris@69 6154 $as_echo_n "(cached) " >&6
Chris@69 6155 else
Chris@69 6156 lt_cv_ar_at_file=no
Chris@69 6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 6158 /* end confdefs.h. */
Chris@69 6159
Chris@69 6160 int
Chris@69 6161 main ()
Chris@69 6162 {
Chris@69 6163
Chris@69 6164 ;
Chris@69 6165 return 0;
Chris@69 6166 }
Chris@69 6167 _ACEOF
Chris@69 6168 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 6169 echo conftest.$ac_objext > conftest.lst
Chris@69 6170 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
Chris@69 6171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
Chris@69 6172 (eval $lt_ar_try) 2>&5
Chris@69 6173 ac_status=$?
Chris@69 6174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 6175 test $ac_status = 0; }
Chris@69 6176 if test 0 -eq "$ac_status"; then
Chris@69 6177 # Ensure the archiver fails upon bogus file names.
Chris@69 6178 rm -f conftest.$ac_objext libconftest.a
Chris@69 6179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
Chris@69 6180 (eval $lt_ar_try) 2>&5
Chris@69 6181 ac_status=$?
Chris@69 6182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 6183 test $ac_status = 0; }
Chris@69 6184 if test 0 -ne "$ac_status"; then
Chris@69 6185 lt_cv_ar_at_file=@
Chris@69 6186 fi
Chris@69 6187 fi
Chris@69 6188 rm -f conftest.* libconftest.a
Chris@69 6189
Chris@69 6190 fi
Chris@69 6191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 6192
Chris@69 6193 fi
Chris@69 6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
Chris@69 6195 $as_echo "$lt_cv_ar_at_file" >&6; }
Chris@69 6196
Chris@69 6197 if test no = "$lt_cv_ar_at_file"; then
Chris@69 6198 archiver_list_spec=
Chris@69 6199 else
Chris@69 6200 archiver_list_spec=$lt_cv_ar_at_file
Chris@69 6201 fi
Chris@69 6202
Chris@69 6203
Chris@69 6204
Chris@69 6205
Chris@69 6206
Chris@69 6207
Chris@69 6208
Chris@69 6209 if test -n "$ac_tool_prefix"; then
Chris@69 6210 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Chris@69 6211 set dummy ${ac_tool_prefix}strip; ac_word=$2
Chris@69 6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 6213 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 6214 if ${ac_cv_prog_STRIP+:} false; then :
Chris@69 6215 $as_echo_n "(cached) " >&6
Chris@69 6216 else
Chris@69 6217 if test -n "$STRIP"; then
Chris@69 6218 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
Chris@69 6219 else
Chris@69 6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 6221 for as_dir in $PATH
Chris@69 6222 do
Chris@69 6223 IFS=$as_save_IFS
Chris@69 6224 test -z "$as_dir" && as_dir=.
Chris@69 6225 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 6226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 6227 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Chris@69 6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 6229 break 2
Chris@69 6230 fi
Chris@69 6231 done
Chris@69 6232 done
Chris@69 6233 IFS=$as_save_IFS
Chris@69 6234
Chris@69 6235 fi
Chris@69 6236 fi
Chris@69 6237 STRIP=$ac_cv_prog_STRIP
Chris@69 6238 if test -n "$STRIP"; then
Chris@69 6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Chris@69 6240 $as_echo "$STRIP" >&6; }
Chris@69 6241 else
Chris@69 6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 6243 $as_echo "no" >&6; }
Chris@69 6244 fi
Chris@69 6245
Chris@69 6246
Chris@69 6247 fi
Chris@69 6248 if test -z "$ac_cv_prog_STRIP"; then
Chris@69 6249 ac_ct_STRIP=$STRIP
Chris@69 6250 # Extract the first word of "strip", so it can be a program name with args.
Chris@69 6251 set dummy strip; ac_word=$2
Chris@69 6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 6253 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 6254 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Chris@69 6255 $as_echo_n "(cached) " >&6
Chris@69 6256 else
Chris@69 6257 if test -n "$ac_ct_STRIP"; then
Chris@69 6258 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Chris@69 6259 else
Chris@69 6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 6261 for as_dir in $PATH
Chris@69 6262 do
Chris@69 6263 IFS=$as_save_IFS
Chris@69 6264 test -z "$as_dir" && as_dir=.
Chris@69 6265 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 6266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 6267 ac_cv_prog_ac_ct_STRIP="strip"
Chris@69 6268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 6269 break 2
Chris@69 6270 fi
Chris@69 6271 done
Chris@69 6272 done
Chris@69 6273 IFS=$as_save_IFS
Chris@69 6274
Chris@69 6275 fi
Chris@69 6276 fi
Chris@69 6277 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
Chris@69 6278 if test -n "$ac_ct_STRIP"; then
Chris@69 6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Chris@69 6280 $as_echo "$ac_ct_STRIP" >&6; }
Chris@69 6281 else
Chris@69 6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 6283 $as_echo "no" >&6; }
Chris@69 6284 fi
Chris@69 6285
Chris@69 6286 if test "x$ac_ct_STRIP" = x; then
Chris@69 6287 STRIP=":"
Chris@69 6288 else
Chris@69 6289 case $cross_compiling:$ac_tool_warned in
Chris@69 6290 yes:)
Chris@69 6291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 6292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 6293 ac_tool_warned=yes ;;
Chris@69 6294 esac
Chris@69 6295 STRIP=$ac_ct_STRIP
Chris@69 6296 fi
Chris@69 6297 else
Chris@69 6298 STRIP="$ac_cv_prog_STRIP"
Chris@69 6299 fi
Chris@69 6300
Chris@69 6301 test -z "$STRIP" && STRIP=:
Chris@69 6302
Chris@69 6303
Chris@69 6304
Chris@69 6305
Chris@69 6306
Chris@69 6307
Chris@69 6308 if test -n "$ac_tool_prefix"; then
Chris@69 6309 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
Chris@69 6310 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Chris@69 6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 6312 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 6313 if ${ac_cv_prog_RANLIB+:} false; then :
Chris@69 6314 $as_echo_n "(cached) " >&6
Chris@69 6315 else
Chris@69 6316 if test -n "$RANLIB"; then
Chris@69 6317 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
Chris@69 6318 else
Chris@69 6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 6320 for as_dir in $PATH
Chris@69 6321 do
Chris@69 6322 IFS=$as_save_IFS
Chris@69 6323 test -z "$as_dir" && as_dir=.
Chris@69 6324 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 6325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 6326 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Chris@69 6327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 6328 break 2
Chris@69 6329 fi
Chris@69 6330 done
Chris@69 6331 done
Chris@69 6332 IFS=$as_save_IFS
Chris@69 6333
Chris@69 6334 fi
Chris@69 6335 fi
Chris@69 6336 RANLIB=$ac_cv_prog_RANLIB
Chris@69 6337 if test -n "$RANLIB"; then
Chris@69 6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Chris@69 6339 $as_echo "$RANLIB" >&6; }
Chris@69 6340 else
Chris@69 6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 6342 $as_echo "no" >&6; }
Chris@69 6343 fi
Chris@69 6344
Chris@69 6345
Chris@69 6346 fi
Chris@69 6347 if test -z "$ac_cv_prog_RANLIB"; then
Chris@69 6348 ac_ct_RANLIB=$RANLIB
Chris@69 6349 # Extract the first word of "ranlib", so it can be a program name with args.
Chris@69 6350 set dummy ranlib; ac_word=$2
Chris@69 6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 6352 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 6353 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Chris@69 6354 $as_echo_n "(cached) " >&6
Chris@69 6355 else
Chris@69 6356 if test -n "$ac_ct_RANLIB"; then
Chris@69 6357 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Chris@69 6358 else
Chris@69 6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 6360 for as_dir in $PATH
Chris@69 6361 do
Chris@69 6362 IFS=$as_save_IFS
Chris@69 6363 test -z "$as_dir" && as_dir=.
Chris@69 6364 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 6365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 6366 ac_cv_prog_ac_ct_RANLIB="ranlib"
Chris@69 6367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 6368 break 2
Chris@69 6369 fi
Chris@69 6370 done
Chris@69 6371 done
Chris@69 6372 IFS=$as_save_IFS
Chris@69 6373
Chris@69 6374 fi
Chris@69 6375 fi
Chris@69 6376 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
Chris@69 6377 if test -n "$ac_ct_RANLIB"; then
Chris@69 6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Chris@69 6379 $as_echo "$ac_ct_RANLIB" >&6; }
Chris@69 6380 else
Chris@69 6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 6382 $as_echo "no" >&6; }
Chris@69 6383 fi
Chris@69 6384
Chris@69 6385 if test "x$ac_ct_RANLIB" = x; then
Chris@69 6386 RANLIB=":"
Chris@69 6387 else
Chris@69 6388 case $cross_compiling:$ac_tool_warned in
Chris@69 6389 yes:)
Chris@69 6390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 6391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 6392 ac_tool_warned=yes ;;
Chris@69 6393 esac
Chris@69 6394 RANLIB=$ac_ct_RANLIB
Chris@69 6395 fi
Chris@69 6396 else
Chris@69 6397 RANLIB="$ac_cv_prog_RANLIB"
Chris@69 6398 fi
Chris@69 6399
Chris@69 6400 test -z "$RANLIB" && RANLIB=:
Chris@69 6401
Chris@69 6402
Chris@69 6403
Chris@69 6404
Chris@69 6405
Chris@69 6406
Chris@69 6407 # Determine commands to create old-style static archives.
Chris@69 6408 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
Chris@69 6409 old_postinstall_cmds='chmod 644 $oldlib'
Chris@69 6410 old_postuninstall_cmds=
Chris@69 6411
Chris@69 6412 if test -n "$RANLIB"; then
Chris@69 6413 case $host_os in
Chris@69 6414 bitrig* | openbsd*)
Chris@69 6415 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
Chris@69 6416 ;;
Chris@69 6417 *)
Chris@69 6418 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
Chris@69 6419 ;;
Chris@69 6420 esac
Chris@69 6421 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
Chris@69 6422 fi
Chris@69 6423
Chris@69 6424 case $host_os in
Chris@69 6425 darwin*)
Chris@69 6426 lock_old_archive_extraction=yes ;;
Chris@69 6427 *)
Chris@69 6428 lock_old_archive_extraction=no ;;
Chris@69 6429 esac
Chris@69 6430
Chris@69 6431
Chris@69 6432
Chris@69 6433
Chris@69 6434
Chris@69 6435
Chris@69 6436
Chris@69 6437
Chris@69 6438
Chris@69 6439
Chris@69 6440
Chris@69 6441
Chris@69 6442
Chris@69 6443
Chris@69 6444
Chris@69 6445
Chris@69 6446
Chris@69 6447
Chris@69 6448
Chris@69 6449
Chris@69 6450
Chris@69 6451
Chris@69 6452
Chris@69 6453
Chris@69 6454
Chris@69 6455
Chris@69 6456
Chris@69 6457
Chris@69 6458
Chris@69 6459
Chris@69 6460
Chris@69 6461
Chris@69 6462
Chris@69 6463
Chris@69 6464
Chris@69 6465
Chris@69 6466
Chris@69 6467
Chris@69 6468
Chris@69 6469 # If no C compiler was specified, use CC.
Chris@69 6470 LTCC=${LTCC-"$CC"}
Chris@69 6471
Chris@69 6472 # If no C compiler flags were specified, use CFLAGS.
Chris@69 6473 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@69 6474
Chris@69 6475 # Allow CC to be a program name with arguments.
Chris@69 6476 compiler=$CC
Chris@69 6477
Chris@69 6478
Chris@69 6479 # Check for command to grab the raw symbol name followed by C symbol from nm.
Chris@69 6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
Chris@69 6481 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Chris@69 6482 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Chris@69 6483 $as_echo_n "(cached) " >&6
Chris@69 6484 else
Chris@69 6485
Chris@69 6486 # These are sane defaults that work on at least a few old systems.
Chris@69 6487 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
Chris@69 6488
Chris@69 6489 # Character class describing NM global symbol codes.
Chris@69 6490 symcode='[BCDEGRST]'
Chris@69 6491
Chris@69 6492 # Regexp to match symbols that can be accessed directly from C.
Chris@69 6493 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
Chris@69 6494
Chris@69 6495 # Define system-specific variables.
Chris@69 6496 case $host_os in
Chris@69 6497 aix*)
Chris@69 6498 symcode='[BCDT]'
Chris@69 6499 ;;
Chris@69 6500 cygwin* | mingw* | pw32* | cegcc*)
Chris@69 6501 symcode='[ABCDGISTW]'
Chris@69 6502 ;;
Chris@69 6503 hpux*)
Chris@69 6504 if test ia64 = "$host_cpu"; then
Chris@69 6505 symcode='[ABCDEGRST]'
Chris@69 6506 fi
Chris@69 6507 ;;
Chris@69 6508 irix* | nonstopux*)
Chris@69 6509 symcode='[BCDEGRST]'
Chris@69 6510 ;;
Chris@69 6511 osf*)
Chris@69 6512 symcode='[BCDEGQRST]'
Chris@69 6513 ;;
Chris@69 6514 solaris*)
Chris@69 6515 symcode='[BDRT]'
Chris@69 6516 ;;
Chris@69 6517 sco3.2v5*)
Chris@69 6518 symcode='[DT]'
Chris@69 6519 ;;
Chris@69 6520 sysv4.2uw2*)
Chris@69 6521 symcode='[DT]'
Chris@69 6522 ;;
Chris@69 6523 sysv5* | sco5v6* | unixware* | OpenUNIX*)
Chris@69 6524 symcode='[ABDT]'
Chris@69 6525 ;;
Chris@69 6526 sysv4)
Chris@69 6527 symcode='[DFNSTU]'
Chris@69 6528 ;;
Chris@69 6529 esac
Chris@69 6530
Chris@69 6531 # If we're using GNU nm, then use its standard symbol codes.
Chris@69 6532 case `$NM -V 2>&1` in
Chris@69 6533 *GNU* | *'with BFD'*)
Chris@69 6534 symcode='[ABCDGIRSTW]' ;;
Chris@69 6535 esac
Chris@69 6536
Chris@69 6537 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Chris@69 6538 # Gets list of data symbols to import.
Chris@69 6539 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
Chris@69 6540 # Adjust the below global symbol transforms to fixup imported variables.
Chris@69 6541 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
Chris@69 6542 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
Chris@69 6543 lt_c_name_lib_hook="\
Chris@69 6544 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
Chris@69 6545 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
Chris@69 6546 else
Chris@69 6547 # Disable hooks by default.
Chris@69 6548 lt_cv_sys_global_symbol_to_import=
Chris@69 6549 lt_cdecl_hook=
Chris@69 6550 lt_c_name_hook=
Chris@69 6551 lt_c_name_lib_hook=
Chris@69 6552 fi
Chris@69 6553
Chris@69 6554 # Transform an extracted symbol line into a proper C declaration.
Chris@69 6555 # Some systems (esp. on ia64) link data and code symbols differently,
Chris@69 6556 # so use this general approach.
Chris@69 6557 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
Chris@69 6558 $lt_cdecl_hook\
Chris@69 6559 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
Chris@69 6560 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
Chris@69 6561
Chris@69 6562 # Transform an extracted symbol line into symbol name and symbol address
Chris@69 6563 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
Chris@69 6564 $lt_c_name_hook\
Chris@69 6565 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
Chris@69 6566 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
Chris@69 6567
Chris@69 6568 # Transform an extracted symbol line into symbol name with lib prefix and
Chris@69 6569 # symbol address.
Chris@69 6570 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
Chris@69 6571 $lt_c_name_lib_hook\
Chris@69 6572 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
Chris@69 6573 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
Chris@69 6574 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
Chris@69 6575
Chris@69 6576 # Handle CRLF in mingw tool chain
Chris@69 6577 opt_cr=
Chris@69 6578 case $build_os in
Chris@69 6579 mingw*)
Chris@69 6580 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
Chris@69 6581 ;;
Chris@69 6582 esac
Chris@69 6583
Chris@69 6584 # Try without a prefix underscore, then with it.
Chris@69 6585 for ac_symprfx in "" "_"; do
Chris@69 6586
Chris@69 6587 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
Chris@69 6588 symxfrm="\\1 $ac_symprfx\\2 \\2"
Chris@69 6589
Chris@69 6590 # Write the raw and C identifiers.
Chris@69 6591 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Chris@69 6592 # Fake it for dumpbin and say T for any non-static function,
Chris@69 6593 # D for any global variable and I for any imported variable.
Chris@69 6594 # Also find C++ and __fastcall symbols from MSVC++,
Chris@69 6595 # which start with @ or ?.
Chris@69 6596 lt_cv_sys_global_symbol_pipe="$AWK '"\
Chris@69 6597 " {last_section=section; section=\$ 3};"\
Chris@69 6598 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
Chris@69 6599 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
Chris@69 6600 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
Chris@69 6601 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
Chris@69 6602 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
Chris@69 6603 " \$ 0!~/External *\|/{next};"\
Chris@69 6604 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
Chris@69 6605 " {if(hide[section]) next};"\
Chris@69 6606 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
Chris@69 6607 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
Chris@69 6608 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
Chris@69 6609 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
Chris@69 6610 " ' prfx=^$ac_symprfx"
Chris@69 6611 else
Chris@69 6612 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Chris@69 6613 fi
Chris@69 6614 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
Chris@69 6615
Chris@69 6616 # Check to see that the pipe works correctly.
Chris@69 6617 pipe_works=no
Chris@69 6618
Chris@69 6619 rm -f conftest*
Chris@69 6620 cat > conftest.$ac_ext <<_LT_EOF
Chris@69 6621 #ifdef __cplusplus
Chris@69 6622 extern "C" {
Chris@69 6623 #endif
Chris@69 6624 char nm_test_var;
Chris@69 6625 void nm_test_func(void);
Chris@69 6626 void nm_test_func(void){}
Chris@69 6627 #ifdef __cplusplus
Chris@69 6628 }
Chris@69 6629 #endif
Chris@69 6630 int main(){nm_test_var='a';nm_test_func();return(0);}
Chris@69 6631 _LT_EOF
Chris@69 6632
Chris@69 6633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@69 6634 (eval $ac_compile) 2>&5
Chris@69 6635 ac_status=$?
Chris@69 6636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 6637 test $ac_status = 0; }; then
Chris@69 6638 # Now try to grab the symbols.
Chris@69 6639 nlist=conftest.nm
Chris@69 6640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
Chris@69 6641 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
Chris@69 6642 ac_status=$?
Chris@69 6643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 6644 test $ac_status = 0; } && test -s "$nlist"; then
Chris@69 6645 # Try sorting and uniquifying the output.
Chris@69 6646 if sort "$nlist" | uniq > "$nlist"T; then
Chris@69 6647 mv -f "$nlist"T "$nlist"
Chris@69 6648 else
Chris@69 6649 rm -f "$nlist"T
Chris@69 6650 fi
Chris@69 6651
Chris@69 6652 # Make sure that we snagged all the symbols we need.
Chris@69 6653 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
Chris@69 6654 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
Chris@69 6655 cat <<_LT_EOF > conftest.$ac_ext
Chris@69 6656 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
Chris@69 6657 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
Chris@69 6658 /* DATA imports from DLLs on WIN32 can't be const, because runtime
Chris@69 6659 relocations are performed -- see ld's documentation on pseudo-relocs. */
Chris@69 6660 # define LT_DLSYM_CONST
Chris@69 6661 #elif defined __osf__
Chris@69 6662 /* This system does not cope well with relocations in const data. */
Chris@69 6663 # define LT_DLSYM_CONST
Chris@69 6664 #else
Chris@69 6665 # define LT_DLSYM_CONST const
Chris@69 6666 #endif
Chris@69 6667
Chris@69 6668 #ifdef __cplusplus
Chris@69 6669 extern "C" {
Chris@69 6670 #endif
Chris@69 6671
Chris@69 6672 _LT_EOF
Chris@69 6673 # Now generate the symbol file.
Chris@69 6674 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
Chris@69 6675
Chris@69 6676 cat <<_LT_EOF >> conftest.$ac_ext
Chris@69 6677
Chris@69 6678 /* The mapping between symbol names and symbols. */
Chris@69 6679 LT_DLSYM_CONST struct {
Chris@69 6680 const char *name;
Chris@69 6681 void *address;
Chris@69 6682 }
Chris@69 6683 lt__PROGRAM__LTX_preloaded_symbols[] =
Chris@69 6684 {
Chris@69 6685 { "@PROGRAM@", (void *) 0 },
Chris@69 6686 _LT_EOF
Chris@69 6687 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
Chris@69 6688 cat <<\_LT_EOF >> conftest.$ac_ext
Chris@69 6689 {0, (void *) 0}
Chris@69 6690 };
Chris@69 6691
Chris@69 6692 /* This works around a problem in FreeBSD linker */
Chris@69 6693 #ifdef FREEBSD_WORKAROUND
Chris@69 6694 static const void *lt_preloaded_setup() {
Chris@69 6695 return lt__PROGRAM__LTX_preloaded_symbols;
Chris@69 6696 }
Chris@69 6697 #endif
Chris@69 6698
Chris@69 6699 #ifdef __cplusplus
Chris@69 6700 }
Chris@69 6701 #endif
Chris@69 6702 _LT_EOF
Chris@69 6703 # Now try linking the two files.
Chris@69 6704 mv conftest.$ac_objext conftstm.$ac_objext
Chris@69 6705 lt_globsym_save_LIBS=$LIBS
Chris@69 6706 lt_globsym_save_CFLAGS=$CFLAGS
Chris@69 6707 LIBS=conftstm.$ac_objext
Chris@69 6708 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Chris@69 6709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@69 6710 (eval $ac_link) 2>&5
Chris@69 6711 ac_status=$?
Chris@69 6712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 6713 test $ac_status = 0; } && test -s conftest$ac_exeext; then
Chris@69 6714 pipe_works=yes
Chris@69 6715 fi
Chris@69 6716 LIBS=$lt_globsym_save_LIBS
Chris@69 6717 CFLAGS=$lt_globsym_save_CFLAGS
Chris@69 6718 else
Chris@69 6719 echo "cannot find nm_test_func in $nlist" >&5
Chris@69 6720 fi
Chris@69 6721 else
Chris@69 6722 echo "cannot find nm_test_var in $nlist" >&5
Chris@69 6723 fi
Chris@69 6724 else
Chris@69 6725 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
Chris@69 6726 fi
Chris@69 6727 else
Chris@69 6728 echo "$progname: failed program was:" >&5
Chris@69 6729 cat conftest.$ac_ext >&5
Chris@69 6730 fi
Chris@69 6731 rm -rf conftest* conftst*
Chris@69 6732
Chris@69 6733 # Do not use the global_symbol_pipe unless it works.
Chris@69 6734 if test yes = "$pipe_works"; then
Chris@69 6735 break
Chris@69 6736 else
Chris@69 6737 lt_cv_sys_global_symbol_pipe=
Chris@69 6738 fi
Chris@69 6739 done
Chris@69 6740
Chris@69 6741 fi
Chris@69 6742
Chris@69 6743 if test -z "$lt_cv_sys_global_symbol_pipe"; then
Chris@69 6744 lt_cv_sys_global_symbol_to_cdecl=
Chris@69 6745 fi
Chris@69 6746 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Chris@69 6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
Chris@69 6748 $as_echo "failed" >&6; }
Chris@69 6749 else
Chris@69 6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Chris@69 6751 $as_echo "ok" >&6; }
Chris@69 6752 fi
Chris@69 6753
Chris@69 6754 # Response file support.
Chris@69 6755 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Chris@69 6756 nm_file_list_spec='@'
Chris@69 6757 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
Chris@69 6758 nm_file_list_spec='@'
Chris@69 6759 fi
Chris@69 6760
Chris@69 6761
Chris@69 6762
Chris@69 6763
Chris@69 6764
Chris@69 6765
Chris@69 6766
Chris@69 6767
Chris@69 6768
Chris@69 6769
Chris@69 6770
Chris@69 6771
Chris@69 6772
Chris@69 6773
Chris@69 6774
Chris@69 6775
Chris@69 6776
Chris@69 6777
Chris@69 6778
Chris@69 6779
Chris@69 6780
Chris@69 6781
Chris@69 6782
Chris@69 6783
Chris@69 6784
Chris@69 6785
Chris@69 6786
Chris@69 6787
Chris@69 6788
Chris@69 6789
Chris@69 6790
Chris@69 6791
Chris@69 6792
Chris@69 6793
Chris@69 6794
Chris@69 6795
Chris@69 6796
Chris@69 6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
Chris@69 6798 $as_echo_n "checking for sysroot... " >&6; }
Chris@69 6799
Chris@69 6800 # Check whether --with-sysroot was given.
Chris@69 6801 if test "${with_sysroot+set}" = set; then :
Chris@69 6802 withval=$with_sysroot;
Chris@69 6803 else
Chris@69 6804 with_sysroot=no
Chris@69 6805 fi
Chris@69 6806
Chris@69 6807
Chris@69 6808 lt_sysroot=
Chris@69 6809 case $with_sysroot in #(
Chris@69 6810 yes)
Chris@69 6811 if test yes = "$GCC"; then
Chris@69 6812 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
Chris@69 6813 fi
Chris@69 6814 ;; #(
Chris@69 6815 /*)
Chris@69 6816 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
Chris@69 6817 ;; #(
Chris@69 6818 no|'')
Chris@69 6819 ;; #(
Chris@69 6820 *)
Chris@69 6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
Chris@69 6822 $as_echo "$with_sysroot" >&6; }
Chris@69 6823 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
Chris@69 6824 ;;
Chris@69 6825 esac
Chris@69 6826
Chris@69 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
Chris@69 6828 $as_echo "${lt_sysroot:-no}" >&6; }
Chris@69 6829
Chris@69 6830
Chris@69 6831
Chris@69 6832
Chris@69 6833
Chris@69 6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
Chris@69 6835 $as_echo_n "checking for a working dd... " >&6; }
Chris@69 6836 if ${ac_cv_path_lt_DD+:} false; then :
Chris@69 6837 $as_echo_n "(cached) " >&6
Chris@69 6838 else
Chris@69 6839 printf 0123456789abcdef0123456789abcdef >conftest.i
Chris@69 6840 cat conftest.i conftest.i >conftest2.i
Chris@69 6841 : ${lt_DD:=$DD}
Chris@69 6842 if test -z "$lt_DD"; then
Chris@69 6843 ac_path_lt_DD_found=false
Chris@69 6844 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@69 6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 6846 for as_dir in $PATH
Chris@69 6847 do
Chris@69 6848 IFS=$as_save_IFS
Chris@69 6849 test -z "$as_dir" && as_dir=.
Chris@69 6850 for ac_prog in dd; do
Chris@69 6851 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 6852 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
Chris@69 6853 as_fn_executable_p "$ac_path_lt_DD" || continue
Chris@69 6854 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
Chris@69 6855 cmp -s conftest.i conftest.out \
Chris@69 6856 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
Chris@69 6857 fi
Chris@69 6858 $ac_path_lt_DD_found && break 3
Chris@69 6859 done
Chris@69 6860 done
Chris@69 6861 done
Chris@69 6862 IFS=$as_save_IFS
Chris@69 6863 if test -z "$ac_cv_path_lt_DD"; then
Chris@69 6864 :
Chris@69 6865 fi
Chris@69 6866 else
Chris@69 6867 ac_cv_path_lt_DD=$lt_DD
Chris@69 6868 fi
Chris@69 6869
Chris@69 6870 rm -f conftest.i conftest2.i conftest.out
Chris@69 6871 fi
Chris@69 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
Chris@69 6873 $as_echo "$ac_cv_path_lt_DD" >&6; }
Chris@69 6874
Chris@69 6875
Chris@69 6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
Chris@69 6877 $as_echo_n "checking how to truncate binary pipes... " >&6; }
Chris@69 6878 if ${lt_cv_truncate_bin+:} false; then :
Chris@69 6879 $as_echo_n "(cached) " >&6
Chris@69 6880 else
Chris@69 6881 printf 0123456789abcdef0123456789abcdef >conftest.i
Chris@69 6882 cat conftest.i conftest.i >conftest2.i
Chris@69 6883 lt_cv_truncate_bin=
Chris@69 6884 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
Chris@69 6885 cmp -s conftest.i conftest.out \
Chris@69 6886 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
Chris@69 6887 fi
Chris@69 6888 rm -f conftest.i conftest2.i conftest.out
Chris@69 6889 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
Chris@69 6890 fi
Chris@69 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
Chris@69 6892 $as_echo "$lt_cv_truncate_bin" >&6; }
Chris@69 6893
Chris@69 6894
Chris@69 6895
Chris@69 6896
Chris@69 6897
Chris@69 6898
Chris@69 6899
Chris@69 6900 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
Chris@69 6901 func_cc_basename ()
Chris@69 6902 {
Chris@69 6903 for cc_temp in $*""; do
Chris@69 6904 case $cc_temp in
Chris@69 6905 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
Chris@69 6906 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
Chris@69 6907 \-*) ;;
Chris@69 6908 *) break;;
Chris@69 6909 esac
Chris@69 6910 done
Chris@69 6911 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Chris@69 6912 }
Chris@69 6913
Chris@69 6914 # Check whether --enable-libtool-lock was given.
Chris@69 6915 if test "${enable_libtool_lock+set}" = set; then :
Chris@69 6916 enableval=$enable_libtool_lock;
Chris@69 6917 fi
Chris@69 6918
Chris@69 6919 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
Chris@69 6920
Chris@69 6921 # Some flags need to be propagated to the compiler or linker for good
Chris@69 6922 # libtool support.
Chris@69 6923 case $host in
Chris@69 6924 ia64-*-hpux*)
Chris@69 6925 # Find out what ABI is being produced by ac_compile, and set mode
Chris@69 6926 # options accordingly.
Chris@69 6927 echo 'int i;' > conftest.$ac_ext
Chris@69 6928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@69 6929 (eval $ac_compile) 2>&5
Chris@69 6930 ac_status=$?
Chris@69 6931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 6932 test $ac_status = 0; }; then
Chris@69 6933 case `/usr/bin/file conftest.$ac_objext` in
Chris@69 6934 *ELF-32*)
Chris@69 6935 HPUX_IA64_MODE=32
Chris@69 6936 ;;
Chris@69 6937 *ELF-64*)
Chris@69 6938 HPUX_IA64_MODE=64
Chris@69 6939 ;;
Chris@69 6940 esac
Chris@69 6941 fi
Chris@69 6942 rm -rf conftest*
Chris@69 6943 ;;
Chris@69 6944 *-*-irix6*)
Chris@69 6945 # Find out what ABI is being produced by ac_compile, and set linker
Chris@69 6946 # options accordingly.
Chris@69 6947 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
Chris@69 6948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@69 6949 (eval $ac_compile) 2>&5
Chris@69 6950 ac_status=$?
Chris@69 6951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 6952 test $ac_status = 0; }; then
Chris@69 6953 if test yes = "$lt_cv_prog_gnu_ld"; then
Chris@69 6954 case `/usr/bin/file conftest.$ac_objext` in
Chris@69 6955 *32-bit*)
Chris@69 6956 LD="${LD-ld} -melf32bsmip"
Chris@69 6957 ;;
Chris@69 6958 *N32*)
Chris@69 6959 LD="${LD-ld} -melf32bmipn32"
Chris@69 6960 ;;
Chris@69 6961 *64-bit*)
Chris@69 6962 LD="${LD-ld} -melf64bmip"
Chris@69 6963 ;;
Chris@69 6964 esac
Chris@69 6965 else
Chris@69 6966 case `/usr/bin/file conftest.$ac_objext` in
Chris@69 6967 *32-bit*)
Chris@69 6968 LD="${LD-ld} -32"
Chris@69 6969 ;;
Chris@69 6970 *N32*)
Chris@69 6971 LD="${LD-ld} -n32"
Chris@69 6972 ;;
Chris@69 6973 *64-bit*)
Chris@69 6974 LD="${LD-ld} -64"
Chris@69 6975 ;;
Chris@69 6976 esac
Chris@69 6977 fi
Chris@69 6978 fi
Chris@69 6979 rm -rf conftest*
Chris@69 6980 ;;
Chris@69 6981
Chris@69 6982 mips64*-*linux*)
Chris@69 6983 # Find out what ABI is being produced by ac_compile, and set linker
Chris@69 6984 # options accordingly.
Chris@69 6985 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
Chris@69 6986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@69 6987 (eval $ac_compile) 2>&5
Chris@69 6988 ac_status=$?
Chris@69 6989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 6990 test $ac_status = 0; }; then
Chris@69 6991 emul=elf
Chris@69 6992 case `/usr/bin/file conftest.$ac_objext` in
Chris@69 6993 *32-bit*)
Chris@69 6994 emul="${emul}32"
Chris@69 6995 ;;
Chris@69 6996 *64-bit*)
Chris@69 6997 emul="${emul}64"
Chris@69 6998 ;;
Chris@69 6999 esac
Chris@69 7000 case `/usr/bin/file conftest.$ac_objext` in
Chris@69 7001 *MSB*)
Chris@69 7002 emul="${emul}btsmip"
Chris@69 7003 ;;
Chris@69 7004 *LSB*)
Chris@69 7005 emul="${emul}ltsmip"
Chris@69 7006 ;;
Chris@69 7007 esac
Chris@69 7008 case `/usr/bin/file conftest.$ac_objext` in
Chris@69 7009 *N32*)
Chris@69 7010 emul="${emul}n32"
Chris@69 7011 ;;
Chris@69 7012 esac
Chris@69 7013 LD="${LD-ld} -m $emul"
Chris@69 7014 fi
Chris@69 7015 rm -rf conftest*
Chris@69 7016 ;;
Chris@69 7017
Chris@69 7018 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
Chris@69 7019 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Chris@69 7020 # Find out what ABI is being produced by ac_compile, and set linker
Chris@69 7021 # options accordingly. Note that the listed cases only cover the
Chris@69 7022 # situations where additional linker options are needed (such as when
Chris@69 7023 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
Chris@69 7024 # vice versa); the common cases where no linker options are needed do
Chris@69 7025 # not appear in the list.
Chris@69 7026 echo 'int i;' > conftest.$ac_ext
Chris@69 7027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@69 7028 (eval $ac_compile) 2>&5
Chris@69 7029 ac_status=$?
Chris@69 7030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 7031 test $ac_status = 0; }; then
Chris@69 7032 case `/usr/bin/file conftest.o` in
Chris@69 7033 *32-bit*)
Chris@69 7034 case $host in
Chris@69 7035 x86_64-*kfreebsd*-gnu)
Chris@69 7036 LD="${LD-ld} -m elf_i386_fbsd"
Chris@69 7037 ;;
Chris@69 7038 x86_64-*linux*)
Chris@69 7039 case `/usr/bin/file conftest.o` in
Chris@69 7040 *x86-64*)
Chris@69 7041 LD="${LD-ld} -m elf32_x86_64"
Chris@69 7042 ;;
Chris@69 7043 *)
Chris@69 7044 LD="${LD-ld} -m elf_i386"
Chris@69 7045 ;;
Chris@69 7046 esac
Chris@69 7047 ;;
Chris@69 7048 powerpc64le-*linux*)
Chris@69 7049 LD="${LD-ld} -m elf32lppclinux"
Chris@69 7050 ;;
Chris@69 7051 powerpc64-*linux*)
Chris@69 7052 LD="${LD-ld} -m elf32ppclinux"
Chris@69 7053 ;;
Chris@69 7054 s390x-*linux*)
Chris@69 7055 LD="${LD-ld} -m elf_s390"
Chris@69 7056 ;;
Chris@69 7057 sparc64-*linux*)
Chris@69 7058 LD="${LD-ld} -m elf32_sparc"
Chris@69 7059 ;;
Chris@69 7060 esac
Chris@69 7061 ;;
Chris@69 7062 *64-bit*)
Chris@69 7063 case $host in
Chris@69 7064 x86_64-*kfreebsd*-gnu)
Chris@69 7065 LD="${LD-ld} -m elf_x86_64_fbsd"
Chris@69 7066 ;;
Chris@69 7067 x86_64-*linux*)
Chris@69 7068 LD="${LD-ld} -m elf_x86_64"
Chris@69 7069 ;;
Chris@69 7070 powerpcle-*linux*)
Chris@69 7071 LD="${LD-ld} -m elf64lppc"
Chris@69 7072 ;;
Chris@69 7073 powerpc-*linux*)
Chris@69 7074 LD="${LD-ld} -m elf64ppc"
Chris@69 7075 ;;
Chris@69 7076 s390*-*linux*|s390*-*tpf*)
Chris@69 7077 LD="${LD-ld} -m elf64_s390"
Chris@69 7078 ;;
Chris@69 7079 sparc*-*linux*)
Chris@69 7080 LD="${LD-ld} -m elf64_sparc"
Chris@69 7081 ;;
Chris@69 7082 esac
Chris@69 7083 ;;
Chris@69 7084 esac
Chris@69 7085 fi
Chris@69 7086 rm -rf conftest*
Chris@69 7087 ;;
Chris@69 7088
Chris@69 7089 *-*-sco3.2v5*)
Chris@69 7090 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Chris@69 7091 SAVE_CFLAGS=$CFLAGS
Chris@69 7092 CFLAGS="$CFLAGS -belf"
Chris@69 7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
Chris@69 7094 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Chris@69 7095 if ${lt_cv_cc_needs_belf+:} false; then :
Chris@69 7096 $as_echo_n "(cached) " >&6
Chris@69 7097 else
Chris@69 7098 ac_ext=c
Chris@69 7099 ac_cpp='$CPP $CPPFLAGS'
Chris@69 7100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@69 7101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@69 7102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@69 7103
Chris@69 7104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 7105 /* end confdefs.h. */
Chris@69 7106
Chris@69 7107 int
Chris@69 7108 main ()
Chris@69 7109 {
Chris@69 7110
Chris@69 7111 ;
Chris@69 7112 return 0;
Chris@69 7113 }
Chris@69 7114 _ACEOF
Chris@69 7115 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 7116 lt_cv_cc_needs_belf=yes
Chris@69 7117 else
Chris@69 7118 lt_cv_cc_needs_belf=no
Chris@69 7119 fi
Chris@69 7120 rm -f core conftest.err conftest.$ac_objext \
Chris@69 7121 conftest$ac_exeext conftest.$ac_ext
Chris@69 7122 ac_ext=c
Chris@69 7123 ac_cpp='$CPP $CPPFLAGS'
Chris@69 7124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@69 7125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@69 7126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@69 7127
Chris@69 7128 fi
Chris@69 7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
Chris@69 7130 $as_echo "$lt_cv_cc_needs_belf" >&6; }
Chris@69 7131 if test yes != "$lt_cv_cc_needs_belf"; then
Chris@69 7132 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Chris@69 7133 CFLAGS=$SAVE_CFLAGS
Chris@69 7134 fi
Chris@69 7135 ;;
Chris@69 7136 *-*solaris*)
Chris@69 7137 # Find out what ABI is being produced by ac_compile, and set linker
Chris@69 7138 # options accordingly.
Chris@69 7139 echo 'int i;' > conftest.$ac_ext
Chris@69 7140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@69 7141 (eval $ac_compile) 2>&5
Chris@69 7142 ac_status=$?
Chris@69 7143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 7144 test $ac_status = 0; }; then
Chris@69 7145 case `/usr/bin/file conftest.o` in
Chris@69 7146 *64-bit*)
Chris@69 7147 case $lt_cv_prog_gnu_ld in
Chris@69 7148 yes*)
Chris@69 7149 case $host in
Chris@69 7150 i?86-*-solaris*|x86_64-*-solaris*)
Chris@69 7151 LD="${LD-ld} -m elf_x86_64"
Chris@69 7152 ;;
Chris@69 7153 sparc*-*-solaris*)
Chris@69 7154 LD="${LD-ld} -m elf64_sparc"
Chris@69 7155 ;;
Chris@69 7156 esac
Chris@69 7157 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
Chris@69 7158 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
Chris@69 7159 LD=${LD-ld}_sol2
Chris@69 7160 fi
Chris@69 7161 ;;
Chris@69 7162 *)
Chris@69 7163 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
Chris@69 7164 LD="${LD-ld} -64"
Chris@69 7165 fi
Chris@69 7166 ;;
Chris@69 7167 esac
Chris@69 7168 ;;
Chris@69 7169 esac
Chris@69 7170 fi
Chris@69 7171 rm -rf conftest*
Chris@69 7172 ;;
Chris@69 7173 esac
Chris@69 7174
Chris@69 7175 need_locks=$enable_libtool_lock
Chris@69 7176
Chris@69 7177 if test -n "$ac_tool_prefix"; then
Chris@69 7178 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
Chris@69 7179 set dummy ${ac_tool_prefix}mt; ac_word=$2
Chris@69 7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 7181 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 7182 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
Chris@69 7183 $as_echo_n "(cached) " >&6
Chris@69 7184 else
Chris@69 7185 if test -n "$MANIFEST_TOOL"; then
Chris@69 7186 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
Chris@69 7187 else
Chris@69 7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 7189 for as_dir in $PATH
Chris@69 7190 do
Chris@69 7191 IFS=$as_save_IFS
Chris@69 7192 test -z "$as_dir" && as_dir=.
Chris@69 7193 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 7194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 7195 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
Chris@69 7196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 7197 break 2
Chris@69 7198 fi
Chris@69 7199 done
Chris@69 7200 done
Chris@69 7201 IFS=$as_save_IFS
Chris@69 7202
Chris@69 7203 fi
Chris@69 7204 fi
Chris@69 7205 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
Chris@69 7206 if test -n "$MANIFEST_TOOL"; then
Chris@69 7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
Chris@69 7208 $as_echo "$MANIFEST_TOOL" >&6; }
Chris@69 7209 else
Chris@69 7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 7211 $as_echo "no" >&6; }
Chris@69 7212 fi
Chris@69 7213
Chris@69 7214
Chris@69 7215 fi
Chris@69 7216 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
Chris@69 7217 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
Chris@69 7218 # Extract the first word of "mt", so it can be a program name with args.
Chris@69 7219 set dummy mt; ac_word=$2
Chris@69 7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 7221 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 7222 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
Chris@69 7223 $as_echo_n "(cached) " >&6
Chris@69 7224 else
Chris@69 7225 if test -n "$ac_ct_MANIFEST_TOOL"; then
Chris@69 7226 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
Chris@69 7227 else
Chris@69 7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 7229 for as_dir in $PATH
Chris@69 7230 do
Chris@69 7231 IFS=$as_save_IFS
Chris@69 7232 test -z "$as_dir" && as_dir=.
Chris@69 7233 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 7234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 7235 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
Chris@69 7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 7237 break 2
Chris@69 7238 fi
Chris@69 7239 done
Chris@69 7240 done
Chris@69 7241 IFS=$as_save_IFS
Chris@69 7242
Chris@69 7243 fi
Chris@69 7244 fi
Chris@69 7245 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
Chris@69 7246 if test -n "$ac_ct_MANIFEST_TOOL"; then
Chris@69 7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
Chris@69 7248 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
Chris@69 7249 else
Chris@69 7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 7251 $as_echo "no" >&6; }
Chris@69 7252 fi
Chris@69 7253
Chris@69 7254 if test "x$ac_ct_MANIFEST_TOOL" = x; then
Chris@69 7255 MANIFEST_TOOL=":"
Chris@69 7256 else
Chris@69 7257 case $cross_compiling:$ac_tool_warned in
Chris@69 7258 yes:)
Chris@69 7259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 7260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 7261 ac_tool_warned=yes ;;
Chris@69 7262 esac
Chris@69 7263 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
Chris@69 7264 fi
Chris@69 7265 else
Chris@69 7266 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
Chris@69 7267 fi
Chris@69 7268
Chris@69 7269 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
Chris@69 7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
Chris@69 7271 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
Chris@69 7272 if ${lt_cv_path_mainfest_tool+:} false; then :
Chris@69 7273 $as_echo_n "(cached) " >&6
Chris@69 7274 else
Chris@69 7275 lt_cv_path_mainfest_tool=no
Chris@69 7276 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
Chris@69 7277 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
Chris@69 7278 cat conftest.err >&5
Chris@69 7279 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
Chris@69 7280 lt_cv_path_mainfest_tool=yes
Chris@69 7281 fi
Chris@69 7282 rm -f conftest*
Chris@69 7283 fi
Chris@69 7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
Chris@69 7285 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
Chris@69 7286 if test yes != "$lt_cv_path_mainfest_tool"; then
Chris@69 7287 MANIFEST_TOOL=:
Chris@69 7288 fi
Chris@69 7289
Chris@69 7290
Chris@69 7291
Chris@69 7292
Chris@69 7293
Chris@69 7294
Chris@69 7295 case $host_os in
Chris@69 7296 rhapsody* | darwin*)
Chris@69 7297 if test -n "$ac_tool_prefix"; then
Chris@69 7298 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
Chris@69 7299 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Chris@69 7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 7301 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 7302 if ${ac_cv_prog_DSYMUTIL+:} false; then :
Chris@69 7303 $as_echo_n "(cached) " >&6
Chris@69 7304 else
Chris@69 7305 if test -n "$DSYMUTIL"; then
Chris@69 7306 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
Chris@69 7307 else
Chris@69 7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 7309 for as_dir in $PATH
Chris@69 7310 do
Chris@69 7311 IFS=$as_save_IFS
Chris@69 7312 test -z "$as_dir" && as_dir=.
Chris@69 7313 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 7314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 7315 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Chris@69 7316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 7317 break 2
Chris@69 7318 fi
Chris@69 7319 done
Chris@69 7320 done
Chris@69 7321 IFS=$as_save_IFS
Chris@69 7322
Chris@69 7323 fi
Chris@69 7324 fi
Chris@69 7325 DSYMUTIL=$ac_cv_prog_DSYMUTIL
Chris@69 7326 if test -n "$DSYMUTIL"; then
Chris@69 7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
Chris@69 7328 $as_echo "$DSYMUTIL" >&6; }
Chris@69 7329 else
Chris@69 7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 7331 $as_echo "no" >&6; }
Chris@69 7332 fi
Chris@69 7333
Chris@69 7334
Chris@69 7335 fi
Chris@69 7336 if test -z "$ac_cv_prog_DSYMUTIL"; then
Chris@69 7337 ac_ct_DSYMUTIL=$DSYMUTIL
Chris@69 7338 # Extract the first word of "dsymutil", so it can be a program name with args.
Chris@69 7339 set dummy dsymutil; ac_word=$2
Chris@69 7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 7341 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 7342 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Chris@69 7343 $as_echo_n "(cached) " >&6
Chris@69 7344 else
Chris@69 7345 if test -n "$ac_ct_DSYMUTIL"; then
Chris@69 7346 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
Chris@69 7347 else
Chris@69 7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 7349 for as_dir in $PATH
Chris@69 7350 do
Chris@69 7351 IFS=$as_save_IFS
Chris@69 7352 test -z "$as_dir" && as_dir=.
Chris@69 7353 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 7354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 7355 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Chris@69 7356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 7357 break 2
Chris@69 7358 fi
Chris@69 7359 done
Chris@69 7360 done
Chris@69 7361 IFS=$as_save_IFS
Chris@69 7362
Chris@69 7363 fi
Chris@69 7364 fi
Chris@69 7365 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
Chris@69 7366 if test -n "$ac_ct_DSYMUTIL"; then
Chris@69 7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
Chris@69 7368 $as_echo "$ac_ct_DSYMUTIL" >&6; }
Chris@69 7369 else
Chris@69 7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 7371 $as_echo "no" >&6; }
Chris@69 7372 fi
Chris@69 7373
Chris@69 7374 if test "x$ac_ct_DSYMUTIL" = x; then
Chris@69 7375 DSYMUTIL=":"
Chris@69 7376 else
Chris@69 7377 case $cross_compiling:$ac_tool_warned in
Chris@69 7378 yes:)
Chris@69 7379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 7380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 7381 ac_tool_warned=yes ;;
Chris@69 7382 esac
Chris@69 7383 DSYMUTIL=$ac_ct_DSYMUTIL
Chris@69 7384 fi
Chris@69 7385 else
Chris@69 7386 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
Chris@69 7387 fi
Chris@69 7388
Chris@69 7389 if test -n "$ac_tool_prefix"; then
Chris@69 7390 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
Chris@69 7391 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Chris@69 7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 7393 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 7394 if ${ac_cv_prog_NMEDIT+:} false; then :
Chris@69 7395 $as_echo_n "(cached) " >&6
Chris@69 7396 else
Chris@69 7397 if test -n "$NMEDIT"; then
Chris@69 7398 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
Chris@69 7399 else
Chris@69 7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 7401 for as_dir in $PATH
Chris@69 7402 do
Chris@69 7403 IFS=$as_save_IFS
Chris@69 7404 test -z "$as_dir" && as_dir=.
Chris@69 7405 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 7406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 7407 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Chris@69 7408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 7409 break 2
Chris@69 7410 fi
Chris@69 7411 done
Chris@69 7412 done
Chris@69 7413 IFS=$as_save_IFS
Chris@69 7414
Chris@69 7415 fi
Chris@69 7416 fi
Chris@69 7417 NMEDIT=$ac_cv_prog_NMEDIT
Chris@69 7418 if test -n "$NMEDIT"; then
Chris@69 7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
Chris@69 7420 $as_echo "$NMEDIT" >&6; }
Chris@69 7421 else
Chris@69 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 7423 $as_echo "no" >&6; }
Chris@69 7424 fi
Chris@69 7425
Chris@69 7426
Chris@69 7427 fi
Chris@69 7428 if test -z "$ac_cv_prog_NMEDIT"; then
Chris@69 7429 ac_ct_NMEDIT=$NMEDIT
Chris@69 7430 # Extract the first word of "nmedit", so it can be a program name with args.
Chris@69 7431 set dummy nmedit; ac_word=$2
Chris@69 7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 7433 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 7434 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Chris@69 7435 $as_echo_n "(cached) " >&6
Chris@69 7436 else
Chris@69 7437 if test -n "$ac_ct_NMEDIT"; then
Chris@69 7438 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
Chris@69 7439 else
Chris@69 7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 7441 for as_dir in $PATH
Chris@69 7442 do
Chris@69 7443 IFS=$as_save_IFS
Chris@69 7444 test -z "$as_dir" && as_dir=.
Chris@69 7445 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 7446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 7447 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Chris@69 7448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 7449 break 2
Chris@69 7450 fi
Chris@69 7451 done
Chris@69 7452 done
Chris@69 7453 IFS=$as_save_IFS
Chris@69 7454
Chris@69 7455 fi
Chris@69 7456 fi
Chris@69 7457 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
Chris@69 7458 if test -n "$ac_ct_NMEDIT"; then
Chris@69 7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
Chris@69 7460 $as_echo "$ac_ct_NMEDIT" >&6; }
Chris@69 7461 else
Chris@69 7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 7463 $as_echo "no" >&6; }
Chris@69 7464 fi
Chris@69 7465
Chris@69 7466 if test "x$ac_ct_NMEDIT" = x; then
Chris@69 7467 NMEDIT=":"
Chris@69 7468 else
Chris@69 7469 case $cross_compiling:$ac_tool_warned in
Chris@69 7470 yes:)
Chris@69 7471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 7472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 7473 ac_tool_warned=yes ;;
Chris@69 7474 esac
Chris@69 7475 NMEDIT=$ac_ct_NMEDIT
Chris@69 7476 fi
Chris@69 7477 else
Chris@69 7478 NMEDIT="$ac_cv_prog_NMEDIT"
Chris@69 7479 fi
Chris@69 7480
Chris@69 7481 if test -n "$ac_tool_prefix"; then
Chris@69 7482 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
Chris@69 7483 set dummy ${ac_tool_prefix}lipo; ac_word=$2
Chris@69 7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 7485 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 7486 if ${ac_cv_prog_LIPO+:} false; then :
Chris@69 7487 $as_echo_n "(cached) " >&6
Chris@69 7488 else
Chris@69 7489 if test -n "$LIPO"; then
Chris@69 7490 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
Chris@69 7491 else
Chris@69 7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 7493 for as_dir in $PATH
Chris@69 7494 do
Chris@69 7495 IFS=$as_save_IFS
Chris@69 7496 test -z "$as_dir" && as_dir=.
Chris@69 7497 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 7498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 7499 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Chris@69 7500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 7501 break 2
Chris@69 7502 fi
Chris@69 7503 done
Chris@69 7504 done
Chris@69 7505 IFS=$as_save_IFS
Chris@69 7506
Chris@69 7507 fi
Chris@69 7508 fi
Chris@69 7509 LIPO=$ac_cv_prog_LIPO
Chris@69 7510 if test -n "$LIPO"; then
Chris@69 7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
Chris@69 7512 $as_echo "$LIPO" >&6; }
Chris@69 7513 else
Chris@69 7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 7515 $as_echo "no" >&6; }
Chris@69 7516 fi
Chris@69 7517
Chris@69 7518
Chris@69 7519 fi
Chris@69 7520 if test -z "$ac_cv_prog_LIPO"; then
Chris@69 7521 ac_ct_LIPO=$LIPO
Chris@69 7522 # Extract the first word of "lipo", so it can be a program name with args.
Chris@69 7523 set dummy lipo; ac_word=$2
Chris@69 7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 7525 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 7526 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Chris@69 7527 $as_echo_n "(cached) " >&6
Chris@69 7528 else
Chris@69 7529 if test -n "$ac_ct_LIPO"; then
Chris@69 7530 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
Chris@69 7531 else
Chris@69 7532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 7533 for as_dir in $PATH
Chris@69 7534 do
Chris@69 7535 IFS=$as_save_IFS
Chris@69 7536 test -z "$as_dir" && as_dir=.
Chris@69 7537 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 7538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 7539 ac_cv_prog_ac_ct_LIPO="lipo"
Chris@69 7540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 7541 break 2
Chris@69 7542 fi
Chris@69 7543 done
Chris@69 7544 done
Chris@69 7545 IFS=$as_save_IFS
Chris@69 7546
Chris@69 7547 fi
Chris@69 7548 fi
Chris@69 7549 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
Chris@69 7550 if test -n "$ac_ct_LIPO"; then
Chris@69 7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
Chris@69 7552 $as_echo "$ac_ct_LIPO" >&6; }
Chris@69 7553 else
Chris@69 7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 7555 $as_echo "no" >&6; }
Chris@69 7556 fi
Chris@69 7557
Chris@69 7558 if test "x$ac_ct_LIPO" = x; then
Chris@69 7559 LIPO=":"
Chris@69 7560 else
Chris@69 7561 case $cross_compiling:$ac_tool_warned in
Chris@69 7562 yes:)
Chris@69 7563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 7564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 7565 ac_tool_warned=yes ;;
Chris@69 7566 esac
Chris@69 7567 LIPO=$ac_ct_LIPO
Chris@69 7568 fi
Chris@69 7569 else
Chris@69 7570 LIPO="$ac_cv_prog_LIPO"
Chris@69 7571 fi
Chris@69 7572
Chris@69 7573 if test -n "$ac_tool_prefix"; then
Chris@69 7574 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
Chris@69 7575 set dummy ${ac_tool_prefix}otool; ac_word=$2
Chris@69 7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 7577 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 7578 if ${ac_cv_prog_OTOOL+:} false; then :
Chris@69 7579 $as_echo_n "(cached) " >&6
Chris@69 7580 else
Chris@69 7581 if test -n "$OTOOL"; then
Chris@69 7582 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
Chris@69 7583 else
Chris@69 7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 7585 for as_dir in $PATH
Chris@69 7586 do
Chris@69 7587 IFS=$as_save_IFS
Chris@69 7588 test -z "$as_dir" && as_dir=.
Chris@69 7589 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 7590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 7591 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Chris@69 7592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 7593 break 2
Chris@69 7594 fi
Chris@69 7595 done
Chris@69 7596 done
Chris@69 7597 IFS=$as_save_IFS
Chris@69 7598
Chris@69 7599 fi
Chris@69 7600 fi
Chris@69 7601 OTOOL=$ac_cv_prog_OTOOL
Chris@69 7602 if test -n "$OTOOL"; then
Chris@69 7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
Chris@69 7604 $as_echo "$OTOOL" >&6; }
Chris@69 7605 else
Chris@69 7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 7607 $as_echo "no" >&6; }
Chris@69 7608 fi
Chris@69 7609
Chris@69 7610
Chris@69 7611 fi
Chris@69 7612 if test -z "$ac_cv_prog_OTOOL"; then
Chris@69 7613 ac_ct_OTOOL=$OTOOL
Chris@69 7614 # Extract the first word of "otool", so it can be a program name with args.
Chris@69 7615 set dummy otool; ac_word=$2
Chris@69 7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 7617 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 7618 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Chris@69 7619 $as_echo_n "(cached) " >&6
Chris@69 7620 else
Chris@69 7621 if test -n "$ac_ct_OTOOL"; then
Chris@69 7622 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
Chris@69 7623 else
Chris@69 7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 7625 for as_dir in $PATH
Chris@69 7626 do
Chris@69 7627 IFS=$as_save_IFS
Chris@69 7628 test -z "$as_dir" && as_dir=.
Chris@69 7629 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 7630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 7631 ac_cv_prog_ac_ct_OTOOL="otool"
Chris@69 7632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 7633 break 2
Chris@69 7634 fi
Chris@69 7635 done
Chris@69 7636 done
Chris@69 7637 IFS=$as_save_IFS
Chris@69 7638
Chris@69 7639 fi
Chris@69 7640 fi
Chris@69 7641 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
Chris@69 7642 if test -n "$ac_ct_OTOOL"; then
Chris@69 7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
Chris@69 7644 $as_echo "$ac_ct_OTOOL" >&6; }
Chris@69 7645 else
Chris@69 7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 7647 $as_echo "no" >&6; }
Chris@69 7648 fi
Chris@69 7649
Chris@69 7650 if test "x$ac_ct_OTOOL" = x; then
Chris@69 7651 OTOOL=":"
Chris@69 7652 else
Chris@69 7653 case $cross_compiling:$ac_tool_warned in
Chris@69 7654 yes:)
Chris@69 7655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 7656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 7657 ac_tool_warned=yes ;;
Chris@69 7658 esac
Chris@69 7659 OTOOL=$ac_ct_OTOOL
Chris@69 7660 fi
Chris@69 7661 else
Chris@69 7662 OTOOL="$ac_cv_prog_OTOOL"
Chris@69 7663 fi
Chris@69 7664
Chris@69 7665 if test -n "$ac_tool_prefix"; then
Chris@69 7666 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
Chris@69 7667 set dummy ${ac_tool_prefix}otool64; ac_word=$2
Chris@69 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 7669 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 7670 if ${ac_cv_prog_OTOOL64+:} false; then :
Chris@69 7671 $as_echo_n "(cached) " >&6
Chris@69 7672 else
Chris@69 7673 if test -n "$OTOOL64"; then
Chris@69 7674 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
Chris@69 7675 else
Chris@69 7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 7677 for as_dir in $PATH
Chris@69 7678 do
Chris@69 7679 IFS=$as_save_IFS
Chris@69 7680 test -z "$as_dir" && as_dir=.
Chris@69 7681 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 7682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 7683 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Chris@69 7684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 7685 break 2
Chris@69 7686 fi
Chris@69 7687 done
Chris@69 7688 done
Chris@69 7689 IFS=$as_save_IFS
Chris@69 7690
Chris@69 7691 fi
Chris@69 7692 fi
Chris@69 7693 OTOOL64=$ac_cv_prog_OTOOL64
Chris@69 7694 if test -n "$OTOOL64"; then
Chris@69 7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
Chris@69 7696 $as_echo "$OTOOL64" >&6; }
Chris@69 7697 else
Chris@69 7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 7699 $as_echo "no" >&6; }
Chris@69 7700 fi
Chris@69 7701
Chris@69 7702
Chris@69 7703 fi
Chris@69 7704 if test -z "$ac_cv_prog_OTOOL64"; then
Chris@69 7705 ac_ct_OTOOL64=$OTOOL64
Chris@69 7706 # Extract the first word of "otool64", so it can be a program name with args.
Chris@69 7707 set dummy otool64; ac_word=$2
Chris@69 7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 7709 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 7710 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Chris@69 7711 $as_echo_n "(cached) " >&6
Chris@69 7712 else
Chris@69 7713 if test -n "$ac_ct_OTOOL64"; then
Chris@69 7714 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
Chris@69 7715 else
Chris@69 7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 7717 for as_dir in $PATH
Chris@69 7718 do
Chris@69 7719 IFS=$as_save_IFS
Chris@69 7720 test -z "$as_dir" && as_dir=.
Chris@69 7721 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 7722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 7723 ac_cv_prog_ac_ct_OTOOL64="otool64"
Chris@69 7724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 7725 break 2
Chris@69 7726 fi
Chris@69 7727 done
Chris@69 7728 done
Chris@69 7729 IFS=$as_save_IFS
Chris@69 7730
Chris@69 7731 fi
Chris@69 7732 fi
Chris@69 7733 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
Chris@69 7734 if test -n "$ac_ct_OTOOL64"; then
Chris@69 7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
Chris@69 7736 $as_echo "$ac_ct_OTOOL64" >&6; }
Chris@69 7737 else
Chris@69 7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 7739 $as_echo "no" >&6; }
Chris@69 7740 fi
Chris@69 7741
Chris@69 7742 if test "x$ac_ct_OTOOL64" = x; then
Chris@69 7743 OTOOL64=":"
Chris@69 7744 else
Chris@69 7745 case $cross_compiling:$ac_tool_warned in
Chris@69 7746 yes:)
Chris@69 7747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 7748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 7749 ac_tool_warned=yes ;;
Chris@69 7750 esac
Chris@69 7751 OTOOL64=$ac_ct_OTOOL64
Chris@69 7752 fi
Chris@69 7753 else
Chris@69 7754 OTOOL64="$ac_cv_prog_OTOOL64"
Chris@69 7755 fi
Chris@69 7756
Chris@69 7757
Chris@69 7758
Chris@69 7759
Chris@69 7760
Chris@69 7761
Chris@69 7762
Chris@69 7763
Chris@69 7764
Chris@69 7765
Chris@69 7766
Chris@69 7767
Chris@69 7768
Chris@69 7769
Chris@69 7770
Chris@69 7771
Chris@69 7772
Chris@69 7773
Chris@69 7774
Chris@69 7775
Chris@69 7776
Chris@69 7777
Chris@69 7778
Chris@69 7779
Chris@69 7780
Chris@69 7781
Chris@69 7782
Chris@69 7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
Chris@69 7784 $as_echo_n "checking for -single_module linker flag... " >&6; }
Chris@69 7785 if ${lt_cv_apple_cc_single_mod+:} false; then :
Chris@69 7786 $as_echo_n "(cached) " >&6
Chris@69 7787 else
Chris@69 7788 lt_cv_apple_cc_single_mod=no
Chris@69 7789 if test -z "$LT_MULTI_MODULE"; then
Chris@69 7790 # By default we will add the -single_module flag. You can override
Chris@69 7791 # by either setting the environment variable LT_MULTI_MODULE
Chris@69 7792 # non-empty at configure time, or by adding -multi_module to the
Chris@69 7793 # link flags.
Chris@69 7794 rm -rf libconftest.dylib*
Chris@69 7795 echo "int foo(void){return 1;}" > conftest.c
Chris@69 7796 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
Chris@69 7797 -dynamiclib -Wl,-single_module conftest.c" >&5
Chris@69 7798 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
Chris@69 7799 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
Chris@69 7800 _lt_result=$?
Chris@69 7801 # If there is a non-empty error log, and "single_module"
Chris@69 7802 # appears in it, assume the flag caused a linker warning
Chris@69 7803 if test -s conftest.err && $GREP single_module conftest.err; then
Chris@69 7804 cat conftest.err >&5
Chris@69 7805 # Otherwise, if the output was created with a 0 exit code from
Chris@69 7806 # the compiler, it worked.
Chris@69 7807 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
Chris@69 7808 lt_cv_apple_cc_single_mod=yes
Chris@69 7809 else
Chris@69 7810 cat conftest.err >&5
Chris@69 7811 fi
Chris@69 7812 rm -rf libconftest.dylib*
Chris@69 7813 rm -f conftest.*
Chris@69 7814 fi
Chris@69 7815 fi
Chris@69 7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
Chris@69 7817 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Chris@69 7818
Chris@69 7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
Chris@69 7820 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Chris@69 7821 if ${lt_cv_ld_exported_symbols_list+:} false; then :
Chris@69 7822 $as_echo_n "(cached) " >&6
Chris@69 7823 else
Chris@69 7824 lt_cv_ld_exported_symbols_list=no
Chris@69 7825 save_LDFLAGS=$LDFLAGS
Chris@69 7826 echo "_main" > conftest.sym
Chris@69 7827 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Chris@69 7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 7829 /* end confdefs.h. */
Chris@69 7830
Chris@69 7831 int
Chris@69 7832 main ()
Chris@69 7833 {
Chris@69 7834
Chris@69 7835 ;
Chris@69 7836 return 0;
Chris@69 7837 }
Chris@69 7838 _ACEOF
Chris@69 7839 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 7840 lt_cv_ld_exported_symbols_list=yes
Chris@69 7841 else
Chris@69 7842 lt_cv_ld_exported_symbols_list=no
Chris@69 7843 fi
Chris@69 7844 rm -f core conftest.err conftest.$ac_objext \
Chris@69 7845 conftest$ac_exeext conftest.$ac_ext
Chris@69 7846 LDFLAGS=$save_LDFLAGS
Chris@69 7847
Chris@69 7848 fi
Chris@69 7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
Chris@69 7850 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Chris@69 7851
Chris@69 7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
Chris@69 7853 $as_echo_n "checking for -force_load linker flag... " >&6; }
Chris@69 7854 if ${lt_cv_ld_force_load+:} false; then :
Chris@69 7855 $as_echo_n "(cached) " >&6
Chris@69 7856 else
Chris@69 7857 lt_cv_ld_force_load=no
Chris@69 7858 cat > conftest.c << _LT_EOF
Chris@69 7859 int forced_loaded() { return 2;}
Chris@69 7860 _LT_EOF
Chris@69 7861 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
Chris@69 7862 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
Chris@69 7863 echo "$AR cru libconftest.a conftest.o" >&5
Chris@69 7864 $AR cru libconftest.a conftest.o 2>&5
Chris@69 7865 echo "$RANLIB libconftest.a" >&5
Chris@69 7866 $RANLIB libconftest.a 2>&5
Chris@69 7867 cat > conftest.c << _LT_EOF
Chris@69 7868 int main() { return 0;}
Chris@69 7869 _LT_EOF
Chris@69 7870 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
Chris@69 7871 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
Chris@69 7872 _lt_result=$?
Chris@69 7873 if test -s conftest.err && $GREP force_load conftest.err; then
Chris@69 7874 cat conftest.err >&5
Chris@69 7875 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
Chris@69 7876 lt_cv_ld_force_load=yes
Chris@69 7877 else
Chris@69 7878 cat conftest.err >&5
Chris@69 7879 fi
Chris@69 7880 rm -f conftest.err libconftest.a conftest conftest.c
Chris@69 7881 rm -rf conftest.dSYM
Chris@69 7882
Chris@69 7883 fi
Chris@69 7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
Chris@69 7885 $as_echo "$lt_cv_ld_force_load" >&6; }
Chris@69 7886 case $host_os in
Chris@69 7887 rhapsody* | darwin1.[012])
Chris@69 7888 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
Chris@69 7889 darwin1.*)
Chris@69 7890 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Chris@69 7891 darwin*) # darwin 5.x on
Chris@69 7892 # if running on 10.5 or later, the deployment target defaults
Chris@69 7893 # to the OS version, if on x86, and 10.4, the deployment
Chris@69 7894 # target defaults to 10.4. Don't you love it?
Chris@69 7895 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
Chris@69 7896 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
Chris@69 7897 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
Chris@69 7898 10.[012][,.]*)
Chris@69 7899 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Chris@69 7900 10.*)
Chris@69 7901 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
Chris@69 7902 esac
Chris@69 7903 ;;
Chris@69 7904 esac
Chris@69 7905 if test yes = "$lt_cv_apple_cc_single_mod"; then
Chris@69 7906 _lt_dar_single_mod='$single_module'
Chris@69 7907 fi
Chris@69 7908 if test yes = "$lt_cv_ld_exported_symbols_list"; then
Chris@69 7909 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
Chris@69 7910 else
Chris@69 7911 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
Chris@69 7912 fi
Chris@69 7913 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
Chris@69 7914 _lt_dsymutil='~$DSYMUTIL $lib || :'
Chris@69 7915 else
Chris@69 7916 _lt_dsymutil=
Chris@69 7917 fi
Chris@69 7918 ;;
Chris@69 7919 esac
Chris@69 7920
Chris@69 7921 # func_munge_path_list VARIABLE PATH
Chris@69 7922 # -----------------------------------
Chris@69 7923 # VARIABLE is name of variable containing _space_ separated list of
Chris@69 7924 # directories to be munged by the contents of PATH, which is string
Chris@69 7925 # having a format:
Chris@69 7926 # "DIR[:DIR]:"
Chris@69 7927 # string "DIR[ DIR]" will be prepended to VARIABLE
Chris@69 7928 # ":DIR[:DIR]"
Chris@69 7929 # string "DIR[ DIR]" will be appended to VARIABLE
Chris@69 7930 # "DIRP[:DIRP]::[DIRA:]DIRA"
Chris@69 7931 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
Chris@69 7932 # "DIRA[ DIRA]" will be appended to VARIABLE
Chris@69 7933 # "DIR[:DIR]"
Chris@69 7934 # VARIABLE will be replaced by "DIR[ DIR]"
Chris@69 7935 func_munge_path_list ()
Chris@69 7936 {
Chris@69 7937 case x$2 in
Chris@69 7938 x)
Chris@69 7939 ;;
Chris@69 7940 *:)
Chris@69 7941 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
Chris@69 7942 ;;
Chris@69 7943 x:*)
Chris@69 7944 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
Chris@69 7945 ;;
Chris@69 7946 *::*)
Chris@69 7947 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
Chris@69 7948 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
Chris@69 7949 ;;
Chris@69 7950 *)
Chris@69 7951 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
Chris@69 7952 ;;
Chris@69 7953 esac
Chris@69 7954 }
Chris@69 7955
Chris@69 7956 for ac_header in dlfcn.h
Chris@69 7957 do :
Chris@69 7958 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
Chris@69 7959 "
Chris@69 7960 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Chris@69 7961 cat >>confdefs.h <<_ACEOF
Chris@69 7962 #define HAVE_DLFCN_H 1
Chris@69 7963 _ACEOF
Chris@69 7964
Chris@69 7965 fi
Chris@69 7966
Chris@69 7967 done
Chris@69 7968
Chris@69 7969
Chris@69 7970
Chris@69 7971
Chris@69 7972
Chris@69 7973 # Set options
Chris@69 7974
Chris@69 7975
Chris@69 7976
Chris@69 7977 enable_dlopen=no
Chris@69 7978
Chris@69 7979
Chris@69 7980 enable_win32_dll=no
Chris@69 7981
Chris@69 7982
Chris@69 7983 # Check whether --enable-shared was given.
Chris@69 7984 if test "${enable_shared+set}" = set; then :
Chris@69 7985 enableval=$enable_shared; p=${PACKAGE-default}
Chris@69 7986 case $enableval in
Chris@69 7987 yes) enable_shared=yes ;;
Chris@69 7988 no) enable_shared=no ;;
Chris@69 7989 *)
Chris@69 7990 enable_shared=no
Chris@69 7991 # Look at the argument we got. We use all the common list separators.
Chris@69 7992 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Chris@69 7993 for pkg in $enableval; do
Chris@69 7994 IFS=$lt_save_ifs
Chris@69 7995 if test "X$pkg" = "X$p"; then
Chris@69 7996 enable_shared=yes
Chris@69 7997 fi
Chris@69 7998 done
Chris@69 7999 IFS=$lt_save_ifs
Chris@69 8000 ;;
Chris@69 8001 esac
Chris@69 8002 else
Chris@69 8003 enable_shared=yes
Chris@69 8004 fi
Chris@69 8005
Chris@69 8006
Chris@69 8007
Chris@69 8008
Chris@69 8009
Chris@69 8010
Chris@69 8011
Chris@69 8012
Chris@69 8013
Chris@69 8014 # Check whether --enable-static was given.
Chris@69 8015 if test "${enable_static+set}" = set; then :
Chris@69 8016 enableval=$enable_static; p=${PACKAGE-default}
Chris@69 8017 case $enableval in
Chris@69 8018 yes) enable_static=yes ;;
Chris@69 8019 no) enable_static=no ;;
Chris@69 8020 *)
Chris@69 8021 enable_static=no
Chris@69 8022 # Look at the argument we got. We use all the common list separators.
Chris@69 8023 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Chris@69 8024 for pkg in $enableval; do
Chris@69 8025 IFS=$lt_save_ifs
Chris@69 8026 if test "X$pkg" = "X$p"; then
Chris@69 8027 enable_static=yes
Chris@69 8028 fi
Chris@69 8029 done
Chris@69 8030 IFS=$lt_save_ifs
Chris@69 8031 ;;
Chris@69 8032 esac
Chris@69 8033 else
Chris@69 8034 enable_static=yes
Chris@69 8035 fi
Chris@69 8036
Chris@69 8037
Chris@69 8038
Chris@69 8039
Chris@69 8040
Chris@69 8041
Chris@69 8042
Chris@69 8043
Chris@69 8044
Chris@69 8045
Chris@69 8046 # Check whether --with-pic was given.
Chris@69 8047 if test "${with_pic+set}" = set; then :
Chris@69 8048 withval=$with_pic; lt_p=${PACKAGE-default}
Chris@69 8049 case $withval in
Chris@69 8050 yes|no) pic_mode=$withval ;;
Chris@69 8051 *)
Chris@69 8052 pic_mode=default
Chris@69 8053 # Look at the argument we got. We use all the common list separators.
Chris@69 8054 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Chris@69 8055 for lt_pkg in $withval; do
Chris@69 8056 IFS=$lt_save_ifs
Chris@69 8057 if test "X$lt_pkg" = "X$lt_p"; then
Chris@69 8058 pic_mode=yes
Chris@69 8059 fi
Chris@69 8060 done
Chris@69 8061 IFS=$lt_save_ifs
Chris@69 8062 ;;
Chris@69 8063 esac
Chris@69 8064 else
Chris@69 8065 pic_mode=default
Chris@69 8066 fi
Chris@69 8067
Chris@69 8068
Chris@69 8069
Chris@69 8070
Chris@69 8071
Chris@69 8072
Chris@69 8073
Chris@69 8074
Chris@69 8075 # Check whether --enable-fast-install was given.
Chris@69 8076 if test "${enable_fast_install+set}" = set; then :
Chris@69 8077 enableval=$enable_fast_install; p=${PACKAGE-default}
Chris@69 8078 case $enableval in
Chris@69 8079 yes) enable_fast_install=yes ;;
Chris@69 8080 no) enable_fast_install=no ;;
Chris@69 8081 *)
Chris@69 8082 enable_fast_install=no
Chris@69 8083 # Look at the argument we got. We use all the common list separators.
Chris@69 8084 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Chris@69 8085 for pkg in $enableval; do
Chris@69 8086 IFS=$lt_save_ifs
Chris@69 8087 if test "X$pkg" = "X$p"; then
Chris@69 8088 enable_fast_install=yes
Chris@69 8089 fi
Chris@69 8090 done
Chris@69 8091 IFS=$lt_save_ifs
Chris@69 8092 ;;
Chris@69 8093 esac
Chris@69 8094 else
Chris@69 8095 enable_fast_install=yes
Chris@69 8096 fi
Chris@69 8097
Chris@69 8098
Chris@69 8099
Chris@69 8100
Chris@69 8101
Chris@69 8102
Chris@69 8103
Chris@69 8104
Chris@69 8105 shared_archive_member_spec=
Chris@69 8106 case $host,$enable_shared in
Chris@69 8107 power*-*-aix[5-9]*,yes)
Chris@69 8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
Chris@69 8109 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
Chris@69 8110
Chris@69 8111 # Check whether --with-aix-soname was given.
Chris@69 8112 if test "${with_aix_soname+set}" = set; then :
Chris@69 8113 withval=$with_aix_soname; case $withval in
Chris@69 8114 aix|svr4|both)
Chris@69 8115 ;;
Chris@69 8116 *)
Chris@69 8117 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
Chris@69 8118 ;;
Chris@69 8119 esac
Chris@69 8120 lt_cv_with_aix_soname=$with_aix_soname
Chris@69 8121 else
Chris@69 8122 if ${lt_cv_with_aix_soname+:} false; then :
Chris@69 8123 $as_echo_n "(cached) " >&6
Chris@69 8124 else
Chris@69 8125 lt_cv_with_aix_soname=aix
Chris@69 8126 fi
Chris@69 8127
Chris@69 8128 with_aix_soname=$lt_cv_with_aix_soname
Chris@69 8129 fi
Chris@69 8130
Chris@69 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
Chris@69 8132 $as_echo "$with_aix_soname" >&6; }
Chris@69 8133 if test aix != "$with_aix_soname"; then
Chris@69 8134 # For the AIX way of multilib, we name the shared archive member
Chris@69 8135 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
Chris@69 8136 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
Chris@69 8137 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
Chris@69 8138 # the AIX toolchain works better with OBJECT_MODE set (default 32).
Chris@69 8139 if test 64 = "${OBJECT_MODE-32}"; then
Chris@69 8140 shared_archive_member_spec=shr_64
Chris@69 8141 else
Chris@69 8142 shared_archive_member_spec=shr
Chris@69 8143 fi
Chris@69 8144 fi
Chris@69 8145 ;;
Chris@69 8146 *)
Chris@69 8147 with_aix_soname=aix
Chris@69 8148 ;;
Chris@69 8149 esac
Chris@69 8150
Chris@69 8151
Chris@69 8152
Chris@69 8153
Chris@69 8154
Chris@69 8155
Chris@69 8156
Chris@69 8157
Chris@69 8158
Chris@69 8159
Chris@69 8160 # This can be used to rebuild libtool when needed
Chris@69 8161 LIBTOOL_DEPS=$ltmain
Chris@69 8162
Chris@69 8163 # Always use our own libtool.
Chris@69 8164 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
Chris@69 8165
Chris@69 8166
Chris@69 8167
Chris@69 8168
Chris@69 8169
Chris@69 8170
Chris@69 8171
Chris@69 8172
Chris@69 8173
Chris@69 8174
Chris@69 8175
Chris@69 8176
Chris@69 8177
Chris@69 8178
Chris@69 8179
Chris@69 8180
Chris@69 8181
Chris@69 8182
Chris@69 8183
Chris@69 8184
Chris@69 8185
Chris@69 8186
Chris@69 8187
Chris@69 8188
Chris@69 8189
Chris@69 8190
Chris@69 8191
Chris@69 8192
Chris@69 8193
Chris@69 8194
Chris@69 8195 test -z "$LN_S" && LN_S="ln -s"
Chris@69 8196
Chris@69 8197
Chris@69 8198
Chris@69 8199
Chris@69 8200
Chris@69 8201
Chris@69 8202
Chris@69 8203
Chris@69 8204
Chris@69 8205
Chris@69 8206
Chris@69 8207
Chris@69 8208
Chris@69 8209
Chris@69 8210 if test -n "${ZSH_VERSION+set}"; then
Chris@69 8211 setopt NO_GLOB_SUBST
Chris@69 8212 fi
Chris@69 8213
Chris@69 8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
Chris@69 8215 $as_echo_n "checking for objdir... " >&6; }
Chris@69 8216 if ${lt_cv_objdir+:} false; then :
Chris@69 8217 $as_echo_n "(cached) " >&6
Chris@69 8218 else
Chris@69 8219 rm -f .libs 2>/dev/null
Chris@69 8220 mkdir .libs 2>/dev/null
Chris@69 8221 if test -d .libs; then
Chris@69 8222 lt_cv_objdir=.libs
Chris@69 8223 else
Chris@69 8224 # MS-DOS does not allow filenames that begin with a dot.
Chris@69 8225 lt_cv_objdir=_libs
Chris@69 8226 fi
Chris@69 8227 rmdir .libs 2>/dev/null
Chris@69 8228 fi
Chris@69 8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
Chris@69 8230 $as_echo "$lt_cv_objdir" >&6; }
Chris@69 8231 objdir=$lt_cv_objdir
Chris@69 8232
Chris@69 8233
Chris@69 8234
Chris@69 8235
Chris@69 8236
Chris@69 8237 cat >>confdefs.h <<_ACEOF
Chris@69 8238 #define LT_OBJDIR "$lt_cv_objdir/"
Chris@69 8239 _ACEOF
Chris@69 8240
Chris@69 8241
Chris@69 8242
Chris@69 8243
Chris@69 8244 case $host_os in
Chris@69 8245 aix3*)
Chris@69 8246 # AIX sometimes has problems with the GCC collect2 program. For some
Chris@69 8247 # reason, if we set the COLLECT_NAMES environment variable, the problems
Chris@69 8248 # vanish in a puff of smoke.
Chris@69 8249 if test set != "${COLLECT_NAMES+set}"; then
Chris@69 8250 COLLECT_NAMES=
Chris@69 8251 export COLLECT_NAMES
Chris@69 8252 fi
Chris@69 8253 ;;
Chris@69 8254 esac
Chris@69 8255
Chris@69 8256 # Global variables:
Chris@69 8257 ofile=libtool
Chris@69 8258 can_build_shared=yes
Chris@69 8259
Chris@69 8260 # All known linkers require a '.a' archive for static linking (except MSVC,
Chris@69 8261 # which needs '.lib').
Chris@69 8262 libext=a
Chris@69 8263
Chris@69 8264 with_gnu_ld=$lt_cv_prog_gnu_ld
Chris@69 8265
Chris@69 8266 old_CC=$CC
Chris@69 8267 old_CFLAGS=$CFLAGS
Chris@69 8268
Chris@69 8269 # Set sane defaults for various variables
Chris@69 8270 test -z "$CC" && CC=cc
Chris@69 8271 test -z "$LTCC" && LTCC=$CC
Chris@69 8272 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Chris@69 8273 test -z "$LD" && LD=ld
Chris@69 8274 test -z "$ac_objext" && ac_objext=o
Chris@69 8275
Chris@69 8276 func_cc_basename $compiler
Chris@69 8277 cc_basename=$func_cc_basename_result
Chris@69 8278
Chris@69 8279
Chris@69 8280 # Only perform the check for file, if the check method requires it
Chris@69 8281 test -z "$MAGIC_CMD" && MAGIC_CMD=file
Chris@69 8282 case $deplibs_check_method in
Chris@69 8283 file_magic*)
Chris@69 8284 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Chris@69 8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
Chris@69 8286 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Chris@69 8287 if ${lt_cv_path_MAGIC_CMD+:} false; then :
Chris@69 8288 $as_echo_n "(cached) " >&6
Chris@69 8289 else
Chris@69 8290 case $MAGIC_CMD in
Chris@69 8291 [\\/*] | ?:[\\/]*)
Chris@69 8292 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Chris@69 8293 ;;
Chris@69 8294 *)
Chris@69 8295 lt_save_MAGIC_CMD=$MAGIC_CMD
Chris@69 8296 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Chris@69 8297 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
Chris@69 8298 for ac_dir in $ac_dummy; do
Chris@69 8299 IFS=$lt_save_ifs
Chris@69 8300 test -z "$ac_dir" && ac_dir=.
Chris@69 8301 if test -f "$ac_dir/${ac_tool_prefix}file"; then
Chris@69 8302 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
Chris@69 8303 if test -n "$file_magic_test_file"; then
Chris@69 8304 case $deplibs_check_method in
Chris@69 8305 "file_magic "*)
Chris@69 8306 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Chris@69 8307 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Chris@69 8308 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
Chris@69 8309 $EGREP "$file_magic_regex" > /dev/null; then
Chris@69 8310 :
Chris@69 8311 else
Chris@69 8312 cat <<_LT_EOF 1>&2
Chris@69 8313
Chris@69 8314 *** Warning: the command libtool uses to detect shared libraries,
Chris@69 8315 *** $file_magic_cmd, produces output that libtool cannot recognize.
Chris@69 8316 *** The result is that libtool may fail to recognize shared libraries
Chris@69 8317 *** as such. This will affect the creation of libtool libraries that
Chris@69 8318 *** depend on shared libraries, but programs linked with such libtool
Chris@69 8319 *** libraries will work regardless of this problem. Nevertheless, you
Chris@69 8320 *** may want to report the problem to your system manager and/or to
Chris@69 8321 *** bug-libtool@gnu.org
Chris@69 8322
Chris@69 8323 _LT_EOF
Chris@69 8324 fi ;;
Chris@69 8325 esac
Chris@69 8326 fi
Chris@69 8327 break
Chris@69 8328 fi
Chris@69 8329 done
Chris@69 8330 IFS=$lt_save_ifs
Chris@69 8331 MAGIC_CMD=$lt_save_MAGIC_CMD
Chris@69 8332 ;;
Chris@69 8333 esac
Chris@69 8334 fi
Chris@69 8335
Chris@69 8336 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Chris@69 8337 if test -n "$MAGIC_CMD"; then
Chris@69 8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Chris@69 8339 $as_echo "$MAGIC_CMD" >&6; }
Chris@69 8340 else
Chris@69 8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 8342 $as_echo "no" >&6; }
Chris@69 8343 fi
Chris@69 8344
Chris@69 8345
Chris@69 8346
Chris@69 8347
Chris@69 8348
Chris@69 8349 if test -z "$lt_cv_path_MAGIC_CMD"; then
Chris@69 8350 if test -n "$ac_tool_prefix"; then
Chris@69 8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
Chris@69 8352 $as_echo_n "checking for file... " >&6; }
Chris@69 8353 if ${lt_cv_path_MAGIC_CMD+:} false; then :
Chris@69 8354 $as_echo_n "(cached) " >&6
Chris@69 8355 else
Chris@69 8356 case $MAGIC_CMD in
Chris@69 8357 [\\/*] | ?:[\\/]*)
Chris@69 8358 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Chris@69 8359 ;;
Chris@69 8360 *)
Chris@69 8361 lt_save_MAGIC_CMD=$MAGIC_CMD
Chris@69 8362 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Chris@69 8363 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
Chris@69 8364 for ac_dir in $ac_dummy; do
Chris@69 8365 IFS=$lt_save_ifs
Chris@69 8366 test -z "$ac_dir" && ac_dir=.
Chris@69 8367 if test -f "$ac_dir/file"; then
Chris@69 8368 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
Chris@69 8369 if test -n "$file_magic_test_file"; then
Chris@69 8370 case $deplibs_check_method in
Chris@69 8371 "file_magic "*)
Chris@69 8372 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Chris@69 8373 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Chris@69 8374 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
Chris@69 8375 $EGREP "$file_magic_regex" > /dev/null; then
Chris@69 8376 :
Chris@69 8377 else
Chris@69 8378 cat <<_LT_EOF 1>&2
Chris@69 8379
Chris@69 8380 *** Warning: the command libtool uses to detect shared libraries,
Chris@69 8381 *** $file_magic_cmd, produces output that libtool cannot recognize.
Chris@69 8382 *** The result is that libtool may fail to recognize shared libraries
Chris@69 8383 *** as such. This will affect the creation of libtool libraries that
Chris@69 8384 *** depend on shared libraries, but programs linked with such libtool
Chris@69 8385 *** libraries will work regardless of this problem. Nevertheless, you
Chris@69 8386 *** may want to report the problem to your system manager and/or to
Chris@69 8387 *** bug-libtool@gnu.org
Chris@69 8388
Chris@69 8389 _LT_EOF
Chris@69 8390 fi ;;
Chris@69 8391 esac
Chris@69 8392 fi
Chris@69 8393 break
Chris@69 8394 fi
Chris@69 8395 done
Chris@69 8396 IFS=$lt_save_ifs
Chris@69 8397 MAGIC_CMD=$lt_save_MAGIC_CMD
Chris@69 8398 ;;
Chris@69 8399 esac
Chris@69 8400 fi
Chris@69 8401
Chris@69 8402 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Chris@69 8403 if test -n "$MAGIC_CMD"; then
Chris@69 8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Chris@69 8405 $as_echo "$MAGIC_CMD" >&6; }
Chris@69 8406 else
Chris@69 8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 8408 $as_echo "no" >&6; }
Chris@69 8409 fi
Chris@69 8410
Chris@69 8411
Chris@69 8412 else
Chris@69 8413 MAGIC_CMD=:
Chris@69 8414 fi
Chris@69 8415 fi
Chris@69 8416
Chris@69 8417 fi
Chris@69 8418 ;;
Chris@69 8419 esac
Chris@69 8420
Chris@69 8421 # Use C for the default configuration in the libtool script
Chris@69 8422
Chris@69 8423 lt_save_CC=$CC
Chris@69 8424 ac_ext=c
Chris@69 8425 ac_cpp='$CPP $CPPFLAGS'
Chris@69 8426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@69 8427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@69 8428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@69 8429
Chris@69 8430
Chris@69 8431 # Source file extension for C test sources.
Chris@69 8432 ac_ext=c
Chris@69 8433
Chris@69 8434 # Object file extension for compiled C test sources.
Chris@69 8435 objext=o
Chris@69 8436 objext=$objext
Chris@69 8437
Chris@69 8438 # Code to be used in simple compile tests
Chris@69 8439 lt_simple_compile_test_code="int some_variable = 0;"
Chris@69 8440
Chris@69 8441 # Code to be used in simple link tests
Chris@69 8442 lt_simple_link_test_code='int main(){return(0);}'
Chris@69 8443
Chris@69 8444
Chris@69 8445
Chris@69 8446
Chris@69 8447
Chris@69 8448
Chris@69 8449
Chris@69 8450 # If no C compiler was specified, use CC.
Chris@69 8451 LTCC=${LTCC-"$CC"}
Chris@69 8452
Chris@69 8453 # If no C compiler flags were specified, use CFLAGS.
Chris@69 8454 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@69 8455
Chris@69 8456 # Allow CC to be a program name with arguments.
Chris@69 8457 compiler=$CC
Chris@69 8458
Chris@69 8459 # Save the default compiler, since it gets overwritten when the other
Chris@69 8460 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
Chris@69 8461 compiler_DEFAULT=$CC
Chris@69 8462
Chris@69 8463 # save warnings/boilerplate of simple test code
Chris@69 8464 ac_outfile=conftest.$ac_objext
Chris@69 8465 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Chris@69 8466 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@69 8467 _lt_compiler_boilerplate=`cat conftest.err`
Chris@69 8468 $RM conftest*
Chris@69 8469
Chris@69 8470 ac_outfile=conftest.$ac_objext
Chris@69 8471 echo "$lt_simple_link_test_code" >conftest.$ac_ext
Chris@69 8472 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@69 8473 _lt_linker_boilerplate=`cat conftest.err`
Chris@69 8474 $RM -r conftest*
Chris@69 8475
Chris@69 8476
Chris@69 8477 ## CAVEAT EMPTOR:
Chris@69 8478 ## There is no encapsulation within the following macros, do not change
Chris@69 8479 ## the running order or otherwise move them around unless you know exactly
Chris@69 8480 ## what you are doing...
Chris@69 8481 if test -n "$compiler"; then
Chris@69 8482
Chris@69 8483 lt_prog_compiler_no_builtin_flag=
Chris@69 8484
Chris@69 8485 if test yes = "$GCC"; then
Chris@69 8486 case $cc_basename in
Chris@69 8487 nvcc*)
Chris@69 8488 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
Chris@69 8489 *)
Chris@69 8490 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
Chris@69 8491 esac
Chris@69 8492
Chris@69 8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Chris@69 8494 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Chris@69 8495 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Chris@69 8496 $as_echo_n "(cached) " >&6
Chris@69 8497 else
Chris@69 8498 lt_cv_prog_compiler_rtti_exceptions=no
Chris@69 8499 ac_outfile=conftest.$ac_objext
Chris@69 8500 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@69 8501 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
Chris@69 8502 # Insert the option either (1) after the last *FLAGS variable, or
Chris@69 8503 # (2) before a word containing "conftest.", or (3) at the end.
Chris@69 8504 # Note that $ac_compile itself does not contain backslashes and begins
Chris@69 8505 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@69 8506 # The option is referenced via a variable to avoid confusing sed.
Chris@69 8507 lt_compile=`echo "$ac_compile" | $SED \
Chris@69 8508 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@69 8509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@69 8510 -e 's:$: $lt_compiler_flag:'`
Chris@69 8511 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@69 8512 (eval "$lt_compile" 2>conftest.err)
Chris@69 8513 ac_status=$?
Chris@69 8514 cat conftest.err >&5
Chris@69 8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@69 8516 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@69 8517 # The compiler can only warn and ignore the option if not recognized
Chris@69 8518 # So say no if there are warnings other than the usual output.
Chris@69 8519 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Chris@69 8520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@69 8521 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Chris@69 8522 lt_cv_prog_compiler_rtti_exceptions=yes
Chris@69 8523 fi
Chris@69 8524 fi
Chris@69 8525 $RM conftest*
Chris@69 8526
Chris@69 8527 fi
Chris@69 8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Chris@69 8529 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Chris@69 8530
Chris@69 8531 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
Chris@69 8532 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
Chris@69 8533 else
Chris@69 8534 :
Chris@69 8535 fi
Chris@69 8536
Chris@69 8537 fi
Chris@69 8538
Chris@69 8539
Chris@69 8540
Chris@69 8541
Chris@69 8542
Chris@69 8543
Chris@69 8544 lt_prog_compiler_wl=
Chris@69 8545 lt_prog_compiler_pic=
Chris@69 8546 lt_prog_compiler_static=
Chris@69 8547
Chris@69 8548
Chris@69 8549 if test yes = "$GCC"; then
Chris@69 8550 lt_prog_compiler_wl='-Wl,'
Chris@69 8551 lt_prog_compiler_static='-static'
Chris@69 8552
Chris@69 8553 case $host_os in
Chris@69 8554 aix*)
Chris@69 8555 # All AIX code is PIC.
Chris@69 8556 if test ia64 = "$host_cpu"; then
Chris@69 8557 # AIX 5 now supports IA64 processor
Chris@69 8558 lt_prog_compiler_static='-Bstatic'
Chris@69 8559 fi
Chris@69 8560 lt_prog_compiler_pic='-fPIC'
Chris@69 8561 ;;
Chris@69 8562
Chris@69 8563 amigaos*)
Chris@69 8564 case $host_cpu in
Chris@69 8565 powerpc)
Chris@69 8566 # see comment about AmigaOS4 .so support
Chris@69 8567 lt_prog_compiler_pic='-fPIC'
Chris@69 8568 ;;
Chris@69 8569 m68k)
Chris@69 8570 # FIXME: we need at least 68020 code to build shared libraries, but
Chris@69 8571 # adding the '-m68020' flag to GCC prevents building anything better,
Chris@69 8572 # like '-m68040'.
Chris@69 8573 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
Chris@69 8574 ;;
Chris@69 8575 esac
Chris@69 8576 ;;
Chris@69 8577
Chris@69 8578 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Chris@69 8579 # PIC is the default for these OSes.
Chris@69 8580 ;;
Chris@69 8581
Chris@69 8582 mingw* | cygwin* | pw32* | os2* | cegcc*)
Chris@69 8583 # This hack is so that the source file can tell whether it is being
Chris@69 8584 # built for inclusion in a dll (and should export symbols for example).
Chris@69 8585 # Although the cygwin gcc ignores -fPIC, still need this for old-style
Chris@69 8586 # (--disable-auto-import) libraries
Chris@69 8587 lt_prog_compiler_pic='-DDLL_EXPORT'
Chris@69 8588 case $host_os in
Chris@69 8589 os2*)
Chris@69 8590 lt_prog_compiler_static='$wl-static'
Chris@69 8591 ;;
Chris@69 8592 esac
Chris@69 8593 ;;
Chris@69 8594
Chris@69 8595 darwin* | rhapsody*)
Chris@69 8596 # PIC is the default on this platform
Chris@69 8597 # Common symbols not allowed in MH_DYLIB files
Chris@69 8598 lt_prog_compiler_pic='-fno-common'
Chris@69 8599 ;;
Chris@69 8600
Chris@69 8601 haiku*)
Chris@69 8602 # PIC is the default for Haiku.
Chris@69 8603 # The "-static" flag exists, but is broken.
Chris@69 8604 lt_prog_compiler_static=
Chris@69 8605 ;;
Chris@69 8606
Chris@69 8607 hpux*)
Chris@69 8608 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
Chris@69 8609 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
Chris@69 8610 # sets the default TLS model and affects inlining.
Chris@69 8611 case $host_cpu in
Chris@69 8612 hppa*64*)
Chris@69 8613 # +Z the default
Chris@69 8614 ;;
Chris@69 8615 *)
Chris@69 8616 lt_prog_compiler_pic='-fPIC'
Chris@69 8617 ;;
Chris@69 8618 esac
Chris@69 8619 ;;
Chris@69 8620
Chris@69 8621 interix[3-9]*)
Chris@69 8622 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
Chris@69 8623 # Instead, we relocate shared libraries at runtime.
Chris@69 8624 ;;
Chris@69 8625
Chris@69 8626 msdosdjgpp*)
Chris@69 8627 # Just because we use GCC doesn't mean we suddenly get shared libraries
Chris@69 8628 # on systems that don't support them.
Chris@69 8629 lt_prog_compiler_can_build_shared=no
Chris@69 8630 enable_shared=no
Chris@69 8631 ;;
Chris@69 8632
Chris@69 8633 *nto* | *qnx*)
Chris@69 8634 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@69 8635 # it will coredump.
Chris@69 8636 lt_prog_compiler_pic='-fPIC -shared'
Chris@69 8637 ;;
Chris@69 8638
Chris@69 8639 sysv4*MP*)
Chris@69 8640 if test -d /usr/nec; then
Chris@69 8641 lt_prog_compiler_pic=-Kconform_pic
Chris@69 8642 fi
Chris@69 8643 ;;
Chris@69 8644
Chris@69 8645 *)
Chris@69 8646 lt_prog_compiler_pic='-fPIC'
Chris@69 8647 ;;
Chris@69 8648 esac
Chris@69 8649
Chris@69 8650 case $cc_basename in
Chris@69 8651 nvcc*) # Cuda Compiler Driver 2.2
Chris@69 8652 lt_prog_compiler_wl='-Xlinker '
Chris@69 8653 if test -n "$lt_prog_compiler_pic"; then
Chris@69 8654 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
Chris@69 8655 fi
Chris@69 8656 ;;
Chris@69 8657 esac
Chris@69 8658 else
Chris@69 8659 # PORTME Check for flag to pass linker flags through the system compiler.
Chris@69 8660 case $host_os in
Chris@69 8661 aix*)
Chris@69 8662 lt_prog_compiler_wl='-Wl,'
Chris@69 8663 if test ia64 = "$host_cpu"; then
Chris@69 8664 # AIX 5 now supports IA64 processor
Chris@69 8665 lt_prog_compiler_static='-Bstatic'
Chris@69 8666 else
Chris@69 8667 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
Chris@69 8668 fi
Chris@69 8669 ;;
Chris@69 8670
Chris@69 8671 darwin* | rhapsody*)
Chris@69 8672 # PIC is the default on this platform
Chris@69 8673 # Common symbols not allowed in MH_DYLIB files
Chris@69 8674 lt_prog_compiler_pic='-fno-common'
Chris@69 8675 case $cc_basename in
Chris@69 8676 nagfor*)
Chris@69 8677 # NAG Fortran compiler
Chris@69 8678 lt_prog_compiler_wl='-Wl,-Wl,,'
Chris@69 8679 lt_prog_compiler_pic='-PIC'
Chris@69 8680 lt_prog_compiler_static='-Bstatic'
Chris@69 8681 ;;
Chris@69 8682 esac
Chris@69 8683 ;;
Chris@69 8684
Chris@69 8685 mingw* | cygwin* | pw32* | os2* | cegcc*)
Chris@69 8686 # This hack is so that the source file can tell whether it is being
Chris@69 8687 # built for inclusion in a dll (and should export symbols for example).
Chris@69 8688 lt_prog_compiler_pic='-DDLL_EXPORT'
Chris@69 8689 case $host_os in
Chris@69 8690 os2*)
Chris@69 8691 lt_prog_compiler_static='$wl-static'
Chris@69 8692 ;;
Chris@69 8693 esac
Chris@69 8694 ;;
Chris@69 8695
Chris@69 8696 hpux9* | hpux10* | hpux11*)
Chris@69 8697 lt_prog_compiler_wl='-Wl,'
Chris@69 8698 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
Chris@69 8699 # not for PA HP-UX.
Chris@69 8700 case $host_cpu in
Chris@69 8701 hppa*64*|ia64*)
Chris@69 8702 # +Z the default
Chris@69 8703 ;;
Chris@69 8704 *)
Chris@69 8705 lt_prog_compiler_pic='+Z'
Chris@69 8706 ;;
Chris@69 8707 esac
Chris@69 8708 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Chris@69 8709 lt_prog_compiler_static='$wl-a ${wl}archive'
Chris@69 8710 ;;
Chris@69 8711
Chris@69 8712 irix5* | irix6* | nonstopux*)
Chris@69 8713 lt_prog_compiler_wl='-Wl,'
Chris@69 8714 # PIC (with -KPIC) is the default.
Chris@69 8715 lt_prog_compiler_static='-non_shared'
Chris@69 8716 ;;
Chris@69 8717
Chris@69 8718 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Chris@69 8719 case $cc_basename in
Chris@69 8720 # old Intel for x86_64, which still supported -KPIC.
Chris@69 8721 ecc*)
Chris@69 8722 lt_prog_compiler_wl='-Wl,'
Chris@69 8723 lt_prog_compiler_pic='-KPIC'
Chris@69 8724 lt_prog_compiler_static='-static'
Chris@69 8725 ;;
Chris@69 8726 # icc used to be incompatible with GCC.
Chris@69 8727 # ICC 10 doesn't accept -KPIC any more.
Chris@69 8728 icc* | ifort*)
Chris@69 8729 lt_prog_compiler_wl='-Wl,'
Chris@69 8730 lt_prog_compiler_pic='-fPIC'
Chris@69 8731 lt_prog_compiler_static='-static'
Chris@69 8732 ;;
Chris@69 8733 # Lahey Fortran 8.1.
Chris@69 8734 lf95*)
Chris@69 8735 lt_prog_compiler_wl='-Wl,'
Chris@69 8736 lt_prog_compiler_pic='--shared'
Chris@69 8737 lt_prog_compiler_static='--static'
Chris@69 8738 ;;
Chris@69 8739 nagfor*)
Chris@69 8740 # NAG Fortran compiler
Chris@69 8741 lt_prog_compiler_wl='-Wl,-Wl,,'
Chris@69 8742 lt_prog_compiler_pic='-PIC'
Chris@69 8743 lt_prog_compiler_static='-Bstatic'
Chris@69 8744 ;;
Chris@69 8745 tcc*)
Chris@69 8746 # Fabrice Bellard et al's Tiny C Compiler
Chris@69 8747 lt_prog_compiler_wl='-Wl,'
Chris@69 8748 lt_prog_compiler_pic='-fPIC'
Chris@69 8749 lt_prog_compiler_static='-static'
Chris@69 8750 ;;
Chris@69 8751 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Chris@69 8752 # Portland Group compilers (*not* the Pentium gcc compiler,
Chris@69 8753 # which looks to be a dead project)
Chris@69 8754 lt_prog_compiler_wl='-Wl,'
Chris@69 8755 lt_prog_compiler_pic='-fpic'
Chris@69 8756 lt_prog_compiler_static='-Bstatic'
Chris@69 8757 ;;
Chris@69 8758 ccc*)
Chris@69 8759 lt_prog_compiler_wl='-Wl,'
Chris@69 8760 # All Alpha code is PIC.
Chris@69 8761 lt_prog_compiler_static='-non_shared'
Chris@69 8762 ;;
Chris@69 8763 xl* | bgxl* | bgf* | mpixl*)
Chris@69 8764 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Chris@69 8765 lt_prog_compiler_wl='-Wl,'
Chris@69 8766 lt_prog_compiler_pic='-qpic'
Chris@69 8767 lt_prog_compiler_static='-qstaticlink'
Chris@69 8768 ;;
Chris@69 8769 *)
Chris@69 8770 case `$CC -V 2>&1 | sed 5q` in
Chris@69 8771 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
Chris@69 8772 # Sun Fortran 8.3 passes all unrecognized flags to the linker
Chris@69 8773 lt_prog_compiler_pic='-KPIC'
Chris@69 8774 lt_prog_compiler_static='-Bstatic'
Chris@69 8775 lt_prog_compiler_wl=''
Chris@69 8776 ;;
Chris@69 8777 *Sun\ F* | *Sun*Fortran*)
Chris@69 8778 lt_prog_compiler_pic='-KPIC'
Chris@69 8779 lt_prog_compiler_static='-Bstatic'
Chris@69 8780 lt_prog_compiler_wl='-Qoption ld '
Chris@69 8781 ;;
Chris@69 8782 *Sun\ C*)
Chris@69 8783 # Sun C 5.9
Chris@69 8784 lt_prog_compiler_pic='-KPIC'
Chris@69 8785 lt_prog_compiler_static='-Bstatic'
Chris@69 8786 lt_prog_compiler_wl='-Wl,'
Chris@69 8787 ;;
Chris@69 8788 *Intel*\ [CF]*Compiler*)
Chris@69 8789 lt_prog_compiler_wl='-Wl,'
Chris@69 8790 lt_prog_compiler_pic='-fPIC'
Chris@69 8791 lt_prog_compiler_static='-static'
Chris@69 8792 ;;
Chris@69 8793 *Portland\ Group*)
Chris@69 8794 lt_prog_compiler_wl='-Wl,'
Chris@69 8795 lt_prog_compiler_pic='-fpic'
Chris@69 8796 lt_prog_compiler_static='-Bstatic'
Chris@69 8797 ;;
Chris@69 8798 esac
Chris@69 8799 ;;
Chris@69 8800 esac
Chris@69 8801 ;;
Chris@69 8802
Chris@69 8803 newsos6)
Chris@69 8804 lt_prog_compiler_pic='-KPIC'
Chris@69 8805 lt_prog_compiler_static='-Bstatic'
Chris@69 8806 ;;
Chris@69 8807
Chris@69 8808 *nto* | *qnx*)
Chris@69 8809 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@69 8810 # it will coredump.
Chris@69 8811 lt_prog_compiler_pic='-fPIC -shared'
Chris@69 8812 ;;
Chris@69 8813
Chris@69 8814 osf3* | osf4* | osf5*)
Chris@69 8815 lt_prog_compiler_wl='-Wl,'
Chris@69 8816 # All OSF/1 code is PIC.
Chris@69 8817 lt_prog_compiler_static='-non_shared'
Chris@69 8818 ;;
Chris@69 8819
Chris@69 8820 rdos*)
Chris@69 8821 lt_prog_compiler_static='-non_shared'
Chris@69 8822 ;;
Chris@69 8823
Chris@69 8824 solaris*)
Chris@69 8825 lt_prog_compiler_pic='-KPIC'
Chris@69 8826 lt_prog_compiler_static='-Bstatic'
Chris@69 8827 case $cc_basename in
Chris@69 8828 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Chris@69 8829 lt_prog_compiler_wl='-Qoption ld ';;
Chris@69 8830 *)
Chris@69 8831 lt_prog_compiler_wl='-Wl,';;
Chris@69 8832 esac
Chris@69 8833 ;;
Chris@69 8834
Chris@69 8835 sunos4*)
Chris@69 8836 lt_prog_compiler_wl='-Qoption ld '
Chris@69 8837 lt_prog_compiler_pic='-PIC'
Chris@69 8838 lt_prog_compiler_static='-Bstatic'
Chris@69 8839 ;;
Chris@69 8840
Chris@69 8841 sysv4 | sysv4.2uw2* | sysv4.3*)
Chris@69 8842 lt_prog_compiler_wl='-Wl,'
Chris@69 8843 lt_prog_compiler_pic='-KPIC'
Chris@69 8844 lt_prog_compiler_static='-Bstatic'
Chris@69 8845 ;;
Chris@69 8846
Chris@69 8847 sysv4*MP*)
Chris@69 8848 if test -d /usr/nec; then
Chris@69 8849 lt_prog_compiler_pic='-Kconform_pic'
Chris@69 8850 lt_prog_compiler_static='-Bstatic'
Chris@69 8851 fi
Chris@69 8852 ;;
Chris@69 8853
Chris@69 8854 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
Chris@69 8855 lt_prog_compiler_wl='-Wl,'
Chris@69 8856 lt_prog_compiler_pic='-KPIC'
Chris@69 8857 lt_prog_compiler_static='-Bstatic'
Chris@69 8858 ;;
Chris@69 8859
Chris@69 8860 unicos*)
Chris@69 8861 lt_prog_compiler_wl='-Wl,'
Chris@69 8862 lt_prog_compiler_can_build_shared=no
Chris@69 8863 ;;
Chris@69 8864
Chris@69 8865 uts4*)
Chris@69 8866 lt_prog_compiler_pic='-pic'
Chris@69 8867 lt_prog_compiler_static='-Bstatic'
Chris@69 8868 ;;
Chris@69 8869
Chris@69 8870 *)
Chris@69 8871 lt_prog_compiler_can_build_shared=no
Chris@69 8872 ;;
Chris@69 8873 esac
Chris@69 8874 fi
Chris@69 8875
Chris@69 8876 case $host_os in
Chris@69 8877 # For platforms that do not support PIC, -DPIC is meaningless:
Chris@69 8878 *djgpp*)
Chris@69 8879 lt_prog_compiler_pic=
Chris@69 8880 ;;
Chris@69 8881 *)
Chris@69 8882 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
Chris@69 8883 ;;
Chris@69 8884 esac
Chris@69 8885
Chris@69 8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
Chris@69 8887 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Chris@69 8888 if ${lt_cv_prog_compiler_pic+:} false; then :
Chris@69 8889 $as_echo_n "(cached) " >&6
Chris@69 8890 else
Chris@69 8891 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
Chris@69 8892 fi
Chris@69 8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
Chris@69 8894 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
Chris@69 8895 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Chris@69 8896
Chris@69 8897 #
Chris@69 8898 # Check to make sure the PIC flag actually works.
Chris@69 8899 #
Chris@69 8900 if test -n "$lt_prog_compiler_pic"; then
Chris@69 8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
Chris@69 8902 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Chris@69 8903 if ${lt_cv_prog_compiler_pic_works+:} false; then :
Chris@69 8904 $as_echo_n "(cached) " >&6
Chris@69 8905 else
Chris@69 8906 lt_cv_prog_compiler_pic_works=no
Chris@69 8907 ac_outfile=conftest.$ac_objext
Chris@69 8908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@69 8909 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
Chris@69 8910 # Insert the option either (1) after the last *FLAGS variable, or
Chris@69 8911 # (2) before a word containing "conftest.", or (3) at the end.
Chris@69 8912 # Note that $ac_compile itself does not contain backslashes and begins
Chris@69 8913 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@69 8914 # The option is referenced via a variable to avoid confusing sed.
Chris@69 8915 lt_compile=`echo "$ac_compile" | $SED \
Chris@69 8916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@69 8917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@69 8918 -e 's:$: $lt_compiler_flag:'`
Chris@69 8919 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@69 8920 (eval "$lt_compile" 2>conftest.err)
Chris@69 8921 ac_status=$?
Chris@69 8922 cat conftest.err >&5
Chris@69 8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@69 8924 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@69 8925 # The compiler can only warn and ignore the option if not recognized
Chris@69 8926 # So say no if there are warnings other than the usual output.
Chris@69 8927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Chris@69 8928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@69 8929 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Chris@69 8930 lt_cv_prog_compiler_pic_works=yes
Chris@69 8931 fi
Chris@69 8932 fi
Chris@69 8933 $RM conftest*
Chris@69 8934
Chris@69 8935 fi
Chris@69 8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
Chris@69 8937 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Chris@69 8938
Chris@69 8939 if test yes = "$lt_cv_prog_compiler_pic_works"; then
Chris@69 8940 case $lt_prog_compiler_pic in
Chris@69 8941 "" | " "*) ;;
Chris@69 8942 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
Chris@69 8943 esac
Chris@69 8944 else
Chris@69 8945 lt_prog_compiler_pic=
Chris@69 8946 lt_prog_compiler_can_build_shared=no
Chris@69 8947 fi
Chris@69 8948
Chris@69 8949 fi
Chris@69 8950
Chris@69 8951
Chris@69 8952
Chris@69 8953
Chris@69 8954
Chris@69 8955
Chris@69 8956
Chris@69 8957
Chris@69 8958
Chris@69 8959
Chris@69 8960
Chris@69 8961 #
Chris@69 8962 # Check to make sure the static flag actually works.
Chris@69 8963 #
Chris@69 8964 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Chris@69 8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Chris@69 8966 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Chris@69 8967 if ${lt_cv_prog_compiler_static_works+:} false; then :
Chris@69 8968 $as_echo_n "(cached) " >&6
Chris@69 8969 else
Chris@69 8970 lt_cv_prog_compiler_static_works=no
Chris@69 8971 save_LDFLAGS=$LDFLAGS
Chris@69 8972 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Chris@69 8973 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@69 8974 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@69 8975 # The linker can only warn and ignore the option if not recognized
Chris@69 8976 # So say no if there are warnings
Chris@69 8977 if test -s conftest.err; then
Chris@69 8978 # Append any errors to the config.log.
Chris@69 8979 cat conftest.err 1>&5
Chris@69 8980 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Chris@69 8981 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@69 8982 if diff conftest.exp conftest.er2 >/dev/null; then
Chris@69 8983 lt_cv_prog_compiler_static_works=yes
Chris@69 8984 fi
Chris@69 8985 else
Chris@69 8986 lt_cv_prog_compiler_static_works=yes
Chris@69 8987 fi
Chris@69 8988 fi
Chris@69 8989 $RM -r conftest*
Chris@69 8990 LDFLAGS=$save_LDFLAGS
Chris@69 8991
Chris@69 8992 fi
Chris@69 8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
Chris@69 8994 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Chris@69 8995
Chris@69 8996 if test yes = "$lt_cv_prog_compiler_static_works"; then
Chris@69 8997 :
Chris@69 8998 else
Chris@69 8999 lt_prog_compiler_static=
Chris@69 9000 fi
Chris@69 9001
Chris@69 9002
Chris@69 9003
Chris@69 9004
Chris@69 9005
Chris@69 9006
Chris@69 9007
Chris@69 9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@69 9009 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@69 9010 if ${lt_cv_prog_compiler_c_o+:} false; then :
Chris@69 9011 $as_echo_n "(cached) " >&6
Chris@69 9012 else
Chris@69 9013 lt_cv_prog_compiler_c_o=no
Chris@69 9014 $RM -r conftest 2>/dev/null
Chris@69 9015 mkdir conftest
Chris@69 9016 cd conftest
Chris@69 9017 mkdir out
Chris@69 9018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@69 9019
Chris@69 9020 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@69 9021 # Insert the option either (1) after the last *FLAGS variable, or
Chris@69 9022 # (2) before a word containing "conftest.", or (3) at the end.
Chris@69 9023 # Note that $ac_compile itself does not contain backslashes and begins
Chris@69 9024 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@69 9025 lt_compile=`echo "$ac_compile" | $SED \
Chris@69 9026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@69 9027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@69 9028 -e 's:$: $lt_compiler_flag:'`
Chris@69 9029 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@69 9030 (eval "$lt_compile" 2>out/conftest.err)
Chris@69 9031 ac_status=$?
Chris@69 9032 cat out/conftest.err >&5
Chris@69 9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@69 9034 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@69 9035 then
Chris@69 9036 # The compiler can only warn and ignore the option if not recognized
Chris@69 9037 # So say no if there are warnings
Chris@69 9038 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@69 9039 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@69 9040 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@69 9041 lt_cv_prog_compiler_c_o=yes
Chris@69 9042 fi
Chris@69 9043 fi
Chris@69 9044 chmod u+w . 2>&5
Chris@69 9045 $RM conftest*
Chris@69 9046 # SGI C++ compiler will create directory out/ii_files/ for
Chris@69 9047 # template instantiation
Chris@69 9048 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@69 9049 $RM out/* && rmdir out
Chris@69 9050 cd ..
Chris@69 9051 $RM -r conftest
Chris@69 9052 $RM conftest*
Chris@69 9053
Chris@69 9054 fi
Chris@69 9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Chris@69 9056 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Chris@69 9057
Chris@69 9058
Chris@69 9059
Chris@69 9060
Chris@69 9061
Chris@69 9062
Chris@69 9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@69 9064 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@69 9065 if ${lt_cv_prog_compiler_c_o+:} false; then :
Chris@69 9066 $as_echo_n "(cached) " >&6
Chris@69 9067 else
Chris@69 9068 lt_cv_prog_compiler_c_o=no
Chris@69 9069 $RM -r conftest 2>/dev/null
Chris@69 9070 mkdir conftest
Chris@69 9071 cd conftest
Chris@69 9072 mkdir out
Chris@69 9073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@69 9074
Chris@69 9075 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@69 9076 # Insert the option either (1) after the last *FLAGS variable, or
Chris@69 9077 # (2) before a word containing "conftest.", or (3) at the end.
Chris@69 9078 # Note that $ac_compile itself does not contain backslashes and begins
Chris@69 9079 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@69 9080 lt_compile=`echo "$ac_compile" | $SED \
Chris@69 9081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@69 9082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@69 9083 -e 's:$: $lt_compiler_flag:'`
Chris@69 9084 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@69 9085 (eval "$lt_compile" 2>out/conftest.err)
Chris@69 9086 ac_status=$?
Chris@69 9087 cat out/conftest.err >&5
Chris@69 9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@69 9089 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@69 9090 then
Chris@69 9091 # The compiler can only warn and ignore the option if not recognized
Chris@69 9092 # So say no if there are warnings
Chris@69 9093 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@69 9094 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@69 9095 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@69 9096 lt_cv_prog_compiler_c_o=yes
Chris@69 9097 fi
Chris@69 9098 fi
Chris@69 9099 chmod u+w . 2>&5
Chris@69 9100 $RM conftest*
Chris@69 9101 # SGI C++ compiler will create directory out/ii_files/ for
Chris@69 9102 # template instantiation
Chris@69 9103 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@69 9104 $RM out/* && rmdir out
Chris@69 9105 cd ..
Chris@69 9106 $RM -r conftest
Chris@69 9107 $RM conftest*
Chris@69 9108
Chris@69 9109 fi
Chris@69 9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Chris@69 9111 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Chris@69 9112
Chris@69 9113
Chris@69 9114
Chris@69 9115
Chris@69 9116 hard_links=nottested
Chris@69 9117 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
Chris@69 9118 # do not overwrite the value of need_locks provided by the user
Chris@69 9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Chris@69 9120 $as_echo_n "checking if we can lock with hard links... " >&6; }
Chris@69 9121 hard_links=yes
Chris@69 9122 $RM conftest*
Chris@69 9123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@69 9124 touch conftest.a
Chris@69 9125 ln conftest.a conftest.b 2>&5 || hard_links=no
Chris@69 9126 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@69 9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Chris@69 9128 $as_echo "$hard_links" >&6; }
Chris@69 9129 if test no = "$hard_links"; then
Chris@69 9130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
Chris@69 9131 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
Chris@69 9132 need_locks=warn
Chris@69 9133 fi
Chris@69 9134 else
Chris@69 9135 need_locks=no
Chris@69 9136 fi
Chris@69 9137
Chris@69 9138
Chris@69 9139
Chris@69 9140
Chris@69 9141
Chris@69 9142
Chris@69 9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Chris@69 9144 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Chris@69 9145
Chris@69 9146 runpath_var=
Chris@69 9147 allow_undefined_flag=
Chris@69 9148 always_export_symbols=no
Chris@69 9149 archive_cmds=
Chris@69 9150 archive_expsym_cmds=
Chris@69 9151 compiler_needs_object=no
Chris@69 9152 enable_shared_with_static_runtimes=no
Chris@69 9153 export_dynamic_flag_spec=
Chris@69 9154 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Chris@69 9155 hardcode_automatic=no
Chris@69 9156 hardcode_direct=no
Chris@69 9157 hardcode_direct_absolute=no
Chris@69 9158 hardcode_libdir_flag_spec=
Chris@69 9159 hardcode_libdir_separator=
Chris@69 9160 hardcode_minus_L=no
Chris@69 9161 hardcode_shlibpath_var=unsupported
Chris@69 9162 inherit_rpath=no
Chris@69 9163 link_all_deplibs=unknown
Chris@69 9164 module_cmds=
Chris@69 9165 module_expsym_cmds=
Chris@69 9166 old_archive_from_new_cmds=
Chris@69 9167 old_archive_from_expsyms_cmds=
Chris@69 9168 thread_safe_flag_spec=
Chris@69 9169 whole_archive_flag_spec=
Chris@69 9170 # include_expsyms should be a list of space-separated symbols to be *always*
Chris@69 9171 # included in the symbol list
Chris@69 9172 include_expsyms=
Chris@69 9173 # exclude_expsyms can be an extended regexp of symbols to exclude
Chris@69 9174 # it will be wrapped by ' (' and ')$', so one must not match beginning or
Chris@69 9175 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
Chris@69 9176 # as well as any symbol that contains 'd'.
Chris@69 9177 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Chris@69 9178 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
Chris@69 9179 # platforms (ab)use it in PIC code, but their linkers get confused if
Chris@69 9180 # the symbol is explicitly referenced. Since portable code cannot
Chris@69 9181 # rely on this symbol name, it's probably fine to never include it in
Chris@69 9182 # preloaded symbol tables.
Chris@69 9183 # Exclude shared library initialization/finalization symbols.
Chris@69 9184 extract_expsyms_cmds=
Chris@69 9185
Chris@69 9186 case $host_os in
Chris@69 9187 cygwin* | mingw* | pw32* | cegcc*)
Chris@69 9188 # FIXME: the MSVC++ port hasn't been tested in a loooong time
Chris@69 9189 # When not using gcc, we currently assume that we are using
Chris@69 9190 # Microsoft Visual C++.
Chris@69 9191 if test yes != "$GCC"; then
Chris@69 9192 with_gnu_ld=no
Chris@69 9193 fi
Chris@69 9194 ;;
Chris@69 9195 interix*)
Chris@69 9196 # we just hope/assume this is gcc and not c89 (= MSVC++)
Chris@69 9197 with_gnu_ld=yes
Chris@69 9198 ;;
Chris@69 9199 openbsd* | bitrig*)
Chris@69 9200 with_gnu_ld=no
Chris@69 9201 ;;
Chris@69 9202 esac
Chris@69 9203
Chris@69 9204 ld_shlibs=yes
Chris@69 9205
Chris@69 9206 # On some targets, GNU ld is compatible enough with the native linker
Chris@69 9207 # that we're better off using the native interface for both.
Chris@69 9208 lt_use_gnu_ld_interface=no
Chris@69 9209 if test yes = "$with_gnu_ld"; then
Chris@69 9210 case $host_os in
Chris@69 9211 aix*)
Chris@69 9212 # The AIX port of GNU ld has always aspired to compatibility
Chris@69 9213 # with the native linker. However, as the warning in the GNU ld
Chris@69 9214 # block says, versions before 2.19.5* couldn't really create working
Chris@69 9215 # shared libraries, regardless of the interface used.
Chris@69 9216 case `$LD -v 2>&1` in
Chris@69 9217 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
Chris@69 9218 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
Chris@69 9219 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
Chris@69 9220 *)
Chris@69 9221 lt_use_gnu_ld_interface=yes
Chris@69 9222 ;;
Chris@69 9223 esac
Chris@69 9224 ;;
Chris@69 9225 *)
Chris@69 9226 lt_use_gnu_ld_interface=yes
Chris@69 9227 ;;
Chris@69 9228 esac
Chris@69 9229 fi
Chris@69 9230
Chris@69 9231 if test yes = "$lt_use_gnu_ld_interface"; then
Chris@69 9232 # If archive_cmds runs LD, not CC, wlarc should be empty
Chris@69 9233 wlarc='$wl'
Chris@69 9234
Chris@69 9235 # Set some defaults for GNU ld with shared library support. These
Chris@69 9236 # are reset later if shared libraries are not supported. Putting them
Chris@69 9237 # here allows them to be overridden if necessary.
Chris@69 9238 runpath_var=LD_RUN_PATH
Chris@69 9239 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@69 9240 export_dynamic_flag_spec='$wl--export-dynamic'
Chris@69 9241 # ancient GNU ld didn't support --whole-archive et. al.
Chris@69 9242 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
Chris@69 9243 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
Chris@69 9244 else
Chris@69 9245 whole_archive_flag_spec=
Chris@69 9246 fi
Chris@69 9247 supports_anon_versioning=no
Chris@69 9248 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
Chris@69 9249 *GNU\ gold*) supports_anon_versioning=yes ;;
Chris@69 9250 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
Chris@69 9251 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
Chris@69 9252 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
Chris@69 9253 *\ 2.11.*) ;; # other 2.11 versions
Chris@69 9254 *) supports_anon_versioning=yes ;;
Chris@69 9255 esac
Chris@69 9256
Chris@69 9257 # See if GNU ld supports shared libraries.
Chris@69 9258 case $host_os in
Chris@69 9259 aix[3-9]*)
Chris@69 9260 # On AIX/PPC, the GNU linker is very broken
Chris@69 9261 if test ia64 != "$host_cpu"; then
Chris@69 9262 ld_shlibs=no
Chris@69 9263 cat <<_LT_EOF 1>&2
Chris@69 9264
Chris@69 9265 *** Warning: the GNU linker, at least up to release 2.19, is reported
Chris@69 9266 *** to be unable to reliably create shared libraries on AIX.
Chris@69 9267 *** Therefore, libtool is disabling shared libraries support. If you
Chris@69 9268 *** really care for shared libraries, you may want to install binutils
Chris@69 9269 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
Chris@69 9270 *** You will then need to restart the configuration process.
Chris@69 9271
Chris@69 9272 _LT_EOF
Chris@69 9273 fi
Chris@69 9274 ;;
Chris@69 9275
Chris@69 9276 amigaos*)
Chris@69 9277 case $host_cpu in
Chris@69 9278 powerpc)
Chris@69 9279 # see comment about AmigaOS4 .so support
Chris@69 9280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@69 9281 archive_expsym_cmds=''
Chris@69 9282 ;;
Chris@69 9283 m68k)
Chris@69 9284 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)'
Chris@69 9285 hardcode_libdir_flag_spec='-L$libdir'
Chris@69 9286 hardcode_minus_L=yes
Chris@69 9287 ;;
Chris@69 9288 esac
Chris@69 9289 ;;
Chris@69 9290
Chris@69 9291 beos*)
Chris@69 9292 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@69 9293 allow_undefined_flag=unsupported
Chris@69 9294 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
Chris@69 9295 # support --undefined. This deserves some investigation. FIXME
Chris@69 9296 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@69 9297 else
Chris@69 9298 ld_shlibs=no
Chris@69 9299 fi
Chris@69 9300 ;;
Chris@69 9301
Chris@69 9302 cygwin* | mingw* | pw32* | cegcc*)
Chris@69 9303 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Chris@69 9304 # as there is no search path for DLLs.
Chris@69 9305 hardcode_libdir_flag_spec='-L$libdir'
Chris@69 9306 export_dynamic_flag_spec='$wl--export-all-symbols'
Chris@69 9307 allow_undefined_flag=unsupported
Chris@69 9308 always_export_symbols=no
Chris@69 9309 enable_shared_with_static_runtimes=yes
Chris@69 9310 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
Chris@69 9311 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Chris@69 9312
Chris@69 9313 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Chris@69 9314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Chris@69 9315 # If the export-symbols file already is a .def file, use it as
Chris@69 9316 # is; otherwise, prepend EXPORTS...
Chris@69 9317 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
Chris@69 9318 cp $export_symbols $output_objdir/$soname.def;
Chris@69 9319 else
Chris@69 9320 echo EXPORTS > $output_objdir/$soname.def;
Chris@69 9321 cat $export_symbols >> $output_objdir/$soname.def;
Chris@69 9322 fi~
Chris@69 9323 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Chris@69 9324 else
Chris@69 9325 ld_shlibs=no
Chris@69 9326 fi
Chris@69 9327 ;;
Chris@69 9328
Chris@69 9329 haiku*)
Chris@69 9330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@69 9331 link_all_deplibs=yes
Chris@69 9332 ;;
Chris@69 9333
Chris@69 9334 os2*)
Chris@69 9335 hardcode_libdir_flag_spec='-L$libdir'
Chris@69 9336 hardcode_minus_L=yes
Chris@69 9337 allow_undefined_flag=unsupported
Chris@69 9338 shrext_cmds=.dll
Chris@69 9339 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Chris@69 9340 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Chris@69 9341 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Chris@69 9342 $ECHO EXPORTS >> $output_objdir/$libname.def~
Chris@69 9343 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
Chris@69 9344 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Chris@69 9345 emximp -o $lib $output_objdir/$libname.def'
Chris@69 9346 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Chris@69 9347 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Chris@69 9348 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Chris@69 9349 $ECHO EXPORTS >> $output_objdir/$libname.def~
Chris@69 9350 prefix_cmds="$SED"~
Chris@69 9351 if test EXPORTS = "`$SED 1q $export_symbols`"; then
Chris@69 9352 prefix_cmds="$prefix_cmds -e 1d";
Chris@69 9353 fi~
Chris@69 9354 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
Chris@69 9355 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
Chris@69 9356 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Chris@69 9357 emximp -o $lib $output_objdir/$libname.def'
Chris@69 9358 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
Chris@69 9359 enable_shared_with_static_runtimes=yes
Chris@69 9360 ;;
Chris@69 9361
Chris@69 9362 interix[3-9]*)
Chris@69 9363 hardcode_direct=no
Chris@69 9364 hardcode_shlibpath_var=no
Chris@69 9365 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
Chris@69 9366 export_dynamic_flag_spec='$wl-E'
Chris@69 9367 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
Chris@69 9368 # Instead, shared libraries are loaded at an image base (0x10000000 by
Chris@69 9369 # default) and relocated if they conflict, which is a slow very memory
Chris@69 9370 # consuming and fragmenting process. To avoid this, we pick a random,
Chris@69 9371 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
Chris@69 9372 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Chris@69 9373 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
Chris@69 9374 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'
Chris@69 9375 ;;
Chris@69 9376
Chris@69 9377 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@69 9378 tmp_diet=no
Chris@69 9379 if test linux-dietlibc = "$host_os"; then
Chris@69 9380 case $cc_basename in
Chris@69 9381 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
Chris@69 9382 esac
Chris@69 9383 fi
Chris@69 9384 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
Chris@69 9385 && test no = "$tmp_diet"
Chris@69 9386 then
Chris@69 9387 tmp_addflag=' $pic_flag'
Chris@69 9388 tmp_sharedflag='-shared'
Chris@69 9389 case $cc_basename,$host_cpu in
Chris@69 9390 pgcc*) # Portland Group C compiler
Chris@69 9391 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
Chris@69 9392 tmp_addflag=' $pic_flag'
Chris@69 9393 ;;
Chris@69 9394 pgf77* | pgf90* | pgf95* | pgfortran*)
Chris@69 9395 # Portland Group f77 and f90 compilers
Chris@69 9396 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
Chris@69 9397 tmp_addflag=' $pic_flag -Mnomain' ;;
Chris@69 9398 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Chris@69 9399 tmp_addflag=' -i_dynamic' ;;
Chris@69 9400 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
Chris@69 9401 tmp_addflag=' -i_dynamic -nofor_main' ;;
Chris@69 9402 ifc* | ifort*) # Intel Fortran compiler
Chris@69 9403 tmp_addflag=' -nofor_main' ;;
Chris@69 9404 lf95*) # Lahey Fortran 8.1
Chris@69 9405 whole_archive_flag_spec=
Chris@69 9406 tmp_sharedflag='--shared' ;;
Chris@69 9407 nagfor*) # NAGFOR 5.3
Chris@69 9408 tmp_sharedflag='-Wl,-shared' ;;
Chris@69 9409 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Chris@69 9410 tmp_sharedflag='-qmkshrobj'
Chris@69 9411 tmp_addflag= ;;
Chris@69 9412 nvcc*) # Cuda Compiler Driver 2.2
Chris@69 9413 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
Chris@69 9414 compiler_needs_object=yes
Chris@69 9415 ;;
Chris@69 9416 esac
Chris@69 9417 case `$CC -V 2>&1 | sed 5q` in
Chris@69 9418 *Sun\ C*) # Sun C 5.9
Chris@69 9419 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
Chris@69 9420 compiler_needs_object=yes
Chris@69 9421 tmp_sharedflag='-G' ;;
Chris@69 9422 *Sun\ F*) # Sun Fortran 8.3
Chris@69 9423 tmp_sharedflag='-G' ;;
Chris@69 9424 esac
Chris@69 9425 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@69 9426
Chris@69 9427 if test yes = "$supports_anon_versioning"; then
Chris@69 9428 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Chris@69 9429 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@69 9430 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@69 9431 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
Chris@69 9432 fi
Chris@69 9433
Chris@69 9434 case $cc_basename in
Chris@69 9435 tcc*)
Chris@69 9436 export_dynamic_flag_spec='-rdynamic'
Chris@69 9437 ;;
Chris@69 9438 xlf* | bgf* | bgxlf* | mpixlf*)
Chris@69 9439 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
Chris@69 9440 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Chris@69 9441 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@69 9442 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Chris@69 9443 if test yes = "$supports_anon_versioning"; then
Chris@69 9444 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Chris@69 9445 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@69 9446 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@69 9447 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Chris@69 9448 fi
Chris@69 9449 ;;
Chris@69 9450 esac
Chris@69 9451 else
Chris@69 9452 ld_shlibs=no
Chris@69 9453 fi
Chris@69 9454 ;;
Chris@69 9455
Chris@69 9456 netbsd*)
Chris@69 9457 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@69 9458 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
Chris@69 9459 wlarc=
Chris@69 9460 else
Chris@69 9461 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@69 9462 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Chris@69 9463 fi
Chris@69 9464 ;;
Chris@69 9465
Chris@69 9466 solaris*)
Chris@69 9467 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Chris@69 9468 ld_shlibs=no
Chris@69 9469 cat <<_LT_EOF 1>&2
Chris@69 9470
Chris@69 9471 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
Chris@69 9472 *** create shared libraries on Solaris systems. Therefore, libtool
Chris@69 9473 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@69 9474 *** binutils to release 2.9.1 or newer. Another option is to modify
Chris@69 9475 *** your PATH or compiler configuration so that the native linker is
Chris@69 9476 *** used, and then restart.
Chris@69 9477
Chris@69 9478 _LT_EOF
Chris@69 9479 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@69 9480 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@69 9481 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Chris@69 9482 else
Chris@69 9483 ld_shlibs=no
Chris@69 9484 fi
Chris@69 9485 ;;
Chris@69 9486
Chris@69 9487 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
Chris@69 9488 case `$LD -v 2>&1` in
Chris@69 9489 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
Chris@69 9490 ld_shlibs=no
Chris@69 9491 cat <<_LT_EOF 1>&2
Chris@69 9492
Chris@69 9493 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
Chris@69 9494 *** reliably create shared libraries on SCO systems. Therefore, libtool
Chris@69 9495 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@69 9496 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
Chris@69 9497 *** your PATH or compiler configuration so that the native linker is
Chris@69 9498 *** used, and then restart.
Chris@69 9499
Chris@69 9500 _LT_EOF
Chris@69 9501 ;;
Chris@69 9502 *)
Chris@69 9503 # For security reasons, it is highly recommended that you always
Chris@69 9504 # use absolute paths for naming shared libraries, and exclude the
Chris@69 9505 # DT_RUNPATH tag from executables and libraries. But doing so
Chris@69 9506 # requires that you compile everything twice, which is a pain.
Chris@69 9507 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@69 9508 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@69 9509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@69 9510 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Chris@69 9511 else
Chris@69 9512 ld_shlibs=no
Chris@69 9513 fi
Chris@69 9514 ;;
Chris@69 9515 esac
Chris@69 9516 ;;
Chris@69 9517
Chris@69 9518 sunos4*)
Chris@69 9519 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@69 9520 wlarc=
Chris@69 9521 hardcode_direct=yes
Chris@69 9522 hardcode_shlibpath_var=no
Chris@69 9523 ;;
Chris@69 9524
Chris@69 9525 *)
Chris@69 9526 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@69 9527 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@69 9528 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Chris@69 9529 else
Chris@69 9530 ld_shlibs=no
Chris@69 9531 fi
Chris@69 9532 ;;
Chris@69 9533 esac
Chris@69 9534
Chris@69 9535 if test no = "$ld_shlibs"; then
Chris@69 9536 runpath_var=
Chris@69 9537 hardcode_libdir_flag_spec=
Chris@69 9538 export_dynamic_flag_spec=
Chris@69 9539 whole_archive_flag_spec=
Chris@69 9540 fi
Chris@69 9541 else
Chris@69 9542 # PORTME fill in a description of your system's linker (not GNU ld)
Chris@69 9543 case $host_os in
Chris@69 9544 aix3*)
Chris@69 9545 allow_undefined_flag=unsupported
Chris@69 9546 always_export_symbols=yes
Chris@69 9547 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'
Chris@69 9548 # Note: this linker hardcodes the directories in LIBPATH if there
Chris@69 9549 # are no directories specified by -L.
Chris@69 9550 hardcode_minus_L=yes
Chris@69 9551 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
Chris@69 9552 # Neither direct hardcoding nor static linking is supported with a
Chris@69 9553 # broken collect2.
Chris@69 9554 hardcode_direct=unsupported
Chris@69 9555 fi
Chris@69 9556 ;;
Chris@69 9557
Chris@69 9558 aix[4-9]*)
Chris@69 9559 if test ia64 = "$host_cpu"; then
Chris@69 9560 # On IA64, the linker does run time linking by default, so we don't
Chris@69 9561 # have to do anything special.
Chris@69 9562 aix_use_runtimelinking=no
Chris@69 9563 exp_sym_flag='-Bexport'
Chris@69 9564 no_entry_flag=
Chris@69 9565 else
Chris@69 9566 # If we're using GNU nm, then we don't want the "-C" option.
Chris@69 9567 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
Chris@69 9568 # Without the "-l" option, or with the "-B" option, AIX nm treats
Chris@69 9569 # weak defined symbols like other global defined symbols, whereas
Chris@69 9570 # GNU nm marks them as "W".
Chris@69 9571 # While the 'weak' keyword is ignored in the Export File, we need
Chris@69 9572 # it in the Import File for the 'aix-soname' feature, so we have
Chris@69 9573 # to replace the "-B" option with "-P" for AIX nm.
Chris@69 9574 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Chris@69 9575 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
Chris@69 9576 else
Chris@69 9577 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
Chris@69 9578 fi
Chris@69 9579 aix_use_runtimelinking=no
Chris@69 9580
Chris@69 9581 # Test if we are trying to use run time linking or normal
Chris@69 9582 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Chris@69 9583 # have runtime linking enabled, and use it for executables.
Chris@69 9584 # For shared libraries, we enable/disable runtime linking
Chris@69 9585 # depending on the kind of the shared library created -
Chris@69 9586 # when "with_aix_soname,aix_use_runtimelinking" is:
Chris@69 9587 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
Chris@69 9588 # "aix,yes" lib.so shared, rtl:yes, for executables
Chris@69 9589 # lib.a static archive
Chris@69 9590 # "both,no" lib.so.V(shr.o) shared, rtl:yes
Chris@69 9591 # lib.a(lib.so.V) shared, rtl:no, for executables
Chris@69 9592 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
Chris@69 9593 # lib.a(lib.so.V) shared, rtl:no
Chris@69 9594 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
Chris@69 9595 # lib.a static archive
Chris@69 9596 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Chris@69 9597 for ld_flag in $LDFLAGS; do
Chris@69 9598 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
Chris@69 9599 aix_use_runtimelinking=yes
Chris@69 9600 break
Chris@69 9601 fi
Chris@69 9602 done
Chris@69 9603 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
Chris@69 9604 # With aix-soname=svr4, we create the lib.so.V shared archives only,
Chris@69 9605 # so we don't have lib.a shared libs to link our executables.
Chris@69 9606 # We have to force runtime linking in this case.
Chris@69 9607 aix_use_runtimelinking=yes
Chris@69 9608 LDFLAGS="$LDFLAGS -Wl,-brtl"
Chris@69 9609 fi
Chris@69 9610 ;;
Chris@69 9611 esac
Chris@69 9612
Chris@69 9613 exp_sym_flag='-bexport'
Chris@69 9614 no_entry_flag='-bnoentry'
Chris@69 9615 fi
Chris@69 9616
Chris@69 9617 # When large executables or shared objects are built, AIX ld can
Chris@69 9618 # have problems creating the table of contents. If linking a library
Chris@69 9619 # or program results in "error TOC overflow" add -mminimal-toc to
Chris@69 9620 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
Chris@69 9621 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
Chris@69 9622
Chris@69 9623 archive_cmds=''
Chris@69 9624 hardcode_direct=yes
Chris@69 9625 hardcode_direct_absolute=yes
Chris@69 9626 hardcode_libdir_separator=':'
Chris@69 9627 link_all_deplibs=yes
Chris@69 9628 file_list_spec='$wl-f,'
Chris@69 9629 case $with_aix_soname,$aix_use_runtimelinking in
Chris@69 9630 aix,*) ;; # traditional, no import file
Chris@69 9631 svr4,* | *,yes) # use import file
Chris@69 9632 # The Import File defines what to hardcode.
Chris@69 9633 hardcode_direct=no
Chris@69 9634 hardcode_direct_absolute=no
Chris@69 9635 ;;
Chris@69 9636 esac
Chris@69 9637
Chris@69 9638 if test yes = "$GCC"; then
Chris@69 9639 case $host_os in aix4.[012]|aix4.[012].*)
Chris@69 9640 # We only want to do this on AIX 4.2 and lower, the check
Chris@69 9641 # below for broken collect2 doesn't work under 4.3+
Chris@69 9642 collect2name=`$CC -print-prog-name=collect2`
Chris@69 9643 if test -f "$collect2name" &&
Chris@69 9644 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Chris@69 9645 then
Chris@69 9646 # We have reworked collect2
Chris@69 9647 :
Chris@69 9648 else
Chris@69 9649 # We have old collect2
Chris@69 9650 hardcode_direct=unsupported
Chris@69 9651 # It fails to find uninstalled libraries when the uninstalled
Chris@69 9652 # path is not listed in the libpath. Setting hardcode_minus_L
Chris@69 9653 # to unsupported forces relinking
Chris@69 9654 hardcode_minus_L=yes
Chris@69 9655 hardcode_libdir_flag_spec='-L$libdir'
Chris@69 9656 hardcode_libdir_separator=
Chris@69 9657 fi
Chris@69 9658 ;;
Chris@69 9659 esac
Chris@69 9660 shared_flag='-shared'
Chris@69 9661 if test yes = "$aix_use_runtimelinking"; then
Chris@69 9662 shared_flag="$shared_flag "'$wl-G'
Chris@69 9663 fi
Chris@69 9664 # Need to ensure runtime linking is disabled for the traditional
Chris@69 9665 # shared library, or the linker may eventually find shared libraries
Chris@69 9666 # /with/ Import File - we do not want to mix them.
Chris@69 9667 shared_flag_aix='-shared'
Chris@69 9668 shared_flag_svr4='-shared $wl-G'
Chris@69 9669 else
Chris@69 9670 # not using gcc
Chris@69 9671 if test ia64 = "$host_cpu"; then
Chris@69 9672 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
Chris@69 9673 # chokes on -Wl,-G. The following line is correct:
Chris@69 9674 shared_flag='-G'
Chris@69 9675 else
Chris@69 9676 if test yes = "$aix_use_runtimelinking"; then
Chris@69 9677 shared_flag='$wl-G'
Chris@69 9678 else
Chris@69 9679 shared_flag='$wl-bM:SRE'
Chris@69 9680 fi
Chris@69 9681 shared_flag_aix='$wl-bM:SRE'
Chris@69 9682 shared_flag_svr4='$wl-G'
Chris@69 9683 fi
Chris@69 9684 fi
Chris@69 9685
Chris@69 9686 export_dynamic_flag_spec='$wl-bexpall'
Chris@69 9687 # It seems that -bexpall does not export symbols beginning with
Chris@69 9688 # underscore (_), so it is better to generate a list of symbols to export.
Chris@69 9689 always_export_symbols=yes
Chris@69 9690 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
Chris@69 9691 # Warning - without using the other runtime loading flags (-brtl),
Chris@69 9692 # -berok will link without error, but may produce a broken library.
Chris@69 9693 allow_undefined_flag='-berok'
Chris@69 9694 # Determine the default libpath from the value encoded in an
Chris@69 9695 # empty executable.
Chris@69 9696 if test set = "${lt_cv_aix_libpath+set}"; then
Chris@69 9697 aix_libpath=$lt_cv_aix_libpath
Chris@69 9698 else
Chris@69 9699 if ${lt_cv_aix_libpath_+:} false; then :
Chris@69 9700 $as_echo_n "(cached) " >&6
Chris@69 9701 else
Chris@69 9702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 9703 /* end confdefs.h. */
Chris@69 9704
Chris@69 9705 int
Chris@69 9706 main ()
Chris@69 9707 {
Chris@69 9708
Chris@69 9709 ;
Chris@69 9710 return 0;
Chris@69 9711 }
Chris@69 9712 _ACEOF
Chris@69 9713 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 9714
Chris@69 9715 lt_aix_libpath_sed='
Chris@69 9716 /Import File Strings/,/^$/ {
Chris@69 9717 /^0/ {
Chris@69 9718 s/^0 *\([^ ]*\) *$/\1/
Chris@69 9719 p
Chris@69 9720 }
Chris@69 9721 }'
Chris@69 9722 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@69 9723 # Check for a 64-bit object if we didn't find anything.
Chris@69 9724 if test -z "$lt_cv_aix_libpath_"; then
Chris@69 9725 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@69 9726 fi
Chris@69 9727 fi
Chris@69 9728 rm -f core conftest.err conftest.$ac_objext \
Chris@69 9729 conftest$ac_exeext conftest.$ac_ext
Chris@69 9730 if test -z "$lt_cv_aix_libpath_"; then
Chris@69 9731 lt_cv_aix_libpath_=/usr/lib:/lib
Chris@69 9732 fi
Chris@69 9733
Chris@69 9734 fi
Chris@69 9735
Chris@69 9736 aix_libpath=$lt_cv_aix_libpath_
Chris@69 9737 fi
Chris@69 9738
Chris@69 9739 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
Chris@69 9740 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
Chris@69 9741 else
Chris@69 9742 if test ia64 = "$host_cpu"; then
Chris@69 9743 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
Chris@69 9744 allow_undefined_flag="-z nodefs"
Chris@69 9745 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"
Chris@69 9746 else
Chris@69 9747 # Determine the default libpath from the value encoded in an
Chris@69 9748 # empty executable.
Chris@69 9749 if test set = "${lt_cv_aix_libpath+set}"; then
Chris@69 9750 aix_libpath=$lt_cv_aix_libpath
Chris@69 9751 else
Chris@69 9752 if ${lt_cv_aix_libpath_+:} false; then :
Chris@69 9753 $as_echo_n "(cached) " >&6
Chris@69 9754 else
Chris@69 9755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 9756 /* end confdefs.h. */
Chris@69 9757
Chris@69 9758 int
Chris@69 9759 main ()
Chris@69 9760 {
Chris@69 9761
Chris@69 9762 ;
Chris@69 9763 return 0;
Chris@69 9764 }
Chris@69 9765 _ACEOF
Chris@69 9766 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 9767
Chris@69 9768 lt_aix_libpath_sed='
Chris@69 9769 /Import File Strings/,/^$/ {
Chris@69 9770 /^0/ {
Chris@69 9771 s/^0 *\([^ ]*\) *$/\1/
Chris@69 9772 p
Chris@69 9773 }
Chris@69 9774 }'
Chris@69 9775 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@69 9776 # Check for a 64-bit object if we didn't find anything.
Chris@69 9777 if test -z "$lt_cv_aix_libpath_"; then
Chris@69 9778 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@69 9779 fi
Chris@69 9780 fi
Chris@69 9781 rm -f core conftest.err conftest.$ac_objext \
Chris@69 9782 conftest$ac_exeext conftest.$ac_ext
Chris@69 9783 if test -z "$lt_cv_aix_libpath_"; then
Chris@69 9784 lt_cv_aix_libpath_=/usr/lib:/lib
Chris@69 9785 fi
Chris@69 9786
Chris@69 9787 fi
Chris@69 9788
Chris@69 9789 aix_libpath=$lt_cv_aix_libpath_
Chris@69 9790 fi
Chris@69 9791
Chris@69 9792 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
Chris@69 9793 # Warning - without using the other run time loading flags,
Chris@69 9794 # -berok will link without error, but may produce a broken library.
Chris@69 9795 no_undefined_flag=' $wl-bernotok'
Chris@69 9796 allow_undefined_flag=' $wl-berok'
Chris@69 9797 if test yes = "$with_gnu_ld"; then
Chris@69 9798 # We only use this code for GNU lds that support --whole-archive.
Chris@69 9799 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
Chris@69 9800 else
Chris@69 9801 # Exported symbols can be pulled into shared objects from archives
Chris@69 9802 whole_archive_flag_spec='$convenience'
Chris@69 9803 fi
Chris@69 9804 archive_cmds_need_lc=yes
Chris@69 9805 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
Chris@69 9806 # -brtl affects multiple linker settings, -berok does not and is overridden later
Chris@69 9807 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
Chris@69 9808 if test svr4 != "$with_aix_soname"; then
Chris@69 9809 # This is similar to how AIX traditionally builds its shared libraries.
Chris@69 9810 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
Chris@69 9811 fi
Chris@69 9812 if test aix != "$with_aix_soname"; then
Chris@69 9813 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
Chris@69 9814 else
Chris@69 9815 # used by -dlpreopen to get the symbols
Chris@69 9816 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
Chris@69 9817 fi
Chris@69 9818 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
Chris@69 9819 fi
Chris@69 9820 fi
Chris@69 9821 ;;
Chris@69 9822
Chris@69 9823 amigaos*)
Chris@69 9824 case $host_cpu in
Chris@69 9825 powerpc)
Chris@69 9826 # see comment about AmigaOS4 .so support
Chris@69 9827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@69 9828 archive_expsym_cmds=''
Chris@69 9829 ;;
Chris@69 9830 m68k)
Chris@69 9831 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)'
Chris@69 9832 hardcode_libdir_flag_spec='-L$libdir'
Chris@69 9833 hardcode_minus_L=yes
Chris@69 9834 ;;
Chris@69 9835 esac
Chris@69 9836 ;;
Chris@69 9837
Chris@69 9838 bsdi[45]*)
Chris@69 9839 export_dynamic_flag_spec=-rdynamic
Chris@69 9840 ;;
Chris@69 9841
Chris@69 9842 cygwin* | mingw* | pw32* | cegcc*)
Chris@69 9843 # When not using gcc, we currently assume that we are using
Chris@69 9844 # Microsoft Visual C++.
Chris@69 9845 # hardcode_libdir_flag_spec is actually meaningless, as there is
Chris@69 9846 # no search path for DLLs.
Chris@69 9847 case $cc_basename in
Chris@69 9848 cl*)
Chris@69 9849 # Native MSVC
Chris@69 9850 hardcode_libdir_flag_spec=' '
Chris@69 9851 allow_undefined_flag=unsupported
Chris@69 9852 always_export_symbols=yes
Chris@69 9853 file_list_spec='@'
Chris@69 9854 # Tell ltmain to make .lib files, not .a files.
Chris@69 9855 libext=lib
Chris@69 9856 # Tell ltmain to make .dll files, not .so files.
Chris@69 9857 shrext_cmds=.dll
Chris@69 9858 # FIXME: Setting linknames here is a bad hack.
Chris@69 9859 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
Chris@69 9860 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
Chris@69 9861 cp "$export_symbols" "$output_objdir/$soname.def";
Chris@69 9862 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
Chris@69 9863 else
Chris@69 9864 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
Chris@69 9865 fi~
Chris@69 9866 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
Chris@69 9867 linknames='
Chris@69 9868 # The linker will not automatically build a static lib if we build a DLL.
Chris@69 9869 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
Chris@69 9870 enable_shared_with_static_runtimes=yes
Chris@69 9871 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
Chris@69 9872 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
Chris@69 9873 # Don't use ranlib
Chris@69 9874 old_postinstall_cmds='chmod 644 $oldlib'
Chris@69 9875 postlink_cmds='lt_outputfile="@OUTPUT@"~
Chris@69 9876 lt_tool_outputfile="@TOOL_OUTPUT@"~
Chris@69 9877 case $lt_outputfile in
Chris@69 9878 *.exe|*.EXE) ;;
Chris@69 9879 *)
Chris@69 9880 lt_outputfile=$lt_outputfile.exe
Chris@69 9881 lt_tool_outputfile=$lt_tool_outputfile.exe
Chris@69 9882 ;;
Chris@69 9883 esac~
Chris@69 9884 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
Chris@69 9885 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
Chris@69 9886 $RM "$lt_outputfile.manifest";
Chris@69 9887 fi'
Chris@69 9888 ;;
Chris@69 9889 *)
Chris@69 9890 # Assume MSVC wrapper
Chris@69 9891 hardcode_libdir_flag_spec=' '
Chris@69 9892 allow_undefined_flag=unsupported
Chris@69 9893 # Tell ltmain to make .lib files, not .a files.
Chris@69 9894 libext=lib
Chris@69 9895 # Tell ltmain to make .dll files, not .so files.
Chris@69 9896 shrext_cmds=.dll
Chris@69 9897 # FIXME: Setting linknames here is a bad hack.
Chris@69 9898 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
Chris@69 9899 # The linker will automatically build a .lib file if we build a DLL.
Chris@69 9900 old_archive_from_new_cmds='true'
Chris@69 9901 # FIXME: Should let the user specify the lib program.
Chris@69 9902 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
Chris@69 9903 enable_shared_with_static_runtimes=yes
Chris@69 9904 ;;
Chris@69 9905 esac
Chris@69 9906 ;;
Chris@69 9907
Chris@69 9908 darwin* | rhapsody*)
Chris@69 9909
Chris@69 9910
Chris@69 9911 archive_cmds_need_lc=no
Chris@69 9912 hardcode_direct=no
Chris@69 9913 hardcode_automatic=yes
Chris@69 9914 hardcode_shlibpath_var=unsupported
Chris@69 9915 if test yes = "$lt_cv_ld_force_load"; then
Chris@69 9916 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
Chris@69 9917
Chris@69 9918 else
Chris@69 9919 whole_archive_flag_spec=''
Chris@69 9920 fi
Chris@69 9921 link_all_deplibs=yes
Chris@69 9922 allow_undefined_flag=$_lt_dar_allow_undefined
Chris@69 9923 case $cc_basename in
Chris@69 9924 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
Chris@69 9925 *) _lt_dar_can_shared=$GCC ;;
Chris@69 9926 esac
Chris@69 9927 if test yes = "$_lt_dar_can_shared"; then
Chris@69 9928 output_verbose_link_cmd=func_echo_all
Chris@69 9929 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
Chris@69 9930 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
Chris@69 9931 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"
Chris@69 9932 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"
Chris@69 9933
Chris@69 9934 else
Chris@69 9935 ld_shlibs=no
Chris@69 9936 fi
Chris@69 9937
Chris@69 9938 ;;
Chris@69 9939
Chris@69 9940 dgux*)
Chris@69 9941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@69 9942 hardcode_libdir_flag_spec='-L$libdir'
Chris@69 9943 hardcode_shlibpath_var=no
Chris@69 9944 ;;
Chris@69 9945
Chris@69 9946 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
Chris@69 9947 # support. Future versions do this automatically, but an explicit c++rt0.o
Chris@69 9948 # does not break anything, and helps significantly (at the cost of a little
Chris@69 9949 # extra space).
Chris@69 9950 freebsd2.2*)
Chris@69 9951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
Chris@69 9952 hardcode_libdir_flag_spec='-R$libdir'
Chris@69 9953 hardcode_direct=yes
Chris@69 9954 hardcode_shlibpath_var=no
Chris@69 9955 ;;
Chris@69 9956
Chris@69 9957 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Chris@69 9958 freebsd2.*)
Chris@69 9959 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@69 9960 hardcode_direct=yes
Chris@69 9961 hardcode_minus_L=yes
Chris@69 9962 hardcode_shlibpath_var=no
Chris@69 9963 ;;
Chris@69 9964
Chris@69 9965 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Chris@69 9966 freebsd* | dragonfly*)
Chris@69 9967 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 9968 hardcode_libdir_flag_spec='-R$libdir'
Chris@69 9969 hardcode_direct=yes
Chris@69 9970 hardcode_shlibpath_var=no
Chris@69 9971 ;;
Chris@69 9972
Chris@69 9973 hpux9*)
Chris@69 9974 if test yes = "$GCC"; then
Chris@69 9975 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
Chris@69 9976 else
Chris@69 9977 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
Chris@69 9978 fi
Chris@69 9979 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Chris@69 9980 hardcode_libdir_separator=:
Chris@69 9981 hardcode_direct=yes
Chris@69 9982
Chris@69 9983 # hardcode_minus_L: Not really in the search PATH,
Chris@69 9984 # but as the default location of the library.
Chris@69 9985 hardcode_minus_L=yes
Chris@69 9986 export_dynamic_flag_spec='$wl-E'
Chris@69 9987 ;;
Chris@69 9988
Chris@69 9989 hpux10*)
Chris@69 9990 if test yes,no = "$GCC,$with_gnu_ld"; then
Chris@69 9991 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 9992 else
Chris@69 9993 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Chris@69 9994 fi
Chris@69 9995 if test no = "$with_gnu_ld"; then
Chris@69 9996 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Chris@69 9997 hardcode_libdir_separator=:
Chris@69 9998 hardcode_direct=yes
Chris@69 9999 hardcode_direct_absolute=yes
Chris@69 10000 export_dynamic_flag_spec='$wl-E'
Chris@69 10001 # hardcode_minus_L: Not really in the search PATH,
Chris@69 10002 # but as the default location of the library.
Chris@69 10003 hardcode_minus_L=yes
Chris@69 10004 fi
Chris@69 10005 ;;
Chris@69 10006
Chris@69 10007 hpux11*)
Chris@69 10008 if test yes,no = "$GCC,$with_gnu_ld"; then
Chris@69 10009 case $host_cpu in
Chris@69 10010 hppa*64*)
Chris@69 10011 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10012 ;;
Chris@69 10013 ia64*)
Chris@69 10014 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10015 ;;
Chris@69 10016 *)
Chris@69 10017 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10018 ;;
Chris@69 10019 esac
Chris@69 10020 else
Chris@69 10021 case $host_cpu in
Chris@69 10022 hppa*64*)
Chris@69 10023 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10024 ;;
Chris@69 10025 ia64*)
Chris@69 10026 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10027 ;;
Chris@69 10028 *)
Chris@69 10029
Chris@69 10030 # Older versions of the 11.00 compiler do not understand -b yet
Chris@69 10031 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
Chris@69 10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
Chris@69 10033 $as_echo_n "checking if $CC understands -b... " >&6; }
Chris@69 10034 if ${lt_cv_prog_compiler__b+:} false; then :
Chris@69 10035 $as_echo_n "(cached) " >&6
Chris@69 10036 else
Chris@69 10037 lt_cv_prog_compiler__b=no
Chris@69 10038 save_LDFLAGS=$LDFLAGS
Chris@69 10039 LDFLAGS="$LDFLAGS -b"
Chris@69 10040 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@69 10041 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@69 10042 # The linker can only warn and ignore the option if not recognized
Chris@69 10043 # So say no if there are warnings
Chris@69 10044 if test -s conftest.err; then
Chris@69 10045 # Append any errors to the config.log.
Chris@69 10046 cat conftest.err 1>&5
Chris@69 10047 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Chris@69 10048 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@69 10049 if diff conftest.exp conftest.er2 >/dev/null; then
Chris@69 10050 lt_cv_prog_compiler__b=yes
Chris@69 10051 fi
Chris@69 10052 else
Chris@69 10053 lt_cv_prog_compiler__b=yes
Chris@69 10054 fi
Chris@69 10055 fi
Chris@69 10056 $RM -r conftest*
Chris@69 10057 LDFLAGS=$save_LDFLAGS
Chris@69 10058
Chris@69 10059 fi
Chris@69 10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
Chris@69 10061 $as_echo "$lt_cv_prog_compiler__b" >&6; }
Chris@69 10062
Chris@69 10063 if test yes = "$lt_cv_prog_compiler__b"; then
Chris@69 10064 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10065 else
Chris@69 10066 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Chris@69 10067 fi
Chris@69 10068
Chris@69 10069 ;;
Chris@69 10070 esac
Chris@69 10071 fi
Chris@69 10072 if test no = "$with_gnu_ld"; then
Chris@69 10073 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Chris@69 10074 hardcode_libdir_separator=:
Chris@69 10075
Chris@69 10076 case $host_cpu in
Chris@69 10077 hppa*64*|ia64*)
Chris@69 10078 hardcode_direct=no
Chris@69 10079 hardcode_shlibpath_var=no
Chris@69 10080 ;;
Chris@69 10081 *)
Chris@69 10082 hardcode_direct=yes
Chris@69 10083 hardcode_direct_absolute=yes
Chris@69 10084 export_dynamic_flag_spec='$wl-E'
Chris@69 10085
Chris@69 10086 # hardcode_minus_L: Not really in the search PATH,
Chris@69 10087 # but as the default location of the library.
Chris@69 10088 hardcode_minus_L=yes
Chris@69 10089 ;;
Chris@69 10090 esac
Chris@69 10091 fi
Chris@69 10092 ;;
Chris@69 10093
Chris@69 10094 irix5* | irix6* | nonstopux*)
Chris@69 10095 if test yes = "$GCC"; then
Chris@69 10096 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
Chris@69 10097 # Try to use the -exported_symbol ld option, if it does not
Chris@69 10098 # work, assume that -exports_file does not work either and
Chris@69 10099 # implicitly export all symbols.
Chris@69 10100 # This should be the same for all languages, so no per-tag cache variable.
Chris@69 10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
Chris@69 10102 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
Chris@69 10103 if ${lt_cv_irix_exported_symbol+:} false; then :
Chris@69 10104 $as_echo_n "(cached) " >&6
Chris@69 10105 else
Chris@69 10106 save_LDFLAGS=$LDFLAGS
Chris@69 10107 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
Chris@69 10108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 10109 /* end confdefs.h. */
Chris@69 10110 int foo (void) { return 0; }
Chris@69 10111 _ACEOF
Chris@69 10112 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 10113 lt_cv_irix_exported_symbol=yes
Chris@69 10114 else
Chris@69 10115 lt_cv_irix_exported_symbol=no
Chris@69 10116 fi
Chris@69 10117 rm -f core conftest.err conftest.$ac_objext \
Chris@69 10118 conftest$ac_exeext conftest.$ac_ext
Chris@69 10119 LDFLAGS=$save_LDFLAGS
Chris@69 10120 fi
Chris@69 10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
Chris@69 10122 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
Chris@69 10123 if test yes = "$lt_cv_irix_exported_symbol"; then
Chris@69 10124 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
Chris@69 10125 fi
Chris@69 10126 else
Chris@69 10127 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
Chris@69 10128 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
Chris@69 10129 fi
Chris@69 10130 archive_cmds_need_lc='no'
Chris@69 10131 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@69 10132 hardcode_libdir_separator=:
Chris@69 10133 inherit_rpath=yes
Chris@69 10134 link_all_deplibs=yes
Chris@69 10135 ;;
Chris@69 10136
Chris@69 10137 linux*)
Chris@69 10138 case $cc_basename in
Chris@69 10139 tcc*)
Chris@69 10140 # Fabrice Bellard et al's Tiny C Compiler
Chris@69 10141 ld_shlibs=yes
Chris@69 10142 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10143 ;;
Chris@69 10144 esac
Chris@69 10145 ;;
Chris@69 10146
Chris@69 10147 netbsd*)
Chris@69 10148 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@69 10149 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
Chris@69 10150 else
Chris@69 10151 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
Chris@69 10152 fi
Chris@69 10153 hardcode_libdir_flag_spec='-R$libdir'
Chris@69 10154 hardcode_direct=yes
Chris@69 10155 hardcode_shlibpath_var=no
Chris@69 10156 ;;
Chris@69 10157
Chris@69 10158 newsos6)
Chris@69 10159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@69 10160 hardcode_direct=yes
Chris@69 10161 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@69 10162 hardcode_libdir_separator=:
Chris@69 10163 hardcode_shlibpath_var=no
Chris@69 10164 ;;
Chris@69 10165
Chris@69 10166 *nto* | *qnx*)
Chris@69 10167 ;;
Chris@69 10168
Chris@69 10169 openbsd* | bitrig*)
Chris@69 10170 if test -f /usr/libexec/ld.so; then
Chris@69 10171 hardcode_direct=yes
Chris@69 10172 hardcode_shlibpath_var=no
Chris@69 10173 hardcode_direct_absolute=yes
Chris@69 10174 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Chris@69 10175 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10176 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
Chris@69 10177 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
Chris@69 10178 export_dynamic_flag_spec='$wl-E'
Chris@69 10179 else
Chris@69 10180 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10181 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
Chris@69 10182 fi
Chris@69 10183 else
Chris@69 10184 ld_shlibs=no
Chris@69 10185 fi
Chris@69 10186 ;;
Chris@69 10187
Chris@69 10188 os2*)
Chris@69 10189 hardcode_libdir_flag_spec='-L$libdir'
Chris@69 10190 hardcode_minus_L=yes
Chris@69 10191 allow_undefined_flag=unsupported
Chris@69 10192 shrext_cmds=.dll
Chris@69 10193 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Chris@69 10194 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Chris@69 10195 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Chris@69 10196 $ECHO EXPORTS >> $output_objdir/$libname.def~
Chris@69 10197 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
Chris@69 10198 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Chris@69 10199 emximp -o $lib $output_objdir/$libname.def'
Chris@69 10200 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Chris@69 10201 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Chris@69 10202 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Chris@69 10203 $ECHO EXPORTS >> $output_objdir/$libname.def~
Chris@69 10204 prefix_cmds="$SED"~
Chris@69 10205 if test EXPORTS = "`$SED 1q $export_symbols`"; then
Chris@69 10206 prefix_cmds="$prefix_cmds -e 1d";
Chris@69 10207 fi~
Chris@69 10208 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
Chris@69 10209 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
Chris@69 10210 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Chris@69 10211 emximp -o $lib $output_objdir/$libname.def'
Chris@69 10212 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
Chris@69 10213 enable_shared_with_static_runtimes=yes
Chris@69 10214 ;;
Chris@69 10215
Chris@69 10216 osf3*)
Chris@69 10217 if test yes = "$GCC"; then
Chris@69 10218 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
Chris@69 10219 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
Chris@69 10220 else
Chris@69 10221 allow_undefined_flag=' -expect_unresolved \*'
Chris@69 10222 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
Chris@69 10223 fi
Chris@69 10224 archive_cmds_need_lc='no'
Chris@69 10225 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@69 10226 hardcode_libdir_separator=:
Chris@69 10227 ;;
Chris@69 10228
Chris@69 10229 osf4* | osf5*) # as osf3* with the addition of -msym flag
Chris@69 10230 if test yes = "$GCC"; then
Chris@69 10231 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
Chris@69 10232 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
Chris@69 10233 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@69 10234 else
Chris@69 10235 allow_undefined_flag=' -expect_unresolved \*'
Chris@69 10236 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
Chris@69 10237 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~
Chris@69 10238 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
Chris@69 10239
Chris@69 10240 # Both c and cxx compiler support -rpath directly
Chris@69 10241 hardcode_libdir_flag_spec='-rpath $libdir'
Chris@69 10242 fi
Chris@69 10243 archive_cmds_need_lc='no'
Chris@69 10244 hardcode_libdir_separator=:
Chris@69 10245 ;;
Chris@69 10246
Chris@69 10247 solaris*)
Chris@69 10248 no_undefined_flag=' -z defs'
Chris@69 10249 if test yes = "$GCC"; then
Chris@69 10250 wlarc='$wl'
Chris@69 10251 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10252 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@69 10253 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Chris@69 10254 else
Chris@69 10255 case `$CC -V 2>&1` in
Chris@69 10256 *"Compilers 5.0"*)
Chris@69 10257 wlarc=''
Chris@69 10258 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@69 10259 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@69 10260 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
Chris@69 10261 ;;
Chris@69 10262 *)
Chris@69 10263 wlarc='$wl'
Chris@69 10264 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10265 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@69 10266 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Chris@69 10267 ;;
Chris@69 10268 esac
Chris@69 10269 fi
Chris@69 10270 hardcode_libdir_flag_spec='-R$libdir'
Chris@69 10271 hardcode_shlibpath_var=no
Chris@69 10272 case $host_os in
Chris@69 10273 solaris2.[0-5] | solaris2.[0-5].*) ;;
Chris@69 10274 *)
Chris@69 10275 # The compiler driver will combine and reorder linker options,
Chris@69 10276 # but understands '-z linker_flag'. GCC discards it without '$wl',
Chris@69 10277 # but is careful enough not to reorder.
Chris@69 10278 # Supported since Solaris 2.6 (maybe 2.5.1?)
Chris@69 10279 if test yes = "$GCC"; then
Chris@69 10280 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
Chris@69 10281 else
Chris@69 10282 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
Chris@69 10283 fi
Chris@69 10284 ;;
Chris@69 10285 esac
Chris@69 10286 link_all_deplibs=yes
Chris@69 10287 ;;
Chris@69 10288
Chris@69 10289 sunos4*)
Chris@69 10290 if test sequent = "$host_vendor"; then
Chris@69 10291 # Use $CC to link under sequent, because it throws in some extra .o
Chris@69 10292 # files that make .init and .fini sections work.
Chris@69 10293 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10294 else
Chris@69 10295 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
Chris@69 10296 fi
Chris@69 10297 hardcode_libdir_flag_spec='-L$libdir'
Chris@69 10298 hardcode_direct=yes
Chris@69 10299 hardcode_minus_L=yes
Chris@69 10300 hardcode_shlibpath_var=no
Chris@69 10301 ;;
Chris@69 10302
Chris@69 10303 sysv4)
Chris@69 10304 case $host_vendor in
Chris@69 10305 sni)
Chris@69 10306 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@69 10307 hardcode_direct=yes # is this really true???
Chris@69 10308 ;;
Chris@69 10309 siemens)
Chris@69 10310 ## LD is ld it makes a PLAMLIB
Chris@69 10311 ## CC just makes a GrossModule.
Chris@69 10312 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
Chris@69 10313 reload_cmds='$CC -r -o $output$reload_objs'
Chris@69 10314 hardcode_direct=no
Chris@69 10315 ;;
Chris@69 10316 motorola)
Chris@69 10317 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@69 10318 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
Chris@69 10319 ;;
Chris@69 10320 esac
Chris@69 10321 runpath_var='LD_RUN_PATH'
Chris@69 10322 hardcode_shlibpath_var=no
Chris@69 10323 ;;
Chris@69 10324
Chris@69 10325 sysv4.3*)
Chris@69 10326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@69 10327 hardcode_shlibpath_var=no
Chris@69 10328 export_dynamic_flag_spec='-Bexport'
Chris@69 10329 ;;
Chris@69 10330
Chris@69 10331 sysv4*MP*)
Chris@69 10332 if test -d /usr/nec; then
Chris@69 10333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@69 10334 hardcode_shlibpath_var=no
Chris@69 10335 runpath_var=LD_RUN_PATH
Chris@69 10336 hardcode_runpath_var=yes
Chris@69 10337 ld_shlibs=yes
Chris@69 10338 fi
Chris@69 10339 ;;
Chris@69 10340
Chris@69 10341 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Chris@69 10342 no_undefined_flag='$wl-z,text'
Chris@69 10343 archive_cmds_need_lc=no
Chris@69 10344 hardcode_shlibpath_var=no
Chris@69 10345 runpath_var='LD_RUN_PATH'
Chris@69 10346
Chris@69 10347 if test yes = "$GCC"; then
Chris@69 10348 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10349 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10350 else
Chris@69 10351 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10352 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10353 fi
Chris@69 10354 ;;
Chris@69 10355
Chris@69 10356 sysv5* | sco3.2v5* | sco5v6*)
Chris@69 10357 # Note: We CANNOT use -z defs as we might desire, because we do not
Chris@69 10358 # link with -lc, and that would cause any symbols used from libc to
Chris@69 10359 # always be unresolved, which means just about no library would
Chris@69 10360 # ever link correctly. If we're not using GNU ld we use -z text
Chris@69 10361 # though, which does catch some bad symbols but isn't as heavy-handed
Chris@69 10362 # as -z defs.
Chris@69 10363 no_undefined_flag='$wl-z,text'
Chris@69 10364 allow_undefined_flag='$wl-z,nodefs'
Chris@69 10365 archive_cmds_need_lc=no
Chris@69 10366 hardcode_shlibpath_var=no
Chris@69 10367 hardcode_libdir_flag_spec='$wl-R,$libdir'
Chris@69 10368 hardcode_libdir_separator=':'
Chris@69 10369 link_all_deplibs=yes
Chris@69 10370 export_dynamic_flag_spec='$wl-Bexport'
Chris@69 10371 runpath_var='LD_RUN_PATH'
Chris@69 10372
Chris@69 10373 if test yes = "$GCC"; then
Chris@69 10374 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10375 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10376 else
Chris@69 10377 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10378 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10379 fi
Chris@69 10380 ;;
Chris@69 10381
Chris@69 10382 uts4*)
Chris@69 10383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@69 10384 hardcode_libdir_flag_spec='-L$libdir'
Chris@69 10385 hardcode_shlibpath_var=no
Chris@69 10386 ;;
Chris@69 10387
Chris@69 10388 *)
Chris@69 10389 ld_shlibs=no
Chris@69 10390 ;;
Chris@69 10391 esac
Chris@69 10392
Chris@69 10393 if test sni = "$host_vendor"; then
Chris@69 10394 case $host in
Chris@69 10395 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Chris@69 10396 export_dynamic_flag_spec='$wl-Blargedynsym'
Chris@69 10397 ;;
Chris@69 10398 esac
Chris@69 10399 fi
Chris@69 10400 fi
Chris@69 10401
Chris@69 10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
Chris@69 10403 $as_echo "$ld_shlibs" >&6; }
Chris@69 10404 test no = "$ld_shlibs" && can_build_shared=no
Chris@69 10405
Chris@69 10406 with_gnu_ld=$with_gnu_ld
Chris@69 10407
Chris@69 10408
Chris@69 10409
Chris@69 10410
Chris@69 10411
Chris@69 10412
Chris@69 10413
Chris@69 10414
Chris@69 10415
Chris@69 10416
Chris@69 10417
Chris@69 10418
Chris@69 10419
Chris@69 10420
Chris@69 10421
Chris@69 10422 #
Chris@69 10423 # Do we need to explicitly link libc?
Chris@69 10424 #
Chris@69 10425 case "x$archive_cmds_need_lc" in
Chris@69 10426 x|xyes)
Chris@69 10427 # Assume -lc should be added
Chris@69 10428 archive_cmds_need_lc=yes
Chris@69 10429
Chris@69 10430 if test yes,yes = "$GCC,$enable_shared"; then
Chris@69 10431 case $archive_cmds in
Chris@69 10432 *'~'*)
Chris@69 10433 # FIXME: we may have to deal with multi-command sequences.
Chris@69 10434 ;;
Chris@69 10435 '$CC '*)
Chris@69 10436 # Test whether the compiler implicitly links with -lc since on some
Chris@69 10437 # systems, -lgcc has to come before -lc. If gcc already passes -lc
Chris@69 10438 # to ld, don't add -lc before -lgcc.
Chris@69 10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Chris@69 10440 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Chris@69 10441 if ${lt_cv_archive_cmds_need_lc+:} false; then :
Chris@69 10442 $as_echo_n "(cached) " >&6
Chris@69 10443 else
Chris@69 10444 $RM conftest*
Chris@69 10445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@69 10446
Chris@69 10447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@69 10448 (eval $ac_compile) 2>&5
Chris@69 10449 ac_status=$?
Chris@69 10450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 10451 test $ac_status = 0; } 2>conftest.err; then
Chris@69 10452 soname=conftest
Chris@69 10453 lib=conftest
Chris@69 10454 libobjs=conftest.$ac_objext
Chris@69 10455 deplibs=
Chris@69 10456 wl=$lt_prog_compiler_wl
Chris@69 10457 pic_flag=$lt_prog_compiler_pic
Chris@69 10458 compiler_flags=-v
Chris@69 10459 linker_flags=-v
Chris@69 10460 verstring=
Chris@69 10461 output_objdir=.
Chris@69 10462 libname=conftest
Chris@69 10463 lt_save_allow_undefined_flag=$allow_undefined_flag
Chris@69 10464 allow_undefined_flag=
Chris@69 10465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Chris@69 10466 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Chris@69 10467 ac_status=$?
Chris@69 10468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 10469 test $ac_status = 0; }
Chris@69 10470 then
Chris@69 10471 lt_cv_archive_cmds_need_lc=no
Chris@69 10472 else
Chris@69 10473 lt_cv_archive_cmds_need_lc=yes
Chris@69 10474 fi
Chris@69 10475 allow_undefined_flag=$lt_save_allow_undefined_flag
Chris@69 10476 else
Chris@69 10477 cat conftest.err 1>&5
Chris@69 10478 fi
Chris@69 10479 $RM conftest*
Chris@69 10480
Chris@69 10481 fi
Chris@69 10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
Chris@69 10483 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
Chris@69 10484 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Chris@69 10485 ;;
Chris@69 10486 esac
Chris@69 10487 fi
Chris@69 10488 ;;
Chris@69 10489 esac
Chris@69 10490
Chris@69 10491
Chris@69 10492
Chris@69 10493
Chris@69 10494
Chris@69 10495
Chris@69 10496
Chris@69 10497
Chris@69 10498
Chris@69 10499
Chris@69 10500
Chris@69 10501
Chris@69 10502
Chris@69 10503
Chris@69 10504
Chris@69 10505
Chris@69 10506
Chris@69 10507
Chris@69 10508
Chris@69 10509
Chris@69 10510
Chris@69 10511
Chris@69 10512
Chris@69 10513
Chris@69 10514
Chris@69 10515
Chris@69 10516
Chris@69 10517
Chris@69 10518
Chris@69 10519
Chris@69 10520
Chris@69 10521
Chris@69 10522
Chris@69 10523
Chris@69 10524
Chris@69 10525
Chris@69 10526
Chris@69 10527
Chris@69 10528
Chris@69 10529
Chris@69 10530
Chris@69 10531
Chris@69 10532
Chris@69 10533
Chris@69 10534
Chris@69 10535
Chris@69 10536
Chris@69 10537
Chris@69 10538
Chris@69 10539
Chris@69 10540
Chris@69 10541
Chris@69 10542
Chris@69 10543
Chris@69 10544
Chris@69 10545
Chris@69 10546
Chris@69 10547
Chris@69 10548
Chris@69 10549
Chris@69 10550
Chris@69 10551
Chris@69 10552
Chris@69 10553
Chris@69 10554
Chris@69 10555
Chris@69 10556
Chris@69 10557
Chris@69 10558
Chris@69 10559
Chris@69 10560
Chris@69 10561
Chris@69 10562
Chris@69 10563
Chris@69 10564
Chris@69 10565
Chris@69 10566
Chris@69 10567
Chris@69 10568
Chris@69 10569
Chris@69 10570
Chris@69 10571
Chris@69 10572
Chris@69 10573
Chris@69 10574
Chris@69 10575
Chris@69 10576
Chris@69 10577
Chris@69 10578
Chris@69 10579
Chris@69 10580
Chris@69 10581
Chris@69 10582
Chris@69 10583
Chris@69 10584
Chris@69 10585
Chris@69 10586
Chris@69 10587
Chris@69 10588
Chris@69 10589
Chris@69 10590
Chris@69 10591
Chris@69 10592
Chris@69 10593
Chris@69 10594
Chris@69 10595
Chris@69 10596
Chris@69 10597
Chris@69 10598
Chris@69 10599
Chris@69 10600
Chris@69 10601
Chris@69 10602
Chris@69 10603
Chris@69 10604
Chris@69 10605
Chris@69 10606
Chris@69 10607
Chris@69 10608
Chris@69 10609
Chris@69 10610
Chris@69 10611
Chris@69 10612
Chris@69 10613
Chris@69 10614
Chris@69 10615
Chris@69 10616
Chris@69 10617
Chris@69 10618
Chris@69 10619
Chris@69 10620
Chris@69 10621
Chris@69 10622
Chris@69 10623
Chris@69 10624
Chris@69 10625
Chris@69 10626
Chris@69 10627
Chris@69 10628
Chris@69 10629
Chris@69 10630
Chris@69 10631
Chris@69 10632
Chris@69 10633
Chris@69 10634
Chris@69 10635
Chris@69 10636
Chris@69 10637
Chris@69 10638
Chris@69 10639
Chris@69 10640
Chris@69 10641
Chris@69 10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Chris@69 10643 $as_echo_n "checking dynamic linker characteristics... " >&6; }
Chris@69 10644
Chris@69 10645 if test yes = "$GCC"; then
Chris@69 10646 case $host_os in
Chris@69 10647 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
Chris@69 10648 *) lt_awk_arg='/^libraries:/' ;;
Chris@69 10649 esac
Chris@69 10650 case $host_os in
Chris@69 10651 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
Chris@69 10652 *) lt_sed_strip_eq='s|=/|/|g' ;;
Chris@69 10653 esac
Chris@69 10654 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
Chris@69 10655 case $lt_search_path_spec in
Chris@69 10656 *\;*)
Chris@69 10657 # if the path contains ";" then we assume it to be the separator
Chris@69 10658 # otherwise default to the standard path separator (i.e. ":") - it is
Chris@69 10659 # assumed that no part of a normal pathname contains ";" but that should
Chris@69 10660 # okay in the real world where ";" in dirpaths is itself problematic.
Chris@69 10661 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
Chris@69 10662 ;;
Chris@69 10663 *)
Chris@69 10664 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
Chris@69 10665 ;;
Chris@69 10666 esac
Chris@69 10667 # Ok, now we have the path, separated by spaces, we can step through it
Chris@69 10668 # and add multilib dir if necessary...
Chris@69 10669 lt_tmp_lt_search_path_spec=
Chris@69 10670 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
Chris@69 10671 # ...but if some path component already ends with the multilib dir we assume
Chris@69 10672 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
Chris@69 10673 case "$lt_multi_os_dir; $lt_search_path_spec " in
Chris@69 10674 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
Chris@69 10675 lt_multi_os_dir=
Chris@69 10676 ;;
Chris@69 10677 esac
Chris@69 10678 for lt_sys_path in $lt_search_path_spec; do
Chris@69 10679 if test -d "$lt_sys_path$lt_multi_os_dir"; then
Chris@69 10680 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
Chris@69 10681 elif test -n "$lt_multi_os_dir"; then
Chris@69 10682 test -d "$lt_sys_path" && \
Chris@69 10683 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
Chris@69 10684 fi
Chris@69 10685 done
Chris@69 10686 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Chris@69 10687 BEGIN {RS = " "; FS = "/|\n";} {
Chris@69 10688 lt_foo = "";
Chris@69 10689 lt_count = 0;
Chris@69 10690 for (lt_i = NF; lt_i > 0; lt_i--) {
Chris@69 10691 if ($lt_i != "" && $lt_i != ".") {
Chris@69 10692 if ($lt_i == "..") {
Chris@69 10693 lt_count++;
Chris@69 10694 } else {
Chris@69 10695 if (lt_count == 0) {
Chris@69 10696 lt_foo = "/" $lt_i lt_foo;
Chris@69 10697 } else {
Chris@69 10698 lt_count--;
Chris@69 10699 }
Chris@69 10700 }
Chris@69 10701 }
Chris@69 10702 }
Chris@69 10703 if (lt_foo != "") { lt_freq[lt_foo]++; }
Chris@69 10704 if (lt_freq[lt_foo] == 1) { print lt_foo; }
Chris@69 10705 }'`
Chris@69 10706 # AWK program above erroneously prepends '/' to C:/dos/paths
Chris@69 10707 # for these hosts.
Chris@69 10708 case $host_os in
Chris@69 10709 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
Chris@69 10710 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
Chris@69 10711 esac
Chris@69 10712 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Chris@69 10713 else
Chris@69 10714 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Chris@69 10715 fi
Chris@69 10716 library_names_spec=
Chris@69 10717 libname_spec='lib$name'
Chris@69 10718 soname_spec=
Chris@69 10719 shrext_cmds=.so
Chris@69 10720 postinstall_cmds=
Chris@69 10721 postuninstall_cmds=
Chris@69 10722 finish_cmds=
Chris@69 10723 finish_eval=
Chris@69 10724 shlibpath_var=
Chris@69 10725 shlibpath_overrides_runpath=unknown
Chris@69 10726 version_type=none
Chris@69 10727 dynamic_linker="$host_os ld.so"
Chris@69 10728 sys_lib_dlsearch_path_spec="/lib /usr/lib"
Chris@69 10729 need_lib_prefix=unknown
Chris@69 10730 hardcode_into_libs=no
Chris@69 10731
Chris@69 10732 # when you set need_version to no, make sure it does not cause -set_version
Chris@69 10733 # flags to be left without arguments
Chris@69 10734 need_version=unknown
Chris@69 10735
Chris@69 10736
Chris@69 10737
Chris@69 10738 case $host_os in
Chris@69 10739 aix3*)
Chris@69 10740 version_type=linux # correct to gnu/linux during the next big refactor
Chris@69 10741 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
Chris@69 10742 shlibpath_var=LIBPATH
Chris@69 10743
Chris@69 10744 # AIX 3 has no versioning support, so we append a major version to the name.
Chris@69 10745 soname_spec='$libname$release$shared_ext$major'
Chris@69 10746 ;;
Chris@69 10747
Chris@69 10748 aix[4-9]*)
Chris@69 10749 version_type=linux # correct to gnu/linux during the next big refactor
Chris@69 10750 need_lib_prefix=no
Chris@69 10751 need_version=no
Chris@69 10752 hardcode_into_libs=yes
Chris@69 10753 if test ia64 = "$host_cpu"; then
Chris@69 10754 # AIX 5 supports IA64
Chris@69 10755 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
Chris@69 10756 shlibpath_var=LD_LIBRARY_PATH
Chris@69 10757 else
Chris@69 10758 # With GCC up to 2.95.x, collect2 would create an import file
Chris@69 10759 # for dependence libraries. The import file would start with
Chris@69 10760 # the line '#! .'. This would cause the generated library to
Chris@69 10761 # depend on '.', always an invalid library. This was fixed in
Chris@69 10762 # development snapshots of GCC prior to 3.0.
Chris@69 10763 case $host_os in
Chris@69 10764 aix4 | aix4.[01] | aix4.[01].*)
Chris@69 10765 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
Chris@69 10766 echo ' yes '
Chris@69 10767 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
Chris@69 10768 :
Chris@69 10769 else
Chris@69 10770 can_build_shared=no
Chris@69 10771 fi
Chris@69 10772 ;;
Chris@69 10773 esac
Chris@69 10774 # Using Import Files as archive members, it is possible to support
Chris@69 10775 # filename-based versioning of shared library archives on AIX. While
Chris@69 10776 # this would work for both with and without runtime linking, it will
Chris@69 10777 # prevent static linking of such archives. So we do filename-based
Chris@69 10778 # shared library versioning with .so extension only, which is used
Chris@69 10779 # when both runtime linking and shared linking is enabled.
Chris@69 10780 # Unfortunately, runtime linking may impact performance, so we do
Chris@69 10781 # not want this to be the default eventually. Also, we use the
Chris@69 10782 # versioned .so libs for executables only if there is the -brtl
Chris@69 10783 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
Chris@69 10784 # To allow for filename-based versioning support, we need to create
Chris@69 10785 # libNAME.so.V as an archive file, containing:
Chris@69 10786 # *) an Import File, referring to the versioned filename of the
Chris@69 10787 # archive as well as the shared archive member, telling the
Chris@69 10788 # bitwidth (32 or 64) of that shared object, and providing the
Chris@69 10789 # list of exported symbols of that shared object, eventually
Chris@69 10790 # decorated with the 'weak' keyword
Chris@69 10791 # *) the shared object with the F_LOADONLY flag set, to really avoid
Chris@69 10792 # it being seen by the linker.
Chris@69 10793 # At run time we better use the real file rather than another symlink,
Chris@69 10794 # but for link time we create the symlink libNAME.so -> libNAME.so.V
Chris@69 10795
Chris@69 10796 case $with_aix_soname,$aix_use_runtimelinking in
Chris@69 10797 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
Chris@69 10798 # soname into executable. Probably we can add versioning support to
Chris@69 10799 # collect2, so additional links can be useful in future.
Chris@69 10800 aix,yes) # traditional libtool
Chris@69 10801 dynamic_linker='AIX unversionable lib.so'
Chris@69 10802 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
Chris@69 10803 # instead of lib<name>.a to let people know that these are not
Chris@69 10804 # typical AIX shared libraries.
Chris@69 10805 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 10806 ;;
Chris@69 10807 aix,no) # traditional AIX only
Chris@69 10808 dynamic_linker='AIX lib.a(lib.so.V)'
Chris@69 10809 # We preserve .a as extension for shared libraries through AIX4.2
Chris@69 10810 # and later when we are not doing run time linking.
Chris@69 10811 library_names_spec='$libname$release.a $libname.a'
Chris@69 10812 soname_spec='$libname$release$shared_ext$major'
Chris@69 10813 ;;
Chris@69 10814 svr4,*) # full svr4 only
Chris@69 10815 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
Chris@69 10816 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
Chris@69 10817 # We do not specify a path in Import Files, so LIBPATH fires.
Chris@69 10818 shlibpath_overrides_runpath=yes
Chris@69 10819 ;;
Chris@69 10820 *,yes) # both, prefer svr4
Chris@69 10821 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
Chris@69 10822 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
Chris@69 10823 # unpreferred sharedlib libNAME.a needs extra handling
Chris@69 10824 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
Chris@69 10825 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
Chris@69 10826 # We do not specify a path in Import Files, so LIBPATH fires.
Chris@69 10827 shlibpath_overrides_runpath=yes
Chris@69 10828 ;;
Chris@69 10829 *,no) # both, prefer aix
Chris@69 10830 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
Chris@69 10831 library_names_spec='$libname$release.a $libname.a'
Chris@69 10832 soname_spec='$libname$release$shared_ext$major'
Chris@69 10833 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
Chris@69 10834 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
Chris@69 10835 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
Chris@69 10836 ;;
Chris@69 10837 esac
Chris@69 10838 shlibpath_var=LIBPATH
Chris@69 10839 fi
Chris@69 10840 ;;
Chris@69 10841
Chris@69 10842 amigaos*)
Chris@69 10843 case $host_cpu in
Chris@69 10844 powerpc)
Chris@69 10845 # Since July 2007 AmigaOS4 officially supports .so libraries.
Chris@69 10846 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Chris@69 10847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 10848 ;;
Chris@69 10849 m68k)
Chris@69 10850 library_names_spec='$libname.ixlibrary $libname.a'
Chris@69 10851 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Chris@69 10852 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
Chris@69 10853 ;;
Chris@69 10854 esac
Chris@69 10855 ;;
Chris@69 10856
Chris@69 10857 beos*)
Chris@69 10858 library_names_spec='$libname$shared_ext'
Chris@69 10859 dynamic_linker="$host_os ld.so"
Chris@69 10860 shlibpath_var=LIBRARY_PATH
Chris@69 10861 ;;
Chris@69 10862
Chris@69 10863 bsdi[45]*)
Chris@69 10864 version_type=linux # correct to gnu/linux during the next big refactor
Chris@69 10865 need_version=no
Chris@69 10866 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 10867 soname_spec='$libname$release$shared_ext$major'
Chris@69 10868 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
Chris@69 10869 shlibpath_var=LD_LIBRARY_PATH
Chris@69 10870 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
Chris@69 10871 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Chris@69 10872 # the default ld.so.conf also contains /usr/contrib/lib and
Chris@69 10873 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
Chris@69 10874 # libtool to hard-code these into programs
Chris@69 10875 ;;
Chris@69 10876
Chris@69 10877 cygwin* | mingw* | pw32* | cegcc*)
Chris@69 10878 version_type=windows
Chris@69 10879 shrext_cmds=.dll
Chris@69 10880 need_version=no
Chris@69 10881 need_lib_prefix=no
Chris@69 10882
Chris@69 10883 case $GCC,$cc_basename in
Chris@69 10884 yes,*)
Chris@69 10885 # gcc
Chris@69 10886 library_names_spec='$libname.dll.a'
Chris@69 10887 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@69 10888 postinstall_cmds='base_file=`basename \$file`~
Chris@69 10889 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Chris@69 10890 dldir=$destdir/`dirname \$dlpath`~
Chris@69 10891 test -d \$dldir || mkdir -p \$dldir~
Chris@69 10892 $install_prog $dir/$dlname \$dldir/$dlname~
Chris@69 10893 chmod a+x \$dldir/$dlname~
Chris@69 10894 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Chris@69 10895 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Chris@69 10896 fi'
Chris@69 10897 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@69 10898 dlpath=$dir/\$dldll~
Chris@69 10899 $RM \$dlpath'
Chris@69 10900 shlibpath_overrides_runpath=yes
Chris@69 10901
Chris@69 10902 case $host_os in
Chris@69 10903 cygwin*)
Chris@69 10904 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Chris@69 10905 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Chris@69 10906
Chris@69 10907 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Chris@69 10908 ;;
Chris@69 10909 mingw* | cegcc*)
Chris@69 10910 # MinGW DLLs use traditional 'lib' prefix
Chris@69 10911 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Chris@69 10912 ;;
Chris@69 10913 pw32*)
Chris@69 10914 # pw32 DLLs use 'pw' prefix rather than 'lib'
Chris@69 10915 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Chris@69 10916 ;;
Chris@69 10917 esac
Chris@69 10918 dynamic_linker='Win32 ld.exe'
Chris@69 10919 ;;
Chris@69 10920
Chris@69 10921 *,cl*)
Chris@69 10922 # Native MSVC
Chris@69 10923 libname_spec='$name'
Chris@69 10924 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Chris@69 10925 library_names_spec='$libname.dll.lib'
Chris@69 10926
Chris@69 10927 case $build_os in
Chris@69 10928 mingw*)
Chris@69 10929 sys_lib_search_path_spec=
Chris@69 10930 lt_save_ifs=$IFS
Chris@69 10931 IFS=';'
Chris@69 10932 for lt_path in $LIB
Chris@69 10933 do
Chris@69 10934 IFS=$lt_save_ifs
Chris@69 10935 # Let DOS variable expansion print the short 8.3 style file name.
Chris@69 10936 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
Chris@69 10937 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
Chris@69 10938 done
Chris@69 10939 IFS=$lt_save_ifs
Chris@69 10940 # Convert to MSYS style.
Chris@69 10941 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
Chris@69 10942 ;;
Chris@69 10943 cygwin*)
Chris@69 10944 # Convert to unix form, then to dos form, then back to unix form
Chris@69 10945 # but this time dos style (no spaces!) so that the unix form looks
Chris@69 10946 # like /cygdrive/c/PROGRA~1:/cygdr...
Chris@69 10947 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
Chris@69 10948 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
Chris@69 10949 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@69 10950 ;;
Chris@69 10951 *)
Chris@69 10952 sys_lib_search_path_spec=$LIB
Chris@69 10953 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
Chris@69 10954 # It is most probably a Windows format PATH.
Chris@69 10955 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Chris@69 10956 else
Chris@69 10957 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@69 10958 fi
Chris@69 10959 # FIXME: find the short name or the path components, as spaces are
Chris@69 10960 # common. (e.g. "Program Files" -> "PROGRA~1")
Chris@69 10961 ;;
Chris@69 10962 esac
Chris@69 10963
Chris@69 10964 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@69 10965 postinstall_cmds='base_file=`basename \$file`~
Chris@69 10966 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Chris@69 10967 dldir=$destdir/`dirname \$dlpath`~
Chris@69 10968 test -d \$dldir || mkdir -p \$dldir~
Chris@69 10969 $install_prog $dir/$dlname \$dldir/$dlname'
Chris@69 10970 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@69 10971 dlpath=$dir/\$dldll~
Chris@69 10972 $RM \$dlpath'
Chris@69 10973 shlibpath_overrides_runpath=yes
Chris@69 10974 dynamic_linker='Win32 link.exe'
Chris@69 10975 ;;
Chris@69 10976
Chris@69 10977 *)
Chris@69 10978 # Assume MSVC wrapper
Chris@69 10979 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
Chris@69 10980 dynamic_linker='Win32 ld.exe'
Chris@69 10981 ;;
Chris@69 10982 esac
Chris@69 10983 # FIXME: first we should search . and the directory the executable is in
Chris@69 10984 shlibpath_var=PATH
Chris@69 10985 ;;
Chris@69 10986
Chris@69 10987 darwin* | rhapsody*)
Chris@69 10988 dynamic_linker="$host_os dyld"
Chris@69 10989 version_type=darwin
Chris@69 10990 need_lib_prefix=no
Chris@69 10991 need_version=no
Chris@69 10992 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
Chris@69 10993 soname_spec='$libname$release$major$shared_ext'
Chris@69 10994 shlibpath_overrides_runpath=yes
Chris@69 10995 shlibpath_var=DYLD_LIBRARY_PATH
Chris@69 10996 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Chris@69 10997
Chris@69 10998 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Chris@69 10999 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
Chris@69 11000 ;;
Chris@69 11001
Chris@69 11002 dgux*)
Chris@69 11003 version_type=linux # correct to gnu/linux during the next big refactor
Chris@69 11004 need_lib_prefix=no
Chris@69 11005 need_version=no
Chris@69 11006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 11007 soname_spec='$libname$release$shared_ext$major'
Chris@69 11008 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11009 ;;
Chris@69 11010
Chris@69 11011 freebsd* | dragonfly*)
Chris@69 11012 # DragonFly does not have aout. When/if they implement a new
Chris@69 11013 # versioning mechanism, adjust this.
Chris@69 11014 if test -x /usr/bin/objformat; then
Chris@69 11015 objformat=`/usr/bin/objformat`
Chris@69 11016 else
Chris@69 11017 case $host_os in
Chris@69 11018 freebsd[23].*) objformat=aout ;;
Chris@69 11019 *) objformat=elf ;;
Chris@69 11020 esac
Chris@69 11021 fi
Chris@69 11022 version_type=freebsd-$objformat
Chris@69 11023 case $version_type in
Chris@69 11024 freebsd-elf*)
Chris@69 11025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 11026 soname_spec='$libname$release$shared_ext$major'
Chris@69 11027 need_version=no
Chris@69 11028 need_lib_prefix=no
Chris@69 11029 ;;
Chris@69 11030 freebsd-*)
Chris@69 11031 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Chris@69 11032 need_version=yes
Chris@69 11033 ;;
Chris@69 11034 esac
Chris@69 11035 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11036 case $host_os in
Chris@69 11037 freebsd2.*)
Chris@69 11038 shlibpath_overrides_runpath=yes
Chris@69 11039 ;;
Chris@69 11040 freebsd3.[01]* | freebsdelf3.[01]*)
Chris@69 11041 shlibpath_overrides_runpath=yes
Chris@69 11042 hardcode_into_libs=yes
Chris@69 11043 ;;
Chris@69 11044 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
Chris@69 11045 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Chris@69 11046 shlibpath_overrides_runpath=no
Chris@69 11047 hardcode_into_libs=yes
Chris@69 11048 ;;
Chris@69 11049 *) # from 4.6 on, and DragonFly
Chris@69 11050 shlibpath_overrides_runpath=yes
Chris@69 11051 hardcode_into_libs=yes
Chris@69 11052 ;;
Chris@69 11053 esac
Chris@69 11054 ;;
Chris@69 11055
Chris@69 11056 haiku*)
Chris@69 11057 version_type=linux # correct to gnu/linux during the next big refactor
Chris@69 11058 need_lib_prefix=no
Chris@69 11059 need_version=no
Chris@69 11060 dynamic_linker="$host_os runtime_loader"
Chris@69 11061 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 11062 soname_spec='$libname$release$shared_ext$major'
Chris@69 11063 shlibpath_var=LIBRARY_PATH
Chris@69 11064 shlibpath_overrides_runpath=no
Chris@69 11065 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Chris@69 11066 hardcode_into_libs=yes
Chris@69 11067 ;;
Chris@69 11068
Chris@69 11069 hpux9* | hpux10* | hpux11*)
Chris@69 11070 # Give a soname corresponding to the major version so that dld.sl refuses to
Chris@69 11071 # link against other versions.
Chris@69 11072 version_type=sunos
Chris@69 11073 need_lib_prefix=no
Chris@69 11074 need_version=no
Chris@69 11075 case $host_cpu in
Chris@69 11076 ia64*)
Chris@69 11077 shrext_cmds='.so'
Chris@69 11078 hardcode_into_libs=yes
Chris@69 11079 dynamic_linker="$host_os dld.so"
Chris@69 11080 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11081 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@69 11082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 11083 soname_spec='$libname$release$shared_ext$major'
Chris@69 11084 if test 32 = "$HPUX_IA64_MODE"; then
Chris@69 11085 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Chris@69 11086 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
Chris@69 11087 else
Chris@69 11088 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Chris@69 11089 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
Chris@69 11090 fi
Chris@69 11091 ;;
Chris@69 11092 hppa*64*)
Chris@69 11093 shrext_cmds='.sl'
Chris@69 11094 hardcode_into_libs=yes
Chris@69 11095 dynamic_linker="$host_os dld.sl"
Chris@69 11096 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Chris@69 11097 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@69 11098 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 11099 soname_spec='$libname$release$shared_ext$major'
Chris@69 11100 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
Chris@69 11101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@69 11102 ;;
Chris@69 11103 *)
Chris@69 11104 shrext_cmds='.sl'
Chris@69 11105 dynamic_linker="$host_os dld.sl"
Chris@69 11106 shlibpath_var=SHLIB_PATH
Chris@69 11107 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Chris@69 11108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 11109 soname_spec='$libname$release$shared_ext$major'
Chris@69 11110 ;;
Chris@69 11111 esac
Chris@69 11112 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Chris@69 11113 postinstall_cmds='chmod 555 $lib'
Chris@69 11114 # or fails outright, so override atomically:
Chris@69 11115 install_override_mode=555
Chris@69 11116 ;;
Chris@69 11117
Chris@69 11118 interix[3-9]*)
Chris@69 11119 version_type=linux # correct to gnu/linux during the next big refactor
Chris@69 11120 need_lib_prefix=no
Chris@69 11121 need_version=no
Chris@69 11122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 11123 soname_spec='$libname$release$shared_ext$major'
Chris@69 11124 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
Chris@69 11125 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11126 shlibpath_overrides_runpath=no
Chris@69 11127 hardcode_into_libs=yes
Chris@69 11128 ;;
Chris@69 11129
Chris@69 11130 irix5* | irix6* | nonstopux*)
Chris@69 11131 case $host_os in
Chris@69 11132 nonstopux*) version_type=nonstopux ;;
Chris@69 11133 *)
Chris@69 11134 if test yes = "$lt_cv_prog_gnu_ld"; then
Chris@69 11135 version_type=linux # correct to gnu/linux during the next big refactor
Chris@69 11136 else
Chris@69 11137 version_type=irix
Chris@69 11138 fi ;;
Chris@69 11139 esac
Chris@69 11140 need_lib_prefix=no
Chris@69 11141 need_version=no
Chris@69 11142 soname_spec='$libname$release$shared_ext$major'
Chris@69 11143 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
Chris@69 11144 case $host_os in
Chris@69 11145 irix5* | nonstopux*)
Chris@69 11146 libsuff= shlibsuff=
Chris@69 11147 ;;
Chris@69 11148 *)
Chris@69 11149 case $LD in # libtool.m4 will add one of these switches to LD
Chris@69 11150 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
Chris@69 11151 libsuff= shlibsuff= libmagic=32-bit;;
Chris@69 11152 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
Chris@69 11153 libsuff=32 shlibsuff=N32 libmagic=N32;;
Chris@69 11154 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
Chris@69 11155 libsuff=64 shlibsuff=64 libmagic=64-bit;;
Chris@69 11156 *) libsuff= shlibsuff= libmagic=never-match;;
Chris@69 11157 esac
Chris@69 11158 ;;
Chris@69 11159 esac
Chris@69 11160 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
Chris@69 11161 shlibpath_overrides_runpath=no
Chris@69 11162 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
Chris@69 11163 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
Chris@69 11164 hardcode_into_libs=yes
Chris@69 11165 ;;
Chris@69 11166
Chris@69 11167 # No shared lib support for Linux oldld, aout, or coff.
Chris@69 11168 linux*oldld* | linux*aout* | linux*coff*)
Chris@69 11169 dynamic_linker=no
Chris@69 11170 ;;
Chris@69 11171
Chris@69 11172 linux*android*)
Chris@69 11173 version_type=none # Android doesn't support versioned libraries.
Chris@69 11174 need_lib_prefix=no
Chris@69 11175 need_version=no
Chris@69 11176 library_names_spec='$libname$release$shared_ext'
Chris@69 11177 soname_spec='$libname$release$shared_ext'
Chris@69 11178 finish_cmds=
Chris@69 11179 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11180 shlibpath_overrides_runpath=yes
Chris@69 11181
Chris@69 11182 # This implies no fast_install, which is unacceptable.
Chris@69 11183 # Some rework will be needed to allow for fast_install
Chris@69 11184 # before this can be enabled.
Chris@69 11185 hardcode_into_libs=yes
Chris@69 11186
Chris@69 11187 dynamic_linker='Android linker'
Chris@69 11188 # Don't embed -rpath directories since the linker doesn't support them.
Chris@69 11189 hardcode_libdir_flag_spec='-L$libdir'
Chris@69 11190 ;;
Chris@69 11191
Chris@69 11192 # This must be glibc/ELF.
Chris@69 11193 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Chris@69 11194 version_type=linux # correct to gnu/linux during the next big refactor
Chris@69 11195 need_lib_prefix=no
Chris@69 11196 need_version=no
Chris@69 11197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 11198 soname_spec='$libname$release$shared_ext$major'
Chris@69 11199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
Chris@69 11200 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11201 shlibpath_overrides_runpath=no
Chris@69 11202
Chris@69 11203 # Some binutils ld are patched to set DT_RUNPATH
Chris@69 11204 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
Chris@69 11205 $as_echo_n "(cached) " >&6
Chris@69 11206 else
Chris@69 11207 lt_cv_shlibpath_overrides_runpath=no
Chris@69 11208 save_LDFLAGS=$LDFLAGS
Chris@69 11209 save_libdir=$libdir
Chris@69 11210 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
Chris@69 11211 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
Chris@69 11212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 11213 /* end confdefs.h. */
Chris@69 11214
Chris@69 11215 int
Chris@69 11216 main ()
Chris@69 11217 {
Chris@69 11218
Chris@69 11219 ;
Chris@69 11220 return 0;
Chris@69 11221 }
Chris@69 11222 _ACEOF
Chris@69 11223 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 11224 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Chris@69 11225 lt_cv_shlibpath_overrides_runpath=yes
Chris@69 11226 fi
Chris@69 11227 fi
Chris@69 11228 rm -f core conftest.err conftest.$ac_objext \
Chris@69 11229 conftest$ac_exeext conftest.$ac_ext
Chris@69 11230 LDFLAGS=$save_LDFLAGS
Chris@69 11231 libdir=$save_libdir
Chris@69 11232
Chris@69 11233 fi
Chris@69 11234
Chris@69 11235 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Chris@69 11236
Chris@69 11237 # This implies no fast_install, which is unacceptable.
Chris@69 11238 # Some rework will be needed to allow for fast_install
Chris@69 11239 # before this can be enabled.
Chris@69 11240 hardcode_into_libs=yes
Chris@69 11241
Chris@69 11242 # Add ABI-specific directories to the system library path.
Chris@69 11243 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
Chris@69 11244
Chris@69 11245 # Ideally, we could use ldconfig to report *all* directores which are
Chris@69 11246 # searched for libraries, however this is still not possible. Aside from not
Chris@69 11247 # being certain /sbin/ldconfig is available, command
Chris@69 11248 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
Chris@69 11249 # even though it is searched at run-time. Try to do the best guess by
Chris@69 11250 # appending ld.so.conf contents (and includes) to the search path.
Chris@69 11251 if test -f /etc/ld.so.conf; then
Chris@69 11252 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
Chris@69 11253 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
Chris@69 11254 fi
Chris@69 11255
Chris@69 11256 # We used to test for /lib/ld.so.1 and disable shared libraries on
Chris@69 11257 # powerpc, because MkLinux only supported shared libraries with the
Chris@69 11258 # GNU dynamic linker. Since this was broken with cross compilers,
Chris@69 11259 # most powerpc-linux boxes support dynamic linking these days and
Chris@69 11260 # people can always --disable-shared, the test was removed, and we
Chris@69 11261 # assume the GNU/Linux dynamic linker is in use.
Chris@69 11262 dynamic_linker='GNU/Linux ld.so'
Chris@69 11263 ;;
Chris@69 11264
Chris@69 11265 netbsd*)
Chris@69 11266 version_type=sunos
Chris@69 11267 need_lib_prefix=no
Chris@69 11268 need_version=no
Chris@69 11269 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@69 11270 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Chris@69 11271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@69 11272 dynamic_linker='NetBSD (a.out) ld.so'
Chris@69 11273 else
Chris@69 11274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 11275 soname_spec='$libname$release$shared_ext$major'
Chris@69 11276 dynamic_linker='NetBSD ld.elf_so'
Chris@69 11277 fi
Chris@69 11278 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11279 shlibpath_overrides_runpath=yes
Chris@69 11280 hardcode_into_libs=yes
Chris@69 11281 ;;
Chris@69 11282
Chris@69 11283 newsos6)
Chris@69 11284 version_type=linux # correct to gnu/linux during the next big refactor
Chris@69 11285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 11286 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11287 shlibpath_overrides_runpath=yes
Chris@69 11288 ;;
Chris@69 11289
Chris@69 11290 *nto* | *qnx*)
Chris@69 11291 version_type=qnx
Chris@69 11292 need_lib_prefix=no
Chris@69 11293 need_version=no
Chris@69 11294 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 11295 soname_spec='$libname$release$shared_ext$major'
Chris@69 11296 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11297 shlibpath_overrides_runpath=no
Chris@69 11298 hardcode_into_libs=yes
Chris@69 11299 dynamic_linker='ldqnx.so'
Chris@69 11300 ;;
Chris@69 11301
Chris@69 11302 openbsd* | bitrig*)
Chris@69 11303 version_type=sunos
Chris@69 11304 sys_lib_dlsearch_path_spec=/usr/lib
Chris@69 11305 need_lib_prefix=no
Chris@69 11306 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Chris@69 11307 need_version=no
Chris@69 11308 else
Chris@69 11309 need_version=yes
Chris@69 11310 fi
Chris@69 11311 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Chris@69 11312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@69 11313 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11314 shlibpath_overrides_runpath=yes
Chris@69 11315 ;;
Chris@69 11316
Chris@69 11317 os2*)
Chris@69 11318 libname_spec='$name'
Chris@69 11319 version_type=windows
Chris@69 11320 shrext_cmds=.dll
Chris@69 11321 need_version=no
Chris@69 11322 need_lib_prefix=no
Chris@69 11323 # OS/2 can only load a DLL with a base name of 8 characters or less.
Chris@69 11324 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
Chris@69 11325 v=$($ECHO $release$versuffix | tr -d .-);
Chris@69 11326 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
Chris@69 11327 $ECHO $n$v`$shared_ext'
Chris@69 11328 library_names_spec='${libname}_dll.$libext'
Chris@69 11329 dynamic_linker='OS/2 ld.exe'
Chris@69 11330 shlibpath_var=BEGINLIBPATH
Chris@69 11331 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Chris@69 11332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@69 11333 postinstall_cmds='base_file=`basename \$file`~
Chris@69 11334 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
Chris@69 11335 dldir=$destdir/`dirname \$dlpath`~
Chris@69 11336 test -d \$dldir || mkdir -p \$dldir~
Chris@69 11337 $install_prog $dir/$dlname \$dldir/$dlname~
Chris@69 11338 chmod a+x \$dldir/$dlname~
Chris@69 11339 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Chris@69 11340 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Chris@69 11341 fi'
Chris@69 11342 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
Chris@69 11343 dlpath=$dir/\$dldll~
Chris@69 11344 $RM \$dlpath'
Chris@69 11345 ;;
Chris@69 11346
Chris@69 11347 osf3* | osf4* | osf5*)
Chris@69 11348 version_type=osf
Chris@69 11349 need_lib_prefix=no
Chris@69 11350 need_version=no
Chris@69 11351 soname_spec='$libname$release$shared_ext$major'
Chris@69 11352 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 11353 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11354 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Chris@69 11355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@69 11356 ;;
Chris@69 11357
Chris@69 11358 rdos*)
Chris@69 11359 dynamic_linker=no
Chris@69 11360 ;;
Chris@69 11361
Chris@69 11362 solaris*)
Chris@69 11363 version_type=linux # correct to gnu/linux during the next big refactor
Chris@69 11364 need_lib_prefix=no
Chris@69 11365 need_version=no
Chris@69 11366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 11367 soname_spec='$libname$release$shared_ext$major'
Chris@69 11368 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11369 shlibpath_overrides_runpath=yes
Chris@69 11370 hardcode_into_libs=yes
Chris@69 11371 # ldd complains unless libraries are executable
Chris@69 11372 postinstall_cmds='chmod +x $lib'
Chris@69 11373 ;;
Chris@69 11374
Chris@69 11375 sunos4*)
Chris@69 11376 version_type=sunos
Chris@69 11377 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Chris@69 11378 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
Chris@69 11379 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11380 shlibpath_overrides_runpath=yes
Chris@69 11381 if test yes = "$with_gnu_ld"; then
Chris@69 11382 need_lib_prefix=no
Chris@69 11383 fi
Chris@69 11384 need_version=yes
Chris@69 11385 ;;
Chris@69 11386
Chris@69 11387 sysv4 | sysv4.3*)
Chris@69 11388 version_type=linux # correct to gnu/linux during the next big refactor
Chris@69 11389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 11390 soname_spec='$libname$release$shared_ext$major'
Chris@69 11391 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11392 case $host_vendor in
Chris@69 11393 sni)
Chris@69 11394 shlibpath_overrides_runpath=no
Chris@69 11395 need_lib_prefix=no
Chris@69 11396 runpath_var=LD_RUN_PATH
Chris@69 11397 ;;
Chris@69 11398 siemens)
Chris@69 11399 need_lib_prefix=no
Chris@69 11400 ;;
Chris@69 11401 motorola)
Chris@69 11402 need_lib_prefix=no
Chris@69 11403 need_version=no
Chris@69 11404 shlibpath_overrides_runpath=no
Chris@69 11405 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
Chris@69 11406 ;;
Chris@69 11407 esac
Chris@69 11408 ;;
Chris@69 11409
Chris@69 11410 sysv4*MP*)
Chris@69 11411 if test -d /usr/nec; then
Chris@69 11412 version_type=linux # correct to gnu/linux during the next big refactor
Chris@69 11413 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
Chris@69 11414 soname_spec='$libname$shared_ext.$major'
Chris@69 11415 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11416 fi
Chris@69 11417 ;;
Chris@69 11418
Chris@69 11419 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Chris@69 11420 version_type=sco
Chris@69 11421 need_lib_prefix=no
Chris@69 11422 need_version=no
Chris@69 11423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
Chris@69 11424 soname_spec='$libname$release$shared_ext$major'
Chris@69 11425 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11426 shlibpath_overrides_runpath=yes
Chris@69 11427 hardcode_into_libs=yes
Chris@69 11428 if test yes = "$with_gnu_ld"; then
Chris@69 11429 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Chris@69 11430 else
Chris@69 11431 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Chris@69 11432 case $host_os in
Chris@69 11433 sco3.2v5*)
Chris@69 11434 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
Chris@69 11435 ;;
Chris@69 11436 esac
Chris@69 11437 fi
Chris@69 11438 sys_lib_dlsearch_path_spec='/usr/lib'
Chris@69 11439 ;;
Chris@69 11440
Chris@69 11441 tpf*)
Chris@69 11442 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Chris@69 11443 version_type=linux # correct to gnu/linux during the next big refactor
Chris@69 11444 need_lib_prefix=no
Chris@69 11445 need_version=no
Chris@69 11446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 11447 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11448 shlibpath_overrides_runpath=no
Chris@69 11449 hardcode_into_libs=yes
Chris@69 11450 ;;
Chris@69 11451
Chris@69 11452 uts4*)
Chris@69 11453 version_type=linux # correct to gnu/linux during the next big refactor
Chris@69 11454 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 11455 soname_spec='$libname$release$shared_ext$major'
Chris@69 11456 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11457 ;;
Chris@69 11458
Chris@69 11459 *)
Chris@69 11460 dynamic_linker=no
Chris@69 11461 ;;
Chris@69 11462 esac
Chris@69 11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Chris@69 11464 $as_echo "$dynamic_linker" >&6; }
Chris@69 11465 test no = "$dynamic_linker" && can_build_shared=no
Chris@69 11466
Chris@69 11467 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Chris@69 11468 if test yes = "$GCC"; then
Chris@69 11469 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Chris@69 11470 fi
Chris@69 11471
Chris@69 11472 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
Chris@69 11473 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
Chris@69 11474 fi
Chris@69 11475
Chris@69 11476 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
Chris@69 11477 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
Chris@69 11478 fi
Chris@69 11479
Chris@69 11480 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
Chris@69 11481 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
Chris@69 11482
Chris@69 11483 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
Chris@69 11484 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
Chris@69 11485
Chris@69 11486 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
Chris@69 11487 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
Chris@69 11488
Chris@69 11489
Chris@69 11490
Chris@69 11491
Chris@69 11492
Chris@69 11493
Chris@69 11494
Chris@69 11495
Chris@69 11496
Chris@69 11497
Chris@69 11498
Chris@69 11499
Chris@69 11500
Chris@69 11501
Chris@69 11502
Chris@69 11503
Chris@69 11504
Chris@69 11505
Chris@69 11506
Chris@69 11507
Chris@69 11508
Chris@69 11509
Chris@69 11510
Chris@69 11511
Chris@69 11512
Chris@69 11513
Chris@69 11514
Chris@69 11515
Chris@69 11516
Chris@69 11517
Chris@69 11518
Chris@69 11519
Chris@69 11520
Chris@69 11521
Chris@69 11522
Chris@69 11523
Chris@69 11524
Chris@69 11525
Chris@69 11526
Chris@69 11527
Chris@69 11528
Chris@69 11529
Chris@69 11530
Chris@69 11531
Chris@69 11532
Chris@69 11533
Chris@69 11534
Chris@69 11535
Chris@69 11536
Chris@69 11537
Chris@69 11538
Chris@69 11539
Chris@69 11540
Chris@69 11541
Chris@69 11542
Chris@69 11543
Chris@69 11544
Chris@69 11545
Chris@69 11546
Chris@69 11547
Chris@69 11548
Chris@69 11549
Chris@69 11550
Chris@69 11551
Chris@69 11552
Chris@69 11553
Chris@69 11554
Chris@69 11555
Chris@69 11556
Chris@69 11557
Chris@69 11558
Chris@69 11559
Chris@69 11560
Chris@69 11561
Chris@69 11562
Chris@69 11563
Chris@69 11564
Chris@69 11565
Chris@69 11566
Chris@69 11567
Chris@69 11568
Chris@69 11569
Chris@69 11570
Chris@69 11571
Chris@69 11572
Chris@69 11573
Chris@69 11574
Chris@69 11575
Chris@69 11576
Chris@69 11577
Chris@69 11578
Chris@69 11579
Chris@69 11580
Chris@69 11581
Chris@69 11582
Chris@69 11583
Chris@69 11584
Chris@69 11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Chris@69 11586 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Chris@69 11587 hardcode_action=
Chris@69 11588 if test -n "$hardcode_libdir_flag_spec" ||
Chris@69 11589 test -n "$runpath_var" ||
Chris@69 11590 test yes = "$hardcode_automatic"; then
Chris@69 11591
Chris@69 11592 # We can hardcode non-existent directories.
Chris@69 11593 if test no != "$hardcode_direct" &&
Chris@69 11594 # If the only mechanism to avoid hardcoding is shlibpath_var, we
Chris@69 11595 # have to relink, otherwise we might link with an installed library
Chris@69 11596 # when we should be linking with a yet-to-be-installed one
Chris@69 11597 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
Chris@69 11598 test no != "$hardcode_minus_L"; then
Chris@69 11599 # Linking always hardcodes the temporary library directory.
Chris@69 11600 hardcode_action=relink
Chris@69 11601 else
Chris@69 11602 # We can link without hardcoding, and we can hardcode nonexisting dirs.
Chris@69 11603 hardcode_action=immediate
Chris@69 11604 fi
Chris@69 11605 else
Chris@69 11606 # We cannot hardcode anything, or else we can only hardcode existing
Chris@69 11607 # directories.
Chris@69 11608 hardcode_action=unsupported
Chris@69 11609 fi
Chris@69 11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
Chris@69 11611 $as_echo "$hardcode_action" >&6; }
Chris@69 11612
Chris@69 11613 if test relink = "$hardcode_action" ||
Chris@69 11614 test yes = "$inherit_rpath"; then
Chris@69 11615 # Fast installation is not supported
Chris@69 11616 enable_fast_install=no
Chris@69 11617 elif test yes = "$shlibpath_overrides_runpath" ||
Chris@69 11618 test no = "$enable_shared"; then
Chris@69 11619 # Fast installation is not necessary
Chris@69 11620 enable_fast_install=needless
Chris@69 11621 fi
Chris@69 11622
Chris@69 11623
Chris@69 11624
Chris@69 11625
Chris@69 11626
Chris@69 11627
Chris@69 11628 if test yes != "$enable_dlopen"; then
Chris@69 11629 enable_dlopen=unknown
Chris@69 11630 enable_dlopen_self=unknown
Chris@69 11631 enable_dlopen_self_static=unknown
Chris@69 11632 else
Chris@69 11633 lt_cv_dlopen=no
Chris@69 11634 lt_cv_dlopen_libs=
Chris@69 11635
Chris@69 11636 case $host_os in
Chris@69 11637 beos*)
Chris@69 11638 lt_cv_dlopen=load_add_on
Chris@69 11639 lt_cv_dlopen_libs=
Chris@69 11640 lt_cv_dlopen_self=yes
Chris@69 11641 ;;
Chris@69 11642
Chris@69 11643 mingw* | pw32* | cegcc*)
Chris@69 11644 lt_cv_dlopen=LoadLibrary
Chris@69 11645 lt_cv_dlopen_libs=
Chris@69 11646 ;;
Chris@69 11647
Chris@69 11648 cygwin*)
Chris@69 11649 lt_cv_dlopen=dlopen
Chris@69 11650 lt_cv_dlopen_libs=
Chris@69 11651 ;;
Chris@69 11652
Chris@69 11653 darwin*)
Chris@69 11654 # if libdl is installed we need to link against it
Chris@69 11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Chris@69 11656 $as_echo_n "checking for dlopen in -ldl... " >&6; }
Chris@69 11657 if ${ac_cv_lib_dl_dlopen+:} false; then :
Chris@69 11658 $as_echo_n "(cached) " >&6
Chris@69 11659 else
Chris@69 11660 ac_check_lib_save_LIBS=$LIBS
Chris@69 11661 LIBS="-ldl $LIBS"
Chris@69 11662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 11663 /* end confdefs.h. */
Chris@69 11664
Chris@69 11665 /* Override any GCC internal prototype to avoid an error.
Chris@69 11666 Use char because int might match the return type of a GCC
Chris@69 11667 builtin and then its argument prototype would still apply. */
Chris@69 11668 #ifdef __cplusplus
Chris@69 11669 extern "C"
Chris@69 11670 #endif
Chris@69 11671 char dlopen ();
Chris@69 11672 int
Chris@69 11673 main ()
Chris@69 11674 {
Chris@69 11675 return dlopen ();
Chris@69 11676 ;
Chris@69 11677 return 0;
Chris@69 11678 }
Chris@69 11679 _ACEOF
Chris@69 11680 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 11681 ac_cv_lib_dl_dlopen=yes
Chris@69 11682 else
Chris@69 11683 ac_cv_lib_dl_dlopen=no
Chris@69 11684 fi
Chris@69 11685 rm -f core conftest.err conftest.$ac_objext \
Chris@69 11686 conftest$ac_exeext conftest.$ac_ext
Chris@69 11687 LIBS=$ac_check_lib_save_LIBS
Chris@69 11688 fi
Chris@69 11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Chris@69 11690 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Chris@69 11691 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Chris@69 11692 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
Chris@69 11693 else
Chris@69 11694
Chris@69 11695 lt_cv_dlopen=dyld
Chris@69 11696 lt_cv_dlopen_libs=
Chris@69 11697 lt_cv_dlopen_self=yes
Chris@69 11698
Chris@69 11699 fi
Chris@69 11700
Chris@69 11701 ;;
Chris@69 11702
Chris@69 11703 tpf*)
Chris@69 11704 # Don't try to run any link tests for TPF. We know it's impossible
Chris@69 11705 # because TPF is a cross-compiler, and we know how we open DSOs.
Chris@69 11706 lt_cv_dlopen=dlopen
Chris@69 11707 lt_cv_dlopen_libs=
Chris@69 11708 lt_cv_dlopen_self=no
Chris@69 11709 ;;
Chris@69 11710
Chris@69 11711 *)
Chris@69 11712 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
Chris@69 11713 if test "x$ac_cv_func_shl_load" = xyes; then :
Chris@69 11714 lt_cv_dlopen=shl_load
Chris@69 11715 else
Chris@69 11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
Chris@69 11717 $as_echo_n "checking for shl_load in -ldld... " >&6; }
Chris@69 11718 if ${ac_cv_lib_dld_shl_load+:} false; then :
Chris@69 11719 $as_echo_n "(cached) " >&6
Chris@69 11720 else
Chris@69 11721 ac_check_lib_save_LIBS=$LIBS
Chris@69 11722 LIBS="-ldld $LIBS"
Chris@69 11723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 11724 /* end confdefs.h. */
Chris@69 11725
Chris@69 11726 /* Override any GCC internal prototype to avoid an error.
Chris@69 11727 Use char because int might match the return type of a GCC
Chris@69 11728 builtin and then its argument prototype would still apply. */
Chris@69 11729 #ifdef __cplusplus
Chris@69 11730 extern "C"
Chris@69 11731 #endif
Chris@69 11732 char shl_load ();
Chris@69 11733 int
Chris@69 11734 main ()
Chris@69 11735 {
Chris@69 11736 return shl_load ();
Chris@69 11737 ;
Chris@69 11738 return 0;
Chris@69 11739 }
Chris@69 11740 _ACEOF
Chris@69 11741 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 11742 ac_cv_lib_dld_shl_load=yes
Chris@69 11743 else
Chris@69 11744 ac_cv_lib_dld_shl_load=no
Chris@69 11745 fi
Chris@69 11746 rm -f core conftest.err conftest.$ac_objext \
Chris@69 11747 conftest$ac_exeext conftest.$ac_ext
Chris@69 11748 LIBS=$ac_check_lib_save_LIBS
Chris@69 11749 fi
Chris@69 11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
Chris@69 11751 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Chris@69 11752 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Chris@69 11753 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
Chris@69 11754 else
Chris@69 11755 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Chris@69 11756 if test "x$ac_cv_func_dlopen" = xyes; then :
Chris@69 11757 lt_cv_dlopen=dlopen
Chris@69 11758 else
Chris@69 11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Chris@69 11760 $as_echo_n "checking for dlopen in -ldl... " >&6; }
Chris@69 11761 if ${ac_cv_lib_dl_dlopen+:} false; then :
Chris@69 11762 $as_echo_n "(cached) " >&6
Chris@69 11763 else
Chris@69 11764 ac_check_lib_save_LIBS=$LIBS
Chris@69 11765 LIBS="-ldl $LIBS"
Chris@69 11766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 11767 /* end confdefs.h. */
Chris@69 11768
Chris@69 11769 /* Override any GCC internal prototype to avoid an error.
Chris@69 11770 Use char because int might match the return type of a GCC
Chris@69 11771 builtin and then its argument prototype would still apply. */
Chris@69 11772 #ifdef __cplusplus
Chris@69 11773 extern "C"
Chris@69 11774 #endif
Chris@69 11775 char dlopen ();
Chris@69 11776 int
Chris@69 11777 main ()
Chris@69 11778 {
Chris@69 11779 return dlopen ();
Chris@69 11780 ;
Chris@69 11781 return 0;
Chris@69 11782 }
Chris@69 11783 _ACEOF
Chris@69 11784 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 11785 ac_cv_lib_dl_dlopen=yes
Chris@69 11786 else
Chris@69 11787 ac_cv_lib_dl_dlopen=no
Chris@69 11788 fi
Chris@69 11789 rm -f core conftest.err conftest.$ac_objext \
Chris@69 11790 conftest$ac_exeext conftest.$ac_ext
Chris@69 11791 LIBS=$ac_check_lib_save_LIBS
Chris@69 11792 fi
Chris@69 11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Chris@69 11794 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Chris@69 11795 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Chris@69 11796 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
Chris@69 11797 else
Chris@69 11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
Chris@69 11799 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
Chris@69 11800 if ${ac_cv_lib_svld_dlopen+:} false; then :
Chris@69 11801 $as_echo_n "(cached) " >&6
Chris@69 11802 else
Chris@69 11803 ac_check_lib_save_LIBS=$LIBS
Chris@69 11804 LIBS="-lsvld $LIBS"
Chris@69 11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 11806 /* end confdefs.h. */
Chris@69 11807
Chris@69 11808 /* Override any GCC internal prototype to avoid an error.
Chris@69 11809 Use char because int might match the return type of a GCC
Chris@69 11810 builtin and then its argument prototype would still apply. */
Chris@69 11811 #ifdef __cplusplus
Chris@69 11812 extern "C"
Chris@69 11813 #endif
Chris@69 11814 char dlopen ();
Chris@69 11815 int
Chris@69 11816 main ()
Chris@69 11817 {
Chris@69 11818 return dlopen ();
Chris@69 11819 ;
Chris@69 11820 return 0;
Chris@69 11821 }
Chris@69 11822 _ACEOF
Chris@69 11823 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 11824 ac_cv_lib_svld_dlopen=yes
Chris@69 11825 else
Chris@69 11826 ac_cv_lib_svld_dlopen=no
Chris@69 11827 fi
Chris@69 11828 rm -f core conftest.err conftest.$ac_objext \
Chris@69 11829 conftest$ac_exeext conftest.$ac_ext
Chris@69 11830 LIBS=$ac_check_lib_save_LIBS
Chris@69 11831 fi
Chris@69 11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
Chris@69 11833 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Chris@69 11834 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Chris@69 11835 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
Chris@69 11836 else
Chris@69 11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
Chris@69 11838 $as_echo_n "checking for dld_link in -ldld... " >&6; }
Chris@69 11839 if ${ac_cv_lib_dld_dld_link+:} false; then :
Chris@69 11840 $as_echo_n "(cached) " >&6
Chris@69 11841 else
Chris@69 11842 ac_check_lib_save_LIBS=$LIBS
Chris@69 11843 LIBS="-ldld $LIBS"
Chris@69 11844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 11845 /* end confdefs.h. */
Chris@69 11846
Chris@69 11847 /* Override any GCC internal prototype to avoid an error.
Chris@69 11848 Use char because int might match the return type of a GCC
Chris@69 11849 builtin and then its argument prototype would still apply. */
Chris@69 11850 #ifdef __cplusplus
Chris@69 11851 extern "C"
Chris@69 11852 #endif
Chris@69 11853 char dld_link ();
Chris@69 11854 int
Chris@69 11855 main ()
Chris@69 11856 {
Chris@69 11857 return dld_link ();
Chris@69 11858 ;
Chris@69 11859 return 0;
Chris@69 11860 }
Chris@69 11861 _ACEOF
Chris@69 11862 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 11863 ac_cv_lib_dld_dld_link=yes
Chris@69 11864 else
Chris@69 11865 ac_cv_lib_dld_dld_link=no
Chris@69 11866 fi
Chris@69 11867 rm -f core conftest.err conftest.$ac_objext \
Chris@69 11868 conftest$ac_exeext conftest.$ac_ext
Chris@69 11869 LIBS=$ac_check_lib_save_LIBS
Chris@69 11870 fi
Chris@69 11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
Chris@69 11872 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Chris@69 11873 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Chris@69 11874 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
Chris@69 11875 fi
Chris@69 11876
Chris@69 11877
Chris@69 11878 fi
Chris@69 11879
Chris@69 11880
Chris@69 11881 fi
Chris@69 11882
Chris@69 11883
Chris@69 11884 fi
Chris@69 11885
Chris@69 11886
Chris@69 11887 fi
Chris@69 11888
Chris@69 11889
Chris@69 11890 fi
Chris@69 11891
Chris@69 11892 ;;
Chris@69 11893 esac
Chris@69 11894
Chris@69 11895 if test no = "$lt_cv_dlopen"; then
Chris@69 11896 enable_dlopen=no
Chris@69 11897 else
Chris@69 11898 enable_dlopen=yes
Chris@69 11899 fi
Chris@69 11900
Chris@69 11901 case $lt_cv_dlopen in
Chris@69 11902 dlopen)
Chris@69 11903 save_CPPFLAGS=$CPPFLAGS
Chris@69 11904 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Chris@69 11905
Chris@69 11906 save_LDFLAGS=$LDFLAGS
Chris@69 11907 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Chris@69 11908
Chris@69 11909 save_LIBS=$LIBS
Chris@69 11910 LIBS="$lt_cv_dlopen_libs $LIBS"
Chris@69 11911
Chris@69 11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
Chris@69 11913 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
Chris@69 11914 if ${lt_cv_dlopen_self+:} false; then :
Chris@69 11915 $as_echo_n "(cached) " >&6
Chris@69 11916 else
Chris@69 11917 if test yes = "$cross_compiling"; then :
Chris@69 11918 lt_cv_dlopen_self=cross
Chris@69 11919 else
Chris@69 11920 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Chris@69 11921 lt_status=$lt_dlunknown
Chris@69 11922 cat > conftest.$ac_ext <<_LT_EOF
Chris@69 11923 #line $LINENO "configure"
Chris@69 11924 #include "confdefs.h"
Chris@69 11925
Chris@69 11926 #if HAVE_DLFCN_H
Chris@69 11927 #include <dlfcn.h>
Chris@69 11928 #endif
Chris@69 11929
Chris@69 11930 #include <stdio.h>
Chris@69 11931
Chris@69 11932 #ifdef RTLD_GLOBAL
Chris@69 11933 # define LT_DLGLOBAL RTLD_GLOBAL
Chris@69 11934 #else
Chris@69 11935 # ifdef DL_GLOBAL
Chris@69 11936 # define LT_DLGLOBAL DL_GLOBAL
Chris@69 11937 # else
Chris@69 11938 # define LT_DLGLOBAL 0
Chris@69 11939 # endif
Chris@69 11940 #endif
Chris@69 11941
Chris@69 11942 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Chris@69 11943 find out it does not work in some platform. */
Chris@69 11944 #ifndef LT_DLLAZY_OR_NOW
Chris@69 11945 # ifdef RTLD_LAZY
Chris@69 11946 # define LT_DLLAZY_OR_NOW RTLD_LAZY
Chris@69 11947 # else
Chris@69 11948 # ifdef DL_LAZY
Chris@69 11949 # define LT_DLLAZY_OR_NOW DL_LAZY
Chris@69 11950 # else
Chris@69 11951 # ifdef RTLD_NOW
Chris@69 11952 # define LT_DLLAZY_OR_NOW RTLD_NOW
Chris@69 11953 # else
Chris@69 11954 # ifdef DL_NOW
Chris@69 11955 # define LT_DLLAZY_OR_NOW DL_NOW
Chris@69 11956 # else
Chris@69 11957 # define LT_DLLAZY_OR_NOW 0
Chris@69 11958 # endif
Chris@69 11959 # endif
Chris@69 11960 # endif
Chris@69 11961 # endif
Chris@69 11962 #endif
Chris@69 11963
Chris@69 11964 /* When -fvisibility=hidden is used, assume the code has been annotated
Chris@69 11965 correspondingly for the symbols needed. */
Chris@69 11966 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Chris@69 11967 int fnord () __attribute__((visibility("default")));
Chris@69 11968 #endif
Chris@69 11969
Chris@69 11970 int fnord () { return 42; }
Chris@69 11971 int main ()
Chris@69 11972 {
Chris@69 11973 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Chris@69 11974 int status = $lt_dlunknown;
Chris@69 11975
Chris@69 11976 if (self)
Chris@69 11977 {
Chris@69 11978 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris@69 11979 else
Chris@69 11980 {
Chris@69 11981 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Chris@69 11982 else puts (dlerror ());
Chris@69 11983 }
Chris@69 11984 /* dlclose (self); */
Chris@69 11985 }
Chris@69 11986 else
Chris@69 11987 puts (dlerror ());
Chris@69 11988
Chris@69 11989 return status;
Chris@69 11990 }
Chris@69 11991 _LT_EOF
Chris@69 11992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@69 11993 (eval $ac_link) 2>&5
Chris@69 11994 ac_status=$?
Chris@69 11995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 11996 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
Chris@69 11997 (./conftest; exit; ) >&5 2>/dev/null
Chris@69 11998 lt_status=$?
Chris@69 11999 case x$lt_status in
Chris@69 12000 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
Chris@69 12001 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Chris@69 12002 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
Chris@69 12003 esac
Chris@69 12004 else :
Chris@69 12005 # compilation failed
Chris@69 12006 lt_cv_dlopen_self=no
Chris@69 12007 fi
Chris@69 12008 fi
Chris@69 12009 rm -fr conftest*
Chris@69 12010
Chris@69 12011
Chris@69 12012 fi
Chris@69 12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
Chris@69 12014 $as_echo "$lt_cv_dlopen_self" >&6; }
Chris@69 12015
Chris@69 12016 if test yes = "$lt_cv_dlopen_self"; then
Chris@69 12017 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Chris@69 12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
Chris@69 12019 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Chris@69 12020 if ${lt_cv_dlopen_self_static+:} false; then :
Chris@69 12021 $as_echo_n "(cached) " >&6
Chris@69 12022 else
Chris@69 12023 if test yes = "$cross_compiling"; then :
Chris@69 12024 lt_cv_dlopen_self_static=cross
Chris@69 12025 else
Chris@69 12026 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Chris@69 12027 lt_status=$lt_dlunknown
Chris@69 12028 cat > conftest.$ac_ext <<_LT_EOF
Chris@69 12029 #line $LINENO "configure"
Chris@69 12030 #include "confdefs.h"
Chris@69 12031
Chris@69 12032 #if HAVE_DLFCN_H
Chris@69 12033 #include <dlfcn.h>
Chris@69 12034 #endif
Chris@69 12035
Chris@69 12036 #include <stdio.h>
Chris@69 12037
Chris@69 12038 #ifdef RTLD_GLOBAL
Chris@69 12039 # define LT_DLGLOBAL RTLD_GLOBAL
Chris@69 12040 #else
Chris@69 12041 # ifdef DL_GLOBAL
Chris@69 12042 # define LT_DLGLOBAL DL_GLOBAL
Chris@69 12043 # else
Chris@69 12044 # define LT_DLGLOBAL 0
Chris@69 12045 # endif
Chris@69 12046 #endif
Chris@69 12047
Chris@69 12048 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Chris@69 12049 find out it does not work in some platform. */
Chris@69 12050 #ifndef LT_DLLAZY_OR_NOW
Chris@69 12051 # ifdef RTLD_LAZY
Chris@69 12052 # define LT_DLLAZY_OR_NOW RTLD_LAZY
Chris@69 12053 # else
Chris@69 12054 # ifdef DL_LAZY
Chris@69 12055 # define LT_DLLAZY_OR_NOW DL_LAZY
Chris@69 12056 # else
Chris@69 12057 # ifdef RTLD_NOW
Chris@69 12058 # define LT_DLLAZY_OR_NOW RTLD_NOW
Chris@69 12059 # else
Chris@69 12060 # ifdef DL_NOW
Chris@69 12061 # define LT_DLLAZY_OR_NOW DL_NOW
Chris@69 12062 # else
Chris@69 12063 # define LT_DLLAZY_OR_NOW 0
Chris@69 12064 # endif
Chris@69 12065 # endif
Chris@69 12066 # endif
Chris@69 12067 # endif
Chris@69 12068 #endif
Chris@69 12069
Chris@69 12070 /* When -fvisibility=hidden is used, assume the code has been annotated
Chris@69 12071 correspondingly for the symbols needed. */
Chris@69 12072 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Chris@69 12073 int fnord () __attribute__((visibility("default")));
Chris@69 12074 #endif
Chris@69 12075
Chris@69 12076 int fnord () { return 42; }
Chris@69 12077 int main ()
Chris@69 12078 {
Chris@69 12079 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Chris@69 12080 int status = $lt_dlunknown;
Chris@69 12081
Chris@69 12082 if (self)
Chris@69 12083 {
Chris@69 12084 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris@69 12085 else
Chris@69 12086 {
Chris@69 12087 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Chris@69 12088 else puts (dlerror ());
Chris@69 12089 }
Chris@69 12090 /* dlclose (self); */
Chris@69 12091 }
Chris@69 12092 else
Chris@69 12093 puts (dlerror ());
Chris@69 12094
Chris@69 12095 return status;
Chris@69 12096 }
Chris@69 12097 _LT_EOF
Chris@69 12098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@69 12099 (eval $ac_link) 2>&5
Chris@69 12100 ac_status=$?
Chris@69 12101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 12102 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
Chris@69 12103 (./conftest; exit; ) >&5 2>/dev/null
Chris@69 12104 lt_status=$?
Chris@69 12105 case x$lt_status in
Chris@69 12106 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
Chris@69 12107 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Chris@69 12108 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
Chris@69 12109 esac
Chris@69 12110 else :
Chris@69 12111 # compilation failed
Chris@69 12112 lt_cv_dlopen_self_static=no
Chris@69 12113 fi
Chris@69 12114 fi
Chris@69 12115 rm -fr conftest*
Chris@69 12116
Chris@69 12117
Chris@69 12118 fi
Chris@69 12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
Chris@69 12120 $as_echo "$lt_cv_dlopen_self_static" >&6; }
Chris@69 12121 fi
Chris@69 12122
Chris@69 12123 CPPFLAGS=$save_CPPFLAGS
Chris@69 12124 LDFLAGS=$save_LDFLAGS
Chris@69 12125 LIBS=$save_LIBS
Chris@69 12126 ;;
Chris@69 12127 esac
Chris@69 12128
Chris@69 12129 case $lt_cv_dlopen_self in
Chris@69 12130 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
Chris@69 12131 *) enable_dlopen_self=unknown ;;
Chris@69 12132 esac
Chris@69 12133
Chris@69 12134 case $lt_cv_dlopen_self_static in
Chris@69 12135 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
Chris@69 12136 *) enable_dlopen_self_static=unknown ;;
Chris@69 12137 esac
Chris@69 12138 fi
Chris@69 12139
Chris@69 12140
Chris@69 12141
Chris@69 12142
Chris@69 12143
Chris@69 12144
Chris@69 12145
Chris@69 12146
Chris@69 12147
Chris@69 12148
Chris@69 12149
Chris@69 12150
Chris@69 12151
Chris@69 12152
Chris@69 12153
Chris@69 12154
Chris@69 12155
Chris@69 12156 striplib=
Chris@69 12157 old_striplib=
Chris@69 12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
Chris@69 12159 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
Chris@69 12160 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
Chris@69 12161 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
Chris@69 12162 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Chris@69 12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 12164 $as_echo "yes" >&6; }
Chris@69 12165 else
Chris@69 12166 # FIXME - insert some real tests, host_os isn't really good enough
Chris@69 12167 case $host_os in
Chris@69 12168 darwin*)
Chris@69 12169 if test -n "$STRIP"; then
Chris@69 12170 striplib="$STRIP -x"
Chris@69 12171 old_striplib="$STRIP -S"
Chris@69 12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 12173 $as_echo "yes" >&6; }
Chris@69 12174 else
Chris@69 12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 12176 $as_echo "no" >&6; }
Chris@69 12177 fi
Chris@69 12178 ;;
Chris@69 12179 *)
Chris@69 12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 12181 $as_echo "no" >&6; }
Chris@69 12182 ;;
Chris@69 12183 esac
Chris@69 12184 fi
Chris@69 12185
Chris@69 12186
Chris@69 12187
Chris@69 12188
Chris@69 12189
Chris@69 12190
Chris@69 12191
Chris@69 12192
Chris@69 12193
Chris@69 12194
Chris@69 12195
Chris@69 12196
Chris@69 12197 # Report what library types will actually be built
Chris@69 12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Chris@69 12199 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
Chris@69 12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Chris@69 12201 $as_echo "$can_build_shared" >&6; }
Chris@69 12202
Chris@69 12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Chris@69 12204 $as_echo_n "checking whether to build shared libraries... " >&6; }
Chris@69 12205 test no = "$can_build_shared" && enable_shared=no
Chris@69 12206
Chris@69 12207 # On AIX, shared libraries and static libraries use the same namespace, and
Chris@69 12208 # are all built from PIC.
Chris@69 12209 case $host_os in
Chris@69 12210 aix3*)
Chris@69 12211 test yes = "$enable_shared" && enable_static=no
Chris@69 12212 if test -n "$RANLIB"; then
Chris@69 12213 archive_cmds="$archive_cmds~\$RANLIB \$lib"
Chris@69 12214 postinstall_cmds='$RANLIB $lib'
Chris@69 12215 fi
Chris@69 12216 ;;
Chris@69 12217
Chris@69 12218 aix[4-9]*)
Chris@69 12219 if test ia64 != "$host_cpu"; then
Chris@69 12220 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
Chris@69 12221 yes,aix,yes) ;; # shared object as lib.so file only
Chris@69 12222 yes,svr4,*) ;; # shared object as lib.so archive member only
Chris@69 12223 yes,*) enable_static=no ;; # shared object in lib.a archive as well
Chris@69 12224 esac
Chris@69 12225 fi
Chris@69 12226 ;;
Chris@69 12227 esac
Chris@69 12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Chris@69 12229 $as_echo "$enable_shared" >&6; }
Chris@69 12230
Chris@69 12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Chris@69 12232 $as_echo_n "checking whether to build static libraries... " >&6; }
Chris@69 12233 # Make sure either enable_shared or enable_static is yes.
Chris@69 12234 test yes = "$enable_shared" || enable_static=yes
Chris@69 12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Chris@69 12236 $as_echo "$enable_static" >&6; }
Chris@69 12237
Chris@69 12238
Chris@69 12239
Chris@69 12240
Chris@69 12241 fi
Chris@69 12242 ac_ext=c
Chris@69 12243 ac_cpp='$CPP $CPPFLAGS'
Chris@69 12244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@69 12245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@69 12246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@69 12247
Chris@69 12248 CC=$lt_save_CC
Chris@69 12249
Chris@69 12250
Chris@69 12251
Chris@69 12252
Chris@69 12253
Chris@69 12254
Chris@69 12255
Chris@69 12256
Chris@69 12257
Chris@69 12258
Chris@69 12259
Chris@69 12260
Chris@69 12261
Chris@69 12262
Chris@69 12263
Chris@69 12264 ac_config_commands="$ac_config_commands libtool"
Chris@69 12265
Chris@69 12266
Chris@69 12267
Chris@69 12268
Chris@69 12269 # Only expand once:
Chris@69 12270
Chris@69 12271
Chris@69 12272
Chris@69 12273 # Check whether --enable-silent-rules was given.
Chris@69 12274 if test "${enable_silent_rules+set}" = set; then :
Chris@69 12275 enableval=$enable_silent_rules;
Chris@69 12276 fi
Chris@69 12277
Chris@69 12278 case $enable_silent_rules in # (((
Chris@69 12279 yes) AM_DEFAULT_VERBOSITY=0;;
Chris@69 12280 no) AM_DEFAULT_VERBOSITY=1;;
Chris@69 12281 *) AM_DEFAULT_VERBOSITY=0;;
Chris@69 12282 esac
Chris@69 12283 am_make=${MAKE-make}
Chris@69 12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
Chris@69 12285 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
Chris@69 12286 if ${am_cv_make_support_nested_variables+:} false; then :
Chris@69 12287 $as_echo_n "(cached) " >&6
Chris@69 12288 else
Chris@69 12289 if $as_echo 'TRUE=$(BAR$(V))
Chris@69 12290 BAR0=false
Chris@69 12291 BAR1=true
Chris@69 12292 V=1
Chris@69 12293 am__doit:
Chris@69 12294 @$(TRUE)
Chris@69 12295 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
Chris@69 12296 am_cv_make_support_nested_variables=yes
Chris@69 12297 else
Chris@69 12298 am_cv_make_support_nested_variables=no
Chris@69 12299 fi
Chris@69 12300 fi
Chris@69 12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
Chris@69 12302 $as_echo "$am_cv_make_support_nested_variables" >&6; }
Chris@69 12303 if test $am_cv_make_support_nested_variables = yes; then
Chris@69 12304 AM_V='$(V)'
Chris@69 12305 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
Chris@69 12306 else
Chris@69 12307 AM_V=$AM_DEFAULT_VERBOSITY
Chris@69 12308 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
Chris@69 12309 fi
Chris@69 12310 AM_BACKSLASH='\'
Chris@69 12311
Chris@69 12312
Chris@69 12313
Chris@69 12314 OP_LT_CURRENT=4
Chris@69 12315 OP_LT_REVISION=2
Chris@69 12316 OP_LT_AGE=4
Chris@69 12317
Chris@69 12318
Chris@69 12319
Chris@69 12320
Chris@69 12321
Chris@69 12322
Chris@69 12323 for flag in -std=c89 -pedantic -Wall -Wextra -Wno-parentheses -Wno-long-long; do
Chris@69 12324
Chris@69 12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5
Chris@69 12326 $as_echo_n "checking if $CC supports $flag flag... " >&6; }
Chris@69 12327 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
Chris@69 12328 $as_echo_n "(cached) " >&6
Chris@69 12329 else
Chris@69 12330
Chris@69 12331 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
Chris@69 12332 $as_echo_n "(cached) " >&6
Chris@69 12333 else
Chris@69 12334 ac_save_CFLAGS="$CFLAGS"
Chris@69 12335 CFLAGS="$CFLAGS $flag"
Chris@69 12336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 12337 /* end confdefs.h. */
Chris@69 12338 int main() { return 0; }
Chris@69 12339 _ACEOF
Chris@69 12340 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 12341 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'"
Chris@69 12342 else
Chris@69 12343 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'"
Chris@69 12344 fi
Chris@69 12345 rm -f core conftest.err conftest.$ac_objext \
Chris@69 12346 conftest$ac_exeext conftest.$ac_ext
Chris@69 12347 CFLAGS="$ac_save_CFLAGS"
Chris@69 12348
Chris@69 12349 fi
Chris@69 12350
Chris@69 12351
Chris@69 12352 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
Chris@69 12353
Chris@69 12354 fi
Chris@69 12355
Chris@69 12356 fi
Chris@69 12357 eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`
Chris@69 12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@69 12359 $as_echo "$ac_res" >&6; }
Chris@69 12360
Chris@69 12361 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
Chris@69 12362 CFLAGS="$CFLAGS $flag";
Chris@69 12363 fi
Chris@69 12364
Chris@69 12365 done
Chris@69 12366
Chris@69 12367
Chris@69 12368 # Platform-specific tweaks
Chris@69 12369 case $host in
Chris@69 12370 *-mingw*)
Chris@69 12371 # -std=c89 causes some warnings under mingw.
Chris@69 12372
Chris@69 12373 for flag in -U__STRICT_ANSI__; do
Chris@69 12374
Chris@69 12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5
Chris@69 12376 $as_echo_n "checking if $CC supports $flag flag... " >&6; }
Chris@69 12377 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
Chris@69 12378 $as_echo_n "(cached) " >&6
Chris@69 12379 else
Chris@69 12380
Chris@69 12381 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
Chris@69 12382 $as_echo_n "(cached) " >&6
Chris@69 12383 else
Chris@69 12384 ac_save_CFLAGS="$CFLAGS"
Chris@69 12385 CFLAGS="$CFLAGS $flag"
Chris@69 12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 12387 /* end confdefs.h. */
Chris@69 12388 int main() { return 0; }
Chris@69 12389 _ACEOF
Chris@69 12390 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 12391 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'"
Chris@69 12392 else
Chris@69 12393 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'"
Chris@69 12394 fi
Chris@69 12395 rm -f core conftest.err conftest.$ac_objext \
Chris@69 12396 conftest$ac_exeext conftest.$ac_ext
Chris@69 12397 CFLAGS="$ac_save_CFLAGS"
Chris@69 12398
Chris@69 12399 fi
Chris@69 12400
Chris@69 12401
Chris@69 12402 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
Chris@69 12403
Chris@69 12404 fi
Chris@69 12405
Chris@69 12406 fi
Chris@69 12407 eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`
Chris@69 12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@69 12409 $as_echo "$ac_res" >&6; }
Chris@69 12410
Chris@69 12411 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
Chris@69 12412 CFLAGS="$CFLAGS $flag";
Chris@69 12413 fi
Chris@69 12414
Chris@69 12415 done
Chris@69 12416
Chris@69 12417 # We need WINNT>=0x501 (WindowsXP) for getaddrinfo/freeaddrinfo.
Chris@69 12418 # It's okay to define this even when HTTP support is disabled, as it only
Chris@69 12419 # affects header declarations, not linking (unless we actually use some
Chris@69 12420 # XP-only functions).
Chris@69 12421
Chris@69 12422 cat >>confdefs.h <<_ACEOF
Chris@69 12423 #define _WIN32_WINNT 0x501
Chris@69 12424 _ACEOF
Chris@69 12425
Chris@69 12426 host_mingw=true
Chris@69 12427 ;;
Chris@69 12428 esac
Chris@69 12429 if test "$host_mingw" = "true"; then
Chris@69 12430 OP_WIN32_TRUE=
Chris@69 12431 OP_WIN32_FALSE='#'
Chris@69 12432 else
Chris@69 12433 OP_WIN32_TRUE='#'
Chris@69 12434 OP_WIN32_FALSE=
Chris@69 12435 fi
Chris@69 12436
Chris@69 12437
Chris@69 12438 # Check whether --enable-assertions was given.
Chris@69 12439 if test "${enable_assertions+set}" = set; then :
Chris@69 12440 enableval=$enable_assertions;
Chris@69 12441 else
Chris@69 12442 enable_assertions=no
Chris@69 12443 fi
Chris@69 12444
Chris@69 12445
Chris@69 12446 if test "$enable_assertions" = "yes"; then :
Chris@69 12447
Chris@69 12448
Chris@69 12449 $as_echo "#define OP_ENABLE_ASSERTIONS 1" >>confdefs.h
Chris@69 12450
Chris@69 12451
Chris@69 12452 fi
Chris@69 12453
Chris@69 12454 # Check whether --enable-http was given.
Chris@69 12455 if test "${enable_http+set}" = set; then :
Chris@69 12456 enableval=$enable_http;
Chris@69 12457 else
Chris@69 12458 enable_http=yes
Chris@69 12459 fi
Chris@69 12460
Chris@69 12461
Chris@69 12462 if test -z "$OP_WIN32_TRUE"; then :
Chris@69 12463 if test "$enable_http" != "no"; then :
Chris@69 12464 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
Chris@69 12465 if test "x$ac_cv_header_winsock2_h" = xyes; then :
Chris@69 12466
Chris@69 12467 else
Chris@69 12468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HTTP support requires a Winsock socket library." >&5
Chris@69 12469 $as_echo "$as_me: WARNING: HTTP support requires a Winsock socket library." >&2;}
Chris@69 12470 enable_http=no
Chris@69 12471
Chris@69 12472 fi
Chris@69 12473
Chris@69 12474
Chris@69 12475
Chris@69 12476 fi
Chris@69 12477 else
Chris@69 12478 if test "$enable_http" != "no"; then :
Chris@69 12479 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
Chris@69 12480 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
Chris@69 12481
Chris@69 12482 else
Chris@69 12483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HTTP support requires a POSIX socket library." >&5
Chris@69 12484 $as_echo "$as_me: WARNING: HTTP support requires a POSIX socket library." >&2;}
Chris@69 12485 enable_http=no
Chris@69 12486
Chris@69 12487 fi
Chris@69 12488
Chris@69 12489
Chris@69 12490
Chris@69 12491 fi
Chris@69 12492
Chris@69 12493 fi
Chris@69 12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ftime" >&5
Chris@69 12495 $as_echo_n "checking for library containing ftime... " >&6; }
Chris@69 12496 if ${ac_cv_search_ftime+:} false; then :
Chris@69 12497 $as_echo_n "(cached) " >&6
Chris@69 12498 else
Chris@69 12499 ac_func_search_save_LIBS=$LIBS
Chris@69 12500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 12501 /* end confdefs.h. */
Chris@69 12502
Chris@69 12503 /* Override any GCC internal prototype to avoid an error.
Chris@69 12504 Use char because int might match the return type of a GCC
Chris@69 12505 builtin and then its argument prototype would still apply. */
Chris@69 12506 #ifdef __cplusplus
Chris@69 12507 extern "C"
Chris@69 12508 #endif
Chris@69 12509 char ftime ();
Chris@69 12510 int
Chris@69 12511 main ()
Chris@69 12512 {
Chris@69 12513 return ftime ();
Chris@69 12514 ;
Chris@69 12515 return 0;
Chris@69 12516 }
Chris@69 12517 _ACEOF
Chris@69 12518 for ac_lib in '' compat; do
Chris@69 12519 if test -z "$ac_lib"; then
Chris@69 12520 ac_res="none required"
Chris@69 12521 else
Chris@69 12522 ac_res=-l$ac_lib
Chris@69 12523 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Chris@69 12524 fi
Chris@69 12525 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 12526 ac_cv_search_ftime=$ac_res
Chris@69 12527 fi
Chris@69 12528 rm -f core conftest.err conftest.$ac_objext \
Chris@69 12529 conftest$ac_exeext
Chris@69 12530 if ${ac_cv_search_ftime+:} false; then :
Chris@69 12531 break
Chris@69 12532 fi
Chris@69 12533 done
Chris@69 12534 if ${ac_cv_search_ftime+:} false; then :
Chris@69 12535
Chris@69 12536 else
Chris@69 12537 ac_cv_search_ftime=no
Chris@69 12538 fi
Chris@69 12539 rm conftest.$ac_ext
Chris@69 12540 LIBS=$ac_func_search_save_LIBS
Chris@69 12541 fi
Chris@69 12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ftime" >&5
Chris@69 12543 $as_echo "$ac_cv_search_ftime" >&6; }
Chris@69 12544 ac_res=$ac_cv_search_ftime
Chris@69 12545 if test "$ac_res" != no; then :
Chris@69 12546 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Chris@69 12547
Chris@69 12548 else
Chris@69 12549 enable_http=no
Chris@69 12550 fi
Chris@69 12551
Chris@69 12552
Chris@69 12553
Chris@69 12554
Chris@69 12555
Chris@69 12556
Chris@69 12557
Chris@69 12558
Chris@69 12559
Chris@69 12560
Chris@69 12561
Chris@69 12562 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Chris@69 12563 if test -n "$ac_tool_prefix"; then
Chris@69 12564 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
Chris@69 12565 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Chris@69 12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 12567 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 12568 if ${ac_cv_path_PKG_CONFIG+:} false; then :
Chris@69 12569 $as_echo_n "(cached) " >&6
Chris@69 12570 else
Chris@69 12571 case $PKG_CONFIG in
Chris@69 12572 [\\/]* | ?:[\\/]*)
Chris@69 12573 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
Chris@69 12574 ;;
Chris@69 12575 *)
Chris@69 12576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 12577 for as_dir in $PATH
Chris@69 12578 do
Chris@69 12579 IFS=$as_save_IFS
Chris@69 12580 test -z "$as_dir" && as_dir=.
Chris@69 12581 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 12582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 12583 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Chris@69 12584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 12585 break 2
Chris@69 12586 fi
Chris@69 12587 done
Chris@69 12588 done
Chris@69 12589 IFS=$as_save_IFS
Chris@69 12590
Chris@69 12591 ;;
Chris@69 12592 esac
Chris@69 12593 fi
Chris@69 12594 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
Chris@69 12595 if test -n "$PKG_CONFIG"; then
Chris@69 12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Chris@69 12597 $as_echo "$PKG_CONFIG" >&6; }
Chris@69 12598 else
Chris@69 12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 12600 $as_echo "no" >&6; }
Chris@69 12601 fi
Chris@69 12602
Chris@69 12603
Chris@69 12604 fi
Chris@69 12605 if test -z "$ac_cv_path_PKG_CONFIG"; then
Chris@69 12606 ac_pt_PKG_CONFIG=$PKG_CONFIG
Chris@69 12607 # Extract the first word of "pkg-config", so it can be a program name with args.
Chris@69 12608 set dummy pkg-config; ac_word=$2
Chris@69 12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 12610 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 12611 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Chris@69 12612 $as_echo_n "(cached) " >&6
Chris@69 12613 else
Chris@69 12614 case $ac_pt_PKG_CONFIG in
Chris@69 12615 [\\/]* | ?:[\\/]*)
Chris@69 12616 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
Chris@69 12617 ;;
Chris@69 12618 *)
Chris@69 12619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 12620 for as_dir in $PATH
Chris@69 12621 do
Chris@69 12622 IFS=$as_save_IFS
Chris@69 12623 test -z "$as_dir" && as_dir=.
Chris@69 12624 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 12625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 12626 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Chris@69 12627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 12628 break 2
Chris@69 12629 fi
Chris@69 12630 done
Chris@69 12631 done
Chris@69 12632 IFS=$as_save_IFS
Chris@69 12633
Chris@69 12634 ;;
Chris@69 12635 esac
Chris@69 12636 fi
Chris@69 12637 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
Chris@69 12638 if test -n "$ac_pt_PKG_CONFIG"; then
Chris@69 12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Chris@69 12640 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
Chris@69 12641 else
Chris@69 12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 12643 $as_echo "no" >&6; }
Chris@69 12644 fi
Chris@69 12645
Chris@69 12646 if test "x$ac_pt_PKG_CONFIG" = x; then
Chris@69 12647 PKG_CONFIG=""
Chris@69 12648 else
Chris@69 12649 case $cross_compiling:$ac_tool_warned in
Chris@69 12650 yes:)
Chris@69 12651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 12652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 12653 ac_tool_warned=yes ;;
Chris@69 12654 esac
Chris@69 12655 PKG_CONFIG=$ac_pt_PKG_CONFIG
Chris@69 12656 fi
Chris@69 12657 else
Chris@69 12658 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
Chris@69 12659 fi
Chris@69 12660
Chris@69 12661 fi
Chris@69 12662 if test -n "$PKG_CONFIG"; then
Chris@69 12663 _pkg_min_version=0.9.0
Chris@69 12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
Chris@69 12665 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Chris@69 12666 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Chris@69 12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 12668 $as_echo "yes" >&6; }
Chris@69 12669 else
Chris@69 12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 12671 $as_echo "no" >&6; }
Chris@69 12672 PKG_CONFIG=""
Chris@69 12673 fi
Chris@69 12674 fi
Chris@69 12675 if test "$enable_http" != "no"; then :
Chris@69 12676
Chris@69 12677 openssl="openssl"
Chris@69 12678
Chris@69 12679 $as_echo "#define OP_ENABLE_HTTP 1" >>confdefs.h
Chris@69 12680
Chris@69 12681
Chris@69 12682 pkg_failed=no
Chris@69 12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for URL_DEPS" >&5
Chris@69 12684 $as_echo_n "checking for URL_DEPS... " >&6; }
Chris@69 12685
Chris@69 12686 if test -n "$URL_DEPS_CFLAGS"; then
Chris@69 12687 pkg_cv_URL_DEPS_CFLAGS="$URL_DEPS_CFLAGS"
Chris@69 12688 elif test -n "$PKG_CONFIG"; then
Chris@69 12689 if test -n "$PKG_CONFIG" && \
Chris@69 12690 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
Chris@69 12691 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
Chris@69 12692 ac_status=$?
Chris@69 12693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 12694 test $ac_status = 0; }; then
Chris@69 12695 pkg_cv_URL_DEPS_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
Chris@69 12696 test "x$?" != "x0" && pkg_failed=yes
Chris@69 12697 else
Chris@69 12698 pkg_failed=yes
Chris@69 12699 fi
Chris@69 12700 else
Chris@69 12701 pkg_failed=untried
Chris@69 12702 fi
Chris@69 12703 if test -n "$URL_DEPS_LIBS"; then
Chris@69 12704 pkg_cv_URL_DEPS_LIBS="$URL_DEPS_LIBS"
Chris@69 12705 elif test -n "$PKG_CONFIG"; then
Chris@69 12706 if test -n "$PKG_CONFIG" && \
Chris@69 12707 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
Chris@69 12708 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
Chris@69 12709 ac_status=$?
Chris@69 12710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 12711 test $ac_status = 0; }; then
Chris@69 12712 pkg_cv_URL_DEPS_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
Chris@69 12713 test "x$?" != "x0" && pkg_failed=yes
Chris@69 12714 else
Chris@69 12715 pkg_failed=yes
Chris@69 12716 fi
Chris@69 12717 else
Chris@69 12718 pkg_failed=untried
Chris@69 12719 fi
Chris@69 12720
Chris@69 12721
Chris@69 12722
Chris@69 12723 if test $pkg_failed = yes; then
Chris@69 12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 12725 $as_echo "no" >&6; }
Chris@69 12726
Chris@69 12727 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@69 12728 _pkg_short_errors_supported=yes
Chris@69 12729 else
Chris@69 12730 _pkg_short_errors_supported=no
Chris@69 12731 fi
Chris@69 12732 if test $_pkg_short_errors_supported = yes; then
Chris@69 12733 URL_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
Chris@69 12734 else
Chris@69 12735 URL_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
Chris@69 12736 fi
Chris@69 12737 # Put the nasty error message in config.log where it belongs
Chris@69 12738 echo "$URL_DEPS_PKG_ERRORS" >&5
Chris@69 12739
Chris@69 12740 as_fn_error $? "Package requirements (openssl) were not met:
Chris@69 12741
Chris@69 12742 $URL_DEPS_PKG_ERRORS
Chris@69 12743
Chris@69 12744 Consider adjusting the PKG_CONFIG_PATH environment variable if you
Chris@69 12745 installed software in a non-standard prefix.
Chris@69 12746
Chris@69 12747 Alternatively, you may set the environment variables URL_DEPS_CFLAGS
Chris@69 12748 and URL_DEPS_LIBS to avoid the need to call pkg-config.
Chris@69 12749 See the pkg-config man page for more details." "$LINENO" 5
Chris@69 12750 elif test $pkg_failed = untried; then
Chris@69 12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 12752 $as_echo "no" >&6; }
Chris@69 12753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@69 12754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@69 12755 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
Chris@69 12756 is in your PATH or set the PKG_CONFIG environment variable to the full
Chris@69 12757 path to pkg-config.
Chris@69 12758
Chris@69 12759 Alternatively, you may set the environment variables URL_DEPS_CFLAGS
Chris@69 12760 and URL_DEPS_LIBS to avoid the need to call pkg-config.
Chris@69 12761 See the pkg-config man page for more details.
Chris@69 12762
Chris@69 12763 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
Chris@69 12764 See \`config.log' for more details" "$LINENO" 5; }
Chris@69 12765 else
Chris@69 12766 URL_DEPS_CFLAGS=$pkg_cv_URL_DEPS_CFLAGS
Chris@69 12767 URL_DEPS_LIBS=$pkg_cv_URL_DEPS_LIBS
Chris@69 12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 12769 $as_echo "yes" >&6; }
Chris@69 12770
Chris@69 12771 fi
Chris@69 12772
Chris@69 12773 fi
Chris@69 12774 if test "$enable_http" != "no"; then
Chris@69 12775 OP_ENABLE_HTTP_TRUE=
Chris@69 12776 OP_ENABLE_HTTP_FALSE='#'
Chris@69 12777 else
Chris@69 12778 OP_ENABLE_HTTP_TRUE='#'
Chris@69 12779 OP_ENABLE_HTTP_FALSE=
Chris@69 12780 fi
Chris@69 12781
Chris@69 12782
Chris@69 12783
Chris@69 12784
Chris@69 12785 pkg_failed=no
Chris@69 12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEPS" >&5
Chris@69 12787 $as_echo_n "checking for DEPS... " >&6; }
Chris@69 12788
Chris@69 12789 if test -n "$DEPS_CFLAGS"; then
Chris@69 12790 pkg_cv_DEPS_CFLAGS="$DEPS_CFLAGS"
Chris@69 12791 elif test -n "$PKG_CONFIG"; then
Chris@69 12792 if test -n "$PKG_CONFIG" && \
Chris@69 12793 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.3 opus >= 1.0.1\""; } >&5
Chris@69 12794 ($PKG_CONFIG --exists --print-errors "ogg >= 1.3 opus >= 1.0.1") 2>&5
Chris@69 12795 ac_status=$?
Chris@69 12796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 12797 test $ac_status = 0; }; then
Chris@69 12798 pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.3 opus >= 1.0.1" 2>/dev/null`
Chris@69 12799 test "x$?" != "x0" && pkg_failed=yes
Chris@69 12800 else
Chris@69 12801 pkg_failed=yes
Chris@69 12802 fi
Chris@69 12803 else
Chris@69 12804 pkg_failed=untried
Chris@69 12805 fi
Chris@69 12806 if test -n "$DEPS_LIBS"; then
Chris@69 12807 pkg_cv_DEPS_LIBS="$DEPS_LIBS"
Chris@69 12808 elif test -n "$PKG_CONFIG"; then
Chris@69 12809 if test -n "$PKG_CONFIG" && \
Chris@69 12810 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.3 opus >= 1.0.1\""; } >&5
Chris@69 12811 ($PKG_CONFIG --exists --print-errors "ogg >= 1.3 opus >= 1.0.1") 2>&5
Chris@69 12812 ac_status=$?
Chris@69 12813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 12814 test $ac_status = 0; }; then
Chris@69 12815 pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs "ogg >= 1.3 opus >= 1.0.1" 2>/dev/null`
Chris@69 12816 test "x$?" != "x0" && pkg_failed=yes
Chris@69 12817 else
Chris@69 12818 pkg_failed=yes
Chris@69 12819 fi
Chris@69 12820 else
Chris@69 12821 pkg_failed=untried
Chris@69 12822 fi
Chris@69 12823
Chris@69 12824
Chris@69 12825
Chris@69 12826 if test $pkg_failed = yes; then
Chris@69 12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 12828 $as_echo "no" >&6; }
Chris@69 12829
Chris@69 12830 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@69 12831 _pkg_short_errors_supported=yes
Chris@69 12832 else
Chris@69 12833 _pkg_short_errors_supported=no
Chris@69 12834 fi
Chris@69 12835 if test $_pkg_short_errors_supported = yes; then
Chris@69 12836 DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ogg >= 1.3 opus >= 1.0.1" 2>&1`
Chris@69 12837 else
Chris@69 12838 DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ogg >= 1.3 opus >= 1.0.1" 2>&1`
Chris@69 12839 fi
Chris@69 12840 # Put the nasty error message in config.log where it belongs
Chris@69 12841 echo "$DEPS_PKG_ERRORS" >&5
Chris@69 12842
Chris@69 12843 as_fn_error $? "Package requirements (ogg >= 1.3 opus >= 1.0.1) were not met:
Chris@69 12844
Chris@69 12845 $DEPS_PKG_ERRORS
Chris@69 12846
Chris@69 12847 Consider adjusting the PKG_CONFIG_PATH environment variable if you
Chris@69 12848 installed software in a non-standard prefix.
Chris@69 12849
Chris@69 12850 Alternatively, you may set the environment variables DEPS_CFLAGS
Chris@69 12851 and DEPS_LIBS to avoid the need to call pkg-config.
Chris@69 12852 See the pkg-config man page for more details." "$LINENO" 5
Chris@69 12853 elif test $pkg_failed = untried; then
Chris@69 12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 12855 $as_echo "no" >&6; }
Chris@69 12856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@69 12857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@69 12858 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
Chris@69 12859 is in your PATH or set the PKG_CONFIG environment variable to the full
Chris@69 12860 path to pkg-config.
Chris@69 12861
Chris@69 12862 Alternatively, you may set the environment variables DEPS_CFLAGS
Chris@69 12863 and DEPS_LIBS to avoid the need to call pkg-config.
Chris@69 12864 See the pkg-config man page for more details.
Chris@69 12865
Chris@69 12866 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
Chris@69 12867 See \`config.log' for more details" "$LINENO" 5; }
Chris@69 12868 else
Chris@69 12869 DEPS_CFLAGS=$pkg_cv_DEPS_CFLAGS
Chris@69 12870 DEPS_LIBS=$pkg_cv_DEPS_LIBS
Chris@69 12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 12872 $as_echo "yes" >&6; }
Chris@69 12873
Chris@69 12874 fi
Chris@69 12875
Chris@69 12876 # Check whether --enable-fixed-point was given.
Chris@69 12877 if test "${enable_fixed_point+set}" = set; then :
Chris@69 12878 enableval=$enable_fixed_point;
Chris@69 12879 else
Chris@69 12880 enable_fixed_point=no
Chris@69 12881 fi
Chris@69 12882
Chris@69 12883 # Check whether --enable-float was given.
Chris@69 12884 if test "${enable_float+set}" = set; then :
Chris@69 12885 enableval=$enable_float;
Chris@69 12886 else
Chris@69 12887 enable_float=yes
Chris@69 12888 fi
Chris@69 12889
Chris@69 12890
Chris@69 12891 if test "$enable_float" = "no"; then :
Chris@69 12892 enable_fixed_point=yes
Chris@69 12893
Chris@69 12894 $as_echo "#define OP_DISABLE_FLOAT_API 1" >>confdefs.h
Chris@69 12895
Chris@69 12896
Chris@69 12897
Chris@69 12898 fi
Chris@69 12899
Chris@69 12900 if test "$enable_fixed_point" = "yes"; then :
Chris@69 12901
Chris@69 12902 $as_echo "#define OP_FIXED_POINT 1" >>confdefs.h
Chris@69 12903
Chris@69 12904 else
Chris@69 12905 saved_LIBS="$LIBS"
Chris@69 12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lrintf" >&5
Chris@69 12907 $as_echo_n "checking for library containing lrintf... " >&6; }
Chris@69 12908 if ${ac_cv_search_lrintf+:} false; then :
Chris@69 12909 $as_echo_n "(cached) " >&6
Chris@69 12910 else
Chris@69 12911 ac_func_search_save_LIBS=$LIBS
Chris@69 12912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 12913 /* end confdefs.h. */
Chris@69 12914
Chris@69 12915 /* Override any GCC internal prototype to avoid an error.
Chris@69 12916 Use char because int might match the return type of a GCC
Chris@69 12917 builtin and then its argument prototype would still apply. */
Chris@69 12918 #ifdef __cplusplus
Chris@69 12919 extern "C"
Chris@69 12920 #endif
Chris@69 12921 char lrintf ();
Chris@69 12922 int
Chris@69 12923 main ()
Chris@69 12924 {
Chris@69 12925 return lrintf ();
Chris@69 12926 ;
Chris@69 12927 return 0;
Chris@69 12928 }
Chris@69 12929 _ACEOF
Chris@69 12930 for ac_lib in '' m; do
Chris@69 12931 if test -z "$ac_lib"; then
Chris@69 12932 ac_res="none required"
Chris@69 12933 else
Chris@69 12934 ac_res=-l$ac_lib
Chris@69 12935 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Chris@69 12936 fi
Chris@69 12937 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 12938 ac_cv_search_lrintf=$ac_res
Chris@69 12939 fi
Chris@69 12940 rm -f core conftest.err conftest.$ac_objext \
Chris@69 12941 conftest$ac_exeext
Chris@69 12942 if ${ac_cv_search_lrintf+:} false; then :
Chris@69 12943 break
Chris@69 12944 fi
Chris@69 12945 done
Chris@69 12946 if ${ac_cv_search_lrintf+:} false; then :
Chris@69 12947
Chris@69 12948 else
Chris@69 12949 ac_cv_search_lrintf=no
Chris@69 12950 fi
Chris@69 12951 rm conftest.$ac_ext
Chris@69 12952 LIBS=$ac_func_search_save_LIBS
Chris@69 12953 fi
Chris@69 12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lrintf" >&5
Chris@69 12955 $as_echo "$ac_cv_search_lrintf" >&6; }
Chris@69 12956 ac_res=$ac_cv_search_lrintf
Chris@69 12957 if test "$ac_res" != no; then :
Chris@69 12958 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Chris@69 12959
Chris@69 12960
Chris@69 12961 $as_echo "#define OP_HAVE_LRINTF 1" >>confdefs.h
Chris@69 12962
Chris@69 12963 lrintf_notice="
Chris@69 12964 Library for lrintf() ......... ${ac_cv_search_lrintf}"
Chris@69 12965
Chris@69 12966 fi
Chris@69 12967
Chris@69 12968 LIBS="$saved_LIBS"
Chris@69 12969
Chris@69 12970
Chris@69 12971 fi
Chris@69 12972
Chris@69 12973 # Check whether --enable-examples was given.
Chris@69 12974 if test "${enable_examples+set}" = set; then :
Chris@69 12975 enableval=$enable_examples;
Chris@69 12976 else
Chris@69 12977 enable_examples=yes
Chris@69 12978 fi
Chris@69 12979
Chris@69 12980 if test "$enable_examples" = "yes"; then
Chris@69 12981 OP_ENABLE_EXAMPLES_TRUE=
Chris@69 12982 OP_ENABLE_EXAMPLES_FALSE='#'
Chris@69 12983 else
Chris@69 12984 OP_ENABLE_EXAMPLES_TRUE='#'
Chris@69 12985 OP_ENABLE_EXAMPLES_FALSE=
Chris@69 12986 fi
Chris@69 12987
Chris@69 12988
Chris@69 12989 case "$ac_cv_search_lrintf" in #(
Chris@69 12990 "no") :
Chris@69 12991 ;; #(
Chris@69 12992 "none required") :
Chris@69 12993 ;; #(
Chris@69 12994 *) :
Chris@69 12995 lrintf_lib="$ac_cv_search_lrintf" ;;
Chris@69 12996 esac
Chris@69 12997
Chris@69 12998
Chris@69 12999
Chris@69 13000
Chris@69 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC way to treat warnings as errors" >&5
Chris@69 13002 $as_echo_n "checking for $CC way to treat warnings as errors... " >&6; }
Chris@69 13003 if ${cc_cv_werror+:} false; then :
Chris@69 13004 $as_echo_n "(cached) " >&6
Chris@69 13005 else
Chris@69 13006
Chris@69 13007 if ${cc_cv_cflags__Werror+:} false; then :
Chris@69 13008 $as_echo_n "(cached) " >&6
Chris@69 13009 else
Chris@69 13010 ac_save_CFLAGS="$CFLAGS"
Chris@69 13011 CFLAGS="$CFLAGS -Werror"
Chris@69 13012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 13013 /* end confdefs.h. */
Chris@69 13014 int main() { return 0; }
Chris@69 13015 _ACEOF
Chris@69 13016 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 13017 eval "cc_cv_cflags__Werror='yes'"
Chris@69 13018 else
Chris@69 13019 eval "cc_cv_cflags__Werror='no'"
Chris@69 13020 fi
Chris@69 13021 rm -f core conftest.err conftest.$ac_objext \
Chris@69 13022 conftest$ac_exeext conftest.$ac_ext
Chris@69 13023 CFLAGS="$ac_save_CFLAGS"
Chris@69 13024
Chris@69 13025 fi
Chris@69 13026
Chris@69 13027
Chris@69 13028 if eval test x$cc_cv_cflags__Werror = xyes; then :
Chris@69 13029 cc_cv_werror=-Werror
Chris@69 13030 else
Chris@69 13031
Chris@69 13032 if ${cc_cv_cflags__errwarn__all+:} false; then :
Chris@69 13033 $as_echo_n "(cached) " >&6
Chris@69 13034 else
Chris@69 13035 ac_save_CFLAGS="$CFLAGS"
Chris@69 13036 CFLAGS="$CFLAGS -errwarn=%all"
Chris@69 13037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 13038 /* end confdefs.h. */
Chris@69 13039 int main() { return 0; }
Chris@69 13040 _ACEOF
Chris@69 13041 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 13042 eval "cc_cv_cflags__errwarn__all='yes'"
Chris@69 13043 else
Chris@69 13044 eval "cc_cv_cflags__errwarn__all='no'"
Chris@69 13045 fi
Chris@69 13046 rm -f core conftest.err conftest.$ac_objext \
Chris@69 13047 conftest$ac_exeext conftest.$ac_ext
Chris@69 13048 CFLAGS="$ac_save_CFLAGS"
Chris@69 13049
Chris@69 13050 fi
Chris@69 13051
Chris@69 13052
Chris@69 13053 if eval test x$cc_cv_cflags__errwarn__all = xyes; then :
Chris@69 13054 cc_cv_werror=-errwarn=%all
Chris@69 13055 fi
Chris@69 13056
Chris@69 13057 fi
Chris@69 13058
Chris@69 13059
Chris@69 13060 fi
Chris@69 13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_cv_werror" >&5
Chris@69 13062 $as_echo "$cc_cv_werror" >&6; }
Chris@69 13063
Chris@69 13064
Chris@69 13065
Chris@69 13066
Chris@69 13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__(( visibility(\"default\") ))" >&5
Chris@69 13068 $as_echo_n "checking if $CC supports __attribute__(( visibility(\"default\") ))... " >&6; }
Chris@69 13069 if ${cc_cv_attribute_visibility_default+:} false; then :
Chris@69 13070 $as_echo_n "(cached) " >&6
Chris@69 13071 else
Chris@69 13072 ac_save_CFLAGS="$CFLAGS"
Chris@69 13073 CFLAGS="$CFLAGS $cc_cv_werror"
Chris@69 13074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 13075 /* end confdefs.h. */
Chris@69 13076 void __attribute__((visibility("default"))) default_function() { }
Chris@69 13077 _ACEOF
Chris@69 13078 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 13079 eval "cc_cv_attribute_visibility_default='yes'"
Chris@69 13080 else
Chris@69 13081 eval "cc_cv_attribute_visibility_default='no'"
Chris@69 13082 fi
Chris@69 13083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 13084 CFLAGS="$ac_save_CFLAGS"
Chris@69 13085
Chris@69 13086 fi
Chris@69 13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_cv_attribute_visibility_default" >&5
Chris@69 13088 $as_echo "$cc_cv_attribute_visibility_default" >&6; }
Chris@69 13089
Chris@69 13090 if eval test x$cc_cv_attribute_visibility_default = xyes; then :
Chris@69 13091
Chris@69 13092 $as_echo "#define SUPPORT_ATTRIBUTE_VISIBILITY_DEFAULT 1" >>confdefs.h
Chris@69 13093
Chris@69 13094
Chris@69 13095
Chris@69 13096
Chris@69 13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fvisibility=hidden" >&5
Chris@69 13098 $as_echo_n "checking if $CC supports -fvisibility=hidden... " >&6; }
Chris@69 13099 if ${cc_cv_flag_visibility+:} false; then :
Chris@69 13100 $as_echo_n "(cached) " >&6
Chris@69 13101 else
Chris@69 13102 cc_flag_visibility_save_CFLAGS="$CFLAGS"
Chris@69 13103 CFLAGS="$CFLAGS $cc_cv_werror"
Chris@69 13104
Chris@69 13105 if ${cc_cv_cflags__fvisibility_hidden+:} false; then :
Chris@69 13106 $as_echo_n "(cached) " >&6
Chris@69 13107 else
Chris@69 13108 ac_save_CFLAGS="$CFLAGS"
Chris@69 13109 CFLAGS="$CFLAGS -fvisibility=hidden"
Chris@69 13110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 13111 /* end confdefs.h. */
Chris@69 13112 int main() { return 0; }
Chris@69 13113 _ACEOF
Chris@69 13114 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 13115 eval "cc_cv_cflags__fvisibility_hidden='yes'"
Chris@69 13116 else
Chris@69 13117 eval "cc_cv_cflags__fvisibility_hidden='no'"
Chris@69 13118 fi
Chris@69 13119 rm -f core conftest.err conftest.$ac_objext \
Chris@69 13120 conftest$ac_exeext conftest.$ac_ext
Chris@69 13121 CFLAGS="$ac_save_CFLAGS"
Chris@69 13122
Chris@69 13123 fi
Chris@69 13124
Chris@69 13125
Chris@69 13126 if eval test x$cc_cv_cflags__fvisibility_hidden = xyes; then :
Chris@69 13127 cc_cv_flag_visibility='yes'
Chris@69 13128 else
Chris@69 13129 cc_cv_flag_visibility='no'
Chris@69 13130 fi
Chris@69 13131
Chris@69 13132 CFLAGS="$cc_flag_visibility_save_CFLAGS"
Chris@69 13133 fi
Chris@69 13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_cv_flag_visibility" >&5
Chris@69 13135 $as_echo "$cc_cv_flag_visibility" >&6; }
Chris@69 13136
Chris@69 13137 if test "x$cc_cv_flag_visibility" = "xyes"; then :
Chris@69 13138
Chris@69 13139 $as_echo "#define SUPPORT_FLAG_VISIBILITY 1" >>confdefs.h
Chris@69 13140
Chris@69 13141 CFLAGS="${CFLAGS} -fvisibility=hidden"
Chris@69 13142 fi
Chris@69 13143
Chris@69 13144
Chris@69 13145 fi
Chris@69 13146
Chris@69 13147
Chris@69 13148
Chris@69 13149 # Check whether --enable-doc was given.
Chris@69 13150 if test "${enable_doc+set}" = set; then :
Chris@69 13151 enableval=$enable_doc;
Chris@69 13152 else
Chris@69 13153 enable_doc=yes
Chris@69 13154
Chris@69 13155 fi
Chris@69 13156
Chris@69 13157
Chris@69 13158 if test "$enable_doc" = "yes"; then :
Chris@69 13159
Chris@69 13160 # Extract the first word of "doxygen", so it can be a program name with args.
Chris@69 13161 set dummy doxygen; ac_word=$2
Chris@69 13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 13163 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 13164 if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then :
Chris@69 13165 $as_echo_n "(cached) " >&6
Chris@69 13166 else
Chris@69 13167 if test -n "$HAVE_DOXYGEN"; then
Chris@69 13168 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
Chris@69 13169 else
Chris@69 13170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 13171 for as_dir in $PATH
Chris@69 13172 do
Chris@69 13173 IFS=$as_save_IFS
Chris@69 13174 test -z "$as_dir" && as_dir=.
Chris@69 13175 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 13176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 13177 ac_cv_prog_HAVE_DOXYGEN="yes"
Chris@69 13178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 13179 break 2
Chris@69 13180 fi
Chris@69 13181 done
Chris@69 13182 done
Chris@69 13183 IFS=$as_save_IFS
Chris@69 13184
Chris@69 13185 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="no"
Chris@69 13186 fi
Chris@69 13187 fi
Chris@69 13188 HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
Chris@69 13189 if test -n "$HAVE_DOXYGEN"; then
Chris@69 13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
Chris@69 13191 $as_echo "$HAVE_DOXYGEN" >&6; }
Chris@69 13192 else
Chris@69 13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 13194 $as_echo "no" >&6; }
Chris@69 13195 fi
Chris@69 13196
Chris@69 13197
Chris@69 13198 # Extract the first word of "dot", so it can be a program name with args.
Chris@69 13199 set dummy dot; ac_word=$2
Chris@69 13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 13201 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 13202 if ${ac_cv_prog_HAVE_DOT+:} false; then :
Chris@69 13203 $as_echo_n "(cached) " >&6
Chris@69 13204 else
Chris@69 13205 if test -n "$HAVE_DOT"; then
Chris@69 13206 ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test.
Chris@69 13207 else
Chris@69 13208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 13209 for as_dir in $PATH
Chris@69 13210 do
Chris@69 13211 IFS=$as_save_IFS
Chris@69 13212 test -z "$as_dir" && as_dir=.
Chris@69 13213 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 13214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 13215 ac_cv_prog_HAVE_DOT="yes"
Chris@69 13216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 13217 break 2
Chris@69 13218 fi
Chris@69 13219 done
Chris@69 13220 done
Chris@69 13221 IFS=$as_save_IFS
Chris@69 13222
Chris@69 13223 test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="no"
Chris@69 13224 fi
Chris@69 13225 fi
Chris@69 13226 HAVE_DOT=$ac_cv_prog_HAVE_DOT
Chris@69 13227 if test -n "$HAVE_DOT"; then
Chris@69 13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOT" >&5
Chris@69 13229 $as_echo "$HAVE_DOT" >&6; }
Chris@69 13230 else
Chris@69 13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 13232 $as_echo "no" >&6; }
Chris@69 13233 fi
Chris@69 13234
Chris@69 13235
Chris@69 13236
Chris@69 13237 else
Chris@69 13238
Chris@69 13239 HAVE_DOXYGEN=no
Chris@69 13240
Chris@69 13241 fi
Chris@69 13242
Chris@69 13243 if test "$HAVE_DOXYGEN" = "yes"; then
Chris@69 13244 HAVE_DOXYGEN_TRUE=
Chris@69 13245 HAVE_DOXYGEN_FALSE='#'
Chris@69 13246 else
Chris@69 13247 HAVE_DOXYGEN_TRUE='#'
Chris@69 13248 HAVE_DOXYGEN_FALSE=
Chris@69 13249 fi
Chris@69 13250
Chris@69 13251
Chris@69 13252 ac_config_files="$ac_config_files Makefile opusfile.pc opusurl.pc opusfile-uninstalled.pc opusurl-uninstalled.pc doc/Doxyfile"
Chris@69 13253
Chris@69 13254 ac_config_headers="$ac_config_headers config.h"
Chris@69 13255
Chris@69 13256 cat >confcache <<\_ACEOF
Chris@69 13257 # This file is a shell script that caches the results of configure
Chris@69 13258 # tests run on this system so they can be shared between configure
Chris@69 13259 # scripts and configure runs, see configure's option --config-cache.
Chris@69 13260 # It is not useful on other systems. If it contains results you don't
Chris@69 13261 # want to keep, you may remove or edit it.
Chris@69 13262 #
Chris@69 13263 # config.status only pays attention to the cache file if you give it
Chris@69 13264 # the --recheck option to rerun configure.
Chris@69 13265 #
Chris@69 13266 # `ac_cv_env_foo' variables (set or unset) will be overridden when
Chris@69 13267 # loading this file, other *unset* `ac_cv_foo' will be assigned the
Chris@69 13268 # following values.
Chris@69 13269
Chris@69 13270 _ACEOF
Chris@69 13271
Chris@69 13272 # The following way of writing the cache mishandles newlines in values,
Chris@69 13273 # but we know of no workaround that is simple, portable, and efficient.
Chris@69 13274 # So, we kill variables containing newlines.
Chris@69 13275 # Ultrix sh set writes to stderr and can't be redirected directly,
Chris@69 13276 # and sets the high bit in the cache file unless we assign to the vars.
Chris@69 13277 (
Chris@69 13278 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
Chris@69 13279 eval ac_val=\$$ac_var
Chris@69 13280 case $ac_val in #(
Chris@69 13281 *${as_nl}*)
Chris@69 13282 case $ac_var in #(
Chris@69 13283 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Chris@69 13284 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Chris@69 13285 esac
Chris@69 13286 case $ac_var in #(
Chris@69 13287 _ | IFS | as_nl) ;; #(
Chris@69 13288 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Chris@69 13289 *) { eval $ac_var=; unset $ac_var;} ;;
Chris@69 13290 esac ;;
Chris@69 13291 esac
Chris@69 13292 done
Chris@69 13293
Chris@69 13294 (set) 2>&1 |
Chris@69 13295 case $as_nl`(ac_space=' '; set) 2>&1` in #(
Chris@69 13296 *${as_nl}ac_space=\ *)
Chris@69 13297 # `set' does not quote correctly, so add quotes: double-quote
Chris@69 13298 # substitution turns \\\\ into \\, and sed turns \\ into \.
Chris@69 13299 sed -n \
Chris@69 13300 "s/'/'\\\\''/g;
Chris@69 13301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Chris@69 13302 ;; #(
Chris@69 13303 *)
Chris@69 13304 # `set' quotes correctly as required by POSIX, so do not add quotes.
Chris@69 13305 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@69 13306 ;;
Chris@69 13307 esac |
Chris@69 13308 sort
Chris@69 13309 ) |
Chris@69 13310 sed '
Chris@69 13311 /^ac_cv_env_/b end
Chris@69 13312 t clear
Chris@69 13313 :clear
Chris@69 13314 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
Chris@69 13315 t end
Chris@69 13316 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
Chris@69 13317 :end' >>confcache
Chris@69 13318 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
Chris@69 13319 if test -w "$cache_file"; then
Chris@69 13320 if test "x$cache_file" != "x/dev/null"; then
Chris@69 13321 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Chris@69 13322 $as_echo "$as_me: updating cache $cache_file" >&6;}
Chris@69 13323 if test ! -f "$cache_file" || test -h "$cache_file"; then
Chris@69 13324 cat confcache >"$cache_file"
Chris@69 13325 else
Chris@69 13326 case $cache_file in #(
Chris@69 13327 */* | ?:*)
Chris@69 13328 mv -f confcache "$cache_file"$$ &&
Chris@69 13329 mv -f "$cache_file"$$ "$cache_file" ;; #(
Chris@69 13330 *)
Chris@69 13331 mv -f confcache "$cache_file" ;;
Chris@69 13332 esac
Chris@69 13333 fi
Chris@69 13334 fi
Chris@69 13335 else
Chris@69 13336 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Chris@69 13337 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Chris@69 13338 fi
Chris@69 13339 fi
Chris@69 13340 rm -f confcache
Chris@69 13341
Chris@69 13342 test "x$prefix" = xNONE && prefix=$ac_default_prefix
Chris@69 13343 # Let make expand exec_prefix.
Chris@69 13344 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Chris@69 13345
Chris@69 13346 DEFS=-DHAVE_CONFIG_H
Chris@69 13347
Chris@69 13348 ac_libobjs=
Chris@69 13349 ac_ltlibobjs=
Chris@69 13350 U=
Chris@69 13351 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
Chris@69 13352 # 1. Remove the extension, and $U if already installed.
Chris@69 13353 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Chris@69 13354 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Chris@69 13355 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
Chris@69 13356 # will be set to the directory where LIBOBJS objects are built.
Chris@69 13357 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
Chris@69 13358 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Chris@69 13359 done
Chris@69 13360 LIBOBJS=$ac_libobjs
Chris@69 13361
Chris@69 13362 LTLIBOBJS=$ac_ltlibobjs
Chris@69 13363
Chris@69 13364
Chris@69 13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
Chris@69 13366 $as_echo_n "checking that generated files are newer than configure... " >&6; }
Chris@69 13367 if test -n "$am_sleep_pid"; then
Chris@69 13368 # Hide warnings about reused PIDs.
Chris@69 13369 wait $am_sleep_pid 2>/dev/null
Chris@69 13370 fi
Chris@69 13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
Chris@69 13372 $as_echo "done" >&6; }
Chris@69 13373 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Chris@69 13374 as_fn_error $? "conditional \"AMDEP\" was never defined.
Chris@69 13375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 13376 fi
Chris@69 13377 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Chris@69 13378 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Chris@69 13379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 13380 fi
Chris@69 13381 if test -n "$EXEEXT"; then
Chris@69 13382 am__EXEEXT_TRUE=
Chris@69 13383 am__EXEEXT_FALSE='#'
Chris@69 13384 else
Chris@69 13385 am__EXEEXT_TRUE='#'
Chris@69 13386 am__EXEEXT_FALSE=
Chris@69 13387 fi
Chris@69 13388
Chris@69 13389 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
Chris@69 13390 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
Chris@69 13391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 13392 fi
Chris@69 13393 if test -z "${OP_WIN32_TRUE}" && test -z "${OP_WIN32_FALSE}"; then
Chris@69 13394 as_fn_error $? "conditional \"OP_WIN32\" was never defined.
Chris@69 13395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 13396 fi
Chris@69 13397 if test -z "${OP_ENABLE_HTTP_TRUE}" && test -z "${OP_ENABLE_HTTP_FALSE}"; then
Chris@69 13398 as_fn_error $? "conditional \"OP_ENABLE_HTTP\" was never defined.
Chris@69 13399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 13400 fi
Chris@69 13401 if test -z "${OP_ENABLE_EXAMPLES_TRUE}" && test -z "${OP_ENABLE_EXAMPLES_FALSE}"; then
Chris@69 13402 as_fn_error $? "conditional \"OP_ENABLE_EXAMPLES\" was never defined.
Chris@69 13403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 13404 fi
Chris@69 13405 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
Chris@69 13406 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
Chris@69 13407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 13408 fi
Chris@69 13409
Chris@69 13410 : "${CONFIG_STATUS=./config.status}"
Chris@69 13411 ac_write_fail=0
Chris@69 13412 ac_clean_files_save=$ac_clean_files
Chris@69 13413 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Chris@69 13414 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Chris@69 13415 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Chris@69 13416 as_write_fail=0
Chris@69 13417 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Chris@69 13418 #! $SHELL
Chris@69 13419 # Generated by $as_me.
Chris@69 13420 # Run this file to recreate the current configuration.
Chris@69 13421 # Compiler output produced by configure, useful for debugging
Chris@69 13422 # configure, is in config.log if it exists.
Chris@69 13423
Chris@69 13424 debug=false
Chris@69 13425 ac_cs_recheck=false
Chris@69 13426 ac_cs_silent=false
Chris@69 13427
Chris@69 13428 SHELL=\${CONFIG_SHELL-$SHELL}
Chris@69 13429 export SHELL
Chris@69 13430 _ASEOF
Chris@69 13431 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
Chris@69 13432 ## -------------------- ##
Chris@69 13433 ## M4sh Initialization. ##
Chris@69 13434 ## -------------------- ##
Chris@69 13435
Chris@69 13436 # Be more Bourne compatible
Chris@69 13437 DUALCASE=1; export DUALCASE # for MKS sh
Chris@69 13438 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Chris@69 13439 emulate sh
Chris@69 13440 NULLCMD=:
Chris@69 13441 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Chris@69 13442 # is contrary to our usage. Disable this feature.
Chris@69 13443 alias -g '${1+"$@"}'='"$@"'
Chris@69 13444 setopt NO_GLOB_SUBST
Chris@69 13445 else
Chris@69 13446 case `(set -o) 2>/dev/null` in #(
Chris@69 13447 *posix*) :
Chris@69 13448 set -o posix ;; #(
Chris@69 13449 *) :
Chris@69 13450 ;;
Chris@69 13451 esac
Chris@69 13452 fi
Chris@69 13453
Chris@69 13454
Chris@69 13455 as_nl='
Chris@69 13456 '
Chris@69 13457 export as_nl
Chris@69 13458 # Printing a long string crashes Solaris 7 /usr/bin/printf.
Chris@69 13459 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@69 13460 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@69 13461 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@69 13462 # Prefer a ksh shell builtin over an external printf program on Solaris,
Chris@69 13463 # but without wasting forks for bash or zsh.
Chris@69 13464 if test -z "$BASH_VERSION$ZSH_VERSION" \
Chris@69 13465 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@69 13466 as_echo='print -r --'
Chris@69 13467 as_echo_n='print -rn --'
Chris@69 13468 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@69 13469 as_echo='printf %s\n'
Chris@69 13470 as_echo_n='printf %s'
Chris@69 13471 else
Chris@69 13472 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
Chris@69 13473 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
Chris@69 13474 as_echo_n='/usr/ucb/echo -n'
Chris@69 13475 else
Chris@69 13476 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
Chris@69 13477 as_echo_n_body='eval
Chris@69 13478 arg=$1;
Chris@69 13479 case $arg in #(
Chris@69 13480 *"$as_nl"*)
Chris@69 13481 expr "X$arg" : "X\\(.*\\)$as_nl";
Chris@69 13482 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
Chris@69 13483 esac;
Chris@69 13484 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
Chris@69 13485 '
Chris@69 13486 export as_echo_n_body
Chris@69 13487 as_echo_n='sh -c $as_echo_n_body as_echo'
Chris@69 13488 fi
Chris@69 13489 export as_echo_body
Chris@69 13490 as_echo='sh -c $as_echo_body as_echo'
Chris@69 13491 fi
Chris@69 13492
Chris@69 13493 # The user is always right.
Chris@69 13494 if test "${PATH_SEPARATOR+set}" != set; then
Chris@69 13495 PATH_SEPARATOR=:
Chris@69 13496 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
Chris@69 13497 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
Chris@69 13498 PATH_SEPARATOR=';'
Chris@69 13499 }
Chris@69 13500 fi
Chris@69 13501
Chris@69 13502
Chris@69 13503 # IFS
Chris@69 13504 # We need space, tab and new line, in precisely that order. Quoting is
Chris@69 13505 # there to prevent editors from complaining about space-tab.
Chris@69 13506 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
Chris@69 13507 # splitting by setting IFS to empty value.)
Chris@69 13508 IFS=" "" $as_nl"
Chris@69 13509
Chris@69 13510 # Find who we are. Look in the path if we contain no directory separator.
Chris@69 13511 as_myself=
Chris@69 13512 case $0 in #((
Chris@69 13513 *[\\/]* ) as_myself=$0 ;;
Chris@69 13514 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 13515 for as_dir in $PATH
Chris@69 13516 do
Chris@69 13517 IFS=$as_save_IFS
Chris@69 13518 test -z "$as_dir" && as_dir=.
Chris@69 13519 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
Chris@69 13520 done
Chris@69 13521 IFS=$as_save_IFS
Chris@69 13522
Chris@69 13523 ;;
Chris@69 13524 esac
Chris@69 13525 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@69 13526 # in which case we are not to be found in the path.
Chris@69 13527 if test "x$as_myself" = x; then
Chris@69 13528 as_myself=$0
Chris@69 13529 fi
Chris@69 13530 if test ! -f "$as_myself"; then
Chris@69 13531 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Chris@69 13532 exit 1
Chris@69 13533 fi
Chris@69 13534
Chris@69 13535 # Unset variables that we do not need and which cause bugs (e.g. in
Chris@69 13536 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
Chris@69 13537 # suppresses any "Segmentation fault" message there. '((' could
Chris@69 13538 # trigger a bug in pdksh 5.2.14.
Chris@69 13539 for as_var in BASH_ENV ENV MAIL MAILPATH
Chris@69 13540 do eval test x\${$as_var+set} = xset \
Chris@69 13541 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Chris@69 13542 done
Chris@69 13543 PS1='$ '
Chris@69 13544 PS2='> '
Chris@69 13545 PS4='+ '
Chris@69 13546
Chris@69 13547 # NLS nuisances.
Chris@69 13548 LC_ALL=C
Chris@69 13549 export LC_ALL
Chris@69 13550 LANGUAGE=C
Chris@69 13551 export LANGUAGE
Chris@69 13552
Chris@69 13553 # CDPATH.
Chris@69 13554 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@69 13555
Chris@69 13556
Chris@69 13557 # as_fn_error STATUS ERROR [LINENO LOG_FD]
Chris@69 13558 # ----------------------------------------
Chris@69 13559 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
Chris@69 13560 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Chris@69 13561 # script with STATUS, using 1 if that was 0.
Chris@69 13562 as_fn_error ()
Chris@69 13563 {
Chris@69 13564 as_status=$1; test $as_status -eq 0 && as_status=1
Chris@69 13565 if test "$4"; then
Chris@69 13566 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@69 13567 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Chris@69 13568 fi
Chris@69 13569 $as_echo "$as_me: error: $2" >&2
Chris@69 13570 as_fn_exit $as_status
Chris@69 13571 } # as_fn_error
Chris@69 13572
Chris@69 13573
Chris@69 13574 # as_fn_set_status STATUS
Chris@69 13575 # -----------------------
Chris@69 13576 # Set $? to STATUS, without forking.
Chris@69 13577 as_fn_set_status ()
Chris@69 13578 {
Chris@69 13579 return $1
Chris@69 13580 } # as_fn_set_status
Chris@69 13581
Chris@69 13582 # as_fn_exit STATUS
Chris@69 13583 # -----------------
Chris@69 13584 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
Chris@69 13585 as_fn_exit ()
Chris@69 13586 {
Chris@69 13587 set +e
Chris@69 13588 as_fn_set_status $1
Chris@69 13589 exit $1
Chris@69 13590 } # as_fn_exit
Chris@69 13591
Chris@69 13592 # as_fn_unset VAR
Chris@69 13593 # ---------------
Chris@69 13594 # Portably unset VAR.
Chris@69 13595 as_fn_unset ()
Chris@69 13596 {
Chris@69 13597 { eval $1=; unset $1;}
Chris@69 13598 }
Chris@69 13599 as_unset=as_fn_unset
Chris@69 13600 # as_fn_append VAR VALUE
Chris@69 13601 # ----------------------
Chris@69 13602 # Append the text in VALUE to the end of the definition contained in VAR. Take
Chris@69 13603 # advantage of any shell optimizations that allow amortized linear growth over
Chris@69 13604 # repeated appends, instead of the typical quadratic growth present in naive
Chris@69 13605 # implementations.
Chris@69 13606 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
Chris@69 13607 eval 'as_fn_append ()
Chris@69 13608 {
Chris@69 13609 eval $1+=\$2
Chris@69 13610 }'
Chris@69 13611 else
Chris@69 13612 as_fn_append ()
Chris@69 13613 {
Chris@69 13614 eval $1=\$$1\$2
Chris@69 13615 }
Chris@69 13616 fi # as_fn_append
Chris@69 13617
Chris@69 13618 # as_fn_arith ARG...
Chris@69 13619 # ------------------
Chris@69 13620 # Perform arithmetic evaluation on the ARGs, and store the result in the
Chris@69 13621 # global $as_val. Take advantage of shells that can avoid forks. The arguments
Chris@69 13622 # must be portable across $(()) and expr.
Chris@69 13623 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
Chris@69 13624 eval 'as_fn_arith ()
Chris@69 13625 {
Chris@69 13626 as_val=$(( $* ))
Chris@69 13627 }'
Chris@69 13628 else
Chris@69 13629 as_fn_arith ()
Chris@69 13630 {
Chris@69 13631 as_val=`expr "$@" || test $? -eq 1`
Chris@69 13632 }
Chris@69 13633 fi # as_fn_arith
Chris@69 13634
Chris@69 13635
Chris@69 13636 if expr a : '\(a\)' >/dev/null 2>&1 &&
Chris@69 13637 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Chris@69 13638 as_expr=expr
Chris@69 13639 else
Chris@69 13640 as_expr=false
Chris@69 13641 fi
Chris@69 13642
Chris@69 13643 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Chris@69 13644 as_basename=basename
Chris@69 13645 else
Chris@69 13646 as_basename=false
Chris@69 13647 fi
Chris@69 13648
Chris@69 13649 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Chris@69 13650 as_dirname=dirname
Chris@69 13651 else
Chris@69 13652 as_dirname=false
Chris@69 13653 fi
Chris@69 13654
Chris@69 13655 as_me=`$as_basename -- "$0" ||
Chris@69 13656 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@69 13657 X"$0" : 'X\(//\)$' \| \
Chris@69 13658 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Chris@69 13659 $as_echo X/"$0" |
Chris@69 13660 sed '/^.*\/\([^/][^/]*\)\/*$/{
Chris@69 13661 s//\1/
Chris@69 13662 q
Chris@69 13663 }
Chris@69 13664 /^X\/\(\/\/\)$/{
Chris@69 13665 s//\1/
Chris@69 13666 q
Chris@69 13667 }
Chris@69 13668 /^X\/\(\/\).*/{
Chris@69 13669 s//\1/
Chris@69 13670 q
Chris@69 13671 }
Chris@69 13672 s/.*/./; q'`
Chris@69 13673
Chris@69 13674 # Avoid depending upon Character Ranges.
Chris@69 13675 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
Chris@69 13676 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Chris@69 13677 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
Chris@69 13678 as_cr_digits='0123456789'
Chris@69 13679 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@69 13680
Chris@69 13681 ECHO_C= ECHO_N= ECHO_T=
Chris@69 13682 case `echo -n x` in #(((((
Chris@69 13683 -n*)
Chris@69 13684 case `echo 'xy\c'` in
Chris@69 13685 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Chris@69 13686 xy) ECHO_C='\c';;
Chris@69 13687 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
Chris@69 13688 ECHO_T=' ';;
Chris@69 13689 esac;;
Chris@69 13690 *)
Chris@69 13691 ECHO_N='-n';;
Chris@69 13692 esac
Chris@69 13693
Chris@69 13694 rm -f conf$$ conf$$.exe conf$$.file
Chris@69 13695 if test -d conf$$.dir; then
Chris@69 13696 rm -f conf$$.dir/conf$$.file
Chris@69 13697 else
Chris@69 13698 rm -f conf$$.dir
Chris@69 13699 mkdir conf$$.dir 2>/dev/null
Chris@69 13700 fi
Chris@69 13701 if (echo >conf$$.file) 2>/dev/null; then
Chris@69 13702 if ln -s conf$$.file conf$$ 2>/dev/null; then
Chris@69 13703 as_ln_s='ln -s'
Chris@69 13704 # ... but there are two gotchas:
Chris@69 13705 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
Chris@69 13706 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Chris@69 13707 # In both cases, we have to default to `cp -pR'.
Chris@69 13708 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@69 13709 as_ln_s='cp -pR'
Chris@69 13710 elif ln conf$$.file conf$$ 2>/dev/null; then
Chris@69 13711 as_ln_s=ln
Chris@69 13712 else
Chris@69 13713 as_ln_s='cp -pR'
Chris@69 13714 fi
Chris@69 13715 else
Chris@69 13716 as_ln_s='cp -pR'
Chris@69 13717 fi
Chris@69 13718 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Chris@69 13719 rmdir conf$$.dir 2>/dev/null
Chris@69 13720
Chris@69 13721
Chris@69 13722 # as_fn_mkdir_p
Chris@69 13723 # -------------
Chris@69 13724 # Create "$as_dir" as a directory, including parents if necessary.
Chris@69 13725 as_fn_mkdir_p ()
Chris@69 13726 {
Chris@69 13727
Chris@69 13728 case $as_dir in #(
Chris@69 13729 -*) as_dir=./$as_dir;;
Chris@69 13730 esac
Chris@69 13731 test -d "$as_dir" || eval $as_mkdir_p || {
Chris@69 13732 as_dirs=
Chris@69 13733 while :; do
Chris@69 13734 case $as_dir in #(
Chris@69 13735 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Chris@69 13736 *) as_qdir=$as_dir;;
Chris@69 13737 esac
Chris@69 13738 as_dirs="'$as_qdir' $as_dirs"
Chris@69 13739 as_dir=`$as_dirname -- "$as_dir" ||
Chris@69 13740 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@69 13741 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@69 13742 X"$as_dir" : 'X\(//\)$' \| \
Chris@69 13743 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Chris@69 13744 $as_echo X"$as_dir" |
Chris@69 13745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@69 13746 s//\1/
Chris@69 13747 q
Chris@69 13748 }
Chris@69 13749 /^X\(\/\/\)[^/].*/{
Chris@69 13750 s//\1/
Chris@69 13751 q
Chris@69 13752 }
Chris@69 13753 /^X\(\/\/\)$/{
Chris@69 13754 s//\1/
Chris@69 13755 q
Chris@69 13756 }
Chris@69 13757 /^X\(\/\).*/{
Chris@69 13758 s//\1/
Chris@69 13759 q
Chris@69 13760 }
Chris@69 13761 s/.*/./; q'`
Chris@69 13762 test -d "$as_dir" && break
Chris@69 13763 done
Chris@69 13764 test -z "$as_dirs" || eval "mkdir $as_dirs"
Chris@69 13765 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Chris@69 13766
Chris@69 13767
Chris@69 13768 } # as_fn_mkdir_p
Chris@69 13769 if mkdir -p . 2>/dev/null; then
Chris@69 13770 as_mkdir_p='mkdir -p "$as_dir"'
Chris@69 13771 else
Chris@69 13772 test -d ./-p && rmdir ./-p
Chris@69 13773 as_mkdir_p=false
Chris@69 13774 fi
Chris@69 13775
Chris@69 13776
Chris@69 13777 # as_fn_executable_p FILE
Chris@69 13778 # -----------------------
Chris@69 13779 # Test if FILE is an executable regular file.
Chris@69 13780 as_fn_executable_p ()
Chris@69 13781 {
Chris@69 13782 test -f "$1" && test -x "$1"
Chris@69 13783 } # as_fn_executable_p
Chris@69 13784 as_test_x='test -x'
Chris@69 13785 as_executable_p=as_fn_executable_p
Chris@69 13786
Chris@69 13787 # Sed expression to map a string onto a valid CPP name.
Chris@69 13788 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Chris@69 13789
Chris@69 13790 # Sed expression to map a string onto a valid variable name.
Chris@69 13791 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Chris@69 13792
Chris@69 13793
Chris@69 13794 exec 6>&1
Chris@69 13795 ## ----------------------------------- ##
Chris@69 13796 ## Main body of $CONFIG_STATUS script. ##
Chris@69 13797 ## ----------------------------------- ##
Chris@69 13798 _ASEOF
Chris@69 13799 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Chris@69 13800
Chris@69 13801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@69 13802 # Save the log message, to keep $0 and so on meaningful, and to
Chris@69 13803 # report actual input values of CONFIG_FILES etc. instead of their
Chris@69 13804 # values after options handling.
Chris@69 13805 ac_log="
Chris@69 13806 This file was extended by opusfile $as_me 0.9, which was
Chris@69 13807 generated by GNU Autoconf 2.69. Invocation command line was
Chris@69 13808
Chris@69 13809 CONFIG_FILES = $CONFIG_FILES
Chris@69 13810 CONFIG_HEADERS = $CONFIG_HEADERS
Chris@69 13811 CONFIG_LINKS = $CONFIG_LINKS
Chris@69 13812 CONFIG_COMMANDS = $CONFIG_COMMANDS
Chris@69 13813 $ $0 $@
Chris@69 13814
Chris@69 13815 on `(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@69 13816 "
Chris@69 13817
Chris@69 13818 _ACEOF
Chris@69 13819
Chris@69 13820 case $ac_config_files in *"
Chris@69 13821 "*) set x $ac_config_files; shift; ac_config_files=$*;;
Chris@69 13822 esac
Chris@69 13823
Chris@69 13824 case $ac_config_headers in *"
Chris@69 13825 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
Chris@69 13826 esac
Chris@69 13827
Chris@69 13828
Chris@69 13829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@69 13830 # Files that config.status was made for.
Chris@69 13831 config_files="$ac_config_files"
Chris@69 13832 config_headers="$ac_config_headers"
Chris@69 13833 config_commands="$ac_config_commands"
Chris@69 13834
Chris@69 13835 _ACEOF
Chris@69 13836
Chris@69 13837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@69 13838 ac_cs_usage="\
Chris@69 13839 \`$as_me' instantiates files and other configuration actions
Chris@69 13840 from templates according to the current configuration. Unless the files
Chris@69 13841 and actions are specified as TAGs, all are instantiated by default.
Chris@69 13842
Chris@69 13843 Usage: $0 [OPTION]... [TAG]...
Chris@69 13844
Chris@69 13845 -h, --help print this help, then exit
Chris@69 13846 -V, --version print version number and configuration settings, then exit
Chris@69 13847 --config print configuration, then exit
Chris@69 13848 -q, --quiet, --silent
Chris@69 13849 do not print progress messages
Chris@69 13850 -d, --debug don't remove temporary files
Chris@69 13851 --recheck update $as_me by reconfiguring in the same conditions
Chris@69 13852 --file=FILE[:TEMPLATE]
Chris@69 13853 instantiate the configuration file FILE
Chris@69 13854 --header=FILE[:TEMPLATE]
Chris@69 13855 instantiate the configuration header FILE
Chris@69 13856
Chris@69 13857 Configuration files:
Chris@69 13858 $config_files
Chris@69 13859
Chris@69 13860 Configuration headers:
Chris@69 13861 $config_headers
Chris@69 13862
Chris@69 13863 Configuration commands:
Chris@69 13864 $config_commands
Chris@69 13865
Chris@69 13866 Report bugs to <opus@xiph.org>."
Chris@69 13867
Chris@69 13868 _ACEOF
Chris@69 13869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@69 13870 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Chris@69 13871 ac_cs_version="\\
Chris@69 13872 opusfile config.status 0.9
Chris@69 13873 configured by $0, generated by GNU Autoconf 2.69,
Chris@69 13874 with options \\"\$ac_cs_config\\"
Chris@69 13875
Chris@69 13876 Copyright (C) 2012 Free Software Foundation, Inc.
Chris@69 13877 This config.status script is free software; the Free Software Foundation
Chris@69 13878 gives unlimited permission to copy, distribute and modify it."
Chris@69 13879
Chris@69 13880 ac_pwd='$ac_pwd'
Chris@69 13881 srcdir='$srcdir'
Chris@69 13882 INSTALL='$INSTALL'
Chris@69 13883 MKDIR_P='$MKDIR_P'
Chris@69 13884 AWK='$AWK'
Chris@69 13885 test -n "\$AWK" || AWK=awk
Chris@69 13886 _ACEOF
Chris@69 13887
Chris@69 13888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@69 13889 # The default lists apply if the user does not specify any file.
Chris@69 13890 ac_need_defaults=:
Chris@69 13891 while test $# != 0
Chris@69 13892 do
Chris@69 13893 case $1 in
Chris@69 13894 --*=?*)
Chris@69 13895 ac_option=`expr "X$1" : 'X\([^=]*\)='`
Chris@69 13896 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Chris@69 13897 ac_shift=:
Chris@69 13898 ;;
Chris@69 13899 --*=)
Chris@69 13900 ac_option=`expr "X$1" : 'X\([^=]*\)='`
Chris@69 13901 ac_optarg=
Chris@69 13902 ac_shift=:
Chris@69 13903 ;;
Chris@69 13904 *)
Chris@69 13905 ac_option=$1
Chris@69 13906 ac_optarg=$2
Chris@69 13907 ac_shift=shift
Chris@69 13908 ;;
Chris@69 13909 esac
Chris@69 13910
Chris@69 13911 case $ac_option in
Chris@69 13912 # Handling of the options.
Chris@69 13913 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Chris@69 13914 ac_cs_recheck=: ;;
Chris@69 13915 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Chris@69 13916 $as_echo "$ac_cs_version"; exit ;;
Chris@69 13917 --config | --confi | --conf | --con | --co | --c )
Chris@69 13918 $as_echo "$ac_cs_config"; exit ;;
Chris@69 13919 --debug | --debu | --deb | --de | --d | -d )
Chris@69 13920 debug=: ;;
Chris@69 13921 --file | --fil | --fi | --f )
Chris@69 13922 $ac_shift
Chris@69 13923 case $ac_optarg in
Chris@69 13924 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@69 13925 '') as_fn_error $? "missing file argument" ;;
Chris@69 13926 esac
Chris@69 13927 as_fn_append CONFIG_FILES " '$ac_optarg'"
Chris@69 13928 ac_need_defaults=false;;
Chris@69 13929 --header | --heade | --head | --hea )
Chris@69 13930 $ac_shift
Chris@69 13931 case $ac_optarg in
Chris@69 13932 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@69 13933 esac
Chris@69 13934 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Chris@69 13935 ac_need_defaults=false;;
Chris@69 13936 --he | --h)
Chris@69 13937 # Conflict between --help and --header
Chris@69 13938 as_fn_error $? "ambiguous option: \`$1'
Chris@69 13939 Try \`$0 --help' for more information.";;
Chris@69 13940 --help | --hel | -h )
Chris@69 13941 $as_echo "$ac_cs_usage"; exit ;;
Chris@69 13942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@69 13943 | -silent | --silent | --silen | --sile | --sil | --si | --s)
Chris@69 13944 ac_cs_silent=: ;;
Chris@69 13945
Chris@69 13946 # This is an error.
Chris@69 13947 -*) as_fn_error $? "unrecognized option: \`$1'
Chris@69 13948 Try \`$0 --help' for more information." ;;
Chris@69 13949
Chris@69 13950 *) as_fn_append ac_config_targets " $1"
Chris@69 13951 ac_need_defaults=false ;;
Chris@69 13952
Chris@69 13953 esac
Chris@69 13954 shift
Chris@69 13955 done
Chris@69 13956
Chris@69 13957 ac_configure_extra_args=
Chris@69 13958
Chris@69 13959 if $ac_cs_silent; then
Chris@69 13960 exec 6>/dev/null
Chris@69 13961 ac_configure_extra_args="$ac_configure_extra_args --silent"
Chris@69 13962 fi
Chris@69 13963
Chris@69 13964 _ACEOF
Chris@69 13965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@69 13966 if \$ac_cs_recheck; then
Chris@69 13967 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Chris@69 13968 shift
Chris@69 13969 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
Chris@69 13970 CONFIG_SHELL='$SHELL'
Chris@69 13971 export CONFIG_SHELL
Chris@69 13972 exec "\$@"
Chris@69 13973 fi
Chris@69 13974
Chris@69 13975 _ACEOF
Chris@69 13976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@69 13977 exec 5>>config.log
Chris@69 13978 {
Chris@69 13979 echo
Chris@69 13980 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
Chris@69 13981 ## Running $as_me. ##
Chris@69 13982 _ASBOX
Chris@69 13983 $as_echo "$ac_log"
Chris@69 13984 } >&5
Chris@69 13985
Chris@69 13986 _ACEOF
Chris@69 13987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@69 13988 #
Chris@69 13989 # INIT-COMMANDS
Chris@69 13990 #
Chris@69 13991 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
Chris@69 13992
Chris@69 13993
Chris@69 13994 # The HP-UX ksh and POSIX shell print the target directory to stdout
Chris@69 13995 # if CDPATH is set.
Chris@69 13996 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@69 13997
Chris@69 13998 sed_quote_subst='$sed_quote_subst'
Chris@69 13999 double_quote_subst='$double_quote_subst'
Chris@69 14000 delay_variable_subst='$delay_variable_subst'
Chris@69 14001 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
Chris@69 14002 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
Chris@69 14003 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
Chris@69 14004 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
Chris@69 14005 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
Chris@69 14006 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
Chris@69 14007 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
Chris@69 14008 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
Chris@69 14009 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
Chris@69 14010 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
Chris@69 14011 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
Chris@69 14012 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
Chris@69 14013 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
Chris@69 14014 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
Chris@69 14015 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
Chris@69 14016 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
Chris@69 14017 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
Chris@69 14018 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
Chris@69 14019 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
Chris@69 14020 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
Chris@69 14021 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
Chris@69 14022 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
Chris@69 14023 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
Chris@69 14024 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
Chris@69 14025 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
Chris@69 14026 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
Chris@69 14027 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
Chris@69 14028 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
Chris@69 14029 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
Chris@69 14030 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
Chris@69 14031 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
Chris@69 14032 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
Chris@69 14033 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
Chris@69 14034 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 14035 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
Chris@69 14036 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
Chris@69 14037 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
Chris@69 14038 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
Chris@69 14039 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
Chris@69 14040 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
Chris@69 14041 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
Chris@69 14042 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
Chris@69 14043 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
Chris@69 14044 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@69 14045 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
Chris@69 14046 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
Chris@69 14047 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 14048 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 14049 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 14050 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
Chris@69 14051 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
Chris@69 14052 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
Chris@69 14053 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
Chris@69 14054 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
Chris@69 14055 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
Chris@69 14056 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
Chris@69 14057 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
Chris@69 14058 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
Chris@69 14059 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
Chris@69 14060 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
Chris@69 14061 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@69 14062 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
Chris@69 14063 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
Chris@69 14064 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
Chris@69 14065 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
Chris@69 14066 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
Chris@69 14067 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
Chris@69 14068 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
Chris@69 14069 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
Chris@69 14070 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
Chris@69 14071 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
Chris@69 14072 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
Chris@69 14073 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
Chris@69 14074 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
Chris@69 14075 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
Chris@69 14076 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
Chris@69 14077 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
Chris@69 14078 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
Chris@69 14079 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 14080 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 14081 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
Chris@69 14082 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
Chris@69 14083 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@69 14084 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@69 14085 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
Chris@69 14086 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 14087 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 14088 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 14089 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 14090 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 14091 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 14092 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
Chris@69 14093 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
Chris@69 14094 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
Chris@69 14095 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@69 14096 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
Chris@69 14097 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
Chris@69 14098 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
Chris@69 14099 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
Chris@69 14100 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
Chris@69 14101 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
Chris@69 14102 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
Chris@69 14103 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
Chris@69 14104 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
Chris@69 14105 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 14106 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
Chris@69 14107 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
Chris@69 14108 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 14109 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 14110 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@69 14111 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
Chris@69 14112 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
Chris@69 14113 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
Chris@69 14114 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
Chris@69 14115 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
Chris@69 14116 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
Chris@69 14117 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
Chris@69 14118 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
Chris@69 14119 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
Chris@69 14120 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
Chris@69 14121 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
Chris@69 14122 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 14123 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 14124 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 14125 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
Chris@69 14126 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
Chris@69 14127 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
Chris@69 14128 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
Chris@69 14129 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
Chris@69 14130 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
Chris@69 14131 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
Chris@69 14132 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
Chris@69 14133 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
Chris@69 14134 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
Chris@69 14135 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Chris@69 14136
Chris@69 14137 LTCC='$LTCC'
Chris@69 14138 LTCFLAGS='$LTCFLAGS'
Chris@69 14139 compiler='$compiler_DEFAULT'
Chris@69 14140
Chris@69 14141 # A function that is used when there is no print builtin or printf.
Chris@69 14142 func_fallback_echo ()
Chris@69 14143 {
Chris@69 14144 eval 'cat <<_LTECHO_EOF
Chris@69 14145 \$1
Chris@69 14146 _LTECHO_EOF'
Chris@69 14147 }
Chris@69 14148
Chris@69 14149 # Quote evaled strings.
Chris@69 14150 for var in SHELL \
Chris@69 14151 ECHO \
Chris@69 14152 PATH_SEPARATOR \
Chris@69 14153 SED \
Chris@69 14154 GREP \
Chris@69 14155 EGREP \
Chris@69 14156 FGREP \
Chris@69 14157 LD \
Chris@69 14158 NM \
Chris@69 14159 LN_S \
Chris@69 14160 lt_SP2NL \
Chris@69 14161 lt_NL2SP \
Chris@69 14162 reload_flag \
Chris@69 14163 OBJDUMP \
Chris@69 14164 deplibs_check_method \
Chris@69 14165 file_magic_cmd \
Chris@69 14166 file_magic_glob \
Chris@69 14167 want_nocaseglob \
Chris@69 14168 DLLTOOL \
Chris@69 14169 sharedlib_from_linklib_cmd \
Chris@69 14170 AR \
Chris@69 14171 AR_FLAGS \
Chris@69 14172 archiver_list_spec \
Chris@69 14173 STRIP \
Chris@69 14174 RANLIB \
Chris@69 14175 CC \
Chris@69 14176 CFLAGS \
Chris@69 14177 compiler \
Chris@69 14178 lt_cv_sys_global_symbol_pipe \
Chris@69 14179 lt_cv_sys_global_symbol_to_cdecl \
Chris@69 14180 lt_cv_sys_global_symbol_to_import \
Chris@69 14181 lt_cv_sys_global_symbol_to_c_name_address \
Chris@69 14182 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Chris@69 14183 lt_cv_nm_interface \
Chris@69 14184 nm_file_list_spec \
Chris@69 14185 lt_cv_truncate_bin \
Chris@69 14186 lt_prog_compiler_no_builtin_flag \
Chris@69 14187 lt_prog_compiler_pic \
Chris@69 14188 lt_prog_compiler_wl \
Chris@69 14189 lt_prog_compiler_static \
Chris@69 14190 lt_cv_prog_compiler_c_o \
Chris@69 14191 need_locks \
Chris@69 14192 MANIFEST_TOOL \
Chris@69 14193 DSYMUTIL \
Chris@69 14194 NMEDIT \
Chris@69 14195 LIPO \
Chris@69 14196 OTOOL \
Chris@69 14197 OTOOL64 \
Chris@69 14198 shrext_cmds \
Chris@69 14199 export_dynamic_flag_spec \
Chris@69 14200 whole_archive_flag_spec \
Chris@69 14201 compiler_needs_object \
Chris@69 14202 with_gnu_ld \
Chris@69 14203 allow_undefined_flag \
Chris@69 14204 no_undefined_flag \
Chris@69 14205 hardcode_libdir_flag_spec \
Chris@69 14206 hardcode_libdir_separator \
Chris@69 14207 exclude_expsyms \
Chris@69 14208 include_expsyms \
Chris@69 14209 file_list_spec \
Chris@69 14210 variables_saved_for_relink \
Chris@69 14211 libname_spec \
Chris@69 14212 library_names_spec \
Chris@69 14213 soname_spec \
Chris@69 14214 install_override_mode \
Chris@69 14215 finish_eval \
Chris@69 14216 old_striplib \
Chris@69 14217 striplib; do
Chris@69 14218 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Chris@69 14219 *[\\\\\\\`\\"\\\$]*)
Chris@69 14220 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
Chris@69 14221 ;;
Chris@69 14222 *)
Chris@69 14223 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
Chris@69 14224 ;;
Chris@69 14225 esac
Chris@69 14226 done
Chris@69 14227
Chris@69 14228 # Double-quote double-evaled strings.
Chris@69 14229 for var in reload_cmds \
Chris@69 14230 old_postinstall_cmds \
Chris@69 14231 old_postuninstall_cmds \
Chris@69 14232 old_archive_cmds \
Chris@69 14233 extract_expsyms_cmds \
Chris@69 14234 old_archive_from_new_cmds \
Chris@69 14235 old_archive_from_expsyms_cmds \
Chris@69 14236 archive_cmds \
Chris@69 14237 archive_expsym_cmds \
Chris@69 14238 module_cmds \
Chris@69 14239 module_expsym_cmds \
Chris@69 14240 export_symbols_cmds \
Chris@69 14241 prelink_cmds \
Chris@69 14242 postlink_cmds \
Chris@69 14243 postinstall_cmds \
Chris@69 14244 postuninstall_cmds \
Chris@69 14245 finish_cmds \
Chris@69 14246 sys_lib_search_path_spec \
Chris@69 14247 configure_time_dlsearch_path \
Chris@69 14248 configure_time_lt_sys_library_path; do
Chris@69 14249 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Chris@69 14250 *[\\\\\\\`\\"\\\$]*)
Chris@69 14251 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
Chris@69 14252 ;;
Chris@69 14253 *)
Chris@69 14254 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
Chris@69 14255 ;;
Chris@69 14256 esac
Chris@69 14257 done
Chris@69 14258
Chris@69 14259 ac_aux_dir='$ac_aux_dir'
Chris@69 14260
Chris@69 14261 # See if we are running on zsh, and set the options that allow our
Chris@69 14262 # commands through without removal of \ escapes INIT.
Chris@69 14263 if test -n "\${ZSH_VERSION+set}"; then
Chris@69 14264 setopt NO_GLOB_SUBST
Chris@69 14265 fi
Chris@69 14266
Chris@69 14267
Chris@69 14268 PACKAGE='$PACKAGE'
Chris@69 14269 VERSION='$VERSION'
Chris@69 14270 RM='$RM'
Chris@69 14271 ofile='$ofile'
Chris@69 14272
Chris@69 14273
Chris@69 14274
Chris@69 14275
Chris@69 14276 _ACEOF
Chris@69 14277
Chris@69 14278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@69 14279
Chris@69 14280 # Handling of arguments.
Chris@69 14281 for ac_config_target in $ac_config_targets
Chris@69 14282 do
Chris@69 14283 case $ac_config_target in
Chris@69 14284 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Chris@69 14285 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Chris@69 14286 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Chris@69 14287 "opusfile.pc") CONFIG_FILES="$CONFIG_FILES opusfile.pc" ;;
Chris@69 14288 "opusurl.pc") CONFIG_FILES="$CONFIG_FILES opusurl.pc" ;;
Chris@69 14289 "opusfile-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES opusfile-uninstalled.pc" ;;
Chris@69 14290 "opusurl-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES opusurl-uninstalled.pc" ;;
Chris@69 14291 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
Chris@69 14292 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
Chris@69 14293
Chris@69 14294 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Chris@69 14295 esac
Chris@69 14296 done
Chris@69 14297
Chris@69 14298
Chris@69 14299 # If the user did not use the arguments to specify the items to instantiate,
Chris@69 14300 # then the envvar interface is used. Set only those that are not.
Chris@69 14301 # We use the long form for the default assignment because of an extremely
Chris@69 14302 # bizarre bug on SunOS 4.1.3.
Chris@69 14303 if $ac_need_defaults; then
Chris@69 14304 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Chris@69 14305 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Chris@69 14306 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
Chris@69 14307 fi
Chris@69 14308
Chris@69 14309 # Have a temporary directory for convenience. Make it in the build tree
Chris@69 14310 # simply because there is no reason against having it here, and in addition,
Chris@69 14311 # creating and moving files from /tmp can sometimes cause problems.
Chris@69 14312 # Hook for its removal unless debugging.
Chris@69 14313 # Note that there is a small window in which the directory will not be cleaned:
Chris@69 14314 # after its creation but before its name has been assigned to `$tmp'.
Chris@69 14315 $debug ||
Chris@69 14316 {
Chris@69 14317 tmp= ac_tmp=
Chris@69 14318 trap 'exit_status=$?
Chris@69 14319 : "${ac_tmp:=$tmp}"
Chris@69 14320 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Chris@69 14321 ' 0
Chris@69 14322 trap 'as_fn_exit 1' 1 2 13 15
Chris@69 14323 }
Chris@69 14324 # Create a (secure) tmp directory for tmp files.
Chris@69 14325
Chris@69 14326 {
Chris@69 14327 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Chris@69 14328 test -d "$tmp"
Chris@69 14329 } ||
Chris@69 14330 {
Chris@69 14331 tmp=./conf$$-$RANDOM
Chris@69 14332 (umask 077 && mkdir "$tmp")
Chris@69 14333 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Chris@69 14334 ac_tmp=$tmp
Chris@69 14335
Chris@69 14336 # Set up the scripts for CONFIG_FILES section.
Chris@69 14337 # No need to generate them if there are no CONFIG_FILES.
Chris@69 14338 # This happens for instance with `./config.status config.h'.
Chris@69 14339 if test -n "$CONFIG_FILES"; then
Chris@69 14340
Chris@69 14341
Chris@69 14342 ac_cr=`echo X | tr X '\015'`
Chris@69 14343 # On cygwin, bash can eat \r inside `` if the user requested igncr.
Chris@69 14344 # But we know of no other shell where ac_cr would be empty at this
Chris@69 14345 # point, so we can use a bashism as a fallback.
Chris@69 14346 if test "x$ac_cr" = x; then
Chris@69 14347 eval ac_cr=\$\'\\r\'
Chris@69 14348 fi
Chris@69 14349 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
Chris@69 14350 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Chris@69 14351 ac_cs_awk_cr='\\r'
Chris@69 14352 else
Chris@69 14353 ac_cs_awk_cr=$ac_cr
Chris@69 14354 fi
Chris@69 14355
Chris@69 14356 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Chris@69 14357 _ACEOF
Chris@69 14358
Chris@69 14359
Chris@69 14360 {
Chris@69 14361 echo "cat >conf$$subs.awk <<_ACEOF" &&
Chris@69 14362 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
Chris@69 14363 echo "_ACEOF"
Chris@69 14364 } >conf$$subs.sh ||
Chris@69 14365 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@69 14366 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Chris@69 14367 ac_delim='%!_!# '
Chris@69 14368 for ac_last_try in false false false false false :; do
Chris@69 14369 . ./conf$$subs.sh ||
Chris@69 14370 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@69 14371
Chris@69 14372 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
Chris@69 14373 if test $ac_delim_n = $ac_delim_num; then
Chris@69 14374 break
Chris@69 14375 elif $ac_last_try; then
Chris@69 14376 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@69 14377 else
Chris@69 14378 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Chris@69 14379 fi
Chris@69 14380 done
Chris@69 14381 rm -f conf$$subs.sh
Chris@69 14382
Chris@69 14383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@69 14384 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Chris@69 14385 _ACEOF
Chris@69 14386 sed -n '
Chris@69 14387 h
Chris@69 14388 s/^/S["/; s/!.*/"]=/
Chris@69 14389 p
Chris@69 14390 g
Chris@69 14391 s/^[^!]*!//
Chris@69 14392 :repl
Chris@69 14393 t repl
Chris@69 14394 s/'"$ac_delim"'$//
Chris@69 14395 t delim
Chris@69 14396 :nl
Chris@69 14397 h
Chris@69 14398 s/\(.\{148\}\)..*/\1/
Chris@69 14399 t more1
Chris@69 14400 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
Chris@69 14401 p
Chris@69 14402 n
Chris@69 14403 b repl
Chris@69 14404 :more1
Chris@69 14405 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
Chris@69 14406 p
Chris@69 14407 g
Chris@69 14408 s/.\{148\}//
Chris@69 14409 t nl
Chris@69 14410 :delim
Chris@69 14411 h
Chris@69 14412 s/\(.\{148\}\)..*/\1/
Chris@69 14413 t more2
Chris@69 14414 s/["\\]/\\&/g; s/^/"/; s/$/"/
Chris@69 14415 p
Chris@69 14416 b
Chris@69 14417 :more2
Chris@69 14418 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
Chris@69 14419 p
Chris@69 14420 g
Chris@69 14421 s/.\{148\}//
Chris@69 14422 t delim
Chris@69 14423 ' <conf$$subs.awk | sed '
Chris@69 14424 /^[^""]/{
Chris@69 14425 N
Chris@69 14426 s/\n//
Chris@69 14427 }
Chris@69 14428 ' >>$CONFIG_STATUS || ac_write_fail=1
Chris@69 14429 rm -f conf$$subs.awk
Chris@69 14430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@69 14431 _ACAWK
Chris@69 14432 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Chris@69 14433 for (key in S) S_is_set[key] = 1
Chris@69 14434 FS = ""
Chris@69 14435
Chris@69 14436 }
Chris@69 14437 {
Chris@69 14438 line = $ 0
Chris@69 14439 nfields = split(line, field, "@")
Chris@69 14440 substed = 0
Chris@69 14441 len = length(field[1])
Chris@69 14442 for (i = 2; i < nfields; i++) {
Chris@69 14443 key = field[i]
Chris@69 14444 keylen = length(key)
Chris@69 14445 if (S_is_set[key]) {
Chris@69 14446 value = S[key]
Chris@69 14447 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
Chris@69 14448 len += length(value) + length(field[++i])
Chris@69 14449 substed = 1
Chris@69 14450 } else
Chris@69 14451 len += 1 + keylen
Chris@69 14452 }
Chris@69 14453
Chris@69 14454 print line
Chris@69 14455 }
Chris@69 14456
Chris@69 14457 _ACAWK
Chris@69 14458 _ACEOF
Chris@69 14459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@69 14460 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
Chris@69 14461 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
Chris@69 14462 else
Chris@69 14463 cat
Chris@69 14464 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Chris@69 14465 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Chris@69 14466 _ACEOF
Chris@69 14467
Chris@69 14468 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
Chris@69 14469 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Chris@69 14470 # trailing colons and then remove the whole line if VPATH becomes empty
Chris@69 14471 # (actually we leave an empty line to preserve line numbers).
Chris@69 14472 if test "x$srcdir" = x.; then
Chris@69 14473 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
Chris@69 14474 h
Chris@69 14475 s///
Chris@69 14476 s/^/:/
Chris@69 14477 s/[ ]*$/:/
Chris@69 14478 s/:\$(srcdir):/:/g
Chris@69 14479 s/:\${srcdir}:/:/g
Chris@69 14480 s/:@srcdir@:/:/g
Chris@69 14481 s/^:*//
Chris@69 14482 s/:*$//
Chris@69 14483 x
Chris@69 14484 s/\(=[ ]*\).*/\1/
Chris@69 14485 G
Chris@69 14486 s/\n//
Chris@69 14487 s/^[^=]*=[ ]*$//
Chris@69 14488 }'
Chris@69 14489 fi
Chris@69 14490
Chris@69 14491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@69 14492 fi # test -n "$CONFIG_FILES"
Chris@69 14493
Chris@69 14494 # Set up the scripts for CONFIG_HEADERS section.
Chris@69 14495 # No need to generate them if there are no CONFIG_HEADERS.
Chris@69 14496 # This happens for instance with `./config.status Makefile'.
Chris@69 14497 if test -n "$CONFIG_HEADERS"; then
Chris@69 14498 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Chris@69 14499 BEGIN {
Chris@69 14500 _ACEOF
Chris@69 14501
Chris@69 14502 # Transform confdefs.h into an awk script `defines.awk', embedded as
Chris@69 14503 # here-document in config.status, that substitutes the proper values into
Chris@69 14504 # config.h.in to produce config.h.
Chris@69 14505
Chris@69 14506 # Create a delimiter string that does not exist in confdefs.h, to ease
Chris@69 14507 # handling of long lines.
Chris@69 14508 ac_delim='%!_!# '
Chris@69 14509 for ac_last_try in false false :; do
Chris@69 14510 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
Chris@69 14511 if test -z "$ac_tt"; then
Chris@69 14512 break
Chris@69 14513 elif $ac_last_try; then
Chris@69 14514 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Chris@69 14515 else
Chris@69 14516 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Chris@69 14517 fi
Chris@69 14518 done
Chris@69 14519
Chris@69 14520 # For the awk script, D is an array of macro values keyed by name,
Chris@69 14521 # likewise P contains macro parameters if any. Preserve backslash
Chris@69 14522 # newline sequences.
Chris@69 14523
Chris@69 14524 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
Chris@69 14525 sed -n '
Chris@69 14526 s/.\{148\}/&'"$ac_delim"'/g
Chris@69 14527 t rset
Chris@69 14528 :rset
Chris@69 14529 s/^[ ]*#[ ]*define[ ][ ]*/ /
Chris@69 14530 t def
Chris@69 14531 d
Chris@69 14532 :def
Chris@69 14533 s/\\$//
Chris@69 14534 t bsnl
Chris@69 14535 s/["\\]/\\&/g
Chris@69 14536 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
Chris@69 14537 D["\1"]=" \3"/p
Chris@69 14538 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
Chris@69 14539 d
Chris@69 14540 :bsnl
Chris@69 14541 s/["\\]/\\&/g
Chris@69 14542 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
Chris@69 14543 D["\1"]=" \3\\\\\\n"\\/p
Chris@69 14544 t cont
Chris@69 14545 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
Chris@69 14546 t cont
Chris@69 14547 d
Chris@69 14548 :cont
Chris@69 14549 n
Chris@69 14550 s/.\{148\}/&'"$ac_delim"'/g
Chris@69 14551 t clear
Chris@69 14552 :clear
Chris@69 14553 s/\\$//
Chris@69 14554 t bsnlc
Chris@69 14555 s/["\\]/\\&/g; s/^/"/; s/$/"/p
Chris@69 14556 d
Chris@69 14557 :bsnlc
Chris@69 14558 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
Chris@69 14559 b cont
Chris@69 14560 ' <confdefs.h | sed '
Chris@69 14561 s/'"$ac_delim"'/"\\\
Chris@69 14562 "/g' >>$CONFIG_STATUS || ac_write_fail=1
Chris@69 14563
Chris@69 14564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@69 14565 for (key in D) D_is_set[key] = 1
Chris@69 14566 FS = ""
Chris@69 14567 }
Chris@69 14568 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
Chris@69 14569 line = \$ 0
Chris@69 14570 split(line, arg, " ")
Chris@69 14571 if (arg[1] == "#") {
Chris@69 14572 defundef = arg[2]
Chris@69 14573 mac1 = arg[3]
Chris@69 14574 } else {
Chris@69 14575 defundef = substr(arg[1], 2)
Chris@69 14576 mac1 = arg[2]
Chris@69 14577 }
Chris@69 14578 split(mac1, mac2, "(") #)
Chris@69 14579 macro = mac2[1]
Chris@69 14580 prefix = substr(line, 1, index(line, defundef) - 1)
Chris@69 14581 if (D_is_set[macro]) {
Chris@69 14582 # Preserve the white space surrounding the "#".
Chris@69 14583 print prefix "define", macro P[macro] D[macro]
Chris@69 14584 next
Chris@69 14585 } else {
Chris@69 14586 # Replace #undef with comments. This is necessary, for example,
Chris@69 14587 # in the case of _POSIX_SOURCE, which is predefined and required
Chris@69 14588 # on some systems where configure will not decide to define it.
Chris@69 14589 if (defundef == "undef") {
Chris@69 14590 print "/*", prefix defundef, macro, "*/"
Chris@69 14591 next
Chris@69 14592 }
Chris@69 14593 }
Chris@69 14594 }
Chris@69 14595 { print }
Chris@69 14596 _ACAWK
Chris@69 14597 _ACEOF
Chris@69 14598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@69 14599 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Chris@69 14600 fi # test -n "$CONFIG_HEADERS"
Chris@69 14601
Chris@69 14602
Chris@69 14603 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Chris@69 14604 shift
Chris@69 14605 for ac_tag
Chris@69 14606 do
Chris@69 14607 case $ac_tag in
Chris@69 14608 :[FHLC]) ac_mode=$ac_tag; continue;;
Chris@69 14609 esac
Chris@69 14610 case $ac_mode$ac_tag in
Chris@69 14611 :[FHL]*:*);;
Chris@69 14612 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Chris@69 14613 :[FH]-) ac_tag=-:-;;
Chris@69 14614 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
Chris@69 14615 esac
Chris@69 14616 ac_save_IFS=$IFS
Chris@69 14617 IFS=:
Chris@69 14618 set x $ac_tag
Chris@69 14619 IFS=$ac_save_IFS
Chris@69 14620 shift
Chris@69 14621 ac_file=$1
Chris@69 14622 shift
Chris@69 14623
Chris@69 14624 case $ac_mode in
Chris@69 14625 :L) ac_source=$1;;
Chris@69 14626 :[FH])
Chris@69 14627 ac_file_inputs=
Chris@69 14628 for ac_f
Chris@69 14629 do
Chris@69 14630 case $ac_f in
Chris@69 14631 -) ac_f="$ac_tmp/stdin";;
Chris@69 14632 *) # Look for the file first in the build tree, then in the source tree
Chris@69 14633 # (if the path is not absolute). The absolute path cannot be DOS-style,
Chris@69 14634 # because $ac_f cannot contain `:'.
Chris@69 14635 test -f "$ac_f" ||
Chris@69 14636 case $ac_f in
Chris@69 14637 [\\/$]*) false;;
Chris@69 14638 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
Chris@69 14639 esac ||
Chris@69 14640 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Chris@69 14641 esac
Chris@69 14642 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Chris@69 14643 as_fn_append ac_file_inputs " '$ac_f'"
Chris@69 14644 done
Chris@69 14645
Chris@69 14646 # Let's still pretend it is `configure' which instantiates (i.e., don't
Chris@69 14647 # use $as_me), people would be surprised to read:
Chris@69 14648 # /* config.h. Generated by config.status. */
Chris@69 14649 configure_input='Generated from '`
Chris@69 14650 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
Chris@69 14651 `' by configure.'
Chris@69 14652 if test x"$ac_file" != x-; then
Chris@69 14653 configure_input="$ac_file. $configure_input"
Chris@69 14654 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Chris@69 14655 $as_echo "$as_me: creating $ac_file" >&6;}
Chris@69 14656 fi
Chris@69 14657 # Neutralize special characters interpreted by sed in replacement strings.
Chris@69 14658 case $configure_input in #(
Chris@69 14659 *\&* | *\|* | *\\* )
Chris@69 14660 ac_sed_conf_input=`$as_echo "$configure_input" |
Chris@69 14661 sed 's/[\\\\&|]/\\\\&/g'`;; #(
Chris@69 14662 *) ac_sed_conf_input=$configure_input;;
Chris@69 14663 esac
Chris@69 14664
Chris@69 14665 case $ac_tag in
Chris@69 14666 *:-:* | *:-) cat >"$ac_tmp/stdin" \
Chris@69 14667 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Chris@69 14668 esac
Chris@69 14669 ;;
Chris@69 14670 esac
Chris@69 14671
Chris@69 14672 ac_dir=`$as_dirname -- "$ac_file" ||
Chris@69 14673 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@69 14674 X"$ac_file" : 'X\(//\)[^/]' \| \
Chris@69 14675 X"$ac_file" : 'X\(//\)$' \| \
Chris@69 14676 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Chris@69 14677 $as_echo X"$ac_file" |
Chris@69 14678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@69 14679 s//\1/
Chris@69 14680 q
Chris@69 14681 }
Chris@69 14682 /^X\(\/\/\)[^/].*/{
Chris@69 14683 s//\1/
Chris@69 14684 q
Chris@69 14685 }
Chris@69 14686 /^X\(\/\/\)$/{
Chris@69 14687 s//\1/
Chris@69 14688 q
Chris@69 14689 }
Chris@69 14690 /^X\(\/\).*/{
Chris@69 14691 s//\1/
Chris@69 14692 q
Chris@69 14693 }
Chris@69 14694 s/.*/./; q'`
Chris@69 14695 as_dir="$ac_dir"; as_fn_mkdir_p
Chris@69 14696 ac_builddir=.
Chris@69 14697
Chris@69 14698 case "$ac_dir" in
Chris@69 14699 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@69 14700 *)
Chris@69 14701 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Chris@69 14702 # A ".." for each directory in $ac_dir_suffix.
Chris@69 14703 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Chris@69 14704 case $ac_top_builddir_sub in
Chris@69 14705 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@69 14706 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@69 14707 esac ;;
Chris@69 14708 esac
Chris@69 14709 ac_abs_top_builddir=$ac_pwd
Chris@69 14710 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@69 14711 # for backward compatibility:
Chris@69 14712 ac_top_builddir=$ac_top_build_prefix
Chris@69 14713
Chris@69 14714 case $srcdir in
Chris@69 14715 .) # We are building in place.
Chris@69 14716 ac_srcdir=.
Chris@69 14717 ac_top_srcdir=$ac_top_builddir_sub
Chris@69 14718 ac_abs_top_srcdir=$ac_pwd ;;
Chris@69 14719 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@69 14720 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@69 14721 ac_top_srcdir=$srcdir
Chris@69 14722 ac_abs_top_srcdir=$srcdir ;;
Chris@69 14723 *) # Relative name.
Chris@69 14724 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@69 14725 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@69 14726 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@69 14727 esac
Chris@69 14728 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@69 14729
Chris@69 14730
Chris@69 14731 case $ac_mode in
Chris@69 14732 :F)
Chris@69 14733 #
Chris@69 14734 # CONFIG_FILE
Chris@69 14735 #
Chris@69 14736
Chris@69 14737 case $INSTALL in
Chris@69 14738 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Chris@69 14739 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Chris@69 14740 esac
Chris@69 14741 ac_MKDIR_P=$MKDIR_P
Chris@69 14742 case $MKDIR_P in
Chris@69 14743 [\\/$]* | ?:[\\/]* ) ;;
Chris@69 14744 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
Chris@69 14745 esac
Chris@69 14746 _ACEOF
Chris@69 14747
Chris@69 14748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@69 14749 # If the template does not know about datarootdir, expand it.
Chris@69 14750 # FIXME: This hack should be removed a few years after 2.60.
Chris@69 14751 ac_datarootdir_hack=; ac_datarootdir_seen=
Chris@69 14752 ac_sed_dataroot='
Chris@69 14753 /datarootdir/ {
Chris@69 14754 p
Chris@69 14755 q
Chris@69 14756 }
Chris@69 14757 /@datadir@/p
Chris@69 14758 /@docdir@/p
Chris@69 14759 /@infodir@/p
Chris@69 14760 /@localedir@/p
Chris@69 14761 /@mandir@/p'
Chris@69 14762 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Chris@69 14763 *datarootdir*) ac_datarootdir_seen=yes;;
Chris@69 14764 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Chris@69 14765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Chris@69 14766 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Chris@69 14767 _ACEOF
Chris@69 14768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@69 14769 ac_datarootdir_hack='
Chris@69 14770 s&@datadir@&$datadir&g
Chris@69 14771 s&@docdir@&$docdir&g
Chris@69 14772 s&@infodir@&$infodir&g
Chris@69 14773 s&@localedir@&$localedir&g
Chris@69 14774 s&@mandir@&$mandir&g
Chris@69 14775 s&\\\${datarootdir}&$datarootdir&g' ;;
Chris@69 14776 esac
Chris@69 14777 _ACEOF
Chris@69 14778
Chris@69 14779 # Neutralize VPATH when `$srcdir' = `.'.
Chris@69 14780 # Shell code in configure.ac might set extrasub.
Chris@69 14781 # FIXME: do we really want to maintain this feature?
Chris@69 14782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@69 14783 ac_sed_extra="$ac_vpsub
Chris@69 14784 $extrasub
Chris@69 14785 _ACEOF
Chris@69 14786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@69 14787 :t
Chris@69 14788 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Chris@69 14789 s|@configure_input@|$ac_sed_conf_input|;t t
Chris@69 14790 s&@top_builddir@&$ac_top_builddir_sub&;t t
Chris@69 14791 s&@top_build_prefix@&$ac_top_build_prefix&;t t
Chris@69 14792 s&@srcdir@&$ac_srcdir&;t t
Chris@69 14793 s&@abs_srcdir@&$ac_abs_srcdir&;t t
Chris@69 14794 s&@top_srcdir@&$ac_top_srcdir&;t t
Chris@69 14795 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
Chris@69 14796 s&@builddir@&$ac_builddir&;t t
Chris@69 14797 s&@abs_builddir@&$ac_abs_builddir&;t t
Chris@69 14798 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Chris@69 14799 s&@INSTALL@&$ac_INSTALL&;t t
Chris@69 14800 s&@MKDIR_P@&$ac_MKDIR_P&;t t
Chris@69 14801 $ac_datarootdir_hack
Chris@69 14802 "
Chris@69 14803 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
Chris@69 14804 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@69 14805
Chris@69 14806 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Chris@69 14807 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
Chris@69 14808 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
Chris@69 14809 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Chris@69 14810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Chris@69 14811 which seems to be undefined. Please make sure it is defined" >&5
Chris@69 14812 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Chris@69 14813 which seems to be undefined. Please make sure it is defined" >&2;}
Chris@69 14814
Chris@69 14815 rm -f "$ac_tmp/stdin"
Chris@69 14816 case $ac_file in
Chris@69 14817 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
Chris@69 14818 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Chris@69 14819 esac \
Chris@69 14820 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@69 14821 ;;
Chris@69 14822 :H)
Chris@69 14823 #
Chris@69 14824 # CONFIG_HEADER
Chris@69 14825 #
Chris@69 14826 if test x"$ac_file" != x-; then
Chris@69 14827 {
Chris@69 14828 $as_echo "/* $configure_input */" \
Chris@69 14829 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
Chris@69 14830 } >"$ac_tmp/config.h" \
Chris@69 14831 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@69 14832 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Chris@69 14833 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Chris@69 14834 $as_echo "$as_me: $ac_file is unchanged" >&6;}
Chris@69 14835 else
Chris@69 14836 rm -f "$ac_file"
Chris@69 14837 mv "$ac_tmp/config.h" "$ac_file" \
Chris@69 14838 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@69 14839 fi
Chris@69 14840 else
Chris@69 14841 $as_echo "/* $configure_input */" \
Chris@69 14842 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
Chris@69 14843 || as_fn_error $? "could not create -" "$LINENO" 5
Chris@69 14844 fi
Chris@69 14845 # Compute "$ac_file"'s index in $config_headers.
Chris@69 14846 _am_arg="$ac_file"
Chris@69 14847 _am_stamp_count=1
Chris@69 14848 for _am_header in $config_headers :; do
Chris@69 14849 case $_am_header in
Chris@69 14850 $_am_arg | $_am_arg:* )
Chris@69 14851 break ;;
Chris@69 14852 * )
Chris@69 14853 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Chris@69 14854 esac
Chris@69 14855 done
Chris@69 14856 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
Chris@69 14857 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@69 14858 X"$_am_arg" : 'X\(//\)[^/]' \| \
Chris@69 14859 X"$_am_arg" : 'X\(//\)$' \| \
Chris@69 14860 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
Chris@69 14861 $as_echo X"$_am_arg" |
Chris@69 14862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@69 14863 s//\1/
Chris@69 14864 q
Chris@69 14865 }
Chris@69 14866 /^X\(\/\/\)[^/].*/{
Chris@69 14867 s//\1/
Chris@69 14868 q
Chris@69 14869 }
Chris@69 14870 /^X\(\/\/\)$/{
Chris@69 14871 s//\1/
Chris@69 14872 q
Chris@69 14873 }
Chris@69 14874 /^X\(\/\).*/{
Chris@69 14875 s//\1/
Chris@69 14876 q
Chris@69 14877 }
Chris@69 14878 s/.*/./; q'`/stamp-h$_am_stamp_count
Chris@69 14879 ;;
Chris@69 14880
Chris@69 14881 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Chris@69 14882 $as_echo "$as_me: executing $ac_file commands" >&6;}
Chris@69 14883 ;;
Chris@69 14884 esac
Chris@69 14885
Chris@69 14886
Chris@69 14887 case $ac_file$ac_mode in
Chris@69 14888 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
Chris@69 14889 # Older Autoconf quotes --file arguments for eval, but not when files
Chris@69 14890 # are listed without --file. Let's play safe and only enable the eval
Chris@69 14891 # if we detect the quoting.
Chris@69 14892 case $CONFIG_FILES in
Chris@69 14893 *\'*) eval set x "$CONFIG_FILES" ;;
Chris@69 14894 *) set x $CONFIG_FILES ;;
Chris@69 14895 esac
Chris@69 14896 shift
Chris@69 14897 for mf
Chris@69 14898 do
Chris@69 14899 # Strip MF so we end up with the name of the file.
Chris@69 14900 mf=`echo "$mf" | sed -e 's/:.*$//'`
Chris@69 14901 # Check whether this is an Automake generated Makefile or not.
Chris@69 14902 # We used to match only the files named 'Makefile.in', but
Chris@69 14903 # some people rename them; so instead we look at the file content.
Chris@69 14904 # Grep'ing the first line is not enough: some people post-process
Chris@69 14905 # each Makefile.in and add a new line on top of each file to say so.
Chris@69 14906 # Grep'ing the whole file is not good either: AIX grep has a line
Chris@69 14907 # limit of 2048, but all sed's we know have understand at least 4000.
Chris@69 14908 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
Chris@69 14909 dirpart=`$as_dirname -- "$mf" ||
Chris@69 14910 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@69 14911 X"$mf" : 'X\(//\)[^/]' \| \
Chris@69 14912 X"$mf" : 'X\(//\)$' \| \
Chris@69 14913 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Chris@69 14914 $as_echo X"$mf" |
Chris@69 14915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@69 14916 s//\1/
Chris@69 14917 q
Chris@69 14918 }
Chris@69 14919 /^X\(\/\/\)[^/].*/{
Chris@69 14920 s//\1/
Chris@69 14921 q
Chris@69 14922 }
Chris@69 14923 /^X\(\/\/\)$/{
Chris@69 14924 s//\1/
Chris@69 14925 q
Chris@69 14926 }
Chris@69 14927 /^X\(\/\).*/{
Chris@69 14928 s//\1/
Chris@69 14929 q
Chris@69 14930 }
Chris@69 14931 s/.*/./; q'`
Chris@69 14932 else
Chris@69 14933 continue
Chris@69 14934 fi
Chris@69 14935 # Extract the definition of DEPDIR, am__include, and am__quote
Chris@69 14936 # from the Makefile without running 'make'.
Chris@69 14937 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Chris@69 14938 test -z "$DEPDIR" && continue
Chris@69 14939 am__include=`sed -n 's/^am__include = //p' < "$mf"`
Chris@69 14940 test -z "$am__include" && continue
Chris@69 14941 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Chris@69 14942 # Find all dependency output files, they are included files with
Chris@69 14943 # $(DEPDIR) in their names. We invoke sed twice because it is the
Chris@69 14944 # simplest approach to changing $(DEPDIR) to its actual value in the
Chris@69 14945 # expansion.
Chris@69 14946 for file in `sed -n "
Chris@69 14947 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Chris@69 14948 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
Chris@69 14949 # Make sure the directory exists.
Chris@69 14950 test -f "$dirpart/$file" && continue
Chris@69 14951 fdir=`$as_dirname -- "$file" ||
Chris@69 14952 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@69 14953 X"$file" : 'X\(//\)[^/]' \| \
Chris@69 14954 X"$file" : 'X\(//\)$' \| \
Chris@69 14955 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Chris@69 14956 $as_echo X"$file" |
Chris@69 14957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@69 14958 s//\1/
Chris@69 14959 q
Chris@69 14960 }
Chris@69 14961 /^X\(\/\/\)[^/].*/{
Chris@69 14962 s//\1/
Chris@69 14963 q
Chris@69 14964 }
Chris@69 14965 /^X\(\/\/\)$/{
Chris@69 14966 s//\1/
Chris@69 14967 q
Chris@69 14968 }
Chris@69 14969 /^X\(\/\).*/{
Chris@69 14970 s//\1/
Chris@69 14971 q
Chris@69 14972 }
Chris@69 14973 s/.*/./; q'`
Chris@69 14974 as_dir=$dirpart/$fdir; as_fn_mkdir_p
Chris@69 14975 # echo "creating $dirpart/$file"
Chris@69 14976 echo '# dummy' > "$dirpart/$file"
Chris@69 14977 done
Chris@69 14978 done
Chris@69 14979 }
Chris@69 14980 ;;
Chris@69 14981 "libtool":C)
Chris@69 14982
Chris@69 14983 # See if we are running on zsh, and set the options that allow our
Chris@69 14984 # commands through without removal of \ escapes.
Chris@69 14985 if test -n "${ZSH_VERSION+set}"; then
Chris@69 14986 setopt NO_GLOB_SUBST
Chris@69 14987 fi
Chris@69 14988
Chris@69 14989 cfgfile=${ofile}T
Chris@69 14990 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
Chris@69 14991 $RM "$cfgfile"
Chris@69 14992
Chris@69 14993 cat <<_LT_EOF >> "$cfgfile"
Chris@69 14994 #! $SHELL
Chris@69 14995 # Generated automatically by $as_me ($PACKAGE) $VERSION
Chris@69 14996 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
Chris@69 14997 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
Chris@69 14998
Chris@69 14999 # Provide generalized library-building support services.
Chris@69 15000 # Written by Gordon Matzigkeit, 1996
Chris@69 15001
Chris@69 15002 # Copyright (C) 2014 Free Software Foundation, Inc.
Chris@69 15003 # This is free software; see the source for copying conditions. There is NO
Chris@69 15004 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Chris@69 15005
Chris@69 15006 # GNU Libtool is free software; you can redistribute it and/or modify
Chris@69 15007 # it under the terms of the GNU General Public License as published by
Chris@69 15008 # the Free Software Foundation; either version 2 of of the License, or
Chris@69 15009 # (at your option) any later version.
Chris@69 15010 #
Chris@69 15011 # As a special exception to the GNU General Public License, if you
Chris@69 15012 # distribute this file as part of a program or library that is built
Chris@69 15013 # using GNU Libtool, you may include this file under the same
Chris@69 15014 # distribution terms that you use for the rest of that program.
Chris@69 15015 #
Chris@69 15016 # GNU Libtool is distributed in the hope that it will be useful, but
Chris@69 15017 # WITHOUT ANY WARRANTY; without even the implied warranty of
Chris@69 15018 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Chris@69 15019 # GNU General Public License for more details.
Chris@69 15020 #
Chris@69 15021 # You should have received a copy of the GNU General Public License
Chris@69 15022 # along with this program. If not, see <http://www.gnu.org/licenses/>.
Chris@69 15023
Chris@69 15024
Chris@69 15025 # The names of the tagged configurations supported by this script.
Chris@69 15026 available_tags=''
Chris@69 15027
Chris@69 15028 # Configured defaults for sys_lib_dlsearch_path munging.
Chris@69 15029 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
Chris@69 15030
Chris@69 15031 # ### BEGIN LIBTOOL CONFIG
Chris@69 15032
Chris@69 15033 # Which release of libtool.m4 was used?
Chris@69 15034 macro_version=$macro_version
Chris@69 15035 macro_revision=$macro_revision
Chris@69 15036
Chris@69 15037 # Whether or not to build shared libraries.
Chris@69 15038 build_libtool_libs=$enable_shared
Chris@69 15039
Chris@69 15040 # Whether or not to build static libraries.
Chris@69 15041 build_old_libs=$enable_static
Chris@69 15042
Chris@69 15043 # What type of objects to build.
Chris@69 15044 pic_mode=$pic_mode
Chris@69 15045
Chris@69 15046 # Whether or not to optimize for fast installation.
Chris@69 15047 fast_install=$enable_fast_install
Chris@69 15048
Chris@69 15049 # Shared archive member basename,for filename based shared library versioning on AIX.
Chris@69 15050 shared_archive_member_spec=$shared_archive_member_spec
Chris@69 15051
Chris@69 15052 # Shell to use when invoking shell scripts.
Chris@69 15053 SHELL=$lt_SHELL
Chris@69 15054
Chris@69 15055 # An echo program that protects backslashes.
Chris@69 15056 ECHO=$lt_ECHO
Chris@69 15057
Chris@69 15058 # The PATH separator for the build system.
Chris@69 15059 PATH_SEPARATOR=$lt_PATH_SEPARATOR
Chris@69 15060
Chris@69 15061 # The host system.
Chris@69 15062 host_alias=$host_alias
Chris@69 15063 host=$host
Chris@69 15064 host_os=$host_os
Chris@69 15065
Chris@69 15066 # The build system.
Chris@69 15067 build_alias=$build_alias
Chris@69 15068 build=$build
Chris@69 15069 build_os=$build_os
Chris@69 15070
Chris@69 15071 # A sed program that does not truncate output.
Chris@69 15072 SED=$lt_SED
Chris@69 15073
Chris@69 15074 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
Chris@69 15075 Xsed="\$SED -e 1s/^X//"
Chris@69 15076
Chris@69 15077 # A grep program that handles long lines.
Chris@69 15078 GREP=$lt_GREP
Chris@69 15079
Chris@69 15080 # An ERE matcher.
Chris@69 15081 EGREP=$lt_EGREP
Chris@69 15082
Chris@69 15083 # A literal string matcher.
Chris@69 15084 FGREP=$lt_FGREP
Chris@69 15085
Chris@69 15086 # A BSD- or MS-compatible name lister.
Chris@69 15087 NM=$lt_NM
Chris@69 15088
Chris@69 15089 # Whether we need soft or hard links.
Chris@69 15090 LN_S=$lt_LN_S
Chris@69 15091
Chris@69 15092 # What is the maximum length of a command?
Chris@69 15093 max_cmd_len=$max_cmd_len
Chris@69 15094
Chris@69 15095 # Object file suffix (normally "o").
Chris@69 15096 objext=$ac_objext
Chris@69 15097
Chris@69 15098 # Executable file suffix (normally "").
Chris@69 15099 exeext=$exeext
Chris@69 15100
Chris@69 15101 # whether the shell understands "unset".
Chris@69 15102 lt_unset=$lt_unset
Chris@69 15103
Chris@69 15104 # turn spaces into newlines.
Chris@69 15105 SP2NL=$lt_lt_SP2NL
Chris@69 15106
Chris@69 15107 # turn newlines into spaces.
Chris@69 15108 NL2SP=$lt_lt_NL2SP
Chris@69 15109
Chris@69 15110 # convert \$build file names to \$host format.
Chris@69 15111 to_host_file_cmd=$lt_cv_to_host_file_cmd
Chris@69 15112
Chris@69 15113 # convert \$build files to toolchain format.
Chris@69 15114 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Chris@69 15115
Chris@69 15116 # An object symbol dumper.
Chris@69 15117 OBJDUMP=$lt_OBJDUMP
Chris@69 15118
Chris@69 15119 # Method to check whether dependent libraries are shared objects.
Chris@69 15120 deplibs_check_method=$lt_deplibs_check_method
Chris@69 15121
Chris@69 15122 # Command to use when deplibs_check_method = "file_magic".
Chris@69 15123 file_magic_cmd=$lt_file_magic_cmd
Chris@69 15124
Chris@69 15125 # How to find potential files when deplibs_check_method = "file_magic".
Chris@69 15126 file_magic_glob=$lt_file_magic_glob
Chris@69 15127
Chris@69 15128 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
Chris@69 15129 want_nocaseglob=$lt_want_nocaseglob
Chris@69 15130
Chris@69 15131 # DLL creation program.
Chris@69 15132 DLLTOOL=$lt_DLLTOOL
Chris@69 15133
Chris@69 15134 # Command to associate shared and link libraries.
Chris@69 15135 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
Chris@69 15136
Chris@69 15137 # The archiver.
Chris@69 15138 AR=$lt_AR
Chris@69 15139
Chris@69 15140 # Flags to create an archive.
Chris@69 15141 AR_FLAGS=$lt_AR_FLAGS
Chris@69 15142
Chris@69 15143 # How to feed a file listing to the archiver.
Chris@69 15144 archiver_list_spec=$lt_archiver_list_spec
Chris@69 15145
Chris@69 15146 # A symbol stripping program.
Chris@69 15147 STRIP=$lt_STRIP
Chris@69 15148
Chris@69 15149 # Commands used to install an old-style archive.
Chris@69 15150 RANLIB=$lt_RANLIB
Chris@69 15151 old_postinstall_cmds=$lt_old_postinstall_cmds
Chris@69 15152 old_postuninstall_cmds=$lt_old_postuninstall_cmds
Chris@69 15153
Chris@69 15154 # Whether to use a lock for old archive extraction.
Chris@69 15155 lock_old_archive_extraction=$lock_old_archive_extraction
Chris@69 15156
Chris@69 15157 # A C compiler.
Chris@69 15158 LTCC=$lt_CC
Chris@69 15159
Chris@69 15160 # LTCC compiler flags.
Chris@69 15161 LTCFLAGS=$lt_CFLAGS
Chris@69 15162
Chris@69 15163 # Take the output of nm and produce a listing of raw symbols and C names.
Chris@69 15164 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
Chris@69 15165
Chris@69 15166 # Transform the output of nm in a proper C declaration.
Chris@69 15167 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
Chris@69 15168
Chris@69 15169 # Transform the output of nm into a list of symbols to manually relocate.
Chris@69 15170 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
Chris@69 15171
Chris@69 15172 # Transform the output of nm in a C name address pair.
Chris@69 15173 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Chris@69 15174
Chris@69 15175 # Transform the output of nm in a C name address pair when lib prefix is needed.
Chris@69 15176 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
Chris@69 15177
Chris@69 15178 # The name lister interface.
Chris@69 15179 nm_interface=$lt_lt_cv_nm_interface
Chris@69 15180
Chris@69 15181 # Specify filename containing input files for \$NM.
Chris@69 15182 nm_file_list_spec=$lt_nm_file_list_spec
Chris@69 15183
Chris@69 15184 # The root where to search for dependent libraries,and where our libraries should be installed.
Chris@69 15185 lt_sysroot=$lt_sysroot
Chris@69 15186
Chris@69 15187 # Command to truncate a binary pipe.
Chris@69 15188 lt_truncate_bin=$lt_lt_cv_truncate_bin
Chris@69 15189
Chris@69 15190 # The name of the directory that contains temporary libtool files.
Chris@69 15191 objdir=$objdir
Chris@69 15192
Chris@69 15193 # Used to examine libraries when file_magic_cmd begins with "file".
Chris@69 15194 MAGIC_CMD=$MAGIC_CMD
Chris@69 15195
Chris@69 15196 # Must we lock files when doing compilation?
Chris@69 15197 need_locks=$lt_need_locks
Chris@69 15198
Chris@69 15199 # Manifest tool.
Chris@69 15200 MANIFEST_TOOL=$lt_MANIFEST_TOOL
Chris@69 15201
Chris@69 15202 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
Chris@69 15203 DSYMUTIL=$lt_DSYMUTIL
Chris@69 15204
Chris@69 15205 # Tool to change global to local symbols on Mac OS X.
Chris@69 15206 NMEDIT=$lt_NMEDIT
Chris@69 15207
Chris@69 15208 # Tool to manipulate fat objects and archives on Mac OS X.
Chris@69 15209 LIPO=$lt_LIPO
Chris@69 15210
Chris@69 15211 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
Chris@69 15212 OTOOL=$lt_OTOOL
Chris@69 15213
Chris@69 15214 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
Chris@69 15215 OTOOL64=$lt_OTOOL64
Chris@69 15216
Chris@69 15217 # Old archive suffix (normally "a").
Chris@69 15218 libext=$libext
Chris@69 15219
Chris@69 15220 # Shared library suffix (normally ".so").
Chris@69 15221 shrext_cmds=$lt_shrext_cmds
Chris@69 15222
Chris@69 15223 # The commands to extract the exported symbol list from a shared archive.
Chris@69 15224 extract_expsyms_cmds=$lt_extract_expsyms_cmds
Chris@69 15225
Chris@69 15226 # Variables whose values should be saved in libtool wrapper scripts and
Chris@69 15227 # restored at link time.
Chris@69 15228 variables_saved_for_relink=$lt_variables_saved_for_relink
Chris@69 15229
Chris@69 15230 # Do we need the "lib" prefix for modules?
Chris@69 15231 need_lib_prefix=$need_lib_prefix
Chris@69 15232
Chris@69 15233 # Do we need a version for libraries?
Chris@69 15234 need_version=$need_version
Chris@69 15235
Chris@69 15236 # Library versioning type.
Chris@69 15237 version_type=$version_type
Chris@69 15238
Chris@69 15239 # Shared library runtime path variable.
Chris@69 15240 runpath_var=$runpath_var
Chris@69 15241
Chris@69 15242 # Shared library path variable.
Chris@69 15243 shlibpath_var=$shlibpath_var
Chris@69 15244
Chris@69 15245 # Is shlibpath searched before the hard-coded library search path?
Chris@69 15246 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
Chris@69 15247
Chris@69 15248 # Format of library name prefix.
Chris@69 15249 libname_spec=$lt_libname_spec
Chris@69 15250
Chris@69 15251 # List of archive names. First name is the real one, the rest are links.
Chris@69 15252 # The last name is the one that the linker finds with -lNAME
Chris@69 15253 library_names_spec=$lt_library_names_spec
Chris@69 15254
Chris@69 15255 # The coded name of the library, if different from the real name.
Chris@69 15256 soname_spec=$lt_soname_spec
Chris@69 15257
Chris@69 15258 # Permission mode override for installation of shared libraries.
Chris@69 15259 install_override_mode=$lt_install_override_mode
Chris@69 15260
Chris@69 15261 # Command to use after installation of a shared archive.
Chris@69 15262 postinstall_cmds=$lt_postinstall_cmds
Chris@69 15263
Chris@69 15264 # Command to use after uninstallation of a shared archive.
Chris@69 15265 postuninstall_cmds=$lt_postuninstall_cmds
Chris@69 15266
Chris@69 15267 # Commands used to finish a libtool library installation in a directory.
Chris@69 15268 finish_cmds=$lt_finish_cmds
Chris@69 15269
Chris@69 15270 # As "finish_cmds", except a single script fragment to be evaled but
Chris@69 15271 # not shown.
Chris@69 15272 finish_eval=$lt_finish_eval
Chris@69 15273
Chris@69 15274 # Whether we should hardcode library paths into libraries.
Chris@69 15275 hardcode_into_libs=$hardcode_into_libs
Chris@69 15276
Chris@69 15277 # Compile-time system search path for libraries.
Chris@69 15278 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
Chris@69 15279
Chris@69 15280 # Detected run-time system search path for libraries.
Chris@69 15281 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
Chris@69 15282
Chris@69 15283 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
Chris@69 15284 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
Chris@69 15285
Chris@69 15286 # Whether dlopen is supported.
Chris@69 15287 dlopen_support=$enable_dlopen
Chris@69 15288
Chris@69 15289 # Whether dlopen of programs is supported.
Chris@69 15290 dlopen_self=$enable_dlopen_self
Chris@69 15291
Chris@69 15292 # Whether dlopen of statically linked programs is supported.
Chris@69 15293 dlopen_self_static=$enable_dlopen_self_static
Chris@69 15294
Chris@69 15295 # Commands to strip libraries.
Chris@69 15296 old_striplib=$lt_old_striplib
Chris@69 15297 striplib=$lt_striplib
Chris@69 15298
Chris@69 15299
Chris@69 15300 # The linker used to build libraries.
Chris@69 15301 LD=$lt_LD
Chris@69 15302
Chris@69 15303 # How to create reloadable object files.
Chris@69 15304 reload_flag=$lt_reload_flag
Chris@69 15305 reload_cmds=$lt_reload_cmds
Chris@69 15306
Chris@69 15307 # Commands used to build an old-style archive.
Chris@69 15308 old_archive_cmds=$lt_old_archive_cmds
Chris@69 15309
Chris@69 15310 # A language specific compiler.
Chris@69 15311 CC=$lt_compiler
Chris@69 15312
Chris@69 15313 # Is the compiler the GNU compiler?
Chris@69 15314 with_gcc=$GCC
Chris@69 15315
Chris@69 15316 # Compiler flag to turn off builtin functions.
Chris@69 15317 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
Chris@69 15318
Chris@69 15319 # Additional compiler flags for building library objects.
Chris@69 15320 pic_flag=$lt_lt_prog_compiler_pic
Chris@69 15321
Chris@69 15322 # How to pass a linker flag through the compiler.
Chris@69 15323 wl=$lt_lt_prog_compiler_wl
Chris@69 15324
Chris@69 15325 # Compiler flag to prevent dynamic linking.
Chris@69 15326 link_static_flag=$lt_lt_prog_compiler_static
Chris@69 15327
Chris@69 15328 # Does compiler simultaneously support -c and -o options?
Chris@69 15329 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
Chris@69 15330
Chris@69 15331 # Whether or not to add -lc for building shared libraries.
Chris@69 15332 build_libtool_need_lc=$archive_cmds_need_lc
Chris@69 15333
Chris@69 15334 # Whether or not to disallow shared libs when runtime libs are static.
Chris@69 15335 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
Chris@69 15336
Chris@69 15337 # Compiler flag to allow reflexive dlopens.
Chris@69 15338 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
Chris@69 15339
Chris@69 15340 # Compiler flag to generate shared objects directly from archives.
Chris@69 15341 whole_archive_flag_spec=$lt_whole_archive_flag_spec
Chris@69 15342
Chris@69 15343 # Whether the compiler copes with passing no objects directly.
Chris@69 15344 compiler_needs_object=$lt_compiler_needs_object
Chris@69 15345
Chris@69 15346 # Create an old-style archive from a shared archive.
Chris@69 15347 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
Chris@69 15348
Chris@69 15349 # Create a temporary old-style archive to link instead of a shared archive.
Chris@69 15350 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
Chris@69 15351
Chris@69 15352 # Commands used to build a shared archive.
Chris@69 15353 archive_cmds=$lt_archive_cmds
Chris@69 15354 archive_expsym_cmds=$lt_archive_expsym_cmds
Chris@69 15355
Chris@69 15356 # Commands used to build a loadable module if different from building
Chris@69 15357 # a shared archive.
Chris@69 15358 module_cmds=$lt_module_cmds
Chris@69 15359 module_expsym_cmds=$lt_module_expsym_cmds
Chris@69 15360
Chris@69 15361 # Whether we are building with GNU ld or not.
Chris@69 15362 with_gnu_ld=$lt_with_gnu_ld
Chris@69 15363
Chris@69 15364 # Flag that allows shared libraries with undefined symbols to be built.
Chris@69 15365 allow_undefined_flag=$lt_allow_undefined_flag
Chris@69 15366
Chris@69 15367 # Flag that enforces no undefined symbols.
Chris@69 15368 no_undefined_flag=$lt_no_undefined_flag
Chris@69 15369
Chris@69 15370 # Flag to hardcode \$libdir into a binary during linking.
Chris@69 15371 # This must work even if \$libdir does not exist
Chris@69 15372 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
Chris@69 15373
Chris@69 15374 # Whether we need a single "-rpath" flag with a separated argument.
Chris@69 15375 hardcode_libdir_separator=$lt_hardcode_libdir_separator
Chris@69 15376
Chris@69 15377 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Chris@69 15378 # DIR into the resulting binary.
Chris@69 15379 hardcode_direct=$hardcode_direct
Chris@69 15380
Chris@69 15381 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Chris@69 15382 # DIR into the resulting binary and the resulting library dependency is
Chris@69 15383 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
Chris@69 15384 # library is relocated.
Chris@69 15385 hardcode_direct_absolute=$hardcode_direct_absolute
Chris@69 15386
Chris@69 15387 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
Chris@69 15388 # into the resulting binary.
Chris@69 15389 hardcode_minus_L=$hardcode_minus_L
Chris@69 15390
Chris@69 15391 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
Chris@69 15392 # into the resulting binary.
Chris@69 15393 hardcode_shlibpath_var=$hardcode_shlibpath_var
Chris@69 15394
Chris@69 15395 # Set to "yes" if building a shared library automatically hardcodes DIR
Chris@69 15396 # into the library and all subsequent libraries and executables linked
Chris@69 15397 # against it.
Chris@69 15398 hardcode_automatic=$hardcode_automatic
Chris@69 15399
Chris@69 15400 # Set to yes if linker adds runtime paths of dependent libraries
Chris@69 15401 # to runtime path list.
Chris@69 15402 inherit_rpath=$inherit_rpath
Chris@69 15403
Chris@69 15404 # Whether libtool must link a program against all its dependency libraries.
Chris@69 15405 link_all_deplibs=$link_all_deplibs
Chris@69 15406
Chris@69 15407 # Set to "yes" if exported symbols are required.
Chris@69 15408 always_export_symbols=$always_export_symbols
Chris@69 15409
Chris@69 15410 # The commands to list exported symbols.
Chris@69 15411 export_symbols_cmds=$lt_export_symbols_cmds
Chris@69 15412
Chris@69 15413 # Symbols that should not be listed in the preloaded symbols.
Chris@69 15414 exclude_expsyms=$lt_exclude_expsyms
Chris@69 15415
Chris@69 15416 # Symbols that must always be exported.
Chris@69 15417 include_expsyms=$lt_include_expsyms
Chris@69 15418
Chris@69 15419 # Commands necessary for linking programs (against libraries) with templates.
Chris@69 15420 prelink_cmds=$lt_prelink_cmds
Chris@69 15421
Chris@69 15422 # Commands necessary for finishing linking programs.
Chris@69 15423 postlink_cmds=$lt_postlink_cmds
Chris@69 15424
Chris@69 15425 # Specify filename containing input files.
Chris@69 15426 file_list_spec=$lt_file_list_spec
Chris@69 15427
Chris@69 15428 # How to hardcode a shared library path into an executable.
Chris@69 15429 hardcode_action=$hardcode_action
Chris@69 15430
Chris@69 15431 # ### END LIBTOOL CONFIG
Chris@69 15432
Chris@69 15433 _LT_EOF
Chris@69 15434
Chris@69 15435 cat <<'_LT_EOF' >> "$cfgfile"
Chris@69 15436
Chris@69 15437 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
Chris@69 15438
Chris@69 15439 # func_munge_path_list VARIABLE PATH
Chris@69 15440 # -----------------------------------
Chris@69 15441 # VARIABLE is name of variable containing _space_ separated list of
Chris@69 15442 # directories to be munged by the contents of PATH, which is string
Chris@69 15443 # having a format:
Chris@69 15444 # "DIR[:DIR]:"
Chris@69 15445 # string "DIR[ DIR]" will be prepended to VARIABLE
Chris@69 15446 # ":DIR[:DIR]"
Chris@69 15447 # string "DIR[ DIR]" will be appended to VARIABLE
Chris@69 15448 # "DIRP[:DIRP]::[DIRA:]DIRA"
Chris@69 15449 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
Chris@69 15450 # "DIRA[ DIRA]" will be appended to VARIABLE
Chris@69 15451 # "DIR[:DIR]"
Chris@69 15452 # VARIABLE will be replaced by "DIR[ DIR]"
Chris@69 15453 func_munge_path_list ()
Chris@69 15454 {
Chris@69 15455 case x$2 in
Chris@69 15456 x)
Chris@69 15457 ;;
Chris@69 15458 *:)
Chris@69 15459 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
Chris@69 15460 ;;
Chris@69 15461 x:*)
Chris@69 15462 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
Chris@69 15463 ;;
Chris@69 15464 *::*)
Chris@69 15465 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
Chris@69 15466 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
Chris@69 15467 ;;
Chris@69 15468 *)
Chris@69 15469 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
Chris@69 15470 ;;
Chris@69 15471 esac
Chris@69 15472 }
Chris@69 15473
Chris@69 15474
Chris@69 15475 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
Chris@69 15476 func_cc_basename ()
Chris@69 15477 {
Chris@69 15478 for cc_temp in $*""; do
Chris@69 15479 case $cc_temp in
Chris@69 15480 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
Chris@69 15481 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
Chris@69 15482 \-*) ;;
Chris@69 15483 *) break;;
Chris@69 15484 esac
Chris@69 15485 done
Chris@69 15486 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Chris@69 15487 }
Chris@69 15488
Chris@69 15489
Chris@69 15490 # ### END FUNCTIONS SHARED WITH CONFIGURE
Chris@69 15491
Chris@69 15492 _LT_EOF
Chris@69 15493
Chris@69 15494 case $host_os in
Chris@69 15495 aix3*)
Chris@69 15496 cat <<\_LT_EOF >> "$cfgfile"
Chris@69 15497 # AIX sometimes has problems with the GCC collect2 program. For some
Chris@69 15498 # reason, if we set the COLLECT_NAMES environment variable, the problems
Chris@69 15499 # vanish in a puff of smoke.
Chris@69 15500 if test set != "${COLLECT_NAMES+set}"; then
Chris@69 15501 COLLECT_NAMES=
Chris@69 15502 export COLLECT_NAMES
Chris@69 15503 fi
Chris@69 15504 _LT_EOF
Chris@69 15505 ;;
Chris@69 15506 esac
Chris@69 15507
Chris@69 15508
Chris@69 15509 ltmain=$ac_aux_dir/ltmain.sh
Chris@69 15510
Chris@69 15511
Chris@69 15512 # We use sed instead of cat because bash on DJGPP gets confused if
Chris@69 15513 # if finds mixed CR/LF and LF-only lines. Since sed operates in
Chris@69 15514 # text mode, it properly converts lines to CR/LF. This bash problem
Chris@69 15515 # is reportedly fixed, but why not run on old versions too?
Chris@69 15516 sed '$q' "$ltmain" >> "$cfgfile" \
Chris@69 15517 || (rm -f "$cfgfile"; exit 1)
Chris@69 15518
Chris@69 15519 mv -f "$cfgfile" "$ofile" ||
Chris@69 15520 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
Chris@69 15521 chmod +x "$ofile"
Chris@69 15522
Chris@69 15523 ;;
Chris@69 15524
Chris@69 15525 esac
Chris@69 15526 done # for ac_tag
Chris@69 15527
Chris@69 15528
Chris@69 15529 as_fn_exit 0
Chris@69 15530 _ACEOF
Chris@69 15531 ac_clean_files=$ac_clean_files_save
Chris@69 15532
Chris@69 15533 test $ac_write_fail = 0 ||
Chris@69 15534 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Chris@69 15535
Chris@69 15536
Chris@69 15537 # configure is writing to config.log, and then calls config.status.
Chris@69 15538 # config.status does its own redirection, appending to config.log.
Chris@69 15539 # Unfortunately, on DOS this fails, as config.log is still kept open
Chris@69 15540 # by configure, so config.status won't be able to write to it; its
Chris@69 15541 # output is simply discarded. So we exec the FD to /dev/null,
Chris@69 15542 # effectively closing config.log, so it can be properly (re)opened and
Chris@69 15543 # appended to by config.status. When coming back to configure, we
Chris@69 15544 # need to make the FD available again.
Chris@69 15545 if test "$no_create" != yes; then
Chris@69 15546 ac_cs_success=:
Chris@69 15547 ac_config_status_args=
Chris@69 15548 test "$silent" = yes &&
Chris@69 15549 ac_config_status_args="$ac_config_status_args --quiet"
Chris@69 15550 exec 5>/dev/null
Chris@69 15551 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Chris@69 15552 exec 5>>config.log
Chris@69 15553 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
Chris@69 15554 # would make configure fail if this is the last instruction.
Chris@69 15555 $ac_cs_success || as_fn_exit 1
Chris@69 15556 fi
Chris@69 15557 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Chris@69 15558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Chris@69 15559 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Chris@69 15560 fi
Chris@69 15561
Chris@69 15562
Chris@69 15563 { $as_echo "$as_me:${as_lineno-$LINENO}:
Chris@69 15564 ------------------------------------------------------------------------
Chris@69 15565 $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK.
Chris@69 15566
Chris@69 15567 Assertions ................... ${enable_assertions}
Chris@69 15568
Chris@69 15569 HTTP support ................. ${enable_http}
Chris@69 15570 Fixed-point .................. ${enable_fixed_point}
Chris@69 15571 Floating-point API ........... ${enable_float}${lrintf_notice}
Chris@69 15572
Chris@69 15573 Hidden visibility ............ ${cc_cv_flag_visibility}
Chris@69 15574
Chris@69 15575 API code examples ............ ${enable_examples}
Chris@69 15576 API documentation ............ ${enable_doc}
Chris@69 15577 ------------------------------------------------------------------------
Chris@69 15578 " >&5
Chris@69 15579 $as_echo "$as_me:
Chris@69 15580 ------------------------------------------------------------------------
Chris@69 15581 $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK.
Chris@69 15582
Chris@69 15583 Assertions ................... ${enable_assertions}
Chris@69 15584
Chris@69 15585 HTTP support ................. ${enable_http}
Chris@69 15586 Fixed-point .................. ${enable_fixed_point}
Chris@69 15587 Floating-point API ........... ${enable_float}${lrintf_notice}
Chris@69 15588
Chris@69 15589 Hidden visibility ............ ${cc_cv_flag_visibility}
Chris@69 15590
Chris@69 15591 API code examples ............ ${enable_examples}
Chris@69 15592 API documentation ............ ${enable_doc}
Chris@69 15593 ------------------------------------------------------------------------
Chris@69 15594 " >&6;}