annotate src/opus-1.3/configure @ 156:1bf23f5aebc4

Opus build for Windows (MinGW)
author Chris Cannam <cannam@all-day-breakfast.com>
date Fri, 25 Jan 2019 13:49:03 +0000
parents 4664ac0c1032
children
rev   line source
cannam@154 1 #! /bin/sh
cannam@154 2 # Guess values for system-dependent variables and create Makefiles.
cannam@154 3 # Generated by GNU Autoconf 2.69 for opus 1.3.
cannam@154 4 #
cannam@154 5 # Report bugs to <opus@xiph.org>.
cannam@154 6 #
cannam@154 7 #
cannam@154 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cannam@154 9 #
cannam@154 10 #
cannam@154 11 # This configure script is free software; the Free Software Foundation
cannam@154 12 # gives unlimited permission to copy, distribute and modify it.
cannam@154 13 ## -------------------- ##
cannam@154 14 ## M4sh Initialization. ##
cannam@154 15 ## -------------------- ##
cannam@154 16
cannam@154 17 # Be more Bourne compatible
cannam@154 18 DUALCASE=1; export DUALCASE # for MKS sh
cannam@154 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cannam@154 20 emulate sh
cannam@154 21 NULLCMD=:
cannam@154 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
cannam@154 23 # is contrary to our usage. Disable this feature.
cannam@154 24 alias -g '${1+"$@"}'='"$@"'
cannam@154 25 setopt NO_GLOB_SUBST
cannam@154 26 else
cannam@154 27 case `(set -o) 2>/dev/null` in #(
cannam@154 28 *posix*) :
cannam@154 29 set -o posix ;; #(
cannam@154 30 *) :
cannam@154 31 ;;
cannam@154 32 esac
cannam@154 33 fi
cannam@154 34
cannam@154 35
cannam@154 36 as_nl='
cannam@154 37 '
cannam@154 38 export as_nl
cannam@154 39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
cannam@154 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@154 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@154 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@154 43 # Prefer a ksh shell builtin over an external printf program on Solaris,
cannam@154 44 # but without wasting forks for bash or zsh.
cannam@154 45 if test -z "$BASH_VERSION$ZSH_VERSION" \
cannam@154 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@154 47 as_echo='print -r --'
cannam@154 48 as_echo_n='print -rn --'
cannam@154 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@154 50 as_echo='printf %s\n'
cannam@154 51 as_echo_n='printf %s'
cannam@154 52 else
cannam@154 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
cannam@154 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
cannam@154 55 as_echo_n='/usr/ucb/echo -n'
cannam@154 56 else
cannam@154 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
cannam@154 58 as_echo_n_body='eval
cannam@154 59 arg=$1;
cannam@154 60 case $arg in #(
cannam@154 61 *"$as_nl"*)
cannam@154 62 expr "X$arg" : "X\\(.*\\)$as_nl";
cannam@154 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
cannam@154 64 esac;
cannam@154 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
cannam@154 66 '
cannam@154 67 export as_echo_n_body
cannam@154 68 as_echo_n='sh -c $as_echo_n_body as_echo'
cannam@154 69 fi
cannam@154 70 export as_echo_body
cannam@154 71 as_echo='sh -c $as_echo_body as_echo'
cannam@154 72 fi
cannam@154 73
cannam@154 74 # The user is always right.
cannam@154 75 if test "${PATH_SEPARATOR+set}" != set; then
cannam@154 76 PATH_SEPARATOR=:
cannam@154 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
cannam@154 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
cannam@154 79 PATH_SEPARATOR=';'
cannam@154 80 }
cannam@154 81 fi
cannam@154 82
cannam@154 83
cannam@154 84 # IFS
cannam@154 85 # We need space, tab and new line, in precisely that order. Quoting is
cannam@154 86 # there to prevent editors from complaining about space-tab.
cannam@154 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
cannam@154 88 # splitting by setting IFS to empty value.)
cannam@154 89 IFS=" "" $as_nl"
cannam@154 90
cannam@154 91 # Find who we are. Look in the path if we contain no directory separator.
cannam@154 92 as_myself=
cannam@154 93 case $0 in #((
cannam@154 94 *[\\/]* ) as_myself=$0 ;;
cannam@154 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 96 for as_dir in $PATH
cannam@154 97 do
cannam@154 98 IFS=$as_save_IFS
cannam@154 99 test -z "$as_dir" && as_dir=.
cannam@154 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
cannam@154 101 done
cannam@154 102 IFS=$as_save_IFS
cannam@154 103
cannam@154 104 ;;
cannam@154 105 esac
cannam@154 106 # We did not find ourselves, most probably we were run as `sh COMMAND'
cannam@154 107 # in which case we are not to be found in the path.
cannam@154 108 if test "x$as_myself" = x; then
cannam@154 109 as_myself=$0
cannam@154 110 fi
cannam@154 111 if test ! -f "$as_myself"; then
cannam@154 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cannam@154 113 exit 1
cannam@154 114 fi
cannam@154 115
cannam@154 116 # Unset variables that we do not need and which cause bugs (e.g. in
cannam@154 117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
cannam@154 118 # suppresses any "Segmentation fault" message there. '((' could
cannam@154 119 # trigger a bug in pdksh 5.2.14.
cannam@154 120 for as_var in BASH_ENV ENV MAIL MAILPATH
cannam@154 121 do eval test x\${$as_var+set} = xset \
cannam@154 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cannam@154 123 done
cannam@154 124 PS1='$ '
cannam@154 125 PS2='> '
cannam@154 126 PS4='+ '
cannam@154 127
cannam@154 128 # NLS nuisances.
cannam@154 129 LC_ALL=C
cannam@154 130 export LC_ALL
cannam@154 131 LANGUAGE=C
cannam@154 132 export LANGUAGE
cannam@154 133
cannam@154 134 # CDPATH.
cannam@154 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cannam@154 136
cannam@154 137 # Use a proper internal environment variable to ensure we don't fall
cannam@154 138 # into an infinite loop, continuously re-executing ourselves.
cannam@154 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
cannam@154 140 _as_can_reexec=no; export _as_can_reexec;
cannam@154 141 # We cannot yet assume a decent shell, so we have to provide a
cannam@154 142 # neutralization value for shells without unset; and this also
cannam@154 143 # works around shells that cannot unset nonexistent variables.
cannam@154 144 # Preserve -v and -x to the replacement shell.
cannam@154 145 BASH_ENV=/dev/null
cannam@154 146 ENV=/dev/null
cannam@154 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
cannam@154 148 case $- in # ((((
cannam@154 149 *v*x* | *x*v* ) as_opts=-vx ;;
cannam@154 150 *v* ) as_opts=-v ;;
cannam@154 151 *x* ) as_opts=-x ;;
cannam@154 152 * ) as_opts= ;;
cannam@154 153 esac
cannam@154 154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
cannam@154 155 # Admittedly, this is quite paranoid, since all the known shells bail
cannam@154 156 # out after a failed `exec'.
cannam@154 157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
cannam@154 158 as_fn_exit 255
cannam@154 159 fi
cannam@154 160 # We don't want this to propagate to other subprocesses.
cannam@154 161 { _as_can_reexec=; unset _as_can_reexec;}
cannam@154 162 if test "x$CONFIG_SHELL" = x; then
cannam@154 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
cannam@154 164 emulate sh
cannam@154 165 NULLCMD=:
cannam@154 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
cannam@154 167 # is contrary to our usage. Disable this feature.
cannam@154 168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
cannam@154 169 setopt NO_GLOB_SUBST
cannam@154 170 else
cannam@154 171 case \`(set -o) 2>/dev/null\` in #(
cannam@154 172 *posix*) :
cannam@154 173 set -o posix ;; #(
cannam@154 174 *) :
cannam@154 175 ;;
cannam@154 176 esac
cannam@154 177 fi
cannam@154 178 "
cannam@154 179 as_required="as_fn_return () { (exit \$1); }
cannam@154 180 as_fn_success () { as_fn_return 0; }
cannam@154 181 as_fn_failure () { as_fn_return 1; }
cannam@154 182 as_fn_ret_success () { return 0; }
cannam@154 183 as_fn_ret_failure () { return 1; }
cannam@154 184
cannam@154 185 exitcode=0
cannam@154 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
cannam@154 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
cannam@154 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
cannam@154 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
cannam@154 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
cannam@154 191
cannam@154 192 else
cannam@154 193 exitcode=1; echo positional parameters were not saved.
cannam@154 194 fi
cannam@154 195 test x\$exitcode = x0 || exit 1
cannam@154 196 test -x / || exit 1"
cannam@154 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
cannam@154 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
cannam@154 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
cannam@154 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cannam@154 201
cannam@154 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
cannam@154 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@154 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
cannam@154 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
cannam@154 206 PATH=/empty FPATH=/empty; export PATH FPATH
cannam@154 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
cannam@154 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
cannam@154 209 test \$(( 1 + 1 )) = 2 || exit 1"
cannam@154 210 if (eval "$as_required") 2>/dev/null; then :
cannam@154 211 as_have_required=yes
cannam@154 212 else
cannam@154 213 as_have_required=no
cannam@154 214 fi
cannam@154 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
cannam@154 216
cannam@154 217 else
cannam@154 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 219 as_found=false
cannam@154 220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
cannam@154 221 do
cannam@154 222 IFS=$as_save_IFS
cannam@154 223 test -z "$as_dir" && as_dir=.
cannam@154 224 as_found=:
cannam@154 225 case $as_dir in #(
cannam@154 226 /*)
cannam@154 227 for as_base in sh bash ksh sh5; do
cannam@154 228 # Try only shells that exist, to save several forks.
cannam@154 229 as_shell=$as_dir/$as_base
cannam@154 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
cannam@154 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
cannam@154 232 CONFIG_SHELL=$as_shell as_have_required=yes
cannam@154 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
cannam@154 234 break 2
cannam@154 235 fi
cannam@154 236 fi
cannam@154 237 done;;
cannam@154 238 esac
cannam@154 239 as_found=false
cannam@154 240 done
cannam@154 241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
cannam@154 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
cannam@154 243 CONFIG_SHELL=$SHELL as_have_required=yes
cannam@154 244 fi; }
cannam@154 245 IFS=$as_save_IFS
cannam@154 246
cannam@154 247
cannam@154 248 if test "x$CONFIG_SHELL" != x; then :
cannam@154 249 export CONFIG_SHELL
cannam@154 250 # We cannot yet assume a decent shell, so we have to provide a
cannam@154 251 # neutralization value for shells without unset; and this also
cannam@154 252 # works around shells that cannot unset nonexistent variables.
cannam@154 253 # Preserve -v and -x to the replacement shell.
cannam@154 254 BASH_ENV=/dev/null
cannam@154 255 ENV=/dev/null
cannam@154 256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
cannam@154 257 case $- in # ((((
cannam@154 258 *v*x* | *x*v* ) as_opts=-vx ;;
cannam@154 259 *v* ) as_opts=-v ;;
cannam@154 260 *x* ) as_opts=-x ;;
cannam@154 261 * ) as_opts= ;;
cannam@154 262 esac
cannam@154 263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
cannam@154 264 # Admittedly, this is quite paranoid, since all the known shells bail
cannam@154 265 # out after a failed `exec'.
cannam@154 266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
cannam@154 267 exit 255
cannam@154 268 fi
cannam@154 269
cannam@154 270 if test x$as_have_required = xno; then :
cannam@154 271 $as_echo "$0: This script requires a shell more modern than all"
cannam@154 272 $as_echo "$0: the shells that I found on your system."
cannam@154 273 if test x${ZSH_VERSION+set} = xset ; then
cannam@154 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
cannam@154 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
cannam@154 276 else
cannam@154 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and opus@xiph.org
cannam@154 278 $0: about your system, including any error possibly output
cannam@154 279 $0: before this message. Then install a modern shell, or
cannam@154 280 $0: manually run the script under such a shell if you do
cannam@154 281 $0: have one."
cannam@154 282 fi
cannam@154 283 exit 1
cannam@154 284 fi
cannam@154 285 fi
cannam@154 286 fi
cannam@154 287 SHELL=${CONFIG_SHELL-/bin/sh}
cannam@154 288 export SHELL
cannam@154 289 # Unset more variables known to interfere with behavior of common tools.
cannam@154 290 CLICOLOR_FORCE= GREP_OPTIONS=
cannam@154 291 unset CLICOLOR_FORCE GREP_OPTIONS
cannam@154 292
cannam@154 293 ## --------------------- ##
cannam@154 294 ## M4sh Shell Functions. ##
cannam@154 295 ## --------------------- ##
cannam@154 296 # as_fn_unset VAR
cannam@154 297 # ---------------
cannam@154 298 # Portably unset VAR.
cannam@154 299 as_fn_unset ()
cannam@154 300 {
cannam@154 301 { eval $1=; unset $1;}
cannam@154 302 }
cannam@154 303 as_unset=as_fn_unset
cannam@154 304
cannam@154 305 # as_fn_set_status STATUS
cannam@154 306 # -----------------------
cannam@154 307 # Set $? to STATUS, without forking.
cannam@154 308 as_fn_set_status ()
cannam@154 309 {
cannam@154 310 return $1
cannam@154 311 } # as_fn_set_status
cannam@154 312
cannam@154 313 # as_fn_exit STATUS
cannam@154 314 # -----------------
cannam@154 315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
cannam@154 316 as_fn_exit ()
cannam@154 317 {
cannam@154 318 set +e
cannam@154 319 as_fn_set_status $1
cannam@154 320 exit $1
cannam@154 321 } # as_fn_exit
cannam@154 322
cannam@154 323 # as_fn_mkdir_p
cannam@154 324 # -------------
cannam@154 325 # Create "$as_dir" as a directory, including parents if necessary.
cannam@154 326 as_fn_mkdir_p ()
cannam@154 327 {
cannam@154 328
cannam@154 329 case $as_dir in #(
cannam@154 330 -*) as_dir=./$as_dir;;
cannam@154 331 esac
cannam@154 332 test -d "$as_dir" || eval $as_mkdir_p || {
cannam@154 333 as_dirs=
cannam@154 334 while :; do
cannam@154 335 case $as_dir in #(
cannam@154 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
cannam@154 337 *) as_qdir=$as_dir;;
cannam@154 338 esac
cannam@154 339 as_dirs="'$as_qdir' $as_dirs"
cannam@154 340 as_dir=`$as_dirname -- "$as_dir" ||
cannam@154 341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@154 342 X"$as_dir" : 'X\(//\)[^/]' \| \
cannam@154 343 X"$as_dir" : 'X\(//\)$' \| \
cannam@154 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
cannam@154 345 $as_echo X"$as_dir" |
cannam@154 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@154 347 s//\1/
cannam@154 348 q
cannam@154 349 }
cannam@154 350 /^X\(\/\/\)[^/].*/{
cannam@154 351 s//\1/
cannam@154 352 q
cannam@154 353 }
cannam@154 354 /^X\(\/\/\)$/{
cannam@154 355 s//\1/
cannam@154 356 q
cannam@154 357 }
cannam@154 358 /^X\(\/\).*/{
cannam@154 359 s//\1/
cannam@154 360 q
cannam@154 361 }
cannam@154 362 s/.*/./; q'`
cannam@154 363 test -d "$as_dir" && break
cannam@154 364 done
cannam@154 365 test -z "$as_dirs" || eval "mkdir $as_dirs"
cannam@154 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cannam@154 367
cannam@154 368
cannam@154 369 } # as_fn_mkdir_p
cannam@154 370
cannam@154 371 # as_fn_executable_p FILE
cannam@154 372 # -----------------------
cannam@154 373 # Test if FILE is an executable regular file.
cannam@154 374 as_fn_executable_p ()
cannam@154 375 {
cannam@154 376 test -f "$1" && test -x "$1"
cannam@154 377 } # as_fn_executable_p
cannam@154 378 # as_fn_append VAR VALUE
cannam@154 379 # ----------------------
cannam@154 380 # Append the text in VALUE to the end of the definition contained in VAR. Take
cannam@154 381 # advantage of any shell optimizations that allow amortized linear growth over
cannam@154 382 # repeated appends, instead of the typical quadratic growth present in naive
cannam@154 383 # implementations.
cannam@154 384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
cannam@154 385 eval 'as_fn_append ()
cannam@154 386 {
cannam@154 387 eval $1+=\$2
cannam@154 388 }'
cannam@154 389 else
cannam@154 390 as_fn_append ()
cannam@154 391 {
cannam@154 392 eval $1=\$$1\$2
cannam@154 393 }
cannam@154 394 fi # as_fn_append
cannam@154 395
cannam@154 396 # as_fn_arith ARG...
cannam@154 397 # ------------------
cannam@154 398 # Perform arithmetic evaluation on the ARGs, and store the result in the
cannam@154 399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
cannam@154 400 # must be portable across $(()) and expr.
cannam@154 401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
cannam@154 402 eval 'as_fn_arith ()
cannam@154 403 {
cannam@154 404 as_val=$(( $* ))
cannam@154 405 }'
cannam@154 406 else
cannam@154 407 as_fn_arith ()
cannam@154 408 {
cannam@154 409 as_val=`expr "$@" || test $? -eq 1`
cannam@154 410 }
cannam@154 411 fi # as_fn_arith
cannam@154 412
cannam@154 413
cannam@154 414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
cannam@154 415 # ----------------------------------------
cannam@154 416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
cannam@154 417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cannam@154 418 # script with STATUS, using 1 if that was 0.
cannam@154 419 as_fn_error ()
cannam@154 420 {
cannam@154 421 as_status=$1; test $as_status -eq 0 && as_status=1
cannam@154 422 if test "$4"; then
cannam@154 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@154 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cannam@154 425 fi
cannam@154 426 $as_echo "$as_me: error: $2" >&2
cannam@154 427 as_fn_exit $as_status
cannam@154 428 } # as_fn_error
cannam@154 429
cannam@154 430 if expr a : '\(a\)' >/dev/null 2>&1 &&
cannam@154 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
cannam@154 432 as_expr=expr
cannam@154 433 else
cannam@154 434 as_expr=false
cannam@154 435 fi
cannam@154 436
cannam@154 437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
cannam@154 438 as_basename=basename
cannam@154 439 else
cannam@154 440 as_basename=false
cannam@154 441 fi
cannam@154 442
cannam@154 443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
cannam@154 444 as_dirname=dirname
cannam@154 445 else
cannam@154 446 as_dirname=false
cannam@154 447 fi
cannam@154 448
cannam@154 449 as_me=`$as_basename -- "$0" ||
cannam@154 450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
cannam@154 451 X"$0" : 'X\(//\)$' \| \
cannam@154 452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
cannam@154 453 $as_echo X/"$0" |
cannam@154 454 sed '/^.*\/\([^/][^/]*\)\/*$/{
cannam@154 455 s//\1/
cannam@154 456 q
cannam@154 457 }
cannam@154 458 /^X\/\(\/\/\)$/{
cannam@154 459 s//\1/
cannam@154 460 q
cannam@154 461 }
cannam@154 462 /^X\/\(\/\).*/{
cannam@154 463 s//\1/
cannam@154 464 q
cannam@154 465 }
cannam@154 466 s/.*/./; q'`
cannam@154 467
cannam@154 468 # Avoid depending upon Character Ranges.
cannam@154 469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
cannam@154 470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
cannam@154 471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
cannam@154 472 as_cr_digits='0123456789'
cannam@154 473 as_cr_alnum=$as_cr_Letters$as_cr_digits
cannam@154 474
cannam@154 475
cannam@154 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
cannam@154 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
cannam@154 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
cannam@154 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
cannam@154 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cannam@154 481 sed -n '
cannam@154 482 p
cannam@154 483 /[$]LINENO/=
cannam@154 484 ' <$as_myself |
cannam@154 485 sed '
cannam@154 486 s/[$]LINENO.*/&-/
cannam@154 487 t lineno
cannam@154 488 b
cannam@154 489 :lineno
cannam@154 490 N
cannam@154 491 :loop
cannam@154 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
cannam@154 493 t loop
cannam@154 494 s/-\n.*//
cannam@154 495 ' >$as_me.lineno &&
cannam@154 496 chmod +x "$as_me.lineno" ||
cannam@154 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cannam@154 498
cannam@154 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
cannam@154 500 # already done that, so ensure we don't try to do so again and fall
cannam@154 501 # in an infinite loop. This has already happened in practice.
cannam@154 502 _as_can_reexec=no; export _as_can_reexec
cannam@154 503 # Don't try to exec as it changes $[0], causing all sort of problems
cannam@154 504 # (the dirname of $[0] is not the place where we might find the
cannam@154 505 # original and so on. Autoconf is especially sensitive to this).
cannam@154 506 . "./$as_me.lineno"
cannam@154 507 # Exit status is that of the last command.
cannam@154 508 exit
cannam@154 509 }
cannam@154 510
cannam@154 511 ECHO_C= ECHO_N= ECHO_T=
cannam@154 512 case `echo -n x` in #(((((
cannam@154 513 -n*)
cannam@154 514 case `echo 'xy\c'` in
cannam@154 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cannam@154 516 xy) ECHO_C='\c';;
cannam@154 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
cannam@154 518 ECHO_T=' ';;
cannam@154 519 esac;;
cannam@154 520 *)
cannam@154 521 ECHO_N='-n';;
cannam@154 522 esac
cannam@154 523
cannam@154 524 rm -f conf$$ conf$$.exe conf$$.file
cannam@154 525 if test -d conf$$.dir; then
cannam@154 526 rm -f conf$$.dir/conf$$.file
cannam@154 527 else
cannam@154 528 rm -f conf$$.dir
cannam@154 529 mkdir conf$$.dir 2>/dev/null
cannam@154 530 fi
cannam@154 531 if (echo >conf$$.file) 2>/dev/null; then
cannam@154 532 if ln -s conf$$.file conf$$ 2>/dev/null; then
cannam@154 533 as_ln_s='ln -s'
cannam@154 534 # ... but there are two gotchas:
cannam@154 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
cannam@154 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cannam@154 537 # In both cases, we have to default to `cp -pR'.
cannam@154 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cannam@154 539 as_ln_s='cp -pR'
cannam@154 540 elif ln conf$$.file conf$$ 2>/dev/null; then
cannam@154 541 as_ln_s=ln
cannam@154 542 else
cannam@154 543 as_ln_s='cp -pR'
cannam@154 544 fi
cannam@154 545 else
cannam@154 546 as_ln_s='cp -pR'
cannam@154 547 fi
cannam@154 548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
cannam@154 549 rmdir conf$$.dir 2>/dev/null
cannam@154 550
cannam@154 551 if mkdir -p . 2>/dev/null; then
cannam@154 552 as_mkdir_p='mkdir -p "$as_dir"'
cannam@154 553 else
cannam@154 554 test -d ./-p && rmdir ./-p
cannam@154 555 as_mkdir_p=false
cannam@154 556 fi
cannam@154 557
cannam@154 558 as_test_x='test -x'
cannam@154 559 as_executable_p=as_fn_executable_p
cannam@154 560
cannam@154 561 # Sed expression to map a string onto a valid CPP name.
cannam@154 562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
cannam@154 563
cannam@154 564 # Sed expression to map a string onto a valid variable name.
cannam@154 565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
cannam@154 566
cannam@154 567 SHELL=${CONFIG_SHELL-/bin/sh}
cannam@154 568
cannam@154 569
cannam@154 570 test -n "$DJDIR" || exec 7<&0 </dev/null
cannam@154 571 exec 6>&1
cannam@154 572
cannam@154 573 # Name of the host.
cannam@154 574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cannam@154 575 # so uname gets run too.
cannam@154 576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@154 577
cannam@154 578 #
cannam@154 579 # Initializations.
cannam@154 580 #
cannam@154 581 ac_default_prefix=/usr/local
cannam@154 582 ac_clean_files=
cannam@154 583 ac_config_libobj_dir=.
cannam@154 584 LIBOBJS=
cannam@154 585 cross_compiling=no
cannam@154 586 subdirs=
cannam@154 587 MFLAGS=
cannam@154 588 MAKEFLAGS=
cannam@154 589
cannam@154 590 # Identity of this package.
cannam@154 591 PACKAGE_NAME='opus'
cannam@154 592 PACKAGE_TARNAME='opus'
cannam@154 593 PACKAGE_VERSION='1.3'
cannam@154 594 PACKAGE_STRING='opus 1.3'
cannam@154 595 PACKAGE_BUGREPORT='opus@xiph.org'
cannam@154 596 PACKAGE_URL=''
cannam@154 597
cannam@154 598 ac_unique_file="src/opus_encoder.c"
cannam@154 599 # Factoring default headers for most tests.
cannam@154 600 ac_includes_default="\
cannam@154 601 #include <stdio.h>
cannam@154 602 #ifdef HAVE_SYS_TYPES_H
cannam@154 603 # include <sys/types.h>
cannam@154 604 #endif
cannam@154 605 #ifdef HAVE_SYS_STAT_H
cannam@154 606 # include <sys/stat.h>
cannam@154 607 #endif
cannam@154 608 #ifdef STDC_HEADERS
cannam@154 609 # include <stdlib.h>
cannam@154 610 # include <stddef.h>
cannam@154 611 #else
cannam@154 612 # ifdef HAVE_STDLIB_H
cannam@154 613 # include <stdlib.h>
cannam@154 614 # endif
cannam@154 615 #endif
cannam@154 616 #ifdef HAVE_STRING_H
cannam@154 617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
cannam@154 618 # include <memory.h>
cannam@154 619 # endif
cannam@154 620 # include <string.h>
cannam@154 621 #endif
cannam@154 622 #ifdef HAVE_STRINGS_H
cannam@154 623 # include <strings.h>
cannam@154 624 #endif
cannam@154 625 #ifdef HAVE_INTTYPES_H
cannam@154 626 # include <inttypes.h>
cannam@154 627 #endif
cannam@154 628 #ifdef HAVE_STDINT_H
cannam@154 629 # include <stdint.h>
cannam@154 630 #endif
cannam@154 631 #ifdef HAVE_UNISTD_H
cannam@154 632 # include <unistd.h>
cannam@154 633 #endif"
cannam@154 634
cannam@154 635 ac_subst_vars='am__EXEEXT_FALSE
cannam@154 636 am__EXEEXT_TRUE
cannam@154 637 LTLIBOBJS
cannam@154 638 LIBOBJS
cannam@154 639 PC_BUILD
cannam@154 640 EXTRA_PROGRAMS_FALSE
cannam@154 641 EXTRA_PROGRAMS_TRUE
cannam@154 642 HAVE_DOXYGEN_FALSE
cannam@154 643 HAVE_DOXYGEN_TRUE
cannam@154 644 HAVE_DOT
cannam@154 645 HAVE_DOXYGEN
cannam@154 646 OPUS_HAVE_RTCD
cannam@154 647 HAVE_ARM_NE10_FALSE
cannam@154 648 HAVE_ARM_NE10_TRUE
cannam@154 649 HAVE_ARM_NEON_INTR_FALSE
cannam@154 650 HAVE_ARM_NEON_INTR_TRUE
cannam@154 651 CPU_ARM_FALSE
cannam@154 652 CPU_ARM_TRUE
cannam@154 653 OPUS_X86_AVX_CFLAGS
cannam@154 654 OPUS_X86_SSE4_1_CFLAGS
cannam@154 655 OPUS_X86_SSE2_CFLAGS
cannam@154 656 OPUS_X86_SSE_CFLAGS
cannam@154 657 NE10_LIBS
cannam@154 658 NE10_CFLAGS
cannam@154 659 HAVE_ARM_NE10
cannam@154 660 OPUS_ARM_NEON_INTR_CFLAGS
cannam@154 661 ARM_NEON_INTR_CFLAGS
cannam@154 662 X86_AVX_CFLAGS
cannam@154 663 X86_SSE4_1_CFLAGS
cannam@154 664 X86_SSE2_CFLAGS
cannam@154 665 X86_SSE_CFLAGS
cannam@154 666 HAVE_AVX_FALSE
cannam@154 667 HAVE_AVX_TRUE
cannam@154 668 HAVE_SSE4_1_FALSE
cannam@154 669 HAVE_SSE4_1_TRUE
cannam@154 670 HAVE_SSE2_FALSE
cannam@154 671 HAVE_SSE2_TRUE
cannam@154 672 HAVE_SSE_FALSE
cannam@154 673 HAVE_SSE_TRUE
cannam@154 674 ARM2GNU_PARAMS
cannam@154 675 OPUS_ARM_MAY_HAVE_NEON
cannam@154 676 OPUS_ARM_MAY_HAVE_MEDIA
cannam@154 677 OPUS_ARM_MAY_HAVE_EDSP
cannam@154 678 OPUS_ARM_EXTERNAL_ASM_FALSE
cannam@154 679 OPUS_ARM_EXTERNAL_ASM_TRUE
cannam@154 680 HAVE_PERL
cannam@154 681 OPUS_ARM_INLINE_ASM_FALSE
cannam@154 682 OPUS_ARM_INLINE_ASM_TRUE
cannam@154 683 CUSTOM_MODES_FALSE
cannam@154 684 CUSTOM_MODES_TRUE
cannam@154 685 DISABLE_FLOAT_API_FALSE
cannam@154 686 DISABLE_FLOAT_API_TRUE
cannam@154 687 FIXED_POINT_FALSE
cannam@154 688 FIXED_POINT_TRUE
cannam@154 689 LIBM
cannam@154 690 am__fastdepCCAS_FALSE
cannam@154 691 am__fastdepCCAS_TRUE
cannam@154 692 CCASDEPMODE
cannam@154 693 CCASFLAGS
cannam@154 694 CCAS
cannam@154 695 CPP
cannam@154 696 LT_SYS_LIBRARY_PATH
cannam@154 697 OTOOL64
cannam@154 698 OTOOL
cannam@154 699 LIPO
cannam@154 700 NMEDIT
cannam@154 701 DSYMUTIL
cannam@154 702 MANIFEST_TOOL
cannam@154 703 RANLIB
cannam@154 704 ac_ct_AR
cannam@154 705 AR
cannam@154 706 DLLTOOL
cannam@154 707 OBJDUMP
cannam@154 708 LN_S
cannam@154 709 NM
cannam@154 710 ac_ct_DUMPBIN
cannam@154 711 DUMPBIN
cannam@154 712 LD
cannam@154 713 FGREP
cannam@154 714 EGREP
cannam@154 715 GREP
cannam@154 716 SED
cannam@154 717 am__fastdepCC_FALSE
cannam@154 718 am__fastdepCC_TRUE
cannam@154 719 CCDEPMODE
cannam@154 720 am__nodep
cannam@154 721 AMDEPBACKSLASH
cannam@154 722 AMDEP_FALSE
cannam@154 723 AMDEP_TRUE
cannam@154 724 am__quote
cannam@154 725 am__include
cannam@154 726 DEPDIR
cannam@154 727 OBJEXT
cannam@154 728 EXEEXT
cannam@154 729 ac_ct_CC
cannam@154 730 CPPFLAGS
cannam@154 731 LDFLAGS
cannam@154 732 CFLAGS
cannam@154 733 CC
cannam@154 734 LIBTOOL
cannam@154 735 host_os
cannam@154 736 host_vendor
cannam@154 737 host_cpu
cannam@154 738 host
cannam@154 739 build_os
cannam@154 740 build_vendor
cannam@154 741 build_cpu
cannam@154 742 build
cannam@154 743 MAINT
cannam@154 744 MAINTAINER_MODE_FALSE
cannam@154 745 MAINTAINER_MODE_TRUE
cannam@154 746 am__untar
cannam@154 747 am__tar
cannam@154 748 AMTAR
cannam@154 749 am__leading_dot
cannam@154 750 SET_MAKE
cannam@154 751 AWK
cannam@154 752 mkdir_p
cannam@154 753 MKDIR_P
cannam@154 754 INSTALL_STRIP_PROGRAM
cannam@154 755 STRIP
cannam@154 756 install_sh
cannam@154 757 MAKEINFO
cannam@154 758 AUTOHEADER
cannam@154 759 AUTOMAKE
cannam@154 760 AUTOCONF
cannam@154 761 ACLOCAL
cannam@154 762 VERSION
cannam@154 763 PACKAGE
cannam@154 764 CYGPATH_W
cannam@154 765 am__isrc
cannam@154 766 INSTALL_DATA
cannam@154 767 INSTALL_SCRIPT
cannam@154 768 INSTALL_PROGRAM
cannam@154 769 OPUS_LT_AGE
cannam@154 770 OPUS_LT_REVISION
cannam@154 771 OPUS_LT_CURRENT
cannam@154 772 AM_BACKSLASH
cannam@154 773 AM_DEFAULT_VERBOSITY
cannam@154 774 AM_DEFAULT_V
cannam@154 775 AM_V
cannam@154 776 target_alias
cannam@154 777 host_alias
cannam@154 778 build_alias
cannam@154 779 LIBS
cannam@154 780 ECHO_T
cannam@154 781 ECHO_N
cannam@154 782 ECHO_C
cannam@154 783 DEFS
cannam@154 784 mandir
cannam@154 785 localedir
cannam@154 786 libdir
cannam@154 787 psdir
cannam@154 788 pdfdir
cannam@154 789 dvidir
cannam@154 790 htmldir
cannam@154 791 infodir
cannam@154 792 docdir
cannam@154 793 oldincludedir
cannam@154 794 includedir
cannam@154 795 localstatedir
cannam@154 796 sharedstatedir
cannam@154 797 sysconfdir
cannam@154 798 datadir
cannam@154 799 datarootdir
cannam@154 800 libexecdir
cannam@154 801 sbindir
cannam@154 802 bindir
cannam@154 803 program_transform_name
cannam@154 804 prefix
cannam@154 805 exec_prefix
cannam@154 806 PACKAGE_URL
cannam@154 807 PACKAGE_BUGREPORT
cannam@154 808 PACKAGE_STRING
cannam@154 809 PACKAGE_VERSION
cannam@154 810 PACKAGE_TARNAME
cannam@154 811 PACKAGE_NAME
cannam@154 812 PATH_SEPARATOR
cannam@154 813 SHELL'
cannam@154 814 ac_subst_files=''
cannam@154 815 ac_user_opts='
cannam@154 816 enable_option_checking
cannam@154 817 enable_silent_rules
cannam@154 818 enable_maintainer_mode
cannam@154 819 enable_shared
cannam@154 820 enable_static
cannam@154 821 with_pic
cannam@154 822 enable_fast_install
cannam@154 823 with_aix_soname
cannam@154 824 enable_dependency_tracking
cannam@154 825 with_gnu_ld
cannam@154 826 with_sysroot
cannam@154 827 enable_libtool_lock
cannam@154 828 enable_fixed_point
cannam@154 829 enable_fixed_point_debug
cannam@154 830 enable_float_api
cannam@154 831 enable_custom_modes
cannam@154 832 enable_float_approx
cannam@154 833 enable_asm
cannam@154 834 enable_rtcd
cannam@154 835 enable_intrinsics
cannam@154 836 with_NE10
cannam@154 837 with_NE10_libraries
cannam@154 838 with_NE10_includes
cannam@154 839 enable_assertions
cannam@154 840 enable_hardening
cannam@154 841 enable_fuzzing
cannam@154 842 enable_check_asm
cannam@154 843 enable_doc
cannam@154 844 enable_extra_programs
cannam@154 845 enable_rfc8251
cannam@154 846 enable_stack_protector
cannam@154 847 '
cannam@154 848 ac_precious_vars='build_alias
cannam@154 849 host_alias
cannam@154 850 target_alias
cannam@154 851 CC
cannam@154 852 CFLAGS
cannam@154 853 LDFLAGS
cannam@154 854 LIBS
cannam@154 855 CPPFLAGS
cannam@154 856 LT_SYS_LIBRARY_PATH
cannam@154 857 CPP
cannam@154 858 CCAS
cannam@154 859 CCASFLAGS
cannam@154 860 X86_SSE_CFLAGS
cannam@154 861 X86_SSE2_CFLAGS
cannam@154 862 X86_SSE4_1_CFLAGS
cannam@154 863 X86_AVX_CFLAGS
cannam@154 864 ARM_NEON_INTR_CFLAGS'
cannam@154 865
cannam@154 866
cannam@154 867 # Initialize some variables set by options.
cannam@154 868 ac_init_help=
cannam@154 869 ac_init_version=false
cannam@154 870 ac_unrecognized_opts=
cannam@154 871 ac_unrecognized_sep=
cannam@154 872 # The variables have the same names as the options, with
cannam@154 873 # dashes changed to underlines.
cannam@154 874 cache_file=/dev/null
cannam@154 875 exec_prefix=NONE
cannam@154 876 no_create=
cannam@154 877 no_recursion=
cannam@154 878 prefix=NONE
cannam@154 879 program_prefix=NONE
cannam@154 880 program_suffix=NONE
cannam@154 881 program_transform_name=s,x,x,
cannam@154 882 silent=
cannam@154 883 site=
cannam@154 884 srcdir=
cannam@154 885 verbose=
cannam@154 886 x_includes=NONE
cannam@154 887 x_libraries=NONE
cannam@154 888
cannam@154 889 # Installation directory options.
cannam@154 890 # These are left unexpanded so users can "make install exec_prefix=/foo"
cannam@154 891 # and all the variables that are supposed to be based on exec_prefix
cannam@154 892 # by default will actually change.
cannam@154 893 # Use braces instead of parens because sh, perl, etc. also accept them.
cannam@154 894 # (The list follows the same order as the GNU Coding Standards.)
cannam@154 895 bindir='${exec_prefix}/bin'
cannam@154 896 sbindir='${exec_prefix}/sbin'
cannam@154 897 libexecdir='${exec_prefix}/libexec'
cannam@154 898 datarootdir='${prefix}/share'
cannam@154 899 datadir='${datarootdir}'
cannam@154 900 sysconfdir='${prefix}/etc'
cannam@154 901 sharedstatedir='${prefix}/com'
cannam@154 902 localstatedir='${prefix}/var'
cannam@154 903 includedir='${prefix}/include'
cannam@154 904 oldincludedir='/usr/include'
cannam@154 905 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
cannam@154 906 infodir='${datarootdir}/info'
cannam@154 907 htmldir='${docdir}'
cannam@154 908 dvidir='${docdir}'
cannam@154 909 pdfdir='${docdir}'
cannam@154 910 psdir='${docdir}'
cannam@154 911 libdir='${exec_prefix}/lib'
cannam@154 912 localedir='${datarootdir}/locale'
cannam@154 913 mandir='${datarootdir}/man'
cannam@154 914
cannam@154 915 ac_prev=
cannam@154 916 ac_dashdash=
cannam@154 917 for ac_option
cannam@154 918 do
cannam@154 919 # If the previous option needs an argument, assign it.
cannam@154 920 if test -n "$ac_prev"; then
cannam@154 921 eval $ac_prev=\$ac_option
cannam@154 922 ac_prev=
cannam@154 923 continue
cannam@154 924 fi
cannam@154 925
cannam@154 926 case $ac_option in
cannam@154 927 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
cannam@154 928 *=) ac_optarg= ;;
cannam@154 929 *) ac_optarg=yes ;;
cannam@154 930 esac
cannam@154 931
cannam@154 932 # Accept the important Cygnus configure options, so we can diagnose typos.
cannam@154 933
cannam@154 934 case $ac_dashdash$ac_option in
cannam@154 935 --)
cannam@154 936 ac_dashdash=yes ;;
cannam@154 937
cannam@154 938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
cannam@154 939 ac_prev=bindir ;;
cannam@154 940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
cannam@154 941 bindir=$ac_optarg ;;
cannam@154 942
cannam@154 943 -build | --build | --buil | --bui | --bu)
cannam@154 944 ac_prev=build_alias ;;
cannam@154 945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
cannam@154 946 build_alias=$ac_optarg ;;
cannam@154 947
cannam@154 948 -cache-file | --cache-file | --cache-fil | --cache-fi \
cannam@154 949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
cannam@154 950 ac_prev=cache_file ;;
cannam@154 951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
cannam@154 952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
cannam@154 953 cache_file=$ac_optarg ;;
cannam@154 954
cannam@154 955 --config-cache | -C)
cannam@154 956 cache_file=config.cache ;;
cannam@154 957
cannam@154 958 -datadir | --datadir | --datadi | --datad)
cannam@154 959 ac_prev=datadir ;;
cannam@154 960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
cannam@154 961 datadir=$ac_optarg ;;
cannam@154 962
cannam@154 963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
cannam@154 964 | --dataroo | --dataro | --datar)
cannam@154 965 ac_prev=datarootdir ;;
cannam@154 966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
cannam@154 967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
cannam@154 968 datarootdir=$ac_optarg ;;
cannam@154 969
cannam@154 970 -disable-* | --disable-*)
cannam@154 971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
cannam@154 972 # Reject names that are not valid shell variable names.
cannam@154 973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@154 974 as_fn_error $? "invalid feature name: $ac_useropt"
cannam@154 975 ac_useropt_orig=$ac_useropt
cannam@154 976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@154 977 case $ac_user_opts in
cannam@154 978 *"
cannam@154 979 "enable_$ac_useropt"
cannam@154 980 "*) ;;
cannam@154 981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
cannam@154 982 ac_unrecognized_sep=', ';;
cannam@154 983 esac
cannam@154 984 eval enable_$ac_useropt=no ;;
cannam@154 985
cannam@154 986 -docdir | --docdir | --docdi | --doc | --do)
cannam@154 987 ac_prev=docdir ;;
cannam@154 988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
cannam@154 989 docdir=$ac_optarg ;;
cannam@154 990
cannam@154 991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
cannam@154 992 ac_prev=dvidir ;;
cannam@154 993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
cannam@154 994 dvidir=$ac_optarg ;;
cannam@154 995
cannam@154 996 -enable-* | --enable-*)
cannam@154 997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
cannam@154 998 # Reject names that are not valid shell variable names.
cannam@154 999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@154 1000 as_fn_error $? "invalid feature name: $ac_useropt"
cannam@154 1001 ac_useropt_orig=$ac_useropt
cannam@154 1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@154 1003 case $ac_user_opts in
cannam@154 1004 *"
cannam@154 1005 "enable_$ac_useropt"
cannam@154 1006 "*) ;;
cannam@154 1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
cannam@154 1008 ac_unrecognized_sep=', ';;
cannam@154 1009 esac
cannam@154 1010 eval enable_$ac_useropt=\$ac_optarg ;;
cannam@154 1011
cannam@154 1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
cannam@154 1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
cannam@154 1014 | --exec | --exe | --ex)
cannam@154 1015 ac_prev=exec_prefix ;;
cannam@154 1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
cannam@154 1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
cannam@154 1018 | --exec=* | --exe=* | --ex=*)
cannam@154 1019 exec_prefix=$ac_optarg ;;
cannam@154 1020
cannam@154 1021 -gas | --gas | --ga | --g)
cannam@154 1022 # Obsolete; use --with-gas.
cannam@154 1023 with_gas=yes ;;
cannam@154 1024
cannam@154 1025 -help | --help | --hel | --he | -h)
cannam@154 1026 ac_init_help=long ;;
cannam@154 1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
cannam@154 1028 ac_init_help=recursive ;;
cannam@154 1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
cannam@154 1030 ac_init_help=short ;;
cannam@154 1031
cannam@154 1032 -host | --host | --hos | --ho)
cannam@154 1033 ac_prev=host_alias ;;
cannam@154 1034 -host=* | --host=* | --hos=* | --ho=*)
cannam@154 1035 host_alias=$ac_optarg ;;
cannam@154 1036
cannam@154 1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
cannam@154 1038 ac_prev=htmldir ;;
cannam@154 1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
cannam@154 1040 | --ht=*)
cannam@154 1041 htmldir=$ac_optarg ;;
cannam@154 1042
cannam@154 1043 -includedir | --includedir | --includedi | --included | --include \
cannam@154 1044 | --includ | --inclu | --incl | --inc)
cannam@154 1045 ac_prev=includedir ;;
cannam@154 1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
cannam@154 1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
cannam@154 1048 includedir=$ac_optarg ;;
cannam@154 1049
cannam@154 1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
cannam@154 1051 ac_prev=infodir ;;
cannam@154 1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
cannam@154 1053 infodir=$ac_optarg ;;
cannam@154 1054
cannam@154 1055 -libdir | --libdir | --libdi | --libd)
cannam@154 1056 ac_prev=libdir ;;
cannam@154 1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
cannam@154 1058 libdir=$ac_optarg ;;
cannam@154 1059
cannam@154 1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
cannam@154 1061 | --libexe | --libex | --libe)
cannam@154 1062 ac_prev=libexecdir ;;
cannam@154 1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
cannam@154 1064 | --libexe=* | --libex=* | --libe=*)
cannam@154 1065 libexecdir=$ac_optarg ;;
cannam@154 1066
cannam@154 1067 -localedir | --localedir | --localedi | --localed | --locale)
cannam@154 1068 ac_prev=localedir ;;
cannam@154 1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
cannam@154 1070 localedir=$ac_optarg ;;
cannam@154 1071
cannam@154 1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
cannam@154 1073 | --localstate | --localstat | --localsta | --localst | --locals)
cannam@154 1074 ac_prev=localstatedir ;;
cannam@154 1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cannam@154 1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
cannam@154 1077 localstatedir=$ac_optarg ;;
cannam@154 1078
cannam@154 1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
cannam@154 1080 ac_prev=mandir ;;
cannam@154 1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
cannam@154 1082 mandir=$ac_optarg ;;
cannam@154 1083
cannam@154 1084 -nfp | --nfp | --nf)
cannam@154 1085 # Obsolete; use --without-fp.
cannam@154 1086 with_fp=no ;;
cannam@154 1087
cannam@154 1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
cannam@154 1089 | --no-cr | --no-c | -n)
cannam@154 1090 no_create=yes ;;
cannam@154 1091
cannam@154 1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
cannam@154 1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
cannam@154 1094 no_recursion=yes ;;
cannam@154 1095
cannam@154 1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
cannam@154 1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
cannam@154 1098 | --oldin | --oldi | --old | --ol | --o)
cannam@154 1099 ac_prev=oldincludedir ;;
cannam@154 1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
cannam@154 1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
cannam@154 1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
cannam@154 1103 oldincludedir=$ac_optarg ;;
cannam@154 1104
cannam@154 1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
cannam@154 1106 ac_prev=prefix ;;
cannam@154 1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
cannam@154 1108 prefix=$ac_optarg ;;
cannam@154 1109
cannam@154 1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
cannam@154 1111 | --program-pre | --program-pr | --program-p)
cannam@154 1112 ac_prev=program_prefix ;;
cannam@154 1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
cannam@154 1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
cannam@154 1115 program_prefix=$ac_optarg ;;
cannam@154 1116
cannam@154 1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
cannam@154 1118 | --program-suf | --program-su | --program-s)
cannam@154 1119 ac_prev=program_suffix ;;
cannam@154 1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
cannam@154 1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
cannam@154 1122 program_suffix=$ac_optarg ;;
cannam@154 1123
cannam@154 1124 -program-transform-name | --program-transform-name \
cannam@154 1125 | --program-transform-nam | --program-transform-na \
cannam@154 1126 | --program-transform-n | --program-transform- \
cannam@154 1127 | --program-transform | --program-transfor \
cannam@154 1128 | --program-transfo | --program-transf \
cannam@154 1129 | --program-trans | --program-tran \
cannam@154 1130 | --progr-tra | --program-tr | --program-t)
cannam@154 1131 ac_prev=program_transform_name ;;
cannam@154 1132 -program-transform-name=* | --program-transform-name=* \
cannam@154 1133 | --program-transform-nam=* | --program-transform-na=* \
cannam@154 1134 | --program-transform-n=* | --program-transform-=* \
cannam@154 1135 | --program-transform=* | --program-transfor=* \
cannam@154 1136 | --program-transfo=* | --program-transf=* \
cannam@154 1137 | --program-trans=* | --program-tran=* \
cannam@154 1138 | --progr-tra=* | --program-tr=* | --program-t=*)
cannam@154 1139 program_transform_name=$ac_optarg ;;
cannam@154 1140
cannam@154 1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
cannam@154 1142 ac_prev=pdfdir ;;
cannam@154 1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
cannam@154 1144 pdfdir=$ac_optarg ;;
cannam@154 1145
cannam@154 1146 -psdir | --psdir | --psdi | --psd | --ps)
cannam@154 1147 ac_prev=psdir ;;
cannam@154 1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
cannam@154 1149 psdir=$ac_optarg ;;
cannam@154 1150
cannam@154 1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@154 1152 | -silent | --silent | --silen | --sile | --sil)
cannam@154 1153 silent=yes ;;
cannam@154 1154
cannam@154 1155 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
cannam@154 1156 ac_prev=sbindir ;;
cannam@154 1157 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
cannam@154 1158 | --sbi=* | --sb=*)
cannam@154 1159 sbindir=$ac_optarg ;;
cannam@154 1160
cannam@154 1161 -sharedstatedir | --sharedstatedir | --sharedstatedi \
cannam@154 1162 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
cannam@154 1163 | --sharedst | --shareds | --shared | --share | --shar \
cannam@154 1164 | --sha | --sh)
cannam@154 1165 ac_prev=sharedstatedir ;;
cannam@154 1166 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
cannam@154 1167 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
cannam@154 1168 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
cannam@154 1169 | --sha=* | --sh=*)
cannam@154 1170 sharedstatedir=$ac_optarg ;;
cannam@154 1171
cannam@154 1172 -site | --site | --sit)
cannam@154 1173 ac_prev=site ;;
cannam@154 1174 -site=* | --site=* | --sit=*)
cannam@154 1175 site=$ac_optarg ;;
cannam@154 1176
cannam@154 1177 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
cannam@154 1178 ac_prev=srcdir ;;
cannam@154 1179 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
cannam@154 1180 srcdir=$ac_optarg ;;
cannam@154 1181
cannam@154 1182 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
cannam@154 1183 | --syscon | --sysco | --sysc | --sys | --sy)
cannam@154 1184 ac_prev=sysconfdir ;;
cannam@154 1185 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
cannam@154 1186 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
cannam@154 1187 sysconfdir=$ac_optarg ;;
cannam@154 1188
cannam@154 1189 -target | --target | --targe | --targ | --tar | --ta | --t)
cannam@154 1190 ac_prev=target_alias ;;
cannam@154 1191 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
cannam@154 1192 target_alias=$ac_optarg ;;
cannam@154 1193
cannam@154 1194 -v | -verbose | --verbose | --verbos | --verbo | --verb)
cannam@154 1195 verbose=yes ;;
cannam@154 1196
cannam@154 1197 -version | --version | --versio | --versi | --vers | -V)
cannam@154 1198 ac_init_version=: ;;
cannam@154 1199
cannam@154 1200 -with-* | --with-*)
cannam@154 1201 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
cannam@154 1202 # Reject names that are not valid shell variable names.
cannam@154 1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@154 1204 as_fn_error $? "invalid package name: $ac_useropt"
cannam@154 1205 ac_useropt_orig=$ac_useropt
cannam@154 1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@154 1207 case $ac_user_opts in
cannam@154 1208 *"
cannam@154 1209 "with_$ac_useropt"
cannam@154 1210 "*) ;;
cannam@154 1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
cannam@154 1212 ac_unrecognized_sep=', ';;
cannam@154 1213 esac
cannam@154 1214 eval with_$ac_useropt=\$ac_optarg ;;
cannam@154 1215
cannam@154 1216 -without-* | --without-*)
cannam@154 1217 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
cannam@154 1218 # Reject names that are not valid shell variable names.
cannam@154 1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@154 1220 as_fn_error $? "invalid package name: $ac_useropt"
cannam@154 1221 ac_useropt_orig=$ac_useropt
cannam@154 1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@154 1223 case $ac_user_opts in
cannam@154 1224 *"
cannam@154 1225 "with_$ac_useropt"
cannam@154 1226 "*) ;;
cannam@154 1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
cannam@154 1228 ac_unrecognized_sep=', ';;
cannam@154 1229 esac
cannam@154 1230 eval with_$ac_useropt=no ;;
cannam@154 1231
cannam@154 1232 --x)
cannam@154 1233 # Obsolete; use --with-x.
cannam@154 1234 with_x=yes ;;
cannam@154 1235
cannam@154 1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
cannam@154 1237 | --x-incl | --x-inc | --x-in | --x-i)
cannam@154 1238 ac_prev=x_includes ;;
cannam@154 1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
cannam@154 1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
cannam@154 1241 x_includes=$ac_optarg ;;
cannam@154 1242
cannam@154 1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
cannam@154 1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
cannam@154 1245 ac_prev=x_libraries ;;
cannam@154 1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
cannam@154 1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
cannam@154 1248 x_libraries=$ac_optarg ;;
cannam@154 1249
cannam@154 1250 -*) as_fn_error $? "unrecognized option: \`$ac_option'
cannam@154 1251 Try \`$0 --help' for more information"
cannam@154 1252 ;;
cannam@154 1253
cannam@154 1254 *=*)
cannam@154 1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
cannam@154 1256 # Reject names that are not valid shell variable names.
cannam@154 1257 case $ac_envvar in #(
cannam@154 1258 '' | [0-9]* | *[!_$as_cr_alnum]* )
cannam@154 1259 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cannam@154 1260 esac
cannam@154 1261 eval $ac_envvar=\$ac_optarg
cannam@154 1262 export $ac_envvar ;;
cannam@154 1263
cannam@154 1264 *)
cannam@154 1265 # FIXME: should be removed in autoconf 3.0.
cannam@154 1266 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
cannam@154 1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
cannam@154 1268 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cannam@154 1269 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cannam@154 1270 ;;
cannam@154 1271
cannam@154 1272 esac
cannam@154 1273 done
cannam@154 1274
cannam@154 1275 if test -n "$ac_prev"; then
cannam@154 1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cannam@154 1277 as_fn_error $? "missing argument to $ac_option"
cannam@154 1278 fi
cannam@154 1279
cannam@154 1280 if test -n "$ac_unrecognized_opts"; then
cannam@154 1281 case $enable_option_checking in
cannam@154 1282 no) ;;
cannam@154 1283 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cannam@154 1284 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
cannam@154 1285 esac
cannam@154 1286 fi
cannam@154 1287
cannam@154 1288 # Check all directory arguments for consistency.
cannam@154 1289 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
cannam@154 1290 datadir sysconfdir sharedstatedir localstatedir includedir \
cannam@154 1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
cannam@154 1292 libdir localedir mandir
cannam@154 1293 do
cannam@154 1294 eval ac_val=\$$ac_var
cannam@154 1295 # Remove trailing slashes.
cannam@154 1296 case $ac_val in
cannam@154 1297 */ )
cannam@154 1298 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
cannam@154 1299 eval $ac_var=\$ac_val;;
cannam@154 1300 esac
cannam@154 1301 # Be sure to have absolute directory names.
cannam@154 1302 case $ac_val in
cannam@154 1303 [\\/$]* | ?:[\\/]* ) continue;;
cannam@154 1304 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
cannam@154 1305 esac
cannam@154 1306 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cannam@154 1307 done
cannam@154 1308
cannam@154 1309 # There might be people who depend on the old broken behavior: `$host'
cannam@154 1310 # used to hold the argument of --host etc.
cannam@154 1311 # FIXME: To remove some day.
cannam@154 1312 build=$build_alias
cannam@154 1313 host=$host_alias
cannam@154 1314 target=$target_alias
cannam@154 1315
cannam@154 1316 # FIXME: To remove some day.
cannam@154 1317 if test "x$host_alias" != x; then
cannam@154 1318 if test "x$build_alias" = x; then
cannam@154 1319 cross_compiling=maybe
cannam@154 1320 elif test "x$build_alias" != "x$host_alias"; then
cannam@154 1321 cross_compiling=yes
cannam@154 1322 fi
cannam@154 1323 fi
cannam@154 1324
cannam@154 1325 ac_tool_prefix=
cannam@154 1326 test -n "$host_alias" && ac_tool_prefix=$host_alias-
cannam@154 1327
cannam@154 1328 test "$silent" = yes && exec 6>/dev/null
cannam@154 1329
cannam@154 1330
cannam@154 1331 ac_pwd=`pwd` && test -n "$ac_pwd" &&
cannam@154 1332 ac_ls_di=`ls -di .` &&
cannam@154 1333 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cannam@154 1334 as_fn_error $? "working directory cannot be determined"
cannam@154 1335 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cannam@154 1336 as_fn_error $? "pwd does not report name of working directory"
cannam@154 1337
cannam@154 1338
cannam@154 1339 # Find the source files, if location was not specified.
cannam@154 1340 if test -z "$srcdir"; then
cannam@154 1341 ac_srcdir_defaulted=yes
cannam@154 1342 # Try the directory containing this script, then the parent directory.
cannam@154 1343 ac_confdir=`$as_dirname -- "$as_myself" ||
cannam@154 1344 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@154 1345 X"$as_myself" : 'X\(//\)[^/]' \| \
cannam@154 1346 X"$as_myself" : 'X\(//\)$' \| \
cannam@154 1347 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
cannam@154 1348 $as_echo X"$as_myself" |
cannam@154 1349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@154 1350 s//\1/
cannam@154 1351 q
cannam@154 1352 }
cannam@154 1353 /^X\(\/\/\)[^/].*/{
cannam@154 1354 s//\1/
cannam@154 1355 q
cannam@154 1356 }
cannam@154 1357 /^X\(\/\/\)$/{
cannam@154 1358 s//\1/
cannam@154 1359 q
cannam@154 1360 }
cannam@154 1361 /^X\(\/\).*/{
cannam@154 1362 s//\1/
cannam@154 1363 q
cannam@154 1364 }
cannam@154 1365 s/.*/./; q'`
cannam@154 1366 srcdir=$ac_confdir
cannam@154 1367 if test ! -r "$srcdir/$ac_unique_file"; then
cannam@154 1368 srcdir=..
cannam@154 1369 fi
cannam@154 1370 else
cannam@154 1371 ac_srcdir_defaulted=no
cannam@154 1372 fi
cannam@154 1373 if test ! -r "$srcdir/$ac_unique_file"; then
cannam@154 1374 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cannam@154 1375 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cannam@154 1376 fi
cannam@154 1377 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
cannam@154 1378 ac_abs_confdir=`(
cannam@154 1379 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cannam@154 1380 pwd)`
cannam@154 1381 # When building in place, set srcdir=.
cannam@154 1382 if test "$ac_abs_confdir" = "$ac_pwd"; then
cannam@154 1383 srcdir=.
cannam@154 1384 fi
cannam@154 1385 # Remove unnecessary trailing slashes from srcdir.
cannam@154 1386 # Double slashes in file names in object file debugging info
cannam@154 1387 # mess up M-x gdb in Emacs.
cannam@154 1388 case $srcdir in
cannam@154 1389 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
cannam@154 1390 esac
cannam@154 1391 for ac_var in $ac_precious_vars; do
cannam@154 1392 eval ac_env_${ac_var}_set=\${${ac_var}+set}
cannam@154 1393 eval ac_env_${ac_var}_value=\$${ac_var}
cannam@154 1394 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
cannam@154 1395 eval ac_cv_env_${ac_var}_value=\$${ac_var}
cannam@154 1396 done
cannam@154 1397
cannam@154 1398 #
cannam@154 1399 # Report the --help message.
cannam@154 1400 #
cannam@154 1401 if test "$ac_init_help" = "long"; then
cannam@154 1402 # Omit some internal or obsolete options to make the list less imposing.
cannam@154 1403 # This message is too long to be a string in the A/UX 3.1 sh.
cannam@154 1404 cat <<_ACEOF
cannam@154 1405 \`configure' configures opus 1.3 to adapt to many kinds of systems.
cannam@154 1406
cannam@154 1407 Usage: $0 [OPTION]... [VAR=VALUE]...
cannam@154 1408
cannam@154 1409 To assign environment variables (e.g., CC, CFLAGS...), specify them as
cannam@154 1410 VAR=VALUE. See below for descriptions of some of the useful variables.
cannam@154 1411
cannam@154 1412 Defaults for the options are specified in brackets.
cannam@154 1413
cannam@154 1414 Configuration:
cannam@154 1415 -h, --help display this help and exit
cannam@154 1416 --help=short display options specific to this package
cannam@154 1417 --help=recursive display the short help of all the included packages
cannam@154 1418 -V, --version display version information and exit
cannam@154 1419 -q, --quiet, --silent do not print \`checking ...' messages
cannam@154 1420 --cache-file=FILE cache test results in FILE [disabled]
cannam@154 1421 -C, --config-cache alias for \`--cache-file=config.cache'
cannam@154 1422 -n, --no-create do not create output files
cannam@154 1423 --srcdir=DIR find the sources in DIR [configure dir or \`..']
cannam@154 1424
cannam@154 1425 Installation directories:
cannam@154 1426 --prefix=PREFIX install architecture-independent files in PREFIX
cannam@154 1427 [$ac_default_prefix]
cannam@154 1428 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
cannam@154 1429 [PREFIX]
cannam@154 1430
cannam@154 1431 By default, \`make install' will install all the files in
cannam@154 1432 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
cannam@154 1433 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
cannam@154 1434 for instance \`--prefix=\$HOME'.
cannam@154 1435
cannam@154 1436 For better control, use the options below.
cannam@154 1437
cannam@154 1438 Fine tuning of the installation directories:
cannam@154 1439 --bindir=DIR user executables [EPREFIX/bin]
cannam@154 1440 --sbindir=DIR system admin executables [EPREFIX/sbin]
cannam@154 1441 --libexecdir=DIR program executables [EPREFIX/libexec]
cannam@154 1442 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
cannam@154 1443 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
cannam@154 1444 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
cannam@154 1445 --libdir=DIR object code libraries [EPREFIX/lib]
cannam@154 1446 --includedir=DIR C header files [PREFIX/include]
cannam@154 1447 --oldincludedir=DIR C header files for non-gcc [/usr/include]
cannam@154 1448 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
cannam@154 1449 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
cannam@154 1450 --infodir=DIR info documentation [DATAROOTDIR/info]
cannam@154 1451 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
cannam@154 1452 --mandir=DIR man documentation [DATAROOTDIR/man]
cannam@154 1453 --docdir=DIR documentation root [DATAROOTDIR/doc/opus]
cannam@154 1454 --htmldir=DIR html documentation [DOCDIR]
cannam@154 1455 --dvidir=DIR dvi documentation [DOCDIR]
cannam@154 1456 --pdfdir=DIR pdf documentation [DOCDIR]
cannam@154 1457 --psdir=DIR ps documentation [DOCDIR]
cannam@154 1458 _ACEOF
cannam@154 1459
cannam@154 1460 cat <<\_ACEOF
cannam@154 1461
cannam@154 1462 Program names:
cannam@154 1463 --program-prefix=PREFIX prepend PREFIX to installed program names
cannam@154 1464 --program-suffix=SUFFIX append SUFFIX to installed program names
cannam@154 1465 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
cannam@154 1466
cannam@154 1467 System types:
cannam@154 1468 --build=BUILD configure for building on BUILD [guessed]
cannam@154 1469 --host=HOST cross-compile to build programs to run on HOST [BUILD]
cannam@154 1470 _ACEOF
cannam@154 1471 fi
cannam@154 1472
cannam@154 1473 if test -n "$ac_init_help"; then
cannam@154 1474 case $ac_init_help in
cannam@154 1475 short | recursive ) echo "Configuration of opus 1.3:";;
cannam@154 1476 esac
cannam@154 1477 cat <<\_ACEOF
cannam@154 1478
cannam@154 1479 Optional Features:
cannam@154 1480 --disable-option-checking ignore unrecognized --enable/--with options
cannam@154 1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
cannam@154 1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cannam@154 1483 --enable-silent-rules less verbose build output (undo: "make V=1")
cannam@154 1484 --disable-silent-rules verbose build output (undo: "make V=0")
cannam@154 1485 --disable-maintainer-mode
cannam@154 1486 disable make rules and dependencies not useful (and
cannam@154 1487 sometimes confusing) to the casual installer
cannam@154 1488 --enable-shared[=PKGS] build shared libraries [default=yes]
cannam@154 1489 --enable-static[=PKGS] build static libraries [default=yes]
cannam@154 1490 --enable-fast-install[=PKGS]
cannam@154 1491 optimize for fast installation [default=yes]
cannam@154 1492 --enable-dependency-tracking
cannam@154 1493 do not reject slow dependency extractors
cannam@154 1494 --disable-dependency-tracking
cannam@154 1495 speeds up one-time build
cannam@154 1496 --disable-libtool-lock avoid locking (might break parallel builds)
cannam@154 1497 --enable-fixed-point compile without floating point (for machines without
cannam@154 1498 a fast enough FPU)
cannam@154 1499 --enable-fixed-point-debug
cannam@154 1500 debug fixed-point implementation
cannam@154 1501 --disable-float-api compile without the floating point API (for machines
cannam@154 1502 with no float library)
cannam@154 1503 --enable-custom-modes enable non-Opus modes, e.g. 44.1 kHz & 2^n frames
cannam@154 1504 --enable-float-approx enable fast approximations for floating point
cannam@154 1505 --disable-asm Disable assembly optimizations
cannam@154 1506 --disable-rtcd Disable run-time CPU capabilities detection
cannam@154 1507 --disable-intrinsics Disable intrinsics optimizations
cannam@154 1508 --enable-assertions enable additional software error checking
cannam@154 1509 --disable-hardening disable run-time checks that are cheap and safe for
cannam@154 1510 use in production
cannam@154 1511 --enable-fuzzing causes the encoder to make random decisions (do not
cannam@154 1512 use in production)
cannam@154 1513 --enable-check-asm enable bit-exactness checks between optimized and c
cannam@154 1514 implementations
cannam@154 1515 --disable-doc Do not build API documentation
cannam@154 1516 --disable-extra-programs
cannam@154 1517 Do not build extra programs (demo and tests)
cannam@154 1518 --disable-rfc8251 Disable bitstream fixes from RFC 8251
cannam@154 1519 --disable-stack-protector
cannam@154 1520 Disable compiler stack hardening
cannam@154 1521
cannam@154 1522 Optional Packages:
cannam@154 1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
cannam@154 1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cannam@154 1525 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cannam@154 1526 both]
cannam@154 1527 --with-aix-soname=aix|svr4|both
cannam@154 1528 shared library versioning (aka "SONAME") variant to
cannam@154 1529 provide on AIX, [default=aix].
cannam@154 1530 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cannam@154 1531 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
cannam@154 1532 compiler's sysroot if not specified).
cannam@154 1533 --with-NE10=PFX Prefix where libNE10 is installed (optional)
cannam@154 1534 --with-NE10-libraries=DIR
cannam@154 1535 Directory where libNE10 library is installed
cannam@154 1536 (optional)
cannam@154 1537 --with-NE10-includes=DIR
cannam@154 1538 Directory where libNE10 header files are installed
cannam@154 1539 (optional)
cannam@154 1540
cannam@154 1541 Some influential environment variables:
cannam@154 1542 CC C compiler command
cannam@154 1543 CFLAGS C compiler flags
cannam@154 1544 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
cannam@154 1545 nonstandard directory <lib dir>
cannam@154 1546 LIBS libraries to pass to the linker, e.g. -l<library>
cannam@154 1547 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cannam@154 1548 you have headers in a nonstandard directory <include dir>
cannam@154 1549 LT_SYS_LIBRARY_PATH
cannam@154 1550 User-defined run-time library search path.
cannam@154 1551 CPP C preprocessor
cannam@154 1552 CCAS assembler compiler command (defaults to CC)
cannam@154 1553 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
cannam@154 1554 X86_SSE_CFLAGS
cannam@154 1555 C compiler flags to compile SSE intrinsics [default=-msse]
cannam@154 1556 X86_SSE2_CFLAGS
cannam@154 1557 C compiler flags to compile SSE2 intrinsics [default=-msse2]
cannam@154 1558 X86_SSE4_1_CFLAGS
cannam@154 1559 C compiler flags to compile SSE4.1 intrinsics [default=-msse4.1]
cannam@154 1560 X86_AVX_CFLAGS
cannam@154 1561 C compiler flags to compile AVX intrinsics [default=-mavx]
cannam@154 1562 ARM_NEON_INTR_CFLAGS
cannam@154 1563 C compiler flags to compile ARM NEON intrinsics
cannam@154 1564 [default=-mfpu=neon / -mfpu=neon -mfloat-abi=softfp]
cannam@154 1565
cannam@154 1566 Use these variables to override the choices made by `configure' or to help
cannam@154 1567 it to find libraries and programs with nonstandard names/locations.
cannam@154 1568
cannam@154 1569 Report bugs to <opus@xiph.org>.
cannam@154 1570 _ACEOF
cannam@154 1571 ac_status=$?
cannam@154 1572 fi
cannam@154 1573
cannam@154 1574 if test "$ac_init_help" = "recursive"; then
cannam@154 1575 # If there are subdirs, report their specific --help.
cannam@154 1576 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
cannam@154 1577 test -d "$ac_dir" ||
cannam@154 1578 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
cannam@154 1579 continue
cannam@154 1580 ac_builddir=.
cannam@154 1581
cannam@154 1582 case "$ac_dir" in
cannam@154 1583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@154 1584 *)
cannam@154 1585 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
cannam@154 1586 # A ".." for each directory in $ac_dir_suffix.
cannam@154 1587 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
cannam@154 1588 case $ac_top_builddir_sub in
cannam@154 1589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@154 1590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
cannam@154 1591 esac ;;
cannam@154 1592 esac
cannam@154 1593 ac_abs_top_builddir=$ac_pwd
cannam@154 1594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
cannam@154 1595 # for backward compatibility:
cannam@154 1596 ac_top_builddir=$ac_top_build_prefix
cannam@154 1597
cannam@154 1598 case $srcdir in
cannam@154 1599 .) # We are building in place.
cannam@154 1600 ac_srcdir=.
cannam@154 1601 ac_top_srcdir=$ac_top_builddir_sub
cannam@154 1602 ac_abs_top_srcdir=$ac_pwd ;;
cannam@154 1603 [\\/]* | ?:[\\/]* ) # Absolute name.
cannam@154 1604 ac_srcdir=$srcdir$ac_dir_suffix;
cannam@154 1605 ac_top_srcdir=$srcdir
cannam@154 1606 ac_abs_top_srcdir=$srcdir ;;
cannam@154 1607 *) # Relative name.
cannam@154 1608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
cannam@154 1609 ac_top_srcdir=$ac_top_build_prefix$srcdir
cannam@154 1610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
cannam@154 1611 esac
cannam@154 1612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
cannam@154 1613
cannam@154 1614 cd "$ac_dir" || { ac_status=$?; continue; }
cannam@154 1615 # Check for guested configure.
cannam@154 1616 if test -f "$ac_srcdir/configure.gnu"; then
cannam@154 1617 echo &&
cannam@154 1618 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
cannam@154 1619 elif test -f "$ac_srcdir/configure"; then
cannam@154 1620 echo &&
cannam@154 1621 $SHELL "$ac_srcdir/configure" --help=recursive
cannam@154 1622 else
cannam@154 1623 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
cannam@154 1624 fi || ac_status=$?
cannam@154 1625 cd "$ac_pwd" || { ac_status=$?; break; }
cannam@154 1626 done
cannam@154 1627 fi
cannam@154 1628
cannam@154 1629 test -n "$ac_init_help" && exit $ac_status
cannam@154 1630 if $ac_init_version; then
cannam@154 1631 cat <<\_ACEOF
cannam@154 1632 opus configure 1.3
cannam@154 1633 generated by GNU Autoconf 2.69
cannam@154 1634
cannam@154 1635 Copyright (C) 2012 Free Software Foundation, Inc.
cannam@154 1636 This configure script is free software; the Free Software Foundation
cannam@154 1637 gives unlimited permission to copy, distribute and modify it.
cannam@154 1638 _ACEOF
cannam@154 1639 exit
cannam@154 1640 fi
cannam@154 1641
cannam@154 1642 ## ------------------------ ##
cannam@154 1643 ## Autoconf initialization. ##
cannam@154 1644 ## ------------------------ ##
cannam@154 1645
cannam@154 1646 # ac_fn_c_try_compile LINENO
cannam@154 1647 # --------------------------
cannam@154 1648 # Try to compile conftest.$ac_ext, and return whether this succeeded.
cannam@154 1649 ac_fn_c_try_compile ()
cannam@154 1650 {
cannam@154 1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@154 1652 rm -f conftest.$ac_objext
cannam@154 1653 if { { ac_try="$ac_compile"
cannam@154 1654 case "(($ac_try" in
cannam@154 1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@154 1656 *) ac_try_echo=$ac_try;;
cannam@154 1657 esac
cannam@154 1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@154 1659 $as_echo "$ac_try_echo"; } >&5
cannam@154 1660 (eval "$ac_compile") 2>conftest.err
cannam@154 1661 ac_status=$?
cannam@154 1662 if test -s conftest.err; then
cannam@154 1663 grep -v '^ *+' conftest.err >conftest.er1
cannam@154 1664 cat conftest.er1 >&5
cannam@154 1665 mv -f conftest.er1 conftest.err
cannam@154 1666 fi
cannam@154 1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@154 1668 test $ac_status = 0; } && {
cannam@154 1669 test -z "$ac_c_werror_flag" ||
cannam@154 1670 test ! -s conftest.err
cannam@154 1671 } && test -s conftest.$ac_objext; then :
cannam@154 1672 ac_retval=0
cannam@154 1673 else
cannam@154 1674 $as_echo "$as_me: failed program was:" >&5
cannam@154 1675 sed 's/^/| /' conftest.$ac_ext >&5
cannam@154 1676
cannam@154 1677 ac_retval=1
cannam@154 1678 fi
cannam@154 1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@154 1680 as_fn_set_status $ac_retval
cannam@154 1681
cannam@154 1682 } # ac_fn_c_try_compile
cannam@154 1683
cannam@154 1684 # ac_fn_c_try_link LINENO
cannam@154 1685 # -----------------------
cannam@154 1686 # Try to link conftest.$ac_ext, and return whether this succeeded.
cannam@154 1687 ac_fn_c_try_link ()
cannam@154 1688 {
cannam@154 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@154 1690 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@154 1691 if { { ac_try="$ac_link"
cannam@154 1692 case "(($ac_try" in
cannam@154 1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@154 1694 *) ac_try_echo=$ac_try;;
cannam@154 1695 esac
cannam@154 1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@154 1697 $as_echo "$ac_try_echo"; } >&5
cannam@154 1698 (eval "$ac_link") 2>conftest.err
cannam@154 1699 ac_status=$?
cannam@154 1700 if test -s conftest.err; then
cannam@154 1701 grep -v '^ *+' conftest.err >conftest.er1
cannam@154 1702 cat conftest.er1 >&5
cannam@154 1703 mv -f conftest.er1 conftest.err
cannam@154 1704 fi
cannam@154 1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@154 1706 test $ac_status = 0; } && {
cannam@154 1707 test -z "$ac_c_werror_flag" ||
cannam@154 1708 test ! -s conftest.err
cannam@154 1709 } && test -s conftest$ac_exeext && {
cannam@154 1710 test "$cross_compiling" = yes ||
cannam@154 1711 test -x conftest$ac_exeext
cannam@154 1712 }; then :
cannam@154 1713 ac_retval=0
cannam@154 1714 else
cannam@154 1715 $as_echo "$as_me: failed program was:" >&5
cannam@154 1716 sed 's/^/| /' conftest.$ac_ext >&5
cannam@154 1717
cannam@154 1718 ac_retval=1
cannam@154 1719 fi
cannam@154 1720 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
cannam@154 1721 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
cannam@154 1722 # interfere with the next link command; also delete a directory that is
cannam@154 1723 # left behind by Apple's compiler. We do this before executing the actions.
cannam@154 1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cannam@154 1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@154 1726 as_fn_set_status $ac_retval
cannam@154 1727
cannam@154 1728 } # ac_fn_c_try_link
cannam@154 1729
cannam@154 1730 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
cannam@154 1731 # -------------------------------------------------------
cannam@154 1732 # Tests whether HEADER exists and can be compiled using the include files in
cannam@154 1733 # INCLUDES, setting the cache variable VAR accordingly.
cannam@154 1734 ac_fn_c_check_header_compile ()
cannam@154 1735 {
cannam@154 1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@154 1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@154 1738 $as_echo_n "checking for $2... " >&6; }
cannam@154 1739 if eval \${$3+:} false; then :
cannam@154 1740 $as_echo_n "(cached) " >&6
cannam@154 1741 else
cannam@154 1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 1743 /* end confdefs.h. */
cannam@154 1744 $4
cannam@154 1745 #include <$2>
cannam@154 1746 _ACEOF
cannam@154 1747 if ac_fn_c_try_compile "$LINENO"; then :
cannam@154 1748 eval "$3=yes"
cannam@154 1749 else
cannam@154 1750 eval "$3=no"
cannam@154 1751 fi
cannam@154 1752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@154 1753 fi
cannam@154 1754 eval ac_res=\$$3
cannam@154 1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@154 1756 $as_echo "$ac_res" >&6; }
cannam@154 1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@154 1758
cannam@154 1759 } # ac_fn_c_check_header_compile
cannam@154 1760
cannam@154 1761 # ac_fn_c_try_cpp LINENO
cannam@154 1762 # ----------------------
cannam@154 1763 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
cannam@154 1764 ac_fn_c_try_cpp ()
cannam@154 1765 {
cannam@154 1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@154 1767 if { { ac_try="$ac_cpp conftest.$ac_ext"
cannam@154 1768 case "(($ac_try" in
cannam@154 1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@154 1770 *) ac_try_echo=$ac_try;;
cannam@154 1771 esac
cannam@154 1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@154 1773 $as_echo "$ac_try_echo"; } >&5
cannam@154 1774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
cannam@154 1775 ac_status=$?
cannam@154 1776 if test -s conftest.err; then
cannam@154 1777 grep -v '^ *+' conftest.err >conftest.er1
cannam@154 1778 cat conftest.er1 >&5
cannam@154 1779 mv -f conftest.er1 conftest.err
cannam@154 1780 fi
cannam@154 1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@154 1782 test $ac_status = 0; } > conftest.i && {
cannam@154 1783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
cannam@154 1784 test ! -s conftest.err
cannam@154 1785 }; then :
cannam@154 1786 ac_retval=0
cannam@154 1787 else
cannam@154 1788 $as_echo "$as_me: failed program was:" >&5
cannam@154 1789 sed 's/^/| /' conftest.$ac_ext >&5
cannam@154 1790
cannam@154 1791 ac_retval=1
cannam@154 1792 fi
cannam@154 1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@154 1794 as_fn_set_status $ac_retval
cannam@154 1795
cannam@154 1796 } # ac_fn_c_try_cpp
cannam@154 1797
cannam@154 1798 # ac_fn_c_try_run LINENO
cannam@154 1799 # ----------------------
cannam@154 1800 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
cannam@154 1801 # that executables *can* be run.
cannam@154 1802 ac_fn_c_try_run ()
cannam@154 1803 {
cannam@154 1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@154 1805 if { { ac_try="$ac_link"
cannam@154 1806 case "(($ac_try" in
cannam@154 1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@154 1808 *) ac_try_echo=$ac_try;;
cannam@154 1809 esac
cannam@154 1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@154 1811 $as_echo "$ac_try_echo"; } >&5
cannam@154 1812 (eval "$ac_link") 2>&5
cannam@154 1813 ac_status=$?
cannam@154 1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@154 1815 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
cannam@154 1816 { { case "(($ac_try" in
cannam@154 1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@154 1818 *) ac_try_echo=$ac_try;;
cannam@154 1819 esac
cannam@154 1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@154 1821 $as_echo "$ac_try_echo"; } >&5
cannam@154 1822 (eval "$ac_try") 2>&5
cannam@154 1823 ac_status=$?
cannam@154 1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@154 1825 test $ac_status = 0; }; }; then :
cannam@154 1826 ac_retval=0
cannam@154 1827 else
cannam@154 1828 $as_echo "$as_me: program exited with status $ac_status" >&5
cannam@154 1829 $as_echo "$as_me: failed program was:" >&5
cannam@154 1830 sed 's/^/| /' conftest.$ac_ext >&5
cannam@154 1831
cannam@154 1832 ac_retval=$ac_status
cannam@154 1833 fi
cannam@154 1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cannam@154 1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@154 1836 as_fn_set_status $ac_retval
cannam@154 1837
cannam@154 1838 } # ac_fn_c_try_run
cannam@154 1839
cannam@154 1840 # ac_fn_c_check_func LINENO FUNC VAR
cannam@154 1841 # ----------------------------------
cannam@154 1842 # Tests whether FUNC exists, setting the cache variable VAR accordingly
cannam@154 1843 ac_fn_c_check_func ()
cannam@154 1844 {
cannam@154 1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@154 1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@154 1847 $as_echo_n "checking for $2... " >&6; }
cannam@154 1848 if eval \${$3+:} false; then :
cannam@154 1849 $as_echo_n "(cached) " >&6
cannam@154 1850 else
cannam@154 1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 1852 /* end confdefs.h. */
cannam@154 1853 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
cannam@154 1854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
cannam@154 1855 #define $2 innocuous_$2
cannam@154 1856
cannam@154 1857 /* System header to define __stub macros and hopefully few prototypes,
cannam@154 1858 which can conflict with char $2 (); below.
cannam@154 1859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@154 1860 <limits.h> exists even on freestanding compilers. */
cannam@154 1861
cannam@154 1862 #ifdef __STDC__
cannam@154 1863 # include <limits.h>
cannam@154 1864 #else
cannam@154 1865 # include <assert.h>
cannam@154 1866 #endif
cannam@154 1867
cannam@154 1868 #undef $2
cannam@154 1869
cannam@154 1870 /* Override any GCC internal prototype to avoid an error.
cannam@154 1871 Use char because int might match the return type of a GCC
cannam@154 1872 builtin and then its argument prototype would still apply. */
cannam@154 1873 #ifdef __cplusplus
cannam@154 1874 extern "C"
cannam@154 1875 #endif
cannam@154 1876 char $2 ();
cannam@154 1877 /* The GNU C library defines this for functions which it implements
cannam@154 1878 to always fail with ENOSYS. Some functions are actually named
cannam@154 1879 something starting with __ and the normal name is an alias. */
cannam@154 1880 #if defined __stub_$2 || defined __stub___$2
cannam@154 1881 choke me
cannam@154 1882 #endif
cannam@154 1883
cannam@154 1884 int
cannam@154 1885 main ()
cannam@154 1886 {
cannam@154 1887 return $2 ();
cannam@154 1888 ;
cannam@154 1889 return 0;
cannam@154 1890 }
cannam@154 1891 _ACEOF
cannam@154 1892 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 1893 eval "$3=yes"
cannam@154 1894 else
cannam@154 1895 eval "$3=no"
cannam@154 1896 fi
cannam@154 1897 rm -f core conftest.err conftest.$ac_objext \
cannam@154 1898 conftest$ac_exeext conftest.$ac_ext
cannam@154 1899 fi
cannam@154 1900 eval ac_res=\$$3
cannam@154 1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@154 1902 $as_echo "$ac_res" >&6; }
cannam@154 1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@154 1904
cannam@154 1905 } # ac_fn_c_check_func
cannam@154 1906
cannam@154 1907 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
cannam@154 1908 # -------------------------------------------------------
cannam@154 1909 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
cannam@154 1910 # the include files in INCLUDES and setting the cache variable VAR
cannam@154 1911 # accordingly.
cannam@154 1912 ac_fn_c_check_header_mongrel ()
cannam@154 1913 {
cannam@154 1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@154 1915 if eval \${$3+:} false; then :
cannam@154 1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@154 1917 $as_echo_n "checking for $2... " >&6; }
cannam@154 1918 if eval \${$3+:} false; then :
cannam@154 1919 $as_echo_n "(cached) " >&6
cannam@154 1920 fi
cannam@154 1921 eval ac_res=\$$3
cannam@154 1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@154 1923 $as_echo "$ac_res" >&6; }
cannam@154 1924 else
cannam@154 1925 # Is the header compilable?
cannam@154 1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
cannam@154 1927 $as_echo_n "checking $2 usability... " >&6; }
cannam@154 1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 1929 /* end confdefs.h. */
cannam@154 1930 $4
cannam@154 1931 #include <$2>
cannam@154 1932 _ACEOF
cannam@154 1933 if ac_fn_c_try_compile "$LINENO"; then :
cannam@154 1934 ac_header_compiler=yes
cannam@154 1935 else
cannam@154 1936 ac_header_compiler=no
cannam@154 1937 fi
cannam@154 1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@154 1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
cannam@154 1940 $as_echo "$ac_header_compiler" >&6; }
cannam@154 1941
cannam@154 1942 # Is the header present?
cannam@154 1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
cannam@154 1944 $as_echo_n "checking $2 presence... " >&6; }
cannam@154 1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 1946 /* end confdefs.h. */
cannam@154 1947 #include <$2>
cannam@154 1948 _ACEOF
cannam@154 1949 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@154 1950 ac_header_preproc=yes
cannam@154 1951 else
cannam@154 1952 ac_header_preproc=no
cannam@154 1953 fi
cannam@154 1954 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@154 1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
cannam@154 1956 $as_echo "$ac_header_preproc" >&6; }
cannam@154 1957
cannam@154 1958 # So? What about this header?
cannam@154 1959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
cannam@154 1960 yes:no: )
cannam@154 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
cannam@154 1962 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
cannam@154 1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
cannam@154 1964 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cannam@154 1965 ;;
cannam@154 1966 no:yes:* )
cannam@154 1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
cannam@154 1968 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
cannam@154 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
cannam@154 1970 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
cannam@154 1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
cannam@154 1972 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
cannam@154 1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
cannam@154 1974 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
cannam@154 1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
cannam@154 1976 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cannam@154 1977 ( $as_echo "## ---------------------------- ##
cannam@154 1978 ## Report this to opus@xiph.org ##
cannam@154 1979 ## ---------------------------- ##"
cannam@154 1980 ) | sed "s/^/$as_me: WARNING: /" >&2
cannam@154 1981 ;;
cannam@154 1982 esac
cannam@154 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@154 1984 $as_echo_n "checking for $2... " >&6; }
cannam@154 1985 if eval \${$3+:} false; then :
cannam@154 1986 $as_echo_n "(cached) " >&6
cannam@154 1987 else
cannam@154 1988 eval "$3=\$ac_header_compiler"
cannam@154 1989 fi
cannam@154 1990 eval ac_res=\$$3
cannam@154 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@154 1992 $as_echo "$ac_res" >&6; }
cannam@154 1993 fi
cannam@154 1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@154 1995
cannam@154 1996 } # ac_fn_c_check_header_mongrel
cannam@154 1997 cat >config.log <<_ACEOF
cannam@154 1998 This file contains any messages produced by compilers while
cannam@154 1999 running configure, to aid debugging if configure makes a mistake.
cannam@154 2000
cannam@154 2001 It was created by opus $as_me 1.3, which was
cannam@154 2002 generated by GNU Autoconf 2.69. Invocation command line was
cannam@154 2003
cannam@154 2004 $ $0 $@
cannam@154 2005
cannam@154 2006 _ACEOF
cannam@154 2007 exec 5>>config.log
cannam@154 2008 {
cannam@154 2009 cat <<_ASUNAME
cannam@154 2010 ## --------- ##
cannam@154 2011 ## Platform. ##
cannam@154 2012 ## --------- ##
cannam@154 2013
cannam@154 2014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@154 2015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
cannam@154 2016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
cannam@154 2017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
cannam@154 2018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
cannam@154 2019
cannam@154 2020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
cannam@154 2021 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
cannam@154 2022
cannam@154 2023 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
cannam@154 2024 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
cannam@154 2025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
cannam@154 2026 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
cannam@154 2027 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
cannam@154 2028 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
cannam@154 2029 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
cannam@154 2030
cannam@154 2031 _ASUNAME
cannam@154 2032
cannam@154 2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 2034 for as_dir in $PATH
cannam@154 2035 do
cannam@154 2036 IFS=$as_save_IFS
cannam@154 2037 test -z "$as_dir" && as_dir=.
cannam@154 2038 $as_echo "PATH: $as_dir"
cannam@154 2039 done
cannam@154 2040 IFS=$as_save_IFS
cannam@154 2041
cannam@154 2042 } >&5
cannam@154 2043
cannam@154 2044 cat >&5 <<_ACEOF
cannam@154 2045
cannam@154 2046
cannam@154 2047 ## ----------- ##
cannam@154 2048 ## Core tests. ##
cannam@154 2049 ## ----------- ##
cannam@154 2050
cannam@154 2051 _ACEOF
cannam@154 2052
cannam@154 2053
cannam@154 2054 # Keep a trace of the command line.
cannam@154 2055 # Strip out --no-create and --no-recursion so they do not pile up.
cannam@154 2056 # Strip out --silent because we don't want to record it for future runs.
cannam@154 2057 # Also quote any args containing shell meta-characters.
cannam@154 2058 # Make two passes to allow for proper duplicate-argument suppression.
cannam@154 2059 ac_configure_args=
cannam@154 2060 ac_configure_args0=
cannam@154 2061 ac_configure_args1=
cannam@154 2062 ac_must_keep_next=false
cannam@154 2063 for ac_pass in 1 2
cannam@154 2064 do
cannam@154 2065 for ac_arg
cannam@154 2066 do
cannam@154 2067 case $ac_arg in
cannam@154 2068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
cannam@154 2069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@154 2070 | -silent | --silent | --silen | --sile | --sil)
cannam@154 2071 continue ;;
cannam@154 2072 *\'*)
cannam@154 2073 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@154 2074 esac
cannam@154 2075 case $ac_pass in
cannam@154 2076 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cannam@154 2077 2)
cannam@154 2078 as_fn_append ac_configure_args1 " '$ac_arg'"
cannam@154 2079 if test $ac_must_keep_next = true; then
cannam@154 2080 ac_must_keep_next=false # Got value, back to normal.
cannam@154 2081 else
cannam@154 2082 case $ac_arg in
cannam@154 2083 *=* | --config-cache | -C | -disable-* | --disable-* \
cannam@154 2084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
cannam@154 2085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
cannam@154 2086 | -with-* | --with-* | -without-* | --without-* | --x)
cannam@154 2087 case "$ac_configure_args0 " in
cannam@154 2088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
cannam@154 2089 esac
cannam@154 2090 ;;
cannam@154 2091 -* ) ac_must_keep_next=true ;;
cannam@154 2092 esac
cannam@154 2093 fi
cannam@154 2094 as_fn_append ac_configure_args " '$ac_arg'"
cannam@154 2095 ;;
cannam@154 2096 esac
cannam@154 2097 done
cannam@154 2098 done
cannam@154 2099 { ac_configure_args0=; unset ac_configure_args0;}
cannam@154 2100 { ac_configure_args1=; unset ac_configure_args1;}
cannam@154 2101
cannam@154 2102 # When interrupted or exit'd, cleanup temporary files, and complete
cannam@154 2103 # config.log. We remove comments because anyway the quotes in there
cannam@154 2104 # would cause problems or look ugly.
cannam@154 2105 # WARNING: Use '\'' to represent an apostrophe within the trap.
cannam@154 2106 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
cannam@154 2107 trap 'exit_status=$?
cannam@154 2108 # Save into config.log some information that might help in debugging.
cannam@154 2109 {
cannam@154 2110 echo
cannam@154 2111
cannam@154 2112 $as_echo "## ---------------- ##
cannam@154 2113 ## Cache variables. ##
cannam@154 2114 ## ---------------- ##"
cannam@154 2115 echo
cannam@154 2116 # The following way of writing the cache mishandles newlines in values,
cannam@154 2117 (
cannam@154 2118 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
cannam@154 2119 eval ac_val=\$$ac_var
cannam@154 2120 case $ac_val in #(
cannam@154 2121 *${as_nl}*)
cannam@154 2122 case $ac_var in #(
cannam@154 2123 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cannam@154 2124 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
cannam@154 2125 esac
cannam@154 2126 case $ac_var in #(
cannam@154 2127 _ | IFS | as_nl) ;; #(
cannam@154 2128 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cannam@154 2129 *) { eval $ac_var=; unset $ac_var;} ;;
cannam@154 2130 esac ;;
cannam@154 2131 esac
cannam@154 2132 done
cannam@154 2133 (set) 2>&1 |
cannam@154 2134 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
cannam@154 2135 *${as_nl}ac_space=\ *)
cannam@154 2136 sed -n \
cannam@154 2137 "s/'\''/'\''\\\\'\'''\''/g;
cannam@154 2138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
cannam@154 2139 ;; #(
cannam@154 2140 *)
cannam@154 2141 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
cannam@154 2142 ;;
cannam@154 2143 esac |
cannam@154 2144 sort
cannam@154 2145 )
cannam@154 2146 echo
cannam@154 2147
cannam@154 2148 $as_echo "## ----------------- ##
cannam@154 2149 ## Output variables. ##
cannam@154 2150 ## ----------------- ##"
cannam@154 2151 echo
cannam@154 2152 for ac_var in $ac_subst_vars
cannam@154 2153 do
cannam@154 2154 eval ac_val=\$$ac_var
cannam@154 2155 case $ac_val in
cannam@154 2156 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
cannam@154 2157 esac
cannam@154 2158 $as_echo "$ac_var='\''$ac_val'\''"
cannam@154 2159 done | sort
cannam@154 2160 echo
cannam@154 2161
cannam@154 2162 if test -n "$ac_subst_files"; then
cannam@154 2163 $as_echo "## ------------------- ##
cannam@154 2164 ## File substitutions. ##
cannam@154 2165 ## ------------------- ##"
cannam@154 2166 echo
cannam@154 2167 for ac_var in $ac_subst_files
cannam@154 2168 do
cannam@154 2169 eval ac_val=\$$ac_var
cannam@154 2170 case $ac_val in
cannam@154 2171 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
cannam@154 2172 esac
cannam@154 2173 $as_echo "$ac_var='\''$ac_val'\''"
cannam@154 2174 done | sort
cannam@154 2175 echo
cannam@154 2176 fi
cannam@154 2177
cannam@154 2178 if test -s confdefs.h; then
cannam@154 2179 $as_echo "## ----------- ##
cannam@154 2180 ## confdefs.h. ##
cannam@154 2181 ## ----------- ##"
cannam@154 2182 echo
cannam@154 2183 cat confdefs.h
cannam@154 2184 echo
cannam@154 2185 fi
cannam@154 2186 test "$ac_signal" != 0 &&
cannam@154 2187 $as_echo "$as_me: caught signal $ac_signal"
cannam@154 2188 $as_echo "$as_me: exit $exit_status"
cannam@154 2189 } >&5
cannam@154 2190 rm -f core *.core core.conftest.* &&
cannam@154 2191 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
cannam@154 2192 exit $exit_status
cannam@154 2193 ' 0
cannam@154 2194 for ac_signal in 1 2 13 15; do
cannam@154 2195 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cannam@154 2196 done
cannam@154 2197 ac_signal=0
cannam@154 2198
cannam@154 2199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
cannam@154 2200 rm -f -r conftest* confdefs.h
cannam@154 2201
cannam@154 2202 $as_echo "/* confdefs.h */" > confdefs.h
cannam@154 2203
cannam@154 2204 # Predefined preprocessor variables.
cannam@154 2205
cannam@154 2206 cat >>confdefs.h <<_ACEOF
cannam@154 2207 #define PACKAGE_NAME "$PACKAGE_NAME"
cannam@154 2208 _ACEOF
cannam@154 2209
cannam@154 2210 cat >>confdefs.h <<_ACEOF
cannam@154 2211 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
cannam@154 2212 _ACEOF
cannam@154 2213
cannam@154 2214 cat >>confdefs.h <<_ACEOF
cannam@154 2215 #define PACKAGE_VERSION "$PACKAGE_VERSION"
cannam@154 2216 _ACEOF
cannam@154 2217
cannam@154 2218 cat >>confdefs.h <<_ACEOF
cannam@154 2219 #define PACKAGE_STRING "$PACKAGE_STRING"
cannam@154 2220 _ACEOF
cannam@154 2221
cannam@154 2222 cat >>confdefs.h <<_ACEOF
cannam@154 2223 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
cannam@154 2224 _ACEOF
cannam@154 2225
cannam@154 2226 cat >>confdefs.h <<_ACEOF
cannam@154 2227 #define PACKAGE_URL "$PACKAGE_URL"
cannam@154 2228 _ACEOF
cannam@154 2229
cannam@154 2230
cannam@154 2231 # Let the site file select an alternate cache file if it wants to.
cannam@154 2232 # Prefer an explicitly selected file to automatically selected ones.
cannam@154 2233 ac_site_file1=NONE
cannam@154 2234 ac_site_file2=NONE
cannam@154 2235 if test -n "$CONFIG_SITE"; then
cannam@154 2236 # We do not want a PATH search for config.site.
cannam@154 2237 case $CONFIG_SITE in #((
cannam@154 2238 -*) ac_site_file1=./$CONFIG_SITE;;
cannam@154 2239 */*) ac_site_file1=$CONFIG_SITE;;
cannam@154 2240 *) ac_site_file1=./$CONFIG_SITE;;
cannam@154 2241 esac
cannam@154 2242 elif test "x$prefix" != xNONE; then
cannam@154 2243 ac_site_file1=$prefix/share/config.site
cannam@154 2244 ac_site_file2=$prefix/etc/config.site
cannam@154 2245 else
cannam@154 2246 ac_site_file1=$ac_default_prefix/share/config.site
cannam@154 2247 ac_site_file2=$ac_default_prefix/etc/config.site
cannam@154 2248 fi
cannam@154 2249 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
cannam@154 2250 do
cannam@154 2251 test "x$ac_site_file" = xNONE && continue
cannam@154 2252 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cannam@154 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cannam@154 2254 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
cannam@154 2255 sed 's/^/| /' "$ac_site_file" >&5
cannam@154 2256 . "$ac_site_file" \
cannam@154 2257 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@154 2258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@154 2259 as_fn_error $? "failed to load site script $ac_site_file
cannam@154 2260 See \`config.log' for more details" "$LINENO" 5; }
cannam@154 2261 fi
cannam@154 2262 done
cannam@154 2263
cannam@154 2264 if test -r "$cache_file"; then
cannam@154 2265 # Some versions of bash will fail to source /dev/null (special files
cannam@154 2266 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
cannam@154 2267 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cannam@154 2268 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cannam@154 2269 $as_echo "$as_me: loading cache $cache_file" >&6;}
cannam@154 2270 case $cache_file in
cannam@154 2271 [\\/]* | ?:[\\/]* ) . "$cache_file";;
cannam@154 2272 *) . "./$cache_file";;
cannam@154 2273 esac
cannam@154 2274 fi
cannam@154 2275 else
cannam@154 2276 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cannam@154 2277 $as_echo "$as_me: creating cache $cache_file" >&6;}
cannam@154 2278 >$cache_file
cannam@154 2279 fi
cannam@154 2280
cannam@154 2281 # Check that the precious variables saved in the cache have kept the same
cannam@154 2282 # value.
cannam@154 2283 ac_cache_corrupted=false
cannam@154 2284 for ac_var in $ac_precious_vars; do
cannam@154 2285 eval ac_old_set=\$ac_cv_env_${ac_var}_set
cannam@154 2286 eval ac_new_set=\$ac_env_${ac_var}_set
cannam@154 2287 eval ac_old_val=\$ac_cv_env_${ac_var}_value
cannam@154 2288 eval ac_new_val=\$ac_env_${ac_var}_value
cannam@154 2289 case $ac_old_set,$ac_new_set in
cannam@154 2290 set,)
cannam@154 2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
cannam@154 2292 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
cannam@154 2293 ac_cache_corrupted=: ;;
cannam@154 2294 ,set)
cannam@154 2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cannam@154 2296 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
cannam@154 2297 ac_cache_corrupted=: ;;
cannam@154 2298 ,);;
cannam@154 2299 *)
cannam@154 2300 if test "x$ac_old_val" != "x$ac_new_val"; then
cannam@154 2301 # differences in whitespace do not lead to failure.
cannam@154 2302 ac_old_val_w=`echo x $ac_old_val`
cannam@154 2303 ac_new_val_w=`echo x $ac_new_val`
cannam@154 2304 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cannam@154 2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cannam@154 2306 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
cannam@154 2307 ac_cache_corrupted=:
cannam@154 2308 else
cannam@154 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
cannam@154 2310 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
cannam@154 2311 eval $ac_var=\$ac_old_val
cannam@154 2312 fi
cannam@154 2313 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cannam@154 2314 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cannam@154 2315 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cannam@154 2316 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
cannam@154 2317 fi;;
cannam@154 2318 esac
cannam@154 2319 # Pass precious variables to config.status.
cannam@154 2320 if test "$ac_new_set" = set; then
cannam@154 2321 case $ac_new_val in
cannam@154 2322 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@154 2323 *) ac_arg=$ac_var=$ac_new_val ;;
cannam@154 2324 esac
cannam@154 2325 case " $ac_configure_args " in
cannam@154 2326 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cannam@154 2327 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cannam@154 2328 esac
cannam@154 2329 fi
cannam@154 2330 done
cannam@154 2331 if $ac_cache_corrupted; then
cannam@154 2332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@154 2333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@154 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cannam@154 2335 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cannam@154 2336 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cannam@154 2337 fi
cannam@154 2338 ## -------------------- ##
cannam@154 2339 ## Main body of script. ##
cannam@154 2340 ## -------------------- ##
cannam@154 2341
cannam@154 2342 ac_ext=c
cannam@154 2343 ac_cpp='$CPP $CPPFLAGS'
cannam@154 2344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@154 2345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@154 2346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@154 2347
cannam@154 2348
cannam@154 2349
cannam@154 2350
cannam@154 2351
cannam@154 2352
cannam@154 2353 # Check whether --enable-silent-rules was given.
cannam@154 2354 if test "${enable_silent_rules+set}" = set; then :
cannam@154 2355 enableval=$enable_silent_rules;
cannam@154 2356 fi
cannam@154 2357
cannam@154 2358 case $enable_silent_rules in # (((
cannam@154 2359 yes) AM_DEFAULT_VERBOSITY=0;;
cannam@154 2360 no) AM_DEFAULT_VERBOSITY=1;;
cannam@154 2361 *) AM_DEFAULT_VERBOSITY=0;;
cannam@154 2362 esac
cannam@154 2363 am_make=${MAKE-make}
cannam@154 2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
cannam@154 2365 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
cannam@154 2366 if ${am_cv_make_support_nested_variables+:} false; then :
cannam@154 2367 $as_echo_n "(cached) " >&6
cannam@154 2368 else
cannam@154 2369 if $as_echo 'TRUE=$(BAR$(V))
cannam@154 2370 BAR0=false
cannam@154 2371 BAR1=true
cannam@154 2372 V=1
cannam@154 2373 am__doit:
cannam@154 2374 @$(TRUE)
cannam@154 2375 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
cannam@154 2376 am_cv_make_support_nested_variables=yes
cannam@154 2377 else
cannam@154 2378 am_cv_make_support_nested_variables=no
cannam@154 2379 fi
cannam@154 2380 fi
cannam@154 2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
cannam@154 2382 $as_echo "$am_cv_make_support_nested_variables" >&6; }
cannam@154 2383 if test $am_cv_make_support_nested_variables = yes; then
cannam@154 2384 AM_V='$(V)'
cannam@154 2385 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
cannam@154 2386 else
cannam@154 2387 AM_V=$AM_DEFAULT_VERBOSITY
cannam@154 2388 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
cannam@154 2389 fi
cannam@154 2390 AM_BACKSLASH='\'
cannam@154 2391
cannam@154 2392
cannam@154 2393 # For libtool.
cannam@154 2394 OPUS_LT_CURRENT=7
cannam@154 2395 OPUS_LT_REVISION=0
cannam@154 2396 OPUS_LT_AGE=7
cannam@154 2397
cannam@154 2398
cannam@154 2399
cannam@154 2400
cannam@154 2401
cannam@154 2402 am__api_version='1.15'
cannam@154 2403
cannam@154 2404 ac_aux_dir=
cannam@154 2405 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
cannam@154 2406 if test -f "$ac_dir/install-sh"; then
cannam@154 2407 ac_aux_dir=$ac_dir
cannam@154 2408 ac_install_sh="$ac_aux_dir/install-sh -c"
cannam@154 2409 break
cannam@154 2410 elif test -f "$ac_dir/install.sh"; then
cannam@154 2411 ac_aux_dir=$ac_dir
cannam@154 2412 ac_install_sh="$ac_aux_dir/install.sh -c"
cannam@154 2413 break
cannam@154 2414 elif test -f "$ac_dir/shtool"; then
cannam@154 2415 ac_aux_dir=$ac_dir
cannam@154 2416 ac_install_sh="$ac_aux_dir/shtool install -c"
cannam@154 2417 break
cannam@154 2418 fi
cannam@154 2419 done
cannam@154 2420 if test -z "$ac_aux_dir"; then
cannam@154 2421 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
cannam@154 2422 fi
cannam@154 2423
cannam@154 2424 # These three variables are undocumented and unsupported,
cannam@154 2425 # and are intended to be withdrawn in a future Autoconf release.
cannam@154 2426 # They can cause serious problems if a builder's source tree is in a directory
cannam@154 2427 # whose full name contains unusual characters.
cannam@154 2428 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
cannam@154 2429 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
cannam@154 2430 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
cannam@154 2431
cannam@154 2432
cannam@154 2433 # Find a good install program. We prefer a C program (faster),
cannam@154 2434 # so one script is as good as another. But avoid the broken or
cannam@154 2435 # incompatible versions:
cannam@154 2436 # SysV /etc/install, /usr/sbin/install
cannam@154 2437 # SunOS /usr/etc/install
cannam@154 2438 # IRIX /sbin/install
cannam@154 2439 # AIX /bin/install
cannam@154 2440 # AmigaOS /C/install, which installs bootblocks on floppy discs
cannam@154 2441 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
cannam@154 2442 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
cannam@154 2443 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
cannam@154 2444 # OS/2's system install, which has a completely different semantic
cannam@154 2445 # ./install, which can be erroneously created by make from ./install.sh.
cannam@154 2446 # Reject install programs that cannot install multiple files.
cannam@154 2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cannam@154 2448 $as_echo_n "checking for a BSD-compatible install... " >&6; }
cannam@154 2449 if test -z "$INSTALL"; then
cannam@154 2450 if ${ac_cv_path_install+:} false; then :
cannam@154 2451 $as_echo_n "(cached) " >&6
cannam@154 2452 else
cannam@154 2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 2454 for as_dir in $PATH
cannam@154 2455 do
cannam@154 2456 IFS=$as_save_IFS
cannam@154 2457 test -z "$as_dir" && as_dir=.
cannam@154 2458 # Account for people who put trailing slashes in PATH elements.
cannam@154 2459 case $as_dir/ in #((
cannam@154 2460 ./ | .// | /[cC]/* | \
cannam@154 2461 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cannam@154 2462 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cannam@154 2463 /usr/ucb/* ) ;;
cannam@154 2464 *)
cannam@154 2465 # OSF1 and SCO ODT 3.0 have their own names for install.
cannam@154 2466 # Don't use installbsd from OSF since it installs stuff as root
cannam@154 2467 # by default.
cannam@154 2468 for ac_prog in ginstall scoinst install; do
cannam@154 2469 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 2470 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cannam@154 2471 if test $ac_prog = install &&
cannam@154 2472 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
cannam@154 2473 # AIX install. It has an incompatible calling convention.
cannam@154 2474 :
cannam@154 2475 elif test $ac_prog = install &&
cannam@154 2476 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
cannam@154 2477 # program-specific install script used by HP pwplus--don't use.
cannam@154 2478 :
cannam@154 2479 else
cannam@154 2480 rm -rf conftest.one conftest.two conftest.dir
cannam@154 2481 echo one > conftest.one
cannam@154 2482 echo two > conftest.two
cannam@154 2483 mkdir conftest.dir
cannam@154 2484 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
cannam@154 2485 test -s conftest.one && test -s conftest.two &&
cannam@154 2486 test -s conftest.dir/conftest.one &&
cannam@154 2487 test -s conftest.dir/conftest.two
cannam@154 2488 then
cannam@154 2489 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
cannam@154 2490 break 3
cannam@154 2491 fi
cannam@154 2492 fi
cannam@154 2493 fi
cannam@154 2494 done
cannam@154 2495 done
cannam@154 2496 ;;
cannam@154 2497 esac
cannam@154 2498
cannam@154 2499 done
cannam@154 2500 IFS=$as_save_IFS
cannam@154 2501
cannam@154 2502 rm -rf conftest.one conftest.two conftest.dir
cannam@154 2503
cannam@154 2504 fi
cannam@154 2505 if test "${ac_cv_path_install+set}" = set; then
cannam@154 2506 INSTALL=$ac_cv_path_install
cannam@154 2507 else
cannam@154 2508 # As a last resort, use the slow shell script. Don't cache a
cannam@154 2509 # value for INSTALL within a source directory, because that will
cannam@154 2510 # break other packages using the cache if that directory is
cannam@154 2511 # removed, or if the value is a relative name.
cannam@154 2512 INSTALL=$ac_install_sh
cannam@154 2513 fi
cannam@154 2514 fi
cannam@154 2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cannam@154 2516 $as_echo "$INSTALL" >&6; }
cannam@154 2517
cannam@154 2518 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
cannam@154 2519 # It thinks the first close brace ends the variable substitution.
cannam@154 2520 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
cannam@154 2521
cannam@154 2522 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
cannam@154 2523
cannam@154 2524 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
cannam@154 2525
cannam@154 2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cannam@154 2527 $as_echo_n "checking whether build environment is sane... " >&6; }
cannam@154 2528 # Reject unsafe characters in $srcdir or the absolute working directory
cannam@154 2529 # name. Accept space and tab only in the latter.
cannam@154 2530 am_lf='
cannam@154 2531 '
cannam@154 2532 case `pwd` in
cannam@154 2533 *[\\\"\#\$\&\'\`$am_lf]*)
cannam@154 2534 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cannam@154 2535 esac
cannam@154 2536 case $srcdir in
cannam@154 2537 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cannam@154 2538 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cannam@154 2539 esac
cannam@154 2540
cannam@154 2541 # Do 'set' in a subshell so we don't clobber the current shell's
cannam@154 2542 # arguments. Must try -L first in case configure is actually a
cannam@154 2543 # symlink; some systems play weird games with the mod time of symlinks
cannam@154 2544 # (eg FreeBSD returns the mod time of the symlink's containing
cannam@154 2545 # directory).
cannam@154 2546 if (
cannam@154 2547 am_has_slept=no
cannam@154 2548 for am_try in 1 2; do
cannam@154 2549 echo "timestamp, slept: $am_has_slept" > conftest.file
cannam@154 2550 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
cannam@154 2551 if test "$*" = "X"; then
cannam@154 2552 # -L didn't work.
cannam@154 2553 set X `ls -t "$srcdir/configure" conftest.file`
cannam@154 2554 fi
cannam@154 2555 if test "$*" != "X $srcdir/configure conftest.file" \
cannam@154 2556 && test "$*" != "X conftest.file $srcdir/configure"; then
cannam@154 2557
cannam@154 2558 # If neither matched, then we have a broken ls. This can happen
cannam@154 2559 # if, for instance, CONFIG_SHELL is bash and it inherits a
cannam@154 2560 # broken ls alias from the environment. This has actually
cannam@154 2561 # happened. Such a system could not be considered "sane".
cannam@154 2562 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cannam@154 2563 alias in your environment" "$LINENO" 5
cannam@154 2564 fi
cannam@154 2565 if test "$2" = conftest.file || test $am_try -eq 2; then
cannam@154 2566 break
cannam@154 2567 fi
cannam@154 2568 # Just in case.
cannam@154 2569 sleep 1
cannam@154 2570 am_has_slept=yes
cannam@154 2571 done
cannam@154 2572 test "$2" = conftest.file
cannam@154 2573 )
cannam@154 2574 then
cannam@154 2575 # Ok.
cannam@154 2576 :
cannam@154 2577 else
cannam@154 2578 as_fn_error $? "newly created file is older than distributed files!
cannam@154 2579 Check your system clock" "$LINENO" 5
cannam@154 2580 fi
cannam@154 2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 2582 $as_echo "yes" >&6; }
cannam@154 2583 # If we didn't sleep, we still need to ensure time stamps of config.status and
cannam@154 2584 # generated files are strictly newer.
cannam@154 2585 am_sleep_pid=
cannam@154 2586 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
cannam@154 2587 ( sleep 1 ) &
cannam@154 2588 am_sleep_pid=$!
cannam@154 2589 fi
cannam@154 2590
cannam@154 2591 rm -f conftest.file
cannam@154 2592
cannam@154 2593 test "$program_prefix" != NONE &&
cannam@154 2594 program_transform_name="s&^&$program_prefix&;$program_transform_name"
cannam@154 2595 # Use a double $ so make ignores it.
cannam@154 2596 test "$program_suffix" != NONE &&
cannam@154 2597 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
cannam@154 2598 # Double any \ or $.
cannam@154 2599 # By default was `s,x,x', remove it if useless.
cannam@154 2600 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
cannam@154 2601 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cannam@154 2602
cannam@154 2603 # Expand $ac_aux_dir to an absolute path.
cannam@154 2604 am_aux_dir=`cd "$ac_aux_dir" && pwd`
cannam@154 2605
cannam@154 2606 if test x"${MISSING+set}" != xset; then
cannam@154 2607 case $am_aux_dir in
cannam@154 2608 *\ * | *\ *)
cannam@154 2609 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
cannam@154 2610 *)
cannam@154 2611 MISSING="\${SHELL} $am_aux_dir/missing" ;;
cannam@154 2612 esac
cannam@154 2613 fi
cannam@154 2614 # Use eval to expand $SHELL
cannam@154 2615 if eval "$MISSING --is-lightweight"; then
cannam@154 2616 am_missing_run="$MISSING "
cannam@154 2617 else
cannam@154 2618 am_missing_run=
cannam@154 2619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
cannam@154 2620 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cannam@154 2621 fi
cannam@154 2622
cannam@154 2623 if test x"${install_sh+set}" != xset; then
cannam@154 2624 case $am_aux_dir in
cannam@154 2625 *\ * | *\ *)
cannam@154 2626 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
cannam@154 2627 *)
cannam@154 2628 install_sh="\${SHELL} $am_aux_dir/install-sh"
cannam@154 2629 esac
cannam@154 2630 fi
cannam@154 2631
cannam@154 2632 # Installed binaries are usually stripped using 'strip' when the user
cannam@154 2633 # run "make install-strip". However 'strip' might not be the right
cannam@154 2634 # tool to use in cross-compilation environments, therefore Automake
cannam@154 2635 # will honor the 'STRIP' environment variable to overrule this program.
cannam@154 2636 if test "$cross_compiling" != no; then
cannam@154 2637 if test -n "$ac_tool_prefix"; then
cannam@154 2638 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
cannam@154 2639 set dummy ${ac_tool_prefix}strip; ac_word=$2
cannam@154 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 2641 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 2642 if ${ac_cv_prog_STRIP+:} false; then :
cannam@154 2643 $as_echo_n "(cached) " >&6
cannam@154 2644 else
cannam@154 2645 if test -n "$STRIP"; then
cannam@154 2646 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
cannam@154 2647 else
cannam@154 2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 2649 for as_dir in $PATH
cannam@154 2650 do
cannam@154 2651 IFS=$as_save_IFS
cannam@154 2652 test -z "$as_dir" && as_dir=.
cannam@154 2653 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 2654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 2655 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cannam@154 2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 2657 break 2
cannam@154 2658 fi
cannam@154 2659 done
cannam@154 2660 done
cannam@154 2661 IFS=$as_save_IFS
cannam@154 2662
cannam@154 2663 fi
cannam@154 2664 fi
cannam@154 2665 STRIP=$ac_cv_prog_STRIP
cannam@154 2666 if test -n "$STRIP"; then
cannam@154 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cannam@154 2668 $as_echo "$STRIP" >&6; }
cannam@154 2669 else
cannam@154 2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 2671 $as_echo "no" >&6; }
cannam@154 2672 fi
cannam@154 2673
cannam@154 2674
cannam@154 2675 fi
cannam@154 2676 if test -z "$ac_cv_prog_STRIP"; then
cannam@154 2677 ac_ct_STRIP=$STRIP
cannam@154 2678 # Extract the first word of "strip", so it can be a program name with args.
cannam@154 2679 set dummy strip; ac_word=$2
cannam@154 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 2681 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 2682 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cannam@154 2683 $as_echo_n "(cached) " >&6
cannam@154 2684 else
cannam@154 2685 if test -n "$ac_ct_STRIP"; then
cannam@154 2686 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
cannam@154 2687 else
cannam@154 2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 2689 for as_dir in $PATH
cannam@154 2690 do
cannam@154 2691 IFS=$as_save_IFS
cannam@154 2692 test -z "$as_dir" && as_dir=.
cannam@154 2693 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 2694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 2695 ac_cv_prog_ac_ct_STRIP="strip"
cannam@154 2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 2697 break 2
cannam@154 2698 fi
cannam@154 2699 done
cannam@154 2700 done
cannam@154 2701 IFS=$as_save_IFS
cannam@154 2702
cannam@154 2703 fi
cannam@154 2704 fi
cannam@154 2705 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
cannam@154 2706 if test -n "$ac_ct_STRIP"; then
cannam@154 2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cannam@154 2708 $as_echo "$ac_ct_STRIP" >&6; }
cannam@154 2709 else
cannam@154 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 2711 $as_echo "no" >&6; }
cannam@154 2712 fi
cannam@154 2713
cannam@154 2714 if test "x$ac_ct_STRIP" = x; then
cannam@154 2715 STRIP=":"
cannam@154 2716 else
cannam@154 2717 case $cross_compiling:$ac_tool_warned in
cannam@154 2718 yes:)
cannam@154 2719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@154 2720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@154 2721 ac_tool_warned=yes ;;
cannam@154 2722 esac
cannam@154 2723 STRIP=$ac_ct_STRIP
cannam@154 2724 fi
cannam@154 2725 else
cannam@154 2726 STRIP="$ac_cv_prog_STRIP"
cannam@154 2727 fi
cannam@154 2728
cannam@154 2729 fi
cannam@154 2730 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
cannam@154 2731
cannam@154 2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cannam@154 2733 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
cannam@154 2734 if test -z "$MKDIR_P"; then
cannam@154 2735 if ${ac_cv_path_mkdir+:} false; then :
cannam@154 2736 $as_echo_n "(cached) " >&6
cannam@154 2737 else
cannam@154 2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 2739 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
cannam@154 2740 do
cannam@154 2741 IFS=$as_save_IFS
cannam@154 2742 test -z "$as_dir" && as_dir=.
cannam@154 2743 for ac_prog in mkdir gmkdir; do
cannam@154 2744 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 2745 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cannam@154 2746 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
cannam@154 2747 'mkdir (GNU coreutils) '* | \
cannam@154 2748 'mkdir (coreutils) '* | \
cannam@154 2749 'mkdir (fileutils) '4.1*)
cannam@154 2750 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
cannam@154 2751 break 3;;
cannam@154 2752 esac
cannam@154 2753 done
cannam@154 2754 done
cannam@154 2755 done
cannam@154 2756 IFS=$as_save_IFS
cannam@154 2757
cannam@154 2758 fi
cannam@154 2759
cannam@154 2760 test -d ./--version && rmdir ./--version
cannam@154 2761 if test "${ac_cv_path_mkdir+set}" = set; then
cannam@154 2762 MKDIR_P="$ac_cv_path_mkdir -p"
cannam@154 2763 else
cannam@154 2764 # As a last resort, use the slow shell script. Don't cache a
cannam@154 2765 # value for MKDIR_P within a source directory, because that will
cannam@154 2766 # break other packages using the cache if that directory is
cannam@154 2767 # removed, or if the value is a relative name.
cannam@154 2768 MKDIR_P="$ac_install_sh -d"
cannam@154 2769 fi
cannam@154 2770 fi
cannam@154 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cannam@154 2772 $as_echo "$MKDIR_P" >&6; }
cannam@154 2773
cannam@154 2774 for ac_prog in gawk mawk nawk awk
cannam@154 2775 do
cannam@154 2776 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@154 2777 set dummy $ac_prog; ac_word=$2
cannam@154 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 2779 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 2780 if ${ac_cv_prog_AWK+:} false; then :
cannam@154 2781 $as_echo_n "(cached) " >&6
cannam@154 2782 else
cannam@154 2783 if test -n "$AWK"; then
cannam@154 2784 ac_cv_prog_AWK="$AWK" # Let the user override the test.
cannam@154 2785 else
cannam@154 2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 2787 for as_dir in $PATH
cannam@154 2788 do
cannam@154 2789 IFS=$as_save_IFS
cannam@154 2790 test -z "$as_dir" && as_dir=.
cannam@154 2791 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 2792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 2793 ac_cv_prog_AWK="$ac_prog"
cannam@154 2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 2795 break 2
cannam@154 2796 fi
cannam@154 2797 done
cannam@154 2798 done
cannam@154 2799 IFS=$as_save_IFS
cannam@154 2800
cannam@154 2801 fi
cannam@154 2802 fi
cannam@154 2803 AWK=$ac_cv_prog_AWK
cannam@154 2804 if test -n "$AWK"; then
cannam@154 2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cannam@154 2806 $as_echo "$AWK" >&6; }
cannam@154 2807 else
cannam@154 2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 2809 $as_echo "no" >&6; }
cannam@154 2810 fi
cannam@154 2811
cannam@154 2812
cannam@154 2813 test -n "$AWK" && break
cannam@154 2814 done
cannam@154 2815
cannam@154 2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cannam@154 2817 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
cannam@154 2818 set x ${MAKE-make}
cannam@154 2819 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cannam@154 2820 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cannam@154 2821 $as_echo_n "(cached) " >&6
cannam@154 2822 else
cannam@154 2823 cat >conftest.make <<\_ACEOF
cannam@154 2824 SHELL = /bin/sh
cannam@154 2825 all:
cannam@154 2826 @echo '@@@%%%=$(MAKE)=@@@%%%'
cannam@154 2827 _ACEOF
cannam@154 2828 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cannam@154 2829 case `${MAKE-make} -f conftest.make 2>/dev/null` in
cannam@154 2830 *@@@%%%=?*=@@@%%%*)
cannam@154 2831 eval ac_cv_prog_make_${ac_make}_set=yes;;
cannam@154 2832 *)
cannam@154 2833 eval ac_cv_prog_make_${ac_make}_set=no;;
cannam@154 2834 esac
cannam@154 2835 rm -f conftest.make
cannam@154 2836 fi
cannam@154 2837 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cannam@154 2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 2839 $as_echo "yes" >&6; }
cannam@154 2840 SET_MAKE=
cannam@154 2841 else
cannam@154 2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 2843 $as_echo "no" >&6; }
cannam@154 2844 SET_MAKE="MAKE=${MAKE-make}"
cannam@154 2845 fi
cannam@154 2846
cannam@154 2847 rm -rf .tst 2>/dev/null
cannam@154 2848 mkdir .tst 2>/dev/null
cannam@154 2849 if test -d .tst; then
cannam@154 2850 am__leading_dot=.
cannam@154 2851 else
cannam@154 2852 am__leading_dot=_
cannam@154 2853 fi
cannam@154 2854 rmdir .tst 2>/dev/null
cannam@154 2855
cannam@154 2856 if test "`cd $srcdir && pwd`" != "`pwd`"; then
cannam@154 2857 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
cannam@154 2858 # is not polluted with repeated "-I."
cannam@154 2859 am__isrc=' -I$(srcdir)'
cannam@154 2860 # test to see if srcdir already configured
cannam@154 2861 if test -f $srcdir/config.status; then
cannam@154 2862 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cannam@154 2863 fi
cannam@154 2864 fi
cannam@154 2865
cannam@154 2866 # test whether we have cygpath
cannam@154 2867 if test -z "$CYGPATH_W"; then
cannam@154 2868 if (cygpath --version) >/dev/null 2>/dev/null; then
cannam@154 2869 CYGPATH_W='cygpath -w'
cannam@154 2870 else
cannam@154 2871 CYGPATH_W=echo
cannam@154 2872 fi
cannam@154 2873 fi
cannam@154 2874
cannam@154 2875
cannam@154 2876 # Define the identity of the package.
cannam@154 2877 PACKAGE='opus'
cannam@154 2878 VERSION='1.3'
cannam@154 2879
cannam@154 2880
cannam@154 2881 # Some tools Automake needs.
cannam@154 2882
cannam@154 2883 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
cannam@154 2884
cannam@154 2885
cannam@154 2886 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
cannam@154 2887
cannam@154 2888
cannam@154 2889 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
cannam@154 2890
cannam@154 2891
cannam@154 2892 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
cannam@154 2893
cannam@154 2894
cannam@154 2895 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
cannam@154 2896
cannam@154 2897 # For better backward compatibility. To be removed once Automake 1.9.x
cannam@154 2898 # dies out for good. For more background, see:
cannam@154 2899 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
cannam@154 2900 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
cannam@154 2901 mkdir_p='$(MKDIR_P)'
cannam@154 2902
cannam@154 2903 # We need awk for the "check" target (and possibly the TAP driver). The
cannam@154 2904 # system "awk" is bad on some platforms.
cannam@154 2905 # Always define AMTAR for backward compatibility. Yes, it's still used
cannam@154 2906 # in the wild :-( We should find a proper way to deprecate it ...
cannam@154 2907 AMTAR='$${TAR-tar}'
cannam@154 2908
cannam@154 2909
cannam@154 2910 # We'll loop over all known methods to create a tar archive until one works.
cannam@154 2911 _am_tools='gnutar pax cpio none'
cannam@154 2912
cannam@154 2913 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cannam@154 2914
cannam@154 2915
cannam@154 2916
cannam@154 2917
cannam@154 2918
cannam@154 2919
cannam@154 2920 # POSIX will say in a future version that running "rm -f" with no argument
cannam@154 2921 # is OK; and we want to be able to make that assumption in our Makefile
cannam@154 2922 # recipes. So use an aggressive probe to check that the usage we want is
cannam@154 2923 # actually supported "in the wild" to an acceptable degree.
cannam@154 2924 # See automake bug#10828.
cannam@154 2925 # To make any issue more visible, cause the running configure to be aborted
cannam@154 2926 # by default if the 'rm' program in use doesn't match our expectations; the
cannam@154 2927 # user can still override this though.
cannam@154 2928 if rm -f && rm -fr && rm -rf; then : OK; else
cannam@154 2929 cat >&2 <<'END'
cannam@154 2930 Oops!
cannam@154 2931
cannam@154 2932 Your 'rm' program seems unable to run without file operands specified
cannam@154 2933 on the command line, even when the '-f' option is present. This is contrary
cannam@154 2934 to the behaviour of most rm programs out there, and not conforming with
cannam@154 2935 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
cannam@154 2936
cannam@154 2937 Please tell bug-automake@gnu.org about your system, including the value
cannam@154 2938 of your $PATH and any error possibly output before this message. This
cannam@154 2939 can help us improve future automake versions.
cannam@154 2940
cannam@154 2941 END
cannam@154 2942 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
cannam@154 2943 echo 'Configuration will proceed anyway, since you have set the' >&2
cannam@154 2944 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
cannam@154 2945 echo >&2
cannam@154 2946 else
cannam@154 2947 cat >&2 <<'END'
cannam@154 2948 Aborting the configuration process, to ensure you take notice of the issue.
cannam@154 2949
cannam@154 2950 You can download and install GNU coreutils to get an 'rm' implementation
cannam@154 2951 that behaves properly: <http://www.gnu.org/software/coreutils/>.
cannam@154 2952
cannam@154 2953 If you want to complete the configuration process using your problematic
cannam@154 2954 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
cannam@154 2955 to "yes", and re-run configure.
cannam@154 2956
cannam@154 2957 END
cannam@154 2958 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
cannam@154 2959 fi
cannam@154 2960 fi
cannam@154 2961
cannam@154 2962
cannam@154 2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cannam@154 2964 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
cannam@154 2965 # Check whether --enable-maintainer-mode was given.
cannam@154 2966 if test "${enable_maintainer_mode+set}" = set; then :
cannam@154 2967 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
cannam@154 2968 else
cannam@154 2969 USE_MAINTAINER_MODE=yes
cannam@154 2970 fi
cannam@154 2971
cannam@154 2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cannam@154 2973 $as_echo "$USE_MAINTAINER_MODE" >&6; }
cannam@154 2974 if test $USE_MAINTAINER_MODE = yes; then
cannam@154 2975 MAINTAINER_MODE_TRUE=
cannam@154 2976 MAINTAINER_MODE_FALSE='#'
cannam@154 2977 else
cannam@154 2978 MAINTAINER_MODE_TRUE='#'
cannam@154 2979 MAINTAINER_MODE_FALSE=
cannam@154 2980 fi
cannam@154 2981
cannam@154 2982 MAINT=$MAINTAINER_MODE_TRUE
cannam@154 2983
cannam@154 2984
cannam@154 2985
cannam@154 2986 # Make sure we can run config.sub.
cannam@154 2987 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cannam@154 2988 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cannam@154 2989
cannam@154 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cannam@154 2991 $as_echo_n "checking build system type... " >&6; }
cannam@154 2992 if ${ac_cv_build+:} false; then :
cannam@154 2993 $as_echo_n "(cached) " >&6
cannam@154 2994 else
cannam@154 2995 ac_build_alias=$build_alias
cannam@154 2996 test "x$ac_build_alias" = x &&
cannam@154 2997 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
cannam@154 2998 test "x$ac_build_alias" = x &&
cannam@154 2999 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cannam@154 3000 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cannam@154 3001 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cannam@154 3002
cannam@154 3003 fi
cannam@154 3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cannam@154 3005 $as_echo "$ac_cv_build" >&6; }
cannam@154 3006 case $ac_cv_build in
cannam@154 3007 *-*-*) ;;
cannam@154 3008 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cannam@154 3009 esac
cannam@154 3010 build=$ac_cv_build
cannam@154 3011 ac_save_IFS=$IFS; IFS='-'
cannam@154 3012 set x $ac_cv_build
cannam@154 3013 shift
cannam@154 3014 build_cpu=$1
cannam@154 3015 build_vendor=$2
cannam@154 3016 shift; shift
cannam@154 3017 # Remember, the first character of IFS is used to create $*,
cannam@154 3018 # except with old shells:
cannam@154 3019 build_os=$*
cannam@154 3020 IFS=$ac_save_IFS
cannam@154 3021 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
cannam@154 3022
cannam@154 3023
cannam@154 3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cannam@154 3025 $as_echo_n "checking host system type... " >&6; }
cannam@154 3026 if ${ac_cv_host+:} false; then :
cannam@154 3027 $as_echo_n "(cached) " >&6
cannam@154 3028 else
cannam@154 3029 if test "x$host_alias" = x; then
cannam@154 3030 ac_cv_host=$ac_cv_build
cannam@154 3031 else
cannam@154 3032 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cannam@154 3033 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cannam@154 3034 fi
cannam@154 3035
cannam@154 3036 fi
cannam@154 3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cannam@154 3038 $as_echo "$ac_cv_host" >&6; }
cannam@154 3039 case $ac_cv_host in
cannam@154 3040 *-*-*) ;;
cannam@154 3041 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cannam@154 3042 esac
cannam@154 3043 host=$ac_cv_host
cannam@154 3044 ac_save_IFS=$IFS; IFS='-'
cannam@154 3045 set x $ac_cv_host
cannam@154 3046 shift
cannam@154 3047 host_cpu=$1
cannam@154 3048 host_vendor=$2
cannam@154 3049 shift; shift
cannam@154 3050 # Remember, the first character of IFS is used to create $*,
cannam@154 3051 # except with old shells:
cannam@154 3052 host_os=$*
cannam@154 3053 IFS=$ac_save_IFS
cannam@154 3054 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
cannam@154 3055
cannam@154 3056
cannam@154 3057
cannam@154 3058 case $host_os in
cannam@154 3059 *mingw32* ) MINGW32=yes;;
cannam@154 3060 * ) MINGW32=no;;
cannam@154 3061 esac
cannam@154 3062
cannam@154 3063 case `pwd` in
cannam@154 3064 *\ * | *\ *)
cannam@154 3065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cannam@154 3066 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
cannam@154 3067 esac
cannam@154 3068
cannam@154 3069
cannam@154 3070
cannam@154 3071 macro_version='2.4.6'
cannam@154 3072 macro_revision='2.4.6'
cannam@154 3073
cannam@154 3074
cannam@154 3075
cannam@154 3076
cannam@154 3077
cannam@154 3078
cannam@154 3079
cannam@154 3080
cannam@154 3081
cannam@154 3082
cannam@154 3083
cannam@154 3084
cannam@154 3085
cannam@154 3086 ltmain=$ac_aux_dir/ltmain.sh
cannam@154 3087
cannam@154 3088 # Backslashify metacharacters that are still active within
cannam@154 3089 # double-quoted strings.
cannam@154 3090 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
cannam@154 3091
cannam@154 3092 # Same as above, but do not quote variable references.
cannam@154 3093 double_quote_subst='s/\(["`\\]\)/\\\1/g'
cannam@154 3094
cannam@154 3095 # Sed substitution to delay expansion of an escaped shell variable in a
cannam@154 3096 # double_quote_subst'ed string.
cannam@154 3097 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
cannam@154 3098
cannam@154 3099 # Sed substitution to delay expansion of an escaped single quote.
cannam@154 3100 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
cannam@154 3101
cannam@154 3102 # Sed substitution to avoid accidental globbing in evaled expressions
cannam@154 3103 no_glob_subst='s/\*/\\\*/g'
cannam@154 3104
cannam@154 3105 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@154 3106 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
cannam@154 3107 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
cannam@154 3108
cannam@154 3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
cannam@154 3110 $as_echo_n "checking how to print strings... " >&6; }
cannam@154 3111 # Test print first, because it will be a builtin if present.
cannam@154 3112 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cannam@154 3113 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
cannam@154 3114 ECHO='print -r --'
cannam@154 3115 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
cannam@154 3116 ECHO='printf %s\n'
cannam@154 3117 else
cannam@154 3118 # Use this function as a fallback that always works.
cannam@154 3119 func_fallback_echo ()
cannam@154 3120 {
cannam@154 3121 eval 'cat <<_LTECHO_EOF
cannam@154 3122 $1
cannam@154 3123 _LTECHO_EOF'
cannam@154 3124 }
cannam@154 3125 ECHO='func_fallback_echo'
cannam@154 3126 fi
cannam@154 3127
cannam@154 3128 # func_echo_all arg...
cannam@154 3129 # Invoke $ECHO with all args, space-separated.
cannam@154 3130 func_echo_all ()
cannam@154 3131 {
cannam@154 3132 $ECHO ""
cannam@154 3133 }
cannam@154 3134
cannam@154 3135 case $ECHO in
cannam@154 3136 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
cannam@154 3137 $as_echo "printf" >&6; } ;;
cannam@154 3138 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
cannam@154 3139 $as_echo "print -r" >&6; } ;;
cannam@154 3140 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
cannam@154 3141 $as_echo "cat" >&6; } ;;
cannam@154 3142 esac
cannam@154 3143
cannam@154 3144
cannam@154 3145
cannam@154 3146
cannam@154 3147
cannam@154 3148
cannam@154 3149
cannam@154 3150
cannam@154 3151
cannam@154 3152
cannam@154 3153
cannam@154 3154
cannam@154 3155
cannam@154 3156
cannam@154 3157 DEPDIR="${am__leading_dot}deps"
cannam@154 3158
cannam@154 3159 ac_config_commands="$ac_config_commands depfiles"
cannam@154 3160
cannam@154 3161
cannam@154 3162 am_make=${MAKE-make}
cannam@154 3163 cat > confinc << 'END'
cannam@154 3164 am__doit:
cannam@154 3165 @echo this is the am__doit target
cannam@154 3166 .PHONY: am__doit
cannam@154 3167 END
cannam@154 3168 # If we don't find an include directive, just comment out the code.
cannam@154 3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
cannam@154 3170 $as_echo_n "checking for style of include used by $am_make... " >&6; }
cannam@154 3171 am__include="#"
cannam@154 3172 am__quote=
cannam@154 3173 _am_result=none
cannam@154 3174 # First try GNU make style include.
cannam@154 3175 echo "include confinc" > confmf
cannam@154 3176 # Ignore all kinds of additional output from 'make'.
cannam@154 3177 case `$am_make -s -f confmf 2> /dev/null` in #(
cannam@154 3178 *the\ am__doit\ target*)
cannam@154 3179 am__include=include
cannam@154 3180 am__quote=
cannam@154 3181 _am_result=GNU
cannam@154 3182 ;;
cannam@154 3183 esac
cannam@154 3184 # Now try BSD make style include.
cannam@154 3185 if test "$am__include" = "#"; then
cannam@154 3186 echo '.include "confinc"' > confmf
cannam@154 3187 case `$am_make -s -f confmf 2> /dev/null` in #(
cannam@154 3188 *the\ am__doit\ target*)
cannam@154 3189 am__include=.include
cannam@154 3190 am__quote="\""
cannam@154 3191 _am_result=BSD
cannam@154 3192 ;;
cannam@154 3193 esac
cannam@154 3194 fi
cannam@154 3195
cannam@154 3196
cannam@154 3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
cannam@154 3198 $as_echo "$_am_result" >&6; }
cannam@154 3199 rm -f confinc confmf
cannam@154 3200
cannam@154 3201 # Check whether --enable-dependency-tracking was given.
cannam@154 3202 if test "${enable_dependency_tracking+set}" = set; then :
cannam@154 3203 enableval=$enable_dependency_tracking;
cannam@154 3204 fi
cannam@154 3205
cannam@154 3206 if test "x$enable_dependency_tracking" != xno; then
cannam@154 3207 am_depcomp="$ac_aux_dir/depcomp"
cannam@154 3208 AMDEPBACKSLASH='\'
cannam@154 3209 am__nodep='_no'
cannam@154 3210 fi
cannam@154 3211 if test "x$enable_dependency_tracking" != xno; then
cannam@154 3212 AMDEP_TRUE=
cannam@154 3213 AMDEP_FALSE='#'
cannam@154 3214 else
cannam@154 3215 AMDEP_TRUE='#'
cannam@154 3216 AMDEP_FALSE=
cannam@154 3217 fi
cannam@154 3218
cannam@154 3219
cannam@154 3220 ac_ext=c
cannam@154 3221 ac_cpp='$CPP $CPPFLAGS'
cannam@154 3222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@154 3223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@154 3224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@154 3225 if test -n "$ac_tool_prefix"; then
cannam@154 3226 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
cannam@154 3227 set dummy ${ac_tool_prefix}gcc; ac_word=$2
cannam@154 3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 3229 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 3230 if ${ac_cv_prog_CC+:} false; then :
cannam@154 3231 $as_echo_n "(cached) " >&6
cannam@154 3232 else
cannam@154 3233 if test -n "$CC"; then
cannam@154 3234 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@154 3235 else
cannam@154 3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 3237 for as_dir in $PATH
cannam@154 3238 do
cannam@154 3239 IFS=$as_save_IFS
cannam@154 3240 test -z "$as_dir" && as_dir=.
cannam@154 3241 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 3242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 3243 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cannam@154 3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 3245 break 2
cannam@154 3246 fi
cannam@154 3247 done
cannam@154 3248 done
cannam@154 3249 IFS=$as_save_IFS
cannam@154 3250
cannam@154 3251 fi
cannam@154 3252 fi
cannam@154 3253 CC=$ac_cv_prog_CC
cannam@154 3254 if test -n "$CC"; then
cannam@154 3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@154 3256 $as_echo "$CC" >&6; }
cannam@154 3257 else
cannam@154 3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 3259 $as_echo "no" >&6; }
cannam@154 3260 fi
cannam@154 3261
cannam@154 3262
cannam@154 3263 fi
cannam@154 3264 if test -z "$ac_cv_prog_CC"; then
cannam@154 3265 ac_ct_CC=$CC
cannam@154 3266 # Extract the first word of "gcc", so it can be a program name with args.
cannam@154 3267 set dummy gcc; ac_word=$2
cannam@154 3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 3269 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 3270 if ${ac_cv_prog_ac_ct_CC+:} false; then :
cannam@154 3271 $as_echo_n "(cached) " >&6
cannam@154 3272 else
cannam@154 3273 if test -n "$ac_ct_CC"; then
cannam@154 3274 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
cannam@154 3275 else
cannam@154 3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 3277 for as_dir in $PATH
cannam@154 3278 do
cannam@154 3279 IFS=$as_save_IFS
cannam@154 3280 test -z "$as_dir" && as_dir=.
cannam@154 3281 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 3282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 3283 ac_cv_prog_ac_ct_CC="gcc"
cannam@154 3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 3285 break 2
cannam@154 3286 fi
cannam@154 3287 done
cannam@154 3288 done
cannam@154 3289 IFS=$as_save_IFS
cannam@154 3290
cannam@154 3291 fi
cannam@154 3292 fi
cannam@154 3293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
cannam@154 3294 if test -n "$ac_ct_CC"; then
cannam@154 3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cannam@154 3296 $as_echo "$ac_ct_CC" >&6; }
cannam@154 3297 else
cannam@154 3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 3299 $as_echo "no" >&6; }
cannam@154 3300 fi
cannam@154 3301
cannam@154 3302 if test "x$ac_ct_CC" = x; then
cannam@154 3303 CC=""
cannam@154 3304 else
cannam@154 3305 case $cross_compiling:$ac_tool_warned in
cannam@154 3306 yes:)
cannam@154 3307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@154 3308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@154 3309 ac_tool_warned=yes ;;
cannam@154 3310 esac
cannam@154 3311 CC=$ac_ct_CC
cannam@154 3312 fi
cannam@154 3313 else
cannam@154 3314 CC="$ac_cv_prog_CC"
cannam@154 3315 fi
cannam@154 3316
cannam@154 3317 if test -z "$CC"; then
cannam@154 3318 if test -n "$ac_tool_prefix"; then
cannam@154 3319 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
cannam@154 3320 set dummy ${ac_tool_prefix}cc; ac_word=$2
cannam@154 3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 3322 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 3323 if ${ac_cv_prog_CC+:} false; then :
cannam@154 3324 $as_echo_n "(cached) " >&6
cannam@154 3325 else
cannam@154 3326 if test -n "$CC"; then
cannam@154 3327 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@154 3328 else
cannam@154 3329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 3330 for as_dir in $PATH
cannam@154 3331 do
cannam@154 3332 IFS=$as_save_IFS
cannam@154 3333 test -z "$as_dir" && as_dir=.
cannam@154 3334 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 3335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 3336 ac_cv_prog_CC="${ac_tool_prefix}cc"
cannam@154 3337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 3338 break 2
cannam@154 3339 fi
cannam@154 3340 done
cannam@154 3341 done
cannam@154 3342 IFS=$as_save_IFS
cannam@154 3343
cannam@154 3344 fi
cannam@154 3345 fi
cannam@154 3346 CC=$ac_cv_prog_CC
cannam@154 3347 if test -n "$CC"; then
cannam@154 3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@154 3349 $as_echo "$CC" >&6; }
cannam@154 3350 else
cannam@154 3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 3352 $as_echo "no" >&6; }
cannam@154 3353 fi
cannam@154 3354
cannam@154 3355
cannam@154 3356 fi
cannam@154 3357 fi
cannam@154 3358 if test -z "$CC"; then
cannam@154 3359 # Extract the first word of "cc", so it can be a program name with args.
cannam@154 3360 set dummy cc; ac_word=$2
cannam@154 3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 3362 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 3363 if ${ac_cv_prog_CC+:} false; then :
cannam@154 3364 $as_echo_n "(cached) " >&6
cannam@154 3365 else
cannam@154 3366 if test -n "$CC"; then
cannam@154 3367 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@154 3368 else
cannam@154 3369 ac_prog_rejected=no
cannam@154 3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 3371 for as_dir in $PATH
cannam@154 3372 do
cannam@154 3373 IFS=$as_save_IFS
cannam@154 3374 test -z "$as_dir" && as_dir=.
cannam@154 3375 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 3376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 3377 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
cannam@154 3378 ac_prog_rejected=yes
cannam@154 3379 continue
cannam@154 3380 fi
cannam@154 3381 ac_cv_prog_CC="cc"
cannam@154 3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 3383 break 2
cannam@154 3384 fi
cannam@154 3385 done
cannam@154 3386 done
cannam@154 3387 IFS=$as_save_IFS
cannam@154 3388
cannam@154 3389 if test $ac_prog_rejected = yes; then
cannam@154 3390 # We found a bogon in the path, so make sure we never use it.
cannam@154 3391 set dummy $ac_cv_prog_CC
cannam@154 3392 shift
cannam@154 3393 if test $# != 0; then
cannam@154 3394 # We chose a different compiler from the bogus one.
cannam@154 3395 # However, it has the same basename, so the bogon will be chosen
cannam@154 3396 # first if we set CC to just the basename; use the full file name.
cannam@154 3397 shift
cannam@154 3398 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
cannam@154 3399 fi
cannam@154 3400 fi
cannam@154 3401 fi
cannam@154 3402 fi
cannam@154 3403 CC=$ac_cv_prog_CC
cannam@154 3404 if test -n "$CC"; then
cannam@154 3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@154 3406 $as_echo "$CC" >&6; }
cannam@154 3407 else
cannam@154 3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 3409 $as_echo "no" >&6; }
cannam@154 3410 fi
cannam@154 3411
cannam@154 3412
cannam@154 3413 fi
cannam@154 3414 if test -z "$CC"; then
cannam@154 3415 if test -n "$ac_tool_prefix"; then
cannam@154 3416 for ac_prog in cl.exe
cannam@154 3417 do
cannam@154 3418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@154 3419 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@154 3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 3421 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 3422 if ${ac_cv_prog_CC+:} false; then :
cannam@154 3423 $as_echo_n "(cached) " >&6
cannam@154 3424 else
cannam@154 3425 if test -n "$CC"; then
cannam@154 3426 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@154 3427 else
cannam@154 3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 3429 for as_dir in $PATH
cannam@154 3430 do
cannam@154 3431 IFS=$as_save_IFS
cannam@154 3432 test -z "$as_dir" && as_dir=.
cannam@154 3433 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 3434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 3435 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cannam@154 3436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 3437 break 2
cannam@154 3438 fi
cannam@154 3439 done
cannam@154 3440 done
cannam@154 3441 IFS=$as_save_IFS
cannam@154 3442
cannam@154 3443 fi
cannam@154 3444 fi
cannam@154 3445 CC=$ac_cv_prog_CC
cannam@154 3446 if test -n "$CC"; then
cannam@154 3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@154 3448 $as_echo "$CC" >&6; }
cannam@154 3449 else
cannam@154 3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 3451 $as_echo "no" >&6; }
cannam@154 3452 fi
cannam@154 3453
cannam@154 3454
cannam@154 3455 test -n "$CC" && break
cannam@154 3456 done
cannam@154 3457 fi
cannam@154 3458 if test -z "$CC"; then
cannam@154 3459 ac_ct_CC=$CC
cannam@154 3460 for ac_prog in cl.exe
cannam@154 3461 do
cannam@154 3462 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@154 3463 set dummy $ac_prog; ac_word=$2
cannam@154 3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 3465 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 3466 if ${ac_cv_prog_ac_ct_CC+:} false; then :
cannam@154 3467 $as_echo_n "(cached) " >&6
cannam@154 3468 else
cannam@154 3469 if test -n "$ac_ct_CC"; then
cannam@154 3470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
cannam@154 3471 else
cannam@154 3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 3473 for as_dir in $PATH
cannam@154 3474 do
cannam@154 3475 IFS=$as_save_IFS
cannam@154 3476 test -z "$as_dir" && as_dir=.
cannam@154 3477 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 3478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 3479 ac_cv_prog_ac_ct_CC="$ac_prog"
cannam@154 3480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 3481 break 2
cannam@154 3482 fi
cannam@154 3483 done
cannam@154 3484 done
cannam@154 3485 IFS=$as_save_IFS
cannam@154 3486
cannam@154 3487 fi
cannam@154 3488 fi
cannam@154 3489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
cannam@154 3490 if test -n "$ac_ct_CC"; then
cannam@154 3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cannam@154 3492 $as_echo "$ac_ct_CC" >&6; }
cannam@154 3493 else
cannam@154 3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 3495 $as_echo "no" >&6; }
cannam@154 3496 fi
cannam@154 3497
cannam@154 3498
cannam@154 3499 test -n "$ac_ct_CC" && break
cannam@154 3500 done
cannam@154 3501
cannam@154 3502 if test "x$ac_ct_CC" = x; then
cannam@154 3503 CC=""
cannam@154 3504 else
cannam@154 3505 case $cross_compiling:$ac_tool_warned in
cannam@154 3506 yes:)
cannam@154 3507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@154 3508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@154 3509 ac_tool_warned=yes ;;
cannam@154 3510 esac
cannam@154 3511 CC=$ac_ct_CC
cannam@154 3512 fi
cannam@154 3513 fi
cannam@154 3514
cannam@154 3515 fi
cannam@154 3516
cannam@154 3517
cannam@154 3518 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@154 3519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@154 3520 as_fn_error $? "no acceptable C compiler found in \$PATH
cannam@154 3521 See \`config.log' for more details" "$LINENO" 5; }
cannam@154 3522
cannam@154 3523 # Provide some information about the compiler.
cannam@154 3524 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cannam@154 3525 set X $ac_compile
cannam@154 3526 ac_compiler=$2
cannam@154 3527 for ac_option in --version -v -V -qversion; do
cannam@154 3528 { { ac_try="$ac_compiler $ac_option >&5"
cannam@154 3529 case "(($ac_try" in
cannam@154 3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@154 3531 *) ac_try_echo=$ac_try;;
cannam@154 3532 esac
cannam@154 3533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@154 3534 $as_echo "$ac_try_echo"; } >&5
cannam@154 3535 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cannam@154 3536 ac_status=$?
cannam@154 3537 if test -s conftest.err; then
cannam@154 3538 sed '10a\
cannam@154 3539 ... rest of stderr output deleted ...
cannam@154 3540 10q' conftest.err >conftest.er1
cannam@154 3541 cat conftest.er1 >&5
cannam@154 3542 fi
cannam@154 3543 rm -f conftest.er1 conftest.err
cannam@154 3544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@154 3545 test $ac_status = 0; }
cannam@154 3546 done
cannam@154 3547
cannam@154 3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 3549 /* end confdefs.h. */
cannam@154 3550
cannam@154 3551 int
cannam@154 3552 main ()
cannam@154 3553 {
cannam@154 3554
cannam@154 3555 ;
cannam@154 3556 return 0;
cannam@154 3557 }
cannam@154 3558 _ACEOF
cannam@154 3559 ac_clean_files_save=$ac_clean_files
cannam@154 3560 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cannam@154 3561 # Try to create an executable without -o first, disregard a.out.
cannam@154 3562 # It will help us diagnose broken compilers, and finding out an intuition
cannam@154 3563 # of exeext.
cannam@154 3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
cannam@154 3565 $as_echo_n "checking whether the C compiler works... " >&6; }
cannam@154 3566 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
cannam@154 3567
cannam@154 3568 # The possible output files:
cannam@154 3569 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
cannam@154 3570
cannam@154 3571 ac_rmfiles=
cannam@154 3572 for ac_file in $ac_files
cannam@154 3573 do
cannam@154 3574 case $ac_file in
cannam@154 3575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
cannam@154 3576 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
cannam@154 3577 esac
cannam@154 3578 done
cannam@154 3579 rm -f $ac_rmfiles
cannam@154 3580
cannam@154 3581 if { { ac_try="$ac_link_default"
cannam@154 3582 case "(($ac_try" in
cannam@154 3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@154 3584 *) ac_try_echo=$ac_try;;
cannam@154 3585 esac
cannam@154 3586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@154 3587 $as_echo "$ac_try_echo"; } >&5
cannam@154 3588 (eval "$ac_link_default") 2>&5
cannam@154 3589 ac_status=$?
cannam@154 3590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@154 3591 test $ac_status = 0; }; then :
cannam@154 3592 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
cannam@154 3593 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
cannam@154 3594 # in a Makefile. We should not override ac_cv_exeext if it was cached,
cannam@154 3595 # so that the user can short-circuit this test for compilers unknown to
cannam@154 3596 # Autoconf.
cannam@154 3597 for ac_file in $ac_files ''
cannam@154 3598 do
cannam@154 3599 test -f "$ac_file" || continue
cannam@154 3600 case $ac_file in
cannam@154 3601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
cannam@154 3602 ;;
cannam@154 3603 [ab].out )
cannam@154 3604 # We found the default executable, but exeext='' is most
cannam@154 3605 # certainly right.
cannam@154 3606 break;;
cannam@154 3607 *.* )
cannam@154 3608 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cannam@154 3609 then :; else
cannam@154 3610 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
cannam@154 3611 fi
cannam@154 3612 # We set ac_cv_exeext here because the later test for it is not
cannam@154 3613 # safe: cross compilers may not add the suffix if given an `-o'
cannam@154 3614 # argument, so we may need to know it at that point already.
cannam@154 3615 # Even if this section looks crufty: it has the advantage of
cannam@154 3616 # actually working.
cannam@154 3617 break;;
cannam@154 3618 * )
cannam@154 3619 break;;
cannam@154 3620 esac
cannam@154 3621 done
cannam@154 3622 test "$ac_cv_exeext" = no && ac_cv_exeext=
cannam@154 3623
cannam@154 3624 else
cannam@154 3625 ac_file=''
cannam@154 3626 fi
cannam@154 3627 if test -z "$ac_file"; then :
cannam@154 3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 3629 $as_echo "no" >&6; }
cannam@154 3630 $as_echo "$as_me: failed program was:" >&5
cannam@154 3631 sed 's/^/| /' conftest.$ac_ext >&5
cannam@154 3632
cannam@154 3633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@154 3634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@154 3635 as_fn_error 77 "C compiler cannot create executables
cannam@154 3636 See \`config.log' for more details" "$LINENO" 5; }
cannam@154 3637 else
cannam@154 3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 3639 $as_echo "yes" >&6; }
cannam@154 3640 fi
cannam@154 3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
cannam@154 3642 $as_echo_n "checking for C compiler default output file name... " >&6; }
cannam@154 3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
cannam@154 3644 $as_echo "$ac_file" >&6; }
cannam@154 3645 ac_exeext=$ac_cv_exeext
cannam@154 3646
cannam@154 3647 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cannam@154 3648 ac_clean_files=$ac_clean_files_save
cannam@154 3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cannam@154 3650 $as_echo_n "checking for suffix of executables... " >&6; }
cannam@154 3651 if { { ac_try="$ac_link"
cannam@154 3652 case "(($ac_try" in
cannam@154 3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@154 3654 *) ac_try_echo=$ac_try;;
cannam@154 3655 esac
cannam@154 3656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@154 3657 $as_echo "$ac_try_echo"; } >&5
cannam@154 3658 (eval "$ac_link") 2>&5
cannam@154 3659 ac_status=$?
cannam@154 3660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@154 3661 test $ac_status = 0; }; then :
cannam@154 3662 # If both `conftest.exe' and `conftest' are `present' (well, observable)
cannam@154 3663 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
cannam@154 3664 # work properly (i.e., refer to `conftest.exe'), while it won't with
cannam@154 3665 # `rm'.
cannam@154 3666 for ac_file in conftest.exe conftest conftest.*; do
cannam@154 3667 test -f "$ac_file" || continue
cannam@154 3668 case $ac_file in
cannam@154 3669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
cannam@154 3670 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
cannam@154 3671 break;;
cannam@154 3672 * ) break;;
cannam@154 3673 esac
cannam@154 3674 done
cannam@154 3675 else
cannam@154 3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@154 3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@154 3678 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
cannam@154 3679 See \`config.log' for more details" "$LINENO" 5; }
cannam@154 3680 fi
cannam@154 3681 rm -f conftest conftest$ac_cv_exeext
cannam@154 3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cannam@154 3683 $as_echo "$ac_cv_exeext" >&6; }
cannam@154 3684
cannam@154 3685 rm -f conftest.$ac_ext
cannam@154 3686 EXEEXT=$ac_cv_exeext
cannam@154 3687 ac_exeext=$EXEEXT
cannam@154 3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 3689 /* end confdefs.h. */
cannam@154 3690 #include <stdio.h>
cannam@154 3691 int
cannam@154 3692 main ()
cannam@154 3693 {
cannam@154 3694 FILE *f = fopen ("conftest.out", "w");
cannam@154 3695 return ferror (f) || fclose (f) != 0;
cannam@154 3696
cannam@154 3697 ;
cannam@154 3698 return 0;
cannam@154 3699 }
cannam@154 3700 _ACEOF
cannam@154 3701 ac_clean_files="$ac_clean_files conftest.out"
cannam@154 3702 # Check that the compiler produces executables we can run. If not, either
cannam@154 3703 # the compiler is broken, or we cross compile.
cannam@154 3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
cannam@154 3705 $as_echo_n "checking whether we are cross compiling... " >&6; }
cannam@154 3706 if test "$cross_compiling" != yes; then
cannam@154 3707 { { ac_try="$ac_link"
cannam@154 3708 case "(($ac_try" in
cannam@154 3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@154 3710 *) ac_try_echo=$ac_try;;
cannam@154 3711 esac
cannam@154 3712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@154 3713 $as_echo "$ac_try_echo"; } >&5
cannam@154 3714 (eval "$ac_link") 2>&5
cannam@154 3715 ac_status=$?
cannam@154 3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@154 3717 test $ac_status = 0; }
cannam@154 3718 if { ac_try='./conftest$ac_cv_exeext'
cannam@154 3719 { { case "(($ac_try" in
cannam@154 3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@154 3721 *) ac_try_echo=$ac_try;;
cannam@154 3722 esac
cannam@154 3723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@154 3724 $as_echo "$ac_try_echo"; } >&5
cannam@154 3725 (eval "$ac_try") 2>&5
cannam@154 3726 ac_status=$?
cannam@154 3727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@154 3728 test $ac_status = 0; }; }; then
cannam@154 3729 cross_compiling=no
cannam@154 3730 else
cannam@154 3731 if test "$cross_compiling" = maybe; then
cannam@154 3732 cross_compiling=yes
cannam@154 3733 else
cannam@154 3734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@154 3735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@154 3736 as_fn_error $? "cannot run C compiled programs.
cannam@154 3737 If you meant to cross compile, use \`--host'.
cannam@154 3738 See \`config.log' for more details" "$LINENO" 5; }
cannam@154 3739 fi
cannam@154 3740 fi
cannam@154 3741 fi
cannam@154 3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
cannam@154 3743 $as_echo "$cross_compiling" >&6; }
cannam@154 3744
cannam@154 3745 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
cannam@154 3746 ac_clean_files=$ac_clean_files_save
cannam@154 3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cannam@154 3748 $as_echo_n "checking for suffix of object files... " >&6; }
cannam@154 3749 if ${ac_cv_objext+:} false; then :
cannam@154 3750 $as_echo_n "(cached) " >&6
cannam@154 3751 else
cannam@154 3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 3753 /* end confdefs.h. */
cannam@154 3754
cannam@154 3755 int
cannam@154 3756 main ()
cannam@154 3757 {
cannam@154 3758
cannam@154 3759 ;
cannam@154 3760 return 0;
cannam@154 3761 }
cannam@154 3762 _ACEOF
cannam@154 3763 rm -f conftest.o conftest.obj
cannam@154 3764 if { { ac_try="$ac_compile"
cannam@154 3765 case "(($ac_try" in
cannam@154 3766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@154 3767 *) ac_try_echo=$ac_try;;
cannam@154 3768 esac
cannam@154 3769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@154 3770 $as_echo "$ac_try_echo"; } >&5
cannam@154 3771 (eval "$ac_compile") 2>&5
cannam@154 3772 ac_status=$?
cannam@154 3773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@154 3774 test $ac_status = 0; }; then :
cannam@154 3775 for ac_file in conftest.o conftest.obj conftest.*; do
cannam@154 3776 test -f "$ac_file" || continue;
cannam@154 3777 case $ac_file in
cannam@154 3778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
cannam@154 3779 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
cannam@154 3780 break;;
cannam@154 3781 esac
cannam@154 3782 done
cannam@154 3783 else
cannam@154 3784 $as_echo "$as_me: failed program was:" >&5
cannam@154 3785 sed 's/^/| /' conftest.$ac_ext >&5
cannam@154 3786
cannam@154 3787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@154 3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@154 3789 as_fn_error $? "cannot compute suffix of object files: cannot compile
cannam@154 3790 See \`config.log' for more details" "$LINENO" 5; }
cannam@154 3791 fi
cannam@154 3792 rm -f conftest.$ac_cv_objext conftest.$ac_ext
cannam@154 3793 fi
cannam@154 3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cannam@154 3795 $as_echo "$ac_cv_objext" >&6; }
cannam@154 3796 OBJEXT=$ac_cv_objext
cannam@154 3797 ac_objext=$OBJEXT
cannam@154 3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cannam@154 3799 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cannam@154 3800 if ${ac_cv_c_compiler_gnu+:} false; then :
cannam@154 3801 $as_echo_n "(cached) " >&6
cannam@154 3802 else
cannam@154 3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 3804 /* end confdefs.h. */
cannam@154 3805
cannam@154 3806 int
cannam@154 3807 main ()
cannam@154 3808 {
cannam@154 3809 #ifndef __GNUC__
cannam@154 3810 choke me
cannam@154 3811 #endif
cannam@154 3812
cannam@154 3813 ;
cannam@154 3814 return 0;
cannam@154 3815 }
cannam@154 3816 _ACEOF
cannam@154 3817 if ac_fn_c_try_compile "$LINENO"; then :
cannam@154 3818 ac_compiler_gnu=yes
cannam@154 3819 else
cannam@154 3820 ac_compiler_gnu=no
cannam@154 3821 fi
cannam@154 3822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@154 3823 ac_cv_c_compiler_gnu=$ac_compiler_gnu
cannam@154 3824
cannam@154 3825 fi
cannam@154 3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cannam@154 3827 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
cannam@154 3828 if test $ac_compiler_gnu = yes; then
cannam@154 3829 GCC=yes
cannam@154 3830 else
cannam@154 3831 GCC=
cannam@154 3832 fi
cannam@154 3833 ac_test_CFLAGS=${CFLAGS+set}
cannam@154 3834 ac_save_CFLAGS=$CFLAGS
cannam@154 3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cannam@154 3836 $as_echo_n "checking whether $CC accepts -g... " >&6; }
cannam@154 3837 if ${ac_cv_prog_cc_g+:} false; then :
cannam@154 3838 $as_echo_n "(cached) " >&6
cannam@154 3839 else
cannam@154 3840 ac_save_c_werror_flag=$ac_c_werror_flag
cannam@154 3841 ac_c_werror_flag=yes
cannam@154 3842 ac_cv_prog_cc_g=no
cannam@154 3843 CFLAGS="-g"
cannam@154 3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 3845 /* end confdefs.h. */
cannam@154 3846
cannam@154 3847 int
cannam@154 3848 main ()
cannam@154 3849 {
cannam@154 3850
cannam@154 3851 ;
cannam@154 3852 return 0;
cannam@154 3853 }
cannam@154 3854 _ACEOF
cannam@154 3855 if ac_fn_c_try_compile "$LINENO"; then :
cannam@154 3856 ac_cv_prog_cc_g=yes
cannam@154 3857 else
cannam@154 3858 CFLAGS=""
cannam@154 3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 3860 /* end confdefs.h. */
cannam@154 3861
cannam@154 3862 int
cannam@154 3863 main ()
cannam@154 3864 {
cannam@154 3865
cannam@154 3866 ;
cannam@154 3867 return 0;
cannam@154 3868 }
cannam@154 3869 _ACEOF
cannam@154 3870 if ac_fn_c_try_compile "$LINENO"; then :
cannam@154 3871
cannam@154 3872 else
cannam@154 3873 ac_c_werror_flag=$ac_save_c_werror_flag
cannam@154 3874 CFLAGS="-g"
cannam@154 3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 3876 /* end confdefs.h. */
cannam@154 3877
cannam@154 3878 int
cannam@154 3879 main ()
cannam@154 3880 {
cannam@154 3881
cannam@154 3882 ;
cannam@154 3883 return 0;
cannam@154 3884 }
cannam@154 3885 _ACEOF
cannam@154 3886 if ac_fn_c_try_compile "$LINENO"; then :
cannam@154 3887 ac_cv_prog_cc_g=yes
cannam@154 3888 fi
cannam@154 3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@154 3890 fi
cannam@154 3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@154 3892 fi
cannam@154 3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@154 3894 ac_c_werror_flag=$ac_save_c_werror_flag
cannam@154 3895 fi
cannam@154 3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cannam@154 3897 $as_echo "$ac_cv_prog_cc_g" >&6; }
cannam@154 3898 if test "$ac_test_CFLAGS" = set; then
cannam@154 3899 CFLAGS=$ac_save_CFLAGS
cannam@154 3900 elif test $ac_cv_prog_cc_g = yes; then
cannam@154 3901 if test "$GCC" = yes; then
cannam@154 3902 CFLAGS="-g -O2"
cannam@154 3903 else
cannam@154 3904 CFLAGS="-g"
cannam@154 3905 fi
cannam@154 3906 else
cannam@154 3907 if test "$GCC" = yes; then
cannam@154 3908 CFLAGS="-O2"
cannam@154 3909 else
cannam@154 3910 CFLAGS=
cannam@154 3911 fi
cannam@154 3912 fi
cannam@154 3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cannam@154 3914 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cannam@154 3915 if ${ac_cv_prog_cc_c89+:} false; then :
cannam@154 3916 $as_echo_n "(cached) " >&6
cannam@154 3917 else
cannam@154 3918 ac_cv_prog_cc_c89=no
cannam@154 3919 ac_save_CC=$CC
cannam@154 3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 3921 /* end confdefs.h. */
cannam@154 3922 #include <stdarg.h>
cannam@154 3923 #include <stdio.h>
cannam@154 3924 struct stat;
cannam@154 3925 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
cannam@154 3926 struct buf { int x; };
cannam@154 3927 FILE * (*rcsopen) (struct buf *, struct stat *, int);
cannam@154 3928 static char *e (p, i)
cannam@154 3929 char **p;
cannam@154 3930 int i;
cannam@154 3931 {
cannam@154 3932 return p[i];
cannam@154 3933 }
cannam@154 3934 static char *f (char * (*g) (char **, int), char **p, ...)
cannam@154 3935 {
cannam@154 3936 char *s;
cannam@154 3937 va_list v;
cannam@154 3938 va_start (v,p);
cannam@154 3939 s = g (p, va_arg (v,int));
cannam@154 3940 va_end (v);
cannam@154 3941 return s;
cannam@154 3942 }
cannam@154 3943
cannam@154 3944 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
cannam@154 3945 function prototypes and stuff, but not '\xHH' hex character constants.
cannam@154 3946 These don't provoke an error unfortunately, instead are silently treated
cannam@154 3947 as 'x'. The following induces an error, until -std is added to get
cannam@154 3948 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
cannam@154 3949 array size at least. It's necessary to write '\x00'==0 to get something
cannam@154 3950 that's true only with -std. */
cannam@154 3951 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
cannam@154 3952
cannam@154 3953 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
cannam@154 3954 inside strings and character constants. */
cannam@154 3955 #define FOO(x) 'x'
cannam@154 3956 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
cannam@154 3957
cannam@154 3958 int test (int i, double x);
cannam@154 3959 struct s1 {int (*f) (int a);};
cannam@154 3960 struct s2 {int (*f) (double a);};
cannam@154 3961 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
cannam@154 3962 int argc;
cannam@154 3963 char **argv;
cannam@154 3964 int
cannam@154 3965 main ()
cannam@154 3966 {
cannam@154 3967 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
cannam@154 3968 ;
cannam@154 3969 return 0;
cannam@154 3970 }
cannam@154 3971 _ACEOF
cannam@154 3972 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
cannam@154 3973 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
cannam@154 3974 do
cannam@154 3975 CC="$ac_save_CC $ac_arg"
cannam@154 3976 if ac_fn_c_try_compile "$LINENO"; then :
cannam@154 3977 ac_cv_prog_cc_c89=$ac_arg
cannam@154 3978 fi
cannam@154 3979 rm -f core conftest.err conftest.$ac_objext
cannam@154 3980 test "x$ac_cv_prog_cc_c89" != "xno" && break
cannam@154 3981 done
cannam@154 3982 rm -f conftest.$ac_ext
cannam@154 3983 CC=$ac_save_CC
cannam@154 3984
cannam@154 3985 fi
cannam@154 3986 # AC_CACHE_VAL
cannam@154 3987 case "x$ac_cv_prog_cc_c89" in
cannam@154 3988 x)
cannam@154 3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cannam@154 3990 $as_echo "none needed" >&6; } ;;
cannam@154 3991 xno)
cannam@154 3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cannam@154 3993 $as_echo "unsupported" >&6; } ;;
cannam@154 3994 *)
cannam@154 3995 CC="$CC $ac_cv_prog_cc_c89"
cannam@154 3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cannam@154 3997 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
cannam@154 3998 esac
cannam@154 3999 if test "x$ac_cv_prog_cc_c89" != xno; then :
cannam@154 4000
cannam@154 4001 fi
cannam@154 4002
cannam@154 4003 ac_ext=c
cannam@154 4004 ac_cpp='$CPP $CPPFLAGS'
cannam@154 4005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@154 4006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@154 4007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@154 4008
cannam@154 4009 ac_ext=c
cannam@154 4010 ac_cpp='$CPP $CPPFLAGS'
cannam@154 4011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@154 4012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@154 4013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@154 4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
cannam@154 4015 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
cannam@154 4016 if ${am_cv_prog_cc_c_o+:} false; then :
cannam@154 4017 $as_echo_n "(cached) " >&6
cannam@154 4018 else
cannam@154 4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 4020 /* end confdefs.h. */
cannam@154 4021
cannam@154 4022 int
cannam@154 4023 main ()
cannam@154 4024 {
cannam@154 4025
cannam@154 4026 ;
cannam@154 4027 return 0;
cannam@154 4028 }
cannam@154 4029 _ACEOF
cannam@154 4030 # Make sure it works both with $CC and with simple cc.
cannam@154 4031 # Following AC_PROG_CC_C_O, we do the test twice because some
cannam@154 4032 # compilers refuse to overwrite an existing .o file with -o,
cannam@154 4033 # though they will create one.
cannam@154 4034 am_cv_prog_cc_c_o=yes
cannam@154 4035 for am_i in 1 2; do
cannam@154 4036 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
cannam@154 4037 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
cannam@154 4038 ac_status=$?
cannam@154 4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@154 4040 (exit $ac_status); } \
cannam@154 4041 && test -f conftest2.$ac_objext; then
cannam@154 4042 : OK
cannam@154 4043 else
cannam@154 4044 am_cv_prog_cc_c_o=no
cannam@154 4045 break
cannam@154 4046 fi
cannam@154 4047 done
cannam@154 4048 rm -f core conftest*
cannam@154 4049 unset am_i
cannam@154 4050 fi
cannam@154 4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
cannam@154 4052 $as_echo "$am_cv_prog_cc_c_o" >&6; }
cannam@154 4053 if test "$am_cv_prog_cc_c_o" != yes; then
cannam@154 4054 # Losing compiler, so override with the script.
cannam@154 4055 # FIXME: It is wrong to rewrite CC.
cannam@154 4056 # But if we don't then we get into trouble of one sort or another.
cannam@154 4057 # A longer-term fix would be to have automake use am__CC in this case,
cannam@154 4058 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
cannam@154 4059 CC="$am_aux_dir/compile $CC"
cannam@154 4060 fi
cannam@154 4061 ac_ext=c
cannam@154 4062 ac_cpp='$CPP $CPPFLAGS'
cannam@154 4063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@154 4064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@154 4065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@154 4066
cannam@154 4067
cannam@154 4068 depcc="$CC" am_compiler_list=
cannam@154 4069
cannam@154 4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cannam@154 4071 $as_echo_n "checking dependency style of $depcc... " >&6; }
cannam@154 4072 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cannam@154 4073 $as_echo_n "(cached) " >&6
cannam@154 4074 else
cannam@154 4075 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
cannam@154 4076 # We make a subdir and do the tests there. Otherwise we can end up
cannam@154 4077 # making bogus files that we don't know about and never remove. For
cannam@154 4078 # instance it was reported that on HP-UX the gcc test will end up
cannam@154 4079 # making a dummy file named 'D' -- because '-MD' means "put the output
cannam@154 4080 # in D".
cannam@154 4081 rm -rf conftest.dir
cannam@154 4082 mkdir conftest.dir
cannam@154 4083 # Copy depcomp to subdir because otherwise we won't find it if we're
cannam@154 4084 # using a relative directory.
cannam@154 4085 cp "$am_depcomp" conftest.dir
cannam@154 4086 cd conftest.dir
cannam@154 4087 # We will build objects and dependencies in a subdirectory because
cannam@154 4088 # it helps to detect inapplicable dependency modes. For instance
cannam@154 4089 # both Tru64's cc and ICC support -MD to output dependencies as a
cannam@154 4090 # side effect of compilation, but ICC will put the dependencies in
cannam@154 4091 # the current directory while Tru64 will put them in the object
cannam@154 4092 # directory.
cannam@154 4093 mkdir sub
cannam@154 4094
cannam@154 4095 am_cv_CC_dependencies_compiler_type=none
cannam@154 4096 if test "$am_compiler_list" = ""; then
cannam@154 4097 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
cannam@154 4098 fi
cannam@154 4099 am__universal=false
cannam@154 4100 case " $depcc " in #(
cannam@154 4101 *\ -arch\ *\ -arch\ *) am__universal=true ;;
cannam@154 4102 esac
cannam@154 4103
cannam@154 4104 for depmode in $am_compiler_list; do
cannam@154 4105 # Setup a source with many dependencies, because some compilers
cannam@154 4106 # like to wrap large dependency lists on column 80 (with \), and
cannam@154 4107 # we should not choose a depcomp mode which is confused by this.
cannam@154 4108 #
cannam@154 4109 # We need to recreate these files for each test, as the compiler may
cannam@154 4110 # overwrite some of them when testing with obscure command lines.
cannam@154 4111 # This happens at least with the AIX C compiler.
cannam@154 4112 : > sub/conftest.c
cannam@154 4113 for i in 1 2 3 4 5 6; do
cannam@154 4114 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cannam@154 4115 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
cannam@154 4116 # Solaris 10 /bin/sh.
cannam@154 4117 echo '/* dummy */' > sub/conftst$i.h
cannam@154 4118 done
cannam@154 4119 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
cannam@154 4120
cannam@154 4121 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cannam@154 4122 # mode. It turns out that the SunPro C++ compiler does not properly
cannam@154 4123 # handle '-M -o', and we need to detect this. Also, some Intel
cannam@154 4124 # versions had trouble with output in subdirs.
cannam@154 4125 am__obj=sub/conftest.${OBJEXT-o}
cannam@154 4126 am__minus_obj="-o $am__obj"
cannam@154 4127 case $depmode in
cannam@154 4128 gcc)
cannam@154 4129 # This depmode causes a compiler race in universal mode.
cannam@154 4130 test "$am__universal" = false || continue
cannam@154 4131 ;;
cannam@154 4132 nosideeffect)
cannam@154 4133 # After this tag, mechanisms are not by side-effect, so they'll
cannam@154 4134 # only be used when explicitly requested.
cannam@154 4135 if test "x$enable_dependency_tracking" = xyes; then
cannam@154 4136 continue
cannam@154 4137 else
cannam@154 4138 break
cannam@154 4139 fi
cannam@154 4140 ;;
cannam@154 4141 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cannam@154 4142 # This compiler won't grok '-c -o', but also, the minuso test has
cannam@154 4143 # not run yet. These depmodes are late enough in the game, and
cannam@154 4144 # so weak that their functioning should not be impacted.
cannam@154 4145 am__obj=conftest.${OBJEXT-o}
cannam@154 4146 am__minus_obj=
cannam@154 4147 ;;
cannam@154 4148 none) break ;;
cannam@154 4149 esac
cannam@154 4150 if depmode=$depmode \
cannam@154 4151 source=sub/conftest.c object=$am__obj \
cannam@154 4152 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cannam@154 4153 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
cannam@154 4154 >/dev/null 2>conftest.err &&
cannam@154 4155 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
cannam@154 4156 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cannam@154 4157 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
cannam@154 4158 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
cannam@154 4159 # icc doesn't choke on unknown options, it will just issue warnings
cannam@154 4160 # or remarks (even with -Werror). So we grep stderr for any message
cannam@154 4161 # that says an option was ignored or not supported.
cannam@154 4162 # When given -MP, icc 7.0 and 7.1 complain thusly:
cannam@154 4163 # icc: Command line warning: ignoring option '-M'; no argument required
cannam@154 4164 # The diagnosis changed in icc 8.0:
cannam@154 4165 # icc: Command line remark: option '-MP' not supported
cannam@154 4166 if (grep 'ignoring option' conftest.err ||
cannam@154 4167 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
cannam@154 4168 am_cv_CC_dependencies_compiler_type=$depmode
cannam@154 4169 break
cannam@154 4170 fi
cannam@154 4171 fi
cannam@154 4172 done
cannam@154 4173
cannam@154 4174 cd ..
cannam@154 4175 rm -rf conftest.dir
cannam@154 4176 else
cannam@154 4177 am_cv_CC_dependencies_compiler_type=none
cannam@154 4178 fi
cannam@154 4179
cannam@154 4180 fi
cannam@154 4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cannam@154 4182 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
cannam@154 4183 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
cannam@154 4184
cannam@154 4185 if
cannam@154 4186 test "x$enable_dependency_tracking" != xno \
cannam@154 4187 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
cannam@154 4188 am__fastdepCC_TRUE=
cannam@154 4189 am__fastdepCC_FALSE='#'
cannam@154 4190 else
cannam@154 4191 am__fastdepCC_TRUE='#'
cannam@154 4192 am__fastdepCC_FALSE=
cannam@154 4193 fi
cannam@154 4194
cannam@154 4195
cannam@154 4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cannam@154 4197 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
cannam@154 4198 if ${ac_cv_path_SED+:} false; then :
cannam@154 4199 $as_echo_n "(cached) " >&6
cannam@154 4200 else
cannam@154 4201 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
cannam@154 4202 for ac_i in 1 2 3 4 5 6 7; do
cannam@154 4203 ac_script="$ac_script$as_nl$ac_script"
cannam@154 4204 done
cannam@154 4205 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cannam@154 4206 { ac_script=; unset ac_script;}
cannam@154 4207 if test -z "$SED"; then
cannam@154 4208 ac_path_SED_found=false
cannam@154 4209 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@154 4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 4211 for as_dir in $PATH
cannam@154 4212 do
cannam@154 4213 IFS=$as_save_IFS
cannam@154 4214 test -z "$as_dir" && as_dir=.
cannam@154 4215 for ac_prog in sed gsed; do
cannam@154 4216 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 4217 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cannam@154 4218 as_fn_executable_p "$ac_path_SED" || continue
cannam@154 4219 # Check for GNU ac_path_SED and select it if it is found.
cannam@154 4220 # Check for GNU $ac_path_SED
cannam@154 4221 case `"$ac_path_SED" --version 2>&1` in
cannam@154 4222 *GNU*)
cannam@154 4223 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
cannam@154 4224 *)
cannam@154 4225 ac_count=0
cannam@154 4226 $as_echo_n 0123456789 >"conftest.in"
cannam@154 4227 while :
cannam@154 4228 do
cannam@154 4229 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@154 4230 mv "conftest.tmp" "conftest.in"
cannam@154 4231 cp "conftest.in" "conftest.nl"
cannam@154 4232 $as_echo '' >> "conftest.nl"
cannam@154 4233 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@154 4234 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@154 4235 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@154 4236 if test $ac_count -gt ${ac_path_SED_max-0}; then
cannam@154 4237 # Best one so far, save it but keep looking for a better one
cannam@154 4238 ac_cv_path_SED="$ac_path_SED"
cannam@154 4239 ac_path_SED_max=$ac_count
cannam@154 4240 fi
cannam@154 4241 # 10*(2^10) chars as input seems more than enough
cannam@154 4242 test $ac_count -gt 10 && break
cannam@154 4243 done
cannam@154 4244 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@154 4245 esac
cannam@154 4246
cannam@154 4247 $ac_path_SED_found && break 3
cannam@154 4248 done
cannam@154 4249 done
cannam@154 4250 done
cannam@154 4251 IFS=$as_save_IFS
cannam@154 4252 if test -z "$ac_cv_path_SED"; then
cannam@154 4253 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cannam@154 4254 fi
cannam@154 4255 else
cannam@154 4256 ac_cv_path_SED=$SED
cannam@154 4257 fi
cannam@154 4258
cannam@154 4259 fi
cannam@154 4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cannam@154 4261 $as_echo "$ac_cv_path_SED" >&6; }
cannam@154 4262 SED="$ac_cv_path_SED"
cannam@154 4263 rm -f conftest.sed
cannam@154 4264
cannam@154 4265 test -z "$SED" && SED=sed
cannam@154 4266 Xsed="$SED -e 1s/^X//"
cannam@154 4267
cannam@154 4268
cannam@154 4269
cannam@154 4270
cannam@154 4271
cannam@154 4272
cannam@154 4273
cannam@154 4274
cannam@154 4275
cannam@154 4276
cannam@154 4277
cannam@154 4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
cannam@154 4279 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cannam@154 4280 if ${ac_cv_path_GREP+:} false; then :
cannam@154 4281 $as_echo_n "(cached) " >&6
cannam@154 4282 else
cannam@154 4283 if test -z "$GREP"; then
cannam@154 4284 ac_path_GREP_found=false
cannam@154 4285 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@154 4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 4287 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
cannam@154 4288 do
cannam@154 4289 IFS=$as_save_IFS
cannam@154 4290 test -z "$as_dir" && as_dir=.
cannam@154 4291 for ac_prog in grep ggrep; do
cannam@154 4292 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 4293 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cannam@154 4294 as_fn_executable_p "$ac_path_GREP" || continue
cannam@154 4295 # Check for GNU ac_path_GREP and select it if it is found.
cannam@154 4296 # Check for GNU $ac_path_GREP
cannam@154 4297 case `"$ac_path_GREP" --version 2>&1` in
cannam@154 4298 *GNU*)
cannam@154 4299 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
cannam@154 4300 *)
cannam@154 4301 ac_count=0
cannam@154 4302 $as_echo_n 0123456789 >"conftest.in"
cannam@154 4303 while :
cannam@154 4304 do
cannam@154 4305 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@154 4306 mv "conftest.tmp" "conftest.in"
cannam@154 4307 cp "conftest.in" "conftest.nl"
cannam@154 4308 $as_echo 'GREP' >> "conftest.nl"
cannam@154 4309 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@154 4310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@154 4311 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@154 4312 if test $ac_count -gt ${ac_path_GREP_max-0}; then
cannam@154 4313 # Best one so far, save it but keep looking for a better one
cannam@154 4314 ac_cv_path_GREP="$ac_path_GREP"
cannam@154 4315 ac_path_GREP_max=$ac_count
cannam@154 4316 fi
cannam@154 4317 # 10*(2^10) chars as input seems more than enough
cannam@154 4318 test $ac_count -gt 10 && break
cannam@154 4319 done
cannam@154 4320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@154 4321 esac
cannam@154 4322
cannam@154 4323 $ac_path_GREP_found && break 3
cannam@154 4324 done
cannam@154 4325 done
cannam@154 4326 done
cannam@154 4327 IFS=$as_save_IFS
cannam@154 4328 if test -z "$ac_cv_path_GREP"; then
cannam@154 4329 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cannam@154 4330 fi
cannam@154 4331 else
cannam@154 4332 ac_cv_path_GREP=$GREP
cannam@154 4333 fi
cannam@154 4334
cannam@154 4335 fi
cannam@154 4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
cannam@154 4337 $as_echo "$ac_cv_path_GREP" >&6; }
cannam@154 4338 GREP="$ac_cv_path_GREP"
cannam@154 4339
cannam@154 4340
cannam@154 4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
cannam@154 4342 $as_echo_n "checking for egrep... " >&6; }
cannam@154 4343 if ${ac_cv_path_EGREP+:} false; then :
cannam@154 4344 $as_echo_n "(cached) " >&6
cannam@154 4345 else
cannam@154 4346 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
cannam@154 4347 then ac_cv_path_EGREP="$GREP -E"
cannam@154 4348 else
cannam@154 4349 if test -z "$EGREP"; then
cannam@154 4350 ac_path_EGREP_found=false
cannam@154 4351 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@154 4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 4353 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
cannam@154 4354 do
cannam@154 4355 IFS=$as_save_IFS
cannam@154 4356 test -z "$as_dir" && as_dir=.
cannam@154 4357 for ac_prog in egrep; do
cannam@154 4358 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 4359 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cannam@154 4360 as_fn_executable_p "$ac_path_EGREP" || continue
cannam@154 4361 # Check for GNU ac_path_EGREP and select it if it is found.
cannam@154 4362 # Check for GNU $ac_path_EGREP
cannam@154 4363 case `"$ac_path_EGREP" --version 2>&1` in
cannam@154 4364 *GNU*)
cannam@154 4365 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
cannam@154 4366 *)
cannam@154 4367 ac_count=0
cannam@154 4368 $as_echo_n 0123456789 >"conftest.in"
cannam@154 4369 while :
cannam@154 4370 do
cannam@154 4371 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@154 4372 mv "conftest.tmp" "conftest.in"
cannam@154 4373 cp "conftest.in" "conftest.nl"
cannam@154 4374 $as_echo 'EGREP' >> "conftest.nl"
cannam@154 4375 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@154 4376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@154 4377 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@154 4378 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
cannam@154 4379 # Best one so far, save it but keep looking for a better one
cannam@154 4380 ac_cv_path_EGREP="$ac_path_EGREP"
cannam@154 4381 ac_path_EGREP_max=$ac_count
cannam@154 4382 fi
cannam@154 4383 # 10*(2^10) chars as input seems more than enough
cannam@154 4384 test $ac_count -gt 10 && break
cannam@154 4385 done
cannam@154 4386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@154 4387 esac
cannam@154 4388
cannam@154 4389 $ac_path_EGREP_found && break 3
cannam@154 4390 done
cannam@154 4391 done
cannam@154 4392 done
cannam@154 4393 IFS=$as_save_IFS
cannam@154 4394 if test -z "$ac_cv_path_EGREP"; then
cannam@154 4395 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cannam@154 4396 fi
cannam@154 4397 else
cannam@154 4398 ac_cv_path_EGREP=$EGREP
cannam@154 4399 fi
cannam@154 4400
cannam@154 4401 fi
cannam@154 4402 fi
cannam@154 4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
cannam@154 4404 $as_echo "$ac_cv_path_EGREP" >&6; }
cannam@154 4405 EGREP="$ac_cv_path_EGREP"
cannam@154 4406
cannam@154 4407
cannam@154 4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cannam@154 4409 $as_echo_n "checking for fgrep... " >&6; }
cannam@154 4410 if ${ac_cv_path_FGREP+:} false; then :
cannam@154 4411 $as_echo_n "(cached) " >&6
cannam@154 4412 else
cannam@154 4413 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
cannam@154 4414 then ac_cv_path_FGREP="$GREP -F"
cannam@154 4415 else
cannam@154 4416 if test -z "$FGREP"; then
cannam@154 4417 ac_path_FGREP_found=false
cannam@154 4418 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@154 4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 4420 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
cannam@154 4421 do
cannam@154 4422 IFS=$as_save_IFS
cannam@154 4423 test -z "$as_dir" && as_dir=.
cannam@154 4424 for ac_prog in fgrep; do
cannam@154 4425 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 4426 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cannam@154 4427 as_fn_executable_p "$ac_path_FGREP" || continue
cannam@154 4428 # Check for GNU ac_path_FGREP and select it if it is found.
cannam@154 4429 # Check for GNU $ac_path_FGREP
cannam@154 4430 case `"$ac_path_FGREP" --version 2>&1` in
cannam@154 4431 *GNU*)
cannam@154 4432 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
cannam@154 4433 *)
cannam@154 4434 ac_count=0
cannam@154 4435 $as_echo_n 0123456789 >"conftest.in"
cannam@154 4436 while :
cannam@154 4437 do
cannam@154 4438 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@154 4439 mv "conftest.tmp" "conftest.in"
cannam@154 4440 cp "conftest.in" "conftest.nl"
cannam@154 4441 $as_echo 'FGREP' >> "conftest.nl"
cannam@154 4442 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@154 4443 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@154 4444 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@154 4445 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
cannam@154 4446 # Best one so far, save it but keep looking for a better one
cannam@154 4447 ac_cv_path_FGREP="$ac_path_FGREP"
cannam@154 4448 ac_path_FGREP_max=$ac_count
cannam@154 4449 fi
cannam@154 4450 # 10*(2^10) chars as input seems more than enough
cannam@154 4451 test $ac_count -gt 10 && break
cannam@154 4452 done
cannam@154 4453 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@154 4454 esac
cannam@154 4455
cannam@154 4456 $ac_path_FGREP_found && break 3
cannam@154 4457 done
cannam@154 4458 done
cannam@154 4459 done
cannam@154 4460 IFS=$as_save_IFS
cannam@154 4461 if test -z "$ac_cv_path_FGREP"; then
cannam@154 4462 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cannam@154 4463 fi
cannam@154 4464 else
cannam@154 4465 ac_cv_path_FGREP=$FGREP
cannam@154 4466 fi
cannam@154 4467
cannam@154 4468 fi
cannam@154 4469 fi
cannam@154 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cannam@154 4471 $as_echo "$ac_cv_path_FGREP" >&6; }
cannam@154 4472 FGREP="$ac_cv_path_FGREP"
cannam@154 4473
cannam@154 4474
cannam@154 4475 test -z "$GREP" && GREP=grep
cannam@154 4476
cannam@154 4477
cannam@154 4478
cannam@154 4479
cannam@154 4480
cannam@154 4481
cannam@154 4482
cannam@154 4483
cannam@154 4484
cannam@154 4485
cannam@154 4486
cannam@154 4487
cannam@154 4488
cannam@154 4489
cannam@154 4490
cannam@154 4491
cannam@154 4492
cannam@154 4493
cannam@154 4494
cannam@154 4495 # Check whether --with-gnu-ld was given.
cannam@154 4496 if test "${with_gnu_ld+set}" = set; then :
cannam@154 4497 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
cannam@154 4498 else
cannam@154 4499 with_gnu_ld=no
cannam@154 4500 fi
cannam@154 4501
cannam@154 4502 ac_prog=ld
cannam@154 4503 if test yes = "$GCC"; then
cannam@154 4504 # Check if gcc -print-prog-name=ld gives a path.
cannam@154 4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cannam@154 4506 $as_echo_n "checking for ld used by $CC... " >&6; }
cannam@154 4507 case $host in
cannam@154 4508 *-*-mingw*)
cannam@154 4509 # gcc leaves a trailing carriage return, which upsets mingw
cannam@154 4510 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
cannam@154 4511 *)
cannam@154 4512 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
cannam@154 4513 esac
cannam@154 4514 case $ac_prog in
cannam@154 4515 # Accept absolute paths.
cannam@154 4516 [\\/]* | ?:[\\/]*)
cannam@154 4517 re_direlt='/[^/][^/]*/\.\./'
cannam@154 4518 # Canonicalize the pathname of ld
cannam@154 4519 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
cannam@154 4520 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
cannam@154 4521 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cannam@154 4522 done
cannam@154 4523 test -z "$LD" && LD=$ac_prog
cannam@154 4524 ;;
cannam@154 4525 "")
cannam@154 4526 # If it fails, then pretend we aren't using GCC.
cannam@154 4527 ac_prog=ld
cannam@154 4528 ;;
cannam@154 4529 *)
cannam@154 4530 # If it is relative, then search for the first ld in PATH.
cannam@154 4531 with_gnu_ld=unknown
cannam@154 4532 ;;
cannam@154 4533 esac
cannam@154 4534 elif test yes = "$with_gnu_ld"; then
cannam@154 4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cannam@154 4536 $as_echo_n "checking for GNU ld... " >&6; }
cannam@154 4537 else
cannam@154 4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cannam@154 4539 $as_echo_n "checking for non-GNU ld... " >&6; }
cannam@154 4540 fi
cannam@154 4541 if ${lt_cv_path_LD+:} false; then :
cannam@154 4542 $as_echo_n "(cached) " >&6
cannam@154 4543 else
cannam@154 4544 if test -z "$LD"; then
cannam@154 4545 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
cannam@154 4546 for ac_dir in $PATH; do
cannam@154 4547 IFS=$lt_save_ifs
cannam@154 4548 test -z "$ac_dir" && ac_dir=.
cannam@154 4549 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
cannam@154 4550 lt_cv_path_LD=$ac_dir/$ac_prog
cannam@154 4551 # Check to see if the program is GNU ld. I'd rather use --version,
cannam@154 4552 # but apparently some variants of GNU ld only accept -v.
cannam@154 4553 # Break only if it was the GNU/non-GNU ld that we prefer.
cannam@154 4554 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
cannam@154 4555 *GNU* | *'with BFD'*)
cannam@154 4556 test no != "$with_gnu_ld" && break
cannam@154 4557 ;;
cannam@154 4558 *)
cannam@154 4559 test yes != "$with_gnu_ld" && break
cannam@154 4560 ;;
cannam@154 4561 esac
cannam@154 4562 fi
cannam@154 4563 done
cannam@154 4564 IFS=$lt_save_ifs
cannam@154 4565 else
cannam@154 4566 lt_cv_path_LD=$LD # Let the user override the test with a path.
cannam@154 4567 fi
cannam@154 4568 fi
cannam@154 4569
cannam@154 4570 LD=$lt_cv_path_LD
cannam@154 4571 if test -n "$LD"; then
cannam@154 4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cannam@154 4573 $as_echo "$LD" >&6; }
cannam@154 4574 else
cannam@154 4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 4576 $as_echo "no" >&6; }
cannam@154 4577 fi
cannam@154 4578 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cannam@154 4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cannam@154 4580 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cannam@154 4581 if ${lt_cv_prog_gnu_ld+:} false; then :
cannam@154 4582 $as_echo_n "(cached) " >&6
cannam@154 4583 else
cannam@154 4584 # I'd rather use --version here, but apparently some GNU lds only accept -v.
cannam@154 4585 case `$LD -v 2>&1 </dev/null` in
cannam@154 4586 *GNU* | *'with BFD'*)
cannam@154 4587 lt_cv_prog_gnu_ld=yes
cannam@154 4588 ;;
cannam@154 4589 *)
cannam@154 4590 lt_cv_prog_gnu_ld=no
cannam@154 4591 ;;
cannam@154 4592 esac
cannam@154 4593 fi
cannam@154 4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cannam@154 4595 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
cannam@154 4596 with_gnu_ld=$lt_cv_prog_gnu_ld
cannam@154 4597
cannam@154 4598
cannam@154 4599
cannam@154 4600
cannam@154 4601
cannam@154 4602
cannam@154 4603
cannam@154 4604
cannam@154 4605
cannam@154 4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cannam@154 4607 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cannam@154 4608 if ${lt_cv_path_NM+:} false; then :
cannam@154 4609 $as_echo_n "(cached) " >&6
cannam@154 4610 else
cannam@154 4611 if test -n "$NM"; then
cannam@154 4612 # Let the user override the test.
cannam@154 4613 lt_cv_path_NM=$NM
cannam@154 4614 else
cannam@154 4615 lt_nm_to_check=${ac_tool_prefix}nm
cannam@154 4616 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
cannam@154 4617 lt_nm_to_check="$lt_nm_to_check nm"
cannam@154 4618 fi
cannam@154 4619 for lt_tmp_nm in $lt_nm_to_check; do
cannam@154 4620 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
cannam@154 4621 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
cannam@154 4622 IFS=$lt_save_ifs
cannam@154 4623 test -z "$ac_dir" && ac_dir=.
cannam@154 4624 tmp_nm=$ac_dir/$lt_tmp_nm
cannam@154 4625 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
cannam@154 4626 # Check to see if the nm accepts a BSD-compat flag.
cannam@154 4627 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
cannam@154 4628 # nm: unknown option "B" ignored
cannam@154 4629 # Tru64's nm complains that /dev/null is an invalid object file
cannam@154 4630 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
cannam@154 4631 case $build_os in
cannam@154 4632 mingw*) lt_bad_file=conftest.nm/nofile ;;
cannam@154 4633 *) lt_bad_file=/dev/null ;;
cannam@154 4634 esac
cannam@154 4635 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
cannam@154 4636 *$lt_bad_file* | *'Invalid file or object type'*)
cannam@154 4637 lt_cv_path_NM="$tmp_nm -B"
cannam@154 4638 break 2
cannam@154 4639 ;;
cannam@154 4640 *)
cannam@154 4641 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
cannam@154 4642 */dev/null*)
cannam@154 4643 lt_cv_path_NM="$tmp_nm -p"
cannam@154 4644 break 2
cannam@154 4645 ;;
cannam@154 4646 *)
cannam@154 4647 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
cannam@154 4648 continue # so that we can try to find one that supports BSD flags
cannam@154 4649 ;;
cannam@154 4650 esac
cannam@154 4651 ;;
cannam@154 4652 esac
cannam@154 4653 fi
cannam@154 4654 done
cannam@154 4655 IFS=$lt_save_ifs
cannam@154 4656 done
cannam@154 4657 : ${lt_cv_path_NM=no}
cannam@154 4658 fi
cannam@154 4659 fi
cannam@154 4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cannam@154 4661 $as_echo "$lt_cv_path_NM" >&6; }
cannam@154 4662 if test no != "$lt_cv_path_NM"; then
cannam@154 4663 NM=$lt_cv_path_NM
cannam@154 4664 else
cannam@154 4665 # Didn't find any BSD compatible name lister, look for dumpbin.
cannam@154 4666 if test -n "$DUMPBIN"; then :
cannam@154 4667 # Let the user override the test.
cannam@154 4668 else
cannam@154 4669 if test -n "$ac_tool_prefix"; then
cannam@154 4670 for ac_prog in dumpbin "link -dump"
cannam@154 4671 do
cannam@154 4672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@154 4673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@154 4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 4675 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 4676 if ${ac_cv_prog_DUMPBIN+:} false; then :
cannam@154 4677 $as_echo_n "(cached) " >&6
cannam@154 4678 else
cannam@154 4679 if test -n "$DUMPBIN"; then
cannam@154 4680 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
cannam@154 4681 else
cannam@154 4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 4683 for as_dir in $PATH
cannam@154 4684 do
cannam@154 4685 IFS=$as_save_IFS
cannam@154 4686 test -z "$as_dir" && as_dir=.
cannam@154 4687 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 4688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 4689 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cannam@154 4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 4691 break 2
cannam@154 4692 fi
cannam@154 4693 done
cannam@154 4694 done
cannam@154 4695 IFS=$as_save_IFS
cannam@154 4696
cannam@154 4697 fi
cannam@154 4698 fi
cannam@154 4699 DUMPBIN=$ac_cv_prog_DUMPBIN
cannam@154 4700 if test -n "$DUMPBIN"; then
cannam@154 4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cannam@154 4702 $as_echo "$DUMPBIN" >&6; }
cannam@154 4703 else
cannam@154 4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 4705 $as_echo "no" >&6; }
cannam@154 4706 fi
cannam@154 4707
cannam@154 4708
cannam@154 4709 test -n "$DUMPBIN" && break
cannam@154 4710 done
cannam@154 4711 fi
cannam@154 4712 if test -z "$DUMPBIN"; then
cannam@154 4713 ac_ct_DUMPBIN=$DUMPBIN
cannam@154 4714 for ac_prog in dumpbin "link -dump"
cannam@154 4715 do
cannam@154 4716 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@154 4717 set dummy $ac_prog; ac_word=$2
cannam@154 4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 4719 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 4720 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cannam@154 4721 $as_echo_n "(cached) " >&6
cannam@154 4722 else
cannam@154 4723 if test -n "$ac_ct_DUMPBIN"; then
cannam@154 4724 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
cannam@154 4725 else
cannam@154 4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 4727 for as_dir in $PATH
cannam@154 4728 do
cannam@154 4729 IFS=$as_save_IFS
cannam@154 4730 test -z "$as_dir" && as_dir=.
cannam@154 4731 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 4732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 4733 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cannam@154 4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 4735 break 2
cannam@154 4736 fi
cannam@154 4737 done
cannam@154 4738 done
cannam@154 4739 IFS=$as_save_IFS
cannam@154 4740
cannam@154 4741 fi
cannam@154 4742 fi
cannam@154 4743 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
cannam@154 4744 if test -n "$ac_ct_DUMPBIN"; then
cannam@154 4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cannam@154 4746 $as_echo "$ac_ct_DUMPBIN" >&6; }
cannam@154 4747 else
cannam@154 4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 4749 $as_echo "no" >&6; }
cannam@154 4750 fi
cannam@154 4751
cannam@154 4752
cannam@154 4753 test -n "$ac_ct_DUMPBIN" && break
cannam@154 4754 done
cannam@154 4755
cannam@154 4756 if test "x$ac_ct_DUMPBIN" = x; then
cannam@154 4757 DUMPBIN=":"
cannam@154 4758 else
cannam@154 4759 case $cross_compiling:$ac_tool_warned in
cannam@154 4760 yes:)
cannam@154 4761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@154 4762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@154 4763 ac_tool_warned=yes ;;
cannam@154 4764 esac
cannam@154 4765 DUMPBIN=$ac_ct_DUMPBIN
cannam@154 4766 fi
cannam@154 4767 fi
cannam@154 4768
cannam@154 4769 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
cannam@154 4770 *COFF*)
cannam@154 4771 DUMPBIN="$DUMPBIN -symbols -headers"
cannam@154 4772 ;;
cannam@154 4773 *)
cannam@154 4774 DUMPBIN=:
cannam@154 4775 ;;
cannam@154 4776 esac
cannam@154 4777 fi
cannam@154 4778
cannam@154 4779 if test : != "$DUMPBIN"; then
cannam@154 4780 NM=$DUMPBIN
cannam@154 4781 fi
cannam@154 4782 fi
cannam@154 4783 test -z "$NM" && NM=nm
cannam@154 4784
cannam@154 4785
cannam@154 4786
cannam@154 4787
cannam@154 4788
cannam@154 4789
cannam@154 4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cannam@154 4791 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
cannam@154 4792 if ${lt_cv_nm_interface+:} false; then :
cannam@154 4793 $as_echo_n "(cached) " >&6
cannam@154 4794 else
cannam@154 4795 lt_cv_nm_interface="BSD nm"
cannam@154 4796 echo "int some_variable = 0;" > conftest.$ac_ext
cannam@154 4797 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cannam@154 4798 (eval "$ac_compile" 2>conftest.err)
cannam@154 4799 cat conftest.err >&5
cannam@154 4800 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cannam@154 4801 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
cannam@154 4802 cat conftest.err >&5
cannam@154 4803 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cannam@154 4804 cat conftest.out >&5
cannam@154 4805 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
cannam@154 4806 lt_cv_nm_interface="MS dumpbin"
cannam@154 4807 fi
cannam@154 4808 rm -f conftest*
cannam@154 4809 fi
cannam@154 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cannam@154 4811 $as_echo "$lt_cv_nm_interface" >&6; }
cannam@154 4812
cannam@154 4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cannam@154 4814 $as_echo_n "checking whether ln -s works... " >&6; }
cannam@154 4815 LN_S=$as_ln_s
cannam@154 4816 if test "$LN_S" = "ln -s"; then
cannam@154 4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 4818 $as_echo "yes" >&6; }
cannam@154 4819 else
cannam@154 4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cannam@154 4821 $as_echo "no, using $LN_S" >&6; }
cannam@154 4822 fi
cannam@154 4823
cannam@154 4824 # find the maximum length of command line arguments
cannam@154 4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cannam@154 4826 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
cannam@154 4827 if ${lt_cv_sys_max_cmd_len+:} false; then :
cannam@154 4828 $as_echo_n "(cached) " >&6
cannam@154 4829 else
cannam@154 4830 i=0
cannam@154 4831 teststring=ABCD
cannam@154 4832
cannam@154 4833 case $build_os in
cannam@154 4834 msdosdjgpp*)
cannam@154 4835 # On DJGPP, this test can blow up pretty badly due to problems in libc
cannam@154 4836 # (any single argument exceeding 2000 bytes causes a buffer overrun
cannam@154 4837 # during glob expansion). Even if it were fixed, the result of this
cannam@154 4838 # check would be larger than it should be.
cannam@154 4839 lt_cv_sys_max_cmd_len=12288; # 12K is about right
cannam@154 4840 ;;
cannam@154 4841
cannam@154 4842 gnu*)
cannam@154 4843 # Under GNU Hurd, this test is not required because there is
cannam@154 4844 # no limit to the length of command line arguments.
cannam@154 4845 # Libtool will interpret -1 as no limit whatsoever
cannam@154 4846 lt_cv_sys_max_cmd_len=-1;
cannam@154 4847 ;;
cannam@154 4848
cannam@154 4849 cygwin* | mingw* | cegcc*)
cannam@154 4850 # On Win9x/ME, this test blows up -- it succeeds, but takes
cannam@154 4851 # about 5 minutes as the teststring grows exponentially.
cannam@154 4852 # Worse, since 9x/ME are not pre-emptively multitasking,
cannam@154 4853 # you end up with a "frozen" computer, even though with patience
cannam@154 4854 # the test eventually succeeds (with a max line length of 256k).
cannam@154 4855 # Instead, let's just punt: use the minimum linelength reported by
cannam@154 4856 # all of the supported platforms: 8192 (on NT/2K/XP).
cannam@154 4857 lt_cv_sys_max_cmd_len=8192;
cannam@154 4858 ;;
cannam@154 4859
cannam@154 4860 mint*)
cannam@154 4861 # On MiNT this can take a long time and run out of memory.
cannam@154 4862 lt_cv_sys_max_cmd_len=8192;
cannam@154 4863 ;;
cannam@154 4864
cannam@154 4865 amigaos*)
cannam@154 4866 # On AmigaOS with pdksh, this test takes hours, literally.
cannam@154 4867 # So we just punt and use a minimum line length of 8192.
cannam@154 4868 lt_cv_sys_max_cmd_len=8192;
cannam@154 4869 ;;
cannam@154 4870
cannam@154 4871 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
cannam@154 4872 # This has been around since 386BSD, at least. Likely further.
cannam@154 4873 if test -x /sbin/sysctl; then
cannam@154 4874 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
cannam@154 4875 elif test -x /usr/sbin/sysctl; then
cannam@154 4876 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
cannam@154 4877 else
cannam@154 4878 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cannam@154 4879 fi
cannam@154 4880 # And add a safety zone
cannam@154 4881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
cannam@154 4882 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
cannam@154 4883 ;;
cannam@154 4884
cannam@154 4885 interix*)
cannam@154 4886 # We know the value 262144 and hardcode it with a safety zone (like BSD)
cannam@154 4887 lt_cv_sys_max_cmd_len=196608
cannam@154 4888 ;;
cannam@154 4889
cannam@154 4890 os2*)
cannam@154 4891 # The test takes a long time on OS/2.
cannam@154 4892 lt_cv_sys_max_cmd_len=8192
cannam@154 4893 ;;
cannam@154 4894
cannam@154 4895 osf*)
cannam@154 4896 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
cannam@154 4897 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
cannam@154 4898 # nice to cause kernel panics so lets avoid the loop below.
cannam@154 4899 # First set a reasonable default.
cannam@154 4900 lt_cv_sys_max_cmd_len=16384
cannam@154 4901 #
cannam@154 4902 if test -x /sbin/sysconfig; then
cannam@154 4903 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
cannam@154 4904 *1*) lt_cv_sys_max_cmd_len=-1 ;;
cannam@154 4905 esac
cannam@154 4906 fi
cannam@154 4907 ;;
cannam@154 4908 sco3.2v5*)
cannam@154 4909 lt_cv_sys_max_cmd_len=102400
cannam@154 4910 ;;
cannam@154 4911 sysv5* | sco5v6* | sysv4.2uw2*)
cannam@154 4912 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
cannam@154 4913 if test -n "$kargmax"; then
cannam@154 4914 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
cannam@154 4915 else
cannam@154 4916 lt_cv_sys_max_cmd_len=32768
cannam@154 4917 fi
cannam@154 4918 ;;
cannam@154 4919 *)
cannam@154 4920 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
cannam@154 4921 if test -n "$lt_cv_sys_max_cmd_len" && \
cannam@154 4922 test undefined != "$lt_cv_sys_max_cmd_len"; then
cannam@154 4923 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
cannam@154 4924 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
cannam@154 4925 else
cannam@154 4926 # Make teststring a little bigger before we do anything with it.
cannam@154 4927 # a 1K string should be a reasonable start.
cannam@154 4928 for i in 1 2 3 4 5 6 7 8; do
cannam@154 4929 teststring=$teststring$teststring
cannam@154 4930 done
cannam@154 4931 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
cannam@154 4932 # If test is not a shell built-in, we'll probably end up computing a
cannam@154 4933 # maximum length that is only half of the actual maximum length, but
cannam@154 4934 # we can't tell.
cannam@154 4935 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
cannam@154 4936 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cannam@154 4937 test 17 != "$i" # 1/2 MB should be enough
cannam@154 4938 do
cannam@154 4939 i=`expr $i + 1`
cannam@154 4940 teststring=$teststring$teststring
cannam@154 4941 done
cannam@154 4942 # Only check the string length outside the loop.
cannam@154 4943 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
cannam@154 4944 teststring=
cannam@154 4945 # Add a significant safety factor because C++ compilers can tack on
cannam@154 4946 # massive amounts of additional arguments before passing them to the
cannam@154 4947 # linker. It appears as though 1/2 is a usable value.
cannam@154 4948 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
cannam@154 4949 fi
cannam@154 4950 ;;
cannam@154 4951 esac
cannam@154 4952
cannam@154 4953 fi
cannam@154 4954
cannam@154 4955 if test -n "$lt_cv_sys_max_cmd_len"; then
cannam@154 4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cannam@154 4957 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
cannam@154 4958 else
cannam@154 4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cannam@154 4960 $as_echo "none" >&6; }
cannam@154 4961 fi
cannam@154 4962 max_cmd_len=$lt_cv_sys_max_cmd_len
cannam@154 4963
cannam@154 4964
cannam@154 4965
cannam@154 4966
cannam@154 4967
cannam@154 4968
cannam@154 4969 : ${CP="cp -f"}
cannam@154 4970 : ${MV="mv -f"}
cannam@154 4971 : ${RM="rm -f"}
cannam@154 4972
cannam@154 4973 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
cannam@154 4974 lt_unset=unset
cannam@154 4975 else
cannam@154 4976 lt_unset=false
cannam@154 4977 fi
cannam@154 4978
cannam@154 4979
cannam@154 4980
cannam@154 4981
cannam@154 4982
cannam@154 4983 # test EBCDIC or ASCII
cannam@154 4984 case `echo X|tr X '\101'` in
cannam@154 4985 A) # ASCII based system
cannam@154 4986 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
cannam@154 4987 lt_SP2NL='tr \040 \012'
cannam@154 4988 lt_NL2SP='tr \015\012 \040\040'
cannam@154 4989 ;;
cannam@154 4990 *) # EBCDIC based system
cannam@154 4991 lt_SP2NL='tr \100 \n'
cannam@154 4992 lt_NL2SP='tr \r\n \100\100'
cannam@154 4993 ;;
cannam@154 4994 esac
cannam@154 4995
cannam@154 4996
cannam@154 4997
cannam@154 4998
cannam@154 4999
cannam@154 5000
cannam@154 5001
cannam@154 5002
cannam@154 5003
cannam@154 5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
cannam@154 5005 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
cannam@154 5006 if ${lt_cv_to_host_file_cmd+:} false; then :
cannam@154 5007 $as_echo_n "(cached) " >&6
cannam@154 5008 else
cannam@154 5009 case $host in
cannam@154 5010 *-*-mingw* )
cannam@154 5011 case $build in
cannam@154 5012 *-*-mingw* ) # actually msys
cannam@154 5013 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
cannam@154 5014 ;;
cannam@154 5015 *-*-cygwin* )
cannam@154 5016 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
cannam@154 5017 ;;
cannam@154 5018 * ) # otherwise, assume *nix
cannam@154 5019 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
cannam@154 5020 ;;
cannam@154 5021 esac
cannam@154 5022 ;;
cannam@154 5023 *-*-cygwin* )
cannam@154 5024 case $build in
cannam@154 5025 *-*-mingw* ) # actually msys
cannam@154 5026 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
cannam@154 5027 ;;
cannam@154 5028 *-*-cygwin* )
cannam@154 5029 lt_cv_to_host_file_cmd=func_convert_file_noop
cannam@154 5030 ;;
cannam@154 5031 * ) # otherwise, assume *nix
cannam@154 5032 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
cannam@154 5033 ;;
cannam@154 5034 esac
cannam@154 5035 ;;
cannam@154 5036 * ) # unhandled hosts (and "normal" native builds)
cannam@154 5037 lt_cv_to_host_file_cmd=func_convert_file_noop
cannam@154 5038 ;;
cannam@154 5039 esac
cannam@154 5040
cannam@154 5041 fi
cannam@154 5042
cannam@154 5043 to_host_file_cmd=$lt_cv_to_host_file_cmd
cannam@154 5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
cannam@154 5045 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
cannam@154 5046
cannam@154 5047
cannam@154 5048
cannam@154 5049
cannam@154 5050
cannam@154 5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
cannam@154 5052 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
cannam@154 5053 if ${lt_cv_to_tool_file_cmd+:} false; then :
cannam@154 5054 $as_echo_n "(cached) " >&6
cannam@154 5055 else
cannam@154 5056 #assume ordinary cross tools, or native build.
cannam@154 5057 lt_cv_to_tool_file_cmd=func_convert_file_noop
cannam@154 5058 case $host in
cannam@154 5059 *-*-mingw* )
cannam@154 5060 case $build in
cannam@154 5061 *-*-mingw* ) # actually msys
cannam@154 5062 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
cannam@154 5063 ;;
cannam@154 5064 esac
cannam@154 5065 ;;
cannam@154 5066 esac
cannam@154 5067
cannam@154 5068 fi
cannam@154 5069
cannam@154 5070 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
cannam@154 5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
cannam@154 5072 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
cannam@154 5073
cannam@154 5074
cannam@154 5075
cannam@154 5076
cannam@154 5077
cannam@154 5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cannam@154 5079 $as_echo_n "checking for $LD option to reload object files... " >&6; }
cannam@154 5080 if ${lt_cv_ld_reload_flag+:} false; then :
cannam@154 5081 $as_echo_n "(cached) " >&6
cannam@154 5082 else
cannam@154 5083 lt_cv_ld_reload_flag='-r'
cannam@154 5084 fi
cannam@154 5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cannam@154 5086 $as_echo "$lt_cv_ld_reload_flag" >&6; }
cannam@154 5087 reload_flag=$lt_cv_ld_reload_flag
cannam@154 5088 case $reload_flag in
cannam@154 5089 "" | " "*) ;;
cannam@154 5090 *) reload_flag=" $reload_flag" ;;
cannam@154 5091 esac
cannam@154 5092 reload_cmds='$LD$reload_flag -o $output$reload_objs'
cannam@154 5093 case $host_os in
cannam@154 5094 cygwin* | mingw* | pw32* | cegcc*)
cannam@154 5095 if test yes != "$GCC"; then
cannam@154 5096 reload_cmds=false
cannam@154 5097 fi
cannam@154 5098 ;;
cannam@154 5099 darwin*)
cannam@154 5100 if test yes = "$GCC"; then
cannam@154 5101 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
cannam@154 5102 else
cannam@154 5103 reload_cmds='$LD$reload_flag -o $output$reload_objs'
cannam@154 5104 fi
cannam@154 5105 ;;
cannam@154 5106 esac
cannam@154 5107
cannam@154 5108
cannam@154 5109
cannam@154 5110
cannam@154 5111
cannam@154 5112
cannam@154 5113
cannam@154 5114
cannam@154 5115
cannam@154 5116 if test -n "$ac_tool_prefix"; then
cannam@154 5117 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
cannam@154 5118 set dummy ${ac_tool_prefix}objdump; ac_word=$2
cannam@154 5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 5120 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 5121 if ${ac_cv_prog_OBJDUMP+:} false; then :
cannam@154 5122 $as_echo_n "(cached) " >&6
cannam@154 5123 else
cannam@154 5124 if test -n "$OBJDUMP"; then
cannam@154 5125 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
cannam@154 5126 else
cannam@154 5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 5128 for as_dir in $PATH
cannam@154 5129 do
cannam@154 5130 IFS=$as_save_IFS
cannam@154 5131 test -z "$as_dir" && as_dir=.
cannam@154 5132 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 5133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 5134 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cannam@154 5135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 5136 break 2
cannam@154 5137 fi
cannam@154 5138 done
cannam@154 5139 done
cannam@154 5140 IFS=$as_save_IFS
cannam@154 5141
cannam@154 5142 fi
cannam@154 5143 fi
cannam@154 5144 OBJDUMP=$ac_cv_prog_OBJDUMP
cannam@154 5145 if test -n "$OBJDUMP"; then
cannam@154 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cannam@154 5147 $as_echo "$OBJDUMP" >&6; }
cannam@154 5148 else
cannam@154 5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 5150 $as_echo "no" >&6; }
cannam@154 5151 fi
cannam@154 5152
cannam@154 5153
cannam@154 5154 fi
cannam@154 5155 if test -z "$ac_cv_prog_OBJDUMP"; then
cannam@154 5156 ac_ct_OBJDUMP=$OBJDUMP
cannam@154 5157 # Extract the first word of "objdump", so it can be a program name with args.
cannam@154 5158 set dummy objdump; ac_word=$2
cannam@154 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 5160 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 5161 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cannam@154 5162 $as_echo_n "(cached) " >&6
cannam@154 5163 else
cannam@154 5164 if test -n "$ac_ct_OBJDUMP"; then
cannam@154 5165 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
cannam@154 5166 else
cannam@154 5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 5168 for as_dir in $PATH
cannam@154 5169 do
cannam@154 5170 IFS=$as_save_IFS
cannam@154 5171 test -z "$as_dir" && as_dir=.
cannam@154 5172 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 5173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 5174 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cannam@154 5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 5176 break 2
cannam@154 5177 fi
cannam@154 5178 done
cannam@154 5179 done
cannam@154 5180 IFS=$as_save_IFS
cannam@154 5181
cannam@154 5182 fi
cannam@154 5183 fi
cannam@154 5184 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
cannam@154 5185 if test -n "$ac_ct_OBJDUMP"; then
cannam@154 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cannam@154 5187 $as_echo "$ac_ct_OBJDUMP" >&6; }
cannam@154 5188 else
cannam@154 5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 5190 $as_echo "no" >&6; }
cannam@154 5191 fi
cannam@154 5192
cannam@154 5193 if test "x$ac_ct_OBJDUMP" = x; then
cannam@154 5194 OBJDUMP="false"
cannam@154 5195 else
cannam@154 5196 case $cross_compiling:$ac_tool_warned in
cannam@154 5197 yes:)
cannam@154 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@154 5199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@154 5200 ac_tool_warned=yes ;;
cannam@154 5201 esac
cannam@154 5202 OBJDUMP=$ac_ct_OBJDUMP
cannam@154 5203 fi
cannam@154 5204 else
cannam@154 5205 OBJDUMP="$ac_cv_prog_OBJDUMP"
cannam@154 5206 fi
cannam@154 5207
cannam@154 5208 test -z "$OBJDUMP" && OBJDUMP=objdump
cannam@154 5209
cannam@154 5210
cannam@154 5211
cannam@154 5212
cannam@154 5213
cannam@154 5214
cannam@154 5215
cannam@154 5216
cannam@154 5217
cannam@154 5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cannam@154 5219 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
cannam@154 5220 if ${lt_cv_deplibs_check_method+:} false; then :
cannam@154 5221 $as_echo_n "(cached) " >&6
cannam@154 5222 else
cannam@154 5223 lt_cv_file_magic_cmd='$MAGIC_CMD'
cannam@154 5224 lt_cv_file_magic_test_file=
cannam@154 5225 lt_cv_deplibs_check_method='unknown'
cannam@154 5226 # Need to set the preceding variable on all platforms that support
cannam@154 5227 # interlibrary dependencies.
cannam@154 5228 # 'none' -- dependencies not supported.
cannam@154 5229 # 'unknown' -- same as none, but documents that we really don't know.
cannam@154 5230 # 'pass_all' -- all dependencies passed with no checks.
cannam@154 5231 # 'test_compile' -- check by making test program.
cannam@154 5232 # 'file_magic [[regex]]' -- check by looking for files in library path
cannam@154 5233 # that responds to the $file_magic_cmd with a given extended regex.
cannam@154 5234 # If you have 'file' or equivalent on your system and you're not sure
cannam@154 5235 # whether 'pass_all' will *always* work, you probably want this one.
cannam@154 5236
cannam@154 5237 case $host_os in
cannam@154 5238 aix[4-9]*)
cannam@154 5239 lt_cv_deplibs_check_method=pass_all
cannam@154 5240 ;;
cannam@154 5241
cannam@154 5242 beos*)
cannam@154 5243 lt_cv_deplibs_check_method=pass_all
cannam@154 5244 ;;
cannam@154 5245
cannam@154 5246 bsdi[45]*)
cannam@154 5247 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
cannam@154 5248 lt_cv_file_magic_cmd='/usr/bin/file -L'
cannam@154 5249 lt_cv_file_magic_test_file=/shlib/libc.so
cannam@154 5250 ;;
cannam@154 5251
cannam@154 5252 cygwin*)
cannam@154 5253 # func_win32_libid is a shell function defined in ltmain.sh
cannam@154 5254 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
cannam@154 5255 lt_cv_file_magic_cmd='func_win32_libid'
cannam@154 5256 ;;
cannam@154 5257
cannam@154 5258 mingw* | pw32*)
cannam@154 5259 # Base MSYS/MinGW do not provide the 'file' command needed by
cannam@154 5260 # func_win32_libid shell function, so use a weaker test based on 'objdump',
cannam@154 5261 # unless we find 'file', for example because we are cross-compiling.
cannam@154 5262 if ( file / ) >/dev/null 2>&1; then
cannam@154 5263 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
cannam@154 5264 lt_cv_file_magic_cmd='func_win32_libid'
cannam@154 5265 else
cannam@154 5266 # Keep this pattern in sync with the one in func_win32_libid.
cannam@154 5267 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
cannam@154 5268 lt_cv_file_magic_cmd='$OBJDUMP -f'
cannam@154 5269 fi
cannam@154 5270 ;;
cannam@154 5271
cannam@154 5272 cegcc*)
cannam@154 5273 # use the weaker test based on 'objdump'. See mingw*.
cannam@154 5274 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
cannam@154 5275 lt_cv_file_magic_cmd='$OBJDUMP -f'
cannam@154 5276 ;;
cannam@154 5277
cannam@154 5278 darwin* | rhapsody*)
cannam@154 5279 lt_cv_deplibs_check_method=pass_all
cannam@154 5280 ;;
cannam@154 5281
cannam@154 5282 freebsd* | dragonfly*)
cannam@154 5283 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
cannam@154 5284 case $host_cpu in
cannam@154 5285 i*86 )
cannam@154 5286 # Not sure whether the presence of OpenBSD here was a mistake.
cannam@154 5287 # Let's accept both of them until this is cleared up.
cannam@154 5288 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
cannam@154 5289 lt_cv_file_magic_cmd=/usr/bin/file
cannam@154 5290 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
cannam@154 5291 ;;
cannam@154 5292 esac
cannam@154 5293 else
cannam@154 5294 lt_cv_deplibs_check_method=pass_all
cannam@154 5295 fi
cannam@154 5296 ;;
cannam@154 5297
cannam@154 5298 haiku*)
cannam@154 5299 lt_cv_deplibs_check_method=pass_all
cannam@154 5300 ;;
cannam@154 5301
cannam@154 5302 hpux10.20* | hpux11*)
cannam@154 5303 lt_cv_file_magic_cmd=/usr/bin/file
cannam@154 5304 case $host_cpu in
cannam@154 5305 ia64*)
cannam@154 5306 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
cannam@154 5307 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
cannam@154 5308 ;;
cannam@154 5309 hppa*64*)
cannam@154 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]'
cannam@154 5311 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
cannam@154 5312 ;;
cannam@154 5313 *)
cannam@154 5314 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
cannam@154 5315 lt_cv_file_magic_test_file=/usr/lib/libc.sl
cannam@154 5316 ;;
cannam@154 5317 esac
cannam@154 5318 ;;
cannam@154 5319
cannam@154 5320 interix[3-9]*)
cannam@154 5321 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
cannam@154 5322 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
cannam@154 5323 ;;
cannam@154 5324
cannam@154 5325 irix5* | irix6* | nonstopux*)
cannam@154 5326 case $LD in
cannam@154 5327 *-32|*"-32 ") libmagic=32-bit;;
cannam@154 5328 *-n32|*"-n32 ") libmagic=N32;;
cannam@154 5329 *-64|*"-64 ") libmagic=64-bit;;
cannam@154 5330 *) libmagic=never-match;;
cannam@154 5331 esac
cannam@154 5332 lt_cv_deplibs_check_method=pass_all
cannam@154 5333 ;;
cannam@154 5334
cannam@154 5335 # This must be glibc/ELF.
cannam@154 5336 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cannam@154 5337 lt_cv_deplibs_check_method=pass_all
cannam@154 5338 ;;
cannam@154 5339
cannam@154 5340 netbsd*)
cannam@154 5341 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
cannam@154 5342 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cannam@154 5343 else
cannam@154 5344 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cannam@154 5345 fi
cannam@154 5346 ;;
cannam@154 5347
cannam@154 5348 newos6*)
cannam@154 5349 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
cannam@154 5350 lt_cv_file_magic_cmd=/usr/bin/file
cannam@154 5351 lt_cv_file_magic_test_file=/usr/lib/libnls.so
cannam@154 5352 ;;
cannam@154 5353
cannam@154 5354 *nto* | *qnx*)
cannam@154 5355 lt_cv_deplibs_check_method=pass_all
cannam@154 5356 ;;
cannam@154 5357
cannam@154 5358 openbsd* | bitrig*)
cannam@154 5359 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
cannam@154 5360 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
cannam@154 5361 else
cannam@154 5362 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cannam@154 5363 fi
cannam@154 5364 ;;
cannam@154 5365
cannam@154 5366 osf3* | osf4* | osf5*)
cannam@154 5367 lt_cv_deplibs_check_method=pass_all
cannam@154 5368 ;;
cannam@154 5369
cannam@154 5370 rdos*)
cannam@154 5371 lt_cv_deplibs_check_method=pass_all
cannam@154 5372 ;;
cannam@154 5373
cannam@154 5374 solaris*)
cannam@154 5375 lt_cv_deplibs_check_method=pass_all
cannam@154 5376 ;;
cannam@154 5377
cannam@154 5378 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
cannam@154 5379 lt_cv_deplibs_check_method=pass_all
cannam@154 5380 ;;
cannam@154 5381
cannam@154 5382 sysv4 | sysv4.3*)
cannam@154 5383 case $host_vendor in
cannam@154 5384 motorola)
cannam@154 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]'
cannam@154 5386 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
cannam@154 5387 ;;
cannam@154 5388 ncr)
cannam@154 5389 lt_cv_deplibs_check_method=pass_all
cannam@154 5390 ;;
cannam@154 5391 sequent)
cannam@154 5392 lt_cv_file_magic_cmd='/bin/file'
cannam@154 5393 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
cannam@154 5394 ;;
cannam@154 5395 sni)
cannam@154 5396 lt_cv_file_magic_cmd='/bin/file'
cannam@154 5397 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
cannam@154 5398 lt_cv_file_magic_test_file=/lib/libc.so
cannam@154 5399 ;;
cannam@154 5400 siemens)
cannam@154 5401 lt_cv_deplibs_check_method=pass_all
cannam@154 5402 ;;
cannam@154 5403 pc)
cannam@154 5404 lt_cv_deplibs_check_method=pass_all
cannam@154 5405 ;;
cannam@154 5406 esac
cannam@154 5407 ;;
cannam@154 5408
cannam@154 5409 tpf*)
cannam@154 5410 lt_cv_deplibs_check_method=pass_all
cannam@154 5411 ;;
cannam@154 5412 os2*)
cannam@154 5413 lt_cv_deplibs_check_method=pass_all
cannam@154 5414 ;;
cannam@154 5415 esac
cannam@154 5416
cannam@154 5417 fi
cannam@154 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cannam@154 5419 $as_echo "$lt_cv_deplibs_check_method" >&6; }
cannam@154 5420
cannam@154 5421 file_magic_glob=
cannam@154 5422 want_nocaseglob=no
cannam@154 5423 if test "$build" = "$host"; then
cannam@154 5424 case $host_os in
cannam@154 5425 mingw* | pw32*)
cannam@154 5426 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
cannam@154 5427 want_nocaseglob=yes
cannam@154 5428 else
cannam@154 5429 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
cannam@154 5430 fi
cannam@154 5431 ;;
cannam@154 5432 esac
cannam@154 5433 fi
cannam@154 5434
cannam@154 5435 file_magic_cmd=$lt_cv_file_magic_cmd
cannam@154 5436 deplibs_check_method=$lt_cv_deplibs_check_method
cannam@154 5437 test -z "$deplibs_check_method" && deplibs_check_method=unknown
cannam@154 5438
cannam@154 5439
cannam@154 5440
cannam@154 5441
cannam@154 5442
cannam@154 5443
cannam@154 5444
cannam@154 5445
cannam@154 5446
cannam@154 5447
cannam@154 5448
cannam@154 5449
cannam@154 5450
cannam@154 5451
cannam@154 5452
cannam@154 5453
cannam@154 5454
cannam@154 5455
cannam@154 5456
cannam@154 5457
cannam@154 5458
cannam@154 5459
cannam@154 5460 if test -n "$ac_tool_prefix"; then
cannam@154 5461 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
cannam@154 5462 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cannam@154 5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 5464 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 5465 if ${ac_cv_prog_DLLTOOL+:} false; then :
cannam@154 5466 $as_echo_n "(cached) " >&6
cannam@154 5467 else
cannam@154 5468 if test -n "$DLLTOOL"; then
cannam@154 5469 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
cannam@154 5470 else
cannam@154 5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 5472 for as_dir in $PATH
cannam@154 5473 do
cannam@154 5474 IFS=$as_save_IFS
cannam@154 5475 test -z "$as_dir" && as_dir=.
cannam@154 5476 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 5477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 5478 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cannam@154 5479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 5480 break 2
cannam@154 5481 fi
cannam@154 5482 done
cannam@154 5483 done
cannam@154 5484 IFS=$as_save_IFS
cannam@154 5485
cannam@154 5486 fi
cannam@154 5487 fi
cannam@154 5488 DLLTOOL=$ac_cv_prog_DLLTOOL
cannam@154 5489 if test -n "$DLLTOOL"; then
cannam@154 5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cannam@154 5491 $as_echo "$DLLTOOL" >&6; }
cannam@154 5492 else
cannam@154 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 5494 $as_echo "no" >&6; }
cannam@154 5495 fi
cannam@154 5496
cannam@154 5497
cannam@154 5498 fi
cannam@154 5499 if test -z "$ac_cv_prog_DLLTOOL"; then
cannam@154 5500 ac_ct_DLLTOOL=$DLLTOOL
cannam@154 5501 # Extract the first word of "dlltool", so it can be a program name with args.
cannam@154 5502 set dummy dlltool; ac_word=$2
cannam@154 5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 5504 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 5505 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cannam@154 5506 $as_echo_n "(cached) " >&6
cannam@154 5507 else
cannam@154 5508 if test -n "$ac_ct_DLLTOOL"; then
cannam@154 5509 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
cannam@154 5510 else
cannam@154 5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 5512 for as_dir in $PATH
cannam@154 5513 do
cannam@154 5514 IFS=$as_save_IFS
cannam@154 5515 test -z "$as_dir" && as_dir=.
cannam@154 5516 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 5517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 5518 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cannam@154 5519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 5520 break 2
cannam@154 5521 fi
cannam@154 5522 done
cannam@154 5523 done
cannam@154 5524 IFS=$as_save_IFS
cannam@154 5525
cannam@154 5526 fi
cannam@154 5527 fi
cannam@154 5528 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
cannam@154 5529 if test -n "$ac_ct_DLLTOOL"; then
cannam@154 5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cannam@154 5531 $as_echo "$ac_ct_DLLTOOL" >&6; }
cannam@154 5532 else
cannam@154 5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 5534 $as_echo "no" >&6; }
cannam@154 5535 fi
cannam@154 5536
cannam@154 5537 if test "x$ac_ct_DLLTOOL" = x; then
cannam@154 5538 DLLTOOL="false"
cannam@154 5539 else
cannam@154 5540 case $cross_compiling:$ac_tool_warned in
cannam@154 5541 yes:)
cannam@154 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@154 5543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@154 5544 ac_tool_warned=yes ;;
cannam@154 5545 esac
cannam@154 5546 DLLTOOL=$ac_ct_DLLTOOL
cannam@154 5547 fi
cannam@154 5548 else
cannam@154 5549 DLLTOOL="$ac_cv_prog_DLLTOOL"
cannam@154 5550 fi
cannam@154 5551
cannam@154 5552 test -z "$DLLTOOL" && DLLTOOL=dlltool
cannam@154 5553
cannam@154 5554
cannam@154 5555
cannam@154 5556
cannam@154 5557
cannam@154 5558
cannam@154 5559
cannam@154 5560
cannam@154 5561
cannam@154 5562
cannam@154 5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
cannam@154 5564 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
cannam@154 5565 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
cannam@154 5566 $as_echo_n "(cached) " >&6
cannam@154 5567 else
cannam@154 5568 lt_cv_sharedlib_from_linklib_cmd='unknown'
cannam@154 5569
cannam@154 5570 case $host_os in
cannam@154 5571 cygwin* | mingw* | pw32* | cegcc*)
cannam@154 5572 # two different shell functions defined in ltmain.sh;
cannam@154 5573 # decide which one to use based on capabilities of $DLLTOOL
cannam@154 5574 case `$DLLTOOL --help 2>&1` in
cannam@154 5575 *--identify-strict*)
cannam@154 5576 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
cannam@154 5577 ;;
cannam@154 5578 *)
cannam@154 5579 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
cannam@154 5580 ;;
cannam@154 5581 esac
cannam@154 5582 ;;
cannam@154 5583 *)
cannam@154 5584 # fallback: assume linklib IS sharedlib
cannam@154 5585 lt_cv_sharedlib_from_linklib_cmd=$ECHO
cannam@154 5586 ;;
cannam@154 5587 esac
cannam@154 5588
cannam@154 5589 fi
cannam@154 5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
cannam@154 5591 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
cannam@154 5592 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
cannam@154 5593 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
cannam@154 5594
cannam@154 5595
cannam@154 5596
cannam@154 5597
cannam@154 5598
cannam@154 5599
cannam@154 5600
cannam@154 5601
cannam@154 5602 if test -n "$ac_tool_prefix"; then
cannam@154 5603 for ac_prog in ar
cannam@154 5604 do
cannam@154 5605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@154 5606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@154 5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 5608 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 5609 if ${ac_cv_prog_AR+:} false; then :
cannam@154 5610 $as_echo_n "(cached) " >&6
cannam@154 5611 else
cannam@154 5612 if test -n "$AR"; then
cannam@154 5613 ac_cv_prog_AR="$AR" # Let the user override the test.
cannam@154 5614 else
cannam@154 5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 5616 for as_dir in $PATH
cannam@154 5617 do
cannam@154 5618 IFS=$as_save_IFS
cannam@154 5619 test -z "$as_dir" && as_dir=.
cannam@154 5620 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 5621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 5622 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cannam@154 5623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 5624 break 2
cannam@154 5625 fi
cannam@154 5626 done
cannam@154 5627 done
cannam@154 5628 IFS=$as_save_IFS
cannam@154 5629
cannam@154 5630 fi
cannam@154 5631 fi
cannam@154 5632 AR=$ac_cv_prog_AR
cannam@154 5633 if test -n "$AR"; then
cannam@154 5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cannam@154 5635 $as_echo "$AR" >&6; }
cannam@154 5636 else
cannam@154 5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 5638 $as_echo "no" >&6; }
cannam@154 5639 fi
cannam@154 5640
cannam@154 5641
cannam@154 5642 test -n "$AR" && break
cannam@154 5643 done
cannam@154 5644 fi
cannam@154 5645 if test -z "$AR"; then
cannam@154 5646 ac_ct_AR=$AR
cannam@154 5647 for ac_prog in ar
cannam@154 5648 do
cannam@154 5649 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@154 5650 set dummy $ac_prog; ac_word=$2
cannam@154 5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 5652 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 5653 if ${ac_cv_prog_ac_ct_AR+:} false; then :
cannam@154 5654 $as_echo_n "(cached) " >&6
cannam@154 5655 else
cannam@154 5656 if test -n "$ac_ct_AR"; then
cannam@154 5657 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
cannam@154 5658 else
cannam@154 5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 5660 for as_dir in $PATH
cannam@154 5661 do
cannam@154 5662 IFS=$as_save_IFS
cannam@154 5663 test -z "$as_dir" && as_dir=.
cannam@154 5664 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 5665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 5666 ac_cv_prog_ac_ct_AR="$ac_prog"
cannam@154 5667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 5668 break 2
cannam@154 5669 fi
cannam@154 5670 done
cannam@154 5671 done
cannam@154 5672 IFS=$as_save_IFS
cannam@154 5673
cannam@154 5674 fi
cannam@154 5675 fi
cannam@154 5676 ac_ct_AR=$ac_cv_prog_ac_ct_AR
cannam@154 5677 if test -n "$ac_ct_AR"; then
cannam@154 5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cannam@154 5679 $as_echo "$ac_ct_AR" >&6; }
cannam@154 5680 else
cannam@154 5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 5682 $as_echo "no" >&6; }
cannam@154 5683 fi
cannam@154 5684
cannam@154 5685
cannam@154 5686 test -n "$ac_ct_AR" && break
cannam@154 5687 done
cannam@154 5688
cannam@154 5689 if test "x$ac_ct_AR" = x; then
cannam@154 5690 AR="false"
cannam@154 5691 else
cannam@154 5692 case $cross_compiling:$ac_tool_warned in
cannam@154 5693 yes:)
cannam@154 5694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@154 5695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@154 5696 ac_tool_warned=yes ;;
cannam@154 5697 esac
cannam@154 5698 AR=$ac_ct_AR
cannam@154 5699 fi
cannam@154 5700 fi
cannam@154 5701
cannam@154 5702 : ${AR=ar}
cannam@154 5703 : ${AR_FLAGS=cru}
cannam@154 5704
cannam@154 5705
cannam@154 5706
cannam@154 5707
cannam@154 5708
cannam@154 5709
cannam@154 5710
cannam@154 5711
cannam@154 5712
cannam@154 5713
cannam@154 5714
cannam@154 5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
cannam@154 5716 $as_echo_n "checking for archiver @FILE support... " >&6; }
cannam@154 5717 if ${lt_cv_ar_at_file+:} false; then :
cannam@154 5718 $as_echo_n "(cached) " >&6
cannam@154 5719 else
cannam@154 5720 lt_cv_ar_at_file=no
cannam@154 5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 5722 /* end confdefs.h. */
cannam@154 5723
cannam@154 5724 int
cannam@154 5725 main ()
cannam@154 5726 {
cannam@154 5727
cannam@154 5728 ;
cannam@154 5729 return 0;
cannam@154 5730 }
cannam@154 5731 _ACEOF
cannam@154 5732 if ac_fn_c_try_compile "$LINENO"; then :
cannam@154 5733 echo conftest.$ac_objext > conftest.lst
cannam@154 5734 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
cannam@154 5735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
cannam@154 5736 (eval $lt_ar_try) 2>&5
cannam@154 5737 ac_status=$?
cannam@154 5738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@154 5739 test $ac_status = 0; }
cannam@154 5740 if test 0 -eq "$ac_status"; then
cannam@154 5741 # Ensure the archiver fails upon bogus file names.
cannam@154 5742 rm -f conftest.$ac_objext libconftest.a
cannam@154 5743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
cannam@154 5744 (eval $lt_ar_try) 2>&5
cannam@154 5745 ac_status=$?
cannam@154 5746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@154 5747 test $ac_status = 0; }
cannam@154 5748 if test 0 -ne "$ac_status"; then
cannam@154 5749 lt_cv_ar_at_file=@
cannam@154 5750 fi
cannam@154 5751 fi
cannam@154 5752 rm -f conftest.* libconftest.a
cannam@154 5753
cannam@154 5754 fi
cannam@154 5755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@154 5756
cannam@154 5757 fi
cannam@154 5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
cannam@154 5759 $as_echo "$lt_cv_ar_at_file" >&6; }
cannam@154 5760
cannam@154 5761 if test no = "$lt_cv_ar_at_file"; then
cannam@154 5762 archiver_list_spec=
cannam@154 5763 else
cannam@154 5764 archiver_list_spec=$lt_cv_ar_at_file
cannam@154 5765 fi
cannam@154 5766
cannam@154 5767
cannam@154 5768
cannam@154 5769
cannam@154 5770
cannam@154 5771
cannam@154 5772
cannam@154 5773 if test -n "$ac_tool_prefix"; then
cannam@154 5774 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
cannam@154 5775 set dummy ${ac_tool_prefix}strip; ac_word=$2
cannam@154 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 5777 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 5778 if ${ac_cv_prog_STRIP+:} false; then :
cannam@154 5779 $as_echo_n "(cached) " >&6
cannam@154 5780 else
cannam@154 5781 if test -n "$STRIP"; then
cannam@154 5782 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
cannam@154 5783 else
cannam@154 5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 5785 for as_dir in $PATH
cannam@154 5786 do
cannam@154 5787 IFS=$as_save_IFS
cannam@154 5788 test -z "$as_dir" && as_dir=.
cannam@154 5789 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 5790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 5791 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cannam@154 5792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 5793 break 2
cannam@154 5794 fi
cannam@154 5795 done
cannam@154 5796 done
cannam@154 5797 IFS=$as_save_IFS
cannam@154 5798
cannam@154 5799 fi
cannam@154 5800 fi
cannam@154 5801 STRIP=$ac_cv_prog_STRIP
cannam@154 5802 if test -n "$STRIP"; then
cannam@154 5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cannam@154 5804 $as_echo "$STRIP" >&6; }
cannam@154 5805 else
cannam@154 5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 5807 $as_echo "no" >&6; }
cannam@154 5808 fi
cannam@154 5809
cannam@154 5810
cannam@154 5811 fi
cannam@154 5812 if test -z "$ac_cv_prog_STRIP"; then
cannam@154 5813 ac_ct_STRIP=$STRIP
cannam@154 5814 # Extract the first word of "strip", so it can be a program name with args.
cannam@154 5815 set dummy strip; ac_word=$2
cannam@154 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 5817 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 5818 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cannam@154 5819 $as_echo_n "(cached) " >&6
cannam@154 5820 else
cannam@154 5821 if test -n "$ac_ct_STRIP"; then
cannam@154 5822 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
cannam@154 5823 else
cannam@154 5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 5825 for as_dir in $PATH
cannam@154 5826 do
cannam@154 5827 IFS=$as_save_IFS
cannam@154 5828 test -z "$as_dir" && as_dir=.
cannam@154 5829 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 5830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 5831 ac_cv_prog_ac_ct_STRIP="strip"
cannam@154 5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 5833 break 2
cannam@154 5834 fi
cannam@154 5835 done
cannam@154 5836 done
cannam@154 5837 IFS=$as_save_IFS
cannam@154 5838
cannam@154 5839 fi
cannam@154 5840 fi
cannam@154 5841 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
cannam@154 5842 if test -n "$ac_ct_STRIP"; then
cannam@154 5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cannam@154 5844 $as_echo "$ac_ct_STRIP" >&6; }
cannam@154 5845 else
cannam@154 5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 5847 $as_echo "no" >&6; }
cannam@154 5848 fi
cannam@154 5849
cannam@154 5850 if test "x$ac_ct_STRIP" = x; then
cannam@154 5851 STRIP=":"
cannam@154 5852 else
cannam@154 5853 case $cross_compiling:$ac_tool_warned in
cannam@154 5854 yes:)
cannam@154 5855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@154 5856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@154 5857 ac_tool_warned=yes ;;
cannam@154 5858 esac
cannam@154 5859 STRIP=$ac_ct_STRIP
cannam@154 5860 fi
cannam@154 5861 else
cannam@154 5862 STRIP="$ac_cv_prog_STRIP"
cannam@154 5863 fi
cannam@154 5864
cannam@154 5865 test -z "$STRIP" && STRIP=:
cannam@154 5866
cannam@154 5867
cannam@154 5868
cannam@154 5869
cannam@154 5870
cannam@154 5871
cannam@154 5872 if test -n "$ac_tool_prefix"; then
cannam@154 5873 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
cannam@154 5874 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cannam@154 5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 5876 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 5877 if ${ac_cv_prog_RANLIB+:} false; then :
cannam@154 5878 $as_echo_n "(cached) " >&6
cannam@154 5879 else
cannam@154 5880 if test -n "$RANLIB"; then
cannam@154 5881 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
cannam@154 5882 else
cannam@154 5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 5884 for as_dir in $PATH
cannam@154 5885 do
cannam@154 5886 IFS=$as_save_IFS
cannam@154 5887 test -z "$as_dir" && as_dir=.
cannam@154 5888 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 5889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 5890 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cannam@154 5891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 5892 break 2
cannam@154 5893 fi
cannam@154 5894 done
cannam@154 5895 done
cannam@154 5896 IFS=$as_save_IFS
cannam@154 5897
cannam@154 5898 fi
cannam@154 5899 fi
cannam@154 5900 RANLIB=$ac_cv_prog_RANLIB
cannam@154 5901 if test -n "$RANLIB"; then
cannam@154 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cannam@154 5903 $as_echo "$RANLIB" >&6; }
cannam@154 5904 else
cannam@154 5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 5906 $as_echo "no" >&6; }
cannam@154 5907 fi
cannam@154 5908
cannam@154 5909
cannam@154 5910 fi
cannam@154 5911 if test -z "$ac_cv_prog_RANLIB"; then
cannam@154 5912 ac_ct_RANLIB=$RANLIB
cannam@154 5913 # Extract the first word of "ranlib", so it can be a program name with args.
cannam@154 5914 set dummy ranlib; ac_word=$2
cannam@154 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 5916 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 5917 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cannam@154 5918 $as_echo_n "(cached) " >&6
cannam@154 5919 else
cannam@154 5920 if test -n "$ac_ct_RANLIB"; then
cannam@154 5921 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
cannam@154 5922 else
cannam@154 5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 5924 for as_dir in $PATH
cannam@154 5925 do
cannam@154 5926 IFS=$as_save_IFS
cannam@154 5927 test -z "$as_dir" && as_dir=.
cannam@154 5928 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 5929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 5930 ac_cv_prog_ac_ct_RANLIB="ranlib"
cannam@154 5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 5932 break 2
cannam@154 5933 fi
cannam@154 5934 done
cannam@154 5935 done
cannam@154 5936 IFS=$as_save_IFS
cannam@154 5937
cannam@154 5938 fi
cannam@154 5939 fi
cannam@154 5940 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
cannam@154 5941 if test -n "$ac_ct_RANLIB"; then
cannam@154 5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cannam@154 5943 $as_echo "$ac_ct_RANLIB" >&6; }
cannam@154 5944 else
cannam@154 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 5946 $as_echo "no" >&6; }
cannam@154 5947 fi
cannam@154 5948
cannam@154 5949 if test "x$ac_ct_RANLIB" = x; then
cannam@154 5950 RANLIB=":"
cannam@154 5951 else
cannam@154 5952 case $cross_compiling:$ac_tool_warned in
cannam@154 5953 yes:)
cannam@154 5954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@154 5955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@154 5956 ac_tool_warned=yes ;;
cannam@154 5957 esac
cannam@154 5958 RANLIB=$ac_ct_RANLIB
cannam@154 5959 fi
cannam@154 5960 else
cannam@154 5961 RANLIB="$ac_cv_prog_RANLIB"
cannam@154 5962 fi
cannam@154 5963
cannam@154 5964 test -z "$RANLIB" && RANLIB=:
cannam@154 5965
cannam@154 5966
cannam@154 5967
cannam@154 5968
cannam@154 5969
cannam@154 5970
cannam@154 5971 # Determine commands to create old-style static archives.
cannam@154 5972 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
cannam@154 5973 old_postinstall_cmds='chmod 644 $oldlib'
cannam@154 5974 old_postuninstall_cmds=
cannam@154 5975
cannam@154 5976 if test -n "$RANLIB"; then
cannam@154 5977 case $host_os in
cannam@154 5978 bitrig* | openbsd*)
cannam@154 5979 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cannam@154 5980 ;;
cannam@154 5981 *)
cannam@154 5982 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cannam@154 5983 ;;
cannam@154 5984 esac
cannam@154 5985 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cannam@154 5986 fi
cannam@154 5987
cannam@154 5988 case $host_os in
cannam@154 5989 darwin*)
cannam@154 5990 lock_old_archive_extraction=yes ;;
cannam@154 5991 *)
cannam@154 5992 lock_old_archive_extraction=no ;;
cannam@154 5993 esac
cannam@154 5994
cannam@154 5995
cannam@154 5996
cannam@154 5997
cannam@154 5998
cannam@154 5999
cannam@154 6000
cannam@154 6001
cannam@154 6002
cannam@154 6003
cannam@154 6004
cannam@154 6005
cannam@154 6006
cannam@154 6007
cannam@154 6008
cannam@154 6009
cannam@154 6010
cannam@154 6011
cannam@154 6012
cannam@154 6013
cannam@154 6014
cannam@154 6015
cannam@154 6016
cannam@154 6017
cannam@154 6018
cannam@154 6019
cannam@154 6020
cannam@154 6021
cannam@154 6022
cannam@154 6023
cannam@154 6024
cannam@154 6025
cannam@154 6026
cannam@154 6027
cannam@154 6028
cannam@154 6029
cannam@154 6030
cannam@154 6031
cannam@154 6032
cannam@154 6033 # If no C compiler was specified, use CC.
cannam@154 6034 LTCC=${LTCC-"$CC"}
cannam@154 6035
cannam@154 6036 # If no C compiler flags were specified, use CFLAGS.
cannam@154 6037 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cannam@154 6038
cannam@154 6039 # Allow CC to be a program name with arguments.
cannam@154 6040 compiler=$CC
cannam@154 6041
cannam@154 6042
cannam@154 6043 # Check for command to grab the raw symbol name followed by C symbol from nm.
cannam@154 6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cannam@154 6045 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cannam@154 6046 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cannam@154 6047 $as_echo_n "(cached) " >&6
cannam@154 6048 else
cannam@154 6049
cannam@154 6050 # These are sane defaults that work on at least a few old systems.
cannam@154 6051 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
cannam@154 6052
cannam@154 6053 # Character class describing NM global symbol codes.
cannam@154 6054 symcode='[BCDEGRST]'
cannam@154 6055
cannam@154 6056 # Regexp to match symbols that can be accessed directly from C.
cannam@154 6057 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
cannam@154 6058
cannam@154 6059 # Define system-specific variables.
cannam@154 6060 case $host_os in
cannam@154 6061 aix*)
cannam@154 6062 symcode='[BCDT]'
cannam@154 6063 ;;
cannam@154 6064 cygwin* | mingw* | pw32* | cegcc*)
cannam@154 6065 symcode='[ABCDGISTW]'
cannam@154 6066 ;;
cannam@154 6067 hpux*)
cannam@154 6068 if test ia64 = "$host_cpu"; then
cannam@154 6069 symcode='[ABCDEGRST]'
cannam@154 6070 fi
cannam@154 6071 ;;
cannam@154 6072 irix* | nonstopux*)
cannam@154 6073 symcode='[BCDEGRST]'
cannam@154 6074 ;;
cannam@154 6075 osf*)
cannam@154 6076 symcode='[BCDEGQRST]'
cannam@154 6077 ;;
cannam@154 6078 solaris*)
cannam@154 6079 symcode='[BDRT]'
cannam@154 6080 ;;
cannam@154 6081 sco3.2v5*)
cannam@154 6082 symcode='[DT]'
cannam@154 6083 ;;
cannam@154 6084 sysv4.2uw2*)
cannam@154 6085 symcode='[DT]'
cannam@154 6086 ;;
cannam@154 6087 sysv5* | sco5v6* | unixware* | OpenUNIX*)
cannam@154 6088 symcode='[ABDT]'
cannam@154 6089 ;;
cannam@154 6090 sysv4)
cannam@154 6091 symcode='[DFNSTU]'
cannam@154 6092 ;;
cannam@154 6093 esac
cannam@154 6094
cannam@154 6095 # If we're using GNU nm, then use its standard symbol codes.
cannam@154 6096 case `$NM -V 2>&1` in
cannam@154 6097 *GNU* | *'with BFD'*)
cannam@154 6098 symcode='[ABCDGIRSTW]' ;;
cannam@154 6099 esac
cannam@154 6100
cannam@154 6101 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
cannam@154 6102 # Gets list of data symbols to import.
cannam@154 6103 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
cannam@154 6104 # Adjust the below global symbol transforms to fixup imported variables.
cannam@154 6105 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
cannam@154 6106 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
cannam@154 6107 lt_c_name_lib_hook="\
cannam@154 6108 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
cannam@154 6109 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
cannam@154 6110 else
cannam@154 6111 # Disable hooks by default.
cannam@154 6112 lt_cv_sys_global_symbol_to_import=
cannam@154 6113 lt_cdecl_hook=
cannam@154 6114 lt_c_name_hook=
cannam@154 6115 lt_c_name_lib_hook=
cannam@154 6116 fi
cannam@154 6117
cannam@154 6118 # Transform an extracted symbol line into a proper C declaration.
cannam@154 6119 # Some systems (esp. on ia64) link data and code symbols differently,
cannam@154 6120 # so use this general approach.
cannam@154 6121 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
cannam@154 6122 $lt_cdecl_hook\
cannam@154 6123 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
cannam@154 6124 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
cannam@154 6125
cannam@154 6126 # Transform an extracted symbol line into symbol name and symbol address
cannam@154 6127 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
cannam@154 6128 $lt_c_name_hook\
cannam@154 6129 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
cannam@154 6130 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
cannam@154 6131
cannam@154 6132 # Transform an extracted symbol line into symbol name with lib prefix and
cannam@154 6133 # symbol address.
cannam@154 6134 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
cannam@154 6135 $lt_c_name_lib_hook\
cannam@154 6136 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
cannam@154 6137 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
cannam@154 6138 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
cannam@154 6139
cannam@154 6140 # Handle CRLF in mingw tool chain
cannam@154 6141 opt_cr=
cannam@154 6142 case $build_os in
cannam@154 6143 mingw*)
cannam@154 6144 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
cannam@154 6145 ;;
cannam@154 6146 esac
cannam@154 6147
cannam@154 6148 # Try without a prefix underscore, then with it.
cannam@154 6149 for ac_symprfx in "" "_"; do
cannam@154 6150
cannam@154 6151 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
cannam@154 6152 symxfrm="\\1 $ac_symprfx\\2 \\2"
cannam@154 6153
cannam@154 6154 # Write the raw and C identifiers.
cannam@154 6155 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
cannam@154 6156 # Fake it for dumpbin and say T for any non-static function,
cannam@154 6157 # D for any global variable and I for any imported variable.
cannam@154 6158 # Also find C++ and __fastcall symbols from MSVC++,
cannam@154 6159 # which start with @ or ?.
cannam@154 6160 lt_cv_sys_global_symbol_pipe="$AWK '"\
cannam@154 6161 " {last_section=section; section=\$ 3};"\
cannam@154 6162 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cannam@154 6163 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
cannam@154 6164 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
cannam@154 6165 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
cannam@154 6166 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
cannam@154 6167 " \$ 0!~/External *\|/{next};"\
cannam@154 6168 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
cannam@154 6169 " {if(hide[section]) next};"\
cannam@154 6170 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
cannam@154 6171 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
cannam@154 6172 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
cannam@154 6173 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
cannam@154 6174 " ' prfx=^$ac_symprfx"
cannam@154 6175 else
cannam@154 6176 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
cannam@154 6177 fi
cannam@154 6178 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cannam@154 6179
cannam@154 6180 # Check to see that the pipe works correctly.
cannam@154 6181 pipe_works=no
cannam@154 6182
cannam@154 6183 rm -f conftest*
cannam@154 6184 cat > conftest.$ac_ext <<_LT_EOF
cannam@154 6185 #ifdef __cplusplus
cannam@154 6186 extern "C" {
cannam@154 6187 #endif
cannam@154 6188 char nm_test_var;
cannam@154 6189 void nm_test_func(void);
cannam@154 6190 void nm_test_func(void){}
cannam@154 6191 #ifdef __cplusplus
cannam@154 6192 }
cannam@154 6193 #endif
cannam@154 6194 int main(){nm_test_var='a';nm_test_func();return(0);}
cannam@154 6195 _LT_EOF
cannam@154 6196
cannam@154 6197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@154 6198 (eval $ac_compile) 2>&5
cannam@154 6199 ac_status=$?
cannam@154 6200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@154 6201 test $ac_status = 0; }; then
cannam@154 6202 # Now try to grab the symbols.
cannam@154 6203 nlist=conftest.nm
cannam@154 6204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
cannam@154 6205 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cannam@154 6206 ac_status=$?
cannam@154 6207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@154 6208 test $ac_status = 0; } && test -s "$nlist"; then
cannam@154 6209 # Try sorting and uniquifying the output.
cannam@154 6210 if sort "$nlist" | uniq > "$nlist"T; then
cannam@154 6211 mv -f "$nlist"T "$nlist"
cannam@154 6212 else
cannam@154 6213 rm -f "$nlist"T
cannam@154 6214 fi
cannam@154 6215
cannam@154 6216 # Make sure that we snagged all the symbols we need.
cannam@154 6217 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
cannam@154 6218 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
cannam@154 6219 cat <<_LT_EOF > conftest.$ac_ext
cannam@154 6220 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
cannam@154 6221 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
cannam@154 6222 /* DATA imports from DLLs on WIN32 can't be const, because runtime
cannam@154 6223 relocations are performed -- see ld's documentation on pseudo-relocs. */
cannam@154 6224 # define LT_DLSYM_CONST
cannam@154 6225 #elif defined __osf__
cannam@154 6226 /* This system does not cope well with relocations in const data. */
cannam@154 6227 # define LT_DLSYM_CONST
cannam@154 6228 #else
cannam@154 6229 # define LT_DLSYM_CONST const
cannam@154 6230 #endif
cannam@154 6231
cannam@154 6232 #ifdef __cplusplus
cannam@154 6233 extern "C" {
cannam@154 6234 #endif
cannam@154 6235
cannam@154 6236 _LT_EOF
cannam@154 6237 # Now generate the symbol file.
cannam@154 6238 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
cannam@154 6239
cannam@154 6240 cat <<_LT_EOF >> conftest.$ac_ext
cannam@154 6241
cannam@154 6242 /* The mapping between symbol names and symbols. */
cannam@154 6243 LT_DLSYM_CONST struct {
cannam@154 6244 const char *name;
cannam@154 6245 void *address;
cannam@154 6246 }
cannam@154 6247 lt__PROGRAM__LTX_preloaded_symbols[] =
cannam@154 6248 {
cannam@154 6249 { "@PROGRAM@", (void *) 0 },
cannam@154 6250 _LT_EOF
cannam@154 6251 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
cannam@154 6252 cat <<\_LT_EOF >> conftest.$ac_ext
cannam@154 6253 {0, (void *) 0}
cannam@154 6254 };
cannam@154 6255
cannam@154 6256 /* This works around a problem in FreeBSD linker */
cannam@154 6257 #ifdef FREEBSD_WORKAROUND
cannam@154 6258 static const void *lt_preloaded_setup() {
cannam@154 6259 return lt__PROGRAM__LTX_preloaded_symbols;
cannam@154 6260 }
cannam@154 6261 #endif
cannam@154 6262
cannam@154 6263 #ifdef __cplusplus
cannam@154 6264 }
cannam@154 6265 #endif
cannam@154 6266 _LT_EOF
cannam@154 6267 # Now try linking the two files.
cannam@154 6268 mv conftest.$ac_objext conftstm.$ac_objext
cannam@154 6269 lt_globsym_save_LIBS=$LIBS
cannam@154 6270 lt_globsym_save_CFLAGS=$CFLAGS
cannam@154 6271 LIBS=conftstm.$ac_objext
cannam@154 6272 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cannam@154 6273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cannam@154 6274 (eval $ac_link) 2>&5
cannam@154 6275 ac_status=$?
cannam@154 6276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@154 6277 test $ac_status = 0; } && test -s conftest$ac_exeext; then
cannam@154 6278 pipe_works=yes
cannam@154 6279 fi
cannam@154 6280 LIBS=$lt_globsym_save_LIBS
cannam@154 6281 CFLAGS=$lt_globsym_save_CFLAGS
cannam@154 6282 else
cannam@154 6283 echo "cannot find nm_test_func in $nlist" >&5
cannam@154 6284 fi
cannam@154 6285 else
cannam@154 6286 echo "cannot find nm_test_var in $nlist" >&5
cannam@154 6287 fi
cannam@154 6288 else
cannam@154 6289 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
cannam@154 6290 fi
cannam@154 6291 else
cannam@154 6292 echo "$progname: failed program was:" >&5
cannam@154 6293 cat conftest.$ac_ext >&5
cannam@154 6294 fi
cannam@154 6295 rm -rf conftest* conftst*
cannam@154 6296
cannam@154 6297 # Do not use the global_symbol_pipe unless it works.
cannam@154 6298 if test yes = "$pipe_works"; then
cannam@154 6299 break
cannam@154 6300 else
cannam@154 6301 lt_cv_sys_global_symbol_pipe=
cannam@154 6302 fi
cannam@154 6303 done
cannam@154 6304
cannam@154 6305 fi
cannam@154 6306
cannam@154 6307 if test -z "$lt_cv_sys_global_symbol_pipe"; then
cannam@154 6308 lt_cv_sys_global_symbol_to_cdecl=
cannam@154 6309 fi
cannam@154 6310 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cannam@154 6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cannam@154 6312 $as_echo "failed" >&6; }
cannam@154 6313 else
cannam@154 6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cannam@154 6315 $as_echo "ok" >&6; }
cannam@154 6316 fi
cannam@154 6317
cannam@154 6318 # Response file support.
cannam@154 6319 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
cannam@154 6320 nm_file_list_spec='@'
cannam@154 6321 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
cannam@154 6322 nm_file_list_spec='@'
cannam@154 6323 fi
cannam@154 6324
cannam@154 6325
cannam@154 6326
cannam@154 6327
cannam@154 6328
cannam@154 6329
cannam@154 6330
cannam@154 6331
cannam@154 6332
cannam@154 6333
cannam@154 6334
cannam@154 6335
cannam@154 6336
cannam@154 6337
cannam@154 6338
cannam@154 6339
cannam@154 6340
cannam@154 6341
cannam@154 6342
cannam@154 6343
cannam@154 6344
cannam@154 6345
cannam@154 6346
cannam@154 6347
cannam@154 6348
cannam@154 6349
cannam@154 6350
cannam@154 6351
cannam@154 6352
cannam@154 6353
cannam@154 6354
cannam@154 6355
cannam@154 6356
cannam@154 6357
cannam@154 6358
cannam@154 6359
cannam@154 6360
cannam@154 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
cannam@154 6362 $as_echo_n "checking for sysroot... " >&6; }
cannam@154 6363
cannam@154 6364 # Check whether --with-sysroot was given.
cannam@154 6365 if test "${with_sysroot+set}" = set; then :
cannam@154 6366 withval=$with_sysroot;
cannam@154 6367 else
cannam@154 6368 with_sysroot=no
cannam@154 6369 fi
cannam@154 6370
cannam@154 6371
cannam@154 6372 lt_sysroot=
cannam@154 6373 case $with_sysroot in #(
cannam@154 6374 yes)
cannam@154 6375 if test yes = "$GCC"; then
cannam@154 6376 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
cannam@154 6377 fi
cannam@154 6378 ;; #(
cannam@154 6379 /*)
cannam@154 6380 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
cannam@154 6381 ;; #(
cannam@154 6382 no|'')
cannam@154 6383 ;; #(
cannam@154 6384 *)
cannam@154 6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
cannam@154 6386 $as_echo "$with_sysroot" >&6; }
cannam@154 6387 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
cannam@154 6388 ;;
cannam@154 6389 esac
cannam@154 6390
cannam@154 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
cannam@154 6392 $as_echo "${lt_sysroot:-no}" >&6; }
cannam@154 6393
cannam@154 6394
cannam@154 6395
cannam@154 6396
cannam@154 6397
cannam@154 6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
cannam@154 6399 $as_echo_n "checking for a working dd... " >&6; }
cannam@154 6400 if ${ac_cv_path_lt_DD+:} false; then :
cannam@154 6401 $as_echo_n "(cached) " >&6
cannam@154 6402 else
cannam@154 6403 printf 0123456789abcdef0123456789abcdef >conftest.i
cannam@154 6404 cat conftest.i conftest.i >conftest2.i
cannam@154 6405 : ${lt_DD:=$DD}
cannam@154 6406 if test -z "$lt_DD"; then
cannam@154 6407 ac_path_lt_DD_found=false
cannam@154 6408 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@154 6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 6410 for as_dir in $PATH
cannam@154 6411 do
cannam@154 6412 IFS=$as_save_IFS
cannam@154 6413 test -z "$as_dir" && as_dir=.
cannam@154 6414 for ac_prog in dd; do
cannam@154 6415 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 6416 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
cannam@154 6417 as_fn_executable_p "$ac_path_lt_DD" || continue
cannam@154 6418 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
cannam@154 6419 cmp -s conftest.i conftest.out \
cannam@154 6420 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
cannam@154 6421 fi
cannam@154 6422 $ac_path_lt_DD_found && break 3
cannam@154 6423 done
cannam@154 6424 done
cannam@154 6425 done
cannam@154 6426 IFS=$as_save_IFS
cannam@154 6427 if test -z "$ac_cv_path_lt_DD"; then
cannam@154 6428 :
cannam@154 6429 fi
cannam@154 6430 else
cannam@154 6431 ac_cv_path_lt_DD=$lt_DD
cannam@154 6432 fi
cannam@154 6433
cannam@154 6434 rm -f conftest.i conftest2.i conftest.out
cannam@154 6435 fi
cannam@154 6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
cannam@154 6437 $as_echo "$ac_cv_path_lt_DD" >&6; }
cannam@154 6438
cannam@154 6439
cannam@154 6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
cannam@154 6441 $as_echo_n "checking how to truncate binary pipes... " >&6; }
cannam@154 6442 if ${lt_cv_truncate_bin+:} false; then :
cannam@154 6443 $as_echo_n "(cached) " >&6
cannam@154 6444 else
cannam@154 6445 printf 0123456789abcdef0123456789abcdef >conftest.i
cannam@154 6446 cat conftest.i conftest.i >conftest2.i
cannam@154 6447 lt_cv_truncate_bin=
cannam@154 6448 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
cannam@154 6449 cmp -s conftest.i conftest.out \
cannam@154 6450 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
cannam@154 6451 fi
cannam@154 6452 rm -f conftest.i conftest2.i conftest.out
cannam@154 6453 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
cannam@154 6454 fi
cannam@154 6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
cannam@154 6456 $as_echo "$lt_cv_truncate_bin" >&6; }
cannam@154 6457
cannam@154 6458
cannam@154 6459
cannam@154 6460
cannam@154 6461
cannam@154 6462
cannam@154 6463
cannam@154 6464 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
cannam@154 6465 func_cc_basename ()
cannam@154 6466 {
cannam@154 6467 for cc_temp in $*""; do
cannam@154 6468 case $cc_temp in
cannam@154 6469 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
cannam@154 6470 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
cannam@154 6471 \-*) ;;
cannam@154 6472 *) break;;
cannam@154 6473 esac
cannam@154 6474 done
cannam@154 6475 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cannam@154 6476 }
cannam@154 6477
cannam@154 6478 # Check whether --enable-libtool-lock was given.
cannam@154 6479 if test "${enable_libtool_lock+set}" = set; then :
cannam@154 6480 enableval=$enable_libtool_lock;
cannam@154 6481 fi
cannam@154 6482
cannam@154 6483 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
cannam@154 6484
cannam@154 6485 # Some flags need to be propagated to the compiler or linker for good
cannam@154 6486 # libtool support.
cannam@154 6487 case $host in
cannam@154 6488 ia64-*-hpux*)
cannam@154 6489 # Find out what ABI is being produced by ac_compile, and set mode
cannam@154 6490 # options accordingly.
cannam@154 6491 echo 'int i;' > conftest.$ac_ext
cannam@154 6492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@154 6493 (eval $ac_compile) 2>&5
cannam@154 6494 ac_status=$?
cannam@154 6495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@154 6496 test $ac_status = 0; }; then
cannam@154 6497 case `/usr/bin/file conftest.$ac_objext` in
cannam@154 6498 *ELF-32*)
cannam@154 6499 HPUX_IA64_MODE=32
cannam@154 6500 ;;
cannam@154 6501 *ELF-64*)
cannam@154 6502 HPUX_IA64_MODE=64
cannam@154 6503 ;;
cannam@154 6504 esac
cannam@154 6505 fi
cannam@154 6506 rm -rf conftest*
cannam@154 6507 ;;
cannam@154 6508 *-*-irix6*)
cannam@154 6509 # Find out what ABI is being produced by ac_compile, and set linker
cannam@154 6510 # options accordingly.
cannam@154 6511 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cannam@154 6512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@154 6513 (eval $ac_compile) 2>&5
cannam@154 6514 ac_status=$?
cannam@154 6515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@154 6516 test $ac_status = 0; }; then
cannam@154 6517 if test yes = "$lt_cv_prog_gnu_ld"; then
cannam@154 6518 case `/usr/bin/file conftest.$ac_objext` in
cannam@154 6519 *32-bit*)
cannam@154 6520 LD="${LD-ld} -melf32bsmip"
cannam@154 6521 ;;
cannam@154 6522 *N32*)
cannam@154 6523 LD="${LD-ld} -melf32bmipn32"
cannam@154 6524 ;;
cannam@154 6525 *64-bit*)
cannam@154 6526 LD="${LD-ld} -melf64bmip"
cannam@154 6527 ;;
cannam@154 6528 esac
cannam@154 6529 else
cannam@154 6530 case `/usr/bin/file conftest.$ac_objext` in
cannam@154 6531 *32-bit*)
cannam@154 6532 LD="${LD-ld} -32"
cannam@154 6533 ;;
cannam@154 6534 *N32*)
cannam@154 6535 LD="${LD-ld} -n32"
cannam@154 6536 ;;
cannam@154 6537 *64-bit*)
cannam@154 6538 LD="${LD-ld} -64"
cannam@154 6539 ;;
cannam@154 6540 esac
cannam@154 6541 fi
cannam@154 6542 fi
cannam@154 6543 rm -rf conftest*
cannam@154 6544 ;;
cannam@154 6545
cannam@154 6546 mips64*-*linux*)
cannam@154 6547 # Find out what ABI is being produced by ac_compile, and set linker
cannam@154 6548 # options accordingly.
cannam@154 6549 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cannam@154 6550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@154 6551 (eval $ac_compile) 2>&5
cannam@154 6552 ac_status=$?
cannam@154 6553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@154 6554 test $ac_status = 0; }; then
cannam@154 6555 emul=elf
cannam@154 6556 case `/usr/bin/file conftest.$ac_objext` in
cannam@154 6557 *32-bit*)
cannam@154 6558 emul="${emul}32"
cannam@154 6559 ;;
cannam@154 6560 *64-bit*)
cannam@154 6561 emul="${emul}64"
cannam@154 6562 ;;
cannam@154 6563 esac
cannam@154 6564 case `/usr/bin/file conftest.$ac_objext` in
cannam@154 6565 *MSB*)
cannam@154 6566 emul="${emul}btsmip"
cannam@154 6567 ;;
cannam@154 6568 *LSB*)
cannam@154 6569 emul="${emul}ltsmip"
cannam@154 6570 ;;
cannam@154 6571 esac
cannam@154 6572 case `/usr/bin/file conftest.$ac_objext` in
cannam@154 6573 *N32*)
cannam@154 6574 emul="${emul}n32"
cannam@154 6575 ;;
cannam@154 6576 esac
cannam@154 6577 LD="${LD-ld} -m $emul"
cannam@154 6578 fi
cannam@154 6579 rm -rf conftest*
cannam@154 6580 ;;
cannam@154 6581
cannam@154 6582 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cannam@154 6583 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
cannam@154 6584 # Find out what ABI is being produced by ac_compile, and set linker
cannam@154 6585 # options accordingly. Note that the listed cases only cover the
cannam@154 6586 # situations where additional linker options are needed (such as when
cannam@154 6587 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
cannam@154 6588 # vice versa); the common cases where no linker options are needed do
cannam@154 6589 # not appear in the list.
cannam@154 6590 echo 'int i;' > conftest.$ac_ext
cannam@154 6591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@154 6592 (eval $ac_compile) 2>&5
cannam@154 6593 ac_status=$?
cannam@154 6594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@154 6595 test $ac_status = 0; }; then
cannam@154 6596 case `/usr/bin/file conftest.o` in
cannam@154 6597 *32-bit*)
cannam@154 6598 case $host in
cannam@154 6599 x86_64-*kfreebsd*-gnu)
cannam@154 6600 LD="${LD-ld} -m elf_i386_fbsd"
cannam@154 6601 ;;
cannam@154 6602 x86_64-*linux*)
cannam@154 6603 case `/usr/bin/file conftest.o` in
cannam@154 6604 *x86-64*)
cannam@154 6605 LD="${LD-ld} -m elf32_x86_64"
cannam@154 6606 ;;
cannam@154 6607 *)
cannam@154 6608 LD="${LD-ld} -m elf_i386"
cannam@154 6609 ;;
cannam@154 6610 esac
cannam@154 6611 ;;
cannam@154 6612 powerpc64le-*linux*)
cannam@154 6613 LD="${LD-ld} -m elf32lppclinux"
cannam@154 6614 ;;
cannam@154 6615 powerpc64-*linux*)
cannam@154 6616 LD="${LD-ld} -m elf32ppclinux"
cannam@154 6617 ;;
cannam@154 6618 s390x-*linux*)
cannam@154 6619 LD="${LD-ld} -m elf_s390"
cannam@154 6620 ;;
cannam@154 6621 sparc64-*linux*)
cannam@154 6622 LD="${LD-ld} -m elf32_sparc"
cannam@154 6623 ;;
cannam@154 6624 esac
cannam@154 6625 ;;
cannam@154 6626 *64-bit*)
cannam@154 6627 case $host in
cannam@154 6628 x86_64-*kfreebsd*-gnu)
cannam@154 6629 LD="${LD-ld} -m elf_x86_64_fbsd"
cannam@154 6630 ;;
cannam@154 6631 x86_64-*linux*)
cannam@154 6632 LD="${LD-ld} -m elf_x86_64"
cannam@154 6633 ;;
cannam@154 6634 powerpcle-*linux*)
cannam@154 6635 LD="${LD-ld} -m elf64lppc"
cannam@154 6636 ;;
cannam@154 6637 powerpc-*linux*)
cannam@154 6638 LD="${LD-ld} -m elf64ppc"
cannam@154 6639 ;;
cannam@154 6640 s390*-*linux*|s390*-*tpf*)
cannam@154 6641 LD="${LD-ld} -m elf64_s390"
cannam@154 6642 ;;
cannam@154 6643 sparc*-*linux*)
cannam@154 6644 LD="${LD-ld} -m elf64_sparc"
cannam@154 6645 ;;
cannam@154 6646 esac
cannam@154 6647 ;;
cannam@154 6648 esac
cannam@154 6649 fi
cannam@154 6650 rm -rf conftest*
cannam@154 6651 ;;
cannam@154 6652
cannam@154 6653 *-*-sco3.2v5*)
cannam@154 6654 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
cannam@154 6655 SAVE_CFLAGS=$CFLAGS
cannam@154 6656 CFLAGS="$CFLAGS -belf"
cannam@154 6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cannam@154 6658 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cannam@154 6659 if ${lt_cv_cc_needs_belf+:} false; then :
cannam@154 6660 $as_echo_n "(cached) " >&6
cannam@154 6661 else
cannam@154 6662 ac_ext=c
cannam@154 6663 ac_cpp='$CPP $CPPFLAGS'
cannam@154 6664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@154 6665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@154 6666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@154 6667
cannam@154 6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 6669 /* end confdefs.h. */
cannam@154 6670
cannam@154 6671 int
cannam@154 6672 main ()
cannam@154 6673 {
cannam@154 6674
cannam@154 6675 ;
cannam@154 6676 return 0;
cannam@154 6677 }
cannam@154 6678 _ACEOF
cannam@154 6679 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 6680 lt_cv_cc_needs_belf=yes
cannam@154 6681 else
cannam@154 6682 lt_cv_cc_needs_belf=no
cannam@154 6683 fi
cannam@154 6684 rm -f core conftest.err conftest.$ac_objext \
cannam@154 6685 conftest$ac_exeext conftest.$ac_ext
cannam@154 6686 ac_ext=c
cannam@154 6687 ac_cpp='$CPP $CPPFLAGS'
cannam@154 6688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@154 6689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@154 6690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@154 6691
cannam@154 6692 fi
cannam@154 6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cannam@154 6694 $as_echo "$lt_cv_cc_needs_belf" >&6; }
cannam@154 6695 if test yes != "$lt_cv_cc_needs_belf"; then
cannam@154 6696 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
cannam@154 6697 CFLAGS=$SAVE_CFLAGS
cannam@154 6698 fi
cannam@154 6699 ;;
cannam@154 6700 *-*solaris*)
cannam@154 6701 # Find out what ABI is being produced by ac_compile, and set linker
cannam@154 6702 # options accordingly.
cannam@154 6703 echo 'int i;' > conftest.$ac_ext
cannam@154 6704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@154 6705 (eval $ac_compile) 2>&5
cannam@154 6706 ac_status=$?
cannam@154 6707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@154 6708 test $ac_status = 0; }; then
cannam@154 6709 case `/usr/bin/file conftest.o` in
cannam@154 6710 *64-bit*)
cannam@154 6711 case $lt_cv_prog_gnu_ld in
cannam@154 6712 yes*)
cannam@154 6713 case $host in
cannam@154 6714 i?86-*-solaris*|x86_64-*-solaris*)
cannam@154 6715 LD="${LD-ld} -m elf_x86_64"
cannam@154 6716 ;;
cannam@154 6717 sparc*-*-solaris*)
cannam@154 6718 LD="${LD-ld} -m elf64_sparc"
cannam@154 6719 ;;
cannam@154 6720 esac
cannam@154 6721 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
cannam@154 6722 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
cannam@154 6723 LD=${LD-ld}_sol2
cannam@154 6724 fi
cannam@154 6725 ;;
cannam@154 6726 *)
cannam@154 6727 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
cannam@154 6728 LD="${LD-ld} -64"
cannam@154 6729 fi
cannam@154 6730 ;;
cannam@154 6731 esac
cannam@154 6732 ;;
cannam@154 6733 esac
cannam@154 6734 fi
cannam@154 6735 rm -rf conftest*
cannam@154 6736 ;;
cannam@154 6737 esac
cannam@154 6738
cannam@154 6739 need_locks=$enable_libtool_lock
cannam@154 6740
cannam@154 6741 if test -n "$ac_tool_prefix"; then
cannam@154 6742 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
cannam@154 6743 set dummy ${ac_tool_prefix}mt; ac_word=$2
cannam@154 6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 6745 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 6746 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
cannam@154 6747 $as_echo_n "(cached) " >&6
cannam@154 6748 else
cannam@154 6749 if test -n "$MANIFEST_TOOL"; then
cannam@154 6750 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
cannam@154 6751 else
cannam@154 6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 6753 for as_dir in $PATH
cannam@154 6754 do
cannam@154 6755 IFS=$as_save_IFS
cannam@154 6756 test -z "$as_dir" && as_dir=.
cannam@154 6757 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 6758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 6759 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
cannam@154 6760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 6761 break 2
cannam@154 6762 fi
cannam@154 6763 done
cannam@154 6764 done
cannam@154 6765 IFS=$as_save_IFS
cannam@154 6766
cannam@154 6767 fi
cannam@154 6768 fi
cannam@154 6769 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
cannam@154 6770 if test -n "$MANIFEST_TOOL"; then
cannam@154 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
cannam@154 6772 $as_echo "$MANIFEST_TOOL" >&6; }
cannam@154 6773 else
cannam@154 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 6775 $as_echo "no" >&6; }
cannam@154 6776 fi
cannam@154 6777
cannam@154 6778
cannam@154 6779 fi
cannam@154 6780 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
cannam@154 6781 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
cannam@154 6782 # Extract the first word of "mt", so it can be a program name with args.
cannam@154 6783 set dummy mt; ac_word=$2
cannam@154 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 6785 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 6786 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
cannam@154 6787 $as_echo_n "(cached) " >&6
cannam@154 6788 else
cannam@154 6789 if test -n "$ac_ct_MANIFEST_TOOL"; then
cannam@154 6790 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
cannam@154 6791 else
cannam@154 6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 6793 for as_dir in $PATH
cannam@154 6794 do
cannam@154 6795 IFS=$as_save_IFS
cannam@154 6796 test -z "$as_dir" && as_dir=.
cannam@154 6797 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 6798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 6799 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
cannam@154 6800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 6801 break 2
cannam@154 6802 fi
cannam@154 6803 done
cannam@154 6804 done
cannam@154 6805 IFS=$as_save_IFS
cannam@154 6806
cannam@154 6807 fi
cannam@154 6808 fi
cannam@154 6809 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
cannam@154 6810 if test -n "$ac_ct_MANIFEST_TOOL"; then
cannam@154 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
cannam@154 6812 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
cannam@154 6813 else
cannam@154 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 6815 $as_echo "no" >&6; }
cannam@154 6816 fi
cannam@154 6817
cannam@154 6818 if test "x$ac_ct_MANIFEST_TOOL" = x; then
cannam@154 6819 MANIFEST_TOOL=":"
cannam@154 6820 else
cannam@154 6821 case $cross_compiling:$ac_tool_warned in
cannam@154 6822 yes:)
cannam@154 6823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@154 6824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@154 6825 ac_tool_warned=yes ;;
cannam@154 6826 esac
cannam@154 6827 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
cannam@154 6828 fi
cannam@154 6829 else
cannam@154 6830 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
cannam@154 6831 fi
cannam@154 6832
cannam@154 6833 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
cannam@154 6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
cannam@154 6835 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
cannam@154 6836 if ${lt_cv_path_mainfest_tool+:} false; then :
cannam@154 6837 $as_echo_n "(cached) " >&6
cannam@154 6838 else
cannam@154 6839 lt_cv_path_mainfest_tool=no
cannam@154 6840 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
cannam@154 6841 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
cannam@154 6842 cat conftest.err >&5
cannam@154 6843 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
cannam@154 6844 lt_cv_path_mainfest_tool=yes
cannam@154 6845 fi
cannam@154 6846 rm -f conftest*
cannam@154 6847 fi
cannam@154 6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
cannam@154 6849 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
cannam@154 6850 if test yes != "$lt_cv_path_mainfest_tool"; then
cannam@154 6851 MANIFEST_TOOL=:
cannam@154 6852 fi
cannam@154 6853
cannam@154 6854
cannam@154 6855
cannam@154 6856
cannam@154 6857
cannam@154 6858
cannam@154 6859 case $host_os in
cannam@154 6860 rhapsody* | darwin*)
cannam@154 6861 if test -n "$ac_tool_prefix"; then
cannam@154 6862 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
cannam@154 6863 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cannam@154 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 6865 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 6866 if ${ac_cv_prog_DSYMUTIL+:} false; then :
cannam@154 6867 $as_echo_n "(cached) " >&6
cannam@154 6868 else
cannam@154 6869 if test -n "$DSYMUTIL"; then
cannam@154 6870 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
cannam@154 6871 else
cannam@154 6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 6873 for as_dir in $PATH
cannam@154 6874 do
cannam@154 6875 IFS=$as_save_IFS
cannam@154 6876 test -z "$as_dir" && as_dir=.
cannam@154 6877 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 6878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 6879 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cannam@154 6880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 6881 break 2
cannam@154 6882 fi
cannam@154 6883 done
cannam@154 6884 done
cannam@154 6885 IFS=$as_save_IFS
cannam@154 6886
cannam@154 6887 fi
cannam@154 6888 fi
cannam@154 6889 DSYMUTIL=$ac_cv_prog_DSYMUTIL
cannam@154 6890 if test -n "$DSYMUTIL"; then
cannam@154 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cannam@154 6892 $as_echo "$DSYMUTIL" >&6; }
cannam@154 6893 else
cannam@154 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 6895 $as_echo "no" >&6; }
cannam@154 6896 fi
cannam@154 6897
cannam@154 6898
cannam@154 6899 fi
cannam@154 6900 if test -z "$ac_cv_prog_DSYMUTIL"; then
cannam@154 6901 ac_ct_DSYMUTIL=$DSYMUTIL
cannam@154 6902 # Extract the first word of "dsymutil", so it can be a program name with args.
cannam@154 6903 set dummy dsymutil; ac_word=$2
cannam@154 6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 6905 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 6906 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cannam@154 6907 $as_echo_n "(cached) " >&6
cannam@154 6908 else
cannam@154 6909 if test -n "$ac_ct_DSYMUTIL"; then
cannam@154 6910 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
cannam@154 6911 else
cannam@154 6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 6913 for as_dir in $PATH
cannam@154 6914 do
cannam@154 6915 IFS=$as_save_IFS
cannam@154 6916 test -z "$as_dir" && as_dir=.
cannam@154 6917 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 6918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 6919 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cannam@154 6920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 6921 break 2
cannam@154 6922 fi
cannam@154 6923 done
cannam@154 6924 done
cannam@154 6925 IFS=$as_save_IFS
cannam@154 6926
cannam@154 6927 fi
cannam@154 6928 fi
cannam@154 6929 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
cannam@154 6930 if test -n "$ac_ct_DSYMUTIL"; then
cannam@154 6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cannam@154 6932 $as_echo "$ac_ct_DSYMUTIL" >&6; }
cannam@154 6933 else
cannam@154 6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 6935 $as_echo "no" >&6; }
cannam@154 6936 fi
cannam@154 6937
cannam@154 6938 if test "x$ac_ct_DSYMUTIL" = x; then
cannam@154 6939 DSYMUTIL=":"
cannam@154 6940 else
cannam@154 6941 case $cross_compiling:$ac_tool_warned in
cannam@154 6942 yes:)
cannam@154 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@154 6944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@154 6945 ac_tool_warned=yes ;;
cannam@154 6946 esac
cannam@154 6947 DSYMUTIL=$ac_ct_DSYMUTIL
cannam@154 6948 fi
cannam@154 6949 else
cannam@154 6950 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
cannam@154 6951 fi
cannam@154 6952
cannam@154 6953 if test -n "$ac_tool_prefix"; then
cannam@154 6954 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
cannam@154 6955 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cannam@154 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 6957 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 6958 if ${ac_cv_prog_NMEDIT+:} false; then :
cannam@154 6959 $as_echo_n "(cached) " >&6
cannam@154 6960 else
cannam@154 6961 if test -n "$NMEDIT"; then
cannam@154 6962 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
cannam@154 6963 else
cannam@154 6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 6965 for as_dir in $PATH
cannam@154 6966 do
cannam@154 6967 IFS=$as_save_IFS
cannam@154 6968 test -z "$as_dir" && as_dir=.
cannam@154 6969 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 6970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 6971 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cannam@154 6972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 6973 break 2
cannam@154 6974 fi
cannam@154 6975 done
cannam@154 6976 done
cannam@154 6977 IFS=$as_save_IFS
cannam@154 6978
cannam@154 6979 fi
cannam@154 6980 fi
cannam@154 6981 NMEDIT=$ac_cv_prog_NMEDIT
cannam@154 6982 if test -n "$NMEDIT"; then
cannam@154 6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cannam@154 6984 $as_echo "$NMEDIT" >&6; }
cannam@154 6985 else
cannam@154 6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 6987 $as_echo "no" >&6; }
cannam@154 6988 fi
cannam@154 6989
cannam@154 6990
cannam@154 6991 fi
cannam@154 6992 if test -z "$ac_cv_prog_NMEDIT"; then
cannam@154 6993 ac_ct_NMEDIT=$NMEDIT
cannam@154 6994 # Extract the first word of "nmedit", so it can be a program name with args.
cannam@154 6995 set dummy nmedit; ac_word=$2
cannam@154 6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 6997 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 6998 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cannam@154 6999 $as_echo_n "(cached) " >&6
cannam@154 7000 else
cannam@154 7001 if test -n "$ac_ct_NMEDIT"; then
cannam@154 7002 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
cannam@154 7003 else
cannam@154 7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 7005 for as_dir in $PATH
cannam@154 7006 do
cannam@154 7007 IFS=$as_save_IFS
cannam@154 7008 test -z "$as_dir" && as_dir=.
cannam@154 7009 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 7010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 7011 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cannam@154 7012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 7013 break 2
cannam@154 7014 fi
cannam@154 7015 done
cannam@154 7016 done
cannam@154 7017 IFS=$as_save_IFS
cannam@154 7018
cannam@154 7019 fi
cannam@154 7020 fi
cannam@154 7021 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
cannam@154 7022 if test -n "$ac_ct_NMEDIT"; then
cannam@154 7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cannam@154 7024 $as_echo "$ac_ct_NMEDIT" >&6; }
cannam@154 7025 else
cannam@154 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 7027 $as_echo "no" >&6; }
cannam@154 7028 fi
cannam@154 7029
cannam@154 7030 if test "x$ac_ct_NMEDIT" = x; then
cannam@154 7031 NMEDIT=":"
cannam@154 7032 else
cannam@154 7033 case $cross_compiling:$ac_tool_warned in
cannam@154 7034 yes:)
cannam@154 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@154 7036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@154 7037 ac_tool_warned=yes ;;
cannam@154 7038 esac
cannam@154 7039 NMEDIT=$ac_ct_NMEDIT
cannam@154 7040 fi
cannam@154 7041 else
cannam@154 7042 NMEDIT="$ac_cv_prog_NMEDIT"
cannam@154 7043 fi
cannam@154 7044
cannam@154 7045 if test -n "$ac_tool_prefix"; then
cannam@154 7046 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
cannam@154 7047 set dummy ${ac_tool_prefix}lipo; ac_word=$2
cannam@154 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 7049 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 7050 if ${ac_cv_prog_LIPO+:} false; then :
cannam@154 7051 $as_echo_n "(cached) " >&6
cannam@154 7052 else
cannam@154 7053 if test -n "$LIPO"; then
cannam@154 7054 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
cannam@154 7055 else
cannam@154 7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 7057 for as_dir in $PATH
cannam@154 7058 do
cannam@154 7059 IFS=$as_save_IFS
cannam@154 7060 test -z "$as_dir" && as_dir=.
cannam@154 7061 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 7062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 7063 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cannam@154 7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 7065 break 2
cannam@154 7066 fi
cannam@154 7067 done
cannam@154 7068 done
cannam@154 7069 IFS=$as_save_IFS
cannam@154 7070
cannam@154 7071 fi
cannam@154 7072 fi
cannam@154 7073 LIPO=$ac_cv_prog_LIPO
cannam@154 7074 if test -n "$LIPO"; then
cannam@154 7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cannam@154 7076 $as_echo "$LIPO" >&6; }
cannam@154 7077 else
cannam@154 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 7079 $as_echo "no" >&6; }
cannam@154 7080 fi
cannam@154 7081
cannam@154 7082
cannam@154 7083 fi
cannam@154 7084 if test -z "$ac_cv_prog_LIPO"; then
cannam@154 7085 ac_ct_LIPO=$LIPO
cannam@154 7086 # Extract the first word of "lipo", so it can be a program name with args.
cannam@154 7087 set dummy lipo; ac_word=$2
cannam@154 7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 7089 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 7090 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cannam@154 7091 $as_echo_n "(cached) " >&6
cannam@154 7092 else
cannam@154 7093 if test -n "$ac_ct_LIPO"; then
cannam@154 7094 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
cannam@154 7095 else
cannam@154 7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 7097 for as_dir in $PATH
cannam@154 7098 do
cannam@154 7099 IFS=$as_save_IFS
cannam@154 7100 test -z "$as_dir" && as_dir=.
cannam@154 7101 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 7102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 7103 ac_cv_prog_ac_ct_LIPO="lipo"
cannam@154 7104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 7105 break 2
cannam@154 7106 fi
cannam@154 7107 done
cannam@154 7108 done
cannam@154 7109 IFS=$as_save_IFS
cannam@154 7110
cannam@154 7111 fi
cannam@154 7112 fi
cannam@154 7113 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
cannam@154 7114 if test -n "$ac_ct_LIPO"; then
cannam@154 7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cannam@154 7116 $as_echo "$ac_ct_LIPO" >&6; }
cannam@154 7117 else
cannam@154 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 7119 $as_echo "no" >&6; }
cannam@154 7120 fi
cannam@154 7121
cannam@154 7122 if test "x$ac_ct_LIPO" = x; then
cannam@154 7123 LIPO=":"
cannam@154 7124 else
cannam@154 7125 case $cross_compiling:$ac_tool_warned in
cannam@154 7126 yes:)
cannam@154 7127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@154 7128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@154 7129 ac_tool_warned=yes ;;
cannam@154 7130 esac
cannam@154 7131 LIPO=$ac_ct_LIPO
cannam@154 7132 fi
cannam@154 7133 else
cannam@154 7134 LIPO="$ac_cv_prog_LIPO"
cannam@154 7135 fi
cannam@154 7136
cannam@154 7137 if test -n "$ac_tool_prefix"; then
cannam@154 7138 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
cannam@154 7139 set dummy ${ac_tool_prefix}otool; ac_word=$2
cannam@154 7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 7141 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 7142 if ${ac_cv_prog_OTOOL+:} false; then :
cannam@154 7143 $as_echo_n "(cached) " >&6
cannam@154 7144 else
cannam@154 7145 if test -n "$OTOOL"; then
cannam@154 7146 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
cannam@154 7147 else
cannam@154 7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 7149 for as_dir in $PATH
cannam@154 7150 do
cannam@154 7151 IFS=$as_save_IFS
cannam@154 7152 test -z "$as_dir" && as_dir=.
cannam@154 7153 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 7154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 7155 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cannam@154 7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 7157 break 2
cannam@154 7158 fi
cannam@154 7159 done
cannam@154 7160 done
cannam@154 7161 IFS=$as_save_IFS
cannam@154 7162
cannam@154 7163 fi
cannam@154 7164 fi
cannam@154 7165 OTOOL=$ac_cv_prog_OTOOL
cannam@154 7166 if test -n "$OTOOL"; then
cannam@154 7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cannam@154 7168 $as_echo "$OTOOL" >&6; }
cannam@154 7169 else
cannam@154 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 7171 $as_echo "no" >&6; }
cannam@154 7172 fi
cannam@154 7173
cannam@154 7174
cannam@154 7175 fi
cannam@154 7176 if test -z "$ac_cv_prog_OTOOL"; then
cannam@154 7177 ac_ct_OTOOL=$OTOOL
cannam@154 7178 # Extract the first word of "otool", so it can be a program name with args.
cannam@154 7179 set dummy otool; ac_word=$2
cannam@154 7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 7181 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 7182 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cannam@154 7183 $as_echo_n "(cached) " >&6
cannam@154 7184 else
cannam@154 7185 if test -n "$ac_ct_OTOOL"; then
cannam@154 7186 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
cannam@154 7187 else
cannam@154 7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 7189 for as_dir in $PATH
cannam@154 7190 do
cannam@154 7191 IFS=$as_save_IFS
cannam@154 7192 test -z "$as_dir" && as_dir=.
cannam@154 7193 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 7194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 7195 ac_cv_prog_ac_ct_OTOOL="otool"
cannam@154 7196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 7197 break 2
cannam@154 7198 fi
cannam@154 7199 done
cannam@154 7200 done
cannam@154 7201 IFS=$as_save_IFS
cannam@154 7202
cannam@154 7203 fi
cannam@154 7204 fi
cannam@154 7205 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
cannam@154 7206 if test -n "$ac_ct_OTOOL"; then
cannam@154 7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cannam@154 7208 $as_echo "$ac_ct_OTOOL" >&6; }
cannam@154 7209 else
cannam@154 7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 7211 $as_echo "no" >&6; }
cannam@154 7212 fi
cannam@154 7213
cannam@154 7214 if test "x$ac_ct_OTOOL" = x; then
cannam@154 7215 OTOOL=":"
cannam@154 7216 else
cannam@154 7217 case $cross_compiling:$ac_tool_warned in
cannam@154 7218 yes:)
cannam@154 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@154 7220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@154 7221 ac_tool_warned=yes ;;
cannam@154 7222 esac
cannam@154 7223 OTOOL=$ac_ct_OTOOL
cannam@154 7224 fi
cannam@154 7225 else
cannam@154 7226 OTOOL="$ac_cv_prog_OTOOL"
cannam@154 7227 fi
cannam@154 7228
cannam@154 7229 if test -n "$ac_tool_prefix"; then
cannam@154 7230 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
cannam@154 7231 set dummy ${ac_tool_prefix}otool64; ac_word=$2
cannam@154 7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 7233 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 7234 if ${ac_cv_prog_OTOOL64+:} false; then :
cannam@154 7235 $as_echo_n "(cached) " >&6
cannam@154 7236 else
cannam@154 7237 if test -n "$OTOOL64"; then
cannam@154 7238 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
cannam@154 7239 else
cannam@154 7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 7241 for as_dir in $PATH
cannam@154 7242 do
cannam@154 7243 IFS=$as_save_IFS
cannam@154 7244 test -z "$as_dir" && as_dir=.
cannam@154 7245 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 7246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 7247 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cannam@154 7248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 7249 break 2
cannam@154 7250 fi
cannam@154 7251 done
cannam@154 7252 done
cannam@154 7253 IFS=$as_save_IFS
cannam@154 7254
cannam@154 7255 fi
cannam@154 7256 fi
cannam@154 7257 OTOOL64=$ac_cv_prog_OTOOL64
cannam@154 7258 if test -n "$OTOOL64"; then
cannam@154 7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cannam@154 7260 $as_echo "$OTOOL64" >&6; }
cannam@154 7261 else
cannam@154 7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 7263 $as_echo "no" >&6; }
cannam@154 7264 fi
cannam@154 7265
cannam@154 7266
cannam@154 7267 fi
cannam@154 7268 if test -z "$ac_cv_prog_OTOOL64"; then
cannam@154 7269 ac_ct_OTOOL64=$OTOOL64
cannam@154 7270 # Extract the first word of "otool64", so it can be a program name with args.
cannam@154 7271 set dummy otool64; ac_word=$2
cannam@154 7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 7273 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 7274 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cannam@154 7275 $as_echo_n "(cached) " >&6
cannam@154 7276 else
cannam@154 7277 if test -n "$ac_ct_OTOOL64"; then
cannam@154 7278 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
cannam@154 7279 else
cannam@154 7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 7281 for as_dir in $PATH
cannam@154 7282 do
cannam@154 7283 IFS=$as_save_IFS
cannam@154 7284 test -z "$as_dir" && as_dir=.
cannam@154 7285 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 7286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 7287 ac_cv_prog_ac_ct_OTOOL64="otool64"
cannam@154 7288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 7289 break 2
cannam@154 7290 fi
cannam@154 7291 done
cannam@154 7292 done
cannam@154 7293 IFS=$as_save_IFS
cannam@154 7294
cannam@154 7295 fi
cannam@154 7296 fi
cannam@154 7297 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
cannam@154 7298 if test -n "$ac_ct_OTOOL64"; then
cannam@154 7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cannam@154 7300 $as_echo "$ac_ct_OTOOL64" >&6; }
cannam@154 7301 else
cannam@154 7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 7303 $as_echo "no" >&6; }
cannam@154 7304 fi
cannam@154 7305
cannam@154 7306 if test "x$ac_ct_OTOOL64" = x; then
cannam@154 7307 OTOOL64=":"
cannam@154 7308 else
cannam@154 7309 case $cross_compiling:$ac_tool_warned in
cannam@154 7310 yes:)
cannam@154 7311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@154 7312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@154 7313 ac_tool_warned=yes ;;
cannam@154 7314 esac
cannam@154 7315 OTOOL64=$ac_ct_OTOOL64
cannam@154 7316 fi
cannam@154 7317 else
cannam@154 7318 OTOOL64="$ac_cv_prog_OTOOL64"
cannam@154 7319 fi
cannam@154 7320
cannam@154 7321
cannam@154 7322
cannam@154 7323
cannam@154 7324
cannam@154 7325
cannam@154 7326
cannam@154 7327
cannam@154 7328
cannam@154 7329
cannam@154 7330
cannam@154 7331
cannam@154 7332
cannam@154 7333
cannam@154 7334
cannam@154 7335
cannam@154 7336
cannam@154 7337
cannam@154 7338
cannam@154 7339
cannam@154 7340
cannam@154 7341
cannam@154 7342
cannam@154 7343
cannam@154 7344
cannam@154 7345
cannam@154 7346
cannam@154 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cannam@154 7348 $as_echo_n "checking for -single_module linker flag... " >&6; }
cannam@154 7349 if ${lt_cv_apple_cc_single_mod+:} false; then :
cannam@154 7350 $as_echo_n "(cached) " >&6
cannam@154 7351 else
cannam@154 7352 lt_cv_apple_cc_single_mod=no
cannam@154 7353 if test -z "$LT_MULTI_MODULE"; then
cannam@154 7354 # By default we will add the -single_module flag. You can override
cannam@154 7355 # by either setting the environment variable LT_MULTI_MODULE
cannam@154 7356 # non-empty at configure time, or by adding -multi_module to the
cannam@154 7357 # link flags.
cannam@154 7358 rm -rf libconftest.dylib*
cannam@154 7359 echo "int foo(void){return 1;}" > conftest.c
cannam@154 7360 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
cannam@154 7361 -dynamiclib -Wl,-single_module conftest.c" >&5
cannam@154 7362 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
cannam@154 7363 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
cannam@154 7364 _lt_result=$?
cannam@154 7365 # If there is a non-empty error log, and "single_module"
cannam@154 7366 # appears in it, assume the flag caused a linker warning
cannam@154 7367 if test -s conftest.err && $GREP single_module conftest.err; then
cannam@154 7368 cat conftest.err >&5
cannam@154 7369 # Otherwise, if the output was created with a 0 exit code from
cannam@154 7370 # the compiler, it worked.
cannam@154 7371 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
cannam@154 7372 lt_cv_apple_cc_single_mod=yes
cannam@154 7373 else
cannam@154 7374 cat conftest.err >&5
cannam@154 7375 fi
cannam@154 7376 rm -rf libconftest.dylib*
cannam@154 7377 rm -f conftest.*
cannam@154 7378 fi
cannam@154 7379 fi
cannam@154 7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cannam@154 7381 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cannam@154 7382
cannam@154 7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cannam@154 7384 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cannam@154 7385 if ${lt_cv_ld_exported_symbols_list+:} false; then :
cannam@154 7386 $as_echo_n "(cached) " >&6
cannam@154 7387 else
cannam@154 7388 lt_cv_ld_exported_symbols_list=no
cannam@154 7389 save_LDFLAGS=$LDFLAGS
cannam@154 7390 echo "_main" > conftest.sym
cannam@154 7391 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cannam@154 7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 7393 /* end confdefs.h. */
cannam@154 7394
cannam@154 7395 int
cannam@154 7396 main ()
cannam@154 7397 {
cannam@154 7398
cannam@154 7399 ;
cannam@154 7400 return 0;
cannam@154 7401 }
cannam@154 7402 _ACEOF
cannam@154 7403 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 7404 lt_cv_ld_exported_symbols_list=yes
cannam@154 7405 else
cannam@154 7406 lt_cv_ld_exported_symbols_list=no
cannam@154 7407 fi
cannam@154 7408 rm -f core conftest.err conftest.$ac_objext \
cannam@154 7409 conftest$ac_exeext conftest.$ac_ext
cannam@154 7410 LDFLAGS=$save_LDFLAGS
cannam@154 7411
cannam@154 7412 fi
cannam@154 7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cannam@154 7414 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cannam@154 7415
cannam@154 7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
cannam@154 7417 $as_echo_n "checking for -force_load linker flag... " >&6; }
cannam@154 7418 if ${lt_cv_ld_force_load+:} false; then :
cannam@154 7419 $as_echo_n "(cached) " >&6
cannam@154 7420 else
cannam@154 7421 lt_cv_ld_force_load=no
cannam@154 7422 cat > conftest.c << _LT_EOF
cannam@154 7423 int forced_loaded() { return 2;}
cannam@154 7424 _LT_EOF
cannam@154 7425 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
cannam@154 7426 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
cannam@154 7427 echo "$AR cru libconftest.a conftest.o" >&5
cannam@154 7428 $AR cru libconftest.a conftest.o 2>&5
cannam@154 7429 echo "$RANLIB libconftest.a" >&5
cannam@154 7430 $RANLIB libconftest.a 2>&5
cannam@154 7431 cat > conftest.c << _LT_EOF
cannam@154 7432 int main() { return 0;}
cannam@154 7433 _LT_EOF
cannam@154 7434 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
cannam@154 7435 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
cannam@154 7436 _lt_result=$?
cannam@154 7437 if test -s conftest.err && $GREP force_load conftest.err; then
cannam@154 7438 cat conftest.err >&5
cannam@154 7439 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
cannam@154 7440 lt_cv_ld_force_load=yes
cannam@154 7441 else
cannam@154 7442 cat conftest.err >&5
cannam@154 7443 fi
cannam@154 7444 rm -f conftest.err libconftest.a conftest conftest.c
cannam@154 7445 rm -rf conftest.dSYM
cannam@154 7446
cannam@154 7447 fi
cannam@154 7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
cannam@154 7449 $as_echo "$lt_cv_ld_force_load" >&6; }
cannam@154 7450 case $host_os in
cannam@154 7451 rhapsody* | darwin1.[012])
cannam@154 7452 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
cannam@154 7453 darwin1.*)
cannam@154 7454 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
cannam@154 7455 darwin*) # darwin 5.x on
cannam@154 7456 # if running on 10.5 or later, the deployment target defaults
cannam@154 7457 # to the OS version, if on x86, and 10.4, the deployment
cannam@154 7458 # target defaults to 10.4. Don't you love it?
cannam@154 7459 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
cannam@154 7460 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
cannam@154 7461 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
cannam@154 7462 10.[012][,.]*)
cannam@154 7463 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
cannam@154 7464 10.*)
cannam@154 7465 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
cannam@154 7466 esac
cannam@154 7467 ;;
cannam@154 7468 esac
cannam@154 7469 if test yes = "$lt_cv_apple_cc_single_mod"; then
cannam@154 7470 _lt_dar_single_mod='$single_module'
cannam@154 7471 fi
cannam@154 7472 if test yes = "$lt_cv_ld_exported_symbols_list"; then
cannam@154 7473 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
cannam@154 7474 else
cannam@154 7475 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
cannam@154 7476 fi
cannam@154 7477 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
cannam@154 7478 _lt_dsymutil='~$DSYMUTIL $lib || :'
cannam@154 7479 else
cannam@154 7480 _lt_dsymutil=
cannam@154 7481 fi
cannam@154 7482 ;;
cannam@154 7483 esac
cannam@154 7484
cannam@154 7485 # func_munge_path_list VARIABLE PATH
cannam@154 7486 # -----------------------------------
cannam@154 7487 # VARIABLE is name of variable containing _space_ separated list of
cannam@154 7488 # directories to be munged by the contents of PATH, which is string
cannam@154 7489 # having a format:
cannam@154 7490 # "DIR[:DIR]:"
cannam@154 7491 # string "DIR[ DIR]" will be prepended to VARIABLE
cannam@154 7492 # ":DIR[:DIR]"
cannam@154 7493 # string "DIR[ DIR]" will be appended to VARIABLE
cannam@154 7494 # "DIRP[:DIRP]::[DIRA:]DIRA"
cannam@154 7495 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
cannam@154 7496 # "DIRA[ DIRA]" will be appended to VARIABLE
cannam@154 7497 # "DIR[:DIR]"
cannam@154 7498 # VARIABLE will be replaced by "DIR[ DIR]"
cannam@154 7499 func_munge_path_list ()
cannam@154 7500 {
cannam@154 7501 case x$2 in
cannam@154 7502 x)
cannam@154 7503 ;;
cannam@154 7504 *:)
cannam@154 7505 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
cannam@154 7506 ;;
cannam@154 7507 x:*)
cannam@154 7508 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
cannam@154 7509 ;;
cannam@154 7510 *::*)
cannam@154 7511 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
cannam@154 7512 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
cannam@154 7513 ;;
cannam@154 7514 *)
cannam@154 7515 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
cannam@154 7516 ;;
cannam@154 7517 esac
cannam@154 7518 }
cannam@154 7519
cannam@154 7520 ac_ext=c
cannam@154 7521 ac_cpp='$CPP $CPPFLAGS'
cannam@154 7522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@154 7523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@154 7524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@154 7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cannam@154 7526 $as_echo_n "checking how to run the C preprocessor... " >&6; }
cannam@154 7527 # On Suns, sometimes $CPP names a directory.
cannam@154 7528 if test -n "$CPP" && test -d "$CPP"; then
cannam@154 7529 CPP=
cannam@154 7530 fi
cannam@154 7531 if test -z "$CPP"; then
cannam@154 7532 if ${ac_cv_prog_CPP+:} false; then :
cannam@154 7533 $as_echo_n "(cached) " >&6
cannam@154 7534 else
cannam@154 7535 # Double quotes because CPP needs to be expanded
cannam@154 7536 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
cannam@154 7537 do
cannam@154 7538 ac_preproc_ok=false
cannam@154 7539 for ac_c_preproc_warn_flag in '' yes
cannam@154 7540 do
cannam@154 7541 # Use a header file that comes with gcc, so configuring glibc
cannam@154 7542 # with a fresh cross-compiler works.
cannam@154 7543 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@154 7544 # <limits.h> exists even on freestanding compilers.
cannam@154 7545 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@154 7546 # not just through cpp. "Syntax error" is here to catch this case.
cannam@154 7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 7548 /* end confdefs.h. */
cannam@154 7549 #ifdef __STDC__
cannam@154 7550 # include <limits.h>
cannam@154 7551 #else
cannam@154 7552 # include <assert.h>
cannam@154 7553 #endif
cannam@154 7554 Syntax error
cannam@154 7555 _ACEOF
cannam@154 7556 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@154 7557
cannam@154 7558 else
cannam@154 7559 # Broken: fails on valid input.
cannam@154 7560 continue
cannam@154 7561 fi
cannam@154 7562 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@154 7563
cannam@154 7564 # OK, works on sane cases. Now check whether nonexistent headers
cannam@154 7565 # can be detected and how.
cannam@154 7566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 7567 /* end confdefs.h. */
cannam@154 7568 #include <ac_nonexistent.h>
cannam@154 7569 _ACEOF
cannam@154 7570 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@154 7571 # Broken: success on invalid input.
cannam@154 7572 continue
cannam@154 7573 else
cannam@154 7574 # Passes both tests.
cannam@154 7575 ac_preproc_ok=:
cannam@154 7576 break
cannam@154 7577 fi
cannam@154 7578 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@154 7579
cannam@154 7580 done
cannam@154 7581 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@154 7582 rm -f conftest.i conftest.err conftest.$ac_ext
cannam@154 7583 if $ac_preproc_ok; then :
cannam@154 7584 break
cannam@154 7585 fi
cannam@154 7586
cannam@154 7587 done
cannam@154 7588 ac_cv_prog_CPP=$CPP
cannam@154 7589
cannam@154 7590 fi
cannam@154 7591 CPP=$ac_cv_prog_CPP
cannam@154 7592 else
cannam@154 7593 ac_cv_prog_CPP=$CPP
cannam@154 7594 fi
cannam@154 7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cannam@154 7596 $as_echo "$CPP" >&6; }
cannam@154 7597 ac_preproc_ok=false
cannam@154 7598 for ac_c_preproc_warn_flag in '' yes
cannam@154 7599 do
cannam@154 7600 # Use a header file that comes with gcc, so configuring glibc
cannam@154 7601 # with a fresh cross-compiler works.
cannam@154 7602 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@154 7603 # <limits.h> exists even on freestanding compilers.
cannam@154 7604 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@154 7605 # not just through cpp. "Syntax error" is here to catch this case.
cannam@154 7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 7607 /* end confdefs.h. */
cannam@154 7608 #ifdef __STDC__
cannam@154 7609 # include <limits.h>
cannam@154 7610 #else
cannam@154 7611 # include <assert.h>
cannam@154 7612 #endif
cannam@154 7613 Syntax error
cannam@154 7614 _ACEOF
cannam@154 7615 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@154 7616
cannam@154 7617 else
cannam@154 7618 # Broken: fails on valid input.
cannam@154 7619 continue
cannam@154 7620 fi
cannam@154 7621 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@154 7622
cannam@154 7623 # OK, works on sane cases. Now check whether nonexistent headers
cannam@154 7624 # can be detected and how.
cannam@154 7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 7626 /* end confdefs.h. */
cannam@154 7627 #include <ac_nonexistent.h>
cannam@154 7628 _ACEOF
cannam@154 7629 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@154 7630 # Broken: success on invalid input.
cannam@154 7631 continue
cannam@154 7632 else
cannam@154 7633 # Passes both tests.
cannam@154 7634 ac_preproc_ok=:
cannam@154 7635 break
cannam@154 7636 fi
cannam@154 7637 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@154 7638
cannam@154 7639 done
cannam@154 7640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@154 7641 rm -f conftest.i conftest.err conftest.$ac_ext
cannam@154 7642 if $ac_preproc_ok; then :
cannam@154 7643
cannam@154 7644 else
cannam@154 7645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@154 7646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@154 7647 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
cannam@154 7648 See \`config.log' for more details" "$LINENO" 5; }
cannam@154 7649 fi
cannam@154 7650
cannam@154 7651 ac_ext=c
cannam@154 7652 ac_cpp='$CPP $CPPFLAGS'
cannam@154 7653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@154 7654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@154 7655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@154 7656
cannam@154 7657
cannam@154 7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cannam@154 7659 $as_echo_n "checking for ANSI C header files... " >&6; }
cannam@154 7660 if ${ac_cv_header_stdc+:} false; then :
cannam@154 7661 $as_echo_n "(cached) " >&6
cannam@154 7662 else
cannam@154 7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 7664 /* end confdefs.h. */
cannam@154 7665 #include <stdlib.h>
cannam@154 7666 #include <stdarg.h>
cannam@154 7667 #include <string.h>
cannam@154 7668 #include <float.h>
cannam@154 7669
cannam@154 7670 int
cannam@154 7671 main ()
cannam@154 7672 {
cannam@154 7673
cannam@154 7674 ;
cannam@154 7675 return 0;
cannam@154 7676 }
cannam@154 7677 _ACEOF
cannam@154 7678 if ac_fn_c_try_compile "$LINENO"; then :
cannam@154 7679 ac_cv_header_stdc=yes
cannam@154 7680 else
cannam@154 7681 ac_cv_header_stdc=no
cannam@154 7682 fi
cannam@154 7683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@154 7684
cannam@154 7685 if test $ac_cv_header_stdc = yes; then
cannam@154 7686 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cannam@154 7687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 7688 /* end confdefs.h. */
cannam@154 7689 #include <string.h>
cannam@154 7690
cannam@154 7691 _ACEOF
cannam@154 7692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@154 7693 $EGREP "memchr" >/dev/null 2>&1; then :
cannam@154 7694
cannam@154 7695 else
cannam@154 7696 ac_cv_header_stdc=no
cannam@154 7697 fi
cannam@154 7698 rm -f conftest*
cannam@154 7699
cannam@154 7700 fi
cannam@154 7701
cannam@154 7702 if test $ac_cv_header_stdc = yes; then
cannam@154 7703 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cannam@154 7704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 7705 /* end confdefs.h. */
cannam@154 7706 #include <stdlib.h>
cannam@154 7707
cannam@154 7708 _ACEOF
cannam@154 7709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@154 7710 $EGREP "free" >/dev/null 2>&1; then :
cannam@154 7711
cannam@154 7712 else
cannam@154 7713 ac_cv_header_stdc=no
cannam@154 7714 fi
cannam@154 7715 rm -f conftest*
cannam@154 7716
cannam@154 7717 fi
cannam@154 7718
cannam@154 7719 if test $ac_cv_header_stdc = yes; then
cannam@154 7720 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cannam@154 7721 if test "$cross_compiling" = yes; then :
cannam@154 7722 :
cannam@154 7723 else
cannam@154 7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 7725 /* end confdefs.h. */
cannam@154 7726 #include <ctype.h>
cannam@154 7727 #include <stdlib.h>
cannam@154 7728 #if ((' ' & 0x0FF) == 0x020)
cannam@154 7729 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
cannam@154 7730 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
cannam@154 7731 #else
cannam@154 7732 # define ISLOWER(c) \
cannam@154 7733 (('a' <= (c) && (c) <= 'i') \
cannam@154 7734 || ('j' <= (c) && (c) <= 'r') \
cannam@154 7735 || ('s' <= (c) && (c) <= 'z'))
cannam@154 7736 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
cannam@154 7737 #endif
cannam@154 7738
cannam@154 7739 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
cannam@154 7740 int
cannam@154 7741 main ()
cannam@154 7742 {
cannam@154 7743 int i;
cannam@154 7744 for (i = 0; i < 256; i++)
cannam@154 7745 if (XOR (islower (i), ISLOWER (i))
cannam@154 7746 || toupper (i) != TOUPPER (i))
cannam@154 7747 return 2;
cannam@154 7748 return 0;
cannam@154 7749 }
cannam@154 7750 _ACEOF
cannam@154 7751 if ac_fn_c_try_run "$LINENO"; then :
cannam@154 7752
cannam@154 7753 else
cannam@154 7754 ac_cv_header_stdc=no
cannam@154 7755 fi
cannam@154 7756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@154 7757 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@154 7758 fi
cannam@154 7759
cannam@154 7760 fi
cannam@154 7761 fi
cannam@154 7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cannam@154 7763 $as_echo "$ac_cv_header_stdc" >&6; }
cannam@154 7764 if test $ac_cv_header_stdc = yes; then
cannam@154 7765
cannam@154 7766 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
cannam@154 7767
cannam@154 7768 fi
cannam@154 7769
cannam@154 7770 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
cannam@154 7771 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
cannam@154 7772 inttypes.h stdint.h unistd.h
cannam@154 7773 do :
cannam@154 7774 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cannam@154 7775 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
cannam@154 7776 "
cannam@154 7777 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cannam@154 7778 cat >>confdefs.h <<_ACEOF
cannam@154 7779 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
cannam@154 7780 _ACEOF
cannam@154 7781
cannam@154 7782 fi
cannam@154 7783
cannam@154 7784 done
cannam@154 7785
cannam@154 7786
cannam@154 7787 for ac_header in dlfcn.h
cannam@154 7788 do :
cannam@154 7789 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
cannam@154 7790 "
cannam@154 7791 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cannam@154 7792 cat >>confdefs.h <<_ACEOF
cannam@154 7793 #define HAVE_DLFCN_H 1
cannam@154 7794 _ACEOF
cannam@154 7795
cannam@154 7796 fi
cannam@154 7797
cannam@154 7798 done
cannam@154 7799
cannam@154 7800
cannam@154 7801
cannam@154 7802
cannam@154 7803
cannam@154 7804 # Set options
cannam@154 7805
cannam@154 7806
cannam@154 7807
cannam@154 7808 enable_dlopen=no
cannam@154 7809
cannam@154 7810
cannam@154 7811 enable_win32_dll=no
cannam@154 7812
cannam@154 7813
cannam@154 7814 # Check whether --enable-shared was given.
cannam@154 7815 if test "${enable_shared+set}" = set; then :
cannam@154 7816 enableval=$enable_shared; p=${PACKAGE-default}
cannam@154 7817 case $enableval in
cannam@154 7818 yes) enable_shared=yes ;;
cannam@154 7819 no) enable_shared=no ;;
cannam@154 7820 *)
cannam@154 7821 enable_shared=no
cannam@154 7822 # Look at the argument we got. We use all the common list separators.
cannam@154 7823 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
cannam@154 7824 for pkg in $enableval; do
cannam@154 7825 IFS=$lt_save_ifs
cannam@154 7826 if test "X$pkg" = "X$p"; then
cannam@154 7827 enable_shared=yes
cannam@154 7828 fi
cannam@154 7829 done
cannam@154 7830 IFS=$lt_save_ifs
cannam@154 7831 ;;
cannam@154 7832 esac
cannam@154 7833 else
cannam@154 7834 enable_shared=yes
cannam@154 7835 fi
cannam@154 7836
cannam@154 7837
cannam@154 7838
cannam@154 7839
cannam@154 7840
cannam@154 7841
cannam@154 7842
cannam@154 7843
cannam@154 7844
cannam@154 7845 # Check whether --enable-static was given.
cannam@154 7846 if test "${enable_static+set}" = set; then :
cannam@154 7847 enableval=$enable_static; p=${PACKAGE-default}
cannam@154 7848 case $enableval in
cannam@154 7849 yes) enable_static=yes ;;
cannam@154 7850 no) enable_static=no ;;
cannam@154 7851 *)
cannam@154 7852 enable_static=no
cannam@154 7853 # Look at the argument we got. We use all the common list separators.
cannam@154 7854 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
cannam@154 7855 for pkg in $enableval; do
cannam@154 7856 IFS=$lt_save_ifs
cannam@154 7857 if test "X$pkg" = "X$p"; then
cannam@154 7858 enable_static=yes
cannam@154 7859 fi
cannam@154 7860 done
cannam@154 7861 IFS=$lt_save_ifs
cannam@154 7862 ;;
cannam@154 7863 esac
cannam@154 7864 else
cannam@154 7865 enable_static=yes
cannam@154 7866 fi
cannam@154 7867
cannam@154 7868
cannam@154 7869
cannam@154 7870
cannam@154 7871
cannam@154 7872
cannam@154 7873
cannam@154 7874
cannam@154 7875
cannam@154 7876
cannam@154 7877 # Check whether --with-pic was given.
cannam@154 7878 if test "${with_pic+set}" = set; then :
cannam@154 7879 withval=$with_pic; lt_p=${PACKAGE-default}
cannam@154 7880 case $withval in
cannam@154 7881 yes|no) pic_mode=$withval ;;
cannam@154 7882 *)
cannam@154 7883 pic_mode=default
cannam@154 7884 # Look at the argument we got. We use all the common list separators.
cannam@154 7885 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
cannam@154 7886 for lt_pkg in $withval; do
cannam@154 7887 IFS=$lt_save_ifs
cannam@154 7888 if test "X$lt_pkg" = "X$lt_p"; then
cannam@154 7889 pic_mode=yes
cannam@154 7890 fi
cannam@154 7891 done
cannam@154 7892 IFS=$lt_save_ifs
cannam@154 7893 ;;
cannam@154 7894 esac
cannam@154 7895 else
cannam@154 7896 pic_mode=default
cannam@154 7897 fi
cannam@154 7898
cannam@154 7899
cannam@154 7900
cannam@154 7901
cannam@154 7902
cannam@154 7903
cannam@154 7904
cannam@154 7905
cannam@154 7906 # Check whether --enable-fast-install was given.
cannam@154 7907 if test "${enable_fast_install+set}" = set; then :
cannam@154 7908 enableval=$enable_fast_install; p=${PACKAGE-default}
cannam@154 7909 case $enableval in
cannam@154 7910 yes) enable_fast_install=yes ;;
cannam@154 7911 no) enable_fast_install=no ;;
cannam@154 7912 *)
cannam@154 7913 enable_fast_install=no
cannam@154 7914 # Look at the argument we got. We use all the common list separators.
cannam@154 7915 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
cannam@154 7916 for pkg in $enableval; do
cannam@154 7917 IFS=$lt_save_ifs
cannam@154 7918 if test "X$pkg" = "X$p"; then
cannam@154 7919 enable_fast_install=yes
cannam@154 7920 fi
cannam@154 7921 done
cannam@154 7922 IFS=$lt_save_ifs
cannam@154 7923 ;;
cannam@154 7924 esac
cannam@154 7925 else
cannam@154 7926 enable_fast_install=yes
cannam@154 7927 fi
cannam@154 7928
cannam@154 7929
cannam@154 7930
cannam@154 7931
cannam@154 7932
cannam@154 7933
cannam@154 7934
cannam@154 7935
cannam@154 7936 shared_archive_member_spec=
cannam@154 7937 case $host,$enable_shared in
cannam@154 7938 power*-*-aix[5-9]*,yes)
cannam@154 7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
cannam@154 7940 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
cannam@154 7941
cannam@154 7942 # Check whether --with-aix-soname was given.
cannam@154 7943 if test "${with_aix_soname+set}" = set; then :
cannam@154 7944 withval=$with_aix_soname; case $withval in
cannam@154 7945 aix|svr4|both)
cannam@154 7946 ;;
cannam@154 7947 *)
cannam@154 7948 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
cannam@154 7949 ;;
cannam@154 7950 esac
cannam@154 7951 lt_cv_with_aix_soname=$with_aix_soname
cannam@154 7952 else
cannam@154 7953 if ${lt_cv_with_aix_soname+:} false; then :
cannam@154 7954 $as_echo_n "(cached) " >&6
cannam@154 7955 else
cannam@154 7956 lt_cv_with_aix_soname=aix
cannam@154 7957 fi
cannam@154 7958
cannam@154 7959 with_aix_soname=$lt_cv_with_aix_soname
cannam@154 7960 fi
cannam@154 7961
cannam@154 7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
cannam@154 7963 $as_echo "$with_aix_soname" >&6; }
cannam@154 7964 if test aix != "$with_aix_soname"; then
cannam@154 7965 # For the AIX way of multilib, we name the shared archive member
cannam@154 7966 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
cannam@154 7967 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
cannam@154 7968 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
cannam@154 7969 # the AIX toolchain works better with OBJECT_MODE set (default 32).
cannam@154 7970 if test 64 = "${OBJECT_MODE-32}"; then
cannam@154 7971 shared_archive_member_spec=shr_64
cannam@154 7972 else
cannam@154 7973 shared_archive_member_spec=shr
cannam@154 7974 fi
cannam@154 7975 fi
cannam@154 7976 ;;
cannam@154 7977 *)
cannam@154 7978 with_aix_soname=aix
cannam@154 7979 ;;
cannam@154 7980 esac
cannam@154 7981
cannam@154 7982
cannam@154 7983
cannam@154 7984
cannam@154 7985
cannam@154 7986
cannam@154 7987
cannam@154 7988
cannam@154 7989
cannam@154 7990
cannam@154 7991 # This can be used to rebuild libtool when needed
cannam@154 7992 LIBTOOL_DEPS=$ltmain
cannam@154 7993
cannam@154 7994 # Always use our own libtool.
cannam@154 7995 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
cannam@154 7996
cannam@154 7997
cannam@154 7998
cannam@154 7999
cannam@154 8000
cannam@154 8001
cannam@154 8002
cannam@154 8003
cannam@154 8004
cannam@154 8005
cannam@154 8006
cannam@154 8007
cannam@154 8008
cannam@154 8009
cannam@154 8010
cannam@154 8011
cannam@154 8012
cannam@154 8013
cannam@154 8014
cannam@154 8015
cannam@154 8016
cannam@154 8017
cannam@154 8018
cannam@154 8019
cannam@154 8020
cannam@154 8021
cannam@154 8022
cannam@154 8023
cannam@154 8024
cannam@154 8025
cannam@154 8026 test -z "$LN_S" && LN_S="ln -s"
cannam@154 8027
cannam@154 8028
cannam@154 8029
cannam@154 8030
cannam@154 8031
cannam@154 8032
cannam@154 8033
cannam@154 8034
cannam@154 8035
cannam@154 8036
cannam@154 8037
cannam@154 8038
cannam@154 8039
cannam@154 8040
cannam@154 8041 if test -n "${ZSH_VERSION+set}"; then
cannam@154 8042 setopt NO_GLOB_SUBST
cannam@154 8043 fi
cannam@154 8044
cannam@154 8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cannam@154 8046 $as_echo_n "checking for objdir... " >&6; }
cannam@154 8047 if ${lt_cv_objdir+:} false; then :
cannam@154 8048 $as_echo_n "(cached) " >&6
cannam@154 8049 else
cannam@154 8050 rm -f .libs 2>/dev/null
cannam@154 8051 mkdir .libs 2>/dev/null
cannam@154 8052 if test -d .libs; then
cannam@154 8053 lt_cv_objdir=.libs
cannam@154 8054 else
cannam@154 8055 # MS-DOS does not allow filenames that begin with a dot.
cannam@154 8056 lt_cv_objdir=_libs
cannam@154 8057 fi
cannam@154 8058 rmdir .libs 2>/dev/null
cannam@154 8059 fi
cannam@154 8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cannam@154 8061 $as_echo "$lt_cv_objdir" >&6; }
cannam@154 8062 objdir=$lt_cv_objdir
cannam@154 8063
cannam@154 8064
cannam@154 8065
cannam@154 8066
cannam@154 8067
cannam@154 8068 cat >>confdefs.h <<_ACEOF
cannam@154 8069 #define LT_OBJDIR "$lt_cv_objdir/"
cannam@154 8070 _ACEOF
cannam@154 8071
cannam@154 8072
cannam@154 8073
cannam@154 8074
cannam@154 8075 case $host_os in
cannam@154 8076 aix3*)
cannam@154 8077 # AIX sometimes has problems with the GCC collect2 program. For some
cannam@154 8078 # reason, if we set the COLLECT_NAMES environment variable, the problems
cannam@154 8079 # vanish in a puff of smoke.
cannam@154 8080 if test set != "${COLLECT_NAMES+set}"; then
cannam@154 8081 COLLECT_NAMES=
cannam@154 8082 export COLLECT_NAMES
cannam@154 8083 fi
cannam@154 8084 ;;
cannam@154 8085 esac
cannam@154 8086
cannam@154 8087 # Global variables:
cannam@154 8088 ofile=libtool
cannam@154 8089 can_build_shared=yes
cannam@154 8090
cannam@154 8091 # All known linkers require a '.a' archive for static linking (except MSVC,
cannam@154 8092 # which needs '.lib').
cannam@154 8093 libext=a
cannam@154 8094
cannam@154 8095 with_gnu_ld=$lt_cv_prog_gnu_ld
cannam@154 8096
cannam@154 8097 old_CC=$CC
cannam@154 8098 old_CFLAGS=$CFLAGS
cannam@154 8099
cannam@154 8100 # Set sane defaults for various variables
cannam@154 8101 test -z "$CC" && CC=cc
cannam@154 8102 test -z "$LTCC" && LTCC=$CC
cannam@154 8103 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
cannam@154 8104 test -z "$LD" && LD=ld
cannam@154 8105 test -z "$ac_objext" && ac_objext=o
cannam@154 8106
cannam@154 8107 func_cc_basename $compiler
cannam@154 8108 cc_basename=$func_cc_basename_result
cannam@154 8109
cannam@154 8110
cannam@154 8111 # Only perform the check for file, if the check method requires it
cannam@154 8112 test -z "$MAGIC_CMD" && MAGIC_CMD=file
cannam@154 8113 case $deplibs_check_method in
cannam@154 8114 file_magic*)
cannam@154 8115 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cannam@154 8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cannam@154 8117 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cannam@154 8118 if ${lt_cv_path_MAGIC_CMD+:} false; then :
cannam@154 8119 $as_echo_n "(cached) " >&6
cannam@154 8120 else
cannam@154 8121 case $MAGIC_CMD in
cannam@154 8122 [\\/*] | ?:[\\/]*)
cannam@154 8123 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
cannam@154 8124 ;;
cannam@154 8125 *)
cannam@154 8126 lt_save_MAGIC_CMD=$MAGIC_CMD
cannam@154 8127 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
cannam@154 8128 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
cannam@154 8129 for ac_dir in $ac_dummy; do
cannam@154 8130 IFS=$lt_save_ifs
cannam@154 8131 test -z "$ac_dir" && ac_dir=.
cannam@154 8132 if test -f "$ac_dir/${ac_tool_prefix}file"; then
cannam@154 8133 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
cannam@154 8134 if test -n "$file_magic_test_file"; then
cannam@154 8135 case $deplibs_check_method in
cannam@154 8136 "file_magic "*)
cannam@154 8137 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
cannam@154 8138 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
cannam@154 8139 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
cannam@154 8140 $EGREP "$file_magic_regex" > /dev/null; then
cannam@154 8141 :
cannam@154 8142 else
cannam@154 8143 cat <<_LT_EOF 1>&2
cannam@154 8144
cannam@154 8145 *** Warning: the command libtool uses to detect shared libraries,
cannam@154 8146 *** $file_magic_cmd, produces output that libtool cannot recognize.
cannam@154 8147 *** The result is that libtool may fail to recognize shared libraries
cannam@154 8148 *** as such. This will affect the creation of libtool libraries that
cannam@154 8149 *** depend on shared libraries, but programs linked with such libtool
cannam@154 8150 *** libraries will work regardless of this problem. Nevertheless, you
cannam@154 8151 *** may want to report the problem to your system manager and/or to
cannam@154 8152 *** bug-libtool@gnu.org
cannam@154 8153
cannam@154 8154 _LT_EOF
cannam@154 8155 fi ;;
cannam@154 8156 esac
cannam@154 8157 fi
cannam@154 8158 break
cannam@154 8159 fi
cannam@154 8160 done
cannam@154 8161 IFS=$lt_save_ifs
cannam@154 8162 MAGIC_CMD=$lt_save_MAGIC_CMD
cannam@154 8163 ;;
cannam@154 8164 esac
cannam@154 8165 fi
cannam@154 8166
cannam@154 8167 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
cannam@154 8168 if test -n "$MAGIC_CMD"; then
cannam@154 8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cannam@154 8170 $as_echo "$MAGIC_CMD" >&6; }
cannam@154 8171 else
cannam@154 8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 8173 $as_echo "no" >&6; }
cannam@154 8174 fi
cannam@154 8175
cannam@154 8176
cannam@154 8177
cannam@154 8178
cannam@154 8179
cannam@154 8180 if test -z "$lt_cv_path_MAGIC_CMD"; then
cannam@154 8181 if test -n "$ac_tool_prefix"; then
cannam@154 8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cannam@154 8183 $as_echo_n "checking for file... " >&6; }
cannam@154 8184 if ${lt_cv_path_MAGIC_CMD+:} false; then :
cannam@154 8185 $as_echo_n "(cached) " >&6
cannam@154 8186 else
cannam@154 8187 case $MAGIC_CMD in
cannam@154 8188 [\\/*] | ?:[\\/]*)
cannam@154 8189 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
cannam@154 8190 ;;
cannam@154 8191 *)
cannam@154 8192 lt_save_MAGIC_CMD=$MAGIC_CMD
cannam@154 8193 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
cannam@154 8194 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
cannam@154 8195 for ac_dir in $ac_dummy; do
cannam@154 8196 IFS=$lt_save_ifs
cannam@154 8197 test -z "$ac_dir" && ac_dir=.
cannam@154 8198 if test -f "$ac_dir/file"; then
cannam@154 8199 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
cannam@154 8200 if test -n "$file_magic_test_file"; then
cannam@154 8201 case $deplibs_check_method in
cannam@154 8202 "file_magic "*)
cannam@154 8203 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
cannam@154 8204 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
cannam@154 8205 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
cannam@154 8206 $EGREP "$file_magic_regex" > /dev/null; then
cannam@154 8207 :
cannam@154 8208 else
cannam@154 8209 cat <<_LT_EOF 1>&2
cannam@154 8210
cannam@154 8211 *** Warning: the command libtool uses to detect shared libraries,
cannam@154 8212 *** $file_magic_cmd, produces output that libtool cannot recognize.
cannam@154 8213 *** The result is that libtool may fail to recognize shared libraries
cannam@154 8214 *** as such. This will affect the creation of libtool libraries that
cannam@154 8215 *** depend on shared libraries, but programs linked with such libtool
cannam@154 8216 *** libraries will work regardless of this problem. Nevertheless, you
cannam@154 8217 *** may want to report the problem to your system manager and/or to
cannam@154 8218 *** bug-libtool@gnu.org
cannam@154 8219
cannam@154 8220 _LT_EOF
cannam@154 8221 fi ;;
cannam@154 8222 esac
cannam@154 8223 fi
cannam@154 8224 break
cannam@154 8225 fi
cannam@154 8226 done
cannam@154 8227 IFS=$lt_save_ifs
cannam@154 8228 MAGIC_CMD=$lt_save_MAGIC_CMD
cannam@154 8229 ;;
cannam@154 8230 esac
cannam@154 8231 fi
cannam@154 8232
cannam@154 8233 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
cannam@154 8234 if test -n "$MAGIC_CMD"; then
cannam@154 8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cannam@154 8236 $as_echo "$MAGIC_CMD" >&6; }
cannam@154 8237 else
cannam@154 8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 8239 $as_echo "no" >&6; }
cannam@154 8240 fi
cannam@154 8241
cannam@154 8242
cannam@154 8243 else
cannam@154 8244 MAGIC_CMD=:
cannam@154 8245 fi
cannam@154 8246 fi
cannam@154 8247
cannam@154 8248 fi
cannam@154 8249 ;;
cannam@154 8250 esac
cannam@154 8251
cannam@154 8252 # Use C for the default configuration in the libtool script
cannam@154 8253
cannam@154 8254 lt_save_CC=$CC
cannam@154 8255 ac_ext=c
cannam@154 8256 ac_cpp='$CPP $CPPFLAGS'
cannam@154 8257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@154 8258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@154 8259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@154 8260
cannam@154 8261
cannam@154 8262 # Source file extension for C test sources.
cannam@154 8263 ac_ext=c
cannam@154 8264
cannam@154 8265 # Object file extension for compiled C test sources.
cannam@154 8266 objext=o
cannam@154 8267 objext=$objext
cannam@154 8268
cannam@154 8269 # Code to be used in simple compile tests
cannam@154 8270 lt_simple_compile_test_code="int some_variable = 0;"
cannam@154 8271
cannam@154 8272 # Code to be used in simple link tests
cannam@154 8273 lt_simple_link_test_code='int main(){return(0);}'
cannam@154 8274
cannam@154 8275
cannam@154 8276
cannam@154 8277
cannam@154 8278
cannam@154 8279
cannam@154 8280
cannam@154 8281 # If no C compiler was specified, use CC.
cannam@154 8282 LTCC=${LTCC-"$CC"}
cannam@154 8283
cannam@154 8284 # If no C compiler flags were specified, use CFLAGS.
cannam@154 8285 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cannam@154 8286
cannam@154 8287 # Allow CC to be a program name with arguments.
cannam@154 8288 compiler=$CC
cannam@154 8289
cannam@154 8290 # Save the default compiler, since it gets overwritten when the other
cannam@154 8291 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
cannam@154 8292 compiler_DEFAULT=$CC
cannam@154 8293
cannam@154 8294 # save warnings/boilerplate of simple test code
cannam@154 8295 ac_outfile=conftest.$ac_objext
cannam@154 8296 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
cannam@154 8297 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@154 8298 _lt_compiler_boilerplate=`cat conftest.err`
cannam@154 8299 $RM conftest*
cannam@154 8300
cannam@154 8301 ac_outfile=conftest.$ac_objext
cannam@154 8302 echo "$lt_simple_link_test_code" >conftest.$ac_ext
cannam@154 8303 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@154 8304 _lt_linker_boilerplate=`cat conftest.err`
cannam@154 8305 $RM -r conftest*
cannam@154 8306
cannam@154 8307
cannam@154 8308 ## CAVEAT EMPTOR:
cannam@154 8309 ## There is no encapsulation within the following macros, do not change
cannam@154 8310 ## the running order or otherwise move them around unless you know exactly
cannam@154 8311 ## what you are doing...
cannam@154 8312 if test -n "$compiler"; then
cannam@154 8313
cannam@154 8314 lt_prog_compiler_no_builtin_flag=
cannam@154 8315
cannam@154 8316 if test yes = "$GCC"; then
cannam@154 8317 case $cc_basename in
cannam@154 8318 nvcc*)
cannam@154 8319 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
cannam@154 8320 *)
cannam@154 8321 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
cannam@154 8322 esac
cannam@154 8323
cannam@154 8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cannam@154 8325 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cannam@154 8326 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cannam@154 8327 $as_echo_n "(cached) " >&6
cannam@154 8328 else
cannam@154 8329 lt_cv_prog_compiler_rtti_exceptions=no
cannam@154 8330 ac_outfile=conftest.$ac_objext
cannam@154 8331 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@154 8332 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
cannam@154 8333 # Insert the option either (1) after the last *FLAGS variable, or
cannam@154 8334 # (2) before a word containing "conftest.", or (3) at the end.
cannam@154 8335 # Note that $ac_compile itself does not contain backslashes and begins
cannam@154 8336 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@154 8337 # The option is referenced via a variable to avoid confusing sed.
cannam@154 8338 lt_compile=`echo "$ac_compile" | $SED \
cannam@154 8339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@154 8340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@154 8341 -e 's:$: $lt_compiler_flag:'`
cannam@154 8342 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@154 8343 (eval "$lt_compile" 2>conftest.err)
cannam@154 8344 ac_status=$?
cannam@154 8345 cat conftest.err >&5
cannam@154 8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@154 8347 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@154 8348 # The compiler can only warn and ignore the option if not recognized
cannam@154 8349 # So say no if there are warnings other than the usual output.
cannam@154 8350 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cannam@154 8351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@154 8352 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
cannam@154 8353 lt_cv_prog_compiler_rtti_exceptions=yes
cannam@154 8354 fi
cannam@154 8355 fi
cannam@154 8356 $RM conftest*
cannam@154 8357
cannam@154 8358 fi
cannam@154 8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cannam@154 8360 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
cannam@154 8361
cannam@154 8362 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
cannam@154 8363 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
cannam@154 8364 else
cannam@154 8365 :
cannam@154 8366 fi
cannam@154 8367
cannam@154 8368 fi
cannam@154 8369
cannam@154 8370
cannam@154 8371
cannam@154 8372
cannam@154 8373
cannam@154 8374
cannam@154 8375 lt_prog_compiler_wl=
cannam@154 8376 lt_prog_compiler_pic=
cannam@154 8377 lt_prog_compiler_static=
cannam@154 8378
cannam@154 8379
cannam@154 8380 if test yes = "$GCC"; then
cannam@154 8381 lt_prog_compiler_wl='-Wl,'
cannam@154 8382 lt_prog_compiler_static='-static'
cannam@154 8383
cannam@154 8384 case $host_os in
cannam@154 8385 aix*)
cannam@154 8386 # All AIX code is PIC.
cannam@154 8387 if test ia64 = "$host_cpu"; then
cannam@154 8388 # AIX 5 now supports IA64 processor
cannam@154 8389 lt_prog_compiler_static='-Bstatic'
cannam@154 8390 fi
cannam@154 8391 lt_prog_compiler_pic='-fPIC'
cannam@154 8392 ;;
cannam@154 8393
cannam@154 8394 amigaos*)
cannam@154 8395 case $host_cpu in
cannam@154 8396 powerpc)
cannam@154 8397 # see comment about AmigaOS4 .so support
cannam@154 8398 lt_prog_compiler_pic='-fPIC'
cannam@154 8399 ;;
cannam@154 8400 m68k)
cannam@154 8401 # FIXME: we need at least 68020 code to build shared libraries, but
cannam@154 8402 # adding the '-m68020' flag to GCC prevents building anything better,
cannam@154 8403 # like '-m68040'.
cannam@154 8404 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
cannam@154 8405 ;;
cannam@154 8406 esac
cannam@154 8407 ;;
cannam@154 8408
cannam@154 8409 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
cannam@154 8410 # PIC is the default for these OSes.
cannam@154 8411 ;;
cannam@154 8412
cannam@154 8413 mingw* | cygwin* | pw32* | os2* | cegcc*)
cannam@154 8414 # This hack is so that the source file can tell whether it is being
cannam@154 8415 # built for inclusion in a dll (and should export symbols for example).
cannam@154 8416 # Although the cygwin gcc ignores -fPIC, still need this for old-style
cannam@154 8417 # (--disable-auto-import) libraries
cannam@154 8418 lt_prog_compiler_pic='-DDLL_EXPORT'
cannam@154 8419 case $host_os in
cannam@154 8420 os2*)
cannam@154 8421 lt_prog_compiler_static='$wl-static'
cannam@154 8422 ;;
cannam@154 8423 esac
cannam@154 8424 ;;
cannam@154 8425
cannam@154 8426 darwin* | rhapsody*)
cannam@154 8427 # PIC is the default on this platform
cannam@154 8428 # Common symbols not allowed in MH_DYLIB files
cannam@154 8429 lt_prog_compiler_pic='-fno-common'
cannam@154 8430 ;;
cannam@154 8431
cannam@154 8432 haiku*)
cannam@154 8433 # PIC is the default for Haiku.
cannam@154 8434 # The "-static" flag exists, but is broken.
cannam@154 8435 lt_prog_compiler_static=
cannam@154 8436 ;;
cannam@154 8437
cannam@154 8438 hpux*)
cannam@154 8439 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
cannam@154 8440 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
cannam@154 8441 # sets the default TLS model and affects inlining.
cannam@154 8442 case $host_cpu in
cannam@154 8443 hppa*64*)
cannam@154 8444 # +Z the default
cannam@154 8445 ;;
cannam@154 8446 *)
cannam@154 8447 lt_prog_compiler_pic='-fPIC'
cannam@154 8448 ;;
cannam@154 8449 esac
cannam@154 8450 ;;
cannam@154 8451
cannam@154 8452 interix[3-9]*)
cannam@154 8453 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
cannam@154 8454 # Instead, we relocate shared libraries at runtime.
cannam@154 8455 ;;
cannam@154 8456
cannam@154 8457 msdosdjgpp*)
cannam@154 8458 # Just because we use GCC doesn't mean we suddenly get shared libraries
cannam@154 8459 # on systems that don't support them.
cannam@154 8460 lt_prog_compiler_can_build_shared=no
cannam@154 8461 enable_shared=no
cannam@154 8462 ;;
cannam@154 8463
cannam@154 8464 *nto* | *qnx*)
cannam@154 8465 # QNX uses GNU C++, but need to define -shared option too, otherwise
cannam@154 8466 # it will coredump.
cannam@154 8467 lt_prog_compiler_pic='-fPIC -shared'
cannam@154 8468 ;;
cannam@154 8469
cannam@154 8470 sysv4*MP*)
cannam@154 8471 if test -d /usr/nec; then
cannam@154 8472 lt_prog_compiler_pic=-Kconform_pic
cannam@154 8473 fi
cannam@154 8474 ;;
cannam@154 8475
cannam@154 8476 *)
cannam@154 8477 lt_prog_compiler_pic='-fPIC'
cannam@154 8478 ;;
cannam@154 8479 esac
cannam@154 8480
cannam@154 8481 case $cc_basename in
cannam@154 8482 nvcc*) # Cuda Compiler Driver 2.2
cannam@154 8483 lt_prog_compiler_wl='-Xlinker '
cannam@154 8484 if test -n "$lt_prog_compiler_pic"; then
cannam@154 8485 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
cannam@154 8486 fi
cannam@154 8487 ;;
cannam@154 8488 esac
cannam@154 8489 else
cannam@154 8490 # PORTME Check for flag to pass linker flags through the system compiler.
cannam@154 8491 case $host_os in
cannam@154 8492 aix*)
cannam@154 8493 lt_prog_compiler_wl='-Wl,'
cannam@154 8494 if test ia64 = "$host_cpu"; then
cannam@154 8495 # AIX 5 now supports IA64 processor
cannam@154 8496 lt_prog_compiler_static='-Bstatic'
cannam@154 8497 else
cannam@154 8498 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
cannam@154 8499 fi
cannam@154 8500 ;;
cannam@154 8501
cannam@154 8502 darwin* | rhapsody*)
cannam@154 8503 # PIC is the default on this platform
cannam@154 8504 # Common symbols not allowed in MH_DYLIB files
cannam@154 8505 lt_prog_compiler_pic='-fno-common'
cannam@154 8506 case $cc_basename in
cannam@154 8507 nagfor*)
cannam@154 8508 # NAG Fortran compiler
cannam@154 8509 lt_prog_compiler_wl='-Wl,-Wl,,'
cannam@154 8510 lt_prog_compiler_pic='-PIC'
cannam@154 8511 lt_prog_compiler_static='-Bstatic'
cannam@154 8512 ;;
cannam@154 8513 esac
cannam@154 8514 ;;
cannam@154 8515
cannam@154 8516 mingw* | cygwin* | pw32* | os2* | cegcc*)
cannam@154 8517 # This hack is so that the source file can tell whether it is being
cannam@154 8518 # built for inclusion in a dll (and should export symbols for example).
cannam@154 8519 lt_prog_compiler_pic='-DDLL_EXPORT'
cannam@154 8520 case $host_os in
cannam@154 8521 os2*)
cannam@154 8522 lt_prog_compiler_static='$wl-static'
cannam@154 8523 ;;
cannam@154 8524 esac
cannam@154 8525 ;;
cannam@154 8526
cannam@154 8527 hpux9* | hpux10* | hpux11*)
cannam@154 8528 lt_prog_compiler_wl='-Wl,'
cannam@154 8529 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cannam@154 8530 # not for PA HP-UX.
cannam@154 8531 case $host_cpu in
cannam@154 8532 hppa*64*|ia64*)
cannam@154 8533 # +Z the default
cannam@154 8534 ;;
cannam@154 8535 *)
cannam@154 8536 lt_prog_compiler_pic='+Z'
cannam@154 8537 ;;
cannam@154 8538 esac
cannam@154 8539 # Is there a better lt_prog_compiler_static that works with the bundled CC?
cannam@154 8540 lt_prog_compiler_static='$wl-a ${wl}archive'
cannam@154 8541 ;;
cannam@154 8542
cannam@154 8543 irix5* | irix6* | nonstopux*)
cannam@154 8544 lt_prog_compiler_wl='-Wl,'
cannam@154 8545 # PIC (with -KPIC) is the default.
cannam@154 8546 lt_prog_compiler_static='-non_shared'
cannam@154 8547 ;;
cannam@154 8548
cannam@154 8549 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cannam@154 8550 case $cc_basename in
cannam@154 8551 # old Intel for x86_64, which still supported -KPIC.
cannam@154 8552 ecc*)
cannam@154 8553 lt_prog_compiler_wl='-Wl,'
cannam@154 8554 lt_prog_compiler_pic='-KPIC'
cannam@154 8555 lt_prog_compiler_static='-static'
cannam@154 8556 ;;
cannam@154 8557 # icc used to be incompatible with GCC.
cannam@154 8558 # ICC 10 doesn't accept -KPIC any more.
cannam@154 8559 icc* | ifort*)
cannam@154 8560 lt_prog_compiler_wl='-Wl,'
cannam@154 8561 lt_prog_compiler_pic='-fPIC'
cannam@154 8562 lt_prog_compiler_static='-static'
cannam@154 8563 ;;
cannam@154 8564 # Lahey Fortran 8.1.
cannam@154 8565 lf95*)
cannam@154 8566 lt_prog_compiler_wl='-Wl,'
cannam@154 8567 lt_prog_compiler_pic='--shared'
cannam@154 8568 lt_prog_compiler_static='--static'
cannam@154 8569 ;;
cannam@154 8570 nagfor*)
cannam@154 8571 # NAG Fortran compiler
cannam@154 8572 lt_prog_compiler_wl='-Wl,-Wl,,'
cannam@154 8573 lt_prog_compiler_pic='-PIC'
cannam@154 8574 lt_prog_compiler_static='-Bstatic'
cannam@154 8575 ;;
cannam@154 8576 tcc*)
cannam@154 8577 # Fabrice Bellard et al's Tiny C Compiler
cannam@154 8578 lt_prog_compiler_wl='-Wl,'
cannam@154 8579 lt_prog_compiler_pic='-fPIC'
cannam@154 8580 lt_prog_compiler_static='-static'
cannam@154 8581 ;;
cannam@154 8582 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cannam@154 8583 # Portland Group compilers (*not* the Pentium gcc compiler,
cannam@154 8584 # which looks to be a dead project)
cannam@154 8585 lt_prog_compiler_wl='-Wl,'
cannam@154 8586 lt_prog_compiler_pic='-fpic'
cannam@154 8587 lt_prog_compiler_static='-Bstatic'
cannam@154 8588 ;;
cannam@154 8589 ccc*)
cannam@154 8590 lt_prog_compiler_wl='-Wl,'
cannam@154 8591 # All Alpha code is PIC.
cannam@154 8592 lt_prog_compiler_static='-non_shared'
cannam@154 8593 ;;
cannam@154 8594 xl* | bgxl* | bgf* | mpixl*)
cannam@154 8595 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cannam@154 8596 lt_prog_compiler_wl='-Wl,'
cannam@154 8597 lt_prog_compiler_pic='-qpic'
cannam@154 8598 lt_prog_compiler_static='-qstaticlink'
cannam@154 8599 ;;
cannam@154 8600 *)
cannam@154 8601 case `$CC -V 2>&1 | sed 5q` in
cannam@154 8602 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cannam@154 8603 # Sun Fortran 8.3 passes all unrecognized flags to the linker
cannam@154 8604 lt_prog_compiler_pic='-KPIC'
cannam@154 8605 lt_prog_compiler_static='-Bstatic'
cannam@154 8606 lt_prog_compiler_wl=''
cannam@154 8607 ;;
cannam@154 8608 *Sun\ F* | *Sun*Fortran*)
cannam@154 8609 lt_prog_compiler_pic='-KPIC'
cannam@154 8610 lt_prog_compiler_static='-Bstatic'
cannam@154 8611 lt_prog_compiler_wl='-Qoption ld '
cannam@154 8612 ;;
cannam@154 8613 *Sun\ C*)
cannam@154 8614 # Sun C 5.9
cannam@154 8615 lt_prog_compiler_pic='-KPIC'
cannam@154 8616 lt_prog_compiler_static='-Bstatic'
cannam@154 8617 lt_prog_compiler_wl='-Wl,'
cannam@154 8618 ;;
cannam@154 8619 *Intel*\ [CF]*Compiler*)
cannam@154 8620 lt_prog_compiler_wl='-Wl,'
cannam@154 8621 lt_prog_compiler_pic='-fPIC'
cannam@154 8622 lt_prog_compiler_static='-static'
cannam@154 8623 ;;
cannam@154 8624 *Portland\ Group*)
cannam@154 8625 lt_prog_compiler_wl='-Wl,'
cannam@154 8626 lt_prog_compiler_pic='-fpic'
cannam@154 8627 lt_prog_compiler_static='-Bstatic'
cannam@154 8628 ;;
cannam@154 8629 esac
cannam@154 8630 ;;
cannam@154 8631 esac
cannam@154 8632 ;;
cannam@154 8633
cannam@154 8634 newsos6)
cannam@154 8635 lt_prog_compiler_pic='-KPIC'
cannam@154 8636 lt_prog_compiler_static='-Bstatic'
cannam@154 8637 ;;
cannam@154 8638
cannam@154 8639 *nto* | *qnx*)
cannam@154 8640 # QNX uses GNU C++, but need to define -shared option too, otherwise
cannam@154 8641 # it will coredump.
cannam@154 8642 lt_prog_compiler_pic='-fPIC -shared'
cannam@154 8643 ;;
cannam@154 8644
cannam@154 8645 osf3* | osf4* | osf5*)
cannam@154 8646 lt_prog_compiler_wl='-Wl,'
cannam@154 8647 # All OSF/1 code is PIC.
cannam@154 8648 lt_prog_compiler_static='-non_shared'
cannam@154 8649 ;;
cannam@154 8650
cannam@154 8651 rdos*)
cannam@154 8652 lt_prog_compiler_static='-non_shared'
cannam@154 8653 ;;
cannam@154 8654
cannam@154 8655 solaris*)
cannam@154 8656 lt_prog_compiler_pic='-KPIC'
cannam@154 8657 lt_prog_compiler_static='-Bstatic'
cannam@154 8658 case $cc_basename in
cannam@154 8659 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cannam@154 8660 lt_prog_compiler_wl='-Qoption ld ';;
cannam@154 8661 *)
cannam@154 8662 lt_prog_compiler_wl='-Wl,';;
cannam@154 8663 esac
cannam@154 8664 ;;
cannam@154 8665
cannam@154 8666 sunos4*)
cannam@154 8667 lt_prog_compiler_wl='-Qoption ld '
cannam@154 8668 lt_prog_compiler_pic='-PIC'
cannam@154 8669 lt_prog_compiler_static='-Bstatic'
cannam@154 8670 ;;
cannam@154 8671
cannam@154 8672 sysv4 | sysv4.2uw2* | sysv4.3*)
cannam@154 8673 lt_prog_compiler_wl='-Wl,'
cannam@154 8674 lt_prog_compiler_pic='-KPIC'
cannam@154 8675 lt_prog_compiler_static='-Bstatic'
cannam@154 8676 ;;
cannam@154 8677
cannam@154 8678 sysv4*MP*)
cannam@154 8679 if test -d /usr/nec; then
cannam@154 8680 lt_prog_compiler_pic='-Kconform_pic'
cannam@154 8681 lt_prog_compiler_static='-Bstatic'
cannam@154 8682 fi
cannam@154 8683 ;;
cannam@154 8684
cannam@154 8685 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
cannam@154 8686 lt_prog_compiler_wl='-Wl,'
cannam@154 8687 lt_prog_compiler_pic='-KPIC'
cannam@154 8688 lt_prog_compiler_static='-Bstatic'
cannam@154 8689 ;;
cannam@154 8690
cannam@154 8691 unicos*)
cannam@154 8692 lt_prog_compiler_wl='-Wl,'
cannam@154 8693 lt_prog_compiler_can_build_shared=no
cannam@154 8694 ;;
cannam@154 8695
cannam@154 8696 uts4*)
cannam@154 8697 lt_prog_compiler_pic='-pic'
cannam@154 8698 lt_prog_compiler_static='-Bstatic'
cannam@154 8699 ;;
cannam@154 8700
cannam@154 8701 *)
cannam@154 8702 lt_prog_compiler_can_build_shared=no
cannam@154 8703 ;;
cannam@154 8704 esac
cannam@154 8705 fi
cannam@154 8706
cannam@154 8707 case $host_os in
cannam@154 8708 # For platforms that do not support PIC, -DPIC is meaningless:
cannam@154 8709 *djgpp*)
cannam@154 8710 lt_prog_compiler_pic=
cannam@154 8711 ;;
cannam@154 8712 *)
cannam@154 8713 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
cannam@154 8714 ;;
cannam@154 8715 esac
cannam@154 8716
cannam@154 8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cannam@154 8718 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
cannam@154 8719 if ${lt_cv_prog_compiler_pic+:} false; then :
cannam@154 8720 $as_echo_n "(cached) " >&6
cannam@154 8721 else
cannam@154 8722 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
cannam@154 8723 fi
cannam@154 8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
cannam@154 8725 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
cannam@154 8726 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cannam@154 8727
cannam@154 8728 #
cannam@154 8729 # Check to make sure the PIC flag actually works.
cannam@154 8730 #
cannam@154 8731 if test -n "$lt_prog_compiler_pic"; then
cannam@154 8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cannam@154 8733 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cannam@154 8734 if ${lt_cv_prog_compiler_pic_works+:} false; then :
cannam@154 8735 $as_echo_n "(cached) " >&6
cannam@154 8736 else
cannam@154 8737 lt_cv_prog_compiler_pic_works=no
cannam@154 8738 ac_outfile=conftest.$ac_objext
cannam@154 8739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@154 8740 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
cannam@154 8741 # Insert the option either (1) after the last *FLAGS variable, or
cannam@154 8742 # (2) before a word containing "conftest.", or (3) at the end.
cannam@154 8743 # Note that $ac_compile itself does not contain backslashes and begins
cannam@154 8744 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@154 8745 # The option is referenced via a variable to avoid confusing sed.
cannam@154 8746 lt_compile=`echo "$ac_compile" | $SED \
cannam@154 8747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@154 8748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@154 8749 -e 's:$: $lt_compiler_flag:'`
cannam@154 8750 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@154 8751 (eval "$lt_compile" 2>conftest.err)
cannam@154 8752 ac_status=$?
cannam@154 8753 cat conftest.err >&5
cannam@154 8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@154 8755 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@154 8756 # The compiler can only warn and ignore the option if not recognized
cannam@154 8757 # So say no if there are warnings other than the usual output.
cannam@154 8758 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cannam@154 8759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@154 8760 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
cannam@154 8761 lt_cv_prog_compiler_pic_works=yes
cannam@154 8762 fi
cannam@154 8763 fi
cannam@154 8764 $RM conftest*
cannam@154 8765
cannam@154 8766 fi
cannam@154 8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cannam@154 8768 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
cannam@154 8769
cannam@154 8770 if test yes = "$lt_cv_prog_compiler_pic_works"; then
cannam@154 8771 case $lt_prog_compiler_pic in
cannam@154 8772 "" | " "*) ;;
cannam@154 8773 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
cannam@154 8774 esac
cannam@154 8775 else
cannam@154 8776 lt_prog_compiler_pic=
cannam@154 8777 lt_prog_compiler_can_build_shared=no
cannam@154 8778 fi
cannam@154 8779
cannam@154 8780 fi
cannam@154 8781
cannam@154 8782
cannam@154 8783
cannam@154 8784
cannam@154 8785
cannam@154 8786
cannam@154 8787
cannam@154 8788
cannam@154 8789
cannam@154 8790
cannam@154 8791
cannam@154 8792 #
cannam@154 8793 # Check to make sure the static flag actually works.
cannam@154 8794 #
cannam@154 8795 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cannam@154 8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cannam@154 8797 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cannam@154 8798 if ${lt_cv_prog_compiler_static_works+:} false; then :
cannam@154 8799 $as_echo_n "(cached) " >&6
cannam@154 8800 else
cannam@154 8801 lt_cv_prog_compiler_static_works=no
cannam@154 8802 save_LDFLAGS=$LDFLAGS
cannam@154 8803 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
cannam@154 8804 echo "$lt_simple_link_test_code" > conftest.$ac_ext
cannam@154 8805 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
cannam@154 8806 # The linker can only warn and ignore the option if not recognized
cannam@154 8807 # So say no if there are warnings
cannam@154 8808 if test -s conftest.err; then
cannam@154 8809 # Append any errors to the config.log.
cannam@154 8810 cat conftest.err 1>&5
cannam@154 8811 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cannam@154 8812 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@154 8813 if diff conftest.exp conftest.er2 >/dev/null; then
cannam@154 8814 lt_cv_prog_compiler_static_works=yes
cannam@154 8815 fi
cannam@154 8816 else
cannam@154 8817 lt_cv_prog_compiler_static_works=yes
cannam@154 8818 fi
cannam@154 8819 fi
cannam@154 8820 $RM -r conftest*
cannam@154 8821 LDFLAGS=$save_LDFLAGS
cannam@154 8822
cannam@154 8823 fi
cannam@154 8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cannam@154 8825 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
cannam@154 8826
cannam@154 8827 if test yes = "$lt_cv_prog_compiler_static_works"; then
cannam@154 8828 :
cannam@154 8829 else
cannam@154 8830 lt_prog_compiler_static=
cannam@154 8831 fi
cannam@154 8832
cannam@154 8833
cannam@154 8834
cannam@154 8835
cannam@154 8836
cannam@154 8837
cannam@154 8838
cannam@154 8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@154 8840 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cannam@154 8841 if ${lt_cv_prog_compiler_c_o+:} false; then :
cannam@154 8842 $as_echo_n "(cached) " >&6
cannam@154 8843 else
cannam@154 8844 lt_cv_prog_compiler_c_o=no
cannam@154 8845 $RM -r conftest 2>/dev/null
cannam@154 8846 mkdir conftest
cannam@154 8847 cd conftest
cannam@154 8848 mkdir out
cannam@154 8849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@154 8850
cannam@154 8851 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@154 8852 # Insert the option either (1) after the last *FLAGS variable, or
cannam@154 8853 # (2) before a word containing "conftest.", or (3) at the end.
cannam@154 8854 # Note that $ac_compile itself does not contain backslashes and begins
cannam@154 8855 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@154 8856 lt_compile=`echo "$ac_compile" | $SED \
cannam@154 8857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@154 8858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@154 8859 -e 's:$: $lt_compiler_flag:'`
cannam@154 8860 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@154 8861 (eval "$lt_compile" 2>out/conftest.err)
cannam@154 8862 ac_status=$?
cannam@154 8863 cat out/conftest.err >&5
cannam@154 8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@154 8865 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@154 8866 then
cannam@154 8867 # The compiler can only warn and ignore the option if not recognized
cannam@154 8868 # So say no if there are warnings
cannam@154 8869 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cannam@154 8870 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cannam@154 8871 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cannam@154 8872 lt_cv_prog_compiler_c_o=yes
cannam@154 8873 fi
cannam@154 8874 fi
cannam@154 8875 chmod u+w . 2>&5
cannam@154 8876 $RM conftest*
cannam@154 8877 # SGI C++ compiler will create directory out/ii_files/ for
cannam@154 8878 # template instantiation
cannam@154 8879 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
cannam@154 8880 $RM out/* && rmdir out
cannam@154 8881 cd ..
cannam@154 8882 $RM -r conftest
cannam@154 8883 $RM conftest*
cannam@154 8884
cannam@154 8885 fi
cannam@154 8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cannam@154 8887 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
cannam@154 8888
cannam@154 8889
cannam@154 8890
cannam@154 8891
cannam@154 8892
cannam@154 8893
cannam@154 8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@154 8895 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cannam@154 8896 if ${lt_cv_prog_compiler_c_o+:} false; then :
cannam@154 8897 $as_echo_n "(cached) " >&6
cannam@154 8898 else
cannam@154 8899 lt_cv_prog_compiler_c_o=no
cannam@154 8900 $RM -r conftest 2>/dev/null
cannam@154 8901 mkdir conftest
cannam@154 8902 cd conftest
cannam@154 8903 mkdir out
cannam@154 8904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@154 8905
cannam@154 8906 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@154 8907 # Insert the option either (1) after the last *FLAGS variable, or
cannam@154 8908 # (2) before a word containing "conftest.", or (3) at the end.
cannam@154 8909 # Note that $ac_compile itself does not contain backslashes and begins
cannam@154 8910 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@154 8911 lt_compile=`echo "$ac_compile" | $SED \
cannam@154 8912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@154 8913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@154 8914 -e 's:$: $lt_compiler_flag:'`
cannam@154 8915 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@154 8916 (eval "$lt_compile" 2>out/conftest.err)
cannam@154 8917 ac_status=$?
cannam@154 8918 cat out/conftest.err >&5
cannam@154 8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@154 8920 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@154 8921 then
cannam@154 8922 # The compiler can only warn and ignore the option if not recognized
cannam@154 8923 # So say no if there are warnings
cannam@154 8924 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cannam@154 8925 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cannam@154 8926 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cannam@154 8927 lt_cv_prog_compiler_c_o=yes
cannam@154 8928 fi
cannam@154 8929 fi
cannam@154 8930 chmod u+w . 2>&5
cannam@154 8931 $RM conftest*
cannam@154 8932 # SGI C++ compiler will create directory out/ii_files/ for
cannam@154 8933 # template instantiation
cannam@154 8934 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
cannam@154 8935 $RM out/* && rmdir out
cannam@154 8936 cd ..
cannam@154 8937 $RM -r conftest
cannam@154 8938 $RM conftest*
cannam@154 8939
cannam@154 8940 fi
cannam@154 8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cannam@154 8942 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
cannam@154 8943
cannam@154 8944
cannam@154 8945
cannam@154 8946
cannam@154 8947 hard_links=nottested
cannam@154 8948 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
cannam@154 8949 # do not overwrite the value of need_locks provided by the user
cannam@154 8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cannam@154 8951 $as_echo_n "checking if we can lock with hard links... " >&6; }
cannam@154 8952 hard_links=yes
cannam@154 8953 $RM conftest*
cannam@154 8954 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@154 8955 touch conftest.a
cannam@154 8956 ln conftest.a conftest.b 2>&5 || hard_links=no
cannam@154 8957 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@154 8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cannam@154 8959 $as_echo "$hard_links" >&6; }
cannam@154 8960 if test no = "$hard_links"; then
cannam@154 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
cannam@154 8962 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
cannam@154 8963 need_locks=warn
cannam@154 8964 fi
cannam@154 8965 else
cannam@154 8966 need_locks=no
cannam@154 8967 fi
cannam@154 8968
cannam@154 8969
cannam@154 8970
cannam@154 8971
cannam@154 8972
cannam@154 8973
cannam@154 8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@154 8975 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
cannam@154 8976
cannam@154 8977 runpath_var=
cannam@154 8978 allow_undefined_flag=
cannam@154 8979 always_export_symbols=no
cannam@154 8980 archive_cmds=
cannam@154 8981 archive_expsym_cmds=
cannam@154 8982 compiler_needs_object=no
cannam@154 8983 enable_shared_with_static_runtimes=no
cannam@154 8984 export_dynamic_flag_spec=
cannam@154 8985 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@154 8986 hardcode_automatic=no
cannam@154 8987 hardcode_direct=no
cannam@154 8988 hardcode_direct_absolute=no
cannam@154 8989 hardcode_libdir_flag_spec=
cannam@154 8990 hardcode_libdir_separator=
cannam@154 8991 hardcode_minus_L=no
cannam@154 8992 hardcode_shlibpath_var=unsupported
cannam@154 8993 inherit_rpath=no
cannam@154 8994 link_all_deplibs=unknown
cannam@154 8995 module_cmds=
cannam@154 8996 module_expsym_cmds=
cannam@154 8997 old_archive_from_new_cmds=
cannam@154 8998 old_archive_from_expsyms_cmds=
cannam@154 8999 thread_safe_flag_spec=
cannam@154 9000 whole_archive_flag_spec=
cannam@154 9001 # include_expsyms should be a list of space-separated symbols to be *always*
cannam@154 9002 # included in the symbol list
cannam@154 9003 include_expsyms=
cannam@154 9004 # exclude_expsyms can be an extended regexp of symbols to exclude
cannam@154 9005 # it will be wrapped by ' (' and ')$', so one must not match beginning or
cannam@154 9006 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
cannam@154 9007 # as well as any symbol that contains 'd'.
cannam@154 9008 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cannam@154 9009 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
cannam@154 9010 # platforms (ab)use it in PIC code, but their linkers get confused if
cannam@154 9011 # the symbol is explicitly referenced. Since portable code cannot
cannam@154 9012 # rely on this symbol name, it's probably fine to never include it in
cannam@154 9013 # preloaded symbol tables.
cannam@154 9014 # Exclude shared library initialization/finalization symbols.
cannam@154 9015 extract_expsyms_cmds=
cannam@154 9016
cannam@154 9017 case $host_os in
cannam@154 9018 cygwin* | mingw* | pw32* | cegcc*)
cannam@154 9019 # FIXME: the MSVC++ port hasn't been tested in a loooong time
cannam@154 9020 # When not using gcc, we currently assume that we are using
cannam@154 9021 # Microsoft Visual C++.
cannam@154 9022 if test yes != "$GCC"; then
cannam@154 9023 with_gnu_ld=no
cannam@154 9024 fi
cannam@154 9025 ;;
cannam@154 9026 interix*)
cannam@154 9027 # we just hope/assume this is gcc and not c89 (= MSVC++)
cannam@154 9028 with_gnu_ld=yes
cannam@154 9029 ;;
cannam@154 9030 openbsd* | bitrig*)
cannam@154 9031 with_gnu_ld=no
cannam@154 9032 ;;
cannam@154 9033 esac
cannam@154 9034
cannam@154 9035 ld_shlibs=yes
cannam@154 9036
cannam@154 9037 # On some targets, GNU ld is compatible enough with the native linker
cannam@154 9038 # that we're better off using the native interface for both.
cannam@154 9039 lt_use_gnu_ld_interface=no
cannam@154 9040 if test yes = "$with_gnu_ld"; then
cannam@154 9041 case $host_os in
cannam@154 9042 aix*)
cannam@154 9043 # The AIX port of GNU ld has always aspired to compatibility
cannam@154 9044 # with the native linker. However, as the warning in the GNU ld
cannam@154 9045 # block says, versions before 2.19.5* couldn't really create working
cannam@154 9046 # shared libraries, regardless of the interface used.
cannam@154 9047 case `$LD -v 2>&1` in
cannam@154 9048 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
cannam@154 9049 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
cannam@154 9050 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
cannam@154 9051 *)
cannam@154 9052 lt_use_gnu_ld_interface=yes
cannam@154 9053 ;;
cannam@154 9054 esac
cannam@154 9055 ;;
cannam@154 9056 *)
cannam@154 9057 lt_use_gnu_ld_interface=yes
cannam@154 9058 ;;
cannam@154 9059 esac
cannam@154 9060 fi
cannam@154 9061
cannam@154 9062 if test yes = "$lt_use_gnu_ld_interface"; then
cannam@154 9063 # If archive_cmds runs LD, not CC, wlarc should be empty
cannam@154 9064 wlarc='$wl'
cannam@154 9065
cannam@154 9066 # Set some defaults for GNU ld with shared library support. These
cannam@154 9067 # are reset later if shared libraries are not supported. Putting them
cannam@154 9068 # here allows them to be overridden if necessary.
cannam@154 9069 runpath_var=LD_RUN_PATH
cannam@154 9070 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cannam@154 9071 export_dynamic_flag_spec='$wl--export-dynamic'
cannam@154 9072 # ancient GNU ld didn't support --whole-archive et. al.
cannam@154 9073 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
cannam@154 9074 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
cannam@154 9075 else
cannam@154 9076 whole_archive_flag_spec=
cannam@154 9077 fi
cannam@154 9078 supports_anon_versioning=no
cannam@154 9079 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
cannam@154 9080 *GNU\ gold*) supports_anon_versioning=yes ;;
cannam@154 9081 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
cannam@154 9082 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
cannam@154 9083 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
cannam@154 9084 *\ 2.11.*) ;; # other 2.11 versions
cannam@154 9085 *) supports_anon_versioning=yes ;;
cannam@154 9086 esac
cannam@154 9087
cannam@154 9088 # See if GNU ld supports shared libraries.
cannam@154 9089 case $host_os in
cannam@154 9090 aix[3-9]*)
cannam@154 9091 # On AIX/PPC, the GNU linker is very broken
cannam@154 9092 if test ia64 != "$host_cpu"; then
cannam@154 9093 ld_shlibs=no
cannam@154 9094 cat <<_LT_EOF 1>&2
cannam@154 9095
cannam@154 9096 *** Warning: the GNU linker, at least up to release 2.19, is reported
cannam@154 9097 *** to be unable to reliably create shared libraries on AIX.
cannam@154 9098 *** Therefore, libtool is disabling shared libraries support. If you
cannam@154 9099 *** really care for shared libraries, you may want to install binutils
cannam@154 9100 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
cannam@154 9101 *** You will then need to restart the configuration process.
cannam@154 9102
cannam@154 9103 _LT_EOF
cannam@154 9104 fi
cannam@154 9105 ;;
cannam@154 9106
cannam@154 9107 amigaos*)
cannam@154 9108 case $host_cpu in
cannam@154 9109 powerpc)
cannam@154 9110 # see comment about AmigaOS4 .so support
cannam@154 9111 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cannam@154 9112 archive_expsym_cmds=''
cannam@154 9113 ;;
cannam@154 9114 m68k)
cannam@154 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)'
cannam@154 9116 hardcode_libdir_flag_spec='-L$libdir'
cannam@154 9117 hardcode_minus_L=yes
cannam@154 9118 ;;
cannam@154 9119 esac
cannam@154 9120 ;;
cannam@154 9121
cannam@154 9122 beos*)
cannam@154 9123 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@154 9124 allow_undefined_flag=unsupported
cannam@154 9125 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
cannam@154 9126 # support --undefined. This deserves some investigation. FIXME
cannam@154 9127 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cannam@154 9128 else
cannam@154 9129 ld_shlibs=no
cannam@154 9130 fi
cannam@154 9131 ;;
cannam@154 9132
cannam@154 9133 cygwin* | mingw* | pw32* | cegcc*)
cannam@154 9134 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
cannam@154 9135 # as there is no search path for DLLs.
cannam@154 9136 hardcode_libdir_flag_spec='-L$libdir'
cannam@154 9137 export_dynamic_flag_spec='$wl--export-all-symbols'
cannam@154 9138 allow_undefined_flag=unsupported
cannam@154 9139 always_export_symbols=no
cannam@154 9140 enable_shared_with_static_runtimes=yes
cannam@154 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'
cannam@154 9142 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
cannam@154 9143
cannam@154 9144 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
cannam@154 9145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
cannam@154 9146 # If the export-symbols file already is a .def file, use it as
cannam@154 9147 # is; otherwise, prepend EXPORTS...
cannam@154 9148 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
cannam@154 9149 cp $export_symbols $output_objdir/$soname.def;
cannam@154 9150 else
cannam@154 9151 echo EXPORTS > $output_objdir/$soname.def;
cannam@154 9152 cat $export_symbols >> $output_objdir/$soname.def;
cannam@154 9153 fi~
cannam@154 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'
cannam@154 9155 else
cannam@154 9156 ld_shlibs=no
cannam@154 9157 fi
cannam@154 9158 ;;
cannam@154 9159
cannam@154 9160 haiku*)
cannam@154 9161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cannam@154 9162 link_all_deplibs=yes
cannam@154 9163 ;;
cannam@154 9164
cannam@154 9165 os2*)
cannam@154 9166 hardcode_libdir_flag_spec='-L$libdir'
cannam@154 9167 hardcode_minus_L=yes
cannam@154 9168 allow_undefined_flag=unsupported
cannam@154 9169 shrext_cmds=.dll
cannam@154 9170 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
cannam@154 9171 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
cannam@154 9172 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
cannam@154 9173 $ECHO EXPORTS >> $output_objdir/$libname.def~
cannam@154 9174 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
cannam@154 9175 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
cannam@154 9176 emximp -o $lib $output_objdir/$libname.def'
cannam@154 9177 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
cannam@154 9178 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
cannam@154 9179 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
cannam@154 9180 $ECHO EXPORTS >> $output_objdir/$libname.def~
cannam@154 9181 prefix_cmds="$SED"~
cannam@154 9182 if test EXPORTS = "`$SED 1q $export_symbols`"; then
cannam@154 9183 prefix_cmds="$prefix_cmds -e 1d";
cannam@154 9184 fi~
cannam@154 9185 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
cannam@154 9186 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
cannam@154 9187 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
cannam@154 9188 emximp -o $lib $output_objdir/$libname.def'
cannam@154 9189 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
cannam@154 9190 enable_shared_with_static_runtimes=yes
cannam@154 9191 ;;
cannam@154 9192
cannam@154 9193 interix[3-9]*)
cannam@154 9194 hardcode_direct=no
cannam@154 9195 hardcode_shlibpath_var=no
cannam@154 9196 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
cannam@154 9197 export_dynamic_flag_spec='$wl-E'
cannam@154 9198 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
cannam@154 9199 # Instead, shared libraries are loaded at an image base (0x10000000 by
cannam@154 9200 # default) and relocated if they conflict, which is a slow very memory
cannam@154 9201 # consuming and fragmenting process. To avoid this, we pick a random,
cannam@154 9202 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
cannam@154 9203 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
cannam@154 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'
cannam@154 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'
cannam@154 9206 ;;
cannam@154 9207
cannam@154 9208 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cannam@154 9209 tmp_diet=no
cannam@154 9210 if test linux-dietlibc = "$host_os"; then
cannam@154 9211 case $cc_basename in
cannam@154 9212 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
cannam@154 9213 esac
cannam@154 9214 fi
cannam@154 9215 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
cannam@154 9216 && test no = "$tmp_diet"
cannam@154 9217 then
cannam@154 9218 tmp_addflag=' $pic_flag'
cannam@154 9219 tmp_sharedflag='-shared'
cannam@154 9220 case $cc_basename,$host_cpu in
cannam@154 9221 pgcc*) # Portland Group C compiler
cannam@154 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'
cannam@154 9223 tmp_addflag=' $pic_flag'
cannam@154 9224 ;;
cannam@154 9225 pgf77* | pgf90* | pgf95* | pgfortran*)
cannam@154 9226 # Portland Group f77 and f90 compilers
cannam@154 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'
cannam@154 9228 tmp_addflag=' $pic_flag -Mnomain' ;;
cannam@154 9229 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
cannam@154 9230 tmp_addflag=' -i_dynamic' ;;
cannam@154 9231 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
cannam@154 9232 tmp_addflag=' -i_dynamic -nofor_main' ;;
cannam@154 9233 ifc* | ifort*) # Intel Fortran compiler
cannam@154 9234 tmp_addflag=' -nofor_main' ;;
cannam@154 9235 lf95*) # Lahey Fortran 8.1
cannam@154 9236 whole_archive_flag_spec=
cannam@154 9237 tmp_sharedflag='--shared' ;;
cannam@154 9238 nagfor*) # NAGFOR 5.3
cannam@154 9239 tmp_sharedflag='-Wl,-shared' ;;
cannam@154 9240 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cannam@154 9241 tmp_sharedflag='-qmkshrobj'
cannam@154 9242 tmp_addflag= ;;
cannam@154 9243 nvcc*) # Cuda Compiler Driver 2.2
cannam@154 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'
cannam@154 9245 compiler_needs_object=yes
cannam@154 9246 ;;
cannam@154 9247 esac
cannam@154 9248 case `$CC -V 2>&1 | sed 5q` in
cannam@154 9249 *Sun\ C*) # Sun C 5.9
cannam@154 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'
cannam@154 9251 compiler_needs_object=yes
cannam@154 9252 tmp_sharedflag='-G' ;;
cannam@154 9253 *Sun\ F*) # Sun Fortran 8.3
cannam@154 9254 tmp_sharedflag='-G' ;;
cannam@154 9255 esac
cannam@154 9256 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cannam@154 9257
cannam@154 9258 if test yes = "$supports_anon_versioning"; then
cannam@154 9259 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
cannam@154 9260 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@154 9261 echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@154 9262 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
cannam@154 9263 fi
cannam@154 9264
cannam@154 9265 case $cc_basename in
cannam@154 9266 tcc*)
cannam@154 9267 export_dynamic_flag_spec='-rdynamic'
cannam@154 9268 ;;
cannam@154 9269 xlf* | bgf* | bgxlf* | mpixlf*)
cannam@154 9270 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
cannam@154 9271 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cannam@154 9272 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cannam@154 9273 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cannam@154 9274 if test yes = "$supports_anon_versioning"; then
cannam@154 9275 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
cannam@154 9276 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@154 9277 echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@154 9278 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cannam@154 9279 fi
cannam@154 9280 ;;
cannam@154 9281 esac
cannam@154 9282 else
cannam@154 9283 ld_shlibs=no
cannam@154 9284 fi
cannam@154 9285 ;;
cannam@154 9286
cannam@154 9287 netbsd*)
cannam@154 9288 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@154 9289 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
cannam@154 9290 wlarc=
cannam@154 9291 else
cannam@154 9292 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cannam@154 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'
cannam@154 9294 fi
cannam@154 9295 ;;
cannam@154 9296
cannam@154 9297 solaris*)
cannam@154 9298 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
cannam@154 9299 ld_shlibs=no
cannam@154 9300 cat <<_LT_EOF 1>&2
cannam@154 9301
cannam@154 9302 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
cannam@154 9303 *** create shared libraries on Solaris systems. Therefore, libtool
cannam@154 9304 *** is disabling shared libraries support. We urge you to upgrade GNU
cannam@154 9305 *** binutils to release 2.9.1 or newer. Another option is to modify
cannam@154 9306 *** your PATH or compiler configuration so that the native linker is
cannam@154 9307 *** used, and then restart.
cannam@154 9308
cannam@154 9309 _LT_EOF
cannam@154 9310 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@154 9311 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cannam@154 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'
cannam@154 9313 else
cannam@154 9314 ld_shlibs=no
cannam@154 9315 fi
cannam@154 9316 ;;
cannam@154 9317
cannam@154 9318 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
cannam@154 9319 case `$LD -v 2>&1` in
cannam@154 9320 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
cannam@154 9321 ld_shlibs=no
cannam@154 9322 cat <<_LT_EOF 1>&2
cannam@154 9323
cannam@154 9324 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
cannam@154 9325 *** reliably create shared libraries on SCO systems. Therefore, libtool
cannam@154 9326 *** is disabling shared libraries support. We urge you to upgrade GNU
cannam@154 9327 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
cannam@154 9328 *** your PATH or compiler configuration so that the native linker is
cannam@154 9329 *** used, and then restart.
cannam@154 9330
cannam@154 9331 _LT_EOF
cannam@154 9332 ;;
cannam@154 9333 *)
cannam@154 9334 # For security reasons, it is highly recommended that you always
cannam@154 9335 # use absolute paths for naming shared libraries, and exclude the
cannam@154 9336 # DT_RUNPATH tag from executables and libraries. But doing so
cannam@154 9337 # requires that you compile everything twice, which is a pain.
cannam@154 9338 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@154 9339 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cannam@154 9340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cannam@154 9341 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
cannam@154 9342 else
cannam@154 9343 ld_shlibs=no
cannam@154 9344 fi
cannam@154 9345 ;;
cannam@154 9346 esac
cannam@154 9347 ;;
cannam@154 9348
cannam@154 9349 sunos4*)
cannam@154 9350 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@154 9351 wlarc=
cannam@154 9352 hardcode_direct=yes
cannam@154 9353 hardcode_shlibpath_var=no
cannam@154 9354 ;;
cannam@154 9355
cannam@154 9356 *)
cannam@154 9357 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@154 9358 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cannam@154 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'
cannam@154 9360 else
cannam@154 9361 ld_shlibs=no
cannam@154 9362 fi
cannam@154 9363 ;;
cannam@154 9364 esac
cannam@154 9365
cannam@154 9366 if test no = "$ld_shlibs"; then
cannam@154 9367 runpath_var=
cannam@154 9368 hardcode_libdir_flag_spec=
cannam@154 9369 export_dynamic_flag_spec=
cannam@154 9370 whole_archive_flag_spec=
cannam@154 9371 fi
cannam@154 9372 else
cannam@154 9373 # PORTME fill in a description of your system's linker (not GNU ld)
cannam@154 9374 case $host_os in
cannam@154 9375 aix3*)
cannam@154 9376 allow_undefined_flag=unsupported
cannam@154 9377 always_export_symbols=yes
cannam@154 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'
cannam@154 9379 # Note: this linker hardcodes the directories in LIBPATH if there
cannam@154 9380 # are no directories specified by -L.
cannam@154 9381 hardcode_minus_L=yes
cannam@154 9382 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
cannam@154 9383 # Neither direct hardcoding nor static linking is supported with a
cannam@154 9384 # broken collect2.
cannam@154 9385 hardcode_direct=unsupported
cannam@154 9386 fi
cannam@154 9387 ;;
cannam@154 9388
cannam@154 9389 aix[4-9]*)
cannam@154 9390 if test ia64 = "$host_cpu"; then
cannam@154 9391 # On IA64, the linker does run time linking by default, so we don't
cannam@154 9392 # have to do anything special.
cannam@154 9393 aix_use_runtimelinking=no
cannam@154 9394 exp_sym_flag='-Bexport'
cannam@154 9395 no_entry_flag=
cannam@154 9396 else
cannam@154 9397 # If we're using GNU nm, then we don't want the "-C" option.
cannam@154 9398 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
cannam@154 9399 # Without the "-l" option, or with the "-B" option, AIX nm treats
cannam@154 9400 # weak defined symbols like other global defined symbols, whereas
cannam@154 9401 # GNU nm marks them as "W".
cannam@154 9402 # While the 'weak' keyword is ignored in the Export File, we need
cannam@154 9403 # it in the Import File for the 'aix-soname' feature, so we have
cannam@154 9404 # to replace the "-B" option with "-P" for AIX nm.
cannam@154 9405 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cannam@154 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'
cannam@154 9407 else
cannam@154 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'
cannam@154 9409 fi
cannam@154 9410 aix_use_runtimelinking=no
cannam@154 9411
cannam@154 9412 # Test if we are trying to use run time linking or normal
cannam@154 9413 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cannam@154 9414 # have runtime linking enabled, and use it for executables.
cannam@154 9415 # For shared libraries, we enable/disable runtime linking
cannam@154 9416 # depending on the kind of the shared library created -
cannam@154 9417 # when "with_aix_soname,aix_use_runtimelinking" is:
cannam@154 9418 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
cannam@154 9419 # "aix,yes" lib.so shared, rtl:yes, for executables
cannam@154 9420 # lib.a static archive
cannam@154 9421 # "both,no" lib.so.V(shr.o) shared, rtl:yes
cannam@154 9422 # lib.a(lib.so.V) shared, rtl:no, for executables
cannam@154 9423 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
cannam@154 9424 # lib.a(lib.so.V) shared, rtl:no
cannam@154 9425 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
cannam@154 9426 # lib.a static archive
cannam@154 9427 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
cannam@154 9428 for ld_flag in $LDFLAGS; do
cannam@154 9429 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
cannam@154 9430 aix_use_runtimelinking=yes
cannam@154 9431 break
cannam@154 9432 fi
cannam@154 9433 done
cannam@154 9434 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
cannam@154 9435 # With aix-soname=svr4, we create the lib.so.V shared archives only,
cannam@154 9436 # so we don't have lib.a shared libs to link our executables.
cannam@154 9437 # We have to force runtime linking in this case.
cannam@154 9438 aix_use_runtimelinking=yes
cannam@154 9439 LDFLAGS="$LDFLAGS -Wl,-brtl"
cannam@154 9440 fi
cannam@154 9441 ;;
cannam@154 9442 esac
cannam@154 9443
cannam@154 9444 exp_sym_flag='-bexport'
cannam@154 9445 no_entry_flag='-bnoentry'
cannam@154 9446 fi
cannam@154 9447
cannam@154 9448 # When large executables or shared objects are built, AIX ld can
cannam@154 9449 # have problems creating the table of contents. If linking a library
cannam@154 9450 # or program results in "error TOC overflow" add -mminimal-toc to
cannam@154 9451 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
cannam@154 9452 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
cannam@154 9453
cannam@154 9454 archive_cmds=''
cannam@154 9455 hardcode_direct=yes
cannam@154 9456 hardcode_direct_absolute=yes
cannam@154 9457 hardcode_libdir_separator=':'
cannam@154 9458 link_all_deplibs=yes
cannam@154 9459 file_list_spec='$wl-f,'
cannam@154 9460 case $with_aix_soname,$aix_use_runtimelinking in
cannam@154 9461 aix,*) ;; # traditional, no import file
cannam@154 9462 svr4,* | *,yes) # use import file
cannam@154 9463 # The Import File defines what to hardcode.
cannam@154 9464 hardcode_direct=no
cannam@154 9465 hardcode_direct_absolute=no
cannam@154 9466 ;;
cannam@154 9467 esac
cannam@154 9468
cannam@154 9469 if test yes = "$GCC"; then
cannam@154 9470 case $host_os in aix4.[012]|aix4.[012].*)
cannam@154 9471 # We only want to do this on AIX 4.2 and lower, the check
cannam@154 9472 # below for broken collect2 doesn't work under 4.3+
cannam@154 9473 collect2name=`$CC -print-prog-name=collect2`
cannam@154 9474 if test -f "$collect2name" &&
cannam@154 9475 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
cannam@154 9476 then
cannam@154 9477 # We have reworked collect2
cannam@154 9478 :
cannam@154 9479 else
cannam@154 9480 # We have old collect2
cannam@154 9481 hardcode_direct=unsupported
cannam@154 9482 # It fails to find uninstalled libraries when the uninstalled
cannam@154 9483 # path is not listed in the libpath. Setting hardcode_minus_L
cannam@154 9484 # to unsupported forces relinking
cannam@154 9485 hardcode_minus_L=yes
cannam@154 9486 hardcode_libdir_flag_spec='-L$libdir'
cannam@154 9487 hardcode_libdir_separator=
cannam@154 9488 fi
cannam@154 9489 ;;
cannam@154 9490 esac
cannam@154 9491 shared_flag='-shared'
cannam@154 9492 if test yes = "$aix_use_runtimelinking"; then
cannam@154 9493 shared_flag="$shared_flag "'$wl-G'
cannam@154 9494 fi
cannam@154 9495 # Need to ensure runtime linking is disabled for the traditional
cannam@154 9496 # shared library, or the linker may eventually find shared libraries
cannam@154 9497 # /with/ Import File - we do not want to mix them.
cannam@154 9498 shared_flag_aix='-shared'
cannam@154 9499 shared_flag_svr4='-shared $wl-G'
cannam@154 9500 else
cannam@154 9501 # not using gcc
cannam@154 9502 if test ia64 = "$host_cpu"; then
cannam@154 9503 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
cannam@154 9504 # chokes on -Wl,-G. The following line is correct:
cannam@154 9505 shared_flag='-G'
cannam@154 9506 else
cannam@154 9507 if test yes = "$aix_use_runtimelinking"; then
cannam@154 9508 shared_flag='$wl-G'
cannam@154 9509 else
cannam@154 9510 shared_flag='$wl-bM:SRE'
cannam@154 9511 fi
cannam@154 9512 shared_flag_aix='$wl-bM:SRE'
cannam@154 9513 shared_flag_svr4='$wl-G'
cannam@154 9514 fi
cannam@154 9515 fi
cannam@154 9516
cannam@154 9517 export_dynamic_flag_spec='$wl-bexpall'
cannam@154 9518 # It seems that -bexpall does not export symbols beginning with
cannam@154 9519 # underscore (_), so it is better to generate a list of symbols to export.
cannam@154 9520 always_export_symbols=yes
cannam@154 9521 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
cannam@154 9522 # Warning - without using the other runtime loading flags (-brtl),
cannam@154 9523 # -berok will link without error, but may produce a broken library.
cannam@154 9524 allow_undefined_flag='-berok'
cannam@154 9525 # Determine the default libpath from the value encoded in an
cannam@154 9526 # empty executable.
cannam@154 9527 if test set = "${lt_cv_aix_libpath+set}"; then
cannam@154 9528 aix_libpath=$lt_cv_aix_libpath
cannam@154 9529 else
cannam@154 9530 if ${lt_cv_aix_libpath_+:} false; then :
cannam@154 9531 $as_echo_n "(cached) " >&6
cannam@154 9532 else
cannam@154 9533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 9534 /* end confdefs.h. */
cannam@154 9535
cannam@154 9536 int
cannam@154 9537 main ()
cannam@154 9538 {
cannam@154 9539
cannam@154 9540 ;
cannam@154 9541 return 0;
cannam@154 9542 }
cannam@154 9543 _ACEOF
cannam@154 9544 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 9545
cannam@154 9546 lt_aix_libpath_sed='
cannam@154 9547 /Import File Strings/,/^$/ {
cannam@154 9548 /^0/ {
cannam@154 9549 s/^0 *\([^ ]*\) *$/\1/
cannam@154 9550 p
cannam@154 9551 }
cannam@154 9552 }'
cannam@154 9553 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@154 9554 # Check for a 64-bit object if we didn't find anything.
cannam@154 9555 if test -z "$lt_cv_aix_libpath_"; then
cannam@154 9556 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@154 9557 fi
cannam@154 9558 fi
cannam@154 9559 rm -f core conftest.err conftest.$ac_objext \
cannam@154 9560 conftest$ac_exeext conftest.$ac_ext
cannam@154 9561 if test -z "$lt_cv_aix_libpath_"; then
cannam@154 9562 lt_cv_aix_libpath_=/usr/lib:/lib
cannam@154 9563 fi
cannam@154 9564
cannam@154 9565 fi
cannam@154 9566
cannam@154 9567 aix_libpath=$lt_cv_aix_libpath_
cannam@154 9568 fi
cannam@154 9569
cannam@154 9570 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
cannam@154 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
cannam@154 9572 else
cannam@154 9573 if test ia64 = "$host_cpu"; then
cannam@154 9574 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
cannam@154 9575 allow_undefined_flag="-z nodefs"
cannam@154 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"
cannam@154 9577 else
cannam@154 9578 # Determine the default libpath from the value encoded in an
cannam@154 9579 # empty executable.
cannam@154 9580 if test set = "${lt_cv_aix_libpath+set}"; then
cannam@154 9581 aix_libpath=$lt_cv_aix_libpath
cannam@154 9582 else
cannam@154 9583 if ${lt_cv_aix_libpath_+:} false; then :
cannam@154 9584 $as_echo_n "(cached) " >&6
cannam@154 9585 else
cannam@154 9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 9587 /* end confdefs.h. */
cannam@154 9588
cannam@154 9589 int
cannam@154 9590 main ()
cannam@154 9591 {
cannam@154 9592
cannam@154 9593 ;
cannam@154 9594 return 0;
cannam@154 9595 }
cannam@154 9596 _ACEOF
cannam@154 9597 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 9598
cannam@154 9599 lt_aix_libpath_sed='
cannam@154 9600 /Import File Strings/,/^$/ {
cannam@154 9601 /^0/ {
cannam@154 9602 s/^0 *\([^ ]*\) *$/\1/
cannam@154 9603 p
cannam@154 9604 }
cannam@154 9605 }'
cannam@154 9606 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@154 9607 # Check for a 64-bit object if we didn't find anything.
cannam@154 9608 if test -z "$lt_cv_aix_libpath_"; then
cannam@154 9609 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@154 9610 fi
cannam@154 9611 fi
cannam@154 9612 rm -f core conftest.err conftest.$ac_objext \
cannam@154 9613 conftest$ac_exeext conftest.$ac_ext
cannam@154 9614 if test -z "$lt_cv_aix_libpath_"; then
cannam@154 9615 lt_cv_aix_libpath_=/usr/lib:/lib
cannam@154 9616 fi
cannam@154 9617
cannam@154 9618 fi
cannam@154 9619
cannam@154 9620 aix_libpath=$lt_cv_aix_libpath_
cannam@154 9621 fi
cannam@154 9622
cannam@154 9623 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
cannam@154 9624 # Warning - without using the other run time loading flags,
cannam@154 9625 # -berok will link without error, but may produce a broken library.
cannam@154 9626 no_undefined_flag=' $wl-bernotok'
cannam@154 9627 allow_undefined_flag=' $wl-berok'
cannam@154 9628 if test yes = "$with_gnu_ld"; then
cannam@154 9629 # We only use this code for GNU lds that support --whole-archive.
cannam@154 9630 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
cannam@154 9631 else
cannam@154 9632 # Exported symbols can be pulled into shared objects from archives
cannam@154 9633 whole_archive_flag_spec='$convenience'
cannam@154 9634 fi
cannam@154 9635 archive_cmds_need_lc=yes
cannam@154 9636 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
cannam@154 9637 # -brtl affects multiple linker settings, -berok does not and is overridden later
cannam@154 9638 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
cannam@154 9639 if test svr4 != "$with_aix_soname"; then
cannam@154 9640 # This is similar to how AIX traditionally builds its shared libraries.
cannam@154 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'
cannam@154 9642 fi
cannam@154 9643 if test aix != "$with_aix_soname"; then
cannam@154 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'
cannam@154 9645 else
cannam@154 9646 # used by -dlpreopen to get the symbols
cannam@154 9647 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
cannam@154 9648 fi
cannam@154 9649 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
cannam@154 9650 fi
cannam@154 9651 fi
cannam@154 9652 ;;
cannam@154 9653
cannam@154 9654 amigaos*)
cannam@154 9655 case $host_cpu in
cannam@154 9656 powerpc)
cannam@154 9657 # see comment about AmigaOS4 .so support
cannam@154 9658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cannam@154 9659 archive_expsym_cmds=''
cannam@154 9660 ;;
cannam@154 9661 m68k)
cannam@154 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)'
cannam@154 9663 hardcode_libdir_flag_spec='-L$libdir'
cannam@154 9664 hardcode_minus_L=yes
cannam@154 9665 ;;
cannam@154 9666 esac
cannam@154 9667 ;;
cannam@154 9668
cannam@154 9669 bsdi[45]*)
cannam@154 9670 export_dynamic_flag_spec=-rdynamic
cannam@154 9671 ;;
cannam@154 9672
cannam@154 9673 cygwin* | mingw* | pw32* | cegcc*)
cannam@154 9674 # When not using gcc, we currently assume that we are using
cannam@154 9675 # Microsoft Visual C++.
cannam@154 9676 # hardcode_libdir_flag_spec is actually meaningless, as there is
cannam@154 9677 # no search path for DLLs.
cannam@154 9678 case $cc_basename in
cannam@154 9679 cl*)
cannam@154 9680 # Native MSVC
cannam@154 9681 hardcode_libdir_flag_spec=' '
cannam@154 9682 allow_undefined_flag=unsupported
cannam@154 9683 always_export_symbols=yes
cannam@154 9684 file_list_spec='@'
cannam@154 9685 # Tell ltmain to make .lib files, not .a files.
cannam@154 9686 libext=lib
cannam@154 9687 # Tell ltmain to make .dll files, not .so files.
cannam@154 9688 shrext_cmds=.dll
cannam@154 9689 # FIXME: Setting linknames here is a bad hack.
cannam@154 9690 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
cannam@154 9691 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
cannam@154 9692 cp "$export_symbols" "$output_objdir/$soname.def";
cannam@154 9693 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
cannam@154 9694 else
cannam@154 9695 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
cannam@154 9696 fi~
cannam@154 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"~
cannam@154 9698 linknames='
cannam@154 9699 # The linker will not automatically build a static lib if we build a DLL.
cannam@154 9700 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
cannam@154 9701 enable_shared_with_static_runtimes=yes
cannam@154 9702 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cannam@154 9703 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
cannam@154 9704 # Don't use ranlib
cannam@154 9705 old_postinstall_cmds='chmod 644 $oldlib'
cannam@154 9706 postlink_cmds='lt_outputfile="@OUTPUT@"~
cannam@154 9707 lt_tool_outputfile="@TOOL_OUTPUT@"~
cannam@154 9708 case $lt_outputfile in
cannam@154 9709 *.exe|*.EXE) ;;
cannam@154 9710 *)
cannam@154 9711 lt_outputfile=$lt_outputfile.exe
cannam@154 9712 lt_tool_outputfile=$lt_tool_outputfile.exe
cannam@154 9713 ;;
cannam@154 9714 esac~
cannam@154 9715 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
cannam@154 9716 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
cannam@154 9717 $RM "$lt_outputfile.manifest";
cannam@154 9718 fi'
cannam@154 9719 ;;
cannam@154 9720 *)
cannam@154 9721 # Assume MSVC wrapper
cannam@154 9722 hardcode_libdir_flag_spec=' '
cannam@154 9723 allow_undefined_flag=unsupported
cannam@154 9724 # Tell ltmain to make .lib files, not .a files.
cannam@154 9725 libext=lib
cannam@154 9726 # Tell ltmain to make .dll files, not .so files.
cannam@154 9727 shrext_cmds=.dll
cannam@154 9728 # FIXME: Setting linknames here is a bad hack.
cannam@154 9729 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
cannam@154 9730 # The linker will automatically build a .lib file if we build a DLL.
cannam@154 9731 old_archive_from_new_cmds='true'
cannam@154 9732 # FIXME: Should let the user specify the lib program.
cannam@154 9733 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
cannam@154 9734 enable_shared_with_static_runtimes=yes
cannam@154 9735 ;;
cannam@154 9736 esac
cannam@154 9737 ;;
cannam@154 9738
cannam@154 9739 darwin* | rhapsody*)
cannam@154 9740
cannam@154 9741
cannam@154 9742 archive_cmds_need_lc=no
cannam@154 9743 hardcode_direct=no
cannam@154 9744 hardcode_automatic=yes
cannam@154 9745 hardcode_shlibpath_var=unsupported
cannam@154 9746 if test yes = "$lt_cv_ld_force_load"; then
cannam@154 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\"`'
cannam@154 9748
cannam@154 9749 else
cannam@154 9750 whole_archive_flag_spec=''
cannam@154 9751 fi
cannam@154 9752 link_all_deplibs=yes
cannam@154 9753 allow_undefined_flag=$_lt_dar_allow_undefined
cannam@154 9754 case $cc_basename in
cannam@154 9755 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
cannam@154 9756 *) _lt_dar_can_shared=$GCC ;;
cannam@154 9757 esac
cannam@154 9758 if test yes = "$_lt_dar_can_shared"; then
cannam@154 9759 output_verbose_link_cmd=func_echo_all
cannam@154 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"
cannam@154 9761 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
cannam@154 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"
cannam@154 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"
cannam@154 9764
cannam@154 9765 else
cannam@154 9766 ld_shlibs=no
cannam@154 9767 fi
cannam@154 9768
cannam@154 9769 ;;
cannam@154 9770
cannam@154 9771 dgux*)
cannam@154 9772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@154 9773 hardcode_libdir_flag_spec='-L$libdir'
cannam@154 9774 hardcode_shlibpath_var=no
cannam@154 9775 ;;
cannam@154 9776
cannam@154 9777 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
cannam@154 9778 # support. Future versions do this automatically, but an explicit c++rt0.o
cannam@154 9779 # does not break anything, and helps significantly (at the cost of a little
cannam@154 9780 # extra space).
cannam@154 9781 freebsd2.2*)
cannam@154 9782 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
cannam@154 9783 hardcode_libdir_flag_spec='-R$libdir'
cannam@154 9784 hardcode_direct=yes
cannam@154 9785 hardcode_shlibpath_var=no
cannam@154 9786 ;;
cannam@154 9787
cannam@154 9788 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cannam@154 9789 freebsd2.*)
cannam@154 9790 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@154 9791 hardcode_direct=yes
cannam@154 9792 hardcode_minus_L=yes
cannam@154 9793 hardcode_shlibpath_var=no
cannam@154 9794 ;;
cannam@154 9795
cannam@154 9796 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
cannam@154 9797 freebsd* | dragonfly*)
cannam@154 9798 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@154 9799 hardcode_libdir_flag_spec='-R$libdir'
cannam@154 9800 hardcode_direct=yes
cannam@154 9801 hardcode_shlibpath_var=no
cannam@154 9802 ;;
cannam@154 9803
cannam@154 9804 hpux9*)
cannam@154 9805 if test yes = "$GCC"; then
cannam@154 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'
cannam@154 9807 else
cannam@154 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'
cannam@154 9809 fi
cannam@154 9810 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
cannam@154 9811 hardcode_libdir_separator=:
cannam@154 9812 hardcode_direct=yes
cannam@154 9813
cannam@154 9814 # hardcode_minus_L: Not really in the search PATH,
cannam@154 9815 # but as the default location of the library.
cannam@154 9816 hardcode_minus_L=yes
cannam@154 9817 export_dynamic_flag_spec='$wl-E'
cannam@154 9818 ;;
cannam@154 9819
cannam@154 9820 hpux10*)
cannam@154 9821 if test yes,no = "$GCC,$with_gnu_ld"; then
cannam@154 9822 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@154 9823 else
cannam@154 9824 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
cannam@154 9825 fi
cannam@154 9826 if test no = "$with_gnu_ld"; then
cannam@154 9827 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
cannam@154 9828 hardcode_libdir_separator=:
cannam@154 9829 hardcode_direct=yes
cannam@154 9830 hardcode_direct_absolute=yes
cannam@154 9831 export_dynamic_flag_spec='$wl-E'
cannam@154 9832 # hardcode_minus_L: Not really in the search PATH,
cannam@154 9833 # but as the default location of the library.
cannam@154 9834 hardcode_minus_L=yes
cannam@154 9835 fi
cannam@154 9836 ;;
cannam@154 9837
cannam@154 9838 hpux11*)
cannam@154 9839 if test yes,no = "$GCC,$with_gnu_ld"; then
cannam@154 9840 case $host_cpu in
cannam@154 9841 hppa*64*)
cannam@154 9842 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@154 9843 ;;
cannam@154 9844 ia64*)
cannam@154 9845 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cannam@154 9846 ;;
cannam@154 9847 *)
cannam@154 9848 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@154 9849 ;;
cannam@154 9850 esac
cannam@154 9851 else
cannam@154 9852 case $host_cpu in
cannam@154 9853 hppa*64*)
cannam@154 9854 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@154 9855 ;;
cannam@154 9856 ia64*)
cannam@154 9857 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cannam@154 9858 ;;
cannam@154 9859 *)
cannam@154 9860
cannam@154 9861 # Older versions of the 11.00 compiler do not understand -b yet
cannam@154 9862 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
cannam@154 9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
cannam@154 9864 $as_echo_n "checking if $CC understands -b... " >&6; }
cannam@154 9865 if ${lt_cv_prog_compiler__b+:} false; then :
cannam@154 9866 $as_echo_n "(cached) " >&6
cannam@154 9867 else
cannam@154 9868 lt_cv_prog_compiler__b=no
cannam@154 9869 save_LDFLAGS=$LDFLAGS
cannam@154 9870 LDFLAGS="$LDFLAGS -b"
cannam@154 9871 echo "$lt_simple_link_test_code" > conftest.$ac_ext
cannam@154 9872 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
cannam@154 9873 # The linker can only warn and ignore the option if not recognized
cannam@154 9874 # So say no if there are warnings
cannam@154 9875 if test -s conftest.err; then
cannam@154 9876 # Append any errors to the config.log.
cannam@154 9877 cat conftest.err 1>&5
cannam@154 9878 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cannam@154 9879 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@154 9880 if diff conftest.exp conftest.er2 >/dev/null; then
cannam@154 9881 lt_cv_prog_compiler__b=yes
cannam@154 9882 fi
cannam@154 9883 else
cannam@154 9884 lt_cv_prog_compiler__b=yes
cannam@154 9885 fi
cannam@154 9886 fi
cannam@154 9887 $RM -r conftest*
cannam@154 9888 LDFLAGS=$save_LDFLAGS
cannam@154 9889
cannam@154 9890 fi
cannam@154 9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
cannam@154 9892 $as_echo "$lt_cv_prog_compiler__b" >&6; }
cannam@154 9893
cannam@154 9894 if test yes = "$lt_cv_prog_compiler__b"; then
cannam@154 9895 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@154 9896 else
cannam@154 9897 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
cannam@154 9898 fi
cannam@154 9899
cannam@154 9900 ;;
cannam@154 9901 esac
cannam@154 9902 fi
cannam@154 9903 if test no = "$with_gnu_ld"; then
cannam@154 9904 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
cannam@154 9905 hardcode_libdir_separator=:
cannam@154 9906
cannam@154 9907 case $host_cpu in
cannam@154 9908 hppa*64*|ia64*)
cannam@154 9909 hardcode_direct=no
cannam@154 9910 hardcode_shlibpath_var=no
cannam@154 9911 ;;
cannam@154 9912 *)
cannam@154 9913 hardcode_direct=yes
cannam@154 9914 hardcode_direct_absolute=yes
cannam@154 9915 export_dynamic_flag_spec='$wl-E'
cannam@154 9916
cannam@154 9917 # hardcode_minus_L: Not really in the search PATH,
cannam@154 9918 # but as the default location of the library.
cannam@154 9919 hardcode_minus_L=yes
cannam@154 9920 ;;
cannam@154 9921 esac
cannam@154 9922 fi
cannam@154 9923 ;;
cannam@154 9924
cannam@154 9925 irix5* | irix6* | nonstopux*)
cannam@154 9926 if test yes = "$GCC"; then
cannam@154 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'
cannam@154 9928 # Try to use the -exported_symbol ld option, if it does not
cannam@154 9929 # work, assume that -exports_file does not work either and
cannam@154 9930 # implicitly export all symbols.
cannam@154 9931 # This should be the same for all languages, so no per-tag cache variable.
cannam@154 9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
cannam@154 9933 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
cannam@154 9934 if ${lt_cv_irix_exported_symbol+:} false; then :
cannam@154 9935 $as_echo_n "(cached) " >&6
cannam@154 9936 else
cannam@154 9937 save_LDFLAGS=$LDFLAGS
cannam@154 9938 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
cannam@154 9939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 9940 /* end confdefs.h. */
cannam@154 9941 int foo (void) { return 0; }
cannam@154 9942 _ACEOF
cannam@154 9943 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 9944 lt_cv_irix_exported_symbol=yes
cannam@154 9945 else
cannam@154 9946 lt_cv_irix_exported_symbol=no
cannam@154 9947 fi
cannam@154 9948 rm -f core conftest.err conftest.$ac_objext \
cannam@154 9949 conftest$ac_exeext conftest.$ac_ext
cannam@154 9950 LDFLAGS=$save_LDFLAGS
cannam@154 9951 fi
cannam@154 9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
cannam@154 9953 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
cannam@154 9954 if test yes = "$lt_cv_irix_exported_symbol"; then
cannam@154 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'
cannam@154 9956 fi
cannam@154 9957 else
cannam@154 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'
cannam@154 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'
cannam@154 9960 fi
cannam@154 9961 archive_cmds_need_lc='no'
cannam@154 9962 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cannam@154 9963 hardcode_libdir_separator=:
cannam@154 9964 inherit_rpath=yes
cannam@154 9965 link_all_deplibs=yes
cannam@154 9966 ;;
cannam@154 9967
cannam@154 9968 linux*)
cannam@154 9969 case $cc_basename in
cannam@154 9970 tcc*)
cannam@154 9971 # Fabrice Bellard et al's Tiny C Compiler
cannam@154 9972 ld_shlibs=yes
cannam@154 9973 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@154 9974 ;;
cannam@154 9975 esac
cannam@154 9976 ;;
cannam@154 9977
cannam@154 9978 netbsd*)
cannam@154 9979 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@154 9980 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
cannam@154 9981 else
cannam@154 9982 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
cannam@154 9983 fi
cannam@154 9984 hardcode_libdir_flag_spec='-R$libdir'
cannam@154 9985 hardcode_direct=yes
cannam@154 9986 hardcode_shlibpath_var=no
cannam@154 9987 ;;
cannam@154 9988
cannam@154 9989 newsos6)
cannam@154 9990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@154 9991 hardcode_direct=yes
cannam@154 9992 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cannam@154 9993 hardcode_libdir_separator=:
cannam@154 9994 hardcode_shlibpath_var=no
cannam@154 9995 ;;
cannam@154 9996
cannam@154 9997 *nto* | *qnx*)
cannam@154 9998 ;;
cannam@154 9999
cannam@154 10000 openbsd* | bitrig*)
cannam@154 10001 if test -f /usr/libexec/ld.so; then
cannam@154 10002 hardcode_direct=yes
cannam@154 10003 hardcode_shlibpath_var=no
cannam@154 10004 hardcode_direct_absolute=yes
cannam@154 10005 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
cannam@154 10006 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@154 10007 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
cannam@154 10008 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
cannam@154 10009 export_dynamic_flag_spec='$wl-E'
cannam@154 10010 else
cannam@154 10011 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@154 10012 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
cannam@154 10013 fi
cannam@154 10014 else
cannam@154 10015 ld_shlibs=no
cannam@154 10016 fi
cannam@154 10017 ;;
cannam@154 10018
cannam@154 10019 os2*)
cannam@154 10020 hardcode_libdir_flag_spec='-L$libdir'
cannam@154 10021 hardcode_minus_L=yes
cannam@154 10022 allow_undefined_flag=unsupported
cannam@154 10023 shrext_cmds=.dll
cannam@154 10024 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
cannam@154 10025 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
cannam@154 10026 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
cannam@154 10027 $ECHO EXPORTS >> $output_objdir/$libname.def~
cannam@154 10028 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
cannam@154 10029 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
cannam@154 10030 emximp -o $lib $output_objdir/$libname.def'
cannam@154 10031 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
cannam@154 10032 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
cannam@154 10033 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
cannam@154 10034 $ECHO EXPORTS >> $output_objdir/$libname.def~
cannam@154 10035 prefix_cmds="$SED"~
cannam@154 10036 if test EXPORTS = "`$SED 1q $export_symbols`"; then
cannam@154 10037 prefix_cmds="$prefix_cmds -e 1d";
cannam@154 10038 fi~
cannam@154 10039 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
cannam@154 10040 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
cannam@154 10041 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
cannam@154 10042 emximp -o $lib $output_objdir/$libname.def'
cannam@154 10043 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
cannam@154 10044 enable_shared_with_static_runtimes=yes
cannam@154 10045 ;;
cannam@154 10046
cannam@154 10047 osf3*)
cannam@154 10048 if test yes = "$GCC"; then
cannam@154 10049 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
cannam@154 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'
cannam@154 10051 else
cannam@154 10052 allow_undefined_flag=' -expect_unresolved \*'
cannam@154 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'
cannam@154 10054 fi
cannam@154 10055 archive_cmds_need_lc='no'
cannam@154 10056 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cannam@154 10057 hardcode_libdir_separator=:
cannam@154 10058 ;;
cannam@154 10059
cannam@154 10060 osf4* | osf5*) # as osf3* with the addition of -msym flag
cannam@154 10061 if test yes = "$GCC"; then
cannam@154 10062 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
cannam@154 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'
cannam@154 10064 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cannam@154 10065 else
cannam@154 10066 allow_undefined_flag=' -expect_unresolved \*'
cannam@154 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'
cannam@154 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~
cannam@154 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'
cannam@154 10070
cannam@154 10071 # Both c and cxx compiler support -rpath directly
cannam@154 10072 hardcode_libdir_flag_spec='-rpath $libdir'
cannam@154 10073 fi
cannam@154 10074 archive_cmds_need_lc='no'
cannam@154 10075 hardcode_libdir_separator=:
cannam@154 10076 ;;
cannam@154 10077
cannam@154 10078 solaris*)
cannam@154 10079 no_undefined_flag=' -z defs'
cannam@154 10080 if test yes = "$GCC"; then
cannam@154 10081 wlarc='$wl'
cannam@154 10082 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@154 10083 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@154 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'
cannam@154 10085 else
cannam@154 10086 case `$CC -V 2>&1` in
cannam@154 10087 *"Compilers 5.0"*)
cannam@154 10088 wlarc=''
cannam@154 10089 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@154 10090 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@154 10091 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
cannam@154 10092 ;;
cannam@154 10093 *)
cannam@154 10094 wlarc='$wl'
cannam@154 10095 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@154 10096 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@154 10097 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
cannam@154 10098 ;;
cannam@154 10099 esac
cannam@154 10100 fi
cannam@154 10101 hardcode_libdir_flag_spec='-R$libdir'
cannam@154 10102 hardcode_shlibpath_var=no
cannam@154 10103 case $host_os in
cannam@154 10104 solaris2.[0-5] | solaris2.[0-5].*) ;;
cannam@154 10105 *)
cannam@154 10106 # The compiler driver will combine and reorder linker options,
cannam@154 10107 # but understands '-z linker_flag'. GCC discards it without '$wl',
cannam@154 10108 # but is careful enough not to reorder.
cannam@154 10109 # Supported since Solaris 2.6 (maybe 2.5.1?)
cannam@154 10110 if test yes = "$GCC"; then
cannam@154 10111 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
cannam@154 10112 else
cannam@154 10113 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
cannam@154 10114 fi
cannam@154 10115 ;;
cannam@154 10116 esac
cannam@154 10117 link_all_deplibs=yes
cannam@154 10118 ;;
cannam@154 10119
cannam@154 10120 sunos4*)
cannam@154 10121 if test sequent = "$host_vendor"; then
cannam@154 10122 # Use $CC to link under sequent, because it throws in some extra .o
cannam@154 10123 # files that make .init and .fini sections work.
cannam@154 10124 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@154 10125 else
cannam@154 10126 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
cannam@154 10127 fi
cannam@154 10128 hardcode_libdir_flag_spec='-L$libdir'
cannam@154 10129 hardcode_direct=yes
cannam@154 10130 hardcode_minus_L=yes
cannam@154 10131 hardcode_shlibpath_var=no
cannam@154 10132 ;;
cannam@154 10133
cannam@154 10134 sysv4)
cannam@154 10135 case $host_vendor in
cannam@154 10136 sni)
cannam@154 10137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@154 10138 hardcode_direct=yes # is this really true???
cannam@154 10139 ;;
cannam@154 10140 siemens)
cannam@154 10141 ## LD is ld it makes a PLAMLIB
cannam@154 10142 ## CC just makes a GrossModule.
cannam@154 10143 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
cannam@154 10144 reload_cmds='$CC -r -o $output$reload_objs'
cannam@154 10145 hardcode_direct=no
cannam@154 10146 ;;
cannam@154 10147 motorola)
cannam@154 10148 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@154 10149 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
cannam@154 10150 ;;
cannam@154 10151 esac
cannam@154 10152 runpath_var='LD_RUN_PATH'
cannam@154 10153 hardcode_shlibpath_var=no
cannam@154 10154 ;;
cannam@154 10155
cannam@154 10156 sysv4.3*)
cannam@154 10157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@154 10158 hardcode_shlibpath_var=no
cannam@154 10159 export_dynamic_flag_spec='-Bexport'
cannam@154 10160 ;;
cannam@154 10161
cannam@154 10162 sysv4*MP*)
cannam@154 10163 if test -d /usr/nec; then
cannam@154 10164 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@154 10165 hardcode_shlibpath_var=no
cannam@154 10166 runpath_var=LD_RUN_PATH
cannam@154 10167 hardcode_runpath_var=yes
cannam@154 10168 ld_shlibs=yes
cannam@154 10169 fi
cannam@154 10170 ;;
cannam@154 10171
cannam@154 10172 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
cannam@154 10173 no_undefined_flag='$wl-z,text'
cannam@154 10174 archive_cmds_need_lc=no
cannam@154 10175 hardcode_shlibpath_var=no
cannam@154 10176 runpath_var='LD_RUN_PATH'
cannam@154 10177
cannam@154 10178 if test yes = "$GCC"; then
cannam@154 10179 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@154 10180 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@154 10181 else
cannam@154 10182 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@154 10183 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@154 10184 fi
cannam@154 10185 ;;
cannam@154 10186
cannam@154 10187 sysv5* | sco3.2v5* | sco5v6*)
cannam@154 10188 # Note: We CANNOT use -z defs as we might desire, because we do not
cannam@154 10189 # link with -lc, and that would cause any symbols used from libc to
cannam@154 10190 # always be unresolved, which means just about no library would
cannam@154 10191 # ever link correctly. If we're not using GNU ld we use -z text
cannam@154 10192 # though, which does catch some bad symbols but isn't as heavy-handed
cannam@154 10193 # as -z defs.
cannam@154 10194 no_undefined_flag='$wl-z,text'
cannam@154 10195 allow_undefined_flag='$wl-z,nodefs'
cannam@154 10196 archive_cmds_need_lc=no
cannam@154 10197 hardcode_shlibpath_var=no
cannam@154 10198 hardcode_libdir_flag_spec='$wl-R,$libdir'
cannam@154 10199 hardcode_libdir_separator=':'
cannam@154 10200 link_all_deplibs=yes
cannam@154 10201 export_dynamic_flag_spec='$wl-Bexport'
cannam@154 10202 runpath_var='LD_RUN_PATH'
cannam@154 10203
cannam@154 10204 if test yes = "$GCC"; then
cannam@154 10205 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@154 10206 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@154 10207 else
cannam@154 10208 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@154 10209 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@154 10210 fi
cannam@154 10211 ;;
cannam@154 10212
cannam@154 10213 uts4*)
cannam@154 10214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@154 10215 hardcode_libdir_flag_spec='-L$libdir'
cannam@154 10216 hardcode_shlibpath_var=no
cannam@154 10217 ;;
cannam@154 10218
cannam@154 10219 *)
cannam@154 10220 ld_shlibs=no
cannam@154 10221 ;;
cannam@154 10222 esac
cannam@154 10223
cannam@154 10224 if test sni = "$host_vendor"; then
cannam@154 10225 case $host in
cannam@154 10226 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cannam@154 10227 export_dynamic_flag_spec='$wl-Blargedynsym'
cannam@154 10228 ;;
cannam@154 10229 esac
cannam@154 10230 fi
cannam@154 10231 fi
cannam@154 10232
cannam@154 10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cannam@154 10234 $as_echo "$ld_shlibs" >&6; }
cannam@154 10235 test no = "$ld_shlibs" && can_build_shared=no
cannam@154 10236
cannam@154 10237 with_gnu_ld=$with_gnu_ld
cannam@154 10238
cannam@154 10239
cannam@154 10240
cannam@154 10241
cannam@154 10242
cannam@154 10243
cannam@154 10244
cannam@154 10245
cannam@154 10246
cannam@154 10247
cannam@154 10248
cannam@154 10249
cannam@154 10250
cannam@154 10251
cannam@154 10252
cannam@154 10253 #
cannam@154 10254 # Do we need to explicitly link libc?
cannam@154 10255 #
cannam@154 10256 case "x$archive_cmds_need_lc" in
cannam@154 10257 x|xyes)
cannam@154 10258 # Assume -lc should be added
cannam@154 10259 archive_cmds_need_lc=yes
cannam@154 10260
cannam@154 10261 if test yes,yes = "$GCC,$enable_shared"; then
cannam@154 10262 case $archive_cmds in
cannam@154 10263 *'~'*)
cannam@154 10264 # FIXME: we may have to deal with multi-command sequences.
cannam@154 10265 ;;
cannam@154 10266 '$CC '*)
cannam@154 10267 # Test whether the compiler implicitly links with -lc since on some
cannam@154 10268 # systems, -lgcc has to come before -lc. If gcc already passes -lc
cannam@154 10269 # to ld, don't add -lc before -lgcc.
cannam@154 10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cannam@154 10271 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cannam@154 10272 if ${lt_cv_archive_cmds_need_lc+:} false; then :
cannam@154 10273 $as_echo_n "(cached) " >&6
cannam@154 10274 else
cannam@154 10275 $RM conftest*
cannam@154 10276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@154 10277
cannam@154 10278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@154 10279 (eval $ac_compile) 2>&5
cannam@154 10280 ac_status=$?
cannam@154 10281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@154 10282 test $ac_status = 0; } 2>conftest.err; then
cannam@154 10283 soname=conftest
cannam@154 10284 lib=conftest
cannam@154 10285 libobjs=conftest.$ac_objext
cannam@154 10286 deplibs=
cannam@154 10287 wl=$lt_prog_compiler_wl
cannam@154 10288 pic_flag=$lt_prog_compiler_pic
cannam@154 10289 compiler_flags=-v
cannam@154 10290 linker_flags=-v
cannam@154 10291 verstring=
cannam@154 10292 output_objdir=.
cannam@154 10293 libname=conftest
cannam@154 10294 lt_save_allow_undefined_flag=$allow_undefined_flag
cannam@154 10295 allow_undefined_flag=
cannam@154 10296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cannam@154 10297 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
cannam@154 10298 ac_status=$?
cannam@154 10299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@154 10300 test $ac_status = 0; }
cannam@154 10301 then
cannam@154 10302 lt_cv_archive_cmds_need_lc=no
cannam@154 10303 else
cannam@154 10304 lt_cv_archive_cmds_need_lc=yes
cannam@154 10305 fi
cannam@154 10306 allow_undefined_flag=$lt_save_allow_undefined_flag
cannam@154 10307 else
cannam@154 10308 cat conftest.err 1>&5
cannam@154 10309 fi
cannam@154 10310 $RM conftest*
cannam@154 10311
cannam@154 10312 fi
cannam@154 10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
cannam@154 10314 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
cannam@154 10315 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cannam@154 10316 ;;
cannam@154 10317 esac
cannam@154 10318 fi
cannam@154 10319 ;;
cannam@154 10320 esac
cannam@154 10321
cannam@154 10322
cannam@154 10323
cannam@154 10324
cannam@154 10325
cannam@154 10326
cannam@154 10327
cannam@154 10328
cannam@154 10329
cannam@154 10330
cannam@154 10331
cannam@154 10332
cannam@154 10333
cannam@154 10334
cannam@154 10335
cannam@154 10336
cannam@154 10337
cannam@154 10338
cannam@154 10339
cannam@154 10340
cannam@154 10341
cannam@154 10342
cannam@154 10343
cannam@154 10344
cannam@154 10345
cannam@154 10346
cannam@154 10347
cannam@154 10348
cannam@154 10349
cannam@154 10350
cannam@154 10351
cannam@154 10352
cannam@154 10353
cannam@154 10354
cannam@154 10355
cannam@154 10356
cannam@154 10357
cannam@154 10358
cannam@154 10359
cannam@154 10360
cannam@154 10361
cannam@154 10362
cannam@154 10363
cannam@154 10364
cannam@154 10365
cannam@154 10366
cannam@154 10367
cannam@154 10368
cannam@154 10369
cannam@154 10370
cannam@154 10371
cannam@154 10372
cannam@154 10373
cannam@154 10374
cannam@154 10375
cannam@154 10376
cannam@154 10377
cannam@154 10378
cannam@154 10379
cannam@154 10380
cannam@154 10381
cannam@154 10382
cannam@154 10383
cannam@154 10384
cannam@154 10385
cannam@154 10386
cannam@154 10387
cannam@154 10388
cannam@154 10389
cannam@154 10390
cannam@154 10391
cannam@154 10392
cannam@154 10393
cannam@154 10394
cannam@154 10395
cannam@154 10396
cannam@154 10397
cannam@154 10398
cannam@154 10399
cannam@154 10400
cannam@154 10401
cannam@154 10402
cannam@154 10403
cannam@154 10404
cannam@154 10405
cannam@154 10406
cannam@154 10407
cannam@154 10408
cannam@154 10409
cannam@154 10410
cannam@154 10411
cannam@154 10412
cannam@154 10413
cannam@154 10414
cannam@154 10415
cannam@154 10416
cannam@154 10417
cannam@154 10418
cannam@154 10419
cannam@154 10420
cannam@154 10421
cannam@154 10422
cannam@154 10423
cannam@154 10424
cannam@154 10425
cannam@154 10426
cannam@154 10427
cannam@154 10428
cannam@154 10429
cannam@154 10430
cannam@154 10431
cannam@154 10432
cannam@154 10433
cannam@154 10434
cannam@154 10435
cannam@154 10436
cannam@154 10437
cannam@154 10438
cannam@154 10439
cannam@154 10440
cannam@154 10441
cannam@154 10442
cannam@154 10443
cannam@154 10444
cannam@154 10445
cannam@154 10446
cannam@154 10447
cannam@154 10448
cannam@154 10449
cannam@154 10450
cannam@154 10451
cannam@154 10452
cannam@154 10453
cannam@154 10454
cannam@154 10455
cannam@154 10456
cannam@154 10457
cannam@154 10458
cannam@154 10459
cannam@154 10460
cannam@154 10461
cannam@154 10462
cannam@154 10463
cannam@154 10464
cannam@154 10465
cannam@154 10466
cannam@154 10467
cannam@154 10468
cannam@154 10469
cannam@154 10470
cannam@154 10471
cannam@154 10472
cannam@154 10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cannam@154 10474 $as_echo_n "checking dynamic linker characteristics... " >&6; }
cannam@154 10475
cannam@154 10476 if test yes = "$GCC"; then
cannam@154 10477 case $host_os in
cannam@154 10478 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
cannam@154 10479 *) lt_awk_arg='/^libraries:/' ;;
cannam@154 10480 esac
cannam@154 10481 case $host_os in
cannam@154 10482 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
cannam@154 10483 *) lt_sed_strip_eq='s|=/|/|g' ;;
cannam@154 10484 esac
cannam@154 10485 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
cannam@154 10486 case $lt_search_path_spec in
cannam@154 10487 *\;*)
cannam@154 10488 # if the path contains ";" then we assume it to be the separator
cannam@154 10489 # otherwise default to the standard path separator (i.e. ":") - it is
cannam@154 10490 # assumed that no part of a normal pathname contains ";" but that should
cannam@154 10491 # okay in the real world where ";" in dirpaths is itself problematic.
cannam@154 10492 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
cannam@154 10493 ;;
cannam@154 10494 *)
cannam@154 10495 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
cannam@154 10496 ;;
cannam@154 10497 esac
cannam@154 10498 # Ok, now we have the path, separated by spaces, we can step through it
cannam@154 10499 # and add multilib dir if necessary...
cannam@154 10500 lt_tmp_lt_search_path_spec=
cannam@154 10501 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
cannam@154 10502 # ...but if some path component already ends with the multilib dir we assume
cannam@154 10503 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
cannam@154 10504 case "$lt_multi_os_dir; $lt_search_path_spec " in
cannam@154 10505 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
cannam@154 10506 lt_multi_os_dir=
cannam@154 10507 ;;
cannam@154 10508 esac
cannam@154 10509 for lt_sys_path in $lt_search_path_spec; do
cannam@154 10510 if test -d "$lt_sys_path$lt_multi_os_dir"; then
cannam@154 10511 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
cannam@154 10512 elif test -n "$lt_multi_os_dir"; then
cannam@154 10513 test -d "$lt_sys_path" && \
cannam@154 10514 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
cannam@154 10515 fi
cannam@154 10516 done
cannam@154 10517 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cannam@154 10518 BEGIN {RS = " "; FS = "/|\n";} {
cannam@154 10519 lt_foo = "";
cannam@154 10520 lt_count = 0;
cannam@154 10521 for (lt_i = NF; lt_i > 0; lt_i--) {
cannam@154 10522 if ($lt_i != "" && $lt_i != ".") {
cannam@154 10523 if ($lt_i == "..") {
cannam@154 10524 lt_count++;
cannam@154 10525 } else {
cannam@154 10526 if (lt_count == 0) {
cannam@154 10527 lt_foo = "/" $lt_i lt_foo;
cannam@154 10528 } else {
cannam@154 10529 lt_count--;
cannam@154 10530 }
cannam@154 10531 }
cannam@154 10532 }
cannam@154 10533 }
cannam@154 10534 if (lt_foo != "") { lt_freq[lt_foo]++; }
cannam@154 10535 if (lt_freq[lt_foo] == 1) { print lt_foo; }
cannam@154 10536 }'`
cannam@154 10537 # AWK program above erroneously prepends '/' to C:/dos/paths
cannam@154 10538 # for these hosts.
cannam@154 10539 case $host_os in
cannam@154 10540 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
cannam@154 10541 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
cannam@154 10542 esac
cannam@154 10543 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cannam@154 10544 else
cannam@154 10545 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
cannam@154 10546 fi
cannam@154 10547 library_names_spec=
cannam@154 10548 libname_spec='lib$name'
cannam@154 10549 soname_spec=
cannam@154 10550 shrext_cmds=.so
cannam@154 10551 postinstall_cmds=
cannam@154 10552 postuninstall_cmds=
cannam@154 10553 finish_cmds=
cannam@154 10554 finish_eval=
cannam@154 10555 shlibpath_var=
cannam@154 10556 shlibpath_overrides_runpath=unknown
cannam@154 10557 version_type=none
cannam@154 10558 dynamic_linker="$host_os ld.so"
cannam@154 10559 sys_lib_dlsearch_path_spec="/lib /usr/lib"
cannam@154 10560 need_lib_prefix=unknown
cannam@154 10561 hardcode_into_libs=no
cannam@154 10562
cannam@154 10563 # when you set need_version to no, make sure it does not cause -set_version
cannam@154 10564 # flags to be left without arguments
cannam@154 10565 need_version=unknown
cannam@154 10566
cannam@154 10567
cannam@154 10568
cannam@154 10569 case $host_os in
cannam@154 10570 aix3*)
cannam@154 10571 version_type=linux # correct to gnu/linux during the next big refactor
cannam@154 10572 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
cannam@154 10573 shlibpath_var=LIBPATH
cannam@154 10574
cannam@154 10575 # AIX 3 has no versioning support, so we append a major version to the name.
cannam@154 10576 soname_spec='$libname$release$shared_ext$major'
cannam@154 10577 ;;
cannam@154 10578
cannam@154 10579 aix[4-9]*)
cannam@154 10580 version_type=linux # correct to gnu/linux during the next big refactor
cannam@154 10581 need_lib_prefix=no
cannam@154 10582 need_version=no
cannam@154 10583 hardcode_into_libs=yes
cannam@154 10584 if test ia64 = "$host_cpu"; then
cannam@154 10585 # AIX 5 supports IA64
cannam@154 10586 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
cannam@154 10587 shlibpath_var=LD_LIBRARY_PATH
cannam@154 10588 else
cannam@154 10589 # With GCC up to 2.95.x, collect2 would create an import file
cannam@154 10590 # for dependence libraries. The import file would start with
cannam@154 10591 # the line '#! .'. This would cause the generated library to
cannam@154 10592 # depend on '.', always an invalid library. This was fixed in
cannam@154 10593 # development snapshots of GCC prior to 3.0.
cannam@154 10594 case $host_os in
cannam@154 10595 aix4 | aix4.[01] | aix4.[01].*)
cannam@154 10596 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
cannam@154 10597 echo ' yes '
cannam@154 10598 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
cannam@154 10599 :
cannam@154 10600 else
cannam@154 10601 can_build_shared=no
cannam@154 10602 fi
cannam@154 10603 ;;
cannam@154 10604 esac
cannam@154 10605 # Using Import Files as archive members, it is possible to support
cannam@154 10606 # filename-based versioning of shared library archives on AIX. While
cannam@154 10607 # this would work for both with and without runtime linking, it will
cannam@154 10608 # prevent static linking of such archives. So we do filename-based
cannam@154 10609 # shared library versioning with .so extension only, which is used
cannam@154 10610 # when both runtime linking and shared linking is enabled.
cannam@154 10611 # Unfortunately, runtime linking may impact performance, so we do
cannam@154 10612 # not want this to be the default eventually. Also, we use the
cannam@154 10613 # versioned .so libs for executables only if there is the -brtl
cannam@154 10614 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
cannam@154 10615 # To allow for filename-based versioning support, we need to create
cannam@154 10616 # libNAME.so.V as an archive file, containing:
cannam@154 10617 # *) an Import File, referring to the versioned filename of the
cannam@154 10618 # archive as well as the shared archive member, telling the
cannam@154 10619 # bitwidth (32 or 64) of that shared object, and providing the
cannam@154 10620 # list of exported symbols of that shared object, eventually
cannam@154 10621 # decorated with the 'weak' keyword
cannam@154 10622 # *) the shared object with the F_LOADONLY flag set, to really avoid
cannam@154 10623 # it being seen by the linker.
cannam@154 10624 # At run time we better use the real file rather than another symlink,
cannam@154 10625 # but for link time we create the symlink libNAME.so -> libNAME.so.V
cannam@154 10626
cannam@154 10627 case $with_aix_soname,$aix_use_runtimelinking in
cannam@154 10628 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
cannam@154 10629 # soname into executable. Probably we can add versioning support to
cannam@154 10630 # collect2, so additional links can be useful in future.
cannam@154 10631 aix,yes) # traditional libtool
cannam@154 10632 dynamic_linker='AIX unversionable lib.so'
cannam@154 10633 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
cannam@154 10634 # instead of lib<name>.a to let people know that these are not
cannam@154 10635 # typical AIX shared libraries.
cannam@154 10636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@154 10637 ;;
cannam@154 10638 aix,no) # traditional AIX only
cannam@154 10639 dynamic_linker='AIX lib.a(lib.so.V)'
cannam@154 10640 # We preserve .a as extension for shared libraries through AIX4.2
cannam@154 10641 # and later when we are not doing run time linking.
cannam@154 10642 library_names_spec='$libname$release.a $libname.a'
cannam@154 10643 soname_spec='$libname$release$shared_ext$major'
cannam@154 10644 ;;
cannam@154 10645 svr4,*) # full svr4 only
cannam@154 10646 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
cannam@154 10647 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
cannam@154 10648 # We do not specify a path in Import Files, so LIBPATH fires.
cannam@154 10649 shlibpath_overrides_runpath=yes
cannam@154 10650 ;;
cannam@154 10651 *,yes) # both, prefer svr4
cannam@154 10652 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
cannam@154 10653 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
cannam@154 10654 # unpreferred sharedlib libNAME.a needs extra handling
cannam@154 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"'
cannam@154 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"'
cannam@154 10657 # We do not specify a path in Import Files, so LIBPATH fires.
cannam@154 10658 shlibpath_overrides_runpath=yes
cannam@154 10659 ;;
cannam@154 10660 *,no) # both, prefer aix
cannam@154 10661 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
cannam@154 10662 library_names_spec='$libname$release.a $libname.a'
cannam@154 10663 soname_spec='$libname$release$shared_ext$major'
cannam@154 10664 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
cannam@154 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)'
cannam@154 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"'
cannam@154 10667 ;;
cannam@154 10668 esac
cannam@154 10669 shlibpath_var=LIBPATH
cannam@154 10670 fi
cannam@154 10671 ;;
cannam@154 10672
cannam@154 10673 amigaos*)
cannam@154 10674 case $host_cpu in
cannam@154 10675 powerpc)
cannam@154 10676 # Since July 2007 AmigaOS4 officially supports .so libraries.
cannam@154 10677 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
cannam@154 10678 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@154 10679 ;;
cannam@154 10680 m68k)
cannam@154 10681 library_names_spec='$libname.ixlibrary $libname.a'
cannam@154 10682 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cannam@154 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'
cannam@154 10684 ;;
cannam@154 10685 esac
cannam@154 10686 ;;
cannam@154 10687
cannam@154 10688 beos*)
cannam@154 10689 library_names_spec='$libname$shared_ext'
cannam@154 10690 dynamic_linker="$host_os ld.so"
cannam@154 10691 shlibpath_var=LIBRARY_PATH
cannam@154 10692 ;;
cannam@154 10693
cannam@154 10694 bsdi[45]*)
cannam@154 10695 version_type=linux # correct to gnu/linux during the next big refactor
cannam@154 10696 need_version=no
cannam@154 10697 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@154 10698 soname_spec='$libname$release$shared_ext$major'
cannam@154 10699 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
cannam@154 10700 shlibpath_var=LD_LIBRARY_PATH
cannam@154 10701 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
cannam@154 10702 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
cannam@154 10703 # the default ld.so.conf also contains /usr/contrib/lib and
cannam@154 10704 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
cannam@154 10705 # libtool to hard-code these into programs
cannam@154 10706 ;;
cannam@154 10707
cannam@154 10708 cygwin* | mingw* | pw32* | cegcc*)
cannam@154 10709 version_type=windows
cannam@154 10710 shrext_cmds=.dll
cannam@154 10711 need_version=no
cannam@154 10712 need_lib_prefix=no
cannam@154 10713
cannam@154 10714 case $GCC,$cc_basename in
cannam@154 10715 yes,*)
cannam@154 10716 # gcc
cannam@154 10717 library_names_spec='$libname.dll.a'
cannam@154 10718 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@154 10719 postinstall_cmds='base_file=`basename \$file`~
cannam@154 10720 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
cannam@154 10721 dldir=$destdir/`dirname \$dlpath`~
cannam@154 10722 test -d \$dldir || mkdir -p \$dldir~
cannam@154 10723 $install_prog $dir/$dlname \$dldir/$dlname~
cannam@154 10724 chmod a+x \$dldir/$dlname~
cannam@154 10725 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
cannam@154 10726 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
cannam@154 10727 fi'
cannam@154 10728 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@154 10729 dlpath=$dir/\$dldll~
cannam@154 10730 $RM \$dlpath'
cannam@154 10731 shlibpath_overrides_runpath=yes
cannam@154 10732
cannam@154 10733 case $host_os in
cannam@154 10734 cygwin*)
cannam@154 10735 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
cannam@154 10736 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
cannam@154 10737
cannam@154 10738 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cannam@154 10739 ;;
cannam@154 10740 mingw* | cegcc*)
cannam@154 10741 # MinGW DLLs use traditional 'lib' prefix
cannam@154 10742 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
cannam@154 10743 ;;
cannam@154 10744 pw32*)
cannam@154 10745 # pw32 DLLs use 'pw' prefix rather than 'lib'
cannam@154 10746 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
cannam@154 10747 ;;
cannam@154 10748 esac
cannam@154 10749 dynamic_linker='Win32 ld.exe'
cannam@154 10750 ;;
cannam@154 10751
cannam@154 10752 *,cl*)
cannam@154 10753 # Native MSVC
cannam@154 10754 libname_spec='$name'
cannam@154 10755 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
cannam@154 10756 library_names_spec='$libname.dll.lib'
cannam@154 10757
cannam@154 10758 case $build_os in
cannam@154 10759 mingw*)
cannam@154 10760 sys_lib_search_path_spec=
cannam@154 10761 lt_save_ifs=$IFS
cannam@154 10762 IFS=';'
cannam@154 10763 for lt_path in $LIB
cannam@154 10764 do
cannam@154 10765 IFS=$lt_save_ifs
cannam@154 10766 # Let DOS variable expansion print the short 8.3 style file name.
cannam@154 10767 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
cannam@154 10768 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
cannam@154 10769 done
cannam@154 10770 IFS=$lt_save_ifs
cannam@154 10771 # Convert to MSYS style.
cannam@154 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|^ ||'`
cannam@154 10773 ;;
cannam@154 10774 cygwin*)
cannam@154 10775 # Convert to unix form, then to dos form, then back to unix form
cannam@154 10776 # but this time dos style (no spaces!) so that the unix form looks
cannam@154 10777 # like /cygdrive/c/PROGRA~1:/cygdr...
cannam@154 10778 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
cannam@154 10779 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
cannam@154 10780 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@154 10781 ;;
cannam@154 10782 *)
cannam@154 10783 sys_lib_search_path_spec=$LIB
cannam@154 10784 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
cannam@154 10785 # It is most probably a Windows format PATH.
cannam@154 10786 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@154 10787 else
cannam@154 10788 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@154 10789 fi
cannam@154 10790 # FIXME: find the short name or the path components, as spaces are
cannam@154 10791 # common. (e.g. "Program Files" -> "PROGRA~1")
cannam@154 10792 ;;
cannam@154 10793 esac
cannam@154 10794
cannam@154 10795 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@154 10796 postinstall_cmds='base_file=`basename \$file`~
cannam@154 10797 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
cannam@154 10798 dldir=$destdir/`dirname \$dlpath`~
cannam@154 10799 test -d \$dldir || mkdir -p \$dldir~
cannam@154 10800 $install_prog $dir/$dlname \$dldir/$dlname'
cannam@154 10801 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@154 10802 dlpath=$dir/\$dldll~
cannam@154 10803 $RM \$dlpath'
cannam@154 10804 shlibpath_overrides_runpath=yes
cannam@154 10805 dynamic_linker='Win32 link.exe'
cannam@154 10806 ;;
cannam@154 10807
cannam@154 10808 *)
cannam@154 10809 # Assume MSVC wrapper
cannam@154 10810 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
cannam@154 10811 dynamic_linker='Win32 ld.exe'
cannam@154 10812 ;;
cannam@154 10813 esac
cannam@154 10814 # FIXME: first we should search . and the directory the executable is in
cannam@154 10815 shlibpath_var=PATH
cannam@154 10816 ;;
cannam@154 10817
cannam@154 10818 darwin* | rhapsody*)
cannam@154 10819 dynamic_linker="$host_os dyld"
cannam@154 10820 version_type=darwin
cannam@154 10821 need_lib_prefix=no
cannam@154 10822 need_version=no
cannam@154 10823 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
cannam@154 10824 soname_spec='$libname$release$major$shared_ext'
cannam@154 10825 shlibpath_overrides_runpath=yes
cannam@154 10826 shlibpath_var=DYLD_LIBRARY_PATH
cannam@154 10827 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
cannam@154 10828
cannam@154 10829 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
cannam@154 10830 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
cannam@154 10831 ;;
cannam@154 10832
cannam@154 10833 dgux*)
cannam@154 10834 version_type=linux # correct to gnu/linux during the next big refactor
cannam@154 10835 need_lib_prefix=no
cannam@154 10836 need_version=no
cannam@154 10837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@154 10838 soname_spec='$libname$release$shared_ext$major'
cannam@154 10839 shlibpath_var=LD_LIBRARY_PATH
cannam@154 10840 ;;
cannam@154 10841
cannam@154 10842 freebsd* | dragonfly*)
cannam@154 10843 # DragonFly does not have aout. When/if they implement a new
cannam@154 10844 # versioning mechanism, adjust this.
cannam@154 10845 if test -x /usr/bin/objformat; then
cannam@154 10846 objformat=`/usr/bin/objformat`
cannam@154 10847 else
cannam@154 10848 case $host_os in
cannam@154 10849 freebsd[23].*) objformat=aout ;;
cannam@154 10850 *) objformat=elf ;;
cannam@154 10851 esac
cannam@154 10852 fi
cannam@154 10853 version_type=freebsd-$objformat
cannam@154 10854 case $version_type in
cannam@154 10855 freebsd-elf*)
cannam@154 10856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@154 10857 soname_spec='$libname$release$shared_ext$major'
cannam@154 10858 need_version=no
cannam@154 10859 need_lib_prefix=no
cannam@154 10860 ;;
cannam@154 10861 freebsd-*)
cannam@154 10862 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cannam@154 10863 need_version=yes
cannam@154 10864 ;;
cannam@154 10865 esac
cannam@154 10866 shlibpath_var=LD_LIBRARY_PATH
cannam@154 10867 case $host_os in
cannam@154 10868 freebsd2.*)
cannam@154 10869 shlibpath_overrides_runpath=yes
cannam@154 10870 ;;
cannam@154 10871 freebsd3.[01]* | freebsdelf3.[01]*)
cannam@154 10872 shlibpath_overrides_runpath=yes
cannam@154 10873 hardcode_into_libs=yes
cannam@154 10874 ;;
cannam@154 10875 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
cannam@154 10876 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
cannam@154 10877 shlibpath_overrides_runpath=no
cannam@154 10878 hardcode_into_libs=yes
cannam@154 10879 ;;
cannam@154 10880 *) # from 4.6 on, and DragonFly
cannam@154 10881 shlibpath_overrides_runpath=yes
cannam@154 10882 hardcode_into_libs=yes
cannam@154 10883 ;;
cannam@154 10884 esac
cannam@154 10885 ;;
cannam@154 10886
cannam@154 10887 haiku*)
cannam@154 10888 version_type=linux # correct to gnu/linux during the next big refactor
cannam@154 10889 need_lib_prefix=no
cannam@154 10890 need_version=no
cannam@154 10891 dynamic_linker="$host_os runtime_loader"
cannam@154 10892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@154 10893 soname_spec='$libname$release$shared_ext$major'
cannam@154 10894 shlibpath_var=LIBRARY_PATH
cannam@154 10895 shlibpath_overrides_runpath=no
cannam@154 10896 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
cannam@154 10897 hardcode_into_libs=yes
cannam@154 10898 ;;
cannam@154 10899
cannam@154 10900 hpux9* | hpux10* | hpux11*)
cannam@154 10901 # Give a soname corresponding to the major version so that dld.sl refuses to
cannam@154 10902 # link against other versions.
cannam@154 10903 version_type=sunos
cannam@154 10904 need_lib_prefix=no
cannam@154 10905 need_version=no
cannam@154 10906 case $host_cpu in
cannam@154 10907 ia64*)
cannam@154 10908 shrext_cmds='.so'
cannam@154 10909 hardcode_into_libs=yes
cannam@154 10910 dynamic_linker="$host_os dld.so"
cannam@154 10911 shlibpath_var=LD_LIBRARY_PATH
cannam@154 10912 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@154 10913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@154 10914 soname_spec='$libname$release$shared_ext$major'
cannam@154 10915 if test 32 = "$HPUX_IA64_MODE"; then
cannam@154 10916 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
cannam@154 10917 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
cannam@154 10918 else
cannam@154 10919 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
cannam@154 10920 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
cannam@154 10921 fi
cannam@154 10922 ;;
cannam@154 10923 hppa*64*)
cannam@154 10924 shrext_cmds='.sl'
cannam@154 10925 hardcode_into_libs=yes
cannam@154 10926 dynamic_linker="$host_os dld.sl"
cannam@154 10927 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
cannam@154 10928 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@154 10929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@154 10930 soname_spec='$libname$release$shared_ext$major'
cannam@154 10931 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
cannam@154 10932 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@154 10933 ;;
cannam@154 10934 *)
cannam@154 10935 shrext_cmds='.sl'
cannam@154 10936 dynamic_linker="$host_os dld.sl"
cannam@154 10937 shlibpath_var=SHLIB_PATH
cannam@154 10938 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
cannam@154 10939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@154 10940 soname_spec='$libname$release$shared_ext$major'
cannam@154 10941 ;;
cannam@154 10942 esac
cannam@154 10943 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cannam@154 10944 postinstall_cmds='chmod 555 $lib'
cannam@154 10945 # or fails outright, so override atomically:
cannam@154 10946 install_override_mode=555
cannam@154 10947 ;;
cannam@154 10948
cannam@154 10949 interix[3-9]*)
cannam@154 10950 version_type=linux # correct to gnu/linux during the next big refactor
cannam@154 10951 need_lib_prefix=no
cannam@154 10952 need_version=no
cannam@154 10953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@154 10954 soname_spec='$libname$release$shared_ext$major'
cannam@154 10955 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
cannam@154 10956 shlibpath_var=LD_LIBRARY_PATH
cannam@154 10957 shlibpath_overrides_runpath=no
cannam@154 10958 hardcode_into_libs=yes
cannam@154 10959 ;;
cannam@154 10960
cannam@154 10961 irix5* | irix6* | nonstopux*)
cannam@154 10962 case $host_os in
cannam@154 10963 nonstopux*) version_type=nonstopux ;;
cannam@154 10964 *)
cannam@154 10965 if test yes = "$lt_cv_prog_gnu_ld"; then
cannam@154 10966 version_type=linux # correct to gnu/linux during the next big refactor
cannam@154 10967 else
cannam@154 10968 version_type=irix
cannam@154 10969 fi ;;
cannam@154 10970 esac
cannam@154 10971 need_lib_prefix=no
cannam@154 10972 need_version=no
cannam@154 10973 soname_spec='$libname$release$shared_ext$major'
cannam@154 10974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
cannam@154 10975 case $host_os in
cannam@154 10976 irix5* | nonstopux*)
cannam@154 10977 libsuff= shlibsuff=
cannam@154 10978 ;;
cannam@154 10979 *)
cannam@154 10980 case $LD in # libtool.m4 will add one of these switches to LD
cannam@154 10981 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
cannam@154 10982 libsuff= shlibsuff= libmagic=32-bit;;
cannam@154 10983 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
cannam@154 10984 libsuff=32 shlibsuff=N32 libmagic=N32;;
cannam@154 10985 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
cannam@154 10986 libsuff=64 shlibsuff=64 libmagic=64-bit;;
cannam@154 10987 *) libsuff= shlibsuff= libmagic=never-match;;
cannam@154 10988 esac
cannam@154 10989 ;;
cannam@154 10990 esac
cannam@154 10991 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
cannam@154 10992 shlibpath_overrides_runpath=no
cannam@154 10993 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
cannam@154 10994 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
cannam@154 10995 hardcode_into_libs=yes
cannam@154 10996 ;;
cannam@154 10997
cannam@154 10998 # No shared lib support for Linux oldld, aout, or coff.
cannam@154 10999 linux*oldld* | linux*aout* | linux*coff*)
cannam@154 11000 dynamic_linker=no
cannam@154 11001 ;;
cannam@154 11002
cannam@154 11003 linux*android*)
cannam@154 11004 version_type=none # Android doesn't support versioned libraries.
cannam@154 11005 need_lib_prefix=no
cannam@154 11006 need_version=no
cannam@154 11007 library_names_spec='$libname$release$shared_ext'
cannam@154 11008 soname_spec='$libname$release$shared_ext'
cannam@154 11009 finish_cmds=
cannam@154 11010 shlibpath_var=LD_LIBRARY_PATH
cannam@154 11011 shlibpath_overrides_runpath=yes
cannam@154 11012
cannam@154 11013 # This implies no fast_install, which is unacceptable.
cannam@154 11014 # Some rework will be needed to allow for fast_install
cannam@154 11015 # before this can be enabled.
cannam@154 11016 hardcode_into_libs=yes
cannam@154 11017
cannam@154 11018 dynamic_linker='Android linker'
cannam@154 11019 # Don't embed -rpath directories since the linker doesn't support them.
cannam@154 11020 hardcode_libdir_flag_spec='-L$libdir'
cannam@154 11021 ;;
cannam@154 11022
cannam@154 11023 # This must be glibc/ELF.
cannam@154 11024 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cannam@154 11025 version_type=linux # correct to gnu/linux during the next big refactor
cannam@154 11026 need_lib_prefix=no
cannam@154 11027 need_version=no
cannam@154 11028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@154 11029 soname_spec='$libname$release$shared_ext$major'
cannam@154 11030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
cannam@154 11031 shlibpath_var=LD_LIBRARY_PATH
cannam@154 11032 shlibpath_overrides_runpath=no
cannam@154 11033
cannam@154 11034 # Some binutils ld are patched to set DT_RUNPATH
cannam@154 11035 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cannam@154 11036 $as_echo_n "(cached) " >&6
cannam@154 11037 else
cannam@154 11038 lt_cv_shlibpath_overrides_runpath=no
cannam@154 11039 save_LDFLAGS=$LDFLAGS
cannam@154 11040 save_libdir=$libdir
cannam@154 11041 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
cannam@154 11042 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
cannam@154 11043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 11044 /* end confdefs.h. */
cannam@154 11045
cannam@154 11046 int
cannam@154 11047 main ()
cannam@154 11048 {
cannam@154 11049
cannam@154 11050 ;
cannam@154 11051 return 0;
cannam@154 11052 }
cannam@154 11053 _ACEOF
cannam@154 11054 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 11055 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cannam@154 11056 lt_cv_shlibpath_overrides_runpath=yes
cannam@154 11057 fi
cannam@154 11058 fi
cannam@154 11059 rm -f core conftest.err conftest.$ac_objext \
cannam@154 11060 conftest$ac_exeext conftest.$ac_ext
cannam@154 11061 LDFLAGS=$save_LDFLAGS
cannam@154 11062 libdir=$save_libdir
cannam@154 11063
cannam@154 11064 fi
cannam@154 11065
cannam@154 11066 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cannam@154 11067
cannam@154 11068 # This implies no fast_install, which is unacceptable.
cannam@154 11069 # Some rework will be needed to allow for fast_install
cannam@154 11070 # before this can be enabled.
cannam@154 11071 hardcode_into_libs=yes
cannam@154 11072
cannam@154 11073 # Add ABI-specific directories to the system library path.
cannam@154 11074 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
cannam@154 11075
cannam@154 11076 # Ideally, we could use ldconfig to report *all* directores which are
cannam@154 11077 # searched for libraries, however this is still not possible. Aside from not
cannam@154 11078 # being certain /sbin/ldconfig is available, command
cannam@154 11079 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
cannam@154 11080 # even though it is searched at run-time. Try to do the best guess by
cannam@154 11081 # appending ld.so.conf contents (and includes) to the search path.
cannam@154 11082 if test -f /etc/ld.so.conf; then
cannam@154 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' ' '`
cannam@154 11084 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cannam@154 11085 fi
cannam@154 11086
cannam@154 11087 # We used to test for /lib/ld.so.1 and disable shared libraries on
cannam@154 11088 # powerpc, because MkLinux only supported shared libraries with the
cannam@154 11089 # GNU dynamic linker. Since this was broken with cross compilers,
cannam@154 11090 # most powerpc-linux boxes support dynamic linking these days and
cannam@154 11091 # people can always --disable-shared, the test was removed, and we
cannam@154 11092 # assume the GNU/Linux dynamic linker is in use.
cannam@154 11093 dynamic_linker='GNU/Linux ld.so'
cannam@154 11094 ;;
cannam@154 11095
cannam@154 11096 netbsd*)
cannam@154 11097 version_type=sunos
cannam@154 11098 need_lib_prefix=no
cannam@154 11099 need_version=no
cannam@154 11100 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@154 11101 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cannam@154 11102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@154 11103 dynamic_linker='NetBSD (a.out) ld.so'
cannam@154 11104 else
cannam@154 11105 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@154 11106 soname_spec='$libname$release$shared_ext$major'
cannam@154 11107 dynamic_linker='NetBSD ld.elf_so'
cannam@154 11108 fi
cannam@154 11109 shlibpath_var=LD_LIBRARY_PATH
cannam@154 11110 shlibpath_overrides_runpath=yes
cannam@154 11111 hardcode_into_libs=yes
cannam@154 11112 ;;
cannam@154 11113
cannam@154 11114 newsos6)
cannam@154 11115 version_type=linux # correct to gnu/linux during the next big refactor
cannam@154 11116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@154 11117 shlibpath_var=LD_LIBRARY_PATH
cannam@154 11118 shlibpath_overrides_runpath=yes
cannam@154 11119 ;;
cannam@154 11120
cannam@154 11121 *nto* | *qnx*)
cannam@154 11122 version_type=qnx
cannam@154 11123 need_lib_prefix=no
cannam@154 11124 need_version=no
cannam@154 11125 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@154 11126 soname_spec='$libname$release$shared_ext$major'
cannam@154 11127 shlibpath_var=LD_LIBRARY_PATH
cannam@154 11128 shlibpath_overrides_runpath=no
cannam@154 11129 hardcode_into_libs=yes
cannam@154 11130 dynamic_linker='ldqnx.so'
cannam@154 11131 ;;
cannam@154 11132
cannam@154 11133 openbsd* | bitrig*)
cannam@154 11134 version_type=sunos
cannam@154 11135 sys_lib_dlsearch_path_spec=/usr/lib
cannam@154 11136 need_lib_prefix=no
cannam@154 11137 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
cannam@154 11138 need_version=no
cannam@154 11139 else
cannam@154 11140 need_version=yes
cannam@154 11141 fi
cannam@154 11142 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cannam@154 11143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@154 11144 shlibpath_var=LD_LIBRARY_PATH
cannam@154 11145 shlibpath_overrides_runpath=yes
cannam@154 11146 ;;
cannam@154 11147
cannam@154 11148 os2*)
cannam@154 11149 libname_spec='$name'
cannam@154 11150 version_type=windows
cannam@154 11151 shrext_cmds=.dll
cannam@154 11152 need_version=no
cannam@154 11153 need_lib_prefix=no
cannam@154 11154 # OS/2 can only load a DLL with a base name of 8 characters or less.
cannam@154 11155 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
cannam@154 11156 v=$($ECHO $release$versuffix | tr -d .-);
cannam@154 11157 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
cannam@154 11158 $ECHO $n$v`$shared_ext'
cannam@154 11159 library_names_spec='${libname}_dll.$libext'
cannam@154 11160 dynamic_linker='OS/2 ld.exe'
cannam@154 11161 shlibpath_var=BEGINLIBPATH
cannam@154 11162 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
cannam@154 11163 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@154 11164 postinstall_cmds='base_file=`basename \$file`~
cannam@154 11165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
cannam@154 11166 dldir=$destdir/`dirname \$dlpath`~
cannam@154 11167 test -d \$dldir || mkdir -p \$dldir~
cannam@154 11168 $install_prog $dir/$dlname \$dldir/$dlname~
cannam@154 11169 chmod a+x \$dldir/$dlname~
cannam@154 11170 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
cannam@154 11171 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
cannam@154 11172 fi'
cannam@154 11173 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
cannam@154 11174 dlpath=$dir/\$dldll~
cannam@154 11175 $RM \$dlpath'
cannam@154 11176 ;;
cannam@154 11177
cannam@154 11178 osf3* | osf4* | osf5*)
cannam@154 11179 version_type=osf
cannam@154 11180 need_lib_prefix=no
cannam@154 11181 need_version=no
cannam@154 11182 soname_spec='$libname$release$shared_ext$major'
cannam@154 11183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@154 11184 shlibpath_var=LD_LIBRARY_PATH
cannam@154 11185 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
cannam@154 11186 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@154 11187 ;;
cannam@154 11188
cannam@154 11189 rdos*)
cannam@154 11190 dynamic_linker=no
cannam@154 11191 ;;
cannam@154 11192
cannam@154 11193 solaris*)
cannam@154 11194 version_type=linux # correct to gnu/linux during the next big refactor
cannam@154 11195 need_lib_prefix=no
cannam@154 11196 need_version=no
cannam@154 11197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@154 11198 soname_spec='$libname$release$shared_ext$major'
cannam@154 11199 shlibpath_var=LD_LIBRARY_PATH
cannam@154 11200 shlibpath_overrides_runpath=yes
cannam@154 11201 hardcode_into_libs=yes
cannam@154 11202 # ldd complains unless libraries are executable
cannam@154 11203 postinstall_cmds='chmod +x $lib'
cannam@154 11204 ;;
cannam@154 11205
cannam@154 11206 sunos4*)
cannam@154 11207 version_type=sunos
cannam@154 11208 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cannam@154 11209 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
cannam@154 11210 shlibpath_var=LD_LIBRARY_PATH
cannam@154 11211 shlibpath_overrides_runpath=yes
cannam@154 11212 if test yes = "$with_gnu_ld"; then
cannam@154 11213 need_lib_prefix=no
cannam@154 11214 fi
cannam@154 11215 need_version=yes
cannam@154 11216 ;;
cannam@154 11217
cannam@154 11218 sysv4 | sysv4.3*)
cannam@154 11219 version_type=linux # correct to gnu/linux during the next big refactor
cannam@154 11220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@154 11221 soname_spec='$libname$release$shared_ext$major'
cannam@154 11222 shlibpath_var=LD_LIBRARY_PATH
cannam@154 11223 case $host_vendor in
cannam@154 11224 sni)
cannam@154 11225 shlibpath_overrides_runpath=no
cannam@154 11226 need_lib_prefix=no
cannam@154 11227 runpath_var=LD_RUN_PATH
cannam@154 11228 ;;
cannam@154 11229 siemens)
cannam@154 11230 need_lib_prefix=no
cannam@154 11231 ;;
cannam@154 11232 motorola)
cannam@154 11233 need_lib_prefix=no
cannam@154 11234 need_version=no
cannam@154 11235 shlibpath_overrides_runpath=no
cannam@154 11236 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
cannam@154 11237 ;;
cannam@154 11238 esac
cannam@154 11239 ;;
cannam@154 11240
cannam@154 11241 sysv4*MP*)
cannam@154 11242 if test -d /usr/nec; then
cannam@154 11243 version_type=linux # correct to gnu/linux during the next big refactor
cannam@154 11244 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
cannam@154 11245 soname_spec='$libname$shared_ext.$major'
cannam@154 11246 shlibpath_var=LD_LIBRARY_PATH
cannam@154 11247 fi
cannam@154 11248 ;;
cannam@154 11249
cannam@154 11250 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
cannam@154 11251 version_type=sco
cannam@154 11252 need_lib_prefix=no
cannam@154 11253 need_version=no
cannam@154 11254 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
cannam@154 11255 soname_spec='$libname$release$shared_ext$major'
cannam@154 11256 shlibpath_var=LD_LIBRARY_PATH
cannam@154 11257 shlibpath_overrides_runpath=yes
cannam@154 11258 hardcode_into_libs=yes
cannam@154 11259 if test yes = "$with_gnu_ld"; then
cannam@154 11260 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
cannam@154 11261 else
cannam@154 11262 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
cannam@154 11263 case $host_os in
cannam@154 11264 sco3.2v5*)
cannam@154 11265 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
cannam@154 11266 ;;
cannam@154 11267 esac
cannam@154 11268 fi
cannam@154 11269 sys_lib_dlsearch_path_spec='/usr/lib'
cannam@154 11270 ;;
cannam@154 11271
cannam@154 11272 tpf*)
cannam@154 11273 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cannam@154 11274 version_type=linux # correct to gnu/linux during the next big refactor
cannam@154 11275 need_lib_prefix=no
cannam@154 11276 need_version=no
cannam@154 11277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@154 11278 shlibpath_var=LD_LIBRARY_PATH
cannam@154 11279 shlibpath_overrides_runpath=no
cannam@154 11280 hardcode_into_libs=yes
cannam@154 11281 ;;
cannam@154 11282
cannam@154 11283 uts4*)
cannam@154 11284 version_type=linux # correct to gnu/linux during the next big refactor
cannam@154 11285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@154 11286 soname_spec='$libname$release$shared_ext$major'
cannam@154 11287 shlibpath_var=LD_LIBRARY_PATH
cannam@154 11288 ;;
cannam@154 11289
cannam@154 11290 *)
cannam@154 11291 dynamic_linker=no
cannam@154 11292 ;;
cannam@154 11293 esac
cannam@154 11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cannam@154 11295 $as_echo "$dynamic_linker" >&6; }
cannam@154 11296 test no = "$dynamic_linker" && can_build_shared=no
cannam@154 11297
cannam@154 11298 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
cannam@154 11299 if test yes = "$GCC"; then
cannam@154 11300 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
cannam@154 11301 fi
cannam@154 11302
cannam@154 11303 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
cannam@154 11304 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
cannam@154 11305 fi
cannam@154 11306
cannam@154 11307 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
cannam@154 11308 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
cannam@154 11309 fi
cannam@154 11310
cannam@154 11311 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
cannam@154 11312 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
cannam@154 11313
cannam@154 11314 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
cannam@154 11315 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
cannam@154 11316
cannam@154 11317 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
cannam@154 11318 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
cannam@154 11319
cannam@154 11320
cannam@154 11321
cannam@154 11322
cannam@154 11323
cannam@154 11324
cannam@154 11325
cannam@154 11326
cannam@154 11327
cannam@154 11328
cannam@154 11329
cannam@154 11330
cannam@154 11331
cannam@154 11332
cannam@154 11333
cannam@154 11334
cannam@154 11335
cannam@154 11336
cannam@154 11337
cannam@154 11338
cannam@154 11339
cannam@154 11340
cannam@154 11341
cannam@154 11342
cannam@154 11343
cannam@154 11344
cannam@154 11345
cannam@154 11346
cannam@154 11347
cannam@154 11348
cannam@154 11349
cannam@154 11350
cannam@154 11351
cannam@154 11352
cannam@154 11353
cannam@154 11354
cannam@154 11355
cannam@154 11356
cannam@154 11357
cannam@154 11358
cannam@154 11359
cannam@154 11360
cannam@154 11361
cannam@154 11362
cannam@154 11363
cannam@154 11364
cannam@154 11365
cannam@154 11366
cannam@154 11367
cannam@154 11368
cannam@154 11369
cannam@154 11370
cannam@154 11371
cannam@154 11372
cannam@154 11373
cannam@154 11374
cannam@154 11375
cannam@154 11376
cannam@154 11377
cannam@154 11378
cannam@154 11379
cannam@154 11380
cannam@154 11381
cannam@154 11382
cannam@154 11383
cannam@154 11384
cannam@154 11385
cannam@154 11386
cannam@154 11387
cannam@154 11388
cannam@154 11389
cannam@154 11390
cannam@154 11391
cannam@154 11392
cannam@154 11393
cannam@154 11394
cannam@154 11395
cannam@154 11396
cannam@154 11397
cannam@154 11398
cannam@154 11399
cannam@154 11400
cannam@154 11401
cannam@154 11402
cannam@154 11403
cannam@154 11404
cannam@154 11405
cannam@154 11406
cannam@154 11407
cannam@154 11408
cannam@154 11409
cannam@154 11410
cannam@154 11411
cannam@154 11412
cannam@154 11413
cannam@154 11414
cannam@154 11415
cannam@154 11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cannam@154 11417 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
cannam@154 11418 hardcode_action=
cannam@154 11419 if test -n "$hardcode_libdir_flag_spec" ||
cannam@154 11420 test -n "$runpath_var" ||
cannam@154 11421 test yes = "$hardcode_automatic"; then
cannam@154 11422
cannam@154 11423 # We can hardcode non-existent directories.
cannam@154 11424 if test no != "$hardcode_direct" &&
cannam@154 11425 # If the only mechanism to avoid hardcoding is shlibpath_var, we
cannam@154 11426 # have to relink, otherwise we might link with an installed library
cannam@154 11427 # when we should be linking with a yet-to-be-installed one
cannam@154 11428 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
cannam@154 11429 test no != "$hardcode_minus_L"; then
cannam@154 11430 # Linking always hardcodes the temporary library directory.
cannam@154 11431 hardcode_action=relink
cannam@154 11432 else
cannam@154 11433 # We can link without hardcoding, and we can hardcode nonexisting dirs.
cannam@154 11434 hardcode_action=immediate
cannam@154 11435 fi
cannam@154 11436 else
cannam@154 11437 # We cannot hardcode anything, or else we can only hardcode existing
cannam@154 11438 # directories.
cannam@154 11439 hardcode_action=unsupported
cannam@154 11440 fi
cannam@154 11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cannam@154 11442 $as_echo "$hardcode_action" >&6; }
cannam@154 11443
cannam@154 11444 if test relink = "$hardcode_action" ||
cannam@154 11445 test yes = "$inherit_rpath"; then
cannam@154 11446 # Fast installation is not supported
cannam@154 11447 enable_fast_install=no
cannam@154 11448 elif test yes = "$shlibpath_overrides_runpath" ||
cannam@154 11449 test no = "$enable_shared"; then
cannam@154 11450 # Fast installation is not necessary
cannam@154 11451 enable_fast_install=needless
cannam@154 11452 fi
cannam@154 11453
cannam@154 11454
cannam@154 11455
cannam@154 11456
cannam@154 11457
cannam@154 11458
cannam@154 11459 if test yes != "$enable_dlopen"; then
cannam@154 11460 enable_dlopen=unknown
cannam@154 11461 enable_dlopen_self=unknown
cannam@154 11462 enable_dlopen_self_static=unknown
cannam@154 11463 else
cannam@154 11464 lt_cv_dlopen=no
cannam@154 11465 lt_cv_dlopen_libs=
cannam@154 11466
cannam@154 11467 case $host_os in
cannam@154 11468 beos*)
cannam@154 11469 lt_cv_dlopen=load_add_on
cannam@154 11470 lt_cv_dlopen_libs=
cannam@154 11471 lt_cv_dlopen_self=yes
cannam@154 11472 ;;
cannam@154 11473
cannam@154 11474 mingw* | pw32* | cegcc*)
cannam@154 11475 lt_cv_dlopen=LoadLibrary
cannam@154 11476 lt_cv_dlopen_libs=
cannam@154 11477 ;;
cannam@154 11478
cannam@154 11479 cygwin*)
cannam@154 11480 lt_cv_dlopen=dlopen
cannam@154 11481 lt_cv_dlopen_libs=
cannam@154 11482 ;;
cannam@154 11483
cannam@154 11484 darwin*)
cannam@154 11485 # if libdl is installed we need to link against it
cannam@154 11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cannam@154 11487 $as_echo_n "checking for dlopen in -ldl... " >&6; }
cannam@154 11488 if ${ac_cv_lib_dl_dlopen+:} false; then :
cannam@154 11489 $as_echo_n "(cached) " >&6
cannam@154 11490 else
cannam@154 11491 ac_check_lib_save_LIBS=$LIBS
cannam@154 11492 LIBS="-ldl $LIBS"
cannam@154 11493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 11494 /* end confdefs.h. */
cannam@154 11495
cannam@154 11496 /* Override any GCC internal prototype to avoid an error.
cannam@154 11497 Use char because int might match the return type of a GCC
cannam@154 11498 builtin and then its argument prototype would still apply. */
cannam@154 11499 #ifdef __cplusplus
cannam@154 11500 extern "C"
cannam@154 11501 #endif
cannam@154 11502 char dlopen ();
cannam@154 11503 int
cannam@154 11504 main ()
cannam@154 11505 {
cannam@154 11506 return dlopen ();
cannam@154 11507 ;
cannam@154 11508 return 0;
cannam@154 11509 }
cannam@154 11510 _ACEOF
cannam@154 11511 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 11512 ac_cv_lib_dl_dlopen=yes
cannam@154 11513 else
cannam@154 11514 ac_cv_lib_dl_dlopen=no
cannam@154 11515 fi
cannam@154 11516 rm -f core conftest.err conftest.$ac_objext \
cannam@154 11517 conftest$ac_exeext conftest.$ac_ext
cannam@154 11518 LIBS=$ac_check_lib_save_LIBS
cannam@154 11519 fi
cannam@154 11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cannam@154 11521 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cannam@154 11522 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cannam@154 11523 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
cannam@154 11524 else
cannam@154 11525
cannam@154 11526 lt_cv_dlopen=dyld
cannam@154 11527 lt_cv_dlopen_libs=
cannam@154 11528 lt_cv_dlopen_self=yes
cannam@154 11529
cannam@154 11530 fi
cannam@154 11531
cannam@154 11532 ;;
cannam@154 11533
cannam@154 11534 tpf*)
cannam@154 11535 # Don't try to run any link tests for TPF. We know it's impossible
cannam@154 11536 # because TPF is a cross-compiler, and we know how we open DSOs.
cannam@154 11537 lt_cv_dlopen=dlopen
cannam@154 11538 lt_cv_dlopen_libs=
cannam@154 11539 lt_cv_dlopen_self=no
cannam@154 11540 ;;
cannam@154 11541
cannam@154 11542 *)
cannam@154 11543 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cannam@154 11544 if test "x$ac_cv_func_shl_load" = xyes; then :
cannam@154 11545 lt_cv_dlopen=shl_load
cannam@154 11546 else
cannam@154 11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cannam@154 11548 $as_echo_n "checking for shl_load in -ldld... " >&6; }
cannam@154 11549 if ${ac_cv_lib_dld_shl_load+:} false; then :
cannam@154 11550 $as_echo_n "(cached) " >&6
cannam@154 11551 else
cannam@154 11552 ac_check_lib_save_LIBS=$LIBS
cannam@154 11553 LIBS="-ldld $LIBS"
cannam@154 11554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 11555 /* end confdefs.h. */
cannam@154 11556
cannam@154 11557 /* Override any GCC internal prototype to avoid an error.
cannam@154 11558 Use char because int might match the return type of a GCC
cannam@154 11559 builtin and then its argument prototype would still apply. */
cannam@154 11560 #ifdef __cplusplus
cannam@154 11561 extern "C"
cannam@154 11562 #endif
cannam@154 11563 char shl_load ();
cannam@154 11564 int
cannam@154 11565 main ()
cannam@154 11566 {
cannam@154 11567 return shl_load ();
cannam@154 11568 ;
cannam@154 11569 return 0;
cannam@154 11570 }
cannam@154 11571 _ACEOF
cannam@154 11572 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 11573 ac_cv_lib_dld_shl_load=yes
cannam@154 11574 else
cannam@154 11575 ac_cv_lib_dld_shl_load=no
cannam@154 11576 fi
cannam@154 11577 rm -f core conftest.err conftest.$ac_objext \
cannam@154 11578 conftest$ac_exeext conftest.$ac_ext
cannam@154 11579 LIBS=$ac_check_lib_save_LIBS
cannam@154 11580 fi
cannam@154 11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cannam@154 11582 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cannam@154 11583 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cannam@154 11584 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
cannam@154 11585 else
cannam@154 11586 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cannam@154 11587 if test "x$ac_cv_func_dlopen" = xyes; then :
cannam@154 11588 lt_cv_dlopen=dlopen
cannam@154 11589 else
cannam@154 11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cannam@154 11591 $as_echo_n "checking for dlopen in -ldl... " >&6; }
cannam@154 11592 if ${ac_cv_lib_dl_dlopen+:} false; then :
cannam@154 11593 $as_echo_n "(cached) " >&6
cannam@154 11594 else
cannam@154 11595 ac_check_lib_save_LIBS=$LIBS
cannam@154 11596 LIBS="-ldl $LIBS"
cannam@154 11597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 11598 /* end confdefs.h. */
cannam@154 11599
cannam@154 11600 /* Override any GCC internal prototype to avoid an error.
cannam@154 11601 Use char because int might match the return type of a GCC
cannam@154 11602 builtin and then its argument prototype would still apply. */
cannam@154 11603 #ifdef __cplusplus
cannam@154 11604 extern "C"
cannam@154 11605 #endif
cannam@154 11606 char dlopen ();
cannam@154 11607 int
cannam@154 11608 main ()
cannam@154 11609 {
cannam@154 11610 return dlopen ();
cannam@154 11611 ;
cannam@154 11612 return 0;
cannam@154 11613 }
cannam@154 11614 _ACEOF
cannam@154 11615 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 11616 ac_cv_lib_dl_dlopen=yes
cannam@154 11617 else
cannam@154 11618 ac_cv_lib_dl_dlopen=no
cannam@154 11619 fi
cannam@154 11620 rm -f core conftest.err conftest.$ac_objext \
cannam@154 11621 conftest$ac_exeext conftest.$ac_ext
cannam@154 11622 LIBS=$ac_check_lib_save_LIBS
cannam@154 11623 fi
cannam@154 11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cannam@154 11625 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cannam@154 11626 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cannam@154 11627 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
cannam@154 11628 else
cannam@154 11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cannam@154 11630 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
cannam@154 11631 if ${ac_cv_lib_svld_dlopen+:} false; then :
cannam@154 11632 $as_echo_n "(cached) " >&6
cannam@154 11633 else
cannam@154 11634 ac_check_lib_save_LIBS=$LIBS
cannam@154 11635 LIBS="-lsvld $LIBS"
cannam@154 11636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 11637 /* end confdefs.h. */
cannam@154 11638
cannam@154 11639 /* Override any GCC internal prototype to avoid an error.
cannam@154 11640 Use char because int might match the return type of a GCC
cannam@154 11641 builtin and then its argument prototype would still apply. */
cannam@154 11642 #ifdef __cplusplus
cannam@154 11643 extern "C"
cannam@154 11644 #endif
cannam@154 11645 char dlopen ();
cannam@154 11646 int
cannam@154 11647 main ()
cannam@154 11648 {
cannam@154 11649 return dlopen ();
cannam@154 11650 ;
cannam@154 11651 return 0;
cannam@154 11652 }
cannam@154 11653 _ACEOF
cannam@154 11654 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 11655 ac_cv_lib_svld_dlopen=yes
cannam@154 11656 else
cannam@154 11657 ac_cv_lib_svld_dlopen=no
cannam@154 11658 fi
cannam@154 11659 rm -f core conftest.err conftest.$ac_objext \
cannam@154 11660 conftest$ac_exeext conftest.$ac_ext
cannam@154 11661 LIBS=$ac_check_lib_save_LIBS
cannam@154 11662 fi
cannam@154 11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cannam@154 11664 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cannam@154 11665 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cannam@154 11666 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
cannam@154 11667 else
cannam@154 11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cannam@154 11669 $as_echo_n "checking for dld_link in -ldld... " >&6; }
cannam@154 11670 if ${ac_cv_lib_dld_dld_link+:} false; then :
cannam@154 11671 $as_echo_n "(cached) " >&6
cannam@154 11672 else
cannam@154 11673 ac_check_lib_save_LIBS=$LIBS
cannam@154 11674 LIBS="-ldld $LIBS"
cannam@154 11675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 11676 /* end confdefs.h. */
cannam@154 11677
cannam@154 11678 /* Override any GCC internal prototype to avoid an error.
cannam@154 11679 Use char because int might match the return type of a GCC
cannam@154 11680 builtin and then its argument prototype would still apply. */
cannam@154 11681 #ifdef __cplusplus
cannam@154 11682 extern "C"
cannam@154 11683 #endif
cannam@154 11684 char dld_link ();
cannam@154 11685 int
cannam@154 11686 main ()
cannam@154 11687 {
cannam@154 11688 return dld_link ();
cannam@154 11689 ;
cannam@154 11690 return 0;
cannam@154 11691 }
cannam@154 11692 _ACEOF
cannam@154 11693 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 11694 ac_cv_lib_dld_dld_link=yes
cannam@154 11695 else
cannam@154 11696 ac_cv_lib_dld_dld_link=no
cannam@154 11697 fi
cannam@154 11698 rm -f core conftest.err conftest.$ac_objext \
cannam@154 11699 conftest$ac_exeext conftest.$ac_ext
cannam@154 11700 LIBS=$ac_check_lib_save_LIBS
cannam@154 11701 fi
cannam@154 11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cannam@154 11703 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cannam@154 11704 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cannam@154 11705 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
cannam@154 11706 fi
cannam@154 11707
cannam@154 11708
cannam@154 11709 fi
cannam@154 11710
cannam@154 11711
cannam@154 11712 fi
cannam@154 11713
cannam@154 11714
cannam@154 11715 fi
cannam@154 11716
cannam@154 11717
cannam@154 11718 fi
cannam@154 11719
cannam@154 11720
cannam@154 11721 fi
cannam@154 11722
cannam@154 11723 ;;
cannam@154 11724 esac
cannam@154 11725
cannam@154 11726 if test no = "$lt_cv_dlopen"; then
cannam@154 11727 enable_dlopen=no
cannam@154 11728 else
cannam@154 11729 enable_dlopen=yes
cannam@154 11730 fi
cannam@154 11731
cannam@154 11732 case $lt_cv_dlopen in
cannam@154 11733 dlopen)
cannam@154 11734 save_CPPFLAGS=$CPPFLAGS
cannam@154 11735 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
cannam@154 11736
cannam@154 11737 save_LDFLAGS=$LDFLAGS
cannam@154 11738 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
cannam@154 11739
cannam@154 11740 save_LIBS=$LIBS
cannam@154 11741 LIBS="$lt_cv_dlopen_libs $LIBS"
cannam@154 11742
cannam@154 11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cannam@154 11744 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
cannam@154 11745 if ${lt_cv_dlopen_self+:} false; then :
cannam@154 11746 $as_echo_n "(cached) " >&6
cannam@154 11747 else
cannam@154 11748 if test yes = "$cross_compiling"; then :
cannam@154 11749 lt_cv_dlopen_self=cross
cannam@154 11750 else
cannam@154 11751 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@154 11752 lt_status=$lt_dlunknown
cannam@154 11753 cat > conftest.$ac_ext <<_LT_EOF
cannam@154 11754 #line $LINENO "configure"
cannam@154 11755 #include "confdefs.h"
cannam@154 11756
cannam@154 11757 #if HAVE_DLFCN_H
cannam@154 11758 #include <dlfcn.h>
cannam@154 11759 #endif
cannam@154 11760
cannam@154 11761 #include <stdio.h>
cannam@154 11762
cannam@154 11763 #ifdef RTLD_GLOBAL
cannam@154 11764 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@154 11765 #else
cannam@154 11766 # ifdef DL_GLOBAL
cannam@154 11767 # define LT_DLGLOBAL DL_GLOBAL
cannam@154 11768 # else
cannam@154 11769 # define LT_DLGLOBAL 0
cannam@154 11770 # endif
cannam@154 11771 #endif
cannam@154 11772
cannam@154 11773 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@154 11774 find out it does not work in some platform. */
cannam@154 11775 #ifndef LT_DLLAZY_OR_NOW
cannam@154 11776 # ifdef RTLD_LAZY
cannam@154 11777 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@154 11778 # else
cannam@154 11779 # ifdef DL_LAZY
cannam@154 11780 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@154 11781 # else
cannam@154 11782 # ifdef RTLD_NOW
cannam@154 11783 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@154 11784 # else
cannam@154 11785 # ifdef DL_NOW
cannam@154 11786 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@154 11787 # else
cannam@154 11788 # define LT_DLLAZY_OR_NOW 0
cannam@154 11789 # endif
cannam@154 11790 # endif
cannam@154 11791 # endif
cannam@154 11792 # endif
cannam@154 11793 #endif
cannam@154 11794
cannam@154 11795 /* When -fvisibility=hidden is used, assume the code has been annotated
cannam@154 11796 correspondingly for the symbols needed. */
cannam@154 11797 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cannam@154 11798 int fnord () __attribute__((visibility("default")));
cannam@154 11799 #endif
cannam@154 11800
cannam@154 11801 int fnord () { return 42; }
cannam@154 11802 int main ()
cannam@154 11803 {
cannam@154 11804 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@154 11805 int status = $lt_dlunknown;
cannam@154 11806
cannam@154 11807 if (self)
cannam@154 11808 {
cannam@154 11809 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@154 11810 else
cannam@154 11811 {
cannam@154 11812 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@154 11813 else puts (dlerror ());
cannam@154 11814 }
cannam@154 11815 /* dlclose (self); */
cannam@154 11816 }
cannam@154 11817 else
cannam@154 11818 puts (dlerror ());
cannam@154 11819
cannam@154 11820 return status;
cannam@154 11821 }
cannam@154 11822 _LT_EOF
cannam@154 11823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cannam@154 11824 (eval $ac_link) 2>&5
cannam@154 11825 ac_status=$?
cannam@154 11826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@154 11827 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
cannam@154 11828 (./conftest; exit; ) >&5 2>/dev/null
cannam@154 11829 lt_status=$?
cannam@154 11830 case x$lt_status in
cannam@154 11831 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
cannam@154 11832 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
cannam@154 11833 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
cannam@154 11834 esac
cannam@154 11835 else :
cannam@154 11836 # compilation failed
cannam@154 11837 lt_cv_dlopen_self=no
cannam@154 11838 fi
cannam@154 11839 fi
cannam@154 11840 rm -fr conftest*
cannam@154 11841
cannam@154 11842
cannam@154 11843 fi
cannam@154 11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cannam@154 11845 $as_echo "$lt_cv_dlopen_self" >&6; }
cannam@154 11846
cannam@154 11847 if test yes = "$lt_cv_dlopen_self"; then
cannam@154 11848 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cannam@154 11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cannam@154 11850 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cannam@154 11851 if ${lt_cv_dlopen_self_static+:} false; then :
cannam@154 11852 $as_echo_n "(cached) " >&6
cannam@154 11853 else
cannam@154 11854 if test yes = "$cross_compiling"; then :
cannam@154 11855 lt_cv_dlopen_self_static=cross
cannam@154 11856 else
cannam@154 11857 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@154 11858 lt_status=$lt_dlunknown
cannam@154 11859 cat > conftest.$ac_ext <<_LT_EOF
cannam@154 11860 #line $LINENO "configure"
cannam@154 11861 #include "confdefs.h"
cannam@154 11862
cannam@154 11863 #if HAVE_DLFCN_H
cannam@154 11864 #include <dlfcn.h>
cannam@154 11865 #endif
cannam@154 11866
cannam@154 11867 #include <stdio.h>
cannam@154 11868
cannam@154 11869 #ifdef RTLD_GLOBAL
cannam@154 11870 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@154 11871 #else
cannam@154 11872 # ifdef DL_GLOBAL
cannam@154 11873 # define LT_DLGLOBAL DL_GLOBAL
cannam@154 11874 # else
cannam@154 11875 # define LT_DLGLOBAL 0
cannam@154 11876 # endif
cannam@154 11877 #endif
cannam@154 11878
cannam@154 11879 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@154 11880 find out it does not work in some platform. */
cannam@154 11881 #ifndef LT_DLLAZY_OR_NOW
cannam@154 11882 # ifdef RTLD_LAZY
cannam@154 11883 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@154 11884 # else
cannam@154 11885 # ifdef DL_LAZY
cannam@154 11886 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@154 11887 # else
cannam@154 11888 # ifdef RTLD_NOW
cannam@154 11889 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@154 11890 # else
cannam@154 11891 # ifdef DL_NOW
cannam@154 11892 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@154 11893 # else
cannam@154 11894 # define LT_DLLAZY_OR_NOW 0
cannam@154 11895 # endif
cannam@154 11896 # endif
cannam@154 11897 # endif
cannam@154 11898 # endif
cannam@154 11899 #endif
cannam@154 11900
cannam@154 11901 /* When -fvisibility=hidden is used, assume the code has been annotated
cannam@154 11902 correspondingly for the symbols needed. */
cannam@154 11903 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cannam@154 11904 int fnord () __attribute__((visibility("default")));
cannam@154 11905 #endif
cannam@154 11906
cannam@154 11907 int fnord () { return 42; }
cannam@154 11908 int main ()
cannam@154 11909 {
cannam@154 11910 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@154 11911 int status = $lt_dlunknown;
cannam@154 11912
cannam@154 11913 if (self)
cannam@154 11914 {
cannam@154 11915 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@154 11916 else
cannam@154 11917 {
cannam@154 11918 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@154 11919 else puts (dlerror ());
cannam@154 11920 }
cannam@154 11921 /* dlclose (self); */
cannam@154 11922 }
cannam@154 11923 else
cannam@154 11924 puts (dlerror ());
cannam@154 11925
cannam@154 11926 return status;
cannam@154 11927 }
cannam@154 11928 _LT_EOF
cannam@154 11929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cannam@154 11930 (eval $ac_link) 2>&5
cannam@154 11931 ac_status=$?
cannam@154 11932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@154 11933 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
cannam@154 11934 (./conftest; exit; ) >&5 2>/dev/null
cannam@154 11935 lt_status=$?
cannam@154 11936 case x$lt_status in
cannam@154 11937 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@154 11938 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@154 11939 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
cannam@154 11940 esac
cannam@154 11941 else :
cannam@154 11942 # compilation failed
cannam@154 11943 lt_cv_dlopen_self_static=no
cannam@154 11944 fi
cannam@154 11945 fi
cannam@154 11946 rm -fr conftest*
cannam@154 11947
cannam@154 11948
cannam@154 11949 fi
cannam@154 11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cannam@154 11951 $as_echo "$lt_cv_dlopen_self_static" >&6; }
cannam@154 11952 fi
cannam@154 11953
cannam@154 11954 CPPFLAGS=$save_CPPFLAGS
cannam@154 11955 LDFLAGS=$save_LDFLAGS
cannam@154 11956 LIBS=$save_LIBS
cannam@154 11957 ;;
cannam@154 11958 esac
cannam@154 11959
cannam@154 11960 case $lt_cv_dlopen_self in
cannam@154 11961 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
cannam@154 11962 *) enable_dlopen_self=unknown ;;
cannam@154 11963 esac
cannam@154 11964
cannam@154 11965 case $lt_cv_dlopen_self_static in
cannam@154 11966 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
cannam@154 11967 *) enable_dlopen_self_static=unknown ;;
cannam@154 11968 esac
cannam@154 11969 fi
cannam@154 11970
cannam@154 11971
cannam@154 11972
cannam@154 11973
cannam@154 11974
cannam@154 11975
cannam@154 11976
cannam@154 11977
cannam@154 11978
cannam@154 11979
cannam@154 11980
cannam@154 11981
cannam@154 11982
cannam@154 11983
cannam@154 11984
cannam@154 11985
cannam@154 11986
cannam@154 11987 striplib=
cannam@154 11988 old_striplib=
cannam@154 11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cannam@154 11990 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
cannam@154 11991 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
cannam@154 11992 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
cannam@154 11993 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cannam@154 11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 11995 $as_echo "yes" >&6; }
cannam@154 11996 else
cannam@154 11997 # FIXME - insert some real tests, host_os isn't really good enough
cannam@154 11998 case $host_os in
cannam@154 11999 darwin*)
cannam@154 12000 if test -n "$STRIP"; then
cannam@154 12001 striplib="$STRIP -x"
cannam@154 12002 old_striplib="$STRIP -S"
cannam@154 12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 12004 $as_echo "yes" >&6; }
cannam@154 12005 else
cannam@154 12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 12007 $as_echo "no" >&6; }
cannam@154 12008 fi
cannam@154 12009 ;;
cannam@154 12010 *)
cannam@154 12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 12012 $as_echo "no" >&6; }
cannam@154 12013 ;;
cannam@154 12014 esac
cannam@154 12015 fi
cannam@154 12016
cannam@154 12017
cannam@154 12018
cannam@154 12019
cannam@154 12020
cannam@154 12021
cannam@154 12022
cannam@154 12023
cannam@154 12024
cannam@154 12025
cannam@154 12026
cannam@154 12027
cannam@154 12028 # Report what library types will actually be built
cannam@154 12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cannam@154 12030 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
cannam@154 12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cannam@154 12032 $as_echo "$can_build_shared" >&6; }
cannam@154 12033
cannam@154 12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cannam@154 12035 $as_echo_n "checking whether to build shared libraries... " >&6; }
cannam@154 12036 test no = "$can_build_shared" && enable_shared=no
cannam@154 12037
cannam@154 12038 # On AIX, shared libraries and static libraries use the same namespace, and
cannam@154 12039 # are all built from PIC.
cannam@154 12040 case $host_os in
cannam@154 12041 aix3*)
cannam@154 12042 test yes = "$enable_shared" && enable_static=no
cannam@154 12043 if test -n "$RANLIB"; then
cannam@154 12044 archive_cmds="$archive_cmds~\$RANLIB \$lib"
cannam@154 12045 postinstall_cmds='$RANLIB $lib'
cannam@154 12046 fi
cannam@154 12047 ;;
cannam@154 12048
cannam@154 12049 aix[4-9]*)
cannam@154 12050 if test ia64 != "$host_cpu"; then
cannam@154 12051 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
cannam@154 12052 yes,aix,yes) ;; # shared object as lib.so file only
cannam@154 12053 yes,svr4,*) ;; # shared object as lib.so archive member only
cannam@154 12054 yes,*) enable_static=no ;; # shared object in lib.a archive as well
cannam@154 12055 esac
cannam@154 12056 fi
cannam@154 12057 ;;
cannam@154 12058 esac
cannam@154 12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cannam@154 12060 $as_echo "$enable_shared" >&6; }
cannam@154 12061
cannam@154 12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cannam@154 12063 $as_echo_n "checking whether to build static libraries... " >&6; }
cannam@154 12064 # Make sure either enable_shared or enable_static is yes.
cannam@154 12065 test yes = "$enable_shared" || enable_static=yes
cannam@154 12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cannam@154 12067 $as_echo "$enable_static" >&6; }
cannam@154 12068
cannam@154 12069
cannam@154 12070
cannam@154 12071
cannam@154 12072 fi
cannam@154 12073 ac_ext=c
cannam@154 12074 ac_cpp='$CPP $CPPFLAGS'
cannam@154 12075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@154 12076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@154 12077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@154 12078
cannam@154 12079 CC=$lt_save_CC
cannam@154 12080
cannam@154 12081
cannam@154 12082
cannam@154 12083
cannam@154 12084
cannam@154 12085
cannam@154 12086
cannam@154 12087
cannam@154 12088
cannam@154 12089
cannam@154 12090
cannam@154 12091
cannam@154 12092
cannam@154 12093
cannam@154 12094
cannam@154 12095 ac_config_commands="$ac_config_commands libtool"
cannam@154 12096
cannam@154 12097
cannam@154 12098
cannam@154 12099
cannam@154 12100 # Only expand once:
cannam@154 12101
cannam@154 12102
cannam@154 12103
cannam@154 12104
cannam@154 12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cannam@154 12106 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cannam@154 12107 if ${ac_cv_prog_cc_c99+:} false; then :
cannam@154 12108 $as_echo_n "(cached) " >&6
cannam@154 12109 else
cannam@154 12110 ac_cv_prog_cc_c99=no
cannam@154 12111 ac_save_CC=$CC
cannam@154 12112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 12113 /* end confdefs.h. */
cannam@154 12114 #include <stdarg.h>
cannam@154 12115 #include <stdbool.h>
cannam@154 12116 #include <stdlib.h>
cannam@154 12117 #include <wchar.h>
cannam@154 12118 #include <stdio.h>
cannam@154 12119
cannam@154 12120 // Check varargs macros. These examples are taken from C99 6.10.3.5.
cannam@154 12121 #define debug(...) fprintf (stderr, __VA_ARGS__)
cannam@154 12122 #define showlist(...) puts (#__VA_ARGS__)
cannam@154 12123 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
cannam@154 12124 static void
cannam@154 12125 test_varargs_macros (void)
cannam@154 12126 {
cannam@154 12127 int x = 1234;
cannam@154 12128 int y = 5678;
cannam@154 12129 debug ("Flag");
cannam@154 12130 debug ("X = %d\n", x);
cannam@154 12131 showlist (The first, second, and third items.);
cannam@154 12132 report (x>y, "x is %d but y is %d", x, y);
cannam@154 12133 }
cannam@154 12134
cannam@154 12135 // Check long long types.
cannam@154 12136 #define BIG64 18446744073709551615ull
cannam@154 12137 #define BIG32 4294967295ul
cannam@154 12138 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
cannam@154 12139 #if !BIG_OK
cannam@154 12140 your preprocessor is broken;
cannam@154 12141 #endif
cannam@154 12142 #if BIG_OK
cannam@154 12143 #else
cannam@154 12144 your preprocessor is broken;
cannam@154 12145 #endif
cannam@154 12146 static long long int bignum = -9223372036854775807LL;
cannam@154 12147 static unsigned long long int ubignum = BIG64;
cannam@154 12148
cannam@154 12149 struct incomplete_array
cannam@154 12150 {
cannam@154 12151 int datasize;
cannam@154 12152 double data[];
cannam@154 12153 };
cannam@154 12154
cannam@154 12155 struct named_init {
cannam@154 12156 int number;
cannam@154 12157 const wchar_t *name;
cannam@154 12158 double average;
cannam@154 12159 };
cannam@154 12160
cannam@154 12161 typedef const char *ccp;
cannam@154 12162
cannam@154 12163 static inline int
cannam@154 12164 test_restrict (ccp restrict text)
cannam@154 12165 {
cannam@154 12166 // See if C++-style comments work.
cannam@154 12167 // Iterate through items via the restricted pointer.
cannam@154 12168 // Also check for declarations in for loops.
cannam@154 12169 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
cannam@154 12170 continue;
cannam@154 12171 return 0;
cannam@154 12172 }
cannam@154 12173
cannam@154 12174 // Check varargs and va_copy.
cannam@154 12175 static void
cannam@154 12176 test_varargs (const char *format, ...)
cannam@154 12177 {
cannam@154 12178 va_list args;
cannam@154 12179 va_start (args, format);
cannam@154 12180 va_list args_copy;
cannam@154 12181 va_copy (args_copy, args);
cannam@154 12182
cannam@154 12183 const char *str;
cannam@154 12184 int number;
cannam@154 12185 float fnumber;
cannam@154 12186
cannam@154 12187 while (*format)
cannam@154 12188 {
cannam@154 12189 switch (*format++)
cannam@154 12190 {
cannam@154 12191 case 's': // string
cannam@154 12192 str = va_arg (args_copy, const char *);
cannam@154 12193 break;
cannam@154 12194 case 'd': // int
cannam@154 12195 number = va_arg (args_copy, int);
cannam@154 12196 break;
cannam@154 12197 case 'f': // float
cannam@154 12198 fnumber = va_arg (args_copy, double);
cannam@154 12199 break;
cannam@154 12200 default:
cannam@154 12201 break;
cannam@154 12202 }
cannam@154 12203 }
cannam@154 12204 va_end (args_copy);
cannam@154 12205 va_end (args);
cannam@154 12206 }
cannam@154 12207
cannam@154 12208 int
cannam@154 12209 main ()
cannam@154 12210 {
cannam@154 12211
cannam@154 12212 // Check bool.
cannam@154 12213 _Bool success = false;
cannam@154 12214
cannam@154 12215 // Check restrict.
cannam@154 12216 if (test_restrict ("String literal") == 0)
cannam@154 12217 success = true;
cannam@154 12218 char *restrict newvar = "Another string";
cannam@154 12219
cannam@154 12220 // Check varargs.
cannam@154 12221 test_varargs ("s, d' f .", "string", 65, 34.234);
cannam@154 12222 test_varargs_macros ();
cannam@154 12223
cannam@154 12224 // Check flexible array members.
cannam@154 12225 struct incomplete_array *ia =
cannam@154 12226 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
cannam@154 12227 ia->datasize = 10;
cannam@154 12228 for (int i = 0; i < ia->datasize; ++i)
cannam@154 12229 ia->data[i] = i * 1.234;
cannam@154 12230
cannam@154 12231 // Check named initializers.
cannam@154 12232 struct named_init ni = {
cannam@154 12233 .number = 34,
cannam@154 12234 .name = L"Test wide string",
cannam@154 12235 .average = 543.34343,
cannam@154 12236 };
cannam@154 12237
cannam@154 12238 ni.number = 58;
cannam@154 12239
cannam@154 12240 int dynamic_array[ni.number];
cannam@154 12241 dynamic_array[ni.number - 1] = 543;
cannam@154 12242
cannam@154 12243 // work around unused variable warnings
cannam@154 12244 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
cannam@154 12245 || dynamic_array[ni.number - 1] != 543);
cannam@154 12246
cannam@154 12247 ;
cannam@154 12248 return 0;
cannam@154 12249 }
cannam@154 12250 _ACEOF
cannam@154 12251 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cannam@154 12252 do
cannam@154 12253 CC="$ac_save_CC $ac_arg"
cannam@154 12254 if ac_fn_c_try_compile "$LINENO"; then :
cannam@154 12255 ac_cv_prog_cc_c99=$ac_arg
cannam@154 12256 fi
cannam@154 12257 rm -f core conftest.err conftest.$ac_objext
cannam@154 12258 test "x$ac_cv_prog_cc_c99" != "xno" && break
cannam@154 12259 done
cannam@154 12260 rm -f conftest.$ac_ext
cannam@154 12261 CC=$ac_save_CC
cannam@154 12262
cannam@154 12263 fi
cannam@154 12264 # AC_CACHE_VAL
cannam@154 12265 case "x$ac_cv_prog_cc_c99" in
cannam@154 12266 x)
cannam@154 12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cannam@154 12268 $as_echo "none needed" >&6; } ;;
cannam@154 12269 xno)
cannam@154 12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cannam@154 12271 $as_echo "unsupported" >&6; } ;;
cannam@154 12272 *)
cannam@154 12273 CC="$CC $ac_cv_prog_cc_c99"
cannam@154 12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cannam@154 12275 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
cannam@154 12276 esac
cannam@154 12277 if test "x$ac_cv_prog_cc_c99" != xno; then :
cannam@154 12278
cannam@154 12279 fi
cannam@154 12280
cannam@154 12281
cannam@154 12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
cannam@154 12283 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
cannam@154 12284 if ${ac_cv_c_const+:} false; then :
cannam@154 12285 $as_echo_n "(cached) " >&6
cannam@154 12286 else
cannam@154 12287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 12288 /* end confdefs.h. */
cannam@154 12289
cannam@154 12290 int
cannam@154 12291 main ()
cannam@154 12292 {
cannam@154 12293
cannam@154 12294 #ifndef __cplusplus
cannam@154 12295 /* Ultrix mips cc rejects this sort of thing. */
cannam@154 12296 typedef int charset[2];
cannam@154 12297 const charset cs = { 0, 0 };
cannam@154 12298 /* SunOS 4.1.1 cc rejects this. */
cannam@154 12299 char const *const *pcpcc;
cannam@154 12300 char **ppc;
cannam@154 12301 /* NEC SVR4.0.2 mips cc rejects this. */
cannam@154 12302 struct point {int x, y;};
cannam@154 12303 static struct point const zero = {0,0};
cannam@154 12304 /* AIX XL C 1.02.0.0 rejects this.
cannam@154 12305 It does not let you subtract one const X* pointer from another in
cannam@154 12306 an arm of an if-expression whose if-part is not a constant
cannam@154 12307 expression */
cannam@154 12308 const char *g = "string";
cannam@154 12309 pcpcc = &g + (g ? g-g : 0);
cannam@154 12310 /* HPUX 7.0 cc rejects these. */
cannam@154 12311 ++pcpcc;
cannam@154 12312 ppc = (char**) pcpcc;
cannam@154 12313 pcpcc = (char const *const *) ppc;
cannam@154 12314 { /* SCO 3.2v4 cc rejects this sort of thing. */
cannam@154 12315 char tx;
cannam@154 12316 char *t = &tx;
cannam@154 12317 char const *s = 0 ? (char *) 0 : (char const *) 0;
cannam@154 12318
cannam@154 12319 *t++ = 0;
cannam@154 12320 if (s) return 0;
cannam@154 12321 }
cannam@154 12322 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
cannam@154 12323 int x[] = {25, 17};
cannam@154 12324 const int *foo = &x[0];
cannam@154 12325 ++foo;
cannam@154 12326 }
cannam@154 12327 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
cannam@154 12328 typedef const int *iptr;
cannam@154 12329 iptr p = 0;
cannam@154 12330 ++p;
cannam@154 12331 }
cannam@154 12332 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
cannam@154 12333 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
cannam@154 12334 struct s { int j; const int *ap[3]; } bx;
cannam@154 12335 struct s *b = &bx; b->j = 5;
cannam@154 12336 }
cannam@154 12337 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
cannam@154 12338 const int foo = 10;
cannam@154 12339 if (!foo) return 0;
cannam@154 12340 }
cannam@154 12341 return !cs[0] && !zero.x;
cannam@154 12342 #endif
cannam@154 12343
cannam@154 12344 ;
cannam@154 12345 return 0;
cannam@154 12346 }
cannam@154 12347 _ACEOF
cannam@154 12348 if ac_fn_c_try_compile "$LINENO"; then :
cannam@154 12349 ac_cv_c_const=yes
cannam@154 12350 else
cannam@154 12351 ac_cv_c_const=no
cannam@154 12352 fi
cannam@154 12353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@154 12354 fi
cannam@154 12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
cannam@154 12356 $as_echo "$ac_cv_c_const" >&6; }
cannam@154 12357 if test $ac_cv_c_const = no; then
cannam@154 12358
cannam@154 12359 $as_echo "#define const /**/" >>confdefs.h
cannam@154 12360
cannam@154 12361 fi
cannam@154 12362
cannam@154 12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cannam@154 12364 $as_echo_n "checking for inline... " >&6; }
cannam@154 12365 if ${ac_cv_c_inline+:} false; then :
cannam@154 12366 $as_echo_n "(cached) " >&6
cannam@154 12367 else
cannam@154 12368 ac_cv_c_inline=no
cannam@154 12369 for ac_kw in inline __inline__ __inline; do
cannam@154 12370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 12371 /* end confdefs.h. */
cannam@154 12372 #ifndef __cplusplus
cannam@154 12373 typedef int foo_t;
cannam@154 12374 static $ac_kw foo_t static_foo () {return 0; }
cannam@154 12375 $ac_kw foo_t foo () {return 0; }
cannam@154 12376 #endif
cannam@154 12377
cannam@154 12378 _ACEOF
cannam@154 12379 if ac_fn_c_try_compile "$LINENO"; then :
cannam@154 12380 ac_cv_c_inline=$ac_kw
cannam@154 12381 fi
cannam@154 12382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@154 12383 test "$ac_cv_c_inline" != no && break
cannam@154 12384 done
cannam@154 12385
cannam@154 12386 fi
cannam@154 12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cannam@154 12388 $as_echo "$ac_cv_c_inline" >&6; }
cannam@154 12389
cannam@154 12390 case $ac_cv_c_inline in
cannam@154 12391 inline | yes) ;;
cannam@154 12392 *)
cannam@154 12393 case $ac_cv_c_inline in
cannam@154 12394 no) ac_val=;;
cannam@154 12395 *) ac_val=$ac_cv_c_inline;;
cannam@154 12396 esac
cannam@154 12397 cat >>confdefs.h <<_ACEOF
cannam@154 12398 #ifndef __cplusplus
cannam@154 12399 #define inline $ac_val
cannam@154 12400 #endif
cannam@154 12401 _ACEOF
cannam@154 12402 ;;
cannam@154 12403 esac
cannam@154 12404
cannam@154 12405
cannam@154 12406 # By default we simply use the C compiler to build assembly code.
cannam@154 12407
cannam@154 12408 test "${CCAS+set}" = set || CCAS=$CC
cannam@154 12409 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
cannam@154 12410
cannam@154 12411
cannam@154 12412
cannam@154 12413 depcc="$CCAS" am_compiler_list=
cannam@154 12414
cannam@154 12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cannam@154 12416 $as_echo_n "checking dependency style of $depcc... " >&6; }
cannam@154 12417 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
cannam@154 12418 $as_echo_n "(cached) " >&6
cannam@154 12419 else
cannam@154 12420 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
cannam@154 12421 # We make a subdir and do the tests there. Otherwise we can end up
cannam@154 12422 # making bogus files that we don't know about and never remove. For
cannam@154 12423 # instance it was reported that on HP-UX the gcc test will end up
cannam@154 12424 # making a dummy file named 'D' -- because '-MD' means "put the output
cannam@154 12425 # in D".
cannam@154 12426 rm -rf conftest.dir
cannam@154 12427 mkdir conftest.dir
cannam@154 12428 # Copy depcomp to subdir because otherwise we won't find it if we're
cannam@154 12429 # using a relative directory.
cannam@154 12430 cp "$am_depcomp" conftest.dir
cannam@154 12431 cd conftest.dir
cannam@154 12432 # We will build objects and dependencies in a subdirectory because
cannam@154 12433 # it helps to detect inapplicable dependency modes. For instance
cannam@154 12434 # both Tru64's cc and ICC support -MD to output dependencies as a
cannam@154 12435 # side effect of compilation, but ICC will put the dependencies in
cannam@154 12436 # the current directory while Tru64 will put them in the object
cannam@154 12437 # directory.
cannam@154 12438 mkdir sub
cannam@154 12439
cannam@154 12440 am_cv_CCAS_dependencies_compiler_type=none
cannam@154 12441 if test "$am_compiler_list" = ""; then
cannam@154 12442 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
cannam@154 12443 fi
cannam@154 12444 am__universal=false
cannam@154 12445
cannam@154 12446
cannam@154 12447 for depmode in $am_compiler_list; do
cannam@154 12448 # Setup a source with many dependencies, because some compilers
cannam@154 12449 # like to wrap large dependency lists on column 80 (with \), and
cannam@154 12450 # we should not choose a depcomp mode which is confused by this.
cannam@154 12451 #
cannam@154 12452 # We need to recreate these files for each test, as the compiler may
cannam@154 12453 # overwrite some of them when testing with obscure command lines.
cannam@154 12454 # This happens at least with the AIX C compiler.
cannam@154 12455 : > sub/conftest.c
cannam@154 12456 for i in 1 2 3 4 5 6; do
cannam@154 12457 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cannam@154 12458 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
cannam@154 12459 # Solaris 10 /bin/sh.
cannam@154 12460 echo '/* dummy */' > sub/conftst$i.h
cannam@154 12461 done
cannam@154 12462 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
cannam@154 12463
cannam@154 12464 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cannam@154 12465 # mode. It turns out that the SunPro C++ compiler does not properly
cannam@154 12466 # handle '-M -o', and we need to detect this. Also, some Intel
cannam@154 12467 # versions had trouble with output in subdirs.
cannam@154 12468 am__obj=sub/conftest.${OBJEXT-o}
cannam@154 12469 am__minus_obj="-o $am__obj"
cannam@154 12470 case $depmode in
cannam@154 12471 gcc)
cannam@154 12472 # This depmode causes a compiler race in universal mode.
cannam@154 12473 test "$am__universal" = false || continue
cannam@154 12474 ;;
cannam@154 12475 nosideeffect)
cannam@154 12476 # After this tag, mechanisms are not by side-effect, so they'll
cannam@154 12477 # only be used when explicitly requested.
cannam@154 12478 if test "x$enable_dependency_tracking" = xyes; then
cannam@154 12479 continue
cannam@154 12480 else
cannam@154 12481 break
cannam@154 12482 fi
cannam@154 12483 ;;
cannam@154 12484 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cannam@154 12485 # This compiler won't grok '-c -o', but also, the minuso test has
cannam@154 12486 # not run yet. These depmodes are late enough in the game, and
cannam@154 12487 # so weak that their functioning should not be impacted.
cannam@154 12488 am__obj=conftest.${OBJEXT-o}
cannam@154 12489 am__minus_obj=
cannam@154 12490 ;;
cannam@154 12491 none) break ;;
cannam@154 12492 esac
cannam@154 12493 if depmode=$depmode \
cannam@154 12494 source=sub/conftest.c object=$am__obj \
cannam@154 12495 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cannam@154 12496 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
cannam@154 12497 >/dev/null 2>conftest.err &&
cannam@154 12498 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
cannam@154 12499 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cannam@154 12500 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
cannam@154 12501 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
cannam@154 12502 # icc doesn't choke on unknown options, it will just issue warnings
cannam@154 12503 # or remarks (even with -Werror). So we grep stderr for any message
cannam@154 12504 # that says an option was ignored or not supported.
cannam@154 12505 # When given -MP, icc 7.0 and 7.1 complain thusly:
cannam@154 12506 # icc: Command line warning: ignoring option '-M'; no argument required
cannam@154 12507 # The diagnosis changed in icc 8.0:
cannam@154 12508 # icc: Command line remark: option '-MP' not supported
cannam@154 12509 if (grep 'ignoring option' conftest.err ||
cannam@154 12510 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
cannam@154 12511 am_cv_CCAS_dependencies_compiler_type=$depmode
cannam@154 12512 break
cannam@154 12513 fi
cannam@154 12514 fi
cannam@154 12515 done
cannam@154 12516
cannam@154 12517 cd ..
cannam@154 12518 rm -rf conftest.dir
cannam@154 12519 else
cannam@154 12520 am_cv_CCAS_dependencies_compiler_type=none
cannam@154 12521 fi
cannam@154 12522
cannam@154 12523 fi
cannam@154 12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
cannam@154 12525 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
cannam@154 12526 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
cannam@154 12527
cannam@154 12528 if
cannam@154 12529 test "x$enable_dependency_tracking" != xno \
cannam@154 12530 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
cannam@154 12531 am__fastdepCCAS_TRUE=
cannam@154 12532 am__fastdepCCAS_FALSE='#'
cannam@154 12533 else
cannam@154 12534 am__fastdepCCAS_TRUE='#'
cannam@154 12535 am__fastdepCCAS_FALSE=
cannam@154 12536 fi
cannam@154 12537
cannam@154 12538
cannam@154 12539
cannam@154 12540
cannam@154 12541 $as_echo "#define OPUS_BUILD /**/" >>confdefs.h
cannam@154 12542
cannam@154 12543
cannam@154 12544 #Use a hacked up version of autoconf's AC_C_RESTRICT because it's not
cannam@154 12545 #strong enough a test to detect old buggy versions of GCC (e.g. 2.95.3)
cannam@154 12546 #Note: Both this and the test for variable-size arrays below are also
cannam@154 12547 # done by AC_PROG_CC_C99, but not thoroughly enough apparently.
cannam@154 12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cannam@154 12549 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cannam@154 12550 if ${ac_cv_c_restrict+:} false; then :
cannam@154 12551 $as_echo_n "(cached) " >&6
cannam@154 12552 else
cannam@154 12553 ac_cv_c_restrict=no
cannam@154 12554 # The order here caters to the fact that C++ does not require restrict.
cannam@154 12555 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cannam@154 12556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 12557 /* end confdefs.h. */
cannam@154 12558 typedef int * int_ptr;
cannam@154 12559 int foo (int_ptr $ac_kw ip, int * $ac_kw baz[]) {
cannam@154 12560 return ip[0];
cannam@154 12561 }
cannam@154 12562 int
cannam@154 12563 main ()
cannam@154 12564 {
cannam@154 12565 int s[1];
cannam@154 12566 int * $ac_kw t = s;
cannam@154 12567 t[0] = 0;
cannam@154 12568 return foo(t, (void *)0)
cannam@154 12569 ;
cannam@154 12570 return 0;
cannam@154 12571 }
cannam@154 12572 _ACEOF
cannam@154 12573 if ac_fn_c_try_compile "$LINENO"; then :
cannam@154 12574 ac_cv_c_restrict=$ac_kw
cannam@154 12575 fi
cannam@154 12576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@154 12577 test "$ac_cv_c_restrict" != no && break
cannam@154 12578 done
cannam@154 12579
cannam@154 12580 fi
cannam@154 12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cannam@154 12582 $as_echo "$ac_cv_c_restrict" >&6; }
cannam@154 12583
cannam@154 12584
cannam@154 12585
cannam@154 12586 case $ac_cv_c_restrict in
cannam@154 12587 restrict) ;;
cannam@154 12588 no) $as_echo "#define restrict /**/" >>confdefs.h
cannam@154 12589 ;;
cannam@154 12590 *) cat >>confdefs.h <<_ACEOF
cannam@154 12591 #define restrict $ac_cv_c_restrict
cannam@154 12592 _ACEOF
cannam@154 12593 ;;
cannam@154 12594 esac
cannam@154 12595
cannam@154 12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 variable-size arrays" >&5
cannam@154 12597 $as_echo_n "checking for C99 variable-size arrays... " >&6; }
cannam@154 12598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 12599 /* end confdefs.h. */
cannam@154 12600
cannam@154 12601 int
cannam@154 12602 main ()
cannam@154 12603 {
cannam@154 12604 static int x; char a[++x]; a[sizeof a - 1] = 0; int N; return a[0];
cannam@154 12605 ;
cannam@154 12606 return 0;
cannam@154 12607 }
cannam@154 12608 _ACEOF
cannam@154 12609 if ac_fn_c_try_compile "$LINENO"; then :
cannam@154 12610 has_var_arrays=yes
cannam@154 12611 use_alloca="no (using var arrays)"
cannam@154 12612
cannam@154 12613 $as_echo "#define VAR_ARRAYS 1" >>confdefs.h
cannam@154 12614
cannam@154 12615
cannam@154 12616 else
cannam@154 12617
cannam@154 12618 has_var_arrays=no
cannam@154 12619
cannam@154 12620 fi
cannam@154 12621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@154 12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_var_arrays" >&5
cannam@154 12623 $as_echo "$has_var_arrays" >&6; }
cannam@154 12624
cannam@154 12625 if test "$has_var_arrays" = "no"; then :
cannam@154 12626
cannam@154 12627 for ac_header in alloca.h
cannam@154 12628 do :
cannam@154 12629 ac_fn_c_check_header_mongrel "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
cannam@154 12630 if test "x$ac_cv_header_alloca_h" = xyes; then :
cannam@154 12631 cat >>confdefs.h <<_ACEOF
cannam@154 12632 #define HAVE_ALLOCA_H 1
cannam@154 12633 _ACEOF
cannam@154 12634
cannam@154 12635 fi
cannam@154 12636
cannam@154 12637 done
cannam@154 12638
cannam@154 12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
cannam@154 12640 $as_echo_n "checking for alloca... " >&6; }
cannam@154 12641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 12642 /* end confdefs.h. */
cannam@154 12643 #include <alloca.h>
cannam@154 12644 int
cannam@154 12645 main ()
cannam@154 12646 {
cannam@154 12647 int foo=10; int *array = alloca(foo);
cannam@154 12648 ;
cannam@154 12649 return 0;
cannam@154 12650 }
cannam@154 12651 _ACEOF
cannam@154 12652 if ac_fn_c_try_compile "$LINENO"; then :
cannam@154 12653 use_alloca=yes;
cannam@154 12654
cannam@154 12655 $as_echo "#define USE_ALLOCA /**/" >>confdefs.h
cannam@154 12656
cannam@154 12657
cannam@154 12658 else
cannam@154 12659
cannam@154 12660 use_alloca=no
cannam@154 12661
cannam@154 12662 fi
cannam@154 12663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@154 12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_alloca" >&5
cannam@154 12665 $as_echo "$use_alloca" >&6; }
cannam@154 12666
cannam@154 12667 fi
cannam@154 12668
cannam@154 12669 LIBM=
cannam@154 12670 case $host in
cannam@154 12671 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
cannam@154 12672 # These system don't have libm, or don't need it
cannam@154 12673 ;;
cannam@154 12674 *-ncr-sysv4.3*)
cannam@154 12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
cannam@154 12676 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
cannam@154 12677 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
cannam@154 12678 $as_echo_n "(cached) " >&6
cannam@154 12679 else
cannam@154 12680 ac_check_lib_save_LIBS=$LIBS
cannam@154 12681 LIBS="-lmw $LIBS"
cannam@154 12682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 12683 /* end confdefs.h. */
cannam@154 12684
cannam@154 12685 /* Override any GCC internal prototype to avoid an error.
cannam@154 12686 Use char because int might match the return type of a GCC
cannam@154 12687 builtin and then its argument prototype would still apply. */
cannam@154 12688 #ifdef __cplusplus
cannam@154 12689 extern "C"
cannam@154 12690 #endif
cannam@154 12691 char _mwvalidcheckl ();
cannam@154 12692 int
cannam@154 12693 main ()
cannam@154 12694 {
cannam@154 12695 return _mwvalidcheckl ();
cannam@154 12696 ;
cannam@154 12697 return 0;
cannam@154 12698 }
cannam@154 12699 _ACEOF
cannam@154 12700 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 12701 ac_cv_lib_mw__mwvalidcheckl=yes
cannam@154 12702 else
cannam@154 12703 ac_cv_lib_mw__mwvalidcheckl=no
cannam@154 12704 fi
cannam@154 12705 rm -f core conftest.err conftest.$ac_objext \
cannam@154 12706 conftest$ac_exeext conftest.$ac_ext
cannam@154 12707 LIBS=$ac_check_lib_save_LIBS
cannam@154 12708 fi
cannam@154 12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
cannam@154 12710 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
cannam@154 12711 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
cannam@154 12712 LIBM=-lmw
cannam@154 12713 fi
cannam@154 12714
cannam@154 12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
cannam@154 12716 $as_echo_n "checking for cos in -lm... " >&6; }
cannam@154 12717 if ${ac_cv_lib_m_cos+:} false; then :
cannam@154 12718 $as_echo_n "(cached) " >&6
cannam@154 12719 else
cannam@154 12720 ac_check_lib_save_LIBS=$LIBS
cannam@154 12721 LIBS="-lm $LIBS"
cannam@154 12722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 12723 /* end confdefs.h. */
cannam@154 12724
cannam@154 12725 /* Override any GCC internal prototype to avoid an error.
cannam@154 12726 Use char because int might match the return type of a GCC
cannam@154 12727 builtin and then its argument prototype would still apply. */
cannam@154 12728 #ifdef __cplusplus
cannam@154 12729 extern "C"
cannam@154 12730 #endif
cannam@154 12731 char cos ();
cannam@154 12732 int
cannam@154 12733 main ()
cannam@154 12734 {
cannam@154 12735 return cos ();
cannam@154 12736 ;
cannam@154 12737 return 0;
cannam@154 12738 }
cannam@154 12739 _ACEOF
cannam@154 12740 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 12741 ac_cv_lib_m_cos=yes
cannam@154 12742 else
cannam@154 12743 ac_cv_lib_m_cos=no
cannam@154 12744 fi
cannam@154 12745 rm -f core conftest.err conftest.$ac_objext \
cannam@154 12746 conftest$ac_exeext conftest.$ac_ext
cannam@154 12747 LIBS=$ac_check_lib_save_LIBS
cannam@154 12748 fi
cannam@154 12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
cannam@154 12750 $as_echo "$ac_cv_lib_m_cos" >&6; }
cannam@154 12751 if test "x$ac_cv_lib_m_cos" = xyes; then :
cannam@154 12752 LIBM="$LIBM -lm"
cannam@154 12753 fi
cannam@154 12754
cannam@154 12755 ;;
cannam@154 12756 *)
cannam@154 12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
cannam@154 12758 $as_echo_n "checking for cos in -lm... " >&6; }
cannam@154 12759 if ${ac_cv_lib_m_cos+:} false; then :
cannam@154 12760 $as_echo_n "(cached) " >&6
cannam@154 12761 else
cannam@154 12762 ac_check_lib_save_LIBS=$LIBS
cannam@154 12763 LIBS="-lm $LIBS"
cannam@154 12764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 12765 /* end confdefs.h. */
cannam@154 12766
cannam@154 12767 /* Override any GCC internal prototype to avoid an error.
cannam@154 12768 Use char because int might match the return type of a GCC
cannam@154 12769 builtin and then its argument prototype would still apply. */
cannam@154 12770 #ifdef __cplusplus
cannam@154 12771 extern "C"
cannam@154 12772 #endif
cannam@154 12773 char cos ();
cannam@154 12774 int
cannam@154 12775 main ()
cannam@154 12776 {
cannam@154 12777 return cos ();
cannam@154 12778 ;
cannam@154 12779 return 0;
cannam@154 12780 }
cannam@154 12781 _ACEOF
cannam@154 12782 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 12783 ac_cv_lib_m_cos=yes
cannam@154 12784 else
cannam@154 12785 ac_cv_lib_m_cos=no
cannam@154 12786 fi
cannam@154 12787 rm -f core conftest.err conftest.$ac_objext \
cannam@154 12788 conftest$ac_exeext conftest.$ac_ext
cannam@154 12789 LIBS=$ac_check_lib_save_LIBS
cannam@154 12790 fi
cannam@154 12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
cannam@154 12792 $as_echo "$ac_cv_lib_m_cos" >&6; }
cannam@154 12793 if test "x$ac_cv_lib_m_cos" = xyes; then :
cannam@154 12794 LIBM=-lm
cannam@154 12795 fi
cannam@154 12796
cannam@154 12797 ;;
cannam@154 12798 esac
cannam@154 12799
cannam@154 12800
cannam@154 12801
cannam@154 12802 # Check whether --enable-fixed-point was given.
cannam@154 12803 if test "${enable_fixed_point+set}" = set; then :
cannam@154 12804 enableval=$enable_fixed_point;
cannam@154 12805 else
cannam@154 12806 enable_fixed_point=no
cannam@154 12807 fi
cannam@154 12808
cannam@154 12809
cannam@154 12810 if test "$enable_fixed_point" = "yes"; then :
cannam@154 12811
cannam@154 12812 enable_float="no"
cannam@154 12813
cannam@154 12814 $as_echo "#define FIXED_POINT 1" >>confdefs.h
cannam@154 12815
cannam@154 12816 PC_BUILD="fixed-point"
cannam@154 12817
cannam@154 12818 else
cannam@154 12819
cannam@154 12820 enable_float="yes";
cannam@154 12821 PC_BUILD="floating-point"
cannam@154 12822
cannam@154 12823 fi
cannam@154 12824
cannam@154 12825 if test "$enable_fixed_point" = "yes"; then
cannam@154 12826 FIXED_POINT_TRUE=
cannam@154 12827 FIXED_POINT_FALSE='#'
cannam@154 12828 else
cannam@154 12829 FIXED_POINT_TRUE='#'
cannam@154 12830 FIXED_POINT_FALSE=
cannam@154 12831 fi
cannam@154 12832
cannam@154 12833
cannam@154 12834 # Check whether --enable-fixed-point-debug was given.
cannam@154 12835 if test "${enable_fixed_point_debug+set}" = set; then :
cannam@154 12836 enableval=$enable_fixed_point_debug;
cannam@154 12837 else
cannam@154 12838 enable_fixed_point_debug=no
cannam@154 12839 fi
cannam@154 12840
cannam@154 12841
cannam@154 12842 if test "$enable_fixed_point_debug" = "yes"; then :
cannam@154 12843
cannam@154 12844
cannam@154 12845 $as_echo "#define FIXED_DEBUG 1" >>confdefs.h
cannam@154 12846
cannam@154 12847
cannam@154 12848 fi
cannam@154 12849
cannam@154 12850 # Check whether --enable-float_api was given.
cannam@154 12851 if test "${enable_float_api+set}" = set; then :
cannam@154 12852 enableval=$enable_float_api;
cannam@154 12853 else
cannam@154 12854 enable_float_api=yes
cannam@154 12855 fi
cannam@154 12856
cannam@154 12857
cannam@154 12858 if test "$enable_float_api" = "no"; then
cannam@154 12859 DISABLE_FLOAT_API_TRUE=
cannam@154 12860 DISABLE_FLOAT_API_FALSE='#'
cannam@154 12861 else
cannam@154 12862 DISABLE_FLOAT_API_TRUE='#'
cannam@154 12863 DISABLE_FLOAT_API_FALSE=
cannam@154 12864 fi
cannam@154 12865
cannam@154 12866
cannam@154 12867 if test "$enable_float_api" = "no"; then :
cannam@154 12868
cannam@154 12869
cannam@154 12870 $as_echo "#define DISABLE_FLOAT_API 1" >>confdefs.h
cannam@154 12871
cannam@154 12872
cannam@154 12873 fi
cannam@154 12874
cannam@154 12875 # Check whether --enable-custom-modes was given.
cannam@154 12876 if test "${enable_custom_modes+set}" = set; then :
cannam@154 12877 enableval=$enable_custom_modes;
cannam@154 12878 else
cannam@154 12879 enable_custom_modes=no
cannam@154 12880 fi
cannam@154 12881
cannam@154 12882
cannam@154 12883 if test "$enable_custom_modes" = "yes"; then :
cannam@154 12884
cannam@154 12885
cannam@154 12886 $as_echo "#define CUSTOM_MODES 1" >>confdefs.h
cannam@154 12887
cannam@154 12888 PC_BUILD="$PC_BUILD, custom modes"
cannam@154 12889
cannam@154 12890 fi
cannam@154 12891
cannam@154 12892 if test "$enable_custom_modes" = "yes"; then
cannam@154 12893 CUSTOM_MODES_TRUE=
cannam@154 12894 CUSTOM_MODES_FALSE='#'
cannam@154 12895 else
cannam@154 12896 CUSTOM_MODES_TRUE='#'
cannam@154 12897 CUSTOM_MODES_FALSE=
cannam@154 12898 fi
cannam@154 12899
cannam@154 12900
cannam@154 12901 has_float_approx=no
cannam@154 12902 #case "$host_cpu" in
cannam@154 12903 #i[[3456]]86 | x86_64 | powerpc64 | powerpc32 | ia64)
cannam@154 12904 # has_float_approx=yes
cannam@154 12905 # ;;
cannam@154 12906 #esac
cannam@154 12907
cannam@154 12908 # Check whether --enable-float-approx was given.
cannam@154 12909 if test "${enable_float_approx+set}" = set; then :
cannam@154 12910 enableval=$enable_float_approx; if test "$enable_float_approx" = "yes"; then
cannam@154 12911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Floating point approximations are not supported on all platforms." >&5
cannam@154 12912 $as_echo "$as_me: WARNING: Floating point approximations are not supported on all platforms." >&2;}
cannam@154 12913 fi
cannam@154 12914
cannam@154 12915 else
cannam@154 12916 enable_float_approx=$has_float_approx
cannam@154 12917 fi
cannam@154 12918
cannam@154 12919
cannam@154 12920 if test "$enable_float_approx" = "yes"; then :
cannam@154 12921
cannam@154 12922
cannam@154 12923 $as_echo "#define FLOAT_APPROX 1" >>confdefs.h
cannam@154 12924
cannam@154 12925
cannam@154 12926 fi
cannam@154 12927
cannam@154 12928 # Check whether --enable-asm was given.
cannam@154 12929 if test "${enable_asm+set}" = set; then :
cannam@154 12930 enableval=$enable_asm;
cannam@154 12931 else
cannam@154 12932 enable_asm=yes
cannam@154 12933 fi
cannam@154 12934
cannam@154 12935
cannam@154 12936 # Check whether --enable-rtcd was given.
cannam@154 12937 if test "${enable_rtcd+set}" = set; then :
cannam@154 12938 enableval=$enable_rtcd;
cannam@154 12939 else
cannam@154 12940 enable_rtcd=yes
cannam@154 12941 fi
cannam@154 12942
cannam@154 12943
cannam@154 12944 # Check whether --enable-intrinsics was given.
cannam@154 12945 if test "${enable_intrinsics+set}" = set; then :
cannam@154 12946 enableval=$enable_intrinsics;
cannam@154 12947 else
cannam@154 12948 enable_intrinsics=yes
cannam@154 12949 fi
cannam@154 12950
cannam@154 12951
cannam@154 12952 rtcd_support=no
cannam@154 12953 cpu_arm=no
cannam@154 12954
cannam@154 12955 if test x"${enable_asm}" = x"yes"; then :
cannam@154 12956
cannam@154 12957 inline_optimization="No inline ASM for your platform, please send patches"
cannam@154 12958 case $host_cpu in
cannam@154 12959 arm*)
cannam@154 12960 if test "$enable_float" != "yes"; then :
cannam@154 12961
cannam@154 12962 cpu_arm=yes
cannam@154 12963
cannam@154 12964 $as_echo "#define OPUS_ARM_ASM /**/" >>confdefs.h
cannam@154 12965
cannam@154 12966
cannam@154 12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports gcc-style inline assembly" >&5
cannam@154 12968 $as_echo_n "checking if compiler supports gcc-style inline assembly... " >&6; }
cannam@154 12969
cannam@154 12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 12971 /* end confdefs.h. */
cannam@154 12972
cannam@154 12973 int
cannam@154 12974 main ()
cannam@154 12975 {
cannam@154 12976
cannam@154 12977 #ifdef __GNUC_MINOR__
cannam@154 12978 #if (__GNUC__ * 1000 + __GNUC_MINOR__) < 3004
cannam@154 12979 #error GCC before 3.4 has critical bugs compiling inline assembly
cannam@154 12980 #endif
cannam@154 12981 #endif
cannam@154 12982 __asm__ (""::)
cannam@154 12983 ;
cannam@154 12984 return 0;
cannam@154 12985 }
cannam@154 12986 _ACEOF
cannam@154 12987 if ac_fn_c_try_compile "$LINENO"; then :
cannam@154 12988 flag_ok=yes
cannam@154 12989 else
cannam@154 12990 flag_ok=no
cannam@154 12991 fi
cannam@154 12992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@154 12993
cannam@154 12994 if test "X$flag_ok" = Xyes ; then
cannam@154 12995 inline_optimization="ARM"
cannam@154 12996 true
cannam@154 12997 else
cannam@154 12998 inline_optimization="disabled"
cannam@154 12999
cannam@154 13000 true
cannam@154 13001 fi
cannam@154 13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
cannam@154 13003 $as_echo "$flag_ok" >&6; }
cannam@154 13004
cannam@154 13005
cannam@154 13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports EDSP instructions on ARM" >&5
cannam@154 13007 $as_echo_n "checking if assembler supports EDSP instructions on ARM... " >&6; }
cannam@154 13008
cannam@154 13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 13010 /* end confdefs.h. */
cannam@154 13011
cannam@154 13012 int
cannam@154 13013 main ()
cannam@154 13014 {
cannam@154 13015 __asm__("qadd r3,r3,r3")
cannam@154 13016 ;
cannam@154 13017 return 0;
cannam@154 13018 }
cannam@154 13019 _ACEOF
cannam@154 13020 if ac_fn_c_try_compile "$LINENO"; then :
cannam@154 13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 13022 $as_echo "yes" >&6; }
cannam@154 13023 OPUS_ARM_INLINE_EDSP=1
cannam@154 13024 else
cannam@154 13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 13026 $as_echo "no" >&6; }
cannam@154 13027 OPUS_ARM_INLINE_EDSP=0
cannam@154 13028 fi
cannam@154 13029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@154 13030
cannam@154 13031
cannam@154 13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports ARMv6 media instructions on ARM" >&5
cannam@154 13033 $as_echo_n "checking if assembler supports ARMv6 media instructions on ARM... " >&6; }
cannam@154 13034
cannam@154 13035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 13036 /* end confdefs.h. */
cannam@154 13037
cannam@154 13038 int
cannam@154 13039 main ()
cannam@154 13040 {
cannam@154 13041 __asm__("shadd8 r3,r3,r3")
cannam@154 13042 ;
cannam@154 13043 return 0;
cannam@154 13044 }
cannam@154 13045 _ACEOF
cannam@154 13046 if ac_fn_c_try_compile "$LINENO"; then :
cannam@154 13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 13048 $as_echo "yes" >&6; }
cannam@154 13049 OPUS_ARM_INLINE_MEDIA=1
cannam@154 13050 else
cannam@154 13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 13052 $as_echo "no" >&6; }
cannam@154 13053 OPUS_ARM_INLINE_MEDIA=0
cannam@154 13054 fi
cannam@154 13055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@154 13056
cannam@154 13057
cannam@154 13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports NEON instructions on ARM" >&5
cannam@154 13059 $as_echo_n "checking if assembler supports NEON instructions on ARM... " >&6; }
cannam@154 13060
cannam@154 13061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 13062 /* end confdefs.h. */
cannam@154 13063
cannam@154 13064 int
cannam@154 13065 main ()
cannam@154 13066 {
cannam@154 13067 __asm__("vorr d0,d0,d0")
cannam@154 13068 ;
cannam@154 13069 return 0;
cannam@154 13070 }
cannam@154 13071 _ACEOF
cannam@154 13072 if ac_fn_c_try_compile "$LINENO"; then :
cannam@154 13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 13074 $as_echo "yes" >&6; }
cannam@154 13075 OPUS_ARM_INLINE_NEON=1
cannam@154 13076 else
cannam@154 13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 13078 $as_echo "no" >&6; }
cannam@154 13079 OPUS_ARM_INLINE_NEON=0
cannam@154 13080 fi
cannam@154 13081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@154 13082
cannam@154 13083 if test x"$inline_optimization" = x"ARM"; then :
cannam@154 13084
cannam@154 13085 if true; then
cannam@154 13086 OPUS_ARM_INLINE_ASM_TRUE=
cannam@154 13087 OPUS_ARM_INLINE_ASM_FALSE='#'
cannam@154 13088 else
cannam@154 13089 OPUS_ARM_INLINE_ASM_TRUE='#'
cannam@154 13090 OPUS_ARM_INLINE_ASM_FALSE=
cannam@154 13091 fi
cannam@154 13092
cannam@154 13093
cannam@154 13094 $as_echo "#define OPUS_ARM_INLINE_ASM 1" >>confdefs.h
cannam@154 13095
cannam@154 13096 if test x"$OPUS_ARM_INLINE_EDSP" = x"1"; then :
cannam@154 13097
cannam@154 13098
cannam@154 13099 $as_echo "#define OPUS_ARM_INLINE_EDSP 1" >>confdefs.h
cannam@154 13100
cannam@154 13101 inline_optimization="$inline_optimization (EDSP)"
cannam@154 13102
cannam@154 13103 fi
cannam@154 13104 if test x"$OPUS_ARM_INLINE_MEDIA" = x"1"; then :
cannam@154 13105
cannam@154 13106
cannam@154 13107 $as_echo "#define OPUS_ARM_INLINE_MEDIA 1" >>confdefs.h
cannam@154 13108
cannam@154 13109 inline_optimization="$inline_optimization (Media)"
cannam@154 13110
cannam@154 13111 fi
cannam@154 13112 if test x"$OPUS_ARM_INLINE_NEON" = x"1"; then :
cannam@154 13113
cannam@154 13114
cannam@154 13115 $as_echo "#define OPUS_ARM_INLINE_NEON 1" >>confdefs.h
cannam@154 13116
cannam@154 13117 inline_optimization="$inline_optimization (NEON)"
cannam@154 13118
cannam@154 13119 fi
cannam@154 13120
cannam@154 13121 fi
cannam@154 13122 # Extract the first word of "perl", so it can be a program name with args.
cannam@154 13123 set dummy perl; ac_word=$2
cannam@154 13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 13125 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 13126 if ${ac_cv_prog_HAVE_PERL+:} false; then :
cannam@154 13127 $as_echo_n "(cached) " >&6
cannam@154 13128 else
cannam@154 13129 if test -n "$HAVE_PERL"; then
cannam@154 13130 ac_cv_prog_HAVE_PERL="$HAVE_PERL" # Let the user override the test.
cannam@154 13131 else
cannam@154 13132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 13133 for as_dir in $PATH
cannam@154 13134 do
cannam@154 13135 IFS=$as_save_IFS
cannam@154 13136 test -z "$as_dir" && as_dir=.
cannam@154 13137 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 13138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 13139 ac_cv_prog_HAVE_PERL="yes"
cannam@154 13140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 13141 break 2
cannam@154 13142 fi
cannam@154 13143 done
cannam@154 13144 done
cannam@154 13145 IFS=$as_save_IFS
cannam@154 13146
cannam@154 13147 test -z "$ac_cv_prog_HAVE_PERL" && ac_cv_prog_HAVE_PERL="no"
cannam@154 13148 fi
cannam@154 13149 fi
cannam@154 13150 HAVE_PERL=$ac_cv_prog_HAVE_PERL
cannam@154 13151 if test -n "$HAVE_PERL"; then
cannam@154 13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PERL" >&5
cannam@154 13153 $as_echo "$HAVE_PERL" >&6; }
cannam@154 13154 else
cannam@154 13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 13156 $as_echo "no" >&6; }
cannam@154 13157 fi
cannam@154 13158
cannam@154 13159
cannam@154 13160 if test x"$HAVE_PERL" = x"yes"; then :
cannam@154 13161
cannam@154 13162 if true; then
cannam@154 13163 OPUS_ARM_EXTERNAL_ASM_TRUE=
cannam@154 13164 OPUS_ARM_EXTERNAL_ASM_FALSE='#'
cannam@154 13165 else
cannam@154 13166 OPUS_ARM_EXTERNAL_ASM_TRUE='#'
cannam@154 13167 OPUS_ARM_EXTERNAL_ASM_FALSE=
cannam@154 13168 fi
cannam@154 13169
cannam@154 13170 asm_optimization="ARM"
cannam@154 13171 if test x"$OPUS_ARM_INLINE_EDSP" = x"1"; then :
cannam@154 13172
cannam@154 13173 OPUS_ARM_PRESUME_EDSP=1
cannam@154 13174 OPUS_ARM_MAY_HAVE_EDSP=1
cannam@154 13175
cannam@154 13176 else
cannam@154 13177
cannam@154 13178 OPUS_ARM_PRESUME_EDSP=0
cannam@154 13179 OPUS_ARM_MAY_HAVE_EDSP=0
cannam@154 13180
cannam@154 13181 fi
cannam@154 13182 if test x"$OPUS_ARM_INLINE_MEDIA" = x"1"; then :
cannam@154 13183
cannam@154 13184 OPUS_ARM_PRESUME_MEDIA=1
cannam@154 13185 OPUS_ARM_MAY_HAVE_MEDIA=1
cannam@154 13186
cannam@154 13187 else
cannam@154 13188
cannam@154 13189 OPUS_ARM_PRESUME_MEDIA=0
cannam@154 13190 OPUS_ARM_MAY_HAVE_MEDIA=0
cannam@154 13191
cannam@154 13192 fi
cannam@154 13193 if test x"$OPUS_ARM_INLINE_NEON" = x"1"; then :
cannam@154 13194
cannam@154 13195 OPUS_ARM_PRESUME_NEON=1
cannam@154 13196 OPUS_ARM_MAY_HAVE_NEON=1
cannam@154 13197
cannam@154 13198 else
cannam@154 13199
cannam@154 13200 OPUS_ARM_PRESUME_NEON=0
cannam@154 13201 OPUS_ARM_MAY_HAVE_NEON=0
cannam@154 13202
cannam@154 13203 fi
cannam@154 13204 if test x"$enable_rtcd" = x"yes"; then :
cannam@154 13205
cannam@154 13206 if test x"$OPUS_ARM_MAY_HAVE_EDSP" != x"1"; then :
cannam@154 13207
cannam@154 13208 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to force-enable armv5e EDSP instructions..." >&5
cannam@154 13209 $as_echo "$as_me: Trying to force-enable armv5e EDSP instructions..." >&6;}
cannam@154 13210
cannam@154 13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports EDSP instructions on ARM" >&5
cannam@154 13212 $as_echo_n "checking if assembler supports EDSP instructions on ARM... " >&6; }
cannam@154 13213
cannam@154 13214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 13215 /* end confdefs.h. */
cannam@154 13216
cannam@154 13217 int
cannam@154 13218 main ()
cannam@154 13219 {
cannam@154 13220 __asm__(".arch armv5te\n.object_arch armv4t\nqadd r3,r3,r3")
cannam@154 13221 ;
cannam@154 13222 return 0;
cannam@154 13223 }
cannam@154 13224 _ACEOF
cannam@154 13225 if ac_fn_c_try_compile "$LINENO"; then :
cannam@154 13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 13227 $as_echo "yes" >&6; }
cannam@154 13228 OPUS_ARM_MAY_HAVE_EDSP=1
cannam@154 13229 else
cannam@154 13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 13231 $as_echo "no" >&6; }
cannam@154 13232
cannam@154 13233 fi
cannam@154 13234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@154 13235
cannam@154 13236
cannam@154 13237 fi
cannam@154 13238 if test x"$OPUS_ARM_MAY_HAVE_MEDIA" != x"1"; then :
cannam@154 13239
cannam@154 13240 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to force-enable ARMv6 media instructions..." >&5
cannam@154 13241 $as_echo "$as_me: Trying to force-enable ARMv6 media instructions..." >&6;}
cannam@154 13242
cannam@154 13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports ARMv6 media instructions on ARM" >&5
cannam@154 13244 $as_echo_n "checking if assembler supports ARMv6 media instructions on ARM... " >&6; }
cannam@154 13245
cannam@154 13246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 13247 /* end confdefs.h. */
cannam@154 13248
cannam@154 13249 int
cannam@154 13250 main ()
cannam@154 13251 {
cannam@154 13252 __asm__(".arch armv6\n.object_arch armv4t\nshadd8 r3,r3,r3")
cannam@154 13253 ;
cannam@154 13254 return 0;
cannam@154 13255 }
cannam@154 13256 _ACEOF
cannam@154 13257 if ac_fn_c_try_compile "$LINENO"; then :
cannam@154 13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 13259 $as_echo "yes" >&6; }
cannam@154 13260 OPUS_ARM_MAY_HAVE_MEDIA=1
cannam@154 13261 else
cannam@154 13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 13263 $as_echo "no" >&6; }
cannam@154 13264
cannam@154 13265 fi
cannam@154 13266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@154 13267
cannam@154 13268
cannam@154 13269 fi
cannam@154 13270 if test x"$OPUS_ARM_MAY_HAVE_NEON" != x"1"; then :
cannam@154 13271
cannam@154 13272 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to force-enable NEON instructions..." >&5
cannam@154 13273 $as_echo "$as_me: Trying to force-enable NEON instructions..." >&6;}
cannam@154 13274
cannam@154 13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports NEON instructions on ARM" >&5
cannam@154 13276 $as_echo_n "checking if assembler supports NEON instructions on ARM... " >&6; }
cannam@154 13277
cannam@154 13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 13279 /* end confdefs.h. */
cannam@154 13280
cannam@154 13281 int
cannam@154 13282 main ()
cannam@154 13283 {
cannam@154 13284 __asm__(".arch armv7-a\n.fpu neon\n.object_arch armv4t\nvorr d0,d0,d0")
cannam@154 13285 ;
cannam@154 13286 return 0;
cannam@154 13287 }
cannam@154 13288 _ACEOF
cannam@154 13289 if ac_fn_c_try_compile "$LINENO"; then :
cannam@154 13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 13291 $as_echo "yes" >&6; }
cannam@154 13292 OPUS_ARM_MAY_HAVE_NEON=1
cannam@154 13293 else
cannam@154 13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 13295 $as_echo "no" >&6; }
cannam@154 13296
cannam@154 13297 fi
cannam@154 13298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@154 13299
cannam@154 13300
cannam@154 13301 fi
cannam@154 13302
cannam@154 13303 fi
cannam@154 13304 rtcd_support=
cannam@154 13305 if test x"$OPUS_ARM_MAY_HAVE_EDSP" = x"1"; then :
cannam@154 13306
cannam@154 13307
cannam@154 13308 $as_echo "#define OPUS_ARM_MAY_HAVE_EDSP 1" >>confdefs.h
cannam@154 13309
cannam@154 13310 if test x"$OPUS_ARM_PRESUME_EDSP" = x"1"; then :
cannam@154 13311
cannam@154 13312
cannam@154 13313 $as_echo "#define OPUS_ARM_PRESUME_EDSP 1" >>confdefs.h
cannam@154 13314
cannam@154 13315 asm_optimization="$asm_optimization (EDSP)"
cannam@154 13316
cannam@154 13317 else
cannam@154 13318 rtcd_support="$rtcd_support (EDSP)"
cannam@154 13319
cannam@154 13320 fi
cannam@154 13321
cannam@154 13322 fi
cannam@154 13323
cannam@154 13324 if test x"$OPUS_ARM_MAY_HAVE_MEDIA" = x"1"; then :
cannam@154 13325
cannam@154 13326
cannam@154 13327 $as_echo "#define OPUS_ARM_MAY_HAVE_MEDIA 1" >>confdefs.h
cannam@154 13328
cannam@154 13329 if test x"$OPUS_ARM_PRESUME_MEDIA" = x"1"; then :
cannam@154 13330
cannam@154 13331
cannam@154 13332 $as_echo "#define OPUS_ARM_PRESUME_MEDIA 1" >>confdefs.h
cannam@154 13333
cannam@154 13334 asm_optimization="$asm_optimization (Media)"
cannam@154 13335
cannam@154 13336 else
cannam@154 13337 rtcd_support="$rtcd_support (Media)"
cannam@154 13338
cannam@154 13339 fi
cannam@154 13340
cannam@154 13341 fi
cannam@154 13342
cannam@154 13343 if test x"$OPUS_ARM_MAY_HAVE_NEON" = x"1"; then :
cannam@154 13344
cannam@154 13345
cannam@154 13346 $as_echo "#define OPUS_ARM_MAY_HAVE_NEON 1" >>confdefs.h
cannam@154 13347
cannam@154 13348 if test x"$OPUS_ARM_PRESUME_NEON" = x"1"; then :
cannam@154 13349
cannam@154 13350
cannam@154 13351 $as_echo "#define OPUS_ARM_PRESUME_NEON 1" >>confdefs.h
cannam@154 13352
cannam@154 13353 asm_optimization="$asm_optimization (NEON)"
cannam@154 13354
cannam@154 13355 else
cannam@154 13356 rtcd_support="$rtcd_support (NEON)"
cannam@154 13357
cannam@154 13358 fi
cannam@154 13359
cannam@154 13360 fi
cannam@154 13361
cannam@154 13362 if test x"$rtcd_support" != x""; then :
cannam@154 13363 rtcd_support=ARM"$rtcd_support"
cannam@154 13364 else
cannam@154 13365 rtcd_support="no"
cannam@154 13366
cannam@154 13367 fi
cannam@154 13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apple style tools" >&5
cannam@154 13369 $as_echo_n "checking for apple style tools... " >&6; }
cannam@154 13370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 13371 /* end confdefs.h. */
cannam@154 13372
cannam@154 13373 #ifndef __APPLE__
cannam@154 13374 #error 1
cannam@154 13375 #endif
cannam@154 13376 int
cannam@154 13377 main ()
cannam@154 13378 {
cannam@154 13379
cannam@154 13380 ;
cannam@154 13381 return 0;
cannam@154 13382 }
cannam@154 13383 _ACEOF
cannam@154 13384 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@154 13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 13386 $as_echo "yes" >&6; }; ARM2GNU_PARAMS="--apple"
cannam@154 13387 else
cannam@154 13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 13389 $as_echo "no" >&6; }; ARM2GNU_PARAMS=""
cannam@154 13390 fi
cannam@154 13391 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@154 13392
cannam@154 13393
cannam@154 13394 else
cannam@154 13395
cannam@154 13396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** ARM assembly requires perl -- disabling optimizations" >&5
cannam@154 13397 $as_echo "$as_me: WARNING: *** ARM assembly requires perl -- disabling optimizations" >&2;}
cannam@154 13398 asm_optimization="(missing perl dependency for ARM)"
cannam@154 13399
cannam@154 13400 fi
cannam@154 13401
cannam@154 13402 fi
cannam@154 13403 ;;
cannam@154 13404 esac
cannam@154 13405
cannam@154 13406 else
cannam@154 13407
cannam@154 13408 inline_optimization="disabled"
cannam@154 13409 asm_optimization="disabled"
cannam@154 13410
cannam@154 13411 fi
cannam@154 13412
cannam@154 13413 if test x"${inline_optimization%% *}" = x"ARM"; then
cannam@154 13414 OPUS_ARM_INLINE_ASM_TRUE=
cannam@154 13415 OPUS_ARM_INLINE_ASM_FALSE='#'
cannam@154 13416 else
cannam@154 13417 OPUS_ARM_INLINE_ASM_TRUE='#'
cannam@154 13418 OPUS_ARM_INLINE_ASM_FALSE=
cannam@154 13419 fi
cannam@154 13420
cannam@154 13421 if test x"${asm_optimization%% *}" = x"ARM"; then
cannam@154 13422 OPUS_ARM_EXTERNAL_ASM_TRUE=
cannam@154 13423 OPUS_ARM_EXTERNAL_ASM_FALSE='#'
cannam@154 13424 else
cannam@154 13425 OPUS_ARM_EXTERNAL_ASM_TRUE='#'
cannam@154 13426 OPUS_ARM_EXTERNAL_ASM_FALSE=
cannam@154 13427 fi
cannam@154 13428
cannam@154 13429
cannam@154 13430 if false; then
cannam@154 13431 HAVE_SSE_TRUE=
cannam@154 13432 HAVE_SSE_FALSE='#'
cannam@154 13433 else
cannam@154 13434 HAVE_SSE_TRUE='#'
cannam@154 13435 HAVE_SSE_FALSE=
cannam@154 13436 fi
cannam@154 13437
cannam@154 13438 if false; then
cannam@154 13439 HAVE_SSE2_TRUE=
cannam@154 13440 HAVE_SSE2_FALSE='#'
cannam@154 13441 else
cannam@154 13442 HAVE_SSE2_TRUE='#'
cannam@154 13443 HAVE_SSE2_FALSE=
cannam@154 13444 fi
cannam@154 13445
cannam@154 13446 if false; then
cannam@154 13447 HAVE_SSE4_1_TRUE=
cannam@154 13448 HAVE_SSE4_1_FALSE='#'
cannam@154 13449 else
cannam@154 13450 HAVE_SSE4_1_TRUE='#'
cannam@154 13451 HAVE_SSE4_1_FALSE=
cannam@154 13452 fi
cannam@154 13453
cannam@154 13454 if false; then
cannam@154 13455 HAVE_AVX_TRUE=
cannam@154 13456 HAVE_AVX_FALSE='#'
cannam@154 13457 else
cannam@154 13458 HAVE_AVX_TRUE='#'
cannam@154 13459 HAVE_AVX_FALSE=
cannam@154 13460 fi
cannam@154 13461
cannam@154 13462
cannam@154 13463
cannam@154 13464
cannam@154 13465
cannam@154 13466
cannam@154 13467
cannam@154 13468 # With GCC on ARM32 softfp architectures (e.g. Android, or older Ubuntu) you need to specify
cannam@154 13469 # -mfloat-abi=softfp for -mfpu=neon to work. However, on ARM32 hardfp architectures (e.g. newer Ubuntu),
cannam@154 13470 # this option will break things.
cannam@154 13471
cannam@154 13472 # As a heuristic, if host matches arm*eabi* but not arm*hf*, it's probably soft-float.
cannam@154 13473
cannam@154 13474
cannam@154 13475 case $host in #(
cannam@154 13476 arm*hf*) :
cannam@154 13477 RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS="-mfpu=neon" ;; #(
cannam@154 13478 arm*eabi*) :
cannam@154 13479 RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS="-mfpu=neon -mfloat-abi=softfp" ;; #(
cannam@154 13480 *) :
cannam@154 13481 RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS="-mfpu=neon" ;;
cannam@154 13482 esac
cannam@154 13483
cannam@154 13484
cannam@154 13485
cannam@154 13486
cannam@154 13487
cannam@154 13488
cannam@154 13489
cannam@154 13490 if ${X86_SSE_CFLAGS+:} false; then :
cannam@154 13491
cannam@154 13492 else
cannam@154 13493 X86_SSE_CFLAGS="-msse"
cannam@154 13494 fi
cannam@154 13495 if ${X86_SSE2_CFLAGS+:} false; then :
cannam@154 13496
cannam@154 13497 else
cannam@154 13498 X86_SSE2_CFLAGS="-msse2"
cannam@154 13499 fi
cannam@154 13500 if ${X86_SSE4_1_CFLAGS+:} false; then :
cannam@154 13501
cannam@154 13502 else
cannam@154 13503 X86_SSE4_1_CFLAGS="-msse4.1"
cannam@154 13504 fi
cannam@154 13505 if ${X86_AVX_CFLAGS+:} false; then :
cannam@154 13506
cannam@154 13507 else
cannam@154 13508 X86_AVX_CFLAGS="-mavx"
cannam@154 13509 fi
cannam@154 13510 if ${ARM_NEON_INTR_CFLAGS+:} false; then :
cannam@154 13511
cannam@154 13512 else
cannam@154 13513 ARM_NEON_INTR_CFLAGS="$RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS"
cannam@154 13514 fi
cannam@154 13515
cannam@154 13516
cannam@154 13517
cannam@154 13518 if test x"$enable_intrinsics" = x"yes"; then :
cannam@154 13519
cannam@154 13520 intrinsics_support=""
cannam@154 13521 case $host_cpu in #(
cannam@154 13522 arm*|aarch64*) :
cannam@154 13523
cannam@154 13524 cpu_arm=yes
cannam@154 13525
cannam@154 13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports ARM Neon intrinsics" >&5
cannam@154 13527 $as_echo_n "checking if compiler supports ARM Neon intrinsics... " >&6; }
cannam@154 13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 13529 /* end confdefs.h. */
cannam@154 13530 #include <arm_neon.h>
cannam@154 13531
cannam@154 13532 int
cannam@154 13533 main ()
cannam@154 13534 {
cannam@154 13535
cannam@154 13536 static float32x4_t A0, A1, SUMM;
cannam@154 13537 SUMM = vmlaq_f32(SUMM, A0, A1);
cannam@154 13538 return (int)vgetq_lane_f32(SUMM, 0);
cannam@154 13539
cannam@154 13540
cannam@154 13541 ;
cannam@154 13542 return 0;
cannam@154 13543 }
cannam@154 13544 _ACEOF
cannam@154 13545 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 13546
cannam@154 13547 OPUS_ARM_MAY_HAVE_NEON_INTR=1
cannam@154 13548 OPUS_ARM_PRESUME_NEON_INTR=1
cannam@154 13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 13550 $as_echo "yes" >&6; }
cannam@154 13551
cannam@154 13552 else
cannam@154 13553
cannam@154 13554 OPUS_ARM_PRESUME_NEON_INTR=0
cannam@154 13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 13556 $as_echo "no" >&6; }
cannam@154 13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports ARM Neon intrinsics with $ARM_NEON_INTR_CFLAGS" >&5
cannam@154 13558 $as_echo_n "checking if compiler supports ARM Neon intrinsics with $ARM_NEON_INTR_CFLAGS... " >&6; }
cannam@154 13559 save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $ARM_NEON_INTR_CFLAGS"
cannam@154 13560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 13561 /* end confdefs.h. */
cannam@154 13562 #include <arm_neon.h>
cannam@154 13563
cannam@154 13564 int
cannam@154 13565 main ()
cannam@154 13566 {
cannam@154 13567
cannam@154 13568 static float32x4_t A0, A1, SUMM;
cannam@154 13569 SUMM = vmlaq_f32(SUMM, A0, A1);
cannam@154 13570 return (int)vgetq_lane_f32(SUMM, 0);
cannam@154 13571
cannam@154 13572
cannam@154 13573 ;
cannam@154 13574 return 0;
cannam@154 13575 }
cannam@154 13576 _ACEOF
cannam@154 13577 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 13578
cannam@154 13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 13580 $as_echo "yes" >&6; }
cannam@154 13581 OPUS_ARM_MAY_HAVE_NEON_INTR=1
cannam@154 13582
cannam@154 13583 else
cannam@154 13584
cannam@154 13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 13586 $as_echo "no" >&6; }
cannam@154 13587 OPUS_ARM_MAY_HAVE_NEON_INTR=0
cannam@154 13588
cannam@154 13589 fi
cannam@154 13590 rm -f core conftest.err conftest.$ac_objext \
cannam@154 13591 conftest$ac_exeext conftest.$ac_ext
cannam@154 13592 CFLAGS="$save_CFLAGS"
cannam@154 13593
cannam@154 13594 fi
cannam@154 13595 rm -f core conftest.err conftest.$ac_objext \
cannam@154 13596 conftest$ac_exeext conftest.$ac_ext
cannam@154 13597
cannam@154 13598 if test x"$OPUS_ARM_MAY_HAVE_NEON_INTR" = x"1" && test x"$OPUS_ARM_PRESUME_NEON_INTR" != x"1"; then :
cannam@154 13599
cannam@154 13600 OPUS_ARM_NEON_INTR_CFLAGS="$ARM_NEON_INTR_CFLAGS"
cannam@154 13601
cannam@154 13602
cannam@154 13603
cannam@154 13604 fi
cannam@154 13605
cannam@154 13606 if test x"$OPUS_ARM_MAY_HAVE_NEON_INTR" = x"1"; then :
cannam@154 13607
cannam@154 13608
cannam@154 13609 $as_echo "#define OPUS_ARM_MAY_HAVE_NEON_INTR 1" >>confdefs.h
cannam@154 13610
cannam@154 13611 intrinsics_support="$intrinsics_support (NEON)"
cannam@154 13612
cannam@154 13613 if test x"$enable_rtcd" != x"no" && test x"$OPUS_ARM_PRESUME_NEON_INTR" != x"1"; then :
cannam@154 13614 if test x"$rtcd_support" = x"no"; then :
cannam@154 13615 rtcd_support="ARM (NEON Intrinsics)"
cannam@154 13616 else
cannam@154 13617 rtcd_support="$rtcd_support (NEON Intrinsics)"
cannam@154 13618 fi
cannam@154 13619 fi
cannam@154 13620
cannam@154 13621 if test x"$OPUS_ARM_PRESUME_NEON_INTR" = x"1"; then :
cannam@154 13622
cannam@154 13623 $as_echo "#define OPUS_ARM_PRESUME_NEON_INTR 1" >>confdefs.h
cannam@154 13624
cannam@154 13625 fi
cannam@154 13626
cannam@154 13627
cannam@154 13628
cannam@154 13629 # Check whether --with-NE10 was given.
cannam@154 13630 if test "${with_NE10+set}" = set; then :
cannam@154 13631 withval=$with_NE10; NE10_prefix="$withval"
cannam@154 13632 else
cannam@154 13633 NE10_prefix=""
cannam@154 13634 fi
cannam@154 13635
cannam@154 13636
cannam@154 13637 # Check whether --with-NE10-libraries was given.
cannam@154 13638 if test "${with_NE10_libraries+set}" = set; then :
cannam@154 13639 withval=$with_NE10_libraries; NE10_libraries="$withval"
cannam@154 13640 else
cannam@154 13641 NE10_libraries=""
cannam@154 13642 fi
cannam@154 13643
cannam@154 13644
cannam@154 13645 # Check whether --with-NE10-includes was given.
cannam@154 13646 if test "${with_NE10_includes+set}" = set; then :
cannam@154 13647 withval=$with_NE10_includes; NE10_includes="$withval"
cannam@154 13648 else
cannam@154 13649 NE10_includes=""
cannam@154 13650 fi
cannam@154 13651
cannam@154 13652
cannam@154 13653 if test "x$NE10_libraries" != "x" ; then
cannam@154 13654 NE10_LIBS="-L$NE10_libraries"
cannam@154 13655 elif test "x$NE10_prefix" = "xno" || test "x$NE10_prefix" = "xyes" ; then
cannam@154 13656 NE10_LIBS=""
cannam@154 13657 elif test "x$NE10_prefix" != "x" ; then
cannam@154 13658 NE10_LIBS="-L$NE10_prefix/lib"
cannam@154 13659 elif test "x$prefix" != "xNONE" ; then
cannam@154 13660 NE10_LIBS="-L$prefix/lib"
cannam@154 13661 fi
cannam@154 13662
cannam@154 13663 if test "x$NE10_prefix" != "xno" ; then
cannam@154 13664 NE10_LIBS="$NE10_LIBS -lNE10"
cannam@154 13665 fi
cannam@154 13666
cannam@154 13667 if test "x$NE10_includes" != "x" ; then
cannam@154 13668 NE10_CFLAGS="-I$NE10_includes"
cannam@154 13669 elif test "x$NE10_prefix" = "xno" || test "x$NE10_prefix" = "xyes" ; then
cannam@154 13670 NE10_CFLAGS=""
cannam@154 13671 elif test "x$NE10_prefix" != "x" ; then
cannam@154 13672 NE10_CFLAGS="-I$NE10_prefix/include"
cannam@154 13673 elif test "x$prefix" != "xNONE"; then
cannam@154 13674 NE10_CFLAGS="-I$prefix/include"
cannam@154 13675 fi
cannam@154 13676
cannam@154 13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NE10" >&5
cannam@154 13678 $as_echo_n "checking for NE10... " >&6; }
cannam@154 13679 save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $NE10_CFLAGS"
cannam@154 13680 save_LIBS="$LIBS"; LIBS="$LIBS $NE10_LIBS $LIBM"
cannam@154 13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 13682 /* end confdefs.h. */
cannam@154 13683
cannam@154 13684 #include <NE10_dsp.h>
cannam@154 13685
cannam@154 13686 int
cannam@154 13687 main ()
cannam@154 13688 {
cannam@154 13689
cannam@154 13690 ne10_fft_cfg_float32_t cfg;
cannam@154 13691 cfg = ne10_fft_alloc_c2c_float32_neon(480);
cannam@154 13692
cannam@154 13693
cannam@154 13694 ;
cannam@154 13695 return 0;
cannam@154 13696 }
cannam@154 13697
cannam@154 13698 _ACEOF
cannam@154 13699 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 13700
cannam@154 13701 HAVE_ARM_NE10=1
cannam@154 13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 13703 $as_echo "yes" >&6; }
cannam@154 13704
cannam@154 13705 else
cannam@154 13706
cannam@154 13707 HAVE_ARM_NE10=0
cannam@154 13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 13709 $as_echo "no" >&6; }
cannam@154 13710 NE10_CFLAGS=""
cannam@154 13711 NE10_LIBS=""
cannam@154 13712
cannam@154 13713
cannam@154 13714 fi
cannam@154 13715 rm -f core conftest.err conftest.$ac_objext \
cannam@154 13716 conftest$ac_exeext conftest.$ac_ext
cannam@154 13717 CFLAGS="$save_CFLAGS"; LIBS="$save_LIBS"
cannam@154 13718 #Now we know if libNE10 is installed or not
cannam@154 13719 if test x"$HAVE_ARM_NE10" = x"1"; then :
cannam@154 13720
cannam@154 13721
cannam@154 13722 $as_echo "#define HAVE_ARM_NE10 1" >>confdefs.h
cannam@154 13723
cannam@154 13724
cannam@154 13725
cannam@154 13726
cannam@154 13727
cannam@154 13728
cannam@154 13729 fi
cannam@154 13730
cannam@154 13731
cannam@154 13732 if test x"$NE10_LIBS" != x""; then :
cannam@154 13733
cannam@154 13734 intrinsics_support="$intrinsics_support (NE10)"
cannam@154 13735 if test x"enable_rtcd" != x"" \
cannam@154 13736 && test x"$OPUS_ARM_PRESUME_NEON_INTR" != x"1"; then :
cannam@154 13737 rtcd_support="$rtcd_support (NE10)"
cannam@154 13738 fi
cannam@154 13739
cannam@154 13740 fi
cannam@154 13741
cannam@154 13742
cannam@154 13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports Aarch64 Neon intrinsics" >&5
cannam@154 13744 $as_echo_n "checking if compiler supports Aarch64 Neon intrinsics... " >&6; }
cannam@154 13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 13746 /* end confdefs.h. */
cannam@154 13747 #include <arm_neon.h>
cannam@154 13748
cannam@154 13749 int
cannam@154 13750 main ()
cannam@154 13751 {
cannam@154 13752
cannam@154 13753 static int32_t IN;
cannam@154 13754 static int16_t OUT;
cannam@154 13755 OUT = vqmovns_s32(IN);
cannam@154 13756
cannam@154 13757
cannam@154 13758 ;
cannam@154 13759 return 0;
cannam@154 13760 }
cannam@154 13761 _ACEOF
cannam@154 13762 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 13763
cannam@154 13764 OPUS_ARM_MAY_HAVE_AARCH64_NEON_INTR=1
cannam@154 13765 OPUS_ARM_PRESUME_AARCH64_NEON_INTR=1
cannam@154 13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 13767 $as_echo "yes" >&6; }
cannam@154 13768
cannam@154 13769 else
cannam@154 13770
cannam@154 13771 OPUS_ARM_PRESUME_AARCH64_NEON_INTR=0
cannam@154 13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 13773 $as_echo "no" >&6; }
cannam@154 13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports Aarch64 Neon intrinsics with $ARM_NEON_INTR_CFLAGS" >&5
cannam@154 13775 $as_echo_n "checking if compiler supports Aarch64 Neon intrinsics with $ARM_NEON_INTR_CFLAGS... " >&6; }
cannam@154 13776 save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $ARM_NEON_INTR_CFLAGS"
cannam@154 13777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 13778 /* end confdefs.h. */
cannam@154 13779 #include <arm_neon.h>
cannam@154 13780
cannam@154 13781 int
cannam@154 13782 main ()
cannam@154 13783 {
cannam@154 13784
cannam@154 13785 static int32_t IN;
cannam@154 13786 static int16_t OUT;
cannam@154 13787 OUT = vqmovns_s32(IN);
cannam@154 13788
cannam@154 13789
cannam@154 13790 ;
cannam@154 13791 return 0;
cannam@154 13792 }
cannam@154 13793 _ACEOF
cannam@154 13794 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 13795
cannam@154 13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 13797 $as_echo "yes" >&6; }
cannam@154 13798 OPUS_ARM_MAY_HAVE_AARCH64_NEON_INTR=1
cannam@154 13799
cannam@154 13800 else
cannam@154 13801
cannam@154 13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 13803 $as_echo "no" >&6; }
cannam@154 13804 OPUS_ARM_MAY_HAVE_AARCH64_NEON_INTR=0
cannam@154 13805
cannam@154 13806 fi
cannam@154 13807 rm -f core conftest.err conftest.$ac_objext \
cannam@154 13808 conftest$ac_exeext conftest.$ac_ext
cannam@154 13809 CFLAGS="$save_CFLAGS"
cannam@154 13810
cannam@154 13811 fi
cannam@154 13812 rm -f core conftest.err conftest.$ac_objext \
cannam@154 13813 conftest$ac_exeext conftest.$ac_ext
cannam@154 13814
cannam@154 13815
cannam@154 13816 if test x"$OPUS_ARM_PRESUME_AARCH64_NEON_INTR" = x"1"; then :
cannam@154 13817
cannam@154 13818
cannam@154 13819 $as_echo "#define OPUS_ARM_PRESUME_AARCH64_NEON_INTR 1" >>confdefs.h
cannam@154 13820
cannam@154 13821 intrinsics_support="$intrinsics_support (NEON Aarch64)"
cannam@154 13822
cannam@154 13823 fi
cannam@154 13824
cannam@154 13825 if test x"$intrinsics_support" = x""; then :
cannam@154 13826 intrinsics_support=no
cannam@154 13827 else
cannam@154 13828 intrinsics_support="ARM$intrinsics_support"
cannam@154 13829 fi
cannam@154 13830
cannam@154 13831 else
cannam@154 13832
cannam@154 13833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support ARM intrinsics" >&5
cannam@154 13834 $as_echo "$as_me: WARNING: Compiler does not support ARM intrinsics" >&2;}
cannam@154 13835 intrinsics_support=no
cannam@154 13836
cannam@154 13837 fi
cannam@154 13838 ;; #(
cannam@154 13839 i?86|x86_64) :
cannam@154 13840
cannam@154 13841
cannam@154 13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE intrinsics" >&5
cannam@154 13843 $as_echo_n "checking if compiler supports SSE intrinsics... " >&6; }
cannam@154 13844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 13845 /* end confdefs.h. */
cannam@154 13846 #include <xmmintrin.h>
cannam@154 13847 #include <time.h>
cannam@154 13848
cannam@154 13849 int
cannam@154 13850 main ()
cannam@154 13851 {
cannam@154 13852
cannam@154 13853 __m128 mtest;
cannam@154 13854 mtest = _mm_set1_ps((float)time(NULL));
cannam@154 13855 mtest = _mm_mul_ps(mtest, mtest);
cannam@154 13856 return _mm_cvtss_si32(mtest);
cannam@154 13857
cannam@154 13858
cannam@154 13859 ;
cannam@154 13860 return 0;
cannam@154 13861 }
cannam@154 13862 _ACEOF
cannam@154 13863 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 13864
cannam@154 13865 OPUS_X86_MAY_HAVE_SSE=1
cannam@154 13866 OPUS_X86_PRESUME_SSE=1
cannam@154 13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 13868 $as_echo "yes" >&6; }
cannam@154 13869
cannam@154 13870 else
cannam@154 13871
cannam@154 13872 OPUS_X86_PRESUME_SSE=0
cannam@154 13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 13874 $as_echo "no" >&6; }
cannam@154 13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE intrinsics with $X86_SSE_CFLAGS" >&5
cannam@154 13876 $as_echo_n "checking if compiler supports SSE intrinsics with $X86_SSE_CFLAGS... " >&6; }
cannam@154 13877 save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $X86_SSE_CFLAGS"
cannam@154 13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 13879 /* end confdefs.h. */
cannam@154 13880 #include <xmmintrin.h>
cannam@154 13881 #include <time.h>
cannam@154 13882
cannam@154 13883 int
cannam@154 13884 main ()
cannam@154 13885 {
cannam@154 13886
cannam@154 13887 __m128 mtest;
cannam@154 13888 mtest = _mm_set1_ps((float)time(NULL));
cannam@154 13889 mtest = _mm_mul_ps(mtest, mtest);
cannam@154 13890 return _mm_cvtss_si32(mtest);
cannam@154 13891
cannam@154 13892
cannam@154 13893 ;
cannam@154 13894 return 0;
cannam@154 13895 }
cannam@154 13896 _ACEOF
cannam@154 13897 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 13898
cannam@154 13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 13900 $as_echo "yes" >&6; }
cannam@154 13901 OPUS_X86_MAY_HAVE_SSE=1
cannam@154 13902
cannam@154 13903 else
cannam@154 13904
cannam@154 13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 13906 $as_echo "no" >&6; }
cannam@154 13907 OPUS_X86_MAY_HAVE_SSE=0
cannam@154 13908
cannam@154 13909 fi
cannam@154 13910 rm -f core conftest.err conftest.$ac_objext \
cannam@154 13911 conftest$ac_exeext conftest.$ac_ext
cannam@154 13912 CFLAGS="$save_CFLAGS"
cannam@154 13913
cannam@154 13914 fi
cannam@154 13915 rm -f core conftest.err conftest.$ac_objext \
cannam@154 13916 conftest$ac_exeext conftest.$ac_ext
cannam@154 13917
cannam@154 13918 if test x"$OPUS_X86_MAY_HAVE_SSE" = x"1" && test x"$OPUS_X86_PRESUME_SSE" != x"1"; then :
cannam@154 13919
cannam@154 13920 OPUS_X86_SSE_CFLAGS="$X86_SSE_CFLAGS"
cannam@154 13921
cannam@154 13922
cannam@154 13923
cannam@154 13924 fi
cannam@154 13925
cannam@154 13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE2 intrinsics" >&5
cannam@154 13927 $as_echo_n "checking if compiler supports SSE2 intrinsics... " >&6; }
cannam@154 13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 13929 /* end confdefs.h. */
cannam@154 13930 #include <emmintrin.h>
cannam@154 13931 #include <time.h>
cannam@154 13932
cannam@154 13933 int
cannam@154 13934 main ()
cannam@154 13935 {
cannam@154 13936
cannam@154 13937 __m128i mtest;
cannam@154 13938 mtest = _mm_set1_epi32((int)time(NULL));
cannam@154 13939 mtest = _mm_mul_epu32(mtest, mtest);
cannam@154 13940 return _mm_cvtsi128_si32(mtest);
cannam@154 13941
cannam@154 13942
cannam@154 13943 ;
cannam@154 13944 return 0;
cannam@154 13945 }
cannam@154 13946 _ACEOF
cannam@154 13947 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 13948
cannam@154 13949 OPUS_X86_MAY_HAVE_SSE2=1
cannam@154 13950 OPUS_X86_PRESUME_SSE2=1
cannam@154 13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 13952 $as_echo "yes" >&6; }
cannam@154 13953
cannam@154 13954 else
cannam@154 13955
cannam@154 13956 OPUS_X86_PRESUME_SSE2=0
cannam@154 13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 13958 $as_echo "no" >&6; }
cannam@154 13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE2 intrinsics with $X86_SSE2_CFLAGS" >&5
cannam@154 13960 $as_echo_n "checking if compiler supports SSE2 intrinsics with $X86_SSE2_CFLAGS... " >&6; }
cannam@154 13961 save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $X86_SSE2_CFLAGS"
cannam@154 13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 13963 /* end confdefs.h. */
cannam@154 13964 #include <emmintrin.h>
cannam@154 13965 #include <time.h>
cannam@154 13966
cannam@154 13967 int
cannam@154 13968 main ()
cannam@154 13969 {
cannam@154 13970
cannam@154 13971 __m128i mtest;
cannam@154 13972 mtest = _mm_set1_epi32((int)time(NULL));
cannam@154 13973 mtest = _mm_mul_epu32(mtest, mtest);
cannam@154 13974 return _mm_cvtsi128_si32(mtest);
cannam@154 13975
cannam@154 13976
cannam@154 13977 ;
cannam@154 13978 return 0;
cannam@154 13979 }
cannam@154 13980 _ACEOF
cannam@154 13981 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 13982
cannam@154 13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 13984 $as_echo "yes" >&6; }
cannam@154 13985 OPUS_X86_MAY_HAVE_SSE2=1
cannam@154 13986
cannam@154 13987 else
cannam@154 13988
cannam@154 13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 13990 $as_echo "no" >&6; }
cannam@154 13991 OPUS_X86_MAY_HAVE_SSE2=0
cannam@154 13992
cannam@154 13993 fi
cannam@154 13994 rm -f core conftest.err conftest.$ac_objext \
cannam@154 13995 conftest$ac_exeext conftest.$ac_ext
cannam@154 13996 CFLAGS="$save_CFLAGS"
cannam@154 13997
cannam@154 13998 fi
cannam@154 13999 rm -f core conftest.err conftest.$ac_objext \
cannam@154 14000 conftest$ac_exeext conftest.$ac_ext
cannam@154 14001
cannam@154 14002 if test x"$OPUS_X86_MAY_HAVE_SSE2" = x"1" && test x"$OPUS_X86_PRESUME_SSE2" != x"1"; then :
cannam@154 14003
cannam@154 14004 OPUS_X86_SSE2_CFLAGS="$X86_SSE2_CFLAGS"
cannam@154 14005
cannam@154 14006
cannam@154 14007
cannam@154 14008 fi
cannam@154 14009
cannam@154 14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE4.1 intrinsics" >&5
cannam@154 14011 $as_echo_n "checking if compiler supports SSE4.1 intrinsics... " >&6; }
cannam@154 14012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 14013 /* end confdefs.h. */
cannam@154 14014 #include <smmintrin.h>
cannam@154 14015 #include <time.h>
cannam@154 14016
cannam@154 14017 int
cannam@154 14018 main ()
cannam@154 14019 {
cannam@154 14020
cannam@154 14021 __m128i mtest;
cannam@154 14022 mtest = _mm_set1_epi32((int)time(NULL));
cannam@154 14023 mtest = _mm_mul_epi32(mtest, mtest);
cannam@154 14024 return _mm_cvtsi128_si32(mtest);
cannam@154 14025
cannam@154 14026
cannam@154 14027 ;
cannam@154 14028 return 0;
cannam@154 14029 }
cannam@154 14030 _ACEOF
cannam@154 14031 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 14032
cannam@154 14033 OPUS_X86_MAY_HAVE_SSE4_1=1
cannam@154 14034 OPUS_X86_PRESUME_SSE4_1=1
cannam@154 14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 14036 $as_echo "yes" >&6; }
cannam@154 14037
cannam@154 14038 else
cannam@154 14039
cannam@154 14040 OPUS_X86_PRESUME_SSE4_1=0
cannam@154 14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 14042 $as_echo "no" >&6; }
cannam@154 14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE4.1 intrinsics with $X86_SSE4_1_CFLAGS" >&5
cannam@154 14044 $as_echo_n "checking if compiler supports SSE4.1 intrinsics with $X86_SSE4_1_CFLAGS... " >&6; }
cannam@154 14045 save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $X86_SSE4_1_CFLAGS"
cannam@154 14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 14047 /* end confdefs.h. */
cannam@154 14048 #include <smmintrin.h>
cannam@154 14049 #include <time.h>
cannam@154 14050
cannam@154 14051 int
cannam@154 14052 main ()
cannam@154 14053 {
cannam@154 14054
cannam@154 14055 __m128i mtest;
cannam@154 14056 mtest = _mm_set1_epi32((int)time(NULL));
cannam@154 14057 mtest = _mm_mul_epi32(mtest, mtest);
cannam@154 14058 return _mm_cvtsi128_si32(mtest);
cannam@154 14059
cannam@154 14060
cannam@154 14061 ;
cannam@154 14062 return 0;
cannam@154 14063 }
cannam@154 14064 _ACEOF
cannam@154 14065 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 14066
cannam@154 14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 14068 $as_echo "yes" >&6; }
cannam@154 14069 OPUS_X86_MAY_HAVE_SSE4_1=1
cannam@154 14070
cannam@154 14071 else
cannam@154 14072
cannam@154 14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 14074 $as_echo "no" >&6; }
cannam@154 14075 OPUS_X86_MAY_HAVE_SSE4_1=0
cannam@154 14076
cannam@154 14077 fi
cannam@154 14078 rm -f core conftest.err conftest.$ac_objext \
cannam@154 14079 conftest$ac_exeext conftest.$ac_ext
cannam@154 14080 CFLAGS="$save_CFLAGS"
cannam@154 14081
cannam@154 14082 fi
cannam@154 14083 rm -f core conftest.err conftest.$ac_objext \
cannam@154 14084 conftest$ac_exeext conftest.$ac_ext
cannam@154 14085
cannam@154 14086 if test x"$OPUS_X86_MAY_HAVE_SSE4_1" = x"1" && test x"$OPUS_X86_PRESUME_SSE4_1" != x"1"; then :
cannam@154 14087
cannam@154 14088 OPUS_X86_SSE4_1_CFLAGS="$X86_SSE4_1_CFLAGS"
cannam@154 14089
cannam@154 14090
cannam@154 14091
cannam@154 14092 fi
cannam@154 14093
cannam@154 14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports AVX intrinsics" >&5
cannam@154 14095 $as_echo_n "checking if compiler supports AVX intrinsics... " >&6; }
cannam@154 14096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 14097 /* end confdefs.h. */
cannam@154 14098 #include <immintrin.h>
cannam@154 14099 #include <time.h>
cannam@154 14100
cannam@154 14101 int
cannam@154 14102 main ()
cannam@154 14103 {
cannam@154 14104
cannam@154 14105 __m256 mtest;
cannam@154 14106 mtest = _mm256_set1_ps((float)time(NULL));
cannam@154 14107 mtest = _mm256_addsub_ps(mtest, mtest);
cannam@154 14108 return _mm_cvtss_si32(_mm256_extractf128_ps(mtest, 0));
cannam@154 14109
cannam@154 14110
cannam@154 14111 ;
cannam@154 14112 return 0;
cannam@154 14113 }
cannam@154 14114 _ACEOF
cannam@154 14115 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 14116
cannam@154 14117 OPUS_X86_MAY_HAVE_AVX=1
cannam@154 14118 OPUS_X86_PRESUME_AVX=1
cannam@154 14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 14120 $as_echo "yes" >&6; }
cannam@154 14121
cannam@154 14122 else
cannam@154 14123
cannam@154 14124 OPUS_X86_PRESUME_AVX=0
cannam@154 14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 14126 $as_echo "no" >&6; }
cannam@154 14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports AVX intrinsics with $X86_AVX_CFLAGS" >&5
cannam@154 14128 $as_echo_n "checking if compiler supports AVX intrinsics with $X86_AVX_CFLAGS... " >&6; }
cannam@154 14129 save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $X86_AVX_CFLAGS"
cannam@154 14130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 14131 /* end confdefs.h. */
cannam@154 14132 #include <immintrin.h>
cannam@154 14133 #include <time.h>
cannam@154 14134
cannam@154 14135 int
cannam@154 14136 main ()
cannam@154 14137 {
cannam@154 14138
cannam@154 14139 __m256 mtest;
cannam@154 14140 mtest = _mm256_set1_ps((float)time(NULL));
cannam@154 14141 mtest = _mm256_addsub_ps(mtest, mtest);
cannam@154 14142 return _mm_cvtss_si32(_mm256_extractf128_ps(mtest, 0));
cannam@154 14143
cannam@154 14144
cannam@154 14145 ;
cannam@154 14146 return 0;
cannam@154 14147 }
cannam@154 14148 _ACEOF
cannam@154 14149 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 14150
cannam@154 14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 14152 $as_echo "yes" >&6; }
cannam@154 14153 OPUS_X86_MAY_HAVE_AVX=1
cannam@154 14154
cannam@154 14155 else
cannam@154 14156
cannam@154 14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 14158 $as_echo "no" >&6; }
cannam@154 14159 OPUS_X86_MAY_HAVE_AVX=0
cannam@154 14160
cannam@154 14161 fi
cannam@154 14162 rm -f core conftest.err conftest.$ac_objext \
cannam@154 14163 conftest$ac_exeext conftest.$ac_ext
cannam@154 14164 CFLAGS="$save_CFLAGS"
cannam@154 14165
cannam@154 14166 fi
cannam@154 14167 rm -f core conftest.err conftest.$ac_objext \
cannam@154 14168 conftest$ac_exeext conftest.$ac_ext
cannam@154 14169
cannam@154 14170 if test x"$OPUS_X86_MAY_HAVE_AVX" = x"1" && test x"$OPUS_X86_PRESUME_AVX" != x"1"; then :
cannam@154 14171
cannam@154 14172 OPUS_X86_AVX_CFLAGS="$X86_AVX_CFLAGS"
cannam@154 14173
cannam@154 14174
cannam@154 14175
cannam@154 14176 fi
cannam@154 14177 if test x"$rtcd_support" = x"no"; then :
cannam@154 14178 rtcd_support=""
cannam@154 14179 fi
cannam@154 14180 if test x"$OPUS_X86_MAY_HAVE_SSE" = x"1"; then :
cannam@154 14181
cannam@154 14182
cannam@154 14183 $as_echo "#define OPUS_X86_MAY_HAVE_SSE 1" >>confdefs.h
cannam@154 14184
cannam@154 14185 intrinsics_support="$intrinsics_support SSE"
cannam@154 14186
cannam@154 14187 if test x"$OPUS_X86_PRESUME_SSE" = x"1"; then :
cannam@154 14188
cannam@154 14189 $as_echo "#define OPUS_X86_PRESUME_SSE 1" >>confdefs.h
cannam@154 14190
cannam@154 14191 else
cannam@154 14192 rtcd_support="$rtcd_support SSE"
cannam@154 14193 fi
cannam@154 14194
cannam@154 14195 else
cannam@154 14196
cannam@154 14197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support SSE intrinsics" >&5
cannam@154 14198 $as_echo "$as_me: WARNING: Compiler does not support SSE intrinsics" >&2;}
cannam@154 14199
cannam@154 14200 fi
cannam@154 14201
cannam@154 14202 if test x"$OPUS_X86_MAY_HAVE_SSE2" = x"1"; then :
cannam@154 14203
cannam@154 14204
cannam@154 14205 $as_echo "#define OPUS_X86_MAY_HAVE_SSE2 1" >>confdefs.h
cannam@154 14206
cannam@154 14207 intrinsics_support="$intrinsics_support SSE2"
cannam@154 14208
cannam@154 14209 if test x"$OPUS_X86_PRESUME_SSE2" = x"1"; then :
cannam@154 14210
cannam@154 14211 $as_echo "#define OPUS_X86_PRESUME_SSE2 1" >>confdefs.h
cannam@154 14212
cannam@154 14213 else
cannam@154 14214 rtcd_support="$rtcd_support SSE2"
cannam@154 14215 fi
cannam@154 14216
cannam@154 14217 else
cannam@154 14218
cannam@154 14219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support SSE2 intrinsics" >&5
cannam@154 14220 $as_echo "$as_me: WARNING: Compiler does not support SSE2 intrinsics" >&2;}
cannam@154 14221
cannam@154 14222 fi
cannam@154 14223
cannam@154 14224 if test x"$OPUS_X86_MAY_HAVE_SSE4_1" = x"1"; then :
cannam@154 14225
cannam@154 14226
cannam@154 14227 $as_echo "#define OPUS_X86_MAY_HAVE_SSE4_1 1" >>confdefs.h
cannam@154 14228
cannam@154 14229 intrinsics_support="$intrinsics_support SSE4.1"
cannam@154 14230
cannam@154 14231 if test x"$OPUS_X86_PRESUME_SSE4_1" = x"1"; then :
cannam@154 14232
cannam@154 14233 $as_echo "#define OPUS_X86_PRESUME_SSE4_1 1" >>confdefs.h
cannam@154 14234
cannam@154 14235 else
cannam@154 14236 rtcd_support="$rtcd_support SSE4.1"
cannam@154 14237 fi
cannam@154 14238
cannam@154 14239 else
cannam@154 14240
cannam@154 14241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support SSE4.1 intrinsics" >&5
cannam@154 14242 $as_echo "$as_me: WARNING: Compiler does not support SSE4.1 intrinsics" >&2;}
cannam@154 14243
cannam@154 14244 fi
cannam@154 14245 if test x"$OPUS_X86_MAY_HAVE_AVX" = x"1"; then :
cannam@154 14246
cannam@154 14247
cannam@154 14248 $as_echo "#define OPUS_X86_MAY_HAVE_AVX 1" >>confdefs.h
cannam@154 14249
cannam@154 14250 intrinsics_support="$intrinsics_support AVX"
cannam@154 14251
cannam@154 14252 if test x"$OPUS_X86_PRESUME_AVX" = x"1"; then :
cannam@154 14253
cannam@154 14254 $as_echo "#define OPUS_X86_PRESUME_AVX 1" >>confdefs.h
cannam@154 14255
cannam@154 14256 else
cannam@154 14257 rtcd_support="$rtcd_support AVX"
cannam@154 14258 fi
cannam@154 14259
cannam@154 14260 else
cannam@154 14261
cannam@154 14262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support AVX intrinsics" >&5
cannam@154 14263 $as_echo "$as_me: WARNING: Compiler does not support AVX intrinsics" >&2;}
cannam@154 14264
cannam@154 14265 fi
cannam@154 14266
cannam@154 14267 if test x"$intrinsics_support" = x""; then :
cannam@154 14268 intrinsics_support=no
cannam@154 14269 else
cannam@154 14270 intrinsics_support="x86$intrinsics_support"
cannam@154 14271
cannam@154 14272 fi
cannam@154 14273 if test x"$rtcd_support" = x""; then :
cannam@154 14274 rtcd_support=no
cannam@154 14275 elif rtcd_support="x86$rtcd_support"; then :
cannam@154 14276
cannam@154 14277 fi
cannam@154 14278
cannam@154 14279 if test x"$enable_rtcd" = x"yes" && test x"$rtcd_support" != x""; then :
cannam@154 14280
cannam@154 14281 get_cpuid_by_asm="no"
cannam@154 14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking How to get X86 CPU Info" >&5
cannam@154 14283 $as_echo_n "checking How to get X86 CPU Info... " >&6; }
cannam@154 14284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 14285 /* end confdefs.h. */
cannam@154 14286
cannam@154 14287 #include <stdio.h>
cannam@154 14288
cannam@154 14289 int
cannam@154 14290 main ()
cannam@154 14291 {
cannam@154 14292
cannam@154 14293 unsigned int CPUInfo0;
cannam@154 14294 unsigned int CPUInfo1;
cannam@154 14295 unsigned int CPUInfo2;
cannam@154 14296 unsigned int CPUInfo3;
cannam@154 14297 unsigned int InfoType;
cannam@154 14298 __asm__ __volatile__ (
cannam@154 14299 "cpuid":
cannam@154 14300 "=a" (CPUInfo0),
cannam@154 14301 "=b" (CPUInfo1),
cannam@154 14302 "=c" (CPUInfo2),
cannam@154 14303 "=d" (CPUInfo3) :
cannam@154 14304 "a" (InfoType), "c" (0)
cannam@154 14305 );
cannam@154 14306
cannam@154 14307 ;
cannam@154 14308 return 0;
cannam@154 14309 }
cannam@154 14310 _ACEOF
cannam@154 14311 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 14312 get_cpuid_by_asm="yes"
cannam@154 14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Inline Assembly" >&5
cannam@154 14314 $as_echo "Inline Assembly" >&6; }
cannam@154 14315
cannam@154 14316 $as_echo "#define CPU_INFO_BY_ASM 1" >>confdefs.h
cannam@154 14317
cannam@154 14318 else
cannam@154 14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 14320 /* end confdefs.h. */
cannam@154 14321
cannam@154 14322 #include <cpuid.h>
cannam@154 14323
cannam@154 14324 int
cannam@154 14325 main ()
cannam@154 14326 {
cannam@154 14327
cannam@154 14328 unsigned int CPUInfo0;
cannam@154 14329 unsigned int CPUInfo1;
cannam@154 14330 unsigned int CPUInfo2;
cannam@154 14331 unsigned int CPUInfo3;
cannam@154 14332 unsigned int InfoType;
cannam@154 14333 __get_cpuid(InfoType, &CPUInfo0, &CPUInfo1, &CPUInfo2, &CPUInfo3);
cannam@154 14334
cannam@154 14335 ;
cannam@154 14336 return 0;
cannam@154 14337 }
cannam@154 14338 _ACEOF
cannam@154 14339 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: C method" >&5
cannam@154 14341 $as_echo "C method" >&6; }
cannam@154 14342
cannam@154 14343 $as_echo "#define CPU_INFO_BY_C 1" >>confdefs.h
cannam@154 14344
cannam@154 14345 else
cannam@154 14346 as_fn_error $? "no supported Get CPU Info method, please disable run-time CPU capabilities detection or intrinsics" "$LINENO" 5
cannam@154 14347 fi
cannam@154 14348 rm -f core conftest.err conftest.$ac_objext \
cannam@154 14349 conftest$ac_exeext conftest.$ac_ext
cannam@154 14350 fi
cannam@154 14351 rm -f core conftest.err conftest.$ac_objext \
cannam@154 14352 conftest$ac_exeext conftest.$ac_ext
cannam@154 14353 fi
cannam@154 14354 ;; #(
cannam@154 14355 *) :
cannam@154 14356
cannam@154 14357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No intrinsics support for your architecture" >&5
cannam@154 14358 $as_echo "$as_me: WARNING: No intrinsics support for your architecture" >&2;}
cannam@154 14359 intrinsics_support="no"
cannam@154 14360 ;;
cannam@154 14361 esac
cannam@154 14362
cannam@154 14363 else
cannam@154 14364
cannam@154 14365 intrinsics_support="no"
cannam@154 14366
cannam@154 14367 fi
cannam@154 14368
cannam@154 14369 if test "$cpu_arm" = "yes"; then
cannam@154 14370 CPU_ARM_TRUE=
cannam@154 14371 CPU_ARM_FALSE='#'
cannam@154 14372 else
cannam@154 14373 CPU_ARM_TRUE='#'
cannam@154 14374 CPU_ARM_FALSE=
cannam@154 14375 fi
cannam@154 14376
cannam@154 14377 if test x"$OPUS_ARM_MAY_HAVE_NEON_INTR" = x"1"; then
cannam@154 14378 HAVE_ARM_NEON_INTR_TRUE=
cannam@154 14379 HAVE_ARM_NEON_INTR_FALSE='#'
cannam@154 14380 else
cannam@154 14381 HAVE_ARM_NEON_INTR_TRUE='#'
cannam@154 14382 HAVE_ARM_NEON_INTR_FALSE=
cannam@154 14383 fi
cannam@154 14384
cannam@154 14385 if test x"$HAVE_ARM_NE10" = x"1"; then
cannam@154 14386 HAVE_ARM_NE10_TRUE=
cannam@154 14387 HAVE_ARM_NE10_FALSE='#'
cannam@154 14388 else
cannam@154 14389 HAVE_ARM_NE10_TRUE='#'
cannam@154 14390 HAVE_ARM_NE10_FALSE=
cannam@154 14391 fi
cannam@154 14392
cannam@154 14393 if test x"$OPUS_X86_MAY_HAVE_SSE" = x"1"; then
cannam@154 14394 HAVE_SSE_TRUE=
cannam@154 14395 HAVE_SSE_FALSE='#'
cannam@154 14396 else
cannam@154 14397 HAVE_SSE_TRUE='#'
cannam@154 14398 HAVE_SSE_FALSE=
cannam@154 14399 fi
cannam@154 14400
cannam@154 14401 if test x"$OPUS_X86_MAY_HAVE_SSE2" = x"1"; then
cannam@154 14402 HAVE_SSE2_TRUE=
cannam@154 14403 HAVE_SSE2_FALSE='#'
cannam@154 14404 else
cannam@154 14405 HAVE_SSE2_TRUE='#'
cannam@154 14406 HAVE_SSE2_FALSE=
cannam@154 14407 fi
cannam@154 14408
cannam@154 14409 if test x"$OPUS_X86_MAY_HAVE_SSE4_1" = x"1"; then
cannam@154 14410 HAVE_SSE4_1_TRUE=
cannam@154 14411 HAVE_SSE4_1_FALSE='#'
cannam@154 14412 else
cannam@154 14413 HAVE_SSE4_1_TRUE='#'
cannam@154 14414 HAVE_SSE4_1_FALSE=
cannam@154 14415 fi
cannam@154 14416
cannam@154 14417 if test x"$OPUS_X86_MAY_HAVE_AVX" = x"1"; then
cannam@154 14418 HAVE_AVX_TRUE=
cannam@154 14419 HAVE_AVX_FALSE='#'
cannam@154 14420 else
cannam@154 14421 HAVE_AVX_TRUE='#'
cannam@154 14422 HAVE_AVX_FALSE=
cannam@154 14423 fi
cannam@154 14424
cannam@154 14425
cannam@154 14426 if test x"$enable_rtcd" = x"yes"; then :
cannam@154 14427
cannam@154 14428 if test x"$rtcd_support" != x"no"; then :
cannam@154 14429
cannam@154 14430
cannam@154 14431 $as_echo "#define OPUS_HAVE_RTCD 1" >>confdefs.h
cannam@154 14432
cannam@154 14433 OPUS_HAVE_RTCD=1
cannam@154 14434
cannam@154 14435
cannam@154 14436 fi
cannam@154 14437
cannam@154 14438 else
cannam@154 14439
cannam@154 14440 rtcd_support="disabled"
cannam@154 14441
cannam@154 14442 fi
cannam@154 14443
cannam@154 14444 # Check whether --enable-assertions was given.
cannam@154 14445 if test "${enable_assertions+set}" = set; then :
cannam@154 14446 enableval=$enable_assertions;
cannam@154 14447 else
cannam@154 14448 enable_assertions=no
cannam@154 14449 fi
cannam@154 14450
cannam@154 14451
cannam@154 14452 if test "$enable_assertions" = "yes"; then :
cannam@154 14453
cannam@154 14454
cannam@154 14455 $as_echo "#define ENABLE_ASSERTIONS 1" >>confdefs.h
cannam@154 14456
cannam@154 14457
cannam@154 14458 fi
cannam@154 14459
cannam@154 14460 # Check whether --enable-hardening was given.
cannam@154 14461 if test "${enable_hardening+set}" = set; then :
cannam@154 14462 enableval=$enable_hardening;
cannam@154 14463 else
cannam@154 14464 enable_hardening=yes
cannam@154 14465 fi
cannam@154 14466
cannam@154 14467
cannam@154 14468 if test "$enable_hardening" = "yes"; then :
cannam@154 14469
cannam@154 14470
cannam@154 14471 $as_echo "#define ENABLE_HARDENING 1" >>confdefs.h
cannam@154 14472
cannam@154 14473
cannam@154 14474 fi
cannam@154 14475
cannam@154 14476 # Check whether --enable-fuzzing was given.
cannam@154 14477 if test "${enable_fuzzing+set}" = set; then :
cannam@154 14478 enableval=$enable_fuzzing;
cannam@154 14479 else
cannam@154 14480 enable_fuzzing=no
cannam@154 14481 fi
cannam@154 14482
cannam@154 14483
cannam@154 14484 if test "$enable_fuzzing" = "yes"; then :
cannam@154 14485
cannam@154 14486
cannam@154 14487 $as_echo "#define FUZZING 1" >>confdefs.h
cannam@154 14488
cannam@154 14489
cannam@154 14490 fi
cannam@154 14491
cannam@154 14492 # Check whether --enable-check-asm was given.
cannam@154 14493 if test "${enable_check_asm+set}" = set; then :
cannam@154 14494 enableval=$enable_check_asm;
cannam@154 14495 else
cannam@154 14496 enable_check_asm=no
cannam@154 14497 fi
cannam@154 14498
cannam@154 14499
cannam@154 14500 if test "$enable_check_asm" = "yes"; then :
cannam@154 14501
cannam@154 14502
cannam@154 14503 $as_echo "#define OPUS_CHECK_ASM 1" >>confdefs.h
cannam@154 14504
cannam@154 14505
cannam@154 14506 fi
cannam@154 14507
cannam@154 14508 # Check whether --enable-doc was given.
cannam@154 14509 if test "${enable_doc+set}" = set; then :
cannam@154 14510 enableval=$enable_doc;
cannam@154 14511 else
cannam@154 14512 enable_doc=yes
cannam@154 14513 fi
cannam@154 14514
cannam@154 14515
cannam@154 14516 if test "$enable_doc" = "yes"; then :
cannam@154 14517
cannam@154 14518 # Extract the first word of "doxygen", so it can be a program name with args.
cannam@154 14519 set dummy doxygen; ac_word=$2
cannam@154 14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 14521 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 14522 if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then :
cannam@154 14523 $as_echo_n "(cached) " >&6
cannam@154 14524 else
cannam@154 14525 if test -n "$HAVE_DOXYGEN"; then
cannam@154 14526 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
cannam@154 14527 else
cannam@154 14528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 14529 for as_dir in $PATH
cannam@154 14530 do
cannam@154 14531 IFS=$as_save_IFS
cannam@154 14532 test -z "$as_dir" && as_dir=.
cannam@154 14533 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 14534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 14535 ac_cv_prog_HAVE_DOXYGEN="yes"
cannam@154 14536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 14537 break 2
cannam@154 14538 fi
cannam@154 14539 done
cannam@154 14540 done
cannam@154 14541 IFS=$as_save_IFS
cannam@154 14542
cannam@154 14543 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="no"
cannam@154 14544 fi
cannam@154 14545 fi
cannam@154 14546 HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
cannam@154 14547 if test -n "$HAVE_DOXYGEN"; then
cannam@154 14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
cannam@154 14549 $as_echo "$HAVE_DOXYGEN" >&6; }
cannam@154 14550 else
cannam@154 14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 14552 $as_echo "no" >&6; }
cannam@154 14553 fi
cannam@154 14554
cannam@154 14555
cannam@154 14556 # Extract the first word of "dot", so it can be a program name with args.
cannam@154 14557 set dummy dot; ac_word=$2
cannam@154 14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@154 14559 $as_echo_n "checking for $ac_word... " >&6; }
cannam@154 14560 if ${ac_cv_prog_HAVE_DOT+:} false; then :
cannam@154 14561 $as_echo_n "(cached) " >&6
cannam@154 14562 else
cannam@154 14563 if test -n "$HAVE_DOT"; then
cannam@154 14564 ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test.
cannam@154 14565 else
cannam@154 14566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 14567 for as_dir in $PATH
cannam@154 14568 do
cannam@154 14569 IFS=$as_save_IFS
cannam@154 14570 test -z "$as_dir" && as_dir=.
cannam@154 14571 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@154 14572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@154 14573 ac_cv_prog_HAVE_DOT="yes"
cannam@154 14574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@154 14575 break 2
cannam@154 14576 fi
cannam@154 14577 done
cannam@154 14578 done
cannam@154 14579 IFS=$as_save_IFS
cannam@154 14580
cannam@154 14581 test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="no"
cannam@154 14582 fi
cannam@154 14583 fi
cannam@154 14584 HAVE_DOT=$ac_cv_prog_HAVE_DOT
cannam@154 14585 if test -n "$HAVE_DOT"; then
cannam@154 14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOT" >&5
cannam@154 14587 $as_echo "$HAVE_DOT" >&6; }
cannam@154 14588 else
cannam@154 14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 14590 $as_echo "no" >&6; }
cannam@154 14591 fi
cannam@154 14592
cannam@154 14593
cannam@154 14594
cannam@154 14595 else
cannam@154 14596
cannam@154 14597 HAVE_DOXYGEN=no
cannam@154 14598
cannam@154 14599 fi
cannam@154 14600
cannam@154 14601 if test "$HAVE_DOXYGEN" = "yes"; then
cannam@154 14602 HAVE_DOXYGEN_TRUE=
cannam@154 14603 HAVE_DOXYGEN_FALSE='#'
cannam@154 14604 else
cannam@154 14605 HAVE_DOXYGEN_TRUE='#'
cannam@154 14606 HAVE_DOXYGEN_FALSE=
cannam@154 14607 fi
cannam@154 14608
cannam@154 14609
cannam@154 14610 # Check whether --enable-extra-programs was given.
cannam@154 14611 if test "${enable_extra_programs+set}" = set; then :
cannam@154 14612 enableval=$enable_extra_programs;
cannam@154 14613 else
cannam@154 14614 enable_extra_programs=yes
cannam@154 14615 fi
cannam@154 14616
cannam@154 14617
cannam@154 14618 if test "$enable_extra_programs" = "yes"; then
cannam@154 14619 EXTRA_PROGRAMS_TRUE=
cannam@154 14620 EXTRA_PROGRAMS_FALSE='#'
cannam@154 14621 else
cannam@154 14622 EXTRA_PROGRAMS_TRUE='#'
cannam@154 14623 EXTRA_PROGRAMS_FALSE=
cannam@154 14624 fi
cannam@154 14625
cannam@154 14626
cannam@154 14627
cannam@154 14628 # Check whether --enable-rfc8251 was given.
cannam@154 14629 if test "${enable_rfc8251+set}" = set; then :
cannam@154 14630 enableval=$enable_rfc8251;
cannam@154 14631 else
cannam@154 14632 enable_rfc8251=yes
cannam@154 14633 fi
cannam@154 14634
cannam@154 14635
cannam@154 14636 if test "$enable_rfc8251" = "no"; then :
cannam@154 14637
cannam@154 14638
cannam@154 14639 $as_echo "#define DISABLE_UPDATE_DRAFT 1" >>confdefs.h
cannam@154 14640
cannam@154 14641
cannam@154 14642 fi
cannam@154 14643
cannam@154 14644
cannam@154 14645 saved_CFLAGS="$CFLAGS"
cannam@154 14646 CFLAGS="$CFLAGS -fvisibility=hidden"
cannam@154 14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -fvisibility=hidden" >&5
cannam@154 14648 $as_echo_n "checking if ${CC} supports -fvisibility=hidden... " >&6; }
cannam@154 14649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 14650 /* end confdefs.h. */
cannam@154 14651 char foo;
cannam@154 14652 _ACEOF
cannam@154 14653 if ac_fn_c_try_compile "$LINENO"; then :
cannam@154 14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 14655 $as_echo "yes" >&6; }
cannam@154 14656 else
cannam@154 14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 14658 $as_echo "no" >&6; }
cannam@154 14659 CFLAGS="$saved_CFLAGS"
cannam@154 14660
cannam@154 14661 fi
cannam@154 14662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@154 14663
cannam@154 14664 on_x86=no
cannam@154 14665 case "$host_cpu" in
cannam@154 14666 i[3456]86 | x86_64)
cannam@154 14667 on_x86=yes
cannam@154 14668 ;;
cannam@154 14669 esac
cannam@154 14670
cannam@154 14671 on_windows=no
cannam@154 14672 case $host in
cannam@154 14673 *cygwin*|*mingw*)
cannam@154 14674 on_windows=yes
cannam@154 14675 ;;
cannam@154 14676 esac
cannam@154 14677
cannam@154 14678 # Check whether --enable-stack-protector was given.
cannam@154 14679 if test "${enable_stack_protector+set}" = set; then :
cannam@154 14680 enableval=$enable_stack_protector;
cannam@154 14681 else
cannam@154 14682
cannam@154 14683 if test "$ac_cv_c_compiler_gnu" = "yes" && test "$on_x86" = "yes" && test "$on_windows" = "no"; then :
cannam@154 14684 enable_stack_protector=yes
cannam@154 14685 else
cannam@154 14686 enable_stack_protector=no
cannam@154 14687 fi
cannam@154 14688
cannam@154 14689 fi
cannam@154 14690
cannam@154 14691
cannam@154 14692 if test "$enable_stack_protector" = "yes"; then :
cannam@154 14693
cannam@154 14694 saved_CFLAGS="$CFLAGS"
cannam@154 14695 CFLAGS="$CFLAGS -fstack-protector-strong"
cannam@154 14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -fstack-protector-strong" >&5
cannam@154 14697 $as_echo_n "checking if ${CC} supports -fstack-protector-strong... " >&6; }
cannam@154 14698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 14699 /* end confdefs.h. */
cannam@154 14700
cannam@154 14701 int
cannam@154 14702 main ()
cannam@154 14703 {
cannam@154 14704 char foo;
cannam@154 14705 ;
cannam@154 14706 return 0;
cannam@154 14707 }
cannam@154 14708 _ACEOF
cannam@154 14709 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 14711 $as_echo "yes" >&6; }
cannam@154 14712 else
cannam@154 14713
cannam@154 14714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 14715 $as_echo "no" >&6; }
cannam@154 14716 enable_stack_protector=no
cannam@154 14717 CFLAGS="$saved_CFLAGS"
cannam@154 14718
cannam@154 14719 fi
cannam@154 14720 rm -f core conftest.err conftest.$ac_objext \
cannam@154 14721 conftest$ac_exeext conftest.$ac_ext
cannam@154 14722
cannam@154 14723 fi
cannam@154 14724
cannam@154 14725 if test x$ac_cv_c_compiler_gnu = xyes; then :
cannam@154 14726
cannam@154 14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add -D_FORTIFY_SOURCE=2 to CFLAGS" >&5
cannam@154 14728 $as_echo_n "checking whether to add -D_FORTIFY_SOURCE=2 to CFLAGS... " >&6; }
cannam@154 14729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 14730 /* end confdefs.h. */
cannam@154 14731
cannam@154 14732
cannam@154 14733 int main() {
cannam@154 14734 #ifndef _FORTIFY_SOURCE
cannam@154 14735 return 0;
cannam@154 14736 #else
cannam@154 14737 this_is_an_error;
cannam@154 14738 #endif
cannam@154 14739 }
cannam@154 14740
cannam@154 14741
cannam@154 14742 _ACEOF
cannam@154 14743 if ac_fn_c_try_link "$LINENO"; then :
cannam@154 14744
cannam@154 14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 14746 $as_echo "yes" >&6; }
cannam@154 14747 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
cannam@154 14748
cannam@154 14749 else
cannam@154 14750
cannam@154 14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 14752 $as_echo "no" >&6; }
cannam@154 14753
cannam@154 14754 fi
cannam@154 14755 rm -f core conftest.err conftest.$ac_objext \
cannam@154 14756 conftest$ac_exeext conftest.$ac_ext
cannam@154 14757
cannam@154 14758
cannam@154 14759 fi
cannam@154 14760
cannam@154 14761 CFLAGS="$CFLAGS -W"
cannam@154 14762
cannam@154 14763 warn_CFLAGS="-Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes"
cannam@154 14764 saved_CFLAGS="$CFLAGS"
cannam@154 14765 CFLAGS="$CFLAGS $warn_CFLAGS"
cannam@154 14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports ${warn_CFLAGS}" >&5
cannam@154 14767 $as_echo_n "checking if ${CC} supports ${warn_CFLAGS}... " >&6; }
cannam@154 14768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@154 14769 /* end confdefs.h. */
cannam@154 14770 char foo;
cannam@154 14771 _ACEOF
cannam@154 14772 if ac_fn_c_try_compile "$LINENO"; then :
cannam@154 14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@154 14774 $as_echo "yes" >&6; }
cannam@154 14775 else
cannam@154 14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@154 14777 $as_echo "no" >&6; }
cannam@154 14778 CFLAGS="$saved_CFLAGS"
cannam@154 14779
cannam@154 14780 fi
cannam@154 14781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@154 14782
cannam@154 14783 saved_LIBS="$LIBS"
cannam@154 14784 LIBS="$LIBS $LIBM"
cannam@154 14785 for ac_func in lrintf
cannam@154 14786 do :
cannam@154 14787 ac_fn_c_check_func "$LINENO" "lrintf" "ac_cv_func_lrintf"
cannam@154 14788 if test "x$ac_cv_func_lrintf" = xyes; then :
cannam@154 14789 cat >>confdefs.h <<_ACEOF
cannam@154 14790 #define HAVE_LRINTF 1
cannam@154 14791 _ACEOF
cannam@154 14792
cannam@154 14793 fi
cannam@154 14794 done
cannam@154 14795
cannam@154 14796 for ac_func in lrint
cannam@154 14797 do :
cannam@154 14798 ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint"
cannam@154 14799 if test "x$ac_cv_func_lrint" = xyes; then :
cannam@154 14800 cat >>confdefs.h <<_ACEOF
cannam@154 14801 #define HAVE_LRINT 1
cannam@154 14802 _ACEOF
cannam@154 14803
cannam@154 14804 fi
cannam@154 14805 done
cannam@154 14806
cannam@154 14807 LIBS="$saved_LIBS"
cannam@154 14808
cannam@154 14809 for ac_func in __malloc_hook
cannam@154 14810 do :
cannam@154 14811 ac_fn_c_check_func "$LINENO" "__malloc_hook" "ac_cv_func___malloc_hook"
cannam@154 14812 if test "x$ac_cv_func___malloc_hook" = xyes; then :
cannam@154 14813 cat >>confdefs.h <<_ACEOF
cannam@154 14814 #define HAVE___MALLOC_HOOK 1
cannam@154 14815 _ACEOF
cannam@154 14816
cannam@154 14817 fi
cannam@154 14818 done
cannam@154 14819
cannam@154 14820
cannam@154 14821
cannam@154 14822
cannam@154 14823 ac_config_files="$ac_config_files Makefile opus.pc opus-uninstalled.pc celt/arm/armopts.s doc/Makefile doc/Doxyfile"
cannam@154 14824
cannam@154 14825 ac_config_headers="$ac_config_headers config.h"
cannam@154 14826
cannam@154 14827
cannam@154 14828 cat >confcache <<\_ACEOF
cannam@154 14829 # This file is a shell script that caches the results of configure
cannam@154 14830 # tests run on this system so they can be shared between configure
cannam@154 14831 # scripts and configure runs, see configure's option --config-cache.
cannam@154 14832 # It is not useful on other systems. If it contains results you don't
cannam@154 14833 # want to keep, you may remove or edit it.
cannam@154 14834 #
cannam@154 14835 # config.status only pays attention to the cache file if you give it
cannam@154 14836 # the --recheck option to rerun configure.
cannam@154 14837 #
cannam@154 14838 # `ac_cv_env_foo' variables (set or unset) will be overridden when
cannam@154 14839 # loading this file, other *unset* `ac_cv_foo' will be assigned the
cannam@154 14840 # following values.
cannam@154 14841
cannam@154 14842 _ACEOF
cannam@154 14843
cannam@154 14844 # The following way of writing the cache mishandles newlines in values,
cannam@154 14845 # but we know of no workaround that is simple, portable, and efficient.
cannam@154 14846 # So, we kill variables containing newlines.
cannam@154 14847 # Ultrix sh set writes to stderr and can't be redirected directly,
cannam@154 14848 # and sets the high bit in the cache file unless we assign to the vars.
cannam@154 14849 (
cannam@154 14850 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
cannam@154 14851 eval ac_val=\$$ac_var
cannam@154 14852 case $ac_val in #(
cannam@154 14853 *${as_nl}*)
cannam@154 14854 case $ac_var in #(
cannam@154 14855 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cannam@154 14856 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
cannam@154 14857 esac
cannam@154 14858 case $ac_var in #(
cannam@154 14859 _ | IFS | as_nl) ;; #(
cannam@154 14860 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cannam@154 14861 *) { eval $ac_var=; unset $ac_var;} ;;
cannam@154 14862 esac ;;
cannam@154 14863 esac
cannam@154 14864 done
cannam@154 14865
cannam@154 14866 (set) 2>&1 |
cannam@154 14867 case $as_nl`(ac_space=' '; set) 2>&1` in #(
cannam@154 14868 *${as_nl}ac_space=\ *)
cannam@154 14869 # `set' does not quote correctly, so add quotes: double-quote
cannam@154 14870 # substitution turns \\\\ into \\, and sed turns \\ into \.
cannam@154 14871 sed -n \
cannam@154 14872 "s/'/'\\\\''/g;
cannam@154 14873 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cannam@154 14874 ;; #(
cannam@154 14875 *)
cannam@154 14876 # `set' quotes correctly as required by POSIX, so do not add quotes.
cannam@154 14877 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
cannam@154 14878 ;;
cannam@154 14879 esac |
cannam@154 14880 sort
cannam@154 14881 ) |
cannam@154 14882 sed '
cannam@154 14883 /^ac_cv_env_/b end
cannam@154 14884 t clear
cannam@154 14885 :clear
cannam@154 14886 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
cannam@154 14887 t end
cannam@154 14888 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
cannam@154 14889 :end' >>confcache
cannam@154 14890 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
cannam@154 14891 if test -w "$cache_file"; then
cannam@154 14892 if test "x$cache_file" != "x/dev/null"; then
cannam@154 14893 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cannam@154 14894 $as_echo "$as_me: updating cache $cache_file" >&6;}
cannam@154 14895 if test ! -f "$cache_file" || test -h "$cache_file"; then
cannam@154 14896 cat confcache >"$cache_file"
cannam@154 14897 else
cannam@154 14898 case $cache_file in #(
cannam@154 14899 */* | ?:*)
cannam@154 14900 mv -f confcache "$cache_file"$$ &&
cannam@154 14901 mv -f "$cache_file"$$ "$cache_file" ;; #(
cannam@154 14902 *)
cannam@154 14903 mv -f confcache "$cache_file" ;;
cannam@154 14904 esac
cannam@154 14905 fi
cannam@154 14906 fi
cannam@154 14907 else
cannam@154 14908 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cannam@154 14909 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
cannam@154 14910 fi
cannam@154 14911 fi
cannam@154 14912 rm -f confcache
cannam@154 14913
cannam@154 14914 test "x$prefix" = xNONE && prefix=$ac_default_prefix
cannam@154 14915 # Let make expand exec_prefix.
cannam@154 14916 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
cannam@154 14917
cannam@154 14918 DEFS=-DHAVE_CONFIG_H
cannam@154 14919
cannam@154 14920 ac_libobjs=
cannam@154 14921 ac_ltlibobjs=
cannam@154 14922 U=
cannam@154 14923 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
cannam@154 14924 # 1. Remove the extension, and $U if already installed.
cannam@154 14925 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
cannam@154 14926 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
cannam@154 14927 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
cannam@154 14928 # will be set to the directory where LIBOBJS objects are built.
cannam@154 14929 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
cannam@154 14930 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cannam@154 14931 done
cannam@154 14932 LIBOBJS=$ac_libobjs
cannam@154 14933
cannam@154 14934 LTLIBOBJS=$ac_ltlibobjs
cannam@154 14935
cannam@154 14936
cannam@154 14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
cannam@154 14938 $as_echo_n "checking that generated files are newer than configure... " >&6; }
cannam@154 14939 if test -n "$am_sleep_pid"; then
cannam@154 14940 # Hide warnings about reused PIDs.
cannam@154 14941 wait $am_sleep_pid 2>/dev/null
cannam@154 14942 fi
cannam@154 14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
cannam@154 14944 $as_echo "done" >&6; }
cannam@154 14945 if test -n "$EXEEXT"; then
cannam@154 14946 am__EXEEXT_TRUE=
cannam@154 14947 am__EXEEXT_FALSE='#'
cannam@154 14948 else
cannam@154 14949 am__EXEEXT_TRUE='#'
cannam@154 14950 am__EXEEXT_FALSE=
cannam@154 14951 fi
cannam@154 14952
cannam@154 14953 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cannam@154 14954 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cannam@154 14955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@154 14956 fi
cannam@154 14957 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cannam@154 14958 as_fn_error $? "conditional \"AMDEP\" was never defined.
cannam@154 14959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@154 14960 fi
cannam@154 14961 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cannam@154 14962 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cannam@154 14963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@154 14964 fi
cannam@154 14965 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
cannam@154 14966 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
cannam@154 14967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@154 14968 fi
cannam@154 14969 if test -z "${FIXED_POINT_TRUE}" && test -z "${FIXED_POINT_FALSE}"; then
cannam@154 14970 as_fn_error $? "conditional \"FIXED_POINT\" was never defined.
cannam@154 14971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@154 14972 fi
cannam@154 14973 if test -z "${DISABLE_FLOAT_API_TRUE}" && test -z "${DISABLE_FLOAT_API_FALSE}"; then
cannam@154 14974 as_fn_error $? "conditional \"DISABLE_FLOAT_API\" was never defined.
cannam@154 14975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@154 14976 fi
cannam@154 14977 if test -z "${CUSTOM_MODES_TRUE}" && test -z "${CUSTOM_MODES_FALSE}"; then
cannam@154 14978 as_fn_error $? "conditional \"CUSTOM_MODES\" was never defined.
cannam@154 14979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@154 14980 fi
cannam@154 14981 if test -z "${OPUS_ARM_INLINE_ASM_TRUE}" && test -z "${OPUS_ARM_INLINE_ASM_FALSE}"; then
cannam@154 14982 as_fn_error $? "conditional \"OPUS_ARM_INLINE_ASM\" was never defined.
cannam@154 14983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@154 14984 fi
cannam@154 14985 if test -z "${OPUS_ARM_EXTERNAL_ASM_TRUE}" && test -z "${OPUS_ARM_EXTERNAL_ASM_FALSE}"; then
cannam@154 14986 as_fn_error $? "conditional \"OPUS_ARM_EXTERNAL_ASM\" was never defined.
cannam@154 14987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@154 14988 fi
cannam@154 14989 if test -z "${OPUS_ARM_INLINE_ASM_TRUE}" && test -z "${OPUS_ARM_INLINE_ASM_FALSE}"; then
cannam@154 14990 as_fn_error $? "conditional \"OPUS_ARM_INLINE_ASM\" was never defined.
cannam@154 14991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@154 14992 fi
cannam@154 14993 if test -z "${OPUS_ARM_EXTERNAL_ASM_TRUE}" && test -z "${OPUS_ARM_EXTERNAL_ASM_FALSE}"; then
cannam@154 14994 as_fn_error $? "conditional \"OPUS_ARM_EXTERNAL_ASM\" was never defined.
cannam@154 14995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@154 14996 fi
cannam@154 14997 if test -z "${HAVE_SSE_TRUE}" && test -z "${HAVE_SSE_FALSE}"; then
cannam@154 14998 as_fn_error $? "conditional \"HAVE_SSE\" was never defined.
cannam@154 14999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@154 15000 fi
cannam@154 15001 if test -z "${HAVE_SSE2_TRUE}" && test -z "${HAVE_SSE2_FALSE}"; then
cannam@154 15002 as_fn_error $? "conditional \"HAVE_SSE2\" was never defined.
cannam@154 15003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@154 15004 fi
cannam@154 15005 if test -z "${HAVE_SSE4_1_TRUE}" && test -z "${HAVE_SSE4_1_FALSE}"; then
cannam@154 15006 as_fn_error $? "conditional \"HAVE_SSE4_1\" was never defined.
cannam@154 15007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@154 15008 fi
cannam@154 15009 if test -z "${HAVE_AVX_TRUE}" && test -z "${HAVE_AVX_FALSE}"; then
cannam@154 15010 as_fn_error $? "conditional \"HAVE_AVX\" was never defined.
cannam@154 15011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@154 15012 fi
cannam@154 15013 if test -z "${CPU_ARM_TRUE}" && test -z "${CPU_ARM_FALSE}"; then
cannam@154 15014 as_fn_error $? "conditional \"CPU_ARM\" was never defined.
cannam@154 15015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@154 15016 fi
cannam@154 15017 if test -z "${HAVE_ARM_NEON_INTR_TRUE}" && test -z "${HAVE_ARM_NEON_INTR_FALSE}"; then
cannam@154 15018 as_fn_error $? "conditional \"HAVE_ARM_NEON_INTR\" was never defined.
cannam@154 15019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@154 15020 fi
cannam@154 15021 if test -z "${HAVE_ARM_NE10_TRUE}" && test -z "${HAVE_ARM_NE10_FALSE}"; then
cannam@154 15022 as_fn_error $? "conditional \"HAVE_ARM_NE10\" was never defined.
cannam@154 15023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@154 15024 fi
cannam@154 15025 if test -z "${HAVE_SSE_TRUE}" && test -z "${HAVE_SSE_FALSE}"; then
cannam@154 15026 as_fn_error $? "conditional \"HAVE_SSE\" was never defined.
cannam@154 15027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@154 15028 fi
cannam@154 15029 if test -z "${HAVE_SSE2_TRUE}" && test -z "${HAVE_SSE2_FALSE}"; then
cannam@154 15030 as_fn_error $? "conditional \"HAVE_SSE2\" was never defined.
cannam@154 15031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@154 15032 fi
cannam@154 15033 if test -z "${HAVE_SSE4_1_TRUE}" && test -z "${HAVE_SSE4_1_FALSE}"; then
cannam@154 15034 as_fn_error $? "conditional \"HAVE_SSE4_1\" was never defined.
cannam@154 15035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@154 15036 fi
cannam@154 15037 if test -z "${HAVE_AVX_TRUE}" && test -z "${HAVE_AVX_FALSE}"; then
cannam@154 15038 as_fn_error $? "conditional \"HAVE_AVX\" was never defined.
cannam@154 15039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@154 15040 fi
cannam@154 15041 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
cannam@154 15042 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
cannam@154 15043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@154 15044 fi
cannam@154 15045 if test -z "${EXTRA_PROGRAMS_TRUE}" && test -z "${EXTRA_PROGRAMS_FALSE}"; then
cannam@154 15046 as_fn_error $? "conditional \"EXTRA_PROGRAMS\" was never defined.
cannam@154 15047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@154 15048 fi
cannam@154 15049
cannam@154 15050 : "${CONFIG_STATUS=./config.status}"
cannam@154 15051 ac_write_fail=0
cannam@154 15052 ac_clean_files_save=$ac_clean_files
cannam@154 15053 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cannam@154 15054 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cannam@154 15055 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cannam@154 15056 as_write_fail=0
cannam@154 15057 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cannam@154 15058 #! $SHELL
cannam@154 15059 # Generated by $as_me.
cannam@154 15060 # Run this file to recreate the current configuration.
cannam@154 15061 # Compiler output produced by configure, useful for debugging
cannam@154 15062 # configure, is in config.log if it exists.
cannam@154 15063
cannam@154 15064 debug=false
cannam@154 15065 ac_cs_recheck=false
cannam@154 15066 ac_cs_silent=false
cannam@154 15067
cannam@154 15068 SHELL=\${CONFIG_SHELL-$SHELL}
cannam@154 15069 export SHELL
cannam@154 15070 _ASEOF
cannam@154 15071 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
cannam@154 15072 ## -------------------- ##
cannam@154 15073 ## M4sh Initialization. ##
cannam@154 15074 ## -------------------- ##
cannam@154 15075
cannam@154 15076 # Be more Bourne compatible
cannam@154 15077 DUALCASE=1; export DUALCASE # for MKS sh
cannam@154 15078 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cannam@154 15079 emulate sh
cannam@154 15080 NULLCMD=:
cannam@154 15081 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
cannam@154 15082 # is contrary to our usage. Disable this feature.
cannam@154 15083 alias -g '${1+"$@"}'='"$@"'
cannam@154 15084 setopt NO_GLOB_SUBST
cannam@154 15085 else
cannam@154 15086 case `(set -o) 2>/dev/null` in #(
cannam@154 15087 *posix*) :
cannam@154 15088 set -o posix ;; #(
cannam@154 15089 *) :
cannam@154 15090 ;;
cannam@154 15091 esac
cannam@154 15092 fi
cannam@154 15093
cannam@154 15094
cannam@154 15095 as_nl='
cannam@154 15096 '
cannam@154 15097 export as_nl
cannam@154 15098 # Printing a long string crashes Solaris 7 /usr/bin/printf.
cannam@154 15099 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@154 15100 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@154 15101 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@154 15102 # Prefer a ksh shell builtin over an external printf program on Solaris,
cannam@154 15103 # but without wasting forks for bash or zsh.
cannam@154 15104 if test -z "$BASH_VERSION$ZSH_VERSION" \
cannam@154 15105 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@154 15106 as_echo='print -r --'
cannam@154 15107 as_echo_n='print -rn --'
cannam@154 15108 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@154 15109 as_echo='printf %s\n'
cannam@154 15110 as_echo_n='printf %s'
cannam@154 15111 else
cannam@154 15112 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
cannam@154 15113 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
cannam@154 15114 as_echo_n='/usr/ucb/echo -n'
cannam@154 15115 else
cannam@154 15116 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
cannam@154 15117 as_echo_n_body='eval
cannam@154 15118 arg=$1;
cannam@154 15119 case $arg in #(
cannam@154 15120 *"$as_nl"*)
cannam@154 15121 expr "X$arg" : "X\\(.*\\)$as_nl";
cannam@154 15122 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
cannam@154 15123 esac;
cannam@154 15124 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
cannam@154 15125 '
cannam@154 15126 export as_echo_n_body
cannam@154 15127 as_echo_n='sh -c $as_echo_n_body as_echo'
cannam@154 15128 fi
cannam@154 15129 export as_echo_body
cannam@154 15130 as_echo='sh -c $as_echo_body as_echo'
cannam@154 15131 fi
cannam@154 15132
cannam@154 15133 # The user is always right.
cannam@154 15134 if test "${PATH_SEPARATOR+set}" != set; then
cannam@154 15135 PATH_SEPARATOR=:
cannam@154 15136 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
cannam@154 15137 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
cannam@154 15138 PATH_SEPARATOR=';'
cannam@154 15139 }
cannam@154 15140 fi
cannam@154 15141
cannam@154 15142
cannam@154 15143 # IFS
cannam@154 15144 # We need space, tab and new line, in precisely that order. Quoting is
cannam@154 15145 # there to prevent editors from complaining about space-tab.
cannam@154 15146 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
cannam@154 15147 # splitting by setting IFS to empty value.)
cannam@154 15148 IFS=" "" $as_nl"
cannam@154 15149
cannam@154 15150 # Find who we are. Look in the path if we contain no directory separator.
cannam@154 15151 as_myself=
cannam@154 15152 case $0 in #((
cannam@154 15153 *[\\/]* ) as_myself=$0 ;;
cannam@154 15154 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@154 15155 for as_dir in $PATH
cannam@154 15156 do
cannam@154 15157 IFS=$as_save_IFS
cannam@154 15158 test -z "$as_dir" && as_dir=.
cannam@154 15159 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
cannam@154 15160 done
cannam@154 15161 IFS=$as_save_IFS
cannam@154 15162
cannam@154 15163 ;;
cannam@154 15164 esac
cannam@154 15165 # We did not find ourselves, most probably we were run as `sh COMMAND'
cannam@154 15166 # in which case we are not to be found in the path.
cannam@154 15167 if test "x$as_myself" = x; then
cannam@154 15168 as_myself=$0
cannam@154 15169 fi
cannam@154 15170 if test ! -f "$as_myself"; then
cannam@154 15171 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cannam@154 15172 exit 1
cannam@154 15173 fi
cannam@154 15174
cannam@154 15175 # Unset variables that we do not need and which cause bugs (e.g. in
cannam@154 15176 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
cannam@154 15177 # suppresses any "Segmentation fault" message there. '((' could
cannam@154 15178 # trigger a bug in pdksh 5.2.14.
cannam@154 15179 for as_var in BASH_ENV ENV MAIL MAILPATH
cannam@154 15180 do eval test x\${$as_var+set} = xset \
cannam@154 15181 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cannam@154 15182 done
cannam@154 15183 PS1='$ '
cannam@154 15184 PS2='> '
cannam@154 15185 PS4='+ '
cannam@154 15186
cannam@154 15187 # NLS nuisances.
cannam@154 15188 LC_ALL=C
cannam@154 15189 export LC_ALL
cannam@154 15190 LANGUAGE=C
cannam@154 15191 export LANGUAGE
cannam@154 15192
cannam@154 15193 # CDPATH.
cannam@154 15194 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cannam@154 15195
cannam@154 15196
cannam@154 15197 # as_fn_error STATUS ERROR [LINENO LOG_FD]
cannam@154 15198 # ----------------------------------------
cannam@154 15199 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
cannam@154 15200 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cannam@154 15201 # script with STATUS, using 1 if that was 0.
cannam@154 15202 as_fn_error ()
cannam@154 15203 {
cannam@154 15204 as_status=$1; test $as_status -eq 0 && as_status=1
cannam@154 15205 if test "$4"; then
cannam@154 15206 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@154 15207 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cannam@154 15208 fi
cannam@154 15209 $as_echo "$as_me: error: $2" >&2
cannam@154 15210 as_fn_exit $as_status
cannam@154 15211 } # as_fn_error
cannam@154 15212
cannam@154 15213
cannam@154 15214 # as_fn_set_status STATUS
cannam@154 15215 # -----------------------
cannam@154 15216 # Set $? to STATUS, without forking.
cannam@154 15217 as_fn_set_status ()
cannam@154 15218 {
cannam@154 15219 return $1
cannam@154 15220 } # as_fn_set_status
cannam@154 15221
cannam@154 15222 # as_fn_exit STATUS
cannam@154 15223 # -----------------
cannam@154 15224 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
cannam@154 15225 as_fn_exit ()
cannam@154 15226 {
cannam@154 15227 set +e
cannam@154 15228 as_fn_set_status $1
cannam@154 15229 exit $1
cannam@154 15230 } # as_fn_exit
cannam@154 15231
cannam@154 15232 # as_fn_unset VAR
cannam@154 15233 # ---------------
cannam@154 15234 # Portably unset VAR.
cannam@154 15235 as_fn_unset ()
cannam@154 15236 {
cannam@154 15237 { eval $1=; unset $1;}
cannam@154 15238 }
cannam@154 15239 as_unset=as_fn_unset
cannam@154 15240 # as_fn_append VAR VALUE
cannam@154 15241 # ----------------------
cannam@154 15242 # Append the text in VALUE to the end of the definition contained in VAR. Take
cannam@154 15243 # advantage of any shell optimizations that allow amortized linear growth over
cannam@154 15244 # repeated appends, instead of the typical quadratic growth present in naive
cannam@154 15245 # implementations.
cannam@154 15246 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
cannam@154 15247 eval 'as_fn_append ()
cannam@154 15248 {
cannam@154 15249 eval $1+=\$2
cannam@154 15250 }'
cannam@154 15251 else
cannam@154 15252 as_fn_append ()
cannam@154 15253 {
cannam@154 15254 eval $1=\$$1\$2
cannam@154 15255 }
cannam@154 15256 fi # as_fn_append
cannam@154 15257
cannam@154 15258 # as_fn_arith ARG...
cannam@154 15259 # ------------------
cannam@154 15260 # Perform arithmetic evaluation on the ARGs, and store the result in the
cannam@154 15261 # global $as_val. Take advantage of shells that can avoid forks. The arguments
cannam@154 15262 # must be portable across $(()) and expr.
cannam@154 15263 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
cannam@154 15264 eval 'as_fn_arith ()
cannam@154 15265 {
cannam@154 15266 as_val=$(( $* ))
cannam@154 15267 }'
cannam@154 15268 else
cannam@154 15269 as_fn_arith ()
cannam@154 15270 {
cannam@154 15271 as_val=`expr "$@" || test $? -eq 1`
cannam@154 15272 }
cannam@154 15273 fi # as_fn_arith
cannam@154 15274
cannam@154 15275
cannam@154 15276 if expr a : '\(a\)' >/dev/null 2>&1 &&
cannam@154 15277 test "X`expr 00001 : '.*\(...\)'`" = X001; then
cannam@154 15278 as_expr=expr
cannam@154 15279 else
cannam@154 15280 as_expr=false
cannam@154 15281 fi
cannam@154 15282
cannam@154 15283 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
cannam@154 15284 as_basename=basename
cannam@154 15285 else
cannam@154 15286 as_basename=false
cannam@154 15287 fi
cannam@154 15288
cannam@154 15289 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
cannam@154 15290 as_dirname=dirname
cannam@154 15291 else
cannam@154 15292 as_dirname=false
cannam@154 15293 fi
cannam@154 15294
cannam@154 15295 as_me=`$as_basename -- "$0" ||
cannam@154 15296 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
cannam@154 15297 X"$0" : 'X\(//\)$' \| \
cannam@154 15298 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
cannam@154 15299 $as_echo X/"$0" |
cannam@154 15300 sed '/^.*\/\([^/][^/]*\)\/*$/{
cannam@154 15301 s//\1/
cannam@154 15302 q
cannam@154 15303 }
cannam@154 15304 /^X\/\(\/\/\)$/{
cannam@154 15305 s//\1/
cannam@154 15306 q
cannam@154 15307 }
cannam@154 15308 /^X\/\(\/\).*/{
cannam@154 15309 s//\1/
cannam@154 15310 q
cannam@154 15311 }
cannam@154 15312 s/.*/./; q'`
cannam@154 15313
cannam@154 15314 # Avoid depending upon Character Ranges.
cannam@154 15315 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
cannam@154 15316 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
cannam@154 15317 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
cannam@154 15318 as_cr_digits='0123456789'
cannam@154 15319 as_cr_alnum=$as_cr_Letters$as_cr_digits
cannam@154 15320
cannam@154 15321 ECHO_C= ECHO_N= ECHO_T=
cannam@154 15322 case `echo -n x` in #(((((
cannam@154 15323 -n*)
cannam@154 15324 case `echo 'xy\c'` in
cannam@154 15325 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cannam@154 15326 xy) ECHO_C='\c';;
cannam@154 15327 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
cannam@154 15328 ECHO_T=' ';;
cannam@154 15329 esac;;
cannam@154 15330 *)
cannam@154 15331 ECHO_N='-n';;
cannam@154 15332 esac
cannam@154 15333
cannam@154 15334 rm -f conf$$ conf$$.exe conf$$.file
cannam@154 15335 if test -d conf$$.dir; then
cannam@154 15336 rm -f conf$$.dir/conf$$.file
cannam@154 15337 else
cannam@154 15338 rm -f conf$$.dir
cannam@154 15339 mkdir conf$$.dir 2>/dev/null
cannam@154 15340 fi
cannam@154 15341 if (echo >conf$$.file) 2>/dev/null; then
cannam@154 15342 if ln -s conf$$.file conf$$ 2>/dev/null; then
cannam@154 15343 as_ln_s='ln -s'
cannam@154 15344 # ... but there are two gotchas:
cannam@154 15345 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
cannam@154 15346 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cannam@154 15347 # In both cases, we have to default to `cp -pR'.
cannam@154 15348 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cannam@154 15349 as_ln_s='cp -pR'
cannam@154 15350 elif ln conf$$.file conf$$ 2>/dev/null; then
cannam@154 15351 as_ln_s=ln
cannam@154 15352 else
cannam@154 15353 as_ln_s='cp -pR'
cannam@154 15354 fi
cannam@154 15355 else
cannam@154 15356 as_ln_s='cp -pR'
cannam@154 15357 fi
cannam@154 15358 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
cannam@154 15359 rmdir conf$$.dir 2>/dev/null
cannam@154 15360
cannam@154 15361
cannam@154 15362 # as_fn_mkdir_p
cannam@154 15363 # -------------
cannam@154 15364 # Create "$as_dir" as a directory, including parents if necessary.
cannam@154 15365 as_fn_mkdir_p ()
cannam@154 15366 {
cannam@154 15367
cannam@154 15368 case $as_dir in #(
cannam@154 15369 -*) as_dir=./$as_dir;;
cannam@154 15370 esac
cannam@154 15371 test -d "$as_dir" || eval $as_mkdir_p || {
cannam@154 15372 as_dirs=
cannam@154 15373 while :; do
cannam@154 15374 case $as_dir in #(
cannam@154 15375 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
cannam@154 15376 *) as_qdir=$as_dir;;
cannam@154 15377 esac
cannam@154 15378 as_dirs="'$as_qdir' $as_dirs"
cannam@154 15379 as_dir=`$as_dirname -- "$as_dir" ||
cannam@154 15380 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@154 15381 X"$as_dir" : 'X\(//\)[^/]' \| \
cannam@154 15382 X"$as_dir" : 'X\(//\)$' \| \
cannam@154 15383 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
cannam@154 15384 $as_echo X"$as_dir" |
cannam@154 15385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@154 15386 s//\1/
cannam@154 15387 q
cannam@154 15388 }
cannam@154 15389 /^X\(\/\/\)[^/].*/{
cannam@154 15390 s//\1/
cannam@154 15391 q
cannam@154 15392 }
cannam@154 15393 /^X\(\/\/\)$/{
cannam@154 15394 s//\1/
cannam@154 15395 q
cannam@154 15396 }
cannam@154 15397 /^X\(\/\).*/{
cannam@154 15398 s//\1/
cannam@154 15399 q
cannam@154 15400 }
cannam@154 15401 s/.*/./; q'`
cannam@154 15402 test -d "$as_dir" && break
cannam@154 15403 done
cannam@154 15404 test -z "$as_dirs" || eval "mkdir $as_dirs"
cannam@154 15405 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cannam@154 15406
cannam@154 15407
cannam@154 15408 } # as_fn_mkdir_p
cannam@154 15409 if mkdir -p . 2>/dev/null; then
cannam@154 15410 as_mkdir_p='mkdir -p "$as_dir"'
cannam@154 15411 else
cannam@154 15412 test -d ./-p && rmdir ./-p
cannam@154 15413 as_mkdir_p=false
cannam@154 15414 fi
cannam@154 15415
cannam@154 15416
cannam@154 15417 # as_fn_executable_p FILE
cannam@154 15418 # -----------------------
cannam@154 15419 # Test if FILE is an executable regular file.
cannam@154 15420 as_fn_executable_p ()
cannam@154 15421 {
cannam@154 15422 test -f "$1" && test -x "$1"
cannam@154 15423 } # as_fn_executable_p
cannam@154 15424 as_test_x='test -x'
cannam@154 15425 as_executable_p=as_fn_executable_p
cannam@154 15426
cannam@154 15427 # Sed expression to map a string onto a valid CPP name.
cannam@154 15428 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
cannam@154 15429
cannam@154 15430 # Sed expression to map a string onto a valid variable name.
cannam@154 15431 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
cannam@154 15432
cannam@154 15433
cannam@154 15434 exec 6>&1
cannam@154 15435 ## ----------------------------------- ##
cannam@154 15436 ## Main body of $CONFIG_STATUS script. ##
cannam@154 15437 ## ----------------------------------- ##
cannam@154 15438 _ASEOF
cannam@154 15439 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cannam@154 15440
cannam@154 15441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@154 15442 # Save the log message, to keep $0 and so on meaningful, and to
cannam@154 15443 # report actual input values of CONFIG_FILES etc. instead of their
cannam@154 15444 # values after options handling.
cannam@154 15445 ac_log="
cannam@154 15446 This file was extended by opus $as_me 1.3, which was
cannam@154 15447 generated by GNU Autoconf 2.69. Invocation command line was
cannam@154 15448
cannam@154 15449 CONFIG_FILES = $CONFIG_FILES
cannam@154 15450 CONFIG_HEADERS = $CONFIG_HEADERS
cannam@154 15451 CONFIG_LINKS = $CONFIG_LINKS
cannam@154 15452 CONFIG_COMMANDS = $CONFIG_COMMANDS
cannam@154 15453 $ $0 $@
cannam@154 15454
cannam@154 15455 on `(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@154 15456 "
cannam@154 15457
cannam@154 15458 _ACEOF
cannam@154 15459
cannam@154 15460 case $ac_config_files in *"
cannam@154 15461 "*) set x $ac_config_files; shift; ac_config_files=$*;;
cannam@154 15462 esac
cannam@154 15463
cannam@154 15464 case $ac_config_headers in *"
cannam@154 15465 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
cannam@154 15466 esac
cannam@154 15467
cannam@154 15468
cannam@154 15469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@154 15470 # Files that config.status was made for.
cannam@154 15471 config_files="$ac_config_files"
cannam@154 15472 config_headers="$ac_config_headers"
cannam@154 15473 config_commands="$ac_config_commands"
cannam@154 15474
cannam@154 15475 _ACEOF
cannam@154 15476
cannam@154 15477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@154 15478 ac_cs_usage="\
cannam@154 15479 \`$as_me' instantiates files and other configuration actions
cannam@154 15480 from templates according to the current configuration. Unless the files
cannam@154 15481 and actions are specified as TAGs, all are instantiated by default.
cannam@154 15482
cannam@154 15483 Usage: $0 [OPTION]... [TAG]...
cannam@154 15484
cannam@154 15485 -h, --help print this help, then exit
cannam@154 15486 -V, --version print version number and configuration settings, then exit
cannam@154 15487 --config print configuration, then exit
cannam@154 15488 -q, --quiet, --silent
cannam@154 15489 do not print progress messages
cannam@154 15490 -d, --debug don't remove temporary files
cannam@154 15491 --recheck update $as_me by reconfiguring in the same conditions
cannam@154 15492 --file=FILE[:TEMPLATE]
cannam@154 15493 instantiate the configuration file FILE
cannam@154 15494 --header=FILE[:TEMPLATE]
cannam@154 15495 instantiate the configuration header FILE
cannam@154 15496
cannam@154 15497 Configuration files:
cannam@154 15498 $config_files
cannam@154 15499
cannam@154 15500 Configuration headers:
cannam@154 15501 $config_headers
cannam@154 15502
cannam@154 15503 Configuration commands:
cannam@154 15504 $config_commands
cannam@154 15505
cannam@154 15506 Report bugs to <opus@xiph.org>."
cannam@154 15507
cannam@154 15508 _ACEOF
cannam@154 15509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@154 15510 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cannam@154 15511 ac_cs_version="\\
cannam@154 15512 opus config.status 1.3
cannam@154 15513 configured by $0, generated by GNU Autoconf 2.69,
cannam@154 15514 with options \\"\$ac_cs_config\\"
cannam@154 15515
cannam@154 15516 Copyright (C) 2012 Free Software Foundation, Inc.
cannam@154 15517 This config.status script is free software; the Free Software Foundation
cannam@154 15518 gives unlimited permission to copy, distribute and modify it."
cannam@154 15519
cannam@154 15520 ac_pwd='$ac_pwd'
cannam@154 15521 srcdir='$srcdir'
cannam@154 15522 INSTALL='$INSTALL'
cannam@154 15523 MKDIR_P='$MKDIR_P'
cannam@154 15524 AWK='$AWK'
cannam@154 15525 test -n "\$AWK" || AWK=awk
cannam@154 15526 _ACEOF
cannam@154 15527
cannam@154 15528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@154 15529 # The default lists apply if the user does not specify any file.
cannam@154 15530 ac_need_defaults=:
cannam@154 15531 while test $# != 0
cannam@154 15532 do
cannam@154 15533 case $1 in
cannam@154 15534 --*=?*)
cannam@154 15535 ac_option=`expr "X$1" : 'X\([^=]*\)='`
cannam@154 15536 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
cannam@154 15537 ac_shift=:
cannam@154 15538 ;;
cannam@154 15539 --*=)
cannam@154 15540 ac_option=`expr "X$1" : 'X\([^=]*\)='`
cannam@154 15541 ac_optarg=
cannam@154 15542 ac_shift=:
cannam@154 15543 ;;
cannam@154 15544 *)
cannam@154 15545 ac_option=$1
cannam@154 15546 ac_optarg=$2
cannam@154 15547 ac_shift=shift
cannam@154 15548 ;;
cannam@154 15549 esac
cannam@154 15550
cannam@154 15551 case $ac_option in
cannam@154 15552 # Handling of the options.
cannam@154 15553 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
cannam@154 15554 ac_cs_recheck=: ;;
cannam@154 15555 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
cannam@154 15556 $as_echo "$ac_cs_version"; exit ;;
cannam@154 15557 --config | --confi | --conf | --con | --co | --c )
cannam@154 15558 $as_echo "$ac_cs_config"; exit ;;
cannam@154 15559 --debug | --debu | --deb | --de | --d | -d )
cannam@154 15560 debug=: ;;
cannam@154 15561 --file | --fil | --fi | --f )
cannam@154 15562 $ac_shift
cannam@154 15563 case $ac_optarg in
cannam@154 15564 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@154 15565 '') as_fn_error $? "missing file argument" ;;
cannam@154 15566 esac
cannam@154 15567 as_fn_append CONFIG_FILES " '$ac_optarg'"
cannam@154 15568 ac_need_defaults=false;;
cannam@154 15569 --header | --heade | --head | --hea )
cannam@154 15570 $ac_shift
cannam@154 15571 case $ac_optarg in
cannam@154 15572 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@154 15573 esac
cannam@154 15574 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cannam@154 15575 ac_need_defaults=false;;
cannam@154 15576 --he | --h)
cannam@154 15577 # Conflict between --help and --header
cannam@154 15578 as_fn_error $? "ambiguous option: \`$1'
cannam@154 15579 Try \`$0 --help' for more information.";;
cannam@154 15580 --help | --hel | -h )
cannam@154 15581 $as_echo "$ac_cs_usage"; exit ;;
cannam@154 15582 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@154 15583 | -silent | --silent | --silen | --sile | --sil | --si | --s)
cannam@154 15584 ac_cs_silent=: ;;
cannam@154 15585
cannam@154 15586 # This is an error.
cannam@154 15587 -*) as_fn_error $? "unrecognized option: \`$1'
cannam@154 15588 Try \`$0 --help' for more information." ;;
cannam@154 15589
cannam@154 15590 *) as_fn_append ac_config_targets " $1"
cannam@154 15591 ac_need_defaults=false ;;
cannam@154 15592
cannam@154 15593 esac
cannam@154 15594 shift
cannam@154 15595 done
cannam@154 15596
cannam@154 15597 ac_configure_extra_args=
cannam@154 15598
cannam@154 15599 if $ac_cs_silent; then
cannam@154 15600 exec 6>/dev/null
cannam@154 15601 ac_configure_extra_args="$ac_configure_extra_args --silent"
cannam@154 15602 fi
cannam@154 15603
cannam@154 15604 _ACEOF
cannam@154 15605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@154 15606 if \$ac_cs_recheck; then
cannam@154 15607 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cannam@154 15608 shift
cannam@154 15609 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
cannam@154 15610 CONFIG_SHELL='$SHELL'
cannam@154 15611 export CONFIG_SHELL
cannam@154 15612 exec "\$@"
cannam@154 15613 fi
cannam@154 15614
cannam@154 15615 _ACEOF
cannam@154 15616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@154 15617 exec 5>>config.log
cannam@154 15618 {
cannam@154 15619 echo
cannam@154 15620 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
cannam@154 15621 ## Running $as_me. ##
cannam@154 15622 _ASBOX
cannam@154 15623 $as_echo "$ac_log"
cannam@154 15624 } >&5
cannam@154 15625
cannam@154 15626 _ACEOF
cannam@154 15627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@154 15628 #
cannam@154 15629 # INIT-COMMANDS
cannam@154 15630 #
cannam@154 15631 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
cannam@154 15632
cannam@154 15633
cannam@154 15634 # The HP-UX ksh and POSIX shell print the target directory to stdout
cannam@154 15635 # if CDPATH is set.
cannam@154 15636 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cannam@154 15637
cannam@154 15638 sed_quote_subst='$sed_quote_subst'
cannam@154 15639 double_quote_subst='$double_quote_subst'
cannam@154 15640 delay_variable_subst='$delay_variable_subst'
cannam@154 15641 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
cannam@154 15642 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
cannam@154 15643 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
cannam@154 15644 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
cannam@154 15645 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
cannam@154 15646 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cannam@154 15647 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
cannam@154 15648 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
cannam@154 15649 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
cannam@154 15650 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cannam@154 15651 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
cannam@154 15652 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
cannam@154 15653 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
cannam@154 15654 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
cannam@154 15655 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
cannam@154 15656 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
cannam@154 15657 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
cannam@154 15658 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
cannam@154 15659 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
cannam@154 15660 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
cannam@154 15661 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
cannam@154 15662 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
cannam@154 15663 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
cannam@154 15664 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
cannam@154 15665 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
cannam@154 15666 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
cannam@154 15667 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
cannam@154 15668 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
cannam@154 15669 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
cannam@154 15670 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cannam@154 15671 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
cannam@154 15672 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cannam@154 15673 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
cannam@154 15674 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
cannam@154 15675 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
cannam@154 15676 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
cannam@154 15677 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cannam@154 15678 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
cannam@154 15679 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
cannam@154 15680 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
cannam@154 15681 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cannam@154 15682 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
cannam@154 15683 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cannam@154 15684 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cannam@154 15685 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
cannam@154 15686 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
cannam@154 15687 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@154 15688 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@154 15689 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
cannam@154 15690 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
cannam@154 15691 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
cannam@154 15692 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
cannam@154 15693 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
cannam@154 15694 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
cannam@154 15695 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
cannam@154 15696 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
cannam@154 15697 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
cannam@154 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"`'
cannam@154 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"`'
cannam@154 15700 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
cannam@154 15701 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
cannam@154 15702 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cannam@154 15703 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
cannam@154 15704 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
cannam@154 15705 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
cannam@154 15706 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cannam@154 15707 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cannam@154 15708 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cannam@154 15709 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
cannam@154 15710 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
cannam@154 15711 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cannam@154 15712 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cannam@154 15713 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
cannam@154 15714 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
cannam@154 15715 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
cannam@154 15716 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
cannam@154 15717 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
cannam@154 15718 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
cannam@154 15719 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
cannam@154 15720 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
cannam@154 15721 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
cannam@154 15722 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
cannam@154 15723 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
cannam@154 15724 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
cannam@154 15725 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
cannam@154 15726 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
cannam@154 15727 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
cannam@154 15728 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
cannam@154 15729 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
cannam@154 15730 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
cannam@154 15731 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
cannam@154 15732 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
cannam@154 15733 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
cannam@154 15734 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
cannam@154 15735 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cannam@154 15736 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
cannam@154 15737 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
cannam@154 15738 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
cannam@154 15739 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
cannam@154 15740 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
cannam@154 15741 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
cannam@154 15742 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
cannam@154 15743 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cannam@154 15744 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
cannam@154 15745 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
cannam@154 15746 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
cannam@154 15747 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
cannam@154 15748 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cannam@154 15749 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cannam@154 15750 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
cannam@154 15751 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
cannam@154 15752 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
cannam@154 15753 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
cannam@154 15754 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
cannam@154 15755 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
cannam@154 15756 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
cannam@154 15757 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
cannam@154 15758 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
cannam@154 15759 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
cannam@154 15760 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
cannam@154 15761 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
cannam@154 15762 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@154 15763 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@154 15764 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
cannam@154 15765 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
cannam@154 15766 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
cannam@154 15767 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
cannam@154 15768 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
cannam@154 15769 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
cannam@154 15770 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
cannam@154 15771 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
cannam@154 15772 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
cannam@154 15773 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
cannam@154 15774 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
cannam@154 15775 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
cannam@154 15776
cannam@154 15777 LTCC='$LTCC'
cannam@154 15778 LTCFLAGS='$LTCFLAGS'
cannam@154 15779 compiler='$compiler_DEFAULT'
cannam@154 15780
cannam@154 15781 # A function that is used when there is no print builtin or printf.
cannam@154 15782 func_fallback_echo ()
cannam@154 15783 {
cannam@154 15784 eval 'cat <<_LTECHO_EOF
cannam@154 15785 \$1
cannam@154 15786 _LTECHO_EOF'
cannam@154 15787 }
cannam@154 15788
cannam@154 15789 # Quote evaled strings.
cannam@154 15790 for var in SHELL \
cannam@154 15791 ECHO \
cannam@154 15792 PATH_SEPARATOR \
cannam@154 15793 SED \
cannam@154 15794 GREP \
cannam@154 15795 EGREP \
cannam@154 15796 FGREP \
cannam@154 15797 LD \
cannam@154 15798 NM \
cannam@154 15799 LN_S \
cannam@154 15800 lt_SP2NL \
cannam@154 15801 lt_NL2SP \
cannam@154 15802 reload_flag \
cannam@154 15803 OBJDUMP \
cannam@154 15804 deplibs_check_method \
cannam@154 15805 file_magic_cmd \
cannam@154 15806 file_magic_glob \
cannam@154 15807 want_nocaseglob \
cannam@154 15808 DLLTOOL \
cannam@154 15809 sharedlib_from_linklib_cmd \
cannam@154 15810 AR \
cannam@154 15811 AR_FLAGS \
cannam@154 15812 archiver_list_spec \
cannam@154 15813 STRIP \
cannam@154 15814 RANLIB \
cannam@154 15815 CC \
cannam@154 15816 CFLAGS \
cannam@154 15817 compiler \
cannam@154 15818 lt_cv_sys_global_symbol_pipe \
cannam@154 15819 lt_cv_sys_global_symbol_to_cdecl \
cannam@154 15820 lt_cv_sys_global_symbol_to_import \
cannam@154 15821 lt_cv_sys_global_symbol_to_c_name_address \
cannam@154 15822 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cannam@154 15823 lt_cv_nm_interface \
cannam@154 15824 nm_file_list_spec \
cannam@154 15825 lt_cv_truncate_bin \
cannam@154 15826 lt_prog_compiler_no_builtin_flag \
cannam@154 15827 lt_prog_compiler_pic \
cannam@154 15828 lt_prog_compiler_wl \
cannam@154 15829 lt_prog_compiler_static \
cannam@154 15830 lt_cv_prog_compiler_c_o \
cannam@154 15831 need_locks \
cannam@154 15832 MANIFEST_TOOL \
cannam@154 15833 DSYMUTIL \
cannam@154 15834 NMEDIT \
cannam@154 15835 LIPO \
cannam@154 15836 OTOOL \
cannam@154 15837 OTOOL64 \
cannam@154 15838 shrext_cmds \
cannam@154 15839 export_dynamic_flag_spec \
cannam@154 15840 whole_archive_flag_spec \
cannam@154 15841 compiler_needs_object \
cannam@154 15842 with_gnu_ld \
cannam@154 15843 allow_undefined_flag \
cannam@154 15844 no_undefined_flag \
cannam@154 15845 hardcode_libdir_flag_spec \
cannam@154 15846 hardcode_libdir_separator \
cannam@154 15847 exclude_expsyms \
cannam@154 15848 include_expsyms \
cannam@154 15849 file_list_spec \
cannam@154 15850 variables_saved_for_relink \
cannam@154 15851 libname_spec \
cannam@154 15852 library_names_spec \
cannam@154 15853 soname_spec \
cannam@154 15854 install_override_mode \
cannam@154 15855 finish_eval \
cannam@154 15856 old_striplib \
cannam@154 15857 striplib; do
cannam@154 15858 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cannam@154 15859 *[\\\\\\\`\\"\\\$]*)
cannam@154 15860 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
cannam@154 15861 ;;
cannam@154 15862 *)
cannam@154 15863 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
cannam@154 15864 ;;
cannam@154 15865 esac
cannam@154 15866 done
cannam@154 15867
cannam@154 15868 # Double-quote double-evaled strings.
cannam@154 15869 for var in reload_cmds \
cannam@154 15870 old_postinstall_cmds \
cannam@154 15871 old_postuninstall_cmds \
cannam@154 15872 old_archive_cmds \
cannam@154 15873 extract_expsyms_cmds \
cannam@154 15874 old_archive_from_new_cmds \
cannam@154 15875 old_archive_from_expsyms_cmds \
cannam@154 15876 archive_cmds \
cannam@154 15877 archive_expsym_cmds \
cannam@154 15878 module_cmds \
cannam@154 15879 module_expsym_cmds \
cannam@154 15880 export_symbols_cmds \
cannam@154 15881 prelink_cmds \
cannam@154 15882 postlink_cmds \
cannam@154 15883 postinstall_cmds \
cannam@154 15884 postuninstall_cmds \
cannam@154 15885 finish_cmds \
cannam@154 15886 sys_lib_search_path_spec \
cannam@154 15887 configure_time_dlsearch_path \
cannam@154 15888 configure_time_lt_sys_library_path; do
cannam@154 15889 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cannam@154 15890 *[\\\\\\\`\\"\\\$]*)
cannam@154 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
cannam@154 15892 ;;
cannam@154 15893 *)
cannam@154 15894 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
cannam@154 15895 ;;
cannam@154 15896 esac
cannam@154 15897 done
cannam@154 15898
cannam@154 15899 ac_aux_dir='$ac_aux_dir'
cannam@154 15900
cannam@154 15901 # See if we are running on zsh, and set the options that allow our
cannam@154 15902 # commands through without removal of \ escapes INIT.
cannam@154 15903 if test -n "\${ZSH_VERSION+set}"; then
cannam@154 15904 setopt NO_GLOB_SUBST
cannam@154 15905 fi
cannam@154 15906
cannam@154 15907
cannam@154 15908 PACKAGE='$PACKAGE'
cannam@154 15909 VERSION='$VERSION'
cannam@154 15910 RM='$RM'
cannam@154 15911 ofile='$ofile'
cannam@154 15912
cannam@154 15913
cannam@154 15914
cannam@154 15915
cannam@154 15916 _ACEOF
cannam@154 15917
cannam@154 15918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@154 15919
cannam@154 15920 # Handling of arguments.
cannam@154 15921 for ac_config_target in $ac_config_targets
cannam@154 15922 do
cannam@154 15923 case $ac_config_target in
cannam@154 15924 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
cannam@154 15925 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cannam@154 15926 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
cannam@154 15927 "opus.pc") CONFIG_FILES="$CONFIG_FILES opus.pc" ;;
cannam@154 15928 "opus-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES opus-uninstalled.pc" ;;
cannam@154 15929 "celt/arm/armopts.s") CONFIG_FILES="$CONFIG_FILES celt/arm/armopts.s" ;;
cannam@154 15930 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
cannam@154 15931 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
cannam@154 15932 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
cannam@154 15933
cannam@154 15934 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cannam@154 15935 esac
cannam@154 15936 done
cannam@154 15937
cannam@154 15938
cannam@154 15939 # If the user did not use the arguments to specify the items to instantiate,
cannam@154 15940 # then the envvar interface is used. Set only those that are not.
cannam@154 15941 # We use the long form for the default assignment because of an extremely
cannam@154 15942 # bizarre bug on SunOS 4.1.3.
cannam@154 15943 if $ac_need_defaults; then
cannam@154 15944 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
cannam@154 15945 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
cannam@154 15946 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
cannam@154 15947 fi
cannam@154 15948
cannam@154 15949 # Have a temporary directory for convenience. Make it in the build tree
cannam@154 15950 # simply because there is no reason against having it here, and in addition,
cannam@154 15951 # creating and moving files from /tmp can sometimes cause problems.
cannam@154 15952 # Hook for its removal unless debugging.
cannam@154 15953 # Note that there is a small window in which the directory will not be cleaned:
cannam@154 15954 # after its creation but before its name has been assigned to `$tmp'.
cannam@154 15955 $debug ||
cannam@154 15956 {
cannam@154 15957 tmp= ac_tmp=
cannam@154 15958 trap 'exit_status=$?
cannam@154 15959 : "${ac_tmp:=$tmp}"
cannam@154 15960 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cannam@154 15961 ' 0
cannam@154 15962 trap 'as_fn_exit 1' 1 2 13 15
cannam@154 15963 }
cannam@154 15964 # Create a (secure) tmp directory for tmp files.
cannam@154 15965
cannam@154 15966 {
cannam@154 15967 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cannam@154 15968 test -d "$tmp"
cannam@154 15969 } ||
cannam@154 15970 {
cannam@154 15971 tmp=./conf$$-$RANDOM
cannam@154 15972 (umask 077 && mkdir "$tmp")
cannam@154 15973 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cannam@154 15974 ac_tmp=$tmp
cannam@154 15975
cannam@154 15976 # Set up the scripts for CONFIG_FILES section.
cannam@154 15977 # No need to generate them if there are no CONFIG_FILES.
cannam@154 15978 # This happens for instance with `./config.status config.h'.
cannam@154 15979 if test -n "$CONFIG_FILES"; then
cannam@154 15980
cannam@154 15981
cannam@154 15982 ac_cr=`echo X | tr X '\015'`
cannam@154 15983 # On cygwin, bash can eat \r inside `` if the user requested igncr.
cannam@154 15984 # But we know of no other shell where ac_cr would be empty at this
cannam@154 15985 # point, so we can use a bashism as a fallback.
cannam@154 15986 if test "x$ac_cr" = x; then
cannam@154 15987 eval ac_cr=\$\'\\r\'
cannam@154 15988 fi
cannam@154 15989 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
cannam@154 15990 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cannam@154 15991 ac_cs_awk_cr='\\r'
cannam@154 15992 else
cannam@154 15993 ac_cs_awk_cr=$ac_cr
cannam@154 15994 fi
cannam@154 15995
cannam@154 15996 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cannam@154 15997 _ACEOF
cannam@154 15998
cannam@154 15999
cannam@154 16000 {
cannam@154 16001 echo "cat >conf$$subs.awk <<_ACEOF" &&
cannam@154 16002 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
cannam@154 16003 echo "_ACEOF"
cannam@154 16004 } >conf$$subs.sh ||
cannam@154 16005 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cannam@154 16006 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cannam@154 16007 ac_delim='%!_!# '
cannam@154 16008 for ac_last_try in false false false false false :; do
cannam@154 16009 . ./conf$$subs.sh ||
cannam@154 16010 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cannam@154 16011
cannam@154 16012 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
cannam@154 16013 if test $ac_delim_n = $ac_delim_num; then
cannam@154 16014 break
cannam@154 16015 elif $ac_last_try; then
cannam@154 16016 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cannam@154 16017 else
cannam@154 16018 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
cannam@154 16019 fi
cannam@154 16020 done
cannam@154 16021 rm -f conf$$subs.sh
cannam@154 16022
cannam@154 16023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@154 16024 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cannam@154 16025 _ACEOF
cannam@154 16026 sed -n '
cannam@154 16027 h
cannam@154 16028 s/^/S["/; s/!.*/"]=/
cannam@154 16029 p
cannam@154 16030 g
cannam@154 16031 s/^[^!]*!//
cannam@154 16032 :repl
cannam@154 16033 t repl
cannam@154 16034 s/'"$ac_delim"'$//
cannam@154 16035 t delim
cannam@154 16036 :nl
cannam@154 16037 h
cannam@154 16038 s/\(.\{148\}\)..*/\1/
cannam@154 16039 t more1
cannam@154 16040 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
cannam@154 16041 p
cannam@154 16042 n
cannam@154 16043 b repl
cannam@154 16044 :more1
cannam@154 16045 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
cannam@154 16046 p
cannam@154 16047 g
cannam@154 16048 s/.\{148\}//
cannam@154 16049 t nl
cannam@154 16050 :delim
cannam@154 16051 h
cannam@154 16052 s/\(.\{148\}\)..*/\1/
cannam@154 16053 t more2
cannam@154 16054 s/["\\]/\\&/g; s/^/"/; s/$/"/
cannam@154 16055 p
cannam@154 16056 b
cannam@154 16057 :more2
cannam@154 16058 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
cannam@154 16059 p
cannam@154 16060 g
cannam@154 16061 s/.\{148\}//
cannam@154 16062 t delim
cannam@154 16063 ' <conf$$subs.awk | sed '
cannam@154 16064 /^[^""]/{
cannam@154 16065 N
cannam@154 16066 s/\n//
cannam@154 16067 }
cannam@154 16068 ' >>$CONFIG_STATUS || ac_write_fail=1
cannam@154 16069 rm -f conf$$subs.awk
cannam@154 16070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@154 16071 _ACAWK
cannam@154 16072 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cannam@154 16073 for (key in S) S_is_set[key] = 1
cannam@154 16074 FS = ""
cannam@154 16075
cannam@154 16076 }
cannam@154 16077 {
cannam@154 16078 line = $ 0
cannam@154 16079 nfields = split(line, field, "@")
cannam@154 16080 substed = 0
cannam@154 16081 len = length(field[1])
cannam@154 16082 for (i = 2; i < nfields; i++) {
cannam@154 16083 key = field[i]
cannam@154 16084 keylen = length(key)
cannam@154 16085 if (S_is_set[key]) {
cannam@154 16086 value = S[key]
cannam@154 16087 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
cannam@154 16088 len += length(value) + length(field[++i])
cannam@154 16089 substed = 1
cannam@154 16090 } else
cannam@154 16091 len += 1 + keylen
cannam@154 16092 }
cannam@154 16093
cannam@154 16094 print line
cannam@154 16095 }
cannam@154 16096
cannam@154 16097 _ACAWK
cannam@154 16098 _ACEOF
cannam@154 16099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@154 16100 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
cannam@154 16101 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
cannam@154 16102 else
cannam@154 16103 cat
cannam@154 16104 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cannam@154 16105 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cannam@154 16106 _ACEOF
cannam@154 16107
cannam@154 16108 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
cannam@154 16109 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cannam@154 16110 # trailing colons and then remove the whole line if VPATH becomes empty
cannam@154 16111 # (actually we leave an empty line to preserve line numbers).
cannam@154 16112 if test "x$srcdir" = x.; then
cannam@154 16113 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
cannam@154 16114 h
cannam@154 16115 s///
cannam@154 16116 s/^/:/
cannam@154 16117 s/[ ]*$/:/
cannam@154 16118 s/:\$(srcdir):/:/g
cannam@154 16119 s/:\${srcdir}:/:/g
cannam@154 16120 s/:@srcdir@:/:/g
cannam@154 16121 s/^:*//
cannam@154 16122 s/:*$//
cannam@154 16123 x
cannam@154 16124 s/\(=[ ]*\).*/\1/
cannam@154 16125 G
cannam@154 16126 s/\n//
cannam@154 16127 s/^[^=]*=[ ]*$//
cannam@154 16128 }'
cannam@154 16129 fi
cannam@154 16130
cannam@154 16131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@154 16132 fi # test -n "$CONFIG_FILES"
cannam@154 16133
cannam@154 16134 # Set up the scripts for CONFIG_HEADERS section.
cannam@154 16135 # No need to generate them if there are no CONFIG_HEADERS.
cannam@154 16136 # This happens for instance with `./config.status Makefile'.
cannam@154 16137 if test -n "$CONFIG_HEADERS"; then
cannam@154 16138 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cannam@154 16139 BEGIN {
cannam@154 16140 _ACEOF
cannam@154 16141
cannam@154 16142 # Transform confdefs.h into an awk script `defines.awk', embedded as
cannam@154 16143 # here-document in config.status, that substitutes the proper values into
cannam@154 16144 # config.h.in to produce config.h.
cannam@154 16145
cannam@154 16146 # Create a delimiter string that does not exist in confdefs.h, to ease
cannam@154 16147 # handling of long lines.
cannam@154 16148 ac_delim='%!_!# '
cannam@154 16149 for ac_last_try in false false :; do
cannam@154 16150 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
cannam@154 16151 if test -z "$ac_tt"; then
cannam@154 16152 break
cannam@154 16153 elif $ac_last_try; then
cannam@154 16154 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cannam@154 16155 else
cannam@154 16156 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
cannam@154 16157 fi
cannam@154 16158 done
cannam@154 16159
cannam@154 16160 # For the awk script, D is an array of macro values keyed by name,
cannam@154 16161 # likewise P contains macro parameters if any. Preserve backslash
cannam@154 16162 # newline sequences.
cannam@154 16163
cannam@154 16164 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
cannam@154 16165 sed -n '
cannam@154 16166 s/.\{148\}/&'"$ac_delim"'/g
cannam@154 16167 t rset
cannam@154 16168 :rset
cannam@154 16169 s/^[ ]*#[ ]*define[ ][ ]*/ /
cannam@154 16170 t def
cannam@154 16171 d
cannam@154 16172 :def
cannam@154 16173 s/\\$//
cannam@154 16174 t bsnl
cannam@154 16175 s/["\\]/\\&/g
cannam@154 16176 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
cannam@154 16177 D["\1"]=" \3"/p
cannam@154 16178 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
cannam@154 16179 d
cannam@154 16180 :bsnl
cannam@154 16181 s/["\\]/\\&/g
cannam@154 16182 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
cannam@154 16183 D["\1"]=" \3\\\\\\n"\\/p
cannam@154 16184 t cont
cannam@154 16185 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
cannam@154 16186 t cont
cannam@154 16187 d
cannam@154 16188 :cont
cannam@154 16189 n
cannam@154 16190 s/.\{148\}/&'"$ac_delim"'/g
cannam@154 16191 t clear
cannam@154 16192 :clear
cannam@154 16193 s/\\$//
cannam@154 16194 t bsnlc
cannam@154 16195 s/["\\]/\\&/g; s/^/"/; s/$/"/p
cannam@154 16196 d
cannam@154 16197 :bsnlc
cannam@154 16198 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
cannam@154 16199 b cont
cannam@154 16200 ' <confdefs.h | sed '
cannam@154 16201 s/'"$ac_delim"'/"\\\
cannam@154 16202 "/g' >>$CONFIG_STATUS || ac_write_fail=1
cannam@154 16203
cannam@154 16204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@154 16205 for (key in D) D_is_set[key] = 1
cannam@154 16206 FS = ""
cannam@154 16207 }
cannam@154 16208 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
cannam@154 16209 line = \$ 0
cannam@154 16210 split(line, arg, " ")
cannam@154 16211 if (arg[1] == "#") {
cannam@154 16212 defundef = arg[2]
cannam@154 16213 mac1 = arg[3]
cannam@154 16214 } else {
cannam@154 16215 defundef = substr(arg[1], 2)
cannam@154 16216 mac1 = arg[2]
cannam@154 16217 }
cannam@154 16218 split(mac1, mac2, "(") #)
cannam@154 16219 macro = mac2[1]
cannam@154 16220 prefix = substr(line, 1, index(line, defundef) - 1)
cannam@154 16221 if (D_is_set[macro]) {
cannam@154 16222 # Preserve the white space surrounding the "#".
cannam@154 16223 print prefix "define", macro P[macro] D[macro]
cannam@154 16224 next
cannam@154 16225 } else {
cannam@154 16226 # Replace #undef with comments. This is necessary, for example,
cannam@154 16227 # in the case of _POSIX_SOURCE, which is predefined and required
cannam@154 16228 # on some systems where configure will not decide to define it.
cannam@154 16229 if (defundef == "undef") {
cannam@154 16230 print "/*", prefix defundef, macro, "*/"
cannam@154 16231 next
cannam@154 16232 }
cannam@154 16233 }
cannam@154 16234 }
cannam@154 16235 { print }
cannam@154 16236 _ACAWK
cannam@154 16237 _ACEOF
cannam@154 16238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@154 16239 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cannam@154 16240 fi # test -n "$CONFIG_HEADERS"
cannam@154 16241
cannam@154 16242
cannam@154 16243 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
cannam@154 16244 shift
cannam@154 16245 for ac_tag
cannam@154 16246 do
cannam@154 16247 case $ac_tag in
cannam@154 16248 :[FHLC]) ac_mode=$ac_tag; continue;;
cannam@154 16249 esac
cannam@154 16250 case $ac_mode$ac_tag in
cannam@154 16251 :[FHL]*:*);;
cannam@154 16252 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cannam@154 16253 :[FH]-) ac_tag=-:-;;
cannam@154 16254 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
cannam@154 16255 esac
cannam@154 16256 ac_save_IFS=$IFS
cannam@154 16257 IFS=:
cannam@154 16258 set x $ac_tag
cannam@154 16259 IFS=$ac_save_IFS
cannam@154 16260 shift
cannam@154 16261 ac_file=$1
cannam@154 16262 shift
cannam@154 16263
cannam@154 16264 case $ac_mode in
cannam@154 16265 :L) ac_source=$1;;
cannam@154 16266 :[FH])
cannam@154 16267 ac_file_inputs=
cannam@154 16268 for ac_f
cannam@154 16269 do
cannam@154 16270 case $ac_f in
cannam@154 16271 -) ac_f="$ac_tmp/stdin";;
cannam@154 16272 *) # Look for the file first in the build tree, then in the source tree
cannam@154 16273 # (if the path is not absolute). The absolute path cannot be DOS-style,
cannam@154 16274 # because $ac_f cannot contain `:'.
cannam@154 16275 test -f "$ac_f" ||
cannam@154 16276 case $ac_f in
cannam@154 16277 [\\/$]*) false;;
cannam@154 16278 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
cannam@154 16279 esac ||
cannam@154 16280 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cannam@154 16281 esac
cannam@154 16282 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cannam@154 16283 as_fn_append ac_file_inputs " '$ac_f'"
cannam@154 16284 done
cannam@154 16285
cannam@154 16286 # Let's still pretend it is `configure' which instantiates (i.e., don't
cannam@154 16287 # use $as_me), people would be surprised to read:
cannam@154 16288 # /* config.h. Generated by config.status. */
cannam@154 16289 configure_input='Generated from '`
cannam@154 16290 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
cannam@154 16291 `' by configure.'
cannam@154 16292 if test x"$ac_file" != x-; then
cannam@154 16293 configure_input="$ac_file. $configure_input"
cannam@154 16294 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cannam@154 16295 $as_echo "$as_me: creating $ac_file" >&6;}
cannam@154 16296 fi
cannam@154 16297 # Neutralize special characters interpreted by sed in replacement strings.
cannam@154 16298 case $configure_input in #(
cannam@154 16299 *\&* | *\|* | *\\* )
cannam@154 16300 ac_sed_conf_input=`$as_echo "$configure_input" |
cannam@154 16301 sed 's/[\\\\&|]/\\\\&/g'`;; #(
cannam@154 16302 *) ac_sed_conf_input=$configure_input;;
cannam@154 16303 esac
cannam@154 16304
cannam@154 16305 case $ac_tag in
cannam@154 16306 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cannam@154 16307 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cannam@154 16308 esac
cannam@154 16309 ;;
cannam@154 16310 esac
cannam@154 16311
cannam@154 16312 ac_dir=`$as_dirname -- "$ac_file" ||
cannam@154 16313 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@154 16314 X"$ac_file" : 'X\(//\)[^/]' \| \
cannam@154 16315 X"$ac_file" : 'X\(//\)$' \| \
cannam@154 16316 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
cannam@154 16317 $as_echo X"$ac_file" |
cannam@154 16318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@154 16319 s//\1/
cannam@154 16320 q
cannam@154 16321 }
cannam@154 16322 /^X\(\/\/\)[^/].*/{
cannam@154 16323 s//\1/
cannam@154 16324 q
cannam@154 16325 }
cannam@154 16326 /^X\(\/\/\)$/{
cannam@154 16327 s//\1/
cannam@154 16328 q
cannam@154 16329 }
cannam@154 16330 /^X\(\/\).*/{
cannam@154 16331 s//\1/
cannam@154 16332 q
cannam@154 16333 }
cannam@154 16334 s/.*/./; q'`
cannam@154 16335 as_dir="$ac_dir"; as_fn_mkdir_p
cannam@154 16336 ac_builddir=.
cannam@154 16337
cannam@154 16338 case "$ac_dir" in
cannam@154 16339 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@154 16340 *)
cannam@154 16341 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
cannam@154 16342 # A ".." for each directory in $ac_dir_suffix.
cannam@154 16343 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
cannam@154 16344 case $ac_top_builddir_sub in
cannam@154 16345 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@154 16346 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
cannam@154 16347 esac ;;
cannam@154 16348 esac
cannam@154 16349 ac_abs_top_builddir=$ac_pwd
cannam@154 16350 ac_abs_builddir=$ac_pwd$ac_dir_suffix
cannam@154 16351 # for backward compatibility:
cannam@154 16352 ac_top_builddir=$ac_top_build_prefix
cannam@154 16353
cannam@154 16354 case $srcdir in
cannam@154 16355 .) # We are building in place.
cannam@154 16356 ac_srcdir=.
cannam@154 16357 ac_top_srcdir=$ac_top_builddir_sub
cannam@154 16358 ac_abs_top_srcdir=$ac_pwd ;;
cannam@154 16359 [\\/]* | ?:[\\/]* ) # Absolute name.
cannam@154 16360 ac_srcdir=$srcdir$ac_dir_suffix;
cannam@154 16361 ac_top_srcdir=$srcdir
cannam@154 16362 ac_abs_top_srcdir=$srcdir ;;
cannam@154 16363 *) # Relative name.
cannam@154 16364 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
cannam@154 16365 ac_top_srcdir=$ac_top_build_prefix$srcdir
cannam@154 16366 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
cannam@154 16367 esac
cannam@154 16368 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
cannam@154 16369
cannam@154 16370
cannam@154 16371 case $ac_mode in
cannam@154 16372 :F)
cannam@154 16373 #
cannam@154 16374 # CONFIG_FILE
cannam@154 16375 #
cannam@154 16376
cannam@154 16377 case $INSTALL in
cannam@154 16378 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cannam@154 16379 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
cannam@154 16380 esac
cannam@154 16381 ac_MKDIR_P=$MKDIR_P
cannam@154 16382 case $MKDIR_P in
cannam@154 16383 [\\/$]* | ?:[\\/]* ) ;;
cannam@154 16384 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
cannam@154 16385 esac
cannam@154 16386 _ACEOF
cannam@154 16387
cannam@154 16388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@154 16389 # If the template does not know about datarootdir, expand it.
cannam@154 16390 # FIXME: This hack should be removed a few years after 2.60.
cannam@154 16391 ac_datarootdir_hack=; ac_datarootdir_seen=
cannam@154 16392 ac_sed_dataroot='
cannam@154 16393 /datarootdir/ {
cannam@154 16394 p
cannam@154 16395 q
cannam@154 16396 }
cannam@154 16397 /@datadir@/p
cannam@154 16398 /@docdir@/p
cannam@154 16399 /@infodir@/p
cannam@154 16400 /@localedir@/p
cannam@154 16401 /@mandir@/p'
cannam@154 16402 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
cannam@154 16403 *datarootdir*) ac_datarootdir_seen=yes;;
cannam@154 16404 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cannam@154 16405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cannam@154 16406 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
cannam@154 16407 _ACEOF
cannam@154 16408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@154 16409 ac_datarootdir_hack='
cannam@154 16410 s&@datadir@&$datadir&g
cannam@154 16411 s&@docdir@&$docdir&g
cannam@154 16412 s&@infodir@&$infodir&g
cannam@154 16413 s&@localedir@&$localedir&g
cannam@154 16414 s&@mandir@&$mandir&g
cannam@154 16415 s&\\\${datarootdir}&$datarootdir&g' ;;
cannam@154 16416 esac
cannam@154 16417 _ACEOF
cannam@154 16418
cannam@154 16419 # Neutralize VPATH when `$srcdir' = `.'.
cannam@154 16420 # Shell code in configure.ac might set extrasub.
cannam@154 16421 # FIXME: do we really want to maintain this feature?
cannam@154 16422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@154 16423 ac_sed_extra="$ac_vpsub
cannam@154 16424 $extrasub
cannam@154 16425 _ACEOF
cannam@154 16426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@154 16427 :t
cannam@154 16428 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
cannam@154 16429 s|@configure_input@|$ac_sed_conf_input|;t t
cannam@154 16430 s&@top_builddir@&$ac_top_builddir_sub&;t t
cannam@154 16431 s&@top_build_prefix@&$ac_top_build_prefix&;t t
cannam@154 16432 s&@srcdir@&$ac_srcdir&;t t
cannam@154 16433 s&@abs_srcdir@&$ac_abs_srcdir&;t t
cannam@154 16434 s&@top_srcdir@&$ac_top_srcdir&;t t
cannam@154 16435 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
cannam@154 16436 s&@builddir@&$ac_builddir&;t t
cannam@154 16437 s&@abs_builddir@&$ac_abs_builddir&;t t
cannam@154 16438 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
cannam@154 16439 s&@INSTALL@&$ac_INSTALL&;t t
cannam@154 16440 s&@MKDIR_P@&$ac_MKDIR_P&;t t
cannam@154 16441 $ac_datarootdir_hack
cannam@154 16442 "
cannam@154 16443 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
cannam@154 16444 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@154 16445
cannam@154 16446 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cannam@154 16447 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
cannam@154 16448 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
cannam@154 16449 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cannam@154 16450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cannam@154 16451 which seems to be undefined. Please make sure it is defined" >&5
cannam@154 16452 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cannam@154 16453 which seems to be undefined. Please make sure it is defined" >&2;}
cannam@154 16454
cannam@154 16455 rm -f "$ac_tmp/stdin"
cannam@154 16456 case $ac_file in
cannam@154 16457 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
cannam@154 16458 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cannam@154 16459 esac \
cannam@154 16460 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@154 16461 ;;
cannam@154 16462 :H)
cannam@154 16463 #
cannam@154 16464 # CONFIG_HEADER
cannam@154 16465 #
cannam@154 16466 if test x"$ac_file" != x-; then
cannam@154 16467 {
cannam@154 16468 $as_echo "/* $configure_input */" \
cannam@154 16469 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
cannam@154 16470 } >"$ac_tmp/config.h" \
cannam@154 16471 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@154 16472 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cannam@154 16473 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cannam@154 16474 $as_echo "$as_me: $ac_file is unchanged" >&6;}
cannam@154 16475 else
cannam@154 16476 rm -f "$ac_file"
cannam@154 16477 mv "$ac_tmp/config.h" "$ac_file" \
cannam@154 16478 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@154 16479 fi
cannam@154 16480 else
cannam@154 16481 $as_echo "/* $configure_input */" \
cannam@154 16482 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cannam@154 16483 || as_fn_error $? "could not create -" "$LINENO" 5
cannam@154 16484 fi
cannam@154 16485 # Compute "$ac_file"'s index in $config_headers.
cannam@154 16486 _am_arg="$ac_file"
cannam@154 16487 _am_stamp_count=1
cannam@154 16488 for _am_header in $config_headers :; do
cannam@154 16489 case $_am_header in
cannam@154 16490 $_am_arg | $_am_arg:* )
cannam@154 16491 break ;;
cannam@154 16492 * )
cannam@154 16493 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
cannam@154 16494 esac
cannam@154 16495 done
cannam@154 16496 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
cannam@154 16497 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@154 16498 X"$_am_arg" : 'X\(//\)[^/]' \| \
cannam@154 16499 X"$_am_arg" : 'X\(//\)$' \| \
cannam@154 16500 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
cannam@154 16501 $as_echo X"$_am_arg" |
cannam@154 16502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@154 16503 s//\1/
cannam@154 16504 q
cannam@154 16505 }
cannam@154 16506 /^X\(\/\/\)[^/].*/{
cannam@154 16507 s//\1/
cannam@154 16508 q
cannam@154 16509 }
cannam@154 16510 /^X\(\/\/\)$/{
cannam@154 16511 s//\1/
cannam@154 16512 q
cannam@154 16513 }
cannam@154 16514 /^X\(\/\).*/{
cannam@154 16515 s//\1/
cannam@154 16516 q
cannam@154 16517 }
cannam@154 16518 s/.*/./; q'`/stamp-h$_am_stamp_count
cannam@154 16519 ;;
cannam@154 16520
cannam@154 16521 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cannam@154 16522 $as_echo "$as_me: executing $ac_file commands" >&6;}
cannam@154 16523 ;;
cannam@154 16524 esac
cannam@154 16525
cannam@154 16526
cannam@154 16527 case $ac_file$ac_mode in
cannam@154 16528 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cannam@154 16529 # Older Autoconf quotes --file arguments for eval, but not when files
cannam@154 16530 # are listed without --file. Let's play safe and only enable the eval
cannam@154 16531 # if we detect the quoting.
cannam@154 16532 case $CONFIG_FILES in
cannam@154 16533 *\'*) eval set x "$CONFIG_FILES" ;;
cannam@154 16534 *) set x $CONFIG_FILES ;;
cannam@154 16535 esac
cannam@154 16536 shift
cannam@154 16537 for mf
cannam@154 16538 do
cannam@154 16539 # Strip MF so we end up with the name of the file.
cannam@154 16540 mf=`echo "$mf" | sed -e 's/:.*$//'`
cannam@154 16541 # Check whether this is an Automake generated Makefile or not.
cannam@154 16542 # We used to match only the files named 'Makefile.in', but
cannam@154 16543 # some people rename them; so instead we look at the file content.
cannam@154 16544 # Grep'ing the first line is not enough: some people post-process
cannam@154 16545 # each Makefile.in and add a new line on top of each file to say so.
cannam@154 16546 # Grep'ing the whole file is not good either: AIX grep has a line
cannam@154 16547 # limit of 2048, but all sed's we know have understand at least 4000.
cannam@154 16548 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
cannam@154 16549 dirpart=`$as_dirname -- "$mf" ||
cannam@154 16550 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@154 16551 X"$mf" : 'X\(//\)[^/]' \| \
cannam@154 16552 X"$mf" : 'X\(//\)$' \| \
cannam@154 16553 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
cannam@154 16554 $as_echo X"$mf" |
cannam@154 16555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@154 16556 s//\1/
cannam@154 16557 q
cannam@154 16558 }
cannam@154 16559 /^X\(\/\/\)[^/].*/{
cannam@154 16560 s//\1/
cannam@154 16561 q
cannam@154 16562 }
cannam@154 16563 /^X\(\/\/\)$/{
cannam@154 16564 s//\1/
cannam@154 16565 q
cannam@154 16566 }
cannam@154 16567 /^X\(\/\).*/{
cannam@154 16568 s//\1/
cannam@154 16569 q
cannam@154 16570 }
cannam@154 16571 s/.*/./; q'`
cannam@154 16572 else
cannam@154 16573 continue
cannam@154 16574 fi
cannam@154 16575 # Extract the definition of DEPDIR, am__include, and am__quote
cannam@154 16576 # from the Makefile without running 'make'.
cannam@154 16577 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
cannam@154 16578 test -z "$DEPDIR" && continue
cannam@154 16579 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cannam@154 16580 test -z "$am__include" && continue
cannam@154 16581 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cannam@154 16582 # Find all dependency output files, they are included files with
cannam@154 16583 # $(DEPDIR) in their names. We invoke sed twice because it is the
cannam@154 16584 # simplest approach to changing $(DEPDIR) to its actual value in the
cannam@154 16585 # expansion.
cannam@154 16586 for file in `sed -n "
cannam@154 16587 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cannam@154 16588 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cannam@154 16589 # Make sure the directory exists.
cannam@154 16590 test -f "$dirpart/$file" && continue
cannam@154 16591 fdir=`$as_dirname -- "$file" ||
cannam@154 16592 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@154 16593 X"$file" : 'X\(//\)[^/]' \| \
cannam@154 16594 X"$file" : 'X\(//\)$' \| \
cannam@154 16595 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
cannam@154 16596 $as_echo X"$file" |
cannam@154 16597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@154 16598 s//\1/
cannam@154 16599 q
cannam@154 16600 }
cannam@154 16601 /^X\(\/\/\)[^/].*/{
cannam@154 16602 s//\1/
cannam@154 16603 q
cannam@154 16604 }
cannam@154 16605 /^X\(\/\/\)$/{
cannam@154 16606 s//\1/
cannam@154 16607 q
cannam@154 16608 }
cannam@154 16609 /^X\(\/\).*/{
cannam@154 16610 s//\1/
cannam@154 16611 q
cannam@154 16612 }
cannam@154 16613 s/.*/./; q'`
cannam@154 16614 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cannam@154 16615 # echo "creating $dirpart/$file"
cannam@154 16616 echo '# dummy' > "$dirpart/$file"
cannam@154 16617 done
cannam@154 16618 done
cannam@154 16619 }
cannam@154 16620 ;;
cannam@154 16621 "libtool":C)
cannam@154 16622
cannam@154 16623 # See if we are running on zsh, and set the options that allow our
cannam@154 16624 # commands through without removal of \ escapes.
cannam@154 16625 if test -n "${ZSH_VERSION+set}"; then
cannam@154 16626 setopt NO_GLOB_SUBST
cannam@154 16627 fi
cannam@154 16628
cannam@154 16629 cfgfile=${ofile}T
cannam@154 16630 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
cannam@154 16631 $RM "$cfgfile"
cannam@154 16632
cannam@154 16633 cat <<_LT_EOF >> "$cfgfile"
cannam@154 16634 #! $SHELL
cannam@154 16635 # Generated automatically by $as_me ($PACKAGE) $VERSION
cannam@154 16636 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
cannam@154 16637 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
cannam@154 16638
cannam@154 16639 # Provide generalized library-building support services.
cannam@154 16640 # Written by Gordon Matzigkeit, 1996
cannam@154 16641
cannam@154 16642 # Copyright (C) 2014 Free Software Foundation, Inc.
cannam@154 16643 # This is free software; see the source for copying conditions. There is NO
cannam@154 16644 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
cannam@154 16645
cannam@154 16646 # GNU Libtool is free software; you can redistribute it and/or modify
cannam@154 16647 # it under the terms of the GNU General Public License as published by
cannam@154 16648 # the Free Software Foundation; either version 2 of of the License, or
cannam@154 16649 # (at your option) any later version.
cannam@154 16650 #
cannam@154 16651 # As a special exception to the GNU General Public License, if you
cannam@154 16652 # distribute this file as part of a program or library that is built
cannam@154 16653 # using GNU Libtool, you may include this file under the same
cannam@154 16654 # distribution terms that you use for the rest of that program.
cannam@154 16655 #
cannam@154 16656 # GNU Libtool is distributed in the hope that it will be useful, but
cannam@154 16657 # WITHOUT ANY WARRANTY; without even the implied warranty of
cannam@154 16658 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cannam@154 16659 # GNU General Public License for more details.
cannam@154 16660 #
cannam@154 16661 # You should have received a copy of the GNU General Public License
cannam@154 16662 # along with this program. If not, see <http://www.gnu.org/licenses/>.
cannam@154 16663
cannam@154 16664
cannam@154 16665 # The names of the tagged configurations supported by this script.
cannam@154 16666 available_tags=''
cannam@154 16667
cannam@154 16668 # Configured defaults for sys_lib_dlsearch_path munging.
cannam@154 16669 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
cannam@154 16670
cannam@154 16671 # ### BEGIN LIBTOOL CONFIG
cannam@154 16672
cannam@154 16673 # Which release of libtool.m4 was used?
cannam@154 16674 macro_version=$macro_version
cannam@154 16675 macro_revision=$macro_revision
cannam@154 16676
cannam@154 16677 # Whether or not to build shared libraries.
cannam@154 16678 build_libtool_libs=$enable_shared
cannam@154 16679
cannam@154 16680 # Whether or not to build static libraries.
cannam@154 16681 build_old_libs=$enable_static
cannam@154 16682
cannam@154 16683 # What type of objects to build.
cannam@154 16684 pic_mode=$pic_mode
cannam@154 16685
cannam@154 16686 # Whether or not to optimize for fast installation.
cannam@154 16687 fast_install=$enable_fast_install
cannam@154 16688
cannam@154 16689 # Shared archive member basename,for filename based shared library versioning on AIX.
cannam@154 16690 shared_archive_member_spec=$shared_archive_member_spec
cannam@154 16691
cannam@154 16692 # Shell to use when invoking shell scripts.
cannam@154 16693 SHELL=$lt_SHELL
cannam@154 16694
cannam@154 16695 # An echo program that protects backslashes.
cannam@154 16696 ECHO=$lt_ECHO
cannam@154 16697
cannam@154 16698 # The PATH separator for the build system.
cannam@154 16699 PATH_SEPARATOR=$lt_PATH_SEPARATOR
cannam@154 16700
cannam@154 16701 # The host system.
cannam@154 16702 host_alias=$host_alias
cannam@154 16703 host=$host
cannam@154 16704 host_os=$host_os
cannam@154 16705
cannam@154 16706 # The build system.
cannam@154 16707 build_alias=$build_alias
cannam@154 16708 build=$build
cannam@154 16709 build_os=$build_os
cannam@154 16710
cannam@154 16711 # A sed program that does not truncate output.
cannam@154 16712 SED=$lt_SED
cannam@154 16713
cannam@154 16714 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
cannam@154 16715 Xsed="\$SED -e 1s/^X//"
cannam@154 16716
cannam@154 16717 # A grep program that handles long lines.
cannam@154 16718 GREP=$lt_GREP
cannam@154 16719
cannam@154 16720 # An ERE matcher.
cannam@154 16721 EGREP=$lt_EGREP
cannam@154 16722
cannam@154 16723 # A literal string matcher.
cannam@154 16724 FGREP=$lt_FGREP
cannam@154 16725
cannam@154 16726 # A BSD- or MS-compatible name lister.
cannam@154 16727 NM=$lt_NM
cannam@154 16728
cannam@154 16729 # Whether we need soft or hard links.
cannam@154 16730 LN_S=$lt_LN_S
cannam@154 16731
cannam@154 16732 # What is the maximum length of a command?
cannam@154 16733 max_cmd_len=$max_cmd_len
cannam@154 16734
cannam@154 16735 # Object file suffix (normally "o").
cannam@154 16736 objext=$ac_objext
cannam@154 16737
cannam@154 16738 # Executable file suffix (normally "").
cannam@154 16739 exeext=$exeext
cannam@154 16740
cannam@154 16741 # whether the shell understands "unset".
cannam@154 16742 lt_unset=$lt_unset
cannam@154 16743
cannam@154 16744 # turn spaces into newlines.
cannam@154 16745 SP2NL=$lt_lt_SP2NL
cannam@154 16746
cannam@154 16747 # turn newlines into spaces.
cannam@154 16748 NL2SP=$lt_lt_NL2SP
cannam@154 16749
cannam@154 16750 # convert \$build file names to \$host format.
cannam@154 16751 to_host_file_cmd=$lt_cv_to_host_file_cmd
cannam@154 16752
cannam@154 16753 # convert \$build files to toolchain format.
cannam@154 16754 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
cannam@154 16755
cannam@154 16756 # An object symbol dumper.
cannam@154 16757 OBJDUMP=$lt_OBJDUMP
cannam@154 16758
cannam@154 16759 # Method to check whether dependent libraries are shared objects.
cannam@154 16760 deplibs_check_method=$lt_deplibs_check_method
cannam@154 16761
cannam@154 16762 # Command to use when deplibs_check_method = "file_magic".
cannam@154 16763 file_magic_cmd=$lt_file_magic_cmd
cannam@154 16764
cannam@154 16765 # How to find potential files when deplibs_check_method = "file_magic".
cannam@154 16766 file_magic_glob=$lt_file_magic_glob
cannam@154 16767
cannam@154 16768 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
cannam@154 16769 want_nocaseglob=$lt_want_nocaseglob
cannam@154 16770
cannam@154 16771 # DLL creation program.
cannam@154 16772 DLLTOOL=$lt_DLLTOOL
cannam@154 16773
cannam@154 16774 # Command to associate shared and link libraries.
cannam@154 16775 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
cannam@154 16776
cannam@154 16777 # The archiver.
cannam@154 16778 AR=$lt_AR
cannam@154 16779
cannam@154 16780 # Flags to create an archive.
cannam@154 16781 AR_FLAGS=$lt_AR_FLAGS
cannam@154 16782
cannam@154 16783 # How to feed a file listing to the archiver.
cannam@154 16784 archiver_list_spec=$lt_archiver_list_spec
cannam@154 16785
cannam@154 16786 # A symbol stripping program.
cannam@154 16787 STRIP=$lt_STRIP
cannam@154 16788
cannam@154 16789 # Commands used to install an old-style archive.
cannam@154 16790 RANLIB=$lt_RANLIB
cannam@154 16791 old_postinstall_cmds=$lt_old_postinstall_cmds
cannam@154 16792 old_postuninstall_cmds=$lt_old_postuninstall_cmds
cannam@154 16793
cannam@154 16794 # Whether to use a lock for old archive extraction.
cannam@154 16795 lock_old_archive_extraction=$lock_old_archive_extraction
cannam@154 16796
cannam@154 16797 # A C compiler.
cannam@154 16798 LTCC=$lt_CC
cannam@154 16799
cannam@154 16800 # LTCC compiler flags.
cannam@154 16801 LTCFLAGS=$lt_CFLAGS
cannam@154 16802
cannam@154 16803 # Take the output of nm and produce a listing of raw symbols and C names.
cannam@154 16804 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
cannam@154 16805
cannam@154 16806 # Transform the output of nm in a proper C declaration.
cannam@154 16807 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
cannam@154 16808
cannam@154 16809 # Transform the output of nm into a list of symbols to manually relocate.
cannam@154 16810 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
cannam@154 16811
cannam@154 16812 # Transform the output of nm in a C name address pair.
cannam@154 16813 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
cannam@154 16814
cannam@154 16815 # Transform the output of nm in a C name address pair when lib prefix is needed.
cannam@154 16816 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
cannam@154 16817
cannam@154 16818 # The name lister interface.
cannam@154 16819 nm_interface=$lt_lt_cv_nm_interface
cannam@154 16820
cannam@154 16821 # Specify filename containing input files for \$NM.
cannam@154 16822 nm_file_list_spec=$lt_nm_file_list_spec
cannam@154 16823
cannam@154 16824 # The root where to search for dependent libraries,and where our libraries should be installed.
cannam@154 16825 lt_sysroot=$lt_sysroot
cannam@154 16826
cannam@154 16827 # Command to truncate a binary pipe.
cannam@154 16828 lt_truncate_bin=$lt_lt_cv_truncate_bin
cannam@154 16829
cannam@154 16830 # The name of the directory that contains temporary libtool files.
cannam@154 16831 objdir=$objdir
cannam@154 16832
cannam@154 16833 # Used to examine libraries when file_magic_cmd begins with "file".
cannam@154 16834 MAGIC_CMD=$MAGIC_CMD
cannam@154 16835
cannam@154 16836 # Must we lock files when doing compilation?
cannam@154 16837 need_locks=$lt_need_locks
cannam@154 16838
cannam@154 16839 # Manifest tool.
cannam@154 16840 MANIFEST_TOOL=$lt_MANIFEST_TOOL
cannam@154 16841
cannam@154 16842 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
cannam@154 16843 DSYMUTIL=$lt_DSYMUTIL
cannam@154 16844
cannam@154 16845 # Tool to change global to local symbols on Mac OS X.
cannam@154 16846 NMEDIT=$lt_NMEDIT
cannam@154 16847
cannam@154 16848 # Tool to manipulate fat objects and archives on Mac OS X.
cannam@154 16849 LIPO=$lt_LIPO
cannam@154 16850
cannam@154 16851 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
cannam@154 16852 OTOOL=$lt_OTOOL
cannam@154 16853
cannam@154 16854 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
cannam@154 16855 OTOOL64=$lt_OTOOL64
cannam@154 16856
cannam@154 16857 # Old archive suffix (normally "a").
cannam@154 16858 libext=$libext
cannam@154 16859
cannam@154 16860 # Shared library suffix (normally ".so").
cannam@154 16861 shrext_cmds=$lt_shrext_cmds
cannam@154 16862
cannam@154 16863 # The commands to extract the exported symbol list from a shared archive.
cannam@154 16864 extract_expsyms_cmds=$lt_extract_expsyms_cmds
cannam@154 16865
cannam@154 16866 # Variables whose values should be saved in libtool wrapper scripts and
cannam@154 16867 # restored at link time.
cannam@154 16868 variables_saved_for_relink=$lt_variables_saved_for_relink
cannam@154 16869
cannam@154 16870 # Do we need the "lib" prefix for modules?
cannam@154 16871 need_lib_prefix=$need_lib_prefix
cannam@154 16872
cannam@154 16873 # Do we need a version for libraries?
cannam@154 16874 need_version=$need_version
cannam@154 16875
cannam@154 16876 # Library versioning type.
cannam@154 16877 version_type=$version_type
cannam@154 16878
cannam@154 16879 # Shared library runtime path variable.
cannam@154 16880 runpath_var=$runpath_var
cannam@154 16881
cannam@154 16882 # Shared library path variable.
cannam@154 16883 shlibpath_var=$shlibpath_var
cannam@154 16884
cannam@154 16885 # Is shlibpath searched before the hard-coded library search path?
cannam@154 16886 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
cannam@154 16887
cannam@154 16888 # Format of library name prefix.
cannam@154 16889 libname_spec=$lt_libname_spec
cannam@154 16890
cannam@154 16891 # List of archive names. First name is the real one, the rest are links.
cannam@154 16892 # The last name is the one that the linker finds with -lNAME
cannam@154 16893 library_names_spec=$lt_library_names_spec
cannam@154 16894
cannam@154 16895 # The coded name of the library, if different from the real name.
cannam@154 16896 soname_spec=$lt_soname_spec
cannam@154 16897
cannam@154 16898 # Permission mode override for installation of shared libraries.
cannam@154 16899 install_override_mode=$lt_install_override_mode
cannam@154 16900
cannam@154 16901 # Command to use after installation of a shared archive.
cannam@154 16902 postinstall_cmds=$lt_postinstall_cmds
cannam@154 16903
cannam@154 16904 # Command to use after uninstallation of a shared archive.
cannam@154 16905 postuninstall_cmds=$lt_postuninstall_cmds
cannam@154 16906
cannam@154 16907 # Commands used to finish a libtool library installation in a directory.
cannam@154 16908 finish_cmds=$lt_finish_cmds
cannam@154 16909
cannam@154 16910 # As "finish_cmds", except a single script fragment to be evaled but
cannam@154 16911 # not shown.
cannam@154 16912 finish_eval=$lt_finish_eval
cannam@154 16913
cannam@154 16914 # Whether we should hardcode library paths into libraries.
cannam@154 16915 hardcode_into_libs=$hardcode_into_libs
cannam@154 16916
cannam@154 16917 # Compile-time system search path for libraries.
cannam@154 16918 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
cannam@154 16919
cannam@154 16920 # Detected run-time system search path for libraries.
cannam@154 16921 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
cannam@154 16922
cannam@154 16923 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
cannam@154 16924 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
cannam@154 16925
cannam@154 16926 # Whether dlopen is supported.
cannam@154 16927 dlopen_support=$enable_dlopen
cannam@154 16928
cannam@154 16929 # Whether dlopen of programs is supported.
cannam@154 16930 dlopen_self=$enable_dlopen_self
cannam@154 16931
cannam@154 16932 # Whether dlopen of statically linked programs is supported.
cannam@154 16933 dlopen_self_static=$enable_dlopen_self_static
cannam@154 16934
cannam@154 16935 # Commands to strip libraries.
cannam@154 16936 old_striplib=$lt_old_striplib
cannam@154 16937 striplib=$lt_striplib
cannam@154 16938
cannam@154 16939
cannam@154 16940 # The linker used to build libraries.
cannam@154 16941 LD=$lt_LD
cannam@154 16942
cannam@154 16943 # How to create reloadable object files.
cannam@154 16944 reload_flag=$lt_reload_flag
cannam@154 16945 reload_cmds=$lt_reload_cmds
cannam@154 16946
cannam@154 16947 # Commands used to build an old-style archive.
cannam@154 16948 old_archive_cmds=$lt_old_archive_cmds
cannam@154 16949
cannam@154 16950 # A language specific compiler.
cannam@154 16951 CC=$lt_compiler
cannam@154 16952
cannam@154 16953 # Is the compiler the GNU compiler?
cannam@154 16954 with_gcc=$GCC
cannam@154 16955
cannam@154 16956 # Compiler flag to turn off builtin functions.
cannam@154 16957 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
cannam@154 16958
cannam@154 16959 # Additional compiler flags for building library objects.
cannam@154 16960 pic_flag=$lt_lt_prog_compiler_pic
cannam@154 16961
cannam@154 16962 # How to pass a linker flag through the compiler.
cannam@154 16963 wl=$lt_lt_prog_compiler_wl
cannam@154 16964
cannam@154 16965 # Compiler flag to prevent dynamic linking.
cannam@154 16966 link_static_flag=$lt_lt_prog_compiler_static
cannam@154 16967
cannam@154 16968 # Does compiler simultaneously support -c and -o options?
cannam@154 16969 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
cannam@154 16970
cannam@154 16971 # Whether or not to add -lc for building shared libraries.
cannam@154 16972 build_libtool_need_lc=$archive_cmds_need_lc
cannam@154 16973
cannam@154 16974 # Whether or not to disallow shared libs when runtime libs are static.
cannam@154 16975 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
cannam@154 16976
cannam@154 16977 # Compiler flag to allow reflexive dlopens.
cannam@154 16978 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
cannam@154 16979
cannam@154 16980 # Compiler flag to generate shared objects directly from archives.
cannam@154 16981 whole_archive_flag_spec=$lt_whole_archive_flag_spec
cannam@154 16982
cannam@154 16983 # Whether the compiler copes with passing no objects directly.
cannam@154 16984 compiler_needs_object=$lt_compiler_needs_object
cannam@154 16985
cannam@154 16986 # Create an old-style archive from a shared archive.
cannam@154 16987 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
cannam@154 16988
cannam@154 16989 # Create a temporary old-style archive to link instead of a shared archive.
cannam@154 16990 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
cannam@154 16991
cannam@154 16992 # Commands used to build a shared archive.
cannam@154 16993 archive_cmds=$lt_archive_cmds
cannam@154 16994 archive_expsym_cmds=$lt_archive_expsym_cmds
cannam@154 16995
cannam@154 16996 # Commands used to build a loadable module if different from building
cannam@154 16997 # a shared archive.
cannam@154 16998 module_cmds=$lt_module_cmds
cannam@154 16999 module_expsym_cmds=$lt_module_expsym_cmds
cannam@154 17000
cannam@154 17001 # Whether we are building with GNU ld or not.
cannam@154 17002 with_gnu_ld=$lt_with_gnu_ld
cannam@154 17003
cannam@154 17004 # Flag that allows shared libraries with undefined symbols to be built.
cannam@154 17005 allow_undefined_flag=$lt_allow_undefined_flag
cannam@154 17006
cannam@154 17007 # Flag that enforces no undefined symbols.
cannam@154 17008 no_undefined_flag=$lt_no_undefined_flag
cannam@154 17009
cannam@154 17010 # Flag to hardcode \$libdir into a binary during linking.
cannam@154 17011 # This must work even if \$libdir does not exist
cannam@154 17012 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
cannam@154 17013
cannam@154 17014 # Whether we need a single "-rpath" flag with a separated argument.
cannam@154 17015 hardcode_libdir_separator=$lt_hardcode_libdir_separator
cannam@154 17016
cannam@154 17017 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
cannam@154 17018 # DIR into the resulting binary.
cannam@154 17019 hardcode_direct=$hardcode_direct
cannam@154 17020
cannam@154 17021 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
cannam@154 17022 # DIR into the resulting binary and the resulting library dependency is
cannam@154 17023 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
cannam@154 17024 # library is relocated.
cannam@154 17025 hardcode_direct_absolute=$hardcode_direct_absolute
cannam@154 17026
cannam@154 17027 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
cannam@154 17028 # into the resulting binary.
cannam@154 17029 hardcode_minus_L=$hardcode_minus_L
cannam@154 17030
cannam@154 17031 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
cannam@154 17032 # into the resulting binary.
cannam@154 17033 hardcode_shlibpath_var=$hardcode_shlibpath_var
cannam@154 17034
cannam@154 17035 # Set to "yes" if building a shared library automatically hardcodes DIR
cannam@154 17036 # into the library and all subsequent libraries and executables linked
cannam@154 17037 # against it.
cannam@154 17038 hardcode_automatic=$hardcode_automatic
cannam@154 17039
cannam@154 17040 # Set to yes if linker adds runtime paths of dependent libraries
cannam@154 17041 # to runtime path list.
cannam@154 17042 inherit_rpath=$inherit_rpath
cannam@154 17043
cannam@154 17044 # Whether libtool must link a program against all its dependency libraries.
cannam@154 17045 link_all_deplibs=$link_all_deplibs
cannam@154 17046
cannam@154 17047 # Set to "yes" if exported symbols are required.
cannam@154 17048 always_export_symbols=$always_export_symbols
cannam@154 17049
cannam@154 17050 # The commands to list exported symbols.
cannam@154 17051 export_symbols_cmds=$lt_export_symbols_cmds
cannam@154 17052
cannam@154 17053 # Symbols that should not be listed in the preloaded symbols.
cannam@154 17054 exclude_expsyms=$lt_exclude_expsyms
cannam@154 17055
cannam@154 17056 # Symbols that must always be exported.
cannam@154 17057 include_expsyms=$lt_include_expsyms
cannam@154 17058
cannam@154 17059 # Commands necessary for linking programs (against libraries) with templates.
cannam@154 17060 prelink_cmds=$lt_prelink_cmds
cannam@154 17061
cannam@154 17062 # Commands necessary for finishing linking programs.
cannam@154 17063 postlink_cmds=$lt_postlink_cmds
cannam@154 17064
cannam@154 17065 # Specify filename containing input files.
cannam@154 17066 file_list_spec=$lt_file_list_spec
cannam@154 17067
cannam@154 17068 # How to hardcode a shared library path into an executable.
cannam@154 17069 hardcode_action=$hardcode_action
cannam@154 17070
cannam@154 17071 # ### END LIBTOOL CONFIG
cannam@154 17072
cannam@154 17073 _LT_EOF
cannam@154 17074
cannam@154 17075 cat <<'_LT_EOF' >> "$cfgfile"
cannam@154 17076
cannam@154 17077 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
cannam@154 17078
cannam@154 17079 # func_munge_path_list VARIABLE PATH
cannam@154 17080 # -----------------------------------
cannam@154 17081 # VARIABLE is name of variable containing _space_ separated list of
cannam@154 17082 # directories to be munged by the contents of PATH, which is string
cannam@154 17083 # having a format:
cannam@154 17084 # "DIR[:DIR]:"
cannam@154 17085 # string "DIR[ DIR]" will be prepended to VARIABLE
cannam@154 17086 # ":DIR[:DIR]"
cannam@154 17087 # string "DIR[ DIR]" will be appended to VARIABLE
cannam@154 17088 # "DIRP[:DIRP]::[DIRA:]DIRA"
cannam@154 17089 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
cannam@154 17090 # "DIRA[ DIRA]" will be appended to VARIABLE
cannam@154 17091 # "DIR[:DIR]"
cannam@154 17092 # VARIABLE will be replaced by "DIR[ DIR]"
cannam@154 17093 func_munge_path_list ()
cannam@154 17094 {
cannam@154 17095 case x$2 in
cannam@154 17096 x)
cannam@154 17097 ;;
cannam@154 17098 *:)
cannam@154 17099 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
cannam@154 17100 ;;
cannam@154 17101 x:*)
cannam@154 17102 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
cannam@154 17103 ;;
cannam@154 17104 *::*)
cannam@154 17105 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
cannam@154 17106 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
cannam@154 17107 ;;
cannam@154 17108 *)
cannam@154 17109 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
cannam@154 17110 ;;
cannam@154 17111 esac
cannam@154 17112 }
cannam@154 17113
cannam@154 17114
cannam@154 17115 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
cannam@154 17116 func_cc_basename ()
cannam@154 17117 {
cannam@154 17118 for cc_temp in $*""; do
cannam@154 17119 case $cc_temp in
cannam@154 17120 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
cannam@154 17121 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
cannam@154 17122 \-*) ;;
cannam@154 17123 *) break;;
cannam@154 17124 esac
cannam@154 17125 done
cannam@154 17126 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cannam@154 17127 }
cannam@154 17128
cannam@154 17129
cannam@154 17130 # ### END FUNCTIONS SHARED WITH CONFIGURE
cannam@154 17131
cannam@154 17132 _LT_EOF
cannam@154 17133
cannam@154 17134 case $host_os in
cannam@154 17135 aix3*)
cannam@154 17136 cat <<\_LT_EOF >> "$cfgfile"
cannam@154 17137 # AIX sometimes has problems with the GCC collect2 program. For some
cannam@154 17138 # reason, if we set the COLLECT_NAMES environment variable, the problems
cannam@154 17139 # vanish in a puff of smoke.
cannam@154 17140 if test set != "${COLLECT_NAMES+set}"; then
cannam@154 17141 COLLECT_NAMES=
cannam@154 17142 export COLLECT_NAMES
cannam@154 17143 fi
cannam@154 17144 _LT_EOF
cannam@154 17145 ;;
cannam@154 17146 esac
cannam@154 17147
cannam@154 17148
cannam@154 17149 ltmain=$ac_aux_dir/ltmain.sh
cannam@154 17150
cannam@154 17151
cannam@154 17152 # We use sed instead of cat because bash on DJGPP gets confused if
cannam@154 17153 # if finds mixed CR/LF and LF-only lines. Since sed operates in
cannam@154 17154 # text mode, it properly converts lines to CR/LF. This bash problem
cannam@154 17155 # is reportedly fixed, but why not run on old versions too?
cannam@154 17156 sed '$q' "$ltmain" >> "$cfgfile" \
cannam@154 17157 || (rm -f "$cfgfile"; exit 1)
cannam@154 17158
cannam@154 17159 mv -f "$cfgfile" "$ofile" ||
cannam@154 17160 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
cannam@154 17161 chmod +x "$ofile"
cannam@154 17162
cannam@154 17163 ;;
cannam@154 17164
cannam@154 17165 esac
cannam@154 17166 done # for ac_tag
cannam@154 17167
cannam@154 17168
cannam@154 17169 as_fn_exit 0
cannam@154 17170 _ACEOF
cannam@154 17171 ac_clean_files=$ac_clean_files_save
cannam@154 17172
cannam@154 17173 test $ac_write_fail = 0 ||
cannam@154 17174 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cannam@154 17175
cannam@154 17176
cannam@154 17177 # configure is writing to config.log, and then calls config.status.
cannam@154 17178 # config.status does its own redirection, appending to config.log.
cannam@154 17179 # Unfortunately, on DOS this fails, as config.log is still kept open
cannam@154 17180 # by configure, so config.status won't be able to write to it; its
cannam@154 17181 # output is simply discarded. So we exec the FD to /dev/null,
cannam@154 17182 # effectively closing config.log, so it can be properly (re)opened and
cannam@154 17183 # appended to by config.status. When coming back to configure, we
cannam@154 17184 # need to make the FD available again.
cannam@154 17185 if test "$no_create" != yes; then
cannam@154 17186 ac_cs_success=:
cannam@154 17187 ac_config_status_args=
cannam@154 17188 test "$silent" = yes &&
cannam@154 17189 ac_config_status_args="$ac_config_status_args --quiet"
cannam@154 17190 exec 5>/dev/null
cannam@154 17191 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
cannam@154 17192 exec 5>>config.log
cannam@154 17193 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
cannam@154 17194 # would make configure fail if this is the last instruction.
cannam@154 17195 $ac_cs_success || as_fn_exit 1
cannam@154 17196 fi
cannam@154 17197 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cannam@154 17198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cannam@154 17199 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
cannam@154 17200 fi
cannam@154 17201
cannam@154 17202
cannam@154 17203 { $as_echo "$as_me:${as_lineno-$LINENO}:
cannam@154 17204 ------------------------------------------------------------------------
cannam@154 17205 $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK.
cannam@154 17206
cannam@154 17207 Compiler support:
cannam@154 17208
cannam@154 17209 C99 var arrays: ................ ${has_var_arrays}
cannam@154 17210 C99 lrintf: .................... ${ac_cv_func_lrintf}
cannam@154 17211 Use alloca: .................... ${use_alloca}
cannam@154 17212
cannam@154 17213 General configuration:
cannam@154 17214
cannam@154 17215 Floating point support: ........ ${enable_float}
cannam@154 17216 Fast float approximations: ..... ${enable_float_approx}
cannam@154 17217 Fixed point debugging: ......... ${enable_fixed_point_debug}
cannam@154 17218 Inline Assembly Optimizations: . ${inline_optimization}
cannam@154 17219 External Assembly Optimizations: ${asm_optimization}
cannam@154 17220 Intrinsics Optimizations: ...... ${intrinsics_support}
cannam@154 17221 Run-time CPU detection: ........ ${rtcd_support}
cannam@154 17222 Custom modes: .................. ${enable_custom_modes}
cannam@154 17223 Assertion checking: ............ ${enable_assertions}
cannam@154 17224 Hardening: ..................... ${enable_hardening}
cannam@154 17225 Fuzzing: ....................... ${enable_fuzzing}
cannam@154 17226 Check ASM: ..................... ${enable_check_asm}
cannam@154 17227
cannam@154 17228 API documentation: ............. ${enable_doc}
cannam@154 17229 Extra programs: ................ ${enable_extra_programs}
cannam@154 17230 ------------------------------------------------------------------------
cannam@154 17231
cannam@154 17232 Type \"make; make install\" to compile and install
cannam@154 17233 Type \"make check\" to run the test suite
cannam@154 17234 " >&5
cannam@154 17235 $as_echo "$as_me:
cannam@154 17236 ------------------------------------------------------------------------
cannam@154 17237 $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK.
cannam@154 17238
cannam@154 17239 Compiler support:
cannam@154 17240
cannam@154 17241 C99 var arrays: ................ ${has_var_arrays}
cannam@154 17242 C99 lrintf: .................... ${ac_cv_func_lrintf}
cannam@154 17243 Use alloca: .................... ${use_alloca}
cannam@154 17244
cannam@154 17245 General configuration:
cannam@154 17246
cannam@154 17247 Floating point support: ........ ${enable_float}
cannam@154 17248 Fast float approximations: ..... ${enable_float_approx}
cannam@154 17249 Fixed point debugging: ......... ${enable_fixed_point_debug}
cannam@154 17250 Inline Assembly Optimizations: . ${inline_optimization}
cannam@154 17251 External Assembly Optimizations: ${asm_optimization}
cannam@154 17252 Intrinsics Optimizations: ...... ${intrinsics_support}
cannam@154 17253 Run-time CPU detection: ........ ${rtcd_support}
cannam@154 17254 Custom modes: .................. ${enable_custom_modes}
cannam@154 17255 Assertion checking: ............ ${enable_assertions}
cannam@154 17256 Hardening: ..................... ${enable_hardening}
cannam@154 17257 Fuzzing: ....................... ${enable_fuzzing}
cannam@154 17258 Check ASM: ..................... ${enable_check_asm}
cannam@154 17259
cannam@154 17260 API documentation: ............. ${enable_doc}
cannam@154 17261 Extra programs: ................ ${enable_extra_programs}
cannam@154 17262 ------------------------------------------------------------------------
cannam@154 17263
cannam@154 17264 Type \"make; make install\" to compile and install
cannam@154 17265 Type \"make check\" to run the test suite
cannam@154 17266 " >&6;}
cannam@154 17267