annotate src/opus-1.3/configure @ 83:ae30d91d2ffe

Replace these with versions built using an older toolset (so as to avoid ABI compatibilities when linking on Ubuntu 14.04 for packaging purposes)
author Chris Cannam
date Fri, 07 Feb 2020 11:51:13 +0000
parents 7aeed7906520
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 opus 1.3.
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
Chris@69 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
Chris@69 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@69 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
Chris@69 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
Chris@69 206 PATH=/empty FPATH=/empty; export PATH FPATH
Chris@69 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
Chris@69 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
Chris@69 209 test \$(( 1 + 1 )) = 2 || 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='opus'
Chris@69 592 PACKAGE_TARNAME='opus'
Chris@69 593 PACKAGE_VERSION='1.3'
Chris@69 594 PACKAGE_STRING='opus 1.3'
Chris@69 595 PACKAGE_BUGREPORT='opus@xiph.org'
Chris@69 596 PACKAGE_URL=''
Chris@69 597
Chris@69 598 ac_unique_file="src/opus_encoder.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 PC_BUILD
Chris@69 640 EXTRA_PROGRAMS_FALSE
Chris@69 641 EXTRA_PROGRAMS_TRUE
Chris@69 642 HAVE_DOXYGEN_FALSE
Chris@69 643 HAVE_DOXYGEN_TRUE
Chris@69 644 HAVE_DOT
Chris@69 645 HAVE_DOXYGEN
Chris@69 646 OPUS_HAVE_RTCD
Chris@69 647 HAVE_ARM_NE10_FALSE
Chris@69 648 HAVE_ARM_NE10_TRUE
Chris@69 649 HAVE_ARM_NEON_INTR_FALSE
Chris@69 650 HAVE_ARM_NEON_INTR_TRUE
Chris@69 651 CPU_ARM_FALSE
Chris@69 652 CPU_ARM_TRUE
Chris@69 653 OPUS_X86_AVX_CFLAGS
Chris@69 654 OPUS_X86_SSE4_1_CFLAGS
Chris@69 655 OPUS_X86_SSE2_CFLAGS
Chris@69 656 OPUS_X86_SSE_CFLAGS
Chris@69 657 NE10_LIBS
Chris@69 658 NE10_CFLAGS
Chris@69 659 HAVE_ARM_NE10
Chris@69 660 OPUS_ARM_NEON_INTR_CFLAGS
Chris@69 661 ARM_NEON_INTR_CFLAGS
Chris@69 662 X86_AVX_CFLAGS
Chris@69 663 X86_SSE4_1_CFLAGS
Chris@69 664 X86_SSE2_CFLAGS
Chris@69 665 X86_SSE_CFLAGS
Chris@69 666 HAVE_AVX_FALSE
Chris@69 667 HAVE_AVX_TRUE
Chris@69 668 HAVE_SSE4_1_FALSE
Chris@69 669 HAVE_SSE4_1_TRUE
Chris@69 670 HAVE_SSE2_FALSE
Chris@69 671 HAVE_SSE2_TRUE
Chris@69 672 HAVE_SSE_FALSE
Chris@69 673 HAVE_SSE_TRUE
Chris@69 674 ARM2GNU_PARAMS
Chris@69 675 OPUS_ARM_MAY_HAVE_NEON
Chris@69 676 OPUS_ARM_MAY_HAVE_MEDIA
Chris@69 677 OPUS_ARM_MAY_HAVE_EDSP
Chris@69 678 OPUS_ARM_EXTERNAL_ASM_FALSE
Chris@69 679 OPUS_ARM_EXTERNAL_ASM_TRUE
Chris@69 680 HAVE_PERL
Chris@69 681 OPUS_ARM_INLINE_ASM_FALSE
Chris@69 682 OPUS_ARM_INLINE_ASM_TRUE
Chris@69 683 CUSTOM_MODES_FALSE
Chris@69 684 CUSTOM_MODES_TRUE
Chris@69 685 DISABLE_FLOAT_API_FALSE
Chris@69 686 DISABLE_FLOAT_API_TRUE
Chris@69 687 FIXED_POINT_FALSE
Chris@69 688 FIXED_POINT_TRUE
Chris@69 689 LIBM
Chris@69 690 am__fastdepCCAS_FALSE
Chris@69 691 am__fastdepCCAS_TRUE
Chris@69 692 CCASDEPMODE
Chris@69 693 CCASFLAGS
Chris@69 694 CCAS
Chris@69 695 CPP
Chris@69 696 LT_SYS_LIBRARY_PATH
Chris@69 697 OTOOL64
Chris@69 698 OTOOL
Chris@69 699 LIPO
Chris@69 700 NMEDIT
Chris@69 701 DSYMUTIL
Chris@69 702 MANIFEST_TOOL
Chris@69 703 RANLIB
Chris@69 704 ac_ct_AR
Chris@69 705 AR
Chris@69 706 DLLTOOL
Chris@69 707 OBJDUMP
Chris@69 708 LN_S
Chris@69 709 NM
Chris@69 710 ac_ct_DUMPBIN
Chris@69 711 DUMPBIN
Chris@69 712 LD
Chris@69 713 FGREP
Chris@69 714 EGREP
Chris@69 715 GREP
Chris@69 716 SED
Chris@69 717 am__fastdepCC_FALSE
Chris@69 718 am__fastdepCC_TRUE
Chris@69 719 CCDEPMODE
Chris@69 720 am__nodep
Chris@69 721 AMDEPBACKSLASH
Chris@69 722 AMDEP_FALSE
Chris@69 723 AMDEP_TRUE
Chris@69 724 am__quote
Chris@69 725 am__include
Chris@69 726 DEPDIR
Chris@69 727 OBJEXT
Chris@69 728 EXEEXT
Chris@69 729 ac_ct_CC
Chris@69 730 CPPFLAGS
Chris@69 731 LDFLAGS
Chris@69 732 CFLAGS
Chris@69 733 CC
Chris@69 734 LIBTOOL
Chris@69 735 host_os
Chris@69 736 host_vendor
Chris@69 737 host_cpu
Chris@69 738 host
Chris@69 739 build_os
Chris@69 740 build_vendor
Chris@69 741 build_cpu
Chris@69 742 build
Chris@69 743 MAINT
Chris@69 744 MAINTAINER_MODE_FALSE
Chris@69 745 MAINTAINER_MODE_TRUE
Chris@69 746 am__untar
Chris@69 747 am__tar
Chris@69 748 AMTAR
Chris@69 749 am__leading_dot
Chris@69 750 SET_MAKE
Chris@69 751 AWK
Chris@69 752 mkdir_p
Chris@69 753 MKDIR_P
Chris@69 754 INSTALL_STRIP_PROGRAM
Chris@69 755 STRIP
Chris@69 756 install_sh
Chris@69 757 MAKEINFO
Chris@69 758 AUTOHEADER
Chris@69 759 AUTOMAKE
Chris@69 760 AUTOCONF
Chris@69 761 ACLOCAL
Chris@69 762 VERSION
Chris@69 763 PACKAGE
Chris@69 764 CYGPATH_W
Chris@69 765 am__isrc
Chris@69 766 INSTALL_DATA
Chris@69 767 INSTALL_SCRIPT
Chris@69 768 INSTALL_PROGRAM
Chris@69 769 OPUS_LT_AGE
Chris@69 770 OPUS_LT_REVISION
Chris@69 771 OPUS_LT_CURRENT
Chris@69 772 AM_BACKSLASH
Chris@69 773 AM_DEFAULT_VERBOSITY
Chris@69 774 AM_DEFAULT_V
Chris@69 775 AM_V
Chris@69 776 target_alias
Chris@69 777 host_alias
Chris@69 778 build_alias
Chris@69 779 LIBS
Chris@69 780 ECHO_T
Chris@69 781 ECHO_N
Chris@69 782 ECHO_C
Chris@69 783 DEFS
Chris@69 784 mandir
Chris@69 785 localedir
Chris@69 786 libdir
Chris@69 787 psdir
Chris@69 788 pdfdir
Chris@69 789 dvidir
Chris@69 790 htmldir
Chris@69 791 infodir
Chris@69 792 docdir
Chris@69 793 oldincludedir
Chris@69 794 includedir
Chris@69 795 localstatedir
Chris@69 796 sharedstatedir
Chris@69 797 sysconfdir
Chris@69 798 datadir
Chris@69 799 datarootdir
Chris@69 800 libexecdir
Chris@69 801 sbindir
Chris@69 802 bindir
Chris@69 803 program_transform_name
Chris@69 804 prefix
Chris@69 805 exec_prefix
Chris@69 806 PACKAGE_URL
Chris@69 807 PACKAGE_BUGREPORT
Chris@69 808 PACKAGE_STRING
Chris@69 809 PACKAGE_VERSION
Chris@69 810 PACKAGE_TARNAME
Chris@69 811 PACKAGE_NAME
Chris@69 812 PATH_SEPARATOR
Chris@69 813 SHELL'
Chris@69 814 ac_subst_files=''
Chris@69 815 ac_user_opts='
Chris@69 816 enable_option_checking
Chris@69 817 enable_silent_rules
Chris@69 818 enable_maintainer_mode
Chris@69 819 enable_shared
Chris@69 820 enable_static
Chris@69 821 with_pic
Chris@69 822 enable_fast_install
Chris@69 823 with_aix_soname
Chris@69 824 enable_dependency_tracking
Chris@69 825 with_gnu_ld
Chris@69 826 with_sysroot
Chris@69 827 enable_libtool_lock
Chris@69 828 enable_fixed_point
Chris@69 829 enable_fixed_point_debug
Chris@69 830 enable_float_api
Chris@69 831 enable_custom_modes
Chris@69 832 enable_float_approx
Chris@69 833 enable_asm
Chris@69 834 enable_rtcd
Chris@69 835 enable_intrinsics
Chris@69 836 with_NE10
Chris@69 837 with_NE10_libraries
Chris@69 838 with_NE10_includes
Chris@69 839 enable_assertions
Chris@69 840 enable_hardening
Chris@69 841 enable_fuzzing
Chris@69 842 enable_check_asm
Chris@69 843 enable_doc
Chris@69 844 enable_extra_programs
Chris@69 845 enable_rfc8251
Chris@69 846 enable_stack_protector
Chris@69 847 '
Chris@69 848 ac_precious_vars='build_alias
Chris@69 849 host_alias
Chris@69 850 target_alias
Chris@69 851 CC
Chris@69 852 CFLAGS
Chris@69 853 LDFLAGS
Chris@69 854 LIBS
Chris@69 855 CPPFLAGS
Chris@69 856 LT_SYS_LIBRARY_PATH
Chris@69 857 CPP
Chris@69 858 CCAS
Chris@69 859 CCASFLAGS
Chris@69 860 X86_SSE_CFLAGS
Chris@69 861 X86_SSE2_CFLAGS
Chris@69 862 X86_SSE4_1_CFLAGS
Chris@69 863 X86_AVX_CFLAGS
Chris@69 864 ARM_NEON_INTR_CFLAGS'
Chris@69 865
Chris@69 866
Chris@69 867 # Initialize some variables set by options.
Chris@69 868 ac_init_help=
Chris@69 869 ac_init_version=false
Chris@69 870 ac_unrecognized_opts=
Chris@69 871 ac_unrecognized_sep=
Chris@69 872 # The variables have the same names as the options, with
Chris@69 873 # dashes changed to underlines.
Chris@69 874 cache_file=/dev/null
Chris@69 875 exec_prefix=NONE
Chris@69 876 no_create=
Chris@69 877 no_recursion=
Chris@69 878 prefix=NONE
Chris@69 879 program_prefix=NONE
Chris@69 880 program_suffix=NONE
Chris@69 881 program_transform_name=s,x,x,
Chris@69 882 silent=
Chris@69 883 site=
Chris@69 884 srcdir=
Chris@69 885 verbose=
Chris@69 886 x_includes=NONE
Chris@69 887 x_libraries=NONE
Chris@69 888
Chris@69 889 # Installation directory options.
Chris@69 890 # These are left unexpanded so users can "make install exec_prefix=/foo"
Chris@69 891 # and all the variables that are supposed to be based on exec_prefix
Chris@69 892 # by default will actually change.
Chris@69 893 # Use braces instead of parens because sh, perl, etc. also accept them.
Chris@69 894 # (The list follows the same order as the GNU Coding Standards.)
Chris@69 895 bindir='${exec_prefix}/bin'
Chris@69 896 sbindir='${exec_prefix}/sbin'
Chris@69 897 libexecdir='${exec_prefix}/libexec'
Chris@69 898 datarootdir='${prefix}/share'
Chris@69 899 datadir='${datarootdir}'
Chris@69 900 sysconfdir='${prefix}/etc'
Chris@69 901 sharedstatedir='${prefix}/com'
Chris@69 902 localstatedir='${prefix}/var'
Chris@69 903 includedir='${prefix}/include'
Chris@69 904 oldincludedir='/usr/include'
Chris@69 905 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
Chris@69 906 infodir='${datarootdir}/info'
Chris@69 907 htmldir='${docdir}'
Chris@69 908 dvidir='${docdir}'
Chris@69 909 pdfdir='${docdir}'
Chris@69 910 psdir='${docdir}'
Chris@69 911 libdir='${exec_prefix}/lib'
Chris@69 912 localedir='${datarootdir}/locale'
Chris@69 913 mandir='${datarootdir}/man'
Chris@69 914
Chris@69 915 ac_prev=
Chris@69 916 ac_dashdash=
Chris@69 917 for ac_option
Chris@69 918 do
Chris@69 919 # If the previous option needs an argument, assign it.
Chris@69 920 if test -n "$ac_prev"; then
Chris@69 921 eval $ac_prev=\$ac_option
Chris@69 922 ac_prev=
Chris@69 923 continue
Chris@69 924 fi
Chris@69 925
Chris@69 926 case $ac_option in
Chris@69 927 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
Chris@69 928 *=) ac_optarg= ;;
Chris@69 929 *) ac_optarg=yes ;;
Chris@69 930 esac
Chris@69 931
Chris@69 932 # Accept the important Cygnus configure options, so we can diagnose typos.
Chris@69 933
Chris@69 934 case $ac_dashdash$ac_option in
Chris@69 935 --)
Chris@69 936 ac_dashdash=yes ;;
Chris@69 937
Chris@69 938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
Chris@69 939 ac_prev=bindir ;;
Chris@69 940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Chris@69 941 bindir=$ac_optarg ;;
Chris@69 942
Chris@69 943 -build | --build | --buil | --bui | --bu)
Chris@69 944 ac_prev=build_alias ;;
Chris@69 945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Chris@69 946 build_alias=$ac_optarg ;;
Chris@69 947
Chris@69 948 -cache-file | --cache-file | --cache-fil | --cache-fi \
Chris@69 949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
Chris@69 950 ac_prev=cache_file ;;
Chris@69 951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
Chris@69 952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Chris@69 953 cache_file=$ac_optarg ;;
Chris@69 954
Chris@69 955 --config-cache | -C)
Chris@69 956 cache_file=config.cache ;;
Chris@69 957
Chris@69 958 -datadir | --datadir | --datadi | --datad)
Chris@69 959 ac_prev=datadir ;;
Chris@69 960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Chris@69 961 datadir=$ac_optarg ;;
Chris@69 962
Chris@69 963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
Chris@69 964 | --dataroo | --dataro | --datar)
Chris@69 965 ac_prev=datarootdir ;;
Chris@69 966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
Chris@69 967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
Chris@69 968 datarootdir=$ac_optarg ;;
Chris@69 969
Chris@69 970 -disable-* | --disable-*)
Chris@69 971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Chris@69 972 # Reject names that are not valid shell variable names.
Chris@69 973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@69 974 as_fn_error $? "invalid feature name: $ac_useropt"
Chris@69 975 ac_useropt_orig=$ac_useropt
Chris@69 976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@69 977 case $ac_user_opts in
Chris@69 978 *"
Chris@69 979 "enable_$ac_useropt"
Chris@69 980 "*) ;;
Chris@69 981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
Chris@69 982 ac_unrecognized_sep=', ';;
Chris@69 983 esac
Chris@69 984 eval enable_$ac_useropt=no ;;
Chris@69 985
Chris@69 986 -docdir | --docdir | --docdi | --doc | --do)
Chris@69 987 ac_prev=docdir ;;
Chris@69 988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
Chris@69 989 docdir=$ac_optarg ;;
Chris@69 990
Chris@69 991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
Chris@69 992 ac_prev=dvidir ;;
Chris@69 993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
Chris@69 994 dvidir=$ac_optarg ;;
Chris@69 995
Chris@69 996 -enable-* | --enable-*)
Chris@69 997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Chris@69 998 # Reject names that are not valid shell variable names.
Chris@69 999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@69 1000 as_fn_error $? "invalid feature name: $ac_useropt"
Chris@69 1001 ac_useropt_orig=$ac_useropt
Chris@69 1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@69 1003 case $ac_user_opts in
Chris@69 1004 *"
Chris@69 1005 "enable_$ac_useropt"
Chris@69 1006 "*) ;;
Chris@69 1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
Chris@69 1008 ac_unrecognized_sep=', ';;
Chris@69 1009 esac
Chris@69 1010 eval enable_$ac_useropt=\$ac_optarg ;;
Chris@69 1011
Chris@69 1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
Chris@69 1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
Chris@69 1014 | --exec | --exe | --ex)
Chris@69 1015 ac_prev=exec_prefix ;;
Chris@69 1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
Chris@69 1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
Chris@69 1018 | --exec=* | --exe=* | --ex=*)
Chris@69 1019 exec_prefix=$ac_optarg ;;
Chris@69 1020
Chris@69 1021 -gas | --gas | --ga | --g)
Chris@69 1022 # Obsolete; use --with-gas.
Chris@69 1023 with_gas=yes ;;
Chris@69 1024
Chris@69 1025 -help | --help | --hel | --he | -h)
Chris@69 1026 ac_init_help=long ;;
Chris@69 1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
Chris@69 1028 ac_init_help=recursive ;;
Chris@69 1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
Chris@69 1030 ac_init_help=short ;;
Chris@69 1031
Chris@69 1032 -host | --host | --hos | --ho)
Chris@69 1033 ac_prev=host_alias ;;
Chris@69 1034 -host=* | --host=* | --hos=* | --ho=*)
Chris@69 1035 host_alias=$ac_optarg ;;
Chris@69 1036
Chris@69 1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
Chris@69 1038 ac_prev=htmldir ;;
Chris@69 1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
Chris@69 1040 | --ht=*)
Chris@69 1041 htmldir=$ac_optarg ;;
Chris@69 1042
Chris@69 1043 -includedir | --includedir | --includedi | --included | --include \
Chris@69 1044 | --includ | --inclu | --incl | --inc)
Chris@69 1045 ac_prev=includedir ;;
Chris@69 1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
Chris@69 1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
Chris@69 1048 includedir=$ac_optarg ;;
Chris@69 1049
Chris@69 1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
Chris@69 1051 ac_prev=infodir ;;
Chris@69 1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Chris@69 1053 infodir=$ac_optarg ;;
Chris@69 1054
Chris@69 1055 -libdir | --libdir | --libdi | --libd)
Chris@69 1056 ac_prev=libdir ;;
Chris@69 1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Chris@69 1058 libdir=$ac_optarg ;;
Chris@69 1059
Chris@69 1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
Chris@69 1061 | --libexe | --libex | --libe)
Chris@69 1062 ac_prev=libexecdir ;;
Chris@69 1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
Chris@69 1064 | --libexe=* | --libex=* | --libe=*)
Chris@69 1065 libexecdir=$ac_optarg ;;
Chris@69 1066
Chris@69 1067 -localedir | --localedir | --localedi | --localed | --locale)
Chris@69 1068 ac_prev=localedir ;;
Chris@69 1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
Chris@69 1070 localedir=$ac_optarg ;;
Chris@69 1071
Chris@69 1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
Chris@69 1073 | --localstate | --localstat | --localsta | --localst | --locals)
Chris@69 1074 ac_prev=localstatedir ;;
Chris@69 1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Chris@69 1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Chris@69 1077 localstatedir=$ac_optarg ;;
Chris@69 1078
Chris@69 1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
Chris@69 1080 ac_prev=mandir ;;
Chris@69 1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Chris@69 1082 mandir=$ac_optarg ;;
Chris@69 1083
Chris@69 1084 -nfp | --nfp | --nf)
Chris@69 1085 # Obsolete; use --without-fp.
Chris@69 1086 with_fp=no ;;
Chris@69 1087
Chris@69 1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Chris@69 1089 | --no-cr | --no-c | -n)
Chris@69 1090 no_create=yes ;;
Chris@69 1091
Chris@69 1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
Chris@69 1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
Chris@69 1094 no_recursion=yes ;;
Chris@69 1095
Chris@69 1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
Chris@69 1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
Chris@69 1098 | --oldin | --oldi | --old | --ol | --o)
Chris@69 1099 ac_prev=oldincludedir ;;
Chris@69 1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
Chris@69 1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
Chris@69 1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Chris@69 1103 oldincludedir=$ac_optarg ;;
Chris@69 1104
Chris@69 1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
Chris@69 1106 ac_prev=prefix ;;
Chris@69 1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Chris@69 1108 prefix=$ac_optarg ;;
Chris@69 1109
Chris@69 1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
Chris@69 1111 | --program-pre | --program-pr | --program-p)
Chris@69 1112 ac_prev=program_prefix ;;
Chris@69 1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
Chris@69 1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Chris@69 1115 program_prefix=$ac_optarg ;;
Chris@69 1116
Chris@69 1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
Chris@69 1118 | --program-suf | --program-su | --program-s)
Chris@69 1119 ac_prev=program_suffix ;;
Chris@69 1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
Chris@69 1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Chris@69 1122 program_suffix=$ac_optarg ;;
Chris@69 1123
Chris@69 1124 -program-transform-name | --program-transform-name \
Chris@69 1125 | --program-transform-nam | --program-transform-na \
Chris@69 1126 | --program-transform-n | --program-transform- \
Chris@69 1127 | --program-transform | --program-transfor \
Chris@69 1128 | --program-transfo | --program-transf \
Chris@69 1129 | --program-trans | --program-tran \
Chris@69 1130 | --progr-tra | --program-tr | --program-t)
Chris@69 1131 ac_prev=program_transform_name ;;
Chris@69 1132 -program-transform-name=* | --program-transform-name=* \
Chris@69 1133 | --program-transform-nam=* | --program-transform-na=* \
Chris@69 1134 | --program-transform-n=* | --program-transform-=* \
Chris@69 1135 | --program-transform=* | --program-transfor=* \
Chris@69 1136 | --program-transfo=* | --program-transf=* \
Chris@69 1137 | --program-trans=* | --program-tran=* \
Chris@69 1138 | --progr-tra=* | --program-tr=* | --program-t=*)
Chris@69 1139 program_transform_name=$ac_optarg ;;
Chris@69 1140
Chris@69 1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
Chris@69 1142 ac_prev=pdfdir ;;
Chris@69 1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
Chris@69 1144 pdfdir=$ac_optarg ;;
Chris@69 1145
Chris@69 1146 -psdir | --psdir | --psdi | --psd | --ps)
Chris@69 1147 ac_prev=psdir ;;
Chris@69 1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
Chris@69 1149 psdir=$ac_optarg ;;
Chris@69 1150
Chris@69 1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@69 1152 | -silent | --silent | --silen | --sile | --sil)
Chris@69 1153 silent=yes ;;
Chris@69 1154
Chris@69 1155 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
Chris@69 1156 ac_prev=sbindir ;;
Chris@69 1157 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
Chris@69 1158 | --sbi=* | --sb=*)
Chris@69 1159 sbindir=$ac_optarg ;;
Chris@69 1160
Chris@69 1161 -sharedstatedir | --sharedstatedir | --sharedstatedi \
Chris@69 1162 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
Chris@69 1163 | --sharedst | --shareds | --shared | --share | --shar \
Chris@69 1164 | --sha | --sh)
Chris@69 1165 ac_prev=sharedstatedir ;;
Chris@69 1166 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
Chris@69 1167 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
Chris@69 1168 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
Chris@69 1169 | --sha=* | --sh=*)
Chris@69 1170 sharedstatedir=$ac_optarg ;;
Chris@69 1171
Chris@69 1172 -site | --site | --sit)
Chris@69 1173 ac_prev=site ;;
Chris@69 1174 -site=* | --site=* | --sit=*)
Chris@69 1175 site=$ac_optarg ;;
Chris@69 1176
Chris@69 1177 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
Chris@69 1178 ac_prev=srcdir ;;
Chris@69 1179 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Chris@69 1180 srcdir=$ac_optarg ;;
Chris@69 1181
Chris@69 1182 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
Chris@69 1183 | --syscon | --sysco | --sysc | --sys | --sy)
Chris@69 1184 ac_prev=sysconfdir ;;
Chris@69 1185 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
Chris@69 1186 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Chris@69 1187 sysconfdir=$ac_optarg ;;
Chris@69 1188
Chris@69 1189 -target | --target | --targe | --targ | --tar | --ta | --t)
Chris@69 1190 ac_prev=target_alias ;;
Chris@69 1191 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Chris@69 1192 target_alias=$ac_optarg ;;
Chris@69 1193
Chris@69 1194 -v | -verbose | --verbose | --verbos | --verbo | --verb)
Chris@69 1195 verbose=yes ;;
Chris@69 1196
Chris@69 1197 -version | --version | --versio | --versi | --vers | -V)
Chris@69 1198 ac_init_version=: ;;
Chris@69 1199
Chris@69 1200 -with-* | --with-*)
Chris@69 1201 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Chris@69 1202 # Reject names that are not valid shell variable names.
Chris@69 1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@69 1204 as_fn_error $? "invalid package name: $ac_useropt"
Chris@69 1205 ac_useropt_orig=$ac_useropt
Chris@69 1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@69 1207 case $ac_user_opts in
Chris@69 1208 *"
Chris@69 1209 "with_$ac_useropt"
Chris@69 1210 "*) ;;
Chris@69 1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
Chris@69 1212 ac_unrecognized_sep=', ';;
Chris@69 1213 esac
Chris@69 1214 eval with_$ac_useropt=\$ac_optarg ;;
Chris@69 1215
Chris@69 1216 -without-* | --without-*)
Chris@69 1217 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Chris@69 1218 # Reject names that are not valid shell variable names.
Chris@69 1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@69 1220 as_fn_error $? "invalid package name: $ac_useropt"
Chris@69 1221 ac_useropt_orig=$ac_useropt
Chris@69 1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@69 1223 case $ac_user_opts in
Chris@69 1224 *"
Chris@69 1225 "with_$ac_useropt"
Chris@69 1226 "*) ;;
Chris@69 1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
Chris@69 1228 ac_unrecognized_sep=', ';;
Chris@69 1229 esac
Chris@69 1230 eval with_$ac_useropt=no ;;
Chris@69 1231
Chris@69 1232 --x)
Chris@69 1233 # Obsolete; use --with-x.
Chris@69 1234 with_x=yes ;;
Chris@69 1235
Chris@69 1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
Chris@69 1237 | --x-incl | --x-inc | --x-in | --x-i)
Chris@69 1238 ac_prev=x_includes ;;
Chris@69 1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
Chris@69 1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Chris@69 1241 x_includes=$ac_optarg ;;
Chris@69 1242
Chris@69 1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
Chris@69 1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
Chris@69 1245 ac_prev=x_libraries ;;
Chris@69 1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
Chris@69 1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Chris@69 1248 x_libraries=$ac_optarg ;;
Chris@69 1249
Chris@69 1250 -*) as_fn_error $? "unrecognized option: \`$ac_option'
Chris@69 1251 Try \`$0 --help' for more information"
Chris@69 1252 ;;
Chris@69 1253
Chris@69 1254 *=*)
Chris@69 1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
Chris@69 1256 # Reject names that are not valid shell variable names.
Chris@69 1257 case $ac_envvar in #(
Chris@69 1258 '' | [0-9]* | *[!_$as_cr_alnum]* )
Chris@69 1259 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Chris@69 1260 esac
Chris@69 1261 eval $ac_envvar=\$ac_optarg
Chris@69 1262 export $ac_envvar ;;
Chris@69 1263
Chris@69 1264 *)
Chris@69 1265 # FIXME: should be removed in autoconf 3.0.
Chris@69 1266 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Chris@69 1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Chris@69 1268 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Chris@69 1269 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Chris@69 1270 ;;
Chris@69 1271
Chris@69 1272 esac
Chris@69 1273 done
Chris@69 1274
Chris@69 1275 if test -n "$ac_prev"; then
Chris@69 1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Chris@69 1277 as_fn_error $? "missing argument to $ac_option"
Chris@69 1278 fi
Chris@69 1279
Chris@69 1280 if test -n "$ac_unrecognized_opts"; then
Chris@69 1281 case $enable_option_checking in
Chris@69 1282 no) ;;
Chris@69 1283 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Chris@69 1284 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Chris@69 1285 esac
Chris@69 1286 fi
Chris@69 1287
Chris@69 1288 # Check all directory arguments for consistency.
Chris@69 1289 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
Chris@69 1290 datadir sysconfdir sharedstatedir localstatedir includedir \
Chris@69 1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Chris@69 1292 libdir localedir mandir
Chris@69 1293 do
Chris@69 1294 eval ac_val=\$$ac_var
Chris@69 1295 # Remove trailing slashes.
Chris@69 1296 case $ac_val in
Chris@69 1297 */ )
Chris@69 1298 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
Chris@69 1299 eval $ac_var=\$ac_val;;
Chris@69 1300 esac
Chris@69 1301 # Be sure to have absolute directory names.
Chris@69 1302 case $ac_val in
Chris@69 1303 [\\/$]* | ?:[\\/]* ) continue;;
Chris@69 1304 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Chris@69 1305 esac
Chris@69 1306 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Chris@69 1307 done
Chris@69 1308
Chris@69 1309 # There might be people who depend on the old broken behavior: `$host'
Chris@69 1310 # used to hold the argument of --host etc.
Chris@69 1311 # FIXME: To remove some day.
Chris@69 1312 build=$build_alias
Chris@69 1313 host=$host_alias
Chris@69 1314 target=$target_alias
Chris@69 1315
Chris@69 1316 # FIXME: To remove some day.
Chris@69 1317 if test "x$host_alias" != x; then
Chris@69 1318 if test "x$build_alias" = x; then
Chris@69 1319 cross_compiling=maybe
Chris@69 1320 elif test "x$build_alias" != "x$host_alias"; then
Chris@69 1321 cross_compiling=yes
Chris@69 1322 fi
Chris@69 1323 fi
Chris@69 1324
Chris@69 1325 ac_tool_prefix=
Chris@69 1326 test -n "$host_alias" && ac_tool_prefix=$host_alias-
Chris@69 1327
Chris@69 1328 test "$silent" = yes && exec 6>/dev/null
Chris@69 1329
Chris@69 1330
Chris@69 1331 ac_pwd=`pwd` && test -n "$ac_pwd" &&
Chris@69 1332 ac_ls_di=`ls -di .` &&
Chris@69 1333 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Chris@69 1334 as_fn_error $? "working directory cannot be determined"
Chris@69 1335 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Chris@69 1336 as_fn_error $? "pwd does not report name of working directory"
Chris@69 1337
Chris@69 1338
Chris@69 1339 # Find the source files, if location was not specified.
Chris@69 1340 if test -z "$srcdir"; then
Chris@69 1341 ac_srcdir_defaulted=yes
Chris@69 1342 # Try the directory containing this script, then the parent directory.
Chris@69 1343 ac_confdir=`$as_dirname -- "$as_myself" ||
Chris@69 1344 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@69 1345 X"$as_myself" : 'X\(//\)[^/]' \| \
Chris@69 1346 X"$as_myself" : 'X\(//\)$' \| \
Chris@69 1347 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
Chris@69 1348 $as_echo X"$as_myself" |
Chris@69 1349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@69 1350 s//\1/
Chris@69 1351 q
Chris@69 1352 }
Chris@69 1353 /^X\(\/\/\)[^/].*/{
Chris@69 1354 s//\1/
Chris@69 1355 q
Chris@69 1356 }
Chris@69 1357 /^X\(\/\/\)$/{
Chris@69 1358 s//\1/
Chris@69 1359 q
Chris@69 1360 }
Chris@69 1361 /^X\(\/\).*/{
Chris@69 1362 s//\1/
Chris@69 1363 q
Chris@69 1364 }
Chris@69 1365 s/.*/./; q'`
Chris@69 1366 srcdir=$ac_confdir
Chris@69 1367 if test ! -r "$srcdir/$ac_unique_file"; then
Chris@69 1368 srcdir=..
Chris@69 1369 fi
Chris@69 1370 else
Chris@69 1371 ac_srcdir_defaulted=no
Chris@69 1372 fi
Chris@69 1373 if test ! -r "$srcdir/$ac_unique_file"; then
Chris@69 1374 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Chris@69 1375 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Chris@69 1376 fi
Chris@69 1377 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
Chris@69 1378 ac_abs_confdir=`(
Chris@69 1379 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Chris@69 1380 pwd)`
Chris@69 1381 # When building in place, set srcdir=.
Chris@69 1382 if test "$ac_abs_confdir" = "$ac_pwd"; then
Chris@69 1383 srcdir=.
Chris@69 1384 fi
Chris@69 1385 # Remove unnecessary trailing slashes from srcdir.
Chris@69 1386 # Double slashes in file names in object file debugging info
Chris@69 1387 # mess up M-x gdb in Emacs.
Chris@69 1388 case $srcdir in
Chris@69 1389 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
Chris@69 1390 esac
Chris@69 1391 for ac_var in $ac_precious_vars; do
Chris@69 1392 eval ac_env_${ac_var}_set=\${${ac_var}+set}
Chris@69 1393 eval ac_env_${ac_var}_value=\$${ac_var}
Chris@69 1394 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
Chris@69 1395 eval ac_cv_env_${ac_var}_value=\$${ac_var}
Chris@69 1396 done
Chris@69 1397
Chris@69 1398 #
Chris@69 1399 # Report the --help message.
Chris@69 1400 #
Chris@69 1401 if test "$ac_init_help" = "long"; then
Chris@69 1402 # Omit some internal or obsolete options to make the list less imposing.
Chris@69 1403 # This message is too long to be a string in the A/UX 3.1 sh.
Chris@69 1404 cat <<_ACEOF
Chris@69 1405 \`configure' configures opus 1.3 to adapt to many kinds of systems.
Chris@69 1406
Chris@69 1407 Usage: $0 [OPTION]... [VAR=VALUE]...
Chris@69 1408
Chris@69 1409 To assign environment variables (e.g., CC, CFLAGS...), specify them as
Chris@69 1410 VAR=VALUE. See below for descriptions of some of the useful variables.
Chris@69 1411
Chris@69 1412 Defaults for the options are specified in brackets.
Chris@69 1413
Chris@69 1414 Configuration:
Chris@69 1415 -h, --help display this help and exit
Chris@69 1416 --help=short display options specific to this package
Chris@69 1417 --help=recursive display the short help of all the included packages
Chris@69 1418 -V, --version display version information and exit
Chris@69 1419 -q, --quiet, --silent do not print \`checking ...' messages
Chris@69 1420 --cache-file=FILE cache test results in FILE [disabled]
Chris@69 1421 -C, --config-cache alias for \`--cache-file=config.cache'
Chris@69 1422 -n, --no-create do not create output files
Chris@69 1423 --srcdir=DIR find the sources in DIR [configure dir or \`..']
Chris@69 1424
Chris@69 1425 Installation directories:
Chris@69 1426 --prefix=PREFIX install architecture-independent files in PREFIX
Chris@69 1427 [$ac_default_prefix]
Chris@69 1428 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Chris@69 1429 [PREFIX]
Chris@69 1430
Chris@69 1431 By default, \`make install' will install all the files in
Chris@69 1432 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
Chris@69 1433 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
Chris@69 1434 for instance \`--prefix=\$HOME'.
Chris@69 1435
Chris@69 1436 For better control, use the options below.
Chris@69 1437
Chris@69 1438 Fine tuning of the installation directories:
Chris@69 1439 --bindir=DIR user executables [EPREFIX/bin]
Chris@69 1440 --sbindir=DIR system admin executables [EPREFIX/sbin]
Chris@69 1441 --libexecdir=DIR program executables [EPREFIX/libexec]
Chris@69 1442 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
Chris@69 1443 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
Chris@69 1444 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Chris@69 1445 --libdir=DIR object code libraries [EPREFIX/lib]
Chris@69 1446 --includedir=DIR C header files [PREFIX/include]
Chris@69 1447 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Chris@69 1448 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
Chris@69 1449 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
Chris@69 1450 --infodir=DIR info documentation [DATAROOTDIR/info]
Chris@69 1451 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
Chris@69 1452 --mandir=DIR man documentation [DATAROOTDIR/man]
Chris@69 1453 --docdir=DIR documentation root [DATAROOTDIR/doc/opus]
Chris@69 1454 --htmldir=DIR html documentation [DOCDIR]
Chris@69 1455 --dvidir=DIR dvi documentation [DOCDIR]
Chris@69 1456 --pdfdir=DIR pdf documentation [DOCDIR]
Chris@69 1457 --psdir=DIR ps documentation [DOCDIR]
Chris@69 1458 _ACEOF
Chris@69 1459
Chris@69 1460 cat <<\_ACEOF
Chris@69 1461
Chris@69 1462 Program names:
Chris@69 1463 --program-prefix=PREFIX prepend PREFIX to installed program names
Chris@69 1464 --program-suffix=SUFFIX append SUFFIX to installed program names
Chris@69 1465 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
Chris@69 1466
Chris@69 1467 System types:
Chris@69 1468 --build=BUILD configure for building on BUILD [guessed]
Chris@69 1469 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Chris@69 1470 _ACEOF
Chris@69 1471 fi
Chris@69 1472
Chris@69 1473 if test -n "$ac_init_help"; then
Chris@69 1474 case $ac_init_help in
Chris@69 1475 short | recursive ) echo "Configuration of opus 1.3:";;
Chris@69 1476 esac
Chris@69 1477 cat <<\_ACEOF
Chris@69 1478
Chris@69 1479 Optional Features:
Chris@69 1480 --disable-option-checking ignore unrecognized --enable/--with options
Chris@69 1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
Chris@69 1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Chris@69 1483 --enable-silent-rules less verbose build output (undo: "make V=1")
Chris@69 1484 --disable-silent-rules verbose build output (undo: "make V=0")
Chris@69 1485 --disable-maintainer-mode
Chris@69 1486 disable make rules and dependencies not useful (and
Chris@69 1487 sometimes confusing) to the casual installer
Chris@69 1488 --enable-shared[=PKGS] build shared libraries [default=yes]
Chris@69 1489 --enable-static[=PKGS] build static libraries [default=yes]
Chris@69 1490 --enable-fast-install[=PKGS]
Chris@69 1491 optimize for fast installation [default=yes]
Chris@69 1492 --enable-dependency-tracking
Chris@69 1493 do not reject slow dependency extractors
Chris@69 1494 --disable-dependency-tracking
Chris@69 1495 speeds up one-time build
Chris@69 1496 --disable-libtool-lock avoid locking (might break parallel builds)
Chris@69 1497 --enable-fixed-point compile without floating point (for machines without
Chris@69 1498 a fast enough FPU)
Chris@69 1499 --enable-fixed-point-debug
Chris@69 1500 debug fixed-point implementation
Chris@69 1501 --disable-float-api compile without the floating point API (for machines
Chris@69 1502 with no float library)
Chris@69 1503 --enable-custom-modes enable non-Opus modes, e.g. 44.1 kHz & 2^n frames
Chris@69 1504 --enable-float-approx enable fast approximations for floating point
Chris@69 1505 --disable-asm Disable assembly optimizations
Chris@69 1506 --disable-rtcd Disable run-time CPU capabilities detection
Chris@69 1507 --disable-intrinsics Disable intrinsics optimizations
Chris@69 1508 --enable-assertions enable additional software error checking
Chris@69 1509 --disable-hardening disable run-time checks that are cheap and safe for
Chris@69 1510 use in production
Chris@69 1511 --enable-fuzzing causes the encoder to make random decisions (do not
Chris@69 1512 use in production)
Chris@69 1513 --enable-check-asm enable bit-exactness checks between optimized and c
Chris@69 1514 implementations
Chris@69 1515 --disable-doc Do not build API documentation
Chris@69 1516 --disable-extra-programs
Chris@69 1517 Do not build extra programs (demo and tests)
Chris@69 1518 --disable-rfc8251 Disable bitstream fixes from RFC 8251
Chris@69 1519 --disable-stack-protector
Chris@69 1520 Disable compiler stack hardening
Chris@69 1521
Chris@69 1522 Optional Packages:
Chris@69 1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
Chris@69 1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Chris@69 1525 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
Chris@69 1526 both]
Chris@69 1527 --with-aix-soname=aix|svr4|both
Chris@69 1528 shared library versioning (aka "SONAME") variant to
Chris@69 1529 provide on AIX, [default=aix].
Chris@69 1530 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Chris@69 1531 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
Chris@69 1532 compiler's sysroot if not specified).
Chris@69 1533 --with-NE10=PFX Prefix where libNE10 is installed (optional)
Chris@69 1534 --with-NE10-libraries=DIR
Chris@69 1535 Directory where libNE10 library is installed
Chris@69 1536 (optional)
Chris@69 1537 --with-NE10-includes=DIR
Chris@69 1538 Directory where libNE10 header files are installed
Chris@69 1539 (optional)
Chris@69 1540
Chris@69 1541 Some influential environment variables:
Chris@69 1542 CC C compiler command
Chris@69 1543 CFLAGS C compiler flags
Chris@69 1544 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
Chris@69 1545 nonstandard directory <lib dir>
Chris@69 1546 LIBS libraries to pass to the linker, e.g. -l<library>
Chris@69 1547 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Chris@69 1548 you have headers in a nonstandard directory <include dir>
Chris@69 1549 LT_SYS_LIBRARY_PATH
Chris@69 1550 User-defined run-time library search path.
Chris@69 1551 CPP C preprocessor
Chris@69 1552 CCAS assembler compiler command (defaults to CC)
Chris@69 1553 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
Chris@69 1554 X86_SSE_CFLAGS
Chris@69 1555 C compiler flags to compile SSE intrinsics [default=-msse]
Chris@69 1556 X86_SSE2_CFLAGS
Chris@69 1557 C compiler flags to compile SSE2 intrinsics [default=-msse2]
Chris@69 1558 X86_SSE4_1_CFLAGS
Chris@69 1559 C compiler flags to compile SSE4.1 intrinsics [default=-msse4.1]
Chris@69 1560 X86_AVX_CFLAGS
Chris@69 1561 C compiler flags to compile AVX intrinsics [default=-mavx]
Chris@69 1562 ARM_NEON_INTR_CFLAGS
Chris@69 1563 C compiler flags to compile ARM NEON intrinsics
Chris@69 1564 [default=-mfpu=neon / -mfpu=neon -mfloat-abi=softfp]
Chris@69 1565
Chris@69 1566 Use these variables to override the choices made by `configure' or to help
Chris@69 1567 it to find libraries and programs with nonstandard names/locations.
Chris@69 1568
Chris@69 1569 Report bugs to <opus@xiph.org>.
Chris@69 1570 _ACEOF
Chris@69 1571 ac_status=$?
Chris@69 1572 fi
Chris@69 1573
Chris@69 1574 if test "$ac_init_help" = "recursive"; then
Chris@69 1575 # If there are subdirs, report their specific --help.
Chris@69 1576 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Chris@69 1577 test -d "$ac_dir" ||
Chris@69 1578 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
Chris@69 1579 continue
Chris@69 1580 ac_builddir=.
Chris@69 1581
Chris@69 1582 case "$ac_dir" in
Chris@69 1583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@69 1584 *)
Chris@69 1585 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Chris@69 1586 # A ".." for each directory in $ac_dir_suffix.
Chris@69 1587 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Chris@69 1588 case $ac_top_builddir_sub in
Chris@69 1589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@69 1590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@69 1591 esac ;;
Chris@69 1592 esac
Chris@69 1593 ac_abs_top_builddir=$ac_pwd
Chris@69 1594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@69 1595 # for backward compatibility:
Chris@69 1596 ac_top_builddir=$ac_top_build_prefix
Chris@69 1597
Chris@69 1598 case $srcdir in
Chris@69 1599 .) # We are building in place.
Chris@69 1600 ac_srcdir=.
Chris@69 1601 ac_top_srcdir=$ac_top_builddir_sub
Chris@69 1602 ac_abs_top_srcdir=$ac_pwd ;;
Chris@69 1603 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@69 1604 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@69 1605 ac_top_srcdir=$srcdir
Chris@69 1606 ac_abs_top_srcdir=$srcdir ;;
Chris@69 1607 *) # Relative name.
Chris@69 1608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@69 1609 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@69 1610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@69 1611 esac
Chris@69 1612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@69 1613
Chris@69 1614 cd "$ac_dir" || { ac_status=$?; continue; }
Chris@69 1615 # Check for guested configure.
Chris@69 1616 if test -f "$ac_srcdir/configure.gnu"; then
Chris@69 1617 echo &&
Chris@69 1618 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
Chris@69 1619 elif test -f "$ac_srcdir/configure"; then
Chris@69 1620 echo &&
Chris@69 1621 $SHELL "$ac_srcdir/configure" --help=recursive
Chris@69 1622 else
Chris@69 1623 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Chris@69 1624 fi || ac_status=$?
Chris@69 1625 cd "$ac_pwd" || { ac_status=$?; break; }
Chris@69 1626 done
Chris@69 1627 fi
Chris@69 1628
Chris@69 1629 test -n "$ac_init_help" && exit $ac_status
Chris@69 1630 if $ac_init_version; then
Chris@69 1631 cat <<\_ACEOF
Chris@69 1632 opus configure 1.3
Chris@69 1633 generated by GNU Autoconf 2.69
Chris@69 1634
Chris@69 1635 Copyright (C) 2012 Free Software Foundation, Inc.
Chris@69 1636 This configure script is free software; the Free Software Foundation
Chris@69 1637 gives unlimited permission to copy, distribute and modify it.
Chris@69 1638 _ACEOF
Chris@69 1639 exit
Chris@69 1640 fi
Chris@69 1641
Chris@69 1642 ## ------------------------ ##
Chris@69 1643 ## Autoconf initialization. ##
Chris@69 1644 ## ------------------------ ##
Chris@69 1645
Chris@69 1646 # ac_fn_c_try_compile LINENO
Chris@69 1647 # --------------------------
Chris@69 1648 # Try to compile conftest.$ac_ext, and return whether this succeeded.
Chris@69 1649 ac_fn_c_try_compile ()
Chris@69 1650 {
Chris@69 1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@69 1652 rm -f conftest.$ac_objext
Chris@69 1653 if { { ac_try="$ac_compile"
Chris@69 1654 case "(($ac_try" in
Chris@69 1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@69 1656 *) ac_try_echo=$ac_try;;
Chris@69 1657 esac
Chris@69 1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@69 1659 $as_echo "$ac_try_echo"; } >&5
Chris@69 1660 (eval "$ac_compile") 2>conftest.err
Chris@69 1661 ac_status=$?
Chris@69 1662 if test -s conftest.err; then
Chris@69 1663 grep -v '^ *+' conftest.err >conftest.er1
Chris@69 1664 cat conftest.er1 >&5
Chris@69 1665 mv -f conftest.er1 conftest.err
Chris@69 1666 fi
Chris@69 1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 1668 test $ac_status = 0; } && {
Chris@69 1669 test -z "$ac_c_werror_flag" ||
Chris@69 1670 test ! -s conftest.err
Chris@69 1671 } && test -s conftest.$ac_objext; then :
Chris@69 1672 ac_retval=0
Chris@69 1673 else
Chris@69 1674 $as_echo "$as_me: failed program was:" >&5
Chris@69 1675 sed 's/^/| /' conftest.$ac_ext >&5
Chris@69 1676
Chris@69 1677 ac_retval=1
Chris@69 1678 fi
Chris@69 1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@69 1680 as_fn_set_status $ac_retval
Chris@69 1681
Chris@69 1682 } # ac_fn_c_try_compile
Chris@69 1683
Chris@69 1684 # ac_fn_c_try_link LINENO
Chris@69 1685 # -----------------------
Chris@69 1686 # Try to link conftest.$ac_ext, and return whether this succeeded.
Chris@69 1687 ac_fn_c_try_link ()
Chris@69 1688 {
Chris@69 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@69 1690 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@69 1691 if { { ac_try="$ac_link"
Chris@69 1692 case "(($ac_try" in
Chris@69 1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@69 1694 *) ac_try_echo=$ac_try;;
Chris@69 1695 esac
Chris@69 1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@69 1697 $as_echo "$ac_try_echo"; } >&5
Chris@69 1698 (eval "$ac_link") 2>conftest.err
Chris@69 1699 ac_status=$?
Chris@69 1700 if test -s conftest.err; then
Chris@69 1701 grep -v '^ *+' conftest.err >conftest.er1
Chris@69 1702 cat conftest.er1 >&5
Chris@69 1703 mv -f conftest.er1 conftest.err
Chris@69 1704 fi
Chris@69 1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 1706 test $ac_status = 0; } && {
Chris@69 1707 test -z "$ac_c_werror_flag" ||
Chris@69 1708 test ! -s conftest.err
Chris@69 1709 } && test -s conftest$ac_exeext && {
Chris@69 1710 test "$cross_compiling" = yes ||
Chris@69 1711 test -x conftest$ac_exeext
Chris@69 1712 }; then :
Chris@69 1713 ac_retval=0
Chris@69 1714 else
Chris@69 1715 $as_echo "$as_me: failed program was:" >&5
Chris@69 1716 sed 's/^/| /' conftest.$ac_ext >&5
Chris@69 1717
Chris@69 1718 ac_retval=1
Chris@69 1719 fi
Chris@69 1720 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
Chris@69 1721 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
Chris@69 1722 # interfere with the next link command; also delete a directory that is
Chris@69 1723 # left behind by Apple's compiler. We do this before executing the actions.
Chris@69 1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@69 1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@69 1726 as_fn_set_status $ac_retval
Chris@69 1727
Chris@69 1728 } # ac_fn_c_try_link
Chris@69 1729
Chris@69 1730 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
Chris@69 1731 # -------------------------------------------------------
Chris@69 1732 # Tests whether HEADER exists and can be compiled using the include files in
Chris@69 1733 # INCLUDES, setting the cache variable VAR accordingly.
Chris@69 1734 ac_fn_c_check_header_compile ()
Chris@69 1735 {
Chris@69 1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@69 1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@69 1738 $as_echo_n "checking for $2... " >&6; }
Chris@69 1739 if eval \${$3+:} false; then :
Chris@69 1740 $as_echo_n "(cached) " >&6
Chris@69 1741 else
Chris@69 1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 1743 /* end confdefs.h. */
Chris@69 1744 $4
Chris@69 1745 #include <$2>
Chris@69 1746 _ACEOF
Chris@69 1747 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 1748 eval "$3=yes"
Chris@69 1749 else
Chris@69 1750 eval "$3=no"
Chris@69 1751 fi
Chris@69 1752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 1753 fi
Chris@69 1754 eval ac_res=\$$3
Chris@69 1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@69 1756 $as_echo "$ac_res" >&6; }
Chris@69 1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@69 1758
Chris@69 1759 } # ac_fn_c_check_header_compile
Chris@69 1760
Chris@69 1761 # ac_fn_c_try_cpp LINENO
Chris@69 1762 # ----------------------
Chris@69 1763 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
Chris@69 1764 ac_fn_c_try_cpp ()
Chris@69 1765 {
Chris@69 1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@69 1767 if { { ac_try="$ac_cpp conftest.$ac_ext"
Chris@69 1768 case "(($ac_try" in
Chris@69 1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@69 1770 *) ac_try_echo=$ac_try;;
Chris@69 1771 esac
Chris@69 1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@69 1773 $as_echo "$ac_try_echo"; } >&5
Chris@69 1774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
Chris@69 1775 ac_status=$?
Chris@69 1776 if test -s conftest.err; then
Chris@69 1777 grep -v '^ *+' conftest.err >conftest.er1
Chris@69 1778 cat conftest.er1 >&5
Chris@69 1779 mv -f conftest.er1 conftest.err
Chris@69 1780 fi
Chris@69 1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 1782 test $ac_status = 0; } > conftest.i && {
Chris@69 1783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
Chris@69 1784 test ! -s conftest.err
Chris@69 1785 }; then :
Chris@69 1786 ac_retval=0
Chris@69 1787 else
Chris@69 1788 $as_echo "$as_me: failed program was:" >&5
Chris@69 1789 sed 's/^/| /' conftest.$ac_ext >&5
Chris@69 1790
Chris@69 1791 ac_retval=1
Chris@69 1792 fi
Chris@69 1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@69 1794 as_fn_set_status $ac_retval
Chris@69 1795
Chris@69 1796 } # ac_fn_c_try_cpp
Chris@69 1797
Chris@69 1798 # ac_fn_c_try_run LINENO
Chris@69 1799 # ----------------------
Chris@69 1800 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
Chris@69 1801 # that executables *can* be run.
Chris@69 1802 ac_fn_c_try_run ()
Chris@69 1803 {
Chris@69 1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@69 1805 if { { ac_try="$ac_link"
Chris@69 1806 case "(($ac_try" in
Chris@69 1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@69 1808 *) ac_try_echo=$ac_try;;
Chris@69 1809 esac
Chris@69 1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@69 1811 $as_echo "$ac_try_echo"; } >&5
Chris@69 1812 (eval "$ac_link") 2>&5
Chris@69 1813 ac_status=$?
Chris@69 1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 1815 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
Chris@69 1816 { { case "(($ac_try" in
Chris@69 1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@69 1818 *) ac_try_echo=$ac_try;;
Chris@69 1819 esac
Chris@69 1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@69 1821 $as_echo "$ac_try_echo"; } >&5
Chris@69 1822 (eval "$ac_try") 2>&5
Chris@69 1823 ac_status=$?
Chris@69 1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 1825 test $ac_status = 0; }; }; then :
Chris@69 1826 ac_retval=0
Chris@69 1827 else
Chris@69 1828 $as_echo "$as_me: program exited with status $ac_status" >&5
Chris@69 1829 $as_echo "$as_me: failed program was:" >&5
Chris@69 1830 sed 's/^/| /' conftest.$ac_ext >&5
Chris@69 1831
Chris@69 1832 ac_retval=$ac_status
Chris@69 1833 fi
Chris@69 1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@69 1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@69 1836 as_fn_set_status $ac_retval
Chris@69 1837
Chris@69 1838 } # ac_fn_c_try_run
Chris@69 1839
Chris@69 1840 # ac_fn_c_check_func LINENO FUNC VAR
Chris@69 1841 # ----------------------------------
Chris@69 1842 # Tests whether FUNC exists, setting the cache variable VAR accordingly
Chris@69 1843 ac_fn_c_check_func ()
Chris@69 1844 {
Chris@69 1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@69 1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@69 1847 $as_echo_n "checking for $2... " >&6; }
Chris@69 1848 if eval \${$3+:} false; then :
Chris@69 1849 $as_echo_n "(cached) " >&6
Chris@69 1850 else
Chris@69 1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 1852 /* end confdefs.h. */
Chris@69 1853 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
Chris@69 1854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
Chris@69 1855 #define $2 innocuous_$2
Chris@69 1856
Chris@69 1857 /* System header to define __stub macros and hopefully few prototypes,
Chris@69 1858 which can conflict with char $2 (); below.
Chris@69 1859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@69 1860 <limits.h> exists even on freestanding compilers. */
Chris@69 1861
Chris@69 1862 #ifdef __STDC__
Chris@69 1863 # include <limits.h>
Chris@69 1864 #else
Chris@69 1865 # include <assert.h>
Chris@69 1866 #endif
Chris@69 1867
Chris@69 1868 #undef $2
Chris@69 1869
Chris@69 1870 /* Override any GCC internal prototype to avoid an error.
Chris@69 1871 Use char because int might match the return type of a GCC
Chris@69 1872 builtin and then its argument prototype would still apply. */
Chris@69 1873 #ifdef __cplusplus
Chris@69 1874 extern "C"
Chris@69 1875 #endif
Chris@69 1876 char $2 ();
Chris@69 1877 /* The GNU C library defines this for functions which it implements
Chris@69 1878 to always fail with ENOSYS. Some functions are actually named
Chris@69 1879 something starting with __ and the normal name is an alias. */
Chris@69 1880 #if defined __stub_$2 || defined __stub___$2
Chris@69 1881 choke me
Chris@69 1882 #endif
Chris@69 1883
Chris@69 1884 int
Chris@69 1885 main ()
Chris@69 1886 {
Chris@69 1887 return $2 ();
Chris@69 1888 ;
Chris@69 1889 return 0;
Chris@69 1890 }
Chris@69 1891 _ACEOF
Chris@69 1892 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 1893 eval "$3=yes"
Chris@69 1894 else
Chris@69 1895 eval "$3=no"
Chris@69 1896 fi
Chris@69 1897 rm -f core conftest.err conftest.$ac_objext \
Chris@69 1898 conftest$ac_exeext conftest.$ac_ext
Chris@69 1899 fi
Chris@69 1900 eval ac_res=\$$3
Chris@69 1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@69 1902 $as_echo "$ac_res" >&6; }
Chris@69 1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@69 1904
Chris@69 1905 } # ac_fn_c_check_func
Chris@69 1906
Chris@69 1907 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
Chris@69 1908 # -------------------------------------------------------
Chris@69 1909 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
Chris@69 1910 # the include files in INCLUDES and setting the cache variable VAR
Chris@69 1911 # accordingly.
Chris@69 1912 ac_fn_c_check_header_mongrel ()
Chris@69 1913 {
Chris@69 1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@69 1915 if eval \${$3+:} false; then :
Chris@69 1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@69 1917 $as_echo_n "checking for $2... " >&6; }
Chris@69 1918 if eval \${$3+:} false; then :
Chris@69 1919 $as_echo_n "(cached) " >&6
Chris@69 1920 fi
Chris@69 1921 eval ac_res=\$$3
Chris@69 1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@69 1923 $as_echo "$ac_res" >&6; }
Chris@69 1924 else
Chris@69 1925 # Is the header compilable?
Chris@69 1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
Chris@69 1927 $as_echo_n "checking $2 usability... " >&6; }
Chris@69 1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 1929 /* end confdefs.h. */
Chris@69 1930 $4
Chris@69 1931 #include <$2>
Chris@69 1932 _ACEOF
Chris@69 1933 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 1934 ac_header_compiler=yes
Chris@69 1935 else
Chris@69 1936 ac_header_compiler=no
Chris@69 1937 fi
Chris@69 1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
Chris@69 1940 $as_echo "$ac_header_compiler" >&6; }
Chris@69 1941
Chris@69 1942 # Is the header present?
Chris@69 1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
Chris@69 1944 $as_echo_n "checking $2 presence... " >&6; }
Chris@69 1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 1946 /* end confdefs.h. */
Chris@69 1947 #include <$2>
Chris@69 1948 _ACEOF
Chris@69 1949 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@69 1950 ac_header_preproc=yes
Chris@69 1951 else
Chris@69 1952 ac_header_preproc=no
Chris@69 1953 fi
Chris@69 1954 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@69 1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
Chris@69 1956 $as_echo "$ac_header_preproc" >&6; }
Chris@69 1957
Chris@69 1958 # So? What about this header?
Chris@69 1959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
Chris@69 1960 yes:no: )
Chris@69 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
Chris@69 1962 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
Chris@69 1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
Chris@69 1964 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Chris@69 1965 ;;
Chris@69 1966 no:yes:* )
Chris@69 1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
Chris@69 1968 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
Chris@69 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
Chris@69 1970 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
Chris@69 1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
Chris@69 1972 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
Chris@69 1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
Chris@69 1974 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
Chris@69 1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
Chris@69 1976 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Chris@69 1977 ( $as_echo "## ---------------------------- ##
Chris@69 1978 ## Report this to opus@xiph.org ##
Chris@69 1979 ## ---------------------------- ##"
Chris@69 1980 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris@69 1981 ;;
Chris@69 1982 esac
Chris@69 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@69 1984 $as_echo_n "checking for $2... " >&6; }
Chris@69 1985 if eval \${$3+:} false; then :
Chris@69 1986 $as_echo_n "(cached) " >&6
Chris@69 1987 else
Chris@69 1988 eval "$3=\$ac_header_compiler"
Chris@69 1989 fi
Chris@69 1990 eval ac_res=\$$3
Chris@69 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@69 1992 $as_echo "$ac_res" >&6; }
Chris@69 1993 fi
Chris@69 1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@69 1995
Chris@69 1996 } # ac_fn_c_check_header_mongrel
Chris@69 1997 cat >config.log <<_ACEOF
Chris@69 1998 This file contains any messages produced by compilers while
Chris@69 1999 running configure, to aid debugging if configure makes a mistake.
Chris@69 2000
Chris@69 2001 It was created by opus $as_me 1.3, which was
Chris@69 2002 generated by GNU Autoconf 2.69. Invocation command line was
Chris@69 2003
Chris@69 2004 $ $0 $@
Chris@69 2005
Chris@69 2006 _ACEOF
Chris@69 2007 exec 5>>config.log
Chris@69 2008 {
Chris@69 2009 cat <<_ASUNAME
Chris@69 2010 ## --------- ##
Chris@69 2011 ## Platform. ##
Chris@69 2012 ## --------- ##
Chris@69 2013
Chris@69 2014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@69 2015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
Chris@69 2016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
Chris@69 2017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
Chris@69 2018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
Chris@69 2019
Chris@69 2020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
Chris@69 2021 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
Chris@69 2022
Chris@69 2023 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
Chris@69 2024 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
Chris@69 2025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Chris@69 2026 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Chris@69 2027 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
Chris@69 2028 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
Chris@69 2029 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
Chris@69 2030
Chris@69 2031 _ASUNAME
Chris@69 2032
Chris@69 2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 2034 for as_dir in $PATH
Chris@69 2035 do
Chris@69 2036 IFS=$as_save_IFS
Chris@69 2037 test -z "$as_dir" && as_dir=.
Chris@69 2038 $as_echo "PATH: $as_dir"
Chris@69 2039 done
Chris@69 2040 IFS=$as_save_IFS
Chris@69 2041
Chris@69 2042 } >&5
Chris@69 2043
Chris@69 2044 cat >&5 <<_ACEOF
Chris@69 2045
Chris@69 2046
Chris@69 2047 ## ----------- ##
Chris@69 2048 ## Core tests. ##
Chris@69 2049 ## ----------- ##
Chris@69 2050
Chris@69 2051 _ACEOF
Chris@69 2052
Chris@69 2053
Chris@69 2054 # Keep a trace of the command line.
Chris@69 2055 # Strip out --no-create and --no-recursion so they do not pile up.
Chris@69 2056 # Strip out --silent because we don't want to record it for future runs.
Chris@69 2057 # Also quote any args containing shell meta-characters.
Chris@69 2058 # Make two passes to allow for proper duplicate-argument suppression.
Chris@69 2059 ac_configure_args=
Chris@69 2060 ac_configure_args0=
Chris@69 2061 ac_configure_args1=
Chris@69 2062 ac_must_keep_next=false
Chris@69 2063 for ac_pass in 1 2
Chris@69 2064 do
Chris@69 2065 for ac_arg
Chris@69 2066 do
Chris@69 2067 case $ac_arg in
Chris@69 2068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
Chris@69 2069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@69 2070 | -silent | --silent | --silen | --sile | --sil)
Chris@69 2071 continue ;;
Chris@69 2072 *\'*)
Chris@69 2073 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@69 2074 esac
Chris@69 2075 case $ac_pass in
Chris@69 2076 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Chris@69 2077 2)
Chris@69 2078 as_fn_append ac_configure_args1 " '$ac_arg'"
Chris@69 2079 if test $ac_must_keep_next = true; then
Chris@69 2080 ac_must_keep_next=false # Got value, back to normal.
Chris@69 2081 else
Chris@69 2082 case $ac_arg in
Chris@69 2083 *=* | --config-cache | -C | -disable-* | --disable-* \
Chris@69 2084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
Chris@69 2085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
Chris@69 2086 | -with-* | --with-* | -without-* | --without-* | --x)
Chris@69 2087 case "$ac_configure_args0 " in
Chris@69 2088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
Chris@69 2089 esac
Chris@69 2090 ;;
Chris@69 2091 -* ) ac_must_keep_next=true ;;
Chris@69 2092 esac
Chris@69 2093 fi
Chris@69 2094 as_fn_append ac_configure_args " '$ac_arg'"
Chris@69 2095 ;;
Chris@69 2096 esac
Chris@69 2097 done
Chris@69 2098 done
Chris@69 2099 { ac_configure_args0=; unset ac_configure_args0;}
Chris@69 2100 { ac_configure_args1=; unset ac_configure_args1;}
Chris@69 2101
Chris@69 2102 # When interrupted or exit'd, cleanup temporary files, and complete
Chris@69 2103 # config.log. We remove comments because anyway the quotes in there
Chris@69 2104 # would cause problems or look ugly.
Chris@69 2105 # WARNING: Use '\'' to represent an apostrophe within the trap.
Chris@69 2106 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Chris@69 2107 trap 'exit_status=$?
Chris@69 2108 # Save into config.log some information that might help in debugging.
Chris@69 2109 {
Chris@69 2110 echo
Chris@69 2111
Chris@69 2112 $as_echo "## ---------------- ##
Chris@69 2113 ## Cache variables. ##
Chris@69 2114 ## ---------------- ##"
Chris@69 2115 echo
Chris@69 2116 # The following way of writing the cache mishandles newlines in values,
Chris@69 2117 (
Chris@69 2118 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
Chris@69 2119 eval ac_val=\$$ac_var
Chris@69 2120 case $ac_val in #(
Chris@69 2121 *${as_nl}*)
Chris@69 2122 case $ac_var in #(
Chris@69 2123 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Chris@69 2124 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Chris@69 2125 esac
Chris@69 2126 case $ac_var in #(
Chris@69 2127 _ | IFS | as_nl) ;; #(
Chris@69 2128 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Chris@69 2129 *) { eval $ac_var=; unset $ac_var;} ;;
Chris@69 2130 esac ;;
Chris@69 2131 esac
Chris@69 2132 done
Chris@69 2133 (set) 2>&1 |
Chris@69 2134 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
Chris@69 2135 *${as_nl}ac_space=\ *)
Chris@69 2136 sed -n \
Chris@69 2137 "s/'\''/'\''\\\\'\'''\''/g;
Chris@69 2138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
Chris@69 2139 ;; #(
Chris@69 2140 *)
Chris@69 2141 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@69 2142 ;;
Chris@69 2143 esac |
Chris@69 2144 sort
Chris@69 2145 )
Chris@69 2146 echo
Chris@69 2147
Chris@69 2148 $as_echo "## ----------------- ##
Chris@69 2149 ## Output variables. ##
Chris@69 2150 ## ----------------- ##"
Chris@69 2151 echo
Chris@69 2152 for ac_var in $ac_subst_vars
Chris@69 2153 do
Chris@69 2154 eval ac_val=\$$ac_var
Chris@69 2155 case $ac_val in
Chris@69 2156 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Chris@69 2157 esac
Chris@69 2158 $as_echo "$ac_var='\''$ac_val'\''"
Chris@69 2159 done | sort
Chris@69 2160 echo
Chris@69 2161
Chris@69 2162 if test -n "$ac_subst_files"; then
Chris@69 2163 $as_echo "## ------------------- ##
Chris@69 2164 ## File substitutions. ##
Chris@69 2165 ## ------------------- ##"
Chris@69 2166 echo
Chris@69 2167 for ac_var in $ac_subst_files
Chris@69 2168 do
Chris@69 2169 eval ac_val=\$$ac_var
Chris@69 2170 case $ac_val in
Chris@69 2171 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Chris@69 2172 esac
Chris@69 2173 $as_echo "$ac_var='\''$ac_val'\''"
Chris@69 2174 done | sort
Chris@69 2175 echo
Chris@69 2176 fi
Chris@69 2177
Chris@69 2178 if test -s confdefs.h; then
Chris@69 2179 $as_echo "## ----------- ##
Chris@69 2180 ## confdefs.h. ##
Chris@69 2181 ## ----------- ##"
Chris@69 2182 echo
Chris@69 2183 cat confdefs.h
Chris@69 2184 echo
Chris@69 2185 fi
Chris@69 2186 test "$ac_signal" != 0 &&
Chris@69 2187 $as_echo "$as_me: caught signal $ac_signal"
Chris@69 2188 $as_echo "$as_me: exit $exit_status"
Chris@69 2189 } >&5
Chris@69 2190 rm -f core *.core core.conftest.* &&
Chris@69 2191 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Chris@69 2192 exit $exit_status
Chris@69 2193 ' 0
Chris@69 2194 for ac_signal in 1 2 13 15; do
Chris@69 2195 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Chris@69 2196 done
Chris@69 2197 ac_signal=0
Chris@69 2198
Chris@69 2199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
Chris@69 2200 rm -f -r conftest* confdefs.h
Chris@69 2201
Chris@69 2202 $as_echo "/* confdefs.h */" > confdefs.h
Chris@69 2203
Chris@69 2204 # Predefined preprocessor variables.
Chris@69 2205
Chris@69 2206 cat >>confdefs.h <<_ACEOF
Chris@69 2207 #define PACKAGE_NAME "$PACKAGE_NAME"
Chris@69 2208 _ACEOF
Chris@69 2209
Chris@69 2210 cat >>confdefs.h <<_ACEOF
Chris@69 2211 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
Chris@69 2212 _ACEOF
Chris@69 2213
Chris@69 2214 cat >>confdefs.h <<_ACEOF
Chris@69 2215 #define PACKAGE_VERSION "$PACKAGE_VERSION"
Chris@69 2216 _ACEOF
Chris@69 2217
Chris@69 2218 cat >>confdefs.h <<_ACEOF
Chris@69 2219 #define PACKAGE_STRING "$PACKAGE_STRING"
Chris@69 2220 _ACEOF
Chris@69 2221
Chris@69 2222 cat >>confdefs.h <<_ACEOF
Chris@69 2223 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Chris@69 2224 _ACEOF
Chris@69 2225
Chris@69 2226 cat >>confdefs.h <<_ACEOF
Chris@69 2227 #define PACKAGE_URL "$PACKAGE_URL"
Chris@69 2228 _ACEOF
Chris@69 2229
Chris@69 2230
Chris@69 2231 # Let the site file select an alternate cache file if it wants to.
Chris@69 2232 # Prefer an explicitly selected file to automatically selected ones.
Chris@69 2233 ac_site_file1=NONE
Chris@69 2234 ac_site_file2=NONE
Chris@69 2235 if test -n "$CONFIG_SITE"; then
Chris@69 2236 # We do not want a PATH search for config.site.
Chris@69 2237 case $CONFIG_SITE in #((
Chris@69 2238 -*) ac_site_file1=./$CONFIG_SITE;;
Chris@69 2239 */*) ac_site_file1=$CONFIG_SITE;;
Chris@69 2240 *) ac_site_file1=./$CONFIG_SITE;;
Chris@69 2241 esac
Chris@69 2242 elif test "x$prefix" != xNONE; then
Chris@69 2243 ac_site_file1=$prefix/share/config.site
Chris@69 2244 ac_site_file2=$prefix/etc/config.site
Chris@69 2245 else
Chris@69 2246 ac_site_file1=$ac_default_prefix/share/config.site
Chris@69 2247 ac_site_file2=$ac_default_prefix/etc/config.site
Chris@69 2248 fi
Chris@69 2249 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Chris@69 2250 do
Chris@69 2251 test "x$ac_site_file" = xNONE && continue
Chris@69 2252 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Chris@69 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Chris@69 2254 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
Chris@69 2255 sed 's/^/| /' "$ac_site_file" >&5
Chris@69 2256 . "$ac_site_file" \
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_fn_error $? "failed to load site script $ac_site_file
Chris@69 2260 See \`config.log' for more details" "$LINENO" 5; }
Chris@69 2261 fi
Chris@69 2262 done
Chris@69 2263
Chris@69 2264 if test -r "$cache_file"; then
Chris@69 2265 # Some versions of bash will fail to source /dev/null (special files
Chris@69 2266 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
Chris@69 2267 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Chris@69 2268 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Chris@69 2269 $as_echo "$as_me: loading cache $cache_file" >&6;}
Chris@69 2270 case $cache_file in
Chris@69 2271 [\\/]* | ?:[\\/]* ) . "$cache_file";;
Chris@69 2272 *) . "./$cache_file";;
Chris@69 2273 esac
Chris@69 2274 fi
Chris@69 2275 else
Chris@69 2276 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Chris@69 2277 $as_echo "$as_me: creating cache $cache_file" >&6;}
Chris@69 2278 >$cache_file
Chris@69 2279 fi
Chris@69 2280
Chris@69 2281 # Check that the precious variables saved in the cache have kept the same
Chris@69 2282 # value.
Chris@69 2283 ac_cache_corrupted=false
Chris@69 2284 for ac_var in $ac_precious_vars; do
Chris@69 2285 eval ac_old_set=\$ac_cv_env_${ac_var}_set
Chris@69 2286 eval ac_new_set=\$ac_env_${ac_var}_set
Chris@69 2287 eval ac_old_val=\$ac_cv_env_${ac_var}_value
Chris@69 2288 eval ac_new_val=\$ac_env_${ac_var}_value
Chris@69 2289 case $ac_old_set,$ac_new_set in
Chris@69 2290 set,)
Chris@69 2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Chris@69 2292 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Chris@69 2293 ac_cache_corrupted=: ;;
Chris@69 2294 ,set)
Chris@69 2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Chris@69 2296 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Chris@69 2297 ac_cache_corrupted=: ;;
Chris@69 2298 ,);;
Chris@69 2299 *)
Chris@69 2300 if test "x$ac_old_val" != "x$ac_new_val"; then
Chris@69 2301 # differences in whitespace do not lead to failure.
Chris@69 2302 ac_old_val_w=`echo x $ac_old_val`
Chris@69 2303 ac_new_val_w=`echo x $ac_new_val`
Chris@69 2304 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Chris@69 2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Chris@69 2306 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Chris@69 2307 ac_cache_corrupted=:
Chris@69 2308 else
Chris@69 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Chris@69 2310 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
Chris@69 2311 eval $ac_var=\$ac_old_val
Chris@69 2312 fi
Chris@69 2313 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Chris@69 2314 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Chris@69 2315 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Chris@69 2316 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Chris@69 2317 fi;;
Chris@69 2318 esac
Chris@69 2319 # Pass precious variables to config.status.
Chris@69 2320 if test "$ac_new_set" = set; then
Chris@69 2321 case $ac_new_val in
Chris@69 2322 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@69 2323 *) ac_arg=$ac_var=$ac_new_val ;;
Chris@69 2324 esac
Chris@69 2325 case " $ac_configure_args " in
Chris@69 2326 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Chris@69 2327 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Chris@69 2328 esac
Chris@69 2329 fi
Chris@69 2330 done
Chris@69 2331 if $ac_cache_corrupted; then
Chris@69 2332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@69 2333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@69 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Chris@69 2335 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Chris@69 2336 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Chris@69 2337 fi
Chris@69 2338 ## -------------------- ##
Chris@69 2339 ## Main body of script. ##
Chris@69 2340 ## -------------------- ##
Chris@69 2341
Chris@69 2342 ac_ext=c
Chris@69 2343 ac_cpp='$CPP $CPPFLAGS'
Chris@69 2344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@69 2345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@69 2346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@69 2347
Chris@69 2348
Chris@69 2349
Chris@69 2350
Chris@69 2351
Chris@69 2352
Chris@69 2353 # Check whether --enable-silent-rules was given.
Chris@69 2354 if test "${enable_silent_rules+set}" = set; then :
Chris@69 2355 enableval=$enable_silent_rules;
Chris@69 2356 fi
Chris@69 2357
Chris@69 2358 case $enable_silent_rules in # (((
Chris@69 2359 yes) AM_DEFAULT_VERBOSITY=0;;
Chris@69 2360 no) AM_DEFAULT_VERBOSITY=1;;
Chris@69 2361 *) AM_DEFAULT_VERBOSITY=0;;
Chris@69 2362 esac
Chris@69 2363 am_make=${MAKE-make}
Chris@69 2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
Chris@69 2365 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
Chris@69 2366 if ${am_cv_make_support_nested_variables+:} false; then :
Chris@69 2367 $as_echo_n "(cached) " >&6
Chris@69 2368 else
Chris@69 2369 if $as_echo 'TRUE=$(BAR$(V))
Chris@69 2370 BAR0=false
Chris@69 2371 BAR1=true
Chris@69 2372 V=1
Chris@69 2373 am__doit:
Chris@69 2374 @$(TRUE)
Chris@69 2375 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
Chris@69 2376 am_cv_make_support_nested_variables=yes
Chris@69 2377 else
Chris@69 2378 am_cv_make_support_nested_variables=no
Chris@69 2379 fi
Chris@69 2380 fi
Chris@69 2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
Chris@69 2382 $as_echo "$am_cv_make_support_nested_variables" >&6; }
Chris@69 2383 if test $am_cv_make_support_nested_variables = yes; then
Chris@69 2384 AM_V='$(V)'
Chris@69 2385 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
Chris@69 2386 else
Chris@69 2387 AM_V=$AM_DEFAULT_VERBOSITY
Chris@69 2388 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
Chris@69 2389 fi
Chris@69 2390 AM_BACKSLASH='\'
Chris@69 2391
Chris@69 2392
Chris@69 2393 # For libtool.
Chris@69 2394 OPUS_LT_CURRENT=7
Chris@69 2395 OPUS_LT_REVISION=0
Chris@69 2396 OPUS_LT_AGE=7
Chris@69 2397
Chris@69 2398
Chris@69 2399
Chris@69 2400
Chris@69 2401
Chris@69 2402 am__api_version='1.15'
Chris@69 2403
Chris@69 2404 ac_aux_dir=
Chris@69 2405 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Chris@69 2406 if test -f "$ac_dir/install-sh"; then
Chris@69 2407 ac_aux_dir=$ac_dir
Chris@69 2408 ac_install_sh="$ac_aux_dir/install-sh -c"
Chris@69 2409 break
Chris@69 2410 elif test -f "$ac_dir/install.sh"; then
Chris@69 2411 ac_aux_dir=$ac_dir
Chris@69 2412 ac_install_sh="$ac_aux_dir/install.sh -c"
Chris@69 2413 break
Chris@69 2414 elif test -f "$ac_dir/shtool"; then
Chris@69 2415 ac_aux_dir=$ac_dir
Chris@69 2416 ac_install_sh="$ac_aux_dir/shtool install -c"
Chris@69 2417 break
Chris@69 2418 fi
Chris@69 2419 done
Chris@69 2420 if test -z "$ac_aux_dir"; then
Chris@69 2421 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Chris@69 2422 fi
Chris@69 2423
Chris@69 2424 # These three variables are undocumented and unsupported,
Chris@69 2425 # and are intended to be withdrawn in a future Autoconf release.
Chris@69 2426 # They can cause serious problems if a builder's source tree is in a directory
Chris@69 2427 # whose full name contains unusual characters.
Chris@69 2428 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
Chris@69 2429 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
Chris@69 2430 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Chris@69 2431
Chris@69 2432
Chris@69 2433 # Find a good install program. We prefer a C program (faster),
Chris@69 2434 # so one script is as good as another. But avoid the broken or
Chris@69 2435 # incompatible versions:
Chris@69 2436 # SysV /etc/install, /usr/sbin/install
Chris@69 2437 # SunOS /usr/etc/install
Chris@69 2438 # IRIX /sbin/install
Chris@69 2439 # AIX /bin/install
Chris@69 2440 # AmigaOS /C/install, which installs bootblocks on floppy discs
Chris@69 2441 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Chris@69 2442 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
Chris@69 2443 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Chris@69 2444 # OS/2's system install, which has a completely different semantic
Chris@69 2445 # ./install, which can be erroneously created by make from ./install.sh.
Chris@69 2446 # Reject install programs that cannot install multiple files.
Chris@69 2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Chris@69 2448 $as_echo_n "checking for a BSD-compatible install... " >&6; }
Chris@69 2449 if test -z "$INSTALL"; then
Chris@69 2450 if ${ac_cv_path_install+:} false; then :
Chris@69 2451 $as_echo_n "(cached) " >&6
Chris@69 2452 else
Chris@69 2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 2454 for as_dir in $PATH
Chris@69 2455 do
Chris@69 2456 IFS=$as_save_IFS
Chris@69 2457 test -z "$as_dir" && as_dir=.
Chris@69 2458 # Account for people who put trailing slashes in PATH elements.
Chris@69 2459 case $as_dir/ in #((
Chris@69 2460 ./ | .// | /[cC]/* | \
Chris@69 2461 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Chris@69 2462 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Chris@69 2463 /usr/ucb/* ) ;;
Chris@69 2464 *)
Chris@69 2465 # OSF1 and SCO ODT 3.0 have their own names for install.
Chris@69 2466 # Don't use installbsd from OSF since it installs stuff as root
Chris@69 2467 # by default.
Chris@69 2468 for ac_prog in ginstall scoinst install; do
Chris@69 2469 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 2470 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Chris@69 2471 if test $ac_prog = install &&
Chris@69 2472 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@69 2473 # AIX install. It has an incompatible calling convention.
Chris@69 2474 :
Chris@69 2475 elif test $ac_prog = install &&
Chris@69 2476 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@69 2477 # program-specific install script used by HP pwplus--don't use.
Chris@69 2478 :
Chris@69 2479 else
Chris@69 2480 rm -rf conftest.one conftest.two conftest.dir
Chris@69 2481 echo one > conftest.one
Chris@69 2482 echo two > conftest.two
Chris@69 2483 mkdir conftest.dir
Chris@69 2484 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
Chris@69 2485 test -s conftest.one && test -s conftest.two &&
Chris@69 2486 test -s conftest.dir/conftest.one &&
Chris@69 2487 test -s conftest.dir/conftest.two
Chris@69 2488 then
Chris@69 2489 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
Chris@69 2490 break 3
Chris@69 2491 fi
Chris@69 2492 fi
Chris@69 2493 fi
Chris@69 2494 done
Chris@69 2495 done
Chris@69 2496 ;;
Chris@69 2497 esac
Chris@69 2498
Chris@69 2499 done
Chris@69 2500 IFS=$as_save_IFS
Chris@69 2501
Chris@69 2502 rm -rf conftest.one conftest.two conftest.dir
Chris@69 2503
Chris@69 2504 fi
Chris@69 2505 if test "${ac_cv_path_install+set}" = set; then
Chris@69 2506 INSTALL=$ac_cv_path_install
Chris@69 2507 else
Chris@69 2508 # As a last resort, use the slow shell script. Don't cache a
Chris@69 2509 # value for INSTALL within a source directory, because that will
Chris@69 2510 # break other packages using the cache if that directory is
Chris@69 2511 # removed, or if the value is a relative name.
Chris@69 2512 INSTALL=$ac_install_sh
Chris@69 2513 fi
Chris@69 2514 fi
Chris@69 2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Chris@69 2516 $as_echo "$INSTALL" >&6; }
Chris@69 2517
Chris@69 2518 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
Chris@69 2519 # It thinks the first close brace ends the variable substitution.
Chris@69 2520 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Chris@69 2521
Chris@69 2522 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Chris@69 2523
Chris@69 2524 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Chris@69 2525
Chris@69 2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
Chris@69 2527 $as_echo_n "checking whether build environment is sane... " >&6; }
Chris@69 2528 # Reject unsafe characters in $srcdir or the absolute working directory
Chris@69 2529 # name. Accept space and tab only in the latter.
Chris@69 2530 am_lf='
Chris@69 2531 '
Chris@69 2532 case `pwd` in
Chris@69 2533 *[\\\"\#\$\&\'\`$am_lf]*)
Chris@69 2534 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Chris@69 2535 esac
Chris@69 2536 case $srcdir in
Chris@69 2537 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Chris@69 2538 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
Chris@69 2539 esac
Chris@69 2540
Chris@69 2541 # Do 'set' in a subshell so we don't clobber the current shell's
Chris@69 2542 # arguments. Must try -L first in case configure is actually a
Chris@69 2543 # symlink; some systems play weird games with the mod time of symlinks
Chris@69 2544 # (eg FreeBSD returns the mod time of the symlink's containing
Chris@69 2545 # directory).
Chris@69 2546 if (
Chris@69 2547 am_has_slept=no
Chris@69 2548 for am_try in 1 2; do
Chris@69 2549 echo "timestamp, slept: $am_has_slept" > conftest.file
Chris@69 2550 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Chris@69 2551 if test "$*" = "X"; then
Chris@69 2552 # -L didn't work.
Chris@69 2553 set X `ls -t "$srcdir/configure" conftest.file`
Chris@69 2554 fi
Chris@69 2555 if test "$*" != "X $srcdir/configure conftest.file" \
Chris@69 2556 && test "$*" != "X conftest.file $srcdir/configure"; then
Chris@69 2557
Chris@69 2558 # If neither matched, then we have a broken ls. This can happen
Chris@69 2559 # if, for instance, CONFIG_SHELL is bash and it inherits a
Chris@69 2560 # broken ls alias from the environment. This has actually
Chris@69 2561 # happened. Such a system could not be considered "sane".
Chris@69 2562 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
Chris@69 2563 alias in your environment" "$LINENO" 5
Chris@69 2564 fi
Chris@69 2565 if test "$2" = conftest.file || test $am_try -eq 2; then
Chris@69 2566 break
Chris@69 2567 fi
Chris@69 2568 # Just in case.
Chris@69 2569 sleep 1
Chris@69 2570 am_has_slept=yes
Chris@69 2571 done
Chris@69 2572 test "$2" = conftest.file
Chris@69 2573 )
Chris@69 2574 then
Chris@69 2575 # Ok.
Chris@69 2576 :
Chris@69 2577 else
Chris@69 2578 as_fn_error $? "newly created file is older than distributed files!
Chris@69 2579 Check your system clock" "$LINENO" 5
Chris@69 2580 fi
Chris@69 2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 2582 $as_echo "yes" >&6; }
Chris@69 2583 # If we didn't sleep, we still need to ensure time stamps of config.status and
Chris@69 2584 # generated files are strictly newer.
Chris@69 2585 am_sleep_pid=
Chris@69 2586 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
Chris@69 2587 ( sleep 1 ) &
Chris@69 2588 am_sleep_pid=$!
Chris@69 2589 fi
Chris@69 2590
Chris@69 2591 rm -f conftest.file
Chris@69 2592
Chris@69 2593 test "$program_prefix" != NONE &&
Chris@69 2594 program_transform_name="s&^&$program_prefix&;$program_transform_name"
Chris@69 2595 # Use a double $ so make ignores it.
Chris@69 2596 test "$program_suffix" != NONE &&
Chris@69 2597 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Chris@69 2598 # Double any \ or $.
Chris@69 2599 # By default was `s,x,x', remove it if useless.
Chris@69 2600 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
Chris@69 2601 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Chris@69 2602
Chris@69 2603 # Expand $ac_aux_dir to an absolute path.
Chris@69 2604 am_aux_dir=`cd "$ac_aux_dir" && pwd`
Chris@69 2605
Chris@69 2606 if test x"${MISSING+set}" != xset; then
Chris@69 2607 case $am_aux_dir in
Chris@69 2608 *\ * | *\ *)
Chris@69 2609 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
Chris@69 2610 *)
Chris@69 2611 MISSING="\${SHELL} $am_aux_dir/missing" ;;
Chris@69 2612 esac
Chris@69 2613 fi
Chris@69 2614 # Use eval to expand $SHELL
Chris@69 2615 if eval "$MISSING --is-lightweight"; then
Chris@69 2616 am_missing_run="$MISSING "
Chris@69 2617 else
Chris@69 2618 am_missing_run=
Chris@69 2619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
Chris@69 2620 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
Chris@69 2621 fi
Chris@69 2622
Chris@69 2623 if test x"${install_sh+set}" != xset; then
Chris@69 2624 case $am_aux_dir in
Chris@69 2625 *\ * | *\ *)
Chris@69 2626 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
Chris@69 2627 *)
Chris@69 2628 install_sh="\${SHELL} $am_aux_dir/install-sh"
Chris@69 2629 esac
Chris@69 2630 fi
Chris@69 2631
Chris@69 2632 # Installed binaries are usually stripped using 'strip' when the user
Chris@69 2633 # run "make install-strip". However 'strip' might not be the right
Chris@69 2634 # tool to use in cross-compilation environments, therefore Automake
Chris@69 2635 # will honor the 'STRIP' environment variable to overrule this program.
Chris@69 2636 if test "$cross_compiling" != no; then
Chris@69 2637 if test -n "$ac_tool_prefix"; then
Chris@69 2638 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Chris@69 2639 set dummy ${ac_tool_prefix}strip; ac_word=$2
Chris@69 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 2641 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 2642 if ${ac_cv_prog_STRIP+:} false; then :
Chris@69 2643 $as_echo_n "(cached) " >&6
Chris@69 2644 else
Chris@69 2645 if test -n "$STRIP"; then
Chris@69 2646 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
Chris@69 2647 else
Chris@69 2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 2649 for as_dir in $PATH
Chris@69 2650 do
Chris@69 2651 IFS=$as_save_IFS
Chris@69 2652 test -z "$as_dir" && as_dir=.
Chris@69 2653 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 2654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 2655 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Chris@69 2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 2657 break 2
Chris@69 2658 fi
Chris@69 2659 done
Chris@69 2660 done
Chris@69 2661 IFS=$as_save_IFS
Chris@69 2662
Chris@69 2663 fi
Chris@69 2664 fi
Chris@69 2665 STRIP=$ac_cv_prog_STRIP
Chris@69 2666 if test -n "$STRIP"; then
Chris@69 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Chris@69 2668 $as_echo "$STRIP" >&6; }
Chris@69 2669 else
Chris@69 2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 2671 $as_echo "no" >&6; }
Chris@69 2672 fi
Chris@69 2673
Chris@69 2674
Chris@69 2675 fi
Chris@69 2676 if test -z "$ac_cv_prog_STRIP"; then
Chris@69 2677 ac_ct_STRIP=$STRIP
Chris@69 2678 # Extract the first word of "strip", so it can be a program name with args.
Chris@69 2679 set dummy strip; ac_word=$2
Chris@69 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 2681 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 2682 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Chris@69 2683 $as_echo_n "(cached) " >&6
Chris@69 2684 else
Chris@69 2685 if test -n "$ac_ct_STRIP"; then
Chris@69 2686 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Chris@69 2687 else
Chris@69 2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 2689 for as_dir in $PATH
Chris@69 2690 do
Chris@69 2691 IFS=$as_save_IFS
Chris@69 2692 test -z "$as_dir" && as_dir=.
Chris@69 2693 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 2694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 2695 ac_cv_prog_ac_ct_STRIP="strip"
Chris@69 2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 2697 break 2
Chris@69 2698 fi
Chris@69 2699 done
Chris@69 2700 done
Chris@69 2701 IFS=$as_save_IFS
Chris@69 2702
Chris@69 2703 fi
Chris@69 2704 fi
Chris@69 2705 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
Chris@69 2706 if test -n "$ac_ct_STRIP"; then
Chris@69 2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Chris@69 2708 $as_echo "$ac_ct_STRIP" >&6; }
Chris@69 2709 else
Chris@69 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 2711 $as_echo "no" >&6; }
Chris@69 2712 fi
Chris@69 2713
Chris@69 2714 if test "x$ac_ct_STRIP" = x; then
Chris@69 2715 STRIP=":"
Chris@69 2716 else
Chris@69 2717 case $cross_compiling:$ac_tool_warned in
Chris@69 2718 yes:)
Chris@69 2719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 2720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 2721 ac_tool_warned=yes ;;
Chris@69 2722 esac
Chris@69 2723 STRIP=$ac_ct_STRIP
Chris@69 2724 fi
Chris@69 2725 else
Chris@69 2726 STRIP="$ac_cv_prog_STRIP"
Chris@69 2727 fi
Chris@69 2728
Chris@69 2729 fi
Chris@69 2730 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Chris@69 2731
Chris@69 2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
Chris@69 2733 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Chris@69 2734 if test -z "$MKDIR_P"; then
Chris@69 2735 if ${ac_cv_path_mkdir+:} false; then :
Chris@69 2736 $as_echo_n "(cached) " >&6
Chris@69 2737 else
Chris@69 2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 2739 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
Chris@69 2740 do
Chris@69 2741 IFS=$as_save_IFS
Chris@69 2742 test -z "$as_dir" && as_dir=.
Chris@69 2743 for ac_prog in mkdir gmkdir; do
Chris@69 2744 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 2745 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Chris@69 2746 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
Chris@69 2747 'mkdir (GNU coreutils) '* | \
Chris@69 2748 'mkdir (coreutils) '* | \
Chris@69 2749 'mkdir (fileutils) '4.1*)
Chris@69 2750 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
Chris@69 2751 break 3;;
Chris@69 2752 esac
Chris@69 2753 done
Chris@69 2754 done
Chris@69 2755 done
Chris@69 2756 IFS=$as_save_IFS
Chris@69 2757
Chris@69 2758 fi
Chris@69 2759
Chris@69 2760 test -d ./--version && rmdir ./--version
Chris@69 2761 if test "${ac_cv_path_mkdir+set}" = set; then
Chris@69 2762 MKDIR_P="$ac_cv_path_mkdir -p"
Chris@69 2763 else
Chris@69 2764 # As a last resort, use the slow shell script. Don't cache a
Chris@69 2765 # value for MKDIR_P within a source directory, because that will
Chris@69 2766 # break other packages using the cache if that directory is
Chris@69 2767 # removed, or if the value is a relative name.
Chris@69 2768 MKDIR_P="$ac_install_sh -d"
Chris@69 2769 fi
Chris@69 2770 fi
Chris@69 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
Chris@69 2772 $as_echo "$MKDIR_P" >&6; }
Chris@69 2773
Chris@69 2774 for ac_prog in gawk mawk nawk awk
Chris@69 2775 do
Chris@69 2776 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@69 2777 set dummy $ac_prog; ac_word=$2
Chris@69 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 2779 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 2780 if ${ac_cv_prog_AWK+:} false; then :
Chris@69 2781 $as_echo_n "(cached) " >&6
Chris@69 2782 else
Chris@69 2783 if test -n "$AWK"; then
Chris@69 2784 ac_cv_prog_AWK="$AWK" # Let the user override the test.
Chris@69 2785 else
Chris@69 2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 2787 for as_dir in $PATH
Chris@69 2788 do
Chris@69 2789 IFS=$as_save_IFS
Chris@69 2790 test -z "$as_dir" && as_dir=.
Chris@69 2791 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 2792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 2793 ac_cv_prog_AWK="$ac_prog"
Chris@69 2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 2795 break 2
Chris@69 2796 fi
Chris@69 2797 done
Chris@69 2798 done
Chris@69 2799 IFS=$as_save_IFS
Chris@69 2800
Chris@69 2801 fi
Chris@69 2802 fi
Chris@69 2803 AWK=$ac_cv_prog_AWK
Chris@69 2804 if test -n "$AWK"; then
Chris@69 2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Chris@69 2806 $as_echo "$AWK" >&6; }
Chris@69 2807 else
Chris@69 2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 2809 $as_echo "no" >&6; }
Chris@69 2810 fi
Chris@69 2811
Chris@69 2812
Chris@69 2813 test -n "$AWK" && break
Chris@69 2814 done
Chris@69 2815
Chris@69 2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Chris@69 2817 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
Chris@69 2818 set x ${MAKE-make}
Chris@69 2819 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Chris@69 2820 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Chris@69 2821 $as_echo_n "(cached) " >&6
Chris@69 2822 else
Chris@69 2823 cat >conftest.make <<\_ACEOF
Chris@69 2824 SHELL = /bin/sh
Chris@69 2825 all:
Chris@69 2826 @echo '@@@%%%=$(MAKE)=@@@%%%'
Chris@69 2827 _ACEOF
Chris@69 2828 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Chris@69 2829 case `${MAKE-make} -f conftest.make 2>/dev/null` in
Chris@69 2830 *@@@%%%=?*=@@@%%%*)
Chris@69 2831 eval ac_cv_prog_make_${ac_make}_set=yes;;
Chris@69 2832 *)
Chris@69 2833 eval ac_cv_prog_make_${ac_make}_set=no;;
Chris@69 2834 esac
Chris@69 2835 rm -f conftest.make
Chris@69 2836 fi
Chris@69 2837 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Chris@69 2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 2839 $as_echo "yes" >&6; }
Chris@69 2840 SET_MAKE=
Chris@69 2841 else
Chris@69 2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 2843 $as_echo "no" >&6; }
Chris@69 2844 SET_MAKE="MAKE=${MAKE-make}"
Chris@69 2845 fi
Chris@69 2846
Chris@69 2847 rm -rf .tst 2>/dev/null
Chris@69 2848 mkdir .tst 2>/dev/null
Chris@69 2849 if test -d .tst; then
Chris@69 2850 am__leading_dot=.
Chris@69 2851 else
Chris@69 2852 am__leading_dot=_
Chris@69 2853 fi
Chris@69 2854 rmdir .tst 2>/dev/null
Chris@69 2855
Chris@69 2856 if test "`cd $srcdir && pwd`" != "`pwd`"; then
Chris@69 2857 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
Chris@69 2858 # is not polluted with repeated "-I."
Chris@69 2859 am__isrc=' -I$(srcdir)'
Chris@69 2860 # test to see if srcdir already configured
Chris@69 2861 if test -f $srcdir/config.status; then
Chris@69 2862 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Chris@69 2863 fi
Chris@69 2864 fi
Chris@69 2865
Chris@69 2866 # test whether we have cygpath
Chris@69 2867 if test -z "$CYGPATH_W"; then
Chris@69 2868 if (cygpath --version) >/dev/null 2>/dev/null; then
Chris@69 2869 CYGPATH_W='cygpath -w'
Chris@69 2870 else
Chris@69 2871 CYGPATH_W=echo
Chris@69 2872 fi
Chris@69 2873 fi
Chris@69 2874
Chris@69 2875
Chris@69 2876 # Define the identity of the package.
Chris@69 2877 PACKAGE='opus'
Chris@69 2878 VERSION='1.3'
Chris@69 2879
Chris@69 2880
Chris@69 2881 # Some tools Automake needs.
Chris@69 2882
Chris@69 2883 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
Chris@69 2884
Chris@69 2885
Chris@69 2886 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
Chris@69 2887
Chris@69 2888
Chris@69 2889 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
Chris@69 2890
Chris@69 2891
Chris@69 2892 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
Chris@69 2893
Chris@69 2894
Chris@69 2895 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
Chris@69 2896
Chris@69 2897 # For better backward compatibility. To be removed once Automake 1.9.x
Chris@69 2898 # dies out for good. For more background, see:
Chris@69 2899 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
Chris@69 2900 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
Chris@69 2901 mkdir_p='$(MKDIR_P)'
Chris@69 2902
Chris@69 2903 # We need awk for the "check" target (and possibly the TAP driver). The
Chris@69 2904 # system "awk" is bad on some platforms.
Chris@69 2905 # Always define AMTAR for backward compatibility. Yes, it's still used
Chris@69 2906 # in the wild :-( We should find a proper way to deprecate it ...
Chris@69 2907 AMTAR='$${TAR-tar}'
Chris@69 2908
Chris@69 2909
Chris@69 2910 # We'll loop over all known methods to create a tar archive until one works.
Chris@69 2911 _am_tools='gnutar pax cpio none'
Chris@69 2912
Chris@69 2913 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
Chris@69 2914
Chris@69 2915
Chris@69 2916
Chris@69 2917
Chris@69 2918
Chris@69 2919
Chris@69 2920 # POSIX will say in a future version that running "rm -f" with no argument
Chris@69 2921 # is OK; and we want to be able to make that assumption in our Makefile
Chris@69 2922 # recipes. So use an aggressive probe to check that the usage we want is
Chris@69 2923 # actually supported "in the wild" to an acceptable degree.
Chris@69 2924 # See automake bug#10828.
Chris@69 2925 # To make any issue more visible, cause the running configure to be aborted
Chris@69 2926 # by default if the 'rm' program in use doesn't match our expectations; the
Chris@69 2927 # user can still override this though.
Chris@69 2928 if rm -f && rm -fr && rm -rf; then : OK; else
Chris@69 2929 cat >&2 <<'END'
Chris@69 2930 Oops!
Chris@69 2931
Chris@69 2932 Your 'rm' program seems unable to run without file operands specified
Chris@69 2933 on the command line, even when the '-f' option is present. This is contrary
Chris@69 2934 to the behaviour of most rm programs out there, and not conforming with
Chris@69 2935 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
Chris@69 2936
Chris@69 2937 Please tell bug-automake@gnu.org about your system, including the value
Chris@69 2938 of your $PATH and any error possibly output before this message. This
Chris@69 2939 can help us improve future automake versions.
Chris@69 2940
Chris@69 2941 END
Chris@69 2942 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
Chris@69 2943 echo 'Configuration will proceed anyway, since you have set the' >&2
Chris@69 2944 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
Chris@69 2945 echo >&2
Chris@69 2946 else
Chris@69 2947 cat >&2 <<'END'
Chris@69 2948 Aborting the configuration process, to ensure you take notice of the issue.
Chris@69 2949
Chris@69 2950 You can download and install GNU coreutils to get an 'rm' implementation
Chris@69 2951 that behaves properly: <http://www.gnu.org/software/coreutils/>.
Chris@69 2952
Chris@69 2953 If you want to complete the configuration process using your problematic
Chris@69 2954 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
Chris@69 2955 to "yes", and re-run configure.
Chris@69 2956
Chris@69 2957 END
Chris@69 2958 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
Chris@69 2959 fi
Chris@69 2960 fi
Chris@69 2961
Chris@69 2962
Chris@69 2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
Chris@69 2964 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
Chris@69 2965 # Check whether --enable-maintainer-mode was given.
Chris@69 2966 if test "${enable_maintainer_mode+set}" = set; then :
Chris@69 2967 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
Chris@69 2968 else
Chris@69 2969 USE_MAINTAINER_MODE=yes
Chris@69 2970 fi
Chris@69 2971
Chris@69 2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
Chris@69 2973 $as_echo "$USE_MAINTAINER_MODE" >&6; }
Chris@69 2974 if test $USE_MAINTAINER_MODE = yes; then
Chris@69 2975 MAINTAINER_MODE_TRUE=
Chris@69 2976 MAINTAINER_MODE_FALSE='#'
Chris@69 2977 else
Chris@69 2978 MAINTAINER_MODE_TRUE='#'
Chris@69 2979 MAINTAINER_MODE_FALSE=
Chris@69 2980 fi
Chris@69 2981
Chris@69 2982 MAINT=$MAINTAINER_MODE_TRUE
Chris@69 2983
Chris@69 2984
Chris@69 2985
Chris@69 2986 # Make sure we can run config.sub.
Chris@69 2987 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Chris@69 2988 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Chris@69 2989
Chris@69 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Chris@69 2991 $as_echo_n "checking build system type... " >&6; }
Chris@69 2992 if ${ac_cv_build+:} false; then :
Chris@69 2993 $as_echo_n "(cached) " >&6
Chris@69 2994 else
Chris@69 2995 ac_build_alias=$build_alias
Chris@69 2996 test "x$ac_build_alias" = x &&
Chris@69 2997 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
Chris@69 2998 test "x$ac_build_alias" = x &&
Chris@69 2999 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Chris@69 3000 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Chris@69 3001 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Chris@69 3002
Chris@69 3003 fi
Chris@69 3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Chris@69 3005 $as_echo "$ac_cv_build" >&6; }
Chris@69 3006 case $ac_cv_build in
Chris@69 3007 *-*-*) ;;
Chris@69 3008 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Chris@69 3009 esac
Chris@69 3010 build=$ac_cv_build
Chris@69 3011 ac_save_IFS=$IFS; IFS='-'
Chris@69 3012 set x $ac_cv_build
Chris@69 3013 shift
Chris@69 3014 build_cpu=$1
Chris@69 3015 build_vendor=$2
Chris@69 3016 shift; shift
Chris@69 3017 # Remember, the first character of IFS is used to create $*,
Chris@69 3018 # except with old shells:
Chris@69 3019 build_os=$*
Chris@69 3020 IFS=$ac_save_IFS
Chris@69 3021 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Chris@69 3022
Chris@69 3023
Chris@69 3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Chris@69 3025 $as_echo_n "checking host system type... " >&6; }
Chris@69 3026 if ${ac_cv_host+:} false; then :
Chris@69 3027 $as_echo_n "(cached) " >&6
Chris@69 3028 else
Chris@69 3029 if test "x$host_alias" = x; then
Chris@69 3030 ac_cv_host=$ac_cv_build
Chris@69 3031 else
Chris@69 3032 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Chris@69 3033 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Chris@69 3034 fi
Chris@69 3035
Chris@69 3036 fi
Chris@69 3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Chris@69 3038 $as_echo "$ac_cv_host" >&6; }
Chris@69 3039 case $ac_cv_host in
Chris@69 3040 *-*-*) ;;
Chris@69 3041 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Chris@69 3042 esac
Chris@69 3043 host=$ac_cv_host
Chris@69 3044 ac_save_IFS=$IFS; IFS='-'
Chris@69 3045 set x $ac_cv_host
Chris@69 3046 shift
Chris@69 3047 host_cpu=$1
Chris@69 3048 host_vendor=$2
Chris@69 3049 shift; shift
Chris@69 3050 # Remember, the first character of IFS is used to create $*,
Chris@69 3051 # except with old shells:
Chris@69 3052 host_os=$*
Chris@69 3053 IFS=$ac_save_IFS
Chris@69 3054 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Chris@69 3055
Chris@69 3056
Chris@69 3057
Chris@69 3058 case $host_os in
Chris@69 3059 *mingw32* ) MINGW32=yes;;
Chris@69 3060 * ) MINGW32=no;;
Chris@69 3061 esac
Chris@69 3062
Chris@69 3063 case `pwd` in
Chris@69 3064 *\ * | *\ *)
Chris@69 3065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
Chris@69 3066 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Chris@69 3067 esac
Chris@69 3068
Chris@69 3069
Chris@69 3070
Chris@69 3071 macro_version='2.4.6'
Chris@69 3072 macro_revision='2.4.6'
Chris@69 3073
Chris@69 3074
Chris@69 3075
Chris@69 3076
Chris@69 3077
Chris@69 3078
Chris@69 3079
Chris@69 3080
Chris@69 3081
Chris@69 3082
Chris@69 3083
Chris@69 3084
Chris@69 3085
Chris@69 3086 ltmain=$ac_aux_dir/ltmain.sh
Chris@69 3087
Chris@69 3088 # Backslashify metacharacters that are still active within
Chris@69 3089 # double-quoted strings.
Chris@69 3090 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
Chris@69 3091
Chris@69 3092 # Same as above, but do not quote variable references.
Chris@69 3093 double_quote_subst='s/\(["`\\]\)/\\\1/g'
Chris@69 3094
Chris@69 3095 # Sed substitution to delay expansion of an escaped shell variable in a
Chris@69 3096 # double_quote_subst'ed string.
Chris@69 3097 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
Chris@69 3098
Chris@69 3099 # Sed substitution to delay expansion of an escaped single quote.
Chris@69 3100 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
Chris@69 3101
Chris@69 3102 # Sed substitution to avoid accidental globbing in evaled expressions
Chris@69 3103 no_glob_subst='s/\*/\\\*/g'
Chris@69 3104
Chris@69 3105 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@69 3106 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
Chris@69 3107 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
Chris@69 3108
Chris@69 3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
Chris@69 3110 $as_echo_n "checking how to print strings... " >&6; }
Chris@69 3111 # Test print first, because it will be a builtin if present.
Chris@69 3112 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
Chris@69 3113 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
Chris@69 3114 ECHO='print -r --'
Chris@69 3115 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
Chris@69 3116 ECHO='printf %s\n'
Chris@69 3117 else
Chris@69 3118 # Use this function as a fallback that always works.
Chris@69 3119 func_fallback_echo ()
Chris@69 3120 {
Chris@69 3121 eval 'cat <<_LTECHO_EOF
Chris@69 3122 $1
Chris@69 3123 _LTECHO_EOF'
Chris@69 3124 }
Chris@69 3125 ECHO='func_fallback_echo'
Chris@69 3126 fi
Chris@69 3127
Chris@69 3128 # func_echo_all arg...
Chris@69 3129 # Invoke $ECHO with all args, space-separated.
Chris@69 3130 func_echo_all ()
Chris@69 3131 {
Chris@69 3132 $ECHO ""
Chris@69 3133 }
Chris@69 3134
Chris@69 3135 case $ECHO in
Chris@69 3136 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
Chris@69 3137 $as_echo "printf" >&6; } ;;
Chris@69 3138 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
Chris@69 3139 $as_echo "print -r" >&6; } ;;
Chris@69 3140 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
Chris@69 3141 $as_echo "cat" >&6; } ;;
Chris@69 3142 esac
Chris@69 3143
Chris@69 3144
Chris@69 3145
Chris@69 3146
Chris@69 3147
Chris@69 3148
Chris@69 3149
Chris@69 3150
Chris@69 3151
Chris@69 3152
Chris@69 3153
Chris@69 3154
Chris@69 3155
Chris@69 3156
Chris@69 3157 DEPDIR="${am__leading_dot}deps"
Chris@69 3158
Chris@69 3159 ac_config_commands="$ac_config_commands depfiles"
Chris@69 3160
Chris@69 3161
Chris@69 3162 am_make=${MAKE-make}
Chris@69 3163 cat > confinc << 'END'
Chris@69 3164 am__doit:
Chris@69 3165 @echo this is the am__doit target
Chris@69 3166 .PHONY: am__doit
Chris@69 3167 END
Chris@69 3168 # If we don't find an include directive, just comment out the code.
Chris@69 3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
Chris@69 3170 $as_echo_n "checking for style of include used by $am_make... " >&6; }
Chris@69 3171 am__include="#"
Chris@69 3172 am__quote=
Chris@69 3173 _am_result=none
Chris@69 3174 # First try GNU make style include.
Chris@69 3175 echo "include confinc" > confmf
Chris@69 3176 # Ignore all kinds of additional output from 'make'.
Chris@69 3177 case `$am_make -s -f confmf 2> /dev/null` in #(
Chris@69 3178 *the\ am__doit\ target*)
Chris@69 3179 am__include=include
Chris@69 3180 am__quote=
Chris@69 3181 _am_result=GNU
Chris@69 3182 ;;
Chris@69 3183 esac
Chris@69 3184 # Now try BSD make style include.
Chris@69 3185 if test "$am__include" = "#"; then
Chris@69 3186 echo '.include "confinc"' > confmf
Chris@69 3187 case `$am_make -s -f confmf 2> /dev/null` in #(
Chris@69 3188 *the\ am__doit\ target*)
Chris@69 3189 am__include=.include
Chris@69 3190 am__quote="\""
Chris@69 3191 _am_result=BSD
Chris@69 3192 ;;
Chris@69 3193 esac
Chris@69 3194 fi
Chris@69 3195
Chris@69 3196
Chris@69 3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
Chris@69 3198 $as_echo "$_am_result" >&6; }
Chris@69 3199 rm -f confinc confmf
Chris@69 3200
Chris@69 3201 # Check whether --enable-dependency-tracking was given.
Chris@69 3202 if test "${enable_dependency_tracking+set}" = set; then :
Chris@69 3203 enableval=$enable_dependency_tracking;
Chris@69 3204 fi
Chris@69 3205
Chris@69 3206 if test "x$enable_dependency_tracking" != xno; then
Chris@69 3207 am_depcomp="$ac_aux_dir/depcomp"
Chris@69 3208 AMDEPBACKSLASH='\'
Chris@69 3209 am__nodep='_no'
Chris@69 3210 fi
Chris@69 3211 if test "x$enable_dependency_tracking" != xno; then
Chris@69 3212 AMDEP_TRUE=
Chris@69 3213 AMDEP_FALSE='#'
Chris@69 3214 else
Chris@69 3215 AMDEP_TRUE='#'
Chris@69 3216 AMDEP_FALSE=
Chris@69 3217 fi
Chris@69 3218
Chris@69 3219
Chris@69 3220 ac_ext=c
Chris@69 3221 ac_cpp='$CPP $CPPFLAGS'
Chris@69 3222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@69 3223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@69 3224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@69 3225 if test -n "$ac_tool_prefix"; then
Chris@69 3226 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
Chris@69 3227 set dummy ${ac_tool_prefix}gcc; ac_word=$2
Chris@69 3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 3229 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 3230 if ${ac_cv_prog_CC+:} false; then :
Chris@69 3231 $as_echo_n "(cached) " >&6
Chris@69 3232 else
Chris@69 3233 if test -n "$CC"; then
Chris@69 3234 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@69 3235 else
Chris@69 3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 3237 for as_dir in $PATH
Chris@69 3238 do
Chris@69 3239 IFS=$as_save_IFS
Chris@69 3240 test -z "$as_dir" && as_dir=.
Chris@69 3241 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 3242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 3243 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Chris@69 3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 3245 break 2
Chris@69 3246 fi
Chris@69 3247 done
Chris@69 3248 done
Chris@69 3249 IFS=$as_save_IFS
Chris@69 3250
Chris@69 3251 fi
Chris@69 3252 fi
Chris@69 3253 CC=$ac_cv_prog_CC
Chris@69 3254 if test -n "$CC"; then
Chris@69 3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@69 3256 $as_echo "$CC" >&6; }
Chris@69 3257 else
Chris@69 3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 3259 $as_echo "no" >&6; }
Chris@69 3260 fi
Chris@69 3261
Chris@69 3262
Chris@69 3263 fi
Chris@69 3264 if test -z "$ac_cv_prog_CC"; then
Chris@69 3265 ac_ct_CC=$CC
Chris@69 3266 # Extract the first word of "gcc", so it can be a program name with args.
Chris@69 3267 set dummy gcc; ac_word=$2
Chris@69 3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 3269 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 3270 if ${ac_cv_prog_ac_ct_CC+:} false; then :
Chris@69 3271 $as_echo_n "(cached) " >&6
Chris@69 3272 else
Chris@69 3273 if test -n "$ac_ct_CC"; then
Chris@69 3274 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@69 3275 else
Chris@69 3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 3277 for as_dir in $PATH
Chris@69 3278 do
Chris@69 3279 IFS=$as_save_IFS
Chris@69 3280 test -z "$as_dir" && as_dir=.
Chris@69 3281 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 3282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 3283 ac_cv_prog_ac_ct_CC="gcc"
Chris@69 3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 3285 break 2
Chris@69 3286 fi
Chris@69 3287 done
Chris@69 3288 done
Chris@69 3289 IFS=$as_save_IFS
Chris@69 3290
Chris@69 3291 fi
Chris@69 3292 fi
Chris@69 3293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@69 3294 if test -n "$ac_ct_CC"; then
Chris@69 3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Chris@69 3296 $as_echo "$ac_ct_CC" >&6; }
Chris@69 3297 else
Chris@69 3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 3299 $as_echo "no" >&6; }
Chris@69 3300 fi
Chris@69 3301
Chris@69 3302 if test "x$ac_ct_CC" = x; then
Chris@69 3303 CC=""
Chris@69 3304 else
Chris@69 3305 case $cross_compiling:$ac_tool_warned in
Chris@69 3306 yes:)
Chris@69 3307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 3308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 3309 ac_tool_warned=yes ;;
Chris@69 3310 esac
Chris@69 3311 CC=$ac_ct_CC
Chris@69 3312 fi
Chris@69 3313 else
Chris@69 3314 CC="$ac_cv_prog_CC"
Chris@69 3315 fi
Chris@69 3316
Chris@69 3317 if test -z "$CC"; then
Chris@69 3318 if test -n "$ac_tool_prefix"; then
Chris@69 3319 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Chris@69 3320 set dummy ${ac_tool_prefix}cc; ac_word=$2
Chris@69 3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 3322 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 3323 if ${ac_cv_prog_CC+:} false; then :
Chris@69 3324 $as_echo_n "(cached) " >&6
Chris@69 3325 else
Chris@69 3326 if test -n "$CC"; then
Chris@69 3327 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@69 3328 else
Chris@69 3329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 3330 for as_dir in $PATH
Chris@69 3331 do
Chris@69 3332 IFS=$as_save_IFS
Chris@69 3333 test -z "$as_dir" && as_dir=.
Chris@69 3334 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 3335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 3336 ac_cv_prog_CC="${ac_tool_prefix}cc"
Chris@69 3337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 3338 break 2
Chris@69 3339 fi
Chris@69 3340 done
Chris@69 3341 done
Chris@69 3342 IFS=$as_save_IFS
Chris@69 3343
Chris@69 3344 fi
Chris@69 3345 fi
Chris@69 3346 CC=$ac_cv_prog_CC
Chris@69 3347 if test -n "$CC"; then
Chris@69 3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@69 3349 $as_echo "$CC" >&6; }
Chris@69 3350 else
Chris@69 3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 3352 $as_echo "no" >&6; }
Chris@69 3353 fi
Chris@69 3354
Chris@69 3355
Chris@69 3356 fi
Chris@69 3357 fi
Chris@69 3358 if test -z "$CC"; then
Chris@69 3359 # Extract the first word of "cc", so it can be a program name with args.
Chris@69 3360 set dummy cc; ac_word=$2
Chris@69 3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 3362 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 3363 if ${ac_cv_prog_CC+:} false; then :
Chris@69 3364 $as_echo_n "(cached) " >&6
Chris@69 3365 else
Chris@69 3366 if test -n "$CC"; then
Chris@69 3367 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@69 3368 else
Chris@69 3369 ac_prog_rejected=no
Chris@69 3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 3371 for as_dir in $PATH
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_exec_ext in '' $ac_executable_extensions; do
Chris@69 3376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 3377 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
Chris@69 3378 ac_prog_rejected=yes
Chris@69 3379 continue
Chris@69 3380 fi
Chris@69 3381 ac_cv_prog_CC="cc"
Chris@69 3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 3383 break 2
Chris@69 3384 fi
Chris@69 3385 done
Chris@69 3386 done
Chris@69 3387 IFS=$as_save_IFS
Chris@69 3388
Chris@69 3389 if test $ac_prog_rejected = yes; then
Chris@69 3390 # We found a bogon in the path, so make sure we never use it.
Chris@69 3391 set dummy $ac_cv_prog_CC
Chris@69 3392 shift
Chris@69 3393 if test $# != 0; then
Chris@69 3394 # We chose a different compiler from the bogus one.
Chris@69 3395 # However, it has the same basename, so the bogon will be chosen
Chris@69 3396 # first if we set CC to just the basename; use the full file name.
Chris@69 3397 shift
Chris@69 3398 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Chris@69 3399 fi
Chris@69 3400 fi
Chris@69 3401 fi
Chris@69 3402 fi
Chris@69 3403 CC=$ac_cv_prog_CC
Chris@69 3404 if test -n "$CC"; then
Chris@69 3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@69 3406 $as_echo "$CC" >&6; }
Chris@69 3407 else
Chris@69 3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 3409 $as_echo "no" >&6; }
Chris@69 3410 fi
Chris@69 3411
Chris@69 3412
Chris@69 3413 fi
Chris@69 3414 if test -z "$CC"; then
Chris@69 3415 if test -n "$ac_tool_prefix"; then
Chris@69 3416 for ac_prog in cl.exe
Chris@69 3417 do
Chris@69 3418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@69 3419 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@69 3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 3421 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 3422 if ${ac_cv_prog_CC+:} false; then :
Chris@69 3423 $as_echo_n "(cached) " >&6
Chris@69 3424 else
Chris@69 3425 if test -n "$CC"; then
Chris@69 3426 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@69 3427 else
Chris@69 3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 3429 for as_dir in $PATH
Chris@69 3430 do
Chris@69 3431 IFS=$as_save_IFS
Chris@69 3432 test -z "$as_dir" && as_dir=.
Chris@69 3433 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 3434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 3435 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Chris@69 3436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 3437 break 2
Chris@69 3438 fi
Chris@69 3439 done
Chris@69 3440 done
Chris@69 3441 IFS=$as_save_IFS
Chris@69 3442
Chris@69 3443 fi
Chris@69 3444 fi
Chris@69 3445 CC=$ac_cv_prog_CC
Chris@69 3446 if test -n "$CC"; then
Chris@69 3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@69 3448 $as_echo "$CC" >&6; }
Chris@69 3449 else
Chris@69 3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 3451 $as_echo "no" >&6; }
Chris@69 3452 fi
Chris@69 3453
Chris@69 3454
Chris@69 3455 test -n "$CC" && break
Chris@69 3456 done
Chris@69 3457 fi
Chris@69 3458 if test -z "$CC"; then
Chris@69 3459 ac_ct_CC=$CC
Chris@69 3460 for ac_prog in cl.exe
Chris@69 3461 do
Chris@69 3462 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@69 3463 set dummy $ac_prog; ac_word=$2
Chris@69 3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 3465 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 3466 if ${ac_cv_prog_ac_ct_CC+:} false; then :
Chris@69 3467 $as_echo_n "(cached) " >&6
Chris@69 3468 else
Chris@69 3469 if test -n "$ac_ct_CC"; then
Chris@69 3470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@69 3471 else
Chris@69 3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 3473 for as_dir in $PATH
Chris@69 3474 do
Chris@69 3475 IFS=$as_save_IFS
Chris@69 3476 test -z "$as_dir" && as_dir=.
Chris@69 3477 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 3478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 3479 ac_cv_prog_ac_ct_CC="$ac_prog"
Chris@69 3480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 3481 break 2
Chris@69 3482 fi
Chris@69 3483 done
Chris@69 3484 done
Chris@69 3485 IFS=$as_save_IFS
Chris@69 3486
Chris@69 3487 fi
Chris@69 3488 fi
Chris@69 3489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@69 3490 if test -n "$ac_ct_CC"; then
Chris@69 3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Chris@69 3492 $as_echo "$ac_ct_CC" >&6; }
Chris@69 3493 else
Chris@69 3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 3495 $as_echo "no" >&6; }
Chris@69 3496 fi
Chris@69 3497
Chris@69 3498
Chris@69 3499 test -n "$ac_ct_CC" && break
Chris@69 3500 done
Chris@69 3501
Chris@69 3502 if test "x$ac_ct_CC" = x; then
Chris@69 3503 CC=""
Chris@69 3504 else
Chris@69 3505 case $cross_compiling:$ac_tool_warned in
Chris@69 3506 yes:)
Chris@69 3507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 3508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 3509 ac_tool_warned=yes ;;
Chris@69 3510 esac
Chris@69 3511 CC=$ac_ct_CC
Chris@69 3512 fi
Chris@69 3513 fi
Chris@69 3514
Chris@69 3515 fi
Chris@69 3516
Chris@69 3517
Chris@69 3518 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@69 3519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@69 3520 as_fn_error $? "no acceptable C compiler found in \$PATH
Chris@69 3521 See \`config.log' for more details" "$LINENO" 5; }
Chris@69 3522
Chris@69 3523 # Provide some information about the compiler.
Chris@69 3524 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Chris@69 3525 set X $ac_compile
Chris@69 3526 ac_compiler=$2
Chris@69 3527 for ac_option in --version -v -V -qversion; do
Chris@69 3528 { { ac_try="$ac_compiler $ac_option >&5"
Chris@69 3529 case "(($ac_try" in
Chris@69 3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@69 3531 *) ac_try_echo=$ac_try;;
Chris@69 3532 esac
Chris@69 3533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@69 3534 $as_echo "$ac_try_echo"; } >&5
Chris@69 3535 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Chris@69 3536 ac_status=$?
Chris@69 3537 if test -s conftest.err; then
Chris@69 3538 sed '10a\
Chris@69 3539 ... rest of stderr output deleted ...
Chris@69 3540 10q' conftest.err >conftest.er1
Chris@69 3541 cat conftest.er1 >&5
Chris@69 3542 fi
Chris@69 3543 rm -f conftest.er1 conftest.err
Chris@69 3544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 3545 test $ac_status = 0; }
Chris@69 3546 done
Chris@69 3547
Chris@69 3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 3549 /* end confdefs.h. */
Chris@69 3550
Chris@69 3551 int
Chris@69 3552 main ()
Chris@69 3553 {
Chris@69 3554
Chris@69 3555 ;
Chris@69 3556 return 0;
Chris@69 3557 }
Chris@69 3558 _ACEOF
Chris@69 3559 ac_clean_files_save=$ac_clean_files
Chris@69 3560 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Chris@69 3561 # Try to create an executable without -o first, disregard a.out.
Chris@69 3562 # It will help us diagnose broken compilers, and finding out an intuition
Chris@69 3563 # of exeext.
Chris@69 3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
Chris@69 3565 $as_echo_n "checking whether the C compiler works... " >&6; }
Chris@69 3566 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Chris@69 3567
Chris@69 3568 # The possible output files:
Chris@69 3569 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
Chris@69 3570
Chris@69 3571 ac_rmfiles=
Chris@69 3572 for ac_file in $ac_files
Chris@69 3573 do
Chris@69 3574 case $ac_file in
Chris@69 3575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Chris@69 3576 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
Chris@69 3577 esac
Chris@69 3578 done
Chris@69 3579 rm -f $ac_rmfiles
Chris@69 3580
Chris@69 3581 if { { ac_try="$ac_link_default"
Chris@69 3582 case "(($ac_try" in
Chris@69 3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@69 3584 *) ac_try_echo=$ac_try;;
Chris@69 3585 esac
Chris@69 3586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@69 3587 $as_echo "$ac_try_echo"; } >&5
Chris@69 3588 (eval "$ac_link_default") 2>&5
Chris@69 3589 ac_status=$?
Chris@69 3590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 3591 test $ac_status = 0; }; then :
Chris@69 3592 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
Chris@69 3593 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
Chris@69 3594 # in a Makefile. We should not override ac_cv_exeext if it was cached,
Chris@69 3595 # so that the user can short-circuit this test for compilers unknown to
Chris@69 3596 # Autoconf.
Chris@69 3597 for ac_file in $ac_files ''
Chris@69 3598 do
Chris@69 3599 test -f "$ac_file" || continue
Chris@69 3600 case $ac_file in
Chris@69 3601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Chris@69 3602 ;;
Chris@69 3603 [ab].out )
Chris@69 3604 # We found the default executable, but exeext='' is most
Chris@69 3605 # certainly right.
Chris@69 3606 break;;
Chris@69 3607 *.* )
Chris@69 3608 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Chris@69 3609 then :; else
Chris@69 3610 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@69 3611 fi
Chris@69 3612 # We set ac_cv_exeext here because the later test for it is not
Chris@69 3613 # safe: cross compilers may not add the suffix if given an `-o'
Chris@69 3614 # argument, so we may need to know it at that point already.
Chris@69 3615 # Even if this section looks crufty: it has the advantage of
Chris@69 3616 # actually working.
Chris@69 3617 break;;
Chris@69 3618 * )
Chris@69 3619 break;;
Chris@69 3620 esac
Chris@69 3621 done
Chris@69 3622 test "$ac_cv_exeext" = no && ac_cv_exeext=
Chris@69 3623
Chris@69 3624 else
Chris@69 3625 ac_file=''
Chris@69 3626 fi
Chris@69 3627 if test -z "$ac_file"; then :
Chris@69 3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 3629 $as_echo "no" >&6; }
Chris@69 3630 $as_echo "$as_me: failed program was:" >&5
Chris@69 3631 sed 's/^/| /' conftest.$ac_ext >&5
Chris@69 3632
Chris@69 3633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@69 3634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@69 3635 as_fn_error 77 "C compiler cannot create executables
Chris@69 3636 See \`config.log' for more details" "$LINENO" 5; }
Chris@69 3637 else
Chris@69 3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 3639 $as_echo "yes" >&6; }
Chris@69 3640 fi
Chris@69 3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
Chris@69 3642 $as_echo_n "checking for C compiler default output file name... " >&6; }
Chris@69 3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
Chris@69 3644 $as_echo "$ac_file" >&6; }
Chris@69 3645 ac_exeext=$ac_cv_exeext
Chris@69 3646
Chris@69 3647 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Chris@69 3648 ac_clean_files=$ac_clean_files_save
Chris@69 3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Chris@69 3650 $as_echo_n "checking for suffix of executables... " >&6; }
Chris@69 3651 if { { ac_try="$ac_link"
Chris@69 3652 case "(($ac_try" in
Chris@69 3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@69 3654 *) ac_try_echo=$ac_try;;
Chris@69 3655 esac
Chris@69 3656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@69 3657 $as_echo "$ac_try_echo"; } >&5
Chris@69 3658 (eval "$ac_link") 2>&5
Chris@69 3659 ac_status=$?
Chris@69 3660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 3661 test $ac_status = 0; }; then :
Chris@69 3662 # If both `conftest.exe' and `conftest' are `present' (well, observable)
Chris@69 3663 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
Chris@69 3664 # work properly (i.e., refer to `conftest.exe'), while it won't with
Chris@69 3665 # `rm'.
Chris@69 3666 for ac_file in conftest.exe conftest conftest.*; do
Chris@69 3667 test -f "$ac_file" || continue
Chris@69 3668 case $ac_file in
Chris@69 3669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Chris@69 3670 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@69 3671 break;;
Chris@69 3672 * ) break;;
Chris@69 3673 esac
Chris@69 3674 done
Chris@69 3675 else
Chris@69 3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@69 3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@69 3678 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Chris@69 3679 See \`config.log' for more details" "$LINENO" 5; }
Chris@69 3680 fi
Chris@69 3681 rm -f conftest conftest$ac_cv_exeext
Chris@69 3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Chris@69 3683 $as_echo "$ac_cv_exeext" >&6; }
Chris@69 3684
Chris@69 3685 rm -f conftest.$ac_ext
Chris@69 3686 EXEEXT=$ac_cv_exeext
Chris@69 3687 ac_exeext=$EXEEXT
Chris@69 3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 3689 /* end confdefs.h. */
Chris@69 3690 #include <stdio.h>
Chris@69 3691 int
Chris@69 3692 main ()
Chris@69 3693 {
Chris@69 3694 FILE *f = fopen ("conftest.out", "w");
Chris@69 3695 return ferror (f) || fclose (f) != 0;
Chris@69 3696
Chris@69 3697 ;
Chris@69 3698 return 0;
Chris@69 3699 }
Chris@69 3700 _ACEOF
Chris@69 3701 ac_clean_files="$ac_clean_files conftest.out"
Chris@69 3702 # Check that the compiler produces executables we can run. If not, either
Chris@69 3703 # the compiler is broken, or we cross compile.
Chris@69 3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
Chris@69 3705 $as_echo_n "checking whether we are cross compiling... " >&6; }
Chris@69 3706 if test "$cross_compiling" != yes; then
Chris@69 3707 { { ac_try="$ac_link"
Chris@69 3708 case "(($ac_try" in
Chris@69 3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@69 3710 *) ac_try_echo=$ac_try;;
Chris@69 3711 esac
Chris@69 3712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@69 3713 $as_echo "$ac_try_echo"; } >&5
Chris@69 3714 (eval "$ac_link") 2>&5
Chris@69 3715 ac_status=$?
Chris@69 3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 3717 test $ac_status = 0; }
Chris@69 3718 if { ac_try='./conftest$ac_cv_exeext'
Chris@69 3719 { { case "(($ac_try" in
Chris@69 3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@69 3721 *) ac_try_echo=$ac_try;;
Chris@69 3722 esac
Chris@69 3723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@69 3724 $as_echo "$ac_try_echo"; } >&5
Chris@69 3725 (eval "$ac_try") 2>&5
Chris@69 3726 ac_status=$?
Chris@69 3727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 3728 test $ac_status = 0; }; }; then
Chris@69 3729 cross_compiling=no
Chris@69 3730 else
Chris@69 3731 if test "$cross_compiling" = maybe; then
Chris@69 3732 cross_compiling=yes
Chris@69 3733 else
Chris@69 3734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@69 3735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@69 3736 as_fn_error $? "cannot run C compiled programs.
Chris@69 3737 If you meant to cross compile, use \`--host'.
Chris@69 3738 See \`config.log' for more details" "$LINENO" 5; }
Chris@69 3739 fi
Chris@69 3740 fi
Chris@69 3741 fi
Chris@69 3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
Chris@69 3743 $as_echo "$cross_compiling" >&6; }
Chris@69 3744
Chris@69 3745 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
Chris@69 3746 ac_clean_files=$ac_clean_files_save
Chris@69 3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Chris@69 3748 $as_echo_n "checking for suffix of object files... " >&6; }
Chris@69 3749 if ${ac_cv_objext+:} false; then :
Chris@69 3750 $as_echo_n "(cached) " >&6
Chris@69 3751 else
Chris@69 3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 3753 /* end confdefs.h. */
Chris@69 3754
Chris@69 3755 int
Chris@69 3756 main ()
Chris@69 3757 {
Chris@69 3758
Chris@69 3759 ;
Chris@69 3760 return 0;
Chris@69 3761 }
Chris@69 3762 _ACEOF
Chris@69 3763 rm -f conftest.o conftest.obj
Chris@69 3764 if { { ac_try="$ac_compile"
Chris@69 3765 case "(($ac_try" in
Chris@69 3766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@69 3767 *) ac_try_echo=$ac_try;;
Chris@69 3768 esac
Chris@69 3769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@69 3770 $as_echo "$ac_try_echo"; } >&5
Chris@69 3771 (eval "$ac_compile") 2>&5
Chris@69 3772 ac_status=$?
Chris@69 3773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 3774 test $ac_status = 0; }; then :
Chris@69 3775 for ac_file in conftest.o conftest.obj conftest.*; do
Chris@69 3776 test -f "$ac_file" || continue;
Chris@69 3777 case $ac_file in
Chris@69 3778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Chris@69 3779 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
Chris@69 3780 break;;
Chris@69 3781 esac
Chris@69 3782 done
Chris@69 3783 else
Chris@69 3784 $as_echo "$as_me: failed program was:" >&5
Chris@69 3785 sed 's/^/| /' conftest.$ac_ext >&5
Chris@69 3786
Chris@69 3787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@69 3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@69 3789 as_fn_error $? "cannot compute suffix of object files: cannot compile
Chris@69 3790 See \`config.log' for more details" "$LINENO" 5; }
Chris@69 3791 fi
Chris@69 3792 rm -f conftest.$ac_cv_objext conftest.$ac_ext
Chris@69 3793 fi
Chris@69 3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Chris@69 3795 $as_echo "$ac_cv_objext" >&6; }
Chris@69 3796 OBJEXT=$ac_cv_objext
Chris@69 3797 ac_objext=$OBJEXT
Chris@69 3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Chris@69 3799 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Chris@69 3800 if ${ac_cv_c_compiler_gnu+:} false; then :
Chris@69 3801 $as_echo_n "(cached) " >&6
Chris@69 3802 else
Chris@69 3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 3804 /* end confdefs.h. */
Chris@69 3805
Chris@69 3806 int
Chris@69 3807 main ()
Chris@69 3808 {
Chris@69 3809 #ifndef __GNUC__
Chris@69 3810 choke me
Chris@69 3811 #endif
Chris@69 3812
Chris@69 3813 ;
Chris@69 3814 return 0;
Chris@69 3815 }
Chris@69 3816 _ACEOF
Chris@69 3817 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 3818 ac_compiler_gnu=yes
Chris@69 3819 else
Chris@69 3820 ac_compiler_gnu=no
Chris@69 3821 fi
Chris@69 3822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 3823 ac_cv_c_compiler_gnu=$ac_compiler_gnu
Chris@69 3824
Chris@69 3825 fi
Chris@69 3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Chris@69 3827 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
Chris@69 3828 if test $ac_compiler_gnu = yes; then
Chris@69 3829 GCC=yes
Chris@69 3830 else
Chris@69 3831 GCC=
Chris@69 3832 fi
Chris@69 3833 ac_test_CFLAGS=${CFLAGS+set}
Chris@69 3834 ac_save_CFLAGS=$CFLAGS
Chris@69 3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Chris@69 3836 $as_echo_n "checking whether $CC accepts -g... " >&6; }
Chris@69 3837 if ${ac_cv_prog_cc_g+:} false; then :
Chris@69 3838 $as_echo_n "(cached) " >&6
Chris@69 3839 else
Chris@69 3840 ac_save_c_werror_flag=$ac_c_werror_flag
Chris@69 3841 ac_c_werror_flag=yes
Chris@69 3842 ac_cv_prog_cc_g=no
Chris@69 3843 CFLAGS="-g"
Chris@69 3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 3845 /* end confdefs.h. */
Chris@69 3846
Chris@69 3847 int
Chris@69 3848 main ()
Chris@69 3849 {
Chris@69 3850
Chris@69 3851 ;
Chris@69 3852 return 0;
Chris@69 3853 }
Chris@69 3854 _ACEOF
Chris@69 3855 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 3856 ac_cv_prog_cc_g=yes
Chris@69 3857 else
Chris@69 3858 CFLAGS=""
Chris@69 3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 3860 /* end confdefs.h. */
Chris@69 3861
Chris@69 3862 int
Chris@69 3863 main ()
Chris@69 3864 {
Chris@69 3865
Chris@69 3866 ;
Chris@69 3867 return 0;
Chris@69 3868 }
Chris@69 3869 _ACEOF
Chris@69 3870 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 3871
Chris@69 3872 else
Chris@69 3873 ac_c_werror_flag=$ac_save_c_werror_flag
Chris@69 3874 CFLAGS="-g"
Chris@69 3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 3876 /* end confdefs.h. */
Chris@69 3877
Chris@69 3878 int
Chris@69 3879 main ()
Chris@69 3880 {
Chris@69 3881
Chris@69 3882 ;
Chris@69 3883 return 0;
Chris@69 3884 }
Chris@69 3885 _ACEOF
Chris@69 3886 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 3887 ac_cv_prog_cc_g=yes
Chris@69 3888 fi
Chris@69 3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 3890 fi
Chris@69 3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 3892 fi
Chris@69 3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 3894 ac_c_werror_flag=$ac_save_c_werror_flag
Chris@69 3895 fi
Chris@69 3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Chris@69 3897 $as_echo "$ac_cv_prog_cc_g" >&6; }
Chris@69 3898 if test "$ac_test_CFLAGS" = set; then
Chris@69 3899 CFLAGS=$ac_save_CFLAGS
Chris@69 3900 elif test $ac_cv_prog_cc_g = yes; then
Chris@69 3901 if test "$GCC" = yes; then
Chris@69 3902 CFLAGS="-g -O2"
Chris@69 3903 else
Chris@69 3904 CFLAGS="-g"
Chris@69 3905 fi
Chris@69 3906 else
Chris@69 3907 if test "$GCC" = yes; then
Chris@69 3908 CFLAGS="-O2"
Chris@69 3909 else
Chris@69 3910 CFLAGS=
Chris@69 3911 fi
Chris@69 3912 fi
Chris@69 3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Chris@69 3914 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Chris@69 3915 if ${ac_cv_prog_cc_c89+:} false; then :
Chris@69 3916 $as_echo_n "(cached) " >&6
Chris@69 3917 else
Chris@69 3918 ac_cv_prog_cc_c89=no
Chris@69 3919 ac_save_CC=$CC
Chris@69 3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 3921 /* end confdefs.h. */
Chris@69 3922 #include <stdarg.h>
Chris@69 3923 #include <stdio.h>
Chris@69 3924 struct stat;
Chris@69 3925 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
Chris@69 3926 struct buf { int x; };
Chris@69 3927 FILE * (*rcsopen) (struct buf *, struct stat *, int);
Chris@69 3928 static char *e (p, i)
Chris@69 3929 char **p;
Chris@69 3930 int i;
Chris@69 3931 {
Chris@69 3932 return p[i];
Chris@69 3933 }
Chris@69 3934 static char *f (char * (*g) (char **, int), char **p, ...)
Chris@69 3935 {
Chris@69 3936 char *s;
Chris@69 3937 va_list v;
Chris@69 3938 va_start (v,p);
Chris@69 3939 s = g (p, va_arg (v,int));
Chris@69 3940 va_end (v);
Chris@69 3941 return s;
Chris@69 3942 }
Chris@69 3943
Chris@69 3944 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
Chris@69 3945 function prototypes and stuff, but not '\xHH' hex character constants.
Chris@69 3946 These don't provoke an error unfortunately, instead are silently treated
Chris@69 3947 as 'x'. The following induces an error, until -std is added to get
Chris@69 3948 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
Chris@69 3949 array size at least. It's necessary to write '\x00'==0 to get something
Chris@69 3950 that's true only with -std. */
Chris@69 3951 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
Chris@69 3952
Chris@69 3953 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
Chris@69 3954 inside strings and character constants. */
Chris@69 3955 #define FOO(x) 'x'
Chris@69 3956 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
Chris@69 3957
Chris@69 3958 int test (int i, double x);
Chris@69 3959 struct s1 {int (*f) (int a);};
Chris@69 3960 struct s2 {int (*f) (double a);};
Chris@69 3961 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
Chris@69 3962 int argc;
Chris@69 3963 char **argv;
Chris@69 3964 int
Chris@69 3965 main ()
Chris@69 3966 {
Chris@69 3967 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
Chris@69 3968 ;
Chris@69 3969 return 0;
Chris@69 3970 }
Chris@69 3971 _ACEOF
Chris@69 3972 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
Chris@69 3973 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Chris@69 3974 do
Chris@69 3975 CC="$ac_save_CC $ac_arg"
Chris@69 3976 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 3977 ac_cv_prog_cc_c89=$ac_arg
Chris@69 3978 fi
Chris@69 3979 rm -f core conftest.err conftest.$ac_objext
Chris@69 3980 test "x$ac_cv_prog_cc_c89" != "xno" && break
Chris@69 3981 done
Chris@69 3982 rm -f conftest.$ac_ext
Chris@69 3983 CC=$ac_save_CC
Chris@69 3984
Chris@69 3985 fi
Chris@69 3986 # AC_CACHE_VAL
Chris@69 3987 case "x$ac_cv_prog_cc_c89" in
Chris@69 3988 x)
Chris@69 3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Chris@69 3990 $as_echo "none needed" >&6; } ;;
Chris@69 3991 xno)
Chris@69 3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Chris@69 3993 $as_echo "unsupported" >&6; } ;;
Chris@69 3994 *)
Chris@69 3995 CC="$CC $ac_cv_prog_cc_c89"
Chris@69 3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Chris@69 3997 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Chris@69 3998 esac
Chris@69 3999 if test "x$ac_cv_prog_cc_c89" != xno; then :
Chris@69 4000
Chris@69 4001 fi
Chris@69 4002
Chris@69 4003 ac_ext=c
Chris@69 4004 ac_cpp='$CPP $CPPFLAGS'
Chris@69 4005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@69 4006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@69 4007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@69 4008
Chris@69 4009 ac_ext=c
Chris@69 4010 ac_cpp='$CPP $CPPFLAGS'
Chris@69 4011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@69 4012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@69 4013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@69 4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
Chris@69 4015 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
Chris@69 4016 if ${am_cv_prog_cc_c_o+:} false; then :
Chris@69 4017 $as_echo_n "(cached) " >&6
Chris@69 4018 else
Chris@69 4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 4020 /* end confdefs.h. */
Chris@69 4021
Chris@69 4022 int
Chris@69 4023 main ()
Chris@69 4024 {
Chris@69 4025
Chris@69 4026 ;
Chris@69 4027 return 0;
Chris@69 4028 }
Chris@69 4029 _ACEOF
Chris@69 4030 # Make sure it works both with $CC and with simple cc.
Chris@69 4031 # Following AC_PROG_CC_C_O, we do the test twice because some
Chris@69 4032 # compilers refuse to overwrite an existing .o file with -o,
Chris@69 4033 # though they will create one.
Chris@69 4034 am_cv_prog_cc_c_o=yes
Chris@69 4035 for am_i in 1 2; do
Chris@69 4036 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
Chris@69 4037 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
Chris@69 4038 ac_status=$?
Chris@69 4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@69 4040 (exit $ac_status); } \
Chris@69 4041 && test -f conftest2.$ac_objext; then
Chris@69 4042 : OK
Chris@69 4043 else
Chris@69 4044 am_cv_prog_cc_c_o=no
Chris@69 4045 break
Chris@69 4046 fi
Chris@69 4047 done
Chris@69 4048 rm -f core conftest*
Chris@69 4049 unset am_i
Chris@69 4050 fi
Chris@69 4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
Chris@69 4052 $as_echo "$am_cv_prog_cc_c_o" >&6; }
Chris@69 4053 if test "$am_cv_prog_cc_c_o" != yes; then
Chris@69 4054 # Losing compiler, so override with the script.
Chris@69 4055 # FIXME: It is wrong to rewrite CC.
Chris@69 4056 # But if we don't then we get into trouble of one sort or another.
Chris@69 4057 # A longer-term fix would be to have automake use am__CC in this case,
Chris@69 4058 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
Chris@69 4059 CC="$am_aux_dir/compile $CC"
Chris@69 4060 fi
Chris@69 4061 ac_ext=c
Chris@69 4062 ac_cpp='$CPP $CPPFLAGS'
Chris@69 4063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@69 4064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@69 4065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@69 4066
Chris@69 4067
Chris@69 4068 depcc="$CC" am_compiler_list=
Chris@69 4069
Chris@69 4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Chris@69 4071 $as_echo_n "checking dependency style of $depcc... " >&6; }
Chris@69 4072 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Chris@69 4073 $as_echo_n "(cached) " >&6
Chris@69 4074 else
Chris@69 4075 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
Chris@69 4076 # We make a subdir and do the tests there. Otherwise we can end up
Chris@69 4077 # making bogus files that we don't know about and never remove. For
Chris@69 4078 # instance it was reported that on HP-UX the gcc test will end up
Chris@69 4079 # making a dummy file named 'D' -- because '-MD' means "put the output
Chris@69 4080 # in D".
Chris@69 4081 rm -rf conftest.dir
Chris@69 4082 mkdir conftest.dir
Chris@69 4083 # Copy depcomp to subdir because otherwise we won't find it if we're
Chris@69 4084 # using a relative directory.
Chris@69 4085 cp "$am_depcomp" conftest.dir
Chris@69 4086 cd conftest.dir
Chris@69 4087 # We will build objects and dependencies in a subdirectory because
Chris@69 4088 # it helps to detect inapplicable dependency modes. For instance
Chris@69 4089 # both Tru64's cc and ICC support -MD to output dependencies as a
Chris@69 4090 # side effect of compilation, but ICC will put the dependencies in
Chris@69 4091 # the current directory while Tru64 will put them in the object
Chris@69 4092 # directory.
Chris@69 4093 mkdir sub
Chris@69 4094
Chris@69 4095 am_cv_CC_dependencies_compiler_type=none
Chris@69 4096 if test "$am_compiler_list" = ""; then
Chris@69 4097 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
Chris@69 4098 fi
Chris@69 4099 am__universal=false
Chris@69 4100 case " $depcc " in #(
Chris@69 4101 *\ -arch\ *\ -arch\ *) am__universal=true ;;
Chris@69 4102 esac
Chris@69 4103
Chris@69 4104 for depmode in $am_compiler_list; do
Chris@69 4105 # Setup a source with many dependencies, because some compilers
Chris@69 4106 # like to wrap large dependency lists on column 80 (with \), and
Chris@69 4107 # we should not choose a depcomp mode which is confused by this.
Chris@69 4108 #
Chris@69 4109 # We need to recreate these files for each test, as the compiler may
Chris@69 4110 # overwrite some of them when testing with obscure command lines.
Chris@69 4111 # This happens at least with the AIX C compiler.
Chris@69 4112 : > sub/conftest.c
Chris@69 4113 for i in 1 2 3 4 5 6; do
Chris@69 4114 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Chris@69 4115 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
Chris@69 4116 # Solaris 10 /bin/sh.
Chris@69 4117 echo '/* dummy */' > sub/conftst$i.h
Chris@69 4118 done
Chris@69 4119 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Chris@69 4120
Chris@69 4121 # We check with '-c' and '-o' for the sake of the "dashmstdout"
Chris@69 4122 # mode. It turns out that the SunPro C++ compiler does not properly
Chris@69 4123 # handle '-M -o', and we need to detect this. Also, some Intel
Chris@69 4124 # versions had trouble with output in subdirs.
Chris@69 4125 am__obj=sub/conftest.${OBJEXT-o}
Chris@69 4126 am__minus_obj="-o $am__obj"
Chris@69 4127 case $depmode in
Chris@69 4128 gcc)
Chris@69 4129 # This depmode causes a compiler race in universal mode.
Chris@69 4130 test "$am__universal" = false || continue
Chris@69 4131 ;;
Chris@69 4132 nosideeffect)
Chris@69 4133 # After this tag, mechanisms are not by side-effect, so they'll
Chris@69 4134 # only be used when explicitly requested.
Chris@69 4135 if test "x$enable_dependency_tracking" = xyes; then
Chris@69 4136 continue
Chris@69 4137 else
Chris@69 4138 break
Chris@69 4139 fi
Chris@69 4140 ;;
Chris@69 4141 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
Chris@69 4142 # This compiler won't grok '-c -o', but also, the minuso test has
Chris@69 4143 # not run yet. These depmodes are late enough in the game, and
Chris@69 4144 # so weak that their functioning should not be impacted.
Chris@69 4145 am__obj=conftest.${OBJEXT-o}
Chris@69 4146 am__minus_obj=
Chris@69 4147 ;;
Chris@69 4148 none) break ;;
Chris@69 4149 esac
Chris@69 4150 if depmode=$depmode \
Chris@69 4151 source=sub/conftest.c object=$am__obj \
Chris@69 4152 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Chris@69 4153 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Chris@69 4154 >/dev/null 2>conftest.err &&
Chris@69 4155 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@69 4156 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@69 4157 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Chris@69 4158 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Chris@69 4159 # icc doesn't choke on unknown options, it will just issue warnings
Chris@69 4160 # or remarks (even with -Werror). So we grep stderr for any message
Chris@69 4161 # that says an option was ignored or not supported.
Chris@69 4162 # When given -MP, icc 7.0 and 7.1 complain thusly:
Chris@69 4163 # icc: Command line warning: ignoring option '-M'; no argument required
Chris@69 4164 # The diagnosis changed in icc 8.0:
Chris@69 4165 # icc: Command line remark: option '-MP' not supported
Chris@69 4166 if (grep 'ignoring option' conftest.err ||
Chris@69 4167 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Chris@69 4168 am_cv_CC_dependencies_compiler_type=$depmode
Chris@69 4169 break
Chris@69 4170 fi
Chris@69 4171 fi
Chris@69 4172 done
Chris@69 4173
Chris@69 4174 cd ..
Chris@69 4175 rm -rf conftest.dir
Chris@69 4176 else
Chris@69 4177 am_cv_CC_dependencies_compiler_type=none
Chris@69 4178 fi
Chris@69 4179
Chris@69 4180 fi
Chris@69 4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Chris@69 4182 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Chris@69 4183 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
Chris@69 4184
Chris@69 4185 if
Chris@69 4186 test "x$enable_dependency_tracking" != xno \
Chris@69 4187 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
Chris@69 4188 am__fastdepCC_TRUE=
Chris@69 4189 am__fastdepCC_FALSE='#'
Chris@69 4190 else
Chris@69 4191 am__fastdepCC_TRUE='#'
Chris@69 4192 am__fastdepCC_FALSE=
Chris@69 4193 fi
Chris@69 4194
Chris@69 4195
Chris@69 4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
Chris@69 4197 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
Chris@69 4198 if ${ac_cv_path_SED+:} false; then :
Chris@69 4199 $as_echo_n "(cached) " >&6
Chris@69 4200 else
Chris@69 4201 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
Chris@69 4202 for ac_i in 1 2 3 4 5 6 7; do
Chris@69 4203 ac_script="$ac_script$as_nl$ac_script"
Chris@69 4204 done
Chris@69 4205 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Chris@69 4206 { ac_script=; unset ac_script;}
Chris@69 4207 if test -z "$SED"; then
Chris@69 4208 ac_path_SED_found=false
Chris@69 4209 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@69 4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 4211 for as_dir in $PATH
Chris@69 4212 do
Chris@69 4213 IFS=$as_save_IFS
Chris@69 4214 test -z "$as_dir" && as_dir=.
Chris@69 4215 for ac_prog in sed gsed; do
Chris@69 4216 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 4217 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Chris@69 4218 as_fn_executable_p "$ac_path_SED" || continue
Chris@69 4219 # Check for GNU ac_path_SED and select it if it is found.
Chris@69 4220 # Check for GNU $ac_path_SED
Chris@69 4221 case `"$ac_path_SED" --version 2>&1` in
Chris@69 4222 *GNU*)
Chris@69 4223 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
Chris@69 4224 *)
Chris@69 4225 ac_count=0
Chris@69 4226 $as_echo_n 0123456789 >"conftest.in"
Chris@69 4227 while :
Chris@69 4228 do
Chris@69 4229 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@69 4230 mv "conftest.tmp" "conftest.in"
Chris@69 4231 cp "conftest.in" "conftest.nl"
Chris@69 4232 $as_echo '' >> "conftest.nl"
Chris@69 4233 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@69 4234 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@69 4235 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@69 4236 if test $ac_count -gt ${ac_path_SED_max-0}; then
Chris@69 4237 # Best one so far, save it but keep looking for a better one
Chris@69 4238 ac_cv_path_SED="$ac_path_SED"
Chris@69 4239 ac_path_SED_max=$ac_count
Chris@69 4240 fi
Chris@69 4241 # 10*(2^10) chars as input seems more than enough
Chris@69 4242 test $ac_count -gt 10 && break
Chris@69 4243 done
Chris@69 4244 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@69 4245 esac
Chris@69 4246
Chris@69 4247 $ac_path_SED_found && break 3
Chris@69 4248 done
Chris@69 4249 done
Chris@69 4250 done
Chris@69 4251 IFS=$as_save_IFS
Chris@69 4252 if test -z "$ac_cv_path_SED"; then
Chris@69 4253 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Chris@69 4254 fi
Chris@69 4255 else
Chris@69 4256 ac_cv_path_SED=$SED
Chris@69 4257 fi
Chris@69 4258
Chris@69 4259 fi
Chris@69 4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
Chris@69 4261 $as_echo "$ac_cv_path_SED" >&6; }
Chris@69 4262 SED="$ac_cv_path_SED"
Chris@69 4263 rm -f conftest.sed
Chris@69 4264
Chris@69 4265 test -z "$SED" && SED=sed
Chris@69 4266 Xsed="$SED -e 1s/^X//"
Chris@69 4267
Chris@69 4268
Chris@69 4269
Chris@69 4270
Chris@69 4271
Chris@69 4272
Chris@69 4273
Chris@69 4274
Chris@69 4275
Chris@69 4276
Chris@69 4277
Chris@69 4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Chris@69 4279 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Chris@69 4280 if ${ac_cv_path_GREP+:} false; then :
Chris@69 4281 $as_echo_n "(cached) " >&6
Chris@69 4282 else
Chris@69 4283 if test -z "$GREP"; then
Chris@69 4284 ac_path_GREP_found=false
Chris@69 4285 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@69 4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 4287 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@69 4288 do
Chris@69 4289 IFS=$as_save_IFS
Chris@69 4290 test -z "$as_dir" && as_dir=.
Chris@69 4291 for ac_prog in grep ggrep; do
Chris@69 4292 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 4293 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@69 4294 as_fn_executable_p "$ac_path_GREP" || continue
Chris@69 4295 # Check for GNU ac_path_GREP and select it if it is found.
Chris@69 4296 # Check for GNU $ac_path_GREP
Chris@69 4297 case `"$ac_path_GREP" --version 2>&1` in
Chris@69 4298 *GNU*)
Chris@69 4299 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
Chris@69 4300 *)
Chris@69 4301 ac_count=0
Chris@69 4302 $as_echo_n 0123456789 >"conftest.in"
Chris@69 4303 while :
Chris@69 4304 do
Chris@69 4305 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@69 4306 mv "conftest.tmp" "conftest.in"
Chris@69 4307 cp "conftest.in" "conftest.nl"
Chris@69 4308 $as_echo 'GREP' >> "conftest.nl"
Chris@69 4309 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@69 4310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@69 4311 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@69 4312 if test $ac_count -gt ${ac_path_GREP_max-0}; then
Chris@69 4313 # Best one so far, save it but keep looking for a better one
Chris@69 4314 ac_cv_path_GREP="$ac_path_GREP"
Chris@69 4315 ac_path_GREP_max=$ac_count
Chris@69 4316 fi
Chris@69 4317 # 10*(2^10) chars as input seems more than enough
Chris@69 4318 test $ac_count -gt 10 && break
Chris@69 4319 done
Chris@69 4320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@69 4321 esac
Chris@69 4322
Chris@69 4323 $ac_path_GREP_found && break 3
Chris@69 4324 done
Chris@69 4325 done
Chris@69 4326 done
Chris@69 4327 IFS=$as_save_IFS
Chris@69 4328 if test -z "$ac_cv_path_GREP"; then
Chris@69 4329 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@69 4330 fi
Chris@69 4331 else
Chris@69 4332 ac_cv_path_GREP=$GREP
Chris@69 4333 fi
Chris@69 4334
Chris@69 4335 fi
Chris@69 4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Chris@69 4337 $as_echo "$ac_cv_path_GREP" >&6; }
Chris@69 4338 GREP="$ac_cv_path_GREP"
Chris@69 4339
Chris@69 4340
Chris@69 4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Chris@69 4342 $as_echo_n "checking for egrep... " >&6; }
Chris@69 4343 if ${ac_cv_path_EGREP+:} false; then :
Chris@69 4344 $as_echo_n "(cached) " >&6
Chris@69 4345 else
Chris@69 4346 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
Chris@69 4347 then ac_cv_path_EGREP="$GREP -E"
Chris@69 4348 else
Chris@69 4349 if test -z "$EGREP"; then
Chris@69 4350 ac_path_EGREP_found=false
Chris@69 4351 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@69 4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 4353 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@69 4354 do
Chris@69 4355 IFS=$as_save_IFS
Chris@69 4356 test -z "$as_dir" && as_dir=.
Chris@69 4357 for ac_prog in egrep; do
Chris@69 4358 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 4359 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@69 4360 as_fn_executable_p "$ac_path_EGREP" || continue
Chris@69 4361 # Check for GNU ac_path_EGREP and select it if it is found.
Chris@69 4362 # Check for GNU $ac_path_EGREP
Chris@69 4363 case `"$ac_path_EGREP" --version 2>&1` in
Chris@69 4364 *GNU*)
Chris@69 4365 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
Chris@69 4366 *)
Chris@69 4367 ac_count=0
Chris@69 4368 $as_echo_n 0123456789 >"conftest.in"
Chris@69 4369 while :
Chris@69 4370 do
Chris@69 4371 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@69 4372 mv "conftest.tmp" "conftest.in"
Chris@69 4373 cp "conftest.in" "conftest.nl"
Chris@69 4374 $as_echo 'EGREP' >> "conftest.nl"
Chris@69 4375 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@69 4376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@69 4377 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@69 4378 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
Chris@69 4379 # Best one so far, save it but keep looking for a better one
Chris@69 4380 ac_cv_path_EGREP="$ac_path_EGREP"
Chris@69 4381 ac_path_EGREP_max=$ac_count
Chris@69 4382 fi
Chris@69 4383 # 10*(2^10) chars as input seems more than enough
Chris@69 4384 test $ac_count -gt 10 && break
Chris@69 4385 done
Chris@69 4386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@69 4387 esac
Chris@69 4388
Chris@69 4389 $ac_path_EGREP_found && break 3
Chris@69 4390 done
Chris@69 4391 done
Chris@69 4392 done
Chris@69 4393 IFS=$as_save_IFS
Chris@69 4394 if test -z "$ac_cv_path_EGREP"; then
Chris@69 4395 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@69 4396 fi
Chris@69 4397 else
Chris@69 4398 ac_cv_path_EGREP=$EGREP
Chris@69 4399 fi
Chris@69 4400
Chris@69 4401 fi
Chris@69 4402 fi
Chris@69 4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Chris@69 4404 $as_echo "$ac_cv_path_EGREP" >&6; }
Chris@69 4405 EGREP="$ac_cv_path_EGREP"
Chris@69 4406
Chris@69 4407
Chris@69 4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
Chris@69 4409 $as_echo_n "checking for fgrep... " >&6; }
Chris@69 4410 if ${ac_cv_path_FGREP+:} false; then :
Chris@69 4411 $as_echo_n "(cached) " >&6
Chris@69 4412 else
Chris@69 4413 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
Chris@69 4414 then ac_cv_path_FGREP="$GREP -F"
Chris@69 4415 else
Chris@69 4416 if test -z "$FGREP"; then
Chris@69 4417 ac_path_FGREP_found=false
Chris@69 4418 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@69 4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 4420 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@69 4421 do
Chris@69 4422 IFS=$as_save_IFS
Chris@69 4423 test -z "$as_dir" && as_dir=.
Chris@69 4424 for ac_prog in fgrep; do
Chris@69 4425 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 4426 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@69 4427 as_fn_executable_p "$ac_path_FGREP" || continue
Chris@69 4428 # Check for GNU ac_path_FGREP and select it if it is found.
Chris@69 4429 # Check for GNU $ac_path_FGREP
Chris@69 4430 case `"$ac_path_FGREP" --version 2>&1` in
Chris@69 4431 *GNU*)
Chris@69 4432 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
Chris@69 4433 *)
Chris@69 4434 ac_count=0
Chris@69 4435 $as_echo_n 0123456789 >"conftest.in"
Chris@69 4436 while :
Chris@69 4437 do
Chris@69 4438 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@69 4439 mv "conftest.tmp" "conftest.in"
Chris@69 4440 cp "conftest.in" "conftest.nl"
Chris@69 4441 $as_echo 'FGREP' >> "conftest.nl"
Chris@69 4442 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@69 4443 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@69 4444 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@69 4445 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
Chris@69 4446 # Best one so far, save it but keep looking for a better one
Chris@69 4447 ac_cv_path_FGREP="$ac_path_FGREP"
Chris@69 4448 ac_path_FGREP_max=$ac_count
Chris@69 4449 fi
Chris@69 4450 # 10*(2^10) chars as input seems more than enough
Chris@69 4451 test $ac_count -gt 10 && break
Chris@69 4452 done
Chris@69 4453 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@69 4454 esac
Chris@69 4455
Chris@69 4456 $ac_path_FGREP_found && break 3
Chris@69 4457 done
Chris@69 4458 done
Chris@69 4459 done
Chris@69 4460 IFS=$as_save_IFS
Chris@69 4461 if test -z "$ac_cv_path_FGREP"; then
Chris@69 4462 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@69 4463 fi
Chris@69 4464 else
Chris@69 4465 ac_cv_path_FGREP=$FGREP
Chris@69 4466 fi
Chris@69 4467
Chris@69 4468 fi
Chris@69 4469 fi
Chris@69 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
Chris@69 4471 $as_echo "$ac_cv_path_FGREP" >&6; }
Chris@69 4472 FGREP="$ac_cv_path_FGREP"
Chris@69 4473
Chris@69 4474
Chris@69 4475 test -z "$GREP" && GREP=grep
Chris@69 4476
Chris@69 4477
Chris@69 4478
Chris@69 4479
Chris@69 4480
Chris@69 4481
Chris@69 4482
Chris@69 4483
Chris@69 4484
Chris@69 4485
Chris@69 4486
Chris@69 4487
Chris@69 4488
Chris@69 4489
Chris@69 4490
Chris@69 4491
Chris@69 4492
Chris@69 4493
Chris@69 4494
Chris@69 4495 # Check whether --with-gnu-ld was given.
Chris@69 4496 if test "${with_gnu_ld+set}" = set; then :
Chris@69 4497 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
Chris@69 4498 else
Chris@69 4499 with_gnu_ld=no
Chris@69 4500 fi
Chris@69 4501
Chris@69 4502 ac_prog=ld
Chris@69 4503 if test yes = "$GCC"; then
Chris@69 4504 # Check if gcc -print-prog-name=ld gives a path.
Chris@69 4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Chris@69 4506 $as_echo_n "checking for ld used by $CC... " >&6; }
Chris@69 4507 case $host in
Chris@69 4508 *-*-mingw*)
Chris@69 4509 # gcc leaves a trailing carriage return, which upsets mingw
Chris@69 4510 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
Chris@69 4511 *)
Chris@69 4512 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
Chris@69 4513 esac
Chris@69 4514 case $ac_prog in
Chris@69 4515 # Accept absolute paths.
Chris@69 4516 [\\/]* | ?:[\\/]*)
Chris@69 4517 re_direlt='/[^/][^/]*/\.\./'
Chris@69 4518 # Canonicalize the pathname of ld
Chris@69 4519 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
Chris@69 4520 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
Chris@69 4521 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Chris@69 4522 done
Chris@69 4523 test -z "$LD" && LD=$ac_prog
Chris@69 4524 ;;
Chris@69 4525 "")
Chris@69 4526 # If it fails, then pretend we aren't using GCC.
Chris@69 4527 ac_prog=ld
Chris@69 4528 ;;
Chris@69 4529 *)
Chris@69 4530 # If it is relative, then search for the first ld in PATH.
Chris@69 4531 with_gnu_ld=unknown
Chris@69 4532 ;;
Chris@69 4533 esac
Chris@69 4534 elif test yes = "$with_gnu_ld"; then
Chris@69 4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Chris@69 4536 $as_echo_n "checking for GNU ld... " >&6; }
Chris@69 4537 else
Chris@69 4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Chris@69 4539 $as_echo_n "checking for non-GNU ld... " >&6; }
Chris@69 4540 fi
Chris@69 4541 if ${lt_cv_path_LD+:} false; then :
Chris@69 4542 $as_echo_n "(cached) " >&6
Chris@69 4543 else
Chris@69 4544 if test -z "$LD"; then
Chris@69 4545 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Chris@69 4546 for ac_dir in $PATH; do
Chris@69 4547 IFS=$lt_save_ifs
Chris@69 4548 test -z "$ac_dir" && ac_dir=.
Chris@69 4549 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Chris@69 4550 lt_cv_path_LD=$ac_dir/$ac_prog
Chris@69 4551 # Check to see if the program is GNU ld. I'd rather use --version,
Chris@69 4552 # but apparently some variants of GNU ld only accept -v.
Chris@69 4553 # Break only if it was the GNU/non-GNU ld that we prefer.
Chris@69 4554 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
Chris@69 4555 *GNU* | *'with BFD'*)
Chris@69 4556 test no != "$with_gnu_ld" && break
Chris@69 4557 ;;
Chris@69 4558 *)
Chris@69 4559 test yes != "$with_gnu_ld" && break
Chris@69 4560 ;;
Chris@69 4561 esac
Chris@69 4562 fi
Chris@69 4563 done
Chris@69 4564 IFS=$lt_save_ifs
Chris@69 4565 else
Chris@69 4566 lt_cv_path_LD=$LD # Let the user override the test with a path.
Chris@69 4567 fi
Chris@69 4568 fi
Chris@69 4569
Chris@69 4570 LD=$lt_cv_path_LD
Chris@69 4571 if test -n "$LD"; then
Chris@69 4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Chris@69 4573 $as_echo "$LD" >&6; }
Chris@69 4574 else
Chris@69 4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 4576 $as_echo "no" >&6; }
Chris@69 4577 fi
Chris@69 4578 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Chris@69 4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Chris@69 4580 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Chris@69 4581 if ${lt_cv_prog_gnu_ld+:} false; then :
Chris@69 4582 $as_echo_n "(cached) " >&6
Chris@69 4583 else
Chris@69 4584 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Chris@69 4585 case `$LD -v 2>&1 </dev/null` in
Chris@69 4586 *GNU* | *'with BFD'*)
Chris@69 4587 lt_cv_prog_gnu_ld=yes
Chris@69 4588 ;;
Chris@69 4589 *)
Chris@69 4590 lt_cv_prog_gnu_ld=no
Chris@69 4591 ;;
Chris@69 4592 esac
Chris@69 4593 fi
Chris@69 4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Chris@69 4595 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
Chris@69 4596 with_gnu_ld=$lt_cv_prog_gnu_ld
Chris@69 4597
Chris@69 4598
Chris@69 4599
Chris@69 4600
Chris@69 4601
Chris@69 4602
Chris@69 4603
Chris@69 4604
Chris@69 4605
Chris@69 4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
Chris@69 4607 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Chris@69 4608 if ${lt_cv_path_NM+:} false; then :
Chris@69 4609 $as_echo_n "(cached) " >&6
Chris@69 4610 else
Chris@69 4611 if test -n "$NM"; then
Chris@69 4612 # Let the user override the test.
Chris@69 4613 lt_cv_path_NM=$NM
Chris@69 4614 else
Chris@69 4615 lt_nm_to_check=${ac_tool_prefix}nm
Chris@69 4616 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
Chris@69 4617 lt_nm_to_check="$lt_nm_to_check nm"
Chris@69 4618 fi
Chris@69 4619 for lt_tmp_nm in $lt_nm_to_check; do
Chris@69 4620 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Chris@69 4621 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
Chris@69 4622 IFS=$lt_save_ifs
Chris@69 4623 test -z "$ac_dir" && ac_dir=.
Chris@69 4624 tmp_nm=$ac_dir/$lt_tmp_nm
Chris@69 4625 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
Chris@69 4626 # Check to see if the nm accepts a BSD-compat flag.
Chris@69 4627 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
Chris@69 4628 # nm: unknown option "B" ignored
Chris@69 4629 # Tru64's nm complains that /dev/null is an invalid object file
Chris@69 4630 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
Chris@69 4631 case $build_os in
Chris@69 4632 mingw*) lt_bad_file=conftest.nm/nofile ;;
Chris@69 4633 *) lt_bad_file=/dev/null ;;
Chris@69 4634 esac
Chris@69 4635 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
Chris@69 4636 *$lt_bad_file* | *'Invalid file or object type'*)
Chris@69 4637 lt_cv_path_NM="$tmp_nm -B"
Chris@69 4638 break 2
Chris@69 4639 ;;
Chris@69 4640 *)
Chris@69 4641 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
Chris@69 4642 */dev/null*)
Chris@69 4643 lt_cv_path_NM="$tmp_nm -p"
Chris@69 4644 break 2
Chris@69 4645 ;;
Chris@69 4646 *)
Chris@69 4647 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
Chris@69 4648 continue # so that we can try to find one that supports BSD flags
Chris@69 4649 ;;
Chris@69 4650 esac
Chris@69 4651 ;;
Chris@69 4652 esac
Chris@69 4653 fi
Chris@69 4654 done
Chris@69 4655 IFS=$lt_save_ifs
Chris@69 4656 done
Chris@69 4657 : ${lt_cv_path_NM=no}
Chris@69 4658 fi
Chris@69 4659 fi
Chris@69 4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
Chris@69 4661 $as_echo "$lt_cv_path_NM" >&6; }
Chris@69 4662 if test no != "$lt_cv_path_NM"; then
Chris@69 4663 NM=$lt_cv_path_NM
Chris@69 4664 else
Chris@69 4665 # Didn't find any BSD compatible name lister, look for dumpbin.
Chris@69 4666 if test -n "$DUMPBIN"; then :
Chris@69 4667 # Let the user override the test.
Chris@69 4668 else
Chris@69 4669 if test -n "$ac_tool_prefix"; then
Chris@69 4670 for ac_prog in dumpbin "link -dump"
Chris@69 4671 do
Chris@69 4672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@69 4673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@69 4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 4675 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 4676 if ${ac_cv_prog_DUMPBIN+:} false; then :
Chris@69 4677 $as_echo_n "(cached) " >&6
Chris@69 4678 else
Chris@69 4679 if test -n "$DUMPBIN"; then
Chris@69 4680 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
Chris@69 4681 else
Chris@69 4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 4683 for as_dir in $PATH
Chris@69 4684 do
Chris@69 4685 IFS=$as_save_IFS
Chris@69 4686 test -z "$as_dir" && as_dir=.
Chris@69 4687 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 4688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 4689 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Chris@69 4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 4691 break 2
Chris@69 4692 fi
Chris@69 4693 done
Chris@69 4694 done
Chris@69 4695 IFS=$as_save_IFS
Chris@69 4696
Chris@69 4697 fi
Chris@69 4698 fi
Chris@69 4699 DUMPBIN=$ac_cv_prog_DUMPBIN
Chris@69 4700 if test -n "$DUMPBIN"; then
Chris@69 4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
Chris@69 4702 $as_echo "$DUMPBIN" >&6; }
Chris@69 4703 else
Chris@69 4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 4705 $as_echo "no" >&6; }
Chris@69 4706 fi
Chris@69 4707
Chris@69 4708
Chris@69 4709 test -n "$DUMPBIN" && break
Chris@69 4710 done
Chris@69 4711 fi
Chris@69 4712 if test -z "$DUMPBIN"; then
Chris@69 4713 ac_ct_DUMPBIN=$DUMPBIN
Chris@69 4714 for ac_prog in dumpbin "link -dump"
Chris@69 4715 do
Chris@69 4716 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@69 4717 set dummy $ac_prog; ac_word=$2
Chris@69 4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 4719 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 4720 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Chris@69 4721 $as_echo_n "(cached) " >&6
Chris@69 4722 else
Chris@69 4723 if test -n "$ac_ct_DUMPBIN"; then
Chris@69 4724 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
Chris@69 4725 else
Chris@69 4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 4727 for as_dir in $PATH
Chris@69 4728 do
Chris@69 4729 IFS=$as_save_IFS
Chris@69 4730 test -z "$as_dir" && as_dir=.
Chris@69 4731 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 4732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 4733 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Chris@69 4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 4735 break 2
Chris@69 4736 fi
Chris@69 4737 done
Chris@69 4738 done
Chris@69 4739 IFS=$as_save_IFS
Chris@69 4740
Chris@69 4741 fi
Chris@69 4742 fi
Chris@69 4743 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
Chris@69 4744 if test -n "$ac_ct_DUMPBIN"; then
Chris@69 4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
Chris@69 4746 $as_echo "$ac_ct_DUMPBIN" >&6; }
Chris@69 4747 else
Chris@69 4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 4749 $as_echo "no" >&6; }
Chris@69 4750 fi
Chris@69 4751
Chris@69 4752
Chris@69 4753 test -n "$ac_ct_DUMPBIN" && break
Chris@69 4754 done
Chris@69 4755
Chris@69 4756 if test "x$ac_ct_DUMPBIN" = x; then
Chris@69 4757 DUMPBIN=":"
Chris@69 4758 else
Chris@69 4759 case $cross_compiling:$ac_tool_warned in
Chris@69 4760 yes:)
Chris@69 4761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 4762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 4763 ac_tool_warned=yes ;;
Chris@69 4764 esac
Chris@69 4765 DUMPBIN=$ac_ct_DUMPBIN
Chris@69 4766 fi
Chris@69 4767 fi
Chris@69 4768
Chris@69 4769 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
Chris@69 4770 *COFF*)
Chris@69 4771 DUMPBIN="$DUMPBIN -symbols -headers"
Chris@69 4772 ;;
Chris@69 4773 *)
Chris@69 4774 DUMPBIN=:
Chris@69 4775 ;;
Chris@69 4776 esac
Chris@69 4777 fi
Chris@69 4778
Chris@69 4779 if test : != "$DUMPBIN"; then
Chris@69 4780 NM=$DUMPBIN
Chris@69 4781 fi
Chris@69 4782 fi
Chris@69 4783 test -z "$NM" && NM=nm
Chris@69 4784
Chris@69 4785
Chris@69 4786
Chris@69 4787
Chris@69 4788
Chris@69 4789
Chris@69 4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
Chris@69 4791 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
Chris@69 4792 if ${lt_cv_nm_interface+:} false; then :
Chris@69 4793 $as_echo_n "(cached) " >&6
Chris@69 4794 else
Chris@69 4795 lt_cv_nm_interface="BSD nm"
Chris@69 4796 echo "int some_variable = 0;" > conftest.$ac_ext
Chris@69 4797 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Chris@69 4798 (eval "$ac_compile" 2>conftest.err)
Chris@69 4799 cat conftest.err >&5
Chris@69 4800 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Chris@69 4801 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
Chris@69 4802 cat conftest.err >&5
Chris@69 4803 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Chris@69 4804 cat conftest.out >&5
Chris@69 4805 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
Chris@69 4806 lt_cv_nm_interface="MS dumpbin"
Chris@69 4807 fi
Chris@69 4808 rm -f conftest*
Chris@69 4809 fi
Chris@69 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
Chris@69 4811 $as_echo "$lt_cv_nm_interface" >&6; }
Chris@69 4812
Chris@69 4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Chris@69 4814 $as_echo_n "checking whether ln -s works... " >&6; }
Chris@69 4815 LN_S=$as_ln_s
Chris@69 4816 if test "$LN_S" = "ln -s"; then
Chris@69 4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 4818 $as_echo "yes" >&6; }
Chris@69 4819 else
Chris@69 4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Chris@69 4821 $as_echo "no, using $LN_S" >&6; }
Chris@69 4822 fi
Chris@69 4823
Chris@69 4824 # find the maximum length of command line arguments
Chris@69 4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
Chris@69 4826 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
Chris@69 4827 if ${lt_cv_sys_max_cmd_len+:} false; then :
Chris@69 4828 $as_echo_n "(cached) " >&6
Chris@69 4829 else
Chris@69 4830 i=0
Chris@69 4831 teststring=ABCD
Chris@69 4832
Chris@69 4833 case $build_os in
Chris@69 4834 msdosdjgpp*)
Chris@69 4835 # On DJGPP, this test can blow up pretty badly due to problems in libc
Chris@69 4836 # (any single argument exceeding 2000 bytes causes a buffer overrun
Chris@69 4837 # during glob expansion). Even if it were fixed, the result of this
Chris@69 4838 # check would be larger than it should be.
Chris@69 4839 lt_cv_sys_max_cmd_len=12288; # 12K is about right
Chris@69 4840 ;;
Chris@69 4841
Chris@69 4842 gnu*)
Chris@69 4843 # Under GNU Hurd, this test is not required because there is
Chris@69 4844 # no limit to the length of command line arguments.
Chris@69 4845 # Libtool will interpret -1 as no limit whatsoever
Chris@69 4846 lt_cv_sys_max_cmd_len=-1;
Chris@69 4847 ;;
Chris@69 4848
Chris@69 4849 cygwin* | mingw* | cegcc*)
Chris@69 4850 # On Win9x/ME, this test blows up -- it succeeds, but takes
Chris@69 4851 # about 5 minutes as the teststring grows exponentially.
Chris@69 4852 # Worse, since 9x/ME are not pre-emptively multitasking,
Chris@69 4853 # you end up with a "frozen" computer, even though with patience
Chris@69 4854 # the test eventually succeeds (with a max line length of 256k).
Chris@69 4855 # Instead, let's just punt: use the minimum linelength reported by
Chris@69 4856 # all of the supported platforms: 8192 (on NT/2K/XP).
Chris@69 4857 lt_cv_sys_max_cmd_len=8192;
Chris@69 4858 ;;
Chris@69 4859
Chris@69 4860 mint*)
Chris@69 4861 # On MiNT this can take a long time and run out of memory.
Chris@69 4862 lt_cv_sys_max_cmd_len=8192;
Chris@69 4863 ;;
Chris@69 4864
Chris@69 4865 amigaos*)
Chris@69 4866 # On AmigaOS with pdksh, this test takes hours, literally.
Chris@69 4867 # So we just punt and use a minimum line length of 8192.
Chris@69 4868 lt_cv_sys_max_cmd_len=8192;
Chris@69 4869 ;;
Chris@69 4870
Chris@69 4871 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
Chris@69 4872 # This has been around since 386BSD, at least. Likely further.
Chris@69 4873 if test -x /sbin/sysctl; then
Chris@69 4874 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
Chris@69 4875 elif test -x /usr/sbin/sysctl; then
Chris@69 4876 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
Chris@69 4877 else
Chris@69 4878 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Chris@69 4879 fi
Chris@69 4880 # And add a safety zone
Chris@69 4881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Chris@69 4882 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Chris@69 4883 ;;
Chris@69 4884
Chris@69 4885 interix*)
Chris@69 4886 # We know the value 262144 and hardcode it with a safety zone (like BSD)
Chris@69 4887 lt_cv_sys_max_cmd_len=196608
Chris@69 4888 ;;
Chris@69 4889
Chris@69 4890 os2*)
Chris@69 4891 # The test takes a long time on OS/2.
Chris@69 4892 lt_cv_sys_max_cmd_len=8192
Chris@69 4893 ;;
Chris@69 4894
Chris@69 4895 osf*)
Chris@69 4896 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
Chris@69 4897 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
Chris@69 4898 # nice to cause kernel panics so lets avoid the loop below.
Chris@69 4899 # First set a reasonable default.
Chris@69 4900 lt_cv_sys_max_cmd_len=16384
Chris@69 4901 #
Chris@69 4902 if test -x /sbin/sysconfig; then
Chris@69 4903 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
Chris@69 4904 *1*) lt_cv_sys_max_cmd_len=-1 ;;
Chris@69 4905 esac
Chris@69 4906 fi
Chris@69 4907 ;;
Chris@69 4908 sco3.2v5*)
Chris@69 4909 lt_cv_sys_max_cmd_len=102400
Chris@69 4910 ;;
Chris@69 4911 sysv5* | sco5v6* | sysv4.2uw2*)
Chris@69 4912 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
Chris@69 4913 if test -n "$kargmax"; then
Chris@69 4914 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
Chris@69 4915 else
Chris@69 4916 lt_cv_sys_max_cmd_len=32768
Chris@69 4917 fi
Chris@69 4918 ;;
Chris@69 4919 *)
Chris@69 4920 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Chris@69 4921 if test -n "$lt_cv_sys_max_cmd_len" && \
Chris@69 4922 test undefined != "$lt_cv_sys_max_cmd_len"; then
Chris@69 4923 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Chris@69 4924 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Chris@69 4925 else
Chris@69 4926 # Make teststring a little bigger before we do anything with it.
Chris@69 4927 # a 1K string should be a reasonable start.
Chris@69 4928 for i in 1 2 3 4 5 6 7 8; do
Chris@69 4929 teststring=$teststring$teststring
Chris@69 4930 done
Chris@69 4931 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
Chris@69 4932 # If test is not a shell built-in, we'll probably end up computing a
Chris@69 4933 # maximum length that is only half of the actual maximum length, but
Chris@69 4934 # we can't tell.
Chris@69 4935 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
Chris@69 4936 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Chris@69 4937 test 17 != "$i" # 1/2 MB should be enough
Chris@69 4938 do
Chris@69 4939 i=`expr $i + 1`
Chris@69 4940 teststring=$teststring$teststring
Chris@69 4941 done
Chris@69 4942 # Only check the string length outside the loop.
Chris@69 4943 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
Chris@69 4944 teststring=
Chris@69 4945 # Add a significant safety factor because C++ compilers can tack on
Chris@69 4946 # massive amounts of additional arguments before passing them to the
Chris@69 4947 # linker. It appears as though 1/2 is a usable value.
Chris@69 4948 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
Chris@69 4949 fi
Chris@69 4950 ;;
Chris@69 4951 esac
Chris@69 4952
Chris@69 4953 fi
Chris@69 4954
Chris@69 4955 if test -n "$lt_cv_sys_max_cmd_len"; then
Chris@69 4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
Chris@69 4957 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
Chris@69 4958 else
Chris@69 4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
Chris@69 4960 $as_echo "none" >&6; }
Chris@69 4961 fi
Chris@69 4962 max_cmd_len=$lt_cv_sys_max_cmd_len
Chris@69 4963
Chris@69 4964
Chris@69 4965
Chris@69 4966
Chris@69 4967
Chris@69 4968
Chris@69 4969 : ${CP="cp -f"}
Chris@69 4970 : ${MV="mv -f"}
Chris@69 4971 : ${RM="rm -f"}
Chris@69 4972
Chris@69 4973 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Chris@69 4974 lt_unset=unset
Chris@69 4975 else
Chris@69 4976 lt_unset=false
Chris@69 4977 fi
Chris@69 4978
Chris@69 4979
Chris@69 4980
Chris@69 4981
Chris@69 4982
Chris@69 4983 # test EBCDIC or ASCII
Chris@69 4984 case `echo X|tr X '\101'` in
Chris@69 4985 A) # ASCII based system
Chris@69 4986 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
Chris@69 4987 lt_SP2NL='tr \040 \012'
Chris@69 4988 lt_NL2SP='tr \015\012 \040\040'
Chris@69 4989 ;;
Chris@69 4990 *) # EBCDIC based system
Chris@69 4991 lt_SP2NL='tr \100 \n'
Chris@69 4992 lt_NL2SP='tr \r\n \100\100'
Chris@69 4993 ;;
Chris@69 4994 esac
Chris@69 4995
Chris@69 4996
Chris@69 4997
Chris@69 4998
Chris@69 4999
Chris@69 5000
Chris@69 5001
Chris@69 5002
Chris@69 5003
Chris@69 5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
Chris@69 5005 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
Chris@69 5006 if ${lt_cv_to_host_file_cmd+:} false; then :
Chris@69 5007 $as_echo_n "(cached) " >&6
Chris@69 5008 else
Chris@69 5009 case $host in
Chris@69 5010 *-*-mingw* )
Chris@69 5011 case $build in
Chris@69 5012 *-*-mingw* ) # actually msys
Chris@69 5013 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
Chris@69 5014 ;;
Chris@69 5015 *-*-cygwin* )
Chris@69 5016 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
Chris@69 5017 ;;
Chris@69 5018 * ) # otherwise, assume *nix
Chris@69 5019 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
Chris@69 5020 ;;
Chris@69 5021 esac
Chris@69 5022 ;;
Chris@69 5023 *-*-cygwin* )
Chris@69 5024 case $build in
Chris@69 5025 *-*-mingw* ) # actually msys
Chris@69 5026 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
Chris@69 5027 ;;
Chris@69 5028 *-*-cygwin* )
Chris@69 5029 lt_cv_to_host_file_cmd=func_convert_file_noop
Chris@69 5030 ;;
Chris@69 5031 * ) # otherwise, assume *nix
Chris@69 5032 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
Chris@69 5033 ;;
Chris@69 5034 esac
Chris@69 5035 ;;
Chris@69 5036 * ) # unhandled hosts (and "normal" native builds)
Chris@69 5037 lt_cv_to_host_file_cmd=func_convert_file_noop
Chris@69 5038 ;;
Chris@69 5039 esac
Chris@69 5040
Chris@69 5041 fi
Chris@69 5042
Chris@69 5043 to_host_file_cmd=$lt_cv_to_host_file_cmd
Chris@69 5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
Chris@69 5045 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
Chris@69 5046
Chris@69 5047
Chris@69 5048
Chris@69 5049
Chris@69 5050
Chris@69 5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
Chris@69 5052 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
Chris@69 5053 if ${lt_cv_to_tool_file_cmd+:} false; then :
Chris@69 5054 $as_echo_n "(cached) " >&6
Chris@69 5055 else
Chris@69 5056 #assume ordinary cross tools, or native build.
Chris@69 5057 lt_cv_to_tool_file_cmd=func_convert_file_noop
Chris@69 5058 case $host in
Chris@69 5059 *-*-mingw* )
Chris@69 5060 case $build in
Chris@69 5061 *-*-mingw* ) # actually msys
Chris@69 5062 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
Chris@69 5063 ;;
Chris@69 5064 esac
Chris@69 5065 ;;
Chris@69 5066 esac
Chris@69 5067
Chris@69 5068 fi
Chris@69 5069
Chris@69 5070 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Chris@69 5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
Chris@69 5072 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
Chris@69 5073
Chris@69 5074
Chris@69 5075
Chris@69 5076
Chris@69 5077
Chris@69 5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
Chris@69 5079 $as_echo_n "checking for $LD option to reload object files... " >&6; }
Chris@69 5080 if ${lt_cv_ld_reload_flag+:} false; then :
Chris@69 5081 $as_echo_n "(cached) " >&6
Chris@69 5082 else
Chris@69 5083 lt_cv_ld_reload_flag='-r'
Chris@69 5084 fi
Chris@69 5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
Chris@69 5086 $as_echo "$lt_cv_ld_reload_flag" >&6; }
Chris@69 5087 reload_flag=$lt_cv_ld_reload_flag
Chris@69 5088 case $reload_flag in
Chris@69 5089 "" | " "*) ;;
Chris@69 5090 *) reload_flag=" $reload_flag" ;;
Chris@69 5091 esac
Chris@69 5092 reload_cmds='$LD$reload_flag -o $output$reload_objs'
Chris@69 5093 case $host_os in
Chris@69 5094 cygwin* | mingw* | pw32* | cegcc*)
Chris@69 5095 if test yes != "$GCC"; then
Chris@69 5096 reload_cmds=false
Chris@69 5097 fi
Chris@69 5098 ;;
Chris@69 5099 darwin*)
Chris@69 5100 if test yes = "$GCC"; then
Chris@69 5101 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
Chris@69 5102 else
Chris@69 5103 reload_cmds='$LD$reload_flag -o $output$reload_objs'
Chris@69 5104 fi
Chris@69 5105 ;;
Chris@69 5106 esac
Chris@69 5107
Chris@69 5108
Chris@69 5109
Chris@69 5110
Chris@69 5111
Chris@69 5112
Chris@69 5113
Chris@69 5114
Chris@69 5115
Chris@69 5116 if test -n "$ac_tool_prefix"; then
Chris@69 5117 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
Chris@69 5118 set dummy ${ac_tool_prefix}objdump; ac_word=$2
Chris@69 5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 5120 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 5121 if ${ac_cv_prog_OBJDUMP+:} false; then :
Chris@69 5122 $as_echo_n "(cached) " >&6
Chris@69 5123 else
Chris@69 5124 if test -n "$OBJDUMP"; then
Chris@69 5125 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
Chris@69 5126 else
Chris@69 5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 5128 for as_dir in $PATH
Chris@69 5129 do
Chris@69 5130 IFS=$as_save_IFS
Chris@69 5131 test -z "$as_dir" && as_dir=.
Chris@69 5132 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 5133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 5134 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Chris@69 5135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 5136 break 2
Chris@69 5137 fi
Chris@69 5138 done
Chris@69 5139 done
Chris@69 5140 IFS=$as_save_IFS
Chris@69 5141
Chris@69 5142 fi
Chris@69 5143 fi
Chris@69 5144 OBJDUMP=$ac_cv_prog_OBJDUMP
Chris@69 5145 if test -n "$OBJDUMP"; then
Chris@69 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Chris@69 5147 $as_echo "$OBJDUMP" >&6; }
Chris@69 5148 else
Chris@69 5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 5150 $as_echo "no" >&6; }
Chris@69 5151 fi
Chris@69 5152
Chris@69 5153
Chris@69 5154 fi
Chris@69 5155 if test -z "$ac_cv_prog_OBJDUMP"; then
Chris@69 5156 ac_ct_OBJDUMP=$OBJDUMP
Chris@69 5157 # Extract the first word of "objdump", so it can be a program name with args.
Chris@69 5158 set dummy objdump; ac_word=$2
Chris@69 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 5160 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 5161 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Chris@69 5162 $as_echo_n "(cached) " >&6
Chris@69 5163 else
Chris@69 5164 if test -n "$ac_ct_OBJDUMP"; then
Chris@69 5165 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
Chris@69 5166 else
Chris@69 5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 5168 for as_dir in $PATH
Chris@69 5169 do
Chris@69 5170 IFS=$as_save_IFS
Chris@69 5171 test -z "$as_dir" && as_dir=.
Chris@69 5172 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 5173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 5174 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Chris@69 5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 5176 break 2
Chris@69 5177 fi
Chris@69 5178 done
Chris@69 5179 done
Chris@69 5180 IFS=$as_save_IFS
Chris@69 5181
Chris@69 5182 fi
Chris@69 5183 fi
Chris@69 5184 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
Chris@69 5185 if test -n "$ac_ct_OBJDUMP"; then
Chris@69 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Chris@69 5187 $as_echo "$ac_ct_OBJDUMP" >&6; }
Chris@69 5188 else
Chris@69 5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 5190 $as_echo "no" >&6; }
Chris@69 5191 fi
Chris@69 5192
Chris@69 5193 if test "x$ac_ct_OBJDUMP" = x; then
Chris@69 5194 OBJDUMP="false"
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 OBJDUMP=$ac_ct_OBJDUMP
Chris@69 5203 fi
Chris@69 5204 else
Chris@69 5205 OBJDUMP="$ac_cv_prog_OBJDUMP"
Chris@69 5206 fi
Chris@69 5207
Chris@69 5208 test -z "$OBJDUMP" && OBJDUMP=objdump
Chris@69 5209
Chris@69 5210
Chris@69 5211
Chris@69 5212
Chris@69 5213
Chris@69 5214
Chris@69 5215
Chris@69 5216
Chris@69 5217
Chris@69 5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
Chris@69 5219 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
Chris@69 5220 if ${lt_cv_deplibs_check_method+:} false; then :
Chris@69 5221 $as_echo_n "(cached) " >&6
Chris@69 5222 else
Chris@69 5223 lt_cv_file_magic_cmd='$MAGIC_CMD'
Chris@69 5224 lt_cv_file_magic_test_file=
Chris@69 5225 lt_cv_deplibs_check_method='unknown'
Chris@69 5226 # Need to set the preceding variable on all platforms that support
Chris@69 5227 # interlibrary dependencies.
Chris@69 5228 # 'none' -- dependencies not supported.
Chris@69 5229 # 'unknown' -- same as none, but documents that we really don't know.
Chris@69 5230 # 'pass_all' -- all dependencies passed with no checks.
Chris@69 5231 # 'test_compile' -- check by making test program.
Chris@69 5232 # 'file_magic [[regex]]' -- check by looking for files in library path
Chris@69 5233 # that responds to the $file_magic_cmd with a given extended regex.
Chris@69 5234 # If you have 'file' or equivalent on your system and you're not sure
Chris@69 5235 # whether 'pass_all' will *always* work, you probably want this one.
Chris@69 5236
Chris@69 5237 case $host_os in
Chris@69 5238 aix[4-9]*)
Chris@69 5239 lt_cv_deplibs_check_method=pass_all
Chris@69 5240 ;;
Chris@69 5241
Chris@69 5242 beos*)
Chris@69 5243 lt_cv_deplibs_check_method=pass_all
Chris@69 5244 ;;
Chris@69 5245
Chris@69 5246 bsdi[45]*)
Chris@69 5247 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
Chris@69 5248 lt_cv_file_magic_cmd='/usr/bin/file -L'
Chris@69 5249 lt_cv_file_magic_test_file=/shlib/libc.so
Chris@69 5250 ;;
Chris@69 5251
Chris@69 5252 cygwin*)
Chris@69 5253 # func_win32_libid is a shell function defined in ltmain.sh
Chris@69 5254 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Chris@69 5255 lt_cv_file_magic_cmd='func_win32_libid'
Chris@69 5256 ;;
Chris@69 5257
Chris@69 5258 mingw* | pw32*)
Chris@69 5259 # Base MSYS/MinGW do not provide the 'file' command needed by
Chris@69 5260 # func_win32_libid shell function, so use a weaker test based on 'objdump',
Chris@69 5261 # unless we find 'file', for example because we are cross-compiling.
Chris@69 5262 if ( file / ) >/dev/null 2>&1; then
Chris@69 5263 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Chris@69 5264 lt_cv_file_magic_cmd='func_win32_libid'
Chris@69 5265 else
Chris@69 5266 # Keep this pattern in sync with the one in func_win32_libid.
Chris@69 5267 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
Chris@69 5268 lt_cv_file_magic_cmd='$OBJDUMP -f'
Chris@69 5269 fi
Chris@69 5270 ;;
Chris@69 5271
Chris@69 5272 cegcc*)
Chris@69 5273 # use the weaker test based on 'objdump'. See mingw*.
Chris@69 5274 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
Chris@69 5275 lt_cv_file_magic_cmd='$OBJDUMP -f'
Chris@69 5276 ;;
Chris@69 5277
Chris@69 5278 darwin* | rhapsody*)
Chris@69 5279 lt_cv_deplibs_check_method=pass_all
Chris@69 5280 ;;
Chris@69 5281
Chris@69 5282 freebsd* | dragonfly*)
Chris@69 5283 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Chris@69 5284 case $host_cpu in
Chris@69 5285 i*86 )
Chris@69 5286 # Not sure whether the presence of OpenBSD here was a mistake.
Chris@69 5287 # Let's accept both of them until this is cleared up.
Chris@69 5288 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
Chris@69 5289 lt_cv_file_magic_cmd=/usr/bin/file
Chris@69 5290 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
Chris@69 5291 ;;
Chris@69 5292 esac
Chris@69 5293 else
Chris@69 5294 lt_cv_deplibs_check_method=pass_all
Chris@69 5295 fi
Chris@69 5296 ;;
Chris@69 5297
Chris@69 5298 haiku*)
Chris@69 5299 lt_cv_deplibs_check_method=pass_all
Chris@69 5300 ;;
Chris@69 5301
Chris@69 5302 hpux10.20* | hpux11*)
Chris@69 5303 lt_cv_file_magic_cmd=/usr/bin/file
Chris@69 5304 case $host_cpu in
Chris@69 5305 ia64*)
Chris@69 5306 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 5307 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
Chris@69 5308 ;;
Chris@69 5309 hppa*64*)
Chris@69 5310 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 5311 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
Chris@69 5312 ;;
Chris@69 5313 *)
Chris@69 5314 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
Chris@69 5315 lt_cv_file_magic_test_file=/usr/lib/libc.sl
Chris@69 5316 ;;
Chris@69 5317 esac
Chris@69 5318 ;;
Chris@69 5319
Chris@69 5320 interix[3-9]*)
Chris@69 5321 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
Chris@69 5322 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
Chris@69 5323 ;;
Chris@69 5324
Chris@69 5325 irix5* | irix6* | nonstopux*)
Chris@69 5326 case $LD in
Chris@69 5327 *-32|*"-32 ") libmagic=32-bit;;
Chris@69 5328 *-n32|*"-n32 ") libmagic=N32;;
Chris@69 5329 *-64|*"-64 ") libmagic=64-bit;;
Chris@69 5330 *) libmagic=never-match;;
Chris@69 5331 esac
Chris@69 5332 lt_cv_deplibs_check_method=pass_all
Chris@69 5333 ;;
Chris@69 5334
Chris@69 5335 # This must be glibc/ELF.
Chris@69 5336 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Chris@69 5337 lt_cv_deplibs_check_method=pass_all
Chris@69 5338 ;;
Chris@69 5339
Chris@69 5340 netbsd*)
Chris@69 5341 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Chris@69 5342 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Chris@69 5343 else
Chris@69 5344 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
Chris@69 5345 fi
Chris@69 5346 ;;
Chris@69 5347
Chris@69 5348 newos6*)
Chris@69 5349 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
Chris@69 5350 lt_cv_file_magic_cmd=/usr/bin/file
Chris@69 5351 lt_cv_file_magic_test_file=/usr/lib/libnls.so
Chris@69 5352 ;;
Chris@69 5353
Chris@69 5354 *nto* | *qnx*)
Chris@69 5355 lt_cv_deplibs_check_method=pass_all
Chris@69 5356 ;;
Chris@69 5357
Chris@69 5358 openbsd* | bitrig*)
Chris@69 5359 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Chris@69 5360 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
Chris@69 5361 else
Chris@69 5362 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Chris@69 5363 fi
Chris@69 5364 ;;
Chris@69 5365
Chris@69 5366 osf3* | osf4* | osf5*)
Chris@69 5367 lt_cv_deplibs_check_method=pass_all
Chris@69 5368 ;;
Chris@69 5369
Chris@69 5370 rdos*)
Chris@69 5371 lt_cv_deplibs_check_method=pass_all
Chris@69 5372 ;;
Chris@69 5373
Chris@69 5374 solaris*)
Chris@69 5375 lt_cv_deplibs_check_method=pass_all
Chris@69 5376 ;;
Chris@69 5377
Chris@69 5378 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Chris@69 5379 lt_cv_deplibs_check_method=pass_all
Chris@69 5380 ;;
Chris@69 5381
Chris@69 5382 sysv4 | sysv4.3*)
Chris@69 5383 case $host_vendor in
Chris@69 5384 motorola)
Chris@69 5385 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 5386 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
Chris@69 5387 ;;
Chris@69 5388 ncr)
Chris@69 5389 lt_cv_deplibs_check_method=pass_all
Chris@69 5390 ;;
Chris@69 5391 sequent)
Chris@69 5392 lt_cv_file_magic_cmd='/bin/file'
Chris@69 5393 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
Chris@69 5394 ;;
Chris@69 5395 sni)
Chris@69 5396 lt_cv_file_magic_cmd='/bin/file'
Chris@69 5397 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
Chris@69 5398 lt_cv_file_magic_test_file=/lib/libc.so
Chris@69 5399 ;;
Chris@69 5400 siemens)
Chris@69 5401 lt_cv_deplibs_check_method=pass_all
Chris@69 5402 ;;
Chris@69 5403 pc)
Chris@69 5404 lt_cv_deplibs_check_method=pass_all
Chris@69 5405 ;;
Chris@69 5406 esac
Chris@69 5407 ;;
Chris@69 5408
Chris@69 5409 tpf*)
Chris@69 5410 lt_cv_deplibs_check_method=pass_all
Chris@69 5411 ;;
Chris@69 5412 os2*)
Chris@69 5413 lt_cv_deplibs_check_method=pass_all
Chris@69 5414 ;;
Chris@69 5415 esac
Chris@69 5416
Chris@69 5417 fi
Chris@69 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
Chris@69 5419 $as_echo "$lt_cv_deplibs_check_method" >&6; }
Chris@69 5420
Chris@69 5421 file_magic_glob=
Chris@69 5422 want_nocaseglob=no
Chris@69 5423 if test "$build" = "$host"; then
Chris@69 5424 case $host_os in
Chris@69 5425 mingw* | pw32*)
Chris@69 5426 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
Chris@69 5427 want_nocaseglob=yes
Chris@69 5428 else
Chris@69 5429 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
Chris@69 5430 fi
Chris@69 5431 ;;
Chris@69 5432 esac
Chris@69 5433 fi
Chris@69 5434
Chris@69 5435 file_magic_cmd=$lt_cv_file_magic_cmd
Chris@69 5436 deplibs_check_method=$lt_cv_deplibs_check_method
Chris@69 5437 test -z "$deplibs_check_method" && deplibs_check_method=unknown
Chris@69 5438
Chris@69 5439
Chris@69 5440
Chris@69 5441
Chris@69 5442
Chris@69 5443
Chris@69 5444
Chris@69 5445
Chris@69 5446
Chris@69 5447
Chris@69 5448
Chris@69 5449
Chris@69 5450
Chris@69 5451
Chris@69 5452
Chris@69 5453
Chris@69 5454
Chris@69 5455
Chris@69 5456
Chris@69 5457
Chris@69 5458
Chris@69 5459
Chris@69 5460 if test -n "$ac_tool_prefix"; then
Chris@69 5461 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
Chris@69 5462 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Chris@69 5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 5464 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 5465 if ${ac_cv_prog_DLLTOOL+:} false; then :
Chris@69 5466 $as_echo_n "(cached) " >&6
Chris@69 5467 else
Chris@69 5468 if test -n "$DLLTOOL"; then
Chris@69 5469 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
Chris@69 5470 else
Chris@69 5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 5472 for as_dir in $PATH
Chris@69 5473 do
Chris@69 5474 IFS=$as_save_IFS
Chris@69 5475 test -z "$as_dir" && as_dir=.
Chris@69 5476 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 5477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 5478 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Chris@69 5479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 5480 break 2
Chris@69 5481 fi
Chris@69 5482 done
Chris@69 5483 done
Chris@69 5484 IFS=$as_save_IFS
Chris@69 5485
Chris@69 5486 fi
Chris@69 5487 fi
Chris@69 5488 DLLTOOL=$ac_cv_prog_DLLTOOL
Chris@69 5489 if test -n "$DLLTOOL"; then
Chris@69 5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Chris@69 5491 $as_echo "$DLLTOOL" >&6; }
Chris@69 5492 else
Chris@69 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 5494 $as_echo "no" >&6; }
Chris@69 5495 fi
Chris@69 5496
Chris@69 5497
Chris@69 5498 fi
Chris@69 5499 if test -z "$ac_cv_prog_DLLTOOL"; then
Chris@69 5500 ac_ct_DLLTOOL=$DLLTOOL
Chris@69 5501 # Extract the first word of "dlltool", so it can be a program name with args.
Chris@69 5502 set dummy dlltool; ac_word=$2
Chris@69 5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 5504 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 5505 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
Chris@69 5506 $as_echo_n "(cached) " >&6
Chris@69 5507 else
Chris@69 5508 if test -n "$ac_ct_DLLTOOL"; then
Chris@69 5509 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
Chris@69 5510 else
Chris@69 5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 5512 for as_dir in $PATH
Chris@69 5513 do
Chris@69 5514 IFS=$as_save_IFS
Chris@69 5515 test -z "$as_dir" && as_dir=.
Chris@69 5516 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 5517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 5518 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Chris@69 5519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 5520 break 2
Chris@69 5521 fi
Chris@69 5522 done
Chris@69 5523 done
Chris@69 5524 IFS=$as_save_IFS
Chris@69 5525
Chris@69 5526 fi
Chris@69 5527 fi
Chris@69 5528 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
Chris@69 5529 if test -n "$ac_ct_DLLTOOL"; then
Chris@69 5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Chris@69 5531 $as_echo "$ac_ct_DLLTOOL" >&6; }
Chris@69 5532 else
Chris@69 5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 5534 $as_echo "no" >&6; }
Chris@69 5535 fi
Chris@69 5536
Chris@69 5537 if test "x$ac_ct_DLLTOOL" = x; then
Chris@69 5538 DLLTOOL="false"
Chris@69 5539 else
Chris@69 5540 case $cross_compiling:$ac_tool_warned in
Chris@69 5541 yes:)
Chris@69 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 5543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 5544 ac_tool_warned=yes ;;
Chris@69 5545 esac
Chris@69 5546 DLLTOOL=$ac_ct_DLLTOOL
Chris@69 5547 fi
Chris@69 5548 else
Chris@69 5549 DLLTOOL="$ac_cv_prog_DLLTOOL"
Chris@69 5550 fi
Chris@69 5551
Chris@69 5552 test -z "$DLLTOOL" && DLLTOOL=dlltool
Chris@69 5553
Chris@69 5554
Chris@69 5555
Chris@69 5556
Chris@69 5557
Chris@69 5558
Chris@69 5559
Chris@69 5560
Chris@69 5561
Chris@69 5562
Chris@69 5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
Chris@69 5564 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
Chris@69 5565 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
Chris@69 5566 $as_echo_n "(cached) " >&6
Chris@69 5567 else
Chris@69 5568 lt_cv_sharedlib_from_linklib_cmd='unknown'
Chris@69 5569
Chris@69 5570 case $host_os in
Chris@69 5571 cygwin* | mingw* | pw32* | cegcc*)
Chris@69 5572 # two different shell functions defined in ltmain.sh;
Chris@69 5573 # decide which one to use based on capabilities of $DLLTOOL
Chris@69 5574 case `$DLLTOOL --help 2>&1` in
Chris@69 5575 *--identify-strict*)
Chris@69 5576 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
Chris@69 5577 ;;
Chris@69 5578 *)
Chris@69 5579 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
Chris@69 5580 ;;
Chris@69 5581 esac
Chris@69 5582 ;;
Chris@69 5583 *)
Chris@69 5584 # fallback: assume linklib IS sharedlib
Chris@69 5585 lt_cv_sharedlib_from_linklib_cmd=$ECHO
Chris@69 5586 ;;
Chris@69 5587 esac
Chris@69 5588
Chris@69 5589 fi
Chris@69 5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
Chris@69 5591 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
Chris@69 5592 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
Chris@69 5593 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
Chris@69 5594
Chris@69 5595
Chris@69 5596
Chris@69 5597
Chris@69 5598
Chris@69 5599
Chris@69 5600
Chris@69 5601
Chris@69 5602 if test -n "$ac_tool_prefix"; then
Chris@69 5603 for ac_prog in ar
Chris@69 5604 do
Chris@69 5605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@69 5606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@69 5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 5608 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 5609 if ${ac_cv_prog_AR+:} false; then :
Chris@69 5610 $as_echo_n "(cached) " >&6
Chris@69 5611 else
Chris@69 5612 if test -n "$AR"; then
Chris@69 5613 ac_cv_prog_AR="$AR" # Let the user override the test.
Chris@69 5614 else
Chris@69 5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 5616 for as_dir in $PATH
Chris@69 5617 do
Chris@69 5618 IFS=$as_save_IFS
Chris@69 5619 test -z "$as_dir" && as_dir=.
Chris@69 5620 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 5621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 5622 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Chris@69 5623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 5624 break 2
Chris@69 5625 fi
Chris@69 5626 done
Chris@69 5627 done
Chris@69 5628 IFS=$as_save_IFS
Chris@69 5629
Chris@69 5630 fi
Chris@69 5631 fi
Chris@69 5632 AR=$ac_cv_prog_AR
Chris@69 5633 if test -n "$AR"; then
Chris@69 5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Chris@69 5635 $as_echo "$AR" >&6; }
Chris@69 5636 else
Chris@69 5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 5638 $as_echo "no" >&6; }
Chris@69 5639 fi
Chris@69 5640
Chris@69 5641
Chris@69 5642 test -n "$AR" && break
Chris@69 5643 done
Chris@69 5644 fi
Chris@69 5645 if test -z "$AR"; then
Chris@69 5646 ac_ct_AR=$AR
Chris@69 5647 for ac_prog in ar
Chris@69 5648 do
Chris@69 5649 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@69 5650 set dummy $ac_prog; ac_word=$2
Chris@69 5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 5652 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 5653 if ${ac_cv_prog_ac_ct_AR+:} false; then :
Chris@69 5654 $as_echo_n "(cached) " >&6
Chris@69 5655 else
Chris@69 5656 if test -n "$ac_ct_AR"; then
Chris@69 5657 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Chris@69 5658 else
Chris@69 5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 5660 for as_dir in $PATH
Chris@69 5661 do
Chris@69 5662 IFS=$as_save_IFS
Chris@69 5663 test -z "$as_dir" && as_dir=.
Chris@69 5664 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 5665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 5666 ac_cv_prog_ac_ct_AR="$ac_prog"
Chris@69 5667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 5668 break 2
Chris@69 5669 fi
Chris@69 5670 done
Chris@69 5671 done
Chris@69 5672 IFS=$as_save_IFS
Chris@69 5673
Chris@69 5674 fi
Chris@69 5675 fi
Chris@69 5676 ac_ct_AR=$ac_cv_prog_ac_ct_AR
Chris@69 5677 if test -n "$ac_ct_AR"; then
Chris@69 5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Chris@69 5679 $as_echo "$ac_ct_AR" >&6; }
Chris@69 5680 else
Chris@69 5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 5682 $as_echo "no" >&6; }
Chris@69 5683 fi
Chris@69 5684
Chris@69 5685
Chris@69 5686 test -n "$ac_ct_AR" && break
Chris@69 5687 done
Chris@69 5688
Chris@69 5689 if test "x$ac_ct_AR" = x; then
Chris@69 5690 AR="false"
Chris@69 5691 else
Chris@69 5692 case $cross_compiling:$ac_tool_warned in
Chris@69 5693 yes:)
Chris@69 5694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 5695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 5696 ac_tool_warned=yes ;;
Chris@69 5697 esac
Chris@69 5698 AR=$ac_ct_AR
Chris@69 5699 fi
Chris@69 5700 fi
Chris@69 5701
Chris@69 5702 : ${AR=ar}
Chris@69 5703 : ${AR_FLAGS=cru}
Chris@69 5704
Chris@69 5705
Chris@69 5706
Chris@69 5707
Chris@69 5708
Chris@69 5709
Chris@69 5710
Chris@69 5711
Chris@69 5712
Chris@69 5713
Chris@69 5714
Chris@69 5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
Chris@69 5716 $as_echo_n "checking for archiver @FILE support... " >&6; }
Chris@69 5717 if ${lt_cv_ar_at_file+:} false; then :
Chris@69 5718 $as_echo_n "(cached) " >&6
Chris@69 5719 else
Chris@69 5720 lt_cv_ar_at_file=no
Chris@69 5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 5722 /* end confdefs.h. */
Chris@69 5723
Chris@69 5724 int
Chris@69 5725 main ()
Chris@69 5726 {
Chris@69 5727
Chris@69 5728 ;
Chris@69 5729 return 0;
Chris@69 5730 }
Chris@69 5731 _ACEOF
Chris@69 5732 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 5733 echo conftest.$ac_objext > conftest.lst
Chris@69 5734 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
Chris@69 5735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
Chris@69 5736 (eval $lt_ar_try) 2>&5
Chris@69 5737 ac_status=$?
Chris@69 5738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 5739 test $ac_status = 0; }
Chris@69 5740 if test 0 -eq "$ac_status"; then
Chris@69 5741 # Ensure the archiver fails upon bogus file names.
Chris@69 5742 rm -f conftest.$ac_objext libconftest.a
Chris@69 5743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
Chris@69 5744 (eval $lt_ar_try) 2>&5
Chris@69 5745 ac_status=$?
Chris@69 5746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 5747 test $ac_status = 0; }
Chris@69 5748 if test 0 -ne "$ac_status"; then
Chris@69 5749 lt_cv_ar_at_file=@
Chris@69 5750 fi
Chris@69 5751 fi
Chris@69 5752 rm -f conftest.* libconftest.a
Chris@69 5753
Chris@69 5754 fi
Chris@69 5755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 5756
Chris@69 5757 fi
Chris@69 5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
Chris@69 5759 $as_echo "$lt_cv_ar_at_file" >&6; }
Chris@69 5760
Chris@69 5761 if test no = "$lt_cv_ar_at_file"; then
Chris@69 5762 archiver_list_spec=
Chris@69 5763 else
Chris@69 5764 archiver_list_spec=$lt_cv_ar_at_file
Chris@69 5765 fi
Chris@69 5766
Chris@69 5767
Chris@69 5768
Chris@69 5769
Chris@69 5770
Chris@69 5771
Chris@69 5772
Chris@69 5773 if test -n "$ac_tool_prefix"; then
Chris@69 5774 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Chris@69 5775 set dummy ${ac_tool_prefix}strip; ac_word=$2
Chris@69 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 5777 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 5778 if ${ac_cv_prog_STRIP+:} false; then :
Chris@69 5779 $as_echo_n "(cached) " >&6
Chris@69 5780 else
Chris@69 5781 if test -n "$STRIP"; then
Chris@69 5782 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
Chris@69 5783 else
Chris@69 5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 5785 for as_dir in $PATH
Chris@69 5786 do
Chris@69 5787 IFS=$as_save_IFS
Chris@69 5788 test -z "$as_dir" && as_dir=.
Chris@69 5789 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 5790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 5791 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Chris@69 5792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 5793 break 2
Chris@69 5794 fi
Chris@69 5795 done
Chris@69 5796 done
Chris@69 5797 IFS=$as_save_IFS
Chris@69 5798
Chris@69 5799 fi
Chris@69 5800 fi
Chris@69 5801 STRIP=$ac_cv_prog_STRIP
Chris@69 5802 if test -n "$STRIP"; then
Chris@69 5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Chris@69 5804 $as_echo "$STRIP" >&6; }
Chris@69 5805 else
Chris@69 5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 5807 $as_echo "no" >&6; }
Chris@69 5808 fi
Chris@69 5809
Chris@69 5810
Chris@69 5811 fi
Chris@69 5812 if test -z "$ac_cv_prog_STRIP"; then
Chris@69 5813 ac_ct_STRIP=$STRIP
Chris@69 5814 # Extract the first word of "strip", so it can be a program name with args.
Chris@69 5815 set dummy strip; ac_word=$2
Chris@69 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 5817 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 5818 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Chris@69 5819 $as_echo_n "(cached) " >&6
Chris@69 5820 else
Chris@69 5821 if test -n "$ac_ct_STRIP"; then
Chris@69 5822 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Chris@69 5823 else
Chris@69 5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 5825 for as_dir in $PATH
Chris@69 5826 do
Chris@69 5827 IFS=$as_save_IFS
Chris@69 5828 test -z "$as_dir" && as_dir=.
Chris@69 5829 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 5830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 5831 ac_cv_prog_ac_ct_STRIP="strip"
Chris@69 5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 5833 break 2
Chris@69 5834 fi
Chris@69 5835 done
Chris@69 5836 done
Chris@69 5837 IFS=$as_save_IFS
Chris@69 5838
Chris@69 5839 fi
Chris@69 5840 fi
Chris@69 5841 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
Chris@69 5842 if test -n "$ac_ct_STRIP"; then
Chris@69 5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Chris@69 5844 $as_echo "$ac_ct_STRIP" >&6; }
Chris@69 5845 else
Chris@69 5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 5847 $as_echo "no" >&6; }
Chris@69 5848 fi
Chris@69 5849
Chris@69 5850 if test "x$ac_ct_STRIP" = x; then
Chris@69 5851 STRIP=":"
Chris@69 5852 else
Chris@69 5853 case $cross_compiling:$ac_tool_warned in
Chris@69 5854 yes:)
Chris@69 5855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 5856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 5857 ac_tool_warned=yes ;;
Chris@69 5858 esac
Chris@69 5859 STRIP=$ac_ct_STRIP
Chris@69 5860 fi
Chris@69 5861 else
Chris@69 5862 STRIP="$ac_cv_prog_STRIP"
Chris@69 5863 fi
Chris@69 5864
Chris@69 5865 test -z "$STRIP" && STRIP=:
Chris@69 5866
Chris@69 5867
Chris@69 5868
Chris@69 5869
Chris@69 5870
Chris@69 5871
Chris@69 5872 if test -n "$ac_tool_prefix"; then
Chris@69 5873 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
Chris@69 5874 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Chris@69 5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 5876 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 5877 if ${ac_cv_prog_RANLIB+:} false; then :
Chris@69 5878 $as_echo_n "(cached) " >&6
Chris@69 5879 else
Chris@69 5880 if test -n "$RANLIB"; then
Chris@69 5881 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
Chris@69 5882 else
Chris@69 5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 5884 for as_dir in $PATH
Chris@69 5885 do
Chris@69 5886 IFS=$as_save_IFS
Chris@69 5887 test -z "$as_dir" && as_dir=.
Chris@69 5888 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 5889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 5890 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Chris@69 5891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 5892 break 2
Chris@69 5893 fi
Chris@69 5894 done
Chris@69 5895 done
Chris@69 5896 IFS=$as_save_IFS
Chris@69 5897
Chris@69 5898 fi
Chris@69 5899 fi
Chris@69 5900 RANLIB=$ac_cv_prog_RANLIB
Chris@69 5901 if test -n "$RANLIB"; then
Chris@69 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Chris@69 5903 $as_echo "$RANLIB" >&6; }
Chris@69 5904 else
Chris@69 5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 5906 $as_echo "no" >&6; }
Chris@69 5907 fi
Chris@69 5908
Chris@69 5909
Chris@69 5910 fi
Chris@69 5911 if test -z "$ac_cv_prog_RANLIB"; then
Chris@69 5912 ac_ct_RANLIB=$RANLIB
Chris@69 5913 # Extract the first word of "ranlib", so it can be a program name with args.
Chris@69 5914 set dummy ranlib; ac_word=$2
Chris@69 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 5916 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 5917 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Chris@69 5918 $as_echo_n "(cached) " >&6
Chris@69 5919 else
Chris@69 5920 if test -n "$ac_ct_RANLIB"; then
Chris@69 5921 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Chris@69 5922 else
Chris@69 5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 5924 for as_dir in $PATH
Chris@69 5925 do
Chris@69 5926 IFS=$as_save_IFS
Chris@69 5927 test -z "$as_dir" && as_dir=.
Chris@69 5928 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 5929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 5930 ac_cv_prog_ac_ct_RANLIB="ranlib"
Chris@69 5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 5932 break 2
Chris@69 5933 fi
Chris@69 5934 done
Chris@69 5935 done
Chris@69 5936 IFS=$as_save_IFS
Chris@69 5937
Chris@69 5938 fi
Chris@69 5939 fi
Chris@69 5940 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
Chris@69 5941 if test -n "$ac_ct_RANLIB"; then
Chris@69 5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Chris@69 5943 $as_echo "$ac_ct_RANLIB" >&6; }
Chris@69 5944 else
Chris@69 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 5946 $as_echo "no" >&6; }
Chris@69 5947 fi
Chris@69 5948
Chris@69 5949 if test "x$ac_ct_RANLIB" = x; then
Chris@69 5950 RANLIB=":"
Chris@69 5951 else
Chris@69 5952 case $cross_compiling:$ac_tool_warned in
Chris@69 5953 yes:)
Chris@69 5954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 5955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 5956 ac_tool_warned=yes ;;
Chris@69 5957 esac
Chris@69 5958 RANLIB=$ac_ct_RANLIB
Chris@69 5959 fi
Chris@69 5960 else
Chris@69 5961 RANLIB="$ac_cv_prog_RANLIB"
Chris@69 5962 fi
Chris@69 5963
Chris@69 5964 test -z "$RANLIB" && RANLIB=:
Chris@69 5965
Chris@69 5966
Chris@69 5967
Chris@69 5968
Chris@69 5969
Chris@69 5970
Chris@69 5971 # Determine commands to create old-style static archives.
Chris@69 5972 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
Chris@69 5973 old_postinstall_cmds='chmod 644 $oldlib'
Chris@69 5974 old_postuninstall_cmds=
Chris@69 5975
Chris@69 5976 if test -n "$RANLIB"; then
Chris@69 5977 case $host_os in
Chris@69 5978 bitrig* | openbsd*)
Chris@69 5979 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
Chris@69 5980 ;;
Chris@69 5981 *)
Chris@69 5982 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
Chris@69 5983 ;;
Chris@69 5984 esac
Chris@69 5985 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
Chris@69 5986 fi
Chris@69 5987
Chris@69 5988 case $host_os in
Chris@69 5989 darwin*)
Chris@69 5990 lock_old_archive_extraction=yes ;;
Chris@69 5991 *)
Chris@69 5992 lock_old_archive_extraction=no ;;
Chris@69 5993 esac
Chris@69 5994
Chris@69 5995
Chris@69 5996
Chris@69 5997
Chris@69 5998
Chris@69 5999
Chris@69 6000
Chris@69 6001
Chris@69 6002
Chris@69 6003
Chris@69 6004
Chris@69 6005
Chris@69 6006
Chris@69 6007
Chris@69 6008
Chris@69 6009
Chris@69 6010
Chris@69 6011
Chris@69 6012
Chris@69 6013
Chris@69 6014
Chris@69 6015
Chris@69 6016
Chris@69 6017
Chris@69 6018
Chris@69 6019
Chris@69 6020
Chris@69 6021
Chris@69 6022
Chris@69 6023
Chris@69 6024
Chris@69 6025
Chris@69 6026
Chris@69 6027
Chris@69 6028
Chris@69 6029
Chris@69 6030
Chris@69 6031
Chris@69 6032
Chris@69 6033 # If no C compiler was specified, use CC.
Chris@69 6034 LTCC=${LTCC-"$CC"}
Chris@69 6035
Chris@69 6036 # If no C compiler flags were specified, use CFLAGS.
Chris@69 6037 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@69 6038
Chris@69 6039 # Allow CC to be a program name with arguments.
Chris@69 6040 compiler=$CC
Chris@69 6041
Chris@69 6042
Chris@69 6043 # Check for command to grab the raw symbol name followed by C symbol from nm.
Chris@69 6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
Chris@69 6045 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Chris@69 6046 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Chris@69 6047 $as_echo_n "(cached) " >&6
Chris@69 6048 else
Chris@69 6049
Chris@69 6050 # These are sane defaults that work on at least a few old systems.
Chris@69 6051 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
Chris@69 6052
Chris@69 6053 # Character class describing NM global symbol codes.
Chris@69 6054 symcode='[BCDEGRST]'
Chris@69 6055
Chris@69 6056 # Regexp to match symbols that can be accessed directly from C.
Chris@69 6057 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
Chris@69 6058
Chris@69 6059 # Define system-specific variables.
Chris@69 6060 case $host_os in
Chris@69 6061 aix*)
Chris@69 6062 symcode='[BCDT]'
Chris@69 6063 ;;
Chris@69 6064 cygwin* | mingw* | pw32* | cegcc*)
Chris@69 6065 symcode='[ABCDGISTW]'
Chris@69 6066 ;;
Chris@69 6067 hpux*)
Chris@69 6068 if test ia64 = "$host_cpu"; then
Chris@69 6069 symcode='[ABCDEGRST]'
Chris@69 6070 fi
Chris@69 6071 ;;
Chris@69 6072 irix* | nonstopux*)
Chris@69 6073 symcode='[BCDEGRST]'
Chris@69 6074 ;;
Chris@69 6075 osf*)
Chris@69 6076 symcode='[BCDEGQRST]'
Chris@69 6077 ;;
Chris@69 6078 solaris*)
Chris@69 6079 symcode='[BDRT]'
Chris@69 6080 ;;
Chris@69 6081 sco3.2v5*)
Chris@69 6082 symcode='[DT]'
Chris@69 6083 ;;
Chris@69 6084 sysv4.2uw2*)
Chris@69 6085 symcode='[DT]'
Chris@69 6086 ;;
Chris@69 6087 sysv5* | sco5v6* | unixware* | OpenUNIX*)
Chris@69 6088 symcode='[ABDT]'
Chris@69 6089 ;;
Chris@69 6090 sysv4)
Chris@69 6091 symcode='[DFNSTU]'
Chris@69 6092 ;;
Chris@69 6093 esac
Chris@69 6094
Chris@69 6095 # If we're using GNU nm, then use its standard symbol codes.
Chris@69 6096 case `$NM -V 2>&1` in
Chris@69 6097 *GNU* | *'with BFD'*)
Chris@69 6098 symcode='[ABCDGIRSTW]' ;;
Chris@69 6099 esac
Chris@69 6100
Chris@69 6101 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Chris@69 6102 # Gets list of data symbols to import.
Chris@69 6103 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
Chris@69 6104 # Adjust the below global symbol transforms to fixup imported variables.
Chris@69 6105 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
Chris@69 6106 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
Chris@69 6107 lt_c_name_lib_hook="\
Chris@69 6108 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
Chris@69 6109 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
Chris@69 6110 else
Chris@69 6111 # Disable hooks by default.
Chris@69 6112 lt_cv_sys_global_symbol_to_import=
Chris@69 6113 lt_cdecl_hook=
Chris@69 6114 lt_c_name_hook=
Chris@69 6115 lt_c_name_lib_hook=
Chris@69 6116 fi
Chris@69 6117
Chris@69 6118 # Transform an extracted symbol line into a proper C declaration.
Chris@69 6119 # Some systems (esp. on ia64) link data and code symbols differently,
Chris@69 6120 # so use this general approach.
Chris@69 6121 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
Chris@69 6122 $lt_cdecl_hook\
Chris@69 6123 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
Chris@69 6124 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
Chris@69 6125
Chris@69 6126 # Transform an extracted symbol line into symbol name and symbol address
Chris@69 6127 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
Chris@69 6128 $lt_c_name_hook\
Chris@69 6129 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
Chris@69 6130 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
Chris@69 6131
Chris@69 6132 # Transform an extracted symbol line into symbol name with lib prefix and
Chris@69 6133 # symbol address.
Chris@69 6134 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
Chris@69 6135 $lt_c_name_lib_hook\
Chris@69 6136 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
Chris@69 6137 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
Chris@69 6138 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
Chris@69 6139
Chris@69 6140 # Handle CRLF in mingw tool chain
Chris@69 6141 opt_cr=
Chris@69 6142 case $build_os in
Chris@69 6143 mingw*)
Chris@69 6144 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
Chris@69 6145 ;;
Chris@69 6146 esac
Chris@69 6147
Chris@69 6148 # Try without a prefix underscore, then with it.
Chris@69 6149 for ac_symprfx in "" "_"; do
Chris@69 6150
Chris@69 6151 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
Chris@69 6152 symxfrm="\\1 $ac_symprfx\\2 \\2"
Chris@69 6153
Chris@69 6154 # Write the raw and C identifiers.
Chris@69 6155 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Chris@69 6156 # Fake it for dumpbin and say T for any non-static function,
Chris@69 6157 # D for any global variable and I for any imported variable.
Chris@69 6158 # Also find C++ and __fastcall symbols from MSVC++,
Chris@69 6159 # which start with @ or ?.
Chris@69 6160 lt_cv_sys_global_symbol_pipe="$AWK '"\
Chris@69 6161 " {last_section=section; section=\$ 3};"\
Chris@69 6162 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
Chris@69 6163 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
Chris@69 6164 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
Chris@69 6165 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
Chris@69 6166 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
Chris@69 6167 " \$ 0!~/External *\|/{next};"\
Chris@69 6168 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
Chris@69 6169 " {if(hide[section]) next};"\
Chris@69 6170 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
Chris@69 6171 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
Chris@69 6172 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
Chris@69 6173 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
Chris@69 6174 " ' prfx=^$ac_symprfx"
Chris@69 6175 else
Chris@69 6176 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Chris@69 6177 fi
Chris@69 6178 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
Chris@69 6179
Chris@69 6180 # Check to see that the pipe works correctly.
Chris@69 6181 pipe_works=no
Chris@69 6182
Chris@69 6183 rm -f conftest*
Chris@69 6184 cat > conftest.$ac_ext <<_LT_EOF
Chris@69 6185 #ifdef __cplusplus
Chris@69 6186 extern "C" {
Chris@69 6187 #endif
Chris@69 6188 char nm_test_var;
Chris@69 6189 void nm_test_func(void);
Chris@69 6190 void nm_test_func(void){}
Chris@69 6191 #ifdef __cplusplus
Chris@69 6192 }
Chris@69 6193 #endif
Chris@69 6194 int main(){nm_test_var='a';nm_test_func();return(0);}
Chris@69 6195 _LT_EOF
Chris@69 6196
Chris@69 6197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@69 6198 (eval $ac_compile) 2>&5
Chris@69 6199 ac_status=$?
Chris@69 6200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 6201 test $ac_status = 0; }; then
Chris@69 6202 # Now try to grab the symbols.
Chris@69 6203 nlist=conftest.nm
Chris@69 6204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
Chris@69 6205 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
Chris@69 6206 ac_status=$?
Chris@69 6207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 6208 test $ac_status = 0; } && test -s "$nlist"; then
Chris@69 6209 # Try sorting and uniquifying the output.
Chris@69 6210 if sort "$nlist" | uniq > "$nlist"T; then
Chris@69 6211 mv -f "$nlist"T "$nlist"
Chris@69 6212 else
Chris@69 6213 rm -f "$nlist"T
Chris@69 6214 fi
Chris@69 6215
Chris@69 6216 # Make sure that we snagged all the symbols we need.
Chris@69 6217 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
Chris@69 6218 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
Chris@69 6219 cat <<_LT_EOF > conftest.$ac_ext
Chris@69 6220 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
Chris@69 6221 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
Chris@69 6222 /* DATA imports from DLLs on WIN32 can't be const, because runtime
Chris@69 6223 relocations are performed -- see ld's documentation on pseudo-relocs. */
Chris@69 6224 # define LT_DLSYM_CONST
Chris@69 6225 #elif defined __osf__
Chris@69 6226 /* This system does not cope well with relocations in const data. */
Chris@69 6227 # define LT_DLSYM_CONST
Chris@69 6228 #else
Chris@69 6229 # define LT_DLSYM_CONST const
Chris@69 6230 #endif
Chris@69 6231
Chris@69 6232 #ifdef __cplusplus
Chris@69 6233 extern "C" {
Chris@69 6234 #endif
Chris@69 6235
Chris@69 6236 _LT_EOF
Chris@69 6237 # Now generate the symbol file.
Chris@69 6238 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
Chris@69 6239
Chris@69 6240 cat <<_LT_EOF >> conftest.$ac_ext
Chris@69 6241
Chris@69 6242 /* The mapping between symbol names and symbols. */
Chris@69 6243 LT_DLSYM_CONST struct {
Chris@69 6244 const char *name;
Chris@69 6245 void *address;
Chris@69 6246 }
Chris@69 6247 lt__PROGRAM__LTX_preloaded_symbols[] =
Chris@69 6248 {
Chris@69 6249 { "@PROGRAM@", (void *) 0 },
Chris@69 6250 _LT_EOF
Chris@69 6251 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
Chris@69 6252 cat <<\_LT_EOF >> conftest.$ac_ext
Chris@69 6253 {0, (void *) 0}
Chris@69 6254 };
Chris@69 6255
Chris@69 6256 /* This works around a problem in FreeBSD linker */
Chris@69 6257 #ifdef FREEBSD_WORKAROUND
Chris@69 6258 static const void *lt_preloaded_setup() {
Chris@69 6259 return lt__PROGRAM__LTX_preloaded_symbols;
Chris@69 6260 }
Chris@69 6261 #endif
Chris@69 6262
Chris@69 6263 #ifdef __cplusplus
Chris@69 6264 }
Chris@69 6265 #endif
Chris@69 6266 _LT_EOF
Chris@69 6267 # Now try linking the two files.
Chris@69 6268 mv conftest.$ac_objext conftstm.$ac_objext
Chris@69 6269 lt_globsym_save_LIBS=$LIBS
Chris@69 6270 lt_globsym_save_CFLAGS=$CFLAGS
Chris@69 6271 LIBS=conftstm.$ac_objext
Chris@69 6272 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Chris@69 6273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@69 6274 (eval $ac_link) 2>&5
Chris@69 6275 ac_status=$?
Chris@69 6276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 6277 test $ac_status = 0; } && test -s conftest$ac_exeext; then
Chris@69 6278 pipe_works=yes
Chris@69 6279 fi
Chris@69 6280 LIBS=$lt_globsym_save_LIBS
Chris@69 6281 CFLAGS=$lt_globsym_save_CFLAGS
Chris@69 6282 else
Chris@69 6283 echo "cannot find nm_test_func in $nlist" >&5
Chris@69 6284 fi
Chris@69 6285 else
Chris@69 6286 echo "cannot find nm_test_var in $nlist" >&5
Chris@69 6287 fi
Chris@69 6288 else
Chris@69 6289 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
Chris@69 6290 fi
Chris@69 6291 else
Chris@69 6292 echo "$progname: failed program was:" >&5
Chris@69 6293 cat conftest.$ac_ext >&5
Chris@69 6294 fi
Chris@69 6295 rm -rf conftest* conftst*
Chris@69 6296
Chris@69 6297 # Do not use the global_symbol_pipe unless it works.
Chris@69 6298 if test yes = "$pipe_works"; then
Chris@69 6299 break
Chris@69 6300 else
Chris@69 6301 lt_cv_sys_global_symbol_pipe=
Chris@69 6302 fi
Chris@69 6303 done
Chris@69 6304
Chris@69 6305 fi
Chris@69 6306
Chris@69 6307 if test -z "$lt_cv_sys_global_symbol_pipe"; then
Chris@69 6308 lt_cv_sys_global_symbol_to_cdecl=
Chris@69 6309 fi
Chris@69 6310 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Chris@69 6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
Chris@69 6312 $as_echo "failed" >&6; }
Chris@69 6313 else
Chris@69 6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Chris@69 6315 $as_echo "ok" >&6; }
Chris@69 6316 fi
Chris@69 6317
Chris@69 6318 # Response file support.
Chris@69 6319 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Chris@69 6320 nm_file_list_spec='@'
Chris@69 6321 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
Chris@69 6322 nm_file_list_spec='@'
Chris@69 6323 fi
Chris@69 6324
Chris@69 6325
Chris@69 6326
Chris@69 6327
Chris@69 6328
Chris@69 6329
Chris@69 6330
Chris@69 6331
Chris@69 6332
Chris@69 6333
Chris@69 6334
Chris@69 6335
Chris@69 6336
Chris@69 6337
Chris@69 6338
Chris@69 6339
Chris@69 6340
Chris@69 6341
Chris@69 6342
Chris@69 6343
Chris@69 6344
Chris@69 6345
Chris@69 6346
Chris@69 6347
Chris@69 6348
Chris@69 6349
Chris@69 6350
Chris@69 6351
Chris@69 6352
Chris@69 6353
Chris@69 6354
Chris@69 6355
Chris@69 6356
Chris@69 6357
Chris@69 6358
Chris@69 6359
Chris@69 6360
Chris@69 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
Chris@69 6362 $as_echo_n "checking for sysroot... " >&6; }
Chris@69 6363
Chris@69 6364 # Check whether --with-sysroot was given.
Chris@69 6365 if test "${with_sysroot+set}" = set; then :
Chris@69 6366 withval=$with_sysroot;
Chris@69 6367 else
Chris@69 6368 with_sysroot=no
Chris@69 6369 fi
Chris@69 6370
Chris@69 6371
Chris@69 6372 lt_sysroot=
Chris@69 6373 case $with_sysroot in #(
Chris@69 6374 yes)
Chris@69 6375 if test yes = "$GCC"; then
Chris@69 6376 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
Chris@69 6377 fi
Chris@69 6378 ;; #(
Chris@69 6379 /*)
Chris@69 6380 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
Chris@69 6381 ;; #(
Chris@69 6382 no|'')
Chris@69 6383 ;; #(
Chris@69 6384 *)
Chris@69 6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
Chris@69 6386 $as_echo "$with_sysroot" >&6; }
Chris@69 6387 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
Chris@69 6388 ;;
Chris@69 6389 esac
Chris@69 6390
Chris@69 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
Chris@69 6392 $as_echo "${lt_sysroot:-no}" >&6; }
Chris@69 6393
Chris@69 6394
Chris@69 6395
Chris@69 6396
Chris@69 6397
Chris@69 6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
Chris@69 6399 $as_echo_n "checking for a working dd... " >&6; }
Chris@69 6400 if ${ac_cv_path_lt_DD+:} false; then :
Chris@69 6401 $as_echo_n "(cached) " >&6
Chris@69 6402 else
Chris@69 6403 printf 0123456789abcdef0123456789abcdef >conftest.i
Chris@69 6404 cat conftest.i conftest.i >conftest2.i
Chris@69 6405 : ${lt_DD:=$DD}
Chris@69 6406 if test -z "$lt_DD"; then
Chris@69 6407 ac_path_lt_DD_found=false
Chris@69 6408 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@69 6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 6410 for as_dir in $PATH
Chris@69 6411 do
Chris@69 6412 IFS=$as_save_IFS
Chris@69 6413 test -z "$as_dir" && as_dir=.
Chris@69 6414 for ac_prog in dd; do
Chris@69 6415 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 6416 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
Chris@69 6417 as_fn_executable_p "$ac_path_lt_DD" || continue
Chris@69 6418 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
Chris@69 6419 cmp -s conftest.i conftest.out \
Chris@69 6420 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
Chris@69 6421 fi
Chris@69 6422 $ac_path_lt_DD_found && break 3
Chris@69 6423 done
Chris@69 6424 done
Chris@69 6425 done
Chris@69 6426 IFS=$as_save_IFS
Chris@69 6427 if test -z "$ac_cv_path_lt_DD"; then
Chris@69 6428 :
Chris@69 6429 fi
Chris@69 6430 else
Chris@69 6431 ac_cv_path_lt_DD=$lt_DD
Chris@69 6432 fi
Chris@69 6433
Chris@69 6434 rm -f conftest.i conftest2.i conftest.out
Chris@69 6435 fi
Chris@69 6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
Chris@69 6437 $as_echo "$ac_cv_path_lt_DD" >&6; }
Chris@69 6438
Chris@69 6439
Chris@69 6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
Chris@69 6441 $as_echo_n "checking how to truncate binary pipes... " >&6; }
Chris@69 6442 if ${lt_cv_truncate_bin+:} false; then :
Chris@69 6443 $as_echo_n "(cached) " >&6
Chris@69 6444 else
Chris@69 6445 printf 0123456789abcdef0123456789abcdef >conftest.i
Chris@69 6446 cat conftest.i conftest.i >conftest2.i
Chris@69 6447 lt_cv_truncate_bin=
Chris@69 6448 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
Chris@69 6449 cmp -s conftest.i conftest.out \
Chris@69 6450 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
Chris@69 6451 fi
Chris@69 6452 rm -f conftest.i conftest2.i conftest.out
Chris@69 6453 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
Chris@69 6454 fi
Chris@69 6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
Chris@69 6456 $as_echo "$lt_cv_truncate_bin" >&6; }
Chris@69 6457
Chris@69 6458
Chris@69 6459
Chris@69 6460
Chris@69 6461
Chris@69 6462
Chris@69 6463
Chris@69 6464 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
Chris@69 6465 func_cc_basename ()
Chris@69 6466 {
Chris@69 6467 for cc_temp in $*""; do
Chris@69 6468 case $cc_temp in
Chris@69 6469 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
Chris@69 6470 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
Chris@69 6471 \-*) ;;
Chris@69 6472 *) break;;
Chris@69 6473 esac
Chris@69 6474 done
Chris@69 6475 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Chris@69 6476 }
Chris@69 6477
Chris@69 6478 # Check whether --enable-libtool-lock was given.
Chris@69 6479 if test "${enable_libtool_lock+set}" = set; then :
Chris@69 6480 enableval=$enable_libtool_lock;
Chris@69 6481 fi
Chris@69 6482
Chris@69 6483 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
Chris@69 6484
Chris@69 6485 # Some flags need to be propagated to the compiler or linker for good
Chris@69 6486 # libtool support.
Chris@69 6487 case $host in
Chris@69 6488 ia64-*-hpux*)
Chris@69 6489 # Find out what ABI is being produced by ac_compile, and set mode
Chris@69 6490 # options accordingly.
Chris@69 6491 echo 'int i;' > conftest.$ac_ext
Chris@69 6492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@69 6493 (eval $ac_compile) 2>&5
Chris@69 6494 ac_status=$?
Chris@69 6495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 6496 test $ac_status = 0; }; then
Chris@69 6497 case `/usr/bin/file conftest.$ac_objext` in
Chris@69 6498 *ELF-32*)
Chris@69 6499 HPUX_IA64_MODE=32
Chris@69 6500 ;;
Chris@69 6501 *ELF-64*)
Chris@69 6502 HPUX_IA64_MODE=64
Chris@69 6503 ;;
Chris@69 6504 esac
Chris@69 6505 fi
Chris@69 6506 rm -rf conftest*
Chris@69 6507 ;;
Chris@69 6508 *-*-irix6*)
Chris@69 6509 # Find out what ABI is being produced by ac_compile, and set linker
Chris@69 6510 # options accordingly.
Chris@69 6511 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
Chris@69 6512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@69 6513 (eval $ac_compile) 2>&5
Chris@69 6514 ac_status=$?
Chris@69 6515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 6516 test $ac_status = 0; }; then
Chris@69 6517 if test yes = "$lt_cv_prog_gnu_ld"; then
Chris@69 6518 case `/usr/bin/file conftest.$ac_objext` in
Chris@69 6519 *32-bit*)
Chris@69 6520 LD="${LD-ld} -melf32bsmip"
Chris@69 6521 ;;
Chris@69 6522 *N32*)
Chris@69 6523 LD="${LD-ld} -melf32bmipn32"
Chris@69 6524 ;;
Chris@69 6525 *64-bit*)
Chris@69 6526 LD="${LD-ld} -melf64bmip"
Chris@69 6527 ;;
Chris@69 6528 esac
Chris@69 6529 else
Chris@69 6530 case `/usr/bin/file conftest.$ac_objext` in
Chris@69 6531 *32-bit*)
Chris@69 6532 LD="${LD-ld} -32"
Chris@69 6533 ;;
Chris@69 6534 *N32*)
Chris@69 6535 LD="${LD-ld} -n32"
Chris@69 6536 ;;
Chris@69 6537 *64-bit*)
Chris@69 6538 LD="${LD-ld} -64"
Chris@69 6539 ;;
Chris@69 6540 esac
Chris@69 6541 fi
Chris@69 6542 fi
Chris@69 6543 rm -rf conftest*
Chris@69 6544 ;;
Chris@69 6545
Chris@69 6546 mips64*-*linux*)
Chris@69 6547 # Find out what ABI is being produced by ac_compile, and set linker
Chris@69 6548 # options accordingly.
Chris@69 6549 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
Chris@69 6550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@69 6551 (eval $ac_compile) 2>&5
Chris@69 6552 ac_status=$?
Chris@69 6553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 6554 test $ac_status = 0; }; then
Chris@69 6555 emul=elf
Chris@69 6556 case `/usr/bin/file conftest.$ac_objext` in
Chris@69 6557 *32-bit*)
Chris@69 6558 emul="${emul}32"
Chris@69 6559 ;;
Chris@69 6560 *64-bit*)
Chris@69 6561 emul="${emul}64"
Chris@69 6562 ;;
Chris@69 6563 esac
Chris@69 6564 case `/usr/bin/file conftest.$ac_objext` in
Chris@69 6565 *MSB*)
Chris@69 6566 emul="${emul}btsmip"
Chris@69 6567 ;;
Chris@69 6568 *LSB*)
Chris@69 6569 emul="${emul}ltsmip"
Chris@69 6570 ;;
Chris@69 6571 esac
Chris@69 6572 case `/usr/bin/file conftest.$ac_objext` in
Chris@69 6573 *N32*)
Chris@69 6574 emul="${emul}n32"
Chris@69 6575 ;;
Chris@69 6576 esac
Chris@69 6577 LD="${LD-ld} -m $emul"
Chris@69 6578 fi
Chris@69 6579 rm -rf conftest*
Chris@69 6580 ;;
Chris@69 6581
Chris@69 6582 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
Chris@69 6583 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Chris@69 6584 # Find out what ABI is being produced by ac_compile, and set linker
Chris@69 6585 # options accordingly. Note that the listed cases only cover the
Chris@69 6586 # situations where additional linker options are needed (such as when
Chris@69 6587 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
Chris@69 6588 # vice versa); the common cases where no linker options are needed do
Chris@69 6589 # not appear in the list.
Chris@69 6590 echo 'int i;' > conftest.$ac_ext
Chris@69 6591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@69 6592 (eval $ac_compile) 2>&5
Chris@69 6593 ac_status=$?
Chris@69 6594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 6595 test $ac_status = 0; }; then
Chris@69 6596 case `/usr/bin/file conftest.o` in
Chris@69 6597 *32-bit*)
Chris@69 6598 case $host in
Chris@69 6599 x86_64-*kfreebsd*-gnu)
Chris@69 6600 LD="${LD-ld} -m elf_i386_fbsd"
Chris@69 6601 ;;
Chris@69 6602 x86_64-*linux*)
Chris@69 6603 case `/usr/bin/file conftest.o` in
Chris@69 6604 *x86-64*)
Chris@69 6605 LD="${LD-ld} -m elf32_x86_64"
Chris@69 6606 ;;
Chris@69 6607 *)
Chris@69 6608 LD="${LD-ld} -m elf_i386"
Chris@69 6609 ;;
Chris@69 6610 esac
Chris@69 6611 ;;
Chris@69 6612 powerpc64le-*linux*)
Chris@69 6613 LD="${LD-ld} -m elf32lppclinux"
Chris@69 6614 ;;
Chris@69 6615 powerpc64-*linux*)
Chris@69 6616 LD="${LD-ld} -m elf32ppclinux"
Chris@69 6617 ;;
Chris@69 6618 s390x-*linux*)
Chris@69 6619 LD="${LD-ld} -m elf_s390"
Chris@69 6620 ;;
Chris@69 6621 sparc64-*linux*)
Chris@69 6622 LD="${LD-ld} -m elf32_sparc"
Chris@69 6623 ;;
Chris@69 6624 esac
Chris@69 6625 ;;
Chris@69 6626 *64-bit*)
Chris@69 6627 case $host in
Chris@69 6628 x86_64-*kfreebsd*-gnu)
Chris@69 6629 LD="${LD-ld} -m elf_x86_64_fbsd"
Chris@69 6630 ;;
Chris@69 6631 x86_64-*linux*)
Chris@69 6632 LD="${LD-ld} -m elf_x86_64"
Chris@69 6633 ;;
Chris@69 6634 powerpcle-*linux*)
Chris@69 6635 LD="${LD-ld} -m elf64lppc"
Chris@69 6636 ;;
Chris@69 6637 powerpc-*linux*)
Chris@69 6638 LD="${LD-ld} -m elf64ppc"
Chris@69 6639 ;;
Chris@69 6640 s390*-*linux*|s390*-*tpf*)
Chris@69 6641 LD="${LD-ld} -m elf64_s390"
Chris@69 6642 ;;
Chris@69 6643 sparc*-*linux*)
Chris@69 6644 LD="${LD-ld} -m elf64_sparc"
Chris@69 6645 ;;
Chris@69 6646 esac
Chris@69 6647 ;;
Chris@69 6648 esac
Chris@69 6649 fi
Chris@69 6650 rm -rf conftest*
Chris@69 6651 ;;
Chris@69 6652
Chris@69 6653 *-*-sco3.2v5*)
Chris@69 6654 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Chris@69 6655 SAVE_CFLAGS=$CFLAGS
Chris@69 6656 CFLAGS="$CFLAGS -belf"
Chris@69 6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
Chris@69 6658 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Chris@69 6659 if ${lt_cv_cc_needs_belf+:} false; then :
Chris@69 6660 $as_echo_n "(cached) " >&6
Chris@69 6661 else
Chris@69 6662 ac_ext=c
Chris@69 6663 ac_cpp='$CPP $CPPFLAGS'
Chris@69 6664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@69 6665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@69 6666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@69 6667
Chris@69 6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 6669 /* end confdefs.h. */
Chris@69 6670
Chris@69 6671 int
Chris@69 6672 main ()
Chris@69 6673 {
Chris@69 6674
Chris@69 6675 ;
Chris@69 6676 return 0;
Chris@69 6677 }
Chris@69 6678 _ACEOF
Chris@69 6679 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 6680 lt_cv_cc_needs_belf=yes
Chris@69 6681 else
Chris@69 6682 lt_cv_cc_needs_belf=no
Chris@69 6683 fi
Chris@69 6684 rm -f core conftest.err conftest.$ac_objext \
Chris@69 6685 conftest$ac_exeext conftest.$ac_ext
Chris@69 6686 ac_ext=c
Chris@69 6687 ac_cpp='$CPP $CPPFLAGS'
Chris@69 6688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@69 6689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@69 6690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@69 6691
Chris@69 6692 fi
Chris@69 6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
Chris@69 6694 $as_echo "$lt_cv_cc_needs_belf" >&6; }
Chris@69 6695 if test yes != "$lt_cv_cc_needs_belf"; then
Chris@69 6696 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Chris@69 6697 CFLAGS=$SAVE_CFLAGS
Chris@69 6698 fi
Chris@69 6699 ;;
Chris@69 6700 *-*solaris*)
Chris@69 6701 # Find out what ABI is being produced by ac_compile, and set linker
Chris@69 6702 # options accordingly.
Chris@69 6703 echo 'int i;' > conftest.$ac_ext
Chris@69 6704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@69 6705 (eval $ac_compile) 2>&5
Chris@69 6706 ac_status=$?
Chris@69 6707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 6708 test $ac_status = 0; }; then
Chris@69 6709 case `/usr/bin/file conftest.o` in
Chris@69 6710 *64-bit*)
Chris@69 6711 case $lt_cv_prog_gnu_ld in
Chris@69 6712 yes*)
Chris@69 6713 case $host in
Chris@69 6714 i?86-*-solaris*|x86_64-*-solaris*)
Chris@69 6715 LD="${LD-ld} -m elf_x86_64"
Chris@69 6716 ;;
Chris@69 6717 sparc*-*-solaris*)
Chris@69 6718 LD="${LD-ld} -m elf64_sparc"
Chris@69 6719 ;;
Chris@69 6720 esac
Chris@69 6721 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
Chris@69 6722 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
Chris@69 6723 LD=${LD-ld}_sol2
Chris@69 6724 fi
Chris@69 6725 ;;
Chris@69 6726 *)
Chris@69 6727 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
Chris@69 6728 LD="${LD-ld} -64"
Chris@69 6729 fi
Chris@69 6730 ;;
Chris@69 6731 esac
Chris@69 6732 ;;
Chris@69 6733 esac
Chris@69 6734 fi
Chris@69 6735 rm -rf conftest*
Chris@69 6736 ;;
Chris@69 6737 esac
Chris@69 6738
Chris@69 6739 need_locks=$enable_libtool_lock
Chris@69 6740
Chris@69 6741 if test -n "$ac_tool_prefix"; then
Chris@69 6742 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
Chris@69 6743 set dummy ${ac_tool_prefix}mt; ac_word=$2
Chris@69 6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 6745 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 6746 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
Chris@69 6747 $as_echo_n "(cached) " >&6
Chris@69 6748 else
Chris@69 6749 if test -n "$MANIFEST_TOOL"; then
Chris@69 6750 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
Chris@69 6751 else
Chris@69 6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 6753 for as_dir in $PATH
Chris@69 6754 do
Chris@69 6755 IFS=$as_save_IFS
Chris@69 6756 test -z "$as_dir" && as_dir=.
Chris@69 6757 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 6758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 6759 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
Chris@69 6760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 6761 break 2
Chris@69 6762 fi
Chris@69 6763 done
Chris@69 6764 done
Chris@69 6765 IFS=$as_save_IFS
Chris@69 6766
Chris@69 6767 fi
Chris@69 6768 fi
Chris@69 6769 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
Chris@69 6770 if test -n "$MANIFEST_TOOL"; then
Chris@69 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
Chris@69 6772 $as_echo "$MANIFEST_TOOL" >&6; }
Chris@69 6773 else
Chris@69 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 6775 $as_echo "no" >&6; }
Chris@69 6776 fi
Chris@69 6777
Chris@69 6778
Chris@69 6779 fi
Chris@69 6780 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
Chris@69 6781 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
Chris@69 6782 # Extract the first word of "mt", so it can be a program name with args.
Chris@69 6783 set dummy mt; ac_word=$2
Chris@69 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 6785 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 6786 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
Chris@69 6787 $as_echo_n "(cached) " >&6
Chris@69 6788 else
Chris@69 6789 if test -n "$ac_ct_MANIFEST_TOOL"; then
Chris@69 6790 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
Chris@69 6791 else
Chris@69 6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 6793 for as_dir in $PATH
Chris@69 6794 do
Chris@69 6795 IFS=$as_save_IFS
Chris@69 6796 test -z "$as_dir" && as_dir=.
Chris@69 6797 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 6798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 6799 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
Chris@69 6800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 6801 break 2
Chris@69 6802 fi
Chris@69 6803 done
Chris@69 6804 done
Chris@69 6805 IFS=$as_save_IFS
Chris@69 6806
Chris@69 6807 fi
Chris@69 6808 fi
Chris@69 6809 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
Chris@69 6810 if test -n "$ac_ct_MANIFEST_TOOL"; then
Chris@69 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
Chris@69 6812 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
Chris@69 6813 else
Chris@69 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 6815 $as_echo "no" >&6; }
Chris@69 6816 fi
Chris@69 6817
Chris@69 6818 if test "x$ac_ct_MANIFEST_TOOL" = x; then
Chris@69 6819 MANIFEST_TOOL=":"
Chris@69 6820 else
Chris@69 6821 case $cross_compiling:$ac_tool_warned in
Chris@69 6822 yes:)
Chris@69 6823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 6824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 6825 ac_tool_warned=yes ;;
Chris@69 6826 esac
Chris@69 6827 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
Chris@69 6828 fi
Chris@69 6829 else
Chris@69 6830 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
Chris@69 6831 fi
Chris@69 6832
Chris@69 6833 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
Chris@69 6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
Chris@69 6835 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
Chris@69 6836 if ${lt_cv_path_mainfest_tool+:} false; then :
Chris@69 6837 $as_echo_n "(cached) " >&6
Chris@69 6838 else
Chris@69 6839 lt_cv_path_mainfest_tool=no
Chris@69 6840 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
Chris@69 6841 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
Chris@69 6842 cat conftest.err >&5
Chris@69 6843 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
Chris@69 6844 lt_cv_path_mainfest_tool=yes
Chris@69 6845 fi
Chris@69 6846 rm -f conftest*
Chris@69 6847 fi
Chris@69 6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
Chris@69 6849 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
Chris@69 6850 if test yes != "$lt_cv_path_mainfest_tool"; then
Chris@69 6851 MANIFEST_TOOL=:
Chris@69 6852 fi
Chris@69 6853
Chris@69 6854
Chris@69 6855
Chris@69 6856
Chris@69 6857
Chris@69 6858
Chris@69 6859 case $host_os in
Chris@69 6860 rhapsody* | darwin*)
Chris@69 6861 if test -n "$ac_tool_prefix"; then
Chris@69 6862 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
Chris@69 6863 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Chris@69 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 6865 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 6866 if ${ac_cv_prog_DSYMUTIL+:} false; then :
Chris@69 6867 $as_echo_n "(cached) " >&6
Chris@69 6868 else
Chris@69 6869 if test -n "$DSYMUTIL"; then
Chris@69 6870 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
Chris@69 6871 else
Chris@69 6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 6873 for as_dir in $PATH
Chris@69 6874 do
Chris@69 6875 IFS=$as_save_IFS
Chris@69 6876 test -z "$as_dir" && as_dir=.
Chris@69 6877 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 6878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 6879 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Chris@69 6880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 6881 break 2
Chris@69 6882 fi
Chris@69 6883 done
Chris@69 6884 done
Chris@69 6885 IFS=$as_save_IFS
Chris@69 6886
Chris@69 6887 fi
Chris@69 6888 fi
Chris@69 6889 DSYMUTIL=$ac_cv_prog_DSYMUTIL
Chris@69 6890 if test -n "$DSYMUTIL"; then
Chris@69 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
Chris@69 6892 $as_echo "$DSYMUTIL" >&6; }
Chris@69 6893 else
Chris@69 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 6895 $as_echo "no" >&6; }
Chris@69 6896 fi
Chris@69 6897
Chris@69 6898
Chris@69 6899 fi
Chris@69 6900 if test -z "$ac_cv_prog_DSYMUTIL"; then
Chris@69 6901 ac_ct_DSYMUTIL=$DSYMUTIL
Chris@69 6902 # Extract the first word of "dsymutil", so it can be a program name with args.
Chris@69 6903 set dummy dsymutil; ac_word=$2
Chris@69 6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 6905 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 6906 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Chris@69 6907 $as_echo_n "(cached) " >&6
Chris@69 6908 else
Chris@69 6909 if test -n "$ac_ct_DSYMUTIL"; then
Chris@69 6910 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
Chris@69 6911 else
Chris@69 6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 6913 for as_dir in $PATH
Chris@69 6914 do
Chris@69 6915 IFS=$as_save_IFS
Chris@69 6916 test -z "$as_dir" && as_dir=.
Chris@69 6917 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 6918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 6919 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Chris@69 6920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 6921 break 2
Chris@69 6922 fi
Chris@69 6923 done
Chris@69 6924 done
Chris@69 6925 IFS=$as_save_IFS
Chris@69 6926
Chris@69 6927 fi
Chris@69 6928 fi
Chris@69 6929 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
Chris@69 6930 if test -n "$ac_ct_DSYMUTIL"; then
Chris@69 6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
Chris@69 6932 $as_echo "$ac_ct_DSYMUTIL" >&6; }
Chris@69 6933 else
Chris@69 6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 6935 $as_echo "no" >&6; }
Chris@69 6936 fi
Chris@69 6937
Chris@69 6938 if test "x$ac_ct_DSYMUTIL" = x; then
Chris@69 6939 DSYMUTIL=":"
Chris@69 6940 else
Chris@69 6941 case $cross_compiling:$ac_tool_warned in
Chris@69 6942 yes:)
Chris@69 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 6944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 6945 ac_tool_warned=yes ;;
Chris@69 6946 esac
Chris@69 6947 DSYMUTIL=$ac_ct_DSYMUTIL
Chris@69 6948 fi
Chris@69 6949 else
Chris@69 6950 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
Chris@69 6951 fi
Chris@69 6952
Chris@69 6953 if test -n "$ac_tool_prefix"; then
Chris@69 6954 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
Chris@69 6955 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Chris@69 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 6957 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 6958 if ${ac_cv_prog_NMEDIT+:} false; then :
Chris@69 6959 $as_echo_n "(cached) " >&6
Chris@69 6960 else
Chris@69 6961 if test -n "$NMEDIT"; then
Chris@69 6962 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
Chris@69 6963 else
Chris@69 6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 6965 for as_dir in $PATH
Chris@69 6966 do
Chris@69 6967 IFS=$as_save_IFS
Chris@69 6968 test -z "$as_dir" && as_dir=.
Chris@69 6969 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 6970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 6971 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Chris@69 6972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 6973 break 2
Chris@69 6974 fi
Chris@69 6975 done
Chris@69 6976 done
Chris@69 6977 IFS=$as_save_IFS
Chris@69 6978
Chris@69 6979 fi
Chris@69 6980 fi
Chris@69 6981 NMEDIT=$ac_cv_prog_NMEDIT
Chris@69 6982 if test -n "$NMEDIT"; then
Chris@69 6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
Chris@69 6984 $as_echo "$NMEDIT" >&6; }
Chris@69 6985 else
Chris@69 6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 6987 $as_echo "no" >&6; }
Chris@69 6988 fi
Chris@69 6989
Chris@69 6990
Chris@69 6991 fi
Chris@69 6992 if test -z "$ac_cv_prog_NMEDIT"; then
Chris@69 6993 ac_ct_NMEDIT=$NMEDIT
Chris@69 6994 # Extract the first word of "nmedit", so it can be a program name with args.
Chris@69 6995 set dummy nmedit; ac_word=$2
Chris@69 6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 6997 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 6998 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Chris@69 6999 $as_echo_n "(cached) " >&6
Chris@69 7000 else
Chris@69 7001 if test -n "$ac_ct_NMEDIT"; then
Chris@69 7002 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
Chris@69 7003 else
Chris@69 7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 7005 for as_dir in $PATH
Chris@69 7006 do
Chris@69 7007 IFS=$as_save_IFS
Chris@69 7008 test -z "$as_dir" && as_dir=.
Chris@69 7009 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 7010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 7011 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Chris@69 7012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 7013 break 2
Chris@69 7014 fi
Chris@69 7015 done
Chris@69 7016 done
Chris@69 7017 IFS=$as_save_IFS
Chris@69 7018
Chris@69 7019 fi
Chris@69 7020 fi
Chris@69 7021 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
Chris@69 7022 if test -n "$ac_ct_NMEDIT"; then
Chris@69 7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
Chris@69 7024 $as_echo "$ac_ct_NMEDIT" >&6; }
Chris@69 7025 else
Chris@69 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 7027 $as_echo "no" >&6; }
Chris@69 7028 fi
Chris@69 7029
Chris@69 7030 if test "x$ac_ct_NMEDIT" = x; then
Chris@69 7031 NMEDIT=":"
Chris@69 7032 else
Chris@69 7033 case $cross_compiling:$ac_tool_warned in
Chris@69 7034 yes:)
Chris@69 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 7036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 7037 ac_tool_warned=yes ;;
Chris@69 7038 esac
Chris@69 7039 NMEDIT=$ac_ct_NMEDIT
Chris@69 7040 fi
Chris@69 7041 else
Chris@69 7042 NMEDIT="$ac_cv_prog_NMEDIT"
Chris@69 7043 fi
Chris@69 7044
Chris@69 7045 if test -n "$ac_tool_prefix"; then
Chris@69 7046 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
Chris@69 7047 set dummy ${ac_tool_prefix}lipo; ac_word=$2
Chris@69 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 7049 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 7050 if ${ac_cv_prog_LIPO+:} false; then :
Chris@69 7051 $as_echo_n "(cached) " >&6
Chris@69 7052 else
Chris@69 7053 if test -n "$LIPO"; then
Chris@69 7054 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
Chris@69 7055 else
Chris@69 7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 7057 for as_dir in $PATH
Chris@69 7058 do
Chris@69 7059 IFS=$as_save_IFS
Chris@69 7060 test -z "$as_dir" && as_dir=.
Chris@69 7061 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 7062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 7063 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Chris@69 7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 7065 break 2
Chris@69 7066 fi
Chris@69 7067 done
Chris@69 7068 done
Chris@69 7069 IFS=$as_save_IFS
Chris@69 7070
Chris@69 7071 fi
Chris@69 7072 fi
Chris@69 7073 LIPO=$ac_cv_prog_LIPO
Chris@69 7074 if test -n "$LIPO"; then
Chris@69 7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
Chris@69 7076 $as_echo "$LIPO" >&6; }
Chris@69 7077 else
Chris@69 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 7079 $as_echo "no" >&6; }
Chris@69 7080 fi
Chris@69 7081
Chris@69 7082
Chris@69 7083 fi
Chris@69 7084 if test -z "$ac_cv_prog_LIPO"; then
Chris@69 7085 ac_ct_LIPO=$LIPO
Chris@69 7086 # Extract the first word of "lipo", so it can be a program name with args.
Chris@69 7087 set dummy lipo; ac_word=$2
Chris@69 7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 7089 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 7090 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Chris@69 7091 $as_echo_n "(cached) " >&6
Chris@69 7092 else
Chris@69 7093 if test -n "$ac_ct_LIPO"; then
Chris@69 7094 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
Chris@69 7095 else
Chris@69 7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 7097 for as_dir in $PATH
Chris@69 7098 do
Chris@69 7099 IFS=$as_save_IFS
Chris@69 7100 test -z "$as_dir" && as_dir=.
Chris@69 7101 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 7102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 7103 ac_cv_prog_ac_ct_LIPO="lipo"
Chris@69 7104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 7105 break 2
Chris@69 7106 fi
Chris@69 7107 done
Chris@69 7108 done
Chris@69 7109 IFS=$as_save_IFS
Chris@69 7110
Chris@69 7111 fi
Chris@69 7112 fi
Chris@69 7113 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
Chris@69 7114 if test -n "$ac_ct_LIPO"; then
Chris@69 7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
Chris@69 7116 $as_echo "$ac_ct_LIPO" >&6; }
Chris@69 7117 else
Chris@69 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 7119 $as_echo "no" >&6; }
Chris@69 7120 fi
Chris@69 7121
Chris@69 7122 if test "x$ac_ct_LIPO" = x; then
Chris@69 7123 LIPO=":"
Chris@69 7124 else
Chris@69 7125 case $cross_compiling:$ac_tool_warned in
Chris@69 7126 yes:)
Chris@69 7127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 7128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 7129 ac_tool_warned=yes ;;
Chris@69 7130 esac
Chris@69 7131 LIPO=$ac_ct_LIPO
Chris@69 7132 fi
Chris@69 7133 else
Chris@69 7134 LIPO="$ac_cv_prog_LIPO"
Chris@69 7135 fi
Chris@69 7136
Chris@69 7137 if test -n "$ac_tool_prefix"; then
Chris@69 7138 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
Chris@69 7139 set dummy ${ac_tool_prefix}otool; ac_word=$2
Chris@69 7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 7141 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 7142 if ${ac_cv_prog_OTOOL+:} false; then :
Chris@69 7143 $as_echo_n "(cached) " >&6
Chris@69 7144 else
Chris@69 7145 if test -n "$OTOOL"; then
Chris@69 7146 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
Chris@69 7147 else
Chris@69 7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 7149 for as_dir in $PATH
Chris@69 7150 do
Chris@69 7151 IFS=$as_save_IFS
Chris@69 7152 test -z "$as_dir" && as_dir=.
Chris@69 7153 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 7154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 7155 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Chris@69 7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 7157 break 2
Chris@69 7158 fi
Chris@69 7159 done
Chris@69 7160 done
Chris@69 7161 IFS=$as_save_IFS
Chris@69 7162
Chris@69 7163 fi
Chris@69 7164 fi
Chris@69 7165 OTOOL=$ac_cv_prog_OTOOL
Chris@69 7166 if test -n "$OTOOL"; then
Chris@69 7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
Chris@69 7168 $as_echo "$OTOOL" >&6; }
Chris@69 7169 else
Chris@69 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 7171 $as_echo "no" >&6; }
Chris@69 7172 fi
Chris@69 7173
Chris@69 7174
Chris@69 7175 fi
Chris@69 7176 if test -z "$ac_cv_prog_OTOOL"; then
Chris@69 7177 ac_ct_OTOOL=$OTOOL
Chris@69 7178 # Extract the first word of "otool", so it can be a program name with args.
Chris@69 7179 set dummy otool; 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_ac_ct_OTOOL+:} false; then :
Chris@69 7183 $as_echo_n "(cached) " >&6
Chris@69 7184 else
Chris@69 7185 if test -n "$ac_ct_OTOOL"; then
Chris@69 7186 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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_ac_ct_OTOOL="otool"
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 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
Chris@69 7206 if test -n "$ac_ct_OTOOL"; then
Chris@69 7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
Chris@69 7208 $as_echo "$ac_ct_OTOOL" >&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 if test "x$ac_ct_OTOOL" = x; then
Chris@69 7215 OTOOL=":"
Chris@69 7216 else
Chris@69 7217 case $cross_compiling:$ac_tool_warned in
Chris@69 7218 yes:)
Chris@69 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 7220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 7221 ac_tool_warned=yes ;;
Chris@69 7222 esac
Chris@69 7223 OTOOL=$ac_ct_OTOOL
Chris@69 7224 fi
Chris@69 7225 else
Chris@69 7226 OTOOL="$ac_cv_prog_OTOOL"
Chris@69 7227 fi
Chris@69 7228
Chris@69 7229 if test -n "$ac_tool_prefix"; then
Chris@69 7230 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
Chris@69 7231 set dummy ${ac_tool_prefix}otool64; ac_word=$2
Chris@69 7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 7233 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 7234 if ${ac_cv_prog_OTOOL64+:} false; then :
Chris@69 7235 $as_echo_n "(cached) " >&6
Chris@69 7236 else
Chris@69 7237 if test -n "$OTOOL64"; then
Chris@69 7238 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
Chris@69 7239 else
Chris@69 7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 7241 for as_dir in $PATH
Chris@69 7242 do
Chris@69 7243 IFS=$as_save_IFS
Chris@69 7244 test -z "$as_dir" && as_dir=.
Chris@69 7245 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 7246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 7247 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Chris@69 7248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 7249 break 2
Chris@69 7250 fi
Chris@69 7251 done
Chris@69 7252 done
Chris@69 7253 IFS=$as_save_IFS
Chris@69 7254
Chris@69 7255 fi
Chris@69 7256 fi
Chris@69 7257 OTOOL64=$ac_cv_prog_OTOOL64
Chris@69 7258 if test -n "$OTOOL64"; then
Chris@69 7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
Chris@69 7260 $as_echo "$OTOOL64" >&6; }
Chris@69 7261 else
Chris@69 7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 7263 $as_echo "no" >&6; }
Chris@69 7264 fi
Chris@69 7265
Chris@69 7266
Chris@69 7267 fi
Chris@69 7268 if test -z "$ac_cv_prog_OTOOL64"; then
Chris@69 7269 ac_ct_OTOOL64=$OTOOL64
Chris@69 7270 # Extract the first word of "otool64", so it can be a program name with args.
Chris@69 7271 set dummy otool64; ac_word=$2
Chris@69 7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 7273 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 7274 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Chris@69 7275 $as_echo_n "(cached) " >&6
Chris@69 7276 else
Chris@69 7277 if test -n "$ac_ct_OTOOL64"; then
Chris@69 7278 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
Chris@69 7279 else
Chris@69 7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 7281 for as_dir in $PATH
Chris@69 7282 do
Chris@69 7283 IFS=$as_save_IFS
Chris@69 7284 test -z "$as_dir" && as_dir=.
Chris@69 7285 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 7286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 7287 ac_cv_prog_ac_ct_OTOOL64="otool64"
Chris@69 7288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 7289 break 2
Chris@69 7290 fi
Chris@69 7291 done
Chris@69 7292 done
Chris@69 7293 IFS=$as_save_IFS
Chris@69 7294
Chris@69 7295 fi
Chris@69 7296 fi
Chris@69 7297 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
Chris@69 7298 if test -n "$ac_ct_OTOOL64"; then
Chris@69 7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
Chris@69 7300 $as_echo "$ac_ct_OTOOL64" >&6; }
Chris@69 7301 else
Chris@69 7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 7303 $as_echo "no" >&6; }
Chris@69 7304 fi
Chris@69 7305
Chris@69 7306 if test "x$ac_ct_OTOOL64" = x; then
Chris@69 7307 OTOOL64=":"
Chris@69 7308 else
Chris@69 7309 case $cross_compiling:$ac_tool_warned in
Chris@69 7310 yes:)
Chris@69 7311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@69 7312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@69 7313 ac_tool_warned=yes ;;
Chris@69 7314 esac
Chris@69 7315 OTOOL64=$ac_ct_OTOOL64
Chris@69 7316 fi
Chris@69 7317 else
Chris@69 7318 OTOOL64="$ac_cv_prog_OTOOL64"
Chris@69 7319 fi
Chris@69 7320
Chris@69 7321
Chris@69 7322
Chris@69 7323
Chris@69 7324
Chris@69 7325
Chris@69 7326
Chris@69 7327
Chris@69 7328
Chris@69 7329
Chris@69 7330
Chris@69 7331
Chris@69 7332
Chris@69 7333
Chris@69 7334
Chris@69 7335
Chris@69 7336
Chris@69 7337
Chris@69 7338
Chris@69 7339
Chris@69 7340
Chris@69 7341
Chris@69 7342
Chris@69 7343
Chris@69 7344
Chris@69 7345
Chris@69 7346
Chris@69 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
Chris@69 7348 $as_echo_n "checking for -single_module linker flag... " >&6; }
Chris@69 7349 if ${lt_cv_apple_cc_single_mod+:} false; then :
Chris@69 7350 $as_echo_n "(cached) " >&6
Chris@69 7351 else
Chris@69 7352 lt_cv_apple_cc_single_mod=no
Chris@69 7353 if test -z "$LT_MULTI_MODULE"; then
Chris@69 7354 # By default we will add the -single_module flag. You can override
Chris@69 7355 # by either setting the environment variable LT_MULTI_MODULE
Chris@69 7356 # non-empty at configure time, or by adding -multi_module to the
Chris@69 7357 # link flags.
Chris@69 7358 rm -rf libconftest.dylib*
Chris@69 7359 echo "int foo(void){return 1;}" > conftest.c
Chris@69 7360 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
Chris@69 7361 -dynamiclib -Wl,-single_module conftest.c" >&5
Chris@69 7362 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
Chris@69 7363 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
Chris@69 7364 _lt_result=$?
Chris@69 7365 # If there is a non-empty error log, and "single_module"
Chris@69 7366 # appears in it, assume the flag caused a linker warning
Chris@69 7367 if test -s conftest.err && $GREP single_module conftest.err; then
Chris@69 7368 cat conftest.err >&5
Chris@69 7369 # Otherwise, if the output was created with a 0 exit code from
Chris@69 7370 # the compiler, it worked.
Chris@69 7371 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
Chris@69 7372 lt_cv_apple_cc_single_mod=yes
Chris@69 7373 else
Chris@69 7374 cat conftest.err >&5
Chris@69 7375 fi
Chris@69 7376 rm -rf libconftest.dylib*
Chris@69 7377 rm -f conftest.*
Chris@69 7378 fi
Chris@69 7379 fi
Chris@69 7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
Chris@69 7381 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Chris@69 7382
Chris@69 7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
Chris@69 7384 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Chris@69 7385 if ${lt_cv_ld_exported_symbols_list+:} false; then :
Chris@69 7386 $as_echo_n "(cached) " >&6
Chris@69 7387 else
Chris@69 7388 lt_cv_ld_exported_symbols_list=no
Chris@69 7389 save_LDFLAGS=$LDFLAGS
Chris@69 7390 echo "_main" > conftest.sym
Chris@69 7391 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Chris@69 7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 7393 /* end confdefs.h. */
Chris@69 7394
Chris@69 7395 int
Chris@69 7396 main ()
Chris@69 7397 {
Chris@69 7398
Chris@69 7399 ;
Chris@69 7400 return 0;
Chris@69 7401 }
Chris@69 7402 _ACEOF
Chris@69 7403 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 7404 lt_cv_ld_exported_symbols_list=yes
Chris@69 7405 else
Chris@69 7406 lt_cv_ld_exported_symbols_list=no
Chris@69 7407 fi
Chris@69 7408 rm -f core conftest.err conftest.$ac_objext \
Chris@69 7409 conftest$ac_exeext conftest.$ac_ext
Chris@69 7410 LDFLAGS=$save_LDFLAGS
Chris@69 7411
Chris@69 7412 fi
Chris@69 7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
Chris@69 7414 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Chris@69 7415
Chris@69 7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
Chris@69 7417 $as_echo_n "checking for -force_load linker flag... " >&6; }
Chris@69 7418 if ${lt_cv_ld_force_load+:} false; then :
Chris@69 7419 $as_echo_n "(cached) " >&6
Chris@69 7420 else
Chris@69 7421 lt_cv_ld_force_load=no
Chris@69 7422 cat > conftest.c << _LT_EOF
Chris@69 7423 int forced_loaded() { return 2;}
Chris@69 7424 _LT_EOF
Chris@69 7425 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
Chris@69 7426 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
Chris@69 7427 echo "$AR cru libconftest.a conftest.o" >&5
Chris@69 7428 $AR cru libconftest.a conftest.o 2>&5
Chris@69 7429 echo "$RANLIB libconftest.a" >&5
Chris@69 7430 $RANLIB libconftest.a 2>&5
Chris@69 7431 cat > conftest.c << _LT_EOF
Chris@69 7432 int main() { return 0;}
Chris@69 7433 _LT_EOF
Chris@69 7434 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
Chris@69 7435 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
Chris@69 7436 _lt_result=$?
Chris@69 7437 if test -s conftest.err && $GREP force_load conftest.err; then
Chris@69 7438 cat conftest.err >&5
Chris@69 7439 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
Chris@69 7440 lt_cv_ld_force_load=yes
Chris@69 7441 else
Chris@69 7442 cat conftest.err >&5
Chris@69 7443 fi
Chris@69 7444 rm -f conftest.err libconftest.a conftest conftest.c
Chris@69 7445 rm -rf conftest.dSYM
Chris@69 7446
Chris@69 7447 fi
Chris@69 7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
Chris@69 7449 $as_echo "$lt_cv_ld_force_load" >&6; }
Chris@69 7450 case $host_os in
Chris@69 7451 rhapsody* | darwin1.[012])
Chris@69 7452 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
Chris@69 7453 darwin1.*)
Chris@69 7454 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Chris@69 7455 darwin*) # darwin 5.x on
Chris@69 7456 # if running on 10.5 or later, the deployment target defaults
Chris@69 7457 # to the OS version, if on x86, and 10.4, the deployment
Chris@69 7458 # target defaults to 10.4. Don't you love it?
Chris@69 7459 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
Chris@69 7460 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
Chris@69 7461 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
Chris@69 7462 10.[012][,.]*)
Chris@69 7463 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Chris@69 7464 10.*)
Chris@69 7465 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
Chris@69 7466 esac
Chris@69 7467 ;;
Chris@69 7468 esac
Chris@69 7469 if test yes = "$lt_cv_apple_cc_single_mod"; then
Chris@69 7470 _lt_dar_single_mod='$single_module'
Chris@69 7471 fi
Chris@69 7472 if test yes = "$lt_cv_ld_exported_symbols_list"; then
Chris@69 7473 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
Chris@69 7474 else
Chris@69 7475 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
Chris@69 7476 fi
Chris@69 7477 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
Chris@69 7478 _lt_dsymutil='~$DSYMUTIL $lib || :'
Chris@69 7479 else
Chris@69 7480 _lt_dsymutil=
Chris@69 7481 fi
Chris@69 7482 ;;
Chris@69 7483 esac
Chris@69 7484
Chris@69 7485 # func_munge_path_list VARIABLE PATH
Chris@69 7486 # -----------------------------------
Chris@69 7487 # VARIABLE is name of variable containing _space_ separated list of
Chris@69 7488 # directories to be munged by the contents of PATH, which is string
Chris@69 7489 # having a format:
Chris@69 7490 # "DIR[:DIR]:"
Chris@69 7491 # string "DIR[ DIR]" will be prepended to VARIABLE
Chris@69 7492 # ":DIR[:DIR]"
Chris@69 7493 # string "DIR[ DIR]" will be appended to VARIABLE
Chris@69 7494 # "DIRP[:DIRP]::[DIRA:]DIRA"
Chris@69 7495 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
Chris@69 7496 # "DIRA[ DIRA]" will be appended to VARIABLE
Chris@69 7497 # "DIR[:DIR]"
Chris@69 7498 # VARIABLE will be replaced by "DIR[ DIR]"
Chris@69 7499 func_munge_path_list ()
Chris@69 7500 {
Chris@69 7501 case x$2 in
Chris@69 7502 x)
Chris@69 7503 ;;
Chris@69 7504 *:)
Chris@69 7505 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
Chris@69 7506 ;;
Chris@69 7507 x:*)
Chris@69 7508 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
Chris@69 7509 ;;
Chris@69 7510 *::*)
Chris@69 7511 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
Chris@69 7512 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
Chris@69 7513 ;;
Chris@69 7514 *)
Chris@69 7515 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
Chris@69 7516 ;;
Chris@69 7517 esac
Chris@69 7518 }
Chris@69 7519
Chris@69 7520 ac_ext=c
Chris@69 7521 ac_cpp='$CPP $CPPFLAGS'
Chris@69 7522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@69 7523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@69 7524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@69 7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Chris@69 7526 $as_echo_n "checking how to run the C preprocessor... " >&6; }
Chris@69 7527 # On Suns, sometimes $CPP names a directory.
Chris@69 7528 if test -n "$CPP" && test -d "$CPP"; then
Chris@69 7529 CPP=
Chris@69 7530 fi
Chris@69 7531 if test -z "$CPP"; then
Chris@69 7532 if ${ac_cv_prog_CPP+:} false; then :
Chris@69 7533 $as_echo_n "(cached) " >&6
Chris@69 7534 else
Chris@69 7535 # Double quotes because CPP needs to be expanded
Chris@69 7536 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
Chris@69 7537 do
Chris@69 7538 ac_preproc_ok=false
Chris@69 7539 for ac_c_preproc_warn_flag in '' yes
Chris@69 7540 do
Chris@69 7541 # Use a header file that comes with gcc, so configuring glibc
Chris@69 7542 # with a fresh cross-compiler works.
Chris@69 7543 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@69 7544 # <limits.h> exists even on freestanding compilers.
Chris@69 7545 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@69 7546 # not just through cpp. "Syntax error" is here to catch this case.
Chris@69 7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 7548 /* end confdefs.h. */
Chris@69 7549 #ifdef __STDC__
Chris@69 7550 # include <limits.h>
Chris@69 7551 #else
Chris@69 7552 # include <assert.h>
Chris@69 7553 #endif
Chris@69 7554 Syntax error
Chris@69 7555 _ACEOF
Chris@69 7556 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@69 7557
Chris@69 7558 else
Chris@69 7559 # Broken: fails on valid input.
Chris@69 7560 continue
Chris@69 7561 fi
Chris@69 7562 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@69 7563
Chris@69 7564 # OK, works on sane cases. Now check whether nonexistent headers
Chris@69 7565 # can be detected and how.
Chris@69 7566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 7567 /* end confdefs.h. */
Chris@69 7568 #include <ac_nonexistent.h>
Chris@69 7569 _ACEOF
Chris@69 7570 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@69 7571 # Broken: success on invalid input.
Chris@69 7572 continue
Chris@69 7573 else
Chris@69 7574 # Passes both tests.
Chris@69 7575 ac_preproc_ok=:
Chris@69 7576 break
Chris@69 7577 fi
Chris@69 7578 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@69 7579
Chris@69 7580 done
Chris@69 7581 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@69 7582 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@69 7583 if $ac_preproc_ok; then :
Chris@69 7584 break
Chris@69 7585 fi
Chris@69 7586
Chris@69 7587 done
Chris@69 7588 ac_cv_prog_CPP=$CPP
Chris@69 7589
Chris@69 7590 fi
Chris@69 7591 CPP=$ac_cv_prog_CPP
Chris@69 7592 else
Chris@69 7593 ac_cv_prog_CPP=$CPP
Chris@69 7594 fi
Chris@69 7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Chris@69 7596 $as_echo "$CPP" >&6; }
Chris@69 7597 ac_preproc_ok=false
Chris@69 7598 for ac_c_preproc_warn_flag in '' yes
Chris@69 7599 do
Chris@69 7600 # Use a header file that comes with gcc, so configuring glibc
Chris@69 7601 # with a fresh cross-compiler works.
Chris@69 7602 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@69 7603 # <limits.h> exists even on freestanding compilers.
Chris@69 7604 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@69 7605 # not just through cpp. "Syntax error" is here to catch this case.
Chris@69 7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 7607 /* end confdefs.h. */
Chris@69 7608 #ifdef __STDC__
Chris@69 7609 # include <limits.h>
Chris@69 7610 #else
Chris@69 7611 # include <assert.h>
Chris@69 7612 #endif
Chris@69 7613 Syntax error
Chris@69 7614 _ACEOF
Chris@69 7615 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@69 7616
Chris@69 7617 else
Chris@69 7618 # Broken: fails on valid input.
Chris@69 7619 continue
Chris@69 7620 fi
Chris@69 7621 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@69 7622
Chris@69 7623 # OK, works on sane cases. Now check whether nonexistent headers
Chris@69 7624 # can be detected and how.
Chris@69 7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 7626 /* end confdefs.h. */
Chris@69 7627 #include <ac_nonexistent.h>
Chris@69 7628 _ACEOF
Chris@69 7629 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@69 7630 # Broken: success on invalid input.
Chris@69 7631 continue
Chris@69 7632 else
Chris@69 7633 # Passes both tests.
Chris@69 7634 ac_preproc_ok=:
Chris@69 7635 break
Chris@69 7636 fi
Chris@69 7637 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@69 7638
Chris@69 7639 done
Chris@69 7640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@69 7641 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@69 7642 if $ac_preproc_ok; then :
Chris@69 7643
Chris@69 7644 else
Chris@69 7645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@69 7646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@69 7647 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
Chris@69 7648 See \`config.log' for more details" "$LINENO" 5; }
Chris@69 7649 fi
Chris@69 7650
Chris@69 7651 ac_ext=c
Chris@69 7652 ac_cpp='$CPP $CPPFLAGS'
Chris@69 7653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@69 7654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@69 7655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@69 7656
Chris@69 7657
Chris@69 7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Chris@69 7659 $as_echo_n "checking for ANSI C header files... " >&6; }
Chris@69 7660 if ${ac_cv_header_stdc+:} false; then :
Chris@69 7661 $as_echo_n "(cached) " >&6
Chris@69 7662 else
Chris@69 7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 7664 /* end confdefs.h. */
Chris@69 7665 #include <stdlib.h>
Chris@69 7666 #include <stdarg.h>
Chris@69 7667 #include <string.h>
Chris@69 7668 #include <float.h>
Chris@69 7669
Chris@69 7670 int
Chris@69 7671 main ()
Chris@69 7672 {
Chris@69 7673
Chris@69 7674 ;
Chris@69 7675 return 0;
Chris@69 7676 }
Chris@69 7677 _ACEOF
Chris@69 7678 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 7679 ac_cv_header_stdc=yes
Chris@69 7680 else
Chris@69 7681 ac_cv_header_stdc=no
Chris@69 7682 fi
Chris@69 7683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 7684
Chris@69 7685 if test $ac_cv_header_stdc = yes; then
Chris@69 7686 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Chris@69 7687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 7688 /* end confdefs.h. */
Chris@69 7689 #include <string.h>
Chris@69 7690
Chris@69 7691 _ACEOF
Chris@69 7692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@69 7693 $EGREP "memchr" >/dev/null 2>&1; then :
Chris@69 7694
Chris@69 7695 else
Chris@69 7696 ac_cv_header_stdc=no
Chris@69 7697 fi
Chris@69 7698 rm -f conftest*
Chris@69 7699
Chris@69 7700 fi
Chris@69 7701
Chris@69 7702 if test $ac_cv_header_stdc = yes; then
Chris@69 7703 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Chris@69 7704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 7705 /* end confdefs.h. */
Chris@69 7706 #include <stdlib.h>
Chris@69 7707
Chris@69 7708 _ACEOF
Chris@69 7709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@69 7710 $EGREP "free" >/dev/null 2>&1; then :
Chris@69 7711
Chris@69 7712 else
Chris@69 7713 ac_cv_header_stdc=no
Chris@69 7714 fi
Chris@69 7715 rm -f conftest*
Chris@69 7716
Chris@69 7717 fi
Chris@69 7718
Chris@69 7719 if test $ac_cv_header_stdc = yes; then
Chris@69 7720 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Chris@69 7721 if test "$cross_compiling" = yes; then :
Chris@69 7722 :
Chris@69 7723 else
Chris@69 7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 7725 /* end confdefs.h. */
Chris@69 7726 #include <ctype.h>
Chris@69 7727 #include <stdlib.h>
Chris@69 7728 #if ((' ' & 0x0FF) == 0x020)
Chris@69 7729 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
Chris@69 7730 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Chris@69 7731 #else
Chris@69 7732 # define ISLOWER(c) \
Chris@69 7733 (('a' <= (c) && (c) <= 'i') \
Chris@69 7734 || ('j' <= (c) && (c) <= 'r') \
Chris@69 7735 || ('s' <= (c) && (c) <= 'z'))
Chris@69 7736 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
Chris@69 7737 #endif
Chris@69 7738
Chris@69 7739 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Chris@69 7740 int
Chris@69 7741 main ()
Chris@69 7742 {
Chris@69 7743 int i;
Chris@69 7744 for (i = 0; i < 256; i++)
Chris@69 7745 if (XOR (islower (i), ISLOWER (i))
Chris@69 7746 || toupper (i) != TOUPPER (i))
Chris@69 7747 return 2;
Chris@69 7748 return 0;
Chris@69 7749 }
Chris@69 7750 _ACEOF
Chris@69 7751 if ac_fn_c_try_run "$LINENO"; then :
Chris@69 7752
Chris@69 7753 else
Chris@69 7754 ac_cv_header_stdc=no
Chris@69 7755 fi
Chris@69 7756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@69 7757 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@69 7758 fi
Chris@69 7759
Chris@69 7760 fi
Chris@69 7761 fi
Chris@69 7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Chris@69 7763 $as_echo "$ac_cv_header_stdc" >&6; }
Chris@69 7764 if test $ac_cv_header_stdc = yes; then
Chris@69 7765
Chris@69 7766 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
Chris@69 7767
Chris@69 7768 fi
Chris@69 7769
Chris@69 7770 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
Chris@69 7771 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Chris@69 7772 inttypes.h stdint.h unistd.h
Chris@69 7773 do :
Chris@69 7774 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Chris@69 7775 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
Chris@69 7776 "
Chris@69 7777 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@69 7778 cat >>confdefs.h <<_ACEOF
Chris@69 7779 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris@69 7780 _ACEOF
Chris@69 7781
Chris@69 7782 fi
Chris@69 7783
Chris@69 7784 done
Chris@69 7785
Chris@69 7786
Chris@69 7787 for ac_header in dlfcn.h
Chris@69 7788 do :
Chris@69 7789 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
Chris@69 7790 "
Chris@69 7791 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Chris@69 7792 cat >>confdefs.h <<_ACEOF
Chris@69 7793 #define HAVE_DLFCN_H 1
Chris@69 7794 _ACEOF
Chris@69 7795
Chris@69 7796 fi
Chris@69 7797
Chris@69 7798 done
Chris@69 7799
Chris@69 7800
Chris@69 7801
Chris@69 7802
Chris@69 7803
Chris@69 7804 # Set options
Chris@69 7805
Chris@69 7806
Chris@69 7807
Chris@69 7808 enable_dlopen=no
Chris@69 7809
Chris@69 7810
Chris@69 7811 enable_win32_dll=no
Chris@69 7812
Chris@69 7813
Chris@69 7814 # Check whether --enable-shared was given.
Chris@69 7815 if test "${enable_shared+set}" = set; then :
Chris@69 7816 enableval=$enable_shared; p=${PACKAGE-default}
Chris@69 7817 case $enableval in
Chris@69 7818 yes) enable_shared=yes ;;
Chris@69 7819 no) enable_shared=no ;;
Chris@69 7820 *)
Chris@69 7821 enable_shared=no
Chris@69 7822 # Look at the argument we got. We use all the common list separators.
Chris@69 7823 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Chris@69 7824 for pkg in $enableval; do
Chris@69 7825 IFS=$lt_save_ifs
Chris@69 7826 if test "X$pkg" = "X$p"; then
Chris@69 7827 enable_shared=yes
Chris@69 7828 fi
Chris@69 7829 done
Chris@69 7830 IFS=$lt_save_ifs
Chris@69 7831 ;;
Chris@69 7832 esac
Chris@69 7833 else
Chris@69 7834 enable_shared=yes
Chris@69 7835 fi
Chris@69 7836
Chris@69 7837
Chris@69 7838
Chris@69 7839
Chris@69 7840
Chris@69 7841
Chris@69 7842
Chris@69 7843
Chris@69 7844
Chris@69 7845 # Check whether --enable-static was given.
Chris@69 7846 if test "${enable_static+set}" = set; then :
Chris@69 7847 enableval=$enable_static; p=${PACKAGE-default}
Chris@69 7848 case $enableval in
Chris@69 7849 yes) enable_static=yes ;;
Chris@69 7850 no) enable_static=no ;;
Chris@69 7851 *)
Chris@69 7852 enable_static=no
Chris@69 7853 # Look at the argument we got. We use all the common list separators.
Chris@69 7854 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Chris@69 7855 for pkg in $enableval; do
Chris@69 7856 IFS=$lt_save_ifs
Chris@69 7857 if test "X$pkg" = "X$p"; then
Chris@69 7858 enable_static=yes
Chris@69 7859 fi
Chris@69 7860 done
Chris@69 7861 IFS=$lt_save_ifs
Chris@69 7862 ;;
Chris@69 7863 esac
Chris@69 7864 else
Chris@69 7865 enable_static=yes
Chris@69 7866 fi
Chris@69 7867
Chris@69 7868
Chris@69 7869
Chris@69 7870
Chris@69 7871
Chris@69 7872
Chris@69 7873
Chris@69 7874
Chris@69 7875
Chris@69 7876
Chris@69 7877 # Check whether --with-pic was given.
Chris@69 7878 if test "${with_pic+set}" = set; then :
Chris@69 7879 withval=$with_pic; lt_p=${PACKAGE-default}
Chris@69 7880 case $withval in
Chris@69 7881 yes|no) pic_mode=$withval ;;
Chris@69 7882 *)
Chris@69 7883 pic_mode=default
Chris@69 7884 # Look at the argument we got. We use all the common list separators.
Chris@69 7885 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Chris@69 7886 for lt_pkg in $withval; do
Chris@69 7887 IFS=$lt_save_ifs
Chris@69 7888 if test "X$lt_pkg" = "X$lt_p"; then
Chris@69 7889 pic_mode=yes
Chris@69 7890 fi
Chris@69 7891 done
Chris@69 7892 IFS=$lt_save_ifs
Chris@69 7893 ;;
Chris@69 7894 esac
Chris@69 7895 else
Chris@69 7896 pic_mode=default
Chris@69 7897 fi
Chris@69 7898
Chris@69 7899
Chris@69 7900
Chris@69 7901
Chris@69 7902
Chris@69 7903
Chris@69 7904
Chris@69 7905
Chris@69 7906 # Check whether --enable-fast-install was given.
Chris@69 7907 if test "${enable_fast_install+set}" = set; then :
Chris@69 7908 enableval=$enable_fast_install; p=${PACKAGE-default}
Chris@69 7909 case $enableval in
Chris@69 7910 yes) enable_fast_install=yes ;;
Chris@69 7911 no) enable_fast_install=no ;;
Chris@69 7912 *)
Chris@69 7913 enable_fast_install=no
Chris@69 7914 # Look at the argument we got. We use all the common list separators.
Chris@69 7915 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Chris@69 7916 for pkg in $enableval; do
Chris@69 7917 IFS=$lt_save_ifs
Chris@69 7918 if test "X$pkg" = "X$p"; then
Chris@69 7919 enable_fast_install=yes
Chris@69 7920 fi
Chris@69 7921 done
Chris@69 7922 IFS=$lt_save_ifs
Chris@69 7923 ;;
Chris@69 7924 esac
Chris@69 7925 else
Chris@69 7926 enable_fast_install=yes
Chris@69 7927 fi
Chris@69 7928
Chris@69 7929
Chris@69 7930
Chris@69 7931
Chris@69 7932
Chris@69 7933
Chris@69 7934
Chris@69 7935
Chris@69 7936 shared_archive_member_spec=
Chris@69 7937 case $host,$enable_shared in
Chris@69 7938 power*-*-aix[5-9]*,yes)
Chris@69 7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
Chris@69 7940 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
Chris@69 7941
Chris@69 7942 # Check whether --with-aix-soname was given.
Chris@69 7943 if test "${with_aix_soname+set}" = set; then :
Chris@69 7944 withval=$with_aix_soname; case $withval in
Chris@69 7945 aix|svr4|both)
Chris@69 7946 ;;
Chris@69 7947 *)
Chris@69 7948 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
Chris@69 7949 ;;
Chris@69 7950 esac
Chris@69 7951 lt_cv_with_aix_soname=$with_aix_soname
Chris@69 7952 else
Chris@69 7953 if ${lt_cv_with_aix_soname+:} false; then :
Chris@69 7954 $as_echo_n "(cached) " >&6
Chris@69 7955 else
Chris@69 7956 lt_cv_with_aix_soname=aix
Chris@69 7957 fi
Chris@69 7958
Chris@69 7959 with_aix_soname=$lt_cv_with_aix_soname
Chris@69 7960 fi
Chris@69 7961
Chris@69 7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
Chris@69 7963 $as_echo "$with_aix_soname" >&6; }
Chris@69 7964 if test aix != "$with_aix_soname"; then
Chris@69 7965 # For the AIX way of multilib, we name the shared archive member
Chris@69 7966 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
Chris@69 7967 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
Chris@69 7968 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
Chris@69 7969 # the AIX toolchain works better with OBJECT_MODE set (default 32).
Chris@69 7970 if test 64 = "${OBJECT_MODE-32}"; then
Chris@69 7971 shared_archive_member_spec=shr_64
Chris@69 7972 else
Chris@69 7973 shared_archive_member_spec=shr
Chris@69 7974 fi
Chris@69 7975 fi
Chris@69 7976 ;;
Chris@69 7977 *)
Chris@69 7978 with_aix_soname=aix
Chris@69 7979 ;;
Chris@69 7980 esac
Chris@69 7981
Chris@69 7982
Chris@69 7983
Chris@69 7984
Chris@69 7985
Chris@69 7986
Chris@69 7987
Chris@69 7988
Chris@69 7989
Chris@69 7990
Chris@69 7991 # This can be used to rebuild libtool when needed
Chris@69 7992 LIBTOOL_DEPS=$ltmain
Chris@69 7993
Chris@69 7994 # Always use our own libtool.
Chris@69 7995 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
Chris@69 7996
Chris@69 7997
Chris@69 7998
Chris@69 7999
Chris@69 8000
Chris@69 8001
Chris@69 8002
Chris@69 8003
Chris@69 8004
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
Chris@69 8015
Chris@69 8016
Chris@69 8017
Chris@69 8018
Chris@69 8019
Chris@69 8020
Chris@69 8021
Chris@69 8022
Chris@69 8023
Chris@69 8024
Chris@69 8025
Chris@69 8026 test -z "$LN_S" && LN_S="ln -s"
Chris@69 8027
Chris@69 8028
Chris@69 8029
Chris@69 8030
Chris@69 8031
Chris@69 8032
Chris@69 8033
Chris@69 8034
Chris@69 8035
Chris@69 8036
Chris@69 8037
Chris@69 8038
Chris@69 8039
Chris@69 8040
Chris@69 8041 if test -n "${ZSH_VERSION+set}"; then
Chris@69 8042 setopt NO_GLOB_SUBST
Chris@69 8043 fi
Chris@69 8044
Chris@69 8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
Chris@69 8046 $as_echo_n "checking for objdir... " >&6; }
Chris@69 8047 if ${lt_cv_objdir+:} false; then :
Chris@69 8048 $as_echo_n "(cached) " >&6
Chris@69 8049 else
Chris@69 8050 rm -f .libs 2>/dev/null
Chris@69 8051 mkdir .libs 2>/dev/null
Chris@69 8052 if test -d .libs; then
Chris@69 8053 lt_cv_objdir=.libs
Chris@69 8054 else
Chris@69 8055 # MS-DOS does not allow filenames that begin with a dot.
Chris@69 8056 lt_cv_objdir=_libs
Chris@69 8057 fi
Chris@69 8058 rmdir .libs 2>/dev/null
Chris@69 8059 fi
Chris@69 8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
Chris@69 8061 $as_echo "$lt_cv_objdir" >&6; }
Chris@69 8062 objdir=$lt_cv_objdir
Chris@69 8063
Chris@69 8064
Chris@69 8065
Chris@69 8066
Chris@69 8067
Chris@69 8068 cat >>confdefs.h <<_ACEOF
Chris@69 8069 #define LT_OBJDIR "$lt_cv_objdir/"
Chris@69 8070 _ACEOF
Chris@69 8071
Chris@69 8072
Chris@69 8073
Chris@69 8074
Chris@69 8075 case $host_os in
Chris@69 8076 aix3*)
Chris@69 8077 # AIX sometimes has problems with the GCC collect2 program. For some
Chris@69 8078 # reason, if we set the COLLECT_NAMES environment variable, the problems
Chris@69 8079 # vanish in a puff of smoke.
Chris@69 8080 if test set != "${COLLECT_NAMES+set}"; then
Chris@69 8081 COLLECT_NAMES=
Chris@69 8082 export COLLECT_NAMES
Chris@69 8083 fi
Chris@69 8084 ;;
Chris@69 8085 esac
Chris@69 8086
Chris@69 8087 # Global variables:
Chris@69 8088 ofile=libtool
Chris@69 8089 can_build_shared=yes
Chris@69 8090
Chris@69 8091 # All known linkers require a '.a' archive for static linking (except MSVC,
Chris@69 8092 # which needs '.lib').
Chris@69 8093 libext=a
Chris@69 8094
Chris@69 8095 with_gnu_ld=$lt_cv_prog_gnu_ld
Chris@69 8096
Chris@69 8097 old_CC=$CC
Chris@69 8098 old_CFLAGS=$CFLAGS
Chris@69 8099
Chris@69 8100 # Set sane defaults for various variables
Chris@69 8101 test -z "$CC" && CC=cc
Chris@69 8102 test -z "$LTCC" && LTCC=$CC
Chris@69 8103 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Chris@69 8104 test -z "$LD" && LD=ld
Chris@69 8105 test -z "$ac_objext" && ac_objext=o
Chris@69 8106
Chris@69 8107 func_cc_basename $compiler
Chris@69 8108 cc_basename=$func_cc_basename_result
Chris@69 8109
Chris@69 8110
Chris@69 8111 # Only perform the check for file, if the check method requires it
Chris@69 8112 test -z "$MAGIC_CMD" && MAGIC_CMD=file
Chris@69 8113 case $deplibs_check_method in
Chris@69 8114 file_magic*)
Chris@69 8115 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Chris@69 8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
Chris@69 8117 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Chris@69 8118 if ${lt_cv_path_MAGIC_CMD+:} false; then :
Chris@69 8119 $as_echo_n "(cached) " >&6
Chris@69 8120 else
Chris@69 8121 case $MAGIC_CMD in
Chris@69 8122 [\\/*] | ?:[\\/]*)
Chris@69 8123 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Chris@69 8124 ;;
Chris@69 8125 *)
Chris@69 8126 lt_save_MAGIC_CMD=$MAGIC_CMD
Chris@69 8127 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Chris@69 8128 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
Chris@69 8129 for ac_dir in $ac_dummy; do
Chris@69 8130 IFS=$lt_save_ifs
Chris@69 8131 test -z "$ac_dir" && ac_dir=.
Chris@69 8132 if test -f "$ac_dir/${ac_tool_prefix}file"; then
Chris@69 8133 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
Chris@69 8134 if test -n "$file_magic_test_file"; then
Chris@69 8135 case $deplibs_check_method in
Chris@69 8136 "file_magic "*)
Chris@69 8137 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Chris@69 8138 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Chris@69 8139 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
Chris@69 8140 $EGREP "$file_magic_regex" > /dev/null; then
Chris@69 8141 :
Chris@69 8142 else
Chris@69 8143 cat <<_LT_EOF 1>&2
Chris@69 8144
Chris@69 8145 *** Warning: the command libtool uses to detect shared libraries,
Chris@69 8146 *** $file_magic_cmd, produces output that libtool cannot recognize.
Chris@69 8147 *** The result is that libtool may fail to recognize shared libraries
Chris@69 8148 *** as such. This will affect the creation of libtool libraries that
Chris@69 8149 *** depend on shared libraries, but programs linked with such libtool
Chris@69 8150 *** libraries will work regardless of this problem. Nevertheless, you
Chris@69 8151 *** may want to report the problem to your system manager and/or to
Chris@69 8152 *** bug-libtool@gnu.org
Chris@69 8153
Chris@69 8154 _LT_EOF
Chris@69 8155 fi ;;
Chris@69 8156 esac
Chris@69 8157 fi
Chris@69 8158 break
Chris@69 8159 fi
Chris@69 8160 done
Chris@69 8161 IFS=$lt_save_ifs
Chris@69 8162 MAGIC_CMD=$lt_save_MAGIC_CMD
Chris@69 8163 ;;
Chris@69 8164 esac
Chris@69 8165 fi
Chris@69 8166
Chris@69 8167 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Chris@69 8168 if test -n "$MAGIC_CMD"; then
Chris@69 8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Chris@69 8170 $as_echo "$MAGIC_CMD" >&6; }
Chris@69 8171 else
Chris@69 8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 8173 $as_echo "no" >&6; }
Chris@69 8174 fi
Chris@69 8175
Chris@69 8176
Chris@69 8177
Chris@69 8178
Chris@69 8179
Chris@69 8180 if test -z "$lt_cv_path_MAGIC_CMD"; then
Chris@69 8181 if test -n "$ac_tool_prefix"; then
Chris@69 8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
Chris@69 8183 $as_echo_n "checking for file... " >&6; }
Chris@69 8184 if ${lt_cv_path_MAGIC_CMD+:} false; then :
Chris@69 8185 $as_echo_n "(cached) " >&6
Chris@69 8186 else
Chris@69 8187 case $MAGIC_CMD in
Chris@69 8188 [\\/*] | ?:[\\/]*)
Chris@69 8189 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Chris@69 8190 ;;
Chris@69 8191 *)
Chris@69 8192 lt_save_MAGIC_CMD=$MAGIC_CMD
Chris@69 8193 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Chris@69 8194 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
Chris@69 8195 for ac_dir in $ac_dummy; do
Chris@69 8196 IFS=$lt_save_ifs
Chris@69 8197 test -z "$ac_dir" && ac_dir=.
Chris@69 8198 if test -f "$ac_dir/file"; then
Chris@69 8199 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
Chris@69 8200 if test -n "$file_magic_test_file"; then
Chris@69 8201 case $deplibs_check_method in
Chris@69 8202 "file_magic "*)
Chris@69 8203 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Chris@69 8204 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Chris@69 8205 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
Chris@69 8206 $EGREP "$file_magic_regex" > /dev/null; then
Chris@69 8207 :
Chris@69 8208 else
Chris@69 8209 cat <<_LT_EOF 1>&2
Chris@69 8210
Chris@69 8211 *** Warning: the command libtool uses to detect shared libraries,
Chris@69 8212 *** $file_magic_cmd, produces output that libtool cannot recognize.
Chris@69 8213 *** The result is that libtool may fail to recognize shared libraries
Chris@69 8214 *** as such. This will affect the creation of libtool libraries that
Chris@69 8215 *** depend on shared libraries, but programs linked with such libtool
Chris@69 8216 *** libraries will work regardless of this problem. Nevertheless, you
Chris@69 8217 *** may want to report the problem to your system manager and/or to
Chris@69 8218 *** bug-libtool@gnu.org
Chris@69 8219
Chris@69 8220 _LT_EOF
Chris@69 8221 fi ;;
Chris@69 8222 esac
Chris@69 8223 fi
Chris@69 8224 break
Chris@69 8225 fi
Chris@69 8226 done
Chris@69 8227 IFS=$lt_save_ifs
Chris@69 8228 MAGIC_CMD=$lt_save_MAGIC_CMD
Chris@69 8229 ;;
Chris@69 8230 esac
Chris@69 8231 fi
Chris@69 8232
Chris@69 8233 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Chris@69 8234 if test -n "$MAGIC_CMD"; then
Chris@69 8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Chris@69 8236 $as_echo "$MAGIC_CMD" >&6; }
Chris@69 8237 else
Chris@69 8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 8239 $as_echo "no" >&6; }
Chris@69 8240 fi
Chris@69 8241
Chris@69 8242
Chris@69 8243 else
Chris@69 8244 MAGIC_CMD=:
Chris@69 8245 fi
Chris@69 8246 fi
Chris@69 8247
Chris@69 8248 fi
Chris@69 8249 ;;
Chris@69 8250 esac
Chris@69 8251
Chris@69 8252 # Use C for the default configuration in the libtool script
Chris@69 8253
Chris@69 8254 lt_save_CC=$CC
Chris@69 8255 ac_ext=c
Chris@69 8256 ac_cpp='$CPP $CPPFLAGS'
Chris@69 8257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@69 8258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@69 8259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@69 8260
Chris@69 8261
Chris@69 8262 # Source file extension for C test sources.
Chris@69 8263 ac_ext=c
Chris@69 8264
Chris@69 8265 # Object file extension for compiled C test sources.
Chris@69 8266 objext=o
Chris@69 8267 objext=$objext
Chris@69 8268
Chris@69 8269 # Code to be used in simple compile tests
Chris@69 8270 lt_simple_compile_test_code="int some_variable = 0;"
Chris@69 8271
Chris@69 8272 # Code to be used in simple link tests
Chris@69 8273 lt_simple_link_test_code='int main(){return(0);}'
Chris@69 8274
Chris@69 8275
Chris@69 8276
Chris@69 8277
Chris@69 8278
Chris@69 8279
Chris@69 8280
Chris@69 8281 # If no C compiler was specified, use CC.
Chris@69 8282 LTCC=${LTCC-"$CC"}
Chris@69 8283
Chris@69 8284 # If no C compiler flags were specified, use CFLAGS.
Chris@69 8285 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Chris@69 8286
Chris@69 8287 # Allow CC to be a program name with arguments.
Chris@69 8288 compiler=$CC
Chris@69 8289
Chris@69 8290 # Save the default compiler, since it gets overwritten when the other
Chris@69 8291 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
Chris@69 8292 compiler_DEFAULT=$CC
Chris@69 8293
Chris@69 8294 # save warnings/boilerplate of simple test code
Chris@69 8295 ac_outfile=conftest.$ac_objext
Chris@69 8296 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Chris@69 8297 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@69 8298 _lt_compiler_boilerplate=`cat conftest.err`
Chris@69 8299 $RM conftest*
Chris@69 8300
Chris@69 8301 ac_outfile=conftest.$ac_objext
Chris@69 8302 echo "$lt_simple_link_test_code" >conftest.$ac_ext
Chris@69 8303 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Chris@69 8304 _lt_linker_boilerplate=`cat conftest.err`
Chris@69 8305 $RM -r conftest*
Chris@69 8306
Chris@69 8307
Chris@69 8308 ## CAVEAT EMPTOR:
Chris@69 8309 ## There is no encapsulation within the following macros, do not change
Chris@69 8310 ## the running order or otherwise move them around unless you know exactly
Chris@69 8311 ## what you are doing...
Chris@69 8312 if test -n "$compiler"; then
Chris@69 8313
Chris@69 8314 lt_prog_compiler_no_builtin_flag=
Chris@69 8315
Chris@69 8316 if test yes = "$GCC"; then
Chris@69 8317 case $cc_basename in
Chris@69 8318 nvcc*)
Chris@69 8319 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
Chris@69 8320 *)
Chris@69 8321 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
Chris@69 8322 esac
Chris@69 8323
Chris@69 8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Chris@69 8325 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Chris@69 8326 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Chris@69 8327 $as_echo_n "(cached) " >&6
Chris@69 8328 else
Chris@69 8329 lt_cv_prog_compiler_rtti_exceptions=no
Chris@69 8330 ac_outfile=conftest.$ac_objext
Chris@69 8331 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@69 8332 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
Chris@69 8333 # Insert the option either (1) after the last *FLAGS variable, or
Chris@69 8334 # (2) before a word containing "conftest.", or (3) at the end.
Chris@69 8335 # Note that $ac_compile itself does not contain backslashes and begins
Chris@69 8336 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@69 8337 # The option is referenced via a variable to avoid confusing sed.
Chris@69 8338 lt_compile=`echo "$ac_compile" | $SED \
Chris@69 8339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@69 8340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@69 8341 -e 's:$: $lt_compiler_flag:'`
Chris@69 8342 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@69 8343 (eval "$lt_compile" 2>conftest.err)
Chris@69 8344 ac_status=$?
Chris@69 8345 cat conftest.err >&5
Chris@69 8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@69 8347 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@69 8348 # The compiler can only warn and ignore the option if not recognized
Chris@69 8349 # So say no if there are warnings other than the usual output.
Chris@69 8350 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Chris@69 8351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@69 8352 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Chris@69 8353 lt_cv_prog_compiler_rtti_exceptions=yes
Chris@69 8354 fi
Chris@69 8355 fi
Chris@69 8356 $RM conftest*
Chris@69 8357
Chris@69 8358 fi
Chris@69 8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Chris@69 8360 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Chris@69 8361
Chris@69 8362 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
Chris@69 8363 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
Chris@69 8364 else
Chris@69 8365 :
Chris@69 8366 fi
Chris@69 8367
Chris@69 8368 fi
Chris@69 8369
Chris@69 8370
Chris@69 8371
Chris@69 8372
Chris@69 8373
Chris@69 8374
Chris@69 8375 lt_prog_compiler_wl=
Chris@69 8376 lt_prog_compiler_pic=
Chris@69 8377 lt_prog_compiler_static=
Chris@69 8378
Chris@69 8379
Chris@69 8380 if test yes = "$GCC"; then
Chris@69 8381 lt_prog_compiler_wl='-Wl,'
Chris@69 8382 lt_prog_compiler_static='-static'
Chris@69 8383
Chris@69 8384 case $host_os in
Chris@69 8385 aix*)
Chris@69 8386 # All AIX code is PIC.
Chris@69 8387 if test ia64 = "$host_cpu"; then
Chris@69 8388 # AIX 5 now supports IA64 processor
Chris@69 8389 lt_prog_compiler_static='-Bstatic'
Chris@69 8390 fi
Chris@69 8391 lt_prog_compiler_pic='-fPIC'
Chris@69 8392 ;;
Chris@69 8393
Chris@69 8394 amigaos*)
Chris@69 8395 case $host_cpu in
Chris@69 8396 powerpc)
Chris@69 8397 # see comment about AmigaOS4 .so support
Chris@69 8398 lt_prog_compiler_pic='-fPIC'
Chris@69 8399 ;;
Chris@69 8400 m68k)
Chris@69 8401 # FIXME: we need at least 68020 code to build shared libraries, but
Chris@69 8402 # adding the '-m68020' flag to GCC prevents building anything better,
Chris@69 8403 # like '-m68040'.
Chris@69 8404 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
Chris@69 8405 ;;
Chris@69 8406 esac
Chris@69 8407 ;;
Chris@69 8408
Chris@69 8409 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Chris@69 8410 # PIC is the default for these OSes.
Chris@69 8411 ;;
Chris@69 8412
Chris@69 8413 mingw* | cygwin* | pw32* | os2* | cegcc*)
Chris@69 8414 # This hack is so that the source file can tell whether it is being
Chris@69 8415 # built for inclusion in a dll (and should export symbols for example).
Chris@69 8416 # Although the cygwin gcc ignores -fPIC, still need this for old-style
Chris@69 8417 # (--disable-auto-import) libraries
Chris@69 8418 lt_prog_compiler_pic='-DDLL_EXPORT'
Chris@69 8419 case $host_os in
Chris@69 8420 os2*)
Chris@69 8421 lt_prog_compiler_static='$wl-static'
Chris@69 8422 ;;
Chris@69 8423 esac
Chris@69 8424 ;;
Chris@69 8425
Chris@69 8426 darwin* | rhapsody*)
Chris@69 8427 # PIC is the default on this platform
Chris@69 8428 # Common symbols not allowed in MH_DYLIB files
Chris@69 8429 lt_prog_compiler_pic='-fno-common'
Chris@69 8430 ;;
Chris@69 8431
Chris@69 8432 haiku*)
Chris@69 8433 # PIC is the default for Haiku.
Chris@69 8434 # The "-static" flag exists, but is broken.
Chris@69 8435 lt_prog_compiler_static=
Chris@69 8436 ;;
Chris@69 8437
Chris@69 8438 hpux*)
Chris@69 8439 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
Chris@69 8440 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
Chris@69 8441 # sets the default TLS model and affects inlining.
Chris@69 8442 case $host_cpu in
Chris@69 8443 hppa*64*)
Chris@69 8444 # +Z the default
Chris@69 8445 ;;
Chris@69 8446 *)
Chris@69 8447 lt_prog_compiler_pic='-fPIC'
Chris@69 8448 ;;
Chris@69 8449 esac
Chris@69 8450 ;;
Chris@69 8451
Chris@69 8452 interix[3-9]*)
Chris@69 8453 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
Chris@69 8454 # Instead, we relocate shared libraries at runtime.
Chris@69 8455 ;;
Chris@69 8456
Chris@69 8457 msdosdjgpp*)
Chris@69 8458 # Just because we use GCC doesn't mean we suddenly get shared libraries
Chris@69 8459 # on systems that don't support them.
Chris@69 8460 lt_prog_compiler_can_build_shared=no
Chris@69 8461 enable_shared=no
Chris@69 8462 ;;
Chris@69 8463
Chris@69 8464 *nto* | *qnx*)
Chris@69 8465 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@69 8466 # it will coredump.
Chris@69 8467 lt_prog_compiler_pic='-fPIC -shared'
Chris@69 8468 ;;
Chris@69 8469
Chris@69 8470 sysv4*MP*)
Chris@69 8471 if test -d /usr/nec; then
Chris@69 8472 lt_prog_compiler_pic=-Kconform_pic
Chris@69 8473 fi
Chris@69 8474 ;;
Chris@69 8475
Chris@69 8476 *)
Chris@69 8477 lt_prog_compiler_pic='-fPIC'
Chris@69 8478 ;;
Chris@69 8479 esac
Chris@69 8480
Chris@69 8481 case $cc_basename in
Chris@69 8482 nvcc*) # Cuda Compiler Driver 2.2
Chris@69 8483 lt_prog_compiler_wl='-Xlinker '
Chris@69 8484 if test -n "$lt_prog_compiler_pic"; then
Chris@69 8485 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
Chris@69 8486 fi
Chris@69 8487 ;;
Chris@69 8488 esac
Chris@69 8489 else
Chris@69 8490 # PORTME Check for flag to pass linker flags through the system compiler.
Chris@69 8491 case $host_os in
Chris@69 8492 aix*)
Chris@69 8493 lt_prog_compiler_wl='-Wl,'
Chris@69 8494 if test ia64 = "$host_cpu"; then
Chris@69 8495 # AIX 5 now supports IA64 processor
Chris@69 8496 lt_prog_compiler_static='-Bstatic'
Chris@69 8497 else
Chris@69 8498 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
Chris@69 8499 fi
Chris@69 8500 ;;
Chris@69 8501
Chris@69 8502 darwin* | rhapsody*)
Chris@69 8503 # PIC is the default on this platform
Chris@69 8504 # Common symbols not allowed in MH_DYLIB files
Chris@69 8505 lt_prog_compiler_pic='-fno-common'
Chris@69 8506 case $cc_basename in
Chris@69 8507 nagfor*)
Chris@69 8508 # NAG Fortran compiler
Chris@69 8509 lt_prog_compiler_wl='-Wl,-Wl,,'
Chris@69 8510 lt_prog_compiler_pic='-PIC'
Chris@69 8511 lt_prog_compiler_static='-Bstatic'
Chris@69 8512 ;;
Chris@69 8513 esac
Chris@69 8514 ;;
Chris@69 8515
Chris@69 8516 mingw* | cygwin* | pw32* | os2* | cegcc*)
Chris@69 8517 # This hack is so that the source file can tell whether it is being
Chris@69 8518 # built for inclusion in a dll (and should export symbols for example).
Chris@69 8519 lt_prog_compiler_pic='-DDLL_EXPORT'
Chris@69 8520 case $host_os in
Chris@69 8521 os2*)
Chris@69 8522 lt_prog_compiler_static='$wl-static'
Chris@69 8523 ;;
Chris@69 8524 esac
Chris@69 8525 ;;
Chris@69 8526
Chris@69 8527 hpux9* | hpux10* | hpux11*)
Chris@69 8528 lt_prog_compiler_wl='-Wl,'
Chris@69 8529 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
Chris@69 8530 # not for PA HP-UX.
Chris@69 8531 case $host_cpu in
Chris@69 8532 hppa*64*|ia64*)
Chris@69 8533 # +Z the default
Chris@69 8534 ;;
Chris@69 8535 *)
Chris@69 8536 lt_prog_compiler_pic='+Z'
Chris@69 8537 ;;
Chris@69 8538 esac
Chris@69 8539 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Chris@69 8540 lt_prog_compiler_static='$wl-a ${wl}archive'
Chris@69 8541 ;;
Chris@69 8542
Chris@69 8543 irix5* | irix6* | nonstopux*)
Chris@69 8544 lt_prog_compiler_wl='-Wl,'
Chris@69 8545 # PIC (with -KPIC) is the default.
Chris@69 8546 lt_prog_compiler_static='-non_shared'
Chris@69 8547 ;;
Chris@69 8548
Chris@69 8549 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Chris@69 8550 case $cc_basename in
Chris@69 8551 # old Intel for x86_64, which still supported -KPIC.
Chris@69 8552 ecc*)
Chris@69 8553 lt_prog_compiler_wl='-Wl,'
Chris@69 8554 lt_prog_compiler_pic='-KPIC'
Chris@69 8555 lt_prog_compiler_static='-static'
Chris@69 8556 ;;
Chris@69 8557 # icc used to be incompatible with GCC.
Chris@69 8558 # ICC 10 doesn't accept -KPIC any more.
Chris@69 8559 icc* | ifort*)
Chris@69 8560 lt_prog_compiler_wl='-Wl,'
Chris@69 8561 lt_prog_compiler_pic='-fPIC'
Chris@69 8562 lt_prog_compiler_static='-static'
Chris@69 8563 ;;
Chris@69 8564 # Lahey Fortran 8.1.
Chris@69 8565 lf95*)
Chris@69 8566 lt_prog_compiler_wl='-Wl,'
Chris@69 8567 lt_prog_compiler_pic='--shared'
Chris@69 8568 lt_prog_compiler_static='--static'
Chris@69 8569 ;;
Chris@69 8570 nagfor*)
Chris@69 8571 # NAG Fortran compiler
Chris@69 8572 lt_prog_compiler_wl='-Wl,-Wl,,'
Chris@69 8573 lt_prog_compiler_pic='-PIC'
Chris@69 8574 lt_prog_compiler_static='-Bstatic'
Chris@69 8575 ;;
Chris@69 8576 tcc*)
Chris@69 8577 # Fabrice Bellard et al's Tiny C Compiler
Chris@69 8578 lt_prog_compiler_wl='-Wl,'
Chris@69 8579 lt_prog_compiler_pic='-fPIC'
Chris@69 8580 lt_prog_compiler_static='-static'
Chris@69 8581 ;;
Chris@69 8582 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Chris@69 8583 # Portland Group compilers (*not* the Pentium gcc compiler,
Chris@69 8584 # which looks to be a dead project)
Chris@69 8585 lt_prog_compiler_wl='-Wl,'
Chris@69 8586 lt_prog_compiler_pic='-fpic'
Chris@69 8587 lt_prog_compiler_static='-Bstatic'
Chris@69 8588 ;;
Chris@69 8589 ccc*)
Chris@69 8590 lt_prog_compiler_wl='-Wl,'
Chris@69 8591 # All Alpha code is PIC.
Chris@69 8592 lt_prog_compiler_static='-non_shared'
Chris@69 8593 ;;
Chris@69 8594 xl* | bgxl* | bgf* | mpixl*)
Chris@69 8595 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Chris@69 8596 lt_prog_compiler_wl='-Wl,'
Chris@69 8597 lt_prog_compiler_pic='-qpic'
Chris@69 8598 lt_prog_compiler_static='-qstaticlink'
Chris@69 8599 ;;
Chris@69 8600 *)
Chris@69 8601 case `$CC -V 2>&1 | sed 5q` in
Chris@69 8602 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
Chris@69 8603 # Sun Fortran 8.3 passes all unrecognized flags to the linker
Chris@69 8604 lt_prog_compiler_pic='-KPIC'
Chris@69 8605 lt_prog_compiler_static='-Bstatic'
Chris@69 8606 lt_prog_compiler_wl=''
Chris@69 8607 ;;
Chris@69 8608 *Sun\ F* | *Sun*Fortran*)
Chris@69 8609 lt_prog_compiler_pic='-KPIC'
Chris@69 8610 lt_prog_compiler_static='-Bstatic'
Chris@69 8611 lt_prog_compiler_wl='-Qoption ld '
Chris@69 8612 ;;
Chris@69 8613 *Sun\ C*)
Chris@69 8614 # Sun C 5.9
Chris@69 8615 lt_prog_compiler_pic='-KPIC'
Chris@69 8616 lt_prog_compiler_static='-Bstatic'
Chris@69 8617 lt_prog_compiler_wl='-Wl,'
Chris@69 8618 ;;
Chris@69 8619 *Intel*\ [CF]*Compiler*)
Chris@69 8620 lt_prog_compiler_wl='-Wl,'
Chris@69 8621 lt_prog_compiler_pic='-fPIC'
Chris@69 8622 lt_prog_compiler_static='-static'
Chris@69 8623 ;;
Chris@69 8624 *Portland\ Group*)
Chris@69 8625 lt_prog_compiler_wl='-Wl,'
Chris@69 8626 lt_prog_compiler_pic='-fpic'
Chris@69 8627 lt_prog_compiler_static='-Bstatic'
Chris@69 8628 ;;
Chris@69 8629 esac
Chris@69 8630 ;;
Chris@69 8631 esac
Chris@69 8632 ;;
Chris@69 8633
Chris@69 8634 newsos6)
Chris@69 8635 lt_prog_compiler_pic='-KPIC'
Chris@69 8636 lt_prog_compiler_static='-Bstatic'
Chris@69 8637 ;;
Chris@69 8638
Chris@69 8639 *nto* | *qnx*)
Chris@69 8640 # QNX uses GNU C++, but need to define -shared option too, otherwise
Chris@69 8641 # it will coredump.
Chris@69 8642 lt_prog_compiler_pic='-fPIC -shared'
Chris@69 8643 ;;
Chris@69 8644
Chris@69 8645 osf3* | osf4* | osf5*)
Chris@69 8646 lt_prog_compiler_wl='-Wl,'
Chris@69 8647 # All OSF/1 code is PIC.
Chris@69 8648 lt_prog_compiler_static='-non_shared'
Chris@69 8649 ;;
Chris@69 8650
Chris@69 8651 rdos*)
Chris@69 8652 lt_prog_compiler_static='-non_shared'
Chris@69 8653 ;;
Chris@69 8654
Chris@69 8655 solaris*)
Chris@69 8656 lt_prog_compiler_pic='-KPIC'
Chris@69 8657 lt_prog_compiler_static='-Bstatic'
Chris@69 8658 case $cc_basename in
Chris@69 8659 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Chris@69 8660 lt_prog_compiler_wl='-Qoption ld ';;
Chris@69 8661 *)
Chris@69 8662 lt_prog_compiler_wl='-Wl,';;
Chris@69 8663 esac
Chris@69 8664 ;;
Chris@69 8665
Chris@69 8666 sunos4*)
Chris@69 8667 lt_prog_compiler_wl='-Qoption ld '
Chris@69 8668 lt_prog_compiler_pic='-PIC'
Chris@69 8669 lt_prog_compiler_static='-Bstatic'
Chris@69 8670 ;;
Chris@69 8671
Chris@69 8672 sysv4 | sysv4.2uw2* | sysv4.3*)
Chris@69 8673 lt_prog_compiler_wl='-Wl,'
Chris@69 8674 lt_prog_compiler_pic='-KPIC'
Chris@69 8675 lt_prog_compiler_static='-Bstatic'
Chris@69 8676 ;;
Chris@69 8677
Chris@69 8678 sysv4*MP*)
Chris@69 8679 if test -d /usr/nec; then
Chris@69 8680 lt_prog_compiler_pic='-Kconform_pic'
Chris@69 8681 lt_prog_compiler_static='-Bstatic'
Chris@69 8682 fi
Chris@69 8683 ;;
Chris@69 8684
Chris@69 8685 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
Chris@69 8686 lt_prog_compiler_wl='-Wl,'
Chris@69 8687 lt_prog_compiler_pic='-KPIC'
Chris@69 8688 lt_prog_compiler_static='-Bstatic'
Chris@69 8689 ;;
Chris@69 8690
Chris@69 8691 unicos*)
Chris@69 8692 lt_prog_compiler_wl='-Wl,'
Chris@69 8693 lt_prog_compiler_can_build_shared=no
Chris@69 8694 ;;
Chris@69 8695
Chris@69 8696 uts4*)
Chris@69 8697 lt_prog_compiler_pic='-pic'
Chris@69 8698 lt_prog_compiler_static='-Bstatic'
Chris@69 8699 ;;
Chris@69 8700
Chris@69 8701 *)
Chris@69 8702 lt_prog_compiler_can_build_shared=no
Chris@69 8703 ;;
Chris@69 8704 esac
Chris@69 8705 fi
Chris@69 8706
Chris@69 8707 case $host_os in
Chris@69 8708 # For platforms that do not support PIC, -DPIC is meaningless:
Chris@69 8709 *djgpp*)
Chris@69 8710 lt_prog_compiler_pic=
Chris@69 8711 ;;
Chris@69 8712 *)
Chris@69 8713 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
Chris@69 8714 ;;
Chris@69 8715 esac
Chris@69 8716
Chris@69 8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
Chris@69 8718 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Chris@69 8719 if ${lt_cv_prog_compiler_pic+:} false; then :
Chris@69 8720 $as_echo_n "(cached) " >&6
Chris@69 8721 else
Chris@69 8722 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
Chris@69 8723 fi
Chris@69 8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
Chris@69 8725 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
Chris@69 8726 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Chris@69 8727
Chris@69 8728 #
Chris@69 8729 # Check to make sure the PIC flag actually works.
Chris@69 8730 #
Chris@69 8731 if test -n "$lt_prog_compiler_pic"; then
Chris@69 8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
Chris@69 8733 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Chris@69 8734 if ${lt_cv_prog_compiler_pic_works+:} false; then :
Chris@69 8735 $as_echo_n "(cached) " >&6
Chris@69 8736 else
Chris@69 8737 lt_cv_prog_compiler_pic_works=no
Chris@69 8738 ac_outfile=conftest.$ac_objext
Chris@69 8739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@69 8740 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
Chris@69 8741 # Insert the option either (1) after the last *FLAGS variable, or
Chris@69 8742 # (2) before a word containing "conftest.", or (3) at the end.
Chris@69 8743 # Note that $ac_compile itself does not contain backslashes and begins
Chris@69 8744 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@69 8745 # The option is referenced via a variable to avoid confusing sed.
Chris@69 8746 lt_compile=`echo "$ac_compile" | $SED \
Chris@69 8747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@69 8748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@69 8749 -e 's:$: $lt_compiler_flag:'`
Chris@69 8750 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@69 8751 (eval "$lt_compile" 2>conftest.err)
Chris@69 8752 ac_status=$?
Chris@69 8753 cat conftest.err >&5
Chris@69 8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@69 8755 if (exit $ac_status) && test -s "$ac_outfile"; then
Chris@69 8756 # The compiler can only warn and ignore the option if not recognized
Chris@69 8757 # So say no if there are warnings other than the usual output.
Chris@69 8758 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Chris@69 8759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@69 8760 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Chris@69 8761 lt_cv_prog_compiler_pic_works=yes
Chris@69 8762 fi
Chris@69 8763 fi
Chris@69 8764 $RM conftest*
Chris@69 8765
Chris@69 8766 fi
Chris@69 8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
Chris@69 8768 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Chris@69 8769
Chris@69 8770 if test yes = "$lt_cv_prog_compiler_pic_works"; then
Chris@69 8771 case $lt_prog_compiler_pic in
Chris@69 8772 "" | " "*) ;;
Chris@69 8773 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
Chris@69 8774 esac
Chris@69 8775 else
Chris@69 8776 lt_prog_compiler_pic=
Chris@69 8777 lt_prog_compiler_can_build_shared=no
Chris@69 8778 fi
Chris@69 8779
Chris@69 8780 fi
Chris@69 8781
Chris@69 8782
Chris@69 8783
Chris@69 8784
Chris@69 8785
Chris@69 8786
Chris@69 8787
Chris@69 8788
Chris@69 8789
Chris@69 8790
Chris@69 8791
Chris@69 8792 #
Chris@69 8793 # Check to make sure the static flag actually works.
Chris@69 8794 #
Chris@69 8795 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Chris@69 8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Chris@69 8797 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Chris@69 8798 if ${lt_cv_prog_compiler_static_works+:} false; then :
Chris@69 8799 $as_echo_n "(cached) " >&6
Chris@69 8800 else
Chris@69 8801 lt_cv_prog_compiler_static_works=no
Chris@69 8802 save_LDFLAGS=$LDFLAGS
Chris@69 8803 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Chris@69 8804 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@69 8805 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@69 8806 # The linker can only warn and ignore the option if not recognized
Chris@69 8807 # So say no if there are warnings
Chris@69 8808 if test -s conftest.err; then
Chris@69 8809 # Append any errors to the config.log.
Chris@69 8810 cat conftest.err 1>&5
Chris@69 8811 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Chris@69 8812 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@69 8813 if diff conftest.exp conftest.er2 >/dev/null; then
Chris@69 8814 lt_cv_prog_compiler_static_works=yes
Chris@69 8815 fi
Chris@69 8816 else
Chris@69 8817 lt_cv_prog_compiler_static_works=yes
Chris@69 8818 fi
Chris@69 8819 fi
Chris@69 8820 $RM -r conftest*
Chris@69 8821 LDFLAGS=$save_LDFLAGS
Chris@69 8822
Chris@69 8823 fi
Chris@69 8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
Chris@69 8825 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Chris@69 8826
Chris@69 8827 if test yes = "$lt_cv_prog_compiler_static_works"; then
Chris@69 8828 :
Chris@69 8829 else
Chris@69 8830 lt_prog_compiler_static=
Chris@69 8831 fi
Chris@69 8832
Chris@69 8833
Chris@69 8834
Chris@69 8835
Chris@69 8836
Chris@69 8837
Chris@69 8838
Chris@69 8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@69 8840 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@69 8841 if ${lt_cv_prog_compiler_c_o+:} false; then :
Chris@69 8842 $as_echo_n "(cached) " >&6
Chris@69 8843 else
Chris@69 8844 lt_cv_prog_compiler_c_o=no
Chris@69 8845 $RM -r conftest 2>/dev/null
Chris@69 8846 mkdir conftest
Chris@69 8847 cd conftest
Chris@69 8848 mkdir out
Chris@69 8849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@69 8850
Chris@69 8851 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@69 8852 # Insert the option either (1) after the last *FLAGS variable, or
Chris@69 8853 # (2) before a word containing "conftest.", or (3) at the end.
Chris@69 8854 # Note that $ac_compile itself does not contain backslashes and begins
Chris@69 8855 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@69 8856 lt_compile=`echo "$ac_compile" | $SED \
Chris@69 8857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@69 8858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@69 8859 -e 's:$: $lt_compiler_flag:'`
Chris@69 8860 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@69 8861 (eval "$lt_compile" 2>out/conftest.err)
Chris@69 8862 ac_status=$?
Chris@69 8863 cat out/conftest.err >&5
Chris@69 8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@69 8865 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@69 8866 then
Chris@69 8867 # The compiler can only warn and ignore the option if not recognized
Chris@69 8868 # So say no if there are warnings
Chris@69 8869 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@69 8870 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@69 8871 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@69 8872 lt_cv_prog_compiler_c_o=yes
Chris@69 8873 fi
Chris@69 8874 fi
Chris@69 8875 chmod u+w . 2>&5
Chris@69 8876 $RM conftest*
Chris@69 8877 # SGI C++ compiler will create directory out/ii_files/ for
Chris@69 8878 # template instantiation
Chris@69 8879 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@69 8880 $RM out/* && rmdir out
Chris@69 8881 cd ..
Chris@69 8882 $RM -r conftest
Chris@69 8883 $RM conftest*
Chris@69 8884
Chris@69 8885 fi
Chris@69 8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Chris@69 8887 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Chris@69 8888
Chris@69 8889
Chris@69 8890
Chris@69 8891
Chris@69 8892
Chris@69 8893
Chris@69 8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Chris@69 8895 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris@69 8896 if ${lt_cv_prog_compiler_c_o+:} false; then :
Chris@69 8897 $as_echo_n "(cached) " >&6
Chris@69 8898 else
Chris@69 8899 lt_cv_prog_compiler_c_o=no
Chris@69 8900 $RM -r conftest 2>/dev/null
Chris@69 8901 mkdir conftest
Chris@69 8902 cd conftest
Chris@69 8903 mkdir out
Chris@69 8904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@69 8905
Chris@69 8906 lt_compiler_flag="-o out/conftest2.$ac_objext"
Chris@69 8907 # Insert the option either (1) after the last *FLAGS variable, or
Chris@69 8908 # (2) before a word containing "conftest.", or (3) at the end.
Chris@69 8909 # Note that $ac_compile itself does not contain backslashes and begins
Chris@69 8910 # with a dollar sign (not a hyphen), so the echo should work correctly.
Chris@69 8911 lt_compile=`echo "$ac_compile" | $SED \
Chris@69 8912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Chris@69 8913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
Chris@69 8914 -e 's:$: $lt_compiler_flag:'`
Chris@69 8915 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Chris@69 8916 (eval "$lt_compile" 2>out/conftest.err)
Chris@69 8917 ac_status=$?
Chris@69 8918 cat out/conftest.err >&5
Chris@69 8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris@69 8920 if (exit $ac_status) && test -s out/conftest2.$ac_objext
Chris@69 8921 then
Chris@69 8922 # The compiler can only warn and ignore the option if not recognized
Chris@69 8923 # So say no if there are warnings
Chris@69 8924 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Chris@69 8925 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Chris@69 8926 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Chris@69 8927 lt_cv_prog_compiler_c_o=yes
Chris@69 8928 fi
Chris@69 8929 fi
Chris@69 8930 chmod u+w . 2>&5
Chris@69 8931 $RM conftest*
Chris@69 8932 # SGI C++ compiler will create directory out/ii_files/ for
Chris@69 8933 # template instantiation
Chris@69 8934 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Chris@69 8935 $RM out/* && rmdir out
Chris@69 8936 cd ..
Chris@69 8937 $RM -r conftest
Chris@69 8938 $RM conftest*
Chris@69 8939
Chris@69 8940 fi
Chris@69 8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Chris@69 8942 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Chris@69 8943
Chris@69 8944
Chris@69 8945
Chris@69 8946
Chris@69 8947 hard_links=nottested
Chris@69 8948 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
Chris@69 8949 # do not overwrite the value of need_locks provided by the user
Chris@69 8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Chris@69 8951 $as_echo_n "checking if we can lock with hard links... " >&6; }
Chris@69 8952 hard_links=yes
Chris@69 8953 $RM conftest*
Chris@69 8954 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@69 8955 touch conftest.a
Chris@69 8956 ln conftest.a conftest.b 2>&5 || hard_links=no
Chris@69 8957 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Chris@69 8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Chris@69 8959 $as_echo "$hard_links" >&6; }
Chris@69 8960 if test no = "$hard_links"; then
Chris@69 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
Chris@69 8962 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
Chris@69 8963 need_locks=warn
Chris@69 8964 fi
Chris@69 8965 else
Chris@69 8966 need_locks=no
Chris@69 8967 fi
Chris@69 8968
Chris@69 8969
Chris@69 8970
Chris@69 8971
Chris@69 8972
Chris@69 8973
Chris@69 8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Chris@69 8975 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Chris@69 8976
Chris@69 8977 runpath_var=
Chris@69 8978 allow_undefined_flag=
Chris@69 8979 always_export_symbols=no
Chris@69 8980 archive_cmds=
Chris@69 8981 archive_expsym_cmds=
Chris@69 8982 compiler_needs_object=no
Chris@69 8983 enable_shared_with_static_runtimes=no
Chris@69 8984 export_dynamic_flag_spec=
Chris@69 8985 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Chris@69 8986 hardcode_automatic=no
Chris@69 8987 hardcode_direct=no
Chris@69 8988 hardcode_direct_absolute=no
Chris@69 8989 hardcode_libdir_flag_spec=
Chris@69 8990 hardcode_libdir_separator=
Chris@69 8991 hardcode_minus_L=no
Chris@69 8992 hardcode_shlibpath_var=unsupported
Chris@69 8993 inherit_rpath=no
Chris@69 8994 link_all_deplibs=unknown
Chris@69 8995 module_cmds=
Chris@69 8996 module_expsym_cmds=
Chris@69 8997 old_archive_from_new_cmds=
Chris@69 8998 old_archive_from_expsyms_cmds=
Chris@69 8999 thread_safe_flag_spec=
Chris@69 9000 whole_archive_flag_spec=
Chris@69 9001 # include_expsyms should be a list of space-separated symbols to be *always*
Chris@69 9002 # included in the symbol list
Chris@69 9003 include_expsyms=
Chris@69 9004 # exclude_expsyms can be an extended regexp of symbols to exclude
Chris@69 9005 # it will be wrapped by ' (' and ')$', so one must not match beginning or
Chris@69 9006 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
Chris@69 9007 # as well as any symbol that contains 'd'.
Chris@69 9008 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Chris@69 9009 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
Chris@69 9010 # platforms (ab)use it in PIC code, but their linkers get confused if
Chris@69 9011 # the symbol is explicitly referenced. Since portable code cannot
Chris@69 9012 # rely on this symbol name, it's probably fine to never include it in
Chris@69 9013 # preloaded symbol tables.
Chris@69 9014 # Exclude shared library initialization/finalization symbols.
Chris@69 9015 extract_expsyms_cmds=
Chris@69 9016
Chris@69 9017 case $host_os in
Chris@69 9018 cygwin* | mingw* | pw32* | cegcc*)
Chris@69 9019 # FIXME: the MSVC++ port hasn't been tested in a loooong time
Chris@69 9020 # When not using gcc, we currently assume that we are using
Chris@69 9021 # Microsoft Visual C++.
Chris@69 9022 if test yes != "$GCC"; then
Chris@69 9023 with_gnu_ld=no
Chris@69 9024 fi
Chris@69 9025 ;;
Chris@69 9026 interix*)
Chris@69 9027 # we just hope/assume this is gcc and not c89 (= MSVC++)
Chris@69 9028 with_gnu_ld=yes
Chris@69 9029 ;;
Chris@69 9030 openbsd* | bitrig*)
Chris@69 9031 with_gnu_ld=no
Chris@69 9032 ;;
Chris@69 9033 esac
Chris@69 9034
Chris@69 9035 ld_shlibs=yes
Chris@69 9036
Chris@69 9037 # On some targets, GNU ld is compatible enough with the native linker
Chris@69 9038 # that we're better off using the native interface for both.
Chris@69 9039 lt_use_gnu_ld_interface=no
Chris@69 9040 if test yes = "$with_gnu_ld"; then
Chris@69 9041 case $host_os in
Chris@69 9042 aix*)
Chris@69 9043 # The AIX port of GNU ld has always aspired to compatibility
Chris@69 9044 # with the native linker. However, as the warning in the GNU ld
Chris@69 9045 # block says, versions before 2.19.5* couldn't really create working
Chris@69 9046 # shared libraries, regardless of the interface used.
Chris@69 9047 case `$LD -v 2>&1` in
Chris@69 9048 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
Chris@69 9049 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
Chris@69 9050 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
Chris@69 9051 *)
Chris@69 9052 lt_use_gnu_ld_interface=yes
Chris@69 9053 ;;
Chris@69 9054 esac
Chris@69 9055 ;;
Chris@69 9056 *)
Chris@69 9057 lt_use_gnu_ld_interface=yes
Chris@69 9058 ;;
Chris@69 9059 esac
Chris@69 9060 fi
Chris@69 9061
Chris@69 9062 if test yes = "$lt_use_gnu_ld_interface"; then
Chris@69 9063 # If archive_cmds runs LD, not CC, wlarc should be empty
Chris@69 9064 wlarc='$wl'
Chris@69 9065
Chris@69 9066 # Set some defaults for GNU ld with shared library support. These
Chris@69 9067 # are reset later if shared libraries are not supported. Putting them
Chris@69 9068 # here allows them to be overridden if necessary.
Chris@69 9069 runpath_var=LD_RUN_PATH
Chris@69 9070 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@69 9071 export_dynamic_flag_spec='$wl--export-dynamic'
Chris@69 9072 # ancient GNU ld didn't support --whole-archive et. al.
Chris@69 9073 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
Chris@69 9074 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
Chris@69 9075 else
Chris@69 9076 whole_archive_flag_spec=
Chris@69 9077 fi
Chris@69 9078 supports_anon_versioning=no
Chris@69 9079 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
Chris@69 9080 *GNU\ gold*) supports_anon_versioning=yes ;;
Chris@69 9081 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
Chris@69 9082 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
Chris@69 9083 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
Chris@69 9084 *\ 2.11.*) ;; # other 2.11 versions
Chris@69 9085 *) supports_anon_versioning=yes ;;
Chris@69 9086 esac
Chris@69 9087
Chris@69 9088 # See if GNU ld supports shared libraries.
Chris@69 9089 case $host_os in
Chris@69 9090 aix[3-9]*)
Chris@69 9091 # On AIX/PPC, the GNU linker is very broken
Chris@69 9092 if test ia64 != "$host_cpu"; then
Chris@69 9093 ld_shlibs=no
Chris@69 9094 cat <<_LT_EOF 1>&2
Chris@69 9095
Chris@69 9096 *** Warning: the GNU linker, at least up to release 2.19, is reported
Chris@69 9097 *** to be unable to reliably create shared libraries on AIX.
Chris@69 9098 *** Therefore, libtool is disabling shared libraries support. If you
Chris@69 9099 *** really care for shared libraries, you may want to install binutils
Chris@69 9100 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
Chris@69 9101 *** You will then need to restart the configuration process.
Chris@69 9102
Chris@69 9103 _LT_EOF
Chris@69 9104 fi
Chris@69 9105 ;;
Chris@69 9106
Chris@69 9107 amigaos*)
Chris@69 9108 case $host_cpu in
Chris@69 9109 powerpc)
Chris@69 9110 # see comment about AmigaOS4 .so support
Chris@69 9111 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@69 9112 archive_expsym_cmds=''
Chris@69 9113 ;;
Chris@69 9114 m68k)
Chris@69 9115 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 9116 hardcode_libdir_flag_spec='-L$libdir'
Chris@69 9117 hardcode_minus_L=yes
Chris@69 9118 ;;
Chris@69 9119 esac
Chris@69 9120 ;;
Chris@69 9121
Chris@69 9122 beos*)
Chris@69 9123 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@69 9124 allow_undefined_flag=unsupported
Chris@69 9125 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
Chris@69 9126 # support --undefined. This deserves some investigation. FIXME
Chris@69 9127 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@69 9128 else
Chris@69 9129 ld_shlibs=no
Chris@69 9130 fi
Chris@69 9131 ;;
Chris@69 9132
Chris@69 9133 cygwin* | mingw* | pw32* | cegcc*)
Chris@69 9134 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Chris@69 9135 # as there is no search path for DLLs.
Chris@69 9136 hardcode_libdir_flag_spec='-L$libdir'
Chris@69 9137 export_dynamic_flag_spec='$wl--export-all-symbols'
Chris@69 9138 allow_undefined_flag=unsupported
Chris@69 9139 always_export_symbols=no
Chris@69 9140 enable_shared_with_static_runtimes=yes
Chris@69 9141 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 9142 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Chris@69 9143
Chris@69 9144 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Chris@69 9145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Chris@69 9146 # If the export-symbols file already is a .def file, use it as
Chris@69 9147 # is; otherwise, prepend EXPORTS...
Chris@69 9148 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 9149 cp $export_symbols $output_objdir/$soname.def;
Chris@69 9150 else
Chris@69 9151 echo EXPORTS > $output_objdir/$soname.def;
Chris@69 9152 cat $export_symbols >> $output_objdir/$soname.def;
Chris@69 9153 fi~
Chris@69 9154 $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 9155 else
Chris@69 9156 ld_shlibs=no
Chris@69 9157 fi
Chris@69 9158 ;;
Chris@69 9159
Chris@69 9160 haiku*)
Chris@69 9161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@69 9162 link_all_deplibs=yes
Chris@69 9163 ;;
Chris@69 9164
Chris@69 9165 os2*)
Chris@69 9166 hardcode_libdir_flag_spec='-L$libdir'
Chris@69 9167 hardcode_minus_L=yes
Chris@69 9168 allow_undefined_flag=unsupported
Chris@69 9169 shrext_cmds=.dll
Chris@69 9170 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Chris@69 9171 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Chris@69 9172 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Chris@69 9173 $ECHO EXPORTS >> $output_objdir/$libname.def~
Chris@69 9174 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
Chris@69 9175 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Chris@69 9176 emximp -o $lib $output_objdir/$libname.def'
Chris@69 9177 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Chris@69 9178 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Chris@69 9179 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Chris@69 9180 $ECHO EXPORTS >> $output_objdir/$libname.def~
Chris@69 9181 prefix_cmds="$SED"~
Chris@69 9182 if test EXPORTS = "`$SED 1q $export_symbols`"; then
Chris@69 9183 prefix_cmds="$prefix_cmds -e 1d";
Chris@69 9184 fi~
Chris@69 9185 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
Chris@69 9186 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
Chris@69 9187 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Chris@69 9188 emximp -o $lib $output_objdir/$libname.def'
Chris@69 9189 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
Chris@69 9190 enable_shared_with_static_runtimes=yes
Chris@69 9191 ;;
Chris@69 9192
Chris@69 9193 interix[3-9]*)
Chris@69 9194 hardcode_direct=no
Chris@69 9195 hardcode_shlibpath_var=no
Chris@69 9196 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
Chris@69 9197 export_dynamic_flag_spec='$wl-E'
Chris@69 9198 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
Chris@69 9199 # Instead, shared libraries are loaded at an image base (0x10000000 by
Chris@69 9200 # default) and relocated if they conflict, which is a slow very memory
Chris@69 9201 # consuming and fragmenting process. To avoid this, we pick a random,
Chris@69 9202 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
Chris@69 9203 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Chris@69 9204 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 9205 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 9206 ;;
Chris@69 9207
Chris@69 9208 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Chris@69 9209 tmp_diet=no
Chris@69 9210 if test linux-dietlibc = "$host_os"; then
Chris@69 9211 case $cc_basename in
Chris@69 9212 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
Chris@69 9213 esac
Chris@69 9214 fi
Chris@69 9215 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
Chris@69 9216 && test no = "$tmp_diet"
Chris@69 9217 then
Chris@69 9218 tmp_addflag=' $pic_flag'
Chris@69 9219 tmp_sharedflag='-shared'
Chris@69 9220 case $cc_basename,$host_cpu in
Chris@69 9221 pgcc*) # Portland Group C compiler
Chris@69 9222 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 9223 tmp_addflag=' $pic_flag'
Chris@69 9224 ;;
Chris@69 9225 pgf77* | pgf90* | pgf95* | pgfortran*)
Chris@69 9226 # Portland Group f77 and f90 compilers
Chris@69 9227 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 9228 tmp_addflag=' $pic_flag -Mnomain' ;;
Chris@69 9229 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Chris@69 9230 tmp_addflag=' -i_dynamic' ;;
Chris@69 9231 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
Chris@69 9232 tmp_addflag=' -i_dynamic -nofor_main' ;;
Chris@69 9233 ifc* | ifort*) # Intel Fortran compiler
Chris@69 9234 tmp_addflag=' -nofor_main' ;;
Chris@69 9235 lf95*) # Lahey Fortran 8.1
Chris@69 9236 whole_archive_flag_spec=
Chris@69 9237 tmp_sharedflag='--shared' ;;
Chris@69 9238 nagfor*) # NAGFOR 5.3
Chris@69 9239 tmp_sharedflag='-Wl,-shared' ;;
Chris@69 9240 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Chris@69 9241 tmp_sharedflag='-qmkshrobj'
Chris@69 9242 tmp_addflag= ;;
Chris@69 9243 nvcc*) # Cuda Compiler Driver 2.2
Chris@69 9244 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 9245 compiler_needs_object=yes
Chris@69 9246 ;;
Chris@69 9247 esac
Chris@69 9248 case `$CC -V 2>&1 | sed 5q` in
Chris@69 9249 *Sun\ C*) # Sun C 5.9
Chris@69 9250 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 9251 compiler_needs_object=yes
Chris@69 9252 tmp_sharedflag='-G' ;;
Chris@69 9253 *Sun\ F*) # Sun Fortran 8.3
Chris@69 9254 tmp_sharedflag='-G' ;;
Chris@69 9255 esac
Chris@69 9256 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@69 9257
Chris@69 9258 if test yes = "$supports_anon_versioning"; then
Chris@69 9259 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Chris@69 9260 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@69 9261 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@69 9262 $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 9263 fi
Chris@69 9264
Chris@69 9265 case $cc_basename in
Chris@69 9266 tcc*)
Chris@69 9267 export_dynamic_flag_spec='-rdynamic'
Chris@69 9268 ;;
Chris@69 9269 xlf* | bgf* | bgxlf* | mpixlf*)
Chris@69 9270 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
Chris@69 9271 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Chris@69 9272 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@69 9273 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Chris@69 9274 if test yes = "$supports_anon_versioning"; then
Chris@69 9275 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Chris@69 9276 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Chris@69 9277 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris@69 9278 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Chris@69 9279 fi
Chris@69 9280 ;;
Chris@69 9281 esac
Chris@69 9282 else
Chris@69 9283 ld_shlibs=no
Chris@69 9284 fi
Chris@69 9285 ;;
Chris@69 9286
Chris@69 9287 netbsd*)
Chris@69 9288 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@69 9289 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
Chris@69 9290 wlarc=
Chris@69 9291 else
Chris@69 9292 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@69 9293 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 9294 fi
Chris@69 9295 ;;
Chris@69 9296
Chris@69 9297 solaris*)
Chris@69 9298 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Chris@69 9299 ld_shlibs=no
Chris@69 9300 cat <<_LT_EOF 1>&2
Chris@69 9301
Chris@69 9302 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
Chris@69 9303 *** create shared libraries on Solaris systems. Therefore, libtool
Chris@69 9304 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@69 9305 *** binutils to release 2.9.1 or newer. Another option is to modify
Chris@69 9306 *** your PATH or compiler configuration so that the native linker is
Chris@69 9307 *** used, and then restart.
Chris@69 9308
Chris@69 9309 _LT_EOF
Chris@69 9310 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@69 9311 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@69 9312 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 9313 else
Chris@69 9314 ld_shlibs=no
Chris@69 9315 fi
Chris@69 9316 ;;
Chris@69 9317
Chris@69 9318 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
Chris@69 9319 case `$LD -v 2>&1` in
Chris@69 9320 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
Chris@69 9321 ld_shlibs=no
Chris@69 9322 cat <<_LT_EOF 1>&2
Chris@69 9323
Chris@69 9324 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
Chris@69 9325 *** reliably create shared libraries on SCO systems. Therefore, libtool
Chris@69 9326 *** is disabling shared libraries support. We urge you to upgrade GNU
Chris@69 9327 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
Chris@69 9328 *** your PATH or compiler configuration so that the native linker is
Chris@69 9329 *** used, and then restart.
Chris@69 9330
Chris@69 9331 _LT_EOF
Chris@69 9332 ;;
Chris@69 9333 *)
Chris@69 9334 # For security reasons, it is highly recommended that you always
Chris@69 9335 # use absolute paths for naming shared libraries, and exclude the
Chris@69 9336 # DT_RUNPATH tag from executables and libraries. But doing so
Chris@69 9337 # requires that you compile everything twice, which is a pain.
Chris@69 9338 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@69 9339 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@69 9340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@69 9341 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Chris@69 9342 else
Chris@69 9343 ld_shlibs=no
Chris@69 9344 fi
Chris@69 9345 ;;
Chris@69 9346 esac
Chris@69 9347 ;;
Chris@69 9348
Chris@69 9349 sunos4*)
Chris@69 9350 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@69 9351 wlarc=
Chris@69 9352 hardcode_direct=yes
Chris@69 9353 hardcode_shlibpath_var=no
Chris@69 9354 ;;
Chris@69 9355
Chris@69 9356 *)
Chris@69 9357 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris@69 9358 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@69 9359 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 9360 else
Chris@69 9361 ld_shlibs=no
Chris@69 9362 fi
Chris@69 9363 ;;
Chris@69 9364 esac
Chris@69 9365
Chris@69 9366 if test no = "$ld_shlibs"; then
Chris@69 9367 runpath_var=
Chris@69 9368 hardcode_libdir_flag_spec=
Chris@69 9369 export_dynamic_flag_spec=
Chris@69 9370 whole_archive_flag_spec=
Chris@69 9371 fi
Chris@69 9372 else
Chris@69 9373 # PORTME fill in a description of your system's linker (not GNU ld)
Chris@69 9374 case $host_os in
Chris@69 9375 aix3*)
Chris@69 9376 allow_undefined_flag=unsupported
Chris@69 9377 always_export_symbols=yes
Chris@69 9378 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 9379 # Note: this linker hardcodes the directories in LIBPATH if there
Chris@69 9380 # are no directories specified by -L.
Chris@69 9381 hardcode_minus_L=yes
Chris@69 9382 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
Chris@69 9383 # Neither direct hardcoding nor static linking is supported with a
Chris@69 9384 # broken collect2.
Chris@69 9385 hardcode_direct=unsupported
Chris@69 9386 fi
Chris@69 9387 ;;
Chris@69 9388
Chris@69 9389 aix[4-9]*)
Chris@69 9390 if test ia64 = "$host_cpu"; then
Chris@69 9391 # On IA64, the linker does run time linking by default, so we don't
Chris@69 9392 # have to do anything special.
Chris@69 9393 aix_use_runtimelinking=no
Chris@69 9394 exp_sym_flag='-Bexport'
Chris@69 9395 no_entry_flag=
Chris@69 9396 else
Chris@69 9397 # If we're using GNU nm, then we don't want the "-C" option.
Chris@69 9398 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
Chris@69 9399 # Without the "-l" option, or with the "-B" option, AIX nm treats
Chris@69 9400 # weak defined symbols like other global defined symbols, whereas
Chris@69 9401 # GNU nm marks them as "W".
Chris@69 9402 # While the 'weak' keyword is ignored in the Export File, we need
Chris@69 9403 # it in the Import File for the 'aix-soname' feature, so we have
Chris@69 9404 # to replace the "-B" option with "-P" for AIX nm.
Chris@69 9405 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Chris@69 9406 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 9407 else
Chris@69 9408 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 9409 fi
Chris@69 9410 aix_use_runtimelinking=no
Chris@69 9411
Chris@69 9412 # Test if we are trying to use run time linking or normal
Chris@69 9413 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Chris@69 9414 # have runtime linking enabled, and use it for executables.
Chris@69 9415 # For shared libraries, we enable/disable runtime linking
Chris@69 9416 # depending on the kind of the shared library created -
Chris@69 9417 # when "with_aix_soname,aix_use_runtimelinking" is:
Chris@69 9418 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
Chris@69 9419 # "aix,yes" lib.so shared, rtl:yes, for executables
Chris@69 9420 # lib.a static archive
Chris@69 9421 # "both,no" lib.so.V(shr.o) shared, rtl:yes
Chris@69 9422 # lib.a(lib.so.V) shared, rtl:no, for executables
Chris@69 9423 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
Chris@69 9424 # lib.a(lib.so.V) shared, rtl:no
Chris@69 9425 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
Chris@69 9426 # lib.a static archive
Chris@69 9427 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Chris@69 9428 for ld_flag in $LDFLAGS; do
Chris@69 9429 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
Chris@69 9430 aix_use_runtimelinking=yes
Chris@69 9431 break
Chris@69 9432 fi
Chris@69 9433 done
Chris@69 9434 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
Chris@69 9435 # With aix-soname=svr4, we create the lib.so.V shared archives only,
Chris@69 9436 # so we don't have lib.a shared libs to link our executables.
Chris@69 9437 # We have to force runtime linking in this case.
Chris@69 9438 aix_use_runtimelinking=yes
Chris@69 9439 LDFLAGS="$LDFLAGS -Wl,-brtl"
Chris@69 9440 fi
Chris@69 9441 ;;
Chris@69 9442 esac
Chris@69 9443
Chris@69 9444 exp_sym_flag='-bexport'
Chris@69 9445 no_entry_flag='-bnoentry'
Chris@69 9446 fi
Chris@69 9447
Chris@69 9448 # When large executables or shared objects are built, AIX ld can
Chris@69 9449 # have problems creating the table of contents. If linking a library
Chris@69 9450 # or program results in "error TOC overflow" add -mminimal-toc to
Chris@69 9451 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
Chris@69 9452 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
Chris@69 9453
Chris@69 9454 archive_cmds=''
Chris@69 9455 hardcode_direct=yes
Chris@69 9456 hardcode_direct_absolute=yes
Chris@69 9457 hardcode_libdir_separator=':'
Chris@69 9458 link_all_deplibs=yes
Chris@69 9459 file_list_spec='$wl-f,'
Chris@69 9460 case $with_aix_soname,$aix_use_runtimelinking in
Chris@69 9461 aix,*) ;; # traditional, no import file
Chris@69 9462 svr4,* | *,yes) # use import file
Chris@69 9463 # The Import File defines what to hardcode.
Chris@69 9464 hardcode_direct=no
Chris@69 9465 hardcode_direct_absolute=no
Chris@69 9466 ;;
Chris@69 9467 esac
Chris@69 9468
Chris@69 9469 if test yes = "$GCC"; then
Chris@69 9470 case $host_os in aix4.[012]|aix4.[012].*)
Chris@69 9471 # We only want to do this on AIX 4.2 and lower, the check
Chris@69 9472 # below for broken collect2 doesn't work under 4.3+
Chris@69 9473 collect2name=`$CC -print-prog-name=collect2`
Chris@69 9474 if test -f "$collect2name" &&
Chris@69 9475 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Chris@69 9476 then
Chris@69 9477 # We have reworked collect2
Chris@69 9478 :
Chris@69 9479 else
Chris@69 9480 # We have old collect2
Chris@69 9481 hardcode_direct=unsupported
Chris@69 9482 # It fails to find uninstalled libraries when the uninstalled
Chris@69 9483 # path is not listed in the libpath. Setting hardcode_minus_L
Chris@69 9484 # to unsupported forces relinking
Chris@69 9485 hardcode_minus_L=yes
Chris@69 9486 hardcode_libdir_flag_spec='-L$libdir'
Chris@69 9487 hardcode_libdir_separator=
Chris@69 9488 fi
Chris@69 9489 ;;
Chris@69 9490 esac
Chris@69 9491 shared_flag='-shared'
Chris@69 9492 if test yes = "$aix_use_runtimelinking"; then
Chris@69 9493 shared_flag="$shared_flag "'$wl-G'
Chris@69 9494 fi
Chris@69 9495 # Need to ensure runtime linking is disabled for the traditional
Chris@69 9496 # shared library, or the linker may eventually find shared libraries
Chris@69 9497 # /with/ Import File - we do not want to mix them.
Chris@69 9498 shared_flag_aix='-shared'
Chris@69 9499 shared_flag_svr4='-shared $wl-G'
Chris@69 9500 else
Chris@69 9501 # not using gcc
Chris@69 9502 if test ia64 = "$host_cpu"; then
Chris@69 9503 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
Chris@69 9504 # chokes on -Wl,-G. The following line is correct:
Chris@69 9505 shared_flag='-G'
Chris@69 9506 else
Chris@69 9507 if test yes = "$aix_use_runtimelinking"; then
Chris@69 9508 shared_flag='$wl-G'
Chris@69 9509 else
Chris@69 9510 shared_flag='$wl-bM:SRE'
Chris@69 9511 fi
Chris@69 9512 shared_flag_aix='$wl-bM:SRE'
Chris@69 9513 shared_flag_svr4='$wl-G'
Chris@69 9514 fi
Chris@69 9515 fi
Chris@69 9516
Chris@69 9517 export_dynamic_flag_spec='$wl-bexpall'
Chris@69 9518 # It seems that -bexpall does not export symbols beginning with
Chris@69 9519 # underscore (_), so it is better to generate a list of symbols to export.
Chris@69 9520 always_export_symbols=yes
Chris@69 9521 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
Chris@69 9522 # Warning - without using the other runtime loading flags (-brtl),
Chris@69 9523 # -berok will link without error, but may produce a broken library.
Chris@69 9524 allow_undefined_flag='-berok'
Chris@69 9525 # Determine the default libpath from the value encoded in an
Chris@69 9526 # empty executable.
Chris@69 9527 if test set = "${lt_cv_aix_libpath+set}"; then
Chris@69 9528 aix_libpath=$lt_cv_aix_libpath
Chris@69 9529 else
Chris@69 9530 if ${lt_cv_aix_libpath_+:} false; then :
Chris@69 9531 $as_echo_n "(cached) " >&6
Chris@69 9532 else
Chris@69 9533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 9534 /* end confdefs.h. */
Chris@69 9535
Chris@69 9536 int
Chris@69 9537 main ()
Chris@69 9538 {
Chris@69 9539
Chris@69 9540 ;
Chris@69 9541 return 0;
Chris@69 9542 }
Chris@69 9543 _ACEOF
Chris@69 9544 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 9545
Chris@69 9546 lt_aix_libpath_sed='
Chris@69 9547 /Import File Strings/,/^$/ {
Chris@69 9548 /^0/ {
Chris@69 9549 s/^0 *\([^ ]*\) *$/\1/
Chris@69 9550 p
Chris@69 9551 }
Chris@69 9552 }'
Chris@69 9553 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@69 9554 # Check for a 64-bit object if we didn't find anything.
Chris@69 9555 if test -z "$lt_cv_aix_libpath_"; then
Chris@69 9556 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@69 9557 fi
Chris@69 9558 fi
Chris@69 9559 rm -f core conftest.err conftest.$ac_objext \
Chris@69 9560 conftest$ac_exeext conftest.$ac_ext
Chris@69 9561 if test -z "$lt_cv_aix_libpath_"; then
Chris@69 9562 lt_cv_aix_libpath_=/usr/lib:/lib
Chris@69 9563 fi
Chris@69 9564
Chris@69 9565 fi
Chris@69 9566
Chris@69 9567 aix_libpath=$lt_cv_aix_libpath_
Chris@69 9568 fi
Chris@69 9569
Chris@69 9570 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
Chris@69 9571 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 9572 else
Chris@69 9573 if test ia64 = "$host_cpu"; then
Chris@69 9574 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
Chris@69 9575 allow_undefined_flag="-z nodefs"
Chris@69 9576 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 9577 else
Chris@69 9578 # Determine the default libpath from the value encoded in an
Chris@69 9579 # empty executable.
Chris@69 9580 if test set = "${lt_cv_aix_libpath+set}"; then
Chris@69 9581 aix_libpath=$lt_cv_aix_libpath
Chris@69 9582 else
Chris@69 9583 if ${lt_cv_aix_libpath_+:} false; then :
Chris@69 9584 $as_echo_n "(cached) " >&6
Chris@69 9585 else
Chris@69 9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 9587 /* end confdefs.h. */
Chris@69 9588
Chris@69 9589 int
Chris@69 9590 main ()
Chris@69 9591 {
Chris@69 9592
Chris@69 9593 ;
Chris@69 9594 return 0;
Chris@69 9595 }
Chris@69 9596 _ACEOF
Chris@69 9597 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 9598
Chris@69 9599 lt_aix_libpath_sed='
Chris@69 9600 /Import File Strings/,/^$/ {
Chris@69 9601 /^0/ {
Chris@69 9602 s/^0 *\([^ ]*\) *$/\1/
Chris@69 9603 p
Chris@69 9604 }
Chris@69 9605 }'
Chris@69 9606 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@69 9607 # Check for a 64-bit object if we didn't find anything.
Chris@69 9608 if test -z "$lt_cv_aix_libpath_"; then
Chris@69 9609 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Chris@69 9610 fi
Chris@69 9611 fi
Chris@69 9612 rm -f core conftest.err conftest.$ac_objext \
Chris@69 9613 conftest$ac_exeext conftest.$ac_ext
Chris@69 9614 if test -z "$lt_cv_aix_libpath_"; then
Chris@69 9615 lt_cv_aix_libpath_=/usr/lib:/lib
Chris@69 9616 fi
Chris@69 9617
Chris@69 9618 fi
Chris@69 9619
Chris@69 9620 aix_libpath=$lt_cv_aix_libpath_
Chris@69 9621 fi
Chris@69 9622
Chris@69 9623 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
Chris@69 9624 # Warning - without using the other run time loading flags,
Chris@69 9625 # -berok will link without error, but may produce a broken library.
Chris@69 9626 no_undefined_flag=' $wl-bernotok'
Chris@69 9627 allow_undefined_flag=' $wl-berok'
Chris@69 9628 if test yes = "$with_gnu_ld"; then
Chris@69 9629 # We only use this code for GNU lds that support --whole-archive.
Chris@69 9630 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
Chris@69 9631 else
Chris@69 9632 # Exported symbols can be pulled into shared objects from archives
Chris@69 9633 whole_archive_flag_spec='$convenience'
Chris@69 9634 fi
Chris@69 9635 archive_cmds_need_lc=yes
Chris@69 9636 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
Chris@69 9637 # -brtl affects multiple linker settings, -berok does not and is overridden later
Chris@69 9638 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
Chris@69 9639 if test svr4 != "$with_aix_soname"; then
Chris@69 9640 # This is similar to how AIX traditionally builds its shared libraries.
Chris@69 9641 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 9642 fi
Chris@69 9643 if test aix != "$with_aix_soname"; then
Chris@69 9644 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 9645 else
Chris@69 9646 # used by -dlpreopen to get the symbols
Chris@69 9647 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
Chris@69 9648 fi
Chris@69 9649 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
Chris@69 9650 fi
Chris@69 9651 fi
Chris@69 9652 ;;
Chris@69 9653
Chris@69 9654 amigaos*)
Chris@69 9655 case $host_cpu in
Chris@69 9656 powerpc)
Chris@69 9657 # see comment about AmigaOS4 .so support
Chris@69 9658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Chris@69 9659 archive_expsym_cmds=''
Chris@69 9660 ;;
Chris@69 9661 m68k)
Chris@69 9662 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 9663 hardcode_libdir_flag_spec='-L$libdir'
Chris@69 9664 hardcode_minus_L=yes
Chris@69 9665 ;;
Chris@69 9666 esac
Chris@69 9667 ;;
Chris@69 9668
Chris@69 9669 bsdi[45]*)
Chris@69 9670 export_dynamic_flag_spec=-rdynamic
Chris@69 9671 ;;
Chris@69 9672
Chris@69 9673 cygwin* | mingw* | pw32* | cegcc*)
Chris@69 9674 # When not using gcc, we currently assume that we are using
Chris@69 9675 # Microsoft Visual C++.
Chris@69 9676 # hardcode_libdir_flag_spec is actually meaningless, as there is
Chris@69 9677 # no search path for DLLs.
Chris@69 9678 case $cc_basename in
Chris@69 9679 cl*)
Chris@69 9680 # Native MSVC
Chris@69 9681 hardcode_libdir_flag_spec=' '
Chris@69 9682 allow_undefined_flag=unsupported
Chris@69 9683 always_export_symbols=yes
Chris@69 9684 file_list_spec='@'
Chris@69 9685 # Tell ltmain to make .lib files, not .a files.
Chris@69 9686 libext=lib
Chris@69 9687 # Tell ltmain to make .dll files, not .so files.
Chris@69 9688 shrext_cmds=.dll
Chris@69 9689 # FIXME: Setting linknames here is a bad hack.
Chris@69 9690 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
Chris@69 9691 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 9692 cp "$export_symbols" "$output_objdir/$soname.def";
Chris@69 9693 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
Chris@69 9694 else
Chris@69 9695 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
Chris@69 9696 fi~
Chris@69 9697 $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 9698 linknames='
Chris@69 9699 # The linker will not automatically build a static lib if we build a DLL.
Chris@69 9700 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
Chris@69 9701 enable_shared_with_static_runtimes=yes
Chris@69 9702 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
Chris@69 9703 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 9704 # Don't use ranlib
Chris@69 9705 old_postinstall_cmds='chmod 644 $oldlib'
Chris@69 9706 postlink_cmds='lt_outputfile="@OUTPUT@"~
Chris@69 9707 lt_tool_outputfile="@TOOL_OUTPUT@"~
Chris@69 9708 case $lt_outputfile in
Chris@69 9709 *.exe|*.EXE) ;;
Chris@69 9710 *)
Chris@69 9711 lt_outputfile=$lt_outputfile.exe
Chris@69 9712 lt_tool_outputfile=$lt_tool_outputfile.exe
Chris@69 9713 ;;
Chris@69 9714 esac~
Chris@69 9715 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
Chris@69 9716 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
Chris@69 9717 $RM "$lt_outputfile.manifest";
Chris@69 9718 fi'
Chris@69 9719 ;;
Chris@69 9720 *)
Chris@69 9721 # Assume MSVC wrapper
Chris@69 9722 hardcode_libdir_flag_spec=' '
Chris@69 9723 allow_undefined_flag=unsupported
Chris@69 9724 # Tell ltmain to make .lib files, not .a files.
Chris@69 9725 libext=lib
Chris@69 9726 # Tell ltmain to make .dll files, not .so files.
Chris@69 9727 shrext_cmds=.dll
Chris@69 9728 # FIXME: Setting linknames here is a bad hack.
Chris@69 9729 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
Chris@69 9730 # The linker will automatically build a .lib file if we build a DLL.
Chris@69 9731 old_archive_from_new_cmds='true'
Chris@69 9732 # FIXME: Should let the user specify the lib program.
Chris@69 9733 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
Chris@69 9734 enable_shared_with_static_runtimes=yes
Chris@69 9735 ;;
Chris@69 9736 esac
Chris@69 9737 ;;
Chris@69 9738
Chris@69 9739 darwin* | rhapsody*)
Chris@69 9740
Chris@69 9741
Chris@69 9742 archive_cmds_need_lc=no
Chris@69 9743 hardcode_direct=no
Chris@69 9744 hardcode_automatic=yes
Chris@69 9745 hardcode_shlibpath_var=unsupported
Chris@69 9746 if test yes = "$lt_cv_ld_force_load"; then
Chris@69 9747 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 9748
Chris@69 9749 else
Chris@69 9750 whole_archive_flag_spec=''
Chris@69 9751 fi
Chris@69 9752 link_all_deplibs=yes
Chris@69 9753 allow_undefined_flag=$_lt_dar_allow_undefined
Chris@69 9754 case $cc_basename in
Chris@69 9755 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
Chris@69 9756 *) _lt_dar_can_shared=$GCC ;;
Chris@69 9757 esac
Chris@69 9758 if test yes = "$_lt_dar_can_shared"; then
Chris@69 9759 output_verbose_link_cmd=func_echo_all
Chris@69 9760 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 9761 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
Chris@69 9762 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 9763 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 9764
Chris@69 9765 else
Chris@69 9766 ld_shlibs=no
Chris@69 9767 fi
Chris@69 9768
Chris@69 9769 ;;
Chris@69 9770
Chris@69 9771 dgux*)
Chris@69 9772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@69 9773 hardcode_libdir_flag_spec='-L$libdir'
Chris@69 9774 hardcode_shlibpath_var=no
Chris@69 9775 ;;
Chris@69 9776
Chris@69 9777 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
Chris@69 9778 # support. Future versions do this automatically, but an explicit c++rt0.o
Chris@69 9779 # does not break anything, and helps significantly (at the cost of a little
Chris@69 9780 # extra space).
Chris@69 9781 freebsd2.2*)
Chris@69 9782 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
Chris@69 9783 hardcode_libdir_flag_spec='-R$libdir'
Chris@69 9784 hardcode_direct=yes
Chris@69 9785 hardcode_shlibpath_var=no
Chris@69 9786 ;;
Chris@69 9787
Chris@69 9788 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Chris@69 9789 freebsd2.*)
Chris@69 9790 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Chris@69 9791 hardcode_direct=yes
Chris@69 9792 hardcode_minus_L=yes
Chris@69 9793 hardcode_shlibpath_var=no
Chris@69 9794 ;;
Chris@69 9795
Chris@69 9796 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Chris@69 9797 freebsd* | dragonfly*)
Chris@69 9798 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 9799 hardcode_libdir_flag_spec='-R$libdir'
Chris@69 9800 hardcode_direct=yes
Chris@69 9801 hardcode_shlibpath_var=no
Chris@69 9802 ;;
Chris@69 9803
Chris@69 9804 hpux9*)
Chris@69 9805 if test yes = "$GCC"; then
Chris@69 9806 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 9807 else
Chris@69 9808 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 9809 fi
Chris@69 9810 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Chris@69 9811 hardcode_libdir_separator=:
Chris@69 9812 hardcode_direct=yes
Chris@69 9813
Chris@69 9814 # hardcode_minus_L: Not really in the search PATH,
Chris@69 9815 # but as the default location of the library.
Chris@69 9816 hardcode_minus_L=yes
Chris@69 9817 export_dynamic_flag_spec='$wl-E'
Chris@69 9818 ;;
Chris@69 9819
Chris@69 9820 hpux10*)
Chris@69 9821 if test yes,no = "$GCC,$with_gnu_ld"; then
Chris@69 9822 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 9823 else
Chris@69 9824 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Chris@69 9825 fi
Chris@69 9826 if test no = "$with_gnu_ld"; then
Chris@69 9827 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Chris@69 9828 hardcode_libdir_separator=:
Chris@69 9829 hardcode_direct=yes
Chris@69 9830 hardcode_direct_absolute=yes
Chris@69 9831 export_dynamic_flag_spec='$wl-E'
Chris@69 9832 # hardcode_minus_L: Not really in the search PATH,
Chris@69 9833 # but as the default location of the library.
Chris@69 9834 hardcode_minus_L=yes
Chris@69 9835 fi
Chris@69 9836 ;;
Chris@69 9837
Chris@69 9838 hpux11*)
Chris@69 9839 if test yes,no = "$GCC,$with_gnu_ld"; then
Chris@69 9840 case $host_cpu in
Chris@69 9841 hppa*64*)
Chris@69 9842 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 9843 ;;
Chris@69 9844 ia64*)
Chris@69 9845 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 9846 ;;
Chris@69 9847 *)
Chris@69 9848 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 9849 ;;
Chris@69 9850 esac
Chris@69 9851 else
Chris@69 9852 case $host_cpu in
Chris@69 9853 hppa*64*)
Chris@69 9854 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 9855 ;;
Chris@69 9856 ia64*)
Chris@69 9857 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 9858 ;;
Chris@69 9859 *)
Chris@69 9860
Chris@69 9861 # Older versions of the 11.00 compiler do not understand -b yet
Chris@69 9862 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
Chris@69 9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
Chris@69 9864 $as_echo_n "checking if $CC understands -b... " >&6; }
Chris@69 9865 if ${lt_cv_prog_compiler__b+:} false; then :
Chris@69 9866 $as_echo_n "(cached) " >&6
Chris@69 9867 else
Chris@69 9868 lt_cv_prog_compiler__b=no
Chris@69 9869 save_LDFLAGS=$LDFLAGS
Chris@69 9870 LDFLAGS="$LDFLAGS -b"
Chris@69 9871 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Chris@69 9872 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Chris@69 9873 # The linker can only warn and ignore the option if not recognized
Chris@69 9874 # So say no if there are warnings
Chris@69 9875 if test -s conftest.err; then
Chris@69 9876 # Append any errors to the config.log.
Chris@69 9877 cat conftest.err 1>&5
Chris@69 9878 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Chris@69 9879 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Chris@69 9880 if diff conftest.exp conftest.er2 >/dev/null; then
Chris@69 9881 lt_cv_prog_compiler__b=yes
Chris@69 9882 fi
Chris@69 9883 else
Chris@69 9884 lt_cv_prog_compiler__b=yes
Chris@69 9885 fi
Chris@69 9886 fi
Chris@69 9887 $RM -r conftest*
Chris@69 9888 LDFLAGS=$save_LDFLAGS
Chris@69 9889
Chris@69 9890 fi
Chris@69 9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
Chris@69 9892 $as_echo "$lt_cv_prog_compiler__b" >&6; }
Chris@69 9893
Chris@69 9894 if test yes = "$lt_cv_prog_compiler__b"; then
Chris@69 9895 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 9896 else
Chris@69 9897 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Chris@69 9898 fi
Chris@69 9899
Chris@69 9900 ;;
Chris@69 9901 esac
Chris@69 9902 fi
Chris@69 9903 if test no = "$with_gnu_ld"; then
Chris@69 9904 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Chris@69 9905 hardcode_libdir_separator=:
Chris@69 9906
Chris@69 9907 case $host_cpu in
Chris@69 9908 hppa*64*|ia64*)
Chris@69 9909 hardcode_direct=no
Chris@69 9910 hardcode_shlibpath_var=no
Chris@69 9911 ;;
Chris@69 9912 *)
Chris@69 9913 hardcode_direct=yes
Chris@69 9914 hardcode_direct_absolute=yes
Chris@69 9915 export_dynamic_flag_spec='$wl-E'
Chris@69 9916
Chris@69 9917 # hardcode_minus_L: Not really in the search PATH,
Chris@69 9918 # but as the default location of the library.
Chris@69 9919 hardcode_minus_L=yes
Chris@69 9920 ;;
Chris@69 9921 esac
Chris@69 9922 fi
Chris@69 9923 ;;
Chris@69 9924
Chris@69 9925 irix5* | irix6* | nonstopux*)
Chris@69 9926 if test yes = "$GCC"; then
Chris@69 9927 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 9928 # Try to use the -exported_symbol ld option, if it does not
Chris@69 9929 # work, assume that -exports_file does not work either and
Chris@69 9930 # implicitly export all symbols.
Chris@69 9931 # This should be the same for all languages, so no per-tag cache variable.
Chris@69 9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
Chris@69 9933 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
Chris@69 9934 if ${lt_cv_irix_exported_symbol+:} false; then :
Chris@69 9935 $as_echo_n "(cached) " >&6
Chris@69 9936 else
Chris@69 9937 save_LDFLAGS=$LDFLAGS
Chris@69 9938 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
Chris@69 9939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 9940 /* end confdefs.h. */
Chris@69 9941 int foo (void) { return 0; }
Chris@69 9942 _ACEOF
Chris@69 9943 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 9944 lt_cv_irix_exported_symbol=yes
Chris@69 9945 else
Chris@69 9946 lt_cv_irix_exported_symbol=no
Chris@69 9947 fi
Chris@69 9948 rm -f core conftest.err conftest.$ac_objext \
Chris@69 9949 conftest$ac_exeext conftest.$ac_ext
Chris@69 9950 LDFLAGS=$save_LDFLAGS
Chris@69 9951 fi
Chris@69 9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
Chris@69 9953 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
Chris@69 9954 if test yes = "$lt_cv_irix_exported_symbol"; then
Chris@69 9955 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 9956 fi
Chris@69 9957 else
Chris@69 9958 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 9959 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 9960 fi
Chris@69 9961 archive_cmds_need_lc='no'
Chris@69 9962 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@69 9963 hardcode_libdir_separator=:
Chris@69 9964 inherit_rpath=yes
Chris@69 9965 link_all_deplibs=yes
Chris@69 9966 ;;
Chris@69 9967
Chris@69 9968 linux*)
Chris@69 9969 case $cc_basename in
Chris@69 9970 tcc*)
Chris@69 9971 # Fabrice Bellard et al's Tiny C Compiler
Chris@69 9972 ld_shlibs=yes
Chris@69 9973 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 9974 ;;
Chris@69 9975 esac
Chris@69 9976 ;;
Chris@69 9977
Chris@69 9978 netbsd*)
Chris@69 9979 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@69 9980 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
Chris@69 9981 else
Chris@69 9982 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
Chris@69 9983 fi
Chris@69 9984 hardcode_libdir_flag_spec='-R$libdir'
Chris@69 9985 hardcode_direct=yes
Chris@69 9986 hardcode_shlibpath_var=no
Chris@69 9987 ;;
Chris@69 9988
Chris@69 9989 newsos6)
Chris@69 9990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@69 9991 hardcode_direct=yes
Chris@69 9992 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@69 9993 hardcode_libdir_separator=:
Chris@69 9994 hardcode_shlibpath_var=no
Chris@69 9995 ;;
Chris@69 9996
Chris@69 9997 *nto* | *qnx*)
Chris@69 9998 ;;
Chris@69 9999
Chris@69 10000 openbsd* | bitrig*)
Chris@69 10001 if test -f /usr/libexec/ld.so; then
Chris@69 10002 hardcode_direct=yes
Chris@69 10003 hardcode_shlibpath_var=no
Chris@69 10004 hardcode_direct_absolute=yes
Chris@69 10005 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Chris@69 10006 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10007 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
Chris@69 10008 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
Chris@69 10009 export_dynamic_flag_spec='$wl-E'
Chris@69 10010 else
Chris@69 10011 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10012 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
Chris@69 10013 fi
Chris@69 10014 else
Chris@69 10015 ld_shlibs=no
Chris@69 10016 fi
Chris@69 10017 ;;
Chris@69 10018
Chris@69 10019 os2*)
Chris@69 10020 hardcode_libdir_flag_spec='-L$libdir'
Chris@69 10021 hardcode_minus_L=yes
Chris@69 10022 allow_undefined_flag=unsupported
Chris@69 10023 shrext_cmds=.dll
Chris@69 10024 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Chris@69 10025 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Chris@69 10026 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Chris@69 10027 $ECHO EXPORTS >> $output_objdir/$libname.def~
Chris@69 10028 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
Chris@69 10029 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Chris@69 10030 emximp -o $lib $output_objdir/$libname.def'
Chris@69 10031 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Chris@69 10032 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Chris@69 10033 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Chris@69 10034 $ECHO EXPORTS >> $output_objdir/$libname.def~
Chris@69 10035 prefix_cmds="$SED"~
Chris@69 10036 if test EXPORTS = "`$SED 1q $export_symbols`"; then
Chris@69 10037 prefix_cmds="$prefix_cmds -e 1d";
Chris@69 10038 fi~
Chris@69 10039 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
Chris@69 10040 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
Chris@69 10041 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Chris@69 10042 emximp -o $lib $output_objdir/$libname.def'
Chris@69 10043 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
Chris@69 10044 enable_shared_with_static_runtimes=yes
Chris@69 10045 ;;
Chris@69 10046
Chris@69 10047 osf3*)
Chris@69 10048 if test yes = "$GCC"; then
Chris@69 10049 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
Chris@69 10050 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 10051 else
Chris@69 10052 allow_undefined_flag=' -expect_unresolved \*'
Chris@69 10053 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 10054 fi
Chris@69 10055 archive_cmds_need_lc='no'
Chris@69 10056 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@69 10057 hardcode_libdir_separator=:
Chris@69 10058 ;;
Chris@69 10059
Chris@69 10060 osf4* | osf5*) # as osf3* with the addition of -msym flag
Chris@69 10061 if test yes = "$GCC"; then
Chris@69 10062 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
Chris@69 10063 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 10064 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Chris@69 10065 else
Chris@69 10066 allow_undefined_flag=' -expect_unresolved \*'
Chris@69 10067 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 10068 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 10069 $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 10070
Chris@69 10071 # Both c and cxx compiler support -rpath directly
Chris@69 10072 hardcode_libdir_flag_spec='-rpath $libdir'
Chris@69 10073 fi
Chris@69 10074 archive_cmds_need_lc='no'
Chris@69 10075 hardcode_libdir_separator=:
Chris@69 10076 ;;
Chris@69 10077
Chris@69 10078 solaris*)
Chris@69 10079 no_undefined_flag=' -z defs'
Chris@69 10080 if test yes = "$GCC"; then
Chris@69 10081 wlarc='$wl'
Chris@69 10082 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10083 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@69 10084 $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 10085 else
Chris@69 10086 case `$CC -V 2>&1` in
Chris@69 10087 *"Compilers 5.0"*)
Chris@69 10088 wlarc=''
Chris@69 10089 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@69 10090 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@69 10091 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
Chris@69 10092 ;;
Chris@69 10093 *)
Chris@69 10094 wlarc='$wl'
Chris@69 10095 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10096 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris@69 10097 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Chris@69 10098 ;;
Chris@69 10099 esac
Chris@69 10100 fi
Chris@69 10101 hardcode_libdir_flag_spec='-R$libdir'
Chris@69 10102 hardcode_shlibpath_var=no
Chris@69 10103 case $host_os in
Chris@69 10104 solaris2.[0-5] | solaris2.[0-5].*) ;;
Chris@69 10105 *)
Chris@69 10106 # The compiler driver will combine and reorder linker options,
Chris@69 10107 # but understands '-z linker_flag'. GCC discards it without '$wl',
Chris@69 10108 # but is careful enough not to reorder.
Chris@69 10109 # Supported since Solaris 2.6 (maybe 2.5.1?)
Chris@69 10110 if test yes = "$GCC"; then
Chris@69 10111 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
Chris@69 10112 else
Chris@69 10113 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
Chris@69 10114 fi
Chris@69 10115 ;;
Chris@69 10116 esac
Chris@69 10117 link_all_deplibs=yes
Chris@69 10118 ;;
Chris@69 10119
Chris@69 10120 sunos4*)
Chris@69 10121 if test sequent = "$host_vendor"; then
Chris@69 10122 # Use $CC to link under sequent, because it throws in some extra .o
Chris@69 10123 # files that make .init and .fini sections work.
Chris@69 10124 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10125 else
Chris@69 10126 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
Chris@69 10127 fi
Chris@69 10128 hardcode_libdir_flag_spec='-L$libdir'
Chris@69 10129 hardcode_direct=yes
Chris@69 10130 hardcode_minus_L=yes
Chris@69 10131 hardcode_shlibpath_var=no
Chris@69 10132 ;;
Chris@69 10133
Chris@69 10134 sysv4)
Chris@69 10135 case $host_vendor in
Chris@69 10136 sni)
Chris@69 10137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@69 10138 hardcode_direct=yes # is this really true???
Chris@69 10139 ;;
Chris@69 10140 siemens)
Chris@69 10141 ## LD is ld it makes a PLAMLIB
Chris@69 10142 ## CC just makes a GrossModule.
Chris@69 10143 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
Chris@69 10144 reload_cmds='$CC -r -o $output$reload_objs'
Chris@69 10145 hardcode_direct=no
Chris@69 10146 ;;
Chris@69 10147 motorola)
Chris@69 10148 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@69 10149 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
Chris@69 10150 ;;
Chris@69 10151 esac
Chris@69 10152 runpath_var='LD_RUN_PATH'
Chris@69 10153 hardcode_shlibpath_var=no
Chris@69 10154 ;;
Chris@69 10155
Chris@69 10156 sysv4.3*)
Chris@69 10157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@69 10158 hardcode_shlibpath_var=no
Chris@69 10159 export_dynamic_flag_spec='-Bexport'
Chris@69 10160 ;;
Chris@69 10161
Chris@69 10162 sysv4*MP*)
Chris@69 10163 if test -d /usr/nec; then
Chris@69 10164 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@69 10165 hardcode_shlibpath_var=no
Chris@69 10166 runpath_var=LD_RUN_PATH
Chris@69 10167 hardcode_runpath_var=yes
Chris@69 10168 ld_shlibs=yes
Chris@69 10169 fi
Chris@69 10170 ;;
Chris@69 10171
Chris@69 10172 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Chris@69 10173 no_undefined_flag='$wl-z,text'
Chris@69 10174 archive_cmds_need_lc=no
Chris@69 10175 hardcode_shlibpath_var=no
Chris@69 10176 runpath_var='LD_RUN_PATH'
Chris@69 10177
Chris@69 10178 if test yes = "$GCC"; then
Chris@69 10179 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10180 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10181 else
Chris@69 10182 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10183 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10184 fi
Chris@69 10185 ;;
Chris@69 10186
Chris@69 10187 sysv5* | sco3.2v5* | sco5v6*)
Chris@69 10188 # Note: We CANNOT use -z defs as we might desire, because we do not
Chris@69 10189 # link with -lc, and that would cause any symbols used from libc to
Chris@69 10190 # always be unresolved, which means just about no library would
Chris@69 10191 # ever link correctly. If we're not using GNU ld we use -z text
Chris@69 10192 # though, which does catch some bad symbols but isn't as heavy-handed
Chris@69 10193 # as -z defs.
Chris@69 10194 no_undefined_flag='$wl-z,text'
Chris@69 10195 allow_undefined_flag='$wl-z,nodefs'
Chris@69 10196 archive_cmds_need_lc=no
Chris@69 10197 hardcode_shlibpath_var=no
Chris@69 10198 hardcode_libdir_flag_spec='$wl-R,$libdir'
Chris@69 10199 hardcode_libdir_separator=':'
Chris@69 10200 link_all_deplibs=yes
Chris@69 10201 export_dynamic_flag_spec='$wl-Bexport'
Chris@69 10202 runpath_var='LD_RUN_PATH'
Chris@69 10203
Chris@69 10204 if test yes = "$GCC"; then
Chris@69 10205 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10206 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10207 else
Chris@69 10208 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10209 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Chris@69 10210 fi
Chris@69 10211 ;;
Chris@69 10212
Chris@69 10213 uts4*)
Chris@69 10214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Chris@69 10215 hardcode_libdir_flag_spec='-L$libdir'
Chris@69 10216 hardcode_shlibpath_var=no
Chris@69 10217 ;;
Chris@69 10218
Chris@69 10219 *)
Chris@69 10220 ld_shlibs=no
Chris@69 10221 ;;
Chris@69 10222 esac
Chris@69 10223
Chris@69 10224 if test sni = "$host_vendor"; then
Chris@69 10225 case $host in
Chris@69 10226 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Chris@69 10227 export_dynamic_flag_spec='$wl-Blargedynsym'
Chris@69 10228 ;;
Chris@69 10229 esac
Chris@69 10230 fi
Chris@69 10231 fi
Chris@69 10232
Chris@69 10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
Chris@69 10234 $as_echo "$ld_shlibs" >&6; }
Chris@69 10235 test no = "$ld_shlibs" && can_build_shared=no
Chris@69 10236
Chris@69 10237 with_gnu_ld=$with_gnu_ld
Chris@69 10238
Chris@69 10239
Chris@69 10240
Chris@69 10241
Chris@69 10242
Chris@69 10243
Chris@69 10244
Chris@69 10245
Chris@69 10246
Chris@69 10247
Chris@69 10248
Chris@69 10249
Chris@69 10250
Chris@69 10251
Chris@69 10252
Chris@69 10253 #
Chris@69 10254 # Do we need to explicitly link libc?
Chris@69 10255 #
Chris@69 10256 case "x$archive_cmds_need_lc" in
Chris@69 10257 x|xyes)
Chris@69 10258 # Assume -lc should be added
Chris@69 10259 archive_cmds_need_lc=yes
Chris@69 10260
Chris@69 10261 if test yes,yes = "$GCC,$enable_shared"; then
Chris@69 10262 case $archive_cmds in
Chris@69 10263 *'~'*)
Chris@69 10264 # FIXME: we may have to deal with multi-command sequences.
Chris@69 10265 ;;
Chris@69 10266 '$CC '*)
Chris@69 10267 # Test whether the compiler implicitly links with -lc since on some
Chris@69 10268 # systems, -lgcc has to come before -lc. If gcc already passes -lc
Chris@69 10269 # to ld, don't add -lc before -lgcc.
Chris@69 10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Chris@69 10271 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Chris@69 10272 if ${lt_cv_archive_cmds_need_lc+:} false; then :
Chris@69 10273 $as_echo_n "(cached) " >&6
Chris@69 10274 else
Chris@69 10275 $RM conftest*
Chris@69 10276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Chris@69 10277
Chris@69 10278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Chris@69 10279 (eval $ac_compile) 2>&5
Chris@69 10280 ac_status=$?
Chris@69 10281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 10282 test $ac_status = 0; } 2>conftest.err; then
Chris@69 10283 soname=conftest
Chris@69 10284 lib=conftest
Chris@69 10285 libobjs=conftest.$ac_objext
Chris@69 10286 deplibs=
Chris@69 10287 wl=$lt_prog_compiler_wl
Chris@69 10288 pic_flag=$lt_prog_compiler_pic
Chris@69 10289 compiler_flags=-v
Chris@69 10290 linker_flags=-v
Chris@69 10291 verstring=
Chris@69 10292 output_objdir=.
Chris@69 10293 libname=conftest
Chris@69 10294 lt_save_allow_undefined_flag=$allow_undefined_flag
Chris@69 10295 allow_undefined_flag=
Chris@69 10296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Chris@69 10297 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Chris@69 10298 ac_status=$?
Chris@69 10299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 10300 test $ac_status = 0; }
Chris@69 10301 then
Chris@69 10302 lt_cv_archive_cmds_need_lc=no
Chris@69 10303 else
Chris@69 10304 lt_cv_archive_cmds_need_lc=yes
Chris@69 10305 fi
Chris@69 10306 allow_undefined_flag=$lt_save_allow_undefined_flag
Chris@69 10307 else
Chris@69 10308 cat conftest.err 1>&5
Chris@69 10309 fi
Chris@69 10310 $RM conftest*
Chris@69 10311
Chris@69 10312 fi
Chris@69 10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
Chris@69 10314 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
Chris@69 10315 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Chris@69 10316 ;;
Chris@69 10317 esac
Chris@69 10318 fi
Chris@69 10319 ;;
Chris@69 10320 esac
Chris@69 10321
Chris@69 10322
Chris@69 10323
Chris@69 10324
Chris@69 10325
Chris@69 10326
Chris@69 10327
Chris@69 10328
Chris@69 10329
Chris@69 10330
Chris@69 10331
Chris@69 10332
Chris@69 10333
Chris@69 10334
Chris@69 10335
Chris@69 10336
Chris@69 10337
Chris@69 10338
Chris@69 10339
Chris@69 10340
Chris@69 10341
Chris@69 10342
Chris@69 10343
Chris@69 10344
Chris@69 10345
Chris@69 10346
Chris@69 10347
Chris@69 10348
Chris@69 10349
Chris@69 10350
Chris@69 10351
Chris@69 10352
Chris@69 10353
Chris@69 10354
Chris@69 10355
Chris@69 10356
Chris@69 10357
Chris@69 10358
Chris@69 10359
Chris@69 10360
Chris@69 10361
Chris@69 10362
Chris@69 10363
Chris@69 10364
Chris@69 10365
Chris@69 10366
Chris@69 10367
Chris@69 10368
Chris@69 10369
Chris@69 10370
Chris@69 10371
Chris@69 10372
Chris@69 10373
Chris@69 10374
Chris@69 10375
Chris@69 10376
Chris@69 10377
Chris@69 10378
Chris@69 10379
Chris@69 10380
Chris@69 10381
Chris@69 10382
Chris@69 10383
Chris@69 10384
Chris@69 10385
Chris@69 10386
Chris@69 10387
Chris@69 10388
Chris@69 10389
Chris@69 10390
Chris@69 10391
Chris@69 10392
Chris@69 10393
Chris@69 10394
Chris@69 10395
Chris@69 10396
Chris@69 10397
Chris@69 10398
Chris@69 10399
Chris@69 10400
Chris@69 10401
Chris@69 10402
Chris@69 10403
Chris@69 10404
Chris@69 10405
Chris@69 10406
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
Chris@69 10424
Chris@69 10425
Chris@69 10426
Chris@69 10427
Chris@69 10428
Chris@69 10429
Chris@69 10430
Chris@69 10431
Chris@69 10432
Chris@69 10433
Chris@69 10434
Chris@69 10435
Chris@69 10436
Chris@69 10437
Chris@69 10438
Chris@69 10439
Chris@69 10440
Chris@69 10441
Chris@69 10442
Chris@69 10443
Chris@69 10444
Chris@69 10445
Chris@69 10446
Chris@69 10447
Chris@69 10448
Chris@69 10449
Chris@69 10450
Chris@69 10451
Chris@69 10452
Chris@69 10453
Chris@69 10454
Chris@69 10455
Chris@69 10456
Chris@69 10457
Chris@69 10458
Chris@69 10459
Chris@69 10460
Chris@69 10461
Chris@69 10462
Chris@69 10463
Chris@69 10464
Chris@69 10465
Chris@69 10466
Chris@69 10467
Chris@69 10468
Chris@69 10469
Chris@69 10470
Chris@69 10471
Chris@69 10472
Chris@69 10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Chris@69 10474 $as_echo_n "checking dynamic linker characteristics... " >&6; }
Chris@69 10475
Chris@69 10476 if test yes = "$GCC"; then
Chris@69 10477 case $host_os in
Chris@69 10478 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
Chris@69 10479 *) lt_awk_arg='/^libraries:/' ;;
Chris@69 10480 esac
Chris@69 10481 case $host_os in
Chris@69 10482 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
Chris@69 10483 *) lt_sed_strip_eq='s|=/|/|g' ;;
Chris@69 10484 esac
Chris@69 10485 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
Chris@69 10486 case $lt_search_path_spec in
Chris@69 10487 *\;*)
Chris@69 10488 # if the path contains ";" then we assume it to be the separator
Chris@69 10489 # otherwise default to the standard path separator (i.e. ":") - it is
Chris@69 10490 # assumed that no part of a normal pathname contains ";" but that should
Chris@69 10491 # okay in the real world where ";" in dirpaths is itself problematic.
Chris@69 10492 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
Chris@69 10493 ;;
Chris@69 10494 *)
Chris@69 10495 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
Chris@69 10496 ;;
Chris@69 10497 esac
Chris@69 10498 # Ok, now we have the path, separated by spaces, we can step through it
Chris@69 10499 # and add multilib dir if necessary...
Chris@69 10500 lt_tmp_lt_search_path_spec=
Chris@69 10501 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
Chris@69 10502 # ...but if some path component already ends with the multilib dir we assume
Chris@69 10503 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
Chris@69 10504 case "$lt_multi_os_dir; $lt_search_path_spec " in
Chris@69 10505 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
Chris@69 10506 lt_multi_os_dir=
Chris@69 10507 ;;
Chris@69 10508 esac
Chris@69 10509 for lt_sys_path in $lt_search_path_spec; do
Chris@69 10510 if test -d "$lt_sys_path$lt_multi_os_dir"; then
Chris@69 10511 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
Chris@69 10512 elif test -n "$lt_multi_os_dir"; then
Chris@69 10513 test -d "$lt_sys_path" && \
Chris@69 10514 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
Chris@69 10515 fi
Chris@69 10516 done
Chris@69 10517 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Chris@69 10518 BEGIN {RS = " "; FS = "/|\n";} {
Chris@69 10519 lt_foo = "";
Chris@69 10520 lt_count = 0;
Chris@69 10521 for (lt_i = NF; lt_i > 0; lt_i--) {
Chris@69 10522 if ($lt_i != "" && $lt_i != ".") {
Chris@69 10523 if ($lt_i == "..") {
Chris@69 10524 lt_count++;
Chris@69 10525 } else {
Chris@69 10526 if (lt_count == 0) {
Chris@69 10527 lt_foo = "/" $lt_i lt_foo;
Chris@69 10528 } else {
Chris@69 10529 lt_count--;
Chris@69 10530 }
Chris@69 10531 }
Chris@69 10532 }
Chris@69 10533 }
Chris@69 10534 if (lt_foo != "") { lt_freq[lt_foo]++; }
Chris@69 10535 if (lt_freq[lt_foo] == 1) { print lt_foo; }
Chris@69 10536 }'`
Chris@69 10537 # AWK program above erroneously prepends '/' to C:/dos/paths
Chris@69 10538 # for these hosts.
Chris@69 10539 case $host_os in
Chris@69 10540 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
Chris@69 10541 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
Chris@69 10542 esac
Chris@69 10543 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Chris@69 10544 else
Chris@69 10545 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Chris@69 10546 fi
Chris@69 10547 library_names_spec=
Chris@69 10548 libname_spec='lib$name'
Chris@69 10549 soname_spec=
Chris@69 10550 shrext_cmds=.so
Chris@69 10551 postinstall_cmds=
Chris@69 10552 postuninstall_cmds=
Chris@69 10553 finish_cmds=
Chris@69 10554 finish_eval=
Chris@69 10555 shlibpath_var=
Chris@69 10556 shlibpath_overrides_runpath=unknown
Chris@69 10557 version_type=none
Chris@69 10558 dynamic_linker="$host_os ld.so"
Chris@69 10559 sys_lib_dlsearch_path_spec="/lib /usr/lib"
Chris@69 10560 need_lib_prefix=unknown
Chris@69 10561 hardcode_into_libs=no
Chris@69 10562
Chris@69 10563 # when you set need_version to no, make sure it does not cause -set_version
Chris@69 10564 # flags to be left without arguments
Chris@69 10565 need_version=unknown
Chris@69 10566
Chris@69 10567
Chris@69 10568
Chris@69 10569 case $host_os in
Chris@69 10570 aix3*)
Chris@69 10571 version_type=linux # correct to gnu/linux during the next big refactor
Chris@69 10572 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
Chris@69 10573 shlibpath_var=LIBPATH
Chris@69 10574
Chris@69 10575 # AIX 3 has no versioning support, so we append a major version to the name.
Chris@69 10576 soname_spec='$libname$release$shared_ext$major'
Chris@69 10577 ;;
Chris@69 10578
Chris@69 10579 aix[4-9]*)
Chris@69 10580 version_type=linux # correct to gnu/linux during the next big refactor
Chris@69 10581 need_lib_prefix=no
Chris@69 10582 need_version=no
Chris@69 10583 hardcode_into_libs=yes
Chris@69 10584 if test ia64 = "$host_cpu"; then
Chris@69 10585 # AIX 5 supports IA64
Chris@69 10586 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
Chris@69 10587 shlibpath_var=LD_LIBRARY_PATH
Chris@69 10588 else
Chris@69 10589 # With GCC up to 2.95.x, collect2 would create an import file
Chris@69 10590 # for dependence libraries. The import file would start with
Chris@69 10591 # the line '#! .'. This would cause the generated library to
Chris@69 10592 # depend on '.', always an invalid library. This was fixed in
Chris@69 10593 # development snapshots of GCC prior to 3.0.
Chris@69 10594 case $host_os in
Chris@69 10595 aix4 | aix4.[01] | aix4.[01].*)
Chris@69 10596 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
Chris@69 10597 echo ' yes '
Chris@69 10598 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
Chris@69 10599 :
Chris@69 10600 else
Chris@69 10601 can_build_shared=no
Chris@69 10602 fi
Chris@69 10603 ;;
Chris@69 10604 esac
Chris@69 10605 # Using Import Files as archive members, it is possible to support
Chris@69 10606 # filename-based versioning of shared library archives on AIX. While
Chris@69 10607 # this would work for both with and without runtime linking, it will
Chris@69 10608 # prevent static linking of such archives. So we do filename-based
Chris@69 10609 # shared library versioning with .so extension only, which is used
Chris@69 10610 # when both runtime linking and shared linking is enabled.
Chris@69 10611 # Unfortunately, runtime linking may impact performance, so we do
Chris@69 10612 # not want this to be the default eventually. Also, we use the
Chris@69 10613 # versioned .so libs for executables only if there is the -brtl
Chris@69 10614 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
Chris@69 10615 # To allow for filename-based versioning support, we need to create
Chris@69 10616 # libNAME.so.V as an archive file, containing:
Chris@69 10617 # *) an Import File, referring to the versioned filename of the
Chris@69 10618 # archive as well as the shared archive member, telling the
Chris@69 10619 # bitwidth (32 or 64) of that shared object, and providing the
Chris@69 10620 # list of exported symbols of that shared object, eventually
Chris@69 10621 # decorated with the 'weak' keyword
Chris@69 10622 # *) the shared object with the F_LOADONLY flag set, to really avoid
Chris@69 10623 # it being seen by the linker.
Chris@69 10624 # At run time we better use the real file rather than another symlink,
Chris@69 10625 # but for link time we create the symlink libNAME.so -> libNAME.so.V
Chris@69 10626
Chris@69 10627 case $with_aix_soname,$aix_use_runtimelinking in
Chris@69 10628 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
Chris@69 10629 # soname into executable. Probably we can add versioning support to
Chris@69 10630 # collect2, so additional links can be useful in future.
Chris@69 10631 aix,yes) # traditional libtool
Chris@69 10632 dynamic_linker='AIX unversionable lib.so'
Chris@69 10633 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
Chris@69 10634 # instead of lib<name>.a to let people know that these are not
Chris@69 10635 # typical AIX shared libraries.
Chris@69 10636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 10637 ;;
Chris@69 10638 aix,no) # traditional AIX only
Chris@69 10639 dynamic_linker='AIX lib.a(lib.so.V)'
Chris@69 10640 # We preserve .a as extension for shared libraries through AIX4.2
Chris@69 10641 # and later when we are not doing run time linking.
Chris@69 10642 library_names_spec='$libname$release.a $libname.a'
Chris@69 10643 soname_spec='$libname$release$shared_ext$major'
Chris@69 10644 ;;
Chris@69 10645 svr4,*) # full svr4 only
Chris@69 10646 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
Chris@69 10647 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
Chris@69 10648 # We do not specify a path in Import Files, so LIBPATH fires.
Chris@69 10649 shlibpath_overrides_runpath=yes
Chris@69 10650 ;;
Chris@69 10651 *,yes) # both, prefer svr4
Chris@69 10652 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
Chris@69 10653 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
Chris@69 10654 # unpreferred sharedlib libNAME.a needs extra handling
Chris@69 10655 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 10656 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 10657 # We do not specify a path in Import Files, so LIBPATH fires.
Chris@69 10658 shlibpath_overrides_runpath=yes
Chris@69 10659 ;;
Chris@69 10660 *,no) # both, prefer aix
Chris@69 10661 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
Chris@69 10662 library_names_spec='$libname$release.a $libname.a'
Chris@69 10663 soname_spec='$libname$release$shared_ext$major'
Chris@69 10664 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
Chris@69 10665 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 10666 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 10667 ;;
Chris@69 10668 esac
Chris@69 10669 shlibpath_var=LIBPATH
Chris@69 10670 fi
Chris@69 10671 ;;
Chris@69 10672
Chris@69 10673 amigaos*)
Chris@69 10674 case $host_cpu in
Chris@69 10675 powerpc)
Chris@69 10676 # Since July 2007 AmigaOS4 officially supports .so libraries.
Chris@69 10677 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Chris@69 10678 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 10679 ;;
Chris@69 10680 m68k)
Chris@69 10681 library_names_spec='$libname.ixlibrary $libname.a'
Chris@69 10682 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Chris@69 10683 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 10684 ;;
Chris@69 10685 esac
Chris@69 10686 ;;
Chris@69 10687
Chris@69 10688 beos*)
Chris@69 10689 library_names_spec='$libname$shared_ext'
Chris@69 10690 dynamic_linker="$host_os ld.so"
Chris@69 10691 shlibpath_var=LIBRARY_PATH
Chris@69 10692 ;;
Chris@69 10693
Chris@69 10694 bsdi[45]*)
Chris@69 10695 version_type=linux # correct to gnu/linux during the next big refactor
Chris@69 10696 need_version=no
Chris@69 10697 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 10698 soname_spec='$libname$release$shared_ext$major'
Chris@69 10699 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
Chris@69 10700 shlibpath_var=LD_LIBRARY_PATH
Chris@69 10701 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
Chris@69 10702 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Chris@69 10703 # the default ld.so.conf also contains /usr/contrib/lib and
Chris@69 10704 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
Chris@69 10705 # libtool to hard-code these into programs
Chris@69 10706 ;;
Chris@69 10707
Chris@69 10708 cygwin* | mingw* | pw32* | cegcc*)
Chris@69 10709 version_type=windows
Chris@69 10710 shrext_cmds=.dll
Chris@69 10711 need_version=no
Chris@69 10712 need_lib_prefix=no
Chris@69 10713
Chris@69 10714 case $GCC,$cc_basename in
Chris@69 10715 yes,*)
Chris@69 10716 # gcc
Chris@69 10717 library_names_spec='$libname.dll.a'
Chris@69 10718 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@69 10719 postinstall_cmds='base_file=`basename \$file`~
Chris@69 10720 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Chris@69 10721 dldir=$destdir/`dirname \$dlpath`~
Chris@69 10722 test -d \$dldir || mkdir -p \$dldir~
Chris@69 10723 $install_prog $dir/$dlname \$dldir/$dlname~
Chris@69 10724 chmod a+x \$dldir/$dlname~
Chris@69 10725 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Chris@69 10726 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Chris@69 10727 fi'
Chris@69 10728 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@69 10729 dlpath=$dir/\$dldll~
Chris@69 10730 $RM \$dlpath'
Chris@69 10731 shlibpath_overrides_runpath=yes
Chris@69 10732
Chris@69 10733 case $host_os in
Chris@69 10734 cygwin*)
Chris@69 10735 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Chris@69 10736 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Chris@69 10737
Chris@69 10738 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Chris@69 10739 ;;
Chris@69 10740 mingw* | cegcc*)
Chris@69 10741 # MinGW DLLs use traditional 'lib' prefix
Chris@69 10742 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Chris@69 10743 ;;
Chris@69 10744 pw32*)
Chris@69 10745 # pw32 DLLs use 'pw' prefix rather than 'lib'
Chris@69 10746 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Chris@69 10747 ;;
Chris@69 10748 esac
Chris@69 10749 dynamic_linker='Win32 ld.exe'
Chris@69 10750 ;;
Chris@69 10751
Chris@69 10752 *,cl*)
Chris@69 10753 # Native MSVC
Chris@69 10754 libname_spec='$name'
Chris@69 10755 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Chris@69 10756 library_names_spec='$libname.dll.lib'
Chris@69 10757
Chris@69 10758 case $build_os in
Chris@69 10759 mingw*)
Chris@69 10760 sys_lib_search_path_spec=
Chris@69 10761 lt_save_ifs=$IFS
Chris@69 10762 IFS=';'
Chris@69 10763 for lt_path in $LIB
Chris@69 10764 do
Chris@69 10765 IFS=$lt_save_ifs
Chris@69 10766 # Let DOS variable expansion print the short 8.3 style file name.
Chris@69 10767 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
Chris@69 10768 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
Chris@69 10769 done
Chris@69 10770 IFS=$lt_save_ifs
Chris@69 10771 # Convert to MSYS style.
Chris@69 10772 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 10773 ;;
Chris@69 10774 cygwin*)
Chris@69 10775 # Convert to unix form, then to dos form, then back to unix form
Chris@69 10776 # but this time dos style (no spaces!) so that the unix form looks
Chris@69 10777 # like /cygdrive/c/PROGRA~1:/cygdr...
Chris@69 10778 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
Chris@69 10779 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
Chris@69 10780 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@69 10781 ;;
Chris@69 10782 *)
Chris@69 10783 sys_lib_search_path_spec=$LIB
Chris@69 10784 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
Chris@69 10785 # It is most probably a Windows format PATH.
Chris@69 10786 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Chris@69 10787 else
Chris@69 10788 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Chris@69 10789 fi
Chris@69 10790 # FIXME: find the short name or the path components, as spaces are
Chris@69 10791 # common. (e.g. "Program Files" -> "PROGRA~1")
Chris@69 10792 ;;
Chris@69 10793 esac
Chris@69 10794
Chris@69 10795 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Chris@69 10796 postinstall_cmds='base_file=`basename \$file`~
Chris@69 10797 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Chris@69 10798 dldir=$destdir/`dirname \$dlpath`~
Chris@69 10799 test -d \$dldir || mkdir -p \$dldir~
Chris@69 10800 $install_prog $dir/$dlname \$dldir/$dlname'
Chris@69 10801 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Chris@69 10802 dlpath=$dir/\$dldll~
Chris@69 10803 $RM \$dlpath'
Chris@69 10804 shlibpath_overrides_runpath=yes
Chris@69 10805 dynamic_linker='Win32 link.exe'
Chris@69 10806 ;;
Chris@69 10807
Chris@69 10808 *)
Chris@69 10809 # Assume MSVC wrapper
Chris@69 10810 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
Chris@69 10811 dynamic_linker='Win32 ld.exe'
Chris@69 10812 ;;
Chris@69 10813 esac
Chris@69 10814 # FIXME: first we should search . and the directory the executable is in
Chris@69 10815 shlibpath_var=PATH
Chris@69 10816 ;;
Chris@69 10817
Chris@69 10818 darwin* | rhapsody*)
Chris@69 10819 dynamic_linker="$host_os dyld"
Chris@69 10820 version_type=darwin
Chris@69 10821 need_lib_prefix=no
Chris@69 10822 need_version=no
Chris@69 10823 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
Chris@69 10824 soname_spec='$libname$release$major$shared_ext'
Chris@69 10825 shlibpath_overrides_runpath=yes
Chris@69 10826 shlibpath_var=DYLD_LIBRARY_PATH
Chris@69 10827 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Chris@69 10828
Chris@69 10829 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Chris@69 10830 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
Chris@69 10831 ;;
Chris@69 10832
Chris@69 10833 dgux*)
Chris@69 10834 version_type=linux # correct to gnu/linux during the next big refactor
Chris@69 10835 need_lib_prefix=no
Chris@69 10836 need_version=no
Chris@69 10837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 10838 soname_spec='$libname$release$shared_ext$major'
Chris@69 10839 shlibpath_var=LD_LIBRARY_PATH
Chris@69 10840 ;;
Chris@69 10841
Chris@69 10842 freebsd* | dragonfly*)
Chris@69 10843 # DragonFly does not have aout. When/if they implement a new
Chris@69 10844 # versioning mechanism, adjust this.
Chris@69 10845 if test -x /usr/bin/objformat; then
Chris@69 10846 objformat=`/usr/bin/objformat`
Chris@69 10847 else
Chris@69 10848 case $host_os in
Chris@69 10849 freebsd[23].*) objformat=aout ;;
Chris@69 10850 *) objformat=elf ;;
Chris@69 10851 esac
Chris@69 10852 fi
Chris@69 10853 version_type=freebsd-$objformat
Chris@69 10854 case $version_type in
Chris@69 10855 freebsd-elf*)
Chris@69 10856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 10857 soname_spec='$libname$release$shared_ext$major'
Chris@69 10858 need_version=no
Chris@69 10859 need_lib_prefix=no
Chris@69 10860 ;;
Chris@69 10861 freebsd-*)
Chris@69 10862 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Chris@69 10863 need_version=yes
Chris@69 10864 ;;
Chris@69 10865 esac
Chris@69 10866 shlibpath_var=LD_LIBRARY_PATH
Chris@69 10867 case $host_os in
Chris@69 10868 freebsd2.*)
Chris@69 10869 shlibpath_overrides_runpath=yes
Chris@69 10870 ;;
Chris@69 10871 freebsd3.[01]* | freebsdelf3.[01]*)
Chris@69 10872 shlibpath_overrides_runpath=yes
Chris@69 10873 hardcode_into_libs=yes
Chris@69 10874 ;;
Chris@69 10875 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
Chris@69 10876 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Chris@69 10877 shlibpath_overrides_runpath=no
Chris@69 10878 hardcode_into_libs=yes
Chris@69 10879 ;;
Chris@69 10880 *) # from 4.6 on, and DragonFly
Chris@69 10881 shlibpath_overrides_runpath=yes
Chris@69 10882 hardcode_into_libs=yes
Chris@69 10883 ;;
Chris@69 10884 esac
Chris@69 10885 ;;
Chris@69 10886
Chris@69 10887 haiku*)
Chris@69 10888 version_type=linux # correct to gnu/linux during the next big refactor
Chris@69 10889 need_lib_prefix=no
Chris@69 10890 need_version=no
Chris@69 10891 dynamic_linker="$host_os runtime_loader"
Chris@69 10892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 10893 soname_spec='$libname$release$shared_ext$major'
Chris@69 10894 shlibpath_var=LIBRARY_PATH
Chris@69 10895 shlibpath_overrides_runpath=no
Chris@69 10896 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Chris@69 10897 hardcode_into_libs=yes
Chris@69 10898 ;;
Chris@69 10899
Chris@69 10900 hpux9* | hpux10* | hpux11*)
Chris@69 10901 # Give a soname corresponding to the major version so that dld.sl refuses to
Chris@69 10902 # link against other versions.
Chris@69 10903 version_type=sunos
Chris@69 10904 need_lib_prefix=no
Chris@69 10905 need_version=no
Chris@69 10906 case $host_cpu in
Chris@69 10907 ia64*)
Chris@69 10908 shrext_cmds='.so'
Chris@69 10909 hardcode_into_libs=yes
Chris@69 10910 dynamic_linker="$host_os dld.so"
Chris@69 10911 shlibpath_var=LD_LIBRARY_PATH
Chris@69 10912 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@69 10913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 10914 soname_spec='$libname$release$shared_ext$major'
Chris@69 10915 if test 32 = "$HPUX_IA64_MODE"; then
Chris@69 10916 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Chris@69 10917 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
Chris@69 10918 else
Chris@69 10919 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Chris@69 10920 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
Chris@69 10921 fi
Chris@69 10922 ;;
Chris@69 10923 hppa*64*)
Chris@69 10924 shrext_cmds='.sl'
Chris@69 10925 hardcode_into_libs=yes
Chris@69 10926 dynamic_linker="$host_os dld.sl"
Chris@69 10927 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Chris@69 10928 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Chris@69 10929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 10930 soname_spec='$libname$release$shared_ext$major'
Chris@69 10931 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
Chris@69 10932 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@69 10933 ;;
Chris@69 10934 *)
Chris@69 10935 shrext_cmds='.sl'
Chris@69 10936 dynamic_linker="$host_os dld.sl"
Chris@69 10937 shlibpath_var=SHLIB_PATH
Chris@69 10938 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Chris@69 10939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 10940 soname_spec='$libname$release$shared_ext$major'
Chris@69 10941 ;;
Chris@69 10942 esac
Chris@69 10943 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Chris@69 10944 postinstall_cmds='chmod 555 $lib'
Chris@69 10945 # or fails outright, so override atomically:
Chris@69 10946 install_override_mode=555
Chris@69 10947 ;;
Chris@69 10948
Chris@69 10949 interix[3-9]*)
Chris@69 10950 version_type=linux # correct to gnu/linux during the next big refactor
Chris@69 10951 need_lib_prefix=no
Chris@69 10952 need_version=no
Chris@69 10953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 10954 soname_spec='$libname$release$shared_ext$major'
Chris@69 10955 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
Chris@69 10956 shlibpath_var=LD_LIBRARY_PATH
Chris@69 10957 shlibpath_overrides_runpath=no
Chris@69 10958 hardcode_into_libs=yes
Chris@69 10959 ;;
Chris@69 10960
Chris@69 10961 irix5* | irix6* | nonstopux*)
Chris@69 10962 case $host_os in
Chris@69 10963 nonstopux*) version_type=nonstopux ;;
Chris@69 10964 *)
Chris@69 10965 if test yes = "$lt_cv_prog_gnu_ld"; then
Chris@69 10966 version_type=linux # correct to gnu/linux during the next big refactor
Chris@69 10967 else
Chris@69 10968 version_type=irix
Chris@69 10969 fi ;;
Chris@69 10970 esac
Chris@69 10971 need_lib_prefix=no
Chris@69 10972 need_version=no
Chris@69 10973 soname_spec='$libname$release$shared_ext$major'
Chris@69 10974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
Chris@69 10975 case $host_os in
Chris@69 10976 irix5* | nonstopux*)
Chris@69 10977 libsuff= shlibsuff=
Chris@69 10978 ;;
Chris@69 10979 *)
Chris@69 10980 case $LD in # libtool.m4 will add one of these switches to LD
Chris@69 10981 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
Chris@69 10982 libsuff= shlibsuff= libmagic=32-bit;;
Chris@69 10983 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
Chris@69 10984 libsuff=32 shlibsuff=N32 libmagic=N32;;
Chris@69 10985 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
Chris@69 10986 libsuff=64 shlibsuff=64 libmagic=64-bit;;
Chris@69 10987 *) libsuff= shlibsuff= libmagic=never-match;;
Chris@69 10988 esac
Chris@69 10989 ;;
Chris@69 10990 esac
Chris@69 10991 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
Chris@69 10992 shlibpath_overrides_runpath=no
Chris@69 10993 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
Chris@69 10994 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
Chris@69 10995 hardcode_into_libs=yes
Chris@69 10996 ;;
Chris@69 10997
Chris@69 10998 # No shared lib support for Linux oldld, aout, or coff.
Chris@69 10999 linux*oldld* | linux*aout* | linux*coff*)
Chris@69 11000 dynamic_linker=no
Chris@69 11001 ;;
Chris@69 11002
Chris@69 11003 linux*android*)
Chris@69 11004 version_type=none # Android doesn't support versioned libraries.
Chris@69 11005 need_lib_prefix=no
Chris@69 11006 need_version=no
Chris@69 11007 library_names_spec='$libname$release$shared_ext'
Chris@69 11008 soname_spec='$libname$release$shared_ext'
Chris@69 11009 finish_cmds=
Chris@69 11010 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11011 shlibpath_overrides_runpath=yes
Chris@69 11012
Chris@69 11013 # This implies no fast_install, which is unacceptable.
Chris@69 11014 # Some rework will be needed to allow for fast_install
Chris@69 11015 # before this can be enabled.
Chris@69 11016 hardcode_into_libs=yes
Chris@69 11017
Chris@69 11018 dynamic_linker='Android linker'
Chris@69 11019 # Don't embed -rpath directories since the linker doesn't support them.
Chris@69 11020 hardcode_libdir_flag_spec='-L$libdir'
Chris@69 11021 ;;
Chris@69 11022
Chris@69 11023 # This must be glibc/ELF.
Chris@69 11024 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Chris@69 11025 version_type=linux # correct to gnu/linux during the next big refactor
Chris@69 11026 need_lib_prefix=no
Chris@69 11027 need_version=no
Chris@69 11028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 11029 soname_spec='$libname$release$shared_ext$major'
Chris@69 11030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
Chris@69 11031 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11032 shlibpath_overrides_runpath=no
Chris@69 11033
Chris@69 11034 # Some binutils ld are patched to set DT_RUNPATH
Chris@69 11035 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
Chris@69 11036 $as_echo_n "(cached) " >&6
Chris@69 11037 else
Chris@69 11038 lt_cv_shlibpath_overrides_runpath=no
Chris@69 11039 save_LDFLAGS=$LDFLAGS
Chris@69 11040 save_libdir=$libdir
Chris@69 11041 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
Chris@69 11042 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
Chris@69 11043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 11044 /* end confdefs.h. */
Chris@69 11045
Chris@69 11046 int
Chris@69 11047 main ()
Chris@69 11048 {
Chris@69 11049
Chris@69 11050 ;
Chris@69 11051 return 0;
Chris@69 11052 }
Chris@69 11053 _ACEOF
Chris@69 11054 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 11055 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Chris@69 11056 lt_cv_shlibpath_overrides_runpath=yes
Chris@69 11057 fi
Chris@69 11058 fi
Chris@69 11059 rm -f core conftest.err conftest.$ac_objext \
Chris@69 11060 conftest$ac_exeext conftest.$ac_ext
Chris@69 11061 LDFLAGS=$save_LDFLAGS
Chris@69 11062 libdir=$save_libdir
Chris@69 11063
Chris@69 11064 fi
Chris@69 11065
Chris@69 11066 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Chris@69 11067
Chris@69 11068 # This implies no fast_install, which is unacceptable.
Chris@69 11069 # Some rework will be needed to allow for fast_install
Chris@69 11070 # before this can be enabled.
Chris@69 11071 hardcode_into_libs=yes
Chris@69 11072
Chris@69 11073 # Add ABI-specific directories to the system library path.
Chris@69 11074 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
Chris@69 11075
Chris@69 11076 # Ideally, we could use ldconfig to report *all* directores which are
Chris@69 11077 # searched for libraries, however this is still not possible. Aside from not
Chris@69 11078 # being certain /sbin/ldconfig is available, command
Chris@69 11079 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
Chris@69 11080 # even though it is searched at run-time. Try to do the best guess by
Chris@69 11081 # appending ld.so.conf contents (and includes) to the search path.
Chris@69 11082 if test -f /etc/ld.so.conf; then
Chris@69 11083 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 11084 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
Chris@69 11085 fi
Chris@69 11086
Chris@69 11087 # We used to test for /lib/ld.so.1 and disable shared libraries on
Chris@69 11088 # powerpc, because MkLinux only supported shared libraries with the
Chris@69 11089 # GNU dynamic linker. Since this was broken with cross compilers,
Chris@69 11090 # most powerpc-linux boxes support dynamic linking these days and
Chris@69 11091 # people can always --disable-shared, the test was removed, and we
Chris@69 11092 # assume the GNU/Linux dynamic linker is in use.
Chris@69 11093 dynamic_linker='GNU/Linux ld.so'
Chris@69 11094 ;;
Chris@69 11095
Chris@69 11096 netbsd*)
Chris@69 11097 version_type=sunos
Chris@69 11098 need_lib_prefix=no
Chris@69 11099 need_version=no
Chris@69 11100 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Chris@69 11101 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Chris@69 11102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@69 11103 dynamic_linker='NetBSD (a.out) ld.so'
Chris@69 11104 else
Chris@69 11105 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 11106 soname_spec='$libname$release$shared_ext$major'
Chris@69 11107 dynamic_linker='NetBSD ld.elf_so'
Chris@69 11108 fi
Chris@69 11109 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11110 shlibpath_overrides_runpath=yes
Chris@69 11111 hardcode_into_libs=yes
Chris@69 11112 ;;
Chris@69 11113
Chris@69 11114 newsos6)
Chris@69 11115 version_type=linux # correct to gnu/linux during the next big refactor
Chris@69 11116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 11117 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11118 shlibpath_overrides_runpath=yes
Chris@69 11119 ;;
Chris@69 11120
Chris@69 11121 *nto* | *qnx*)
Chris@69 11122 version_type=qnx
Chris@69 11123 need_lib_prefix=no
Chris@69 11124 need_version=no
Chris@69 11125 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 11126 soname_spec='$libname$release$shared_ext$major'
Chris@69 11127 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11128 shlibpath_overrides_runpath=no
Chris@69 11129 hardcode_into_libs=yes
Chris@69 11130 dynamic_linker='ldqnx.so'
Chris@69 11131 ;;
Chris@69 11132
Chris@69 11133 openbsd* | bitrig*)
Chris@69 11134 version_type=sunos
Chris@69 11135 sys_lib_dlsearch_path_spec=/usr/lib
Chris@69 11136 need_lib_prefix=no
Chris@69 11137 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Chris@69 11138 need_version=no
Chris@69 11139 else
Chris@69 11140 need_version=yes
Chris@69 11141 fi
Chris@69 11142 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Chris@69 11143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Chris@69 11144 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11145 shlibpath_overrides_runpath=yes
Chris@69 11146 ;;
Chris@69 11147
Chris@69 11148 os2*)
Chris@69 11149 libname_spec='$name'
Chris@69 11150 version_type=windows
Chris@69 11151 shrext_cmds=.dll
Chris@69 11152 need_version=no
Chris@69 11153 need_lib_prefix=no
Chris@69 11154 # OS/2 can only load a DLL with a base name of 8 characters or less.
Chris@69 11155 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
Chris@69 11156 v=$($ECHO $release$versuffix | tr -d .-);
Chris@69 11157 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
Chris@69 11158 $ECHO $n$v`$shared_ext'
Chris@69 11159 library_names_spec='${libname}_dll.$libext'
Chris@69 11160 dynamic_linker='OS/2 ld.exe'
Chris@69 11161 shlibpath_var=BEGINLIBPATH
Chris@69 11162 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Chris@69 11163 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@69 11164 postinstall_cmds='base_file=`basename \$file`~
Chris@69 11165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
Chris@69 11166 dldir=$destdir/`dirname \$dlpath`~
Chris@69 11167 test -d \$dldir || mkdir -p \$dldir~
Chris@69 11168 $install_prog $dir/$dlname \$dldir/$dlname~
Chris@69 11169 chmod a+x \$dldir/$dlname~
Chris@69 11170 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Chris@69 11171 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Chris@69 11172 fi'
Chris@69 11173 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
Chris@69 11174 dlpath=$dir/\$dldll~
Chris@69 11175 $RM \$dlpath'
Chris@69 11176 ;;
Chris@69 11177
Chris@69 11178 osf3* | osf4* | osf5*)
Chris@69 11179 version_type=osf
Chris@69 11180 need_lib_prefix=no
Chris@69 11181 need_version=no
Chris@69 11182 soname_spec='$libname$release$shared_ext$major'
Chris@69 11183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 11184 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11185 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Chris@69 11186 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Chris@69 11187 ;;
Chris@69 11188
Chris@69 11189 rdos*)
Chris@69 11190 dynamic_linker=no
Chris@69 11191 ;;
Chris@69 11192
Chris@69 11193 solaris*)
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 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11200 shlibpath_overrides_runpath=yes
Chris@69 11201 hardcode_into_libs=yes
Chris@69 11202 # ldd complains unless libraries are executable
Chris@69 11203 postinstall_cmds='chmod +x $lib'
Chris@69 11204 ;;
Chris@69 11205
Chris@69 11206 sunos4*)
Chris@69 11207 version_type=sunos
Chris@69 11208 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Chris@69 11209 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
Chris@69 11210 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11211 shlibpath_overrides_runpath=yes
Chris@69 11212 if test yes = "$with_gnu_ld"; then
Chris@69 11213 need_lib_prefix=no
Chris@69 11214 fi
Chris@69 11215 need_version=yes
Chris@69 11216 ;;
Chris@69 11217
Chris@69 11218 sysv4 | sysv4.3*)
Chris@69 11219 version_type=linux # correct to gnu/linux during the next big refactor
Chris@69 11220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 11221 soname_spec='$libname$release$shared_ext$major'
Chris@69 11222 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11223 case $host_vendor in
Chris@69 11224 sni)
Chris@69 11225 shlibpath_overrides_runpath=no
Chris@69 11226 need_lib_prefix=no
Chris@69 11227 runpath_var=LD_RUN_PATH
Chris@69 11228 ;;
Chris@69 11229 siemens)
Chris@69 11230 need_lib_prefix=no
Chris@69 11231 ;;
Chris@69 11232 motorola)
Chris@69 11233 need_lib_prefix=no
Chris@69 11234 need_version=no
Chris@69 11235 shlibpath_overrides_runpath=no
Chris@69 11236 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
Chris@69 11237 ;;
Chris@69 11238 esac
Chris@69 11239 ;;
Chris@69 11240
Chris@69 11241 sysv4*MP*)
Chris@69 11242 if test -d /usr/nec; then
Chris@69 11243 version_type=linux # correct to gnu/linux during the next big refactor
Chris@69 11244 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
Chris@69 11245 soname_spec='$libname$shared_ext.$major'
Chris@69 11246 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11247 fi
Chris@69 11248 ;;
Chris@69 11249
Chris@69 11250 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Chris@69 11251 version_type=sco
Chris@69 11252 need_lib_prefix=no
Chris@69 11253 need_version=no
Chris@69 11254 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
Chris@69 11255 soname_spec='$libname$release$shared_ext$major'
Chris@69 11256 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11257 shlibpath_overrides_runpath=yes
Chris@69 11258 hardcode_into_libs=yes
Chris@69 11259 if test yes = "$with_gnu_ld"; then
Chris@69 11260 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Chris@69 11261 else
Chris@69 11262 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Chris@69 11263 case $host_os in
Chris@69 11264 sco3.2v5*)
Chris@69 11265 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
Chris@69 11266 ;;
Chris@69 11267 esac
Chris@69 11268 fi
Chris@69 11269 sys_lib_dlsearch_path_spec='/usr/lib'
Chris@69 11270 ;;
Chris@69 11271
Chris@69 11272 tpf*)
Chris@69 11273 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Chris@69 11274 version_type=linux # correct to gnu/linux during the next big refactor
Chris@69 11275 need_lib_prefix=no
Chris@69 11276 need_version=no
Chris@69 11277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Chris@69 11278 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11279 shlibpath_overrides_runpath=no
Chris@69 11280 hardcode_into_libs=yes
Chris@69 11281 ;;
Chris@69 11282
Chris@69 11283 uts4*)
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 soname_spec='$libname$release$shared_ext$major'
Chris@69 11287 shlibpath_var=LD_LIBRARY_PATH
Chris@69 11288 ;;
Chris@69 11289
Chris@69 11290 *)
Chris@69 11291 dynamic_linker=no
Chris@69 11292 ;;
Chris@69 11293 esac
Chris@69 11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Chris@69 11295 $as_echo "$dynamic_linker" >&6; }
Chris@69 11296 test no = "$dynamic_linker" && can_build_shared=no
Chris@69 11297
Chris@69 11298 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Chris@69 11299 if test yes = "$GCC"; then
Chris@69 11300 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Chris@69 11301 fi
Chris@69 11302
Chris@69 11303 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
Chris@69 11304 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
Chris@69 11305 fi
Chris@69 11306
Chris@69 11307 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
Chris@69 11308 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
Chris@69 11309 fi
Chris@69 11310
Chris@69 11311 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
Chris@69 11312 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
Chris@69 11313
Chris@69 11314 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
Chris@69 11315 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
Chris@69 11316
Chris@69 11317 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
Chris@69 11318 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
Chris@69 11319
Chris@69 11320
Chris@69 11321
Chris@69 11322
Chris@69 11323
Chris@69 11324
Chris@69 11325
Chris@69 11326
Chris@69 11327
Chris@69 11328
Chris@69 11329
Chris@69 11330
Chris@69 11331
Chris@69 11332
Chris@69 11333
Chris@69 11334
Chris@69 11335
Chris@69 11336
Chris@69 11337
Chris@69 11338
Chris@69 11339
Chris@69 11340
Chris@69 11341
Chris@69 11342
Chris@69 11343
Chris@69 11344
Chris@69 11345
Chris@69 11346
Chris@69 11347
Chris@69 11348
Chris@69 11349
Chris@69 11350
Chris@69 11351
Chris@69 11352
Chris@69 11353
Chris@69 11354
Chris@69 11355
Chris@69 11356
Chris@69 11357
Chris@69 11358
Chris@69 11359
Chris@69 11360
Chris@69 11361
Chris@69 11362
Chris@69 11363
Chris@69 11364
Chris@69 11365
Chris@69 11366
Chris@69 11367
Chris@69 11368
Chris@69 11369
Chris@69 11370
Chris@69 11371
Chris@69 11372
Chris@69 11373
Chris@69 11374
Chris@69 11375
Chris@69 11376
Chris@69 11377
Chris@69 11378
Chris@69 11379
Chris@69 11380
Chris@69 11381
Chris@69 11382
Chris@69 11383
Chris@69 11384
Chris@69 11385
Chris@69 11386
Chris@69 11387
Chris@69 11388
Chris@69 11389
Chris@69 11390
Chris@69 11391
Chris@69 11392
Chris@69 11393
Chris@69 11394
Chris@69 11395
Chris@69 11396
Chris@69 11397
Chris@69 11398
Chris@69 11399
Chris@69 11400
Chris@69 11401
Chris@69 11402
Chris@69 11403
Chris@69 11404
Chris@69 11405
Chris@69 11406
Chris@69 11407
Chris@69 11408
Chris@69 11409
Chris@69 11410
Chris@69 11411
Chris@69 11412
Chris@69 11413
Chris@69 11414
Chris@69 11415
Chris@69 11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Chris@69 11417 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Chris@69 11418 hardcode_action=
Chris@69 11419 if test -n "$hardcode_libdir_flag_spec" ||
Chris@69 11420 test -n "$runpath_var" ||
Chris@69 11421 test yes = "$hardcode_automatic"; then
Chris@69 11422
Chris@69 11423 # We can hardcode non-existent directories.
Chris@69 11424 if test no != "$hardcode_direct" &&
Chris@69 11425 # If the only mechanism to avoid hardcoding is shlibpath_var, we
Chris@69 11426 # have to relink, otherwise we might link with an installed library
Chris@69 11427 # when we should be linking with a yet-to-be-installed one
Chris@69 11428 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
Chris@69 11429 test no != "$hardcode_minus_L"; then
Chris@69 11430 # Linking always hardcodes the temporary library directory.
Chris@69 11431 hardcode_action=relink
Chris@69 11432 else
Chris@69 11433 # We can link without hardcoding, and we can hardcode nonexisting dirs.
Chris@69 11434 hardcode_action=immediate
Chris@69 11435 fi
Chris@69 11436 else
Chris@69 11437 # We cannot hardcode anything, or else we can only hardcode existing
Chris@69 11438 # directories.
Chris@69 11439 hardcode_action=unsupported
Chris@69 11440 fi
Chris@69 11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
Chris@69 11442 $as_echo "$hardcode_action" >&6; }
Chris@69 11443
Chris@69 11444 if test relink = "$hardcode_action" ||
Chris@69 11445 test yes = "$inherit_rpath"; then
Chris@69 11446 # Fast installation is not supported
Chris@69 11447 enable_fast_install=no
Chris@69 11448 elif test yes = "$shlibpath_overrides_runpath" ||
Chris@69 11449 test no = "$enable_shared"; then
Chris@69 11450 # Fast installation is not necessary
Chris@69 11451 enable_fast_install=needless
Chris@69 11452 fi
Chris@69 11453
Chris@69 11454
Chris@69 11455
Chris@69 11456
Chris@69 11457
Chris@69 11458
Chris@69 11459 if test yes != "$enable_dlopen"; then
Chris@69 11460 enable_dlopen=unknown
Chris@69 11461 enable_dlopen_self=unknown
Chris@69 11462 enable_dlopen_self_static=unknown
Chris@69 11463 else
Chris@69 11464 lt_cv_dlopen=no
Chris@69 11465 lt_cv_dlopen_libs=
Chris@69 11466
Chris@69 11467 case $host_os in
Chris@69 11468 beos*)
Chris@69 11469 lt_cv_dlopen=load_add_on
Chris@69 11470 lt_cv_dlopen_libs=
Chris@69 11471 lt_cv_dlopen_self=yes
Chris@69 11472 ;;
Chris@69 11473
Chris@69 11474 mingw* | pw32* | cegcc*)
Chris@69 11475 lt_cv_dlopen=LoadLibrary
Chris@69 11476 lt_cv_dlopen_libs=
Chris@69 11477 ;;
Chris@69 11478
Chris@69 11479 cygwin*)
Chris@69 11480 lt_cv_dlopen=dlopen
Chris@69 11481 lt_cv_dlopen_libs=
Chris@69 11482 ;;
Chris@69 11483
Chris@69 11484 darwin*)
Chris@69 11485 # if libdl is installed we need to link against it
Chris@69 11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Chris@69 11487 $as_echo_n "checking for dlopen in -ldl... " >&6; }
Chris@69 11488 if ${ac_cv_lib_dl_dlopen+:} false; then :
Chris@69 11489 $as_echo_n "(cached) " >&6
Chris@69 11490 else
Chris@69 11491 ac_check_lib_save_LIBS=$LIBS
Chris@69 11492 LIBS="-ldl $LIBS"
Chris@69 11493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 11494 /* end confdefs.h. */
Chris@69 11495
Chris@69 11496 /* Override any GCC internal prototype to avoid an error.
Chris@69 11497 Use char because int might match the return type of a GCC
Chris@69 11498 builtin and then its argument prototype would still apply. */
Chris@69 11499 #ifdef __cplusplus
Chris@69 11500 extern "C"
Chris@69 11501 #endif
Chris@69 11502 char dlopen ();
Chris@69 11503 int
Chris@69 11504 main ()
Chris@69 11505 {
Chris@69 11506 return dlopen ();
Chris@69 11507 ;
Chris@69 11508 return 0;
Chris@69 11509 }
Chris@69 11510 _ACEOF
Chris@69 11511 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 11512 ac_cv_lib_dl_dlopen=yes
Chris@69 11513 else
Chris@69 11514 ac_cv_lib_dl_dlopen=no
Chris@69 11515 fi
Chris@69 11516 rm -f core conftest.err conftest.$ac_objext \
Chris@69 11517 conftest$ac_exeext conftest.$ac_ext
Chris@69 11518 LIBS=$ac_check_lib_save_LIBS
Chris@69 11519 fi
Chris@69 11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Chris@69 11521 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Chris@69 11522 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Chris@69 11523 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
Chris@69 11524 else
Chris@69 11525
Chris@69 11526 lt_cv_dlopen=dyld
Chris@69 11527 lt_cv_dlopen_libs=
Chris@69 11528 lt_cv_dlopen_self=yes
Chris@69 11529
Chris@69 11530 fi
Chris@69 11531
Chris@69 11532 ;;
Chris@69 11533
Chris@69 11534 tpf*)
Chris@69 11535 # Don't try to run any link tests for TPF. We know it's impossible
Chris@69 11536 # because TPF is a cross-compiler, and we know how we open DSOs.
Chris@69 11537 lt_cv_dlopen=dlopen
Chris@69 11538 lt_cv_dlopen_libs=
Chris@69 11539 lt_cv_dlopen_self=no
Chris@69 11540 ;;
Chris@69 11541
Chris@69 11542 *)
Chris@69 11543 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
Chris@69 11544 if test "x$ac_cv_func_shl_load" = xyes; then :
Chris@69 11545 lt_cv_dlopen=shl_load
Chris@69 11546 else
Chris@69 11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
Chris@69 11548 $as_echo_n "checking for shl_load in -ldld... " >&6; }
Chris@69 11549 if ${ac_cv_lib_dld_shl_load+:} false; then :
Chris@69 11550 $as_echo_n "(cached) " >&6
Chris@69 11551 else
Chris@69 11552 ac_check_lib_save_LIBS=$LIBS
Chris@69 11553 LIBS="-ldld $LIBS"
Chris@69 11554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 11555 /* end confdefs.h. */
Chris@69 11556
Chris@69 11557 /* Override any GCC internal prototype to avoid an error.
Chris@69 11558 Use char because int might match the return type of a GCC
Chris@69 11559 builtin and then its argument prototype would still apply. */
Chris@69 11560 #ifdef __cplusplus
Chris@69 11561 extern "C"
Chris@69 11562 #endif
Chris@69 11563 char shl_load ();
Chris@69 11564 int
Chris@69 11565 main ()
Chris@69 11566 {
Chris@69 11567 return shl_load ();
Chris@69 11568 ;
Chris@69 11569 return 0;
Chris@69 11570 }
Chris@69 11571 _ACEOF
Chris@69 11572 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 11573 ac_cv_lib_dld_shl_load=yes
Chris@69 11574 else
Chris@69 11575 ac_cv_lib_dld_shl_load=no
Chris@69 11576 fi
Chris@69 11577 rm -f core conftest.err conftest.$ac_objext \
Chris@69 11578 conftest$ac_exeext conftest.$ac_ext
Chris@69 11579 LIBS=$ac_check_lib_save_LIBS
Chris@69 11580 fi
Chris@69 11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
Chris@69 11582 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Chris@69 11583 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Chris@69 11584 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
Chris@69 11585 else
Chris@69 11586 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Chris@69 11587 if test "x$ac_cv_func_dlopen" = xyes; then :
Chris@69 11588 lt_cv_dlopen=dlopen
Chris@69 11589 else
Chris@69 11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Chris@69 11591 $as_echo_n "checking for dlopen in -ldl... " >&6; }
Chris@69 11592 if ${ac_cv_lib_dl_dlopen+:} false; then :
Chris@69 11593 $as_echo_n "(cached) " >&6
Chris@69 11594 else
Chris@69 11595 ac_check_lib_save_LIBS=$LIBS
Chris@69 11596 LIBS="-ldl $LIBS"
Chris@69 11597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 11598 /* end confdefs.h. */
Chris@69 11599
Chris@69 11600 /* Override any GCC internal prototype to avoid an error.
Chris@69 11601 Use char because int might match the return type of a GCC
Chris@69 11602 builtin and then its argument prototype would still apply. */
Chris@69 11603 #ifdef __cplusplus
Chris@69 11604 extern "C"
Chris@69 11605 #endif
Chris@69 11606 char dlopen ();
Chris@69 11607 int
Chris@69 11608 main ()
Chris@69 11609 {
Chris@69 11610 return dlopen ();
Chris@69 11611 ;
Chris@69 11612 return 0;
Chris@69 11613 }
Chris@69 11614 _ACEOF
Chris@69 11615 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 11616 ac_cv_lib_dl_dlopen=yes
Chris@69 11617 else
Chris@69 11618 ac_cv_lib_dl_dlopen=no
Chris@69 11619 fi
Chris@69 11620 rm -f core conftest.err conftest.$ac_objext \
Chris@69 11621 conftest$ac_exeext conftest.$ac_ext
Chris@69 11622 LIBS=$ac_check_lib_save_LIBS
Chris@69 11623 fi
Chris@69 11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Chris@69 11625 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Chris@69 11626 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Chris@69 11627 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
Chris@69 11628 else
Chris@69 11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
Chris@69 11630 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
Chris@69 11631 if ${ac_cv_lib_svld_dlopen+:} false; then :
Chris@69 11632 $as_echo_n "(cached) " >&6
Chris@69 11633 else
Chris@69 11634 ac_check_lib_save_LIBS=$LIBS
Chris@69 11635 LIBS="-lsvld $LIBS"
Chris@69 11636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 11637 /* end confdefs.h. */
Chris@69 11638
Chris@69 11639 /* Override any GCC internal prototype to avoid an error.
Chris@69 11640 Use char because int might match the return type of a GCC
Chris@69 11641 builtin and then its argument prototype would still apply. */
Chris@69 11642 #ifdef __cplusplus
Chris@69 11643 extern "C"
Chris@69 11644 #endif
Chris@69 11645 char dlopen ();
Chris@69 11646 int
Chris@69 11647 main ()
Chris@69 11648 {
Chris@69 11649 return dlopen ();
Chris@69 11650 ;
Chris@69 11651 return 0;
Chris@69 11652 }
Chris@69 11653 _ACEOF
Chris@69 11654 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 11655 ac_cv_lib_svld_dlopen=yes
Chris@69 11656 else
Chris@69 11657 ac_cv_lib_svld_dlopen=no
Chris@69 11658 fi
Chris@69 11659 rm -f core conftest.err conftest.$ac_objext \
Chris@69 11660 conftest$ac_exeext conftest.$ac_ext
Chris@69 11661 LIBS=$ac_check_lib_save_LIBS
Chris@69 11662 fi
Chris@69 11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
Chris@69 11664 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Chris@69 11665 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Chris@69 11666 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
Chris@69 11667 else
Chris@69 11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
Chris@69 11669 $as_echo_n "checking for dld_link in -ldld... " >&6; }
Chris@69 11670 if ${ac_cv_lib_dld_dld_link+:} false; then :
Chris@69 11671 $as_echo_n "(cached) " >&6
Chris@69 11672 else
Chris@69 11673 ac_check_lib_save_LIBS=$LIBS
Chris@69 11674 LIBS="-ldld $LIBS"
Chris@69 11675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 11676 /* end confdefs.h. */
Chris@69 11677
Chris@69 11678 /* Override any GCC internal prototype to avoid an error.
Chris@69 11679 Use char because int might match the return type of a GCC
Chris@69 11680 builtin and then its argument prototype would still apply. */
Chris@69 11681 #ifdef __cplusplus
Chris@69 11682 extern "C"
Chris@69 11683 #endif
Chris@69 11684 char dld_link ();
Chris@69 11685 int
Chris@69 11686 main ()
Chris@69 11687 {
Chris@69 11688 return dld_link ();
Chris@69 11689 ;
Chris@69 11690 return 0;
Chris@69 11691 }
Chris@69 11692 _ACEOF
Chris@69 11693 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 11694 ac_cv_lib_dld_dld_link=yes
Chris@69 11695 else
Chris@69 11696 ac_cv_lib_dld_dld_link=no
Chris@69 11697 fi
Chris@69 11698 rm -f core conftest.err conftest.$ac_objext \
Chris@69 11699 conftest$ac_exeext conftest.$ac_ext
Chris@69 11700 LIBS=$ac_check_lib_save_LIBS
Chris@69 11701 fi
Chris@69 11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
Chris@69 11703 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Chris@69 11704 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Chris@69 11705 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
Chris@69 11706 fi
Chris@69 11707
Chris@69 11708
Chris@69 11709 fi
Chris@69 11710
Chris@69 11711
Chris@69 11712 fi
Chris@69 11713
Chris@69 11714
Chris@69 11715 fi
Chris@69 11716
Chris@69 11717
Chris@69 11718 fi
Chris@69 11719
Chris@69 11720
Chris@69 11721 fi
Chris@69 11722
Chris@69 11723 ;;
Chris@69 11724 esac
Chris@69 11725
Chris@69 11726 if test no = "$lt_cv_dlopen"; then
Chris@69 11727 enable_dlopen=no
Chris@69 11728 else
Chris@69 11729 enable_dlopen=yes
Chris@69 11730 fi
Chris@69 11731
Chris@69 11732 case $lt_cv_dlopen in
Chris@69 11733 dlopen)
Chris@69 11734 save_CPPFLAGS=$CPPFLAGS
Chris@69 11735 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Chris@69 11736
Chris@69 11737 save_LDFLAGS=$LDFLAGS
Chris@69 11738 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Chris@69 11739
Chris@69 11740 save_LIBS=$LIBS
Chris@69 11741 LIBS="$lt_cv_dlopen_libs $LIBS"
Chris@69 11742
Chris@69 11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
Chris@69 11744 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
Chris@69 11745 if ${lt_cv_dlopen_self+:} false; then :
Chris@69 11746 $as_echo_n "(cached) " >&6
Chris@69 11747 else
Chris@69 11748 if test yes = "$cross_compiling"; then :
Chris@69 11749 lt_cv_dlopen_self=cross
Chris@69 11750 else
Chris@69 11751 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Chris@69 11752 lt_status=$lt_dlunknown
Chris@69 11753 cat > conftest.$ac_ext <<_LT_EOF
Chris@69 11754 #line $LINENO "configure"
Chris@69 11755 #include "confdefs.h"
Chris@69 11756
Chris@69 11757 #if HAVE_DLFCN_H
Chris@69 11758 #include <dlfcn.h>
Chris@69 11759 #endif
Chris@69 11760
Chris@69 11761 #include <stdio.h>
Chris@69 11762
Chris@69 11763 #ifdef RTLD_GLOBAL
Chris@69 11764 # define LT_DLGLOBAL RTLD_GLOBAL
Chris@69 11765 #else
Chris@69 11766 # ifdef DL_GLOBAL
Chris@69 11767 # define LT_DLGLOBAL DL_GLOBAL
Chris@69 11768 # else
Chris@69 11769 # define LT_DLGLOBAL 0
Chris@69 11770 # endif
Chris@69 11771 #endif
Chris@69 11772
Chris@69 11773 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Chris@69 11774 find out it does not work in some platform. */
Chris@69 11775 #ifndef LT_DLLAZY_OR_NOW
Chris@69 11776 # ifdef RTLD_LAZY
Chris@69 11777 # define LT_DLLAZY_OR_NOW RTLD_LAZY
Chris@69 11778 # else
Chris@69 11779 # ifdef DL_LAZY
Chris@69 11780 # define LT_DLLAZY_OR_NOW DL_LAZY
Chris@69 11781 # else
Chris@69 11782 # ifdef RTLD_NOW
Chris@69 11783 # define LT_DLLAZY_OR_NOW RTLD_NOW
Chris@69 11784 # else
Chris@69 11785 # ifdef DL_NOW
Chris@69 11786 # define LT_DLLAZY_OR_NOW DL_NOW
Chris@69 11787 # else
Chris@69 11788 # define LT_DLLAZY_OR_NOW 0
Chris@69 11789 # endif
Chris@69 11790 # endif
Chris@69 11791 # endif
Chris@69 11792 # endif
Chris@69 11793 #endif
Chris@69 11794
Chris@69 11795 /* When -fvisibility=hidden is used, assume the code has been annotated
Chris@69 11796 correspondingly for the symbols needed. */
Chris@69 11797 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Chris@69 11798 int fnord () __attribute__((visibility("default")));
Chris@69 11799 #endif
Chris@69 11800
Chris@69 11801 int fnord () { return 42; }
Chris@69 11802 int main ()
Chris@69 11803 {
Chris@69 11804 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Chris@69 11805 int status = $lt_dlunknown;
Chris@69 11806
Chris@69 11807 if (self)
Chris@69 11808 {
Chris@69 11809 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris@69 11810 else
Chris@69 11811 {
Chris@69 11812 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Chris@69 11813 else puts (dlerror ());
Chris@69 11814 }
Chris@69 11815 /* dlclose (self); */
Chris@69 11816 }
Chris@69 11817 else
Chris@69 11818 puts (dlerror ());
Chris@69 11819
Chris@69 11820 return status;
Chris@69 11821 }
Chris@69 11822 _LT_EOF
Chris@69 11823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@69 11824 (eval $ac_link) 2>&5
Chris@69 11825 ac_status=$?
Chris@69 11826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 11827 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
Chris@69 11828 (./conftest; exit; ) >&5 2>/dev/null
Chris@69 11829 lt_status=$?
Chris@69 11830 case x$lt_status in
Chris@69 11831 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
Chris@69 11832 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Chris@69 11833 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
Chris@69 11834 esac
Chris@69 11835 else :
Chris@69 11836 # compilation failed
Chris@69 11837 lt_cv_dlopen_self=no
Chris@69 11838 fi
Chris@69 11839 fi
Chris@69 11840 rm -fr conftest*
Chris@69 11841
Chris@69 11842
Chris@69 11843 fi
Chris@69 11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
Chris@69 11845 $as_echo "$lt_cv_dlopen_self" >&6; }
Chris@69 11846
Chris@69 11847 if test yes = "$lt_cv_dlopen_self"; then
Chris@69 11848 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Chris@69 11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
Chris@69 11850 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Chris@69 11851 if ${lt_cv_dlopen_self_static+:} false; then :
Chris@69 11852 $as_echo_n "(cached) " >&6
Chris@69 11853 else
Chris@69 11854 if test yes = "$cross_compiling"; then :
Chris@69 11855 lt_cv_dlopen_self_static=cross
Chris@69 11856 else
Chris@69 11857 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Chris@69 11858 lt_status=$lt_dlunknown
Chris@69 11859 cat > conftest.$ac_ext <<_LT_EOF
Chris@69 11860 #line $LINENO "configure"
Chris@69 11861 #include "confdefs.h"
Chris@69 11862
Chris@69 11863 #if HAVE_DLFCN_H
Chris@69 11864 #include <dlfcn.h>
Chris@69 11865 #endif
Chris@69 11866
Chris@69 11867 #include <stdio.h>
Chris@69 11868
Chris@69 11869 #ifdef RTLD_GLOBAL
Chris@69 11870 # define LT_DLGLOBAL RTLD_GLOBAL
Chris@69 11871 #else
Chris@69 11872 # ifdef DL_GLOBAL
Chris@69 11873 # define LT_DLGLOBAL DL_GLOBAL
Chris@69 11874 # else
Chris@69 11875 # define LT_DLGLOBAL 0
Chris@69 11876 # endif
Chris@69 11877 #endif
Chris@69 11878
Chris@69 11879 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Chris@69 11880 find out it does not work in some platform. */
Chris@69 11881 #ifndef LT_DLLAZY_OR_NOW
Chris@69 11882 # ifdef RTLD_LAZY
Chris@69 11883 # define LT_DLLAZY_OR_NOW RTLD_LAZY
Chris@69 11884 # else
Chris@69 11885 # ifdef DL_LAZY
Chris@69 11886 # define LT_DLLAZY_OR_NOW DL_LAZY
Chris@69 11887 # else
Chris@69 11888 # ifdef RTLD_NOW
Chris@69 11889 # define LT_DLLAZY_OR_NOW RTLD_NOW
Chris@69 11890 # else
Chris@69 11891 # ifdef DL_NOW
Chris@69 11892 # define LT_DLLAZY_OR_NOW DL_NOW
Chris@69 11893 # else
Chris@69 11894 # define LT_DLLAZY_OR_NOW 0
Chris@69 11895 # endif
Chris@69 11896 # endif
Chris@69 11897 # endif
Chris@69 11898 # endif
Chris@69 11899 #endif
Chris@69 11900
Chris@69 11901 /* When -fvisibility=hidden is used, assume the code has been annotated
Chris@69 11902 correspondingly for the symbols needed. */
Chris@69 11903 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Chris@69 11904 int fnord () __attribute__((visibility("default")));
Chris@69 11905 #endif
Chris@69 11906
Chris@69 11907 int fnord () { return 42; }
Chris@69 11908 int main ()
Chris@69 11909 {
Chris@69 11910 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Chris@69 11911 int status = $lt_dlunknown;
Chris@69 11912
Chris@69 11913 if (self)
Chris@69 11914 {
Chris@69 11915 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris@69 11916 else
Chris@69 11917 {
Chris@69 11918 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Chris@69 11919 else puts (dlerror ());
Chris@69 11920 }
Chris@69 11921 /* dlclose (self); */
Chris@69 11922 }
Chris@69 11923 else
Chris@69 11924 puts (dlerror ());
Chris@69 11925
Chris@69 11926 return status;
Chris@69 11927 }
Chris@69 11928 _LT_EOF
Chris@69 11929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Chris@69 11930 (eval $ac_link) 2>&5
Chris@69 11931 ac_status=$?
Chris@69 11932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@69 11933 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
Chris@69 11934 (./conftest; exit; ) >&5 2>/dev/null
Chris@69 11935 lt_status=$?
Chris@69 11936 case x$lt_status in
Chris@69 11937 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
Chris@69 11938 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Chris@69 11939 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
Chris@69 11940 esac
Chris@69 11941 else :
Chris@69 11942 # compilation failed
Chris@69 11943 lt_cv_dlopen_self_static=no
Chris@69 11944 fi
Chris@69 11945 fi
Chris@69 11946 rm -fr conftest*
Chris@69 11947
Chris@69 11948
Chris@69 11949 fi
Chris@69 11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
Chris@69 11951 $as_echo "$lt_cv_dlopen_self_static" >&6; }
Chris@69 11952 fi
Chris@69 11953
Chris@69 11954 CPPFLAGS=$save_CPPFLAGS
Chris@69 11955 LDFLAGS=$save_LDFLAGS
Chris@69 11956 LIBS=$save_LIBS
Chris@69 11957 ;;
Chris@69 11958 esac
Chris@69 11959
Chris@69 11960 case $lt_cv_dlopen_self in
Chris@69 11961 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
Chris@69 11962 *) enable_dlopen_self=unknown ;;
Chris@69 11963 esac
Chris@69 11964
Chris@69 11965 case $lt_cv_dlopen_self_static in
Chris@69 11966 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
Chris@69 11967 *) enable_dlopen_self_static=unknown ;;
Chris@69 11968 esac
Chris@69 11969 fi
Chris@69 11970
Chris@69 11971
Chris@69 11972
Chris@69 11973
Chris@69 11974
Chris@69 11975
Chris@69 11976
Chris@69 11977
Chris@69 11978
Chris@69 11979
Chris@69 11980
Chris@69 11981
Chris@69 11982
Chris@69 11983
Chris@69 11984
Chris@69 11985
Chris@69 11986
Chris@69 11987 striplib=
Chris@69 11988 old_striplib=
Chris@69 11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
Chris@69 11990 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
Chris@69 11991 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
Chris@69 11992 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
Chris@69 11993 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Chris@69 11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 11995 $as_echo "yes" >&6; }
Chris@69 11996 else
Chris@69 11997 # FIXME - insert some real tests, host_os isn't really good enough
Chris@69 11998 case $host_os in
Chris@69 11999 darwin*)
Chris@69 12000 if test -n "$STRIP"; then
Chris@69 12001 striplib="$STRIP -x"
Chris@69 12002 old_striplib="$STRIP -S"
Chris@69 12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 12004 $as_echo "yes" >&6; }
Chris@69 12005 else
Chris@69 12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 12007 $as_echo "no" >&6; }
Chris@69 12008 fi
Chris@69 12009 ;;
Chris@69 12010 *)
Chris@69 12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 12012 $as_echo "no" >&6; }
Chris@69 12013 ;;
Chris@69 12014 esac
Chris@69 12015 fi
Chris@69 12016
Chris@69 12017
Chris@69 12018
Chris@69 12019
Chris@69 12020
Chris@69 12021
Chris@69 12022
Chris@69 12023
Chris@69 12024
Chris@69 12025
Chris@69 12026
Chris@69 12027
Chris@69 12028 # Report what library types will actually be built
Chris@69 12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Chris@69 12030 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
Chris@69 12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Chris@69 12032 $as_echo "$can_build_shared" >&6; }
Chris@69 12033
Chris@69 12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Chris@69 12035 $as_echo_n "checking whether to build shared libraries... " >&6; }
Chris@69 12036 test no = "$can_build_shared" && enable_shared=no
Chris@69 12037
Chris@69 12038 # On AIX, shared libraries and static libraries use the same namespace, and
Chris@69 12039 # are all built from PIC.
Chris@69 12040 case $host_os in
Chris@69 12041 aix3*)
Chris@69 12042 test yes = "$enable_shared" && enable_static=no
Chris@69 12043 if test -n "$RANLIB"; then
Chris@69 12044 archive_cmds="$archive_cmds~\$RANLIB \$lib"
Chris@69 12045 postinstall_cmds='$RANLIB $lib'
Chris@69 12046 fi
Chris@69 12047 ;;
Chris@69 12048
Chris@69 12049 aix[4-9]*)
Chris@69 12050 if test ia64 != "$host_cpu"; then
Chris@69 12051 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
Chris@69 12052 yes,aix,yes) ;; # shared object as lib.so file only
Chris@69 12053 yes,svr4,*) ;; # shared object as lib.so archive member only
Chris@69 12054 yes,*) enable_static=no ;; # shared object in lib.a archive as well
Chris@69 12055 esac
Chris@69 12056 fi
Chris@69 12057 ;;
Chris@69 12058 esac
Chris@69 12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Chris@69 12060 $as_echo "$enable_shared" >&6; }
Chris@69 12061
Chris@69 12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Chris@69 12063 $as_echo_n "checking whether to build static libraries... " >&6; }
Chris@69 12064 # Make sure either enable_shared or enable_static is yes.
Chris@69 12065 test yes = "$enable_shared" || enable_static=yes
Chris@69 12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Chris@69 12067 $as_echo "$enable_static" >&6; }
Chris@69 12068
Chris@69 12069
Chris@69 12070
Chris@69 12071
Chris@69 12072 fi
Chris@69 12073 ac_ext=c
Chris@69 12074 ac_cpp='$CPP $CPPFLAGS'
Chris@69 12075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@69 12076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@69 12077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@69 12078
Chris@69 12079 CC=$lt_save_CC
Chris@69 12080
Chris@69 12081
Chris@69 12082
Chris@69 12083
Chris@69 12084
Chris@69 12085
Chris@69 12086
Chris@69 12087
Chris@69 12088
Chris@69 12089
Chris@69 12090
Chris@69 12091
Chris@69 12092
Chris@69 12093
Chris@69 12094
Chris@69 12095 ac_config_commands="$ac_config_commands libtool"
Chris@69 12096
Chris@69 12097
Chris@69 12098
Chris@69 12099
Chris@69 12100 # Only expand once:
Chris@69 12101
Chris@69 12102
Chris@69 12103
Chris@69 12104
Chris@69 12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
Chris@69 12106 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
Chris@69 12107 if ${ac_cv_prog_cc_c99+:} false; then :
Chris@69 12108 $as_echo_n "(cached) " >&6
Chris@69 12109 else
Chris@69 12110 ac_cv_prog_cc_c99=no
Chris@69 12111 ac_save_CC=$CC
Chris@69 12112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 12113 /* end confdefs.h. */
Chris@69 12114 #include <stdarg.h>
Chris@69 12115 #include <stdbool.h>
Chris@69 12116 #include <stdlib.h>
Chris@69 12117 #include <wchar.h>
Chris@69 12118 #include <stdio.h>
Chris@69 12119
Chris@69 12120 // Check varargs macros. These examples are taken from C99 6.10.3.5.
Chris@69 12121 #define debug(...) fprintf (stderr, __VA_ARGS__)
Chris@69 12122 #define showlist(...) puts (#__VA_ARGS__)
Chris@69 12123 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
Chris@69 12124 static void
Chris@69 12125 test_varargs_macros (void)
Chris@69 12126 {
Chris@69 12127 int x = 1234;
Chris@69 12128 int y = 5678;
Chris@69 12129 debug ("Flag");
Chris@69 12130 debug ("X = %d\n", x);
Chris@69 12131 showlist (The first, second, and third items.);
Chris@69 12132 report (x>y, "x is %d but y is %d", x, y);
Chris@69 12133 }
Chris@69 12134
Chris@69 12135 // Check long long types.
Chris@69 12136 #define BIG64 18446744073709551615ull
Chris@69 12137 #define BIG32 4294967295ul
Chris@69 12138 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
Chris@69 12139 #if !BIG_OK
Chris@69 12140 your preprocessor is broken;
Chris@69 12141 #endif
Chris@69 12142 #if BIG_OK
Chris@69 12143 #else
Chris@69 12144 your preprocessor is broken;
Chris@69 12145 #endif
Chris@69 12146 static long long int bignum = -9223372036854775807LL;
Chris@69 12147 static unsigned long long int ubignum = BIG64;
Chris@69 12148
Chris@69 12149 struct incomplete_array
Chris@69 12150 {
Chris@69 12151 int datasize;
Chris@69 12152 double data[];
Chris@69 12153 };
Chris@69 12154
Chris@69 12155 struct named_init {
Chris@69 12156 int number;
Chris@69 12157 const wchar_t *name;
Chris@69 12158 double average;
Chris@69 12159 };
Chris@69 12160
Chris@69 12161 typedef const char *ccp;
Chris@69 12162
Chris@69 12163 static inline int
Chris@69 12164 test_restrict (ccp restrict text)
Chris@69 12165 {
Chris@69 12166 // See if C++-style comments work.
Chris@69 12167 // Iterate through items via the restricted pointer.
Chris@69 12168 // Also check for declarations in for loops.
Chris@69 12169 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
Chris@69 12170 continue;
Chris@69 12171 return 0;
Chris@69 12172 }
Chris@69 12173
Chris@69 12174 // Check varargs and va_copy.
Chris@69 12175 static void
Chris@69 12176 test_varargs (const char *format, ...)
Chris@69 12177 {
Chris@69 12178 va_list args;
Chris@69 12179 va_start (args, format);
Chris@69 12180 va_list args_copy;
Chris@69 12181 va_copy (args_copy, args);
Chris@69 12182
Chris@69 12183 const char *str;
Chris@69 12184 int number;
Chris@69 12185 float fnumber;
Chris@69 12186
Chris@69 12187 while (*format)
Chris@69 12188 {
Chris@69 12189 switch (*format++)
Chris@69 12190 {
Chris@69 12191 case 's': // string
Chris@69 12192 str = va_arg (args_copy, const char *);
Chris@69 12193 break;
Chris@69 12194 case 'd': // int
Chris@69 12195 number = va_arg (args_copy, int);
Chris@69 12196 break;
Chris@69 12197 case 'f': // float
Chris@69 12198 fnumber = va_arg (args_copy, double);
Chris@69 12199 break;
Chris@69 12200 default:
Chris@69 12201 break;
Chris@69 12202 }
Chris@69 12203 }
Chris@69 12204 va_end (args_copy);
Chris@69 12205 va_end (args);
Chris@69 12206 }
Chris@69 12207
Chris@69 12208 int
Chris@69 12209 main ()
Chris@69 12210 {
Chris@69 12211
Chris@69 12212 // Check bool.
Chris@69 12213 _Bool success = false;
Chris@69 12214
Chris@69 12215 // Check restrict.
Chris@69 12216 if (test_restrict ("String literal") == 0)
Chris@69 12217 success = true;
Chris@69 12218 char *restrict newvar = "Another string";
Chris@69 12219
Chris@69 12220 // Check varargs.
Chris@69 12221 test_varargs ("s, d' f .", "string", 65, 34.234);
Chris@69 12222 test_varargs_macros ();
Chris@69 12223
Chris@69 12224 // Check flexible array members.
Chris@69 12225 struct incomplete_array *ia =
Chris@69 12226 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
Chris@69 12227 ia->datasize = 10;
Chris@69 12228 for (int i = 0; i < ia->datasize; ++i)
Chris@69 12229 ia->data[i] = i * 1.234;
Chris@69 12230
Chris@69 12231 // Check named initializers.
Chris@69 12232 struct named_init ni = {
Chris@69 12233 .number = 34,
Chris@69 12234 .name = L"Test wide string",
Chris@69 12235 .average = 543.34343,
Chris@69 12236 };
Chris@69 12237
Chris@69 12238 ni.number = 58;
Chris@69 12239
Chris@69 12240 int dynamic_array[ni.number];
Chris@69 12241 dynamic_array[ni.number - 1] = 543;
Chris@69 12242
Chris@69 12243 // work around unused variable warnings
Chris@69 12244 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
Chris@69 12245 || dynamic_array[ni.number - 1] != 543);
Chris@69 12246
Chris@69 12247 ;
Chris@69 12248 return 0;
Chris@69 12249 }
Chris@69 12250 _ACEOF
Chris@69 12251 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
Chris@69 12252 do
Chris@69 12253 CC="$ac_save_CC $ac_arg"
Chris@69 12254 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 12255 ac_cv_prog_cc_c99=$ac_arg
Chris@69 12256 fi
Chris@69 12257 rm -f core conftest.err conftest.$ac_objext
Chris@69 12258 test "x$ac_cv_prog_cc_c99" != "xno" && break
Chris@69 12259 done
Chris@69 12260 rm -f conftest.$ac_ext
Chris@69 12261 CC=$ac_save_CC
Chris@69 12262
Chris@69 12263 fi
Chris@69 12264 # AC_CACHE_VAL
Chris@69 12265 case "x$ac_cv_prog_cc_c99" in
Chris@69 12266 x)
Chris@69 12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Chris@69 12268 $as_echo "none needed" >&6; } ;;
Chris@69 12269 xno)
Chris@69 12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Chris@69 12271 $as_echo "unsupported" >&6; } ;;
Chris@69 12272 *)
Chris@69 12273 CC="$CC $ac_cv_prog_cc_c99"
Chris@69 12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
Chris@69 12275 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
Chris@69 12276 esac
Chris@69 12277 if test "x$ac_cv_prog_cc_c99" != xno; then :
Chris@69 12278
Chris@69 12279 fi
Chris@69 12280
Chris@69 12281
Chris@69 12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Chris@69 12283 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Chris@69 12284 if ${ac_cv_c_const+:} false; then :
Chris@69 12285 $as_echo_n "(cached) " >&6
Chris@69 12286 else
Chris@69 12287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 12288 /* end confdefs.h. */
Chris@69 12289
Chris@69 12290 int
Chris@69 12291 main ()
Chris@69 12292 {
Chris@69 12293
Chris@69 12294 #ifndef __cplusplus
Chris@69 12295 /* Ultrix mips cc rejects this sort of thing. */
Chris@69 12296 typedef int charset[2];
Chris@69 12297 const charset cs = { 0, 0 };
Chris@69 12298 /* SunOS 4.1.1 cc rejects this. */
Chris@69 12299 char const *const *pcpcc;
Chris@69 12300 char **ppc;
Chris@69 12301 /* NEC SVR4.0.2 mips cc rejects this. */
Chris@69 12302 struct point {int x, y;};
Chris@69 12303 static struct point const zero = {0,0};
Chris@69 12304 /* AIX XL C 1.02.0.0 rejects this.
Chris@69 12305 It does not let you subtract one const X* pointer from another in
Chris@69 12306 an arm of an if-expression whose if-part is not a constant
Chris@69 12307 expression */
Chris@69 12308 const char *g = "string";
Chris@69 12309 pcpcc = &g + (g ? g-g : 0);
Chris@69 12310 /* HPUX 7.0 cc rejects these. */
Chris@69 12311 ++pcpcc;
Chris@69 12312 ppc = (char**) pcpcc;
Chris@69 12313 pcpcc = (char const *const *) ppc;
Chris@69 12314 { /* SCO 3.2v4 cc rejects this sort of thing. */
Chris@69 12315 char tx;
Chris@69 12316 char *t = &tx;
Chris@69 12317 char const *s = 0 ? (char *) 0 : (char const *) 0;
Chris@69 12318
Chris@69 12319 *t++ = 0;
Chris@69 12320 if (s) return 0;
Chris@69 12321 }
Chris@69 12322 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
Chris@69 12323 int x[] = {25, 17};
Chris@69 12324 const int *foo = &x[0];
Chris@69 12325 ++foo;
Chris@69 12326 }
Chris@69 12327 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
Chris@69 12328 typedef const int *iptr;
Chris@69 12329 iptr p = 0;
Chris@69 12330 ++p;
Chris@69 12331 }
Chris@69 12332 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Chris@69 12333 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Chris@69 12334 struct s { int j; const int *ap[3]; } bx;
Chris@69 12335 struct s *b = &bx; b->j = 5;
Chris@69 12336 }
Chris@69 12337 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
Chris@69 12338 const int foo = 10;
Chris@69 12339 if (!foo) return 0;
Chris@69 12340 }
Chris@69 12341 return !cs[0] && !zero.x;
Chris@69 12342 #endif
Chris@69 12343
Chris@69 12344 ;
Chris@69 12345 return 0;
Chris@69 12346 }
Chris@69 12347 _ACEOF
Chris@69 12348 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 12349 ac_cv_c_const=yes
Chris@69 12350 else
Chris@69 12351 ac_cv_c_const=no
Chris@69 12352 fi
Chris@69 12353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 12354 fi
Chris@69 12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Chris@69 12356 $as_echo "$ac_cv_c_const" >&6; }
Chris@69 12357 if test $ac_cv_c_const = no; then
Chris@69 12358
Chris@69 12359 $as_echo "#define const /**/" >>confdefs.h
Chris@69 12360
Chris@69 12361 fi
Chris@69 12362
Chris@69 12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Chris@69 12364 $as_echo_n "checking for inline... " >&6; }
Chris@69 12365 if ${ac_cv_c_inline+:} false; then :
Chris@69 12366 $as_echo_n "(cached) " >&6
Chris@69 12367 else
Chris@69 12368 ac_cv_c_inline=no
Chris@69 12369 for ac_kw in inline __inline__ __inline; do
Chris@69 12370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 12371 /* end confdefs.h. */
Chris@69 12372 #ifndef __cplusplus
Chris@69 12373 typedef int foo_t;
Chris@69 12374 static $ac_kw foo_t static_foo () {return 0; }
Chris@69 12375 $ac_kw foo_t foo () {return 0; }
Chris@69 12376 #endif
Chris@69 12377
Chris@69 12378 _ACEOF
Chris@69 12379 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 12380 ac_cv_c_inline=$ac_kw
Chris@69 12381 fi
Chris@69 12382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 12383 test "$ac_cv_c_inline" != no && break
Chris@69 12384 done
Chris@69 12385
Chris@69 12386 fi
Chris@69 12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Chris@69 12388 $as_echo "$ac_cv_c_inline" >&6; }
Chris@69 12389
Chris@69 12390 case $ac_cv_c_inline in
Chris@69 12391 inline | yes) ;;
Chris@69 12392 *)
Chris@69 12393 case $ac_cv_c_inline in
Chris@69 12394 no) ac_val=;;
Chris@69 12395 *) ac_val=$ac_cv_c_inline;;
Chris@69 12396 esac
Chris@69 12397 cat >>confdefs.h <<_ACEOF
Chris@69 12398 #ifndef __cplusplus
Chris@69 12399 #define inline $ac_val
Chris@69 12400 #endif
Chris@69 12401 _ACEOF
Chris@69 12402 ;;
Chris@69 12403 esac
Chris@69 12404
Chris@69 12405
Chris@69 12406 # By default we simply use the C compiler to build assembly code.
Chris@69 12407
Chris@69 12408 test "${CCAS+set}" = set || CCAS=$CC
Chris@69 12409 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
Chris@69 12410
Chris@69 12411
Chris@69 12412
Chris@69 12413 depcc="$CCAS" am_compiler_list=
Chris@69 12414
Chris@69 12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Chris@69 12416 $as_echo_n "checking dependency style of $depcc... " >&6; }
Chris@69 12417 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
Chris@69 12418 $as_echo_n "(cached) " >&6
Chris@69 12419 else
Chris@69 12420 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
Chris@69 12421 # We make a subdir and do the tests there. Otherwise we can end up
Chris@69 12422 # making bogus files that we don't know about and never remove. For
Chris@69 12423 # instance it was reported that on HP-UX the gcc test will end up
Chris@69 12424 # making a dummy file named 'D' -- because '-MD' means "put the output
Chris@69 12425 # in D".
Chris@69 12426 rm -rf conftest.dir
Chris@69 12427 mkdir conftest.dir
Chris@69 12428 # Copy depcomp to subdir because otherwise we won't find it if we're
Chris@69 12429 # using a relative directory.
Chris@69 12430 cp "$am_depcomp" conftest.dir
Chris@69 12431 cd conftest.dir
Chris@69 12432 # We will build objects and dependencies in a subdirectory because
Chris@69 12433 # it helps to detect inapplicable dependency modes. For instance
Chris@69 12434 # both Tru64's cc and ICC support -MD to output dependencies as a
Chris@69 12435 # side effect of compilation, but ICC will put the dependencies in
Chris@69 12436 # the current directory while Tru64 will put them in the object
Chris@69 12437 # directory.
Chris@69 12438 mkdir sub
Chris@69 12439
Chris@69 12440 am_cv_CCAS_dependencies_compiler_type=none
Chris@69 12441 if test "$am_compiler_list" = ""; then
Chris@69 12442 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
Chris@69 12443 fi
Chris@69 12444 am__universal=false
Chris@69 12445
Chris@69 12446
Chris@69 12447 for depmode in $am_compiler_list; do
Chris@69 12448 # Setup a source with many dependencies, because some compilers
Chris@69 12449 # like to wrap large dependency lists on column 80 (with \), and
Chris@69 12450 # we should not choose a depcomp mode which is confused by this.
Chris@69 12451 #
Chris@69 12452 # We need to recreate these files for each test, as the compiler may
Chris@69 12453 # overwrite some of them when testing with obscure command lines.
Chris@69 12454 # This happens at least with the AIX C compiler.
Chris@69 12455 : > sub/conftest.c
Chris@69 12456 for i in 1 2 3 4 5 6; do
Chris@69 12457 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Chris@69 12458 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
Chris@69 12459 # Solaris 10 /bin/sh.
Chris@69 12460 echo '/* dummy */' > sub/conftst$i.h
Chris@69 12461 done
Chris@69 12462 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Chris@69 12463
Chris@69 12464 # We check with '-c' and '-o' for the sake of the "dashmstdout"
Chris@69 12465 # mode. It turns out that the SunPro C++ compiler does not properly
Chris@69 12466 # handle '-M -o', and we need to detect this. Also, some Intel
Chris@69 12467 # versions had trouble with output in subdirs.
Chris@69 12468 am__obj=sub/conftest.${OBJEXT-o}
Chris@69 12469 am__minus_obj="-o $am__obj"
Chris@69 12470 case $depmode in
Chris@69 12471 gcc)
Chris@69 12472 # This depmode causes a compiler race in universal mode.
Chris@69 12473 test "$am__universal" = false || continue
Chris@69 12474 ;;
Chris@69 12475 nosideeffect)
Chris@69 12476 # After this tag, mechanisms are not by side-effect, so they'll
Chris@69 12477 # only be used when explicitly requested.
Chris@69 12478 if test "x$enable_dependency_tracking" = xyes; then
Chris@69 12479 continue
Chris@69 12480 else
Chris@69 12481 break
Chris@69 12482 fi
Chris@69 12483 ;;
Chris@69 12484 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
Chris@69 12485 # This compiler won't grok '-c -o', but also, the minuso test has
Chris@69 12486 # not run yet. These depmodes are late enough in the game, and
Chris@69 12487 # so weak that their functioning should not be impacted.
Chris@69 12488 am__obj=conftest.${OBJEXT-o}
Chris@69 12489 am__minus_obj=
Chris@69 12490 ;;
Chris@69 12491 none) break ;;
Chris@69 12492 esac
Chris@69 12493 if depmode=$depmode \
Chris@69 12494 source=sub/conftest.c object=$am__obj \
Chris@69 12495 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Chris@69 12496 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Chris@69 12497 >/dev/null 2>conftest.err &&
Chris@69 12498 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@69 12499 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Chris@69 12500 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Chris@69 12501 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Chris@69 12502 # icc doesn't choke on unknown options, it will just issue warnings
Chris@69 12503 # or remarks (even with -Werror). So we grep stderr for any message
Chris@69 12504 # that says an option was ignored or not supported.
Chris@69 12505 # When given -MP, icc 7.0 and 7.1 complain thusly:
Chris@69 12506 # icc: Command line warning: ignoring option '-M'; no argument required
Chris@69 12507 # The diagnosis changed in icc 8.0:
Chris@69 12508 # icc: Command line remark: option '-MP' not supported
Chris@69 12509 if (grep 'ignoring option' conftest.err ||
Chris@69 12510 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Chris@69 12511 am_cv_CCAS_dependencies_compiler_type=$depmode
Chris@69 12512 break
Chris@69 12513 fi
Chris@69 12514 fi
Chris@69 12515 done
Chris@69 12516
Chris@69 12517 cd ..
Chris@69 12518 rm -rf conftest.dir
Chris@69 12519 else
Chris@69 12520 am_cv_CCAS_dependencies_compiler_type=none
Chris@69 12521 fi
Chris@69 12522
Chris@69 12523 fi
Chris@69 12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
Chris@69 12525 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
Chris@69 12526 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
Chris@69 12527
Chris@69 12528 if
Chris@69 12529 test "x$enable_dependency_tracking" != xno \
Chris@69 12530 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
Chris@69 12531 am__fastdepCCAS_TRUE=
Chris@69 12532 am__fastdepCCAS_FALSE='#'
Chris@69 12533 else
Chris@69 12534 am__fastdepCCAS_TRUE='#'
Chris@69 12535 am__fastdepCCAS_FALSE=
Chris@69 12536 fi
Chris@69 12537
Chris@69 12538
Chris@69 12539
Chris@69 12540
Chris@69 12541 $as_echo "#define OPUS_BUILD /**/" >>confdefs.h
Chris@69 12542
Chris@69 12543
Chris@69 12544 #Use a hacked up version of autoconf's AC_C_RESTRICT because it's not
Chris@69 12545 #strong enough a test to detect old buggy versions of GCC (e.g. 2.95.3)
Chris@69 12546 #Note: Both this and the test for variable-size arrays below are also
Chris@69 12547 # done by AC_PROG_CC_C99, but not thoroughly enough apparently.
Chris@69 12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
Chris@69 12549 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
Chris@69 12550 if ${ac_cv_c_restrict+:} false; then :
Chris@69 12551 $as_echo_n "(cached) " >&6
Chris@69 12552 else
Chris@69 12553 ac_cv_c_restrict=no
Chris@69 12554 # The order here caters to the fact that C++ does not require restrict.
Chris@69 12555 for ac_kw in __restrict __restrict__ _Restrict restrict; do
Chris@69 12556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 12557 /* end confdefs.h. */
Chris@69 12558 typedef int * int_ptr;
Chris@69 12559 int foo (int_ptr $ac_kw ip, int * $ac_kw baz[]) {
Chris@69 12560 return ip[0];
Chris@69 12561 }
Chris@69 12562 int
Chris@69 12563 main ()
Chris@69 12564 {
Chris@69 12565 int s[1];
Chris@69 12566 int * $ac_kw t = s;
Chris@69 12567 t[0] = 0;
Chris@69 12568 return foo(t, (void *)0)
Chris@69 12569 ;
Chris@69 12570 return 0;
Chris@69 12571 }
Chris@69 12572 _ACEOF
Chris@69 12573 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 12574 ac_cv_c_restrict=$ac_kw
Chris@69 12575 fi
Chris@69 12576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 12577 test "$ac_cv_c_restrict" != no && break
Chris@69 12578 done
Chris@69 12579
Chris@69 12580 fi
Chris@69 12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
Chris@69 12582 $as_echo "$ac_cv_c_restrict" >&6; }
Chris@69 12583
Chris@69 12584
Chris@69 12585
Chris@69 12586 case $ac_cv_c_restrict in
Chris@69 12587 restrict) ;;
Chris@69 12588 no) $as_echo "#define restrict /**/" >>confdefs.h
Chris@69 12589 ;;
Chris@69 12590 *) cat >>confdefs.h <<_ACEOF
Chris@69 12591 #define restrict $ac_cv_c_restrict
Chris@69 12592 _ACEOF
Chris@69 12593 ;;
Chris@69 12594 esac
Chris@69 12595
Chris@69 12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 variable-size arrays" >&5
Chris@69 12597 $as_echo_n "checking for C99 variable-size arrays... " >&6; }
Chris@69 12598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 12599 /* end confdefs.h. */
Chris@69 12600
Chris@69 12601 int
Chris@69 12602 main ()
Chris@69 12603 {
Chris@69 12604 static int x; char a[++x]; a[sizeof a - 1] = 0; int N; return a[0];
Chris@69 12605 ;
Chris@69 12606 return 0;
Chris@69 12607 }
Chris@69 12608 _ACEOF
Chris@69 12609 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 12610 has_var_arrays=yes
Chris@69 12611 use_alloca="no (using var arrays)"
Chris@69 12612
Chris@69 12613 $as_echo "#define VAR_ARRAYS 1" >>confdefs.h
Chris@69 12614
Chris@69 12615
Chris@69 12616 else
Chris@69 12617
Chris@69 12618 has_var_arrays=no
Chris@69 12619
Chris@69 12620 fi
Chris@69 12621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_var_arrays" >&5
Chris@69 12623 $as_echo "$has_var_arrays" >&6; }
Chris@69 12624
Chris@69 12625 if test "$has_var_arrays" = "no"; then :
Chris@69 12626
Chris@69 12627 for ac_header in alloca.h
Chris@69 12628 do :
Chris@69 12629 ac_fn_c_check_header_mongrel "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
Chris@69 12630 if test "x$ac_cv_header_alloca_h" = xyes; then :
Chris@69 12631 cat >>confdefs.h <<_ACEOF
Chris@69 12632 #define HAVE_ALLOCA_H 1
Chris@69 12633 _ACEOF
Chris@69 12634
Chris@69 12635 fi
Chris@69 12636
Chris@69 12637 done
Chris@69 12638
Chris@69 12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Chris@69 12640 $as_echo_n "checking for alloca... " >&6; }
Chris@69 12641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 12642 /* end confdefs.h. */
Chris@69 12643 #include <alloca.h>
Chris@69 12644 int
Chris@69 12645 main ()
Chris@69 12646 {
Chris@69 12647 int foo=10; int *array = alloca(foo);
Chris@69 12648 ;
Chris@69 12649 return 0;
Chris@69 12650 }
Chris@69 12651 _ACEOF
Chris@69 12652 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 12653 use_alloca=yes;
Chris@69 12654
Chris@69 12655 $as_echo "#define USE_ALLOCA /**/" >>confdefs.h
Chris@69 12656
Chris@69 12657
Chris@69 12658 else
Chris@69 12659
Chris@69 12660 use_alloca=no
Chris@69 12661
Chris@69 12662 fi
Chris@69 12663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_alloca" >&5
Chris@69 12665 $as_echo "$use_alloca" >&6; }
Chris@69 12666
Chris@69 12667 fi
Chris@69 12668
Chris@69 12669 LIBM=
Chris@69 12670 case $host in
Chris@69 12671 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
Chris@69 12672 # These system don't have libm, or don't need it
Chris@69 12673 ;;
Chris@69 12674 *-ncr-sysv4.3*)
Chris@69 12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
Chris@69 12676 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
Chris@69 12677 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
Chris@69 12678 $as_echo_n "(cached) " >&6
Chris@69 12679 else
Chris@69 12680 ac_check_lib_save_LIBS=$LIBS
Chris@69 12681 LIBS="-lmw $LIBS"
Chris@69 12682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 12683 /* end confdefs.h. */
Chris@69 12684
Chris@69 12685 /* Override any GCC internal prototype to avoid an error.
Chris@69 12686 Use char because int might match the return type of a GCC
Chris@69 12687 builtin and then its argument prototype would still apply. */
Chris@69 12688 #ifdef __cplusplus
Chris@69 12689 extern "C"
Chris@69 12690 #endif
Chris@69 12691 char _mwvalidcheckl ();
Chris@69 12692 int
Chris@69 12693 main ()
Chris@69 12694 {
Chris@69 12695 return _mwvalidcheckl ();
Chris@69 12696 ;
Chris@69 12697 return 0;
Chris@69 12698 }
Chris@69 12699 _ACEOF
Chris@69 12700 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 12701 ac_cv_lib_mw__mwvalidcheckl=yes
Chris@69 12702 else
Chris@69 12703 ac_cv_lib_mw__mwvalidcheckl=no
Chris@69 12704 fi
Chris@69 12705 rm -f core conftest.err conftest.$ac_objext \
Chris@69 12706 conftest$ac_exeext conftest.$ac_ext
Chris@69 12707 LIBS=$ac_check_lib_save_LIBS
Chris@69 12708 fi
Chris@69 12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
Chris@69 12710 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
Chris@69 12711 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
Chris@69 12712 LIBM=-lmw
Chris@69 12713 fi
Chris@69 12714
Chris@69 12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
Chris@69 12716 $as_echo_n "checking for cos in -lm... " >&6; }
Chris@69 12717 if ${ac_cv_lib_m_cos+:} false; then :
Chris@69 12718 $as_echo_n "(cached) " >&6
Chris@69 12719 else
Chris@69 12720 ac_check_lib_save_LIBS=$LIBS
Chris@69 12721 LIBS="-lm $LIBS"
Chris@69 12722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 12723 /* end confdefs.h. */
Chris@69 12724
Chris@69 12725 /* Override any GCC internal prototype to avoid an error.
Chris@69 12726 Use char because int might match the return type of a GCC
Chris@69 12727 builtin and then its argument prototype would still apply. */
Chris@69 12728 #ifdef __cplusplus
Chris@69 12729 extern "C"
Chris@69 12730 #endif
Chris@69 12731 char cos ();
Chris@69 12732 int
Chris@69 12733 main ()
Chris@69 12734 {
Chris@69 12735 return cos ();
Chris@69 12736 ;
Chris@69 12737 return 0;
Chris@69 12738 }
Chris@69 12739 _ACEOF
Chris@69 12740 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 12741 ac_cv_lib_m_cos=yes
Chris@69 12742 else
Chris@69 12743 ac_cv_lib_m_cos=no
Chris@69 12744 fi
Chris@69 12745 rm -f core conftest.err conftest.$ac_objext \
Chris@69 12746 conftest$ac_exeext conftest.$ac_ext
Chris@69 12747 LIBS=$ac_check_lib_save_LIBS
Chris@69 12748 fi
Chris@69 12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
Chris@69 12750 $as_echo "$ac_cv_lib_m_cos" >&6; }
Chris@69 12751 if test "x$ac_cv_lib_m_cos" = xyes; then :
Chris@69 12752 LIBM="$LIBM -lm"
Chris@69 12753 fi
Chris@69 12754
Chris@69 12755 ;;
Chris@69 12756 *)
Chris@69 12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
Chris@69 12758 $as_echo_n "checking for cos in -lm... " >&6; }
Chris@69 12759 if ${ac_cv_lib_m_cos+:} false; then :
Chris@69 12760 $as_echo_n "(cached) " >&6
Chris@69 12761 else
Chris@69 12762 ac_check_lib_save_LIBS=$LIBS
Chris@69 12763 LIBS="-lm $LIBS"
Chris@69 12764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 12765 /* end confdefs.h. */
Chris@69 12766
Chris@69 12767 /* Override any GCC internal prototype to avoid an error.
Chris@69 12768 Use char because int might match the return type of a GCC
Chris@69 12769 builtin and then its argument prototype would still apply. */
Chris@69 12770 #ifdef __cplusplus
Chris@69 12771 extern "C"
Chris@69 12772 #endif
Chris@69 12773 char cos ();
Chris@69 12774 int
Chris@69 12775 main ()
Chris@69 12776 {
Chris@69 12777 return cos ();
Chris@69 12778 ;
Chris@69 12779 return 0;
Chris@69 12780 }
Chris@69 12781 _ACEOF
Chris@69 12782 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 12783 ac_cv_lib_m_cos=yes
Chris@69 12784 else
Chris@69 12785 ac_cv_lib_m_cos=no
Chris@69 12786 fi
Chris@69 12787 rm -f core conftest.err conftest.$ac_objext \
Chris@69 12788 conftest$ac_exeext conftest.$ac_ext
Chris@69 12789 LIBS=$ac_check_lib_save_LIBS
Chris@69 12790 fi
Chris@69 12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
Chris@69 12792 $as_echo "$ac_cv_lib_m_cos" >&6; }
Chris@69 12793 if test "x$ac_cv_lib_m_cos" = xyes; then :
Chris@69 12794 LIBM=-lm
Chris@69 12795 fi
Chris@69 12796
Chris@69 12797 ;;
Chris@69 12798 esac
Chris@69 12799
Chris@69 12800
Chris@69 12801
Chris@69 12802 # Check whether --enable-fixed-point was given.
Chris@69 12803 if test "${enable_fixed_point+set}" = set; then :
Chris@69 12804 enableval=$enable_fixed_point;
Chris@69 12805 else
Chris@69 12806 enable_fixed_point=no
Chris@69 12807 fi
Chris@69 12808
Chris@69 12809
Chris@69 12810 if test "$enable_fixed_point" = "yes"; then :
Chris@69 12811
Chris@69 12812 enable_float="no"
Chris@69 12813
Chris@69 12814 $as_echo "#define FIXED_POINT 1" >>confdefs.h
Chris@69 12815
Chris@69 12816 PC_BUILD="fixed-point"
Chris@69 12817
Chris@69 12818 else
Chris@69 12819
Chris@69 12820 enable_float="yes";
Chris@69 12821 PC_BUILD="floating-point"
Chris@69 12822
Chris@69 12823 fi
Chris@69 12824
Chris@69 12825 if test "$enable_fixed_point" = "yes"; then
Chris@69 12826 FIXED_POINT_TRUE=
Chris@69 12827 FIXED_POINT_FALSE='#'
Chris@69 12828 else
Chris@69 12829 FIXED_POINT_TRUE='#'
Chris@69 12830 FIXED_POINT_FALSE=
Chris@69 12831 fi
Chris@69 12832
Chris@69 12833
Chris@69 12834 # Check whether --enable-fixed-point-debug was given.
Chris@69 12835 if test "${enable_fixed_point_debug+set}" = set; then :
Chris@69 12836 enableval=$enable_fixed_point_debug;
Chris@69 12837 else
Chris@69 12838 enable_fixed_point_debug=no
Chris@69 12839 fi
Chris@69 12840
Chris@69 12841
Chris@69 12842 if test "$enable_fixed_point_debug" = "yes"; then :
Chris@69 12843
Chris@69 12844
Chris@69 12845 $as_echo "#define FIXED_DEBUG 1" >>confdefs.h
Chris@69 12846
Chris@69 12847
Chris@69 12848 fi
Chris@69 12849
Chris@69 12850 # Check whether --enable-float_api was given.
Chris@69 12851 if test "${enable_float_api+set}" = set; then :
Chris@69 12852 enableval=$enable_float_api;
Chris@69 12853 else
Chris@69 12854 enable_float_api=yes
Chris@69 12855 fi
Chris@69 12856
Chris@69 12857
Chris@69 12858 if test "$enable_float_api" = "no"; then
Chris@69 12859 DISABLE_FLOAT_API_TRUE=
Chris@69 12860 DISABLE_FLOAT_API_FALSE='#'
Chris@69 12861 else
Chris@69 12862 DISABLE_FLOAT_API_TRUE='#'
Chris@69 12863 DISABLE_FLOAT_API_FALSE=
Chris@69 12864 fi
Chris@69 12865
Chris@69 12866
Chris@69 12867 if test "$enable_float_api" = "no"; then :
Chris@69 12868
Chris@69 12869
Chris@69 12870 $as_echo "#define DISABLE_FLOAT_API 1" >>confdefs.h
Chris@69 12871
Chris@69 12872
Chris@69 12873 fi
Chris@69 12874
Chris@69 12875 # Check whether --enable-custom-modes was given.
Chris@69 12876 if test "${enable_custom_modes+set}" = set; then :
Chris@69 12877 enableval=$enable_custom_modes;
Chris@69 12878 else
Chris@69 12879 enable_custom_modes=no
Chris@69 12880 fi
Chris@69 12881
Chris@69 12882
Chris@69 12883 if test "$enable_custom_modes" = "yes"; then :
Chris@69 12884
Chris@69 12885
Chris@69 12886 $as_echo "#define CUSTOM_MODES 1" >>confdefs.h
Chris@69 12887
Chris@69 12888 PC_BUILD="$PC_BUILD, custom modes"
Chris@69 12889
Chris@69 12890 fi
Chris@69 12891
Chris@69 12892 if test "$enable_custom_modes" = "yes"; then
Chris@69 12893 CUSTOM_MODES_TRUE=
Chris@69 12894 CUSTOM_MODES_FALSE='#'
Chris@69 12895 else
Chris@69 12896 CUSTOM_MODES_TRUE='#'
Chris@69 12897 CUSTOM_MODES_FALSE=
Chris@69 12898 fi
Chris@69 12899
Chris@69 12900
Chris@69 12901 has_float_approx=no
Chris@69 12902 #case "$host_cpu" in
Chris@69 12903 #i[[3456]]86 | x86_64 | powerpc64 | powerpc32 | ia64)
Chris@69 12904 # has_float_approx=yes
Chris@69 12905 # ;;
Chris@69 12906 #esac
Chris@69 12907
Chris@69 12908 # Check whether --enable-float-approx was given.
Chris@69 12909 if test "${enable_float_approx+set}" = set; then :
Chris@69 12910 enableval=$enable_float_approx; if test "$enable_float_approx" = "yes"; then
Chris@69 12911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Floating point approximations are not supported on all platforms." >&5
Chris@69 12912 $as_echo "$as_me: WARNING: Floating point approximations are not supported on all platforms." >&2;}
Chris@69 12913 fi
Chris@69 12914
Chris@69 12915 else
Chris@69 12916 enable_float_approx=$has_float_approx
Chris@69 12917 fi
Chris@69 12918
Chris@69 12919
Chris@69 12920 if test "$enable_float_approx" = "yes"; then :
Chris@69 12921
Chris@69 12922
Chris@69 12923 $as_echo "#define FLOAT_APPROX 1" >>confdefs.h
Chris@69 12924
Chris@69 12925
Chris@69 12926 fi
Chris@69 12927
Chris@69 12928 # Check whether --enable-asm was given.
Chris@69 12929 if test "${enable_asm+set}" = set; then :
Chris@69 12930 enableval=$enable_asm;
Chris@69 12931 else
Chris@69 12932 enable_asm=yes
Chris@69 12933 fi
Chris@69 12934
Chris@69 12935
Chris@69 12936 # Check whether --enable-rtcd was given.
Chris@69 12937 if test "${enable_rtcd+set}" = set; then :
Chris@69 12938 enableval=$enable_rtcd;
Chris@69 12939 else
Chris@69 12940 enable_rtcd=yes
Chris@69 12941 fi
Chris@69 12942
Chris@69 12943
Chris@69 12944 # Check whether --enable-intrinsics was given.
Chris@69 12945 if test "${enable_intrinsics+set}" = set; then :
Chris@69 12946 enableval=$enable_intrinsics;
Chris@69 12947 else
Chris@69 12948 enable_intrinsics=yes
Chris@69 12949 fi
Chris@69 12950
Chris@69 12951
Chris@69 12952 rtcd_support=no
Chris@69 12953 cpu_arm=no
Chris@69 12954
Chris@69 12955 if test x"${enable_asm}" = x"yes"; then :
Chris@69 12956
Chris@69 12957 inline_optimization="No inline ASM for your platform, please send patches"
Chris@69 12958 case $host_cpu in
Chris@69 12959 arm*)
Chris@69 12960 if test "$enable_float" != "yes"; then :
Chris@69 12961
Chris@69 12962 cpu_arm=yes
Chris@69 12963
Chris@69 12964 $as_echo "#define OPUS_ARM_ASM /**/" >>confdefs.h
Chris@69 12965
Chris@69 12966
Chris@69 12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports gcc-style inline assembly" >&5
Chris@69 12968 $as_echo_n "checking if compiler supports gcc-style inline assembly... " >&6; }
Chris@69 12969
Chris@69 12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 12971 /* end confdefs.h. */
Chris@69 12972
Chris@69 12973 int
Chris@69 12974 main ()
Chris@69 12975 {
Chris@69 12976
Chris@69 12977 #ifdef __GNUC_MINOR__
Chris@69 12978 #if (__GNUC__ * 1000 + __GNUC_MINOR__) < 3004
Chris@69 12979 #error GCC before 3.4 has critical bugs compiling inline assembly
Chris@69 12980 #endif
Chris@69 12981 #endif
Chris@69 12982 __asm__ (""::)
Chris@69 12983 ;
Chris@69 12984 return 0;
Chris@69 12985 }
Chris@69 12986 _ACEOF
Chris@69 12987 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 12988 flag_ok=yes
Chris@69 12989 else
Chris@69 12990 flag_ok=no
Chris@69 12991 fi
Chris@69 12992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 12993
Chris@69 12994 if test "X$flag_ok" = Xyes ; then
Chris@69 12995 inline_optimization="ARM"
Chris@69 12996 true
Chris@69 12997 else
Chris@69 12998 inline_optimization="disabled"
Chris@69 12999
Chris@69 13000 true
Chris@69 13001 fi
Chris@69 13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
Chris@69 13003 $as_echo "$flag_ok" >&6; }
Chris@69 13004
Chris@69 13005
Chris@69 13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports EDSP instructions on ARM" >&5
Chris@69 13007 $as_echo_n "checking if assembler supports EDSP instructions on ARM... " >&6; }
Chris@69 13008
Chris@69 13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 13010 /* end confdefs.h. */
Chris@69 13011
Chris@69 13012 int
Chris@69 13013 main ()
Chris@69 13014 {
Chris@69 13015 __asm__("qadd r3,r3,r3")
Chris@69 13016 ;
Chris@69 13017 return 0;
Chris@69 13018 }
Chris@69 13019 _ACEOF
Chris@69 13020 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 13022 $as_echo "yes" >&6; }
Chris@69 13023 OPUS_ARM_INLINE_EDSP=1
Chris@69 13024 else
Chris@69 13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 13026 $as_echo "no" >&6; }
Chris@69 13027 OPUS_ARM_INLINE_EDSP=0
Chris@69 13028 fi
Chris@69 13029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 13030
Chris@69 13031
Chris@69 13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports ARMv6 media instructions on ARM" >&5
Chris@69 13033 $as_echo_n "checking if assembler supports ARMv6 media instructions on ARM... " >&6; }
Chris@69 13034
Chris@69 13035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 13036 /* end confdefs.h. */
Chris@69 13037
Chris@69 13038 int
Chris@69 13039 main ()
Chris@69 13040 {
Chris@69 13041 __asm__("shadd8 r3,r3,r3")
Chris@69 13042 ;
Chris@69 13043 return 0;
Chris@69 13044 }
Chris@69 13045 _ACEOF
Chris@69 13046 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 13048 $as_echo "yes" >&6; }
Chris@69 13049 OPUS_ARM_INLINE_MEDIA=1
Chris@69 13050 else
Chris@69 13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 13052 $as_echo "no" >&6; }
Chris@69 13053 OPUS_ARM_INLINE_MEDIA=0
Chris@69 13054 fi
Chris@69 13055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 13056
Chris@69 13057
Chris@69 13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports NEON instructions on ARM" >&5
Chris@69 13059 $as_echo_n "checking if assembler supports NEON instructions on ARM... " >&6; }
Chris@69 13060
Chris@69 13061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 13062 /* end confdefs.h. */
Chris@69 13063
Chris@69 13064 int
Chris@69 13065 main ()
Chris@69 13066 {
Chris@69 13067 __asm__("vorr d0,d0,d0")
Chris@69 13068 ;
Chris@69 13069 return 0;
Chris@69 13070 }
Chris@69 13071 _ACEOF
Chris@69 13072 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 13074 $as_echo "yes" >&6; }
Chris@69 13075 OPUS_ARM_INLINE_NEON=1
Chris@69 13076 else
Chris@69 13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 13078 $as_echo "no" >&6; }
Chris@69 13079 OPUS_ARM_INLINE_NEON=0
Chris@69 13080 fi
Chris@69 13081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 13082
Chris@69 13083 if test x"$inline_optimization" = x"ARM"; then :
Chris@69 13084
Chris@69 13085 if true; then
Chris@69 13086 OPUS_ARM_INLINE_ASM_TRUE=
Chris@69 13087 OPUS_ARM_INLINE_ASM_FALSE='#'
Chris@69 13088 else
Chris@69 13089 OPUS_ARM_INLINE_ASM_TRUE='#'
Chris@69 13090 OPUS_ARM_INLINE_ASM_FALSE=
Chris@69 13091 fi
Chris@69 13092
Chris@69 13093
Chris@69 13094 $as_echo "#define OPUS_ARM_INLINE_ASM 1" >>confdefs.h
Chris@69 13095
Chris@69 13096 if test x"$OPUS_ARM_INLINE_EDSP" = x"1"; then :
Chris@69 13097
Chris@69 13098
Chris@69 13099 $as_echo "#define OPUS_ARM_INLINE_EDSP 1" >>confdefs.h
Chris@69 13100
Chris@69 13101 inline_optimization="$inline_optimization (EDSP)"
Chris@69 13102
Chris@69 13103 fi
Chris@69 13104 if test x"$OPUS_ARM_INLINE_MEDIA" = x"1"; then :
Chris@69 13105
Chris@69 13106
Chris@69 13107 $as_echo "#define OPUS_ARM_INLINE_MEDIA 1" >>confdefs.h
Chris@69 13108
Chris@69 13109 inline_optimization="$inline_optimization (Media)"
Chris@69 13110
Chris@69 13111 fi
Chris@69 13112 if test x"$OPUS_ARM_INLINE_NEON" = x"1"; then :
Chris@69 13113
Chris@69 13114
Chris@69 13115 $as_echo "#define OPUS_ARM_INLINE_NEON 1" >>confdefs.h
Chris@69 13116
Chris@69 13117 inline_optimization="$inline_optimization (NEON)"
Chris@69 13118
Chris@69 13119 fi
Chris@69 13120
Chris@69 13121 fi
Chris@69 13122 # Extract the first word of "perl", so it can be a program name with args.
Chris@69 13123 set dummy perl; ac_word=$2
Chris@69 13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 13125 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 13126 if ${ac_cv_prog_HAVE_PERL+:} false; then :
Chris@69 13127 $as_echo_n "(cached) " >&6
Chris@69 13128 else
Chris@69 13129 if test -n "$HAVE_PERL"; then
Chris@69 13130 ac_cv_prog_HAVE_PERL="$HAVE_PERL" # Let the user override the test.
Chris@69 13131 else
Chris@69 13132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 13133 for as_dir in $PATH
Chris@69 13134 do
Chris@69 13135 IFS=$as_save_IFS
Chris@69 13136 test -z "$as_dir" && as_dir=.
Chris@69 13137 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 13138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 13139 ac_cv_prog_HAVE_PERL="yes"
Chris@69 13140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 13141 break 2
Chris@69 13142 fi
Chris@69 13143 done
Chris@69 13144 done
Chris@69 13145 IFS=$as_save_IFS
Chris@69 13146
Chris@69 13147 test -z "$ac_cv_prog_HAVE_PERL" && ac_cv_prog_HAVE_PERL="no"
Chris@69 13148 fi
Chris@69 13149 fi
Chris@69 13150 HAVE_PERL=$ac_cv_prog_HAVE_PERL
Chris@69 13151 if test -n "$HAVE_PERL"; then
Chris@69 13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PERL" >&5
Chris@69 13153 $as_echo "$HAVE_PERL" >&6; }
Chris@69 13154 else
Chris@69 13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 13156 $as_echo "no" >&6; }
Chris@69 13157 fi
Chris@69 13158
Chris@69 13159
Chris@69 13160 if test x"$HAVE_PERL" = x"yes"; then :
Chris@69 13161
Chris@69 13162 if true; then
Chris@69 13163 OPUS_ARM_EXTERNAL_ASM_TRUE=
Chris@69 13164 OPUS_ARM_EXTERNAL_ASM_FALSE='#'
Chris@69 13165 else
Chris@69 13166 OPUS_ARM_EXTERNAL_ASM_TRUE='#'
Chris@69 13167 OPUS_ARM_EXTERNAL_ASM_FALSE=
Chris@69 13168 fi
Chris@69 13169
Chris@69 13170 asm_optimization="ARM"
Chris@69 13171 if test x"$OPUS_ARM_INLINE_EDSP" = x"1"; then :
Chris@69 13172
Chris@69 13173 OPUS_ARM_PRESUME_EDSP=1
Chris@69 13174 OPUS_ARM_MAY_HAVE_EDSP=1
Chris@69 13175
Chris@69 13176 else
Chris@69 13177
Chris@69 13178 OPUS_ARM_PRESUME_EDSP=0
Chris@69 13179 OPUS_ARM_MAY_HAVE_EDSP=0
Chris@69 13180
Chris@69 13181 fi
Chris@69 13182 if test x"$OPUS_ARM_INLINE_MEDIA" = x"1"; then :
Chris@69 13183
Chris@69 13184 OPUS_ARM_PRESUME_MEDIA=1
Chris@69 13185 OPUS_ARM_MAY_HAVE_MEDIA=1
Chris@69 13186
Chris@69 13187 else
Chris@69 13188
Chris@69 13189 OPUS_ARM_PRESUME_MEDIA=0
Chris@69 13190 OPUS_ARM_MAY_HAVE_MEDIA=0
Chris@69 13191
Chris@69 13192 fi
Chris@69 13193 if test x"$OPUS_ARM_INLINE_NEON" = x"1"; then :
Chris@69 13194
Chris@69 13195 OPUS_ARM_PRESUME_NEON=1
Chris@69 13196 OPUS_ARM_MAY_HAVE_NEON=1
Chris@69 13197
Chris@69 13198 else
Chris@69 13199
Chris@69 13200 OPUS_ARM_PRESUME_NEON=0
Chris@69 13201 OPUS_ARM_MAY_HAVE_NEON=0
Chris@69 13202
Chris@69 13203 fi
Chris@69 13204 if test x"$enable_rtcd" = x"yes"; then :
Chris@69 13205
Chris@69 13206 if test x"$OPUS_ARM_MAY_HAVE_EDSP" != x"1"; then :
Chris@69 13207
Chris@69 13208 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to force-enable armv5e EDSP instructions..." >&5
Chris@69 13209 $as_echo "$as_me: Trying to force-enable armv5e EDSP instructions..." >&6;}
Chris@69 13210
Chris@69 13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports EDSP instructions on ARM" >&5
Chris@69 13212 $as_echo_n "checking if assembler supports EDSP instructions on ARM... " >&6; }
Chris@69 13213
Chris@69 13214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 13215 /* end confdefs.h. */
Chris@69 13216
Chris@69 13217 int
Chris@69 13218 main ()
Chris@69 13219 {
Chris@69 13220 __asm__(".arch armv5te\n.object_arch armv4t\nqadd r3,r3,r3")
Chris@69 13221 ;
Chris@69 13222 return 0;
Chris@69 13223 }
Chris@69 13224 _ACEOF
Chris@69 13225 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 13227 $as_echo "yes" >&6; }
Chris@69 13228 OPUS_ARM_MAY_HAVE_EDSP=1
Chris@69 13229 else
Chris@69 13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 13231 $as_echo "no" >&6; }
Chris@69 13232
Chris@69 13233 fi
Chris@69 13234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 13235
Chris@69 13236
Chris@69 13237 fi
Chris@69 13238 if test x"$OPUS_ARM_MAY_HAVE_MEDIA" != x"1"; then :
Chris@69 13239
Chris@69 13240 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to force-enable ARMv6 media instructions..." >&5
Chris@69 13241 $as_echo "$as_me: Trying to force-enable ARMv6 media instructions..." >&6;}
Chris@69 13242
Chris@69 13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports ARMv6 media instructions on ARM" >&5
Chris@69 13244 $as_echo_n "checking if assembler supports ARMv6 media instructions on ARM... " >&6; }
Chris@69 13245
Chris@69 13246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 13247 /* end confdefs.h. */
Chris@69 13248
Chris@69 13249 int
Chris@69 13250 main ()
Chris@69 13251 {
Chris@69 13252 __asm__(".arch armv6\n.object_arch armv4t\nshadd8 r3,r3,r3")
Chris@69 13253 ;
Chris@69 13254 return 0;
Chris@69 13255 }
Chris@69 13256 _ACEOF
Chris@69 13257 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 13259 $as_echo "yes" >&6; }
Chris@69 13260 OPUS_ARM_MAY_HAVE_MEDIA=1
Chris@69 13261 else
Chris@69 13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 13263 $as_echo "no" >&6; }
Chris@69 13264
Chris@69 13265 fi
Chris@69 13266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 13267
Chris@69 13268
Chris@69 13269 fi
Chris@69 13270 if test x"$OPUS_ARM_MAY_HAVE_NEON" != x"1"; then :
Chris@69 13271
Chris@69 13272 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to force-enable NEON instructions..." >&5
Chris@69 13273 $as_echo "$as_me: Trying to force-enable NEON instructions..." >&6;}
Chris@69 13274
Chris@69 13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports NEON instructions on ARM" >&5
Chris@69 13276 $as_echo_n "checking if assembler supports NEON instructions on ARM... " >&6; }
Chris@69 13277
Chris@69 13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 13279 /* end confdefs.h. */
Chris@69 13280
Chris@69 13281 int
Chris@69 13282 main ()
Chris@69 13283 {
Chris@69 13284 __asm__(".arch armv7-a\n.fpu neon\n.object_arch armv4t\nvorr d0,d0,d0")
Chris@69 13285 ;
Chris@69 13286 return 0;
Chris@69 13287 }
Chris@69 13288 _ACEOF
Chris@69 13289 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 13291 $as_echo "yes" >&6; }
Chris@69 13292 OPUS_ARM_MAY_HAVE_NEON=1
Chris@69 13293 else
Chris@69 13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 13295 $as_echo "no" >&6; }
Chris@69 13296
Chris@69 13297 fi
Chris@69 13298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 13299
Chris@69 13300
Chris@69 13301 fi
Chris@69 13302
Chris@69 13303 fi
Chris@69 13304 rtcd_support=
Chris@69 13305 if test x"$OPUS_ARM_MAY_HAVE_EDSP" = x"1"; then :
Chris@69 13306
Chris@69 13307
Chris@69 13308 $as_echo "#define OPUS_ARM_MAY_HAVE_EDSP 1" >>confdefs.h
Chris@69 13309
Chris@69 13310 if test x"$OPUS_ARM_PRESUME_EDSP" = x"1"; then :
Chris@69 13311
Chris@69 13312
Chris@69 13313 $as_echo "#define OPUS_ARM_PRESUME_EDSP 1" >>confdefs.h
Chris@69 13314
Chris@69 13315 asm_optimization="$asm_optimization (EDSP)"
Chris@69 13316
Chris@69 13317 else
Chris@69 13318 rtcd_support="$rtcd_support (EDSP)"
Chris@69 13319
Chris@69 13320 fi
Chris@69 13321
Chris@69 13322 fi
Chris@69 13323
Chris@69 13324 if test x"$OPUS_ARM_MAY_HAVE_MEDIA" = x"1"; then :
Chris@69 13325
Chris@69 13326
Chris@69 13327 $as_echo "#define OPUS_ARM_MAY_HAVE_MEDIA 1" >>confdefs.h
Chris@69 13328
Chris@69 13329 if test x"$OPUS_ARM_PRESUME_MEDIA" = x"1"; then :
Chris@69 13330
Chris@69 13331
Chris@69 13332 $as_echo "#define OPUS_ARM_PRESUME_MEDIA 1" >>confdefs.h
Chris@69 13333
Chris@69 13334 asm_optimization="$asm_optimization (Media)"
Chris@69 13335
Chris@69 13336 else
Chris@69 13337 rtcd_support="$rtcd_support (Media)"
Chris@69 13338
Chris@69 13339 fi
Chris@69 13340
Chris@69 13341 fi
Chris@69 13342
Chris@69 13343 if test x"$OPUS_ARM_MAY_HAVE_NEON" = x"1"; then :
Chris@69 13344
Chris@69 13345
Chris@69 13346 $as_echo "#define OPUS_ARM_MAY_HAVE_NEON 1" >>confdefs.h
Chris@69 13347
Chris@69 13348 if test x"$OPUS_ARM_PRESUME_NEON" = x"1"; then :
Chris@69 13349
Chris@69 13350
Chris@69 13351 $as_echo "#define OPUS_ARM_PRESUME_NEON 1" >>confdefs.h
Chris@69 13352
Chris@69 13353 asm_optimization="$asm_optimization (NEON)"
Chris@69 13354
Chris@69 13355 else
Chris@69 13356 rtcd_support="$rtcd_support (NEON)"
Chris@69 13357
Chris@69 13358 fi
Chris@69 13359
Chris@69 13360 fi
Chris@69 13361
Chris@69 13362 if test x"$rtcd_support" != x""; then :
Chris@69 13363 rtcd_support=ARM"$rtcd_support"
Chris@69 13364 else
Chris@69 13365 rtcd_support="no"
Chris@69 13366
Chris@69 13367 fi
Chris@69 13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apple style tools" >&5
Chris@69 13369 $as_echo_n "checking for apple style tools... " >&6; }
Chris@69 13370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 13371 /* end confdefs.h. */
Chris@69 13372
Chris@69 13373 #ifndef __APPLE__
Chris@69 13374 #error 1
Chris@69 13375 #endif
Chris@69 13376 int
Chris@69 13377 main ()
Chris@69 13378 {
Chris@69 13379
Chris@69 13380 ;
Chris@69 13381 return 0;
Chris@69 13382 }
Chris@69 13383 _ACEOF
Chris@69 13384 if ac_fn_c_try_cpp "$LINENO"; then :
Chris@69 13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 13386 $as_echo "yes" >&6; }; ARM2GNU_PARAMS="--apple"
Chris@69 13387 else
Chris@69 13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 13389 $as_echo "no" >&6; }; ARM2GNU_PARAMS=""
Chris@69 13390 fi
Chris@69 13391 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@69 13392
Chris@69 13393
Chris@69 13394 else
Chris@69 13395
Chris@69 13396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** ARM assembly requires perl -- disabling optimizations" >&5
Chris@69 13397 $as_echo "$as_me: WARNING: *** ARM assembly requires perl -- disabling optimizations" >&2;}
Chris@69 13398 asm_optimization="(missing perl dependency for ARM)"
Chris@69 13399
Chris@69 13400 fi
Chris@69 13401
Chris@69 13402 fi
Chris@69 13403 ;;
Chris@69 13404 esac
Chris@69 13405
Chris@69 13406 else
Chris@69 13407
Chris@69 13408 inline_optimization="disabled"
Chris@69 13409 asm_optimization="disabled"
Chris@69 13410
Chris@69 13411 fi
Chris@69 13412
Chris@69 13413 if test x"${inline_optimization%% *}" = x"ARM"; then
Chris@69 13414 OPUS_ARM_INLINE_ASM_TRUE=
Chris@69 13415 OPUS_ARM_INLINE_ASM_FALSE='#'
Chris@69 13416 else
Chris@69 13417 OPUS_ARM_INLINE_ASM_TRUE='#'
Chris@69 13418 OPUS_ARM_INLINE_ASM_FALSE=
Chris@69 13419 fi
Chris@69 13420
Chris@69 13421 if test x"${asm_optimization%% *}" = x"ARM"; then
Chris@69 13422 OPUS_ARM_EXTERNAL_ASM_TRUE=
Chris@69 13423 OPUS_ARM_EXTERNAL_ASM_FALSE='#'
Chris@69 13424 else
Chris@69 13425 OPUS_ARM_EXTERNAL_ASM_TRUE='#'
Chris@69 13426 OPUS_ARM_EXTERNAL_ASM_FALSE=
Chris@69 13427 fi
Chris@69 13428
Chris@69 13429
Chris@69 13430 if false; then
Chris@69 13431 HAVE_SSE_TRUE=
Chris@69 13432 HAVE_SSE_FALSE='#'
Chris@69 13433 else
Chris@69 13434 HAVE_SSE_TRUE='#'
Chris@69 13435 HAVE_SSE_FALSE=
Chris@69 13436 fi
Chris@69 13437
Chris@69 13438 if false; then
Chris@69 13439 HAVE_SSE2_TRUE=
Chris@69 13440 HAVE_SSE2_FALSE='#'
Chris@69 13441 else
Chris@69 13442 HAVE_SSE2_TRUE='#'
Chris@69 13443 HAVE_SSE2_FALSE=
Chris@69 13444 fi
Chris@69 13445
Chris@69 13446 if false; then
Chris@69 13447 HAVE_SSE4_1_TRUE=
Chris@69 13448 HAVE_SSE4_1_FALSE='#'
Chris@69 13449 else
Chris@69 13450 HAVE_SSE4_1_TRUE='#'
Chris@69 13451 HAVE_SSE4_1_FALSE=
Chris@69 13452 fi
Chris@69 13453
Chris@69 13454 if false; then
Chris@69 13455 HAVE_AVX_TRUE=
Chris@69 13456 HAVE_AVX_FALSE='#'
Chris@69 13457 else
Chris@69 13458 HAVE_AVX_TRUE='#'
Chris@69 13459 HAVE_AVX_FALSE=
Chris@69 13460 fi
Chris@69 13461
Chris@69 13462
Chris@69 13463
Chris@69 13464
Chris@69 13465
Chris@69 13466
Chris@69 13467
Chris@69 13468 # With GCC on ARM32 softfp architectures (e.g. Android, or older Ubuntu) you need to specify
Chris@69 13469 # -mfloat-abi=softfp for -mfpu=neon to work. However, on ARM32 hardfp architectures (e.g. newer Ubuntu),
Chris@69 13470 # this option will break things.
Chris@69 13471
Chris@69 13472 # As a heuristic, if host matches arm*eabi* but not arm*hf*, it's probably soft-float.
Chris@69 13473
Chris@69 13474
Chris@69 13475 case $host in #(
Chris@69 13476 arm*hf*) :
Chris@69 13477 RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS="-mfpu=neon" ;; #(
Chris@69 13478 arm*eabi*) :
Chris@69 13479 RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS="-mfpu=neon -mfloat-abi=softfp" ;; #(
Chris@69 13480 *) :
Chris@69 13481 RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS="-mfpu=neon" ;;
Chris@69 13482 esac
Chris@69 13483
Chris@69 13484
Chris@69 13485
Chris@69 13486
Chris@69 13487
Chris@69 13488
Chris@69 13489
Chris@69 13490 if ${X86_SSE_CFLAGS+:} false; then :
Chris@69 13491
Chris@69 13492 else
Chris@69 13493 X86_SSE_CFLAGS="-msse"
Chris@69 13494 fi
Chris@69 13495 if ${X86_SSE2_CFLAGS+:} false; then :
Chris@69 13496
Chris@69 13497 else
Chris@69 13498 X86_SSE2_CFLAGS="-msse2"
Chris@69 13499 fi
Chris@69 13500 if ${X86_SSE4_1_CFLAGS+:} false; then :
Chris@69 13501
Chris@69 13502 else
Chris@69 13503 X86_SSE4_1_CFLAGS="-msse4.1"
Chris@69 13504 fi
Chris@69 13505 if ${X86_AVX_CFLAGS+:} false; then :
Chris@69 13506
Chris@69 13507 else
Chris@69 13508 X86_AVX_CFLAGS="-mavx"
Chris@69 13509 fi
Chris@69 13510 if ${ARM_NEON_INTR_CFLAGS+:} false; then :
Chris@69 13511
Chris@69 13512 else
Chris@69 13513 ARM_NEON_INTR_CFLAGS="$RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS"
Chris@69 13514 fi
Chris@69 13515
Chris@69 13516
Chris@69 13517
Chris@69 13518 if test x"$enable_intrinsics" = x"yes"; then :
Chris@69 13519
Chris@69 13520 intrinsics_support=""
Chris@69 13521 case $host_cpu in #(
Chris@69 13522 arm*|aarch64*) :
Chris@69 13523
Chris@69 13524 cpu_arm=yes
Chris@69 13525
Chris@69 13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports ARM Neon intrinsics" >&5
Chris@69 13527 $as_echo_n "checking if compiler supports ARM Neon intrinsics... " >&6; }
Chris@69 13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 13529 /* end confdefs.h. */
Chris@69 13530 #include <arm_neon.h>
Chris@69 13531
Chris@69 13532 int
Chris@69 13533 main ()
Chris@69 13534 {
Chris@69 13535
Chris@69 13536 static float32x4_t A0, A1, SUMM;
Chris@69 13537 SUMM = vmlaq_f32(SUMM, A0, A1);
Chris@69 13538 return (int)vgetq_lane_f32(SUMM, 0);
Chris@69 13539
Chris@69 13540
Chris@69 13541 ;
Chris@69 13542 return 0;
Chris@69 13543 }
Chris@69 13544 _ACEOF
Chris@69 13545 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 13546
Chris@69 13547 OPUS_ARM_MAY_HAVE_NEON_INTR=1
Chris@69 13548 OPUS_ARM_PRESUME_NEON_INTR=1
Chris@69 13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 13550 $as_echo "yes" >&6; }
Chris@69 13551
Chris@69 13552 else
Chris@69 13553
Chris@69 13554 OPUS_ARM_PRESUME_NEON_INTR=0
Chris@69 13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 13556 $as_echo "no" >&6; }
Chris@69 13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports ARM Neon intrinsics with $ARM_NEON_INTR_CFLAGS" >&5
Chris@69 13558 $as_echo_n "checking if compiler supports ARM Neon intrinsics with $ARM_NEON_INTR_CFLAGS... " >&6; }
Chris@69 13559 save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $ARM_NEON_INTR_CFLAGS"
Chris@69 13560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 13561 /* end confdefs.h. */
Chris@69 13562 #include <arm_neon.h>
Chris@69 13563
Chris@69 13564 int
Chris@69 13565 main ()
Chris@69 13566 {
Chris@69 13567
Chris@69 13568 static float32x4_t A0, A1, SUMM;
Chris@69 13569 SUMM = vmlaq_f32(SUMM, A0, A1);
Chris@69 13570 return (int)vgetq_lane_f32(SUMM, 0);
Chris@69 13571
Chris@69 13572
Chris@69 13573 ;
Chris@69 13574 return 0;
Chris@69 13575 }
Chris@69 13576 _ACEOF
Chris@69 13577 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 13578
Chris@69 13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 13580 $as_echo "yes" >&6; }
Chris@69 13581 OPUS_ARM_MAY_HAVE_NEON_INTR=1
Chris@69 13582
Chris@69 13583 else
Chris@69 13584
Chris@69 13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 13586 $as_echo "no" >&6; }
Chris@69 13587 OPUS_ARM_MAY_HAVE_NEON_INTR=0
Chris@69 13588
Chris@69 13589 fi
Chris@69 13590 rm -f core conftest.err conftest.$ac_objext \
Chris@69 13591 conftest$ac_exeext conftest.$ac_ext
Chris@69 13592 CFLAGS="$save_CFLAGS"
Chris@69 13593
Chris@69 13594 fi
Chris@69 13595 rm -f core conftest.err conftest.$ac_objext \
Chris@69 13596 conftest$ac_exeext conftest.$ac_ext
Chris@69 13597
Chris@69 13598 if test x"$OPUS_ARM_MAY_HAVE_NEON_INTR" = x"1" && test x"$OPUS_ARM_PRESUME_NEON_INTR" != x"1"; then :
Chris@69 13599
Chris@69 13600 OPUS_ARM_NEON_INTR_CFLAGS="$ARM_NEON_INTR_CFLAGS"
Chris@69 13601
Chris@69 13602
Chris@69 13603
Chris@69 13604 fi
Chris@69 13605
Chris@69 13606 if test x"$OPUS_ARM_MAY_HAVE_NEON_INTR" = x"1"; then :
Chris@69 13607
Chris@69 13608
Chris@69 13609 $as_echo "#define OPUS_ARM_MAY_HAVE_NEON_INTR 1" >>confdefs.h
Chris@69 13610
Chris@69 13611 intrinsics_support="$intrinsics_support (NEON)"
Chris@69 13612
Chris@69 13613 if test x"$enable_rtcd" != x"no" && test x"$OPUS_ARM_PRESUME_NEON_INTR" != x"1"; then :
Chris@69 13614 if test x"$rtcd_support" = x"no"; then :
Chris@69 13615 rtcd_support="ARM (NEON Intrinsics)"
Chris@69 13616 else
Chris@69 13617 rtcd_support="$rtcd_support (NEON Intrinsics)"
Chris@69 13618 fi
Chris@69 13619 fi
Chris@69 13620
Chris@69 13621 if test x"$OPUS_ARM_PRESUME_NEON_INTR" = x"1"; then :
Chris@69 13622
Chris@69 13623 $as_echo "#define OPUS_ARM_PRESUME_NEON_INTR 1" >>confdefs.h
Chris@69 13624
Chris@69 13625 fi
Chris@69 13626
Chris@69 13627
Chris@69 13628
Chris@69 13629 # Check whether --with-NE10 was given.
Chris@69 13630 if test "${with_NE10+set}" = set; then :
Chris@69 13631 withval=$with_NE10; NE10_prefix="$withval"
Chris@69 13632 else
Chris@69 13633 NE10_prefix=""
Chris@69 13634 fi
Chris@69 13635
Chris@69 13636
Chris@69 13637 # Check whether --with-NE10-libraries was given.
Chris@69 13638 if test "${with_NE10_libraries+set}" = set; then :
Chris@69 13639 withval=$with_NE10_libraries; NE10_libraries="$withval"
Chris@69 13640 else
Chris@69 13641 NE10_libraries=""
Chris@69 13642 fi
Chris@69 13643
Chris@69 13644
Chris@69 13645 # Check whether --with-NE10-includes was given.
Chris@69 13646 if test "${with_NE10_includes+set}" = set; then :
Chris@69 13647 withval=$with_NE10_includes; NE10_includes="$withval"
Chris@69 13648 else
Chris@69 13649 NE10_includes=""
Chris@69 13650 fi
Chris@69 13651
Chris@69 13652
Chris@69 13653 if test "x$NE10_libraries" != "x" ; then
Chris@69 13654 NE10_LIBS="-L$NE10_libraries"
Chris@69 13655 elif test "x$NE10_prefix" = "xno" || test "x$NE10_prefix" = "xyes" ; then
Chris@69 13656 NE10_LIBS=""
Chris@69 13657 elif test "x$NE10_prefix" != "x" ; then
Chris@69 13658 NE10_LIBS="-L$NE10_prefix/lib"
Chris@69 13659 elif test "x$prefix" != "xNONE" ; then
Chris@69 13660 NE10_LIBS="-L$prefix/lib"
Chris@69 13661 fi
Chris@69 13662
Chris@69 13663 if test "x$NE10_prefix" != "xno" ; then
Chris@69 13664 NE10_LIBS="$NE10_LIBS -lNE10"
Chris@69 13665 fi
Chris@69 13666
Chris@69 13667 if test "x$NE10_includes" != "x" ; then
Chris@69 13668 NE10_CFLAGS="-I$NE10_includes"
Chris@69 13669 elif test "x$NE10_prefix" = "xno" || test "x$NE10_prefix" = "xyes" ; then
Chris@69 13670 NE10_CFLAGS=""
Chris@69 13671 elif test "x$NE10_prefix" != "x" ; then
Chris@69 13672 NE10_CFLAGS="-I$NE10_prefix/include"
Chris@69 13673 elif test "x$prefix" != "xNONE"; then
Chris@69 13674 NE10_CFLAGS="-I$prefix/include"
Chris@69 13675 fi
Chris@69 13676
Chris@69 13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NE10" >&5
Chris@69 13678 $as_echo_n "checking for NE10... " >&6; }
Chris@69 13679 save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $NE10_CFLAGS"
Chris@69 13680 save_LIBS="$LIBS"; LIBS="$LIBS $NE10_LIBS $LIBM"
Chris@69 13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 13682 /* end confdefs.h. */
Chris@69 13683
Chris@69 13684 #include <NE10_dsp.h>
Chris@69 13685
Chris@69 13686 int
Chris@69 13687 main ()
Chris@69 13688 {
Chris@69 13689
Chris@69 13690 ne10_fft_cfg_float32_t cfg;
Chris@69 13691 cfg = ne10_fft_alloc_c2c_float32_neon(480);
Chris@69 13692
Chris@69 13693
Chris@69 13694 ;
Chris@69 13695 return 0;
Chris@69 13696 }
Chris@69 13697
Chris@69 13698 _ACEOF
Chris@69 13699 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 13700
Chris@69 13701 HAVE_ARM_NE10=1
Chris@69 13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 13703 $as_echo "yes" >&6; }
Chris@69 13704
Chris@69 13705 else
Chris@69 13706
Chris@69 13707 HAVE_ARM_NE10=0
Chris@69 13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 13709 $as_echo "no" >&6; }
Chris@69 13710 NE10_CFLAGS=""
Chris@69 13711 NE10_LIBS=""
Chris@69 13712
Chris@69 13713
Chris@69 13714 fi
Chris@69 13715 rm -f core conftest.err conftest.$ac_objext \
Chris@69 13716 conftest$ac_exeext conftest.$ac_ext
Chris@69 13717 CFLAGS="$save_CFLAGS"; LIBS="$save_LIBS"
Chris@69 13718 #Now we know if libNE10 is installed or not
Chris@69 13719 if test x"$HAVE_ARM_NE10" = x"1"; then :
Chris@69 13720
Chris@69 13721
Chris@69 13722 $as_echo "#define HAVE_ARM_NE10 1" >>confdefs.h
Chris@69 13723
Chris@69 13724
Chris@69 13725
Chris@69 13726
Chris@69 13727
Chris@69 13728
Chris@69 13729 fi
Chris@69 13730
Chris@69 13731
Chris@69 13732 if test x"$NE10_LIBS" != x""; then :
Chris@69 13733
Chris@69 13734 intrinsics_support="$intrinsics_support (NE10)"
Chris@69 13735 if test x"enable_rtcd" != x"" \
Chris@69 13736 && test x"$OPUS_ARM_PRESUME_NEON_INTR" != x"1"; then :
Chris@69 13737 rtcd_support="$rtcd_support (NE10)"
Chris@69 13738 fi
Chris@69 13739
Chris@69 13740 fi
Chris@69 13741
Chris@69 13742
Chris@69 13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports Aarch64 Neon intrinsics" >&5
Chris@69 13744 $as_echo_n "checking if compiler supports Aarch64 Neon intrinsics... " >&6; }
Chris@69 13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 13746 /* end confdefs.h. */
Chris@69 13747 #include <arm_neon.h>
Chris@69 13748
Chris@69 13749 int
Chris@69 13750 main ()
Chris@69 13751 {
Chris@69 13752
Chris@69 13753 static int32_t IN;
Chris@69 13754 static int16_t OUT;
Chris@69 13755 OUT = vqmovns_s32(IN);
Chris@69 13756
Chris@69 13757
Chris@69 13758 ;
Chris@69 13759 return 0;
Chris@69 13760 }
Chris@69 13761 _ACEOF
Chris@69 13762 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 13763
Chris@69 13764 OPUS_ARM_MAY_HAVE_AARCH64_NEON_INTR=1
Chris@69 13765 OPUS_ARM_PRESUME_AARCH64_NEON_INTR=1
Chris@69 13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 13767 $as_echo "yes" >&6; }
Chris@69 13768
Chris@69 13769 else
Chris@69 13770
Chris@69 13771 OPUS_ARM_PRESUME_AARCH64_NEON_INTR=0
Chris@69 13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 13773 $as_echo "no" >&6; }
Chris@69 13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports Aarch64 Neon intrinsics with $ARM_NEON_INTR_CFLAGS" >&5
Chris@69 13775 $as_echo_n "checking if compiler supports Aarch64 Neon intrinsics with $ARM_NEON_INTR_CFLAGS... " >&6; }
Chris@69 13776 save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $ARM_NEON_INTR_CFLAGS"
Chris@69 13777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 13778 /* end confdefs.h. */
Chris@69 13779 #include <arm_neon.h>
Chris@69 13780
Chris@69 13781 int
Chris@69 13782 main ()
Chris@69 13783 {
Chris@69 13784
Chris@69 13785 static int32_t IN;
Chris@69 13786 static int16_t OUT;
Chris@69 13787 OUT = vqmovns_s32(IN);
Chris@69 13788
Chris@69 13789
Chris@69 13790 ;
Chris@69 13791 return 0;
Chris@69 13792 }
Chris@69 13793 _ACEOF
Chris@69 13794 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 13795
Chris@69 13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 13797 $as_echo "yes" >&6; }
Chris@69 13798 OPUS_ARM_MAY_HAVE_AARCH64_NEON_INTR=1
Chris@69 13799
Chris@69 13800 else
Chris@69 13801
Chris@69 13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 13803 $as_echo "no" >&6; }
Chris@69 13804 OPUS_ARM_MAY_HAVE_AARCH64_NEON_INTR=0
Chris@69 13805
Chris@69 13806 fi
Chris@69 13807 rm -f core conftest.err conftest.$ac_objext \
Chris@69 13808 conftest$ac_exeext conftest.$ac_ext
Chris@69 13809 CFLAGS="$save_CFLAGS"
Chris@69 13810
Chris@69 13811 fi
Chris@69 13812 rm -f core conftest.err conftest.$ac_objext \
Chris@69 13813 conftest$ac_exeext conftest.$ac_ext
Chris@69 13814
Chris@69 13815
Chris@69 13816 if test x"$OPUS_ARM_PRESUME_AARCH64_NEON_INTR" = x"1"; then :
Chris@69 13817
Chris@69 13818
Chris@69 13819 $as_echo "#define OPUS_ARM_PRESUME_AARCH64_NEON_INTR 1" >>confdefs.h
Chris@69 13820
Chris@69 13821 intrinsics_support="$intrinsics_support (NEON Aarch64)"
Chris@69 13822
Chris@69 13823 fi
Chris@69 13824
Chris@69 13825 if test x"$intrinsics_support" = x""; then :
Chris@69 13826 intrinsics_support=no
Chris@69 13827 else
Chris@69 13828 intrinsics_support="ARM$intrinsics_support"
Chris@69 13829 fi
Chris@69 13830
Chris@69 13831 else
Chris@69 13832
Chris@69 13833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support ARM intrinsics" >&5
Chris@69 13834 $as_echo "$as_me: WARNING: Compiler does not support ARM intrinsics" >&2;}
Chris@69 13835 intrinsics_support=no
Chris@69 13836
Chris@69 13837 fi
Chris@69 13838 ;; #(
Chris@69 13839 i?86|x86_64) :
Chris@69 13840
Chris@69 13841
Chris@69 13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE intrinsics" >&5
Chris@69 13843 $as_echo_n "checking if compiler supports SSE intrinsics... " >&6; }
Chris@69 13844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 13845 /* end confdefs.h. */
Chris@69 13846 #include <xmmintrin.h>
Chris@69 13847 #include <time.h>
Chris@69 13848
Chris@69 13849 int
Chris@69 13850 main ()
Chris@69 13851 {
Chris@69 13852
Chris@69 13853 __m128 mtest;
Chris@69 13854 mtest = _mm_set1_ps((float)time(NULL));
Chris@69 13855 mtest = _mm_mul_ps(mtest, mtest);
Chris@69 13856 return _mm_cvtss_si32(mtest);
Chris@69 13857
Chris@69 13858
Chris@69 13859 ;
Chris@69 13860 return 0;
Chris@69 13861 }
Chris@69 13862 _ACEOF
Chris@69 13863 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 13864
Chris@69 13865 OPUS_X86_MAY_HAVE_SSE=1
Chris@69 13866 OPUS_X86_PRESUME_SSE=1
Chris@69 13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 13868 $as_echo "yes" >&6; }
Chris@69 13869
Chris@69 13870 else
Chris@69 13871
Chris@69 13872 OPUS_X86_PRESUME_SSE=0
Chris@69 13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 13874 $as_echo "no" >&6; }
Chris@69 13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE intrinsics with $X86_SSE_CFLAGS" >&5
Chris@69 13876 $as_echo_n "checking if compiler supports SSE intrinsics with $X86_SSE_CFLAGS... " >&6; }
Chris@69 13877 save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $X86_SSE_CFLAGS"
Chris@69 13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 13879 /* end confdefs.h. */
Chris@69 13880 #include <xmmintrin.h>
Chris@69 13881 #include <time.h>
Chris@69 13882
Chris@69 13883 int
Chris@69 13884 main ()
Chris@69 13885 {
Chris@69 13886
Chris@69 13887 __m128 mtest;
Chris@69 13888 mtest = _mm_set1_ps((float)time(NULL));
Chris@69 13889 mtest = _mm_mul_ps(mtest, mtest);
Chris@69 13890 return _mm_cvtss_si32(mtest);
Chris@69 13891
Chris@69 13892
Chris@69 13893 ;
Chris@69 13894 return 0;
Chris@69 13895 }
Chris@69 13896 _ACEOF
Chris@69 13897 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 13898
Chris@69 13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 13900 $as_echo "yes" >&6; }
Chris@69 13901 OPUS_X86_MAY_HAVE_SSE=1
Chris@69 13902
Chris@69 13903 else
Chris@69 13904
Chris@69 13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 13906 $as_echo "no" >&6; }
Chris@69 13907 OPUS_X86_MAY_HAVE_SSE=0
Chris@69 13908
Chris@69 13909 fi
Chris@69 13910 rm -f core conftest.err conftest.$ac_objext \
Chris@69 13911 conftest$ac_exeext conftest.$ac_ext
Chris@69 13912 CFLAGS="$save_CFLAGS"
Chris@69 13913
Chris@69 13914 fi
Chris@69 13915 rm -f core conftest.err conftest.$ac_objext \
Chris@69 13916 conftest$ac_exeext conftest.$ac_ext
Chris@69 13917
Chris@69 13918 if test x"$OPUS_X86_MAY_HAVE_SSE" = x"1" && test x"$OPUS_X86_PRESUME_SSE" != x"1"; then :
Chris@69 13919
Chris@69 13920 OPUS_X86_SSE_CFLAGS="$X86_SSE_CFLAGS"
Chris@69 13921
Chris@69 13922
Chris@69 13923
Chris@69 13924 fi
Chris@69 13925
Chris@69 13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE2 intrinsics" >&5
Chris@69 13927 $as_echo_n "checking if compiler supports SSE2 intrinsics... " >&6; }
Chris@69 13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 13929 /* end confdefs.h. */
Chris@69 13930 #include <emmintrin.h>
Chris@69 13931 #include <time.h>
Chris@69 13932
Chris@69 13933 int
Chris@69 13934 main ()
Chris@69 13935 {
Chris@69 13936
Chris@69 13937 __m128i mtest;
Chris@69 13938 mtest = _mm_set1_epi32((int)time(NULL));
Chris@69 13939 mtest = _mm_mul_epu32(mtest, mtest);
Chris@69 13940 return _mm_cvtsi128_si32(mtest);
Chris@69 13941
Chris@69 13942
Chris@69 13943 ;
Chris@69 13944 return 0;
Chris@69 13945 }
Chris@69 13946 _ACEOF
Chris@69 13947 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 13948
Chris@69 13949 OPUS_X86_MAY_HAVE_SSE2=1
Chris@69 13950 OPUS_X86_PRESUME_SSE2=1
Chris@69 13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 13952 $as_echo "yes" >&6; }
Chris@69 13953
Chris@69 13954 else
Chris@69 13955
Chris@69 13956 OPUS_X86_PRESUME_SSE2=0
Chris@69 13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 13958 $as_echo "no" >&6; }
Chris@69 13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE2 intrinsics with $X86_SSE2_CFLAGS" >&5
Chris@69 13960 $as_echo_n "checking if compiler supports SSE2 intrinsics with $X86_SSE2_CFLAGS... " >&6; }
Chris@69 13961 save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $X86_SSE2_CFLAGS"
Chris@69 13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 13963 /* end confdefs.h. */
Chris@69 13964 #include <emmintrin.h>
Chris@69 13965 #include <time.h>
Chris@69 13966
Chris@69 13967 int
Chris@69 13968 main ()
Chris@69 13969 {
Chris@69 13970
Chris@69 13971 __m128i mtest;
Chris@69 13972 mtest = _mm_set1_epi32((int)time(NULL));
Chris@69 13973 mtest = _mm_mul_epu32(mtest, mtest);
Chris@69 13974 return _mm_cvtsi128_si32(mtest);
Chris@69 13975
Chris@69 13976
Chris@69 13977 ;
Chris@69 13978 return 0;
Chris@69 13979 }
Chris@69 13980 _ACEOF
Chris@69 13981 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 13982
Chris@69 13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 13984 $as_echo "yes" >&6; }
Chris@69 13985 OPUS_X86_MAY_HAVE_SSE2=1
Chris@69 13986
Chris@69 13987 else
Chris@69 13988
Chris@69 13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 13990 $as_echo "no" >&6; }
Chris@69 13991 OPUS_X86_MAY_HAVE_SSE2=0
Chris@69 13992
Chris@69 13993 fi
Chris@69 13994 rm -f core conftest.err conftest.$ac_objext \
Chris@69 13995 conftest$ac_exeext conftest.$ac_ext
Chris@69 13996 CFLAGS="$save_CFLAGS"
Chris@69 13997
Chris@69 13998 fi
Chris@69 13999 rm -f core conftest.err conftest.$ac_objext \
Chris@69 14000 conftest$ac_exeext conftest.$ac_ext
Chris@69 14001
Chris@69 14002 if test x"$OPUS_X86_MAY_HAVE_SSE2" = x"1" && test x"$OPUS_X86_PRESUME_SSE2" != x"1"; then :
Chris@69 14003
Chris@69 14004 OPUS_X86_SSE2_CFLAGS="$X86_SSE2_CFLAGS"
Chris@69 14005
Chris@69 14006
Chris@69 14007
Chris@69 14008 fi
Chris@69 14009
Chris@69 14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE4.1 intrinsics" >&5
Chris@69 14011 $as_echo_n "checking if compiler supports SSE4.1 intrinsics... " >&6; }
Chris@69 14012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 14013 /* end confdefs.h. */
Chris@69 14014 #include <smmintrin.h>
Chris@69 14015 #include <time.h>
Chris@69 14016
Chris@69 14017 int
Chris@69 14018 main ()
Chris@69 14019 {
Chris@69 14020
Chris@69 14021 __m128i mtest;
Chris@69 14022 mtest = _mm_set1_epi32((int)time(NULL));
Chris@69 14023 mtest = _mm_mul_epi32(mtest, mtest);
Chris@69 14024 return _mm_cvtsi128_si32(mtest);
Chris@69 14025
Chris@69 14026
Chris@69 14027 ;
Chris@69 14028 return 0;
Chris@69 14029 }
Chris@69 14030 _ACEOF
Chris@69 14031 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 14032
Chris@69 14033 OPUS_X86_MAY_HAVE_SSE4_1=1
Chris@69 14034 OPUS_X86_PRESUME_SSE4_1=1
Chris@69 14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 14036 $as_echo "yes" >&6; }
Chris@69 14037
Chris@69 14038 else
Chris@69 14039
Chris@69 14040 OPUS_X86_PRESUME_SSE4_1=0
Chris@69 14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 14042 $as_echo "no" >&6; }
Chris@69 14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE4.1 intrinsics with $X86_SSE4_1_CFLAGS" >&5
Chris@69 14044 $as_echo_n "checking if compiler supports SSE4.1 intrinsics with $X86_SSE4_1_CFLAGS... " >&6; }
Chris@69 14045 save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $X86_SSE4_1_CFLAGS"
Chris@69 14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 14047 /* end confdefs.h. */
Chris@69 14048 #include <smmintrin.h>
Chris@69 14049 #include <time.h>
Chris@69 14050
Chris@69 14051 int
Chris@69 14052 main ()
Chris@69 14053 {
Chris@69 14054
Chris@69 14055 __m128i mtest;
Chris@69 14056 mtest = _mm_set1_epi32((int)time(NULL));
Chris@69 14057 mtest = _mm_mul_epi32(mtest, mtest);
Chris@69 14058 return _mm_cvtsi128_si32(mtest);
Chris@69 14059
Chris@69 14060
Chris@69 14061 ;
Chris@69 14062 return 0;
Chris@69 14063 }
Chris@69 14064 _ACEOF
Chris@69 14065 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 14066
Chris@69 14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 14068 $as_echo "yes" >&6; }
Chris@69 14069 OPUS_X86_MAY_HAVE_SSE4_1=1
Chris@69 14070
Chris@69 14071 else
Chris@69 14072
Chris@69 14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 14074 $as_echo "no" >&6; }
Chris@69 14075 OPUS_X86_MAY_HAVE_SSE4_1=0
Chris@69 14076
Chris@69 14077 fi
Chris@69 14078 rm -f core conftest.err conftest.$ac_objext \
Chris@69 14079 conftest$ac_exeext conftest.$ac_ext
Chris@69 14080 CFLAGS="$save_CFLAGS"
Chris@69 14081
Chris@69 14082 fi
Chris@69 14083 rm -f core conftest.err conftest.$ac_objext \
Chris@69 14084 conftest$ac_exeext conftest.$ac_ext
Chris@69 14085
Chris@69 14086 if test x"$OPUS_X86_MAY_HAVE_SSE4_1" = x"1" && test x"$OPUS_X86_PRESUME_SSE4_1" != x"1"; then :
Chris@69 14087
Chris@69 14088 OPUS_X86_SSE4_1_CFLAGS="$X86_SSE4_1_CFLAGS"
Chris@69 14089
Chris@69 14090
Chris@69 14091
Chris@69 14092 fi
Chris@69 14093
Chris@69 14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports AVX intrinsics" >&5
Chris@69 14095 $as_echo_n "checking if compiler supports AVX intrinsics... " >&6; }
Chris@69 14096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 14097 /* end confdefs.h. */
Chris@69 14098 #include <immintrin.h>
Chris@69 14099 #include <time.h>
Chris@69 14100
Chris@69 14101 int
Chris@69 14102 main ()
Chris@69 14103 {
Chris@69 14104
Chris@69 14105 __m256 mtest;
Chris@69 14106 mtest = _mm256_set1_ps((float)time(NULL));
Chris@69 14107 mtest = _mm256_addsub_ps(mtest, mtest);
Chris@69 14108 return _mm_cvtss_si32(_mm256_extractf128_ps(mtest, 0));
Chris@69 14109
Chris@69 14110
Chris@69 14111 ;
Chris@69 14112 return 0;
Chris@69 14113 }
Chris@69 14114 _ACEOF
Chris@69 14115 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 14116
Chris@69 14117 OPUS_X86_MAY_HAVE_AVX=1
Chris@69 14118 OPUS_X86_PRESUME_AVX=1
Chris@69 14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 14120 $as_echo "yes" >&6; }
Chris@69 14121
Chris@69 14122 else
Chris@69 14123
Chris@69 14124 OPUS_X86_PRESUME_AVX=0
Chris@69 14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 14126 $as_echo "no" >&6; }
Chris@69 14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports AVX intrinsics with $X86_AVX_CFLAGS" >&5
Chris@69 14128 $as_echo_n "checking if compiler supports AVX intrinsics with $X86_AVX_CFLAGS... " >&6; }
Chris@69 14129 save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $X86_AVX_CFLAGS"
Chris@69 14130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 14131 /* end confdefs.h. */
Chris@69 14132 #include <immintrin.h>
Chris@69 14133 #include <time.h>
Chris@69 14134
Chris@69 14135 int
Chris@69 14136 main ()
Chris@69 14137 {
Chris@69 14138
Chris@69 14139 __m256 mtest;
Chris@69 14140 mtest = _mm256_set1_ps((float)time(NULL));
Chris@69 14141 mtest = _mm256_addsub_ps(mtest, mtest);
Chris@69 14142 return _mm_cvtss_si32(_mm256_extractf128_ps(mtest, 0));
Chris@69 14143
Chris@69 14144
Chris@69 14145 ;
Chris@69 14146 return 0;
Chris@69 14147 }
Chris@69 14148 _ACEOF
Chris@69 14149 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 14150
Chris@69 14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 14152 $as_echo "yes" >&6; }
Chris@69 14153 OPUS_X86_MAY_HAVE_AVX=1
Chris@69 14154
Chris@69 14155 else
Chris@69 14156
Chris@69 14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 14158 $as_echo "no" >&6; }
Chris@69 14159 OPUS_X86_MAY_HAVE_AVX=0
Chris@69 14160
Chris@69 14161 fi
Chris@69 14162 rm -f core conftest.err conftest.$ac_objext \
Chris@69 14163 conftest$ac_exeext conftest.$ac_ext
Chris@69 14164 CFLAGS="$save_CFLAGS"
Chris@69 14165
Chris@69 14166 fi
Chris@69 14167 rm -f core conftest.err conftest.$ac_objext \
Chris@69 14168 conftest$ac_exeext conftest.$ac_ext
Chris@69 14169
Chris@69 14170 if test x"$OPUS_X86_MAY_HAVE_AVX" = x"1" && test x"$OPUS_X86_PRESUME_AVX" != x"1"; then :
Chris@69 14171
Chris@69 14172 OPUS_X86_AVX_CFLAGS="$X86_AVX_CFLAGS"
Chris@69 14173
Chris@69 14174
Chris@69 14175
Chris@69 14176 fi
Chris@69 14177 if test x"$rtcd_support" = x"no"; then :
Chris@69 14178 rtcd_support=""
Chris@69 14179 fi
Chris@69 14180 if test x"$OPUS_X86_MAY_HAVE_SSE" = x"1"; then :
Chris@69 14181
Chris@69 14182
Chris@69 14183 $as_echo "#define OPUS_X86_MAY_HAVE_SSE 1" >>confdefs.h
Chris@69 14184
Chris@69 14185 intrinsics_support="$intrinsics_support SSE"
Chris@69 14186
Chris@69 14187 if test x"$OPUS_X86_PRESUME_SSE" = x"1"; then :
Chris@69 14188
Chris@69 14189 $as_echo "#define OPUS_X86_PRESUME_SSE 1" >>confdefs.h
Chris@69 14190
Chris@69 14191 else
Chris@69 14192 rtcd_support="$rtcd_support SSE"
Chris@69 14193 fi
Chris@69 14194
Chris@69 14195 else
Chris@69 14196
Chris@69 14197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support SSE intrinsics" >&5
Chris@69 14198 $as_echo "$as_me: WARNING: Compiler does not support SSE intrinsics" >&2;}
Chris@69 14199
Chris@69 14200 fi
Chris@69 14201
Chris@69 14202 if test x"$OPUS_X86_MAY_HAVE_SSE2" = x"1"; then :
Chris@69 14203
Chris@69 14204
Chris@69 14205 $as_echo "#define OPUS_X86_MAY_HAVE_SSE2 1" >>confdefs.h
Chris@69 14206
Chris@69 14207 intrinsics_support="$intrinsics_support SSE2"
Chris@69 14208
Chris@69 14209 if test x"$OPUS_X86_PRESUME_SSE2" = x"1"; then :
Chris@69 14210
Chris@69 14211 $as_echo "#define OPUS_X86_PRESUME_SSE2 1" >>confdefs.h
Chris@69 14212
Chris@69 14213 else
Chris@69 14214 rtcd_support="$rtcd_support SSE2"
Chris@69 14215 fi
Chris@69 14216
Chris@69 14217 else
Chris@69 14218
Chris@69 14219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support SSE2 intrinsics" >&5
Chris@69 14220 $as_echo "$as_me: WARNING: Compiler does not support SSE2 intrinsics" >&2;}
Chris@69 14221
Chris@69 14222 fi
Chris@69 14223
Chris@69 14224 if test x"$OPUS_X86_MAY_HAVE_SSE4_1" = x"1"; then :
Chris@69 14225
Chris@69 14226
Chris@69 14227 $as_echo "#define OPUS_X86_MAY_HAVE_SSE4_1 1" >>confdefs.h
Chris@69 14228
Chris@69 14229 intrinsics_support="$intrinsics_support SSE4.1"
Chris@69 14230
Chris@69 14231 if test x"$OPUS_X86_PRESUME_SSE4_1" = x"1"; then :
Chris@69 14232
Chris@69 14233 $as_echo "#define OPUS_X86_PRESUME_SSE4_1 1" >>confdefs.h
Chris@69 14234
Chris@69 14235 else
Chris@69 14236 rtcd_support="$rtcd_support SSE4.1"
Chris@69 14237 fi
Chris@69 14238
Chris@69 14239 else
Chris@69 14240
Chris@69 14241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support SSE4.1 intrinsics" >&5
Chris@69 14242 $as_echo "$as_me: WARNING: Compiler does not support SSE4.1 intrinsics" >&2;}
Chris@69 14243
Chris@69 14244 fi
Chris@69 14245 if test x"$OPUS_X86_MAY_HAVE_AVX" = x"1"; then :
Chris@69 14246
Chris@69 14247
Chris@69 14248 $as_echo "#define OPUS_X86_MAY_HAVE_AVX 1" >>confdefs.h
Chris@69 14249
Chris@69 14250 intrinsics_support="$intrinsics_support AVX"
Chris@69 14251
Chris@69 14252 if test x"$OPUS_X86_PRESUME_AVX" = x"1"; then :
Chris@69 14253
Chris@69 14254 $as_echo "#define OPUS_X86_PRESUME_AVX 1" >>confdefs.h
Chris@69 14255
Chris@69 14256 else
Chris@69 14257 rtcd_support="$rtcd_support AVX"
Chris@69 14258 fi
Chris@69 14259
Chris@69 14260 else
Chris@69 14261
Chris@69 14262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support AVX intrinsics" >&5
Chris@69 14263 $as_echo "$as_me: WARNING: Compiler does not support AVX intrinsics" >&2;}
Chris@69 14264
Chris@69 14265 fi
Chris@69 14266
Chris@69 14267 if test x"$intrinsics_support" = x""; then :
Chris@69 14268 intrinsics_support=no
Chris@69 14269 else
Chris@69 14270 intrinsics_support="x86$intrinsics_support"
Chris@69 14271
Chris@69 14272 fi
Chris@69 14273 if test x"$rtcd_support" = x""; then :
Chris@69 14274 rtcd_support=no
Chris@69 14275 elif rtcd_support="x86$rtcd_support"; then :
Chris@69 14276
Chris@69 14277 fi
Chris@69 14278
Chris@69 14279 if test x"$enable_rtcd" = x"yes" && test x"$rtcd_support" != x""; then :
Chris@69 14280
Chris@69 14281 get_cpuid_by_asm="no"
Chris@69 14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking How to get X86 CPU Info" >&5
Chris@69 14283 $as_echo_n "checking How to get X86 CPU Info... " >&6; }
Chris@69 14284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 14285 /* end confdefs.h. */
Chris@69 14286
Chris@69 14287 #include <stdio.h>
Chris@69 14288
Chris@69 14289 int
Chris@69 14290 main ()
Chris@69 14291 {
Chris@69 14292
Chris@69 14293 unsigned int CPUInfo0;
Chris@69 14294 unsigned int CPUInfo1;
Chris@69 14295 unsigned int CPUInfo2;
Chris@69 14296 unsigned int CPUInfo3;
Chris@69 14297 unsigned int InfoType;
Chris@69 14298 __asm__ __volatile__ (
Chris@69 14299 "cpuid":
Chris@69 14300 "=a" (CPUInfo0),
Chris@69 14301 "=b" (CPUInfo1),
Chris@69 14302 "=c" (CPUInfo2),
Chris@69 14303 "=d" (CPUInfo3) :
Chris@69 14304 "a" (InfoType), "c" (0)
Chris@69 14305 );
Chris@69 14306
Chris@69 14307 ;
Chris@69 14308 return 0;
Chris@69 14309 }
Chris@69 14310 _ACEOF
Chris@69 14311 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 14312 get_cpuid_by_asm="yes"
Chris@69 14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Inline Assembly" >&5
Chris@69 14314 $as_echo "Inline Assembly" >&6; }
Chris@69 14315
Chris@69 14316 $as_echo "#define CPU_INFO_BY_ASM 1" >>confdefs.h
Chris@69 14317
Chris@69 14318 else
Chris@69 14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 14320 /* end confdefs.h. */
Chris@69 14321
Chris@69 14322 #include <cpuid.h>
Chris@69 14323
Chris@69 14324 int
Chris@69 14325 main ()
Chris@69 14326 {
Chris@69 14327
Chris@69 14328 unsigned int CPUInfo0;
Chris@69 14329 unsigned int CPUInfo1;
Chris@69 14330 unsigned int CPUInfo2;
Chris@69 14331 unsigned int CPUInfo3;
Chris@69 14332 unsigned int InfoType;
Chris@69 14333 __get_cpuid(InfoType, &CPUInfo0, &CPUInfo1, &CPUInfo2, &CPUInfo3);
Chris@69 14334
Chris@69 14335 ;
Chris@69 14336 return 0;
Chris@69 14337 }
Chris@69 14338 _ACEOF
Chris@69 14339 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: C method" >&5
Chris@69 14341 $as_echo "C method" >&6; }
Chris@69 14342
Chris@69 14343 $as_echo "#define CPU_INFO_BY_C 1" >>confdefs.h
Chris@69 14344
Chris@69 14345 else
Chris@69 14346 as_fn_error $? "no supported Get CPU Info method, please disable run-time CPU capabilities detection or intrinsics" "$LINENO" 5
Chris@69 14347 fi
Chris@69 14348 rm -f core conftest.err conftest.$ac_objext \
Chris@69 14349 conftest$ac_exeext conftest.$ac_ext
Chris@69 14350 fi
Chris@69 14351 rm -f core conftest.err conftest.$ac_objext \
Chris@69 14352 conftest$ac_exeext conftest.$ac_ext
Chris@69 14353 fi
Chris@69 14354 ;; #(
Chris@69 14355 *) :
Chris@69 14356
Chris@69 14357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No intrinsics support for your architecture" >&5
Chris@69 14358 $as_echo "$as_me: WARNING: No intrinsics support for your architecture" >&2;}
Chris@69 14359 intrinsics_support="no"
Chris@69 14360 ;;
Chris@69 14361 esac
Chris@69 14362
Chris@69 14363 else
Chris@69 14364
Chris@69 14365 intrinsics_support="no"
Chris@69 14366
Chris@69 14367 fi
Chris@69 14368
Chris@69 14369 if test "$cpu_arm" = "yes"; then
Chris@69 14370 CPU_ARM_TRUE=
Chris@69 14371 CPU_ARM_FALSE='#'
Chris@69 14372 else
Chris@69 14373 CPU_ARM_TRUE='#'
Chris@69 14374 CPU_ARM_FALSE=
Chris@69 14375 fi
Chris@69 14376
Chris@69 14377 if test x"$OPUS_ARM_MAY_HAVE_NEON_INTR" = x"1"; then
Chris@69 14378 HAVE_ARM_NEON_INTR_TRUE=
Chris@69 14379 HAVE_ARM_NEON_INTR_FALSE='#'
Chris@69 14380 else
Chris@69 14381 HAVE_ARM_NEON_INTR_TRUE='#'
Chris@69 14382 HAVE_ARM_NEON_INTR_FALSE=
Chris@69 14383 fi
Chris@69 14384
Chris@69 14385 if test x"$HAVE_ARM_NE10" = x"1"; then
Chris@69 14386 HAVE_ARM_NE10_TRUE=
Chris@69 14387 HAVE_ARM_NE10_FALSE='#'
Chris@69 14388 else
Chris@69 14389 HAVE_ARM_NE10_TRUE='#'
Chris@69 14390 HAVE_ARM_NE10_FALSE=
Chris@69 14391 fi
Chris@69 14392
Chris@69 14393 if test x"$OPUS_X86_MAY_HAVE_SSE" = x"1"; then
Chris@69 14394 HAVE_SSE_TRUE=
Chris@69 14395 HAVE_SSE_FALSE='#'
Chris@69 14396 else
Chris@69 14397 HAVE_SSE_TRUE='#'
Chris@69 14398 HAVE_SSE_FALSE=
Chris@69 14399 fi
Chris@69 14400
Chris@69 14401 if test x"$OPUS_X86_MAY_HAVE_SSE2" = x"1"; then
Chris@69 14402 HAVE_SSE2_TRUE=
Chris@69 14403 HAVE_SSE2_FALSE='#'
Chris@69 14404 else
Chris@69 14405 HAVE_SSE2_TRUE='#'
Chris@69 14406 HAVE_SSE2_FALSE=
Chris@69 14407 fi
Chris@69 14408
Chris@69 14409 if test x"$OPUS_X86_MAY_HAVE_SSE4_1" = x"1"; then
Chris@69 14410 HAVE_SSE4_1_TRUE=
Chris@69 14411 HAVE_SSE4_1_FALSE='#'
Chris@69 14412 else
Chris@69 14413 HAVE_SSE4_1_TRUE='#'
Chris@69 14414 HAVE_SSE4_1_FALSE=
Chris@69 14415 fi
Chris@69 14416
Chris@69 14417 if test x"$OPUS_X86_MAY_HAVE_AVX" = x"1"; then
Chris@69 14418 HAVE_AVX_TRUE=
Chris@69 14419 HAVE_AVX_FALSE='#'
Chris@69 14420 else
Chris@69 14421 HAVE_AVX_TRUE='#'
Chris@69 14422 HAVE_AVX_FALSE=
Chris@69 14423 fi
Chris@69 14424
Chris@69 14425
Chris@69 14426 if test x"$enable_rtcd" = x"yes"; then :
Chris@69 14427
Chris@69 14428 if test x"$rtcd_support" != x"no"; then :
Chris@69 14429
Chris@69 14430
Chris@69 14431 $as_echo "#define OPUS_HAVE_RTCD 1" >>confdefs.h
Chris@69 14432
Chris@69 14433 OPUS_HAVE_RTCD=1
Chris@69 14434
Chris@69 14435
Chris@69 14436 fi
Chris@69 14437
Chris@69 14438 else
Chris@69 14439
Chris@69 14440 rtcd_support="disabled"
Chris@69 14441
Chris@69 14442 fi
Chris@69 14443
Chris@69 14444 # Check whether --enable-assertions was given.
Chris@69 14445 if test "${enable_assertions+set}" = set; then :
Chris@69 14446 enableval=$enable_assertions;
Chris@69 14447 else
Chris@69 14448 enable_assertions=no
Chris@69 14449 fi
Chris@69 14450
Chris@69 14451
Chris@69 14452 if test "$enable_assertions" = "yes"; then :
Chris@69 14453
Chris@69 14454
Chris@69 14455 $as_echo "#define ENABLE_ASSERTIONS 1" >>confdefs.h
Chris@69 14456
Chris@69 14457
Chris@69 14458 fi
Chris@69 14459
Chris@69 14460 # Check whether --enable-hardening was given.
Chris@69 14461 if test "${enable_hardening+set}" = set; then :
Chris@69 14462 enableval=$enable_hardening;
Chris@69 14463 else
Chris@69 14464 enable_hardening=yes
Chris@69 14465 fi
Chris@69 14466
Chris@69 14467
Chris@69 14468 if test "$enable_hardening" = "yes"; then :
Chris@69 14469
Chris@69 14470
Chris@69 14471 $as_echo "#define ENABLE_HARDENING 1" >>confdefs.h
Chris@69 14472
Chris@69 14473
Chris@69 14474 fi
Chris@69 14475
Chris@69 14476 # Check whether --enable-fuzzing was given.
Chris@69 14477 if test "${enable_fuzzing+set}" = set; then :
Chris@69 14478 enableval=$enable_fuzzing;
Chris@69 14479 else
Chris@69 14480 enable_fuzzing=no
Chris@69 14481 fi
Chris@69 14482
Chris@69 14483
Chris@69 14484 if test "$enable_fuzzing" = "yes"; then :
Chris@69 14485
Chris@69 14486
Chris@69 14487 $as_echo "#define FUZZING 1" >>confdefs.h
Chris@69 14488
Chris@69 14489
Chris@69 14490 fi
Chris@69 14491
Chris@69 14492 # Check whether --enable-check-asm was given.
Chris@69 14493 if test "${enable_check_asm+set}" = set; then :
Chris@69 14494 enableval=$enable_check_asm;
Chris@69 14495 else
Chris@69 14496 enable_check_asm=no
Chris@69 14497 fi
Chris@69 14498
Chris@69 14499
Chris@69 14500 if test "$enable_check_asm" = "yes"; then :
Chris@69 14501
Chris@69 14502
Chris@69 14503 $as_echo "#define OPUS_CHECK_ASM 1" >>confdefs.h
Chris@69 14504
Chris@69 14505
Chris@69 14506 fi
Chris@69 14507
Chris@69 14508 # Check whether --enable-doc was given.
Chris@69 14509 if test "${enable_doc+set}" = set; then :
Chris@69 14510 enableval=$enable_doc;
Chris@69 14511 else
Chris@69 14512 enable_doc=yes
Chris@69 14513 fi
Chris@69 14514
Chris@69 14515
Chris@69 14516 if test "$enable_doc" = "yes"; then :
Chris@69 14517
Chris@69 14518 # Extract the first word of "doxygen", so it can be a program name with args.
Chris@69 14519 set dummy doxygen; ac_word=$2
Chris@69 14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 14521 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 14522 if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then :
Chris@69 14523 $as_echo_n "(cached) " >&6
Chris@69 14524 else
Chris@69 14525 if test -n "$HAVE_DOXYGEN"; then
Chris@69 14526 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
Chris@69 14527 else
Chris@69 14528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 14529 for as_dir in $PATH
Chris@69 14530 do
Chris@69 14531 IFS=$as_save_IFS
Chris@69 14532 test -z "$as_dir" && as_dir=.
Chris@69 14533 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 14534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 14535 ac_cv_prog_HAVE_DOXYGEN="yes"
Chris@69 14536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 14537 break 2
Chris@69 14538 fi
Chris@69 14539 done
Chris@69 14540 done
Chris@69 14541 IFS=$as_save_IFS
Chris@69 14542
Chris@69 14543 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="no"
Chris@69 14544 fi
Chris@69 14545 fi
Chris@69 14546 HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
Chris@69 14547 if test -n "$HAVE_DOXYGEN"; then
Chris@69 14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
Chris@69 14549 $as_echo "$HAVE_DOXYGEN" >&6; }
Chris@69 14550 else
Chris@69 14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 14552 $as_echo "no" >&6; }
Chris@69 14553 fi
Chris@69 14554
Chris@69 14555
Chris@69 14556 # Extract the first word of "dot", so it can be a program name with args.
Chris@69 14557 set dummy dot; ac_word=$2
Chris@69 14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@69 14559 $as_echo_n "checking for $ac_word... " >&6; }
Chris@69 14560 if ${ac_cv_prog_HAVE_DOT+:} false; then :
Chris@69 14561 $as_echo_n "(cached) " >&6
Chris@69 14562 else
Chris@69 14563 if test -n "$HAVE_DOT"; then
Chris@69 14564 ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test.
Chris@69 14565 else
Chris@69 14566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 14567 for as_dir in $PATH
Chris@69 14568 do
Chris@69 14569 IFS=$as_save_IFS
Chris@69 14570 test -z "$as_dir" && as_dir=.
Chris@69 14571 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@69 14572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@69 14573 ac_cv_prog_HAVE_DOT="yes"
Chris@69 14574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@69 14575 break 2
Chris@69 14576 fi
Chris@69 14577 done
Chris@69 14578 done
Chris@69 14579 IFS=$as_save_IFS
Chris@69 14580
Chris@69 14581 test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="no"
Chris@69 14582 fi
Chris@69 14583 fi
Chris@69 14584 HAVE_DOT=$ac_cv_prog_HAVE_DOT
Chris@69 14585 if test -n "$HAVE_DOT"; then
Chris@69 14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOT" >&5
Chris@69 14587 $as_echo "$HAVE_DOT" >&6; }
Chris@69 14588 else
Chris@69 14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 14590 $as_echo "no" >&6; }
Chris@69 14591 fi
Chris@69 14592
Chris@69 14593
Chris@69 14594
Chris@69 14595 else
Chris@69 14596
Chris@69 14597 HAVE_DOXYGEN=no
Chris@69 14598
Chris@69 14599 fi
Chris@69 14600
Chris@69 14601 if test "$HAVE_DOXYGEN" = "yes"; then
Chris@69 14602 HAVE_DOXYGEN_TRUE=
Chris@69 14603 HAVE_DOXYGEN_FALSE='#'
Chris@69 14604 else
Chris@69 14605 HAVE_DOXYGEN_TRUE='#'
Chris@69 14606 HAVE_DOXYGEN_FALSE=
Chris@69 14607 fi
Chris@69 14608
Chris@69 14609
Chris@69 14610 # Check whether --enable-extra-programs was given.
Chris@69 14611 if test "${enable_extra_programs+set}" = set; then :
Chris@69 14612 enableval=$enable_extra_programs;
Chris@69 14613 else
Chris@69 14614 enable_extra_programs=yes
Chris@69 14615 fi
Chris@69 14616
Chris@69 14617
Chris@69 14618 if test "$enable_extra_programs" = "yes"; then
Chris@69 14619 EXTRA_PROGRAMS_TRUE=
Chris@69 14620 EXTRA_PROGRAMS_FALSE='#'
Chris@69 14621 else
Chris@69 14622 EXTRA_PROGRAMS_TRUE='#'
Chris@69 14623 EXTRA_PROGRAMS_FALSE=
Chris@69 14624 fi
Chris@69 14625
Chris@69 14626
Chris@69 14627
Chris@69 14628 # Check whether --enable-rfc8251 was given.
Chris@69 14629 if test "${enable_rfc8251+set}" = set; then :
Chris@69 14630 enableval=$enable_rfc8251;
Chris@69 14631 else
Chris@69 14632 enable_rfc8251=yes
Chris@69 14633 fi
Chris@69 14634
Chris@69 14635
Chris@69 14636 if test "$enable_rfc8251" = "no"; then :
Chris@69 14637
Chris@69 14638
Chris@69 14639 $as_echo "#define DISABLE_UPDATE_DRAFT 1" >>confdefs.h
Chris@69 14640
Chris@69 14641
Chris@69 14642 fi
Chris@69 14643
Chris@69 14644
Chris@69 14645 saved_CFLAGS="$CFLAGS"
Chris@69 14646 CFLAGS="$CFLAGS -fvisibility=hidden"
Chris@69 14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -fvisibility=hidden" >&5
Chris@69 14648 $as_echo_n "checking if ${CC} supports -fvisibility=hidden... " >&6; }
Chris@69 14649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 14650 /* end confdefs.h. */
Chris@69 14651 char foo;
Chris@69 14652 _ACEOF
Chris@69 14653 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 14655 $as_echo "yes" >&6; }
Chris@69 14656 else
Chris@69 14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 14658 $as_echo "no" >&6; }
Chris@69 14659 CFLAGS="$saved_CFLAGS"
Chris@69 14660
Chris@69 14661 fi
Chris@69 14662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 14663
Chris@69 14664 on_x86=no
Chris@69 14665 case "$host_cpu" in
Chris@69 14666 i[3456]86 | x86_64)
Chris@69 14667 on_x86=yes
Chris@69 14668 ;;
Chris@69 14669 esac
Chris@69 14670
Chris@69 14671 on_windows=no
Chris@69 14672 case $host in
Chris@69 14673 *cygwin*|*mingw*)
Chris@69 14674 on_windows=yes
Chris@69 14675 ;;
Chris@69 14676 esac
Chris@69 14677
Chris@69 14678 # Check whether --enable-stack-protector was given.
Chris@69 14679 if test "${enable_stack_protector+set}" = set; then :
Chris@69 14680 enableval=$enable_stack_protector;
Chris@69 14681 else
Chris@69 14682
Chris@69 14683 if test "$ac_cv_c_compiler_gnu" = "yes" && test "$on_x86" = "yes" && test "$on_windows" = "no"; then :
Chris@69 14684 enable_stack_protector=yes
Chris@69 14685 else
Chris@69 14686 enable_stack_protector=no
Chris@69 14687 fi
Chris@69 14688
Chris@69 14689 fi
Chris@69 14690
Chris@69 14691
Chris@69 14692 if test "$enable_stack_protector" = "yes"; then :
Chris@69 14693
Chris@69 14694 saved_CFLAGS="$CFLAGS"
Chris@69 14695 CFLAGS="$CFLAGS -fstack-protector-strong"
Chris@69 14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -fstack-protector-strong" >&5
Chris@69 14697 $as_echo_n "checking if ${CC} supports -fstack-protector-strong... " >&6; }
Chris@69 14698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 14699 /* end confdefs.h. */
Chris@69 14700
Chris@69 14701 int
Chris@69 14702 main ()
Chris@69 14703 {
Chris@69 14704 char foo;
Chris@69 14705 ;
Chris@69 14706 return 0;
Chris@69 14707 }
Chris@69 14708 _ACEOF
Chris@69 14709 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 14711 $as_echo "yes" >&6; }
Chris@69 14712 else
Chris@69 14713
Chris@69 14714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 14715 $as_echo "no" >&6; }
Chris@69 14716 enable_stack_protector=no
Chris@69 14717 CFLAGS="$saved_CFLAGS"
Chris@69 14718
Chris@69 14719 fi
Chris@69 14720 rm -f core conftest.err conftest.$ac_objext \
Chris@69 14721 conftest$ac_exeext conftest.$ac_ext
Chris@69 14722
Chris@69 14723 fi
Chris@69 14724
Chris@69 14725 if test x$ac_cv_c_compiler_gnu = xyes; then :
Chris@69 14726
Chris@69 14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add -D_FORTIFY_SOURCE=2 to CFLAGS" >&5
Chris@69 14728 $as_echo_n "checking whether to add -D_FORTIFY_SOURCE=2 to CFLAGS... " >&6; }
Chris@69 14729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 14730 /* end confdefs.h. */
Chris@69 14731
Chris@69 14732
Chris@69 14733 int main() {
Chris@69 14734 #ifndef _FORTIFY_SOURCE
Chris@69 14735 return 0;
Chris@69 14736 #else
Chris@69 14737 this_is_an_error;
Chris@69 14738 #endif
Chris@69 14739 }
Chris@69 14740
Chris@69 14741
Chris@69 14742 _ACEOF
Chris@69 14743 if ac_fn_c_try_link "$LINENO"; then :
Chris@69 14744
Chris@69 14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 14746 $as_echo "yes" >&6; }
Chris@69 14747 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
Chris@69 14748
Chris@69 14749 else
Chris@69 14750
Chris@69 14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 14752 $as_echo "no" >&6; }
Chris@69 14753
Chris@69 14754 fi
Chris@69 14755 rm -f core conftest.err conftest.$ac_objext \
Chris@69 14756 conftest$ac_exeext conftest.$ac_ext
Chris@69 14757
Chris@69 14758
Chris@69 14759 fi
Chris@69 14760
Chris@69 14761 CFLAGS="$CFLAGS -W"
Chris@69 14762
Chris@69 14763 warn_CFLAGS="-Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes"
Chris@69 14764 saved_CFLAGS="$CFLAGS"
Chris@69 14765 CFLAGS="$CFLAGS $warn_CFLAGS"
Chris@69 14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports ${warn_CFLAGS}" >&5
Chris@69 14767 $as_echo_n "checking if ${CC} supports ${warn_CFLAGS}... " >&6; }
Chris@69 14768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@69 14769 /* end confdefs.h. */
Chris@69 14770 char foo;
Chris@69 14771 _ACEOF
Chris@69 14772 if ac_fn_c_try_compile "$LINENO"; then :
Chris@69 14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@69 14774 $as_echo "yes" >&6; }
Chris@69 14775 else
Chris@69 14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@69 14777 $as_echo "no" >&6; }
Chris@69 14778 CFLAGS="$saved_CFLAGS"
Chris@69 14779
Chris@69 14780 fi
Chris@69 14781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@69 14782
Chris@69 14783 saved_LIBS="$LIBS"
Chris@69 14784 LIBS="$LIBS $LIBM"
Chris@69 14785 for ac_func in lrintf
Chris@69 14786 do :
Chris@69 14787 ac_fn_c_check_func "$LINENO" "lrintf" "ac_cv_func_lrintf"
Chris@69 14788 if test "x$ac_cv_func_lrintf" = xyes; then :
Chris@69 14789 cat >>confdefs.h <<_ACEOF
Chris@69 14790 #define HAVE_LRINTF 1
Chris@69 14791 _ACEOF
Chris@69 14792
Chris@69 14793 fi
Chris@69 14794 done
Chris@69 14795
Chris@69 14796 for ac_func in lrint
Chris@69 14797 do :
Chris@69 14798 ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint"
Chris@69 14799 if test "x$ac_cv_func_lrint" = xyes; then :
Chris@69 14800 cat >>confdefs.h <<_ACEOF
Chris@69 14801 #define HAVE_LRINT 1
Chris@69 14802 _ACEOF
Chris@69 14803
Chris@69 14804 fi
Chris@69 14805 done
Chris@69 14806
Chris@69 14807 LIBS="$saved_LIBS"
Chris@69 14808
Chris@69 14809 for ac_func in __malloc_hook
Chris@69 14810 do :
Chris@69 14811 ac_fn_c_check_func "$LINENO" "__malloc_hook" "ac_cv_func___malloc_hook"
Chris@69 14812 if test "x$ac_cv_func___malloc_hook" = xyes; then :
Chris@69 14813 cat >>confdefs.h <<_ACEOF
Chris@69 14814 #define HAVE___MALLOC_HOOK 1
Chris@69 14815 _ACEOF
Chris@69 14816
Chris@69 14817 fi
Chris@69 14818 done
Chris@69 14819
Chris@69 14820
Chris@69 14821
Chris@69 14822
Chris@69 14823 ac_config_files="$ac_config_files Makefile opus.pc opus-uninstalled.pc celt/arm/armopts.s doc/Makefile doc/Doxyfile"
Chris@69 14824
Chris@69 14825 ac_config_headers="$ac_config_headers config.h"
Chris@69 14826
Chris@69 14827
Chris@69 14828 cat >confcache <<\_ACEOF
Chris@69 14829 # This file is a shell script that caches the results of configure
Chris@69 14830 # tests run on this system so they can be shared between configure
Chris@69 14831 # scripts and configure runs, see configure's option --config-cache.
Chris@69 14832 # It is not useful on other systems. If it contains results you don't
Chris@69 14833 # want to keep, you may remove or edit it.
Chris@69 14834 #
Chris@69 14835 # config.status only pays attention to the cache file if you give it
Chris@69 14836 # the --recheck option to rerun configure.
Chris@69 14837 #
Chris@69 14838 # `ac_cv_env_foo' variables (set or unset) will be overridden when
Chris@69 14839 # loading this file, other *unset* `ac_cv_foo' will be assigned the
Chris@69 14840 # following values.
Chris@69 14841
Chris@69 14842 _ACEOF
Chris@69 14843
Chris@69 14844 # The following way of writing the cache mishandles newlines in values,
Chris@69 14845 # but we know of no workaround that is simple, portable, and efficient.
Chris@69 14846 # So, we kill variables containing newlines.
Chris@69 14847 # Ultrix sh set writes to stderr and can't be redirected directly,
Chris@69 14848 # and sets the high bit in the cache file unless we assign to the vars.
Chris@69 14849 (
Chris@69 14850 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
Chris@69 14851 eval ac_val=\$$ac_var
Chris@69 14852 case $ac_val in #(
Chris@69 14853 *${as_nl}*)
Chris@69 14854 case $ac_var in #(
Chris@69 14855 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Chris@69 14856 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Chris@69 14857 esac
Chris@69 14858 case $ac_var in #(
Chris@69 14859 _ | IFS | as_nl) ;; #(
Chris@69 14860 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Chris@69 14861 *) { eval $ac_var=; unset $ac_var;} ;;
Chris@69 14862 esac ;;
Chris@69 14863 esac
Chris@69 14864 done
Chris@69 14865
Chris@69 14866 (set) 2>&1 |
Chris@69 14867 case $as_nl`(ac_space=' '; set) 2>&1` in #(
Chris@69 14868 *${as_nl}ac_space=\ *)
Chris@69 14869 # `set' does not quote correctly, so add quotes: double-quote
Chris@69 14870 # substitution turns \\\\ into \\, and sed turns \\ into \.
Chris@69 14871 sed -n \
Chris@69 14872 "s/'/'\\\\''/g;
Chris@69 14873 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Chris@69 14874 ;; #(
Chris@69 14875 *)
Chris@69 14876 # `set' quotes correctly as required by POSIX, so do not add quotes.
Chris@69 14877 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@69 14878 ;;
Chris@69 14879 esac |
Chris@69 14880 sort
Chris@69 14881 ) |
Chris@69 14882 sed '
Chris@69 14883 /^ac_cv_env_/b end
Chris@69 14884 t clear
Chris@69 14885 :clear
Chris@69 14886 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
Chris@69 14887 t end
Chris@69 14888 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
Chris@69 14889 :end' >>confcache
Chris@69 14890 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
Chris@69 14891 if test -w "$cache_file"; then
Chris@69 14892 if test "x$cache_file" != "x/dev/null"; then
Chris@69 14893 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Chris@69 14894 $as_echo "$as_me: updating cache $cache_file" >&6;}
Chris@69 14895 if test ! -f "$cache_file" || test -h "$cache_file"; then
Chris@69 14896 cat confcache >"$cache_file"
Chris@69 14897 else
Chris@69 14898 case $cache_file in #(
Chris@69 14899 */* | ?:*)
Chris@69 14900 mv -f confcache "$cache_file"$$ &&
Chris@69 14901 mv -f "$cache_file"$$ "$cache_file" ;; #(
Chris@69 14902 *)
Chris@69 14903 mv -f confcache "$cache_file" ;;
Chris@69 14904 esac
Chris@69 14905 fi
Chris@69 14906 fi
Chris@69 14907 else
Chris@69 14908 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Chris@69 14909 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Chris@69 14910 fi
Chris@69 14911 fi
Chris@69 14912 rm -f confcache
Chris@69 14913
Chris@69 14914 test "x$prefix" = xNONE && prefix=$ac_default_prefix
Chris@69 14915 # Let make expand exec_prefix.
Chris@69 14916 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Chris@69 14917
Chris@69 14918 DEFS=-DHAVE_CONFIG_H
Chris@69 14919
Chris@69 14920 ac_libobjs=
Chris@69 14921 ac_ltlibobjs=
Chris@69 14922 U=
Chris@69 14923 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
Chris@69 14924 # 1. Remove the extension, and $U if already installed.
Chris@69 14925 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Chris@69 14926 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Chris@69 14927 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
Chris@69 14928 # will be set to the directory where LIBOBJS objects are built.
Chris@69 14929 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
Chris@69 14930 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Chris@69 14931 done
Chris@69 14932 LIBOBJS=$ac_libobjs
Chris@69 14933
Chris@69 14934 LTLIBOBJS=$ac_ltlibobjs
Chris@69 14935
Chris@69 14936
Chris@69 14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
Chris@69 14938 $as_echo_n "checking that generated files are newer than configure... " >&6; }
Chris@69 14939 if test -n "$am_sleep_pid"; then
Chris@69 14940 # Hide warnings about reused PIDs.
Chris@69 14941 wait $am_sleep_pid 2>/dev/null
Chris@69 14942 fi
Chris@69 14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
Chris@69 14944 $as_echo "done" >&6; }
Chris@69 14945 if test -n "$EXEEXT"; then
Chris@69 14946 am__EXEEXT_TRUE=
Chris@69 14947 am__EXEEXT_FALSE='#'
Chris@69 14948 else
Chris@69 14949 am__EXEEXT_TRUE='#'
Chris@69 14950 am__EXEEXT_FALSE=
Chris@69 14951 fi
Chris@69 14952
Chris@69 14953 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
Chris@69 14954 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
Chris@69 14955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 14956 fi
Chris@69 14957 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Chris@69 14958 as_fn_error $? "conditional \"AMDEP\" was never defined.
Chris@69 14959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 14960 fi
Chris@69 14961 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Chris@69 14962 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Chris@69 14963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 14964 fi
Chris@69 14965 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
Chris@69 14966 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
Chris@69 14967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 14968 fi
Chris@69 14969 if test -z "${FIXED_POINT_TRUE}" && test -z "${FIXED_POINT_FALSE}"; then
Chris@69 14970 as_fn_error $? "conditional \"FIXED_POINT\" was never defined.
Chris@69 14971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 14972 fi
Chris@69 14973 if test -z "${DISABLE_FLOAT_API_TRUE}" && test -z "${DISABLE_FLOAT_API_FALSE}"; then
Chris@69 14974 as_fn_error $? "conditional \"DISABLE_FLOAT_API\" was never defined.
Chris@69 14975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 14976 fi
Chris@69 14977 if test -z "${CUSTOM_MODES_TRUE}" && test -z "${CUSTOM_MODES_FALSE}"; then
Chris@69 14978 as_fn_error $? "conditional \"CUSTOM_MODES\" was never defined.
Chris@69 14979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 14980 fi
Chris@69 14981 if test -z "${OPUS_ARM_INLINE_ASM_TRUE}" && test -z "${OPUS_ARM_INLINE_ASM_FALSE}"; then
Chris@69 14982 as_fn_error $? "conditional \"OPUS_ARM_INLINE_ASM\" was never defined.
Chris@69 14983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 14984 fi
Chris@69 14985 if test -z "${OPUS_ARM_EXTERNAL_ASM_TRUE}" && test -z "${OPUS_ARM_EXTERNAL_ASM_FALSE}"; then
Chris@69 14986 as_fn_error $? "conditional \"OPUS_ARM_EXTERNAL_ASM\" was never defined.
Chris@69 14987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 14988 fi
Chris@69 14989 if test -z "${OPUS_ARM_INLINE_ASM_TRUE}" && test -z "${OPUS_ARM_INLINE_ASM_FALSE}"; then
Chris@69 14990 as_fn_error $? "conditional \"OPUS_ARM_INLINE_ASM\" was never defined.
Chris@69 14991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 14992 fi
Chris@69 14993 if test -z "${OPUS_ARM_EXTERNAL_ASM_TRUE}" && test -z "${OPUS_ARM_EXTERNAL_ASM_FALSE}"; then
Chris@69 14994 as_fn_error $? "conditional \"OPUS_ARM_EXTERNAL_ASM\" was never defined.
Chris@69 14995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 14996 fi
Chris@69 14997 if test -z "${HAVE_SSE_TRUE}" && test -z "${HAVE_SSE_FALSE}"; then
Chris@69 14998 as_fn_error $? "conditional \"HAVE_SSE\" was never defined.
Chris@69 14999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 15000 fi
Chris@69 15001 if test -z "${HAVE_SSE2_TRUE}" && test -z "${HAVE_SSE2_FALSE}"; then
Chris@69 15002 as_fn_error $? "conditional \"HAVE_SSE2\" was never defined.
Chris@69 15003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 15004 fi
Chris@69 15005 if test -z "${HAVE_SSE4_1_TRUE}" && test -z "${HAVE_SSE4_1_FALSE}"; then
Chris@69 15006 as_fn_error $? "conditional \"HAVE_SSE4_1\" was never defined.
Chris@69 15007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 15008 fi
Chris@69 15009 if test -z "${HAVE_AVX_TRUE}" && test -z "${HAVE_AVX_FALSE}"; then
Chris@69 15010 as_fn_error $? "conditional \"HAVE_AVX\" was never defined.
Chris@69 15011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 15012 fi
Chris@69 15013 if test -z "${CPU_ARM_TRUE}" && test -z "${CPU_ARM_FALSE}"; then
Chris@69 15014 as_fn_error $? "conditional \"CPU_ARM\" was never defined.
Chris@69 15015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 15016 fi
Chris@69 15017 if test -z "${HAVE_ARM_NEON_INTR_TRUE}" && test -z "${HAVE_ARM_NEON_INTR_FALSE}"; then
Chris@69 15018 as_fn_error $? "conditional \"HAVE_ARM_NEON_INTR\" was never defined.
Chris@69 15019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 15020 fi
Chris@69 15021 if test -z "${HAVE_ARM_NE10_TRUE}" && test -z "${HAVE_ARM_NE10_FALSE}"; then
Chris@69 15022 as_fn_error $? "conditional \"HAVE_ARM_NE10\" was never defined.
Chris@69 15023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 15024 fi
Chris@69 15025 if test -z "${HAVE_SSE_TRUE}" && test -z "${HAVE_SSE_FALSE}"; then
Chris@69 15026 as_fn_error $? "conditional \"HAVE_SSE\" was never defined.
Chris@69 15027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 15028 fi
Chris@69 15029 if test -z "${HAVE_SSE2_TRUE}" && test -z "${HAVE_SSE2_FALSE}"; then
Chris@69 15030 as_fn_error $? "conditional \"HAVE_SSE2\" was never defined.
Chris@69 15031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 15032 fi
Chris@69 15033 if test -z "${HAVE_SSE4_1_TRUE}" && test -z "${HAVE_SSE4_1_FALSE}"; then
Chris@69 15034 as_fn_error $? "conditional \"HAVE_SSE4_1\" was never defined.
Chris@69 15035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 15036 fi
Chris@69 15037 if test -z "${HAVE_AVX_TRUE}" && test -z "${HAVE_AVX_FALSE}"; then
Chris@69 15038 as_fn_error $? "conditional \"HAVE_AVX\" was never defined.
Chris@69 15039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 15040 fi
Chris@69 15041 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
Chris@69 15042 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
Chris@69 15043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 15044 fi
Chris@69 15045 if test -z "${EXTRA_PROGRAMS_TRUE}" && test -z "${EXTRA_PROGRAMS_FALSE}"; then
Chris@69 15046 as_fn_error $? "conditional \"EXTRA_PROGRAMS\" was never defined.
Chris@69 15047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Chris@69 15048 fi
Chris@69 15049
Chris@69 15050 : "${CONFIG_STATUS=./config.status}"
Chris@69 15051 ac_write_fail=0
Chris@69 15052 ac_clean_files_save=$ac_clean_files
Chris@69 15053 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Chris@69 15054 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Chris@69 15055 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Chris@69 15056 as_write_fail=0
Chris@69 15057 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Chris@69 15058 #! $SHELL
Chris@69 15059 # Generated by $as_me.
Chris@69 15060 # Run this file to recreate the current configuration.
Chris@69 15061 # Compiler output produced by configure, useful for debugging
Chris@69 15062 # configure, is in config.log if it exists.
Chris@69 15063
Chris@69 15064 debug=false
Chris@69 15065 ac_cs_recheck=false
Chris@69 15066 ac_cs_silent=false
Chris@69 15067
Chris@69 15068 SHELL=\${CONFIG_SHELL-$SHELL}
Chris@69 15069 export SHELL
Chris@69 15070 _ASEOF
Chris@69 15071 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
Chris@69 15072 ## -------------------- ##
Chris@69 15073 ## M4sh Initialization. ##
Chris@69 15074 ## -------------------- ##
Chris@69 15075
Chris@69 15076 # Be more Bourne compatible
Chris@69 15077 DUALCASE=1; export DUALCASE # for MKS sh
Chris@69 15078 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Chris@69 15079 emulate sh
Chris@69 15080 NULLCMD=:
Chris@69 15081 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Chris@69 15082 # is contrary to our usage. Disable this feature.
Chris@69 15083 alias -g '${1+"$@"}'='"$@"'
Chris@69 15084 setopt NO_GLOB_SUBST
Chris@69 15085 else
Chris@69 15086 case `(set -o) 2>/dev/null` in #(
Chris@69 15087 *posix*) :
Chris@69 15088 set -o posix ;; #(
Chris@69 15089 *) :
Chris@69 15090 ;;
Chris@69 15091 esac
Chris@69 15092 fi
Chris@69 15093
Chris@69 15094
Chris@69 15095 as_nl='
Chris@69 15096 '
Chris@69 15097 export as_nl
Chris@69 15098 # Printing a long string crashes Solaris 7 /usr/bin/printf.
Chris@69 15099 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@69 15100 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@69 15101 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@69 15102 # Prefer a ksh shell builtin over an external printf program on Solaris,
Chris@69 15103 # but without wasting forks for bash or zsh.
Chris@69 15104 if test -z "$BASH_VERSION$ZSH_VERSION" \
Chris@69 15105 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@69 15106 as_echo='print -r --'
Chris@69 15107 as_echo_n='print -rn --'
Chris@69 15108 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@69 15109 as_echo='printf %s\n'
Chris@69 15110 as_echo_n='printf %s'
Chris@69 15111 else
Chris@69 15112 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
Chris@69 15113 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
Chris@69 15114 as_echo_n='/usr/ucb/echo -n'
Chris@69 15115 else
Chris@69 15116 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
Chris@69 15117 as_echo_n_body='eval
Chris@69 15118 arg=$1;
Chris@69 15119 case $arg in #(
Chris@69 15120 *"$as_nl"*)
Chris@69 15121 expr "X$arg" : "X\\(.*\\)$as_nl";
Chris@69 15122 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
Chris@69 15123 esac;
Chris@69 15124 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
Chris@69 15125 '
Chris@69 15126 export as_echo_n_body
Chris@69 15127 as_echo_n='sh -c $as_echo_n_body as_echo'
Chris@69 15128 fi
Chris@69 15129 export as_echo_body
Chris@69 15130 as_echo='sh -c $as_echo_body as_echo'
Chris@69 15131 fi
Chris@69 15132
Chris@69 15133 # The user is always right.
Chris@69 15134 if test "${PATH_SEPARATOR+set}" != set; then
Chris@69 15135 PATH_SEPARATOR=:
Chris@69 15136 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
Chris@69 15137 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
Chris@69 15138 PATH_SEPARATOR=';'
Chris@69 15139 }
Chris@69 15140 fi
Chris@69 15141
Chris@69 15142
Chris@69 15143 # IFS
Chris@69 15144 # We need space, tab and new line, in precisely that order. Quoting is
Chris@69 15145 # there to prevent editors from complaining about space-tab.
Chris@69 15146 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
Chris@69 15147 # splitting by setting IFS to empty value.)
Chris@69 15148 IFS=" "" $as_nl"
Chris@69 15149
Chris@69 15150 # Find who we are. Look in the path if we contain no directory separator.
Chris@69 15151 as_myself=
Chris@69 15152 case $0 in #((
Chris@69 15153 *[\\/]* ) as_myself=$0 ;;
Chris@69 15154 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@69 15155 for as_dir in $PATH
Chris@69 15156 do
Chris@69 15157 IFS=$as_save_IFS
Chris@69 15158 test -z "$as_dir" && as_dir=.
Chris@69 15159 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
Chris@69 15160 done
Chris@69 15161 IFS=$as_save_IFS
Chris@69 15162
Chris@69 15163 ;;
Chris@69 15164 esac
Chris@69 15165 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@69 15166 # in which case we are not to be found in the path.
Chris@69 15167 if test "x$as_myself" = x; then
Chris@69 15168 as_myself=$0
Chris@69 15169 fi
Chris@69 15170 if test ! -f "$as_myself"; then
Chris@69 15171 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Chris@69 15172 exit 1
Chris@69 15173 fi
Chris@69 15174
Chris@69 15175 # Unset variables that we do not need and which cause bugs (e.g. in
Chris@69 15176 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
Chris@69 15177 # suppresses any "Segmentation fault" message there. '((' could
Chris@69 15178 # trigger a bug in pdksh 5.2.14.
Chris@69 15179 for as_var in BASH_ENV ENV MAIL MAILPATH
Chris@69 15180 do eval test x\${$as_var+set} = xset \
Chris@69 15181 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Chris@69 15182 done
Chris@69 15183 PS1='$ '
Chris@69 15184 PS2='> '
Chris@69 15185 PS4='+ '
Chris@69 15186
Chris@69 15187 # NLS nuisances.
Chris@69 15188 LC_ALL=C
Chris@69 15189 export LC_ALL
Chris@69 15190 LANGUAGE=C
Chris@69 15191 export LANGUAGE
Chris@69 15192
Chris@69 15193 # CDPATH.
Chris@69 15194 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@69 15195
Chris@69 15196
Chris@69 15197 # as_fn_error STATUS ERROR [LINENO LOG_FD]
Chris@69 15198 # ----------------------------------------
Chris@69 15199 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
Chris@69 15200 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Chris@69 15201 # script with STATUS, using 1 if that was 0.
Chris@69 15202 as_fn_error ()
Chris@69 15203 {
Chris@69 15204 as_status=$1; test $as_status -eq 0 && as_status=1
Chris@69 15205 if test "$4"; then
Chris@69 15206 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@69 15207 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Chris@69 15208 fi
Chris@69 15209 $as_echo "$as_me: error: $2" >&2
Chris@69 15210 as_fn_exit $as_status
Chris@69 15211 } # as_fn_error
Chris@69 15212
Chris@69 15213
Chris@69 15214 # as_fn_set_status STATUS
Chris@69 15215 # -----------------------
Chris@69 15216 # Set $? to STATUS, without forking.
Chris@69 15217 as_fn_set_status ()
Chris@69 15218 {
Chris@69 15219 return $1
Chris@69 15220 } # as_fn_set_status
Chris@69 15221
Chris@69 15222 # as_fn_exit STATUS
Chris@69 15223 # -----------------
Chris@69 15224 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
Chris@69 15225 as_fn_exit ()
Chris@69 15226 {
Chris@69 15227 set +e
Chris@69 15228 as_fn_set_status $1
Chris@69 15229 exit $1
Chris@69 15230 } # as_fn_exit
Chris@69 15231
Chris@69 15232 # as_fn_unset VAR
Chris@69 15233 # ---------------
Chris@69 15234 # Portably unset VAR.
Chris@69 15235 as_fn_unset ()
Chris@69 15236 {
Chris@69 15237 { eval $1=; unset $1;}
Chris@69 15238 }
Chris@69 15239 as_unset=as_fn_unset
Chris@69 15240 # as_fn_append VAR VALUE
Chris@69 15241 # ----------------------
Chris@69 15242 # Append the text in VALUE to the end of the definition contained in VAR. Take
Chris@69 15243 # advantage of any shell optimizations that allow amortized linear growth over
Chris@69 15244 # repeated appends, instead of the typical quadratic growth present in naive
Chris@69 15245 # implementations.
Chris@69 15246 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
Chris@69 15247 eval 'as_fn_append ()
Chris@69 15248 {
Chris@69 15249 eval $1+=\$2
Chris@69 15250 }'
Chris@69 15251 else
Chris@69 15252 as_fn_append ()
Chris@69 15253 {
Chris@69 15254 eval $1=\$$1\$2
Chris@69 15255 }
Chris@69 15256 fi # as_fn_append
Chris@69 15257
Chris@69 15258 # as_fn_arith ARG...
Chris@69 15259 # ------------------
Chris@69 15260 # Perform arithmetic evaluation on the ARGs, and store the result in the
Chris@69 15261 # global $as_val. Take advantage of shells that can avoid forks. The arguments
Chris@69 15262 # must be portable across $(()) and expr.
Chris@69 15263 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
Chris@69 15264 eval 'as_fn_arith ()
Chris@69 15265 {
Chris@69 15266 as_val=$(( $* ))
Chris@69 15267 }'
Chris@69 15268 else
Chris@69 15269 as_fn_arith ()
Chris@69 15270 {
Chris@69 15271 as_val=`expr "$@" || test $? -eq 1`
Chris@69 15272 }
Chris@69 15273 fi # as_fn_arith
Chris@69 15274
Chris@69 15275
Chris@69 15276 if expr a : '\(a\)' >/dev/null 2>&1 &&
Chris@69 15277 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Chris@69 15278 as_expr=expr
Chris@69 15279 else
Chris@69 15280 as_expr=false
Chris@69 15281 fi
Chris@69 15282
Chris@69 15283 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Chris@69 15284 as_basename=basename
Chris@69 15285 else
Chris@69 15286 as_basename=false
Chris@69 15287 fi
Chris@69 15288
Chris@69 15289 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Chris@69 15290 as_dirname=dirname
Chris@69 15291 else
Chris@69 15292 as_dirname=false
Chris@69 15293 fi
Chris@69 15294
Chris@69 15295 as_me=`$as_basename -- "$0" ||
Chris@69 15296 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@69 15297 X"$0" : 'X\(//\)$' \| \
Chris@69 15298 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Chris@69 15299 $as_echo X/"$0" |
Chris@69 15300 sed '/^.*\/\([^/][^/]*\)\/*$/{
Chris@69 15301 s//\1/
Chris@69 15302 q
Chris@69 15303 }
Chris@69 15304 /^X\/\(\/\/\)$/{
Chris@69 15305 s//\1/
Chris@69 15306 q
Chris@69 15307 }
Chris@69 15308 /^X\/\(\/\).*/{
Chris@69 15309 s//\1/
Chris@69 15310 q
Chris@69 15311 }
Chris@69 15312 s/.*/./; q'`
Chris@69 15313
Chris@69 15314 # Avoid depending upon Character Ranges.
Chris@69 15315 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
Chris@69 15316 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Chris@69 15317 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
Chris@69 15318 as_cr_digits='0123456789'
Chris@69 15319 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@69 15320
Chris@69 15321 ECHO_C= ECHO_N= ECHO_T=
Chris@69 15322 case `echo -n x` in #(((((
Chris@69 15323 -n*)
Chris@69 15324 case `echo 'xy\c'` in
Chris@69 15325 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Chris@69 15326 xy) ECHO_C='\c';;
Chris@69 15327 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
Chris@69 15328 ECHO_T=' ';;
Chris@69 15329 esac;;
Chris@69 15330 *)
Chris@69 15331 ECHO_N='-n';;
Chris@69 15332 esac
Chris@69 15333
Chris@69 15334 rm -f conf$$ conf$$.exe conf$$.file
Chris@69 15335 if test -d conf$$.dir; then
Chris@69 15336 rm -f conf$$.dir/conf$$.file
Chris@69 15337 else
Chris@69 15338 rm -f conf$$.dir
Chris@69 15339 mkdir conf$$.dir 2>/dev/null
Chris@69 15340 fi
Chris@69 15341 if (echo >conf$$.file) 2>/dev/null; then
Chris@69 15342 if ln -s conf$$.file conf$$ 2>/dev/null; then
Chris@69 15343 as_ln_s='ln -s'
Chris@69 15344 # ... but there are two gotchas:
Chris@69 15345 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
Chris@69 15346 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Chris@69 15347 # In both cases, we have to default to `cp -pR'.
Chris@69 15348 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@69 15349 as_ln_s='cp -pR'
Chris@69 15350 elif ln conf$$.file conf$$ 2>/dev/null; then
Chris@69 15351 as_ln_s=ln
Chris@69 15352 else
Chris@69 15353 as_ln_s='cp -pR'
Chris@69 15354 fi
Chris@69 15355 else
Chris@69 15356 as_ln_s='cp -pR'
Chris@69 15357 fi
Chris@69 15358 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Chris@69 15359 rmdir conf$$.dir 2>/dev/null
Chris@69 15360
Chris@69 15361
Chris@69 15362 # as_fn_mkdir_p
Chris@69 15363 # -------------
Chris@69 15364 # Create "$as_dir" as a directory, including parents if necessary.
Chris@69 15365 as_fn_mkdir_p ()
Chris@69 15366 {
Chris@69 15367
Chris@69 15368 case $as_dir in #(
Chris@69 15369 -*) as_dir=./$as_dir;;
Chris@69 15370 esac
Chris@69 15371 test -d "$as_dir" || eval $as_mkdir_p || {
Chris@69 15372 as_dirs=
Chris@69 15373 while :; do
Chris@69 15374 case $as_dir in #(
Chris@69 15375 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Chris@69 15376 *) as_qdir=$as_dir;;
Chris@69 15377 esac
Chris@69 15378 as_dirs="'$as_qdir' $as_dirs"
Chris@69 15379 as_dir=`$as_dirname -- "$as_dir" ||
Chris@69 15380 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@69 15381 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@69 15382 X"$as_dir" : 'X\(//\)$' \| \
Chris@69 15383 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Chris@69 15384 $as_echo X"$as_dir" |
Chris@69 15385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@69 15386 s//\1/
Chris@69 15387 q
Chris@69 15388 }
Chris@69 15389 /^X\(\/\/\)[^/].*/{
Chris@69 15390 s//\1/
Chris@69 15391 q
Chris@69 15392 }
Chris@69 15393 /^X\(\/\/\)$/{
Chris@69 15394 s//\1/
Chris@69 15395 q
Chris@69 15396 }
Chris@69 15397 /^X\(\/\).*/{
Chris@69 15398 s//\1/
Chris@69 15399 q
Chris@69 15400 }
Chris@69 15401 s/.*/./; q'`
Chris@69 15402 test -d "$as_dir" && break
Chris@69 15403 done
Chris@69 15404 test -z "$as_dirs" || eval "mkdir $as_dirs"
Chris@69 15405 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Chris@69 15406
Chris@69 15407
Chris@69 15408 } # as_fn_mkdir_p
Chris@69 15409 if mkdir -p . 2>/dev/null; then
Chris@69 15410 as_mkdir_p='mkdir -p "$as_dir"'
Chris@69 15411 else
Chris@69 15412 test -d ./-p && rmdir ./-p
Chris@69 15413 as_mkdir_p=false
Chris@69 15414 fi
Chris@69 15415
Chris@69 15416
Chris@69 15417 # as_fn_executable_p FILE
Chris@69 15418 # -----------------------
Chris@69 15419 # Test if FILE is an executable regular file.
Chris@69 15420 as_fn_executable_p ()
Chris@69 15421 {
Chris@69 15422 test -f "$1" && test -x "$1"
Chris@69 15423 } # as_fn_executable_p
Chris@69 15424 as_test_x='test -x'
Chris@69 15425 as_executable_p=as_fn_executable_p
Chris@69 15426
Chris@69 15427 # Sed expression to map a string onto a valid CPP name.
Chris@69 15428 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Chris@69 15429
Chris@69 15430 # Sed expression to map a string onto a valid variable name.
Chris@69 15431 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Chris@69 15432
Chris@69 15433
Chris@69 15434 exec 6>&1
Chris@69 15435 ## ----------------------------------- ##
Chris@69 15436 ## Main body of $CONFIG_STATUS script. ##
Chris@69 15437 ## ----------------------------------- ##
Chris@69 15438 _ASEOF
Chris@69 15439 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Chris@69 15440
Chris@69 15441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@69 15442 # Save the log message, to keep $0 and so on meaningful, and to
Chris@69 15443 # report actual input values of CONFIG_FILES etc. instead of their
Chris@69 15444 # values after options handling.
Chris@69 15445 ac_log="
Chris@69 15446 This file was extended by opus $as_me 1.3, which was
Chris@69 15447 generated by GNU Autoconf 2.69. Invocation command line was
Chris@69 15448
Chris@69 15449 CONFIG_FILES = $CONFIG_FILES
Chris@69 15450 CONFIG_HEADERS = $CONFIG_HEADERS
Chris@69 15451 CONFIG_LINKS = $CONFIG_LINKS
Chris@69 15452 CONFIG_COMMANDS = $CONFIG_COMMANDS
Chris@69 15453 $ $0 $@
Chris@69 15454
Chris@69 15455 on `(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@69 15456 "
Chris@69 15457
Chris@69 15458 _ACEOF
Chris@69 15459
Chris@69 15460 case $ac_config_files in *"
Chris@69 15461 "*) set x $ac_config_files; shift; ac_config_files=$*;;
Chris@69 15462 esac
Chris@69 15463
Chris@69 15464 case $ac_config_headers in *"
Chris@69 15465 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
Chris@69 15466 esac
Chris@69 15467
Chris@69 15468
Chris@69 15469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@69 15470 # Files that config.status was made for.
Chris@69 15471 config_files="$ac_config_files"
Chris@69 15472 config_headers="$ac_config_headers"
Chris@69 15473 config_commands="$ac_config_commands"
Chris@69 15474
Chris@69 15475 _ACEOF
Chris@69 15476
Chris@69 15477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@69 15478 ac_cs_usage="\
Chris@69 15479 \`$as_me' instantiates files and other configuration actions
Chris@69 15480 from templates according to the current configuration. Unless the files
Chris@69 15481 and actions are specified as TAGs, all are instantiated by default.
Chris@69 15482
Chris@69 15483 Usage: $0 [OPTION]... [TAG]...
Chris@69 15484
Chris@69 15485 -h, --help print this help, then exit
Chris@69 15486 -V, --version print version number and configuration settings, then exit
Chris@69 15487 --config print configuration, then exit
Chris@69 15488 -q, --quiet, --silent
Chris@69 15489 do not print progress messages
Chris@69 15490 -d, --debug don't remove temporary files
Chris@69 15491 --recheck update $as_me by reconfiguring in the same conditions
Chris@69 15492 --file=FILE[:TEMPLATE]
Chris@69 15493 instantiate the configuration file FILE
Chris@69 15494 --header=FILE[:TEMPLATE]
Chris@69 15495 instantiate the configuration header FILE
Chris@69 15496
Chris@69 15497 Configuration files:
Chris@69 15498 $config_files
Chris@69 15499
Chris@69 15500 Configuration headers:
Chris@69 15501 $config_headers
Chris@69 15502
Chris@69 15503 Configuration commands:
Chris@69 15504 $config_commands
Chris@69 15505
Chris@69 15506 Report bugs to <opus@xiph.org>."
Chris@69 15507
Chris@69 15508 _ACEOF
Chris@69 15509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@69 15510 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Chris@69 15511 ac_cs_version="\\
Chris@69 15512 opus config.status 1.3
Chris@69 15513 configured by $0, generated by GNU Autoconf 2.69,
Chris@69 15514 with options \\"\$ac_cs_config\\"
Chris@69 15515
Chris@69 15516 Copyright (C) 2012 Free Software Foundation, Inc.
Chris@69 15517 This config.status script is free software; the Free Software Foundation
Chris@69 15518 gives unlimited permission to copy, distribute and modify it."
Chris@69 15519
Chris@69 15520 ac_pwd='$ac_pwd'
Chris@69 15521 srcdir='$srcdir'
Chris@69 15522 INSTALL='$INSTALL'
Chris@69 15523 MKDIR_P='$MKDIR_P'
Chris@69 15524 AWK='$AWK'
Chris@69 15525 test -n "\$AWK" || AWK=awk
Chris@69 15526 _ACEOF
Chris@69 15527
Chris@69 15528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@69 15529 # The default lists apply if the user does not specify any file.
Chris@69 15530 ac_need_defaults=:
Chris@69 15531 while test $# != 0
Chris@69 15532 do
Chris@69 15533 case $1 in
Chris@69 15534 --*=?*)
Chris@69 15535 ac_option=`expr "X$1" : 'X\([^=]*\)='`
Chris@69 15536 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Chris@69 15537 ac_shift=:
Chris@69 15538 ;;
Chris@69 15539 --*=)
Chris@69 15540 ac_option=`expr "X$1" : 'X\([^=]*\)='`
Chris@69 15541 ac_optarg=
Chris@69 15542 ac_shift=:
Chris@69 15543 ;;
Chris@69 15544 *)
Chris@69 15545 ac_option=$1
Chris@69 15546 ac_optarg=$2
Chris@69 15547 ac_shift=shift
Chris@69 15548 ;;
Chris@69 15549 esac
Chris@69 15550
Chris@69 15551 case $ac_option in
Chris@69 15552 # Handling of the options.
Chris@69 15553 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Chris@69 15554 ac_cs_recheck=: ;;
Chris@69 15555 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Chris@69 15556 $as_echo "$ac_cs_version"; exit ;;
Chris@69 15557 --config | --confi | --conf | --con | --co | --c )
Chris@69 15558 $as_echo "$ac_cs_config"; exit ;;
Chris@69 15559 --debug | --debu | --deb | --de | --d | -d )
Chris@69 15560 debug=: ;;
Chris@69 15561 --file | --fil | --fi | --f )
Chris@69 15562 $ac_shift
Chris@69 15563 case $ac_optarg in
Chris@69 15564 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@69 15565 '') as_fn_error $? "missing file argument" ;;
Chris@69 15566 esac
Chris@69 15567 as_fn_append CONFIG_FILES " '$ac_optarg'"
Chris@69 15568 ac_need_defaults=false;;
Chris@69 15569 --header | --heade | --head | --hea )
Chris@69 15570 $ac_shift
Chris@69 15571 case $ac_optarg in
Chris@69 15572 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@69 15573 esac
Chris@69 15574 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Chris@69 15575 ac_need_defaults=false;;
Chris@69 15576 --he | --h)
Chris@69 15577 # Conflict between --help and --header
Chris@69 15578 as_fn_error $? "ambiguous option: \`$1'
Chris@69 15579 Try \`$0 --help' for more information.";;
Chris@69 15580 --help | --hel | -h )
Chris@69 15581 $as_echo "$ac_cs_usage"; exit ;;
Chris@69 15582 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@69 15583 | -silent | --silent | --silen | --sile | --sil | --si | --s)
Chris@69 15584 ac_cs_silent=: ;;
Chris@69 15585
Chris@69 15586 # This is an error.
Chris@69 15587 -*) as_fn_error $? "unrecognized option: \`$1'
Chris@69 15588 Try \`$0 --help' for more information." ;;
Chris@69 15589
Chris@69 15590 *) as_fn_append ac_config_targets " $1"
Chris@69 15591 ac_need_defaults=false ;;
Chris@69 15592
Chris@69 15593 esac
Chris@69 15594 shift
Chris@69 15595 done
Chris@69 15596
Chris@69 15597 ac_configure_extra_args=
Chris@69 15598
Chris@69 15599 if $ac_cs_silent; then
Chris@69 15600 exec 6>/dev/null
Chris@69 15601 ac_configure_extra_args="$ac_configure_extra_args --silent"
Chris@69 15602 fi
Chris@69 15603
Chris@69 15604 _ACEOF
Chris@69 15605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@69 15606 if \$ac_cs_recheck; then
Chris@69 15607 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Chris@69 15608 shift
Chris@69 15609 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
Chris@69 15610 CONFIG_SHELL='$SHELL'
Chris@69 15611 export CONFIG_SHELL
Chris@69 15612 exec "\$@"
Chris@69 15613 fi
Chris@69 15614
Chris@69 15615 _ACEOF
Chris@69 15616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@69 15617 exec 5>>config.log
Chris@69 15618 {
Chris@69 15619 echo
Chris@69 15620 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
Chris@69 15621 ## Running $as_me. ##
Chris@69 15622 _ASBOX
Chris@69 15623 $as_echo "$ac_log"
Chris@69 15624 } >&5
Chris@69 15625
Chris@69 15626 _ACEOF
Chris@69 15627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@69 15628 #
Chris@69 15629 # INIT-COMMANDS
Chris@69 15630 #
Chris@69 15631 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
Chris@69 15632
Chris@69 15633
Chris@69 15634 # The HP-UX ksh and POSIX shell print the target directory to stdout
Chris@69 15635 # if CDPATH is set.
Chris@69 15636 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@69 15637
Chris@69 15638 sed_quote_subst='$sed_quote_subst'
Chris@69 15639 double_quote_subst='$double_quote_subst'
Chris@69 15640 delay_variable_subst='$delay_variable_subst'
Chris@69 15641 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
Chris@69 15642 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
Chris@69 15643 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
Chris@69 15644 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
Chris@69 15645 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
Chris@69 15646 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
Chris@69 15647 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
Chris@69 15648 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
Chris@69 15649 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
Chris@69 15650 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
Chris@69 15651 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
Chris@69 15652 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
Chris@69 15653 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
Chris@69 15654 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
Chris@69 15655 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
Chris@69 15656 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
Chris@69 15657 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
Chris@69 15658 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
Chris@69 15659 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
Chris@69 15660 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
Chris@69 15661 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
Chris@69 15662 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
Chris@69 15663 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
Chris@69 15664 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
Chris@69 15665 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
Chris@69 15666 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
Chris@69 15667 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
Chris@69 15668 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
Chris@69 15669 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
Chris@69 15670 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
Chris@69 15671 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
Chris@69 15672 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
Chris@69 15673 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
Chris@69 15674 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 15675 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
Chris@69 15676 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
Chris@69 15677 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
Chris@69 15678 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
Chris@69 15679 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
Chris@69 15680 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
Chris@69 15681 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
Chris@69 15682 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
Chris@69 15683 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
Chris@69 15684 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@69 15685 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
Chris@69 15686 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
Chris@69 15687 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 15688 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 15689 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 15690 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
Chris@69 15691 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
Chris@69 15692 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
Chris@69 15693 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
Chris@69 15694 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
Chris@69 15695 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
Chris@69 15696 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
Chris@69 15697 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
Chris@69 15698 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 15699 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 15700 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
Chris@69 15701 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@69 15702 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
Chris@69 15703 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
Chris@69 15704 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
Chris@69 15705 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
Chris@69 15706 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
Chris@69 15707 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
Chris@69 15708 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
Chris@69 15709 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
Chris@69 15710 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
Chris@69 15711 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
Chris@69 15712 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
Chris@69 15713 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
Chris@69 15714 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
Chris@69 15715 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
Chris@69 15716 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
Chris@69 15717 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
Chris@69 15718 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
Chris@69 15719 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 15720 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 15721 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
Chris@69 15722 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
Chris@69 15723 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@69 15724 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@69 15725 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
Chris@69 15726 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 15727 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 15728 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 15729 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 15730 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 15731 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 15732 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
Chris@69 15733 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
Chris@69 15734 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
Chris@69 15735 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
Chris@69 15736 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
Chris@69 15737 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
Chris@69 15738 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
Chris@69 15739 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
Chris@69 15740 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
Chris@69 15741 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
Chris@69 15742 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
Chris@69 15743 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
Chris@69 15744 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
Chris@69 15745 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 15746 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
Chris@69 15747 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
Chris@69 15748 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 15749 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 15750 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
Chris@69 15751 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
Chris@69 15752 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
Chris@69 15753 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
Chris@69 15754 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
Chris@69 15755 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
Chris@69 15756 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
Chris@69 15757 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
Chris@69 15758 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
Chris@69 15759 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
Chris@69 15760 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
Chris@69 15761 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
Chris@69 15762 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 15763 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 15764 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
Chris@69 15765 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
Chris@69 15766 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
Chris@69 15767 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
Chris@69 15768 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
Chris@69 15769 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
Chris@69 15770 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
Chris@69 15771 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
Chris@69 15772 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
Chris@69 15773 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
Chris@69 15774 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
Chris@69 15775 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Chris@69 15776
Chris@69 15777 LTCC='$LTCC'
Chris@69 15778 LTCFLAGS='$LTCFLAGS'
Chris@69 15779 compiler='$compiler_DEFAULT'
Chris@69 15780
Chris@69 15781 # A function that is used when there is no print builtin or printf.
Chris@69 15782 func_fallback_echo ()
Chris@69 15783 {
Chris@69 15784 eval 'cat <<_LTECHO_EOF
Chris@69 15785 \$1
Chris@69 15786 _LTECHO_EOF'
Chris@69 15787 }
Chris@69 15788
Chris@69 15789 # Quote evaled strings.
Chris@69 15790 for var in SHELL \
Chris@69 15791 ECHO \
Chris@69 15792 PATH_SEPARATOR \
Chris@69 15793 SED \
Chris@69 15794 GREP \
Chris@69 15795 EGREP \
Chris@69 15796 FGREP \
Chris@69 15797 LD \
Chris@69 15798 NM \
Chris@69 15799 LN_S \
Chris@69 15800 lt_SP2NL \
Chris@69 15801 lt_NL2SP \
Chris@69 15802 reload_flag \
Chris@69 15803 OBJDUMP \
Chris@69 15804 deplibs_check_method \
Chris@69 15805 file_magic_cmd \
Chris@69 15806 file_magic_glob \
Chris@69 15807 want_nocaseglob \
Chris@69 15808 DLLTOOL \
Chris@69 15809 sharedlib_from_linklib_cmd \
Chris@69 15810 AR \
Chris@69 15811 AR_FLAGS \
Chris@69 15812 archiver_list_spec \
Chris@69 15813 STRIP \
Chris@69 15814 RANLIB \
Chris@69 15815 CC \
Chris@69 15816 CFLAGS \
Chris@69 15817 compiler \
Chris@69 15818 lt_cv_sys_global_symbol_pipe \
Chris@69 15819 lt_cv_sys_global_symbol_to_cdecl \
Chris@69 15820 lt_cv_sys_global_symbol_to_import \
Chris@69 15821 lt_cv_sys_global_symbol_to_c_name_address \
Chris@69 15822 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Chris@69 15823 lt_cv_nm_interface \
Chris@69 15824 nm_file_list_spec \
Chris@69 15825 lt_cv_truncate_bin \
Chris@69 15826 lt_prog_compiler_no_builtin_flag \
Chris@69 15827 lt_prog_compiler_pic \
Chris@69 15828 lt_prog_compiler_wl \
Chris@69 15829 lt_prog_compiler_static \
Chris@69 15830 lt_cv_prog_compiler_c_o \
Chris@69 15831 need_locks \
Chris@69 15832 MANIFEST_TOOL \
Chris@69 15833 DSYMUTIL \
Chris@69 15834 NMEDIT \
Chris@69 15835 LIPO \
Chris@69 15836 OTOOL \
Chris@69 15837 OTOOL64 \
Chris@69 15838 shrext_cmds \
Chris@69 15839 export_dynamic_flag_spec \
Chris@69 15840 whole_archive_flag_spec \
Chris@69 15841 compiler_needs_object \
Chris@69 15842 with_gnu_ld \
Chris@69 15843 allow_undefined_flag \
Chris@69 15844 no_undefined_flag \
Chris@69 15845 hardcode_libdir_flag_spec \
Chris@69 15846 hardcode_libdir_separator \
Chris@69 15847 exclude_expsyms \
Chris@69 15848 include_expsyms \
Chris@69 15849 file_list_spec \
Chris@69 15850 variables_saved_for_relink \
Chris@69 15851 libname_spec \
Chris@69 15852 library_names_spec \
Chris@69 15853 soname_spec \
Chris@69 15854 install_override_mode \
Chris@69 15855 finish_eval \
Chris@69 15856 old_striplib \
Chris@69 15857 striplib; do
Chris@69 15858 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Chris@69 15859 *[\\\\\\\`\\"\\\$]*)
Chris@69 15860 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
Chris@69 15861 ;;
Chris@69 15862 *)
Chris@69 15863 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
Chris@69 15864 ;;
Chris@69 15865 esac
Chris@69 15866 done
Chris@69 15867
Chris@69 15868 # Double-quote double-evaled strings.
Chris@69 15869 for var in reload_cmds \
Chris@69 15870 old_postinstall_cmds \
Chris@69 15871 old_postuninstall_cmds \
Chris@69 15872 old_archive_cmds \
Chris@69 15873 extract_expsyms_cmds \
Chris@69 15874 old_archive_from_new_cmds \
Chris@69 15875 old_archive_from_expsyms_cmds \
Chris@69 15876 archive_cmds \
Chris@69 15877 archive_expsym_cmds \
Chris@69 15878 module_cmds \
Chris@69 15879 module_expsym_cmds \
Chris@69 15880 export_symbols_cmds \
Chris@69 15881 prelink_cmds \
Chris@69 15882 postlink_cmds \
Chris@69 15883 postinstall_cmds \
Chris@69 15884 postuninstall_cmds \
Chris@69 15885 finish_cmds \
Chris@69 15886 sys_lib_search_path_spec \
Chris@69 15887 configure_time_dlsearch_path \
Chris@69 15888 configure_time_lt_sys_library_path; do
Chris@69 15889 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Chris@69 15890 *[\\\\\\\`\\"\\\$]*)
Chris@69 15891 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 15892 ;;
Chris@69 15893 *)
Chris@69 15894 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
Chris@69 15895 ;;
Chris@69 15896 esac
Chris@69 15897 done
Chris@69 15898
Chris@69 15899 ac_aux_dir='$ac_aux_dir'
Chris@69 15900
Chris@69 15901 # See if we are running on zsh, and set the options that allow our
Chris@69 15902 # commands through without removal of \ escapes INIT.
Chris@69 15903 if test -n "\${ZSH_VERSION+set}"; then
Chris@69 15904 setopt NO_GLOB_SUBST
Chris@69 15905 fi
Chris@69 15906
Chris@69 15907
Chris@69 15908 PACKAGE='$PACKAGE'
Chris@69 15909 VERSION='$VERSION'
Chris@69 15910 RM='$RM'
Chris@69 15911 ofile='$ofile'
Chris@69 15912
Chris@69 15913
Chris@69 15914
Chris@69 15915
Chris@69 15916 _ACEOF
Chris@69 15917
Chris@69 15918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@69 15919
Chris@69 15920 # Handling of arguments.
Chris@69 15921 for ac_config_target in $ac_config_targets
Chris@69 15922 do
Chris@69 15923 case $ac_config_target in
Chris@69 15924 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Chris@69 15925 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Chris@69 15926 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Chris@69 15927 "opus.pc") CONFIG_FILES="$CONFIG_FILES opus.pc" ;;
Chris@69 15928 "opus-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES opus-uninstalled.pc" ;;
Chris@69 15929 "celt/arm/armopts.s") CONFIG_FILES="$CONFIG_FILES celt/arm/armopts.s" ;;
Chris@69 15930 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
Chris@69 15931 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
Chris@69 15932 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
Chris@69 15933
Chris@69 15934 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Chris@69 15935 esac
Chris@69 15936 done
Chris@69 15937
Chris@69 15938
Chris@69 15939 # If the user did not use the arguments to specify the items to instantiate,
Chris@69 15940 # then the envvar interface is used. Set only those that are not.
Chris@69 15941 # We use the long form for the default assignment because of an extremely
Chris@69 15942 # bizarre bug on SunOS 4.1.3.
Chris@69 15943 if $ac_need_defaults; then
Chris@69 15944 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Chris@69 15945 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Chris@69 15946 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
Chris@69 15947 fi
Chris@69 15948
Chris@69 15949 # Have a temporary directory for convenience. Make it in the build tree
Chris@69 15950 # simply because there is no reason against having it here, and in addition,
Chris@69 15951 # creating and moving files from /tmp can sometimes cause problems.
Chris@69 15952 # Hook for its removal unless debugging.
Chris@69 15953 # Note that there is a small window in which the directory will not be cleaned:
Chris@69 15954 # after its creation but before its name has been assigned to `$tmp'.
Chris@69 15955 $debug ||
Chris@69 15956 {
Chris@69 15957 tmp= ac_tmp=
Chris@69 15958 trap 'exit_status=$?
Chris@69 15959 : "${ac_tmp:=$tmp}"
Chris@69 15960 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Chris@69 15961 ' 0
Chris@69 15962 trap 'as_fn_exit 1' 1 2 13 15
Chris@69 15963 }
Chris@69 15964 # Create a (secure) tmp directory for tmp files.
Chris@69 15965
Chris@69 15966 {
Chris@69 15967 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Chris@69 15968 test -d "$tmp"
Chris@69 15969 } ||
Chris@69 15970 {
Chris@69 15971 tmp=./conf$$-$RANDOM
Chris@69 15972 (umask 077 && mkdir "$tmp")
Chris@69 15973 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Chris@69 15974 ac_tmp=$tmp
Chris@69 15975
Chris@69 15976 # Set up the scripts for CONFIG_FILES section.
Chris@69 15977 # No need to generate them if there are no CONFIG_FILES.
Chris@69 15978 # This happens for instance with `./config.status config.h'.
Chris@69 15979 if test -n "$CONFIG_FILES"; then
Chris@69 15980
Chris@69 15981
Chris@69 15982 ac_cr=`echo X | tr X '\015'`
Chris@69 15983 # On cygwin, bash can eat \r inside `` if the user requested igncr.
Chris@69 15984 # But we know of no other shell where ac_cr would be empty at this
Chris@69 15985 # point, so we can use a bashism as a fallback.
Chris@69 15986 if test "x$ac_cr" = x; then
Chris@69 15987 eval ac_cr=\$\'\\r\'
Chris@69 15988 fi
Chris@69 15989 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
Chris@69 15990 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Chris@69 15991 ac_cs_awk_cr='\\r'
Chris@69 15992 else
Chris@69 15993 ac_cs_awk_cr=$ac_cr
Chris@69 15994 fi
Chris@69 15995
Chris@69 15996 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Chris@69 15997 _ACEOF
Chris@69 15998
Chris@69 15999
Chris@69 16000 {
Chris@69 16001 echo "cat >conf$$subs.awk <<_ACEOF" &&
Chris@69 16002 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
Chris@69 16003 echo "_ACEOF"
Chris@69 16004 } >conf$$subs.sh ||
Chris@69 16005 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@69 16006 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Chris@69 16007 ac_delim='%!_!# '
Chris@69 16008 for ac_last_try in false false false false false :; do
Chris@69 16009 . ./conf$$subs.sh ||
Chris@69 16010 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@69 16011
Chris@69 16012 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
Chris@69 16013 if test $ac_delim_n = $ac_delim_num; then
Chris@69 16014 break
Chris@69 16015 elif $ac_last_try; then
Chris@69 16016 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@69 16017 else
Chris@69 16018 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Chris@69 16019 fi
Chris@69 16020 done
Chris@69 16021 rm -f conf$$subs.sh
Chris@69 16022
Chris@69 16023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@69 16024 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Chris@69 16025 _ACEOF
Chris@69 16026 sed -n '
Chris@69 16027 h
Chris@69 16028 s/^/S["/; s/!.*/"]=/
Chris@69 16029 p
Chris@69 16030 g
Chris@69 16031 s/^[^!]*!//
Chris@69 16032 :repl
Chris@69 16033 t repl
Chris@69 16034 s/'"$ac_delim"'$//
Chris@69 16035 t delim
Chris@69 16036 :nl
Chris@69 16037 h
Chris@69 16038 s/\(.\{148\}\)..*/\1/
Chris@69 16039 t more1
Chris@69 16040 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
Chris@69 16041 p
Chris@69 16042 n
Chris@69 16043 b repl
Chris@69 16044 :more1
Chris@69 16045 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
Chris@69 16046 p
Chris@69 16047 g
Chris@69 16048 s/.\{148\}//
Chris@69 16049 t nl
Chris@69 16050 :delim
Chris@69 16051 h
Chris@69 16052 s/\(.\{148\}\)..*/\1/
Chris@69 16053 t more2
Chris@69 16054 s/["\\]/\\&/g; s/^/"/; s/$/"/
Chris@69 16055 p
Chris@69 16056 b
Chris@69 16057 :more2
Chris@69 16058 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
Chris@69 16059 p
Chris@69 16060 g
Chris@69 16061 s/.\{148\}//
Chris@69 16062 t delim
Chris@69 16063 ' <conf$$subs.awk | sed '
Chris@69 16064 /^[^""]/{
Chris@69 16065 N
Chris@69 16066 s/\n//
Chris@69 16067 }
Chris@69 16068 ' >>$CONFIG_STATUS || ac_write_fail=1
Chris@69 16069 rm -f conf$$subs.awk
Chris@69 16070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@69 16071 _ACAWK
Chris@69 16072 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Chris@69 16073 for (key in S) S_is_set[key] = 1
Chris@69 16074 FS = ""
Chris@69 16075
Chris@69 16076 }
Chris@69 16077 {
Chris@69 16078 line = $ 0
Chris@69 16079 nfields = split(line, field, "@")
Chris@69 16080 substed = 0
Chris@69 16081 len = length(field[1])
Chris@69 16082 for (i = 2; i < nfields; i++) {
Chris@69 16083 key = field[i]
Chris@69 16084 keylen = length(key)
Chris@69 16085 if (S_is_set[key]) {
Chris@69 16086 value = S[key]
Chris@69 16087 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
Chris@69 16088 len += length(value) + length(field[++i])
Chris@69 16089 substed = 1
Chris@69 16090 } else
Chris@69 16091 len += 1 + keylen
Chris@69 16092 }
Chris@69 16093
Chris@69 16094 print line
Chris@69 16095 }
Chris@69 16096
Chris@69 16097 _ACAWK
Chris@69 16098 _ACEOF
Chris@69 16099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@69 16100 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
Chris@69 16101 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
Chris@69 16102 else
Chris@69 16103 cat
Chris@69 16104 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Chris@69 16105 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Chris@69 16106 _ACEOF
Chris@69 16107
Chris@69 16108 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
Chris@69 16109 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Chris@69 16110 # trailing colons and then remove the whole line if VPATH becomes empty
Chris@69 16111 # (actually we leave an empty line to preserve line numbers).
Chris@69 16112 if test "x$srcdir" = x.; then
Chris@69 16113 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
Chris@69 16114 h
Chris@69 16115 s///
Chris@69 16116 s/^/:/
Chris@69 16117 s/[ ]*$/:/
Chris@69 16118 s/:\$(srcdir):/:/g
Chris@69 16119 s/:\${srcdir}:/:/g
Chris@69 16120 s/:@srcdir@:/:/g
Chris@69 16121 s/^:*//
Chris@69 16122 s/:*$//
Chris@69 16123 x
Chris@69 16124 s/\(=[ ]*\).*/\1/
Chris@69 16125 G
Chris@69 16126 s/\n//
Chris@69 16127 s/^[^=]*=[ ]*$//
Chris@69 16128 }'
Chris@69 16129 fi
Chris@69 16130
Chris@69 16131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@69 16132 fi # test -n "$CONFIG_FILES"
Chris@69 16133
Chris@69 16134 # Set up the scripts for CONFIG_HEADERS section.
Chris@69 16135 # No need to generate them if there are no CONFIG_HEADERS.
Chris@69 16136 # This happens for instance with `./config.status Makefile'.
Chris@69 16137 if test -n "$CONFIG_HEADERS"; then
Chris@69 16138 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Chris@69 16139 BEGIN {
Chris@69 16140 _ACEOF
Chris@69 16141
Chris@69 16142 # Transform confdefs.h into an awk script `defines.awk', embedded as
Chris@69 16143 # here-document in config.status, that substitutes the proper values into
Chris@69 16144 # config.h.in to produce config.h.
Chris@69 16145
Chris@69 16146 # Create a delimiter string that does not exist in confdefs.h, to ease
Chris@69 16147 # handling of long lines.
Chris@69 16148 ac_delim='%!_!# '
Chris@69 16149 for ac_last_try in false false :; do
Chris@69 16150 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
Chris@69 16151 if test -z "$ac_tt"; then
Chris@69 16152 break
Chris@69 16153 elif $ac_last_try; then
Chris@69 16154 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Chris@69 16155 else
Chris@69 16156 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Chris@69 16157 fi
Chris@69 16158 done
Chris@69 16159
Chris@69 16160 # For the awk script, D is an array of macro values keyed by name,
Chris@69 16161 # likewise P contains macro parameters if any. Preserve backslash
Chris@69 16162 # newline sequences.
Chris@69 16163
Chris@69 16164 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
Chris@69 16165 sed -n '
Chris@69 16166 s/.\{148\}/&'"$ac_delim"'/g
Chris@69 16167 t rset
Chris@69 16168 :rset
Chris@69 16169 s/^[ ]*#[ ]*define[ ][ ]*/ /
Chris@69 16170 t def
Chris@69 16171 d
Chris@69 16172 :def
Chris@69 16173 s/\\$//
Chris@69 16174 t bsnl
Chris@69 16175 s/["\\]/\\&/g
Chris@69 16176 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
Chris@69 16177 D["\1"]=" \3"/p
Chris@69 16178 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
Chris@69 16179 d
Chris@69 16180 :bsnl
Chris@69 16181 s/["\\]/\\&/g
Chris@69 16182 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
Chris@69 16183 D["\1"]=" \3\\\\\\n"\\/p
Chris@69 16184 t cont
Chris@69 16185 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
Chris@69 16186 t cont
Chris@69 16187 d
Chris@69 16188 :cont
Chris@69 16189 n
Chris@69 16190 s/.\{148\}/&'"$ac_delim"'/g
Chris@69 16191 t clear
Chris@69 16192 :clear
Chris@69 16193 s/\\$//
Chris@69 16194 t bsnlc
Chris@69 16195 s/["\\]/\\&/g; s/^/"/; s/$/"/p
Chris@69 16196 d
Chris@69 16197 :bsnlc
Chris@69 16198 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
Chris@69 16199 b cont
Chris@69 16200 ' <confdefs.h | sed '
Chris@69 16201 s/'"$ac_delim"'/"\\\
Chris@69 16202 "/g' >>$CONFIG_STATUS || ac_write_fail=1
Chris@69 16203
Chris@69 16204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@69 16205 for (key in D) D_is_set[key] = 1
Chris@69 16206 FS = ""
Chris@69 16207 }
Chris@69 16208 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
Chris@69 16209 line = \$ 0
Chris@69 16210 split(line, arg, " ")
Chris@69 16211 if (arg[1] == "#") {
Chris@69 16212 defundef = arg[2]
Chris@69 16213 mac1 = arg[3]
Chris@69 16214 } else {
Chris@69 16215 defundef = substr(arg[1], 2)
Chris@69 16216 mac1 = arg[2]
Chris@69 16217 }
Chris@69 16218 split(mac1, mac2, "(") #)
Chris@69 16219 macro = mac2[1]
Chris@69 16220 prefix = substr(line, 1, index(line, defundef) - 1)
Chris@69 16221 if (D_is_set[macro]) {
Chris@69 16222 # Preserve the white space surrounding the "#".
Chris@69 16223 print prefix "define", macro P[macro] D[macro]
Chris@69 16224 next
Chris@69 16225 } else {
Chris@69 16226 # Replace #undef with comments. This is necessary, for example,
Chris@69 16227 # in the case of _POSIX_SOURCE, which is predefined and required
Chris@69 16228 # on some systems where configure will not decide to define it.
Chris@69 16229 if (defundef == "undef") {
Chris@69 16230 print "/*", prefix defundef, macro, "*/"
Chris@69 16231 next
Chris@69 16232 }
Chris@69 16233 }
Chris@69 16234 }
Chris@69 16235 { print }
Chris@69 16236 _ACAWK
Chris@69 16237 _ACEOF
Chris@69 16238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@69 16239 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Chris@69 16240 fi # test -n "$CONFIG_HEADERS"
Chris@69 16241
Chris@69 16242
Chris@69 16243 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Chris@69 16244 shift
Chris@69 16245 for ac_tag
Chris@69 16246 do
Chris@69 16247 case $ac_tag in
Chris@69 16248 :[FHLC]) ac_mode=$ac_tag; continue;;
Chris@69 16249 esac
Chris@69 16250 case $ac_mode$ac_tag in
Chris@69 16251 :[FHL]*:*);;
Chris@69 16252 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Chris@69 16253 :[FH]-) ac_tag=-:-;;
Chris@69 16254 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
Chris@69 16255 esac
Chris@69 16256 ac_save_IFS=$IFS
Chris@69 16257 IFS=:
Chris@69 16258 set x $ac_tag
Chris@69 16259 IFS=$ac_save_IFS
Chris@69 16260 shift
Chris@69 16261 ac_file=$1
Chris@69 16262 shift
Chris@69 16263
Chris@69 16264 case $ac_mode in
Chris@69 16265 :L) ac_source=$1;;
Chris@69 16266 :[FH])
Chris@69 16267 ac_file_inputs=
Chris@69 16268 for ac_f
Chris@69 16269 do
Chris@69 16270 case $ac_f in
Chris@69 16271 -) ac_f="$ac_tmp/stdin";;
Chris@69 16272 *) # Look for the file first in the build tree, then in the source tree
Chris@69 16273 # (if the path is not absolute). The absolute path cannot be DOS-style,
Chris@69 16274 # because $ac_f cannot contain `:'.
Chris@69 16275 test -f "$ac_f" ||
Chris@69 16276 case $ac_f in
Chris@69 16277 [\\/$]*) false;;
Chris@69 16278 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
Chris@69 16279 esac ||
Chris@69 16280 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Chris@69 16281 esac
Chris@69 16282 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Chris@69 16283 as_fn_append ac_file_inputs " '$ac_f'"
Chris@69 16284 done
Chris@69 16285
Chris@69 16286 # Let's still pretend it is `configure' which instantiates (i.e., don't
Chris@69 16287 # use $as_me), people would be surprised to read:
Chris@69 16288 # /* config.h. Generated by config.status. */
Chris@69 16289 configure_input='Generated from '`
Chris@69 16290 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
Chris@69 16291 `' by configure.'
Chris@69 16292 if test x"$ac_file" != x-; then
Chris@69 16293 configure_input="$ac_file. $configure_input"
Chris@69 16294 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Chris@69 16295 $as_echo "$as_me: creating $ac_file" >&6;}
Chris@69 16296 fi
Chris@69 16297 # Neutralize special characters interpreted by sed in replacement strings.
Chris@69 16298 case $configure_input in #(
Chris@69 16299 *\&* | *\|* | *\\* )
Chris@69 16300 ac_sed_conf_input=`$as_echo "$configure_input" |
Chris@69 16301 sed 's/[\\\\&|]/\\\\&/g'`;; #(
Chris@69 16302 *) ac_sed_conf_input=$configure_input;;
Chris@69 16303 esac
Chris@69 16304
Chris@69 16305 case $ac_tag in
Chris@69 16306 *:-:* | *:-) cat >"$ac_tmp/stdin" \
Chris@69 16307 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Chris@69 16308 esac
Chris@69 16309 ;;
Chris@69 16310 esac
Chris@69 16311
Chris@69 16312 ac_dir=`$as_dirname -- "$ac_file" ||
Chris@69 16313 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@69 16314 X"$ac_file" : 'X\(//\)[^/]' \| \
Chris@69 16315 X"$ac_file" : 'X\(//\)$' \| \
Chris@69 16316 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Chris@69 16317 $as_echo X"$ac_file" |
Chris@69 16318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@69 16319 s//\1/
Chris@69 16320 q
Chris@69 16321 }
Chris@69 16322 /^X\(\/\/\)[^/].*/{
Chris@69 16323 s//\1/
Chris@69 16324 q
Chris@69 16325 }
Chris@69 16326 /^X\(\/\/\)$/{
Chris@69 16327 s//\1/
Chris@69 16328 q
Chris@69 16329 }
Chris@69 16330 /^X\(\/\).*/{
Chris@69 16331 s//\1/
Chris@69 16332 q
Chris@69 16333 }
Chris@69 16334 s/.*/./; q'`
Chris@69 16335 as_dir="$ac_dir"; as_fn_mkdir_p
Chris@69 16336 ac_builddir=.
Chris@69 16337
Chris@69 16338 case "$ac_dir" in
Chris@69 16339 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@69 16340 *)
Chris@69 16341 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Chris@69 16342 # A ".." for each directory in $ac_dir_suffix.
Chris@69 16343 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Chris@69 16344 case $ac_top_builddir_sub in
Chris@69 16345 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@69 16346 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@69 16347 esac ;;
Chris@69 16348 esac
Chris@69 16349 ac_abs_top_builddir=$ac_pwd
Chris@69 16350 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@69 16351 # for backward compatibility:
Chris@69 16352 ac_top_builddir=$ac_top_build_prefix
Chris@69 16353
Chris@69 16354 case $srcdir in
Chris@69 16355 .) # We are building in place.
Chris@69 16356 ac_srcdir=.
Chris@69 16357 ac_top_srcdir=$ac_top_builddir_sub
Chris@69 16358 ac_abs_top_srcdir=$ac_pwd ;;
Chris@69 16359 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@69 16360 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@69 16361 ac_top_srcdir=$srcdir
Chris@69 16362 ac_abs_top_srcdir=$srcdir ;;
Chris@69 16363 *) # Relative name.
Chris@69 16364 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@69 16365 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@69 16366 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@69 16367 esac
Chris@69 16368 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@69 16369
Chris@69 16370
Chris@69 16371 case $ac_mode in
Chris@69 16372 :F)
Chris@69 16373 #
Chris@69 16374 # CONFIG_FILE
Chris@69 16375 #
Chris@69 16376
Chris@69 16377 case $INSTALL in
Chris@69 16378 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Chris@69 16379 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Chris@69 16380 esac
Chris@69 16381 ac_MKDIR_P=$MKDIR_P
Chris@69 16382 case $MKDIR_P in
Chris@69 16383 [\\/$]* | ?:[\\/]* ) ;;
Chris@69 16384 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
Chris@69 16385 esac
Chris@69 16386 _ACEOF
Chris@69 16387
Chris@69 16388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@69 16389 # If the template does not know about datarootdir, expand it.
Chris@69 16390 # FIXME: This hack should be removed a few years after 2.60.
Chris@69 16391 ac_datarootdir_hack=; ac_datarootdir_seen=
Chris@69 16392 ac_sed_dataroot='
Chris@69 16393 /datarootdir/ {
Chris@69 16394 p
Chris@69 16395 q
Chris@69 16396 }
Chris@69 16397 /@datadir@/p
Chris@69 16398 /@docdir@/p
Chris@69 16399 /@infodir@/p
Chris@69 16400 /@localedir@/p
Chris@69 16401 /@mandir@/p'
Chris@69 16402 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Chris@69 16403 *datarootdir*) ac_datarootdir_seen=yes;;
Chris@69 16404 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Chris@69 16405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Chris@69 16406 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Chris@69 16407 _ACEOF
Chris@69 16408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@69 16409 ac_datarootdir_hack='
Chris@69 16410 s&@datadir@&$datadir&g
Chris@69 16411 s&@docdir@&$docdir&g
Chris@69 16412 s&@infodir@&$infodir&g
Chris@69 16413 s&@localedir@&$localedir&g
Chris@69 16414 s&@mandir@&$mandir&g
Chris@69 16415 s&\\\${datarootdir}&$datarootdir&g' ;;
Chris@69 16416 esac
Chris@69 16417 _ACEOF
Chris@69 16418
Chris@69 16419 # Neutralize VPATH when `$srcdir' = `.'.
Chris@69 16420 # Shell code in configure.ac might set extrasub.
Chris@69 16421 # FIXME: do we really want to maintain this feature?
Chris@69 16422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@69 16423 ac_sed_extra="$ac_vpsub
Chris@69 16424 $extrasub
Chris@69 16425 _ACEOF
Chris@69 16426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@69 16427 :t
Chris@69 16428 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Chris@69 16429 s|@configure_input@|$ac_sed_conf_input|;t t
Chris@69 16430 s&@top_builddir@&$ac_top_builddir_sub&;t t
Chris@69 16431 s&@top_build_prefix@&$ac_top_build_prefix&;t t
Chris@69 16432 s&@srcdir@&$ac_srcdir&;t t
Chris@69 16433 s&@abs_srcdir@&$ac_abs_srcdir&;t t
Chris@69 16434 s&@top_srcdir@&$ac_top_srcdir&;t t
Chris@69 16435 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
Chris@69 16436 s&@builddir@&$ac_builddir&;t t
Chris@69 16437 s&@abs_builddir@&$ac_abs_builddir&;t t
Chris@69 16438 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Chris@69 16439 s&@INSTALL@&$ac_INSTALL&;t t
Chris@69 16440 s&@MKDIR_P@&$ac_MKDIR_P&;t t
Chris@69 16441 $ac_datarootdir_hack
Chris@69 16442 "
Chris@69 16443 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
Chris@69 16444 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@69 16445
Chris@69 16446 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Chris@69 16447 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
Chris@69 16448 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
Chris@69 16449 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Chris@69 16450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Chris@69 16451 which seems to be undefined. Please make sure it is defined" >&5
Chris@69 16452 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Chris@69 16453 which seems to be undefined. Please make sure it is defined" >&2;}
Chris@69 16454
Chris@69 16455 rm -f "$ac_tmp/stdin"
Chris@69 16456 case $ac_file in
Chris@69 16457 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
Chris@69 16458 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Chris@69 16459 esac \
Chris@69 16460 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@69 16461 ;;
Chris@69 16462 :H)
Chris@69 16463 #
Chris@69 16464 # CONFIG_HEADER
Chris@69 16465 #
Chris@69 16466 if test x"$ac_file" != x-; then
Chris@69 16467 {
Chris@69 16468 $as_echo "/* $configure_input */" \
Chris@69 16469 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
Chris@69 16470 } >"$ac_tmp/config.h" \
Chris@69 16471 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@69 16472 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Chris@69 16473 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Chris@69 16474 $as_echo "$as_me: $ac_file is unchanged" >&6;}
Chris@69 16475 else
Chris@69 16476 rm -f "$ac_file"
Chris@69 16477 mv "$ac_tmp/config.h" "$ac_file" \
Chris@69 16478 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@69 16479 fi
Chris@69 16480 else
Chris@69 16481 $as_echo "/* $configure_input */" \
Chris@69 16482 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
Chris@69 16483 || as_fn_error $? "could not create -" "$LINENO" 5
Chris@69 16484 fi
Chris@69 16485 # Compute "$ac_file"'s index in $config_headers.
Chris@69 16486 _am_arg="$ac_file"
Chris@69 16487 _am_stamp_count=1
Chris@69 16488 for _am_header in $config_headers :; do
Chris@69 16489 case $_am_header in
Chris@69 16490 $_am_arg | $_am_arg:* )
Chris@69 16491 break ;;
Chris@69 16492 * )
Chris@69 16493 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Chris@69 16494 esac
Chris@69 16495 done
Chris@69 16496 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
Chris@69 16497 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@69 16498 X"$_am_arg" : 'X\(//\)[^/]' \| \
Chris@69 16499 X"$_am_arg" : 'X\(//\)$' \| \
Chris@69 16500 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
Chris@69 16501 $as_echo X"$_am_arg" |
Chris@69 16502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@69 16503 s//\1/
Chris@69 16504 q
Chris@69 16505 }
Chris@69 16506 /^X\(\/\/\)[^/].*/{
Chris@69 16507 s//\1/
Chris@69 16508 q
Chris@69 16509 }
Chris@69 16510 /^X\(\/\/\)$/{
Chris@69 16511 s//\1/
Chris@69 16512 q
Chris@69 16513 }
Chris@69 16514 /^X\(\/\).*/{
Chris@69 16515 s//\1/
Chris@69 16516 q
Chris@69 16517 }
Chris@69 16518 s/.*/./; q'`/stamp-h$_am_stamp_count
Chris@69 16519 ;;
Chris@69 16520
Chris@69 16521 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Chris@69 16522 $as_echo "$as_me: executing $ac_file commands" >&6;}
Chris@69 16523 ;;
Chris@69 16524 esac
Chris@69 16525
Chris@69 16526
Chris@69 16527 case $ac_file$ac_mode in
Chris@69 16528 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
Chris@69 16529 # Older Autoconf quotes --file arguments for eval, but not when files
Chris@69 16530 # are listed without --file. Let's play safe and only enable the eval
Chris@69 16531 # if we detect the quoting.
Chris@69 16532 case $CONFIG_FILES in
Chris@69 16533 *\'*) eval set x "$CONFIG_FILES" ;;
Chris@69 16534 *) set x $CONFIG_FILES ;;
Chris@69 16535 esac
Chris@69 16536 shift
Chris@69 16537 for mf
Chris@69 16538 do
Chris@69 16539 # Strip MF so we end up with the name of the file.
Chris@69 16540 mf=`echo "$mf" | sed -e 's/:.*$//'`
Chris@69 16541 # Check whether this is an Automake generated Makefile or not.
Chris@69 16542 # We used to match only the files named 'Makefile.in', but
Chris@69 16543 # some people rename them; so instead we look at the file content.
Chris@69 16544 # Grep'ing the first line is not enough: some people post-process
Chris@69 16545 # each Makefile.in and add a new line on top of each file to say so.
Chris@69 16546 # Grep'ing the whole file is not good either: AIX grep has a line
Chris@69 16547 # limit of 2048, but all sed's we know have understand at least 4000.
Chris@69 16548 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
Chris@69 16549 dirpart=`$as_dirname -- "$mf" ||
Chris@69 16550 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@69 16551 X"$mf" : 'X\(//\)[^/]' \| \
Chris@69 16552 X"$mf" : 'X\(//\)$' \| \
Chris@69 16553 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Chris@69 16554 $as_echo X"$mf" |
Chris@69 16555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@69 16556 s//\1/
Chris@69 16557 q
Chris@69 16558 }
Chris@69 16559 /^X\(\/\/\)[^/].*/{
Chris@69 16560 s//\1/
Chris@69 16561 q
Chris@69 16562 }
Chris@69 16563 /^X\(\/\/\)$/{
Chris@69 16564 s//\1/
Chris@69 16565 q
Chris@69 16566 }
Chris@69 16567 /^X\(\/\).*/{
Chris@69 16568 s//\1/
Chris@69 16569 q
Chris@69 16570 }
Chris@69 16571 s/.*/./; q'`
Chris@69 16572 else
Chris@69 16573 continue
Chris@69 16574 fi
Chris@69 16575 # Extract the definition of DEPDIR, am__include, and am__quote
Chris@69 16576 # from the Makefile without running 'make'.
Chris@69 16577 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Chris@69 16578 test -z "$DEPDIR" && continue
Chris@69 16579 am__include=`sed -n 's/^am__include = //p' < "$mf"`
Chris@69 16580 test -z "$am__include" && continue
Chris@69 16581 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Chris@69 16582 # Find all dependency output files, they are included files with
Chris@69 16583 # $(DEPDIR) in their names. We invoke sed twice because it is the
Chris@69 16584 # simplest approach to changing $(DEPDIR) to its actual value in the
Chris@69 16585 # expansion.
Chris@69 16586 for file in `sed -n "
Chris@69 16587 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Chris@69 16588 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
Chris@69 16589 # Make sure the directory exists.
Chris@69 16590 test -f "$dirpart/$file" && continue
Chris@69 16591 fdir=`$as_dirname -- "$file" ||
Chris@69 16592 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@69 16593 X"$file" : 'X\(//\)[^/]' \| \
Chris@69 16594 X"$file" : 'X\(//\)$' \| \
Chris@69 16595 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Chris@69 16596 $as_echo X"$file" |
Chris@69 16597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@69 16598 s//\1/
Chris@69 16599 q
Chris@69 16600 }
Chris@69 16601 /^X\(\/\/\)[^/].*/{
Chris@69 16602 s//\1/
Chris@69 16603 q
Chris@69 16604 }
Chris@69 16605 /^X\(\/\/\)$/{
Chris@69 16606 s//\1/
Chris@69 16607 q
Chris@69 16608 }
Chris@69 16609 /^X\(\/\).*/{
Chris@69 16610 s//\1/
Chris@69 16611 q
Chris@69 16612 }
Chris@69 16613 s/.*/./; q'`
Chris@69 16614 as_dir=$dirpart/$fdir; as_fn_mkdir_p
Chris@69 16615 # echo "creating $dirpart/$file"
Chris@69 16616 echo '# dummy' > "$dirpart/$file"
Chris@69 16617 done
Chris@69 16618 done
Chris@69 16619 }
Chris@69 16620 ;;
Chris@69 16621 "libtool":C)
Chris@69 16622
Chris@69 16623 # See if we are running on zsh, and set the options that allow our
Chris@69 16624 # commands through without removal of \ escapes.
Chris@69 16625 if test -n "${ZSH_VERSION+set}"; then
Chris@69 16626 setopt NO_GLOB_SUBST
Chris@69 16627 fi
Chris@69 16628
Chris@69 16629 cfgfile=${ofile}T
Chris@69 16630 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
Chris@69 16631 $RM "$cfgfile"
Chris@69 16632
Chris@69 16633 cat <<_LT_EOF >> "$cfgfile"
Chris@69 16634 #! $SHELL
Chris@69 16635 # Generated automatically by $as_me ($PACKAGE) $VERSION
Chris@69 16636 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
Chris@69 16637 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
Chris@69 16638
Chris@69 16639 # Provide generalized library-building support services.
Chris@69 16640 # Written by Gordon Matzigkeit, 1996
Chris@69 16641
Chris@69 16642 # Copyright (C) 2014 Free Software Foundation, Inc.
Chris@69 16643 # This is free software; see the source for copying conditions. There is NO
Chris@69 16644 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Chris@69 16645
Chris@69 16646 # GNU Libtool is free software; you can redistribute it and/or modify
Chris@69 16647 # it under the terms of the GNU General Public License as published by
Chris@69 16648 # the Free Software Foundation; either version 2 of of the License, or
Chris@69 16649 # (at your option) any later version.
Chris@69 16650 #
Chris@69 16651 # As a special exception to the GNU General Public License, if you
Chris@69 16652 # distribute this file as part of a program or library that is built
Chris@69 16653 # using GNU Libtool, you may include this file under the same
Chris@69 16654 # distribution terms that you use for the rest of that program.
Chris@69 16655 #
Chris@69 16656 # GNU Libtool is distributed in the hope that it will be useful, but
Chris@69 16657 # WITHOUT ANY WARRANTY; without even the implied warranty of
Chris@69 16658 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Chris@69 16659 # GNU General Public License for more details.
Chris@69 16660 #
Chris@69 16661 # You should have received a copy of the GNU General Public License
Chris@69 16662 # along with this program. If not, see <http://www.gnu.org/licenses/>.
Chris@69 16663
Chris@69 16664
Chris@69 16665 # The names of the tagged configurations supported by this script.
Chris@69 16666 available_tags=''
Chris@69 16667
Chris@69 16668 # Configured defaults for sys_lib_dlsearch_path munging.
Chris@69 16669 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
Chris@69 16670
Chris@69 16671 # ### BEGIN LIBTOOL CONFIG
Chris@69 16672
Chris@69 16673 # Which release of libtool.m4 was used?
Chris@69 16674 macro_version=$macro_version
Chris@69 16675 macro_revision=$macro_revision
Chris@69 16676
Chris@69 16677 # Whether or not to build shared libraries.
Chris@69 16678 build_libtool_libs=$enable_shared
Chris@69 16679
Chris@69 16680 # Whether or not to build static libraries.
Chris@69 16681 build_old_libs=$enable_static
Chris@69 16682
Chris@69 16683 # What type of objects to build.
Chris@69 16684 pic_mode=$pic_mode
Chris@69 16685
Chris@69 16686 # Whether or not to optimize for fast installation.
Chris@69 16687 fast_install=$enable_fast_install
Chris@69 16688
Chris@69 16689 # Shared archive member basename,for filename based shared library versioning on AIX.
Chris@69 16690 shared_archive_member_spec=$shared_archive_member_spec
Chris@69 16691
Chris@69 16692 # Shell to use when invoking shell scripts.
Chris@69 16693 SHELL=$lt_SHELL
Chris@69 16694
Chris@69 16695 # An echo program that protects backslashes.
Chris@69 16696 ECHO=$lt_ECHO
Chris@69 16697
Chris@69 16698 # The PATH separator for the build system.
Chris@69 16699 PATH_SEPARATOR=$lt_PATH_SEPARATOR
Chris@69 16700
Chris@69 16701 # The host system.
Chris@69 16702 host_alias=$host_alias
Chris@69 16703 host=$host
Chris@69 16704 host_os=$host_os
Chris@69 16705
Chris@69 16706 # The build system.
Chris@69 16707 build_alias=$build_alias
Chris@69 16708 build=$build
Chris@69 16709 build_os=$build_os
Chris@69 16710
Chris@69 16711 # A sed program that does not truncate output.
Chris@69 16712 SED=$lt_SED
Chris@69 16713
Chris@69 16714 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
Chris@69 16715 Xsed="\$SED -e 1s/^X//"
Chris@69 16716
Chris@69 16717 # A grep program that handles long lines.
Chris@69 16718 GREP=$lt_GREP
Chris@69 16719
Chris@69 16720 # An ERE matcher.
Chris@69 16721 EGREP=$lt_EGREP
Chris@69 16722
Chris@69 16723 # A literal string matcher.
Chris@69 16724 FGREP=$lt_FGREP
Chris@69 16725
Chris@69 16726 # A BSD- or MS-compatible name lister.
Chris@69 16727 NM=$lt_NM
Chris@69 16728
Chris@69 16729 # Whether we need soft or hard links.
Chris@69 16730 LN_S=$lt_LN_S
Chris@69 16731
Chris@69 16732 # What is the maximum length of a command?
Chris@69 16733 max_cmd_len=$max_cmd_len
Chris@69 16734
Chris@69 16735 # Object file suffix (normally "o").
Chris@69 16736 objext=$ac_objext
Chris@69 16737
Chris@69 16738 # Executable file suffix (normally "").
Chris@69 16739 exeext=$exeext
Chris@69 16740
Chris@69 16741 # whether the shell understands "unset".
Chris@69 16742 lt_unset=$lt_unset
Chris@69 16743
Chris@69 16744 # turn spaces into newlines.
Chris@69 16745 SP2NL=$lt_lt_SP2NL
Chris@69 16746
Chris@69 16747 # turn newlines into spaces.
Chris@69 16748 NL2SP=$lt_lt_NL2SP
Chris@69 16749
Chris@69 16750 # convert \$build file names to \$host format.
Chris@69 16751 to_host_file_cmd=$lt_cv_to_host_file_cmd
Chris@69 16752
Chris@69 16753 # convert \$build files to toolchain format.
Chris@69 16754 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Chris@69 16755
Chris@69 16756 # An object symbol dumper.
Chris@69 16757 OBJDUMP=$lt_OBJDUMP
Chris@69 16758
Chris@69 16759 # Method to check whether dependent libraries are shared objects.
Chris@69 16760 deplibs_check_method=$lt_deplibs_check_method
Chris@69 16761
Chris@69 16762 # Command to use when deplibs_check_method = "file_magic".
Chris@69 16763 file_magic_cmd=$lt_file_magic_cmd
Chris@69 16764
Chris@69 16765 # How to find potential files when deplibs_check_method = "file_magic".
Chris@69 16766 file_magic_glob=$lt_file_magic_glob
Chris@69 16767
Chris@69 16768 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
Chris@69 16769 want_nocaseglob=$lt_want_nocaseglob
Chris@69 16770
Chris@69 16771 # DLL creation program.
Chris@69 16772 DLLTOOL=$lt_DLLTOOL
Chris@69 16773
Chris@69 16774 # Command to associate shared and link libraries.
Chris@69 16775 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
Chris@69 16776
Chris@69 16777 # The archiver.
Chris@69 16778 AR=$lt_AR
Chris@69 16779
Chris@69 16780 # Flags to create an archive.
Chris@69 16781 AR_FLAGS=$lt_AR_FLAGS
Chris@69 16782
Chris@69 16783 # How to feed a file listing to the archiver.
Chris@69 16784 archiver_list_spec=$lt_archiver_list_spec
Chris@69 16785
Chris@69 16786 # A symbol stripping program.
Chris@69 16787 STRIP=$lt_STRIP
Chris@69 16788
Chris@69 16789 # Commands used to install an old-style archive.
Chris@69 16790 RANLIB=$lt_RANLIB
Chris@69 16791 old_postinstall_cmds=$lt_old_postinstall_cmds
Chris@69 16792 old_postuninstall_cmds=$lt_old_postuninstall_cmds
Chris@69 16793
Chris@69 16794 # Whether to use a lock for old archive extraction.
Chris@69 16795 lock_old_archive_extraction=$lock_old_archive_extraction
Chris@69 16796
Chris@69 16797 # A C compiler.
Chris@69 16798 LTCC=$lt_CC
Chris@69 16799
Chris@69 16800 # LTCC compiler flags.
Chris@69 16801 LTCFLAGS=$lt_CFLAGS
Chris@69 16802
Chris@69 16803 # Take the output of nm and produce a listing of raw symbols and C names.
Chris@69 16804 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
Chris@69 16805
Chris@69 16806 # Transform the output of nm in a proper C declaration.
Chris@69 16807 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
Chris@69 16808
Chris@69 16809 # Transform the output of nm into a list of symbols to manually relocate.
Chris@69 16810 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
Chris@69 16811
Chris@69 16812 # Transform the output of nm in a C name address pair.
Chris@69 16813 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Chris@69 16814
Chris@69 16815 # Transform the output of nm in a C name address pair when lib prefix is needed.
Chris@69 16816 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
Chris@69 16817
Chris@69 16818 # The name lister interface.
Chris@69 16819 nm_interface=$lt_lt_cv_nm_interface
Chris@69 16820
Chris@69 16821 # Specify filename containing input files for \$NM.
Chris@69 16822 nm_file_list_spec=$lt_nm_file_list_spec
Chris@69 16823
Chris@69 16824 # The root where to search for dependent libraries,and where our libraries should be installed.
Chris@69 16825 lt_sysroot=$lt_sysroot
Chris@69 16826
Chris@69 16827 # Command to truncate a binary pipe.
Chris@69 16828 lt_truncate_bin=$lt_lt_cv_truncate_bin
Chris@69 16829
Chris@69 16830 # The name of the directory that contains temporary libtool files.
Chris@69 16831 objdir=$objdir
Chris@69 16832
Chris@69 16833 # Used to examine libraries when file_magic_cmd begins with "file".
Chris@69 16834 MAGIC_CMD=$MAGIC_CMD
Chris@69 16835
Chris@69 16836 # Must we lock files when doing compilation?
Chris@69 16837 need_locks=$lt_need_locks
Chris@69 16838
Chris@69 16839 # Manifest tool.
Chris@69 16840 MANIFEST_TOOL=$lt_MANIFEST_TOOL
Chris@69 16841
Chris@69 16842 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
Chris@69 16843 DSYMUTIL=$lt_DSYMUTIL
Chris@69 16844
Chris@69 16845 # Tool to change global to local symbols on Mac OS X.
Chris@69 16846 NMEDIT=$lt_NMEDIT
Chris@69 16847
Chris@69 16848 # Tool to manipulate fat objects and archives on Mac OS X.
Chris@69 16849 LIPO=$lt_LIPO
Chris@69 16850
Chris@69 16851 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
Chris@69 16852 OTOOL=$lt_OTOOL
Chris@69 16853
Chris@69 16854 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
Chris@69 16855 OTOOL64=$lt_OTOOL64
Chris@69 16856
Chris@69 16857 # Old archive suffix (normally "a").
Chris@69 16858 libext=$libext
Chris@69 16859
Chris@69 16860 # Shared library suffix (normally ".so").
Chris@69 16861 shrext_cmds=$lt_shrext_cmds
Chris@69 16862
Chris@69 16863 # The commands to extract the exported symbol list from a shared archive.
Chris@69 16864 extract_expsyms_cmds=$lt_extract_expsyms_cmds
Chris@69 16865
Chris@69 16866 # Variables whose values should be saved in libtool wrapper scripts and
Chris@69 16867 # restored at link time.
Chris@69 16868 variables_saved_for_relink=$lt_variables_saved_for_relink
Chris@69 16869
Chris@69 16870 # Do we need the "lib" prefix for modules?
Chris@69 16871 need_lib_prefix=$need_lib_prefix
Chris@69 16872
Chris@69 16873 # Do we need a version for libraries?
Chris@69 16874 need_version=$need_version
Chris@69 16875
Chris@69 16876 # Library versioning type.
Chris@69 16877 version_type=$version_type
Chris@69 16878
Chris@69 16879 # Shared library runtime path variable.
Chris@69 16880 runpath_var=$runpath_var
Chris@69 16881
Chris@69 16882 # Shared library path variable.
Chris@69 16883 shlibpath_var=$shlibpath_var
Chris@69 16884
Chris@69 16885 # Is shlibpath searched before the hard-coded library search path?
Chris@69 16886 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
Chris@69 16887
Chris@69 16888 # Format of library name prefix.
Chris@69 16889 libname_spec=$lt_libname_spec
Chris@69 16890
Chris@69 16891 # List of archive names. First name is the real one, the rest are links.
Chris@69 16892 # The last name is the one that the linker finds with -lNAME
Chris@69 16893 library_names_spec=$lt_library_names_spec
Chris@69 16894
Chris@69 16895 # The coded name of the library, if different from the real name.
Chris@69 16896 soname_spec=$lt_soname_spec
Chris@69 16897
Chris@69 16898 # Permission mode override for installation of shared libraries.
Chris@69 16899 install_override_mode=$lt_install_override_mode
Chris@69 16900
Chris@69 16901 # Command to use after installation of a shared archive.
Chris@69 16902 postinstall_cmds=$lt_postinstall_cmds
Chris@69 16903
Chris@69 16904 # Command to use after uninstallation of a shared archive.
Chris@69 16905 postuninstall_cmds=$lt_postuninstall_cmds
Chris@69 16906
Chris@69 16907 # Commands used to finish a libtool library installation in a directory.
Chris@69 16908 finish_cmds=$lt_finish_cmds
Chris@69 16909
Chris@69 16910 # As "finish_cmds", except a single script fragment to be evaled but
Chris@69 16911 # not shown.
Chris@69 16912 finish_eval=$lt_finish_eval
Chris@69 16913
Chris@69 16914 # Whether we should hardcode library paths into libraries.
Chris@69 16915 hardcode_into_libs=$hardcode_into_libs
Chris@69 16916
Chris@69 16917 # Compile-time system search path for libraries.
Chris@69 16918 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
Chris@69 16919
Chris@69 16920 # Detected run-time system search path for libraries.
Chris@69 16921 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
Chris@69 16922
Chris@69 16923 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
Chris@69 16924 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
Chris@69 16925
Chris@69 16926 # Whether dlopen is supported.
Chris@69 16927 dlopen_support=$enable_dlopen
Chris@69 16928
Chris@69 16929 # Whether dlopen of programs is supported.
Chris@69 16930 dlopen_self=$enable_dlopen_self
Chris@69 16931
Chris@69 16932 # Whether dlopen of statically linked programs is supported.
Chris@69 16933 dlopen_self_static=$enable_dlopen_self_static
Chris@69 16934
Chris@69 16935 # Commands to strip libraries.
Chris@69 16936 old_striplib=$lt_old_striplib
Chris@69 16937 striplib=$lt_striplib
Chris@69 16938
Chris@69 16939
Chris@69 16940 # The linker used to build libraries.
Chris@69 16941 LD=$lt_LD
Chris@69 16942
Chris@69 16943 # How to create reloadable object files.
Chris@69 16944 reload_flag=$lt_reload_flag
Chris@69 16945 reload_cmds=$lt_reload_cmds
Chris@69 16946
Chris@69 16947 # Commands used to build an old-style archive.
Chris@69 16948 old_archive_cmds=$lt_old_archive_cmds
Chris@69 16949
Chris@69 16950 # A language specific compiler.
Chris@69 16951 CC=$lt_compiler
Chris@69 16952
Chris@69 16953 # Is the compiler the GNU compiler?
Chris@69 16954 with_gcc=$GCC
Chris@69 16955
Chris@69 16956 # Compiler flag to turn off builtin functions.
Chris@69 16957 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
Chris@69 16958
Chris@69 16959 # Additional compiler flags for building library objects.
Chris@69 16960 pic_flag=$lt_lt_prog_compiler_pic
Chris@69 16961
Chris@69 16962 # How to pass a linker flag through the compiler.
Chris@69 16963 wl=$lt_lt_prog_compiler_wl
Chris@69 16964
Chris@69 16965 # Compiler flag to prevent dynamic linking.
Chris@69 16966 link_static_flag=$lt_lt_prog_compiler_static
Chris@69 16967
Chris@69 16968 # Does compiler simultaneously support -c and -o options?
Chris@69 16969 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
Chris@69 16970
Chris@69 16971 # Whether or not to add -lc for building shared libraries.
Chris@69 16972 build_libtool_need_lc=$archive_cmds_need_lc
Chris@69 16973
Chris@69 16974 # Whether or not to disallow shared libs when runtime libs are static.
Chris@69 16975 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
Chris@69 16976
Chris@69 16977 # Compiler flag to allow reflexive dlopens.
Chris@69 16978 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
Chris@69 16979
Chris@69 16980 # Compiler flag to generate shared objects directly from archives.
Chris@69 16981 whole_archive_flag_spec=$lt_whole_archive_flag_spec
Chris@69 16982
Chris@69 16983 # Whether the compiler copes with passing no objects directly.
Chris@69 16984 compiler_needs_object=$lt_compiler_needs_object
Chris@69 16985
Chris@69 16986 # Create an old-style archive from a shared archive.
Chris@69 16987 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
Chris@69 16988
Chris@69 16989 # Create a temporary old-style archive to link instead of a shared archive.
Chris@69 16990 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
Chris@69 16991
Chris@69 16992 # Commands used to build a shared archive.
Chris@69 16993 archive_cmds=$lt_archive_cmds
Chris@69 16994 archive_expsym_cmds=$lt_archive_expsym_cmds
Chris@69 16995
Chris@69 16996 # Commands used to build a loadable module if different from building
Chris@69 16997 # a shared archive.
Chris@69 16998 module_cmds=$lt_module_cmds
Chris@69 16999 module_expsym_cmds=$lt_module_expsym_cmds
Chris@69 17000
Chris@69 17001 # Whether we are building with GNU ld or not.
Chris@69 17002 with_gnu_ld=$lt_with_gnu_ld
Chris@69 17003
Chris@69 17004 # Flag that allows shared libraries with undefined symbols to be built.
Chris@69 17005 allow_undefined_flag=$lt_allow_undefined_flag
Chris@69 17006
Chris@69 17007 # Flag that enforces no undefined symbols.
Chris@69 17008 no_undefined_flag=$lt_no_undefined_flag
Chris@69 17009
Chris@69 17010 # Flag to hardcode \$libdir into a binary during linking.
Chris@69 17011 # This must work even if \$libdir does not exist
Chris@69 17012 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
Chris@69 17013
Chris@69 17014 # Whether we need a single "-rpath" flag with a separated argument.
Chris@69 17015 hardcode_libdir_separator=$lt_hardcode_libdir_separator
Chris@69 17016
Chris@69 17017 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Chris@69 17018 # DIR into the resulting binary.
Chris@69 17019 hardcode_direct=$hardcode_direct
Chris@69 17020
Chris@69 17021 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Chris@69 17022 # DIR into the resulting binary and the resulting library dependency is
Chris@69 17023 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
Chris@69 17024 # library is relocated.
Chris@69 17025 hardcode_direct_absolute=$hardcode_direct_absolute
Chris@69 17026
Chris@69 17027 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
Chris@69 17028 # into the resulting binary.
Chris@69 17029 hardcode_minus_L=$hardcode_minus_L
Chris@69 17030
Chris@69 17031 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
Chris@69 17032 # into the resulting binary.
Chris@69 17033 hardcode_shlibpath_var=$hardcode_shlibpath_var
Chris@69 17034
Chris@69 17035 # Set to "yes" if building a shared library automatically hardcodes DIR
Chris@69 17036 # into the library and all subsequent libraries and executables linked
Chris@69 17037 # against it.
Chris@69 17038 hardcode_automatic=$hardcode_automatic
Chris@69 17039
Chris@69 17040 # Set to yes if linker adds runtime paths of dependent libraries
Chris@69 17041 # to runtime path list.
Chris@69 17042 inherit_rpath=$inherit_rpath
Chris@69 17043
Chris@69 17044 # Whether libtool must link a program against all its dependency libraries.
Chris@69 17045 link_all_deplibs=$link_all_deplibs
Chris@69 17046
Chris@69 17047 # Set to "yes" if exported symbols are required.
Chris@69 17048 always_export_symbols=$always_export_symbols
Chris@69 17049
Chris@69 17050 # The commands to list exported symbols.
Chris@69 17051 export_symbols_cmds=$lt_export_symbols_cmds
Chris@69 17052
Chris@69 17053 # Symbols that should not be listed in the preloaded symbols.
Chris@69 17054 exclude_expsyms=$lt_exclude_expsyms
Chris@69 17055
Chris@69 17056 # Symbols that must always be exported.
Chris@69 17057 include_expsyms=$lt_include_expsyms
Chris@69 17058
Chris@69 17059 # Commands necessary for linking programs (against libraries) with templates.
Chris@69 17060 prelink_cmds=$lt_prelink_cmds
Chris@69 17061
Chris@69 17062 # Commands necessary for finishing linking programs.
Chris@69 17063 postlink_cmds=$lt_postlink_cmds
Chris@69 17064
Chris@69 17065 # Specify filename containing input files.
Chris@69 17066 file_list_spec=$lt_file_list_spec
Chris@69 17067
Chris@69 17068 # How to hardcode a shared library path into an executable.
Chris@69 17069 hardcode_action=$hardcode_action
Chris@69 17070
Chris@69 17071 # ### END LIBTOOL CONFIG
Chris@69 17072
Chris@69 17073 _LT_EOF
Chris@69 17074
Chris@69 17075 cat <<'_LT_EOF' >> "$cfgfile"
Chris@69 17076
Chris@69 17077 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
Chris@69 17078
Chris@69 17079 # func_munge_path_list VARIABLE PATH
Chris@69 17080 # -----------------------------------
Chris@69 17081 # VARIABLE is name of variable containing _space_ separated list of
Chris@69 17082 # directories to be munged by the contents of PATH, which is string
Chris@69 17083 # having a format:
Chris@69 17084 # "DIR[:DIR]:"
Chris@69 17085 # string "DIR[ DIR]" will be prepended to VARIABLE
Chris@69 17086 # ":DIR[:DIR]"
Chris@69 17087 # string "DIR[ DIR]" will be appended to VARIABLE
Chris@69 17088 # "DIRP[:DIRP]::[DIRA:]DIRA"
Chris@69 17089 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
Chris@69 17090 # "DIRA[ DIRA]" will be appended to VARIABLE
Chris@69 17091 # "DIR[:DIR]"
Chris@69 17092 # VARIABLE will be replaced by "DIR[ DIR]"
Chris@69 17093 func_munge_path_list ()
Chris@69 17094 {
Chris@69 17095 case x$2 in
Chris@69 17096 x)
Chris@69 17097 ;;
Chris@69 17098 *:)
Chris@69 17099 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
Chris@69 17100 ;;
Chris@69 17101 x:*)
Chris@69 17102 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
Chris@69 17103 ;;
Chris@69 17104 *::*)
Chris@69 17105 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
Chris@69 17106 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
Chris@69 17107 ;;
Chris@69 17108 *)
Chris@69 17109 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
Chris@69 17110 ;;
Chris@69 17111 esac
Chris@69 17112 }
Chris@69 17113
Chris@69 17114
Chris@69 17115 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
Chris@69 17116 func_cc_basename ()
Chris@69 17117 {
Chris@69 17118 for cc_temp in $*""; do
Chris@69 17119 case $cc_temp in
Chris@69 17120 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
Chris@69 17121 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
Chris@69 17122 \-*) ;;
Chris@69 17123 *) break;;
Chris@69 17124 esac
Chris@69 17125 done
Chris@69 17126 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Chris@69 17127 }
Chris@69 17128
Chris@69 17129
Chris@69 17130 # ### END FUNCTIONS SHARED WITH CONFIGURE
Chris@69 17131
Chris@69 17132 _LT_EOF
Chris@69 17133
Chris@69 17134 case $host_os in
Chris@69 17135 aix3*)
Chris@69 17136 cat <<\_LT_EOF >> "$cfgfile"
Chris@69 17137 # AIX sometimes has problems with the GCC collect2 program. For some
Chris@69 17138 # reason, if we set the COLLECT_NAMES environment variable, the problems
Chris@69 17139 # vanish in a puff of smoke.
Chris@69 17140 if test set != "${COLLECT_NAMES+set}"; then
Chris@69 17141 COLLECT_NAMES=
Chris@69 17142 export COLLECT_NAMES
Chris@69 17143 fi
Chris@69 17144 _LT_EOF
Chris@69 17145 ;;
Chris@69 17146 esac
Chris@69 17147
Chris@69 17148
Chris@69 17149 ltmain=$ac_aux_dir/ltmain.sh
Chris@69 17150
Chris@69 17151
Chris@69 17152 # We use sed instead of cat because bash on DJGPP gets confused if
Chris@69 17153 # if finds mixed CR/LF and LF-only lines. Since sed operates in
Chris@69 17154 # text mode, it properly converts lines to CR/LF. This bash problem
Chris@69 17155 # is reportedly fixed, but why not run on old versions too?
Chris@69 17156 sed '$q' "$ltmain" >> "$cfgfile" \
Chris@69 17157 || (rm -f "$cfgfile"; exit 1)
Chris@69 17158
Chris@69 17159 mv -f "$cfgfile" "$ofile" ||
Chris@69 17160 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
Chris@69 17161 chmod +x "$ofile"
Chris@69 17162
Chris@69 17163 ;;
Chris@69 17164
Chris@69 17165 esac
Chris@69 17166 done # for ac_tag
Chris@69 17167
Chris@69 17168
Chris@69 17169 as_fn_exit 0
Chris@69 17170 _ACEOF
Chris@69 17171 ac_clean_files=$ac_clean_files_save
Chris@69 17172
Chris@69 17173 test $ac_write_fail = 0 ||
Chris@69 17174 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Chris@69 17175
Chris@69 17176
Chris@69 17177 # configure is writing to config.log, and then calls config.status.
Chris@69 17178 # config.status does its own redirection, appending to config.log.
Chris@69 17179 # Unfortunately, on DOS this fails, as config.log is still kept open
Chris@69 17180 # by configure, so config.status won't be able to write to it; its
Chris@69 17181 # output is simply discarded. So we exec the FD to /dev/null,
Chris@69 17182 # effectively closing config.log, so it can be properly (re)opened and
Chris@69 17183 # appended to by config.status. When coming back to configure, we
Chris@69 17184 # need to make the FD available again.
Chris@69 17185 if test "$no_create" != yes; then
Chris@69 17186 ac_cs_success=:
Chris@69 17187 ac_config_status_args=
Chris@69 17188 test "$silent" = yes &&
Chris@69 17189 ac_config_status_args="$ac_config_status_args --quiet"
Chris@69 17190 exec 5>/dev/null
Chris@69 17191 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Chris@69 17192 exec 5>>config.log
Chris@69 17193 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
Chris@69 17194 # would make configure fail if this is the last instruction.
Chris@69 17195 $ac_cs_success || as_fn_exit 1
Chris@69 17196 fi
Chris@69 17197 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Chris@69 17198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Chris@69 17199 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Chris@69 17200 fi
Chris@69 17201
Chris@69 17202
Chris@69 17203 { $as_echo "$as_me:${as_lineno-$LINENO}:
Chris@69 17204 ------------------------------------------------------------------------
Chris@69 17205 $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK.
Chris@69 17206
Chris@69 17207 Compiler support:
Chris@69 17208
Chris@69 17209 C99 var arrays: ................ ${has_var_arrays}
Chris@69 17210 C99 lrintf: .................... ${ac_cv_func_lrintf}
Chris@69 17211 Use alloca: .................... ${use_alloca}
Chris@69 17212
Chris@69 17213 General configuration:
Chris@69 17214
Chris@69 17215 Floating point support: ........ ${enable_float}
Chris@69 17216 Fast float approximations: ..... ${enable_float_approx}
Chris@69 17217 Fixed point debugging: ......... ${enable_fixed_point_debug}
Chris@69 17218 Inline Assembly Optimizations: . ${inline_optimization}
Chris@69 17219 External Assembly Optimizations: ${asm_optimization}
Chris@69 17220 Intrinsics Optimizations: ...... ${intrinsics_support}
Chris@69 17221 Run-time CPU detection: ........ ${rtcd_support}
Chris@69 17222 Custom modes: .................. ${enable_custom_modes}
Chris@69 17223 Assertion checking: ............ ${enable_assertions}
Chris@69 17224 Hardening: ..................... ${enable_hardening}
Chris@69 17225 Fuzzing: ....................... ${enable_fuzzing}
Chris@69 17226 Check ASM: ..................... ${enable_check_asm}
Chris@69 17227
Chris@69 17228 API documentation: ............. ${enable_doc}
Chris@69 17229 Extra programs: ................ ${enable_extra_programs}
Chris@69 17230 ------------------------------------------------------------------------
Chris@69 17231
Chris@69 17232 Type \"make; make install\" to compile and install
Chris@69 17233 Type \"make check\" to run the test suite
Chris@69 17234 " >&5
Chris@69 17235 $as_echo "$as_me:
Chris@69 17236 ------------------------------------------------------------------------
Chris@69 17237 $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK.
Chris@69 17238
Chris@69 17239 Compiler support:
Chris@69 17240
Chris@69 17241 C99 var arrays: ................ ${has_var_arrays}
Chris@69 17242 C99 lrintf: .................... ${ac_cv_func_lrintf}
Chris@69 17243 Use alloca: .................... ${use_alloca}
Chris@69 17244
Chris@69 17245 General configuration:
Chris@69 17246
Chris@69 17247 Floating point support: ........ ${enable_float}
Chris@69 17248 Fast float approximations: ..... ${enable_float_approx}
Chris@69 17249 Fixed point debugging: ......... ${enable_fixed_point_debug}
Chris@69 17250 Inline Assembly Optimizations: . ${inline_optimization}
Chris@69 17251 External Assembly Optimizations: ${asm_optimization}
Chris@69 17252 Intrinsics Optimizations: ...... ${intrinsics_support}
Chris@69 17253 Run-time CPU detection: ........ ${rtcd_support}
Chris@69 17254 Custom modes: .................. ${enable_custom_modes}
Chris@69 17255 Assertion checking: ............ ${enable_assertions}
Chris@69 17256 Hardening: ..................... ${enable_hardening}
Chris@69 17257 Fuzzing: ....................... ${enable_fuzzing}
Chris@69 17258 Check ASM: ..................... ${enable_check_asm}
Chris@69 17259
Chris@69 17260 API documentation: ............. ${enable_doc}
Chris@69 17261 Extra programs: ................ ${enable_extra_programs}
Chris@69 17262 ------------------------------------------------------------------------
Chris@69 17263
Chris@69 17264 Type \"make; make install\" to compile and install
Chris@69 17265 Type \"make check\" to run the test suite
Chris@69 17266 " >&6;}
Chris@69 17267