annotate src/libsamplerate-0.1.9/configure @ 169:223a55898ab9 tip default

Add null config files
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 02 Mar 2020 14:03:47 +0000
parents 4a7071416412
children
rev   line source
cannam@126 1 #! /bin/sh
cannam@126 2 # Guess values for system-dependent variables and create Makefiles.
cannam@126 3 # Generated by GNU Autoconf 2.69 for libsamplerate 0.1.9.
cannam@126 4 #
cannam@126 5 # Report bugs to <erikd@mega-nerd.com>.
cannam@126 6 #
cannam@126 7 #
cannam@126 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cannam@126 9 #
cannam@126 10 #
cannam@126 11 # This configure script is free software; the Free Software Foundation
cannam@126 12 # gives unlimited permission to copy, distribute and modify it.
cannam@126 13 ## -------------------- ##
cannam@126 14 ## M4sh Initialization. ##
cannam@126 15 ## -------------------- ##
cannam@126 16
cannam@126 17 # Be more Bourne compatible
cannam@126 18 DUALCASE=1; export DUALCASE # for MKS sh
cannam@126 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cannam@126 20 emulate sh
cannam@126 21 NULLCMD=:
cannam@126 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
cannam@126 23 # is contrary to our usage. Disable this feature.
cannam@126 24 alias -g '${1+"$@"}'='"$@"'
cannam@126 25 setopt NO_GLOB_SUBST
cannam@126 26 else
cannam@126 27 case `(set -o) 2>/dev/null` in #(
cannam@126 28 *posix*) :
cannam@126 29 set -o posix ;; #(
cannam@126 30 *) :
cannam@126 31 ;;
cannam@126 32 esac
cannam@126 33 fi
cannam@126 34
cannam@126 35
cannam@126 36 as_nl='
cannam@126 37 '
cannam@126 38 export as_nl
cannam@126 39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
cannam@126 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@126 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@126 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@126 43 # Prefer a ksh shell builtin over an external printf program on Solaris,
cannam@126 44 # but without wasting forks for bash or zsh.
cannam@126 45 if test -z "$BASH_VERSION$ZSH_VERSION" \
cannam@126 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@126 47 as_echo='print -r --'
cannam@126 48 as_echo_n='print -rn --'
cannam@126 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@126 50 as_echo='printf %s\n'
cannam@126 51 as_echo_n='printf %s'
cannam@126 52 else
cannam@126 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
cannam@126 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
cannam@126 55 as_echo_n='/usr/ucb/echo -n'
cannam@126 56 else
cannam@126 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
cannam@126 58 as_echo_n_body='eval
cannam@126 59 arg=$1;
cannam@126 60 case $arg in #(
cannam@126 61 *"$as_nl"*)
cannam@126 62 expr "X$arg" : "X\\(.*\\)$as_nl";
cannam@126 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
cannam@126 64 esac;
cannam@126 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
cannam@126 66 '
cannam@126 67 export as_echo_n_body
cannam@126 68 as_echo_n='sh -c $as_echo_n_body as_echo'
cannam@126 69 fi
cannam@126 70 export as_echo_body
cannam@126 71 as_echo='sh -c $as_echo_body as_echo'
cannam@126 72 fi
cannam@126 73
cannam@126 74 # The user is always right.
cannam@126 75 if test "${PATH_SEPARATOR+set}" != set; then
cannam@126 76 PATH_SEPARATOR=:
cannam@126 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
cannam@126 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
cannam@126 79 PATH_SEPARATOR=';'
cannam@126 80 }
cannam@126 81 fi
cannam@126 82
cannam@126 83
cannam@126 84 # IFS
cannam@126 85 # We need space, tab and new line, in precisely that order. Quoting is
cannam@126 86 # there to prevent editors from complaining about space-tab.
cannam@126 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
cannam@126 88 # splitting by setting IFS to empty value.)
cannam@126 89 IFS=" "" $as_nl"
cannam@126 90
cannam@126 91 # Find who we are. Look in the path if we contain no directory separator.
cannam@126 92 as_myself=
cannam@126 93 case $0 in #((
cannam@126 94 *[\\/]* ) as_myself=$0 ;;
cannam@126 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 96 for as_dir in $PATH
cannam@126 97 do
cannam@126 98 IFS=$as_save_IFS
cannam@126 99 test -z "$as_dir" && as_dir=.
cannam@126 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
cannam@126 101 done
cannam@126 102 IFS=$as_save_IFS
cannam@126 103
cannam@126 104 ;;
cannam@126 105 esac
cannam@126 106 # We did not find ourselves, most probably we were run as `sh COMMAND'
cannam@126 107 # in which case we are not to be found in the path.
cannam@126 108 if test "x$as_myself" = x; then
cannam@126 109 as_myself=$0
cannam@126 110 fi
cannam@126 111 if test ! -f "$as_myself"; then
cannam@126 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cannam@126 113 exit 1
cannam@126 114 fi
cannam@126 115
cannam@126 116 # Unset variables that we do not need and which cause bugs (e.g. in
cannam@126 117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
cannam@126 118 # suppresses any "Segmentation fault" message there. '((' could
cannam@126 119 # trigger a bug in pdksh 5.2.14.
cannam@126 120 for as_var in BASH_ENV ENV MAIL MAILPATH
cannam@126 121 do eval test x\${$as_var+set} = xset \
cannam@126 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cannam@126 123 done
cannam@126 124 PS1='$ '
cannam@126 125 PS2='> '
cannam@126 126 PS4='+ '
cannam@126 127
cannam@126 128 # NLS nuisances.
cannam@126 129 LC_ALL=C
cannam@126 130 export LC_ALL
cannam@126 131 LANGUAGE=C
cannam@126 132 export LANGUAGE
cannam@126 133
cannam@126 134 # CDPATH.
cannam@126 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cannam@126 136
cannam@126 137 # Use a proper internal environment variable to ensure we don't fall
cannam@126 138 # into an infinite loop, continuously re-executing ourselves.
cannam@126 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
cannam@126 140 _as_can_reexec=no; export _as_can_reexec;
cannam@126 141 # We cannot yet assume a decent shell, so we have to provide a
cannam@126 142 # neutralization value for shells without unset; and this also
cannam@126 143 # works around shells that cannot unset nonexistent variables.
cannam@126 144 # Preserve -v and -x to the replacement shell.
cannam@126 145 BASH_ENV=/dev/null
cannam@126 146 ENV=/dev/null
cannam@126 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
cannam@126 148 case $- in # ((((
cannam@126 149 *v*x* | *x*v* ) as_opts=-vx ;;
cannam@126 150 *v* ) as_opts=-v ;;
cannam@126 151 *x* ) as_opts=-x ;;
cannam@126 152 * ) as_opts= ;;
cannam@126 153 esac
cannam@126 154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
cannam@126 155 # Admittedly, this is quite paranoid, since all the known shells bail
cannam@126 156 # out after a failed `exec'.
cannam@126 157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
cannam@126 158 as_fn_exit 255
cannam@126 159 fi
cannam@126 160 # We don't want this to propagate to other subprocesses.
cannam@126 161 { _as_can_reexec=; unset _as_can_reexec;}
cannam@126 162 if test "x$CONFIG_SHELL" = x; then
cannam@126 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
cannam@126 164 emulate sh
cannam@126 165 NULLCMD=:
cannam@126 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
cannam@126 167 # is contrary to our usage. Disable this feature.
cannam@126 168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
cannam@126 169 setopt NO_GLOB_SUBST
cannam@126 170 else
cannam@126 171 case \`(set -o) 2>/dev/null\` in #(
cannam@126 172 *posix*) :
cannam@126 173 set -o posix ;; #(
cannam@126 174 *) :
cannam@126 175 ;;
cannam@126 176 esac
cannam@126 177 fi
cannam@126 178 "
cannam@126 179 as_required="as_fn_return () { (exit \$1); }
cannam@126 180 as_fn_success () { as_fn_return 0; }
cannam@126 181 as_fn_failure () { as_fn_return 1; }
cannam@126 182 as_fn_ret_success () { return 0; }
cannam@126 183 as_fn_ret_failure () { return 1; }
cannam@126 184
cannam@126 185 exitcode=0
cannam@126 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
cannam@126 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
cannam@126 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
cannam@126 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
cannam@126 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
cannam@126 191
cannam@126 192 else
cannam@126 193 exitcode=1; echo positional parameters were not saved.
cannam@126 194 fi
cannam@126 195 test x\$exitcode = x0 || exit 1
cannam@126 196 test -x / || exit 1"
cannam@126 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
cannam@126 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
cannam@126 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
cannam@126 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cannam@126 201 test \$(( 1 + 1 )) = 2 || exit 1
cannam@126 202
cannam@126 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
cannam@126 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@126 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
cannam@126 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
cannam@126 207 PATH=/empty FPATH=/empty; export PATH FPATH
cannam@126 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
cannam@126 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cannam@126 210 if (eval "$as_required") 2>/dev/null; then :
cannam@126 211 as_have_required=yes
cannam@126 212 else
cannam@126 213 as_have_required=no
cannam@126 214 fi
cannam@126 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
cannam@126 216
cannam@126 217 else
cannam@126 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 219 as_found=false
cannam@126 220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
cannam@126 221 do
cannam@126 222 IFS=$as_save_IFS
cannam@126 223 test -z "$as_dir" && as_dir=.
cannam@126 224 as_found=:
cannam@126 225 case $as_dir in #(
cannam@126 226 /*)
cannam@126 227 for as_base in sh bash ksh sh5; do
cannam@126 228 # Try only shells that exist, to save several forks.
cannam@126 229 as_shell=$as_dir/$as_base
cannam@126 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
cannam@126 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
cannam@126 232 CONFIG_SHELL=$as_shell as_have_required=yes
cannam@126 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
cannam@126 234 break 2
cannam@126 235 fi
cannam@126 236 fi
cannam@126 237 done;;
cannam@126 238 esac
cannam@126 239 as_found=false
cannam@126 240 done
cannam@126 241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
cannam@126 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
cannam@126 243 CONFIG_SHELL=$SHELL as_have_required=yes
cannam@126 244 fi; }
cannam@126 245 IFS=$as_save_IFS
cannam@126 246
cannam@126 247
cannam@126 248 if test "x$CONFIG_SHELL" != x; then :
cannam@126 249 export CONFIG_SHELL
cannam@126 250 # We cannot yet assume a decent shell, so we have to provide a
cannam@126 251 # neutralization value for shells without unset; and this also
cannam@126 252 # works around shells that cannot unset nonexistent variables.
cannam@126 253 # Preserve -v and -x to the replacement shell.
cannam@126 254 BASH_ENV=/dev/null
cannam@126 255 ENV=/dev/null
cannam@126 256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
cannam@126 257 case $- in # ((((
cannam@126 258 *v*x* | *x*v* ) as_opts=-vx ;;
cannam@126 259 *v* ) as_opts=-v ;;
cannam@126 260 *x* ) as_opts=-x ;;
cannam@126 261 * ) as_opts= ;;
cannam@126 262 esac
cannam@126 263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
cannam@126 264 # Admittedly, this is quite paranoid, since all the known shells bail
cannam@126 265 # out after a failed `exec'.
cannam@126 266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
cannam@126 267 exit 255
cannam@126 268 fi
cannam@126 269
cannam@126 270 if test x$as_have_required = xno; then :
cannam@126 271 $as_echo "$0: This script requires a shell more modern than all"
cannam@126 272 $as_echo "$0: the shells that I found on your system."
cannam@126 273 if test x${ZSH_VERSION+set} = xset ; then
cannam@126 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
cannam@126 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
cannam@126 276 else
cannam@126 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
cannam@126 278 $0: erikd@mega-nerd.com about your system, including any
cannam@126 279 $0: error possibly output before this message. Then install
cannam@126 280 $0: a modern shell, or manually run the script under such a
cannam@126 281 $0: shell if you do have one."
cannam@126 282 fi
cannam@126 283 exit 1
cannam@126 284 fi
cannam@126 285 fi
cannam@126 286 fi
cannam@126 287 SHELL=${CONFIG_SHELL-/bin/sh}
cannam@126 288 export SHELL
cannam@126 289 # Unset more variables known to interfere with behavior of common tools.
cannam@126 290 CLICOLOR_FORCE= GREP_OPTIONS=
cannam@126 291 unset CLICOLOR_FORCE GREP_OPTIONS
cannam@126 292
cannam@126 293 ## --------------------- ##
cannam@126 294 ## M4sh Shell Functions. ##
cannam@126 295 ## --------------------- ##
cannam@126 296 # as_fn_unset VAR
cannam@126 297 # ---------------
cannam@126 298 # Portably unset VAR.
cannam@126 299 as_fn_unset ()
cannam@126 300 {
cannam@126 301 { eval $1=; unset $1;}
cannam@126 302 }
cannam@126 303 as_unset=as_fn_unset
cannam@126 304
cannam@126 305 # as_fn_set_status STATUS
cannam@126 306 # -----------------------
cannam@126 307 # Set $? to STATUS, without forking.
cannam@126 308 as_fn_set_status ()
cannam@126 309 {
cannam@126 310 return $1
cannam@126 311 } # as_fn_set_status
cannam@126 312
cannam@126 313 # as_fn_exit STATUS
cannam@126 314 # -----------------
cannam@126 315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
cannam@126 316 as_fn_exit ()
cannam@126 317 {
cannam@126 318 set +e
cannam@126 319 as_fn_set_status $1
cannam@126 320 exit $1
cannam@126 321 } # as_fn_exit
cannam@126 322
cannam@126 323 # as_fn_mkdir_p
cannam@126 324 # -------------
cannam@126 325 # Create "$as_dir" as a directory, including parents if necessary.
cannam@126 326 as_fn_mkdir_p ()
cannam@126 327 {
cannam@126 328
cannam@126 329 case $as_dir in #(
cannam@126 330 -*) as_dir=./$as_dir;;
cannam@126 331 esac
cannam@126 332 test -d "$as_dir" || eval $as_mkdir_p || {
cannam@126 333 as_dirs=
cannam@126 334 while :; do
cannam@126 335 case $as_dir in #(
cannam@126 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
cannam@126 337 *) as_qdir=$as_dir;;
cannam@126 338 esac
cannam@126 339 as_dirs="'$as_qdir' $as_dirs"
cannam@126 340 as_dir=`$as_dirname -- "$as_dir" ||
cannam@126 341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@126 342 X"$as_dir" : 'X\(//\)[^/]' \| \
cannam@126 343 X"$as_dir" : 'X\(//\)$' \| \
cannam@126 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
cannam@126 345 $as_echo X"$as_dir" |
cannam@126 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@126 347 s//\1/
cannam@126 348 q
cannam@126 349 }
cannam@126 350 /^X\(\/\/\)[^/].*/{
cannam@126 351 s//\1/
cannam@126 352 q
cannam@126 353 }
cannam@126 354 /^X\(\/\/\)$/{
cannam@126 355 s//\1/
cannam@126 356 q
cannam@126 357 }
cannam@126 358 /^X\(\/\).*/{
cannam@126 359 s//\1/
cannam@126 360 q
cannam@126 361 }
cannam@126 362 s/.*/./; q'`
cannam@126 363 test -d "$as_dir" && break
cannam@126 364 done
cannam@126 365 test -z "$as_dirs" || eval "mkdir $as_dirs"
cannam@126 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cannam@126 367
cannam@126 368
cannam@126 369 } # as_fn_mkdir_p
cannam@126 370
cannam@126 371 # as_fn_executable_p FILE
cannam@126 372 # -----------------------
cannam@126 373 # Test if FILE is an executable regular file.
cannam@126 374 as_fn_executable_p ()
cannam@126 375 {
cannam@126 376 test -f "$1" && test -x "$1"
cannam@126 377 } # as_fn_executable_p
cannam@126 378 # as_fn_append VAR VALUE
cannam@126 379 # ----------------------
cannam@126 380 # Append the text in VALUE to the end of the definition contained in VAR. Take
cannam@126 381 # advantage of any shell optimizations that allow amortized linear growth over
cannam@126 382 # repeated appends, instead of the typical quadratic growth present in naive
cannam@126 383 # implementations.
cannam@126 384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
cannam@126 385 eval 'as_fn_append ()
cannam@126 386 {
cannam@126 387 eval $1+=\$2
cannam@126 388 }'
cannam@126 389 else
cannam@126 390 as_fn_append ()
cannam@126 391 {
cannam@126 392 eval $1=\$$1\$2
cannam@126 393 }
cannam@126 394 fi # as_fn_append
cannam@126 395
cannam@126 396 # as_fn_arith ARG...
cannam@126 397 # ------------------
cannam@126 398 # Perform arithmetic evaluation on the ARGs, and store the result in the
cannam@126 399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
cannam@126 400 # must be portable across $(()) and expr.
cannam@126 401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
cannam@126 402 eval 'as_fn_arith ()
cannam@126 403 {
cannam@126 404 as_val=$(( $* ))
cannam@126 405 }'
cannam@126 406 else
cannam@126 407 as_fn_arith ()
cannam@126 408 {
cannam@126 409 as_val=`expr "$@" || test $? -eq 1`
cannam@126 410 }
cannam@126 411 fi # as_fn_arith
cannam@126 412
cannam@126 413
cannam@126 414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
cannam@126 415 # ----------------------------------------
cannam@126 416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
cannam@126 417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cannam@126 418 # script with STATUS, using 1 if that was 0.
cannam@126 419 as_fn_error ()
cannam@126 420 {
cannam@126 421 as_status=$1; test $as_status -eq 0 && as_status=1
cannam@126 422 if test "$4"; then
cannam@126 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@126 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cannam@126 425 fi
cannam@126 426 $as_echo "$as_me: error: $2" >&2
cannam@126 427 as_fn_exit $as_status
cannam@126 428 } # as_fn_error
cannam@126 429
cannam@126 430 if expr a : '\(a\)' >/dev/null 2>&1 &&
cannam@126 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
cannam@126 432 as_expr=expr
cannam@126 433 else
cannam@126 434 as_expr=false
cannam@126 435 fi
cannam@126 436
cannam@126 437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
cannam@126 438 as_basename=basename
cannam@126 439 else
cannam@126 440 as_basename=false
cannam@126 441 fi
cannam@126 442
cannam@126 443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
cannam@126 444 as_dirname=dirname
cannam@126 445 else
cannam@126 446 as_dirname=false
cannam@126 447 fi
cannam@126 448
cannam@126 449 as_me=`$as_basename -- "$0" ||
cannam@126 450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
cannam@126 451 X"$0" : 'X\(//\)$' \| \
cannam@126 452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
cannam@126 453 $as_echo X/"$0" |
cannam@126 454 sed '/^.*\/\([^/][^/]*\)\/*$/{
cannam@126 455 s//\1/
cannam@126 456 q
cannam@126 457 }
cannam@126 458 /^X\/\(\/\/\)$/{
cannam@126 459 s//\1/
cannam@126 460 q
cannam@126 461 }
cannam@126 462 /^X\/\(\/\).*/{
cannam@126 463 s//\1/
cannam@126 464 q
cannam@126 465 }
cannam@126 466 s/.*/./; q'`
cannam@126 467
cannam@126 468 # Avoid depending upon Character Ranges.
cannam@126 469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
cannam@126 470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
cannam@126 471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
cannam@126 472 as_cr_digits='0123456789'
cannam@126 473 as_cr_alnum=$as_cr_Letters$as_cr_digits
cannam@126 474
cannam@126 475
cannam@126 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
cannam@126 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
cannam@126 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
cannam@126 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
cannam@126 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cannam@126 481 sed -n '
cannam@126 482 p
cannam@126 483 /[$]LINENO/=
cannam@126 484 ' <$as_myself |
cannam@126 485 sed '
cannam@126 486 s/[$]LINENO.*/&-/
cannam@126 487 t lineno
cannam@126 488 b
cannam@126 489 :lineno
cannam@126 490 N
cannam@126 491 :loop
cannam@126 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
cannam@126 493 t loop
cannam@126 494 s/-\n.*//
cannam@126 495 ' >$as_me.lineno &&
cannam@126 496 chmod +x "$as_me.lineno" ||
cannam@126 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cannam@126 498
cannam@126 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
cannam@126 500 # already done that, so ensure we don't try to do so again and fall
cannam@126 501 # in an infinite loop. This has already happened in practice.
cannam@126 502 _as_can_reexec=no; export _as_can_reexec
cannam@126 503 # Don't try to exec as it changes $[0], causing all sort of problems
cannam@126 504 # (the dirname of $[0] is not the place where we might find the
cannam@126 505 # original and so on. Autoconf is especially sensitive to this).
cannam@126 506 . "./$as_me.lineno"
cannam@126 507 # Exit status is that of the last command.
cannam@126 508 exit
cannam@126 509 }
cannam@126 510
cannam@126 511 ECHO_C= ECHO_N= ECHO_T=
cannam@126 512 case `echo -n x` in #(((((
cannam@126 513 -n*)
cannam@126 514 case `echo 'xy\c'` in
cannam@126 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cannam@126 516 xy) ECHO_C='\c';;
cannam@126 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
cannam@126 518 ECHO_T=' ';;
cannam@126 519 esac;;
cannam@126 520 *)
cannam@126 521 ECHO_N='-n';;
cannam@126 522 esac
cannam@126 523
cannam@126 524 rm -f conf$$ conf$$.exe conf$$.file
cannam@126 525 if test -d conf$$.dir; then
cannam@126 526 rm -f conf$$.dir/conf$$.file
cannam@126 527 else
cannam@126 528 rm -f conf$$.dir
cannam@126 529 mkdir conf$$.dir 2>/dev/null
cannam@126 530 fi
cannam@126 531 if (echo >conf$$.file) 2>/dev/null; then
cannam@126 532 if ln -s conf$$.file conf$$ 2>/dev/null; then
cannam@126 533 as_ln_s='ln -s'
cannam@126 534 # ... but there are two gotchas:
cannam@126 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
cannam@126 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cannam@126 537 # In both cases, we have to default to `cp -pR'.
cannam@126 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cannam@126 539 as_ln_s='cp -pR'
cannam@126 540 elif ln conf$$.file conf$$ 2>/dev/null; then
cannam@126 541 as_ln_s=ln
cannam@126 542 else
cannam@126 543 as_ln_s='cp -pR'
cannam@126 544 fi
cannam@126 545 else
cannam@126 546 as_ln_s='cp -pR'
cannam@126 547 fi
cannam@126 548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
cannam@126 549 rmdir conf$$.dir 2>/dev/null
cannam@126 550
cannam@126 551 if mkdir -p . 2>/dev/null; then
cannam@126 552 as_mkdir_p='mkdir -p "$as_dir"'
cannam@126 553 else
cannam@126 554 test -d ./-p && rmdir ./-p
cannam@126 555 as_mkdir_p=false
cannam@126 556 fi
cannam@126 557
cannam@126 558 as_test_x='test -x'
cannam@126 559 as_executable_p=as_fn_executable_p
cannam@126 560
cannam@126 561 # Sed expression to map a string onto a valid CPP name.
cannam@126 562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
cannam@126 563
cannam@126 564 # Sed expression to map a string onto a valid variable name.
cannam@126 565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
cannam@126 566
cannam@126 567 SHELL=${CONFIG_SHELL-/bin/sh}
cannam@126 568
cannam@126 569
cannam@126 570 test -n "$DJDIR" || exec 7<&0 </dev/null
cannam@126 571 exec 6>&1
cannam@126 572
cannam@126 573 # Name of the host.
cannam@126 574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cannam@126 575 # so uname gets run too.
cannam@126 576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@126 577
cannam@126 578 #
cannam@126 579 # Initializations.
cannam@126 580 #
cannam@126 581 ac_default_prefix=/usr/local
cannam@126 582 ac_clean_files=
cannam@126 583 ac_config_libobj_dir=.
cannam@126 584 LIBOBJS=
cannam@126 585 cross_compiling=no
cannam@126 586 subdirs=
cannam@126 587 MFLAGS=
cannam@126 588 MAKEFLAGS=
cannam@126 589
cannam@126 590 # Identity of this package.
cannam@126 591 PACKAGE_NAME='libsamplerate'
cannam@126 592 PACKAGE_TARNAME='libsamplerate'
cannam@126 593 PACKAGE_VERSION='0.1.9'
cannam@126 594 PACKAGE_STRING='libsamplerate 0.1.9'
cannam@126 595 PACKAGE_BUGREPORT='erikd@mega-nerd.com'
cannam@126 596 PACKAGE_URL='http://www.mega-nerd.com/libsamplerate/'
cannam@126 597
cannam@126 598 ac_unique_file="src/samplerate.c"
cannam@126 599 # Factoring default headers for most tests.
cannam@126 600 ac_includes_default="\
cannam@126 601 #include <stdio.h>
cannam@126 602 #ifdef HAVE_SYS_TYPES_H
cannam@126 603 # include <sys/types.h>
cannam@126 604 #endif
cannam@126 605 #ifdef HAVE_SYS_STAT_H
cannam@126 606 # include <sys/stat.h>
cannam@126 607 #endif
cannam@126 608 #ifdef STDC_HEADERS
cannam@126 609 # include <stdlib.h>
cannam@126 610 # include <stddef.h>
cannam@126 611 #else
cannam@126 612 # ifdef HAVE_STDLIB_H
cannam@126 613 # include <stdlib.h>
cannam@126 614 # endif
cannam@126 615 #endif
cannam@126 616 #ifdef HAVE_STRING_H
cannam@126 617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
cannam@126 618 # include <memory.h>
cannam@126 619 # endif
cannam@126 620 # include <string.h>
cannam@126 621 #endif
cannam@126 622 #ifdef HAVE_STRINGS_H
cannam@126 623 # include <strings.h>
cannam@126 624 #endif
cannam@126 625 #ifdef HAVE_INTTYPES_H
cannam@126 626 # include <inttypes.h>
cannam@126 627 #endif
cannam@126 628 #ifdef HAVE_STDINT_H
cannam@126 629 # include <stdint.h>
cannam@126 630 #endif
cannam@126 631 #ifdef HAVE_UNISTD_H
cannam@126 632 # include <unistd.h>
cannam@126 633 #endif"
cannam@126 634
cannam@126 635 ac_subst_vars='am__EXEEXT_FALSE
cannam@126 636 am__EXEEXT_TRUE
cannam@126 637 LTLIBOBJS
cannam@126 638 LIBOBJS
cannam@126 639 ALSA_LIBS
cannam@126 640 HAVE_SNDFILE
cannam@126 641 HAVE_FFTW3
cannam@126 642 GCC_MAJOR_VERSION
cannam@126 643 COMPILER_IS_GCC
cannam@126 644 OS_SPECIFIC_LINKS
cannam@126 645 OS_SPECIFIC_INCLUDES
cannam@126 646 SHARED_VERSION_INFO
cannam@126 647 SHLIB_VERSION_ARG
cannam@126 648 htmldocdir
cannam@126 649 FFTW3_LIBS
cannam@126 650 FFTW3_CFLAGS
cannam@126 651 SNDFILE_LIBS
cannam@126 652 SNDFILE_CFLAGS
cannam@126 653 PKG_CONFIG_LIBDIR
cannam@126 654 PKG_CONFIG_PATH
cannam@126 655 PKG_CONFIG
cannam@126 656 PEXPORTS
cannam@126 657 DLLWRAP
cannam@126 658 RC
cannam@126 659 CXXCPP
cannam@126 660 CPP
cannam@126 661 LT_SYS_LIBRARY_PATH
cannam@126 662 OTOOL64
cannam@126 663 OTOOL
cannam@126 664 LIPO
cannam@126 665 NMEDIT
cannam@126 666 DSYMUTIL
cannam@126 667 MANIFEST_TOOL
cannam@126 668 RANLIB
cannam@126 669 ac_ct_AR
cannam@126 670 AR
cannam@126 671 DLLTOOL
cannam@126 672 OBJDUMP
cannam@126 673 LN_S
cannam@126 674 NM
cannam@126 675 ac_ct_DUMPBIN
cannam@126 676 DUMPBIN
cannam@126 677 LD
cannam@126 678 FGREP
cannam@126 679 EGREP
cannam@126 680 GREP
cannam@126 681 LIBTOOL
cannam@126 682 SED
cannam@126 683 am__fastdepCXX_FALSE
cannam@126 684 am__fastdepCXX_TRUE
cannam@126 685 CXXDEPMODE
cannam@126 686 ac_ct_CXX
cannam@126 687 CXXFLAGS
cannam@126 688 CXX
cannam@126 689 am__fastdepCC_FALSE
cannam@126 690 am__fastdepCC_TRUE
cannam@126 691 CCDEPMODE
cannam@126 692 am__nodep
cannam@126 693 AMDEPBACKSLASH
cannam@126 694 AMDEP_FALSE
cannam@126 695 AMDEP_TRUE
cannam@126 696 am__quote
cannam@126 697 am__include
cannam@126 698 DEPDIR
cannam@126 699 OBJEXT
cannam@126 700 EXEEXT
cannam@126 701 ac_ct_CC
cannam@126 702 CPPFLAGS
cannam@126 703 LDFLAGS
cannam@126 704 CFLAGS
cannam@126 705 CC
cannam@126 706 ACLOCAL_AMFLAGS
cannam@126 707 AM_BACKSLASH
cannam@126 708 AM_DEFAULT_VERBOSITY
cannam@126 709 AM_DEFAULT_V
cannam@126 710 AM_V
cannam@126 711 am__untar
cannam@126 712 am__tar
cannam@126 713 AMTAR
cannam@126 714 am__leading_dot
cannam@126 715 SET_MAKE
cannam@126 716 AWK
cannam@126 717 mkdir_p
cannam@126 718 MKDIR_P
cannam@126 719 INSTALL_STRIP_PROGRAM
cannam@126 720 STRIP
cannam@126 721 install_sh
cannam@126 722 MAKEINFO
cannam@126 723 AUTOHEADER
cannam@126 724 AUTOMAKE
cannam@126 725 AUTOCONF
cannam@126 726 ACLOCAL
cannam@126 727 VERSION
cannam@126 728 PACKAGE
cannam@126 729 CYGPATH_W
cannam@126 730 am__isrc
cannam@126 731 INSTALL_DATA
cannam@126 732 INSTALL_SCRIPT
cannam@126 733 INSTALL_PROGRAM
cannam@126 734 target_os
cannam@126 735 target_vendor
cannam@126 736 target_cpu
cannam@126 737 target
cannam@126 738 host_os
cannam@126 739 host_vendor
cannam@126 740 host_cpu
cannam@126 741 host
cannam@126 742 build_os
cannam@126 743 build_vendor
cannam@126 744 build_cpu
cannam@126 745 build
cannam@126 746 target_alias
cannam@126 747 host_alias
cannam@126 748 build_alias
cannam@126 749 LIBS
cannam@126 750 ECHO_T
cannam@126 751 ECHO_N
cannam@126 752 ECHO_C
cannam@126 753 DEFS
cannam@126 754 mandir
cannam@126 755 localedir
cannam@126 756 libdir
cannam@126 757 psdir
cannam@126 758 pdfdir
cannam@126 759 dvidir
cannam@126 760 htmldir
cannam@126 761 infodir
cannam@126 762 docdir
cannam@126 763 oldincludedir
cannam@126 764 includedir
cannam@126 765 runstatedir
cannam@126 766 localstatedir
cannam@126 767 sharedstatedir
cannam@126 768 sysconfdir
cannam@126 769 datadir
cannam@126 770 datarootdir
cannam@126 771 libexecdir
cannam@126 772 sbindir
cannam@126 773 bindir
cannam@126 774 program_transform_name
cannam@126 775 prefix
cannam@126 776 exec_prefix
cannam@126 777 PACKAGE_URL
cannam@126 778 PACKAGE_BUGREPORT
cannam@126 779 PACKAGE_STRING
cannam@126 780 PACKAGE_VERSION
cannam@126 781 PACKAGE_TARNAME
cannam@126 782 PACKAGE_NAME
cannam@126 783 PATH_SEPARATOR
cannam@126 784 SHELL'
cannam@126 785 ac_subst_files=''
cannam@126 786 ac_user_opts='
cannam@126 787 enable_option_checking
cannam@126 788 enable_silent_rules
cannam@126 789 enable_dependency_tracking
cannam@126 790 enable_shared
cannam@126 791 enable_static
cannam@126 792 with_pic
cannam@126 793 enable_fast_install
cannam@126 794 with_aix_soname
cannam@126 795 with_gnu_ld
cannam@126 796 with_sysroot
cannam@126 797 enable_libtool_lock
cannam@126 798 enable_gcc_werror
cannam@126 799 enable_gcc_pipe
cannam@126 800 enable_gcc_opt
cannam@126 801 enable_fftw
cannam@126 802 enable_cpu_clip
cannam@126 803 enable_sndfile
cannam@126 804 '
cannam@126 805 ac_precious_vars='build_alias
cannam@126 806 host_alias
cannam@126 807 target_alias
cannam@126 808 CC
cannam@126 809 CFLAGS
cannam@126 810 LDFLAGS
cannam@126 811 LIBS
cannam@126 812 CPPFLAGS
cannam@126 813 CXX
cannam@126 814 CXXFLAGS
cannam@126 815 CCC
cannam@126 816 LT_SYS_LIBRARY_PATH
cannam@126 817 CPP
cannam@126 818 CXXCPP
cannam@126 819 PKG_CONFIG
cannam@126 820 PKG_CONFIG_PATH
cannam@126 821 PKG_CONFIG_LIBDIR
cannam@126 822 SNDFILE_CFLAGS
cannam@126 823 SNDFILE_LIBS
cannam@126 824 FFTW3_CFLAGS
cannam@126 825 FFTW3_LIBS'
cannam@126 826
cannam@126 827
cannam@126 828 # Initialize some variables set by options.
cannam@126 829 ac_init_help=
cannam@126 830 ac_init_version=false
cannam@126 831 ac_unrecognized_opts=
cannam@126 832 ac_unrecognized_sep=
cannam@126 833 # The variables have the same names as the options, with
cannam@126 834 # dashes changed to underlines.
cannam@126 835 cache_file=/dev/null
cannam@126 836 exec_prefix=NONE
cannam@126 837 no_create=
cannam@126 838 no_recursion=
cannam@126 839 prefix=NONE
cannam@126 840 program_prefix=NONE
cannam@126 841 program_suffix=NONE
cannam@126 842 program_transform_name=s,x,x,
cannam@126 843 silent=
cannam@126 844 site=
cannam@126 845 srcdir=
cannam@126 846 verbose=
cannam@126 847 x_includes=NONE
cannam@126 848 x_libraries=NONE
cannam@126 849
cannam@126 850 # Installation directory options.
cannam@126 851 # These are left unexpanded so users can "make install exec_prefix=/foo"
cannam@126 852 # and all the variables that are supposed to be based on exec_prefix
cannam@126 853 # by default will actually change.
cannam@126 854 # Use braces instead of parens because sh, perl, etc. also accept them.
cannam@126 855 # (The list follows the same order as the GNU Coding Standards.)
cannam@126 856 bindir='${exec_prefix}/bin'
cannam@126 857 sbindir='${exec_prefix}/sbin'
cannam@126 858 libexecdir='${exec_prefix}/libexec'
cannam@126 859 datarootdir='${prefix}/share'
cannam@126 860 datadir='${datarootdir}'
cannam@126 861 sysconfdir='${prefix}/etc'
cannam@126 862 sharedstatedir='${prefix}/com'
cannam@126 863 localstatedir='${prefix}/var'
cannam@126 864 runstatedir='${localstatedir}/run'
cannam@126 865 includedir='${prefix}/include'
cannam@126 866 oldincludedir='/usr/include'
cannam@126 867 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
cannam@126 868 infodir='${datarootdir}/info'
cannam@126 869 htmldir='${docdir}'
cannam@126 870 dvidir='${docdir}'
cannam@126 871 pdfdir='${docdir}'
cannam@126 872 psdir='${docdir}'
cannam@126 873 libdir='${exec_prefix}/lib'
cannam@126 874 localedir='${datarootdir}/locale'
cannam@126 875 mandir='${datarootdir}/man'
cannam@126 876
cannam@126 877 ac_prev=
cannam@126 878 ac_dashdash=
cannam@126 879 for ac_option
cannam@126 880 do
cannam@126 881 # If the previous option needs an argument, assign it.
cannam@126 882 if test -n "$ac_prev"; then
cannam@126 883 eval $ac_prev=\$ac_option
cannam@126 884 ac_prev=
cannam@126 885 continue
cannam@126 886 fi
cannam@126 887
cannam@126 888 case $ac_option in
cannam@126 889 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
cannam@126 890 *=) ac_optarg= ;;
cannam@126 891 *) ac_optarg=yes ;;
cannam@126 892 esac
cannam@126 893
cannam@126 894 # Accept the important Cygnus configure options, so we can diagnose typos.
cannam@126 895
cannam@126 896 case $ac_dashdash$ac_option in
cannam@126 897 --)
cannam@126 898 ac_dashdash=yes ;;
cannam@126 899
cannam@126 900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
cannam@126 901 ac_prev=bindir ;;
cannam@126 902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
cannam@126 903 bindir=$ac_optarg ;;
cannam@126 904
cannam@126 905 -build | --build | --buil | --bui | --bu)
cannam@126 906 ac_prev=build_alias ;;
cannam@126 907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
cannam@126 908 build_alias=$ac_optarg ;;
cannam@126 909
cannam@126 910 -cache-file | --cache-file | --cache-fil | --cache-fi \
cannam@126 911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
cannam@126 912 ac_prev=cache_file ;;
cannam@126 913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
cannam@126 914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
cannam@126 915 cache_file=$ac_optarg ;;
cannam@126 916
cannam@126 917 --config-cache | -C)
cannam@126 918 cache_file=config.cache ;;
cannam@126 919
cannam@126 920 -datadir | --datadir | --datadi | --datad)
cannam@126 921 ac_prev=datadir ;;
cannam@126 922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
cannam@126 923 datadir=$ac_optarg ;;
cannam@126 924
cannam@126 925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
cannam@126 926 | --dataroo | --dataro | --datar)
cannam@126 927 ac_prev=datarootdir ;;
cannam@126 928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
cannam@126 929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
cannam@126 930 datarootdir=$ac_optarg ;;
cannam@126 931
cannam@126 932 -disable-* | --disable-*)
cannam@126 933 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
cannam@126 934 # Reject names that are not valid shell variable names.
cannam@126 935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@126 936 as_fn_error $? "invalid feature name: $ac_useropt"
cannam@126 937 ac_useropt_orig=$ac_useropt
cannam@126 938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@126 939 case $ac_user_opts in
cannam@126 940 *"
cannam@126 941 "enable_$ac_useropt"
cannam@126 942 "*) ;;
cannam@126 943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
cannam@126 944 ac_unrecognized_sep=', ';;
cannam@126 945 esac
cannam@126 946 eval enable_$ac_useropt=no ;;
cannam@126 947
cannam@126 948 -docdir | --docdir | --docdi | --doc | --do)
cannam@126 949 ac_prev=docdir ;;
cannam@126 950 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
cannam@126 951 docdir=$ac_optarg ;;
cannam@126 952
cannam@126 953 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
cannam@126 954 ac_prev=dvidir ;;
cannam@126 955 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
cannam@126 956 dvidir=$ac_optarg ;;
cannam@126 957
cannam@126 958 -enable-* | --enable-*)
cannam@126 959 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
cannam@126 960 # Reject names that are not valid shell variable names.
cannam@126 961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@126 962 as_fn_error $? "invalid feature name: $ac_useropt"
cannam@126 963 ac_useropt_orig=$ac_useropt
cannam@126 964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@126 965 case $ac_user_opts in
cannam@126 966 *"
cannam@126 967 "enable_$ac_useropt"
cannam@126 968 "*) ;;
cannam@126 969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
cannam@126 970 ac_unrecognized_sep=', ';;
cannam@126 971 esac
cannam@126 972 eval enable_$ac_useropt=\$ac_optarg ;;
cannam@126 973
cannam@126 974 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
cannam@126 975 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
cannam@126 976 | --exec | --exe | --ex)
cannam@126 977 ac_prev=exec_prefix ;;
cannam@126 978 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
cannam@126 979 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
cannam@126 980 | --exec=* | --exe=* | --ex=*)
cannam@126 981 exec_prefix=$ac_optarg ;;
cannam@126 982
cannam@126 983 -gas | --gas | --ga | --g)
cannam@126 984 # Obsolete; use --with-gas.
cannam@126 985 with_gas=yes ;;
cannam@126 986
cannam@126 987 -help | --help | --hel | --he | -h)
cannam@126 988 ac_init_help=long ;;
cannam@126 989 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
cannam@126 990 ac_init_help=recursive ;;
cannam@126 991 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
cannam@126 992 ac_init_help=short ;;
cannam@126 993
cannam@126 994 -host | --host | --hos | --ho)
cannam@126 995 ac_prev=host_alias ;;
cannam@126 996 -host=* | --host=* | --hos=* | --ho=*)
cannam@126 997 host_alias=$ac_optarg ;;
cannam@126 998
cannam@126 999 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
cannam@126 1000 ac_prev=htmldir ;;
cannam@126 1001 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
cannam@126 1002 | --ht=*)
cannam@126 1003 htmldir=$ac_optarg ;;
cannam@126 1004
cannam@126 1005 -includedir | --includedir | --includedi | --included | --include \
cannam@126 1006 | --includ | --inclu | --incl | --inc)
cannam@126 1007 ac_prev=includedir ;;
cannam@126 1008 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
cannam@126 1009 | --includ=* | --inclu=* | --incl=* | --inc=*)
cannam@126 1010 includedir=$ac_optarg ;;
cannam@126 1011
cannam@126 1012 -infodir | --infodir | --infodi | --infod | --info | --inf)
cannam@126 1013 ac_prev=infodir ;;
cannam@126 1014 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
cannam@126 1015 infodir=$ac_optarg ;;
cannam@126 1016
cannam@126 1017 -libdir | --libdir | --libdi | --libd)
cannam@126 1018 ac_prev=libdir ;;
cannam@126 1019 -libdir=* | --libdir=* | --libdi=* | --libd=*)
cannam@126 1020 libdir=$ac_optarg ;;
cannam@126 1021
cannam@126 1022 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
cannam@126 1023 | --libexe | --libex | --libe)
cannam@126 1024 ac_prev=libexecdir ;;
cannam@126 1025 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
cannam@126 1026 | --libexe=* | --libex=* | --libe=*)
cannam@126 1027 libexecdir=$ac_optarg ;;
cannam@126 1028
cannam@126 1029 -localedir | --localedir | --localedi | --localed | --locale)
cannam@126 1030 ac_prev=localedir ;;
cannam@126 1031 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
cannam@126 1032 localedir=$ac_optarg ;;
cannam@126 1033
cannam@126 1034 -localstatedir | --localstatedir | --localstatedi | --localstated \
cannam@126 1035 | --localstate | --localstat | --localsta | --localst | --locals)
cannam@126 1036 ac_prev=localstatedir ;;
cannam@126 1037 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cannam@126 1038 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
cannam@126 1039 localstatedir=$ac_optarg ;;
cannam@126 1040
cannam@126 1041 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
cannam@126 1042 ac_prev=mandir ;;
cannam@126 1043 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
cannam@126 1044 mandir=$ac_optarg ;;
cannam@126 1045
cannam@126 1046 -nfp | --nfp | --nf)
cannam@126 1047 # Obsolete; use --without-fp.
cannam@126 1048 with_fp=no ;;
cannam@126 1049
cannam@126 1050 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
cannam@126 1051 | --no-cr | --no-c | -n)
cannam@126 1052 no_create=yes ;;
cannam@126 1053
cannam@126 1054 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
cannam@126 1055 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
cannam@126 1056 no_recursion=yes ;;
cannam@126 1057
cannam@126 1058 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
cannam@126 1059 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
cannam@126 1060 | --oldin | --oldi | --old | --ol | --o)
cannam@126 1061 ac_prev=oldincludedir ;;
cannam@126 1062 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
cannam@126 1063 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
cannam@126 1064 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
cannam@126 1065 oldincludedir=$ac_optarg ;;
cannam@126 1066
cannam@126 1067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
cannam@126 1068 ac_prev=prefix ;;
cannam@126 1069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
cannam@126 1070 prefix=$ac_optarg ;;
cannam@126 1071
cannam@126 1072 -program-prefix | --program-prefix | --program-prefi | --program-pref \
cannam@126 1073 | --program-pre | --program-pr | --program-p)
cannam@126 1074 ac_prev=program_prefix ;;
cannam@126 1075 -program-prefix=* | --program-prefix=* | --program-prefi=* \
cannam@126 1076 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
cannam@126 1077 program_prefix=$ac_optarg ;;
cannam@126 1078
cannam@126 1079 -program-suffix | --program-suffix | --program-suffi | --program-suff \
cannam@126 1080 | --program-suf | --program-su | --program-s)
cannam@126 1081 ac_prev=program_suffix ;;
cannam@126 1082 -program-suffix=* | --program-suffix=* | --program-suffi=* \
cannam@126 1083 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
cannam@126 1084 program_suffix=$ac_optarg ;;
cannam@126 1085
cannam@126 1086 -program-transform-name | --program-transform-name \
cannam@126 1087 | --program-transform-nam | --program-transform-na \
cannam@126 1088 | --program-transform-n | --program-transform- \
cannam@126 1089 | --program-transform | --program-transfor \
cannam@126 1090 | --program-transfo | --program-transf \
cannam@126 1091 | --program-trans | --program-tran \
cannam@126 1092 | --progr-tra | --program-tr | --program-t)
cannam@126 1093 ac_prev=program_transform_name ;;
cannam@126 1094 -program-transform-name=* | --program-transform-name=* \
cannam@126 1095 | --program-transform-nam=* | --program-transform-na=* \
cannam@126 1096 | --program-transform-n=* | --program-transform-=* \
cannam@126 1097 | --program-transform=* | --program-transfor=* \
cannam@126 1098 | --program-transfo=* | --program-transf=* \
cannam@126 1099 | --program-trans=* | --program-tran=* \
cannam@126 1100 | --progr-tra=* | --program-tr=* | --program-t=*)
cannam@126 1101 program_transform_name=$ac_optarg ;;
cannam@126 1102
cannam@126 1103 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
cannam@126 1104 ac_prev=pdfdir ;;
cannam@126 1105 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
cannam@126 1106 pdfdir=$ac_optarg ;;
cannam@126 1107
cannam@126 1108 -psdir | --psdir | --psdi | --psd | --ps)
cannam@126 1109 ac_prev=psdir ;;
cannam@126 1110 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
cannam@126 1111 psdir=$ac_optarg ;;
cannam@126 1112
cannam@126 1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@126 1114 | -silent | --silent | --silen | --sile | --sil)
cannam@126 1115 silent=yes ;;
cannam@126 1116
cannam@126 1117 -runstatedir | --runstatedir | --runstatedi | --runstated \
cannam@126 1118 | --runstate | --runstat | --runsta | --runst | --runs \
cannam@126 1119 | --run | --ru | --r)
cannam@126 1120 ac_prev=runstatedir ;;
cannam@126 1121 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
cannam@126 1122 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
cannam@126 1123 | --run=* | --ru=* | --r=*)
cannam@126 1124 runstatedir=$ac_optarg ;;
cannam@126 1125
cannam@126 1126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
cannam@126 1127 ac_prev=sbindir ;;
cannam@126 1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
cannam@126 1129 | --sbi=* | --sb=*)
cannam@126 1130 sbindir=$ac_optarg ;;
cannam@126 1131
cannam@126 1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \
cannam@126 1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
cannam@126 1134 | --sharedst | --shareds | --shared | --share | --shar \
cannam@126 1135 | --sha | --sh)
cannam@126 1136 ac_prev=sharedstatedir ;;
cannam@126 1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
cannam@126 1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
cannam@126 1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
cannam@126 1140 | --sha=* | --sh=*)
cannam@126 1141 sharedstatedir=$ac_optarg ;;
cannam@126 1142
cannam@126 1143 -site | --site | --sit)
cannam@126 1144 ac_prev=site ;;
cannam@126 1145 -site=* | --site=* | --sit=*)
cannam@126 1146 site=$ac_optarg ;;
cannam@126 1147
cannam@126 1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
cannam@126 1149 ac_prev=srcdir ;;
cannam@126 1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
cannam@126 1151 srcdir=$ac_optarg ;;
cannam@126 1152
cannam@126 1153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
cannam@126 1154 | --syscon | --sysco | --sysc | --sys | --sy)
cannam@126 1155 ac_prev=sysconfdir ;;
cannam@126 1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
cannam@126 1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
cannam@126 1158 sysconfdir=$ac_optarg ;;
cannam@126 1159
cannam@126 1160 -target | --target | --targe | --targ | --tar | --ta | --t)
cannam@126 1161 ac_prev=target_alias ;;
cannam@126 1162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
cannam@126 1163 target_alias=$ac_optarg ;;
cannam@126 1164
cannam@126 1165 -v | -verbose | --verbose | --verbos | --verbo | --verb)
cannam@126 1166 verbose=yes ;;
cannam@126 1167
cannam@126 1168 -version | --version | --versio | --versi | --vers | -V)
cannam@126 1169 ac_init_version=: ;;
cannam@126 1170
cannam@126 1171 -with-* | --with-*)
cannam@126 1172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
cannam@126 1173 # Reject names that are not valid shell variable names.
cannam@126 1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@126 1175 as_fn_error $? "invalid package name: $ac_useropt"
cannam@126 1176 ac_useropt_orig=$ac_useropt
cannam@126 1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@126 1178 case $ac_user_opts in
cannam@126 1179 *"
cannam@126 1180 "with_$ac_useropt"
cannam@126 1181 "*) ;;
cannam@126 1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
cannam@126 1183 ac_unrecognized_sep=', ';;
cannam@126 1184 esac
cannam@126 1185 eval with_$ac_useropt=\$ac_optarg ;;
cannam@126 1186
cannam@126 1187 -without-* | --without-*)
cannam@126 1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
cannam@126 1189 # Reject names that are not valid shell variable names.
cannam@126 1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@126 1191 as_fn_error $? "invalid package name: $ac_useropt"
cannam@126 1192 ac_useropt_orig=$ac_useropt
cannam@126 1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@126 1194 case $ac_user_opts in
cannam@126 1195 *"
cannam@126 1196 "with_$ac_useropt"
cannam@126 1197 "*) ;;
cannam@126 1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
cannam@126 1199 ac_unrecognized_sep=', ';;
cannam@126 1200 esac
cannam@126 1201 eval with_$ac_useropt=no ;;
cannam@126 1202
cannam@126 1203 --x)
cannam@126 1204 # Obsolete; use --with-x.
cannam@126 1205 with_x=yes ;;
cannam@126 1206
cannam@126 1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
cannam@126 1208 | --x-incl | --x-inc | --x-in | --x-i)
cannam@126 1209 ac_prev=x_includes ;;
cannam@126 1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
cannam@126 1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
cannam@126 1212 x_includes=$ac_optarg ;;
cannam@126 1213
cannam@126 1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \
cannam@126 1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
cannam@126 1216 ac_prev=x_libraries ;;
cannam@126 1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
cannam@126 1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
cannam@126 1219 x_libraries=$ac_optarg ;;
cannam@126 1220
cannam@126 1221 -*) as_fn_error $? "unrecognized option: \`$ac_option'
cannam@126 1222 Try \`$0 --help' for more information"
cannam@126 1223 ;;
cannam@126 1224
cannam@126 1225 *=*)
cannam@126 1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
cannam@126 1227 # Reject names that are not valid shell variable names.
cannam@126 1228 case $ac_envvar in #(
cannam@126 1229 '' | [0-9]* | *[!_$as_cr_alnum]* )
cannam@126 1230 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cannam@126 1231 esac
cannam@126 1232 eval $ac_envvar=\$ac_optarg
cannam@126 1233 export $ac_envvar ;;
cannam@126 1234
cannam@126 1235 *)
cannam@126 1236 # FIXME: should be removed in autoconf 3.0.
cannam@126 1237 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
cannam@126 1238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
cannam@126 1239 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cannam@126 1240 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cannam@126 1241 ;;
cannam@126 1242
cannam@126 1243 esac
cannam@126 1244 done
cannam@126 1245
cannam@126 1246 if test -n "$ac_prev"; then
cannam@126 1247 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cannam@126 1248 as_fn_error $? "missing argument to $ac_option"
cannam@126 1249 fi
cannam@126 1250
cannam@126 1251 if test -n "$ac_unrecognized_opts"; then
cannam@126 1252 case $enable_option_checking in
cannam@126 1253 no) ;;
cannam@126 1254 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cannam@126 1255 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
cannam@126 1256 esac
cannam@126 1257 fi
cannam@126 1258
cannam@126 1259 # Check all directory arguments for consistency.
cannam@126 1260 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
cannam@126 1261 datadir sysconfdir sharedstatedir localstatedir includedir \
cannam@126 1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
cannam@126 1263 libdir localedir mandir runstatedir
cannam@126 1264 do
cannam@126 1265 eval ac_val=\$$ac_var
cannam@126 1266 # Remove trailing slashes.
cannam@126 1267 case $ac_val in
cannam@126 1268 */ )
cannam@126 1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
cannam@126 1270 eval $ac_var=\$ac_val;;
cannam@126 1271 esac
cannam@126 1272 # Be sure to have absolute directory names.
cannam@126 1273 case $ac_val in
cannam@126 1274 [\\/$]* | ?:[\\/]* ) continue;;
cannam@126 1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
cannam@126 1276 esac
cannam@126 1277 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cannam@126 1278 done
cannam@126 1279
cannam@126 1280 # There might be people who depend on the old broken behavior: `$host'
cannam@126 1281 # used to hold the argument of --host etc.
cannam@126 1282 # FIXME: To remove some day.
cannam@126 1283 build=$build_alias
cannam@126 1284 host=$host_alias
cannam@126 1285 target=$target_alias
cannam@126 1286
cannam@126 1287 # FIXME: To remove some day.
cannam@126 1288 if test "x$host_alias" != x; then
cannam@126 1289 if test "x$build_alias" = x; then
cannam@126 1290 cross_compiling=maybe
cannam@126 1291 elif test "x$build_alias" != "x$host_alias"; then
cannam@126 1292 cross_compiling=yes
cannam@126 1293 fi
cannam@126 1294 fi
cannam@126 1295
cannam@126 1296 ac_tool_prefix=
cannam@126 1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
cannam@126 1298
cannam@126 1299 test "$silent" = yes && exec 6>/dev/null
cannam@126 1300
cannam@126 1301
cannam@126 1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
cannam@126 1303 ac_ls_di=`ls -di .` &&
cannam@126 1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cannam@126 1305 as_fn_error $? "working directory cannot be determined"
cannam@126 1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cannam@126 1307 as_fn_error $? "pwd does not report name of working directory"
cannam@126 1308
cannam@126 1309
cannam@126 1310 # Find the source files, if location was not specified.
cannam@126 1311 if test -z "$srcdir"; then
cannam@126 1312 ac_srcdir_defaulted=yes
cannam@126 1313 # Try the directory containing this script, then the parent directory.
cannam@126 1314 ac_confdir=`$as_dirname -- "$as_myself" ||
cannam@126 1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@126 1316 X"$as_myself" : 'X\(//\)[^/]' \| \
cannam@126 1317 X"$as_myself" : 'X\(//\)$' \| \
cannam@126 1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
cannam@126 1319 $as_echo X"$as_myself" |
cannam@126 1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@126 1321 s//\1/
cannam@126 1322 q
cannam@126 1323 }
cannam@126 1324 /^X\(\/\/\)[^/].*/{
cannam@126 1325 s//\1/
cannam@126 1326 q
cannam@126 1327 }
cannam@126 1328 /^X\(\/\/\)$/{
cannam@126 1329 s//\1/
cannam@126 1330 q
cannam@126 1331 }
cannam@126 1332 /^X\(\/\).*/{
cannam@126 1333 s//\1/
cannam@126 1334 q
cannam@126 1335 }
cannam@126 1336 s/.*/./; q'`
cannam@126 1337 srcdir=$ac_confdir
cannam@126 1338 if test ! -r "$srcdir/$ac_unique_file"; then
cannam@126 1339 srcdir=..
cannam@126 1340 fi
cannam@126 1341 else
cannam@126 1342 ac_srcdir_defaulted=no
cannam@126 1343 fi
cannam@126 1344 if test ! -r "$srcdir/$ac_unique_file"; then
cannam@126 1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cannam@126 1346 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cannam@126 1347 fi
cannam@126 1348 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
cannam@126 1349 ac_abs_confdir=`(
cannam@126 1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cannam@126 1351 pwd)`
cannam@126 1352 # When building in place, set srcdir=.
cannam@126 1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
cannam@126 1354 srcdir=.
cannam@126 1355 fi
cannam@126 1356 # Remove unnecessary trailing slashes from srcdir.
cannam@126 1357 # Double slashes in file names in object file debugging info
cannam@126 1358 # mess up M-x gdb in Emacs.
cannam@126 1359 case $srcdir in
cannam@126 1360 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
cannam@126 1361 esac
cannam@126 1362 for ac_var in $ac_precious_vars; do
cannam@126 1363 eval ac_env_${ac_var}_set=\${${ac_var}+set}
cannam@126 1364 eval ac_env_${ac_var}_value=\$${ac_var}
cannam@126 1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
cannam@126 1366 eval ac_cv_env_${ac_var}_value=\$${ac_var}
cannam@126 1367 done
cannam@126 1368
cannam@126 1369 #
cannam@126 1370 # Report the --help message.
cannam@126 1371 #
cannam@126 1372 if test "$ac_init_help" = "long"; then
cannam@126 1373 # Omit some internal or obsolete options to make the list less imposing.
cannam@126 1374 # This message is too long to be a string in the A/UX 3.1 sh.
cannam@126 1375 cat <<_ACEOF
cannam@126 1376 \`configure' configures libsamplerate 0.1.9 to adapt to many kinds of systems.
cannam@126 1377
cannam@126 1378 Usage: $0 [OPTION]... [VAR=VALUE]...
cannam@126 1379
cannam@126 1380 To assign environment variables (e.g., CC, CFLAGS...), specify them as
cannam@126 1381 VAR=VALUE. See below for descriptions of some of the useful variables.
cannam@126 1382
cannam@126 1383 Defaults for the options are specified in brackets.
cannam@126 1384
cannam@126 1385 Configuration:
cannam@126 1386 -h, --help display this help and exit
cannam@126 1387 --help=short display options specific to this package
cannam@126 1388 --help=recursive display the short help of all the included packages
cannam@126 1389 -V, --version display version information and exit
cannam@126 1390 -q, --quiet, --silent do not print \`checking ...' messages
cannam@126 1391 --cache-file=FILE cache test results in FILE [disabled]
cannam@126 1392 -C, --config-cache alias for \`--cache-file=config.cache'
cannam@126 1393 -n, --no-create do not create output files
cannam@126 1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
cannam@126 1395
cannam@126 1396 Installation directories:
cannam@126 1397 --prefix=PREFIX install architecture-independent files in PREFIX
cannam@126 1398 [$ac_default_prefix]
cannam@126 1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
cannam@126 1400 [PREFIX]
cannam@126 1401
cannam@126 1402 By default, \`make install' will install all the files in
cannam@126 1403 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
cannam@126 1404 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
cannam@126 1405 for instance \`--prefix=\$HOME'.
cannam@126 1406
cannam@126 1407 For better control, use the options below.
cannam@126 1408
cannam@126 1409 Fine tuning of the installation directories:
cannam@126 1410 --bindir=DIR user executables [EPREFIX/bin]
cannam@126 1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
cannam@126 1412 --libexecdir=DIR program executables [EPREFIX/libexec]
cannam@126 1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
cannam@126 1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
cannam@126 1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
cannam@126 1416 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
cannam@126 1417 --libdir=DIR object code libraries [EPREFIX/lib]
cannam@126 1418 --includedir=DIR C header files [PREFIX/include]
cannam@126 1419 --oldincludedir=DIR C header files for non-gcc [/usr/include]
cannam@126 1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
cannam@126 1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
cannam@126 1422 --infodir=DIR info documentation [DATAROOTDIR/info]
cannam@126 1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
cannam@126 1424 --mandir=DIR man documentation [DATAROOTDIR/man]
cannam@126 1425 --docdir=DIR documentation root [DATAROOTDIR/doc/libsamplerate]
cannam@126 1426 --htmldir=DIR html documentation [DOCDIR]
cannam@126 1427 --dvidir=DIR dvi documentation [DOCDIR]
cannam@126 1428 --pdfdir=DIR pdf documentation [DOCDIR]
cannam@126 1429 --psdir=DIR ps documentation [DOCDIR]
cannam@126 1430 _ACEOF
cannam@126 1431
cannam@126 1432 cat <<\_ACEOF
cannam@126 1433
cannam@126 1434 Program names:
cannam@126 1435 --program-prefix=PREFIX prepend PREFIX to installed program names
cannam@126 1436 --program-suffix=SUFFIX append SUFFIX to installed program names
cannam@126 1437 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
cannam@126 1438
cannam@126 1439 System types:
cannam@126 1440 --build=BUILD configure for building on BUILD [guessed]
cannam@126 1441 --host=HOST cross-compile to build programs to run on HOST [BUILD]
cannam@126 1442 --target=TARGET configure for building compilers for TARGET [HOST]
cannam@126 1443 _ACEOF
cannam@126 1444 fi
cannam@126 1445
cannam@126 1446 if test -n "$ac_init_help"; then
cannam@126 1447 case $ac_init_help in
cannam@126 1448 short | recursive ) echo "Configuration of libsamplerate 0.1.9:";;
cannam@126 1449 esac
cannam@126 1450 cat <<\_ACEOF
cannam@126 1451
cannam@126 1452 Optional Features:
cannam@126 1453 --disable-option-checking ignore unrecognized --enable/--with options
cannam@126 1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
cannam@126 1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cannam@126 1456 --enable-silent-rules less verbose build output (undo: "make V=1")
cannam@126 1457 --disable-silent-rules verbose build output (undo: "make V=0")
cannam@126 1458 --enable-dependency-tracking
cannam@126 1459 do not reject slow dependency extractors
cannam@126 1460 --disable-dependency-tracking
cannam@126 1461 speeds up one-time build
cannam@126 1462 --enable-shared[=PKGS] build shared libraries [default=yes]
cannam@126 1463 --enable-static[=PKGS] build static libraries [default=yes]
cannam@126 1464 --enable-fast-install[=PKGS]
cannam@126 1465 optimize for fast installation [default=yes]
cannam@126 1466 --disable-libtool-lock avoid locking (might break parallel builds)
cannam@126 1467 --enable-gcc-werror enable -Werror in all Makefiles
cannam@126 1468 --disable-gcc-pipe disable gcc -pipe option
cannam@126 1469 --disable-gcc-opt disable gcc optimisations
cannam@126 1470 --disable-fftw disable usage of FFTW
cannam@126 1471 --disable-cpu-clip disable tricky cpu specific clipper
cannam@126 1472 --disable-sndfile disable support for sndfile (default=autodetect)
cannam@126 1473
cannam@126 1474 Optional Packages:
cannam@126 1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
cannam@126 1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cannam@126 1477 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cannam@126 1478 both]
cannam@126 1479 --with-aix-soname=aix|svr4|both
cannam@126 1480 shared library versioning (aka "SONAME") variant to
cannam@126 1481 provide on AIX, [default=aix].
cannam@126 1482 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cannam@126 1483 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
cannam@126 1484 compiler's sysroot if not specified).
cannam@126 1485
cannam@126 1486 Some influential environment variables:
cannam@126 1487 CC C compiler command
cannam@126 1488 CFLAGS C compiler flags
cannam@126 1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
cannam@126 1490 nonstandard directory <lib dir>
cannam@126 1491 LIBS libraries to pass to the linker, e.g. -l<library>
cannam@126 1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cannam@126 1493 you have headers in a nonstandard directory <include dir>
cannam@126 1494 CXX C++ compiler command
cannam@126 1495 CXXFLAGS C++ compiler flags
cannam@126 1496 LT_SYS_LIBRARY_PATH
cannam@126 1497 User-defined run-time library search path.
cannam@126 1498 CPP C preprocessor
cannam@126 1499 CXXCPP C++ preprocessor
cannam@126 1500 PKG_CONFIG path to pkg-config utility
cannam@126 1501 PKG_CONFIG_PATH
cannam@126 1502 directories to add to pkg-config's search path
cannam@126 1503 PKG_CONFIG_LIBDIR
cannam@126 1504 path overriding pkg-config's built-in search path
cannam@126 1505 SNDFILE_CFLAGS
cannam@126 1506 C compiler flags for SNDFILE, overriding pkg-config
cannam@126 1507 SNDFILE_LIBS
cannam@126 1508 linker flags for SNDFILE, overriding pkg-config
cannam@126 1509 FFTW3_CFLAGS
cannam@126 1510 C compiler flags for FFTW3, overriding pkg-config
cannam@126 1511 FFTW3_LIBS linker flags for FFTW3, overriding pkg-config
cannam@126 1512
cannam@126 1513 Use these variables to override the choices made by `configure' or to help
cannam@126 1514 it to find libraries and programs with nonstandard names/locations.
cannam@126 1515
cannam@126 1516 Report bugs to <erikd@mega-nerd.com>.
cannam@126 1517 libsamplerate home page: <http://www.mega-nerd.com/libsamplerate/>.
cannam@126 1518 _ACEOF
cannam@126 1519 ac_status=$?
cannam@126 1520 fi
cannam@126 1521
cannam@126 1522 if test "$ac_init_help" = "recursive"; then
cannam@126 1523 # If there are subdirs, report their specific --help.
cannam@126 1524 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
cannam@126 1525 test -d "$ac_dir" ||
cannam@126 1526 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
cannam@126 1527 continue
cannam@126 1528 ac_builddir=.
cannam@126 1529
cannam@126 1530 case "$ac_dir" in
cannam@126 1531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@126 1532 *)
cannam@126 1533 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
cannam@126 1534 # A ".." for each directory in $ac_dir_suffix.
cannam@126 1535 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
cannam@126 1536 case $ac_top_builddir_sub in
cannam@126 1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@126 1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
cannam@126 1539 esac ;;
cannam@126 1540 esac
cannam@126 1541 ac_abs_top_builddir=$ac_pwd
cannam@126 1542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
cannam@126 1543 # for backward compatibility:
cannam@126 1544 ac_top_builddir=$ac_top_build_prefix
cannam@126 1545
cannam@126 1546 case $srcdir in
cannam@126 1547 .) # We are building in place.
cannam@126 1548 ac_srcdir=.
cannam@126 1549 ac_top_srcdir=$ac_top_builddir_sub
cannam@126 1550 ac_abs_top_srcdir=$ac_pwd ;;
cannam@126 1551 [\\/]* | ?:[\\/]* ) # Absolute name.
cannam@126 1552 ac_srcdir=$srcdir$ac_dir_suffix;
cannam@126 1553 ac_top_srcdir=$srcdir
cannam@126 1554 ac_abs_top_srcdir=$srcdir ;;
cannam@126 1555 *) # Relative name.
cannam@126 1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
cannam@126 1557 ac_top_srcdir=$ac_top_build_prefix$srcdir
cannam@126 1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
cannam@126 1559 esac
cannam@126 1560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
cannam@126 1561
cannam@126 1562 cd "$ac_dir" || { ac_status=$?; continue; }
cannam@126 1563 # Check for guested configure.
cannam@126 1564 if test -f "$ac_srcdir/configure.gnu"; then
cannam@126 1565 echo &&
cannam@126 1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
cannam@126 1567 elif test -f "$ac_srcdir/configure"; then
cannam@126 1568 echo &&
cannam@126 1569 $SHELL "$ac_srcdir/configure" --help=recursive
cannam@126 1570 else
cannam@126 1571 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
cannam@126 1572 fi || ac_status=$?
cannam@126 1573 cd "$ac_pwd" || { ac_status=$?; break; }
cannam@126 1574 done
cannam@126 1575 fi
cannam@126 1576
cannam@126 1577 test -n "$ac_init_help" && exit $ac_status
cannam@126 1578 if $ac_init_version; then
cannam@126 1579 cat <<\_ACEOF
cannam@126 1580 libsamplerate configure 0.1.9
cannam@126 1581 generated by GNU Autoconf 2.69
cannam@126 1582
cannam@126 1583 Copyright (C) 2012 Free Software Foundation, Inc.
cannam@126 1584 This configure script is free software; the Free Software Foundation
cannam@126 1585 gives unlimited permission to copy, distribute and modify it.
cannam@126 1586 _ACEOF
cannam@126 1587 exit
cannam@126 1588 fi
cannam@126 1589
cannam@126 1590 ## ------------------------ ##
cannam@126 1591 ## Autoconf initialization. ##
cannam@126 1592 ## ------------------------ ##
cannam@126 1593
cannam@126 1594 # ac_fn_c_try_compile LINENO
cannam@126 1595 # --------------------------
cannam@126 1596 # Try to compile conftest.$ac_ext, and return whether this succeeded.
cannam@126 1597 ac_fn_c_try_compile ()
cannam@126 1598 {
cannam@126 1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@126 1600 rm -f conftest.$ac_objext
cannam@126 1601 if { { ac_try="$ac_compile"
cannam@126 1602 case "(($ac_try" in
cannam@126 1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@126 1604 *) ac_try_echo=$ac_try;;
cannam@126 1605 esac
cannam@126 1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@126 1607 $as_echo "$ac_try_echo"; } >&5
cannam@126 1608 (eval "$ac_compile") 2>conftest.err
cannam@126 1609 ac_status=$?
cannam@126 1610 if test -s conftest.err; then
cannam@126 1611 grep -v '^ *+' conftest.err >conftest.er1
cannam@126 1612 cat conftest.er1 >&5
cannam@126 1613 mv -f conftest.er1 conftest.err
cannam@126 1614 fi
cannam@126 1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 1616 test $ac_status = 0; } && {
cannam@126 1617 test -z "$ac_c_werror_flag" ||
cannam@126 1618 test ! -s conftest.err
cannam@126 1619 } && test -s conftest.$ac_objext; then :
cannam@126 1620 ac_retval=0
cannam@126 1621 else
cannam@126 1622 $as_echo "$as_me: failed program was:" >&5
cannam@126 1623 sed 's/^/| /' conftest.$ac_ext >&5
cannam@126 1624
cannam@126 1625 ac_retval=1
cannam@126 1626 fi
cannam@126 1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@126 1628 as_fn_set_status $ac_retval
cannam@126 1629
cannam@126 1630 } # ac_fn_c_try_compile
cannam@126 1631
cannam@126 1632 # ac_fn_cxx_try_compile LINENO
cannam@126 1633 # ----------------------------
cannam@126 1634 # Try to compile conftest.$ac_ext, and return whether this succeeded.
cannam@126 1635 ac_fn_cxx_try_compile ()
cannam@126 1636 {
cannam@126 1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@126 1638 rm -f conftest.$ac_objext
cannam@126 1639 if { { ac_try="$ac_compile"
cannam@126 1640 case "(($ac_try" in
cannam@126 1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@126 1642 *) ac_try_echo=$ac_try;;
cannam@126 1643 esac
cannam@126 1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@126 1645 $as_echo "$ac_try_echo"; } >&5
cannam@126 1646 (eval "$ac_compile") 2>conftest.err
cannam@126 1647 ac_status=$?
cannam@126 1648 if test -s conftest.err; then
cannam@126 1649 grep -v '^ *+' conftest.err >conftest.er1
cannam@126 1650 cat conftest.er1 >&5
cannam@126 1651 mv -f conftest.er1 conftest.err
cannam@126 1652 fi
cannam@126 1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 1654 test $ac_status = 0; } && {
cannam@126 1655 test -z "$ac_cxx_werror_flag" ||
cannam@126 1656 test ! -s conftest.err
cannam@126 1657 } && test -s conftest.$ac_objext; then :
cannam@126 1658 ac_retval=0
cannam@126 1659 else
cannam@126 1660 $as_echo "$as_me: failed program was:" >&5
cannam@126 1661 sed 's/^/| /' conftest.$ac_ext >&5
cannam@126 1662
cannam@126 1663 ac_retval=1
cannam@126 1664 fi
cannam@126 1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@126 1666 as_fn_set_status $ac_retval
cannam@126 1667
cannam@126 1668 } # ac_fn_cxx_try_compile
cannam@126 1669
cannam@126 1670 # ac_fn_c_try_link LINENO
cannam@126 1671 # -----------------------
cannam@126 1672 # Try to link conftest.$ac_ext, and return whether this succeeded.
cannam@126 1673 ac_fn_c_try_link ()
cannam@126 1674 {
cannam@126 1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@126 1676 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@126 1677 if { { ac_try="$ac_link"
cannam@126 1678 case "(($ac_try" in
cannam@126 1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@126 1680 *) ac_try_echo=$ac_try;;
cannam@126 1681 esac
cannam@126 1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@126 1683 $as_echo "$ac_try_echo"; } >&5
cannam@126 1684 (eval "$ac_link") 2>conftest.err
cannam@126 1685 ac_status=$?
cannam@126 1686 if test -s conftest.err; then
cannam@126 1687 grep -v '^ *+' conftest.err >conftest.er1
cannam@126 1688 cat conftest.er1 >&5
cannam@126 1689 mv -f conftest.er1 conftest.err
cannam@126 1690 fi
cannam@126 1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 1692 test $ac_status = 0; } && {
cannam@126 1693 test -z "$ac_c_werror_flag" ||
cannam@126 1694 test ! -s conftest.err
cannam@126 1695 } && test -s conftest$ac_exeext && {
cannam@126 1696 test "$cross_compiling" = yes ||
cannam@126 1697 test -x conftest$ac_exeext
cannam@126 1698 }; then :
cannam@126 1699 ac_retval=0
cannam@126 1700 else
cannam@126 1701 $as_echo "$as_me: failed program was:" >&5
cannam@126 1702 sed 's/^/| /' conftest.$ac_ext >&5
cannam@126 1703
cannam@126 1704 ac_retval=1
cannam@126 1705 fi
cannam@126 1706 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
cannam@126 1707 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
cannam@126 1708 # interfere with the next link command; also delete a directory that is
cannam@126 1709 # left behind by Apple's compiler. We do this before executing the actions.
cannam@126 1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cannam@126 1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@126 1712 as_fn_set_status $ac_retval
cannam@126 1713
cannam@126 1714 } # ac_fn_c_try_link
cannam@126 1715
cannam@126 1716 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
cannam@126 1717 # -------------------------------------------------------
cannam@126 1718 # Tests whether HEADER exists and can be compiled using the include files in
cannam@126 1719 # INCLUDES, setting the cache variable VAR accordingly.
cannam@126 1720 ac_fn_c_check_header_compile ()
cannam@126 1721 {
cannam@126 1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@126 1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@126 1724 $as_echo_n "checking for $2... " >&6; }
cannam@126 1725 if eval \${$3+:} false; then :
cannam@126 1726 $as_echo_n "(cached) " >&6
cannam@126 1727 else
cannam@126 1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 1729 /* end confdefs.h. */
cannam@126 1730 $4
cannam@126 1731 #include <$2>
cannam@126 1732 _ACEOF
cannam@126 1733 if ac_fn_c_try_compile "$LINENO"; then :
cannam@126 1734 eval "$3=yes"
cannam@126 1735 else
cannam@126 1736 eval "$3=no"
cannam@126 1737 fi
cannam@126 1738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@126 1739 fi
cannam@126 1740 eval ac_res=\$$3
cannam@126 1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@126 1742 $as_echo "$ac_res" >&6; }
cannam@126 1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@126 1744
cannam@126 1745 } # ac_fn_c_check_header_compile
cannam@126 1746
cannam@126 1747 # ac_fn_c_try_cpp LINENO
cannam@126 1748 # ----------------------
cannam@126 1749 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
cannam@126 1750 ac_fn_c_try_cpp ()
cannam@126 1751 {
cannam@126 1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@126 1753 if { { ac_try="$ac_cpp conftest.$ac_ext"
cannam@126 1754 case "(($ac_try" in
cannam@126 1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@126 1756 *) ac_try_echo=$ac_try;;
cannam@126 1757 esac
cannam@126 1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@126 1759 $as_echo "$ac_try_echo"; } >&5
cannam@126 1760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
cannam@126 1761 ac_status=$?
cannam@126 1762 if test -s conftest.err; then
cannam@126 1763 grep -v '^ *+' conftest.err >conftest.er1
cannam@126 1764 cat conftest.er1 >&5
cannam@126 1765 mv -f conftest.er1 conftest.err
cannam@126 1766 fi
cannam@126 1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 1768 test $ac_status = 0; } > conftest.i && {
cannam@126 1769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
cannam@126 1770 test ! -s conftest.err
cannam@126 1771 }; then :
cannam@126 1772 ac_retval=0
cannam@126 1773 else
cannam@126 1774 $as_echo "$as_me: failed program was:" >&5
cannam@126 1775 sed 's/^/| /' conftest.$ac_ext >&5
cannam@126 1776
cannam@126 1777 ac_retval=1
cannam@126 1778 fi
cannam@126 1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@126 1780 as_fn_set_status $ac_retval
cannam@126 1781
cannam@126 1782 } # ac_fn_c_try_cpp
cannam@126 1783
cannam@126 1784 # ac_fn_c_try_run LINENO
cannam@126 1785 # ----------------------
cannam@126 1786 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
cannam@126 1787 # that executables *can* be run.
cannam@126 1788 ac_fn_c_try_run ()
cannam@126 1789 {
cannam@126 1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@126 1791 if { { ac_try="$ac_link"
cannam@126 1792 case "(($ac_try" in
cannam@126 1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@126 1794 *) ac_try_echo=$ac_try;;
cannam@126 1795 esac
cannam@126 1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@126 1797 $as_echo "$ac_try_echo"; } >&5
cannam@126 1798 (eval "$ac_link") 2>&5
cannam@126 1799 ac_status=$?
cannam@126 1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 1801 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
cannam@126 1802 { { case "(($ac_try" in
cannam@126 1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@126 1804 *) ac_try_echo=$ac_try;;
cannam@126 1805 esac
cannam@126 1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@126 1807 $as_echo "$ac_try_echo"; } >&5
cannam@126 1808 (eval "$ac_try") 2>&5
cannam@126 1809 ac_status=$?
cannam@126 1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 1811 test $ac_status = 0; }; }; then :
cannam@126 1812 ac_retval=0
cannam@126 1813 else
cannam@126 1814 $as_echo "$as_me: program exited with status $ac_status" >&5
cannam@126 1815 $as_echo "$as_me: failed program was:" >&5
cannam@126 1816 sed 's/^/| /' conftest.$ac_ext >&5
cannam@126 1817
cannam@126 1818 ac_retval=$ac_status
cannam@126 1819 fi
cannam@126 1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cannam@126 1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@126 1822 as_fn_set_status $ac_retval
cannam@126 1823
cannam@126 1824 } # ac_fn_c_try_run
cannam@126 1825
cannam@126 1826 # ac_fn_c_check_func LINENO FUNC VAR
cannam@126 1827 # ----------------------------------
cannam@126 1828 # Tests whether FUNC exists, setting the cache variable VAR accordingly
cannam@126 1829 ac_fn_c_check_func ()
cannam@126 1830 {
cannam@126 1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@126 1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@126 1833 $as_echo_n "checking for $2... " >&6; }
cannam@126 1834 if eval \${$3+:} false; then :
cannam@126 1835 $as_echo_n "(cached) " >&6
cannam@126 1836 else
cannam@126 1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 1838 /* end confdefs.h. */
cannam@126 1839 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
cannam@126 1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
cannam@126 1841 #define $2 innocuous_$2
cannam@126 1842
cannam@126 1843 /* System header to define __stub macros and hopefully few prototypes,
cannam@126 1844 which can conflict with char $2 (); below.
cannam@126 1845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@126 1846 <limits.h> exists even on freestanding compilers. */
cannam@126 1847
cannam@126 1848 #ifdef __STDC__
cannam@126 1849 # include <limits.h>
cannam@126 1850 #else
cannam@126 1851 # include <assert.h>
cannam@126 1852 #endif
cannam@126 1853
cannam@126 1854 #undef $2
cannam@126 1855
cannam@126 1856 /* Override any GCC internal prototype to avoid an error.
cannam@126 1857 Use char because int might match the return type of a GCC
cannam@126 1858 builtin and then its argument prototype would still apply. */
cannam@126 1859 #ifdef __cplusplus
cannam@126 1860 extern "C"
cannam@126 1861 #endif
cannam@126 1862 char $2 ();
cannam@126 1863 /* The GNU C library defines this for functions which it implements
cannam@126 1864 to always fail with ENOSYS. Some functions are actually named
cannam@126 1865 something starting with __ and the normal name is an alias. */
cannam@126 1866 #if defined __stub_$2 || defined __stub___$2
cannam@126 1867 choke me
cannam@126 1868 #endif
cannam@126 1869
cannam@126 1870 int
cannam@126 1871 main ()
cannam@126 1872 {
cannam@126 1873 return $2 ();
cannam@126 1874 ;
cannam@126 1875 return 0;
cannam@126 1876 }
cannam@126 1877 _ACEOF
cannam@126 1878 if ac_fn_c_try_link "$LINENO"; then :
cannam@126 1879 eval "$3=yes"
cannam@126 1880 else
cannam@126 1881 eval "$3=no"
cannam@126 1882 fi
cannam@126 1883 rm -f core conftest.err conftest.$ac_objext \
cannam@126 1884 conftest$ac_exeext conftest.$ac_ext
cannam@126 1885 fi
cannam@126 1886 eval ac_res=\$$3
cannam@126 1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@126 1888 $as_echo "$ac_res" >&6; }
cannam@126 1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@126 1890
cannam@126 1891 } # ac_fn_c_check_func
cannam@126 1892
cannam@126 1893 # ac_fn_cxx_try_cpp LINENO
cannam@126 1894 # ------------------------
cannam@126 1895 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
cannam@126 1896 ac_fn_cxx_try_cpp ()
cannam@126 1897 {
cannam@126 1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@126 1899 if { { ac_try="$ac_cpp conftest.$ac_ext"
cannam@126 1900 case "(($ac_try" in
cannam@126 1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@126 1902 *) ac_try_echo=$ac_try;;
cannam@126 1903 esac
cannam@126 1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@126 1905 $as_echo "$ac_try_echo"; } >&5
cannam@126 1906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
cannam@126 1907 ac_status=$?
cannam@126 1908 if test -s conftest.err; then
cannam@126 1909 grep -v '^ *+' conftest.err >conftest.er1
cannam@126 1910 cat conftest.er1 >&5
cannam@126 1911 mv -f conftest.er1 conftest.err
cannam@126 1912 fi
cannam@126 1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 1914 test $ac_status = 0; } > conftest.i && {
cannam@126 1915 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
cannam@126 1916 test ! -s conftest.err
cannam@126 1917 }; then :
cannam@126 1918 ac_retval=0
cannam@126 1919 else
cannam@126 1920 $as_echo "$as_me: failed program was:" >&5
cannam@126 1921 sed 's/^/| /' conftest.$ac_ext >&5
cannam@126 1922
cannam@126 1923 ac_retval=1
cannam@126 1924 fi
cannam@126 1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@126 1926 as_fn_set_status $ac_retval
cannam@126 1927
cannam@126 1928 } # ac_fn_cxx_try_cpp
cannam@126 1929
cannam@126 1930 # ac_fn_cxx_try_link LINENO
cannam@126 1931 # -------------------------
cannam@126 1932 # Try to link conftest.$ac_ext, and return whether this succeeded.
cannam@126 1933 ac_fn_cxx_try_link ()
cannam@126 1934 {
cannam@126 1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@126 1936 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@126 1937 if { { ac_try="$ac_link"
cannam@126 1938 case "(($ac_try" in
cannam@126 1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@126 1940 *) ac_try_echo=$ac_try;;
cannam@126 1941 esac
cannam@126 1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@126 1943 $as_echo "$ac_try_echo"; } >&5
cannam@126 1944 (eval "$ac_link") 2>conftest.err
cannam@126 1945 ac_status=$?
cannam@126 1946 if test -s conftest.err; then
cannam@126 1947 grep -v '^ *+' conftest.err >conftest.er1
cannam@126 1948 cat conftest.er1 >&5
cannam@126 1949 mv -f conftest.er1 conftest.err
cannam@126 1950 fi
cannam@126 1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 1952 test $ac_status = 0; } && {
cannam@126 1953 test -z "$ac_cxx_werror_flag" ||
cannam@126 1954 test ! -s conftest.err
cannam@126 1955 } && test -s conftest$ac_exeext && {
cannam@126 1956 test "$cross_compiling" = yes ||
cannam@126 1957 test -x conftest$ac_exeext
cannam@126 1958 }; then :
cannam@126 1959 ac_retval=0
cannam@126 1960 else
cannam@126 1961 $as_echo "$as_me: failed program was:" >&5
cannam@126 1962 sed 's/^/| /' conftest.$ac_ext >&5
cannam@126 1963
cannam@126 1964 ac_retval=1
cannam@126 1965 fi
cannam@126 1966 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
cannam@126 1967 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
cannam@126 1968 # interfere with the next link command; also delete a directory that is
cannam@126 1969 # left behind by Apple's compiler. We do this before executing the actions.
cannam@126 1970 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cannam@126 1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@126 1972 as_fn_set_status $ac_retval
cannam@126 1973
cannam@126 1974 } # ac_fn_cxx_try_link
cannam@126 1975
cannam@126 1976 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
cannam@126 1977 # -------------------------------------------------------
cannam@126 1978 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
cannam@126 1979 # the include files in INCLUDES and setting the cache variable VAR
cannam@126 1980 # accordingly.
cannam@126 1981 ac_fn_c_check_header_mongrel ()
cannam@126 1982 {
cannam@126 1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@126 1984 if eval \${$3+:} false; then :
cannam@126 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@126 1986 $as_echo_n "checking for $2... " >&6; }
cannam@126 1987 if eval \${$3+:} false; then :
cannam@126 1988 $as_echo_n "(cached) " >&6
cannam@126 1989 fi
cannam@126 1990 eval ac_res=\$$3
cannam@126 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@126 1992 $as_echo "$ac_res" >&6; }
cannam@126 1993 else
cannam@126 1994 # Is the header compilable?
cannam@126 1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
cannam@126 1996 $as_echo_n "checking $2 usability... " >&6; }
cannam@126 1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 1998 /* end confdefs.h. */
cannam@126 1999 $4
cannam@126 2000 #include <$2>
cannam@126 2001 _ACEOF
cannam@126 2002 if ac_fn_c_try_compile "$LINENO"; then :
cannam@126 2003 ac_header_compiler=yes
cannam@126 2004 else
cannam@126 2005 ac_header_compiler=no
cannam@126 2006 fi
cannam@126 2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@126 2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
cannam@126 2009 $as_echo "$ac_header_compiler" >&6; }
cannam@126 2010
cannam@126 2011 # Is the header present?
cannam@126 2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
cannam@126 2013 $as_echo_n "checking $2 presence... " >&6; }
cannam@126 2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 2015 /* end confdefs.h. */
cannam@126 2016 #include <$2>
cannam@126 2017 _ACEOF
cannam@126 2018 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@126 2019 ac_header_preproc=yes
cannam@126 2020 else
cannam@126 2021 ac_header_preproc=no
cannam@126 2022 fi
cannam@126 2023 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@126 2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
cannam@126 2025 $as_echo "$ac_header_preproc" >&6; }
cannam@126 2026
cannam@126 2027 # So? What about this header?
cannam@126 2028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
cannam@126 2029 yes:no: )
cannam@126 2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
cannam@126 2031 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
cannam@126 2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
cannam@126 2033 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cannam@126 2034 ;;
cannam@126 2035 no:yes:* )
cannam@126 2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
cannam@126 2037 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
cannam@126 2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
cannam@126 2039 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
cannam@126 2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
cannam@126 2041 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
cannam@126 2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
cannam@126 2043 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
cannam@126 2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
cannam@126 2045 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cannam@126 2046 ( $as_echo "## ---------------------------------- ##
cannam@126 2047 ## Report this to erikd@mega-nerd.com ##
cannam@126 2048 ## ---------------------------------- ##"
cannam@126 2049 ) | sed "s/^/$as_me: WARNING: /" >&2
cannam@126 2050 ;;
cannam@126 2051 esac
cannam@126 2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@126 2053 $as_echo_n "checking for $2... " >&6; }
cannam@126 2054 if eval \${$3+:} false; then :
cannam@126 2055 $as_echo_n "(cached) " >&6
cannam@126 2056 else
cannam@126 2057 eval "$3=\$ac_header_compiler"
cannam@126 2058 fi
cannam@126 2059 eval ac_res=\$$3
cannam@126 2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@126 2061 $as_echo "$ac_res" >&6; }
cannam@126 2062 fi
cannam@126 2063 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@126 2064
cannam@126 2065 } # ac_fn_c_check_header_mongrel
cannam@126 2066
cannam@126 2067 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
cannam@126 2068 # --------------------------------------------
cannam@126 2069 # Tries to find the compile-time value of EXPR in a program that includes
cannam@126 2070 # INCLUDES, setting VAR accordingly. Returns whether the value could be
cannam@126 2071 # computed
cannam@126 2072 ac_fn_c_compute_int ()
cannam@126 2073 {
cannam@126 2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@126 2075 if test "$cross_compiling" = yes; then
cannam@126 2076 # Depending upon the size, compute the lo and hi bounds.
cannam@126 2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 2078 /* end confdefs.h. */
cannam@126 2079 $4
cannam@126 2080 int
cannam@126 2081 main ()
cannam@126 2082 {
cannam@126 2083 static int test_array [1 - 2 * !(($2) >= 0)];
cannam@126 2084 test_array [0] = 0;
cannam@126 2085 return test_array [0];
cannam@126 2086
cannam@126 2087 ;
cannam@126 2088 return 0;
cannam@126 2089 }
cannam@126 2090 _ACEOF
cannam@126 2091 if ac_fn_c_try_compile "$LINENO"; then :
cannam@126 2092 ac_lo=0 ac_mid=0
cannam@126 2093 while :; do
cannam@126 2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 2095 /* end confdefs.h. */
cannam@126 2096 $4
cannam@126 2097 int
cannam@126 2098 main ()
cannam@126 2099 {
cannam@126 2100 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cannam@126 2101 test_array [0] = 0;
cannam@126 2102 return test_array [0];
cannam@126 2103
cannam@126 2104 ;
cannam@126 2105 return 0;
cannam@126 2106 }
cannam@126 2107 _ACEOF
cannam@126 2108 if ac_fn_c_try_compile "$LINENO"; then :
cannam@126 2109 ac_hi=$ac_mid; break
cannam@126 2110 else
cannam@126 2111 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
cannam@126 2112 if test $ac_lo -le $ac_mid; then
cannam@126 2113 ac_lo= ac_hi=
cannam@126 2114 break
cannam@126 2115 fi
cannam@126 2116 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
cannam@126 2117 fi
cannam@126 2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@126 2119 done
cannam@126 2120 else
cannam@126 2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 2122 /* end confdefs.h. */
cannam@126 2123 $4
cannam@126 2124 int
cannam@126 2125 main ()
cannam@126 2126 {
cannam@126 2127 static int test_array [1 - 2 * !(($2) < 0)];
cannam@126 2128 test_array [0] = 0;
cannam@126 2129 return test_array [0];
cannam@126 2130
cannam@126 2131 ;
cannam@126 2132 return 0;
cannam@126 2133 }
cannam@126 2134 _ACEOF
cannam@126 2135 if ac_fn_c_try_compile "$LINENO"; then :
cannam@126 2136 ac_hi=-1 ac_mid=-1
cannam@126 2137 while :; do
cannam@126 2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 2139 /* end confdefs.h. */
cannam@126 2140 $4
cannam@126 2141 int
cannam@126 2142 main ()
cannam@126 2143 {
cannam@126 2144 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cannam@126 2145 test_array [0] = 0;
cannam@126 2146 return test_array [0];
cannam@126 2147
cannam@126 2148 ;
cannam@126 2149 return 0;
cannam@126 2150 }
cannam@126 2151 _ACEOF
cannam@126 2152 if ac_fn_c_try_compile "$LINENO"; then :
cannam@126 2153 ac_lo=$ac_mid; break
cannam@126 2154 else
cannam@126 2155 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
cannam@126 2156 if test $ac_mid -le $ac_hi; then
cannam@126 2157 ac_lo= ac_hi=
cannam@126 2158 break
cannam@126 2159 fi
cannam@126 2160 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
cannam@126 2161 fi
cannam@126 2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@126 2163 done
cannam@126 2164 else
cannam@126 2165 ac_lo= ac_hi=
cannam@126 2166 fi
cannam@126 2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@126 2168 fi
cannam@126 2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@126 2170 # Binary search between lo and hi bounds.
cannam@126 2171 while test "x$ac_lo" != "x$ac_hi"; do
cannam@126 2172 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
cannam@126 2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 2174 /* end confdefs.h. */
cannam@126 2175 $4
cannam@126 2176 int
cannam@126 2177 main ()
cannam@126 2178 {
cannam@126 2179 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cannam@126 2180 test_array [0] = 0;
cannam@126 2181 return test_array [0];
cannam@126 2182
cannam@126 2183 ;
cannam@126 2184 return 0;
cannam@126 2185 }
cannam@126 2186 _ACEOF
cannam@126 2187 if ac_fn_c_try_compile "$LINENO"; then :
cannam@126 2188 ac_hi=$ac_mid
cannam@126 2189 else
cannam@126 2190 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
cannam@126 2191 fi
cannam@126 2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@126 2193 done
cannam@126 2194 case $ac_lo in #((
cannam@126 2195 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
cannam@126 2196 '') ac_retval=1 ;;
cannam@126 2197 esac
cannam@126 2198 else
cannam@126 2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 2200 /* end confdefs.h. */
cannam@126 2201 $4
cannam@126 2202 static long int longval () { return $2; }
cannam@126 2203 static unsigned long int ulongval () { return $2; }
cannam@126 2204 #include <stdio.h>
cannam@126 2205 #include <stdlib.h>
cannam@126 2206 int
cannam@126 2207 main ()
cannam@126 2208 {
cannam@126 2209
cannam@126 2210 FILE *f = fopen ("conftest.val", "w");
cannam@126 2211 if (! f)
cannam@126 2212 return 1;
cannam@126 2213 if (($2) < 0)
cannam@126 2214 {
cannam@126 2215 long int i = longval ();
cannam@126 2216 if (i != ($2))
cannam@126 2217 return 1;
cannam@126 2218 fprintf (f, "%ld", i);
cannam@126 2219 }
cannam@126 2220 else
cannam@126 2221 {
cannam@126 2222 unsigned long int i = ulongval ();
cannam@126 2223 if (i != ($2))
cannam@126 2224 return 1;
cannam@126 2225 fprintf (f, "%lu", i);
cannam@126 2226 }
cannam@126 2227 /* Do not output a trailing newline, as this causes \r\n confusion
cannam@126 2228 on some platforms. */
cannam@126 2229 return ferror (f) || fclose (f) != 0;
cannam@126 2230
cannam@126 2231 ;
cannam@126 2232 return 0;
cannam@126 2233 }
cannam@126 2234 _ACEOF
cannam@126 2235 if ac_fn_c_try_run "$LINENO"; then :
cannam@126 2236 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
cannam@126 2237 else
cannam@126 2238 ac_retval=1
cannam@126 2239 fi
cannam@126 2240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@126 2241 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@126 2242 rm -f conftest.val
cannam@126 2243
cannam@126 2244 fi
cannam@126 2245 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@126 2246 as_fn_set_status $ac_retval
cannam@126 2247
cannam@126 2248 } # ac_fn_c_compute_int
cannam@126 2249 cat >config.log <<_ACEOF
cannam@126 2250 This file contains any messages produced by compilers while
cannam@126 2251 running configure, to aid debugging if configure makes a mistake.
cannam@126 2252
cannam@126 2253 It was created by libsamplerate $as_me 0.1.9, which was
cannam@126 2254 generated by GNU Autoconf 2.69. Invocation command line was
cannam@126 2255
cannam@126 2256 $ $0 $@
cannam@126 2257
cannam@126 2258 _ACEOF
cannam@126 2259 exec 5>>config.log
cannam@126 2260 {
cannam@126 2261 cat <<_ASUNAME
cannam@126 2262 ## --------- ##
cannam@126 2263 ## Platform. ##
cannam@126 2264 ## --------- ##
cannam@126 2265
cannam@126 2266 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@126 2267 uname -m = `(uname -m) 2>/dev/null || echo unknown`
cannam@126 2268 uname -r = `(uname -r) 2>/dev/null || echo unknown`
cannam@126 2269 uname -s = `(uname -s) 2>/dev/null || echo unknown`
cannam@126 2270 uname -v = `(uname -v) 2>/dev/null || echo unknown`
cannam@126 2271
cannam@126 2272 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
cannam@126 2273 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
cannam@126 2274
cannam@126 2275 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
cannam@126 2276 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
cannam@126 2277 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
cannam@126 2278 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
cannam@126 2279 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
cannam@126 2280 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
cannam@126 2281 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
cannam@126 2282
cannam@126 2283 _ASUNAME
cannam@126 2284
cannam@126 2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 2286 for as_dir in $PATH
cannam@126 2287 do
cannam@126 2288 IFS=$as_save_IFS
cannam@126 2289 test -z "$as_dir" && as_dir=.
cannam@126 2290 $as_echo "PATH: $as_dir"
cannam@126 2291 done
cannam@126 2292 IFS=$as_save_IFS
cannam@126 2293
cannam@126 2294 } >&5
cannam@126 2295
cannam@126 2296 cat >&5 <<_ACEOF
cannam@126 2297
cannam@126 2298
cannam@126 2299 ## ----------- ##
cannam@126 2300 ## Core tests. ##
cannam@126 2301 ## ----------- ##
cannam@126 2302
cannam@126 2303 _ACEOF
cannam@126 2304
cannam@126 2305
cannam@126 2306 # Keep a trace of the command line.
cannam@126 2307 # Strip out --no-create and --no-recursion so they do not pile up.
cannam@126 2308 # Strip out --silent because we don't want to record it for future runs.
cannam@126 2309 # Also quote any args containing shell meta-characters.
cannam@126 2310 # Make two passes to allow for proper duplicate-argument suppression.
cannam@126 2311 ac_configure_args=
cannam@126 2312 ac_configure_args0=
cannam@126 2313 ac_configure_args1=
cannam@126 2314 ac_must_keep_next=false
cannam@126 2315 for ac_pass in 1 2
cannam@126 2316 do
cannam@126 2317 for ac_arg
cannam@126 2318 do
cannam@126 2319 case $ac_arg in
cannam@126 2320 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
cannam@126 2321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@126 2322 | -silent | --silent | --silen | --sile | --sil)
cannam@126 2323 continue ;;
cannam@126 2324 *\'*)
cannam@126 2325 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@126 2326 esac
cannam@126 2327 case $ac_pass in
cannam@126 2328 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cannam@126 2329 2)
cannam@126 2330 as_fn_append ac_configure_args1 " '$ac_arg'"
cannam@126 2331 if test $ac_must_keep_next = true; then
cannam@126 2332 ac_must_keep_next=false # Got value, back to normal.
cannam@126 2333 else
cannam@126 2334 case $ac_arg in
cannam@126 2335 *=* | --config-cache | -C | -disable-* | --disable-* \
cannam@126 2336 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
cannam@126 2337 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
cannam@126 2338 | -with-* | --with-* | -without-* | --without-* | --x)
cannam@126 2339 case "$ac_configure_args0 " in
cannam@126 2340 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
cannam@126 2341 esac
cannam@126 2342 ;;
cannam@126 2343 -* ) ac_must_keep_next=true ;;
cannam@126 2344 esac
cannam@126 2345 fi
cannam@126 2346 as_fn_append ac_configure_args " '$ac_arg'"
cannam@126 2347 ;;
cannam@126 2348 esac
cannam@126 2349 done
cannam@126 2350 done
cannam@126 2351 { ac_configure_args0=; unset ac_configure_args0;}
cannam@126 2352 { ac_configure_args1=; unset ac_configure_args1;}
cannam@126 2353
cannam@126 2354 # When interrupted or exit'd, cleanup temporary files, and complete
cannam@126 2355 # config.log. We remove comments because anyway the quotes in there
cannam@126 2356 # would cause problems or look ugly.
cannam@126 2357 # WARNING: Use '\'' to represent an apostrophe within the trap.
cannam@126 2358 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
cannam@126 2359 trap 'exit_status=$?
cannam@126 2360 # Save into config.log some information that might help in debugging.
cannam@126 2361 {
cannam@126 2362 echo
cannam@126 2363
cannam@126 2364 $as_echo "## ---------------- ##
cannam@126 2365 ## Cache variables. ##
cannam@126 2366 ## ---------------- ##"
cannam@126 2367 echo
cannam@126 2368 # The following way of writing the cache mishandles newlines in values,
cannam@126 2369 (
cannam@126 2370 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
cannam@126 2371 eval ac_val=\$$ac_var
cannam@126 2372 case $ac_val in #(
cannam@126 2373 *${as_nl}*)
cannam@126 2374 case $ac_var in #(
cannam@126 2375 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cannam@126 2376 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
cannam@126 2377 esac
cannam@126 2378 case $ac_var in #(
cannam@126 2379 _ | IFS | as_nl) ;; #(
cannam@126 2380 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cannam@126 2381 *) { eval $ac_var=; unset $ac_var;} ;;
cannam@126 2382 esac ;;
cannam@126 2383 esac
cannam@126 2384 done
cannam@126 2385 (set) 2>&1 |
cannam@126 2386 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
cannam@126 2387 *${as_nl}ac_space=\ *)
cannam@126 2388 sed -n \
cannam@126 2389 "s/'\''/'\''\\\\'\'''\''/g;
cannam@126 2390 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
cannam@126 2391 ;; #(
cannam@126 2392 *)
cannam@126 2393 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
cannam@126 2394 ;;
cannam@126 2395 esac |
cannam@126 2396 sort
cannam@126 2397 )
cannam@126 2398 echo
cannam@126 2399
cannam@126 2400 $as_echo "## ----------------- ##
cannam@126 2401 ## Output variables. ##
cannam@126 2402 ## ----------------- ##"
cannam@126 2403 echo
cannam@126 2404 for ac_var in $ac_subst_vars
cannam@126 2405 do
cannam@126 2406 eval ac_val=\$$ac_var
cannam@126 2407 case $ac_val in
cannam@126 2408 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
cannam@126 2409 esac
cannam@126 2410 $as_echo "$ac_var='\''$ac_val'\''"
cannam@126 2411 done | sort
cannam@126 2412 echo
cannam@126 2413
cannam@126 2414 if test -n "$ac_subst_files"; then
cannam@126 2415 $as_echo "## ------------------- ##
cannam@126 2416 ## File substitutions. ##
cannam@126 2417 ## ------------------- ##"
cannam@126 2418 echo
cannam@126 2419 for ac_var in $ac_subst_files
cannam@126 2420 do
cannam@126 2421 eval ac_val=\$$ac_var
cannam@126 2422 case $ac_val in
cannam@126 2423 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
cannam@126 2424 esac
cannam@126 2425 $as_echo "$ac_var='\''$ac_val'\''"
cannam@126 2426 done | sort
cannam@126 2427 echo
cannam@126 2428 fi
cannam@126 2429
cannam@126 2430 if test -s confdefs.h; then
cannam@126 2431 $as_echo "## ----------- ##
cannam@126 2432 ## confdefs.h. ##
cannam@126 2433 ## ----------- ##"
cannam@126 2434 echo
cannam@126 2435 cat confdefs.h
cannam@126 2436 echo
cannam@126 2437 fi
cannam@126 2438 test "$ac_signal" != 0 &&
cannam@126 2439 $as_echo "$as_me: caught signal $ac_signal"
cannam@126 2440 $as_echo "$as_me: exit $exit_status"
cannam@126 2441 } >&5
cannam@126 2442 rm -f core *.core core.conftest.* &&
cannam@126 2443 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
cannam@126 2444 exit $exit_status
cannam@126 2445 ' 0
cannam@126 2446 for ac_signal in 1 2 13 15; do
cannam@126 2447 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cannam@126 2448 done
cannam@126 2449 ac_signal=0
cannam@126 2450
cannam@126 2451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
cannam@126 2452 rm -f -r conftest* confdefs.h
cannam@126 2453
cannam@126 2454 $as_echo "/* confdefs.h */" > confdefs.h
cannam@126 2455
cannam@126 2456 # Predefined preprocessor variables.
cannam@126 2457
cannam@126 2458 cat >>confdefs.h <<_ACEOF
cannam@126 2459 #define PACKAGE_NAME "$PACKAGE_NAME"
cannam@126 2460 _ACEOF
cannam@126 2461
cannam@126 2462 cat >>confdefs.h <<_ACEOF
cannam@126 2463 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
cannam@126 2464 _ACEOF
cannam@126 2465
cannam@126 2466 cat >>confdefs.h <<_ACEOF
cannam@126 2467 #define PACKAGE_VERSION "$PACKAGE_VERSION"
cannam@126 2468 _ACEOF
cannam@126 2469
cannam@126 2470 cat >>confdefs.h <<_ACEOF
cannam@126 2471 #define PACKAGE_STRING "$PACKAGE_STRING"
cannam@126 2472 _ACEOF
cannam@126 2473
cannam@126 2474 cat >>confdefs.h <<_ACEOF
cannam@126 2475 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
cannam@126 2476 _ACEOF
cannam@126 2477
cannam@126 2478 cat >>confdefs.h <<_ACEOF
cannam@126 2479 #define PACKAGE_URL "$PACKAGE_URL"
cannam@126 2480 _ACEOF
cannam@126 2481
cannam@126 2482
cannam@126 2483 # Let the site file select an alternate cache file if it wants to.
cannam@126 2484 # Prefer an explicitly selected file to automatically selected ones.
cannam@126 2485 ac_site_file1=NONE
cannam@126 2486 ac_site_file2=NONE
cannam@126 2487 if test -n "$CONFIG_SITE"; then
cannam@126 2488 # We do not want a PATH search for config.site.
cannam@126 2489 case $CONFIG_SITE in #((
cannam@126 2490 -*) ac_site_file1=./$CONFIG_SITE;;
cannam@126 2491 */*) ac_site_file1=$CONFIG_SITE;;
cannam@126 2492 *) ac_site_file1=./$CONFIG_SITE;;
cannam@126 2493 esac
cannam@126 2494 elif test "x$prefix" != xNONE; then
cannam@126 2495 ac_site_file1=$prefix/share/config.site
cannam@126 2496 ac_site_file2=$prefix/etc/config.site
cannam@126 2497 else
cannam@126 2498 ac_site_file1=$ac_default_prefix/share/config.site
cannam@126 2499 ac_site_file2=$ac_default_prefix/etc/config.site
cannam@126 2500 fi
cannam@126 2501 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
cannam@126 2502 do
cannam@126 2503 test "x$ac_site_file" = xNONE && continue
cannam@126 2504 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cannam@126 2505 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cannam@126 2506 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
cannam@126 2507 sed 's/^/| /' "$ac_site_file" >&5
cannam@126 2508 . "$ac_site_file" \
cannam@126 2509 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@126 2510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@126 2511 as_fn_error $? "failed to load site script $ac_site_file
cannam@126 2512 See \`config.log' for more details" "$LINENO" 5; }
cannam@126 2513 fi
cannam@126 2514 done
cannam@126 2515
cannam@126 2516 if test -r "$cache_file"; then
cannam@126 2517 # Some versions of bash will fail to source /dev/null (special files
cannam@126 2518 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
cannam@126 2519 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cannam@126 2520 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cannam@126 2521 $as_echo "$as_me: loading cache $cache_file" >&6;}
cannam@126 2522 case $cache_file in
cannam@126 2523 [\\/]* | ?:[\\/]* ) . "$cache_file";;
cannam@126 2524 *) . "./$cache_file";;
cannam@126 2525 esac
cannam@126 2526 fi
cannam@126 2527 else
cannam@126 2528 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cannam@126 2529 $as_echo "$as_me: creating cache $cache_file" >&6;}
cannam@126 2530 >$cache_file
cannam@126 2531 fi
cannam@126 2532
cannam@126 2533 # Check that the precious variables saved in the cache have kept the same
cannam@126 2534 # value.
cannam@126 2535 ac_cache_corrupted=false
cannam@126 2536 for ac_var in $ac_precious_vars; do
cannam@126 2537 eval ac_old_set=\$ac_cv_env_${ac_var}_set
cannam@126 2538 eval ac_new_set=\$ac_env_${ac_var}_set
cannam@126 2539 eval ac_old_val=\$ac_cv_env_${ac_var}_value
cannam@126 2540 eval ac_new_val=\$ac_env_${ac_var}_value
cannam@126 2541 case $ac_old_set,$ac_new_set in
cannam@126 2542 set,)
cannam@126 2543 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
cannam@126 2544 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
cannam@126 2545 ac_cache_corrupted=: ;;
cannam@126 2546 ,set)
cannam@126 2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cannam@126 2548 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
cannam@126 2549 ac_cache_corrupted=: ;;
cannam@126 2550 ,);;
cannam@126 2551 *)
cannam@126 2552 if test "x$ac_old_val" != "x$ac_new_val"; then
cannam@126 2553 # differences in whitespace do not lead to failure.
cannam@126 2554 ac_old_val_w=`echo x $ac_old_val`
cannam@126 2555 ac_new_val_w=`echo x $ac_new_val`
cannam@126 2556 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cannam@126 2557 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cannam@126 2558 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
cannam@126 2559 ac_cache_corrupted=:
cannam@126 2560 else
cannam@126 2561 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
cannam@126 2562 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
cannam@126 2563 eval $ac_var=\$ac_old_val
cannam@126 2564 fi
cannam@126 2565 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cannam@126 2566 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cannam@126 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cannam@126 2568 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
cannam@126 2569 fi;;
cannam@126 2570 esac
cannam@126 2571 # Pass precious variables to config.status.
cannam@126 2572 if test "$ac_new_set" = set; then
cannam@126 2573 case $ac_new_val in
cannam@126 2574 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@126 2575 *) ac_arg=$ac_var=$ac_new_val ;;
cannam@126 2576 esac
cannam@126 2577 case " $ac_configure_args " in
cannam@126 2578 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cannam@126 2579 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cannam@126 2580 esac
cannam@126 2581 fi
cannam@126 2582 done
cannam@126 2583 if $ac_cache_corrupted; then
cannam@126 2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@126 2585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@126 2586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cannam@126 2587 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cannam@126 2588 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cannam@126 2589 fi
cannam@126 2590 ## -------------------- ##
cannam@126 2591 ## Main body of script. ##
cannam@126 2592 ## -------------------- ##
cannam@126 2593
cannam@126 2594 ac_ext=c
cannam@126 2595 ac_cpp='$CPP $CPPFLAGS'
cannam@126 2596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@126 2597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@126 2598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@126 2599
cannam@126 2600
cannam@126 2601
cannam@126 2602 # Put config stuff in Cfg.
cannam@126 2603 ac_aux_dir=
cannam@126 2604 for ac_dir in Cfg "$srcdir"/Cfg; do
cannam@126 2605 if test -f "$ac_dir/install-sh"; then
cannam@126 2606 ac_aux_dir=$ac_dir
cannam@126 2607 ac_install_sh="$ac_aux_dir/install-sh -c"
cannam@126 2608 break
cannam@126 2609 elif test -f "$ac_dir/install.sh"; then
cannam@126 2610 ac_aux_dir=$ac_dir
cannam@126 2611 ac_install_sh="$ac_aux_dir/install.sh -c"
cannam@126 2612 break
cannam@126 2613 elif test -f "$ac_dir/shtool"; then
cannam@126 2614 ac_aux_dir=$ac_dir
cannam@126 2615 ac_install_sh="$ac_aux_dir/shtool install -c"
cannam@126 2616 break
cannam@126 2617 fi
cannam@126 2618 done
cannam@126 2619 if test -z "$ac_aux_dir"; then
cannam@126 2620 as_fn_error $? "cannot find install-sh, install.sh, or shtool in Cfg \"$srcdir\"/Cfg" "$LINENO" 5
cannam@126 2621 fi
cannam@126 2622
cannam@126 2623 # These three variables are undocumented and unsupported,
cannam@126 2624 # and are intended to be withdrawn in a future Autoconf release.
cannam@126 2625 # They can cause serious problems if a builder's source tree is in a directory
cannam@126 2626 # whose full name contains unusual characters.
cannam@126 2627 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
cannam@126 2628 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
cannam@126 2629 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
cannam@126 2630
cannam@126 2631
cannam@126 2632
cannam@126 2633
cannam@126 2634 # Make sure we can run config.sub.
cannam@126 2635 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cannam@126 2636 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cannam@126 2637
cannam@126 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cannam@126 2639 $as_echo_n "checking build system type... " >&6; }
cannam@126 2640 if ${ac_cv_build+:} false; then :
cannam@126 2641 $as_echo_n "(cached) " >&6
cannam@126 2642 else
cannam@126 2643 ac_build_alias=$build_alias
cannam@126 2644 test "x$ac_build_alias" = x &&
cannam@126 2645 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
cannam@126 2646 test "x$ac_build_alias" = x &&
cannam@126 2647 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cannam@126 2648 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cannam@126 2649 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cannam@126 2650
cannam@126 2651 fi
cannam@126 2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cannam@126 2653 $as_echo "$ac_cv_build" >&6; }
cannam@126 2654 case $ac_cv_build in
cannam@126 2655 *-*-*) ;;
cannam@126 2656 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cannam@126 2657 esac
cannam@126 2658 build=$ac_cv_build
cannam@126 2659 ac_save_IFS=$IFS; IFS='-'
cannam@126 2660 set x $ac_cv_build
cannam@126 2661 shift
cannam@126 2662 build_cpu=$1
cannam@126 2663 build_vendor=$2
cannam@126 2664 shift; shift
cannam@126 2665 # Remember, the first character of IFS is used to create $*,
cannam@126 2666 # except with old shells:
cannam@126 2667 build_os=$*
cannam@126 2668 IFS=$ac_save_IFS
cannam@126 2669 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
cannam@126 2670
cannam@126 2671
cannam@126 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cannam@126 2673 $as_echo_n "checking host system type... " >&6; }
cannam@126 2674 if ${ac_cv_host+:} false; then :
cannam@126 2675 $as_echo_n "(cached) " >&6
cannam@126 2676 else
cannam@126 2677 if test "x$host_alias" = x; then
cannam@126 2678 ac_cv_host=$ac_cv_build
cannam@126 2679 else
cannam@126 2680 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cannam@126 2681 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cannam@126 2682 fi
cannam@126 2683
cannam@126 2684 fi
cannam@126 2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cannam@126 2686 $as_echo "$ac_cv_host" >&6; }
cannam@126 2687 case $ac_cv_host in
cannam@126 2688 *-*-*) ;;
cannam@126 2689 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cannam@126 2690 esac
cannam@126 2691 host=$ac_cv_host
cannam@126 2692 ac_save_IFS=$IFS; IFS='-'
cannam@126 2693 set x $ac_cv_host
cannam@126 2694 shift
cannam@126 2695 host_cpu=$1
cannam@126 2696 host_vendor=$2
cannam@126 2697 shift; shift
cannam@126 2698 # Remember, the first character of IFS is used to create $*,
cannam@126 2699 # except with old shells:
cannam@126 2700 host_os=$*
cannam@126 2701 IFS=$ac_save_IFS
cannam@126 2702 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
cannam@126 2703
cannam@126 2704
cannam@126 2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cannam@126 2706 $as_echo_n "checking target system type... " >&6; }
cannam@126 2707 if ${ac_cv_target+:} false; then :
cannam@126 2708 $as_echo_n "(cached) " >&6
cannam@126 2709 else
cannam@126 2710 if test "x$target_alias" = x; then
cannam@126 2711 ac_cv_target=$ac_cv_host
cannam@126 2712 else
cannam@126 2713 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cannam@126 2714 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cannam@126 2715 fi
cannam@126 2716
cannam@126 2717 fi
cannam@126 2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cannam@126 2719 $as_echo "$ac_cv_target" >&6; }
cannam@126 2720 case $ac_cv_target in
cannam@126 2721 *-*-*) ;;
cannam@126 2722 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cannam@126 2723 esac
cannam@126 2724 target=$ac_cv_target
cannam@126 2725 ac_save_IFS=$IFS; IFS='-'
cannam@126 2726 set x $ac_cv_target
cannam@126 2727 shift
cannam@126 2728 target_cpu=$1
cannam@126 2729 target_vendor=$2
cannam@126 2730 shift; shift
cannam@126 2731 # Remember, the first character of IFS is used to create $*,
cannam@126 2732 # except with old shells:
cannam@126 2733 target_os=$*
cannam@126 2734 IFS=$ac_save_IFS
cannam@126 2735 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
cannam@126 2736
cannam@126 2737
cannam@126 2738 # The aliases save the names the user supplied, while $host etc.
cannam@126 2739 # will get canonicalized.
cannam@126 2740 test -n "$target_alias" &&
cannam@126 2741 test "$program_prefix$program_suffix$program_transform_name" = \
cannam@126 2742 NONENONEs,x,x, &&
cannam@126 2743 program_prefix=${target_alias}-
cannam@126 2744
cannam@126 2745
cannam@126 2746 ac_config_headers="$ac_config_headers src/config.h"
cannam@126 2747
cannam@126 2748
cannam@126 2749 am__api_version='1.15'
cannam@126 2750
cannam@126 2751 # Find a good install program. We prefer a C program (faster),
cannam@126 2752 # so one script is as good as another. But avoid the broken or
cannam@126 2753 # incompatible versions:
cannam@126 2754 # SysV /etc/install, /usr/sbin/install
cannam@126 2755 # SunOS /usr/etc/install
cannam@126 2756 # IRIX /sbin/install
cannam@126 2757 # AIX /bin/install
cannam@126 2758 # AmigaOS /C/install, which installs bootblocks on floppy discs
cannam@126 2759 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
cannam@126 2760 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
cannam@126 2761 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
cannam@126 2762 # OS/2's system install, which has a completely different semantic
cannam@126 2763 # ./install, which can be erroneously created by make from ./install.sh.
cannam@126 2764 # Reject install programs that cannot install multiple files.
cannam@126 2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cannam@126 2766 $as_echo_n "checking for a BSD-compatible install... " >&6; }
cannam@126 2767 if test -z "$INSTALL"; then
cannam@126 2768 if ${ac_cv_path_install+:} false; then :
cannam@126 2769 $as_echo_n "(cached) " >&6
cannam@126 2770 else
cannam@126 2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 2772 for as_dir in $PATH
cannam@126 2773 do
cannam@126 2774 IFS=$as_save_IFS
cannam@126 2775 test -z "$as_dir" && as_dir=.
cannam@126 2776 # Account for people who put trailing slashes in PATH elements.
cannam@126 2777 case $as_dir/ in #((
cannam@126 2778 ./ | .// | /[cC]/* | \
cannam@126 2779 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cannam@126 2780 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cannam@126 2781 /usr/ucb/* ) ;;
cannam@126 2782 *)
cannam@126 2783 # OSF1 and SCO ODT 3.0 have their own names for install.
cannam@126 2784 # Don't use installbsd from OSF since it installs stuff as root
cannam@126 2785 # by default.
cannam@126 2786 for ac_prog in ginstall scoinst install; do
cannam@126 2787 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 2788 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cannam@126 2789 if test $ac_prog = install &&
cannam@126 2790 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
cannam@126 2791 # AIX install. It has an incompatible calling convention.
cannam@126 2792 :
cannam@126 2793 elif test $ac_prog = install &&
cannam@126 2794 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
cannam@126 2795 # program-specific install script used by HP pwplus--don't use.
cannam@126 2796 :
cannam@126 2797 else
cannam@126 2798 rm -rf conftest.one conftest.two conftest.dir
cannam@126 2799 echo one > conftest.one
cannam@126 2800 echo two > conftest.two
cannam@126 2801 mkdir conftest.dir
cannam@126 2802 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
cannam@126 2803 test -s conftest.one && test -s conftest.two &&
cannam@126 2804 test -s conftest.dir/conftest.one &&
cannam@126 2805 test -s conftest.dir/conftest.two
cannam@126 2806 then
cannam@126 2807 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
cannam@126 2808 break 3
cannam@126 2809 fi
cannam@126 2810 fi
cannam@126 2811 fi
cannam@126 2812 done
cannam@126 2813 done
cannam@126 2814 ;;
cannam@126 2815 esac
cannam@126 2816
cannam@126 2817 done
cannam@126 2818 IFS=$as_save_IFS
cannam@126 2819
cannam@126 2820 rm -rf conftest.one conftest.two conftest.dir
cannam@126 2821
cannam@126 2822 fi
cannam@126 2823 if test "${ac_cv_path_install+set}" = set; then
cannam@126 2824 INSTALL=$ac_cv_path_install
cannam@126 2825 else
cannam@126 2826 # As a last resort, use the slow shell script. Don't cache a
cannam@126 2827 # value for INSTALL within a source directory, because that will
cannam@126 2828 # break other packages using the cache if that directory is
cannam@126 2829 # removed, or if the value is a relative name.
cannam@126 2830 INSTALL=$ac_install_sh
cannam@126 2831 fi
cannam@126 2832 fi
cannam@126 2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cannam@126 2834 $as_echo "$INSTALL" >&6; }
cannam@126 2835
cannam@126 2836 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
cannam@126 2837 # It thinks the first close brace ends the variable substitution.
cannam@126 2838 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
cannam@126 2839
cannam@126 2840 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
cannam@126 2841
cannam@126 2842 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
cannam@126 2843
cannam@126 2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cannam@126 2845 $as_echo_n "checking whether build environment is sane... " >&6; }
cannam@126 2846 # Reject unsafe characters in $srcdir or the absolute working directory
cannam@126 2847 # name. Accept space and tab only in the latter.
cannam@126 2848 am_lf='
cannam@126 2849 '
cannam@126 2850 case `pwd` in
cannam@126 2851 *[\\\"\#\$\&\'\`$am_lf]*)
cannam@126 2852 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cannam@126 2853 esac
cannam@126 2854 case $srcdir in
cannam@126 2855 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cannam@126 2856 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cannam@126 2857 esac
cannam@126 2858
cannam@126 2859 # Do 'set' in a subshell so we don't clobber the current shell's
cannam@126 2860 # arguments. Must try -L first in case configure is actually a
cannam@126 2861 # symlink; some systems play weird games with the mod time of symlinks
cannam@126 2862 # (eg FreeBSD returns the mod time of the symlink's containing
cannam@126 2863 # directory).
cannam@126 2864 if (
cannam@126 2865 am_has_slept=no
cannam@126 2866 for am_try in 1 2; do
cannam@126 2867 echo "timestamp, slept: $am_has_slept" > conftest.file
cannam@126 2868 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
cannam@126 2869 if test "$*" = "X"; then
cannam@126 2870 # -L didn't work.
cannam@126 2871 set X `ls -t "$srcdir/configure" conftest.file`
cannam@126 2872 fi
cannam@126 2873 if test "$*" != "X $srcdir/configure conftest.file" \
cannam@126 2874 && test "$*" != "X conftest.file $srcdir/configure"; then
cannam@126 2875
cannam@126 2876 # If neither matched, then we have a broken ls. This can happen
cannam@126 2877 # if, for instance, CONFIG_SHELL is bash and it inherits a
cannam@126 2878 # broken ls alias from the environment. This has actually
cannam@126 2879 # happened. Such a system could not be considered "sane".
cannam@126 2880 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cannam@126 2881 alias in your environment" "$LINENO" 5
cannam@126 2882 fi
cannam@126 2883 if test "$2" = conftest.file || test $am_try -eq 2; then
cannam@126 2884 break
cannam@126 2885 fi
cannam@126 2886 # Just in case.
cannam@126 2887 sleep 1
cannam@126 2888 am_has_slept=yes
cannam@126 2889 done
cannam@126 2890 test "$2" = conftest.file
cannam@126 2891 )
cannam@126 2892 then
cannam@126 2893 # Ok.
cannam@126 2894 :
cannam@126 2895 else
cannam@126 2896 as_fn_error $? "newly created file is older than distributed files!
cannam@126 2897 Check your system clock" "$LINENO" 5
cannam@126 2898 fi
cannam@126 2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@126 2900 $as_echo "yes" >&6; }
cannam@126 2901 # If we didn't sleep, we still need to ensure time stamps of config.status and
cannam@126 2902 # generated files are strictly newer.
cannam@126 2903 am_sleep_pid=
cannam@126 2904 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
cannam@126 2905 ( sleep 1 ) &
cannam@126 2906 am_sleep_pid=$!
cannam@126 2907 fi
cannam@126 2908
cannam@126 2909 rm -f conftest.file
cannam@126 2910
cannam@126 2911 test "$program_prefix" != NONE &&
cannam@126 2912 program_transform_name="s&^&$program_prefix&;$program_transform_name"
cannam@126 2913 # Use a double $ so make ignores it.
cannam@126 2914 test "$program_suffix" != NONE &&
cannam@126 2915 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
cannam@126 2916 # Double any \ or $.
cannam@126 2917 # By default was `s,x,x', remove it if useless.
cannam@126 2918 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
cannam@126 2919 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cannam@126 2920
cannam@126 2921 # Expand $ac_aux_dir to an absolute path.
cannam@126 2922 am_aux_dir=`cd "$ac_aux_dir" && pwd`
cannam@126 2923
cannam@126 2924 if test x"${MISSING+set}" != xset; then
cannam@126 2925 case $am_aux_dir in
cannam@126 2926 *\ * | *\ *)
cannam@126 2927 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
cannam@126 2928 *)
cannam@126 2929 MISSING="\${SHELL} $am_aux_dir/missing" ;;
cannam@126 2930 esac
cannam@126 2931 fi
cannam@126 2932 # Use eval to expand $SHELL
cannam@126 2933 if eval "$MISSING --is-lightweight"; then
cannam@126 2934 am_missing_run="$MISSING "
cannam@126 2935 else
cannam@126 2936 am_missing_run=
cannam@126 2937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
cannam@126 2938 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cannam@126 2939 fi
cannam@126 2940
cannam@126 2941 if test x"${install_sh+set}" != xset; then
cannam@126 2942 case $am_aux_dir in
cannam@126 2943 *\ * | *\ *)
cannam@126 2944 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
cannam@126 2945 *)
cannam@126 2946 install_sh="\${SHELL} $am_aux_dir/install-sh"
cannam@126 2947 esac
cannam@126 2948 fi
cannam@126 2949
cannam@126 2950 # Installed binaries are usually stripped using 'strip' when the user
cannam@126 2951 # run "make install-strip". However 'strip' might not be the right
cannam@126 2952 # tool to use in cross-compilation environments, therefore Automake
cannam@126 2953 # will honor the 'STRIP' environment variable to overrule this program.
cannam@126 2954 if test "$cross_compiling" != no; then
cannam@126 2955 if test -n "$ac_tool_prefix"; then
cannam@126 2956 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
cannam@126 2957 set dummy ${ac_tool_prefix}strip; ac_word=$2
cannam@126 2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 2959 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 2960 if ${ac_cv_prog_STRIP+:} false; then :
cannam@126 2961 $as_echo_n "(cached) " >&6
cannam@126 2962 else
cannam@126 2963 if test -n "$STRIP"; then
cannam@126 2964 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
cannam@126 2965 else
cannam@126 2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 2967 for as_dir in $PATH
cannam@126 2968 do
cannam@126 2969 IFS=$as_save_IFS
cannam@126 2970 test -z "$as_dir" && as_dir=.
cannam@126 2971 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 2972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 2973 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cannam@126 2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 2975 break 2
cannam@126 2976 fi
cannam@126 2977 done
cannam@126 2978 done
cannam@126 2979 IFS=$as_save_IFS
cannam@126 2980
cannam@126 2981 fi
cannam@126 2982 fi
cannam@126 2983 STRIP=$ac_cv_prog_STRIP
cannam@126 2984 if test -n "$STRIP"; then
cannam@126 2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cannam@126 2986 $as_echo "$STRIP" >&6; }
cannam@126 2987 else
cannam@126 2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 2989 $as_echo "no" >&6; }
cannam@126 2990 fi
cannam@126 2991
cannam@126 2992
cannam@126 2993 fi
cannam@126 2994 if test -z "$ac_cv_prog_STRIP"; then
cannam@126 2995 ac_ct_STRIP=$STRIP
cannam@126 2996 # Extract the first word of "strip", so it can be a program name with args.
cannam@126 2997 set dummy strip; ac_word=$2
cannam@126 2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 2999 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 3000 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cannam@126 3001 $as_echo_n "(cached) " >&6
cannam@126 3002 else
cannam@126 3003 if test -n "$ac_ct_STRIP"; then
cannam@126 3004 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
cannam@126 3005 else
cannam@126 3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 3007 for as_dir in $PATH
cannam@126 3008 do
cannam@126 3009 IFS=$as_save_IFS
cannam@126 3010 test -z "$as_dir" && as_dir=.
cannam@126 3011 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 3012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 3013 ac_cv_prog_ac_ct_STRIP="strip"
cannam@126 3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 3015 break 2
cannam@126 3016 fi
cannam@126 3017 done
cannam@126 3018 done
cannam@126 3019 IFS=$as_save_IFS
cannam@126 3020
cannam@126 3021 fi
cannam@126 3022 fi
cannam@126 3023 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
cannam@126 3024 if test -n "$ac_ct_STRIP"; then
cannam@126 3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cannam@126 3026 $as_echo "$ac_ct_STRIP" >&6; }
cannam@126 3027 else
cannam@126 3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 3029 $as_echo "no" >&6; }
cannam@126 3030 fi
cannam@126 3031
cannam@126 3032 if test "x$ac_ct_STRIP" = x; then
cannam@126 3033 STRIP=":"
cannam@126 3034 else
cannam@126 3035 case $cross_compiling:$ac_tool_warned in
cannam@126 3036 yes:)
cannam@126 3037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@126 3038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@126 3039 ac_tool_warned=yes ;;
cannam@126 3040 esac
cannam@126 3041 STRIP=$ac_ct_STRIP
cannam@126 3042 fi
cannam@126 3043 else
cannam@126 3044 STRIP="$ac_cv_prog_STRIP"
cannam@126 3045 fi
cannam@126 3046
cannam@126 3047 fi
cannam@126 3048 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
cannam@126 3049
cannam@126 3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cannam@126 3051 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
cannam@126 3052 if test -z "$MKDIR_P"; then
cannam@126 3053 if ${ac_cv_path_mkdir+:} false; then :
cannam@126 3054 $as_echo_n "(cached) " >&6
cannam@126 3055 else
cannam@126 3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 3057 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
cannam@126 3058 do
cannam@126 3059 IFS=$as_save_IFS
cannam@126 3060 test -z "$as_dir" && as_dir=.
cannam@126 3061 for ac_prog in mkdir gmkdir; do
cannam@126 3062 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 3063 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cannam@126 3064 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
cannam@126 3065 'mkdir (GNU coreutils) '* | \
cannam@126 3066 'mkdir (coreutils) '* | \
cannam@126 3067 'mkdir (fileutils) '4.1*)
cannam@126 3068 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
cannam@126 3069 break 3;;
cannam@126 3070 esac
cannam@126 3071 done
cannam@126 3072 done
cannam@126 3073 done
cannam@126 3074 IFS=$as_save_IFS
cannam@126 3075
cannam@126 3076 fi
cannam@126 3077
cannam@126 3078 test -d ./--version && rmdir ./--version
cannam@126 3079 if test "${ac_cv_path_mkdir+set}" = set; then
cannam@126 3080 MKDIR_P="$ac_cv_path_mkdir -p"
cannam@126 3081 else
cannam@126 3082 # As a last resort, use the slow shell script. Don't cache a
cannam@126 3083 # value for MKDIR_P within a source directory, because that will
cannam@126 3084 # break other packages using the cache if that directory is
cannam@126 3085 # removed, or if the value is a relative name.
cannam@126 3086 MKDIR_P="$ac_install_sh -d"
cannam@126 3087 fi
cannam@126 3088 fi
cannam@126 3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cannam@126 3090 $as_echo "$MKDIR_P" >&6; }
cannam@126 3091
cannam@126 3092 for ac_prog in gawk mawk nawk awk
cannam@126 3093 do
cannam@126 3094 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@126 3095 set dummy $ac_prog; ac_word=$2
cannam@126 3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 3097 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 3098 if ${ac_cv_prog_AWK+:} false; then :
cannam@126 3099 $as_echo_n "(cached) " >&6
cannam@126 3100 else
cannam@126 3101 if test -n "$AWK"; then
cannam@126 3102 ac_cv_prog_AWK="$AWK" # Let the user override the test.
cannam@126 3103 else
cannam@126 3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 3105 for as_dir in $PATH
cannam@126 3106 do
cannam@126 3107 IFS=$as_save_IFS
cannam@126 3108 test -z "$as_dir" && as_dir=.
cannam@126 3109 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 3110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 3111 ac_cv_prog_AWK="$ac_prog"
cannam@126 3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 3113 break 2
cannam@126 3114 fi
cannam@126 3115 done
cannam@126 3116 done
cannam@126 3117 IFS=$as_save_IFS
cannam@126 3118
cannam@126 3119 fi
cannam@126 3120 fi
cannam@126 3121 AWK=$ac_cv_prog_AWK
cannam@126 3122 if test -n "$AWK"; then
cannam@126 3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cannam@126 3124 $as_echo "$AWK" >&6; }
cannam@126 3125 else
cannam@126 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 3127 $as_echo "no" >&6; }
cannam@126 3128 fi
cannam@126 3129
cannam@126 3130
cannam@126 3131 test -n "$AWK" && break
cannam@126 3132 done
cannam@126 3133
cannam@126 3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cannam@126 3135 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
cannam@126 3136 set x ${MAKE-make}
cannam@126 3137 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cannam@126 3138 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cannam@126 3139 $as_echo_n "(cached) " >&6
cannam@126 3140 else
cannam@126 3141 cat >conftest.make <<\_ACEOF
cannam@126 3142 SHELL = /bin/sh
cannam@126 3143 all:
cannam@126 3144 @echo '@@@%%%=$(MAKE)=@@@%%%'
cannam@126 3145 _ACEOF
cannam@126 3146 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cannam@126 3147 case `${MAKE-make} -f conftest.make 2>/dev/null` in
cannam@126 3148 *@@@%%%=?*=@@@%%%*)
cannam@126 3149 eval ac_cv_prog_make_${ac_make}_set=yes;;
cannam@126 3150 *)
cannam@126 3151 eval ac_cv_prog_make_${ac_make}_set=no;;
cannam@126 3152 esac
cannam@126 3153 rm -f conftest.make
cannam@126 3154 fi
cannam@126 3155 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cannam@126 3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@126 3157 $as_echo "yes" >&6; }
cannam@126 3158 SET_MAKE=
cannam@126 3159 else
cannam@126 3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 3161 $as_echo "no" >&6; }
cannam@126 3162 SET_MAKE="MAKE=${MAKE-make}"
cannam@126 3163 fi
cannam@126 3164
cannam@126 3165 rm -rf .tst 2>/dev/null
cannam@126 3166 mkdir .tst 2>/dev/null
cannam@126 3167 if test -d .tst; then
cannam@126 3168 am__leading_dot=.
cannam@126 3169 else
cannam@126 3170 am__leading_dot=_
cannam@126 3171 fi
cannam@126 3172 rmdir .tst 2>/dev/null
cannam@126 3173
cannam@126 3174 # Check whether --enable-silent-rules was given.
cannam@126 3175 if test "${enable_silent_rules+set}" = set; then :
cannam@126 3176 enableval=$enable_silent_rules;
cannam@126 3177 fi
cannam@126 3178
cannam@126 3179 case $enable_silent_rules in # (((
cannam@126 3180 yes) AM_DEFAULT_VERBOSITY=0;;
cannam@126 3181 no) AM_DEFAULT_VERBOSITY=1;;
cannam@126 3182 *) AM_DEFAULT_VERBOSITY=1;;
cannam@126 3183 esac
cannam@126 3184 am_make=${MAKE-make}
cannam@126 3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
cannam@126 3186 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
cannam@126 3187 if ${am_cv_make_support_nested_variables+:} false; then :
cannam@126 3188 $as_echo_n "(cached) " >&6
cannam@126 3189 else
cannam@126 3190 if $as_echo 'TRUE=$(BAR$(V))
cannam@126 3191 BAR0=false
cannam@126 3192 BAR1=true
cannam@126 3193 V=1
cannam@126 3194 am__doit:
cannam@126 3195 @$(TRUE)
cannam@126 3196 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
cannam@126 3197 am_cv_make_support_nested_variables=yes
cannam@126 3198 else
cannam@126 3199 am_cv_make_support_nested_variables=no
cannam@126 3200 fi
cannam@126 3201 fi
cannam@126 3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
cannam@126 3203 $as_echo "$am_cv_make_support_nested_variables" >&6; }
cannam@126 3204 if test $am_cv_make_support_nested_variables = yes; then
cannam@126 3205 AM_V='$(V)'
cannam@126 3206 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
cannam@126 3207 else
cannam@126 3208 AM_V=$AM_DEFAULT_VERBOSITY
cannam@126 3209 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
cannam@126 3210 fi
cannam@126 3211 AM_BACKSLASH='\'
cannam@126 3212
cannam@126 3213 if test "`cd $srcdir && pwd`" != "`pwd`"; then
cannam@126 3214 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
cannam@126 3215 # is not polluted with repeated "-I."
cannam@126 3216 am__isrc=' -I$(srcdir)'
cannam@126 3217 # test to see if srcdir already configured
cannam@126 3218 if test -f $srcdir/config.status; then
cannam@126 3219 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cannam@126 3220 fi
cannam@126 3221 fi
cannam@126 3222
cannam@126 3223 # test whether we have cygpath
cannam@126 3224 if test -z "$CYGPATH_W"; then
cannam@126 3225 if (cygpath --version) >/dev/null 2>/dev/null; then
cannam@126 3226 CYGPATH_W='cygpath -w'
cannam@126 3227 else
cannam@126 3228 CYGPATH_W=echo
cannam@126 3229 fi
cannam@126 3230 fi
cannam@126 3231
cannam@126 3232
cannam@126 3233 # Define the identity of the package.
cannam@126 3234
cannam@126 3235 PACKAGE=$PACKAGE_NAME
cannam@126 3236 VERSION=$PACKAGE_VERSION
cannam@126 3237
cannam@126 3238
cannam@126 3239 cat >>confdefs.h <<_ACEOF
cannam@126 3240 #define PACKAGE "$PACKAGE"
cannam@126 3241 _ACEOF
cannam@126 3242
cannam@126 3243
cannam@126 3244 cat >>confdefs.h <<_ACEOF
cannam@126 3245 #define VERSION "$VERSION"
cannam@126 3246 _ACEOF
cannam@126 3247
cannam@126 3248 # Some tools Automake needs.
cannam@126 3249
cannam@126 3250 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
cannam@126 3251
cannam@126 3252
cannam@126 3253 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
cannam@126 3254
cannam@126 3255
cannam@126 3256 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
cannam@126 3257
cannam@126 3258
cannam@126 3259 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
cannam@126 3260
cannam@126 3261
cannam@126 3262 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
cannam@126 3263
cannam@126 3264 # For better backward compatibility. To be removed once Automake 1.9.x
cannam@126 3265 # dies out for good. For more background, see:
cannam@126 3266 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
cannam@126 3267 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
cannam@126 3268 mkdir_p='$(MKDIR_P)'
cannam@126 3269
cannam@126 3270 # We need awk for the "check" target (and possibly the TAP driver). The
cannam@126 3271 # system "awk" is bad on some platforms.
cannam@126 3272 # Always define AMTAR for backward compatibility. Yes, it's still used
cannam@126 3273 # in the wild :-( We should find a proper way to deprecate it ...
cannam@126 3274 AMTAR='$${TAR-tar}'
cannam@126 3275
cannam@126 3276
cannam@126 3277 # We'll loop over all known methods to create a tar archive until one works.
cannam@126 3278 _am_tools='gnutar pax cpio none'
cannam@126 3279
cannam@126 3280 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cannam@126 3281
cannam@126 3282
cannam@126 3283
cannam@126 3284
cannam@126 3285
cannam@126 3286
cannam@126 3287 # POSIX will say in a future version that running "rm -f" with no argument
cannam@126 3288 # is OK; and we want to be able to make that assumption in our Makefile
cannam@126 3289 # recipes. So use an aggressive probe to check that the usage we want is
cannam@126 3290 # actually supported "in the wild" to an acceptable degree.
cannam@126 3291 # See automake bug#10828.
cannam@126 3292 # To make any issue more visible, cause the running configure to be aborted
cannam@126 3293 # by default if the 'rm' program in use doesn't match our expectations; the
cannam@126 3294 # user can still override this though.
cannam@126 3295 if rm -f && rm -fr && rm -rf; then : OK; else
cannam@126 3296 cat >&2 <<'END'
cannam@126 3297 Oops!
cannam@126 3298
cannam@126 3299 Your 'rm' program seems unable to run without file operands specified
cannam@126 3300 on the command line, even when the '-f' option is present. This is contrary
cannam@126 3301 to the behaviour of most rm programs out there, and not conforming with
cannam@126 3302 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
cannam@126 3303
cannam@126 3304 Please tell bug-automake@gnu.org about your system, including the value
cannam@126 3305 of your $PATH and any error possibly output before this message. This
cannam@126 3306 can help us improve future automake versions.
cannam@126 3307
cannam@126 3308 END
cannam@126 3309 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
cannam@126 3310 echo 'Configuration will proceed anyway, since you have set the' >&2
cannam@126 3311 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
cannam@126 3312 echo >&2
cannam@126 3313 else
cannam@126 3314 cat >&2 <<'END'
cannam@126 3315 Aborting the configuration process, to ensure you take notice of the issue.
cannam@126 3316
cannam@126 3317 You can download and install GNU coreutils to get an 'rm' implementation
cannam@126 3318 that behaves properly: <http://www.gnu.org/software/coreutils/>.
cannam@126 3319
cannam@126 3320 If you want to complete the configuration process using your problematic
cannam@126 3321 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
cannam@126 3322 to "yes", and re-run configure.
cannam@126 3323
cannam@126 3324 END
cannam@126 3325 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
cannam@126 3326 fi
cannam@126 3327 fi
cannam@126 3328
cannam@126 3329 # Check whether --enable-silent-rules was given.
cannam@126 3330 if test "${enable_silent_rules+set}" = set; then :
cannam@126 3331 enableval=$enable_silent_rules;
cannam@126 3332 fi
cannam@126 3333
cannam@126 3334 case $enable_silent_rules in # (((
cannam@126 3335 yes) AM_DEFAULT_VERBOSITY=0;;
cannam@126 3336 no) AM_DEFAULT_VERBOSITY=1;;
cannam@126 3337 *) AM_DEFAULT_VERBOSITY=0;;
cannam@126 3338 esac
cannam@126 3339 am_make=${MAKE-make}
cannam@126 3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
cannam@126 3341 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
cannam@126 3342 if ${am_cv_make_support_nested_variables+:} false; then :
cannam@126 3343 $as_echo_n "(cached) " >&6
cannam@126 3344 else
cannam@126 3345 if $as_echo 'TRUE=$(BAR$(V))
cannam@126 3346 BAR0=false
cannam@126 3347 BAR1=true
cannam@126 3348 V=1
cannam@126 3349 am__doit:
cannam@126 3350 @$(TRUE)
cannam@126 3351 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
cannam@126 3352 am_cv_make_support_nested_variables=yes
cannam@126 3353 else
cannam@126 3354 am_cv_make_support_nested_variables=no
cannam@126 3355 fi
cannam@126 3356 fi
cannam@126 3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
cannam@126 3358 $as_echo "$am_cv_make_support_nested_variables" >&6; }
cannam@126 3359 if test $am_cv_make_support_nested_variables = yes; then
cannam@126 3360 AM_V='$(V)'
cannam@126 3361 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
cannam@126 3362 else
cannam@126 3363 AM_V=$AM_DEFAULT_VERBOSITY
cannam@126 3364 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
cannam@126 3365 fi
cannam@126 3366 AM_BACKSLASH='\'
cannam@126 3367
cannam@126 3368
cannam@126 3369 ACLOCAL_AMFLAGS="-I M4"
cannam@126 3370
cannam@126 3371
cannam@126 3372 ac_ext=c
cannam@126 3373 ac_cpp='$CPP $CPPFLAGS'
cannam@126 3374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@126 3375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@126 3376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@126 3377
cannam@126 3378
cannam@126 3379 ac_ext=c
cannam@126 3380 ac_cpp='$CPP $CPPFLAGS'
cannam@126 3381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@126 3382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@126 3383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@126 3384 if test -n "$ac_tool_prefix"; then
cannam@126 3385 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
cannam@126 3386 set dummy ${ac_tool_prefix}gcc; ac_word=$2
cannam@126 3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 3388 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 3389 if ${ac_cv_prog_CC+:} false; then :
cannam@126 3390 $as_echo_n "(cached) " >&6
cannam@126 3391 else
cannam@126 3392 if test -n "$CC"; then
cannam@126 3393 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@126 3394 else
cannam@126 3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 3396 for as_dir in $PATH
cannam@126 3397 do
cannam@126 3398 IFS=$as_save_IFS
cannam@126 3399 test -z "$as_dir" && as_dir=.
cannam@126 3400 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 3401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 3402 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cannam@126 3403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 3404 break 2
cannam@126 3405 fi
cannam@126 3406 done
cannam@126 3407 done
cannam@126 3408 IFS=$as_save_IFS
cannam@126 3409
cannam@126 3410 fi
cannam@126 3411 fi
cannam@126 3412 CC=$ac_cv_prog_CC
cannam@126 3413 if test -n "$CC"; then
cannam@126 3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@126 3415 $as_echo "$CC" >&6; }
cannam@126 3416 else
cannam@126 3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 3418 $as_echo "no" >&6; }
cannam@126 3419 fi
cannam@126 3420
cannam@126 3421
cannam@126 3422 fi
cannam@126 3423 if test -z "$ac_cv_prog_CC"; then
cannam@126 3424 ac_ct_CC=$CC
cannam@126 3425 # Extract the first word of "gcc", so it can be a program name with args.
cannam@126 3426 set dummy gcc; ac_word=$2
cannam@126 3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 3428 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 3429 if ${ac_cv_prog_ac_ct_CC+:} false; then :
cannam@126 3430 $as_echo_n "(cached) " >&6
cannam@126 3431 else
cannam@126 3432 if test -n "$ac_ct_CC"; then
cannam@126 3433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
cannam@126 3434 else
cannam@126 3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 3436 for as_dir in $PATH
cannam@126 3437 do
cannam@126 3438 IFS=$as_save_IFS
cannam@126 3439 test -z "$as_dir" && as_dir=.
cannam@126 3440 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 3441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 3442 ac_cv_prog_ac_ct_CC="gcc"
cannam@126 3443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 3444 break 2
cannam@126 3445 fi
cannam@126 3446 done
cannam@126 3447 done
cannam@126 3448 IFS=$as_save_IFS
cannam@126 3449
cannam@126 3450 fi
cannam@126 3451 fi
cannam@126 3452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
cannam@126 3453 if test -n "$ac_ct_CC"; then
cannam@126 3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cannam@126 3455 $as_echo "$ac_ct_CC" >&6; }
cannam@126 3456 else
cannam@126 3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 3458 $as_echo "no" >&6; }
cannam@126 3459 fi
cannam@126 3460
cannam@126 3461 if test "x$ac_ct_CC" = x; then
cannam@126 3462 CC=""
cannam@126 3463 else
cannam@126 3464 case $cross_compiling:$ac_tool_warned in
cannam@126 3465 yes:)
cannam@126 3466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@126 3467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@126 3468 ac_tool_warned=yes ;;
cannam@126 3469 esac
cannam@126 3470 CC=$ac_ct_CC
cannam@126 3471 fi
cannam@126 3472 else
cannam@126 3473 CC="$ac_cv_prog_CC"
cannam@126 3474 fi
cannam@126 3475
cannam@126 3476 if test -z "$CC"; then
cannam@126 3477 if test -n "$ac_tool_prefix"; then
cannam@126 3478 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
cannam@126 3479 set dummy ${ac_tool_prefix}cc; ac_word=$2
cannam@126 3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 3481 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 3482 if ${ac_cv_prog_CC+:} false; then :
cannam@126 3483 $as_echo_n "(cached) " >&6
cannam@126 3484 else
cannam@126 3485 if test -n "$CC"; then
cannam@126 3486 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@126 3487 else
cannam@126 3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 3489 for as_dir in $PATH
cannam@126 3490 do
cannam@126 3491 IFS=$as_save_IFS
cannam@126 3492 test -z "$as_dir" && as_dir=.
cannam@126 3493 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 3494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 3495 ac_cv_prog_CC="${ac_tool_prefix}cc"
cannam@126 3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 3497 break 2
cannam@126 3498 fi
cannam@126 3499 done
cannam@126 3500 done
cannam@126 3501 IFS=$as_save_IFS
cannam@126 3502
cannam@126 3503 fi
cannam@126 3504 fi
cannam@126 3505 CC=$ac_cv_prog_CC
cannam@126 3506 if test -n "$CC"; then
cannam@126 3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@126 3508 $as_echo "$CC" >&6; }
cannam@126 3509 else
cannam@126 3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 3511 $as_echo "no" >&6; }
cannam@126 3512 fi
cannam@126 3513
cannam@126 3514
cannam@126 3515 fi
cannam@126 3516 fi
cannam@126 3517 if test -z "$CC"; then
cannam@126 3518 # Extract the first word of "cc", so it can be a program name with args.
cannam@126 3519 set dummy cc; ac_word=$2
cannam@126 3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 3521 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 3522 if ${ac_cv_prog_CC+:} false; then :
cannam@126 3523 $as_echo_n "(cached) " >&6
cannam@126 3524 else
cannam@126 3525 if test -n "$CC"; then
cannam@126 3526 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@126 3527 else
cannam@126 3528 ac_prog_rejected=no
cannam@126 3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 3530 for as_dir in $PATH
cannam@126 3531 do
cannam@126 3532 IFS=$as_save_IFS
cannam@126 3533 test -z "$as_dir" && as_dir=.
cannam@126 3534 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 3535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 3536 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
cannam@126 3537 ac_prog_rejected=yes
cannam@126 3538 continue
cannam@126 3539 fi
cannam@126 3540 ac_cv_prog_CC="cc"
cannam@126 3541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 3542 break 2
cannam@126 3543 fi
cannam@126 3544 done
cannam@126 3545 done
cannam@126 3546 IFS=$as_save_IFS
cannam@126 3547
cannam@126 3548 if test $ac_prog_rejected = yes; then
cannam@126 3549 # We found a bogon in the path, so make sure we never use it.
cannam@126 3550 set dummy $ac_cv_prog_CC
cannam@126 3551 shift
cannam@126 3552 if test $# != 0; then
cannam@126 3553 # We chose a different compiler from the bogus one.
cannam@126 3554 # However, it has the same basename, so the bogon will be chosen
cannam@126 3555 # first if we set CC to just the basename; use the full file name.
cannam@126 3556 shift
cannam@126 3557 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
cannam@126 3558 fi
cannam@126 3559 fi
cannam@126 3560 fi
cannam@126 3561 fi
cannam@126 3562 CC=$ac_cv_prog_CC
cannam@126 3563 if test -n "$CC"; then
cannam@126 3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@126 3565 $as_echo "$CC" >&6; }
cannam@126 3566 else
cannam@126 3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 3568 $as_echo "no" >&6; }
cannam@126 3569 fi
cannam@126 3570
cannam@126 3571
cannam@126 3572 fi
cannam@126 3573 if test -z "$CC"; then
cannam@126 3574 if test -n "$ac_tool_prefix"; then
cannam@126 3575 for ac_prog in cl.exe
cannam@126 3576 do
cannam@126 3577 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@126 3578 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@126 3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 3580 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 3581 if ${ac_cv_prog_CC+:} false; then :
cannam@126 3582 $as_echo_n "(cached) " >&6
cannam@126 3583 else
cannam@126 3584 if test -n "$CC"; then
cannam@126 3585 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@126 3586 else
cannam@126 3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 3588 for as_dir in $PATH
cannam@126 3589 do
cannam@126 3590 IFS=$as_save_IFS
cannam@126 3591 test -z "$as_dir" && as_dir=.
cannam@126 3592 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 3593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 3594 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cannam@126 3595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 3596 break 2
cannam@126 3597 fi
cannam@126 3598 done
cannam@126 3599 done
cannam@126 3600 IFS=$as_save_IFS
cannam@126 3601
cannam@126 3602 fi
cannam@126 3603 fi
cannam@126 3604 CC=$ac_cv_prog_CC
cannam@126 3605 if test -n "$CC"; then
cannam@126 3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@126 3607 $as_echo "$CC" >&6; }
cannam@126 3608 else
cannam@126 3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 3610 $as_echo "no" >&6; }
cannam@126 3611 fi
cannam@126 3612
cannam@126 3613
cannam@126 3614 test -n "$CC" && break
cannam@126 3615 done
cannam@126 3616 fi
cannam@126 3617 if test -z "$CC"; then
cannam@126 3618 ac_ct_CC=$CC
cannam@126 3619 for ac_prog in cl.exe
cannam@126 3620 do
cannam@126 3621 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@126 3622 set dummy $ac_prog; ac_word=$2
cannam@126 3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 3624 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 3625 if ${ac_cv_prog_ac_ct_CC+:} false; then :
cannam@126 3626 $as_echo_n "(cached) " >&6
cannam@126 3627 else
cannam@126 3628 if test -n "$ac_ct_CC"; then
cannam@126 3629 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
cannam@126 3630 else
cannam@126 3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 3632 for as_dir in $PATH
cannam@126 3633 do
cannam@126 3634 IFS=$as_save_IFS
cannam@126 3635 test -z "$as_dir" && as_dir=.
cannam@126 3636 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 3637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 3638 ac_cv_prog_ac_ct_CC="$ac_prog"
cannam@126 3639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 3640 break 2
cannam@126 3641 fi
cannam@126 3642 done
cannam@126 3643 done
cannam@126 3644 IFS=$as_save_IFS
cannam@126 3645
cannam@126 3646 fi
cannam@126 3647 fi
cannam@126 3648 ac_ct_CC=$ac_cv_prog_ac_ct_CC
cannam@126 3649 if test -n "$ac_ct_CC"; then
cannam@126 3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cannam@126 3651 $as_echo "$ac_ct_CC" >&6; }
cannam@126 3652 else
cannam@126 3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 3654 $as_echo "no" >&6; }
cannam@126 3655 fi
cannam@126 3656
cannam@126 3657
cannam@126 3658 test -n "$ac_ct_CC" && break
cannam@126 3659 done
cannam@126 3660
cannam@126 3661 if test "x$ac_ct_CC" = x; then
cannam@126 3662 CC=""
cannam@126 3663 else
cannam@126 3664 case $cross_compiling:$ac_tool_warned in
cannam@126 3665 yes:)
cannam@126 3666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@126 3667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@126 3668 ac_tool_warned=yes ;;
cannam@126 3669 esac
cannam@126 3670 CC=$ac_ct_CC
cannam@126 3671 fi
cannam@126 3672 fi
cannam@126 3673
cannam@126 3674 fi
cannam@126 3675
cannam@126 3676
cannam@126 3677 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@126 3678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@126 3679 as_fn_error $? "no acceptable C compiler found in \$PATH
cannam@126 3680 See \`config.log' for more details" "$LINENO" 5; }
cannam@126 3681
cannam@126 3682 # Provide some information about the compiler.
cannam@126 3683 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cannam@126 3684 set X $ac_compile
cannam@126 3685 ac_compiler=$2
cannam@126 3686 for ac_option in --version -v -V -qversion; do
cannam@126 3687 { { ac_try="$ac_compiler $ac_option >&5"
cannam@126 3688 case "(($ac_try" in
cannam@126 3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@126 3690 *) ac_try_echo=$ac_try;;
cannam@126 3691 esac
cannam@126 3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@126 3693 $as_echo "$ac_try_echo"; } >&5
cannam@126 3694 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cannam@126 3695 ac_status=$?
cannam@126 3696 if test -s conftest.err; then
cannam@126 3697 sed '10a\
cannam@126 3698 ... rest of stderr output deleted ...
cannam@126 3699 10q' conftest.err >conftest.er1
cannam@126 3700 cat conftest.er1 >&5
cannam@126 3701 fi
cannam@126 3702 rm -f conftest.er1 conftest.err
cannam@126 3703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 3704 test $ac_status = 0; }
cannam@126 3705 done
cannam@126 3706
cannam@126 3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 3708 /* end confdefs.h. */
cannam@126 3709
cannam@126 3710 int
cannam@126 3711 main ()
cannam@126 3712 {
cannam@126 3713
cannam@126 3714 ;
cannam@126 3715 return 0;
cannam@126 3716 }
cannam@126 3717 _ACEOF
cannam@126 3718 ac_clean_files_save=$ac_clean_files
cannam@126 3719 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cannam@126 3720 # Try to create an executable without -o first, disregard a.out.
cannam@126 3721 # It will help us diagnose broken compilers, and finding out an intuition
cannam@126 3722 # of exeext.
cannam@126 3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
cannam@126 3724 $as_echo_n "checking whether the C compiler works... " >&6; }
cannam@126 3725 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
cannam@126 3726
cannam@126 3727 # The possible output files:
cannam@126 3728 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
cannam@126 3729
cannam@126 3730 ac_rmfiles=
cannam@126 3731 for ac_file in $ac_files
cannam@126 3732 do
cannam@126 3733 case $ac_file in
cannam@126 3734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
cannam@126 3735 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
cannam@126 3736 esac
cannam@126 3737 done
cannam@126 3738 rm -f $ac_rmfiles
cannam@126 3739
cannam@126 3740 if { { ac_try="$ac_link_default"
cannam@126 3741 case "(($ac_try" in
cannam@126 3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@126 3743 *) ac_try_echo=$ac_try;;
cannam@126 3744 esac
cannam@126 3745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@126 3746 $as_echo "$ac_try_echo"; } >&5
cannam@126 3747 (eval "$ac_link_default") 2>&5
cannam@126 3748 ac_status=$?
cannam@126 3749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 3750 test $ac_status = 0; }; then :
cannam@126 3751 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
cannam@126 3752 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
cannam@126 3753 # in a Makefile. We should not override ac_cv_exeext if it was cached,
cannam@126 3754 # so that the user can short-circuit this test for compilers unknown to
cannam@126 3755 # Autoconf.
cannam@126 3756 for ac_file in $ac_files ''
cannam@126 3757 do
cannam@126 3758 test -f "$ac_file" || continue
cannam@126 3759 case $ac_file in
cannam@126 3760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
cannam@126 3761 ;;
cannam@126 3762 [ab].out )
cannam@126 3763 # We found the default executable, but exeext='' is most
cannam@126 3764 # certainly right.
cannam@126 3765 break;;
cannam@126 3766 *.* )
cannam@126 3767 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cannam@126 3768 then :; else
cannam@126 3769 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
cannam@126 3770 fi
cannam@126 3771 # We set ac_cv_exeext here because the later test for it is not
cannam@126 3772 # safe: cross compilers may not add the suffix if given an `-o'
cannam@126 3773 # argument, so we may need to know it at that point already.
cannam@126 3774 # Even if this section looks crufty: it has the advantage of
cannam@126 3775 # actually working.
cannam@126 3776 break;;
cannam@126 3777 * )
cannam@126 3778 break;;
cannam@126 3779 esac
cannam@126 3780 done
cannam@126 3781 test "$ac_cv_exeext" = no && ac_cv_exeext=
cannam@126 3782
cannam@126 3783 else
cannam@126 3784 ac_file=''
cannam@126 3785 fi
cannam@126 3786 if test -z "$ac_file"; then :
cannam@126 3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 3788 $as_echo "no" >&6; }
cannam@126 3789 $as_echo "$as_me: failed program was:" >&5
cannam@126 3790 sed 's/^/| /' conftest.$ac_ext >&5
cannam@126 3791
cannam@126 3792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@126 3793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@126 3794 as_fn_error 77 "C compiler cannot create executables
cannam@126 3795 See \`config.log' for more details" "$LINENO" 5; }
cannam@126 3796 else
cannam@126 3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@126 3798 $as_echo "yes" >&6; }
cannam@126 3799 fi
cannam@126 3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
cannam@126 3801 $as_echo_n "checking for C compiler default output file name... " >&6; }
cannam@126 3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
cannam@126 3803 $as_echo "$ac_file" >&6; }
cannam@126 3804 ac_exeext=$ac_cv_exeext
cannam@126 3805
cannam@126 3806 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cannam@126 3807 ac_clean_files=$ac_clean_files_save
cannam@126 3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cannam@126 3809 $as_echo_n "checking for suffix of executables... " >&6; }
cannam@126 3810 if { { ac_try="$ac_link"
cannam@126 3811 case "(($ac_try" in
cannam@126 3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@126 3813 *) ac_try_echo=$ac_try;;
cannam@126 3814 esac
cannam@126 3815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@126 3816 $as_echo "$ac_try_echo"; } >&5
cannam@126 3817 (eval "$ac_link") 2>&5
cannam@126 3818 ac_status=$?
cannam@126 3819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 3820 test $ac_status = 0; }; then :
cannam@126 3821 # If both `conftest.exe' and `conftest' are `present' (well, observable)
cannam@126 3822 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
cannam@126 3823 # work properly (i.e., refer to `conftest.exe'), while it won't with
cannam@126 3824 # `rm'.
cannam@126 3825 for ac_file in conftest.exe conftest conftest.*; do
cannam@126 3826 test -f "$ac_file" || continue
cannam@126 3827 case $ac_file in
cannam@126 3828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
cannam@126 3829 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
cannam@126 3830 break;;
cannam@126 3831 * ) break;;
cannam@126 3832 esac
cannam@126 3833 done
cannam@126 3834 else
cannam@126 3835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@126 3836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@126 3837 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
cannam@126 3838 See \`config.log' for more details" "$LINENO" 5; }
cannam@126 3839 fi
cannam@126 3840 rm -f conftest conftest$ac_cv_exeext
cannam@126 3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cannam@126 3842 $as_echo "$ac_cv_exeext" >&6; }
cannam@126 3843
cannam@126 3844 rm -f conftest.$ac_ext
cannam@126 3845 EXEEXT=$ac_cv_exeext
cannam@126 3846 ac_exeext=$EXEEXT
cannam@126 3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 3848 /* end confdefs.h. */
cannam@126 3849 #include <stdio.h>
cannam@126 3850 int
cannam@126 3851 main ()
cannam@126 3852 {
cannam@126 3853 FILE *f = fopen ("conftest.out", "w");
cannam@126 3854 return ferror (f) || fclose (f) != 0;
cannam@126 3855
cannam@126 3856 ;
cannam@126 3857 return 0;
cannam@126 3858 }
cannam@126 3859 _ACEOF
cannam@126 3860 ac_clean_files="$ac_clean_files conftest.out"
cannam@126 3861 # Check that the compiler produces executables we can run. If not, either
cannam@126 3862 # the compiler is broken, or we cross compile.
cannam@126 3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
cannam@126 3864 $as_echo_n "checking whether we are cross compiling... " >&6; }
cannam@126 3865 if test "$cross_compiling" != yes; then
cannam@126 3866 { { ac_try="$ac_link"
cannam@126 3867 case "(($ac_try" in
cannam@126 3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@126 3869 *) ac_try_echo=$ac_try;;
cannam@126 3870 esac
cannam@126 3871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@126 3872 $as_echo "$ac_try_echo"; } >&5
cannam@126 3873 (eval "$ac_link") 2>&5
cannam@126 3874 ac_status=$?
cannam@126 3875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 3876 test $ac_status = 0; }
cannam@126 3877 if { ac_try='./conftest$ac_cv_exeext'
cannam@126 3878 { { case "(($ac_try" in
cannam@126 3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@126 3880 *) ac_try_echo=$ac_try;;
cannam@126 3881 esac
cannam@126 3882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@126 3883 $as_echo "$ac_try_echo"; } >&5
cannam@126 3884 (eval "$ac_try") 2>&5
cannam@126 3885 ac_status=$?
cannam@126 3886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 3887 test $ac_status = 0; }; }; then
cannam@126 3888 cross_compiling=no
cannam@126 3889 else
cannam@126 3890 if test "$cross_compiling" = maybe; then
cannam@126 3891 cross_compiling=yes
cannam@126 3892 else
cannam@126 3893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@126 3894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@126 3895 as_fn_error $? "cannot run C compiled programs.
cannam@126 3896 If you meant to cross compile, use \`--host'.
cannam@126 3897 See \`config.log' for more details" "$LINENO" 5; }
cannam@126 3898 fi
cannam@126 3899 fi
cannam@126 3900 fi
cannam@126 3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
cannam@126 3902 $as_echo "$cross_compiling" >&6; }
cannam@126 3903
cannam@126 3904 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
cannam@126 3905 ac_clean_files=$ac_clean_files_save
cannam@126 3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cannam@126 3907 $as_echo_n "checking for suffix of object files... " >&6; }
cannam@126 3908 if ${ac_cv_objext+:} false; then :
cannam@126 3909 $as_echo_n "(cached) " >&6
cannam@126 3910 else
cannam@126 3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 3912 /* end confdefs.h. */
cannam@126 3913
cannam@126 3914 int
cannam@126 3915 main ()
cannam@126 3916 {
cannam@126 3917
cannam@126 3918 ;
cannam@126 3919 return 0;
cannam@126 3920 }
cannam@126 3921 _ACEOF
cannam@126 3922 rm -f conftest.o conftest.obj
cannam@126 3923 if { { ac_try="$ac_compile"
cannam@126 3924 case "(($ac_try" in
cannam@126 3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@126 3926 *) ac_try_echo=$ac_try;;
cannam@126 3927 esac
cannam@126 3928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@126 3929 $as_echo "$ac_try_echo"; } >&5
cannam@126 3930 (eval "$ac_compile") 2>&5
cannam@126 3931 ac_status=$?
cannam@126 3932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 3933 test $ac_status = 0; }; then :
cannam@126 3934 for ac_file in conftest.o conftest.obj conftest.*; do
cannam@126 3935 test -f "$ac_file" || continue;
cannam@126 3936 case $ac_file in
cannam@126 3937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
cannam@126 3938 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
cannam@126 3939 break;;
cannam@126 3940 esac
cannam@126 3941 done
cannam@126 3942 else
cannam@126 3943 $as_echo "$as_me: failed program was:" >&5
cannam@126 3944 sed 's/^/| /' conftest.$ac_ext >&5
cannam@126 3945
cannam@126 3946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@126 3947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@126 3948 as_fn_error $? "cannot compute suffix of object files: cannot compile
cannam@126 3949 See \`config.log' for more details" "$LINENO" 5; }
cannam@126 3950 fi
cannam@126 3951 rm -f conftest.$ac_cv_objext conftest.$ac_ext
cannam@126 3952 fi
cannam@126 3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cannam@126 3954 $as_echo "$ac_cv_objext" >&6; }
cannam@126 3955 OBJEXT=$ac_cv_objext
cannam@126 3956 ac_objext=$OBJEXT
cannam@126 3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cannam@126 3958 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cannam@126 3959 if ${ac_cv_c_compiler_gnu+:} false; then :
cannam@126 3960 $as_echo_n "(cached) " >&6
cannam@126 3961 else
cannam@126 3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 3963 /* end confdefs.h. */
cannam@126 3964
cannam@126 3965 int
cannam@126 3966 main ()
cannam@126 3967 {
cannam@126 3968 #ifndef __GNUC__
cannam@126 3969 choke me
cannam@126 3970 #endif
cannam@126 3971
cannam@126 3972 ;
cannam@126 3973 return 0;
cannam@126 3974 }
cannam@126 3975 _ACEOF
cannam@126 3976 if ac_fn_c_try_compile "$LINENO"; then :
cannam@126 3977 ac_compiler_gnu=yes
cannam@126 3978 else
cannam@126 3979 ac_compiler_gnu=no
cannam@126 3980 fi
cannam@126 3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@126 3982 ac_cv_c_compiler_gnu=$ac_compiler_gnu
cannam@126 3983
cannam@126 3984 fi
cannam@126 3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cannam@126 3986 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
cannam@126 3987 if test $ac_compiler_gnu = yes; then
cannam@126 3988 GCC=yes
cannam@126 3989 else
cannam@126 3990 GCC=
cannam@126 3991 fi
cannam@126 3992 ac_test_CFLAGS=${CFLAGS+set}
cannam@126 3993 ac_save_CFLAGS=$CFLAGS
cannam@126 3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cannam@126 3995 $as_echo_n "checking whether $CC accepts -g... " >&6; }
cannam@126 3996 if ${ac_cv_prog_cc_g+:} false; then :
cannam@126 3997 $as_echo_n "(cached) " >&6
cannam@126 3998 else
cannam@126 3999 ac_save_c_werror_flag=$ac_c_werror_flag
cannam@126 4000 ac_c_werror_flag=yes
cannam@126 4001 ac_cv_prog_cc_g=no
cannam@126 4002 CFLAGS="-g"
cannam@126 4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 4004 /* end confdefs.h. */
cannam@126 4005
cannam@126 4006 int
cannam@126 4007 main ()
cannam@126 4008 {
cannam@126 4009
cannam@126 4010 ;
cannam@126 4011 return 0;
cannam@126 4012 }
cannam@126 4013 _ACEOF
cannam@126 4014 if ac_fn_c_try_compile "$LINENO"; then :
cannam@126 4015 ac_cv_prog_cc_g=yes
cannam@126 4016 else
cannam@126 4017 CFLAGS=""
cannam@126 4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 4019 /* end confdefs.h. */
cannam@126 4020
cannam@126 4021 int
cannam@126 4022 main ()
cannam@126 4023 {
cannam@126 4024
cannam@126 4025 ;
cannam@126 4026 return 0;
cannam@126 4027 }
cannam@126 4028 _ACEOF
cannam@126 4029 if ac_fn_c_try_compile "$LINENO"; then :
cannam@126 4030
cannam@126 4031 else
cannam@126 4032 ac_c_werror_flag=$ac_save_c_werror_flag
cannam@126 4033 CFLAGS="-g"
cannam@126 4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 4035 /* end confdefs.h. */
cannam@126 4036
cannam@126 4037 int
cannam@126 4038 main ()
cannam@126 4039 {
cannam@126 4040
cannam@126 4041 ;
cannam@126 4042 return 0;
cannam@126 4043 }
cannam@126 4044 _ACEOF
cannam@126 4045 if ac_fn_c_try_compile "$LINENO"; then :
cannam@126 4046 ac_cv_prog_cc_g=yes
cannam@126 4047 fi
cannam@126 4048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@126 4049 fi
cannam@126 4050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@126 4051 fi
cannam@126 4052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@126 4053 ac_c_werror_flag=$ac_save_c_werror_flag
cannam@126 4054 fi
cannam@126 4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cannam@126 4056 $as_echo "$ac_cv_prog_cc_g" >&6; }
cannam@126 4057 if test "$ac_test_CFLAGS" = set; then
cannam@126 4058 CFLAGS=$ac_save_CFLAGS
cannam@126 4059 elif test $ac_cv_prog_cc_g = yes; then
cannam@126 4060 if test "$GCC" = yes; then
cannam@126 4061 CFLAGS="-g -O2"
cannam@126 4062 else
cannam@126 4063 CFLAGS="-g"
cannam@126 4064 fi
cannam@126 4065 else
cannam@126 4066 if test "$GCC" = yes; then
cannam@126 4067 CFLAGS="-O2"
cannam@126 4068 else
cannam@126 4069 CFLAGS=
cannam@126 4070 fi
cannam@126 4071 fi
cannam@126 4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cannam@126 4073 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cannam@126 4074 if ${ac_cv_prog_cc_c89+:} false; then :
cannam@126 4075 $as_echo_n "(cached) " >&6
cannam@126 4076 else
cannam@126 4077 ac_cv_prog_cc_c89=no
cannam@126 4078 ac_save_CC=$CC
cannam@126 4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 4080 /* end confdefs.h. */
cannam@126 4081 #include <stdarg.h>
cannam@126 4082 #include <stdio.h>
cannam@126 4083 struct stat;
cannam@126 4084 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
cannam@126 4085 struct buf { int x; };
cannam@126 4086 FILE * (*rcsopen) (struct buf *, struct stat *, int);
cannam@126 4087 static char *e (p, i)
cannam@126 4088 char **p;
cannam@126 4089 int i;
cannam@126 4090 {
cannam@126 4091 return p[i];
cannam@126 4092 }
cannam@126 4093 static char *f (char * (*g) (char **, int), char **p, ...)
cannam@126 4094 {
cannam@126 4095 char *s;
cannam@126 4096 va_list v;
cannam@126 4097 va_start (v,p);
cannam@126 4098 s = g (p, va_arg (v,int));
cannam@126 4099 va_end (v);
cannam@126 4100 return s;
cannam@126 4101 }
cannam@126 4102
cannam@126 4103 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
cannam@126 4104 function prototypes and stuff, but not '\xHH' hex character constants.
cannam@126 4105 These don't provoke an error unfortunately, instead are silently treated
cannam@126 4106 as 'x'. The following induces an error, until -std is added to get
cannam@126 4107 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
cannam@126 4108 array size at least. It's necessary to write '\x00'==0 to get something
cannam@126 4109 that's true only with -std. */
cannam@126 4110 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
cannam@126 4111
cannam@126 4112 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
cannam@126 4113 inside strings and character constants. */
cannam@126 4114 #define FOO(x) 'x'
cannam@126 4115 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
cannam@126 4116
cannam@126 4117 int test (int i, double x);
cannam@126 4118 struct s1 {int (*f) (int a);};
cannam@126 4119 struct s2 {int (*f) (double a);};
cannam@126 4120 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
cannam@126 4121 int argc;
cannam@126 4122 char **argv;
cannam@126 4123 int
cannam@126 4124 main ()
cannam@126 4125 {
cannam@126 4126 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
cannam@126 4127 ;
cannam@126 4128 return 0;
cannam@126 4129 }
cannam@126 4130 _ACEOF
cannam@126 4131 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
cannam@126 4132 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
cannam@126 4133 do
cannam@126 4134 CC="$ac_save_CC $ac_arg"
cannam@126 4135 if ac_fn_c_try_compile "$LINENO"; then :
cannam@126 4136 ac_cv_prog_cc_c89=$ac_arg
cannam@126 4137 fi
cannam@126 4138 rm -f core conftest.err conftest.$ac_objext
cannam@126 4139 test "x$ac_cv_prog_cc_c89" != "xno" && break
cannam@126 4140 done
cannam@126 4141 rm -f conftest.$ac_ext
cannam@126 4142 CC=$ac_save_CC
cannam@126 4143
cannam@126 4144 fi
cannam@126 4145 # AC_CACHE_VAL
cannam@126 4146 case "x$ac_cv_prog_cc_c89" in
cannam@126 4147 x)
cannam@126 4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cannam@126 4149 $as_echo "none needed" >&6; } ;;
cannam@126 4150 xno)
cannam@126 4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cannam@126 4152 $as_echo "unsupported" >&6; } ;;
cannam@126 4153 *)
cannam@126 4154 CC="$CC $ac_cv_prog_cc_c89"
cannam@126 4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cannam@126 4156 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
cannam@126 4157 esac
cannam@126 4158 if test "x$ac_cv_prog_cc_c89" != xno; then :
cannam@126 4159
cannam@126 4160 fi
cannam@126 4161
cannam@126 4162 ac_ext=c
cannam@126 4163 ac_cpp='$CPP $CPPFLAGS'
cannam@126 4164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@126 4165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@126 4166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@126 4167
cannam@126 4168 ac_ext=c
cannam@126 4169 ac_cpp='$CPP $CPPFLAGS'
cannam@126 4170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@126 4171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@126 4172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@126 4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
cannam@126 4174 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
cannam@126 4175 if ${am_cv_prog_cc_c_o+:} false; then :
cannam@126 4176 $as_echo_n "(cached) " >&6
cannam@126 4177 else
cannam@126 4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 4179 /* end confdefs.h. */
cannam@126 4180
cannam@126 4181 int
cannam@126 4182 main ()
cannam@126 4183 {
cannam@126 4184
cannam@126 4185 ;
cannam@126 4186 return 0;
cannam@126 4187 }
cannam@126 4188 _ACEOF
cannam@126 4189 # Make sure it works both with $CC and with simple cc.
cannam@126 4190 # Following AC_PROG_CC_C_O, we do the test twice because some
cannam@126 4191 # compilers refuse to overwrite an existing .o file with -o,
cannam@126 4192 # though they will create one.
cannam@126 4193 am_cv_prog_cc_c_o=yes
cannam@126 4194 for am_i in 1 2; do
cannam@126 4195 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
cannam@126 4196 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
cannam@126 4197 ac_status=$?
cannam@126 4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@126 4199 (exit $ac_status); } \
cannam@126 4200 && test -f conftest2.$ac_objext; then
cannam@126 4201 : OK
cannam@126 4202 else
cannam@126 4203 am_cv_prog_cc_c_o=no
cannam@126 4204 break
cannam@126 4205 fi
cannam@126 4206 done
cannam@126 4207 rm -f core conftest*
cannam@126 4208 unset am_i
cannam@126 4209 fi
cannam@126 4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
cannam@126 4211 $as_echo "$am_cv_prog_cc_c_o" >&6; }
cannam@126 4212 if test "$am_cv_prog_cc_c_o" != yes; then
cannam@126 4213 # Losing compiler, so override with the script.
cannam@126 4214 # FIXME: It is wrong to rewrite CC.
cannam@126 4215 # But if we don't then we get into trouble of one sort or another.
cannam@126 4216 # A longer-term fix would be to have automake use am__CC in this case,
cannam@126 4217 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
cannam@126 4218 CC="$am_aux_dir/compile $CC"
cannam@126 4219 fi
cannam@126 4220 ac_ext=c
cannam@126 4221 ac_cpp='$CPP $CPPFLAGS'
cannam@126 4222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@126 4223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@126 4224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@126 4225
cannam@126 4226 DEPDIR="${am__leading_dot}deps"
cannam@126 4227
cannam@126 4228 ac_config_commands="$ac_config_commands depfiles"
cannam@126 4229
cannam@126 4230
cannam@126 4231 am_make=${MAKE-make}
cannam@126 4232 cat > confinc << 'END'
cannam@126 4233 am__doit:
cannam@126 4234 @echo this is the am__doit target
cannam@126 4235 .PHONY: am__doit
cannam@126 4236 END
cannam@126 4237 # If we don't find an include directive, just comment out the code.
cannam@126 4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
cannam@126 4239 $as_echo_n "checking for style of include used by $am_make... " >&6; }
cannam@126 4240 am__include="#"
cannam@126 4241 am__quote=
cannam@126 4242 _am_result=none
cannam@126 4243 # First try GNU make style include.
cannam@126 4244 echo "include confinc" > confmf
cannam@126 4245 # Ignore all kinds of additional output from 'make'.
cannam@126 4246 case `$am_make -s -f confmf 2> /dev/null` in #(
cannam@126 4247 *the\ am__doit\ target*)
cannam@126 4248 am__include=include
cannam@126 4249 am__quote=
cannam@126 4250 _am_result=GNU
cannam@126 4251 ;;
cannam@126 4252 esac
cannam@126 4253 # Now try BSD make style include.
cannam@126 4254 if test "$am__include" = "#"; then
cannam@126 4255 echo '.include "confinc"' > confmf
cannam@126 4256 case `$am_make -s -f confmf 2> /dev/null` in #(
cannam@126 4257 *the\ am__doit\ target*)
cannam@126 4258 am__include=.include
cannam@126 4259 am__quote="\""
cannam@126 4260 _am_result=BSD
cannam@126 4261 ;;
cannam@126 4262 esac
cannam@126 4263 fi
cannam@126 4264
cannam@126 4265
cannam@126 4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
cannam@126 4267 $as_echo "$_am_result" >&6; }
cannam@126 4268 rm -f confinc confmf
cannam@126 4269
cannam@126 4270 # Check whether --enable-dependency-tracking was given.
cannam@126 4271 if test "${enable_dependency_tracking+set}" = set; then :
cannam@126 4272 enableval=$enable_dependency_tracking;
cannam@126 4273 fi
cannam@126 4274
cannam@126 4275 if test "x$enable_dependency_tracking" != xno; then
cannam@126 4276 am_depcomp="$ac_aux_dir/depcomp"
cannam@126 4277 AMDEPBACKSLASH='\'
cannam@126 4278 am__nodep='_no'
cannam@126 4279 fi
cannam@126 4280 if test "x$enable_dependency_tracking" != xno; then
cannam@126 4281 AMDEP_TRUE=
cannam@126 4282 AMDEP_FALSE='#'
cannam@126 4283 else
cannam@126 4284 AMDEP_TRUE='#'
cannam@126 4285 AMDEP_FALSE=
cannam@126 4286 fi
cannam@126 4287
cannam@126 4288
cannam@126 4289
cannam@126 4290 depcc="$CC" am_compiler_list=
cannam@126 4291
cannam@126 4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cannam@126 4293 $as_echo_n "checking dependency style of $depcc... " >&6; }
cannam@126 4294 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cannam@126 4295 $as_echo_n "(cached) " >&6
cannam@126 4296 else
cannam@126 4297 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
cannam@126 4298 # We make a subdir and do the tests there. Otherwise we can end up
cannam@126 4299 # making bogus files that we don't know about and never remove. For
cannam@126 4300 # instance it was reported that on HP-UX the gcc test will end up
cannam@126 4301 # making a dummy file named 'D' -- because '-MD' means "put the output
cannam@126 4302 # in D".
cannam@126 4303 rm -rf conftest.dir
cannam@126 4304 mkdir conftest.dir
cannam@126 4305 # Copy depcomp to subdir because otherwise we won't find it if we're
cannam@126 4306 # using a relative directory.
cannam@126 4307 cp "$am_depcomp" conftest.dir
cannam@126 4308 cd conftest.dir
cannam@126 4309 # We will build objects and dependencies in a subdirectory because
cannam@126 4310 # it helps to detect inapplicable dependency modes. For instance
cannam@126 4311 # both Tru64's cc and ICC support -MD to output dependencies as a
cannam@126 4312 # side effect of compilation, but ICC will put the dependencies in
cannam@126 4313 # the current directory while Tru64 will put them in the object
cannam@126 4314 # directory.
cannam@126 4315 mkdir sub
cannam@126 4316
cannam@126 4317 am_cv_CC_dependencies_compiler_type=none
cannam@126 4318 if test "$am_compiler_list" = ""; then
cannam@126 4319 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
cannam@126 4320 fi
cannam@126 4321 am__universal=false
cannam@126 4322 case " $depcc " in #(
cannam@126 4323 *\ -arch\ *\ -arch\ *) am__universal=true ;;
cannam@126 4324 esac
cannam@126 4325
cannam@126 4326 for depmode in $am_compiler_list; do
cannam@126 4327 # Setup a source with many dependencies, because some compilers
cannam@126 4328 # like to wrap large dependency lists on column 80 (with \), and
cannam@126 4329 # we should not choose a depcomp mode which is confused by this.
cannam@126 4330 #
cannam@126 4331 # We need to recreate these files for each test, as the compiler may
cannam@126 4332 # overwrite some of them when testing with obscure command lines.
cannam@126 4333 # This happens at least with the AIX C compiler.
cannam@126 4334 : > sub/conftest.c
cannam@126 4335 for i in 1 2 3 4 5 6; do
cannam@126 4336 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cannam@126 4337 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
cannam@126 4338 # Solaris 10 /bin/sh.
cannam@126 4339 echo '/* dummy */' > sub/conftst$i.h
cannam@126 4340 done
cannam@126 4341 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
cannam@126 4342
cannam@126 4343 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cannam@126 4344 # mode. It turns out that the SunPro C++ compiler does not properly
cannam@126 4345 # handle '-M -o', and we need to detect this. Also, some Intel
cannam@126 4346 # versions had trouble with output in subdirs.
cannam@126 4347 am__obj=sub/conftest.${OBJEXT-o}
cannam@126 4348 am__minus_obj="-o $am__obj"
cannam@126 4349 case $depmode in
cannam@126 4350 gcc)
cannam@126 4351 # This depmode causes a compiler race in universal mode.
cannam@126 4352 test "$am__universal" = false || continue
cannam@126 4353 ;;
cannam@126 4354 nosideeffect)
cannam@126 4355 # After this tag, mechanisms are not by side-effect, so they'll
cannam@126 4356 # only be used when explicitly requested.
cannam@126 4357 if test "x$enable_dependency_tracking" = xyes; then
cannam@126 4358 continue
cannam@126 4359 else
cannam@126 4360 break
cannam@126 4361 fi
cannam@126 4362 ;;
cannam@126 4363 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cannam@126 4364 # This compiler won't grok '-c -o', but also, the minuso test has
cannam@126 4365 # not run yet. These depmodes are late enough in the game, and
cannam@126 4366 # so weak that their functioning should not be impacted.
cannam@126 4367 am__obj=conftest.${OBJEXT-o}
cannam@126 4368 am__minus_obj=
cannam@126 4369 ;;
cannam@126 4370 none) break ;;
cannam@126 4371 esac
cannam@126 4372 if depmode=$depmode \
cannam@126 4373 source=sub/conftest.c object=$am__obj \
cannam@126 4374 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cannam@126 4375 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
cannam@126 4376 >/dev/null 2>conftest.err &&
cannam@126 4377 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
cannam@126 4378 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cannam@126 4379 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
cannam@126 4380 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
cannam@126 4381 # icc doesn't choke on unknown options, it will just issue warnings
cannam@126 4382 # or remarks (even with -Werror). So we grep stderr for any message
cannam@126 4383 # that says an option was ignored or not supported.
cannam@126 4384 # When given -MP, icc 7.0 and 7.1 complain thusly:
cannam@126 4385 # icc: Command line warning: ignoring option '-M'; no argument required
cannam@126 4386 # The diagnosis changed in icc 8.0:
cannam@126 4387 # icc: Command line remark: option '-MP' not supported
cannam@126 4388 if (grep 'ignoring option' conftest.err ||
cannam@126 4389 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
cannam@126 4390 am_cv_CC_dependencies_compiler_type=$depmode
cannam@126 4391 break
cannam@126 4392 fi
cannam@126 4393 fi
cannam@126 4394 done
cannam@126 4395
cannam@126 4396 cd ..
cannam@126 4397 rm -rf conftest.dir
cannam@126 4398 else
cannam@126 4399 am_cv_CC_dependencies_compiler_type=none
cannam@126 4400 fi
cannam@126 4401
cannam@126 4402 fi
cannam@126 4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cannam@126 4404 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
cannam@126 4405 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
cannam@126 4406
cannam@126 4407 if
cannam@126 4408 test "x$enable_dependency_tracking" != xno \
cannam@126 4409 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
cannam@126 4410 am__fastdepCC_TRUE=
cannam@126 4411 am__fastdepCC_FALSE='#'
cannam@126 4412 else
cannam@126 4413 am__fastdepCC_TRUE='#'
cannam@126 4414 am__fastdepCC_FALSE=
cannam@126 4415 fi
cannam@126 4416
cannam@126 4417
cannam@126 4418
cannam@126 4419 ac_ext=cpp
cannam@126 4420 ac_cpp='$CXXCPP $CPPFLAGS'
cannam@126 4421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@126 4422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@126 4423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cannam@126 4424 if test -z "$CXX"; then
cannam@126 4425 if test -n "$CCC"; then
cannam@126 4426 CXX=$CCC
cannam@126 4427 else
cannam@126 4428 if test -n "$ac_tool_prefix"; then
cannam@126 4429 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
cannam@126 4430 do
cannam@126 4431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@126 4432 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@126 4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 4434 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 4435 if ${ac_cv_prog_CXX+:} false; then :
cannam@126 4436 $as_echo_n "(cached) " >&6
cannam@126 4437 else
cannam@126 4438 if test -n "$CXX"; then
cannam@126 4439 ac_cv_prog_CXX="$CXX" # Let the user override the test.
cannam@126 4440 else
cannam@126 4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 4442 for as_dir in $PATH
cannam@126 4443 do
cannam@126 4444 IFS=$as_save_IFS
cannam@126 4445 test -z "$as_dir" && as_dir=.
cannam@126 4446 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 4447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 4448 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cannam@126 4449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 4450 break 2
cannam@126 4451 fi
cannam@126 4452 done
cannam@126 4453 done
cannam@126 4454 IFS=$as_save_IFS
cannam@126 4455
cannam@126 4456 fi
cannam@126 4457 fi
cannam@126 4458 CXX=$ac_cv_prog_CXX
cannam@126 4459 if test -n "$CXX"; then
cannam@126 4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cannam@126 4461 $as_echo "$CXX" >&6; }
cannam@126 4462 else
cannam@126 4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 4464 $as_echo "no" >&6; }
cannam@126 4465 fi
cannam@126 4466
cannam@126 4467
cannam@126 4468 test -n "$CXX" && break
cannam@126 4469 done
cannam@126 4470 fi
cannam@126 4471 if test -z "$CXX"; then
cannam@126 4472 ac_ct_CXX=$CXX
cannam@126 4473 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
cannam@126 4474 do
cannam@126 4475 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@126 4476 set dummy $ac_prog; ac_word=$2
cannam@126 4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 4478 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 4479 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cannam@126 4480 $as_echo_n "(cached) " >&6
cannam@126 4481 else
cannam@126 4482 if test -n "$ac_ct_CXX"; then
cannam@126 4483 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
cannam@126 4484 else
cannam@126 4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 4486 for as_dir in $PATH
cannam@126 4487 do
cannam@126 4488 IFS=$as_save_IFS
cannam@126 4489 test -z "$as_dir" && as_dir=.
cannam@126 4490 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 4491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 4492 ac_cv_prog_ac_ct_CXX="$ac_prog"
cannam@126 4493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 4494 break 2
cannam@126 4495 fi
cannam@126 4496 done
cannam@126 4497 done
cannam@126 4498 IFS=$as_save_IFS
cannam@126 4499
cannam@126 4500 fi
cannam@126 4501 fi
cannam@126 4502 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
cannam@126 4503 if test -n "$ac_ct_CXX"; then
cannam@126 4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cannam@126 4505 $as_echo "$ac_ct_CXX" >&6; }
cannam@126 4506 else
cannam@126 4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 4508 $as_echo "no" >&6; }
cannam@126 4509 fi
cannam@126 4510
cannam@126 4511
cannam@126 4512 test -n "$ac_ct_CXX" && break
cannam@126 4513 done
cannam@126 4514
cannam@126 4515 if test "x$ac_ct_CXX" = x; then
cannam@126 4516 CXX="g++"
cannam@126 4517 else
cannam@126 4518 case $cross_compiling:$ac_tool_warned in
cannam@126 4519 yes:)
cannam@126 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@126 4521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@126 4522 ac_tool_warned=yes ;;
cannam@126 4523 esac
cannam@126 4524 CXX=$ac_ct_CXX
cannam@126 4525 fi
cannam@126 4526 fi
cannam@126 4527
cannam@126 4528 fi
cannam@126 4529 fi
cannam@126 4530 # Provide some information about the compiler.
cannam@126 4531 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cannam@126 4532 set X $ac_compile
cannam@126 4533 ac_compiler=$2
cannam@126 4534 for ac_option in --version -v -V -qversion; do
cannam@126 4535 { { ac_try="$ac_compiler $ac_option >&5"
cannam@126 4536 case "(($ac_try" in
cannam@126 4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@126 4538 *) ac_try_echo=$ac_try;;
cannam@126 4539 esac
cannam@126 4540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@126 4541 $as_echo "$ac_try_echo"; } >&5
cannam@126 4542 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cannam@126 4543 ac_status=$?
cannam@126 4544 if test -s conftest.err; then
cannam@126 4545 sed '10a\
cannam@126 4546 ... rest of stderr output deleted ...
cannam@126 4547 10q' conftest.err >conftest.er1
cannam@126 4548 cat conftest.er1 >&5
cannam@126 4549 fi
cannam@126 4550 rm -f conftest.er1 conftest.err
cannam@126 4551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 4552 test $ac_status = 0; }
cannam@126 4553 done
cannam@126 4554
cannam@126 4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cannam@126 4556 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cannam@126 4557 if ${ac_cv_cxx_compiler_gnu+:} false; then :
cannam@126 4558 $as_echo_n "(cached) " >&6
cannam@126 4559 else
cannam@126 4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 4561 /* end confdefs.h. */
cannam@126 4562
cannam@126 4563 int
cannam@126 4564 main ()
cannam@126 4565 {
cannam@126 4566 #ifndef __GNUC__
cannam@126 4567 choke me
cannam@126 4568 #endif
cannam@126 4569
cannam@126 4570 ;
cannam@126 4571 return 0;
cannam@126 4572 }
cannam@126 4573 _ACEOF
cannam@126 4574 if ac_fn_cxx_try_compile "$LINENO"; then :
cannam@126 4575 ac_compiler_gnu=yes
cannam@126 4576 else
cannam@126 4577 ac_compiler_gnu=no
cannam@126 4578 fi
cannam@126 4579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@126 4580 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
cannam@126 4581
cannam@126 4582 fi
cannam@126 4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cannam@126 4584 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
cannam@126 4585 if test $ac_compiler_gnu = yes; then
cannam@126 4586 GXX=yes
cannam@126 4587 else
cannam@126 4588 GXX=
cannam@126 4589 fi
cannam@126 4590 ac_test_CXXFLAGS=${CXXFLAGS+set}
cannam@126 4591 ac_save_CXXFLAGS=$CXXFLAGS
cannam@126 4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cannam@126 4593 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
cannam@126 4594 if ${ac_cv_prog_cxx_g+:} false; then :
cannam@126 4595 $as_echo_n "(cached) " >&6
cannam@126 4596 else
cannam@126 4597 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
cannam@126 4598 ac_cxx_werror_flag=yes
cannam@126 4599 ac_cv_prog_cxx_g=no
cannam@126 4600 CXXFLAGS="-g"
cannam@126 4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 4602 /* end confdefs.h. */
cannam@126 4603
cannam@126 4604 int
cannam@126 4605 main ()
cannam@126 4606 {
cannam@126 4607
cannam@126 4608 ;
cannam@126 4609 return 0;
cannam@126 4610 }
cannam@126 4611 _ACEOF
cannam@126 4612 if ac_fn_cxx_try_compile "$LINENO"; then :
cannam@126 4613 ac_cv_prog_cxx_g=yes
cannam@126 4614 else
cannam@126 4615 CXXFLAGS=""
cannam@126 4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 4617 /* end confdefs.h. */
cannam@126 4618
cannam@126 4619 int
cannam@126 4620 main ()
cannam@126 4621 {
cannam@126 4622
cannam@126 4623 ;
cannam@126 4624 return 0;
cannam@126 4625 }
cannam@126 4626 _ACEOF
cannam@126 4627 if ac_fn_cxx_try_compile "$LINENO"; then :
cannam@126 4628
cannam@126 4629 else
cannam@126 4630 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cannam@126 4631 CXXFLAGS="-g"
cannam@126 4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 4633 /* end confdefs.h. */
cannam@126 4634
cannam@126 4635 int
cannam@126 4636 main ()
cannam@126 4637 {
cannam@126 4638
cannam@126 4639 ;
cannam@126 4640 return 0;
cannam@126 4641 }
cannam@126 4642 _ACEOF
cannam@126 4643 if ac_fn_cxx_try_compile "$LINENO"; then :
cannam@126 4644 ac_cv_prog_cxx_g=yes
cannam@126 4645 fi
cannam@126 4646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@126 4647 fi
cannam@126 4648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@126 4649 fi
cannam@126 4650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@126 4651 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cannam@126 4652 fi
cannam@126 4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cannam@126 4654 $as_echo "$ac_cv_prog_cxx_g" >&6; }
cannam@126 4655 if test "$ac_test_CXXFLAGS" = set; then
cannam@126 4656 CXXFLAGS=$ac_save_CXXFLAGS
cannam@126 4657 elif test $ac_cv_prog_cxx_g = yes; then
cannam@126 4658 if test "$GXX" = yes; then
cannam@126 4659 CXXFLAGS="-g -O2"
cannam@126 4660 else
cannam@126 4661 CXXFLAGS="-g"
cannam@126 4662 fi
cannam@126 4663 else
cannam@126 4664 if test "$GXX" = yes; then
cannam@126 4665 CXXFLAGS="-O2"
cannam@126 4666 else
cannam@126 4667 CXXFLAGS=
cannam@126 4668 fi
cannam@126 4669 fi
cannam@126 4670 ac_ext=c
cannam@126 4671 ac_cpp='$CPP $CPPFLAGS'
cannam@126 4672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@126 4673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@126 4674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@126 4675
cannam@126 4676 depcc="$CXX" am_compiler_list=
cannam@126 4677
cannam@126 4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cannam@126 4679 $as_echo_n "checking dependency style of $depcc... " >&6; }
cannam@126 4680 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cannam@126 4681 $as_echo_n "(cached) " >&6
cannam@126 4682 else
cannam@126 4683 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
cannam@126 4684 # We make a subdir and do the tests there. Otherwise we can end up
cannam@126 4685 # making bogus files that we don't know about and never remove. For
cannam@126 4686 # instance it was reported that on HP-UX the gcc test will end up
cannam@126 4687 # making a dummy file named 'D' -- because '-MD' means "put the output
cannam@126 4688 # in D".
cannam@126 4689 rm -rf conftest.dir
cannam@126 4690 mkdir conftest.dir
cannam@126 4691 # Copy depcomp to subdir because otherwise we won't find it if we're
cannam@126 4692 # using a relative directory.
cannam@126 4693 cp "$am_depcomp" conftest.dir
cannam@126 4694 cd conftest.dir
cannam@126 4695 # We will build objects and dependencies in a subdirectory because
cannam@126 4696 # it helps to detect inapplicable dependency modes. For instance
cannam@126 4697 # both Tru64's cc and ICC support -MD to output dependencies as a
cannam@126 4698 # side effect of compilation, but ICC will put the dependencies in
cannam@126 4699 # the current directory while Tru64 will put them in the object
cannam@126 4700 # directory.
cannam@126 4701 mkdir sub
cannam@126 4702
cannam@126 4703 am_cv_CXX_dependencies_compiler_type=none
cannam@126 4704 if test "$am_compiler_list" = ""; then
cannam@126 4705 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
cannam@126 4706 fi
cannam@126 4707 am__universal=false
cannam@126 4708 case " $depcc " in #(
cannam@126 4709 *\ -arch\ *\ -arch\ *) am__universal=true ;;
cannam@126 4710 esac
cannam@126 4711
cannam@126 4712 for depmode in $am_compiler_list; do
cannam@126 4713 # Setup a source with many dependencies, because some compilers
cannam@126 4714 # like to wrap large dependency lists on column 80 (with \), and
cannam@126 4715 # we should not choose a depcomp mode which is confused by this.
cannam@126 4716 #
cannam@126 4717 # We need to recreate these files for each test, as the compiler may
cannam@126 4718 # overwrite some of them when testing with obscure command lines.
cannam@126 4719 # This happens at least with the AIX C compiler.
cannam@126 4720 : > sub/conftest.c
cannam@126 4721 for i in 1 2 3 4 5 6; do
cannam@126 4722 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cannam@126 4723 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
cannam@126 4724 # Solaris 10 /bin/sh.
cannam@126 4725 echo '/* dummy */' > sub/conftst$i.h
cannam@126 4726 done
cannam@126 4727 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
cannam@126 4728
cannam@126 4729 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cannam@126 4730 # mode. It turns out that the SunPro C++ compiler does not properly
cannam@126 4731 # handle '-M -o', and we need to detect this. Also, some Intel
cannam@126 4732 # versions had trouble with output in subdirs.
cannam@126 4733 am__obj=sub/conftest.${OBJEXT-o}
cannam@126 4734 am__minus_obj="-o $am__obj"
cannam@126 4735 case $depmode in
cannam@126 4736 gcc)
cannam@126 4737 # This depmode causes a compiler race in universal mode.
cannam@126 4738 test "$am__universal" = false || continue
cannam@126 4739 ;;
cannam@126 4740 nosideeffect)
cannam@126 4741 # After this tag, mechanisms are not by side-effect, so they'll
cannam@126 4742 # only be used when explicitly requested.
cannam@126 4743 if test "x$enable_dependency_tracking" = xyes; then
cannam@126 4744 continue
cannam@126 4745 else
cannam@126 4746 break
cannam@126 4747 fi
cannam@126 4748 ;;
cannam@126 4749 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cannam@126 4750 # This compiler won't grok '-c -o', but also, the minuso test has
cannam@126 4751 # not run yet. These depmodes are late enough in the game, and
cannam@126 4752 # so weak that their functioning should not be impacted.
cannam@126 4753 am__obj=conftest.${OBJEXT-o}
cannam@126 4754 am__minus_obj=
cannam@126 4755 ;;
cannam@126 4756 none) break ;;
cannam@126 4757 esac
cannam@126 4758 if depmode=$depmode \
cannam@126 4759 source=sub/conftest.c object=$am__obj \
cannam@126 4760 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cannam@126 4761 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
cannam@126 4762 >/dev/null 2>conftest.err &&
cannam@126 4763 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
cannam@126 4764 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cannam@126 4765 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
cannam@126 4766 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
cannam@126 4767 # icc doesn't choke on unknown options, it will just issue warnings
cannam@126 4768 # or remarks (even with -Werror). So we grep stderr for any message
cannam@126 4769 # that says an option was ignored or not supported.
cannam@126 4770 # When given -MP, icc 7.0 and 7.1 complain thusly:
cannam@126 4771 # icc: Command line warning: ignoring option '-M'; no argument required
cannam@126 4772 # The diagnosis changed in icc 8.0:
cannam@126 4773 # icc: Command line remark: option '-MP' not supported
cannam@126 4774 if (grep 'ignoring option' conftest.err ||
cannam@126 4775 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
cannam@126 4776 am_cv_CXX_dependencies_compiler_type=$depmode
cannam@126 4777 break
cannam@126 4778 fi
cannam@126 4779 fi
cannam@126 4780 done
cannam@126 4781
cannam@126 4782 cd ..
cannam@126 4783 rm -rf conftest.dir
cannam@126 4784 else
cannam@126 4785 am_cv_CXX_dependencies_compiler_type=none
cannam@126 4786 fi
cannam@126 4787
cannam@126 4788 fi
cannam@126 4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cannam@126 4790 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
cannam@126 4791 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
cannam@126 4792
cannam@126 4793 if
cannam@126 4794 test "x$enable_dependency_tracking" != xno \
cannam@126 4795 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
cannam@126 4796 am__fastdepCXX_TRUE=
cannam@126 4797 am__fastdepCXX_FALSE='#'
cannam@126 4798 else
cannam@126 4799 am__fastdepCXX_TRUE='#'
cannam@126 4800 am__fastdepCXX_FALSE=
cannam@126 4801 fi
cannam@126 4802
cannam@126 4803
cannam@126 4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cannam@126 4805 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
cannam@126 4806 if ${ac_cv_path_SED+:} false; then :
cannam@126 4807 $as_echo_n "(cached) " >&6
cannam@126 4808 else
cannam@126 4809 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
cannam@126 4810 for ac_i in 1 2 3 4 5 6 7; do
cannam@126 4811 ac_script="$ac_script$as_nl$ac_script"
cannam@126 4812 done
cannam@126 4813 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cannam@126 4814 { ac_script=; unset ac_script;}
cannam@126 4815 if test -z "$SED"; then
cannam@126 4816 ac_path_SED_found=false
cannam@126 4817 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@126 4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 4819 for as_dir in $PATH
cannam@126 4820 do
cannam@126 4821 IFS=$as_save_IFS
cannam@126 4822 test -z "$as_dir" && as_dir=.
cannam@126 4823 for ac_prog in sed gsed; do
cannam@126 4824 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 4825 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cannam@126 4826 as_fn_executable_p "$ac_path_SED" || continue
cannam@126 4827 # Check for GNU ac_path_SED and select it if it is found.
cannam@126 4828 # Check for GNU $ac_path_SED
cannam@126 4829 case `"$ac_path_SED" --version 2>&1` in
cannam@126 4830 *GNU*)
cannam@126 4831 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
cannam@126 4832 *)
cannam@126 4833 ac_count=0
cannam@126 4834 $as_echo_n 0123456789 >"conftest.in"
cannam@126 4835 while :
cannam@126 4836 do
cannam@126 4837 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@126 4838 mv "conftest.tmp" "conftest.in"
cannam@126 4839 cp "conftest.in" "conftest.nl"
cannam@126 4840 $as_echo '' >> "conftest.nl"
cannam@126 4841 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@126 4842 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@126 4843 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@126 4844 if test $ac_count -gt ${ac_path_SED_max-0}; then
cannam@126 4845 # Best one so far, save it but keep looking for a better one
cannam@126 4846 ac_cv_path_SED="$ac_path_SED"
cannam@126 4847 ac_path_SED_max=$ac_count
cannam@126 4848 fi
cannam@126 4849 # 10*(2^10) chars as input seems more than enough
cannam@126 4850 test $ac_count -gt 10 && break
cannam@126 4851 done
cannam@126 4852 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@126 4853 esac
cannam@126 4854
cannam@126 4855 $ac_path_SED_found && break 3
cannam@126 4856 done
cannam@126 4857 done
cannam@126 4858 done
cannam@126 4859 IFS=$as_save_IFS
cannam@126 4860 if test -z "$ac_cv_path_SED"; then
cannam@126 4861 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cannam@126 4862 fi
cannam@126 4863 else
cannam@126 4864 ac_cv_path_SED=$SED
cannam@126 4865 fi
cannam@126 4866
cannam@126 4867 fi
cannam@126 4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cannam@126 4869 $as_echo "$ac_cv_path_SED" >&6; }
cannam@126 4870 SED="$ac_cv_path_SED"
cannam@126 4871 rm -f conftest.sed
cannam@126 4872
cannam@126 4873
cannam@126 4874 # Do not check for F77.
cannam@126 4875
cannam@126 4876 case `pwd` in
cannam@126 4877 *\ * | *\ *)
cannam@126 4878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cannam@126 4879 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
cannam@126 4880 esac
cannam@126 4881
cannam@126 4882
cannam@126 4883
cannam@126 4884 macro_version='2.4.6'
cannam@126 4885 macro_revision='2.4.6'
cannam@126 4886
cannam@126 4887
cannam@126 4888
cannam@126 4889
cannam@126 4890
cannam@126 4891
cannam@126 4892
cannam@126 4893
cannam@126 4894
cannam@126 4895
cannam@126 4896
cannam@126 4897
cannam@126 4898
cannam@126 4899 ltmain=$ac_aux_dir/ltmain.sh
cannam@126 4900
cannam@126 4901 # Backslashify metacharacters that are still active within
cannam@126 4902 # double-quoted strings.
cannam@126 4903 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
cannam@126 4904
cannam@126 4905 # Same as above, but do not quote variable references.
cannam@126 4906 double_quote_subst='s/\(["`\\]\)/\\\1/g'
cannam@126 4907
cannam@126 4908 # Sed substitution to delay expansion of an escaped shell variable in a
cannam@126 4909 # double_quote_subst'ed string.
cannam@126 4910 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
cannam@126 4911
cannam@126 4912 # Sed substitution to delay expansion of an escaped single quote.
cannam@126 4913 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
cannam@126 4914
cannam@126 4915 # Sed substitution to avoid accidental globbing in evaled expressions
cannam@126 4916 no_glob_subst='s/\*/\\\*/g'
cannam@126 4917
cannam@126 4918 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@126 4919 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
cannam@126 4920 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
cannam@126 4921
cannam@126 4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
cannam@126 4923 $as_echo_n "checking how to print strings... " >&6; }
cannam@126 4924 # Test print first, because it will be a builtin if present.
cannam@126 4925 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cannam@126 4926 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
cannam@126 4927 ECHO='print -r --'
cannam@126 4928 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
cannam@126 4929 ECHO='printf %s\n'
cannam@126 4930 else
cannam@126 4931 # Use this function as a fallback that always works.
cannam@126 4932 func_fallback_echo ()
cannam@126 4933 {
cannam@126 4934 eval 'cat <<_LTECHO_EOF
cannam@126 4935 $1
cannam@126 4936 _LTECHO_EOF'
cannam@126 4937 }
cannam@126 4938 ECHO='func_fallback_echo'
cannam@126 4939 fi
cannam@126 4940
cannam@126 4941 # func_echo_all arg...
cannam@126 4942 # Invoke $ECHO with all args, space-separated.
cannam@126 4943 func_echo_all ()
cannam@126 4944 {
cannam@126 4945 $ECHO ""
cannam@126 4946 }
cannam@126 4947
cannam@126 4948 case $ECHO in
cannam@126 4949 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
cannam@126 4950 $as_echo "printf" >&6; } ;;
cannam@126 4951 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
cannam@126 4952 $as_echo "print -r" >&6; } ;;
cannam@126 4953 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
cannam@126 4954 $as_echo "cat" >&6; } ;;
cannam@126 4955 esac
cannam@126 4956
cannam@126 4957
cannam@126 4958
cannam@126 4959
cannam@126 4960
cannam@126 4961
cannam@126 4962
cannam@126 4963
cannam@126 4964
cannam@126 4965
cannam@126 4966
cannam@126 4967
cannam@126 4968
cannam@126 4969
cannam@126 4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cannam@126 4971 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
cannam@126 4972 if ${ac_cv_path_SED+:} false; then :
cannam@126 4973 $as_echo_n "(cached) " >&6
cannam@126 4974 else
cannam@126 4975 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
cannam@126 4976 for ac_i in 1 2 3 4 5 6 7; do
cannam@126 4977 ac_script="$ac_script$as_nl$ac_script"
cannam@126 4978 done
cannam@126 4979 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cannam@126 4980 { ac_script=; unset ac_script;}
cannam@126 4981 if test -z "$SED"; then
cannam@126 4982 ac_path_SED_found=false
cannam@126 4983 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@126 4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 4985 for as_dir in $PATH
cannam@126 4986 do
cannam@126 4987 IFS=$as_save_IFS
cannam@126 4988 test -z "$as_dir" && as_dir=.
cannam@126 4989 for ac_prog in sed gsed; do
cannam@126 4990 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 4991 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cannam@126 4992 as_fn_executable_p "$ac_path_SED" || continue
cannam@126 4993 # Check for GNU ac_path_SED and select it if it is found.
cannam@126 4994 # Check for GNU $ac_path_SED
cannam@126 4995 case `"$ac_path_SED" --version 2>&1` in
cannam@126 4996 *GNU*)
cannam@126 4997 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
cannam@126 4998 *)
cannam@126 4999 ac_count=0
cannam@126 5000 $as_echo_n 0123456789 >"conftest.in"
cannam@126 5001 while :
cannam@126 5002 do
cannam@126 5003 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@126 5004 mv "conftest.tmp" "conftest.in"
cannam@126 5005 cp "conftest.in" "conftest.nl"
cannam@126 5006 $as_echo '' >> "conftest.nl"
cannam@126 5007 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@126 5008 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@126 5009 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@126 5010 if test $ac_count -gt ${ac_path_SED_max-0}; then
cannam@126 5011 # Best one so far, save it but keep looking for a better one
cannam@126 5012 ac_cv_path_SED="$ac_path_SED"
cannam@126 5013 ac_path_SED_max=$ac_count
cannam@126 5014 fi
cannam@126 5015 # 10*(2^10) chars as input seems more than enough
cannam@126 5016 test $ac_count -gt 10 && break
cannam@126 5017 done
cannam@126 5018 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@126 5019 esac
cannam@126 5020
cannam@126 5021 $ac_path_SED_found && break 3
cannam@126 5022 done
cannam@126 5023 done
cannam@126 5024 done
cannam@126 5025 IFS=$as_save_IFS
cannam@126 5026 if test -z "$ac_cv_path_SED"; then
cannam@126 5027 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cannam@126 5028 fi
cannam@126 5029 else
cannam@126 5030 ac_cv_path_SED=$SED
cannam@126 5031 fi
cannam@126 5032
cannam@126 5033 fi
cannam@126 5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cannam@126 5035 $as_echo "$ac_cv_path_SED" >&6; }
cannam@126 5036 SED="$ac_cv_path_SED"
cannam@126 5037 rm -f conftest.sed
cannam@126 5038
cannam@126 5039 test -z "$SED" && SED=sed
cannam@126 5040 Xsed="$SED -e 1s/^X//"
cannam@126 5041
cannam@126 5042
cannam@126 5043
cannam@126 5044
cannam@126 5045
cannam@126 5046
cannam@126 5047
cannam@126 5048
cannam@126 5049
cannam@126 5050
cannam@126 5051
cannam@126 5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
cannam@126 5053 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cannam@126 5054 if ${ac_cv_path_GREP+:} false; then :
cannam@126 5055 $as_echo_n "(cached) " >&6
cannam@126 5056 else
cannam@126 5057 if test -z "$GREP"; then
cannam@126 5058 ac_path_GREP_found=false
cannam@126 5059 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@126 5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 5061 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
cannam@126 5062 do
cannam@126 5063 IFS=$as_save_IFS
cannam@126 5064 test -z "$as_dir" && as_dir=.
cannam@126 5065 for ac_prog in grep ggrep; do
cannam@126 5066 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 5067 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cannam@126 5068 as_fn_executable_p "$ac_path_GREP" || continue
cannam@126 5069 # Check for GNU ac_path_GREP and select it if it is found.
cannam@126 5070 # Check for GNU $ac_path_GREP
cannam@126 5071 case `"$ac_path_GREP" --version 2>&1` in
cannam@126 5072 *GNU*)
cannam@126 5073 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
cannam@126 5074 *)
cannam@126 5075 ac_count=0
cannam@126 5076 $as_echo_n 0123456789 >"conftest.in"
cannam@126 5077 while :
cannam@126 5078 do
cannam@126 5079 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@126 5080 mv "conftest.tmp" "conftest.in"
cannam@126 5081 cp "conftest.in" "conftest.nl"
cannam@126 5082 $as_echo 'GREP' >> "conftest.nl"
cannam@126 5083 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@126 5084 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@126 5085 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@126 5086 if test $ac_count -gt ${ac_path_GREP_max-0}; then
cannam@126 5087 # Best one so far, save it but keep looking for a better one
cannam@126 5088 ac_cv_path_GREP="$ac_path_GREP"
cannam@126 5089 ac_path_GREP_max=$ac_count
cannam@126 5090 fi
cannam@126 5091 # 10*(2^10) chars as input seems more than enough
cannam@126 5092 test $ac_count -gt 10 && break
cannam@126 5093 done
cannam@126 5094 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@126 5095 esac
cannam@126 5096
cannam@126 5097 $ac_path_GREP_found && break 3
cannam@126 5098 done
cannam@126 5099 done
cannam@126 5100 done
cannam@126 5101 IFS=$as_save_IFS
cannam@126 5102 if test -z "$ac_cv_path_GREP"; then
cannam@126 5103 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cannam@126 5104 fi
cannam@126 5105 else
cannam@126 5106 ac_cv_path_GREP=$GREP
cannam@126 5107 fi
cannam@126 5108
cannam@126 5109 fi
cannam@126 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
cannam@126 5111 $as_echo "$ac_cv_path_GREP" >&6; }
cannam@126 5112 GREP="$ac_cv_path_GREP"
cannam@126 5113
cannam@126 5114
cannam@126 5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
cannam@126 5116 $as_echo_n "checking for egrep... " >&6; }
cannam@126 5117 if ${ac_cv_path_EGREP+:} false; then :
cannam@126 5118 $as_echo_n "(cached) " >&6
cannam@126 5119 else
cannam@126 5120 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
cannam@126 5121 then ac_cv_path_EGREP="$GREP -E"
cannam@126 5122 else
cannam@126 5123 if test -z "$EGREP"; then
cannam@126 5124 ac_path_EGREP_found=false
cannam@126 5125 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@126 5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 5127 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
cannam@126 5128 do
cannam@126 5129 IFS=$as_save_IFS
cannam@126 5130 test -z "$as_dir" && as_dir=.
cannam@126 5131 for ac_prog in egrep; do
cannam@126 5132 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 5133 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cannam@126 5134 as_fn_executable_p "$ac_path_EGREP" || continue
cannam@126 5135 # Check for GNU ac_path_EGREP and select it if it is found.
cannam@126 5136 # Check for GNU $ac_path_EGREP
cannam@126 5137 case `"$ac_path_EGREP" --version 2>&1` in
cannam@126 5138 *GNU*)
cannam@126 5139 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
cannam@126 5140 *)
cannam@126 5141 ac_count=0
cannam@126 5142 $as_echo_n 0123456789 >"conftest.in"
cannam@126 5143 while :
cannam@126 5144 do
cannam@126 5145 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@126 5146 mv "conftest.tmp" "conftest.in"
cannam@126 5147 cp "conftest.in" "conftest.nl"
cannam@126 5148 $as_echo 'EGREP' >> "conftest.nl"
cannam@126 5149 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@126 5150 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@126 5151 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@126 5152 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
cannam@126 5153 # Best one so far, save it but keep looking for a better one
cannam@126 5154 ac_cv_path_EGREP="$ac_path_EGREP"
cannam@126 5155 ac_path_EGREP_max=$ac_count
cannam@126 5156 fi
cannam@126 5157 # 10*(2^10) chars as input seems more than enough
cannam@126 5158 test $ac_count -gt 10 && break
cannam@126 5159 done
cannam@126 5160 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@126 5161 esac
cannam@126 5162
cannam@126 5163 $ac_path_EGREP_found && break 3
cannam@126 5164 done
cannam@126 5165 done
cannam@126 5166 done
cannam@126 5167 IFS=$as_save_IFS
cannam@126 5168 if test -z "$ac_cv_path_EGREP"; then
cannam@126 5169 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cannam@126 5170 fi
cannam@126 5171 else
cannam@126 5172 ac_cv_path_EGREP=$EGREP
cannam@126 5173 fi
cannam@126 5174
cannam@126 5175 fi
cannam@126 5176 fi
cannam@126 5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
cannam@126 5178 $as_echo "$ac_cv_path_EGREP" >&6; }
cannam@126 5179 EGREP="$ac_cv_path_EGREP"
cannam@126 5180
cannam@126 5181
cannam@126 5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cannam@126 5183 $as_echo_n "checking for fgrep... " >&6; }
cannam@126 5184 if ${ac_cv_path_FGREP+:} false; then :
cannam@126 5185 $as_echo_n "(cached) " >&6
cannam@126 5186 else
cannam@126 5187 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
cannam@126 5188 then ac_cv_path_FGREP="$GREP -F"
cannam@126 5189 else
cannam@126 5190 if test -z "$FGREP"; then
cannam@126 5191 ac_path_FGREP_found=false
cannam@126 5192 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@126 5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 5194 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
cannam@126 5195 do
cannam@126 5196 IFS=$as_save_IFS
cannam@126 5197 test -z "$as_dir" && as_dir=.
cannam@126 5198 for ac_prog in fgrep; do
cannam@126 5199 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 5200 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cannam@126 5201 as_fn_executable_p "$ac_path_FGREP" || continue
cannam@126 5202 # Check for GNU ac_path_FGREP and select it if it is found.
cannam@126 5203 # Check for GNU $ac_path_FGREP
cannam@126 5204 case `"$ac_path_FGREP" --version 2>&1` in
cannam@126 5205 *GNU*)
cannam@126 5206 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
cannam@126 5207 *)
cannam@126 5208 ac_count=0
cannam@126 5209 $as_echo_n 0123456789 >"conftest.in"
cannam@126 5210 while :
cannam@126 5211 do
cannam@126 5212 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@126 5213 mv "conftest.tmp" "conftest.in"
cannam@126 5214 cp "conftest.in" "conftest.nl"
cannam@126 5215 $as_echo 'FGREP' >> "conftest.nl"
cannam@126 5216 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@126 5217 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@126 5218 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@126 5219 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
cannam@126 5220 # Best one so far, save it but keep looking for a better one
cannam@126 5221 ac_cv_path_FGREP="$ac_path_FGREP"
cannam@126 5222 ac_path_FGREP_max=$ac_count
cannam@126 5223 fi
cannam@126 5224 # 10*(2^10) chars as input seems more than enough
cannam@126 5225 test $ac_count -gt 10 && break
cannam@126 5226 done
cannam@126 5227 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@126 5228 esac
cannam@126 5229
cannam@126 5230 $ac_path_FGREP_found && break 3
cannam@126 5231 done
cannam@126 5232 done
cannam@126 5233 done
cannam@126 5234 IFS=$as_save_IFS
cannam@126 5235 if test -z "$ac_cv_path_FGREP"; then
cannam@126 5236 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cannam@126 5237 fi
cannam@126 5238 else
cannam@126 5239 ac_cv_path_FGREP=$FGREP
cannam@126 5240 fi
cannam@126 5241
cannam@126 5242 fi
cannam@126 5243 fi
cannam@126 5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cannam@126 5245 $as_echo "$ac_cv_path_FGREP" >&6; }
cannam@126 5246 FGREP="$ac_cv_path_FGREP"
cannam@126 5247
cannam@126 5248
cannam@126 5249 test -z "$GREP" && GREP=grep
cannam@126 5250
cannam@126 5251
cannam@126 5252
cannam@126 5253
cannam@126 5254
cannam@126 5255
cannam@126 5256
cannam@126 5257
cannam@126 5258
cannam@126 5259
cannam@126 5260
cannam@126 5261
cannam@126 5262
cannam@126 5263
cannam@126 5264
cannam@126 5265
cannam@126 5266
cannam@126 5267
cannam@126 5268
cannam@126 5269 # Check whether --with-gnu-ld was given.
cannam@126 5270 if test "${with_gnu_ld+set}" = set; then :
cannam@126 5271 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
cannam@126 5272 else
cannam@126 5273 with_gnu_ld=no
cannam@126 5274 fi
cannam@126 5275
cannam@126 5276 ac_prog=ld
cannam@126 5277 if test yes = "$GCC"; then
cannam@126 5278 # Check if gcc -print-prog-name=ld gives a path.
cannam@126 5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cannam@126 5280 $as_echo_n "checking for ld used by $CC... " >&6; }
cannam@126 5281 case $host in
cannam@126 5282 *-*-mingw*)
cannam@126 5283 # gcc leaves a trailing carriage return, which upsets mingw
cannam@126 5284 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
cannam@126 5285 *)
cannam@126 5286 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
cannam@126 5287 esac
cannam@126 5288 case $ac_prog in
cannam@126 5289 # Accept absolute paths.
cannam@126 5290 [\\/]* | ?:[\\/]*)
cannam@126 5291 re_direlt='/[^/][^/]*/\.\./'
cannam@126 5292 # Canonicalize the pathname of ld
cannam@126 5293 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
cannam@126 5294 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
cannam@126 5295 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cannam@126 5296 done
cannam@126 5297 test -z "$LD" && LD=$ac_prog
cannam@126 5298 ;;
cannam@126 5299 "")
cannam@126 5300 # If it fails, then pretend we aren't using GCC.
cannam@126 5301 ac_prog=ld
cannam@126 5302 ;;
cannam@126 5303 *)
cannam@126 5304 # If it is relative, then search for the first ld in PATH.
cannam@126 5305 with_gnu_ld=unknown
cannam@126 5306 ;;
cannam@126 5307 esac
cannam@126 5308 elif test yes = "$with_gnu_ld"; then
cannam@126 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cannam@126 5310 $as_echo_n "checking for GNU ld... " >&6; }
cannam@126 5311 else
cannam@126 5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cannam@126 5313 $as_echo_n "checking for non-GNU ld... " >&6; }
cannam@126 5314 fi
cannam@126 5315 if ${lt_cv_path_LD+:} false; then :
cannam@126 5316 $as_echo_n "(cached) " >&6
cannam@126 5317 else
cannam@126 5318 if test -z "$LD"; then
cannam@126 5319 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
cannam@126 5320 for ac_dir in $PATH; do
cannam@126 5321 IFS=$lt_save_ifs
cannam@126 5322 test -z "$ac_dir" && ac_dir=.
cannam@126 5323 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
cannam@126 5324 lt_cv_path_LD=$ac_dir/$ac_prog
cannam@126 5325 # Check to see if the program is GNU ld. I'd rather use --version,
cannam@126 5326 # but apparently some variants of GNU ld only accept -v.
cannam@126 5327 # Break only if it was the GNU/non-GNU ld that we prefer.
cannam@126 5328 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
cannam@126 5329 *GNU* | *'with BFD'*)
cannam@126 5330 test no != "$with_gnu_ld" && break
cannam@126 5331 ;;
cannam@126 5332 *)
cannam@126 5333 test yes != "$with_gnu_ld" && break
cannam@126 5334 ;;
cannam@126 5335 esac
cannam@126 5336 fi
cannam@126 5337 done
cannam@126 5338 IFS=$lt_save_ifs
cannam@126 5339 else
cannam@126 5340 lt_cv_path_LD=$LD # Let the user override the test with a path.
cannam@126 5341 fi
cannam@126 5342 fi
cannam@126 5343
cannam@126 5344 LD=$lt_cv_path_LD
cannam@126 5345 if test -n "$LD"; then
cannam@126 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cannam@126 5347 $as_echo "$LD" >&6; }
cannam@126 5348 else
cannam@126 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 5350 $as_echo "no" >&6; }
cannam@126 5351 fi
cannam@126 5352 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cannam@126 5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cannam@126 5354 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cannam@126 5355 if ${lt_cv_prog_gnu_ld+:} false; then :
cannam@126 5356 $as_echo_n "(cached) " >&6
cannam@126 5357 else
cannam@126 5358 # I'd rather use --version here, but apparently some GNU lds only accept -v.
cannam@126 5359 case `$LD -v 2>&1 </dev/null` in
cannam@126 5360 *GNU* | *'with BFD'*)
cannam@126 5361 lt_cv_prog_gnu_ld=yes
cannam@126 5362 ;;
cannam@126 5363 *)
cannam@126 5364 lt_cv_prog_gnu_ld=no
cannam@126 5365 ;;
cannam@126 5366 esac
cannam@126 5367 fi
cannam@126 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cannam@126 5369 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
cannam@126 5370 with_gnu_ld=$lt_cv_prog_gnu_ld
cannam@126 5371
cannam@126 5372
cannam@126 5373
cannam@126 5374
cannam@126 5375
cannam@126 5376
cannam@126 5377
cannam@126 5378
cannam@126 5379
cannam@126 5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cannam@126 5381 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cannam@126 5382 if ${lt_cv_path_NM+:} false; then :
cannam@126 5383 $as_echo_n "(cached) " >&6
cannam@126 5384 else
cannam@126 5385 if test -n "$NM"; then
cannam@126 5386 # Let the user override the test.
cannam@126 5387 lt_cv_path_NM=$NM
cannam@126 5388 else
cannam@126 5389 lt_nm_to_check=${ac_tool_prefix}nm
cannam@126 5390 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
cannam@126 5391 lt_nm_to_check="$lt_nm_to_check nm"
cannam@126 5392 fi
cannam@126 5393 for lt_tmp_nm in $lt_nm_to_check; do
cannam@126 5394 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
cannam@126 5395 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
cannam@126 5396 IFS=$lt_save_ifs
cannam@126 5397 test -z "$ac_dir" && ac_dir=.
cannam@126 5398 tmp_nm=$ac_dir/$lt_tmp_nm
cannam@126 5399 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
cannam@126 5400 # Check to see if the nm accepts a BSD-compat flag.
cannam@126 5401 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
cannam@126 5402 # nm: unknown option "B" ignored
cannam@126 5403 # Tru64's nm complains that /dev/null is an invalid object file
cannam@126 5404 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
cannam@126 5405 case $build_os in
cannam@126 5406 mingw*) lt_bad_file=conftest.nm/nofile ;;
cannam@126 5407 *) lt_bad_file=/dev/null ;;
cannam@126 5408 esac
cannam@126 5409 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
cannam@126 5410 *$lt_bad_file* | *'Invalid file or object type'*)
cannam@126 5411 lt_cv_path_NM="$tmp_nm -B"
cannam@126 5412 break 2
cannam@126 5413 ;;
cannam@126 5414 *)
cannam@126 5415 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
cannam@126 5416 */dev/null*)
cannam@126 5417 lt_cv_path_NM="$tmp_nm -p"
cannam@126 5418 break 2
cannam@126 5419 ;;
cannam@126 5420 *)
cannam@126 5421 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
cannam@126 5422 continue # so that we can try to find one that supports BSD flags
cannam@126 5423 ;;
cannam@126 5424 esac
cannam@126 5425 ;;
cannam@126 5426 esac
cannam@126 5427 fi
cannam@126 5428 done
cannam@126 5429 IFS=$lt_save_ifs
cannam@126 5430 done
cannam@126 5431 : ${lt_cv_path_NM=no}
cannam@126 5432 fi
cannam@126 5433 fi
cannam@126 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cannam@126 5435 $as_echo "$lt_cv_path_NM" >&6; }
cannam@126 5436 if test no != "$lt_cv_path_NM"; then
cannam@126 5437 NM=$lt_cv_path_NM
cannam@126 5438 else
cannam@126 5439 # Didn't find any BSD compatible name lister, look for dumpbin.
cannam@126 5440 if test -n "$DUMPBIN"; then :
cannam@126 5441 # Let the user override the test.
cannam@126 5442 else
cannam@126 5443 if test -n "$ac_tool_prefix"; then
cannam@126 5444 for ac_prog in dumpbin "link -dump"
cannam@126 5445 do
cannam@126 5446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@126 5447 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@126 5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 5449 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 5450 if ${ac_cv_prog_DUMPBIN+:} false; then :
cannam@126 5451 $as_echo_n "(cached) " >&6
cannam@126 5452 else
cannam@126 5453 if test -n "$DUMPBIN"; then
cannam@126 5454 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
cannam@126 5455 else
cannam@126 5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 5457 for as_dir in $PATH
cannam@126 5458 do
cannam@126 5459 IFS=$as_save_IFS
cannam@126 5460 test -z "$as_dir" && as_dir=.
cannam@126 5461 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 5462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 5463 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cannam@126 5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 5465 break 2
cannam@126 5466 fi
cannam@126 5467 done
cannam@126 5468 done
cannam@126 5469 IFS=$as_save_IFS
cannam@126 5470
cannam@126 5471 fi
cannam@126 5472 fi
cannam@126 5473 DUMPBIN=$ac_cv_prog_DUMPBIN
cannam@126 5474 if test -n "$DUMPBIN"; then
cannam@126 5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cannam@126 5476 $as_echo "$DUMPBIN" >&6; }
cannam@126 5477 else
cannam@126 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 5479 $as_echo "no" >&6; }
cannam@126 5480 fi
cannam@126 5481
cannam@126 5482
cannam@126 5483 test -n "$DUMPBIN" && break
cannam@126 5484 done
cannam@126 5485 fi
cannam@126 5486 if test -z "$DUMPBIN"; then
cannam@126 5487 ac_ct_DUMPBIN=$DUMPBIN
cannam@126 5488 for ac_prog in dumpbin "link -dump"
cannam@126 5489 do
cannam@126 5490 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@126 5491 set dummy $ac_prog; ac_word=$2
cannam@126 5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 5493 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 5494 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cannam@126 5495 $as_echo_n "(cached) " >&6
cannam@126 5496 else
cannam@126 5497 if test -n "$ac_ct_DUMPBIN"; then
cannam@126 5498 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
cannam@126 5499 else
cannam@126 5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 5501 for as_dir in $PATH
cannam@126 5502 do
cannam@126 5503 IFS=$as_save_IFS
cannam@126 5504 test -z "$as_dir" && as_dir=.
cannam@126 5505 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 5506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 5507 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cannam@126 5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 5509 break 2
cannam@126 5510 fi
cannam@126 5511 done
cannam@126 5512 done
cannam@126 5513 IFS=$as_save_IFS
cannam@126 5514
cannam@126 5515 fi
cannam@126 5516 fi
cannam@126 5517 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
cannam@126 5518 if test -n "$ac_ct_DUMPBIN"; then
cannam@126 5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cannam@126 5520 $as_echo "$ac_ct_DUMPBIN" >&6; }
cannam@126 5521 else
cannam@126 5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 5523 $as_echo "no" >&6; }
cannam@126 5524 fi
cannam@126 5525
cannam@126 5526
cannam@126 5527 test -n "$ac_ct_DUMPBIN" && break
cannam@126 5528 done
cannam@126 5529
cannam@126 5530 if test "x$ac_ct_DUMPBIN" = x; then
cannam@126 5531 DUMPBIN=":"
cannam@126 5532 else
cannam@126 5533 case $cross_compiling:$ac_tool_warned in
cannam@126 5534 yes:)
cannam@126 5535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@126 5536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@126 5537 ac_tool_warned=yes ;;
cannam@126 5538 esac
cannam@126 5539 DUMPBIN=$ac_ct_DUMPBIN
cannam@126 5540 fi
cannam@126 5541 fi
cannam@126 5542
cannam@126 5543 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
cannam@126 5544 *COFF*)
cannam@126 5545 DUMPBIN="$DUMPBIN -symbols -headers"
cannam@126 5546 ;;
cannam@126 5547 *)
cannam@126 5548 DUMPBIN=:
cannam@126 5549 ;;
cannam@126 5550 esac
cannam@126 5551 fi
cannam@126 5552
cannam@126 5553 if test : != "$DUMPBIN"; then
cannam@126 5554 NM=$DUMPBIN
cannam@126 5555 fi
cannam@126 5556 fi
cannam@126 5557 test -z "$NM" && NM=nm
cannam@126 5558
cannam@126 5559
cannam@126 5560
cannam@126 5561
cannam@126 5562
cannam@126 5563
cannam@126 5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cannam@126 5565 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
cannam@126 5566 if ${lt_cv_nm_interface+:} false; then :
cannam@126 5567 $as_echo_n "(cached) " >&6
cannam@126 5568 else
cannam@126 5569 lt_cv_nm_interface="BSD nm"
cannam@126 5570 echo "int some_variable = 0;" > conftest.$ac_ext
cannam@126 5571 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cannam@126 5572 (eval "$ac_compile" 2>conftest.err)
cannam@126 5573 cat conftest.err >&5
cannam@126 5574 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cannam@126 5575 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
cannam@126 5576 cat conftest.err >&5
cannam@126 5577 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cannam@126 5578 cat conftest.out >&5
cannam@126 5579 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
cannam@126 5580 lt_cv_nm_interface="MS dumpbin"
cannam@126 5581 fi
cannam@126 5582 rm -f conftest*
cannam@126 5583 fi
cannam@126 5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cannam@126 5585 $as_echo "$lt_cv_nm_interface" >&6; }
cannam@126 5586
cannam@126 5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cannam@126 5588 $as_echo_n "checking whether ln -s works... " >&6; }
cannam@126 5589 LN_S=$as_ln_s
cannam@126 5590 if test "$LN_S" = "ln -s"; then
cannam@126 5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@126 5592 $as_echo "yes" >&6; }
cannam@126 5593 else
cannam@126 5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cannam@126 5595 $as_echo "no, using $LN_S" >&6; }
cannam@126 5596 fi
cannam@126 5597
cannam@126 5598 # find the maximum length of command line arguments
cannam@126 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cannam@126 5600 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
cannam@126 5601 if ${lt_cv_sys_max_cmd_len+:} false; then :
cannam@126 5602 $as_echo_n "(cached) " >&6
cannam@126 5603 else
cannam@126 5604 i=0
cannam@126 5605 teststring=ABCD
cannam@126 5606
cannam@126 5607 case $build_os in
cannam@126 5608 msdosdjgpp*)
cannam@126 5609 # On DJGPP, this test can blow up pretty badly due to problems in libc
cannam@126 5610 # (any single argument exceeding 2000 bytes causes a buffer overrun
cannam@126 5611 # during glob expansion). Even if it were fixed, the result of this
cannam@126 5612 # check would be larger than it should be.
cannam@126 5613 lt_cv_sys_max_cmd_len=12288; # 12K is about right
cannam@126 5614 ;;
cannam@126 5615
cannam@126 5616 gnu*)
cannam@126 5617 # Under GNU Hurd, this test is not required because there is
cannam@126 5618 # no limit to the length of command line arguments.
cannam@126 5619 # Libtool will interpret -1 as no limit whatsoever
cannam@126 5620 lt_cv_sys_max_cmd_len=-1;
cannam@126 5621 ;;
cannam@126 5622
cannam@126 5623 cygwin* | mingw* | cegcc*)
cannam@126 5624 # On Win9x/ME, this test blows up -- it succeeds, but takes
cannam@126 5625 # about 5 minutes as the teststring grows exponentially.
cannam@126 5626 # Worse, since 9x/ME are not pre-emptively multitasking,
cannam@126 5627 # you end up with a "frozen" computer, even though with patience
cannam@126 5628 # the test eventually succeeds (with a max line length of 256k).
cannam@126 5629 # Instead, let's just punt: use the minimum linelength reported by
cannam@126 5630 # all of the supported platforms: 8192 (on NT/2K/XP).
cannam@126 5631 lt_cv_sys_max_cmd_len=8192;
cannam@126 5632 ;;
cannam@126 5633
cannam@126 5634 mint*)
cannam@126 5635 # On MiNT this can take a long time and run out of memory.
cannam@126 5636 lt_cv_sys_max_cmd_len=8192;
cannam@126 5637 ;;
cannam@126 5638
cannam@126 5639 amigaos*)
cannam@126 5640 # On AmigaOS with pdksh, this test takes hours, literally.
cannam@126 5641 # So we just punt and use a minimum line length of 8192.
cannam@126 5642 lt_cv_sys_max_cmd_len=8192;
cannam@126 5643 ;;
cannam@126 5644
cannam@126 5645 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
cannam@126 5646 # This has been around since 386BSD, at least. Likely further.
cannam@126 5647 if test -x /sbin/sysctl; then
cannam@126 5648 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
cannam@126 5649 elif test -x /usr/sbin/sysctl; then
cannam@126 5650 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
cannam@126 5651 else
cannam@126 5652 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cannam@126 5653 fi
cannam@126 5654 # And add a safety zone
cannam@126 5655 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
cannam@126 5656 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
cannam@126 5657 ;;
cannam@126 5658
cannam@126 5659 interix*)
cannam@126 5660 # We know the value 262144 and hardcode it with a safety zone (like BSD)
cannam@126 5661 lt_cv_sys_max_cmd_len=196608
cannam@126 5662 ;;
cannam@126 5663
cannam@126 5664 os2*)
cannam@126 5665 # The test takes a long time on OS/2.
cannam@126 5666 lt_cv_sys_max_cmd_len=8192
cannam@126 5667 ;;
cannam@126 5668
cannam@126 5669 osf*)
cannam@126 5670 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
cannam@126 5671 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
cannam@126 5672 # nice to cause kernel panics so lets avoid the loop below.
cannam@126 5673 # First set a reasonable default.
cannam@126 5674 lt_cv_sys_max_cmd_len=16384
cannam@126 5675 #
cannam@126 5676 if test -x /sbin/sysconfig; then
cannam@126 5677 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
cannam@126 5678 *1*) lt_cv_sys_max_cmd_len=-1 ;;
cannam@126 5679 esac
cannam@126 5680 fi
cannam@126 5681 ;;
cannam@126 5682 sco3.2v5*)
cannam@126 5683 lt_cv_sys_max_cmd_len=102400
cannam@126 5684 ;;
cannam@126 5685 sysv5* | sco5v6* | sysv4.2uw2*)
cannam@126 5686 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
cannam@126 5687 if test -n "$kargmax"; then
cannam@126 5688 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
cannam@126 5689 else
cannam@126 5690 lt_cv_sys_max_cmd_len=32768
cannam@126 5691 fi
cannam@126 5692 ;;
cannam@126 5693 *)
cannam@126 5694 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
cannam@126 5695 if test -n "$lt_cv_sys_max_cmd_len" && \
cannam@126 5696 test undefined != "$lt_cv_sys_max_cmd_len"; then
cannam@126 5697 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
cannam@126 5698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
cannam@126 5699 else
cannam@126 5700 # Make teststring a little bigger before we do anything with it.
cannam@126 5701 # a 1K string should be a reasonable start.
cannam@126 5702 for i in 1 2 3 4 5 6 7 8; do
cannam@126 5703 teststring=$teststring$teststring
cannam@126 5704 done
cannam@126 5705 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
cannam@126 5706 # If test is not a shell built-in, we'll probably end up computing a
cannam@126 5707 # maximum length that is only half of the actual maximum length, but
cannam@126 5708 # we can't tell.
cannam@126 5709 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
cannam@126 5710 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cannam@126 5711 test 17 != "$i" # 1/2 MB should be enough
cannam@126 5712 do
cannam@126 5713 i=`expr $i + 1`
cannam@126 5714 teststring=$teststring$teststring
cannam@126 5715 done
cannam@126 5716 # Only check the string length outside the loop.
cannam@126 5717 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
cannam@126 5718 teststring=
cannam@126 5719 # Add a significant safety factor because C++ compilers can tack on
cannam@126 5720 # massive amounts of additional arguments before passing them to the
cannam@126 5721 # linker. It appears as though 1/2 is a usable value.
cannam@126 5722 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
cannam@126 5723 fi
cannam@126 5724 ;;
cannam@126 5725 esac
cannam@126 5726
cannam@126 5727 fi
cannam@126 5728
cannam@126 5729 if test -n "$lt_cv_sys_max_cmd_len"; then
cannam@126 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cannam@126 5731 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
cannam@126 5732 else
cannam@126 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cannam@126 5734 $as_echo "none" >&6; }
cannam@126 5735 fi
cannam@126 5736 max_cmd_len=$lt_cv_sys_max_cmd_len
cannam@126 5737
cannam@126 5738
cannam@126 5739
cannam@126 5740
cannam@126 5741
cannam@126 5742
cannam@126 5743 : ${CP="cp -f"}
cannam@126 5744 : ${MV="mv -f"}
cannam@126 5745 : ${RM="rm -f"}
cannam@126 5746
cannam@126 5747 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
cannam@126 5748 lt_unset=unset
cannam@126 5749 else
cannam@126 5750 lt_unset=false
cannam@126 5751 fi
cannam@126 5752
cannam@126 5753
cannam@126 5754
cannam@126 5755
cannam@126 5756
cannam@126 5757 # test EBCDIC or ASCII
cannam@126 5758 case `echo X|tr X '\101'` in
cannam@126 5759 A) # ASCII based system
cannam@126 5760 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
cannam@126 5761 lt_SP2NL='tr \040 \012'
cannam@126 5762 lt_NL2SP='tr \015\012 \040\040'
cannam@126 5763 ;;
cannam@126 5764 *) # EBCDIC based system
cannam@126 5765 lt_SP2NL='tr \100 \n'
cannam@126 5766 lt_NL2SP='tr \r\n \100\100'
cannam@126 5767 ;;
cannam@126 5768 esac
cannam@126 5769
cannam@126 5770
cannam@126 5771
cannam@126 5772
cannam@126 5773
cannam@126 5774
cannam@126 5775
cannam@126 5776
cannam@126 5777
cannam@126 5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
cannam@126 5779 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
cannam@126 5780 if ${lt_cv_to_host_file_cmd+:} false; then :
cannam@126 5781 $as_echo_n "(cached) " >&6
cannam@126 5782 else
cannam@126 5783 case $host in
cannam@126 5784 *-*-mingw* )
cannam@126 5785 case $build in
cannam@126 5786 *-*-mingw* ) # actually msys
cannam@126 5787 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
cannam@126 5788 ;;
cannam@126 5789 *-*-cygwin* )
cannam@126 5790 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
cannam@126 5791 ;;
cannam@126 5792 * ) # otherwise, assume *nix
cannam@126 5793 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
cannam@126 5794 ;;
cannam@126 5795 esac
cannam@126 5796 ;;
cannam@126 5797 *-*-cygwin* )
cannam@126 5798 case $build in
cannam@126 5799 *-*-mingw* ) # actually msys
cannam@126 5800 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
cannam@126 5801 ;;
cannam@126 5802 *-*-cygwin* )
cannam@126 5803 lt_cv_to_host_file_cmd=func_convert_file_noop
cannam@126 5804 ;;
cannam@126 5805 * ) # otherwise, assume *nix
cannam@126 5806 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
cannam@126 5807 ;;
cannam@126 5808 esac
cannam@126 5809 ;;
cannam@126 5810 * ) # unhandled hosts (and "normal" native builds)
cannam@126 5811 lt_cv_to_host_file_cmd=func_convert_file_noop
cannam@126 5812 ;;
cannam@126 5813 esac
cannam@126 5814
cannam@126 5815 fi
cannam@126 5816
cannam@126 5817 to_host_file_cmd=$lt_cv_to_host_file_cmd
cannam@126 5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
cannam@126 5819 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
cannam@126 5820
cannam@126 5821
cannam@126 5822
cannam@126 5823
cannam@126 5824
cannam@126 5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
cannam@126 5826 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
cannam@126 5827 if ${lt_cv_to_tool_file_cmd+:} false; then :
cannam@126 5828 $as_echo_n "(cached) " >&6
cannam@126 5829 else
cannam@126 5830 #assume ordinary cross tools, or native build.
cannam@126 5831 lt_cv_to_tool_file_cmd=func_convert_file_noop
cannam@126 5832 case $host in
cannam@126 5833 *-*-mingw* )
cannam@126 5834 case $build in
cannam@126 5835 *-*-mingw* ) # actually msys
cannam@126 5836 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
cannam@126 5837 ;;
cannam@126 5838 esac
cannam@126 5839 ;;
cannam@126 5840 esac
cannam@126 5841
cannam@126 5842 fi
cannam@126 5843
cannam@126 5844 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
cannam@126 5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
cannam@126 5846 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
cannam@126 5847
cannam@126 5848
cannam@126 5849
cannam@126 5850
cannam@126 5851
cannam@126 5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cannam@126 5853 $as_echo_n "checking for $LD option to reload object files... " >&6; }
cannam@126 5854 if ${lt_cv_ld_reload_flag+:} false; then :
cannam@126 5855 $as_echo_n "(cached) " >&6
cannam@126 5856 else
cannam@126 5857 lt_cv_ld_reload_flag='-r'
cannam@126 5858 fi
cannam@126 5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cannam@126 5860 $as_echo "$lt_cv_ld_reload_flag" >&6; }
cannam@126 5861 reload_flag=$lt_cv_ld_reload_flag
cannam@126 5862 case $reload_flag in
cannam@126 5863 "" | " "*) ;;
cannam@126 5864 *) reload_flag=" $reload_flag" ;;
cannam@126 5865 esac
cannam@126 5866 reload_cmds='$LD$reload_flag -o $output$reload_objs'
cannam@126 5867 case $host_os in
cannam@126 5868 cygwin* | mingw* | pw32* | cegcc*)
cannam@126 5869 if test yes != "$GCC"; then
cannam@126 5870 reload_cmds=false
cannam@126 5871 fi
cannam@126 5872 ;;
cannam@126 5873 darwin*)
cannam@126 5874 if test yes = "$GCC"; then
cannam@126 5875 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
cannam@126 5876 else
cannam@126 5877 reload_cmds='$LD$reload_flag -o $output$reload_objs'
cannam@126 5878 fi
cannam@126 5879 ;;
cannam@126 5880 esac
cannam@126 5881
cannam@126 5882
cannam@126 5883
cannam@126 5884
cannam@126 5885
cannam@126 5886
cannam@126 5887
cannam@126 5888
cannam@126 5889
cannam@126 5890 if test -n "$ac_tool_prefix"; then
cannam@126 5891 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
cannam@126 5892 set dummy ${ac_tool_prefix}objdump; ac_word=$2
cannam@126 5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 5894 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 5895 if ${ac_cv_prog_OBJDUMP+:} false; then :
cannam@126 5896 $as_echo_n "(cached) " >&6
cannam@126 5897 else
cannam@126 5898 if test -n "$OBJDUMP"; then
cannam@126 5899 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
cannam@126 5900 else
cannam@126 5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 5902 for as_dir in $PATH
cannam@126 5903 do
cannam@126 5904 IFS=$as_save_IFS
cannam@126 5905 test -z "$as_dir" && as_dir=.
cannam@126 5906 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 5907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 5908 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cannam@126 5909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 5910 break 2
cannam@126 5911 fi
cannam@126 5912 done
cannam@126 5913 done
cannam@126 5914 IFS=$as_save_IFS
cannam@126 5915
cannam@126 5916 fi
cannam@126 5917 fi
cannam@126 5918 OBJDUMP=$ac_cv_prog_OBJDUMP
cannam@126 5919 if test -n "$OBJDUMP"; then
cannam@126 5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cannam@126 5921 $as_echo "$OBJDUMP" >&6; }
cannam@126 5922 else
cannam@126 5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 5924 $as_echo "no" >&6; }
cannam@126 5925 fi
cannam@126 5926
cannam@126 5927
cannam@126 5928 fi
cannam@126 5929 if test -z "$ac_cv_prog_OBJDUMP"; then
cannam@126 5930 ac_ct_OBJDUMP=$OBJDUMP
cannam@126 5931 # Extract the first word of "objdump", so it can be a program name with args.
cannam@126 5932 set dummy objdump; ac_word=$2
cannam@126 5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 5934 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 5935 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cannam@126 5936 $as_echo_n "(cached) " >&6
cannam@126 5937 else
cannam@126 5938 if test -n "$ac_ct_OBJDUMP"; then
cannam@126 5939 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
cannam@126 5940 else
cannam@126 5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 5942 for as_dir in $PATH
cannam@126 5943 do
cannam@126 5944 IFS=$as_save_IFS
cannam@126 5945 test -z "$as_dir" && as_dir=.
cannam@126 5946 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 5947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 5948 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cannam@126 5949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 5950 break 2
cannam@126 5951 fi
cannam@126 5952 done
cannam@126 5953 done
cannam@126 5954 IFS=$as_save_IFS
cannam@126 5955
cannam@126 5956 fi
cannam@126 5957 fi
cannam@126 5958 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
cannam@126 5959 if test -n "$ac_ct_OBJDUMP"; then
cannam@126 5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cannam@126 5961 $as_echo "$ac_ct_OBJDUMP" >&6; }
cannam@126 5962 else
cannam@126 5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 5964 $as_echo "no" >&6; }
cannam@126 5965 fi
cannam@126 5966
cannam@126 5967 if test "x$ac_ct_OBJDUMP" = x; then
cannam@126 5968 OBJDUMP="false"
cannam@126 5969 else
cannam@126 5970 case $cross_compiling:$ac_tool_warned in
cannam@126 5971 yes:)
cannam@126 5972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@126 5973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@126 5974 ac_tool_warned=yes ;;
cannam@126 5975 esac
cannam@126 5976 OBJDUMP=$ac_ct_OBJDUMP
cannam@126 5977 fi
cannam@126 5978 else
cannam@126 5979 OBJDUMP="$ac_cv_prog_OBJDUMP"
cannam@126 5980 fi
cannam@126 5981
cannam@126 5982 test -z "$OBJDUMP" && OBJDUMP=objdump
cannam@126 5983
cannam@126 5984
cannam@126 5985
cannam@126 5986
cannam@126 5987
cannam@126 5988
cannam@126 5989
cannam@126 5990
cannam@126 5991
cannam@126 5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cannam@126 5993 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
cannam@126 5994 if ${lt_cv_deplibs_check_method+:} false; then :
cannam@126 5995 $as_echo_n "(cached) " >&6
cannam@126 5996 else
cannam@126 5997 lt_cv_file_magic_cmd='$MAGIC_CMD'
cannam@126 5998 lt_cv_file_magic_test_file=
cannam@126 5999 lt_cv_deplibs_check_method='unknown'
cannam@126 6000 # Need to set the preceding variable on all platforms that support
cannam@126 6001 # interlibrary dependencies.
cannam@126 6002 # 'none' -- dependencies not supported.
cannam@126 6003 # 'unknown' -- same as none, but documents that we really don't know.
cannam@126 6004 # 'pass_all' -- all dependencies passed with no checks.
cannam@126 6005 # 'test_compile' -- check by making test program.
cannam@126 6006 # 'file_magic [[regex]]' -- check by looking for files in library path
cannam@126 6007 # that responds to the $file_magic_cmd with a given extended regex.
cannam@126 6008 # If you have 'file' or equivalent on your system and you're not sure
cannam@126 6009 # whether 'pass_all' will *always* work, you probably want this one.
cannam@126 6010
cannam@126 6011 case $host_os in
cannam@126 6012 aix[4-9]*)
cannam@126 6013 lt_cv_deplibs_check_method=pass_all
cannam@126 6014 ;;
cannam@126 6015
cannam@126 6016 beos*)
cannam@126 6017 lt_cv_deplibs_check_method=pass_all
cannam@126 6018 ;;
cannam@126 6019
cannam@126 6020 bsdi[45]*)
cannam@126 6021 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
cannam@126 6022 lt_cv_file_magic_cmd='/usr/bin/file -L'
cannam@126 6023 lt_cv_file_magic_test_file=/shlib/libc.so
cannam@126 6024 ;;
cannam@126 6025
cannam@126 6026 cygwin*)
cannam@126 6027 # func_win32_libid is a shell function defined in ltmain.sh
cannam@126 6028 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
cannam@126 6029 lt_cv_file_magic_cmd='func_win32_libid'
cannam@126 6030 ;;
cannam@126 6031
cannam@126 6032 mingw* | pw32*)
cannam@126 6033 # Base MSYS/MinGW do not provide the 'file' command needed by
cannam@126 6034 # func_win32_libid shell function, so use a weaker test based on 'objdump',
cannam@126 6035 # unless we find 'file', for example because we are cross-compiling.
cannam@126 6036 if ( file / ) >/dev/null 2>&1; then
cannam@126 6037 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
cannam@126 6038 lt_cv_file_magic_cmd='func_win32_libid'
cannam@126 6039 else
cannam@126 6040 # Keep this pattern in sync with the one in func_win32_libid.
cannam@126 6041 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
cannam@126 6042 lt_cv_file_magic_cmd='$OBJDUMP -f'
cannam@126 6043 fi
cannam@126 6044 ;;
cannam@126 6045
cannam@126 6046 cegcc*)
cannam@126 6047 # use the weaker test based on 'objdump'. See mingw*.
cannam@126 6048 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
cannam@126 6049 lt_cv_file_magic_cmd='$OBJDUMP -f'
cannam@126 6050 ;;
cannam@126 6051
cannam@126 6052 darwin* | rhapsody*)
cannam@126 6053 lt_cv_deplibs_check_method=pass_all
cannam@126 6054 ;;
cannam@126 6055
cannam@126 6056 freebsd* | dragonfly*)
cannam@126 6057 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
cannam@126 6058 case $host_cpu in
cannam@126 6059 i*86 )
cannam@126 6060 # Not sure whether the presence of OpenBSD here was a mistake.
cannam@126 6061 # Let's accept both of them until this is cleared up.
cannam@126 6062 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
cannam@126 6063 lt_cv_file_magic_cmd=/usr/bin/file
cannam@126 6064 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
cannam@126 6065 ;;
cannam@126 6066 esac
cannam@126 6067 else
cannam@126 6068 lt_cv_deplibs_check_method=pass_all
cannam@126 6069 fi
cannam@126 6070 ;;
cannam@126 6071
cannam@126 6072 haiku*)
cannam@126 6073 lt_cv_deplibs_check_method=pass_all
cannam@126 6074 ;;
cannam@126 6075
cannam@126 6076 hpux10.20* | hpux11*)
cannam@126 6077 lt_cv_file_magic_cmd=/usr/bin/file
cannam@126 6078 case $host_cpu in
cannam@126 6079 ia64*)
cannam@126 6080 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
cannam@126 6081 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
cannam@126 6082 ;;
cannam@126 6083 hppa*64*)
cannam@126 6084 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@126 6085 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
cannam@126 6086 ;;
cannam@126 6087 *)
cannam@126 6088 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
cannam@126 6089 lt_cv_file_magic_test_file=/usr/lib/libc.sl
cannam@126 6090 ;;
cannam@126 6091 esac
cannam@126 6092 ;;
cannam@126 6093
cannam@126 6094 interix[3-9]*)
cannam@126 6095 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
cannam@126 6096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
cannam@126 6097 ;;
cannam@126 6098
cannam@126 6099 irix5* | irix6* | nonstopux*)
cannam@126 6100 case $LD in
cannam@126 6101 *-32|*"-32 ") libmagic=32-bit;;
cannam@126 6102 *-n32|*"-n32 ") libmagic=N32;;
cannam@126 6103 *-64|*"-64 ") libmagic=64-bit;;
cannam@126 6104 *) libmagic=never-match;;
cannam@126 6105 esac
cannam@126 6106 lt_cv_deplibs_check_method=pass_all
cannam@126 6107 ;;
cannam@126 6108
cannam@126 6109 # This must be glibc/ELF.
cannam@126 6110 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cannam@126 6111 lt_cv_deplibs_check_method=pass_all
cannam@126 6112 ;;
cannam@126 6113
cannam@126 6114 netbsd* | netbsdelf*-gnu)
cannam@126 6115 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
cannam@126 6116 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cannam@126 6117 else
cannam@126 6118 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cannam@126 6119 fi
cannam@126 6120 ;;
cannam@126 6121
cannam@126 6122 newos6*)
cannam@126 6123 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
cannam@126 6124 lt_cv_file_magic_cmd=/usr/bin/file
cannam@126 6125 lt_cv_file_magic_test_file=/usr/lib/libnls.so
cannam@126 6126 ;;
cannam@126 6127
cannam@126 6128 *nto* | *qnx*)
cannam@126 6129 lt_cv_deplibs_check_method=pass_all
cannam@126 6130 ;;
cannam@126 6131
cannam@126 6132 openbsd* | bitrig*)
cannam@126 6133 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
cannam@126 6134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
cannam@126 6135 else
cannam@126 6136 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cannam@126 6137 fi
cannam@126 6138 ;;
cannam@126 6139
cannam@126 6140 osf3* | osf4* | osf5*)
cannam@126 6141 lt_cv_deplibs_check_method=pass_all
cannam@126 6142 ;;
cannam@126 6143
cannam@126 6144 rdos*)
cannam@126 6145 lt_cv_deplibs_check_method=pass_all
cannam@126 6146 ;;
cannam@126 6147
cannam@126 6148 solaris*)
cannam@126 6149 lt_cv_deplibs_check_method=pass_all
cannam@126 6150 ;;
cannam@126 6151
cannam@126 6152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
cannam@126 6153 lt_cv_deplibs_check_method=pass_all
cannam@126 6154 ;;
cannam@126 6155
cannam@126 6156 sysv4 | sysv4.3*)
cannam@126 6157 case $host_vendor in
cannam@126 6158 motorola)
cannam@126 6159 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@126 6160 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
cannam@126 6161 ;;
cannam@126 6162 ncr)
cannam@126 6163 lt_cv_deplibs_check_method=pass_all
cannam@126 6164 ;;
cannam@126 6165 sequent)
cannam@126 6166 lt_cv_file_magic_cmd='/bin/file'
cannam@126 6167 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
cannam@126 6168 ;;
cannam@126 6169 sni)
cannam@126 6170 lt_cv_file_magic_cmd='/bin/file'
cannam@126 6171 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
cannam@126 6172 lt_cv_file_magic_test_file=/lib/libc.so
cannam@126 6173 ;;
cannam@126 6174 siemens)
cannam@126 6175 lt_cv_deplibs_check_method=pass_all
cannam@126 6176 ;;
cannam@126 6177 pc)
cannam@126 6178 lt_cv_deplibs_check_method=pass_all
cannam@126 6179 ;;
cannam@126 6180 esac
cannam@126 6181 ;;
cannam@126 6182
cannam@126 6183 tpf*)
cannam@126 6184 lt_cv_deplibs_check_method=pass_all
cannam@126 6185 ;;
cannam@126 6186 os2*)
cannam@126 6187 lt_cv_deplibs_check_method=pass_all
cannam@126 6188 ;;
cannam@126 6189 esac
cannam@126 6190
cannam@126 6191 fi
cannam@126 6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cannam@126 6193 $as_echo "$lt_cv_deplibs_check_method" >&6; }
cannam@126 6194
cannam@126 6195 file_magic_glob=
cannam@126 6196 want_nocaseglob=no
cannam@126 6197 if test "$build" = "$host"; then
cannam@126 6198 case $host_os in
cannam@126 6199 mingw* | pw32*)
cannam@126 6200 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
cannam@126 6201 want_nocaseglob=yes
cannam@126 6202 else
cannam@126 6203 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
cannam@126 6204 fi
cannam@126 6205 ;;
cannam@126 6206 esac
cannam@126 6207 fi
cannam@126 6208
cannam@126 6209 file_magic_cmd=$lt_cv_file_magic_cmd
cannam@126 6210 deplibs_check_method=$lt_cv_deplibs_check_method
cannam@126 6211 test -z "$deplibs_check_method" && deplibs_check_method=unknown
cannam@126 6212
cannam@126 6213
cannam@126 6214
cannam@126 6215
cannam@126 6216
cannam@126 6217
cannam@126 6218
cannam@126 6219
cannam@126 6220
cannam@126 6221
cannam@126 6222
cannam@126 6223
cannam@126 6224
cannam@126 6225
cannam@126 6226
cannam@126 6227
cannam@126 6228
cannam@126 6229
cannam@126 6230
cannam@126 6231
cannam@126 6232
cannam@126 6233
cannam@126 6234 if test -n "$ac_tool_prefix"; then
cannam@126 6235 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
cannam@126 6236 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cannam@126 6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 6238 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 6239 if ${ac_cv_prog_DLLTOOL+:} false; then :
cannam@126 6240 $as_echo_n "(cached) " >&6
cannam@126 6241 else
cannam@126 6242 if test -n "$DLLTOOL"; then
cannam@126 6243 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
cannam@126 6244 else
cannam@126 6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 6246 for as_dir in $PATH
cannam@126 6247 do
cannam@126 6248 IFS=$as_save_IFS
cannam@126 6249 test -z "$as_dir" && as_dir=.
cannam@126 6250 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 6251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 6252 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cannam@126 6253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 6254 break 2
cannam@126 6255 fi
cannam@126 6256 done
cannam@126 6257 done
cannam@126 6258 IFS=$as_save_IFS
cannam@126 6259
cannam@126 6260 fi
cannam@126 6261 fi
cannam@126 6262 DLLTOOL=$ac_cv_prog_DLLTOOL
cannam@126 6263 if test -n "$DLLTOOL"; then
cannam@126 6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cannam@126 6265 $as_echo "$DLLTOOL" >&6; }
cannam@126 6266 else
cannam@126 6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 6268 $as_echo "no" >&6; }
cannam@126 6269 fi
cannam@126 6270
cannam@126 6271
cannam@126 6272 fi
cannam@126 6273 if test -z "$ac_cv_prog_DLLTOOL"; then
cannam@126 6274 ac_ct_DLLTOOL=$DLLTOOL
cannam@126 6275 # Extract the first word of "dlltool", so it can be a program name with args.
cannam@126 6276 set dummy dlltool; ac_word=$2
cannam@126 6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 6278 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 6279 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cannam@126 6280 $as_echo_n "(cached) " >&6
cannam@126 6281 else
cannam@126 6282 if test -n "$ac_ct_DLLTOOL"; then
cannam@126 6283 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
cannam@126 6284 else
cannam@126 6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 6286 for as_dir in $PATH
cannam@126 6287 do
cannam@126 6288 IFS=$as_save_IFS
cannam@126 6289 test -z "$as_dir" && as_dir=.
cannam@126 6290 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 6291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 6292 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cannam@126 6293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 6294 break 2
cannam@126 6295 fi
cannam@126 6296 done
cannam@126 6297 done
cannam@126 6298 IFS=$as_save_IFS
cannam@126 6299
cannam@126 6300 fi
cannam@126 6301 fi
cannam@126 6302 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
cannam@126 6303 if test -n "$ac_ct_DLLTOOL"; then
cannam@126 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cannam@126 6305 $as_echo "$ac_ct_DLLTOOL" >&6; }
cannam@126 6306 else
cannam@126 6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 6308 $as_echo "no" >&6; }
cannam@126 6309 fi
cannam@126 6310
cannam@126 6311 if test "x$ac_ct_DLLTOOL" = x; then
cannam@126 6312 DLLTOOL="false"
cannam@126 6313 else
cannam@126 6314 case $cross_compiling:$ac_tool_warned in
cannam@126 6315 yes:)
cannam@126 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@126 6317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@126 6318 ac_tool_warned=yes ;;
cannam@126 6319 esac
cannam@126 6320 DLLTOOL=$ac_ct_DLLTOOL
cannam@126 6321 fi
cannam@126 6322 else
cannam@126 6323 DLLTOOL="$ac_cv_prog_DLLTOOL"
cannam@126 6324 fi
cannam@126 6325
cannam@126 6326 test -z "$DLLTOOL" && DLLTOOL=dlltool
cannam@126 6327
cannam@126 6328
cannam@126 6329
cannam@126 6330
cannam@126 6331
cannam@126 6332
cannam@126 6333
cannam@126 6334
cannam@126 6335
cannam@126 6336
cannam@126 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
cannam@126 6338 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
cannam@126 6339 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
cannam@126 6340 $as_echo_n "(cached) " >&6
cannam@126 6341 else
cannam@126 6342 lt_cv_sharedlib_from_linklib_cmd='unknown'
cannam@126 6343
cannam@126 6344 case $host_os in
cannam@126 6345 cygwin* | mingw* | pw32* | cegcc*)
cannam@126 6346 # two different shell functions defined in ltmain.sh;
cannam@126 6347 # decide which one to use based on capabilities of $DLLTOOL
cannam@126 6348 case `$DLLTOOL --help 2>&1` in
cannam@126 6349 *--identify-strict*)
cannam@126 6350 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
cannam@126 6351 ;;
cannam@126 6352 *)
cannam@126 6353 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
cannam@126 6354 ;;
cannam@126 6355 esac
cannam@126 6356 ;;
cannam@126 6357 *)
cannam@126 6358 # fallback: assume linklib IS sharedlib
cannam@126 6359 lt_cv_sharedlib_from_linklib_cmd=$ECHO
cannam@126 6360 ;;
cannam@126 6361 esac
cannam@126 6362
cannam@126 6363 fi
cannam@126 6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
cannam@126 6365 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
cannam@126 6366 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
cannam@126 6367 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
cannam@126 6368
cannam@126 6369
cannam@126 6370
cannam@126 6371
cannam@126 6372
cannam@126 6373
cannam@126 6374
cannam@126 6375
cannam@126 6376 if test -n "$ac_tool_prefix"; then
cannam@126 6377 for ac_prog in ar
cannam@126 6378 do
cannam@126 6379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@126 6380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@126 6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 6382 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 6383 if ${ac_cv_prog_AR+:} false; then :
cannam@126 6384 $as_echo_n "(cached) " >&6
cannam@126 6385 else
cannam@126 6386 if test -n "$AR"; then
cannam@126 6387 ac_cv_prog_AR="$AR" # Let the user override the test.
cannam@126 6388 else
cannam@126 6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 6390 for as_dir in $PATH
cannam@126 6391 do
cannam@126 6392 IFS=$as_save_IFS
cannam@126 6393 test -z "$as_dir" && as_dir=.
cannam@126 6394 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 6395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 6396 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cannam@126 6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 6398 break 2
cannam@126 6399 fi
cannam@126 6400 done
cannam@126 6401 done
cannam@126 6402 IFS=$as_save_IFS
cannam@126 6403
cannam@126 6404 fi
cannam@126 6405 fi
cannam@126 6406 AR=$ac_cv_prog_AR
cannam@126 6407 if test -n "$AR"; then
cannam@126 6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cannam@126 6409 $as_echo "$AR" >&6; }
cannam@126 6410 else
cannam@126 6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 6412 $as_echo "no" >&6; }
cannam@126 6413 fi
cannam@126 6414
cannam@126 6415
cannam@126 6416 test -n "$AR" && break
cannam@126 6417 done
cannam@126 6418 fi
cannam@126 6419 if test -z "$AR"; then
cannam@126 6420 ac_ct_AR=$AR
cannam@126 6421 for ac_prog in ar
cannam@126 6422 do
cannam@126 6423 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@126 6424 set dummy $ac_prog; ac_word=$2
cannam@126 6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 6426 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 6427 if ${ac_cv_prog_ac_ct_AR+:} false; then :
cannam@126 6428 $as_echo_n "(cached) " >&6
cannam@126 6429 else
cannam@126 6430 if test -n "$ac_ct_AR"; then
cannam@126 6431 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
cannam@126 6432 else
cannam@126 6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 6434 for as_dir in $PATH
cannam@126 6435 do
cannam@126 6436 IFS=$as_save_IFS
cannam@126 6437 test -z "$as_dir" && as_dir=.
cannam@126 6438 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 6439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 6440 ac_cv_prog_ac_ct_AR="$ac_prog"
cannam@126 6441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 6442 break 2
cannam@126 6443 fi
cannam@126 6444 done
cannam@126 6445 done
cannam@126 6446 IFS=$as_save_IFS
cannam@126 6447
cannam@126 6448 fi
cannam@126 6449 fi
cannam@126 6450 ac_ct_AR=$ac_cv_prog_ac_ct_AR
cannam@126 6451 if test -n "$ac_ct_AR"; then
cannam@126 6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cannam@126 6453 $as_echo "$ac_ct_AR" >&6; }
cannam@126 6454 else
cannam@126 6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 6456 $as_echo "no" >&6; }
cannam@126 6457 fi
cannam@126 6458
cannam@126 6459
cannam@126 6460 test -n "$ac_ct_AR" && break
cannam@126 6461 done
cannam@126 6462
cannam@126 6463 if test "x$ac_ct_AR" = x; then
cannam@126 6464 AR="false"
cannam@126 6465 else
cannam@126 6466 case $cross_compiling:$ac_tool_warned in
cannam@126 6467 yes:)
cannam@126 6468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@126 6469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@126 6470 ac_tool_warned=yes ;;
cannam@126 6471 esac
cannam@126 6472 AR=$ac_ct_AR
cannam@126 6473 fi
cannam@126 6474 fi
cannam@126 6475
cannam@126 6476 : ${AR=ar}
cannam@126 6477 : ${AR_FLAGS=cru}
cannam@126 6478
cannam@126 6479
cannam@126 6480
cannam@126 6481
cannam@126 6482
cannam@126 6483
cannam@126 6484
cannam@126 6485
cannam@126 6486
cannam@126 6487
cannam@126 6488
cannam@126 6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
cannam@126 6490 $as_echo_n "checking for archiver @FILE support... " >&6; }
cannam@126 6491 if ${lt_cv_ar_at_file+:} false; then :
cannam@126 6492 $as_echo_n "(cached) " >&6
cannam@126 6493 else
cannam@126 6494 lt_cv_ar_at_file=no
cannam@126 6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 6496 /* end confdefs.h. */
cannam@126 6497
cannam@126 6498 int
cannam@126 6499 main ()
cannam@126 6500 {
cannam@126 6501
cannam@126 6502 ;
cannam@126 6503 return 0;
cannam@126 6504 }
cannam@126 6505 _ACEOF
cannam@126 6506 if ac_fn_c_try_compile "$LINENO"; then :
cannam@126 6507 echo conftest.$ac_objext > conftest.lst
cannam@126 6508 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
cannam@126 6509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
cannam@126 6510 (eval $lt_ar_try) 2>&5
cannam@126 6511 ac_status=$?
cannam@126 6512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 6513 test $ac_status = 0; }
cannam@126 6514 if test 0 -eq "$ac_status"; then
cannam@126 6515 # Ensure the archiver fails upon bogus file names.
cannam@126 6516 rm -f conftest.$ac_objext libconftest.a
cannam@126 6517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
cannam@126 6518 (eval $lt_ar_try) 2>&5
cannam@126 6519 ac_status=$?
cannam@126 6520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 6521 test $ac_status = 0; }
cannam@126 6522 if test 0 -ne "$ac_status"; then
cannam@126 6523 lt_cv_ar_at_file=@
cannam@126 6524 fi
cannam@126 6525 fi
cannam@126 6526 rm -f conftest.* libconftest.a
cannam@126 6527
cannam@126 6528 fi
cannam@126 6529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@126 6530
cannam@126 6531 fi
cannam@126 6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
cannam@126 6533 $as_echo "$lt_cv_ar_at_file" >&6; }
cannam@126 6534
cannam@126 6535 if test no = "$lt_cv_ar_at_file"; then
cannam@126 6536 archiver_list_spec=
cannam@126 6537 else
cannam@126 6538 archiver_list_spec=$lt_cv_ar_at_file
cannam@126 6539 fi
cannam@126 6540
cannam@126 6541
cannam@126 6542
cannam@126 6543
cannam@126 6544
cannam@126 6545
cannam@126 6546
cannam@126 6547 if test -n "$ac_tool_prefix"; then
cannam@126 6548 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
cannam@126 6549 set dummy ${ac_tool_prefix}strip; ac_word=$2
cannam@126 6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 6551 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 6552 if ${ac_cv_prog_STRIP+:} false; then :
cannam@126 6553 $as_echo_n "(cached) " >&6
cannam@126 6554 else
cannam@126 6555 if test -n "$STRIP"; then
cannam@126 6556 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
cannam@126 6557 else
cannam@126 6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 6559 for as_dir in $PATH
cannam@126 6560 do
cannam@126 6561 IFS=$as_save_IFS
cannam@126 6562 test -z "$as_dir" && as_dir=.
cannam@126 6563 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 6564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 6565 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cannam@126 6566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 6567 break 2
cannam@126 6568 fi
cannam@126 6569 done
cannam@126 6570 done
cannam@126 6571 IFS=$as_save_IFS
cannam@126 6572
cannam@126 6573 fi
cannam@126 6574 fi
cannam@126 6575 STRIP=$ac_cv_prog_STRIP
cannam@126 6576 if test -n "$STRIP"; then
cannam@126 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cannam@126 6578 $as_echo "$STRIP" >&6; }
cannam@126 6579 else
cannam@126 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 6581 $as_echo "no" >&6; }
cannam@126 6582 fi
cannam@126 6583
cannam@126 6584
cannam@126 6585 fi
cannam@126 6586 if test -z "$ac_cv_prog_STRIP"; then
cannam@126 6587 ac_ct_STRIP=$STRIP
cannam@126 6588 # Extract the first word of "strip", so it can be a program name with args.
cannam@126 6589 set dummy strip; ac_word=$2
cannam@126 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 6591 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 6592 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cannam@126 6593 $as_echo_n "(cached) " >&6
cannam@126 6594 else
cannam@126 6595 if test -n "$ac_ct_STRIP"; then
cannam@126 6596 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
cannam@126 6597 else
cannam@126 6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 6599 for as_dir in $PATH
cannam@126 6600 do
cannam@126 6601 IFS=$as_save_IFS
cannam@126 6602 test -z "$as_dir" && as_dir=.
cannam@126 6603 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 6604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 6605 ac_cv_prog_ac_ct_STRIP="strip"
cannam@126 6606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 6607 break 2
cannam@126 6608 fi
cannam@126 6609 done
cannam@126 6610 done
cannam@126 6611 IFS=$as_save_IFS
cannam@126 6612
cannam@126 6613 fi
cannam@126 6614 fi
cannam@126 6615 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
cannam@126 6616 if test -n "$ac_ct_STRIP"; then
cannam@126 6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cannam@126 6618 $as_echo "$ac_ct_STRIP" >&6; }
cannam@126 6619 else
cannam@126 6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 6621 $as_echo "no" >&6; }
cannam@126 6622 fi
cannam@126 6623
cannam@126 6624 if test "x$ac_ct_STRIP" = x; then
cannam@126 6625 STRIP=":"
cannam@126 6626 else
cannam@126 6627 case $cross_compiling:$ac_tool_warned in
cannam@126 6628 yes:)
cannam@126 6629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@126 6630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@126 6631 ac_tool_warned=yes ;;
cannam@126 6632 esac
cannam@126 6633 STRIP=$ac_ct_STRIP
cannam@126 6634 fi
cannam@126 6635 else
cannam@126 6636 STRIP="$ac_cv_prog_STRIP"
cannam@126 6637 fi
cannam@126 6638
cannam@126 6639 test -z "$STRIP" && STRIP=:
cannam@126 6640
cannam@126 6641
cannam@126 6642
cannam@126 6643
cannam@126 6644
cannam@126 6645
cannam@126 6646 if test -n "$ac_tool_prefix"; then
cannam@126 6647 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
cannam@126 6648 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cannam@126 6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 6650 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 6651 if ${ac_cv_prog_RANLIB+:} false; then :
cannam@126 6652 $as_echo_n "(cached) " >&6
cannam@126 6653 else
cannam@126 6654 if test -n "$RANLIB"; then
cannam@126 6655 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
cannam@126 6656 else
cannam@126 6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 6658 for as_dir in $PATH
cannam@126 6659 do
cannam@126 6660 IFS=$as_save_IFS
cannam@126 6661 test -z "$as_dir" && as_dir=.
cannam@126 6662 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 6663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 6664 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cannam@126 6665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 6666 break 2
cannam@126 6667 fi
cannam@126 6668 done
cannam@126 6669 done
cannam@126 6670 IFS=$as_save_IFS
cannam@126 6671
cannam@126 6672 fi
cannam@126 6673 fi
cannam@126 6674 RANLIB=$ac_cv_prog_RANLIB
cannam@126 6675 if test -n "$RANLIB"; then
cannam@126 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cannam@126 6677 $as_echo "$RANLIB" >&6; }
cannam@126 6678 else
cannam@126 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 6680 $as_echo "no" >&6; }
cannam@126 6681 fi
cannam@126 6682
cannam@126 6683
cannam@126 6684 fi
cannam@126 6685 if test -z "$ac_cv_prog_RANLIB"; then
cannam@126 6686 ac_ct_RANLIB=$RANLIB
cannam@126 6687 # Extract the first word of "ranlib", so it can be a program name with args.
cannam@126 6688 set dummy ranlib; ac_word=$2
cannam@126 6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 6690 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 6691 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cannam@126 6692 $as_echo_n "(cached) " >&6
cannam@126 6693 else
cannam@126 6694 if test -n "$ac_ct_RANLIB"; then
cannam@126 6695 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
cannam@126 6696 else
cannam@126 6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 6698 for as_dir in $PATH
cannam@126 6699 do
cannam@126 6700 IFS=$as_save_IFS
cannam@126 6701 test -z "$as_dir" && as_dir=.
cannam@126 6702 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 6703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 6704 ac_cv_prog_ac_ct_RANLIB="ranlib"
cannam@126 6705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 6706 break 2
cannam@126 6707 fi
cannam@126 6708 done
cannam@126 6709 done
cannam@126 6710 IFS=$as_save_IFS
cannam@126 6711
cannam@126 6712 fi
cannam@126 6713 fi
cannam@126 6714 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
cannam@126 6715 if test -n "$ac_ct_RANLIB"; then
cannam@126 6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cannam@126 6717 $as_echo "$ac_ct_RANLIB" >&6; }
cannam@126 6718 else
cannam@126 6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 6720 $as_echo "no" >&6; }
cannam@126 6721 fi
cannam@126 6722
cannam@126 6723 if test "x$ac_ct_RANLIB" = x; then
cannam@126 6724 RANLIB=":"
cannam@126 6725 else
cannam@126 6726 case $cross_compiling:$ac_tool_warned in
cannam@126 6727 yes:)
cannam@126 6728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@126 6729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@126 6730 ac_tool_warned=yes ;;
cannam@126 6731 esac
cannam@126 6732 RANLIB=$ac_ct_RANLIB
cannam@126 6733 fi
cannam@126 6734 else
cannam@126 6735 RANLIB="$ac_cv_prog_RANLIB"
cannam@126 6736 fi
cannam@126 6737
cannam@126 6738 test -z "$RANLIB" && RANLIB=:
cannam@126 6739
cannam@126 6740
cannam@126 6741
cannam@126 6742
cannam@126 6743
cannam@126 6744
cannam@126 6745 # Determine commands to create old-style static archives.
cannam@126 6746 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
cannam@126 6747 old_postinstall_cmds='chmod 644 $oldlib'
cannam@126 6748 old_postuninstall_cmds=
cannam@126 6749
cannam@126 6750 if test -n "$RANLIB"; then
cannam@126 6751 case $host_os in
cannam@126 6752 bitrig* | openbsd*)
cannam@126 6753 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cannam@126 6754 ;;
cannam@126 6755 *)
cannam@126 6756 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cannam@126 6757 ;;
cannam@126 6758 esac
cannam@126 6759 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cannam@126 6760 fi
cannam@126 6761
cannam@126 6762 case $host_os in
cannam@126 6763 darwin*)
cannam@126 6764 lock_old_archive_extraction=yes ;;
cannam@126 6765 *)
cannam@126 6766 lock_old_archive_extraction=no ;;
cannam@126 6767 esac
cannam@126 6768
cannam@126 6769
cannam@126 6770
cannam@126 6771
cannam@126 6772
cannam@126 6773
cannam@126 6774
cannam@126 6775
cannam@126 6776
cannam@126 6777
cannam@126 6778
cannam@126 6779
cannam@126 6780
cannam@126 6781
cannam@126 6782
cannam@126 6783
cannam@126 6784
cannam@126 6785
cannam@126 6786
cannam@126 6787
cannam@126 6788
cannam@126 6789
cannam@126 6790
cannam@126 6791
cannam@126 6792
cannam@126 6793
cannam@126 6794
cannam@126 6795
cannam@126 6796
cannam@126 6797
cannam@126 6798
cannam@126 6799
cannam@126 6800
cannam@126 6801
cannam@126 6802
cannam@126 6803
cannam@126 6804
cannam@126 6805
cannam@126 6806
cannam@126 6807 # If no C compiler was specified, use CC.
cannam@126 6808 LTCC=${LTCC-"$CC"}
cannam@126 6809
cannam@126 6810 # If no C compiler flags were specified, use CFLAGS.
cannam@126 6811 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cannam@126 6812
cannam@126 6813 # Allow CC to be a program name with arguments.
cannam@126 6814 compiler=$CC
cannam@126 6815
cannam@126 6816
cannam@126 6817 # Check for command to grab the raw symbol name followed by C symbol from nm.
cannam@126 6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cannam@126 6819 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cannam@126 6820 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cannam@126 6821 $as_echo_n "(cached) " >&6
cannam@126 6822 else
cannam@126 6823
cannam@126 6824 # These are sane defaults that work on at least a few old systems.
cannam@126 6825 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
cannam@126 6826
cannam@126 6827 # Character class describing NM global symbol codes.
cannam@126 6828 symcode='[BCDEGRST]'
cannam@126 6829
cannam@126 6830 # Regexp to match symbols that can be accessed directly from C.
cannam@126 6831 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
cannam@126 6832
cannam@126 6833 # Define system-specific variables.
cannam@126 6834 case $host_os in
cannam@126 6835 aix*)
cannam@126 6836 symcode='[BCDT]'
cannam@126 6837 ;;
cannam@126 6838 cygwin* | mingw* | pw32* | cegcc*)
cannam@126 6839 symcode='[ABCDGISTW]'
cannam@126 6840 ;;
cannam@126 6841 hpux*)
cannam@126 6842 if test ia64 = "$host_cpu"; then
cannam@126 6843 symcode='[ABCDEGRST]'
cannam@126 6844 fi
cannam@126 6845 ;;
cannam@126 6846 irix* | nonstopux*)
cannam@126 6847 symcode='[BCDEGRST]'
cannam@126 6848 ;;
cannam@126 6849 osf*)
cannam@126 6850 symcode='[BCDEGQRST]'
cannam@126 6851 ;;
cannam@126 6852 solaris*)
cannam@126 6853 symcode='[BDRT]'
cannam@126 6854 ;;
cannam@126 6855 sco3.2v5*)
cannam@126 6856 symcode='[DT]'
cannam@126 6857 ;;
cannam@126 6858 sysv4.2uw2*)
cannam@126 6859 symcode='[DT]'
cannam@126 6860 ;;
cannam@126 6861 sysv5* | sco5v6* | unixware* | OpenUNIX*)
cannam@126 6862 symcode='[ABDT]'
cannam@126 6863 ;;
cannam@126 6864 sysv4)
cannam@126 6865 symcode='[DFNSTU]'
cannam@126 6866 ;;
cannam@126 6867 esac
cannam@126 6868
cannam@126 6869 # If we're using GNU nm, then use its standard symbol codes.
cannam@126 6870 case `$NM -V 2>&1` in
cannam@126 6871 *GNU* | *'with BFD'*)
cannam@126 6872 symcode='[ABCDGIRSTW]' ;;
cannam@126 6873 esac
cannam@126 6874
cannam@126 6875 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
cannam@126 6876 # Gets list of data symbols to import.
cannam@126 6877 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
cannam@126 6878 # Adjust the below global symbol transforms to fixup imported variables.
cannam@126 6879 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
cannam@126 6880 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
cannam@126 6881 lt_c_name_lib_hook="\
cannam@126 6882 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
cannam@126 6883 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
cannam@126 6884 else
cannam@126 6885 # Disable hooks by default.
cannam@126 6886 lt_cv_sys_global_symbol_to_import=
cannam@126 6887 lt_cdecl_hook=
cannam@126 6888 lt_c_name_hook=
cannam@126 6889 lt_c_name_lib_hook=
cannam@126 6890 fi
cannam@126 6891
cannam@126 6892 # Transform an extracted symbol line into a proper C declaration.
cannam@126 6893 # Some systems (esp. on ia64) link data and code symbols differently,
cannam@126 6894 # so use this general approach.
cannam@126 6895 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
cannam@126 6896 $lt_cdecl_hook\
cannam@126 6897 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
cannam@126 6898 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
cannam@126 6899
cannam@126 6900 # Transform an extracted symbol line into symbol name and symbol address
cannam@126 6901 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
cannam@126 6902 $lt_c_name_hook\
cannam@126 6903 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
cannam@126 6904 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
cannam@126 6905
cannam@126 6906 # Transform an extracted symbol line into symbol name with lib prefix and
cannam@126 6907 # symbol address.
cannam@126 6908 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
cannam@126 6909 $lt_c_name_lib_hook\
cannam@126 6910 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
cannam@126 6911 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
cannam@126 6912 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
cannam@126 6913
cannam@126 6914 # Handle CRLF in mingw tool chain
cannam@126 6915 opt_cr=
cannam@126 6916 case $build_os in
cannam@126 6917 mingw*)
cannam@126 6918 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
cannam@126 6919 ;;
cannam@126 6920 esac
cannam@126 6921
cannam@126 6922 # Try without a prefix underscore, then with it.
cannam@126 6923 for ac_symprfx in "" "_"; do
cannam@126 6924
cannam@126 6925 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
cannam@126 6926 symxfrm="\\1 $ac_symprfx\\2 \\2"
cannam@126 6927
cannam@126 6928 # Write the raw and C identifiers.
cannam@126 6929 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
cannam@126 6930 # Fake it for dumpbin and say T for any non-static function,
cannam@126 6931 # D for any global variable and I for any imported variable.
cannam@126 6932 # Also find C++ and __fastcall symbols from MSVC++,
cannam@126 6933 # which start with @ or ?.
cannam@126 6934 lt_cv_sys_global_symbol_pipe="$AWK '"\
cannam@126 6935 " {last_section=section; section=\$ 3};"\
cannam@126 6936 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cannam@126 6937 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
cannam@126 6938 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
cannam@126 6939 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
cannam@126 6940 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
cannam@126 6941 " \$ 0!~/External *\|/{next};"\
cannam@126 6942 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
cannam@126 6943 " {if(hide[section]) next};"\
cannam@126 6944 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
cannam@126 6945 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
cannam@126 6946 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
cannam@126 6947 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
cannam@126 6948 " ' prfx=^$ac_symprfx"
cannam@126 6949 else
cannam@126 6950 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
cannam@126 6951 fi
cannam@126 6952 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cannam@126 6953
cannam@126 6954 # Check to see that the pipe works correctly.
cannam@126 6955 pipe_works=no
cannam@126 6956
cannam@126 6957 rm -f conftest*
cannam@126 6958 cat > conftest.$ac_ext <<_LT_EOF
cannam@126 6959 #ifdef __cplusplus
cannam@126 6960 extern "C" {
cannam@126 6961 #endif
cannam@126 6962 char nm_test_var;
cannam@126 6963 void nm_test_func(void);
cannam@126 6964 void nm_test_func(void){}
cannam@126 6965 #ifdef __cplusplus
cannam@126 6966 }
cannam@126 6967 #endif
cannam@126 6968 int main(){nm_test_var='a';nm_test_func();return(0);}
cannam@126 6969 _LT_EOF
cannam@126 6970
cannam@126 6971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@126 6972 (eval $ac_compile) 2>&5
cannam@126 6973 ac_status=$?
cannam@126 6974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 6975 test $ac_status = 0; }; then
cannam@126 6976 # Now try to grab the symbols.
cannam@126 6977 nlist=conftest.nm
cannam@126 6978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
cannam@126 6979 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cannam@126 6980 ac_status=$?
cannam@126 6981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 6982 test $ac_status = 0; } && test -s "$nlist"; then
cannam@126 6983 # Try sorting and uniquifying the output.
cannam@126 6984 if sort "$nlist" | uniq > "$nlist"T; then
cannam@126 6985 mv -f "$nlist"T "$nlist"
cannam@126 6986 else
cannam@126 6987 rm -f "$nlist"T
cannam@126 6988 fi
cannam@126 6989
cannam@126 6990 # Make sure that we snagged all the symbols we need.
cannam@126 6991 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
cannam@126 6992 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
cannam@126 6993 cat <<_LT_EOF > conftest.$ac_ext
cannam@126 6994 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
cannam@126 6995 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
cannam@126 6996 /* DATA imports from DLLs on WIN32 can't be const, because runtime
cannam@126 6997 relocations are performed -- see ld's documentation on pseudo-relocs. */
cannam@126 6998 # define LT_DLSYM_CONST
cannam@126 6999 #elif defined __osf__
cannam@126 7000 /* This system does not cope well with relocations in const data. */
cannam@126 7001 # define LT_DLSYM_CONST
cannam@126 7002 #else
cannam@126 7003 # define LT_DLSYM_CONST const
cannam@126 7004 #endif
cannam@126 7005
cannam@126 7006 #ifdef __cplusplus
cannam@126 7007 extern "C" {
cannam@126 7008 #endif
cannam@126 7009
cannam@126 7010 _LT_EOF
cannam@126 7011 # Now generate the symbol file.
cannam@126 7012 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
cannam@126 7013
cannam@126 7014 cat <<_LT_EOF >> conftest.$ac_ext
cannam@126 7015
cannam@126 7016 /* The mapping between symbol names and symbols. */
cannam@126 7017 LT_DLSYM_CONST struct {
cannam@126 7018 const char *name;
cannam@126 7019 void *address;
cannam@126 7020 }
cannam@126 7021 lt__PROGRAM__LTX_preloaded_symbols[] =
cannam@126 7022 {
cannam@126 7023 { "@PROGRAM@", (void *) 0 },
cannam@126 7024 _LT_EOF
cannam@126 7025 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
cannam@126 7026 cat <<\_LT_EOF >> conftest.$ac_ext
cannam@126 7027 {0, (void *) 0}
cannam@126 7028 };
cannam@126 7029
cannam@126 7030 /* This works around a problem in FreeBSD linker */
cannam@126 7031 #ifdef FREEBSD_WORKAROUND
cannam@126 7032 static const void *lt_preloaded_setup() {
cannam@126 7033 return lt__PROGRAM__LTX_preloaded_symbols;
cannam@126 7034 }
cannam@126 7035 #endif
cannam@126 7036
cannam@126 7037 #ifdef __cplusplus
cannam@126 7038 }
cannam@126 7039 #endif
cannam@126 7040 _LT_EOF
cannam@126 7041 # Now try linking the two files.
cannam@126 7042 mv conftest.$ac_objext conftstm.$ac_objext
cannam@126 7043 lt_globsym_save_LIBS=$LIBS
cannam@126 7044 lt_globsym_save_CFLAGS=$CFLAGS
cannam@126 7045 LIBS=conftstm.$ac_objext
cannam@126 7046 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cannam@126 7047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cannam@126 7048 (eval $ac_link) 2>&5
cannam@126 7049 ac_status=$?
cannam@126 7050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 7051 test $ac_status = 0; } && test -s conftest$ac_exeext; then
cannam@126 7052 pipe_works=yes
cannam@126 7053 fi
cannam@126 7054 LIBS=$lt_globsym_save_LIBS
cannam@126 7055 CFLAGS=$lt_globsym_save_CFLAGS
cannam@126 7056 else
cannam@126 7057 echo "cannot find nm_test_func in $nlist" >&5
cannam@126 7058 fi
cannam@126 7059 else
cannam@126 7060 echo "cannot find nm_test_var in $nlist" >&5
cannam@126 7061 fi
cannam@126 7062 else
cannam@126 7063 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
cannam@126 7064 fi
cannam@126 7065 else
cannam@126 7066 echo "$progname: failed program was:" >&5
cannam@126 7067 cat conftest.$ac_ext >&5
cannam@126 7068 fi
cannam@126 7069 rm -rf conftest* conftst*
cannam@126 7070
cannam@126 7071 # Do not use the global_symbol_pipe unless it works.
cannam@126 7072 if test yes = "$pipe_works"; then
cannam@126 7073 break
cannam@126 7074 else
cannam@126 7075 lt_cv_sys_global_symbol_pipe=
cannam@126 7076 fi
cannam@126 7077 done
cannam@126 7078
cannam@126 7079 fi
cannam@126 7080
cannam@126 7081 if test -z "$lt_cv_sys_global_symbol_pipe"; then
cannam@126 7082 lt_cv_sys_global_symbol_to_cdecl=
cannam@126 7083 fi
cannam@126 7084 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cannam@126 7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cannam@126 7086 $as_echo "failed" >&6; }
cannam@126 7087 else
cannam@126 7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cannam@126 7089 $as_echo "ok" >&6; }
cannam@126 7090 fi
cannam@126 7091
cannam@126 7092 # Response file support.
cannam@126 7093 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
cannam@126 7094 nm_file_list_spec='@'
cannam@126 7095 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
cannam@126 7096 nm_file_list_spec='@'
cannam@126 7097 fi
cannam@126 7098
cannam@126 7099
cannam@126 7100
cannam@126 7101
cannam@126 7102
cannam@126 7103
cannam@126 7104
cannam@126 7105
cannam@126 7106
cannam@126 7107
cannam@126 7108
cannam@126 7109
cannam@126 7110
cannam@126 7111
cannam@126 7112
cannam@126 7113
cannam@126 7114
cannam@126 7115
cannam@126 7116
cannam@126 7117
cannam@126 7118
cannam@126 7119
cannam@126 7120
cannam@126 7121
cannam@126 7122
cannam@126 7123
cannam@126 7124
cannam@126 7125
cannam@126 7126
cannam@126 7127
cannam@126 7128
cannam@126 7129
cannam@126 7130
cannam@126 7131
cannam@126 7132
cannam@126 7133
cannam@126 7134
cannam@126 7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
cannam@126 7136 $as_echo_n "checking for sysroot... " >&6; }
cannam@126 7137
cannam@126 7138 # Check whether --with-sysroot was given.
cannam@126 7139 if test "${with_sysroot+set}" = set; then :
cannam@126 7140 withval=$with_sysroot;
cannam@126 7141 else
cannam@126 7142 with_sysroot=no
cannam@126 7143 fi
cannam@126 7144
cannam@126 7145
cannam@126 7146 lt_sysroot=
cannam@126 7147 case $with_sysroot in #(
cannam@126 7148 yes)
cannam@126 7149 if test yes = "$GCC"; then
cannam@126 7150 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
cannam@126 7151 fi
cannam@126 7152 ;; #(
cannam@126 7153 /*)
cannam@126 7154 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
cannam@126 7155 ;; #(
cannam@126 7156 no|'')
cannam@126 7157 ;; #(
cannam@126 7158 *)
cannam@126 7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
cannam@126 7160 $as_echo "$with_sysroot" >&6; }
cannam@126 7161 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
cannam@126 7162 ;;
cannam@126 7163 esac
cannam@126 7164
cannam@126 7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
cannam@126 7166 $as_echo "${lt_sysroot:-no}" >&6; }
cannam@126 7167
cannam@126 7168
cannam@126 7169
cannam@126 7170
cannam@126 7171
cannam@126 7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
cannam@126 7173 $as_echo_n "checking for a working dd... " >&6; }
cannam@126 7174 if ${ac_cv_path_lt_DD+:} false; then :
cannam@126 7175 $as_echo_n "(cached) " >&6
cannam@126 7176 else
cannam@126 7177 printf 0123456789abcdef0123456789abcdef >conftest.i
cannam@126 7178 cat conftest.i conftest.i >conftest2.i
cannam@126 7179 : ${lt_DD:=$DD}
cannam@126 7180 if test -z "$lt_DD"; then
cannam@126 7181 ac_path_lt_DD_found=false
cannam@126 7182 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@126 7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 7184 for as_dir in $PATH
cannam@126 7185 do
cannam@126 7186 IFS=$as_save_IFS
cannam@126 7187 test -z "$as_dir" && as_dir=.
cannam@126 7188 for ac_prog in dd; do
cannam@126 7189 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 7190 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
cannam@126 7191 as_fn_executable_p "$ac_path_lt_DD" || continue
cannam@126 7192 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
cannam@126 7193 cmp -s conftest.i conftest.out \
cannam@126 7194 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
cannam@126 7195 fi
cannam@126 7196 $ac_path_lt_DD_found && break 3
cannam@126 7197 done
cannam@126 7198 done
cannam@126 7199 done
cannam@126 7200 IFS=$as_save_IFS
cannam@126 7201 if test -z "$ac_cv_path_lt_DD"; then
cannam@126 7202 :
cannam@126 7203 fi
cannam@126 7204 else
cannam@126 7205 ac_cv_path_lt_DD=$lt_DD
cannam@126 7206 fi
cannam@126 7207
cannam@126 7208 rm -f conftest.i conftest2.i conftest.out
cannam@126 7209 fi
cannam@126 7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
cannam@126 7211 $as_echo "$ac_cv_path_lt_DD" >&6; }
cannam@126 7212
cannam@126 7213
cannam@126 7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
cannam@126 7215 $as_echo_n "checking how to truncate binary pipes... " >&6; }
cannam@126 7216 if ${lt_cv_truncate_bin+:} false; then :
cannam@126 7217 $as_echo_n "(cached) " >&6
cannam@126 7218 else
cannam@126 7219 printf 0123456789abcdef0123456789abcdef >conftest.i
cannam@126 7220 cat conftest.i conftest.i >conftest2.i
cannam@126 7221 lt_cv_truncate_bin=
cannam@126 7222 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
cannam@126 7223 cmp -s conftest.i conftest.out \
cannam@126 7224 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
cannam@126 7225 fi
cannam@126 7226 rm -f conftest.i conftest2.i conftest.out
cannam@126 7227 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
cannam@126 7228 fi
cannam@126 7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
cannam@126 7230 $as_echo "$lt_cv_truncate_bin" >&6; }
cannam@126 7231
cannam@126 7232
cannam@126 7233
cannam@126 7234
cannam@126 7235
cannam@126 7236
cannam@126 7237
cannam@126 7238 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
cannam@126 7239 func_cc_basename ()
cannam@126 7240 {
cannam@126 7241 for cc_temp in $*""; do
cannam@126 7242 case $cc_temp in
cannam@126 7243 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
cannam@126 7244 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
cannam@126 7245 \-*) ;;
cannam@126 7246 *) break;;
cannam@126 7247 esac
cannam@126 7248 done
cannam@126 7249 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cannam@126 7250 }
cannam@126 7251
cannam@126 7252 # Check whether --enable-libtool-lock was given.
cannam@126 7253 if test "${enable_libtool_lock+set}" = set; then :
cannam@126 7254 enableval=$enable_libtool_lock;
cannam@126 7255 fi
cannam@126 7256
cannam@126 7257 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
cannam@126 7258
cannam@126 7259 # Some flags need to be propagated to the compiler or linker for good
cannam@126 7260 # libtool support.
cannam@126 7261 case $host in
cannam@126 7262 ia64-*-hpux*)
cannam@126 7263 # Find out what ABI is being produced by ac_compile, and set mode
cannam@126 7264 # options accordingly.
cannam@126 7265 echo 'int i;' > conftest.$ac_ext
cannam@126 7266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@126 7267 (eval $ac_compile) 2>&5
cannam@126 7268 ac_status=$?
cannam@126 7269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 7270 test $ac_status = 0; }; then
cannam@126 7271 case `/usr/bin/file conftest.$ac_objext` in
cannam@126 7272 *ELF-32*)
cannam@126 7273 HPUX_IA64_MODE=32
cannam@126 7274 ;;
cannam@126 7275 *ELF-64*)
cannam@126 7276 HPUX_IA64_MODE=64
cannam@126 7277 ;;
cannam@126 7278 esac
cannam@126 7279 fi
cannam@126 7280 rm -rf conftest*
cannam@126 7281 ;;
cannam@126 7282 *-*-irix6*)
cannam@126 7283 # Find out what ABI is being produced by ac_compile, and set linker
cannam@126 7284 # options accordingly.
cannam@126 7285 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cannam@126 7286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@126 7287 (eval $ac_compile) 2>&5
cannam@126 7288 ac_status=$?
cannam@126 7289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 7290 test $ac_status = 0; }; then
cannam@126 7291 if test yes = "$lt_cv_prog_gnu_ld"; then
cannam@126 7292 case `/usr/bin/file conftest.$ac_objext` in
cannam@126 7293 *32-bit*)
cannam@126 7294 LD="${LD-ld} -melf32bsmip"
cannam@126 7295 ;;
cannam@126 7296 *N32*)
cannam@126 7297 LD="${LD-ld} -melf32bmipn32"
cannam@126 7298 ;;
cannam@126 7299 *64-bit*)
cannam@126 7300 LD="${LD-ld} -melf64bmip"
cannam@126 7301 ;;
cannam@126 7302 esac
cannam@126 7303 else
cannam@126 7304 case `/usr/bin/file conftest.$ac_objext` in
cannam@126 7305 *32-bit*)
cannam@126 7306 LD="${LD-ld} -32"
cannam@126 7307 ;;
cannam@126 7308 *N32*)
cannam@126 7309 LD="${LD-ld} -n32"
cannam@126 7310 ;;
cannam@126 7311 *64-bit*)
cannam@126 7312 LD="${LD-ld} -64"
cannam@126 7313 ;;
cannam@126 7314 esac
cannam@126 7315 fi
cannam@126 7316 fi
cannam@126 7317 rm -rf conftest*
cannam@126 7318 ;;
cannam@126 7319
cannam@126 7320 mips64*-*linux*)
cannam@126 7321 # Find out what ABI is being produced by ac_compile, and set linker
cannam@126 7322 # options accordingly.
cannam@126 7323 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cannam@126 7324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@126 7325 (eval $ac_compile) 2>&5
cannam@126 7326 ac_status=$?
cannam@126 7327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 7328 test $ac_status = 0; }; then
cannam@126 7329 emul=elf
cannam@126 7330 case `/usr/bin/file conftest.$ac_objext` in
cannam@126 7331 *32-bit*)
cannam@126 7332 emul="${emul}32"
cannam@126 7333 ;;
cannam@126 7334 *64-bit*)
cannam@126 7335 emul="${emul}64"
cannam@126 7336 ;;
cannam@126 7337 esac
cannam@126 7338 case `/usr/bin/file conftest.$ac_objext` in
cannam@126 7339 *MSB*)
cannam@126 7340 emul="${emul}btsmip"
cannam@126 7341 ;;
cannam@126 7342 *LSB*)
cannam@126 7343 emul="${emul}ltsmip"
cannam@126 7344 ;;
cannam@126 7345 esac
cannam@126 7346 case `/usr/bin/file conftest.$ac_objext` in
cannam@126 7347 *N32*)
cannam@126 7348 emul="${emul}n32"
cannam@126 7349 ;;
cannam@126 7350 esac
cannam@126 7351 LD="${LD-ld} -m $emul"
cannam@126 7352 fi
cannam@126 7353 rm -rf conftest*
cannam@126 7354 ;;
cannam@126 7355
cannam@126 7356 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cannam@126 7357 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
cannam@126 7358 # Find out what ABI is being produced by ac_compile, and set linker
cannam@126 7359 # options accordingly. Note that the listed cases only cover the
cannam@126 7360 # situations where additional linker options are needed (such as when
cannam@126 7361 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
cannam@126 7362 # vice versa); the common cases where no linker options are needed do
cannam@126 7363 # not appear in the list.
cannam@126 7364 echo 'int i;' > conftest.$ac_ext
cannam@126 7365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@126 7366 (eval $ac_compile) 2>&5
cannam@126 7367 ac_status=$?
cannam@126 7368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 7369 test $ac_status = 0; }; then
cannam@126 7370 case `/usr/bin/file conftest.o` in
cannam@126 7371 *32-bit*)
cannam@126 7372 case $host in
cannam@126 7373 x86_64-*kfreebsd*-gnu)
cannam@126 7374 LD="${LD-ld} -m elf_i386_fbsd"
cannam@126 7375 ;;
cannam@126 7376 x86_64-*linux*)
cannam@126 7377 case `/usr/bin/file conftest.o` in
cannam@126 7378 *x86-64*)
cannam@126 7379 LD="${LD-ld} -m elf32_x86_64"
cannam@126 7380 ;;
cannam@126 7381 *)
cannam@126 7382 LD="${LD-ld} -m elf_i386"
cannam@126 7383 ;;
cannam@126 7384 esac
cannam@126 7385 ;;
cannam@126 7386 powerpc64le-*linux*)
cannam@126 7387 LD="${LD-ld} -m elf32lppclinux"
cannam@126 7388 ;;
cannam@126 7389 powerpc64-*linux*)
cannam@126 7390 LD="${LD-ld} -m elf32ppclinux"
cannam@126 7391 ;;
cannam@126 7392 s390x-*linux*)
cannam@126 7393 LD="${LD-ld} -m elf_s390"
cannam@126 7394 ;;
cannam@126 7395 sparc64-*linux*)
cannam@126 7396 LD="${LD-ld} -m elf32_sparc"
cannam@126 7397 ;;
cannam@126 7398 esac
cannam@126 7399 ;;
cannam@126 7400 *64-bit*)
cannam@126 7401 case $host in
cannam@126 7402 x86_64-*kfreebsd*-gnu)
cannam@126 7403 LD="${LD-ld} -m elf_x86_64_fbsd"
cannam@126 7404 ;;
cannam@126 7405 x86_64-*linux*)
cannam@126 7406 LD="${LD-ld} -m elf_x86_64"
cannam@126 7407 ;;
cannam@126 7408 powerpcle-*linux*)
cannam@126 7409 LD="${LD-ld} -m elf64lppc"
cannam@126 7410 ;;
cannam@126 7411 powerpc-*linux*)
cannam@126 7412 LD="${LD-ld} -m elf64ppc"
cannam@126 7413 ;;
cannam@126 7414 s390*-*linux*|s390*-*tpf*)
cannam@126 7415 LD="${LD-ld} -m elf64_s390"
cannam@126 7416 ;;
cannam@126 7417 sparc*-*linux*)
cannam@126 7418 LD="${LD-ld} -m elf64_sparc"
cannam@126 7419 ;;
cannam@126 7420 esac
cannam@126 7421 ;;
cannam@126 7422 esac
cannam@126 7423 fi
cannam@126 7424 rm -rf conftest*
cannam@126 7425 ;;
cannam@126 7426
cannam@126 7427 *-*-sco3.2v5*)
cannam@126 7428 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
cannam@126 7429 SAVE_CFLAGS=$CFLAGS
cannam@126 7430 CFLAGS="$CFLAGS -belf"
cannam@126 7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cannam@126 7432 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cannam@126 7433 if ${lt_cv_cc_needs_belf+:} false; then :
cannam@126 7434 $as_echo_n "(cached) " >&6
cannam@126 7435 else
cannam@126 7436 ac_ext=c
cannam@126 7437 ac_cpp='$CPP $CPPFLAGS'
cannam@126 7438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@126 7439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@126 7440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@126 7441
cannam@126 7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 7443 /* end confdefs.h. */
cannam@126 7444
cannam@126 7445 int
cannam@126 7446 main ()
cannam@126 7447 {
cannam@126 7448
cannam@126 7449 ;
cannam@126 7450 return 0;
cannam@126 7451 }
cannam@126 7452 _ACEOF
cannam@126 7453 if ac_fn_c_try_link "$LINENO"; then :
cannam@126 7454 lt_cv_cc_needs_belf=yes
cannam@126 7455 else
cannam@126 7456 lt_cv_cc_needs_belf=no
cannam@126 7457 fi
cannam@126 7458 rm -f core conftest.err conftest.$ac_objext \
cannam@126 7459 conftest$ac_exeext conftest.$ac_ext
cannam@126 7460 ac_ext=c
cannam@126 7461 ac_cpp='$CPP $CPPFLAGS'
cannam@126 7462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@126 7463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@126 7464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@126 7465
cannam@126 7466 fi
cannam@126 7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cannam@126 7468 $as_echo "$lt_cv_cc_needs_belf" >&6; }
cannam@126 7469 if test yes != "$lt_cv_cc_needs_belf"; then
cannam@126 7470 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
cannam@126 7471 CFLAGS=$SAVE_CFLAGS
cannam@126 7472 fi
cannam@126 7473 ;;
cannam@126 7474 *-*solaris*)
cannam@126 7475 # Find out what ABI is being produced by ac_compile, and set linker
cannam@126 7476 # options accordingly.
cannam@126 7477 echo 'int i;' > conftest.$ac_ext
cannam@126 7478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@126 7479 (eval $ac_compile) 2>&5
cannam@126 7480 ac_status=$?
cannam@126 7481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 7482 test $ac_status = 0; }; then
cannam@126 7483 case `/usr/bin/file conftest.o` in
cannam@126 7484 *64-bit*)
cannam@126 7485 case $lt_cv_prog_gnu_ld in
cannam@126 7486 yes*)
cannam@126 7487 case $host in
cannam@126 7488 i?86-*-solaris*|x86_64-*-solaris*)
cannam@126 7489 LD="${LD-ld} -m elf_x86_64"
cannam@126 7490 ;;
cannam@126 7491 sparc*-*-solaris*)
cannam@126 7492 LD="${LD-ld} -m elf64_sparc"
cannam@126 7493 ;;
cannam@126 7494 esac
cannam@126 7495 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
cannam@126 7496 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
cannam@126 7497 LD=${LD-ld}_sol2
cannam@126 7498 fi
cannam@126 7499 ;;
cannam@126 7500 *)
cannam@126 7501 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
cannam@126 7502 LD="${LD-ld} -64"
cannam@126 7503 fi
cannam@126 7504 ;;
cannam@126 7505 esac
cannam@126 7506 ;;
cannam@126 7507 esac
cannam@126 7508 fi
cannam@126 7509 rm -rf conftest*
cannam@126 7510 ;;
cannam@126 7511 esac
cannam@126 7512
cannam@126 7513 need_locks=$enable_libtool_lock
cannam@126 7514
cannam@126 7515 if test -n "$ac_tool_prefix"; then
cannam@126 7516 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
cannam@126 7517 set dummy ${ac_tool_prefix}mt; ac_word=$2
cannam@126 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 7519 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 7520 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
cannam@126 7521 $as_echo_n "(cached) " >&6
cannam@126 7522 else
cannam@126 7523 if test -n "$MANIFEST_TOOL"; then
cannam@126 7524 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
cannam@126 7525 else
cannam@126 7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 7527 for as_dir in $PATH
cannam@126 7528 do
cannam@126 7529 IFS=$as_save_IFS
cannam@126 7530 test -z "$as_dir" && as_dir=.
cannam@126 7531 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 7532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 7533 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
cannam@126 7534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 7535 break 2
cannam@126 7536 fi
cannam@126 7537 done
cannam@126 7538 done
cannam@126 7539 IFS=$as_save_IFS
cannam@126 7540
cannam@126 7541 fi
cannam@126 7542 fi
cannam@126 7543 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
cannam@126 7544 if test -n "$MANIFEST_TOOL"; then
cannam@126 7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
cannam@126 7546 $as_echo "$MANIFEST_TOOL" >&6; }
cannam@126 7547 else
cannam@126 7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 7549 $as_echo "no" >&6; }
cannam@126 7550 fi
cannam@126 7551
cannam@126 7552
cannam@126 7553 fi
cannam@126 7554 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
cannam@126 7555 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
cannam@126 7556 # Extract the first word of "mt", so it can be a program name with args.
cannam@126 7557 set dummy mt; ac_word=$2
cannam@126 7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 7559 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 7560 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
cannam@126 7561 $as_echo_n "(cached) " >&6
cannam@126 7562 else
cannam@126 7563 if test -n "$ac_ct_MANIFEST_TOOL"; then
cannam@126 7564 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
cannam@126 7565 else
cannam@126 7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 7567 for as_dir in $PATH
cannam@126 7568 do
cannam@126 7569 IFS=$as_save_IFS
cannam@126 7570 test -z "$as_dir" && as_dir=.
cannam@126 7571 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 7572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 7573 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
cannam@126 7574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 7575 break 2
cannam@126 7576 fi
cannam@126 7577 done
cannam@126 7578 done
cannam@126 7579 IFS=$as_save_IFS
cannam@126 7580
cannam@126 7581 fi
cannam@126 7582 fi
cannam@126 7583 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
cannam@126 7584 if test -n "$ac_ct_MANIFEST_TOOL"; then
cannam@126 7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
cannam@126 7586 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
cannam@126 7587 else
cannam@126 7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 7589 $as_echo "no" >&6; }
cannam@126 7590 fi
cannam@126 7591
cannam@126 7592 if test "x$ac_ct_MANIFEST_TOOL" = x; then
cannam@126 7593 MANIFEST_TOOL=":"
cannam@126 7594 else
cannam@126 7595 case $cross_compiling:$ac_tool_warned in
cannam@126 7596 yes:)
cannam@126 7597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@126 7598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@126 7599 ac_tool_warned=yes ;;
cannam@126 7600 esac
cannam@126 7601 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
cannam@126 7602 fi
cannam@126 7603 else
cannam@126 7604 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
cannam@126 7605 fi
cannam@126 7606
cannam@126 7607 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
cannam@126 7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
cannam@126 7609 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
cannam@126 7610 if ${lt_cv_path_mainfest_tool+:} false; then :
cannam@126 7611 $as_echo_n "(cached) " >&6
cannam@126 7612 else
cannam@126 7613 lt_cv_path_mainfest_tool=no
cannam@126 7614 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
cannam@126 7615 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
cannam@126 7616 cat conftest.err >&5
cannam@126 7617 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
cannam@126 7618 lt_cv_path_mainfest_tool=yes
cannam@126 7619 fi
cannam@126 7620 rm -f conftest*
cannam@126 7621 fi
cannam@126 7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
cannam@126 7623 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
cannam@126 7624 if test yes != "$lt_cv_path_mainfest_tool"; then
cannam@126 7625 MANIFEST_TOOL=:
cannam@126 7626 fi
cannam@126 7627
cannam@126 7628
cannam@126 7629
cannam@126 7630
cannam@126 7631
cannam@126 7632
cannam@126 7633 case $host_os in
cannam@126 7634 rhapsody* | darwin*)
cannam@126 7635 if test -n "$ac_tool_prefix"; then
cannam@126 7636 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
cannam@126 7637 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cannam@126 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 7639 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 7640 if ${ac_cv_prog_DSYMUTIL+:} false; then :
cannam@126 7641 $as_echo_n "(cached) " >&6
cannam@126 7642 else
cannam@126 7643 if test -n "$DSYMUTIL"; then
cannam@126 7644 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
cannam@126 7645 else
cannam@126 7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 7647 for as_dir in $PATH
cannam@126 7648 do
cannam@126 7649 IFS=$as_save_IFS
cannam@126 7650 test -z "$as_dir" && as_dir=.
cannam@126 7651 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 7652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 7653 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cannam@126 7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 7655 break 2
cannam@126 7656 fi
cannam@126 7657 done
cannam@126 7658 done
cannam@126 7659 IFS=$as_save_IFS
cannam@126 7660
cannam@126 7661 fi
cannam@126 7662 fi
cannam@126 7663 DSYMUTIL=$ac_cv_prog_DSYMUTIL
cannam@126 7664 if test -n "$DSYMUTIL"; then
cannam@126 7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cannam@126 7666 $as_echo "$DSYMUTIL" >&6; }
cannam@126 7667 else
cannam@126 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 7669 $as_echo "no" >&6; }
cannam@126 7670 fi
cannam@126 7671
cannam@126 7672
cannam@126 7673 fi
cannam@126 7674 if test -z "$ac_cv_prog_DSYMUTIL"; then
cannam@126 7675 ac_ct_DSYMUTIL=$DSYMUTIL
cannam@126 7676 # Extract the first word of "dsymutil", so it can be a program name with args.
cannam@126 7677 set dummy dsymutil; ac_word=$2
cannam@126 7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 7679 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 7680 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cannam@126 7681 $as_echo_n "(cached) " >&6
cannam@126 7682 else
cannam@126 7683 if test -n "$ac_ct_DSYMUTIL"; then
cannam@126 7684 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
cannam@126 7685 else
cannam@126 7686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 7687 for as_dir in $PATH
cannam@126 7688 do
cannam@126 7689 IFS=$as_save_IFS
cannam@126 7690 test -z "$as_dir" && as_dir=.
cannam@126 7691 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 7692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 7693 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cannam@126 7694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 7695 break 2
cannam@126 7696 fi
cannam@126 7697 done
cannam@126 7698 done
cannam@126 7699 IFS=$as_save_IFS
cannam@126 7700
cannam@126 7701 fi
cannam@126 7702 fi
cannam@126 7703 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
cannam@126 7704 if test -n "$ac_ct_DSYMUTIL"; then
cannam@126 7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cannam@126 7706 $as_echo "$ac_ct_DSYMUTIL" >&6; }
cannam@126 7707 else
cannam@126 7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 7709 $as_echo "no" >&6; }
cannam@126 7710 fi
cannam@126 7711
cannam@126 7712 if test "x$ac_ct_DSYMUTIL" = x; then
cannam@126 7713 DSYMUTIL=":"
cannam@126 7714 else
cannam@126 7715 case $cross_compiling:$ac_tool_warned in
cannam@126 7716 yes:)
cannam@126 7717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@126 7718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@126 7719 ac_tool_warned=yes ;;
cannam@126 7720 esac
cannam@126 7721 DSYMUTIL=$ac_ct_DSYMUTIL
cannam@126 7722 fi
cannam@126 7723 else
cannam@126 7724 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
cannam@126 7725 fi
cannam@126 7726
cannam@126 7727 if test -n "$ac_tool_prefix"; then
cannam@126 7728 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
cannam@126 7729 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cannam@126 7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 7731 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 7732 if ${ac_cv_prog_NMEDIT+:} false; then :
cannam@126 7733 $as_echo_n "(cached) " >&6
cannam@126 7734 else
cannam@126 7735 if test -n "$NMEDIT"; then
cannam@126 7736 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
cannam@126 7737 else
cannam@126 7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 7739 for as_dir in $PATH
cannam@126 7740 do
cannam@126 7741 IFS=$as_save_IFS
cannam@126 7742 test -z "$as_dir" && as_dir=.
cannam@126 7743 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 7744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 7745 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cannam@126 7746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 7747 break 2
cannam@126 7748 fi
cannam@126 7749 done
cannam@126 7750 done
cannam@126 7751 IFS=$as_save_IFS
cannam@126 7752
cannam@126 7753 fi
cannam@126 7754 fi
cannam@126 7755 NMEDIT=$ac_cv_prog_NMEDIT
cannam@126 7756 if test -n "$NMEDIT"; then
cannam@126 7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cannam@126 7758 $as_echo "$NMEDIT" >&6; }
cannam@126 7759 else
cannam@126 7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 7761 $as_echo "no" >&6; }
cannam@126 7762 fi
cannam@126 7763
cannam@126 7764
cannam@126 7765 fi
cannam@126 7766 if test -z "$ac_cv_prog_NMEDIT"; then
cannam@126 7767 ac_ct_NMEDIT=$NMEDIT
cannam@126 7768 # Extract the first word of "nmedit", so it can be a program name with args.
cannam@126 7769 set dummy nmedit; ac_word=$2
cannam@126 7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 7771 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 7772 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cannam@126 7773 $as_echo_n "(cached) " >&6
cannam@126 7774 else
cannam@126 7775 if test -n "$ac_ct_NMEDIT"; then
cannam@126 7776 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
cannam@126 7777 else
cannam@126 7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 7779 for as_dir in $PATH
cannam@126 7780 do
cannam@126 7781 IFS=$as_save_IFS
cannam@126 7782 test -z "$as_dir" && as_dir=.
cannam@126 7783 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 7784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 7785 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cannam@126 7786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 7787 break 2
cannam@126 7788 fi
cannam@126 7789 done
cannam@126 7790 done
cannam@126 7791 IFS=$as_save_IFS
cannam@126 7792
cannam@126 7793 fi
cannam@126 7794 fi
cannam@126 7795 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
cannam@126 7796 if test -n "$ac_ct_NMEDIT"; then
cannam@126 7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cannam@126 7798 $as_echo "$ac_ct_NMEDIT" >&6; }
cannam@126 7799 else
cannam@126 7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 7801 $as_echo "no" >&6; }
cannam@126 7802 fi
cannam@126 7803
cannam@126 7804 if test "x$ac_ct_NMEDIT" = x; then
cannam@126 7805 NMEDIT=":"
cannam@126 7806 else
cannam@126 7807 case $cross_compiling:$ac_tool_warned in
cannam@126 7808 yes:)
cannam@126 7809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@126 7810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@126 7811 ac_tool_warned=yes ;;
cannam@126 7812 esac
cannam@126 7813 NMEDIT=$ac_ct_NMEDIT
cannam@126 7814 fi
cannam@126 7815 else
cannam@126 7816 NMEDIT="$ac_cv_prog_NMEDIT"
cannam@126 7817 fi
cannam@126 7818
cannam@126 7819 if test -n "$ac_tool_prefix"; then
cannam@126 7820 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
cannam@126 7821 set dummy ${ac_tool_prefix}lipo; ac_word=$2
cannam@126 7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 7823 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 7824 if ${ac_cv_prog_LIPO+:} false; then :
cannam@126 7825 $as_echo_n "(cached) " >&6
cannam@126 7826 else
cannam@126 7827 if test -n "$LIPO"; then
cannam@126 7828 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
cannam@126 7829 else
cannam@126 7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 7831 for as_dir in $PATH
cannam@126 7832 do
cannam@126 7833 IFS=$as_save_IFS
cannam@126 7834 test -z "$as_dir" && as_dir=.
cannam@126 7835 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 7836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 7837 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cannam@126 7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 7839 break 2
cannam@126 7840 fi
cannam@126 7841 done
cannam@126 7842 done
cannam@126 7843 IFS=$as_save_IFS
cannam@126 7844
cannam@126 7845 fi
cannam@126 7846 fi
cannam@126 7847 LIPO=$ac_cv_prog_LIPO
cannam@126 7848 if test -n "$LIPO"; then
cannam@126 7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cannam@126 7850 $as_echo "$LIPO" >&6; }
cannam@126 7851 else
cannam@126 7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 7853 $as_echo "no" >&6; }
cannam@126 7854 fi
cannam@126 7855
cannam@126 7856
cannam@126 7857 fi
cannam@126 7858 if test -z "$ac_cv_prog_LIPO"; then
cannam@126 7859 ac_ct_LIPO=$LIPO
cannam@126 7860 # Extract the first word of "lipo", so it can be a program name with args.
cannam@126 7861 set dummy lipo; ac_word=$2
cannam@126 7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 7863 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 7864 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cannam@126 7865 $as_echo_n "(cached) " >&6
cannam@126 7866 else
cannam@126 7867 if test -n "$ac_ct_LIPO"; then
cannam@126 7868 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
cannam@126 7869 else
cannam@126 7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 7871 for as_dir in $PATH
cannam@126 7872 do
cannam@126 7873 IFS=$as_save_IFS
cannam@126 7874 test -z "$as_dir" && as_dir=.
cannam@126 7875 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 7876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 7877 ac_cv_prog_ac_ct_LIPO="lipo"
cannam@126 7878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 7879 break 2
cannam@126 7880 fi
cannam@126 7881 done
cannam@126 7882 done
cannam@126 7883 IFS=$as_save_IFS
cannam@126 7884
cannam@126 7885 fi
cannam@126 7886 fi
cannam@126 7887 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
cannam@126 7888 if test -n "$ac_ct_LIPO"; then
cannam@126 7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cannam@126 7890 $as_echo "$ac_ct_LIPO" >&6; }
cannam@126 7891 else
cannam@126 7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 7893 $as_echo "no" >&6; }
cannam@126 7894 fi
cannam@126 7895
cannam@126 7896 if test "x$ac_ct_LIPO" = x; then
cannam@126 7897 LIPO=":"
cannam@126 7898 else
cannam@126 7899 case $cross_compiling:$ac_tool_warned in
cannam@126 7900 yes:)
cannam@126 7901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@126 7902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@126 7903 ac_tool_warned=yes ;;
cannam@126 7904 esac
cannam@126 7905 LIPO=$ac_ct_LIPO
cannam@126 7906 fi
cannam@126 7907 else
cannam@126 7908 LIPO="$ac_cv_prog_LIPO"
cannam@126 7909 fi
cannam@126 7910
cannam@126 7911 if test -n "$ac_tool_prefix"; then
cannam@126 7912 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
cannam@126 7913 set dummy ${ac_tool_prefix}otool; ac_word=$2
cannam@126 7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 7915 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 7916 if ${ac_cv_prog_OTOOL+:} false; then :
cannam@126 7917 $as_echo_n "(cached) " >&6
cannam@126 7918 else
cannam@126 7919 if test -n "$OTOOL"; then
cannam@126 7920 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
cannam@126 7921 else
cannam@126 7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 7923 for as_dir in $PATH
cannam@126 7924 do
cannam@126 7925 IFS=$as_save_IFS
cannam@126 7926 test -z "$as_dir" && as_dir=.
cannam@126 7927 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 7928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 7929 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cannam@126 7930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 7931 break 2
cannam@126 7932 fi
cannam@126 7933 done
cannam@126 7934 done
cannam@126 7935 IFS=$as_save_IFS
cannam@126 7936
cannam@126 7937 fi
cannam@126 7938 fi
cannam@126 7939 OTOOL=$ac_cv_prog_OTOOL
cannam@126 7940 if test -n "$OTOOL"; then
cannam@126 7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cannam@126 7942 $as_echo "$OTOOL" >&6; }
cannam@126 7943 else
cannam@126 7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 7945 $as_echo "no" >&6; }
cannam@126 7946 fi
cannam@126 7947
cannam@126 7948
cannam@126 7949 fi
cannam@126 7950 if test -z "$ac_cv_prog_OTOOL"; then
cannam@126 7951 ac_ct_OTOOL=$OTOOL
cannam@126 7952 # Extract the first word of "otool", so it can be a program name with args.
cannam@126 7953 set dummy otool; ac_word=$2
cannam@126 7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 7955 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 7956 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cannam@126 7957 $as_echo_n "(cached) " >&6
cannam@126 7958 else
cannam@126 7959 if test -n "$ac_ct_OTOOL"; then
cannam@126 7960 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
cannam@126 7961 else
cannam@126 7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 7963 for as_dir in $PATH
cannam@126 7964 do
cannam@126 7965 IFS=$as_save_IFS
cannam@126 7966 test -z "$as_dir" && as_dir=.
cannam@126 7967 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 7968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 7969 ac_cv_prog_ac_ct_OTOOL="otool"
cannam@126 7970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 7971 break 2
cannam@126 7972 fi
cannam@126 7973 done
cannam@126 7974 done
cannam@126 7975 IFS=$as_save_IFS
cannam@126 7976
cannam@126 7977 fi
cannam@126 7978 fi
cannam@126 7979 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
cannam@126 7980 if test -n "$ac_ct_OTOOL"; then
cannam@126 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cannam@126 7982 $as_echo "$ac_ct_OTOOL" >&6; }
cannam@126 7983 else
cannam@126 7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 7985 $as_echo "no" >&6; }
cannam@126 7986 fi
cannam@126 7987
cannam@126 7988 if test "x$ac_ct_OTOOL" = x; then
cannam@126 7989 OTOOL=":"
cannam@126 7990 else
cannam@126 7991 case $cross_compiling:$ac_tool_warned in
cannam@126 7992 yes:)
cannam@126 7993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@126 7994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@126 7995 ac_tool_warned=yes ;;
cannam@126 7996 esac
cannam@126 7997 OTOOL=$ac_ct_OTOOL
cannam@126 7998 fi
cannam@126 7999 else
cannam@126 8000 OTOOL="$ac_cv_prog_OTOOL"
cannam@126 8001 fi
cannam@126 8002
cannam@126 8003 if test -n "$ac_tool_prefix"; then
cannam@126 8004 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
cannam@126 8005 set dummy ${ac_tool_prefix}otool64; ac_word=$2
cannam@126 8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 8007 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 8008 if ${ac_cv_prog_OTOOL64+:} false; then :
cannam@126 8009 $as_echo_n "(cached) " >&6
cannam@126 8010 else
cannam@126 8011 if test -n "$OTOOL64"; then
cannam@126 8012 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
cannam@126 8013 else
cannam@126 8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 8015 for as_dir in $PATH
cannam@126 8016 do
cannam@126 8017 IFS=$as_save_IFS
cannam@126 8018 test -z "$as_dir" && as_dir=.
cannam@126 8019 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 8020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 8021 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cannam@126 8022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 8023 break 2
cannam@126 8024 fi
cannam@126 8025 done
cannam@126 8026 done
cannam@126 8027 IFS=$as_save_IFS
cannam@126 8028
cannam@126 8029 fi
cannam@126 8030 fi
cannam@126 8031 OTOOL64=$ac_cv_prog_OTOOL64
cannam@126 8032 if test -n "$OTOOL64"; then
cannam@126 8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cannam@126 8034 $as_echo "$OTOOL64" >&6; }
cannam@126 8035 else
cannam@126 8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 8037 $as_echo "no" >&6; }
cannam@126 8038 fi
cannam@126 8039
cannam@126 8040
cannam@126 8041 fi
cannam@126 8042 if test -z "$ac_cv_prog_OTOOL64"; then
cannam@126 8043 ac_ct_OTOOL64=$OTOOL64
cannam@126 8044 # Extract the first word of "otool64", so it can be a program name with args.
cannam@126 8045 set dummy otool64; ac_word=$2
cannam@126 8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 8047 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 8048 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cannam@126 8049 $as_echo_n "(cached) " >&6
cannam@126 8050 else
cannam@126 8051 if test -n "$ac_ct_OTOOL64"; then
cannam@126 8052 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
cannam@126 8053 else
cannam@126 8054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 8055 for as_dir in $PATH
cannam@126 8056 do
cannam@126 8057 IFS=$as_save_IFS
cannam@126 8058 test -z "$as_dir" && as_dir=.
cannam@126 8059 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 8060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 8061 ac_cv_prog_ac_ct_OTOOL64="otool64"
cannam@126 8062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 8063 break 2
cannam@126 8064 fi
cannam@126 8065 done
cannam@126 8066 done
cannam@126 8067 IFS=$as_save_IFS
cannam@126 8068
cannam@126 8069 fi
cannam@126 8070 fi
cannam@126 8071 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
cannam@126 8072 if test -n "$ac_ct_OTOOL64"; then
cannam@126 8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cannam@126 8074 $as_echo "$ac_ct_OTOOL64" >&6; }
cannam@126 8075 else
cannam@126 8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 8077 $as_echo "no" >&6; }
cannam@126 8078 fi
cannam@126 8079
cannam@126 8080 if test "x$ac_ct_OTOOL64" = x; then
cannam@126 8081 OTOOL64=":"
cannam@126 8082 else
cannam@126 8083 case $cross_compiling:$ac_tool_warned in
cannam@126 8084 yes:)
cannam@126 8085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@126 8086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@126 8087 ac_tool_warned=yes ;;
cannam@126 8088 esac
cannam@126 8089 OTOOL64=$ac_ct_OTOOL64
cannam@126 8090 fi
cannam@126 8091 else
cannam@126 8092 OTOOL64="$ac_cv_prog_OTOOL64"
cannam@126 8093 fi
cannam@126 8094
cannam@126 8095
cannam@126 8096
cannam@126 8097
cannam@126 8098
cannam@126 8099
cannam@126 8100
cannam@126 8101
cannam@126 8102
cannam@126 8103
cannam@126 8104
cannam@126 8105
cannam@126 8106
cannam@126 8107
cannam@126 8108
cannam@126 8109
cannam@126 8110
cannam@126 8111
cannam@126 8112
cannam@126 8113
cannam@126 8114
cannam@126 8115
cannam@126 8116
cannam@126 8117
cannam@126 8118
cannam@126 8119
cannam@126 8120
cannam@126 8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cannam@126 8122 $as_echo_n "checking for -single_module linker flag... " >&6; }
cannam@126 8123 if ${lt_cv_apple_cc_single_mod+:} false; then :
cannam@126 8124 $as_echo_n "(cached) " >&6
cannam@126 8125 else
cannam@126 8126 lt_cv_apple_cc_single_mod=no
cannam@126 8127 if test -z "$LT_MULTI_MODULE"; then
cannam@126 8128 # By default we will add the -single_module flag. You can override
cannam@126 8129 # by either setting the environment variable LT_MULTI_MODULE
cannam@126 8130 # non-empty at configure time, or by adding -multi_module to the
cannam@126 8131 # link flags.
cannam@126 8132 rm -rf libconftest.dylib*
cannam@126 8133 echo "int foo(void){return 1;}" > conftest.c
cannam@126 8134 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
cannam@126 8135 -dynamiclib -Wl,-single_module conftest.c" >&5
cannam@126 8136 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
cannam@126 8137 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
cannam@126 8138 _lt_result=$?
cannam@126 8139 # If there is a non-empty error log, and "single_module"
cannam@126 8140 # appears in it, assume the flag caused a linker warning
cannam@126 8141 if test -s conftest.err && $GREP single_module conftest.err; then
cannam@126 8142 cat conftest.err >&5
cannam@126 8143 # Otherwise, if the output was created with a 0 exit code from
cannam@126 8144 # the compiler, it worked.
cannam@126 8145 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
cannam@126 8146 lt_cv_apple_cc_single_mod=yes
cannam@126 8147 else
cannam@126 8148 cat conftest.err >&5
cannam@126 8149 fi
cannam@126 8150 rm -rf libconftest.dylib*
cannam@126 8151 rm -f conftest.*
cannam@126 8152 fi
cannam@126 8153 fi
cannam@126 8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cannam@126 8155 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cannam@126 8156
cannam@126 8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cannam@126 8158 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cannam@126 8159 if ${lt_cv_ld_exported_symbols_list+:} false; then :
cannam@126 8160 $as_echo_n "(cached) " >&6
cannam@126 8161 else
cannam@126 8162 lt_cv_ld_exported_symbols_list=no
cannam@126 8163 save_LDFLAGS=$LDFLAGS
cannam@126 8164 echo "_main" > conftest.sym
cannam@126 8165 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cannam@126 8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 8167 /* end confdefs.h. */
cannam@126 8168
cannam@126 8169 int
cannam@126 8170 main ()
cannam@126 8171 {
cannam@126 8172
cannam@126 8173 ;
cannam@126 8174 return 0;
cannam@126 8175 }
cannam@126 8176 _ACEOF
cannam@126 8177 if ac_fn_c_try_link "$LINENO"; then :
cannam@126 8178 lt_cv_ld_exported_symbols_list=yes
cannam@126 8179 else
cannam@126 8180 lt_cv_ld_exported_symbols_list=no
cannam@126 8181 fi
cannam@126 8182 rm -f core conftest.err conftest.$ac_objext \
cannam@126 8183 conftest$ac_exeext conftest.$ac_ext
cannam@126 8184 LDFLAGS=$save_LDFLAGS
cannam@126 8185
cannam@126 8186 fi
cannam@126 8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cannam@126 8188 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cannam@126 8189
cannam@126 8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
cannam@126 8191 $as_echo_n "checking for -force_load linker flag... " >&6; }
cannam@126 8192 if ${lt_cv_ld_force_load+:} false; then :
cannam@126 8193 $as_echo_n "(cached) " >&6
cannam@126 8194 else
cannam@126 8195 lt_cv_ld_force_load=no
cannam@126 8196 cat > conftest.c << _LT_EOF
cannam@126 8197 int forced_loaded() { return 2;}
cannam@126 8198 _LT_EOF
cannam@126 8199 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
cannam@126 8200 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
cannam@126 8201 echo "$AR cru libconftest.a conftest.o" >&5
cannam@126 8202 $AR cru libconftest.a conftest.o 2>&5
cannam@126 8203 echo "$RANLIB libconftest.a" >&5
cannam@126 8204 $RANLIB libconftest.a 2>&5
cannam@126 8205 cat > conftest.c << _LT_EOF
cannam@126 8206 int main() { return 0;}
cannam@126 8207 _LT_EOF
cannam@126 8208 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
cannam@126 8209 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
cannam@126 8210 _lt_result=$?
cannam@126 8211 if test -s conftest.err && $GREP force_load conftest.err; then
cannam@126 8212 cat conftest.err >&5
cannam@126 8213 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
cannam@126 8214 lt_cv_ld_force_load=yes
cannam@126 8215 else
cannam@126 8216 cat conftest.err >&5
cannam@126 8217 fi
cannam@126 8218 rm -f conftest.err libconftest.a conftest conftest.c
cannam@126 8219 rm -rf conftest.dSYM
cannam@126 8220
cannam@126 8221 fi
cannam@126 8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
cannam@126 8223 $as_echo "$lt_cv_ld_force_load" >&6; }
cannam@126 8224 case $host_os in
cannam@126 8225 rhapsody* | darwin1.[012])
cannam@126 8226 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
cannam@126 8227 darwin1.*)
cannam@126 8228 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
cannam@126 8229 darwin*) # darwin 5.x on
cannam@126 8230 # if running on 10.5 or later, the deployment target defaults
cannam@126 8231 # to the OS version, if on x86, and 10.4, the deployment
cannam@126 8232 # target defaults to 10.4. Don't you love it?
cannam@126 8233 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
cannam@126 8234 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
cannam@126 8235 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
cannam@126 8236 10.[012][,.]*)
cannam@126 8237 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
cannam@126 8238 10.*)
cannam@126 8239 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
cannam@126 8240 esac
cannam@126 8241 ;;
cannam@126 8242 esac
cannam@126 8243 if test yes = "$lt_cv_apple_cc_single_mod"; then
cannam@126 8244 _lt_dar_single_mod='$single_module'
cannam@126 8245 fi
cannam@126 8246 if test yes = "$lt_cv_ld_exported_symbols_list"; then
cannam@126 8247 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
cannam@126 8248 else
cannam@126 8249 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
cannam@126 8250 fi
cannam@126 8251 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
cannam@126 8252 _lt_dsymutil='~$DSYMUTIL $lib || :'
cannam@126 8253 else
cannam@126 8254 _lt_dsymutil=
cannam@126 8255 fi
cannam@126 8256 ;;
cannam@126 8257 esac
cannam@126 8258
cannam@126 8259 # func_munge_path_list VARIABLE PATH
cannam@126 8260 # -----------------------------------
cannam@126 8261 # VARIABLE is name of variable containing _space_ separated list of
cannam@126 8262 # directories to be munged by the contents of PATH, which is string
cannam@126 8263 # having a format:
cannam@126 8264 # "DIR[:DIR]:"
cannam@126 8265 # string "DIR[ DIR]" will be prepended to VARIABLE
cannam@126 8266 # ":DIR[:DIR]"
cannam@126 8267 # string "DIR[ DIR]" will be appended to VARIABLE
cannam@126 8268 # "DIRP[:DIRP]::[DIRA:]DIRA"
cannam@126 8269 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
cannam@126 8270 # "DIRA[ DIRA]" will be appended to VARIABLE
cannam@126 8271 # "DIR[:DIR]"
cannam@126 8272 # VARIABLE will be replaced by "DIR[ DIR]"
cannam@126 8273 func_munge_path_list ()
cannam@126 8274 {
cannam@126 8275 case x$2 in
cannam@126 8276 x)
cannam@126 8277 ;;
cannam@126 8278 *:)
cannam@126 8279 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
cannam@126 8280 ;;
cannam@126 8281 x:*)
cannam@126 8282 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
cannam@126 8283 ;;
cannam@126 8284 *::*)
cannam@126 8285 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
cannam@126 8286 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
cannam@126 8287 ;;
cannam@126 8288 *)
cannam@126 8289 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
cannam@126 8290 ;;
cannam@126 8291 esac
cannam@126 8292 }
cannam@126 8293
cannam@126 8294 ac_ext=c
cannam@126 8295 ac_cpp='$CPP $CPPFLAGS'
cannam@126 8296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@126 8297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@126 8298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@126 8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cannam@126 8300 $as_echo_n "checking how to run the C preprocessor... " >&6; }
cannam@126 8301 # On Suns, sometimes $CPP names a directory.
cannam@126 8302 if test -n "$CPP" && test -d "$CPP"; then
cannam@126 8303 CPP=
cannam@126 8304 fi
cannam@126 8305 if test -z "$CPP"; then
cannam@126 8306 if ${ac_cv_prog_CPP+:} false; then :
cannam@126 8307 $as_echo_n "(cached) " >&6
cannam@126 8308 else
cannam@126 8309 # Double quotes because CPP needs to be expanded
cannam@126 8310 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
cannam@126 8311 do
cannam@126 8312 ac_preproc_ok=false
cannam@126 8313 for ac_c_preproc_warn_flag in '' yes
cannam@126 8314 do
cannam@126 8315 # Use a header file that comes with gcc, so configuring glibc
cannam@126 8316 # with a fresh cross-compiler works.
cannam@126 8317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@126 8318 # <limits.h> exists even on freestanding compilers.
cannam@126 8319 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@126 8320 # not just through cpp. "Syntax error" is here to catch this case.
cannam@126 8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 8322 /* end confdefs.h. */
cannam@126 8323 #ifdef __STDC__
cannam@126 8324 # include <limits.h>
cannam@126 8325 #else
cannam@126 8326 # include <assert.h>
cannam@126 8327 #endif
cannam@126 8328 Syntax error
cannam@126 8329 _ACEOF
cannam@126 8330 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@126 8331
cannam@126 8332 else
cannam@126 8333 # Broken: fails on valid input.
cannam@126 8334 continue
cannam@126 8335 fi
cannam@126 8336 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@126 8337
cannam@126 8338 # OK, works on sane cases. Now check whether nonexistent headers
cannam@126 8339 # can be detected and how.
cannam@126 8340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 8341 /* end confdefs.h. */
cannam@126 8342 #include <ac_nonexistent.h>
cannam@126 8343 _ACEOF
cannam@126 8344 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@126 8345 # Broken: success on invalid input.
cannam@126 8346 continue
cannam@126 8347 else
cannam@126 8348 # Passes both tests.
cannam@126 8349 ac_preproc_ok=:
cannam@126 8350 break
cannam@126 8351 fi
cannam@126 8352 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@126 8353
cannam@126 8354 done
cannam@126 8355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@126 8356 rm -f conftest.i conftest.err conftest.$ac_ext
cannam@126 8357 if $ac_preproc_ok; then :
cannam@126 8358 break
cannam@126 8359 fi
cannam@126 8360
cannam@126 8361 done
cannam@126 8362 ac_cv_prog_CPP=$CPP
cannam@126 8363
cannam@126 8364 fi
cannam@126 8365 CPP=$ac_cv_prog_CPP
cannam@126 8366 else
cannam@126 8367 ac_cv_prog_CPP=$CPP
cannam@126 8368 fi
cannam@126 8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cannam@126 8370 $as_echo "$CPP" >&6; }
cannam@126 8371 ac_preproc_ok=false
cannam@126 8372 for ac_c_preproc_warn_flag in '' yes
cannam@126 8373 do
cannam@126 8374 # Use a header file that comes with gcc, so configuring glibc
cannam@126 8375 # with a fresh cross-compiler works.
cannam@126 8376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@126 8377 # <limits.h> exists even on freestanding compilers.
cannam@126 8378 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@126 8379 # not just through cpp. "Syntax error" is here to catch this case.
cannam@126 8380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 8381 /* end confdefs.h. */
cannam@126 8382 #ifdef __STDC__
cannam@126 8383 # include <limits.h>
cannam@126 8384 #else
cannam@126 8385 # include <assert.h>
cannam@126 8386 #endif
cannam@126 8387 Syntax error
cannam@126 8388 _ACEOF
cannam@126 8389 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@126 8390
cannam@126 8391 else
cannam@126 8392 # Broken: fails on valid input.
cannam@126 8393 continue
cannam@126 8394 fi
cannam@126 8395 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@126 8396
cannam@126 8397 # OK, works on sane cases. Now check whether nonexistent headers
cannam@126 8398 # can be detected and how.
cannam@126 8399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 8400 /* end confdefs.h. */
cannam@126 8401 #include <ac_nonexistent.h>
cannam@126 8402 _ACEOF
cannam@126 8403 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@126 8404 # Broken: success on invalid input.
cannam@126 8405 continue
cannam@126 8406 else
cannam@126 8407 # Passes both tests.
cannam@126 8408 ac_preproc_ok=:
cannam@126 8409 break
cannam@126 8410 fi
cannam@126 8411 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@126 8412
cannam@126 8413 done
cannam@126 8414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@126 8415 rm -f conftest.i conftest.err conftest.$ac_ext
cannam@126 8416 if $ac_preproc_ok; then :
cannam@126 8417
cannam@126 8418 else
cannam@126 8419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@126 8420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@126 8421 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
cannam@126 8422 See \`config.log' for more details" "$LINENO" 5; }
cannam@126 8423 fi
cannam@126 8424
cannam@126 8425 ac_ext=c
cannam@126 8426 ac_cpp='$CPP $CPPFLAGS'
cannam@126 8427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@126 8428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@126 8429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@126 8430
cannam@126 8431
cannam@126 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cannam@126 8433 $as_echo_n "checking for ANSI C header files... " >&6; }
cannam@126 8434 if ${ac_cv_header_stdc+:} false; then :
cannam@126 8435 $as_echo_n "(cached) " >&6
cannam@126 8436 else
cannam@126 8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 8438 /* end confdefs.h. */
cannam@126 8439 #include <stdlib.h>
cannam@126 8440 #include <stdarg.h>
cannam@126 8441 #include <string.h>
cannam@126 8442 #include <float.h>
cannam@126 8443
cannam@126 8444 int
cannam@126 8445 main ()
cannam@126 8446 {
cannam@126 8447
cannam@126 8448 ;
cannam@126 8449 return 0;
cannam@126 8450 }
cannam@126 8451 _ACEOF
cannam@126 8452 if ac_fn_c_try_compile "$LINENO"; then :
cannam@126 8453 ac_cv_header_stdc=yes
cannam@126 8454 else
cannam@126 8455 ac_cv_header_stdc=no
cannam@126 8456 fi
cannam@126 8457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@126 8458
cannam@126 8459 if test $ac_cv_header_stdc = yes; then
cannam@126 8460 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cannam@126 8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 8462 /* end confdefs.h. */
cannam@126 8463 #include <string.h>
cannam@126 8464
cannam@126 8465 _ACEOF
cannam@126 8466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@126 8467 $EGREP "memchr" >/dev/null 2>&1; then :
cannam@126 8468
cannam@126 8469 else
cannam@126 8470 ac_cv_header_stdc=no
cannam@126 8471 fi
cannam@126 8472 rm -f conftest*
cannam@126 8473
cannam@126 8474 fi
cannam@126 8475
cannam@126 8476 if test $ac_cv_header_stdc = yes; then
cannam@126 8477 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cannam@126 8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 8479 /* end confdefs.h. */
cannam@126 8480 #include <stdlib.h>
cannam@126 8481
cannam@126 8482 _ACEOF
cannam@126 8483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@126 8484 $EGREP "free" >/dev/null 2>&1; then :
cannam@126 8485
cannam@126 8486 else
cannam@126 8487 ac_cv_header_stdc=no
cannam@126 8488 fi
cannam@126 8489 rm -f conftest*
cannam@126 8490
cannam@126 8491 fi
cannam@126 8492
cannam@126 8493 if test $ac_cv_header_stdc = yes; then
cannam@126 8494 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cannam@126 8495 if test "$cross_compiling" = yes; then :
cannam@126 8496 :
cannam@126 8497 else
cannam@126 8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 8499 /* end confdefs.h. */
cannam@126 8500 #include <ctype.h>
cannam@126 8501 #include <stdlib.h>
cannam@126 8502 #if ((' ' & 0x0FF) == 0x020)
cannam@126 8503 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
cannam@126 8504 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
cannam@126 8505 #else
cannam@126 8506 # define ISLOWER(c) \
cannam@126 8507 (('a' <= (c) && (c) <= 'i') \
cannam@126 8508 || ('j' <= (c) && (c) <= 'r') \
cannam@126 8509 || ('s' <= (c) && (c) <= 'z'))
cannam@126 8510 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
cannam@126 8511 #endif
cannam@126 8512
cannam@126 8513 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
cannam@126 8514 int
cannam@126 8515 main ()
cannam@126 8516 {
cannam@126 8517 int i;
cannam@126 8518 for (i = 0; i < 256; i++)
cannam@126 8519 if (XOR (islower (i), ISLOWER (i))
cannam@126 8520 || toupper (i) != TOUPPER (i))
cannam@126 8521 return 2;
cannam@126 8522 return 0;
cannam@126 8523 }
cannam@126 8524 _ACEOF
cannam@126 8525 if ac_fn_c_try_run "$LINENO"; then :
cannam@126 8526
cannam@126 8527 else
cannam@126 8528 ac_cv_header_stdc=no
cannam@126 8529 fi
cannam@126 8530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@126 8531 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@126 8532 fi
cannam@126 8533
cannam@126 8534 fi
cannam@126 8535 fi
cannam@126 8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cannam@126 8537 $as_echo "$ac_cv_header_stdc" >&6; }
cannam@126 8538 if test $ac_cv_header_stdc = yes; then
cannam@126 8539
cannam@126 8540 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
cannam@126 8541
cannam@126 8542 fi
cannam@126 8543
cannam@126 8544 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
cannam@126 8545 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
cannam@126 8546 inttypes.h stdint.h unistd.h
cannam@126 8547 do :
cannam@126 8548 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cannam@126 8549 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
cannam@126 8550 "
cannam@126 8551 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cannam@126 8552 cat >>confdefs.h <<_ACEOF
cannam@126 8553 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
cannam@126 8554 _ACEOF
cannam@126 8555
cannam@126 8556 fi
cannam@126 8557
cannam@126 8558 done
cannam@126 8559
cannam@126 8560
cannam@126 8561 for ac_header in dlfcn.h
cannam@126 8562 do :
cannam@126 8563 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
cannam@126 8564 "
cannam@126 8565 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cannam@126 8566 cat >>confdefs.h <<_ACEOF
cannam@126 8567 #define HAVE_DLFCN_H 1
cannam@126 8568 _ACEOF
cannam@126 8569
cannam@126 8570 fi
cannam@126 8571
cannam@126 8572 done
cannam@126 8573
cannam@126 8574
cannam@126 8575
cannam@126 8576
cannam@126 8577 func_stripname_cnf ()
cannam@126 8578 {
cannam@126 8579 case $2 in
cannam@126 8580 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
cannam@126 8581 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
cannam@126 8582 esac
cannam@126 8583 } # func_stripname_cnf
cannam@126 8584
cannam@126 8585
cannam@126 8586
cannam@126 8587
cannam@126 8588
cannam@126 8589 # Set options
cannam@126 8590
cannam@126 8591
cannam@126 8592
cannam@126 8593 enable_dlopen=no
cannam@126 8594
cannam@126 8595
cannam@126 8596 enable_win32_dll=no
cannam@126 8597
cannam@126 8598
cannam@126 8599 # Check whether --enable-shared was given.
cannam@126 8600 if test "${enable_shared+set}" = set; then :
cannam@126 8601 enableval=$enable_shared; p=${PACKAGE-default}
cannam@126 8602 case $enableval in
cannam@126 8603 yes) enable_shared=yes ;;
cannam@126 8604 no) enable_shared=no ;;
cannam@126 8605 *)
cannam@126 8606 enable_shared=no
cannam@126 8607 # Look at the argument we got. We use all the common list separators.
cannam@126 8608 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
cannam@126 8609 for pkg in $enableval; do
cannam@126 8610 IFS=$lt_save_ifs
cannam@126 8611 if test "X$pkg" = "X$p"; then
cannam@126 8612 enable_shared=yes
cannam@126 8613 fi
cannam@126 8614 done
cannam@126 8615 IFS=$lt_save_ifs
cannam@126 8616 ;;
cannam@126 8617 esac
cannam@126 8618 else
cannam@126 8619 enable_shared=yes
cannam@126 8620 fi
cannam@126 8621
cannam@126 8622
cannam@126 8623
cannam@126 8624
cannam@126 8625
cannam@126 8626
cannam@126 8627
cannam@126 8628
cannam@126 8629
cannam@126 8630 # Check whether --enable-static was given.
cannam@126 8631 if test "${enable_static+set}" = set; then :
cannam@126 8632 enableval=$enable_static; p=${PACKAGE-default}
cannam@126 8633 case $enableval in
cannam@126 8634 yes) enable_static=yes ;;
cannam@126 8635 no) enable_static=no ;;
cannam@126 8636 *)
cannam@126 8637 enable_static=no
cannam@126 8638 # Look at the argument we got. We use all the common list separators.
cannam@126 8639 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
cannam@126 8640 for pkg in $enableval; do
cannam@126 8641 IFS=$lt_save_ifs
cannam@126 8642 if test "X$pkg" = "X$p"; then
cannam@126 8643 enable_static=yes
cannam@126 8644 fi
cannam@126 8645 done
cannam@126 8646 IFS=$lt_save_ifs
cannam@126 8647 ;;
cannam@126 8648 esac
cannam@126 8649 else
cannam@126 8650 enable_static=yes
cannam@126 8651 fi
cannam@126 8652
cannam@126 8653
cannam@126 8654
cannam@126 8655
cannam@126 8656
cannam@126 8657
cannam@126 8658
cannam@126 8659
cannam@126 8660
cannam@126 8661
cannam@126 8662 # Check whether --with-pic was given.
cannam@126 8663 if test "${with_pic+set}" = set; then :
cannam@126 8664 withval=$with_pic; lt_p=${PACKAGE-default}
cannam@126 8665 case $withval in
cannam@126 8666 yes|no) pic_mode=$withval ;;
cannam@126 8667 *)
cannam@126 8668 pic_mode=default
cannam@126 8669 # Look at the argument we got. We use all the common list separators.
cannam@126 8670 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
cannam@126 8671 for lt_pkg in $withval; do
cannam@126 8672 IFS=$lt_save_ifs
cannam@126 8673 if test "X$lt_pkg" = "X$lt_p"; then
cannam@126 8674 pic_mode=yes
cannam@126 8675 fi
cannam@126 8676 done
cannam@126 8677 IFS=$lt_save_ifs
cannam@126 8678 ;;
cannam@126 8679 esac
cannam@126 8680 else
cannam@126 8681 pic_mode=default
cannam@126 8682 fi
cannam@126 8683
cannam@126 8684
cannam@126 8685
cannam@126 8686
cannam@126 8687
cannam@126 8688
cannam@126 8689
cannam@126 8690
cannam@126 8691 # Check whether --enable-fast-install was given.
cannam@126 8692 if test "${enable_fast_install+set}" = set; then :
cannam@126 8693 enableval=$enable_fast_install; p=${PACKAGE-default}
cannam@126 8694 case $enableval in
cannam@126 8695 yes) enable_fast_install=yes ;;
cannam@126 8696 no) enable_fast_install=no ;;
cannam@126 8697 *)
cannam@126 8698 enable_fast_install=no
cannam@126 8699 # Look at the argument we got. We use all the common list separators.
cannam@126 8700 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
cannam@126 8701 for pkg in $enableval; do
cannam@126 8702 IFS=$lt_save_ifs
cannam@126 8703 if test "X$pkg" = "X$p"; then
cannam@126 8704 enable_fast_install=yes
cannam@126 8705 fi
cannam@126 8706 done
cannam@126 8707 IFS=$lt_save_ifs
cannam@126 8708 ;;
cannam@126 8709 esac
cannam@126 8710 else
cannam@126 8711 enable_fast_install=yes
cannam@126 8712 fi
cannam@126 8713
cannam@126 8714
cannam@126 8715
cannam@126 8716
cannam@126 8717
cannam@126 8718
cannam@126 8719
cannam@126 8720
cannam@126 8721 shared_archive_member_spec=
cannam@126 8722 case $host,$enable_shared in
cannam@126 8723 power*-*-aix[5-9]*,yes)
cannam@126 8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
cannam@126 8725 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
cannam@126 8726
cannam@126 8727 # Check whether --with-aix-soname was given.
cannam@126 8728 if test "${with_aix_soname+set}" = set; then :
cannam@126 8729 withval=$with_aix_soname; case $withval in
cannam@126 8730 aix|svr4|both)
cannam@126 8731 ;;
cannam@126 8732 *)
cannam@126 8733 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
cannam@126 8734 ;;
cannam@126 8735 esac
cannam@126 8736 lt_cv_with_aix_soname=$with_aix_soname
cannam@126 8737 else
cannam@126 8738 if ${lt_cv_with_aix_soname+:} false; then :
cannam@126 8739 $as_echo_n "(cached) " >&6
cannam@126 8740 else
cannam@126 8741 lt_cv_with_aix_soname=aix
cannam@126 8742 fi
cannam@126 8743
cannam@126 8744 with_aix_soname=$lt_cv_with_aix_soname
cannam@126 8745 fi
cannam@126 8746
cannam@126 8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
cannam@126 8748 $as_echo "$with_aix_soname" >&6; }
cannam@126 8749 if test aix != "$with_aix_soname"; then
cannam@126 8750 # For the AIX way of multilib, we name the shared archive member
cannam@126 8751 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
cannam@126 8752 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
cannam@126 8753 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
cannam@126 8754 # the AIX toolchain works better with OBJECT_MODE set (default 32).
cannam@126 8755 if test 64 = "${OBJECT_MODE-32}"; then
cannam@126 8756 shared_archive_member_spec=shr_64
cannam@126 8757 else
cannam@126 8758 shared_archive_member_spec=shr
cannam@126 8759 fi
cannam@126 8760 fi
cannam@126 8761 ;;
cannam@126 8762 *)
cannam@126 8763 with_aix_soname=aix
cannam@126 8764 ;;
cannam@126 8765 esac
cannam@126 8766
cannam@126 8767
cannam@126 8768
cannam@126 8769
cannam@126 8770
cannam@126 8771
cannam@126 8772
cannam@126 8773
cannam@126 8774
cannam@126 8775
cannam@126 8776 # This can be used to rebuild libtool when needed
cannam@126 8777 LIBTOOL_DEPS=$ltmain
cannam@126 8778
cannam@126 8779 # Always use our own libtool.
cannam@126 8780 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
cannam@126 8781
cannam@126 8782
cannam@126 8783
cannam@126 8784
cannam@126 8785
cannam@126 8786
cannam@126 8787
cannam@126 8788
cannam@126 8789
cannam@126 8790
cannam@126 8791
cannam@126 8792
cannam@126 8793
cannam@126 8794
cannam@126 8795
cannam@126 8796
cannam@126 8797
cannam@126 8798
cannam@126 8799
cannam@126 8800
cannam@126 8801
cannam@126 8802
cannam@126 8803
cannam@126 8804
cannam@126 8805
cannam@126 8806
cannam@126 8807
cannam@126 8808
cannam@126 8809
cannam@126 8810
cannam@126 8811 test -z "$LN_S" && LN_S="ln -s"
cannam@126 8812
cannam@126 8813
cannam@126 8814
cannam@126 8815
cannam@126 8816
cannam@126 8817
cannam@126 8818
cannam@126 8819
cannam@126 8820
cannam@126 8821
cannam@126 8822
cannam@126 8823
cannam@126 8824
cannam@126 8825
cannam@126 8826 if test -n "${ZSH_VERSION+set}"; then
cannam@126 8827 setopt NO_GLOB_SUBST
cannam@126 8828 fi
cannam@126 8829
cannam@126 8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cannam@126 8831 $as_echo_n "checking for objdir... " >&6; }
cannam@126 8832 if ${lt_cv_objdir+:} false; then :
cannam@126 8833 $as_echo_n "(cached) " >&6
cannam@126 8834 else
cannam@126 8835 rm -f .libs 2>/dev/null
cannam@126 8836 mkdir .libs 2>/dev/null
cannam@126 8837 if test -d .libs; then
cannam@126 8838 lt_cv_objdir=.libs
cannam@126 8839 else
cannam@126 8840 # MS-DOS does not allow filenames that begin with a dot.
cannam@126 8841 lt_cv_objdir=_libs
cannam@126 8842 fi
cannam@126 8843 rmdir .libs 2>/dev/null
cannam@126 8844 fi
cannam@126 8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cannam@126 8846 $as_echo "$lt_cv_objdir" >&6; }
cannam@126 8847 objdir=$lt_cv_objdir
cannam@126 8848
cannam@126 8849
cannam@126 8850
cannam@126 8851
cannam@126 8852
cannam@126 8853 cat >>confdefs.h <<_ACEOF
cannam@126 8854 #define LT_OBJDIR "$lt_cv_objdir/"
cannam@126 8855 _ACEOF
cannam@126 8856
cannam@126 8857
cannam@126 8858
cannam@126 8859
cannam@126 8860 case $host_os in
cannam@126 8861 aix3*)
cannam@126 8862 # AIX sometimes has problems with the GCC collect2 program. For some
cannam@126 8863 # reason, if we set the COLLECT_NAMES environment variable, the problems
cannam@126 8864 # vanish in a puff of smoke.
cannam@126 8865 if test set != "${COLLECT_NAMES+set}"; then
cannam@126 8866 COLLECT_NAMES=
cannam@126 8867 export COLLECT_NAMES
cannam@126 8868 fi
cannam@126 8869 ;;
cannam@126 8870 esac
cannam@126 8871
cannam@126 8872 # Global variables:
cannam@126 8873 ofile=libtool
cannam@126 8874 can_build_shared=yes
cannam@126 8875
cannam@126 8876 # All known linkers require a '.a' archive for static linking (except MSVC,
cannam@126 8877 # which needs '.lib').
cannam@126 8878 libext=a
cannam@126 8879
cannam@126 8880 with_gnu_ld=$lt_cv_prog_gnu_ld
cannam@126 8881
cannam@126 8882 old_CC=$CC
cannam@126 8883 old_CFLAGS=$CFLAGS
cannam@126 8884
cannam@126 8885 # Set sane defaults for various variables
cannam@126 8886 test -z "$CC" && CC=cc
cannam@126 8887 test -z "$LTCC" && LTCC=$CC
cannam@126 8888 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
cannam@126 8889 test -z "$LD" && LD=ld
cannam@126 8890 test -z "$ac_objext" && ac_objext=o
cannam@126 8891
cannam@126 8892 func_cc_basename $compiler
cannam@126 8893 cc_basename=$func_cc_basename_result
cannam@126 8894
cannam@126 8895
cannam@126 8896 # Only perform the check for file, if the check method requires it
cannam@126 8897 test -z "$MAGIC_CMD" && MAGIC_CMD=file
cannam@126 8898 case $deplibs_check_method in
cannam@126 8899 file_magic*)
cannam@126 8900 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cannam@126 8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cannam@126 8902 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cannam@126 8903 if ${lt_cv_path_MAGIC_CMD+:} false; then :
cannam@126 8904 $as_echo_n "(cached) " >&6
cannam@126 8905 else
cannam@126 8906 case $MAGIC_CMD in
cannam@126 8907 [\\/*] | ?:[\\/]*)
cannam@126 8908 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
cannam@126 8909 ;;
cannam@126 8910 *)
cannam@126 8911 lt_save_MAGIC_CMD=$MAGIC_CMD
cannam@126 8912 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
cannam@126 8913 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
cannam@126 8914 for ac_dir in $ac_dummy; do
cannam@126 8915 IFS=$lt_save_ifs
cannam@126 8916 test -z "$ac_dir" && ac_dir=.
cannam@126 8917 if test -f "$ac_dir/${ac_tool_prefix}file"; then
cannam@126 8918 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
cannam@126 8919 if test -n "$file_magic_test_file"; then
cannam@126 8920 case $deplibs_check_method in
cannam@126 8921 "file_magic "*)
cannam@126 8922 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
cannam@126 8923 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
cannam@126 8924 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
cannam@126 8925 $EGREP "$file_magic_regex" > /dev/null; then
cannam@126 8926 :
cannam@126 8927 else
cannam@126 8928 cat <<_LT_EOF 1>&2
cannam@126 8929
cannam@126 8930 *** Warning: the command libtool uses to detect shared libraries,
cannam@126 8931 *** $file_magic_cmd, produces output that libtool cannot recognize.
cannam@126 8932 *** The result is that libtool may fail to recognize shared libraries
cannam@126 8933 *** as such. This will affect the creation of libtool libraries that
cannam@126 8934 *** depend on shared libraries, but programs linked with such libtool
cannam@126 8935 *** libraries will work regardless of this problem. Nevertheless, you
cannam@126 8936 *** may want to report the problem to your system manager and/or to
cannam@126 8937 *** bug-libtool@gnu.org
cannam@126 8938
cannam@126 8939 _LT_EOF
cannam@126 8940 fi ;;
cannam@126 8941 esac
cannam@126 8942 fi
cannam@126 8943 break
cannam@126 8944 fi
cannam@126 8945 done
cannam@126 8946 IFS=$lt_save_ifs
cannam@126 8947 MAGIC_CMD=$lt_save_MAGIC_CMD
cannam@126 8948 ;;
cannam@126 8949 esac
cannam@126 8950 fi
cannam@126 8951
cannam@126 8952 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
cannam@126 8953 if test -n "$MAGIC_CMD"; then
cannam@126 8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cannam@126 8955 $as_echo "$MAGIC_CMD" >&6; }
cannam@126 8956 else
cannam@126 8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 8958 $as_echo "no" >&6; }
cannam@126 8959 fi
cannam@126 8960
cannam@126 8961
cannam@126 8962
cannam@126 8963
cannam@126 8964
cannam@126 8965 if test -z "$lt_cv_path_MAGIC_CMD"; then
cannam@126 8966 if test -n "$ac_tool_prefix"; then
cannam@126 8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cannam@126 8968 $as_echo_n "checking for file... " >&6; }
cannam@126 8969 if ${lt_cv_path_MAGIC_CMD+:} false; then :
cannam@126 8970 $as_echo_n "(cached) " >&6
cannam@126 8971 else
cannam@126 8972 case $MAGIC_CMD in
cannam@126 8973 [\\/*] | ?:[\\/]*)
cannam@126 8974 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
cannam@126 8975 ;;
cannam@126 8976 *)
cannam@126 8977 lt_save_MAGIC_CMD=$MAGIC_CMD
cannam@126 8978 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
cannam@126 8979 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
cannam@126 8980 for ac_dir in $ac_dummy; do
cannam@126 8981 IFS=$lt_save_ifs
cannam@126 8982 test -z "$ac_dir" && ac_dir=.
cannam@126 8983 if test -f "$ac_dir/file"; then
cannam@126 8984 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
cannam@126 8985 if test -n "$file_magic_test_file"; then
cannam@126 8986 case $deplibs_check_method in
cannam@126 8987 "file_magic "*)
cannam@126 8988 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
cannam@126 8989 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
cannam@126 8990 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
cannam@126 8991 $EGREP "$file_magic_regex" > /dev/null; then
cannam@126 8992 :
cannam@126 8993 else
cannam@126 8994 cat <<_LT_EOF 1>&2
cannam@126 8995
cannam@126 8996 *** Warning: the command libtool uses to detect shared libraries,
cannam@126 8997 *** $file_magic_cmd, produces output that libtool cannot recognize.
cannam@126 8998 *** The result is that libtool may fail to recognize shared libraries
cannam@126 8999 *** as such. This will affect the creation of libtool libraries that
cannam@126 9000 *** depend on shared libraries, but programs linked with such libtool
cannam@126 9001 *** libraries will work regardless of this problem. Nevertheless, you
cannam@126 9002 *** may want to report the problem to your system manager and/or to
cannam@126 9003 *** bug-libtool@gnu.org
cannam@126 9004
cannam@126 9005 _LT_EOF
cannam@126 9006 fi ;;
cannam@126 9007 esac
cannam@126 9008 fi
cannam@126 9009 break
cannam@126 9010 fi
cannam@126 9011 done
cannam@126 9012 IFS=$lt_save_ifs
cannam@126 9013 MAGIC_CMD=$lt_save_MAGIC_CMD
cannam@126 9014 ;;
cannam@126 9015 esac
cannam@126 9016 fi
cannam@126 9017
cannam@126 9018 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
cannam@126 9019 if test -n "$MAGIC_CMD"; then
cannam@126 9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cannam@126 9021 $as_echo "$MAGIC_CMD" >&6; }
cannam@126 9022 else
cannam@126 9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 9024 $as_echo "no" >&6; }
cannam@126 9025 fi
cannam@126 9026
cannam@126 9027
cannam@126 9028 else
cannam@126 9029 MAGIC_CMD=:
cannam@126 9030 fi
cannam@126 9031 fi
cannam@126 9032
cannam@126 9033 fi
cannam@126 9034 ;;
cannam@126 9035 esac
cannam@126 9036
cannam@126 9037 # Use C for the default configuration in the libtool script
cannam@126 9038
cannam@126 9039 lt_save_CC=$CC
cannam@126 9040 ac_ext=c
cannam@126 9041 ac_cpp='$CPP $CPPFLAGS'
cannam@126 9042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@126 9043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@126 9044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@126 9045
cannam@126 9046
cannam@126 9047 # Source file extension for C test sources.
cannam@126 9048 ac_ext=c
cannam@126 9049
cannam@126 9050 # Object file extension for compiled C test sources.
cannam@126 9051 objext=o
cannam@126 9052 objext=$objext
cannam@126 9053
cannam@126 9054 # Code to be used in simple compile tests
cannam@126 9055 lt_simple_compile_test_code="int some_variable = 0;"
cannam@126 9056
cannam@126 9057 # Code to be used in simple link tests
cannam@126 9058 lt_simple_link_test_code='int main(){return(0);}'
cannam@126 9059
cannam@126 9060
cannam@126 9061
cannam@126 9062
cannam@126 9063
cannam@126 9064
cannam@126 9065
cannam@126 9066 # If no C compiler was specified, use CC.
cannam@126 9067 LTCC=${LTCC-"$CC"}
cannam@126 9068
cannam@126 9069 # If no C compiler flags were specified, use CFLAGS.
cannam@126 9070 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cannam@126 9071
cannam@126 9072 # Allow CC to be a program name with arguments.
cannam@126 9073 compiler=$CC
cannam@126 9074
cannam@126 9075 # Save the default compiler, since it gets overwritten when the other
cannam@126 9076 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
cannam@126 9077 compiler_DEFAULT=$CC
cannam@126 9078
cannam@126 9079 # save warnings/boilerplate of simple test code
cannam@126 9080 ac_outfile=conftest.$ac_objext
cannam@126 9081 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
cannam@126 9082 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@126 9083 _lt_compiler_boilerplate=`cat conftest.err`
cannam@126 9084 $RM conftest*
cannam@126 9085
cannam@126 9086 ac_outfile=conftest.$ac_objext
cannam@126 9087 echo "$lt_simple_link_test_code" >conftest.$ac_ext
cannam@126 9088 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@126 9089 _lt_linker_boilerplate=`cat conftest.err`
cannam@126 9090 $RM -r conftest*
cannam@126 9091
cannam@126 9092
cannam@126 9093 ## CAVEAT EMPTOR:
cannam@126 9094 ## There is no encapsulation within the following macros, do not change
cannam@126 9095 ## the running order or otherwise move them around unless you know exactly
cannam@126 9096 ## what you are doing...
cannam@126 9097 if test -n "$compiler"; then
cannam@126 9098
cannam@126 9099 lt_prog_compiler_no_builtin_flag=
cannam@126 9100
cannam@126 9101 if test yes = "$GCC"; then
cannam@126 9102 case $cc_basename in
cannam@126 9103 nvcc*)
cannam@126 9104 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
cannam@126 9105 *)
cannam@126 9106 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
cannam@126 9107 esac
cannam@126 9108
cannam@126 9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cannam@126 9110 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cannam@126 9111 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cannam@126 9112 $as_echo_n "(cached) " >&6
cannam@126 9113 else
cannam@126 9114 lt_cv_prog_compiler_rtti_exceptions=no
cannam@126 9115 ac_outfile=conftest.$ac_objext
cannam@126 9116 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@126 9117 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
cannam@126 9118 # Insert the option either (1) after the last *FLAGS variable, or
cannam@126 9119 # (2) before a word containing "conftest.", or (3) at the end.
cannam@126 9120 # Note that $ac_compile itself does not contain backslashes and begins
cannam@126 9121 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@126 9122 # The option is referenced via a variable to avoid confusing sed.
cannam@126 9123 lt_compile=`echo "$ac_compile" | $SED \
cannam@126 9124 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@126 9125 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@126 9126 -e 's:$: $lt_compiler_flag:'`
cannam@126 9127 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@126 9128 (eval "$lt_compile" 2>conftest.err)
cannam@126 9129 ac_status=$?
cannam@126 9130 cat conftest.err >&5
cannam@126 9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@126 9132 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@126 9133 # The compiler can only warn and ignore the option if not recognized
cannam@126 9134 # So say no if there are warnings other than the usual output.
cannam@126 9135 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cannam@126 9136 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@126 9137 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
cannam@126 9138 lt_cv_prog_compiler_rtti_exceptions=yes
cannam@126 9139 fi
cannam@126 9140 fi
cannam@126 9141 $RM conftest*
cannam@126 9142
cannam@126 9143 fi
cannam@126 9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cannam@126 9145 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
cannam@126 9146
cannam@126 9147 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
cannam@126 9148 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
cannam@126 9149 else
cannam@126 9150 :
cannam@126 9151 fi
cannam@126 9152
cannam@126 9153 fi
cannam@126 9154
cannam@126 9155
cannam@126 9156
cannam@126 9157
cannam@126 9158
cannam@126 9159
cannam@126 9160 lt_prog_compiler_wl=
cannam@126 9161 lt_prog_compiler_pic=
cannam@126 9162 lt_prog_compiler_static=
cannam@126 9163
cannam@126 9164
cannam@126 9165 if test yes = "$GCC"; then
cannam@126 9166 lt_prog_compiler_wl='-Wl,'
cannam@126 9167 lt_prog_compiler_static='-static'
cannam@126 9168
cannam@126 9169 case $host_os in
cannam@126 9170 aix*)
cannam@126 9171 # All AIX code is PIC.
cannam@126 9172 if test ia64 = "$host_cpu"; then
cannam@126 9173 # AIX 5 now supports IA64 processor
cannam@126 9174 lt_prog_compiler_static='-Bstatic'
cannam@126 9175 fi
cannam@126 9176 lt_prog_compiler_pic='-fPIC'
cannam@126 9177 ;;
cannam@126 9178
cannam@126 9179 amigaos*)
cannam@126 9180 case $host_cpu in
cannam@126 9181 powerpc)
cannam@126 9182 # see comment about AmigaOS4 .so support
cannam@126 9183 lt_prog_compiler_pic='-fPIC'
cannam@126 9184 ;;
cannam@126 9185 m68k)
cannam@126 9186 # FIXME: we need at least 68020 code to build shared libraries, but
cannam@126 9187 # adding the '-m68020' flag to GCC prevents building anything better,
cannam@126 9188 # like '-m68040'.
cannam@126 9189 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
cannam@126 9190 ;;
cannam@126 9191 esac
cannam@126 9192 ;;
cannam@126 9193
cannam@126 9194 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
cannam@126 9195 # PIC is the default for these OSes.
cannam@126 9196 ;;
cannam@126 9197
cannam@126 9198 mingw* | cygwin* | pw32* | os2* | cegcc*)
cannam@126 9199 # This hack is so that the source file can tell whether it is being
cannam@126 9200 # built for inclusion in a dll (and should export symbols for example).
cannam@126 9201 # Although the cygwin gcc ignores -fPIC, still need this for old-style
cannam@126 9202 # (--disable-auto-import) libraries
cannam@126 9203 lt_prog_compiler_pic='-DDLL_EXPORT'
cannam@126 9204 case $host_os in
cannam@126 9205 os2*)
cannam@126 9206 lt_prog_compiler_static='$wl-static'
cannam@126 9207 ;;
cannam@126 9208 esac
cannam@126 9209 ;;
cannam@126 9210
cannam@126 9211 darwin* | rhapsody*)
cannam@126 9212 # PIC is the default on this platform
cannam@126 9213 # Common symbols not allowed in MH_DYLIB files
cannam@126 9214 lt_prog_compiler_pic='-fno-common'
cannam@126 9215 ;;
cannam@126 9216
cannam@126 9217 haiku*)
cannam@126 9218 # PIC is the default for Haiku.
cannam@126 9219 # The "-static" flag exists, but is broken.
cannam@126 9220 lt_prog_compiler_static=
cannam@126 9221 ;;
cannam@126 9222
cannam@126 9223 hpux*)
cannam@126 9224 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
cannam@126 9225 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
cannam@126 9226 # sets the default TLS model and affects inlining.
cannam@126 9227 case $host_cpu in
cannam@126 9228 hppa*64*)
cannam@126 9229 # +Z the default
cannam@126 9230 ;;
cannam@126 9231 *)
cannam@126 9232 lt_prog_compiler_pic='-fPIC'
cannam@126 9233 ;;
cannam@126 9234 esac
cannam@126 9235 ;;
cannam@126 9236
cannam@126 9237 interix[3-9]*)
cannam@126 9238 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
cannam@126 9239 # Instead, we relocate shared libraries at runtime.
cannam@126 9240 ;;
cannam@126 9241
cannam@126 9242 msdosdjgpp*)
cannam@126 9243 # Just because we use GCC doesn't mean we suddenly get shared libraries
cannam@126 9244 # on systems that don't support them.
cannam@126 9245 lt_prog_compiler_can_build_shared=no
cannam@126 9246 enable_shared=no
cannam@126 9247 ;;
cannam@126 9248
cannam@126 9249 *nto* | *qnx*)
cannam@126 9250 # QNX uses GNU C++, but need to define -shared option too, otherwise
cannam@126 9251 # it will coredump.
cannam@126 9252 lt_prog_compiler_pic='-fPIC -shared'
cannam@126 9253 ;;
cannam@126 9254
cannam@126 9255 sysv4*MP*)
cannam@126 9256 if test -d /usr/nec; then
cannam@126 9257 lt_prog_compiler_pic=-Kconform_pic
cannam@126 9258 fi
cannam@126 9259 ;;
cannam@126 9260
cannam@126 9261 *)
cannam@126 9262 lt_prog_compiler_pic='-fPIC'
cannam@126 9263 ;;
cannam@126 9264 esac
cannam@126 9265
cannam@126 9266 case $cc_basename in
cannam@126 9267 nvcc*) # Cuda Compiler Driver 2.2
cannam@126 9268 lt_prog_compiler_wl='-Xlinker '
cannam@126 9269 if test -n "$lt_prog_compiler_pic"; then
cannam@126 9270 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
cannam@126 9271 fi
cannam@126 9272 ;;
cannam@126 9273 esac
cannam@126 9274 else
cannam@126 9275 # PORTME Check for flag to pass linker flags through the system compiler.
cannam@126 9276 case $host_os in
cannam@126 9277 aix*)
cannam@126 9278 lt_prog_compiler_wl='-Wl,'
cannam@126 9279 if test ia64 = "$host_cpu"; then
cannam@126 9280 # AIX 5 now supports IA64 processor
cannam@126 9281 lt_prog_compiler_static='-Bstatic'
cannam@126 9282 else
cannam@126 9283 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
cannam@126 9284 fi
cannam@126 9285 ;;
cannam@126 9286
cannam@126 9287 darwin* | rhapsody*)
cannam@126 9288 # PIC is the default on this platform
cannam@126 9289 # Common symbols not allowed in MH_DYLIB files
cannam@126 9290 lt_prog_compiler_pic='-fno-common'
cannam@126 9291 case $cc_basename in
cannam@126 9292 nagfor*)
cannam@126 9293 # NAG Fortran compiler
cannam@126 9294 lt_prog_compiler_wl='-Wl,-Wl,,'
cannam@126 9295 lt_prog_compiler_pic='-PIC'
cannam@126 9296 lt_prog_compiler_static='-Bstatic'
cannam@126 9297 ;;
cannam@126 9298 esac
cannam@126 9299 ;;
cannam@126 9300
cannam@126 9301 mingw* | cygwin* | pw32* | os2* | cegcc*)
cannam@126 9302 # This hack is so that the source file can tell whether it is being
cannam@126 9303 # built for inclusion in a dll (and should export symbols for example).
cannam@126 9304 lt_prog_compiler_pic='-DDLL_EXPORT'
cannam@126 9305 case $host_os in
cannam@126 9306 os2*)
cannam@126 9307 lt_prog_compiler_static='$wl-static'
cannam@126 9308 ;;
cannam@126 9309 esac
cannam@126 9310 ;;
cannam@126 9311
cannam@126 9312 hpux9* | hpux10* | hpux11*)
cannam@126 9313 lt_prog_compiler_wl='-Wl,'
cannam@126 9314 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cannam@126 9315 # not for PA HP-UX.
cannam@126 9316 case $host_cpu in
cannam@126 9317 hppa*64*|ia64*)
cannam@126 9318 # +Z the default
cannam@126 9319 ;;
cannam@126 9320 *)
cannam@126 9321 lt_prog_compiler_pic='+Z'
cannam@126 9322 ;;
cannam@126 9323 esac
cannam@126 9324 # Is there a better lt_prog_compiler_static that works with the bundled CC?
cannam@126 9325 lt_prog_compiler_static='$wl-a ${wl}archive'
cannam@126 9326 ;;
cannam@126 9327
cannam@126 9328 irix5* | irix6* | nonstopux*)
cannam@126 9329 lt_prog_compiler_wl='-Wl,'
cannam@126 9330 # PIC (with -KPIC) is the default.
cannam@126 9331 lt_prog_compiler_static='-non_shared'
cannam@126 9332 ;;
cannam@126 9333
cannam@126 9334 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cannam@126 9335 case $cc_basename in
cannam@126 9336 # old Intel for x86_64, which still supported -KPIC.
cannam@126 9337 ecc*)
cannam@126 9338 lt_prog_compiler_wl='-Wl,'
cannam@126 9339 lt_prog_compiler_pic='-KPIC'
cannam@126 9340 lt_prog_compiler_static='-static'
cannam@126 9341 ;;
cannam@126 9342 # icc used to be incompatible with GCC.
cannam@126 9343 # ICC 10 doesn't accept -KPIC any more.
cannam@126 9344 icc* | ifort*)
cannam@126 9345 lt_prog_compiler_wl='-Wl,'
cannam@126 9346 lt_prog_compiler_pic='-fPIC'
cannam@126 9347 lt_prog_compiler_static='-static'
cannam@126 9348 ;;
cannam@126 9349 # Lahey Fortran 8.1.
cannam@126 9350 lf95*)
cannam@126 9351 lt_prog_compiler_wl='-Wl,'
cannam@126 9352 lt_prog_compiler_pic='--shared'
cannam@126 9353 lt_prog_compiler_static='--static'
cannam@126 9354 ;;
cannam@126 9355 nagfor*)
cannam@126 9356 # NAG Fortran compiler
cannam@126 9357 lt_prog_compiler_wl='-Wl,-Wl,,'
cannam@126 9358 lt_prog_compiler_pic='-PIC'
cannam@126 9359 lt_prog_compiler_static='-Bstatic'
cannam@126 9360 ;;
cannam@126 9361 tcc*)
cannam@126 9362 # Fabrice Bellard et al's Tiny C Compiler
cannam@126 9363 lt_prog_compiler_wl='-Wl,'
cannam@126 9364 lt_prog_compiler_pic='-fPIC'
cannam@126 9365 lt_prog_compiler_static='-static'
cannam@126 9366 ;;
cannam@126 9367 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cannam@126 9368 # Portland Group compilers (*not* the Pentium gcc compiler,
cannam@126 9369 # which looks to be a dead project)
cannam@126 9370 lt_prog_compiler_wl='-Wl,'
cannam@126 9371 lt_prog_compiler_pic='-fpic'
cannam@126 9372 lt_prog_compiler_static='-Bstatic'
cannam@126 9373 ;;
cannam@126 9374 ccc*)
cannam@126 9375 lt_prog_compiler_wl='-Wl,'
cannam@126 9376 # All Alpha code is PIC.
cannam@126 9377 lt_prog_compiler_static='-non_shared'
cannam@126 9378 ;;
cannam@126 9379 xl* | bgxl* | bgf* | mpixl*)
cannam@126 9380 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cannam@126 9381 lt_prog_compiler_wl='-Wl,'
cannam@126 9382 lt_prog_compiler_pic='-qpic'
cannam@126 9383 lt_prog_compiler_static='-qstaticlink'
cannam@126 9384 ;;
cannam@126 9385 *)
cannam@126 9386 case `$CC -V 2>&1 | sed 5q` in
cannam@126 9387 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cannam@126 9388 # Sun Fortran 8.3 passes all unrecognized flags to the linker
cannam@126 9389 lt_prog_compiler_pic='-KPIC'
cannam@126 9390 lt_prog_compiler_static='-Bstatic'
cannam@126 9391 lt_prog_compiler_wl=''
cannam@126 9392 ;;
cannam@126 9393 *Sun\ F* | *Sun*Fortran*)
cannam@126 9394 lt_prog_compiler_pic='-KPIC'
cannam@126 9395 lt_prog_compiler_static='-Bstatic'
cannam@126 9396 lt_prog_compiler_wl='-Qoption ld '
cannam@126 9397 ;;
cannam@126 9398 *Sun\ C*)
cannam@126 9399 # Sun C 5.9
cannam@126 9400 lt_prog_compiler_pic='-KPIC'
cannam@126 9401 lt_prog_compiler_static='-Bstatic'
cannam@126 9402 lt_prog_compiler_wl='-Wl,'
cannam@126 9403 ;;
cannam@126 9404 *Intel*\ [CF]*Compiler*)
cannam@126 9405 lt_prog_compiler_wl='-Wl,'
cannam@126 9406 lt_prog_compiler_pic='-fPIC'
cannam@126 9407 lt_prog_compiler_static='-static'
cannam@126 9408 ;;
cannam@126 9409 *Portland\ Group*)
cannam@126 9410 lt_prog_compiler_wl='-Wl,'
cannam@126 9411 lt_prog_compiler_pic='-fpic'
cannam@126 9412 lt_prog_compiler_static='-Bstatic'
cannam@126 9413 ;;
cannam@126 9414 esac
cannam@126 9415 ;;
cannam@126 9416 esac
cannam@126 9417 ;;
cannam@126 9418
cannam@126 9419 newsos6)
cannam@126 9420 lt_prog_compiler_pic='-KPIC'
cannam@126 9421 lt_prog_compiler_static='-Bstatic'
cannam@126 9422 ;;
cannam@126 9423
cannam@126 9424 *nto* | *qnx*)
cannam@126 9425 # QNX uses GNU C++, but need to define -shared option too, otherwise
cannam@126 9426 # it will coredump.
cannam@126 9427 lt_prog_compiler_pic='-fPIC -shared'
cannam@126 9428 ;;
cannam@126 9429
cannam@126 9430 osf3* | osf4* | osf5*)
cannam@126 9431 lt_prog_compiler_wl='-Wl,'
cannam@126 9432 # All OSF/1 code is PIC.
cannam@126 9433 lt_prog_compiler_static='-non_shared'
cannam@126 9434 ;;
cannam@126 9435
cannam@126 9436 rdos*)
cannam@126 9437 lt_prog_compiler_static='-non_shared'
cannam@126 9438 ;;
cannam@126 9439
cannam@126 9440 solaris*)
cannam@126 9441 lt_prog_compiler_pic='-KPIC'
cannam@126 9442 lt_prog_compiler_static='-Bstatic'
cannam@126 9443 case $cc_basename in
cannam@126 9444 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cannam@126 9445 lt_prog_compiler_wl='-Qoption ld ';;
cannam@126 9446 *)
cannam@126 9447 lt_prog_compiler_wl='-Wl,';;
cannam@126 9448 esac
cannam@126 9449 ;;
cannam@126 9450
cannam@126 9451 sunos4*)
cannam@126 9452 lt_prog_compiler_wl='-Qoption ld '
cannam@126 9453 lt_prog_compiler_pic='-PIC'
cannam@126 9454 lt_prog_compiler_static='-Bstatic'
cannam@126 9455 ;;
cannam@126 9456
cannam@126 9457 sysv4 | sysv4.2uw2* | sysv4.3*)
cannam@126 9458 lt_prog_compiler_wl='-Wl,'
cannam@126 9459 lt_prog_compiler_pic='-KPIC'
cannam@126 9460 lt_prog_compiler_static='-Bstatic'
cannam@126 9461 ;;
cannam@126 9462
cannam@126 9463 sysv4*MP*)
cannam@126 9464 if test -d /usr/nec; then
cannam@126 9465 lt_prog_compiler_pic='-Kconform_pic'
cannam@126 9466 lt_prog_compiler_static='-Bstatic'
cannam@126 9467 fi
cannam@126 9468 ;;
cannam@126 9469
cannam@126 9470 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
cannam@126 9471 lt_prog_compiler_wl='-Wl,'
cannam@126 9472 lt_prog_compiler_pic='-KPIC'
cannam@126 9473 lt_prog_compiler_static='-Bstatic'
cannam@126 9474 ;;
cannam@126 9475
cannam@126 9476 unicos*)
cannam@126 9477 lt_prog_compiler_wl='-Wl,'
cannam@126 9478 lt_prog_compiler_can_build_shared=no
cannam@126 9479 ;;
cannam@126 9480
cannam@126 9481 uts4*)
cannam@126 9482 lt_prog_compiler_pic='-pic'
cannam@126 9483 lt_prog_compiler_static='-Bstatic'
cannam@126 9484 ;;
cannam@126 9485
cannam@126 9486 *)
cannam@126 9487 lt_prog_compiler_can_build_shared=no
cannam@126 9488 ;;
cannam@126 9489 esac
cannam@126 9490 fi
cannam@126 9491
cannam@126 9492 case $host_os in
cannam@126 9493 # For platforms that do not support PIC, -DPIC is meaningless:
cannam@126 9494 *djgpp*)
cannam@126 9495 lt_prog_compiler_pic=
cannam@126 9496 ;;
cannam@126 9497 *)
cannam@126 9498 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
cannam@126 9499 ;;
cannam@126 9500 esac
cannam@126 9501
cannam@126 9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cannam@126 9503 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
cannam@126 9504 if ${lt_cv_prog_compiler_pic+:} false; then :
cannam@126 9505 $as_echo_n "(cached) " >&6
cannam@126 9506 else
cannam@126 9507 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
cannam@126 9508 fi
cannam@126 9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
cannam@126 9510 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
cannam@126 9511 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cannam@126 9512
cannam@126 9513 #
cannam@126 9514 # Check to make sure the PIC flag actually works.
cannam@126 9515 #
cannam@126 9516 if test -n "$lt_prog_compiler_pic"; then
cannam@126 9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cannam@126 9518 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cannam@126 9519 if ${lt_cv_prog_compiler_pic_works+:} false; then :
cannam@126 9520 $as_echo_n "(cached) " >&6
cannam@126 9521 else
cannam@126 9522 lt_cv_prog_compiler_pic_works=no
cannam@126 9523 ac_outfile=conftest.$ac_objext
cannam@126 9524 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@126 9525 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
cannam@126 9526 # Insert the option either (1) after the last *FLAGS variable, or
cannam@126 9527 # (2) before a word containing "conftest.", or (3) at the end.
cannam@126 9528 # Note that $ac_compile itself does not contain backslashes and begins
cannam@126 9529 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@126 9530 # The option is referenced via a variable to avoid confusing sed.
cannam@126 9531 lt_compile=`echo "$ac_compile" | $SED \
cannam@126 9532 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@126 9533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@126 9534 -e 's:$: $lt_compiler_flag:'`
cannam@126 9535 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@126 9536 (eval "$lt_compile" 2>conftest.err)
cannam@126 9537 ac_status=$?
cannam@126 9538 cat conftest.err >&5
cannam@126 9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@126 9540 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@126 9541 # The compiler can only warn and ignore the option if not recognized
cannam@126 9542 # So say no if there are warnings other than the usual output.
cannam@126 9543 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cannam@126 9544 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@126 9545 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
cannam@126 9546 lt_cv_prog_compiler_pic_works=yes
cannam@126 9547 fi
cannam@126 9548 fi
cannam@126 9549 $RM conftest*
cannam@126 9550
cannam@126 9551 fi
cannam@126 9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cannam@126 9553 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
cannam@126 9554
cannam@126 9555 if test yes = "$lt_cv_prog_compiler_pic_works"; then
cannam@126 9556 case $lt_prog_compiler_pic in
cannam@126 9557 "" | " "*) ;;
cannam@126 9558 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
cannam@126 9559 esac
cannam@126 9560 else
cannam@126 9561 lt_prog_compiler_pic=
cannam@126 9562 lt_prog_compiler_can_build_shared=no
cannam@126 9563 fi
cannam@126 9564
cannam@126 9565 fi
cannam@126 9566
cannam@126 9567
cannam@126 9568
cannam@126 9569
cannam@126 9570
cannam@126 9571
cannam@126 9572
cannam@126 9573
cannam@126 9574
cannam@126 9575
cannam@126 9576
cannam@126 9577 #
cannam@126 9578 # Check to make sure the static flag actually works.
cannam@126 9579 #
cannam@126 9580 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cannam@126 9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cannam@126 9582 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cannam@126 9583 if ${lt_cv_prog_compiler_static_works+:} false; then :
cannam@126 9584 $as_echo_n "(cached) " >&6
cannam@126 9585 else
cannam@126 9586 lt_cv_prog_compiler_static_works=no
cannam@126 9587 save_LDFLAGS=$LDFLAGS
cannam@126 9588 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
cannam@126 9589 echo "$lt_simple_link_test_code" > conftest.$ac_ext
cannam@126 9590 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
cannam@126 9591 # The linker can only warn and ignore the option if not recognized
cannam@126 9592 # So say no if there are warnings
cannam@126 9593 if test -s conftest.err; then
cannam@126 9594 # Append any errors to the config.log.
cannam@126 9595 cat conftest.err 1>&5
cannam@126 9596 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cannam@126 9597 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@126 9598 if diff conftest.exp conftest.er2 >/dev/null; then
cannam@126 9599 lt_cv_prog_compiler_static_works=yes
cannam@126 9600 fi
cannam@126 9601 else
cannam@126 9602 lt_cv_prog_compiler_static_works=yes
cannam@126 9603 fi
cannam@126 9604 fi
cannam@126 9605 $RM -r conftest*
cannam@126 9606 LDFLAGS=$save_LDFLAGS
cannam@126 9607
cannam@126 9608 fi
cannam@126 9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cannam@126 9610 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
cannam@126 9611
cannam@126 9612 if test yes = "$lt_cv_prog_compiler_static_works"; then
cannam@126 9613 :
cannam@126 9614 else
cannam@126 9615 lt_prog_compiler_static=
cannam@126 9616 fi
cannam@126 9617
cannam@126 9618
cannam@126 9619
cannam@126 9620
cannam@126 9621
cannam@126 9622
cannam@126 9623
cannam@126 9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@126 9625 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cannam@126 9626 if ${lt_cv_prog_compiler_c_o+:} false; then :
cannam@126 9627 $as_echo_n "(cached) " >&6
cannam@126 9628 else
cannam@126 9629 lt_cv_prog_compiler_c_o=no
cannam@126 9630 $RM -r conftest 2>/dev/null
cannam@126 9631 mkdir conftest
cannam@126 9632 cd conftest
cannam@126 9633 mkdir out
cannam@126 9634 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@126 9635
cannam@126 9636 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@126 9637 # Insert the option either (1) after the last *FLAGS variable, or
cannam@126 9638 # (2) before a word containing "conftest.", or (3) at the end.
cannam@126 9639 # Note that $ac_compile itself does not contain backslashes and begins
cannam@126 9640 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@126 9641 lt_compile=`echo "$ac_compile" | $SED \
cannam@126 9642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@126 9643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@126 9644 -e 's:$: $lt_compiler_flag:'`
cannam@126 9645 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@126 9646 (eval "$lt_compile" 2>out/conftest.err)
cannam@126 9647 ac_status=$?
cannam@126 9648 cat out/conftest.err >&5
cannam@126 9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@126 9650 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@126 9651 then
cannam@126 9652 # The compiler can only warn and ignore the option if not recognized
cannam@126 9653 # So say no if there are warnings
cannam@126 9654 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cannam@126 9655 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cannam@126 9656 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cannam@126 9657 lt_cv_prog_compiler_c_o=yes
cannam@126 9658 fi
cannam@126 9659 fi
cannam@126 9660 chmod u+w . 2>&5
cannam@126 9661 $RM conftest*
cannam@126 9662 # SGI C++ compiler will create directory out/ii_files/ for
cannam@126 9663 # template instantiation
cannam@126 9664 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
cannam@126 9665 $RM out/* && rmdir out
cannam@126 9666 cd ..
cannam@126 9667 $RM -r conftest
cannam@126 9668 $RM conftest*
cannam@126 9669
cannam@126 9670 fi
cannam@126 9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cannam@126 9672 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
cannam@126 9673
cannam@126 9674
cannam@126 9675
cannam@126 9676
cannam@126 9677
cannam@126 9678
cannam@126 9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@126 9680 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cannam@126 9681 if ${lt_cv_prog_compiler_c_o+:} false; then :
cannam@126 9682 $as_echo_n "(cached) " >&6
cannam@126 9683 else
cannam@126 9684 lt_cv_prog_compiler_c_o=no
cannam@126 9685 $RM -r conftest 2>/dev/null
cannam@126 9686 mkdir conftest
cannam@126 9687 cd conftest
cannam@126 9688 mkdir out
cannam@126 9689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@126 9690
cannam@126 9691 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@126 9692 # Insert the option either (1) after the last *FLAGS variable, or
cannam@126 9693 # (2) before a word containing "conftest.", or (3) at the end.
cannam@126 9694 # Note that $ac_compile itself does not contain backslashes and begins
cannam@126 9695 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@126 9696 lt_compile=`echo "$ac_compile" | $SED \
cannam@126 9697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@126 9698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@126 9699 -e 's:$: $lt_compiler_flag:'`
cannam@126 9700 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@126 9701 (eval "$lt_compile" 2>out/conftest.err)
cannam@126 9702 ac_status=$?
cannam@126 9703 cat out/conftest.err >&5
cannam@126 9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@126 9705 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@126 9706 then
cannam@126 9707 # The compiler can only warn and ignore the option if not recognized
cannam@126 9708 # So say no if there are warnings
cannam@126 9709 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cannam@126 9710 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cannam@126 9711 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cannam@126 9712 lt_cv_prog_compiler_c_o=yes
cannam@126 9713 fi
cannam@126 9714 fi
cannam@126 9715 chmod u+w . 2>&5
cannam@126 9716 $RM conftest*
cannam@126 9717 # SGI C++ compiler will create directory out/ii_files/ for
cannam@126 9718 # template instantiation
cannam@126 9719 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
cannam@126 9720 $RM out/* && rmdir out
cannam@126 9721 cd ..
cannam@126 9722 $RM -r conftest
cannam@126 9723 $RM conftest*
cannam@126 9724
cannam@126 9725 fi
cannam@126 9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cannam@126 9727 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
cannam@126 9728
cannam@126 9729
cannam@126 9730
cannam@126 9731
cannam@126 9732 hard_links=nottested
cannam@126 9733 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
cannam@126 9734 # do not overwrite the value of need_locks provided by the user
cannam@126 9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cannam@126 9736 $as_echo_n "checking if we can lock with hard links... " >&6; }
cannam@126 9737 hard_links=yes
cannam@126 9738 $RM conftest*
cannam@126 9739 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@126 9740 touch conftest.a
cannam@126 9741 ln conftest.a conftest.b 2>&5 || hard_links=no
cannam@126 9742 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@126 9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cannam@126 9744 $as_echo "$hard_links" >&6; }
cannam@126 9745 if test no = "$hard_links"; then
cannam@126 9746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
cannam@126 9747 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
cannam@126 9748 need_locks=warn
cannam@126 9749 fi
cannam@126 9750 else
cannam@126 9751 need_locks=no
cannam@126 9752 fi
cannam@126 9753
cannam@126 9754
cannam@126 9755
cannam@126 9756
cannam@126 9757
cannam@126 9758
cannam@126 9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@126 9760 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
cannam@126 9761
cannam@126 9762 runpath_var=
cannam@126 9763 allow_undefined_flag=
cannam@126 9764 always_export_symbols=no
cannam@126 9765 archive_cmds=
cannam@126 9766 archive_expsym_cmds=
cannam@126 9767 compiler_needs_object=no
cannam@126 9768 enable_shared_with_static_runtimes=no
cannam@126 9769 export_dynamic_flag_spec=
cannam@126 9770 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@126 9771 hardcode_automatic=no
cannam@126 9772 hardcode_direct=no
cannam@126 9773 hardcode_direct_absolute=no
cannam@126 9774 hardcode_libdir_flag_spec=
cannam@126 9775 hardcode_libdir_separator=
cannam@126 9776 hardcode_minus_L=no
cannam@126 9777 hardcode_shlibpath_var=unsupported
cannam@126 9778 inherit_rpath=no
cannam@126 9779 link_all_deplibs=unknown
cannam@126 9780 module_cmds=
cannam@126 9781 module_expsym_cmds=
cannam@126 9782 old_archive_from_new_cmds=
cannam@126 9783 old_archive_from_expsyms_cmds=
cannam@126 9784 thread_safe_flag_spec=
cannam@126 9785 whole_archive_flag_spec=
cannam@126 9786 # include_expsyms should be a list of space-separated symbols to be *always*
cannam@126 9787 # included in the symbol list
cannam@126 9788 include_expsyms=
cannam@126 9789 # exclude_expsyms can be an extended regexp of symbols to exclude
cannam@126 9790 # it will be wrapped by ' (' and ')$', so one must not match beginning or
cannam@126 9791 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
cannam@126 9792 # as well as any symbol that contains 'd'.
cannam@126 9793 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cannam@126 9794 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
cannam@126 9795 # platforms (ab)use it in PIC code, but their linkers get confused if
cannam@126 9796 # the symbol is explicitly referenced. Since portable code cannot
cannam@126 9797 # rely on this symbol name, it's probably fine to never include it in
cannam@126 9798 # preloaded symbol tables.
cannam@126 9799 # Exclude shared library initialization/finalization symbols.
cannam@126 9800 extract_expsyms_cmds=
cannam@126 9801
cannam@126 9802 case $host_os in
cannam@126 9803 cygwin* | mingw* | pw32* | cegcc*)
cannam@126 9804 # FIXME: the MSVC++ port hasn't been tested in a loooong time
cannam@126 9805 # When not using gcc, we currently assume that we are using
cannam@126 9806 # Microsoft Visual C++.
cannam@126 9807 if test yes != "$GCC"; then
cannam@126 9808 with_gnu_ld=no
cannam@126 9809 fi
cannam@126 9810 ;;
cannam@126 9811 interix*)
cannam@126 9812 # we just hope/assume this is gcc and not c89 (= MSVC++)
cannam@126 9813 with_gnu_ld=yes
cannam@126 9814 ;;
cannam@126 9815 openbsd* | bitrig*)
cannam@126 9816 with_gnu_ld=no
cannam@126 9817 ;;
cannam@126 9818 linux* | k*bsd*-gnu | gnu*)
cannam@126 9819 link_all_deplibs=no
cannam@126 9820 ;;
cannam@126 9821 esac
cannam@126 9822
cannam@126 9823 ld_shlibs=yes
cannam@126 9824
cannam@126 9825 # On some targets, GNU ld is compatible enough with the native linker
cannam@126 9826 # that we're better off using the native interface for both.
cannam@126 9827 lt_use_gnu_ld_interface=no
cannam@126 9828 if test yes = "$with_gnu_ld"; then
cannam@126 9829 case $host_os in
cannam@126 9830 aix*)
cannam@126 9831 # The AIX port of GNU ld has always aspired to compatibility
cannam@126 9832 # with the native linker. However, as the warning in the GNU ld
cannam@126 9833 # block says, versions before 2.19.5* couldn't really create working
cannam@126 9834 # shared libraries, regardless of the interface used.
cannam@126 9835 case `$LD -v 2>&1` in
cannam@126 9836 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
cannam@126 9837 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
cannam@126 9838 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
cannam@126 9839 *)
cannam@126 9840 lt_use_gnu_ld_interface=yes
cannam@126 9841 ;;
cannam@126 9842 esac
cannam@126 9843 ;;
cannam@126 9844 *)
cannam@126 9845 lt_use_gnu_ld_interface=yes
cannam@126 9846 ;;
cannam@126 9847 esac
cannam@126 9848 fi
cannam@126 9849
cannam@126 9850 if test yes = "$lt_use_gnu_ld_interface"; then
cannam@126 9851 # If archive_cmds runs LD, not CC, wlarc should be empty
cannam@126 9852 wlarc='$wl'
cannam@126 9853
cannam@126 9854 # Set some defaults for GNU ld with shared library support. These
cannam@126 9855 # are reset later if shared libraries are not supported. Putting them
cannam@126 9856 # here allows them to be overridden if necessary.
cannam@126 9857 runpath_var=LD_RUN_PATH
cannam@126 9858 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cannam@126 9859 export_dynamic_flag_spec='$wl--export-dynamic'
cannam@126 9860 # ancient GNU ld didn't support --whole-archive et. al.
cannam@126 9861 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
cannam@126 9862 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
cannam@126 9863 else
cannam@126 9864 whole_archive_flag_spec=
cannam@126 9865 fi
cannam@126 9866 supports_anon_versioning=no
cannam@126 9867 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
cannam@126 9868 *GNU\ gold*) supports_anon_versioning=yes ;;
cannam@126 9869 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
cannam@126 9870 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
cannam@126 9871 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
cannam@126 9872 *\ 2.11.*) ;; # other 2.11 versions
cannam@126 9873 *) supports_anon_versioning=yes ;;
cannam@126 9874 esac
cannam@126 9875
cannam@126 9876 # See if GNU ld supports shared libraries.
cannam@126 9877 case $host_os in
cannam@126 9878 aix[3-9]*)
cannam@126 9879 # On AIX/PPC, the GNU linker is very broken
cannam@126 9880 if test ia64 != "$host_cpu"; then
cannam@126 9881 ld_shlibs=no
cannam@126 9882 cat <<_LT_EOF 1>&2
cannam@126 9883
cannam@126 9884 *** Warning: the GNU linker, at least up to release 2.19, is reported
cannam@126 9885 *** to be unable to reliably create shared libraries on AIX.
cannam@126 9886 *** Therefore, libtool is disabling shared libraries support. If you
cannam@126 9887 *** really care for shared libraries, you may want to install binutils
cannam@126 9888 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
cannam@126 9889 *** You will then need to restart the configuration process.
cannam@126 9890
cannam@126 9891 _LT_EOF
cannam@126 9892 fi
cannam@126 9893 ;;
cannam@126 9894
cannam@126 9895 amigaos*)
cannam@126 9896 case $host_cpu in
cannam@126 9897 powerpc)
cannam@126 9898 # see comment about AmigaOS4 .so support
cannam@126 9899 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cannam@126 9900 archive_expsym_cmds=''
cannam@126 9901 ;;
cannam@126 9902 m68k)
cannam@126 9903 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@126 9904 hardcode_libdir_flag_spec='-L$libdir'
cannam@126 9905 hardcode_minus_L=yes
cannam@126 9906 ;;
cannam@126 9907 esac
cannam@126 9908 ;;
cannam@126 9909
cannam@126 9910 beos*)
cannam@126 9911 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@126 9912 allow_undefined_flag=unsupported
cannam@126 9913 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
cannam@126 9914 # support --undefined. This deserves some investigation. FIXME
cannam@126 9915 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cannam@126 9916 else
cannam@126 9917 ld_shlibs=no
cannam@126 9918 fi
cannam@126 9919 ;;
cannam@126 9920
cannam@126 9921 cygwin* | mingw* | pw32* | cegcc*)
cannam@126 9922 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
cannam@126 9923 # as there is no search path for DLLs.
cannam@126 9924 hardcode_libdir_flag_spec='-L$libdir'
cannam@126 9925 export_dynamic_flag_spec='$wl--export-all-symbols'
cannam@126 9926 allow_undefined_flag=unsupported
cannam@126 9927 always_export_symbols=no
cannam@126 9928 enable_shared_with_static_runtimes=yes
cannam@126 9929 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@126 9930 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
cannam@126 9931
cannam@126 9932 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
cannam@126 9933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
cannam@126 9934 # If the export-symbols file already is a .def file, use it as
cannam@126 9935 # is; otherwise, prepend EXPORTS...
cannam@126 9936 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
cannam@126 9937 cp $export_symbols $output_objdir/$soname.def;
cannam@126 9938 else
cannam@126 9939 echo EXPORTS > $output_objdir/$soname.def;
cannam@126 9940 cat $export_symbols >> $output_objdir/$soname.def;
cannam@126 9941 fi~
cannam@126 9942 $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@126 9943 else
cannam@126 9944 ld_shlibs=no
cannam@126 9945 fi
cannam@126 9946 ;;
cannam@126 9947
cannam@126 9948 haiku*)
cannam@126 9949 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cannam@126 9950 link_all_deplibs=yes
cannam@126 9951 ;;
cannam@126 9952
cannam@126 9953 os2*)
cannam@126 9954 hardcode_libdir_flag_spec='-L$libdir'
cannam@126 9955 hardcode_minus_L=yes
cannam@126 9956 allow_undefined_flag=unsupported
cannam@126 9957 shrext_cmds=.dll
cannam@126 9958 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
cannam@126 9959 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
cannam@126 9960 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
cannam@126 9961 $ECHO EXPORTS >> $output_objdir/$libname.def~
cannam@126 9962 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
cannam@126 9963 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
cannam@126 9964 emximp -o $lib $output_objdir/$libname.def'
cannam@126 9965 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
cannam@126 9966 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
cannam@126 9967 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
cannam@126 9968 $ECHO EXPORTS >> $output_objdir/$libname.def~
cannam@126 9969 prefix_cmds="$SED"~
cannam@126 9970 if test EXPORTS = "`$SED 1q $export_symbols`"; then
cannam@126 9971 prefix_cmds="$prefix_cmds -e 1d";
cannam@126 9972 fi~
cannam@126 9973 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
cannam@126 9974 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
cannam@126 9975 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
cannam@126 9976 emximp -o $lib $output_objdir/$libname.def'
cannam@126 9977 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
cannam@126 9978 enable_shared_with_static_runtimes=yes
cannam@126 9979 ;;
cannam@126 9980
cannam@126 9981 interix[3-9]*)
cannam@126 9982 hardcode_direct=no
cannam@126 9983 hardcode_shlibpath_var=no
cannam@126 9984 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
cannam@126 9985 export_dynamic_flag_spec='$wl-E'
cannam@126 9986 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
cannam@126 9987 # Instead, shared libraries are loaded at an image base (0x10000000 by
cannam@126 9988 # default) and relocated if they conflict, which is a slow very memory
cannam@126 9989 # consuming and fragmenting process. To avoid this, we pick a random,
cannam@126 9990 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
cannam@126 9991 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
cannam@126 9992 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@126 9993 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@126 9994 ;;
cannam@126 9995
cannam@126 9996 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cannam@126 9997 tmp_diet=no
cannam@126 9998 if test linux-dietlibc = "$host_os"; then
cannam@126 9999 case $cc_basename in
cannam@126 10000 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
cannam@126 10001 esac
cannam@126 10002 fi
cannam@126 10003 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
cannam@126 10004 && test no = "$tmp_diet"
cannam@126 10005 then
cannam@126 10006 tmp_addflag=' $pic_flag'
cannam@126 10007 tmp_sharedflag='-shared'
cannam@126 10008 case $cc_basename,$host_cpu in
cannam@126 10009 pgcc*) # Portland Group C compiler
cannam@126 10010 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@126 10011 tmp_addflag=' $pic_flag'
cannam@126 10012 ;;
cannam@126 10013 pgf77* | pgf90* | pgf95* | pgfortran*)
cannam@126 10014 # Portland Group f77 and f90 compilers
cannam@126 10015 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@126 10016 tmp_addflag=' $pic_flag -Mnomain' ;;
cannam@126 10017 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
cannam@126 10018 tmp_addflag=' -i_dynamic' ;;
cannam@126 10019 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
cannam@126 10020 tmp_addflag=' -i_dynamic -nofor_main' ;;
cannam@126 10021 ifc* | ifort*) # Intel Fortran compiler
cannam@126 10022 tmp_addflag=' -nofor_main' ;;
cannam@126 10023 lf95*) # Lahey Fortran 8.1
cannam@126 10024 whole_archive_flag_spec=
cannam@126 10025 tmp_sharedflag='--shared' ;;
cannam@126 10026 nagfor*) # NAGFOR 5.3
cannam@126 10027 tmp_sharedflag='-Wl,-shared' ;;
cannam@126 10028 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cannam@126 10029 tmp_sharedflag='-qmkshrobj'
cannam@126 10030 tmp_addflag= ;;
cannam@126 10031 nvcc*) # Cuda Compiler Driver 2.2
cannam@126 10032 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@126 10033 compiler_needs_object=yes
cannam@126 10034 ;;
cannam@126 10035 esac
cannam@126 10036 case `$CC -V 2>&1 | sed 5q` in
cannam@126 10037 *Sun\ C*) # Sun C 5.9
cannam@126 10038 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@126 10039 compiler_needs_object=yes
cannam@126 10040 tmp_sharedflag='-G' ;;
cannam@126 10041 *Sun\ F*) # Sun Fortran 8.3
cannam@126 10042 tmp_sharedflag='-G' ;;
cannam@126 10043 esac
cannam@126 10044 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cannam@126 10045
cannam@126 10046 if test yes = "$supports_anon_versioning"; then
cannam@126 10047 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
cannam@126 10048 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@126 10049 echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@126 10050 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
cannam@126 10051 fi
cannam@126 10052
cannam@126 10053 case $cc_basename in
cannam@126 10054 tcc*)
cannam@126 10055 export_dynamic_flag_spec='-rdynamic'
cannam@126 10056 ;;
cannam@126 10057 xlf* | bgf* | bgxlf* | mpixlf*)
cannam@126 10058 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
cannam@126 10059 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cannam@126 10060 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cannam@126 10061 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cannam@126 10062 if test yes = "$supports_anon_versioning"; then
cannam@126 10063 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
cannam@126 10064 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@126 10065 echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@126 10066 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cannam@126 10067 fi
cannam@126 10068 ;;
cannam@126 10069 esac
cannam@126 10070 else
cannam@126 10071 ld_shlibs=no
cannam@126 10072 fi
cannam@126 10073 ;;
cannam@126 10074
cannam@126 10075 netbsd* | netbsdelf*-gnu)
cannam@126 10076 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@126 10077 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
cannam@126 10078 wlarc=
cannam@126 10079 else
cannam@126 10080 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cannam@126 10081 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@126 10082 fi
cannam@126 10083 ;;
cannam@126 10084
cannam@126 10085 solaris*)
cannam@126 10086 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
cannam@126 10087 ld_shlibs=no
cannam@126 10088 cat <<_LT_EOF 1>&2
cannam@126 10089
cannam@126 10090 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
cannam@126 10091 *** create shared libraries on Solaris systems. Therefore, libtool
cannam@126 10092 *** is disabling shared libraries support. We urge you to upgrade GNU
cannam@126 10093 *** binutils to release 2.9.1 or newer. Another option is to modify
cannam@126 10094 *** your PATH or compiler configuration so that the native linker is
cannam@126 10095 *** used, and then restart.
cannam@126 10096
cannam@126 10097 _LT_EOF
cannam@126 10098 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@126 10099 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cannam@126 10100 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@126 10101 else
cannam@126 10102 ld_shlibs=no
cannam@126 10103 fi
cannam@126 10104 ;;
cannam@126 10105
cannam@126 10106 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
cannam@126 10107 case `$LD -v 2>&1` in
cannam@126 10108 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
cannam@126 10109 ld_shlibs=no
cannam@126 10110 cat <<_LT_EOF 1>&2
cannam@126 10111
cannam@126 10112 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
cannam@126 10113 *** reliably create shared libraries on SCO systems. Therefore, libtool
cannam@126 10114 *** is disabling shared libraries support. We urge you to upgrade GNU
cannam@126 10115 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
cannam@126 10116 *** your PATH or compiler configuration so that the native linker is
cannam@126 10117 *** used, and then restart.
cannam@126 10118
cannam@126 10119 _LT_EOF
cannam@126 10120 ;;
cannam@126 10121 *)
cannam@126 10122 # For security reasons, it is highly recommended that you always
cannam@126 10123 # use absolute paths for naming shared libraries, and exclude the
cannam@126 10124 # DT_RUNPATH tag from executables and libraries. But doing so
cannam@126 10125 # requires that you compile everything twice, which is a pain.
cannam@126 10126 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@126 10127 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cannam@126 10128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cannam@126 10129 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
cannam@126 10130 else
cannam@126 10131 ld_shlibs=no
cannam@126 10132 fi
cannam@126 10133 ;;
cannam@126 10134 esac
cannam@126 10135 ;;
cannam@126 10136
cannam@126 10137 sunos4*)
cannam@126 10138 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@126 10139 wlarc=
cannam@126 10140 hardcode_direct=yes
cannam@126 10141 hardcode_shlibpath_var=no
cannam@126 10142 ;;
cannam@126 10143
cannam@126 10144 *)
cannam@126 10145 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@126 10146 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cannam@126 10147 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@126 10148 else
cannam@126 10149 ld_shlibs=no
cannam@126 10150 fi
cannam@126 10151 ;;
cannam@126 10152 esac
cannam@126 10153
cannam@126 10154 if test no = "$ld_shlibs"; then
cannam@126 10155 runpath_var=
cannam@126 10156 hardcode_libdir_flag_spec=
cannam@126 10157 export_dynamic_flag_spec=
cannam@126 10158 whole_archive_flag_spec=
cannam@126 10159 fi
cannam@126 10160 else
cannam@126 10161 # PORTME fill in a description of your system's linker (not GNU ld)
cannam@126 10162 case $host_os in
cannam@126 10163 aix3*)
cannam@126 10164 allow_undefined_flag=unsupported
cannam@126 10165 always_export_symbols=yes
cannam@126 10166 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@126 10167 # Note: this linker hardcodes the directories in LIBPATH if there
cannam@126 10168 # are no directories specified by -L.
cannam@126 10169 hardcode_minus_L=yes
cannam@126 10170 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
cannam@126 10171 # Neither direct hardcoding nor static linking is supported with a
cannam@126 10172 # broken collect2.
cannam@126 10173 hardcode_direct=unsupported
cannam@126 10174 fi
cannam@126 10175 ;;
cannam@126 10176
cannam@126 10177 aix[4-9]*)
cannam@126 10178 if test ia64 = "$host_cpu"; then
cannam@126 10179 # On IA64, the linker does run time linking by default, so we don't
cannam@126 10180 # have to do anything special.
cannam@126 10181 aix_use_runtimelinking=no
cannam@126 10182 exp_sym_flag='-Bexport'
cannam@126 10183 no_entry_flag=
cannam@126 10184 else
cannam@126 10185 # If we're using GNU nm, then we don't want the "-C" option.
cannam@126 10186 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
cannam@126 10187 # Without the "-l" option, or with the "-B" option, AIX nm treats
cannam@126 10188 # weak defined symbols like other global defined symbols, whereas
cannam@126 10189 # GNU nm marks them as "W".
cannam@126 10190 # While the 'weak' keyword is ignored in the Export File, we need
cannam@126 10191 # it in the Import File for the 'aix-soname' feature, so we have
cannam@126 10192 # to replace the "-B" option with "-P" for AIX nm.
cannam@126 10193 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cannam@126 10194 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
cannam@126 10195 else
cannam@126 10196 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
cannam@126 10197 fi
cannam@126 10198 aix_use_runtimelinking=no
cannam@126 10199
cannam@126 10200 # Test if we are trying to use run time linking or normal
cannam@126 10201 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cannam@126 10202 # have runtime linking enabled, and use it for executables.
cannam@126 10203 # For shared libraries, we enable/disable runtime linking
cannam@126 10204 # depending on the kind of the shared library created -
cannam@126 10205 # when "with_aix_soname,aix_use_runtimelinking" is:
cannam@126 10206 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
cannam@126 10207 # "aix,yes" lib.so shared, rtl:yes, for executables
cannam@126 10208 # lib.a static archive
cannam@126 10209 # "both,no" lib.so.V(shr.o) shared, rtl:yes
cannam@126 10210 # lib.a(lib.so.V) shared, rtl:no, for executables
cannam@126 10211 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
cannam@126 10212 # lib.a(lib.so.V) shared, rtl:no
cannam@126 10213 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
cannam@126 10214 # lib.a static archive
cannam@126 10215 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
cannam@126 10216 for ld_flag in $LDFLAGS; do
cannam@126 10217 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
cannam@126 10218 aix_use_runtimelinking=yes
cannam@126 10219 break
cannam@126 10220 fi
cannam@126 10221 done
cannam@126 10222 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
cannam@126 10223 # With aix-soname=svr4, we create the lib.so.V shared archives only,
cannam@126 10224 # so we don't have lib.a shared libs to link our executables.
cannam@126 10225 # We have to force runtime linking in this case.
cannam@126 10226 aix_use_runtimelinking=yes
cannam@126 10227 LDFLAGS="$LDFLAGS -Wl,-brtl"
cannam@126 10228 fi
cannam@126 10229 ;;
cannam@126 10230 esac
cannam@126 10231
cannam@126 10232 exp_sym_flag='-bexport'
cannam@126 10233 no_entry_flag='-bnoentry'
cannam@126 10234 fi
cannam@126 10235
cannam@126 10236 # When large executables or shared objects are built, AIX ld can
cannam@126 10237 # have problems creating the table of contents. If linking a library
cannam@126 10238 # or program results in "error TOC overflow" add -mminimal-toc to
cannam@126 10239 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
cannam@126 10240 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
cannam@126 10241
cannam@126 10242 archive_cmds=''
cannam@126 10243 hardcode_direct=yes
cannam@126 10244 hardcode_direct_absolute=yes
cannam@126 10245 hardcode_libdir_separator=':'
cannam@126 10246 link_all_deplibs=yes
cannam@126 10247 file_list_spec='$wl-f,'
cannam@126 10248 case $with_aix_soname,$aix_use_runtimelinking in
cannam@126 10249 aix,*) ;; # traditional, no import file
cannam@126 10250 svr4,* | *,yes) # use import file
cannam@126 10251 # The Import File defines what to hardcode.
cannam@126 10252 hardcode_direct=no
cannam@126 10253 hardcode_direct_absolute=no
cannam@126 10254 ;;
cannam@126 10255 esac
cannam@126 10256
cannam@126 10257 if test yes = "$GCC"; then
cannam@126 10258 case $host_os in aix4.[012]|aix4.[012].*)
cannam@126 10259 # We only want to do this on AIX 4.2 and lower, the check
cannam@126 10260 # below for broken collect2 doesn't work under 4.3+
cannam@126 10261 collect2name=`$CC -print-prog-name=collect2`
cannam@126 10262 if test -f "$collect2name" &&
cannam@126 10263 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
cannam@126 10264 then
cannam@126 10265 # We have reworked collect2
cannam@126 10266 :
cannam@126 10267 else
cannam@126 10268 # We have old collect2
cannam@126 10269 hardcode_direct=unsupported
cannam@126 10270 # It fails to find uninstalled libraries when the uninstalled
cannam@126 10271 # path is not listed in the libpath. Setting hardcode_minus_L
cannam@126 10272 # to unsupported forces relinking
cannam@126 10273 hardcode_minus_L=yes
cannam@126 10274 hardcode_libdir_flag_spec='-L$libdir'
cannam@126 10275 hardcode_libdir_separator=
cannam@126 10276 fi
cannam@126 10277 ;;
cannam@126 10278 esac
cannam@126 10279 shared_flag='-shared'
cannam@126 10280 if test yes = "$aix_use_runtimelinking"; then
cannam@126 10281 shared_flag="$shared_flag "'$wl-G'
cannam@126 10282 fi
cannam@126 10283 # Need to ensure runtime linking is disabled for the traditional
cannam@126 10284 # shared library, or the linker may eventually find shared libraries
cannam@126 10285 # /with/ Import File - we do not want to mix them.
cannam@126 10286 shared_flag_aix='-shared'
cannam@126 10287 shared_flag_svr4='-shared $wl-G'
cannam@126 10288 else
cannam@126 10289 # not using gcc
cannam@126 10290 if test ia64 = "$host_cpu"; then
cannam@126 10291 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
cannam@126 10292 # chokes on -Wl,-G. The following line is correct:
cannam@126 10293 shared_flag='-G'
cannam@126 10294 else
cannam@126 10295 if test yes = "$aix_use_runtimelinking"; then
cannam@126 10296 shared_flag='$wl-G'
cannam@126 10297 else
cannam@126 10298 shared_flag='$wl-bM:SRE'
cannam@126 10299 fi
cannam@126 10300 shared_flag_aix='$wl-bM:SRE'
cannam@126 10301 shared_flag_svr4='$wl-G'
cannam@126 10302 fi
cannam@126 10303 fi
cannam@126 10304
cannam@126 10305 export_dynamic_flag_spec='$wl-bexpall'
cannam@126 10306 # It seems that -bexpall does not export symbols beginning with
cannam@126 10307 # underscore (_), so it is better to generate a list of symbols to export.
cannam@126 10308 always_export_symbols=yes
cannam@126 10309 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
cannam@126 10310 # Warning - without using the other runtime loading flags (-brtl),
cannam@126 10311 # -berok will link without error, but may produce a broken library.
cannam@126 10312 allow_undefined_flag='-berok'
cannam@126 10313 # Determine the default libpath from the value encoded in an
cannam@126 10314 # empty executable.
cannam@126 10315 if test set = "${lt_cv_aix_libpath+set}"; then
cannam@126 10316 aix_libpath=$lt_cv_aix_libpath
cannam@126 10317 else
cannam@126 10318 if ${lt_cv_aix_libpath_+:} false; then :
cannam@126 10319 $as_echo_n "(cached) " >&6
cannam@126 10320 else
cannam@126 10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 10322 /* end confdefs.h. */
cannam@126 10323
cannam@126 10324 int
cannam@126 10325 main ()
cannam@126 10326 {
cannam@126 10327
cannam@126 10328 ;
cannam@126 10329 return 0;
cannam@126 10330 }
cannam@126 10331 _ACEOF
cannam@126 10332 if ac_fn_c_try_link "$LINENO"; then :
cannam@126 10333
cannam@126 10334 lt_aix_libpath_sed='
cannam@126 10335 /Import File Strings/,/^$/ {
cannam@126 10336 /^0/ {
cannam@126 10337 s/^0 *\([^ ]*\) *$/\1/
cannam@126 10338 p
cannam@126 10339 }
cannam@126 10340 }'
cannam@126 10341 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@126 10342 # Check for a 64-bit object if we didn't find anything.
cannam@126 10343 if test -z "$lt_cv_aix_libpath_"; then
cannam@126 10344 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@126 10345 fi
cannam@126 10346 fi
cannam@126 10347 rm -f core conftest.err conftest.$ac_objext \
cannam@126 10348 conftest$ac_exeext conftest.$ac_ext
cannam@126 10349 if test -z "$lt_cv_aix_libpath_"; then
cannam@126 10350 lt_cv_aix_libpath_=/usr/lib:/lib
cannam@126 10351 fi
cannam@126 10352
cannam@126 10353 fi
cannam@126 10354
cannam@126 10355 aix_libpath=$lt_cv_aix_libpath_
cannam@126 10356 fi
cannam@126 10357
cannam@126 10358 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
cannam@126 10359 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
cannam@126 10360 else
cannam@126 10361 if test ia64 = "$host_cpu"; then
cannam@126 10362 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
cannam@126 10363 allow_undefined_flag="-z nodefs"
cannam@126 10364 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@126 10365 else
cannam@126 10366 # Determine the default libpath from the value encoded in an
cannam@126 10367 # empty executable.
cannam@126 10368 if test set = "${lt_cv_aix_libpath+set}"; then
cannam@126 10369 aix_libpath=$lt_cv_aix_libpath
cannam@126 10370 else
cannam@126 10371 if ${lt_cv_aix_libpath_+:} false; then :
cannam@126 10372 $as_echo_n "(cached) " >&6
cannam@126 10373 else
cannam@126 10374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 10375 /* end confdefs.h. */
cannam@126 10376
cannam@126 10377 int
cannam@126 10378 main ()
cannam@126 10379 {
cannam@126 10380
cannam@126 10381 ;
cannam@126 10382 return 0;
cannam@126 10383 }
cannam@126 10384 _ACEOF
cannam@126 10385 if ac_fn_c_try_link "$LINENO"; then :
cannam@126 10386
cannam@126 10387 lt_aix_libpath_sed='
cannam@126 10388 /Import File Strings/,/^$/ {
cannam@126 10389 /^0/ {
cannam@126 10390 s/^0 *\([^ ]*\) *$/\1/
cannam@126 10391 p
cannam@126 10392 }
cannam@126 10393 }'
cannam@126 10394 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@126 10395 # Check for a 64-bit object if we didn't find anything.
cannam@126 10396 if test -z "$lt_cv_aix_libpath_"; then
cannam@126 10397 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@126 10398 fi
cannam@126 10399 fi
cannam@126 10400 rm -f core conftest.err conftest.$ac_objext \
cannam@126 10401 conftest$ac_exeext conftest.$ac_ext
cannam@126 10402 if test -z "$lt_cv_aix_libpath_"; then
cannam@126 10403 lt_cv_aix_libpath_=/usr/lib:/lib
cannam@126 10404 fi
cannam@126 10405
cannam@126 10406 fi
cannam@126 10407
cannam@126 10408 aix_libpath=$lt_cv_aix_libpath_
cannam@126 10409 fi
cannam@126 10410
cannam@126 10411 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
cannam@126 10412 # Warning - without using the other run time loading flags,
cannam@126 10413 # -berok will link without error, but may produce a broken library.
cannam@126 10414 no_undefined_flag=' $wl-bernotok'
cannam@126 10415 allow_undefined_flag=' $wl-berok'
cannam@126 10416 if test yes = "$with_gnu_ld"; then
cannam@126 10417 # We only use this code for GNU lds that support --whole-archive.
cannam@126 10418 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
cannam@126 10419 else
cannam@126 10420 # Exported symbols can be pulled into shared objects from archives
cannam@126 10421 whole_archive_flag_spec='$convenience'
cannam@126 10422 fi
cannam@126 10423 archive_cmds_need_lc=yes
cannam@126 10424 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
cannam@126 10425 # -brtl affects multiple linker settings, -berok does not and is overridden later
cannam@126 10426 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
cannam@126 10427 if test svr4 != "$with_aix_soname"; then
cannam@126 10428 # This is similar to how AIX traditionally builds its shared libraries.
cannam@126 10429 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
cannam@126 10430 fi
cannam@126 10431 if test aix != "$with_aix_soname"; then
cannam@126 10432 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
cannam@126 10433 else
cannam@126 10434 # used by -dlpreopen to get the symbols
cannam@126 10435 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
cannam@126 10436 fi
cannam@126 10437 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
cannam@126 10438 fi
cannam@126 10439 fi
cannam@126 10440 ;;
cannam@126 10441
cannam@126 10442 amigaos*)
cannam@126 10443 case $host_cpu in
cannam@126 10444 powerpc)
cannam@126 10445 # see comment about AmigaOS4 .so support
cannam@126 10446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cannam@126 10447 archive_expsym_cmds=''
cannam@126 10448 ;;
cannam@126 10449 m68k)
cannam@126 10450 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@126 10451 hardcode_libdir_flag_spec='-L$libdir'
cannam@126 10452 hardcode_minus_L=yes
cannam@126 10453 ;;
cannam@126 10454 esac
cannam@126 10455 ;;
cannam@126 10456
cannam@126 10457 bsdi[45]*)
cannam@126 10458 export_dynamic_flag_spec=-rdynamic
cannam@126 10459 ;;
cannam@126 10460
cannam@126 10461 cygwin* | mingw* | pw32* | cegcc*)
cannam@126 10462 # When not using gcc, we currently assume that we are using
cannam@126 10463 # Microsoft Visual C++.
cannam@126 10464 # hardcode_libdir_flag_spec is actually meaningless, as there is
cannam@126 10465 # no search path for DLLs.
cannam@126 10466 case $cc_basename in
cannam@126 10467 cl*)
cannam@126 10468 # Native MSVC
cannam@126 10469 hardcode_libdir_flag_spec=' '
cannam@126 10470 allow_undefined_flag=unsupported
cannam@126 10471 always_export_symbols=yes
cannam@126 10472 file_list_spec='@'
cannam@126 10473 # Tell ltmain to make .lib files, not .a files.
cannam@126 10474 libext=lib
cannam@126 10475 # Tell ltmain to make .dll files, not .so files.
cannam@126 10476 shrext_cmds=.dll
cannam@126 10477 # FIXME: Setting linknames here is a bad hack.
cannam@126 10478 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
cannam@126 10479 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
cannam@126 10480 cp "$export_symbols" "$output_objdir/$soname.def";
cannam@126 10481 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
cannam@126 10482 else
cannam@126 10483 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
cannam@126 10484 fi~
cannam@126 10485 $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@126 10486 linknames='
cannam@126 10487 # The linker will not automatically build a static lib if we build a DLL.
cannam@126 10488 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
cannam@126 10489 enable_shared_with_static_runtimes=yes
cannam@126 10490 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cannam@126 10491 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
cannam@126 10492 # Don't use ranlib
cannam@126 10493 old_postinstall_cmds='chmod 644 $oldlib'
cannam@126 10494 postlink_cmds='lt_outputfile="@OUTPUT@"~
cannam@126 10495 lt_tool_outputfile="@TOOL_OUTPUT@"~
cannam@126 10496 case $lt_outputfile in
cannam@126 10497 *.exe|*.EXE) ;;
cannam@126 10498 *)
cannam@126 10499 lt_outputfile=$lt_outputfile.exe
cannam@126 10500 lt_tool_outputfile=$lt_tool_outputfile.exe
cannam@126 10501 ;;
cannam@126 10502 esac~
cannam@126 10503 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
cannam@126 10504 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
cannam@126 10505 $RM "$lt_outputfile.manifest";
cannam@126 10506 fi'
cannam@126 10507 ;;
cannam@126 10508 *)
cannam@126 10509 # Assume MSVC wrapper
cannam@126 10510 hardcode_libdir_flag_spec=' '
cannam@126 10511 allow_undefined_flag=unsupported
cannam@126 10512 # Tell ltmain to make .lib files, not .a files.
cannam@126 10513 libext=lib
cannam@126 10514 # Tell ltmain to make .dll files, not .so files.
cannam@126 10515 shrext_cmds=.dll
cannam@126 10516 # FIXME: Setting linknames here is a bad hack.
cannam@126 10517 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
cannam@126 10518 # The linker will automatically build a .lib file if we build a DLL.
cannam@126 10519 old_archive_from_new_cmds='true'
cannam@126 10520 # FIXME: Should let the user specify the lib program.
cannam@126 10521 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
cannam@126 10522 enable_shared_with_static_runtimes=yes
cannam@126 10523 ;;
cannam@126 10524 esac
cannam@126 10525 ;;
cannam@126 10526
cannam@126 10527 darwin* | rhapsody*)
cannam@126 10528
cannam@126 10529
cannam@126 10530 archive_cmds_need_lc=no
cannam@126 10531 hardcode_direct=no
cannam@126 10532 hardcode_automatic=yes
cannam@126 10533 hardcode_shlibpath_var=unsupported
cannam@126 10534 if test yes = "$lt_cv_ld_force_load"; then
cannam@126 10535 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@126 10536
cannam@126 10537 else
cannam@126 10538 whole_archive_flag_spec=''
cannam@126 10539 fi
cannam@126 10540 link_all_deplibs=yes
cannam@126 10541 allow_undefined_flag=$_lt_dar_allow_undefined
cannam@126 10542 case $cc_basename in
cannam@126 10543 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
cannam@126 10544 *) _lt_dar_can_shared=$GCC ;;
cannam@126 10545 esac
cannam@126 10546 if test yes = "$_lt_dar_can_shared"; then
cannam@126 10547 output_verbose_link_cmd=func_echo_all
cannam@126 10548 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@126 10549 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
cannam@126 10550 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@126 10551 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@126 10552
cannam@126 10553 else
cannam@126 10554 ld_shlibs=no
cannam@126 10555 fi
cannam@126 10556
cannam@126 10557 ;;
cannam@126 10558
cannam@126 10559 dgux*)
cannam@126 10560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@126 10561 hardcode_libdir_flag_spec='-L$libdir'
cannam@126 10562 hardcode_shlibpath_var=no
cannam@126 10563 ;;
cannam@126 10564
cannam@126 10565 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
cannam@126 10566 # support. Future versions do this automatically, but an explicit c++rt0.o
cannam@126 10567 # does not break anything, and helps significantly (at the cost of a little
cannam@126 10568 # extra space).
cannam@126 10569 freebsd2.2*)
cannam@126 10570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
cannam@126 10571 hardcode_libdir_flag_spec='-R$libdir'
cannam@126 10572 hardcode_direct=yes
cannam@126 10573 hardcode_shlibpath_var=no
cannam@126 10574 ;;
cannam@126 10575
cannam@126 10576 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cannam@126 10577 freebsd2.*)
cannam@126 10578 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@126 10579 hardcode_direct=yes
cannam@126 10580 hardcode_minus_L=yes
cannam@126 10581 hardcode_shlibpath_var=no
cannam@126 10582 ;;
cannam@126 10583
cannam@126 10584 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
cannam@126 10585 freebsd* | dragonfly*)
cannam@126 10586 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 10587 hardcode_libdir_flag_spec='-R$libdir'
cannam@126 10588 hardcode_direct=yes
cannam@126 10589 hardcode_shlibpath_var=no
cannam@126 10590 ;;
cannam@126 10591
cannam@126 10592 hpux9*)
cannam@126 10593 if test yes = "$GCC"; then
cannam@126 10594 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
cannam@126 10595 else
cannam@126 10596 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
cannam@126 10597 fi
cannam@126 10598 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
cannam@126 10599 hardcode_libdir_separator=:
cannam@126 10600 hardcode_direct=yes
cannam@126 10601
cannam@126 10602 # hardcode_minus_L: Not really in the search PATH,
cannam@126 10603 # but as the default location of the library.
cannam@126 10604 hardcode_minus_L=yes
cannam@126 10605 export_dynamic_flag_spec='$wl-E'
cannam@126 10606 ;;
cannam@126 10607
cannam@126 10608 hpux10*)
cannam@126 10609 if test yes,no = "$GCC,$with_gnu_ld"; then
cannam@126 10610 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 10611 else
cannam@126 10612 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
cannam@126 10613 fi
cannam@126 10614 if test no = "$with_gnu_ld"; then
cannam@126 10615 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
cannam@126 10616 hardcode_libdir_separator=:
cannam@126 10617 hardcode_direct=yes
cannam@126 10618 hardcode_direct_absolute=yes
cannam@126 10619 export_dynamic_flag_spec='$wl-E'
cannam@126 10620 # hardcode_minus_L: Not really in the search PATH,
cannam@126 10621 # but as the default location of the library.
cannam@126 10622 hardcode_minus_L=yes
cannam@126 10623 fi
cannam@126 10624 ;;
cannam@126 10625
cannam@126 10626 hpux11*)
cannam@126 10627 if test yes,no = "$GCC,$with_gnu_ld"; then
cannam@126 10628 case $host_cpu in
cannam@126 10629 hppa*64*)
cannam@126 10630 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 10631 ;;
cannam@126 10632 ia64*)
cannam@126 10633 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 10634 ;;
cannam@126 10635 *)
cannam@126 10636 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 10637 ;;
cannam@126 10638 esac
cannam@126 10639 else
cannam@126 10640 case $host_cpu in
cannam@126 10641 hppa*64*)
cannam@126 10642 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 10643 ;;
cannam@126 10644 ia64*)
cannam@126 10645 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 10646 ;;
cannam@126 10647 *)
cannam@126 10648
cannam@126 10649 # Older versions of the 11.00 compiler do not understand -b yet
cannam@126 10650 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
cannam@126 10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
cannam@126 10652 $as_echo_n "checking if $CC understands -b... " >&6; }
cannam@126 10653 if ${lt_cv_prog_compiler__b+:} false; then :
cannam@126 10654 $as_echo_n "(cached) " >&6
cannam@126 10655 else
cannam@126 10656 lt_cv_prog_compiler__b=no
cannam@126 10657 save_LDFLAGS=$LDFLAGS
cannam@126 10658 LDFLAGS="$LDFLAGS -b"
cannam@126 10659 echo "$lt_simple_link_test_code" > conftest.$ac_ext
cannam@126 10660 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
cannam@126 10661 # The linker can only warn and ignore the option if not recognized
cannam@126 10662 # So say no if there are warnings
cannam@126 10663 if test -s conftest.err; then
cannam@126 10664 # Append any errors to the config.log.
cannam@126 10665 cat conftest.err 1>&5
cannam@126 10666 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cannam@126 10667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@126 10668 if diff conftest.exp conftest.er2 >/dev/null; then
cannam@126 10669 lt_cv_prog_compiler__b=yes
cannam@126 10670 fi
cannam@126 10671 else
cannam@126 10672 lt_cv_prog_compiler__b=yes
cannam@126 10673 fi
cannam@126 10674 fi
cannam@126 10675 $RM -r conftest*
cannam@126 10676 LDFLAGS=$save_LDFLAGS
cannam@126 10677
cannam@126 10678 fi
cannam@126 10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
cannam@126 10680 $as_echo "$lt_cv_prog_compiler__b" >&6; }
cannam@126 10681
cannam@126 10682 if test yes = "$lt_cv_prog_compiler__b"; then
cannam@126 10683 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 10684 else
cannam@126 10685 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
cannam@126 10686 fi
cannam@126 10687
cannam@126 10688 ;;
cannam@126 10689 esac
cannam@126 10690 fi
cannam@126 10691 if test no = "$with_gnu_ld"; then
cannam@126 10692 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
cannam@126 10693 hardcode_libdir_separator=:
cannam@126 10694
cannam@126 10695 case $host_cpu in
cannam@126 10696 hppa*64*|ia64*)
cannam@126 10697 hardcode_direct=no
cannam@126 10698 hardcode_shlibpath_var=no
cannam@126 10699 ;;
cannam@126 10700 *)
cannam@126 10701 hardcode_direct=yes
cannam@126 10702 hardcode_direct_absolute=yes
cannam@126 10703 export_dynamic_flag_spec='$wl-E'
cannam@126 10704
cannam@126 10705 # hardcode_minus_L: Not really in the search PATH,
cannam@126 10706 # but as the default location of the library.
cannam@126 10707 hardcode_minus_L=yes
cannam@126 10708 ;;
cannam@126 10709 esac
cannam@126 10710 fi
cannam@126 10711 ;;
cannam@126 10712
cannam@126 10713 irix5* | irix6* | nonstopux*)
cannam@126 10714 if test yes = "$GCC"; then
cannam@126 10715 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@126 10716 # Try to use the -exported_symbol ld option, if it does not
cannam@126 10717 # work, assume that -exports_file does not work either and
cannam@126 10718 # implicitly export all symbols.
cannam@126 10719 # This should be the same for all languages, so no per-tag cache variable.
cannam@126 10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
cannam@126 10721 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
cannam@126 10722 if ${lt_cv_irix_exported_symbol+:} false; then :
cannam@126 10723 $as_echo_n "(cached) " >&6
cannam@126 10724 else
cannam@126 10725 save_LDFLAGS=$LDFLAGS
cannam@126 10726 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
cannam@126 10727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 10728 /* end confdefs.h. */
cannam@126 10729 int foo (void) { return 0; }
cannam@126 10730 _ACEOF
cannam@126 10731 if ac_fn_c_try_link "$LINENO"; then :
cannam@126 10732 lt_cv_irix_exported_symbol=yes
cannam@126 10733 else
cannam@126 10734 lt_cv_irix_exported_symbol=no
cannam@126 10735 fi
cannam@126 10736 rm -f core conftest.err conftest.$ac_objext \
cannam@126 10737 conftest$ac_exeext conftest.$ac_ext
cannam@126 10738 LDFLAGS=$save_LDFLAGS
cannam@126 10739 fi
cannam@126 10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
cannam@126 10741 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
cannam@126 10742 if test yes = "$lt_cv_irix_exported_symbol"; then
cannam@126 10743 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@126 10744 fi
cannam@126 10745 link_all_deplibs=no
cannam@126 10746 else
cannam@126 10747 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@126 10748 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@126 10749 fi
cannam@126 10750 archive_cmds_need_lc='no'
cannam@126 10751 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cannam@126 10752 hardcode_libdir_separator=:
cannam@126 10753 inherit_rpath=yes
cannam@126 10754 link_all_deplibs=yes
cannam@126 10755 ;;
cannam@126 10756
cannam@126 10757 linux*)
cannam@126 10758 case $cc_basename in
cannam@126 10759 tcc*)
cannam@126 10760 # Fabrice Bellard et al's Tiny C Compiler
cannam@126 10761 ld_shlibs=yes
cannam@126 10762 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 10763 ;;
cannam@126 10764 esac
cannam@126 10765 ;;
cannam@126 10766
cannam@126 10767 netbsd* | netbsdelf*-gnu)
cannam@126 10768 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@126 10769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
cannam@126 10770 else
cannam@126 10771 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
cannam@126 10772 fi
cannam@126 10773 hardcode_libdir_flag_spec='-R$libdir'
cannam@126 10774 hardcode_direct=yes
cannam@126 10775 hardcode_shlibpath_var=no
cannam@126 10776 ;;
cannam@126 10777
cannam@126 10778 newsos6)
cannam@126 10779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@126 10780 hardcode_direct=yes
cannam@126 10781 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cannam@126 10782 hardcode_libdir_separator=:
cannam@126 10783 hardcode_shlibpath_var=no
cannam@126 10784 ;;
cannam@126 10785
cannam@126 10786 *nto* | *qnx*)
cannam@126 10787 ;;
cannam@126 10788
cannam@126 10789 openbsd* | bitrig*)
cannam@126 10790 if test -f /usr/libexec/ld.so; then
cannam@126 10791 hardcode_direct=yes
cannam@126 10792 hardcode_shlibpath_var=no
cannam@126 10793 hardcode_direct_absolute=yes
cannam@126 10794 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
cannam@126 10795 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 10796 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
cannam@126 10797 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
cannam@126 10798 export_dynamic_flag_spec='$wl-E'
cannam@126 10799 else
cannam@126 10800 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 10801 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
cannam@126 10802 fi
cannam@126 10803 else
cannam@126 10804 ld_shlibs=no
cannam@126 10805 fi
cannam@126 10806 ;;
cannam@126 10807
cannam@126 10808 os2*)
cannam@126 10809 hardcode_libdir_flag_spec='-L$libdir'
cannam@126 10810 hardcode_minus_L=yes
cannam@126 10811 allow_undefined_flag=unsupported
cannam@126 10812 shrext_cmds=.dll
cannam@126 10813 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
cannam@126 10814 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
cannam@126 10815 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
cannam@126 10816 $ECHO EXPORTS >> $output_objdir/$libname.def~
cannam@126 10817 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
cannam@126 10818 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
cannam@126 10819 emximp -o $lib $output_objdir/$libname.def'
cannam@126 10820 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
cannam@126 10821 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
cannam@126 10822 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
cannam@126 10823 $ECHO EXPORTS >> $output_objdir/$libname.def~
cannam@126 10824 prefix_cmds="$SED"~
cannam@126 10825 if test EXPORTS = "`$SED 1q $export_symbols`"; then
cannam@126 10826 prefix_cmds="$prefix_cmds -e 1d";
cannam@126 10827 fi~
cannam@126 10828 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
cannam@126 10829 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
cannam@126 10830 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
cannam@126 10831 emximp -o $lib $output_objdir/$libname.def'
cannam@126 10832 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
cannam@126 10833 enable_shared_with_static_runtimes=yes
cannam@126 10834 ;;
cannam@126 10835
cannam@126 10836 osf3*)
cannam@126 10837 if test yes = "$GCC"; then
cannam@126 10838 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
cannam@126 10839 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@126 10840 else
cannam@126 10841 allow_undefined_flag=' -expect_unresolved \*'
cannam@126 10842 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@126 10843 fi
cannam@126 10844 archive_cmds_need_lc='no'
cannam@126 10845 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cannam@126 10846 hardcode_libdir_separator=:
cannam@126 10847 ;;
cannam@126 10848
cannam@126 10849 osf4* | osf5*) # as osf3* with the addition of -msym flag
cannam@126 10850 if test yes = "$GCC"; then
cannam@126 10851 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
cannam@126 10852 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@126 10853 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cannam@126 10854 else
cannam@126 10855 allow_undefined_flag=' -expect_unresolved \*'
cannam@126 10856 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@126 10857 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@126 10858 $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@126 10859
cannam@126 10860 # Both c and cxx compiler support -rpath directly
cannam@126 10861 hardcode_libdir_flag_spec='-rpath $libdir'
cannam@126 10862 fi
cannam@126 10863 archive_cmds_need_lc='no'
cannam@126 10864 hardcode_libdir_separator=:
cannam@126 10865 ;;
cannam@126 10866
cannam@126 10867 solaris*)
cannam@126 10868 no_undefined_flag=' -z defs'
cannam@126 10869 if test yes = "$GCC"; then
cannam@126 10870 wlarc='$wl'
cannam@126 10871 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 10872 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@126 10873 $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@126 10874 else
cannam@126 10875 case `$CC -V 2>&1` in
cannam@126 10876 *"Compilers 5.0"*)
cannam@126 10877 wlarc=''
cannam@126 10878 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@126 10879 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@126 10880 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
cannam@126 10881 ;;
cannam@126 10882 *)
cannam@126 10883 wlarc='$wl'
cannam@126 10884 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 10885 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@126 10886 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
cannam@126 10887 ;;
cannam@126 10888 esac
cannam@126 10889 fi
cannam@126 10890 hardcode_libdir_flag_spec='-R$libdir'
cannam@126 10891 hardcode_shlibpath_var=no
cannam@126 10892 case $host_os in
cannam@126 10893 solaris2.[0-5] | solaris2.[0-5].*) ;;
cannam@126 10894 *)
cannam@126 10895 # The compiler driver will combine and reorder linker options,
cannam@126 10896 # but understands '-z linker_flag'. GCC discards it without '$wl',
cannam@126 10897 # but is careful enough not to reorder.
cannam@126 10898 # Supported since Solaris 2.6 (maybe 2.5.1?)
cannam@126 10899 if test yes = "$GCC"; then
cannam@126 10900 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
cannam@126 10901 else
cannam@126 10902 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
cannam@126 10903 fi
cannam@126 10904 ;;
cannam@126 10905 esac
cannam@126 10906 link_all_deplibs=yes
cannam@126 10907 ;;
cannam@126 10908
cannam@126 10909 sunos4*)
cannam@126 10910 if test sequent = "$host_vendor"; then
cannam@126 10911 # Use $CC to link under sequent, because it throws in some extra .o
cannam@126 10912 # files that make .init and .fini sections work.
cannam@126 10913 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 10914 else
cannam@126 10915 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
cannam@126 10916 fi
cannam@126 10917 hardcode_libdir_flag_spec='-L$libdir'
cannam@126 10918 hardcode_direct=yes
cannam@126 10919 hardcode_minus_L=yes
cannam@126 10920 hardcode_shlibpath_var=no
cannam@126 10921 ;;
cannam@126 10922
cannam@126 10923 sysv4)
cannam@126 10924 case $host_vendor in
cannam@126 10925 sni)
cannam@126 10926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@126 10927 hardcode_direct=yes # is this really true???
cannam@126 10928 ;;
cannam@126 10929 siemens)
cannam@126 10930 ## LD is ld it makes a PLAMLIB
cannam@126 10931 ## CC just makes a GrossModule.
cannam@126 10932 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
cannam@126 10933 reload_cmds='$CC -r -o $output$reload_objs'
cannam@126 10934 hardcode_direct=no
cannam@126 10935 ;;
cannam@126 10936 motorola)
cannam@126 10937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@126 10938 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
cannam@126 10939 ;;
cannam@126 10940 esac
cannam@126 10941 runpath_var='LD_RUN_PATH'
cannam@126 10942 hardcode_shlibpath_var=no
cannam@126 10943 ;;
cannam@126 10944
cannam@126 10945 sysv4.3*)
cannam@126 10946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@126 10947 hardcode_shlibpath_var=no
cannam@126 10948 export_dynamic_flag_spec='-Bexport'
cannam@126 10949 ;;
cannam@126 10950
cannam@126 10951 sysv4*MP*)
cannam@126 10952 if test -d /usr/nec; then
cannam@126 10953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@126 10954 hardcode_shlibpath_var=no
cannam@126 10955 runpath_var=LD_RUN_PATH
cannam@126 10956 hardcode_runpath_var=yes
cannam@126 10957 ld_shlibs=yes
cannam@126 10958 fi
cannam@126 10959 ;;
cannam@126 10960
cannam@126 10961 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
cannam@126 10962 no_undefined_flag='$wl-z,text'
cannam@126 10963 archive_cmds_need_lc=no
cannam@126 10964 hardcode_shlibpath_var=no
cannam@126 10965 runpath_var='LD_RUN_PATH'
cannam@126 10966
cannam@126 10967 if test yes = "$GCC"; then
cannam@126 10968 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 10969 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 10970 else
cannam@126 10971 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 10972 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 10973 fi
cannam@126 10974 ;;
cannam@126 10975
cannam@126 10976 sysv5* | sco3.2v5* | sco5v6*)
cannam@126 10977 # Note: We CANNOT use -z defs as we might desire, because we do not
cannam@126 10978 # link with -lc, and that would cause any symbols used from libc to
cannam@126 10979 # always be unresolved, which means just about no library would
cannam@126 10980 # ever link correctly. If we're not using GNU ld we use -z text
cannam@126 10981 # though, which does catch some bad symbols but isn't as heavy-handed
cannam@126 10982 # as -z defs.
cannam@126 10983 no_undefined_flag='$wl-z,text'
cannam@126 10984 allow_undefined_flag='$wl-z,nodefs'
cannam@126 10985 archive_cmds_need_lc=no
cannam@126 10986 hardcode_shlibpath_var=no
cannam@126 10987 hardcode_libdir_flag_spec='$wl-R,$libdir'
cannam@126 10988 hardcode_libdir_separator=':'
cannam@126 10989 link_all_deplibs=yes
cannam@126 10990 export_dynamic_flag_spec='$wl-Bexport'
cannam@126 10991 runpath_var='LD_RUN_PATH'
cannam@126 10992
cannam@126 10993 if test yes = "$GCC"; then
cannam@126 10994 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 10995 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 10996 else
cannam@126 10997 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 10998 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 10999 fi
cannam@126 11000 ;;
cannam@126 11001
cannam@126 11002 uts4*)
cannam@126 11003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@126 11004 hardcode_libdir_flag_spec='-L$libdir'
cannam@126 11005 hardcode_shlibpath_var=no
cannam@126 11006 ;;
cannam@126 11007
cannam@126 11008 *)
cannam@126 11009 ld_shlibs=no
cannam@126 11010 ;;
cannam@126 11011 esac
cannam@126 11012
cannam@126 11013 if test sni = "$host_vendor"; then
cannam@126 11014 case $host in
cannam@126 11015 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cannam@126 11016 export_dynamic_flag_spec='$wl-Blargedynsym'
cannam@126 11017 ;;
cannam@126 11018 esac
cannam@126 11019 fi
cannam@126 11020 fi
cannam@126 11021
cannam@126 11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cannam@126 11023 $as_echo "$ld_shlibs" >&6; }
cannam@126 11024 test no = "$ld_shlibs" && can_build_shared=no
cannam@126 11025
cannam@126 11026 with_gnu_ld=$with_gnu_ld
cannam@126 11027
cannam@126 11028
cannam@126 11029
cannam@126 11030
cannam@126 11031
cannam@126 11032
cannam@126 11033
cannam@126 11034
cannam@126 11035
cannam@126 11036
cannam@126 11037
cannam@126 11038
cannam@126 11039
cannam@126 11040
cannam@126 11041
cannam@126 11042 #
cannam@126 11043 # Do we need to explicitly link libc?
cannam@126 11044 #
cannam@126 11045 case "x$archive_cmds_need_lc" in
cannam@126 11046 x|xyes)
cannam@126 11047 # Assume -lc should be added
cannam@126 11048 archive_cmds_need_lc=yes
cannam@126 11049
cannam@126 11050 if test yes,yes = "$GCC,$enable_shared"; then
cannam@126 11051 case $archive_cmds in
cannam@126 11052 *'~'*)
cannam@126 11053 # FIXME: we may have to deal with multi-command sequences.
cannam@126 11054 ;;
cannam@126 11055 '$CC '*)
cannam@126 11056 # Test whether the compiler implicitly links with -lc since on some
cannam@126 11057 # systems, -lgcc has to come before -lc. If gcc already passes -lc
cannam@126 11058 # to ld, don't add -lc before -lgcc.
cannam@126 11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cannam@126 11060 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cannam@126 11061 if ${lt_cv_archive_cmds_need_lc+:} false; then :
cannam@126 11062 $as_echo_n "(cached) " >&6
cannam@126 11063 else
cannam@126 11064 $RM conftest*
cannam@126 11065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@126 11066
cannam@126 11067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@126 11068 (eval $ac_compile) 2>&5
cannam@126 11069 ac_status=$?
cannam@126 11070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 11071 test $ac_status = 0; } 2>conftest.err; then
cannam@126 11072 soname=conftest
cannam@126 11073 lib=conftest
cannam@126 11074 libobjs=conftest.$ac_objext
cannam@126 11075 deplibs=
cannam@126 11076 wl=$lt_prog_compiler_wl
cannam@126 11077 pic_flag=$lt_prog_compiler_pic
cannam@126 11078 compiler_flags=-v
cannam@126 11079 linker_flags=-v
cannam@126 11080 verstring=
cannam@126 11081 output_objdir=.
cannam@126 11082 libname=conftest
cannam@126 11083 lt_save_allow_undefined_flag=$allow_undefined_flag
cannam@126 11084 allow_undefined_flag=
cannam@126 11085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cannam@126 11086 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
cannam@126 11087 ac_status=$?
cannam@126 11088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 11089 test $ac_status = 0; }
cannam@126 11090 then
cannam@126 11091 lt_cv_archive_cmds_need_lc=no
cannam@126 11092 else
cannam@126 11093 lt_cv_archive_cmds_need_lc=yes
cannam@126 11094 fi
cannam@126 11095 allow_undefined_flag=$lt_save_allow_undefined_flag
cannam@126 11096 else
cannam@126 11097 cat conftest.err 1>&5
cannam@126 11098 fi
cannam@126 11099 $RM conftest*
cannam@126 11100
cannam@126 11101 fi
cannam@126 11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
cannam@126 11103 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
cannam@126 11104 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cannam@126 11105 ;;
cannam@126 11106 esac
cannam@126 11107 fi
cannam@126 11108 ;;
cannam@126 11109 esac
cannam@126 11110
cannam@126 11111
cannam@126 11112
cannam@126 11113
cannam@126 11114
cannam@126 11115
cannam@126 11116
cannam@126 11117
cannam@126 11118
cannam@126 11119
cannam@126 11120
cannam@126 11121
cannam@126 11122
cannam@126 11123
cannam@126 11124
cannam@126 11125
cannam@126 11126
cannam@126 11127
cannam@126 11128
cannam@126 11129
cannam@126 11130
cannam@126 11131
cannam@126 11132
cannam@126 11133
cannam@126 11134
cannam@126 11135
cannam@126 11136
cannam@126 11137
cannam@126 11138
cannam@126 11139
cannam@126 11140
cannam@126 11141
cannam@126 11142
cannam@126 11143
cannam@126 11144
cannam@126 11145
cannam@126 11146
cannam@126 11147
cannam@126 11148
cannam@126 11149
cannam@126 11150
cannam@126 11151
cannam@126 11152
cannam@126 11153
cannam@126 11154
cannam@126 11155
cannam@126 11156
cannam@126 11157
cannam@126 11158
cannam@126 11159
cannam@126 11160
cannam@126 11161
cannam@126 11162
cannam@126 11163
cannam@126 11164
cannam@126 11165
cannam@126 11166
cannam@126 11167
cannam@126 11168
cannam@126 11169
cannam@126 11170
cannam@126 11171
cannam@126 11172
cannam@126 11173
cannam@126 11174
cannam@126 11175
cannam@126 11176
cannam@126 11177
cannam@126 11178
cannam@126 11179
cannam@126 11180
cannam@126 11181
cannam@126 11182
cannam@126 11183
cannam@126 11184
cannam@126 11185
cannam@126 11186
cannam@126 11187
cannam@126 11188
cannam@126 11189
cannam@126 11190
cannam@126 11191
cannam@126 11192
cannam@126 11193
cannam@126 11194
cannam@126 11195
cannam@126 11196
cannam@126 11197
cannam@126 11198
cannam@126 11199
cannam@126 11200
cannam@126 11201
cannam@126 11202
cannam@126 11203
cannam@126 11204
cannam@126 11205
cannam@126 11206
cannam@126 11207
cannam@126 11208
cannam@126 11209
cannam@126 11210
cannam@126 11211
cannam@126 11212
cannam@126 11213
cannam@126 11214
cannam@126 11215
cannam@126 11216
cannam@126 11217
cannam@126 11218
cannam@126 11219
cannam@126 11220
cannam@126 11221
cannam@126 11222
cannam@126 11223
cannam@126 11224
cannam@126 11225
cannam@126 11226
cannam@126 11227
cannam@126 11228
cannam@126 11229
cannam@126 11230
cannam@126 11231
cannam@126 11232
cannam@126 11233
cannam@126 11234
cannam@126 11235
cannam@126 11236
cannam@126 11237
cannam@126 11238
cannam@126 11239
cannam@126 11240
cannam@126 11241
cannam@126 11242
cannam@126 11243
cannam@126 11244
cannam@126 11245
cannam@126 11246
cannam@126 11247
cannam@126 11248
cannam@126 11249
cannam@126 11250
cannam@126 11251
cannam@126 11252
cannam@126 11253
cannam@126 11254
cannam@126 11255
cannam@126 11256
cannam@126 11257
cannam@126 11258
cannam@126 11259
cannam@126 11260
cannam@126 11261
cannam@126 11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cannam@126 11263 $as_echo_n "checking dynamic linker characteristics... " >&6; }
cannam@126 11264
cannam@126 11265 if test yes = "$GCC"; then
cannam@126 11266 case $host_os in
cannam@126 11267 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
cannam@126 11268 *) lt_awk_arg='/^libraries:/' ;;
cannam@126 11269 esac
cannam@126 11270 case $host_os in
cannam@126 11271 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
cannam@126 11272 *) lt_sed_strip_eq='s|=/|/|g' ;;
cannam@126 11273 esac
cannam@126 11274 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
cannam@126 11275 case $lt_search_path_spec in
cannam@126 11276 *\;*)
cannam@126 11277 # if the path contains ";" then we assume it to be the separator
cannam@126 11278 # otherwise default to the standard path separator (i.e. ":") - it is
cannam@126 11279 # assumed that no part of a normal pathname contains ";" but that should
cannam@126 11280 # okay in the real world where ";" in dirpaths is itself problematic.
cannam@126 11281 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
cannam@126 11282 ;;
cannam@126 11283 *)
cannam@126 11284 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
cannam@126 11285 ;;
cannam@126 11286 esac
cannam@126 11287 # Ok, now we have the path, separated by spaces, we can step through it
cannam@126 11288 # and add multilib dir if necessary...
cannam@126 11289 lt_tmp_lt_search_path_spec=
cannam@126 11290 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
cannam@126 11291 # ...but if some path component already ends with the multilib dir we assume
cannam@126 11292 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
cannam@126 11293 case "$lt_multi_os_dir; $lt_search_path_spec " in
cannam@126 11294 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
cannam@126 11295 lt_multi_os_dir=
cannam@126 11296 ;;
cannam@126 11297 esac
cannam@126 11298 for lt_sys_path in $lt_search_path_spec; do
cannam@126 11299 if test -d "$lt_sys_path$lt_multi_os_dir"; then
cannam@126 11300 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
cannam@126 11301 elif test -n "$lt_multi_os_dir"; then
cannam@126 11302 test -d "$lt_sys_path" && \
cannam@126 11303 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
cannam@126 11304 fi
cannam@126 11305 done
cannam@126 11306 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cannam@126 11307 BEGIN {RS = " "; FS = "/|\n";} {
cannam@126 11308 lt_foo = "";
cannam@126 11309 lt_count = 0;
cannam@126 11310 for (lt_i = NF; lt_i > 0; lt_i--) {
cannam@126 11311 if ($lt_i != "" && $lt_i != ".") {
cannam@126 11312 if ($lt_i == "..") {
cannam@126 11313 lt_count++;
cannam@126 11314 } else {
cannam@126 11315 if (lt_count == 0) {
cannam@126 11316 lt_foo = "/" $lt_i lt_foo;
cannam@126 11317 } else {
cannam@126 11318 lt_count--;
cannam@126 11319 }
cannam@126 11320 }
cannam@126 11321 }
cannam@126 11322 }
cannam@126 11323 if (lt_foo != "") { lt_freq[lt_foo]++; }
cannam@126 11324 if (lt_freq[lt_foo] == 1) { print lt_foo; }
cannam@126 11325 }'`
cannam@126 11326 # AWK program above erroneously prepends '/' to C:/dos/paths
cannam@126 11327 # for these hosts.
cannam@126 11328 case $host_os in
cannam@126 11329 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
cannam@126 11330 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
cannam@126 11331 esac
cannam@126 11332 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cannam@126 11333 else
cannam@126 11334 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
cannam@126 11335 fi
cannam@126 11336 library_names_spec=
cannam@126 11337 libname_spec='lib$name'
cannam@126 11338 soname_spec=
cannam@126 11339 shrext_cmds=.so
cannam@126 11340 postinstall_cmds=
cannam@126 11341 postuninstall_cmds=
cannam@126 11342 finish_cmds=
cannam@126 11343 finish_eval=
cannam@126 11344 shlibpath_var=
cannam@126 11345 shlibpath_overrides_runpath=unknown
cannam@126 11346 version_type=none
cannam@126 11347 dynamic_linker="$host_os ld.so"
cannam@126 11348 sys_lib_dlsearch_path_spec="/lib /usr/lib"
cannam@126 11349 need_lib_prefix=unknown
cannam@126 11350 hardcode_into_libs=no
cannam@126 11351
cannam@126 11352 # when you set need_version to no, make sure it does not cause -set_version
cannam@126 11353 # flags to be left without arguments
cannam@126 11354 need_version=unknown
cannam@126 11355
cannam@126 11356
cannam@126 11357
cannam@126 11358 case $host_os in
cannam@126 11359 aix3*)
cannam@126 11360 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 11361 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
cannam@126 11362 shlibpath_var=LIBPATH
cannam@126 11363
cannam@126 11364 # AIX 3 has no versioning support, so we append a major version to the name.
cannam@126 11365 soname_spec='$libname$release$shared_ext$major'
cannam@126 11366 ;;
cannam@126 11367
cannam@126 11368 aix[4-9]*)
cannam@126 11369 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 11370 need_lib_prefix=no
cannam@126 11371 need_version=no
cannam@126 11372 hardcode_into_libs=yes
cannam@126 11373 if test ia64 = "$host_cpu"; then
cannam@126 11374 # AIX 5 supports IA64
cannam@126 11375 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
cannam@126 11376 shlibpath_var=LD_LIBRARY_PATH
cannam@126 11377 else
cannam@126 11378 # With GCC up to 2.95.x, collect2 would create an import file
cannam@126 11379 # for dependence libraries. The import file would start with
cannam@126 11380 # the line '#! .'. This would cause the generated library to
cannam@126 11381 # depend on '.', always an invalid library. This was fixed in
cannam@126 11382 # development snapshots of GCC prior to 3.0.
cannam@126 11383 case $host_os in
cannam@126 11384 aix4 | aix4.[01] | aix4.[01].*)
cannam@126 11385 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
cannam@126 11386 echo ' yes '
cannam@126 11387 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
cannam@126 11388 :
cannam@126 11389 else
cannam@126 11390 can_build_shared=no
cannam@126 11391 fi
cannam@126 11392 ;;
cannam@126 11393 esac
cannam@126 11394 # Using Import Files as archive members, it is possible to support
cannam@126 11395 # filename-based versioning of shared library archives on AIX. While
cannam@126 11396 # this would work for both with and without runtime linking, it will
cannam@126 11397 # prevent static linking of such archives. So we do filename-based
cannam@126 11398 # shared library versioning with .so extension only, which is used
cannam@126 11399 # when both runtime linking and shared linking is enabled.
cannam@126 11400 # Unfortunately, runtime linking may impact performance, so we do
cannam@126 11401 # not want this to be the default eventually. Also, we use the
cannam@126 11402 # versioned .so libs for executables only if there is the -brtl
cannam@126 11403 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
cannam@126 11404 # To allow for filename-based versioning support, we need to create
cannam@126 11405 # libNAME.so.V as an archive file, containing:
cannam@126 11406 # *) an Import File, referring to the versioned filename of the
cannam@126 11407 # archive as well as the shared archive member, telling the
cannam@126 11408 # bitwidth (32 or 64) of that shared object, and providing the
cannam@126 11409 # list of exported symbols of that shared object, eventually
cannam@126 11410 # decorated with the 'weak' keyword
cannam@126 11411 # *) the shared object with the F_LOADONLY flag set, to really avoid
cannam@126 11412 # it being seen by the linker.
cannam@126 11413 # At run time we better use the real file rather than another symlink,
cannam@126 11414 # but for link time we create the symlink libNAME.so -> libNAME.so.V
cannam@126 11415
cannam@126 11416 case $with_aix_soname,$aix_use_runtimelinking in
cannam@126 11417 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
cannam@126 11418 # soname into executable. Probably we can add versioning support to
cannam@126 11419 # collect2, so additional links can be useful in future.
cannam@126 11420 aix,yes) # traditional libtool
cannam@126 11421 dynamic_linker='AIX unversionable lib.so'
cannam@126 11422 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
cannam@126 11423 # instead of lib<name>.a to let people know that these are not
cannam@126 11424 # typical AIX shared libraries.
cannam@126 11425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 11426 ;;
cannam@126 11427 aix,no) # traditional AIX only
cannam@126 11428 dynamic_linker='AIX lib.a(lib.so.V)'
cannam@126 11429 # We preserve .a as extension for shared libraries through AIX4.2
cannam@126 11430 # and later when we are not doing run time linking.
cannam@126 11431 library_names_spec='$libname$release.a $libname.a'
cannam@126 11432 soname_spec='$libname$release$shared_ext$major'
cannam@126 11433 ;;
cannam@126 11434 svr4,*) # full svr4 only
cannam@126 11435 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
cannam@126 11436 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
cannam@126 11437 # We do not specify a path in Import Files, so LIBPATH fires.
cannam@126 11438 shlibpath_overrides_runpath=yes
cannam@126 11439 ;;
cannam@126 11440 *,yes) # both, prefer svr4
cannam@126 11441 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
cannam@126 11442 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
cannam@126 11443 # unpreferred sharedlib libNAME.a needs extra handling
cannam@126 11444 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
cannam@126 11445 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
cannam@126 11446 # We do not specify a path in Import Files, so LIBPATH fires.
cannam@126 11447 shlibpath_overrides_runpath=yes
cannam@126 11448 ;;
cannam@126 11449 *,no) # both, prefer aix
cannam@126 11450 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
cannam@126 11451 library_names_spec='$libname$release.a $libname.a'
cannam@126 11452 soname_spec='$libname$release$shared_ext$major'
cannam@126 11453 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
cannam@126 11454 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
cannam@126 11455 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
cannam@126 11456 ;;
cannam@126 11457 esac
cannam@126 11458 shlibpath_var=LIBPATH
cannam@126 11459 fi
cannam@126 11460 ;;
cannam@126 11461
cannam@126 11462 amigaos*)
cannam@126 11463 case $host_cpu in
cannam@126 11464 powerpc)
cannam@126 11465 # Since July 2007 AmigaOS4 officially supports .so libraries.
cannam@126 11466 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
cannam@126 11467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 11468 ;;
cannam@126 11469 m68k)
cannam@126 11470 library_names_spec='$libname.ixlibrary $libname.a'
cannam@126 11471 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cannam@126 11472 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
cannam@126 11473 ;;
cannam@126 11474 esac
cannam@126 11475 ;;
cannam@126 11476
cannam@126 11477 beos*)
cannam@126 11478 library_names_spec='$libname$shared_ext'
cannam@126 11479 dynamic_linker="$host_os ld.so"
cannam@126 11480 shlibpath_var=LIBRARY_PATH
cannam@126 11481 ;;
cannam@126 11482
cannam@126 11483 bsdi[45]*)
cannam@126 11484 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 11485 need_version=no
cannam@126 11486 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 11487 soname_spec='$libname$release$shared_ext$major'
cannam@126 11488 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
cannam@126 11489 shlibpath_var=LD_LIBRARY_PATH
cannam@126 11490 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
cannam@126 11491 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
cannam@126 11492 # the default ld.so.conf also contains /usr/contrib/lib and
cannam@126 11493 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
cannam@126 11494 # libtool to hard-code these into programs
cannam@126 11495 ;;
cannam@126 11496
cannam@126 11497 cygwin* | mingw* | pw32* | cegcc*)
cannam@126 11498 version_type=windows
cannam@126 11499 shrext_cmds=.dll
cannam@126 11500 need_version=no
cannam@126 11501 need_lib_prefix=no
cannam@126 11502
cannam@126 11503 case $GCC,$cc_basename in
cannam@126 11504 yes,*)
cannam@126 11505 # gcc
cannam@126 11506 library_names_spec='$libname.dll.a'
cannam@126 11507 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@126 11508 postinstall_cmds='base_file=`basename \$file`~
cannam@126 11509 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
cannam@126 11510 dldir=$destdir/`dirname \$dlpath`~
cannam@126 11511 test -d \$dldir || mkdir -p \$dldir~
cannam@126 11512 $install_prog $dir/$dlname \$dldir/$dlname~
cannam@126 11513 chmod a+x \$dldir/$dlname~
cannam@126 11514 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
cannam@126 11515 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
cannam@126 11516 fi'
cannam@126 11517 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@126 11518 dlpath=$dir/\$dldll~
cannam@126 11519 $RM \$dlpath'
cannam@126 11520 shlibpath_overrides_runpath=yes
cannam@126 11521
cannam@126 11522 case $host_os in
cannam@126 11523 cygwin*)
cannam@126 11524 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
cannam@126 11525 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
cannam@126 11526
cannam@126 11527 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cannam@126 11528 ;;
cannam@126 11529 mingw* | cegcc*)
cannam@126 11530 # MinGW DLLs use traditional 'lib' prefix
cannam@126 11531 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
cannam@126 11532 ;;
cannam@126 11533 pw32*)
cannam@126 11534 # pw32 DLLs use 'pw' prefix rather than 'lib'
cannam@126 11535 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
cannam@126 11536 ;;
cannam@126 11537 esac
cannam@126 11538 dynamic_linker='Win32 ld.exe'
cannam@126 11539 ;;
cannam@126 11540
cannam@126 11541 *,cl*)
cannam@126 11542 # Native MSVC
cannam@126 11543 libname_spec='$name'
cannam@126 11544 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
cannam@126 11545 library_names_spec='$libname.dll.lib'
cannam@126 11546
cannam@126 11547 case $build_os in
cannam@126 11548 mingw*)
cannam@126 11549 sys_lib_search_path_spec=
cannam@126 11550 lt_save_ifs=$IFS
cannam@126 11551 IFS=';'
cannam@126 11552 for lt_path in $LIB
cannam@126 11553 do
cannam@126 11554 IFS=$lt_save_ifs
cannam@126 11555 # Let DOS variable expansion print the short 8.3 style file name.
cannam@126 11556 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
cannam@126 11557 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
cannam@126 11558 done
cannam@126 11559 IFS=$lt_save_ifs
cannam@126 11560 # Convert to MSYS style.
cannam@126 11561 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@126 11562 ;;
cannam@126 11563 cygwin*)
cannam@126 11564 # Convert to unix form, then to dos form, then back to unix form
cannam@126 11565 # but this time dos style (no spaces!) so that the unix form looks
cannam@126 11566 # like /cygdrive/c/PROGRA~1:/cygdr...
cannam@126 11567 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
cannam@126 11568 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
cannam@126 11569 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@126 11570 ;;
cannam@126 11571 *)
cannam@126 11572 sys_lib_search_path_spec=$LIB
cannam@126 11573 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
cannam@126 11574 # It is most probably a Windows format PATH.
cannam@126 11575 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@126 11576 else
cannam@126 11577 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@126 11578 fi
cannam@126 11579 # FIXME: find the short name or the path components, as spaces are
cannam@126 11580 # common. (e.g. "Program Files" -> "PROGRA~1")
cannam@126 11581 ;;
cannam@126 11582 esac
cannam@126 11583
cannam@126 11584 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@126 11585 postinstall_cmds='base_file=`basename \$file`~
cannam@126 11586 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
cannam@126 11587 dldir=$destdir/`dirname \$dlpath`~
cannam@126 11588 test -d \$dldir || mkdir -p \$dldir~
cannam@126 11589 $install_prog $dir/$dlname \$dldir/$dlname'
cannam@126 11590 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@126 11591 dlpath=$dir/\$dldll~
cannam@126 11592 $RM \$dlpath'
cannam@126 11593 shlibpath_overrides_runpath=yes
cannam@126 11594 dynamic_linker='Win32 link.exe'
cannam@126 11595 ;;
cannam@126 11596
cannam@126 11597 *)
cannam@126 11598 # Assume MSVC wrapper
cannam@126 11599 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
cannam@126 11600 dynamic_linker='Win32 ld.exe'
cannam@126 11601 ;;
cannam@126 11602 esac
cannam@126 11603 # FIXME: first we should search . and the directory the executable is in
cannam@126 11604 shlibpath_var=PATH
cannam@126 11605 ;;
cannam@126 11606
cannam@126 11607 darwin* | rhapsody*)
cannam@126 11608 dynamic_linker="$host_os dyld"
cannam@126 11609 version_type=darwin
cannam@126 11610 need_lib_prefix=no
cannam@126 11611 need_version=no
cannam@126 11612 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
cannam@126 11613 soname_spec='$libname$release$major$shared_ext'
cannam@126 11614 shlibpath_overrides_runpath=yes
cannam@126 11615 shlibpath_var=DYLD_LIBRARY_PATH
cannam@126 11616 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
cannam@126 11617
cannam@126 11618 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
cannam@126 11619 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
cannam@126 11620 ;;
cannam@126 11621
cannam@126 11622 dgux*)
cannam@126 11623 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 11624 need_lib_prefix=no
cannam@126 11625 need_version=no
cannam@126 11626 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 11627 soname_spec='$libname$release$shared_ext$major'
cannam@126 11628 shlibpath_var=LD_LIBRARY_PATH
cannam@126 11629 ;;
cannam@126 11630
cannam@126 11631 freebsd* | dragonfly*)
cannam@126 11632 # DragonFly does not have aout. When/if they implement a new
cannam@126 11633 # versioning mechanism, adjust this.
cannam@126 11634 if test -x /usr/bin/objformat; then
cannam@126 11635 objformat=`/usr/bin/objformat`
cannam@126 11636 else
cannam@126 11637 case $host_os in
cannam@126 11638 freebsd[23].*) objformat=aout ;;
cannam@126 11639 *) objformat=elf ;;
cannam@126 11640 esac
cannam@126 11641 fi
cannam@126 11642 version_type=freebsd-$objformat
cannam@126 11643 case $version_type in
cannam@126 11644 freebsd-elf*)
cannam@126 11645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 11646 soname_spec='$libname$release$shared_ext$major'
cannam@126 11647 need_version=no
cannam@126 11648 need_lib_prefix=no
cannam@126 11649 ;;
cannam@126 11650 freebsd-*)
cannam@126 11651 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cannam@126 11652 need_version=yes
cannam@126 11653 ;;
cannam@126 11654 esac
cannam@126 11655 shlibpath_var=LD_LIBRARY_PATH
cannam@126 11656 case $host_os in
cannam@126 11657 freebsd2.*)
cannam@126 11658 shlibpath_overrides_runpath=yes
cannam@126 11659 ;;
cannam@126 11660 freebsd3.[01]* | freebsdelf3.[01]*)
cannam@126 11661 shlibpath_overrides_runpath=yes
cannam@126 11662 hardcode_into_libs=yes
cannam@126 11663 ;;
cannam@126 11664 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
cannam@126 11665 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
cannam@126 11666 shlibpath_overrides_runpath=no
cannam@126 11667 hardcode_into_libs=yes
cannam@126 11668 ;;
cannam@126 11669 *) # from 4.6 on, and DragonFly
cannam@126 11670 shlibpath_overrides_runpath=yes
cannam@126 11671 hardcode_into_libs=yes
cannam@126 11672 ;;
cannam@126 11673 esac
cannam@126 11674 ;;
cannam@126 11675
cannam@126 11676 haiku*)
cannam@126 11677 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 11678 need_lib_prefix=no
cannam@126 11679 need_version=no
cannam@126 11680 dynamic_linker="$host_os runtime_loader"
cannam@126 11681 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 11682 soname_spec='$libname$release$shared_ext$major'
cannam@126 11683 shlibpath_var=LIBRARY_PATH
cannam@126 11684 shlibpath_overrides_runpath=no
cannam@126 11685 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
cannam@126 11686 hardcode_into_libs=yes
cannam@126 11687 ;;
cannam@126 11688
cannam@126 11689 hpux9* | hpux10* | hpux11*)
cannam@126 11690 # Give a soname corresponding to the major version so that dld.sl refuses to
cannam@126 11691 # link against other versions.
cannam@126 11692 version_type=sunos
cannam@126 11693 need_lib_prefix=no
cannam@126 11694 need_version=no
cannam@126 11695 case $host_cpu in
cannam@126 11696 ia64*)
cannam@126 11697 shrext_cmds='.so'
cannam@126 11698 hardcode_into_libs=yes
cannam@126 11699 dynamic_linker="$host_os dld.so"
cannam@126 11700 shlibpath_var=LD_LIBRARY_PATH
cannam@126 11701 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@126 11702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 11703 soname_spec='$libname$release$shared_ext$major'
cannam@126 11704 if test 32 = "$HPUX_IA64_MODE"; then
cannam@126 11705 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
cannam@126 11706 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
cannam@126 11707 else
cannam@126 11708 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
cannam@126 11709 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
cannam@126 11710 fi
cannam@126 11711 ;;
cannam@126 11712 hppa*64*)
cannam@126 11713 shrext_cmds='.sl'
cannam@126 11714 hardcode_into_libs=yes
cannam@126 11715 dynamic_linker="$host_os dld.sl"
cannam@126 11716 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
cannam@126 11717 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@126 11718 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 11719 soname_spec='$libname$release$shared_ext$major'
cannam@126 11720 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
cannam@126 11721 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@126 11722 ;;
cannam@126 11723 *)
cannam@126 11724 shrext_cmds='.sl'
cannam@126 11725 dynamic_linker="$host_os dld.sl"
cannam@126 11726 shlibpath_var=SHLIB_PATH
cannam@126 11727 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
cannam@126 11728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 11729 soname_spec='$libname$release$shared_ext$major'
cannam@126 11730 ;;
cannam@126 11731 esac
cannam@126 11732 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cannam@126 11733 postinstall_cmds='chmod 555 $lib'
cannam@126 11734 # or fails outright, so override atomically:
cannam@126 11735 install_override_mode=555
cannam@126 11736 ;;
cannam@126 11737
cannam@126 11738 interix[3-9]*)
cannam@126 11739 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 11740 need_lib_prefix=no
cannam@126 11741 need_version=no
cannam@126 11742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 11743 soname_spec='$libname$release$shared_ext$major'
cannam@126 11744 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
cannam@126 11745 shlibpath_var=LD_LIBRARY_PATH
cannam@126 11746 shlibpath_overrides_runpath=no
cannam@126 11747 hardcode_into_libs=yes
cannam@126 11748 ;;
cannam@126 11749
cannam@126 11750 irix5* | irix6* | nonstopux*)
cannam@126 11751 case $host_os in
cannam@126 11752 nonstopux*) version_type=nonstopux ;;
cannam@126 11753 *)
cannam@126 11754 if test yes = "$lt_cv_prog_gnu_ld"; then
cannam@126 11755 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 11756 else
cannam@126 11757 version_type=irix
cannam@126 11758 fi ;;
cannam@126 11759 esac
cannam@126 11760 need_lib_prefix=no
cannam@126 11761 need_version=no
cannam@126 11762 soname_spec='$libname$release$shared_ext$major'
cannam@126 11763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
cannam@126 11764 case $host_os in
cannam@126 11765 irix5* | nonstopux*)
cannam@126 11766 libsuff= shlibsuff=
cannam@126 11767 ;;
cannam@126 11768 *)
cannam@126 11769 case $LD in # libtool.m4 will add one of these switches to LD
cannam@126 11770 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
cannam@126 11771 libsuff= shlibsuff= libmagic=32-bit;;
cannam@126 11772 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
cannam@126 11773 libsuff=32 shlibsuff=N32 libmagic=N32;;
cannam@126 11774 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
cannam@126 11775 libsuff=64 shlibsuff=64 libmagic=64-bit;;
cannam@126 11776 *) libsuff= shlibsuff= libmagic=never-match;;
cannam@126 11777 esac
cannam@126 11778 ;;
cannam@126 11779 esac
cannam@126 11780 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
cannam@126 11781 shlibpath_overrides_runpath=no
cannam@126 11782 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
cannam@126 11783 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
cannam@126 11784 hardcode_into_libs=yes
cannam@126 11785 ;;
cannam@126 11786
cannam@126 11787 # No shared lib support for Linux oldld, aout, or coff.
cannam@126 11788 linux*oldld* | linux*aout* | linux*coff*)
cannam@126 11789 dynamic_linker=no
cannam@126 11790 ;;
cannam@126 11791
cannam@126 11792 linux*android*)
cannam@126 11793 version_type=none # Android doesn't support versioned libraries.
cannam@126 11794 need_lib_prefix=no
cannam@126 11795 need_version=no
cannam@126 11796 library_names_spec='$libname$release$shared_ext'
cannam@126 11797 soname_spec='$libname$release$shared_ext'
cannam@126 11798 finish_cmds=
cannam@126 11799 shlibpath_var=LD_LIBRARY_PATH
cannam@126 11800 shlibpath_overrides_runpath=yes
cannam@126 11801
cannam@126 11802 # This implies no fast_install, which is unacceptable.
cannam@126 11803 # Some rework will be needed to allow for fast_install
cannam@126 11804 # before this can be enabled.
cannam@126 11805 hardcode_into_libs=yes
cannam@126 11806
cannam@126 11807 dynamic_linker='Android linker'
cannam@126 11808 # Don't embed -rpath directories since the linker doesn't support them.
cannam@126 11809 hardcode_libdir_flag_spec='-L$libdir'
cannam@126 11810 ;;
cannam@126 11811
cannam@126 11812 # This must be glibc/ELF.
cannam@126 11813 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cannam@126 11814 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 11815 need_lib_prefix=no
cannam@126 11816 need_version=no
cannam@126 11817 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 11818 soname_spec='$libname$release$shared_ext$major'
cannam@126 11819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
cannam@126 11820 shlibpath_var=LD_LIBRARY_PATH
cannam@126 11821 shlibpath_overrides_runpath=no
cannam@126 11822
cannam@126 11823 # Some binutils ld are patched to set DT_RUNPATH
cannam@126 11824 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cannam@126 11825 $as_echo_n "(cached) " >&6
cannam@126 11826 else
cannam@126 11827 lt_cv_shlibpath_overrides_runpath=no
cannam@126 11828 save_LDFLAGS=$LDFLAGS
cannam@126 11829 save_libdir=$libdir
cannam@126 11830 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
cannam@126 11831 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
cannam@126 11832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 11833 /* end confdefs.h. */
cannam@126 11834
cannam@126 11835 int
cannam@126 11836 main ()
cannam@126 11837 {
cannam@126 11838
cannam@126 11839 ;
cannam@126 11840 return 0;
cannam@126 11841 }
cannam@126 11842 _ACEOF
cannam@126 11843 if ac_fn_c_try_link "$LINENO"; then :
cannam@126 11844 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cannam@126 11845 lt_cv_shlibpath_overrides_runpath=yes
cannam@126 11846 fi
cannam@126 11847 fi
cannam@126 11848 rm -f core conftest.err conftest.$ac_objext \
cannam@126 11849 conftest$ac_exeext conftest.$ac_ext
cannam@126 11850 LDFLAGS=$save_LDFLAGS
cannam@126 11851 libdir=$save_libdir
cannam@126 11852
cannam@126 11853 fi
cannam@126 11854
cannam@126 11855 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cannam@126 11856
cannam@126 11857 # This implies no fast_install, which is unacceptable.
cannam@126 11858 # Some rework will be needed to allow for fast_install
cannam@126 11859 # before this can be enabled.
cannam@126 11860 hardcode_into_libs=yes
cannam@126 11861
cannam@126 11862 # Ideally, we could use ldconfig to report *all* directores which are
cannam@126 11863 # searched for libraries, however this is still not possible. Aside from not
cannam@126 11864 # being certain /sbin/ldconfig is available, command
cannam@126 11865 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
cannam@126 11866 # even though it is searched at run-time. Try to do the best guess by
cannam@126 11867 # appending ld.so.conf contents (and includes) to the search path.
cannam@126 11868 if test -f /etc/ld.so.conf; then
cannam@126 11869 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@126 11870 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
cannam@126 11871 fi
cannam@126 11872
cannam@126 11873 # We used to test for /lib/ld.so.1 and disable shared libraries on
cannam@126 11874 # powerpc, because MkLinux only supported shared libraries with the
cannam@126 11875 # GNU dynamic linker. Since this was broken with cross compilers,
cannam@126 11876 # most powerpc-linux boxes support dynamic linking these days and
cannam@126 11877 # people can always --disable-shared, the test was removed, and we
cannam@126 11878 # assume the GNU/Linux dynamic linker is in use.
cannam@126 11879 dynamic_linker='GNU/Linux ld.so'
cannam@126 11880 ;;
cannam@126 11881
cannam@126 11882 netbsdelf*-gnu)
cannam@126 11883 version_type=linux
cannam@126 11884 need_lib_prefix=no
cannam@126 11885 need_version=no
cannam@126 11886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@126 11887 soname_spec='${libname}${release}${shared_ext}$major'
cannam@126 11888 shlibpath_var=LD_LIBRARY_PATH
cannam@126 11889 shlibpath_overrides_runpath=no
cannam@126 11890 hardcode_into_libs=yes
cannam@126 11891 dynamic_linker='NetBSD ld.elf_so'
cannam@126 11892 ;;
cannam@126 11893
cannam@126 11894 netbsd*)
cannam@126 11895 version_type=sunos
cannam@126 11896 need_lib_prefix=no
cannam@126 11897 need_version=no
cannam@126 11898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@126 11899 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cannam@126 11900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@126 11901 dynamic_linker='NetBSD (a.out) ld.so'
cannam@126 11902 else
cannam@126 11903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 11904 soname_spec='$libname$release$shared_ext$major'
cannam@126 11905 dynamic_linker='NetBSD ld.elf_so'
cannam@126 11906 fi
cannam@126 11907 shlibpath_var=LD_LIBRARY_PATH
cannam@126 11908 shlibpath_overrides_runpath=yes
cannam@126 11909 hardcode_into_libs=yes
cannam@126 11910 ;;
cannam@126 11911
cannam@126 11912 newsos6)
cannam@126 11913 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 11914 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 11915 shlibpath_var=LD_LIBRARY_PATH
cannam@126 11916 shlibpath_overrides_runpath=yes
cannam@126 11917 ;;
cannam@126 11918
cannam@126 11919 *nto* | *qnx*)
cannam@126 11920 version_type=qnx
cannam@126 11921 need_lib_prefix=no
cannam@126 11922 need_version=no
cannam@126 11923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 11924 soname_spec='$libname$release$shared_ext$major'
cannam@126 11925 shlibpath_var=LD_LIBRARY_PATH
cannam@126 11926 shlibpath_overrides_runpath=no
cannam@126 11927 hardcode_into_libs=yes
cannam@126 11928 dynamic_linker='ldqnx.so'
cannam@126 11929 ;;
cannam@126 11930
cannam@126 11931 openbsd* | bitrig*)
cannam@126 11932 version_type=sunos
cannam@126 11933 sys_lib_dlsearch_path_spec=/usr/lib
cannam@126 11934 need_lib_prefix=no
cannam@126 11935 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
cannam@126 11936 need_version=no
cannam@126 11937 else
cannam@126 11938 need_version=yes
cannam@126 11939 fi
cannam@126 11940 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cannam@126 11941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@126 11942 shlibpath_var=LD_LIBRARY_PATH
cannam@126 11943 shlibpath_overrides_runpath=yes
cannam@126 11944 ;;
cannam@126 11945
cannam@126 11946 os2*)
cannam@126 11947 libname_spec='$name'
cannam@126 11948 version_type=windows
cannam@126 11949 shrext_cmds=.dll
cannam@126 11950 need_version=no
cannam@126 11951 need_lib_prefix=no
cannam@126 11952 # OS/2 can only load a DLL with a base name of 8 characters or less.
cannam@126 11953 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
cannam@126 11954 v=$($ECHO $release$versuffix | tr -d .-);
cannam@126 11955 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
cannam@126 11956 $ECHO $n$v`$shared_ext'
cannam@126 11957 library_names_spec='${libname}_dll.$libext'
cannam@126 11958 dynamic_linker='OS/2 ld.exe'
cannam@126 11959 shlibpath_var=BEGINLIBPATH
cannam@126 11960 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
cannam@126 11961 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@126 11962 postinstall_cmds='base_file=`basename \$file`~
cannam@126 11963 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
cannam@126 11964 dldir=$destdir/`dirname \$dlpath`~
cannam@126 11965 test -d \$dldir || mkdir -p \$dldir~
cannam@126 11966 $install_prog $dir/$dlname \$dldir/$dlname~
cannam@126 11967 chmod a+x \$dldir/$dlname~
cannam@126 11968 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
cannam@126 11969 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
cannam@126 11970 fi'
cannam@126 11971 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
cannam@126 11972 dlpath=$dir/\$dldll~
cannam@126 11973 $RM \$dlpath'
cannam@126 11974 ;;
cannam@126 11975
cannam@126 11976 osf3* | osf4* | osf5*)
cannam@126 11977 version_type=osf
cannam@126 11978 need_lib_prefix=no
cannam@126 11979 need_version=no
cannam@126 11980 soname_spec='$libname$release$shared_ext$major'
cannam@126 11981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 11982 shlibpath_var=LD_LIBRARY_PATH
cannam@126 11983 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
cannam@126 11984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@126 11985 ;;
cannam@126 11986
cannam@126 11987 rdos*)
cannam@126 11988 dynamic_linker=no
cannam@126 11989 ;;
cannam@126 11990
cannam@126 11991 solaris*)
cannam@126 11992 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 11993 need_lib_prefix=no
cannam@126 11994 need_version=no
cannam@126 11995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 11996 soname_spec='$libname$release$shared_ext$major'
cannam@126 11997 shlibpath_var=LD_LIBRARY_PATH
cannam@126 11998 shlibpath_overrides_runpath=yes
cannam@126 11999 hardcode_into_libs=yes
cannam@126 12000 # ldd complains unless libraries are executable
cannam@126 12001 postinstall_cmds='chmod +x $lib'
cannam@126 12002 ;;
cannam@126 12003
cannam@126 12004 sunos4*)
cannam@126 12005 version_type=sunos
cannam@126 12006 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cannam@126 12007 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
cannam@126 12008 shlibpath_var=LD_LIBRARY_PATH
cannam@126 12009 shlibpath_overrides_runpath=yes
cannam@126 12010 if test yes = "$with_gnu_ld"; then
cannam@126 12011 need_lib_prefix=no
cannam@126 12012 fi
cannam@126 12013 need_version=yes
cannam@126 12014 ;;
cannam@126 12015
cannam@126 12016 sysv4 | sysv4.3*)
cannam@126 12017 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 12018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 12019 soname_spec='$libname$release$shared_ext$major'
cannam@126 12020 shlibpath_var=LD_LIBRARY_PATH
cannam@126 12021 case $host_vendor in
cannam@126 12022 sni)
cannam@126 12023 shlibpath_overrides_runpath=no
cannam@126 12024 need_lib_prefix=no
cannam@126 12025 runpath_var=LD_RUN_PATH
cannam@126 12026 ;;
cannam@126 12027 siemens)
cannam@126 12028 need_lib_prefix=no
cannam@126 12029 ;;
cannam@126 12030 motorola)
cannam@126 12031 need_lib_prefix=no
cannam@126 12032 need_version=no
cannam@126 12033 shlibpath_overrides_runpath=no
cannam@126 12034 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
cannam@126 12035 ;;
cannam@126 12036 esac
cannam@126 12037 ;;
cannam@126 12038
cannam@126 12039 sysv4*MP*)
cannam@126 12040 if test -d /usr/nec; then
cannam@126 12041 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 12042 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
cannam@126 12043 soname_spec='$libname$shared_ext.$major'
cannam@126 12044 shlibpath_var=LD_LIBRARY_PATH
cannam@126 12045 fi
cannam@126 12046 ;;
cannam@126 12047
cannam@126 12048 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
cannam@126 12049 version_type=sco
cannam@126 12050 need_lib_prefix=no
cannam@126 12051 need_version=no
cannam@126 12052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
cannam@126 12053 soname_spec='$libname$release$shared_ext$major'
cannam@126 12054 shlibpath_var=LD_LIBRARY_PATH
cannam@126 12055 shlibpath_overrides_runpath=yes
cannam@126 12056 hardcode_into_libs=yes
cannam@126 12057 if test yes = "$with_gnu_ld"; then
cannam@126 12058 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
cannam@126 12059 else
cannam@126 12060 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
cannam@126 12061 case $host_os in
cannam@126 12062 sco3.2v5*)
cannam@126 12063 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
cannam@126 12064 ;;
cannam@126 12065 esac
cannam@126 12066 fi
cannam@126 12067 sys_lib_dlsearch_path_spec='/usr/lib'
cannam@126 12068 ;;
cannam@126 12069
cannam@126 12070 tpf*)
cannam@126 12071 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cannam@126 12072 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 12073 need_lib_prefix=no
cannam@126 12074 need_version=no
cannam@126 12075 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 12076 shlibpath_var=LD_LIBRARY_PATH
cannam@126 12077 shlibpath_overrides_runpath=no
cannam@126 12078 hardcode_into_libs=yes
cannam@126 12079 ;;
cannam@126 12080
cannam@126 12081 uts4*)
cannam@126 12082 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 12083 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 12084 soname_spec='$libname$release$shared_ext$major'
cannam@126 12085 shlibpath_var=LD_LIBRARY_PATH
cannam@126 12086 ;;
cannam@126 12087
cannam@126 12088 *)
cannam@126 12089 dynamic_linker=no
cannam@126 12090 ;;
cannam@126 12091 esac
cannam@126 12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cannam@126 12093 $as_echo "$dynamic_linker" >&6; }
cannam@126 12094 test no = "$dynamic_linker" && can_build_shared=no
cannam@126 12095
cannam@126 12096 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
cannam@126 12097 if test yes = "$GCC"; then
cannam@126 12098 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
cannam@126 12099 fi
cannam@126 12100
cannam@126 12101 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
cannam@126 12102 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
cannam@126 12103 fi
cannam@126 12104
cannam@126 12105 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
cannam@126 12106 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
cannam@126 12107 fi
cannam@126 12108
cannam@126 12109 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
cannam@126 12110 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
cannam@126 12111
cannam@126 12112 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
cannam@126 12113 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
cannam@126 12114
cannam@126 12115 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
cannam@126 12116 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
cannam@126 12117
cannam@126 12118
cannam@126 12119
cannam@126 12120
cannam@126 12121
cannam@126 12122
cannam@126 12123
cannam@126 12124
cannam@126 12125
cannam@126 12126
cannam@126 12127
cannam@126 12128
cannam@126 12129
cannam@126 12130
cannam@126 12131
cannam@126 12132
cannam@126 12133
cannam@126 12134
cannam@126 12135
cannam@126 12136
cannam@126 12137
cannam@126 12138
cannam@126 12139
cannam@126 12140
cannam@126 12141
cannam@126 12142
cannam@126 12143
cannam@126 12144
cannam@126 12145
cannam@126 12146
cannam@126 12147
cannam@126 12148
cannam@126 12149
cannam@126 12150
cannam@126 12151
cannam@126 12152
cannam@126 12153
cannam@126 12154
cannam@126 12155
cannam@126 12156
cannam@126 12157
cannam@126 12158
cannam@126 12159
cannam@126 12160
cannam@126 12161
cannam@126 12162
cannam@126 12163
cannam@126 12164
cannam@126 12165
cannam@126 12166
cannam@126 12167
cannam@126 12168
cannam@126 12169
cannam@126 12170
cannam@126 12171
cannam@126 12172
cannam@126 12173
cannam@126 12174
cannam@126 12175
cannam@126 12176
cannam@126 12177
cannam@126 12178
cannam@126 12179
cannam@126 12180
cannam@126 12181
cannam@126 12182
cannam@126 12183
cannam@126 12184
cannam@126 12185
cannam@126 12186
cannam@126 12187
cannam@126 12188
cannam@126 12189
cannam@126 12190
cannam@126 12191
cannam@126 12192
cannam@126 12193
cannam@126 12194
cannam@126 12195
cannam@126 12196
cannam@126 12197
cannam@126 12198
cannam@126 12199
cannam@126 12200
cannam@126 12201
cannam@126 12202
cannam@126 12203
cannam@126 12204
cannam@126 12205
cannam@126 12206
cannam@126 12207
cannam@126 12208
cannam@126 12209
cannam@126 12210
cannam@126 12211
cannam@126 12212
cannam@126 12213
cannam@126 12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cannam@126 12215 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
cannam@126 12216 hardcode_action=
cannam@126 12217 if test -n "$hardcode_libdir_flag_spec" ||
cannam@126 12218 test -n "$runpath_var" ||
cannam@126 12219 test yes = "$hardcode_automatic"; then
cannam@126 12220
cannam@126 12221 # We can hardcode non-existent directories.
cannam@126 12222 if test no != "$hardcode_direct" &&
cannam@126 12223 # If the only mechanism to avoid hardcoding is shlibpath_var, we
cannam@126 12224 # have to relink, otherwise we might link with an installed library
cannam@126 12225 # when we should be linking with a yet-to-be-installed one
cannam@126 12226 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
cannam@126 12227 test no != "$hardcode_minus_L"; then
cannam@126 12228 # Linking always hardcodes the temporary library directory.
cannam@126 12229 hardcode_action=relink
cannam@126 12230 else
cannam@126 12231 # We can link without hardcoding, and we can hardcode nonexisting dirs.
cannam@126 12232 hardcode_action=immediate
cannam@126 12233 fi
cannam@126 12234 else
cannam@126 12235 # We cannot hardcode anything, or else we can only hardcode existing
cannam@126 12236 # directories.
cannam@126 12237 hardcode_action=unsupported
cannam@126 12238 fi
cannam@126 12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cannam@126 12240 $as_echo "$hardcode_action" >&6; }
cannam@126 12241
cannam@126 12242 if test relink = "$hardcode_action" ||
cannam@126 12243 test yes = "$inherit_rpath"; then
cannam@126 12244 # Fast installation is not supported
cannam@126 12245 enable_fast_install=no
cannam@126 12246 elif test yes = "$shlibpath_overrides_runpath" ||
cannam@126 12247 test no = "$enable_shared"; then
cannam@126 12248 # Fast installation is not necessary
cannam@126 12249 enable_fast_install=needless
cannam@126 12250 fi
cannam@126 12251
cannam@126 12252
cannam@126 12253
cannam@126 12254
cannam@126 12255
cannam@126 12256
cannam@126 12257 if test yes != "$enable_dlopen"; then
cannam@126 12258 enable_dlopen=unknown
cannam@126 12259 enable_dlopen_self=unknown
cannam@126 12260 enable_dlopen_self_static=unknown
cannam@126 12261 else
cannam@126 12262 lt_cv_dlopen=no
cannam@126 12263 lt_cv_dlopen_libs=
cannam@126 12264
cannam@126 12265 case $host_os in
cannam@126 12266 beos*)
cannam@126 12267 lt_cv_dlopen=load_add_on
cannam@126 12268 lt_cv_dlopen_libs=
cannam@126 12269 lt_cv_dlopen_self=yes
cannam@126 12270 ;;
cannam@126 12271
cannam@126 12272 mingw* | pw32* | cegcc*)
cannam@126 12273 lt_cv_dlopen=LoadLibrary
cannam@126 12274 lt_cv_dlopen_libs=
cannam@126 12275 ;;
cannam@126 12276
cannam@126 12277 cygwin*)
cannam@126 12278 lt_cv_dlopen=dlopen
cannam@126 12279 lt_cv_dlopen_libs=
cannam@126 12280 ;;
cannam@126 12281
cannam@126 12282 darwin*)
cannam@126 12283 # if libdl is installed we need to link against it
cannam@126 12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cannam@126 12285 $as_echo_n "checking for dlopen in -ldl... " >&6; }
cannam@126 12286 if ${ac_cv_lib_dl_dlopen+:} false; then :
cannam@126 12287 $as_echo_n "(cached) " >&6
cannam@126 12288 else
cannam@126 12289 ac_check_lib_save_LIBS=$LIBS
cannam@126 12290 LIBS="-ldl $LIBS"
cannam@126 12291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 12292 /* end confdefs.h. */
cannam@126 12293
cannam@126 12294 /* Override any GCC internal prototype to avoid an error.
cannam@126 12295 Use char because int might match the return type of a GCC
cannam@126 12296 builtin and then its argument prototype would still apply. */
cannam@126 12297 #ifdef __cplusplus
cannam@126 12298 extern "C"
cannam@126 12299 #endif
cannam@126 12300 char dlopen ();
cannam@126 12301 int
cannam@126 12302 main ()
cannam@126 12303 {
cannam@126 12304 return dlopen ();
cannam@126 12305 ;
cannam@126 12306 return 0;
cannam@126 12307 }
cannam@126 12308 _ACEOF
cannam@126 12309 if ac_fn_c_try_link "$LINENO"; then :
cannam@126 12310 ac_cv_lib_dl_dlopen=yes
cannam@126 12311 else
cannam@126 12312 ac_cv_lib_dl_dlopen=no
cannam@126 12313 fi
cannam@126 12314 rm -f core conftest.err conftest.$ac_objext \
cannam@126 12315 conftest$ac_exeext conftest.$ac_ext
cannam@126 12316 LIBS=$ac_check_lib_save_LIBS
cannam@126 12317 fi
cannam@126 12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cannam@126 12319 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cannam@126 12320 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cannam@126 12321 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
cannam@126 12322 else
cannam@126 12323
cannam@126 12324 lt_cv_dlopen=dyld
cannam@126 12325 lt_cv_dlopen_libs=
cannam@126 12326 lt_cv_dlopen_self=yes
cannam@126 12327
cannam@126 12328 fi
cannam@126 12329
cannam@126 12330 ;;
cannam@126 12331
cannam@126 12332 tpf*)
cannam@126 12333 # Don't try to run any link tests for TPF. We know it's impossible
cannam@126 12334 # because TPF is a cross-compiler, and we know how we open DSOs.
cannam@126 12335 lt_cv_dlopen=dlopen
cannam@126 12336 lt_cv_dlopen_libs=
cannam@126 12337 lt_cv_dlopen_self=no
cannam@126 12338 ;;
cannam@126 12339
cannam@126 12340 *)
cannam@126 12341 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cannam@126 12342 if test "x$ac_cv_func_shl_load" = xyes; then :
cannam@126 12343 lt_cv_dlopen=shl_load
cannam@126 12344 else
cannam@126 12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cannam@126 12346 $as_echo_n "checking for shl_load in -ldld... " >&6; }
cannam@126 12347 if ${ac_cv_lib_dld_shl_load+:} false; then :
cannam@126 12348 $as_echo_n "(cached) " >&6
cannam@126 12349 else
cannam@126 12350 ac_check_lib_save_LIBS=$LIBS
cannam@126 12351 LIBS="-ldld $LIBS"
cannam@126 12352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 12353 /* end confdefs.h. */
cannam@126 12354
cannam@126 12355 /* Override any GCC internal prototype to avoid an error.
cannam@126 12356 Use char because int might match the return type of a GCC
cannam@126 12357 builtin and then its argument prototype would still apply. */
cannam@126 12358 #ifdef __cplusplus
cannam@126 12359 extern "C"
cannam@126 12360 #endif
cannam@126 12361 char shl_load ();
cannam@126 12362 int
cannam@126 12363 main ()
cannam@126 12364 {
cannam@126 12365 return shl_load ();
cannam@126 12366 ;
cannam@126 12367 return 0;
cannam@126 12368 }
cannam@126 12369 _ACEOF
cannam@126 12370 if ac_fn_c_try_link "$LINENO"; then :
cannam@126 12371 ac_cv_lib_dld_shl_load=yes
cannam@126 12372 else
cannam@126 12373 ac_cv_lib_dld_shl_load=no
cannam@126 12374 fi
cannam@126 12375 rm -f core conftest.err conftest.$ac_objext \
cannam@126 12376 conftest$ac_exeext conftest.$ac_ext
cannam@126 12377 LIBS=$ac_check_lib_save_LIBS
cannam@126 12378 fi
cannam@126 12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cannam@126 12380 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cannam@126 12381 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cannam@126 12382 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
cannam@126 12383 else
cannam@126 12384 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cannam@126 12385 if test "x$ac_cv_func_dlopen" = xyes; then :
cannam@126 12386 lt_cv_dlopen=dlopen
cannam@126 12387 else
cannam@126 12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cannam@126 12389 $as_echo_n "checking for dlopen in -ldl... " >&6; }
cannam@126 12390 if ${ac_cv_lib_dl_dlopen+:} false; then :
cannam@126 12391 $as_echo_n "(cached) " >&6
cannam@126 12392 else
cannam@126 12393 ac_check_lib_save_LIBS=$LIBS
cannam@126 12394 LIBS="-ldl $LIBS"
cannam@126 12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 12396 /* end confdefs.h. */
cannam@126 12397
cannam@126 12398 /* Override any GCC internal prototype to avoid an error.
cannam@126 12399 Use char because int might match the return type of a GCC
cannam@126 12400 builtin and then its argument prototype would still apply. */
cannam@126 12401 #ifdef __cplusplus
cannam@126 12402 extern "C"
cannam@126 12403 #endif
cannam@126 12404 char dlopen ();
cannam@126 12405 int
cannam@126 12406 main ()
cannam@126 12407 {
cannam@126 12408 return dlopen ();
cannam@126 12409 ;
cannam@126 12410 return 0;
cannam@126 12411 }
cannam@126 12412 _ACEOF
cannam@126 12413 if ac_fn_c_try_link "$LINENO"; then :
cannam@126 12414 ac_cv_lib_dl_dlopen=yes
cannam@126 12415 else
cannam@126 12416 ac_cv_lib_dl_dlopen=no
cannam@126 12417 fi
cannam@126 12418 rm -f core conftest.err conftest.$ac_objext \
cannam@126 12419 conftest$ac_exeext conftest.$ac_ext
cannam@126 12420 LIBS=$ac_check_lib_save_LIBS
cannam@126 12421 fi
cannam@126 12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cannam@126 12423 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cannam@126 12424 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cannam@126 12425 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
cannam@126 12426 else
cannam@126 12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cannam@126 12428 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
cannam@126 12429 if ${ac_cv_lib_svld_dlopen+:} false; then :
cannam@126 12430 $as_echo_n "(cached) " >&6
cannam@126 12431 else
cannam@126 12432 ac_check_lib_save_LIBS=$LIBS
cannam@126 12433 LIBS="-lsvld $LIBS"
cannam@126 12434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 12435 /* end confdefs.h. */
cannam@126 12436
cannam@126 12437 /* Override any GCC internal prototype to avoid an error.
cannam@126 12438 Use char because int might match the return type of a GCC
cannam@126 12439 builtin and then its argument prototype would still apply. */
cannam@126 12440 #ifdef __cplusplus
cannam@126 12441 extern "C"
cannam@126 12442 #endif
cannam@126 12443 char dlopen ();
cannam@126 12444 int
cannam@126 12445 main ()
cannam@126 12446 {
cannam@126 12447 return dlopen ();
cannam@126 12448 ;
cannam@126 12449 return 0;
cannam@126 12450 }
cannam@126 12451 _ACEOF
cannam@126 12452 if ac_fn_c_try_link "$LINENO"; then :
cannam@126 12453 ac_cv_lib_svld_dlopen=yes
cannam@126 12454 else
cannam@126 12455 ac_cv_lib_svld_dlopen=no
cannam@126 12456 fi
cannam@126 12457 rm -f core conftest.err conftest.$ac_objext \
cannam@126 12458 conftest$ac_exeext conftest.$ac_ext
cannam@126 12459 LIBS=$ac_check_lib_save_LIBS
cannam@126 12460 fi
cannam@126 12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cannam@126 12462 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cannam@126 12463 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cannam@126 12464 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
cannam@126 12465 else
cannam@126 12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cannam@126 12467 $as_echo_n "checking for dld_link in -ldld... " >&6; }
cannam@126 12468 if ${ac_cv_lib_dld_dld_link+:} false; then :
cannam@126 12469 $as_echo_n "(cached) " >&6
cannam@126 12470 else
cannam@126 12471 ac_check_lib_save_LIBS=$LIBS
cannam@126 12472 LIBS="-ldld $LIBS"
cannam@126 12473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 12474 /* end confdefs.h. */
cannam@126 12475
cannam@126 12476 /* Override any GCC internal prototype to avoid an error.
cannam@126 12477 Use char because int might match the return type of a GCC
cannam@126 12478 builtin and then its argument prototype would still apply. */
cannam@126 12479 #ifdef __cplusplus
cannam@126 12480 extern "C"
cannam@126 12481 #endif
cannam@126 12482 char dld_link ();
cannam@126 12483 int
cannam@126 12484 main ()
cannam@126 12485 {
cannam@126 12486 return dld_link ();
cannam@126 12487 ;
cannam@126 12488 return 0;
cannam@126 12489 }
cannam@126 12490 _ACEOF
cannam@126 12491 if ac_fn_c_try_link "$LINENO"; then :
cannam@126 12492 ac_cv_lib_dld_dld_link=yes
cannam@126 12493 else
cannam@126 12494 ac_cv_lib_dld_dld_link=no
cannam@126 12495 fi
cannam@126 12496 rm -f core conftest.err conftest.$ac_objext \
cannam@126 12497 conftest$ac_exeext conftest.$ac_ext
cannam@126 12498 LIBS=$ac_check_lib_save_LIBS
cannam@126 12499 fi
cannam@126 12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cannam@126 12501 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cannam@126 12502 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cannam@126 12503 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
cannam@126 12504 fi
cannam@126 12505
cannam@126 12506
cannam@126 12507 fi
cannam@126 12508
cannam@126 12509
cannam@126 12510 fi
cannam@126 12511
cannam@126 12512
cannam@126 12513 fi
cannam@126 12514
cannam@126 12515
cannam@126 12516 fi
cannam@126 12517
cannam@126 12518
cannam@126 12519 fi
cannam@126 12520
cannam@126 12521 ;;
cannam@126 12522 esac
cannam@126 12523
cannam@126 12524 if test no = "$lt_cv_dlopen"; then
cannam@126 12525 enable_dlopen=no
cannam@126 12526 else
cannam@126 12527 enable_dlopen=yes
cannam@126 12528 fi
cannam@126 12529
cannam@126 12530 case $lt_cv_dlopen in
cannam@126 12531 dlopen)
cannam@126 12532 save_CPPFLAGS=$CPPFLAGS
cannam@126 12533 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
cannam@126 12534
cannam@126 12535 save_LDFLAGS=$LDFLAGS
cannam@126 12536 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
cannam@126 12537
cannam@126 12538 save_LIBS=$LIBS
cannam@126 12539 LIBS="$lt_cv_dlopen_libs $LIBS"
cannam@126 12540
cannam@126 12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cannam@126 12542 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
cannam@126 12543 if ${lt_cv_dlopen_self+:} false; then :
cannam@126 12544 $as_echo_n "(cached) " >&6
cannam@126 12545 else
cannam@126 12546 if test yes = "$cross_compiling"; then :
cannam@126 12547 lt_cv_dlopen_self=cross
cannam@126 12548 else
cannam@126 12549 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@126 12550 lt_status=$lt_dlunknown
cannam@126 12551 cat > conftest.$ac_ext <<_LT_EOF
cannam@126 12552 #line $LINENO "configure"
cannam@126 12553 #include "confdefs.h"
cannam@126 12554
cannam@126 12555 #if HAVE_DLFCN_H
cannam@126 12556 #include <dlfcn.h>
cannam@126 12557 #endif
cannam@126 12558
cannam@126 12559 #include <stdio.h>
cannam@126 12560
cannam@126 12561 #ifdef RTLD_GLOBAL
cannam@126 12562 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@126 12563 #else
cannam@126 12564 # ifdef DL_GLOBAL
cannam@126 12565 # define LT_DLGLOBAL DL_GLOBAL
cannam@126 12566 # else
cannam@126 12567 # define LT_DLGLOBAL 0
cannam@126 12568 # endif
cannam@126 12569 #endif
cannam@126 12570
cannam@126 12571 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@126 12572 find out it does not work in some platform. */
cannam@126 12573 #ifndef LT_DLLAZY_OR_NOW
cannam@126 12574 # ifdef RTLD_LAZY
cannam@126 12575 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@126 12576 # else
cannam@126 12577 # ifdef DL_LAZY
cannam@126 12578 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@126 12579 # else
cannam@126 12580 # ifdef RTLD_NOW
cannam@126 12581 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@126 12582 # else
cannam@126 12583 # ifdef DL_NOW
cannam@126 12584 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@126 12585 # else
cannam@126 12586 # define LT_DLLAZY_OR_NOW 0
cannam@126 12587 # endif
cannam@126 12588 # endif
cannam@126 12589 # endif
cannam@126 12590 # endif
cannam@126 12591 #endif
cannam@126 12592
cannam@126 12593 /* When -fvisibility=hidden is used, assume the code has been annotated
cannam@126 12594 correspondingly for the symbols needed. */
cannam@126 12595 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cannam@126 12596 int fnord () __attribute__((visibility("default")));
cannam@126 12597 #endif
cannam@126 12598
cannam@126 12599 int fnord () { return 42; }
cannam@126 12600 int main ()
cannam@126 12601 {
cannam@126 12602 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@126 12603 int status = $lt_dlunknown;
cannam@126 12604
cannam@126 12605 if (self)
cannam@126 12606 {
cannam@126 12607 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@126 12608 else
cannam@126 12609 {
cannam@126 12610 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@126 12611 else puts (dlerror ());
cannam@126 12612 }
cannam@126 12613 /* dlclose (self); */
cannam@126 12614 }
cannam@126 12615 else
cannam@126 12616 puts (dlerror ());
cannam@126 12617
cannam@126 12618 return status;
cannam@126 12619 }
cannam@126 12620 _LT_EOF
cannam@126 12621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cannam@126 12622 (eval $ac_link) 2>&5
cannam@126 12623 ac_status=$?
cannam@126 12624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 12625 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
cannam@126 12626 (./conftest; exit; ) >&5 2>/dev/null
cannam@126 12627 lt_status=$?
cannam@126 12628 case x$lt_status in
cannam@126 12629 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
cannam@126 12630 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
cannam@126 12631 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
cannam@126 12632 esac
cannam@126 12633 else :
cannam@126 12634 # compilation failed
cannam@126 12635 lt_cv_dlopen_self=no
cannam@126 12636 fi
cannam@126 12637 fi
cannam@126 12638 rm -fr conftest*
cannam@126 12639
cannam@126 12640
cannam@126 12641 fi
cannam@126 12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cannam@126 12643 $as_echo "$lt_cv_dlopen_self" >&6; }
cannam@126 12644
cannam@126 12645 if test yes = "$lt_cv_dlopen_self"; then
cannam@126 12646 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cannam@126 12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cannam@126 12648 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cannam@126 12649 if ${lt_cv_dlopen_self_static+:} false; then :
cannam@126 12650 $as_echo_n "(cached) " >&6
cannam@126 12651 else
cannam@126 12652 if test yes = "$cross_compiling"; then :
cannam@126 12653 lt_cv_dlopen_self_static=cross
cannam@126 12654 else
cannam@126 12655 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@126 12656 lt_status=$lt_dlunknown
cannam@126 12657 cat > conftest.$ac_ext <<_LT_EOF
cannam@126 12658 #line $LINENO "configure"
cannam@126 12659 #include "confdefs.h"
cannam@126 12660
cannam@126 12661 #if HAVE_DLFCN_H
cannam@126 12662 #include <dlfcn.h>
cannam@126 12663 #endif
cannam@126 12664
cannam@126 12665 #include <stdio.h>
cannam@126 12666
cannam@126 12667 #ifdef RTLD_GLOBAL
cannam@126 12668 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@126 12669 #else
cannam@126 12670 # ifdef DL_GLOBAL
cannam@126 12671 # define LT_DLGLOBAL DL_GLOBAL
cannam@126 12672 # else
cannam@126 12673 # define LT_DLGLOBAL 0
cannam@126 12674 # endif
cannam@126 12675 #endif
cannam@126 12676
cannam@126 12677 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@126 12678 find out it does not work in some platform. */
cannam@126 12679 #ifndef LT_DLLAZY_OR_NOW
cannam@126 12680 # ifdef RTLD_LAZY
cannam@126 12681 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@126 12682 # else
cannam@126 12683 # ifdef DL_LAZY
cannam@126 12684 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@126 12685 # else
cannam@126 12686 # ifdef RTLD_NOW
cannam@126 12687 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@126 12688 # else
cannam@126 12689 # ifdef DL_NOW
cannam@126 12690 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@126 12691 # else
cannam@126 12692 # define LT_DLLAZY_OR_NOW 0
cannam@126 12693 # endif
cannam@126 12694 # endif
cannam@126 12695 # endif
cannam@126 12696 # endif
cannam@126 12697 #endif
cannam@126 12698
cannam@126 12699 /* When -fvisibility=hidden is used, assume the code has been annotated
cannam@126 12700 correspondingly for the symbols needed. */
cannam@126 12701 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cannam@126 12702 int fnord () __attribute__((visibility("default")));
cannam@126 12703 #endif
cannam@126 12704
cannam@126 12705 int fnord () { return 42; }
cannam@126 12706 int main ()
cannam@126 12707 {
cannam@126 12708 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@126 12709 int status = $lt_dlunknown;
cannam@126 12710
cannam@126 12711 if (self)
cannam@126 12712 {
cannam@126 12713 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@126 12714 else
cannam@126 12715 {
cannam@126 12716 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@126 12717 else puts (dlerror ());
cannam@126 12718 }
cannam@126 12719 /* dlclose (self); */
cannam@126 12720 }
cannam@126 12721 else
cannam@126 12722 puts (dlerror ());
cannam@126 12723
cannam@126 12724 return status;
cannam@126 12725 }
cannam@126 12726 _LT_EOF
cannam@126 12727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cannam@126 12728 (eval $ac_link) 2>&5
cannam@126 12729 ac_status=$?
cannam@126 12730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 12731 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
cannam@126 12732 (./conftest; exit; ) >&5 2>/dev/null
cannam@126 12733 lt_status=$?
cannam@126 12734 case x$lt_status in
cannam@126 12735 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@126 12736 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@126 12737 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
cannam@126 12738 esac
cannam@126 12739 else :
cannam@126 12740 # compilation failed
cannam@126 12741 lt_cv_dlopen_self_static=no
cannam@126 12742 fi
cannam@126 12743 fi
cannam@126 12744 rm -fr conftest*
cannam@126 12745
cannam@126 12746
cannam@126 12747 fi
cannam@126 12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cannam@126 12749 $as_echo "$lt_cv_dlopen_self_static" >&6; }
cannam@126 12750 fi
cannam@126 12751
cannam@126 12752 CPPFLAGS=$save_CPPFLAGS
cannam@126 12753 LDFLAGS=$save_LDFLAGS
cannam@126 12754 LIBS=$save_LIBS
cannam@126 12755 ;;
cannam@126 12756 esac
cannam@126 12757
cannam@126 12758 case $lt_cv_dlopen_self in
cannam@126 12759 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
cannam@126 12760 *) enable_dlopen_self=unknown ;;
cannam@126 12761 esac
cannam@126 12762
cannam@126 12763 case $lt_cv_dlopen_self_static in
cannam@126 12764 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
cannam@126 12765 *) enable_dlopen_self_static=unknown ;;
cannam@126 12766 esac
cannam@126 12767 fi
cannam@126 12768
cannam@126 12769
cannam@126 12770
cannam@126 12771
cannam@126 12772
cannam@126 12773
cannam@126 12774
cannam@126 12775
cannam@126 12776
cannam@126 12777
cannam@126 12778
cannam@126 12779
cannam@126 12780
cannam@126 12781
cannam@126 12782
cannam@126 12783
cannam@126 12784
cannam@126 12785 striplib=
cannam@126 12786 old_striplib=
cannam@126 12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cannam@126 12788 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
cannam@126 12789 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
cannam@126 12790 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
cannam@126 12791 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cannam@126 12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@126 12793 $as_echo "yes" >&6; }
cannam@126 12794 else
cannam@126 12795 # FIXME - insert some real tests, host_os isn't really good enough
cannam@126 12796 case $host_os in
cannam@126 12797 darwin*)
cannam@126 12798 if test -n "$STRIP"; then
cannam@126 12799 striplib="$STRIP -x"
cannam@126 12800 old_striplib="$STRIP -S"
cannam@126 12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@126 12802 $as_echo "yes" >&6; }
cannam@126 12803 else
cannam@126 12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 12805 $as_echo "no" >&6; }
cannam@126 12806 fi
cannam@126 12807 ;;
cannam@126 12808 *)
cannam@126 12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 12810 $as_echo "no" >&6; }
cannam@126 12811 ;;
cannam@126 12812 esac
cannam@126 12813 fi
cannam@126 12814
cannam@126 12815
cannam@126 12816
cannam@126 12817
cannam@126 12818
cannam@126 12819
cannam@126 12820
cannam@126 12821
cannam@126 12822
cannam@126 12823
cannam@126 12824
cannam@126 12825
cannam@126 12826 # Report what library types will actually be built
cannam@126 12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cannam@126 12828 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
cannam@126 12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cannam@126 12830 $as_echo "$can_build_shared" >&6; }
cannam@126 12831
cannam@126 12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cannam@126 12833 $as_echo_n "checking whether to build shared libraries... " >&6; }
cannam@126 12834 test no = "$can_build_shared" && enable_shared=no
cannam@126 12835
cannam@126 12836 # On AIX, shared libraries and static libraries use the same namespace, and
cannam@126 12837 # are all built from PIC.
cannam@126 12838 case $host_os in
cannam@126 12839 aix3*)
cannam@126 12840 test yes = "$enable_shared" && enable_static=no
cannam@126 12841 if test -n "$RANLIB"; then
cannam@126 12842 archive_cmds="$archive_cmds~\$RANLIB \$lib"
cannam@126 12843 postinstall_cmds='$RANLIB $lib'
cannam@126 12844 fi
cannam@126 12845 ;;
cannam@126 12846
cannam@126 12847 aix[4-9]*)
cannam@126 12848 if test ia64 != "$host_cpu"; then
cannam@126 12849 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
cannam@126 12850 yes,aix,yes) ;; # shared object as lib.so file only
cannam@126 12851 yes,svr4,*) ;; # shared object as lib.so archive member only
cannam@126 12852 yes,*) enable_static=no ;; # shared object in lib.a archive as well
cannam@126 12853 esac
cannam@126 12854 fi
cannam@126 12855 ;;
cannam@126 12856 esac
cannam@126 12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cannam@126 12858 $as_echo "$enable_shared" >&6; }
cannam@126 12859
cannam@126 12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cannam@126 12861 $as_echo_n "checking whether to build static libraries... " >&6; }
cannam@126 12862 # Make sure either enable_shared or enable_static is yes.
cannam@126 12863 test yes = "$enable_shared" || enable_static=yes
cannam@126 12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cannam@126 12865 $as_echo "$enable_static" >&6; }
cannam@126 12866
cannam@126 12867
cannam@126 12868
cannam@126 12869
cannam@126 12870 fi
cannam@126 12871 ac_ext=c
cannam@126 12872 ac_cpp='$CPP $CPPFLAGS'
cannam@126 12873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@126 12874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@126 12875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@126 12876
cannam@126 12877 CC=$lt_save_CC
cannam@126 12878
cannam@126 12879 if test -n "$CXX" && ( test no != "$CXX" &&
cannam@126 12880 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
cannam@126 12881 (test g++ != "$CXX"))); then
cannam@126 12882 ac_ext=cpp
cannam@126 12883 ac_cpp='$CXXCPP $CPPFLAGS'
cannam@126 12884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@126 12885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@126 12886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cannam@126 12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
cannam@126 12888 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
cannam@126 12889 if test -z "$CXXCPP"; then
cannam@126 12890 if ${ac_cv_prog_CXXCPP+:} false; then :
cannam@126 12891 $as_echo_n "(cached) " >&6
cannam@126 12892 else
cannam@126 12893 # Double quotes because CXXCPP needs to be expanded
cannam@126 12894 for CXXCPP in "$CXX -E" "/lib/cpp"
cannam@126 12895 do
cannam@126 12896 ac_preproc_ok=false
cannam@126 12897 for ac_cxx_preproc_warn_flag in '' yes
cannam@126 12898 do
cannam@126 12899 # Use a header file that comes with gcc, so configuring glibc
cannam@126 12900 # with a fresh cross-compiler works.
cannam@126 12901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@126 12902 # <limits.h> exists even on freestanding compilers.
cannam@126 12903 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@126 12904 # not just through cpp. "Syntax error" is here to catch this case.
cannam@126 12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 12906 /* end confdefs.h. */
cannam@126 12907 #ifdef __STDC__
cannam@126 12908 # include <limits.h>
cannam@126 12909 #else
cannam@126 12910 # include <assert.h>
cannam@126 12911 #endif
cannam@126 12912 Syntax error
cannam@126 12913 _ACEOF
cannam@126 12914 if ac_fn_cxx_try_cpp "$LINENO"; then :
cannam@126 12915
cannam@126 12916 else
cannam@126 12917 # Broken: fails on valid input.
cannam@126 12918 continue
cannam@126 12919 fi
cannam@126 12920 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@126 12921
cannam@126 12922 # OK, works on sane cases. Now check whether nonexistent headers
cannam@126 12923 # can be detected and how.
cannam@126 12924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 12925 /* end confdefs.h. */
cannam@126 12926 #include <ac_nonexistent.h>
cannam@126 12927 _ACEOF
cannam@126 12928 if ac_fn_cxx_try_cpp "$LINENO"; then :
cannam@126 12929 # Broken: success on invalid input.
cannam@126 12930 continue
cannam@126 12931 else
cannam@126 12932 # Passes both tests.
cannam@126 12933 ac_preproc_ok=:
cannam@126 12934 break
cannam@126 12935 fi
cannam@126 12936 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@126 12937
cannam@126 12938 done
cannam@126 12939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@126 12940 rm -f conftest.i conftest.err conftest.$ac_ext
cannam@126 12941 if $ac_preproc_ok; then :
cannam@126 12942 break
cannam@126 12943 fi
cannam@126 12944
cannam@126 12945 done
cannam@126 12946 ac_cv_prog_CXXCPP=$CXXCPP
cannam@126 12947
cannam@126 12948 fi
cannam@126 12949 CXXCPP=$ac_cv_prog_CXXCPP
cannam@126 12950 else
cannam@126 12951 ac_cv_prog_CXXCPP=$CXXCPP
cannam@126 12952 fi
cannam@126 12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
cannam@126 12954 $as_echo "$CXXCPP" >&6; }
cannam@126 12955 ac_preproc_ok=false
cannam@126 12956 for ac_cxx_preproc_warn_flag in '' yes
cannam@126 12957 do
cannam@126 12958 # Use a header file that comes with gcc, so configuring glibc
cannam@126 12959 # with a fresh cross-compiler works.
cannam@126 12960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@126 12961 # <limits.h> exists even on freestanding compilers.
cannam@126 12962 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@126 12963 # not just through cpp. "Syntax error" is here to catch this case.
cannam@126 12964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 12965 /* end confdefs.h. */
cannam@126 12966 #ifdef __STDC__
cannam@126 12967 # include <limits.h>
cannam@126 12968 #else
cannam@126 12969 # include <assert.h>
cannam@126 12970 #endif
cannam@126 12971 Syntax error
cannam@126 12972 _ACEOF
cannam@126 12973 if ac_fn_cxx_try_cpp "$LINENO"; then :
cannam@126 12974
cannam@126 12975 else
cannam@126 12976 # Broken: fails on valid input.
cannam@126 12977 continue
cannam@126 12978 fi
cannam@126 12979 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@126 12980
cannam@126 12981 # OK, works on sane cases. Now check whether nonexistent headers
cannam@126 12982 # can be detected and how.
cannam@126 12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 12984 /* end confdefs.h. */
cannam@126 12985 #include <ac_nonexistent.h>
cannam@126 12986 _ACEOF
cannam@126 12987 if ac_fn_cxx_try_cpp "$LINENO"; then :
cannam@126 12988 # Broken: success on invalid input.
cannam@126 12989 continue
cannam@126 12990 else
cannam@126 12991 # Passes both tests.
cannam@126 12992 ac_preproc_ok=:
cannam@126 12993 break
cannam@126 12994 fi
cannam@126 12995 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@126 12996
cannam@126 12997 done
cannam@126 12998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@126 12999 rm -f conftest.i conftest.err conftest.$ac_ext
cannam@126 13000 if $ac_preproc_ok; then :
cannam@126 13001
cannam@126 13002 else
cannam@126 13003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@126 13004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@126 13005 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
cannam@126 13006 See \`config.log' for more details" "$LINENO" 5; }
cannam@126 13007 fi
cannam@126 13008
cannam@126 13009 ac_ext=c
cannam@126 13010 ac_cpp='$CPP $CPPFLAGS'
cannam@126 13011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@126 13012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@126 13013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@126 13014
cannam@126 13015 else
cannam@126 13016 _lt_caught_CXX_error=yes
cannam@126 13017 fi
cannam@126 13018
cannam@126 13019 ac_ext=cpp
cannam@126 13020 ac_cpp='$CXXCPP $CPPFLAGS'
cannam@126 13021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@126 13022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@126 13023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cannam@126 13024
cannam@126 13025 archive_cmds_need_lc_CXX=no
cannam@126 13026 allow_undefined_flag_CXX=
cannam@126 13027 always_export_symbols_CXX=no
cannam@126 13028 archive_expsym_cmds_CXX=
cannam@126 13029 compiler_needs_object_CXX=no
cannam@126 13030 export_dynamic_flag_spec_CXX=
cannam@126 13031 hardcode_direct_CXX=no
cannam@126 13032 hardcode_direct_absolute_CXX=no
cannam@126 13033 hardcode_libdir_flag_spec_CXX=
cannam@126 13034 hardcode_libdir_separator_CXX=
cannam@126 13035 hardcode_minus_L_CXX=no
cannam@126 13036 hardcode_shlibpath_var_CXX=unsupported
cannam@126 13037 hardcode_automatic_CXX=no
cannam@126 13038 inherit_rpath_CXX=no
cannam@126 13039 module_cmds_CXX=
cannam@126 13040 module_expsym_cmds_CXX=
cannam@126 13041 link_all_deplibs_CXX=unknown
cannam@126 13042 old_archive_cmds_CXX=$old_archive_cmds
cannam@126 13043 reload_flag_CXX=$reload_flag
cannam@126 13044 reload_cmds_CXX=$reload_cmds
cannam@126 13045 no_undefined_flag_CXX=
cannam@126 13046 whole_archive_flag_spec_CXX=
cannam@126 13047 enable_shared_with_static_runtimes_CXX=no
cannam@126 13048
cannam@126 13049 # Source file extension for C++ test sources.
cannam@126 13050 ac_ext=cpp
cannam@126 13051
cannam@126 13052 # Object file extension for compiled C++ test sources.
cannam@126 13053 objext=o
cannam@126 13054 objext_CXX=$objext
cannam@126 13055
cannam@126 13056 # No sense in running all these tests if we already determined that
cannam@126 13057 # the CXX compiler isn't working. Some variables (like enable_shared)
cannam@126 13058 # are currently assumed to apply to all compilers on this platform,
cannam@126 13059 # and will be corrupted by setting them based on a non-working compiler.
cannam@126 13060 if test yes != "$_lt_caught_CXX_error"; then
cannam@126 13061 # Code to be used in simple compile tests
cannam@126 13062 lt_simple_compile_test_code="int some_variable = 0;"
cannam@126 13063
cannam@126 13064 # Code to be used in simple link tests
cannam@126 13065 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
cannam@126 13066
cannam@126 13067 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
cannam@126 13068
cannam@126 13069
cannam@126 13070
cannam@126 13071
cannam@126 13072
cannam@126 13073
cannam@126 13074 # If no C compiler was specified, use CC.
cannam@126 13075 LTCC=${LTCC-"$CC"}
cannam@126 13076
cannam@126 13077 # If no C compiler flags were specified, use CFLAGS.
cannam@126 13078 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cannam@126 13079
cannam@126 13080 # Allow CC to be a program name with arguments.
cannam@126 13081 compiler=$CC
cannam@126 13082
cannam@126 13083
cannam@126 13084 # save warnings/boilerplate of simple test code
cannam@126 13085 ac_outfile=conftest.$ac_objext
cannam@126 13086 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
cannam@126 13087 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@126 13088 _lt_compiler_boilerplate=`cat conftest.err`
cannam@126 13089 $RM conftest*
cannam@126 13090
cannam@126 13091 ac_outfile=conftest.$ac_objext
cannam@126 13092 echo "$lt_simple_link_test_code" >conftest.$ac_ext
cannam@126 13093 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@126 13094 _lt_linker_boilerplate=`cat conftest.err`
cannam@126 13095 $RM -r conftest*
cannam@126 13096
cannam@126 13097
cannam@126 13098 # Allow CC to be a program name with arguments.
cannam@126 13099 lt_save_CC=$CC
cannam@126 13100 lt_save_CFLAGS=$CFLAGS
cannam@126 13101 lt_save_LD=$LD
cannam@126 13102 lt_save_GCC=$GCC
cannam@126 13103 GCC=$GXX
cannam@126 13104 lt_save_with_gnu_ld=$with_gnu_ld
cannam@126 13105 lt_save_path_LD=$lt_cv_path_LD
cannam@126 13106 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
cannam@126 13107 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
cannam@126 13108 else
cannam@126 13109 $as_unset lt_cv_prog_gnu_ld
cannam@126 13110 fi
cannam@126 13111 if test -n "${lt_cv_path_LDCXX+set}"; then
cannam@126 13112 lt_cv_path_LD=$lt_cv_path_LDCXX
cannam@126 13113 else
cannam@126 13114 $as_unset lt_cv_path_LD
cannam@126 13115 fi
cannam@126 13116 test -z "${LDCXX+set}" || LD=$LDCXX
cannam@126 13117 CC=${CXX-"c++"}
cannam@126 13118 CFLAGS=$CXXFLAGS
cannam@126 13119 compiler=$CC
cannam@126 13120 compiler_CXX=$CC
cannam@126 13121 func_cc_basename $compiler
cannam@126 13122 cc_basename=$func_cc_basename_result
cannam@126 13123
cannam@126 13124
cannam@126 13125 if test -n "$compiler"; then
cannam@126 13126 # We don't want -fno-exception when compiling C++ code, so set the
cannam@126 13127 # no_builtin_flag separately
cannam@126 13128 if test yes = "$GXX"; then
cannam@126 13129 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
cannam@126 13130 else
cannam@126 13131 lt_prog_compiler_no_builtin_flag_CXX=
cannam@126 13132 fi
cannam@126 13133
cannam@126 13134 if test yes = "$GXX"; then
cannam@126 13135 # Set up default GNU C++ configuration
cannam@126 13136
cannam@126 13137
cannam@126 13138
cannam@126 13139 # Check whether --with-gnu-ld was given.
cannam@126 13140 if test "${with_gnu_ld+set}" = set; then :
cannam@126 13141 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
cannam@126 13142 else
cannam@126 13143 with_gnu_ld=no
cannam@126 13144 fi
cannam@126 13145
cannam@126 13146 ac_prog=ld
cannam@126 13147 if test yes = "$GCC"; then
cannam@126 13148 # Check if gcc -print-prog-name=ld gives a path.
cannam@126 13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cannam@126 13150 $as_echo_n "checking for ld used by $CC... " >&6; }
cannam@126 13151 case $host in
cannam@126 13152 *-*-mingw*)
cannam@126 13153 # gcc leaves a trailing carriage return, which upsets mingw
cannam@126 13154 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
cannam@126 13155 *)
cannam@126 13156 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
cannam@126 13157 esac
cannam@126 13158 case $ac_prog in
cannam@126 13159 # Accept absolute paths.
cannam@126 13160 [\\/]* | ?:[\\/]*)
cannam@126 13161 re_direlt='/[^/][^/]*/\.\./'
cannam@126 13162 # Canonicalize the pathname of ld
cannam@126 13163 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
cannam@126 13164 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
cannam@126 13165 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cannam@126 13166 done
cannam@126 13167 test -z "$LD" && LD=$ac_prog
cannam@126 13168 ;;
cannam@126 13169 "")
cannam@126 13170 # If it fails, then pretend we aren't using GCC.
cannam@126 13171 ac_prog=ld
cannam@126 13172 ;;
cannam@126 13173 *)
cannam@126 13174 # If it is relative, then search for the first ld in PATH.
cannam@126 13175 with_gnu_ld=unknown
cannam@126 13176 ;;
cannam@126 13177 esac
cannam@126 13178 elif test yes = "$with_gnu_ld"; then
cannam@126 13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cannam@126 13180 $as_echo_n "checking for GNU ld... " >&6; }
cannam@126 13181 else
cannam@126 13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cannam@126 13183 $as_echo_n "checking for non-GNU ld... " >&6; }
cannam@126 13184 fi
cannam@126 13185 if ${lt_cv_path_LD+:} false; then :
cannam@126 13186 $as_echo_n "(cached) " >&6
cannam@126 13187 else
cannam@126 13188 if test -z "$LD"; then
cannam@126 13189 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
cannam@126 13190 for ac_dir in $PATH; do
cannam@126 13191 IFS=$lt_save_ifs
cannam@126 13192 test -z "$ac_dir" && ac_dir=.
cannam@126 13193 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
cannam@126 13194 lt_cv_path_LD=$ac_dir/$ac_prog
cannam@126 13195 # Check to see if the program is GNU ld. I'd rather use --version,
cannam@126 13196 # but apparently some variants of GNU ld only accept -v.
cannam@126 13197 # Break only if it was the GNU/non-GNU ld that we prefer.
cannam@126 13198 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
cannam@126 13199 *GNU* | *'with BFD'*)
cannam@126 13200 test no != "$with_gnu_ld" && break
cannam@126 13201 ;;
cannam@126 13202 *)
cannam@126 13203 test yes != "$with_gnu_ld" && break
cannam@126 13204 ;;
cannam@126 13205 esac
cannam@126 13206 fi
cannam@126 13207 done
cannam@126 13208 IFS=$lt_save_ifs
cannam@126 13209 else
cannam@126 13210 lt_cv_path_LD=$LD # Let the user override the test with a path.
cannam@126 13211 fi
cannam@126 13212 fi
cannam@126 13213
cannam@126 13214 LD=$lt_cv_path_LD
cannam@126 13215 if test -n "$LD"; then
cannam@126 13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cannam@126 13217 $as_echo "$LD" >&6; }
cannam@126 13218 else
cannam@126 13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 13220 $as_echo "no" >&6; }
cannam@126 13221 fi
cannam@126 13222 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cannam@126 13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cannam@126 13224 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cannam@126 13225 if ${lt_cv_prog_gnu_ld+:} false; then :
cannam@126 13226 $as_echo_n "(cached) " >&6
cannam@126 13227 else
cannam@126 13228 # I'd rather use --version here, but apparently some GNU lds only accept -v.
cannam@126 13229 case `$LD -v 2>&1 </dev/null` in
cannam@126 13230 *GNU* | *'with BFD'*)
cannam@126 13231 lt_cv_prog_gnu_ld=yes
cannam@126 13232 ;;
cannam@126 13233 *)
cannam@126 13234 lt_cv_prog_gnu_ld=no
cannam@126 13235 ;;
cannam@126 13236 esac
cannam@126 13237 fi
cannam@126 13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cannam@126 13239 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
cannam@126 13240 with_gnu_ld=$lt_cv_prog_gnu_ld
cannam@126 13241
cannam@126 13242
cannam@126 13243
cannam@126 13244
cannam@126 13245
cannam@126 13246
cannam@126 13247
cannam@126 13248 # Check if GNU C++ uses GNU ld as the underlying linker, since the
cannam@126 13249 # archiving commands below assume that GNU ld is being used.
cannam@126 13250 if test yes = "$with_gnu_ld"; then
cannam@126 13251 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
cannam@126 13252 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@126 13253
cannam@126 13254 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
cannam@126 13255 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
cannam@126 13256
cannam@126 13257 # If archive_cmds runs LD, not CC, wlarc should be empty
cannam@126 13258 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
cannam@126 13259 # investigate it a little bit more. (MM)
cannam@126 13260 wlarc='$wl'
cannam@126 13261
cannam@126 13262 # ancient GNU ld didn't support --whole-archive et. al.
cannam@126 13263 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
cannam@126 13264 $GREP 'no-whole-archive' > /dev/null; then
cannam@126 13265 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
cannam@126 13266 else
cannam@126 13267 whole_archive_flag_spec_CXX=
cannam@126 13268 fi
cannam@126 13269 else
cannam@126 13270 with_gnu_ld=no
cannam@126 13271 wlarc=
cannam@126 13272
cannam@126 13273 # A generic and very simple default shared library creation
cannam@126 13274 # command for GNU C++ for the case where it uses the native
cannam@126 13275 # linker, instead of GNU ld. If possible, this setting should
cannam@126 13276 # overridden to take advantage of the native linker features on
cannam@126 13277 # the platform it is being used on.
cannam@126 13278 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
cannam@126 13279 fi
cannam@126 13280
cannam@126 13281 # Commands to make compiler produce verbose output that lists
cannam@126 13282 # what "hidden" libraries, object files and flags are used when
cannam@126 13283 # linking a shared library.
cannam@126 13284 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cannam@126 13285
cannam@126 13286 else
cannam@126 13287 GXX=no
cannam@126 13288 with_gnu_ld=no
cannam@126 13289 wlarc=
cannam@126 13290 fi
cannam@126 13291
cannam@126 13292 # PORTME: fill in a description of your system's C++ link characteristics
cannam@126 13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@126 13294 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
cannam@126 13295 ld_shlibs_CXX=yes
cannam@126 13296 case $host_os in
cannam@126 13297 aix3*)
cannam@126 13298 # FIXME: insert proper C++ library support
cannam@126 13299 ld_shlibs_CXX=no
cannam@126 13300 ;;
cannam@126 13301 aix[4-9]*)
cannam@126 13302 if test ia64 = "$host_cpu"; then
cannam@126 13303 # On IA64, the linker does run time linking by default, so we don't
cannam@126 13304 # have to do anything special.
cannam@126 13305 aix_use_runtimelinking=no
cannam@126 13306 exp_sym_flag='-Bexport'
cannam@126 13307 no_entry_flag=
cannam@126 13308 else
cannam@126 13309 aix_use_runtimelinking=no
cannam@126 13310
cannam@126 13311 # Test if we are trying to use run time linking or normal
cannam@126 13312 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cannam@126 13313 # have runtime linking enabled, and use it for executables.
cannam@126 13314 # For shared libraries, we enable/disable runtime linking
cannam@126 13315 # depending on the kind of the shared library created -
cannam@126 13316 # when "with_aix_soname,aix_use_runtimelinking" is:
cannam@126 13317 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
cannam@126 13318 # "aix,yes" lib.so shared, rtl:yes, for executables
cannam@126 13319 # lib.a static archive
cannam@126 13320 # "both,no" lib.so.V(shr.o) shared, rtl:yes
cannam@126 13321 # lib.a(lib.so.V) shared, rtl:no, for executables
cannam@126 13322 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
cannam@126 13323 # lib.a(lib.so.V) shared, rtl:no
cannam@126 13324 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
cannam@126 13325 # lib.a static archive
cannam@126 13326 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
cannam@126 13327 for ld_flag in $LDFLAGS; do
cannam@126 13328 case $ld_flag in
cannam@126 13329 *-brtl*)
cannam@126 13330 aix_use_runtimelinking=yes
cannam@126 13331 break
cannam@126 13332 ;;
cannam@126 13333 esac
cannam@126 13334 done
cannam@126 13335 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
cannam@126 13336 # With aix-soname=svr4, we create the lib.so.V shared archives only,
cannam@126 13337 # so we don't have lib.a shared libs to link our executables.
cannam@126 13338 # We have to force runtime linking in this case.
cannam@126 13339 aix_use_runtimelinking=yes
cannam@126 13340 LDFLAGS="$LDFLAGS -Wl,-brtl"
cannam@126 13341 fi
cannam@126 13342 ;;
cannam@126 13343 esac
cannam@126 13344
cannam@126 13345 exp_sym_flag='-bexport'
cannam@126 13346 no_entry_flag='-bnoentry'
cannam@126 13347 fi
cannam@126 13348
cannam@126 13349 # When large executables or shared objects are built, AIX ld can
cannam@126 13350 # have problems creating the table of contents. If linking a library
cannam@126 13351 # or program results in "error TOC overflow" add -mminimal-toc to
cannam@126 13352 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
cannam@126 13353 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
cannam@126 13354
cannam@126 13355 archive_cmds_CXX=''
cannam@126 13356 hardcode_direct_CXX=yes
cannam@126 13357 hardcode_direct_absolute_CXX=yes
cannam@126 13358 hardcode_libdir_separator_CXX=':'
cannam@126 13359 link_all_deplibs_CXX=yes
cannam@126 13360 file_list_spec_CXX='$wl-f,'
cannam@126 13361 case $with_aix_soname,$aix_use_runtimelinking in
cannam@126 13362 aix,*) ;; # no import file
cannam@126 13363 svr4,* | *,yes) # use import file
cannam@126 13364 # The Import File defines what to hardcode.
cannam@126 13365 hardcode_direct_CXX=no
cannam@126 13366 hardcode_direct_absolute_CXX=no
cannam@126 13367 ;;
cannam@126 13368 esac
cannam@126 13369
cannam@126 13370 if test yes = "$GXX"; then
cannam@126 13371 case $host_os in aix4.[012]|aix4.[012].*)
cannam@126 13372 # We only want to do this on AIX 4.2 and lower, the check
cannam@126 13373 # below for broken collect2 doesn't work under 4.3+
cannam@126 13374 collect2name=`$CC -print-prog-name=collect2`
cannam@126 13375 if test -f "$collect2name" &&
cannam@126 13376 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
cannam@126 13377 then
cannam@126 13378 # We have reworked collect2
cannam@126 13379 :
cannam@126 13380 else
cannam@126 13381 # We have old collect2
cannam@126 13382 hardcode_direct_CXX=unsupported
cannam@126 13383 # It fails to find uninstalled libraries when the uninstalled
cannam@126 13384 # path is not listed in the libpath. Setting hardcode_minus_L
cannam@126 13385 # to unsupported forces relinking
cannam@126 13386 hardcode_minus_L_CXX=yes
cannam@126 13387 hardcode_libdir_flag_spec_CXX='-L$libdir'
cannam@126 13388 hardcode_libdir_separator_CXX=
cannam@126 13389 fi
cannam@126 13390 esac
cannam@126 13391 shared_flag='-shared'
cannam@126 13392 if test yes = "$aix_use_runtimelinking"; then
cannam@126 13393 shared_flag=$shared_flag' $wl-G'
cannam@126 13394 fi
cannam@126 13395 # Need to ensure runtime linking is disabled for the traditional
cannam@126 13396 # shared library, or the linker may eventually find shared libraries
cannam@126 13397 # /with/ Import File - we do not want to mix them.
cannam@126 13398 shared_flag_aix='-shared'
cannam@126 13399 shared_flag_svr4='-shared $wl-G'
cannam@126 13400 else
cannam@126 13401 # not using gcc
cannam@126 13402 if test ia64 = "$host_cpu"; then
cannam@126 13403 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
cannam@126 13404 # chokes on -Wl,-G. The following line is correct:
cannam@126 13405 shared_flag='-G'
cannam@126 13406 else
cannam@126 13407 if test yes = "$aix_use_runtimelinking"; then
cannam@126 13408 shared_flag='$wl-G'
cannam@126 13409 else
cannam@126 13410 shared_flag='$wl-bM:SRE'
cannam@126 13411 fi
cannam@126 13412 shared_flag_aix='$wl-bM:SRE'
cannam@126 13413 shared_flag_svr4='$wl-G'
cannam@126 13414 fi
cannam@126 13415 fi
cannam@126 13416
cannam@126 13417 export_dynamic_flag_spec_CXX='$wl-bexpall'
cannam@126 13418 # It seems that -bexpall does not export symbols beginning with
cannam@126 13419 # underscore (_), so it is better to generate a list of symbols to
cannam@126 13420 # export.
cannam@126 13421 always_export_symbols_CXX=yes
cannam@126 13422 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
cannam@126 13423 # Warning - without using the other runtime loading flags (-brtl),
cannam@126 13424 # -berok will link without error, but may produce a broken library.
cannam@126 13425 # The "-G" linker flag allows undefined symbols.
cannam@126 13426 no_undefined_flag_CXX='-bernotok'
cannam@126 13427 # Determine the default libpath from the value encoded in an empty
cannam@126 13428 # executable.
cannam@126 13429 if test set = "${lt_cv_aix_libpath+set}"; then
cannam@126 13430 aix_libpath=$lt_cv_aix_libpath
cannam@126 13431 else
cannam@126 13432 if ${lt_cv_aix_libpath__CXX+:} false; then :
cannam@126 13433 $as_echo_n "(cached) " >&6
cannam@126 13434 else
cannam@126 13435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 13436 /* end confdefs.h. */
cannam@126 13437
cannam@126 13438 int
cannam@126 13439 main ()
cannam@126 13440 {
cannam@126 13441
cannam@126 13442 ;
cannam@126 13443 return 0;
cannam@126 13444 }
cannam@126 13445 _ACEOF
cannam@126 13446 if ac_fn_cxx_try_link "$LINENO"; then :
cannam@126 13447
cannam@126 13448 lt_aix_libpath_sed='
cannam@126 13449 /Import File Strings/,/^$/ {
cannam@126 13450 /^0/ {
cannam@126 13451 s/^0 *\([^ ]*\) *$/\1/
cannam@126 13452 p
cannam@126 13453 }
cannam@126 13454 }'
cannam@126 13455 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@126 13456 # Check for a 64-bit object if we didn't find anything.
cannam@126 13457 if test -z "$lt_cv_aix_libpath__CXX"; then
cannam@126 13458 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@126 13459 fi
cannam@126 13460 fi
cannam@126 13461 rm -f core conftest.err conftest.$ac_objext \
cannam@126 13462 conftest$ac_exeext conftest.$ac_ext
cannam@126 13463 if test -z "$lt_cv_aix_libpath__CXX"; then
cannam@126 13464 lt_cv_aix_libpath__CXX=/usr/lib:/lib
cannam@126 13465 fi
cannam@126 13466
cannam@126 13467 fi
cannam@126 13468
cannam@126 13469 aix_libpath=$lt_cv_aix_libpath__CXX
cannam@126 13470 fi
cannam@126 13471
cannam@126 13472 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
cannam@126 13473
cannam@126 13474 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
cannam@126 13475 else
cannam@126 13476 if test ia64 = "$host_cpu"; then
cannam@126 13477 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
cannam@126 13478 allow_undefined_flag_CXX="-z nodefs"
cannam@126 13479 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@126 13480 else
cannam@126 13481 # Determine the default libpath from the value encoded in an
cannam@126 13482 # empty executable.
cannam@126 13483 if test set = "${lt_cv_aix_libpath+set}"; then
cannam@126 13484 aix_libpath=$lt_cv_aix_libpath
cannam@126 13485 else
cannam@126 13486 if ${lt_cv_aix_libpath__CXX+:} false; then :
cannam@126 13487 $as_echo_n "(cached) " >&6
cannam@126 13488 else
cannam@126 13489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 13490 /* end confdefs.h. */
cannam@126 13491
cannam@126 13492 int
cannam@126 13493 main ()
cannam@126 13494 {
cannam@126 13495
cannam@126 13496 ;
cannam@126 13497 return 0;
cannam@126 13498 }
cannam@126 13499 _ACEOF
cannam@126 13500 if ac_fn_cxx_try_link "$LINENO"; then :
cannam@126 13501
cannam@126 13502 lt_aix_libpath_sed='
cannam@126 13503 /Import File Strings/,/^$/ {
cannam@126 13504 /^0/ {
cannam@126 13505 s/^0 *\([^ ]*\) *$/\1/
cannam@126 13506 p
cannam@126 13507 }
cannam@126 13508 }'
cannam@126 13509 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@126 13510 # Check for a 64-bit object if we didn't find anything.
cannam@126 13511 if test -z "$lt_cv_aix_libpath__CXX"; then
cannam@126 13512 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@126 13513 fi
cannam@126 13514 fi
cannam@126 13515 rm -f core conftest.err conftest.$ac_objext \
cannam@126 13516 conftest$ac_exeext conftest.$ac_ext
cannam@126 13517 if test -z "$lt_cv_aix_libpath__CXX"; then
cannam@126 13518 lt_cv_aix_libpath__CXX=/usr/lib:/lib
cannam@126 13519 fi
cannam@126 13520
cannam@126 13521 fi
cannam@126 13522
cannam@126 13523 aix_libpath=$lt_cv_aix_libpath__CXX
cannam@126 13524 fi
cannam@126 13525
cannam@126 13526 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
cannam@126 13527 # Warning - without using the other run time loading flags,
cannam@126 13528 # -berok will link without error, but may produce a broken library.
cannam@126 13529 no_undefined_flag_CXX=' $wl-bernotok'
cannam@126 13530 allow_undefined_flag_CXX=' $wl-berok'
cannam@126 13531 if test yes = "$with_gnu_ld"; then
cannam@126 13532 # We only use this code for GNU lds that support --whole-archive.
cannam@126 13533 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
cannam@126 13534 else
cannam@126 13535 # Exported symbols can be pulled into shared objects from archives
cannam@126 13536 whole_archive_flag_spec_CXX='$convenience'
cannam@126 13537 fi
cannam@126 13538 archive_cmds_need_lc_CXX=yes
cannam@126 13539 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
cannam@126 13540 # -brtl affects multiple linker settings, -berok does not and is overridden later
cannam@126 13541 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
cannam@126 13542 if test svr4 != "$with_aix_soname"; then
cannam@126 13543 # This is similar to how AIX traditionally builds its shared
cannam@126 13544 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
cannam@126 13545 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
cannam@126 13546 fi
cannam@126 13547 if test aix != "$with_aix_soname"; then
cannam@126 13548 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
cannam@126 13549 else
cannam@126 13550 # used by -dlpreopen to get the symbols
cannam@126 13551 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
cannam@126 13552 fi
cannam@126 13553 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
cannam@126 13554 fi
cannam@126 13555 fi
cannam@126 13556 ;;
cannam@126 13557
cannam@126 13558 beos*)
cannam@126 13559 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@126 13560 allow_undefined_flag_CXX=unsupported
cannam@126 13561 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
cannam@126 13562 # support --undefined. This deserves some investigation. FIXME
cannam@126 13563 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cannam@126 13564 else
cannam@126 13565 ld_shlibs_CXX=no
cannam@126 13566 fi
cannam@126 13567 ;;
cannam@126 13568
cannam@126 13569 chorus*)
cannam@126 13570 case $cc_basename in
cannam@126 13571 *)
cannam@126 13572 # FIXME: insert proper C++ library support
cannam@126 13573 ld_shlibs_CXX=no
cannam@126 13574 ;;
cannam@126 13575 esac
cannam@126 13576 ;;
cannam@126 13577
cannam@126 13578 cygwin* | mingw* | pw32* | cegcc*)
cannam@126 13579 case $GXX,$cc_basename in
cannam@126 13580 ,cl* | no,cl*)
cannam@126 13581 # Native MSVC
cannam@126 13582 # hardcode_libdir_flag_spec is actually meaningless, as there is
cannam@126 13583 # no search path for DLLs.
cannam@126 13584 hardcode_libdir_flag_spec_CXX=' '
cannam@126 13585 allow_undefined_flag_CXX=unsupported
cannam@126 13586 always_export_symbols_CXX=yes
cannam@126 13587 file_list_spec_CXX='@'
cannam@126 13588 # Tell ltmain to make .lib files, not .a files.
cannam@126 13589 libext=lib
cannam@126 13590 # Tell ltmain to make .dll files, not .so files.
cannam@126 13591 shrext_cmds=.dll
cannam@126 13592 # FIXME: Setting linknames here is a bad hack.
cannam@126 13593 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
cannam@126 13594 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
cannam@126 13595 cp "$export_symbols" "$output_objdir/$soname.def";
cannam@126 13596 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
cannam@126 13597 else
cannam@126 13598 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
cannam@126 13599 fi~
cannam@126 13600 $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@126 13601 linknames='
cannam@126 13602 # The linker will not automatically build a static lib if we build a DLL.
cannam@126 13603 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
cannam@126 13604 enable_shared_with_static_runtimes_CXX=yes
cannam@126 13605 # Don't use ranlib
cannam@126 13606 old_postinstall_cmds_CXX='chmod 644 $oldlib'
cannam@126 13607 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
cannam@126 13608 lt_tool_outputfile="@TOOL_OUTPUT@"~
cannam@126 13609 case $lt_outputfile in
cannam@126 13610 *.exe|*.EXE) ;;
cannam@126 13611 *)
cannam@126 13612 lt_outputfile=$lt_outputfile.exe
cannam@126 13613 lt_tool_outputfile=$lt_tool_outputfile.exe
cannam@126 13614 ;;
cannam@126 13615 esac~
cannam@126 13616 func_to_tool_file "$lt_outputfile"~
cannam@126 13617 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
cannam@126 13618 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
cannam@126 13619 $RM "$lt_outputfile.manifest";
cannam@126 13620 fi'
cannam@126 13621 ;;
cannam@126 13622 *)
cannam@126 13623 # g++
cannam@126 13624 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
cannam@126 13625 # as there is no search path for DLLs.
cannam@126 13626 hardcode_libdir_flag_spec_CXX='-L$libdir'
cannam@126 13627 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
cannam@126 13628 allow_undefined_flag_CXX=unsupported
cannam@126 13629 always_export_symbols_CXX=no
cannam@126 13630 enable_shared_with_static_runtimes_CXX=yes
cannam@126 13631
cannam@126 13632 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
cannam@126 13633 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@126 13634 # If the export-symbols file already is a .def file, use it as
cannam@126 13635 # is; otherwise, prepend EXPORTS...
cannam@126 13636 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
cannam@126 13637 cp $export_symbols $output_objdir/$soname.def;
cannam@126 13638 else
cannam@126 13639 echo EXPORTS > $output_objdir/$soname.def;
cannam@126 13640 cat $export_symbols >> $output_objdir/$soname.def;
cannam@126 13641 fi~
cannam@126 13642 $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@126 13643 else
cannam@126 13644 ld_shlibs_CXX=no
cannam@126 13645 fi
cannam@126 13646 ;;
cannam@126 13647 esac
cannam@126 13648 ;;
cannam@126 13649 darwin* | rhapsody*)
cannam@126 13650
cannam@126 13651
cannam@126 13652 archive_cmds_need_lc_CXX=no
cannam@126 13653 hardcode_direct_CXX=no
cannam@126 13654 hardcode_automatic_CXX=yes
cannam@126 13655 hardcode_shlibpath_var_CXX=unsupported
cannam@126 13656 if test yes = "$lt_cv_ld_force_load"; then
cannam@126 13657 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@126 13658
cannam@126 13659 else
cannam@126 13660 whole_archive_flag_spec_CXX=''
cannam@126 13661 fi
cannam@126 13662 link_all_deplibs_CXX=yes
cannam@126 13663 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
cannam@126 13664 case $cc_basename in
cannam@126 13665 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
cannam@126 13666 *) _lt_dar_can_shared=$GCC ;;
cannam@126 13667 esac
cannam@126 13668 if test yes = "$_lt_dar_can_shared"; then
cannam@126 13669 output_verbose_link_cmd=func_echo_all
cannam@126 13670 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@126 13671 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
cannam@126 13672 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@126 13673 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@126 13674 if test yes != "$lt_cv_apple_cc_single_mod"; then
cannam@126 13675 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@126 13676 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@126 13677 fi
cannam@126 13678
cannam@126 13679 else
cannam@126 13680 ld_shlibs_CXX=no
cannam@126 13681 fi
cannam@126 13682
cannam@126 13683 ;;
cannam@126 13684
cannam@126 13685 os2*)
cannam@126 13686 hardcode_libdir_flag_spec_CXX='-L$libdir'
cannam@126 13687 hardcode_minus_L_CXX=yes
cannam@126 13688 allow_undefined_flag_CXX=unsupported
cannam@126 13689 shrext_cmds=.dll
cannam@126 13690 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
cannam@126 13691 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
cannam@126 13692 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
cannam@126 13693 $ECHO EXPORTS >> $output_objdir/$libname.def~
cannam@126 13694 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
cannam@126 13695 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
cannam@126 13696 emximp -o $lib $output_objdir/$libname.def'
cannam@126 13697 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
cannam@126 13698 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
cannam@126 13699 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
cannam@126 13700 $ECHO EXPORTS >> $output_objdir/$libname.def~
cannam@126 13701 prefix_cmds="$SED"~
cannam@126 13702 if test EXPORTS = "`$SED 1q $export_symbols`"; then
cannam@126 13703 prefix_cmds="$prefix_cmds -e 1d";
cannam@126 13704 fi~
cannam@126 13705 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
cannam@126 13706 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
cannam@126 13707 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
cannam@126 13708 emximp -o $lib $output_objdir/$libname.def'
cannam@126 13709 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
cannam@126 13710 enable_shared_with_static_runtimes_CXX=yes
cannam@126 13711 ;;
cannam@126 13712
cannam@126 13713 dgux*)
cannam@126 13714 case $cc_basename in
cannam@126 13715 ec++*)
cannam@126 13716 # FIXME: insert proper C++ library support
cannam@126 13717 ld_shlibs_CXX=no
cannam@126 13718 ;;
cannam@126 13719 ghcx*)
cannam@126 13720 # Green Hills C++ Compiler
cannam@126 13721 # FIXME: insert proper C++ library support
cannam@126 13722 ld_shlibs_CXX=no
cannam@126 13723 ;;
cannam@126 13724 *)
cannam@126 13725 # FIXME: insert proper C++ library support
cannam@126 13726 ld_shlibs_CXX=no
cannam@126 13727 ;;
cannam@126 13728 esac
cannam@126 13729 ;;
cannam@126 13730
cannam@126 13731 freebsd2.*)
cannam@126 13732 # C++ shared libraries reported to be fairly broken before
cannam@126 13733 # switch to ELF
cannam@126 13734 ld_shlibs_CXX=no
cannam@126 13735 ;;
cannam@126 13736
cannam@126 13737 freebsd-elf*)
cannam@126 13738 archive_cmds_need_lc_CXX=no
cannam@126 13739 ;;
cannam@126 13740
cannam@126 13741 freebsd* | dragonfly*)
cannam@126 13742 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
cannam@126 13743 # conventions
cannam@126 13744 ld_shlibs_CXX=yes
cannam@126 13745 ;;
cannam@126 13746
cannam@126 13747 haiku*)
cannam@126 13748 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cannam@126 13749 link_all_deplibs_CXX=yes
cannam@126 13750 ;;
cannam@126 13751
cannam@126 13752 hpux9*)
cannam@126 13753 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
cannam@126 13754 hardcode_libdir_separator_CXX=:
cannam@126 13755 export_dynamic_flag_spec_CXX='$wl-E'
cannam@126 13756 hardcode_direct_CXX=yes
cannam@126 13757 hardcode_minus_L_CXX=yes # Not in the search PATH,
cannam@126 13758 # but as the default
cannam@126 13759 # location of the library.
cannam@126 13760
cannam@126 13761 case $cc_basename in
cannam@126 13762 CC*)
cannam@126 13763 # FIXME: insert proper C++ library support
cannam@126 13764 ld_shlibs_CXX=no
cannam@126 13765 ;;
cannam@126 13766 aCC*)
cannam@126 13767 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
cannam@126 13768 # Commands to make compiler produce verbose output that lists
cannam@126 13769 # what "hidden" libraries, object files and flags are used when
cannam@126 13770 # linking a shared library.
cannam@126 13771 #
cannam@126 13772 # There doesn't appear to be a way to prevent this compiler from
cannam@126 13773 # explicitly linking system object files so we need to strip them
cannam@126 13774 # from the output so that they don't get included in the library
cannam@126 13775 # dependencies.
cannam@126 13776 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@126 13777 ;;
cannam@126 13778 *)
cannam@126 13779 if test yes = "$GXX"; then
cannam@126 13780 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
cannam@126 13781 else
cannam@126 13782 # FIXME: insert proper C++ library support
cannam@126 13783 ld_shlibs_CXX=no
cannam@126 13784 fi
cannam@126 13785 ;;
cannam@126 13786 esac
cannam@126 13787 ;;
cannam@126 13788
cannam@126 13789 hpux10*|hpux11*)
cannam@126 13790 if test no = "$with_gnu_ld"; then
cannam@126 13791 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
cannam@126 13792 hardcode_libdir_separator_CXX=:
cannam@126 13793
cannam@126 13794 case $host_cpu in
cannam@126 13795 hppa*64*|ia64*)
cannam@126 13796 ;;
cannam@126 13797 *)
cannam@126 13798 export_dynamic_flag_spec_CXX='$wl-E'
cannam@126 13799 ;;
cannam@126 13800 esac
cannam@126 13801 fi
cannam@126 13802 case $host_cpu in
cannam@126 13803 hppa*64*|ia64*)
cannam@126 13804 hardcode_direct_CXX=no
cannam@126 13805 hardcode_shlibpath_var_CXX=no
cannam@126 13806 ;;
cannam@126 13807 *)
cannam@126 13808 hardcode_direct_CXX=yes
cannam@126 13809 hardcode_direct_absolute_CXX=yes
cannam@126 13810 hardcode_minus_L_CXX=yes # Not in the search PATH,
cannam@126 13811 # but as the default
cannam@126 13812 # location of the library.
cannam@126 13813 ;;
cannam@126 13814 esac
cannam@126 13815
cannam@126 13816 case $cc_basename in
cannam@126 13817 CC*)
cannam@126 13818 # FIXME: insert proper C++ library support
cannam@126 13819 ld_shlibs_CXX=no
cannam@126 13820 ;;
cannam@126 13821 aCC*)
cannam@126 13822 case $host_cpu in
cannam@126 13823 hppa*64*)
cannam@126 13824 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@126 13825 ;;
cannam@126 13826 ia64*)
cannam@126 13827 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@126 13828 ;;
cannam@126 13829 *)
cannam@126 13830 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@126 13831 ;;
cannam@126 13832 esac
cannam@126 13833 # Commands to make compiler produce verbose output that lists
cannam@126 13834 # what "hidden" libraries, object files and flags are used when
cannam@126 13835 # linking a shared library.
cannam@126 13836 #
cannam@126 13837 # There doesn't appear to be a way to prevent this compiler from
cannam@126 13838 # explicitly linking system object files so we need to strip them
cannam@126 13839 # from the output so that they don't get included in the library
cannam@126 13840 # dependencies.
cannam@126 13841 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@126 13842 ;;
cannam@126 13843 *)
cannam@126 13844 if test yes = "$GXX"; then
cannam@126 13845 if test no = "$with_gnu_ld"; then
cannam@126 13846 case $host_cpu in
cannam@126 13847 hppa*64*)
cannam@126 13848 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@126 13849 ;;
cannam@126 13850 ia64*)
cannam@126 13851 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@126 13852 ;;
cannam@126 13853 *)
cannam@126 13854 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@126 13855 ;;
cannam@126 13856 esac
cannam@126 13857 fi
cannam@126 13858 else
cannam@126 13859 # FIXME: insert proper C++ library support
cannam@126 13860 ld_shlibs_CXX=no
cannam@126 13861 fi
cannam@126 13862 ;;
cannam@126 13863 esac
cannam@126 13864 ;;
cannam@126 13865
cannam@126 13866 interix[3-9]*)
cannam@126 13867 hardcode_direct_CXX=no
cannam@126 13868 hardcode_shlibpath_var_CXX=no
cannam@126 13869 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
cannam@126 13870 export_dynamic_flag_spec_CXX='$wl-E'
cannam@126 13871 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
cannam@126 13872 # Instead, shared libraries are loaded at an image base (0x10000000 by
cannam@126 13873 # default) and relocated if they conflict, which is a slow very memory
cannam@126 13874 # consuming and fragmenting process. To avoid this, we pick a random,
cannam@126 13875 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
cannam@126 13876 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
cannam@126 13877 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@126 13878 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@126 13879 ;;
cannam@126 13880 irix5* | irix6*)
cannam@126 13881 case $cc_basename in
cannam@126 13882 CC*)
cannam@126 13883 # SGI C++
cannam@126 13884 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@126 13885
cannam@126 13886 # Archives containing C++ object files must be created using
cannam@126 13887 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
cannam@126 13888 # necessary to make sure instantiated templates are included
cannam@126 13889 # in the archive.
cannam@126 13890 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
cannam@126 13891 ;;
cannam@126 13892 *)
cannam@126 13893 if test yes = "$GXX"; then
cannam@126 13894 if test no = "$with_gnu_ld"; then
cannam@126 13895 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@126 13896 else
cannam@126 13897 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@126 13898 fi
cannam@126 13899 fi
cannam@126 13900 link_all_deplibs_CXX=yes
cannam@126 13901 ;;
cannam@126 13902 esac
cannam@126 13903 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
cannam@126 13904 hardcode_libdir_separator_CXX=:
cannam@126 13905 inherit_rpath_CXX=yes
cannam@126 13906 ;;
cannam@126 13907
cannam@126 13908 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cannam@126 13909 case $cc_basename in
cannam@126 13910 KCC*)
cannam@126 13911 # Kuck and Associates, Inc. (KAI) C++ Compiler
cannam@126 13912
cannam@126 13913 # KCC will only create a shared library if the output file
cannam@126 13914 # ends with ".so" (or ".sl" for HP-UX), so rename the library
cannam@126 13915 # to its proper name (with version) after linking.
cannam@126 13916 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@126 13917 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@126 13918 # Commands to make compiler produce verbose output that lists
cannam@126 13919 # what "hidden" libraries, object files and flags are used when
cannam@126 13920 # linking a shared library.
cannam@126 13921 #
cannam@126 13922 # There doesn't appear to be a way to prevent this compiler from
cannam@126 13923 # explicitly linking system object files so we need to strip them
cannam@126 13924 # from the output so that they don't get included in the library
cannam@126 13925 # dependencies.
cannam@126 13926 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@126 13927
cannam@126 13928 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
cannam@126 13929 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
cannam@126 13930
cannam@126 13931 # Archives containing C++ object files must be created using
cannam@126 13932 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
cannam@126 13933 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
cannam@126 13934 ;;
cannam@126 13935 icpc* | ecpc* )
cannam@126 13936 # Intel C++
cannam@126 13937 with_gnu_ld=yes
cannam@126 13938 # version 8.0 and above of icpc choke on multiply defined symbols
cannam@126 13939 # if we add $predep_objects and $postdep_objects, however 7.1 and
cannam@126 13940 # earlier do not add the objects themselves.
cannam@126 13941 case `$CC -V 2>&1` in
cannam@126 13942 *"Version 7."*)
cannam@126 13943 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
cannam@126 13944 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@126 13945 ;;
cannam@126 13946 *) # Version 8.0 or newer
cannam@126 13947 tmp_idyn=
cannam@126 13948 case $host_cpu in
cannam@126 13949 ia64*) tmp_idyn=' -i_dynamic';;
cannam@126 13950 esac
cannam@126 13951 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cannam@126 13952 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@126 13953 ;;
cannam@126 13954 esac
cannam@126 13955 archive_cmds_need_lc_CXX=no
cannam@126 13956 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
cannam@126 13957 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
cannam@126 13958 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
cannam@126 13959 ;;
cannam@126 13960 pgCC* | pgcpp*)
cannam@126 13961 # Portland Group C++ compiler
cannam@126 13962 case `$CC -V` in
cannam@126 13963 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cannam@126 13964 prelink_cmds_CXX='tpldir=Template.dir~
cannam@126 13965 rm -rf $tpldir~
cannam@126 13966 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cannam@126 13967 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cannam@126 13968 old_archive_cmds_CXX='tpldir=Template.dir~
cannam@126 13969 rm -rf $tpldir~
cannam@126 13970 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cannam@126 13971 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cannam@126 13972 $RANLIB $oldlib'
cannam@126 13973 archive_cmds_CXX='tpldir=Template.dir~
cannam@126 13974 rm -rf $tpldir~
cannam@126 13975 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cannam@126 13976 $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@126 13977 archive_expsym_cmds_CXX='tpldir=Template.dir~
cannam@126 13978 rm -rf $tpldir~
cannam@126 13979 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cannam@126 13980 $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@126 13981 ;;
cannam@126 13982 *) # Version 6 and above use weak symbols
cannam@126 13983 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
cannam@126 13984 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@126 13985 ;;
cannam@126 13986 esac
cannam@126 13987
cannam@126 13988 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
cannam@126 13989 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
cannam@126 13990 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@126 13991 ;;
cannam@126 13992 cxx*)
cannam@126 13993 # Compaq C++
cannam@126 13994 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
cannam@126 13995 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@126 13996
cannam@126 13997 runpath_var=LD_RUN_PATH
cannam@126 13998 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
cannam@126 13999 hardcode_libdir_separator_CXX=:
cannam@126 14000
cannam@126 14001 # Commands to make compiler produce verbose output that lists
cannam@126 14002 # what "hidden" libraries, object files and flags are used when
cannam@126 14003 # linking a shared library.
cannam@126 14004 #
cannam@126 14005 # There doesn't appear to be a way to prevent this compiler from
cannam@126 14006 # explicitly linking system object files so we need to strip them
cannam@126 14007 # from the output so that they don't get included in the library
cannam@126 14008 # dependencies.
cannam@126 14009 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@126 14010 ;;
cannam@126 14011 xl* | mpixl* | bgxl*)
cannam@126 14012 # IBM XL 8.0 on PPC, with GNU ld
cannam@126 14013 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
cannam@126 14014 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
cannam@126 14015 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cannam@126 14016 if test yes = "$supports_anon_versioning"; then
cannam@126 14017 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
cannam@126 14018 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@126 14019 echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@126 14020 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
cannam@126 14021 fi
cannam@126 14022 ;;
cannam@126 14023 *)
cannam@126 14024 case `$CC -V 2>&1 | sed 5q` in
cannam@126 14025 *Sun\ C*)
cannam@126 14026 # Sun C++ 5.9
cannam@126 14027 no_undefined_flag_CXX=' -zdefs'
cannam@126 14028 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@126 14029 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@126 14030 hardcode_libdir_flag_spec_CXX='-R$libdir'
cannam@126 14031 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@126 14032 compiler_needs_object_CXX=yes
cannam@126 14033
cannam@126 14034 # Not sure whether something based on
cannam@126 14035 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
cannam@126 14036 # would be better.
cannam@126 14037 output_verbose_link_cmd='func_echo_all'
cannam@126 14038
cannam@126 14039 # Archives containing C++ object files must be created using
cannam@126 14040 # "CC -xar", where "CC" is the Sun C++ compiler. This is
cannam@126 14041 # necessary to make sure instantiated templates are included
cannam@126 14042 # in the archive.
cannam@126 14043 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
cannam@126 14044 ;;
cannam@126 14045 esac
cannam@126 14046 ;;
cannam@126 14047 esac
cannam@126 14048 ;;
cannam@126 14049
cannam@126 14050 lynxos*)
cannam@126 14051 # FIXME: insert proper C++ library support
cannam@126 14052 ld_shlibs_CXX=no
cannam@126 14053 ;;
cannam@126 14054
cannam@126 14055 m88k*)
cannam@126 14056 # FIXME: insert proper C++ library support
cannam@126 14057 ld_shlibs_CXX=no
cannam@126 14058 ;;
cannam@126 14059
cannam@126 14060 mvs*)
cannam@126 14061 case $cc_basename in
cannam@126 14062 cxx*)
cannam@126 14063 # FIXME: insert proper C++ library support
cannam@126 14064 ld_shlibs_CXX=no
cannam@126 14065 ;;
cannam@126 14066 *)
cannam@126 14067 # FIXME: insert proper C++ library support
cannam@126 14068 ld_shlibs_CXX=no
cannam@126 14069 ;;
cannam@126 14070 esac
cannam@126 14071 ;;
cannam@126 14072
cannam@126 14073 netbsd*)
cannam@126 14074 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@126 14075 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
cannam@126 14076 wlarc=
cannam@126 14077 hardcode_libdir_flag_spec_CXX='-R$libdir'
cannam@126 14078 hardcode_direct_CXX=yes
cannam@126 14079 hardcode_shlibpath_var_CXX=no
cannam@126 14080 fi
cannam@126 14081 # Workaround some broken pre-1.5 toolchains
cannam@126 14082 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
cannam@126 14083 ;;
cannam@126 14084
cannam@126 14085 *nto* | *qnx*)
cannam@126 14086 ld_shlibs_CXX=yes
cannam@126 14087 ;;
cannam@126 14088
cannam@126 14089 openbsd* | bitrig*)
cannam@126 14090 if test -f /usr/libexec/ld.so; then
cannam@126 14091 hardcode_direct_CXX=yes
cannam@126 14092 hardcode_shlibpath_var_CXX=no
cannam@126 14093 hardcode_direct_absolute_CXX=yes
cannam@126 14094 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
cannam@126 14095 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
cannam@126 14096 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
cannam@126 14097 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@126 14098 export_dynamic_flag_spec_CXX='$wl-E'
cannam@126 14099 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
cannam@126 14100 fi
cannam@126 14101 output_verbose_link_cmd=func_echo_all
cannam@126 14102 else
cannam@126 14103 ld_shlibs_CXX=no
cannam@126 14104 fi
cannam@126 14105 ;;
cannam@126 14106
cannam@126 14107 osf3* | osf4* | osf5*)
cannam@126 14108 case $cc_basename in
cannam@126 14109 KCC*)
cannam@126 14110 # Kuck and Associates, Inc. (KAI) C++ Compiler
cannam@126 14111
cannam@126 14112 # KCC will only create a shared library if the output file
cannam@126 14113 # ends with ".so" (or ".sl" for HP-UX), so rename the library
cannam@126 14114 # to its proper name (with version) after linking.
cannam@126 14115 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@126 14116
cannam@126 14117 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
cannam@126 14118 hardcode_libdir_separator_CXX=:
cannam@126 14119
cannam@126 14120 # Archives containing C++ object files must be created using
cannam@126 14121 # the KAI C++ compiler.
cannam@126 14122 case $host in
cannam@126 14123 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
cannam@126 14124 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
cannam@126 14125 esac
cannam@126 14126 ;;
cannam@126 14127 RCC*)
cannam@126 14128 # Rational C++ 2.4.1
cannam@126 14129 # FIXME: insert proper C++ library support
cannam@126 14130 ld_shlibs_CXX=no
cannam@126 14131 ;;
cannam@126 14132 cxx*)
cannam@126 14133 case $host in
cannam@126 14134 osf3*)
cannam@126 14135 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
cannam@126 14136 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@126 14137 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
cannam@126 14138 ;;
cannam@126 14139 *)
cannam@126 14140 allow_undefined_flag_CXX=' -expect_unresolved \*'
cannam@126 14141 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@126 14142 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
cannam@126 14143 echo "-hidden">> $lib.exp~
cannam@126 14144 $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@126 14145 $RM $lib.exp'
cannam@126 14146 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
cannam@126 14147 ;;
cannam@126 14148 esac
cannam@126 14149
cannam@126 14150 hardcode_libdir_separator_CXX=:
cannam@126 14151
cannam@126 14152 # Commands to make compiler produce verbose output that lists
cannam@126 14153 # what "hidden" libraries, object files and flags are used when
cannam@126 14154 # linking a shared library.
cannam@126 14155 #
cannam@126 14156 # There doesn't appear to be a way to prevent this compiler from
cannam@126 14157 # explicitly linking system object files so we need to strip them
cannam@126 14158 # from the output so that they don't get included in the library
cannam@126 14159 # dependencies.
cannam@126 14160 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@126 14161 ;;
cannam@126 14162 *)
cannam@126 14163 if test yes,no = "$GXX,$with_gnu_ld"; then
cannam@126 14164 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
cannam@126 14165 case $host in
cannam@126 14166 osf3*)
cannam@126 14167 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@126 14168 ;;
cannam@126 14169 *)
cannam@126 14170 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@126 14171 ;;
cannam@126 14172 esac
cannam@126 14173
cannam@126 14174 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
cannam@126 14175 hardcode_libdir_separator_CXX=:
cannam@126 14176
cannam@126 14177 # Commands to make compiler produce verbose output that lists
cannam@126 14178 # what "hidden" libraries, object files and flags are used when
cannam@126 14179 # linking a shared library.
cannam@126 14180 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cannam@126 14181
cannam@126 14182 else
cannam@126 14183 # FIXME: insert proper C++ library support
cannam@126 14184 ld_shlibs_CXX=no
cannam@126 14185 fi
cannam@126 14186 ;;
cannam@126 14187 esac
cannam@126 14188 ;;
cannam@126 14189
cannam@126 14190 psos*)
cannam@126 14191 # FIXME: insert proper C++ library support
cannam@126 14192 ld_shlibs_CXX=no
cannam@126 14193 ;;
cannam@126 14194
cannam@126 14195 sunos4*)
cannam@126 14196 case $cc_basename in
cannam@126 14197 CC*)
cannam@126 14198 # Sun C++ 4.x
cannam@126 14199 # FIXME: insert proper C++ library support
cannam@126 14200 ld_shlibs_CXX=no
cannam@126 14201 ;;
cannam@126 14202 lcc*)
cannam@126 14203 # Lucid
cannam@126 14204 # FIXME: insert proper C++ library support
cannam@126 14205 ld_shlibs_CXX=no
cannam@126 14206 ;;
cannam@126 14207 *)
cannam@126 14208 # FIXME: insert proper C++ library support
cannam@126 14209 ld_shlibs_CXX=no
cannam@126 14210 ;;
cannam@126 14211 esac
cannam@126 14212 ;;
cannam@126 14213
cannam@126 14214 solaris*)
cannam@126 14215 case $cc_basename in
cannam@126 14216 CC* | sunCC*)
cannam@126 14217 # Sun C++ 4.2, 5.x and Centerline C++
cannam@126 14218 archive_cmds_need_lc_CXX=yes
cannam@126 14219 no_undefined_flag_CXX=' -zdefs'
cannam@126 14220 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@126 14221 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@126 14222 $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@126 14223
cannam@126 14224 hardcode_libdir_flag_spec_CXX='-R$libdir'
cannam@126 14225 hardcode_shlibpath_var_CXX=no
cannam@126 14226 case $host_os in
cannam@126 14227 solaris2.[0-5] | solaris2.[0-5].*) ;;
cannam@126 14228 *)
cannam@126 14229 # The compiler driver will combine and reorder linker options,
cannam@126 14230 # but understands '-z linker_flag'.
cannam@126 14231 # Supported since Solaris 2.6 (maybe 2.5.1?)
cannam@126 14232 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
cannam@126 14233 ;;
cannam@126 14234 esac
cannam@126 14235 link_all_deplibs_CXX=yes
cannam@126 14236
cannam@126 14237 output_verbose_link_cmd='func_echo_all'
cannam@126 14238
cannam@126 14239 # Archives containing C++ object files must be created using
cannam@126 14240 # "CC -xar", where "CC" is the Sun C++ compiler. This is
cannam@126 14241 # necessary to make sure instantiated templates are included
cannam@126 14242 # in the archive.
cannam@126 14243 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
cannam@126 14244 ;;
cannam@126 14245 gcx*)
cannam@126 14246 # Green Hills C++ Compiler
cannam@126 14247 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
cannam@126 14248
cannam@126 14249 # The C++ compiler must be used to create the archive.
cannam@126 14250 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
cannam@126 14251 ;;
cannam@126 14252 *)
cannam@126 14253 # GNU C++ compiler with Solaris linker
cannam@126 14254 if test yes,no = "$GXX,$with_gnu_ld"; then
cannam@126 14255 no_undefined_flag_CXX=' $wl-z ${wl}defs'
cannam@126 14256 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cannam@126 14257 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
cannam@126 14258 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@126 14259 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
cannam@126 14260
cannam@126 14261 # Commands to make compiler produce verbose output that lists
cannam@126 14262 # what "hidden" libraries, object files and flags are used when
cannam@126 14263 # linking a shared library.
cannam@126 14264 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cannam@126 14265 else
cannam@126 14266 # g++ 2.7 appears to require '-G' NOT '-shared' on this
cannam@126 14267 # platform.
cannam@126 14268 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
cannam@126 14269 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@126 14270 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
cannam@126 14271
cannam@126 14272 # Commands to make compiler produce verbose output that lists
cannam@126 14273 # what "hidden" libraries, object files and flags are used when
cannam@126 14274 # linking a shared library.
cannam@126 14275 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cannam@126 14276 fi
cannam@126 14277
cannam@126 14278 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
cannam@126 14279 case $host_os in
cannam@126 14280 solaris2.[0-5] | solaris2.[0-5].*) ;;
cannam@126 14281 *)
cannam@126 14282 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
cannam@126 14283 ;;
cannam@126 14284 esac
cannam@126 14285 fi
cannam@126 14286 ;;
cannam@126 14287 esac
cannam@126 14288 ;;
cannam@126 14289
cannam@126 14290 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
cannam@126 14291 no_undefined_flag_CXX='$wl-z,text'
cannam@126 14292 archive_cmds_need_lc_CXX=no
cannam@126 14293 hardcode_shlibpath_var_CXX=no
cannam@126 14294 runpath_var='LD_RUN_PATH'
cannam@126 14295
cannam@126 14296 case $cc_basename in
cannam@126 14297 CC*)
cannam@126 14298 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 14299 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 14300 ;;
cannam@126 14301 *)
cannam@126 14302 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 14303 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 14304 ;;
cannam@126 14305 esac
cannam@126 14306 ;;
cannam@126 14307
cannam@126 14308 sysv5* | sco3.2v5* | sco5v6*)
cannam@126 14309 # Note: We CANNOT use -z defs as we might desire, because we do not
cannam@126 14310 # link with -lc, and that would cause any symbols used from libc to
cannam@126 14311 # always be unresolved, which means just about no library would
cannam@126 14312 # ever link correctly. If we're not using GNU ld we use -z text
cannam@126 14313 # though, which does catch some bad symbols but isn't as heavy-handed
cannam@126 14314 # as -z defs.
cannam@126 14315 no_undefined_flag_CXX='$wl-z,text'
cannam@126 14316 allow_undefined_flag_CXX='$wl-z,nodefs'
cannam@126 14317 archive_cmds_need_lc_CXX=no
cannam@126 14318 hardcode_shlibpath_var_CXX=no
cannam@126 14319 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
cannam@126 14320 hardcode_libdir_separator_CXX=':'
cannam@126 14321 link_all_deplibs_CXX=yes
cannam@126 14322 export_dynamic_flag_spec_CXX='$wl-Bexport'
cannam@126 14323 runpath_var='LD_RUN_PATH'
cannam@126 14324
cannam@126 14325 case $cc_basename in
cannam@126 14326 CC*)
cannam@126 14327 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 14328 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 14329 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
cannam@126 14330 '"$old_archive_cmds_CXX"
cannam@126 14331 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
cannam@126 14332 '"$reload_cmds_CXX"
cannam@126 14333 ;;
cannam@126 14334 *)
cannam@126 14335 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 14336 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@126 14337 ;;
cannam@126 14338 esac
cannam@126 14339 ;;
cannam@126 14340
cannam@126 14341 tandem*)
cannam@126 14342 case $cc_basename in
cannam@126 14343 NCC*)
cannam@126 14344 # NonStop-UX NCC 3.20
cannam@126 14345 # FIXME: insert proper C++ library support
cannam@126 14346 ld_shlibs_CXX=no
cannam@126 14347 ;;
cannam@126 14348 *)
cannam@126 14349 # FIXME: insert proper C++ library support
cannam@126 14350 ld_shlibs_CXX=no
cannam@126 14351 ;;
cannam@126 14352 esac
cannam@126 14353 ;;
cannam@126 14354
cannam@126 14355 vxworks*)
cannam@126 14356 # FIXME: insert proper C++ library support
cannam@126 14357 ld_shlibs_CXX=no
cannam@126 14358 ;;
cannam@126 14359
cannam@126 14360 *)
cannam@126 14361 # FIXME: insert proper C++ library support
cannam@126 14362 ld_shlibs_CXX=no
cannam@126 14363 ;;
cannam@126 14364 esac
cannam@126 14365
cannam@126 14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cannam@126 14367 $as_echo "$ld_shlibs_CXX" >&6; }
cannam@126 14368 test no = "$ld_shlibs_CXX" && can_build_shared=no
cannam@126 14369
cannam@126 14370 GCC_CXX=$GXX
cannam@126 14371 LD_CXX=$LD
cannam@126 14372
cannam@126 14373 ## CAVEAT EMPTOR:
cannam@126 14374 ## There is no encapsulation within the following macros, do not change
cannam@126 14375 ## the running order or otherwise move them around unless you know exactly
cannam@126 14376 ## what you are doing...
cannam@126 14377 # Dependencies to place before and after the object being linked:
cannam@126 14378 predep_objects_CXX=
cannam@126 14379 postdep_objects_CXX=
cannam@126 14380 predeps_CXX=
cannam@126 14381 postdeps_CXX=
cannam@126 14382 compiler_lib_search_path_CXX=
cannam@126 14383
cannam@126 14384 cat > conftest.$ac_ext <<_LT_EOF
cannam@126 14385 class Foo
cannam@126 14386 {
cannam@126 14387 public:
cannam@126 14388 Foo (void) { a = 0; }
cannam@126 14389 private:
cannam@126 14390 int a;
cannam@126 14391 };
cannam@126 14392 _LT_EOF
cannam@126 14393
cannam@126 14394
cannam@126 14395 _lt_libdeps_save_CFLAGS=$CFLAGS
cannam@126 14396 case "$CC $CFLAGS " in #(
cannam@126 14397 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
cannam@126 14398 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cannam@126 14399 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cannam@126 14400 esac
cannam@126 14401
cannam@126 14402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@126 14403 (eval $ac_compile) 2>&5
cannam@126 14404 ac_status=$?
cannam@126 14405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 14406 test $ac_status = 0; }; then
cannam@126 14407 # Parse the compiler output and extract the necessary
cannam@126 14408 # objects, libraries and library flags.
cannam@126 14409
cannam@126 14410 # Sentinel used to keep track of whether or not we are before
cannam@126 14411 # the conftest object file.
cannam@126 14412 pre_test_object_deps_done=no
cannam@126 14413
cannam@126 14414 for p in `eval "$output_verbose_link_cmd"`; do
cannam@126 14415 case $prev$p in
cannam@126 14416
cannam@126 14417 -L* | -R* | -l*)
cannam@126 14418 # Some compilers place space between "-{L,R}" and the path.
cannam@126 14419 # Remove the space.
cannam@126 14420 if test x-L = "$p" ||
cannam@126 14421 test x-R = "$p"; then
cannam@126 14422 prev=$p
cannam@126 14423 continue
cannam@126 14424 fi
cannam@126 14425
cannam@126 14426 # Expand the sysroot to ease extracting the directories later.
cannam@126 14427 if test -z "$prev"; then
cannam@126 14428 case $p in
cannam@126 14429 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
cannam@126 14430 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
cannam@126 14431 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
cannam@126 14432 esac
cannam@126 14433 fi
cannam@126 14434 case $p in
cannam@126 14435 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
cannam@126 14436 esac
cannam@126 14437 if test no = "$pre_test_object_deps_done"; then
cannam@126 14438 case $prev in
cannam@126 14439 -L | -R)
cannam@126 14440 # Internal compiler library paths should come after those
cannam@126 14441 # provided the user. The postdeps already come after the
cannam@126 14442 # user supplied libs so there is no need to process them.
cannam@126 14443 if test -z "$compiler_lib_search_path_CXX"; then
cannam@126 14444 compiler_lib_search_path_CXX=$prev$p
cannam@126 14445 else
cannam@126 14446 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
cannam@126 14447 fi
cannam@126 14448 ;;
cannam@126 14449 # The "-l" case would never come before the object being
cannam@126 14450 # linked, so don't bother handling this case.
cannam@126 14451 esac
cannam@126 14452 else
cannam@126 14453 if test -z "$postdeps_CXX"; then
cannam@126 14454 postdeps_CXX=$prev$p
cannam@126 14455 else
cannam@126 14456 postdeps_CXX="${postdeps_CXX} $prev$p"
cannam@126 14457 fi
cannam@126 14458 fi
cannam@126 14459 prev=
cannam@126 14460 ;;
cannam@126 14461
cannam@126 14462 *.lto.$objext) ;; # Ignore GCC LTO objects
cannam@126 14463 *.$objext)
cannam@126 14464 # This assumes that the test object file only shows up
cannam@126 14465 # once in the compiler output.
cannam@126 14466 if test "$p" = "conftest.$objext"; then
cannam@126 14467 pre_test_object_deps_done=yes
cannam@126 14468 continue
cannam@126 14469 fi
cannam@126 14470
cannam@126 14471 if test no = "$pre_test_object_deps_done"; then
cannam@126 14472 if test -z "$predep_objects_CXX"; then
cannam@126 14473 predep_objects_CXX=$p
cannam@126 14474 else
cannam@126 14475 predep_objects_CXX="$predep_objects_CXX $p"
cannam@126 14476 fi
cannam@126 14477 else
cannam@126 14478 if test -z "$postdep_objects_CXX"; then
cannam@126 14479 postdep_objects_CXX=$p
cannam@126 14480 else
cannam@126 14481 postdep_objects_CXX="$postdep_objects_CXX $p"
cannam@126 14482 fi
cannam@126 14483 fi
cannam@126 14484 ;;
cannam@126 14485
cannam@126 14486 *) ;; # Ignore the rest.
cannam@126 14487
cannam@126 14488 esac
cannam@126 14489 done
cannam@126 14490
cannam@126 14491 # Clean up.
cannam@126 14492 rm -f a.out a.exe
cannam@126 14493 else
cannam@126 14494 echo "libtool.m4: error: problem compiling CXX test program"
cannam@126 14495 fi
cannam@126 14496
cannam@126 14497 $RM -f confest.$objext
cannam@126 14498 CFLAGS=$_lt_libdeps_save_CFLAGS
cannam@126 14499
cannam@126 14500 # PORTME: override above test on systems where it is broken
cannam@126 14501 case $host_os in
cannam@126 14502 interix[3-9]*)
cannam@126 14503 # Interix 3.5 installs completely hosed .la files for C++, so rather than
cannam@126 14504 # hack all around it, let's just trust "g++" to DTRT.
cannam@126 14505 predep_objects_CXX=
cannam@126 14506 postdep_objects_CXX=
cannam@126 14507 postdeps_CXX=
cannam@126 14508 ;;
cannam@126 14509 esac
cannam@126 14510
cannam@126 14511
cannam@126 14512 case " $postdeps_CXX " in
cannam@126 14513 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
cannam@126 14514 esac
cannam@126 14515 compiler_lib_search_dirs_CXX=
cannam@126 14516 if test -n "${compiler_lib_search_path_CXX}"; then
cannam@126 14517 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
cannam@126 14518 fi
cannam@126 14519
cannam@126 14520
cannam@126 14521
cannam@126 14522
cannam@126 14523
cannam@126 14524
cannam@126 14525
cannam@126 14526
cannam@126 14527
cannam@126 14528
cannam@126 14529
cannam@126 14530
cannam@126 14531
cannam@126 14532
cannam@126 14533
cannam@126 14534
cannam@126 14535
cannam@126 14536
cannam@126 14537
cannam@126 14538
cannam@126 14539
cannam@126 14540
cannam@126 14541
cannam@126 14542
cannam@126 14543
cannam@126 14544
cannam@126 14545
cannam@126 14546
cannam@126 14547
cannam@126 14548
cannam@126 14549
cannam@126 14550 lt_prog_compiler_wl_CXX=
cannam@126 14551 lt_prog_compiler_pic_CXX=
cannam@126 14552 lt_prog_compiler_static_CXX=
cannam@126 14553
cannam@126 14554
cannam@126 14555 # C++ specific cases for pic, static, wl, etc.
cannam@126 14556 if test yes = "$GXX"; then
cannam@126 14557 lt_prog_compiler_wl_CXX='-Wl,'
cannam@126 14558 lt_prog_compiler_static_CXX='-static'
cannam@126 14559
cannam@126 14560 case $host_os in
cannam@126 14561 aix*)
cannam@126 14562 # All AIX code is PIC.
cannam@126 14563 if test ia64 = "$host_cpu"; then
cannam@126 14564 # AIX 5 now supports IA64 processor
cannam@126 14565 lt_prog_compiler_static_CXX='-Bstatic'
cannam@126 14566 fi
cannam@126 14567 lt_prog_compiler_pic_CXX='-fPIC'
cannam@126 14568 ;;
cannam@126 14569
cannam@126 14570 amigaos*)
cannam@126 14571 case $host_cpu in
cannam@126 14572 powerpc)
cannam@126 14573 # see comment about AmigaOS4 .so support
cannam@126 14574 lt_prog_compiler_pic_CXX='-fPIC'
cannam@126 14575 ;;
cannam@126 14576 m68k)
cannam@126 14577 # FIXME: we need at least 68020 code to build shared libraries, but
cannam@126 14578 # adding the '-m68020' flag to GCC prevents building anything better,
cannam@126 14579 # like '-m68040'.
cannam@126 14580 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
cannam@126 14581 ;;
cannam@126 14582 esac
cannam@126 14583 ;;
cannam@126 14584
cannam@126 14585 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
cannam@126 14586 # PIC is the default for these OSes.
cannam@126 14587 ;;
cannam@126 14588 mingw* | cygwin* | os2* | pw32* | cegcc*)
cannam@126 14589 # This hack is so that the source file can tell whether it is being
cannam@126 14590 # built for inclusion in a dll (and should export symbols for example).
cannam@126 14591 # Although the cygwin gcc ignores -fPIC, still need this for old-style
cannam@126 14592 # (--disable-auto-import) libraries
cannam@126 14593 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
cannam@126 14594 case $host_os in
cannam@126 14595 os2*)
cannam@126 14596 lt_prog_compiler_static_CXX='$wl-static'
cannam@126 14597 ;;
cannam@126 14598 esac
cannam@126 14599 ;;
cannam@126 14600 darwin* | rhapsody*)
cannam@126 14601 # PIC is the default on this platform
cannam@126 14602 # Common symbols not allowed in MH_DYLIB files
cannam@126 14603 lt_prog_compiler_pic_CXX='-fno-common'
cannam@126 14604 ;;
cannam@126 14605 *djgpp*)
cannam@126 14606 # DJGPP does not support shared libraries at all
cannam@126 14607 lt_prog_compiler_pic_CXX=
cannam@126 14608 ;;
cannam@126 14609 haiku*)
cannam@126 14610 # PIC is the default for Haiku.
cannam@126 14611 # The "-static" flag exists, but is broken.
cannam@126 14612 lt_prog_compiler_static_CXX=
cannam@126 14613 ;;
cannam@126 14614 interix[3-9]*)
cannam@126 14615 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
cannam@126 14616 # Instead, we relocate shared libraries at runtime.
cannam@126 14617 ;;
cannam@126 14618 sysv4*MP*)
cannam@126 14619 if test -d /usr/nec; then
cannam@126 14620 lt_prog_compiler_pic_CXX=-Kconform_pic
cannam@126 14621 fi
cannam@126 14622 ;;
cannam@126 14623 hpux*)
cannam@126 14624 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
cannam@126 14625 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
cannam@126 14626 # sets the default TLS model and affects inlining.
cannam@126 14627 case $host_cpu in
cannam@126 14628 hppa*64*)
cannam@126 14629 ;;
cannam@126 14630 *)
cannam@126 14631 lt_prog_compiler_pic_CXX='-fPIC'
cannam@126 14632 ;;
cannam@126 14633 esac
cannam@126 14634 ;;
cannam@126 14635 *qnx* | *nto*)
cannam@126 14636 # QNX uses GNU C++, but need to define -shared option too, otherwise
cannam@126 14637 # it will coredump.
cannam@126 14638 lt_prog_compiler_pic_CXX='-fPIC -shared'
cannam@126 14639 ;;
cannam@126 14640 *)
cannam@126 14641 lt_prog_compiler_pic_CXX='-fPIC'
cannam@126 14642 ;;
cannam@126 14643 esac
cannam@126 14644 else
cannam@126 14645 case $host_os in
cannam@126 14646 aix[4-9]*)
cannam@126 14647 # All AIX code is PIC.
cannam@126 14648 if test ia64 = "$host_cpu"; then
cannam@126 14649 # AIX 5 now supports IA64 processor
cannam@126 14650 lt_prog_compiler_static_CXX='-Bstatic'
cannam@126 14651 else
cannam@126 14652 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
cannam@126 14653 fi
cannam@126 14654 ;;
cannam@126 14655 chorus*)
cannam@126 14656 case $cc_basename in
cannam@126 14657 cxch68*)
cannam@126 14658 # Green Hills C++ Compiler
cannam@126 14659 # _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@126 14660 ;;
cannam@126 14661 esac
cannam@126 14662 ;;
cannam@126 14663 mingw* | cygwin* | os2* | pw32* | cegcc*)
cannam@126 14664 # This hack is so that the source file can tell whether it is being
cannam@126 14665 # built for inclusion in a dll (and should export symbols for example).
cannam@126 14666 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
cannam@126 14667 ;;
cannam@126 14668 dgux*)
cannam@126 14669 case $cc_basename in
cannam@126 14670 ec++*)
cannam@126 14671 lt_prog_compiler_pic_CXX='-KPIC'
cannam@126 14672 ;;
cannam@126 14673 ghcx*)
cannam@126 14674 # Green Hills C++ Compiler
cannam@126 14675 lt_prog_compiler_pic_CXX='-pic'
cannam@126 14676 ;;
cannam@126 14677 *)
cannam@126 14678 ;;
cannam@126 14679 esac
cannam@126 14680 ;;
cannam@126 14681 freebsd* | dragonfly*)
cannam@126 14682 # FreeBSD uses GNU C++
cannam@126 14683 ;;
cannam@126 14684 hpux9* | hpux10* | hpux11*)
cannam@126 14685 case $cc_basename in
cannam@126 14686 CC*)
cannam@126 14687 lt_prog_compiler_wl_CXX='-Wl,'
cannam@126 14688 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
cannam@126 14689 if test ia64 != "$host_cpu"; then
cannam@126 14690 lt_prog_compiler_pic_CXX='+Z'
cannam@126 14691 fi
cannam@126 14692 ;;
cannam@126 14693 aCC*)
cannam@126 14694 lt_prog_compiler_wl_CXX='-Wl,'
cannam@126 14695 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
cannam@126 14696 case $host_cpu in
cannam@126 14697 hppa*64*|ia64*)
cannam@126 14698 # +Z the default
cannam@126 14699 ;;
cannam@126 14700 *)
cannam@126 14701 lt_prog_compiler_pic_CXX='+Z'
cannam@126 14702 ;;
cannam@126 14703 esac
cannam@126 14704 ;;
cannam@126 14705 *)
cannam@126 14706 ;;
cannam@126 14707 esac
cannam@126 14708 ;;
cannam@126 14709 interix*)
cannam@126 14710 # This is c89, which is MS Visual C++ (no shared libs)
cannam@126 14711 # Anyone wants to do a port?
cannam@126 14712 ;;
cannam@126 14713 irix5* | irix6* | nonstopux*)
cannam@126 14714 case $cc_basename in
cannam@126 14715 CC*)
cannam@126 14716 lt_prog_compiler_wl_CXX='-Wl,'
cannam@126 14717 lt_prog_compiler_static_CXX='-non_shared'
cannam@126 14718 # CC pic flag -KPIC is the default.
cannam@126 14719 ;;
cannam@126 14720 *)
cannam@126 14721 ;;
cannam@126 14722 esac
cannam@126 14723 ;;
cannam@126 14724 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cannam@126 14725 case $cc_basename in
cannam@126 14726 KCC*)
cannam@126 14727 # KAI C++ Compiler
cannam@126 14728 lt_prog_compiler_wl_CXX='--backend -Wl,'
cannam@126 14729 lt_prog_compiler_pic_CXX='-fPIC'
cannam@126 14730 ;;
cannam@126 14731 ecpc* )
cannam@126 14732 # old Intel C++ for x86_64, which still supported -KPIC.
cannam@126 14733 lt_prog_compiler_wl_CXX='-Wl,'
cannam@126 14734 lt_prog_compiler_pic_CXX='-KPIC'
cannam@126 14735 lt_prog_compiler_static_CXX='-static'
cannam@126 14736 ;;
cannam@126 14737 icpc* )
cannam@126 14738 # Intel C++, used to be incompatible with GCC.
cannam@126 14739 # ICC 10 doesn't accept -KPIC any more.
cannam@126 14740 lt_prog_compiler_wl_CXX='-Wl,'
cannam@126 14741 lt_prog_compiler_pic_CXX='-fPIC'
cannam@126 14742 lt_prog_compiler_static_CXX='-static'
cannam@126 14743 ;;
cannam@126 14744 pgCC* | pgcpp*)
cannam@126 14745 # Portland Group C++ compiler
cannam@126 14746 lt_prog_compiler_wl_CXX='-Wl,'
cannam@126 14747 lt_prog_compiler_pic_CXX='-fpic'
cannam@126 14748 lt_prog_compiler_static_CXX='-Bstatic'
cannam@126 14749 ;;
cannam@126 14750 cxx*)
cannam@126 14751 # Compaq C++
cannam@126 14752 # Make sure the PIC flag is empty. It appears that all Alpha
cannam@126 14753 # Linux and Compaq Tru64 Unix objects are PIC.
cannam@126 14754 lt_prog_compiler_pic_CXX=
cannam@126 14755 lt_prog_compiler_static_CXX='-non_shared'
cannam@126 14756 ;;
cannam@126 14757 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
cannam@126 14758 # IBM XL 8.0, 9.0 on PPC and BlueGene
cannam@126 14759 lt_prog_compiler_wl_CXX='-Wl,'
cannam@126 14760 lt_prog_compiler_pic_CXX='-qpic'
cannam@126 14761 lt_prog_compiler_static_CXX='-qstaticlink'
cannam@126 14762 ;;
cannam@126 14763 *)
cannam@126 14764 case `$CC -V 2>&1 | sed 5q` in
cannam@126 14765 *Sun\ C*)
cannam@126 14766 # Sun C++ 5.9
cannam@126 14767 lt_prog_compiler_pic_CXX='-KPIC'
cannam@126 14768 lt_prog_compiler_static_CXX='-Bstatic'
cannam@126 14769 lt_prog_compiler_wl_CXX='-Qoption ld '
cannam@126 14770 ;;
cannam@126 14771 esac
cannam@126 14772 ;;
cannam@126 14773 esac
cannam@126 14774 ;;
cannam@126 14775 lynxos*)
cannam@126 14776 ;;
cannam@126 14777 m88k*)
cannam@126 14778 ;;
cannam@126 14779 mvs*)
cannam@126 14780 case $cc_basename in
cannam@126 14781 cxx*)
cannam@126 14782 lt_prog_compiler_pic_CXX='-W c,exportall'
cannam@126 14783 ;;
cannam@126 14784 *)
cannam@126 14785 ;;
cannam@126 14786 esac
cannam@126 14787 ;;
cannam@126 14788 netbsd* | netbsdelf*-gnu)
cannam@126 14789 ;;
cannam@126 14790 *qnx* | *nto*)
cannam@126 14791 # QNX uses GNU C++, but need to define -shared option too, otherwise
cannam@126 14792 # it will coredump.
cannam@126 14793 lt_prog_compiler_pic_CXX='-fPIC -shared'
cannam@126 14794 ;;
cannam@126 14795 osf3* | osf4* | osf5*)
cannam@126 14796 case $cc_basename in
cannam@126 14797 KCC*)
cannam@126 14798 lt_prog_compiler_wl_CXX='--backend -Wl,'
cannam@126 14799 ;;
cannam@126 14800 RCC*)
cannam@126 14801 # Rational C++ 2.4.1
cannam@126 14802 lt_prog_compiler_pic_CXX='-pic'
cannam@126 14803 ;;
cannam@126 14804 cxx*)
cannam@126 14805 # Digital/Compaq C++
cannam@126 14806 lt_prog_compiler_wl_CXX='-Wl,'
cannam@126 14807 # Make sure the PIC flag is empty. It appears that all Alpha
cannam@126 14808 # Linux and Compaq Tru64 Unix objects are PIC.
cannam@126 14809 lt_prog_compiler_pic_CXX=
cannam@126 14810 lt_prog_compiler_static_CXX='-non_shared'
cannam@126 14811 ;;
cannam@126 14812 *)
cannam@126 14813 ;;
cannam@126 14814 esac
cannam@126 14815 ;;
cannam@126 14816 psos*)
cannam@126 14817 ;;
cannam@126 14818 solaris*)
cannam@126 14819 case $cc_basename in
cannam@126 14820 CC* | sunCC*)
cannam@126 14821 # Sun C++ 4.2, 5.x and Centerline C++
cannam@126 14822 lt_prog_compiler_pic_CXX='-KPIC'
cannam@126 14823 lt_prog_compiler_static_CXX='-Bstatic'
cannam@126 14824 lt_prog_compiler_wl_CXX='-Qoption ld '
cannam@126 14825 ;;
cannam@126 14826 gcx*)
cannam@126 14827 # Green Hills C++ Compiler
cannam@126 14828 lt_prog_compiler_pic_CXX='-PIC'
cannam@126 14829 ;;
cannam@126 14830 *)
cannam@126 14831 ;;
cannam@126 14832 esac
cannam@126 14833 ;;
cannam@126 14834 sunos4*)
cannam@126 14835 case $cc_basename in
cannam@126 14836 CC*)
cannam@126 14837 # Sun C++ 4.x
cannam@126 14838 lt_prog_compiler_pic_CXX='-pic'
cannam@126 14839 lt_prog_compiler_static_CXX='-Bstatic'
cannam@126 14840 ;;
cannam@126 14841 lcc*)
cannam@126 14842 # Lucid
cannam@126 14843 lt_prog_compiler_pic_CXX='-pic'
cannam@126 14844 ;;
cannam@126 14845 *)
cannam@126 14846 ;;
cannam@126 14847 esac
cannam@126 14848 ;;
cannam@126 14849 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
cannam@126 14850 case $cc_basename in
cannam@126 14851 CC*)
cannam@126 14852 lt_prog_compiler_wl_CXX='-Wl,'
cannam@126 14853 lt_prog_compiler_pic_CXX='-KPIC'
cannam@126 14854 lt_prog_compiler_static_CXX='-Bstatic'
cannam@126 14855 ;;
cannam@126 14856 esac
cannam@126 14857 ;;
cannam@126 14858 tandem*)
cannam@126 14859 case $cc_basename in
cannam@126 14860 NCC*)
cannam@126 14861 # NonStop-UX NCC 3.20
cannam@126 14862 lt_prog_compiler_pic_CXX='-KPIC'
cannam@126 14863 ;;
cannam@126 14864 *)
cannam@126 14865 ;;
cannam@126 14866 esac
cannam@126 14867 ;;
cannam@126 14868 vxworks*)
cannam@126 14869 ;;
cannam@126 14870 *)
cannam@126 14871 lt_prog_compiler_can_build_shared_CXX=no
cannam@126 14872 ;;
cannam@126 14873 esac
cannam@126 14874 fi
cannam@126 14875
cannam@126 14876 case $host_os in
cannam@126 14877 # For platforms that do not support PIC, -DPIC is meaningless:
cannam@126 14878 *djgpp*)
cannam@126 14879 lt_prog_compiler_pic_CXX=
cannam@126 14880 ;;
cannam@126 14881 *)
cannam@126 14882 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
cannam@126 14883 ;;
cannam@126 14884 esac
cannam@126 14885
cannam@126 14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cannam@126 14887 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
cannam@126 14888 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
cannam@126 14889 $as_echo_n "(cached) " >&6
cannam@126 14890 else
cannam@126 14891 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
cannam@126 14892 fi
cannam@126 14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
cannam@126 14894 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
cannam@126 14895 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cannam@126 14896
cannam@126 14897 #
cannam@126 14898 # Check to make sure the PIC flag actually works.
cannam@126 14899 #
cannam@126 14900 if test -n "$lt_prog_compiler_pic_CXX"; then
cannam@126 14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
cannam@126 14902 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cannam@126 14903 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cannam@126 14904 $as_echo_n "(cached) " >&6
cannam@126 14905 else
cannam@126 14906 lt_cv_prog_compiler_pic_works_CXX=no
cannam@126 14907 ac_outfile=conftest.$ac_objext
cannam@126 14908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@126 14909 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
cannam@126 14910 # Insert the option either (1) after the last *FLAGS variable, or
cannam@126 14911 # (2) before a word containing "conftest.", or (3) at the end.
cannam@126 14912 # Note that $ac_compile itself does not contain backslashes and begins
cannam@126 14913 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@126 14914 # The option is referenced via a variable to avoid confusing sed.
cannam@126 14915 lt_compile=`echo "$ac_compile" | $SED \
cannam@126 14916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@126 14917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@126 14918 -e 's:$: $lt_compiler_flag:'`
cannam@126 14919 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@126 14920 (eval "$lt_compile" 2>conftest.err)
cannam@126 14921 ac_status=$?
cannam@126 14922 cat conftest.err >&5
cannam@126 14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@126 14924 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@126 14925 # The compiler can only warn and ignore the option if not recognized
cannam@126 14926 # So say no if there are warnings other than the usual output.
cannam@126 14927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cannam@126 14928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@126 14929 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
cannam@126 14930 lt_cv_prog_compiler_pic_works_CXX=yes
cannam@126 14931 fi
cannam@126 14932 fi
cannam@126 14933 $RM conftest*
cannam@126 14934
cannam@126 14935 fi
cannam@126 14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cannam@126 14937 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
cannam@126 14938
cannam@126 14939 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
cannam@126 14940 case $lt_prog_compiler_pic_CXX in
cannam@126 14941 "" | " "*) ;;
cannam@126 14942 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
cannam@126 14943 esac
cannam@126 14944 else
cannam@126 14945 lt_prog_compiler_pic_CXX=
cannam@126 14946 lt_prog_compiler_can_build_shared_CXX=no
cannam@126 14947 fi
cannam@126 14948
cannam@126 14949 fi
cannam@126 14950
cannam@126 14951
cannam@126 14952
cannam@126 14953
cannam@126 14954
cannam@126 14955 #
cannam@126 14956 # Check to make sure the static flag actually works.
cannam@126 14957 #
cannam@126 14958 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cannam@126 14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cannam@126 14960 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cannam@126 14961 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cannam@126 14962 $as_echo_n "(cached) " >&6
cannam@126 14963 else
cannam@126 14964 lt_cv_prog_compiler_static_works_CXX=no
cannam@126 14965 save_LDFLAGS=$LDFLAGS
cannam@126 14966 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
cannam@126 14967 echo "$lt_simple_link_test_code" > conftest.$ac_ext
cannam@126 14968 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
cannam@126 14969 # The linker can only warn and ignore the option if not recognized
cannam@126 14970 # So say no if there are warnings
cannam@126 14971 if test -s conftest.err; then
cannam@126 14972 # Append any errors to the config.log.
cannam@126 14973 cat conftest.err 1>&5
cannam@126 14974 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cannam@126 14975 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@126 14976 if diff conftest.exp conftest.er2 >/dev/null; then
cannam@126 14977 lt_cv_prog_compiler_static_works_CXX=yes
cannam@126 14978 fi
cannam@126 14979 else
cannam@126 14980 lt_cv_prog_compiler_static_works_CXX=yes
cannam@126 14981 fi
cannam@126 14982 fi
cannam@126 14983 $RM -r conftest*
cannam@126 14984 LDFLAGS=$save_LDFLAGS
cannam@126 14985
cannam@126 14986 fi
cannam@126 14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cannam@126 14988 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
cannam@126 14989
cannam@126 14990 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
cannam@126 14991 :
cannam@126 14992 else
cannam@126 14993 lt_prog_compiler_static_CXX=
cannam@126 14994 fi
cannam@126 14995
cannam@126 14996
cannam@126 14997
cannam@126 14998
cannam@126 14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@126 15000 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cannam@126 15001 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cannam@126 15002 $as_echo_n "(cached) " >&6
cannam@126 15003 else
cannam@126 15004 lt_cv_prog_compiler_c_o_CXX=no
cannam@126 15005 $RM -r conftest 2>/dev/null
cannam@126 15006 mkdir conftest
cannam@126 15007 cd conftest
cannam@126 15008 mkdir out
cannam@126 15009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@126 15010
cannam@126 15011 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@126 15012 # Insert the option either (1) after the last *FLAGS variable, or
cannam@126 15013 # (2) before a word containing "conftest.", or (3) at the end.
cannam@126 15014 # Note that $ac_compile itself does not contain backslashes and begins
cannam@126 15015 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@126 15016 lt_compile=`echo "$ac_compile" | $SED \
cannam@126 15017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@126 15018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@126 15019 -e 's:$: $lt_compiler_flag:'`
cannam@126 15020 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@126 15021 (eval "$lt_compile" 2>out/conftest.err)
cannam@126 15022 ac_status=$?
cannam@126 15023 cat out/conftest.err >&5
cannam@126 15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@126 15025 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@126 15026 then
cannam@126 15027 # The compiler can only warn and ignore the option if not recognized
cannam@126 15028 # So say no if there are warnings
cannam@126 15029 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cannam@126 15030 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cannam@126 15031 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cannam@126 15032 lt_cv_prog_compiler_c_o_CXX=yes
cannam@126 15033 fi
cannam@126 15034 fi
cannam@126 15035 chmod u+w . 2>&5
cannam@126 15036 $RM conftest*
cannam@126 15037 # SGI C++ compiler will create directory out/ii_files/ for
cannam@126 15038 # template instantiation
cannam@126 15039 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
cannam@126 15040 $RM out/* && rmdir out
cannam@126 15041 cd ..
cannam@126 15042 $RM -r conftest
cannam@126 15043 $RM conftest*
cannam@126 15044
cannam@126 15045 fi
cannam@126 15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cannam@126 15047 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
cannam@126 15048
cannam@126 15049
cannam@126 15050
cannam@126 15051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@126 15052 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cannam@126 15053 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cannam@126 15054 $as_echo_n "(cached) " >&6
cannam@126 15055 else
cannam@126 15056 lt_cv_prog_compiler_c_o_CXX=no
cannam@126 15057 $RM -r conftest 2>/dev/null
cannam@126 15058 mkdir conftest
cannam@126 15059 cd conftest
cannam@126 15060 mkdir out
cannam@126 15061 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@126 15062
cannam@126 15063 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@126 15064 # Insert the option either (1) after the last *FLAGS variable, or
cannam@126 15065 # (2) before a word containing "conftest.", or (3) at the end.
cannam@126 15066 # Note that $ac_compile itself does not contain backslashes and begins
cannam@126 15067 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@126 15068 lt_compile=`echo "$ac_compile" | $SED \
cannam@126 15069 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@126 15070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@126 15071 -e 's:$: $lt_compiler_flag:'`
cannam@126 15072 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@126 15073 (eval "$lt_compile" 2>out/conftest.err)
cannam@126 15074 ac_status=$?
cannam@126 15075 cat out/conftest.err >&5
cannam@126 15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@126 15077 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@126 15078 then
cannam@126 15079 # The compiler can only warn and ignore the option if not recognized
cannam@126 15080 # So say no if there are warnings
cannam@126 15081 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cannam@126 15082 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cannam@126 15083 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cannam@126 15084 lt_cv_prog_compiler_c_o_CXX=yes
cannam@126 15085 fi
cannam@126 15086 fi
cannam@126 15087 chmod u+w . 2>&5
cannam@126 15088 $RM conftest*
cannam@126 15089 # SGI C++ compiler will create directory out/ii_files/ for
cannam@126 15090 # template instantiation
cannam@126 15091 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
cannam@126 15092 $RM out/* && rmdir out
cannam@126 15093 cd ..
cannam@126 15094 $RM -r conftest
cannam@126 15095 $RM conftest*
cannam@126 15096
cannam@126 15097 fi
cannam@126 15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cannam@126 15099 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
cannam@126 15100
cannam@126 15101
cannam@126 15102
cannam@126 15103
cannam@126 15104 hard_links=nottested
cannam@126 15105 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
cannam@126 15106 # do not overwrite the value of need_locks provided by the user
cannam@126 15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cannam@126 15108 $as_echo_n "checking if we can lock with hard links... " >&6; }
cannam@126 15109 hard_links=yes
cannam@126 15110 $RM conftest*
cannam@126 15111 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@126 15112 touch conftest.a
cannam@126 15113 ln conftest.a conftest.b 2>&5 || hard_links=no
cannam@126 15114 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@126 15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cannam@126 15116 $as_echo "$hard_links" >&6; }
cannam@126 15117 if test no = "$hard_links"; then
cannam@126 15118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
cannam@126 15119 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
cannam@126 15120 need_locks=warn
cannam@126 15121 fi
cannam@126 15122 else
cannam@126 15123 need_locks=no
cannam@126 15124 fi
cannam@126 15125
cannam@126 15126
cannam@126 15127
cannam@126 15128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@126 15129 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
cannam@126 15130
cannam@126 15131 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@126 15132 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cannam@126 15133 case $host_os in
cannam@126 15134 aix[4-9]*)
cannam@126 15135 # If we're using GNU nm, then we don't want the "-C" option.
cannam@126 15136 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
cannam@126 15137 # Without the "-l" option, or with the "-B" option, AIX nm treats
cannam@126 15138 # weak defined symbols like other global defined symbols, whereas
cannam@126 15139 # GNU nm marks them as "W".
cannam@126 15140 # While the 'weak' keyword is ignored in the Export File, we need
cannam@126 15141 # it in the Import File for the 'aix-soname' feature, so we have
cannam@126 15142 # to replace the "-B" option with "-P" for AIX nm.
cannam@126 15143 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cannam@126 15144 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
cannam@126 15145 else
cannam@126 15146 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
cannam@126 15147 fi
cannam@126 15148 ;;
cannam@126 15149 pw32*)
cannam@126 15150 export_symbols_cmds_CXX=$ltdll_cmds
cannam@126 15151 ;;
cannam@126 15152 cygwin* | mingw* | cegcc*)
cannam@126 15153 case $cc_basename in
cannam@126 15154 cl*)
cannam@126 15155 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cannam@126 15156 ;;
cannam@126 15157 *)
cannam@126 15158 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@126 15159 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
cannam@126 15160 ;;
cannam@126 15161 esac
cannam@126 15162 ;;
cannam@126 15163 linux* | k*bsd*-gnu | gnu*)
cannam@126 15164 link_all_deplibs_CXX=no
cannam@126 15165 ;;
cannam@126 15166 *)
cannam@126 15167 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@126 15168 ;;
cannam@126 15169 esac
cannam@126 15170
cannam@126 15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cannam@126 15172 $as_echo "$ld_shlibs_CXX" >&6; }
cannam@126 15173 test no = "$ld_shlibs_CXX" && can_build_shared=no
cannam@126 15174
cannam@126 15175 with_gnu_ld_CXX=$with_gnu_ld
cannam@126 15176
cannam@126 15177
cannam@126 15178
cannam@126 15179
cannam@126 15180
cannam@126 15181
cannam@126 15182 #
cannam@126 15183 # Do we need to explicitly link libc?
cannam@126 15184 #
cannam@126 15185 case "x$archive_cmds_need_lc_CXX" in
cannam@126 15186 x|xyes)
cannam@126 15187 # Assume -lc should be added
cannam@126 15188 archive_cmds_need_lc_CXX=yes
cannam@126 15189
cannam@126 15190 if test yes,yes = "$GCC,$enable_shared"; then
cannam@126 15191 case $archive_cmds_CXX in
cannam@126 15192 *'~'*)
cannam@126 15193 # FIXME: we may have to deal with multi-command sequences.
cannam@126 15194 ;;
cannam@126 15195 '$CC '*)
cannam@126 15196 # Test whether the compiler implicitly links with -lc since on some
cannam@126 15197 # systems, -lgcc has to come before -lc. If gcc already passes -lc
cannam@126 15198 # to ld, don't add -lc before -lgcc.
cannam@126 15199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cannam@126 15200 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cannam@126 15201 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cannam@126 15202 $as_echo_n "(cached) " >&6
cannam@126 15203 else
cannam@126 15204 $RM conftest*
cannam@126 15205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@126 15206
cannam@126 15207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@126 15208 (eval $ac_compile) 2>&5
cannam@126 15209 ac_status=$?
cannam@126 15210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 15211 test $ac_status = 0; } 2>conftest.err; then
cannam@126 15212 soname=conftest
cannam@126 15213 lib=conftest
cannam@126 15214 libobjs=conftest.$ac_objext
cannam@126 15215 deplibs=
cannam@126 15216 wl=$lt_prog_compiler_wl_CXX
cannam@126 15217 pic_flag=$lt_prog_compiler_pic_CXX
cannam@126 15218 compiler_flags=-v
cannam@126 15219 linker_flags=-v
cannam@126 15220 verstring=
cannam@126 15221 output_objdir=.
cannam@126 15222 libname=conftest
cannam@126 15223 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
cannam@126 15224 allow_undefined_flag_CXX=
cannam@126 15225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cannam@126 15226 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
cannam@126 15227 ac_status=$?
cannam@126 15228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 15229 test $ac_status = 0; }
cannam@126 15230 then
cannam@126 15231 lt_cv_archive_cmds_need_lc_CXX=no
cannam@126 15232 else
cannam@126 15233 lt_cv_archive_cmds_need_lc_CXX=yes
cannam@126 15234 fi
cannam@126 15235 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
cannam@126 15236 else
cannam@126 15237 cat conftest.err 1>&5
cannam@126 15238 fi
cannam@126 15239 $RM conftest*
cannam@126 15240
cannam@126 15241 fi
cannam@126 15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
cannam@126 15243 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
cannam@126 15244 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cannam@126 15245 ;;
cannam@126 15246 esac
cannam@126 15247 fi
cannam@126 15248 ;;
cannam@126 15249 esac
cannam@126 15250
cannam@126 15251
cannam@126 15252
cannam@126 15253
cannam@126 15254
cannam@126 15255
cannam@126 15256
cannam@126 15257
cannam@126 15258
cannam@126 15259
cannam@126 15260
cannam@126 15261
cannam@126 15262
cannam@126 15263
cannam@126 15264
cannam@126 15265
cannam@126 15266
cannam@126 15267
cannam@126 15268
cannam@126 15269
cannam@126 15270
cannam@126 15271
cannam@126 15272
cannam@126 15273
cannam@126 15274
cannam@126 15275
cannam@126 15276
cannam@126 15277
cannam@126 15278
cannam@126 15279
cannam@126 15280
cannam@126 15281
cannam@126 15282
cannam@126 15283
cannam@126 15284
cannam@126 15285
cannam@126 15286
cannam@126 15287
cannam@126 15288
cannam@126 15289
cannam@126 15290
cannam@126 15291
cannam@126 15292
cannam@126 15293
cannam@126 15294
cannam@126 15295
cannam@126 15296
cannam@126 15297
cannam@126 15298
cannam@126 15299
cannam@126 15300
cannam@126 15301
cannam@126 15302
cannam@126 15303
cannam@126 15304
cannam@126 15305
cannam@126 15306
cannam@126 15307
cannam@126 15308
cannam@126 15309
cannam@126 15310
cannam@126 15311
cannam@126 15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cannam@126 15313 $as_echo_n "checking dynamic linker characteristics... " >&6; }
cannam@126 15314
cannam@126 15315 library_names_spec=
cannam@126 15316 libname_spec='lib$name'
cannam@126 15317 soname_spec=
cannam@126 15318 shrext_cmds=.so
cannam@126 15319 postinstall_cmds=
cannam@126 15320 postuninstall_cmds=
cannam@126 15321 finish_cmds=
cannam@126 15322 finish_eval=
cannam@126 15323 shlibpath_var=
cannam@126 15324 shlibpath_overrides_runpath=unknown
cannam@126 15325 version_type=none
cannam@126 15326 dynamic_linker="$host_os ld.so"
cannam@126 15327 sys_lib_dlsearch_path_spec="/lib /usr/lib"
cannam@126 15328 need_lib_prefix=unknown
cannam@126 15329 hardcode_into_libs=no
cannam@126 15330
cannam@126 15331 # when you set need_version to no, make sure it does not cause -set_version
cannam@126 15332 # flags to be left without arguments
cannam@126 15333 need_version=unknown
cannam@126 15334
cannam@126 15335
cannam@126 15336
cannam@126 15337 case $host_os in
cannam@126 15338 aix3*)
cannam@126 15339 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 15340 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
cannam@126 15341 shlibpath_var=LIBPATH
cannam@126 15342
cannam@126 15343 # AIX 3 has no versioning support, so we append a major version to the name.
cannam@126 15344 soname_spec='$libname$release$shared_ext$major'
cannam@126 15345 ;;
cannam@126 15346
cannam@126 15347 aix[4-9]*)
cannam@126 15348 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 15349 need_lib_prefix=no
cannam@126 15350 need_version=no
cannam@126 15351 hardcode_into_libs=yes
cannam@126 15352 if test ia64 = "$host_cpu"; then
cannam@126 15353 # AIX 5 supports IA64
cannam@126 15354 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
cannam@126 15355 shlibpath_var=LD_LIBRARY_PATH
cannam@126 15356 else
cannam@126 15357 # With GCC up to 2.95.x, collect2 would create an import file
cannam@126 15358 # for dependence libraries. The import file would start with
cannam@126 15359 # the line '#! .'. This would cause the generated library to
cannam@126 15360 # depend on '.', always an invalid library. This was fixed in
cannam@126 15361 # development snapshots of GCC prior to 3.0.
cannam@126 15362 case $host_os in
cannam@126 15363 aix4 | aix4.[01] | aix4.[01].*)
cannam@126 15364 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
cannam@126 15365 echo ' yes '
cannam@126 15366 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
cannam@126 15367 :
cannam@126 15368 else
cannam@126 15369 can_build_shared=no
cannam@126 15370 fi
cannam@126 15371 ;;
cannam@126 15372 esac
cannam@126 15373 # Using Import Files as archive members, it is possible to support
cannam@126 15374 # filename-based versioning of shared library archives on AIX. While
cannam@126 15375 # this would work for both with and without runtime linking, it will
cannam@126 15376 # prevent static linking of such archives. So we do filename-based
cannam@126 15377 # shared library versioning with .so extension only, which is used
cannam@126 15378 # when both runtime linking and shared linking is enabled.
cannam@126 15379 # Unfortunately, runtime linking may impact performance, so we do
cannam@126 15380 # not want this to be the default eventually. Also, we use the
cannam@126 15381 # versioned .so libs for executables only if there is the -brtl
cannam@126 15382 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
cannam@126 15383 # To allow for filename-based versioning support, we need to create
cannam@126 15384 # libNAME.so.V as an archive file, containing:
cannam@126 15385 # *) an Import File, referring to the versioned filename of the
cannam@126 15386 # archive as well as the shared archive member, telling the
cannam@126 15387 # bitwidth (32 or 64) of that shared object, and providing the
cannam@126 15388 # list of exported symbols of that shared object, eventually
cannam@126 15389 # decorated with the 'weak' keyword
cannam@126 15390 # *) the shared object with the F_LOADONLY flag set, to really avoid
cannam@126 15391 # it being seen by the linker.
cannam@126 15392 # At run time we better use the real file rather than another symlink,
cannam@126 15393 # but for link time we create the symlink libNAME.so -> libNAME.so.V
cannam@126 15394
cannam@126 15395 case $with_aix_soname,$aix_use_runtimelinking in
cannam@126 15396 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
cannam@126 15397 # soname into executable. Probably we can add versioning support to
cannam@126 15398 # collect2, so additional links can be useful in future.
cannam@126 15399 aix,yes) # traditional libtool
cannam@126 15400 dynamic_linker='AIX unversionable lib.so'
cannam@126 15401 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
cannam@126 15402 # instead of lib<name>.a to let people know that these are not
cannam@126 15403 # typical AIX shared libraries.
cannam@126 15404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 15405 ;;
cannam@126 15406 aix,no) # traditional AIX only
cannam@126 15407 dynamic_linker='AIX lib.a(lib.so.V)'
cannam@126 15408 # We preserve .a as extension for shared libraries through AIX4.2
cannam@126 15409 # and later when we are not doing run time linking.
cannam@126 15410 library_names_spec='$libname$release.a $libname.a'
cannam@126 15411 soname_spec='$libname$release$shared_ext$major'
cannam@126 15412 ;;
cannam@126 15413 svr4,*) # full svr4 only
cannam@126 15414 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
cannam@126 15415 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
cannam@126 15416 # We do not specify a path in Import Files, so LIBPATH fires.
cannam@126 15417 shlibpath_overrides_runpath=yes
cannam@126 15418 ;;
cannam@126 15419 *,yes) # both, prefer svr4
cannam@126 15420 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
cannam@126 15421 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
cannam@126 15422 # unpreferred sharedlib libNAME.a needs extra handling
cannam@126 15423 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
cannam@126 15424 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
cannam@126 15425 # We do not specify a path in Import Files, so LIBPATH fires.
cannam@126 15426 shlibpath_overrides_runpath=yes
cannam@126 15427 ;;
cannam@126 15428 *,no) # both, prefer aix
cannam@126 15429 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
cannam@126 15430 library_names_spec='$libname$release.a $libname.a'
cannam@126 15431 soname_spec='$libname$release$shared_ext$major'
cannam@126 15432 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
cannam@126 15433 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
cannam@126 15434 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
cannam@126 15435 ;;
cannam@126 15436 esac
cannam@126 15437 shlibpath_var=LIBPATH
cannam@126 15438 fi
cannam@126 15439 ;;
cannam@126 15440
cannam@126 15441 amigaos*)
cannam@126 15442 case $host_cpu in
cannam@126 15443 powerpc)
cannam@126 15444 # Since July 2007 AmigaOS4 officially supports .so libraries.
cannam@126 15445 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
cannam@126 15446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 15447 ;;
cannam@126 15448 m68k)
cannam@126 15449 library_names_spec='$libname.ixlibrary $libname.a'
cannam@126 15450 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cannam@126 15451 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
cannam@126 15452 ;;
cannam@126 15453 esac
cannam@126 15454 ;;
cannam@126 15455
cannam@126 15456 beos*)
cannam@126 15457 library_names_spec='$libname$shared_ext'
cannam@126 15458 dynamic_linker="$host_os ld.so"
cannam@126 15459 shlibpath_var=LIBRARY_PATH
cannam@126 15460 ;;
cannam@126 15461
cannam@126 15462 bsdi[45]*)
cannam@126 15463 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 15464 need_version=no
cannam@126 15465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 15466 soname_spec='$libname$release$shared_ext$major'
cannam@126 15467 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
cannam@126 15468 shlibpath_var=LD_LIBRARY_PATH
cannam@126 15469 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
cannam@126 15470 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
cannam@126 15471 # the default ld.so.conf also contains /usr/contrib/lib and
cannam@126 15472 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
cannam@126 15473 # libtool to hard-code these into programs
cannam@126 15474 ;;
cannam@126 15475
cannam@126 15476 cygwin* | mingw* | pw32* | cegcc*)
cannam@126 15477 version_type=windows
cannam@126 15478 shrext_cmds=.dll
cannam@126 15479 need_version=no
cannam@126 15480 need_lib_prefix=no
cannam@126 15481
cannam@126 15482 case $GCC,$cc_basename in
cannam@126 15483 yes,*)
cannam@126 15484 # gcc
cannam@126 15485 library_names_spec='$libname.dll.a'
cannam@126 15486 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@126 15487 postinstall_cmds='base_file=`basename \$file`~
cannam@126 15488 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
cannam@126 15489 dldir=$destdir/`dirname \$dlpath`~
cannam@126 15490 test -d \$dldir || mkdir -p \$dldir~
cannam@126 15491 $install_prog $dir/$dlname \$dldir/$dlname~
cannam@126 15492 chmod a+x \$dldir/$dlname~
cannam@126 15493 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
cannam@126 15494 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
cannam@126 15495 fi'
cannam@126 15496 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@126 15497 dlpath=$dir/\$dldll~
cannam@126 15498 $RM \$dlpath'
cannam@126 15499 shlibpath_overrides_runpath=yes
cannam@126 15500
cannam@126 15501 case $host_os in
cannam@126 15502 cygwin*)
cannam@126 15503 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
cannam@126 15504 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
cannam@126 15505
cannam@126 15506 ;;
cannam@126 15507 mingw* | cegcc*)
cannam@126 15508 # MinGW DLLs use traditional 'lib' prefix
cannam@126 15509 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
cannam@126 15510 ;;
cannam@126 15511 pw32*)
cannam@126 15512 # pw32 DLLs use 'pw' prefix rather than 'lib'
cannam@126 15513 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
cannam@126 15514 ;;
cannam@126 15515 esac
cannam@126 15516 dynamic_linker='Win32 ld.exe'
cannam@126 15517 ;;
cannam@126 15518
cannam@126 15519 *,cl*)
cannam@126 15520 # Native MSVC
cannam@126 15521 libname_spec='$name'
cannam@126 15522 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
cannam@126 15523 library_names_spec='$libname.dll.lib'
cannam@126 15524
cannam@126 15525 case $build_os in
cannam@126 15526 mingw*)
cannam@126 15527 sys_lib_search_path_spec=
cannam@126 15528 lt_save_ifs=$IFS
cannam@126 15529 IFS=';'
cannam@126 15530 for lt_path in $LIB
cannam@126 15531 do
cannam@126 15532 IFS=$lt_save_ifs
cannam@126 15533 # Let DOS variable expansion print the short 8.3 style file name.
cannam@126 15534 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
cannam@126 15535 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
cannam@126 15536 done
cannam@126 15537 IFS=$lt_save_ifs
cannam@126 15538 # Convert to MSYS style.
cannam@126 15539 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@126 15540 ;;
cannam@126 15541 cygwin*)
cannam@126 15542 # Convert to unix form, then to dos form, then back to unix form
cannam@126 15543 # but this time dos style (no spaces!) so that the unix form looks
cannam@126 15544 # like /cygdrive/c/PROGRA~1:/cygdr...
cannam@126 15545 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
cannam@126 15546 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
cannam@126 15547 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@126 15548 ;;
cannam@126 15549 *)
cannam@126 15550 sys_lib_search_path_spec=$LIB
cannam@126 15551 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
cannam@126 15552 # It is most probably a Windows format PATH.
cannam@126 15553 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@126 15554 else
cannam@126 15555 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@126 15556 fi
cannam@126 15557 # FIXME: find the short name or the path components, as spaces are
cannam@126 15558 # common. (e.g. "Program Files" -> "PROGRA~1")
cannam@126 15559 ;;
cannam@126 15560 esac
cannam@126 15561
cannam@126 15562 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@126 15563 postinstall_cmds='base_file=`basename \$file`~
cannam@126 15564 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
cannam@126 15565 dldir=$destdir/`dirname \$dlpath`~
cannam@126 15566 test -d \$dldir || mkdir -p \$dldir~
cannam@126 15567 $install_prog $dir/$dlname \$dldir/$dlname'
cannam@126 15568 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@126 15569 dlpath=$dir/\$dldll~
cannam@126 15570 $RM \$dlpath'
cannam@126 15571 shlibpath_overrides_runpath=yes
cannam@126 15572 dynamic_linker='Win32 link.exe'
cannam@126 15573 ;;
cannam@126 15574
cannam@126 15575 *)
cannam@126 15576 # Assume MSVC wrapper
cannam@126 15577 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
cannam@126 15578 dynamic_linker='Win32 ld.exe'
cannam@126 15579 ;;
cannam@126 15580 esac
cannam@126 15581 # FIXME: first we should search . and the directory the executable is in
cannam@126 15582 shlibpath_var=PATH
cannam@126 15583 ;;
cannam@126 15584
cannam@126 15585 darwin* | rhapsody*)
cannam@126 15586 dynamic_linker="$host_os dyld"
cannam@126 15587 version_type=darwin
cannam@126 15588 need_lib_prefix=no
cannam@126 15589 need_version=no
cannam@126 15590 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
cannam@126 15591 soname_spec='$libname$release$major$shared_ext'
cannam@126 15592 shlibpath_overrides_runpath=yes
cannam@126 15593 shlibpath_var=DYLD_LIBRARY_PATH
cannam@126 15594 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
cannam@126 15595
cannam@126 15596 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
cannam@126 15597 ;;
cannam@126 15598
cannam@126 15599 dgux*)
cannam@126 15600 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 15601 need_lib_prefix=no
cannam@126 15602 need_version=no
cannam@126 15603 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 15604 soname_spec='$libname$release$shared_ext$major'
cannam@126 15605 shlibpath_var=LD_LIBRARY_PATH
cannam@126 15606 ;;
cannam@126 15607
cannam@126 15608 freebsd* | dragonfly*)
cannam@126 15609 # DragonFly does not have aout. When/if they implement a new
cannam@126 15610 # versioning mechanism, adjust this.
cannam@126 15611 if test -x /usr/bin/objformat; then
cannam@126 15612 objformat=`/usr/bin/objformat`
cannam@126 15613 else
cannam@126 15614 case $host_os in
cannam@126 15615 freebsd[23].*) objformat=aout ;;
cannam@126 15616 *) objformat=elf ;;
cannam@126 15617 esac
cannam@126 15618 fi
cannam@126 15619 version_type=freebsd-$objformat
cannam@126 15620 case $version_type in
cannam@126 15621 freebsd-elf*)
cannam@126 15622 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 15623 soname_spec='$libname$release$shared_ext$major'
cannam@126 15624 need_version=no
cannam@126 15625 need_lib_prefix=no
cannam@126 15626 ;;
cannam@126 15627 freebsd-*)
cannam@126 15628 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cannam@126 15629 need_version=yes
cannam@126 15630 ;;
cannam@126 15631 esac
cannam@126 15632 shlibpath_var=LD_LIBRARY_PATH
cannam@126 15633 case $host_os in
cannam@126 15634 freebsd2.*)
cannam@126 15635 shlibpath_overrides_runpath=yes
cannam@126 15636 ;;
cannam@126 15637 freebsd3.[01]* | freebsdelf3.[01]*)
cannam@126 15638 shlibpath_overrides_runpath=yes
cannam@126 15639 hardcode_into_libs=yes
cannam@126 15640 ;;
cannam@126 15641 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
cannam@126 15642 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
cannam@126 15643 shlibpath_overrides_runpath=no
cannam@126 15644 hardcode_into_libs=yes
cannam@126 15645 ;;
cannam@126 15646 *) # from 4.6 on, and DragonFly
cannam@126 15647 shlibpath_overrides_runpath=yes
cannam@126 15648 hardcode_into_libs=yes
cannam@126 15649 ;;
cannam@126 15650 esac
cannam@126 15651 ;;
cannam@126 15652
cannam@126 15653 haiku*)
cannam@126 15654 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 15655 need_lib_prefix=no
cannam@126 15656 need_version=no
cannam@126 15657 dynamic_linker="$host_os runtime_loader"
cannam@126 15658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 15659 soname_spec='$libname$release$shared_ext$major'
cannam@126 15660 shlibpath_var=LIBRARY_PATH
cannam@126 15661 shlibpath_overrides_runpath=no
cannam@126 15662 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
cannam@126 15663 hardcode_into_libs=yes
cannam@126 15664 ;;
cannam@126 15665
cannam@126 15666 hpux9* | hpux10* | hpux11*)
cannam@126 15667 # Give a soname corresponding to the major version so that dld.sl refuses to
cannam@126 15668 # link against other versions.
cannam@126 15669 version_type=sunos
cannam@126 15670 need_lib_prefix=no
cannam@126 15671 need_version=no
cannam@126 15672 case $host_cpu in
cannam@126 15673 ia64*)
cannam@126 15674 shrext_cmds='.so'
cannam@126 15675 hardcode_into_libs=yes
cannam@126 15676 dynamic_linker="$host_os dld.so"
cannam@126 15677 shlibpath_var=LD_LIBRARY_PATH
cannam@126 15678 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@126 15679 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 15680 soname_spec='$libname$release$shared_ext$major'
cannam@126 15681 if test 32 = "$HPUX_IA64_MODE"; then
cannam@126 15682 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
cannam@126 15683 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
cannam@126 15684 else
cannam@126 15685 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
cannam@126 15686 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
cannam@126 15687 fi
cannam@126 15688 ;;
cannam@126 15689 hppa*64*)
cannam@126 15690 shrext_cmds='.sl'
cannam@126 15691 hardcode_into_libs=yes
cannam@126 15692 dynamic_linker="$host_os dld.sl"
cannam@126 15693 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
cannam@126 15694 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@126 15695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 15696 soname_spec='$libname$release$shared_ext$major'
cannam@126 15697 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
cannam@126 15698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@126 15699 ;;
cannam@126 15700 *)
cannam@126 15701 shrext_cmds='.sl'
cannam@126 15702 dynamic_linker="$host_os dld.sl"
cannam@126 15703 shlibpath_var=SHLIB_PATH
cannam@126 15704 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
cannam@126 15705 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 15706 soname_spec='$libname$release$shared_ext$major'
cannam@126 15707 ;;
cannam@126 15708 esac
cannam@126 15709 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cannam@126 15710 postinstall_cmds='chmod 555 $lib'
cannam@126 15711 # or fails outright, so override atomically:
cannam@126 15712 install_override_mode=555
cannam@126 15713 ;;
cannam@126 15714
cannam@126 15715 interix[3-9]*)
cannam@126 15716 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 15717 need_lib_prefix=no
cannam@126 15718 need_version=no
cannam@126 15719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 15720 soname_spec='$libname$release$shared_ext$major'
cannam@126 15721 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
cannam@126 15722 shlibpath_var=LD_LIBRARY_PATH
cannam@126 15723 shlibpath_overrides_runpath=no
cannam@126 15724 hardcode_into_libs=yes
cannam@126 15725 ;;
cannam@126 15726
cannam@126 15727 irix5* | irix6* | nonstopux*)
cannam@126 15728 case $host_os in
cannam@126 15729 nonstopux*) version_type=nonstopux ;;
cannam@126 15730 *)
cannam@126 15731 if test yes = "$lt_cv_prog_gnu_ld"; then
cannam@126 15732 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 15733 else
cannam@126 15734 version_type=irix
cannam@126 15735 fi ;;
cannam@126 15736 esac
cannam@126 15737 need_lib_prefix=no
cannam@126 15738 need_version=no
cannam@126 15739 soname_spec='$libname$release$shared_ext$major'
cannam@126 15740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
cannam@126 15741 case $host_os in
cannam@126 15742 irix5* | nonstopux*)
cannam@126 15743 libsuff= shlibsuff=
cannam@126 15744 ;;
cannam@126 15745 *)
cannam@126 15746 case $LD in # libtool.m4 will add one of these switches to LD
cannam@126 15747 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
cannam@126 15748 libsuff= shlibsuff= libmagic=32-bit;;
cannam@126 15749 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
cannam@126 15750 libsuff=32 shlibsuff=N32 libmagic=N32;;
cannam@126 15751 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
cannam@126 15752 libsuff=64 shlibsuff=64 libmagic=64-bit;;
cannam@126 15753 *) libsuff= shlibsuff= libmagic=never-match;;
cannam@126 15754 esac
cannam@126 15755 ;;
cannam@126 15756 esac
cannam@126 15757 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
cannam@126 15758 shlibpath_overrides_runpath=no
cannam@126 15759 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
cannam@126 15760 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
cannam@126 15761 hardcode_into_libs=yes
cannam@126 15762 ;;
cannam@126 15763
cannam@126 15764 # No shared lib support for Linux oldld, aout, or coff.
cannam@126 15765 linux*oldld* | linux*aout* | linux*coff*)
cannam@126 15766 dynamic_linker=no
cannam@126 15767 ;;
cannam@126 15768
cannam@126 15769 linux*android*)
cannam@126 15770 version_type=none # Android doesn't support versioned libraries.
cannam@126 15771 need_lib_prefix=no
cannam@126 15772 need_version=no
cannam@126 15773 library_names_spec='$libname$release$shared_ext'
cannam@126 15774 soname_spec='$libname$release$shared_ext'
cannam@126 15775 finish_cmds=
cannam@126 15776 shlibpath_var=LD_LIBRARY_PATH
cannam@126 15777 shlibpath_overrides_runpath=yes
cannam@126 15778
cannam@126 15779 # This implies no fast_install, which is unacceptable.
cannam@126 15780 # Some rework will be needed to allow for fast_install
cannam@126 15781 # before this can be enabled.
cannam@126 15782 hardcode_into_libs=yes
cannam@126 15783
cannam@126 15784 dynamic_linker='Android linker'
cannam@126 15785 # Don't embed -rpath directories since the linker doesn't support them.
cannam@126 15786 hardcode_libdir_flag_spec_CXX='-L$libdir'
cannam@126 15787 ;;
cannam@126 15788
cannam@126 15789 # This must be glibc/ELF.
cannam@126 15790 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cannam@126 15791 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 15792 need_lib_prefix=no
cannam@126 15793 need_version=no
cannam@126 15794 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 15795 soname_spec='$libname$release$shared_ext$major'
cannam@126 15796 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
cannam@126 15797 shlibpath_var=LD_LIBRARY_PATH
cannam@126 15798 shlibpath_overrides_runpath=no
cannam@126 15799
cannam@126 15800 # Some binutils ld are patched to set DT_RUNPATH
cannam@126 15801 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cannam@126 15802 $as_echo_n "(cached) " >&6
cannam@126 15803 else
cannam@126 15804 lt_cv_shlibpath_overrides_runpath=no
cannam@126 15805 save_LDFLAGS=$LDFLAGS
cannam@126 15806 save_libdir=$libdir
cannam@126 15807 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
cannam@126 15808 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
cannam@126 15809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 15810 /* end confdefs.h. */
cannam@126 15811
cannam@126 15812 int
cannam@126 15813 main ()
cannam@126 15814 {
cannam@126 15815
cannam@126 15816 ;
cannam@126 15817 return 0;
cannam@126 15818 }
cannam@126 15819 _ACEOF
cannam@126 15820 if ac_fn_cxx_try_link "$LINENO"; then :
cannam@126 15821 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cannam@126 15822 lt_cv_shlibpath_overrides_runpath=yes
cannam@126 15823 fi
cannam@126 15824 fi
cannam@126 15825 rm -f core conftest.err conftest.$ac_objext \
cannam@126 15826 conftest$ac_exeext conftest.$ac_ext
cannam@126 15827 LDFLAGS=$save_LDFLAGS
cannam@126 15828 libdir=$save_libdir
cannam@126 15829
cannam@126 15830 fi
cannam@126 15831
cannam@126 15832 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cannam@126 15833
cannam@126 15834 # This implies no fast_install, which is unacceptable.
cannam@126 15835 # Some rework will be needed to allow for fast_install
cannam@126 15836 # before this can be enabled.
cannam@126 15837 hardcode_into_libs=yes
cannam@126 15838
cannam@126 15839 # Ideally, we could use ldconfig to report *all* directores which are
cannam@126 15840 # searched for libraries, however this is still not possible. Aside from not
cannam@126 15841 # being certain /sbin/ldconfig is available, command
cannam@126 15842 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
cannam@126 15843 # even though it is searched at run-time. Try to do the best guess by
cannam@126 15844 # appending ld.so.conf contents (and includes) to the search path.
cannam@126 15845 if test -f /etc/ld.so.conf; then
cannam@126 15846 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@126 15847 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
cannam@126 15848 fi
cannam@126 15849
cannam@126 15850 # We used to test for /lib/ld.so.1 and disable shared libraries on
cannam@126 15851 # powerpc, because MkLinux only supported shared libraries with the
cannam@126 15852 # GNU dynamic linker. Since this was broken with cross compilers,
cannam@126 15853 # most powerpc-linux boxes support dynamic linking these days and
cannam@126 15854 # people can always --disable-shared, the test was removed, and we
cannam@126 15855 # assume the GNU/Linux dynamic linker is in use.
cannam@126 15856 dynamic_linker='GNU/Linux ld.so'
cannam@126 15857 ;;
cannam@126 15858
cannam@126 15859 netbsdelf*-gnu)
cannam@126 15860 version_type=linux
cannam@126 15861 need_lib_prefix=no
cannam@126 15862 need_version=no
cannam@126 15863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@126 15864 soname_spec='${libname}${release}${shared_ext}$major'
cannam@126 15865 shlibpath_var=LD_LIBRARY_PATH
cannam@126 15866 shlibpath_overrides_runpath=no
cannam@126 15867 hardcode_into_libs=yes
cannam@126 15868 dynamic_linker='NetBSD ld.elf_so'
cannam@126 15869 ;;
cannam@126 15870
cannam@126 15871 netbsd*)
cannam@126 15872 version_type=sunos
cannam@126 15873 need_lib_prefix=no
cannam@126 15874 need_version=no
cannam@126 15875 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@126 15876 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cannam@126 15877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@126 15878 dynamic_linker='NetBSD (a.out) ld.so'
cannam@126 15879 else
cannam@126 15880 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 15881 soname_spec='$libname$release$shared_ext$major'
cannam@126 15882 dynamic_linker='NetBSD ld.elf_so'
cannam@126 15883 fi
cannam@126 15884 shlibpath_var=LD_LIBRARY_PATH
cannam@126 15885 shlibpath_overrides_runpath=yes
cannam@126 15886 hardcode_into_libs=yes
cannam@126 15887 ;;
cannam@126 15888
cannam@126 15889 newsos6)
cannam@126 15890 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 15891 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 15892 shlibpath_var=LD_LIBRARY_PATH
cannam@126 15893 shlibpath_overrides_runpath=yes
cannam@126 15894 ;;
cannam@126 15895
cannam@126 15896 *nto* | *qnx*)
cannam@126 15897 version_type=qnx
cannam@126 15898 need_lib_prefix=no
cannam@126 15899 need_version=no
cannam@126 15900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 15901 soname_spec='$libname$release$shared_ext$major'
cannam@126 15902 shlibpath_var=LD_LIBRARY_PATH
cannam@126 15903 shlibpath_overrides_runpath=no
cannam@126 15904 hardcode_into_libs=yes
cannam@126 15905 dynamic_linker='ldqnx.so'
cannam@126 15906 ;;
cannam@126 15907
cannam@126 15908 openbsd* | bitrig*)
cannam@126 15909 version_type=sunos
cannam@126 15910 sys_lib_dlsearch_path_spec=/usr/lib
cannam@126 15911 need_lib_prefix=no
cannam@126 15912 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
cannam@126 15913 need_version=no
cannam@126 15914 else
cannam@126 15915 need_version=yes
cannam@126 15916 fi
cannam@126 15917 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cannam@126 15918 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@126 15919 shlibpath_var=LD_LIBRARY_PATH
cannam@126 15920 shlibpath_overrides_runpath=yes
cannam@126 15921 ;;
cannam@126 15922
cannam@126 15923 os2*)
cannam@126 15924 libname_spec='$name'
cannam@126 15925 version_type=windows
cannam@126 15926 shrext_cmds=.dll
cannam@126 15927 need_version=no
cannam@126 15928 need_lib_prefix=no
cannam@126 15929 # OS/2 can only load a DLL with a base name of 8 characters or less.
cannam@126 15930 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
cannam@126 15931 v=$($ECHO $release$versuffix | tr -d .-);
cannam@126 15932 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
cannam@126 15933 $ECHO $n$v`$shared_ext'
cannam@126 15934 library_names_spec='${libname}_dll.$libext'
cannam@126 15935 dynamic_linker='OS/2 ld.exe'
cannam@126 15936 shlibpath_var=BEGINLIBPATH
cannam@126 15937 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
cannam@126 15938 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@126 15939 postinstall_cmds='base_file=`basename \$file`~
cannam@126 15940 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
cannam@126 15941 dldir=$destdir/`dirname \$dlpath`~
cannam@126 15942 test -d \$dldir || mkdir -p \$dldir~
cannam@126 15943 $install_prog $dir/$dlname \$dldir/$dlname~
cannam@126 15944 chmod a+x \$dldir/$dlname~
cannam@126 15945 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
cannam@126 15946 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
cannam@126 15947 fi'
cannam@126 15948 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
cannam@126 15949 dlpath=$dir/\$dldll~
cannam@126 15950 $RM \$dlpath'
cannam@126 15951 ;;
cannam@126 15952
cannam@126 15953 osf3* | osf4* | osf5*)
cannam@126 15954 version_type=osf
cannam@126 15955 need_lib_prefix=no
cannam@126 15956 need_version=no
cannam@126 15957 soname_spec='$libname$release$shared_ext$major'
cannam@126 15958 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 15959 shlibpath_var=LD_LIBRARY_PATH
cannam@126 15960 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
cannam@126 15961 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@126 15962 ;;
cannam@126 15963
cannam@126 15964 rdos*)
cannam@126 15965 dynamic_linker=no
cannam@126 15966 ;;
cannam@126 15967
cannam@126 15968 solaris*)
cannam@126 15969 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 15970 need_lib_prefix=no
cannam@126 15971 need_version=no
cannam@126 15972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 15973 soname_spec='$libname$release$shared_ext$major'
cannam@126 15974 shlibpath_var=LD_LIBRARY_PATH
cannam@126 15975 shlibpath_overrides_runpath=yes
cannam@126 15976 hardcode_into_libs=yes
cannam@126 15977 # ldd complains unless libraries are executable
cannam@126 15978 postinstall_cmds='chmod +x $lib'
cannam@126 15979 ;;
cannam@126 15980
cannam@126 15981 sunos4*)
cannam@126 15982 version_type=sunos
cannam@126 15983 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cannam@126 15984 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
cannam@126 15985 shlibpath_var=LD_LIBRARY_PATH
cannam@126 15986 shlibpath_overrides_runpath=yes
cannam@126 15987 if test yes = "$with_gnu_ld"; then
cannam@126 15988 need_lib_prefix=no
cannam@126 15989 fi
cannam@126 15990 need_version=yes
cannam@126 15991 ;;
cannam@126 15992
cannam@126 15993 sysv4 | sysv4.3*)
cannam@126 15994 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 15995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 15996 soname_spec='$libname$release$shared_ext$major'
cannam@126 15997 shlibpath_var=LD_LIBRARY_PATH
cannam@126 15998 case $host_vendor in
cannam@126 15999 sni)
cannam@126 16000 shlibpath_overrides_runpath=no
cannam@126 16001 need_lib_prefix=no
cannam@126 16002 runpath_var=LD_RUN_PATH
cannam@126 16003 ;;
cannam@126 16004 siemens)
cannam@126 16005 need_lib_prefix=no
cannam@126 16006 ;;
cannam@126 16007 motorola)
cannam@126 16008 need_lib_prefix=no
cannam@126 16009 need_version=no
cannam@126 16010 shlibpath_overrides_runpath=no
cannam@126 16011 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
cannam@126 16012 ;;
cannam@126 16013 esac
cannam@126 16014 ;;
cannam@126 16015
cannam@126 16016 sysv4*MP*)
cannam@126 16017 if test -d /usr/nec; then
cannam@126 16018 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 16019 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
cannam@126 16020 soname_spec='$libname$shared_ext.$major'
cannam@126 16021 shlibpath_var=LD_LIBRARY_PATH
cannam@126 16022 fi
cannam@126 16023 ;;
cannam@126 16024
cannam@126 16025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
cannam@126 16026 version_type=sco
cannam@126 16027 need_lib_prefix=no
cannam@126 16028 need_version=no
cannam@126 16029 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
cannam@126 16030 soname_spec='$libname$release$shared_ext$major'
cannam@126 16031 shlibpath_var=LD_LIBRARY_PATH
cannam@126 16032 shlibpath_overrides_runpath=yes
cannam@126 16033 hardcode_into_libs=yes
cannam@126 16034 if test yes = "$with_gnu_ld"; then
cannam@126 16035 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
cannam@126 16036 else
cannam@126 16037 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
cannam@126 16038 case $host_os in
cannam@126 16039 sco3.2v5*)
cannam@126 16040 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
cannam@126 16041 ;;
cannam@126 16042 esac
cannam@126 16043 fi
cannam@126 16044 sys_lib_dlsearch_path_spec='/usr/lib'
cannam@126 16045 ;;
cannam@126 16046
cannam@126 16047 tpf*)
cannam@126 16048 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cannam@126 16049 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 16050 need_lib_prefix=no
cannam@126 16051 need_version=no
cannam@126 16052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 16053 shlibpath_var=LD_LIBRARY_PATH
cannam@126 16054 shlibpath_overrides_runpath=no
cannam@126 16055 hardcode_into_libs=yes
cannam@126 16056 ;;
cannam@126 16057
cannam@126 16058 uts4*)
cannam@126 16059 version_type=linux # correct to gnu/linux during the next big refactor
cannam@126 16060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cannam@126 16061 soname_spec='$libname$release$shared_ext$major'
cannam@126 16062 shlibpath_var=LD_LIBRARY_PATH
cannam@126 16063 ;;
cannam@126 16064
cannam@126 16065 *)
cannam@126 16066 dynamic_linker=no
cannam@126 16067 ;;
cannam@126 16068 esac
cannam@126 16069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cannam@126 16070 $as_echo "$dynamic_linker" >&6; }
cannam@126 16071 test no = "$dynamic_linker" && can_build_shared=no
cannam@126 16072
cannam@126 16073 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
cannam@126 16074 if test yes = "$GCC"; then
cannam@126 16075 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
cannam@126 16076 fi
cannam@126 16077
cannam@126 16078 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
cannam@126 16079 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
cannam@126 16080 fi
cannam@126 16081
cannam@126 16082 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
cannam@126 16083 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
cannam@126 16084 fi
cannam@126 16085
cannam@126 16086 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
cannam@126 16087 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
cannam@126 16088
cannam@126 16089 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
cannam@126 16090 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
cannam@126 16091
cannam@126 16092 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
cannam@126 16093 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
cannam@126 16094
cannam@126 16095
cannam@126 16096
cannam@126 16097
cannam@126 16098
cannam@126 16099
cannam@126 16100
cannam@126 16101
cannam@126 16102
cannam@126 16103
cannam@126 16104
cannam@126 16105
cannam@126 16106
cannam@126 16107
cannam@126 16108
cannam@126 16109
cannam@126 16110
cannam@126 16111
cannam@126 16112
cannam@126 16113
cannam@126 16114
cannam@126 16115
cannam@126 16116
cannam@126 16117
cannam@126 16118
cannam@126 16119
cannam@126 16120
cannam@126 16121
cannam@126 16122
cannam@126 16123
cannam@126 16124
cannam@126 16125
cannam@126 16126
cannam@126 16127
cannam@126 16128
cannam@126 16129
cannam@126 16130
cannam@126 16131
cannam@126 16132
cannam@126 16133
cannam@126 16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cannam@126 16135 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
cannam@126 16136 hardcode_action_CXX=
cannam@126 16137 if test -n "$hardcode_libdir_flag_spec_CXX" ||
cannam@126 16138 test -n "$runpath_var_CXX" ||
cannam@126 16139 test yes = "$hardcode_automatic_CXX"; then
cannam@126 16140
cannam@126 16141 # We can hardcode non-existent directories.
cannam@126 16142 if test no != "$hardcode_direct_CXX" &&
cannam@126 16143 # If the only mechanism to avoid hardcoding is shlibpath_var, we
cannam@126 16144 # have to relink, otherwise we might link with an installed library
cannam@126 16145 # when we should be linking with a yet-to-be-installed one
cannam@126 16146 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
cannam@126 16147 test no != "$hardcode_minus_L_CXX"; then
cannam@126 16148 # Linking always hardcodes the temporary library directory.
cannam@126 16149 hardcode_action_CXX=relink
cannam@126 16150 else
cannam@126 16151 # We can link without hardcoding, and we can hardcode nonexisting dirs.
cannam@126 16152 hardcode_action_CXX=immediate
cannam@126 16153 fi
cannam@126 16154 else
cannam@126 16155 # We cannot hardcode anything, or else we can only hardcode existing
cannam@126 16156 # directories.
cannam@126 16157 hardcode_action_CXX=unsupported
cannam@126 16158 fi
cannam@126 16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cannam@126 16160 $as_echo "$hardcode_action_CXX" >&6; }
cannam@126 16161
cannam@126 16162 if test relink = "$hardcode_action_CXX" ||
cannam@126 16163 test yes = "$inherit_rpath_CXX"; then
cannam@126 16164 # Fast installation is not supported
cannam@126 16165 enable_fast_install=no
cannam@126 16166 elif test yes = "$shlibpath_overrides_runpath" ||
cannam@126 16167 test no = "$enable_shared"; then
cannam@126 16168 # Fast installation is not necessary
cannam@126 16169 enable_fast_install=needless
cannam@126 16170 fi
cannam@126 16171
cannam@126 16172
cannam@126 16173
cannam@126 16174
cannam@126 16175
cannam@126 16176
cannam@126 16177
cannam@126 16178 fi # test -n "$compiler"
cannam@126 16179
cannam@126 16180 CC=$lt_save_CC
cannam@126 16181 CFLAGS=$lt_save_CFLAGS
cannam@126 16182 LDCXX=$LD
cannam@126 16183 LD=$lt_save_LD
cannam@126 16184 GCC=$lt_save_GCC
cannam@126 16185 with_gnu_ld=$lt_save_with_gnu_ld
cannam@126 16186 lt_cv_path_LDCXX=$lt_cv_path_LD
cannam@126 16187 lt_cv_path_LD=$lt_save_path_LD
cannam@126 16188 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
cannam@126 16189 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
cannam@126 16190 fi # test yes != "$_lt_caught_CXX_error"
cannam@126 16191
cannam@126 16192 ac_ext=c
cannam@126 16193 ac_cpp='$CPP $CPPFLAGS'
cannam@126 16194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@126 16195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@126 16196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@126 16197
cannam@126 16198
cannam@126 16199
cannam@126 16200
cannam@126 16201
cannam@126 16202
cannam@126 16203
cannam@126 16204
cannam@126 16205
cannam@126 16206
cannam@126 16207
cannam@126 16208
cannam@126 16209
cannam@126 16210
cannam@126 16211
cannam@126 16212 ac_config_commands="$ac_config_commands libtool"
cannam@126 16213
cannam@126 16214
cannam@126 16215
cannam@126 16216
cannam@126 16217 # Only expand once:
cannam@126 16218
cannam@126 16219
cannam@126 16220 if test -n "$ac_tool_prefix"; then
cannam@126 16221 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
cannam@126 16222 set dummy ${ac_tool_prefix}windres; ac_word=$2
cannam@126 16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 16224 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 16225 if ${ac_cv_prog_RC+:} false; then :
cannam@126 16226 $as_echo_n "(cached) " >&6
cannam@126 16227 else
cannam@126 16228 if test -n "$RC"; then
cannam@126 16229 ac_cv_prog_RC="$RC" # Let the user override the test.
cannam@126 16230 else
cannam@126 16231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 16232 for as_dir in $PATH
cannam@126 16233 do
cannam@126 16234 IFS=$as_save_IFS
cannam@126 16235 test -z "$as_dir" && as_dir=.
cannam@126 16236 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 16237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 16238 ac_cv_prog_RC="${ac_tool_prefix}windres"
cannam@126 16239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 16240 break 2
cannam@126 16241 fi
cannam@126 16242 done
cannam@126 16243 done
cannam@126 16244 IFS=$as_save_IFS
cannam@126 16245
cannam@126 16246 fi
cannam@126 16247 fi
cannam@126 16248 RC=$ac_cv_prog_RC
cannam@126 16249 if test -n "$RC"; then
cannam@126 16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
cannam@126 16251 $as_echo "$RC" >&6; }
cannam@126 16252 else
cannam@126 16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 16254 $as_echo "no" >&6; }
cannam@126 16255 fi
cannam@126 16256
cannam@126 16257
cannam@126 16258 fi
cannam@126 16259 if test -z "$ac_cv_prog_RC"; then
cannam@126 16260 ac_ct_RC=$RC
cannam@126 16261 # Extract the first word of "windres", so it can be a program name with args.
cannam@126 16262 set dummy windres; ac_word=$2
cannam@126 16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 16264 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 16265 if ${ac_cv_prog_ac_ct_RC+:} false; then :
cannam@126 16266 $as_echo_n "(cached) " >&6
cannam@126 16267 else
cannam@126 16268 if test -n "$ac_ct_RC"; then
cannam@126 16269 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
cannam@126 16270 else
cannam@126 16271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 16272 for as_dir in $PATH
cannam@126 16273 do
cannam@126 16274 IFS=$as_save_IFS
cannam@126 16275 test -z "$as_dir" && as_dir=.
cannam@126 16276 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 16277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 16278 ac_cv_prog_ac_ct_RC="windres"
cannam@126 16279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 16280 break 2
cannam@126 16281 fi
cannam@126 16282 done
cannam@126 16283 done
cannam@126 16284 IFS=$as_save_IFS
cannam@126 16285
cannam@126 16286 fi
cannam@126 16287 fi
cannam@126 16288 ac_ct_RC=$ac_cv_prog_ac_ct_RC
cannam@126 16289 if test -n "$ac_ct_RC"; then
cannam@126 16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
cannam@126 16291 $as_echo "$ac_ct_RC" >&6; }
cannam@126 16292 else
cannam@126 16293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 16294 $as_echo "no" >&6; }
cannam@126 16295 fi
cannam@126 16296
cannam@126 16297 if test "x$ac_ct_RC" = x; then
cannam@126 16298 RC=""
cannam@126 16299 else
cannam@126 16300 case $cross_compiling:$ac_tool_warned in
cannam@126 16301 yes:)
cannam@126 16302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@126 16303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@126 16304 ac_tool_warned=yes ;;
cannam@126 16305 esac
cannam@126 16306 RC=$ac_ct_RC
cannam@126 16307 fi
cannam@126 16308 else
cannam@126 16309 RC="$ac_cv_prog_RC"
cannam@126 16310 fi
cannam@126 16311
cannam@126 16312
cannam@126 16313
cannam@126 16314 # Source file extension for RC test sources.
cannam@126 16315 ac_ext=rc
cannam@126 16316
cannam@126 16317 # Object file extension for compiled RC test sources.
cannam@126 16318 objext=o
cannam@126 16319 objext_RC=$objext
cannam@126 16320
cannam@126 16321 # Code to be used in simple compile tests
cannam@126 16322 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
cannam@126 16323
cannam@126 16324 # Code to be used in simple link tests
cannam@126 16325 lt_simple_link_test_code=$lt_simple_compile_test_code
cannam@126 16326
cannam@126 16327 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
cannam@126 16328
cannam@126 16329
cannam@126 16330
cannam@126 16331
cannam@126 16332
cannam@126 16333
cannam@126 16334 # If no C compiler was specified, use CC.
cannam@126 16335 LTCC=${LTCC-"$CC"}
cannam@126 16336
cannam@126 16337 # If no C compiler flags were specified, use CFLAGS.
cannam@126 16338 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cannam@126 16339
cannam@126 16340 # Allow CC to be a program name with arguments.
cannam@126 16341 compiler=$CC
cannam@126 16342
cannam@126 16343
cannam@126 16344 # save warnings/boilerplate of simple test code
cannam@126 16345 ac_outfile=conftest.$ac_objext
cannam@126 16346 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
cannam@126 16347 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@126 16348 _lt_compiler_boilerplate=`cat conftest.err`
cannam@126 16349 $RM conftest*
cannam@126 16350
cannam@126 16351 ac_outfile=conftest.$ac_objext
cannam@126 16352 echo "$lt_simple_link_test_code" >conftest.$ac_ext
cannam@126 16353 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@126 16354 _lt_linker_boilerplate=`cat conftest.err`
cannam@126 16355 $RM -r conftest*
cannam@126 16356
cannam@126 16357
cannam@126 16358 # Allow CC to be a program name with arguments.
cannam@126 16359 lt_save_CC=$CC
cannam@126 16360 lt_save_CFLAGS=$CFLAGS
cannam@126 16361 lt_save_GCC=$GCC
cannam@126 16362 GCC=
cannam@126 16363 CC=${RC-"windres"}
cannam@126 16364 CFLAGS=
cannam@126 16365 compiler=$CC
cannam@126 16366 compiler_RC=$CC
cannam@126 16367 func_cc_basename $compiler
cannam@126 16368 cc_basename=$func_cc_basename_result
cannam@126 16369
cannam@126 16370 lt_cv_prog_compiler_c_o_RC=yes
cannam@126 16371
cannam@126 16372 if test -n "$compiler"; then
cannam@126 16373 :
cannam@126 16374
cannam@126 16375
cannam@126 16376
cannam@126 16377 fi
cannam@126 16378
cannam@126 16379 GCC=$lt_save_GCC
cannam@126 16380 ac_ext=c
cannam@126 16381 ac_cpp='$CPP $CPPFLAGS'
cannam@126 16382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@126 16383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@126 16384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@126 16385
cannam@126 16386 CC=$lt_save_CC
cannam@126 16387 CFLAGS=$lt_save_CFLAGS
cannam@126 16388
cannam@126 16389
cannam@126 16390
cannam@126 16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cannam@126 16392 $as_echo_n "checking whether ln -s works... " >&6; }
cannam@126 16393 LN_S=$as_ln_s
cannam@126 16394 if test "$LN_S" = "ln -s"; then
cannam@126 16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@126 16396 $as_echo "yes" >&6; }
cannam@126 16397 else
cannam@126 16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cannam@126 16399 $as_echo "no, using $LN_S" >&6; }
cannam@126 16400 fi
cannam@126 16401
cannam@126 16402
cannam@126 16403 #------------------------------------------------------------------------------------
cannam@126 16404 # Rules for library version information:
cannam@126 16405 #
cannam@126 16406 # 1. Start with version information of `0:0:0' for each libtool library.
cannam@126 16407 # 2. Update the version information only immediately before a public release of
cannam@126 16408 # your software. More frequent updates are unnecessary, and only guarantee
cannam@126 16409 # that the current interface number gets larger faster.
cannam@126 16410 # 3. If the library source code has changed at all since the last update, then
cannam@126 16411 # increment revision (`c:r:a' becomes `c:r+1:a').
cannam@126 16412 # 4. If any interfaces have been added, removed, or changed since the last update,
cannam@126 16413 # increment current, and set revision to 0.
cannam@126 16414 # 5. If any interfaces have been added since the last public release, then increment
cannam@126 16415 # age.
cannam@126 16416 # 6. If any interfaces have been removed since the last public release, then set age
cannam@126 16417 # to 0.
cannam@126 16418
cannam@126 16419 SHARED_VERSION_INFO="1:8:1"
cannam@126 16420
cannam@126 16421
cannam@126 16422
cannam@126 16423
cannam@126 16424
cannam@126 16425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cannam@126 16426 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
cannam@126 16427 set x ${MAKE-make}
cannam@126 16428 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cannam@126 16429 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cannam@126 16430 $as_echo_n "(cached) " >&6
cannam@126 16431 else
cannam@126 16432 cat >conftest.make <<\_ACEOF
cannam@126 16433 SHELL = /bin/sh
cannam@126 16434 all:
cannam@126 16435 @echo '@@@%%%=$(MAKE)=@@@%%%'
cannam@126 16436 _ACEOF
cannam@126 16437 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cannam@126 16438 case `${MAKE-make} -f conftest.make 2>/dev/null` in
cannam@126 16439 *@@@%%%=?*=@@@%%%*)
cannam@126 16440 eval ac_cv_prog_make_${ac_make}_set=yes;;
cannam@126 16441 *)
cannam@126 16442 eval ac_cv_prog_make_${ac_make}_set=no;;
cannam@126 16443 esac
cannam@126 16444 rm -f conftest.make
cannam@126 16445 fi
cannam@126 16446 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cannam@126 16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@126 16448 $as_echo "yes" >&6; }
cannam@126 16449 SET_MAKE=
cannam@126 16450 else
cannam@126 16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 16452 $as_echo "no" >&6; }
cannam@126 16453 SET_MAKE="MAKE=${MAKE-make}"
cannam@126 16454 fi
cannam@126 16455
cannam@126 16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cannam@126 16457 $as_echo_n "checking whether ln -s works... " >&6; }
cannam@126 16458 LN_S=$as_ln_s
cannam@126 16459 if test "$LN_S" = "ln -s"; then
cannam@126 16460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@126 16461 $as_echo "yes" >&6; }
cannam@126 16462 else
cannam@126 16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cannam@126 16464 $as_echo "no, using $LN_S" >&6; }
cannam@126 16465 fi
cannam@126 16466
cannam@126 16467
cannam@126 16468
cannam@126 16469 if test "x-$build_os-$host_os-$target_os" = x-mingw32-mingw32-mingw32 ; then
cannam@126 16470 # Extract the first word of "dlltool", so it can be a program name with args.
cannam@126 16471 set dummy dlltool; ac_word=$2
cannam@126 16472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 16473 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 16474 if ${ac_cv_prog_DLLTOOL+:} false; then :
cannam@126 16475 $as_echo_n "(cached) " >&6
cannam@126 16476 else
cannam@126 16477 if test -n "$DLLTOOL"; then
cannam@126 16478 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
cannam@126 16479 else
cannam@126 16480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 16481 for as_dir in $PATH
cannam@126 16482 do
cannam@126 16483 IFS=$as_save_IFS
cannam@126 16484 test -z "$as_dir" && as_dir=.
cannam@126 16485 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 16486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 16487 ac_cv_prog_DLLTOOL="dlltool"
cannam@126 16488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 16489 break 2
cannam@126 16490 fi
cannam@126 16491 done
cannam@126 16492 done
cannam@126 16493 IFS=$as_save_IFS
cannam@126 16494
cannam@126 16495 fi
cannam@126 16496 fi
cannam@126 16497 DLLTOOL=$ac_cv_prog_DLLTOOL
cannam@126 16498 if test -n "$DLLTOOL"; then
cannam@126 16499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cannam@126 16500 $as_echo "$DLLTOOL" >&6; }
cannam@126 16501 else
cannam@126 16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 16503 $as_echo "no" >&6; }
cannam@126 16504 fi
cannam@126 16505
cannam@126 16506
cannam@126 16507 # Extract the first word of "dllwrap", so it can be a program name with args.
cannam@126 16508 set dummy dllwrap; ac_word=$2
cannam@126 16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 16510 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 16511 if ${ac_cv_prog_DLLWRAP+:} false; then :
cannam@126 16512 $as_echo_n "(cached) " >&6
cannam@126 16513 else
cannam@126 16514 if test -n "$DLLWRAP"; then
cannam@126 16515 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
cannam@126 16516 else
cannam@126 16517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 16518 for as_dir in $PATH
cannam@126 16519 do
cannam@126 16520 IFS=$as_save_IFS
cannam@126 16521 test -z "$as_dir" && as_dir=.
cannam@126 16522 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 16523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 16524 ac_cv_prog_DLLWRAP="dllwrap"
cannam@126 16525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 16526 break 2
cannam@126 16527 fi
cannam@126 16528 done
cannam@126 16529 done
cannam@126 16530 IFS=$as_save_IFS
cannam@126 16531
cannam@126 16532 fi
cannam@126 16533 fi
cannam@126 16534 DLLWRAP=$ac_cv_prog_DLLWRAP
cannam@126 16535 if test -n "$DLLWRAP"; then
cannam@126 16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
cannam@126 16537 $as_echo "$DLLWRAP" >&6; }
cannam@126 16538 else
cannam@126 16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 16540 $as_echo "no" >&6; }
cannam@126 16541 fi
cannam@126 16542
cannam@126 16543
cannam@126 16544 # Extract the first word of "pexports", so it can be a program name with args.
cannam@126 16545 set dummy pexports; ac_word=$2
cannam@126 16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 16547 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 16548 if ${ac_cv_prog_PEXPORTS+:} false; then :
cannam@126 16549 $as_echo_n "(cached) " >&6
cannam@126 16550 else
cannam@126 16551 if test -n "$PEXPORTS"; then
cannam@126 16552 ac_cv_prog_PEXPORTS="$PEXPORTS" # Let the user override the test.
cannam@126 16553 else
cannam@126 16554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 16555 for as_dir in $PATH
cannam@126 16556 do
cannam@126 16557 IFS=$as_save_IFS
cannam@126 16558 test -z "$as_dir" && as_dir=.
cannam@126 16559 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 16560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 16561 ac_cv_prog_PEXPORTS="pexports"
cannam@126 16562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 16563 break 2
cannam@126 16564 fi
cannam@126 16565 done
cannam@126 16566 done
cannam@126 16567 IFS=$as_save_IFS
cannam@126 16568
cannam@126 16569 fi
cannam@126 16570 fi
cannam@126 16571 PEXPORTS=$ac_cv_prog_PEXPORTS
cannam@126 16572 if test -n "$PEXPORTS"; then
cannam@126 16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PEXPORTS" >&5
cannam@126 16574 $as_echo "$PEXPORTS" >&6; }
cannam@126 16575 else
cannam@126 16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 16577 $as_echo "no" >&6; }
cannam@126 16578 fi
cannam@126 16579
cannam@126 16580
cannam@126 16581 fi
cannam@126 16582
cannam@126 16583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cannam@126 16584 $as_echo_n "checking for ANSI C header files... " >&6; }
cannam@126 16585 if ${ac_cv_header_stdc+:} false; then :
cannam@126 16586 $as_echo_n "(cached) " >&6
cannam@126 16587 else
cannam@126 16588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 16589 /* end confdefs.h. */
cannam@126 16590 #include <stdlib.h>
cannam@126 16591 #include <stdarg.h>
cannam@126 16592 #include <string.h>
cannam@126 16593 #include <float.h>
cannam@126 16594
cannam@126 16595 int
cannam@126 16596 main ()
cannam@126 16597 {
cannam@126 16598
cannam@126 16599 ;
cannam@126 16600 return 0;
cannam@126 16601 }
cannam@126 16602 _ACEOF
cannam@126 16603 if ac_fn_c_try_compile "$LINENO"; then :
cannam@126 16604 ac_cv_header_stdc=yes
cannam@126 16605 else
cannam@126 16606 ac_cv_header_stdc=no
cannam@126 16607 fi
cannam@126 16608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@126 16609
cannam@126 16610 if test $ac_cv_header_stdc = yes; then
cannam@126 16611 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cannam@126 16612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 16613 /* end confdefs.h. */
cannam@126 16614 #include <string.h>
cannam@126 16615
cannam@126 16616 _ACEOF
cannam@126 16617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@126 16618 $EGREP "memchr" >/dev/null 2>&1; then :
cannam@126 16619
cannam@126 16620 else
cannam@126 16621 ac_cv_header_stdc=no
cannam@126 16622 fi
cannam@126 16623 rm -f conftest*
cannam@126 16624
cannam@126 16625 fi
cannam@126 16626
cannam@126 16627 if test $ac_cv_header_stdc = yes; then
cannam@126 16628 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cannam@126 16629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 16630 /* end confdefs.h. */
cannam@126 16631 #include <stdlib.h>
cannam@126 16632
cannam@126 16633 _ACEOF
cannam@126 16634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@126 16635 $EGREP "free" >/dev/null 2>&1; then :
cannam@126 16636
cannam@126 16637 else
cannam@126 16638 ac_cv_header_stdc=no
cannam@126 16639 fi
cannam@126 16640 rm -f conftest*
cannam@126 16641
cannam@126 16642 fi
cannam@126 16643
cannam@126 16644 if test $ac_cv_header_stdc = yes; then
cannam@126 16645 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cannam@126 16646 if test "$cross_compiling" = yes; then :
cannam@126 16647 :
cannam@126 16648 else
cannam@126 16649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 16650 /* end confdefs.h. */
cannam@126 16651 #include <ctype.h>
cannam@126 16652 #include <stdlib.h>
cannam@126 16653 #if ((' ' & 0x0FF) == 0x020)
cannam@126 16654 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
cannam@126 16655 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
cannam@126 16656 #else
cannam@126 16657 # define ISLOWER(c) \
cannam@126 16658 (('a' <= (c) && (c) <= 'i') \
cannam@126 16659 || ('j' <= (c) && (c) <= 'r') \
cannam@126 16660 || ('s' <= (c) && (c) <= 'z'))
cannam@126 16661 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
cannam@126 16662 #endif
cannam@126 16663
cannam@126 16664 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
cannam@126 16665 int
cannam@126 16666 main ()
cannam@126 16667 {
cannam@126 16668 int i;
cannam@126 16669 for (i = 0; i < 256; i++)
cannam@126 16670 if (XOR (islower (i), ISLOWER (i))
cannam@126 16671 || toupper (i) != TOUPPER (i))
cannam@126 16672 return 2;
cannam@126 16673 return 0;
cannam@126 16674 }
cannam@126 16675 _ACEOF
cannam@126 16676 if ac_fn_c_try_run "$LINENO"; then :
cannam@126 16677
cannam@126 16678 else
cannam@126 16679 ac_cv_header_stdc=no
cannam@126 16680 fi
cannam@126 16681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@126 16682 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@126 16683 fi
cannam@126 16684
cannam@126 16685 fi
cannam@126 16686 fi
cannam@126 16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cannam@126 16688 $as_echo "$ac_cv_header_stdc" >&6; }
cannam@126 16689 if test $ac_cv_header_stdc = yes; then
cannam@126 16690
cannam@126 16691 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
cannam@126 16692
cannam@126 16693 fi
cannam@126 16694
cannam@126 16695
cannam@126 16696 for ac_header in stdint.h sys/times.h
cannam@126 16697 do :
cannam@126 16698 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cannam@126 16699 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cannam@126 16700 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cannam@126 16701 cat >>confdefs.h <<_ACEOF
cannam@126 16702 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
cannam@126 16703 _ACEOF
cannam@126 16704
cannam@126 16705 fi
cannam@126 16706
cannam@126 16707 done
cannam@126 16708
cannam@126 16709
cannam@126 16710 #====================================================================================
cannam@126 16711 # Couple of initializations here. Fill in real values later.
cannam@126 16712
cannam@126 16713 SHLIB_VERSION_ARG=""
cannam@126 16714
cannam@126 16715 #====================================================================================
cannam@126 16716 # Finished checking, handle options.
cannam@126 16717
cannam@126 16718 # Check whether --enable-gcc-werror was given.
cannam@126 16719 if test "${enable_gcc_werror+set}" = set; then :
cannam@126 16720 enableval=$enable_gcc_werror; ac_arg_gcc_werror=yes
cannam@126 16721 else
cannam@126 16722 ac_arg_gcc_werror=no
cannam@126 16723 fi
cannam@126 16724
cannam@126 16725
cannam@126 16726 # Check whether --enable-gcc-pipe was given.
cannam@126 16727 if test "${enable_gcc_pipe+set}" = set; then :
cannam@126 16728 enableval=$enable_gcc_pipe; ac_arg_gcc_pipe="N"
cannam@126 16729 else
cannam@126 16730 ac_arg_gcc_pipe="Y"
cannam@126 16731 fi
cannam@126 16732
cannam@126 16733
cannam@126 16734 # Check whether --enable-gcc-opt was given.
cannam@126 16735 if test "${enable_gcc_opt+set}" = set; then :
cannam@126 16736 enableval=$enable_gcc_opt; ac_arg_gcc_opt="N"
cannam@126 16737 else
cannam@126 16738 ac_arg_gcc_opt="Y"
cannam@126 16739 fi
cannam@126 16740
cannam@126 16741
cannam@126 16742 # Check whether --enable-fftw was given.
cannam@126 16743 if test "${enable_fftw+set}" = set; then :
cannam@126 16744 enableval=$enable_fftw; ac_arg_fftw="N"
cannam@126 16745 else
cannam@126 16746 ac_arg_fftw="Y"
cannam@126 16747 fi
cannam@126 16748
cannam@126 16749
cannam@126 16750 # Check whether --enable-cpu-clip was given.
cannam@126 16751 if test "${enable_cpu_clip+set}" = set; then :
cannam@126 16752 enableval=$enable_cpu_clip; ac_arg_cpu_clip="N"
cannam@126 16753 else
cannam@126 16754 ac_arg_cpu_clip="Y"
cannam@126 16755 fi
cannam@126 16756
cannam@126 16757
cannam@126 16758 #====================================================================================
cannam@126 16759 # Check types and their sizes.
cannam@126 16760
cannam@126 16761 # The cast to long int works around a bug in the HP C Compiler
cannam@126 16762 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@126 16763 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@126 16764 # This bug is HP SR number 8606223364.
cannam@126 16765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
cannam@126 16766 $as_echo_n "checking size of int... " >&6; }
cannam@126 16767 if ${ac_cv_sizeof_int+:} false; then :
cannam@126 16768 $as_echo_n "(cached) " >&6
cannam@126 16769 else
cannam@126 16770 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
cannam@126 16771
cannam@126 16772 else
cannam@126 16773 if test "$ac_cv_type_int" = yes; then
cannam@126 16774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@126 16775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@126 16776 as_fn_error 77 "cannot compute sizeof (int)
cannam@126 16777 See \`config.log' for more details" "$LINENO" 5; }
cannam@126 16778 else
cannam@126 16779 ac_cv_sizeof_int=0
cannam@126 16780 fi
cannam@126 16781 fi
cannam@126 16782
cannam@126 16783 fi
cannam@126 16784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
cannam@126 16785 $as_echo "$ac_cv_sizeof_int" >&6; }
cannam@126 16786
cannam@126 16787
cannam@126 16788
cannam@126 16789 cat >>confdefs.h <<_ACEOF
cannam@126 16790 #define SIZEOF_INT $ac_cv_sizeof_int
cannam@126 16791 _ACEOF
cannam@126 16792
cannam@126 16793
cannam@126 16794 # The cast to long int works around a bug in the HP C Compiler
cannam@126 16795 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@126 16796 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@126 16797 # This bug is HP SR number 8606223364.
cannam@126 16798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
cannam@126 16799 $as_echo_n "checking size of long... " >&6; }
cannam@126 16800 if ${ac_cv_sizeof_long+:} false; then :
cannam@126 16801 $as_echo_n "(cached) " >&6
cannam@126 16802 else
cannam@126 16803 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
cannam@126 16804
cannam@126 16805 else
cannam@126 16806 if test "$ac_cv_type_long" = yes; then
cannam@126 16807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@126 16808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@126 16809 as_fn_error 77 "cannot compute sizeof (long)
cannam@126 16810 See \`config.log' for more details" "$LINENO" 5; }
cannam@126 16811 else
cannam@126 16812 ac_cv_sizeof_long=0
cannam@126 16813 fi
cannam@126 16814 fi
cannam@126 16815
cannam@126 16816 fi
cannam@126 16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
cannam@126 16818 $as_echo "$ac_cv_sizeof_long" >&6; }
cannam@126 16819
cannam@126 16820
cannam@126 16821
cannam@126 16822 cat >>confdefs.h <<_ACEOF
cannam@126 16823 #define SIZEOF_LONG $ac_cv_sizeof_long
cannam@126 16824 _ACEOF
cannam@126 16825
cannam@126 16826
cannam@126 16827 # The cast to long int works around a bug in the HP C Compiler
cannam@126 16828 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@126 16829 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@126 16830 # This bug is HP SR number 8606223364.
cannam@126 16831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
cannam@126 16832 $as_echo_n "checking size of float... " >&6; }
cannam@126 16833 if ${ac_cv_sizeof_float+:} false; then :
cannam@126 16834 $as_echo_n "(cached) " >&6
cannam@126 16835 else
cannam@126 16836 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
cannam@126 16837
cannam@126 16838 else
cannam@126 16839 if test "$ac_cv_type_float" = yes; then
cannam@126 16840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@126 16841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@126 16842 as_fn_error 77 "cannot compute sizeof (float)
cannam@126 16843 See \`config.log' for more details" "$LINENO" 5; }
cannam@126 16844 else
cannam@126 16845 ac_cv_sizeof_float=0
cannam@126 16846 fi
cannam@126 16847 fi
cannam@126 16848
cannam@126 16849 fi
cannam@126 16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
cannam@126 16851 $as_echo "$ac_cv_sizeof_float" >&6; }
cannam@126 16852
cannam@126 16853
cannam@126 16854
cannam@126 16855 cat >>confdefs.h <<_ACEOF
cannam@126 16856 #define SIZEOF_FLOAT $ac_cv_sizeof_float
cannam@126 16857 _ACEOF
cannam@126 16858
cannam@126 16859
cannam@126 16860 # The cast to long int works around a bug in the HP C Compiler
cannam@126 16861 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@126 16862 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@126 16863 # This bug is HP SR number 8606223364.
cannam@126 16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
cannam@126 16865 $as_echo_n "checking size of double... " >&6; }
cannam@126 16866 if ${ac_cv_sizeof_double+:} false; then :
cannam@126 16867 $as_echo_n "(cached) " >&6
cannam@126 16868 else
cannam@126 16869 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
cannam@126 16870
cannam@126 16871 else
cannam@126 16872 if test "$ac_cv_type_double" = yes; then
cannam@126 16873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@126 16874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@126 16875 as_fn_error 77 "cannot compute sizeof (double)
cannam@126 16876 See \`config.log' for more details" "$LINENO" 5; }
cannam@126 16877 else
cannam@126 16878 ac_cv_sizeof_double=0
cannam@126 16879 fi
cannam@126 16880 fi
cannam@126 16881
cannam@126 16882 fi
cannam@126 16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
cannam@126 16884 $as_echo "$ac_cv_sizeof_double" >&6; }
cannam@126 16885
cannam@126 16886
cannam@126 16887
cannam@126 16888 cat >>confdefs.h <<_ACEOF
cannam@126 16889 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
cannam@126 16890 _ACEOF
cannam@126 16891
cannam@126 16892
cannam@126 16893
cannam@126 16894 #====================================================================================
cannam@126 16895 # Determine endian-ness of target processor.
cannam@126 16896
cannam@126 16897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor byte ordering" >&5
cannam@126 16898 $as_echo_n "checking processor byte ordering... " >&6; }
cannam@126 16899 if ${ac_cv_c_byte_order+:} false; then :
cannam@126 16900 $as_echo_n "(cached) " >&6
cannam@126 16901 else
cannam@126 16902 # Initialize to unknown
cannam@126 16903 ac_cv_c_byte_order=unknown
cannam@126 16904
cannam@126 16905 if test x$ac_cv_header_endian_h = xyes ; then
cannam@126 16906
cannam@126 16907 # First try <endian.h> which should set BYTE_ORDER.
cannam@126 16908
cannam@126 16909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 16910 /* end confdefs.h. */
cannam@126 16911
cannam@126 16912 #include <endian.h>
cannam@126 16913 #if BYTE_ORDER != LITTLE_ENDIAN
cannam@126 16914 not big endian
cannam@126 16915 #endif
cannam@126 16916
cannam@126 16917 int
cannam@126 16918 main ()
cannam@126 16919 {
cannam@126 16920 return 0 ;
cannam@126 16921 ;
cannam@126 16922 return 0;
cannam@126 16923 }
cannam@126 16924 _ACEOF
cannam@126 16925 if ac_fn_c_try_link "$LINENO"; then :
cannam@126 16926 ac_cv_c_byte_order=little
cannam@126 16927
cannam@126 16928 fi
cannam@126 16929 rm -f core conftest.err conftest.$ac_objext \
cannam@126 16930 conftest$ac_exeext conftest.$ac_ext
cannam@126 16931
cannam@126 16932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 16933 /* end confdefs.h. */
cannam@126 16934
cannam@126 16935 #include <endian.h>
cannam@126 16936 #if BYTE_ORDER != BIG_ENDIAN
cannam@126 16937 not big endian
cannam@126 16938 #endif
cannam@126 16939
cannam@126 16940 int
cannam@126 16941 main ()
cannam@126 16942 {
cannam@126 16943 return 0 ;
cannam@126 16944 ;
cannam@126 16945 return 0;
cannam@126 16946 }
cannam@126 16947 _ACEOF
cannam@126 16948 if ac_fn_c_try_link "$LINENO"; then :
cannam@126 16949 ac_cv_c_byte_order=big
cannam@126 16950
cannam@126 16951 fi
cannam@126 16952 rm -f core conftest.err conftest.$ac_objext \
cannam@126 16953 conftest$ac_exeext conftest.$ac_ext
cannam@126 16954
cannam@126 16955 fi
cannam@126 16956
cannam@126 16957 if test $ac_cv_c_byte_order = unknown ; then
cannam@126 16958
cannam@126 16959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 16960 /* end confdefs.h. */
cannam@126 16961
cannam@126 16962 #include <sys/types.h>
cannam@126 16963 #include <sys/param.h>
cannam@126 16964 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
cannam@126 16965 bogus endian macros
cannam@126 16966 #endif
cannam@126 16967
cannam@126 16968 int
cannam@126 16969 main ()
cannam@126 16970 {
cannam@126 16971 return 0 ;
cannam@126 16972 ;
cannam@126 16973 return 0;
cannam@126 16974 }
cannam@126 16975 _ACEOF
cannam@126 16976 if ac_fn_c_try_link "$LINENO"; then :
cannam@126 16977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 16978 /* end confdefs.h. */
cannam@126 16979
cannam@126 16980 #include <sys/types.h>
cannam@126 16981 #include <sys/param.h>
cannam@126 16982 #if BYTE_ORDER != LITTLE_ENDIAN
cannam@126 16983 not big endian
cannam@126 16984 #endif
cannam@126 16985
cannam@126 16986 int
cannam@126 16987 main ()
cannam@126 16988 {
cannam@126 16989 return 0 ;
cannam@126 16990 ;
cannam@126 16991 return 0;
cannam@126 16992 }
cannam@126 16993 _ACEOF
cannam@126 16994 if ac_fn_c_try_link "$LINENO"; then :
cannam@126 16995 ac_cv_c_byte_order=little
cannam@126 16996
cannam@126 16997 fi
cannam@126 16998 rm -f core conftest.err conftest.$ac_objext \
cannam@126 16999 conftest$ac_exeext conftest.$ac_ext
cannam@126 17000
cannam@126 17001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 17002 /* end confdefs.h. */
cannam@126 17003
cannam@126 17004 #include <sys/types.h>
cannam@126 17005 #include <sys/param.h>
cannam@126 17006 #if BYTE_ORDER != LITTLE_ENDIAN
cannam@126 17007 not big endian
cannam@126 17008 #endif
cannam@126 17009
cannam@126 17010 int
cannam@126 17011 main ()
cannam@126 17012 {
cannam@126 17013 return 0 ;
cannam@126 17014 ;
cannam@126 17015 return 0;
cannam@126 17016 }
cannam@126 17017 _ACEOF
cannam@126 17018 if ac_fn_c_try_link "$LINENO"; then :
cannam@126 17019 ac_cv_c_byte_order=little
cannam@126 17020
cannam@126 17021 fi
cannam@126 17022 rm -f core conftest.err conftest.$ac_objext \
cannam@126 17023 conftest$ac_exeext conftest.$ac_ext
cannam@126 17024
cannam@126 17025
cannam@126 17026 fi
cannam@126 17027 rm -f core conftest.err conftest.$ac_objext \
cannam@126 17028 conftest$ac_exeext conftest.$ac_ext
cannam@126 17029
cannam@126 17030 fi
cannam@126 17031
cannam@126 17032 if test $ac_cv_c_byte_order = unknown ; then
cannam@126 17033 if test $cross_compiling = yes ; then
cannam@126 17034 # This is the last resort. Try to guess the target processor endian-ness
cannam@126 17035 # by looking at the target CPU type.
cannam@126 17036
cannam@126 17037 case "$target_cpu" in
cannam@126 17038 alpha* | i?86* | mipsel* | ia64*)
cannam@126 17039 ac_cv_c_byte_order=little
cannam@126 17040 ;;
cannam@126 17041
cannam@126 17042 m68* | mips* | powerpc* | hppa* | sparc*)
cannam@126 17043 ac_cv_c_byte_order=big
cannam@126 17044 ;;
cannam@126 17045
cannam@126 17046 esac
cannam@126 17047
cannam@126 17048 else
cannam@126 17049 if test "$cross_compiling" = yes; then :
cannam@126 17050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@126 17051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@126 17052 as_fn_error $? "cannot run test program while cross compiling
cannam@126 17053 See \`config.log' for more details" "$LINENO" 5; }
cannam@126 17054 else
cannam@126 17055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 17056 /* end confdefs.h. */
cannam@126 17057
cannam@126 17058 int main (void)
cannam@126 17059 { /* Are we little or big endian? From Harbison&Steele. */
cannam@126 17060 union
cannam@126 17061 { long l ;
cannam@126 17062 char c [sizeof (long)] ;
cannam@126 17063 } u ;
cannam@126 17064 u.l = 1 ;
cannam@126 17065 return (u.c [sizeof (long) - 1] == 1);
cannam@126 17066 }
cannam@126 17067
cannam@126 17068 _ACEOF
cannam@126 17069 if ac_fn_c_try_run "$LINENO"; then :
cannam@126 17070
cannam@126 17071 else
cannam@126 17072 ac_cv_c_byte_order=big
cannam@126 17073 fi
cannam@126 17074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@126 17075 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@126 17076 fi
cannam@126 17077
cannam@126 17078
cannam@126 17079 if test "$cross_compiling" = yes; then :
cannam@126 17080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@126 17081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@126 17082 as_fn_error $? "cannot run test program while cross compiling
cannam@126 17083 See \`config.log' for more details" "$LINENO" 5; }
cannam@126 17084 else
cannam@126 17085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 17086 /* end confdefs.h. */
cannam@126 17087 int main (void)
cannam@126 17088 { /* Are we little or big endian? From Harbison&Steele. */
cannam@126 17089 union
cannam@126 17090 { long l ;
cannam@126 17091 char c [sizeof (long)] ;
cannam@126 17092 } u ;
cannam@126 17093 u.l = 1 ;
cannam@126 17094 return (u.c [0] == 1);
cannam@126 17095 }
cannam@126 17096 _ACEOF
cannam@126 17097 if ac_fn_c_try_run "$LINENO"; then :
cannam@126 17098
cannam@126 17099 else
cannam@126 17100 ac_cv_c_byte_order=little
cannam@126 17101 fi
cannam@126 17102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@126 17103 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@126 17104 fi
cannam@126 17105
cannam@126 17106 fi
cannam@126 17107 fi
cannam@126 17108
cannam@126 17109
cannam@126 17110 fi
cannam@126 17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_byte_order" >&5
cannam@126 17112 $as_echo "$ac_cv_c_byte_order" >&6; }
cannam@126 17113
cannam@126 17114 if test $ac_cv_c_byte_order = big ; then
cannam@126 17115 ac_cv_c_big_endian=1
cannam@126 17116 ac_cv_c_little_endian=0
cannam@126 17117 elif test $ac_cv_c_byte_order = little ; then
cannam@126 17118 ac_cv_c_big_endian=0
cannam@126 17119 ac_cv_c_little_endian=1
cannam@126 17120 else
cannam@126 17121 ac_cv_c_big_endian=0
cannam@126 17122 ac_cv_c_little_endian=0
cannam@126 17123
cannam@126 17124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5
cannam@126 17125 $as_echo "$as_me: WARNING: *****************************************************************" >&2;}
cannam@126 17126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Not able to determine endian-ness of target processor. " >&5
cannam@126 17127 $as_echo "$as_me: WARNING: *** Not able to determine endian-ness of target processor. " >&2;}
cannam@126 17128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&5
cannam@126 17129 $as_echo "$as_me: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&2;}
cannam@126 17130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** src/config.h may need to be hand editied. " >&5
cannam@126 17131 $as_echo "$as_me: WARNING: *** src/config.h may need to be hand editied. " >&2;}
cannam@126 17132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5
cannam@126 17133 $as_echo "$as_me: WARNING: *****************************************************************" >&2;}
cannam@126 17134 fi
cannam@126 17135
cannam@126 17136
cannam@126 17137
cannam@126 17138
cannam@126 17139
cannam@126 17140 cat >>confdefs.h <<_ACEOF
cannam@126 17141 #define CPU_IS_BIG_ENDIAN ${ac_cv_c_big_endian}
cannam@126 17142 _ACEOF
cannam@126 17143
cannam@126 17144
cannam@126 17145 cat >>confdefs.h <<_ACEOF
cannam@126 17146 #define CPU_IS_LITTLE_ENDIAN ${ac_cv_c_little_endian}
cannam@126 17147 _ACEOF
cannam@126 17148
cannam@126 17149
cannam@126 17150 #====================================================================================
cannam@126 17151 # Check for functions.
cannam@126 17152
cannam@126 17153 for ac_func in malloc calloc free memcpy memmove alarm signal
cannam@126 17154 do :
cannam@126 17155 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
cannam@126 17156 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cannam@126 17157 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cannam@126 17158 cat >>confdefs.h <<_ACEOF
cannam@126 17159 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
cannam@126 17160 _ACEOF
cannam@126 17161
cannam@126 17162 fi
cannam@126 17163 done
cannam@126 17164
cannam@126 17165
cannam@126 17166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
cannam@126 17167 $as_echo_n "checking for floor in -lm... " >&6; }
cannam@126 17168 if ${ac_cv_lib_m_floor+:} false; then :
cannam@126 17169 $as_echo_n "(cached) " >&6
cannam@126 17170 else
cannam@126 17171 ac_check_lib_save_LIBS=$LIBS
cannam@126 17172 LIBS="-lm $LIBS"
cannam@126 17173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 17174 /* end confdefs.h. */
cannam@126 17175
cannam@126 17176 /* Override any GCC internal prototype to avoid an error.
cannam@126 17177 Use char because int might match the return type of a GCC
cannam@126 17178 builtin and then its argument prototype would still apply. */
cannam@126 17179 #ifdef __cplusplus
cannam@126 17180 extern "C"
cannam@126 17181 #endif
cannam@126 17182 char floor ();
cannam@126 17183 int
cannam@126 17184 main ()
cannam@126 17185 {
cannam@126 17186 return floor ();
cannam@126 17187 ;
cannam@126 17188 return 0;
cannam@126 17189 }
cannam@126 17190 _ACEOF
cannam@126 17191 if ac_fn_c_try_link "$LINENO"; then :
cannam@126 17192 ac_cv_lib_m_floor=yes
cannam@126 17193 else
cannam@126 17194 ac_cv_lib_m_floor=no
cannam@126 17195 fi
cannam@126 17196 rm -f core conftest.err conftest.$ac_objext \
cannam@126 17197 conftest$ac_exeext conftest.$ac_ext
cannam@126 17198 LIBS=$ac_check_lib_save_LIBS
cannam@126 17199 fi
cannam@126 17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
cannam@126 17201 $as_echo "$ac_cv_lib_m_floor" >&6; }
cannam@126 17202 if test "x$ac_cv_lib_m_floor" = xyes; then :
cannam@126 17203 cat >>confdefs.h <<_ACEOF
cannam@126 17204 #define HAVE_LIBM 1
cannam@126 17205 _ACEOF
cannam@126 17206
cannam@126 17207 LIBS="-lm $LIBS"
cannam@126 17208
cannam@126 17209 fi
cannam@126 17210
cannam@126 17211 for ac_func in floor ceil fmod
cannam@126 17212 do :
cannam@126 17213 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
cannam@126 17214 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cannam@126 17215 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cannam@126 17216 cat >>confdefs.h <<_ACEOF
cannam@126 17217 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
cannam@126 17218 _ACEOF
cannam@126 17219
cannam@126 17220 fi
cannam@126 17221 done
cannam@126 17222
cannam@126 17223
cannam@126 17224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGALRM" >&5
cannam@126 17225 $as_echo_n "checking for SIGALRM... " >&6; }
cannam@126 17226 if ${ac_cv_signal_SIGALRM+:} false; then :
cannam@126 17227 $as_echo_n "(cached) " >&6
cannam@126 17228 else
cannam@126 17229
cannam@126 17230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 17231 /* end confdefs.h. */
cannam@126 17232
cannam@126 17233 #include <signal.h>
cannam@126 17234
cannam@126 17235
cannam@126 17236 int
cannam@126 17237 main ()
cannam@126 17238 {
cannam@126 17239 signal(SIGALRM, SIG_DFL) ;
cannam@126 17240 ;
cannam@126 17241 return 0;
cannam@126 17242 }
cannam@126 17243 _ACEOF
cannam@126 17244 if ac_fn_c_try_link "$LINENO"; then :
cannam@126 17245 ac_cv_signal_SIGALRM=yes
cannam@126 17246 else
cannam@126 17247 ac_cv_signal_SIGALRM=no
cannam@126 17248 fi
cannam@126 17249 rm -f core conftest.err conftest.$ac_objext \
cannam@126 17250 conftest$ac_exeext conftest.$ac_ext
cannam@126 17251
cannam@126 17252
cannam@126 17253 fi
cannam@126 17254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_signal_SIGALRM" >&5
cannam@126 17255 $as_echo "$ac_cv_signal_SIGALRM" >&6; }
cannam@126 17256
cannam@126 17257 if test "$ac_cv_signal_SIGALRM" = yes; then
cannam@126 17258
cannam@126 17259 $as_echo "#define HAVE_SIGALRM 1" >>confdefs.h
cannam@126 17260
cannam@126 17261 fi
cannam@126 17262
cannam@126 17263
cannam@126 17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrint" >&5
cannam@126 17265 $as_echo_n "checking for lrint... " >&6; }
cannam@126 17266 if ${ac_cv_c99_lrint+:} false; then :
cannam@126 17267 $as_echo_n "(cached) " >&6
cannam@126 17268 else
cannam@126 17269
cannam@126 17270 lrint_save_CFLAGS=$CFLAGS
cannam@126 17271 CFLAGS="-lm"
cannam@126 17272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 17273 /* end confdefs.h. */
cannam@126 17274
cannam@126 17275 #define _ISOC9X_SOURCE 1
cannam@126 17276 #define _ISOC99_SOURCE 1
cannam@126 17277 #define __USE_ISOC99 1
cannam@126 17278 #define __USE_ISOC9X 1
cannam@126 17279
cannam@126 17280 #include <math.h>
cannam@126 17281
cannam@126 17282 int
cannam@126 17283 main ()
cannam@126 17284 {
cannam@126 17285 if (!lrint(3.14159)) lrint(2.7183);
cannam@126 17286 ;
cannam@126 17287 return 0;
cannam@126 17288 }
cannam@126 17289 _ACEOF
cannam@126 17290 if ac_fn_c_try_link "$LINENO"; then :
cannam@126 17291 ac_cv_c99_lrint=yes
cannam@126 17292 else
cannam@126 17293 ac_cv_c99_lrint=no
cannam@126 17294 fi
cannam@126 17295 rm -f core conftest.err conftest.$ac_objext \
cannam@126 17296 conftest$ac_exeext conftest.$ac_ext
cannam@126 17297
cannam@126 17298 CFLAGS=$lrint_save_CFLAGS
cannam@126 17299
cannam@126 17300
cannam@126 17301 fi
cannam@126 17302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrint" >&5
cannam@126 17303 $as_echo "$ac_cv_c99_lrint" >&6; }
cannam@126 17304
cannam@126 17305 if test "$ac_cv_c99_lrint" = yes; then
cannam@126 17306
cannam@126 17307 $as_echo "#define HAVE_LRINT 1" >>confdefs.h
cannam@126 17308
cannam@126 17309 fi
cannam@126 17310
cannam@126 17311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrintf" >&5
cannam@126 17312 $as_echo_n "checking for lrintf... " >&6; }
cannam@126 17313 if ${ac_cv_c99_lrintf+:} false; then :
cannam@126 17314 $as_echo_n "(cached) " >&6
cannam@126 17315 else
cannam@126 17316
cannam@126 17317 lrintf_save_CFLAGS=$CFLAGS
cannam@126 17318 CFLAGS="-lm"
cannam@126 17319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 17320 /* end confdefs.h. */
cannam@126 17321
cannam@126 17322 #define _ISOC9X_SOURCE 1
cannam@126 17323 #define _ISOC99_SOURCE 1
cannam@126 17324 #define __USE_ISOC99 1
cannam@126 17325 #define __USE_ISOC9X 1
cannam@126 17326
cannam@126 17327 #include <math.h>
cannam@126 17328
cannam@126 17329 int
cannam@126 17330 main ()
cannam@126 17331 {
cannam@126 17332 if (!lrintf(3.14159)) lrintf(2.7183);
cannam@126 17333 ;
cannam@126 17334 return 0;
cannam@126 17335 }
cannam@126 17336 _ACEOF
cannam@126 17337 if ac_fn_c_try_link "$LINENO"; then :
cannam@126 17338 ac_cv_c99_lrintf=yes
cannam@126 17339 else
cannam@126 17340 ac_cv_c99_lrintf=no
cannam@126 17341 fi
cannam@126 17342 rm -f core conftest.err conftest.$ac_objext \
cannam@126 17343 conftest$ac_exeext conftest.$ac_ext
cannam@126 17344
cannam@126 17345 CFLAGS=$lrintf_save_CFLAGS
cannam@126 17346
cannam@126 17347
cannam@126 17348 fi
cannam@126 17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrintf" >&5
cannam@126 17350 $as_echo "$ac_cv_c99_lrintf" >&6; }
cannam@126 17351
cannam@126 17352 if test "$ac_cv_c99_lrintf" = yes; then
cannam@126 17353
cannam@126 17354 $as_echo "#define HAVE_LRINTF 1" >>confdefs.h
cannam@126 17355
cannam@126 17356 fi
cannam@126 17357
cannam@126 17358 # AC_C99_FUNC_LLRINT Don't need this (yet?).
cannam@126 17359
cannam@126 17360 case "x$ac_cv_c99_lrint$ac_cv_c99_lrintf" in
cannam@126 17361 xyesyes)
cannam@126 17362 ;;
cannam@126 17363 *)
cannam@126 17364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Missing C99 standard functions lrint() and lrintf()." >&5
cannam@126 17365 $as_echo "$as_me: WARNING: *** Missing C99 standard functions lrint() and lrintf()." >&2;}
cannam@126 17366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** This may cause benign compiler warnings on some systems (ie Solaris)." >&5
cannam@126 17367 $as_echo "$as_me: WARNING: *** This may cause benign compiler warnings on some systems (ie Solaris)." >&2;}
cannam@126 17368 ;;
cannam@126 17369 esac
cannam@126 17370
cannam@126 17371 #====================================================================================
cannam@126 17372 # Determine if the processor can do clipping on float to int conversions.
cannam@126 17373
cannam@126 17374 if test x$ac_arg_cpu_clip = "xY" ; then
cannam@126 17375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor clipping capabilities" >&5
cannam@126 17376 $as_echo_n "checking processor clipping capabilities... " >&6; }
cannam@126 17377 if ${ac_cv_c_clip_type+:} false; then :
cannam@126 17378 $as_echo_n "(cached) " >&6
cannam@126 17379 else
cannam@126 17380 # Initialize to unknown
cannam@126 17381 ac_cv_c_clip_positive=unknown
cannam@126 17382 ac_cv_c_clip_negative=unknown
cannam@126 17383
cannam@126 17384
cannam@126 17385 if test $ac_cv_c_clip_positive = unknown ; then
cannam@126 17386 if test "$cross_compiling" = yes; then :
cannam@126 17387 ac_cv_c_clip_positive=unknown
cannam@126 17388
cannam@126 17389 else
cannam@126 17390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 17391 /* end confdefs.h. */
cannam@126 17392
cannam@126 17393 #define _ISOC9X_SOURCE 1
cannam@126 17394 #define _ISOC99_SOURCE 1
cannam@126 17395 #define __USE_ISOC99 1
cannam@126 17396 #define __USE_ISOC9X 1
cannam@126 17397 #include <math.h>
cannam@126 17398 int main (void)
cannam@126 17399 { double fval ;
cannam@126 17400 int k, ival ;
cannam@126 17401
cannam@126 17402 fval = 1.0 * 0x7FFFFFFF ;
cannam@126 17403 for (k = 0 ; k < 100 ; k++)
cannam@126 17404 { ival = (lrint (fval)) >> 24 ;
cannam@126 17405 if (ival != 127)
cannam@126 17406 return 1 ;
cannam@126 17407
cannam@126 17408 fval *= 1.2499999 ;
cannam@126 17409 } ;
cannam@126 17410
cannam@126 17411 return 0 ;
cannam@126 17412 }
cannam@126 17413
cannam@126 17414 _ACEOF
cannam@126 17415 if ac_fn_c_try_run "$LINENO"; then :
cannam@126 17416 ac_cv_c_clip_positive=yes
cannam@126 17417 else
cannam@126 17418 ac_cv_c_clip_positive=no
cannam@126 17419 fi
cannam@126 17420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@126 17421 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@126 17422 fi
cannam@126 17423
cannam@126 17424
cannam@126 17425 if test "$cross_compiling" = yes; then :
cannam@126 17426 ac_cv_c_clip_negative=unknown
cannam@126 17427
cannam@126 17428 else
cannam@126 17429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@126 17430 /* end confdefs.h. */
cannam@126 17431
cannam@126 17432 #define _ISOC9X_SOURCE 1
cannam@126 17433 #define _ISOC99_SOURCE 1
cannam@126 17434 #define __USE_ISOC99 1
cannam@126 17435 #define __USE_ISOC9X 1
cannam@126 17436 #include <math.h>
cannam@126 17437 int main (void)
cannam@126 17438 { double fval ;
cannam@126 17439 int k, ival ;
cannam@126 17440
cannam@126 17441 fval = -8.0 * 0x10000000 ;
cannam@126 17442 for (k = 0 ; k < 100 ; k++)
cannam@126 17443 { ival = (lrint (fval)) >> 24 ;
cannam@126 17444 if (ival != -128)
cannam@126 17445 return 1 ;
cannam@126 17446
cannam@126 17447 fval *= 1.2499999 ;
cannam@126 17448 } ;
cannam@126 17449
cannam@126 17450 return 0 ;
cannam@126 17451 }
cannam@126 17452
cannam@126 17453 _ACEOF
cannam@126 17454 if ac_fn_c_try_run "$LINENO"; then :
cannam@126 17455 ac_cv_c_clip_negative=yes
cannam@126 17456 else
cannam@126 17457 ac_cv_c_clip_negative=no
cannam@126 17458 fi
cannam@126 17459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@126 17460 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@126 17461 fi
cannam@126 17462
cannam@126 17463 fi
cannam@126 17464
cannam@126 17465 if test $ac_cv_c_clip_positive = yes ; then
cannam@126 17466 ac_cv_c_clip_positive=1
cannam@126 17467 else
cannam@126 17468 ac_cv_c_clip_positive=0
cannam@126 17469 fi
cannam@126 17470
cannam@126 17471 if test $ac_cv_c_clip_negative = yes ; then
cannam@126 17472 ac_cv_c_clip_negative=1
cannam@126 17473 else
cannam@126 17474 ac_cv_c_clip_negative=0
cannam@126 17475 fi
cannam@126 17476
cannam@126 17477
cannam@126 17478 case "$ac_cv_c_clip_positive$ac_cv_c_clip_negative" in
cannam@126 17479 "00")
cannam@126 17480 ac_cv_c_clip_type="none"
cannam@126 17481 ;;
cannam@126 17482 "10")
cannam@126 17483 ac_cv_c_clip_type="positive"
cannam@126 17484 ;;
cannam@126 17485 "01")
cannam@126 17486 ac_cv_c_clip_type="negative"
cannam@126 17487 ;;
cannam@126 17488 "11")
cannam@126 17489 ac_cv_c_clip_type="both"
cannam@126 17490 ;;
cannam@126 17491 esac
cannam@126 17492
cannam@126 17493
cannam@126 17494
cannam@126 17495 fi
cannam@126 17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_clip_type" >&5
cannam@126 17497 $as_echo "$ac_cv_c_clip_type" >&6; }
cannam@126 17498
cannam@126 17499
cannam@126 17500
cannam@126 17501 else
cannam@126 17502 echo "checking processor clipping capabilities... disabled"
cannam@126 17503 ac_cv_c_clip_positive=0
cannam@126 17504 ac_cv_c_clip_negative=0
cannam@126 17505 fi
cannam@126 17506
cannam@126 17507
cannam@126 17508 cat >>confdefs.h <<_ACEOF
cannam@126 17509 #define CPU_CLIPS_POSITIVE ${ac_cv_c_clip_positive}
cannam@126 17510 _ACEOF
cannam@126 17511
cannam@126 17512
cannam@126 17513 cat >>confdefs.h <<_ACEOF
cannam@126 17514 #define CPU_CLIPS_NEGATIVE ${ac_cv_c_clip_negative}
cannam@126 17515 _ACEOF
cannam@126 17516
cannam@126 17517
cannam@126 17518 #====================================================================================
cannam@126 17519 # Check for libsndfile which is required for the test and example programs.
cannam@126 17520
cannam@126 17521 # Check whether --enable-sndfile was given.
cannam@126 17522 if test "${enable_sndfile+set}" = set; then :
cannam@126 17523 enableval=$enable_sndfile; enable_sndfile=$enableval
cannam@126 17524 else
cannam@126 17525 enable_sndfile=yes
cannam@126 17526 fi
cannam@126 17527
cannam@126 17528
cannam@126 17529 # Check for pkg-config outside the if statement.
cannam@126 17530
cannam@126 17531
cannam@126 17532
cannam@126 17533
cannam@126 17534
cannam@126 17535
cannam@126 17536
cannam@126 17537 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
cannam@126 17538 if test -n "$ac_tool_prefix"; then
cannam@126 17539 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
cannam@126 17540 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cannam@126 17541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 17542 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 17543 if ${ac_cv_path_PKG_CONFIG+:} false; then :
cannam@126 17544 $as_echo_n "(cached) " >&6
cannam@126 17545 else
cannam@126 17546 case $PKG_CONFIG in
cannam@126 17547 [\\/]* | ?:[\\/]*)
cannam@126 17548 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
cannam@126 17549 ;;
cannam@126 17550 *)
cannam@126 17551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 17552 for as_dir in $PATH
cannam@126 17553 do
cannam@126 17554 IFS=$as_save_IFS
cannam@126 17555 test -z "$as_dir" && as_dir=.
cannam@126 17556 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 17557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 17558 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cannam@126 17559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 17560 break 2
cannam@126 17561 fi
cannam@126 17562 done
cannam@126 17563 done
cannam@126 17564 IFS=$as_save_IFS
cannam@126 17565
cannam@126 17566 ;;
cannam@126 17567 esac
cannam@126 17568 fi
cannam@126 17569 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
cannam@126 17570 if test -n "$PKG_CONFIG"; then
cannam@126 17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cannam@126 17572 $as_echo "$PKG_CONFIG" >&6; }
cannam@126 17573 else
cannam@126 17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 17575 $as_echo "no" >&6; }
cannam@126 17576 fi
cannam@126 17577
cannam@126 17578
cannam@126 17579 fi
cannam@126 17580 if test -z "$ac_cv_path_PKG_CONFIG"; then
cannam@126 17581 ac_pt_PKG_CONFIG=$PKG_CONFIG
cannam@126 17582 # Extract the first word of "pkg-config", so it can be a program name with args.
cannam@126 17583 set dummy pkg-config; ac_word=$2
cannam@126 17584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@126 17585 $as_echo_n "checking for $ac_word... " >&6; }
cannam@126 17586 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cannam@126 17587 $as_echo_n "(cached) " >&6
cannam@126 17588 else
cannam@126 17589 case $ac_pt_PKG_CONFIG in
cannam@126 17590 [\\/]* | ?:[\\/]*)
cannam@126 17591 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
cannam@126 17592 ;;
cannam@126 17593 *)
cannam@126 17594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 17595 for as_dir in $PATH
cannam@126 17596 do
cannam@126 17597 IFS=$as_save_IFS
cannam@126 17598 test -z "$as_dir" && as_dir=.
cannam@126 17599 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@126 17600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@126 17601 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cannam@126 17602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@126 17603 break 2
cannam@126 17604 fi
cannam@126 17605 done
cannam@126 17606 done
cannam@126 17607 IFS=$as_save_IFS
cannam@126 17608
cannam@126 17609 ;;
cannam@126 17610 esac
cannam@126 17611 fi
cannam@126 17612 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
cannam@126 17613 if test -n "$ac_pt_PKG_CONFIG"; then
cannam@126 17614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cannam@126 17615 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
cannam@126 17616 else
cannam@126 17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 17618 $as_echo "no" >&6; }
cannam@126 17619 fi
cannam@126 17620
cannam@126 17621 if test "x$ac_pt_PKG_CONFIG" = x; then
cannam@126 17622 PKG_CONFIG=""
cannam@126 17623 else
cannam@126 17624 case $cross_compiling:$ac_tool_warned in
cannam@126 17625 yes:)
cannam@126 17626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@126 17627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@126 17628 ac_tool_warned=yes ;;
cannam@126 17629 esac
cannam@126 17630 PKG_CONFIG=$ac_pt_PKG_CONFIG
cannam@126 17631 fi
cannam@126 17632 else
cannam@126 17633 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
cannam@126 17634 fi
cannam@126 17635
cannam@126 17636 fi
cannam@126 17637 if test -n "$PKG_CONFIG"; then
cannam@126 17638 _pkg_min_version=0.9.0
cannam@126 17639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cannam@126 17640 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
cannam@126 17641 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cannam@126 17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@126 17643 $as_echo "yes" >&6; }
cannam@126 17644 else
cannam@126 17645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 17646 $as_echo "no" >&6; }
cannam@126 17647 PKG_CONFIG=""
cannam@126 17648 fi
cannam@126 17649 fi
cannam@126 17650
cannam@126 17651 if test "x$enable_sndfile" = "xyes"; then
cannam@126 17652
cannam@126 17653 pkg_failed=no
cannam@126 17654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5
cannam@126 17655 $as_echo_n "checking for SNDFILE... " >&6; }
cannam@126 17656
cannam@126 17657 if test -n "$SNDFILE_CFLAGS"; then
cannam@126 17658 pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS"
cannam@126 17659 elif test -n "$PKG_CONFIG"; then
cannam@126 17660 if test -n "$PKG_CONFIG" && \
cannam@126 17661 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.6\""; } >&5
cannam@126 17662 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.6") 2>&5
cannam@126 17663 ac_status=$?
cannam@126 17664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 17665 test $ac_status = 0; }; then
cannam@126 17666 pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.6" 2>/dev/null`
cannam@126 17667 test "x$?" != "x0" && pkg_failed=yes
cannam@126 17668 else
cannam@126 17669 pkg_failed=yes
cannam@126 17670 fi
cannam@126 17671 else
cannam@126 17672 pkg_failed=untried
cannam@126 17673 fi
cannam@126 17674 if test -n "$SNDFILE_LIBS"; then
cannam@126 17675 pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS"
cannam@126 17676 elif test -n "$PKG_CONFIG"; then
cannam@126 17677 if test -n "$PKG_CONFIG" && \
cannam@126 17678 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.6\""; } >&5
cannam@126 17679 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.6") 2>&5
cannam@126 17680 ac_status=$?
cannam@126 17681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 17682 test $ac_status = 0; }; then
cannam@126 17683 pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.6" 2>/dev/null`
cannam@126 17684 test "x$?" != "x0" && pkg_failed=yes
cannam@126 17685 else
cannam@126 17686 pkg_failed=yes
cannam@126 17687 fi
cannam@126 17688 else
cannam@126 17689 pkg_failed=untried
cannam@126 17690 fi
cannam@126 17691
cannam@126 17692
cannam@126 17693
cannam@126 17694 if test $pkg_failed = yes; then
cannam@126 17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 17696 $as_echo "no" >&6; }
cannam@126 17697
cannam@126 17698 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
cannam@126 17699 _pkg_short_errors_supported=yes
cannam@126 17700 else
cannam@126 17701 _pkg_short_errors_supported=no
cannam@126 17702 fi
cannam@126 17703 if test $_pkg_short_errors_supported = yes; then
cannam@126 17704 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile >= 1.0.6" 2>&1`
cannam@126 17705 else
cannam@126 17706 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile >= 1.0.6" 2>&1`
cannam@126 17707 fi
cannam@126 17708 # Put the nasty error message in config.log where it belongs
cannam@126 17709 echo "$SNDFILE_PKG_ERRORS" >&5
cannam@126 17710
cannam@126 17711 ac_cv_sndfile=0
cannam@126 17712 elif test $pkg_failed = untried; then
cannam@126 17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 17714 $as_echo "no" >&6; }
cannam@126 17715 ac_cv_sndfile=0
cannam@126 17716 else
cannam@126 17717 SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS
cannam@126 17718 SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS
cannam@126 17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@126 17720 $as_echo "yes" >&6; }
cannam@126 17721 ac_cv_sndfile=1
cannam@126 17722 fi
cannam@126 17723 else
cannam@126 17724 ac_cv_sndfile=0
cannam@126 17725 fi
cannam@126 17726
cannam@126 17727
cannam@126 17728 cat >>confdefs.h <<_ACEOF
cannam@126 17729 #define HAVE_SNDFILE $ac_cv_sndfile
cannam@126 17730 _ACEOF
cannam@126 17731
cannam@126 17732
cannam@126 17733 if test x$ac_cv_sndfile = x1 ; then
cannam@126 17734 ac_cv_sndfile=yes
cannam@126 17735 HAVE_SNDFILE=1
cannam@126 17736 else
cannam@126 17737 ac_cv_sndfile=no
cannam@126 17738 HAVE_SNDFILE=0
cannam@126 17739 fi
cannam@126 17740
cannam@126 17741 #====================================================================================
cannam@126 17742 # Check for ALSA.
cannam@126 17743
cannam@126 17744 ALSA_LIBS=""
cannam@126 17745
cannam@126 17746 if test x$enable_alsa != xno ; then
cannam@126 17747 for ac_header in alsa/asoundlib.h
cannam@126 17748 do :
cannam@126 17749 ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
cannam@126 17750 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
cannam@126 17751 cat >>confdefs.h <<_ACEOF
cannam@126 17752 #define HAVE_ALSA_ASOUNDLIB_H 1
cannam@126 17753 _ACEOF
cannam@126 17754
cannam@126 17755 fi
cannam@126 17756
cannam@126 17757 done
cannam@126 17758
cannam@126 17759 if test x$ac_cv_header_alsa_asoundlib_h = xyes ; then
cannam@126 17760 ALSA_LIBS="-lasound"
cannam@126 17761 enable_alsa=yes
cannam@126 17762 fi
cannam@126 17763 fi
cannam@126 17764
cannam@126 17765 #====================================================================================
cannam@126 17766 # Check for libfftw3 which is required for the test and example programs.
cannam@126 17767
cannam@126 17768 if test $ac_arg_fftw = "Y" ; then
cannam@126 17769
cannam@126 17770 pkg_failed=no
cannam@126 17771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW3" >&5
cannam@126 17772 $as_echo_n "checking for FFTW3... " >&6; }
cannam@126 17773
cannam@126 17774 if test -n "$FFTW3_CFLAGS"; then
cannam@126 17775 pkg_cv_FFTW3_CFLAGS="$FFTW3_CFLAGS"
cannam@126 17776 elif test -n "$PKG_CONFIG"; then
cannam@126 17777 if test -n "$PKG_CONFIG" && \
cannam@126 17778 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 0.15.0\""; } >&5
cannam@126 17779 ($PKG_CONFIG --exists --print-errors "fftw3 >= 0.15.0") 2>&5
cannam@126 17780 ac_status=$?
cannam@126 17781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 17782 test $ac_status = 0; }; then
cannam@126 17783 pkg_cv_FFTW3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 0.15.0" 2>/dev/null`
cannam@126 17784 test "x$?" != "x0" && pkg_failed=yes
cannam@126 17785 else
cannam@126 17786 pkg_failed=yes
cannam@126 17787 fi
cannam@126 17788 else
cannam@126 17789 pkg_failed=untried
cannam@126 17790 fi
cannam@126 17791 if test -n "$FFTW3_LIBS"; then
cannam@126 17792 pkg_cv_FFTW3_LIBS="$FFTW3_LIBS"
cannam@126 17793 elif test -n "$PKG_CONFIG"; then
cannam@126 17794 if test -n "$PKG_CONFIG" && \
cannam@126 17795 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 0.15.0\""; } >&5
cannam@126 17796 ($PKG_CONFIG --exists --print-errors "fftw3 >= 0.15.0") 2>&5
cannam@126 17797 ac_status=$?
cannam@126 17798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@126 17799 test $ac_status = 0; }; then
cannam@126 17800 pkg_cv_FFTW3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 0.15.0" 2>/dev/null`
cannam@126 17801 test "x$?" != "x0" && pkg_failed=yes
cannam@126 17802 else
cannam@126 17803 pkg_failed=yes
cannam@126 17804 fi
cannam@126 17805 else
cannam@126 17806 pkg_failed=untried
cannam@126 17807 fi
cannam@126 17808
cannam@126 17809
cannam@126 17810
cannam@126 17811 if test $pkg_failed = yes; then
cannam@126 17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 17813 $as_echo "no" >&6; }
cannam@126 17814
cannam@126 17815 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
cannam@126 17816 _pkg_short_errors_supported=yes
cannam@126 17817 else
cannam@126 17818 _pkg_short_errors_supported=no
cannam@126 17819 fi
cannam@126 17820 if test $_pkg_short_errors_supported = yes; then
cannam@126 17821 FFTW3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 0.15.0" 2>&1`
cannam@126 17822 else
cannam@126 17823 FFTW3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 0.15.0" 2>&1`
cannam@126 17824 fi
cannam@126 17825 # Put the nasty error message in config.log where it belongs
cannam@126 17826 echo "$FFTW3_PKG_ERRORS" >&5
cannam@126 17827
cannam@126 17828 ac_cv_fftw3=0
cannam@126 17829 elif test $pkg_failed = untried; then
cannam@126 17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@126 17831 $as_echo "no" >&6; }
cannam@126 17832 ac_cv_fftw3=0
cannam@126 17833 else
cannam@126 17834 FFTW3_CFLAGS=$pkg_cv_FFTW3_CFLAGS
cannam@126 17835 FFTW3_LIBS=$pkg_cv_FFTW3_LIBS
cannam@126 17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@126 17837 $as_echo "yes" >&6; }
cannam@126 17838 ac_cv_fftw3=1
cannam@126 17839 fi
cannam@126 17840
cannam@126 17841 cat >>confdefs.h <<_ACEOF
cannam@126 17842 #define HAVE_FFTW3 $ac_cv_fftw3
cannam@126 17843 _ACEOF
cannam@126 17844
cannam@126 17845
cannam@126 17846 if test x$ac_cv_fftw3 = x1 ; then
cannam@126 17847 ac_cv_fftw3=yes
cannam@126 17848 HAVE_FFTW3=1
cannam@126 17849 fi
cannam@126 17850 fi
cannam@126 17851
cannam@126 17852 if test x$ac_cv_fftw3 != xyes ; then
cannam@126 17853 ac_cv_fftw3=no
cannam@126 17854 HAVE_FFTW3=0
cannam@126 17855 fi
cannam@126 17856
cannam@126 17857 #====================================================================================
cannam@126 17858 # GCC stuff.
cannam@126 17859
cannam@126 17860 if test $ac_cv_c_compiler_gnu = yes ; then
cannam@126 17861 CFLAGS="$CFLAGS -std=gnu99 -W -Wstrict-prototypes -Wmissing-prototypes -Wall -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wpointer-arith"
cannam@126 17862 # -Wundef -Wbad-function-cast -Wmissing-declarations -Wconversion -Winline"
cannam@126 17863 if test "$ac_arg_gcc_opt" = "N" ; then
cannam@126 17864 temp_CFLAGS=`echo $CFLAGS | sed "s/O2/O0/"`
cannam@126 17865 CFLAGS=$temp_CFLAGS
cannam@126 17866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Compiler optimisations switched off. ***" >&5
cannam@126 17867 $as_echo "$as_me: WARNING: *** Compiler optimisations switched off. ***" >&2;}
cannam@126 17868 fi
cannam@126 17869
cannam@126 17870 # Disable -Wall for Apple Darwin/Rhapsody.
cannam@126 17871 # System headers on these systems are broken.
cannam@126 17872 case "$target_os" in
cannam@126 17873 darwin* | rhapsody*)
cannam@126 17874 temp_CFLAGS=`echo $CFLAGS | sed "s/-Wall//"`
cannam@126 17875 CFLAGS=$temp_CFLAGS
cannam@126 17876 ;;
cannam@126 17877
cannam@126 17878 linux*|kfreebsd*-gnu*|gnu*)
cannam@126 17879 SHLIB_VERSION_ARG="-Wl,--version-script=Version_script"
cannam@126 17880 ;;
cannam@126 17881 *)
cannam@126 17882 ;;
cannam@126 17883 esac
cannam@126 17884 if test x$ac_arg_gcc_pipe != "xN" ; then
cannam@126 17885 CFLAGS="$CFLAGS -pipe"
cannam@126 17886 fi
cannam@126 17887
cannam@126 17888 if test x$ac_arg_gcc_werror = "xyes" ; then
cannam@126 17889 CFLAGS="-Werror $CFLAGS"
cannam@126 17890 fi
cannam@126 17891
cannam@126 17892
cannam@126 17893 $as_echo "#define COMPILER_IS_GCC 1" >>confdefs.h
cannam@126 17894
cannam@126 17895 GCC_MAJOR_VERSION=`$CC -dumpversion | sed "s/\..*//"`
cannam@126 17896
cannam@126 17897 cat >>confdefs.h <<_ACEOF
cannam@126 17898 #define GCC_MAJOR_VERSION ${GCC_MAJOR_VERSION}
cannam@126 17899 _ACEOF
cannam@126 17900
cannam@126 17901 fi
cannam@126 17902
cannam@126 17903 #====================================================================================
cannam@126 17904 # Find known target OS.
cannam@126 17905
cannam@126 17906 OS_SPECIFIC_INCLUDES=""
cannam@126 17907 os_is_win32=0
cannam@126 17908
cannam@126 17909 case "$target_os" in
cannam@126 17910 darwin* | rhapsody*)
cannam@126 17911 OS_SPECIFIC_INCLUDES="-fpascal-strings -I/Developer/Headers/FlatCarbon"
cannam@126 17912 OS_SPECIFIC_LINKS="-framework CoreAudio"
cannam@126 17913 ;;
cannam@126 17914 mingw32*)
cannam@126 17915 OS_SPECIFIC_LINKS="-lwinmm"
cannam@126 17916 os_is_win32=1
cannam@126 17917 ;;
cannam@126 17918 *)
cannam@126 17919 OS_SPECIFIC_INCLUDES=""
cannam@126 17920 OS_SPECIFIC_LINKS=""
cannam@126 17921 ;;
cannam@126 17922 esac
cannam@126 17923
cannam@126 17924 htmldocdir=$prefix/share/doc/libsamplerate0-dev/html
cannam@126 17925
cannam@126 17926 if test $prefix = "NONE" ; then
cannam@126 17927 htmldocdir=/usr/local/share/doc/libsamplerate0-dev/html
cannam@126 17928 else
cannam@126 17929 htmldocdir=$prefix/share/doc/libsamplerate0-dev/html
cannam@126 17930 fi
cannam@126 17931
cannam@126 17932 #====================================================================================
cannam@126 17933 # Now use the information from the checking stage.
cannam@126 17934
cannam@126 17935
cannam@126 17936 cat >>confdefs.h <<_ACEOF
cannam@126 17937 #define OS_IS_WIN32 ${os_is_win32}
cannam@126 17938 _ACEOF
cannam@126 17939
cannam@126 17940
cannam@126 17941
cannam@126 17942
cannam@126 17943
cannam@126 17944
cannam@126 17945
cannam@126 17946
cannam@126 17947
cannam@126 17948
cannam@126 17949
cannam@126 17950
cannam@126 17951
cannam@126 17952
cannam@126 17953
cannam@126 17954
cannam@126 17955
cannam@126 17956
cannam@126 17957
cannam@126 17958
cannam@126 17959
cannam@126 17960
cannam@126 17961 ac_config_files="$ac_config_files Makefile M4/Makefile src/Version_script Win32/Makefile Win32/Makefile.mingw src/Makefile examples/Makefile tests/Makefile doc/Makefile libsamplerate.spec samplerate.pc"
cannam@126 17962
cannam@126 17963 cat >confcache <<\_ACEOF
cannam@126 17964 # This file is a shell script that caches the results of configure
cannam@126 17965 # tests run on this system so they can be shared between configure
cannam@126 17966 # scripts and configure runs, see configure's option --config-cache.
cannam@126 17967 # It is not useful on other systems. If it contains results you don't
cannam@126 17968 # want to keep, you may remove or edit it.
cannam@126 17969 #
cannam@126 17970 # config.status only pays attention to the cache file if you give it
cannam@126 17971 # the --recheck option to rerun configure.
cannam@126 17972 #
cannam@126 17973 # `ac_cv_env_foo' variables (set or unset) will be overridden when
cannam@126 17974 # loading this file, other *unset* `ac_cv_foo' will be assigned the
cannam@126 17975 # following values.
cannam@126 17976
cannam@126 17977 _ACEOF
cannam@126 17978
cannam@126 17979 # The following way of writing the cache mishandles newlines in values,
cannam@126 17980 # but we know of no workaround that is simple, portable, and efficient.
cannam@126 17981 # So, we kill variables containing newlines.
cannam@126 17982 # Ultrix sh set writes to stderr and can't be redirected directly,
cannam@126 17983 # and sets the high bit in the cache file unless we assign to the vars.
cannam@126 17984 (
cannam@126 17985 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
cannam@126 17986 eval ac_val=\$$ac_var
cannam@126 17987 case $ac_val in #(
cannam@126 17988 *${as_nl}*)
cannam@126 17989 case $ac_var in #(
cannam@126 17990 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cannam@126 17991 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
cannam@126 17992 esac
cannam@126 17993 case $ac_var in #(
cannam@126 17994 _ | IFS | as_nl) ;; #(
cannam@126 17995 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cannam@126 17996 *) { eval $ac_var=; unset $ac_var;} ;;
cannam@126 17997 esac ;;
cannam@126 17998 esac
cannam@126 17999 done
cannam@126 18000
cannam@126 18001 (set) 2>&1 |
cannam@126 18002 case $as_nl`(ac_space=' '; set) 2>&1` in #(
cannam@126 18003 *${as_nl}ac_space=\ *)
cannam@126 18004 # `set' does not quote correctly, so add quotes: double-quote
cannam@126 18005 # substitution turns \\\\ into \\, and sed turns \\ into \.
cannam@126 18006 sed -n \
cannam@126 18007 "s/'/'\\\\''/g;
cannam@126 18008 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cannam@126 18009 ;; #(
cannam@126 18010 *)
cannam@126 18011 # `set' quotes correctly as required by POSIX, so do not add quotes.
cannam@126 18012 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
cannam@126 18013 ;;
cannam@126 18014 esac |
cannam@126 18015 sort
cannam@126 18016 ) |
cannam@126 18017 sed '
cannam@126 18018 /^ac_cv_env_/b end
cannam@126 18019 t clear
cannam@126 18020 :clear
cannam@126 18021 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
cannam@126 18022 t end
cannam@126 18023 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
cannam@126 18024 :end' >>confcache
cannam@126 18025 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
cannam@126 18026 if test -w "$cache_file"; then
cannam@126 18027 if test "x$cache_file" != "x/dev/null"; then
cannam@126 18028 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cannam@126 18029 $as_echo "$as_me: updating cache $cache_file" >&6;}
cannam@126 18030 if test ! -f "$cache_file" || test -h "$cache_file"; then
cannam@126 18031 cat confcache >"$cache_file"
cannam@126 18032 else
cannam@126 18033 case $cache_file in #(
cannam@126 18034 */* | ?:*)
cannam@126 18035 mv -f confcache "$cache_file"$$ &&
cannam@126 18036 mv -f "$cache_file"$$ "$cache_file" ;; #(
cannam@126 18037 *)
cannam@126 18038 mv -f confcache "$cache_file" ;;
cannam@126 18039 esac
cannam@126 18040 fi
cannam@126 18041 fi
cannam@126 18042 else
cannam@126 18043 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cannam@126 18044 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
cannam@126 18045 fi
cannam@126 18046 fi
cannam@126 18047 rm -f confcache
cannam@126 18048
cannam@126 18049 test "x$prefix" = xNONE && prefix=$ac_default_prefix
cannam@126 18050 # Let make expand exec_prefix.
cannam@126 18051 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
cannam@126 18052
cannam@126 18053 DEFS=-DHAVE_CONFIG_H
cannam@126 18054
cannam@126 18055 ac_libobjs=
cannam@126 18056 ac_ltlibobjs=
cannam@126 18057 U=
cannam@126 18058 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
cannam@126 18059 # 1. Remove the extension, and $U if already installed.
cannam@126 18060 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
cannam@126 18061 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
cannam@126 18062 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
cannam@126 18063 # will be set to the directory where LIBOBJS objects are built.
cannam@126 18064 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
cannam@126 18065 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cannam@126 18066 done
cannam@126 18067 LIBOBJS=$ac_libobjs
cannam@126 18068
cannam@126 18069 LTLIBOBJS=$ac_ltlibobjs
cannam@126 18070
cannam@126 18071
cannam@126 18072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
cannam@126 18073 $as_echo_n "checking that generated files are newer than configure... " >&6; }
cannam@126 18074 if test -n "$am_sleep_pid"; then
cannam@126 18075 # Hide warnings about reused PIDs.
cannam@126 18076 wait $am_sleep_pid 2>/dev/null
cannam@126 18077 fi
cannam@126 18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
cannam@126 18079 $as_echo "done" >&6; }
cannam@126 18080 if test -n "$EXEEXT"; then
cannam@126 18081 am__EXEEXT_TRUE=
cannam@126 18082 am__EXEEXT_FALSE='#'
cannam@126 18083 else
cannam@126 18084 am__EXEEXT_TRUE='#'
cannam@126 18085 am__EXEEXT_FALSE=
cannam@126 18086 fi
cannam@126 18087
cannam@126 18088 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cannam@126 18089 as_fn_error $? "conditional \"AMDEP\" was never defined.
cannam@126 18090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@126 18091 fi
cannam@126 18092 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cannam@126 18093 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cannam@126 18094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@126 18095 fi
cannam@126 18096 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cannam@126 18097 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cannam@126 18098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@126 18099 fi
cannam@126 18100
cannam@126 18101 : "${CONFIG_STATUS=./config.status}"
cannam@126 18102 ac_write_fail=0
cannam@126 18103 ac_clean_files_save=$ac_clean_files
cannam@126 18104 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cannam@126 18105 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cannam@126 18106 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cannam@126 18107 as_write_fail=0
cannam@126 18108 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cannam@126 18109 #! $SHELL
cannam@126 18110 # Generated by $as_me.
cannam@126 18111 # Run this file to recreate the current configuration.
cannam@126 18112 # Compiler output produced by configure, useful for debugging
cannam@126 18113 # configure, is in config.log if it exists.
cannam@126 18114
cannam@126 18115 debug=false
cannam@126 18116 ac_cs_recheck=false
cannam@126 18117 ac_cs_silent=false
cannam@126 18118
cannam@126 18119 SHELL=\${CONFIG_SHELL-$SHELL}
cannam@126 18120 export SHELL
cannam@126 18121 _ASEOF
cannam@126 18122 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
cannam@126 18123 ## -------------------- ##
cannam@126 18124 ## M4sh Initialization. ##
cannam@126 18125 ## -------------------- ##
cannam@126 18126
cannam@126 18127 # Be more Bourne compatible
cannam@126 18128 DUALCASE=1; export DUALCASE # for MKS sh
cannam@126 18129 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cannam@126 18130 emulate sh
cannam@126 18131 NULLCMD=:
cannam@126 18132 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
cannam@126 18133 # is contrary to our usage. Disable this feature.
cannam@126 18134 alias -g '${1+"$@"}'='"$@"'
cannam@126 18135 setopt NO_GLOB_SUBST
cannam@126 18136 else
cannam@126 18137 case `(set -o) 2>/dev/null` in #(
cannam@126 18138 *posix*) :
cannam@126 18139 set -o posix ;; #(
cannam@126 18140 *) :
cannam@126 18141 ;;
cannam@126 18142 esac
cannam@126 18143 fi
cannam@126 18144
cannam@126 18145
cannam@126 18146 as_nl='
cannam@126 18147 '
cannam@126 18148 export as_nl
cannam@126 18149 # Printing a long string crashes Solaris 7 /usr/bin/printf.
cannam@126 18150 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@126 18151 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@126 18152 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@126 18153 # Prefer a ksh shell builtin over an external printf program on Solaris,
cannam@126 18154 # but without wasting forks for bash or zsh.
cannam@126 18155 if test -z "$BASH_VERSION$ZSH_VERSION" \
cannam@126 18156 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@126 18157 as_echo='print -r --'
cannam@126 18158 as_echo_n='print -rn --'
cannam@126 18159 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@126 18160 as_echo='printf %s\n'
cannam@126 18161 as_echo_n='printf %s'
cannam@126 18162 else
cannam@126 18163 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
cannam@126 18164 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
cannam@126 18165 as_echo_n='/usr/ucb/echo -n'
cannam@126 18166 else
cannam@126 18167 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
cannam@126 18168 as_echo_n_body='eval
cannam@126 18169 arg=$1;
cannam@126 18170 case $arg in #(
cannam@126 18171 *"$as_nl"*)
cannam@126 18172 expr "X$arg" : "X\\(.*\\)$as_nl";
cannam@126 18173 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
cannam@126 18174 esac;
cannam@126 18175 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
cannam@126 18176 '
cannam@126 18177 export as_echo_n_body
cannam@126 18178 as_echo_n='sh -c $as_echo_n_body as_echo'
cannam@126 18179 fi
cannam@126 18180 export as_echo_body
cannam@126 18181 as_echo='sh -c $as_echo_body as_echo'
cannam@126 18182 fi
cannam@126 18183
cannam@126 18184 # The user is always right.
cannam@126 18185 if test "${PATH_SEPARATOR+set}" != set; then
cannam@126 18186 PATH_SEPARATOR=:
cannam@126 18187 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
cannam@126 18188 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
cannam@126 18189 PATH_SEPARATOR=';'
cannam@126 18190 }
cannam@126 18191 fi
cannam@126 18192
cannam@126 18193
cannam@126 18194 # IFS
cannam@126 18195 # We need space, tab and new line, in precisely that order. Quoting is
cannam@126 18196 # there to prevent editors from complaining about space-tab.
cannam@126 18197 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
cannam@126 18198 # splitting by setting IFS to empty value.)
cannam@126 18199 IFS=" "" $as_nl"
cannam@126 18200
cannam@126 18201 # Find who we are. Look in the path if we contain no directory separator.
cannam@126 18202 as_myself=
cannam@126 18203 case $0 in #((
cannam@126 18204 *[\\/]* ) as_myself=$0 ;;
cannam@126 18205 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@126 18206 for as_dir in $PATH
cannam@126 18207 do
cannam@126 18208 IFS=$as_save_IFS
cannam@126 18209 test -z "$as_dir" && as_dir=.
cannam@126 18210 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
cannam@126 18211 done
cannam@126 18212 IFS=$as_save_IFS
cannam@126 18213
cannam@126 18214 ;;
cannam@126 18215 esac
cannam@126 18216 # We did not find ourselves, most probably we were run as `sh COMMAND'
cannam@126 18217 # in which case we are not to be found in the path.
cannam@126 18218 if test "x$as_myself" = x; then
cannam@126 18219 as_myself=$0
cannam@126 18220 fi
cannam@126 18221 if test ! -f "$as_myself"; then
cannam@126 18222 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cannam@126 18223 exit 1
cannam@126 18224 fi
cannam@126 18225
cannam@126 18226 # Unset variables that we do not need and which cause bugs (e.g. in
cannam@126 18227 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
cannam@126 18228 # suppresses any "Segmentation fault" message there. '((' could
cannam@126 18229 # trigger a bug in pdksh 5.2.14.
cannam@126 18230 for as_var in BASH_ENV ENV MAIL MAILPATH
cannam@126 18231 do eval test x\${$as_var+set} = xset \
cannam@126 18232 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cannam@126 18233 done
cannam@126 18234 PS1='$ '
cannam@126 18235 PS2='> '
cannam@126 18236 PS4='+ '
cannam@126 18237
cannam@126 18238 # NLS nuisances.
cannam@126 18239 LC_ALL=C
cannam@126 18240 export LC_ALL
cannam@126 18241 LANGUAGE=C
cannam@126 18242 export LANGUAGE
cannam@126 18243
cannam@126 18244 # CDPATH.
cannam@126 18245 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cannam@126 18246
cannam@126 18247
cannam@126 18248 # as_fn_error STATUS ERROR [LINENO LOG_FD]
cannam@126 18249 # ----------------------------------------
cannam@126 18250 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
cannam@126 18251 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cannam@126 18252 # script with STATUS, using 1 if that was 0.
cannam@126 18253 as_fn_error ()
cannam@126 18254 {
cannam@126 18255 as_status=$1; test $as_status -eq 0 && as_status=1
cannam@126 18256 if test "$4"; then
cannam@126 18257 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@126 18258 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cannam@126 18259 fi
cannam@126 18260 $as_echo "$as_me: error: $2" >&2
cannam@126 18261 as_fn_exit $as_status
cannam@126 18262 } # as_fn_error
cannam@126 18263
cannam@126 18264
cannam@126 18265 # as_fn_set_status STATUS
cannam@126 18266 # -----------------------
cannam@126 18267 # Set $? to STATUS, without forking.
cannam@126 18268 as_fn_set_status ()
cannam@126 18269 {
cannam@126 18270 return $1
cannam@126 18271 } # as_fn_set_status
cannam@126 18272
cannam@126 18273 # as_fn_exit STATUS
cannam@126 18274 # -----------------
cannam@126 18275 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
cannam@126 18276 as_fn_exit ()
cannam@126 18277 {
cannam@126 18278 set +e
cannam@126 18279 as_fn_set_status $1
cannam@126 18280 exit $1
cannam@126 18281 } # as_fn_exit
cannam@126 18282
cannam@126 18283 # as_fn_unset VAR
cannam@126 18284 # ---------------
cannam@126 18285 # Portably unset VAR.
cannam@126 18286 as_fn_unset ()
cannam@126 18287 {
cannam@126 18288 { eval $1=; unset $1;}
cannam@126 18289 }
cannam@126 18290 as_unset=as_fn_unset
cannam@126 18291 # as_fn_append VAR VALUE
cannam@126 18292 # ----------------------
cannam@126 18293 # Append the text in VALUE to the end of the definition contained in VAR. Take
cannam@126 18294 # advantage of any shell optimizations that allow amortized linear growth over
cannam@126 18295 # repeated appends, instead of the typical quadratic growth present in naive
cannam@126 18296 # implementations.
cannam@126 18297 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
cannam@126 18298 eval 'as_fn_append ()
cannam@126 18299 {
cannam@126 18300 eval $1+=\$2
cannam@126 18301 }'
cannam@126 18302 else
cannam@126 18303 as_fn_append ()
cannam@126 18304 {
cannam@126 18305 eval $1=\$$1\$2
cannam@126 18306 }
cannam@126 18307 fi # as_fn_append
cannam@126 18308
cannam@126 18309 # as_fn_arith ARG...
cannam@126 18310 # ------------------
cannam@126 18311 # Perform arithmetic evaluation on the ARGs, and store the result in the
cannam@126 18312 # global $as_val. Take advantage of shells that can avoid forks. The arguments
cannam@126 18313 # must be portable across $(()) and expr.
cannam@126 18314 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
cannam@126 18315 eval 'as_fn_arith ()
cannam@126 18316 {
cannam@126 18317 as_val=$(( $* ))
cannam@126 18318 }'
cannam@126 18319 else
cannam@126 18320 as_fn_arith ()
cannam@126 18321 {
cannam@126 18322 as_val=`expr "$@" || test $? -eq 1`
cannam@126 18323 }
cannam@126 18324 fi # as_fn_arith
cannam@126 18325
cannam@126 18326
cannam@126 18327 if expr a : '\(a\)' >/dev/null 2>&1 &&
cannam@126 18328 test "X`expr 00001 : '.*\(...\)'`" = X001; then
cannam@126 18329 as_expr=expr
cannam@126 18330 else
cannam@126 18331 as_expr=false
cannam@126 18332 fi
cannam@126 18333
cannam@126 18334 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
cannam@126 18335 as_basename=basename
cannam@126 18336 else
cannam@126 18337 as_basename=false
cannam@126 18338 fi
cannam@126 18339
cannam@126 18340 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
cannam@126 18341 as_dirname=dirname
cannam@126 18342 else
cannam@126 18343 as_dirname=false
cannam@126 18344 fi
cannam@126 18345
cannam@126 18346 as_me=`$as_basename -- "$0" ||
cannam@126 18347 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
cannam@126 18348 X"$0" : 'X\(//\)$' \| \
cannam@126 18349 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
cannam@126 18350 $as_echo X/"$0" |
cannam@126 18351 sed '/^.*\/\([^/][^/]*\)\/*$/{
cannam@126 18352 s//\1/
cannam@126 18353 q
cannam@126 18354 }
cannam@126 18355 /^X\/\(\/\/\)$/{
cannam@126 18356 s//\1/
cannam@126 18357 q
cannam@126 18358 }
cannam@126 18359 /^X\/\(\/\).*/{
cannam@126 18360 s//\1/
cannam@126 18361 q
cannam@126 18362 }
cannam@126 18363 s/.*/./; q'`
cannam@126 18364
cannam@126 18365 # Avoid depending upon Character Ranges.
cannam@126 18366 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
cannam@126 18367 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
cannam@126 18368 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
cannam@126 18369 as_cr_digits='0123456789'
cannam@126 18370 as_cr_alnum=$as_cr_Letters$as_cr_digits
cannam@126 18371
cannam@126 18372 ECHO_C= ECHO_N= ECHO_T=
cannam@126 18373 case `echo -n x` in #(((((
cannam@126 18374 -n*)
cannam@126 18375 case `echo 'xy\c'` in
cannam@126 18376 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cannam@126 18377 xy) ECHO_C='\c';;
cannam@126 18378 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
cannam@126 18379 ECHO_T=' ';;
cannam@126 18380 esac;;
cannam@126 18381 *)
cannam@126 18382 ECHO_N='-n';;
cannam@126 18383 esac
cannam@126 18384
cannam@126 18385 rm -f conf$$ conf$$.exe conf$$.file
cannam@126 18386 if test -d conf$$.dir; then
cannam@126 18387 rm -f conf$$.dir/conf$$.file
cannam@126 18388 else
cannam@126 18389 rm -f conf$$.dir
cannam@126 18390 mkdir conf$$.dir 2>/dev/null
cannam@126 18391 fi
cannam@126 18392 if (echo >conf$$.file) 2>/dev/null; then
cannam@126 18393 if ln -s conf$$.file conf$$ 2>/dev/null; then
cannam@126 18394 as_ln_s='ln -s'
cannam@126 18395 # ... but there are two gotchas:
cannam@126 18396 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
cannam@126 18397 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cannam@126 18398 # In both cases, we have to default to `cp -pR'.
cannam@126 18399 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cannam@126 18400 as_ln_s='cp -pR'
cannam@126 18401 elif ln conf$$.file conf$$ 2>/dev/null; then
cannam@126 18402 as_ln_s=ln
cannam@126 18403 else
cannam@126 18404 as_ln_s='cp -pR'
cannam@126 18405 fi
cannam@126 18406 else
cannam@126 18407 as_ln_s='cp -pR'
cannam@126 18408 fi
cannam@126 18409 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
cannam@126 18410 rmdir conf$$.dir 2>/dev/null
cannam@126 18411
cannam@126 18412
cannam@126 18413 # as_fn_mkdir_p
cannam@126 18414 # -------------
cannam@126 18415 # Create "$as_dir" as a directory, including parents if necessary.
cannam@126 18416 as_fn_mkdir_p ()
cannam@126 18417 {
cannam@126 18418
cannam@126 18419 case $as_dir in #(
cannam@126 18420 -*) as_dir=./$as_dir;;
cannam@126 18421 esac
cannam@126 18422 test -d "$as_dir" || eval $as_mkdir_p || {
cannam@126 18423 as_dirs=
cannam@126 18424 while :; do
cannam@126 18425 case $as_dir in #(
cannam@126 18426 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
cannam@126 18427 *) as_qdir=$as_dir;;
cannam@126 18428 esac
cannam@126 18429 as_dirs="'$as_qdir' $as_dirs"
cannam@126 18430 as_dir=`$as_dirname -- "$as_dir" ||
cannam@126 18431 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@126 18432 X"$as_dir" : 'X\(//\)[^/]' \| \
cannam@126 18433 X"$as_dir" : 'X\(//\)$' \| \
cannam@126 18434 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
cannam@126 18435 $as_echo X"$as_dir" |
cannam@126 18436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@126 18437 s//\1/
cannam@126 18438 q
cannam@126 18439 }
cannam@126 18440 /^X\(\/\/\)[^/].*/{
cannam@126 18441 s//\1/
cannam@126 18442 q
cannam@126 18443 }
cannam@126 18444 /^X\(\/\/\)$/{
cannam@126 18445 s//\1/
cannam@126 18446 q
cannam@126 18447 }
cannam@126 18448 /^X\(\/\).*/{
cannam@126 18449 s//\1/
cannam@126 18450 q
cannam@126 18451 }
cannam@126 18452 s/.*/./; q'`
cannam@126 18453 test -d "$as_dir" && break
cannam@126 18454 done
cannam@126 18455 test -z "$as_dirs" || eval "mkdir $as_dirs"
cannam@126 18456 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cannam@126 18457
cannam@126 18458
cannam@126 18459 } # as_fn_mkdir_p
cannam@126 18460 if mkdir -p . 2>/dev/null; then
cannam@126 18461 as_mkdir_p='mkdir -p "$as_dir"'
cannam@126 18462 else
cannam@126 18463 test -d ./-p && rmdir ./-p
cannam@126 18464 as_mkdir_p=false
cannam@126 18465 fi
cannam@126 18466
cannam@126 18467
cannam@126 18468 # as_fn_executable_p FILE
cannam@126 18469 # -----------------------
cannam@126 18470 # Test if FILE is an executable regular file.
cannam@126 18471 as_fn_executable_p ()
cannam@126 18472 {
cannam@126 18473 test -f "$1" && test -x "$1"
cannam@126 18474 } # as_fn_executable_p
cannam@126 18475 as_test_x='test -x'
cannam@126 18476 as_executable_p=as_fn_executable_p
cannam@126 18477
cannam@126 18478 # Sed expression to map a string onto a valid CPP name.
cannam@126 18479 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
cannam@126 18480
cannam@126 18481 # Sed expression to map a string onto a valid variable name.
cannam@126 18482 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
cannam@126 18483
cannam@126 18484
cannam@126 18485 exec 6>&1
cannam@126 18486 ## ----------------------------------- ##
cannam@126 18487 ## Main body of $CONFIG_STATUS script. ##
cannam@126 18488 ## ----------------------------------- ##
cannam@126 18489 _ASEOF
cannam@126 18490 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cannam@126 18491
cannam@126 18492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@126 18493 # Save the log message, to keep $0 and so on meaningful, and to
cannam@126 18494 # report actual input values of CONFIG_FILES etc. instead of their
cannam@126 18495 # values after options handling.
cannam@126 18496 ac_log="
cannam@126 18497 This file was extended by libsamplerate $as_me 0.1.9, which was
cannam@126 18498 generated by GNU Autoconf 2.69. Invocation command line was
cannam@126 18499
cannam@126 18500 CONFIG_FILES = $CONFIG_FILES
cannam@126 18501 CONFIG_HEADERS = $CONFIG_HEADERS
cannam@126 18502 CONFIG_LINKS = $CONFIG_LINKS
cannam@126 18503 CONFIG_COMMANDS = $CONFIG_COMMANDS
cannam@126 18504 $ $0 $@
cannam@126 18505
cannam@126 18506 on `(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@126 18507 "
cannam@126 18508
cannam@126 18509 _ACEOF
cannam@126 18510
cannam@126 18511 case $ac_config_files in *"
cannam@126 18512 "*) set x $ac_config_files; shift; ac_config_files=$*;;
cannam@126 18513 esac
cannam@126 18514
cannam@126 18515 case $ac_config_headers in *"
cannam@126 18516 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
cannam@126 18517 esac
cannam@126 18518
cannam@126 18519
cannam@126 18520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@126 18521 # Files that config.status was made for.
cannam@126 18522 config_files="$ac_config_files"
cannam@126 18523 config_headers="$ac_config_headers"
cannam@126 18524 config_commands="$ac_config_commands"
cannam@126 18525
cannam@126 18526 _ACEOF
cannam@126 18527
cannam@126 18528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@126 18529 ac_cs_usage="\
cannam@126 18530 \`$as_me' instantiates files and other configuration actions
cannam@126 18531 from templates according to the current configuration. Unless the files
cannam@126 18532 and actions are specified as TAGs, all are instantiated by default.
cannam@126 18533
cannam@126 18534 Usage: $0 [OPTION]... [TAG]...
cannam@126 18535
cannam@126 18536 -h, --help print this help, then exit
cannam@126 18537 -V, --version print version number and configuration settings, then exit
cannam@126 18538 --config print configuration, then exit
cannam@126 18539 -q, --quiet, --silent
cannam@126 18540 do not print progress messages
cannam@126 18541 -d, --debug don't remove temporary files
cannam@126 18542 --recheck update $as_me by reconfiguring in the same conditions
cannam@126 18543 --file=FILE[:TEMPLATE]
cannam@126 18544 instantiate the configuration file FILE
cannam@126 18545 --header=FILE[:TEMPLATE]
cannam@126 18546 instantiate the configuration header FILE
cannam@126 18547
cannam@126 18548 Configuration files:
cannam@126 18549 $config_files
cannam@126 18550
cannam@126 18551 Configuration headers:
cannam@126 18552 $config_headers
cannam@126 18553
cannam@126 18554 Configuration commands:
cannam@126 18555 $config_commands
cannam@126 18556
cannam@126 18557 Report bugs to <erikd@mega-nerd.com>.
cannam@126 18558 libsamplerate home page: <http://www.mega-nerd.com/libsamplerate/>."
cannam@126 18559
cannam@126 18560 _ACEOF
cannam@126 18561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@126 18562 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cannam@126 18563 ac_cs_version="\\
cannam@126 18564 libsamplerate config.status 0.1.9
cannam@126 18565 configured by $0, generated by GNU Autoconf 2.69,
cannam@126 18566 with options \\"\$ac_cs_config\\"
cannam@126 18567
cannam@126 18568 Copyright (C) 2012 Free Software Foundation, Inc.
cannam@126 18569 This config.status script is free software; the Free Software Foundation
cannam@126 18570 gives unlimited permission to copy, distribute and modify it."
cannam@126 18571
cannam@126 18572 ac_pwd='$ac_pwd'
cannam@126 18573 srcdir='$srcdir'
cannam@126 18574 INSTALL='$INSTALL'
cannam@126 18575 MKDIR_P='$MKDIR_P'
cannam@126 18576 AWK='$AWK'
cannam@126 18577 test -n "\$AWK" || AWK=awk
cannam@126 18578 _ACEOF
cannam@126 18579
cannam@126 18580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@126 18581 # The default lists apply if the user does not specify any file.
cannam@126 18582 ac_need_defaults=:
cannam@126 18583 while test $# != 0
cannam@126 18584 do
cannam@126 18585 case $1 in
cannam@126 18586 --*=?*)
cannam@126 18587 ac_option=`expr "X$1" : 'X\([^=]*\)='`
cannam@126 18588 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
cannam@126 18589 ac_shift=:
cannam@126 18590 ;;
cannam@126 18591 --*=)
cannam@126 18592 ac_option=`expr "X$1" : 'X\([^=]*\)='`
cannam@126 18593 ac_optarg=
cannam@126 18594 ac_shift=:
cannam@126 18595 ;;
cannam@126 18596 *)
cannam@126 18597 ac_option=$1
cannam@126 18598 ac_optarg=$2
cannam@126 18599 ac_shift=shift
cannam@126 18600 ;;
cannam@126 18601 esac
cannam@126 18602
cannam@126 18603 case $ac_option in
cannam@126 18604 # Handling of the options.
cannam@126 18605 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
cannam@126 18606 ac_cs_recheck=: ;;
cannam@126 18607 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
cannam@126 18608 $as_echo "$ac_cs_version"; exit ;;
cannam@126 18609 --config | --confi | --conf | --con | --co | --c )
cannam@126 18610 $as_echo "$ac_cs_config"; exit ;;
cannam@126 18611 --debug | --debu | --deb | --de | --d | -d )
cannam@126 18612 debug=: ;;
cannam@126 18613 --file | --fil | --fi | --f )
cannam@126 18614 $ac_shift
cannam@126 18615 case $ac_optarg in
cannam@126 18616 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@126 18617 '') as_fn_error $? "missing file argument" ;;
cannam@126 18618 esac
cannam@126 18619 as_fn_append CONFIG_FILES " '$ac_optarg'"
cannam@126 18620 ac_need_defaults=false;;
cannam@126 18621 --header | --heade | --head | --hea )
cannam@126 18622 $ac_shift
cannam@126 18623 case $ac_optarg in
cannam@126 18624 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@126 18625 esac
cannam@126 18626 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cannam@126 18627 ac_need_defaults=false;;
cannam@126 18628 --he | --h)
cannam@126 18629 # Conflict between --help and --header
cannam@126 18630 as_fn_error $? "ambiguous option: \`$1'
cannam@126 18631 Try \`$0 --help' for more information.";;
cannam@126 18632 --help | --hel | -h )
cannam@126 18633 $as_echo "$ac_cs_usage"; exit ;;
cannam@126 18634 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@126 18635 | -silent | --silent | --silen | --sile | --sil | --si | --s)
cannam@126 18636 ac_cs_silent=: ;;
cannam@126 18637
cannam@126 18638 # This is an error.
cannam@126 18639 -*) as_fn_error $? "unrecognized option: \`$1'
cannam@126 18640 Try \`$0 --help' for more information." ;;
cannam@126 18641
cannam@126 18642 *) as_fn_append ac_config_targets " $1"
cannam@126 18643 ac_need_defaults=false ;;
cannam@126 18644
cannam@126 18645 esac
cannam@126 18646 shift
cannam@126 18647 done
cannam@126 18648
cannam@126 18649 ac_configure_extra_args=
cannam@126 18650
cannam@126 18651 if $ac_cs_silent; then
cannam@126 18652 exec 6>/dev/null
cannam@126 18653 ac_configure_extra_args="$ac_configure_extra_args --silent"
cannam@126 18654 fi
cannam@126 18655
cannam@126 18656 _ACEOF
cannam@126 18657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@126 18658 if \$ac_cs_recheck; then
cannam@126 18659 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cannam@126 18660 shift
cannam@126 18661 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
cannam@126 18662 CONFIG_SHELL='$SHELL'
cannam@126 18663 export CONFIG_SHELL
cannam@126 18664 exec "\$@"
cannam@126 18665 fi
cannam@126 18666
cannam@126 18667 _ACEOF
cannam@126 18668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@126 18669 exec 5>>config.log
cannam@126 18670 {
cannam@126 18671 echo
cannam@126 18672 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
cannam@126 18673 ## Running $as_me. ##
cannam@126 18674 _ASBOX
cannam@126 18675 $as_echo "$ac_log"
cannam@126 18676 } >&5
cannam@126 18677
cannam@126 18678 _ACEOF
cannam@126 18679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@126 18680 #
cannam@126 18681 # INIT-COMMANDS
cannam@126 18682 #
cannam@126 18683 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
cannam@126 18684
cannam@126 18685
cannam@126 18686 # The HP-UX ksh and POSIX shell print the target directory to stdout
cannam@126 18687 # if CDPATH is set.
cannam@126 18688 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cannam@126 18689
cannam@126 18690 sed_quote_subst='$sed_quote_subst'
cannam@126 18691 double_quote_subst='$double_quote_subst'
cannam@126 18692 delay_variable_subst='$delay_variable_subst'
cannam@126 18693 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
cannam@126 18694 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
cannam@126 18695 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
cannam@126 18696 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
cannam@126 18697 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
cannam@126 18698 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cannam@126 18699 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
cannam@126 18700 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
cannam@126 18701 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
cannam@126 18702 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cannam@126 18703 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
cannam@126 18704 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
cannam@126 18705 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
cannam@126 18706 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
cannam@126 18707 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
cannam@126 18708 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
cannam@126 18709 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
cannam@126 18710 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
cannam@126 18711 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
cannam@126 18712 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
cannam@126 18713 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
cannam@126 18714 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
cannam@126 18715 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
cannam@126 18716 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
cannam@126 18717 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
cannam@126 18718 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
cannam@126 18719 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
cannam@126 18720 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
cannam@126 18721 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
cannam@126 18722 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cannam@126 18723 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
cannam@126 18724 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cannam@126 18725 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
cannam@126 18726 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
cannam@126 18727 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
cannam@126 18728 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
cannam@126 18729 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cannam@126 18730 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
cannam@126 18731 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
cannam@126 18732 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
cannam@126 18733 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cannam@126 18734 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
cannam@126 18735 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cannam@126 18736 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cannam@126 18737 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
cannam@126 18738 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
cannam@126 18739 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@126 18740 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@126 18741 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
cannam@126 18742 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
cannam@126 18743 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
cannam@126 18744 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
cannam@126 18745 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
cannam@126 18746 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
cannam@126 18747 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
cannam@126 18748 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
cannam@126 18749 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
cannam@126 18750 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@126 18751 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@126 18752 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
cannam@126 18753 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
cannam@126 18754 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cannam@126 18755 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
cannam@126 18756 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
cannam@126 18757 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
cannam@126 18758 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cannam@126 18759 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cannam@126 18760 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cannam@126 18761 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
cannam@126 18762 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
cannam@126 18763 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cannam@126 18764 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cannam@126 18765 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
cannam@126 18766 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
cannam@126 18767 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
cannam@126 18768 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
cannam@126 18769 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
cannam@126 18770 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
cannam@126 18771 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
cannam@126 18772 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
cannam@126 18773 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
cannam@126 18774 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
cannam@126 18775 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
cannam@126 18776 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
cannam@126 18777 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
cannam@126 18778 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
cannam@126 18779 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
cannam@126 18780 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
cannam@126 18781 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
cannam@126 18782 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
cannam@126 18783 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
cannam@126 18784 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
cannam@126 18785 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
cannam@126 18786 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
cannam@126 18787 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cannam@126 18788 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
cannam@126 18789 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
cannam@126 18790 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
cannam@126 18791 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
cannam@126 18792 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
cannam@126 18793 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
cannam@126 18794 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
cannam@126 18795 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cannam@126 18796 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
cannam@126 18797 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
cannam@126 18798 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
cannam@126 18799 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
cannam@126 18800 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cannam@126 18801 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cannam@126 18802 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
cannam@126 18803 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
cannam@126 18804 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
cannam@126 18805 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
cannam@126 18806 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
cannam@126 18807 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
cannam@126 18808 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
cannam@126 18809 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
cannam@126 18810 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
cannam@126 18811 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
cannam@126 18812 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
cannam@126 18813 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
cannam@126 18814 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@126 18815 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@126 18816 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
cannam@126 18817 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
cannam@126 18818 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
cannam@126 18819 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
cannam@126 18820 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
cannam@126 18821 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
cannam@126 18822 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
cannam@126 18823 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
cannam@126 18824 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
cannam@126 18825 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
cannam@126 18826 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
cannam@126 18827 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
cannam@126 18828 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
cannam@126 18829 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
cannam@126 18830 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
cannam@126 18831 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
cannam@126 18832 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
cannam@126 18833 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
cannam@126 18834 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18835 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18836 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18837 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18838 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18839 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18840 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18841 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18842 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18843 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18844 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18845 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18846 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18847 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18848 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18849 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18850 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18851 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18852 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18853 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18854 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18855 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18856 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18857 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18858 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18859 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18860 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18861 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18862 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18863 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18864 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18865 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18866 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18867 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18868 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18869 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18870 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18871 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18872 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18873 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18874 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18875 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18876 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18877 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18878 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18879 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18880 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18881 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18882 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18883 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18884 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18885 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18886 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18887 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18888 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18889 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18890 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18891 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18892 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18893 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18894 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18895 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18896 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18897 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18898 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18899 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18900 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18901 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18902 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18903 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18904 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18905 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18906 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18907 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18908 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18909 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18910 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18911 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18912 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18913 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18914 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18915 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18916 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18917 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18918 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18919 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18920 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18921 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18922 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18923 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18924 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18925 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18926 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18927 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18928 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cannam@126 18929 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
cannam@126 18930
cannam@126 18931 LTCC='$LTCC'
cannam@126 18932 LTCFLAGS='$LTCFLAGS'
cannam@126 18933 compiler='$compiler_DEFAULT'
cannam@126 18934
cannam@126 18935 # A function that is used when there is no print builtin or printf.
cannam@126 18936 func_fallback_echo ()
cannam@126 18937 {
cannam@126 18938 eval 'cat <<_LTECHO_EOF
cannam@126 18939 \$1
cannam@126 18940 _LTECHO_EOF'
cannam@126 18941 }
cannam@126 18942
cannam@126 18943 # Quote evaled strings.
cannam@126 18944 for var in SHELL \
cannam@126 18945 ECHO \
cannam@126 18946 PATH_SEPARATOR \
cannam@126 18947 SED \
cannam@126 18948 GREP \
cannam@126 18949 EGREP \
cannam@126 18950 FGREP \
cannam@126 18951 LD \
cannam@126 18952 NM \
cannam@126 18953 LN_S \
cannam@126 18954 lt_SP2NL \
cannam@126 18955 lt_NL2SP \
cannam@126 18956 reload_flag \
cannam@126 18957 OBJDUMP \
cannam@126 18958 deplibs_check_method \
cannam@126 18959 file_magic_cmd \
cannam@126 18960 file_magic_glob \
cannam@126 18961 want_nocaseglob \
cannam@126 18962 DLLTOOL \
cannam@126 18963 sharedlib_from_linklib_cmd \
cannam@126 18964 AR \
cannam@126 18965 AR_FLAGS \
cannam@126 18966 archiver_list_spec \
cannam@126 18967 STRIP \
cannam@126 18968 RANLIB \
cannam@126 18969 CC \
cannam@126 18970 CFLAGS \
cannam@126 18971 compiler \
cannam@126 18972 lt_cv_sys_global_symbol_pipe \
cannam@126 18973 lt_cv_sys_global_symbol_to_cdecl \
cannam@126 18974 lt_cv_sys_global_symbol_to_import \
cannam@126 18975 lt_cv_sys_global_symbol_to_c_name_address \
cannam@126 18976 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cannam@126 18977 lt_cv_nm_interface \
cannam@126 18978 nm_file_list_spec \
cannam@126 18979 lt_cv_truncate_bin \
cannam@126 18980 lt_prog_compiler_no_builtin_flag \
cannam@126 18981 lt_prog_compiler_pic \
cannam@126 18982 lt_prog_compiler_wl \
cannam@126 18983 lt_prog_compiler_static \
cannam@126 18984 lt_cv_prog_compiler_c_o \
cannam@126 18985 need_locks \
cannam@126 18986 MANIFEST_TOOL \
cannam@126 18987 DSYMUTIL \
cannam@126 18988 NMEDIT \
cannam@126 18989 LIPO \
cannam@126 18990 OTOOL \
cannam@126 18991 OTOOL64 \
cannam@126 18992 shrext_cmds \
cannam@126 18993 export_dynamic_flag_spec \
cannam@126 18994 whole_archive_flag_spec \
cannam@126 18995 compiler_needs_object \
cannam@126 18996 with_gnu_ld \
cannam@126 18997 allow_undefined_flag \
cannam@126 18998 no_undefined_flag \
cannam@126 18999 hardcode_libdir_flag_spec \
cannam@126 19000 hardcode_libdir_separator \
cannam@126 19001 exclude_expsyms \
cannam@126 19002 include_expsyms \
cannam@126 19003 file_list_spec \
cannam@126 19004 variables_saved_for_relink \
cannam@126 19005 libname_spec \
cannam@126 19006 library_names_spec \
cannam@126 19007 soname_spec \
cannam@126 19008 install_override_mode \
cannam@126 19009 finish_eval \
cannam@126 19010 old_striplib \
cannam@126 19011 striplib \
cannam@126 19012 compiler_lib_search_dirs \
cannam@126 19013 predep_objects \
cannam@126 19014 postdep_objects \
cannam@126 19015 predeps \
cannam@126 19016 postdeps \
cannam@126 19017 compiler_lib_search_path \
cannam@126 19018 LD_CXX \
cannam@126 19019 LD_RC \
cannam@126 19020 reload_flag_CXX \
cannam@126 19021 reload_flag_RC \
cannam@126 19022 compiler_CXX \
cannam@126 19023 compiler_RC \
cannam@126 19024 lt_prog_compiler_no_builtin_flag_CXX \
cannam@126 19025 lt_prog_compiler_no_builtin_flag_RC \
cannam@126 19026 lt_prog_compiler_pic_CXX \
cannam@126 19027 lt_prog_compiler_pic_RC \
cannam@126 19028 lt_prog_compiler_wl_CXX \
cannam@126 19029 lt_prog_compiler_wl_RC \
cannam@126 19030 lt_prog_compiler_static_CXX \
cannam@126 19031 lt_prog_compiler_static_RC \
cannam@126 19032 lt_cv_prog_compiler_c_o_CXX \
cannam@126 19033 lt_cv_prog_compiler_c_o_RC \
cannam@126 19034 export_dynamic_flag_spec_CXX \
cannam@126 19035 export_dynamic_flag_spec_RC \
cannam@126 19036 whole_archive_flag_spec_CXX \
cannam@126 19037 whole_archive_flag_spec_RC \
cannam@126 19038 compiler_needs_object_CXX \
cannam@126 19039 compiler_needs_object_RC \
cannam@126 19040 with_gnu_ld_CXX \
cannam@126 19041 with_gnu_ld_RC \
cannam@126 19042 allow_undefined_flag_CXX \
cannam@126 19043 allow_undefined_flag_RC \
cannam@126 19044 no_undefined_flag_CXX \
cannam@126 19045 no_undefined_flag_RC \
cannam@126 19046 hardcode_libdir_flag_spec_CXX \
cannam@126 19047 hardcode_libdir_flag_spec_RC \
cannam@126 19048 hardcode_libdir_separator_CXX \
cannam@126 19049 hardcode_libdir_separator_RC \
cannam@126 19050 exclude_expsyms_CXX \
cannam@126 19051 exclude_expsyms_RC \
cannam@126 19052 include_expsyms_CXX \
cannam@126 19053 include_expsyms_RC \
cannam@126 19054 file_list_spec_CXX \
cannam@126 19055 file_list_spec_RC \
cannam@126 19056 compiler_lib_search_dirs_CXX \
cannam@126 19057 compiler_lib_search_dirs_RC \
cannam@126 19058 predep_objects_CXX \
cannam@126 19059 predep_objects_RC \
cannam@126 19060 postdep_objects_CXX \
cannam@126 19061 postdep_objects_RC \
cannam@126 19062 predeps_CXX \
cannam@126 19063 predeps_RC \
cannam@126 19064 postdeps_CXX \
cannam@126 19065 postdeps_RC \
cannam@126 19066 compiler_lib_search_path_CXX \
cannam@126 19067 compiler_lib_search_path_RC; do
cannam@126 19068 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cannam@126 19069 *[\\\\\\\`\\"\\\$]*)
cannam@126 19070 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
cannam@126 19071 ;;
cannam@126 19072 *)
cannam@126 19073 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
cannam@126 19074 ;;
cannam@126 19075 esac
cannam@126 19076 done
cannam@126 19077
cannam@126 19078 # Double-quote double-evaled strings.
cannam@126 19079 for var in reload_cmds \
cannam@126 19080 old_postinstall_cmds \
cannam@126 19081 old_postuninstall_cmds \
cannam@126 19082 old_archive_cmds \
cannam@126 19083 extract_expsyms_cmds \
cannam@126 19084 old_archive_from_new_cmds \
cannam@126 19085 old_archive_from_expsyms_cmds \
cannam@126 19086 archive_cmds \
cannam@126 19087 archive_expsym_cmds \
cannam@126 19088 module_cmds \
cannam@126 19089 module_expsym_cmds \
cannam@126 19090 export_symbols_cmds \
cannam@126 19091 prelink_cmds \
cannam@126 19092 postlink_cmds \
cannam@126 19093 postinstall_cmds \
cannam@126 19094 postuninstall_cmds \
cannam@126 19095 finish_cmds \
cannam@126 19096 sys_lib_search_path_spec \
cannam@126 19097 configure_time_dlsearch_path \
cannam@126 19098 configure_time_lt_sys_library_path \
cannam@126 19099 reload_cmds_CXX \
cannam@126 19100 reload_cmds_RC \
cannam@126 19101 old_archive_cmds_CXX \
cannam@126 19102 old_archive_cmds_RC \
cannam@126 19103 old_archive_from_new_cmds_CXX \
cannam@126 19104 old_archive_from_new_cmds_RC \
cannam@126 19105 old_archive_from_expsyms_cmds_CXX \
cannam@126 19106 old_archive_from_expsyms_cmds_RC \
cannam@126 19107 archive_cmds_CXX \
cannam@126 19108 archive_cmds_RC \
cannam@126 19109 archive_expsym_cmds_CXX \
cannam@126 19110 archive_expsym_cmds_RC \
cannam@126 19111 module_cmds_CXX \
cannam@126 19112 module_cmds_RC \
cannam@126 19113 module_expsym_cmds_CXX \
cannam@126 19114 module_expsym_cmds_RC \
cannam@126 19115 export_symbols_cmds_CXX \
cannam@126 19116 export_symbols_cmds_RC \
cannam@126 19117 prelink_cmds_CXX \
cannam@126 19118 prelink_cmds_RC \
cannam@126 19119 postlink_cmds_CXX \
cannam@126 19120 postlink_cmds_RC; do
cannam@126 19121 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cannam@126 19122 *[\\\\\\\`\\"\\\$]*)
cannam@126 19123 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
cannam@126 19124 ;;
cannam@126 19125 *)
cannam@126 19126 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
cannam@126 19127 ;;
cannam@126 19128 esac
cannam@126 19129 done
cannam@126 19130
cannam@126 19131 ac_aux_dir='$ac_aux_dir'
cannam@126 19132
cannam@126 19133 # See if we are running on zsh, and set the options that allow our
cannam@126 19134 # commands through without removal of \ escapes INIT.
cannam@126 19135 if test -n "\${ZSH_VERSION+set}"; then
cannam@126 19136 setopt NO_GLOB_SUBST
cannam@126 19137 fi
cannam@126 19138
cannam@126 19139
cannam@126 19140 PACKAGE='$PACKAGE'
cannam@126 19141 VERSION='$VERSION'
cannam@126 19142 RM='$RM'
cannam@126 19143 ofile='$ofile'
cannam@126 19144
cannam@126 19145
cannam@126 19146
cannam@126 19147
cannam@126 19148
cannam@126 19149
cannam@126 19150
cannam@126 19151
cannam@126 19152 _ACEOF
cannam@126 19153
cannam@126 19154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@126 19155
cannam@126 19156 # Handling of arguments.
cannam@126 19157 for ac_config_target in $ac_config_targets
cannam@126 19158 do
cannam@126 19159 case $ac_config_target in
cannam@126 19160 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
cannam@126 19161 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
cannam@126 19162 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cannam@126 19163 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
cannam@126 19164 "M4/Makefile") CONFIG_FILES="$CONFIG_FILES M4/Makefile" ;;
cannam@126 19165 "src/Version_script") CONFIG_FILES="$CONFIG_FILES src/Version_script" ;;
cannam@126 19166 "Win32/Makefile") CONFIG_FILES="$CONFIG_FILES Win32/Makefile" ;;
cannam@126 19167 "Win32/Makefile.mingw") CONFIG_FILES="$CONFIG_FILES Win32/Makefile.mingw" ;;
cannam@126 19168 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
cannam@126 19169 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
cannam@126 19170 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
cannam@126 19171 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
cannam@126 19172 "libsamplerate.spec") CONFIG_FILES="$CONFIG_FILES libsamplerate.spec" ;;
cannam@126 19173 "samplerate.pc") CONFIG_FILES="$CONFIG_FILES samplerate.pc" ;;
cannam@126 19174
cannam@126 19175 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cannam@126 19176 esac
cannam@126 19177 done
cannam@126 19178
cannam@126 19179
cannam@126 19180 # If the user did not use the arguments to specify the items to instantiate,
cannam@126 19181 # then the envvar interface is used. Set only those that are not.
cannam@126 19182 # We use the long form for the default assignment because of an extremely
cannam@126 19183 # bizarre bug on SunOS 4.1.3.
cannam@126 19184 if $ac_need_defaults; then
cannam@126 19185 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
cannam@126 19186 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
cannam@126 19187 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
cannam@126 19188 fi
cannam@126 19189
cannam@126 19190 # Have a temporary directory for convenience. Make it in the build tree
cannam@126 19191 # simply because there is no reason against having it here, and in addition,
cannam@126 19192 # creating and moving files from /tmp can sometimes cause problems.
cannam@126 19193 # Hook for its removal unless debugging.
cannam@126 19194 # Note that there is a small window in which the directory will not be cleaned:
cannam@126 19195 # after its creation but before its name has been assigned to `$tmp'.
cannam@126 19196 $debug ||
cannam@126 19197 {
cannam@126 19198 tmp= ac_tmp=
cannam@126 19199 trap 'exit_status=$?
cannam@126 19200 : "${ac_tmp:=$tmp}"
cannam@126 19201 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cannam@126 19202 ' 0
cannam@126 19203 trap 'as_fn_exit 1' 1 2 13 15
cannam@126 19204 }
cannam@126 19205 # Create a (secure) tmp directory for tmp files.
cannam@126 19206
cannam@126 19207 {
cannam@126 19208 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cannam@126 19209 test -d "$tmp"
cannam@126 19210 } ||
cannam@126 19211 {
cannam@126 19212 tmp=./conf$$-$RANDOM
cannam@126 19213 (umask 077 && mkdir "$tmp")
cannam@126 19214 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cannam@126 19215 ac_tmp=$tmp
cannam@126 19216
cannam@126 19217 # Set up the scripts for CONFIG_FILES section.
cannam@126 19218 # No need to generate them if there are no CONFIG_FILES.
cannam@126 19219 # This happens for instance with `./config.status config.h'.
cannam@126 19220 if test -n "$CONFIG_FILES"; then
cannam@126 19221
cannam@126 19222
cannam@126 19223 ac_cr=`echo X | tr X '\015'`
cannam@126 19224 # On cygwin, bash can eat \r inside `` if the user requested igncr.
cannam@126 19225 # But we know of no other shell where ac_cr would be empty at this
cannam@126 19226 # point, so we can use a bashism as a fallback.
cannam@126 19227 if test "x$ac_cr" = x; then
cannam@126 19228 eval ac_cr=\$\'\\r\'
cannam@126 19229 fi
cannam@126 19230 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
cannam@126 19231 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cannam@126 19232 ac_cs_awk_cr='\\r'
cannam@126 19233 else
cannam@126 19234 ac_cs_awk_cr=$ac_cr
cannam@126 19235 fi
cannam@126 19236
cannam@126 19237 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cannam@126 19238 _ACEOF
cannam@126 19239
cannam@126 19240
cannam@126 19241 {
cannam@126 19242 echo "cat >conf$$subs.awk <<_ACEOF" &&
cannam@126 19243 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
cannam@126 19244 echo "_ACEOF"
cannam@126 19245 } >conf$$subs.sh ||
cannam@126 19246 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cannam@126 19247 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cannam@126 19248 ac_delim='%!_!# '
cannam@126 19249 for ac_last_try in false false false false false :; do
cannam@126 19250 . ./conf$$subs.sh ||
cannam@126 19251 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cannam@126 19252
cannam@126 19253 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
cannam@126 19254 if test $ac_delim_n = $ac_delim_num; then
cannam@126 19255 break
cannam@126 19256 elif $ac_last_try; then
cannam@126 19257 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cannam@126 19258 else
cannam@126 19259 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
cannam@126 19260 fi
cannam@126 19261 done
cannam@126 19262 rm -f conf$$subs.sh
cannam@126 19263
cannam@126 19264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@126 19265 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cannam@126 19266 _ACEOF
cannam@126 19267 sed -n '
cannam@126 19268 h
cannam@126 19269 s/^/S["/; s/!.*/"]=/
cannam@126 19270 p
cannam@126 19271 g
cannam@126 19272 s/^[^!]*!//
cannam@126 19273 :repl
cannam@126 19274 t repl
cannam@126 19275 s/'"$ac_delim"'$//
cannam@126 19276 t delim
cannam@126 19277 :nl
cannam@126 19278 h
cannam@126 19279 s/\(.\{148\}\)..*/\1/
cannam@126 19280 t more1
cannam@126 19281 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
cannam@126 19282 p
cannam@126 19283 n
cannam@126 19284 b repl
cannam@126 19285 :more1
cannam@126 19286 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
cannam@126 19287 p
cannam@126 19288 g
cannam@126 19289 s/.\{148\}//
cannam@126 19290 t nl
cannam@126 19291 :delim
cannam@126 19292 h
cannam@126 19293 s/\(.\{148\}\)..*/\1/
cannam@126 19294 t more2
cannam@126 19295 s/["\\]/\\&/g; s/^/"/; s/$/"/
cannam@126 19296 p
cannam@126 19297 b
cannam@126 19298 :more2
cannam@126 19299 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
cannam@126 19300 p
cannam@126 19301 g
cannam@126 19302 s/.\{148\}//
cannam@126 19303 t delim
cannam@126 19304 ' <conf$$subs.awk | sed '
cannam@126 19305 /^[^""]/{
cannam@126 19306 N
cannam@126 19307 s/\n//
cannam@126 19308 }
cannam@126 19309 ' >>$CONFIG_STATUS || ac_write_fail=1
cannam@126 19310 rm -f conf$$subs.awk
cannam@126 19311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@126 19312 _ACAWK
cannam@126 19313 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cannam@126 19314 for (key in S) S_is_set[key] = 1
cannam@126 19315 FS = ""
cannam@126 19316
cannam@126 19317 }
cannam@126 19318 {
cannam@126 19319 line = $ 0
cannam@126 19320 nfields = split(line, field, "@")
cannam@126 19321 substed = 0
cannam@126 19322 len = length(field[1])
cannam@126 19323 for (i = 2; i < nfields; i++) {
cannam@126 19324 key = field[i]
cannam@126 19325 keylen = length(key)
cannam@126 19326 if (S_is_set[key]) {
cannam@126 19327 value = S[key]
cannam@126 19328 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
cannam@126 19329 len += length(value) + length(field[++i])
cannam@126 19330 substed = 1
cannam@126 19331 } else
cannam@126 19332 len += 1 + keylen
cannam@126 19333 }
cannam@126 19334
cannam@126 19335 print line
cannam@126 19336 }
cannam@126 19337
cannam@126 19338 _ACAWK
cannam@126 19339 _ACEOF
cannam@126 19340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@126 19341 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
cannam@126 19342 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
cannam@126 19343 else
cannam@126 19344 cat
cannam@126 19345 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cannam@126 19346 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cannam@126 19347 _ACEOF
cannam@126 19348
cannam@126 19349 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
cannam@126 19350 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cannam@126 19351 # trailing colons and then remove the whole line if VPATH becomes empty
cannam@126 19352 # (actually we leave an empty line to preserve line numbers).
cannam@126 19353 if test "x$srcdir" = x.; then
cannam@126 19354 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
cannam@126 19355 h
cannam@126 19356 s///
cannam@126 19357 s/^/:/
cannam@126 19358 s/[ ]*$/:/
cannam@126 19359 s/:\$(srcdir):/:/g
cannam@126 19360 s/:\${srcdir}:/:/g
cannam@126 19361 s/:@srcdir@:/:/g
cannam@126 19362 s/^:*//
cannam@126 19363 s/:*$//
cannam@126 19364 x
cannam@126 19365 s/\(=[ ]*\).*/\1/
cannam@126 19366 G
cannam@126 19367 s/\n//
cannam@126 19368 s/^[^=]*=[ ]*$//
cannam@126 19369 }'
cannam@126 19370 fi
cannam@126 19371
cannam@126 19372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@126 19373 fi # test -n "$CONFIG_FILES"
cannam@126 19374
cannam@126 19375 # Set up the scripts for CONFIG_HEADERS section.
cannam@126 19376 # No need to generate them if there are no CONFIG_HEADERS.
cannam@126 19377 # This happens for instance with `./config.status Makefile'.
cannam@126 19378 if test -n "$CONFIG_HEADERS"; then
cannam@126 19379 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cannam@126 19380 BEGIN {
cannam@126 19381 _ACEOF
cannam@126 19382
cannam@126 19383 # Transform confdefs.h into an awk script `defines.awk', embedded as
cannam@126 19384 # here-document in config.status, that substitutes the proper values into
cannam@126 19385 # config.h.in to produce config.h.
cannam@126 19386
cannam@126 19387 # Create a delimiter string that does not exist in confdefs.h, to ease
cannam@126 19388 # handling of long lines.
cannam@126 19389 ac_delim='%!_!# '
cannam@126 19390 for ac_last_try in false false :; do
cannam@126 19391 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
cannam@126 19392 if test -z "$ac_tt"; then
cannam@126 19393 break
cannam@126 19394 elif $ac_last_try; then
cannam@126 19395 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cannam@126 19396 else
cannam@126 19397 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
cannam@126 19398 fi
cannam@126 19399 done
cannam@126 19400
cannam@126 19401 # For the awk script, D is an array of macro values keyed by name,
cannam@126 19402 # likewise P contains macro parameters if any. Preserve backslash
cannam@126 19403 # newline sequences.
cannam@126 19404
cannam@126 19405 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
cannam@126 19406 sed -n '
cannam@126 19407 s/.\{148\}/&'"$ac_delim"'/g
cannam@126 19408 t rset
cannam@126 19409 :rset
cannam@126 19410 s/^[ ]*#[ ]*define[ ][ ]*/ /
cannam@126 19411 t def
cannam@126 19412 d
cannam@126 19413 :def
cannam@126 19414 s/\\$//
cannam@126 19415 t bsnl
cannam@126 19416 s/["\\]/\\&/g
cannam@126 19417 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
cannam@126 19418 D["\1"]=" \3"/p
cannam@126 19419 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
cannam@126 19420 d
cannam@126 19421 :bsnl
cannam@126 19422 s/["\\]/\\&/g
cannam@126 19423 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
cannam@126 19424 D["\1"]=" \3\\\\\\n"\\/p
cannam@126 19425 t cont
cannam@126 19426 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
cannam@126 19427 t cont
cannam@126 19428 d
cannam@126 19429 :cont
cannam@126 19430 n
cannam@126 19431 s/.\{148\}/&'"$ac_delim"'/g
cannam@126 19432 t clear
cannam@126 19433 :clear
cannam@126 19434 s/\\$//
cannam@126 19435 t bsnlc
cannam@126 19436 s/["\\]/\\&/g; s/^/"/; s/$/"/p
cannam@126 19437 d
cannam@126 19438 :bsnlc
cannam@126 19439 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
cannam@126 19440 b cont
cannam@126 19441 ' <confdefs.h | sed '
cannam@126 19442 s/'"$ac_delim"'/"\\\
cannam@126 19443 "/g' >>$CONFIG_STATUS || ac_write_fail=1
cannam@126 19444
cannam@126 19445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@126 19446 for (key in D) D_is_set[key] = 1
cannam@126 19447 FS = ""
cannam@126 19448 }
cannam@126 19449 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
cannam@126 19450 line = \$ 0
cannam@126 19451 split(line, arg, " ")
cannam@126 19452 if (arg[1] == "#") {
cannam@126 19453 defundef = arg[2]
cannam@126 19454 mac1 = arg[3]
cannam@126 19455 } else {
cannam@126 19456 defundef = substr(arg[1], 2)
cannam@126 19457 mac1 = arg[2]
cannam@126 19458 }
cannam@126 19459 split(mac1, mac2, "(") #)
cannam@126 19460 macro = mac2[1]
cannam@126 19461 prefix = substr(line, 1, index(line, defundef) - 1)
cannam@126 19462 if (D_is_set[macro]) {
cannam@126 19463 # Preserve the white space surrounding the "#".
cannam@126 19464 print prefix "define", macro P[macro] D[macro]
cannam@126 19465 next
cannam@126 19466 } else {
cannam@126 19467 # Replace #undef with comments. This is necessary, for example,
cannam@126 19468 # in the case of _POSIX_SOURCE, which is predefined and required
cannam@126 19469 # on some systems where configure will not decide to define it.
cannam@126 19470 if (defundef == "undef") {
cannam@126 19471 print "/*", prefix defundef, macro, "*/"
cannam@126 19472 next
cannam@126 19473 }
cannam@126 19474 }
cannam@126 19475 }
cannam@126 19476 { print }
cannam@126 19477 _ACAWK
cannam@126 19478 _ACEOF
cannam@126 19479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@126 19480 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cannam@126 19481 fi # test -n "$CONFIG_HEADERS"
cannam@126 19482
cannam@126 19483
cannam@126 19484 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
cannam@126 19485 shift
cannam@126 19486 for ac_tag
cannam@126 19487 do
cannam@126 19488 case $ac_tag in
cannam@126 19489 :[FHLC]) ac_mode=$ac_tag; continue;;
cannam@126 19490 esac
cannam@126 19491 case $ac_mode$ac_tag in
cannam@126 19492 :[FHL]*:*);;
cannam@126 19493 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cannam@126 19494 :[FH]-) ac_tag=-:-;;
cannam@126 19495 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
cannam@126 19496 esac
cannam@126 19497 ac_save_IFS=$IFS
cannam@126 19498 IFS=:
cannam@126 19499 set x $ac_tag
cannam@126 19500 IFS=$ac_save_IFS
cannam@126 19501 shift
cannam@126 19502 ac_file=$1
cannam@126 19503 shift
cannam@126 19504
cannam@126 19505 case $ac_mode in
cannam@126 19506 :L) ac_source=$1;;
cannam@126 19507 :[FH])
cannam@126 19508 ac_file_inputs=
cannam@126 19509 for ac_f
cannam@126 19510 do
cannam@126 19511 case $ac_f in
cannam@126 19512 -) ac_f="$ac_tmp/stdin";;
cannam@126 19513 *) # Look for the file first in the build tree, then in the source tree
cannam@126 19514 # (if the path is not absolute). The absolute path cannot be DOS-style,
cannam@126 19515 # because $ac_f cannot contain `:'.
cannam@126 19516 test -f "$ac_f" ||
cannam@126 19517 case $ac_f in
cannam@126 19518 [\\/$]*) false;;
cannam@126 19519 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
cannam@126 19520 esac ||
cannam@126 19521 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cannam@126 19522 esac
cannam@126 19523 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cannam@126 19524 as_fn_append ac_file_inputs " '$ac_f'"
cannam@126 19525 done
cannam@126 19526
cannam@126 19527 # Let's still pretend it is `configure' which instantiates (i.e., don't
cannam@126 19528 # use $as_me), people would be surprised to read:
cannam@126 19529 # /* config.h. Generated by config.status. */
cannam@126 19530 configure_input='Generated from '`
cannam@126 19531 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
cannam@126 19532 `' by configure.'
cannam@126 19533 if test x"$ac_file" != x-; then
cannam@126 19534 configure_input="$ac_file. $configure_input"
cannam@126 19535 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cannam@126 19536 $as_echo "$as_me: creating $ac_file" >&6;}
cannam@126 19537 fi
cannam@126 19538 # Neutralize special characters interpreted by sed in replacement strings.
cannam@126 19539 case $configure_input in #(
cannam@126 19540 *\&* | *\|* | *\\* )
cannam@126 19541 ac_sed_conf_input=`$as_echo "$configure_input" |
cannam@126 19542 sed 's/[\\\\&|]/\\\\&/g'`;; #(
cannam@126 19543 *) ac_sed_conf_input=$configure_input;;
cannam@126 19544 esac
cannam@126 19545
cannam@126 19546 case $ac_tag in
cannam@126 19547 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cannam@126 19548 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cannam@126 19549 esac
cannam@126 19550 ;;
cannam@126 19551 esac
cannam@126 19552
cannam@126 19553 ac_dir=`$as_dirname -- "$ac_file" ||
cannam@126 19554 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@126 19555 X"$ac_file" : 'X\(//\)[^/]' \| \
cannam@126 19556 X"$ac_file" : 'X\(//\)$' \| \
cannam@126 19557 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
cannam@126 19558 $as_echo X"$ac_file" |
cannam@126 19559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@126 19560 s//\1/
cannam@126 19561 q
cannam@126 19562 }
cannam@126 19563 /^X\(\/\/\)[^/].*/{
cannam@126 19564 s//\1/
cannam@126 19565 q
cannam@126 19566 }
cannam@126 19567 /^X\(\/\/\)$/{
cannam@126 19568 s//\1/
cannam@126 19569 q
cannam@126 19570 }
cannam@126 19571 /^X\(\/\).*/{
cannam@126 19572 s//\1/
cannam@126 19573 q
cannam@126 19574 }
cannam@126 19575 s/.*/./; q'`
cannam@126 19576 as_dir="$ac_dir"; as_fn_mkdir_p
cannam@126 19577 ac_builddir=.
cannam@126 19578
cannam@126 19579 case "$ac_dir" in
cannam@126 19580 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@126 19581 *)
cannam@126 19582 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
cannam@126 19583 # A ".." for each directory in $ac_dir_suffix.
cannam@126 19584 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
cannam@126 19585 case $ac_top_builddir_sub in
cannam@126 19586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@126 19587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
cannam@126 19588 esac ;;
cannam@126 19589 esac
cannam@126 19590 ac_abs_top_builddir=$ac_pwd
cannam@126 19591 ac_abs_builddir=$ac_pwd$ac_dir_suffix
cannam@126 19592 # for backward compatibility:
cannam@126 19593 ac_top_builddir=$ac_top_build_prefix
cannam@126 19594
cannam@126 19595 case $srcdir in
cannam@126 19596 .) # We are building in place.
cannam@126 19597 ac_srcdir=.
cannam@126 19598 ac_top_srcdir=$ac_top_builddir_sub
cannam@126 19599 ac_abs_top_srcdir=$ac_pwd ;;
cannam@126 19600 [\\/]* | ?:[\\/]* ) # Absolute name.
cannam@126 19601 ac_srcdir=$srcdir$ac_dir_suffix;
cannam@126 19602 ac_top_srcdir=$srcdir
cannam@126 19603 ac_abs_top_srcdir=$srcdir ;;
cannam@126 19604 *) # Relative name.
cannam@126 19605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
cannam@126 19606 ac_top_srcdir=$ac_top_build_prefix$srcdir
cannam@126 19607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
cannam@126 19608 esac
cannam@126 19609 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
cannam@126 19610
cannam@126 19611
cannam@126 19612 case $ac_mode in
cannam@126 19613 :F)
cannam@126 19614 #
cannam@126 19615 # CONFIG_FILE
cannam@126 19616 #
cannam@126 19617
cannam@126 19618 case $INSTALL in
cannam@126 19619 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cannam@126 19620 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
cannam@126 19621 esac
cannam@126 19622 ac_MKDIR_P=$MKDIR_P
cannam@126 19623 case $MKDIR_P in
cannam@126 19624 [\\/$]* | ?:[\\/]* ) ;;
cannam@126 19625 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
cannam@126 19626 esac
cannam@126 19627 _ACEOF
cannam@126 19628
cannam@126 19629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@126 19630 # If the template does not know about datarootdir, expand it.
cannam@126 19631 # FIXME: This hack should be removed a few years after 2.60.
cannam@126 19632 ac_datarootdir_hack=; ac_datarootdir_seen=
cannam@126 19633 ac_sed_dataroot='
cannam@126 19634 /datarootdir/ {
cannam@126 19635 p
cannam@126 19636 q
cannam@126 19637 }
cannam@126 19638 /@datadir@/p
cannam@126 19639 /@docdir@/p
cannam@126 19640 /@infodir@/p
cannam@126 19641 /@localedir@/p
cannam@126 19642 /@mandir@/p'
cannam@126 19643 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
cannam@126 19644 *datarootdir*) ac_datarootdir_seen=yes;;
cannam@126 19645 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cannam@126 19646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cannam@126 19647 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
cannam@126 19648 _ACEOF
cannam@126 19649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@126 19650 ac_datarootdir_hack='
cannam@126 19651 s&@datadir@&$datadir&g
cannam@126 19652 s&@docdir@&$docdir&g
cannam@126 19653 s&@infodir@&$infodir&g
cannam@126 19654 s&@localedir@&$localedir&g
cannam@126 19655 s&@mandir@&$mandir&g
cannam@126 19656 s&\\\${datarootdir}&$datarootdir&g' ;;
cannam@126 19657 esac
cannam@126 19658 _ACEOF
cannam@126 19659
cannam@126 19660 # Neutralize VPATH when `$srcdir' = `.'.
cannam@126 19661 # Shell code in configure.ac might set extrasub.
cannam@126 19662 # FIXME: do we really want to maintain this feature?
cannam@126 19663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@126 19664 ac_sed_extra="$ac_vpsub
cannam@126 19665 $extrasub
cannam@126 19666 _ACEOF
cannam@126 19667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@126 19668 :t
cannam@126 19669 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
cannam@126 19670 s|@configure_input@|$ac_sed_conf_input|;t t
cannam@126 19671 s&@top_builddir@&$ac_top_builddir_sub&;t t
cannam@126 19672 s&@top_build_prefix@&$ac_top_build_prefix&;t t
cannam@126 19673 s&@srcdir@&$ac_srcdir&;t t
cannam@126 19674 s&@abs_srcdir@&$ac_abs_srcdir&;t t
cannam@126 19675 s&@top_srcdir@&$ac_top_srcdir&;t t
cannam@126 19676 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
cannam@126 19677 s&@builddir@&$ac_builddir&;t t
cannam@126 19678 s&@abs_builddir@&$ac_abs_builddir&;t t
cannam@126 19679 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
cannam@126 19680 s&@INSTALL@&$ac_INSTALL&;t t
cannam@126 19681 s&@MKDIR_P@&$ac_MKDIR_P&;t t
cannam@126 19682 $ac_datarootdir_hack
cannam@126 19683 "
cannam@126 19684 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
cannam@126 19685 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@126 19686
cannam@126 19687 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cannam@126 19688 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
cannam@126 19689 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
cannam@126 19690 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cannam@126 19691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cannam@126 19692 which seems to be undefined. Please make sure it is defined" >&5
cannam@126 19693 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cannam@126 19694 which seems to be undefined. Please make sure it is defined" >&2;}
cannam@126 19695
cannam@126 19696 rm -f "$ac_tmp/stdin"
cannam@126 19697 case $ac_file in
cannam@126 19698 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
cannam@126 19699 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cannam@126 19700 esac \
cannam@126 19701 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@126 19702 ;;
cannam@126 19703 :H)
cannam@126 19704 #
cannam@126 19705 # CONFIG_HEADER
cannam@126 19706 #
cannam@126 19707 if test x"$ac_file" != x-; then
cannam@126 19708 {
cannam@126 19709 $as_echo "/* $configure_input */" \
cannam@126 19710 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
cannam@126 19711 } >"$ac_tmp/config.h" \
cannam@126 19712 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@126 19713 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cannam@126 19714 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cannam@126 19715 $as_echo "$as_me: $ac_file is unchanged" >&6;}
cannam@126 19716 else
cannam@126 19717 rm -f "$ac_file"
cannam@126 19718 mv "$ac_tmp/config.h" "$ac_file" \
cannam@126 19719 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@126 19720 fi
cannam@126 19721 else
cannam@126 19722 $as_echo "/* $configure_input */" \
cannam@126 19723 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cannam@126 19724 || as_fn_error $? "could not create -" "$LINENO" 5
cannam@126 19725 fi
cannam@126 19726 # Compute "$ac_file"'s index in $config_headers.
cannam@126 19727 _am_arg="$ac_file"
cannam@126 19728 _am_stamp_count=1
cannam@126 19729 for _am_header in $config_headers :; do
cannam@126 19730 case $_am_header in
cannam@126 19731 $_am_arg | $_am_arg:* )
cannam@126 19732 break ;;
cannam@126 19733 * )
cannam@126 19734 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
cannam@126 19735 esac
cannam@126 19736 done
cannam@126 19737 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
cannam@126 19738 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@126 19739 X"$_am_arg" : 'X\(//\)[^/]' \| \
cannam@126 19740 X"$_am_arg" : 'X\(//\)$' \| \
cannam@126 19741 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
cannam@126 19742 $as_echo X"$_am_arg" |
cannam@126 19743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@126 19744 s//\1/
cannam@126 19745 q
cannam@126 19746 }
cannam@126 19747 /^X\(\/\/\)[^/].*/{
cannam@126 19748 s//\1/
cannam@126 19749 q
cannam@126 19750 }
cannam@126 19751 /^X\(\/\/\)$/{
cannam@126 19752 s//\1/
cannam@126 19753 q
cannam@126 19754 }
cannam@126 19755 /^X\(\/\).*/{
cannam@126 19756 s//\1/
cannam@126 19757 q
cannam@126 19758 }
cannam@126 19759 s/.*/./; q'`/stamp-h$_am_stamp_count
cannam@126 19760 ;;
cannam@126 19761
cannam@126 19762 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cannam@126 19763 $as_echo "$as_me: executing $ac_file commands" >&6;}
cannam@126 19764 ;;
cannam@126 19765 esac
cannam@126 19766
cannam@126 19767
cannam@126 19768 case $ac_file$ac_mode in
cannam@126 19769 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cannam@126 19770 # Older Autoconf quotes --file arguments for eval, but not when files
cannam@126 19771 # are listed without --file. Let's play safe and only enable the eval
cannam@126 19772 # if we detect the quoting.
cannam@126 19773 case $CONFIG_FILES in
cannam@126 19774 *\'*) eval set x "$CONFIG_FILES" ;;
cannam@126 19775 *) set x $CONFIG_FILES ;;
cannam@126 19776 esac
cannam@126 19777 shift
cannam@126 19778 for mf
cannam@126 19779 do
cannam@126 19780 # Strip MF so we end up with the name of the file.
cannam@126 19781 mf=`echo "$mf" | sed -e 's/:.*$//'`
cannam@126 19782 # Check whether this is an Automake generated Makefile or not.
cannam@126 19783 # We used to match only the files named 'Makefile.in', but
cannam@126 19784 # some people rename them; so instead we look at the file content.
cannam@126 19785 # Grep'ing the first line is not enough: some people post-process
cannam@126 19786 # each Makefile.in and add a new line on top of each file to say so.
cannam@126 19787 # Grep'ing the whole file is not good either: AIX grep has a line
cannam@126 19788 # limit of 2048, but all sed's we know have understand at least 4000.
cannam@126 19789 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
cannam@126 19790 dirpart=`$as_dirname -- "$mf" ||
cannam@126 19791 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@126 19792 X"$mf" : 'X\(//\)[^/]' \| \
cannam@126 19793 X"$mf" : 'X\(//\)$' \| \
cannam@126 19794 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
cannam@126 19795 $as_echo X"$mf" |
cannam@126 19796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@126 19797 s//\1/
cannam@126 19798 q
cannam@126 19799 }
cannam@126 19800 /^X\(\/\/\)[^/].*/{
cannam@126 19801 s//\1/
cannam@126 19802 q
cannam@126 19803 }
cannam@126 19804 /^X\(\/\/\)$/{
cannam@126 19805 s//\1/
cannam@126 19806 q
cannam@126 19807 }
cannam@126 19808 /^X\(\/\).*/{
cannam@126 19809 s//\1/
cannam@126 19810 q
cannam@126 19811 }
cannam@126 19812 s/.*/./; q'`
cannam@126 19813 else
cannam@126 19814 continue
cannam@126 19815 fi
cannam@126 19816 # Extract the definition of DEPDIR, am__include, and am__quote
cannam@126 19817 # from the Makefile without running 'make'.
cannam@126 19818 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
cannam@126 19819 test -z "$DEPDIR" && continue
cannam@126 19820 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cannam@126 19821 test -z "$am__include" && continue
cannam@126 19822 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cannam@126 19823 # Find all dependency output files, they are included files with
cannam@126 19824 # $(DEPDIR) in their names. We invoke sed twice because it is the
cannam@126 19825 # simplest approach to changing $(DEPDIR) to its actual value in the
cannam@126 19826 # expansion.
cannam@126 19827 for file in `sed -n "
cannam@126 19828 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cannam@126 19829 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cannam@126 19830 # Make sure the directory exists.
cannam@126 19831 test -f "$dirpart/$file" && continue
cannam@126 19832 fdir=`$as_dirname -- "$file" ||
cannam@126 19833 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@126 19834 X"$file" : 'X\(//\)[^/]' \| \
cannam@126 19835 X"$file" : 'X\(//\)$' \| \
cannam@126 19836 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
cannam@126 19837 $as_echo X"$file" |
cannam@126 19838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@126 19839 s//\1/
cannam@126 19840 q
cannam@126 19841 }
cannam@126 19842 /^X\(\/\/\)[^/].*/{
cannam@126 19843 s//\1/
cannam@126 19844 q
cannam@126 19845 }
cannam@126 19846 /^X\(\/\/\)$/{
cannam@126 19847 s//\1/
cannam@126 19848 q
cannam@126 19849 }
cannam@126 19850 /^X\(\/\).*/{
cannam@126 19851 s//\1/
cannam@126 19852 q
cannam@126 19853 }
cannam@126 19854 s/.*/./; q'`
cannam@126 19855 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cannam@126 19856 # echo "creating $dirpart/$file"
cannam@126 19857 echo '# dummy' > "$dirpart/$file"
cannam@126 19858 done
cannam@126 19859 done
cannam@126 19860 }
cannam@126 19861 ;;
cannam@126 19862 "libtool":C)
cannam@126 19863
cannam@126 19864 # See if we are running on zsh, and set the options that allow our
cannam@126 19865 # commands through without removal of \ escapes.
cannam@126 19866 if test -n "${ZSH_VERSION+set}"; then
cannam@126 19867 setopt NO_GLOB_SUBST
cannam@126 19868 fi
cannam@126 19869
cannam@126 19870 cfgfile=${ofile}T
cannam@126 19871 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
cannam@126 19872 $RM "$cfgfile"
cannam@126 19873
cannam@126 19874 cat <<_LT_EOF >> "$cfgfile"
cannam@126 19875 #! $SHELL
cannam@126 19876 # Generated automatically by $as_me ($PACKAGE) $VERSION
cannam@126 19877 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
cannam@126 19878
cannam@126 19879 # Provide generalized library-building support services.
cannam@126 19880 # Written by Gordon Matzigkeit, 1996
cannam@126 19881
cannam@126 19882 # Copyright (C) 2014 Free Software Foundation, Inc.
cannam@126 19883 # This is free software; see the source for copying conditions. There is NO
cannam@126 19884 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
cannam@126 19885
cannam@126 19886 # GNU Libtool is free software; you can redistribute it and/or modify
cannam@126 19887 # it under the terms of the GNU General Public License as published by
cannam@126 19888 # the Free Software Foundation; either version 2 of of the License, or
cannam@126 19889 # (at your option) any later version.
cannam@126 19890 #
cannam@126 19891 # As a special exception to the GNU General Public License, if you
cannam@126 19892 # distribute this file as part of a program or library that is built
cannam@126 19893 # using GNU Libtool, you may include this file under the same
cannam@126 19894 # distribution terms that you use for the rest of that program.
cannam@126 19895 #
cannam@126 19896 # GNU Libtool is distributed in the hope that it will be useful, but
cannam@126 19897 # WITHOUT ANY WARRANTY; without even the implied warranty of
cannam@126 19898 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cannam@126 19899 # GNU General Public License for more details.
cannam@126 19900 #
cannam@126 19901 # You should have received a copy of the GNU General Public License
cannam@126 19902 # along with this program. If not, see <http://www.gnu.org/licenses/>.
cannam@126 19903
cannam@126 19904
cannam@126 19905 # The names of the tagged configurations supported by this script.
cannam@126 19906 available_tags='CXX RC '
cannam@126 19907
cannam@126 19908 # Configured defaults for sys_lib_dlsearch_path munging.
cannam@126 19909 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
cannam@126 19910
cannam@126 19911 # ### BEGIN LIBTOOL CONFIG
cannam@126 19912
cannam@126 19913 # Which release of libtool.m4 was used?
cannam@126 19914 macro_version=$macro_version
cannam@126 19915 macro_revision=$macro_revision
cannam@126 19916
cannam@126 19917 # Whether or not to build shared libraries.
cannam@126 19918 build_libtool_libs=$enable_shared
cannam@126 19919
cannam@126 19920 # Whether or not to build static libraries.
cannam@126 19921 build_old_libs=$enable_static
cannam@126 19922
cannam@126 19923 # What type of objects to build.
cannam@126 19924 pic_mode=$pic_mode
cannam@126 19925
cannam@126 19926 # Whether or not to optimize for fast installation.
cannam@126 19927 fast_install=$enable_fast_install
cannam@126 19928
cannam@126 19929 # Shared archive member basename,for filename based shared library versioning on AIX.
cannam@126 19930 shared_archive_member_spec=$shared_archive_member_spec
cannam@126 19931
cannam@126 19932 # Shell to use when invoking shell scripts.
cannam@126 19933 SHELL=$lt_SHELL
cannam@126 19934
cannam@126 19935 # An echo program that protects backslashes.
cannam@126 19936 ECHO=$lt_ECHO
cannam@126 19937
cannam@126 19938 # The PATH separator for the build system.
cannam@126 19939 PATH_SEPARATOR=$lt_PATH_SEPARATOR
cannam@126 19940
cannam@126 19941 # The host system.
cannam@126 19942 host_alias=$host_alias
cannam@126 19943 host=$host
cannam@126 19944 host_os=$host_os
cannam@126 19945
cannam@126 19946 # The build system.
cannam@126 19947 build_alias=$build_alias
cannam@126 19948 build=$build
cannam@126 19949 build_os=$build_os
cannam@126 19950
cannam@126 19951 # A sed program that does not truncate output.
cannam@126 19952 SED=$lt_SED
cannam@126 19953
cannam@126 19954 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
cannam@126 19955 Xsed="\$SED -e 1s/^X//"
cannam@126 19956
cannam@126 19957 # A grep program that handles long lines.
cannam@126 19958 GREP=$lt_GREP
cannam@126 19959
cannam@126 19960 # An ERE matcher.
cannam@126 19961 EGREP=$lt_EGREP
cannam@126 19962
cannam@126 19963 # A literal string matcher.
cannam@126 19964 FGREP=$lt_FGREP
cannam@126 19965
cannam@126 19966 # A BSD- or MS-compatible name lister.
cannam@126 19967 NM=$lt_NM
cannam@126 19968
cannam@126 19969 # Whether we need soft or hard links.
cannam@126 19970 LN_S=$lt_LN_S
cannam@126 19971
cannam@126 19972 # What is the maximum length of a command?
cannam@126 19973 max_cmd_len=$max_cmd_len
cannam@126 19974
cannam@126 19975 # Object file suffix (normally "o").
cannam@126 19976 objext=$ac_objext
cannam@126 19977
cannam@126 19978 # Executable file suffix (normally "").
cannam@126 19979 exeext=$exeext
cannam@126 19980
cannam@126 19981 # whether the shell understands "unset".
cannam@126 19982 lt_unset=$lt_unset
cannam@126 19983
cannam@126 19984 # turn spaces into newlines.
cannam@126 19985 SP2NL=$lt_lt_SP2NL
cannam@126 19986
cannam@126 19987 # turn newlines into spaces.
cannam@126 19988 NL2SP=$lt_lt_NL2SP
cannam@126 19989
cannam@126 19990 # convert \$build file names to \$host format.
cannam@126 19991 to_host_file_cmd=$lt_cv_to_host_file_cmd
cannam@126 19992
cannam@126 19993 # convert \$build files to toolchain format.
cannam@126 19994 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
cannam@126 19995
cannam@126 19996 # An object symbol dumper.
cannam@126 19997 OBJDUMP=$lt_OBJDUMP
cannam@126 19998
cannam@126 19999 # Method to check whether dependent libraries are shared objects.
cannam@126 20000 deplibs_check_method=$lt_deplibs_check_method
cannam@126 20001
cannam@126 20002 # Command to use when deplibs_check_method = "file_magic".
cannam@126 20003 file_magic_cmd=$lt_file_magic_cmd
cannam@126 20004
cannam@126 20005 # How to find potential files when deplibs_check_method = "file_magic".
cannam@126 20006 file_magic_glob=$lt_file_magic_glob
cannam@126 20007
cannam@126 20008 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
cannam@126 20009 want_nocaseglob=$lt_want_nocaseglob
cannam@126 20010
cannam@126 20011 # DLL creation program.
cannam@126 20012 DLLTOOL=$lt_DLLTOOL
cannam@126 20013
cannam@126 20014 # Command to associate shared and link libraries.
cannam@126 20015 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
cannam@126 20016
cannam@126 20017 # The archiver.
cannam@126 20018 AR=$lt_AR
cannam@126 20019
cannam@126 20020 # Flags to create an archive.
cannam@126 20021 AR_FLAGS=$lt_AR_FLAGS
cannam@126 20022
cannam@126 20023 # How to feed a file listing to the archiver.
cannam@126 20024 archiver_list_spec=$lt_archiver_list_spec
cannam@126 20025
cannam@126 20026 # A symbol stripping program.
cannam@126 20027 STRIP=$lt_STRIP
cannam@126 20028
cannam@126 20029 # Commands used to install an old-style archive.
cannam@126 20030 RANLIB=$lt_RANLIB
cannam@126 20031 old_postinstall_cmds=$lt_old_postinstall_cmds
cannam@126 20032 old_postuninstall_cmds=$lt_old_postuninstall_cmds
cannam@126 20033
cannam@126 20034 # Whether to use a lock for old archive extraction.
cannam@126 20035 lock_old_archive_extraction=$lock_old_archive_extraction
cannam@126 20036
cannam@126 20037 # A C compiler.
cannam@126 20038 LTCC=$lt_CC
cannam@126 20039
cannam@126 20040 # LTCC compiler flags.
cannam@126 20041 LTCFLAGS=$lt_CFLAGS
cannam@126 20042
cannam@126 20043 # Take the output of nm and produce a listing of raw symbols and C names.
cannam@126 20044 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
cannam@126 20045
cannam@126 20046 # Transform the output of nm in a proper C declaration.
cannam@126 20047 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
cannam@126 20048
cannam@126 20049 # Transform the output of nm into a list of symbols to manually relocate.
cannam@126 20050 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
cannam@126 20051
cannam@126 20052 # Transform the output of nm in a C name address pair.
cannam@126 20053 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
cannam@126 20054
cannam@126 20055 # Transform the output of nm in a C name address pair when lib prefix is needed.
cannam@126 20056 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
cannam@126 20057
cannam@126 20058 # The name lister interface.
cannam@126 20059 nm_interface=$lt_lt_cv_nm_interface
cannam@126 20060
cannam@126 20061 # Specify filename containing input files for \$NM.
cannam@126 20062 nm_file_list_spec=$lt_nm_file_list_spec
cannam@126 20063
cannam@126 20064 # The root where to search for dependent libraries,and where our libraries should be installed.
cannam@126 20065 lt_sysroot=$lt_sysroot
cannam@126 20066
cannam@126 20067 # Command to truncate a binary pipe.
cannam@126 20068 lt_truncate_bin=$lt_lt_cv_truncate_bin
cannam@126 20069
cannam@126 20070 # The name of the directory that contains temporary libtool files.
cannam@126 20071 objdir=$objdir
cannam@126 20072
cannam@126 20073 # Used to examine libraries when file_magic_cmd begins with "file".
cannam@126 20074 MAGIC_CMD=$MAGIC_CMD
cannam@126 20075
cannam@126 20076 # Must we lock files when doing compilation?
cannam@126 20077 need_locks=$lt_need_locks
cannam@126 20078
cannam@126 20079 # Manifest tool.
cannam@126 20080 MANIFEST_TOOL=$lt_MANIFEST_TOOL
cannam@126 20081
cannam@126 20082 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
cannam@126 20083 DSYMUTIL=$lt_DSYMUTIL
cannam@126 20084
cannam@126 20085 # Tool to change global to local symbols on Mac OS X.
cannam@126 20086 NMEDIT=$lt_NMEDIT
cannam@126 20087
cannam@126 20088 # Tool to manipulate fat objects and archives on Mac OS X.
cannam@126 20089 LIPO=$lt_LIPO
cannam@126 20090
cannam@126 20091 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
cannam@126 20092 OTOOL=$lt_OTOOL
cannam@126 20093
cannam@126 20094 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
cannam@126 20095 OTOOL64=$lt_OTOOL64
cannam@126 20096
cannam@126 20097 # Old archive suffix (normally "a").
cannam@126 20098 libext=$libext
cannam@126 20099
cannam@126 20100 # Shared library suffix (normally ".so").
cannam@126 20101 shrext_cmds=$lt_shrext_cmds
cannam@126 20102
cannam@126 20103 # The commands to extract the exported symbol list from a shared archive.
cannam@126 20104 extract_expsyms_cmds=$lt_extract_expsyms_cmds
cannam@126 20105
cannam@126 20106 # Variables whose values should be saved in libtool wrapper scripts and
cannam@126 20107 # restored at link time.
cannam@126 20108 variables_saved_for_relink=$lt_variables_saved_for_relink
cannam@126 20109
cannam@126 20110 # Do we need the "lib" prefix for modules?
cannam@126 20111 need_lib_prefix=$need_lib_prefix
cannam@126 20112
cannam@126 20113 # Do we need a version for libraries?
cannam@126 20114 need_version=$need_version
cannam@126 20115
cannam@126 20116 # Library versioning type.
cannam@126 20117 version_type=$version_type
cannam@126 20118
cannam@126 20119 # Shared library runtime path variable.
cannam@126 20120 runpath_var=$runpath_var
cannam@126 20121
cannam@126 20122 # Shared library path variable.
cannam@126 20123 shlibpath_var=$shlibpath_var
cannam@126 20124
cannam@126 20125 # Is shlibpath searched before the hard-coded library search path?
cannam@126 20126 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
cannam@126 20127
cannam@126 20128 # Format of library name prefix.
cannam@126 20129 libname_spec=$lt_libname_spec
cannam@126 20130
cannam@126 20131 # List of archive names. First name is the real one, the rest are links.
cannam@126 20132 # The last name is the one that the linker finds with -lNAME
cannam@126 20133 library_names_spec=$lt_library_names_spec
cannam@126 20134
cannam@126 20135 # The coded name of the library, if different from the real name.
cannam@126 20136 soname_spec=$lt_soname_spec
cannam@126 20137
cannam@126 20138 # Permission mode override for installation of shared libraries.
cannam@126 20139 install_override_mode=$lt_install_override_mode
cannam@126 20140
cannam@126 20141 # Command to use after installation of a shared archive.
cannam@126 20142 postinstall_cmds=$lt_postinstall_cmds
cannam@126 20143
cannam@126 20144 # Command to use after uninstallation of a shared archive.
cannam@126 20145 postuninstall_cmds=$lt_postuninstall_cmds
cannam@126 20146
cannam@126 20147 # Commands used to finish a libtool library installation in a directory.
cannam@126 20148 finish_cmds=$lt_finish_cmds
cannam@126 20149
cannam@126 20150 # As "finish_cmds", except a single script fragment to be evaled but
cannam@126 20151 # not shown.
cannam@126 20152 finish_eval=$lt_finish_eval
cannam@126 20153
cannam@126 20154 # Whether we should hardcode library paths into libraries.
cannam@126 20155 hardcode_into_libs=$hardcode_into_libs
cannam@126 20156
cannam@126 20157 # Compile-time system search path for libraries.
cannam@126 20158 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
cannam@126 20159
cannam@126 20160 # Detected run-time system search path for libraries.
cannam@126 20161 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
cannam@126 20162
cannam@126 20163 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
cannam@126 20164 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
cannam@126 20165
cannam@126 20166 # Whether dlopen is supported.
cannam@126 20167 dlopen_support=$enable_dlopen
cannam@126 20168
cannam@126 20169 # Whether dlopen of programs is supported.
cannam@126 20170 dlopen_self=$enable_dlopen_self
cannam@126 20171
cannam@126 20172 # Whether dlopen of statically linked programs is supported.
cannam@126 20173 dlopen_self_static=$enable_dlopen_self_static
cannam@126 20174
cannam@126 20175 # Commands to strip libraries.
cannam@126 20176 old_striplib=$lt_old_striplib
cannam@126 20177 striplib=$lt_striplib
cannam@126 20178
cannam@126 20179
cannam@126 20180 # The linker used to build libraries.
cannam@126 20181 LD=$lt_LD
cannam@126 20182
cannam@126 20183 # How to create reloadable object files.
cannam@126 20184 reload_flag=$lt_reload_flag
cannam@126 20185 reload_cmds=$lt_reload_cmds
cannam@126 20186
cannam@126 20187 # Commands used to build an old-style archive.
cannam@126 20188 old_archive_cmds=$lt_old_archive_cmds
cannam@126 20189
cannam@126 20190 # A language specific compiler.
cannam@126 20191 CC=$lt_compiler
cannam@126 20192
cannam@126 20193 # Is the compiler the GNU compiler?
cannam@126 20194 with_gcc=$GCC
cannam@126 20195
cannam@126 20196 # Compiler flag to turn off builtin functions.
cannam@126 20197 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
cannam@126 20198
cannam@126 20199 # Additional compiler flags for building library objects.
cannam@126 20200 pic_flag=$lt_lt_prog_compiler_pic
cannam@126 20201
cannam@126 20202 # How to pass a linker flag through the compiler.
cannam@126 20203 wl=$lt_lt_prog_compiler_wl
cannam@126 20204
cannam@126 20205 # Compiler flag to prevent dynamic linking.
cannam@126 20206 link_static_flag=$lt_lt_prog_compiler_static
cannam@126 20207
cannam@126 20208 # Does compiler simultaneously support -c and -o options?
cannam@126 20209 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
cannam@126 20210
cannam@126 20211 # Whether or not to add -lc for building shared libraries.
cannam@126 20212 build_libtool_need_lc=$archive_cmds_need_lc
cannam@126 20213
cannam@126 20214 # Whether or not to disallow shared libs when runtime libs are static.
cannam@126 20215 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
cannam@126 20216
cannam@126 20217 # Compiler flag to allow reflexive dlopens.
cannam@126 20218 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
cannam@126 20219
cannam@126 20220 # Compiler flag to generate shared objects directly from archives.
cannam@126 20221 whole_archive_flag_spec=$lt_whole_archive_flag_spec
cannam@126 20222
cannam@126 20223 # Whether the compiler copes with passing no objects directly.
cannam@126 20224 compiler_needs_object=$lt_compiler_needs_object
cannam@126 20225
cannam@126 20226 # Create an old-style archive from a shared archive.
cannam@126 20227 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
cannam@126 20228
cannam@126 20229 # Create a temporary old-style archive to link instead of a shared archive.
cannam@126 20230 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
cannam@126 20231
cannam@126 20232 # Commands used to build a shared archive.
cannam@126 20233 archive_cmds=$lt_archive_cmds
cannam@126 20234 archive_expsym_cmds=$lt_archive_expsym_cmds
cannam@126 20235
cannam@126 20236 # Commands used to build a loadable module if different from building
cannam@126 20237 # a shared archive.
cannam@126 20238 module_cmds=$lt_module_cmds
cannam@126 20239 module_expsym_cmds=$lt_module_expsym_cmds
cannam@126 20240
cannam@126 20241 # Whether we are building with GNU ld or not.
cannam@126 20242 with_gnu_ld=$lt_with_gnu_ld
cannam@126 20243
cannam@126 20244 # Flag that allows shared libraries with undefined symbols to be built.
cannam@126 20245 allow_undefined_flag=$lt_allow_undefined_flag
cannam@126 20246
cannam@126 20247 # Flag that enforces no undefined symbols.
cannam@126 20248 no_undefined_flag=$lt_no_undefined_flag
cannam@126 20249
cannam@126 20250 # Flag to hardcode \$libdir into a binary during linking.
cannam@126 20251 # This must work even if \$libdir does not exist
cannam@126 20252 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
cannam@126 20253
cannam@126 20254 # Whether we need a single "-rpath" flag with a separated argument.
cannam@126 20255 hardcode_libdir_separator=$lt_hardcode_libdir_separator
cannam@126 20256
cannam@126 20257 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
cannam@126 20258 # DIR into the resulting binary.
cannam@126 20259 hardcode_direct=$hardcode_direct
cannam@126 20260
cannam@126 20261 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
cannam@126 20262 # DIR into the resulting binary and the resulting library dependency is
cannam@126 20263 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
cannam@126 20264 # library is relocated.
cannam@126 20265 hardcode_direct_absolute=$hardcode_direct_absolute
cannam@126 20266
cannam@126 20267 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
cannam@126 20268 # into the resulting binary.
cannam@126 20269 hardcode_minus_L=$hardcode_minus_L
cannam@126 20270
cannam@126 20271 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
cannam@126 20272 # into the resulting binary.
cannam@126 20273 hardcode_shlibpath_var=$hardcode_shlibpath_var
cannam@126 20274
cannam@126 20275 # Set to "yes" if building a shared library automatically hardcodes DIR
cannam@126 20276 # into the library and all subsequent libraries and executables linked
cannam@126 20277 # against it.
cannam@126 20278 hardcode_automatic=$hardcode_automatic
cannam@126 20279
cannam@126 20280 # Set to yes if linker adds runtime paths of dependent libraries
cannam@126 20281 # to runtime path list.
cannam@126 20282 inherit_rpath=$inherit_rpath
cannam@126 20283
cannam@126 20284 # Whether libtool must link a program against all its dependency libraries.
cannam@126 20285 link_all_deplibs=$link_all_deplibs
cannam@126 20286
cannam@126 20287 # Set to "yes" if exported symbols are required.
cannam@126 20288 always_export_symbols=$always_export_symbols
cannam@126 20289
cannam@126 20290 # The commands to list exported symbols.
cannam@126 20291 export_symbols_cmds=$lt_export_symbols_cmds
cannam@126 20292
cannam@126 20293 # Symbols that should not be listed in the preloaded symbols.
cannam@126 20294 exclude_expsyms=$lt_exclude_expsyms
cannam@126 20295
cannam@126 20296 # Symbols that must always be exported.
cannam@126 20297 include_expsyms=$lt_include_expsyms
cannam@126 20298
cannam@126 20299 # Commands necessary for linking programs (against libraries) with templates.
cannam@126 20300 prelink_cmds=$lt_prelink_cmds
cannam@126 20301
cannam@126 20302 # Commands necessary for finishing linking programs.
cannam@126 20303 postlink_cmds=$lt_postlink_cmds
cannam@126 20304
cannam@126 20305 # Specify filename containing input files.
cannam@126 20306 file_list_spec=$lt_file_list_spec
cannam@126 20307
cannam@126 20308 # How to hardcode a shared library path into an executable.
cannam@126 20309 hardcode_action=$hardcode_action
cannam@126 20310
cannam@126 20311 # The directories searched by this compiler when creating a shared library.
cannam@126 20312 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
cannam@126 20313
cannam@126 20314 # Dependencies to place before and after the objects being linked to
cannam@126 20315 # create a shared library.
cannam@126 20316 predep_objects=$lt_predep_objects
cannam@126 20317 postdep_objects=$lt_postdep_objects
cannam@126 20318 predeps=$lt_predeps
cannam@126 20319 postdeps=$lt_postdeps
cannam@126 20320
cannam@126 20321 # The library search path used internally by the compiler when linking
cannam@126 20322 # a shared library.
cannam@126 20323 compiler_lib_search_path=$lt_compiler_lib_search_path
cannam@126 20324
cannam@126 20325 # ### END LIBTOOL CONFIG
cannam@126 20326
cannam@126 20327 _LT_EOF
cannam@126 20328
cannam@126 20329 cat <<'_LT_EOF' >> "$cfgfile"
cannam@126 20330
cannam@126 20331 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
cannam@126 20332
cannam@126 20333 # func_munge_path_list VARIABLE PATH
cannam@126 20334 # -----------------------------------
cannam@126 20335 # VARIABLE is name of variable containing _space_ separated list of
cannam@126 20336 # directories to be munged by the contents of PATH, which is string
cannam@126 20337 # having a format:
cannam@126 20338 # "DIR[:DIR]:"
cannam@126 20339 # string "DIR[ DIR]" will be prepended to VARIABLE
cannam@126 20340 # ":DIR[:DIR]"
cannam@126 20341 # string "DIR[ DIR]" will be appended to VARIABLE
cannam@126 20342 # "DIRP[:DIRP]::[DIRA:]DIRA"
cannam@126 20343 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
cannam@126 20344 # "DIRA[ DIRA]" will be appended to VARIABLE
cannam@126 20345 # "DIR[:DIR]"
cannam@126 20346 # VARIABLE will be replaced by "DIR[ DIR]"
cannam@126 20347 func_munge_path_list ()
cannam@126 20348 {
cannam@126 20349 case x$2 in
cannam@126 20350 x)
cannam@126 20351 ;;
cannam@126 20352 *:)
cannam@126 20353 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
cannam@126 20354 ;;
cannam@126 20355 x:*)
cannam@126 20356 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
cannam@126 20357 ;;
cannam@126 20358 *::*)
cannam@126 20359 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
cannam@126 20360 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
cannam@126 20361 ;;
cannam@126 20362 *)
cannam@126 20363 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
cannam@126 20364 ;;
cannam@126 20365 esac
cannam@126 20366 }
cannam@126 20367
cannam@126 20368
cannam@126 20369 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
cannam@126 20370 func_cc_basename ()
cannam@126 20371 {
cannam@126 20372 for cc_temp in $*""; do
cannam@126 20373 case $cc_temp in
cannam@126 20374 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
cannam@126 20375 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
cannam@126 20376 \-*) ;;
cannam@126 20377 *) break;;
cannam@126 20378 esac
cannam@126 20379 done
cannam@126 20380 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cannam@126 20381 }
cannam@126 20382
cannam@126 20383
cannam@126 20384 # ### END FUNCTIONS SHARED WITH CONFIGURE
cannam@126 20385
cannam@126 20386 _LT_EOF
cannam@126 20387
cannam@126 20388 case $host_os in
cannam@126 20389 aix3*)
cannam@126 20390 cat <<\_LT_EOF >> "$cfgfile"
cannam@126 20391 # AIX sometimes has problems with the GCC collect2 program. For some
cannam@126 20392 # reason, if we set the COLLECT_NAMES environment variable, the problems
cannam@126 20393 # vanish in a puff of smoke.
cannam@126 20394 if test set != "${COLLECT_NAMES+set}"; then
cannam@126 20395 COLLECT_NAMES=
cannam@126 20396 export COLLECT_NAMES
cannam@126 20397 fi
cannam@126 20398 _LT_EOF
cannam@126 20399 ;;
cannam@126 20400 esac
cannam@126 20401
cannam@126 20402
cannam@126 20403 ltmain=$ac_aux_dir/ltmain.sh
cannam@126 20404
cannam@126 20405
cannam@126 20406 # We use sed instead of cat because bash on DJGPP gets confused if
cannam@126 20407 # if finds mixed CR/LF and LF-only lines. Since sed operates in
cannam@126 20408 # text mode, it properly converts lines to CR/LF. This bash problem
cannam@126 20409 # is reportedly fixed, but why not run on old versions too?
cannam@126 20410 sed '$q' "$ltmain" >> "$cfgfile" \
cannam@126 20411 || (rm -f "$cfgfile"; exit 1)
cannam@126 20412
cannam@126 20413 mv -f "$cfgfile" "$ofile" ||
cannam@126 20414 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
cannam@126 20415 chmod +x "$ofile"
cannam@126 20416
cannam@126 20417
cannam@126 20418 cat <<_LT_EOF >> "$ofile"
cannam@126 20419
cannam@126 20420 # ### BEGIN LIBTOOL TAG CONFIG: CXX
cannam@126 20421
cannam@126 20422 # The linker used to build libraries.
cannam@126 20423 LD=$lt_LD_CXX
cannam@126 20424
cannam@126 20425 # How to create reloadable object files.
cannam@126 20426 reload_flag=$lt_reload_flag_CXX
cannam@126 20427 reload_cmds=$lt_reload_cmds_CXX
cannam@126 20428
cannam@126 20429 # Commands used to build an old-style archive.
cannam@126 20430 old_archive_cmds=$lt_old_archive_cmds_CXX
cannam@126 20431
cannam@126 20432 # A language specific compiler.
cannam@126 20433 CC=$lt_compiler_CXX
cannam@126 20434
cannam@126 20435 # Is the compiler the GNU compiler?
cannam@126 20436 with_gcc=$GCC_CXX
cannam@126 20437
cannam@126 20438 # Compiler flag to turn off builtin functions.
cannam@126 20439 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
cannam@126 20440
cannam@126 20441 # Additional compiler flags for building library objects.
cannam@126 20442 pic_flag=$lt_lt_prog_compiler_pic_CXX
cannam@126 20443
cannam@126 20444 # How to pass a linker flag through the compiler.
cannam@126 20445 wl=$lt_lt_prog_compiler_wl_CXX
cannam@126 20446
cannam@126 20447 # Compiler flag to prevent dynamic linking.
cannam@126 20448 link_static_flag=$lt_lt_prog_compiler_static_CXX
cannam@126 20449
cannam@126 20450 # Does compiler simultaneously support -c and -o options?
cannam@126 20451 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
cannam@126 20452
cannam@126 20453 # Whether or not to add -lc for building shared libraries.
cannam@126 20454 build_libtool_need_lc=$archive_cmds_need_lc_CXX
cannam@126 20455
cannam@126 20456 # Whether or not to disallow shared libs when runtime libs are static.
cannam@126 20457 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
cannam@126 20458
cannam@126 20459 # Compiler flag to allow reflexive dlopens.
cannam@126 20460 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
cannam@126 20461
cannam@126 20462 # Compiler flag to generate shared objects directly from archives.
cannam@126 20463 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
cannam@126 20464
cannam@126 20465 # Whether the compiler copes with passing no objects directly.
cannam@126 20466 compiler_needs_object=$lt_compiler_needs_object_CXX
cannam@126 20467
cannam@126 20468 # Create an old-style archive from a shared archive.
cannam@126 20469 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
cannam@126 20470
cannam@126 20471 # Create a temporary old-style archive to link instead of a shared archive.
cannam@126 20472 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
cannam@126 20473
cannam@126 20474 # Commands used to build a shared archive.
cannam@126 20475 archive_cmds=$lt_archive_cmds_CXX
cannam@126 20476 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
cannam@126 20477
cannam@126 20478 # Commands used to build a loadable module if different from building
cannam@126 20479 # a shared archive.
cannam@126 20480 module_cmds=$lt_module_cmds_CXX
cannam@126 20481 module_expsym_cmds=$lt_module_expsym_cmds_CXX
cannam@126 20482
cannam@126 20483 # Whether we are building with GNU ld or not.
cannam@126 20484 with_gnu_ld=$lt_with_gnu_ld_CXX
cannam@126 20485
cannam@126 20486 # Flag that allows shared libraries with undefined symbols to be built.
cannam@126 20487 allow_undefined_flag=$lt_allow_undefined_flag_CXX
cannam@126 20488
cannam@126 20489 # Flag that enforces no undefined symbols.
cannam@126 20490 no_undefined_flag=$lt_no_undefined_flag_CXX
cannam@126 20491
cannam@126 20492 # Flag to hardcode \$libdir into a binary during linking.
cannam@126 20493 # This must work even if \$libdir does not exist
cannam@126 20494 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
cannam@126 20495
cannam@126 20496 # Whether we need a single "-rpath" flag with a separated argument.
cannam@126 20497 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
cannam@126 20498
cannam@126 20499 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
cannam@126 20500 # DIR into the resulting binary.
cannam@126 20501 hardcode_direct=$hardcode_direct_CXX
cannam@126 20502
cannam@126 20503 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
cannam@126 20504 # DIR into the resulting binary and the resulting library dependency is
cannam@126 20505 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
cannam@126 20506 # library is relocated.
cannam@126 20507 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
cannam@126 20508
cannam@126 20509 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
cannam@126 20510 # into the resulting binary.
cannam@126 20511 hardcode_minus_L=$hardcode_minus_L_CXX
cannam@126 20512
cannam@126 20513 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
cannam@126 20514 # into the resulting binary.
cannam@126 20515 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
cannam@126 20516
cannam@126 20517 # Set to "yes" if building a shared library automatically hardcodes DIR
cannam@126 20518 # into the library and all subsequent libraries and executables linked
cannam@126 20519 # against it.
cannam@126 20520 hardcode_automatic=$hardcode_automatic_CXX
cannam@126 20521
cannam@126 20522 # Set to yes if linker adds runtime paths of dependent libraries
cannam@126 20523 # to runtime path list.
cannam@126 20524 inherit_rpath=$inherit_rpath_CXX
cannam@126 20525
cannam@126 20526 # Whether libtool must link a program against all its dependency libraries.
cannam@126 20527 link_all_deplibs=$link_all_deplibs_CXX
cannam@126 20528
cannam@126 20529 # Set to "yes" if exported symbols are required.
cannam@126 20530 always_export_symbols=$always_export_symbols_CXX
cannam@126 20531
cannam@126 20532 # The commands to list exported symbols.
cannam@126 20533 export_symbols_cmds=$lt_export_symbols_cmds_CXX
cannam@126 20534
cannam@126 20535 # Symbols that should not be listed in the preloaded symbols.
cannam@126 20536 exclude_expsyms=$lt_exclude_expsyms_CXX
cannam@126 20537
cannam@126 20538 # Symbols that must always be exported.
cannam@126 20539 include_expsyms=$lt_include_expsyms_CXX
cannam@126 20540
cannam@126 20541 # Commands necessary for linking programs (against libraries) with templates.
cannam@126 20542 prelink_cmds=$lt_prelink_cmds_CXX
cannam@126 20543
cannam@126 20544 # Commands necessary for finishing linking programs.
cannam@126 20545 postlink_cmds=$lt_postlink_cmds_CXX
cannam@126 20546
cannam@126 20547 # Specify filename containing input files.
cannam@126 20548 file_list_spec=$lt_file_list_spec_CXX
cannam@126 20549
cannam@126 20550 # How to hardcode a shared library path into an executable.
cannam@126 20551 hardcode_action=$hardcode_action_CXX
cannam@126 20552
cannam@126 20553 # The directories searched by this compiler when creating a shared library.
cannam@126 20554 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
cannam@126 20555
cannam@126 20556 # Dependencies to place before and after the objects being linked to
cannam@126 20557 # create a shared library.
cannam@126 20558 predep_objects=$lt_predep_objects_CXX
cannam@126 20559 postdep_objects=$lt_postdep_objects_CXX
cannam@126 20560 predeps=$lt_predeps_CXX
cannam@126 20561 postdeps=$lt_postdeps_CXX
cannam@126 20562
cannam@126 20563 # The library search path used internally by the compiler when linking
cannam@126 20564 # a shared library.
cannam@126 20565 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
cannam@126 20566
cannam@126 20567 # ### END LIBTOOL TAG CONFIG: CXX
cannam@126 20568 _LT_EOF
cannam@126 20569
cannam@126 20570
cannam@126 20571 cat <<_LT_EOF >> "$ofile"
cannam@126 20572
cannam@126 20573 # ### BEGIN LIBTOOL TAG CONFIG: RC
cannam@126 20574
cannam@126 20575 # The linker used to build libraries.
cannam@126 20576 LD=$lt_LD_RC
cannam@126 20577
cannam@126 20578 # How to create reloadable object files.
cannam@126 20579 reload_flag=$lt_reload_flag_RC
cannam@126 20580 reload_cmds=$lt_reload_cmds_RC
cannam@126 20581
cannam@126 20582 # Commands used to build an old-style archive.
cannam@126 20583 old_archive_cmds=$lt_old_archive_cmds_RC
cannam@126 20584
cannam@126 20585 # A language specific compiler.
cannam@126 20586 CC=$lt_compiler_RC
cannam@126 20587
cannam@126 20588 # Is the compiler the GNU compiler?
cannam@126 20589 with_gcc=$GCC_RC
cannam@126 20590
cannam@126 20591 # Compiler flag to turn off builtin functions.
cannam@126 20592 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
cannam@126 20593
cannam@126 20594 # Additional compiler flags for building library objects.
cannam@126 20595 pic_flag=$lt_lt_prog_compiler_pic_RC
cannam@126 20596
cannam@126 20597 # How to pass a linker flag through the compiler.
cannam@126 20598 wl=$lt_lt_prog_compiler_wl_RC
cannam@126 20599
cannam@126 20600 # Compiler flag to prevent dynamic linking.
cannam@126 20601 link_static_flag=$lt_lt_prog_compiler_static_RC
cannam@126 20602
cannam@126 20603 # Does compiler simultaneously support -c and -o options?
cannam@126 20604 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
cannam@126 20605
cannam@126 20606 # Whether or not to add -lc for building shared libraries.
cannam@126 20607 build_libtool_need_lc=$archive_cmds_need_lc_RC
cannam@126 20608
cannam@126 20609 # Whether or not to disallow shared libs when runtime libs are static.
cannam@126 20610 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
cannam@126 20611
cannam@126 20612 # Compiler flag to allow reflexive dlopens.
cannam@126 20613 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
cannam@126 20614
cannam@126 20615 # Compiler flag to generate shared objects directly from archives.
cannam@126 20616 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
cannam@126 20617
cannam@126 20618 # Whether the compiler copes with passing no objects directly.
cannam@126 20619 compiler_needs_object=$lt_compiler_needs_object_RC
cannam@126 20620
cannam@126 20621 # Create an old-style archive from a shared archive.
cannam@126 20622 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
cannam@126 20623
cannam@126 20624 # Create a temporary old-style archive to link instead of a shared archive.
cannam@126 20625 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
cannam@126 20626
cannam@126 20627 # Commands used to build a shared archive.
cannam@126 20628 archive_cmds=$lt_archive_cmds_RC
cannam@126 20629 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
cannam@126 20630
cannam@126 20631 # Commands used to build a loadable module if different from building
cannam@126 20632 # a shared archive.
cannam@126 20633 module_cmds=$lt_module_cmds_RC
cannam@126 20634 module_expsym_cmds=$lt_module_expsym_cmds_RC
cannam@126 20635
cannam@126 20636 # Whether we are building with GNU ld or not.
cannam@126 20637 with_gnu_ld=$lt_with_gnu_ld_RC
cannam@126 20638
cannam@126 20639 # Flag that allows shared libraries with undefined symbols to be built.
cannam@126 20640 allow_undefined_flag=$lt_allow_undefined_flag_RC
cannam@126 20641
cannam@126 20642 # Flag that enforces no undefined symbols.
cannam@126 20643 no_undefined_flag=$lt_no_undefined_flag_RC
cannam@126 20644
cannam@126 20645 # Flag to hardcode \$libdir into a binary during linking.
cannam@126 20646 # This must work even if \$libdir does not exist
cannam@126 20647 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
cannam@126 20648
cannam@126 20649 # Whether we need a single "-rpath" flag with a separated argument.
cannam@126 20650 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
cannam@126 20651
cannam@126 20652 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
cannam@126 20653 # DIR into the resulting binary.
cannam@126 20654 hardcode_direct=$hardcode_direct_RC
cannam@126 20655
cannam@126 20656 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
cannam@126 20657 # DIR into the resulting binary and the resulting library dependency is
cannam@126 20658 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
cannam@126 20659 # library is relocated.
cannam@126 20660 hardcode_direct_absolute=$hardcode_direct_absolute_RC
cannam@126 20661
cannam@126 20662 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
cannam@126 20663 # into the resulting binary.
cannam@126 20664 hardcode_minus_L=$hardcode_minus_L_RC
cannam@126 20665
cannam@126 20666 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
cannam@126 20667 # into the resulting binary.
cannam@126 20668 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
cannam@126 20669
cannam@126 20670 # Set to "yes" if building a shared library automatically hardcodes DIR
cannam@126 20671 # into the library and all subsequent libraries and executables linked
cannam@126 20672 # against it.
cannam@126 20673 hardcode_automatic=$hardcode_automatic_RC
cannam@126 20674
cannam@126 20675 # Set to yes if linker adds runtime paths of dependent libraries
cannam@126 20676 # to runtime path list.
cannam@126 20677 inherit_rpath=$inherit_rpath_RC
cannam@126 20678
cannam@126 20679 # Whether libtool must link a program against all its dependency libraries.
cannam@126 20680 link_all_deplibs=$link_all_deplibs_RC
cannam@126 20681
cannam@126 20682 # Set to "yes" if exported symbols are required.
cannam@126 20683 always_export_symbols=$always_export_symbols_RC
cannam@126 20684
cannam@126 20685 # The commands to list exported symbols.
cannam@126 20686 export_symbols_cmds=$lt_export_symbols_cmds_RC
cannam@126 20687
cannam@126 20688 # Symbols that should not be listed in the preloaded symbols.
cannam@126 20689 exclude_expsyms=$lt_exclude_expsyms_RC
cannam@126 20690
cannam@126 20691 # Symbols that must always be exported.
cannam@126 20692 include_expsyms=$lt_include_expsyms_RC
cannam@126 20693
cannam@126 20694 # Commands necessary for linking programs (against libraries) with templates.
cannam@126 20695 prelink_cmds=$lt_prelink_cmds_RC
cannam@126 20696
cannam@126 20697 # Commands necessary for finishing linking programs.
cannam@126 20698 postlink_cmds=$lt_postlink_cmds_RC
cannam@126 20699
cannam@126 20700 # Specify filename containing input files.
cannam@126 20701 file_list_spec=$lt_file_list_spec_RC
cannam@126 20702
cannam@126 20703 # How to hardcode a shared library path into an executable.
cannam@126 20704 hardcode_action=$hardcode_action_RC
cannam@126 20705
cannam@126 20706 # The directories searched by this compiler when creating a shared library.
cannam@126 20707 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
cannam@126 20708
cannam@126 20709 # Dependencies to place before and after the objects being linked to
cannam@126 20710 # create a shared library.
cannam@126 20711 predep_objects=$lt_predep_objects_RC
cannam@126 20712 postdep_objects=$lt_postdep_objects_RC
cannam@126 20713 predeps=$lt_predeps_RC
cannam@126 20714 postdeps=$lt_postdeps_RC
cannam@126 20715
cannam@126 20716 # The library search path used internally by the compiler when linking
cannam@126 20717 # a shared library.
cannam@126 20718 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
cannam@126 20719
cannam@126 20720 # ### END LIBTOOL TAG CONFIG: RC
cannam@126 20721 _LT_EOF
cannam@126 20722
cannam@126 20723 ;;
cannam@126 20724
cannam@126 20725 esac
cannam@126 20726 done # for ac_tag
cannam@126 20727
cannam@126 20728
cannam@126 20729 as_fn_exit 0
cannam@126 20730 _ACEOF
cannam@126 20731 ac_clean_files=$ac_clean_files_save
cannam@126 20732
cannam@126 20733 test $ac_write_fail = 0 ||
cannam@126 20734 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cannam@126 20735
cannam@126 20736
cannam@126 20737 # configure is writing to config.log, and then calls config.status.
cannam@126 20738 # config.status does its own redirection, appending to config.log.
cannam@126 20739 # Unfortunately, on DOS this fails, as config.log is still kept open
cannam@126 20740 # by configure, so config.status won't be able to write to it; its
cannam@126 20741 # output is simply discarded. So we exec the FD to /dev/null,
cannam@126 20742 # effectively closing config.log, so it can be properly (re)opened and
cannam@126 20743 # appended to by config.status. When coming back to configure, we
cannam@126 20744 # need to make the FD available again.
cannam@126 20745 if test "$no_create" != yes; then
cannam@126 20746 ac_cs_success=:
cannam@126 20747 ac_config_status_args=
cannam@126 20748 test "$silent" = yes &&
cannam@126 20749 ac_config_status_args="$ac_config_status_args --quiet"
cannam@126 20750 exec 5>/dev/null
cannam@126 20751 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
cannam@126 20752 exec 5>>config.log
cannam@126 20753 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
cannam@126 20754 # would make configure fail if this is the last instruction.
cannam@126 20755 $ac_cs_success || as_fn_exit 1
cannam@126 20756 fi
cannam@126 20757 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cannam@126 20758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cannam@126 20759 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
cannam@126 20760 fi
cannam@126 20761
cannam@126 20762
cannam@126 20763 #====================================================================================
cannam@126 20764
cannam@126 20765 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
cannam@126 20766 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-=-
cannam@126 20767
cannam@126 20768 Configuration summary :
cannam@126 20769
cannam@126 20770 Version : ..................... ${VERSION}
cannam@126 20771
cannam@126 20772 Host CPU : .................... ${host_cpu}
cannam@126 20773 Host Vendor : ................. ${host_vendor}
cannam@126 20774 Host OS : ..................... ${host_os}
cannam@126 20775 " >&5
cannam@126 20776 $as_echo "
cannam@126 20777 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-=-
cannam@126 20778
cannam@126 20779 Configuration summary :
cannam@126 20780
cannam@126 20781 Version : ..................... ${VERSION}
cannam@126 20782
cannam@126 20783 Host CPU : .................... ${host_cpu}
cannam@126 20784 Host Vendor : ................. ${host_vendor}
cannam@126 20785 Host OS : ..................... ${host_os}
cannam@126 20786 " >&6; }
cannam@126 20787
cannam@126 20788 if test x$ac_cv_c_compiler_gnu = xyes ; then
cannam@126 20789 echo -e " Tools :\n"
cannam@126 20790 echo " Compiler is GCC : ............. ${ac_cv_c_compiler_gnu}"
cannam@126 20791 echo " GCC major version : ........... ${GCC_MAJOR_VERSION}"
cannam@126 20792 fi
cannam@126 20793
cannam@126 20794 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
cannam@126 20795 Extra tools required for testing and examples :
cannam@126 20796
cannam@126 20797 Have FFTW : ................... ${ac_cv_fftw3}" >&5
cannam@126 20798 $as_echo "
cannam@126 20799 Extra tools required for testing and examples :
cannam@126 20800
cannam@126 20801 Have FFTW : ................... ${ac_cv_fftw3}" >&6; }
cannam@126 20802
cannam@126 20803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Have libsndfile : ............. ${ac_cv_sndfile}" >&5
cannam@126 20804 $as_echo " Have libsndfile : ............. ${ac_cv_sndfile}" >&6; }
cannam@126 20805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Have ALSA : ................... ${ac_cv_header_alsa_asoundlib_h}
cannam@126 20806 " >&5
cannam@126 20807 $as_echo " Have ALSA : ................... ${ac_cv_header_alsa_asoundlib_h}
cannam@126 20808 " >&6; }
cannam@126 20809
cannam@126 20810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Installation directories :
cannam@126 20811
cannam@126 20812 Library directory : ........... ${prefix}/lib
cannam@126 20813 Program directory : ........... ${prefix}/bin
cannam@126 20814 Pkgconfig directory : ......... ${prefix}/lib/pkgconfig
cannam@126 20815 " >&5
cannam@126 20816 $as_echo " Installation directories :
cannam@126 20817
cannam@126 20818 Library directory : ........... ${prefix}/lib
cannam@126 20819 Program directory : ........... ${prefix}/bin
cannam@126 20820 Pkgconfig directory : ......... ${prefix}/lib/pkgconfig
cannam@126 20821 " >&6; }
cannam@126 20822
cannam@126 20823 if test x$prefix != "x/usr" ; then
cannam@126 20824 echo "Compiling some other packages against ${PACKAGE} may require "
cannam@126 20825 echo -e "the addition of \"${prefix}/lib/pkgconfig\" to the "
cannam@126 20826 echo -e "PKG_CONFIG_PATH environment variable.\n"
cannam@126 20827 fi
cannam@126 20828