annotate src/portaudio_20161030_catalina_patch/configure @ 162:d43aab368df9

Duplicate for patch testing
author Chris Cannam <cannam@all-day-breakfast.com>
date Wed, 30 Oct 2019 11:25:10 +0000
parents
children 7e6e71a29886
rev   line source
cannam@162 1 #! /bin/sh
cannam@162 2 # Guess values for system-dependent variables and create Makefiles.
cannam@162 3 # Generated by GNU Autoconf 2.69.
cannam@162 4 #
cannam@162 5 #
cannam@162 6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cannam@162 7 #
cannam@162 8 #
cannam@162 9 # This configure script is free software; the Free Software Foundation
cannam@162 10 # gives unlimited permission to copy, distribute and modify it.
cannam@162 11 ## -------------------- ##
cannam@162 12 ## M4sh Initialization. ##
cannam@162 13 ## -------------------- ##
cannam@162 14
cannam@162 15 # Be more Bourne compatible
cannam@162 16 DUALCASE=1; export DUALCASE # for MKS sh
cannam@162 17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cannam@162 18 emulate sh
cannam@162 19 NULLCMD=:
cannam@162 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
cannam@162 21 # is contrary to our usage. Disable this feature.
cannam@162 22 alias -g '${1+"$@"}'='"$@"'
cannam@162 23 setopt NO_GLOB_SUBST
cannam@162 24 else
cannam@162 25 case `(set -o) 2>/dev/null` in #(
cannam@162 26 *posix*) :
cannam@162 27 set -o posix ;; #(
cannam@162 28 *) :
cannam@162 29 ;;
cannam@162 30 esac
cannam@162 31 fi
cannam@162 32
cannam@162 33
cannam@162 34 as_nl='
cannam@162 35 '
cannam@162 36 export as_nl
cannam@162 37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
cannam@162 38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@162 39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@162 40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@162 41 # Prefer a ksh shell builtin over an external printf program on Solaris,
cannam@162 42 # but without wasting forks for bash or zsh.
cannam@162 43 if test -z "$BASH_VERSION$ZSH_VERSION" \
cannam@162 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@162 45 as_echo='print -r --'
cannam@162 46 as_echo_n='print -rn --'
cannam@162 47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@162 48 as_echo='printf %s\n'
cannam@162 49 as_echo_n='printf %s'
cannam@162 50 else
cannam@162 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
cannam@162 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
cannam@162 53 as_echo_n='/usr/ucb/echo -n'
cannam@162 54 else
cannam@162 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
cannam@162 56 as_echo_n_body='eval
cannam@162 57 arg=$1;
cannam@162 58 case $arg in #(
cannam@162 59 *"$as_nl"*)
cannam@162 60 expr "X$arg" : "X\\(.*\\)$as_nl";
cannam@162 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
cannam@162 62 esac;
cannam@162 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
cannam@162 64 '
cannam@162 65 export as_echo_n_body
cannam@162 66 as_echo_n='sh -c $as_echo_n_body as_echo'
cannam@162 67 fi
cannam@162 68 export as_echo_body
cannam@162 69 as_echo='sh -c $as_echo_body as_echo'
cannam@162 70 fi
cannam@162 71
cannam@162 72 # The user is always right.
cannam@162 73 if test "${PATH_SEPARATOR+set}" != set; then
cannam@162 74 PATH_SEPARATOR=:
cannam@162 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
cannam@162 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
cannam@162 77 PATH_SEPARATOR=';'
cannam@162 78 }
cannam@162 79 fi
cannam@162 80
cannam@162 81
cannam@162 82 # IFS
cannam@162 83 # We need space, tab and new line, in precisely that order. Quoting is
cannam@162 84 # there to prevent editors from complaining about space-tab.
cannam@162 85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
cannam@162 86 # splitting by setting IFS to empty value.)
cannam@162 87 IFS=" "" $as_nl"
cannam@162 88
cannam@162 89 # Find who we are. Look in the path if we contain no directory separator.
cannam@162 90 as_myself=
cannam@162 91 case $0 in #((
cannam@162 92 *[\\/]* ) as_myself=$0 ;;
cannam@162 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 94 for as_dir in $PATH
cannam@162 95 do
cannam@162 96 IFS=$as_save_IFS
cannam@162 97 test -z "$as_dir" && as_dir=.
cannam@162 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
cannam@162 99 done
cannam@162 100 IFS=$as_save_IFS
cannam@162 101
cannam@162 102 ;;
cannam@162 103 esac
cannam@162 104 # We did not find ourselves, most probably we were run as `sh COMMAND'
cannam@162 105 # in which case we are not to be found in the path.
cannam@162 106 if test "x$as_myself" = x; then
cannam@162 107 as_myself=$0
cannam@162 108 fi
cannam@162 109 if test ! -f "$as_myself"; then
cannam@162 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cannam@162 111 exit 1
cannam@162 112 fi
cannam@162 113
cannam@162 114 # Unset variables that we do not need and which cause bugs (e.g. in
cannam@162 115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
cannam@162 116 # suppresses any "Segmentation fault" message there. '((' could
cannam@162 117 # trigger a bug in pdksh 5.2.14.
cannam@162 118 for as_var in BASH_ENV ENV MAIL MAILPATH
cannam@162 119 do eval test x\${$as_var+set} = xset \
cannam@162 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cannam@162 121 done
cannam@162 122 PS1='$ '
cannam@162 123 PS2='> '
cannam@162 124 PS4='+ '
cannam@162 125
cannam@162 126 # NLS nuisances.
cannam@162 127 LC_ALL=C
cannam@162 128 export LC_ALL
cannam@162 129 LANGUAGE=C
cannam@162 130 export LANGUAGE
cannam@162 131
cannam@162 132 # CDPATH.
cannam@162 133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cannam@162 134
cannam@162 135 # Use a proper internal environment variable to ensure we don't fall
cannam@162 136 # into an infinite loop, continuously re-executing ourselves.
cannam@162 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
cannam@162 138 _as_can_reexec=no; export _as_can_reexec;
cannam@162 139 # We cannot yet assume a decent shell, so we have to provide a
cannam@162 140 # neutralization value for shells without unset; and this also
cannam@162 141 # works around shells that cannot unset nonexistent variables.
cannam@162 142 # Preserve -v and -x to the replacement shell.
cannam@162 143 BASH_ENV=/dev/null
cannam@162 144 ENV=/dev/null
cannam@162 145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
cannam@162 146 case $- in # ((((
cannam@162 147 *v*x* | *x*v* ) as_opts=-vx ;;
cannam@162 148 *v* ) as_opts=-v ;;
cannam@162 149 *x* ) as_opts=-x ;;
cannam@162 150 * ) as_opts= ;;
cannam@162 151 esac
cannam@162 152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
cannam@162 153 # Admittedly, this is quite paranoid, since all the known shells bail
cannam@162 154 # out after a failed `exec'.
cannam@162 155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
cannam@162 156 as_fn_exit 255
cannam@162 157 fi
cannam@162 158 # We don't want this to propagate to other subprocesses.
cannam@162 159 { _as_can_reexec=; unset _as_can_reexec;}
cannam@162 160 if test "x$CONFIG_SHELL" = x; then
cannam@162 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
cannam@162 162 emulate sh
cannam@162 163 NULLCMD=:
cannam@162 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
cannam@162 165 # is contrary to our usage. Disable this feature.
cannam@162 166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
cannam@162 167 setopt NO_GLOB_SUBST
cannam@162 168 else
cannam@162 169 case \`(set -o) 2>/dev/null\` in #(
cannam@162 170 *posix*) :
cannam@162 171 set -o posix ;; #(
cannam@162 172 *) :
cannam@162 173 ;;
cannam@162 174 esac
cannam@162 175 fi
cannam@162 176 "
cannam@162 177 as_required="as_fn_return () { (exit \$1); }
cannam@162 178 as_fn_success () { as_fn_return 0; }
cannam@162 179 as_fn_failure () { as_fn_return 1; }
cannam@162 180 as_fn_ret_success () { return 0; }
cannam@162 181 as_fn_ret_failure () { return 1; }
cannam@162 182
cannam@162 183 exitcode=0
cannam@162 184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
cannam@162 185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
cannam@162 186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
cannam@162 187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
cannam@162 188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
cannam@162 189
cannam@162 190 else
cannam@162 191 exitcode=1; echo positional parameters were not saved.
cannam@162 192 fi
cannam@162 193 test x\$exitcode = x0 || exit 1
cannam@162 194 test -x / || exit 1"
cannam@162 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
cannam@162 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
cannam@162 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
cannam@162 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cannam@162 199
cannam@162 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
cannam@162 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@162 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
cannam@162 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
cannam@162 204 PATH=/empty FPATH=/empty; export PATH FPATH
cannam@162 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
cannam@162 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
cannam@162 207 test \$(( 1 + 1 )) = 2 || exit 1"
cannam@162 208 if (eval "$as_required") 2>/dev/null; then :
cannam@162 209 as_have_required=yes
cannam@162 210 else
cannam@162 211 as_have_required=no
cannam@162 212 fi
cannam@162 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
cannam@162 214
cannam@162 215 else
cannam@162 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 217 as_found=false
cannam@162 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
cannam@162 219 do
cannam@162 220 IFS=$as_save_IFS
cannam@162 221 test -z "$as_dir" && as_dir=.
cannam@162 222 as_found=:
cannam@162 223 case $as_dir in #(
cannam@162 224 /*)
cannam@162 225 for as_base in sh bash ksh sh5; do
cannam@162 226 # Try only shells that exist, to save several forks.
cannam@162 227 as_shell=$as_dir/$as_base
cannam@162 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
cannam@162 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
cannam@162 230 CONFIG_SHELL=$as_shell as_have_required=yes
cannam@162 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
cannam@162 232 break 2
cannam@162 233 fi
cannam@162 234 fi
cannam@162 235 done;;
cannam@162 236 esac
cannam@162 237 as_found=false
cannam@162 238 done
cannam@162 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
cannam@162 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
cannam@162 241 CONFIG_SHELL=$SHELL as_have_required=yes
cannam@162 242 fi; }
cannam@162 243 IFS=$as_save_IFS
cannam@162 244
cannam@162 245
cannam@162 246 if test "x$CONFIG_SHELL" != x; then :
cannam@162 247 export CONFIG_SHELL
cannam@162 248 # We cannot yet assume a decent shell, so we have to provide a
cannam@162 249 # neutralization value for shells without unset; and this also
cannam@162 250 # works around shells that cannot unset nonexistent variables.
cannam@162 251 # Preserve -v and -x to the replacement shell.
cannam@162 252 BASH_ENV=/dev/null
cannam@162 253 ENV=/dev/null
cannam@162 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
cannam@162 255 case $- in # ((((
cannam@162 256 *v*x* | *x*v* ) as_opts=-vx ;;
cannam@162 257 *v* ) as_opts=-v ;;
cannam@162 258 *x* ) as_opts=-x ;;
cannam@162 259 * ) as_opts= ;;
cannam@162 260 esac
cannam@162 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
cannam@162 262 # Admittedly, this is quite paranoid, since all the known shells bail
cannam@162 263 # out after a failed `exec'.
cannam@162 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
cannam@162 265 exit 255
cannam@162 266 fi
cannam@162 267
cannam@162 268 if test x$as_have_required = xno; then :
cannam@162 269 $as_echo "$0: This script requires a shell more modern than all"
cannam@162 270 $as_echo "$0: the shells that I found on your system."
cannam@162 271 if test x${ZSH_VERSION+set} = xset ; then
cannam@162 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
cannam@162 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
cannam@162 274 else
cannam@162 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
cannam@162 276 $0: including any error possibly output before this
cannam@162 277 $0: message. Then install a modern shell, or manually run
cannam@162 278 $0: the script under such a shell if you do have one."
cannam@162 279 fi
cannam@162 280 exit 1
cannam@162 281 fi
cannam@162 282 fi
cannam@162 283 fi
cannam@162 284 SHELL=${CONFIG_SHELL-/bin/sh}
cannam@162 285 export SHELL
cannam@162 286 # Unset more variables known to interfere with behavior of common tools.
cannam@162 287 CLICOLOR_FORCE= GREP_OPTIONS=
cannam@162 288 unset CLICOLOR_FORCE GREP_OPTIONS
cannam@162 289
cannam@162 290 ## --------------------- ##
cannam@162 291 ## M4sh Shell Functions. ##
cannam@162 292 ## --------------------- ##
cannam@162 293 # as_fn_unset VAR
cannam@162 294 # ---------------
cannam@162 295 # Portably unset VAR.
cannam@162 296 as_fn_unset ()
cannam@162 297 {
cannam@162 298 { eval $1=; unset $1;}
cannam@162 299 }
cannam@162 300 as_unset=as_fn_unset
cannam@162 301
cannam@162 302 # as_fn_set_status STATUS
cannam@162 303 # -----------------------
cannam@162 304 # Set $? to STATUS, without forking.
cannam@162 305 as_fn_set_status ()
cannam@162 306 {
cannam@162 307 return $1
cannam@162 308 } # as_fn_set_status
cannam@162 309
cannam@162 310 # as_fn_exit STATUS
cannam@162 311 # -----------------
cannam@162 312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
cannam@162 313 as_fn_exit ()
cannam@162 314 {
cannam@162 315 set +e
cannam@162 316 as_fn_set_status $1
cannam@162 317 exit $1
cannam@162 318 } # as_fn_exit
cannam@162 319
cannam@162 320 # as_fn_mkdir_p
cannam@162 321 # -------------
cannam@162 322 # Create "$as_dir" as a directory, including parents if necessary.
cannam@162 323 as_fn_mkdir_p ()
cannam@162 324 {
cannam@162 325
cannam@162 326 case $as_dir in #(
cannam@162 327 -*) as_dir=./$as_dir;;
cannam@162 328 esac
cannam@162 329 test -d "$as_dir" || eval $as_mkdir_p || {
cannam@162 330 as_dirs=
cannam@162 331 while :; do
cannam@162 332 case $as_dir in #(
cannam@162 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
cannam@162 334 *) as_qdir=$as_dir;;
cannam@162 335 esac
cannam@162 336 as_dirs="'$as_qdir' $as_dirs"
cannam@162 337 as_dir=`$as_dirname -- "$as_dir" ||
cannam@162 338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@162 339 X"$as_dir" : 'X\(//\)[^/]' \| \
cannam@162 340 X"$as_dir" : 'X\(//\)$' \| \
cannam@162 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
cannam@162 342 $as_echo X"$as_dir" |
cannam@162 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@162 344 s//\1/
cannam@162 345 q
cannam@162 346 }
cannam@162 347 /^X\(\/\/\)[^/].*/{
cannam@162 348 s//\1/
cannam@162 349 q
cannam@162 350 }
cannam@162 351 /^X\(\/\/\)$/{
cannam@162 352 s//\1/
cannam@162 353 q
cannam@162 354 }
cannam@162 355 /^X\(\/\).*/{
cannam@162 356 s//\1/
cannam@162 357 q
cannam@162 358 }
cannam@162 359 s/.*/./; q'`
cannam@162 360 test -d "$as_dir" && break
cannam@162 361 done
cannam@162 362 test -z "$as_dirs" || eval "mkdir $as_dirs"
cannam@162 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cannam@162 364
cannam@162 365
cannam@162 366 } # as_fn_mkdir_p
cannam@162 367
cannam@162 368 # as_fn_executable_p FILE
cannam@162 369 # -----------------------
cannam@162 370 # Test if FILE is an executable regular file.
cannam@162 371 as_fn_executable_p ()
cannam@162 372 {
cannam@162 373 test -f "$1" && test -x "$1"
cannam@162 374 } # as_fn_executable_p
cannam@162 375 # as_fn_append VAR VALUE
cannam@162 376 # ----------------------
cannam@162 377 # Append the text in VALUE to the end of the definition contained in VAR. Take
cannam@162 378 # advantage of any shell optimizations that allow amortized linear growth over
cannam@162 379 # repeated appends, instead of the typical quadratic growth present in naive
cannam@162 380 # implementations.
cannam@162 381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
cannam@162 382 eval 'as_fn_append ()
cannam@162 383 {
cannam@162 384 eval $1+=\$2
cannam@162 385 }'
cannam@162 386 else
cannam@162 387 as_fn_append ()
cannam@162 388 {
cannam@162 389 eval $1=\$$1\$2
cannam@162 390 }
cannam@162 391 fi # as_fn_append
cannam@162 392
cannam@162 393 # as_fn_arith ARG...
cannam@162 394 # ------------------
cannam@162 395 # Perform arithmetic evaluation on the ARGs, and store the result in the
cannam@162 396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
cannam@162 397 # must be portable across $(()) and expr.
cannam@162 398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
cannam@162 399 eval 'as_fn_arith ()
cannam@162 400 {
cannam@162 401 as_val=$(( $* ))
cannam@162 402 }'
cannam@162 403 else
cannam@162 404 as_fn_arith ()
cannam@162 405 {
cannam@162 406 as_val=`expr "$@" || test $? -eq 1`
cannam@162 407 }
cannam@162 408 fi # as_fn_arith
cannam@162 409
cannam@162 410
cannam@162 411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
cannam@162 412 # ----------------------------------------
cannam@162 413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
cannam@162 414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cannam@162 415 # script with STATUS, using 1 if that was 0.
cannam@162 416 as_fn_error ()
cannam@162 417 {
cannam@162 418 as_status=$1; test $as_status -eq 0 && as_status=1
cannam@162 419 if test "$4"; then
cannam@162 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@162 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cannam@162 422 fi
cannam@162 423 $as_echo "$as_me: error: $2" >&2
cannam@162 424 as_fn_exit $as_status
cannam@162 425 } # as_fn_error
cannam@162 426
cannam@162 427 if expr a : '\(a\)' >/dev/null 2>&1 &&
cannam@162 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
cannam@162 429 as_expr=expr
cannam@162 430 else
cannam@162 431 as_expr=false
cannam@162 432 fi
cannam@162 433
cannam@162 434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
cannam@162 435 as_basename=basename
cannam@162 436 else
cannam@162 437 as_basename=false
cannam@162 438 fi
cannam@162 439
cannam@162 440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
cannam@162 441 as_dirname=dirname
cannam@162 442 else
cannam@162 443 as_dirname=false
cannam@162 444 fi
cannam@162 445
cannam@162 446 as_me=`$as_basename -- "$0" ||
cannam@162 447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
cannam@162 448 X"$0" : 'X\(//\)$' \| \
cannam@162 449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
cannam@162 450 $as_echo X/"$0" |
cannam@162 451 sed '/^.*\/\([^/][^/]*\)\/*$/{
cannam@162 452 s//\1/
cannam@162 453 q
cannam@162 454 }
cannam@162 455 /^X\/\(\/\/\)$/{
cannam@162 456 s//\1/
cannam@162 457 q
cannam@162 458 }
cannam@162 459 /^X\/\(\/\).*/{
cannam@162 460 s//\1/
cannam@162 461 q
cannam@162 462 }
cannam@162 463 s/.*/./; q'`
cannam@162 464
cannam@162 465 # Avoid depending upon Character Ranges.
cannam@162 466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
cannam@162 467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
cannam@162 468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
cannam@162 469 as_cr_digits='0123456789'
cannam@162 470 as_cr_alnum=$as_cr_Letters$as_cr_digits
cannam@162 471
cannam@162 472
cannam@162 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
cannam@162 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
cannam@162 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
cannam@162 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
cannam@162 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cannam@162 478 sed -n '
cannam@162 479 p
cannam@162 480 /[$]LINENO/=
cannam@162 481 ' <$as_myself |
cannam@162 482 sed '
cannam@162 483 s/[$]LINENO.*/&-/
cannam@162 484 t lineno
cannam@162 485 b
cannam@162 486 :lineno
cannam@162 487 N
cannam@162 488 :loop
cannam@162 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
cannam@162 490 t loop
cannam@162 491 s/-\n.*//
cannam@162 492 ' >$as_me.lineno &&
cannam@162 493 chmod +x "$as_me.lineno" ||
cannam@162 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cannam@162 495
cannam@162 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
cannam@162 497 # already done that, so ensure we don't try to do so again and fall
cannam@162 498 # in an infinite loop. This has already happened in practice.
cannam@162 499 _as_can_reexec=no; export _as_can_reexec
cannam@162 500 # Don't try to exec as it changes $[0], causing all sort of problems
cannam@162 501 # (the dirname of $[0] is not the place where we might find the
cannam@162 502 # original and so on. Autoconf is especially sensitive to this).
cannam@162 503 . "./$as_me.lineno"
cannam@162 504 # Exit status is that of the last command.
cannam@162 505 exit
cannam@162 506 }
cannam@162 507
cannam@162 508 ECHO_C= ECHO_N= ECHO_T=
cannam@162 509 case `echo -n x` in #(((((
cannam@162 510 -n*)
cannam@162 511 case `echo 'xy\c'` in
cannam@162 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cannam@162 513 xy) ECHO_C='\c';;
cannam@162 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
cannam@162 515 ECHO_T=' ';;
cannam@162 516 esac;;
cannam@162 517 *)
cannam@162 518 ECHO_N='-n';;
cannam@162 519 esac
cannam@162 520
cannam@162 521 rm -f conf$$ conf$$.exe conf$$.file
cannam@162 522 if test -d conf$$.dir; then
cannam@162 523 rm -f conf$$.dir/conf$$.file
cannam@162 524 else
cannam@162 525 rm -f conf$$.dir
cannam@162 526 mkdir conf$$.dir 2>/dev/null
cannam@162 527 fi
cannam@162 528 if (echo >conf$$.file) 2>/dev/null; then
cannam@162 529 if ln -s conf$$.file conf$$ 2>/dev/null; then
cannam@162 530 as_ln_s='ln -s'
cannam@162 531 # ... but there are two gotchas:
cannam@162 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
cannam@162 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cannam@162 534 # In both cases, we have to default to `cp -pR'.
cannam@162 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cannam@162 536 as_ln_s='cp -pR'
cannam@162 537 elif ln conf$$.file conf$$ 2>/dev/null; then
cannam@162 538 as_ln_s=ln
cannam@162 539 else
cannam@162 540 as_ln_s='cp -pR'
cannam@162 541 fi
cannam@162 542 else
cannam@162 543 as_ln_s='cp -pR'
cannam@162 544 fi
cannam@162 545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
cannam@162 546 rmdir conf$$.dir 2>/dev/null
cannam@162 547
cannam@162 548 if mkdir -p . 2>/dev/null; then
cannam@162 549 as_mkdir_p='mkdir -p "$as_dir"'
cannam@162 550 else
cannam@162 551 test -d ./-p && rmdir ./-p
cannam@162 552 as_mkdir_p=false
cannam@162 553 fi
cannam@162 554
cannam@162 555 as_test_x='test -x'
cannam@162 556 as_executable_p=as_fn_executable_p
cannam@162 557
cannam@162 558 # Sed expression to map a string onto a valid CPP name.
cannam@162 559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
cannam@162 560
cannam@162 561 # Sed expression to map a string onto a valid variable name.
cannam@162 562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
cannam@162 563
cannam@162 564 SHELL=${CONFIG_SHELL-/bin/sh}
cannam@162 565
cannam@162 566
cannam@162 567 test -n "$DJDIR" || exec 7<&0 </dev/null
cannam@162 568 exec 6>&1
cannam@162 569
cannam@162 570 # Name of the host.
cannam@162 571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cannam@162 572 # so uname gets run too.
cannam@162 573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@162 574
cannam@162 575 #
cannam@162 576 # Initializations.
cannam@162 577 #
cannam@162 578 ac_default_prefix=/usr/local
cannam@162 579 ac_clean_files=
cannam@162 580 ac_config_libobj_dir=.
cannam@162 581 LIBOBJS=
cannam@162 582 cross_compiling=no
cannam@162 583 subdirs=
cannam@162 584 MFLAGS=
cannam@162 585 MAKEFLAGS=
cannam@162 586
cannam@162 587 # Identity of this package.
cannam@162 588 PACKAGE_NAME=
cannam@162 589 PACKAGE_TARNAME=
cannam@162 590 PACKAGE_VERSION=
cannam@162 591 PACKAGE_STRING=
cannam@162 592 PACKAGE_BUGREPORT=
cannam@162 593 PACKAGE_URL=
cannam@162 594
cannam@162 595 ac_unique_file="include/portaudio.h"
cannam@162 596 # Factoring default headers for most tests.
cannam@162 597 ac_includes_default="\
cannam@162 598 #include <stdio.h>
cannam@162 599 #ifdef HAVE_SYS_TYPES_H
cannam@162 600 # include <sys/types.h>
cannam@162 601 #endif
cannam@162 602 #ifdef HAVE_SYS_STAT_H
cannam@162 603 # include <sys/stat.h>
cannam@162 604 #endif
cannam@162 605 #ifdef STDC_HEADERS
cannam@162 606 # include <stdlib.h>
cannam@162 607 # include <stddef.h>
cannam@162 608 #else
cannam@162 609 # ifdef HAVE_STDLIB_H
cannam@162 610 # include <stdlib.h>
cannam@162 611 # endif
cannam@162 612 #endif
cannam@162 613 #ifdef HAVE_STRING_H
cannam@162 614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
cannam@162 615 # include <memory.h>
cannam@162 616 # endif
cannam@162 617 # include <string.h>
cannam@162 618 #endif
cannam@162 619 #ifdef HAVE_STRINGS_H
cannam@162 620 # include <strings.h>
cannam@162 621 #endif
cannam@162 622 #ifdef HAVE_INTTYPES_H
cannam@162 623 # include <inttypes.h>
cannam@162 624 #endif
cannam@162 625 #ifdef HAVE_STDINT_H
cannam@162 626 # include <stdint.h>
cannam@162 627 #endif
cannam@162 628 #ifdef HAVE_UNISTD_H
cannam@162 629 # include <unistd.h>
cannam@162 630 #endif"
cannam@162 631
cannam@162 632 enable_option_checking=no
cannam@162 633 ac_subst_vars='LTLIBOBJS
cannam@162 634 LIBOBJS
cannam@162 635 WITH_ASIO_FALSE
cannam@162 636 WITH_ASIO_TRUE
cannam@162 637 ENABLE_CXX_FALSE
cannam@162 638 ENABLE_CXX_TRUE
cannam@162 639 subdirs
cannam@162 640 INCLUDES
cannam@162 641 NASMOPT
cannam@162 642 NASM
cannam@162 643 DLL_LIBS
cannam@162 644 THREAD_CFLAGS
cannam@162 645 SHARED_FLAGS
cannam@162 646 PADLL
cannam@162 647 OTHER_OBJS
cannam@162 648 LT_AGE
cannam@162 649 LT_REVISION
cannam@162 650 LT_CURRENT
cannam@162 651 JACK_LIBS
cannam@162 652 JACK_CFLAGS
cannam@162 653 PKG_CONFIG_LIBDIR
cannam@162 654 PKG_CONFIG_PATH
cannam@162 655 PKG_CONFIG
cannam@162 656 INSTALL_DATA
cannam@162 657 INSTALL_SCRIPT
cannam@162 658 INSTALL_PROGRAM
cannam@162 659 CXXCPP
cannam@162 660 CPP
cannam@162 661 OTOOL64
cannam@162 662 OTOOL
cannam@162 663 LIPO
cannam@162 664 NMEDIT
cannam@162 665 DSYMUTIL
cannam@162 666 MANIFEST_TOOL
cannam@162 667 AWK
cannam@162 668 RANLIB
cannam@162 669 STRIP
cannam@162 670 ac_ct_AR
cannam@162 671 AR
cannam@162 672 LN_S
cannam@162 673 NM
cannam@162 674 ac_ct_DUMPBIN
cannam@162 675 DUMPBIN
cannam@162 676 LD
cannam@162 677 FGREP
cannam@162 678 EGREP
cannam@162 679 GREP
cannam@162 680 SED
cannam@162 681 LIBTOOL
cannam@162 682 OBJDUMP
cannam@162 683 DLLTOOL
cannam@162 684 AS
cannam@162 685 ac_ct_CXX
cannam@162 686 CXXFLAGS
cannam@162 687 CXX
cannam@162 688 OBJEXT
cannam@162 689 EXEEXT
cannam@162 690 ac_ct_CC
cannam@162 691 CPPFLAGS
cannam@162 692 LDFLAGS
cannam@162 693 CFLAGS
cannam@162 694 CC
cannam@162 695 target_os
cannam@162 696 target_vendor
cannam@162 697 target_cpu
cannam@162 698 target
cannam@162 699 host_os
cannam@162 700 host_vendor
cannam@162 701 host_cpu
cannam@162 702 host
cannam@162 703 build_os
cannam@162 704 build_vendor
cannam@162 705 build_cpu
cannam@162 706 build
cannam@162 707 target_alias
cannam@162 708 host_alias
cannam@162 709 build_alias
cannam@162 710 LIBS
cannam@162 711 ECHO_T
cannam@162 712 ECHO_N
cannam@162 713 ECHO_C
cannam@162 714 DEFS
cannam@162 715 mandir
cannam@162 716 localedir
cannam@162 717 libdir
cannam@162 718 psdir
cannam@162 719 pdfdir
cannam@162 720 dvidir
cannam@162 721 htmldir
cannam@162 722 infodir
cannam@162 723 docdir
cannam@162 724 oldincludedir
cannam@162 725 includedir
cannam@162 726 localstatedir
cannam@162 727 sharedstatedir
cannam@162 728 sysconfdir
cannam@162 729 datadir
cannam@162 730 datarootdir
cannam@162 731 libexecdir
cannam@162 732 sbindir
cannam@162 733 bindir
cannam@162 734 program_transform_name
cannam@162 735 prefix
cannam@162 736 exec_prefix
cannam@162 737 PACKAGE_URL
cannam@162 738 PACKAGE_BUGREPORT
cannam@162 739 PACKAGE_STRING
cannam@162 740 PACKAGE_VERSION
cannam@162 741 PACKAGE_TARNAME
cannam@162 742 PACKAGE_NAME
cannam@162 743 PATH_SEPARATOR
cannam@162 744 SHELL'
cannam@162 745 ac_subst_files=''
cannam@162 746 ac_user_opts='
cannam@162 747 enable_option_checking
cannam@162 748 with_alsa
cannam@162 749 with_jack
cannam@162 750 with_oss
cannam@162 751 with_asihpi
cannam@162 752 with_winapi
cannam@162 753 with_asiodir
cannam@162 754 with_dxdir
cannam@162 755 enable_debug_output
cannam@162 756 enable_cxx
cannam@162 757 enable_mac_debug
cannam@162 758 enable_mac_universal
cannam@162 759 with_host_os
cannam@162 760 enable_shared
cannam@162 761 enable_static
cannam@162 762 with_pic
cannam@162 763 enable_fast_install
cannam@162 764 with_gnu_ld
cannam@162 765 with_sysroot
cannam@162 766 enable_libtool_lock
cannam@162 767 '
cannam@162 768 ac_precious_vars='build_alias
cannam@162 769 host_alias
cannam@162 770 target_alias
cannam@162 771 CC
cannam@162 772 CFLAGS
cannam@162 773 LDFLAGS
cannam@162 774 LIBS
cannam@162 775 CPPFLAGS
cannam@162 776 CXX
cannam@162 777 CXXFLAGS
cannam@162 778 CCC
cannam@162 779 CPP
cannam@162 780 CXXCPP
cannam@162 781 PKG_CONFIG
cannam@162 782 PKG_CONFIG_PATH
cannam@162 783 PKG_CONFIG_LIBDIR
cannam@162 784 JACK_CFLAGS
cannam@162 785 JACK_LIBS'
cannam@162 786 ac_subdirs_all='bindings/cpp'
cannam@162 787
cannam@162 788 # Initialize some variables set by options.
cannam@162 789 ac_init_help=
cannam@162 790 ac_init_version=false
cannam@162 791 ac_unrecognized_opts=
cannam@162 792 ac_unrecognized_sep=
cannam@162 793 # The variables have the same names as the options, with
cannam@162 794 # dashes changed to underlines.
cannam@162 795 cache_file=/dev/null
cannam@162 796 exec_prefix=NONE
cannam@162 797 no_create=
cannam@162 798 no_recursion=
cannam@162 799 prefix=NONE
cannam@162 800 program_prefix=NONE
cannam@162 801 program_suffix=NONE
cannam@162 802 program_transform_name=s,x,x,
cannam@162 803 silent=
cannam@162 804 site=
cannam@162 805 srcdir=
cannam@162 806 verbose=
cannam@162 807 x_includes=NONE
cannam@162 808 x_libraries=NONE
cannam@162 809
cannam@162 810 # Installation directory options.
cannam@162 811 # These are left unexpanded so users can "make install exec_prefix=/foo"
cannam@162 812 # and all the variables that are supposed to be based on exec_prefix
cannam@162 813 # by default will actually change.
cannam@162 814 # Use braces instead of parens because sh, perl, etc. also accept them.
cannam@162 815 # (The list follows the same order as the GNU Coding Standards.)
cannam@162 816 bindir='${exec_prefix}/bin'
cannam@162 817 sbindir='${exec_prefix}/sbin'
cannam@162 818 libexecdir='${exec_prefix}/libexec'
cannam@162 819 datarootdir='${prefix}/share'
cannam@162 820 datadir='${datarootdir}'
cannam@162 821 sysconfdir='${prefix}/etc'
cannam@162 822 sharedstatedir='${prefix}/com'
cannam@162 823 localstatedir='${prefix}/var'
cannam@162 824 includedir='${prefix}/include'
cannam@162 825 oldincludedir='/usr/include'
cannam@162 826 docdir='${datarootdir}/doc/${PACKAGE}'
cannam@162 827 infodir='${datarootdir}/info'
cannam@162 828 htmldir='${docdir}'
cannam@162 829 dvidir='${docdir}'
cannam@162 830 pdfdir='${docdir}'
cannam@162 831 psdir='${docdir}'
cannam@162 832 libdir='${exec_prefix}/lib'
cannam@162 833 localedir='${datarootdir}/locale'
cannam@162 834 mandir='${datarootdir}/man'
cannam@162 835
cannam@162 836 ac_prev=
cannam@162 837 ac_dashdash=
cannam@162 838 for ac_option
cannam@162 839 do
cannam@162 840 # If the previous option needs an argument, assign it.
cannam@162 841 if test -n "$ac_prev"; then
cannam@162 842 eval $ac_prev=\$ac_option
cannam@162 843 ac_prev=
cannam@162 844 continue
cannam@162 845 fi
cannam@162 846
cannam@162 847 case $ac_option in
cannam@162 848 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
cannam@162 849 *=) ac_optarg= ;;
cannam@162 850 *) ac_optarg=yes ;;
cannam@162 851 esac
cannam@162 852
cannam@162 853 # Accept the important Cygnus configure options, so we can diagnose typos.
cannam@162 854
cannam@162 855 case $ac_dashdash$ac_option in
cannam@162 856 --)
cannam@162 857 ac_dashdash=yes ;;
cannam@162 858
cannam@162 859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
cannam@162 860 ac_prev=bindir ;;
cannam@162 861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
cannam@162 862 bindir=$ac_optarg ;;
cannam@162 863
cannam@162 864 -build | --build | --buil | --bui | --bu)
cannam@162 865 ac_prev=build_alias ;;
cannam@162 866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
cannam@162 867 build_alias=$ac_optarg ;;
cannam@162 868
cannam@162 869 -cache-file | --cache-file | --cache-fil | --cache-fi \
cannam@162 870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
cannam@162 871 ac_prev=cache_file ;;
cannam@162 872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
cannam@162 873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
cannam@162 874 cache_file=$ac_optarg ;;
cannam@162 875
cannam@162 876 --config-cache | -C)
cannam@162 877 cache_file=config.cache ;;
cannam@162 878
cannam@162 879 -datadir | --datadir | --datadi | --datad)
cannam@162 880 ac_prev=datadir ;;
cannam@162 881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
cannam@162 882 datadir=$ac_optarg ;;
cannam@162 883
cannam@162 884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
cannam@162 885 | --dataroo | --dataro | --datar)
cannam@162 886 ac_prev=datarootdir ;;
cannam@162 887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
cannam@162 888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
cannam@162 889 datarootdir=$ac_optarg ;;
cannam@162 890
cannam@162 891 -disable-* | --disable-*)
cannam@162 892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
cannam@162 893 # Reject names that are not valid shell variable names.
cannam@162 894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@162 895 as_fn_error $? "invalid feature name: $ac_useropt"
cannam@162 896 ac_useropt_orig=$ac_useropt
cannam@162 897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@162 898 case $ac_user_opts in
cannam@162 899 *"
cannam@162 900 "enable_$ac_useropt"
cannam@162 901 "*) ;;
cannam@162 902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
cannam@162 903 ac_unrecognized_sep=', ';;
cannam@162 904 esac
cannam@162 905 eval enable_$ac_useropt=no ;;
cannam@162 906
cannam@162 907 -docdir | --docdir | --docdi | --doc | --do)
cannam@162 908 ac_prev=docdir ;;
cannam@162 909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
cannam@162 910 docdir=$ac_optarg ;;
cannam@162 911
cannam@162 912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
cannam@162 913 ac_prev=dvidir ;;
cannam@162 914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
cannam@162 915 dvidir=$ac_optarg ;;
cannam@162 916
cannam@162 917 -enable-* | --enable-*)
cannam@162 918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
cannam@162 919 # Reject names that are not valid shell variable names.
cannam@162 920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@162 921 as_fn_error $? "invalid feature name: $ac_useropt"
cannam@162 922 ac_useropt_orig=$ac_useropt
cannam@162 923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@162 924 case $ac_user_opts in
cannam@162 925 *"
cannam@162 926 "enable_$ac_useropt"
cannam@162 927 "*) ;;
cannam@162 928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
cannam@162 929 ac_unrecognized_sep=', ';;
cannam@162 930 esac
cannam@162 931 eval enable_$ac_useropt=\$ac_optarg ;;
cannam@162 932
cannam@162 933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
cannam@162 934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
cannam@162 935 | --exec | --exe | --ex)
cannam@162 936 ac_prev=exec_prefix ;;
cannam@162 937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
cannam@162 938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
cannam@162 939 | --exec=* | --exe=* | --ex=*)
cannam@162 940 exec_prefix=$ac_optarg ;;
cannam@162 941
cannam@162 942 -gas | --gas | --ga | --g)
cannam@162 943 # Obsolete; use --with-gas.
cannam@162 944 with_gas=yes ;;
cannam@162 945
cannam@162 946 -help | --help | --hel | --he | -h)
cannam@162 947 ac_init_help=long ;;
cannam@162 948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
cannam@162 949 ac_init_help=recursive ;;
cannam@162 950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
cannam@162 951 ac_init_help=short ;;
cannam@162 952
cannam@162 953 -host | --host | --hos | --ho)
cannam@162 954 ac_prev=host_alias ;;
cannam@162 955 -host=* | --host=* | --hos=* | --ho=*)
cannam@162 956 host_alias=$ac_optarg ;;
cannam@162 957
cannam@162 958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
cannam@162 959 ac_prev=htmldir ;;
cannam@162 960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
cannam@162 961 | --ht=*)
cannam@162 962 htmldir=$ac_optarg ;;
cannam@162 963
cannam@162 964 -includedir | --includedir | --includedi | --included | --include \
cannam@162 965 | --includ | --inclu | --incl | --inc)
cannam@162 966 ac_prev=includedir ;;
cannam@162 967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
cannam@162 968 | --includ=* | --inclu=* | --incl=* | --inc=*)
cannam@162 969 includedir=$ac_optarg ;;
cannam@162 970
cannam@162 971 -infodir | --infodir | --infodi | --infod | --info | --inf)
cannam@162 972 ac_prev=infodir ;;
cannam@162 973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
cannam@162 974 infodir=$ac_optarg ;;
cannam@162 975
cannam@162 976 -libdir | --libdir | --libdi | --libd)
cannam@162 977 ac_prev=libdir ;;
cannam@162 978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
cannam@162 979 libdir=$ac_optarg ;;
cannam@162 980
cannam@162 981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
cannam@162 982 | --libexe | --libex | --libe)
cannam@162 983 ac_prev=libexecdir ;;
cannam@162 984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
cannam@162 985 | --libexe=* | --libex=* | --libe=*)
cannam@162 986 libexecdir=$ac_optarg ;;
cannam@162 987
cannam@162 988 -localedir | --localedir | --localedi | --localed | --locale)
cannam@162 989 ac_prev=localedir ;;
cannam@162 990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
cannam@162 991 localedir=$ac_optarg ;;
cannam@162 992
cannam@162 993 -localstatedir | --localstatedir | --localstatedi | --localstated \
cannam@162 994 | --localstate | --localstat | --localsta | --localst | --locals)
cannam@162 995 ac_prev=localstatedir ;;
cannam@162 996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cannam@162 997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
cannam@162 998 localstatedir=$ac_optarg ;;
cannam@162 999
cannam@162 1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
cannam@162 1001 ac_prev=mandir ;;
cannam@162 1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
cannam@162 1003 mandir=$ac_optarg ;;
cannam@162 1004
cannam@162 1005 -nfp | --nfp | --nf)
cannam@162 1006 # Obsolete; use --without-fp.
cannam@162 1007 with_fp=no ;;
cannam@162 1008
cannam@162 1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
cannam@162 1010 | --no-cr | --no-c | -n)
cannam@162 1011 no_create=yes ;;
cannam@162 1012
cannam@162 1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
cannam@162 1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
cannam@162 1015 no_recursion=yes ;;
cannam@162 1016
cannam@162 1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
cannam@162 1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
cannam@162 1019 | --oldin | --oldi | --old | --ol | --o)
cannam@162 1020 ac_prev=oldincludedir ;;
cannam@162 1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
cannam@162 1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
cannam@162 1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
cannam@162 1024 oldincludedir=$ac_optarg ;;
cannam@162 1025
cannam@162 1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
cannam@162 1027 ac_prev=prefix ;;
cannam@162 1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
cannam@162 1029 prefix=$ac_optarg ;;
cannam@162 1030
cannam@162 1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
cannam@162 1032 | --program-pre | --program-pr | --program-p)
cannam@162 1033 ac_prev=program_prefix ;;
cannam@162 1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
cannam@162 1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
cannam@162 1036 program_prefix=$ac_optarg ;;
cannam@162 1037
cannam@162 1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
cannam@162 1039 | --program-suf | --program-su | --program-s)
cannam@162 1040 ac_prev=program_suffix ;;
cannam@162 1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
cannam@162 1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
cannam@162 1043 program_suffix=$ac_optarg ;;
cannam@162 1044
cannam@162 1045 -program-transform-name | --program-transform-name \
cannam@162 1046 | --program-transform-nam | --program-transform-na \
cannam@162 1047 | --program-transform-n | --program-transform- \
cannam@162 1048 | --program-transform | --program-transfor \
cannam@162 1049 | --program-transfo | --program-transf \
cannam@162 1050 | --program-trans | --program-tran \
cannam@162 1051 | --progr-tra | --program-tr | --program-t)
cannam@162 1052 ac_prev=program_transform_name ;;
cannam@162 1053 -program-transform-name=* | --program-transform-name=* \
cannam@162 1054 | --program-transform-nam=* | --program-transform-na=* \
cannam@162 1055 | --program-transform-n=* | --program-transform-=* \
cannam@162 1056 | --program-transform=* | --program-transfor=* \
cannam@162 1057 | --program-transfo=* | --program-transf=* \
cannam@162 1058 | --program-trans=* | --program-tran=* \
cannam@162 1059 | --progr-tra=* | --program-tr=* | --program-t=*)
cannam@162 1060 program_transform_name=$ac_optarg ;;
cannam@162 1061
cannam@162 1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
cannam@162 1063 ac_prev=pdfdir ;;
cannam@162 1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
cannam@162 1065 pdfdir=$ac_optarg ;;
cannam@162 1066
cannam@162 1067 -psdir | --psdir | --psdi | --psd | --ps)
cannam@162 1068 ac_prev=psdir ;;
cannam@162 1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
cannam@162 1070 psdir=$ac_optarg ;;
cannam@162 1071
cannam@162 1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@162 1073 | -silent | --silent | --silen | --sile | --sil)
cannam@162 1074 silent=yes ;;
cannam@162 1075
cannam@162 1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
cannam@162 1077 ac_prev=sbindir ;;
cannam@162 1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
cannam@162 1079 | --sbi=* | --sb=*)
cannam@162 1080 sbindir=$ac_optarg ;;
cannam@162 1081
cannam@162 1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
cannam@162 1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
cannam@162 1084 | --sharedst | --shareds | --shared | --share | --shar \
cannam@162 1085 | --sha | --sh)
cannam@162 1086 ac_prev=sharedstatedir ;;
cannam@162 1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
cannam@162 1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
cannam@162 1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
cannam@162 1090 | --sha=* | --sh=*)
cannam@162 1091 sharedstatedir=$ac_optarg ;;
cannam@162 1092
cannam@162 1093 -site | --site | --sit)
cannam@162 1094 ac_prev=site ;;
cannam@162 1095 -site=* | --site=* | --sit=*)
cannam@162 1096 site=$ac_optarg ;;
cannam@162 1097
cannam@162 1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
cannam@162 1099 ac_prev=srcdir ;;
cannam@162 1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
cannam@162 1101 srcdir=$ac_optarg ;;
cannam@162 1102
cannam@162 1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
cannam@162 1104 | --syscon | --sysco | --sysc | --sys | --sy)
cannam@162 1105 ac_prev=sysconfdir ;;
cannam@162 1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
cannam@162 1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
cannam@162 1108 sysconfdir=$ac_optarg ;;
cannam@162 1109
cannam@162 1110 -target | --target | --targe | --targ | --tar | --ta | --t)
cannam@162 1111 ac_prev=target_alias ;;
cannam@162 1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
cannam@162 1113 target_alias=$ac_optarg ;;
cannam@162 1114
cannam@162 1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
cannam@162 1116 verbose=yes ;;
cannam@162 1117
cannam@162 1118 -version | --version | --versio | --versi | --vers | -V)
cannam@162 1119 ac_init_version=: ;;
cannam@162 1120
cannam@162 1121 -with-* | --with-*)
cannam@162 1122 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
cannam@162 1123 # Reject names that are not valid shell variable names.
cannam@162 1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@162 1125 as_fn_error $? "invalid package name: $ac_useropt"
cannam@162 1126 ac_useropt_orig=$ac_useropt
cannam@162 1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@162 1128 case $ac_user_opts in
cannam@162 1129 *"
cannam@162 1130 "with_$ac_useropt"
cannam@162 1131 "*) ;;
cannam@162 1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
cannam@162 1133 ac_unrecognized_sep=', ';;
cannam@162 1134 esac
cannam@162 1135 eval with_$ac_useropt=\$ac_optarg ;;
cannam@162 1136
cannam@162 1137 -without-* | --without-*)
cannam@162 1138 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
cannam@162 1139 # Reject names that are not valid shell variable names.
cannam@162 1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@162 1141 as_fn_error $? "invalid package name: $ac_useropt"
cannam@162 1142 ac_useropt_orig=$ac_useropt
cannam@162 1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@162 1144 case $ac_user_opts in
cannam@162 1145 *"
cannam@162 1146 "with_$ac_useropt"
cannam@162 1147 "*) ;;
cannam@162 1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
cannam@162 1149 ac_unrecognized_sep=', ';;
cannam@162 1150 esac
cannam@162 1151 eval with_$ac_useropt=no ;;
cannam@162 1152
cannam@162 1153 --x)
cannam@162 1154 # Obsolete; use --with-x.
cannam@162 1155 with_x=yes ;;
cannam@162 1156
cannam@162 1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
cannam@162 1158 | --x-incl | --x-inc | --x-in | --x-i)
cannam@162 1159 ac_prev=x_includes ;;
cannam@162 1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
cannam@162 1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
cannam@162 1162 x_includes=$ac_optarg ;;
cannam@162 1163
cannam@162 1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
cannam@162 1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
cannam@162 1166 ac_prev=x_libraries ;;
cannam@162 1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
cannam@162 1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
cannam@162 1169 x_libraries=$ac_optarg ;;
cannam@162 1170
cannam@162 1171 -*) as_fn_error $? "unrecognized option: \`$ac_option'
cannam@162 1172 Try \`$0 --help' for more information"
cannam@162 1173 ;;
cannam@162 1174
cannam@162 1175 *=*)
cannam@162 1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
cannam@162 1177 # Reject names that are not valid shell variable names.
cannam@162 1178 case $ac_envvar in #(
cannam@162 1179 '' | [0-9]* | *[!_$as_cr_alnum]* )
cannam@162 1180 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cannam@162 1181 esac
cannam@162 1182 eval $ac_envvar=\$ac_optarg
cannam@162 1183 export $ac_envvar ;;
cannam@162 1184
cannam@162 1185 *)
cannam@162 1186 # FIXME: should be removed in autoconf 3.0.
cannam@162 1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
cannam@162 1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
cannam@162 1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cannam@162 1190 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cannam@162 1191 ;;
cannam@162 1192
cannam@162 1193 esac
cannam@162 1194 done
cannam@162 1195
cannam@162 1196 if test -n "$ac_prev"; then
cannam@162 1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cannam@162 1198 as_fn_error $? "missing argument to $ac_option"
cannam@162 1199 fi
cannam@162 1200
cannam@162 1201 if test -n "$ac_unrecognized_opts"; then
cannam@162 1202 case $enable_option_checking in
cannam@162 1203 no) ;;
cannam@162 1204 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cannam@162 1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
cannam@162 1206 esac
cannam@162 1207 fi
cannam@162 1208
cannam@162 1209 # Check all directory arguments for consistency.
cannam@162 1210 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
cannam@162 1211 datadir sysconfdir sharedstatedir localstatedir includedir \
cannam@162 1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
cannam@162 1213 libdir localedir mandir
cannam@162 1214 do
cannam@162 1215 eval ac_val=\$$ac_var
cannam@162 1216 # Remove trailing slashes.
cannam@162 1217 case $ac_val in
cannam@162 1218 */ )
cannam@162 1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
cannam@162 1220 eval $ac_var=\$ac_val;;
cannam@162 1221 esac
cannam@162 1222 # Be sure to have absolute directory names.
cannam@162 1223 case $ac_val in
cannam@162 1224 [\\/$]* | ?:[\\/]* ) continue;;
cannam@162 1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
cannam@162 1226 esac
cannam@162 1227 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cannam@162 1228 done
cannam@162 1229
cannam@162 1230 # There might be people who depend on the old broken behavior: `$host'
cannam@162 1231 # used to hold the argument of --host etc.
cannam@162 1232 # FIXME: To remove some day.
cannam@162 1233 build=$build_alias
cannam@162 1234 host=$host_alias
cannam@162 1235 target=$target_alias
cannam@162 1236
cannam@162 1237 # FIXME: To remove some day.
cannam@162 1238 if test "x$host_alias" != x; then
cannam@162 1239 if test "x$build_alias" = x; then
cannam@162 1240 cross_compiling=maybe
cannam@162 1241 elif test "x$build_alias" != "x$host_alias"; then
cannam@162 1242 cross_compiling=yes
cannam@162 1243 fi
cannam@162 1244 fi
cannam@162 1245
cannam@162 1246 ac_tool_prefix=
cannam@162 1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
cannam@162 1248
cannam@162 1249 test "$silent" = yes && exec 6>/dev/null
cannam@162 1250
cannam@162 1251
cannam@162 1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
cannam@162 1253 ac_ls_di=`ls -di .` &&
cannam@162 1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cannam@162 1255 as_fn_error $? "working directory cannot be determined"
cannam@162 1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cannam@162 1257 as_fn_error $? "pwd does not report name of working directory"
cannam@162 1258
cannam@162 1259
cannam@162 1260 # Find the source files, if location was not specified.
cannam@162 1261 if test -z "$srcdir"; then
cannam@162 1262 ac_srcdir_defaulted=yes
cannam@162 1263 # Try the directory containing this script, then the parent directory.
cannam@162 1264 ac_confdir=`$as_dirname -- "$as_myself" ||
cannam@162 1265 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@162 1266 X"$as_myself" : 'X\(//\)[^/]' \| \
cannam@162 1267 X"$as_myself" : 'X\(//\)$' \| \
cannam@162 1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
cannam@162 1269 $as_echo X"$as_myself" |
cannam@162 1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@162 1271 s//\1/
cannam@162 1272 q
cannam@162 1273 }
cannam@162 1274 /^X\(\/\/\)[^/].*/{
cannam@162 1275 s//\1/
cannam@162 1276 q
cannam@162 1277 }
cannam@162 1278 /^X\(\/\/\)$/{
cannam@162 1279 s//\1/
cannam@162 1280 q
cannam@162 1281 }
cannam@162 1282 /^X\(\/\).*/{
cannam@162 1283 s//\1/
cannam@162 1284 q
cannam@162 1285 }
cannam@162 1286 s/.*/./; q'`
cannam@162 1287 srcdir=$ac_confdir
cannam@162 1288 if test ! -r "$srcdir/$ac_unique_file"; then
cannam@162 1289 srcdir=..
cannam@162 1290 fi
cannam@162 1291 else
cannam@162 1292 ac_srcdir_defaulted=no
cannam@162 1293 fi
cannam@162 1294 if test ! -r "$srcdir/$ac_unique_file"; then
cannam@162 1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cannam@162 1296 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cannam@162 1297 fi
cannam@162 1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
cannam@162 1299 ac_abs_confdir=`(
cannam@162 1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cannam@162 1301 pwd)`
cannam@162 1302 # When building in place, set srcdir=.
cannam@162 1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
cannam@162 1304 srcdir=.
cannam@162 1305 fi
cannam@162 1306 # Remove unnecessary trailing slashes from srcdir.
cannam@162 1307 # Double slashes in file names in object file debugging info
cannam@162 1308 # mess up M-x gdb in Emacs.
cannam@162 1309 case $srcdir in
cannam@162 1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
cannam@162 1311 esac
cannam@162 1312 for ac_var in $ac_precious_vars; do
cannam@162 1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
cannam@162 1314 eval ac_env_${ac_var}_value=\$${ac_var}
cannam@162 1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
cannam@162 1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
cannam@162 1317 done
cannam@162 1318
cannam@162 1319 #
cannam@162 1320 # Report the --help message.
cannam@162 1321 #
cannam@162 1322 if test "$ac_init_help" = "long"; then
cannam@162 1323 # Omit some internal or obsolete options to make the list less imposing.
cannam@162 1324 # This message is too long to be a string in the A/UX 3.1 sh.
cannam@162 1325 cat <<_ACEOF
cannam@162 1326 \`configure' configures this package to adapt to many kinds of systems.
cannam@162 1327
cannam@162 1328 Usage: $0 [OPTION]... [VAR=VALUE]...
cannam@162 1329
cannam@162 1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
cannam@162 1331 VAR=VALUE. See below for descriptions of some of the useful variables.
cannam@162 1332
cannam@162 1333 Defaults for the options are specified in brackets.
cannam@162 1334
cannam@162 1335 Configuration:
cannam@162 1336 -h, --help display this help and exit
cannam@162 1337 --help=short display options specific to this package
cannam@162 1338 --help=recursive display the short help of all the included packages
cannam@162 1339 -V, --version display version information and exit
cannam@162 1340 -q, --quiet, --silent do not print \`checking ...' messages
cannam@162 1341 --cache-file=FILE cache test results in FILE [disabled]
cannam@162 1342 -C, --config-cache alias for \`--cache-file=config.cache'
cannam@162 1343 -n, --no-create do not create output files
cannam@162 1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
cannam@162 1345
cannam@162 1346 Installation directories:
cannam@162 1347 --prefix=PREFIX install architecture-independent files in PREFIX
cannam@162 1348 [$ac_default_prefix]
cannam@162 1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
cannam@162 1350 [PREFIX]
cannam@162 1351
cannam@162 1352 By default, \`make install' will install all the files in
cannam@162 1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
cannam@162 1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
cannam@162 1355 for instance \`--prefix=\$HOME'.
cannam@162 1356
cannam@162 1357 For better control, use the options below.
cannam@162 1358
cannam@162 1359 Fine tuning of the installation directories:
cannam@162 1360 --bindir=DIR user executables [EPREFIX/bin]
cannam@162 1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
cannam@162 1362 --libexecdir=DIR program executables [EPREFIX/libexec]
cannam@162 1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
cannam@162 1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
cannam@162 1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
cannam@162 1366 --libdir=DIR object code libraries [EPREFIX/lib]
cannam@162 1367 --includedir=DIR C header files [PREFIX/include]
cannam@162 1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
cannam@162 1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
cannam@162 1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
cannam@162 1371 --infodir=DIR info documentation [DATAROOTDIR/info]
cannam@162 1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
cannam@162 1373 --mandir=DIR man documentation [DATAROOTDIR/man]
cannam@162 1374 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
cannam@162 1375 --htmldir=DIR html documentation [DOCDIR]
cannam@162 1376 --dvidir=DIR dvi documentation [DOCDIR]
cannam@162 1377 --pdfdir=DIR pdf documentation [DOCDIR]
cannam@162 1378 --psdir=DIR ps documentation [DOCDIR]
cannam@162 1379 _ACEOF
cannam@162 1380
cannam@162 1381 cat <<\_ACEOF
cannam@162 1382
cannam@162 1383 System types:
cannam@162 1384 --build=BUILD configure for building on BUILD [guessed]
cannam@162 1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
cannam@162 1386 --target=TARGET configure for building compilers for TARGET [HOST]
cannam@162 1387 _ACEOF
cannam@162 1388 fi
cannam@162 1389
cannam@162 1390 if test -n "$ac_init_help"; then
cannam@162 1391
cannam@162 1392 cat <<\_ACEOF
cannam@162 1393
cannam@162 1394 Optional Features:
cannam@162 1395 --disable-option-checking ignore unrecognized --enable/--with options
cannam@162 1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
cannam@162 1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cannam@162 1398 --enable-debug-output Enable debug output [no]
cannam@162 1399 --enable-cxx Enable C++ bindings [no]
cannam@162 1400 --enable-mac-debug Enable Mac debug [no]
cannam@162 1401 --enable-mac-universal Build Mac universal binaries [yes]
cannam@162 1402 --enable-shared[=PKGS] build shared libraries [default=yes]
cannam@162 1403 --enable-static[=PKGS] build static libraries [default=yes]
cannam@162 1404 --enable-fast-install[=PKGS]
cannam@162 1405 optimize for fast installation [default=yes]
cannam@162 1406 --disable-libtool-lock avoid locking (might break parallel builds)
cannam@162 1407
cannam@162 1408 Optional Packages:
cannam@162 1409 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
cannam@162 1410 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cannam@162 1411 --with-alsa Enable support for ALSA [autodetect]
cannam@162 1412 --with-jack Enable support for JACK [autodetect]
cannam@162 1413 --with-oss Enable support for OSS [autodetect]
cannam@162 1414 --with-asihpi Enable support for ASIHPI [autodetect]
cannam@162 1415 --with-winapi Select Windows API support
cannam@162 1416 ([wmme|directx|asio|wasapi|wdmks][,...]) [wmme]
cannam@162 1417 --with-asiodir ASIO directory [/usr/local/asiosdk2]
cannam@162 1418 --with-dxdir DirectX directory [/usr/local/dx7sdk]
cannam@162 1419
cannam@162 1420 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cannam@162 1421 both]
cannam@162 1422 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cannam@162 1423 --with-sysroot=DIR Search for dependent libraries within DIR
cannam@162 1424 (or the compiler's sysroot if not specified).
cannam@162 1425
cannam@162 1426 Some influential environment variables:
cannam@162 1427 CC C compiler command
cannam@162 1428 CFLAGS C compiler flags
cannam@162 1429 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
cannam@162 1430 nonstandard directory <lib dir>
cannam@162 1431 LIBS libraries to pass to the linker, e.g. -l<library>
cannam@162 1432 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cannam@162 1433 you have headers in a nonstandard directory <include dir>
cannam@162 1434 CXX C++ compiler command
cannam@162 1435 CXXFLAGS C++ compiler flags
cannam@162 1436 CPP C preprocessor
cannam@162 1437 CXXCPP C++ preprocessor
cannam@162 1438 PKG_CONFIG path to pkg-config utility
cannam@162 1439 PKG_CONFIG_PATH
cannam@162 1440 directories to add to pkg-config's search path
cannam@162 1441 PKG_CONFIG_LIBDIR
cannam@162 1442 path overriding pkg-config's built-in search path
cannam@162 1443 JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
cannam@162 1444 JACK_LIBS linker flags for JACK, overriding pkg-config
cannam@162 1445
cannam@162 1446 Use these variables to override the choices made by `configure' or to help
cannam@162 1447 it to find libraries and programs with nonstandard names/locations.
cannam@162 1448
cannam@162 1449 Report bugs to the package provider.
cannam@162 1450 _ACEOF
cannam@162 1451 ac_status=$?
cannam@162 1452 fi
cannam@162 1453
cannam@162 1454 if test "$ac_init_help" = "recursive"; then
cannam@162 1455 # If there are subdirs, report their specific --help.
cannam@162 1456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
cannam@162 1457 test -d "$ac_dir" ||
cannam@162 1458 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
cannam@162 1459 continue
cannam@162 1460 ac_builddir=.
cannam@162 1461
cannam@162 1462 case "$ac_dir" in
cannam@162 1463 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@162 1464 *)
cannam@162 1465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
cannam@162 1466 # A ".." for each directory in $ac_dir_suffix.
cannam@162 1467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
cannam@162 1468 case $ac_top_builddir_sub in
cannam@162 1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@162 1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
cannam@162 1471 esac ;;
cannam@162 1472 esac
cannam@162 1473 ac_abs_top_builddir=$ac_pwd
cannam@162 1474 ac_abs_builddir=$ac_pwd$ac_dir_suffix
cannam@162 1475 # for backward compatibility:
cannam@162 1476 ac_top_builddir=$ac_top_build_prefix
cannam@162 1477
cannam@162 1478 case $srcdir in
cannam@162 1479 .) # We are building in place.
cannam@162 1480 ac_srcdir=.
cannam@162 1481 ac_top_srcdir=$ac_top_builddir_sub
cannam@162 1482 ac_abs_top_srcdir=$ac_pwd ;;
cannam@162 1483 [\\/]* | ?:[\\/]* ) # Absolute name.
cannam@162 1484 ac_srcdir=$srcdir$ac_dir_suffix;
cannam@162 1485 ac_top_srcdir=$srcdir
cannam@162 1486 ac_abs_top_srcdir=$srcdir ;;
cannam@162 1487 *) # Relative name.
cannam@162 1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
cannam@162 1489 ac_top_srcdir=$ac_top_build_prefix$srcdir
cannam@162 1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
cannam@162 1491 esac
cannam@162 1492 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
cannam@162 1493
cannam@162 1494 cd "$ac_dir" || { ac_status=$?; continue; }
cannam@162 1495 # Check for guested configure.
cannam@162 1496 if test -f "$ac_srcdir/configure.gnu"; then
cannam@162 1497 echo &&
cannam@162 1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
cannam@162 1499 elif test -f "$ac_srcdir/configure"; then
cannam@162 1500 echo &&
cannam@162 1501 $SHELL "$ac_srcdir/configure" --help=recursive
cannam@162 1502 else
cannam@162 1503 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
cannam@162 1504 fi || ac_status=$?
cannam@162 1505 cd "$ac_pwd" || { ac_status=$?; break; }
cannam@162 1506 done
cannam@162 1507 fi
cannam@162 1508
cannam@162 1509 test -n "$ac_init_help" && exit $ac_status
cannam@162 1510 if $ac_init_version; then
cannam@162 1511 cat <<\_ACEOF
cannam@162 1512 configure
cannam@162 1513 generated by GNU Autoconf 2.69
cannam@162 1514
cannam@162 1515 Copyright (C) 2012 Free Software Foundation, Inc.
cannam@162 1516 This configure script is free software; the Free Software Foundation
cannam@162 1517 gives unlimited permission to copy, distribute and modify it.
cannam@162 1518 _ACEOF
cannam@162 1519 exit
cannam@162 1520 fi
cannam@162 1521
cannam@162 1522 ## ------------------------ ##
cannam@162 1523 ## Autoconf initialization. ##
cannam@162 1524 ## ------------------------ ##
cannam@162 1525
cannam@162 1526 # ac_fn_c_try_compile LINENO
cannam@162 1527 # --------------------------
cannam@162 1528 # Try to compile conftest.$ac_ext, and return whether this succeeded.
cannam@162 1529 ac_fn_c_try_compile ()
cannam@162 1530 {
cannam@162 1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@162 1532 rm -f conftest.$ac_objext
cannam@162 1533 if { { ac_try="$ac_compile"
cannam@162 1534 case "(($ac_try" in
cannam@162 1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@162 1536 *) ac_try_echo=$ac_try;;
cannam@162 1537 esac
cannam@162 1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@162 1539 $as_echo "$ac_try_echo"; } >&5
cannam@162 1540 (eval "$ac_compile") 2>conftest.err
cannam@162 1541 ac_status=$?
cannam@162 1542 if test -s conftest.err; then
cannam@162 1543 grep -v '^ *+' conftest.err >conftest.er1
cannam@162 1544 cat conftest.er1 >&5
cannam@162 1545 mv -f conftest.er1 conftest.err
cannam@162 1546 fi
cannam@162 1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 1548 test $ac_status = 0; } && {
cannam@162 1549 test -z "$ac_c_werror_flag" ||
cannam@162 1550 test ! -s conftest.err
cannam@162 1551 } && test -s conftest.$ac_objext; then :
cannam@162 1552 ac_retval=0
cannam@162 1553 else
cannam@162 1554 $as_echo "$as_me: failed program was:" >&5
cannam@162 1555 sed 's/^/| /' conftest.$ac_ext >&5
cannam@162 1556
cannam@162 1557 ac_retval=1
cannam@162 1558 fi
cannam@162 1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@162 1560 as_fn_set_status $ac_retval
cannam@162 1561
cannam@162 1562 } # ac_fn_c_try_compile
cannam@162 1563
cannam@162 1564 # ac_fn_cxx_try_compile LINENO
cannam@162 1565 # ----------------------------
cannam@162 1566 # Try to compile conftest.$ac_ext, and return whether this succeeded.
cannam@162 1567 ac_fn_cxx_try_compile ()
cannam@162 1568 {
cannam@162 1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@162 1570 rm -f conftest.$ac_objext
cannam@162 1571 if { { ac_try="$ac_compile"
cannam@162 1572 case "(($ac_try" in
cannam@162 1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@162 1574 *) ac_try_echo=$ac_try;;
cannam@162 1575 esac
cannam@162 1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@162 1577 $as_echo "$ac_try_echo"; } >&5
cannam@162 1578 (eval "$ac_compile") 2>conftest.err
cannam@162 1579 ac_status=$?
cannam@162 1580 if test -s conftest.err; then
cannam@162 1581 grep -v '^ *+' conftest.err >conftest.er1
cannam@162 1582 cat conftest.er1 >&5
cannam@162 1583 mv -f conftest.er1 conftest.err
cannam@162 1584 fi
cannam@162 1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 1586 test $ac_status = 0; } && {
cannam@162 1587 test -z "$ac_cxx_werror_flag" ||
cannam@162 1588 test ! -s conftest.err
cannam@162 1589 } && test -s conftest.$ac_objext; then :
cannam@162 1590 ac_retval=0
cannam@162 1591 else
cannam@162 1592 $as_echo "$as_me: failed program was:" >&5
cannam@162 1593 sed 's/^/| /' conftest.$ac_ext >&5
cannam@162 1594
cannam@162 1595 ac_retval=1
cannam@162 1596 fi
cannam@162 1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@162 1598 as_fn_set_status $ac_retval
cannam@162 1599
cannam@162 1600 } # ac_fn_cxx_try_compile
cannam@162 1601
cannam@162 1602 # ac_fn_c_try_link LINENO
cannam@162 1603 # -----------------------
cannam@162 1604 # Try to link conftest.$ac_ext, and return whether this succeeded.
cannam@162 1605 ac_fn_c_try_link ()
cannam@162 1606 {
cannam@162 1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@162 1608 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@162 1609 if { { ac_try="$ac_link"
cannam@162 1610 case "(($ac_try" in
cannam@162 1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@162 1612 *) ac_try_echo=$ac_try;;
cannam@162 1613 esac
cannam@162 1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@162 1615 $as_echo "$ac_try_echo"; } >&5
cannam@162 1616 (eval "$ac_link") 2>conftest.err
cannam@162 1617 ac_status=$?
cannam@162 1618 if test -s conftest.err; then
cannam@162 1619 grep -v '^ *+' conftest.err >conftest.er1
cannam@162 1620 cat conftest.er1 >&5
cannam@162 1621 mv -f conftest.er1 conftest.err
cannam@162 1622 fi
cannam@162 1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 1624 test $ac_status = 0; } && {
cannam@162 1625 test -z "$ac_c_werror_flag" ||
cannam@162 1626 test ! -s conftest.err
cannam@162 1627 } && test -s conftest$ac_exeext && {
cannam@162 1628 test "$cross_compiling" = yes ||
cannam@162 1629 test -x conftest$ac_exeext
cannam@162 1630 }; then :
cannam@162 1631 ac_retval=0
cannam@162 1632 else
cannam@162 1633 $as_echo "$as_me: failed program was:" >&5
cannam@162 1634 sed 's/^/| /' conftest.$ac_ext >&5
cannam@162 1635
cannam@162 1636 ac_retval=1
cannam@162 1637 fi
cannam@162 1638 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
cannam@162 1639 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
cannam@162 1640 # interfere with the next link command; also delete a directory that is
cannam@162 1641 # left behind by Apple's compiler. We do this before executing the actions.
cannam@162 1642 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cannam@162 1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@162 1644 as_fn_set_status $ac_retval
cannam@162 1645
cannam@162 1646 } # ac_fn_c_try_link
cannam@162 1647
cannam@162 1648 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
cannam@162 1649 # -------------------------------------------------------
cannam@162 1650 # Tests whether HEADER exists and can be compiled using the include files in
cannam@162 1651 # INCLUDES, setting the cache variable VAR accordingly.
cannam@162 1652 ac_fn_c_check_header_compile ()
cannam@162 1653 {
cannam@162 1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@162 1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@162 1656 $as_echo_n "checking for $2... " >&6; }
cannam@162 1657 if eval \${$3+:} false; then :
cannam@162 1658 $as_echo_n "(cached) " >&6
cannam@162 1659 else
cannam@162 1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 1661 /* end confdefs.h. */
cannam@162 1662 $4
cannam@162 1663 #include <$2>
cannam@162 1664 _ACEOF
cannam@162 1665 if ac_fn_c_try_compile "$LINENO"; then :
cannam@162 1666 eval "$3=yes"
cannam@162 1667 else
cannam@162 1668 eval "$3=no"
cannam@162 1669 fi
cannam@162 1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@162 1671 fi
cannam@162 1672 eval ac_res=\$$3
cannam@162 1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@162 1674 $as_echo "$ac_res" >&6; }
cannam@162 1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@162 1676
cannam@162 1677 } # ac_fn_c_check_header_compile
cannam@162 1678
cannam@162 1679 # ac_fn_c_try_cpp LINENO
cannam@162 1680 # ----------------------
cannam@162 1681 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
cannam@162 1682 ac_fn_c_try_cpp ()
cannam@162 1683 {
cannam@162 1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@162 1685 if { { ac_try="$ac_cpp conftest.$ac_ext"
cannam@162 1686 case "(($ac_try" in
cannam@162 1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@162 1688 *) ac_try_echo=$ac_try;;
cannam@162 1689 esac
cannam@162 1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@162 1691 $as_echo "$ac_try_echo"; } >&5
cannam@162 1692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
cannam@162 1693 ac_status=$?
cannam@162 1694 if test -s conftest.err; then
cannam@162 1695 grep -v '^ *+' conftest.err >conftest.er1
cannam@162 1696 cat conftest.er1 >&5
cannam@162 1697 mv -f conftest.er1 conftest.err
cannam@162 1698 fi
cannam@162 1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 1700 test $ac_status = 0; } > conftest.i && {
cannam@162 1701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
cannam@162 1702 test ! -s conftest.err
cannam@162 1703 }; then :
cannam@162 1704 ac_retval=0
cannam@162 1705 else
cannam@162 1706 $as_echo "$as_me: failed program was:" >&5
cannam@162 1707 sed 's/^/| /' conftest.$ac_ext >&5
cannam@162 1708
cannam@162 1709 ac_retval=1
cannam@162 1710 fi
cannam@162 1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@162 1712 as_fn_set_status $ac_retval
cannam@162 1713
cannam@162 1714 } # ac_fn_c_try_cpp
cannam@162 1715
cannam@162 1716 # ac_fn_c_try_run LINENO
cannam@162 1717 # ----------------------
cannam@162 1718 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
cannam@162 1719 # that executables *can* be run.
cannam@162 1720 ac_fn_c_try_run ()
cannam@162 1721 {
cannam@162 1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@162 1723 if { { ac_try="$ac_link"
cannam@162 1724 case "(($ac_try" in
cannam@162 1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@162 1726 *) ac_try_echo=$ac_try;;
cannam@162 1727 esac
cannam@162 1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@162 1729 $as_echo "$ac_try_echo"; } >&5
cannam@162 1730 (eval "$ac_link") 2>&5
cannam@162 1731 ac_status=$?
cannam@162 1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 1733 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
cannam@162 1734 { { case "(($ac_try" in
cannam@162 1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@162 1736 *) ac_try_echo=$ac_try;;
cannam@162 1737 esac
cannam@162 1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@162 1739 $as_echo "$ac_try_echo"; } >&5
cannam@162 1740 (eval "$ac_try") 2>&5
cannam@162 1741 ac_status=$?
cannam@162 1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 1743 test $ac_status = 0; }; }; then :
cannam@162 1744 ac_retval=0
cannam@162 1745 else
cannam@162 1746 $as_echo "$as_me: program exited with status $ac_status" >&5
cannam@162 1747 $as_echo "$as_me: failed program was:" >&5
cannam@162 1748 sed 's/^/| /' conftest.$ac_ext >&5
cannam@162 1749
cannam@162 1750 ac_retval=$ac_status
cannam@162 1751 fi
cannam@162 1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cannam@162 1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@162 1754 as_fn_set_status $ac_retval
cannam@162 1755
cannam@162 1756 } # ac_fn_c_try_run
cannam@162 1757
cannam@162 1758 # ac_fn_c_check_func LINENO FUNC VAR
cannam@162 1759 # ----------------------------------
cannam@162 1760 # Tests whether FUNC exists, setting the cache variable VAR accordingly
cannam@162 1761 ac_fn_c_check_func ()
cannam@162 1762 {
cannam@162 1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@162 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@162 1765 $as_echo_n "checking for $2... " >&6; }
cannam@162 1766 if eval \${$3+:} false; then :
cannam@162 1767 $as_echo_n "(cached) " >&6
cannam@162 1768 else
cannam@162 1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 1770 /* end confdefs.h. */
cannam@162 1771 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
cannam@162 1772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
cannam@162 1773 #define $2 innocuous_$2
cannam@162 1774
cannam@162 1775 /* System header to define __stub macros and hopefully few prototypes,
cannam@162 1776 which can conflict with char $2 (); below.
cannam@162 1777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@162 1778 <limits.h> exists even on freestanding compilers. */
cannam@162 1779
cannam@162 1780 #ifdef __STDC__
cannam@162 1781 # include <limits.h>
cannam@162 1782 #else
cannam@162 1783 # include <assert.h>
cannam@162 1784 #endif
cannam@162 1785
cannam@162 1786 #undef $2
cannam@162 1787
cannam@162 1788 /* Override any GCC internal prototype to avoid an error.
cannam@162 1789 Use char because int might match the return type of a GCC
cannam@162 1790 builtin and then its argument prototype would still apply. */
cannam@162 1791 #ifdef __cplusplus
cannam@162 1792 extern "C"
cannam@162 1793 #endif
cannam@162 1794 char $2 ();
cannam@162 1795 /* The GNU C library defines this for functions which it implements
cannam@162 1796 to always fail with ENOSYS. Some functions are actually named
cannam@162 1797 something starting with __ and the normal name is an alias. */
cannam@162 1798 #if defined __stub_$2 || defined __stub___$2
cannam@162 1799 choke me
cannam@162 1800 #endif
cannam@162 1801
cannam@162 1802 int
cannam@162 1803 main ()
cannam@162 1804 {
cannam@162 1805 return $2 ();
cannam@162 1806 ;
cannam@162 1807 return 0;
cannam@162 1808 }
cannam@162 1809 _ACEOF
cannam@162 1810 if ac_fn_c_try_link "$LINENO"; then :
cannam@162 1811 eval "$3=yes"
cannam@162 1812 else
cannam@162 1813 eval "$3=no"
cannam@162 1814 fi
cannam@162 1815 rm -f core conftest.err conftest.$ac_objext \
cannam@162 1816 conftest$ac_exeext conftest.$ac_ext
cannam@162 1817 fi
cannam@162 1818 eval ac_res=\$$3
cannam@162 1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@162 1820 $as_echo "$ac_res" >&6; }
cannam@162 1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@162 1822
cannam@162 1823 } # ac_fn_c_check_func
cannam@162 1824
cannam@162 1825 # ac_fn_cxx_try_cpp LINENO
cannam@162 1826 # ------------------------
cannam@162 1827 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
cannam@162 1828 ac_fn_cxx_try_cpp ()
cannam@162 1829 {
cannam@162 1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@162 1831 if { { ac_try="$ac_cpp conftest.$ac_ext"
cannam@162 1832 case "(($ac_try" in
cannam@162 1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@162 1834 *) ac_try_echo=$ac_try;;
cannam@162 1835 esac
cannam@162 1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@162 1837 $as_echo "$ac_try_echo"; } >&5
cannam@162 1838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
cannam@162 1839 ac_status=$?
cannam@162 1840 if test -s conftest.err; then
cannam@162 1841 grep -v '^ *+' conftest.err >conftest.er1
cannam@162 1842 cat conftest.er1 >&5
cannam@162 1843 mv -f conftest.er1 conftest.err
cannam@162 1844 fi
cannam@162 1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 1846 test $ac_status = 0; } > conftest.i && {
cannam@162 1847 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
cannam@162 1848 test ! -s conftest.err
cannam@162 1849 }; then :
cannam@162 1850 ac_retval=0
cannam@162 1851 else
cannam@162 1852 $as_echo "$as_me: failed program was:" >&5
cannam@162 1853 sed 's/^/| /' conftest.$ac_ext >&5
cannam@162 1854
cannam@162 1855 ac_retval=1
cannam@162 1856 fi
cannam@162 1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@162 1858 as_fn_set_status $ac_retval
cannam@162 1859
cannam@162 1860 } # ac_fn_cxx_try_cpp
cannam@162 1861
cannam@162 1862 # ac_fn_cxx_try_link LINENO
cannam@162 1863 # -------------------------
cannam@162 1864 # Try to link conftest.$ac_ext, and return whether this succeeded.
cannam@162 1865 ac_fn_cxx_try_link ()
cannam@162 1866 {
cannam@162 1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@162 1868 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@162 1869 if { { ac_try="$ac_link"
cannam@162 1870 case "(($ac_try" in
cannam@162 1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@162 1872 *) ac_try_echo=$ac_try;;
cannam@162 1873 esac
cannam@162 1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@162 1875 $as_echo "$ac_try_echo"; } >&5
cannam@162 1876 (eval "$ac_link") 2>conftest.err
cannam@162 1877 ac_status=$?
cannam@162 1878 if test -s conftest.err; then
cannam@162 1879 grep -v '^ *+' conftest.err >conftest.er1
cannam@162 1880 cat conftest.er1 >&5
cannam@162 1881 mv -f conftest.er1 conftest.err
cannam@162 1882 fi
cannam@162 1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 1884 test $ac_status = 0; } && {
cannam@162 1885 test -z "$ac_cxx_werror_flag" ||
cannam@162 1886 test ! -s conftest.err
cannam@162 1887 } && test -s conftest$ac_exeext && {
cannam@162 1888 test "$cross_compiling" = yes ||
cannam@162 1889 test -x conftest$ac_exeext
cannam@162 1890 }; then :
cannam@162 1891 ac_retval=0
cannam@162 1892 else
cannam@162 1893 $as_echo "$as_me: failed program was:" >&5
cannam@162 1894 sed 's/^/| /' conftest.$ac_ext >&5
cannam@162 1895
cannam@162 1896 ac_retval=1
cannam@162 1897 fi
cannam@162 1898 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
cannam@162 1899 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
cannam@162 1900 # interfere with the next link command; also delete a directory that is
cannam@162 1901 # left behind by Apple's compiler. We do this before executing the actions.
cannam@162 1902 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cannam@162 1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@162 1904 as_fn_set_status $ac_retval
cannam@162 1905
cannam@162 1906 } # ac_fn_cxx_try_link
cannam@162 1907
cannam@162 1908 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
cannam@162 1909 # -------------------------------------------------------
cannam@162 1910 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
cannam@162 1911 # the include files in INCLUDES and setting the cache variable VAR
cannam@162 1912 # accordingly.
cannam@162 1913 ac_fn_c_check_header_mongrel ()
cannam@162 1914 {
cannam@162 1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@162 1916 if eval \${$3+:} false; then :
cannam@162 1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@162 1918 $as_echo_n "checking for $2... " >&6; }
cannam@162 1919 if eval \${$3+:} false; then :
cannam@162 1920 $as_echo_n "(cached) " >&6
cannam@162 1921 fi
cannam@162 1922 eval ac_res=\$$3
cannam@162 1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@162 1924 $as_echo "$ac_res" >&6; }
cannam@162 1925 else
cannam@162 1926 # Is the header compilable?
cannam@162 1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
cannam@162 1928 $as_echo_n "checking $2 usability... " >&6; }
cannam@162 1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 1930 /* end confdefs.h. */
cannam@162 1931 $4
cannam@162 1932 #include <$2>
cannam@162 1933 _ACEOF
cannam@162 1934 if ac_fn_c_try_compile "$LINENO"; then :
cannam@162 1935 ac_header_compiler=yes
cannam@162 1936 else
cannam@162 1937 ac_header_compiler=no
cannam@162 1938 fi
cannam@162 1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@162 1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
cannam@162 1941 $as_echo "$ac_header_compiler" >&6; }
cannam@162 1942
cannam@162 1943 # Is the header present?
cannam@162 1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
cannam@162 1945 $as_echo_n "checking $2 presence... " >&6; }
cannam@162 1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 1947 /* end confdefs.h. */
cannam@162 1948 #include <$2>
cannam@162 1949 _ACEOF
cannam@162 1950 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@162 1951 ac_header_preproc=yes
cannam@162 1952 else
cannam@162 1953 ac_header_preproc=no
cannam@162 1954 fi
cannam@162 1955 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@162 1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
cannam@162 1957 $as_echo "$ac_header_preproc" >&6; }
cannam@162 1958
cannam@162 1959 # So? What about this header?
cannam@162 1960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
cannam@162 1961 yes:no: )
cannam@162 1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
cannam@162 1963 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
cannam@162 1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
cannam@162 1965 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cannam@162 1966 ;;
cannam@162 1967 no:yes:* )
cannam@162 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
cannam@162 1969 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
cannam@162 1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
cannam@162 1971 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
cannam@162 1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
cannam@162 1973 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
cannam@162 1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
cannam@162 1975 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
cannam@162 1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
cannam@162 1977 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cannam@162 1978 ;;
cannam@162 1979 esac
cannam@162 1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@162 1981 $as_echo_n "checking for $2... " >&6; }
cannam@162 1982 if eval \${$3+:} false; then :
cannam@162 1983 $as_echo_n "(cached) " >&6
cannam@162 1984 else
cannam@162 1985 eval "$3=\$ac_header_compiler"
cannam@162 1986 fi
cannam@162 1987 eval ac_res=\$$3
cannam@162 1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@162 1989 $as_echo "$ac_res" >&6; }
cannam@162 1990 fi
cannam@162 1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@162 1992
cannam@162 1993 } # ac_fn_c_check_header_mongrel
cannam@162 1994
cannam@162 1995 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
cannam@162 1996 # --------------------------------------------
cannam@162 1997 # Tries to find the compile-time value of EXPR in a program that includes
cannam@162 1998 # INCLUDES, setting VAR accordingly. Returns whether the value could be
cannam@162 1999 # computed
cannam@162 2000 ac_fn_c_compute_int ()
cannam@162 2001 {
cannam@162 2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@162 2003 if test "$cross_compiling" = yes; then
cannam@162 2004 # Depending upon the size, compute the lo and hi bounds.
cannam@162 2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 2006 /* end confdefs.h. */
cannam@162 2007 $4
cannam@162 2008 int
cannam@162 2009 main ()
cannam@162 2010 {
cannam@162 2011 static int test_array [1 - 2 * !(($2) >= 0)];
cannam@162 2012 test_array [0] = 0;
cannam@162 2013 return test_array [0];
cannam@162 2014
cannam@162 2015 ;
cannam@162 2016 return 0;
cannam@162 2017 }
cannam@162 2018 _ACEOF
cannam@162 2019 if ac_fn_c_try_compile "$LINENO"; then :
cannam@162 2020 ac_lo=0 ac_mid=0
cannam@162 2021 while :; do
cannam@162 2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 2023 /* end confdefs.h. */
cannam@162 2024 $4
cannam@162 2025 int
cannam@162 2026 main ()
cannam@162 2027 {
cannam@162 2028 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cannam@162 2029 test_array [0] = 0;
cannam@162 2030 return test_array [0];
cannam@162 2031
cannam@162 2032 ;
cannam@162 2033 return 0;
cannam@162 2034 }
cannam@162 2035 _ACEOF
cannam@162 2036 if ac_fn_c_try_compile "$LINENO"; then :
cannam@162 2037 ac_hi=$ac_mid; break
cannam@162 2038 else
cannam@162 2039 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
cannam@162 2040 if test $ac_lo -le $ac_mid; then
cannam@162 2041 ac_lo= ac_hi=
cannam@162 2042 break
cannam@162 2043 fi
cannam@162 2044 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
cannam@162 2045 fi
cannam@162 2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@162 2047 done
cannam@162 2048 else
cannam@162 2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 2050 /* end confdefs.h. */
cannam@162 2051 $4
cannam@162 2052 int
cannam@162 2053 main ()
cannam@162 2054 {
cannam@162 2055 static int test_array [1 - 2 * !(($2) < 0)];
cannam@162 2056 test_array [0] = 0;
cannam@162 2057 return test_array [0];
cannam@162 2058
cannam@162 2059 ;
cannam@162 2060 return 0;
cannam@162 2061 }
cannam@162 2062 _ACEOF
cannam@162 2063 if ac_fn_c_try_compile "$LINENO"; then :
cannam@162 2064 ac_hi=-1 ac_mid=-1
cannam@162 2065 while :; do
cannam@162 2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 2067 /* end confdefs.h. */
cannam@162 2068 $4
cannam@162 2069 int
cannam@162 2070 main ()
cannam@162 2071 {
cannam@162 2072 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cannam@162 2073 test_array [0] = 0;
cannam@162 2074 return test_array [0];
cannam@162 2075
cannam@162 2076 ;
cannam@162 2077 return 0;
cannam@162 2078 }
cannam@162 2079 _ACEOF
cannam@162 2080 if ac_fn_c_try_compile "$LINENO"; then :
cannam@162 2081 ac_lo=$ac_mid; break
cannam@162 2082 else
cannam@162 2083 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
cannam@162 2084 if test $ac_mid -le $ac_hi; then
cannam@162 2085 ac_lo= ac_hi=
cannam@162 2086 break
cannam@162 2087 fi
cannam@162 2088 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
cannam@162 2089 fi
cannam@162 2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@162 2091 done
cannam@162 2092 else
cannam@162 2093 ac_lo= ac_hi=
cannam@162 2094 fi
cannam@162 2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@162 2096 fi
cannam@162 2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@162 2098 # Binary search between lo and hi bounds.
cannam@162 2099 while test "x$ac_lo" != "x$ac_hi"; do
cannam@162 2100 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
cannam@162 2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 2102 /* end confdefs.h. */
cannam@162 2103 $4
cannam@162 2104 int
cannam@162 2105 main ()
cannam@162 2106 {
cannam@162 2107 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cannam@162 2108 test_array [0] = 0;
cannam@162 2109 return test_array [0];
cannam@162 2110
cannam@162 2111 ;
cannam@162 2112 return 0;
cannam@162 2113 }
cannam@162 2114 _ACEOF
cannam@162 2115 if ac_fn_c_try_compile "$LINENO"; then :
cannam@162 2116 ac_hi=$ac_mid
cannam@162 2117 else
cannam@162 2118 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
cannam@162 2119 fi
cannam@162 2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@162 2121 done
cannam@162 2122 case $ac_lo in #((
cannam@162 2123 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
cannam@162 2124 '') ac_retval=1 ;;
cannam@162 2125 esac
cannam@162 2126 else
cannam@162 2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 2128 /* end confdefs.h. */
cannam@162 2129 $4
cannam@162 2130 static long int longval () { return $2; }
cannam@162 2131 static unsigned long int ulongval () { return $2; }
cannam@162 2132 #include <stdio.h>
cannam@162 2133 #include <stdlib.h>
cannam@162 2134 int
cannam@162 2135 main ()
cannam@162 2136 {
cannam@162 2137
cannam@162 2138 FILE *f = fopen ("conftest.val", "w");
cannam@162 2139 if (! f)
cannam@162 2140 return 1;
cannam@162 2141 if (($2) < 0)
cannam@162 2142 {
cannam@162 2143 long int i = longval ();
cannam@162 2144 if (i != ($2))
cannam@162 2145 return 1;
cannam@162 2146 fprintf (f, "%ld", i);
cannam@162 2147 }
cannam@162 2148 else
cannam@162 2149 {
cannam@162 2150 unsigned long int i = ulongval ();
cannam@162 2151 if (i != ($2))
cannam@162 2152 return 1;
cannam@162 2153 fprintf (f, "%lu", i);
cannam@162 2154 }
cannam@162 2155 /* Do not output a trailing newline, as this causes \r\n confusion
cannam@162 2156 on some platforms. */
cannam@162 2157 return ferror (f) || fclose (f) != 0;
cannam@162 2158
cannam@162 2159 ;
cannam@162 2160 return 0;
cannam@162 2161 }
cannam@162 2162 _ACEOF
cannam@162 2163 if ac_fn_c_try_run "$LINENO"; then :
cannam@162 2164 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
cannam@162 2165 else
cannam@162 2166 ac_retval=1
cannam@162 2167 fi
cannam@162 2168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@162 2169 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@162 2170 rm -f conftest.val
cannam@162 2171
cannam@162 2172 fi
cannam@162 2173 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@162 2174 as_fn_set_status $ac_retval
cannam@162 2175
cannam@162 2176 } # ac_fn_c_compute_int
cannam@162 2177 cat >config.log <<_ACEOF
cannam@162 2178 This file contains any messages produced by compilers while
cannam@162 2179 running configure, to aid debugging if configure makes a mistake.
cannam@162 2180
cannam@162 2181 It was created by $as_me, which was
cannam@162 2182 generated by GNU Autoconf 2.69. Invocation command line was
cannam@162 2183
cannam@162 2184 $ $0 $@
cannam@162 2185
cannam@162 2186 _ACEOF
cannam@162 2187 exec 5>>config.log
cannam@162 2188 {
cannam@162 2189 cat <<_ASUNAME
cannam@162 2190 ## --------- ##
cannam@162 2191 ## Platform. ##
cannam@162 2192 ## --------- ##
cannam@162 2193
cannam@162 2194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@162 2195 uname -m = `(uname -m) 2>/dev/null || echo unknown`
cannam@162 2196 uname -r = `(uname -r) 2>/dev/null || echo unknown`
cannam@162 2197 uname -s = `(uname -s) 2>/dev/null || echo unknown`
cannam@162 2198 uname -v = `(uname -v) 2>/dev/null || echo unknown`
cannam@162 2199
cannam@162 2200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
cannam@162 2201 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
cannam@162 2202
cannam@162 2203 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
cannam@162 2204 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
cannam@162 2205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
cannam@162 2206 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
cannam@162 2207 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
cannam@162 2208 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
cannam@162 2209 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
cannam@162 2210
cannam@162 2211 _ASUNAME
cannam@162 2212
cannam@162 2213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 2214 for as_dir in $PATH
cannam@162 2215 do
cannam@162 2216 IFS=$as_save_IFS
cannam@162 2217 test -z "$as_dir" && as_dir=.
cannam@162 2218 $as_echo "PATH: $as_dir"
cannam@162 2219 done
cannam@162 2220 IFS=$as_save_IFS
cannam@162 2221
cannam@162 2222 } >&5
cannam@162 2223
cannam@162 2224 cat >&5 <<_ACEOF
cannam@162 2225
cannam@162 2226
cannam@162 2227 ## ----------- ##
cannam@162 2228 ## Core tests. ##
cannam@162 2229 ## ----------- ##
cannam@162 2230
cannam@162 2231 _ACEOF
cannam@162 2232
cannam@162 2233
cannam@162 2234 # Keep a trace of the command line.
cannam@162 2235 # Strip out --no-create and --no-recursion so they do not pile up.
cannam@162 2236 # Strip out --silent because we don't want to record it for future runs.
cannam@162 2237 # Also quote any args containing shell meta-characters.
cannam@162 2238 # Make two passes to allow for proper duplicate-argument suppression.
cannam@162 2239 ac_configure_args=
cannam@162 2240 ac_configure_args0=
cannam@162 2241 ac_configure_args1=
cannam@162 2242 ac_must_keep_next=false
cannam@162 2243 for ac_pass in 1 2
cannam@162 2244 do
cannam@162 2245 for ac_arg
cannam@162 2246 do
cannam@162 2247 case $ac_arg in
cannam@162 2248 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
cannam@162 2249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@162 2250 | -silent | --silent | --silen | --sile | --sil)
cannam@162 2251 continue ;;
cannam@162 2252 *\'*)
cannam@162 2253 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@162 2254 esac
cannam@162 2255 case $ac_pass in
cannam@162 2256 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cannam@162 2257 2)
cannam@162 2258 as_fn_append ac_configure_args1 " '$ac_arg'"
cannam@162 2259 if test $ac_must_keep_next = true; then
cannam@162 2260 ac_must_keep_next=false # Got value, back to normal.
cannam@162 2261 else
cannam@162 2262 case $ac_arg in
cannam@162 2263 *=* | --config-cache | -C | -disable-* | --disable-* \
cannam@162 2264 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
cannam@162 2265 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
cannam@162 2266 | -with-* | --with-* | -without-* | --without-* | --x)
cannam@162 2267 case "$ac_configure_args0 " in
cannam@162 2268 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
cannam@162 2269 esac
cannam@162 2270 ;;
cannam@162 2271 -* ) ac_must_keep_next=true ;;
cannam@162 2272 esac
cannam@162 2273 fi
cannam@162 2274 as_fn_append ac_configure_args " '$ac_arg'"
cannam@162 2275 ;;
cannam@162 2276 esac
cannam@162 2277 done
cannam@162 2278 done
cannam@162 2279 { ac_configure_args0=; unset ac_configure_args0;}
cannam@162 2280 { ac_configure_args1=; unset ac_configure_args1;}
cannam@162 2281
cannam@162 2282 # When interrupted or exit'd, cleanup temporary files, and complete
cannam@162 2283 # config.log. We remove comments because anyway the quotes in there
cannam@162 2284 # would cause problems or look ugly.
cannam@162 2285 # WARNING: Use '\'' to represent an apostrophe within the trap.
cannam@162 2286 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
cannam@162 2287 trap 'exit_status=$?
cannam@162 2288 # Save into config.log some information that might help in debugging.
cannam@162 2289 {
cannam@162 2290 echo
cannam@162 2291
cannam@162 2292 $as_echo "## ---------------- ##
cannam@162 2293 ## Cache variables. ##
cannam@162 2294 ## ---------------- ##"
cannam@162 2295 echo
cannam@162 2296 # The following way of writing the cache mishandles newlines in values,
cannam@162 2297 (
cannam@162 2298 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
cannam@162 2299 eval ac_val=\$$ac_var
cannam@162 2300 case $ac_val in #(
cannam@162 2301 *${as_nl}*)
cannam@162 2302 case $ac_var in #(
cannam@162 2303 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cannam@162 2304 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
cannam@162 2305 esac
cannam@162 2306 case $ac_var in #(
cannam@162 2307 _ | IFS | as_nl) ;; #(
cannam@162 2308 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cannam@162 2309 *) { eval $ac_var=; unset $ac_var;} ;;
cannam@162 2310 esac ;;
cannam@162 2311 esac
cannam@162 2312 done
cannam@162 2313 (set) 2>&1 |
cannam@162 2314 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
cannam@162 2315 *${as_nl}ac_space=\ *)
cannam@162 2316 sed -n \
cannam@162 2317 "s/'\''/'\''\\\\'\'''\''/g;
cannam@162 2318 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
cannam@162 2319 ;; #(
cannam@162 2320 *)
cannam@162 2321 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
cannam@162 2322 ;;
cannam@162 2323 esac |
cannam@162 2324 sort
cannam@162 2325 )
cannam@162 2326 echo
cannam@162 2327
cannam@162 2328 $as_echo "## ----------------- ##
cannam@162 2329 ## Output variables. ##
cannam@162 2330 ## ----------------- ##"
cannam@162 2331 echo
cannam@162 2332 for ac_var in $ac_subst_vars
cannam@162 2333 do
cannam@162 2334 eval ac_val=\$$ac_var
cannam@162 2335 case $ac_val in
cannam@162 2336 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
cannam@162 2337 esac
cannam@162 2338 $as_echo "$ac_var='\''$ac_val'\''"
cannam@162 2339 done | sort
cannam@162 2340 echo
cannam@162 2341
cannam@162 2342 if test -n "$ac_subst_files"; then
cannam@162 2343 $as_echo "## ------------------- ##
cannam@162 2344 ## File substitutions. ##
cannam@162 2345 ## ------------------- ##"
cannam@162 2346 echo
cannam@162 2347 for ac_var in $ac_subst_files
cannam@162 2348 do
cannam@162 2349 eval ac_val=\$$ac_var
cannam@162 2350 case $ac_val in
cannam@162 2351 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
cannam@162 2352 esac
cannam@162 2353 $as_echo "$ac_var='\''$ac_val'\''"
cannam@162 2354 done | sort
cannam@162 2355 echo
cannam@162 2356 fi
cannam@162 2357
cannam@162 2358 if test -s confdefs.h; then
cannam@162 2359 $as_echo "## ----------- ##
cannam@162 2360 ## confdefs.h. ##
cannam@162 2361 ## ----------- ##"
cannam@162 2362 echo
cannam@162 2363 cat confdefs.h
cannam@162 2364 echo
cannam@162 2365 fi
cannam@162 2366 test "$ac_signal" != 0 &&
cannam@162 2367 $as_echo "$as_me: caught signal $ac_signal"
cannam@162 2368 $as_echo "$as_me: exit $exit_status"
cannam@162 2369 } >&5
cannam@162 2370 rm -f core *.core core.conftest.* &&
cannam@162 2371 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
cannam@162 2372 exit $exit_status
cannam@162 2373 ' 0
cannam@162 2374 for ac_signal in 1 2 13 15; do
cannam@162 2375 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cannam@162 2376 done
cannam@162 2377 ac_signal=0
cannam@162 2378
cannam@162 2379 # confdefs.h avoids OS command line length limits that DEFS can exceed.
cannam@162 2380 rm -f -r conftest* confdefs.h
cannam@162 2381
cannam@162 2382 $as_echo "/* confdefs.h */" > confdefs.h
cannam@162 2383
cannam@162 2384 # Predefined preprocessor variables.
cannam@162 2385
cannam@162 2386 cat >>confdefs.h <<_ACEOF
cannam@162 2387 #define PACKAGE_NAME "$PACKAGE_NAME"
cannam@162 2388 _ACEOF
cannam@162 2389
cannam@162 2390 cat >>confdefs.h <<_ACEOF
cannam@162 2391 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
cannam@162 2392 _ACEOF
cannam@162 2393
cannam@162 2394 cat >>confdefs.h <<_ACEOF
cannam@162 2395 #define PACKAGE_VERSION "$PACKAGE_VERSION"
cannam@162 2396 _ACEOF
cannam@162 2397
cannam@162 2398 cat >>confdefs.h <<_ACEOF
cannam@162 2399 #define PACKAGE_STRING "$PACKAGE_STRING"
cannam@162 2400 _ACEOF
cannam@162 2401
cannam@162 2402 cat >>confdefs.h <<_ACEOF
cannam@162 2403 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
cannam@162 2404 _ACEOF
cannam@162 2405
cannam@162 2406 cat >>confdefs.h <<_ACEOF
cannam@162 2407 #define PACKAGE_URL "$PACKAGE_URL"
cannam@162 2408 _ACEOF
cannam@162 2409
cannam@162 2410
cannam@162 2411 # Let the site file select an alternate cache file if it wants to.
cannam@162 2412 # Prefer an explicitly selected file to automatically selected ones.
cannam@162 2413 ac_site_file1=NONE
cannam@162 2414 ac_site_file2=NONE
cannam@162 2415 if test -n "$CONFIG_SITE"; then
cannam@162 2416 # We do not want a PATH search for config.site.
cannam@162 2417 case $CONFIG_SITE in #((
cannam@162 2418 -*) ac_site_file1=./$CONFIG_SITE;;
cannam@162 2419 */*) ac_site_file1=$CONFIG_SITE;;
cannam@162 2420 *) ac_site_file1=./$CONFIG_SITE;;
cannam@162 2421 esac
cannam@162 2422 elif test "x$prefix" != xNONE; then
cannam@162 2423 ac_site_file1=$prefix/share/config.site
cannam@162 2424 ac_site_file2=$prefix/etc/config.site
cannam@162 2425 else
cannam@162 2426 ac_site_file1=$ac_default_prefix/share/config.site
cannam@162 2427 ac_site_file2=$ac_default_prefix/etc/config.site
cannam@162 2428 fi
cannam@162 2429 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
cannam@162 2430 do
cannam@162 2431 test "x$ac_site_file" = xNONE && continue
cannam@162 2432 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cannam@162 2433 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cannam@162 2434 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
cannam@162 2435 sed 's/^/| /' "$ac_site_file" >&5
cannam@162 2436 . "$ac_site_file" \
cannam@162 2437 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@162 2438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@162 2439 as_fn_error $? "failed to load site script $ac_site_file
cannam@162 2440 See \`config.log' for more details" "$LINENO" 5; }
cannam@162 2441 fi
cannam@162 2442 done
cannam@162 2443
cannam@162 2444 if test -r "$cache_file"; then
cannam@162 2445 # Some versions of bash will fail to source /dev/null (special files
cannam@162 2446 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
cannam@162 2447 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cannam@162 2448 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cannam@162 2449 $as_echo "$as_me: loading cache $cache_file" >&6;}
cannam@162 2450 case $cache_file in
cannam@162 2451 [\\/]* | ?:[\\/]* ) . "$cache_file";;
cannam@162 2452 *) . "./$cache_file";;
cannam@162 2453 esac
cannam@162 2454 fi
cannam@162 2455 else
cannam@162 2456 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cannam@162 2457 $as_echo "$as_me: creating cache $cache_file" >&6;}
cannam@162 2458 >$cache_file
cannam@162 2459 fi
cannam@162 2460
cannam@162 2461 # Check that the precious variables saved in the cache have kept the same
cannam@162 2462 # value.
cannam@162 2463 ac_cache_corrupted=false
cannam@162 2464 for ac_var in $ac_precious_vars; do
cannam@162 2465 eval ac_old_set=\$ac_cv_env_${ac_var}_set
cannam@162 2466 eval ac_new_set=\$ac_env_${ac_var}_set
cannam@162 2467 eval ac_old_val=\$ac_cv_env_${ac_var}_value
cannam@162 2468 eval ac_new_val=\$ac_env_${ac_var}_value
cannam@162 2469 case $ac_old_set,$ac_new_set in
cannam@162 2470 set,)
cannam@162 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
cannam@162 2472 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
cannam@162 2473 ac_cache_corrupted=: ;;
cannam@162 2474 ,set)
cannam@162 2475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cannam@162 2476 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
cannam@162 2477 ac_cache_corrupted=: ;;
cannam@162 2478 ,);;
cannam@162 2479 *)
cannam@162 2480 if test "x$ac_old_val" != "x$ac_new_val"; then
cannam@162 2481 # differences in whitespace do not lead to failure.
cannam@162 2482 ac_old_val_w=`echo x $ac_old_val`
cannam@162 2483 ac_new_val_w=`echo x $ac_new_val`
cannam@162 2484 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cannam@162 2485 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cannam@162 2486 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
cannam@162 2487 ac_cache_corrupted=:
cannam@162 2488 else
cannam@162 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
cannam@162 2490 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
cannam@162 2491 eval $ac_var=\$ac_old_val
cannam@162 2492 fi
cannam@162 2493 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cannam@162 2494 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cannam@162 2495 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cannam@162 2496 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
cannam@162 2497 fi;;
cannam@162 2498 esac
cannam@162 2499 # Pass precious variables to config.status.
cannam@162 2500 if test "$ac_new_set" = set; then
cannam@162 2501 case $ac_new_val in
cannam@162 2502 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@162 2503 *) ac_arg=$ac_var=$ac_new_val ;;
cannam@162 2504 esac
cannam@162 2505 case " $ac_configure_args " in
cannam@162 2506 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cannam@162 2507 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cannam@162 2508 esac
cannam@162 2509 fi
cannam@162 2510 done
cannam@162 2511 if $ac_cache_corrupted; then
cannam@162 2512 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@162 2513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@162 2514 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cannam@162 2515 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cannam@162 2516 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cannam@162 2517 fi
cannam@162 2518 ## -------------------- ##
cannam@162 2519 ## Main body of script. ##
cannam@162 2520 ## -------------------- ##
cannam@162 2521
cannam@162 2522 ac_ext=c
cannam@162 2523 ac_cpp='$CPP $CPPFLAGS'
cannam@162 2524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@162 2525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@162 2526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@162 2527
cannam@162 2528
cannam@162 2529
cannam@162 2530 ac_aux_dir=
cannam@162 2531 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
cannam@162 2532 if test -f "$ac_dir/install-sh"; then
cannam@162 2533 ac_aux_dir=$ac_dir
cannam@162 2534 ac_install_sh="$ac_aux_dir/install-sh -c"
cannam@162 2535 break
cannam@162 2536 elif test -f "$ac_dir/install.sh"; then
cannam@162 2537 ac_aux_dir=$ac_dir
cannam@162 2538 ac_install_sh="$ac_aux_dir/install.sh -c"
cannam@162 2539 break
cannam@162 2540 elif test -f "$ac_dir/shtool"; then
cannam@162 2541 ac_aux_dir=$ac_dir
cannam@162 2542 ac_install_sh="$ac_aux_dir/shtool install -c"
cannam@162 2543 break
cannam@162 2544 fi
cannam@162 2545 done
cannam@162 2546 if test -z "$ac_aux_dir"; then
cannam@162 2547 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
cannam@162 2548 fi
cannam@162 2549
cannam@162 2550 # These three variables are undocumented and unsupported,
cannam@162 2551 # and are intended to be withdrawn in a future Autoconf release.
cannam@162 2552 # They can cause serious problems if a builder's source tree is in a directory
cannam@162 2553 # whose full name contains unusual characters.
cannam@162 2554 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
cannam@162 2555 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
cannam@162 2556 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
cannam@162 2557
cannam@162 2558
cannam@162 2559 # Make sure we can run config.sub.
cannam@162 2560 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cannam@162 2561 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cannam@162 2562
cannam@162 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cannam@162 2564 $as_echo_n "checking build system type... " >&6; }
cannam@162 2565 if ${ac_cv_build+:} false; then :
cannam@162 2566 $as_echo_n "(cached) " >&6
cannam@162 2567 else
cannam@162 2568 ac_build_alias=$build_alias
cannam@162 2569 test "x$ac_build_alias" = x &&
cannam@162 2570 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
cannam@162 2571 test "x$ac_build_alias" = x &&
cannam@162 2572 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cannam@162 2573 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cannam@162 2574 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cannam@162 2575
cannam@162 2576 fi
cannam@162 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cannam@162 2578 $as_echo "$ac_cv_build" >&6; }
cannam@162 2579 case $ac_cv_build in
cannam@162 2580 *-*-*) ;;
cannam@162 2581 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cannam@162 2582 esac
cannam@162 2583 build=$ac_cv_build
cannam@162 2584 ac_save_IFS=$IFS; IFS='-'
cannam@162 2585 set x $ac_cv_build
cannam@162 2586 shift
cannam@162 2587 build_cpu=$1
cannam@162 2588 build_vendor=$2
cannam@162 2589 shift; shift
cannam@162 2590 # Remember, the first character of IFS is used to create $*,
cannam@162 2591 # except with old shells:
cannam@162 2592 build_os=$*
cannam@162 2593 IFS=$ac_save_IFS
cannam@162 2594 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
cannam@162 2595
cannam@162 2596
cannam@162 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cannam@162 2598 $as_echo_n "checking host system type... " >&6; }
cannam@162 2599 if ${ac_cv_host+:} false; then :
cannam@162 2600 $as_echo_n "(cached) " >&6
cannam@162 2601 else
cannam@162 2602 if test "x$host_alias" = x; then
cannam@162 2603 ac_cv_host=$ac_cv_build
cannam@162 2604 else
cannam@162 2605 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cannam@162 2606 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cannam@162 2607 fi
cannam@162 2608
cannam@162 2609 fi
cannam@162 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cannam@162 2611 $as_echo "$ac_cv_host" >&6; }
cannam@162 2612 case $ac_cv_host in
cannam@162 2613 *-*-*) ;;
cannam@162 2614 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cannam@162 2615 esac
cannam@162 2616 host=$ac_cv_host
cannam@162 2617 ac_save_IFS=$IFS; IFS='-'
cannam@162 2618 set x $ac_cv_host
cannam@162 2619 shift
cannam@162 2620 host_cpu=$1
cannam@162 2621 host_vendor=$2
cannam@162 2622 shift; shift
cannam@162 2623 # Remember, the first character of IFS is used to create $*,
cannam@162 2624 # except with old shells:
cannam@162 2625 host_os=$*
cannam@162 2626 IFS=$ac_save_IFS
cannam@162 2627 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
cannam@162 2628
cannam@162 2629
cannam@162 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cannam@162 2631 $as_echo_n "checking target system type... " >&6; }
cannam@162 2632 if ${ac_cv_target+:} false; then :
cannam@162 2633 $as_echo_n "(cached) " >&6
cannam@162 2634 else
cannam@162 2635 if test "x$target_alias" = x; then
cannam@162 2636 ac_cv_target=$ac_cv_host
cannam@162 2637 else
cannam@162 2638 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cannam@162 2639 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cannam@162 2640 fi
cannam@162 2641
cannam@162 2642 fi
cannam@162 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cannam@162 2644 $as_echo "$ac_cv_target" >&6; }
cannam@162 2645 case $ac_cv_target in
cannam@162 2646 *-*-*) ;;
cannam@162 2647 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cannam@162 2648 esac
cannam@162 2649 target=$ac_cv_target
cannam@162 2650 ac_save_IFS=$IFS; IFS='-'
cannam@162 2651 set x $ac_cv_target
cannam@162 2652 shift
cannam@162 2653 target_cpu=$1
cannam@162 2654 target_vendor=$2
cannam@162 2655 shift; shift
cannam@162 2656 # Remember, the first character of IFS is used to create $*,
cannam@162 2657 # except with old shells:
cannam@162 2658 target_os=$*
cannam@162 2659 IFS=$ac_save_IFS
cannam@162 2660 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
cannam@162 2661
cannam@162 2662
cannam@162 2663 # The aliases save the names the user supplied, while $host etc.
cannam@162 2664 # will get canonicalized.
cannam@162 2665 test -n "$target_alias" &&
cannam@162 2666 test "$program_prefix$program_suffix$program_transform_name" = \
cannam@162 2667 NONENONEs,x,x, &&
cannam@162 2668 program_prefix=${target_alias}-
cannam@162 2669
cannam@162 2670
cannam@162 2671
cannam@162 2672 # Check whether --with-alsa was given.
cannam@162 2673 if test "${with_alsa+set}" = set; then :
cannam@162 2674 withval=$with_alsa; with_alsa=$withval
cannam@162 2675 fi
cannam@162 2676
cannam@162 2677
cannam@162 2678
cannam@162 2679 # Check whether --with-jack was given.
cannam@162 2680 if test "${with_jack+set}" = set; then :
cannam@162 2681 withval=$with_jack; with_jack=$withval
cannam@162 2682 fi
cannam@162 2683
cannam@162 2684
cannam@162 2685
cannam@162 2686 # Check whether --with-oss was given.
cannam@162 2687 if test "${with_oss+set}" = set; then :
cannam@162 2688 withval=$with_oss; with_oss=$withval
cannam@162 2689 fi
cannam@162 2690
cannam@162 2691
cannam@162 2692
cannam@162 2693 # Check whether --with-asihpi was given.
cannam@162 2694 if test "${with_asihpi+set}" = set; then :
cannam@162 2695 withval=$with_asihpi; with_asihpi=$withval
cannam@162 2696 fi
cannam@162 2697
cannam@162 2698
cannam@162 2699
cannam@162 2700 # Check whether --with-winapi was given.
cannam@162 2701 if test "${with_winapi+set}" = set; then :
cannam@162 2702 withval=$with_winapi; with_winapi=$withval
cannam@162 2703 else
cannam@162 2704 with_winapi="wmme"
cannam@162 2705 fi
cannam@162 2706
cannam@162 2707 case "$target_os" in *mingw* | *cygwin*)
cannam@162 2708 with_wmme=no
cannam@162 2709 with_directx=no
cannam@162 2710 with_asio=no
cannam@162 2711 with_wasapi=no
cannam@162 2712 with_wdmks=no
cannam@162 2713 for api in $(echo $with_winapi | sed 's/,/ /g'); do
cannam@162 2714 case "$api" in
cannam@162 2715 wmme|directx|asio|wasapi|wdmks)
cannam@162 2716 eval with_$api=yes
cannam@162 2717 ;;
cannam@162 2718 *)
cannam@162 2719 as_fn_error $? "unknown Windows API \"$api\" (do you need --help?)" "$LINENO" 5
cannam@162 2720 ;;
cannam@162 2721 esac
cannam@162 2722 done
cannam@162 2723 ;;
cannam@162 2724 esac
cannam@162 2725
cannam@162 2726
cannam@162 2727 # Check whether --with-asiodir was given.
cannam@162 2728 if test "${with_asiodir+set}" = set; then :
cannam@162 2729 withval=$with_asiodir; with_asiodir=$withval
cannam@162 2730 else
cannam@162 2731 with_asiodir="/usr/local/asiosdk2"
cannam@162 2732 fi
cannam@162 2733
cannam@162 2734
cannam@162 2735
cannam@162 2736 # Check whether --with-dxdir was given.
cannam@162 2737 if test "${with_dxdir+set}" = set; then :
cannam@162 2738 withval=$with_dxdir; with_dxdir=$withval
cannam@162 2739 else
cannam@162 2740 with_dxdir="/usr/local/dx7sdk"
cannam@162 2741 fi
cannam@162 2742
cannam@162 2743
cannam@162 2744 debug_output=no
cannam@162 2745 # Check whether --enable-debug-output was given.
cannam@162 2746 if test "${enable_debug_output+set}" = set; then :
cannam@162 2747 enableval=$enable_debug_output; if test "x$enableval" != "xno" ; then
cannam@162 2748
cannam@162 2749 $as_echo "#define PA_ENABLE_DEBUG_OUTPUT /**/" >>confdefs.h
cannam@162 2750
cannam@162 2751 debug_output=yes
cannam@162 2752 fi
cannam@162 2753
cannam@162 2754 fi
cannam@162 2755
cannam@162 2756
cannam@162 2757 # Check whether --enable-cxx was given.
cannam@162 2758 if test "${enable_cxx+set}" = set; then :
cannam@162 2759 enableval=$enable_cxx; enable_cxx=$enableval
cannam@162 2760 else
cannam@162 2761 enable_cxx="no"
cannam@162 2762 fi
cannam@162 2763
cannam@162 2764
cannam@162 2765 # Check whether --enable-mac-debug was given.
cannam@162 2766 if test "${enable_mac_debug+set}" = set; then :
cannam@162 2767 enableval=$enable_mac_debug; enable_mac_debug=$enableval
cannam@162 2768 else
cannam@162 2769 enable_mac_debug="no"
cannam@162 2770 fi
cannam@162 2771
cannam@162 2772
cannam@162 2773 # Check whether --enable-mac-universal was given.
cannam@162 2774 if test "${enable_mac_universal+set}" = set; then :
cannam@162 2775 enableval=$enable_mac_universal; enable_mac_universal=$enableval
cannam@162 2776 else
cannam@162 2777 enable_mac_universal="yes"
cannam@162 2778 fi
cannam@162 2779
cannam@162 2780
cannam@162 2781
cannam@162 2782 # Check whether --with-host_os was given.
cannam@162 2783 if test "${with_host_os+set}" = set; then :
cannam@162 2784 withval=$with_host_os; host_os=$withval
cannam@162 2785 fi
cannam@162 2786
cannam@162 2787
cannam@162 2788
cannam@162 2789 ac_ext=c
cannam@162 2790 ac_cpp='$CPP $CPPFLAGS'
cannam@162 2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@162 2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@162 2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@162 2794 if test -n "$ac_tool_prefix"; then
cannam@162 2795 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
cannam@162 2796 set dummy ${ac_tool_prefix}gcc; ac_word=$2
cannam@162 2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 2798 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 2799 if ${ac_cv_prog_CC+:} false; then :
cannam@162 2800 $as_echo_n "(cached) " >&6
cannam@162 2801 else
cannam@162 2802 if test -n "$CC"; then
cannam@162 2803 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@162 2804 else
cannam@162 2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 2806 for as_dir in $PATH
cannam@162 2807 do
cannam@162 2808 IFS=$as_save_IFS
cannam@162 2809 test -z "$as_dir" && as_dir=.
cannam@162 2810 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 2811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 2812 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cannam@162 2813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 2814 break 2
cannam@162 2815 fi
cannam@162 2816 done
cannam@162 2817 done
cannam@162 2818 IFS=$as_save_IFS
cannam@162 2819
cannam@162 2820 fi
cannam@162 2821 fi
cannam@162 2822 CC=$ac_cv_prog_CC
cannam@162 2823 if test -n "$CC"; then
cannam@162 2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@162 2825 $as_echo "$CC" >&6; }
cannam@162 2826 else
cannam@162 2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 2828 $as_echo "no" >&6; }
cannam@162 2829 fi
cannam@162 2830
cannam@162 2831
cannam@162 2832 fi
cannam@162 2833 if test -z "$ac_cv_prog_CC"; then
cannam@162 2834 ac_ct_CC=$CC
cannam@162 2835 # Extract the first word of "gcc", so it can be a program name with args.
cannam@162 2836 set dummy gcc; ac_word=$2
cannam@162 2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 2838 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 2839 if ${ac_cv_prog_ac_ct_CC+:} false; then :
cannam@162 2840 $as_echo_n "(cached) " >&6
cannam@162 2841 else
cannam@162 2842 if test -n "$ac_ct_CC"; then
cannam@162 2843 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
cannam@162 2844 else
cannam@162 2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 2846 for as_dir in $PATH
cannam@162 2847 do
cannam@162 2848 IFS=$as_save_IFS
cannam@162 2849 test -z "$as_dir" && as_dir=.
cannam@162 2850 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 2851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 2852 ac_cv_prog_ac_ct_CC="gcc"
cannam@162 2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 2854 break 2
cannam@162 2855 fi
cannam@162 2856 done
cannam@162 2857 done
cannam@162 2858 IFS=$as_save_IFS
cannam@162 2859
cannam@162 2860 fi
cannam@162 2861 fi
cannam@162 2862 ac_ct_CC=$ac_cv_prog_ac_ct_CC
cannam@162 2863 if test -n "$ac_ct_CC"; then
cannam@162 2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cannam@162 2865 $as_echo "$ac_ct_CC" >&6; }
cannam@162 2866 else
cannam@162 2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 2868 $as_echo "no" >&6; }
cannam@162 2869 fi
cannam@162 2870
cannam@162 2871 if test "x$ac_ct_CC" = x; then
cannam@162 2872 CC=""
cannam@162 2873 else
cannam@162 2874 case $cross_compiling:$ac_tool_warned in
cannam@162 2875 yes:)
cannam@162 2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@162 2877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@162 2878 ac_tool_warned=yes ;;
cannam@162 2879 esac
cannam@162 2880 CC=$ac_ct_CC
cannam@162 2881 fi
cannam@162 2882 else
cannam@162 2883 CC="$ac_cv_prog_CC"
cannam@162 2884 fi
cannam@162 2885
cannam@162 2886 if test -z "$CC"; then
cannam@162 2887 if test -n "$ac_tool_prefix"; then
cannam@162 2888 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
cannam@162 2889 set dummy ${ac_tool_prefix}cc; ac_word=$2
cannam@162 2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 2891 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 2892 if ${ac_cv_prog_CC+:} false; then :
cannam@162 2893 $as_echo_n "(cached) " >&6
cannam@162 2894 else
cannam@162 2895 if test -n "$CC"; then
cannam@162 2896 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@162 2897 else
cannam@162 2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 2899 for as_dir in $PATH
cannam@162 2900 do
cannam@162 2901 IFS=$as_save_IFS
cannam@162 2902 test -z "$as_dir" && as_dir=.
cannam@162 2903 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 2904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 2905 ac_cv_prog_CC="${ac_tool_prefix}cc"
cannam@162 2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 2907 break 2
cannam@162 2908 fi
cannam@162 2909 done
cannam@162 2910 done
cannam@162 2911 IFS=$as_save_IFS
cannam@162 2912
cannam@162 2913 fi
cannam@162 2914 fi
cannam@162 2915 CC=$ac_cv_prog_CC
cannam@162 2916 if test -n "$CC"; then
cannam@162 2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@162 2918 $as_echo "$CC" >&6; }
cannam@162 2919 else
cannam@162 2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 2921 $as_echo "no" >&6; }
cannam@162 2922 fi
cannam@162 2923
cannam@162 2924
cannam@162 2925 fi
cannam@162 2926 fi
cannam@162 2927 if test -z "$CC"; then
cannam@162 2928 # Extract the first word of "cc", so it can be a program name with args.
cannam@162 2929 set dummy cc; ac_word=$2
cannam@162 2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 2931 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 2932 if ${ac_cv_prog_CC+:} false; then :
cannam@162 2933 $as_echo_n "(cached) " >&6
cannam@162 2934 else
cannam@162 2935 if test -n "$CC"; then
cannam@162 2936 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@162 2937 else
cannam@162 2938 ac_prog_rejected=no
cannam@162 2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 2940 for as_dir in $PATH
cannam@162 2941 do
cannam@162 2942 IFS=$as_save_IFS
cannam@162 2943 test -z "$as_dir" && as_dir=.
cannam@162 2944 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 2945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 2946 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
cannam@162 2947 ac_prog_rejected=yes
cannam@162 2948 continue
cannam@162 2949 fi
cannam@162 2950 ac_cv_prog_CC="cc"
cannam@162 2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 2952 break 2
cannam@162 2953 fi
cannam@162 2954 done
cannam@162 2955 done
cannam@162 2956 IFS=$as_save_IFS
cannam@162 2957
cannam@162 2958 if test $ac_prog_rejected = yes; then
cannam@162 2959 # We found a bogon in the path, so make sure we never use it.
cannam@162 2960 set dummy $ac_cv_prog_CC
cannam@162 2961 shift
cannam@162 2962 if test $# != 0; then
cannam@162 2963 # We chose a different compiler from the bogus one.
cannam@162 2964 # However, it has the same basename, so the bogon will be chosen
cannam@162 2965 # first if we set CC to just the basename; use the full file name.
cannam@162 2966 shift
cannam@162 2967 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
cannam@162 2968 fi
cannam@162 2969 fi
cannam@162 2970 fi
cannam@162 2971 fi
cannam@162 2972 CC=$ac_cv_prog_CC
cannam@162 2973 if test -n "$CC"; then
cannam@162 2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@162 2975 $as_echo "$CC" >&6; }
cannam@162 2976 else
cannam@162 2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 2978 $as_echo "no" >&6; }
cannam@162 2979 fi
cannam@162 2980
cannam@162 2981
cannam@162 2982 fi
cannam@162 2983 if test -z "$CC"; then
cannam@162 2984 if test -n "$ac_tool_prefix"; then
cannam@162 2985 for ac_prog in cl.exe
cannam@162 2986 do
cannam@162 2987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@162 2988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@162 2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 2990 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 2991 if ${ac_cv_prog_CC+:} false; then :
cannam@162 2992 $as_echo_n "(cached) " >&6
cannam@162 2993 else
cannam@162 2994 if test -n "$CC"; then
cannam@162 2995 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@162 2996 else
cannam@162 2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 2998 for as_dir in $PATH
cannam@162 2999 do
cannam@162 3000 IFS=$as_save_IFS
cannam@162 3001 test -z "$as_dir" && as_dir=.
cannam@162 3002 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 3003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 3004 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cannam@162 3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 3006 break 2
cannam@162 3007 fi
cannam@162 3008 done
cannam@162 3009 done
cannam@162 3010 IFS=$as_save_IFS
cannam@162 3011
cannam@162 3012 fi
cannam@162 3013 fi
cannam@162 3014 CC=$ac_cv_prog_CC
cannam@162 3015 if test -n "$CC"; then
cannam@162 3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@162 3017 $as_echo "$CC" >&6; }
cannam@162 3018 else
cannam@162 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 3020 $as_echo "no" >&6; }
cannam@162 3021 fi
cannam@162 3022
cannam@162 3023
cannam@162 3024 test -n "$CC" && break
cannam@162 3025 done
cannam@162 3026 fi
cannam@162 3027 if test -z "$CC"; then
cannam@162 3028 ac_ct_CC=$CC
cannam@162 3029 for ac_prog in cl.exe
cannam@162 3030 do
cannam@162 3031 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@162 3032 set dummy $ac_prog; ac_word=$2
cannam@162 3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 3034 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 3035 if ${ac_cv_prog_ac_ct_CC+:} false; then :
cannam@162 3036 $as_echo_n "(cached) " >&6
cannam@162 3037 else
cannam@162 3038 if test -n "$ac_ct_CC"; then
cannam@162 3039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
cannam@162 3040 else
cannam@162 3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 3042 for as_dir in $PATH
cannam@162 3043 do
cannam@162 3044 IFS=$as_save_IFS
cannam@162 3045 test -z "$as_dir" && as_dir=.
cannam@162 3046 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 3047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 3048 ac_cv_prog_ac_ct_CC="$ac_prog"
cannam@162 3049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 3050 break 2
cannam@162 3051 fi
cannam@162 3052 done
cannam@162 3053 done
cannam@162 3054 IFS=$as_save_IFS
cannam@162 3055
cannam@162 3056 fi
cannam@162 3057 fi
cannam@162 3058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
cannam@162 3059 if test -n "$ac_ct_CC"; then
cannam@162 3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cannam@162 3061 $as_echo "$ac_ct_CC" >&6; }
cannam@162 3062 else
cannam@162 3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 3064 $as_echo "no" >&6; }
cannam@162 3065 fi
cannam@162 3066
cannam@162 3067
cannam@162 3068 test -n "$ac_ct_CC" && break
cannam@162 3069 done
cannam@162 3070
cannam@162 3071 if test "x$ac_ct_CC" = x; then
cannam@162 3072 CC=""
cannam@162 3073 else
cannam@162 3074 case $cross_compiling:$ac_tool_warned in
cannam@162 3075 yes:)
cannam@162 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@162 3077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@162 3078 ac_tool_warned=yes ;;
cannam@162 3079 esac
cannam@162 3080 CC=$ac_ct_CC
cannam@162 3081 fi
cannam@162 3082 fi
cannam@162 3083
cannam@162 3084 fi
cannam@162 3085
cannam@162 3086
cannam@162 3087 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@162 3088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@162 3089 as_fn_error $? "no acceptable C compiler found in \$PATH
cannam@162 3090 See \`config.log' for more details" "$LINENO" 5; }
cannam@162 3091
cannam@162 3092 # Provide some information about the compiler.
cannam@162 3093 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cannam@162 3094 set X $ac_compile
cannam@162 3095 ac_compiler=$2
cannam@162 3096 for ac_option in --version -v -V -qversion; do
cannam@162 3097 { { ac_try="$ac_compiler $ac_option >&5"
cannam@162 3098 case "(($ac_try" in
cannam@162 3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@162 3100 *) ac_try_echo=$ac_try;;
cannam@162 3101 esac
cannam@162 3102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@162 3103 $as_echo "$ac_try_echo"; } >&5
cannam@162 3104 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cannam@162 3105 ac_status=$?
cannam@162 3106 if test -s conftest.err; then
cannam@162 3107 sed '10a\
cannam@162 3108 ... rest of stderr output deleted ...
cannam@162 3109 10q' conftest.err >conftest.er1
cannam@162 3110 cat conftest.er1 >&5
cannam@162 3111 fi
cannam@162 3112 rm -f conftest.er1 conftest.err
cannam@162 3113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 3114 test $ac_status = 0; }
cannam@162 3115 done
cannam@162 3116
cannam@162 3117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 3118 /* end confdefs.h. */
cannam@162 3119
cannam@162 3120 int
cannam@162 3121 main ()
cannam@162 3122 {
cannam@162 3123
cannam@162 3124 ;
cannam@162 3125 return 0;
cannam@162 3126 }
cannam@162 3127 _ACEOF
cannam@162 3128 ac_clean_files_save=$ac_clean_files
cannam@162 3129 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cannam@162 3130 # Try to create an executable without -o first, disregard a.out.
cannam@162 3131 # It will help us diagnose broken compilers, and finding out an intuition
cannam@162 3132 # of exeext.
cannam@162 3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
cannam@162 3134 $as_echo_n "checking whether the C compiler works... " >&6; }
cannam@162 3135 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
cannam@162 3136
cannam@162 3137 # The possible output files:
cannam@162 3138 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
cannam@162 3139
cannam@162 3140 ac_rmfiles=
cannam@162 3141 for ac_file in $ac_files
cannam@162 3142 do
cannam@162 3143 case $ac_file in
cannam@162 3144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
cannam@162 3145 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
cannam@162 3146 esac
cannam@162 3147 done
cannam@162 3148 rm -f $ac_rmfiles
cannam@162 3149
cannam@162 3150 if { { ac_try="$ac_link_default"
cannam@162 3151 case "(($ac_try" in
cannam@162 3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@162 3153 *) ac_try_echo=$ac_try;;
cannam@162 3154 esac
cannam@162 3155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@162 3156 $as_echo "$ac_try_echo"; } >&5
cannam@162 3157 (eval "$ac_link_default") 2>&5
cannam@162 3158 ac_status=$?
cannam@162 3159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 3160 test $ac_status = 0; }; then :
cannam@162 3161 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
cannam@162 3162 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
cannam@162 3163 # in a Makefile. We should not override ac_cv_exeext if it was cached,
cannam@162 3164 # so that the user can short-circuit this test for compilers unknown to
cannam@162 3165 # Autoconf.
cannam@162 3166 for ac_file in $ac_files ''
cannam@162 3167 do
cannam@162 3168 test -f "$ac_file" || continue
cannam@162 3169 case $ac_file in
cannam@162 3170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
cannam@162 3171 ;;
cannam@162 3172 [ab].out )
cannam@162 3173 # We found the default executable, but exeext='' is most
cannam@162 3174 # certainly right.
cannam@162 3175 break;;
cannam@162 3176 *.* )
cannam@162 3177 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cannam@162 3178 then :; else
cannam@162 3179 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
cannam@162 3180 fi
cannam@162 3181 # We set ac_cv_exeext here because the later test for it is not
cannam@162 3182 # safe: cross compilers may not add the suffix if given an `-o'
cannam@162 3183 # argument, so we may need to know it at that point already.
cannam@162 3184 # Even if this section looks crufty: it has the advantage of
cannam@162 3185 # actually working.
cannam@162 3186 break;;
cannam@162 3187 * )
cannam@162 3188 break;;
cannam@162 3189 esac
cannam@162 3190 done
cannam@162 3191 test "$ac_cv_exeext" = no && ac_cv_exeext=
cannam@162 3192
cannam@162 3193 else
cannam@162 3194 ac_file=''
cannam@162 3195 fi
cannam@162 3196 if test -z "$ac_file"; then :
cannam@162 3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 3198 $as_echo "no" >&6; }
cannam@162 3199 $as_echo "$as_me: failed program was:" >&5
cannam@162 3200 sed 's/^/| /' conftest.$ac_ext >&5
cannam@162 3201
cannam@162 3202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@162 3203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@162 3204 as_fn_error 77 "C compiler cannot create executables
cannam@162 3205 See \`config.log' for more details" "$LINENO" 5; }
cannam@162 3206 else
cannam@162 3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@162 3208 $as_echo "yes" >&6; }
cannam@162 3209 fi
cannam@162 3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
cannam@162 3211 $as_echo_n "checking for C compiler default output file name... " >&6; }
cannam@162 3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
cannam@162 3213 $as_echo "$ac_file" >&6; }
cannam@162 3214 ac_exeext=$ac_cv_exeext
cannam@162 3215
cannam@162 3216 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cannam@162 3217 ac_clean_files=$ac_clean_files_save
cannam@162 3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cannam@162 3219 $as_echo_n "checking for suffix of executables... " >&6; }
cannam@162 3220 if { { ac_try="$ac_link"
cannam@162 3221 case "(($ac_try" in
cannam@162 3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@162 3223 *) ac_try_echo=$ac_try;;
cannam@162 3224 esac
cannam@162 3225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@162 3226 $as_echo "$ac_try_echo"; } >&5
cannam@162 3227 (eval "$ac_link") 2>&5
cannam@162 3228 ac_status=$?
cannam@162 3229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 3230 test $ac_status = 0; }; then :
cannam@162 3231 # If both `conftest.exe' and `conftest' are `present' (well, observable)
cannam@162 3232 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
cannam@162 3233 # work properly (i.e., refer to `conftest.exe'), while it won't with
cannam@162 3234 # `rm'.
cannam@162 3235 for ac_file in conftest.exe conftest conftest.*; do
cannam@162 3236 test -f "$ac_file" || continue
cannam@162 3237 case $ac_file in
cannam@162 3238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
cannam@162 3239 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
cannam@162 3240 break;;
cannam@162 3241 * ) break;;
cannam@162 3242 esac
cannam@162 3243 done
cannam@162 3244 else
cannam@162 3245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@162 3246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@162 3247 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
cannam@162 3248 See \`config.log' for more details" "$LINENO" 5; }
cannam@162 3249 fi
cannam@162 3250 rm -f conftest conftest$ac_cv_exeext
cannam@162 3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cannam@162 3252 $as_echo "$ac_cv_exeext" >&6; }
cannam@162 3253
cannam@162 3254 rm -f conftest.$ac_ext
cannam@162 3255 EXEEXT=$ac_cv_exeext
cannam@162 3256 ac_exeext=$EXEEXT
cannam@162 3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 3258 /* end confdefs.h. */
cannam@162 3259 #include <stdio.h>
cannam@162 3260 int
cannam@162 3261 main ()
cannam@162 3262 {
cannam@162 3263 FILE *f = fopen ("conftest.out", "w");
cannam@162 3264 return ferror (f) || fclose (f) != 0;
cannam@162 3265
cannam@162 3266 ;
cannam@162 3267 return 0;
cannam@162 3268 }
cannam@162 3269 _ACEOF
cannam@162 3270 ac_clean_files="$ac_clean_files conftest.out"
cannam@162 3271 # Check that the compiler produces executables we can run. If not, either
cannam@162 3272 # the compiler is broken, or we cross compile.
cannam@162 3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
cannam@162 3274 $as_echo_n "checking whether we are cross compiling... " >&6; }
cannam@162 3275 if test "$cross_compiling" != yes; then
cannam@162 3276 { { ac_try="$ac_link"
cannam@162 3277 case "(($ac_try" in
cannam@162 3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@162 3279 *) ac_try_echo=$ac_try;;
cannam@162 3280 esac
cannam@162 3281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@162 3282 $as_echo "$ac_try_echo"; } >&5
cannam@162 3283 (eval "$ac_link") 2>&5
cannam@162 3284 ac_status=$?
cannam@162 3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 3286 test $ac_status = 0; }
cannam@162 3287 if { ac_try='./conftest$ac_cv_exeext'
cannam@162 3288 { { case "(($ac_try" in
cannam@162 3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@162 3290 *) ac_try_echo=$ac_try;;
cannam@162 3291 esac
cannam@162 3292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@162 3293 $as_echo "$ac_try_echo"; } >&5
cannam@162 3294 (eval "$ac_try") 2>&5
cannam@162 3295 ac_status=$?
cannam@162 3296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 3297 test $ac_status = 0; }; }; then
cannam@162 3298 cross_compiling=no
cannam@162 3299 else
cannam@162 3300 if test "$cross_compiling" = maybe; then
cannam@162 3301 cross_compiling=yes
cannam@162 3302 else
cannam@162 3303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@162 3304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@162 3305 as_fn_error $? "cannot run C compiled programs.
cannam@162 3306 If you meant to cross compile, use \`--host'.
cannam@162 3307 See \`config.log' for more details" "$LINENO" 5; }
cannam@162 3308 fi
cannam@162 3309 fi
cannam@162 3310 fi
cannam@162 3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
cannam@162 3312 $as_echo "$cross_compiling" >&6; }
cannam@162 3313
cannam@162 3314 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
cannam@162 3315 ac_clean_files=$ac_clean_files_save
cannam@162 3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cannam@162 3317 $as_echo_n "checking for suffix of object files... " >&6; }
cannam@162 3318 if ${ac_cv_objext+:} false; then :
cannam@162 3319 $as_echo_n "(cached) " >&6
cannam@162 3320 else
cannam@162 3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 3322 /* end confdefs.h. */
cannam@162 3323
cannam@162 3324 int
cannam@162 3325 main ()
cannam@162 3326 {
cannam@162 3327
cannam@162 3328 ;
cannam@162 3329 return 0;
cannam@162 3330 }
cannam@162 3331 _ACEOF
cannam@162 3332 rm -f conftest.o conftest.obj
cannam@162 3333 if { { ac_try="$ac_compile"
cannam@162 3334 case "(($ac_try" in
cannam@162 3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@162 3336 *) ac_try_echo=$ac_try;;
cannam@162 3337 esac
cannam@162 3338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@162 3339 $as_echo "$ac_try_echo"; } >&5
cannam@162 3340 (eval "$ac_compile") 2>&5
cannam@162 3341 ac_status=$?
cannam@162 3342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 3343 test $ac_status = 0; }; then :
cannam@162 3344 for ac_file in conftest.o conftest.obj conftest.*; do
cannam@162 3345 test -f "$ac_file" || continue;
cannam@162 3346 case $ac_file in
cannam@162 3347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
cannam@162 3348 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
cannam@162 3349 break;;
cannam@162 3350 esac
cannam@162 3351 done
cannam@162 3352 else
cannam@162 3353 $as_echo "$as_me: failed program was:" >&5
cannam@162 3354 sed 's/^/| /' conftest.$ac_ext >&5
cannam@162 3355
cannam@162 3356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@162 3357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@162 3358 as_fn_error $? "cannot compute suffix of object files: cannot compile
cannam@162 3359 See \`config.log' for more details" "$LINENO" 5; }
cannam@162 3360 fi
cannam@162 3361 rm -f conftest.$ac_cv_objext conftest.$ac_ext
cannam@162 3362 fi
cannam@162 3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cannam@162 3364 $as_echo "$ac_cv_objext" >&6; }
cannam@162 3365 OBJEXT=$ac_cv_objext
cannam@162 3366 ac_objext=$OBJEXT
cannam@162 3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cannam@162 3368 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cannam@162 3369 if ${ac_cv_c_compiler_gnu+:} false; then :
cannam@162 3370 $as_echo_n "(cached) " >&6
cannam@162 3371 else
cannam@162 3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 3373 /* end confdefs.h. */
cannam@162 3374
cannam@162 3375 int
cannam@162 3376 main ()
cannam@162 3377 {
cannam@162 3378 #ifndef __GNUC__
cannam@162 3379 choke me
cannam@162 3380 #endif
cannam@162 3381
cannam@162 3382 ;
cannam@162 3383 return 0;
cannam@162 3384 }
cannam@162 3385 _ACEOF
cannam@162 3386 if ac_fn_c_try_compile "$LINENO"; then :
cannam@162 3387 ac_compiler_gnu=yes
cannam@162 3388 else
cannam@162 3389 ac_compiler_gnu=no
cannam@162 3390 fi
cannam@162 3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@162 3392 ac_cv_c_compiler_gnu=$ac_compiler_gnu
cannam@162 3393
cannam@162 3394 fi
cannam@162 3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cannam@162 3396 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
cannam@162 3397 if test $ac_compiler_gnu = yes; then
cannam@162 3398 GCC=yes
cannam@162 3399 else
cannam@162 3400 GCC=
cannam@162 3401 fi
cannam@162 3402 ac_test_CFLAGS=${CFLAGS+set}
cannam@162 3403 ac_save_CFLAGS=$CFLAGS
cannam@162 3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cannam@162 3405 $as_echo_n "checking whether $CC accepts -g... " >&6; }
cannam@162 3406 if ${ac_cv_prog_cc_g+:} false; then :
cannam@162 3407 $as_echo_n "(cached) " >&6
cannam@162 3408 else
cannam@162 3409 ac_save_c_werror_flag=$ac_c_werror_flag
cannam@162 3410 ac_c_werror_flag=yes
cannam@162 3411 ac_cv_prog_cc_g=no
cannam@162 3412 CFLAGS="-g"
cannam@162 3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 3414 /* end confdefs.h. */
cannam@162 3415
cannam@162 3416 int
cannam@162 3417 main ()
cannam@162 3418 {
cannam@162 3419
cannam@162 3420 ;
cannam@162 3421 return 0;
cannam@162 3422 }
cannam@162 3423 _ACEOF
cannam@162 3424 if ac_fn_c_try_compile "$LINENO"; then :
cannam@162 3425 ac_cv_prog_cc_g=yes
cannam@162 3426 else
cannam@162 3427 CFLAGS=""
cannam@162 3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 3429 /* end confdefs.h. */
cannam@162 3430
cannam@162 3431 int
cannam@162 3432 main ()
cannam@162 3433 {
cannam@162 3434
cannam@162 3435 ;
cannam@162 3436 return 0;
cannam@162 3437 }
cannam@162 3438 _ACEOF
cannam@162 3439 if ac_fn_c_try_compile "$LINENO"; then :
cannam@162 3440
cannam@162 3441 else
cannam@162 3442 ac_c_werror_flag=$ac_save_c_werror_flag
cannam@162 3443 CFLAGS="-g"
cannam@162 3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 3445 /* end confdefs.h. */
cannam@162 3446
cannam@162 3447 int
cannam@162 3448 main ()
cannam@162 3449 {
cannam@162 3450
cannam@162 3451 ;
cannam@162 3452 return 0;
cannam@162 3453 }
cannam@162 3454 _ACEOF
cannam@162 3455 if ac_fn_c_try_compile "$LINENO"; then :
cannam@162 3456 ac_cv_prog_cc_g=yes
cannam@162 3457 fi
cannam@162 3458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@162 3459 fi
cannam@162 3460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@162 3461 fi
cannam@162 3462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@162 3463 ac_c_werror_flag=$ac_save_c_werror_flag
cannam@162 3464 fi
cannam@162 3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cannam@162 3466 $as_echo "$ac_cv_prog_cc_g" >&6; }
cannam@162 3467 if test "$ac_test_CFLAGS" = set; then
cannam@162 3468 CFLAGS=$ac_save_CFLAGS
cannam@162 3469 elif test $ac_cv_prog_cc_g = yes; then
cannam@162 3470 if test "$GCC" = yes; then
cannam@162 3471 CFLAGS="-g -O2"
cannam@162 3472 else
cannam@162 3473 CFLAGS="-g"
cannam@162 3474 fi
cannam@162 3475 else
cannam@162 3476 if test "$GCC" = yes; then
cannam@162 3477 CFLAGS="-O2"
cannam@162 3478 else
cannam@162 3479 CFLAGS=
cannam@162 3480 fi
cannam@162 3481 fi
cannam@162 3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cannam@162 3483 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cannam@162 3484 if ${ac_cv_prog_cc_c89+:} false; then :
cannam@162 3485 $as_echo_n "(cached) " >&6
cannam@162 3486 else
cannam@162 3487 ac_cv_prog_cc_c89=no
cannam@162 3488 ac_save_CC=$CC
cannam@162 3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 3490 /* end confdefs.h. */
cannam@162 3491 #include <stdarg.h>
cannam@162 3492 #include <stdio.h>
cannam@162 3493 struct stat;
cannam@162 3494 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
cannam@162 3495 struct buf { int x; };
cannam@162 3496 FILE * (*rcsopen) (struct buf *, struct stat *, int);
cannam@162 3497 static char *e (p, i)
cannam@162 3498 char **p;
cannam@162 3499 int i;
cannam@162 3500 {
cannam@162 3501 return p[i];
cannam@162 3502 }
cannam@162 3503 static char *f (char * (*g) (char **, int), char **p, ...)
cannam@162 3504 {
cannam@162 3505 char *s;
cannam@162 3506 va_list v;
cannam@162 3507 va_start (v,p);
cannam@162 3508 s = g (p, va_arg (v,int));
cannam@162 3509 va_end (v);
cannam@162 3510 return s;
cannam@162 3511 }
cannam@162 3512
cannam@162 3513 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
cannam@162 3514 function prototypes and stuff, but not '\xHH' hex character constants.
cannam@162 3515 These don't provoke an error unfortunately, instead are silently treated
cannam@162 3516 as 'x'. The following induces an error, until -std is added to get
cannam@162 3517 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
cannam@162 3518 array size at least. It's necessary to write '\x00'==0 to get something
cannam@162 3519 that's true only with -std. */
cannam@162 3520 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
cannam@162 3521
cannam@162 3522 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
cannam@162 3523 inside strings and character constants. */
cannam@162 3524 #define FOO(x) 'x'
cannam@162 3525 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
cannam@162 3526
cannam@162 3527 int test (int i, double x);
cannam@162 3528 struct s1 {int (*f) (int a);};
cannam@162 3529 struct s2 {int (*f) (double a);};
cannam@162 3530 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
cannam@162 3531 int argc;
cannam@162 3532 char **argv;
cannam@162 3533 int
cannam@162 3534 main ()
cannam@162 3535 {
cannam@162 3536 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
cannam@162 3537 ;
cannam@162 3538 return 0;
cannam@162 3539 }
cannam@162 3540 _ACEOF
cannam@162 3541 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
cannam@162 3542 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
cannam@162 3543 do
cannam@162 3544 CC="$ac_save_CC $ac_arg"
cannam@162 3545 if ac_fn_c_try_compile "$LINENO"; then :
cannam@162 3546 ac_cv_prog_cc_c89=$ac_arg
cannam@162 3547 fi
cannam@162 3548 rm -f core conftest.err conftest.$ac_objext
cannam@162 3549 test "x$ac_cv_prog_cc_c89" != "xno" && break
cannam@162 3550 done
cannam@162 3551 rm -f conftest.$ac_ext
cannam@162 3552 CC=$ac_save_CC
cannam@162 3553
cannam@162 3554 fi
cannam@162 3555 # AC_CACHE_VAL
cannam@162 3556 case "x$ac_cv_prog_cc_c89" in
cannam@162 3557 x)
cannam@162 3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cannam@162 3559 $as_echo "none needed" >&6; } ;;
cannam@162 3560 xno)
cannam@162 3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cannam@162 3562 $as_echo "unsupported" >&6; } ;;
cannam@162 3563 *)
cannam@162 3564 CC="$CC $ac_cv_prog_cc_c89"
cannam@162 3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cannam@162 3566 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
cannam@162 3567 esac
cannam@162 3568 if test "x$ac_cv_prog_cc_c89" != xno; then :
cannam@162 3569
cannam@162 3570 fi
cannam@162 3571
cannam@162 3572 ac_ext=c
cannam@162 3573 ac_cpp='$CPP $CPPFLAGS'
cannam@162 3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@162 3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@162 3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@162 3577
cannam@162 3578 if [ "$with_asio" = "yes" ] || [ "$enable_cxx" = "yes" ] ; then
cannam@162 3579 ac_ext=cpp
cannam@162 3580 ac_cpp='$CXXCPP $CPPFLAGS'
cannam@162 3581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@162 3582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@162 3583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cannam@162 3584 if test -z "$CXX"; then
cannam@162 3585 if test -n "$CCC"; then
cannam@162 3586 CXX=$CCC
cannam@162 3587 else
cannam@162 3588 if test -n "$ac_tool_prefix"; then
cannam@162 3589 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
cannam@162 3590 do
cannam@162 3591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@162 3592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@162 3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 3594 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 3595 if ${ac_cv_prog_CXX+:} false; then :
cannam@162 3596 $as_echo_n "(cached) " >&6
cannam@162 3597 else
cannam@162 3598 if test -n "$CXX"; then
cannam@162 3599 ac_cv_prog_CXX="$CXX" # Let the user override the test.
cannam@162 3600 else
cannam@162 3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 3602 for as_dir in $PATH
cannam@162 3603 do
cannam@162 3604 IFS=$as_save_IFS
cannam@162 3605 test -z "$as_dir" && as_dir=.
cannam@162 3606 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 3607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 3608 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cannam@162 3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 3610 break 2
cannam@162 3611 fi
cannam@162 3612 done
cannam@162 3613 done
cannam@162 3614 IFS=$as_save_IFS
cannam@162 3615
cannam@162 3616 fi
cannam@162 3617 fi
cannam@162 3618 CXX=$ac_cv_prog_CXX
cannam@162 3619 if test -n "$CXX"; then
cannam@162 3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cannam@162 3621 $as_echo "$CXX" >&6; }
cannam@162 3622 else
cannam@162 3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 3624 $as_echo "no" >&6; }
cannam@162 3625 fi
cannam@162 3626
cannam@162 3627
cannam@162 3628 test -n "$CXX" && break
cannam@162 3629 done
cannam@162 3630 fi
cannam@162 3631 if test -z "$CXX"; then
cannam@162 3632 ac_ct_CXX=$CXX
cannam@162 3633 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
cannam@162 3634 do
cannam@162 3635 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@162 3636 set dummy $ac_prog; ac_word=$2
cannam@162 3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 3638 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 3639 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cannam@162 3640 $as_echo_n "(cached) " >&6
cannam@162 3641 else
cannam@162 3642 if test -n "$ac_ct_CXX"; then
cannam@162 3643 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
cannam@162 3644 else
cannam@162 3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 3646 for as_dir in $PATH
cannam@162 3647 do
cannam@162 3648 IFS=$as_save_IFS
cannam@162 3649 test -z "$as_dir" && as_dir=.
cannam@162 3650 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 3651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 3652 ac_cv_prog_ac_ct_CXX="$ac_prog"
cannam@162 3653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 3654 break 2
cannam@162 3655 fi
cannam@162 3656 done
cannam@162 3657 done
cannam@162 3658 IFS=$as_save_IFS
cannam@162 3659
cannam@162 3660 fi
cannam@162 3661 fi
cannam@162 3662 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
cannam@162 3663 if test -n "$ac_ct_CXX"; then
cannam@162 3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cannam@162 3665 $as_echo "$ac_ct_CXX" >&6; }
cannam@162 3666 else
cannam@162 3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 3668 $as_echo "no" >&6; }
cannam@162 3669 fi
cannam@162 3670
cannam@162 3671
cannam@162 3672 test -n "$ac_ct_CXX" && break
cannam@162 3673 done
cannam@162 3674
cannam@162 3675 if test "x$ac_ct_CXX" = x; then
cannam@162 3676 CXX="g++"
cannam@162 3677 else
cannam@162 3678 case $cross_compiling:$ac_tool_warned in
cannam@162 3679 yes:)
cannam@162 3680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@162 3681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@162 3682 ac_tool_warned=yes ;;
cannam@162 3683 esac
cannam@162 3684 CXX=$ac_ct_CXX
cannam@162 3685 fi
cannam@162 3686 fi
cannam@162 3687
cannam@162 3688 fi
cannam@162 3689 fi
cannam@162 3690 # Provide some information about the compiler.
cannam@162 3691 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cannam@162 3692 set X $ac_compile
cannam@162 3693 ac_compiler=$2
cannam@162 3694 for ac_option in --version -v -V -qversion; do
cannam@162 3695 { { ac_try="$ac_compiler $ac_option >&5"
cannam@162 3696 case "(($ac_try" in
cannam@162 3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@162 3698 *) ac_try_echo=$ac_try;;
cannam@162 3699 esac
cannam@162 3700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@162 3701 $as_echo "$ac_try_echo"; } >&5
cannam@162 3702 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cannam@162 3703 ac_status=$?
cannam@162 3704 if test -s conftest.err; then
cannam@162 3705 sed '10a\
cannam@162 3706 ... rest of stderr output deleted ...
cannam@162 3707 10q' conftest.err >conftest.er1
cannam@162 3708 cat conftest.er1 >&5
cannam@162 3709 fi
cannam@162 3710 rm -f conftest.er1 conftest.err
cannam@162 3711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 3712 test $ac_status = 0; }
cannam@162 3713 done
cannam@162 3714
cannam@162 3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cannam@162 3716 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cannam@162 3717 if ${ac_cv_cxx_compiler_gnu+:} false; then :
cannam@162 3718 $as_echo_n "(cached) " >&6
cannam@162 3719 else
cannam@162 3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 3721 /* end confdefs.h. */
cannam@162 3722
cannam@162 3723 int
cannam@162 3724 main ()
cannam@162 3725 {
cannam@162 3726 #ifndef __GNUC__
cannam@162 3727 choke me
cannam@162 3728 #endif
cannam@162 3729
cannam@162 3730 ;
cannam@162 3731 return 0;
cannam@162 3732 }
cannam@162 3733 _ACEOF
cannam@162 3734 if ac_fn_cxx_try_compile "$LINENO"; then :
cannam@162 3735 ac_compiler_gnu=yes
cannam@162 3736 else
cannam@162 3737 ac_compiler_gnu=no
cannam@162 3738 fi
cannam@162 3739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@162 3740 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
cannam@162 3741
cannam@162 3742 fi
cannam@162 3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cannam@162 3744 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
cannam@162 3745 if test $ac_compiler_gnu = yes; then
cannam@162 3746 GXX=yes
cannam@162 3747 else
cannam@162 3748 GXX=
cannam@162 3749 fi
cannam@162 3750 ac_test_CXXFLAGS=${CXXFLAGS+set}
cannam@162 3751 ac_save_CXXFLAGS=$CXXFLAGS
cannam@162 3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cannam@162 3753 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
cannam@162 3754 if ${ac_cv_prog_cxx_g+:} false; then :
cannam@162 3755 $as_echo_n "(cached) " >&6
cannam@162 3756 else
cannam@162 3757 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
cannam@162 3758 ac_cxx_werror_flag=yes
cannam@162 3759 ac_cv_prog_cxx_g=no
cannam@162 3760 CXXFLAGS="-g"
cannam@162 3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 3762 /* end confdefs.h. */
cannam@162 3763
cannam@162 3764 int
cannam@162 3765 main ()
cannam@162 3766 {
cannam@162 3767
cannam@162 3768 ;
cannam@162 3769 return 0;
cannam@162 3770 }
cannam@162 3771 _ACEOF
cannam@162 3772 if ac_fn_cxx_try_compile "$LINENO"; then :
cannam@162 3773 ac_cv_prog_cxx_g=yes
cannam@162 3774 else
cannam@162 3775 CXXFLAGS=""
cannam@162 3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 3777 /* end confdefs.h. */
cannam@162 3778
cannam@162 3779 int
cannam@162 3780 main ()
cannam@162 3781 {
cannam@162 3782
cannam@162 3783 ;
cannam@162 3784 return 0;
cannam@162 3785 }
cannam@162 3786 _ACEOF
cannam@162 3787 if ac_fn_cxx_try_compile "$LINENO"; then :
cannam@162 3788
cannam@162 3789 else
cannam@162 3790 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cannam@162 3791 CXXFLAGS="-g"
cannam@162 3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 3793 /* end confdefs.h. */
cannam@162 3794
cannam@162 3795 int
cannam@162 3796 main ()
cannam@162 3797 {
cannam@162 3798
cannam@162 3799 ;
cannam@162 3800 return 0;
cannam@162 3801 }
cannam@162 3802 _ACEOF
cannam@162 3803 if ac_fn_cxx_try_compile "$LINENO"; then :
cannam@162 3804 ac_cv_prog_cxx_g=yes
cannam@162 3805 fi
cannam@162 3806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@162 3807 fi
cannam@162 3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@162 3809 fi
cannam@162 3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@162 3811 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cannam@162 3812 fi
cannam@162 3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cannam@162 3814 $as_echo "$ac_cv_prog_cxx_g" >&6; }
cannam@162 3815 if test "$ac_test_CXXFLAGS" = set; then
cannam@162 3816 CXXFLAGS=$ac_save_CXXFLAGS
cannam@162 3817 elif test $ac_cv_prog_cxx_g = yes; then
cannam@162 3818 if test "$GXX" = yes; then
cannam@162 3819 CXXFLAGS="-g -O2"
cannam@162 3820 else
cannam@162 3821 CXXFLAGS="-g"
cannam@162 3822 fi
cannam@162 3823 else
cannam@162 3824 if test "$GXX" = yes; then
cannam@162 3825 CXXFLAGS="-O2"
cannam@162 3826 else
cannam@162 3827 CXXFLAGS=
cannam@162 3828 fi
cannam@162 3829 fi
cannam@162 3830 ac_ext=c
cannam@162 3831 ac_cpp='$CPP $CPPFLAGS'
cannam@162 3832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@162 3833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@162 3834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@162 3835
cannam@162 3836 fi
cannam@162 3837 enable_win32_dll=yes
cannam@162 3838
cannam@162 3839 case $host in
cannam@162 3840 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cannam@162 3841 if test -n "$ac_tool_prefix"; then
cannam@162 3842 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
cannam@162 3843 set dummy ${ac_tool_prefix}as; ac_word=$2
cannam@162 3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 3845 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 3846 if ${ac_cv_prog_AS+:} false; then :
cannam@162 3847 $as_echo_n "(cached) " >&6
cannam@162 3848 else
cannam@162 3849 if test -n "$AS"; then
cannam@162 3850 ac_cv_prog_AS="$AS" # Let the user override the test.
cannam@162 3851 else
cannam@162 3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 3853 for as_dir in $PATH
cannam@162 3854 do
cannam@162 3855 IFS=$as_save_IFS
cannam@162 3856 test -z "$as_dir" && as_dir=.
cannam@162 3857 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 3858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 3859 ac_cv_prog_AS="${ac_tool_prefix}as"
cannam@162 3860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 3861 break 2
cannam@162 3862 fi
cannam@162 3863 done
cannam@162 3864 done
cannam@162 3865 IFS=$as_save_IFS
cannam@162 3866
cannam@162 3867 fi
cannam@162 3868 fi
cannam@162 3869 AS=$ac_cv_prog_AS
cannam@162 3870 if test -n "$AS"; then
cannam@162 3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cannam@162 3872 $as_echo "$AS" >&6; }
cannam@162 3873 else
cannam@162 3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 3875 $as_echo "no" >&6; }
cannam@162 3876 fi
cannam@162 3877
cannam@162 3878
cannam@162 3879 fi
cannam@162 3880 if test -z "$ac_cv_prog_AS"; then
cannam@162 3881 ac_ct_AS=$AS
cannam@162 3882 # Extract the first word of "as", so it can be a program name with args.
cannam@162 3883 set dummy as; ac_word=$2
cannam@162 3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 3885 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 3886 if ${ac_cv_prog_ac_ct_AS+:} false; then :
cannam@162 3887 $as_echo_n "(cached) " >&6
cannam@162 3888 else
cannam@162 3889 if test -n "$ac_ct_AS"; then
cannam@162 3890 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
cannam@162 3891 else
cannam@162 3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 3893 for as_dir in $PATH
cannam@162 3894 do
cannam@162 3895 IFS=$as_save_IFS
cannam@162 3896 test -z "$as_dir" && as_dir=.
cannam@162 3897 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 3898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 3899 ac_cv_prog_ac_ct_AS="as"
cannam@162 3900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 3901 break 2
cannam@162 3902 fi
cannam@162 3903 done
cannam@162 3904 done
cannam@162 3905 IFS=$as_save_IFS
cannam@162 3906
cannam@162 3907 fi
cannam@162 3908 fi
cannam@162 3909 ac_ct_AS=$ac_cv_prog_ac_ct_AS
cannam@162 3910 if test -n "$ac_ct_AS"; then
cannam@162 3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cannam@162 3912 $as_echo "$ac_ct_AS" >&6; }
cannam@162 3913 else
cannam@162 3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 3915 $as_echo "no" >&6; }
cannam@162 3916 fi
cannam@162 3917
cannam@162 3918 if test "x$ac_ct_AS" = x; then
cannam@162 3919 AS="false"
cannam@162 3920 else
cannam@162 3921 case $cross_compiling:$ac_tool_warned in
cannam@162 3922 yes:)
cannam@162 3923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@162 3924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@162 3925 ac_tool_warned=yes ;;
cannam@162 3926 esac
cannam@162 3927 AS=$ac_ct_AS
cannam@162 3928 fi
cannam@162 3929 else
cannam@162 3930 AS="$ac_cv_prog_AS"
cannam@162 3931 fi
cannam@162 3932
cannam@162 3933 if test -n "$ac_tool_prefix"; then
cannam@162 3934 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
cannam@162 3935 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cannam@162 3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 3937 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 3938 if ${ac_cv_prog_DLLTOOL+:} false; then :
cannam@162 3939 $as_echo_n "(cached) " >&6
cannam@162 3940 else
cannam@162 3941 if test -n "$DLLTOOL"; then
cannam@162 3942 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
cannam@162 3943 else
cannam@162 3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 3945 for as_dir in $PATH
cannam@162 3946 do
cannam@162 3947 IFS=$as_save_IFS
cannam@162 3948 test -z "$as_dir" && as_dir=.
cannam@162 3949 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 3950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 3951 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cannam@162 3952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 3953 break 2
cannam@162 3954 fi
cannam@162 3955 done
cannam@162 3956 done
cannam@162 3957 IFS=$as_save_IFS
cannam@162 3958
cannam@162 3959 fi
cannam@162 3960 fi
cannam@162 3961 DLLTOOL=$ac_cv_prog_DLLTOOL
cannam@162 3962 if test -n "$DLLTOOL"; then
cannam@162 3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cannam@162 3964 $as_echo "$DLLTOOL" >&6; }
cannam@162 3965 else
cannam@162 3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 3967 $as_echo "no" >&6; }
cannam@162 3968 fi
cannam@162 3969
cannam@162 3970
cannam@162 3971 fi
cannam@162 3972 if test -z "$ac_cv_prog_DLLTOOL"; then
cannam@162 3973 ac_ct_DLLTOOL=$DLLTOOL
cannam@162 3974 # Extract the first word of "dlltool", so it can be a program name with args.
cannam@162 3975 set dummy dlltool; ac_word=$2
cannam@162 3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 3977 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 3978 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cannam@162 3979 $as_echo_n "(cached) " >&6
cannam@162 3980 else
cannam@162 3981 if test -n "$ac_ct_DLLTOOL"; then
cannam@162 3982 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
cannam@162 3983 else
cannam@162 3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 3985 for as_dir in $PATH
cannam@162 3986 do
cannam@162 3987 IFS=$as_save_IFS
cannam@162 3988 test -z "$as_dir" && as_dir=.
cannam@162 3989 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 3990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 3991 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cannam@162 3992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 3993 break 2
cannam@162 3994 fi
cannam@162 3995 done
cannam@162 3996 done
cannam@162 3997 IFS=$as_save_IFS
cannam@162 3998
cannam@162 3999 fi
cannam@162 4000 fi
cannam@162 4001 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
cannam@162 4002 if test -n "$ac_ct_DLLTOOL"; then
cannam@162 4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cannam@162 4004 $as_echo "$ac_ct_DLLTOOL" >&6; }
cannam@162 4005 else
cannam@162 4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 4007 $as_echo "no" >&6; }
cannam@162 4008 fi
cannam@162 4009
cannam@162 4010 if test "x$ac_ct_DLLTOOL" = x; then
cannam@162 4011 DLLTOOL="false"
cannam@162 4012 else
cannam@162 4013 case $cross_compiling:$ac_tool_warned in
cannam@162 4014 yes:)
cannam@162 4015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@162 4016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@162 4017 ac_tool_warned=yes ;;
cannam@162 4018 esac
cannam@162 4019 DLLTOOL=$ac_ct_DLLTOOL
cannam@162 4020 fi
cannam@162 4021 else
cannam@162 4022 DLLTOOL="$ac_cv_prog_DLLTOOL"
cannam@162 4023 fi
cannam@162 4024
cannam@162 4025 if test -n "$ac_tool_prefix"; then
cannam@162 4026 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
cannam@162 4027 set dummy ${ac_tool_prefix}objdump; ac_word=$2
cannam@162 4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 4029 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 4030 if ${ac_cv_prog_OBJDUMP+:} false; then :
cannam@162 4031 $as_echo_n "(cached) " >&6
cannam@162 4032 else
cannam@162 4033 if test -n "$OBJDUMP"; then
cannam@162 4034 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
cannam@162 4035 else
cannam@162 4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 4037 for as_dir in $PATH
cannam@162 4038 do
cannam@162 4039 IFS=$as_save_IFS
cannam@162 4040 test -z "$as_dir" && as_dir=.
cannam@162 4041 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 4042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 4043 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cannam@162 4044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 4045 break 2
cannam@162 4046 fi
cannam@162 4047 done
cannam@162 4048 done
cannam@162 4049 IFS=$as_save_IFS
cannam@162 4050
cannam@162 4051 fi
cannam@162 4052 fi
cannam@162 4053 OBJDUMP=$ac_cv_prog_OBJDUMP
cannam@162 4054 if test -n "$OBJDUMP"; then
cannam@162 4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cannam@162 4056 $as_echo "$OBJDUMP" >&6; }
cannam@162 4057 else
cannam@162 4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 4059 $as_echo "no" >&6; }
cannam@162 4060 fi
cannam@162 4061
cannam@162 4062
cannam@162 4063 fi
cannam@162 4064 if test -z "$ac_cv_prog_OBJDUMP"; then
cannam@162 4065 ac_ct_OBJDUMP=$OBJDUMP
cannam@162 4066 # Extract the first word of "objdump", so it can be a program name with args.
cannam@162 4067 set dummy objdump; ac_word=$2
cannam@162 4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 4069 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 4070 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cannam@162 4071 $as_echo_n "(cached) " >&6
cannam@162 4072 else
cannam@162 4073 if test -n "$ac_ct_OBJDUMP"; then
cannam@162 4074 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
cannam@162 4075 else
cannam@162 4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 4077 for as_dir in $PATH
cannam@162 4078 do
cannam@162 4079 IFS=$as_save_IFS
cannam@162 4080 test -z "$as_dir" && as_dir=.
cannam@162 4081 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 4082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 4083 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cannam@162 4084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 4085 break 2
cannam@162 4086 fi
cannam@162 4087 done
cannam@162 4088 done
cannam@162 4089 IFS=$as_save_IFS
cannam@162 4090
cannam@162 4091 fi
cannam@162 4092 fi
cannam@162 4093 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
cannam@162 4094 if test -n "$ac_ct_OBJDUMP"; then
cannam@162 4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cannam@162 4096 $as_echo "$ac_ct_OBJDUMP" >&6; }
cannam@162 4097 else
cannam@162 4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 4099 $as_echo "no" >&6; }
cannam@162 4100 fi
cannam@162 4101
cannam@162 4102 if test "x$ac_ct_OBJDUMP" = x; then
cannam@162 4103 OBJDUMP="false"
cannam@162 4104 else
cannam@162 4105 case $cross_compiling:$ac_tool_warned in
cannam@162 4106 yes:)
cannam@162 4107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@162 4108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@162 4109 ac_tool_warned=yes ;;
cannam@162 4110 esac
cannam@162 4111 OBJDUMP=$ac_ct_OBJDUMP
cannam@162 4112 fi
cannam@162 4113 else
cannam@162 4114 OBJDUMP="$ac_cv_prog_OBJDUMP"
cannam@162 4115 fi
cannam@162 4116
cannam@162 4117 ;;
cannam@162 4118 esac
cannam@162 4119
cannam@162 4120 test -z "$AS" && AS=as
cannam@162 4121
cannam@162 4122
cannam@162 4123
cannam@162 4124
cannam@162 4125
cannam@162 4126 test -z "$DLLTOOL" && DLLTOOL=dlltool
cannam@162 4127
cannam@162 4128
cannam@162 4129
cannam@162 4130
cannam@162 4131
cannam@162 4132 test -z "$OBJDUMP" && OBJDUMP=objdump
cannam@162 4133
cannam@162 4134
cannam@162 4135
cannam@162 4136
cannam@162 4137
cannam@162 4138
cannam@162 4139
cannam@162 4140 case `pwd` in
cannam@162 4141 *\ * | *\ *)
cannam@162 4142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cannam@162 4143 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
cannam@162 4144 esac
cannam@162 4145
cannam@162 4146
cannam@162 4147
cannam@162 4148 macro_version='2.4.2'
cannam@162 4149 macro_revision='1.3337'
cannam@162 4150
cannam@162 4151
cannam@162 4152
cannam@162 4153
cannam@162 4154
cannam@162 4155
cannam@162 4156
cannam@162 4157
cannam@162 4158
cannam@162 4159
cannam@162 4160
cannam@162 4161
cannam@162 4162
cannam@162 4163 ltmain="$ac_aux_dir/ltmain.sh"
cannam@162 4164
cannam@162 4165 # Backslashify metacharacters that are still active within
cannam@162 4166 # double-quoted strings.
cannam@162 4167 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
cannam@162 4168
cannam@162 4169 # Same as above, but do not quote variable references.
cannam@162 4170 double_quote_subst='s/\(["`\\]\)/\\\1/g'
cannam@162 4171
cannam@162 4172 # Sed substitution to delay expansion of an escaped shell variable in a
cannam@162 4173 # double_quote_subst'ed string.
cannam@162 4174 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
cannam@162 4175
cannam@162 4176 # Sed substitution to delay expansion of an escaped single quote.
cannam@162 4177 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
cannam@162 4178
cannam@162 4179 # Sed substitution to avoid accidental globbing in evaled expressions
cannam@162 4180 no_glob_subst='s/\*/\\\*/g'
cannam@162 4181
cannam@162 4182 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@162 4183 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
cannam@162 4184 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
cannam@162 4185
cannam@162 4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
cannam@162 4187 $as_echo_n "checking how to print strings... " >&6; }
cannam@162 4188 # Test print first, because it will be a builtin if present.
cannam@162 4189 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cannam@162 4190 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
cannam@162 4191 ECHO='print -r --'
cannam@162 4192 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
cannam@162 4193 ECHO='printf %s\n'
cannam@162 4194 else
cannam@162 4195 # Use this function as a fallback that always works.
cannam@162 4196 func_fallback_echo ()
cannam@162 4197 {
cannam@162 4198 eval 'cat <<_LTECHO_EOF
cannam@162 4199 $1
cannam@162 4200 _LTECHO_EOF'
cannam@162 4201 }
cannam@162 4202 ECHO='func_fallback_echo'
cannam@162 4203 fi
cannam@162 4204
cannam@162 4205 # func_echo_all arg...
cannam@162 4206 # Invoke $ECHO with all args, space-separated.
cannam@162 4207 func_echo_all ()
cannam@162 4208 {
cannam@162 4209 $ECHO ""
cannam@162 4210 }
cannam@162 4211
cannam@162 4212 case "$ECHO" in
cannam@162 4213 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
cannam@162 4214 $as_echo "printf" >&6; } ;;
cannam@162 4215 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
cannam@162 4216 $as_echo "print -r" >&6; } ;;
cannam@162 4217 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
cannam@162 4218 $as_echo "cat" >&6; } ;;
cannam@162 4219 esac
cannam@162 4220
cannam@162 4221
cannam@162 4222
cannam@162 4223
cannam@162 4224
cannam@162 4225
cannam@162 4226
cannam@162 4227
cannam@162 4228
cannam@162 4229
cannam@162 4230
cannam@162 4231
cannam@162 4232
cannam@162 4233
cannam@162 4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cannam@162 4235 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
cannam@162 4236 if ${ac_cv_path_SED+:} false; then :
cannam@162 4237 $as_echo_n "(cached) " >&6
cannam@162 4238 else
cannam@162 4239 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
cannam@162 4240 for ac_i in 1 2 3 4 5 6 7; do
cannam@162 4241 ac_script="$ac_script$as_nl$ac_script"
cannam@162 4242 done
cannam@162 4243 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cannam@162 4244 { ac_script=; unset ac_script;}
cannam@162 4245 if test -z "$SED"; then
cannam@162 4246 ac_path_SED_found=false
cannam@162 4247 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@162 4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 4249 for as_dir in $PATH
cannam@162 4250 do
cannam@162 4251 IFS=$as_save_IFS
cannam@162 4252 test -z "$as_dir" && as_dir=.
cannam@162 4253 for ac_prog in sed gsed; do
cannam@162 4254 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 4255 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cannam@162 4256 as_fn_executable_p "$ac_path_SED" || continue
cannam@162 4257 # Check for GNU ac_path_SED and select it if it is found.
cannam@162 4258 # Check for GNU $ac_path_SED
cannam@162 4259 case `"$ac_path_SED" --version 2>&1` in
cannam@162 4260 *GNU*)
cannam@162 4261 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
cannam@162 4262 *)
cannam@162 4263 ac_count=0
cannam@162 4264 $as_echo_n 0123456789 >"conftest.in"
cannam@162 4265 while :
cannam@162 4266 do
cannam@162 4267 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@162 4268 mv "conftest.tmp" "conftest.in"
cannam@162 4269 cp "conftest.in" "conftest.nl"
cannam@162 4270 $as_echo '' >> "conftest.nl"
cannam@162 4271 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@162 4272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@162 4273 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@162 4274 if test $ac_count -gt ${ac_path_SED_max-0}; then
cannam@162 4275 # Best one so far, save it but keep looking for a better one
cannam@162 4276 ac_cv_path_SED="$ac_path_SED"
cannam@162 4277 ac_path_SED_max=$ac_count
cannam@162 4278 fi
cannam@162 4279 # 10*(2^10) chars as input seems more than enough
cannam@162 4280 test $ac_count -gt 10 && break
cannam@162 4281 done
cannam@162 4282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@162 4283 esac
cannam@162 4284
cannam@162 4285 $ac_path_SED_found && break 3
cannam@162 4286 done
cannam@162 4287 done
cannam@162 4288 done
cannam@162 4289 IFS=$as_save_IFS
cannam@162 4290 if test -z "$ac_cv_path_SED"; then
cannam@162 4291 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cannam@162 4292 fi
cannam@162 4293 else
cannam@162 4294 ac_cv_path_SED=$SED
cannam@162 4295 fi
cannam@162 4296
cannam@162 4297 fi
cannam@162 4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cannam@162 4299 $as_echo "$ac_cv_path_SED" >&6; }
cannam@162 4300 SED="$ac_cv_path_SED"
cannam@162 4301 rm -f conftest.sed
cannam@162 4302
cannam@162 4303 test -z "$SED" && SED=sed
cannam@162 4304 Xsed="$SED -e 1s/^X//"
cannam@162 4305
cannam@162 4306
cannam@162 4307
cannam@162 4308
cannam@162 4309
cannam@162 4310
cannam@162 4311
cannam@162 4312
cannam@162 4313
cannam@162 4314
cannam@162 4315
cannam@162 4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
cannam@162 4317 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cannam@162 4318 if ${ac_cv_path_GREP+:} false; then :
cannam@162 4319 $as_echo_n "(cached) " >&6
cannam@162 4320 else
cannam@162 4321 if test -z "$GREP"; then
cannam@162 4322 ac_path_GREP_found=false
cannam@162 4323 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@162 4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 4325 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
cannam@162 4326 do
cannam@162 4327 IFS=$as_save_IFS
cannam@162 4328 test -z "$as_dir" && as_dir=.
cannam@162 4329 for ac_prog in grep ggrep; do
cannam@162 4330 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 4331 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cannam@162 4332 as_fn_executable_p "$ac_path_GREP" || continue
cannam@162 4333 # Check for GNU ac_path_GREP and select it if it is found.
cannam@162 4334 # Check for GNU $ac_path_GREP
cannam@162 4335 case `"$ac_path_GREP" --version 2>&1` in
cannam@162 4336 *GNU*)
cannam@162 4337 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
cannam@162 4338 *)
cannam@162 4339 ac_count=0
cannam@162 4340 $as_echo_n 0123456789 >"conftest.in"
cannam@162 4341 while :
cannam@162 4342 do
cannam@162 4343 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@162 4344 mv "conftest.tmp" "conftest.in"
cannam@162 4345 cp "conftest.in" "conftest.nl"
cannam@162 4346 $as_echo 'GREP' >> "conftest.nl"
cannam@162 4347 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@162 4348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@162 4349 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@162 4350 if test $ac_count -gt ${ac_path_GREP_max-0}; then
cannam@162 4351 # Best one so far, save it but keep looking for a better one
cannam@162 4352 ac_cv_path_GREP="$ac_path_GREP"
cannam@162 4353 ac_path_GREP_max=$ac_count
cannam@162 4354 fi
cannam@162 4355 # 10*(2^10) chars as input seems more than enough
cannam@162 4356 test $ac_count -gt 10 && break
cannam@162 4357 done
cannam@162 4358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@162 4359 esac
cannam@162 4360
cannam@162 4361 $ac_path_GREP_found && break 3
cannam@162 4362 done
cannam@162 4363 done
cannam@162 4364 done
cannam@162 4365 IFS=$as_save_IFS
cannam@162 4366 if test -z "$ac_cv_path_GREP"; then
cannam@162 4367 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cannam@162 4368 fi
cannam@162 4369 else
cannam@162 4370 ac_cv_path_GREP=$GREP
cannam@162 4371 fi
cannam@162 4372
cannam@162 4373 fi
cannam@162 4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
cannam@162 4375 $as_echo "$ac_cv_path_GREP" >&6; }
cannam@162 4376 GREP="$ac_cv_path_GREP"
cannam@162 4377
cannam@162 4378
cannam@162 4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
cannam@162 4380 $as_echo_n "checking for egrep... " >&6; }
cannam@162 4381 if ${ac_cv_path_EGREP+:} false; then :
cannam@162 4382 $as_echo_n "(cached) " >&6
cannam@162 4383 else
cannam@162 4384 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
cannam@162 4385 then ac_cv_path_EGREP="$GREP -E"
cannam@162 4386 else
cannam@162 4387 if test -z "$EGREP"; then
cannam@162 4388 ac_path_EGREP_found=false
cannam@162 4389 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@162 4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 4391 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
cannam@162 4392 do
cannam@162 4393 IFS=$as_save_IFS
cannam@162 4394 test -z "$as_dir" && as_dir=.
cannam@162 4395 for ac_prog in egrep; do
cannam@162 4396 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 4397 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cannam@162 4398 as_fn_executable_p "$ac_path_EGREP" || continue
cannam@162 4399 # Check for GNU ac_path_EGREP and select it if it is found.
cannam@162 4400 # Check for GNU $ac_path_EGREP
cannam@162 4401 case `"$ac_path_EGREP" --version 2>&1` in
cannam@162 4402 *GNU*)
cannam@162 4403 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
cannam@162 4404 *)
cannam@162 4405 ac_count=0
cannam@162 4406 $as_echo_n 0123456789 >"conftest.in"
cannam@162 4407 while :
cannam@162 4408 do
cannam@162 4409 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@162 4410 mv "conftest.tmp" "conftest.in"
cannam@162 4411 cp "conftest.in" "conftest.nl"
cannam@162 4412 $as_echo 'EGREP' >> "conftest.nl"
cannam@162 4413 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@162 4414 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@162 4415 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@162 4416 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
cannam@162 4417 # Best one so far, save it but keep looking for a better one
cannam@162 4418 ac_cv_path_EGREP="$ac_path_EGREP"
cannam@162 4419 ac_path_EGREP_max=$ac_count
cannam@162 4420 fi
cannam@162 4421 # 10*(2^10) chars as input seems more than enough
cannam@162 4422 test $ac_count -gt 10 && break
cannam@162 4423 done
cannam@162 4424 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@162 4425 esac
cannam@162 4426
cannam@162 4427 $ac_path_EGREP_found && break 3
cannam@162 4428 done
cannam@162 4429 done
cannam@162 4430 done
cannam@162 4431 IFS=$as_save_IFS
cannam@162 4432 if test -z "$ac_cv_path_EGREP"; then
cannam@162 4433 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cannam@162 4434 fi
cannam@162 4435 else
cannam@162 4436 ac_cv_path_EGREP=$EGREP
cannam@162 4437 fi
cannam@162 4438
cannam@162 4439 fi
cannam@162 4440 fi
cannam@162 4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
cannam@162 4442 $as_echo "$ac_cv_path_EGREP" >&6; }
cannam@162 4443 EGREP="$ac_cv_path_EGREP"
cannam@162 4444
cannam@162 4445
cannam@162 4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cannam@162 4447 $as_echo_n "checking for fgrep... " >&6; }
cannam@162 4448 if ${ac_cv_path_FGREP+:} false; then :
cannam@162 4449 $as_echo_n "(cached) " >&6
cannam@162 4450 else
cannam@162 4451 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
cannam@162 4452 then ac_cv_path_FGREP="$GREP -F"
cannam@162 4453 else
cannam@162 4454 if test -z "$FGREP"; then
cannam@162 4455 ac_path_FGREP_found=false
cannam@162 4456 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@162 4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 4458 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
cannam@162 4459 do
cannam@162 4460 IFS=$as_save_IFS
cannam@162 4461 test -z "$as_dir" && as_dir=.
cannam@162 4462 for ac_prog in fgrep; do
cannam@162 4463 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 4464 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cannam@162 4465 as_fn_executable_p "$ac_path_FGREP" || continue
cannam@162 4466 # Check for GNU ac_path_FGREP and select it if it is found.
cannam@162 4467 # Check for GNU $ac_path_FGREP
cannam@162 4468 case `"$ac_path_FGREP" --version 2>&1` in
cannam@162 4469 *GNU*)
cannam@162 4470 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
cannam@162 4471 *)
cannam@162 4472 ac_count=0
cannam@162 4473 $as_echo_n 0123456789 >"conftest.in"
cannam@162 4474 while :
cannam@162 4475 do
cannam@162 4476 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@162 4477 mv "conftest.tmp" "conftest.in"
cannam@162 4478 cp "conftest.in" "conftest.nl"
cannam@162 4479 $as_echo 'FGREP' >> "conftest.nl"
cannam@162 4480 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@162 4481 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@162 4482 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@162 4483 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
cannam@162 4484 # Best one so far, save it but keep looking for a better one
cannam@162 4485 ac_cv_path_FGREP="$ac_path_FGREP"
cannam@162 4486 ac_path_FGREP_max=$ac_count
cannam@162 4487 fi
cannam@162 4488 # 10*(2^10) chars as input seems more than enough
cannam@162 4489 test $ac_count -gt 10 && break
cannam@162 4490 done
cannam@162 4491 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@162 4492 esac
cannam@162 4493
cannam@162 4494 $ac_path_FGREP_found && break 3
cannam@162 4495 done
cannam@162 4496 done
cannam@162 4497 done
cannam@162 4498 IFS=$as_save_IFS
cannam@162 4499 if test -z "$ac_cv_path_FGREP"; then
cannam@162 4500 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cannam@162 4501 fi
cannam@162 4502 else
cannam@162 4503 ac_cv_path_FGREP=$FGREP
cannam@162 4504 fi
cannam@162 4505
cannam@162 4506 fi
cannam@162 4507 fi
cannam@162 4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cannam@162 4509 $as_echo "$ac_cv_path_FGREP" >&6; }
cannam@162 4510 FGREP="$ac_cv_path_FGREP"
cannam@162 4511
cannam@162 4512
cannam@162 4513 test -z "$GREP" && GREP=grep
cannam@162 4514
cannam@162 4515
cannam@162 4516
cannam@162 4517
cannam@162 4518
cannam@162 4519
cannam@162 4520
cannam@162 4521
cannam@162 4522
cannam@162 4523
cannam@162 4524
cannam@162 4525
cannam@162 4526
cannam@162 4527
cannam@162 4528
cannam@162 4529
cannam@162 4530
cannam@162 4531
cannam@162 4532
cannam@162 4533 # Check whether --with-gnu-ld was given.
cannam@162 4534 if test "${with_gnu_ld+set}" = set; then :
cannam@162 4535 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
cannam@162 4536 else
cannam@162 4537 with_gnu_ld=no
cannam@162 4538 fi
cannam@162 4539
cannam@162 4540 ac_prog=ld
cannam@162 4541 if test "$GCC" = yes; then
cannam@162 4542 # Check if gcc -print-prog-name=ld gives a path.
cannam@162 4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cannam@162 4544 $as_echo_n "checking for ld used by $CC... " >&6; }
cannam@162 4545 case $host in
cannam@162 4546 *-*-mingw*)
cannam@162 4547 # gcc leaves a trailing carriage return which upsets mingw
cannam@162 4548 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
cannam@162 4549 *)
cannam@162 4550 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
cannam@162 4551 esac
cannam@162 4552 case $ac_prog in
cannam@162 4553 # Accept absolute paths.
cannam@162 4554 [\\/]* | ?:[\\/]*)
cannam@162 4555 re_direlt='/[^/][^/]*/\.\./'
cannam@162 4556 # Canonicalize the pathname of ld
cannam@162 4557 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
cannam@162 4558 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
cannam@162 4559 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cannam@162 4560 done
cannam@162 4561 test -z "$LD" && LD="$ac_prog"
cannam@162 4562 ;;
cannam@162 4563 "")
cannam@162 4564 # If it fails, then pretend we aren't using GCC.
cannam@162 4565 ac_prog=ld
cannam@162 4566 ;;
cannam@162 4567 *)
cannam@162 4568 # If it is relative, then search for the first ld in PATH.
cannam@162 4569 with_gnu_ld=unknown
cannam@162 4570 ;;
cannam@162 4571 esac
cannam@162 4572 elif test "$with_gnu_ld" = yes; then
cannam@162 4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cannam@162 4574 $as_echo_n "checking for GNU ld... " >&6; }
cannam@162 4575 else
cannam@162 4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cannam@162 4577 $as_echo_n "checking for non-GNU ld... " >&6; }
cannam@162 4578 fi
cannam@162 4579 if ${lt_cv_path_LD+:} false; then :
cannam@162 4580 $as_echo_n "(cached) " >&6
cannam@162 4581 else
cannam@162 4582 if test -z "$LD"; then
cannam@162 4583 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@162 4584 for ac_dir in $PATH; do
cannam@162 4585 IFS="$lt_save_ifs"
cannam@162 4586 test -z "$ac_dir" && ac_dir=.
cannam@162 4587 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
cannam@162 4588 lt_cv_path_LD="$ac_dir/$ac_prog"
cannam@162 4589 # Check to see if the program is GNU ld. I'd rather use --version,
cannam@162 4590 # but apparently some variants of GNU ld only accept -v.
cannam@162 4591 # Break only if it was the GNU/non-GNU ld that we prefer.
cannam@162 4592 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
cannam@162 4593 *GNU* | *'with BFD'*)
cannam@162 4594 test "$with_gnu_ld" != no && break
cannam@162 4595 ;;
cannam@162 4596 *)
cannam@162 4597 test "$with_gnu_ld" != yes && break
cannam@162 4598 ;;
cannam@162 4599 esac
cannam@162 4600 fi
cannam@162 4601 done
cannam@162 4602 IFS="$lt_save_ifs"
cannam@162 4603 else
cannam@162 4604 lt_cv_path_LD="$LD" # Let the user override the test with a path.
cannam@162 4605 fi
cannam@162 4606 fi
cannam@162 4607
cannam@162 4608 LD="$lt_cv_path_LD"
cannam@162 4609 if test -n "$LD"; then
cannam@162 4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cannam@162 4611 $as_echo "$LD" >&6; }
cannam@162 4612 else
cannam@162 4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 4614 $as_echo "no" >&6; }
cannam@162 4615 fi
cannam@162 4616 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cannam@162 4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cannam@162 4618 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cannam@162 4619 if ${lt_cv_prog_gnu_ld+:} false; then :
cannam@162 4620 $as_echo_n "(cached) " >&6
cannam@162 4621 else
cannam@162 4622 # I'd rather use --version here, but apparently some GNU lds only accept -v.
cannam@162 4623 case `$LD -v 2>&1 </dev/null` in
cannam@162 4624 *GNU* | *'with BFD'*)
cannam@162 4625 lt_cv_prog_gnu_ld=yes
cannam@162 4626 ;;
cannam@162 4627 *)
cannam@162 4628 lt_cv_prog_gnu_ld=no
cannam@162 4629 ;;
cannam@162 4630 esac
cannam@162 4631 fi
cannam@162 4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cannam@162 4633 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
cannam@162 4634 with_gnu_ld=$lt_cv_prog_gnu_ld
cannam@162 4635
cannam@162 4636
cannam@162 4637
cannam@162 4638
cannam@162 4639
cannam@162 4640
cannam@162 4641
cannam@162 4642
cannam@162 4643
cannam@162 4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cannam@162 4645 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cannam@162 4646 if ${lt_cv_path_NM+:} false; then :
cannam@162 4647 $as_echo_n "(cached) " >&6
cannam@162 4648 else
cannam@162 4649 if test -n "$NM"; then
cannam@162 4650 # Let the user override the test.
cannam@162 4651 lt_cv_path_NM="$NM"
cannam@162 4652 else
cannam@162 4653 lt_nm_to_check="${ac_tool_prefix}nm"
cannam@162 4654 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
cannam@162 4655 lt_nm_to_check="$lt_nm_to_check nm"
cannam@162 4656 fi
cannam@162 4657 for lt_tmp_nm in $lt_nm_to_check; do
cannam@162 4658 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@162 4659 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
cannam@162 4660 IFS="$lt_save_ifs"
cannam@162 4661 test -z "$ac_dir" && ac_dir=.
cannam@162 4662 tmp_nm="$ac_dir/$lt_tmp_nm"
cannam@162 4663 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
cannam@162 4664 # Check to see if the nm accepts a BSD-compat flag.
cannam@162 4665 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
cannam@162 4666 # nm: unknown option "B" ignored
cannam@162 4667 # Tru64's nm complains that /dev/null is an invalid object file
cannam@162 4668 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
cannam@162 4669 */dev/null* | *'Invalid file or object type'*)
cannam@162 4670 lt_cv_path_NM="$tmp_nm -B"
cannam@162 4671 break
cannam@162 4672 ;;
cannam@162 4673 *)
cannam@162 4674 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
cannam@162 4675 */dev/null*)
cannam@162 4676 lt_cv_path_NM="$tmp_nm -p"
cannam@162 4677 break
cannam@162 4678 ;;
cannam@162 4679 *)
cannam@162 4680 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
cannam@162 4681 continue # so that we can try to find one that supports BSD flags
cannam@162 4682 ;;
cannam@162 4683 esac
cannam@162 4684 ;;
cannam@162 4685 esac
cannam@162 4686 fi
cannam@162 4687 done
cannam@162 4688 IFS="$lt_save_ifs"
cannam@162 4689 done
cannam@162 4690 : ${lt_cv_path_NM=no}
cannam@162 4691 fi
cannam@162 4692 fi
cannam@162 4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cannam@162 4694 $as_echo "$lt_cv_path_NM" >&6; }
cannam@162 4695 if test "$lt_cv_path_NM" != "no"; then
cannam@162 4696 NM="$lt_cv_path_NM"
cannam@162 4697 else
cannam@162 4698 # Didn't find any BSD compatible name lister, look for dumpbin.
cannam@162 4699 if test -n "$DUMPBIN"; then :
cannam@162 4700 # Let the user override the test.
cannam@162 4701 else
cannam@162 4702 if test -n "$ac_tool_prefix"; then
cannam@162 4703 for ac_prog in dumpbin "link -dump"
cannam@162 4704 do
cannam@162 4705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@162 4706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@162 4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 4708 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 4709 if ${ac_cv_prog_DUMPBIN+:} false; then :
cannam@162 4710 $as_echo_n "(cached) " >&6
cannam@162 4711 else
cannam@162 4712 if test -n "$DUMPBIN"; then
cannam@162 4713 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
cannam@162 4714 else
cannam@162 4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 4716 for as_dir in $PATH
cannam@162 4717 do
cannam@162 4718 IFS=$as_save_IFS
cannam@162 4719 test -z "$as_dir" && as_dir=.
cannam@162 4720 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 4721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 4722 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cannam@162 4723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 4724 break 2
cannam@162 4725 fi
cannam@162 4726 done
cannam@162 4727 done
cannam@162 4728 IFS=$as_save_IFS
cannam@162 4729
cannam@162 4730 fi
cannam@162 4731 fi
cannam@162 4732 DUMPBIN=$ac_cv_prog_DUMPBIN
cannam@162 4733 if test -n "$DUMPBIN"; then
cannam@162 4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cannam@162 4735 $as_echo "$DUMPBIN" >&6; }
cannam@162 4736 else
cannam@162 4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 4738 $as_echo "no" >&6; }
cannam@162 4739 fi
cannam@162 4740
cannam@162 4741
cannam@162 4742 test -n "$DUMPBIN" && break
cannam@162 4743 done
cannam@162 4744 fi
cannam@162 4745 if test -z "$DUMPBIN"; then
cannam@162 4746 ac_ct_DUMPBIN=$DUMPBIN
cannam@162 4747 for ac_prog in dumpbin "link -dump"
cannam@162 4748 do
cannam@162 4749 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@162 4750 set dummy $ac_prog; ac_word=$2
cannam@162 4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 4752 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 4753 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cannam@162 4754 $as_echo_n "(cached) " >&6
cannam@162 4755 else
cannam@162 4756 if test -n "$ac_ct_DUMPBIN"; then
cannam@162 4757 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
cannam@162 4758 else
cannam@162 4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 4760 for as_dir in $PATH
cannam@162 4761 do
cannam@162 4762 IFS=$as_save_IFS
cannam@162 4763 test -z "$as_dir" && as_dir=.
cannam@162 4764 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 4765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 4766 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cannam@162 4767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 4768 break 2
cannam@162 4769 fi
cannam@162 4770 done
cannam@162 4771 done
cannam@162 4772 IFS=$as_save_IFS
cannam@162 4773
cannam@162 4774 fi
cannam@162 4775 fi
cannam@162 4776 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
cannam@162 4777 if test -n "$ac_ct_DUMPBIN"; then
cannam@162 4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cannam@162 4779 $as_echo "$ac_ct_DUMPBIN" >&6; }
cannam@162 4780 else
cannam@162 4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 4782 $as_echo "no" >&6; }
cannam@162 4783 fi
cannam@162 4784
cannam@162 4785
cannam@162 4786 test -n "$ac_ct_DUMPBIN" && break
cannam@162 4787 done
cannam@162 4788
cannam@162 4789 if test "x$ac_ct_DUMPBIN" = x; then
cannam@162 4790 DUMPBIN=":"
cannam@162 4791 else
cannam@162 4792 case $cross_compiling:$ac_tool_warned in
cannam@162 4793 yes:)
cannam@162 4794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@162 4795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@162 4796 ac_tool_warned=yes ;;
cannam@162 4797 esac
cannam@162 4798 DUMPBIN=$ac_ct_DUMPBIN
cannam@162 4799 fi
cannam@162 4800 fi
cannam@162 4801
cannam@162 4802 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
cannam@162 4803 *COFF*)
cannam@162 4804 DUMPBIN="$DUMPBIN -symbols"
cannam@162 4805 ;;
cannam@162 4806 *)
cannam@162 4807 DUMPBIN=:
cannam@162 4808 ;;
cannam@162 4809 esac
cannam@162 4810 fi
cannam@162 4811
cannam@162 4812 if test "$DUMPBIN" != ":"; then
cannam@162 4813 NM="$DUMPBIN"
cannam@162 4814 fi
cannam@162 4815 fi
cannam@162 4816 test -z "$NM" && NM=nm
cannam@162 4817
cannam@162 4818
cannam@162 4819
cannam@162 4820
cannam@162 4821
cannam@162 4822
cannam@162 4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cannam@162 4824 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
cannam@162 4825 if ${lt_cv_nm_interface+:} false; then :
cannam@162 4826 $as_echo_n "(cached) " >&6
cannam@162 4827 else
cannam@162 4828 lt_cv_nm_interface="BSD nm"
cannam@162 4829 echo "int some_variable = 0;" > conftest.$ac_ext
cannam@162 4830 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cannam@162 4831 (eval "$ac_compile" 2>conftest.err)
cannam@162 4832 cat conftest.err >&5
cannam@162 4833 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cannam@162 4834 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
cannam@162 4835 cat conftest.err >&5
cannam@162 4836 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cannam@162 4837 cat conftest.out >&5
cannam@162 4838 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
cannam@162 4839 lt_cv_nm_interface="MS dumpbin"
cannam@162 4840 fi
cannam@162 4841 rm -f conftest*
cannam@162 4842 fi
cannam@162 4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cannam@162 4844 $as_echo "$lt_cv_nm_interface" >&6; }
cannam@162 4845
cannam@162 4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cannam@162 4847 $as_echo_n "checking whether ln -s works... " >&6; }
cannam@162 4848 LN_S=$as_ln_s
cannam@162 4849 if test "$LN_S" = "ln -s"; then
cannam@162 4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@162 4851 $as_echo "yes" >&6; }
cannam@162 4852 else
cannam@162 4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cannam@162 4854 $as_echo "no, using $LN_S" >&6; }
cannam@162 4855 fi
cannam@162 4856
cannam@162 4857 # find the maximum length of command line arguments
cannam@162 4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cannam@162 4859 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
cannam@162 4860 if ${lt_cv_sys_max_cmd_len+:} false; then :
cannam@162 4861 $as_echo_n "(cached) " >&6
cannam@162 4862 else
cannam@162 4863 i=0
cannam@162 4864 teststring="ABCD"
cannam@162 4865
cannam@162 4866 case $build_os in
cannam@162 4867 msdosdjgpp*)
cannam@162 4868 # On DJGPP, this test can blow up pretty badly due to problems in libc
cannam@162 4869 # (any single argument exceeding 2000 bytes causes a buffer overrun
cannam@162 4870 # during glob expansion). Even if it were fixed, the result of this
cannam@162 4871 # check would be larger than it should be.
cannam@162 4872 lt_cv_sys_max_cmd_len=12288; # 12K is about right
cannam@162 4873 ;;
cannam@162 4874
cannam@162 4875 gnu*)
cannam@162 4876 # Under GNU Hurd, this test is not required because there is
cannam@162 4877 # no limit to the length of command line arguments.
cannam@162 4878 # Libtool will interpret -1 as no limit whatsoever
cannam@162 4879 lt_cv_sys_max_cmd_len=-1;
cannam@162 4880 ;;
cannam@162 4881
cannam@162 4882 cygwin* | mingw* | cegcc*)
cannam@162 4883 # On Win9x/ME, this test blows up -- it succeeds, but takes
cannam@162 4884 # about 5 minutes as the teststring grows exponentially.
cannam@162 4885 # Worse, since 9x/ME are not pre-emptively multitasking,
cannam@162 4886 # you end up with a "frozen" computer, even though with patience
cannam@162 4887 # the test eventually succeeds (with a max line length of 256k).
cannam@162 4888 # Instead, let's just punt: use the minimum linelength reported by
cannam@162 4889 # all of the supported platforms: 8192 (on NT/2K/XP).
cannam@162 4890 lt_cv_sys_max_cmd_len=8192;
cannam@162 4891 ;;
cannam@162 4892
cannam@162 4893 mint*)
cannam@162 4894 # On MiNT this can take a long time and run out of memory.
cannam@162 4895 lt_cv_sys_max_cmd_len=8192;
cannam@162 4896 ;;
cannam@162 4897
cannam@162 4898 amigaos*)
cannam@162 4899 # On AmigaOS with pdksh, this test takes hours, literally.
cannam@162 4900 # So we just punt and use a minimum line length of 8192.
cannam@162 4901 lt_cv_sys_max_cmd_len=8192;
cannam@162 4902 ;;
cannam@162 4903
cannam@162 4904 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
cannam@162 4905 # This has been around since 386BSD, at least. Likely further.
cannam@162 4906 if test -x /sbin/sysctl; then
cannam@162 4907 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
cannam@162 4908 elif test -x /usr/sbin/sysctl; then
cannam@162 4909 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
cannam@162 4910 else
cannam@162 4911 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cannam@162 4912 fi
cannam@162 4913 # And add a safety zone
cannam@162 4914 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
cannam@162 4915 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
cannam@162 4916 ;;
cannam@162 4917
cannam@162 4918 interix*)
cannam@162 4919 # We know the value 262144 and hardcode it with a safety zone (like BSD)
cannam@162 4920 lt_cv_sys_max_cmd_len=196608
cannam@162 4921 ;;
cannam@162 4922
cannam@162 4923 os2*)
cannam@162 4924 # The test takes a long time on OS/2.
cannam@162 4925 lt_cv_sys_max_cmd_len=8192
cannam@162 4926 ;;
cannam@162 4927
cannam@162 4928 osf*)
cannam@162 4929 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
cannam@162 4930 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
cannam@162 4931 # nice to cause kernel panics so lets avoid the loop below.
cannam@162 4932 # First set a reasonable default.
cannam@162 4933 lt_cv_sys_max_cmd_len=16384
cannam@162 4934 #
cannam@162 4935 if test -x /sbin/sysconfig; then
cannam@162 4936 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
cannam@162 4937 *1*) lt_cv_sys_max_cmd_len=-1 ;;
cannam@162 4938 esac
cannam@162 4939 fi
cannam@162 4940 ;;
cannam@162 4941 sco3.2v5*)
cannam@162 4942 lt_cv_sys_max_cmd_len=102400
cannam@162 4943 ;;
cannam@162 4944 sysv5* | sco5v6* | sysv4.2uw2*)
cannam@162 4945 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
cannam@162 4946 if test -n "$kargmax"; then
cannam@162 4947 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
cannam@162 4948 else
cannam@162 4949 lt_cv_sys_max_cmd_len=32768
cannam@162 4950 fi
cannam@162 4951 ;;
cannam@162 4952 *)
cannam@162 4953 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
cannam@162 4954 if test -n "$lt_cv_sys_max_cmd_len" && \
cannam@162 4955 test undefined != "$lt_cv_sys_max_cmd_len"; then
cannam@162 4956 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
cannam@162 4957 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
cannam@162 4958 else
cannam@162 4959 # Make teststring a little bigger before we do anything with it.
cannam@162 4960 # a 1K string should be a reasonable start.
cannam@162 4961 for i in 1 2 3 4 5 6 7 8 ; do
cannam@162 4962 teststring=$teststring$teststring
cannam@162 4963 done
cannam@162 4964 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
cannam@162 4965 # If test is not a shell built-in, we'll probably end up computing a
cannam@162 4966 # maximum length that is only half of the actual maximum length, but
cannam@162 4967 # we can't tell.
cannam@162 4968 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cannam@162 4969 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cannam@162 4970 test $i != 17 # 1/2 MB should be enough
cannam@162 4971 do
cannam@162 4972 i=`expr $i + 1`
cannam@162 4973 teststring=$teststring$teststring
cannam@162 4974 done
cannam@162 4975 # Only check the string length outside the loop.
cannam@162 4976 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
cannam@162 4977 teststring=
cannam@162 4978 # Add a significant safety factor because C++ compilers can tack on
cannam@162 4979 # massive amounts of additional arguments before passing them to the
cannam@162 4980 # linker. It appears as though 1/2 is a usable value.
cannam@162 4981 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
cannam@162 4982 fi
cannam@162 4983 ;;
cannam@162 4984 esac
cannam@162 4985
cannam@162 4986 fi
cannam@162 4987
cannam@162 4988 if test -n $lt_cv_sys_max_cmd_len ; then
cannam@162 4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cannam@162 4990 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
cannam@162 4991 else
cannam@162 4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cannam@162 4993 $as_echo "none" >&6; }
cannam@162 4994 fi
cannam@162 4995 max_cmd_len=$lt_cv_sys_max_cmd_len
cannam@162 4996
cannam@162 4997
cannam@162 4998
cannam@162 4999
cannam@162 5000
cannam@162 5001
cannam@162 5002 : ${CP="cp -f"}
cannam@162 5003 : ${MV="mv -f"}
cannam@162 5004 : ${RM="rm -f"}
cannam@162 5005
cannam@162 5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cannam@162 5007 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
cannam@162 5008 # Try some XSI features
cannam@162 5009 xsi_shell=no
cannam@162 5010 ( _lt_dummy="a/b/c"
cannam@162 5011 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
cannam@162 5012 = c,a/b,b/c, \
cannam@162 5013 && eval 'test $(( 1 + 1 )) -eq 2 \
cannam@162 5014 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
cannam@162 5015 && xsi_shell=yes
cannam@162 5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cannam@162 5017 $as_echo "$xsi_shell" >&6; }
cannam@162 5018
cannam@162 5019
cannam@162 5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cannam@162 5021 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
cannam@162 5022 lt_shell_append=no
cannam@162 5023 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
cannam@162 5024 >/dev/null 2>&1 \
cannam@162 5025 && lt_shell_append=yes
cannam@162 5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cannam@162 5027 $as_echo "$lt_shell_append" >&6; }
cannam@162 5028
cannam@162 5029
cannam@162 5030 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
cannam@162 5031 lt_unset=unset
cannam@162 5032 else
cannam@162 5033 lt_unset=false
cannam@162 5034 fi
cannam@162 5035
cannam@162 5036
cannam@162 5037
cannam@162 5038
cannam@162 5039
cannam@162 5040 # test EBCDIC or ASCII
cannam@162 5041 case `echo X|tr X '\101'` in
cannam@162 5042 A) # ASCII based system
cannam@162 5043 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
cannam@162 5044 lt_SP2NL='tr \040 \012'
cannam@162 5045 lt_NL2SP='tr \015\012 \040\040'
cannam@162 5046 ;;
cannam@162 5047 *) # EBCDIC based system
cannam@162 5048 lt_SP2NL='tr \100 \n'
cannam@162 5049 lt_NL2SP='tr \r\n \100\100'
cannam@162 5050 ;;
cannam@162 5051 esac
cannam@162 5052
cannam@162 5053
cannam@162 5054
cannam@162 5055
cannam@162 5056
cannam@162 5057
cannam@162 5058
cannam@162 5059
cannam@162 5060
cannam@162 5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
cannam@162 5062 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
cannam@162 5063 if ${lt_cv_to_host_file_cmd+:} false; then :
cannam@162 5064 $as_echo_n "(cached) " >&6
cannam@162 5065 else
cannam@162 5066 case $host in
cannam@162 5067 *-*-mingw* )
cannam@162 5068 case $build in
cannam@162 5069 *-*-mingw* ) # actually msys
cannam@162 5070 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
cannam@162 5071 ;;
cannam@162 5072 *-*-cygwin* )
cannam@162 5073 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
cannam@162 5074 ;;
cannam@162 5075 * ) # otherwise, assume *nix
cannam@162 5076 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
cannam@162 5077 ;;
cannam@162 5078 esac
cannam@162 5079 ;;
cannam@162 5080 *-*-cygwin* )
cannam@162 5081 case $build in
cannam@162 5082 *-*-mingw* ) # actually msys
cannam@162 5083 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
cannam@162 5084 ;;
cannam@162 5085 *-*-cygwin* )
cannam@162 5086 lt_cv_to_host_file_cmd=func_convert_file_noop
cannam@162 5087 ;;
cannam@162 5088 * ) # otherwise, assume *nix
cannam@162 5089 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
cannam@162 5090 ;;
cannam@162 5091 esac
cannam@162 5092 ;;
cannam@162 5093 * ) # unhandled hosts (and "normal" native builds)
cannam@162 5094 lt_cv_to_host_file_cmd=func_convert_file_noop
cannam@162 5095 ;;
cannam@162 5096 esac
cannam@162 5097
cannam@162 5098 fi
cannam@162 5099
cannam@162 5100 to_host_file_cmd=$lt_cv_to_host_file_cmd
cannam@162 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
cannam@162 5102 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
cannam@162 5103
cannam@162 5104
cannam@162 5105
cannam@162 5106
cannam@162 5107
cannam@162 5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
cannam@162 5109 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
cannam@162 5110 if ${lt_cv_to_tool_file_cmd+:} false; then :
cannam@162 5111 $as_echo_n "(cached) " >&6
cannam@162 5112 else
cannam@162 5113 #assume ordinary cross tools, or native build.
cannam@162 5114 lt_cv_to_tool_file_cmd=func_convert_file_noop
cannam@162 5115 case $host in
cannam@162 5116 *-*-mingw* )
cannam@162 5117 case $build in
cannam@162 5118 *-*-mingw* ) # actually msys
cannam@162 5119 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
cannam@162 5120 ;;
cannam@162 5121 esac
cannam@162 5122 ;;
cannam@162 5123 esac
cannam@162 5124
cannam@162 5125 fi
cannam@162 5126
cannam@162 5127 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
cannam@162 5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
cannam@162 5129 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
cannam@162 5130
cannam@162 5131
cannam@162 5132
cannam@162 5133
cannam@162 5134
cannam@162 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cannam@162 5136 $as_echo_n "checking for $LD option to reload object files... " >&6; }
cannam@162 5137 if ${lt_cv_ld_reload_flag+:} false; then :
cannam@162 5138 $as_echo_n "(cached) " >&6
cannam@162 5139 else
cannam@162 5140 lt_cv_ld_reload_flag='-r'
cannam@162 5141 fi
cannam@162 5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cannam@162 5143 $as_echo "$lt_cv_ld_reload_flag" >&6; }
cannam@162 5144 reload_flag=$lt_cv_ld_reload_flag
cannam@162 5145 case $reload_flag in
cannam@162 5146 "" | " "*) ;;
cannam@162 5147 *) reload_flag=" $reload_flag" ;;
cannam@162 5148 esac
cannam@162 5149 reload_cmds='$LD$reload_flag -o $output$reload_objs'
cannam@162 5150 case $host_os in
cannam@162 5151 cygwin* | mingw* | pw32* | cegcc*)
cannam@162 5152 if test "$GCC" != yes; then
cannam@162 5153 reload_cmds=false
cannam@162 5154 fi
cannam@162 5155 ;;
cannam@162 5156 darwin*)
cannam@162 5157 if test "$GCC" = yes; then
cannam@162 5158 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
cannam@162 5159 else
cannam@162 5160 reload_cmds='$LD$reload_flag -o $output$reload_objs'
cannam@162 5161 fi
cannam@162 5162 ;;
cannam@162 5163 esac
cannam@162 5164
cannam@162 5165
cannam@162 5166
cannam@162 5167
cannam@162 5168
cannam@162 5169
cannam@162 5170
cannam@162 5171
cannam@162 5172
cannam@162 5173 if test -n "$ac_tool_prefix"; then
cannam@162 5174 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
cannam@162 5175 set dummy ${ac_tool_prefix}objdump; ac_word=$2
cannam@162 5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 5177 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 5178 if ${ac_cv_prog_OBJDUMP+:} false; then :
cannam@162 5179 $as_echo_n "(cached) " >&6
cannam@162 5180 else
cannam@162 5181 if test -n "$OBJDUMP"; then
cannam@162 5182 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
cannam@162 5183 else
cannam@162 5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 5185 for as_dir in $PATH
cannam@162 5186 do
cannam@162 5187 IFS=$as_save_IFS
cannam@162 5188 test -z "$as_dir" && as_dir=.
cannam@162 5189 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 5190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 5191 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cannam@162 5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 5193 break 2
cannam@162 5194 fi
cannam@162 5195 done
cannam@162 5196 done
cannam@162 5197 IFS=$as_save_IFS
cannam@162 5198
cannam@162 5199 fi
cannam@162 5200 fi
cannam@162 5201 OBJDUMP=$ac_cv_prog_OBJDUMP
cannam@162 5202 if test -n "$OBJDUMP"; then
cannam@162 5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cannam@162 5204 $as_echo "$OBJDUMP" >&6; }
cannam@162 5205 else
cannam@162 5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 5207 $as_echo "no" >&6; }
cannam@162 5208 fi
cannam@162 5209
cannam@162 5210
cannam@162 5211 fi
cannam@162 5212 if test -z "$ac_cv_prog_OBJDUMP"; then
cannam@162 5213 ac_ct_OBJDUMP=$OBJDUMP
cannam@162 5214 # Extract the first word of "objdump", so it can be a program name with args.
cannam@162 5215 set dummy objdump; ac_word=$2
cannam@162 5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 5217 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 5218 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cannam@162 5219 $as_echo_n "(cached) " >&6
cannam@162 5220 else
cannam@162 5221 if test -n "$ac_ct_OBJDUMP"; then
cannam@162 5222 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
cannam@162 5223 else
cannam@162 5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 5225 for as_dir in $PATH
cannam@162 5226 do
cannam@162 5227 IFS=$as_save_IFS
cannam@162 5228 test -z "$as_dir" && as_dir=.
cannam@162 5229 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 5230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 5231 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cannam@162 5232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 5233 break 2
cannam@162 5234 fi
cannam@162 5235 done
cannam@162 5236 done
cannam@162 5237 IFS=$as_save_IFS
cannam@162 5238
cannam@162 5239 fi
cannam@162 5240 fi
cannam@162 5241 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
cannam@162 5242 if test -n "$ac_ct_OBJDUMP"; then
cannam@162 5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cannam@162 5244 $as_echo "$ac_ct_OBJDUMP" >&6; }
cannam@162 5245 else
cannam@162 5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 5247 $as_echo "no" >&6; }
cannam@162 5248 fi
cannam@162 5249
cannam@162 5250 if test "x$ac_ct_OBJDUMP" = x; then
cannam@162 5251 OBJDUMP="false"
cannam@162 5252 else
cannam@162 5253 case $cross_compiling:$ac_tool_warned in
cannam@162 5254 yes:)
cannam@162 5255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@162 5256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@162 5257 ac_tool_warned=yes ;;
cannam@162 5258 esac
cannam@162 5259 OBJDUMP=$ac_ct_OBJDUMP
cannam@162 5260 fi
cannam@162 5261 else
cannam@162 5262 OBJDUMP="$ac_cv_prog_OBJDUMP"
cannam@162 5263 fi
cannam@162 5264
cannam@162 5265 test -z "$OBJDUMP" && OBJDUMP=objdump
cannam@162 5266
cannam@162 5267
cannam@162 5268
cannam@162 5269
cannam@162 5270
cannam@162 5271
cannam@162 5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cannam@162 5273 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
cannam@162 5274 if ${lt_cv_deplibs_check_method+:} false; then :
cannam@162 5275 $as_echo_n "(cached) " >&6
cannam@162 5276 else
cannam@162 5277 lt_cv_file_magic_cmd='$MAGIC_CMD'
cannam@162 5278 lt_cv_file_magic_test_file=
cannam@162 5279 lt_cv_deplibs_check_method='unknown'
cannam@162 5280 # Need to set the preceding variable on all platforms that support
cannam@162 5281 # interlibrary dependencies.
cannam@162 5282 # 'none' -- dependencies not supported.
cannam@162 5283 # `unknown' -- same as none, but documents that we really don't know.
cannam@162 5284 # 'pass_all' -- all dependencies passed with no checks.
cannam@162 5285 # 'test_compile' -- check by making test program.
cannam@162 5286 # 'file_magic [[regex]]' -- check by looking for files in library path
cannam@162 5287 # which responds to the $file_magic_cmd with a given extended regex.
cannam@162 5288 # If you have `file' or equivalent on your system and you're not sure
cannam@162 5289 # whether `pass_all' will *always* work, you probably want this one.
cannam@162 5290
cannam@162 5291 case $host_os in
cannam@162 5292 aix[4-9]*)
cannam@162 5293 lt_cv_deplibs_check_method=pass_all
cannam@162 5294 ;;
cannam@162 5295
cannam@162 5296 beos*)
cannam@162 5297 lt_cv_deplibs_check_method=pass_all
cannam@162 5298 ;;
cannam@162 5299
cannam@162 5300 bsdi[45]*)
cannam@162 5301 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
cannam@162 5302 lt_cv_file_magic_cmd='/usr/bin/file -L'
cannam@162 5303 lt_cv_file_magic_test_file=/shlib/libc.so
cannam@162 5304 ;;
cannam@162 5305
cannam@162 5306 cygwin*)
cannam@162 5307 # func_win32_libid is a shell function defined in ltmain.sh
cannam@162 5308 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
cannam@162 5309 lt_cv_file_magic_cmd='func_win32_libid'
cannam@162 5310 ;;
cannam@162 5311
cannam@162 5312 mingw* | pw32*)
cannam@162 5313 # Base MSYS/MinGW do not provide the 'file' command needed by
cannam@162 5314 # func_win32_libid shell function, so use a weaker test based on 'objdump',
cannam@162 5315 # unless we find 'file', for example because we are cross-compiling.
cannam@162 5316 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
cannam@162 5317 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cannam@162 5318 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
cannam@162 5319 lt_cv_file_magic_cmd='func_win32_libid'
cannam@162 5320 else
cannam@162 5321 # Keep this pattern in sync with the one in func_win32_libid.
cannam@162 5322 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
cannam@162 5323 lt_cv_file_magic_cmd='$OBJDUMP -f'
cannam@162 5324 fi
cannam@162 5325 ;;
cannam@162 5326
cannam@162 5327 cegcc*)
cannam@162 5328 # use the weaker test based on 'objdump'. See mingw*.
cannam@162 5329 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
cannam@162 5330 lt_cv_file_magic_cmd='$OBJDUMP -f'
cannam@162 5331 ;;
cannam@162 5332
cannam@162 5333 darwin* | rhapsody*)
cannam@162 5334 lt_cv_deplibs_check_method=pass_all
cannam@162 5335 ;;
cannam@162 5336
cannam@162 5337 freebsd* | dragonfly*)
cannam@162 5338 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
cannam@162 5339 case $host_cpu in
cannam@162 5340 i*86 )
cannam@162 5341 # Not sure whether the presence of OpenBSD here was a mistake.
cannam@162 5342 # Let's accept both of them until this is cleared up.
cannam@162 5343 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
cannam@162 5344 lt_cv_file_magic_cmd=/usr/bin/file
cannam@162 5345 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
cannam@162 5346 ;;
cannam@162 5347 esac
cannam@162 5348 else
cannam@162 5349 lt_cv_deplibs_check_method=pass_all
cannam@162 5350 fi
cannam@162 5351 ;;
cannam@162 5352
cannam@162 5353 haiku*)
cannam@162 5354 lt_cv_deplibs_check_method=pass_all
cannam@162 5355 ;;
cannam@162 5356
cannam@162 5357 hpux10.20* | hpux11*)
cannam@162 5358 lt_cv_file_magic_cmd=/usr/bin/file
cannam@162 5359 case $host_cpu in
cannam@162 5360 ia64*)
cannam@162 5361 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
cannam@162 5362 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
cannam@162 5363 ;;
cannam@162 5364 hppa*64*)
cannam@162 5365 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@162 5366 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
cannam@162 5367 ;;
cannam@162 5368 *)
cannam@162 5369 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
cannam@162 5370 lt_cv_file_magic_test_file=/usr/lib/libc.sl
cannam@162 5371 ;;
cannam@162 5372 esac
cannam@162 5373 ;;
cannam@162 5374
cannam@162 5375 interix[3-9]*)
cannam@162 5376 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
cannam@162 5377 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
cannam@162 5378 ;;
cannam@162 5379
cannam@162 5380 irix5* | irix6* | nonstopux*)
cannam@162 5381 case $LD in
cannam@162 5382 *-32|*"-32 ") libmagic=32-bit;;
cannam@162 5383 *-n32|*"-n32 ") libmagic=N32;;
cannam@162 5384 *-64|*"-64 ") libmagic=64-bit;;
cannam@162 5385 *) libmagic=never-match;;
cannam@162 5386 esac
cannam@162 5387 lt_cv_deplibs_check_method=pass_all
cannam@162 5388 ;;
cannam@162 5389
cannam@162 5390 # This must be glibc/ELF.
cannam@162 5391 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cannam@162 5392 lt_cv_deplibs_check_method=pass_all
cannam@162 5393 ;;
cannam@162 5394
cannam@162 5395 netbsd* | netbsdelf*-gnu)
cannam@162 5396 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
cannam@162 5397 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cannam@162 5398 else
cannam@162 5399 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cannam@162 5400 fi
cannam@162 5401 ;;
cannam@162 5402
cannam@162 5403 newos6*)
cannam@162 5404 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
cannam@162 5405 lt_cv_file_magic_cmd=/usr/bin/file
cannam@162 5406 lt_cv_file_magic_test_file=/usr/lib/libnls.so
cannam@162 5407 ;;
cannam@162 5408
cannam@162 5409 *nto* | *qnx*)
cannam@162 5410 lt_cv_deplibs_check_method=pass_all
cannam@162 5411 ;;
cannam@162 5412
cannam@162 5413 openbsd*)
cannam@162 5414 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@162 5415 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
cannam@162 5416 else
cannam@162 5417 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cannam@162 5418 fi
cannam@162 5419 ;;
cannam@162 5420
cannam@162 5421 osf3* | osf4* | osf5*)
cannam@162 5422 lt_cv_deplibs_check_method=pass_all
cannam@162 5423 ;;
cannam@162 5424
cannam@162 5425 rdos*)
cannam@162 5426 lt_cv_deplibs_check_method=pass_all
cannam@162 5427 ;;
cannam@162 5428
cannam@162 5429 solaris*)
cannam@162 5430 lt_cv_deplibs_check_method=pass_all
cannam@162 5431 ;;
cannam@162 5432
cannam@162 5433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
cannam@162 5434 lt_cv_deplibs_check_method=pass_all
cannam@162 5435 ;;
cannam@162 5436
cannam@162 5437 sysv4 | sysv4.3*)
cannam@162 5438 case $host_vendor in
cannam@162 5439 motorola)
cannam@162 5440 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@162 5441 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
cannam@162 5442 ;;
cannam@162 5443 ncr)
cannam@162 5444 lt_cv_deplibs_check_method=pass_all
cannam@162 5445 ;;
cannam@162 5446 sequent)
cannam@162 5447 lt_cv_file_magic_cmd='/bin/file'
cannam@162 5448 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
cannam@162 5449 ;;
cannam@162 5450 sni)
cannam@162 5451 lt_cv_file_magic_cmd='/bin/file'
cannam@162 5452 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
cannam@162 5453 lt_cv_file_magic_test_file=/lib/libc.so
cannam@162 5454 ;;
cannam@162 5455 siemens)
cannam@162 5456 lt_cv_deplibs_check_method=pass_all
cannam@162 5457 ;;
cannam@162 5458 pc)
cannam@162 5459 lt_cv_deplibs_check_method=pass_all
cannam@162 5460 ;;
cannam@162 5461 esac
cannam@162 5462 ;;
cannam@162 5463
cannam@162 5464 tpf*)
cannam@162 5465 lt_cv_deplibs_check_method=pass_all
cannam@162 5466 ;;
cannam@162 5467 esac
cannam@162 5468
cannam@162 5469 fi
cannam@162 5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cannam@162 5471 $as_echo "$lt_cv_deplibs_check_method" >&6; }
cannam@162 5472
cannam@162 5473 file_magic_glob=
cannam@162 5474 want_nocaseglob=no
cannam@162 5475 if test "$build" = "$host"; then
cannam@162 5476 case $host_os in
cannam@162 5477 mingw* | pw32*)
cannam@162 5478 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
cannam@162 5479 want_nocaseglob=yes
cannam@162 5480 else
cannam@162 5481 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
cannam@162 5482 fi
cannam@162 5483 ;;
cannam@162 5484 esac
cannam@162 5485 fi
cannam@162 5486
cannam@162 5487 file_magic_cmd=$lt_cv_file_magic_cmd
cannam@162 5488 deplibs_check_method=$lt_cv_deplibs_check_method
cannam@162 5489 test -z "$deplibs_check_method" && deplibs_check_method=unknown
cannam@162 5490
cannam@162 5491
cannam@162 5492
cannam@162 5493
cannam@162 5494
cannam@162 5495
cannam@162 5496
cannam@162 5497
cannam@162 5498
cannam@162 5499
cannam@162 5500
cannam@162 5501
cannam@162 5502
cannam@162 5503
cannam@162 5504
cannam@162 5505
cannam@162 5506
cannam@162 5507
cannam@162 5508
cannam@162 5509
cannam@162 5510
cannam@162 5511
cannam@162 5512 if test -n "$ac_tool_prefix"; then
cannam@162 5513 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
cannam@162 5514 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cannam@162 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 5516 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 5517 if ${ac_cv_prog_DLLTOOL+:} false; then :
cannam@162 5518 $as_echo_n "(cached) " >&6
cannam@162 5519 else
cannam@162 5520 if test -n "$DLLTOOL"; then
cannam@162 5521 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
cannam@162 5522 else
cannam@162 5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 5524 for as_dir in $PATH
cannam@162 5525 do
cannam@162 5526 IFS=$as_save_IFS
cannam@162 5527 test -z "$as_dir" && as_dir=.
cannam@162 5528 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 5529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 5530 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cannam@162 5531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 5532 break 2
cannam@162 5533 fi
cannam@162 5534 done
cannam@162 5535 done
cannam@162 5536 IFS=$as_save_IFS
cannam@162 5537
cannam@162 5538 fi
cannam@162 5539 fi
cannam@162 5540 DLLTOOL=$ac_cv_prog_DLLTOOL
cannam@162 5541 if test -n "$DLLTOOL"; then
cannam@162 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cannam@162 5543 $as_echo "$DLLTOOL" >&6; }
cannam@162 5544 else
cannam@162 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 5546 $as_echo "no" >&6; }
cannam@162 5547 fi
cannam@162 5548
cannam@162 5549
cannam@162 5550 fi
cannam@162 5551 if test -z "$ac_cv_prog_DLLTOOL"; then
cannam@162 5552 ac_ct_DLLTOOL=$DLLTOOL
cannam@162 5553 # Extract the first word of "dlltool", so it can be a program name with args.
cannam@162 5554 set dummy dlltool; ac_word=$2
cannam@162 5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 5556 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 5557 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cannam@162 5558 $as_echo_n "(cached) " >&6
cannam@162 5559 else
cannam@162 5560 if test -n "$ac_ct_DLLTOOL"; then
cannam@162 5561 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
cannam@162 5562 else
cannam@162 5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 5564 for as_dir in $PATH
cannam@162 5565 do
cannam@162 5566 IFS=$as_save_IFS
cannam@162 5567 test -z "$as_dir" && as_dir=.
cannam@162 5568 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 5569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 5570 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cannam@162 5571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 5572 break 2
cannam@162 5573 fi
cannam@162 5574 done
cannam@162 5575 done
cannam@162 5576 IFS=$as_save_IFS
cannam@162 5577
cannam@162 5578 fi
cannam@162 5579 fi
cannam@162 5580 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
cannam@162 5581 if test -n "$ac_ct_DLLTOOL"; then
cannam@162 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cannam@162 5583 $as_echo "$ac_ct_DLLTOOL" >&6; }
cannam@162 5584 else
cannam@162 5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 5586 $as_echo "no" >&6; }
cannam@162 5587 fi
cannam@162 5588
cannam@162 5589 if test "x$ac_ct_DLLTOOL" = x; then
cannam@162 5590 DLLTOOL="false"
cannam@162 5591 else
cannam@162 5592 case $cross_compiling:$ac_tool_warned in
cannam@162 5593 yes:)
cannam@162 5594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@162 5595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@162 5596 ac_tool_warned=yes ;;
cannam@162 5597 esac
cannam@162 5598 DLLTOOL=$ac_ct_DLLTOOL
cannam@162 5599 fi
cannam@162 5600 else
cannam@162 5601 DLLTOOL="$ac_cv_prog_DLLTOOL"
cannam@162 5602 fi
cannam@162 5603
cannam@162 5604 test -z "$DLLTOOL" && DLLTOOL=dlltool
cannam@162 5605
cannam@162 5606
cannam@162 5607
cannam@162 5608
cannam@162 5609
cannam@162 5610
cannam@162 5611
cannam@162 5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
cannam@162 5613 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
cannam@162 5614 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
cannam@162 5615 $as_echo_n "(cached) " >&6
cannam@162 5616 else
cannam@162 5617 lt_cv_sharedlib_from_linklib_cmd='unknown'
cannam@162 5618
cannam@162 5619 case $host_os in
cannam@162 5620 cygwin* | mingw* | pw32* | cegcc*)
cannam@162 5621 # two different shell functions defined in ltmain.sh
cannam@162 5622 # decide which to use based on capabilities of $DLLTOOL
cannam@162 5623 case `$DLLTOOL --help 2>&1` in
cannam@162 5624 *--identify-strict*)
cannam@162 5625 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
cannam@162 5626 ;;
cannam@162 5627 *)
cannam@162 5628 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
cannam@162 5629 ;;
cannam@162 5630 esac
cannam@162 5631 ;;
cannam@162 5632 *)
cannam@162 5633 # fallback: assume linklib IS sharedlib
cannam@162 5634 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
cannam@162 5635 ;;
cannam@162 5636 esac
cannam@162 5637
cannam@162 5638 fi
cannam@162 5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
cannam@162 5640 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
cannam@162 5641 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
cannam@162 5642 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
cannam@162 5643
cannam@162 5644
cannam@162 5645
cannam@162 5646
cannam@162 5647
cannam@162 5648
cannam@162 5649
cannam@162 5650
cannam@162 5651 if test -n "$ac_tool_prefix"; then
cannam@162 5652 for ac_prog in ar
cannam@162 5653 do
cannam@162 5654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@162 5655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@162 5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 5657 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 5658 if ${ac_cv_prog_AR+:} false; then :
cannam@162 5659 $as_echo_n "(cached) " >&6
cannam@162 5660 else
cannam@162 5661 if test -n "$AR"; then
cannam@162 5662 ac_cv_prog_AR="$AR" # Let the user override the test.
cannam@162 5663 else
cannam@162 5664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 5665 for as_dir in $PATH
cannam@162 5666 do
cannam@162 5667 IFS=$as_save_IFS
cannam@162 5668 test -z "$as_dir" && as_dir=.
cannam@162 5669 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 5670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 5671 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cannam@162 5672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 5673 break 2
cannam@162 5674 fi
cannam@162 5675 done
cannam@162 5676 done
cannam@162 5677 IFS=$as_save_IFS
cannam@162 5678
cannam@162 5679 fi
cannam@162 5680 fi
cannam@162 5681 AR=$ac_cv_prog_AR
cannam@162 5682 if test -n "$AR"; then
cannam@162 5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cannam@162 5684 $as_echo "$AR" >&6; }
cannam@162 5685 else
cannam@162 5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 5687 $as_echo "no" >&6; }
cannam@162 5688 fi
cannam@162 5689
cannam@162 5690
cannam@162 5691 test -n "$AR" && break
cannam@162 5692 done
cannam@162 5693 fi
cannam@162 5694 if test -z "$AR"; then
cannam@162 5695 ac_ct_AR=$AR
cannam@162 5696 for ac_prog in ar
cannam@162 5697 do
cannam@162 5698 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@162 5699 set dummy $ac_prog; ac_word=$2
cannam@162 5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 5701 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 5702 if ${ac_cv_prog_ac_ct_AR+:} false; then :
cannam@162 5703 $as_echo_n "(cached) " >&6
cannam@162 5704 else
cannam@162 5705 if test -n "$ac_ct_AR"; then
cannam@162 5706 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
cannam@162 5707 else
cannam@162 5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 5709 for as_dir in $PATH
cannam@162 5710 do
cannam@162 5711 IFS=$as_save_IFS
cannam@162 5712 test -z "$as_dir" && as_dir=.
cannam@162 5713 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 5714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 5715 ac_cv_prog_ac_ct_AR="$ac_prog"
cannam@162 5716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 5717 break 2
cannam@162 5718 fi
cannam@162 5719 done
cannam@162 5720 done
cannam@162 5721 IFS=$as_save_IFS
cannam@162 5722
cannam@162 5723 fi
cannam@162 5724 fi
cannam@162 5725 ac_ct_AR=$ac_cv_prog_ac_ct_AR
cannam@162 5726 if test -n "$ac_ct_AR"; then
cannam@162 5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cannam@162 5728 $as_echo "$ac_ct_AR" >&6; }
cannam@162 5729 else
cannam@162 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 5731 $as_echo "no" >&6; }
cannam@162 5732 fi
cannam@162 5733
cannam@162 5734
cannam@162 5735 test -n "$ac_ct_AR" && break
cannam@162 5736 done
cannam@162 5737
cannam@162 5738 if test "x$ac_ct_AR" = x; then
cannam@162 5739 AR="false"
cannam@162 5740 else
cannam@162 5741 case $cross_compiling:$ac_tool_warned in
cannam@162 5742 yes:)
cannam@162 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@162 5744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@162 5745 ac_tool_warned=yes ;;
cannam@162 5746 esac
cannam@162 5747 AR=$ac_ct_AR
cannam@162 5748 fi
cannam@162 5749 fi
cannam@162 5750
cannam@162 5751 : ${AR=ar}
cannam@162 5752 : ${AR_FLAGS=cru}
cannam@162 5753
cannam@162 5754
cannam@162 5755
cannam@162 5756
cannam@162 5757
cannam@162 5758
cannam@162 5759
cannam@162 5760
cannam@162 5761
cannam@162 5762
cannam@162 5763
cannam@162 5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
cannam@162 5765 $as_echo_n "checking for archiver @FILE support... " >&6; }
cannam@162 5766 if ${lt_cv_ar_at_file+:} false; then :
cannam@162 5767 $as_echo_n "(cached) " >&6
cannam@162 5768 else
cannam@162 5769 lt_cv_ar_at_file=no
cannam@162 5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 5771 /* end confdefs.h. */
cannam@162 5772
cannam@162 5773 int
cannam@162 5774 main ()
cannam@162 5775 {
cannam@162 5776
cannam@162 5777 ;
cannam@162 5778 return 0;
cannam@162 5779 }
cannam@162 5780 _ACEOF
cannam@162 5781 if ac_fn_c_try_compile "$LINENO"; then :
cannam@162 5782 echo conftest.$ac_objext > conftest.lst
cannam@162 5783 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
cannam@162 5784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
cannam@162 5785 (eval $lt_ar_try) 2>&5
cannam@162 5786 ac_status=$?
cannam@162 5787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 5788 test $ac_status = 0; }
cannam@162 5789 if test "$ac_status" -eq 0; then
cannam@162 5790 # Ensure the archiver fails upon bogus file names.
cannam@162 5791 rm -f conftest.$ac_objext libconftest.a
cannam@162 5792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
cannam@162 5793 (eval $lt_ar_try) 2>&5
cannam@162 5794 ac_status=$?
cannam@162 5795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 5796 test $ac_status = 0; }
cannam@162 5797 if test "$ac_status" -ne 0; then
cannam@162 5798 lt_cv_ar_at_file=@
cannam@162 5799 fi
cannam@162 5800 fi
cannam@162 5801 rm -f conftest.* libconftest.a
cannam@162 5802
cannam@162 5803 fi
cannam@162 5804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@162 5805
cannam@162 5806 fi
cannam@162 5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
cannam@162 5808 $as_echo "$lt_cv_ar_at_file" >&6; }
cannam@162 5809
cannam@162 5810 if test "x$lt_cv_ar_at_file" = xno; then
cannam@162 5811 archiver_list_spec=
cannam@162 5812 else
cannam@162 5813 archiver_list_spec=$lt_cv_ar_at_file
cannam@162 5814 fi
cannam@162 5815
cannam@162 5816
cannam@162 5817
cannam@162 5818
cannam@162 5819
cannam@162 5820
cannam@162 5821
cannam@162 5822 if test -n "$ac_tool_prefix"; then
cannam@162 5823 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
cannam@162 5824 set dummy ${ac_tool_prefix}strip; ac_word=$2
cannam@162 5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 5826 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 5827 if ${ac_cv_prog_STRIP+:} false; then :
cannam@162 5828 $as_echo_n "(cached) " >&6
cannam@162 5829 else
cannam@162 5830 if test -n "$STRIP"; then
cannam@162 5831 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
cannam@162 5832 else
cannam@162 5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 5834 for as_dir in $PATH
cannam@162 5835 do
cannam@162 5836 IFS=$as_save_IFS
cannam@162 5837 test -z "$as_dir" && as_dir=.
cannam@162 5838 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 5839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 5840 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cannam@162 5841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 5842 break 2
cannam@162 5843 fi
cannam@162 5844 done
cannam@162 5845 done
cannam@162 5846 IFS=$as_save_IFS
cannam@162 5847
cannam@162 5848 fi
cannam@162 5849 fi
cannam@162 5850 STRIP=$ac_cv_prog_STRIP
cannam@162 5851 if test -n "$STRIP"; then
cannam@162 5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cannam@162 5853 $as_echo "$STRIP" >&6; }
cannam@162 5854 else
cannam@162 5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 5856 $as_echo "no" >&6; }
cannam@162 5857 fi
cannam@162 5858
cannam@162 5859
cannam@162 5860 fi
cannam@162 5861 if test -z "$ac_cv_prog_STRIP"; then
cannam@162 5862 ac_ct_STRIP=$STRIP
cannam@162 5863 # Extract the first word of "strip", so it can be a program name with args.
cannam@162 5864 set dummy strip; ac_word=$2
cannam@162 5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 5866 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 5867 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cannam@162 5868 $as_echo_n "(cached) " >&6
cannam@162 5869 else
cannam@162 5870 if test -n "$ac_ct_STRIP"; then
cannam@162 5871 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
cannam@162 5872 else
cannam@162 5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 5874 for as_dir in $PATH
cannam@162 5875 do
cannam@162 5876 IFS=$as_save_IFS
cannam@162 5877 test -z "$as_dir" && as_dir=.
cannam@162 5878 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 5879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 5880 ac_cv_prog_ac_ct_STRIP="strip"
cannam@162 5881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 5882 break 2
cannam@162 5883 fi
cannam@162 5884 done
cannam@162 5885 done
cannam@162 5886 IFS=$as_save_IFS
cannam@162 5887
cannam@162 5888 fi
cannam@162 5889 fi
cannam@162 5890 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
cannam@162 5891 if test -n "$ac_ct_STRIP"; then
cannam@162 5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cannam@162 5893 $as_echo "$ac_ct_STRIP" >&6; }
cannam@162 5894 else
cannam@162 5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 5896 $as_echo "no" >&6; }
cannam@162 5897 fi
cannam@162 5898
cannam@162 5899 if test "x$ac_ct_STRIP" = x; then
cannam@162 5900 STRIP=":"
cannam@162 5901 else
cannam@162 5902 case $cross_compiling:$ac_tool_warned in
cannam@162 5903 yes:)
cannam@162 5904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@162 5905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@162 5906 ac_tool_warned=yes ;;
cannam@162 5907 esac
cannam@162 5908 STRIP=$ac_ct_STRIP
cannam@162 5909 fi
cannam@162 5910 else
cannam@162 5911 STRIP="$ac_cv_prog_STRIP"
cannam@162 5912 fi
cannam@162 5913
cannam@162 5914 test -z "$STRIP" && STRIP=:
cannam@162 5915
cannam@162 5916
cannam@162 5917
cannam@162 5918
cannam@162 5919
cannam@162 5920
cannam@162 5921 if test -n "$ac_tool_prefix"; then
cannam@162 5922 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
cannam@162 5923 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cannam@162 5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 5925 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 5926 if ${ac_cv_prog_RANLIB+:} false; then :
cannam@162 5927 $as_echo_n "(cached) " >&6
cannam@162 5928 else
cannam@162 5929 if test -n "$RANLIB"; then
cannam@162 5930 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
cannam@162 5931 else
cannam@162 5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 5933 for as_dir in $PATH
cannam@162 5934 do
cannam@162 5935 IFS=$as_save_IFS
cannam@162 5936 test -z "$as_dir" && as_dir=.
cannam@162 5937 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 5938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 5939 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cannam@162 5940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 5941 break 2
cannam@162 5942 fi
cannam@162 5943 done
cannam@162 5944 done
cannam@162 5945 IFS=$as_save_IFS
cannam@162 5946
cannam@162 5947 fi
cannam@162 5948 fi
cannam@162 5949 RANLIB=$ac_cv_prog_RANLIB
cannam@162 5950 if test -n "$RANLIB"; then
cannam@162 5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cannam@162 5952 $as_echo "$RANLIB" >&6; }
cannam@162 5953 else
cannam@162 5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 5955 $as_echo "no" >&6; }
cannam@162 5956 fi
cannam@162 5957
cannam@162 5958
cannam@162 5959 fi
cannam@162 5960 if test -z "$ac_cv_prog_RANLIB"; then
cannam@162 5961 ac_ct_RANLIB=$RANLIB
cannam@162 5962 # Extract the first word of "ranlib", so it can be a program name with args.
cannam@162 5963 set dummy ranlib; ac_word=$2
cannam@162 5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 5965 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 5966 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cannam@162 5967 $as_echo_n "(cached) " >&6
cannam@162 5968 else
cannam@162 5969 if test -n "$ac_ct_RANLIB"; then
cannam@162 5970 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
cannam@162 5971 else
cannam@162 5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 5973 for as_dir in $PATH
cannam@162 5974 do
cannam@162 5975 IFS=$as_save_IFS
cannam@162 5976 test -z "$as_dir" && as_dir=.
cannam@162 5977 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 5978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 5979 ac_cv_prog_ac_ct_RANLIB="ranlib"
cannam@162 5980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 5981 break 2
cannam@162 5982 fi
cannam@162 5983 done
cannam@162 5984 done
cannam@162 5985 IFS=$as_save_IFS
cannam@162 5986
cannam@162 5987 fi
cannam@162 5988 fi
cannam@162 5989 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
cannam@162 5990 if test -n "$ac_ct_RANLIB"; then
cannam@162 5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cannam@162 5992 $as_echo "$ac_ct_RANLIB" >&6; }
cannam@162 5993 else
cannam@162 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 5995 $as_echo "no" >&6; }
cannam@162 5996 fi
cannam@162 5997
cannam@162 5998 if test "x$ac_ct_RANLIB" = x; then
cannam@162 5999 RANLIB=":"
cannam@162 6000 else
cannam@162 6001 case $cross_compiling:$ac_tool_warned in
cannam@162 6002 yes:)
cannam@162 6003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@162 6004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@162 6005 ac_tool_warned=yes ;;
cannam@162 6006 esac
cannam@162 6007 RANLIB=$ac_ct_RANLIB
cannam@162 6008 fi
cannam@162 6009 else
cannam@162 6010 RANLIB="$ac_cv_prog_RANLIB"
cannam@162 6011 fi
cannam@162 6012
cannam@162 6013 test -z "$RANLIB" && RANLIB=:
cannam@162 6014
cannam@162 6015
cannam@162 6016
cannam@162 6017
cannam@162 6018
cannam@162 6019
cannam@162 6020 # Determine commands to create old-style static archives.
cannam@162 6021 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
cannam@162 6022 old_postinstall_cmds='chmod 644 $oldlib'
cannam@162 6023 old_postuninstall_cmds=
cannam@162 6024
cannam@162 6025 if test -n "$RANLIB"; then
cannam@162 6026 case $host_os in
cannam@162 6027 openbsd*)
cannam@162 6028 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cannam@162 6029 ;;
cannam@162 6030 *)
cannam@162 6031 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cannam@162 6032 ;;
cannam@162 6033 esac
cannam@162 6034 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cannam@162 6035 fi
cannam@162 6036
cannam@162 6037 case $host_os in
cannam@162 6038 darwin*)
cannam@162 6039 lock_old_archive_extraction=yes ;;
cannam@162 6040 *)
cannam@162 6041 lock_old_archive_extraction=no ;;
cannam@162 6042 esac
cannam@162 6043
cannam@162 6044
cannam@162 6045
cannam@162 6046
cannam@162 6047
cannam@162 6048
cannam@162 6049
cannam@162 6050
cannam@162 6051
cannam@162 6052
cannam@162 6053
cannam@162 6054
cannam@162 6055
cannam@162 6056
cannam@162 6057
cannam@162 6058
cannam@162 6059
cannam@162 6060
cannam@162 6061
cannam@162 6062
cannam@162 6063
cannam@162 6064 for ac_prog in gawk mawk nawk awk
cannam@162 6065 do
cannam@162 6066 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@162 6067 set dummy $ac_prog; ac_word=$2
cannam@162 6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 6069 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 6070 if ${ac_cv_prog_AWK+:} false; then :
cannam@162 6071 $as_echo_n "(cached) " >&6
cannam@162 6072 else
cannam@162 6073 if test -n "$AWK"; then
cannam@162 6074 ac_cv_prog_AWK="$AWK" # Let the user override the test.
cannam@162 6075 else
cannam@162 6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 6077 for as_dir in $PATH
cannam@162 6078 do
cannam@162 6079 IFS=$as_save_IFS
cannam@162 6080 test -z "$as_dir" && as_dir=.
cannam@162 6081 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 6082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 6083 ac_cv_prog_AWK="$ac_prog"
cannam@162 6084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 6085 break 2
cannam@162 6086 fi
cannam@162 6087 done
cannam@162 6088 done
cannam@162 6089 IFS=$as_save_IFS
cannam@162 6090
cannam@162 6091 fi
cannam@162 6092 fi
cannam@162 6093 AWK=$ac_cv_prog_AWK
cannam@162 6094 if test -n "$AWK"; then
cannam@162 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cannam@162 6096 $as_echo "$AWK" >&6; }
cannam@162 6097 else
cannam@162 6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 6099 $as_echo "no" >&6; }
cannam@162 6100 fi
cannam@162 6101
cannam@162 6102
cannam@162 6103 test -n "$AWK" && break
cannam@162 6104 done
cannam@162 6105
cannam@162 6106
cannam@162 6107
cannam@162 6108
cannam@162 6109
cannam@162 6110
cannam@162 6111
cannam@162 6112
cannam@162 6113
cannam@162 6114
cannam@162 6115
cannam@162 6116
cannam@162 6117
cannam@162 6118
cannam@162 6119
cannam@162 6120
cannam@162 6121
cannam@162 6122
cannam@162 6123
cannam@162 6124 # If no C compiler was specified, use CC.
cannam@162 6125 LTCC=${LTCC-"$CC"}
cannam@162 6126
cannam@162 6127 # If no C compiler flags were specified, use CFLAGS.
cannam@162 6128 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cannam@162 6129
cannam@162 6130 # Allow CC to be a program name with arguments.
cannam@162 6131 compiler=$CC
cannam@162 6132
cannam@162 6133
cannam@162 6134 # Check for command to grab the raw symbol name followed by C symbol from nm.
cannam@162 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cannam@162 6136 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cannam@162 6137 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cannam@162 6138 $as_echo_n "(cached) " >&6
cannam@162 6139 else
cannam@162 6140
cannam@162 6141 # These are sane defaults that work on at least a few old systems.
cannam@162 6142 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
cannam@162 6143
cannam@162 6144 # Character class describing NM global symbol codes.
cannam@162 6145 symcode='[BCDEGRST]'
cannam@162 6146
cannam@162 6147 # Regexp to match symbols that can be accessed directly from C.
cannam@162 6148 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
cannam@162 6149
cannam@162 6150 # Define system-specific variables.
cannam@162 6151 case $host_os in
cannam@162 6152 aix*)
cannam@162 6153 symcode='[BCDT]'
cannam@162 6154 ;;
cannam@162 6155 cygwin* | mingw* | pw32* | cegcc*)
cannam@162 6156 symcode='[ABCDGISTW]'
cannam@162 6157 ;;
cannam@162 6158 hpux*)
cannam@162 6159 if test "$host_cpu" = ia64; then
cannam@162 6160 symcode='[ABCDEGRST]'
cannam@162 6161 fi
cannam@162 6162 ;;
cannam@162 6163 irix* | nonstopux*)
cannam@162 6164 symcode='[BCDEGRST]'
cannam@162 6165 ;;
cannam@162 6166 osf*)
cannam@162 6167 symcode='[BCDEGQRST]'
cannam@162 6168 ;;
cannam@162 6169 solaris*)
cannam@162 6170 symcode='[BDRT]'
cannam@162 6171 ;;
cannam@162 6172 sco3.2v5*)
cannam@162 6173 symcode='[DT]'
cannam@162 6174 ;;
cannam@162 6175 sysv4.2uw2*)
cannam@162 6176 symcode='[DT]'
cannam@162 6177 ;;
cannam@162 6178 sysv5* | sco5v6* | unixware* | OpenUNIX*)
cannam@162 6179 symcode='[ABDT]'
cannam@162 6180 ;;
cannam@162 6181 sysv4)
cannam@162 6182 symcode='[DFNSTU]'
cannam@162 6183 ;;
cannam@162 6184 esac
cannam@162 6185
cannam@162 6186 # If we're using GNU nm, then use its standard symbol codes.
cannam@162 6187 case `$NM -V 2>&1` in
cannam@162 6188 *GNU* | *'with BFD'*)
cannam@162 6189 symcode='[ABCDGIRSTW]' ;;
cannam@162 6190 esac
cannam@162 6191
cannam@162 6192 # Transform an extracted symbol line into a proper C declaration.
cannam@162 6193 # Some systems (esp. on ia64) link data and code symbols differently,
cannam@162 6194 # so use this general approach.
cannam@162 6195 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
cannam@162 6196
cannam@162 6197 # Transform an extracted symbol line into symbol name and symbol address
cannam@162 6198 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
cannam@162 6199 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
cannam@162 6200
cannam@162 6201 # Handle CRLF in mingw tool chain
cannam@162 6202 opt_cr=
cannam@162 6203 case $build_os in
cannam@162 6204 mingw*)
cannam@162 6205 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
cannam@162 6206 ;;
cannam@162 6207 esac
cannam@162 6208
cannam@162 6209 # Try without a prefix underscore, then with it.
cannam@162 6210 for ac_symprfx in "" "_"; do
cannam@162 6211
cannam@162 6212 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
cannam@162 6213 symxfrm="\\1 $ac_symprfx\\2 \\2"
cannam@162 6214
cannam@162 6215 # Write the raw and C identifiers.
cannam@162 6216 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
cannam@162 6217 # Fake it for dumpbin and say T for any non-static function
cannam@162 6218 # and D for any global variable.
cannam@162 6219 # Also find C++ and __fastcall symbols from MSVC++,
cannam@162 6220 # which start with @ or ?.
cannam@162 6221 lt_cv_sys_global_symbol_pipe="$AWK '"\
cannam@162 6222 " {last_section=section; section=\$ 3};"\
cannam@162 6223 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cannam@162 6224 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
cannam@162 6225 " \$ 0!~/External *\|/{next};"\
cannam@162 6226 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
cannam@162 6227 " {if(hide[section]) next};"\
cannam@162 6228 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
cannam@162 6229 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
cannam@162 6230 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
cannam@162 6231 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
cannam@162 6232 " ' prfx=^$ac_symprfx"
cannam@162 6233 else
cannam@162 6234 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
cannam@162 6235 fi
cannam@162 6236 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cannam@162 6237
cannam@162 6238 # Check to see that the pipe works correctly.
cannam@162 6239 pipe_works=no
cannam@162 6240
cannam@162 6241 rm -f conftest*
cannam@162 6242 cat > conftest.$ac_ext <<_LT_EOF
cannam@162 6243 #ifdef __cplusplus
cannam@162 6244 extern "C" {
cannam@162 6245 #endif
cannam@162 6246 char nm_test_var;
cannam@162 6247 void nm_test_func(void);
cannam@162 6248 void nm_test_func(void){}
cannam@162 6249 #ifdef __cplusplus
cannam@162 6250 }
cannam@162 6251 #endif
cannam@162 6252 int main(){nm_test_var='a';nm_test_func();return(0);}
cannam@162 6253 _LT_EOF
cannam@162 6254
cannam@162 6255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@162 6256 (eval $ac_compile) 2>&5
cannam@162 6257 ac_status=$?
cannam@162 6258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 6259 test $ac_status = 0; }; then
cannam@162 6260 # Now try to grab the symbols.
cannam@162 6261 nlist=conftest.nm
cannam@162 6262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
cannam@162 6263 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cannam@162 6264 ac_status=$?
cannam@162 6265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 6266 test $ac_status = 0; } && test -s "$nlist"; then
cannam@162 6267 # Try sorting and uniquifying the output.
cannam@162 6268 if sort "$nlist" | uniq > "$nlist"T; then
cannam@162 6269 mv -f "$nlist"T "$nlist"
cannam@162 6270 else
cannam@162 6271 rm -f "$nlist"T
cannam@162 6272 fi
cannam@162 6273
cannam@162 6274 # Make sure that we snagged all the symbols we need.
cannam@162 6275 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
cannam@162 6276 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
cannam@162 6277 cat <<_LT_EOF > conftest.$ac_ext
cannam@162 6278 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
cannam@162 6279 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
cannam@162 6280 /* DATA imports from DLLs on WIN32 con't be const, because runtime
cannam@162 6281 relocations are performed -- see ld's documentation on pseudo-relocs. */
cannam@162 6282 # define LT_DLSYM_CONST
cannam@162 6283 #elif defined(__osf__)
cannam@162 6284 /* This system does not cope well with relocations in const data. */
cannam@162 6285 # define LT_DLSYM_CONST
cannam@162 6286 #else
cannam@162 6287 # define LT_DLSYM_CONST const
cannam@162 6288 #endif
cannam@162 6289
cannam@162 6290 #ifdef __cplusplus
cannam@162 6291 extern "C" {
cannam@162 6292 #endif
cannam@162 6293
cannam@162 6294 _LT_EOF
cannam@162 6295 # Now generate the symbol file.
cannam@162 6296 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
cannam@162 6297
cannam@162 6298 cat <<_LT_EOF >> conftest.$ac_ext
cannam@162 6299
cannam@162 6300 /* The mapping between symbol names and symbols. */
cannam@162 6301 LT_DLSYM_CONST struct {
cannam@162 6302 const char *name;
cannam@162 6303 void *address;
cannam@162 6304 }
cannam@162 6305 lt__PROGRAM__LTX_preloaded_symbols[] =
cannam@162 6306 {
cannam@162 6307 { "@PROGRAM@", (void *) 0 },
cannam@162 6308 _LT_EOF
cannam@162 6309 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
cannam@162 6310 cat <<\_LT_EOF >> conftest.$ac_ext
cannam@162 6311 {0, (void *) 0}
cannam@162 6312 };
cannam@162 6313
cannam@162 6314 /* This works around a problem in FreeBSD linker */
cannam@162 6315 #ifdef FREEBSD_WORKAROUND
cannam@162 6316 static const void *lt_preloaded_setup() {
cannam@162 6317 return lt__PROGRAM__LTX_preloaded_symbols;
cannam@162 6318 }
cannam@162 6319 #endif
cannam@162 6320
cannam@162 6321 #ifdef __cplusplus
cannam@162 6322 }
cannam@162 6323 #endif
cannam@162 6324 _LT_EOF
cannam@162 6325 # Now try linking the two files.
cannam@162 6326 mv conftest.$ac_objext conftstm.$ac_objext
cannam@162 6327 lt_globsym_save_LIBS=$LIBS
cannam@162 6328 lt_globsym_save_CFLAGS=$CFLAGS
cannam@162 6329 LIBS="conftstm.$ac_objext"
cannam@162 6330 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cannam@162 6331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cannam@162 6332 (eval $ac_link) 2>&5
cannam@162 6333 ac_status=$?
cannam@162 6334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 6335 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cannam@162 6336 pipe_works=yes
cannam@162 6337 fi
cannam@162 6338 LIBS=$lt_globsym_save_LIBS
cannam@162 6339 CFLAGS=$lt_globsym_save_CFLAGS
cannam@162 6340 else
cannam@162 6341 echo "cannot find nm_test_func in $nlist" >&5
cannam@162 6342 fi
cannam@162 6343 else
cannam@162 6344 echo "cannot find nm_test_var in $nlist" >&5
cannam@162 6345 fi
cannam@162 6346 else
cannam@162 6347 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
cannam@162 6348 fi
cannam@162 6349 else
cannam@162 6350 echo "$progname: failed program was:" >&5
cannam@162 6351 cat conftest.$ac_ext >&5
cannam@162 6352 fi
cannam@162 6353 rm -rf conftest* conftst*
cannam@162 6354
cannam@162 6355 # Do not use the global_symbol_pipe unless it works.
cannam@162 6356 if test "$pipe_works" = yes; then
cannam@162 6357 break
cannam@162 6358 else
cannam@162 6359 lt_cv_sys_global_symbol_pipe=
cannam@162 6360 fi
cannam@162 6361 done
cannam@162 6362
cannam@162 6363 fi
cannam@162 6364
cannam@162 6365 if test -z "$lt_cv_sys_global_symbol_pipe"; then
cannam@162 6366 lt_cv_sys_global_symbol_to_cdecl=
cannam@162 6367 fi
cannam@162 6368 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cannam@162 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cannam@162 6370 $as_echo "failed" >&6; }
cannam@162 6371 else
cannam@162 6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cannam@162 6373 $as_echo "ok" >&6; }
cannam@162 6374 fi
cannam@162 6375
cannam@162 6376 # Response file support.
cannam@162 6377 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
cannam@162 6378 nm_file_list_spec='@'
cannam@162 6379 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
cannam@162 6380 nm_file_list_spec='@'
cannam@162 6381 fi
cannam@162 6382
cannam@162 6383
cannam@162 6384
cannam@162 6385
cannam@162 6386
cannam@162 6387
cannam@162 6388
cannam@162 6389
cannam@162 6390
cannam@162 6391
cannam@162 6392
cannam@162 6393
cannam@162 6394
cannam@162 6395
cannam@162 6396
cannam@162 6397
cannam@162 6398
cannam@162 6399
cannam@162 6400
cannam@162 6401
cannam@162 6402
cannam@162 6403
cannam@162 6404
cannam@162 6405
cannam@162 6406
cannam@162 6407
cannam@162 6408
cannam@162 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
cannam@162 6410 $as_echo_n "checking for sysroot... " >&6; }
cannam@162 6411
cannam@162 6412 # Check whether --with-sysroot was given.
cannam@162 6413 if test "${with_sysroot+set}" = set; then :
cannam@162 6414 withval=$with_sysroot;
cannam@162 6415 else
cannam@162 6416 with_sysroot=no
cannam@162 6417 fi
cannam@162 6418
cannam@162 6419
cannam@162 6420 lt_sysroot=
cannam@162 6421 case ${with_sysroot} in #(
cannam@162 6422 yes)
cannam@162 6423 if test "$GCC" = yes; then
cannam@162 6424 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
cannam@162 6425 fi
cannam@162 6426 ;; #(
cannam@162 6427 /*)
cannam@162 6428 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
cannam@162 6429 ;; #(
cannam@162 6430 no|'')
cannam@162 6431 ;; #(
cannam@162 6432 *)
cannam@162 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
cannam@162 6434 $as_echo "${with_sysroot}" >&6; }
cannam@162 6435 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
cannam@162 6436 ;;
cannam@162 6437 esac
cannam@162 6438
cannam@162 6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
cannam@162 6440 $as_echo "${lt_sysroot:-no}" >&6; }
cannam@162 6441
cannam@162 6442
cannam@162 6443
cannam@162 6444
cannam@162 6445
cannam@162 6446 # Check whether --enable-libtool-lock was given.
cannam@162 6447 if test "${enable_libtool_lock+set}" = set; then :
cannam@162 6448 enableval=$enable_libtool_lock;
cannam@162 6449 fi
cannam@162 6450
cannam@162 6451 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
cannam@162 6452
cannam@162 6453 # Some flags need to be propagated to the compiler or linker for good
cannam@162 6454 # libtool support.
cannam@162 6455 case $host in
cannam@162 6456 ia64-*-hpux*)
cannam@162 6457 # Find out which ABI we are using.
cannam@162 6458 echo 'int i;' > conftest.$ac_ext
cannam@162 6459 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@162 6460 (eval $ac_compile) 2>&5
cannam@162 6461 ac_status=$?
cannam@162 6462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 6463 test $ac_status = 0; }; then
cannam@162 6464 case `/usr/bin/file conftest.$ac_objext` in
cannam@162 6465 *ELF-32*)
cannam@162 6466 HPUX_IA64_MODE="32"
cannam@162 6467 ;;
cannam@162 6468 *ELF-64*)
cannam@162 6469 HPUX_IA64_MODE="64"
cannam@162 6470 ;;
cannam@162 6471 esac
cannam@162 6472 fi
cannam@162 6473 rm -rf conftest*
cannam@162 6474 ;;
cannam@162 6475 *-*-irix6*)
cannam@162 6476 # Find out which ABI we are using.
cannam@162 6477 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cannam@162 6478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@162 6479 (eval $ac_compile) 2>&5
cannam@162 6480 ac_status=$?
cannam@162 6481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 6482 test $ac_status = 0; }; then
cannam@162 6483 if test "$lt_cv_prog_gnu_ld" = yes; then
cannam@162 6484 case `/usr/bin/file conftest.$ac_objext` in
cannam@162 6485 *32-bit*)
cannam@162 6486 LD="${LD-ld} -melf32bsmip"
cannam@162 6487 ;;
cannam@162 6488 *N32*)
cannam@162 6489 LD="${LD-ld} -melf32bmipn32"
cannam@162 6490 ;;
cannam@162 6491 *64-bit*)
cannam@162 6492 LD="${LD-ld} -melf64bmip"
cannam@162 6493 ;;
cannam@162 6494 esac
cannam@162 6495 else
cannam@162 6496 case `/usr/bin/file conftest.$ac_objext` in
cannam@162 6497 *32-bit*)
cannam@162 6498 LD="${LD-ld} -32"
cannam@162 6499 ;;
cannam@162 6500 *N32*)
cannam@162 6501 LD="${LD-ld} -n32"
cannam@162 6502 ;;
cannam@162 6503 *64-bit*)
cannam@162 6504 LD="${LD-ld} -64"
cannam@162 6505 ;;
cannam@162 6506 esac
cannam@162 6507 fi
cannam@162 6508 fi
cannam@162 6509 rm -rf conftest*
cannam@162 6510 ;;
cannam@162 6511
cannam@162 6512 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cannam@162 6513 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
cannam@162 6514 # Find out which ABI we are using.
cannam@162 6515 echo 'int i;' > conftest.$ac_ext
cannam@162 6516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@162 6517 (eval $ac_compile) 2>&5
cannam@162 6518 ac_status=$?
cannam@162 6519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 6520 test $ac_status = 0; }; then
cannam@162 6521 case `/usr/bin/file conftest.o` in
cannam@162 6522 *32-bit*)
cannam@162 6523 case $host in
cannam@162 6524 x86_64-*kfreebsd*-gnu)
cannam@162 6525 LD="${LD-ld} -m elf_i386_fbsd"
cannam@162 6526 ;;
cannam@162 6527 x86_64-*linux*)
cannam@162 6528 case `/usr/bin/file conftest.o` in
cannam@162 6529 *x86-64*)
cannam@162 6530 LD="${LD-ld} -m elf32_x86_64"
cannam@162 6531 ;;
cannam@162 6532 *)
cannam@162 6533 LD="${LD-ld} -m elf_i386"
cannam@162 6534 ;;
cannam@162 6535 esac
cannam@162 6536 ;;
cannam@162 6537 powerpc64le-*)
cannam@162 6538 LD="${LD-ld} -m elf32lppclinux"
cannam@162 6539 ;;
cannam@162 6540 powerpc64-*)
cannam@162 6541 LD="${LD-ld} -m elf32ppclinux"
cannam@162 6542 ;;
cannam@162 6543 s390x-*linux*)
cannam@162 6544 LD="${LD-ld} -m elf_s390"
cannam@162 6545 ;;
cannam@162 6546 sparc64-*linux*)
cannam@162 6547 LD="${LD-ld} -m elf32_sparc"
cannam@162 6548 ;;
cannam@162 6549 esac
cannam@162 6550 ;;
cannam@162 6551 *64-bit*)
cannam@162 6552 case $host in
cannam@162 6553 x86_64-*kfreebsd*-gnu)
cannam@162 6554 LD="${LD-ld} -m elf_x86_64_fbsd"
cannam@162 6555 ;;
cannam@162 6556 x86_64-*linux*)
cannam@162 6557 LD="${LD-ld} -m elf_x86_64"
cannam@162 6558 ;;
cannam@162 6559 powerpcle-*)
cannam@162 6560 LD="${LD-ld} -m elf64lppc"
cannam@162 6561 ;;
cannam@162 6562 powerpc-*)
cannam@162 6563 LD="${LD-ld} -m elf64ppc"
cannam@162 6564 ;;
cannam@162 6565 s390*-*linux*|s390*-*tpf*)
cannam@162 6566 LD="${LD-ld} -m elf64_s390"
cannam@162 6567 ;;
cannam@162 6568 sparc*-*linux*)
cannam@162 6569 LD="${LD-ld} -m elf64_sparc"
cannam@162 6570 ;;
cannam@162 6571 esac
cannam@162 6572 ;;
cannam@162 6573 esac
cannam@162 6574 fi
cannam@162 6575 rm -rf conftest*
cannam@162 6576 ;;
cannam@162 6577
cannam@162 6578 *-*-sco3.2v5*)
cannam@162 6579 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
cannam@162 6580 SAVE_CFLAGS="$CFLAGS"
cannam@162 6581 CFLAGS="$CFLAGS -belf"
cannam@162 6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cannam@162 6583 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cannam@162 6584 if ${lt_cv_cc_needs_belf+:} false; then :
cannam@162 6585 $as_echo_n "(cached) " >&6
cannam@162 6586 else
cannam@162 6587 ac_ext=c
cannam@162 6588 ac_cpp='$CPP $CPPFLAGS'
cannam@162 6589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@162 6590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@162 6591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@162 6592
cannam@162 6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 6594 /* end confdefs.h. */
cannam@162 6595
cannam@162 6596 int
cannam@162 6597 main ()
cannam@162 6598 {
cannam@162 6599
cannam@162 6600 ;
cannam@162 6601 return 0;
cannam@162 6602 }
cannam@162 6603 _ACEOF
cannam@162 6604 if ac_fn_c_try_link "$LINENO"; then :
cannam@162 6605 lt_cv_cc_needs_belf=yes
cannam@162 6606 else
cannam@162 6607 lt_cv_cc_needs_belf=no
cannam@162 6608 fi
cannam@162 6609 rm -f core conftest.err conftest.$ac_objext \
cannam@162 6610 conftest$ac_exeext conftest.$ac_ext
cannam@162 6611 ac_ext=c
cannam@162 6612 ac_cpp='$CPP $CPPFLAGS'
cannam@162 6613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@162 6614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@162 6615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@162 6616
cannam@162 6617 fi
cannam@162 6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cannam@162 6619 $as_echo "$lt_cv_cc_needs_belf" >&6; }
cannam@162 6620 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
cannam@162 6621 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
cannam@162 6622 CFLAGS="$SAVE_CFLAGS"
cannam@162 6623 fi
cannam@162 6624 ;;
cannam@162 6625 *-*solaris*)
cannam@162 6626 # Find out which ABI we are using.
cannam@162 6627 echo 'int i;' > conftest.$ac_ext
cannam@162 6628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@162 6629 (eval $ac_compile) 2>&5
cannam@162 6630 ac_status=$?
cannam@162 6631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 6632 test $ac_status = 0; }; then
cannam@162 6633 case `/usr/bin/file conftest.o` in
cannam@162 6634 *64-bit*)
cannam@162 6635 case $lt_cv_prog_gnu_ld in
cannam@162 6636 yes*)
cannam@162 6637 case $host in
cannam@162 6638 i?86-*-solaris*)
cannam@162 6639 LD="${LD-ld} -m elf_x86_64"
cannam@162 6640 ;;
cannam@162 6641 sparc*-*-solaris*)
cannam@162 6642 LD="${LD-ld} -m elf64_sparc"
cannam@162 6643 ;;
cannam@162 6644 esac
cannam@162 6645 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
cannam@162 6646 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
cannam@162 6647 LD="${LD-ld}_sol2"
cannam@162 6648 fi
cannam@162 6649 ;;
cannam@162 6650 *)
cannam@162 6651 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
cannam@162 6652 LD="${LD-ld} -64"
cannam@162 6653 fi
cannam@162 6654 ;;
cannam@162 6655 esac
cannam@162 6656 ;;
cannam@162 6657 esac
cannam@162 6658 fi
cannam@162 6659 rm -rf conftest*
cannam@162 6660 ;;
cannam@162 6661 esac
cannam@162 6662
cannam@162 6663 need_locks="$enable_libtool_lock"
cannam@162 6664
cannam@162 6665 if test -n "$ac_tool_prefix"; then
cannam@162 6666 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
cannam@162 6667 set dummy ${ac_tool_prefix}mt; ac_word=$2
cannam@162 6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 6669 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 6670 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
cannam@162 6671 $as_echo_n "(cached) " >&6
cannam@162 6672 else
cannam@162 6673 if test -n "$MANIFEST_TOOL"; then
cannam@162 6674 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
cannam@162 6675 else
cannam@162 6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 6677 for as_dir in $PATH
cannam@162 6678 do
cannam@162 6679 IFS=$as_save_IFS
cannam@162 6680 test -z "$as_dir" && as_dir=.
cannam@162 6681 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 6682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 6683 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
cannam@162 6684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 6685 break 2
cannam@162 6686 fi
cannam@162 6687 done
cannam@162 6688 done
cannam@162 6689 IFS=$as_save_IFS
cannam@162 6690
cannam@162 6691 fi
cannam@162 6692 fi
cannam@162 6693 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
cannam@162 6694 if test -n "$MANIFEST_TOOL"; then
cannam@162 6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
cannam@162 6696 $as_echo "$MANIFEST_TOOL" >&6; }
cannam@162 6697 else
cannam@162 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 6699 $as_echo "no" >&6; }
cannam@162 6700 fi
cannam@162 6701
cannam@162 6702
cannam@162 6703 fi
cannam@162 6704 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
cannam@162 6705 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
cannam@162 6706 # Extract the first word of "mt", so it can be a program name with args.
cannam@162 6707 set dummy mt; ac_word=$2
cannam@162 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 6709 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 6710 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
cannam@162 6711 $as_echo_n "(cached) " >&6
cannam@162 6712 else
cannam@162 6713 if test -n "$ac_ct_MANIFEST_TOOL"; then
cannam@162 6714 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
cannam@162 6715 else
cannam@162 6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 6717 for as_dir in $PATH
cannam@162 6718 do
cannam@162 6719 IFS=$as_save_IFS
cannam@162 6720 test -z "$as_dir" && as_dir=.
cannam@162 6721 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 6722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 6723 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
cannam@162 6724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 6725 break 2
cannam@162 6726 fi
cannam@162 6727 done
cannam@162 6728 done
cannam@162 6729 IFS=$as_save_IFS
cannam@162 6730
cannam@162 6731 fi
cannam@162 6732 fi
cannam@162 6733 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
cannam@162 6734 if test -n "$ac_ct_MANIFEST_TOOL"; then
cannam@162 6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
cannam@162 6736 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
cannam@162 6737 else
cannam@162 6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 6739 $as_echo "no" >&6; }
cannam@162 6740 fi
cannam@162 6741
cannam@162 6742 if test "x$ac_ct_MANIFEST_TOOL" = x; then
cannam@162 6743 MANIFEST_TOOL=":"
cannam@162 6744 else
cannam@162 6745 case $cross_compiling:$ac_tool_warned in
cannam@162 6746 yes:)
cannam@162 6747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@162 6748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@162 6749 ac_tool_warned=yes ;;
cannam@162 6750 esac
cannam@162 6751 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
cannam@162 6752 fi
cannam@162 6753 else
cannam@162 6754 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
cannam@162 6755 fi
cannam@162 6756
cannam@162 6757 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
cannam@162 6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
cannam@162 6759 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
cannam@162 6760 if ${lt_cv_path_mainfest_tool+:} false; then :
cannam@162 6761 $as_echo_n "(cached) " >&6
cannam@162 6762 else
cannam@162 6763 lt_cv_path_mainfest_tool=no
cannam@162 6764 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
cannam@162 6765 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
cannam@162 6766 cat conftest.err >&5
cannam@162 6767 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
cannam@162 6768 lt_cv_path_mainfest_tool=yes
cannam@162 6769 fi
cannam@162 6770 rm -f conftest*
cannam@162 6771 fi
cannam@162 6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
cannam@162 6773 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
cannam@162 6774 if test "x$lt_cv_path_mainfest_tool" != xyes; then
cannam@162 6775 MANIFEST_TOOL=:
cannam@162 6776 fi
cannam@162 6777
cannam@162 6778
cannam@162 6779
cannam@162 6780
cannam@162 6781
cannam@162 6782
cannam@162 6783 case $host_os in
cannam@162 6784 rhapsody* | darwin*)
cannam@162 6785 if test -n "$ac_tool_prefix"; then
cannam@162 6786 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
cannam@162 6787 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cannam@162 6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 6789 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 6790 if ${ac_cv_prog_DSYMUTIL+:} false; then :
cannam@162 6791 $as_echo_n "(cached) " >&6
cannam@162 6792 else
cannam@162 6793 if test -n "$DSYMUTIL"; then
cannam@162 6794 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
cannam@162 6795 else
cannam@162 6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 6797 for as_dir in $PATH
cannam@162 6798 do
cannam@162 6799 IFS=$as_save_IFS
cannam@162 6800 test -z "$as_dir" && as_dir=.
cannam@162 6801 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 6802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 6803 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cannam@162 6804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 6805 break 2
cannam@162 6806 fi
cannam@162 6807 done
cannam@162 6808 done
cannam@162 6809 IFS=$as_save_IFS
cannam@162 6810
cannam@162 6811 fi
cannam@162 6812 fi
cannam@162 6813 DSYMUTIL=$ac_cv_prog_DSYMUTIL
cannam@162 6814 if test -n "$DSYMUTIL"; then
cannam@162 6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cannam@162 6816 $as_echo "$DSYMUTIL" >&6; }
cannam@162 6817 else
cannam@162 6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 6819 $as_echo "no" >&6; }
cannam@162 6820 fi
cannam@162 6821
cannam@162 6822
cannam@162 6823 fi
cannam@162 6824 if test -z "$ac_cv_prog_DSYMUTIL"; then
cannam@162 6825 ac_ct_DSYMUTIL=$DSYMUTIL
cannam@162 6826 # Extract the first word of "dsymutil", so it can be a program name with args.
cannam@162 6827 set dummy dsymutil; ac_word=$2
cannam@162 6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 6829 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 6830 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cannam@162 6831 $as_echo_n "(cached) " >&6
cannam@162 6832 else
cannam@162 6833 if test -n "$ac_ct_DSYMUTIL"; then
cannam@162 6834 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
cannam@162 6835 else
cannam@162 6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 6837 for as_dir in $PATH
cannam@162 6838 do
cannam@162 6839 IFS=$as_save_IFS
cannam@162 6840 test -z "$as_dir" && as_dir=.
cannam@162 6841 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 6842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 6843 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cannam@162 6844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 6845 break 2
cannam@162 6846 fi
cannam@162 6847 done
cannam@162 6848 done
cannam@162 6849 IFS=$as_save_IFS
cannam@162 6850
cannam@162 6851 fi
cannam@162 6852 fi
cannam@162 6853 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
cannam@162 6854 if test -n "$ac_ct_DSYMUTIL"; then
cannam@162 6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cannam@162 6856 $as_echo "$ac_ct_DSYMUTIL" >&6; }
cannam@162 6857 else
cannam@162 6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 6859 $as_echo "no" >&6; }
cannam@162 6860 fi
cannam@162 6861
cannam@162 6862 if test "x$ac_ct_DSYMUTIL" = x; then
cannam@162 6863 DSYMUTIL=":"
cannam@162 6864 else
cannam@162 6865 case $cross_compiling:$ac_tool_warned in
cannam@162 6866 yes:)
cannam@162 6867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@162 6868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@162 6869 ac_tool_warned=yes ;;
cannam@162 6870 esac
cannam@162 6871 DSYMUTIL=$ac_ct_DSYMUTIL
cannam@162 6872 fi
cannam@162 6873 else
cannam@162 6874 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
cannam@162 6875 fi
cannam@162 6876
cannam@162 6877 if test -n "$ac_tool_prefix"; then
cannam@162 6878 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
cannam@162 6879 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cannam@162 6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 6881 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 6882 if ${ac_cv_prog_NMEDIT+:} false; then :
cannam@162 6883 $as_echo_n "(cached) " >&6
cannam@162 6884 else
cannam@162 6885 if test -n "$NMEDIT"; then
cannam@162 6886 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
cannam@162 6887 else
cannam@162 6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 6889 for as_dir in $PATH
cannam@162 6890 do
cannam@162 6891 IFS=$as_save_IFS
cannam@162 6892 test -z "$as_dir" && as_dir=.
cannam@162 6893 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 6894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 6895 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cannam@162 6896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 6897 break 2
cannam@162 6898 fi
cannam@162 6899 done
cannam@162 6900 done
cannam@162 6901 IFS=$as_save_IFS
cannam@162 6902
cannam@162 6903 fi
cannam@162 6904 fi
cannam@162 6905 NMEDIT=$ac_cv_prog_NMEDIT
cannam@162 6906 if test -n "$NMEDIT"; then
cannam@162 6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cannam@162 6908 $as_echo "$NMEDIT" >&6; }
cannam@162 6909 else
cannam@162 6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 6911 $as_echo "no" >&6; }
cannam@162 6912 fi
cannam@162 6913
cannam@162 6914
cannam@162 6915 fi
cannam@162 6916 if test -z "$ac_cv_prog_NMEDIT"; then
cannam@162 6917 ac_ct_NMEDIT=$NMEDIT
cannam@162 6918 # Extract the first word of "nmedit", so it can be a program name with args.
cannam@162 6919 set dummy nmedit; ac_word=$2
cannam@162 6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 6921 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 6922 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cannam@162 6923 $as_echo_n "(cached) " >&6
cannam@162 6924 else
cannam@162 6925 if test -n "$ac_ct_NMEDIT"; then
cannam@162 6926 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
cannam@162 6927 else
cannam@162 6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 6929 for as_dir in $PATH
cannam@162 6930 do
cannam@162 6931 IFS=$as_save_IFS
cannam@162 6932 test -z "$as_dir" && as_dir=.
cannam@162 6933 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 6934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 6935 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cannam@162 6936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 6937 break 2
cannam@162 6938 fi
cannam@162 6939 done
cannam@162 6940 done
cannam@162 6941 IFS=$as_save_IFS
cannam@162 6942
cannam@162 6943 fi
cannam@162 6944 fi
cannam@162 6945 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
cannam@162 6946 if test -n "$ac_ct_NMEDIT"; then
cannam@162 6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cannam@162 6948 $as_echo "$ac_ct_NMEDIT" >&6; }
cannam@162 6949 else
cannam@162 6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 6951 $as_echo "no" >&6; }
cannam@162 6952 fi
cannam@162 6953
cannam@162 6954 if test "x$ac_ct_NMEDIT" = x; then
cannam@162 6955 NMEDIT=":"
cannam@162 6956 else
cannam@162 6957 case $cross_compiling:$ac_tool_warned in
cannam@162 6958 yes:)
cannam@162 6959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@162 6960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@162 6961 ac_tool_warned=yes ;;
cannam@162 6962 esac
cannam@162 6963 NMEDIT=$ac_ct_NMEDIT
cannam@162 6964 fi
cannam@162 6965 else
cannam@162 6966 NMEDIT="$ac_cv_prog_NMEDIT"
cannam@162 6967 fi
cannam@162 6968
cannam@162 6969 if test -n "$ac_tool_prefix"; then
cannam@162 6970 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
cannam@162 6971 set dummy ${ac_tool_prefix}lipo; ac_word=$2
cannam@162 6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 6973 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 6974 if ${ac_cv_prog_LIPO+:} false; then :
cannam@162 6975 $as_echo_n "(cached) " >&6
cannam@162 6976 else
cannam@162 6977 if test -n "$LIPO"; then
cannam@162 6978 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
cannam@162 6979 else
cannam@162 6980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 6981 for as_dir in $PATH
cannam@162 6982 do
cannam@162 6983 IFS=$as_save_IFS
cannam@162 6984 test -z "$as_dir" && as_dir=.
cannam@162 6985 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 6986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 6987 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cannam@162 6988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 6989 break 2
cannam@162 6990 fi
cannam@162 6991 done
cannam@162 6992 done
cannam@162 6993 IFS=$as_save_IFS
cannam@162 6994
cannam@162 6995 fi
cannam@162 6996 fi
cannam@162 6997 LIPO=$ac_cv_prog_LIPO
cannam@162 6998 if test -n "$LIPO"; then
cannam@162 6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cannam@162 7000 $as_echo "$LIPO" >&6; }
cannam@162 7001 else
cannam@162 7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 7003 $as_echo "no" >&6; }
cannam@162 7004 fi
cannam@162 7005
cannam@162 7006
cannam@162 7007 fi
cannam@162 7008 if test -z "$ac_cv_prog_LIPO"; then
cannam@162 7009 ac_ct_LIPO=$LIPO
cannam@162 7010 # Extract the first word of "lipo", so it can be a program name with args.
cannam@162 7011 set dummy lipo; ac_word=$2
cannam@162 7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 7013 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 7014 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cannam@162 7015 $as_echo_n "(cached) " >&6
cannam@162 7016 else
cannam@162 7017 if test -n "$ac_ct_LIPO"; then
cannam@162 7018 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
cannam@162 7019 else
cannam@162 7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 7021 for as_dir in $PATH
cannam@162 7022 do
cannam@162 7023 IFS=$as_save_IFS
cannam@162 7024 test -z "$as_dir" && as_dir=.
cannam@162 7025 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 7026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 7027 ac_cv_prog_ac_ct_LIPO="lipo"
cannam@162 7028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 7029 break 2
cannam@162 7030 fi
cannam@162 7031 done
cannam@162 7032 done
cannam@162 7033 IFS=$as_save_IFS
cannam@162 7034
cannam@162 7035 fi
cannam@162 7036 fi
cannam@162 7037 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
cannam@162 7038 if test -n "$ac_ct_LIPO"; then
cannam@162 7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cannam@162 7040 $as_echo "$ac_ct_LIPO" >&6; }
cannam@162 7041 else
cannam@162 7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 7043 $as_echo "no" >&6; }
cannam@162 7044 fi
cannam@162 7045
cannam@162 7046 if test "x$ac_ct_LIPO" = x; then
cannam@162 7047 LIPO=":"
cannam@162 7048 else
cannam@162 7049 case $cross_compiling:$ac_tool_warned in
cannam@162 7050 yes:)
cannam@162 7051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@162 7052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@162 7053 ac_tool_warned=yes ;;
cannam@162 7054 esac
cannam@162 7055 LIPO=$ac_ct_LIPO
cannam@162 7056 fi
cannam@162 7057 else
cannam@162 7058 LIPO="$ac_cv_prog_LIPO"
cannam@162 7059 fi
cannam@162 7060
cannam@162 7061 if test -n "$ac_tool_prefix"; then
cannam@162 7062 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
cannam@162 7063 set dummy ${ac_tool_prefix}otool; ac_word=$2
cannam@162 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 7065 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 7066 if ${ac_cv_prog_OTOOL+:} false; then :
cannam@162 7067 $as_echo_n "(cached) " >&6
cannam@162 7068 else
cannam@162 7069 if test -n "$OTOOL"; then
cannam@162 7070 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
cannam@162 7071 else
cannam@162 7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 7073 for as_dir in $PATH
cannam@162 7074 do
cannam@162 7075 IFS=$as_save_IFS
cannam@162 7076 test -z "$as_dir" && as_dir=.
cannam@162 7077 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 7078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 7079 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cannam@162 7080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 7081 break 2
cannam@162 7082 fi
cannam@162 7083 done
cannam@162 7084 done
cannam@162 7085 IFS=$as_save_IFS
cannam@162 7086
cannam@162 7087 fi
cannam@162 7088 fi
cannam@162 7089 OTOOL=$ac_cv_prog_OTOOL
cannam@162 7090 if test -n "$OTOOL"; then
cannam@162 7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cannam@162 7092 $as_echo "$OTOOL" >&6; }
cannam@162 7093 else
cannam@162 7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 7095 $as_echo "no" >&6; }
cannam@162 7096 fi
cannam@162 7097
cannam@162 7098
cannam@162 7099 fi
cannam@162 7100 if test -z "$ac_cv_prog_OTOOL"; then
cannam@162 7101 ac_ct_OTOOL=$OTOOL
cannam@162 7102 # Extract the first word of "otool", so it can be a program name with args.
cannam@162 7103 set dummy otool; ac_word=$2
cannam@162 7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 7105 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 7106 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cannam@162 7107 $as_echo_n "(cached) " >&6
cannam@162 7108 else
cannam@162 7109 if test -n "$ac_ct_OTOOL"; then
cannam@162 7110 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
cannam@162 7111 else
cannam@162 7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 7113 for as_dir in $PATH
cannam@162 7114 do
cannam@162 7115 IFS=$as_save_IFS
cannam@162 7116 test -z "$as_dir" && as_dir=.
cannam@162 7117 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 7118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 7119 ac_cv_prog_ac_ct_OTOOL="otool"
cannam@162 7120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 7121 break 2
cannam@162 7122 fi
cannam@162 7123 done
cannam@162 7124 done
cannam@162 7125 IFS=$as_save_IFS
cannam@162 7126
cannam@162 7127 fi
cannam@162 7128 fi
cannam@162 7129 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
cannam@162 7130 if test -n "$ac_ct_OTOOL"; then
cannam@162 7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cannam@162 7132 $as_echo "$ac_ct_OTOOL" >&6; }
cannam@162 7133 else
cannam@162 7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 7135 $as_echo "no" >&6; }
cannam@162 7136 fi
cannam@162 7137
cannam@162 7138 if test "x$ac_ct_OTOOL" = x; then
cannam@162 7139 OTOOL=":"
cannam@162 7140 else
cannam@162 7141 case $cross_compiling:$ac_tool_warned in
cannam@162 7142 yes:)
cannam@162 7143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@162 7144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@162 7145 ac_tool_warned=yes ;;
cannam@162 7146 esac
cannam@162 7147 OTOOL=$ac_ct_OTOOL
cannam@162 7148 fi
cannam@162 7149 else
cannam@162 7150 OTOOL="$ac_cv_prog_OTOOL"
cannam@162 7151 fi
cannam@162 7152
cannam@162 7153 if test -n "$ac_tool_prefix"; then
cannam@162 7154 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
cannam@162 7155 set dummy ${ac_tool_prefix}otool64; ac_word=$2
cannam@162 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 7157 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 7158 if ${ac_cv_prog_OTOOL64+:} false; then :
cannam@162 7159 $as_echo_n "(cached) " >&6
cannam@162 7160 else
cannam@162 7161 if test -n "$OTOOL64"; then
cannam@162 7162 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
cannam@162 7163 else
cannam@162 7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 7165 for as_dir in $PATH
cannam@162 7166 do
cannam@162 7167 IFS=$as_save_IFS
cannam@162 7168 test -z "$as_dir" && as_dir=.
cannam@162 7169 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 7170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 7171 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cannam@162 7172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 7173 break 2
cannam@162 7174 fi
cannam@162 7175 done
cannam@162 7176 done
cannam@162 7177 IFS=$as_save_IFS
cannam@162 7178
cannam@162 7179 fi
cannam@162 7180 fi
cannam@162 7181 OTOOL64=$ac_cv_prog_OTOOL64
cannam@162 7182 if test -n "$OTOOL64"; then
cannam@162 7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cannam@162 7184 $as_echo "$OTOOL64" >&6; }
cannam@162 7185 else
cannam@162 7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 7187 $as_echo "no" >&6; }
cannam@162 7188 fi
cannam@162 7189
cannam@162 7190
cannam@162 7191 fi
cannam@162 7192 if test -z "$ac_cv_prog_OTOOL64"; then
cannam@162 7193 ac_ct_OTOOL64=$OTOOL64
cannam@162 7194 # Extract the first word of "otool64", so it can be a program name with args.
cannam@162 7195 set dummy otool64; ac_word=$2
cannam@162 7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 7197 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 7198 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cannam@162 7199 $as_echo_n "(cached) " >&6
cannam@162 7200 else
cannam@162 7201 if test -n "$ac_ct_OTOOL64"; then
cannam@162 7202 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
cannam@162 7203 else
cannam@162 7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 7205 for as_dir in $PATH
cannam@162 7206 do
cannam@162 7207 IFS=$as_save_IFS
cannam@162 7208 test -z "$as_dir" && as_dir=.
cannam@162 7209 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 7210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 7211 ac_cv_prog_ac_ct_OTOOL64="otool64"
cannam@162 7212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 7213 break 2
cannam@162 7214 fi
cannam@162 7215 done
cannam@162 7216 done
cannam@162 7217 IFS=$as_save_IFS
cannam@162 7218
cannam@162 7219 fi
cannam@162 7220 fi
cannam@162 7221 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
cannam@162 7222 if test -n "$ac_ct_OTOOL64"; then
cannam@162 7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cannam@162 7224 $as_echo "$ac_ct_OTOOL64" >&6; }
cannam@162 7225 else
cannam@162 7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 7227 $as_echo "no" >&6; }
cannam@162 7228 fi
cannam@162 7229
cannam@162 7230 if test "x$ac_ct_OTOOL64" = x; then
cannam@162 7231 OTOOL64=":"
cannam@162 7232 else
cannam@162 7233 case $cross_compiling:$ac_tool_warned in
cannam@162 7234 yes:)
cannam@162 7235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@162 7236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@162 7237 ac_tool_warned=yes ;;
cannam@162 7238 esac
cannam@162 7239 OTOOL64=$ac_ct_OTOOL64
cannam@162 7240 fi
cannam@162 7241 else
cannam@162 7242 OTOOL64="$ac_cv_prog_OTOOL64"
cannam@162 7243 fi
cannam@162 7244
cannam@162 7245
cannam@162 7246
cannam@162 7247
cannam@162 7248
cannam@162 7249
cannam@162 7250
cannam@162 7251
cannam@162 7252
cannam@162 7253
cannam@162 7254
cannam@162 7255
cannam@162 7256
cannam@162 7257
cannam@162 7258
cannam@162 7259
cannam@162 7260
cannam@162 7261
cannam@162 7262
cannam@162 7263
cannam@162 7264
cannam@162 7265
cannam@162 7266
cannam@162 7267
cannam@162 7268
cannam@162 7269
cannam@162 7270
cannam@162 7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cannam@162 7272 $as_echo_n "checking for -single_module linker flag... " >&6; }
cannam@162 7273 if ${lt_cv_apple_cc_single_mod+:} false; then :
cannam@162 7274 $as_echo_n "(cached) " >&6
cannam@162 7275 else
cannam@162 7276 lt_cv_apple_cc_single_mod=no
cannam@162 7277 if test -z "${LT_MULTI_MODULE}"; then
cannam@162 7278 # By default we will add the -single_module flag. You can override
cannam@162 7279 # by either setting the environment variable LT_MULTI_MODULE
cannam@162 7280 # non-empty at configure time, or by adding -multi_module to the
cannam@162 7281 # link flags.
cannam@162 7282 rm -rf libconftest.dylib*
cannam@162 7283 echo "int foo(void){return 1;}" > conftest.c
cannam@162 7284 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
cannam@162 7285 -dynamiclib -Wl,-single_module conftest.c" >&5
cannam@162 7286 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
cannam@162 7287 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
cannam@162 7288 _lt_result=$?
cannam@162 7289 # If there is a non-empty error log, and "single_module"
cannam@162 7290 # appears in it, assume the flag caused a linker warning
cannam@162 7291 if test -s conftest.err && $GREP single_module conftest.err; then
cannam@162 7292 cat conftest.err >&5
cannam@162 7293 # Otherwise, if the output was created with a 0 exit code from
cannam@162 7294 # the compiler, it worked.
cannam@162 7295 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cannam@162 7296 lt_cv_apple_cc_single_mod=yes
cannam@162 7297 else
cannam@162 7298 cat conftest.err >&5
cannam@162 7299 fi
cannam@162 7300 rm -rf libconftest.dylib*
cannam@162 7301 rm -f conftest.*
cannam@162 7302 fi
cannam@162 7303 fi
cannam@162 7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cannam@162 7305 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cannam@162 7306
cannam@162 7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cannam@162 7308 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cannam@162 7309 if ${lt_cv_ld_exported_symbols_list+:} false; then :
cannam@162 7310 $as_echo_n "(cached) " >&6
cannam@162 7311 else
cannam@162 7312 lt_cv_ld_exported_symbols_list=no
cannam@162 7313 save_LDFLAGS=$LDFLAGS
cannam@162 7314 echo "_main" > conftest.sym
cannam@162 7315 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cannam@162 7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 7317 /* end confdefs.h. */
cannam@162 7318
cannam@162 7319 int
cannam@162 7320 main ()
cannam@162 7321 {
cannam@162 7322
cannam@162 7323 ;
cannam@162 7324 return 0;
cannam@162 7325 }
cannam@162 7326 _ACEOF
cannam@162 7327 if ac_fn_c_try_link "$LINENO"; then :
cannam@162 7328 lt_cv_ld_exported_symbols_list=yes
cannam@162 7329 else
cannam@162 7330 lt_cv_ld_exported_symbols_list=no
cannam@162 7331 fi
cannam@162 7332 rm -f core conftest.err conftest.$ac_objext \
cannam@162 7333 conftest$ac_exeext conftest.$ac_ext
cannam@162 7334 LDFLAGS="$save_LDFLAGS"
cannam@162 7335
cannam@162 7336 fi
cannam@162 7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cannam@162 7338 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cannam@162 7339
cannam@162 7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
cannam@162 7341 $as_echo_n "checking for -force_load linker flag... " >&6; }
cannam@162 7342 if ${lt_cv_ld_force_load+:} false; then :
cannam@162 7343 $as_echo_n "(cached) " >&6
cannam@162 7344 else
cannam@162 7345 lt_cv_ld_force_load=no
cannam@162 7346 cat > conftest.c << _LT_EOF
cannam@162 7347 int forced_loaded() { return 2;}
cannam@162 7348 _LT_EOF
cannam@162 7349 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
cannam@162 7350 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
cannam@162 7351 echo "$AR cru libconftest.a conftest.o" >&5
cannam@162 7352 $AR cru libconftest.a conftest.o 2>&5
cannam@162 7353 echo "$RANLIB libconftest.a" >&5
cannam@162 7354 $RANLIB libconftest.a 2>&5
cannam@162 7355 cat > conftest.c << _LT_EOF
cannam@162 7356 int main() { return 0;}
cannam@162 7357 _LT_EOF
cannam@162 7358 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
cannam@162 7359 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
cannam@162 7360 _lt_result=$?
cannam@162 7361 if test -s conftest.err && $GREP force_load conftest.err; then
cannam@162 7362 cat conftest.err >&5
cannam@162 7363 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cannam@162 7364 lt_cv_ld_force_load=yes
cannam@162 7365 else
cannam@162 7366 cat conftest.err >&5
cannam@162 7367 fi
cannam@162 7368 rm -f conftest.err libconftest.a conftest conftest.c
cannam@162 7369 rm -rf conftest.dSYM
cannam@162 7370
cannam@162 7371 fi
cannam@162 7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
cannam@162 7373 $as_echo "$lt_cv_ld_force_load" >&6; }
cannam@162 7374 case $host_os in
cannam@162 7375 rhapsody* | darwin1.[012])
cannam@162 7376 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
cannam@162 7377 darwin1.*)
cannam@162 7378 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
cannam@162 7379 darwin*) # darwin 5.x on
cannam@162 7380 # if running on 10.5 or later, the deployment target defaults
cannam@162 7381 # to the OS version, if on x86, and 10.4, the deployment
cannam@162 7382 # target defaults to 10.4. Don't you love it?
cannam@162 7383 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
cannam@162 7384 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
cannam@162 7385 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
cannam@162 7386 10.[012]*)
cannam@162 7387 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
cannam@162 7388 10.*)
cannam@162 7389 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
cannam@162 7390 esac
cannam@162 7391 ;;
cannam@162 7392 esac
cannam@162 7393 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
cannam@162 7394 _lt_dar_single_mod='$single_module'
cannam@162 7395 fi
cannam@162 7396 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
cannam@162 7397 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
cannam@162 7398 else
cannam@162 7399 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
cannam@162 7400 fi
cannam@162 7401 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cannam@162 7402 _lt_dsymutil='~$DSYMUTIL $lib || :'
cannam@162 7403 else
cannam@162 7404 _lt_dsymutil=
cannam@162 7405 fi
cannam@162 7406 ;;
cannam@162 7407 esac
cannam@162 7408
cannam@162 7409 ac_ext=c
cannam@162 7410 ac_cpp='$CPP $CPPFLAGS'
cannam@162 7411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@162 7412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@162 7413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@162 7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cannam@162 7415 $as_echo_n "checking how to run the C preprocessor... " >&6; }
cannam@162 7416 # On Suns, sometimes $CPP names a directory.
cannam@162 7417 if test -n "$CPP" && test -d "$CPP"; then
cannam@162 7418 CPP=
cannam@162 7419 fi
cannam@162 7420 if test -z "$CPP"; then
cannam@162 7421 if ${ac_cv_prog_CPP+:} false; then :
cannam@162 7422 $as_echo_n "(cached) " >&6
cannam@162 7423 else
cannam@162 7424 # Double quotes because CPP needs to be expanded
cannam@162 7425 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
cannam@162 7426 do
cannam@162 7427 ac_preproc_ok=false
cannam@162 7428 for ac_c_preproc_warn_flag in '' yes
cannam@162 7429 do
cannam@162 7430 # Use a header file that comes with gcc, so configuring glibc
cannam@162 7431 # with a fresh cross-compiler works.
cannam@162 7432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@162 7433 # <limits.h> exists even on freestanding compilers.
cannam@162 7434 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@162 7435 # not just through cpp. "Syntax error" is here to catch this case.
cannam@162 7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 7437 /* end confdefs.h. */
cannam@162 7438 #ifdef __STDC__
cannam@162 7439 # include <limits.h>
cannam@162 7440 #else
cannam@162 7441 # include <assert.h>
cannam@162 7442 #endif
cannam@162 7443 Syntax error
cannam@162 7444 _ACEOF
cannam@162 7445 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@162 7446
cannam@162 7447 else
cannam@162 7448 # Broken: fails on valid input.
cannam@162 7449 continue
cannam@162 7450 fi
cannam@162 7451 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@162 7452
cannam@162 7453 # OK, works on sane cases. Now check whether nonexistent headers
cannam@162 7454 # can be detected and how.
cannam@162 7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 7456 /* end confdefs.h. */
cannam@162 7457 #include <ac_nonexistent.h>
cannam@162 7458 _ACEOF
cannam@162 7459 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@162 7460 # Broken: success on invalid input.
cannam@162 7461 continue
cannam@162 7462 else
cannam@162 7463 # Passes both tests.
cannam@162 7464 ac_preproc_ok=:
cannam@162 7465 break
cannam@162 7466 fi
cannam@162 7467 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@162 7468
cannam@162 7469 done
cannam@162 7470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@162 7471 rm -f conftest.i conftest.err conftest.$ac_ext
cannam@162 7472 if $ac_preproc_ok; then :
cannam@162 7473 break
cannam@162 7474 fi
cannam@162 7475
cannam@162 7476 done
cannam@162 7477 ac_cv_prog_CPP=$CPP
cannam@162 7478
cannam@162 7479 fi
cannam@162 7480 CPP=$ac_cv_prog_CPP
cannam@162 7481 else
cannam@162 7482 ac_cv_prog_CPP=$CPP
cannam@162 7483 fi
cannam@162 7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cannam@162 7485 $as_echo "$CPP" >&6; }
cannam@162 7486 ac_preproc_ok=false
cannam@162 7487 for ac_c_preproc_warn_flag in '' yes
cannam@162 7488 do
cannam@162 7489 # Use a header file that comes with gcc, so configuring glibc
cannam@162 7490 # with a fresh cross-compiler works.
cannam@162 7491 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@162 7492 # <limits.h> exists even on freestanding compilers.
cannam@162 7493 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@162 7494 # not just through cpp. "Syntax error" is here to catch this case.
cannam@162 7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 7496 /* end confdefs.h. */
cannam@162 7497 #ifdef __STDC__
cannam@162 7498 # include <limits.h>
cannam@162 7499 #else
cannam@162 7500 # include <assert.h>
cannam@162 7501 #endif
cannam@162 7502 Syntax error
cannam@162 7503 _ACEOF
cannam@162 7504 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@162 7505
cannam@162 7506 else
cannam@162 7507 # Broken: fails on valid input.
cannam@162 7508 continue
cannam@162 7509 fi
cannam@162 7510 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@162 7511
cannam@162 7512 # OK, works on sane cases. Now check whether nonexistent headers
cannam@162 7513 # can be detected and how.
cannam@162 7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 7515 /* end confdefs.h. */
cannam@162 7516 #include <ac_nonexistent.h>
cannam@162 7517 _ACEOF
cannam@162 7518 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@162 7519 # Broken: success on invalid input.
cannam@162 7520 continue
cannam@162 7521 else
cannam@162 7522 # Passes both tests.
cannam@162 7523 ac_preproc_ok=:
cannam@162 7524 break
cannam@162 7525 fi
cannam@162 7526 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@162 7527
cannam@162 7528 done
cannam@162 7529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@162 7530 rm -f conftest.i conftest.err conftest.$ac_ext
cannam@162 7531 if $ac_preproc_ok; then :
cannam@162 7532
cannam@162 7533 else
cannam@162 7534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@162 7535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@162 7536 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
cannam@162 7537 See \`config.log' for more details" "$LINENO" 5; }
cannam@162 7538 fi
cannam@162 7539
cannam@162 7540 ac_ext=c
cannam@162 7541 ac_cpp='$CPP $CPPFLAGS'
cannam@162 7542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@162 7543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@162 7544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@162 7545
cannam@162 7546
cannam@162 7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cannam@162 7548 $as_echo_n "checking for ANSI C header files... " >&6; }
cannam@162 7549 if ${ac_cv_header_stdc+:} false; then :
cannam@162 7550 $as_echo_n "(cached) " >&6
cannam@162 7551 else
cannam@162 7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 7553 /* end confdefs.h. */
cannam@162 7554 #include <stdlib.h>
cannam@162 7555 #include <stdarg.h>
cannam@162 7556 #include <string.h>
cannam@162 7557 #include <float.h>
cannam@162 7558
cannam@162 7559 int
cannam@162 7560 main ()
cannam@162 7561 {
cannam@162 7562
cannam@162 7563 ;
cannam@162 7564 return 0;
cannam@162 7565 }
cannam@162 7566 _ACEOF
cannam@162 7567 if ac_fn_c_try_compile "$LINENO"; then :
cannam@162 7568 ac_cv_header_stdc=yes
cannam@162 7569 else
cannam@162 7570 ac_cv_header_stdc=no
cannam@162 7571 fi
cannam@162 7572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@162 7573
cannam@162 7574 if test $ac_cv_header_stdc = yes; then
cannam@162 7575 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cannam@162 7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 7577 /* end confdefs.h. */
cannam@162 7578 #include <string.h>
cannam@162 7579
cannam@162 7580 _ACEOF
cannam@162 7581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@162 7582 $EGREP "memchr" >/dev/null 2>&1; then :
cannam@162 7583
cannam@162 7584 else
cannam@162 7585 ac_cv_header_stdc=no
cannam@162 7586 fi
cannam@162 7587 rm -f conftest*
cannam@162 7588
cannam@162 7589 fi
cannam@162 7590
cannam@162 7591 if test $ac_cv_header_stdc = yes; then
cannam@162 7592 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cannam@162 7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 7594 /* end confdefs.h. */
cannam@162 7595 #include <stdlib.h>
cannam@162 7596
cannam@162 7597 _ACEOF
cannam@162 7598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@162 7599 $EGREP "free" >/dev/null 2>&1; then :
cannam@162 7600
cannam@162 7601 else
cannam@162 7602 ac_cv_header_stdc=no
cannam@162 7603 fi
cannam@162 7604 rm -f conftest*
cannam@162 7605
cannam@162 7606 fi
cannam@162 7607
cannam@162 7608 if test $ac_cv_header_stdc = yes; then
cannam@162 7609 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cannam@162 7610 if test "$cross_compiling" = yes; then :
cannam@162 7611 :
cannam@162 7612 else
cannam@162 7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 7614 /* end confdefs.h. */
cannam@162 7615 #include <ctype.h>
cannam@162 7616 #include <stdlib.h>
cannam@162 7617 #if ((' ' & 0x0FF) == 0x020)
cannam@162 7618 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
cannam@162 7619 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
cannam@162 7620 #else
cannam@162 7621 # define ISLOWER(c) \
cannam@162 7622 (('a' <= (c) && (c) <= 'i') \
cannam@162 7623 || ('j' <= (c) && (c) <= 'r') \
cannam@162 7624 || ('s' <= (c) && (c) <= 'z'))
cannam@162 7625 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
cannam@162 7626 #endif
cannam@162 7627
cannam@162 7628 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
cannam@162 7629 int
cannam@162 7630 main ()
cannam@162 7631 {
cannam@162 7632 int i;
cannam@162 7633 for (i = 0; i < 256; i++)
cannam@162 7634 if (XOR (islower (i), ISLOWER (i))
cannam@162 7635 || toupper (i) != TOUPPER (i))
cannam@162 7636 return 2;
cannam@162 7637 return 0;
cannam@162 7638 }
cannam@162 7639 _ACEOF
cannam@162 7640 if ac_fn_c_try_run "$LINENO"; then :
cannam@162 7641
cannam@162 7642 else
cannam@162 7643 ac_cv_header_stdc=no
cannam@162 7644 fi
cannam@162 7645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@162 7646 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@162 7647 fi
cannam@162 7648
cannam@162 7649 fi
cannam@162 7650 fi
cannam@162 7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cannam@162 7652 $as_echo "$ac_cv_header_stdc" >&6; }
cannam@162 7653 if test $ac_cv_header_stdc = yes; then
cannam@162 7654
cannam@162 7655 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
cannam@162 7656
cannam@162 7657 fi
cannam@162 7658
cannam@162 7659 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
cannam@162 7660 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
cannam@162 7661 inttypes.h stdint.h unistd.h
cannam@162 7662 do :
cannam@162 7663 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cannam@162 7664 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
cannam@162 7665 "
cannam@162 7666 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cannam@162 7667 cat >>confdefs.h <<_ACEOF
cannam@162 7668 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
cannam@162 7669 _ACEOF
cannam@162 7670
cannam@162 7671 fi
cannam@162 7672
cannam@162 7673 done
cannam@162 7674
cannam@162 7675
cannam@162 7676 for ac_header in dlfcn.h
cannam@162 7677 do :
cannam@162 7678 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
cannam@162 7679 "
cannam@162 7680 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cannam@162 7681 cat >>confdefs.h <<_ACEOF
cannam@162 7682 #define HAVE_DLFCN_H 1
cannam@162 7683 _ACEOF
cannam@162 7684
cannam@162 7685 fi
cannam@162 7686
cannam@162 7687 done
cannam@162 7688
cannam@162 7689
cannam@162 7690
cannam@162 7691
cannam@162 7692 func_stripname_cnf ()
cannam@162 7693 {
cannam@162 7694 case ${2} in
cannam@162 7695 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
cannam@162 7696 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
cannam@162 7697 esac
cannam@162 7698 } # func_stripname_cnf
cannam@162 7699
cannam@162 7700
cannam@162 7701
cannam@162 7702
cannam@162 7703
cannam@162 7704 # Set options
cannam@162 7705
cannam@162 7706
cannam@162 7707
cannam@162 7708 enable_dlopen=no
cannam@162 7709
cannam@162 7710
cannam@162 7711
cannam@162 7712 # Check whether --enable-shared was given.
cannam@162 7713 if test "${enable_shared+set}" = set; then :
cannam@162 7714 enableval=$enable_shared; p=${PACKAGE-default}
cannam@162 7715 case $enableval in
cannam@162 7716 yes) enable_shared=yes ;;
cannam@162 7717 no) enable_shared=no ;;
cannam@162 7718 *)
cannam@162 7719 enable_shared=no
cannam@162 7720 # Look at the argument we got. We use all the common list separators.
cannam@162 7721 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@162 7722 for pkg in $enableval; do
cannam@162 7723 IFS="$lt_save_ifs"
cannam@162 7724 if test "X$pkg" = "X$p"; then
cannam@162 7725 enable_shared=yes
cannam@162 7726 fi
cannam@162 7727 done
cannam@162 7728 IFS="$lt_save_ifs"
cannam@162 7729 ;;
cannam@162 7730 esac
cannam@162 7731 else
cannam@162 7732 enable_shared=yes
cannam@162 7733 fi
cannam@162 7734
cannam@162 7735
cannam@162 7736
cannam@162 7737
cannam@162 7738
cannam@162 7739
cannam@162 7740
cannam@162 7741
cannam@162 7742
cannam@162 7743 # Check whether --enable-static was given.
cannam@162 7744 if test "${enable_static+set}" = set; then :
cannam@162 7745 enableval=$enable_static; p=${PACKAGE-default}
cannam@162 7746 case $enableval in
cannam@162 7747 yes) enable_static=yes ;;
cannam@162 7748 no) enable_static=no ;;
cannam@162 7749 *)
cannam@162 7750 enable_static=no
cannam@162 7751 # Look at the argument we got. We use all the common list separators.
cannam@162 7752 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@162 7753 for pkg in $enableval; do
cannam@162 7754 IFS="$lt_save_ifs"
cannam@162 7755 if test "X$pkg" = "X$p"; then
cannam@162 7756 enable_static=yes
cannam@162 7757 fi
cannam@162 7758 done
cannam@162 7759 IFS="$lt_save_ifs"
cannam@162 7760 ;;
cannam@162 7761 esac
cannam@162 7762 else
cannam@162 7763 enable_static=yes
cannam@162 7764 fi
cannam@162 7765
cannam@162 7766
cannam@162 7767
cannam@162 7768
cannam@162 7769
cannam@162 7770
cannam@162 7771
cannam@162 7772
cannam@162 7773
cannam@162 7774
cannam@162 7775 # Check whether --with-pic was given.
cannam@162 7776 if test "${with_pic+set}" = set; then :
cannam@162 7777 withval=$with_pic; lt_p=${PACKAGE-default}
cannam@162 7778 case $withval in
cannam@162 7779 yes|no) pic_mode=$withval ;;
cannam@162 7780 *)
cannam@162 7781 pic_mode=default
cannam@162 7782 # Look at the argument we got. We use all the common list separators.
cannam@162 7783 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@162 7784 for lt_pkg in $withval; do
cannam@162 7785 IFS="$lt_save_ifs"
cannam@162 7786 if test "X$lt_pkg" = "X$lt_p"; then
cannam@162 7787 pic_mode=yes
cannam@162 7788 fi
cannam@162 7789 done
cannam@162 7790 IFS="$lt_save_ifs"
cannam@162 7791 ;;
cannam@162 7792 esac
cannam@162 7793 else
cannam@162 7794 pic_mode=default
cannam@162 7795 fi
cannam@162 7796
cannam@162 7797
cannam@162 7798 test -z "$pic_mode" && pic_mode=default
cannam@162 7799
cannam@162 7800
cannam@162 7801
cannam@162 7802
cannam@162 7803
cannam@162 7804
cannam@162 7805
cannam@162 7806 # Check whether --enable-fast-install was given.
cannam@162 7807 if test "${enable_fast_install+set}" = set; then :
cannam@162 7808 enableval=$enable_fast_install; p=${PACKAGE-default}
cannam@162 7809 case $enableval in
cannam@162 7810 yes) enable_fast_install=yes ;;
cannam@162 7811 no) enable_fast_install=no ;;
cannam@162 7812 *)
cannam@162 7813 enable_fast_install=no
cannam@162 7814 # Look at the argument we got. We use all the common list separators.
cannam@162 7815 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@162 7816 for pkg in $enableval; do
cannam@162 7817 IFS="$lt_save_ifs"
cannam@162 7818 if test "X$pkg" = "X$p"; then
cannam@162 7819 enable_fast_install=yes
cannam@162 7820 fi
cannam@162 7821 done
cannam@162 7822 IFS="$lt_save_ifs"
cannam@162 7823 ;;
cannam@162 7824 esac
cannam@162 7825 else
cannam@162 7826 enable_fast_install=yes
cannam@162 7827 fi
cannam@162 7828
cannam@162 7829
cannam@162 7830
cannam@162 7831
cannam@162 7832
cannam@162 7833
cannam@162 7834
cannam@162 7835
cannam@162 7836
cannam@162 7837
cannam@162 7838
cannam@162 7839 # This can be used to rebuild libtool when needed
cannam@162 7840 LIBTOOL_DEPS="$ltmain"
cannam@162 7841
cannam@162 7842 # Always use our own libtool.
cannam@162 7843 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
cannam@162 7844
cannam@162 7845
cannam@162 7846
cannam@162 7847
cannam@162 7848
cannam@162 7849
cannam@162 7850
cannam@162 7851
cannam@162 7852
cannam@162 7853
cannam@162 7854
cannam@162 7855
cannam@162 7856
cannam@162 7857
cannam@162 7858
cannam@162 7859
cannam@162 7860
cannam@162 7861
cannam@162 7862
cannam@162 7863
cannam@162 7864
cannam@162 7865
cannam@162 7866
cannam@162 7867
cannam@162 7868
cannam@162 7869
cannam@162 7870
cannam@162 7871
cannam@162 7872
cannam@162 7873
cannam@162 7874 test -z "$LN_S" && LN_S="ln -s"
cannam@162 7875
cannam@162 7876
cannam@162 7877
cannam@162 7878
cannam@162 7879
cannam@162 7880
cannam@162 7881
cannam@162 7882
cannam@162 7883
cannam@162 7884
cannam@162 7885
cannam@162 7886
cannam@162 7887
cannam@162 7888
cannam@162 7889 if test -n "${ZSH_VERSION+set}" ; then
cannam@162 7890 setopt NO_GLOB_SUBST
cannam@162 7891 fi
cannam@162 7892
cannam@162 7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cannam@162 7894 $as_echo_n "checking for objdir... " >&6; }
cannam@162 7895 if ${lt_cv_objdir+:} false; then :
cannam@162 7896 $as_echo_n "(cached) " >&6
cannam@162 7897 else
cannam@162 7898 rm -f .libs 2>/dev/null
cannam@162 7899 mkdir .libs 2>/dev/null
cannam@162 7900 if test -d .libs; then
cannam@162 7901 lt_cv_objdir=.libs
cannam@162 7902 else
cannam@162 7903 # MS-DOS does not allow filenames that begin with a dot.
cannam@162 7904 lt_cv_objdir=_libs
cannam@162 7905 fi
cannam@162 7906 rmdir .libs 2>/dev/null
cannam@162 7907 fi
cannam@162 7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cannam@162 7909 $as_echo "$lt_cv_objdir" >&6; }
cannam@162 7910 objdir=$lt_cv_objdir
cannam@162 7911
cannam@162 7912
cannam@162 7913
cannam@162 7914
cannam@162 7915
cannam@162 7916 cat >>confdefs.h <<_ACEOF
cannam@162 7917 #define LT_OBJDIR "$lt_cv_objdir/"
cannam@162 7918 _ACEOF
cannam@162 7919
cannam@162 7920
cannam@162 7921
cannam@162 7922
cannam@162 7923 case $host_os in
cannam@162 7924 aix3*)
cannam@162 7925 # AIX sometimes has problems with the GCC collect2 program. For some
cannam@162 7926 # reason, if we set the COLLECT_NAMES environment variable, the problems
cannam@162 7927 # vanish in a puff of smoke.
cannam@162 7928 if test "X${COLLECT_NAMES+set}" != Xset; then
cannam@162 7929 COLLECT_NAMES=
cannam@162 7930 export COLLECT_NAMES
cannam@162 7931 fi
cannam@162 7932 ;;
cannam@162 7933 esac
cannam@162 7934
cannam@162 7935 # Global variables:
cannam@162 7936 ofile=libtool
cannam@162 7937 can_build_shared=yes
cannam@162 7938
cannam@162 7939 # All known linkers require a `.a' archive for static linking (except MSVC,
cannam@162 7940 # which needs '.lib').
cannam@162 7941 libext=a
cannam@162 7942
cannam@162 7943 with_gnu_ld="$lt_cv_prog_gnu_ld"
cannam@162 7944
cannam@162 7945 old_CC="$CC"
cannam@162 7946 old_CFLAGS="$CFLAGS"
cannam@162 7947
cannam@162 7948 # Set sane defaults for various variables
cannam@162 7949 test -z "$CC" && CC=cc
cannam@162 7950 test -z "$LTCC" && LTCC=$CC
cannam@162 7951 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
cannam@162 7952 test -z "$LD" && LD=ld
cannam@162 7953 test -z "$ac_objext" && ac_objext=o
cannam@162 7954
cannam@162 7955 for cc_temp in $compiler""; do
cannam@162 7956 case $cc_temp in
cannam@162 7957 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
cannam@162 7958 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
cannam@162 7959 \-*) ;;
cannam@162 7960 *) break;;
cannam@162 7961 esac
cannam@162 7962 done
cannam@162 7963 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cannam@162 7964
cannam@162 7965
cannam@162 7966 # Only perform the check for file, if the check method requires it
cannam@162 7967 test -z "$MAGIC_CMD" && MAGIC_CMD=file
cannam@162 7968 case $deplibs_check_method in
cannam@162 7969 file_magic*)
cannam@162 7970 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cannam@162 7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cannam@162 7972 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cannam@162 7973 if ${lt_cv_path_MAGIC_CMD+:} false; then :
cannam@162 7974 $as_echo_n "(cached) " >&6
cannam@162 7975 else
cannam@162 7976 case $MAGIC_CMD in
cannam@162 7977 [\\/*] | ?:[\\/]*)
cannam@162 7978 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
cannam@162 7979 ;;
cannam@162 7980 *)
cannam@162 7981 lt_save_MAGIC_CMD="$MAGIC_CMD"
cannam@162 7982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@162 7983 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
cannam@162 7984 for ac_dir in $ac_dummy; do
cannam@162 7985 IFS="$lt_save_ifs"
cannam@162 7986 test -z "$ac_dir" && ac_dir=.
cannam@162 7987 if test -f $ac_dir/${ac_tool_prefix}file; then
cannam@162 7988 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
cannam@162 7989 if test -n "$file_magic_test_file"; then
cannam@162 7990 case $deplibs_check_method in
cannam@162 7991 "file_magic "*)
cannam@162 7992 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
cannam@162 7993 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@162 7994 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
cannam@162 7995 $EGREP "$file_magic_regex" > /dev/null; then
cannam@162 7996 :
cannam@162 7997 else
cannam@162 7998 cat <<_LT_EOF 1>&2
cannam@162 7999
cannam@162 8000 *** Warning: the command libtool uses to detect shared libraries,
cannam@162 8001 *** $file_magic_cmd, produces output that libtool cannot recognize.
cannam@162 8002 *** The result is that libtool may fail to recognize shared libraries
cannam@162 8003 *** as such. This will affect the creation of libtool libraries that
cannam@162 8004 *** depend on shared libraries, but programs linked with such libtool
cannam@162 8005 *** libraries will work regardless of this problem. Nevertheless, you
cannam@162 8006 *** may want to report the problem to your system manager and/or to
cannam@162 8007 *** bug-libtool@gnu.org
cannam@162 8008
cannam@162 8009 _LT_EOF
cannam@162 8010 fi ;;
cannam@162 8011 esac
cannam@162 8012 fi
cannam@162 8013 break
cannam@162 8014 fi
cannam@162 8015 done
cannam@162 8016 IFS="$lt_save_ifs"
cannam@162 8017 MAGIC_CMD="$lt_save_MAGIC_CMD"
cannam@162 8018 ;;
cannam@162 8019 esac
cannam@162 8020 fi
cannam@162 8021
cannam@162 8022 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@162 8023 if test -n "$MAGIC_CMD"; then
cannam@162 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cannam@162 8025 $as_echo "$MAGIC_CMD" >&6; }
cannam@162 8026 else
cannam@162 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 8028 $as_echo "no" >&6; }
cannam@162 8029 fi
cannam@162 8030
cannam@162 8031
cannam@162 8032
cannam@162 8033
cannam@162 8034
cannam@162 8035 if test -z "$lt_cv_path_MAGIC_CMD"; then
cannam@162 8036 if test -n "$ac_tool_prefix"; then
cannam@162 8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cannam@162 8038 $as_echo_n "checking for file... " >&6; }
cannam@162 8039 if ${lt_cv_path_MAGIC_CMD+:} false; then :
cannam@162 8040 $as_echo_n "(cached) " >&6
cannam@162 8041 else
cannam@162 8042 case $MAGIC_CMD in
cannam@162 8043 [\\/*] | ?:[\\/]*)
cannam@162 8044 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
cannam@162 8045 ;;
cannam@162 8046 *)
cannam@162 8047 lt_save_MAGIC_CMD="$MAGIC_CMD"
cannam@162 8048 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@162 8049 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
cannam@162 8050 for ac_dir in $ac_dummy; do
cannam@162 8051 IFS="$lt_save_ifs"
cannam@162 8052 test -z "$ac_dir" && ac_dir=.
cannam@162 8053 if test -f $ac_dir/file; then
cannam@162 8054 lt_cv_path_MAGIC_CMD="$ac_dir/file"
cannam@162 8055 if test -n "$file_magic_test_file"; then
cannam@162 8056 case $deplibs_check_method in
cannam@162 8057 "file_magic "*)
cannam@162 8058 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
cannam@162 8059 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@162 8060 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
cannam@162 8061 $EGREP "$file_magic_regex" > /dev/null; then
cannam@162 8062 :
cannam@162 8063 else
cannam@162 8064 cat <<_LT_EOF 1>&2
cannam@162 8065
cannam@162 8066 *** Warning: the command libtool uses to detect shared libraries,
cannam@162 8067 *** $file_magic_cmd, produces output that libtool cannot recognize.
cannam@162 8068 *** The result is that libtool may fail to recognize shared libraries
cannam@162 8069 *** as such. This will affect the creation of libtool libraries that
cannam@162 8070 *** depend on shared libraries, but programs linked with such libtool
cannam@162 8071 *** libraries will work regardless of this problem. Nevertheless, you
cannam@162 8072 *** may want to report the problem to your system manager and/or to
cannam@162 8073 *** bug-libtool@gnu.org
cannam@162 8074
cannam@162 8075 _LT_EOF
cannam@162 8076 fi ;;
cannam@162 8077 esac
cannam@162 8078 fi
cannam@162 8079 break
cannam@162 8080 fi
cannam@162 8081 done
cannam@162 8082 IFS="$lt_save_ifs"
cannam@162 8083 MAGIC_CMD="$lt_save_MAGIC_CMD"
cannam@162 8084 ;;
cannam@162 8085 esac
cannam@162 8086 fi
cannam@162 8087
cannam@162 8088 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@162 8089 if test -n "$MAGIC_CMD"; then
cannam@162 8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cannam@162 8091 $as_echo "$MAGIC_CMD" >&6; }
cannam@162 8092 else
cannam@162 8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 8094 $as_echo "no" >&6; }
cannam@162 8095 fi
cannam@162 8096
cannam@162 8097
cannam@162 8098 else
cannam@162 8099 MAGIC_CMD=:
cannam@162 8100 fi
cannam@162 8101 fi
cannam@162 8102
cannam@162 8103 fi
cannam@162 8104 ;;
cannam@162 8105 esac
cannam@162 8106
cannam@162 8107 # Use C for the default configuration in the libtool script
cannam@162 8108
cannam@162 8109 lt_save_CC="$CC"
cannam@162 8110 ac_ext=c
cannam@162 8111 ac_cpp='$CPP $CPPFLAGS'
cannam@162 8112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@162 8113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@162 8114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@162 8115
cannam@162 8116
cannam@162 8117 # Source file extension for C test sources.
cannam@162 8118 ac_ext=c
cannam@162 8119
cannam@162 8120 # Object file extension for compiled C test sources.
cannam@162 8121 objext=o
cannam@162 8122 objext=$objext
cannam@162 8123
cannam@162 8124 # Code to be used in simple compile tests
cannam@162 8125 lt_simple_compile_test_code="int some_variable = 0;"
cannam@162 8126
cannam@162 8127 # Code to be used in simple link tests
cannam@162 8128 lt_simple_link_test_code='int main(){return(0);}'
cannam@162 8129
cannam@162 8130
cannam@162 8131
cannam@162 8132
cannam@162 8133
cannam@162 8134
cannam@162 8135
cannam@162 8136 # If no C compiler was specified, use CC.
cannam@162 8137 LTCC=${LTCC-"$CC"}
cannam@162 8138
cannam@162 8139 # If no C compiler flags were specified, use CFLAGS.
cannam@162 8140 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cannam@162 8141
cannam@162 8142 # Allow CC to be a program name with arguments.
cannam@162 8143 compiler=$CC
cannam@162 8144
cannam@162 8145 # Save the default compiler, since it gets overwritten when the other
cannam@162 8146 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
cannam@162 8147 compiler_DEFAULT=$CC
cannam@162 8148
cannam@162 8149 # save warnings/boilerplate of simple test code
cannam@162 8150 ac_outfile=conftest.$ac_objext
cannam@162 8151 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
cannam@162 8152 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@162 8153 _lt_compiler_boilerplate=`cat conftest.err`
cannam@162 8154 $RM conftest*
cannam@162 8155
cannam@162 8156 ac_outfile=conftest.$ac_objext
cannam@162 8157 echo "$lt_simple_link_test_code" >conftest.$ac_ext
cannam@162 8158 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@162 8159 _lt_linker_boilerplate=`cat conftest.err`
cannam@162 8160 $RM -r conftest*
cannam@162 8161
cannam@162 8162
cannam@162 8163 if test -n "$compiler"; then
cannam@162 8164
cannam@162 8165 lt_prog_compiler_no_builtin_flag=
cannam@162 8166
cannam@162 8167 if test "$GCC" = yes; then
cannam@162 8168 case $cc_basename in
cannam@162 8169 nvcc*)
cannam@162 8170 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
cannam@162 8171 *)
cannam@162 8172 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
cannam@162 8173 esac
cannam@162 8174
cannam@162 8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cannam@162 8176 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cannam@162 8177 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cannam@162 8178 $as_echo_n "(cached) " >&6
cannam@162 8179 else
cannam@162 8180 lt_cv_prog_compiler_rtti_exceptions=no
cannam@162 8181 ac_outfile=conftest.$ac_objext
cannam@162 8182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@162 8183 lt_compiler_flag="-fno-rtti -fno-exceptions"
cannam@162 8184 # Insert the option either (1) after the last *FLAGS variable, or
cannam@162 8185 # (2) before a word containing "conftest.", or (3) at the end.
cannam@162 8186 # Note that $ac_compile itself does not contain backslashes and begins
cannam@162 8187 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@162 8188 # The option is referenced via a variable to avoid confusing sed.
cannam@162 8189 lt_compile=`echo "$ac_compile" | $SED \
cannam@162 8190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@162 8191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@162 8192 -e 's:$: $lt_compiler_flag:'`
cannam@162 8193 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@162 8194 (eval "$lt_compile" 2>conftest.err)
cannam@162 8195 ac_status=$?
cannam@162 8196 cat conftest.err >&5
cannam@162 8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@162 8198 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@162 8199 # The compiler can only warn and ignore the option if not recognized
cannam@162 8200 # So say no if there are warnings other than the usual output.
cannam@162 8201 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cannam@162 8202 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@162 8203 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
cannam@162 8204 lt_cv_prog_compiler_rtti_exceptions=yes
cannam@162 8205 fi
cannam@162 8206 fi
cannam@162 8207 $RM conftest*
cannam@162 8208
cannam@162 8209 fi
cannam@162 8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cannam@162 8211 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
cannam@162 8212
cannam@162 8213 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
cannam@162 8214 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
cannam@162 8215 else
cannam@162 8216 :
cannam@162 8217 fi
cannam@162 8218
cannam@162 8219 fi
cannam@162 8220
cannam@162 8221
cannam@162 8222
cannam@162 8223
cannam@162 8224
cannam@162 8225
cannam@162 8226 lt_prog_compiler_wl=
cannam@162 8227 lt_prog_compiler_pic=
cannam@162 8228 lt_prog_compiler_static=
cannam@162 8229
cannam@162 8230
cannam@162 8231 if test "$GCC" = yes; then
cannam@162 8232 lt_prog_compiler_wl='-Wl,'
cannam@162 8233 lt_prog_compiler_static='-static'
cannam@162 8234
cannam@162 8235 case $host_os in
cannam@162 8236 aix*)
cannam@162 8237 # All AIX code is PIC.
cannam@162 8238 if test "$host_cpu" = ia64; then
cannam@162 8239 # AIX 5 now supports IA64 processor
cannam@162 8240 lt_prog_compiler_static='-Bstatic'
cannam@162 8241 fi
cannam@162 8242 ;;
cannam@162 8243
cannam@162 8244 amigaos*)
cannam@162 8245 case $host_cpu in
cannam@162 8246 powerpc)
cannam@162 8247 # see comment about AmigaOS4 .so support
cannam@162 8248 lt_prog_compiler_pic='-fPIC'
cannam@162 8249 ;;
cannam@162 8250 m68k)
cannam@162 8251 # FIXME: we need at least 68020 code to build shared libraries, but
cannam@162 8252 # adding the `-m68020' flag to GCC prevents building anything better,
cannam@162 8253 # like `-m68040'.
cannam@162 8254 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
cannam@162 8255 ;;
cannam@162 8256 esac
cannam@162 8257 ;;
cannam@162 8258
cannam@162 8259 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
cannam@162 8260 # PIC is the default for these OSes.
cannam@162 8261 ;;
cannam@162 8262
cannam@162 8263 mingw* | cygwin* | pw32* | os2* | cegcc*)
cannam@162 8264 # This hack is so that the source file can tell whether it is being
cannam@162 8265 # built for inclusion in a dll (and should export symbols for example).
cannam@162 8266 # Although the cygwin gcc ignores -fPIC, still need this for old-style
cannam@162 8267 # (--disable-auto-import) libraries
cannam@162 8268 lt_prog_compiler_pic='-DDLL_EXPORT'
cannam@162 8269 ;;
cannam@162 8270
cannam@162 8271 darwin* | rhapsody*)
cannam@162 8272 # PIC is the default on this platform
cannam@162 8273 # Common symbols not allowed in MH_DYLIB files
cannam@162 8274 lt_prog_compiler_pic='-fno-common'
cannam@162 8275 ;;
cannam@162 8276
cannam@162 8277 haiku*)
cannam@162 8278 # PIC is the default for Haiku.
cannam@162 8279 # The "-static" flag exists, but is broken.
cannam@162 8280 lt_prog_compiler_static=
cannam@162 8281 ;;
cannam@162 8282
cannam@162 8283 hpux*)
cannam@162 8284 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
cannam@162 8285 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
cannam@162 8286 # sets the default TLS model and affects inlining.
cannam@162 8287 case $host_cpu in
cannam@162 8288 hppa*64*)
cannam@162 8289 # +Z the default
cannam@162 8290 ;;
cannam@162 8291 *)
cannam@162 8292 lt_prog_compiler_pic='-fPIC'
cannam@162 8293 ;;
cannam@162 8294 esac
cannam@162 8295 ;;
cannam@162 8296
cannam@162 8297 interix[3-9]*)
cannam@162 8298 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
cannam@162 8299 # Instead, we relocate shared libraries at runtime.
cannam@162 8300 ;;
cannam@162 8301
cannam@162 8302 msdosdjgpp*)
cannam@162 8303 # Just because we use GCC doesn't mean we suddenly get shared libraries
cannam@162 8304 # on systems that don't support them.
cannam@162 8305 lt_prog_compiler_can_build_shared=no
cannam@162 8306 enable_shared=no
cannam@162 8307 ;;
cannam@162 8308
cannam@162 8309 *nto* | *qnx*)
cannam@162 8310 # QNX uses GNU C++, but need to define -shared option too, otherwise
cannam@162 8311 # it will coredump.
cannam@162 8312 lt_prog_compiler_pic='-fPIC -shared'
cannam@162 8313 ;;
cannam@162 8314
cannam@162 8315 sysv4*MP*)
cannam@162 8316 if test -d /usr/nec; then
cannam@162 8317 lt_prog_compiler_pic=-Kconform_pic
cannam@162 8318 fi
cannam@162 8319 ;;
cannam@162 8320
cannam@162 8321 *)
cannam@162 8322 lt_prog_compiler_pic='-fPIC'
cannam@162 8323 ;;
cannam@162 8324 esac
cannam@162 8325
cannam@162 8326 case $cc_basename in
cannam@162 8327 nvcc*) # Cuda Compiler Driver 2.2
cannam@162 8328 lt_prog_compiler_wl='-Xlinker '
cannam@162 8329 if test -n "$lt_prog_compiler_pic"; then
cannam@162 8330 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
cannam@162 8331 fi
cannam@162 8332 ;;
cannam@162 8333 esac
cannam@162 8334 else
cannam@162 8335 # PORTME Check for flag to pass linker flags through the system compiler.
cannam@162 8336 case $host_os in
cannam@162 8337 aix*)
cannam@162 8338 lt_prog_compiler_wl='-Wl,'
cannam@162 8339 if test "$host_cpu" = ia64; then
cannam@162 8340 # AIX 5 now supports IA64 processor
cannam@162 8341 lt_prog_compiler_static='-Bstatic'
cannam@162 8342 else
cannam@162 8343 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
cannam@162 8344 fi
cannam@162 8345 ;;
cannam@162 8346
cannam@162 8347 mingw* | cygwin* | pw32* | os2* | cegcc*)
cannam@162 8348 # This hack is so that the source file can tell whether it is being
cannam@162 8349 # built for inclusion in a dll (and should export symbols for example).
cannam@162 8350 lt_prog_compiler_pic='-DDLL_EXPORT'
cannam@162 8351 ;;
cannam@162 8352
cannam@162 8353 hpux9* | hpux10* | hpux11*)
cannam@162 8354 lt_prog_compiler_wl='-Wl,'
cannam@162 8355 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cannam@162 8356 # not for PA HP-UX.
cannam@162 8357 case $host_cpu in
cannam@162 8358 hppa*64*|ia64*)
cannam@162 8359 # +Z the default
cannam@162 8360 ;;
cannam@162 8361 *)
cannam@162 8362 lt_prog_compiler_pic='+Z'
cannam@162 8363 ;;
cannam@162 8364 esac
cannam@162 8365 # Is there a better lt_prog_compiler_static that works with the bundled CC?
cannam@162 8366 lt_prog_compiler_static='${wl}-a ${wl}archive'
cannam@162 8367 ;;
cannam@162 8368
cannam@162 8369 irix5* | irix6* | nonstopux*)
cannam@162 8370 lt_prog_compiler_wl='-Wl,'
cannam@162 8371 # PIC (with -KPIC) is the default.
cannam@162 8372 lt_prog_compiler_static='-non_shared'
cannam@162 8373 ;;
cannam@162 8374
cannam@162 8375 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cannam@162 8376 case $cc_basename in
cannam@162 8377 # old Intel for x86_64 which still supported -KPIC.
cannam@162 8378 ecc*)
cannam@162 8379 lt_prog_compiler_wl='-Wl,'
cannam@162 8380 lt_prog_compiler_pic='-KPIC'
cannam@162 8381 lt_prog_compiler_static='-static'
cannam@162 8382 ;;
cannam@162 8383 # icc used to be incompatible with GCC.
cannam@162 8384 # ICC 10 doesn't accept -KPIC any more.
cannam@162 8385 icc* | ifort*)
cannam@162 8386 lt_prog_compiler_wl='-Wl,'
cannam@162 8387 lt_prog_compiler_pic='-fPIC'
cannam@162 8388 lt_prog_compiler_static='-static'
cannam@162 8389 ;;
cannam@162 8390 # Lahey Fortran 8.1.
cannam@162 8391 lf95*)
cannam@162 8392 lt_prog_compiler_wl='-Wl,'
cannam@162 8393 lt_prog_compiler_pic='--shared'
cannam@162 8394 lt_prog_compiler_static='--static'
cannam@162 8395 ;;
cannam@162 8396 nagfor*)
cannam@162 8397 # NAG Fortran compiler
cannam@162 8398 lt_prog_compiler_wl='-Wl,-Wl,,'
cannam@162 8399 lt_prog_compiler_pic='-PIC'
cannam@162 8400 lt_prog_compiler_static='-Bstatic'
cannam@162 8401 ;;
cannam@162 8402 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cannam@162 8403 # Portland Group compilers (*not* the Pentium gcc compiler,
cannam@162 8404 # which looks to be a dead project)
cannam@162 8405 lt_prog_compiler_wl='-Wl,'
cannam@162 8406 lt_prog_compiler_pic='-fpic'
cannam@162 8407 lt_prog_compiler_static='-Bstatic'
cannam@162 8408 ;;
cannam@162 8409 ccc*)
cannam@162 8410 lt_prog_compiler_wl='-Wl,'
cannam@162 8411 # All Alpha code is PIC.
cannam@162 8412 lt_prog_compiler_static='-non_shared'
cannam@162 8413 ;;
cannam@162 8414 xl* | bgxl* | bgf* | mpixl*)
cannam@162 8415 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cannam@162 8416 lt_prog_compiler_wl='-Wl,'
cannam@162 8417 lt_prog_compiler_pic='-qpic'
cannam@162 8418 lt_prog_compiler_static='-qstaticlink'
cannam@162 8419 ;;
cannam@162 8420 *)
cannam@162 8421 case `$CC -V 2>&1 | sed 5q` in
cannam@162 8422 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cannam@162 8423 # Sun Fortran 8.3 passes all unrecognized flags to the linker
cannam@162 8424 lt_prog_compiler_pic='-KPIC'
cannam@162 8425 lt_prog_compiler_static='-Bstatic'
cannam@162 8426 lt_prog_compiler_wl=''
cannam@162 8427 ;;
cannam@162 8428 *Sun\ F* | *Sun*Fortran*)
cannam@162 8429 lt_prog_compiler_pic='-KPIC'
cannam@162 8430 lt_prog_compiler_static='-Bstatic'
cannam@162 8431 lt_prog_compiler_wl='-Qoption ld '
cannam@162 8432 ;;
cannam@162 8433 *Sun\ C*)
cannam@162 8434 # Sun C 5.9
cannam@162 8435 lt_prog_compiler_pic='-KPIC'
cannam@162 8436 lt_prog_compiler_static='-Bstatic'
cannam@162 8437 lt_prog_compiler_wl='-Wl,'
cannam@162 8438 ;;
cannam@162 8439 *Intel*\ [CF]*Compiler*)
cannam@162 8440 lt_prog_compiler_wl='-Wl,'
cannam@162 8441 lt_prog_compiler_pic='-fPIC'
cannam@162 8442 lt_prog_compiler_static='-static'
cannam@162 8443 ;;
cannam@162 8444 *Portland\ Group*)
cannam@162 8445 lt_prog_compiler_wl='-Wl,'
cannam@162 8446 lt_prog_compiler_pic='-fpic'
cannam@162 8447 lt_prog_compiler_static='-Bstatic'
cannam@162 8448 ;;
cannam@162 8449 esac
cannam@162 8450 ;;
cannam@162 8451 esac
cannam@162 8452 ;;
cannam@162 8453
cannam@162 8454 newsos6)
cannam@162 8455 lt_prog_compiler_pic='-KPIC'
cannam@162 8456 lt_prog_compiler_static='-Bstatic'
cannam@162 8457 ;;
cannam@162 8458
cannam@162 8459 *nto* | *qnx*)
cannam@162 8460 # QNX uses GNU C++, but need to define -shared option too, otherwise
cannam@162 8461 # it will coredump.
cannam@162 8462 lt_prog_compiler_pic='-fPIC -shared'
cannam@162 8463 ;;
cannam@162 8464
cannam@162 8465 osf3* | osf4* | osf5*)
cannam@162 8466 lt_prog_compiler_wl='-Wl,'
cannam@162 8467 # All OSF/1 code is PIC.
cannam@162 8468 lt_prog_compiler_static='-non_shared'
cannam@162 8469 ;;
cannam@162 8470
cannam@162 8471 rdos*)
cannam@162 8472 lt_prog_compiler_static='-non_shared'
cannam@162 8473 ;;
cannam@162 8474
cannam@162 8475 solaris*)
cannam@162 8476 lt_prog_compiler_pic='-KPIC'
cannam@162 8477 lt_prog_compiler_static='-Bstatic'
cannam@162 8478 case $cc_basename in
cannam@162 8479 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cannam@162 8480 lt_prog_compiler_wl='-Qoption ld ';;
cannam@162 8481 *)
cannam@162 8482 lt_prog_compiler_wl='-Wl,';;
cannam@162 8483 esac
cannam@162 8484 ;;
cannam@162 8485
cannam@162 8486 sunos4*)
cannam@162 8487 lt_prog_compiler_wl='-Qoption ld '
cannam@162 8488 lt_prog_compiler_pic='-PIC'
cannam@162 8489 lt_prog_compiler_static='-Bstatic'
cannam@162 8490 ;;
cannam@162 8491
cannam@162 8492 sysv4 | sysv4.2uw2* | sysv4.3*)
cannam@162 8493 lt_prog_compiler_wl='-Wl,'
cannam@162 8494 lt_prog_compiler_pic='-KPIC'
cannam@162 8495 lt_prog_compiler_static='-Bstatic'
cannam@162 8496 ;;
cannam@162 8497
cannam@162 8498 sysv4*MP*)
cannam@162 8499 if test -d /usr/nec ;then
cannam@162 8500 lt_prog_compiler_pic='-Kconform_pic'
cannam@162 8501 lt_prog_compiler_static='-Bstatic'
cannam@162 8502 fi
cannam@162 8503 ;;
cannam@162 8504
cannam@162 8505 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
cannam@162 8506 lt_prog_compiler_wl='-Wl,'
cannam@162 8507 lt_prog_compiler_pic='-KPIC'
cannam@162 8508 lt_prog_compiler_static='-Bstatic'
cannam@162 8509 ;;
cannam@162 8510
cannam@162 8511 unicos*)
cannam@162 8512 lt_prog_compiler_wl='-Wl,'
cannam@162 8513 lt_prog_compiler_can_build_shared=no
cannam@162 8514 ;;
cannam@162 8515
cannam@162 8516 uts4*)
cannam@162 8517 lt_prog_compiler_pic='-pic'
cannam@162 8518 lt_prog_compiler_static='-Bstatic'
cannam@162 8519 ;;
cannam@162 8520
cannam@162 8521 *)
cannam@162 8522 lt_prog_compiler_can_build_shared=no
cannam@162 8523 ;;
cannam@162 8524 esac
cannam@162 8525 fi
cannam@162 8526
cannam@162 8527 case $host_os in
cannam@162 8528 # For platforms which do not support PIC, -DPIC is meaningless:
cannam@162 8529 *djgpp*)
cannam@162 8530 lt_prog_compiler_pic=
cannam@162 8531 ;;
cannam@162 8532 *)
cannam@162 8533 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
cannam@162 8534 ;;
cannam@162 8535 esac
cannam@162 8536
cannam@162 8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cannam@162 8538 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
cannam@162 8539 if ${lt_cv_prog_compiler_pic+:} false; then :
cannam@162 8540 $as_echo_n "(cached) " >&6
cannam@162 8541 else
cannam@162 8542 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
cannam@162 8543 fi
cannam@162 8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
cannam@162 8545 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
cannam@162 8546 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cannam@162 8547
cannam@162 8548 #
cannam@162 8549 # Check to make sure the PIC flag actually works.
cannam@162 8550 #
cannam@162 8551 if test -n "$lt_prog_compiler_pic"; then
cannam@162 8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cannam@162 8553 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cannam@162 8554 if ${lt_cv_prog_compiler_pic_works+:} false; then :
cannam@162 8555 $as_echo_n "(cached) " >&6
cannam@162 8556 else
cannam@162 8557 lt_cv_prog_compiler_pic_works=no
cannam@162 8558 ac_outfile=conftest.$ac_objext
cannam@162 8559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@162 8560 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
cannam@162 8561 # Insert the option either (1) after the last *FLAGS variable, or
cannam@162 8562 # (2) before a word containing "conftest.", or (3) at the end.
cannam@162 8563 # Note that $ac_compile itself does not contain backslashes and begins
cannam@162 8564 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@162 8565 # The option is referenced via a variable to avoid confusing sed.
cannam@162 8566 lt_compile=`echo "$ac_compile" | $SED \
cannam@162 8567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@162 8568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@162 8569 -e 's:$: $lt_compiler_flag:'`
cannam@162 8570 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@162 8571 (eval "$lt_compile" 2>conftest.err)
cannam@162 8572 ac_status=$?
cannam@162 8573 cat conftest.err >&5
cannam@162 8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@162 8575 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@162 8576 # The compiler can only warn and ignore the option if not recognized
cannam@162 8577 # So say no if there are warnings other than the usual output.
cannam@162 8578 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cannam@162 8579 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@162 8580 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
cannam@162 8581 lt_cv_prog_compiler_pic_works=yes
cannam@162 8582 fi
cannam@162 8583 fi
cannam@162 8584 $RM conftest*
cannam@162 8585
cannam@162 8586 fi
cannam@162 8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cannam@162 8588 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
cannam@162 8589
cannam@162 8590 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
cannam@162 8591 case $lt_prog_compiler_pic in
cannam@162 8592 "" | " "*) ;;
cannam@162 8593 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
cannam@162 8594 esac
cannam@162 8595 else
cannam@162 8596 lt_prog_compiler_pic=
cannam@162 8597 lt_prog_compiler_can_build_shared=no
cannam@162 8598 fi
cannam@162 8599
cannam@162 8600 fi
cannam@162 8601
cannam@162 8602
cannam@162 8603
cannam@162 8604
cannam@162 8605
cannam@162 8606
cannam@162 8607
cannam@162 8608
cannam@162 8609
cannam@162 8610
cannam@162 8611
cannam@162 8612 #
cannam@162 8613 # Check to make sure the static flag actually works.
cannam@162 8614 #
cannam@162 8615 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cannam@162 8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cannam@162 8617 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cannam@162 8618 if ${lt_cv_prog_compiler_static_works+:} false; then :
cannam@162 8619 $as_echo_n "(cached) " >&6
cannam@162 8620 else
cannam@162 8621 lt_cv_prog_compiler_static_works=no
cannam@162 8622 save_LDFLAGS="$LDFLAGS"
cannam@162 8623 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
cannam@162 8624 echo "$lt_simple_link_test_code" > conftest.$ac_ext
cannam@162 8625 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
cannam@162 8626 # The linker can only warn and ignore the option if not recognized
cannam@162 8627 # So say no if there are warnings
cannam@162 8628 if test -s conftest.err; then
cannam@162 8629 # Append any errors to the config.log.
cannam@162 8630 cat conftest.err 1>&5
cannam@162 8631 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cannam@162 8632 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@162 8633 if diff conftest.exp conftest.er2 >/dev/null; then
cannam@162 8634 lt_cv_prog_compiler_static_works=yes
cannam@162 8635 fi
cannam@162 8636 else
cannam@162 8637 lt_cv_prog_compiler_static_works=yes
cannam@162 8638 fi
cannam@162 8639 fi
cannam@162 8640 $RM -r conftest*
cannam@162 8641 LDFLAGS="$save_LDFLAGS"
cannam@162 8642
cannam@162 8643 fi
cannam@162 8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cannam@162 8645 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
cannam@162 8646
cannam@162 8647 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
cannam@162 8648 :
cannam@162 8649 else
cannam@162 8650 lt_prog_compiler_static=
cannam@162 8651 fi
cannam@162 8652
cannam@162 8653
cannam@162 8654
cannam@162 8655
cannam@162 8656
cannam@162 8657
cannam@162 8658
cannam@162 8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@162 8660 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cannam@162 8661 if ${lt_cv_prog_compiler_c_o+:} false; then :
cannam@162 8662 $as_echo_n "(cached) " >&6
cannam@162 8663 else
cannam@162 8664 lt_cv_prog_compiler_c_o=no
cannam@162 8665 $RM -r conftest 2>/dev/null
cannam@162 8666 mkdir conftest
cannam@162 8667 cd conftest
cannam@162 8668 mkdir out
cannam@162 8669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@162 8670
cannam@162 8671 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@162 8672 # Insert the option either (1) after the last *FLAGS variable, or
cannam@162 8673 # (2) before a word containing "conftest.", or (3) at the end.
cannam@162 8674 # Note that $ac_compile itself does not contain backslashes and begins
cannam@162 8675 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@162 8676 lt_compile=`echo "$ac_compile" | $SED \
cannam@162 8677 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@162 8678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@162 8679 -e 's:$: $lt_compiler_flag:'`
cannam@162 8680 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@162 8681 (eval "$lt_compile" 2>out/conftest.err)
cannam@162 8682 ac_status=$?
cannam@162 8683 cat out/conftest.err >&5
cannam@162 8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@162 8685 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@162 8686 then
cannam@162 8687 # The compiler can only warn and ignore the option if not recognized
cannam@162 8688 # So say no if there are warnings
cannam@162 8689 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cannam@162 8690 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cannam@162 8691 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cannam@162 8692 lt_cv_prog_compiler_c_o=yes
cannam@162 8693 fi
cannam@162 8694 fi
cannam@162 8695 chmod u+w . 2>&5
cannam@162 8696 $RM conftest*
cannam@162 8697 # SGI C++ compiler will create directory out/ii_files/ for
cannam@162 8698 # template instantiation
cannam@162 8699 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
cannam@162 8700 $RM out/* && rmdir out
cannam@162 8701 cd ..
cannam@162 8702 $RM -r conftest
cannam@162 8703 $RM conftest*
cannam@162 8704
cannam@162 8705 fi
cannam@162 8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cannam@162 8707 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
cannam@162 8708
cannam@162 8709
cannam@162 8710
cannam@162 8711
cannam@162 8712
cannam@162 8713
cannam@162 8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@162 8715 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cannam@162 8716 if ${lt_cv_prog_compiler_c_o+:} false; then :
cannam@162 8717 $as_echo_n "(cached) " >&6
cannam@162 8718 else
cannam@162 8719 lt_cv_prog_compiler_c_o=no
cannam@162 8720 $RM -r conftest 2>/dev/null
cannam@162 8721 mkdir conftest
cannam@162 8722 cd conftest
cannam@162 8723 mkdir out
cannam@162 8724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@162 8725
cannam@162 8726 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@162 8727 # Insert the option either (1) after the last *FLAGS variable, or
cannam@162 8728 # (2) before a word containing "conftest.", or (3) at the end.
cannam@162 8729 # Note that $ac_compile itself does not contain backslashes and begins
cannam@162 8730 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@162 8731 lt_compile=`echo "$ac_compile" | $SED \
cannam@162 8732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@162 8733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@162 8734 -e 's:$: $lt_compiler_flag:'`
cannam@162 8735 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@162 8736 (eval "$lt_compile" 2>out/conftest.err)
cannam@162 8737 ac_status=$?
cannam@162 8738 cat out/conftest.err >&5
cannam@162 8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@162 8740 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@162 8741 then
cannam@162 8742 # The compiler can only warn and ignore the option if not recognized
cannam@162 8743 # So say no if there are warnings
cannam@162 8744 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cannam@162 8745 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cannam@162 8746 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cannam@162 8747 lt_cv_prog_compiler_c_o=yes
cannam@162 8748 fi
cannam@162 8749 fi
cannam@162 8750 chmod u+w . 2>&5
cannam@162 8751 $RM conftest*
cannam@162 8752 # SGI C++ compiler will create directory out/ii_files/ for
cannam@162 8753 # template instantiation
cannam@162 8754 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
cannam@162 8755 $RM out/* && rmdir out
cannam@162 8756 cd ..
cannam@162 8757 $RM -r conftest
cannam@162 8758 $RM conftest*
cannam@162 8759
cannam@162 8760 fi
cannam@162 8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cannam@162 8762 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
cannam@162 8763
cannam@162 8764
cannam@162 8765
cannam@162 8766
cannam@162 8767 hard_links="nottested"
cannam@162 8768 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
cannam@162 8769 # do not overwrite the value of need_locks provided by the user
cannam@162 8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cannam@162 8771 $as_echo_n "checking if we can lock with hard links... " >&6; }
cannam@162 8772 hard_links=yes
cannam@162 8773 $RM conftest*
cannam@162 8774 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@162 8775 touch conftest.a
cannam@162 8776 ln conftest.a conftest.b 2>&5 || hard_links=no
cannam@162 8777 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@162 8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cannam@162 8779 $as_echo "$hard_links" >&6; }
cannam@162 8780 if test "$hard_links" = no; then
cannam@162 8781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cannam@162 8782 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
cannam@162 8783 need_locks=warn
cannam@162 8784 fi
cannam@162 8785 else
cannam@162 8786 need_locks=no
cannam@162 8787 fi
cannam@162 8788
cannam@162 8789
cannam@162 8790
cannam@162 8791
cannam@162 8792
cannam@162 8793
cannam@162 8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@162 8795 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
cannam@162 8796
cannam@162 8797 runpath_var=
cannam@162 8798 allow_undefined_flag=
cannam@162 8799 always_export_symbols=no
cannam@162 8800 archive_cmds=
cannam@162 8801 archive_expsym_cmds=
cannam@162 8802 compiler_needs_object=no
cannam@162 8803 enable_shared_with_static_runtimes=no
cannam@162 8804 export_dynamic_flag_spec=
cannam@162 8805 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@162 8806 hardcode_automatic=no
cannam@162 8807 hardcode_direct=no
cannam@162 8808 hardcode_direct_absolute=no
cannam@162 8809 hardcode_libdir_flag_spec=
cannam@162 8810 hardcode_libdir_separator=
cannam@162 8811 hardcode_minus_L=no
cannam@162 8812 hardcode_shlibpath_var=unsupported
cannam@162 8813 inherit_rpath=no
cannam@162 8814 link_all_deplibs=unknown
cannam@162 8815 module_cmds=
cannam@162 8816 module_expsym_cmds=
cannam@162 8817 old_archive_from_new_cmds=
cannam@162 8818 old_archive_from_expsyms_cmds=
cannam@162 8819 thread_safe_flag_spec=
cannam@162 8820 whole_archive_flag_spec=
cannam@162 8821 # include_expsyms should be a list of space-separated symbols to be *always*
cannam@162 8822 # included in the symbol list
cannam@162 8823 include_expsyms=
cannam@162 8824 # exclude_expsyms can be an extended regexp of symbols to exclude
cannam@162 8825 # it will be wrapped by ` (' and `)$', so one must not match beginning or
cannam@162 8826 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
cannam@162 8827 # as well as any symbol that contains `d'.
cannam@162 8828 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cannam@162 8829 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
cannam@162 8830 # platforms (ab)use it in PIC code, but their linkers get confused if
cannam@162 8831 # the symbol is explicitly referenced. Since portable code cannot
cannam@162 8832 # rely on this symbol name, it's probably fine to never include it in
cannam@162 8833 # preloaded symbol tables.
cannam@162 8834 # Exclude shared library initialization/finalization symbols.
cannam@162 8835 extract_expsyms_cmds=
cannam@162 8836
cannam@162 8837 case $host_os in
cannam@162 8838 cygwin* | mingw* | pw32* | cegcc*)
cannam@162 8839 # FIXME: the MSVC++ port hasn't been tested in a loooong time
cannam@162 8840 # When not using gcc, we currently assume that we are using
cannam@162 8841 # Microsoft Visual C++.
cannam@162 8842 if test "$GCC" != yes; then
cannam@162 8843 with_gnu_ld=no
cannam@162 8844 fi
cannam@162 8845 ;;
cannam@162 8846 interix*)
cannam@162 8847 # we just hope/assume this is gcc and not c89 (= MSVC++)
cannam@162 8848 with_gnu_ld=yes
cannam@162 8849 ;;
cannam@162 8850 openbsd*)
cannam@162 8851 with_gnu_ld=no
cannam@162 8852 ;;
cannam@162 8853 linux* | k*bsd*-gnu | gnu*)
cannam@162 8854 link_all_deplibs=no
cannam@162 8855 ;;
cannam@162 8856 esac
cannam@162 8857
cannam@162 8858 ld_shlibs=yes
cannam@162 8859
cannam@162 8860 # On some targets, GNU ld is compatible enough with the native linker
cannam@162 8861 # that we're better off using the native interface for both.
cannam@162 8862 lt_use_gnu_ld_interface=no
cannam@162 8863 if test "$with_gnu_ld" = yes; then
cannam@162 8864 case $host_os in
cannam@162 8865 aix*)
cannam@162 8866 # The AIX port of GNU ld has always aspired to compatibility
cannam@162 8867 # with the native linker. However, as the warning in the GNU ld
cannam@162 8868 # block says, versions before 2.19.5* couldn't really create working
cannam@162 8869 # shared libraries, regardless of the interface used.
cannam@162 8870 case `$LD -v 2>&1` in
cannam@162 8871 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
cannam@162 8872 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
cannam@162 8873 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
cannam@162 8874 *)
cannam@162 8875 lt_use_gnu_ld_interface=yes
cannam@162 8876 ;;
cannam@162 8877 esac
cannam@162 8878 ;;
cannam@162 8879 *)
cannam@162 8880 lt_use_gnu_ld_interface=yes
cannam@162 8881 ;;
cannam@162 8882 esac
cannam@162 8883 fi
cannam@162 8884
cannam@162 8885 if test "$lt_use_gnu_ld_interface" = yes; then
cannam@162 8886 # If archive_cmds runs LD, not CC, wlarc should be empty
cannam@162 8887 wlarc='${wl}'
cannam@162 8888
cannam@162 8889 # Set some defaults for GNU ld with shared library support. These
cannam@162 8890 # are reset later if shared libraries are not supported. Putting them
cannam@162 8891 # here allows them to be overridden if necessary.
cannam@162 8892 runpath_var=LD_RUN_PATH
cannam@162 8893 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@162 8894 export_dynamic_flag_spec='${wl}--export-dynamic'
cannam@162 8895 # ancient GNU ld didn't support --whole-archive et. al.
cannam@162 8896 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
cannam@162 8897 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
cannam@162 8898 else
cannam@162 8899 whole_archive_flag_spec=
cannam@162 8900 fi
cannam@162 8901 supports_anon_versioning=no
cannam@162 8902 case `$LD -v 2>&1` in
cannam@162 8903 *GNU\ gold*) supports_anon_versioning=yes ;;
cannam@162 8904 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
cannam@162 8905 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
cannam@162 8906 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
cannam@162 8907 *\ 2.11.*) ;; # other 2.11 versions
cannam@162 8908 *) supports_anon_versioning=yes ;;
cannam@162 8909 esac
cannam@162 8910
cannam@162 8911 # See if GNU ld supports shared libraries.
cannam@162 8912 case $host_os in
cannam@162 8913 aix[3-9]*)
cannam@162 8914 # On AIX/PPC, the GNU linker is very broken
cannam@162 8915 if test "$host_cpu" != ia64; then
cannam@162 8916 ld_shlibs=no
cannam@162 8917 cat <<_LT_EOF 1>&2
cannam@162 8918
cannam@162 8919 *** Warning: the GNU linker, at least up to release 2.19, is reported
cannam@162 8920 *** to be unable to reliably create shared libraries on AIX.
cannam@162 8921 *** Therefore, libtool is disabling shared libraries support. If you
cannam@162 8922 *** really care for shared libraries, you may want to install binutils
cannam@162 8923 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
cannam@162 8924 *** You will then need to restart the configuration process.
cannam@162 8925
cannam@162 8926 _LT_EOF
cannam@162 8927 fi
cannam@162 8928 ;;
cannam@162 8929
cannam@162 8930 amigaos*)
cannam@162 8931 case $host_cpu in
cannam@162 8932 powerpc)
cannam@162 8933 # see comment about AmigaOS4 .so support
cannam@162 8934 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@162 8935 archive_expsym_cmds=''
cannam@162 8936 ;;
cannam@162 8937 m68k)
cannam@162 8938 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@162 8939 hardcode_libdir_flag_spec='-L$libdir'
cannam@162 8940 hardcode_minus_L=yes
cannam@162 8941 ;;
cannam@162 8942 esac
cannam@162 8943 ;;
cannam@162 8944
cannam@162 8945 beos*)
cannam@162 8946 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@162 8947 allow_undefined_flag=unsupported
cannam@162 8948 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
cannam@162 8949 # support --undefined. This deserves some investigation. FIXME
cannam@162 8950 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@162 8951 else
cannam@162 8952 ld_shlibs=no
cannam@162 8953 fi
cannam@162 8954 ;;
cannam@162 8955
cannam@162 8956 cygwin* | mingw* | pw32* | cegcc*)
cannam@162 8957 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
cannam@162 8958 # as there is no search path for DLLs.
cannam@162 8959 hardcode_libdir_flag_spec='-L$libdir'
cannam@162 8960 export_dynamic_flag_spec='${wl}--export-all-symbols'
cannam@162 8961 allow_undefined_flag=unsupported
cannam@162 8962 always_export_symbols=no
cannam@162 8963 enable_shared_with_static_runtimes=yes
cannam@162 8964 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@162 8965 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
cannam@162 8966
cannam@162 8967 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
cannam@162 8968 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
cannam@162 8969 # If the export-symbols file already is a .def file (1st line
cannam@162 8970 # is EXPORTS), use it as is; otherwise, prepend...
cannam@162 8971 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@162 8972 cp $export_symbols $output_objdir/$soname.def;
cannam@162 8973 else
cannam@162 8974 echo EXPORTS > $output_objdir/$soname.def;
cannam@162 8975 cat $export_symbols >> $output_objdir/$soname.def;
cannam@162 8976 fi~
cannam@162 8977 $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@162 8978 else
cannam@162 8979 ld_shlibs=no
cannam@162 8980 fi
cannam@162 8981 ;;
cannam@162 8982
cannam@162 8983 haiku*)
cannam@162 8984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@162 8985 link_all_deplibs=yes
cannam@162 8986 ;;
cannam@162 8987
cannam@162 8988 interix[3-9]*)
cannam@162 8989 hardcode_direct=no
cannam@162 8990 hardcode_shlibpath_var=no
cannam@162 8991 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
cannam@162 8992 export_dynamic_flag_spec='${wl}-E'
cannam@162 8993 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
cannam@162 8994 # Instead, shared libraries are loaded at an image base (0x10000000 by
cannam@162 8995 # default) and relocated if they conflict, which is a slow very memory
cannam@162 8996 # consuming and fragmenting process. To avoid this, we pick a random,
cannam@162 8997 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
cannam@162 8998 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
cannam@162 8999 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@162 9000 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@162 9001 ;;
cannam@162 9002
cannam@162 9003 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cannam@162 9004 tmp_diet=no
cannam@162 9005 if test "$host_os" = linux-dietlibc; then
cannam@162 9006 case $cc_basename in
cannam@162 9007 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
cannam@162 9008 esac
cannam@162 9009 fi
cannam@162 9010 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
cannam@162 9011 && test "$tmp_diet" = no
cannam@162 9012 then
cannam@162 9013 tmp_addflag=' $pic_flag'
cannam@162 9014 tmp_sharedflag='-shared'
cannam@162 9015 case $cc_basename,$host_cpu in
cannam@162 9016 pgcc*) # Portland Group C compiler
cannam@162 9017 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@162 9018 tmp_addflag=' $pic_flag'
cannam@162 9019 ;;
cannam@162 9020 pgf77* | pgf90* | pgf95* | pgfortran*)
cannam@162 9021 # Portland Group f77 and f90 compilers
cannam@162 9022 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@162 9023 tmp_addflag=' $pic_flag -Mnomain' ;;
cannam@162 9024 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
cannam@162 9025 tmp_addflag=' -i_dynamic' ;;
cannam@162 9026 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
cannam@162 9027 tmp_addflag=' -i_dynamic -nofor_main' ;;
cannam@162 9028 ifc* | ifort*) # Intel Fortran compiler
cannam@162 9029 tmp_addflag=' -nofor_main' ;;
cannam@162 9030 lf95*) # Lahey Fortran 8.1
cannam@162 9031 whole_archive_flag_spec=
cannam@162 9032 tmp_sharedflag='--shared' ;;
cannam@162 9033 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cannam@162 9034 tmp_sharedflag='-qmkshrobj'
cannam@162 9035 tmp_addflag= ;;
cannam@162 9036 nvcc*) # Cuda Compiler Driver 2.2
cannam@162 9037 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@162 9038 compiler_needs_object=yes
cannam@162 9039 ;;
cannam@162 9040 esac
cannam@162 9041 case `$CC -V 2>&1 | sed 5q` in
cannam@162 9042 *Sun\ C*) # Sun C 5.9
cannam@162 9043 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@162 9044 compiler_needs_object=yes
cannam@162 9045 tmp_sharedflag='-G' ;;
cannam@162 9046 *Sun\ F*) # Sun Fortran 8.3
cannam@162 9047 tmp_sharedflag='-G' ;;
cannam@162 9048 esac
cannam@162 9049 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@162 9050
cannam@162 9051 if test "x$supports_anon_versioning" = xyes; then
cannam@162 9052 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
cannam@162 9053 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@162 9054 echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@162 9055 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
cannam@162 9056 fi
cannam@162 9057
cannam@162 9058 case $cc_basename in
cannam@162 9059 xlf* | bgf* | bgxlf* | mpixlf*)
cannam@162 9060 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
cannam@162 9061 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cannam@162 9062 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@162 9063 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cannam@162 9064 if test "x$supports_anon_versioning" = xyes; then
cannam@162 9065 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
cannam@162 9066 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@162 9067 echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@162 9068 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cannam@162 9069 fi
cannam@162 9070 ;;
cannam@162 9071 esac
cannam@162 9072 else
cannam@162 9073 ld_shlibs=no
cannam@162 9074 fi
cannam@162 9075 ;;
cannam@162 9076
cannam@162 9077 netbsd* | netbsdelf*-gnu)
cannam@162 9078 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@162 9079 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
cannam@162 9080 wlarc=
cannam@162 9081 else
cannam@162 9082 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@162 9083 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@162 9084 fi
cannam@162 9085 ;;
cannam@162 9086
cannam@162 9087 solaris*)
cannam@162 9088 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
cannam@162 9089 ld_shlibs=no
cannam@162 9090 cat <<_LT_EOF 1>&2
cannam@162 9091
cannam@162 9092 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
cannam@162 9093 *** create shared libraries on Solaris systems. Therefore, libtool
cannam@162 9094 *** is disabling shared libraries support. We urge you to upgrade GNU
cannam@162 9095 *** binutils to release 2.9.1 or newer. Another option is to modify
cannam@162 9096 *** your PATH or compiler configuration so that the native linker is
cannam@162 9097 *** used, and then restart.
cannam@162 9098
cannam@162 9099 _LT_EOF
cannam@162 9100 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@162 9101 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@162 9102 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@162 9103 else
cannam@162 9104 ld_shlibs=no
cannam@162 9105 fi
cannam@162 9106 ;;
cannam@162 9107
cannam@162 9108 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
cannam@162 9109 case `$LD -v 2>&1` in
cannam@162 9110 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
cannam@162 9111 ld_shlibs=no
cannam@162 9112 cat <<_LT_EOF 1>&2
cannam@162 9113
cannam@162 9114 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
cannam@162 9115 *** reliably create shared libraries on SCO systems. Therefore, libtool
cannam@162 9116 *** is disabling shared libraries support. We urge you to upgrade GNU
cannam@162 9117 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
cannam@162 9118 *** your PATH or compiler configuration so that the native linker is
cannam@162 9119 *** used, and then restart.
cannam@162 9120
cannam@162 9121 _LT_EOF
cannam@162 9122 ;;
cannam@162 9123 *)
cannam@162 9124 # For security reasons, it is highly recommended that you always
cannam@162 9125 # use absolute paths for naming shared libraries, and exclude the
cannam@162 9126 # DT_RUNPATH tag from executables and libraries. But doing so
cannam@162 9127 # requires that you compile everything twice, which is a pain.
cannam@162 9128 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@162 9129 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@162 9130 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@162 9131 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@162 9132 else
cannam@162 9133 ld_shlibs=no
cannam@162 9134 fi
cannam@162 9135 ;;
cannam@162 9136 esac
cannam@162 9137 ;;
cannam@162 9138
cannam@162 9139 sunos4*)
cannam@162 9140 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@162 9141 wlarc=
cannam@162 9142 hardcode_direct=yes
cannam@162 9143 hardcode_shlibpath_var=no
cannam@162 9144 ;;
cannam@162 9145
cannam@162 9146 *)
cannam@162 9147 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@162 9148 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@162 9149 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@162 9150 else
cannam@162 9151 ld_shlibs=no
cannam@162 9152 fi
cannam@162 9153 ;;
cannam@162 9154 esac
cannam@162 9155
cannam@162 9156 if test "$ld_shlibs" = no; then
cannam@162 9157 runpath_var=
cannam@162 9158 hardcode_libdir_flag_spec=
cannam@162 9159 export_dynamic_flag_spec=
cannam@162 9160 whole_archive_flag_spec=
cannam@162 9161 fi
cannam@162 9162 else
cannam@162 9163 # PORTME fill in a description of your system's linker (not GNU ld)
cannam@162 9164 case $host_os in
cannam@162 9165 aix3*)
cannam@162 9166 allow_undefined_flag=unsupported
cannam@162 9167 always_export_symbols=yes
cannam@162 9168 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@162 9169 # Note: this linker hardcodes the directories in LIBPATH if there
cannam@162 9170 # are no directories specified by -L.
cannam@162 9171 hardcode_minus_L=yes
cannam@162 9172 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
cannam@162 9173 # Neither direct hardcoding nor static linking is supported with a
cannam@162 9174 # broken collect2.
cannam@162 9175 hardcode_direct=unsupported
cannam@162 9176 fi
cannam@162 9177 ;;
cannam@162 9178
cannam@162 9179 aix[4-9]*)
cannam@162 9180 if test "$host_cpu" = ia64; then
cannam@162 9181 # On IA64, the linker does run time linking by default, so we don't
cannam@162 9182 # have to do anything special.
cannam@162 9183 aix_use_runtimelinking=no
cannam@162 9184 exp_sym_flag='-Bexport'
cannam@162 9185 no_entry_flag=""
cannam@162 9186 else
cannam@162 9187 # If we're using GNU nm, then we don't want the "-C" option.
cannam@162 9188 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cannam@162 9189 # Also, AIX nm treats weak defined symbols like other global
cannam@162 9190 # defined symbols, whereas GNU nm marks them as "W".
cannam@162 9191 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cannam@162 9192 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cannam@162 9193 else
cannam@162 9194 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cannam@162 9195 fi
cannam@162 9196 aix_use_runtimelinking=no
cannam@162 9197
cannam@162 9198 # Test if we are trying to use run time linking or normal
cannam@162 9199 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cannam@162 9200 # need to do runtime linking.
cannam@162 9201 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
cannam@162 9202 for ld_flag in $LDFLAGS; do
cannam@162 9203 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
cannam@162 9204 aix_use_runtimelinking=yes
cannam@162 9205 break
cannam@162 9206 fi
cannam@162 9207 done
cannam@162 9208 ;;
cannam@162 9209 esac
cannam@162 9210
cannam@162 9211 exp_sym_flag='-bexport'
cannam@162 9212 no_entry_flag='-bnoentry'
cannam@162 9213 fi
cannam@162 9214
cannam@162 9215 # When large executables or shared objects are built, AIX ld can
cannam@162 9216 # have problems creating the table of contents. If linking a library
cannam@162 9217 # or program results in "error TOC overflow" add -mminimal-toc to
cannam@162 9218 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
cannam@162 9219 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
cannam@162 9220
cannam@162 9221 archive_cmds=''
cannam@162 9222 hardcode_direct=yes
cannam@162 9223 hardcode_direct_absolute=yes
cannam@162 9224 hardcode_libdir_separator=':'
cannam@162 9225 link_all_deplibs=yes
cannam@162 9226 file_list_spec='${wl}-f,'
cannam@162 9227
cannam@162 9228 if test "$GCC" = yes; then
cannam@162 9229 case $host_os in aix4.[012]|aix4.[012].*)
cannam@162 9230 # We only want to do this on AIX 4.2 and lower, the check
cannam@162 9231 # below for broken collect2 doesn't work under 4.3+
cannam@162 9232 collect2name=`${CC} -print-prog-name=collect2`
cannam@162 9233 if test -f "$collect2name" &&
cannam@162 9234 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
cannam@162 9235 then
cannam@162 9236 # We have reworked collect2
cannam@162 9237 :
cannam@162 9238 else
cannam@162 9239 # We have old collect2
cannam@162 9240 hardcode_direct=unsupported
cannam@162 9241 # It fails to find uninstalled libraries when the uninstalled
cannam@162 9242 # path is not listed in the libpath. Setting hardcode_minus_L
cannam@162 9243 # to unsupported forces relinking
cannam@162 9244 hardcode_minus_L=yes
cannam@162 9245 hardcode_libdir_flag_spec='-L$libdir'
cannam@162 9246 hardcode_libdir_separator=
cannam@162 9247 fi
cannam@162 9248 ;;
cannam@162 9249 esac
cannam@162 9250 shared_flag='-shared'
cannam@162 9251 if test "$aix_use_runtimelinking" = yes; then
cannam@162 9252 shared_flag="$shared_flag "'${wl}-G'
cannam@162 9253 fi
cannam@162 9254 link_all_deplibs=no
cannam@162 9255 else
cannam@162 9256 # not using gcc
cannam@162 9257 if test "$host_cpu" = ia64; then
cannam@162 9258 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
cannam@162 9259 # chokes on -Wl,-G. The following line is correct:
cannam@162 9260 shared_flag='-G'
cannam@162 9261 else
cannam@162 9262 if test "$aix_use_runtimelinking" = yes; then
cannam@162 9263 shared_flag='${wl}-G'
cannam@162 9264 else
cannam@162 9265 shared_flag='${wl}-bM:SRE'
cannam@162 9266 fi
cannam@162 9267 fi
cannam@162 9268 fi
cannam@162 9269
cannam@162 9270 export_dynamic_flag_spec='${wl}-bexpall'
cannam@162 9271 # It seems that -bexpall does not export symbols beginning with
cannam@162 9272 # underscore (_), so it is better to generate a list of symbols to export.
cannam@162 9273 always_export_symbols=yes
cannam@162 9274 if test "$aix_use_runtimelinking" = yes; then
cannam@162 9275 # Warning - without using the other runtime loading flags (-brtl),
cannam@162 9276 # -berok will link without error, but may produce a broken library.
cannam@162 9277 allow_undefined_flag='-berok'
cannam@162 9278 # Determine the default libpath from the value encoded in an
cannam@162 9279 # empty executable.
cannam@162 9280 if test "${lt_cv_aix_libpath+set}" = set; then
cannam@162 9281 aix_libpath=$lt_cv_aix_libpath
cannam@162 9282 else
cannam@162 9283 if ${lt_cv_aix_libpath_+:} false; then :
cannam@162 9284 $as_echo_n "(cached) " >&6
cannam@162 9285 else
cannam@162 9286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 9287 /* end confdefs.h. */
cannam@162 9288
cannam@162 9289 int
cannam@162 9290 main ()
cannam@162 9291 {
cannam@162 9292
cannam@162 9293 ;
cannam@162 9294 return 0;
cannam@162 9295 }
cannam@162 9296 _ACEOF
cannam@162 9297 if ac_fn_c_try_link "$LINENO"; then :
cannam@162 9298
cannam@162 9299 lt_aix_libpath_sed='
cannam@162 9300 /Import File Strings/,/^$/ {
cannam@162 9301 /^0/ {
cannam@162 9302 s/^0 *\([^ ]*\) *$/\1/
cannam@162 9303 p
cannam@162 9304 }
cannam@162 9305 }'
cannam@162 9306 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@162 9307 # Check for a 64-bit object if we didn't find anything.
cannam@162 9308 if test -z "$lt_cv_aix_libpath_"; then
cannam@162 9309 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@162 9310 fi
cannam@162 9311 fi
cannam@162 9312 rm -f core conftest.err conftest.$ac_objext \
cannam@162 9313 conftest$ac_exeext conftest.$ac_ext
cannam@162 9314 if test -z "$lt_cv_aix_libpath_"; then
cannam@162 9315 lt_cv_aix_libpath_="/usr/lib:/lib"
cannam@162 9316 fi
cannam@162 9317
cannam@162 9318 fi
cannam@162 9319
cannam@162 9320 aix_libpath=$lt_cv_aix_libpath_
cannam@162 9321 fi
cannam@162 9322
cannam@162 9323 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@162 9324 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cannam@162 9325 else
cannam@162 9326 if test "$host_cpu" = ia64; then
cannam@162 9327 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
cannam@162 9328 allow_undefined_flag="-z nodefs"
cannam@162 9329 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@162 9330 else
cannam@162 9331 # Determine the default libpath from the value encoded in an
cannam@162 9332 # empty executable.
cannam@162 9333 if test "${lt_cv_aix_libpath+set}" = set; then
cannam@162 9334 aix_libpath=$lt_cv_aix_libpath
cannam@162 9335 else
cannam@162 9336 if ${lt_cv_aix_libpath_+:} false; then :
cannam@162 9337 $as_echo_n "(cached) " >&6
cannam@162 9338 else
cannam@162 9339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 9340 /* end confdefs.h. */
cannam@162 9341
cannam@162 9342 int
cannam@162 9343 main ()
cannam@162 9344 {
cannam@162 9345
cannam@162 9346 ;
cannam@162 9347 return 0;
cannam@162 9348 }
cannam@162 9349 _ACEOF
cannam@162 9350 if ac_fn_c_try_link "$LINENO"; then :
cannam@162 9351
cannam@162 9352 lt_aix_libpath_sed='
cannam@162 9353 /Import File Strings/,/^$/ {
cannam@162 9354 /^0/ {
cannam@162 9355 s/^0 *\([^ ]*\) *$/\1/
cannam@162 9356 p
cannam@162 9357 }
cannam@162 9358 }'
cannam@162 9359 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@162 9360 # Check for a 64-bit object if we didn't find anything.
cannam@162 9361 if test -z "$lt_cv_aix_libpath_"; then
cannam@162 9362 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@162 9363 fi
cannam@162 9364 fi
cannam@162 9365 rm -f core conftest.err conftest.$ac_objext \
cannam@162 9366 conftest$ac_exeext conftest.$ac_ext
cannam@162 9367 if test -z "$lt_cv_aix_libpath_"; then
cannam@162 9368 lt_cv_aix_libpath_="/usr/lib:/lib"
cannam@162 9369 fi
cannam@162 9370
cannam@162 9371 fi
cannam@162 9372
cannam@162 9373 aix_libpath=$lt_cv_aix_libpath_
cannam@162 9374 fi
cannam@162 9375
cannam@162 9376 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@162 9377 # Warning - without using the other run time loading flags,
cannam@162 9378 # -berok will link without error, but may produce a broken library.
cannam@162 9379 no_undefined_flag=' ${wl}-bernotok'
cannam@162 9380 allow_undefined_flag=' ${wl}-berok'
cannam@162 9381 if test "$with_gnu_ld" = yes; then
cannam@162 9382 # We only use this code for GNU lds that support --whole-archive.
cannam@162 9383 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
cannam@162 9384 else
cannam@162 9385 # Exported symbols can be pulled into shared objects from archives
cannam@162 9386 whole_archive_flag_spec='$convenience'
cannam@162 9387 fi
cannam@162 9388 archive_cmds_need_lc=yes
cannam@162 9389 # This is similar to how AIX traditionally builds its shared libraries.
cannam@162 9390 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
cannam@162 9391 fi
cannam@162 9392 fi
cannam@162 9393 ;;
cannam@162 9394
cannam@162 9395 amigaos*)
cannam@162 9396 case $host_cpu in
cannam@162 9397 powerpc)
cannam@162 9398 # see comment about AmigaOS4 .so support
cannam@162 9399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@162 9400 archive_expsym_cmds=''
cannam@162 9401 ;;
cannam@162 9402 m68k)
cannam@162 9403 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@162 9404 hardcode_libdir_flag_spec='-L$libdir'
cannam@162 9405 hardcode_minus_L=yes
cannam@162 9406 ;;
cannam@162 9407 esac
cannam@162 9408 ;;
cannam@162 9409
cannam@162 9410 bsdi[45]*)
cannam@162 9411 export_dynamic_flag_spec=-rdynamic
cannam@162 9412 ;;
cannam@162 9413
cannam@162 9414 cygwin* | mingw* | pw32* | cegcc*)
cannam@162 9415 # When not using gcc, we currently assume that we are using
cannam@162 9416 # Microsoft Visual C++.
cannam@162 9417 # hardcode_libdir_flag_spec is actually meaningless, as there is
cannam@162 9418 # no search path for DLLs.
cannam@162 9419 case $cc_basename in
cannam@162 9420 cl*)
cannam@162 9421 # Native MSVC
cannam@162 9422 hardcode_libdir_flag_spec=' '
cannam@162 9423 allow_undefined_flag=unsupported
cannam@162 9424 always_export_symbols=yes
cannam@162 9425 file_list_spec='@'
cannam@162 9426 # Tell ltmain to make .lib files, not .a files.
cannam@162 9427 libext=lib
cannam@162 9428 # Tell ltmain to make .dll files, not .so files.
cannam@162 9429 shrext_cmds=".dll"
cannam@162 9430 # FIXME: Setting linknames here is a bad hack.
cannam@162 9431 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
cannam@162 9432 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@162 9433 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
cannam@162 9434 else
cannam@162 9435 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
cannam@162 9436 fi~
cannam@162 9437 $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@162 9438 linknames='
cannam@162 9439 # The linker will not automatically build a static lib if we build a DLL.
cannam@162 9440 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
cannam@162 9441 enable_shared_with_static_runtimes=yes
cannam@162 9442 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cannam@162 9443 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
cannam@162 9444 # Don't use ranlib
cannam@162 9445 old_postinstall_cmds='chmod 644 $oldlib'
cannam@162 9446 postlink_cmds='lt_outputfile="@OUTPUT@"~
cannam@162 9447 lt_tool_outputfile="@TOOL_OUTPUT@"~
cannam@162 9448 case $lt_outputfile in
cannam@162 9449 *.exe|*.EXE) ;;
cannam@162 9450 *)
cannam@162 9451 lt_outputfile="$lt_outputfile.exe"
cannam@162 9452 lt_tool_outputfile="$lt_tool_outputfile.exe"
cannam@162 9453 ;;
cannam@162 9454 esac~
cannam@162 9455 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
cannam@162 9456 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
cannam@162 9457 $RM "$lt_outputfile.manifest";
cannam@162 9458 fi'
cannam@162 9459 ;;
cannam@162 9460 *)
cannam@162 9461 # Assume MSVC wrapper
cannam@162 9462 hardcode_libdir_flag_spec=' '
cannam@162 9463 allow_undefined_flag=unsupported
cannam@162 9464 # Tell ltmain to make .lib files, not .a files.
cannam@162 9465 libext=lib
cannam@162 9466 # Tell ltmain to make .dll files, not .so files.
cannam@162 9467 shrext_cmds=".dll"
cannam@162 9468 # FIXME: Setting linknames here is a bad hack.
cannam@162 9469 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
cannam@162 9470 # The linker will automatically build a .lib file if we build a DLL.
cannam@162 9471 old_archive_from_new_cmds='true'
cannam@162 9472 # FIXME: Should let the user specify the lib program.
cannam@162 9473 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
cannam@162 9474 enable_shared_with_static_runtimes=yes
cannam@162 9475 ;;
cannam@162 9476 esac
cannam@162 9477 ;;
cannam@162 9478
cannam@162 9479 darwin* | rhapsody*)
cannam@162 9480
cannam@162 9481
cannam@162 9482 archive_cmds_need_lc=no
cannam@162 9483 hardcode_direct=no
cannam@162 9484 hardcode_automatic=yes
cannam@162 9485 hardcode_shlibpath_var=unsupported
cannam@162 9486 if test "$lt_cv_ld_force_load" = "yes"; then
cannam@162 9487 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@162 9488
cannam@162 9489 else
cannam@162 9490 whole_archive_flag_spec=''
cannam@162 9491 fi
cannam@162 9492 link_all_deplibs=yes
cannam@162 9493 allow_undefined_flag="$_lt_dar_allow_undefined"
cannam@162 9494 case $cc_basename in
cannam@162 9495 ifort*) _lt_dar_can_shared=yes ;;
cannam@162 9496 *) _lt_dar_can_shared=$GCC ;;
cannam@162 9497 esac
cannam@162 9498 if test "$_lt_dar_can_shared" = "yes"; then
cannam@162 9499 output_verbose_link_cmd=func_echo_all
cannam@162 9500 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@162 9501 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
cannam@162 9502 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@162 9503 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@162 9504
cannam@162 9505 else
cannam@162 9506 ld_shlibs=no
cannam@162 9507 fi
cannam@162 9508
cannam@162 9509 ;;
cannam@162 9510
cannam@162 9511 dgux*)
cannam@162 9512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@162 9513 hardcode_libdir_flag_spec='-L$libdir'
cannam@162 9514 hardcode_shlibpath_var=no
cannam@162 9515 ;;
cannam@162 9516
cannam@162 9517 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
cannam@162 9518 # support. Future versions do this automatically, but an explicit c++rt0.o
cannam@162 9519 # does not break anything, and helps significantly (at the cost of a little
cannam@162 9520 # extra space).
cannam@162 9521 freebsd2.2*)
cannam@162 9522 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
cannam@162 9523 hardcode_libdir_flag_spec='-R$libdir'
cannam@162 9524 hardcode_direct=yes
cannam@162 9525 hardcode_shlibpath_var=no
cannam@162 9526 ;;
cannam@162 9527
cannam@162 9528 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cannam@162 9529 freebsd2.*)
cannam@162 9530 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@162 9531 hardcode_direct=yes
cannam@162 9532 hardcode_minus_L=yes
cannam@162 9533 hardcode_shlibpath_var=no
cannam@162 9534 ;;
cannam@162 9535
cannam@162 9536 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
cannam@162 9537 freebsd* | dragonfly*)
cannam@162 9538 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 9539 hardcode_libdir_flag_spec='-R$libdir'
cannam@162 9540 hardcode_direct=yes
cannam@162 9541 hardcode_shlibpath_var=no
cannam@162 9542 ;;
cannam@162 9543
cannam@162 9544 hpux9*)
cannam@162 9545 if test "$GCC" = yes; then
cannam@162 9546 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cannam@162 9547 else
cannam@162 9548 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cannam@162 9549 fi
cannam@162 9550 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cannam@162 9551 hardcode_libdir_separator=:
cannam@162 9552 hardcode_direct=yes
cannam@162 9553
cannam@162 9554 # hardcode_minus_L: Not really in the search PATH,
cannam@162 9555 # but as the default location of the library.
cannam@162 9556 hardcode_minus_L=yes
cannam@162 9557 export_dynamic_flag_spec='${wl}-E'
cannam@162 9558 ;;
cannam@162 9559
cannam@162 9560 hpux10*)
cannam@162 9561 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cannam@162 9562 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 9563 else
cannam@162 9564 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
cannam@162 9565 fi
cannam@162 9566 if test "$with_gnu_ld" = no; then
cannam@162 9567 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cannam@162 9568 hardcode_libdir_separator=:
cannam@162 9569 hardcode_direct=yes
cannam@162 9570 hardcode_direct_absolute=yes
cannam@162 9571 export_dynamic_flag_spec='${wl}-E'
cannam@162 9572 # hardcode_minus_L: Not really in the search PATH,
cannam@162 9573 # but as the default location of the library.
cannam@162 9574 hardcode_minus_L=yes
cannam@162 9575 fi
cannam@162 9576 ;;
cannam@162 9577
cannam@162 9578 hpux11*)
cannam@162 9579 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cannam@162 9580 case $host_cpu in
cannam@162 9581 hppa*64*)
cannam@162 9582 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 9583 ;;
cannam@162 9584 ia64*)
cannam@162 9585 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 9586 ;;
cannam@162 9587 *)
cannam@162 9588 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 9589 ;;
cannam@162 9590 esac
cannam@162 9591 else
cannam@162 9592 case $host_cpu in
cannam@162 9593 hppa*64*)
cannam@162 9594 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 9595 ;;
cannam@162 9596 ia64*)
cannam@162 9597 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 9598 ;;
cannam@162 9599 *)
cannam@162 9600
cannam@162 9601 # Older versions of the 11.00 compiler do not understand -b yet
cannam@162 9602 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
cannam@162 9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
cannam@162 9604 $as_echo_n "checking if $CC understands -b... " >&6; }
cannam@162 9605 if ${lt_cv_prog_compiler__b+:} false; then :
cannam@162 9606 $as_echo_n "(cached) " >&6
cannam@162 9607 else
cannam@162 9608 lt_cv_prog_compiler__b=no
cannam@162 9609 save_LDFLAGS="$LDFLAGS"
cannam@162 9610 LDFLAGS="$LDFLAGS -b"
cannam@162 9611 echo "$lt_simple_link_test_code" > conftest.$ac_ext
cannam@162 9612 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
cannam@162 9613 # The linker can only warn and ignore the option if not recognized
cannam@162 9614 # So say no if there are warnings
cannam@162 9615 if test -s conftest.err; then
cannam@162 9616 # Append any errors to the config.log.
cannam@162 9617 cat conftest.err 1>&5
cannam@162 9618 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cannam@162 9619 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@162 9620 if diff conftest.exp conftest.er2 >/dev/null; then
cannam@162 9621 lt_cv_prog_compiler__b=yes
cannam@162 9622 fi
cannam@162 9623 else
cannam@162 9624 lt_cv_prog_compiler__b=yes
cannam@162 9625 fi
cannam@162 9626 fi
cannam@162 9627 $RM -r conftest*
cannam@162 9628 LDFLAGS="$save_LDFLAGS"
cannam@162 9629
cannam@162 9630 fi
cannam@162 9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
cannam@162 9632 $as_echo "$lt_cv_prog_compiler__b" >&6; }
cannam@162 9633
cannam@162 9634 if test x"$lt_cv_prog_compiler__b" = xyes; then
cannam@162 9635 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 9636 else
cannam@162 9637 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
cannam@162 9638 fi
cannam@162 9639
cannam@162 9640 ;;
cannam@162 9641 esac
cannam@162 9642 fi
cannam@162 9643 if test "$with_gnu_ld" = no; then
cannam@162 9644 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cannam@162 9645 hardcode_libdir_separator=:
cannam@162 9646
cannam@162 9647 case $host_cpu in
cannam@162 9648 hppa*64*|ia64*)
cannam@162 9649 hardcode_direct=no
cannam@162 9650 hardcode_shlibpath_var=no
cannam@162 9651 ;;
cannam@162 9652 *)
cannam@162 9653 hardcode_direct=yes
cannam@162 9654 hardcode_direct_absolute=yes
cannam@162 9655 export_dynamic_flag_spec='${wl}-E'
cannam@162 9656
cannam@162 9657 # hardcode_minus_L: Not really in the search PATH,
cannam@162 9658 # but as the default location of the library.
cannam@162 9659 hardcode_minus_L=yes
cannam@162 9660 ;;
cannam@162 9661 esac
cannam@162 9662 fi
cannam@162 9663 ;;
cannam@162 9664
cannam@162 9665 irix5* | irix6* | nonstopux*)
cannam@162 9666 if test "$GCC" = yes; then
cannam@162 9667 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@162 9668 # Try to use the -exported_symbol ld option, if it does not
cannam@162 9669 # work, assume that -exports_file does not work either and
cannam@162 9670 # implicitly export all symbols.
cannam@162 9671 # This should be the same for all languages, so no per-tag cache variable.
cannam@162 9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
cannam@162 9673 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
cannam@162 9674 if ${lt_cv_irix_exported_symbol+:} false; then :
cannam@162 9675 $as_echo_n "(cached) " >&6
cannam@162 9676 else
cannam@162 9677 save_LDFLAGS="$LDFLAGS"
cannam@162 9678 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cannam@162 9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 9680 /* end confdefs.h. */
cannam@162 9681 int foo (void) { return 0; }
cannam@162 9682 _ACEOF
cannam@162 9683 if ac_fn_c_try_link "$LINENO"; then :
cannam@162 9684 lt_cv_irix_exported_symbol=yes
cannam@162 9685 else
cannam@162 9686 lt_cv_irix_exported_symbol=no
cannam@162 9687 fi
cannam@162 9688 rm -f core conftest.err conftest.$ac_objext \
cannam@162 9689 conftest$ac_exeext conftest.$ac_ext
cannam@162 9690 LDFLAGS="$save_LDFLAGS"
cannam@162 9691 fi
cannam@162 9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
cannam@162 9693 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
cannam@162 9694 if test "$lt_cv_irix_exported_symbol" = yes; then
cannam@162 9695 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@162 9696 fi
cannam@162 9697 else
cannam@162 9698 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@162 9699 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@162 9700 fi
cannam@162 9701 archive_cmds_need_lc='no'
cannam@162 9702 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@162 9703 hardcode_libdir_separator=:
cannam@162 9704 inherit_rpath=yes
cannam@162 9705 link_all_deplibs=yes
cannam@162 9706 ;;
cannam@162 9707
cannam@162 9708 netbsd* | netbsdelf*-gnu)
cannam@162 9709 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@162 9710 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
cannam@162 9711 else
cannam@162 9712 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
cannam@162 9713 fi
cannam@162 9714 hardcode_libdir_flag_spec='-R$libdir'
cannam@162 9715 hardcode_direct=yes
cannam@162 9716 hardcode_shlibpath_var=no
cannam@162 9717 ;;
cannam@162 9718
cannam@162 9719 newsos6)
cannam@162 9720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@162 9721 hardcode_direct=yes
cannam@162 9722 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@162 9723 hardcode_libdir_separator=:
cannam@162 9724 hardcode_shlibpath_var=no
cannam@162 9725 ;;
cannam@162 9726
cannam@162 9727 *nto* | *qnx*)
cannam@162 9728 ;;
cannam@162 9729
cannam@162 9730 openbsd*)
cannam@162 9731 if test -f /usr/libexec/ld.so; then
cannam@162 9732 hardcode_direct=yes
cannam@162 9733 hardcode_shlibpath_var=no
cannam@162 9734 hardcode_direct_absolute=yes
cannam@162 9735 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@162 9736 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 9737 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
cannam@162 9738 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
cannam@162 9739 export_dynamic_flag_spec='${wl}-E'
cannam@162 9740 else
cannam@162 9741 case $host_os in
cannam@162 9742 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
cannam@162 9743 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@162 9744 hardcode_libdir_flag_spec='-R$libdir'
cannam@162 9745 ;;
cannam@162 9746 *)
cannam@162 9747 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 9748 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
cannam@162 9749 ;;
cannam@162 9750 esac
cannam@162 9751 fi
cannam@162 9752 else
cannam@162 9753 ld_shlibs=no
cannam@162 9754 fi
cannam@162 9755 ;;
cannam@162 9756
cannam@162 9757 os2*)
cannam@162 9758 hardcode_libdir_flag_spec='-L$libdir'
cannam@162 9759 hardcode_minus_L=yes
cannam@162 9760 allow_undefined_flag=unsupported
cannam@162 9761 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
cannam@162 9762 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
cannam@162 9763 ;;
cannam@162 9764
cannam@162 9765 osf3*)
cannam@162 9766 if test "$GCC" = yes; then
cannam@162 9767 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cannam@162 9768 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@162 9769 else
cannam@162 9770 allow_undefined_flag=' -expect_unresolved \*'
cannam@162 9771 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@162 9772 fi
cannam@162 9773 archive_cmds_need_lc='no'
cannam@162 9774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@162 9775 hardcode_libdir_separator=:
cannam@162 9776 ;;
cannam@162 9777
cannam@162 9778 osf4* | osf5*) # as osf3* with the addition of -msym flag
cannam@162 9779 if test "$GCC" = yes; then
cannam@162 9780 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cannam@162 9781 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@162 9782 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@162 9783 else
cannam@162 9784 allow_undefined_flag=' -expect_unresolved \*'
cannam@162 9785 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@162 9786 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@162 9787 $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@162 9788
cannam@162 9789 # Both c and cxx compiler support -rpath directly
cannam@162 9790 hardcode_libdir_flag_spec='-rpath $libdir'
cannam@162 9791 fi
cannam@162 9792 archive_cmds_need_lc='no'
cannam@162 9793 hardcode_libdir_separator=:
cannam@162 9794 ;;
cannam@162 9795
cannam@162 9796 solaris*)
cannam@162 9797 no_undefined_flag=' -z defs'
cannam@162 9798 if test "$GCC" = yes; then
cannam@162 9799 wlarc='${wl}'
cannam@162 9800 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 9801 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@162 9802 $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@162 9803 else
cannam@162 9804 case `$CC -V 2>&1` in
cannam@162 9805 *"Compilers 5.0"*)
cannam@162 9806 wlarc=''
cannam@162 9807 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@162 9808 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@162 9809 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
cannam@162 9810 ;;
cannam@162 9811 *)
cannam@162 9812 wlarc='${wl}'
cannam@162 9813 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 9814 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@162 9815 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
cannam@162 9816 ;;
cannam@162 9817 esac
cannam@162 9818 fi
cannam@162 9819 hardcode_libdir_flag_spec='-R$libdir'
cannam@162 9820 hardcode_shlibpath_var=no
cannam@162 9821 case $host_os in
cannam@162 9822 solaris2.[0-5] | solaris2.[0-5].*) ;;
cannam@162 9823 *)
cannam@162 9824 # The compiler driver will combine and reorder linker options,
cannam@162 9825 # but understands `-z linker_flag'. GCC discards it without `$wl',
cannam@162 9826 # but is careful enough not to reorder.
cannam@162 9827 # Supported since Solaris 2.6 (maybe 2.5.1?)
cannam@162 9828 if test "$GCC" = yes; then
cannam@162 9829 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
cannam@162 9830 else
cannam@162 9831 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
cannam@162 9832 fi
cannam@162 9833 ;;
cannam@162 9834 esac
cannam@162 9835 link_all_deplibs=yes
cannam@162 9836 ;;
cannam@162 9837
cannam@162 9838 sunos4*)
cannam@162 9839 if test "x$host_vendor" = xsequent; then
cannam@162 9840 # Use $CC to link under sequent, because it throws in some extra .o
cannam@162 9841 # files that make .init and .fini sections work.
cannam@162 9842 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 9843 else
cannam@162 9844 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
cannam@162 9845 fi
cannam@162 9846 hardcode_libdir_flag_spec='-L$libdir'
cannam@162 9847 hardcode_direct=yes
cannam@162 9848 hardcode_minus_L=yes
cannam@162 9849 hardcode_shlibpath_var=no
cannam@162 9850 ;;
cannam@162 9851
cannam@162 9852 sysv4)
cannam@162 9853 case $host_vendor in
cannam@162 9854 sni)
cannam@162 9855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@162 9856 hardcode_direct=yes # is this really true???
cannam@162 9857 ;;
cannam@162 9858 siemens)
cannam@162 9859 ## LD is ld it makes a PLAMLIB
cannam@162 9860 ## CC just makes a GrossModule.
cannam@162 9861 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
cannam@162 9862 reload_cmds='$CC -r -o $output$reload_objs'
cannam@162 9863 hardcode_direct=no
cannam@162 9864 ;;
cannam@162 9865 motorola)
cannam@162 9866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@162 9867 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
cannam@162 9868 ;;
cannam@162 9869 esac
cannam@162 9870 runpath_var='LD_RUN_PATH'
cannam@162 9871 hardcode_shlibpath_var=no
cannam@162 9872 ;;
cannam@162 9873
cannam@162 9874 sysv4.3*)
cannam@162 9875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@162 9876 hardcode_shlibpath_var=no
cannam@162 9877 export_dynamic_flag_spec='-Bexport'
cannam@162 9878 ;;
cannam@162 9879
cannam@162 9880 sysv4*MP*)
cannam@162 9881 if test -d /usr/nec; then
cannam@162 9882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@162 9883 hardcode_shlibpath_var=no
cannam@162 9884 runpath_var=LD_RUN_PATH
cannam@162 9885 hardcode_runpath_var=yes
cannam@162 9886 ld_shlibs=yes
cannam@162 9887 fi
cannam@162 9888 ;;
cannam@162 9889
cannam@162 9890 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
cannam@162 9891 no_undefined_flag='${wl}-z,text'
cannam@162 9892 archive_cmds_need_lc=no
cannam@162 9893 hardcode_shlibpath_var=no
cannam@162 9894 runpath_var='LD_RUN_PATH'
cannam@162 9895
cannam@162 9896 if test "$GCC" = yes; then
cannam@162 9897 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 9898 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 9899 else
cannam@162 9900 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 9901 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 9902 fi
cannam@162 9903 ;;
cannam@162 9904
cannam@162 9905 sysv5* | sco3.2v5* | sco5v6*)
cannam@162 9906 # Note: We can NOT use -z defs as we might desire, because we do not
cannam@162 9907 # link with -lc, and that would cause any symbols used from libc to
cannam@162 9908 # always be unresolved, which means just about no library would
cannam@162 9909 # ever link correctly. If we're not using GNU ld we use -z text
cannam@162 9910 # though, which does catch some bad symbols but isn't as heavy-handed
cannam@162 9911 # as -z defs.
cannam@162 9912 no_undefined_flag='${wl}-z,text'
cannam@162 9913 allow_undefined_flag='${wl}-z,nodefs'
cannam@162 9914 archive_cmds_need_lc=no
cannam@162 9915 hardcode_shlibpath_var=no
cannam@162 9916 hardcode_libdir_flag_spec='${wl}-R,$libdir'
cannam@162 9917 hardcode_libdir_separator=':'
cannam@162 9918 link_all_deplibs=yes
cannam@162 9919 export_dynamic_flag_spec='${wl}-Bexport'
cannam@162 9920 runpath_var='LD_RUN_PATH'
cannam@162 9921
cannam@162 9922 if test "$GCC" = yes; then
cannam@162 9923 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 9924 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 9925 else
cannam@162 9926 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 9927 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 9928 fi
cannam@162 9929 ;;
cannam@162 9930
cannam@162 9931 uts4*)
cannam@162 9932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@162 9933 hardcode_libdir_flag_spec='-L$libdir'
cannam@162 9934 hardcode_shlibpath_var=no
cannam@162 9935 ;;
cannam@162 9936
cannam@162 9937 *)
cannam@162 9938 ld_shlibs=no
cannam@162 9939 ;;
cannam@162 9940 esac
cannam@162 9941
cannam@162 9942 if test x$host_vendor = xsni; then
cannam@162 9943 case $host in
cannam@162 9944 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cannam@162 9945 export_dynamic_flag_spec='${wl}-Blargedynsym'
cannam@162 9946 ;;
cannam@162 9947 esac
cannam@162 9948 fi
cannam@162 9949 fi
cannam@162 9950
cannam@162 9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cannam@162 9952 $as_echo "$ld_shlibs" >&6; }
cannam@162 9953 test "$ld_shlibs" = no && can_build_shared=no
cannam@162 9954
cannam@162 9955 with_gnu_ld=$with_gnu_ld
cannam@162 9956
cannam@162 9957
cannam@162 9958
cannam@162 9959
cannam@162 9960
cannam@162 9961
cannam@162 9962
cannam@162 9963
cannam@162 9964
cannam@162 9965
cannam@162 9966
cannam@162 9967
cannam@162 9968
cannam@162 9969
cannam@162 9970
cannam@162 9971 #
cannam@162 9972 # Do we need to explicitly link libc?
cannam@162 9973 #
cannam@162 9974 case "x$archive_cmds_need_lc" in
cannam@162 9975 x|xyes)
cannam@162 9976 # Assume -lc should be added
cannam@162 9977 archive_cmds_need_lc=yes
cannam@162 9978
cannam@162 9979 if test "$enable_shared" = yes && test "$GCC" = yes; then
cannam@162 9980 case $archive_cmds in
cannam@162 9981 *'~'*)
cannam@162 9982 # FIXME: we may have to deal with multi-command sequences.
cannam@162 9983 ;;
cannam@162 9984 '$CC '*)
cannam@162 9985 # Test whether the compiler implicitly links with -lc since on some
cannam@162 9986 # systems, -lgcc has to come before -lc. If gcc already passes -lc
cannam@162 9987 # to ld, don't add -lc before -lgcc.
cannam@162 9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cannam@162 9989 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cannam@162 9990 if ${lt_cv_archive_cmds_need_lc+:} false; then :
cannam@162 9991 $as_echo_n "(cached) " >&6
cannam@162 9992 else
cannam@162 9993 $RM conftest*
cannam@162 9994 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@162 9995
cannam@162 9996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@162 9997 (eval $ac_compile) 2>&5
cannam@162 9998 ac_status=$?
cannam@162 9999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 10000 test $ac_status = 0; } 2>conftest.err; then
cannam@162 10001 soname=conftest
cannam@162 10002 lib=conftest
cannam@162 10003 libobjs=conftest.$ac_objext
cannam@162 10004 deplibs=
cannam@162 10005 wl=$lt_prog_compiler_wl
cannam@162 10006 pic_flag=$lt_prog_compiler_pic
cannam@162 10007 compiler_flags=-v
cannam@162 10008 linker_flags=-v
cannam@162 10009 verstring=
cannam@162 10010 output_objdir=.
cannam@162 10011 libname=conftest
cannam@162 10012 lt_save_allow_undefined_flag=$allow_undefined_flag
cannam@162 10013 allow_undefined_flag=
cannam@162 10014 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cannam@162 10015 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
cannam@162 10016 ac_status=$?
cannam@162 10017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 10018 test $ac_status = 0; }
cannam@162 10019 then
cannam@162 10020 lt_cv_archive_cmds_need_lc=no
cannam@162 10021 else
cannam@162 10022 lt_cv_archive_cmds_need_lc=yes
cannam@162 10023 fi
cannam@162 10024 allow_undefined_flag=$lt_save_allow_undefined_flag
cannam@162 10025 else
cannam@162 10026 cat conftest.err 1>&5
cannam@162 10027 fi
cannam@162 10028 $RM conftest*
cannam@162 10029
cannam@162 10030 fi
cannam@162 10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
cannam@162 10032 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
cannam@162 10033 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cannam@162 10034 ;;
cannam@162 10035 esac
cannam@162 10036 fi
cannam@162 10037 ;;
cannam@162 10038 esac
cannam@162 10039
cannam@162 10040
cannam@162 10041
cannam@162 10042
cannam@162 10043
cannam@162 10044
cannam@162 10045
cannam@162 10046
cannam@162 10047
cannam@162 10048
cannam@162 10049
cannam@162 10050
cannam@162 10051
cannam@162 10052
cannam@162 10053
cannam@162 10054
cannam@162 10055
cannam@162 10056
cannam@162 10057
cannam@162 10058
cannam@162 10059
cannam@162 10060
cannam@162 10061
cannam@162 10062
cannam@162 10063
cannam@162 10064
cannam@162 10065
cannam@162 10066
cannam@162 10067
cannam@162 10068
cannam@162 10069
cannam@162 10070
cannam@162 10071
cannam@162 10072
cannam@162 10073
cannam@162 10074
cannam@162 10075
cannam@162 10076
cannam@162 10077
cannam@162 10078
cannam@162 10079
cannam@162 10080
cannam@162 10081
cannam@162 10082
cannam@162 10083
cannam@162 10084
cannam@162 10085
cannam@162 10086
cannam@162 10087
cannam@162 10088
cannam@162 10089
cannam@162 10090
cannam@162 10091
cannam@162 10092
cannam@162 10093
cannam@162 10094
cannam@162 10095
cannam@162 10096
cannam@162 10097
cannam@162 10098
cannam@162 10099
cannam@162 10100
cannam@162 10101
cannam@162 10102
cannam@162 10103
cannam@162 10104
cannam@162 10105
cannam@162 10106
cannam@162 10107
cannam@162 10108
cannam@162 10109
cannam@162 10110
cannam@162 10111
cannam@162 10112
cannam@162 10113
cannam@162 10114
cannam@162 10115
cannam@162 10116
cannam@162 10117
cannam@162 10118
cannam@162 10119
cannam@162 10120
cannam@162 10121
cannam@162 10122
cannam@162 10123
cannam@162 10124
cannam@162 10125
cannam@162 10126
cannam@162 10127
cannam@162 10128
cannam@162 10129
cannam@162 10130
cannam@162 10131
cannam@162 10132
cannam@162 10133
cannam@162 10134
cannam@162 10135
cannam@162 10136
cannam@162 10137
cannam@162 10138
cannam@162 10139
cannam@162 10140
cannam@162 10141
cannam@162 10142
cannam@162 10143
cannam@162 10144
cannam@162 10145
cannam@162 10146
cannam@162 10147
cannam@162 10148
cannam@162 10149
cannam@162 10150
cannam@162 10151
cannam@162 10152
cannam@162 10153
cannam@162 10154
cannam@162 10155
cannam@162 10156
cannam@162 10157
cannam@162 10158
cannam@162 10159
cannam@162 10160
cannam@162 10161
cannam@162 10162
cannam@162 10163
cannam@162 10164
cannam@162 10165
cannam@162 10166
cannam@162 10167
cannam@162 10168
cannam@162 10169
cannam@162 10170
cannam@162 10171
cannam@162 10172
cannam@162 10173
cannam@162 10174
cannam@162 10175
cannam@162 10176
cannam@162 10177
cannam@162 10178
cannam@162 10179
cannam@162 10180
cannam@162 10181
cannam@162 10182
cannam@162 10183
cannam@162 10184
cannam@162 10185
cannam@162 10186
cannam@162 10187
cannam@162 10188
cannam@162 10189
cannam@162 10190
cannam@162 10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cannam@162 10192 $as_echo_n "checking dynamic linker characteristics... " >&6; }
cannam@162 10193
cannam@162 10194 if test "$GCC" = yes; then
cannam@162 10195 case $host_os in
cannam@162 10196 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
cannam@162 10197 *) lt_awk_arg="/^libraries:/" ;;
cannam@162 10198 esac
cannam@162 10199 case $host_os in
cannam@162 10200 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
cannam@162 10201 *) lt_sed_strip_eq="s,=/,/,g" ;;
cannam@162 10202 esac
cannam@162 10203 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
cannam@162 10204 case $lt_search_path_spec in
cannam@162 10205 *\;*)
cannam@162 10206 # if the path contains ";" then we assume it to be the separator
cannam@162 10207 # otherwise default to the standard path separator (i.e. ":") - it is
cannam@162 10208 # assumed that no part of a normal pathname contains ";" but that should
cannam@162 10209 # okay in the real world where ";" in dirpaths is itself problematic.
cannam@162 10210 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
cannam@162 10211 ;;
cannam@162 10212 *)
cannam@162 10213 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
cannam@162 10214 ;;
cannam@162 10215 esac
cannam@162 10216 # Ok, now we have the path, separated by spaces, we can step through it
cannam@162 10217 # and add multilib dir if necessary.
cannam@162 10218 lt_tmp_lt_search_path_spec=
cannam@162 10219 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
cannam@162 10220 for lt_sys_path in $lt_search_path_spec; do
cannam@162 10221 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
cannam@162 10222 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
cannam@162 10223 else
cannam@162 10224 test -d "$lt_sys_path" && \
cannam@162 10225 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
cannam@162 10226 fi
cannam@162 10227 done
cannam@162 10228 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cannam@162 10229 BEGIN {RS=" "; FS="/|\n";} {
cannam@162 10230 lt_foo="";
cannam@162 10231 lt_count=0;
cannam@162 10232 for (lt_i = NF; lt_i > 0; lt_i--) {
cannam@162 10233 if ($lt_i != "" && $lt_i != ".") {
cannam@162 10234 if ($lt_i == "..") {
cannam@162 10235 lt_count++;
cannam@162 10236 } else {
cannam@162 10237 if (lt_count == 0) {
cannam@162 10238 lt_foo="/" $lt_i lt_foo;
cannam@162 10239 } else {
cannam@162 10240 lt_count--;
cannam@162 10241 }
cannam@162 10242 }
cannam@162 10243 }
cannam@162 10244 }
cannam@162 10245 if (lt_foo != "") { lt_freq[lt_foo]++; }
cannam@162 10246 if (lt_freq[lt_foo] == 1) { print lt_foo; }
cannam@162 10247 }'`
cannam@162 10248 # AWK program above erroneously prepends '/' to C:/dos/paths
cannam@162 10249 # for these hosts.
cannam@162 10250 case $host_os in
cannam@162 10251 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
cannam@162 10252 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
cannam@162 10253 esac
cannam@162 10254 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cannam@162 10255 else
cannam@162 10256 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
cannam@162 10257 fi
cannam@162 10258 library_names_spec=
cannam@162 10259 libname_spec='lib$name'
cannam@162 10260 soname_spec=
cannam@162 10261 shrext_cmds=".so"
cannam@162 10262 postinstall_cmds=
cannam@162 10263 postuninstall_cmds=
cannam@162 10264 finish_cmds=
cannam@162 10265 finish_eval=
cannam@162 10266 shlibpath_var=
cannam@162 10267 shlibpath_overrides_runpath=unknown
cannam@162 10268 version_type=none
cannam@162 10269 dynamic_linker="$host_os ld.so"
cannam@162 10270 sys_lib_dlsearch_path_spec="/lib /usr/lib"
cannam@162 10271 need_lib_prefix=unknown
cannam@162 10272 hardcode_into_libs=no
cannam@162 10273
cannam@162 10274 # when you set need_version to no, make sure it does not cause -set_version
cannam@162 10275 # flags to be left without arguments
cannam@162 10276 need_version=unknown
cannam@162 10277
cannam@162 10278 case $host_os in
cannam@162 10279 aix3*)
cannam@162 10280 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 10281 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
cannam@162 10282 shlibpath_var=LIBPATH
cannam@162 10283
cannam@162 10284 # AIX 3 has no versioning support, so we append a major version to the name.
cannam@162 10285 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 10286 ;;
cannam@162 10287
cannam@162 10288 aix[4-9]*)
cannam@162 10289 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 10290 need_lib_prefix=no
cannam@162 10291 need_version=no
cannam@162 10292 hardcode_into_libs=yes
cannam@162 10293 if test "$host_cpu" = ia64; then
cannam@162 10294 # AIX 5 supports IA64
cannam@162 10295 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
cannam@162 10296 shlibpath_var=LD_LIBRARY_PATH
cannam@162 10297 else
cannam@162 10298 # With GCC up to 2.95.x, collect2 would create an import file
cannam@162 10299 # for dependence libraries. The import file would start with
cannam@162 10300 # the line `#! .'. This would cause the generated library to
cannam@162 10301 # depend on `.', always an invalid library. This was fixed in
cannam@162 10302 # development snapshots of GCC prior to 3.0.
cannam@162 10303 case $host_os in
cannam@162 10304 aix4 | aix4.[01] | aix4.[01].*)
cannam@162 10305 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
cannam@162 10306 echo ' yes '
cannam@162 10307 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
cannam@162 10308 :
cannam@162 10309 else
cannam@162 10310 can_build_shared=no
cannam@162 10311 fi
cannam@162 10312 ;;
cannam@162 10313 esac
cannam@162 10314 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
cannam@162 10315 # soname into executable. Probably we can add versioning support to
cannam@162 10316 # collect2, so additional links can be useful in future.
cannam@162 10317 if test "$aix_use_runtimelinking" = yes; then
cannam@162 10318 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
cannam@162 10319 # instead of lib<name>.a to let people know that these are not
cannam@162 10320 # typical AIX shared libraries.
cannam@162 10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 10322 else
cannam@162 10323 # We preserve .a as extension for shared libraries through AIX4.2
cannam@162 10324 # and later when we are not doing run time linking.
cannam@162 10325 library_names_spec='${libname}${release}.a $libname.a'
cannam@162 10326 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 10327 fi
cannam@162 10328 shlibpath_var=LIBPATH
cannam@162 10329 fi
cannam@162 10330 ;;
cannam@162 10331
cannam@162 10332 amigaos*)
cannam@162 10333 case $host_cpu in
cannam@162 10334 powerpc)
cannam@162 10335 # Since July 2007 AmigaOS4 officially supports .so libraries.
cannam@162 10336 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
cannam@162 10337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 10338 ;;
cannam@162 10339 m68k)
cannam@162 10340 library_names_spec='$libname.ixlibrary $libname.a'
cannam@162 10341 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cannam@162 10342 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
cannam@162 10343 ;;
cannam@162 10344 esac
cannam@162 10345 ;;
cannam@162 10346
cannam@162 10347 beos*)
cannam@162 10348 library_names_spec='${libname}${shared_ext}'
cannam@162 10349 dynamic_linker="$host_os ld.so"
cannam@162 10350 shlibpath_var=LIBRARY_PATH
cannam@162 10351 ;;
cannam@162 10352
cannam@162 10353 bsdi[45]*)
cannam@162 10354 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 10355 need_version=no
cannam@162 10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 10357 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 10358 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
cannam@162 10359 shlibpath_var=LD_LIBRARY_PATH
cannam@162 10360 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
cannam@162 10361 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
cannam@162 10362 # the default ld.so.conf also contains /usr/contrib/lib and
cannam@162 10363 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
cannam@162 10364 # libtool to hard-code these into programs
cannam@162 10365 ;;
cannam@162 10366
cannam@162 10367 cygwin* | mingw* | pw32* | cegcc*)
cannam@162 10368 version_type=windows
cannam@162 10369 shrext_cmds=".dll"
cannam@162 10370 need_version=no
cannam@162 10371 need_lib_prefix=no
cannam@162 10372
cannam@162 10373 case $GCC,$cc_basename in
cannam@162 10374 yes,*)
cannam@162 10375 # gcc
cannam@162 10376 library_names_spec='$libname.dll.a'
cannam@162 10377 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@162 10378 postinstall_cmds='base_file=`basename \${file}`~
cannam@162 10379 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
cannam@162 10380 dldir=$destdir/`dirname \$dlpath`~
cannam@162 10381 test -d \$dldir || mkdir -p \$dldir~
cannam@162 10382 $install_prog $dir/$dlname \$dldir/$dlname~
cannam@162 10383 chmod a+x \$dldir/$dlname~
cannam@162 10384 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
cannam@162 10385 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
cannam@162 10386 fi'
cannam@162 10387 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@162 10388 dlpath=$dir/\$dldll~
cannam@162 10389 $RM \$dlpath'
cannam@162 10390 shlibpath_overrides_runpath=yes
cannam@162 10391
cannam@162 10392 case $host_os in
cannam@162 10393 cygwin*)
cannam@162 10394 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
cannam@162 10395 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@162 10396
cannam@162 10397 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cannam@162 10398 ;;
cannam@162 10399 mingw* | cegcc*)
cannam@162 10400 # MinGW DLLs use traditional 'lib' prefix
cannam@162 10401 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@162 10402 ;;
cannam@162 10403 pw32*)
cannam@162 10404 # pw32 DLLs use 'pw' prefix rather than 'lib'
cannam@162 10405 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@162 10406 ;;
cannam@162 10407 esac
cannam@162 10408 dynamic_linker='Win32 ld.exe'
cannam@162 10409 ;;
cannam@162 10410
cannam@162 10411 *,cl*)
cannam@162 10412 # Native MSVC
cannam@162 10413 libname_spec='$name'
cannam@162 10414 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@162 10415 library_names_spec='${libname}.dll.lib'
cannam@162 10416
cannam@162 10417 case $build_os in
cannam@162 10418 mingw*)
cannam@162 10419 sys_lib_search_path_spec=
cannam@162 10420 lt_save_ifs=$IFS
cannam@162 10421 IFS=';'
cannam@162 10422 for lt_path in $LIB
cannam@162 10423 do
cannam@162 10424 IFS=$lt_save_ifs
cannam@162 10425 # Let DOS variable expansion print the short 8.3 style file name.
cannam@162 10426 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
cannam@162 10427 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
cannam@162 10428 done
cannam@162 10429 IFS=$lt_save_ifs
cannam@162 10430 # Convert to MSYS style.
cannam@162 10431 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@162 10432 ;;
cannam@162 10433 cygwin*)
cannam@162 10434 # Convert to unix form, then to dos form, then back to unix form
cannam@162 10435 # but this time dos style (no spaces!) so that the unix form looks
cannam@162 10436 # like /cygdrive/c/PROGRA~1:/cygdr...
cannam@162 10437 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
cannam@162 10438 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
cannam@162 10439 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@162 10440 ;;
cannam@162 10441 *)
cannam@162 10442 sys_lib_search_path_spec="$LIB"
cannam@162 10443 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
cannam@162 10444 # It is most probably a Windows format PATH.
cannam@162 10445 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@162 10446 else
cannam@162 10447 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@162 10448 fi
cannam@162 10449 # FIXME: find the short name or the path components, as spaces are
cannam@162 10450 # common. (e.g. "Program Files" -> "PROGRA~1")
cannam@162 10451 ;;
cannam@162 10452 esac
cannam@162 10453
cannam@162 10454 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@162 10455 postinstall_cmds='base_file=`basename \${file}`~
cannam@162 10456 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
cannam@162 10457 dldir=$destdir/`dirname \$dlpath`~
cannam@162 10458 test -d \$dldir || mkdir -p \$dldir~
cannam@162 10459 $install_prog $dir/$dlname \$dldir/$dlname'
cannam@162 10460 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@162 10461 dlpath=$dir/\$dldll~
cannam@162 10462 $RM \$dlpath'
cannam@162 10463 shlibpath_overrides_runpath=yes
cannam@162 10464 dynamic_linker='Win32 link.exe'
cannam@162 10465 ;;
cannam@162 10466
cannam@162 10467 *)
cannam@162 10468 # Assume MSVC wrapper
cannam@162 10469 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cannam@162 10470 dynamic_linker='Win32 ld.exe'
cannam@162 10471 ;;
cannam@162 10472 esac
cannam@162 10473 # FIXME: first we should search . and the directory the executable is in
cannam@162 10474 shlibpath_var=PATH
cannam@162 10475 ;;
cannam@162 10476
cannam@162 10477 darwin* | rhapsody*)
cannam@162 10478 dynamic_linker="$host_os dyld"
cannam@162 10479 version_type=darwin
cannam@162 10480 need_lib_prefix=no
cannam@162 10481 need_version=no
cannam@162 10482 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
cannam@162 10483 soname_spec='${libname}${release}${major}$shared_ext'
cannam@162 10484 shlibpath_overrides_runpath=yes
cannam@162 10485 shlibpath_var=DYLD_LIBRARY_PATH
cannam@162 10486 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
cannam@162 10487
cannam@162 10488 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
cannam@162 10489 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
cannam@162 10490 ;;
cannam@162 10491
cannam@162 10492 dgux*)
cannam@162 10493 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 10494 need_lib_prefix=no
cannam@162 10495 need_version=no
cannam@162 10496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
cannam@162 10497 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 10498 shlibpath_var=LD_LIBRARY_PATH
cannam@162 10499 ;;
cannam@162 10500
cannam@162 10501 freebsd* | dragonfly*)
cannam@162 10502 # DragonFly does not have aout. When/if they implement a new
cannam@162 10503 # versioning mechanism, adjust this.
cannam@162 10504 if test -x /usr/bin/objformat; then
cannam@162 10505 objformat=`/usr/bin/objformat`
cannam@162 10506 else
cannam@162 10507 case $host_os in
cannam@162 10508 freebsd[23].*) objformat=aout ;;
cannam@162 10509 *) objformat=elf ;;
cannam@162 10510 esac
cannam@162 10511 fi
cannam@162 10512 version_type=freebsd-$objformat
cannam@162 10513 case $version_type in
cannam@162 10514 freebsd-elf*)
cannam@162 10515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@162 10516 need_version=no
cannam@162 10517 need_lib_prefix=no
cannam@162 10518 ;;
cannam@162 10519 freebsd-*)
cannam@162 10520 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
cannam@162 10521 need_version=yes
cannam@162 10522 ;;
cannam@162 10523 esac
cannam@162 10524 shlibpath_var=LD_LIBRARY_PATH
cannam@162 10525 case $host_os in
cannam@162 10526 freebsd2.*)
cannam@162 10527 shlibpath_overrides_runpath=yes
cannam@162 10528 ;;
cannam@162 10529 freebsd3.[01]* | freebsdelf3.[01]*)
cannam@162 10530 shlibpath_overrides_runpath=yes
cannam@162 10531 hardcode_into_libs=yes
cannam@162 10532 ;;
cannam@162 10533 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
cannam@162 10534 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
cannam@162 10535 shlibpath_overrides_runpath=no
cannam@162 10536 hardcode_into_libs=yes
cannam@162 10537 ;;
cannam@162 10538 *) # from 4.6 on, and DragonFly
cannam@162 10539 shlibpath_overrides_runpath=yes
cannam@162 10540 hardcode_into_libs=yes
cannam@162 10541 ;;
cannam@162 10542 esac
cannam@162 10543 ;;
cannam@162 10544
cannam@162 10545 haiku*)
cannam@162 10546 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 10547 need_lib_prefix=no
cannam@162 10548 need_version=no
cannam@162 10549 dynamic_linker="$host_os runtime_loader"
cannam@162 10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
cannam@162 10551 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 10552 shlibpath_var=LIBRARY_PATH
cannam@162 10553 shlibpath_overrides_runpath=yes
cannam@162 10554 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
cannam@162 10555 hardcode_into_libs=yes
cannam@162 10556 ;;
cannam@162 10557
cannam@162 10558 hpux9* | hpux10* | hpux11*)
cannam@162 10559 # Give a soname corresponding to the major version so that dld.sl refuses to
cannam@162 10560 # link against other versions.
cannam@162 10561 version_type=sunos
cannam@162 10562 need_lib_prefix=no
cannam@162 10563 need_version=no
cannam@162 10564 case $host_cpu in
cannam@162 10565 ia64*)
cannam@162 10566 shrext_cmds='.so'
cannam@162 10567 hardcode_into_libs=yes
cannam@162 10568 dynamic_linker="$host_os dld.so"
cannam@162 10569 shlibpath_var=LD_LIBRARY_PATH
cannam@162 10570 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@162 10571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 10572 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 10573 if test "X$HPUX_IA64_MODE" = X32; then
cannam@162 10574 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
cannam@162 10575 else
cannam@162 10576 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
cannam@162 10577 fi
cannam@162 10578 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@162 10579 ;;
cannam@162 10580 hppa*64*)
cannam@162 10581 shrext_cmds='.sl'
cannam@162 10582 hardcode_into_libs=yes
cannam@162 10583 dynamic_linker="$host_os dld.sl"
cannam@162 10584 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
cannam@162 10585 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@162 10586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 10587 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 10588 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
cannam@162 10589 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@162 10590 ;;
cannam@162 10591 *)
cannam@162 10592 shrext_cmds='.sl'
cannam@162 10593 dynamic_linker="$host_os dld.sl"
cannam@162 10594 shlibpath_var=SHLIB_PATH
cannam@162 10595 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
cannam@162 10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 10597 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 10598 ;;
cannam@162 10599 esac
cannam@162 10600 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cannam@162 10601 postinstall_cmds='chmod 555 $lib'
cannam@162 10602 # or fails outright, so override atomically:
cannam@162 10603 install_override_mode=555
cannam@162 10604 ;;
cannam@162 10605
cannam@162 10606 interix[3-9]*)
cannam@162 10607 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 10608 need_lib_prefix=no
cannam@162 10609 need_version=no
cannam@162 10610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@162 10611 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 10612 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
cannam@162 10613 shlibpath_var=LD_LIBRARY_PATH
cannam@162 10614 shlibpath_overrides_runpath=no
cannam@162 10615 hardcode_into_libs=yes
cannam@162 10616 ;;
cannam@162 10617
cannam@162 10618 irix5* | irix6* | nonstopux*)
cannam@162 10619 case $host_os in
cannam@162 10620 nonstopux*) version_type=nonstopux ;;
cannam@162 10621 *)
cannam@162 10622 if test "$lt_cv_prog_gnu_ld" = yes; then
cannam@162 10623 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 10624 else
cannam@162 10625 version_type=irix
cannam@162 10626 fi ;;
cannam@162 10627 esac
cannam@162 10628 need_lib_prefix=no
cannam@162 10629 need_version=no
cannam@162 10630 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@162 10632 case $host_os in
cannam@162 10633 irix5* | nonstopux*)
cannam@162 10634 libsuff= shlibsuff=
cannam@162 10635 ;;
cannam@162 10636 *)
cannam@162 10637 case $LD in # libtool.m4 will add one of these switches to LD
cannam@162 10638 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
cannam@162 10639 libsuff= shlibsuff= libmagic=32-bit;;
cannam@162 10640 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
cannam@162 10641 libsuff=32 shlibsuff=N32 libmagic=N32;;
cannam@162 10642 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
cannam@162 10643 libsuff=64 shlibsuff=64 libmagic=64-bit;;
cannam@162 10644 *) libsuff= shlibsuff= libmagic=never-match;;
cannam@162 10645 esac
cannam@162 10646 ;;
cannam@162 10647 esac
cannam@162 10648 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
cannam@162 10649 shlibpath_overrides_runpath=no
cannam@162 10650 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
cannam@162 10651 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
cannam@162 10652 hardcode_into_libs=yes
cannam@162 10653 ;;
cannam@162 10654
cannam@162 10655 # No shared lib support for Linux oldld, aout, or coff.
cannam@162 10656 linux*oldld* | linux*aout* | linux*coff*)
cannam@162 10657 dynamic_linker=no
cannam@162 10658 ;;
cannam@162 10659
cannam@162 10660 # This must be glibc/ELF.
cannam@162 10661 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cannam@162 10662 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 10663 need_lib_prefix=no
cannam@162 10664 need_version=no
cannam@162 10665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 10666 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 10667 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
cannam@162 10668 shlibpath_var=LD_LIBRARY_PATH
cannam@162 10669 shlibpath_overrides_runpath=no
cannam@162 10670
cannam@162 10671 # Some binutils ld are patched to set DT_RUNPATH
cannam@162 10672 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cannam@162 10673 $as_echo_n "(cached) " >&6
cannam@162 10674 else
cannam@162 10675 lt_cv_shlibpath_overrides_runpath=no
cannam@162 10676 save_LDFLAGS=$LDFLAGS
cannam@162 10677 save_libdir=$libdir
cannam@162 10678 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
cannam@162 10679 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
cannam@162 10680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 10681 /* end confdefs.h. */
cannam@162 10682
cannam@162 10683 int
cannam@162 10684 main ()
cannam@162 10685 {
cannam@162 10686
cannam@162 10687 ;
cannam@162 10688 return 0;
cannam@162 10689 }
cannam@162 10690 _ACEOF
cannam@162 10691 if ac_fn_c_try_link "$LINENO"; then :
cannam@162 10692 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cannam@162 10693 lt_cv_shlibpath_overrides_runpath=yes
cannam@162 10694 fi
cannam@162 10695 fi
cannam@162 10696 rm -f core conftest.err conftest.$ac_objext \
cannam@162 10697 conftest$ac_exeext conftest.$ac_ext
cannam@162 10698 LDFLAGS=$save_LDFLAGS
cannam@162 10699 libdir=$save_libdir
cannam@162 10700
cannam@162 10701 fi
cannam@162 10702
cannam@162 10703 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cannam@162 10704
cannam@162 10705 # This implies no fast_install, which is unacceptable.
cannam@162 10706 # Some rework will be needed to allow for fast_install
cannam@162 10707 # before this can be enabled.
cannam@162 10708 hardcode_into_libs=yes
cannam@162 10709
cannam@162 10710 # Append ld.so.conf contents to the search path
cannam@162 10711 if test -f /etc/ld.so.conf; then
cannam@162 10712 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@162 10713 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
cannam@162 10714 fi
cannam@162 10715
cannam@162 10716 # We used to test for /lib/ld.so.1 and disable shared libraries on
cannam@162 10717 # powerpc, because MkLinux only supported shared libraries with the
cannam@162 10718 # GNU dynamic linker. Since this was broken with cross compilers,
cannam@162 10719 # most powerpc-linux boxes support dynamic linking these days and
cannam@162 10720 # people can always --disable-shared, the test was removed, and we
cannam@162 10721 # assume the GNU/Linux dynamic linker is in use.
cannam@162 10722 dynamic_linker='GNU/Linux ld.so'
cannam@162 10723 ;;
cannam@162 10724
cannam@162 10725 netbsdelf*-gnu)
cannam@162 10726 version_type=linux
cannam@162 10727 need_lib_prefix=no
cannam@162 10728 need_version=no
cannam@162 10729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@162 10730 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 10731 shlibpath_var=LD_LIBRARY_PATH
cannam@162 10732 shlibpath_overrides_runpath=no
cannam@162 10733 hardcode_into_libs=yes
cannam@162 10734 dynamic_linker='NetBSD ld.elf_so'
cannam@162 10735 ;;
cannam@162 10736
cannam@162 10737 netbsd*)
cannam@162 10738 version_type=sunos
cannam@162 10739 need_lib_prefix=no
cannam@162 10740 need_version=no
cannam@162 10741 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@162 10742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@162 10743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@162 10744 dynamic_linker='NetBSD (a.out) ld.so'
cannam@162 10745 else
cannam@162 10746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@162 10747 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 10748 dynamic_linker='NetBSD ld.elf_so'
cannam@162 10749 fi
cannam@162 10750 shlibpath_var=LD_LIBRARY_PATH
cannam@162 10751 shlibpath_overrides_runpath=yes
cannam@162 10752 hardcode_into_libs=yes
cannam@162 10753 ;;
cannam@162 10754
cannam@162 10755 newsos6)
cannam@162 10756 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 10758 shlibpath_var=LD_LIBRARY_PATH
cannam@162 10759 shlibpath_overrides_runpath=yes
cannam@162 10760 ;;
cannam@162 10761
cannam@162 10762 *nto* | *qnx*)
cannam@162 10763 version_type=qnx
cannam@162 10764 need_lib_prefix=no
cannam@162 10765 need_version=no
cannam@162 10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 10767 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 10768 shlibpath_var=LD_LIBRARY_PATH
cannam@162 10769 shlibpath_overrides_runpath=no
cannam@162 10770 hardcode_into_libs=yes
cannam@162 10771 dynamic_linker='ldqnx.so'
cannam@162 10772 ;;
cannam@162 10773
cannam@162 10774 openbsd*)
cannam@162 10775 version_type=sunos
cannam@162 10776 sys_lib_dlsearch_path_spec="/usr/lib"
cannam@162 10777 need_lib_prefix=no
cannam@162 10778 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
cannam@162 10779 case $host_os in
cannam@162 10780 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
cannam@162 10781 *) need_version=no ;;
cannam@162 10782 esac
cannam@162 10783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@162 10784 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@162 10785 shlibpath_var=LD_LIBRARY_PATH
cannam@162 10786 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@162 10787 case $host_os in
cannam@162 10788 openbsd2.[89] | openbsd2.[89].*)
cannam@162 10789 shlibpath_overrides_runpath=no
cannam@162 10790 ;;
cannam@162 10791 *)
cannam@162 10792 shlibpath_overrides_runpath=yes
cannam@162 10793 ;;
cannam@162 10794 esac
cannam@162 10795 else
cannam@162 10796 shlibpath_overrides_runpath=yes
cannam@162 10797 fi
cannam@162 10798 ;;
cannam@162 10799
cannam@162 10800 os2*)
cannam@162 10801 libname_spec='$name'
cannam@162 10802 shrext_cmds=".dll"
cannam@162 10803 need_lib_prefix=no
cannam@162 10804 library_names_spec='$libname${shared_ext} $libname.a'
cannam@162 10805 dynamic_linker='OS/2 ld.exe'
cannam@162 10806 shlibpath_var=LIBPATH
cannam@162 10807 ;;
cannam@162 10808
cannam@162 10809 osf3* | osf4* | osf5*)
cannam@162 10810 version_type=osf
cannam@162 10811 need_lib_prefix=no
cannam@162 10812 need_version=no
cannam@162 10813 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 10814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 10815 shlibpath_var=LD_LIBRARY_PATH
cannam@162 10816 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
cannam@162 10817 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
cannam@162 10818 ;;
cannam@162 10819
cannam@162 10820 rdos*)
cannam@162 10821 dynamic_linker=no
cannam@162 10822 ;;
cannam@162 10823
cannam@162 10824 solaris*)
cannam@162 10825 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 10826 need_lib_prefix=no
cannam@162 10827 need_version=no
cannam@162 10828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 10829 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 10830 shlibpath_var=LD_LIBRARY_PATH
cannam@162 10831 shlibpath_overrides_runpath=yes
cannam@162 10832 hardcode_into_libs=yes
cannam@162 10833 # ldd complains unless libraries are executable
cannam@162 10834 postinstall_cmds='chmod +x $lib'
cannam@162 10835 ;;
cannam@162 10836
cannam@162 10837 sunos4*)
cannam@162 10838 version_type=sunos
cannam@162 10839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@162 10840 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
cannam@162 10841 shlibpath_var=LD_LIBRARY_PATH
cannam@162 10842 shlibpath_overrides_runpath=yes
cannam@162 10843 if test "$with_gnu_ld" = yes; then
cannam@162 10844 need_lib_prefix=no
cannam@162 10845 fi
cannam@162 10846 need_version=yes
cannam@162 10847 ;;
cannam@162 10848
cannam@162 10849 sysv4 | sysv4.3*)
cannam@162 10850 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 10851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 10852 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 10853 shlibpath_var=LD_LIBRARY_PATH
cannam@162 10854 case $host_vendor in
cannam@162 10855 sni)
cannam@162 10856 shlibpath_overrides_runpath=no
cannam@162 10857 need_lib_prefix=no
cannam@162 10858 runpath_var=LD_RUN_PATH
cannam@162 10859 ;;
cannam@162 10860 siemens)
cannam@162 10861 need_lib_prefix=no
cannam@162 10862 ;;
cannam@162 10863 motorola)
cannam@162 10864 need_lib_prefix=no
cannam@162 10865 need_version=no
cannam@162 10866 shlibpath_overrides_runpath=no
cannam@162 10867 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
cannam@162 10868 ;;
cannam@162 10869 esac
cannam@162 10870 ;;
cannam@162 10871
cannam@162 10872 sysv4*MP*)
cannam@162 10873 if test -d /usr/nec ;then
cannam@162 10874 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 10875 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
cannam@162 10876 soname_spec='$libname${shared_ext}.$major'
cannam@162 10877 shlibpath_var=LD_LIBRARY_PATH
cannam@162 10878 fi
cannam@162 10879 ;;
cannam@162 10880
cannam@162 10881 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
cannam@162 10882 version_type=freebsd-elf
cannam@162 10883 need_lib_prefix=no
cannam@162 10884 need_version=no
cannam@162 10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@162 10886 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 10887 shlibpath_var=LD_LIBRARY_PATH
cannam@162 10888 shlibpath_overrides_runpath=yes
cannam@162 10889 hardcode_into_libs=yes
cannam@162 10890 if test "$with_gnu_ld" = yes; then
cannam@162 10891 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
cannam@162 10892 else
cannam@162 10893 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
cannam@162 10894 case $host_os in
cannam@162 10895 sco3.2v5*)
cannam@162 10896 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
cannam@162 10897 ;;
cannam@162 10898 esac
cannam@162 10899 fi
cannam@162 10900 sys_lib_dlsearch_path_spec='/usr/lib'
cannam@162 10901 ;;
cannam@162 10902
cannam@162 10903 tpf*)
cannam@162 10904 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cannam@162 10905 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 10906 need_lib_prefix=no
cannam@162 10907 need_version=no
cannam@162 10908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 10909 shlibpath_var=LD_LIBRARY_PATH
cannam@162 10910 shlibpath_overrides_runpath=no
cannam@162 10911 hardcode_into_libs=yes
cannam@162 10912 ;;
cannam@162 10913
cannam@162 10914 uts4*)
cannam@162 10915 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 10916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 10917 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 10918 shlibpath_var=LD_LIBRARY_PATH
cannam@162 10919 ;;
cannam@162 10920
cannam@162 10921 *)
cannam@162 10922 dynamic_linker=no
cannam@162 10923 ;;
cannam@162 10924 esac
cannam@162 10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cannam@162 10926 $as_echo "$dynamic_linker" >&6; }
cannam@162 10927 test "$dynamic_linker" = no && can_build_shared=no
cannam@162 10928
cannam@162 10929 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
cannam@162 10930 if test "$GCC" = yes; then
cannam@162 10931 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
cannam@162 10932 fi
cannam@162 10933
cannam@162 10934 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
cannam@162 10935 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
cannam@162 10936 fi
cannam@162 10937 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
cannam@162 10938 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
cannam@162 10939 fi
cannam@162 10940
cannam@162 10941
cannam@162 10942
cannam@162 10943
cannam@162 10944
cannam@162 10945
cannam@162 10946
cannam@162 10947
cannam@162 10948
cannam@162 10949
cannam@162 10950
cannam@162 10951
cannam@162 10952
cannam@162 10953
cannam@162 10954
cannam@162 10955
cannam@162 10956
cannam@162 10957
cannam@162 10958
cannam@162 10959
cannam@162 10960
cannam@162 10961
cannam@162 10962
cannam@162 10963
cannam@162 10964
cannam@162 10965
cannam@162 10966
cannam@162 10967
cannam@162 10968
cannam@162 10969
cannam@162 10970
cannam@162 10971
cannam@162 10972
cannam@162 10973
cannam@162 10974
cannam@162 10975
cannam@162 10976
cannam@162 10977
cannam@162 10978
cannam@162 10979
cannam@162 10980
cannam@162 10981
cannam@162 10982
cannam@162 10983
cannam@162 10984
cannam@162 10985
cannam@162 10986
cannam@162 10987
cannam@162 10988
cannam@162 10989
cannam@162 10990
cannam@162 10991
cannam@162 10992
cannam@162 10993
cannam@162 10994
cannam@162 10995
cannam@162 10996
cannam@162 10997
cannam@162 10998
cannam@162 10999
cannam@162 11000
cannam@162 11001
cannam@162 11002
cannam@162 11003
cannam@162 11004
cannam@162 11005
cannam@162 11006
cannam@162 11007
cannam@162 11008
cannam@162 11009
cannam@162 11010
cannam@162 11011
cannam@162 11012
cannam@162 11013
cannam@162 11014
cannam@162 11015
cannam@162 11016
cannam@162 11017
cannam@162 11018
cannam@162 11019
cannam@162 11020
cannam@162 11021
cannam@162 11022
cannam@162 11023
cannam@162 11024
cannam@162 11025
cannam@162 11026
cannam@162 11027
cannam@162 11028
cannam@162 11029
cannam@162 11030
cannam@162 11031
cannam@162 11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cannam@162 11033 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
cannam@162 11034 hardcode_action=
cannam@162 11035 if test -n "$hardcode_libdir_flag_spec" ||
cannam@162 11036 test -n "$runpath_var" ||
cannam@162 11037 test "X$hardcode_automatic" = "Xyes" ; then
cannam@162 11038
cannam@162 11039 # We can hardcode non-existent directories.
cannam@162 11040 if test "$hardcode_direct" != no &&
cannam@162 11041 # If the only mechanism to avoid hardcoding is shlibpath_var, we
cannam@162 11042 # have to relink, otherwise we might link with an installed library
cannam@162 11043 # when we should be linking with a yet-to-be-installed one
cannam@162 11044 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
cannam@162 11045 test "$hardcode_minus_L" != no; then
cannam@162 11046 # Linking always hardcodes the temporary library directory.
cannam@162 11047 hardcode_action=relink
cannam@162 11048 else
cannam@162 11049 # We can link without hardcoding, and we can hardcode nonexisting dirs.
cannam@162 11050 hardcode_action=immediate
cannam@162 11051 fi
cannam@162 11052 else
cannam@162 11053 # We cannot hardcode anything, or else we can only hardcode existing
cannam@162 11054 # directories.
cannam@162 11055 hardcode_action=unsupported
cannam@162 11056 fi
cannam@162 11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cannam@162 11058 $as_echo "$hardcode_action" >&6; }
cannam@162 11059
cannam@162 11060 if test "$hardcode_action" = relink ||
cannam@162 11061 test "$inherit_rpath" = yes; then
cannam@162 11062 # Fast installation is not supported
cannam@162 11063 enable_fast_install=no
cannam@162 11064 elif test "$shlibpath_overrides_runpath" = yes ||
cannam@162 11065 test "$enable_shared" = no; then
cannam@162 11066 # Fast installation is not necessary
cannam@162 11067 enable_fast_install=needless
cannam@162 11068 fi
cannam@162 11069
cannam@162 11070
cannam@162 11071
cannam@162 11072
cannam@162 11073
cannam@162 11074
cannam@162 11075 if test "x$enable_dlopen" != xyes; then
cannam@162 11076 enable_dlopen=unknown
cannam@162 11077 enable_dlopen_self=unknown
cannam@162 11078 enable_dlopen_self_static=unknown
cannam@162 11079 else
cannam@162 11080 lt_cv_dlopen=no
cannam@162 11081 lt_cv_dlopen_libs=
cannam@162 11082
cannam@162 11083 case $host_os in
cannam@162 11084 beos*)
cannam@162 11085 lt_cv_dlopen="load_add_on"
cannam@162 11086 lt_cv_dlopen_libs=
cannam@162 11087 lt_cv_dlopen_self=yes
cannam@162 11088 ;;
cannam@162 11089
cannam@162 11090 mingw* | pw32* | cegcc*)
cannam@162 11091 lt_cv_dlopen="LoadLibrary"
cannam@162 11092 lt_cv_dlopen_libs=
cannam@162 11093 ;;
cannam@162 11094
cannam@162 11095 cygwin*)
cannam@162 11096 lt_cv_dlopen="dlopen"
cannam@162 11097 lt_cv_dlopen_libs=
cannam@162 11098 ;;
cannam@162 11099
cannam@162 11100 darwin*)
cannam@162 11101 # if libdl is installed we need to link against it
cannam@162 11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cannam@162 11103 $as_echo_n "checking for dlopen in -ldl... " >&6; }
cannam@162 11104 if ${ac_cv_lib_dl_dlopen+:} false; then :
cannam@162 11105 $as_echo_n "(cached) " >&6
cannam@162 11106 else
cannam@162 11107 ac_check_lib_save_LIBS=$LIBS
cannam@162 11108 LIBS="-ldl $LIBS"
cannam@162 11109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 11110 /* end confdefs.h. */
cannam@162 11111
cannam@162 11112 /* Override any GCC internal prototype to avoid an error.
cannam@162 11113 Use char because int might match the return type of a GCC
cannam@162 11114 builtin and then its argument prototype would still apply. */
cannam@162 11115 #ifdef __cplusplus
cannam@162 11116 extern "C"
cannam@162 11117 #endif
cannam@162 11118 char dlopen ();
cannam@162 11119 int
cannam@162 11120 main ()
cannam@162 11121 {
cannam@162 11122 return dlopen ();
cannam@162 11123 ;
cannam@162 11124 return 0;
cannam@162 11125 }
cannam@162 11126 _ACEOF
cannam@162 11127 if ac_fn_c_try_link "$LINENO"; then :
cannam@162 11128 ac_cv_lib_dl_dlopen=yes
cannam@162 11129 else
cannam@162 11130 ac_cv_lib_dl_dlopen=no
cannam@162 11131 fi
cannam@162 11132 rm -f core conftest.err conftest.$ac_objext \
cannam@162 11133 conftest$ac_exeext conftest.$ac_ext
cannam@162 11134 LIBS=$ac_check_lib_save_LIBS
cannam@162 11135 fi
cannam@162 11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cannam@162 11137 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cannam@162 11138 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cannam@162 11139 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
cannam@162 11140 else
cannam@162 11141
cannam@162 11142 lt_cv_dlopen="dyld"
cannam@162 11143 lt_cv_dlopen_libs=
cannam@162 11144 lt_cv_dlopen_self=yes
cannam@162 11145
cannam@162 11146 fi
cannam@162 11147
cannam@162 11148 ;;
cannam@162 11149
cannam@162 11150 *)
cannam@162 11151 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cannam@162 11152 if test "x$ac_cv_func_shl_load" = xyes; then :
cannam@162 11153 lt_cv_dlopen="shl_load"
cannam@162 11154 else
cannam@162 11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cannam@162 11156 $as_echo_n "checking for shl_load in -ldld... " >&6; }
cannam@162 11157 if ${ac_cv_lib_dld_shl_load+:} false; then :
cannam@162 11158 $as_echo_n "(cached) " >&6
cannam@162 11159 else
cannam@162 11160 ac_check_lib_save_LIBS=$LIBS
cannam@162 11161 LIBS="-ldld $LIBS"
cannam@162 11162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 11163 /* end confdefs.h. */
cannam@162 11164
cannam@162 11165 /* Override any GCC internal prototype to avoid an error.
cannam@162 11166 Use char because int might match the return type of a GCC
cannam@162 11167 builtin and then its argument prototype would still apply. */
cannam@162 11168 #ifdef __cplusplus
cannam@162 11169 extern "C"
cannam@162 11170 #endif
cannam@162 11171 char shl_load ();
cannam@162 11172 int
cannam@162 11173 main ()
cannam@162 11174 {
cannam@162 11175 return shl_load ();
cannam@162 11176 ;
cannam@162 11177 return 0;
cannam@162 11178 }
cannam@162 11179 _ACEOF
cannam@162 11180 if ac_fn_c_try_link "$LINENO"; then :
cannam@162 11181 ac_cv_lib_dld_shl_load=yes
cannam@162 11182 else
cannam@162 11183 ac_cv_lib_dld_shl_load=no
cannam@162 11184 fi
cannam@162 11185 rm -f core conftest.err conftest.$ac_objext \
cannam@162 11186 conftest$ac_exeext conftest.$ac_ext
cannam@162 11187 LIBS=$ac_check_lib_save_LIBS
cannam@162 11188 fi
cannam@162 11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cannam@162 11190 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cannam@162 11191 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cannam@162 11192 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
cannam@162 11193 else
cannam@162 11194 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cannam@162 11195 if test "x$ac_cv_func_dlopen" = xyes; then :
cannam@162 11196 lt_cv_dlopen="dlopen"
cannam@162 11197 else
cannam@162 11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cannam@162 11199 $as_echo_n "checking for dlopen in -ldl... " >&6; }
cannam@162 11200 if ${ac_cv_lib_dl_dlopen+:} false; then :
cannam@162 11201 $as_echo_n "(cached) " >&6
cannam@162 11202 else
cannam@162 11203 ac_check_lib_save_LIBS=$LIBS
cannam@162 11204 LIBS="-ldl $LIBS"
cannam@162 11205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 11206 /* end confdefs.h. */
cannam@162 11207
cannam@162 11208 /* Override any GCC internal prototype to avoid an error.
cannam@162 11209 Use char because int might match the return type of a GCC
cannam@162 11210 builtin and then its argument prototype would still apply. */
cannam@162 11211 #ifdef __cplusplus
cannam@162 11212 extern "C"
cannam@162 11213 #endif
cannam@162 11214 char dlopen ();
cannam@162 11215 int
cannam@162 11216 main ()
cannam@162 11217 {
cannam@162 11218 return dlopen ();
cannam@162 11219 ;
cannam@162 11220 return 0;
cannam@162 11221 }
cannam@162 11222 _ACEOF
cannam@162 11223 if ac_fn_c_try_link "$LINENO"; then :
cannam@162 11224 ac_cv_lib_dl_dlopen=yes
cannam@162 11225 else
cannam@162 11226 ac_cv_lib_dl_dlopen=no
cannam@162 11227 fi
cannam@162 11228 rm -f core conftest.err conftest.$ac_objext \
cannam@162 11229 conftest$ac_exeext conftest.$ac_ext
cannam@162 11230 LIBS=$ac_check_lib_save_LIBS
cannam@162 11231 fi
cannam@162 11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cannam@162 11233 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cannam@162 11234 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cannam@162 11235 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
cannam@162 11236 else
cannam@162 11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cannam@162 11238 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
cannam@162 11239 if ${ac_cv_lib_svld_dlopen+:} false; then :
cannam@162 11240 $as_echo_n "(cached) " >&6
cannam@162 11241 else
cannam@162 11242 ac_check_lib_save_LIBS=$LIBS
cannam@162 11243 LIBS="-lsvld $LIBS"
cannam@162 11244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 11245 /* end confdefs.h. */
cannam@162 11246
cannam@162 11247 /* Override any GCC internal prototype to avoid an error.
cannam@162 11248 Use char because int might match the return type of a GCC
cannam@162 11249 builtin and then its argument prototype would still apply. */
cannam@162 11250 #ifdef __cplusplus
cannam@162 11251 extern "C"
cannam@162 11252 #endif
cannam@162 11253 char dlopen ();
cannam@162 11254 int
cannam@162 11255 main ()
cannam@162 11256 {
cannam@162 11257 return dlopen ();
cannam@162 11258 ;
cannam@162 11259 return 0;
cannam@162 11260 }
cannam@162 11261 _ACEOF
cannam@162 11262 if ac_fn_c_try_link "$LINENO"; then :
cannam@162 11263 ac_cv_lib_svld_dlopen=yes
cannam@162 11264 else
cannam@162 11265 ac_cv_lib_svld_dlopen=no
cannam@162 11266 fi
cannam@162 11267 rm -f core conftest.err conftest.$ac_objext \
cannam@162 11268 conftest$ac_exeext conftest.$ac_ext
cannam@162 11269 LIBS=$ac_check_lib_save_LIBS
cannam@162 11270 fi
cannam@162 11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cannam@162 11272 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cannam@162 11273 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cannam@162 11274 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
cannam@162 11275 else
cannam@162 11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cannam@162 11277 $as_echo_n "checking for dld_link in -ldld... " >&6; }
cannam@162 11278 if ${ac_cv_lib_dld_dld_link+:} false; then :
cannam@162 11279 $as_echo_n "(cached) " >&6
cannam@162 11280 else
cannam@162 11281 ac_check_lib_save_LIBS=$LIBS
cannam@162 11282 LIBS="-ldld $LIBS"
cannam@162 11283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 11284 /* end confdefs.h. */
cannam@162 11285
cannam@162 11286 /* Override any GCC internal prototype to avoid an error.
cannam@162 11287 Use char because int might match the return type of a GCC
cannam@162 11288 builtin and then its argument prototype would still apply. */
cannam@162 11289 #ifdef __cplusplus
cannam@162 11290 extern "C"
cannam@162 11291 #endif
cannam@162 11292 char dld_link ();
cannam@162 11293 int
cannam@162 11294 main ()
cannam@162 11295 {
cannam@162 11296 return dld_link ();
cannam@162 11297 ;
cannam@162 11298 return 0;
cannam@162 11299 }
cannam@162 11300 _ACEOF
cannam@162 11301 if ac_fn_c_try_link "$LINENO"; then :
cannam@162 11302 ac_cv_lib_dld_dld_link=yes
cannam@162 11303 else
cannam@162 11304 ac_cv_lib_dld_dld_link=no
cannam@162 11305 fi
cannam@162 11306 rm -f core conftest.err conftest.$ac_objext \
cannam@162 11307 conftest$ac_exeext conftest.$ac_ext
cannam@162 11308 LIBS=$ac_check_lib_save_LIBS
cannam@162 11309 fi
cannam@162 11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cannam@162 11311 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cannam@162 11312 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cannam@162 11313 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
cannam@162 11314 fi
cannam@162 11315
cannam@162 11316
cannam@162 11317 fi
cannam@162 11318
cannam@162 11319
cannam@162 11320 fi
cannam@162 11321
cannam@162 11322
cannam@162 11323 fi
cannam@162 11324
cannam@162 11325
cannam@162 11326 fi
cannam@162 11327
cannam@162 11328
cannam@162 11329 fi
cannam@162 11330
cannam@162 11331 ;;
cannam@162 11332 esac
cannam@162 11333
cannam@162 11334 if test "x$lt_cv_dlopen" != xno; then
cannam@162 11335 enable_dlopen=yes
cannam@162 11336 else
cannam@162 11337 enable_dlopen=no
cannam@162 11338 fi
cannam@162 11339
cannam@162 11340 case $lt_cv_dlopen in
cannam@162 11341 dlopen)
cannam@162 11342 save_CPPFLAGS="$CPPFLAGS"
cannam@162 11343 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
cannam@162 11344
cannam@162 11345 save_LDFLAGS="$LDFLAGS"
cannam@162 11346 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
cannam@162 11347
cannam@162 11348 save_LIBS="$LIBS"
cannam@162 11349 LIBS="$lt_cv_dlopen_libs $LIBS"
cannam@162 11350
cannam@162 11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cannam@162 11352 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
cannam@162 11353 if ${lt_cv_dlopen_self+:} false; then :
cannam@162 11354 $as_echo_n "(cached) " >&6
cannam@162 11355 else
cannam@162 11356 if test "$cross_compiling" = yes; then :
cannam@162 11357 lt_cv_dlopen_self=cross
cannam@162 11358 else
cannam@162 11359 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@162 11360 lt_status=$lt_dlunknown
cannam@162 11361 cat > conftest.$ac_ext <<_LT_EOF
cannam@162 11362 #line $LINENO "configure"
cannam@162 11363 #include "confdefs.h"
cannam@162 11364
cannam@162 11365 #if HAVE_DLFCN_H
cannam@162 11366 #include <dlfcn.h>
cannam@162 11367 #endif
cannam@162 11368
cannam@162 11369 #include <stdio.h>
cannam@162 11370
cannam@162 11371 #ifdef RTLD_GLOBAL
cannam@162 11372 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@162 11373 #else
cannam@162 11374 # ifdef DL_GLOBAL
cannam@162 11375 # define LT_DLGLOBAL DL_GLOBAL
cannam@162 11376 # else
cannam@162 11377 # define LT_DLGLOBAL 0
cannam@162 11378 # endif
cannam@162 11379 #endif
cannam@162 11380
cannam@162 11381 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@162 11382 find out it does not work in some platform. */
cannam@162 11383 #ifndef LT_DLLAZY_OR_NOW
cannam@162 11384 # ifdef RTLD_LAZY
cannam@162 11385 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@162 11386 # else
cannam@162 11387 # ifdef DL_LAZY
cannam@162 11388 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@162 11389 # else
cannam@162 11390 # ifdef RTLD_NOW
cannam@162 11391 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@162 11392 # else
cannam@162 11393 # ifdef DL_NOW
cannam@162 11394 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@162 11395 # else
cannam@162 11396 # define LT_DLLAZY_OR_NOW 0
cannam@162 11397 # endif
cannam@162 11398 # endif
cannam@162 11399 # endif
cannam@162 11400 # endif
cannam@162 11401 #endif
cannam@162 11402
cannam@162 11403 /* When -fvisbility=hidden is used, assume the code has been annotated
cannam@162 11404 correspondingly for the symbols needed. */
cannam@162 11405 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cannam@162 11406 int fnord () __attribute__((visibility("default")));
cannam@162 11407 #endif
cannam@162 11408
cannam@162 11409 int fnord () { return 42; }
cannam@162 11410 int main ()
cannam@162 11411 {
cannam@162 11412 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@162 11413 int status = $lt_dlunknown;
cannam@162 11414
cannam@162 11415 if (self)
cannam@162 11416 {
cannam@162 11417 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@162 11418 else
cannam@162 11419 {
cannam@162 11420 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@162 11421 else puts (dlerror ());
cannam@162 11422 }
cannam@162 11423 /* dlclose (self); */
cannam@162 11424 }
cannam@162 11425 else
cannam@162 11426 puts (dlerror ());
cannam@162 11427
cannam@162 11428 return status;
cannam@162 11429 }
cannam@162 11430 _LT_EOF
cannam@162 11431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cannam@162 11432 (eval $ac_link) 2>&5
cannam@162 11433 ac_status=$?
cannam@162 11434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 11435 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cannam@162 11436 (./conftest; exit; ) >&5 2>/dev/null
cannam@162 11437 lt_status=$?
cannam@162 11438 case x$lt_status in
cannam@162 11439 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
cannam@162 11440 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
cannam@162 11441 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
cannam@162 11442 esac
cannam@162 11443 else :
cannam@162 11444 # compilation failed
cannam@162 11445 lt_cv_dlopen_self=no
cannam@162 11446 fi
cannam@162 11447 fi
cannam@162 11448 rm -fr conftest*
cannam@162 11449
cannam@162 11450
cannam@162 11451 fi
cannam@162 11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cannam@162 11453 $as_echo "$lt_cv_dlopen_self" >&6; }
cannam@162 11454
cannam@162 11455 if test "x$lt_cv_dlopen_self" = xyes; then
cannam@162 11456 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cannam@162 11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cannam@162 11458 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cannam@162 11459 if ${lt_cv_dlopen_self_static+:} false; then :
cannam@162 11460 $as_echo_n "(cached) " >&6
cannam@162 11461 else
cannam@162 11462 if test "$cross_compiling" = yes; then :
cannam@162 11463 lt_cv_dlopen_self_static=cross
cannam@162 11464 else
cannam@162 11465 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@162 11466 lt_status=$lt_dlunknown
cannam@162 11467 cat > conftest.$ac_ext <<_LT_EOF
cannam@162 11468 #line $LINENO "configure"
cannam@162 11469 #include "confdefs.h"
cannam@162 11470
cannam@162 11471 #if HAVE_DLFCN_H
cannam@162 11472 #include <dlfcn.h>
cannam@162 11473 #endif
cannam@162 11474
cannam@162 11475 #include <stdio.h>
cannam@162 11476
cannam@162 11477 #ifdef RTLD_GLOBAL
cannam@162 11478 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@162 11479 #else
cannam@162 11480 # ifdef DL_GLOBAL
cannam@162 11481 # define LT_DLGLOBAL DL_GLOBAL
cannam@162 11482 # else
cannam@162 11483 # define LT_DLGLOBAL 0
cannam@162 11484 # endif
cannam@162 11485 #endif
cannam@162 11486
cannam@162 11487 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@162 11488 find out it does not work in some platform. */
cannam@162 11489 #ifndef LT_DLLAZY_OR_NOW
cannam@162 11490 # ifdef RTLD_LAZY
cannam@162 11491 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@162 11492 # else
cannam@162 11493 # ifdef DL_LAZY
cannam@162 11494 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@162 11495 # else
cannam@162 11496 # ifdef RTLD_NOW
cannam@162 11497 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@162 11498 # else
cannam@162 11499 # ifdef DL_NOW
cannam@162 11500 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@162 11501 # else
cannam@162 11502 # define LT_DLLAZY_OR_NOW 0
cannam@162 11503 # endif
cannam@162 11504 # endif
cannam@162 11505 # endif
cannam@162 11506 # endif
cannam@162 11507 #endif
cannam@162 11508
cannam@162 11509 /* When -fvisbility=hidden is used, assume the code has been annotated
cannam@162 11510 correspondingly for the symbols needed. */
cannam@162 11511 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cannam@162 11512 int fnord () __attribute__((visibility("default")));
cannam@162 11513 #endif
cannam@162 11514
cannam@162 11515 int fnord () { return 42; }
cannam@162 11516 int main ()
cannam@162 11517 {
cannam@162 11518 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@162 11519 int status = $lt_dlunknown;
cannam@162 11520
cannam@162 11521 if (self)
cannam@162 11522 {
cannam@162 11523 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@162 11524 else
cannam@162 11525 {
cannam@162 11526 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@162 11527 else puts (dlerror ());
cannam@162 11528 }
cannam@162 11529 /* dlclose (self); */
cannam@162 11530 }
cannam@162 11531 else
cannam@162 11532 puts (dlerror ());
cannam@162 11533
cannam@162 11534 return status;
cannam@162 11535 }
cannam@162 11536 _LT_EOF
cannam@162 11537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cannam@162 11538 (eval $ac_link) 2>&5
cannam@162 11539 ac_status=$?
cannam@162 11540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 11541 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cannam@162 11542 (./conftest; exit; ) >&5 2>/dev/null
cannam@162 11543 lt_status=$?
cannam@162 11544 case x$lt_status in
cannam@162 11545 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@162 11546 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@162 11547 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
cannam@162 11548 esac
cannam@162 11549 else :
cannam@162 11550 # compilation failed
cannam@162 11551 lt_cv_dlopen_self_static=no
cannam@162 11552 fi
cannam@162 11553 fi
cannam@162 11554 rm -fr conftest*
cannam@162 11555
cannam@162 11556
cannam@162 11557 fi
cannam@162 11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cannam@162 11559 $as_echo "$lt_cv_dlopen_self_static" >&6; }
cannam@162 11560 fi
cannam@162 11561
cannam@162 11562 CPPFLAGS="$save_CPPFLAGS"
cannam@162 11563 LDFLAGS="$save_LDFLAGS"
cannam@162 11564 LIBS="$save_LIBS"
cannam@162 11565 ;;
cannam@162 11566 esac
cannam@162 11567
cannam@162 11568 case $lt_cv_dlopen_self in
cannam@162 11569 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
cannam@162 11570 *) enable_dlopen_self=unknown ;;
cannam@162 11571 esac
cannam@162 11572
cannam@162 11573 case $lt_cv_dlopen_self_static in
cannam@162 11574 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
cannam@162 11575 *) enable_dlopen_self_static=unknown ;;
cannam@162 11576 esac
cannam@162 11577 fi
cannam@162 11578
cannam@162 11579
cannam@162 11580
cannam@162 11581
cannam@162 11582
cannam@162 11583
cannam@162 11584
cannam@162 11585
cannam@162 11586
cannam@162 11587
cannam@162 11588
cannam@162 11589
cannam@162 11590
cannam@162 11591
cannam@162 11592
cannam@162 11593
cannam@162 11594
cannam@162 11595 striplib=
cannam@162 11596 old_striplib=
cannam@162 11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cannam@162 11598 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
cannam@162 11599 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
cannam@162 11600 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
cannam@162 11601 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cannam@162 11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@162 11603 $as_echo "yes" >&6; }
cannam@162 11604 else
cannam@162 11605 # FIXME - insert some real tests, host_os isn't really good enough
cannam@162 11606 case $host_os in
cannam@162 11607 darwin*)
cannam@162 11608 if test -n "$STRIP" ; then
cannam@162 11609 striplib="$STRIP -x"
cannam@162 11610 old_striplib="$STRIP -S"
cannam@162 11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@162 11612 $as_echo "yes" >&6; }
cannam@162 11613 else
cannam@162 11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 11615 $as_echo "no" >&6; }
cannam@162 11616 fi
cannam@162 11617 ;;
cannam@162 11618 *)
cannam@162 11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 11620 $as_echo "no" >&6; }
cannam@162 11621 ;;
cannam@162 11622 esac
cannam@162 11623 fi
cannam@162 11624
cannam@162 11625
cannam@162 11626
cannam@162 11627
cannam@162 11628
cannam@162 11629
cannam@162 11630
cannam@162 11631
cannam@162 11632
cannam@162 11633
cannam@162 11634
cannam@162 11635
cannam@162 11636 # Report which library types will actually be built
cannam@162 11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cannam@162 11638 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
cannam@162 11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cannam@162 11640 $as_echo "$can_build_shared" >&6; }
cannam@162 11641
cannam@162 11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cannam@162 11643 $as_echo_n "checking whether to build shared libraries... " >&6; }
cannam@162 11644 test "$can_build_shared" = "no" && enable_shared=no
cannam@162 11645
cannam@162 11646 # On AIX, shared libraries and static libraries use the same namespace, and
cannam@162 11647 # are all built from PIC.
cannam@162 11648 case $host_os in
cannam@162 11649 aix3*)
cannam@162 11650 test "$enable_shared" = yes && enable_static=no
cannam@162 11651 if test -n "$RANLIB"; then
cannam@162 11652 archive_cmds="$archive_cmds~\$RANLIB \$lib"
cannam@162 11653 postinstall_cmds='$RANLIB $lib'
cannam@162 11654 fi
cannam@162 11655 ;;
cannam@162 11656
cannam@162 11657 aix[4-9]*)
cannam@162 11658 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
cannam@162 11659 test "$enable_shared" = yes && enable_static=no
cannam@162 11660 fi
cannam@162 11661 ;;
cannam@162 11662 esac
cannam@162 11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cannam@162 11664 $as_echo "$enable_shared" >&6; }
cannam@162 11665
cannam@162 11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cannam@162 11667 $as_echo_n "checking whether to build static libraries... " >&6; }
cannam@162 11668 # Make sure either enable_shared or enable_static is yes.
cannam@162 11669 test "$enable_shared" = yes || enable_static=yes
cannam@162 11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cannam@162 11671 $as_echo "$enable_static" >&6; }
cannam@162 11672
cannam@162 11673
cannam@162 11674
cannam@162 11675
cannam@162 11676 fi
cannam@162 11677 ac_ext=c
cannam@162 11678 ac_cpp='$CPP $CPPFLAGS'
cannam@162 11679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@162 11680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@162 11681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@162 11682
cannam@162 11683 CC="$lt_save_CC"
cannam@162 11684
cannam@162 11685 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
cannam@162 11686 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
cannam@162 11687 (test "X$CXX" != "Xg++"))) ; then
cannam@162 11688 ac_ext=cpp
cannam@162 11689 ac_cpp='$CXXCPP $CPPFLAGS'
cannam@162 11690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@162 11691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@162 11692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cannam@162 11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
cannam@162 11694 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
cannam@162 11695 if test -z "$CXXCPP"; then
cannam@162 11696 if ${ac_cv_prog_CXXCPP+:} false; then :
cannam@162 11697 $as_echo_n "(cached) " >&6
cannam@162 11698 else
cannam@162 11699 # Double quotes because CXXCPP needs to be expanded
cannam@162 11700 for CXXCPP in "$CXX -E" "/lib/cpp"
cannam@162 11701 do
cannam@162 11702 ac_preproc_ok=false
cannam@162 11703 for ac_cxx_preproc_warn_flag in '' yes
cannam@162 11704 do
cannam@162 11705 # Use a header file that comes with gcc, so configuring glibc
cannam@162 11706 # with a fresh cross-compiler works.
cannam@162 11707 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@162 11708 # <limits.h> exists even on freestanding compilers.
cannam@162 11709 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@162 11710 # not just through cpp. "Syntax error" is here to catch this case.
cannam@162 11711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 11712 /* end confdefs.h. */
cannam@162 11713 #ifdef __STDC__
cannam@162 11714 # include <limits.h>
cannam@162 11715 #else
cannam@162 11716 # include <assert.h>
cannam@162 11717 #endif
cannam@162 11718 Syntax error
cannam@162 11719 _ACEOF
cannam@162 11720 if ac_fn_cxx_try_cpp "$LINENO"; then :
cannam@162 11721
cannam@162 11722 else
cannam@162 11723 # Broken: fails on valid input.
cannam@162 11724 continue
cannam@162 11725 fi
cannam@162 11726 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@162 11727
cannam@162 11728 # OK, works on sane cases. Now check whether nonexistent headers
cannam@162 11729 # can be detected and how.
cannam@162 11730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 11731 /* end confdefs.h. */
cannam@162 11732 #include <ac_nonexistent.h>
cannam@162 11733 _ACEOF
cannam@162 11734 if ac_fn_cxx_try_cpp "$LINENO"; then :
cannam@162 11735 # Broken: success on invalid input.
cannam@162 11736 continue
cannam@162 11737 else
cannam@162 11738 # Passes both tests.
cannam@162 11739 ac_preproc_ok=:
cannam@162 11740 break
cannam@162 11741 fi
cannam@162 11742 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@162 11743
cannam@162 11744 done
cannam@162 11745 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@162 11746 rm -f conftest.i conftest.err conftest.$ac_ext
cannam@162 11747 if $ac_preproc_ok; then :
cannam@162 11748 break
cannam@162 11749 fi
cannam@162 11750
cannam@162 11751 done
cannam@162 11752 ac_cv_prog_CXXCPP=$CXXCPP
cannam@162 11753
cannam@162 11754 fi
cannam@162 11755 CXXCPP=$ac_cv_prog_CXXCPP
cannam@162 11756 else
cannam@162 11757 ac_cv_prog_CXXCPP=$CXXCPP
cannam@162 11758 fi
cannam@162 11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
cannam@162 11760 $as_echo "$CXXCPP" >&6; }
cannam@162 11761 ac_preproc_ok=false
cannam@162 11762 for ac_cxx_preproc_warn_flag in '' yes
cannam@162 11763 do
cannam@162 11764 # Use a header file that comes with gcc, so configuring glibc
cannam@162 11765 # with a fresh cross-compiler works.
cannam@162 11766 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@162 11767 # <limits.h> exists even on freestanding compilers.
cannam@162 11768 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@162 11769 # not just through cpp. "Syntax error" is here to catch this case.
cannam@162 11770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 11771 /* end confdefs.h. */
cannam@162 11772 #ifdef __STDC__
cannam@162 11773 # include <limits.h>
cannam@162 11774 #else
cannam@162 11775 # include <assert.h>
cannam@162 11776 #endif
cannam@162 11777 Syntax error
cannam@162 11778 _ACEOF
cannam@162 11779 if ac_fn_cxx_try_cpp "$LINENO"; then :
cannam@162 11780
cannam@162 11781 else
cannam@162 11782 # Broken: fails on valid input.
cannam@162 11783 continue
cannam@162 11784 fi
cannam@162 11785 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@162 11786
cannam@162 11787 # OK, works on sane cases. Now check whether nonexistent headers
cannam@162 11788 # can be detected and how.
cannam@162 11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 11790 /* end confdefs.h. */
cannam@162 11791 #include <ac_nonexistent.h>
cannam@162 11792 _ACEOF
cannam@162 11793 if ac_fn_cxx_try_cpp "$LINENO"; then :
cannam@162 11794 # Broken: success on invalid input.
cannam@162 11795 continue
cannam@162 11796 else
cannam@162 11797 # Passes both tests.
cannam@162 11798 ac_preproc_ok=:
cannam@162 11799 break
cannam@162 11800 fi
cannam@162 11801 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@162 11802
cannam@162 11803 done
cannam@162 11804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@162 11805 rm -f conftest.i conftest.err conftest.$ac_ext
cannam@162 11806 if $ac_preproc_ok; then :
cannam@162 11807
cannam@162 11808 else
cannam@162 11809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@162 11810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@162 11811 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
cannam@162 11812 See \`config.log' for more details" "$LINENO" 5; }
cannam@162 11813 fi
cannam@162 11814
cannam@162 11815 ac_ext=c
cannam@162 11816 ac_cpp='$CPP $CPPFLAGS'
cannam@162 11817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@162 11818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@162 11819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@162 11820
cannam@162 11821 else
cannam@162 11822 _lt_caught_CXX_error=yes
cannam@162 11823 fi
cannam@162 11824
cannam@162 11825 ac_ext=cpp
cannam@162 11826 ac_cpp='$CXXCPP $CPPFLAGS'
cannam@162 11827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@162 11828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@162 11829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cannam@162 11830
cannam@162 11831 archive_cmds_need_lc_CXX=no
cannam@162 11832 allow_undefined_flag_CXX=
cannam@162 11833 always_export_symbols_CXX=no
cannam@162 11834 archive_expsym_cmds_CXX=
cannam@162 11835 compiler_needs_object_CXX=no
cannam@162 11836 export_dynamic_flag_spec_CXX=
cannam@162 11837 hardcode_direct_CXX=no
cannam@162 11838 hardcode_direct_absolute_CXX=no
cannam@162 11839 hardcode_libdir_flag_spec_CXX=
cannam@162 11840 hardcode_libdir_separator_CXX=
cannam@162 11841 hardcode_minus_L_CXX=no
cannam@162 11842 hardcode_shlibpath_var_CXX=unsupported
cannam@162 11843 hardcode_automatic_CXX=no
cannam@162 11844 inherit_rpath_CXX=no
cannam@162 11845 module_cmds_CXX=
cannam@162 11846 module_expsym_cmds_CXX=
cannam@162 11847 link_all_deplibs_CXX=unknown
cannam@162 11848 old_archive_cmds_CXX=$old_archive_cmds
cannam@162 11849 reload_flag_CXX=$reload_flag
cannam@162 11850 reload_cmds_CXX=$reload_cmds
cannam@162 11851 no_undefined_flag_CXX=
cannam@162 11852 whole_archive_flag_spec_CXX=
cannam@162 11853 enable_shared_with_static_runtimes_CXX=no
cannam@162 11854
cannam@162 11855 # Source file extension for C++ test sources.
cannam@162 11856 ac_ext=cpp
cannam@162 11857
cannam@162 11858 # Object file extension for compiled C++ test sources.
cannam@162 11859 objext=o
cannam@162 11860 objext_CXX=$objext
cannam@162 11861
cannam@162 11862 # No sense in running all these tests if we already determined that
cannam@162 11863 # the CXX compiler isn't working. Some variables (like enable_shared)
cannam@162 11864 # are currently assumed to apply to all compilers on this platform,
cannam@162 11865 # and will be corrupted by setting them based on a non-working compiler.
cannam@162 11866 if test "$_lt_caught_CXX_error" != yes; then
cannam@162 11867 # Code to be used in simple compile tests
cannam@162 11868 lt_simple_compile_test_code="int some_variable = 0;"
cannam@162 11869
cannam@162 11870 # Code to be used in simple link tests
cannam@162 11871 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
cannam@162 11872
cannam@162 11873 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
cannam@162 11874
cannam@162 11875
cannam@162 11876
cannam@162 11877
cannam@162 11878
cannam@162 11879
cannam@162 11880 # If no C compiler was specified, use CC.
cannam@162 11881 LTCC=${LTCC-"$CC"}
cannam@162 11882
cannam@162 11883 # If no C compiler flags were specified, use CFLAGS.
cannam@162 11884 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cannam@162 11885
cannam@162 11886 # Allow CC to be a program name with arguments.
cannam@162 11887 compiler=$CC
cannam@162 11888
cannam@162 11889
cannam@162 11890 # save warnings/boilerplate of simple test code
cannam@162 11891 ac_outfile=conftest.$ac_objext
cannam@162 11892 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
cannam@162 11893 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@162 11894 _lt_compiler_boilerplate=`cat conftest.err`
cannam@162 11895 $RM conftest*
cannam@162 11896
cannam@162 11897 ac_outfile=conftest.$ac_objext
cannam@162 11898 echo "$lt_simple_link_test_code" >conftest.$ac_ext
cannam@162 11899 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@162 11900 _lt_linker_boilerplate=`cat conftest.err`
cannam@162 11901 $RM -r conftest*
cannam@162 11902
cannam@162 11903
cannam@162 11904 # Allow CC to be a program name with arguments.
cannam@162 11905 lt_save_CC=$CC
cannam@162 11906 lt_save_CFLAGS=$CFLAGS
cannam@162 11907 lt_save_LD=$LD
cannam@162 11908 lt_save_GCC=$GCC
cannam@162 11909 GCC=$GXX
cannam@162 11910 lt_save_with_gnu_ld=$with_gnu_ld
cannam@162 11911 lt_save_path_LD=$lt_cv_path_LD
cannam@162 11912 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
cannam@162 11913 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
cannam@162 11914 else
cannam@162 11915 $as_unset lt_cv_prog_gnu_ld
cannam@162 11916 fi
cannam@162 11917 if test -n "${lt_cv_path_LDCXX+set}"; then
cannam@162 11918 lt_cv_path_LD=$lt_cv_path_LDCXX
cannam@162 11919 else
cannam@162 11920 $as_unset lt_cv_path_LD
cannam@162 11921 fi
cannam@162 11922 test -z "${LDCXX+set}" || LD=$LDCXX
cannam@162 11923 CC=${CXX-"c++"}
cannam@162 11924 CFLAGS=$CXXFLAGS
cannam@162 11925 compiler=$CC
cannam@162 11926 compiler_CXX=$CC
cannam@162 11927 for cc_temp in $compiler""; do
cannam@162 11928 case $cc_temp in
cannam@162 11929 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
cannam@162 11930 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
cannam@162 11931 \-*) ;;
cannam@162 11932 *) break;;
cannam@162 11933 esac
cannam@162 11934 done
cannam@162 11935 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cannam@162 11936
cannam@162 11937
cannam@162 11938 if test -n "$compiler"; then
cannam@162 11939 # We don't want -fno-exception when compiling C++ code, so set the
cannam@162 11940 # no_builtin_flag separately
cannam@162 11941 if test "$GXX" = yes; then
cannam@162 11942 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
cannam@162 11943 else
cannam@162 11944 lt_prog_compiler_no_builtin_flag_CXX=
cannam@162 11945 fi
cannam@162 11946
cannam@162 11947 if test "$GXX" = yes; then
cannam@162 11948 # Set up default GNU C++ configuration
cannam@162 11949
cannam@162 11950
cannam@162 11951
cannam@162 11952 # Check whether --with-gnu-ld was given.
cannam@162 11953 if test "${with_gnu_ld+set}" = set; then :
cannam@162 11954 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
cannam@162 11955 else
cannam@162 11956 with_gnu_ld=no
cannam@162 11957 fi
cannam@162 11958
cannam@162 11959 ac_prog=ld
cannam@162 11960 if test "$GCC" = yes; then
cannam@162 11961 # Check if gcc -print-prog-name=ld gives a path.
cannam@162 11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cannam@162 11963 $as_echo_n "checking for ld used by $CC... " >&6; }
cannam@162 11964 case $host in
cannam@162 11965 *-*-mingw*)
cannam@162 11966 # gcc leaves a trailing carriage return which upsets mingw
cannam@162 11967 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
cannam@162 11968 *)
cannam@162 11969 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
cannam@162 11970 esac
cannam@162 11971 case $ac_prog in
cannam@162 11972 # Accept absolute paths.
cannam@162 11973 [\\/]* | ?:[\\/]*)
cannam@162 11974 re_direlt='/[^/][^/]*/\.\./'
cannam@162 11975 # Canonicalize the pathname of ld
cannam@162 11976 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
cannam@162 11977 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
cannam@162 11978 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cannam@162 11979 done
cannam@162 11980 test -z "$LD" && LD="$ac_prog"
cannam@162 11981 ;;
cannam@162 11982 "")
cannam@162 11983 # If it fails, then pretend we aren't using GCC.
cannam@162 11984 ac_prog=ld
cannam@162 11985 ;;
cannam@162 11986 *)
cannam@162 11987 # If it is relative, then search for the first ld in PATH.
cannam@162 11988 with_gnu_ld=unknown
cannam@162 11989 ;;
cannam@162 11990 esac
cannam@162 11991 elif test "$with_gnu_ld" = yes; then
cannam@162 11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cannam@162 11993 $as_echo_n "checking for GNU ld... " >&6; }
cannam@162 11994 else
cannam@162 11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cannam@162 11996 $as_echo_n "checking for non-GNU ld... " >&6; }
cannam@162 11997 fi
cannam@162 11998 if ${lt_cv_path_LD+:} false; then :
cannam@162 11999 $as_echo_n "(cached) " >&6
cannam@162 12000 else
cannam@162 12001 if test -z "$LD"; then
cannam@162 12002 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@162 12003 for ac_dir in $PATH; do
cannam@162 12004 IFS="$lt_save_ifs"
cannam@162 12005 test -z "$ac_dir" && ac_dir=.
cannam@162 12006 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
cannam@162 12007 lt_cv_path_LD="$ac_dir/$ac_prog"
cannam@162 12008 # Check to see if the program is GNU ld. I'd rather use --version,
cannam@162 12009 # but apparently some variants of GNU ld only accept -v.
cannam@162 12010 # Break only if it was the GNU/non-GNU ld that we prefer.
cannam@162 12011 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
cannam@162 12012 *GNU* | *'with BFD'*)
cannam@162 12013 test "$with_gnu_ld" != no && break
cannam@162 12014 ;;
cannam@162 12015 *)
cannam@162 12016 test "$with_gnu_ld" != yes && break
cannam@162 12017 ;;
cannam@162 12018 esac
cannam@162 12019 fi
cannam@162 12020 done
cannam@162 12021 IFS="$lt_save_ifs"
cannam@162 12022 else
cannam@162 12023 lt_cv_path_LD="$LD" # Let the user override the test with a path.
cannam@162 12024 fi
cannam@162 12025 fi
cannam@162 12026
cannam@162 12027 LD="$lt_cv_path_LD"
cannam@162 12028 if test -n "$LD"; then
cannam@162 12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cannam@162 12030 $as_echo "$LD" >&6; }
cannam@162 12031 else
cannam@162 12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 12033 $as_echo "no" >&6; }
cannam@162 12034 fi
cannam@162 12035 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cannam@162 12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cannam@162 12037 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cannam@162 12038 if ${lt_cv_prog_gnu_ld+:} false; then :
cannam@162 12039 $as_echo_n "(cached) " >&6
cannam@162 12040 else
cannam@162 12041 # I'd rather use --version here, but apparently some GNU lds only accept -v.
cannam@162 12042 case `$LD -v 2>&1 </dev/null` in
cannam@162 12043 *GNU* | *'with BFD'*)
cannam@162 12044 lt_cv_prog_gnu_ld=yes
cannam@162 12045 ;;
cannam@162 12046 *)
cannam@162 12047 lt_cv_prog_gnu_ld=no
cannam@162 12048 ;;
cannam@162 12049 esac
cannam@162 12050 fi
cannam@162 12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cannam@162 12052 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
cannam@162 12053 with_gnu_ld=$lt_cv_prog_gnu_ld
cannam@162 12054
cannam@162 12055
cannam@162 12056
cannam@162 12057
cannam@162 12058
cannam@162 12059
cannam@162 12060
cannam@162 12061 # Check if GNU C++ uses GNU ld as the underlying linker, since the
cannam@162 12062 # archiving commands below assume that GNU ld is being used.
cannam@162 12063 if test "$with_gnu_ld" = yes; then
cannam@162 12064 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@162 12065 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@162 12066
cannam@162 12067 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
cannam@162 12068 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cannam@162 12069
cannam@162 12070 # If archive_cmds runs LD, not CC, wlarc should be empty
cannam@162 12071 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
cannam@162 12072 # investigate it a little bit more. (MM)
cannam@162 12073 wlarc='${wl}'
cannam@162 12074
cannam@162 12075 # ancient GNU ld didn't support --whole-archive et. al.
cannam@162 12076 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
cannam@162 12077 $GREP 'no-whole-archive' > /dev/null; then
cannam@162 12078 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
cannam@162 12079 else
cannam@162 12080 whole_archive_flag_spec_CXX=
cannam@162 12081 fi
cannam@162 12082 else
cannam@162 12083 with_gnu_ld=no
cannam@162 12084 wlarc=
cannam@162 12085
cannam@162 12086 # A generic and very simple default shared library creation
cannam@162 12087 # command for GNU C++ for the case where it uses the native
cannam@162 12088 # linker, instead of GNU ld. If possible, this setting should
cannam@162 12089 # overridden to take advantage of the native linker features on
cannam@162 12090 # the platform it is being used on.
cannam@162 12091 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
cannam@162 12092 fi
cannam@162 12093
cannam@162 12094 # Commands to make compiler produce verbose output that lists
cannam@162 12095 # what "hidden" libraries, object files and flags are used when
cannam@162 12096 # linking a shared library.
cannam@162 12097 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cannam@162 12098
cannam@162 12099 else
cannam@162 12100 GXX=no
cannam@162 12101 with_gnu_ld=no
cannam@162 12102 wlarc=
cannam@162 12103 fi
cannam@162 12104
cannam@162 12105 # PORTME: fill in a description of your system's C++ link characteristics
cannam@162 12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@162 12107 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
cannam@162 12108 ld_shlibs_CXX=yes
cannam@162 12109 case $host_os in
cannam@162 12110 aix3*)
cannam@162 12111 # FIXME: insert proper C++ library support
cannam@162 12112 ld_shlibs_CXX=no
cannam@162 12113 ;;
cannam@162 12114 aix[4-9]*)
cannam@162 12115 if test "$host_cpu" = ia64; then
cannam@162 12116 # On IA64, the linker does run time linking by default, so we don't
cannam@162 12117 # have to do anything special.
cannam@162 12118 aix_use_runtimelinking=no
cannam@162 12119 exp_sym_flag='-Bexport'
cannam@162 12120 no_entry_flag=""
cannam@162 12121 else
cannam@162 12122 aix_use_runtimelinking=no
cannam@162 12123
cannam@162 12124 # Test if we are trying to use run time linking or normal
cannam@162 12125 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cannam@162 12126 # need to do runtime linking.
cannam@162 12127 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
cannam@162 12128 for ld_flag in $LDFLAGS; do
cannam@162 12129 case $ld_flag in
cannam@162 12130 *-brtl*)
cannam@162 12131 aix_use_runtimelinking=yes
cannam@162 12132 break
cannam@162 12133 ;;
cannam@162 12134 esac
cannam@162 12135 done
cannam@162 12136 ;;
cannam@162 12137 esac
cannam@162 12138
cannam@162 12139 exp_sym_flag='-bexport'
cannam@162 12140 no_entry_flag='-bnoentry'
cannam@162 12141 fi
cannam@162 12142
cannam@162 12143 # When large executables or shared objects are built, AIX ld can
cannam@162 12144 # have problems creating the table of contents. If linking a library
cannam@162 12145 # or program results in "error TOC overflow" add -mminimal-toc to
cannam@162 12146 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
cannam@162 12147 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
cannam@162 12148
cannam@162 12149 archive_cmds_CXX=''
cannam@162 12150 hardcode_direct_CXX=yes
cannam@162 12151 hardcode_direct_absolute_CXX=yes
cannam@162 12152 hardcode_libdir_separator_CXX=':'
cannam@162 12153 link_all_deplibs_CXX=yes
cannam@162 12154 file_list_spec_CXX='${wl}-f,'
cannam@162 12155
cannam@162 12156 if test "$GXX" = yes; then
cannam@162 12157 case $host_os in aix4.[012]|aix4.[012].*)
cannam@162 12158 # We only want to do this on AIX 4.2 and lower, the check
cannam@162 12159 # below for broken collect2 doesn't work under 4.3+
cannam@162 12160 collect2name=`${CC} -print-prog-name=collect2`
cannam@162 12161 if test -f "$collect2name" &&
cannam@162 12162 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
cannam@162 12163 then
cannam@162 12164 # We have reworked collect2
cannam@162 12165 :
cannam@162 12166 else
cannam@162 12167 # We have old collect2
cannam@162 12168 hardcode_direct_CXX=unsupported
cannam@162 12169 # It fails to find uninstalled libraries when the uninstalled
cannam@162 12170 # path is not listed in the libpath. Setting hardcode_minus_L
cannam@162 12171 # to unsupported forces relinking
cannam@162 12172 hardcode_minus_L_CXX=yes
cannam@162 12173 hardcode_libdir_flag_spec_CXX='-L$libdir'
cannam@162 12174 hardcode_libdir_separator_CXX=
cannam@162 12175 fi
cannam@162 12176 esac
cannam@162 12177 shared_flag='-shared'
cannam@162 12178 if test "$aix_use_runtimelinking" = yes; then
cannam@162 12179 shared_flag="$shared_flag "'${wl}-G'
cannam@162 12180 fi
cannam@162 12181 else
cannam@162 12182 # not using gcc
cannam@162 12183 if test "$host_cpu" = ia64; then
cannam@162 12184 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
cannam@162 12185 # chokes on -Wl,-G. The following line is correct:
cannam@162 12186 shared_flag='-G'
cannam@162 12187 else
cannam@162 12188 if test "$aix_use_runtimelinking" = yes; then
cannam@162 12189 shared_flag='${wl}-G'
cannam@162 12190 else
cannam@162 12191 shared_flag='${wl}-bM:SRE'
cannam@162 12192 fi
cannam@162 12193 fi
cannam@162 12194 fi
cannam@162 12195
cannam@162 12196 export_dynamic_flag_spec_CXX='${wl}-bexpall'
cannam@162 12197 # It seems that -bexpall does not export symbols beginning with
cannam@162 12198 # underscore (_), so it is better to generate a list of symbols to
cannam@162 12199 # export.
cannam@162 12200 always_export_symbols_CXX=yes
cannam@162 12201 if test "$aix_use_runtimelinking" = yes; then
cannam@162 12202 # Warning - without using the other runtime loading flags (-brtl),
cannam@162 12203 # -berok will link without error, but may produce a broken library.
cannam@162 12204 allow_undefined_flag_CXX='-berok'
cannam@162 12205 # Determine the default libpath from the value encoded in an empty
cannam@162 12206 # executable.
cannam@162 12207 if test "${lt_cv_aix_libpath+set}" = set; then
cannam@162 12208 aix_libpath=$lt_cv_aix_libpath
cannam@162 12209 else
cannam@162 12210 if ${lt_cv_aix_libpath__CXX+:} false; then :
cannam@162 12211 $as_echo_n "(cached) " >&6
cannam@162 12212 else
cannam@162 12213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 12214 /* end confdefs.h. */
cannam@162 12215
cannam@162 12216 int
cannam@162 12217 main ()
cannam@162 12218 {
cannam@162 12219
cannam@162 12220 ;
cannam@162 12221 return 0;
cannam@162 12222 }
cannam@162 12223 _ACEOF
cannam@162 12224 if ac_fn_cxx_try_link "$LINENO"; then :
cannam@162 12225
cannam@162 12226 lt_aix_libpath_sed='
cannam@162 12227 /Import File Strings/,/^$/ {
cannam@162 12228 /^0/ {
cannam@162 12229 s/^0 *\([^ ]*\) *$/\1/
cannam@162 12230 p
cannam@162 12231 }
cannam@162 12232 }'
cannam@162 12233 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@162 12234 # Check for a 64-bit object if we didn't find anything.
cannam@162 12235 if test -z "$lt_cv_aix_libpath__CXX"; then
cannam@162 12236 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@162 12237 fi
cannam@162 12238 fi
cannam@162 12239 rm -f core conftest.err conftest.$ac_objext \
cannam@162 12240 conftest$ac_exeext conftest.$ac_ext
cannam@162 12241 if test -z "$lt_cv_aix_libpath__CXX"; then
cannam@162 12242 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
cannam@162 12243 fi
cannam@162 12244
cannam@162 12245 fi
cannam@162 12246
cannam@162 12247 aix_libpath=$lt_cv_aix_libpath__CXX
cannam@162 12248 fi
cannam@162 12249
cannam@162 12250 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@162 12251
cannam@162 12252 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cannam@162 12253 else
cannam@162 12254 if test "$host_cpu" = ia64; then
cannam@162 12255 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
cannam@162 12256 allow_undefined_flag_CXX="-z nodefs"
cannam@162 12257 archive_expsym_cmds_CXX="\$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@162 12258 else
cannam@162 12259 # Determine the default libpath from the value encoded in an
cannam@162 12260 # empty executable.
cannam@162 12261 if test "${lt_cv_aix_libpath+set}" = set; then
cannam@162 12262 aix_libpath=$lt_cv_aix_libpath
cannam@162 12263 else
cannam@162 12264 if ${lt_cv_aix_libpath__CXX+:} false; then :
cannam@162 12265 $as_echo_n "(cached) " >&6
cannam@162 12266 else
cannam@162 12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 12268 /* end confdefs.h. */
cannam@162 12269
cannam@162 12270 int
cannam@162 12271 main ()
cannam@162 12272 {
cannam@162 12273
cannam@162 12274 ;
cannam@162 12275 return 0;
cannam@162 12276 }
cannam@162 12277 _ACEOF
cannam@162 12278 if ac_fn_cxx_try_link "$LINENO"; then :
cannam@162 12279
cannam@162 12280 lt_aix_libpath_sed='
cannam@162 12281 /Import File Strings/,/^$/ {
cannam@162 12282 /^0/ {
cannam@162 12283 s/^0 *\([^ ]*\) *$/\1/
cannam@162 12284 p
cannam@162 12285 }
cannam@162 12286 }'
cannam@162 12287 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@162 12288 # Check for a 64-bit object if we didn't find anything.
cannam@162 12289 if test -z "$lt_cv_aix_libpath__CXX"; then
cannam@162 12290 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@162 12291 fi
cannam@162 12292 fi
cannam@162 12293 rm -f core conftest.err conftest.$ac_objext \
cannam@162 12294 conftest$ac_exeext conftest.$ac_ext
cannam@162 12295 if test -z "$lt_cv_aix_libpath__CXX"; then
cannam@162 12296 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
cannam@162 12297 fi
cannam@162 12298
cannam@162 12299 fi
cannam@162 12300
cannam@162 12301 aix_libpath=$lt_cv_aix_libpath__CXX
cannam@162 12302 fi
cannam@162 12303
cannam@162 12304 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@162 12305 # Warning - without using the other run time loading flags,
cannam@162 12306 # -berok will link without error, but may produce a broken library.
cannam@162 12307 no_undefined_flag_CXX=' ${wl}-bernotok'
cannam@162 12308 allow_undefined_flag_CXX=' ${wl}-berok'
cannam@162 12309 if test "$with_gnu_ld" = yes; then
cannam@162 12310 # We only use this code for GNU lds that support --whole-archive.
cannam@162 12311 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
cannam@162 12312 else
cannam@162 12313 # Exported symbols can be pulled into shared objects from archives
cannam@162 12314 whole_archive_flag_spec_CXX='$convenience'
cannam@162 12315 fi
cannam@162 12316 archive_cmds_need_lc_CXX=yes
cannam@162 12317 # This is similar to how AIX traditionally builds its shared
cannam@162 12318 # libraries.
cannam@162 12319 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
cannam@162 12320 fi
cannam@162 12321 fi
cannam@162 12322 ;;
cannam@162 12323
cannam@162 12324 beos*)
cannam@162 12325 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@162 12326 allow_undefined_flag_CXX=unsupported
cannam@162 12327 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
cannam@162 12328 # support --undefined. This deserves some investigation. FIXME
cannam@162 12329 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@162 12330 else
cannam@162 12331 ld_shlibs_CXX=no
cannam@162 12332 fi
cannam@162 12333 ;;
cannam@162 12334
cannam@162 12335 chorus*)
cannam@162 12336 case $cc_basename in
cannam@162 12337 *)
cannam@162 12338 # FIXME: insert proper C++ library support
cannam@162 12339 ld_shlibs_CXX=no
cannam@162 12340 ;;
cannam@162 12341 esac
cannam@162 12342 ;;
cannam@162 12343
cannam@162 12344 cygwin* | mingw* | pw32* | cegcc*)
cannam@162 12345 case $GXX,$cc_basename in
cannam@162 12346 ,cl* | no,cl*)
cannam@162 12347 # Native MSVC
cannam@162 12348 # hardcode_libdir_flag_spec is actually meaningless, as there is
cannam@162 12349 # no search path for DLLs.
cannam@162 12350 hardcode_libdir_flag_spec_CXX=' '
cannam@162 12351 allow_undefined_flag_CXX=unsupported
cannam@162 12352 always_export_symbols_CXX=yes
cannam@162 12353 file_list_spec_CXX='@'
cannam@162 12354 # Tell ltmain to make .lib files, not .a files.
cannam@162 12355 libext=lib
cannam@162 12356 # Tell ltmain to make .dll files, not .so files.
cannam@162 12357 shrext_cmds=".dll"
cannam@162 12358 # FIXME: Setting linknames here is a bad hack.
cannam@162 12359 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
cannam@162 12360 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@162 12361 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
cannam@162 12362 else
cannam@162 12363 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
cannam@162 12364 fi~
cannam@162 12365 $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@162 12366 linknames='
cannam@162 12367 # The linker will not automatically build a static lib if we build a DLL.
cannam@162 12368 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
cannam@162 12369 enable_shared_with_static_runtimes_CXX=yes
cannam@162 12370 # Don't use ranlib
cannam@162 12371 old_postinstall_cmds_CXX='chmod 644 $oldlib'
cannam@162 12372 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
cannam@162 12373 lt_tool_outputfile="@TOOL_OUTPUT@"~
cannam@162 12374 case $lt_outputfile in
cannam@162 12375 *.exe|*.EXE) ;;
cannam@162 12376 *)
cannam@162 12377 lt_outputfile="$lt_outputfile.exe"
cannam@162 12378 lt_tool_outputfile="$lt_tool_outputfile.exe"
cannam@162 12379 ;;
cannam@162 12380 esac~
cannam@162 12381 func_to_tool_file "$lt_outputfile"~
cannam@162 12382 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
cannam@162 12383 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
cannam@162 12384 $RM "$lt_outputfile.manifest";
cannam@162 12385 fi'
cannam@162 12386 ;;
cannam@162 12387 *)
cannam@162 12388 # g++
cannam@162 12389 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
cannam@162 12390 # as there is no search path for DLLs.
cannam@162 12391 hardcode_libdir_flag_spec_CXX='-L$libdir'
cannam@162 12392 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
cannam@162 12393 allow_undefined_flag_CXX=unsupported
cannam@162 12394 always_export_symbols_CXX=no
cannam@162 12395 enable_shared_with_static_runtimes_CXX=yes
cannam@162 12396
cannam@162 12397 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
cannam@162 12398 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
cannam@162 12399 # If the export-symbols file already is a .def file (1st line
cannam@162 12400 # is EXPORTS), use it as is; otherwise, prepend...
cannam@162 12401 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@162 12402 cp $export_symbols $output_objdir/$soname.def;
cannam@162 12403 else
cannam@162 12404 echo EXPORTS > $output_objdir/$soname.def;
cannam@162 12405 cat $export_symbols >> $output_objdir/$soname.def;
cannam@162 12406 fi~
cannam@162 12407 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
cannam@162 12408 else
cannam@162 12409 ld_shlibs_CXX=no
cannam@162 12410 fi
cannam@162 12411 ;;
cannam@162 12412 esac
cannam@162 12413 ;;
cannam@162 12414 darwin* | rhapsody*)
cannam@162 12415
cannam@162 12416
cannam@162 12417 archive_cmds_need_lc_CXX=no
cannam@162 12418 hardcode_direct_CXX=no
cannam@162 12419 hardcode_automatic_CXX=yes
cannam@162 12420 hardcode_shlibpath_var_CXX=unsupported
cannam@162 12421 if test "$lt_cv_ld_force_load" = "yes"; then
cannam@162 12422 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
cannam@162 12423
cannam@162 12424 else
cannam@162 12425 whole_archive_flag_spec_CXX=''
cannam@162 12426 fi
cannam@162 12427 link_all_deplibs_CXX=yes
cannam@162 12428 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
cannam@162 12429 case $cc_basename in
cannam@162 12430 ifort*) _lt_dar_can_shared=yes ;;
cannam@162 12431 *) _lt_dar_can_shared=$GCC ;;
cannam@162 12432 esac
cannam@162 12433 if test "$_lt_dar_can_shared" = "yes"; then
cannam@162 12434 output_verbose_link_cmd=func_echo_all
cannam@162 12435 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
cannam@162 12436 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
cannam@162 12437 archive_expsym_cmds_CXX="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@162 12438 module_expsym_cmds_CXX="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@162 12439 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
cannam@162 12440 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
cannam@162 12441 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
cannam@162 12442 fi
cannam@162 12443
cannam@162 12444 else
cannam@162 12445 ld_shlibs_CXX=no
cannam@162 12446 fi
cannam@162 12447
cannam@162 12448 ;;
cannam@162 12449
cannam@162 12450 dgux*)
cannam@162 12451 case $cc_basename in
cannam@162 12452 ec++*)
cannam@162 12453 # FIXME: insert proper C++ library support
cannam@162 12454 ld_shlibs_CXX=no
cannam@162 12455 ;;
cannam@162 12456 ghcx*)
cannam@162 12457 # Green Hills C++ Compiler
cannam@162 12458 # FIXME: insert proper C++ library support
cannam@162 12459 ld_shlibs_CXX=no
cannam@162 12460 ;;
cannam@162 12461 *)
cannam@162 12462 # FIXME: insert proper C++ library support
cannam@162 12463 ld_shlibs_CXX=no
cannam@162 12464 ;;
cannam@162 12465 esac
cannam@162 12466 ;;
cannam@162 12467
cannam@162 12468 freebsd2.*)
cannam@162 12469 # C++ shared libraries reported to be fairly broken before
cannam@162 12470 # switch to ELF
cannam@162 12471 ld_shlibs_CXX=no
cannam@162 12472 ;;
cannam@162 12473
cannam@162 12474 freebsd-elf*)
cannam@162 12475 archive_cmds_need_lc_CXX=no
cannam@162 12476 ;;
cannam@162 12477
cannam@162 12478 freebsd* | dragonfly*)
cannam@162 12479 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
cannam@162 12480 # conventions
cannam@162 12481 ld_shlibs_CXX=yes
cannam@162 12482 ;;
cannam@162 12483
cannam@162 12484 haiku*)
cannam@162 12485 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@162 12486 link_all_deplibs_CXX=yes
cannam@162 12487 ;;
cannam@162 12488
cannam@162 12489 hpux9*)
cannam@162 12490 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
cannam@162 12491 hardcode_libdir_separator_CXX=:
cannam@162 12492 export_dynamic_flag_spec_CXX='${wl}-E'
cannam@162 12493 hardcode_direct_CXX=yes
cannam@162 12494 hardcode_minus_L_CXX=yes # Not in the search PATH,
cannam@162 12495 # but as the default
cannam@162 12496 # location of the library.
cannam@162 12497
cannam@162 12498 case $cc_basename in
cannam@162 12499 CC*)
cannam@162 12500 # FIXME: insert proper C++ library support
cannam@162 12501 ld_shlibs_CXX=no
cannam@162 12502 ;;
cannam@162 12503 aCC*)
cannam@162 12504 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cannam@162 12505 # Commands to make compiler produce verbose output that lists
cannam@162 12506 # what "hidden" libraries, object files and flags are used when
cannam@162 12507 # linking a shared library.
cannam@162 12508 #
cannam@162 12509 # There doesn't appear to be a way to prevent this compiler from
cannam@162 12510 # explicitly linking system object files so we need to strip them
cannam@162 12511 # from the output so that they don't get included in the library
cannam@162 12512 # dependencies.
cannam@162 12513 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cannam@162 12514 ;;
cannam@162 12515 *)
cannam@162 12516 if test "$GXX" = yes; then
cannam@162 12517 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cannam@162 12518 else
cannam@162 12519 # FIXME: insert proper C++ library support
cannam@162 12520 ld_shlibs_CXX=no
cannam@162 12521 fi
cannam@162 12522 ;;
cannam@162 12523 esac
cannam@162 12524 ;;
cannam@162 12525
cannam@162 12526 hpux10*|hpux11*)
cannam@162 12527 if test $with_gnu_ld = no; then
cannam@162 12528 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
cannam@162 12529 hardcode_libdir_separator_CXX=:
cannam@162 12530
cannam@162 12531 case $host_cpu in
cannam@162 12532 hppa*64*|ia64*)
cannam@162 12533 ;;
cannam@162 12534 *)
cannam@162 12535 export_dynamic_flag_spec_CXX='${wl}-E'
cannam@162 12536 ;;
cannam@162 12537 esac
cannam@162 12538 fi
cannam@162 12539 case $host_cpu in
cannam@162 12540 hppa*64*|ia64*)
cannam@162 12541 hardcode_direct_CXX=no
cannam@162 12542 hardcode_shlibpath_var_CXX=no
cannam@162 12543 ;;
cannam@162 12544 *)
cannam@162 12545 hardcode_direct_CXX=yes
cannam@162 12546 hardcode_direct_absolute_CXX=yes
cannam@162 12547 hardcode_minus_L_CXX=yes # Not in the search PATH,
cannam@162 12548 # but as the default
cannam@162 12549 # location of the library.
cannam@162 12550 ;;
cannam@162 12551 esac
cannam@162 12552
cannam@162 12553 case $cc_basename in
cannam@162 12554 CC*)
cannam@162 12555 # FIXME: insert proper C++ library support
cannam@162 12556 ld_shlibs_CXX=no
cannam@162 12557 ;;
cannam@162 12558 aCC*)
cannam@162 12559 case $host_cpu in
cannam@162 12560 hppa*64*)
cannam@162 12561 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@162 12562 ;;
cannam@162 12563 ia64*)
cannam@162 12564 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@162 12565 ;;
cannam@162 12566 *)
cannam@162 12567 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@162 12568 ;;
cannam@162 12569 esac
cannam@162 12570 # Commands to make compiler produce verbose output that lists
cannam@162 12571 # what "hidden" libraries, object files and flags are used when
cannam@162 12572 # linking a shared library.
cannam@162 12573 #
cannam@162 12574 # There doesn't appear to be a way to prevent this compiler from
cannam@162 12575 # explicitly linking system object files so we need to strip them
cannam@162 12576 # from the output so that they don't get included in the library
cannam@162 12577 # dependencies.
cannam@162 12578 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cannam@162 12579 ;;
cannam@162 12580 *)
cannam@162 12581 if test "$GXX" = yes; then
cannam@162 12582 if test $with_gnu_ld = no; then
cannam@162 12583 case $host_cpu in
cannam@162 12584 hppa*64*)
cannam@162 12585 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@162 12586 ;;
cannam@162 12587 ia64*)
cannam@162 12588 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@162 12589 ;;
cannam@162 12590 *)
cannam@162 12591 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@162 12592 ;;
cannam@162 12593 esac
cannam@162 12594 fi
cannam@162 12595 else
cannam@162 12596 # FIXME: insert proper C++ library support
cannam@162 12597 ld_shlibs_CXX=no
cannam@162 12598 fi
cannam@162 12599 ;;
cannam@162 12600 esac
cannam@162 12601 ;;
cannam@162 12602
cannam@162 12603 interix[3-9]*)
cannam@162 12604 hardcode_direct_CXX=no
cannam@162 12605 hardcode_shlibpath_var_CXX=no
cannam@162 12606 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
cannam@162 12607 export_dynamic_flag_spec_CXX='${wl}-E'
cannam@162 12608 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
cannam@162 12609 # Instead, shared libraries are loaded at an image base (0x10000000 by
cannam@162 12610 # default) and relocated if they conflict, which is a slow very memory
cannam@162 12611 # consuming and fragmenting process. To avoid this, we pick a random,
cannam@162 12612 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
cannam@162 12613 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
cannam@162 12614 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
cannam@162 12615 archive_expsym_cmds_CXX='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@162 12616 ;;
cannam@162 12617 irix5* | irix6*)
cannam@162 12618 case $cc_basename in
cannam@162 12619 CC*)
cannam@162 12620 # SGI C++
cannam@162 12621 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cannam@162 12622
cannam@162 12623 # Archives containing C++ object files must be created using
cannam@162 12624 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
cannam@162 12625 # necessary to make sure instantiated templates are included
cannam@162 12626 # in the archive.
cannam@162 12627 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
cannam@162 12628 ;;
cannam@162 12629 *)
cannam@162 12630 if test "$GXX" = yes; then
cannam@162 12631 if test "$with_gnu_ld" = no; then
cannam@162 12632 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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@162 12633 else
cannam@162 12634 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
cannam@162 12635 fi
cannam@162 12636 fi
cannam@162 12637 link_all_deplibs_CXX=yes
cannam@162 12638 ;;
cannam@162 12639 esac
cannam@162 12640 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
cannam@162 12641 hardcode_libdir_separator_CXX=:
cannam@162 12642 inherit_rpath_CXX=yes
cannam@162 12643 ;;
cannam@162 12644
cannam@162 12645 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cannam@162 12646 case $cc_basename in
cannam@162 12647 KCC*)
cannam@162 12648 # Kuck and Associates, Inc. (KAI) C++ Compiler
cannam@162 12649
cannam@162 12650 # KCC will only create a shared library if the output file
cannam@162 12651 # ends with ".so" (or ".sl" for HP-UX), so rename the library
cannam@162 12652 # to its proper name (with version) after linking.
cannam@162 12653 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
cannam@162 12654 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
cannam@162 12655 # Commands to make compiler produce verbose output that lists
cannam@162 12656 # what "hidden" libraries, object files and flags are used when
cannam@162 12657 # linking a shared library.
cannam@162 12658 #
cannam@162 12659 # There doesn't appear to be a way to prevent this compiler from
cannam@162 12660 # explicitly linking system object files so we need to strip them
cannam@162 12661 # from the output so that they don't get included in the library
cannam@162 12662 # dependencies.
cannam@162 12663 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cannam@162 12664
cannam@162 12665 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
cannam@162 12666 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cannam@162 12667
cannam@162 12668 # Archives containing C++ object files must be created using
cannam@162 12669 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
cannam@162 12670 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
cannam@162 12671 ;;
cannam@162 12672 icpc* | ecpc* )
cannam@162 12673 # Intel C++
cannam@162 12674 with_gnu_ld=yes
cannam@162 12675 # version 8.0 and above of icpc choke on multiply defined symbols
cannam@162 12676 # if we add $predep_objects and $postdep_objects, however 7.1 and
cannam@162 12677 # earlier do not add the objects themselves.
cannam@162 12678 case `$CC -V 2>&1` in
cannam@162 12679 *"Version 7."*)
cannam@162 12680 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@162 12681 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@162 12682 ;;
cannam@162 12683 *) # Version 8.0 or newer
cannam@162 12684 tmp_idyn=
cannam@162 12685 case $host_cpu in
cannam@162 12686 ia64*) tmp_idyn=' -i_dynamic';;
cannam@162 12687 esac
cannam@162 12688 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@162 12689 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@162 12690 ;;
cannam@162 12691 esac
cannam@162 12692 archive_cmds_need_lc_CXX=no
cannam@162 12693 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
cannam@162 12694 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cannam@162 12695 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
cannam@162 12696 ;;
cannam@162 12697 pgCC* | pgcpp*)
cannam@162 12698 # Portland Group C++ compiler
cannam@162 12699 case `$CC -V` in
cannam@162 12700 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cannam@162 12701 prelink_cmds_CXX='tpldir=Template.dir~
cannam@162 12702 rm -rf $tpldir~
cannam@162 12703 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cannam@162 12704 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cannam@162 12705 old_archive_cmds_CXX='tpldir=Template.dir~
cannam@162 12706 rm -rf $tpldir~
cannam@162 12707 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cannam@162 12708 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cannam@162 12709 $RANLIB $oldlib'
cannam@162 12710 archive_cmds_CXX='tpldir=Template.dir~
cannam@162 12711 rm -rf $tpldir~
cannam@162 12712 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cannam@162 12713 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
cannam@162 12714 archive_expsym_cmds_CXX='tpldir=Template.dir~
cannam@162 12715 rm -rf $tpldir~
cannam@162 12716 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cannam@162 12717 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
cannam@162 12718 ;;
cannam@162 12719 *) # Version 6 and above use weak symbols
cannam@162 12720 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
cannam@162 12721 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
cannam@162 12722 ;;
cannam@162 12723 esac
cannam@162 12724
cannam@162 12725 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
cannam@162 12726 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cannam@162 12727 whole_archive_flag_spec_CXX='${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@162 12728 ;;
cannam@162 12729 cxx*)
cannam@162 12730 # Compaq C++
cannam@162 12731 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@162 12732 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
cannam@162 12733
cannam@162 12734 runpath_var=LD_RUN_PATH
cannam@162 12735 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
cannam@162 12736 hardcode_libdir_separator_CXX=:
cannam@162 12737
cannam@162 12738 # Commands to make compiler produce verbose output that lists
cannam@162 12739 # what "hidden" libraries, object files and flags are used when
cannam@162 12740 # linking a shared library.
cannam@162 12741 #
cannam@162 12742 # There doesn't appear to be a way to prevent this compiler from
cannam@162 12743 # explicitly linking system object files so we need to strip them
cannam@162 12744 # from the output so that they don't get included in the library
cannam@162 12745 # dependencies.
cannam@162 12746 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
cannam@162 12747 ;;
cannam@162 12748 xl* | mpixl* | bgxl*)
cannam@162 12749 # IBM XL 8.0 on PPC, with GNU ld
cannam@162 12750 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
cannam@162 12751 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cannam@162 12752 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@162 12753 if test "x$supports_anon_versioning" = xyes; then
cannam@162 12754 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
cannam@162 12755 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@162 12756 echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@162 12757 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
cannam@162 12758 fi
cannam@162 12759 ;;
cannam@162 12760 *)
cannam@162 12761 case `$CC -V 2>&1 | sed 5q` in
cannam@162 12762 *Sun\ C*)
cannam@162 12763 # Sun C++ 5.9
cannam@162 12764 no_undefined_flag_CXX=' -zdefs'
cannam@162 12765 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@162 12766 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
cannam@162 12767 hardcode_libdir_flag_spec_CXX='-R$libdir'
cannam@162 12768 whole_archive_flag_spec_CXX='${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@162 12769 compiler_needs_object_CXX=yes
cannam@162 12770
cannam@162 12771 # Not sure whether something based on
cannam@162 12772 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
cannam@162 12773 # would be better.
cannam@162 12774 output_verbose_link_cmd='func_echo_all'
cannam@162 12775
cannam@162 12776 # Archives containing C++ object files must be created using
cannam@162 12777 # "CC -xar", where "CC" is the Sun C++ compiler. This is
cannam@162 12778 # necessary to make sure instantiated templates are included
cannam@162 12779 # in the archive.
cannam@162 12780 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
cannam@162 12781 ;;
cannam@162 12782 esac
cannam@162 12783 ;;
cannam@162 12784 esac
cannam@162 12785 ;;
cannam@162 12786
cannam@162 12787 lynxos*)
cannam@162 12788 # FIXME: insert proper C++ library support
cannam@162 12789 ld_shlibs_CXX=no
cannam@162 12790 ;;
cannam@162 12791
cannam@162 12792 m88k*)
cannam@162 12793 # FIXME: insert proper C++ library support
cannam@162 12794 ld_shlibs_CXX=no
cannam@162 12795 ;;
cannam@162 12796
cannam@162 12797 mvs*)
cannam@162 12798 case $cc_basename in
cannam@162 12799 cxx*)
cannam@162 12800 # FIXME: insert proper C++ library support
cannam@162 12801 ld_shlibs_CXX=no
cannam@162 12802 ;;
cannam@162 12803 *)
cannam@162 12804 # FIXME: insert proper C++ library support
cannam@162 12805 ld_shlibs_CXX=no
cannam@162 12806 ;;
cannam@162 12807 esac
cannam@162 12808 ;;
cannam@162 12809
cannam@162 12810 netbsd*)
cannam@162 12811 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@162 12812 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
cannam@162 12813 wlarc=
cannam@162 12814 hardcode_libdir_flag_spec_CXX='-R$libdir'
cannam@162 12815 hardcode_direct_CXX=yes
cannam@162 12816 hardcode_shlibpath_var_CXX=no
cannam@162 12817 fi
cannam@162 12818 # Workaround some broken pre-1.5 toolchains
cannam@162 12819 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
cannam@162 12820 ;;
cannam@162 12821
cannam@162 12822 *nto* | *qnx*)
cannam@162 12823 ld_shlibs_CXX=yes
cannam@162 12824 ;;
cannam@162 12825
cannam@162 12826 openbsd2*)
cannam@162 12827 # C++ shared libraries are fairly broken
cannam@162 12828 ld_shlibs_CXX=no
cannam@162 12829 ;;
cannam@162 12830
cannam@162 12831 openbsd*)
cannam@162 12832 if test -f /usr/libexec/ld.so; then
cannam@162 12833 hardcode_direct_CXX=yes
cannam@162 12834 hardcode_shlibpath_var_CXX=no
cannam@162 12835 hardcode_direct_absolute_CXX=yes
cannam@162 12836 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
cannam@162 12837 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
cannam@162 12838 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@162 12839 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
cannam@162 12840 export_dynamic_flag_spec_CXX='${wl}-E'
cannam@162 12841 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
cannam@162 12842 fi
cannam@162 12843 output_verbose_link_cmd=func_echo_all
cannam@162 12844 else
cannam@162 12845 ld_shlibs_CXX=no
cannam@162 12846 fi
cannam@162 12847 ;;
cannam@162 12848
cannam@162 12849 osf3* | osf4* | osf5*)
cannam@162 12850 case $cc_basename in
cannam@162 12851 KCC*)
cannam@162 12852 # Kuck and Associates, Inc. (KAI) C++ Compiler
cannam@162 12853
cannam@162 12854 # KCC will only create a shared library if the output file
cannam@162 12855 # ends with ".so" (or ".sl" for HP-UX), so rename the library
cannam@162 12856 # to its proper name (with version) after linking.
cannam@162 12857 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
cannam@162 12858
cannam@162 12859 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
cannam@162 12860 hardcode_libdir_separator_CXX=:
cannam@162 12861
cannam@162 12862 # Archives containing C++ object files must be created using
cannam@162 12863 # the KAI C++ compiler.
cannam@162 12864 case $host in
cannam@162 12865 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
cannam@162 12866 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
cannam@162 12867 esac
cannam@162 12868 ;;
cannam@162 12869 RCC*)
cannam@162 12870 # Rational C++ 2.4.1
cannam@162 12871 # FIXME: insert proper C++ library support
cannam@162 12872 ld_shlibs_CXX=no
cannam@162 12873 ;;
cannam@162 12874 cxx*)
cannam@162 12875 case $host in
cannam@162 12876 osf3*)
cannam@162 12877 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cannam@162 12878 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cannam@162 12879 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
cannam@162 12880 ;;
cannam@162 12881 *)
cannam@162 12882 allow_undefined_flag_CXX=' -expect_unresolved \*'
cannam@162 12883 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cannam@162 12884 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
cannam@162 12885 echo "-hidden">> $lib.exp~
cannam@162 12886 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
cannam@162 12887 $RM $lib.exp'
cannam@162 12888 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
cannam@162 12889 ;;
cannam@162 12890 esac
cannam@162 12891
cannam@162 12892 hardcode_libdir_separator_CXX=:
cannam@162 12893
cannam@162 12894 # Commands to make compiler produce verbose output that lists
cannam@162 12895 # what "hidden" libraries, object files and flags are used when
cannam@162 12896 # linking a shared library.
cannam@162 12897 #
cannam@162 12898 # There doesn't appear to be a way to prevent this compiler from
cannam@162 12899 # explicitly linking system object files so we need to strip them
cannam@162 12900 # from the output so that they don't get included in the library
cannam@162 12901 # dependencies.
cannam@162 12902 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cannam@162 12903 ;;
cannam@162 12904 *)
cannam@162 12905 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
cannam@162 12906 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cannam@162 12907 case $host in
cannam@162 12908 osf3*)
cannam@162 12909 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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@162 12910 ;;
cannam@162 12911 *)
cannam@162 12912 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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@162 12913 ;;
cannam@162 12914 esac
cannam@162 12915
cannam@162 12916 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
cannam@162 12917 hardcode_libdir_separator_CXX=:
cannam@162 12918
cannam@162 12919 # Commands to make compiler produce verbose output that lists
cannam@162 12920 # what "hidden" libraries, object files and flags are used when
cannam@162 12921 # linking a shared library.
cannam@162 12922 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cannam@162 12923
cannam@162 12924 else
cannam@162 12925 # FIXME: insert proper C++ library support
cannam@162 12926 ld_shlibs_CXX=no
cannam@162 12927 fi
cannam@162 12928 ;;
cannam@162 12929 esac
cannam@162 12930 ;;
cannam@162 12931
cannam@162 12932 psos*)
cannam@162 12933 # FIXME: insert proper C++ library support
cannam@162 12934 ld_shlibs_CXX=no
cannam@162 12935 ;;
cannam@162 12936
cannam@162 12937 sunos4*)
cannam@162 12938 case $cc_basename in
cannam@162 12939 CC*)
cannam@162 12940 # Sun C++ 4.x
cannam@162 12941 # FIXME: insert proper C++ library support
cannam@162 12942 ld_shlibs_CXX=no
cannam@162 12943 ;;
cannam@162 12944 lcc*)
cannam@162 12945 # Lucid
cannam@162 12946 # FIXME: insert proper C++ library support
cannam@162 12947 ld_shlibs_CXX=no
cannam@162 12948 ;;
cannam@162 12949 *)
cannam@162 12950 # FIXME: insert proper C++ library support
cannam@162 12951 ld_shlibs_CXX=no
cannam@162 12952 ;;
cannam@162 12953 esac
cannam@162 12954 ;;
cannam@162 12955
cannam@162 12956 solaris*)
cannam@162 12957 case $cc_basename in
cannam@162 12958 CC* | sunCC*)
cannam@162 12959 # Sun C++ 4.2, 5.x and Centerline C++
cannam@162 12960 archive_cmds_need_lc_CXX=yes
cannam@162 12961 no_undefined_flag_CXX=' -zdefs'
cannam@162 12962 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@162 12963 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@162 12964 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
cannam@162 12965
cannam@162 12966 hardcode_libdir_flag_spec_CXX='-R$libdir'
cannam@162 12967 hardcode_shlibpath_var_CXX=no
cannam@162 12968 case $host_os in
cannam@162 12969 solaris2.[0-5] | solaris2.[0-5].*) ;;
cannam@162 12970 *)
cannam@162 12971 # The compiler driver will combine and reorder linker options,
cannam@162 12972 # but understands `-z linker_flag'.
cannam@162 12973 # Supported since Solaris 2.6 (maybe 2.5.1?)
cannam@162 12974 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
cannam@162 12975 ;;
cannam@162 12976 esac
cannam@162 12977 link_all_deplibs_CXX=yes
cannam@162 12978
cannam@162 12979 output_verbose_link_cmd='func_echo_all'
cannam@162 12980
cannam@162 12981 # Archives containing C++ object files must be created using
cannam@162 12982 # "CC -xar", where "CC" is the Sun C++ compiler. This is
cannam@162 12983 # necessary to make sure instantiated templates are included
cannam@162 12984 # in the archive.
cannam@162 12985 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
cannam@162 12986 ;;
cannam@162 12987 gcx*)
cannam@162 12988 # Green Hills C++ Compiler
cannam@162 12989 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cannam@162 12990
cannam@162 12991 # The C++ compiler must be used to create the archive.
cannam@162 12992 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
cannam@162 12993 ;;
cannam@162 12994 *)
cannam@162 12995 # GNU C++ compiler with Solaris linker
cannam@162 12996 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
cannam@162 12997 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
cannam@162 12998 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cannam@162 12999 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cannam@162 13000 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@162 13001 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
cannam@162 13002
cannam@162 13003 # Commands to make compiler produce verbose output that lists
cannam@162 13004 # what "hidden" libraries, object files and flags are used when
cannam@162 13005 # linking a shared library.
cannam@162 13006 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cannam@162 13007 else
cannam@162 13008 # g++ 2.7 appears to require `-G' NOT `-shared' on this
cannam@162 13009 # platform.
cannam@162 13010 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cannam@162 13011 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@162 13012 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
cannam@162 13013
cannam@162 13014 # Commands to make compiler produce verbose output that lists
cannam@162 13015 # what "hidden" libraries, object files and flags are used when
cannam@162 13016 # linking a shared library.
cannam@162 13017 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cannam@162 13018 fi
cannam@162 13019
cannam@162 13020 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
cannam@162 13021 case $host_os in
cannam@162 13022 solaris2.[0-5] | solaris2.[0-5].*) ;;
cannam@162 13023 *)
cannam@162 13024 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
cannam@162 13025 ;;
cannam@162 13026 esac
cannam@162 13027 fi
cannam@162 13028 ;;
cannam@162 13029 esac
cannam@162 13030 ;;
cannam@162 13031
cannam@162 13032 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
cannam@162 13033 no_undefined_flag_CXX='${wl}-z,text'
cannam@162 13034 archive_cmds_need_lc_CXX=no
cannam@162 13035 hardcode_shlibpath_var_CXX=no
cannam@162 13036 runpath_var='LD_RUN_PATH'
cannam@162 13037
cannam@162 13038 case $cc_basename in
cannam@162 13039 CC*)
cannam@162 13040 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 13041 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 13042 ;;
cannam@162 13043 *)
cannam@162 13044 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 13045 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 13046 ;;
cannam@162 13047 esac
cannam@162 13048 ;;
cannam@162 13049
cannam@162 13050 sysv5* | sco3.2v5* | sco5v6*)
cannam@162 13051 # Note: We can NOT use -z defs as we might desire, because we do not
cannam@162 13052 # link with -lc, and that would cause any symbols used from libc to
cannam@162 13053 # always be unresolved, which means just about no library would
cannam@162 13054 # ever link correctly. If we're not using GNU ld we use -z text
cannam@162 13055 # though, which does catch some bad symbols but isn't as heavy-handed
cannam@162 13056 # as -z defs.
cannam@162 13057 no_undefined_flag_CXX='${wl}-z,text'
cannam@162 13058 allow_undefined_flag_CXX='${wl}-z,nodefs'
cannam@162 13059 archive_cmds_need_lc_CXX=no
cannam@162 13060 hardcode_shlibpath_var_CXX=no
cannam@162 13061 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
cannam@162 13062 hardcode_libdir_separator_CXX=':'
cannam@162 13063 link_all_deplibs_CXX=yes
cannam@162 13064 export_dynamic_flag_spec_CXX='${wl}-Bexport'
cannam@162 13065 runpath_var='LD_RUN_PATH'
cannam@162 13066
cannam@162 13067 case $cc_basename in
cannam@162 13068 CC*)
cannam@162 13069 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 13070 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 13071 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
cannam@162 13072 '"$old_archive_cmds_CXX"
cannam@162 13073 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
cannam@162 13074 '"$reload_cmds_CXX"
cannam@162 13075 ;;
cannam@162 13076 *)
cannam@162 13077 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 13078 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@162 13079 ;;
cannam@162 13080 esac
cannam@162 13081 ;;
cannam@162 13082
cannam@162 13083 tandem*)
cannam@162 13084 case $cc_basename in
cannam@162 13085 NCC*)
cannam@162 13086 # NonStop-UX NCC 3.20
cannam@162 13087 # FIXME: insert proper C++ library support
cannam@162 13088 ld_shlibs_CXX=no
cannam@162 13089 ;;
cannam@162 13090 *)
cannam@162 13091 # FIXME: insert proper C++ library support
cannam@162 13092 ld_shlibs_CXX=no
cannam@162 13093 ;;
cannam@162 13094 esac
cannam@162 13095 ;;
cannam@162 13096
cannam@162 13097 vxworks*)
cannam@162 13098 # FIXME: insert proper C++ library support
cannam@162 13099 ld_shlibs_CXX=no
cannam@162 13100 ;;
cannam@162 13101
cannam@162 13102 *)
cannam@162 13103 # FIXME: insert proper C++ library support
cannam@162 13104 ld_shlibs_CXX=no
cannam@162 13105 ;;
cannam@162 13106 esac
cannam@162 13107
cannam@162 13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cannam@162 13109 $as_echo "$ld_shlibs_CXX" >&6; }
cannam@162 13110 test "$ld_shlibs_CXX" = no && can_build_shared=no
cannam@162 13111
cannam@162 13112 GCC_CXX="$GXX"
cannam@162 13113 LD_CXX="$LD"
cannam@162 13114
cannam@162 13115 ## CAVEAT EMPTOR:
cannam@162 13116 ## There is no encapsulation within the following macros, do not change
cannam@162 13117 ## the running order or otherwise move them around unless you know exactly
cannam@162 13118 ## what you are doing...
cannam@162 13119 # Dependencies to place before and after the object being linked:
cannam@162 13120 predep_objects_CXX=
cannam@162 13121 postdep_objects_CXX=
cannam@162 13122 predeps_CXX=
cannam@162 13123 postdeps_CXX=
cannam@162 13124 compiler_lib_search_path_CXX=
cannam@162 13125
cannam@162 13126 cat > conftest.$ac_ext <<_LT_EOF
cannam@162 13127 class Foo
cannam@162 13128 {
cannam@162 13129 public:
cannam@162 13130 Foo (void) { a = 0; }
cannam@162 13131 private:
cannam@162 13132 int a;
cannam@162 13133 };
cannam@162 13134 _LT_EOF
cannam@162 13135
cannam@162 13136
cannam@162 13137 _lt_libdeps_save_CFLAGS=$CFLAGS
cannam@162 13138 case "$CC $CFLAGS " in #(
cannam@162 13139 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
cannam@162 13140 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cannam@162 13141 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cannam@162 13142 esac
cannam@162 13143
cannam@162 13144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@162 13145 (eval $ac_compile) 2>&5
cannam@162 13146 ac_status=$?
cannam@162 13147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 13148 test $ac_status = 0; }; then
cannam@162 13149 # Parse the compiler output and extract the necessary
cannam@162 13150 # objects, libraries and library flags.
cannam@162 13151
cannam@162 13152 # Sentinel used to keep track of whether or not we are before
cannam@162 13153 # the conftest object file.
cannam@162 13154 pre_test_object_deps_done=no
cannam@162 13155
cannam@162 13156 for p in `eval "$output_verbose_link_cmd"`; do
cannam@162 13157 case ${prev}${p} in
cannam@162 13158
cannam@162 13159 -L* | -R* | -l*)
cannam@162 13160 # Some compilers place space between "-{L,R}" and the path.
cannam@162 13161 # Remove the space.
cannam@162 13162 if test $p = "-L" ||
cannam@162 13163 test $p = "-R"; then
cannam@162 13164 prev=$p
cannam@162 13165 continue
cannam@162 13166 fi
cannam@162 13167
cannam@162 13168 # Expand the sysroot to ease extracting the directories later.
cannam@162 13169 if test -z "$prev"; then
cannam@162 13170 case $p in
cannam@162 13171 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
cannam@162 13172 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
cannam@162 13173 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
cannam@162 13174 esac
cannam@162 13175 fi
cannam@162 13176 case $p in
cannam@162 13177 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
cannam@162 13178 esac
cannam@162 13179 if test "$pre_test_object_deps_done" = no; then
cannam@162 13180 case ${prev} in
cannam@162 13181 -L | -R)
cannam@162 13182 # Internal compiler library paths should come after those
cannam@162 13183 # provided the user. The postdeps already come after the
cannam@162 13184 # user supplied libs so there is no need to process them.
cannam@162 13185 if test -z "$compiler_lib_search_path_CXX"; then
cannam@162 13186 compiler_lib_search_path_CXX="${prev}${p}"
cannam@162 13187 else
cannam@162 13188 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
cannam@162 13189 fi
cannam@162 13190 ;;
cannam@162 13191 # The "-l" case would never come before the object being
cannam@162 13192 # linked, so don't bother handling this case.
cannam@162 13193 esac
cannam@162 13194 else
cannam@162 13195 if test -z "$postdeps_CXX"; then
cannam@162 13196 postdeps_CXX="${prev}${p}"
cannam@162 13197 else
cannam@162 13198 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
cannam@162 13199 fi
cannam@162 13200 fi
cannam@162 13201 prev=
cannam@162 13202 ;;
cannam@162 13203
cannam@162 13204 *.lto.$objext) ;; # Ignore GCC LTO objects
cannam@162 13205 *.$objext)
cannam@162 13206 # This assumes that the test object file only shows up
cannam@162 13207 # once in the compiler output.
cannam@162 13208 if test "$p" = "conftest.$objext"; then
cannam@162 13209 pre_test_object_deps_done=yes
cannam@162 13210 continue
cannam@162 13211 fi
cannam@162 13212
cannam@162 13213 if test "$pre_test_object_deps_done" = no; then
cannam@162 13214 if test -z "$predep_objects_CXX"; then
cannam@162 13215 predep_objects_CXX="$p"
cannam@162 13216 else
cannam@162 13217 predep_objects_CXX="$predep_objects_CXX $p"
cannam@162 13218 fi
cannam@162 13219 else
cannam@162 13220 if test -z "$postdep_objects_CXX"; then
cannam@162 13221 postdep_objects_CXX="$p"
cannam@162 13222 else
cannam@162 13223 postdep_objects_CXX="$postdep_objects_CXX $p"
cannam@162 13224 fi
cannam@162 13225 fi
cannam@162 13226 ;;
cannam@162 13227
cannam@162 13228 *) ;; # Ignore the rest.
cannam@162 13229
cannam@162 13230 esac
cannam@162 13231 done
cannam@162 13232
cannam@162 13233 # Clean up.
cannam@162 13234 rm -f a.out a.exe
cannam@162 13235 else
cannam@162 13236 echo "libtool.m4: error: problem compiling CXX test program"
cannam@162 13237 fi
cannam@162 13238
cannam@162 13239 $RM -f confest.$objext
cannam@162 13240 CFLAGS=$_lt_libdeps_save_CFLAGS
cannam@162 13241
cannam@162 13242 # PORTME: override above test on systems where it is broken
cannam@162 13243 case $host_os in
cannam@162 13244 interix[3-9]*)
cannam@162 13245 # Interix 3.5 installs completely hosed .la files for C++, so rather than
cannam@162 13246 # hack all around it, let's just trust "g++" to DTRT.
cannam@162 13247 predep_objects_CXX=
cannam@162 13248 postdep_objects_CXX=
cannam@162 13249 postdeps_CXX=
cannam@162 13250 ;;
cannam@162 13251
cannam@162 13252 linux*)
cannam@162 13253 case `$CC -V 2>&1 | sed 5q` in
cannam@162 13254 *Sun\ C*)
cannam@162 13255 # Sun C++ 5.9
cannam@162 13256
cannam@162 13257 # The more standards-conforming stlport4 library is
cannam@162 13258 # incompatible with the Cstd library. Avoid specifying
cannam@162 13259 # it if it's in CXXFLAGS. Ignore libCrun as
cannam@162 13260 # -library=stlport4 depends on it.
cannam@162 13261 case " $CXX $CXXFLAGS " in
cannam@162 13262 *" -library=stlport4 "*)
cannam@162 13263 solaris_use_stlport4=yes
cannam@162 13264 ;;
cannam@162 13265 esac
cannam@162 13266
cannam@162 13267 if test "$solaris_use_stlport4" != yes; then
cannam@162 13268 postdeps_CXX='-library=Cstd -library=Crun'
cannam@162 13269 fi
cannam@162 13270 ;;
cannam@162 13271 esac
cannam@162 13272 ;;
cannam@162 13273
cannam@162 13274 solaris*)
cannam@162 13275 case $cc_basename in
cannam@162 13276 CC* | sunCC*)
cannam@162 13277 # The more standards-conforming stlport4 library is
cannam@162 13278 # incompatible with the Cstd library. Avoid specifying
cannam@162 13279 # it if it's in CXXFLAGS. Ignore libCrun as
cannam@162 13280 # -library=stlport4 depends on it.
cannam@162 13281 case " $CXX $CXXFLAGS " in
cannam@162 13282 *" -library=stlport4 "*)
cannam@162 13283 solaris_use_stlport4=yes
cannam@162 13284 ;;
cannam@162 13285 esac
cannam@162 13286
cannam@162 13287 # Adding this requires a known-good setup of shared libraries for
cannam@162 13288 # Sun compiler versions before 5.6, else PIC objects from an old
cannam@162 13289 # archive will be linked into the output, leading to subtle bugs.
cannam@162 13290 if test "$solaris_use_stlport4" != yes; then
cannam@162 13291 postdeps_CXX='-library=Cstd -library=Crun'
cannam@162 13292 fi
cannam@162 13293 ;;
cannam@162 13294 esac
cannam@162 13295 ;;
cannam@162 13296 esac
cannam@162 13297
cannam@162 13298
cannam@162 13299 case " $postdeps_CXX " in
cannam@162 13300 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
cannam@162 13301 esac
cannam@162 13302 compiler_lib_search_dirs_CXX=
cannam@162 13303 if test -n "${compiler_lib_search_path_CXX}"; then
cannam@162 13304 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
cannam@162 13305 fi
cannam@162 13306
cannam@162 13307
cannam@162 13308
cannam@162 13309
cannam@162 13310
cannam@162 13311
cannam@162 13312
cannam@162 13313
cannam@162 13314
cannam@162 13315
cannam@162 13316
cannam@162 13317
cannam@162 13318
cannam@162 13319
cannam@162 13320
cannam@162 13321
cannam@162 13322
cannam@162 13323
cannam@162 13324
cannam@162 13325
cannam@162 13326
cannam@162 13327
cannam@162 13328
cannam@162 13329
cannam@162 13330
cannam@162 13331
cannam@162 13332
cannam@162 13333
cannam@162 13334
cannam@162 13335
cannam@162 13336
cannam@162 13337 lt_prog_compiler_wl_CXX=
cannam@162 13338 lt_prog_compiler_pic_CXX=
cannam@162 13339 lt_prog_compiler_static_CXX=
cannam@162 13340
cannam@162 13341
cannam@162 13342 # C++ specific cases for pic, static, wl, etc.
cannam@162 13343 if test "$GXX" = yes; then
cannam@162 13344 lt_prog_compiler_wl_CXX='-Wl,'
cannam@162 13345 lt_prog_compiler_static_CXX='-static'
cannam@162 13346
cannam@162 13347 case $host_os in
cannam@162 13348 aix*)
cannam@162 13349 # All AIX code is PIC.
cannam@162 13350 if test "$host_cpu" = ia64; then
cannam@162 13351 # AIX 5 now supports IA64 processor
cannam@162 13352 lt_prog_compiler_static_CXX='-Bstatic'
cannam@162 13353 fi
cannam@162 13354 ;;
cannam@162 13355
cannam@162 13356 amigaos*)
cannam@162 13357 case $host_cpu in
cannam@162 13358 powerpc)
cannam@162 13359 # see comment about AmigaOS4 .so support
cannam@162 13360 lt_prog_compiler_pic_CXX='-fPIC'
cannam@162 13361 ;;
cannam@162 13362 m68k)
cannam@162 13363 # FIXME: we need at least 68020 code to build shared libraries, but
cannam@162 13364 # adding the `-m68020' flag to GCC prevents building anything better,
cannam@162 13365 # like `-m68040'.
cannam@162 13366 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
cannam@162 13367 ;;
cannam@162 13368 esac
cannam@162 13369 ;;
cannam@162 13370
cannam@162 13371 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
cannam@162 13372 # PIC is the default for these OSes.
cannam@162 13373 ;;
cannam@162 13374 mingw* | cygwin* | os2* | pw32* | cegcc*)
cannam@162 13375 # This hack is so that the source file can tell whether it is being
cannam@162 13376 # built for inclusion in a dll (and should export symbols for example).
cannam@162 13377 # Although the cygwin gcc ignores -fPIC, still need this for old-style
cannam@162 13378 # (--disable-auto-import) libraries
cannam@162 13379 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
cannam@162 13380 ;;
cannam@162 13381 darwin* | rhapsody*)
cannam@162 13382 # PIC is the default on this platform
cannam@162 13383 # Common symbols not allowed in MH_DYLIB files
cannam@162 13384 lt_prog_compiler_pic_CXX='-fno-common'
cannam@162 13385 ;;
cannam@162 13386 *djgpp*)
cannam@162 13387 # DJGPP does not support shared libraries at all
cannam@162 13388 lt_prog_compiler_pic_CXX=
cannam@162 13389 ;;
cannam@162 13390 haiku*)
cannam@162 13391 # PIC is the default for Haiku.
cannam@162 13392 # The "-static" flag exists, but is broken.
cannam@162 13393 lt_prog_compiler_static_CXX=
cannam@162 13394 ;;
cannam@162 13395 interix[3-9]*)
cannam@162 13396 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
cannam@162 13397 # Instead, we relocate shared libraries at runtime.
cannam@162 13398 ;;
cannam@162 13399 sysv4*MP*)
cannam@162 13400 if test -d /usr/nec; then
cannam@162 13401 lt_prog_compiler_pic_CXX=-Kconform_pic
cannam@162 13402 fi
cannam@162 13403 ;;
cannam@162 13404 hpux*)
cannam@162 13405 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
cannam@162 13406 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
cannam@162 13407 # sets the default TLS model and affects inlining.
cannam@162 13408 case $host_cpu in
cannam@162 13409 hppa*64*)
cannam@162 13410 ;;
cannam@162 13411 *)
cannam@162 13412 lt_prog_compiler_pic_CXX='-fPIC'
cannam@162 13413 ;;
cannam@162 13414 esac
cannam@162 13415 ;;
cannam@162 13416 *qnx* | *nto*)
cannam@162 13417 # QNX uses GNU C++, but need to define -shared option too, otherwise
cannam@162 13418 # it will coredump.
cannam@162 13419 lt_prog_compiler_pic_CXX='-fPIC -shared'
cannam@162 13420 ;;
cannam@162 13421 *)
cannam@162 13422 lt_prog_compiler_pic_CXX='-fPIC'
cannam@162 13423 ;;
cannam@162 13424 esac
cannam@162 13425 else
cannam@162 13426 case $host_os in
cannam@162 13427 aix[4-9]*)
cannam@162 13428 # All AIX code is PIC.
cannam@162 13429 if test "$host_cpu" = ia64; then
cannam@162 13430 # AIX 5 now supports IA64 processor
cannam@162 13431 lt_prog_compiler_static_CXX='-Bstatic'
cannam@162 13432 else
cannam@162 13433 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
cannam@162 13434 fi
cannam@162 13435 ;;
cannam@162 13436 chorus*)
cannam@162 13437 case $cc_basename in
cannam@162 13438 cxch68*)
cannam@162 13439 # Green Hills C++ Compiler
cannam@162 13440 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
cannam@162 13441 ;;
cannam@162 13442 esac
cannam@162 13443 ;;
cannam@162 13444 mingw* | cygwin* | os2* | pw32* | cegcc*)
cannam@162 13445 # This hack is so that the source file can tell whether it is being
cannam@162 13446 # built for inclusion in a dll (and should export symbols for example).
cannam@162 13447 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
cannam@162 13448 ;;
cannam@162 13449 dgux*)
cannam@162 13450 case $cc_basename in
cannam@162 13451 ec++*)
cannam@162 13452 lt_prog_compiler_pic_CXX='-KPIC'
cannam@162 13453 ;;
cannam@162 13454 ghcx*)
cannam@162 13455 # Green Hills C++ Compiler
cannam@162 13456 lt_prog_compiler_pic_CXX='-pic'
cannam@162 13457 ;;
cannam@162 13458 *)
cannam@162 13459 ;;
cannam@162 13460 esac
cannam@162 13461 ;;
cannam@162 13462 freebsd* | dragonfly*)
cannam@162 13463 # FreeBSD uses GNU C++
cannam@162 13464 ;;
cannam@162 13465 hpux9* | hpux10* | hpux11*)
cannam@162 13466 case $cc_basename in
cannam@162 13467 CC*)
cannam@162 13468 lt_prog_compiler_wl_CXX='-Wl,'
cannam@162 13469 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
cannam@162 13470 if test "$host_cpu" != ia64; then
cannam@162 13471 lt_prog_compiler_pic_CXX='+Z'
cannam@162 13472 fi
cannam@162 13473 ;;
cannam@162 13474 aCC*)
cannam@162 13475 lt_prog_compiler_wl_CXX='-Wl,'
cannam@162 13476 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
cannam@162 13477 case $host_cpu in
cannam@162 13478 hppa*64*|ia64*)
cannam@162 13479 # +Z the default
cannam@162 13480 ;;
cannam@162 13481 *)
cannam@162 13482 lt_prog_compiler_pic_CXX='+Z'
cannam@162 13483 ;;
cannam@162 13484 esac
cannam@162 13485 ;;
cannam@162 13486 *)
cannam@162 13487 ;;
cannam@162 13488 esac
cannam@162 13489 ;;
cannam@162 13490 interix*)
cannam@162 13491 # This is c89, which is MS Visual C++ (no shared libs)
cannam@162 13492 # Anyone wants to do a port?
cannam@162 13493 ;;
cannam@162 13494 irix5* | irix6* | nonstopux*)
cannam@162 13495 case $cc_basename in
cannam@162 13496 CC*)
cannam@162 13497 lt_prog_compiler_wl_CXX='-Wl,'
cannam@162 13498 lt_prog_compiler_static_CXX='-non_shared'
cannam@162 13499 # CC pic flag -KPIC is the default.
cannam@162 13500 ;;
cannam@162 13501 *)
cannam@162 13502 ;;
cannam@162 13503 esac
cannam@162 13504 ;;
cannam@162 13505 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cannam@162 13506 case $cc_basename in
cannam@162 13507 KCC*)
cannam@162 13508 # KAI C++ Compiler
cannam@162 13509 lt_prog_compiler_wl_CXX='--backend -Wl,'
cannam@162 13510 lt_prog_compiler_pic_CXX='-fPIC'
cannam@162 13511 ;;
cannam@162 13512 ecpc* )
cannam@162 13513 # old Intel C++ for x86_64 which still supported -KPIC.
cannam@162 13514 lt_prog_compiler_wl_CXX='-Wl,'
cannam@162 13515 lt_prog_compiler_pic_CXX='-KPIC'
cannam@162 13516 lt_prog_compiler_static_CXX='-static'
cannam@162 13517 ;;
cannam@162 13518 icpc* )
cannam@162 13519 # Intel C++, used to be incompatible with GCC.
cannam@162 13520 # ICC 10 doesn't accept -KPIC any more.
cannam@162 13521 lt_prog_compiler_wl_CXX='-Wl,'
cannam@162 13522 lt_prog_compiler_pic_CXX='-fPIC'
cannam@162 13523 lt_prog_compiler_static_CXX='-static'
cannam@162 13524 ;;
cannam@162 13525 pgCC* | pgcpp*)
cannam@162 13526 # Portland Group C++ compiler
cannam@162 13527 lt_prog_compiler_wl_CXX='-Wl,'
cannam@162 13528 lt_prog_compiler_pic_CXX='-fpic'
cannam@162 13529 lt_prog_compiler_static_CXX='-Bstatic'
cannam@162 13530 ;;
cannam@162 13531 cxx*)
cannam@162 13532 # Compaq C++
cannam@162 13533 # Make sure the PIC flag is empty. It appears that all Alpha
cannam@162 13534 # Linux and Compaq Tru64 Unix objects are PIC.
cannam@162 13535 lt_prog_compiler_pic_CXX=
cannam@162 13536 lt_prog_compiler_static_CXX='-non_shared'
cannam@162 13537 ;;
cannam@162 13538 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
cannam@162 13539 # IBM XL 8.0, 9.0 on PPC and BlueGene
cannam@162 13540 lt_prog_compiler_wl_CXX='-Wl,'
cannam@162 13541 lt_prog_compiler_pic_CXX='-qpic'
cannam@162 13542 lt_prog_compiler_static_CXX='-qstaticlink'
cannam@162 13543 ;;
cannam@162 13544 *)
cannam@162 13545 case `$CC -V 2>&1 | sed 5q` in
cannam@162 13546 *Sun\ C*)
cannam@162 13547 # Sun C++ 5.9
cannam@162 13548 lt_prog_compiler_pic_CXX='-KPIC'
cannam@162 13549 lt_prog_compiler_static_CXX='-Bstatic'
cannam@162 13550 lt_prog_compiler_wl_CXX='-Qoption ld '
cannam@162 13551 ;;
cannam@162 13552 esac
cannam@162 13553 ;;
cannam@162 13554 esac
cannam@162 13555 ;;
cannam@162 13556 lynxos*)
cannam@162 13557 ;;
cannam@162 13558 m88k*)
cannam@162 13559 ;;
cannam@162 13560 mvs*)
cannam@162 13561 case $cc_basename in
cannam@162 13562 cxx*)
cannam@162 13563 lt_prog_compiler_pic_CXX='-W c,exportall'
cannam@162 13564 ;;
cannam@162 13565 *)
cannam@162 13566 ;;
cannam@162 13567 esac
cannam@162 13568 ;;
cannam@162 13569 netbsd* | netbsdelf*-gnu)
cannam@162 13570 ;;
cannam@162 13571 *qnx* | *nto*)
cannam@162 13572 # QNX uses GNU C++, but need to define -shared option too, otherwise
cannam@162 13573 # it will coredump.
cannam@162 13574 lt_prog_compiler_pic_CXX='-fPIC -shared'
cannam@162 13575 ;;
cannam@162 13576 osf3* | osf4* | osf5*)
cannam@162 13577 case $cc_basename in
cannam@162 13578 KCC*)
cannam@162 13579 lt_prog_compiler_wl_CXX='--backend -Wl,'
cannam@162 13580 ;;
cannam@162 13581 RCC*)
cannam@162 13582 # Rational C++ 2.4.1
cannam@162 13583 lt_prog_compiler_pic_CXX='-pic'
cannam@162 13584 ;;
cannam@162 13585 cxx*)
cannam@162 13586 # Digital/Compaq C++
cannam@162 13587 lt_prog_compiler_wl_CXX='-Wl,'
cannam@162 13588 # Make sure the PIC flag is empty. It appears that all Alpha
cannam@162 13589 # Linux and Compaq Tru64 Unix objects are PIC.
cannam@162 13590 lt_prog_compiler_pic_CXX=
cannam@162 13591 lt_prog_compiler_static_CXX='-non_shared'
cannam@162 13592 ;;
cannam@162 13593 *)
cannam@162 13594 ;;
cannam@162 13595 esac
cannam@162 13596 ;;
cannam@162 13597 psos*)
cannam@162 13598 ;;
cannam@162 13599 solaris*)
cannam@162 13600 case $cc_basename in
cannam@162 13601 CC* | sunCC*)
cannam@162 13602 # Sun C++ 4.2, 5.x and Centerline C++
cannam@162 13603 lt_prog_compiler_pic_CXX='-KPIC'
cannam@162 13604 lt_prog_compiler_static_CXX='-Bstatic'
cannam@162 13605 lt_prog_compiler_wl_CXX='-Qoption ld '
cannam@162 13606 ;;
cannam@162 13607 gcx*)
cannam@162 13608 # Green Hills C++ Compiler
cannam@162 13609 lt_prog_compiler_pic_CXX='-PIC'
cannam@162 13610 ;;
cannam@162 13611 *)
cannam@162 13612 ;;
cannam@162 13613 esac
cannam@162 13614 ;;
cannam@162 13615 sunos4*)
cannam@162 13616 case $cc_basename in
cannam@162 13617 CC*)
cannam@162 13618 # Sun C++ 4.x
cannam@162 13619 lt_prog_compiler_pic_CXX='-pic'
cannam@162 13620 lt_prog_compiler_static_CXX='-Bstatic'
cannam@162 13621 ;;
cannam@162 13622 lcc*)
cannam@162 13623 # Lucid
cannam@162 13624 lt_prog_compiler_pic_CXX='-pic'
cannam@162 13625 ;;
cannam@162 13626 *)
cannam@162 13627 ;;
cannam@162 13628 esac
cannam@162 13629 ;;
cannam@162 13630 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
cannam@162 13631 case $cc_basename in
cannam@162 13632 CC*)
cannam@162 13633 lt_prog_compiler_wl_CXX='-Wl,'
cannam@162 13634 lt_prog_compiler_pic_CXX='-KPIC'
cannam@162 13635 lt_prog_compiler_static_CXX='-Bstatic'
cannam@162 13636 ;;
cannam@162 13637 esac
cannam@162 13638 ;;
cannam@162 13639 tandem*)
cannam@162 13640 case $cc_basename in
cannam@162 13641 NCC*)
cannam@162 13642 # NonStop-UX NCC 3.20
cannam@162 13643 lt_prog_compiler_pic_CXX='-KPIC'
cannam@162 13644 ;;
cannam@162 13645 *)
cannam@162 13646 ;;
cannam@162 13647 esac
cannam@162 13648 ;;
cannam@162 13649 vxworks*)
cannam@162 13650 ;;
cannam@162 13651 *)
cannam@162 13652 lt_prog_compiler_can_build_shared_CXX=no
cannam@162 13653 ;;
cannam@162 13654 esac
cannam@162 13655 fi
cannam@162 13656
cannam@162 13657 case $host_os in
cannam@162 13658 # For platforms which do not support PIC, -DPIC is meaningless:
cannam@162 13659 *djgpp*)
cannam@162 13660 lt_prog_compiler_pic_CXX=
cannam@162 13661 ;;
cannam@162 13662 *)
cannam@162 13663 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
cannam@162 13664 ;;
cannam@162 13665 esac
cannam@162 13666
cannam@162 13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cannam@162 13668 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
cannam@162 13669 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
cannam@162 13670 $as_echo_n "(cached) " >&6
cannam@162 13671 else
cannam@162 13672 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
cannam@162 13673 fi
cannam@162 13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
cannam@162 13675 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
cannam@162 13676 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cannam@162 13677
cannam@162 13678 #
cannam@162 13679 # Check to make sure the PIC flag actually works.
cannam@162 13680 #
cannam@162 13681 if test -n "$lt_prog_compiler_pic_CXX"; then
cannam@162 13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
cannam@162 13683 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cannam@162 13684 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cannam@162 13685 $as_echo_n "(cached) " >&6
cannam@162 13686 else
cannam@162 13687 lt_cv_prog_compiler_pic_works_CXX=no
cannam@162 13688 ac_outfile=conftest.$ac_objext
cannam@162 13689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@162 13690 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
cannam@162 13691 # Insert the option either (1) after the last *FLAGS variable, or
cannam@162 13692 # (2) before a word containing "conftest.", or (3) at the end.
cannam@162 13693 # Note that $ac_compile itself does not contain backslashes and begins
cannam@162 13694 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@162 13695 # The option is referenced via a variable to avoid confusing sed.
cannam@162 13696 lt_compile=`echo "$ac_compile" | $SED \
cannam@162 13697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@162 13698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@162 13699 -e 's:$: $lt_compiler_flag:'`
cannam@162 13700 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@162 13701 (eval "$lt_compile" 2>conftest.err)
cannam@162 13702 ac_status=$?
cannam@162 13703 cat conftest.err >&5
cannam@162 13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@162 13705 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@162 13706 # The compiler can only warn and ignore the option if not recognized
cannam@162 13707 # So say no if there are warnings other than the usual output.
cannam@162 13708 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cannam@162 13709 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@162 13710 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
cannam@162 13711 lt_cv_prog_compiler_pic_works_CXX=yes
cannam@162 13712 fi
cannam@162 13713 fi
cannam@162 13714 $RM conftest*
cannam@162 13715
cannam@162 13716 fi
cannam@162 13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cannam@162 13718 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
cannam@162 13719
cannam@162 13720 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
cannam@162 13721 case $lt_prog_compiler_pic_CXX in
cannam@162 13722 "" | " "*) ;;
cannam@162 13723 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
cannam@162 13724 esac
cannam@162 13725 else
cannam@162 13726 lt_prog_compiler_pic_CXX=
cannam@162 13727 lt_prog_compiler_can_build_shared_CXX=no
cannam@162 13728 fi
cannam@162 13729
cannam@162 13730 fi
cannam@162 13731
cannam@162 13732
cannam@162 13733
cannam@162 13734
cannam@162 13735
cannam@162 13736 #
cannam@162 13737 # Check to make sure the static flag actually works.
cannam@162 13738 #
cannam@162 13739 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cannam@162 13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cannam@162 13741 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cannam@162 13742 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cannam@162 13743 $as_echo_n "(cached) " >&6
cannam@162 13744 else
cannam@162 13745 lt_cv_prog_compiler_static_works_CXX=no
cannam@162 13746 save_LDFLAGS="$LDFLAGS"
cannam@162 13747 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
cannam@162 13748 echo "$lt_simple_link_test_code" > conftest.$ac_ext
cannam@162 13749 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
cannam@162 13750 # The linker can only warn and ignore the option if not recognized
cannam@162 13751 # So say no if there are warnings
cannam@162 13752 if test -s conftest.err; then
cannam@162 13753 # Append any errors to the config.log.
cannam@162 13754 cat conftest.err 1>&5
cannam@162 13755 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cannam@162 13756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@162 13757 if diff conftest.exp conftest.er2 >/dev/null; then
cannam@162 13758 lt_cv_prog_compiler_static_works_CXX=yes
cannam@162 13759 fi
cannam@162 13760 else
cannam@162 13761 lt_cv_prog_compiler_static_works_CXX=yes
cannam@162 13762 fi
cannam@162 13763 fi
cannam@162 13764 $RM -r conftest*
cannam@162 13765 LDFLAGS="$save_LDFLAGS"
cannam@162 13766
cannam@162 13767 fi
cannam@162 13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cannam@162 13769 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
cannam@162 13770
cannam@162 13771 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
cannam@162 13772 :
cannam@162 13773 else
cannam@162 13774 lt_prog_compiler_static_CXX=
cannam@162 13775 fi
cannam@162 13776
cannam@162 13777
cannam@162 13778
cannam@162 13779
cannam@162 13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@162 13781 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cannam@162 13782 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cannam@162 13783 $as_echo_n "(cached) " >&6
cannam@162 13784 else
cannam@162 13785 lt_cv_prog_compiler_c_o_CXX=no
cannam@162 13786 $RM -r conftest 2>/dev/null
cannam@162 13787 mkdir conftest
cannam@162 13788 cd conftest
cannam@162 13789 mkdir out
cannam@162 13790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@162 13791
cannam@162 13792 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@162 13793 # Insert the option either (1) after the last *FLAGS variable, or
cannam@162 13794 # (2) before a word containing "conftest.", or (3) at the end.
cannam@162 13795 # Note that $ac_compile itself does not contain backslashes and begins
cannam@162 13796 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@162 13797 lt_compile=`echo "$ac_compile" | $SED \
cannam@162 13798 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@162 13799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@162 13800 -e 's:$: $lt_compiler_flag:'`
cannam@162 13801 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@162 13802 (eval "$lt_compile" 2>out/conftest.err)
cannam@162 13803 ac_status=$?
cannam@162 13804 cat out/conftest.err >&5
cannam@162 13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@162 13806 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@162 13807 then
cannam@162 13808 # The compiler can only warn and ignore the option if not recognized
cannam@162 13809 # So say no if there are warnings
cannam@162 13810 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cannam@162 13811 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cannam@162 13812 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cannam@162 13813 lt_cv_prog_compiler_c_o_CXX=yes
cannam@162 13814 fi
cannam@162 13815 fi
cannam@162 13816 chmod u+w . 2>&5
cannam@162 13817 $RM conftest*
cannam@162 13818 # SGI C++ compiler will create directory out/ii_files/ for
cannam@162 13819 # template instantiation
cannam@162 13820 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
cannam@162 13821 $RM out/* && rmdir out
cannam@162 13822 cd ..
cannam@162 13823 $RM -r conftest
cannam@162 13824 $RM conftest*
cannam@162 13825
cannam@162 13826 fi
cannam@162 13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cannam@162 13828 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
cannam@162 13829
cannam@162 13830
cannam@162 13831
cannam@162 13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@162 13833 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cannam@162 13834 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cannam@162 13835 $as_echo_n "(cached) " >&6
cannam@162 13836 else
cannam@162 13837 lt_cv_prog_compiler_c_o_CXX=no
cannam@162 13838 $RM -r conftest 2>/dev/null
cannam@162 13839 mkdir conftest
cannam@162 13840 cd conftest
cannam@162 13841 mkdir out
cannam@162 13842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@162 13843
cannam@162 13844 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@162 13845 # Insert the option either (1) after the last *FLAGS variable, or
cannam@162 13846 # (2) before a word containing "conftest.", or (3) at the end.
cannam@162 13847 # Note that $ac_compile itself does not contain backslashes and begins
cannam@162 13848 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@162 13849 lt_compile=`echo "$ac_compile" | $SED \
cannam@162 13850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@162 13851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@162 13852 -e 's:$: $lt_compiler_flag:'`
cannam@162 13853 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@162 13854 (eval "$lt_compile" 2>out/conftest.err)
cannam@162 13855 ac_status=$?
cannam@162 13856 cat out/conftest.err >&5
cannam@162 13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@162 13858 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@162 13859 then
cannam@162 13860 # The compiler can only warn and ignore the option if not recognized
cannam@162 13861 # So say no if there are warnings
cannam@162 13862 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cannam@162 13863 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cannam@162 13864 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cannam@162 13865 lt_cv_prog_compiler_c_o_CXX=yes
cannam@162 13866 fi
cannam@162 13867 fi
cannam@162 13868 chmod u+w . 2>&5
cannam@162 13869 $RM conftest*
cannam@162 13870 # SGI C++ compiler will create directory out/ii_files/ for
cannam@162 13871 # template instantiation
cannam@162 13872 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
cannam@162 13873 $RM out/* && rmdir out
cannam@162 13874 cd ..
cannam@162 13875 $RM -r conftest
cannam@162 13876 $RM conftest*
cannam@162 13877
cannam@162 13878 fi
cannam@162 13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cannam@162 13880 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
cannam@162 13881
cannam@162 13882
cannam@162 13883
cannam@162 13884
cannam@162 13885 hard_links="nottested"
cannam@162 13886 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
cannam@162 13887 # do not overwrite the value of need_locks provided by the user
cannam@162 13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cannam@162 13889 $as_echo_n "checking if we can lock with hard links... " >&6; }
cannam@162 13890 hard_links=yes
cannam@162 13891 $RM conftest*
cannam@162 13892 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@162 13893 touch conftest.a
cannam@162 13894 ln conftest.a conftest.b 2>&5 || hard_links=no
cannam@162 13895 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@162 13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cannam@162 13897 $as_echo "$hard_links" >&6; }
cannam@162 13898 if test "$hard_links" = no; then
cannam@162 13899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cannam@162 13900 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
cannam@162 13901 need_locks=warn
cannam@162 13902 fi
cannam@162 13903 else
cannam@162 13904 need_locks=no
cannam@162 13905 fi
cannam@162 13906
cannam@162 13907
cannam@162 13908
cannam@162 13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@162 13910 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
cannam@162 13911
cannam@162 13912 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@162 13913 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cannam@162 13914 case $host_os in
cannam@162 13915 aix[4-9]*)
cannam@162 13916 # If we're using GNU nm, then we don't want the "-C" option.
cannam@162 13917 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cannam@162 13918 # Also, AIX nm treats weak defined symbols like other global defined
cannam@162 13919 # symbols, whereas GNU nm marks them as "W".
cannam@162 13920 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cannam@162 13921 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cannam@162 13922 else
cannam@162 13923 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cannam@162 13924 fi
cannam@162 13925 ;;
cannam@162 13926 pw32*)
cannam@162 13927 export_symbols_cmds_CXX="$ltdll_cmds"
cannam@162 13928 ;;
cannam@162 13929 cygwin* | mingw* | cegcc*)
cannam@162 13930 case $cc_basename in
cannam@162 13931 cl*)
cannam@162 13932 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cannam@162 13933 ;;
cannam@162 13934 *)
cannam@162 13935 export_symbols_cmds_CXX='$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@162 13936 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
cannam@162 13937 ;;
cannam@162 13938 esac
cannam@162 13939 ;;
cannam@162 13940 linux* | k*bsd*-gnu | gnu*)
cannam@162 13941 link_all_deplibs_CXX=no
cannam@162 13942 ;;
cannam@162 13943 *)
cannam@162 13944 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@162 13945 ;;
cannam@162 13946 esac
cannam@162 13947
cannam@162 13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cannam@162 13949 $as_echo "$ld_shlibs_CXX" >&6; }
cannam@162 13950 test "$ld_shlibs_CXX" = no && can_build_shared=no
cannam@162 13951
cannam@162 13952 with_gnu_ld_CXX=$with_gnu_ld
cannam@162 13953
cannam@162 13954
cannam@162 13955
cannam@162 13956
cannam@162 13957
cannam@162 13958
cannam@162 13959 #
cannam@162 13960 # Do we need to explicitly link libc?
cannam@162 13961 #
cannam@162 13962 case "x$archive_cmds_need_lc_CXX" in
cannam@162 13963 x|xyes)
cannam@162 13964 # Assume -lc should be added
cannam@162 13965 archive_cmds_need_lc_CXX=yes
cannam@162 13966
cannam@162 13967 if test "$enable_shared" = yes && test "$GCC" = yes; then
cannam@162 13968 case $archive_cmds_CXX in
cannam@162 13969 *'~'*)
cannam@162 13970 # FIXME: we may have to deal with multi-command sequences.
cannam@162 13971 ;;
cannam@162 13972 '$CC '*)
cannam@162 13973 # Test whether the compiler implicitly links with -lc since on some
cannam@162 13974 # systems, -lgcc has to come before -lc. If gcc already passes -lc
cannam@162 13975 # to ld, don't add -lc before -lgcc.
cannam@162 13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cannam@162 13977 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cannam@162 13978 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cannam@162 13979 $as_echo_n "(cached) " >&6
cannam@162 13980 else
cannam@162 13981 $RM conftest*
cannam@162 13982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@162 13983
cannam@162 13984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@162 13985 (eval $ac_compile) 2>&5
cannam@162 13986 ac_status=$?
cannam@162 13987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 13988 test $ac_status = 0; } 2>conftest.err; then
cannam@162 13989 soname=conftest
cannam@162 13990 lib=conftest
cannam@162 13991 libobjs=conftest.$ac_objext
cannam@162 13992 deplibs=
cannam@162 13993 wl=$lt_prog_compiler_wl_CXX
cannam@162 13994 pic_flag=$lt_prog_compiler_pic_CXX
cannam@162 13995 compiler_flags=-v
cannam@162 13996 linker_flags=-v
cannam@162 13997 verstring=
cannam@162 13998 output_objdir=.
cannam@162 13999 libname=conftest
cannam@162 14000 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
cannam@162 14001 allow_undefined_flag_CXX=
cannam@162 14002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cannam@162 14003 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
cannam@162 14004 ac_status=$?
cannam@162 14005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 14006 test $ac_status = 0; }
cannam@162 14007 then
cannam@162 14008 lt_cv_archive_cmds_need_lc_CXX=no
cannam@162 14009 else
cannam@162 14010 lt_cv_archive_cmds_need_lc_CXX=yes
cannam@162 14011 fi
cannam@162 14012 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
cannam@162 14013 else
cannam@162 14014 cat conftest.err 1>&5
cannam@162 14015 fi
cannam@162 14016 $RM conftest*
cannam@162 14017
cannam@162 14018 fi
cannam@162 14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
cannam@162 14020 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
cannam@162 14021 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cannam@162 14022 ;;
cannam@162 14023 esac
cannam@162 14024 fi
cannam@162 14025 ;;
cannam@162 14026 esac
cannam@162 14027
cannam@162 14028
cannam@162 14029
cannam@162 14030
cannam@162 14031
cannam@162 14032
cannam@162 14033
cannam@162 14034
cannam@162 14035
cannam@162 14036
cannam@162 14037
cannam@162 14038
cannam@162 14039
cannam@162 14040
cannam@162 14041
cannam@162 14042
cannam@162 14043
cannam@162 14044
cannam@162 14045
cannam@162 14046
cannam@162 14047
cannam@162 14048
cannam@162 14049
cannam@162 14050
cannam@162 14051
cannam@162 14052
cannam@162 14053
cannam@162 14054
cannam@162 14055
cannam@162 14056
cannam@162 14057
cannam@162 14058
cannam@162 14059
cannam@162 14060
cannam@162 14061
cannam@162 14062
cannam@162 14063
cannam@162 14064
cannam@162 14065
cannam@162 14066
cannam@162 14067
cannam@162 14068
cannam@162 14069
cannam@162 14070
cannam@162 14071
cannam@162 14072
cannam@162 14073
cannam@162 14074
cannam@162 14075
cannam@162 14076
cannam@162 14077
cannam@162 14078
cannam@162 14079
cannam@162 14080
cannam@162 14081
cannam@162 14082
cannam@162 14083
cannam@162 14084
cannam@162 14085
cannam@162 14086
cannam@162 14087
cannam@162 14088
cannam@162 14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cannam@162 14090 $as_echo_n "checking dynamic linker characteristics... " >&6; }
cannam@162 14091
cannam@162 14092 library_names_spec=
cannam@162 14093 libname_spec='lib$name'
cannam@162 14094 soname_spec=
cannam@162 14095 shrext_cmds=".so"
cannam@162 14096 postinstall_cmds=
cannam@162 14097 postuninstall_cmds=
cannam@162 14098 finish_cmds=
cannam@162 14099 finish_eval=
cannam@162 14100 shlibpath_var=
cannam@162 14101 shlibpath_overrides_runpath=unknown
cannam@162 14102 version_type=none
cannam@162 14103 dynamic_linker="$host_os ld.so"
cannam@162 14104 sys_lib_dlsearch_path_spec="/lib /usr/lib"
cannam@162 14105 need_lib_prefix=unknown
cannam@162 14106 hardcode_into_libs=no
cannam@162 14107
cannam@162 14108 # when you set need_version to no, make sure it does not cause -set_version
cannam@162 14109 # flags to be left without arguments
cannam@162 14110 need_version=unknown
cannam@162 14111
cannam@162 14112 case $host_os in
cannam@162 14113 aix3*)
cannam@162 14114 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 14115 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
cannam@162 14116 shlibpath_var=LIBPATH
cannam@162 14117
cannam@162 14118 # AIX 3 has no versioning support, so we append a major version to the name.
cannam@162 14119 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 14120 ;;
cannam@162 14121
cannam@162 14122 aix[4-9]*)
cannam@162 14123 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 14124 need_lib_prefix=no
cannam@162 14125 need_version=no
cannam@162 14126 hardcode_into_libs=yes
cannam@162 14127 if test "$host_cpu" = ia64; then
cannam@162 14128 # AIX 5 supports IA64
cannam@162 14129 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
cannam@162 14130 shlibpath_var=LD_LIBRARY_PATH
cannam@162 14131 else
cannam@162 14132 # With GCC up to 2.95.x, collect2 would create an import file
cannam@162 14133 # for dependence libraries. The import file would start with
cannam@162 14134 # the line `#! .'. This would cause the generated library to
cannam@162 14135 # depend on `.', always an invalid library. This was fixed in
cannam@162 14136 # development snapshots of GCC prior to 3.0.
cannam@162 14137 case $host_os in
cannam@162 14138 aix4 | aix4.[01] | aix4.[01].*)
cannam@162 14139 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
cannam@162 14140 echo ' yes '
cannam@162 14141 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
cannam@162 14142 :
cannam@162 14143 else
cannam@162 14144 can_build_shared=no
cannam@162 14145 fi
cannam@162 14146 ;;
cannam@162 14147 esac
cannam@162 14148 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
cannam@162 14149 # soname into executable. Probably we can add versioning support to
cannam@162 14150 # collect2, so additional links can be useful in future.
cannam@162 14151 if test "$aix_use_runtimelinking" = yes; then
cannam@162 14152 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
cannam@162 14153 # instead of lib<name>.a to let people know that these are not
cannam@162 14154 # typical AIX shared libraries.
cannam@162 14155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 14156 else
cannam@162 14157 # We preserve .a as extension for shared libraries through AIX4.2
cannam@162 14158 # and later when we are not doing run time linking.
cannam@162 14159 library_names_spec='${libname}${release}.a $libname.a'
cannam@162 14160 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 14161 fi
cannam@162 14162 shlibpath_var=LIBPATH
cannam@162 14163 fi
cannam@162 14164 ;;
cannam@162 14165
cannam@162 14166 amigaos*)
cannam@162 14167 case $host_cpu in
cannam@162 14168 powerpc)
cannam@162 14169 # Since July 2007 AmigaOS4 officially supports .so libraries.
cannam@162 14170 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
cannam@162 14171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 14172 ;;
cannam@162 14173 m68k)
cannam@162 14174 library_names_spec='$libname.ixlibrary $libname.a'
cannam@162 14175 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cannam@162 14176 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
cannam@162 14177 ;;
cannam@162 14178 esac
cannam@162 14179 ;;
cannam@162 14180
cannam@162 14181 beos*)
cannam@162 14182 library_names_spec='${libname}${shared_ext}'
cannam@162 14183 dynamic_linker="$host_os ld.so"
cannam@162 14184 shlibpath_var=LIBRARY_PATH
cannam@162 14185 ;;
cannam@162 14186
cannam@162 14187 bsdi[45]*)
cannam@162 14188 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 14189 need_version=no
cannam@162 14190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 14191 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 14192 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
cannam@162 14193 shlibpath_var=LD_LIBRARY_PATH
cannam@162 14194 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
cannam@162 14195 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
cannam@162 14196 # the default ld.so.conf also contains /usr/contrib/lib and
cannam@162 14197 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
cannam@162 14198 # libtool to hard-code these into programs
cannam@162 14199 ;;
cannam@162 14200
cannam@162 14201 cygwin* | mingw* | pw32* | cegcc*)
cannam@162 14202 version_type=windows
cannam@162 14203 shrext_cmds=".dll"
cannam@162 14204 need_version=no
cannam@162 14205 need_lib_prefix=no
cannam@162 14206
cannam@162 14207 case $GCC,$cc_basename in
cannam@162 14208 yes,*)
cannam@162 14209 # gcc
cannam@162 14210 library_names_spec='$libname.dll.a'
cannam@162 14211 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@162 14212 postinstall_cmds='base_file=`basename \${file}`~
cannam@162 14213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
cannam@162 14214 dldir=$destdir/`dirname \$dlpath`~
cannam@162 14215 test -d \$dldir || mkdir -p \$dldir~
cannam@162 14216 $install_prog $dir/$dlname \$dldir/$dlname~
cannam@162 14217 chmod a+x \$dldir/$dlname~
cannam@162 14218 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
cannam@162 14219 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
cannam@162 14220 fi'
cannam@162 14221 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@162 14222 dlpath=$dir/\$dldll~
cannam@162 14223 $RM \$dlpath'
cannam@162 14224 shlibpath_overrides_runpath=yes
cannam@162 14225
cannam@162 14226 case $host_os in
cannam@162 14227 cygwin*)
cannam@162 14228 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
cannam@162 14229 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@162 14230
cannam@162 14231 ;;
cannam@162 14232 mingw* | cegcc*)
cannam@162 14233 # MinGW DLLs use traditional 'lib' prefix
cannam@162 14234 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@162 14235 ;;
cannam@162 14236 pw32*)
cannam@162 14237 # pw32 DLLs use 'pw' prefix rather than 'lib'
cannam@162 14238 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@162 14239 ;;
cannam@162 14240 esac
cannam@162 14241 dynamic_linker='Win32 ld.exe'
cannam@162 14242 ;;
cannam@162 14243
cannam@162 14244 *,cl*)
cannam@162 14245 # Native MSVC
cannam@162 14246 libname_spec='$name'
cannam@162 14247 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@162 14248 library_names_spec='${libname}.dll.lib'
cannam@162 14249
cannam@162 14250 case $build_os in
cannam@162 14251 mingw*)
cannam@162 14252 sys_lib_search_path_spec=
cannam@162 14253 lt_save_ifs=$IFS
cannam@162 14254 IFS=';'
cannam@162 14255 for lt_path in $LIB
cannam@162 14256 do
cannam@162 14257 IFS=$lt_save_ifs
cannam@162 14258 # Let DOS variable expansion print the short 8.3 style file name.
cannam@162 14259 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
cannam@162 14260 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
cannam@162 14261 done
cannam@162 14262 IFS=$lt_save_ifs
cannam@162 14263 # Convert to MSYS style.
cannam@162 14264 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@162 14265 ;;
cannam@162 14266 cygwin*)
cannam@162 14267 # Convert to unix form, then to dos form, then back to unix form
cannam@162 14268 # but this time dos style (no spaces!) so that the unix form looks
cannam@162 14269 # like /cygdrive/c/PROGRA~1:/cygdr...
cannam@162 14270 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
cannam@162 14271 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
cannam@162 14272 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@162 14273 ;;
cannam@162 14274 *)
cannam@162 14275 sys_lib_search_path_spec="$LIB"
cannam@162 14276 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
cannam@162 14277 # It is most probably a Windows format PATH.
cannam@162 14278 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@162 14279 else
cannam@162 14280 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@162 14281 fi
cannam@162 14282 # FIXME: find the short name or the path components, as spaces are
cannam@162 14283 # common. (e.g. "Program Files" -> "PROGRA~1")
cannam@162 14284 ;;
cannam@162 14285 esac
cannam@162 14286
cannam@162 14287 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@162 14288 postinstall_cmds='base_file=`basename \${file}`~
cannam@162 14289 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
cannam@162 14290 dldir=$destdir/`dirname \$dlpath`~
cannam@162 14291 test -d \$dldir || mkdir -p \$dldir~
cannam@162 14292 $install_prog $dir/$dlname \$dldir/$dlname'
cannam@162 14293 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@162 14294 dlpath=$dir/\$dldll~
cannam@162 14295 $RM \$dlpath'
cannam@162 14296 shlibpath_overrides_runpath=yes
cannam@162 14297 dynamic_linker='Win32 link.exe'
cannam@162 14298 ;;
cannam@162 14299
cannam@162 14300 *)
cannam@162 14301 # Assume MSVC wrapper
cannam@162 14302 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cannam@162 14303 dynamic_linker='Win32 ld.exe'
cannam@162 14304 ;;
cannam@162 14305 esac
cannam@162 14306 # FIXME: first we should search . and the directory the executable is in
cannam@162 14307 shlibpath_var=PATH
cannam@162 14308 ;;
cannam@162 14309
cannam@162 14310 darwin* | rhapsody*)
cannam@162 14311 dynamic_linker="$host_os dyld"
cannam@162 14312 version_type=darwin
cannam@162 14313 need_lib_prefix=no
cannam@162 14314 need_version=no
cannam@162 14315 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
cannam@162 14316 soname_spec='${libname}${release}${major}$shared_ext'
cannam@162 14317 shlibpath_overrides_runpath=yes
cannam@162 14318 shlibpath_var=DYLD_LIBRARY_PATH
cannam@162 14319 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
cannam@162 14320
cannam@162 14321 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
cannam@162 14322 ;;
cannam@162 14323
cannam@162 14324 dgux*)
cannam@162 14325 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 14326 need_lib_prefix=no
cannam@162 14327 need_version=no
cannam@162 14328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
cannam@162 14329 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 14330 shlibpath_var=LD_LIBRARY_PATH
cannam@162 14331 ;;
cannam@162 14332
cannam@162 14333 freebsd* | dragonfly*)
cannam@162 14334 # DragonFly does not have aout. When/if they implement a new
cannam@162 14335 # versioning mechanism, adjust this.
cannam@162 14336 if test -x /usr/bin/objformat; then
cannam@162 14337 objformat=`/usr/bin/objformat`
cannam@162 14338 else
cannam@162 14339 case $host_os in
cannam@162 14340 freebsd[23].*) objformat=aout ;;
cannam@162 14341 *) objformat=elf ;;
cannam@162 14342 esac
cannam@162 14343 fi
cannam@162 14344 version_type=freebsd-$objformat
cannam@162 14345 case $version_type in
cannam@162 14346 freebsd-elf*)
cannam@162 14347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@162 14348 need_version=no
cannam@162 14349 need_lib_prefix=no
cannam@162 14350 ;;
cannam@162 14351 freebsd-*)
cannam@162 14352 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
cannam@162 14353 need_version=yes
cannam@162 14354 ;;
cannam@162 14355 esac
cannam@162 14356 shlibpath_var=LD_LIBRARY_PATH
cannam@162 14357 case $host_os in
cannam@162 14358 freebsd2.*)
cannam@162 14359 shlibpath_overrides_runpath=yes
cannam@162 14360 ;;
cannam@162 14361 freebsd3.[01]* | freebsdelf3.[01]*)
cannam@162 14362 shlibpath_overrides_runpath=yes
cannam@162 14363 hardcode_into_libs=yes
cannam@162 14364 ;;
cannam@162 14365 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
cannam@162 14366 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
cannam@162 14367 shlibpath_overrides_runpath=no
cannam@162 14368 hardcode_into_libs=yes
cannam@162 14369 ;;
cannam@162 14370 *) # from 4.6 on, and DragonFly
cannam@162 14371 shlibpath_overrides_runpath=yes
cannam@162 14372 hardcode_into_libs=yes
cannam@162 14373 ;;
cannam@162 14374 esac
cannam@162 14375 ;;
cannam@162 14376
cannam@162 14377 haiku*)
cannam@162 14378 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 14379 need_lib_prefix=no
cannam@162 14380 need_version=no
cannam@162 14381 dynamic_linker="$host_os runtime_loader"
cannam@162 14382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
cannam@162 14383 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 14384 shlibpath_var=LIBRARY_PATH
cannam@162 14385 shlibpath_overrides_runpath=yes
cannam@162 14386 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
cannam@162 14387 hardcode_into_libs=yes
cannam@162 14388 ;;
cannam@162 14389
cannam@162 14390 hpux9* | hpux10* | hpux11*)
cannam@162 14391 # Give a soname corresponding to the major version so that dld.sl refuses to
cannam@162 14392 # link against other versions.
cannam@162 14393 version_type=sunos
cannam@162 14394 need_lib_prefix=no
cannam@162 14395 need_version=no
cannam@162 14396 case $host_cpu in
cannam@162 14397 ia64*)
cannam@162 14398 shrext_cmds='.so'
cannam@162 14399 hardcode_into_libs=yes
cannam@162 14400 dynamic_linker="$host_os dld.so"
cannam@162 14401 shlibpath_var=LD_LIBRARY_PATH
cannam@162 14402 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@162 14403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 14404 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 14405 if test "X$HPUX_IA64_MODE" = X32; then
cannam@162 14406 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
cannam@162 14407 else
cannam@162 14408 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
cannam@162 14409 fi
cannam@162 14410 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@162 14411 ;;
cannam@162 14412 hppa*64*)
cannam@162 14413 shrext_cmds='.sl'
cannam@162 14414 hardcode_into_libs=yes
cannam@162 14415 dynamic_linker="$host_os dld.sl"
cannam@162 14416 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
cannam@162 14417 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@162 14418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 14419 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 14420 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
cannam@162 14421 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@162 14422 ;;
cannam@162 14423 *)
cannam@162 14424 shrext_cmds='.sl'
cannam@162 14425 dynamic_linker="$host_os dld.sl"
cannam@162 14426 shlibpath_var=SHLIB_PATH
cannam@162 14427 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
cannam@162 14428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 14429 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 14430 ;;
cannam@162 14431 esac
cannam@162 14432 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cannam@162 14433 postinstall_cmds='chmod 555 $lib'
cannam@162 14434 # or fails outright, so override atomically:
cannam@162 14435 install_override_mode=555
cannam@162 14436 ;;
cannam@162 14437
cannam@162 14438 interix[3-9]*)
cannam@162 14439 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 14440 need_lib_prefix=no
cannam@162 14441 need_version=no
cannam@162 14442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@162 14443 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 14444 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
cannam@162 14445 shlibpath_var=LD_LIBRARY_PATH
cannam@162 14446 shlibpath_overrides_runpath=no
cannam@162 14447 hardcode_into_libs=yes
cannam@162 14448 ;;
cannam@162 14449
cannam@162 14450 irix5* | irix6* | nonstopux*)
cannam@162 14451 case $host_os in
cannam@162 14452 nonstopux*) version_type=nonstopux ;;
cannam@162 14453 *)
cannam@162 14454 if test "$lt_cv_prog_gnu_ld" = yes; then
cannam@162 14455 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 14456 else
cannam@162 14457 version_type=irix
cannam@162 14458 fi ;;
cannam@162 14459 esac
cannam@162 14460 need_lib_prefix=no
cannam@162 14461 need_version=no
cannam@162 14462 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 14463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@162 14464 case $host_os in
cannam@162 14465 irix5* | nonstopux*)
cannam@162 14466 libsuff= shlibsuff=
cannam@162 14467 ;;
cannam@162 14468 *)
cannam@162 14469 case $LD in # libtool.m4 will add one of these switches to LD
cannam@162 14470 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
cannam@162 14471 libsuff= shlibsuff= libmagic=32-bit;;
cannam@162 14472 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
cannam@162 14473 libsuff=32 shlibsuff=N32 libmagic=N32;;
cannam@162 14474 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
cannam@162 14475 libsuff=64 shlibsuff=64 libmagic=64-bit;;
cannam@162 14476 *) libsuff= shlibsuff= libmagic=never-match;;
cannam@162 14477 esac
cannam@162 14478 ;;
cannam@162 14479 esac
cannam@162 14480 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
cannam@162 14481 shlibpath_overrides_runpath=no
cannam@162 14482 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
cannam@162 14483 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
cannam@162 14484 hardcode_into_libs=yes
cannam@162 14485 ;;
cannam@162 14486
cannam@162 14487 # No shared lib support for Linux oldld, aout, or coff.
cannam@162 14488 linux*oldld* | linux*aout* | linux*coff*)
cannam@162 14489 dynamic_linker=no
cannam@162 14490 ;;
cannam@162 14491
cannam@162 14492 # This must be glibc/ELF.
cannam@162 14493 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cannam@162 14494 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 14495 need_lib_prefix=no
cannam@162 14496 need_version=no
cannam@162 14497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 14498 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 14499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
cannam@162 14500 shlibpath_var=LD_LIBRARY_PATH
cannam@162 14501 shlibpath_overrides_runpath=no
cannam@162 14502
cannam@162 14503 # Some binutils ld are patched to set DT_RUNPATH
cannam@162 14504 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cannam@162 14505 $as_echo_n "(cached) " >&6
cannam@162 14506 else
cannam@162 14507 lt_cv_shlibpath_overrides_runpath=no
cannam@162 14508 save_LDFLAGS=$LDFLAGS
cannam@162 14509 save_libdir=$libdir
cannam@162 14510 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
cannam@162 14511 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
cannam@162 14512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 14513 /* end confdefs.h. */
cannam@162 14514
cannam@162 14515 int
cannam@162 14516 main ()
cannam@162 14517 {
cannam@162 14518
cannam@162 14519 ;
cannam@162 14520 return 0;
cannam@162 14521 }
cannam@162 14522 _ACEOF
cannam@162 14523 if ac_fn_cxx_try_link "$LINENO"; then :
cannam@162 14524 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cannam@162 14525 lt_cv_shlibpath_overrides_runpath=yes
cannam@162 14526 fi
cannam@162 14527 fi
cannam@162 14528 rm -f core conftest.err conftest.$ac_objext \
cannam@162 14529 conftest$ac_exeext conftest.$ac_ext
cannam@162 14530 LDFLAGS=$save_LDFLAGS
cannam@162 14531 libdir=$save_libdir
cannam@162 14532
cannam@162 14533 fi
cannam@162 14534
cannam@162 14535 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cannam@162 14536
cannam@162 14537 # This implies no fast_install, which is unacceptable.
cannam@162 14538 # Some rework will be needed to allow for fast_install
cannam@162 14539 # before this can be enabled.
cannam@162 14540 hardcode_into_libs=yes
cannam@162 14541
cannam@162 14542 # Append ld.so.conf contents to the search path
cannam@162 14543 if test -f /etc/ld.so.conf; then
cannam@162 14544 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@162 14545 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
cannam@162 14546 fi
cannam@162 14547
cannam@162 14548 # We used to test for /lib/ld.so.1 and disable shared libraries on
cannam@162 14549 # powerpc, because MkLinux only supported shared libraries with the
cannam@162 14550 # GNU dynamic linker. Since this was broken with cross compilers,
cannam@162 14551 # most powerpc-linux boxes support dynamic linking these days and
cannam@162 14552 # people can always --disable-shared, the test was removed, and we
cannam@162 14553 # assume the GNU/Linux dynamic linker is in use.
cannam@162 14554 dynamic_linker='GNU/Linux ld.so'
cannam@162 14555 ;;
cannam@162 14556
cannam@162 14557 netbsdelf*-gnu)
cannam@162 14558 version_type=linux
cannam@162 14559 need_lib_prefix=no
cannam@162 14560 need_version=no
cannam@162 14561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@162 14562 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 14563 shlibpath_var=LD_LIBRARY_PATH
cannam@162 14564 shlibpath_overrides_runpath=no
cannam@162 14565 hardcode_into_libs=yes
cannam@162 14566 dynamic_linker='NetBSD ld.elf_so'
cannam@162 14567 ;;
cannam@162 14568
cannam@162 14569 netbsd*)
cannam@162 14570 version_type=sunos
cannam@162 14571 need_lib_prefix=no
cannam@162 14572 need_version=no
cannam@162 14573 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@162 14574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@162 14575 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@162 14576 dynamic_linker='NetBSD (a.out) ld.so'
cannam@162 14577 else
cannam@162 14578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@162 14579 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 14580 dynamic_linker='NetBSD ld.elf_so'
cannam@162 14581 fi
cannam@162 14582 shlibpath_var=LD_LIBRARY_PATH
cannam@162 14583 shlibpath_overrides_runpath=yes
cannam@162 14584 hardcode_into_libs=yes
cannam@162 14585 ;;
cannam@162 14586
cannam@162 14587 newsos6)
cannam@162 14588 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 14589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 14590 shlibpath_var=LD_LIBRARY_PATH
cannam@162 14591 shlibpath_overrides_runpath=yes
cannam@162 14592 ;;
cannam@162 14593
cannam@162 14594 *nto* | *qnx*)
cannam@162 14595 version_type=qnx
cannam@162 14596 need_lib_prefix=no
cannam@162 14597 need_version=no
cannam@162 14598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 14599 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 14600 shlibpath_var=LD_LIBRARY_PATH
cannam@162 14601 shlibpath_overrides_runpath=no
cannam@162 14602 hardcode_into_libs=yes
cannam@162 14603 dynamic_linker='ldqnx.so'
cannam@162 14604 ;;
cannam@162 14605
cannam@162 14606 openbsd*)
cannam@162 14607 version_type=sunos
cannam@162 14608 sys_lib_dlsearch_path_spec="/usr/lib"
cannam@162 14609 need_lib_prefix=no
cannam@162 14610 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
cannam@162 14611 case $host_os in
cannam@162 14612 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
cannam@162 14613 *) need_version=no ;;
cannam@162 14614 esac
cannam@162 14615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@162 14616 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@162 14617 shlibpath_var=LD_LIBRARY_PATH
cannam@162 14618 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@162 14619 case $host_os in
cannam@162 14620 openbsd2.[89] | openbsd2.[89].*)
cannam@162 14621 shlibpath_overrides_runpath=no
cannam@162 14622 ;;
cannam@162 14623 *)
cannam@162 14624 shlibpath_overrides_runpath=yes
cannam@162 14625 ;;
cannam@162 14626 esac
cannam@162 14627 else
cannam@162 14628 shlibpath_overrides_runpath=yes
cannam@162 14629 fi
cannam@162 14630 ;;
cannam@162 14631
cannam@162 14632 os2*)
cannam@162 14633 libname_spec='$name'
cannam@162 14634 shrext_cmds=".dll"
cannam@162 14635 need_lib_prefix=no
cannam@162 14636 library_names_spec='$libname${shared_ext} $libname.a'
cannam@162 14637 dynamic_linker='OS/2 ld.exe'
cannam@162 14638 shlibpath_var=LIBPATH
cannam@162 14639 ;;
cannam@162 14640
cannam@162 14641 osf3* | osf4* | osf5*)
cannam@162 14642 version_type=osf
cannam@162 14643 need_lib_prefix=no
cannam@162 14644 need_version=no
cannam@162 14645 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 14646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 14647 shlibpath_var=LD_LIBRARY_PATH
cannam@162 14648 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
cannam@162 14649 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
cannam@162 14650 ;;
cannam@162 14651
cannam@162 14652 rdos*)
cannam@162 14653 dynamic_linker=no
cannam@162 14654 ;;
cannam@162 14655
cannam@162 14656 solaris*)
cannam@162 14657 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 14658 need_lib_prefix=no
cannam@162 14659 need_version=no
cannam@162 14660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 14661 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 14662 shlibpath_var=LD_LIBRARY_PATH
cannam@162 14663 shlibpath_overrides_runpath=yes
cannam@162 14664 hardcode_into_libs=yes
cannam@162 14665 # ldd complains unless libraries are executable
cannam@162 14666 postinstall_cmds='chmod +x $lib'
cannam@162 14667 ;;
cannam@162 14668
cannam@162 14669 sunos4*)
cannam@162 14670 version_type=sunos
cannam@162 14671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@162 14672 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
cannam@162 14673 shlibpath_var=LD_LIBRARY_PATH
cannam@162 14674 shlibpath_overrides_runpath=yes
cannam@162 14675 if test "$with_gnu_ld" = yes; then
cannam@162 14676 need_lib_prefix=no
cannam@162 14677 fi
cannam@162 14678 need_version=yes
cannam@162 14679 ;;
cannam@162 14680
cannam@162 14681 sysv4 | sysv4.3*)
cannam@162 14682 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 14683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 14684 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 14685 shlibpath_var=LD_LIBRARY_PATH
cannam@162 14686 case $host_vendor in
cannam@162 14687 sni)
cannam@162 14688 shlibpath_overrides_runpath=no
cannam@162 14689 need_lib_prefix=no
cannam@162 14690 runpath_var=LD_RUN_PATH
cannam@162 14691 ;;
cannam@162 14692 siemens)
cannam@162 14693 need_lib_prefix=no
cannam@162 14694 ;;
cannam@162 14695 motorola)
cannam@162 14696 need_lib_prefix=no
cannam@162 14697 need_version=no
cannam@162 14698 shlibpath_overrides_runpath=no
cannam@162 14699 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
cannam@162 14700 ;;
cannam@162 14701 esac
cannam@162 14702 ;;
cannam@162 14703
cannam@162 14704 sysv4*MP*)
cannam@162 14705 if test -d /usr/nec ;then
cannam@162 14706 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 14707 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
cannam@162 14708 soname_spec='$libname${shared_ext}.$major'
cannam@162 14709 shlibpath_var=LD_LIBRARY_PATH
cannam@162 14710 fi
cannam@162 14711 ;;
cannam@162 14712
cannam@162 14713 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
cannam@162 14714 version_type=freebsd-elf
cannam@162 14715 need_lib_prefix=no
cannam@162 14716 need_version=no
cannam@162 14717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@162 14718 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 14719 shlibpath_var=LD_LIBRARY_PATH
cannam@162 14720 shlibpath_overrides_runpath=yes
cannam@162 14721 hardcode_into_libs=yes
cannam@162 14722 if test "$with_gnu_ld" = yes; then
cannam@162 14723 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
cannam@162 14724 else
cannam@162 14725 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
cannam@162 14726 case $host_os in
cannam@162 14727 sco3.2v5*)
cannam@162 14728 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
cannam@162 14729 ;;
cannam@162 14730 esac
cannam@162 14731 fi
cannam@162 14732 sys_lib_dlsearch_path_spec='/usr/lib'
cannam@162 14733 ;;
cannam@162 14734
cannam@162 14735 tpf*)
cannam@162 14736 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cannam@162 14737 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 14738 need_lib_prefix=no
cannam@162 14739 need_version=no
cannam@162 14740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 14741 shlibpath_var=LD_LIBRARY_PATH
cannam@162 14742 shlibpath_overrides_runpath=no
cannam@162 14743 hardcode_into_libs=yes
cannam@162 14744 ;;
cannam@162 14745
cannam@162 14746 uts4*)
cannam@162 14747 version_type=linux # correct to gnu/linux during the next big refactor
cannam@162 14748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@162 14749 soname_spec='${libname}${release}${shared_ext}$major'
cannam@162 14750 shlibpath_var=LD_LIBRARY_PATH
cannam@162 14751 ;;
cannam@162 14752
cannam@162 14753 *)
cannam@162 14754 dynamic_linker=no
cannam@162 14755 ;;
cannam@162 14756 esac
cannam@162 14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cannam@162 14758 $as_echo "$dynamic_linker" >&6; }
cannam@162 14759 test "$dynamic_linker" = no && can_build_shared=no
cannam@162 14760
cannam@162 14761 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
cannam@162 14762 if test "$GCC" = yes; then
cannam@162 14763 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
cannam@162 14764 fi
cannam@162 14765
cannam@162 14766 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
cannam@162 14767 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
cannam@162 14768 fi
cannam@162 14769 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
cannam@162 14770 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
cannam@162 14771 fi
cannam@162 14772
cannam@162 14773
cannam@162 14774
cannam@162 14775
cannam@162 14776
cannam@162 14777
cannam@162 14778
cannam@162 14779
cannam@162 14780
cannam@162 14781
cannam@162 14782
cannam@162 14783
cannam@162 14784
cannam@162 14785
cannam@162 14786
cannam@162 14787
cannam@162 14788
cannam@162 14789
cannam@162 14790
cannam@162 14791
cannam@162 14792
cannam@162 14793
cannam@162 14794
cannam@162 14795
cannam@162 14796
cannam@162 14797
cannam@162 14798
cannam@162 14799
cannam@162 14800
cannam@162 14801
cannam@162 14802
cannam@162 14803
cannam@162 14804
cannam@162 14805
cannam@162 14806
cannam@162 14807
cannam@162 14808
cannam@162 14809
cannam@162 14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cannam@162 14811 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
cannam@162 14812 hardcode_action_CXX=
cannam@162 14813 if test -n "$hardcode_libdir_flag_spec_CXX" ||
cannam@162 14814 test -n "$runpath_var_CXX" ||
cannam@162 14815 test "X$hardcode_automatic_CXX" = "Xyes" ; then
cannam@162 14816
cannam@162 14817 # We can hardcode non-existent directories.
cannam@162 14818 if test "$hardcode_direct_CXX" != no &&
cannam@162 14819 # If the only mechanism to avoid hardcoding is shlibpath_var, we
cannam@162 14820 # have to relink, otherwise we might link with an installed library
cannam@162 14821 # when we should be linking with a yet-to-be-installed one
cannam@162 14822 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
cannam@162 14823 test "$hardcode_minus_L_CXX" != no; then
cannam@162 14824 # Linking always hardcodes the temporary library directory.
cannam@162 14825 hardcode_action_CXX=relink
cannam@162 14826 else
cannam@162 14827 # We can link without hardcoding, and we can hardcode nonexisting dirs.
cannam@162 14828 hardcode_action_CXX=immediate
cannam@162 14829 fi
cannam@162 14830 else
cannam@162 14831 # We cannot hardcode anything, or else we can only hardcode existing
cannam@162 14832 # directories.
cannam@162 14833 hardcode_action_CXX=unsupported
cannam@162 14834 fi
cannam@162 14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cannam@162 14836 $as_echo "$hardcode_action_CXX" >&6; }
cannam@162 14837
cannam@162 14838 if test "$hardcode_action_CXX" = relink ||
cannam@162 14839 test "$inherit_rpath_CXX" = yes; then
cannam@162 14840 # Fast installation is not supported
cannam@162 14841 enable_fast_install=no
cannam@162 14842 elif test "$shlibpath_overrides_runpath" = yes ||
cannam@162 14843 test "$enable_shared" = no; then
cannam@162 14844 # Fast installation is not necessary
cannam@162 14845 enable_fast_install=needless
cannam@162 14846 fi
cannam@162 14847
cannam@162 14848
cannam@162 14849
cannam@162 14850
cannam@162 14851
cannam@162 14852
cannam@162 14853
cannam@162 14854 fi # test -n "$compiler"
cannam@162 14855
cannam@162 14856 CC=$lt_save_CC
cannam@162 14857 CFLAGS=$lt_save_CFLAGS
cannam@162 14858 LDCXX=$LD
cannam@162 14859 LD=$lt_save_LD
cannam@162 14860 GCC=$lt_save_GCC
cannam@162 14861 with_gnu_ld=$lt_save_with_gnu_ld
cannam@162 14862 lt_cv_path_LDCXX=$lt_cv_path_LD
cannam@162 14863 lt_cv_path_LD=$lt_save_path_LD
cannam@162 14864 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
cannam@162 14865 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
cannam@162 14866 fi # test "$_lt_caught_CXX_error" != yes
cannam@162 14867
cannam@162 14868 ac_ext=c
cannam@162 14869 ac_cpp='$CPP $CPPFLAGS'
cannam@162 14870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@162 14871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@162 14872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@162 14873
cannam@162 14874
cannam@162 14875
cannam@162 14876
cannam@162 14877
cannam@162 14878
cannam@162 14879
cannam@162 14880
cannam@162 14881
cannam@162 14882
cannam@162 14883
cannam@162 14884
cannam@162 14885
cannam@162 14886
cannam@162 14887
cannam@162 14888 ac_config_commands="$ac_config_commands libtool"
cannam@162 14889
cannam@162 14890
cannam@162 14891
cannam@162 14892
cannam@162 14893 # Only expand once:
cannam@162 14894
cannam@162 14895
cannam@162 14896 # Find a good install program. We prefer a C program (faster),
cannam@162 14897 # so one script is as good as another. But avoid the broken or
cannam@162 14898 # incompatible versions:
cannam@162 14899 # SysV /etc/install, /usr/sbin/install
cannam@162 14900 # SunOS /usr/etc/install
cannam@162 14901 # IRIX /sbin/install
cannam@162 14902 # AIX /bin/install
cannam@162 14903 # AmigaOS /C/install, which installs bootblocks on floppy discs
cannam@162 14904 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
cannam@162 14905 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
cannam@162 14906 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
cannam@162 14907 # OS/2's system install, which has a completely different semantic
cannam@162 14908 # ./install, which can be erroneously created by make from ./install.sh.
cannam@162 14909 # Reject install programs that cannot install multiple files.
cannam@162 14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cannam@162 14911 $as_echo_n "checking for a BSD-compatible install... " >&6; }
cannam@162 14912 if test -z "$INSTALL"; then
cannam@162 14913 if ${ac_cv_path_install+:} false; then :
cannam@162 14914 $as_echo_n "(cached) " >&6
cannam@162 14915 else
cannam@162 14916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 14917 for as_dir in $PATH
cannam@162 14918 do
cannam@162 14919 IFS=$as_save_IFS
cannam@162 14920 test -z "$as_dir" && as_dir=.
cannam@162 14921 # Account for people who put trailing slashes in PATH elements.
cannam@162 14922 case $as_dir/ in #((
cannam@162 14923 ./ | .// | /[cC]/* | \
cannam@162 14924 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cannam@162 14925 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cannam@162 14926 /usr/ucb/* ) ;;
cannam@162 14927 *)
cannam@162 14928 # OSF1 and SCO ODT 3.0 have their own names for install.
cannam@162 14929 # Don't use installbsd from OSF since it installs stuff as root
cannam@162 14930 # by default.
cannam@162 14931 for ac_prog in ginstall scoinst install; do
cannam@162 14932 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 14933 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cannam@162 14934 if test $ac_prog = install &&
cannam@162 14935 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
cannam@162 14936 # AIX install. It has an incompatible calling convention.
cannam@162 14937 :
cannam@162 14938 elif test $ac_prog = install &&
cannam@162 14939 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
cannam@162 14940 # program-specific install script used by HP pwplus--don't use.
cannam@162 14941 :
cannam@162 14942 else
cannam@162 14943 rm -rf conftest.one conftest.two conftest.dir
cannam@162 14944 echo one > conftest.one
cannam@162 14945 echo two > conftest.two
cannam@162 14946 mkdir conftest.dir
cannam@162 14947 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
cannam@162 14948 test -s conftest.one && test -s conftest.two &&
cannam@162 14949 test -s conftest.dir/conftest.one &&
cannam@162 14950 test -s conftest.dir/conftest.two
cannam@162 14951 then
cannam@162 14952 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
cannam@162 14953 break 3
cannam@162 14954 fi
cannam@162 14955 fi
cannam@162 14956 fi
cannam@162 14957 done
cannam@162 14958 done
cannam@162 14959 ;;
cannam@162 14960 esac
cannam@162 14961
cannam@162 14962 done
cannam@162 14963 IFS=$as_save_IFS
cannam@162 14964
cannam@162 14965 rm -rf conftest.one conftest.two conftest.dir
cannam@162 14966
cannam@162 14967 fi
cannam@162 14968 if test "${ac_cv_path_install+set}" = set; then
cannam@162 14969 INSTALL=$ac_cv_path_install
cannam@162 14970 else
cannam@162 14971 # As a last resort, use the slow shell script. Don't cache a
cannam@162 14972 # value for INSTALL within a source directory, because that will
cannam@162 14973 # break other packages using the cache if that directory is
cannam@162 14974 # removed, or if the value is a relative name.
cannam@162 14975 INSTALL=$ac_install_sh
cannam@162 14976 fi
cannam@162 14977 fi
cannam@162 14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cannam@162 14979 $as_echo "$INSTALL" >&6; }
cannam@162 14980
cannam@162 14981 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
cannam@162 14982 # It thinks the first close brace ends the variable substitution.
cannam@162 14983 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
cannam@162 14984
cannam@162 14985 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
cannam@162 14986
cannam@162 14987 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
cannam@162 14988
cannam@162 14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cannam@162 14990 $as_echo_n "checking whether ln -s works... " >&6; }
cannam@162 14991 LN_S=$as_ln_s
cannam@162 14992 if test "$LN_S" = "ln -s"; then
cannam@162 14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@162 14994 $as_echo "yes" >&6; }
cannam@162 14995 else
cannam@162 14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cannam@162 14997 $as_echo "no, using $LN_S" >&6; }
cannam@162 14998 fi
cannam@162 14999
cannam@162 15000 # Extract the first word of "ar", so it can be a program name with args.
cannam@162 15001 set dummy ar; ac_word=$2
cannam@162 15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 15003 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 15004 if ${ac_cv_path_AR+:} false; then :
cannam@162 15005 $as_echo_n "(cached) " >&6
cannam@162 15006 else
cannam@162 15007 case $AR in
cannam@162 15008 [\\/]* | ?:[\\/]*)
cannam@162 15009 ac_cv_path_AR="$AR" # Let the user override the test with a path.
cannam@162 15010 ;;
cannam@162 15011 *)
cannam@162 15012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 15013 for as_dir in $PATH
cannam@162 15014 do
cannam@162 15015 IFS=$as_save_IFS
cannam@162 15016 test -z "$as_dir" && as_dir=.
cannam@162 15017 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 15018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 15019 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
cannam@162 15020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 15021 break 2
cannam@162 15022 fi
cannam@162 15023 done
cannam@162 15024 done
cannam@162 15025 IFS=$as_save_IFS
cannam@162 15026
cannam@162 15027 test -z "$ac_cv_path_AR" && ac_cv_path_AR="no"
cannam@162 15028 ;;
cannam@162 15029 esac
cannam@162 15030 fi
cannam@162 15031 AR=$ac_cv_path_AR
cannam@162 15032 if test -n "$AR"; then
cannam@162 15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cannam@162 15034 $as_echo "$AR" >&6; }
cannam@162 15035 else
cannam@162 15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 15037 $as_echo "no" >&6; }
cannam@162 15038 fi
cannam@162 15039
cannam@162 15040
cannam@162 15041 if [ $AR = "no" ] ; then
cannam@162 15042 as_fn_error $? "\"Could not find ar - needed to create a library\"" "$LINENO" 5
cannam@162 15043 fi
cannam@162 15044
cannam@162 15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cannam@162 15046 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cannam@162 15047 if ${ac_cv_c_bigendian+:} false; then :
cannam@162 15048 $as_echo_n "(cached) " >&6
cannam@162 15049 else
cannam@162 15050 ac_cv_c_bigendian=unknown
cannam@162 15051 # See if we're dealing with a universal compiler.
cannam@162 15052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 15053 /* end confdefs.h. */
cannam@162 15054 #ifndef __APPLE_CC__
cannam@162 15055 not a universal capable compiler
cannam@162 15056 #endif
cannam@162 15057 typedef int dummy;
cannam@162 15058
cannam@162 15059 _ACEOF
cannam@162 15060 if ac_fn_c_try_compile "$LINENO"; then :
cannam@162 15061
cannam@162 15062 # Check for potential -arch flags. It is not universal unless
cannam@162 15063 # there are at least two -arch flags with different values.
cannam@162 15064 ac_arch=
cannam@162 15065 ac_prev=
cannam@162 15066 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
cannam@162 15067 if test -n "$ac_prev"; then
cannam@162 15068 case $ac_word in
cannam@162 15069 i?86 | x86_64 | ppc | ppc64)
cannam@162 15070 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
cannam@162 15071 ac_arch=$ac_word
cannam@162 15072 else
cannam@162 15073 ac_cv_c_bigendian=universal
cannam@162 15074 break
cannam@162 15075 fi
cannam@162 15076 ;;
cannam@162 15077 esac
cannam@162 15078 ac_prev=
cannam@162 15079 elif test "x$ac_word" = "x-arch"; then
cannam@162 15080 ac_prev=arch
cannam@162 15081 fi
cannam@162 15082 done
cannam@162 15083 fi
cannam@162 15084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@162 15085 if test $ac_cv_c_bigendian = unknown; then
cannam@162 15086 # See if sys/param.h defines the BYTE_ORDER macro.
cannam@162 15087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 15088 /* end confdefs.h. */
cannam@162 15089 #include <sys/types.h>
cannam@162 15090 #include <sys/param.h>
cannam@162 15091
cannam@162 15092 int
cannam@162 15093 main ()
cannam@162 15094 {
cannam@162 15095 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
cannam@162 15096 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
cannam@162 15097 && LITTLE_ENDIAN)
cannam@162 15098 bogus endian macros
cannam@162 15099 #endif
cannam@162 15100
cannam@162 15101 ;
cannam@162 15102 return 0;
cannam@162 15103 }
cannam@162 15104 _ACEOF
cannam@162 15105 if ac_fn_c_try_compile "$LINENO"; then :
cannam@162 15106 # It does; now see whether it defined to BIG_ENDIAN or not.
cannam@162 15107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 15108 /* end confdefs.h. */
cannam@162 15109 #include <sys/types.h>
cannam@162 15110 #include <sys/param.h>
cannam@162 15111
cannam@162 15112 int
cannam@162 15113 main ()
cannam@162 15114 {
cannam@162 15115 #if BYTE_ORDER != BIG_ENDIAN
cannam@162 15116 not big endian
cannam@162 15117 #endif
cannam@162 15118
cannam@162 15119 ;
cannam@162 15120 return 0;
cannam@162 15121 }
cannam@162 15122 _ACEOF
cannam@162 15123 if ac_fn_c_try_compile "$LINENO"; then :
cannam@162 15124 ac_cv_c_bigendian=yes
cannam@162 15125 else
cannam@162 15126 ac_cv_c_bigendian=no
cannam@162 15127 fi
cannam@162 15128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@162 15129 fi
cannam@162 15130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@162 15131 fi
cannam@162 15132 if test $ac_cv_c_bigendian = unknown; then
cannam@162 15133 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cannam@162 15134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 15135 /* end confdefs.h. */
cannam@162 15136 #include <limits.h>
cannam@162 15137
cannam@162 15138 int
cannam@162 15139 main ()
cannam@162 15140 {
cannam@162 15141 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
cannam@162 15142 bogus endian macros
cannam@162 15143 #endif
cannam@162 15144
cannam@162 15145 ;
cannam@162 15146 return 0;
cannam@162 15147 }
cannam@162 15148 _ACEOF
cannam@162 15149 if ac_fn_c_try_compile "$LINENO"; then :
cannam@162 15150 # It does; now see whether it defined to _BIG_ENDIAN or not.
cannam@162 15151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 15152 /* end confdefs.h. */
cannam@162 15153 #include <limits.h>
cannam@162 15154
cannam@162 15155 int
cannam@162 15156 main ()
cannam@162 15157 {
cannam@162 15158 #ifndef _BIG_ENDIAN
cannam@162 15159 not big endian
cannam@162 15160 #endif
cannam@162 15161
cannam@162 15162 ;
cannam@162 15163 return 0;
cannam@162 15164 }
cannam@162 15165 _ACEOF
cannam@162 15166 if ac_fn_c_try_compile "$LINENO"; then :
cannam@162 15167 ac_cv_c_bigendian=yes
cannam@162 15168 else
cannam@162 15169 ac_cv_c_bigendian=no
cannam@162 15170 fi
cannam@162 15171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@162 15172 fi
cannam@162 15173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@162 15174 fi
cannam@162 15175 if test $ac_cv_c_bigendian = unknown; then
cannam@162 15176 # Compile a test program.
cannam@162 15177 if test "$cross_compiling" = yes; then :
cannam@162 15178 # Try to guess by grepping values from an object file.
cannam@162 15179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 15180 /* end confdefs.h. */
cannam@162 15181 short int ascii_mm[] =
cannam@162 15182 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
cannam@162 15183 short int ascii_ii[] =
cannam@162 15184 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
cannam@162 15185 int use_ascii (int i) {
cannam@162 15186 return ascii_mm[i] + ascii_ii[i];
cannam@162 15187 }
cannam@162 15188 short int ebcdic_ii[] =
cannam@162 15189 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
cannam@162 15190 short int ebcdic_mm[] =
cannam@162 15191 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
cannam@162 15192 int use_ebcdic (int i) {
cannam@162 15193 return ebcdic_mm[i] + ebcdic_ii[i];
cannam@162 15194 }
cannam@162 15195 extern int foo;
cannam@162 15196
cannam@162 15197 int
cannam@162 15198 main ()
cannam@162 15199 {
cannam@162 15200 return use_ascii (foo) == use_ebcdic (foo);
cannam@162 15201 ;
cannam@162 15202 return 0;
cannam@162 15203 }
cannam@162 15204 _ACEOF
cannam@162 15205 if ac_fn_c_try_compile "$LINENO"; then :
cannam@162 15206 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
cannam@162 15207 ac_cv_c_bigendian=yes
cannam@162 15208 fi
cannam@162 15209 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
cannam@162 15210 if test "$ac_cv_c_bigendian" = unknown; then
cannam@162 15211 ac_cv_c_bigendian=no
cannam@162 15212 else
cannam@162 15213 # finding both strings is unlikely to happen, but who knows?
cannam@162 15214 ac_cv_c_bigendian=unknown
cannam@162 15215 fi
cannam@162 15216 fi
cannam@162 15217 fi
cannam@162 15218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@162 15219 else
cannam@162 15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 15221 /* end confdefs.h. */
cannam@162 15222 $ac_includes_default
cannam@162 15223 int
cannam@162 15224 main ()
cannam@162 15225 {
cannam@162 15226
cannam@162 15227 /* Are we little or big endian? From Harbison&Steele. */
cannam@162 15228 union
cannam@162 15229 {
cannam@162 15230 long int l;
cannam@162 15231 char c[sizeof (long int)];
cannam@162 15232 } u;
cannam@162 15233 u.l = 1;
cannam@162 15234 return u.c[sizeof (long int) - 1] == 1;
cannam@162 15235
cannam@162 15236 ;
cannam@162 15237 return 0;
cannam@162 15238 }
cannam@162 15239 _ACEOF
cannam@162 15240 if ac_fn_c_try_run "$LINENO"; then :
cannam@162 15241 ac_cv_c_bigendian=no
cannam@162 15242 else
cannam@162 15243 ac_cv_c_bigendian=yes
cannam@162 15244 fi
cannam@162 15245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@162 15246 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@162 15247 fi
cannam@162 15248
cannam@162 15249 fi
cannam@162 15250 fi
cannam@162 15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cannam@162 15252 $as_echo "$ac_cv_c_bigendian" >&6; }
cannam@162 15253 case $ac_cv_c_bigendian in #(
cannam@162 15254 yes)
cannam@162 15255 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cannam@162 15256 ;; #(
cannam@162 15257 no)
cannam@162 15258 ;; #(
cannam@162 15259 universal)
cannam@162 15260
cannam@162 15261 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cannam@162 15262
cannam@162 15263 ;; #(
cannam@162 15264 *)
cannam@162 15265 as_fn_error $? "unknown endianness
cannam@162 15266 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cannam@162 15267 esac
cannam@162 15268
cannam@162 15269
cannam@162 15270
cannam@162 15271 have_alsa=no
cannam@162 15272 if test "x$with_alsa" != "xno"; then
cannam@162 15273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
cannam@162 15274 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
cannam@162 15275 if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
cannam@162 15276 $as_echo_n "(cached) " >&6
cannam@162 15277 else
cannam@162 15278 ac_check_lib_save_LIBS=$LIBS
cannam@162 15279 LIBS="-lasound $LIBS"
cannam@162 15280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 15281 /* end confdefs.h. */
cannam@162 15282
cannam@162 15283 /* Override any GCC internal prototype to avoid an error.
cannam@162 15284 Use char because int might match the return type of a GCC
cannam@162 15285 builtin and then its argument prototype would still apply. */
cannam@162 15286 #ifdef __cplusplus
cannam@162 15287 extern "C"
cannam@162 15288 #endif
cannam@162 15289 char snd_pcm_open ();
cannam@162 15290 int
cannam@162 15291 main ()
cannam@162 15292 {
cannam@162 15293 return snd_pcm_open ();
cannam@162 15294 ;
cannam@162 15295 return 0;
cannam@162 15296 }
cannam@162 15297 _ACEOF
cannam@162 15298 if ac_fn_c_try_link "$LINENO"; then :
cannam@162 15299 ac_cv_lib_asound_snd_pcm_open=yes
cannam@162 15300 else
cannam@162 15301 ac_cv_lib_asound_snd_pcm_open=no
cannam@162 15302 fi
cannam@162 15303 rm -f core conftest.err conftest.$ac_objext \
cannam@162 15304 conftest$ac_exeext conftest.$ac_ext
cannam@162 15305 LIBS=$ac_check_lib_save_LIBS
cannam@162 15306 fi
cannam@162 15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
cannam@162 15308 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
cannam@162 15309 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
cannam@162 15310 have_alsa=yes
cannam@162 15311 else
cannam@162 15312 have_alsa=no
cannam@162 15313 fi
cannam@162 15314
cannam@162 15315 fi
cannam@162 15316 have_asihpi=no
cannam@162 15317 if test "x$with_asihpi" != "xno"; then
cannam@162 15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPI_SubSysCreate in -lhpi" >&5
cannam@162 15319 $as_echo_n "checking for HPI_SubSysCreate in -lhpi... " >&6; }
cannam@162 15320 if ${ac_cv_lib_hpi_HPI_SubSysCreate+:} false; then :
cannam@162 15321 $as_echo_n "(cached) " >&6
cannam@162 15322 else
cannam@162 15323 ac_check_lib_save_LIBS=$LIBS
cannam@162 15324 LIBS="-lhpi -lm $LIBS"
cannam@162 15325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 15326 /* end confdefs.h. */
cannam@162 15327
cannam@162 15328 /* Override any GCC internal prototype to avoid an error.
cannam@162 15329 Use char because int might match the return type of a GCC
cannam@162 15330 builtin and then its argument prototype would still apply. */
cannam@162 15331 #ifdef __cplusplus
cannam@162 15332 extern "C"
cannam@162 15333 #endif
cannam@162 15334 char HPI_SubSysCreate ();
cannam@162 15335 int
cannam@162 15336 main ()
cannam@162 15337 {
cannam@162 15338 return HPI_SubSysCreate ();
cannam@162 15339 ;
cannam@162 15340 return 0;
cannam@162 15341 }
cannam@162 15342 _ACEOF
cannam@162 15343 if ac_fn_c_try_link "$LINENO"; then :
cannam@162 15344 ac_cv_lib_hpi_HPI_SubSysCreate=yes
cannam@162 15345 else
cannam@162 15346 ac_cv_lib_hpi_HPI_SubSysCreate=no
cannam@162 15347 fi
cannam@162 15348 rm -f core conftest.err conftest.$ac_objext \
cannam@162 15349 conftest$ac_exeext conftest.$ac_ext
cannam@162 15350 LIBS=$ac_check_lib_save_LIBS
cannam@162 15351 fi
cannam@162 15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hpi_HPI_SubSysCreate" >&5
cannam@162 15353 $as_echo "$ac_cv_lib_hpi_HPI_SubSysCreate" >&6; }
cannam@162 15354 if test "x$ac_cv_lib_hpi_HPI_SubSysCreate" = xyes; then :
cannam@162 15355 have_asihpi=yes
cannam@162 15356 else
cannam@162 15357 have_asihpi=no
cannam@162 15358 fi
cannam@162 15359
cannam@162 15360 fi
cannam@162 15361 have_libossaudio=no
cannam@162 15362 have_oss=no
cannam@162 15363 if test "x$with_oss" != "xno"; then
cannam@162 15364 for ac_header in sys/soundcard.h linux/soundcard.h machine/soundcard.h
cannam@162 15365 do :
cannam@162 15366 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cannam@162 15367 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cannam@162 15368 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cannam@162 15369 cat >>confdefs.h <<_ACEOF
cannam@162 15370 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
cannam@162 15371 _ACEOF
cannam@162 15372 have_oss=yes
cannam@162 15373 fi
cannam@162 15374
cannam@162 15375 done
cannam@162 15376
cannam@162 15377 if test "x$have_oss" = "xyes"; then
cannam@162 15378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
cannam@162 15379 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
cannam@162 15380 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
cannam@162 15381 $as_echo_n "(cached) " >&6
cannam@162 15382 else
cannam@162 15383 ac_check_lib_save_LIBS=$LIBS
cannam@162 15384 LIBS="-lossaudio $LIBS"
cannam@162 15385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 15386 /* end confdefs.h. */
cannam@162 15387
cannam@162 15388 /* Override any GCC internal prototype to avoid an error.
cannam@162 15389 Use char because int might match the return type of a GCC
cannam@162 15390 builtin and then its argument prototype would still apply. */
cannam@162 15391 #ifdef __cplusplus
cannam@162 15392 extern "C"
cannam@162 15393 #endif
cannam@162 15394 char _oss_ioctl ();
cannam@162 15395 int
cannam@162 15396 main ()
cannam@162 15397 {
cannam@162 15398 return _oss_ioctl ();
cannam@162 15399 ;
cannam@162 15400 return 0;
cannam@162 15401 }
cannam@162 15402 _ACEOF
cannam@162 15403 if ac_fn_c_try_link "$LINENO"; then :
cannam@162 15404 ac_cv_lib_ossaudio__oss_ioctl=yes
cannam@162 15405 else
cannam@162 15406 ac_cv_lib_ossaudio__oss_ioctl=no
cannam@162 15407 fi
cannam@162 15408 rm -f core conftest.err conftest.$ac_objext \
cannam@162 15409 conftest$ac_exeext conftest.$ac_ext
cannam@162 15410 LIBS=$ac_check_lib_save_LIBS
cannam@162 15411 fi
cannam@162 15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
cannam@162 15413 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
cannam@162 15414 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
cannam@162 15415 have_libossaudio=yes
cannam@162 15416 else
cannam@162 15417 have_libossaudio=no
cannam@162 15418 fi
cannam@162 15419
cannam@162 15420 fi
cannam@162 15421 fi
cannam@162 15422 have_jack=no
cannam@162 15423 if test "x$with_jack" != "xno"; then
cannam@162 15424
cannam@162 15425
cannam@162 15426
cannam@162 15427
cannam@162 15428
cannam@162 15429
cannam@162 15430
cannam@162 15431 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
cannam@162 15432 if test -n "$ac_tool_prefix"; then
cannam@162 15433 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
cannam@162 15434 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cannam@162 15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 15436 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 15437 if ${ac_cv_path_PKG_CONFIG+:} false; then :
cannam@162 15438 $as_echo_n "(cached) " >&6
cannam@162 15439 else
cannam@162 15440 case $PKG_CONFIG in
cannam@162 15441 [\\/]* | ?:[\\/]*)
cannam@162 15442 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
cannam@162 15443 ;;
cannam@162 15444 *)
cannam@162 15445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 15446 for as_dir in $PATH
cannam@162 15447 do
cannam@162 15448 IFS=$as_save_IFS
cannam@162 15449 test -z "$as_dir" && as_dir=.
cannam@162 15450 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 15451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 15452 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cannam@162 15453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 15454 break 2
cannam@162 15455 fi
cannam@162 15456 done
cannam@162 15457 done
cannam@162 15458 IFS=$as_save_IFS
cannam@162 15459
cannam@162 15460 ;;
cannam@162 15461 esac
cannam@162 15462 fi
cannam@162 15463 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
cannam@162 15464 if test -n "$PKG_CONFIG"; then
cannam@162 15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cannam@162 15466 $as_echo "$PKG_CONFIG" >&6; }
cannam@162 15467 else
cannam@162 15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 15469 $as_echo "no" >&6; }
cannam@162 15470 fi
cannam@162 15471
cannam@162 15472
cannam@162 15473 fi
cannam@162 15474 if test -z "$ac_cv_path_PKG_CONFIG"; then
cannam@162 15475 ac_pt_PKG_CONFIG=$PKG_CONFIG
cannam@162 15476 # Extract the first word of "pkg-config", so it can be a program name with args.
cannam@162 15477 set dummy pkg-config; ac_word=$2
cannam@162 15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@162 15479 $as_echo_n "checking for $ac_word... " >&6; }
cannam@162 15480 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cannam@162 15481 $as_echo_n "(cached) " >&6
cannam@162 15482 else
cannam@162 15483 case $ac_pt_PKG_CONFIG in
cannam@162 15484 [\\/]* | ?:[\\/]*)
cannam@162 15485 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
cannam@162 15486 ;;
cannam@162 15487 *)
cannam@162 15488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 15489 for as_dir in $PATH
cannam@162 15490 do
cannam@162 15491 IFS=$as_save_IFS
cannam@162 15492 test -z "$as_dir" && as_dir=.
cannam@162 15493 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@162 15494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@162 15495 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cannam@162 15496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@162 15497 break 2
cannam@162 15498 fi
cannam@162 15499 done
cannam@162 15500 done
cannam@162 15501 IFS=$as_save_IFS
cannam@162 15502
cannam@162 15503 ;;
cannam@162 15504 esac
cannam@162 15505 fi
cannam@162 15506 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
cannam@162 15507 if test -n "$ac_pt_PKG_CONFIG"; then
cannam@162 15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cannam@162 15509 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
cannam@162 15510 else
cannam@162 15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 15512 $as_echo "no" >&6; }
cannam@162 15513 fi
cannam@162 15514
cannam@162 15515 if test "x$ac_pt_PKG_CONFIG" = x; then
cannam@162 15516 PKG_CONFIG=""
cannam@162 15517 else
cannam@162 15518 case $cross_compiling:$ac_tool_warned in
cannam@162 15519 yes:)
cannam@162 15520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@162 15521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@162 15522 ac_tool_warned=yes ;;
cannam@162 15523 esac
cannam@162 15524 PKG_CONFIG=$ac_pt_PKG_CONFIG
cannam@162 15525 fi
cannam@162 15526 else
cannam@162 15527 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
cannam@162 15528 fi
cannam@162 15529
cannam@162 15530 fi
cannam@162 15531 if test -n "$PKG_CONFIG"; then
cannam@162 15532 _pkg_min_version=0.9.0
cannam@162 15533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cannam@162 15534 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
cannam@162 15535 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cannam@162 15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@162 15537 $as_echo "yes" >&6; }
cannam@162 15538 else
cannam@162 15539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 15540 $as_echo "no" >&6; }
cannam@162 15541 PKG_CONFIG=""
cannam@162 15542 fi
cannam@162 15543 fi
cannam@162 15544
cannam@162 15545 pkg_failed=no
cannam@162 15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
cannam@162 15547 $as_echo_n "checking for JACK... " >&6; }
cannam@162 15548
cannam@162 15549 if test -n "$JACK_CFLAGS"; then
cannam@162 15550 pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
cannam@162 15551 elif test -n "$PKG_CONFIG"; then
cannam@162 15552 if test -n "$PKG_CONFIG" && \
cannam@162 15553 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack\""; } >&5
cannam@162 15554 ($PKG_CONFIG --exists --print-errors "jack") 2>&5
cannam@162 15555 ac_status=$?
cannam@162 15556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 15557 test $ac_status = 0; }; then
cannam@162 15558 pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack" 2>/dev/null`
cannam@162 15559 test "x$?" != "x0" && pkg_failed=yes
cannam@162 15560 else
cannam@162 15561 pkg_failed=yes
cannam@162 15562 fi
cannam@162 15563 else
cannam@162 15564 pkg_failed=untried
cannam@162 15565 fi
cannam@162 15566 if test -n "$JACK_LIBS"; then
cannam@162 15567 pkg_cv_JACK_LIBS="$JACK_LIBS"
cannam@162 15568 elif test -n "$PKG_CONFIG"; then
cannam@162 15569 if test -n "$PKG_CONFIG" && \
cannam@162 15570 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack\""; } >&5
cannam@162 15571 ($PKG_CONFIG --exists --print-errors "jack") 2>&5
cannam@162 15572 ac_status=$?
cannam@162 15573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@162 15574 test $ac_status = 0; }; then
cannam@162 15575 pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack" 2>/dev/null`
cannam@162 15576 test "x$?" != "x0" && pkg_failed=yes
cannam@162 15577 else
cannam@162 15578 pkg_failed=yes
cannam@162 15579 fi
cannam@162 15580 else
cannam@162 15581 pkg_failed=untried
cannam@162 15582 fi
cannam@162 15583
cannam@162 15584
cannam@162 15585
cannam@162 15586 if test $pkg_failed = yes; then
cannam@162 15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 15588 $as_echo "no" >&6; }
cannam@162 15589
cannam@162 15590 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
cannam@162 15591 _pkg_short_errors_supported=yes
cannam@162 15592 else
cannam@162 15593 _pkg_short_errors_supported=no
cannam@162 15594 fi
cannam@162 15595 if test $_pkg_short_errors_supported = yes; then
cannam@162 15596 JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack" 2>&1`
cannam@162 15597 else
cannam@162 15598 JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack" 2>&1`
cannam@162 15599 fi
cannam@162 15600 # Put the nasty error message in config.log where it belongs
cannam@162 15601 echo "$JACK_PKG_ERRORS" >&5
cannam@162 15602
cannam@162 15603 have_jack=no
cannam@162 15604 elif test $pkg_failed = untried; then
cannam@162 15605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@162 15606 $as_echo "no" >&6; }
cannam@162 15607 have_jack=no
cannam@162 15608 else
cannam@162 15609 JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
cannam@162 15610 JACK_LIBS=$pkg_cv_JACK_LIBS
cannam@162 15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@162 15612 $as_echo "yes" >&6; }
cannam@162 15613 have_jack=yes
cannam@162 15614 fi
cannam@162 15615 fi
cannam@162 15616
cannam@162 15617
cannam@162 15618
cannam@162 15619 # The cast to long int works around a bug in the HP C Compiler
cannam@162 15620 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@162 15621 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@162 15622 # This bug is HP SR number 8606223364.
cannam@162 15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
cannam@162 15624 $as_echo_n "checking size of short... " >&6; }
cannam@162 15625 if ${ac_cv_sizeof_short+:} false; then :
cannam@162 15626 $as_echo_n "(cached) " >&6
cannam@162 15627 else
cannam@162 15628 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
cannam@162 15629
cannam@162 15630 else
cannam@162 15631 if test "$ac_cv_type_short" = yes; then
cannam@162 15632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@162 15633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@162 15634 as_fn_error 77 "cannot compute sizeof (short)
cannam@162 15635 See \`config.log' for more details" "$LINENO" 5; }
cannam@162 15636 else
cannam@162 15637 ac_cv_sizeof_short=0
cannam@162 15638 fi
cannam@162 15639 fi
cannam@162 15640
cannam@162 15641 fi
cannam@162 15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
cannam@162 15643 $as_echo "$ac_cv_sizeof_short" >&6; }
cannam@162 15644
cannam@162 15645
cannam@162 15646
cannam@162 15647 cat >>confdefs.h <<_ACEOF
cannam@162 15648 #define SIZEOF_SHORT $ac_cv_sizeof_short
cannam@162 15649 _ACEOF
cannam@162 15650
cannam@162 15651
cannam@162 15652 # The cast to long int works around a bug in the HP C Compiler
cannam@162 15653 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@162 15654 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@162 15655 # This bug is HP SR number 8606223364.
cannam@162 15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
cannam@162 15657 $as_echo_n "checking size of int... " >&6; }
cannam@162 15658 if ${ac_cv_sizeof_int+:} false; then :
cannam@162 15659 $as_echo_n "(cached) " >&6
cannam@162 15660 else
cannam@162 15661 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
cannam@162 15662
cannam@162 15663 else
cannam@162 15664 if test "$ac_cv_type_int" = yes; then
cannam@162 15665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@162 15666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@162 15667 as_fn_error 77 "cannot compute sizeof (int)
cannam@162 15668 See \`config.log' for more details" "$LINENO" 5; }
cannam@162 15669 else
cannam@162 15670 ac_cv_sizeof_int=0
cannam@162 15671 fi
cannam@162 15672 fi
cannam@162 15673
cannam@162 15674 fi
cannam@162 15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
cannam@162 15676 $as_echo "$ac_cv_sizeof_int" >&6; }
cannam@162 15677
cannam@162 15678
cannam@162 15679
cannam@162 15680 cat >>confdefs.h <<_ACEOF
cannam@162 15681 #define SIZEOF_INT $ac_cv_sizeof_int
cannam@162 15682 _ACEOF
cannam@162 15683
cannam@162 15684
cannam@162 15685 # The cast to long int works around a bug in the HP C Compiler
cannam@162 15686 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@162 15687 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@162 15688 # This bug is HP SR number 8606223364.
cannam@162 15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
cannam@162 15690 $as_echo_n "checking size of long... " >&6; }
cannam@162 15691 if ${ac_cv_sizeof_long+:} false; then :
cannam@162 15692 $as_echo_n "(cached) " >&6
cannam@162 15693 else
cannam@162 15694 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
cannam@162 15695
cannam@162 15696 else
cannam@162 15697 if test "$ac_cv_type_long" = yes; then
cannam@162 15698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@162 15699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@162 15700 as_fn_error 77 "cannot compute sizeof (long)
cannam@162 15701 See \`config.log' for more details" "$LINENO" 5; }
cannam@162 15702 else
cannam@162 15703 ac_cv_sizeof_long=0
cannam@162 15704 fi
cannam@162 15705 fi
cannam@162 15706
cannam@162 15707 fi
cannam@162 15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
cannam@162 15709 $as_echo "$ac_cv_sizeof_long" >&6; }
cannam@162 15710
cannam@162 15711
cannam@162 15712
cannam@162 15713 cat >>confdefs.h <<_ACEOF
cannam@162 15714 #define SIZEOF_LONG $ac_cv_sizeof_long
cannam@162 15715 _ACEOF
cannam@162 15716
cannam@162 15717
cannam@162 15718
cannam@162 15719 save_LIBS="${LIBS}"
cannam@162 15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
cannam@162 15721 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
cannam@162 15722 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
cannam@162 15723 $as_echo_n "(cached) " >&6
cannam@162 15724 else
cannam@162 15725 ac_check_lib_save_LIBS=$LIBS
cannam@162 15726 LIBS="-lrt $LIBS"
cannam@162 15727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 15728 /* end confdefs.h. */
cannam@162 15729
cannam@162 15730 /* Override any GCC internal prototype to avoid an error.
cannam@162 15731 Use char because int might match the return type of a GCC
cannam@162 15732 builtin and then its argument prototype would still apply. */
cannam@162 15733 #ifdef __cplusplus
cannam@162 15734 extern "C"
cannam@162 15735 #endif
cannam@162 15736 char clock_gettime ();
cannam@162 15737 int
cannam@162 15738 main ()
cannam@162 15739 {
cannam@162 15740 return clock_gettime ();
cannam@162 15741 ;
cannam@162 15742 return 0;
cannam@162 15743 }
cannam@162 15744 _ACEOF
cannam@162 15745 if ac_fn_c_try_link "$LINENO"; then :
cannam@162 15746 ac_cv_lib_rt_clock_gettime=yes
cannam@162 15747 else
cannam@162 15748 ac_cv_lib_rt_clock_gettime=no
cannam@162 15749 fi
cannam@162 15750 rm -f core conftest.err conftest.$ac_objext \
cannam@162 15751 conftest$ac_exeext conftest.$ac_ext
cannam@162 15752 LIBS=$ac_check_lib_save_LIBS
cannam@162 15753 fi
cannam@162 15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
cannam@162 15755 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
cannam@162 15756 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
cannam@162 15757 rt_libs=" -lrt"
cannam@162 15758 fi
cannam@162 15759
cannam@162 15760 LIBS="${LIBS}${rt_libs}"
cannam@162 15761 DLL_LIBS="${DLL_LIBS}${rt_libs}"
cannam@162 15762 for ac_func in clock_gettime nanosleep
cannam@162 15763 do :
cannam@162 15764 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
cannam@162 15765 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cannam@162 15766 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cannam@162 15767 cat >>confdefs.h <<_ACEOF
cannam@162 15768 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
cannam@162 15769 _ACEOF
cannam@162 15770
cannam@162 15771 fi
cannam@162 15772 done
cannam@162 15773
cannam@162 15774 LIBS="${save_LIBS}"
cannam@162 15775
cannam@162 15776 LT_CURRENT=2
cannam@162 15777 LT_REVISION=0
cannam@162 15778 LT_AGE=0
cannam@162 15779
cannam@162 15780
cannam@162 15781
cannam@162 15782
cannam@162 15783
cannam@162 15784
cannam@162 15785
cannam@162 15786
cannam@162 15787
cannam@162 15788
cannam@162 15789
cannam@162 15790
cannam@162 15791
cannam@162 15792
cannam@162 15793
cannam@162 15794 if ( echo "${host_os}" | grep ^darwin >> /dev/null ) &&
cannam@162 15795 [ "$enable_mac_universal" = "yes" ] &&
cannam@162 15796 [ "$enable_mac_debug" != "yes" ] ; then
cannam@162 15797 CFLAGS="-O2 -Wall -pedantic -pipe -fPIC -DNDEBUG"
cannam@162 15798 else
cannam@162 15799 CFLAGS=${CFLAGS:-"-g -O2 -Wall -pedantic -pipe -fPIC"}
cannam@162 15800 fi
cannam@162 15801
cannam@162 15802 if [ $ac_cv_c_bigendian = "yes" ] ; then
cannam@162 15803 CFLAGS="$CFLAGS -DPA_BIG_ENDIAN"
cannam@162 15804 else
cannam@162 15805 CFLAGS="$CFLAGS -DPA_LITTLE_ENDIAN"
cannam@162 15806 fi
cannam@162 15807
cannam@162 15808 add_objects()
cannam@162 15809 {
cannam@162 15810 for o in $@; do
cannam@162 15811 test "${OTHER_OBJS#*${o}*}" = "${OTHER_OBJS}" && OTHER_OBJS="$OTHER_OBJS $o"
cannam@162 15812 done
cannam@162 15813 }
cannam@162 15814
cannam@162 15815 INCLUDES=portaudio.h
cannam@162 15816
cannam@162 15817 CFLAGS="$CFLAGS -I\$(top_srcdir)/include -I\$(top_srcdir)/src/common"
cannam@162 15818
cannam@162 15819 case "${host_os}" in
cannam@162 15820 darwin* )
cannam@162 15821
cannam@162 15822 $as_echo "#define PA_USE_COREAUDIO 1" >>confdefs.h
cannam@162 15823
cannam@162 15824
cannam@162 15825 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix -Wno-deprecated -Werror"
cannam@162 15826 LIBS="-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon"
cannam@162 15827
cannam@162 15828 if test "x$enable_mac_universal" = "xyes" ; then
cannam@162 15829 case `xcodebuild -version | sed -n 's/Xcode \(.*\)/\1/p'` in
cannam@162 15830
cannam@162 15831 12*|3.0|3.1)
cannam@162 15832 if [ -d /Developer/SDKs/MacOSX10.5.sdk ] ; then
cannam@162 15833 mac_version_min="-mmacosx-version-min=10.3"
cannam@162 15834 mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.5.sdk"
cannam@162 15835 else
cannam@162 15836 mac_version_min="-mmacosx-version-min=10.3"
cannam@162 15837 mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
cannam@162 15838 fi
cannam@162 15839 ;;
cannam@162 15840
cannam@162 15841 *)
cannam@162 15842 if xcodebuild -version -sdk macosx10.5 Path >/dev/null 2>&1 ; then
cannam@162 15843 mac_version_min="-mmacosx-version-min=10.3"
cannam@162 15844 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.5 Path`"
cannam@162 15845 elif xcodebuild -version -sdk macosx10.6 Path >/dev/null 2>&1 ; then
cannam@162 15846 mac_version_min="-mmacosx-version-min=10.4"
cannam@162 15847 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.6 Path`"
cannam@162 15848 elif xcodebuild -version -sdk macosx10.7 Path >/dev/null 2>&1 ; then
cannam@162 15849 mac_version_min="-mmacosx-version-min=10.4"
cannam@162 15850 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.7 Path`"
cannam@162 15851 elif xcodebuild -version -sdk macosx10.8 Path >/dev/null 2>&1 ; then
cannam@162 15852 mac_version_min="-mmacosx-version-min=10.4"
cannam@162 15853 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.8 Path`"
cannam@162 15854 elif xcodebuild -version -sdk macosx10.9 Path >/dev/null 2>&1 ; then
cannam@162 15855 mac_version_min="-mmacosx-version-min=10.4"
cannam@162 15856 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.9 Path`"
cannam@162 15857 elif xcodebuild -version -sdk macosx10.10 Path >/dev/null 2>&1 ; then
cannam@162 15858 mac_version_min="-mmacosx-version-min=10.4"
cannam@162 15859 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.10 Path`"
cannam@162 15860 elif xcodebuild -version -sdk macosx10.11 Path >/dev/null 2>&1 ; then
cannam@162 15861 mac_version_min="-mmacosx-version-min=10.4"
cannam@162 15862 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.11 Path`"
cannam@162 15863 elif xcodebuild -version -sdk macosx10.12 Path >/dev/null 2>&1 ; then
cannam@162 15864 mac_version_min="-mmacosx-version-min=10.4"
cannam@162 15865 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.12 Path`"
cannam@162 15866 else
cannam@162 15867 as_fn_error $? "Could not find 10.5 to 10.12 SDK." "$LINENO" 5
cannam@162 15868 fi
cannam@162 15869 esac
cannam@162 15870
cannam@162 15871 mac_arches=""
cannam@162 15872 for arch in i386 x86_64 ppc ppc64
cannam@162 15873 do
cannam@162 15874 save_CFLAGS="$CFLAGS"
cannam@162 15875 CFLAGS="$CFLAGS -arch $arch"
cannam@162 15876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 15877 /* end confdefs.h. */
cannam@162 15878
cannam@162 15879 int
cannam@162 15880 main ()
cannam@162 15881 {
cannam@162 15882 return 0;
cannam@162 15883 ;
cannam@162 15884 return 0;
cannam@162 15885 }
cannam@162 15886 _ACEOF
cannam@162 15887 if ac_fn_c_try_compile "$LINENO"; then :
cannam@162 15888
cannam@162 15889 if [ -z "$mac_arches" ] ; then
cannam@162 15890 mac_arches="-arch $arch"
cannam@162 15891 else
cannam@162 15892 mac_arches="$mac_arches -arch $arch"
cannam@162 15893 fi
cannam@162 15894
cannam@162 15895 fi
cannam@162 15896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@162 15897 CFLAGS="$save_CFLAGS"
cannam@162 15898 done
cannam@162 15899 else
cannam@162 15900 mac_arches=""
cannam@162 15901 mac_sysroot=""
cannam@162 15902 mac_version=""
cannam@162 15903 fi
cannam@162 15904 SHARED_FLAGS="$LIBS -dynamiclib $mac_arches $mac_sysroot $mac_version_min"
cannam@162 15905 CFLAGS="-std=c99 $CFLAGS $mac_arches $mac_sysroot $mac_version_min"
cannam@162 15906 OTHER_OBJS="src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o src/hostapi/coreaudio/pa_mac_core.o src/hostapi/coreaudio/pa_mac_core_utilities.o src/hostapi/coreaudio/pa_mac_core_blocking.o src/common/pa_ringbuffer.o"
cannam@162 15907 PADLL="libportaudio.dylib"
cannam@162 15908 ;;
cannam@162 15909
cannam@162 15910 mingw* )
cannam@162 15911
cannam@162 15912 PADLL="portaudio.dll"
cannam@162 15913 THREAD_CFLAGS="-mthreads"
cannam@162 15914 SHARED_FLAGS="-shared"
cannam@162 15915 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/win -DPA_USE_WMME=0 -DPA_USE_ASIO=0 -DPA_USE_WDMKS=0 -DPA_USE_DS=0 -DPA_USE_WASAPI=0"
cannam@162 15916
cannam@162 15917 if [ "x$with_directx" = "xyes" ]; then
cannam@162 15918 DXDIR="$with_dxdir"
cannam@162 15919 add_objects src/hostapi/dsound/pa_win_ds.o src/hostapi/dsound/pa_win_ds_dynlink.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_coinitialize.o src/os/win/pa_win_waveformat.o
cannam@162 15920 LIBS="${LIBS} -lwinmm -lm -ldsound -lole32"
cannam@162 15921 DLL_LIBS="${DLL_LIBS} -lwinmm -lm -L$DXDIR/lib -ldsound -lole32"
cannam@162 15922 #VC98="\"/c/Program Files/Microsoft Visual Studio/VC98/Include\""
cannam@162 15923 #CFLAGS="$CFLAGS -I$VC98 -DPA_NO_WMME -DPA_NO_ASIO"
cannam@162 15924 CFLAGS="$CFLAGS -I$DXDIR/include -UPA_USE_DS -DPA_USE_DS=1"
cannam@162 15925 fi
cannam@162 15926
cannam@162 15927 if [ "x$with_asio" = "xyes" ]; then
cannam@162 15928 ASIODIR="$with_asiodir"
cannam@162 15929 add_objects src/hostapi/asio/pa_asio.o src/common/pa_ringbuffer.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_coinitialize.o src/hostapi/asio/iasiothiscallresolver.o $ASIODIR/common/asio.o $ASIODIR/host/asiodrivers.o $ASIODIR/host/pc/asiolist.o
cannam@162 15930 LIBS="${LIBS} -lwinmm -lm -lole32 -luuid"
cannam@162 15931 DLL_LIBS="${DLL_LIBS} -lwinmm -lm -lole32 -luuid"
cannam@162 15932 CFLAGS="$CFLAGS -ffast-math -fomit-frame-pointer -I\$(top_srcdir)/src/hostapi/asio -I$ASIODIR/host/pc -I$ASIODIR/common -I$ASIODIR/host -UPA_USE_ASIO -DPA_USE_ASIO=1 -DWINDOWS"
cannam@162 15933
cannam@162 15934 CFLAGS="$CFLAGS -D_WIN32_WINNT=0x0501 -DWINVER=0x0501"
cannam@162 15935
cannam@162 15936 CXXFLAGS="$CFLAGS"
cannam@162 15937 fi
cannam@162 15938
cannam@162 15939 if [ "x$with_wdmks" = "xyes" ]; then
cannam@162 15940 DXDIR="$with_dxdir"
cannam@162 15941 add_objects src/hostapi/wdmks/pa_win_wdmks.o src/common/pa_ringbuffer.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_wdmks_utils.o src/os/win/pa_win_waveformat.o
cannam@162 15942 LIBS="${LIBS} -lwinmm -lm -luuid -lsetupapi -lole32"
cannam@162 15943 DLL_LIBS="${DLL_LIBS} -lwinmm -lm -L$DXDIR/lib -luuid -lsetupapi -lole32"
cannam@162 15944 #VC98="\"/c/Program Files/Microsoft Visual Studio/VC98/Include\""
cannam@162 15945 #CFLAGS="$CFLAGS -I$VC98 -DPA_NO_WMME -DPA_NO_ASIO"
cannam@162 15946 CFLAGS="$CFLAGS -I$DXDIR/include -UPA_USE_WDMKS -DPA_USE_WDMKS=1"
cannam@162 15947 fi
cannam@162 15948
cannam@162 15949 if [ "x$with_wmme" = "xyes" ]; then
cannam@162 15950 add_objects src/hostapi/wmme/pa_win_wmme.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_waveformat.o
cannam@162 15951 LIBS="${LIBS} -lwinmm -lm -lole32 -luuid"
cannam@162 15952 DLL_LIBS="${DLL_LIBS} -lwinmm"
cannam@162 15953 CFLAGS="$CFLAGS -UPA_USE_WMME -DPA_USE_WMME=1"
cannam@162 15954 fi
cannam@162 15955
cannam@162 15956 if [ "x$with_wasapi" = "xyes" ]; then
cannam@162 15957 add_objects src/hostapi/wasapi/pa_win_wasapi.o src/common/pa_ringbuffer.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_coinitialize.o src/os/win/pa_win_waveformat.o
cannam@162 15958 LIBS="${LIBS} -lwinmm -lm -lole32 -luuid"
cannam@162 15959 DLL_LIBS="${DLL_LIBS} -lwinmm -lole32"
cannam@162 15960 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/hostapi/wasapi/mingw-include -UPA_USE_WASAPI -DPA_USE_WASAPI=1"
cannam@162 15961 fi
cannam@162 15962 ;;
cannam@162 15963
cannam@162 15964 cygwin* )
cannam@162 15965
cannam@162 15966 OTHER_OBJS="src/hostapi/wmme/pa_win_wmme.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_waveformat.o"
cannam@162 15967 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/win -DPA_USE_DS=0 -DPA_USE_WDMKS=0 -DPA_USE_ASIO=0 -DPA_USE_WASAPI=0 -DPA_USE_WMME=1"
cannam@162 15968 LIBS="-lwinmm -lm"
cannam@162 15969 PADLL="portaudio.dll"
cannam@162 15970 THREAD_CFLAGS="-mthreads"
cannam@162 15971 SHARED_FLAGS="-shared"
cannam@162 15972 DLL_LIBS="${DLL_LIBS} -lwinmm"
cannam@162 15973 ;;
cannam@162 15974
cannam@162 15975 irix* )
cannam@162 15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
cannam@162 15977 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
cannam@162 15978 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
cannam@162 15979 $as_echo_n "(cached) " >&6
cannam@162 15980 else
cannam@162 15981 ac_check_lib_save_LIBS=$LIBS
cannam@162 15982 LIBS="-lpthread $LIBS"
cannam@162 15983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 15984 /* end confdefs.h. */
cannam@162 15985
cannam@162 15986 /* Override any GCC internal prototype to avoid an error.
cannam@162 15987 Use char because int might match the return type of a GCC
cannam@162 15988 builtin and then its argument prototype would still apply. */
cannam@162 15989 #ifdef __cplusplus
cannam@162 15990 extern "C"
cannam@162 15991 #endif
cannam@162 15992 char pthread_create ();
cannam@162 15993 int
cannam@162 15994 main ()
cannam@162 15995 {
cannam@162 15996 return pthread_create ();
cannam@162 15997 ;
cannam@162 15998 return 0;
cannam@162 15999 }
cannam@162 16000 _ACEOF
cannam@162 16001 if ac_fn_c_try_link "$LINENO"; then :
cannam@162 16002 ac_cv_lib_pthread_pthread_create=yes
cannam@162 16003 else
cannam@162 16004 ac_cv_lib_pthread_pthread_create=no
cannam@162 16005 fi
cannam@162 16006 rm -f core conftest.err conftest.$ac_objext \
cannam@162 16007 conftest$ac_exeext conftest.$ac_ext
cannam@162 16008 LIBS=$ac_check_lib_save_LIBS
cannam@162 16009 fi
cannam@162 16010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
cannam@162 16011 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
cannam@162 16012 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
cannam@162 16013 cat >>confdefs.h <<_ACEOF
cannam@162 16014 #define HAVE_LIBPTHREAD 1
cannam@162 16015 _ACEOF
cannam@162 16016
cannam@162 16017 LIBS="-lpthread $LIBS"
cannam@162 16018
cannam@162 16019 else
cannam@162 16020 as_fn_error $? "IRIX posix thread library not found!" "$LINENO" 5
cannam@162 16021 fi
cannam@162 16022
cannam@162 16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alOpenPort in -laudio" >&5
cannam@162 16024 $as_echo_n "checking for alOpenPort in -laudio... " >&6; }
cannam@162 16025 if ${ac_cv_lib_audio_alOpenPort+:} false; then :
cannam@162 16026 $as_echo_n "(cached) " >&6
cannam@162 16027 else
cannam@162 16028 ac_check_lib_save_LIBS=$LIBS
cannam@162 16029 LIBS="-laudio $LIBS"
cannam@162 16030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 16031 /* end confdefs.h. */
cannam@162 16032
cannam@162 16033 /* Override any GCC internal prototype to avoid an error.
cannam@162 16034 Use char because int might match the return type of a GCC
cannam@162 16035 builtin and then its argument prototype would still apply. */
cannam@162 16036 #ifdef __cplusplus
cannam@162 16037 extern "C"
cannam@162 16038 #endif
cannam@162 16039 char alOpenPort ();
cannam@162 16040 int
cannam@162 16041 main ()
cannam@162 16042 {
cannam@162 16043 return alOpenPort ();
cannam@162 16044 ;
cannam@162 16045 return 0;
cannam@162 16046 }
cannam@162 16047 _ACEOF
cannam@162 16048 if ac_fn_c_try_link "$LINENO"; then :
cannam@162 16049 ac_cv_lib_audio_alOpenPort=yes
cannam@162 16050 else
cannam@162 16051 ac_cv_lib_audio_alOpenPort=no
cannam@162 16052 fi
cannam@162 16053 rm -f core conftest.err conftest.$ac_objext \
cannam@162 16054 conftest$ac_exeext conftest.$ac_ext
cannam@162 16055 LIBS=$ac_check_lib_save_LIBS
cannam@162 16056 fi
cannam@162 16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_alOpenPort" >&5
cannam@162 16058 $as_echo "$ac_cv_lib_audio_alOpenPort" >&6; }
cannam@162 16059 if test "x$ac_cv_lib_audio_alOpenPort" = xyes; then :
cannam@162 16060 cat >>confdefs.h <<_ACEOF
cannam@162 16061 #define HAVE_LIBAUDIO 1
cannam@162 16062 _ACEOF
cannam@162 16063
cannam@162 16064 LIBS="-laudio $LIBS"
cannam@162 16065
cannam@162 16066 else
cannam@162 16067 as_fn_error $? "IRIX audio library not found!" "$LINENO" 5
cannam@162 16068 fi
cannam@162 16069
cannam@162 16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmGetUST in -ldmedia" >&5
cannam@162 16071 $as_echo_n "checking for dmGetUST in -ldmedia... " >&6; }
cannam@162 16072 if ${ac_cv_lib_dmedia_dmGetUST+:} false; then :
cannam@162 16073 $as_echo_n "(cached) " >&6
cannam@162 16074 else
cannam@162 16075 ac_check_lib_save_LIBS=$LIBS
cannam@162 16076 LIBS="-ldmedia $LIBS"
cannam@162 16077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 16078 /* end confdefs.h. */
cannam@162 16079
cannam@162 16080 /* Override any GCC internal prototype to avoid an error.
cannam@162 16081 Use char because int might match the return type of a GCC
cannam@162 16082 builtin and then its argument prototype would still apply. */
cannam@162 16083 #ifdef __cplusplus
cannam@162 16084 extern "C"
cannam@162 16085 #endif
cannam@162 16086 char dmGetUST ();
cannam@162 16087 int
cannam@162 16088 main ()
cannam@162 16089 {
cannam@162 16090 return dmGetUST ();
cannam@162 16091 ;
cannam@162 16092 return 0;
cannam@162 16093 }
cannam@162 16094 _ACEOF
cannam@162 16095 if ac_fn_c_try_link "$LINENO"; then :
cannam@162 16096 ac_cv_lib_dmedia_dmGetUST=yes
cannam@162 16097 else
cannam@162 16098 ac_cv_lib_dmedia_dmGetUST=no
cannam@162 16099 fi
cannam@162 16100 rm -f core conftest.err conftest.$ac_objext \
cannam@162 16101 conftest$ac_exeext conftest.$ac_ext
cannam@162 16102 LIBS=$ac_check_lib_save_LIBS
cannam@162 16103 fi
cannam@162 16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmedia_dmGetUST" >&5
cannam@162 16105 $as_echo "$ac_cv_lib_dmedia_dmGetUST" >&6; }
cannam@162 16106 if test "x$ac_cv_lib_dmedia_dmGetUST" = xyes; then :
cannam@162 16107 cat >>confdefs.h <<_ACEOF
cannam@162 16108 #define HAVE_LIBDMEDIA 1
cannam@162 16109 _ACEOF
cannam@162 16110
cannam@162 16111 LIBS="-ldmedia $LIBS"
cannam@162 16112
cannam@162 16113 else
cannam@162 16114 as_fn_error $? "IRIX digital media library not found!" "$LINENO" 5
cannam@162 16115 fi
cannam@162 16116
cannam@162 16117
cannam@162 16118 $as_echo "#define PA_USE_SGI 1" >>confdefs.h
cannam@162 16119
cannam@162 16120
cannam@162 16121 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix"
cannam@162 16122
cannam@162 16123 THREAD_CFLAGS="-D_REENTRANT"
cannam@162 16124
cannam@162 16125 OTHER_OBJS="pa_sgi/pa_sgi.o src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o"
cannam@162 16126
cannam@162 16127 LIBS="-lm -ldmedia -laudio -lpthread"
cannam@162 16128 PADLL="libportaudio.so"
cannam@162 16129 SHARED_FLAGS=""
cannam@162 16130 ;;
cannam@162 16131
cannam@162 16132 *)
cannam@162 16133
cannam@162 16134 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix"
cannam@162 16135
cannam@162 16136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
cannam@162 16137 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
cannam@162 16138 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
cannam@162 16139 $as_echo_n "(cached) " >&6
cannam@162 16140 else
cannam@162 16141 ac_check_lib_save_LIBS=$LIBS
cannam@162 16142 LIBS="-lpthread $LIBS"
cannam@162 16143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@162 16144 /* end confdefs.h. */
cannam@162 16145
cannam@162 16146 /* Override any GCC internal prototype to avoid an error.
cannam@162 16147 Use char because int might match the return type of a GCC
cannam@162 16148 builtin and then its argument prototype would still apply. */
cannam@162 16149 #ifdef __cplusplus
cannam@162 16150 extern "C"
cannam@162 16151 #endif
cannam@162 16152 char pthread_create ();
cannam@162 16153 int
cannam@162 16154 main ()
cannam@162 16155 {
cannam@162 16156 return pthread_create ();
cannam@162 16157 ;
cannam@162 16158 return 0;
cannam@162 16159 }
cannam@162 16160 _ACEOF
cannam@162 16161 if ac_fn_c_try_link "$LINENO"; then :
cannam@162 16162 ac_cv_lib_pthread_pthread_create=yes
cannam@162 16163 else
cannam@162 16164 ac_cv_lib_pthread_pthread_create=no
cannam@162 16165 fi
cannam@162 16166 rm -f core conftest.err conftest.$ac_objext \
cannam@162 16167 conftest$ac_exeext conftest.$ac_ext
cannam@162 16168 LIBS=$ac_check_lib_save_LIBS
cannam@162 16169 fi
cannam@162 16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
cannam@162 16171 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
cannam@162 16172 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
cannam@162 16173 have_pthread="yes"
cannam@162 16174 else
cannam@162 16175 as_fn_error $? "libpthread not found!" "$LINENO" 5
cannam@162 16176 fi
cannam@162 16177
cannam@162 16178
cannam@162 16179 if [ "$have_alsa" = "yes" ] && [ "$with_alsa" != "no" ] ; then
cannam@162 16180 DLL_LIBS="$DLL_LIBS -lasound"
cannam@162 16181 LIBS="$LIBS -lasound"
cannam@162 16182 OTHER_OBJS="$OTHER_OBJS src/hostapi/alsa/pa_linux_alsa.o"
cannam@162 16183 INCLUDES="$INCLUDES pa_linux_alsa.h"
cannam@162 16184 $as_echo "#define PA_USE_ALSA 1" >>confdefs.h
cannam@162 16185
cannam@162 16186 fi
cannam@162 16187
cannam@162 16188 if [ "$have_jack" = "yes" ] && [ "$with_jack" != "no" ] ; then
cannam@162 16189 DLL_LIBS="$DLL_LIBS $JACK_LIBS"
cannam@162 16190 CFLAGS="$CFLAGS $JACK_CFLAGS"
cannam@162 16191 OTHER_OBJS="$OTHER_OBJS src/hostapi/jack/pa_jack.o src/common/pa_ringbuffer.o"
cannam@162 16192 INCLUDES="$INCLUDES pa_jack.h"
cannam@162 16193 $as_echo "#define PA_USE_JACK 1" >>confdefs.h
cannam@162 16194
cannam@162 16195 fi
cannam@162 16196
cannam@162 16197 if [ "$with_oss" != "no" ] ; then
cannam@162 16198 OTHER_OBJS="$OTHER_OBJS src/hostapi/oss/pa_unix_oss.o"
cannam@162 16199 if [ "$have_libossaudio" = "yes" ] ; then
cannam@162 16200 DLL_LIBS="$DLL_LIBS -lossaudio"
cannam@162 16201 LIBS="$LIBS -lossaudio"
cannam@162 16202 fi
cannam@162 16203 $as_echo "#define PA_USE_OSS 1" >>confdefs.h
cannam@162 16204
cannam@162 16205 fi
cannam@162 16206
cannam@162 16207 if [ "$have_asihpi" = "yes" ] && [ "$with_asihpi" != "no" ] ; then
cannam@162 16208 LIBS="$LIBS -lhpi"
cannam@162 16209 DLL_LIBS="$DLL_LIBS -lhpi"
cannam@162 16210 OTHER_OBJS="$OTHER_OBJS src/hostapi/asihpi/pa_linux_asihpi.o"
cannam@162 16211 $as_echo "#define PA_USE_ASIHPI 1" >>confdefs.h
cannam@162 16212
cannam@162 16213 fi
cannam@162 16214
cannam@162 16215 DLL_LIBS="$DLL_LIBS -lm -lpthread"
cannam@162 16216 LIBS="$LIBS -lm -lpthread"
cannam@162 16217 PADLL="libportaudio.so"
cannam@162 16218
cannam@162 16219 ## support sun cc compiler flags
cannam@162 16220 case "${host_os}" in
cannam@162 16221 solaris*)
cannam@162 16222 SHARED_FLAGS="-G"
cannam@162 16223 THREAD_CFLAGS="-mt"
cannam@162 16224 ;;
cannam@162 16225 *)
cannam@162 16226 SHARED_FLAGS="-fPIC"
cannam@162 16227 THREAD_CFLAGS="-pthread"
cannam@162 16228 ;;
cannam@162 16229 esac
cannam@162 16230
cannam@162 16231 OTHER_OBJS="$OTHER_OBJS src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o"
cannam@162 16232 esac
cannam@162 16233 CFLAGS="$CFLAGS $THREAD_CFLAGS"
cannam@162 16234
cannam@162 16235 test "$enable_shared" != "yes" && SHARED_FLAGS=""
cannam@162 16236
cannam@162 16237 if test "$enable_cxx" = "yes"; then
cannam@162 16238
cannam@162 16239
cannam@162 16240 subdirs="$subdirs bindings/cpp"
cannam@162 16241
cannam@162 16242 ENABLE_CXX_TRUE=""
cannam@162 16243 ENABLE_CXX_FALSE="#"
cannam@162 16244 else
cannam@162 16245 ENABLE_CXX_TRUE="#"
cannam@162 16246 ENABLE_CXX_FALSE=""
cannam@162 16247 fi
cannam@162 16248
cannam@162 16249
cannam@162 16250
cannam@162 16251 if test "x$with_asio" = "xyes"; then
cannam@162 16252 WITH_ASIO_TRUE=""
cannam@162 16253 WITH_ASIO_FALSE="@ #"
cannam@162 16254 else
cannam@162 16255 WITH_ASIO_TRUE="@ #"
cannam@162 16256 WITH_ASIO_FALSE=""
cannam@162 16257 fi
cannam@162 16258
cannam@162 16259
cannam@162 16260
cannam@162 16261 ac_config_files="$ac_config_files Makefile portaudio-2.0.pc"
cannam@162 16262
cannam@162 16263 cat >confcache <<\_ACEOF
cannam@162 16264 # This file is a shell script that caches the results of configure
cannam@162 16265 # tests run on this system so they can be shared between configure
cannam@162 16266 # scripts and configure runs, see configure's option --config-cache.
cannam@162 16267 # It is not useful on other systems. If it contains results you don't
cannam@162 16268 # want to keep, you may remove or edit it.
cannam@162 16269 #
cannam@162 16270 # config.status only pays attention to the cache file if you give it
cannam@162 16271 # the --recheck option to rerun configure.
cannam@162 16272 #
cannam@162 16273 # `ac_cv_env_foo' variables (set or unset) will be overridden when
cannam@162 16274 # loading this file, other *unset* `ac_cv_foo' will be assigned the
cannam@162 16275 # following values.
cannam@162 16276
cannam@162 16277 _ACEOF
cannam@162 16278
cannam@162 16279 # The following way of writing the cache mishandles newlines in values,
cannam@162 16280 # but we know of no workaround that is simple, portable, and efficient.
cannam@162 16281 # So, we kill variables containing newlines.
cannam@162 16282 # Ultrix sh set writes to stderr and can't be redirected directly,
cannam@162 16283 # and sets the high bit in the cache file unless we assign to the vars.
cannam@162 16284 (
cannam@162 16285 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
cannam@162 16286 eval ac_val=\$$ac_var
cannam@162 16287 case $ac_val in #(
cannam@162 16288 *${as_nl}*)
cannam@162 16289 case $ac_var in #(
cannam@162 16290 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cannam@162 16291 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
cannam@162 16292 esac
cannam@162 16293 case $ac_var in #(
cannam@162 16294 _ | IFS | as_nl) ;; #(
cannam@162 16295 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cannam@162 16296 *) { eval $ac_var=; unset $ac_var;} ;;
cannam@162 16297 esac ;;
cannam@162 16298 esac
cannam@162 16299 done
cannam@162 16300
cannam@162 16301 (set) 2>&1 |
cannam@162 16302 case $as_nl`(ac_space=' '; set) 2>&1` in #(
cannam@162 16303 *${as_nl}ac_space=\ *)
cannam@162 16304 # `set' does not quote correctly, so add quotes: double-quote
cannam@162 16305 # substitution turns \\\\ into \\, and sed turns \\ into \.
cannam@162 16306 sed -n \
cannam@162 16307 "s/'/'\\\\''/g;
cannam@162 16308 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cannam@162 16309 ;; #(
cannam@162 16310 *)
cannam@162 16311 # `set' quotes correctly as required by POSIX, so do not add quotes.
cannam@162 16312 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
cannam@162 16313 ;;
cannam@162 16314 esac |
cannam@162 16315 sort
cannam@162 16316 ) |
cannam@162 16317 sed '
cannam@162 16318 /^ac_cv_env_/b end
cannam@162 16319 t clear
cannam@162 16320 :clear
cannam@162 16321 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
cannam@162 16322 t end
cannam@162 16323 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
cannam@162 16324 :end' >>confcache
cannam@162 16325 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
cannam@162 16326 if test -w "$cache_file"; then
cannam@162 16327 if test "x$cache_file" != "x/dev/null"; then
cannam@162 16328 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cannam@162 16329 $as_echo "$as_me: updating cache $cache_file" >&6;}
cannam@162 16330 if test ! -f "$cache_file" || test -h "$cache_file"; then
cannam@162 16331 cat confcache >"$cache_file"
cannam@162 16332 else
cannam@162 16333 case $cache_file in #(
cannam@162 16334 */* | ?:*)
cannam@162 16335 mv -f confcache "$cache_file"$$ &&
cannam@162 16336 mv -f "$cache_file"$$ "$cache_file" ;; #(
cannam@162 16337 *)
cannam@162 16338 mv -f confcache "$cache_file" ;;
cannam@162 16339 esac
cannam@162 16340 fi
cannam@162 16341 fi
cannam@162 16342 else
cannam@162 16343 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cannam@162 16344 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
cannam@162 16345 fi
cannam@162 16346 fi
cannam@162 16347 rm -f confcache
cannam@162 16348
cannam@162 16349 test "x$prefix" = xNONE && prefix=$ac_default_prefix
cannam@162 16350 # Let make expand exec_prefix.
cannam@162 16351 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
cannam@162 16352
cannam@162 16353 # Transform confdefs.h into DEFS.
cannam@162 16354 # Protect against shell expansion while executing Makefile rules.
cannam@162 16355 # Protect against Makefile macro expansion.
cannam@162 16356 #
cannam@162 16357 # If the first sed substitution is executed (which looks for macros that
cannam@162 16358 # take arguments), then branch to the quote section. Otherwise,
cannam@162 16359 # look for a macro that doesn't take arguments.
cannam@162 16360 ac_script='
cannam@162 16361 :mline
cannam@162 16362 /\\$/{
cannam@162 16363 N
cannam@162 16364 s,\\\n,,
cannam@162 16365 b mline
cannam@162 16366 }
cannam@162 16367 t clear
cannam@162 16368 :clear
cannam@162 16369 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
cannam@162 16370 t quote
cannam@162 16371 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
cannam@162 16372 t quote
cannam@162 16373 b any
cannam@162 16374 :quote
cannam@162 16375 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
cannam@162 16376 s/\[/\\&/g
cannam@162 16377 s/\]/\\&/g
cannam@162 16378 s/\$/$$/g
cannam@162 16379 H
cannam@162 16380 :any
cannam@162 16381 ${
cannam@162 16382 g
cannam@162 16383 s/^\n//
cannam@162 16384 s/\n/ /g
cannam@162 16385 p
cannam@162 16386 }
cannam@162 16387 '
cannam@162 16388 DEFS=`sed -n "$ac_script" confdefs.h`
cannam@162 16389
cannam@162 16390
cannam@162 16391 ac_libobjs=
cannam@162 16392 ac_ltlibobjs=
cannam@162 16393 U=
cannam@162 16394 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
cannam@162 16395 # 1. Remove the extension, and $U if already installed.
cannam@162 16396 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
cannam@162 16397 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
cannam@162 16398 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
cannam@162 16399 # will be set to the directory where LIBOBJS objects are built.
cannam@162 16400 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
cannam@162 16401 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cannam@162 16402 done
cannam@162 16403 LIBOBJS=$ac_libobjs
cannam@162 16404
cannam@162 16405 LTLIBOBJS=$ac_ltlibobjs
cannam@162 16406
cannam@162 16407
cannam@162 16408
cannam@162 16409
cannam@162 16410 : "${CONFIG_STATUS=./config.status}"
cannam@162 16411 ac_write_fail=0
cannam@162 16412 ac_clean_files_save=$ac_clean_files
cannam@162 16413 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cannam@162 16414 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cannam@162 16415 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cannam@162 16416 as_write_fail=0
cannam@162 16417 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cannam@162 16418 #! $SHELL
cannam@162 16419 # Generated by $as_me.
cannam@162 16420 # Run this file to recreate the current configuration.
cannam@162 16421 # Compiler output produced by configure, useful for debugging
cannam@162 16422 # configure, is in config.log if it exists.
cannam@162 16423
cannam@162 16424 debug=false
cannam@162 16425 ac_cs_recheck=false
cannam@162 16426 ac_cs_silent=false
cannam@162 16427
cannam@162 16428 SHELL=\${CONFIG_SHELL-$SHELL}
cannam@162 16429 export SHELL
cannam@162 16430 _ASEOF
cannam@162 16431 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
cannam@162 16432 ## -------------------- ##
cannam@162 16433 ## M4sh Initialization. ##
cannam@162 16434 ## -------------------- ##
cannam@162 16435
cannam@162 16436 # Be more Bourne compatible
cannam@162 16437 DUALCASE=1; export DUALCASE # for MKS sh
cannam@162 16438 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cannam@162 16439 emulate sh
cannam@162 16440 NULLCMD=:
cannam@162 16441 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
cannam@162 16442 # is contrary to our usage. Disable this feature.
cannam@162 16443 alias -g '${1+"$@"}'='"$@"'
cannam@162 16444 setopt NO_GLOB_SUBST
cannam@162 16445 else
cannam@162 16446 case `(set -o) 2>/dev/null` in #(
cannam@162 16447 *posix*) :
cannam@162 16448 set -o posix ;; #(
cannam@162 16449 *) :
cannam@162 16450 ;;
cannam@162 16451 esac
cannam@162 16452 fi
cannam@162 16453
cannam@162 16454
cannam@162 16455 as_nl='
cannam@162 16456 '
cannam@162 16457 export as_nl
cannam@162 16458 # Printing a long string crashes Solaris 7 /usr/bin/printf.
cannam@162 16459 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@162 16460 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@162 16461 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@162 16462 # Prefer a ksh shell builtin over an external printf program on Solaris,
cannam@162 16463 # but without wasting forks for bash or zsh.
cannam@162 16464 if test -z "$BASH_VERSION$ZSH_VERSION" \
cannam@162 16465 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@162 16466 as_echo='print -r --'
cannam@162 16467 as_echo_n='print -rn --'
cannam@162 16468 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@162 16469 as_echo='printf %s\n'
cannam@162 16470 as_echo_n='printf %s'
cannam@162 16471 else
cannam@162 16472 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
cannam@162 16473 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
cannam@162 16474 as_echo_n='/usr/ucb/echo -n'
cannam@162 16475 else
cannam@162 16476 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
cannam@162 16477 as_echo_n_body='eval
cannam@162 16478 arg=$1;
cannam@162 16479 case $arg in #(
cannam@162 16480 *"$as_nl"*)
cannam@162 16481 expr "X$arg" : "X\\(.*\\)$as_nl";
cannam@162 16482 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
cannam@162 16483 esac;
cannam@162 16484 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
cannam@162 16485 '
cannam@162 16486 export as_echo_n_body
cannam@162 16487 as_echo_n='sh -c $as_echo_n_body as_echo'
cannam@162 16488 fi
cannam@162 16489 export as_echo_body
cannam@162 16490 as_echo='sh -c $as_echo_body as_echo'
cannam@162 16491 fi
cannam@162 16492
cannam@162 16493 # The user is always right.
cannam@162 16494 if test "${PATH_SEPARATOR+set}" != set; then
cannam@162 16495 PATH_SEPARATOR=:
cannam@162 16496 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
cannam@162 16497 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
cannam@162 16498 PATH_SEPARATOR=';'
cannam@162 16499 }
cannam@162 16500 fi
cannam@162 16501
cannam@162 16502
cannam@162 16503 # IFS
cannam@162 16504 # We need space, tab and new line, in precisely that order. Quoting is
cannam@162 16505 # there to prevent editors from complaining about space-tab.
cannam@162 16506 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
cannam@162 16507 # splitting by setting IFS to empty value.)
cannam@162 16508 IFS=" "" $as_nl"
cannam@162 16509
cannam@162 16510 # Find who we are. Look in the path if we contain no directory separator.
cannam@162 16511 as_myself=
cannam@162 16512 case $0 in #((
cannam@162 16513 *[\\/]* ) as_myself=$0 ;;
cannam@162 16514 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@162 16515 for as_dir in $PATH
cannam@162 16516 do
cannam@162 16517 IFS=$as_save_IFS
cannam@162 16518 test -z "$as_dir" && as_dir=.
cannam@162 16519 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
cannam@162 16520 done
cannam@162 16521 IFS=$as_save_IFS
cannam@162 16522
cannam@162 16523 ;;
cannam@162 16524 esac
cannam@162 16525 # We did not find ourselves, most probably we were run as `sh COMMAND'
cannam@162 16526 # in which case we are not to be found in the path.
cannam@162 16527 if test "x$as_myself" = x; then
cannam@162 16528 as_myself=$0
cannam@162 16529 fi
cannam@162 16530 if test ! -f "$as_myself"; then
cannam@162 16531 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cannam@162 16532 exit 1
cannam@162 16533 fi
cannam@162 16534
cannam@162 16535 # Unset variables that we do not need and which cause bugs (e.g. in
cannam@162 16536 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
cannam@162 16537 # suppresses any "Segmentation fault" message there. '((' could
cannam@162 16538 # trigger a bug in pdksh 5.2.14.
cannam@162 16539 for as_var in BASH_ENV ENV MAIL MAILPATH
cannam@162 16540 do eval test x\${$as_var+set} = xset \
cannam@162 16541 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cannam@162 16542 done
cannam@162 16543 PS1='$ '
cannam@162 16544 PS2='> '
cannam@162 16545 PS4='+ '
cannam@162 16546
cannam@162 16547 # NLS nuisances.
cannam@162 16548 LC_ALL=C
cannam@162 16549 export LC_ALL
cannam@162 16550 LANGUAGE=C
cannam@162 16551 export LANGUAGE
cannam@162 16552
cannam@162 16553 # CDPATH.
cannam@162 16554 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cannam@162 16555
cannam@162 16556
cannam@162 16557 # as_fn_error STATUS ERROR [LINENO LOG_FD]
cannam@162 16558 # ----------------------------------------
cannam@162 16559 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
cannam@162 16560 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cannam@162 16561 # script with STATUS, using 1 if that was 0.
cannam@162 16562 as_fn_error ()
cannam@162 16563 {
cannam@162 16564 as_status=$1; test $as_status -eq 0 && as_status=1
cannam@162 16565 if test "$4"; then
cannam@162 16566 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@162 16567 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cannam@162 16568 fi
cannam@162 16569 $as_echo "$as_me: error: $2" >&2
cannam@162 16570 as_fn_exit $as_status
cannam@162 16571 } # as_fn_error
cannam@162 16572
cannam@162 16573
cannam@162 16574 # as_fn_set_status STATUS
cannam@162 16575 # -----------------------
cannam@162 16576 # Set $? to STATUS, without forking.
cannam@162 16577 as_fn_set_status ()
cannam@162 16578 {
cannam@162 16579 return $1
cannam@162 16580 } # as_fn_set_status
cannam@162 16581
cannam@162 16582 # as_fn_exit STATUS
cannam@162 16583 # -----------------
cannam@162 16584 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
cannam@162 16585 as_fn_exit ()
cannam@162 16586 {
cannam@162 16587 set +e
cannam@162 16588 as_fn_set_status $1
cannam@162 16589 exit $1
cannam@162 16590 } # as_fn_exit
cannam@162 16591
cannam@162 16592 # as_fn_unset VAR
cannam@162 16593 # ---------------
cannam@162 16594 # Portably unset VAR.
cannam@162 16595 as_fn_unset ()
cannam@162 16596 {
cannam@162 16597 { eval $1=; unset $1;}
cannam@162 16598 }
cannam@162 16599 as_unset=as_fn_unset
cannam@162 16600 # as_fn_append VAR VALUE
cannam@162 16601 # ----------------------
cannam@162 16602 # Append the text in VALUE to the end of the definition contained in VAR. Take
cannam@162 16603 # advantage of any shell optimizations that allow amortized linear growth over
cannam@162 16604 # repeated appends, instead of the typical quadratic growth present in naive
cannam@162 16605 # implementations.
cannam@162 16606 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
cannam@162 16607 eval 'as_fn_append ()
cannam@162 16608 {
cannam@162 16609 eval $1+=\$2
cannam@162 16610 }'
cannam@162 16611 else
cannam@162 16612 as_fn_append ()
cannam@162 16613 {
cannam@162 16614 eval $1=\$$1\$2
cannam@162 16615 }
cannam@162 16616 fi # as_fn_append
cannam@162 16617
cannam@162 16618 # as_fn_arith ARG...
cannam@162 16619 # ------------------
cannam@162 16620 # Perform arithmetic evaluation on the ARGs, and store the result in the
cannam@162 16621 # global $as_val. Take advantage of shells that can avoid forks. The arguments
cannam@162 16622 # must be portable across $(()) and expr.
cannam@162 16623 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
cannam@162 16624 eval 'as_fn_arith ()
cannam@162 16625 {
cannam@162 16626 as_val=$(( $* ))
cannam@162 16627 }'
cannam@162 16628 else
cannam@162 16629 as_fn_arith ()
cannam@162 16630 {
cannam@162 16631 as_val=`expr "$@" || test $? -eq 1`
cannam@162 16632 }
cannam@162 16633 fi # as_fn_arith
cannam@162 16634
cannam@162 16635
cannam@162 16636 if expr a : '\(a\)' >/dev/null 2>&1 &&
cannam@162 16637 test "X`expr 00001 : '.*\(...\)'`" = X001; then
cannam@162 16638 as_expr=expr
cannam@162 16639 else
cannam@162 16640 as_expr=false
cannam@162 16641 fi
cannam@162 16642
cannam@162 16643 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
cannam@162 16644 as_basename=basename
cannam@162 16645 else
cannam@162 16646 as_basename=false
cannam@162 16647 fi
cannam@162 16648
cannam@162 16649 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
cannam@162 16650 as_dirname=dirname
cannam@162 16651 else
cannam@162 16652 as_dirname=false
cannam@162 16653 fi
cannam@162 16654
cannam@162 16655 as_me=`$as_basename -- "$0" ||
cannam@162 16656 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
cannam@162 16657 X"$0" : 'X\(//\)$' \| \
cannam@162 16658 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
cannam@162 16659 $as_echo X/"$0" |
cannam@162 16660 sed '/^.*\/\([^/][^/]*\)\/*$/{
cannam@162 16661 s//\1/
cannam@162 16662 q
cannam@162 16663 }
cannam@162 16664 /^X\/\(\/\/\)$/{
cannam@162 16665 s//\1/
cannam@162 16666 q
cannam@162 16667 }
cannam@162 16668 /^X\/\(\/\).*/{
cannam@162 16669 s//\1/
cannam@162 16670 q
cannam@162 16671 }
cannam@162 16672 s/.*/./; q'`
cannam@162 16673
cannam@162 16674 # Avoid depending upon Character Ranges.
cannam@162 16675 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
cannam@162 16676 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
cannam@162 16677 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
cannam@162 16678 as_cr_digits='0123456789'
cannam@162 16679 as_cr_alnum=$as_cr_Letters$as_cr_digits
cannam@162 16680
cannam@162 16681 ECHO_C= ECHO_N= ECHO_T=
cannam@162 16682 case `echo -n x` in #(((((
cannam@162 16683 -n*)
cannam@162 16684 case `echo 'xy\c'` in
cannam@162 16685 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cannam@162 16686 xy) ECHO_C='\c';;
cannam@162 16687 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
cannam@162 16688 ECHO_T=' ';;
cannam@162 16689 esac;;
cannam@162 16690 *)
cannam@162 16691 ECHO_N='-n';;
cannam@162 16692 esac
cannam@162 16693
cannam@162 16694 rm -f conf$$ conf$$.exe conf$$.file
cannam@162 16695 if test -d conf$$.dir; then
cannam@162 16696 rm -f conf$$.dir/conf$$.file
cannam@162 16697 else
cannam@162 16698 rm -f conf$$.dir
cannam@162 16699 mkdir conf$$.dir 2>/dev/null
cannam@162 16700 fi
cannam@162 16701 if (echo >conf$$.file) 2>/dev/null; then
cannam@162 16702 if ln -s conf$$.file conf$$ 2>/dev/null; then
cannam@162 16703 as_ln_s='ln -s'
cannam@162 16704 # ... but there are two gotchas:
cannam@162 16705 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
cannam@162 16706 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cannam@162 16707 # In both cases, we have to default to `cp -pR'.
cannam@162 16708 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cannam@162 16709 as_ln_s='cp -pR'
cannam@162 16710 elif ln conf$$.file conf$$ 2>/dev/null; then
cannam@162 16711 as_ln_s=ln
cannam@162 16712 else
cannam@162 16713 as_ln_s='cp -pR'
cannam@162 16714 fi
cannam@162 16715 else
cannam@162 16716 as_ln_s='cp -pR'
cannam@162 16717 fi
cannam@162 16718 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
cannam@162 16719 rmdir conf$$.dir 2>/dev/null
cannam@162 16720
cannam@162 16721
cannam@162 16722 # as_fn_mkdir_p
cannam@162 16723 # -------------
cannam@162 16724 # Create "$as_dir" as a directory, including parents if necessary.
cannam@162 16725 as_fn_mkdir_p ()
cannam@162 16726 {
cannam@162 16727
cannam@162 16728 case $as_dir in #(
cannam@162 16729 -*) as_dir=./$as_dir;;
cannam@162 16730 esac
cannam@162 16731 test -d "$as_dir" || eval $as_mkdir_p || {
cannam@162 16732 as_dirs=
cannam@162 16733 while :; do
cannam@162 16734 case $as_dir in #(
cannam@162 16735 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
cannam@162 16736 *) as_qdir=$as_dir;;
cannam@162 16737 esac
cannam@162 16738 as_dirs="'$as_qdir' $as_dirs"
cannam@162 16739 as_dir=`$as_dirname -- "$as_dir" ||
cannam@162 16740 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@162 16741 X"$as_dir" : 'X\(//\)[^/]' \| \
cannam@162 16742 X"$as_dir" : 'X\(//\)$' \| \
cannam@162 16743 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
cannam@162 16744 $as_echo X"$as_dir" |
cannam@162 16745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@162 16746 s//\1/
cannam@162 16747 q
cannam@162 16748 }
cannam@162 16749 /^X\(\/\/\)[^/].*/{
cannam@162 16750 s//\1/
cannam@162 16751 q
cannam@162 16752 }
cannam@162 16753 /^X\(\/\/\)$/{
cannam@162 16754 s//\1/
cannam@162 16755 q
cannam@162 16756 }
cannam@162 16757 /^X\(\/\).*/{
cannam@162 16758 s//\1/
cannam@162 16759 q
cannam@162 16760 }
cannam@162 16761 s/.*/./; q'`
cannam@162 16762 test -d "$as_dir" && break
cannam@162 16763 done
cannam@162 16764 test -z "$as_dirs" || eval "mkdir $as_dirs"
cannam@162 16765 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cannam@162 16766
cannam@162 16767
cannam@162 16768 } # as_fn_mkdir_p
cannam@162 16769 if mkdir -p . 2>/dev/null; then
cannam@162 16770 as_mkdir_p='mkdir -p "$as_dir"'
cannam@162 16771 else
cannam@162 16772 test -d ./-p && rmdir ./-p
cannam@162 16773 as_mkdir_p=false
cannam@162 16774 fi
cannam@162 16775
cannam@162 16776
cannam@162 16777 # as_fn_executable_p FILE
cannam@162 16778 # -----------------------
cannam@162 16779 # Test if FILE is an executable regular file.
cannam@162 16780 as_fn_executable_p ()
cannam@162 16781 {
cannam@162 16782 test -f "$1" && test -x "$1"
cannam@162 16783 } # as_fn_executable_p
cannam@162 16784 as_test_x='test -x'
cannam@162 16785 as_executable_p=as_fn_executable_p
cannam@162 16786
cannam@162 16787 # Sed expression to map a string onto a valid CPP name.
cannam@162 16788 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
cannam@162 16789
cannam@162 16790 # Sed expression to map a string onto a valid variable name.
cannam@162 16791 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
cannam@162 16792
cannam@162 16793
cannam@162 16794 exec 6>&1
cannam@162 16795 ## ----------------------------------- ##
cannam@162 16796 ## Main body of $CONFIG_STATUS script. ##
cannam@162 16797 ## ----------------------------------- ##
cannam@162 16798 _ASEOF
cannam@162 16799 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cannam@162 16800
cannam@162 16801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@162 16802 # Save the log message, to keep $0 and so on meaningful, and to
cannam@162 16803 # report actual input values of CONFIG_FILES etc. instead of their
cannam@162 16804 # values after options handling.
cannam@162 16805 ac_log="
cannam@162 16806 This file was extended by $as_me, which was
cannam@162 16807 generated by GNU Autoconf 2.69. Invocation command line was
cannam@162 16808
cannam@162 16809 CONFIG_FILES = $CONFIG_FILES
cannam@162 16810 CONFIG_HEADERS = $CONFIG_HEADERS
cannam@162 16811 CONFIG_LINKS = $CONFIG_LINKS
cannam@162 16812 CONFIG_COMMANDS = $CONFIG_COMMANDS
cannam@162 16813 $ $0 $@
cannam@162 16814
cannam@162 16815 on `(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@162 16816 "
cannam@162 16817
cannam@162 16818 _ACEOF
cannam@162 16819
cannam@162 16820 case $ac_config_files in *"
cannam@162 16821 "*) set x $ac_config_files; shift; ac_config_files=$*;;
cannam@162 16822 esac
cannam@162 16823
cannam@162 16824
cannam@162 16825
cannam@162 16826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@162 16827 # Files that config.status was made for.
cannam@162 16828 config_files="$ac_config_files"
cannam@162 16829 config_commands="$ac_config_commands"
cannam@162 16830
cannam@162 16831 _ACEOF
cannam@162 16832
cannam@162 16833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@162 16834 ac_cs_usage="\
cannam@162 16835 \`$as_me' instantiates files and other configuration actions
cannam@162 16836 from templates according to the current configuration. Unless the files
cannam@162 16837 and actions are specified as TAGs, all are instantiated by default.
cannam@162 16838
cannam@162 16839 Usage: $0 [OPTION]... [TAG]...
cannam@162 16840
cannam@162 16841 -h, --help print this help, then exit
cannam@162 16842 -V, --version print version number and configuration settings, then exit
cannam@162 16843 --config print configuration, then exit
cannam@162 16844 -q, --quiet, --silent
cannam@162 16845 do not print progress messages
cannam@162 16846 -d, --debug don't remove temporary files
cannam@162 16847 --recheck update $as_me by reconfiguring in the same conditions
cannam@162 16848 --file=FILE[:TEMPLATE]
cannam@162 16849 instantiate the configuration file FILE
cannam@162 16850
cannam@162 16851 Configuration files:
cannam@162 16852 $config_files
cannam@162 16853
cannam@162 16854 Configuration commands:
cannam@162 16855 $config_commands
cannam@162 16856
cannam@162 16857 Report bugs to the package provider."
cannam@162 16858
cannam@162 16859 _ACEOF
cannam@162 16860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@162 16861 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cannam@162 16862 ac_cs_version="\\
cannam@162 16863 config.status
cannam@162 16864 configured by $0, generated by GNU Autoconf 2.69,
cannam@162 16865 with options \\"\$ac_cs_config\\"
cannam@162 16866
cannam@162 16867 Copyright (C) 2012 Free Software Foundation, Inc.
cannam@162 16868 This config.status script is free software; the Free Software Foundation
cannam@162 16869 gives unlimited permission to copy, distribute and modify it."
cannam@162 16870
cannam@162 16871 ac_pwd='$ac_pwd'
cannam@162 16872 srcdir='$srcdir'
cannam@162 16873 INSTALL='$INSTALL'
cannam@162 16874 AWK='$AWK'
cannam@162 16875 test -n "\$AWK" || AWK=awk
cannam@162 16876 _ACEOF
cannam@162 16877
cannam@162 16878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@162 16879 # The default lists apply if the user does not specify any file.
cannam@162 16880 ac_need_defaults=:
cannam@162 16881 while test $# != 0
cannam@162 16882 do
cannam@162 16883 case $1 in
cannam@162 16884 --*=?*)
cannam@162 16885 ac_option=`expr "X$1" : 'X\([^=]*\)='`
cannam@162 16886 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
cannam@162 16887 ac_shift=:
cannam@162 16888 ;;
cannam@162 16889 --*=)
cannam@162 16890 ac_option=`expr "X$1" : 'X\([^=]*\)='`
cannam@162 16891 ac_optarg=
cannam@162 16892 ac_shift=:
cannam@162 16893 ;;
cannam@162 16894 *)
cannam@162 16895 ac_option=$1
cannam@162 16896 ac_optarg=$2
cannam@162 16897 ac_shift=shift
cannam@162 16898 ;;
cannam@162 16899 esac
cannam@162 16900
cannam@162 16901 case $ac_option in
cannam@162 16902 # Handling of the options.
cannam@162 16903 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
cannam@162 16904 ac_cs_recheck=: ;;
cannam@162 16905 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
cannam@162 16906 $as_echo "$ac_cs_version"; exit ;;
cannam@162 16907 --config | --confi | --conf | --con | --co | --c )
cannam@162 16908 $as_echo "$ac_cs_config"; exit ;;
cannam@162 16909 --debug | --debu | --deb | --de | --d | -d )
cannam@162 16910 debug=: ;;
cannam@162 16911 --file | --fil | --fi | --f )
cannam@162 16912 $ac_shift
cannam@162 16913 case $ac_optarg in
cannam@162 16914 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@162 16915 '') as_fn_error $? "missing file argument" ;;
cannam@162 16916 esac
cannam@162 16917 as_fn_append CONFIG_FILES " '$ac_optarg'"
cannam@162 16918 ac_need_defaults=false;;
cannam@162 16919 --he | --h | --help | --hel | -h )
cannam@162 16920 $as_echo "$ac_cs_usage"; exit ;;
cannam@162 16921 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@162 16922 | -silent | --silent | --silen | --sile | --sil | --si | --s)
cannam@162 16923 ac_cs_silent=: ;;
cannam@162 16924
cannam@162 16925 # This is an error.
cannam@162 16926 -*) as_fn_error $? "unrecognized option: \`$1'
cannam@162 16927 Try \`$0 --help' for more information." ;;
cannam@162 16928
cannam@162 16929 *) as_fn_append ac_config_targets " $1"
cannam@162 16930 ac_need_defaults=false ;;
cannam@162 16931
cannam@162 16932 esac
cannam@162 16933 shift
cannam@162 16934 done
cannam@162 16935
cannam@162 16936 ac_configure_extra_args=
cannam@162 16937
cannam@162 16938 if $ac_cs_silent; then
cannam@162 16939 exec 6>/dev/null
cannam@162 16940 ac_configure_extra_args="$ac_configure_extra_args --silent"
cannam@162 16941 fi
cannam@162 16942
cannam@162 16943 _ACEOF
cannam@162 16944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@162 16945 if \$ac_cs_recheck; then
cannam@162 16946 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cannam@162 16947 shift
cannam@162 16948 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
cannam@162 16949 CONFIG_SHELL='$SHELL'
cannam@162 16950 export CONFIG_SHELL
cannam@162 16951 exec "\$@"
cannam@162 16952 fi
cannam@162 16953
cannam@162 16954 _ACEOF
cannam@162 16955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@162 16956 exec 5>>config.log
cannam@162 16957 {
cannam@162 16958 echo
cannam@162 16959 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
cannam@162 16960 ## Running $as_me. ##
cannam@162 16961 _ASBOX
cannam@162 16962 $as_echo "$ac_log"
cannam@162 16963 } >&5
cannam@162 16964
cannam@162 16965 _ACEOF
cannam@162 16966 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@162 16967 #
cannam@162 16968 # INIT-COMMANDS
cannam@162 16969 #
cannam@162 16970
cannam@162 16971
cannam@162 16972 # The HP-UX ksh and POSIX shell print the target directory to stdout
cannam@162 16973 # if CDPATH is set.
cannam@162 16974 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cannam@162 16975
cannam@162 16976 sed_quote_subst='$sed_quote_subst'
cannam@162 16977 double_quote_subst='$double_quote_subst'
cannam@162 16978 delay_variable_subst='$delay_variable_subst'
cannam@162 16979 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
cannam@162 16980 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
cannam@162 16981 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
cannam@162 16982 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
cannam@162 16983 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
cannam@162 16984 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
cannam@162 16985 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
cannam@162 16986 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
cannam@162 16987 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cannam@162 16988 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
cannam@162 16989 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
cannam@162 16990 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cannam@162 16991 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
cannam@162 16992 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
cannam@162 16993 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
cannam@162 16994 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
cannam@162 16995 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
cannam@162 16996 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
cannam@162 16997 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
cannam@162 16998 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
cannam@162 16999 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
cannam@162 17000 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
cannam@162 17001 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
cannam@162 17002 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
cannam@162 17003 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
cannam@162 17004 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
cannam@162 17005 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
cannam@162 17006 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
cannam@162 17007 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
cannam@162 17008 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
cannam@162 17009 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
cannam@162 17010 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cannam@162 17011 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
cannam@162 17012 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cannam@162 17013 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
cannam@162 17014 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
cannam@162 17015 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
cannam@162 17016 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cannam@162 17017 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
cannam@162 17018 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
cannam@162 17019 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cannam@162 17020 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
cannam@162 17021 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cannam@162 17022 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cannam@162 17023 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
cannam@162 17024 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
cannam@162 17025 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@162 17026 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@162 17027 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
cannam@162 17028 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
cannam@162 17029 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
cannam@162 17030 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
cannam@162 17031 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
cannam@162 17032 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
cannam@162 17033 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
cannam@162 17034 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
cannam@162 17035 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@162 17036 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@162 17037 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
cannam@162 17038 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cannam@162 17039 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
cannam@162 17040 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
cannam@162 17041 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cannam@162 17042 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cannam@162 17043 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cannam@162 17044 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
cannam@162 17045 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
cannam@162 17046 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cannam@162 17047 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cannam@162 17048 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
cannam@162 17049 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
cannam@162 17050 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
cannam@162 17051 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
cannam@162 17052 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
cannam@162 17053 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
cannam@162 17054 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
cannam@162 17055 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
cannam@162 17056 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
cannam@162 17057 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
cannam@162 17058 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
cannam@162 17059 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
cannam@162 17060 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
cannam@162 17061 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
cannam@162 17062 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
cannam@162 17063 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
cannam@162 17064 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
cannam@162 17065 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
cannam@162 17066 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
cannam@162 17067 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
cannam@162 17068 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
cannam@162 17069 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
cannam@162 17070 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cannam@162 17071 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
cannam@162 17072 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
cannam@162 17073 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
cannam@162 17074 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
cannam@162 17075 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
cannam@162 17076 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
cannam@162 17077 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
cannam@162 17078 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cannam@162 17079 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
cannam@162 17080 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
cannam@162 17081 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
cannam@162 17082 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
cannam@162 17083 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cannam@162 17084 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cannam@162 17085 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
cannam@162 17086 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
cannam@162 17087 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
cannam@162 17088 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
cannam@162 17089 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
cannam@162 17090 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
cannam@162 17091 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
cannam@162 17092 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
cannam@162 17093 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
cannam@162 17094 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
cannam@162 17095 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
cannam@162 17096 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
cannam@162 17097 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@162 17098 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@162 17099 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
cannam@162 17100 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
cannam@162 17101 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
cannam@162 17102 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
cannam@162 17103 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
cannam@162 17104 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
cannam@162 17105 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
cannam@162 17106 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
cannam@162 17107 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
cannam@162 17108 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
cannam@162 17109 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
cannam@162 17110 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
cannam@162 17111 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
cannam@162 17112 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
cannam@162 17113 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
cannam@162 17114 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
cannam@162 17115 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
cannam@162 17116 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17117 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17118 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17119 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17120 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17121 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17122 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17123 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17124 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17125 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17126 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17127 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17128 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17129 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17130 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17131 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17132 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17133 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17134 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17135 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17136 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17137 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17138 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17139 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17140 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17141 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17142 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17143 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17144 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17145 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17146 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17147 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17148 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17149 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17150 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17151 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17152 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17153 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17154 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17155 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17156 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17157 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17158 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17159 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17160 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17161 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17162 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17163 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cannam@162 17164
cannam@162 17165 LTCC='$LTCC'
cannam@162 17166 LTCFLAGS='$LTCFLAGS'
cannam@162 17167 compiler='$compiler_DEFAULT'
cannam@162 17168
cannam@162 17169 # A function that is used when there is no print builtin or printf.
cannam@162 17170 func_fallback_echo ()
cannam@162 17171 {
cannam@162 17172 eval 'cat <<_LTECHO_EOF
cannam@162 17173 \$1
cannam@162 17174 _LTECHO_EOF'
cannam@162 17175 }
cannam@162 17176
cannam@162 17177 # Quote evaled strings.
cannam@162 17178 for var in AS \
cannam@162 17179 DLLTOOL \
cannam@162 17180 OBJDUMP \
cannam@162 17181 SHELL \
cannam@162 17182 ECHO \
cannam@162 17183 PATH_SEPARATOR \
cannam@162 17184 SED \
cannam@162 17185 GREP \
cannam@162 17186 EGREP \
cannam@162 17187 FGREP \
cannam@162 17188 LD \
cannam@162 17189 NM \
cannam@162 17190 LN_S \
cannam@162 17191 lt_SP2NL \
cannam@162 17192 lt_NL2SP \
cannam@162 17193 reload_flag \
cannam@162 17194 deplibs_check_method \
cannam@162 17195 file_magic_cmd \
cannam@162 17196 file_magic_glob \
cannam@162 17197 want_nocaseglob \
cannam@162 17198 sharedlib_from_linklib_cmd \
cannam@162 17199 AR \
cannam@162 17200 AR_FLAGS \
cannam@162 17201 archiver_list_spec \
cannam@162 17202 STRIP \
cannam@162 17203 RANLIB \
cannam@162 17204 CC \
cannam@162 17205 CFLAGS \
cannam@162 17206 compiler \
cannam@162 17207 lt_cv_sys_global_symbol_pipe \
cannam@162 17208 lt_cv_sys_global_symbol_to_cdecl \
cannam@162 17209 lt_cv_sys_global_symbol_to_c_name_address \
cannam@162 17210 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cannam@162 17211 nm_file_list_spec \
cannam@162 17212 lt_prog_compiler_no_builtin_flag \
cannam@162 17213 lt_prog_compiler_pic \
cannam@162 17214 lt_prog_compiler_wl \
cannam@162 17215 lt_prog_compiler_static \
cannam@162 17216 lt_cv_prog_compiler_c_o \
cannam@162 17217 need_locks \
cannam@162 17218 MANIFEST_TOOL \
cannam@162 17219 DSYMUTIL \
cannam@162 17220 NMEDIT \
cannam@162 17221 LIPO \
cannam@162 17222 OTOOL \
cannam@162 17223 OTOOL64 \
cannam@162 17224 shrext_cmds \
cannam@162 17225 export_dynamic_flag_spec \
cannam@162 17226 whole_archive_flag_spec \
cannam@162 17227 compiler_needs_object \
cannam@162 17228 with_gnu_ld \
cannam@162 17229 allow_undefined_flag \
cannam@162 17230 no_undefined_flag \
cannam@162 17231 hardcode_libdir_flag_spec \
cannam@162 17232 hardcode_libdir_separator \
cannam@162 17233 exclude_expsyms \
cannam@162 17234 include_expsyms \
cannam@162 17235 file_list_spec \
cannam@162 17236 variables_saved_for_relink \
cannam@162 17237 libname_spec \
cannam@162 17238 library_names_spec \
cannam@162 17239 soname_spec \
cannam@162 17240 install_override_mode \
cannam@162 17241 finish_eval \
cannam@162 17242 old_striplib \
cannam@162 17243 striplib \
cannam@162 17244 compiler_lib_search_dirs \
cannam@162 17245 predep_objects \
cannam@162 17246 postdep_objects \
cannam@162 17247 predeps \
cannam@162 17248 postdeps \
cannam@162 17249 compiler_lib_search_path \
cannam@162 17250 LD_CXX \
cannam@162 17251 reload_flag_CXX \
cannam@162 17252 compiler_CXX \
cannam@162 17253 lt_prog_compiler_no_builtin_flag_CXX \
cannam@162 17254 lt_prog_compiler_pic_CXX \
cannam@162 17255 lt_prog_compiler_wl_CXX \
cannam@162 17256 lt_prog_compiler_static_CXX \
cannam@162 17257 lt_cv_prog_compiler_c_o_CXX \
cannam@162 17258 export_dynamic_flag_spec_CXX \
cannam@162 17259 whole_archive_flag_spec_CXX \
cannam@162 17260 compiler_needs_object_CXX \
cannam@162 17261 with_gnu_ld_CXX \
cannam@162 17262 allow_undefined_flag_CXX \
cannam@162 17263 no_undefined_flag_CXX \
cannam@162 17264 hardcode_libdir_flag_spec_CXX \
cannam@162 17265 hardcode_libdir_separator_CXX \
cannam@162 17266 exclude_expsyms_CXX \
cannam@162 17267 include_expsyms_CXX \
cannam@162 17268 file_list_spec_CXX \
cannam@162 17269 compiler_lib_search_dirs_CXX \
cannam@162 17270 predep_objects_CXX \
cannam@162 17271 postdep_objects_CXX \
cannam@162 17272 predeps_CXX \
cannam@162 17273 postdeps_CXX \
cannam@162 17274 compiler_lib_search_path_CXX; do
cannam@162 17275 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cannam@162 17276 *[\\\\\\\`\\"\\\$]*)
cannam@162 17277 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cannam@162 17278 ;;
cannam@162 17279 *)
cannam@162 17280 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
cannam@162 17281 ;;
cannam@162 17282 esac
cannam@162 17283 done
cannam@162 17284
cannam@162 17285 # Double-quote double-evaled strings.
cannam@162 17286 for var in reload_cmds \
cannam@162 17287 old_postinstall_cmds \
cannam@162 17288 old_postuninstall_cmds \
cannam@162 17289 old_archive_cmds \
cannam@162 17290 extract_expsyms_cmds \
cannam@162 17291 old_archive_from_new_cmds \
cannam@162 17292 old_archive_from_expsyms_cmds \
cannam@162 17293 archive_cmds \
cannam@162 17294 archive_expsym_cmds \
cannam@162 17295 module_cmds \
cannam@162 17296 module_expsym_cmds \
cannam@162 17297 export_symbols_cmds \
cannam@162 17298 prelink_cmds \
cannam@162 17299 postlink_cmds \
cannam@162 17300 postinstall_cmds \
cannam@162 17301 postuninstall_cmds \
cannam@162 17302 finish_cmds \
cannam@162 17303 sys_lib_search_path_spec \
cannam@162 17304 sys_lib_dlsearch_path_spec \
cannam@162 17305 reload_cmds_CXX \
cannam@162 17306 old_archive_cmds_CXX \
cannam@162 17307 old_archive_from_new_cmds_CXX \
cannam@162 17308 old_archive_from_expsyms_cmds_CXX \
cannam@162 17309 archive_cmds_CXX \
cannam@162 17310 archive_expsym_cmds_CXX \
cannam@162 17311 module_cmds_CXX \
cannam@162 17312 module_expsym_cmds_CXX \
cannam@162 17313 export_symbols_cmds_CXX \
cannam@162 17314 prelink_cmds_CXX \
cannam@162 17315 postlink_cmds_CXX; do
cannam@162 17316 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cannam@162 17317 *[\\\\\\\`\\"\\\$]*)
cannam@162 17318 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cannam@162 17319 ;;
cannam@162 17320 *)
cannam@162 17321 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
cannam@162 17322 ;;
cannam@162 17323 esac
cannam@162 17324 done
cannam@162 17325
cannam@162 17326 ac_aux_dir='$ac_aux_dir'
cannam@162 17327 xsi_shell='$xsi_shell'
cannam@162 17328 lt_shell_append='$lt_shell_append'
cannam@162 17329
cannam@162 17330 # See if we are running on zsh, and set the options which allow our
cannam@162 17331 # commands through without removal of \ escapes INIT.
cannam@162 17332 if test -n "\${ZSH_VERSION+set}" ; then
cannam@162 17333 setopt NO_GLOB_SUBST
cannam@162 17334 fi
cannam@162 17335
cannam@162 17336
cannam@162 17337 PACKAGE='$PACKAGE'
cannam@162 17338 VERSION='$VERSION'
cannam@162 17339 TIMESTAMP='$TIMESTAMP'
cannam@162 17340 RM='$RM'
cannam@162 17341 ofile='$ofile'
cannam@162 17342
cannam@162 17343
cannam@162 17344
cannam@162 17345
cannam@162 17346
cannam@162 17347
cannam@162 17348 _ACEOF
cannam@162 17349
cannam@162 17350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@162 17351
cannam@162 17352 # Handling of arguments.
cannam@162 17353 for ac_config_target in $ac_config_targets
cannam@162 17354 do
cannam@162 17355 case $ac_config_target in
cannam@162 17356 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cannam@162 17357 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
cannam@162 17358 "portaudio-2.0.pc") CONFIG_FILES="$CONFIG_FILES portaudio-2.0.pc" ;;
cannam@162 17359
cannam@162 17360 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cannam@162 17361 esac
cannam@162 17362 done
cannam@162 17363
cannam@162 17364
cannam@162 17365 # If the user did not use the arguments to specify the items to instantiate,
cannam@162 17366 # then the envvar interface is used. Set only those that are not.
cannam@162 17367 # We use the long form for the default assignment because of an extremely
cannam@162 17368 # bizarre bug on SunOS 4.1.3.
cannam@162 17369 if $ac_need_defaults; then
cannam@162 17370 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
cannam@162 17371 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
cannam@162 17372 fi
cannam@162 17373
cannam@162 17374 # Have a temporary directory for convenience. Make it in the build tree
cannam@162 17375 # simply because there is no reason against having it here, and in addition,
cannam@162 17376 # creating and moving files from /tmp can sometimes cause problems.
cannam@162 17377 # Hook for its removal unless debugging.
cannam@162 17378 # Note that there is a small window in which the directory will not be cleaned:
cannam@162 17379 # after its creation but before its name has been assigned to `$tmp'.
cannam@162 17380 $debug ||
cannam@162 17381 {
cannam@162 17382 tmp= ac_tmp=
cannam@162 17383 trap 'exit_status=$?
cannam@162 17384 : "${ac_tmp:=$tmp}"
cannam@162 17385 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cannam@162 17386 ' 0
cannam@162 17387 trap 'as_fn_exit 1' 1 2 13 15
cannam@162 17388 }
cannam@162 17389 # Create a (secure) tmp directory for tmp files.
cannam@162 17390
cannam@162 17391 {
cannam@162 17392 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cannam@162 17393 test -d "$tmp"
cannam@162 17394 } ||
cannam@162 17395 {
cannam@162 17396 tmp=./conf$$-$RANDOM
cannam@162 17397 (umask 077 && mkdir "$tmp")
cannam@162 17398 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cannam@162 17399 ac_tmp=$tmp
cannam@162 17400
cannam@162 17401 # Set up the scripts for CONFIG_FILES section.
cannam@162 17402 # No need to generate them if there are no CONFIG_FILES.
cannam@162 17403 # This happens for instance with `./config.status config.h'.
cannam@162 17404 if test -n "$CONFIG_FILES"; then
cannam@162 17405
cannam@162 17406
cannam@162 17407 ac_cr=`echo X | tr X '\015'`
cannam@162 17408 # On cygwin, bash can eat \r inside `` if the user requested igncr.
cannam@162 17409 # But we know of no other shell where ac_cr would be empty at this
cannam@162 17410 # point, so we can use a bashism as a fallback.
cannam@162 17411 if test "x$ac_cr" = x; then
cannam@162 17412 eval ac_cr=\$\'\\r\'
cannam@162 17413 fi
cannam@162 17414 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
cannam@162 17415 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cannam@162 17416 ac_cs_awk_cr='\\r'
cannam@162 17417 else
cannam@162 17418 ac_cs_awk_cr=$ac_cr
cannam@162 17419 fi
cannam@162 17420
cannam@162 17421 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cannam@162 17422 _ACEOF
cannam@162 17423
cannam@162 17424
cannam@162 17425 {
cannam@162 17426 echo "cat >conf$$subs.awk <<_ACEOF" &&
cannam@162 17427 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
cannam@162 17428 echo "_ACEOF"
cannam@162 17429 } >conf$$subs.sh ||
cannam@162 17430 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cannam@162 17431 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cannam@162 17432 ac_delim='%!_!# '
cannam@162 17433 for ac_last_try in false false false false false :; do
cannam@162 17434 . ./conf$$subs.sh ||
cannam@162 17435 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cannam@162 17436
cannam@162 17437 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
cannam@162 17438 if test $ac_delim_n = $ac_delim_num; then
cannam@162 17439 break
cannam@162 17440 elif $ac_last_try; then
cannam@162 17441 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cannam@162 17442 else
cannam@162 17443 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
cannam@162 17444 fi
cannam@162 17445 done
cannam@162 17446 rm -f conf$$subs.sh
cannam@162 17447
cannam@162 17448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@162 17449 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cannam@162 17450 _ACEOF
cannam@162 17451 sed -n '
cannam@162 17452 h
cannam@162 17453 s/^/S["/; s/!.*/"]=/
cannam@162 17454 p
cannam@162 17455 g
cannam@162 17456 s/^[^!]*!//
cannam@162 17457 :repl
cannam@162 17458 t repl
cannam@162 17459 s/'"$ac_delim"'$//
cannam@162 17460 t delim
cannam@162 17461 :nl
cannam@162 17462 h
cannam@162 17463 s/\(.\{148\}\)..*/\1/
cannam@162 17464 t more1
cannam@162 17465 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
cannam@162 17466 p
cannam@162 17467 n
cannam@162 17468 b repl
cannam@162 17469 :more1
cannam@162 17470 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
cannam@162 17471 p
cannam@162 17472 g
cannam@162 17473 s/.\{148\}//
cannam@162 17474 t nl
cannam@162 17475 :delim
cannam@162 17476 h
cannam@162 17477 s/\(.\{148\}\)..*/\1/
cannam@162 17478 t more2
cannam@162 17479 s/["\\]/\\&/g; s/^/"/; s/$/"/
cannam@162 17480 p
cannam@162 17481 b
cannam@162 17482 :more2
cannam@162 17483 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
cannam@162 17484 p
cannam@162 17485 g
cannam@162 17486 s/.\{148\}//
cannam@162 17487 t delim
cannam@162 17488 ' <conf$$subs.awk | sed '
cannam@162 17489 /^[^""]/{
cannam@162 17490 N
cannam@162 17491 s/\n//
cannam@162 17492 }
cannam@162 17493 ' >>$CONFIG_STATUS || ac_write_fail=1
cannam@162 17494 rm -f conf$$subs.awk
cannam@162 17495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@162 17496 _ACAWK
cannam@162 17497 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cannam@162 17498 for (key in S) S_is_set[key] = 1
cannam@162 17499 FS = ""
cannam@162 17500
cannam@162 17501 }
cannam@162 17502 {
cannam@162 17503 line = $ 0
cannam@162 17504 nfields = split(line, field, "@")
cannam@162 17505 substed = 0
cannam@162 17506 len = length(field[1])
cannam@162 17507 for (i = 2; i < nfields; i++) {
cannam@162 17508 key = field[i]
cannam@162 17509 keylen = length(key)
cannam@162 17510 if (S_is_set[key]) {
cannam@162 17511 value = S[key]
cannam@162 17512 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
cannam@162 17513 len += length(value) + length(field[++i])
cannam@162 17514 substed = 1
cannam@162 17515 } else
cannam@162 17516 len += 1 + keylen
cannam@162 17517 }
cannam@162 17518
cannam@162 17519 print line
cannam@162 17520 }
cannam@162 17521
cannam@162 17522 _ACAWK
cannam@162 17523 _ACEOF
cannam@162 17524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@162 17525 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
cannam@162 17526 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
cannam@162 17527 else
cannam@162 17528 cat
cannam@162 17529 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cannam@162 17530 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cannam@162 17531 _ACEOF
cannam@162 17532
cannam@162 17533 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
cannam@162 17534 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cannam@162 17535 # trailing colons and then remove the whole line if VPATH becomes empty
cannam@162 17536 # (actually we leave an empty line to preserve line numbers).
cannam@162 17537 if test "x$srcdir" = x.; then
cannam@162 17538 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
cannam@162 17539 h
cannam@162 17540 s///
cannam@162 17541 s/^/:/
cannam@162 17542 s/[ ]*$/:/
cannam@162 17543 s/:\$(srcdir):/:/g
cannam@162 17544 s/:\${srcdir}:/:/g
cannam@162 17545 s/:@srcdir@:/:/g
cannam@162 17546 s/^:*//
cannam@162 17547 s/:*$//
cannam@162 17548 x
cannam@162 17549 s/\(=[ ]*\).*/\1/
cannam@162 17550 G
cannam@162 17551 s/\n//
cannam@162 17552 s/^[^=]*=[ ]*$//
cannam@162 17553 }'
cannam@162 17554 fi
cannam@162 17555
cannam@162 17556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@162 17557 fi # test -n "$CONFIG_FILES"
cannam@162 17558
cannam@162 17559
cannam@162 17560 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
cannam@162 17561 shift
cannam@162 17562 for ac_tag
cannam@162 17563 do
cannam@162 17564 case $ac_tag in
cannam@162 17565 :[FHLC]) ac_mode=$ac_tag; continue;;
cannam@162 17566 esac
cannam@162 17567 case $ac_mode$ac_tag in
cannam@162 17568 :[FHL]*:*);;
cannam@162 17569 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cannam@162 17570 :[FH]-) ac_tag=-:-;;
cannam@162 17571 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
cannam@162 17572 esac
cannam@162 17573 ac_save_IFS=$IFS
cannam@162 17574 IFS=:
cannam@162 17575 set x $ac_tag
cannam@162 17576 IFS=$ac_save_IFS
cannam@162 17577 shift
cannam@162 17578 ac_file=$1
cannam@162 17579 shift
cannam@162 17580
cannam@162 17581 case $ac_mode in
cannam@162 17582 :L) ac_source=$1;;
cannam@162 17583 :[FH])
cannam@162 17584 ac_file_inputs=
cannam@162 17585 for ac_f
cannam@162 17586 do
cannam@162 17587 case $ac_f in
cannam@162 17588 -) ac_f="$ac_tmp/stdin";;
cannam@162 17589 *) # Look for the file first in the build tree, then in the source tree
cannam@162 17590 # (if the path is not absolute). The absolute path cannot be DOS-style,
cannam@162 17591 # because $ac_f cannot contain `:'.
cannam@162 17592 test -f "$ac_f" ||
cannam@162 17593 case $ac_f in
cannam@162 17594 [\\/$]*) false;;
cannam@162 17595 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
cannam@162 17596 esac ||
cannam@162 17597 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cannam@162 17598 esac
cannam@162 17599 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cannam@162 17600 as_fn_append ac_file_inputs " '$ac_f'"
cannam@162 17601 done
cannam@162 17602
cannam@162 17603 # Let's still pretend it is `configure' which instantiates (i.e., don't
cannam@162 17604 # use $as_me), people would be surprised to read:
cannam@162 17605 # /* config.h. Generated by config.status. */
cannam@162 17606 configure_input='Generated from '`
cannam@162 17607 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
cannam@162 17608 `' by configure.'
cannam@162 17609 if test x"$ac_file" != x-; then
cannam@162 17610 configure_input="$ac_file. $configure_input"
cannam@162 17611 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cannam@162 17612 $as_echo "$as_me: creating $ac_file" >&6;}
cannam@162 17613 fi
cannam@162 17614 # Neutralize special characters interpreted by sed in replacement strings.
cannam@162 17615 case $configure_input in #(
cannam@162 17616 *\&* | *\|* | *\\* )
cannam@162 17617 ac_sed_conf_input=`$as_echo "$configure_input" |
cannam@162 17618 sed 's/[\\\\&|]/\\\\&/g'`;; #(
cannam@162 17619 *) ac_sed_conf_input=$configure_input;;
cannam@162 17620 esac
cannam@162 17621
cannam@162 17622 case $ac_tag in
cannam@162 17623 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cannam@162 17624 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cannam@162 17625 esac
cannam@162 17626 ;;
cannam@162 17627 esac
cannam@162 17628
cannam@162 17629 ac_dir=`$as_dirname -- "$ac_file" ||
cannam@162 17630 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@162 17631 X"$ac_file" : 'X\(//\)[^/]' \| \
cannam@162 17632 X"$ac_file" : 'X\(//\)$' \| \
cannam@162 17633 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
cannam@162 17634 $as_echo X"$ac_file" |
cannam@162 17635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@162 17636 s//\1/
cannam@162 17637 q
cannam@162 17638 }
cannam@162 17639 /^X\(\/\/\)[^/].*/{
cannam@162 17640 s//\1/
cannam@162 17641 q
cannam@162 17642 }
cannam@162 17643 /^X\(\/\/\)$/{
cannam@162 17644 s//\1/
cannam@162 17645 q
cannam@162 17646 }
cannam@162 17647 /^X\(\/\).*/{
cannam@162 17648 s//\1/
cannam@162 17649 q
cannam@162 17650 }
cannam@162 17651 s/.*/./; q'`
cannam@162 17652 as_dir="$ac_dir"; as_fn_mkdir_p
cannam@162 17653 ac_builddir=.
cannam@162 17654
cannam@162 17655 case "$ac_dir" in
cannam@162 17656 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@162 17657 *)
cannam@162 17658 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
cannam@162 17659 # A ".." for each directory in $ac_dir_suffix.
cannam@162 17660 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
cannam@162 17661 case $ac_top_builddir_sub in
cannam@162 17662 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@162 17663 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
cannam@162 17664 esac ;;
cannam@162 17665 esac
cannam@162 17666 ac_abs_top_builddir=$ac_pwd
cannam@162 17667 ac_abs_builddir=$ac_pwd$ac_dir_suffix
cannam@162 17668 # for backward compatibility:
cannam@162 17669 ac_top_builddir=$ac_top_build_prefix
cannam@162 17670
cannam@162 17671 case $srcdir in
cannam@162 17672 .) # We are building in place.
cannam@162 17673 ac_srcdir=.
cannam@162 17674 ac_top_srcdir=$ac_top_builddir_sub
cannam@162 17675 ac_abs_top_srcdir=$ac_pwd ;;
cannam@162 17676 [\\/]* | ?:[\\/]* ) # Absolute name.
cannam@162 17677 ac_srcdir=$srcdir$ac_dir_suffix;
cannam@162 17678 ac_top_srcdir=$srcdir
cannam@162 17679 ac_abs_top_srcdir=$srcdir ;;
cannam@162 17680 *) # Relative name.
cannam@162 17681 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
cannam@162 17682 ac_top_srcdir=$ac_top_build_prefix$srcdir
cannam@162 17683 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
cannam@162 17684 esac
cannam@162 17685 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
cannam@162 17686
cannam@162 17687
cannam@162 17688 case $ac_mode in
cannam@162 17689 :F)
cannam@162 17690 #
cannam@162 17691 # CONFIG_FILE
cannam@162 17692 #
cannam@162 17693
cannam@162 17694 case $INSTALL in
cannam@162 17695 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cannam@162 17696 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
cannam@162 17697 esac
cannam@162 17698 _ACEOF
cannam@162 17699
cannam@162 17700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@162 17701 # If the template does not know about datarootdir, expand it.
cannam@162 17702 # FIXME: This hack should be removed a few years after 2.60.
cannam@162 17703 ac_datarootdir_hack=; ac_datarootdir_seen=
cannam@162 17704 ac_sed_dataroot='
cannam@162 17705 /datarootdir/ {
cannam@162 17706 p
cannam@162 17707 q
cannam@162 17708 }
cannam@162 17709 /@datadir@/p
cannam@162 17710 /@docdir@/p
cannam@162 17711 /@infodir@/p
cannam@162 17712 /@localedir@/p
cannam@162 17713 /@mandir@/p'
cannam@162 17714 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
cannam@162 17715 *datarootdir*) ac_datarootdir_seen=yes;;
cannam@162 17716 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cannam@162 17717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cannam@162 17718 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
cannam@162 17719 _ACEOF
cannam@162 17720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@162 17721 ac_datarootdir_hack='
cannam@162 17722 s&@datadir@&$datadir&g
cannam@162 17723 s&@docdir@&$docdir&g
cannam@162 17724 s&@infodir@&$infodir&g
cannam@162 17725 s&@localedir@&$localedir&g
cannam@162 17726 s&@mandir@&$mandir&g
cannam@162 17727 s&\\\${datarootdir}&$datarootdir&g' ;;
cannam@162 17728 esac
cannam@162 17729 _ACEOF
cannam@162 17730
cannam@162 17731 # Neutralize VPATH when `$srcdir' = `.'.
cannam@162 17732 # Shell code in configure.ac might set extrasub.
cannam@162 17733 # FIXME: do we really want to maintain this feature?
cannam@162 17734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@162 17735 ac_sed_extra="$ac_vpsub
cannam@162 17736 $extrasub
cannam@162 17737 _ACEOF
cannam@162 17738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@162 17739 :t
cannam@162 17740 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
cannam@162 17741 s|@configure_input@|$ac_sed_conf_input|;t t
cannam@162 17742 s&@top_builddir@&$ac_top_builddir_sub&;t t
cannam@162 17743 s&@top_build_prefix@&$ac_top_build_prefix&;t t
cannam@162 17744 s&@srcdir@&$ac_srcdir&;t t
cannam@162 17745 s&@abs_srcdir@&$ac_abs_srcdir&;t t
cannam@162 17746 s&@top_srcdir@&$ac_top_srcdir&;t t
cannam@162 17747 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
cannam@162 17748 s&@builddir@&$ac_builddir&;t t
cannam@162 17749 s&@abs_builddir@&$ac_abs_builddir&;t t
cannam@162 17750 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
cannam@162 17751 s&@INSTALL@&$ac_INSTALL&;t t
cannam@162 17752 $ac_datarootdir_hack
cannam@162 17753 "
cannam@162 17754 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
cannam@162 17755 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@162 17756
cannam@162 17757 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cannam@162 17758 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
cannam@162 17759 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
cannam@162 17760 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cannam@162 17761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cannam@162 17762 which seems to be undefined. Please make sure it is defined" >&5
cannam@162 17763 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cannam@162 17764 which seems to be undefined. Please make sure it is defined" >&2;}
cannam@162 17765
cannam@162 17766 rm -f "$ac_tmp/stdin"
cannam@162 17767 case $ac_file in
cannam@162 17768 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
cannam@162 17769 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cannam@162 17770 esac \
cannam@162 17771 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@162 17772 ;;
cannam@162 17773
cannam@162 17774
cannam@162 17775 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cannam@162 17776 $as_echo "$as_me: executing $ac_file commands" >&6;}
cannam@162 17777 ;;
cannam@162 17778 esac
cannam@162 17779
cannam@162 17780
cannam@162 17781 case $ac_file$ac_mode in
cannam@162 17782 "libtool":C)
cannam@162 17783
cannam@162 17784 # See if we are running on zsh, and set the options which allow our
cannam@162 17785 # commands through without removal of \ escapes.
cannam@162 17786 if test -n "${ZSH_VERSION+set}" ; then
cannam@162 17787 setopt NO_GLOB_SUBST
cannam@162 17788 fi
cannam@162 17789
cannam@162 17790 cfgfile="${ofile}T"
cannam@162 17791 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
cannam@162 17792 $RM "$cfgfile"
cannam@162 17793
cannam@162 17794 cat <<_LT_EOF >> "$cfgfile"
cannam@162 17795 #! $SHELL
cannam@162 17796
cannam@162 17797 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
cannam@162 17798 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
cannam@162 17799 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
cannam@162 17800 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
cannam@162 17801 #
cannam@162 17802 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cannam@162 17803 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
cannam@162 17804 # Foundation, Inc.
cannam@162 17805 # Written by Gordon Matzigkeit, 1996
cannam@162 17806 #
cannam@162 17807 # This file is part of GNU Libtool.
cannam@162 17808 #
cannam@162 17809 # GNU Libtool is free software; you can redistribute it and/or
cannam@162 17810 # modify it under the terms of the GNU General Public License as
cannam@162 17811 # published by the Free Software Foundation; either version 2 of
cannam@162 17812 # the License, or (at your option) any later version.
cannam@162 17813 #
cannam@162 17814 # As a special exception to the GNU General Public License,
cannam@162 17815 # if you distribute this file as part of a program or library that
cannam@162 17816 # is built using GNU Libtool, you may include this file under the
cannam@162 17817 # same distribution terms that you use for the rest of that program.
cannam@162 17818 #
cannam@162 17819 # GNU Libtool is distributed in the hope that it will be useful,
cannam@162 17820 # but WITHOUT ANY WARRANTY; without even the implied warranty of
cannam@162 17821 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cannam@162 17822 # GNU General Public License for more details.
cannam@162 17823 #
cannam@162 17824 # You should have received a copy of the GNU General Public License
cannam@162 17825 # along with GNU Libtool; see the file COPYING. If not, a copy
cannam@162 17826 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
cannam@162 17827 # obtained by writing to the Free Software Foundation, Inc.,
cannam@162 17828 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
cannam@162 17829
cannam@162 17830
cannam@162 17831 # The names of the tagged configurations supported by this script.
cannam@162 17832 available_tags="CXX "
cannam@162 17833
cannam@162 17834 # ### BEGIN LIBTOOL CONFIG
cannam@162 17835
cannam@162 17836 # Assembler program.
cannam@162 17837 AS=$lt_AS
cannam@162 17838
cannam@162 17839 # DLL creation program.
cannam@162 17840 DLLTOOL=$lt_DLLTOOL
cannam@162 17841
cannam@162 17842 # Object dumper program.
cannam@162 17843 OBJDUMP=$lt_OBJDUMP
cannam@162 17844
cannam@162 17845 # Which release of libtool.m4 was used?
cannam@162 17846 macro_version=$macro_version
cannam@162 17847 macro_revision=$macro_revision
cannam@162 17848
cannam@162 17849 # Whether or not to build shared libraries.
cannam@162 17850 build_libtool_libs=$enable_shared
cannam@162 17851
cannam@162 17852 # Whether or not to build static libraries.
cannam@162 17853 build_old_libs=$enable_static
cannam@162 17854
cannam@162 17855 # What type of objects to build.
cannam@162 17856 pic_mode=$pic_mode
cannam@162 17857
cannam@162 17858 # Whether or not to optimize for fast installation.
cannam@162 17859 fast_install=$enable_fast_install
cannam@162 17860
cannam@162 17861 # Shell to use when invoking shell scripts.
cannam@162 17862 SHELL=$lt_SHELL
cannam@162 17863
cannam@162 17864 # An echo program that protects backslashes.
cannam@162 17865 ECHO=$lt_ECHO
cannam@162 17866
cannam@162 17867 # The PATH separator for the build system.
cannam@162 17868 PATH_SEPARATOR=$lt_PATH_SEPARATOR
cannam@162 17869
cannam@162 17870 # The host system.
cannam@162 17871 host_alias=$host_alias
cannam@162 17872 host=$host
cannam@162 17873 host_os=$host_os
cannam@162 17874
cannam@162 17875 # The build system.
cannam@162 17876 build_alias=$build_alias
cannam@162 17877 build=$build
cannam@162 17878 build_os=$build_os
cannam@162 17879
cannam@162 17880 # A sed program that does not truncate output.
cannam@162 17881 SED=$lt_SED
cannam@162 17882
cannam@162 17883 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
cannam@162 17884 Xsed="\$SED -e 1s/^X//"
cannam@162 17885
cannam@162 17886 # A grep program that handles long lines.
cannam@162 17887 GREP=$lt_GREP
cannam@162 17888
cannam@162 17889 # An ERE matcher.
cannam@162 17890 EGREP=$lt_EGREP
cannam@162 17891
cannam@162 17892 # A literal string matcher.
cannam@162 17893 FGREP=$lt_FGREP
cannam@162 17894
cannam@162 17895 # A BSD- or MS-compatible name lister.
cannam@162 17896 NM=$lt_NM
cannam@162 17897
cannam@162 17898 # Whether we need soft or hard links.
cannam@162 17899 LN_S=$lt_LN_S
cannam@162 17900
cannam@162 17901 # What is the maximum length of a command?
cannam@162 17902 max_cmd_len=$max_cmd_len
cannam@162 17903
cannam@162 17904 # Object file suffix (normally "o").
cannam@162 17905 objext=$ac_objext
cannam@162 17906
cannam@162 17907 # Executable file suffix (normally "").
cannam@162 17908 exeext=$exeext
cannam@162 17909
cannam@162 17910 # whether the shell understands "unset".
cannam@162 17911 lt_unset=$lt_unset
cannam@162 17912
cannam@162 17913 # turn spaces into newlines.
cannam@162 17914 SP2NL=$lt_lt_SP2NL
cannam@162 17915
cannam@162 17916 # turn newlines into spaces.
cannam@162 17917 NL2SP=$lt_lt_NL2SP
cannam@162 17918
cannam@162 17919 # convert \$build file names to \$host format.
cannam@162 17920 to_host_file_cmd=$lt_cv_to_host_file_cmd
cannam@162 17921
cannam@162 17922 # convert \$build files to toolchain format.
cannam@162 17923 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
cannam@162 17924
cannam@162 17925 # Method to check whether dependent libraries are shared objects.
cannam@162 17926 deplibs_check_method=$lt_deplibs_check_method
cannam@162 17927
cannam@162 17928 # Command to use when deplibs_check_method = "file_magic".
cannam@162 17929 file_magic_cmd=$lt_file_magic_cmd
cannam@162 17930
cannam@162 17931 # How to find potential files when deplibs_check_method = "file_magic".
cannam@162 17932 file_magic_glob=$lt_file_magic_glob
cannam@162 17933
cannam@162 17934 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
cannam@162 17935 want_nocaseglob=$lt_want_nocaseglob
cannam@162 17936
cannam@162 17937 # Command to associate shared and link libraries.
cannam@162 17938 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
cannam@162 17939
cannam@162 17940 # The archiver.
cannam@162 17941 AR=$lt_AR
cannam@162 17942
cannam@162 17943 # Flags to create an archive.
cannam@162 17944 AR_FLAGS=$lt_AR_FLAGS
cannam@162 17945
cannam@162 17946 # How to feed a file listing to the archiver.
cannam@162 17947 archiver_list_spec=$lt_archiver_list_spec
cannam@162 17948
cannam@162 17949 # A symbol stripping program.
cannam@162 17950 STRIP=$lt_STRIP
cannam@162 17951
cannam@162 17952 # Commands used to install an old-style archive.
cannam@162 17953 RANLIB=$lt_RANLIB
cannam@162 17954 old_postinstall_cmds=$lt_old_postinstall_cmds
cannam@162 17955 old_postuninstall_cmds=$lt_old_postuninstall_cmds
cannam@162 17956
cannam@162 17957 # Whether to use a lock for old archive extraction.
cannam@162 17958 lock_old_archive_extraction=$lock_old_archive_extraction
cannam@162 17959
cannam@162 17960 # A C compiler.
cannam@162 17961 LTCC=$lt_CC
cannam@162 17962
cannam@162 17963 # LTCC compiler flags.
cannam@162 17964 LTCFLAGS=$lt_CFLAGS
cannam@162 17965
cannam@162 17966 # Take the output of nm and produce a listing of raw symbols and C names.
cannam@162 17967 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
cannam@162 17968
cannam@162 17969 # Transform the output of nm in a proper C declaration.
cannam@162 17970 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
cannam@162 17971
cannam@162 17972 # Transform the output of nm in a C name address pair.
cannam@162 17973 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
cannam@162 17974
cannam@162 17975 # Transform the output of nm in a C name address pair when lib prefix is needed.
cannam@162 17976 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
cannam@162 17977
cannam@162 17978 # Specify filename containing input files for \$NM.
cannam@162 17979 nm_file_list_spec=$lt_nm_file_list_spec
cannam@162 17980
cannam@162 17981 # The root where to search for dependent libraries,and in which our libraries should be installed.
cannam@162 17982 lt_sysroot=$lt_sysroot
cannam@162 17983
cannam@162 17984 # The name of the directory that contains temporary libtool files.
cannam@162 17985 objdir=$objdir
cannam@162 17986
cannam@162 17987 # Used to examine libraries when file_magic_cmd begins with "file".
cannam@162 17988 MAGIC_CMD=$MAGIC_CMD
cannam@162 17989
cannam@162 17990 # Must we lock files when doing compilation?
cannam@162 17991 need_locks=$lt_need_locks
cannam@162 17992
cannam@162 17993 # Manifest tool.
cannam@162 17994 MANIFEST_TOOL=$lt_MANIFEST_TOOL
cannam@162 17995
cannam@162 17996 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
cannam@162 17997 DSYMUTIL=$lt_DSYMUTIL
cannam@162 17998
cannam@162 17999 # Tool to change global to local symbols on Mac OS X.
cannam@162 18000 NMEDIT=$lt_NMEDIT
cannam@162 18001
cannam@162 18002 # Tool to manipulate fat objects and archives on Mac OS X.
cannam@162 18003 LIPO=$lt_LIPO
cannam@162 18004
cannam@162 18005 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
cannam@162 18006 OTOOL=$lt_OTOOL
cannam@162 18007
cannam@162 18008 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
cannam@162 18009 OTOOL64=$lt_OTOOL64
cannam@162 18010
cannam@162 18011 # Old archive suffix (normally "a").
cannam@162 18012 libext=$libext
cannam@162 18013
cannam@162 18014 # Shared library suffix (normally ".so").
cannam@162 18015 shrext_cmds=$lt_shrext_cmds
cannam@162 18016
cannam@162 18017 # The commands to extract the exported symbol list from a shared archive.
cannam@162 18018 extract_expsyms_cmds=$lt_extract_expsyms_cmds
cannam@162 18019
cannam@162 18020 # Variables whose values should be saved in libtool wrapper scripts and
cannam@162 18021 # restored at link time.
cannam@162 18022 variables_saved_for_relink=$lt_variables_saved_for_relink
cannam@162 18023
cannam@162 18024 # Do we need the "lib" prefix for modules?
cannam@162 18025 need_lib_prefix=$need_lib_prefix
cannam@162 18026
cannam@162 18027 # Do we need a version for libraries?
cannam@162 18028 need_version=$need_version
cannam@162 18029
cannam@162 18030 # Library versioning type.
cannam@162 18031 version_type=$version_type
cannam@162 18032
cannam@162 18033 # Shared library runtime path variable.
cannam@162 18034 runpath_var=$runpath_var
cannam@162 18035
cannam@162 18036 # Shared library path variable.
cannam@162 18037 shlibpath_var=$shlibpath_var
cannam@162 18038
cannam@162 18039 # Is shlibpath searched before the hard-coded library search path?
cannam@162 18040 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
cannam@162 18041
cannam@162 18042 # Format of library name prefix.
cannam@162 18043 libname_spec=$lt_libname_spec
cannam@162 18044
cannam@162 18045 # List of archive names. First name is the real one, the rest are links.
cannam@162 18046 # The last name is the one that the linker finds with -lNAME
cannam@162 18047 library_names_spec=$lt_library_names_spec
cannam@162 18048
cannam@162 18049 # The coded name of the library, if different from the real name.
cannam@162 18050 soname_spec=$lt_soname_spec
cannam@162 18051
cannam@162 18052 # Permission mode override for installation of shared libraries.
cannam@162 18053 install_override_mode=$lt_install_override_mode
cannam@162 18054
cannam@162 18055 # Command to use after installation of a shared archive.
cannam@162 18056 postinstall_cmds=$lt_postinstall_cmds
cannam@162 18057
cannam@162 18058 # Command to use after uninstallation of a shared archive.
cannam@162 18059 postuninstall_cmds=$lt_postuninstall_cmds
cannam@162 18060
cannam@162 18061 # Commands used to finish a libtool library installation in a directory.
cannam@162 18062 finish_cmds=$lt_finish_cmds
cannam@162 18063
cannam@162 18064 # As "finish_cmds", except a single script fragment to be evaled but
cannam@162 18065 # not shown.
cannam@162 18066 finish_eval=$lt_finish_eval
cannam@162 18067
cannam@162 18068 # Whether we should hardcode library paths into libraries.
cannam@162 18069 hardcode_into_libs=$hardcode_into_libs
cannam@162 18070
cannam@162 18071 # Compile-time system search path for libraries.
cannam@162 18072 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
cannam@162 18073
cannam@162 18074 # Run-time system search path for libraries.
cannam@162 18075 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
cannam@162 18076
cannam@162 18077 # Whether dlopen is supported.
cannam@162 18078 dlopen_support=$enable_dlopen
cannam@162 18079
cannam@162 18080 # Whether dlopen of programs is supported.
cannam@162 18081 dlopen_self=$enable_dlopen_self
cannam@162 18082
cannam@162 18083 # Whether dlopen of statically linked programs is supported.
cannam@162 18084 dlopen_self_static=$enable_dlopen_self_static
cannam@162 18085
cannam@162 18086 # Commands to strip libraries.
cannam@162 18087 old_striplib=$lt_old_striplib
cannam@162 18088 striplib=$lt_striplib
cannam@162 18089
cannam@162 18090
cannam@162 18091 # The linker used to build libraries.
cannam@162 18092 LD=$lt_LD
cannam@162 18093
cannam@162 18094 # How to create reloadable object files.
cannam@162 18095 reload_flag=$lt_reload_flag
cannam@162 18096 reload_cmds=$lt_reload_cmds
cannam@162 18097
cannam@162 18098 # Commands used to build an old-style archive.
cannam@162 18099 old_archive_cmds=$lt_old_archive_cmds
cannam@162 18100
cannam@162 18101 # A language specific compiler.
cannam@162 18102 CC=$lt_compiler
cannam@162 18103
cannam@162 18104 # Is the compiler the GNU compiler?
cannam@162 18105 with_gcc=$GCC
cannam@162 18106
cannam@162 18107 # Compiler flag to turn off builtin functions.
cannam@162 18108 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
cannam@162 18109
cannam@162 18110 # Additional compiler flags for building library objects.
cannam@162 18111 pic_flag=$lt_lt_prog_compiler_pic
cannam@162 18112
cannam@162 18113 # How to pass a linker flag through the compiler.
cannam@162 18114 wl=$lt_lt_prog_compiler_wl
cannam@162 18115
cannam@162 18116 # Compiler flag to prevent dynamic linking.
cannam@162 18117 link_static_flag=$lt_lt_prog_compiler_static
cannam@162 18118
cannam@162 18119 # Does compiler simultaneously support -c and -o options?
cannam@162 18120 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
cannam@162 18121
cannam@162 18122 # Whether or not to add -lc for building shared libraries.
cannam@162 18123 build_libtool_need_lc=$archive_cmds_need_lc
cannam@162 18124
cannam@162 18125 # Whether or not to disallow shared libs when runtime libs are static.
cannam@162 18126 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
cannam@162 18127
cannam@162 18128 # Compiler flag to allow reflexive dlopens.
cannam@162 18129 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
cannam@162 18130
cannam@162 18131 # Compiler flag to generate shared objects directly from archives.
cannam@162 18132 whole_archive_flag_spec=$lt_whole_archive_flag_spec
cannam@162 18133
cannam@162 18134 # Whether the compiler copes with passing no objects directly.
cannam@162 18135 compiler_needs_object=$lt_compiler_needs_object
cannam@162 18136
cannam@162 18137 # Create an old-style archive from a shared archive.
cannam@162 18138 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
cannam@162 18139
cannam@162 18140 # Create a temporary old-style archive to link instead of a shared archive.
cannam@162 18141 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
cannam@162 18142
cannam@162 18143 # Commands used to build a shared archive.
cannam@162 18144 archive_cmds=$lt_archive_cmds
cannam@162 18145 archive_expsym_cmds=$lt_archive_expsym_cmds
cannam@162 18146
cannam@162 18147 # Commands used to build a loadable module if different from building
cannam@162 18148 # a shared archive.
cannam@162 18149 module_cmds=$lt_module_cmds
cannam@162 18150 module_expsym_cmds=$lt_module_expsym_cmds
cannam@162 18151
cannam@162 18152 # Whether we are building with GNU ld or not.
cannam@162 18153 with_gnu_ld=$lt_with_gnu_ld
cannam@162 18154
cannam@162 18155 # Flag that allows shared libraries with undefined symbols to be built.
cannam@162 18156 allow_undefined_flag=$lt_allow_undefined_flag
cannam@162 18157
cannam@162 18158 # Flag that enforces no undefined symbols.
cannam@162 18159 no_undefined_flag=$lt_no_undefined_flag
cannam@162 18160
cannam@162 18161 # Flag to hardcode \$libdir into a binary during linking.
cannam@162 18162 # This must work even if \$libdir does not exist
cannam@162 18163 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
cannam@162 18164
cannam@162 18165 # Whether we need a single "-rpath" flag with a separated argument.
cannam@162 18166 hardcode_libdir_separator=$lt_hardcode_libdir_separator
cannam@162 18167
cannam@162 18168 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
cannam@162 18169 # DIR into the resulting binary.
cannam@162 18170 hardcode_direct=$hardcode_direct
cannam@162 18171
cannam@162 18172 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
cannam@162 18173 # DIR into the resulting binary and the resulting library dependency is
cannam@162 18174 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
cannam@162 18175 # library is relocated.
cannam@162 18176 hardcode_direct_absolute=$hardcode_direct_absolute
cannam@162 18177
cannam@162 18178 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
cannam@162 18179 # into the resulting binary.
cannam@162 18180 hardcode_minus_L=$hardcode_minus_L
cannam@162 18181
cannam@162 18182 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
cannam@162 18183 # into the resulting binary.
cannam@162 18184 hardcode_shlibpath_var=$hardcode_shlibpath_var
cannam@162 18185
cannam@162 18186 # Set to "yes" if building a shared library automatically hardcodes DIR
cannam@162 18187 # into the library and all subsequent libraries and executables linked
cannam@162 18188 # against it.
cannam@162 18189 hardcode_automatic=$hardcode_automatic
cannam@162 18190
cannam@162 18191 # Set to yes if linker adds runtime paths of dependent libraries
cannam@162 18192 # to runtime path list.
cannam@162 18193 inherit_rpath=$inherit_rpath
cannam@162 18194
cannam@162 18195 # Whether libtool must link a program against all its dependency libraries.
cannam@162 18196 link_all_deplibs=$link_all_deplibs
cannam@162 18197
cannam@162 18198 # Set to "yes" if exported symbols are required.
cannam@162 18199 always_export_symbols=$always_export_symbols
cannam@162 18200
cannam@162 18201 # The commands to list exported symbols.
cannam@162 18202 export_symbols_cmds=$lt_export_symbols_cmds
cannam@162 18203
cannam@162 18204 # Symbols that should not be listed in the preloaded symbols.
cannam@162 18205 exclude_expsyms=$lt_exclude_expsyms
cannam@162 18206
cannam@162 18207 # Symbols that must always be exported.
cannam@162 18208 include_expsyms=$lt_include_expsyms
cannam@162 18209
cannam@162 18210 # Commands necessary for linking programs (against libraries) with templates.
cannam@162 18211 prelink_cmds=$lt_prelink_cmds
cannam@162 18212
cannam@162 18213 # Commands necessary for finishing linking programs.
cannam@162 18214 postlink_cmds=$lt_postlink_cmds
cannam@162 18215
cannam@162 18216 # Specify filename containing input files.
cannam@162 18217 file_list_spec=$lt_file_list_spec
cannam@162 18218
cannam@162 18219 # How to hardcode a shared library path into an executable.
cannam@162 18220 hardcode_action=$hardcode_action
cannam@162 18221
cannam@162 18222 # The directories searched by this compiler when creating a shared library.
cannam@162 18223 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
cannam@162 18224
cannam@162 18225 # Dependencies to place before and after the objects being linked to
cannam@162 18226 # create a shared library.
cannam@162 18227 predep_objects=$lt_predep_objects
cannam@162 18228 postdep_objects=$lt_postdep_objects
cannam@162 18229 predeps=$lt_predeps
cannam@162 18230 postdeps=$lt_postdeps
cannam@162 18231
cannam@162 18232 # The library search path used internally by the compiler when linking
cannam@162 18233 # a shared library.
cannam@162 18234 compiler_lib_search_path=$lt_compiler_lib_search_path
cannam@162 18235
cannam@162 18236 # ### END LIBTOOL CONFIG
cannam@162 18237
cannam@162 18238 _LT_EOF
cannam@162 18239
cannam@162 18240 case $host_os in
cannam@162 18241 aix3*)
cannam@162 18242 cat <<\_LT_EOF >> "$cfgfile"
cannam@162 18243 # AIX sometimes has problems with the GCC collect2 program. For some
cannam@162 18244 # reason, if we set the COLLECT_NAMES environment variable, the problems
cannam@162 18245 # vanish in a puff of smoke.
cannam@162 18246 if test "X${COLLECT_NAMES+set}" != Xset; then
cannam@162 18247 COLLECT_NAMES=
cannam@162 18248 export COLLECT_NAMES
cannam@162 18249 fi
cannam@162 18250 _LT_EOF
cannam@162 18251 ;;
cannam@162 18252 esac
cannam@162 18253
cannam@162 18254
cannam@162 18255 ltmain="$ac_aux_dir/ltmain.sh"
cannam@162 18256
cannam@162 18257
cannam@162 18258 # We use sed instead of cat because bash on DJGPP gets confused if
cannam@162 18259 # if finds mixed CR/LF and LF-only lines. Since sed operates in
cannam@162 18260 # text mode, it properly converts lines to CR/LF. This bash problem
cannam@162 18261 # is reportedly fixed, but why not run on old versions too?
cannam@162 18262 sed '$q' "$ltmain" >> "$cfgfile" \
cannam@162 18263 || (rm -f "$cfgfile"; exit 1)
cannam@162 18264
cannam@162 18265 if test x"$xsi_shell" = xyes; then
cannam@162 18266 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
cannam@162 18267 func_dirname ()\
cannam@162 18268 {\
cannam@162 18269 \ case ${1} in\
cannam@162 18270 \ */*) func_dirname_result="${1%/*}${2}" ;;\
cannam@162 18271 \ * ) func_dirname_result="${3}" ;;\
cannam@162 18272 \ esac\
cannam@162 18273 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
cannam@162 18274 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@162 18275 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@162 18276 test 0 -eq $? || _lt_function_replace_fail=:
cannam@162 18277
cannam@162 18278
cannam@162 18279 sed -e '/^func_basename ()$/,/^} # func_basename /c\
cannam@162 18280 func_basename ()\
cannam@162 18281 {\
cannam@162 18282 \ func_basename_result="${1##*/}"\
cannam@162 18283 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
cannam@162 18284 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@162 18285 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@162 18286 test 0 -eq $? || _lt_function_replace_fail=:
cannam@162 18287
cannam@162 18288
cannam@162 18289 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
cannam@162 18290 func_dirname_and_basename ()\
cannam@162 18291 {\
cannam@162 18292 \ case ${1} in\
cannam@162 18293 \ */*) func_dirname_result="${1%/*}${2}" ;;\
cannam@162 18294 \ * ) func_dirname_result="${3}" ;;\
cannam@162 18295 \ esac\
cannam@162 18296 \ func_basename_result="${1##*/}"\
cannam@162 18297 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
cannam@162 18298 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@162 18299 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@162 18300 test 0 -eq $? || _lt_function_replace_fail=:
cannam@162 18301
cannam@162 18302
cannam@162 18303 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
cannam@162 18304 func_stripname ()\
cannam@162 18305 {\
cannam@162 18306 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
cannam@162 18307 \ # positional parameters, so assign one to ordinary parameter first.\
cannam@162 18308 \ func_stripname_result=${3}\
cannam@162 18309 \ func_stripname_result=${func_stripname_result#"${1}"}\
cannam@162 18310 \ func_stripname_result=${func_stripname_result%"${2}"}\
cannam@162 18311 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
cannam@162 18312 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@162 18313 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@162 18314 test 0 -eq $? || _lt_function_replace_fail=:
cannam@162 18315
cannam@162 18316
cannam@162 18317 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
cannam@162 18318 func_split_long_opt ()\
cannam@162 18319 {\
cannam@162 18320 \ func_split_long_opt_name=${1%%=*}\
cannam@162 18321 \ func_split_long_opt_arg=${1#*=}\
cannam@162 18322 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
cannam@162 18323 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@162 18324 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@162 18325 test 0 -eq $? || _lt_function_replace_fail=:
cannam@162 18326
cannam@162 18327
cannam@162 18328 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
cannam@162 18329 func_split_short_opt ()\
cannam@162 18330 {\
cannam@162 18331 \ func_split_short_opt_arg=${1#??}\
cannam@162 18332 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
cannam@162 18333 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
cannam@162 18334 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@162 18335 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@162 18336 test 0 -eq $? || _lt_function_replace_fail=:
cannam@162 18337
cannam@162 18338
cannam@162 18339 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
cannam@162 18340 func_lo2o ()\
cannam@162 18341 {\
cannam@162 18342 \ case ${1} in\
cannam@162 18343 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
cannam@162 18344 \ *) func_lo2o_result=${1} ;;\
cannam@162 18345 \ esac\
cannam@162 18346 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
cannam@162 18347 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@162 18348 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@162 18349 test 0 -eq $? || _lt_function_replace_fail=:
cannam@162 18350
cannam@162 18351
cannam@162 18352 sed -e '/^func_xform ()$/,/^} # func_xform /c\
cannam@162 18353 func_xform ()\
cannam@162 18354 {\
cannam@162 18355 func_xform_result=${1%.*}.lo\
cannam@162 18356 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
cannam@162 18357 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@162 18358 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@162 18359 test 0 -eq $? || _lt_function_replace_fail=:
cannam@162 18360
cannam@162 18361
cannam@162 18362 sed -e '/^func_arith ()$/,/^} # func_arith /c\
cannam@162 18363 func_arith ()\
cannam@162 18364 {\
cannam@162 18365 func_arith_result=$(( $* ))\
cannam@162 18366 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
cannam@162 18367 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@162 18368 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@162 18369 test 0 -eq $? || _lt_function_replace_fail=:
cannam@162 18370
cannam@162 18371
cannam@162 18372 sed -e '/^func_len ()$/,/^} # func_len /c\
cannam@162 18373 func_len ()\
cannam@162 18374 {\
cannam@162 18375 func_len_result=${#1}\
cannam@162 18376 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
cannam@162 18377 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@162 18378 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@162 18379 test 0 -eq $? || _lt_function_replace_fail=:
cannam@162 18380
cannam@162 18381 fi
cannam@162 18382
cannam@162 18383 if test x"$lt_shell_append" = xyes; then
cannam@162 18384 sed -e '/^func_append ()$/,/^} # func_append /c\
cannam@162 18385 func_append ()\
cannam@162 18386 {\
cannam@162 18387 eval "${1}+=\\${2}"\
cannam@162 18388 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
cannam@162 18389 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@162 18390 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@162 18391 test 0 -eq $? || _lt_function_replace_fail=:
cannam@162 18392
cannam@162 18393
cannam@162 18394 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
cannam@162 18395 func_append_quoted ()\
cannam@162 18396 {\
cannam@162 18397 \ func_quote_for_eval "${2}"\
cannam@162 18398 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
cannam@162 18399 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
cannam@162 18400 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@162 18401 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@162 18402 test 0 -eq $? || _lt_function_replace_fail=:
cannam@162 18403
cannam@162 18404
cannam@162 18405 # Save a `func_append' function call where possible by direct use of '+='
cannam@162 18406 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
cannam@162 18407 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@162 18408 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@162 18409 test 0 -eq $? || _lt_function_replace_fail=:
cannam@162 18410 else
cannam@162 18411 # Save a `func_append' function call even when '+=' is not available
cannam@162 18412 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
cannam@162 18413 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@162 18414 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@162 18415 test 0 -eq $? || _lt_function_replace_fail=:
cannam@162 18416 fi
cannam@162 18417
cannam@162 18418 if test x"$_lt_function_replace_fail" = x":"; then
cannam@162 18419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
cannam@162 18420 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
cannam@162 18421 fi
cannam@162 18422
cannam@162 18423
cannam@162 18424 mv -f "$cfgfile" "$ofile" ||
cannam@162 18425 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
cannam@162 18426 chmod +x "$ofile"
cannam@162 18427
cannam@162 18428
cannam@162 18429 cat <<_LT_EOF >> "$ofile"
cannam@162 18430
cannam@162 18431 # ### BEGIN LIBTOOL TAG CONFIG: CXX
cannam@162 18432
cannam@162 18433 # The linker used to build libraries.
cannam@162 18434 LD=$lt_LD_CXX
cannam@162 18435
cannam@162 18436 # How to create reloadable object files.
cannam@162 18437 reload_flag=$lt_reload_flag_CXX
cannam@162 18438 reload_cmds=$lt_reload_cmds_CXX
cannam@162 18439
cannam@162 18440 # Commands used to build an old-style archive.
cannam@162 18441 old_archive_cmds=$lt_old_archive_cmds_CXX
cannam@162 18442
cannam@162 18443 # A language specific compiler.
cannam@162 18444 CC=$lt_compiler_CXX
cannam@162 18445
cannam@162 18446 # Is the compiler the GNU compiler?
cannam@162 18447 with_gcc=$GCC_CXX
cannam@162 18448
cannam@162 18449 # Compiler flag to turn off builtin functions.
cannam@162 18450 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
cannam@162 18451
cannam@162 18452 # Additional compiler flags for building library objects.
cannam@162 18453 pic_flag=$lt_lt_prog_compiler_pic_CXX
cannam@162 18454
cannam@162 18455 # How to pass a linker flag through the compiler.
cannam@162 18456 wl=$lt_lt_prog_compiler_wl_CXX
cannam@162 18457
cannam@162 18458 # Compiler flag to prevent dynamic linking.
cannam@162 18459 link_static_flag=$lt_lt_prog_compiler_static_CXX
cannam@162 18460
cannam@162 18461 # Does compiler simultaneously support -c and -o options?
cannam@162 18462 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
cannam@162 18463
cannam@162 18464 # Whether or not to add -lc for building shared libraries.
cannam@162 18465 build_libtool_need_lc=$archive_cmds_need_lc_CXX
cannam@162 18466
cannam@162 18467 # Whether or not to disallow shared libs when runtime libs are static.
cannam@162 18468 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
cannam@162 18469
cannam@162 18470 # Compiler flag to allow reflexive dlopens.
cannam@162 18471 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
cannam@162 18472
cannam@162 18473 # Compiler flag to generate shared objects directly from archives.
cannam@162 18474 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
cannam@162 18475
cannam@162 18476 # Whether the compiler copes with passing no objects directly.
cannam@162 18477 compiler_needs_object=$lt_compiler_needs_object_CXX
cannam@162 18478
cannam@162 18479 # Create an old-style archive from a shared archive.
cannam@162 18480 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
cannam@162 18481
cannam@162 18482 # Create a temporary old-style archive to link instead of a shared archive.
cannam@162 18483 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
cannam@162 18484
cannam@162 18485 # Commands used to build a shared archive.
cannam@162 18486 archive_cmds=$lt_archive_cmds_CXX
cannam@162 18487 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
cannam@162 18488
cannam@162 18489 # Commands used to build a loadable module if different from building
cannam@162 18490 # a shared archive.
cannam@162 18491 module_cmds=$lt_module_cmds_CXX
cannam@162 18492 module_expsym_cmds=$lt_module_expsym_cmds_CXX
cannam@162 18493
cannam@162 18494 # Whether we are building with GNU ld or not.
cannam@162 18495 with_gnu_ld=$lt_with_gnu_ld_CXX
cannam@162 18496
cannam@162 18497 # Flag that allows shared libraries with undefined symbols to be built.
cannam@162 18498 allow_undefined_flag=$lt_allow_undefined_flag_CXX
cannam@162 18499
cannam@162 18500 # Flag that enforces no undefined symbols.
cannam@162 18501 no_undefined_flag=$lt_no_undefined_flag_CXX
cannam@162 18502
cannam@162 18503 # Flag to hardcode \$libdir into a binary during linking.
cannam@162 18504 # This must work even if \$libdir does not exist
cannam@162 18505 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
cannam@162 18506
cannam@162 18507 # Whether we need a single "-rpath" flag with a separated argument.
cannam@162 18508 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
cannam@162 18509
cannam@162 18510 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
cannam@162 18511 # DIR into the resulting binary.
cannam@162 18512 hardcode_direct=$hardcode_direct_CXX
cannam@162 18513
cannam@162 18514 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
cannam@162 18515 # DIR into the resulting binary and the resulting library dependency is
cannam@162 18516 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
cannam@162 18517 # library is relocated.
cannam@162 18518 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
cannam@162 18519
cannam@162 18520 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
cannam@162 18521 # into the resulting binary.
cannam@162 18522 hardcode_minus_L=$hardcode_minus_L_CXX
cannam@162 18523
cannam@162 18524 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
cannam@162 18525 # into the resulting binary.
cannam@162 18526 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
cannam@162 18527
cannam@162 18528 # Set to "yes" if building a shared library automatically hardcodes DIR
cannam@162 18529 # into the library and all subsequent libraries and executables linked
cannam@162 18530 # against it.
cannam@162 18531 hardcode_automatic=$hardcode_automatic_CXX
cannam@162 18532
cannam@162 18533 # Set to yes if linker adds runtime paths of dependent libraries
cannam@162 18534 # to runtime path list.
cannam@162 18535 inherit_rpath=$inherit_rpath_CXX
cannam@162 18536
cannam@162 18537 # Whether libtool must link a program against all its dependency libraries.
cannam@162 18538 link_all_deplibs=$link_all_deplibs_CXX
cannam@162 18539
cannam@162 18540 # Set to "yes" if exported symbols are required.
cannam@162 18541 always_export_symbols=$always_export_symbols_CXX
cannam@162 18542
cannam@162 18543 # The commands to list exported symbols.
cannam@162 18544 export_symbols_cmds=$lt_export_symbols_cmds_CXX
cannam@162 18545
cannam@162 18546 # Symbols that should not be listed in the preloaded symbols.
cannam@162 18547 exclude_expsyms=$lt_exclude_expsyms_CXX
cannam@162 18548
cannam@162 18549 # Symbols that must always be exported.
cannam@162 18550 include_expsyms=$lt_include_expsyms_CXX
cannam@162 18551
cannam@162 18552 # Commands necessary for linking programs (against libraries) with templates.
cannam@162 18553 prelink_cmds=$lt_prelink_cmds_CXX
cannam@162 18554
cannam@162 18555 # Commands necessary for finishing linking programs.
cannam@162 18556 postlink_cmds=$lt_postlink_cmds_CXX
cannam@162 18557
cannam@162 18558 # Specify filename containing input files.
cannam@162 18559 file_list_spec=$lt_file_list_spec_CXX
cannam@162 18560
cannam@162 18561 # How to hardcode a shared library path into an executable.
cannam@162 18562 hardcode_action=$hardcode_action_CXX
cannam@162 18563
cannam@162 18564 # The directories searched by this compiler when creating a shared library.
cannam@162 18565 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
cannam@162 18566
cannam@162 18567 # Dependencies to place before and after the objects being linked to
cannam@162 18568 # create a shared library.
cannam@162 18569 predep_objects=$lt_predep_objects_CXX
cannam@162 18570 postdep_objects=$lt_postdep_objects_CXX
cannam@162 18571 predeps=$lt_predeps_CXX
cannam@162 18572 postdeps=$lt_postdeps_CXX
cannam@162 18573
cannam@162 18574 # The library search path used internally by the compiler when linking
cannam@162 18575 # a shared library.
cannam@162 18576 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
cannam@162 18577
cannam@162 18578 # ### END LIBTOOL TAG CONFIG: CXX
cannam@162 18579 _LT_EOF
cannam@162 18580
cannam@162 18581 ;;
cannam@162 18582
cannam@162 18583 esac
cannam@162 18584 done # for ac_tag
cannam@162 18585
cannam@162 18586
cannam@162 18587 as_fn_exit 0
cannam@162 18588 _ACEOF
cannam@162 18589 ac_clean_files=$ac_clean_files_save
cannam@162 18590
cannam@162 18591 test $ac_write_fail = 0 ||
cannam@162 18592 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cannam@162 18593
cannam@162 18594
cannam@162 18595 # configure is writing to config.log, and then calls config.status.
cannam@162 18596 # config.status does its own redirection, appending to config.log.
cannam@162 18597 # Unfortunately, on DOS this fails, as config.log is still kept open
cannam@162 18598 # by configure, so config.status won't be able to write to it; its
cannam@162 18599 # output is simply discarded. So we exec the FD to /dev/null,
cannam@162 18600 # effectively closing config.log, so it can be properly (re)opened and
cannam@162 18601 # appended to by config.status. When coming back to configure, we
cannam@162 18602 # need to make the FD available again.
cannam@162 18603 if test "$no_create" != yes; then
cannam@162 18604 ac_cs_success=:
cannam@162 18605 ac_config_status_args=
cannam@162 18606 test "$silent" = yes &&
cannam@162 18607 ac_config_status_args="$ac_config_status_args --quiet"
cannam@162 18608 exec 5>/dev/null
cannam@162 18609 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
cannam@162 18610 exec 5>>config.log
cannam@162 18611 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
cannam@162 18612 # would make configure fail if this is the last instruction.
cannam@162 18613 $ac_cs_success || as_fn_exit 1
cannam@162 18614 fi
cannam@162 18615
cannam@162 18616 #
cannam@162 18617 # CONFIG_SUBDIRS section.
cannam@162 18618 #
cannam@162 18619 if test "$no_recursion" != yes; then
cannam@162 18620
cannam@162 18621 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
cannam@162 18622 # so they do not pile up.
cannam@162 18623 ac_sub_configure_args=
cannam@162 18624 ac_prev=
cannam@162 18625 eval "set x $ac_configure_args"
cannam@162 18626 shift
cannam@162 18627 for ac_arg
cannam@162 18628 do
cannam@162 18629 if test -n "$ac_prev"; then
cannam@162 18630 ac_prev=
cannam@162 18631 continue
cannam@162 18632 fi
cannam@162 18633 case $ac_arg in
cannam@162 18634 -cache-file | --cache-file | --cache-fil | --cache-fi \
cannam@162 18635 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
cannam@162 18636 ac_prev=cache_file ;;
cannam@162 18637 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
cannam@162 18638 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
cannam@162 18639 | --c=*)
cannam@162 18640 ;;
cannam@162 18641 --config-cache | -C)
cannam@162 18642 ;;
cannam@162 18643 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
cannam@162 18644 ac_prev=srcdir ;;
cannam@162 18645 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
cannam@162 18646 ;;
cannam@162 18647 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
cannam@162 18648 ac_prev=prefix ;;
cannam@162 18649 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
cannam@162 18650 ;;
cannam@162 18651 --disable-option-checking)
cannam@162 18652 ;;
cannam@162 18653 *)
cannam@162 18654 case $ac_arg in
cannam@162 18655 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@162 18656 esac
cannam@162 18657 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
cannam@162 18658 esac
cannam@162 18659 done
cannam@162 18660
cannam@162 18661 # Always prepend --prefix to ensure using the same prefix
cannam@162 18662 # in subdir configurations.
cannam@162 18663 ac_arg="--prefix=$prefix"
cannam@162 18664 case $ac_arg in
cannam@162 18665 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@162 18666 esac
cannam@162 18667 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
cannam@162 18668
cannam@162 18669 # Pass --silent
cannam@162 18670 if test "$silent" = yes; then
cannam@162 18671 ac_sub_configure_args="--silent $ac_sub_configure_args"
cannam@162 18672 fi
cannam@162 18673
cannam@162 18674 # Always prepend --disable-option-checking to silence warnings, since
cannam@162 18675 # different subdirs can have different --enable and --with options.
cannam@162 18676 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
cannam@162 18677
cannam@162 18678 ac_popdir=`pwd`
cannam@162 18679 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
cannam@162 18680
cannam@162 18681 # Do not complain, so a configure script can configure whichever
cannam@162 18682 # parts of a large source tree are present.
cannam@162 18683 test -d "$srcdir/$ac_dir" || continue
cannam@162 18684
cannam@162 18685 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
cannam@162 18686 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
cannam@162 18687 $as_echo "$ac_msg" >&6
cannam@162 18688 as_dir="$ac_dir"; as_fn_mkdir_p
cannam@162 18689 ac_builddir=.
cannam@162 18690
cannam@162 18691 case "$ac_dir" in
cannam@162 18692 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@162 18693 *)
cannam@162 18694 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
cannam@162 18695 # A ".." for each directory in $ac_dir_suffix.
cannam@162 18696 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
cannam@162 18697 case $ac_top_builddir_sub in
cannam@162 18698 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@162 18699 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
cannam@162 18700 esac ;;
cannam@162 18701 esac
cannam@162 18702 ac_abs_top_builddir=$ac_pwd
cannam@162 18703 ac_abs_builddir=$ac_pwd$ac_dir_suffix
cannam@162 18704 # for backward compatibility:
cannam@162 18705 ac_top_builddir=$ac_top_build_prefix
cannam@162 18706
cannam@162 18707 case $srcdir in
cannam@162 18708 .) # We are building in place.
cannam@162 18709 ac_srcdir=.
cannam@162 18710 ac_top_srcdir=$ac_top_builddir_sub
cannam@162 18711 ac_abs_top_srcdir=$ac_pwd ;;
cannam@162 18712 [\\/]* | ?:[\\/]* ) # Absolute name.
cannam@162 18713 ac_srcdir=$srcdir$ac_dir_suffix;
cannam@162 18714 ac_top_srcdir=$srcdir
cannam@162 18715 ac_abs_top_srcdir=$srcdir ;;
cannam@162 18716 *) # Relative name.
cannam@162 18717 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
cannam@162 18718 ac_top_srcdir=$ac_top_build_prefix$srcdir
cannam@162 18719 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
cannam@162 18720 esac
cannam@162 18721 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
cannam@162 18722
cannam@162 18723
cannam@162 18724 cd "$ac_dir"
cannam@162 18725
cannam@162 18726 # Check for guested configure; otherwise get Cygnus style configure.
cannam@162 18727 if test -f "$ac_srcdir/configure.gnu"; then
cannam@162 18728 ac_sub_configure=$ac_srcdir/configure.gnu
cannam@162 18729 elif test -f "$ac_srcdir/configure"; then
cannam@162 18730 ac_sub_configure=$ac_srcdir/configure
cannam@162 18731 elif test -f "$ac_srcdir/configure.in"; then
cannam@162 18732 # This should be Cygnus configure.
cannam@162 18733 ac_sub_configure=$ac_aux_dir/configure
cannam@162 18734 else
cannam@162 18735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
cannam@162 18736 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
cannam@162 18737 ac_sub_configure=
cannam@162 18738 fi
cannam@162 18739
cannam@162 18740 # The recursion is here.
cannam@162 18741 if test -n "$ac_sub_configure"; then
cannam@162 18742 # Make the cache file name correct relative to the subdirectory.
cannam@162 18743 case $cache_file in
cannam@162 18744 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
cannam@162 18745 *) # Relative name.
cannam@162 18746 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
cannam@162 18747 esac
cannam@162 18748
cannam@162 18749 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
cannam@162 18750 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
cannam@162 18751 # The eval makes quoting arguments work.
cannam@162 18752 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
cannam@162 18753 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
cannam@162 18754 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
cannam@162 18755 fi
cannam@162 18756
cannam@162 18757 cd "$ac_popdir"
cannam@162 18758 done
cannam@162 18759 fi
cannam@162 18760 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cannam@162 18761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cannam@162 18762 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
cannam@162 18763 fi
cannam@162 18764
cannam@162 18765
cannam@162 18766 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
cannam@162 18767 Configuration summary:
cannam@162 18768
cannam@162 18769 Target ...................... $target
cannam@162 18770 C++ bindings ................ $enable_cxx
cannam@162 18771 Debug output ................ $debug_output" >&5
cannam@162 18772 $as_echo "
cannam@162 18773 Configuration summary:
cannam@162 18774
cannam@162 18775 Target ...................... $target
cannam@162 18776 C++ bindings ................ $enable_cxx
cannam@162 18777 Debug output ................ $debug_output" >&6; }
cannam@162 18778
cannam@162 18779 case "$target_os" in *linux*)
cannam@162 18780 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
cannam@162 18781 ALSA ........................ $have_alsa
cannam@162 18782 ASIHPI ...................... $have_asihpi" >&5
cannam@162 18783 $as_echo "
cannam@162 18784 ALSA ........................ $have_alsa
cannam@162 18785 ASIHPI ...................... $have_asihpi" >&6; }
cannam@162 18786 ;;
cannam@162 18787 esac
cannam@162 18788 case "$target_os" in
cannam@162 18789 *mingw* | *cygwin*)
cannam@162 18790 test "x$with_directx" = "xyes" && with_directx="$with_directx (${with_dxdir})"
cannam@162 18791 test "x$with_wdmks" = "xyes" && with_wdmks="$with_wdmks (${with_dxdir})"
cannam@162 18792 test "x$with_asio" = "xyes" && with_asio="$with_asio (${with_asiodir})"
cannam@162 18793 test "x$with_wasapi" = "xyes"
cannam@162 18794 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
cannam@162 18795 WMME ........................ $with_wmme
cannam@162 18796 DSound ...................... $with_directx
cannam@162 18797 ASIO ........................ $with_asio
cannam@162 18798 WASAPI ...................... $with_wasapi
cannam@162 18799 WDMKS ....................... $with_wdmks
cannam@162 18800 " >&5
cannam@162 18801 $as_echo "
cannam@162 18802 WMME ........................ $with_wmme
cannam@162 18803 DSound ...................... $with_directx
cannam@162 18804 ASIO ........................ $with_asio
cannam@162 18805 WASAPI ...................... $with_wasapi
cannam@162 18806 WDMKS ....................... $with_wdmks
cannam@162 18807 " >&6; }
cannam@162 18808 ;;
cannam@162 18809 *darwin*)
cannam@162 18810 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
cannam@162 18811 Mac debug flags ............. $enable_mac_debug
cannam@162 18812 " >&5
cannam@162 18813 $as_echo "
cannam@162 18814 Mac debug flags ............. $enable_mac_debug
cannam@162 18815 " >&6; }
cannam@162 18816 ;;
cannam@162 18817 *)
cannam@162 18818 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
cannam@162 18819 OSS ......................... $have_oss
cannam@162 18820 JACK ........................ $have_jack
cannam@162 18821 " >&5
cannam@162 18822 $as_echo "
cannam@162 18823 OSS ......................... $have_oss
cannam@162 18824 JACK ........................ $have_jack
cannam@162 18825 " >&6; }
cannam@162 18826 ;;
cannam@162 18827 esac