annotate src/portaudio_20161030/bindings/cpp/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 59a8758c56b1
children
rev   line source
cannam@140 1 #! /bin/sh
cannam@140 2 # Guess values for system-dependent variables and create Makefiles.
cannam@140 3 # Generated by GNU Autoconf 2.69 for PortAudioCpp 12.
cannam@140 4 #
cannam@140 5 #
cannam@140 6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cannam@140 7 #
cannam@140 8 #
cannam@140 9 # This configure script is free software; the Free Software Foundation
cannam@140 10 # gives unlimited permission to copy, distribute and modify it.
cannam@140 11 ## -------------------- ##
cannam@140 12 ## M4sh Initialization. ##
cannam@140 13 ## -------------------- ##
cannam@140 14
cannam@140 15 # Be more Bourne compatible
cannam@140 16 DUALCASE=1; export DUALCASE # for MKS sh
cannam@140 17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cannam@140 18 emulate sh
cannam@140 19 NULLCMD=:
cannam@140 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
cannam@140 21 # is contrary to our usage. Disable this feature.
cannam@140 22 alias -g '${1+"$@"}'='"$@"'
cannam@140 23 setopt NO_GLOB_SUBST
cannam@140 24 else
cannam@140 25 case `(set -o) 2>/dev/null` in #(
cannam@140 26 *posix*) :
cannam@140 27 set -o posix ;; #(
cannam@140 28 *) :
cannam@140 29 ;;
cannam@140 30 esac
cannam@140 31 fi
cannam@140 32
cannam@140 33
cannam@140 34 as_nl='
cannam@140 35 '
cannam@140 36 export as_nl
cannam@140 37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
cannam@140 38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@140 39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@140 40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@140 41 # Prefer a ksh shell builtin over an external printf program on Solaris,
cannam@140 42 # but without wasting forks for bash or zsh.
cannam@140 43 if test -z "$BASH_VERSION$ZSH_VERSION" \
cannam@140 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@140 45 as_echo='print -r --'
cannam@140 46 as_echo_n='print -rn --'
cannam@140 47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@140 48 as_echo='printf %s\n'
cannam@140 49 as_echo_n='printf %s'
cannam@140 50 else
cannam@140 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
cannam@140 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
cannam@140 53 as_echo_n='/usr/ucb/echo -n'
cannam@140 54 else
cannam@140 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
cannam@140 56 as_echo_n_body='eval
cannam@140 57 arg=$1;
cannam@140 58 case $arg in #(
cannam@140 59 *"$as_nl"*)
cannam@140 60 expr "X$arg" : "X\\(.*\\)$as_nl";
cannam@140 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
cannam@140 62 esac;
cannam@140 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
cannam@140 64 '
cannam@140 65 export as_echo_n_body
cannam@140 66 as_echo_n='sh -c $as_echo_n_body as_echo'
cannam@140 67 fi
cannam@140 68 export as_echo_body
cannam@140 69 as_echo='sh -c $as_echo_body as_echo'
cannam@140 70 fi
cannam@140 71
cannam@140 72 # The user is always right.
cannam@140 73 if test "${PATH_SEPARATOR+set}" != set; then
cannam@140 74 PATH_SEPARATOR=:
cannam@140 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
cannam@140 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
cannam@140 77 PATH_SEPARATOR=';'
cannam@140 78 }
cannam@140 79 fi
cannam@140 80
cannam@140 81
cannam@140 82 # IFS
cannam@140 83 # We need space, tab and new line, in precisely that order. Quoting is
cannam@140 84 # there to prevent editors from complaining about space-tab.
cannam@140 85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
cannam@140 86 # splitting by setting IFS to empty value.)
cannam@140 87 IFS=" "" $as_nl"
cannam@140 88
cannam@140 89 # Find who we are. Look in the path if we contain no directory separator.
cannam@140 90 as_myself=
cannam@140 91 case $0 in #((
cannam@140 92 *[\\/]* ) as_myself=$0 ;;
cannam@140 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 94 for as_dir in $PATH
cannam@140 95 do
cannam@140 96 IFS=$as_save_IFS
cannam@140 97 test -z "$as_dir" && as_dir=.
cannam@140 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
cannam@140 99 done
cannam@140 100 IFS=$as_save_IFS
cannam@140 101
cannam@140 102 ;;
cannam@140 103 esac
cannam@140 104 # We did not find ourselves, most probably we were run as `sh COMMAND'
cannam@140 105 # in which case we are not to be found in the path.
cannam@140 106 if test "x$as_myself" = x; then
cannam@140 107 as_myself=$0
cannam@140 108 fi
cannam@140 109 if test ! -f "$as_myself"; then
cannam@140 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cannam@140 111 exit 1
cannam@140 112 fi
cannam@140 113
cannam@140 114 # Unset variables that we do not need and which cause bugs (e.g. in
cannam@140 115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
cannam@140 116 # suppresses any "Segmentation fault" message there. '((' could
cannam@140 117 # trigger a bug in pdksh 5.2.14.
cannam@140 118 for as_var in BASH_ENV ENV MAIL MAILPATH
cannam@140 119 do eval test x\${$as_var+set} = xset \
cannam@140 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cannam@140 121 done
cannam@140 122 PS1='$ '
cannam@140 123 PS2='> '
cannam@140 124 PS4='+ '
cannam@140 125
cannam@140 126 # NLS nuisances.
cannam@140 127 LC_ALL=C
cannam@140 128 export LC_ALL
cannam@140 129 LANGUAGE=C
cannam@140 130 export LANGUAGE
cannam@140 131
cannam@140 132 # CDPATH.
cannam@140 133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cannam@140 134
cannam@140 135 # Use a proper internal environment variable to ensure we don't fall
cannam@140 136 # into an infinite loop, continuously re-executing ourselves.
cannam@140 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
cannam@140 138 _as_can_reexec=no; export _as_can_reexec;
cannam@140 139 # We cannot yet assume a decent shell, so we have to provide a
cannam@140 140 # neutralization value for shells without unset; and this also
cannam@140 141 # works around shells that cannot unset nonexistent variables.
cannam@140 142 # Preserve -v and -x to the replacement shell.
cannam@140 143 BASH_ENV=/dev/null
cannam@140 144 ENV=/dev/null
cannam@140 145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
cannam@140 146 case $- in # ((((
cannam@140 147 *v*x* | *x*v* ) as_opts=-vx ;;
cannam@140 148 *v* ) as_opts=-v ;;
cannam@140 149 *x* ) as_opts=-x ;;
cannam@140 150 * ) as_opts= ;;
cannam@140 151 esac
cannam@140 152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
cannam@140 153 # Admittedly, this is quite paranoid, since all the known shells bail
cannam@140 154 # out after a failed `exec'.
cannam@140 155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
cannam@140 156 as_fn_exit 255
cannam@140 157 fi
cannam@140 158 # We don't want this to propagate to other subprocesses.
cannam@140 159 { _as_can_reexec=; unset _as_can_reexec;}
cannam@140 160 if test "x$CONFIG_SHELL" = x; then
cannam@140 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
cannam@140 162 emulate sh
cannam@140 163 NULLCMD=:
cannam@140 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
cannam@140 165 # is contrary to our usage. Disable this feature.
cannam@140 166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
cannam@140 167 setopt NO_GLOB_SUBST
cannam@140 168 else
cannam@140 169 case \`(set -o) 2>/dev/null\` in #(
cannam@140 170 *posix*) :
cannam@140 171 set -o posix ;; #(
cannam@140 172 *) :
cannam@140 173 ;;
cannam@140 174 esac
cannam@140 175 fi
cannam@140 176 "
cannam@140 177 as_required="as_fn_return () { (exit \$1); }
cannam@140 178 as_fn_success () { as_fn_return 0; }
cannam@140 179 as_fn_failure () { as_fn_return 1; }
cannam@140 180 as_fn_ret_success () { return 0; }
cannam@140 181 as_fn_ret_failure () { return 1; }
cannam@140 182
cannam@140 183 exitcode=0
cannam@140 184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
cannam@140 185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
cannam@140 186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
cannam@140 187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
cannam@140 188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
cannam@140 189
cannam@140 190 else
cannam@140 191 exitcode=1; echo positional parameters were not saved.
cannam@140 192 fi
cannam@140 193 test x\$exitcode = x0 || exit 1
cannam@140 194 test -x / || exit 1"
cannam@140 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
cannam@140 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
cannam@140 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
cannam@140 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cannam@140 199
cannam@140 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
cannam@140 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@140 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
cannam@140 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
cannam@140 204 PATH=/empty FPATH=/empty; export PATH FPATH
cannam@140 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
cannam@140 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
cannam@140 207 test \$(( 1 + 1 )) = 2 || exit 1"
cannam@140 208 if (eval "$as_required") 2>/dev/null; then :
cannam@140 209 as_have_required=yes
cannam@140 210 else
cannam@140 211 as_have_required=no
cannam@140 212 fi
cannam@140 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
cannam@140 214
cannam@140 215 else
cannam@140 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 217 as_found=false
cannam@140 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
cannam@140 219 do
cannam@140 220 IFS=$as_save_IFS
cannam@140 221 test -z "$as_dir" && as_dir=.
cannam@140 222 as_found=:
cannam@140 223 case $as_dir in #(
cannam@140 224 /*)
cannam@140 225 for as_base in sh bash ksh sh5; do
cannam@140 226 # Try only shells that exist, to save several forks.
cannam@140 227 as_shell=$as_dir/$as_base
cannam@140 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
cannam@140 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
cannam@140 230 CONFIG_SHELL=$as_shell as_have_required=yes
cannam@140 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
cannam@140 232 break 2
cannam@140 233 fi
cannam@140 234 fi
cannam@140 235 done;;
cannam@140 236 esac
cannam@140 237 as_found=false
cannam@140 238 done
cannam@140 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
cannam@140 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
cannam@140 241 CONFIG_SHELL=$SHELL as_have_required=yes
cannam@140 242 fi; }
cannam@140 243 IFS=$as_save_IFS
cannam@140 244
cannam@140 245
cannam@140 246 if test "x$CONFIG_SHELL" != x; then :
cannam@140 247 export CONFIG_SHELL
cannam@140 248 # We cannot yet assume a decent shell, so we have to provide a
cannam@140 249 # neutralization value for shells without unset; and this also
cannam@140 250 # works around shells that cannot unset nonexistent variables.
cannam@140 251 # Preserve -v and -x to the replacement shell.
cannam@140 252 BASH_ENV=/dev/null
cannam@140 253 ENV=/dev/null
cannam@140 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
cannam@140 255 case $- in # ((((
cannam@140 256 *v*x* | *x*v* ) as_opts=-vx ;;
cannam@140 257 *v* ) as_opts=-v ;;
cannam@140 258 *x* ) as_opts=-x ;;
cannam@140 259 * ) as_opts= ;;
cannam@140 260 esac
cannam@140 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
cannam@140 262 # Admittedly, this is quite paranoid, since all the known shells bail
cannam@140 263 # out after a failed `exec'.
cannam@140 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
cannam@140 265 exit 255
cannam@140 266 fi
cannam@140 267
cannam@140 268 if test x$as_have_required = xno; then :
cannam@140 269 $as_echo "$0: This script requires a shell more modern than all"
cannam@140 270 $as_echo "$0: the shells that I found on your system."
cannam@140 271 if test x${ZSH_VERSION+set} = xset ; then
cannam@140 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
cannam@140 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
cannam@140 274 else
cannam@140 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
cannam@140 276 $0: including any error possibly output before this
cannam@140 277 $0: message. Then install a modern shell, or manually run
cannam@140 278 $0: the script under such a shell if you do have one."
cannam@140 279 fi
cannam@140 280 exit 1
cannam@140 281 fi
cannam@140 282 fi
cannam@140 283 fi
cannam@140 284 SHELL=${CONFIG_SHELL-/bin/sh}
cannam@140 285 export SHELL
cannam@140 286 # Unset more variables known to interfere with behavior of common tools.
cannam@140 287 CLICOLOR_FORCE= GREP_OPTIONS=
cannam@140 288 unset CLICOLOR_FORCE GREP_OPTIONS
cannam@140 289
cannam@140 290 ## --------------------- ##
cannam@140 291 ## M4sh Shell Functions. ##
cannam@140 292 ## --------------------- ##
cannam@140 293 # as_fn_unset VAR
cannam@140 294 # ---------------
cannam@140 295 # Portably unset VAR.
cannam@140 296 as_fn_unset ()
cannam@140 297 {
cannam@140 298 { eval $1=; unset $1;}
cannam@140 299 }
cannam@140 300 as_unset=as_fn_unset
cannam@140 301
cannam@140 302 # as_fn_set_status STATUS
cannam@140 303 # -----------------------
cannam@140 304 # Set $? to STATUS, without forking.
cannam@140 305 as_fn_set_status ()
cannam@140 306 {
cannam@140 307 return $1
cannam@140 308 } # as_fn_set_status
cannam@140 309
cannam@140 310 # as_fn_exit STATUS
cannam@140 311 # -----------------
cannam@140 312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
cannam@140 313 as_fn_exit ()
cannam@140 314 {
cannam@140 315 set +e
cannam@140 316 as_fn_set_status $1
cannam@140 317 exit $1
cannam@140 318 } # as_fn_exit
cannam@140 319
cannam@140 320 # as_fn_mkdir_p
cannam@140 321 # -------------
cannam@140 322 # Create "$as_dir" as a directory, including parents if necessary.
cannam@140 323 as_fn_mkdir_p ()
cannam@140 324 {
cannam@140 325
cannam@140 326 case $as_dir in #(
cannam@140 327 -*) as_dir=./$as_dir;;
cannam@140 328 esac
cannam@140 329 test -d "$as_dir" || eval $as_mkdir_p || {
cannam@140 330 as_dirs=
cannam@140 331 while :; do
cannam@140 332 case $as_dir in #(
cannam@140 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
cannam@140 334 *) as_qdir=$as_dir;;
cannam@140 335 esac
cannam@140 336 as_dirs="'$as_qdir' $as_dirs"
cannam@140 337 as_dir=`$as_dirname -- "$as_dir" ||
cannam@140 338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@140 339 X"$as_dir" : 'X\(//\)[^/]' \| \
cannam@140 340 X"$as_dir" : 'X\(//\)$' \| \
cannam@140 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
cannam@140 342 $as_echo X"$as_dir" |
cannam@140 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@140 344 s//\1/
cannam@140 345 q
cannam@140 346 }
cannam@140 347 /^X\(\/\/\)[^/].*/{
cannam@140 348 s//\1/
cannam@140 349 q
cannam@140 350 }
cannam@140 351 /^X\(\/\/\)$/{
cannam@140 352 s//\1/
cannam@140 353 q
cannam@140 354 }
cannam@140 355 /^X\(\/\).*/{
cannam@140 356 s//\1/
cannam@140 357 q
cannam@140 358 }
cannam@140 359 s/.*/./; q'`
cannam@140 360 test -d "$as_dir" && break
cannam@140 361 done
cannam@140 362 test -z "$as_dirs" || eval "mkdir $as_dirs"
cannam@140 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cannam@140 364
cannam@140 365
cannam@140 366 } # as_fn_mkdir_p
cannam@140 367
cannam@140 368 # as_fn_executable_p FILE
cannam@140 369 # -----------------------
cannam@140 370 # Test if FILE is an executable regular file.
cannam@140 371 as_fn_executable_p ()
cannam@140 372 {
cannam@140 373 test -f "$1" && test -x "$1"
cannam@140 374 } # as_fn_executable_p
cannam@140 375 # as_fn_append VAR VALUE
cannam@140 376 # ----------------------
cannam@140 377 # Append the text in VALUE to the end of the definition contained in VAR. Take
cannam@140 378 # advantage of any shell optimizations that allow amortized linear growth over
cannam@140 379 # repeated appends, instead of the typical quadratic growth present in naive
cannam@140 380 # implementations.
cannam@140 381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
cannam@140 382 eval 'as_fn_append ()
cannam@140 383 {
cannam@140 384 eval $1+=\$2
cannam@140 385 }'
cannam@140 386 else
cannam@140 387 as_fn_append ()
cannam@140 388 {
cannam@140 389 eval $1=\$$1\$2
cannam@140 390 }
cannam@140 391 fi # as_fn_append
cannam@140 392
cannam@140 393 # as_fn_arith ARG...
cannam@140 394 # ------------------
cannam@140 395 # Perform arithmetic evaluation on the ARGs, and store the result in the
cannam@140 396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
cannam@140 397 # must be portable across $(()) and expr.
cannam@140 398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
cannam@140 399 eval 'as_fn_arith ()
cannam@140 400 {
cannam@140 401 as_val=$(( $* ))
cannam@140 402 }'
cannam@140 403 else
cannam@140 404 as_fn_arith ()
cannam@140 405 {
cannam@140 406 as_val=`expr "$@" || test $? -eq 1`
cannam@140 407 }
cannam@140 408 fi # as_fn_arith
cannam@140 409
cannam@140 410
cannam@140 411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
cannam@140 412 # ----------------------------------------
cannam@140 413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
cannam@140 414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cannam@140 415 # script with STATUS, using 1 if that was 0.
cannam@140 416 as_fn_error ()
cannam@140 417 {
cannam@140 418 as_status=$1; test $as_status -eq 0 && as_status=1
cannam@140 419 if test "$4"; then
cannam@140 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@140 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cannam@140 422 fi
cannam@140 423 $as_echo "$as_me: error: $2" >&2
cannam@140 424 as_fn_exit $as_status
cannam@140 425 } # as_fn_error
cannam@140 426
cannam@140 427 if expr a : '\(a\)' >/dev/null 2>&1 &&
cannam@140 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
cannam@140 429 as_expr=expr
cannam@140 430 else
cannam@140 431 as_expr=false
cannam@140 432 fi
cannam@140 433
cannam@140 434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
cannam@140 435 as_basename=basename
cannam@140 436 else
cannam@140 437 as_basename=false
cannam@140 438 fi
cannam@140 439
cannam@140 440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
cannam@140 441 as_dirname=dirname
cannam@140 442 else
cannam@140 443 as_dirname=false
cannam@140 444 fi
cannam@140 445
cannam@140 446 as_me=`$as_basename -- "$0" ||
cannam@140 447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
cannam@140 448 X"$0" : 'X\(//\)$' \| \
cannam@140 449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
cannam@140 450 $as_echo X/"$0" |
cannam@140 451 sed '/^.*\/\([^/][^/]*\)\/*$/{
cannam@140 452 s//\1/
cannam@140 453 q
cannam@140 454 }
cannam@140 455 /^X\/\(\/\/\)$/{
cannam@140 456 s//\1/
cannam@140 457 q
cannam@140 458 }
cannam@140 459 /^X\/\(\/\).*/{
cannam@140 460 s//\1/
cannam@140 461 q
cannam@140 462 }
cannam@140 463 s/.*/./; q'`
cannam@140 464
cannam@140 465 # Avoid depending upon Character Ranges.
cannam@140 466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
cannam@140 467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
cannam@140 468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
cannam@140 469 as_cr_digits='0123456789'
cannam@140 470 as_cr_alnum=$as_cr_Letters$as_cr_digits
cannam@140 471
cannam@140 472
cannam@140 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
cannam@140 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
cannam@140 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
cannam@140 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
cannam@140 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cannam@140 478 sed -n '
cannam@140 479 p
cannam@140 480 /[$]LINENO/=
cannam@140 481 ' <$as_myself |
cannam@140 482 sed '
cannam@140 483 s/[$]LINENO.*/&-/
cannam@140 484 t lineno
cannam@140 485 b
cannam@140 486 :lineno
cannam@140 487 N
cannam@140 488 :loop
cannam@140 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
cannam@140 490 t loop
cannam@140 491 s/-\n.*//
cannam@140 492 ' >$as_me.lineno &&
cannam@140 493 chmod +x "$as_me.lineno" ||
cannam@140 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cannam@140 495
cannam@140 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
cannam@140 497 # already done that, so ensure we don't try to do so again and fall
cannam@140 498 # in an infinite loop. This has already happened in practice.
cannam@140 499 _as_can_reexec=no; export _as_can_reexec
cannam@140 500 # Don't try to exec as it changes $[0], causing all sort of problems
cannam@140 501 # (the dirname of $[0] is not the place where we might find the
cannam@140 502 # original and so on. Autoconf is especially sensitive to this).
cannam@140 503 . "./$as_me.lineno"
cannam@140 504 # Exit status is that of the last command.
cannam@140 505 exit
cannam@140 506 }
cannam@140 507
cannam@140 508 ECHO_C= ECHO_N= ECHO_T=
cannam@140 509 case `echo -n x` in #(((((
cannam@140 510 -n*)
cannam@140 511 case `echo 'xy\c'` in
cannam@140 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cannam@140 513 xy) ECHO_C='\c';;
cannam@140 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
cannam@140 515 ECHO_T=' ';;
cannam@140 516 esac;;
cannam@140 517 *)
cannam@140 518 ECHO_N='-n';;
cannam@140 519 esac
cannam@140 520
cannam@140 521 rm -f conf$$ conf$$.exe conf$$.file
cannam@140 522 if test -d conf$$.dir; then
cannam@140 523 rm -f conf$$.dir/conf$$.file
cannam@140 524 else
cannam@140 525 rm -f conf$$.dir
cannam@140 526 mkdir conf$$.dir 2>/dev/null
cannam@140 527 fi
cannam@140 528 if (echo >conf$$.file) 2>/dev/null; then
cannam@140 529 if ln -s conf$$.file conf$$ 2>/dev/null; then
cannam@140 530 as_ln_s='ln -s'
cannam@140 531 # ... but there are two gotchas:
cannam@140 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
cannam@140 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cannam@140 534 # In both cases, we have to default to `cp -pR'.
cannam@140 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cannam@140 536 as_ln_s='cp -pR'
cannam@140 537 elif ln conf$$.file conf$$ 2>/dev/null; then
cannam@140 538 as_ln_s=ln
cannam@140 539 else
cannam@140 540 as_ln_s='cp -pR'
cannam@140 541 fi
cannam@140 542 else
cannam@140 543 as_ln_s='cp -pR'
cannam@140 544 fi
cannam@140 545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
cannam@140 546 rmdir conf$$.dir 2>/dev/null
cannam@140 547
cannam@140 548 if mkdir -p . 2>/dev/null; then
cannam@140 549 as_mkdir_p='mkdir -p "$as_dir"'
cannam@140 550 else
cannam@140 551 test -d ./-p && rmdir ./-p
cannam@140 552 as_mkdir_p=false
cannam@140 553 fi
cannam@140 554
cannam@140 555 as_test_x='test -x'
cannam@140 556 as_executable_p=as_fn_executable_p
cannam@140 557
cannam@140 558 # Sed expression to map a string onto a valid CPP name.
cannam@140 559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
cannam@140 560
cannam@140 561 # Sed expression to map a string onto a valid variable name.
cannam@140 562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
cannam@140 563
cannam@140 564 SHELL=${CONFIG_SHELL-/bin/sh}
cannam@140 565
cannam@140 566
cannam@140 567 test -n "$DJDIR" || exec 7<&0 </dev/null
cannam@140 568 exec 6>&1
cannam@140 569
cannam@140 570 # Name of the host.
cannam@140 571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cannam@140 572 # so uname gets run too.
cannam@140 573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@140 574
cannam@140 575 #
cannam@140 576 # Initializations.
cannam@140 577 #
cannam@140 578 ac_default_prefix=/usr/local
cannam@140 579 ac_clean_files=
cannam@140 580 ac_config_libobj_dir=.
cannam@140 581 LIBOBJS=
cannam@140 582 cross_compiling=no
cannam@140 583 subdirs=
cannam@140 584 MFLAGS=
cannam@140 585 MAKEFLAGS=
cannam@140 586
cannam@140 587 # Identity of this package.
cannam@140 588 PACKAGE_NAME='PortAudioCpp'
cannam@140 589 PACKAGE_TARNAME='portaudiocpp'
cannam@140 590 PACKAGE_VERSION='12'
cannam@140 591 PACKAGE_STRING='PortAudioCpp 12'
cannam@140 592 PACKAGE_BUGREPORT=''
cannam@140 593 PACKAGE_URL=''
cannam@140 594
cannam@140 595 ac_unique_file="include/portaudiocpp/PortAudioCpp.hxx"
cannam@140 596 # Factoring default headers for most tests.
cannam@140 597 ac_includes_default="\
cannam@140 598 #include <stdio.h>
cannam@140 599 #ifdef HAVE_SYS_TYPES_H
cannam@140 600 # include <sys/types.h>
cannam@140 601 #endif
cannam@140 602 #ifdef HAVE_SYS_STAT_H
cannam@140 603 # include <sys/stat.h>
cannam@140 604 #endif
cannam@140 605 #ifdef STDC_HEADERS
cannam@140 606 # include <stdlib.h>
cannam@140 607 # include <stddef.h>
cannam@140 608 #else
cannam@140 609 # ifdef HAVE_STDLIB_H
cannam@140 610 # include <stdlib.h>
cannam@140 611 # endif
cannam@140 612 #endif
cannam@140 613 #ifdef HAVE_STRING_H
cannam@140 614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
cannam@140 615 # include <memory.h>
cannam@140 616 # endif
cannam@140 617 # include <string.h>
cannam@140 618 #endif
cannam@140 619 #ifdef HAVE_STRINGS_H
cannam@140 620 # include <strings.h>
cannam@140 621 #endif
cannam@140 622 #ifdef HAVE_INTTYPES_H
cannam@140 623 # include <inttypes.h>
cannam@140 624 #endif
cannam@140 625 #ifdef HAVE_STDINT_H
cannam@140 626 # include <stdint.h>
cannam@140 627 #endif
cannam@140 628 #ifdef HAVE_UNISTD_H
cannam@140 629 # include <unistd.h>
cannam@140 630 #endif"
cannam@140 631
cannam@140 632 ac_subst_vars='am__EXEEXT_FALSE
cannam@140 633 am__EXEEXT_TRUE
cannam@140 634 LTLIBOBJS
cannam@140 635 LIBOBJS
cannam@140 636 LT_VERSION_INFO
cannam@140 637 PORTAUDIO_ROOT
cannam@140 638 DEFAULT_INCLUDES
cannam@140 639 CXXCPP
cannam@140 640 CPP
cannam@140 641 OTOOL64
cannam@140 642 OTOOL
cannam@140 643 LIPO
cannam@140 644 NMEDIT
cannam@140 645 DSYMUTIL
cannam@140 646 MANIFEST_TOOL
cannam@140 647 RANLIB
cannam@140 648 ac_ct_AR
cannam@140 649 AR
cannam@140 650 LN_S
cannam@140 651 NM
cannam@140 652 ac_ct_DUMPBIN
cannam@140 653 DUMPBIN
cannam@140 654 LD
cannam@140 655 FGREP
cannam@140 656 EGREP
cannam@140 657 GREP
cannam@140 658 SED
cannam@140 659 LIBTOOL
cannam@140 660 OBJDUMP
cannam@140 661 DLLTOOL
cannam@140 662 AS
cannam@140 663 host_os
cannam@140 664 host_vendor
cannam@140 665 host_cpu
cannam@140 666 host
cannam@140 667 build_os
cannam@140 668 build_vendor
cannam@140 669 build_cpu
cannam@140 670 build
cannam@140 671 am__fastdepCXX_FALSE
cannam@140 672 am__fastdepCXX_TRUE
cannam@140 673 CXXDEPMODE
cannam@140 674 ac_ct_CXX
cannam@140 675 CXXFLAGS
cannam@140 676 CXX
cannam@140 677 am__fastdepCC_FALSE
cannam@140 678 am__fastdepCC_TRUE
cannam@140 679 CCDEPMODE
cannam@140 680 am__nodep
cannam@140 681 AMDEPBACKSLASH
cannam@140 682 AMDEP_FALSE
cannam@140 683 AMDEP_TRUE
cannam@140 684 am__quote
cannam@140 685 am__include
cannam@140 686 DEPDIR
cannam@140 687 OBJEXT
cannam@140 688 EXEEXT
cannam@140 689 ac_ct_CC
cannam@140 690 CPPFLAGS
cannam@140 691 LDFLAGS
cannam@140 692 CFLAGS
cannam@140 693 CC
cannam@140 694 MAINT
cannam@140 695 MAINTAINER_MODE_FALSE
cannam@140 696 MAINTAINER_MODE_TRUE
cannam@140 697 AM_BACKSLASH
cannam@140 698 AM_DEFAULT_VERBOSITY
cannam@140 699 AM_DEFAULT_V
cannam@140 700 AM_V
cannam@140 701 am__untar
cannam@140 702 am__tar
cannam@140 703 AMTAR
cannam@140 704 am__leading_dot
cannam@140 705 SET_MAKE
cannam@140 706 AWK
cannam@140 707 mkdir_p
cannam@140 708 MKDIR_P
cannam@140 709 INSTALL_STRIP_PROGRAM
cannam@140 710 STRIP
cannam@140 711 install_sh
cannam@140 712 MAKEINFO
cannam@140 713 AUTOHEADER
cannam@140 714 AUTOMAKE
cannam@140 715 AUTOCONF
cannam@140 716 ACLOCAL
cannam@140 717 VERSION
cannam@140 718 PACKAGE
cannam@140 719 CYGPATH_W
cannam@140 720 am__isrc
cannam@140 721 INSTALL_DATA
cannam@140 722 INSTALL_SCRIPT
cannam@140 723 INSTALL_PROGRAM
cannam@140 724 target_alias
cannam@140 725 host_alias
cannam@140 726 build_alias
cannam@140 727 LIBS
cannam@140 728 ECHO_T
cannam@140 729 ECHO_N
cannam@140 730 ECHO_C
cannam@140 731 DEFS
cannam@140 732 mandir
cannam@140 733 localedir
cannam@140 734 libdir
cannam@140 735 psdir
cannam@140 736 pdfdir
cannam@140 737 dvidir
cannam@140 738 htmldir
cannam@140 739 infodir
cannam@140 740 docdir
cannam@140 741 oldincludedir
cannam@140 742 includedir
cannam@140 743 localstatedir
cannam@140 744 sharedstatedir
cannam@140 745 sysconfdir
cannam@140 746 datadir
cannam@140 747 datarootdir
cannam@140 748 libexecdir
cannam@140 749 sbindir
cannam@140 750 bindir
cannam@140 751 program_transform_name
cannam@140 752 prefix
cannam@140 753 exec_prefix
cannam@140 754 PACKAGE_URL
cannam@140 755 PACKAGE_BUGREPORT
cannam@140 756 PACKAGE_STRING
cannam@140 757 PACKAGE_VERSION
cannam@140 758 PACKAGE_TARNAME
cannam@140 759 PACKAGE_NAME
cannam@140 760 PATH_SEPARATOR
cannam@140 761 SHELL'
cannam@140 762 ac_subst_files=''
cannam@140 763 ac_user_opts='
cannam@140 764 enable_option_checking
cannam@140 765 enable_silent_rules
cannam@140 766 enable_maintainer_mode
cannam@140 767 enable_dependency_tracking
cannam@140 768 enable_shared
cannam@140 769 enable_static
cannam@140 770 with_pic
cannam@140 771 enable_fast_install
cannam@140 772 with_gnu_ld
cannam@140 773 with_sysroot
cannam@140 774 enable_libtool_lock
cannam@140 775 '
cannam@140 776 ac_precious_vars='build_alias
cannam@140 777 host_alias
cannam@140 778 target_alias
cannam@140 779 CC
cannam@140 780 CFLAGS
cannam@140 781 LDFLAGS
cannam@140 782 LIBS
cannam@140 783 CPPFLAGS
cannam@140 784 CXX
cannam@140 785 CXXFLAGS
cannam@140 786 CCC
cannam@140 787 CPP
cannam@140 788 CXXCPP'
cannam@140 789
cannam@140 790
cannam@140 791 # Initialize some variables set by options.
cannam@140 792 ac_init_help=
cannam@140 793 ac_init_version=false
cannam@140 794 ac_unrecognized_opts=
cannam@140 795 ac_unrecognized_sep=
cannam@140 796 # The variables have the same names as the options, with
cannam@140 797 # dashes changed to underlines.
cannam@140 798 cache_file=/dev/null
cannam@140 799 exec_prefix=NONE
cannam@140 800 no_create=
cannam@140 801 no_recursion=
cannam@140 802 prefix=NONE
cannam@140 803 program_prefix=NONE
cannam@140 804 program_suffix=NONE
cannam@140 805 program_transform_name=s,x,x,
cannam@140 806 silent=
cannam@140 807 site=
cannam@140 808 srcdir=
cannam@140 809 verbose=
cannam@140 810 x_includes=NONE
cannam@140 811 x_libraries=NONE
cannam@140 812
cannam@140 813 # Installation directory options.
cannam@140 814 # These are left unexpanded so users can "make install exec_prefix=/foo"
cannam@140 815 # and all the variables that are supposed to be based on exec_prefix
cannam@140 816 # by default will actually change.
cannam@140 817 # Use braces instead of parens because sh, perl, etc. also accept them.
cannam@140 818 # (The list follows the same order as the GNU Coding Standards.)
cannam@140 819 bindir='${exec_prefix}/bin'
cannam@140 820 sbindir='${exec_prefix}/sbin'
cannam@140 821 libexecdir='${exec_prefix}/libexec'
cannam@140 822 datarootdir='${prefix}/share'
cannam@140 823 datadir='${datarootdir}'
cannam@140 824 sysconfdir='${prefix}/etc'
cannam@140 825 sharedstatedir='${prefix}/com'
cannam@140 826 localstatedir='${prefix}/var'
cannam@140 827 includedir='${prefix}/include'
cannam@140 828 oldincludedir='/usr/include'
cannam@140 829 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
cannam@140 830 infodir='${datarootdir}/info'
cannam@140 831 htmldir='${docdir}'
cannam@140 832 dvidir='${docdir}'
cannam@140 833 pdfdir='${docdir}'
cannam@140 834 psdir='${docdir}'
cannam@140 835 libdir='${exec_prefix}/lib'
cannam@140 836 localedir='${datarootdir}/locale'
cannam@140 837 mandir='${datarootdir}/man'
cannam@140 838
cannam@140 839 ac_prev=
cannam@140 840 ac_dashdash=
cannam@140 841 for ac_option
cannam@140 842 do
cannam@140 843 # If the previous option needs an argument, assign it.
cannam@140 844 if test -n "$ac_prev"; then
cannam@140 845 eval $ac_prev=\$ac_option
cannam@140 846 ac_prev=
cannam@140 847 continue
cannam@140 848 fi
cannam@140 849
cannam@140 850 case $ac_option in
cannam@140 851 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
cannam@140 852 *=) ac_optarg= ;;
cannam@140 853 *) ac_optarg=yes ;;
cannam@140 854 esac
cannam@140 855
cannam@140 856 # Accept the important Cygnus configure options, so we can diagnose typos.
cannam@140 857
cannam@140 858 case $ac_dashdash$ac_option in
cannam@140 859 --)
cannam@140 860 ac_dashdash=yes ;;
cannam@140 861
cannam@140 862 -bindir | --bindir | --bindi | --bind | --bin | --bi)
cannam@140 863 ac_prev=bindir ;;
cannam@140 864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
cannam@140 865 bindir=$ac_optarg ;;
cannam@140 866
cannam@140 867 -build | --build | --buil | --bui | --bu)
cannam@140 868 ac_prev=build_alias ;;
cannam@140 869 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
cannam@140 870 build_alias=$ac_optarg ;;
cannam@140 871
cannam@140 872 -cache-file | --cache-file | --cache-fil | --cache-fi \
cannam@140 873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
cannam@140 874 ac_prev=cache_file ;;
cannam@140 875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
cannam@140 876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
cannam@140 877 cache_file=$ac_optarg ;;
cannam@140 878
cannam@140 879 --config-cache | -C)
cannam@140 880 cache_file=config.cache ;;
cannam@140 881
cannam@140 882 -datadir | --datadir | --datadi | --datad)
cannam@140 883 ac_prev=datadir ;;
cannam@140 884 -datadir=* | --datadir=* | --datadi=* | --datad=*)
cannam@140 885 datadir=$ac_optarg ;;
cannam@140 886
cannam@140 887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
cannam@140 888 | --dataroo | --dataro | --datar)
cannam@140 889 ac_prev=datarootdir ;;
cannam@140 890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
cannam@140 891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
cannam@140 892 datarootdir=$ac_optarg ;;
cannam@140 893
cannam@140 894 -disable-* | --disable-*)
cannam@140 895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
cannam@140 896 # Reject names that are not valid shell variable names.
cannam@140 897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@140 898 as_fn_error $? "invalid feature name: $ac_useropt"
cannam@140 899 ac_useropt_orig=$ac_useropt
cannam@140 900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@140 901 case $ac_user_opts in
cannam@140 902 *"
cannam@140 903 "enable_$ac_useropt"
cannam@140 904 "*) ;;
cannam@140 905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
cannam@140 906 ac_unrecognized_sep=', ';;
cannam@140 907 esac
cannam@140 908 eval enable_$ac_useropt=no ;;
cannam@140 909
cannam@140 910 -docdir | --docdir | --docdi | --doc | --do)
cannam@140 911 ac_prev=docdir ;;
cannam@140 912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
cannam@140 913 docdir=$ac_optarg ;;
cannam@140 914
cannam@140 915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
cannam@140 916 ac_prev=dvidir ;;
cannam@140 917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
cannam@140 918 dvidir=$ac_optarg ;;
cannam@140 919
cannam@140 920 -enable-* | --enable-*)
cannam@140 921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
cannam@140 922 # Reject names that are not valid shell variable names.
cannam@140 923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@140 924 as_fn_error $? "invalid feature name: $ac_useropt"
cannam@140 925 ac_useropt_orig=$ac_useropt
cannam@140 926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@140 927 case $ac_user_opts in
cannam@140 928 *"
cannam@140 929 "enable_$ac_useropt"
cannam@140 930 "*) ;;
cannam@140 931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
cannam@140 932 ac_unrecognized_sep=', ';;
cannam@140 933 esac
cannam@140 934 eval enable_$ac_useropt=\$ac_optarg ;;
cannam@140 935
cannam@140 936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
cannam@140 937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
cannam@140 938 | --exec | --exe | --ex)
cannam@140 939 ac_prev=exec_prefix ;;
cannam@140 940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
cannam@140 941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
cannam@140 942 | --exec=* | --exe=* | --ex=*)
cannam@140 943 exec_prefix=$ac_optarg ;;
cannam@140 944
cannam@140 945 -gas | --gas | --ga | --g)
cannam@140 946 # Obsolete; use --with-gas.
cannam@140 947 with_gas=yes ;;
cannam@140 948
cannam@140 949 -help | --help | --hel | --he | -h)
cannam@140 950 ac_init_help=long ;;
cannam@140 951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
cannam@140 952 ac_init_help=recursive ;;
cannam@140 953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
cannam@140 954 ac_init_help=short ;;
cannam@140 955
cannam@140 956 -host | --host | --hos | --ho)
cannam@140 957 ac_prev=host_alias ;;
cannam@140 958 -host=* | --host=* | --hos=* | --ho=*)
cannam@140 959 host_alias=$ac_optarg ;;
cannam@140 960
cannam@140 961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
cannam@140 962 ac_prev=htmldir ;;
cannam@140 963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
cannam@140 964 | --ht=*)
cannam@140 965 htmldir=$ac_optarg ;;
cannam@140 966
cannam@140 967 -includedir | --includedir | --includedi | --included | --include \
cannam@140 968 | --includ | --inclu | --incl | --inc)
cannam@140 969 ac_prev=includedir ;;
cannam@140 970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
cannam@140 971 | --includ=* | --inclu=* | --incl=* | --inc=*)
cannam@140 972 includedir=$ac_optarg ;;
cannam@140 973
cannam@140 974 -infodir | --infodir | --infodi | --infod | --info | --inf)
cannam@140 975 ac_prev=infodir ;;
cannam@140 976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
cannam@140 977 infodir=$ac_optarg ;;
cannam@140 978
cannam@140 979 -libdir | --libdir | --libdi | --libd)
cannam@140 980 ac_prev=libdir ;;
cannam@140 981 -libdir=* | --libdir=* | --libdi=* | --libd=*)
cannam@140 982 libdir=$ac_optarg ;;
cannam@140 983
cannam@140 984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
cannam@140 985 | --libexe | --libex | --libe)
cannam@140 986 ac_prev=libexecdir ;;
cannam@140 987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
cannam@140 988 | --libexe=* | --libex=* | --libe=*)
cannam@140 989 libexecdir=$ac_optarg ;;
cannam@140 990
cannam@140 991 -localedir | --localedir | --localedi | --localed | --locale)
cannam@140 992 ac_prev=localedir ;;
cannam@140 993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
cannam@140 994 localedir=$ac_optarg ;;
cannam@140 995
cannam@140 996 -localstatedir | --localstatedir | --localstatedi | --localstated \
cannam@140 997 | --localstate | --localstat | --localsta | --localst | --locals)
cannam@140 998 ac_prev=localstatedir ;;
cannam@140 999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cannam@140 1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
cannam@140 1001 localstatedir=$ac_optarg ;;
cannam@140 1002
cannam@140 1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
cannam@140 1004 ac_prev=mandir ;;
cannam@140 1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
cannam@140 1006 mandir=$ac_optarg ;;
cannam@140 1007
cannam@140 1008 -nfp | --nfp | --nf)
cannam@140 1009 # Obsolete; use --without-fp.
cannam@140 1010 with_fp=no ;;
cannam@140 1011
cannam@140 1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
cannam@140 1013 | --no-cr | --no-c | -n)
cannam@140 1014 no_create=yes ;;
cannam@140 1015
cannam@140 1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
cannam@140 1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
cannam@140 1018 no_recursion=yes ;;
cannam@140 1019
cannam@140 1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
cannam@140 1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
cannam@140 1022 | --oldin | --oldi | --old | --ol | --o)
cannam@140 1023 ac_prev=oldincludedir ;;
cannam@140 1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
cannam@140 1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
cannam@140 1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
cannam@140 1027 oldincludedir=$ac_optarg ;;
cannam@140 1028
cannam@140 1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
cannam@140 1030 ac_prev=prefix ;;
cannam@140 1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
cannam@140 1032 prefix=$ac_optarg ;;
cannam@140 1033
cannam@140 1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \
cannam@140 1035 | --program-pre | --program-pr | --program-p)
cannam@140 1036 ac_prev=program_prefix ;;
cannam@140 1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \
cannam@140 1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
cannam@140 1039 program_prefix=$ac_optarg ;;
cannam@140 1040
cannam@140 1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \
cannam@140 1042 | --program-suf | --program-su | --program-s)
cannam@140 1043 ac_prev=program_suffix ;;
cannam@140 1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \
cannam@140 1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
cannam@140 1046 program_suffix=$ac_optarg ;;
cannam@140 1047
cannam@140 1048 -program-transform-name | --program-transform-name \
cannam@140 1049 | --program-transform-nam | --program-transform-na \
cannam@140 1050 | --program-transform-n | --program-transform- \
cannam@140 1051 | --program-transform | --program-transfor \
cannam@140 1052 | --program-transfo | --program-transf \
cannam@140 1053 | --program-trans | --program-tran \
cannam@140 1054 | --progr-tra | --program-tr | --program-t)
cannam@140 1055 ac_prev=program_transform_name ;;
cannam@140 1056 -program-transform-name=* | --program-transform-name=* \
cannam@140 1057 | --program-transform-nam=* | --program-transform-na=* \
cannam@140 1058 | --program-transform-n=* | --program-transform-=* \
cannam@140 1059 | --program-transform=* | --program-transfor=* \
cannam@140 1060 | --program-transfo=* | --program-transf=* \
cannam@140 1061 | --program-trans=* | --program-tran=* \
cannam@140 1062 | --progr-tra=* | --program-tr=* | --program-t=*)
cannam@140 1063 program_transform_name=$ac_optarg ;;
cannam@140 1064
cannam@140 1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
cannam@140 1066 ac_prev=pdfdir ;;
cannam@140 1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
cannam@140 1068 pdfdir=$ac_optarg ;;
cannam@140 1069
cannam@140 1070 -psdir | --psdir | --psdi | --psd | --ps)
cannam@140 1071 ac_prev=psdir ;;
cannam@140 1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
cannam@140 1073 psdir=$ac_optarg ;;
cannam@140 1074
cannam@140 1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@140 1076 | -silent | --silent | --silen | --sile | --sil)
cannam@140 1077 silent=yes ;;
cannam@140 1078
cannam@140 1079 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
cannam@140 1080 ac_prev=sbindir ;;
cannam@140 1081 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
cannam@140 1082 | --sbi=* | --sb=*)
cannam@140 1083 sbindir=$ac_optarg ;;
cannam@140 1084
cannam@140 1085 -sharedstatedir | --sharedstatedir | --sharedstatedi \
cannam@140 1086 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
cannam@140 1087 | --sharedst | --shareds | --shared | --share | --shar \
cannam@140 1088 | --sha | --sh)
cannam@140 1089 ac_prev=sharedstatedir ;;
cannam@140 1090 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
cannam@140 1091 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
cannam@140 1092 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
cannam@140 1093 | --sha=* | --sh=*)
cannam@140 1094 sharedstatedir=$ac_optarg ;;
cannam@140 1095
cannam@140 1096 -site | --site | --sit)
cannam@140 1097 ac_prev=site ;;
cannam@140 1098 -site=* | --site=* | --sit=*)
cannam@140 1099 site=$ac_optarg ;;
cannam@140 1100
cannam@140 1101 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
cannam@140 1102 ac_prev=srcdir ;;
cannam@140 1103 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
cannam@140 1104 srcdir=$ac_optarg ;;
cannam@140 1105
cannam@140 1106 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
cannam@140 1107 | --syscon | --sysco | --sysc | --sys | --sy)
cannam@140 1108 ac_prev=sysconfdir ;;
cannam@140 1109 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
cannam@140 1110 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
cannam@140 1111 sysconfdir=$ac_optarg ;;
cannam@140 1112
cannam@140 1113 -target | --target | --targe | --targ | --tar | --ta | --t)
cannam@140 1114 ac_prev=target_alias ;;
cannam@140 1115 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
cannam@140 1116 target_alias=$ac_optarg ;;
cannam@140 1117
cannam@140 1118 -v | -verbose | --verbose | --verbos | --verbo | --verb)
cannam@140 1119 verbose=yes ;;
cannam@140 1120
cannam@140 1121 -version | --version | --versio | --versi | --vers | -V)
cannam@140 1122 ac_init_version=: ;;
cannam@140 1123
cannam@140 1124 -with-* | --with-*)
cannam@140 1125 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
cannam@140 1126 # Reject names that are not valid shell variable names.
cannam@140 1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@140 1128 as_fn_error $? "invalid package name: $ac_useropt"
cannam@140 1129 ac_useropt_orig=$ac_useropt
cannam@140 1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@140 1131 case $ac_user_opts in
cannam@140 1132 *"
cannam@140 1133 "with_$ac_useropt"
cannam@140 1134 "*) ;;
cannam@140 1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
cannam@140 1136 ac_unrecognized_sep=', ';;
cannam@140 1137 esac
cannam@140 1138 eval with_$ac_useropt=\$ac_optarg ;;
cannam@140 1139
cannam@140 1140 -without-* | --without-*)
cannam@140 1141 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
cannam@140 1142 # Reject names that are not valid shell variable names.
cannam@140 1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@140 1144 as_fn_error $? "invalid package name: $ac_useropt"
cannam@140 1145 ac_useropt_orig=$ac_useropt
cannam@140 1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@140 1147 case $ac_user_opts in
cannam@140 1148 *"
cannam@140 1149 "with_$ac_useropt"
cannam@140 1150 "*) ;;
cannam@140 1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
cannam@140 1152 ac_unrecognized_sep=', ';;
cannam@140 1153 esac
cannam@140 1154 eval with_$ac_useropt=no ;;
cannam@140 1155
cannam@140 1156 --x)
cannam@140 1157 # Obsolete; use --with-x.
cannam@140 1158 with_x=yes ;;
cannam@140 1159
cannam@140 1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
cannam@140 1161 | --x-incl | --x-inc | --x-in | --x-i)
cannam@140 1162 ac_prev=x_includes ;;
cannam@140 1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
cannam@140 1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
cannam@140 1165 x_includes=$ac_optarg ;;
cannam@140 1166
cannam@140 1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
cannam@140 1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
cannam@140 1169 ac_prev=x_libraries ;;
cannam@140 1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
cannam@140 1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
cannam@140 1172 x_libraries=$ac_optarg ;;
cannam@140 1173
cannam@140 1174 -*) as_fn_error $? "unrecognized option: \`$ac_option'
cannam@140 1175 Try \`$0 --help' for more information"
cannam@140 1176 ;;
cannam@140 1177
cannam@140 1178 *=*)
cannam@140 1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
cannam@140 1180 # Reject names that are not valid shell variable names.
cannam@140 1181 case $ac_envvar in #(
cannam@140 1182 '' | [0-9]* | *[!_$as_cr_alnum]* )
cannam@140 1183 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cannam@140 1184 esac
cannam@140 1185 eval $ac_envvar=\$ac_optarg
cannam@140 1186 export $ac_envvar ;;
cannam@140 1187
cannam@140 1188 *)
cannam@140 1189 # FIXME: should be removed in autoconf 3.0.
cannam@140 1190 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
cannam@140 1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
cannam@140 1192 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cannam@140 1193 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cannam@140 1194 ;;
cannam@140 1195
cannam@140 1196 esac
cannam@140 1197 done
cannam@140 1198
cannam@140 1199 if test -n "$ac_prev"; then
cannam@140 1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cannam@140 1201 as_fn_error $? "missing argument to $ac_option"
cannam@140 1202 fi
cannam@140 1203
cannam@140 1204 if test -n "$ac_unrecognized_opts"; then
cannam@140 1205 case $enable_option_checking in
cannam@140 1206 no) ;;
cannam@140 1207 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cannam@140 1208 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
cannam@140 1209 esac
cannam@140 1210 fi
cannam@140 1211
cannam@140 1212 # Check all directory arguments for consistency.
cannam@140 1213 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
cannam@140 1214 datadir sysconfdir sharedstatedir localstatedir includedir \
cannam@140 1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
cannam@140 1216 libdir localedir mandir
cannam@140 1217 do
cannam@140 1218 eval ac_val=\$$ac_var
cannam@140 1219 # Remove trailing slashes.
cannam@140 1220 case $ac_val in
cannam@140 1221 */ )
cannam@140 1222 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
cannam@140 1223 eval $ac_var=\$ac_val;;
cannam@140 1224 esac
cannam@140 1225 # Be sure to have absolute directory names.
cannam@140 1226 case $ac_val in
cannam@140 1227 [\\/$]* | ?:[\\/]* ) continue;;
cannam@140 1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
cannam@140 1229 esac
cannam@140 1230 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cannam@140 1231 done
cannam@140 1232
cannam@140 1233 # There might be people who depend on the old broken behavior: `$host'
cannam@140 1234 # used to hold the argument of --host etc.
cannam@140 1235 # FIXME: To remove some day.
cannam@140 1236 build=$build_alias
cannam@140 1237 host=$host_alias
cannam@140 1238 target=$target_alias
cannam@140 1239
cannam@140 1240 # FIXME: To remove some day.
cannam@140 1241 if test "x$host_alias" != x; then
cannam@140 1242 if test "x$build_alias" = x; then
cannam@140 1243 cross_compiling=maybe
cannam@140 1244 elif test "x$build_alias" != "x$host_alias"; then
cannam@140 1245 cross_compiling=yes
cannam@140 1246 fi
cannam@140 1247 fi
cannam@140 1248
cannam@140 1249 ac_tool_prefix=
cannam@140 1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
cannam@140 1251
cannam@140 1252 test "$silent" = yes && exec 6>/dev/null
cannam@140 1253
cannam@140 1254
cannam@140 1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
cannam@140 1256 ac_ls_di=`ls -di .` &&
cannam@140 1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cannam@140 1258 as_fn_error $? "working directory cannot be determined"
cannam@140 1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cannam@140 1260 as_fn_error $? "pwd does not report name of working directory"
cannam@140 1261
cannam@140 1262
cannam@140 1263 # Find the source files, if location was not specified.
cannam@140 1264 if test -z "$srcdir"; then
cannam@140 1265 ac_srcdir_defaulted=yes
cannam@140 1266 # Try the directory containing this script, then the parent directory.
cannam@140 1267 ac_confdir=`$as_dirname -- "$as_myself" ||
cannam@140 1268 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@140 1269 X"$as_myself" : 'X\(//\)[^/]' \| \
cannam@140 1270 X"$as_myself" : 'X\(//\)$' \| \
cannam@140 1271 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
cannam@140 1272 $as_echo X"$as_myself" |
cannam@140 1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@140 1274 s//\1/
cannam@140 1275 q
cannam@140 1276 }
cannam@140 1277 /^X\(\/\/\)[^/].*/{
cannam@140 1278 s//\1/
cannam@140 1279 q
cannam@140 1280 }
cannam@140 1281 /^X\(\/\/\)$/{
cannam@140 1282 s//\1/
cannam@140 1283 q
cannam@140 1284 }
cannam@140 1285 /^X\(\/\).*/{
cannam@140 1286 s//\1/
cannam@140 1287 q
cannam@140 1288 }
cannam@140 1289 s/.*/./; q'`
cannam@140 1290 srcdir=$ac_confdir
cannam@140 1291 if test ! -r "$srcdir/$ac_unique_file"; then
cannam@140 1292 srcdir=..
cannam@140 1293 fi
cannam@140 1294 else
cannam@140 1295 ac_srcdir_defaulted=no
cannam@140 1296 fi
cannam@140 1297 if test ! -r "$srcdir/$ac_unique_file"; then
cannam@140 1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cannam@140 1299 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cannam@140 1300 fi
cannam@140 1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
cannam@140 1302 ac_abs_confdir=`(
cannam@140 1303 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cannam@140 1304 pwd)`
cannam@140 1305 # When building in place, set srcdir=.
cannam@140 1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
cannam@140 1307 srcdir=.
cannam@140 1308 fi
cannam@140 1309 # Remove unnecessary trailing slashes from srcdir.
cannam@140 1310 # Double slashes in file names in object file debugging info
cannam@140 1311 # mess up M-x gdb in Emacs.
cannam@140 1312 case $srcdir in
cannam@140 1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
cannam@140 1314 esac
cannam@140 1315 for ac_var in $ac_precious_vars; do
cannam@140 1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
cannam@140 1317 eval ac_env_${ac_var}_value=\$${ac_var}
cannam@140 1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
cannam@140 1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
cannam@140 1320 done
cannam@140 1321
cannam@140 1322 #
cannam@140 1323 # Report the --help message.
cannam@140 1324 #
cannam@140 1325 if test "$ac_init_help" = "long"; then
cannam@140 1326 # Omit some internal or obsolete options to make the list less imposing.
cannam@140 1327 # This message is too long to be a string in the A/UX 3.1 sh.
cannam@140 1328 cat <<_ACEOF
cannam@140 1329 \`configure' configures PortAudioCpp 12 to adapt to many kinds of systems.
cannam@140 1330
cannam@140 1331 Usage: $0 [OPTION]... [VAR=VALUE]...
cannam@140 1332
cannam@140 1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
cannam@140 1334 VAR=VALUE. See below for descriptions of some of the useful variables.
cannam@140 1335
cannam@140 1336 Defaults for the options are specified in brackets.
cannam@140 1337
cannam@140 1338 Configuration:
cannam@140 1339 -h, --help display this help and exit
cannam@140 1340 --help=short display options specific to this package
cannam@140 1341 --help=recursive display the short help of all the included packages
cannam@140 1342 -V, --version display version information and exit
cannam@140 1343 -q, --quiet, --silent do not print \`checking ...' messages
cannam@140 1344 --cache-file=FILE cache test results in FILE [disabled]
cannam@140 1345 -C, --config-cache alias for \`--cache-file=config.cache'
cannam@140 1346 -n, --no-create do not create output files
cannam@140 1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
cannam@140 1348
cannam@140 1349 Installation directories:
cannam@140 1350 --prefix=PREFIX install architecture-independent files in PREFIX
cannam@140 1351 [$ac_default_prefix]
cannam@140 1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
cannam@140 1353 [PREFIX]
cannam@140 1354
cannam@140 1355 By default, \`make install' will install all the files in
cannam@140 1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
cannam@140 1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
cannam@140 1358 for instance \`--prefix=\$HOME'.
cannam@140 1359
cannam@140 1360 For better control, use the options below.
cannam@140 1361
cannam@140 1362 Fine tuning of the installation directories:
cannam@140 1363 --bindir=DIR user executables [EPREFIX/bin]
cannam@140 1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
cannam@140 1365 --libexecdir=DIR program executables [EPREFIX/libexec]
cannam@140 1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
cannam@140 1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
cannam@140 1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
cannam@140 1369 --libdir=DIR object code libraries [EPREFIX/lib]
cannam@140 1370 --includedir=DIR C header files [PREFIX/include]
cannam@140 1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
cannam@140 1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
cannam@140 1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
cannam@140 1374 --infodir=DIR info documentation [DATAROOTDIR/info]
cannam@140 1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
cannam@140 1376 --mandir=DIR man documentation [DATAROOTDIR/man]
cannam@140 1377 --docdir=DIR documentation root [DATAROOTDIR/doc/portaudiocpp]
cannam@140 1378 --htmldir=DIR html documentation [DOCDIR]
cannam@140 1379 --dvidir=DIR dvi documentation [DOCDIR]
cannam@140 1380 --pdfdir=DIR pdf documentation [DOCDIR]
cannam@140 1381 --psdir=DIR ps documentation [DOCDIR]
cannam@140 1382 _ACEOF
cannam@140 1383
cannam@140 1384 cat <<\_ACEOF
cannam@140 1385
cannam@140 1386 Program names:
cannam@140 1387 --program-prefix=PREFIX prepend PREFIX to installed program names
cannam@140 1388 --program-suffix=SUFFIX append SUFFIX to installed program names
cannam@140 1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
cannam@140 1390
cannam@140 1391 System types:
cannam@140 1392 --build=BUILD configure for building on BUILD [guessed]
cannam@140 1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
cannam@140 1394 _ACEOF
cannam@140 1395 fi
cannam@140 1396
cannam@140 1397 if test -n "$ac_init_help"; then
cannam@140 1398 case $ac_init_help in
cannam@140 1399 short | recursive ) echo "Configuration of PortAudioCpp 12:";;
cannam@140 1400 esac
cannam@140 1401 cat <<\_ACEOF
cannam@140 1402
cannam@140 1403 Optional Features:
cannam@140 1404 --disable-option-checking ignore unrecognized --enable/--with options
cannam@140 1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
cannam@140 1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cannam@140 1407 --enable-silent-rules less verbose build output (undo: "make V=1")
cannam@140 1408 --disable-silent-rules verbose build output (undo: "make V=0")
cannam@140 1409 --enable-maintainer-mode
cannam@140 1410 enable make rules and dependencies not useful (and
cannam@140 1411 sometimes confusing) to the casual installer
cannam@140 1412 --enable-dependency-tracking
cannam@140 1413 do not reject slow dependency extractors
cannam@140 1414 --disable-dependency-tracking
cannam@140 1415 speeds up one-time build
cannam@140 1416 --enable-shared[=PKGS] build shared libraries [default=yes]
cannam@140 1417 --enable-static[=PKGS] build static libraries [default=yes]
cannam@140 1418 --enable-fast-install[=PKGS]
cannam@140 1419 optimize for fast installation [default=yes]
cannam@140 1420 --disable-libtool-lock avoid locking (might break parallel builds)
cannam@140 1421
cannam@140 1422 Optional Packages:
cannam@140 1423 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
cannam@140 1424 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cannam@140 1425 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cannam@140 1426 both]
cannam@140 1427 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cannam@140 1428 --with-sysroot=DIR Search for dependent libraries within DIR
cannam@140 1429 (or the compiler's sysroot if not specified).
cannam@140 1430
cannam@140 1431 Some influential environment variables:
cannam@140 1432 CC C compiler command
cannam@140 1433 CFLAGS C compiler flags
cannam@140 1434 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
cannam@140 1435 nonstandard directory <lib dir>
cannam@140 1436 LIBS libraries to pass to the linker, e.g. -l<library>
cannam@140 1437 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cannam@140 1438 you have headers in a nonstandard directory <include dir>
cannam@140 1439 CXX C++ compiler command
cannam@140 1440 CXXFLAGS C++ compiler flags
cannam@140 1441 CPP C preprocessor
cannam@140 1442 CXXCPP C++ preprocessor
cannam@140 1443
cannam@140 1444 Use these variables to override the choices made by `configure' or to help
cannam@140 1445 it to find libraries and programs with nonstandard names/locations.
cannam@140 1446
cannam@140 1447 Report bugs to the package provider.
cannam@140 1448 _ACEOF
cannam@140 1449 ac_status=$?
cannam@140 1450 fi
cannam@140 1451
cannam@140 1452 if test "$ac_init_help" = "recursive"; then
cannam@140 1453 # If there are subdirs, report their specific --help.
cannam@140 1454 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
cannam@140 1455 test -d "$ac_dir" ||
cannam@140 1456 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
cannam@140 1457 continue
cannam@140 1458 ac_builddir=.
cannam@140 1459
cannam@140 1460 case "$ac_dir" in
cannam@140 1461 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@140 1462 *)
cannam@140 1463 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
cannam@140 1464 # A ".." for each directory in $ac_dir_suffix.
cannam@140 1465 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
cannam@140 1466 case $ac_top_builddir_sub in
cannam@140 1467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@140 1468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
cannam@140 1469 esac ;;
cannam@140 1470 esac
cannam@140 1471 ac_abs_top_builddir=$ac_pwd
cannam@140 1472 ac_abs_builddir=$ac_pwd$ac_dir_suffix
cannam@140 1473 # for backward compatibility:
cannam@140 1474 ac_top_builddir=$ac_top_build_prefix
cannam@140 1475
cannam@140 1476 case $srcdir in
cannam@140 1477 .) # We are building in place.
cannam@140 1478 ac_srcdir=.
cannam@140 1479 ac_top_srcdir=$ac_top_builddir_sub
cannam@140 1480 ac_abs_top_srcdir=$ac_pwd ;;
cannam@140 1481 [\\/]* | ?:[\\/]* ) # Absolute name.
cannam@140 1482 ac_srcdir=$srcdir$ac_dir_suffix;
cannam@140 1483 ac_top_srcdir=$srcdir
cannam@140 1484 ac_abs_top_srcdir=$srcdir ;;
cannam@140 1485 *) # Relative name.
cannam@140 1486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
cannam@140 1487 ac_top_srcdir=$ac_top_build_prefix$srcdir
cannam@140 1488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
cannam@140 1489 esac
cannam@140 1490 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
cannam@140 1491
cannam@140 1492 cd "$ac_dir" || { ac_status=$?; continue; }
cannam@140 1493 # Check for guested configure.
cannam@140 1494 if test -f "$ac_srcdir/configure.gnu"; then
cannam@140 1495 echo &&
cannam@140 1496 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
cannam@140 1497 elif test -f "$ac_srcdir/configure"; then
cannam@140 1498 echo &&
cannam@140 1499 $SHELL "$ac_srcdir/configure" --help=recursive
cannam@140 1500 else
cannam@140 1501 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
cannam@140 1502 fi || ac_status=$?
cannam@140 1503 cd "$ac_pwd" || { ac_status=$?; break; }
cannam@140 1504 done
cannam@140 1505 fi
cannam@140 1506
cannam@140 1507 test -n "$ac_init_help" && exit $ac_status
cannam@140 1508 if $ac_init_version; then
cannam@140 1509 cat <<\_ACEOF
cannam@140 1510 PortAudioCpp configure 12
cannam@140 1511 generated by GNU Autoconf 2.69
cannam@140 1512
cannam@140 1513 Copyright (C) 2012 Free Software Foundation, Inc.
cannam@140 1514 This configure script is free software; the Free Software Foundation
cannam@140 1515 gives unlimited permission to copy, distribute and modify it.
cannam@140 1516 _ACEOF
cannam@140 1517 exit
cannam@140 1518 fi
cannam@140 1519
cannam@140 1520 ## ------------------------ ##
cannam@140 1521 ## Autoconf initialization. ##
cannam@140 1522 ## ------------------------ ##
cannam@140 1523
cannam@140 1524 # ac_fn_c_try_compile LINENO
cannam@140 1525 # --------------------------
cannam@140 1526 # Try to compile conftest.$ac_ext, and return whether this succeeded.
cannam@140 1527 ac_fn_c_try_compile ()
cannam@140 1528 {
cannam@140 1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@140 1530 rm -f conftest.$ac_objext
cannam@140 1531 if { { ac_try="$ac_compile"
cannam@140 1532 case "(($ac_try" in
cannam@140 1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@140 1534 *) ac_try_echo=$ac_try;;
cannam@140 1535 esac
cannam@140 1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@140 1537 $as_echo "$ac_try_echo"; } >&5
cannam@140 1538 (eval "$ac_compile") 2>conftest.err
cannam@140 1539 ac_status=$?
cannam@140 1540 if test -s conftest.err; then
cannam@140 1541 grep -v '^ *+' conftest.err >conftest.er1
cannam@140 1542 cat conftest.er1 >&5
cannam@140 1543 mv -f conftest.er1 conftest.err
cannam@140 1544 fi
cannam@140 1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 1546 test $ac_status = 0; } && {
cannam@140 1547 test -z "$ac_c_werror_flag" ||
cannam@140 1548 test ! -s conftest.err
cannam@140 1549 } && test -s conftest.$ac_objext; then :
cannam@140 1550 ac_retval=0
cannam@140 1551 else
cannam@140 1552 $as_echo "$as_me: failed program was:" >&5
cannam@140 1553 sed 's/^/| /' conftest.$ac_ext >&5
cannam@140 1554
cannam@140 1555 ac_retval=1
cannam@140 1556 fi
cannam@140 1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@140 1558 as_fn_set_status $ac_retval
cannam@140 1559
cannam@140 1560 } # ac_fn_c_try_compile
cannam@140 1561
cannam@140 1562 # ac_fn_cxx_try_compile LINENO
cannam@140 1563 # ----------------------------
cannam@140 1564 # Try to compile conftest.$ac_ext, and return whether this succeeded.
cannam@140 1565 ac_fn_cxx_try_compile ()
cannam@140 1566 {
cannam@140 1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@140 1568 rm -f conftest.$ac_objext
cannam@140 1569 if { { ac_try="$ac_compile"
cannam@140 1570 case "(($ac_try" in
cannam@140 1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@140 1572 *) ac_try_echo=$ac_try;;
cannam@140 1573 esac
cannam@140 1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@140 1575 $as_echo "$ac_try_echo"; } >&5
cannam@140 1576 (eval "$ac_compile") 2>conftest.err
cannam@140 1577 ac_status=$?
cannam@140 1578 if test -s conftest.err; then
cannam@140 1579 grep -v '^ *+' conftest.err >conftest.er1
cannam@140 1580 cat conftest.er1 >&5
cannam@140 1581 mv -f conftest.er1 conftest.err
cannam@140 1582 fi
cannam@140 1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 1584 test $ac_status = 0; } && {
cannam@140 1585 test -z "$ac_cxx_werror_flag" ||
cannam@140 1586 test ! -s conftest.err
cannam@140 1587 } && test -s conftest.$ac_objext; then :
cannam@140 1588 ac_retval=0
cannam@140 1589 else
cannam@140 1590 $as_echo "$as_me: failed program was:" >&5
cannam@140 1591 sed 's/^/| /' conftest.$ac_ext >&5
cannam@140 1592
cannam@140 1593 ac_retval=1
cannam@140 1594 fi
cannam@140 1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@140 1596 as_fn_set_status $ac_retval
cannam@140 1597
cannam@140 1598 } # ac_fn_cxx_try_compile
cannam@140 1599
cannam@140 1600 # ac_fn_c_try_link LINENO
cannam@140 1601 # -----------------------
cannam@140 1602 # Try to link conftest.$ac_ext, and return whether this succeeded.
cannam@140 1603 ac_fn_c_try_link ()
cannam@140 1604 {
cannam@140 1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@140 1606 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@140 1607 if { { ac_try="$ac_link"
cannam@140 1608 case "(($ac_try" in
cannam@140 1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@140 1610 *) ac_try_echo=$ac_try;;
cannam@140 1611 esac
cannam@140 1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@140 1613 $as_echo "$ac_try_echo"; } >&5
cannam@140 1614 (eval "$ac_link") 2>conftest.err
cannam@140 1615 ac_status=$?
cannam@140 1616 if test -s conftest.err; then
cannam@140 1617 grep -v '^ *+' conftest.err >conftest.er1
cannam@140 1618 cat conftest.er1 >&5
cannam@140 1619 mv -f conftest.er1 conftest.err
cannam@140 1620 fi
cannam@140 1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 1622 test $ac_status = 0; } && {
cannam@140 1623 test -z "$ac_c_werror_flag" ||
cannam@140 1624 test ! -s conftest.err
cannam@140 1625 } && test -s conftest$ac_exeext && {
cannam@140 1626 test "$cross_compiling" = yes ||
cannam@140 1627 test -x conftest$ac_exeext
cannam@140 1628 }; then :
cannam@140 1629 ac_retval=0
cannam@140 1630 else
cannam@140 1631 $as_echo "$as_me: failed program was:" >&5
cannam@140 1632 sed 's/^/| /' conftest.$ac_ext >&5
cannam@140 1633
cannam@140 1634 ac_retval=1
cannam@140 1635 fi
cannam@140 1636 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
cannam@140 1637 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
cannam@140 1638 # interfere with the next link command; also delete a directory that is
cannam@140 1639 # left behind by Apple's compiler. We do this before executing the actions.
cannam@140 1640 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cannam@140 1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@140 1642 as_fn_set_status $ac_retval
cannam@140 1643
cannam@140 1644 } # ac_fn_c_try_link
cannam@140 1645
cannam@140 1646 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
cannam@140 1647 # -------------------------------------------------------
cannam@140 1648 # Tests whether HEADER exists and can be compiled using the include files in
cannam@140 1649 # INCLUDES, setting the cache variable VAR accordingly.
cannam@140 1650 ac_fn_c_check_header_compile ()
cannam@140 1651 {
cannam@140 1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@140 1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@140 1654 $as_echo_n "checking for $2... " >&6; }
cannam@140 1655 if eval \${$3+:} false; then :
cannam@140 1656 $as_echo_n "(cached) " >&6
cannam@140 1657 else
cannam@140 1658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 1659 /* end confdefs.h. */
cannam@140 1660 $4
cannam@140 1661 #include <$2>
cannam@140 1662 _ACEOF
cannam@140 1663 if ac_fn_c_try_compile "$LINENO"; then :
cannam@140 1664 eval "$3=yes"
cannam@140 1665 else
cannam@140 1666 eval "$3=no"
cannam@140 1667 fi
cannam@140 1668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@140 1669 fi
cannam@140 1670 eval ac_res=\$$3
cannam@140 1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@140 1672 $as_echo "$ac_res" >&6; }
cannam@140 1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@140 1674
cannam@140 1675 } # ac_fn_c_check_header_compile
cannam@140 1676
cannam@140 1677 # ac_fn_c_try_cpp LINENO
cannam@140 1678 # ----------------------
cannam@140 1679 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
cannam@140 1680 ac_fn_c_try_cpp ()
cannam@140 1681 {
cannam@140 1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@140 1683 if { { ac_try="$ac_cpp conftest.$ac_ext"
cannam@140 1684 case "(($ac_try" in
cannam@140 1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@140 1686 *) ac_try_echo=$ac_try;;
cannam@140 1687 esac
cannam@140 1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@140 1689 $as_echo "$ac_try_echo"; } >&5
cannam@140 1690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
cannam@140 1691 ac_status=$?
cannam@140 1692 if test -s conftest.err; then
cannam@140 1693 grep -v '^ *+' conftest.err >conftest.er1
cannam@140 1694 cat conftest.er1 >&5
cannam@140 1695 mv -f conftest.er1 conftest.err
cannam@140 1696 fi
cannam@140 1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 1698 test $ac_status = 0; } > conftest.i && {
cannam@140 1699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
cannam@140 1700 test ! -s conftest.err
cannam@140 1701 }; then :
cannam@140 1702 ac_retval=0
cannam@140 1703 else
cannam@140 1704 $as_echo "$as_me: failed program was:" >&5
cannam@140 1705 sed 's/^/| /' conftest.$ac_ext >&5
cannam@140 1706
cannam@140 1707 ac_retval=1
cannam@140 1708 fi
cannam@140 1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@140 1710 as_fn_set_status $ac_retval
cannam@140 1711
cannam@140 1712 } # ac_fn_c_try_cpp
cannam@140 1713
cannam@140 1714 # ac_fn_c_try_run LINENO
cannam@140 1715 # ----------------------
cannam@140 1716 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
cannam@140 1717 # that executables *can* be run.
cannam@140 1718 ac_fn_c_try_run ()
cannam@140 1719 {
cannam@140 1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@140 1721 if { { ac_try="$ac_link"
cannam@140 1722 case "(($ac_try" in
cannam@140 1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@140 1724 *) ac_try_echo=$ac_try;;
cannam@140 1725 esac
cannam@140 1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@140 1727 $as_echo "$ac_try_echo"; } >&5
cannam@140 1728 (eval "$ac_link") 2>&5
cannam@140 1729 ac_status=$?
cannam@140 1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 1731 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
cannam@140 1732 { { case "(($ac_try" in
cannam@140 1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@140 1734 *) ac_try_echo=$ac_try;;
cannam@140 1735 esac
cannam@140 1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@140 1737 $as_echo "$ac_try_echo"; } >&5
cannam@140 1738 (eval "$ac_try") 2>&5
cannam@140 1739 ac_status=$?
cannam@140 1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 1741 test $ac_status = 0; }; }; then :
cannam@140 1742 ac_retval=0
cannam@140 1743 else
cannam@140 1744 $as_echo "$as_me: program exited with status $ac_status" >&5
cannam@140 1745 $as_echo "$as_me: failed program was:" >&5
cannam@140 1746 sed 's/^/| /' conftest.$ac_ext >&5
cannam@140 1747
cannam@140 1748 ac_retval=$ac_status
cannam@140 1749 fi
cannam@140 1750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cannam@140 1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@140 1752 as_fn_set_status $ac_retval
cannam@140 1753
cannam@140 1754 } # ac_fn_c_try_run
cannam@140 1755
cannam@140 1756 # ac_fn_c_check_func LINENO FUNC VAR
cannam@140 1757 # ----------------------------------
cannam@140 1758 # Tests whether FUNC exists, setting the cache variable VAR accordingly
cannam@140 1759 ac_fn_c_check_func ()
cannam@140 1760 {
cannam@140 1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@140 1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@140 1763 $as_echo_n "checking for $2... " >&6; }
cannam@140 1764 if eval \${$3+:} false; then :
cannam@140 1765 $as_echo_n "(cached) " >&6
cannam@140 1766 else
cannam@140 1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 1768 /* end confdefs.h. */
cannam@140 1769 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
cannam@140 1770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
cannam@140 1771 #define $2 innocuous_$2
cannam@140 1772
cannam@140 1773 /* System header to define __stub macros and hopefully few prototypes,
cannam@140 1774 which can conflict with char $2 (); below.
cannam@140 1775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@140 1776 <limits.h> exists even on freestanding compilers. */
cannam@140 1777
cannam@140 1778 #ifdef __STDC__
cannam@140 1779 # include <limits.h>
cannam@140 1780 #else
cannam@140 1781 # include <assert.h>
cannam@140 1782 #endif
cannam@140 1783
cannam@140 1784 #undef $2
cannam@140 1785
cannam@140 1786 /* Override any GCC internal prototype to avoid an error.
cannam@140 1787 Use char because int might match the return type of a GCC
cannam@140 1788 builtin and then its argument prototype would still apply. */
cannam@140 1789 #ifdef __cplusplus
cannam@140 1790 extern "C"
cannam@140 1791 #endif
cannam@140 1792 char $2 ();
cannam@140 1793 /* The GNU C library defines this for functions which it implements
cannam@140 1794 to always fail with ENOSYS. Some functions are actually named
cannam@140 1795 something starting with __ and the normal name is an alias. */
cannam@140 1796 #if defined __stub_$2 || defined __stub___$2
cannam@140 1797 choke me
cannam@140 1798 #endif
cannam@140 1799
cannam@140 1800 int
cannam@140 1801 main ()
cannam@140 1802 {
cannam@140 1803 return $2 ();
cannam@140 1804 ;
cannam@140 1805 return 0;
cannam@140 1806 }
cannam@140 1807 _ACEOF
cannam@140 1808 if ac_fn_c_try_link "$LINENO"; then :
cannam@140 1809 eval "$3=yes"
cannam@140 1810 else
cannam@140 1811 eval "$3=no"
cannam@140 1812 fi
cannam@140 1813 rm -f core conftest.err conftest.$ac_objext \
cannam@140 1814 conftest$ac_exeext conftest.$ac_ext
cannam@140 1815 fi
cannam@140 1816 eval ac_res=\$$3
cannam@140 1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@140 1818 $as_echo "$ac_res" >&6; }
cannam@140 1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@140 1820
cannam@140 1821 } # ac_fn_c_check_func
cannam@140 1822
cannam@140 1823 # ac_fn_cxx_try_cpp LINENO
cannam@140 1824 # ------------------------
cannam@140 1825 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
cannam@140 1826 ac_fn_cxx_try_cpp ()
cannam@140 1827 {
cannam@140 1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@140 1829 if { { ac_try="$ac_cpp conftest.$ac_ext"
cannam@140 1830 case "(($ac_try" in
cannam@140 1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@140 1832 *) ac_try_echo=$ac_try;;
cannam@140 1833 esac
cannam@140 1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@140 1835 $as_echo "$ac_try_echo"; } >&5
cannam@140 1836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
cannam@140 1837 ac_status=$?
cannam@140 1838 if test -s conftest.err; then
cannam@140 1839 grep -v '^ *+' conftest.err >conftest.er1
cannam@140 1840 cat conftest.er1 >&5
cannam@140 1841 mv -f conftest.er1 conftest.err
cannam@140 1842 fi
cannam@140 1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 1844 test $ac_status = 0; } > conftest.i && {
cannam@140 1845 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
cannam@140 1846 test ! -s conftest.err
cannam@140 1847 }; then :
cannam@140 1848 ac_retval=0
cannam@140 1849 else
cannam@140 1850 $as_echo "$as_me: failed program was:" >&5
cannam@140 1851 sed 's/^/| /' conftest.$ac_ext >&5
cannam@140 1852
cannam@140 1853 ac_retval=1
cannam@140 1854 fi
cannam@140 1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@140 1856 as_fn_set_status $ac_retval
cannam@140 1857
cannam@140 1858 } # ac_fn_cxx_try_cpp
cannam@140 1859
cannam@140 1860 # ac_fn_cxx_try_link LINENO
cannam@140 1861 # -------------------------
cannam@140 1862 # Try to link conftest.$ac_ext, and return whether this succeeded.
cannam@140 1863 ac_fn_cxx_try_link ()
cannam@140 1864 {
cannam@140 1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@140 1866 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@140 1867 if { { ac_try="$ac_link"
cannam@140 1868 case "(($ac_try" in
cannam@140 1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@140 1870 *) ac_try_echo=$ac_try;;
cannam@140 1871 esac
cannam@140 1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@140 1873 $as_echo "$ac_try_echo"; } >&5
cannam@140 1874 (eval "$ac_link") 2>conftest.err
cannam@140 1875 ac_status=$?
cannam@140 1876 if test -s conftest.err; then
cannam@140 1877 grep -v '^ *+' conftest.err >conftest.er1
cannam@140 1878 cat conftest.er1 >&5
cannam@140 1879 mv -f conftest.er1 conftest.err
cannam@140 1880 fi
cannam@140 1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 1882 test $ac_status = 0; } && {
cannam@140 1883 test -z "$ac_cxx_werror_flag" ||
cannam@140 1884 test ! -s conftest.err
cannam@140 1885 } && test -s conftest$ac_exeext && {
cannam@140 1886 test "$cross_compiling" = yes ||
cannam@140 1887 test -x conftest$ac_exeext
cannam@140 1888 }; then :
cannam@140 1889 ac_retval=0
cannam@140 1890 else
cannam@140 1891 $as_echo "$as_me: failed program was:" >&5
cannam@140 1892 sed 's/^/| /' conftest.$ac_ext >&5
cannam@140 1893
cannam@140 1894 ac_retval=1
cannam@140 1895 fi
cannam@140 1896 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
cannam@140 1897 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
cannam@140 1898 # interfere with the next link command; also delete a directory that is
cannam@140 1899 # left behind by Apple's compiler. We do this before executing the actions.
cannam@140 1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cannam@140 1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@140 1902 as_fn_set_status $ac_retval
cannam@140 1903
cannam@140 1904 } # ac_fn_cxx_try_link
cannam@140 1905 cat >config.log <<_ACEOF
cannam@140 1906 This file contains any messages produced by compilers while
cannam@140 1907 running configure, to aid debugging if configure makes a mistake.
cannam@140 1908
cannam@140 1909 It was created by PortAudioCpp $as_me 12, which was
cannam@140 1910 generated by GNU Autoconf 2.69. Invocation command line was
cannam@140 1911
cannam@140 1912 $ $0 $@
cannam@140 1913
cannam@140 1914 _ACEOF
cannam@140 1915 exec 5>>config.log
cannam@140 1916 {
cannam@140 1917 cat <<_ASUNAME
cannam@140 1918 ## --------- ##
cannam@140 1919 ## Platform. ##
cannam@140 1920 ## --------- ##
cannam@140 1921
cannam@140 1922 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@140 1923 uname -m = `(uname -m) 2>/dev/null || echo unknown`
cannam@140 1924 uname -r = `(uname -r) 2>/dev/null || echo unknown`
cannam@140 1925 uname -s = `(uname -s) 2>/dev/null || echo unknown`
cannam@140 1926 uname -v = `(uname -v) 2>/dev/null || echo unknown`
cannam@140 1927
cannam@140 1928 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
cannam@140 1929 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
cannam@140 1930
cannam@140 1931 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
cannam@140 1932 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
cannam@140 1933 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
cannam@140 1934 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
cannam@140 1935 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
cannam@140 1936 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
cannam@140 1937 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
cannam@140 1938
cannam@140 1939 _ASUNAME
cannam@140 1940
cannam@140 1941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 1942 for as_dir in $PATH
cannam@140 1943 do
cannam@140 1944 IFS=$as_save_IFS
cannam@140 1945 test -z "$as_dir" && as_dir=.
cannam@140 1946 $as_echo "PATH: $as_dir"
cannam@140 1947 done
cannam@140 1948 IFS=$as_save_IFS
cannam@140 1949
cannam@140 1950 } >&5
cannam@140 1951
cannam@140 1952 cat >&5 <<_ACEOF
cannam@140 1953
cannam@140 1954
cannam@140 1955 ## ----------- ##
cannam@140 1956 ## Core tests. ##
cannam@140 1957 ## ----------- ##
cannam@140 1958
cannam@140 1959 _ACEOF
cannam@140 1960
cannam@140 1961
cannam@140 1962 # Keep a trace of the command line.
cannam@140 1963 # Strip out --no-create and --no-recursion so they do not pile up.
cannam@140 1964 # Strip out --silent because we don't want to record it for future runs.
cannam@140 1965 # Also quote any args containing shell meta-characters.
cannam@140 1966 # Make two passes to allow for proper duplicate-argument suppression.
cannam@140 1967 ac_configure_args=
cannam@140 1968 ac_configure_args0=
cannam@140 1969 ac_configure_args1=
cannam@140 1970 ac_must_keep_next=false
cannam@140 1971 for ac_pass in 1 2
cannam@140 1972 do
cannam@140 1973 for ac_arg
cannam@140 1974 do
cannam@140 1975 case $ac_arg in
cannam@140 1976 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
cannam@140 1977 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@140 1978 | -silent | --silent | --silen | --sile | --sil)
cannam@140 1979 continue ;;
cannam@140 1980 *\'*)
cannam@140 1981 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@140 1982 esac
cannam@140 1983 case $ac_pass in
cannam@140 1984 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cannam@140 1985 2)
cannam@140 1986 as_fn_append ac_configure_args1 " '$ac_arg'"
cannam@140 1987 if test $ac_must_keep_next = true; then
cannam@140 1988 ac_must_keep_next=false # Got value, back to normal.
cannam@140 1989 else
cannam@140 1990 case $ac_arg in
cannam@140 1991 *=* | --config-cache | -C | -disable-* | --disable-* \
cannam@140 1992 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
cannam@140 1993 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
cannam@140 1994 | -with-* | --with-* | -without-* | --without-* | --x)
cannam@140 1995 case "$ac_configure_args0 " in
cannam@140 1996 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
cannam@140 1997 esac
cannam@140 1998 ;;
cannam@140 1999 -* ) ac_must_keep_next=true ;;
cannam@140 2000 esac
cannam@140 2001 fi
cannam@140 2002 as_fn_append ac_configure_args " '$ac_arg'"
cannam@140 2003 ;;
cannam@140 2004 esac
cannam@140 2005 done
cannam@140 2006 done
cannam@140 2007 { ac_configure_args0=; unset ac_configure_args0;}
cannam@140 2008 { ac_configure_args1=; unset ac_configure_args1;}
cannam@140 2009
cannam@140 2010 # When interrupted or exit'd, cleanup temporary files, and complete
cannam@140 2011 # config.log. We remove comments because anyway the quotes in there
cannam@140 2012 # would cause problems or look ugly.
cannam@140 2013 # WARNING: Use '\'' to represent an apostrophe within the trap.
cannam@140 2014 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
cannam@140 2015 trap 'exit_status=$?
cannam@140 2016 # Save into config.log some information that might help in debugging.
cannam@140 2017 {
cannam@140 2018 echo
cannam@140 2019
cannam@140 2020 $as_echo "## ---------------- ##
cannam@140 2021 ## Cache variables. ##
cannam@140 2022 ## ---------------- ##"
cannam@140 2023 echo
cannam@140 2024 # The following way of writing the cache mishandles newlines in values,
cannam@140 2025 (
cannam@140 2026 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
cannam@140 2027 eval ac_val=\$$ac_var
cannam@140 2028 case $ac_val in #(
cannam@140 2029 *${as_nl}*)
cannam@140 2030 case $ac_var in #(
cannam@140 2031 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cannam@140 2032 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
cannam@140 2033 esac
cannam@140 2034 case $ac_var in #(
cannam@140 2035 _ | IFS | as_nl) ;; #(
cannam@140 2036 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cannam@140 2037 *) { eval $ac_var=; unset $ac_var;} ;;
cannam@140 2038 esac ;;
cannam@140 2039 esac
cannam@140 2040 done
cannam@140 2041 (set) 2>&1 |
cannam@140 2042 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
cannam@140 2043 *${as_nl}ac_space=\ *)
cannam@140 2044 sed -n \
cannam@140 2045 "s/'\''/'\''\\\\'\'''\''/g;
cannam@140 2046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
cannam@140 2047 ;; #(
cannam@140 2048 *)
cannam@140 2049 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
cannam@140 2050 ;;
cannam@140 2051 esac |
cannam@140 2052 sort
cannam@140 2053 )
cannam@140 2054 echo
cannam@140 2055
cannam@140 2056 $as_echo "## ----------------- ##
cannam@140 2057 ## Output variables. ##
cannam@140 2058 ## ----------------- ##"
cannam@140 2059 echo
cannam@140 2060 for ac_var in $ac_subst_vars
cannam@140 2061 do
cannam@140 2062 eval ac_val=\$$ac_var
cannam@140 2063 case $ac_val in
cannam@140 2064 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
cannam@140 2065 esac
cannam@140 2066 $as_echo "$ac_var='\''$ac_val'\''"
cannam@140 2067 done | sort
cannam@140 2068 echo
cannam@140 2069
cannam@140 2070 if test -n "$ac_subst_files"; then
cannam@140 2071 $as_echo "## ------------------- ##
cannam@140 2072 ## File substitutions. ##
cannam@140 2073 ## ------------------- ##"
cannam@140 2074 echo
cannam@140 2075 for ac_var in $ac_subst_files
cannam@140 2076 do
cannam@140 2077 eval ac_val=\$$ac_var
cannam@140 2078 case $ac_val in
cannam@140 2079 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
cannam@140 2080 esac
cannam@140 2081 $as_echo "$ac_var='\''$ac_val'\''"
cannam@140 2082 done | sort
cannam@140 2083 echo
cannam@140 2084 fi
cannam@140 2085
cannam@140 2086 if test -s confdefs.h; then
cannam@140 2087 $as_echo "## ----------- ##
cannam@140 2088 ## confdefs.h. ##
cannam@140 2089 ## ----------- ##"
cannam@140 2090 echo
cannam@140 2091 cat confdefs.h
cannam@140 2092 echo
cannam@140 2093 fi
cannam@140 2094 test "$ac_signal" != 0 &&
cannam@140 2095 $as_echo "$as_me: caught signal $ac_signal"
cannam@140 2096 $as_echo "$as_me: exit $exit_status"
cannam@140 2097 } >&5
cannam@140 2098 rm -f core *.core core.conftest.* &&
cannam@140 2099 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
cannam@140 2100 exit $exit_status
cannam@140 2101 ' 0
cannam@140 2102 for ac_signal in 1 2 13 15; do
cannam@140 2103 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cannam@140 2104 done
cannam@140 2105 ac_signal=0
cannam@140 2106
cannam@140 2107 # confdefs.h avoids OS command line length limits that DEFS can exceed.
cannam@140 2108 rm -f -r conftest* confdefs.h
cannam@140 2109
cannam@140 2110 $as_echo "/* confdefs.h */" > confdefs.h
cannam@140 2111
cannam@140 2112 # Predefined preprocessor variables.
cannam@140 2113
cannam@140 2114 cat >>confdefs.h <<_ACEOF
cannam@140 2115 #define PACKAGE_NAME "$PACKAGE_NAME"
cannam@140 2116 _ACEOF
cannam@140 2117
cannam@140 2118 cat >>confdefs.h <<_ACEOF
cannam@140 2119 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
cannam@140 2120 _ACEOF
cannam@140 2121
cannam@140 2122 cat >>confdefs.h <<_ACEOF
cannam@140 2123 #define PACKAGE_VERSION "$PACKAGE_VERSION"
cannam@140 2124 _ACEOF
cannam@140 2125
cannam@140 2126 cat >>confdefs.h <<_ACEOF
cannam@140 2127 #define PACKAGE_STRING "$PACKAGE_STRING"
cannam@140 2128 _ACEOF
cannam@140 2129
cannam@140 2130 cat >>confdefs.h <<_ACEOF
cannam@140 2131 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
cannam@140 2132 _ACEOF
cannam@140 2133
cannam@140 2134 cat >>confdefs.h <<_ACEOF
cannam@140 2135 #define PACKAGE_URL "$PACKAGE_URL"
cannam@140 2136 _ACEOF
cannam@140 2137
cannam@140 2138
cannam@140 2139 # Let the site file select an alternate cache file if it wants to.
cannam@140 2140 # Prefer an explicitly selected file to automatically selected ones.
cannam@140 2141 ac_site_file1=NONE
cannam@140 2142 ac_site_file2=NONE
cannam@140 2143 if test -n "$CONFIG_SITE"; then
cannam@140 2144 # We do not want a PATH search for config.site.
cannam@140 2145 case $CONFIG_SITE in #((
cannam@140 2146 -*) ac_site_file1=./$CONFIG_SITE;;
cannam@140 2147 */*) ac_site_file1=$CONFIG_SITE;;
cannam@140 2148 *) ac_site_file1=./$CONFIG_SITE;;
cannam@140 2149 esac
cannam@140 2150 elif test "x$prefix" != xNONE; then
cannam@140 2151 ac_site_file1=$prefix/share/config.site
cannam@140 2152 ac_site_file2=$prefix/etc/config.site
cannam@140 2153 else
cannam@140 2154 ac_site_file1=$ac_default_prefix/share/config.site
cannam@140 2155 ac_site_file2=$ac_default_prefix/etc/config.site
cannam@140 2156 fi
cannam@140 2157 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
cannam@140 2158 do
cannam@140 2159 test "x$ac_site_file" = xNONE && continue
cannam@140 2160 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cannam@140 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cannam@140 2162 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
cannam@140 2163 sed 's/^/| /' "$ac_site_file" >&5
cannam@140 2164 . "$ac_site_file" \
cannam@140 2165 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@140 2166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@140 2167 as_fn_error $? "failed to load site script $ac_site_file
cannam@140 2168 See \`config.log' for more details" "$LINENO" 5; }
cannam@140 2169 fi
cannam@140 2170 done
cannam@140 2171
cannam@140 2172 if test -r "$cache_file"; then
cannam@140 2173 # Some versions of bash will fail to source /dev/null (special files
cannam@140 2174 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
cannam@140 2175 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cannam@140 2176 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cannam@140 2177 $as_echo "$as_me: loading cache $cache_file" >&6;}
cannam@140 2178 case $cache_file in
cannam@140 2179 [\\/]* | ?:[\\/]* ) . "$cache_file";;
cannam@140 2180 *) . "./$cache_file";;
cannam@140 2181 esac
cannam@140 2182 fi
cannam@140 2183 else
cannam@140 2184 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cannam@140 2185 $as_echo "$as_me: creating cache $cache_file" >&6;}
cannam@140 2186 >$cache_file
cannam@140 2187 fi
cannam@140 2188
cannam@140 2189 # Check that the precious variables saved in the cache have kept the same
cannam@140 2190 # value.
cannam@140 2191 ac_cache_corrupted=false
cannam@140 2192 for ac_var in $ac_precious_vars; do
cannam@140 2193 eval ac_old_set=\$ac_cv_env_${ac_var}_set
cannam@140 2194 eval ac_new_set=\$ac_env_${ac_var}_set
cannam@140 2195 eval ac_old_val=\$ac_cv_env_${ac_var}_value
cannam@140 2196 eval ac_new_val=\$ac_env_${ac_var}_value
cannam@140 2197 case $ac_old_set,$ac_new_set in
cannam@140 2198 set,)
cannam@140 2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
cannam@140 2200 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
cannam@140 2201 ac_cache_corrupted=: ;;
cannam@140 2202 ,set)
cannam@140 2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cannam@140 2204 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
cannam@140 2205 ac_cache_corrupted=: ;;
cannam@140 2206 ,);;
cannam@140 2207 *)
cannam@140 2208 if test "x$ac_old_val" != "x$ac_new_val"; then
cannam@140 2209 # differences in whitespace do not lead to failure.
cannam@140 2210 ac_old_val_w=`echo x $ac_old_val`
cannam@140 2211 ac_new_val_w=`echo x $ac_new_val`
cannam@140 2212 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cannam@140 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cannam@140 2214 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
cannam@140 2215 ac_cache_corrupted=:
cannam@140 2216 else
cannam@140 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
cannam@140 2218 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
cannam@140 2219 eval $ac_var=\$ac_old_val
cannam@140 2220 fi
cannam@140 2221 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cannam@140 2222 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cannam@140 2223 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cannam@140 2224 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
cannam@140 2225 fi;;
cannam@140 2226 esac
cannam@140 2227 # Pass precious variables to config.status.
cannam@140 2228 if test "$ac_new_set" = set; then
cannam@140 2229 case $ac_new_val in
cannam@140 2230 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@140 2231 *) ac_arg=$ac_var=$ac_new_val ;;
cannam@140 2232 esac
cannam@140 2233 case " $ac_configure_args " in
cannam@140 2234 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cannam@140 2235 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cannam@140 2236 esac
cannam@140 2237 fi
cannam@140 2238 done
cannam@140 2239 if $ac_cache_corrupted; then
cannam@140 2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@140 2241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@140 2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cannam@140 2243 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cannam@140 2244 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cannam@140 2245 fi
cannam@140 2246 ## -------------------- ##
cannam@140 2247 ## Main body of script. ##
cannam@140 2248 ## -------------------- ##
cannam@140 2249
cannam@140 2250 ac_ext=c
cannam@140 2251 ac_cpp='$CPP $CPPFLAGS'
cannam@140 2252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@140 2253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@140 2254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@140 2255
cannam@140 2256
cannam@140 2257
cannam@140 2258 am__api_version='1.14'
cannam@140 2259
cannam@140 2260 ac_aux_dir=
cannam@140 2261 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
cannam@140 2262 if test -f "$ac_dir/install-sh"; then
cannam@140 2263 ac_aux_dir=$ac_dir
cannam@140 2264 ac_install_sh="$ac_aux_dir/install-sh -c"
cannam@140 2265 break
cannam@140 2266 elif test -f "$ac_dir/install.sh"; then
cannam@140 2267 ac_aux_dir=$ac_dir
cannam@140 2268 ac_install_sh="$ac_aux_dir/install.sh -c"
cannam@140 2269 break
cannam@140 2270 elif test -f "$ac_dir/shtool"; then
cannam@140 2271 ac_aux_dir=$ac_dir
cannam@140 2272 ac_install_sh="$ac_aux_dir/shtool install -c"
cannam@140 2273 break
cannam@140 2274 fi
cannam@140 2275 done
cannam@140 2276 if test -z "$ac_aux_dir"; then
cannam@140 2277 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
cannam@140 2278 fi
cannam@140 2279
cannam@140 2280 # These three variables are undocumented and unsupported,
cannam@140 2281 # and are intended to be withdrawn in a future Autoconf release.
cannam@140 2282 # They can cause serious problems if a builder's source tree is in a directory
cannam@140 2283 # whose full name contains unusual characters.
cannam@140 2284 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
cannam@140 2285 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
cannam@140 2286 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
cannam@140 2287
cannam@140 2288
cannam@140 2289 # Find a good install program. We prefer a C program (faster),
cannam@140 2290 # so one script is as good as another. But avoid the broken or
cannam@140 2291 # incompatible versions:
cannam@140 2292 # SysV /etc/install, /usr/sbin/install
cannam@140 2293 # SunOS /usr/etc/install
cannam@140 2294 # IRIX /sbin/install
cannam@140 2295 # AIX /bin/install
cannam@140 2296 # AmigaOS /C/install, which installs bootblocks on floppy discs
cannam@140 2297 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
cannam@140 2298 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
cannam@140 2299 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
cannam@140 2300 # OS/2's system install, which has a completely different semantic
cannam@140 2301 # ./install, which can be erroneously created by make from ./install.sh.
cannam@140 2302 # Reject install programs that cannot install multiple files.
cannam@140 2303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cannam@140 2304 $as_echo_n "checking for a BSD-compatible install... " >&6; }
cannam@140 2305 if test -z "$INSTALL"; then
cannam@140 2306 if ${ac_cv_path_install+:} false; then :
cannam@140 2307 $as_echo_n "(cached) " >&6
cannam@140 2308 else
cannam@140 2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 2310 for as_dir in $PATH
cannam@140 2311 do
cannam@140 2312 IFS=$as_save_IFS
cannam@140 2313 test -z "$as_dir" && as_dir=.
cannam@140 2314 # Account for people who put trailing slashes in PATH elements.
cannam@140 2315 case $as_dir/ in #((
cannam@140 2316 ./ | .// | /[cC]/* | \
cannam@140 2317 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cannam@140 2318 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cannam@140 2319 /usr/ucb/* ) ;;
cannam@140 2320 *)
cannam@140 2321 # OSF1 and SCO ODT 3.0 have their own names for install.
cannam@140 2322 # Don't use installbsd from OSF since it installs stuff as root
cannam@140 2323 # by default.
cannam@140 2324 for ac_prog in ginstall scoinst install; do
cannam@140 2325 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 2326 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cannam@140 2327 if test $ac_prog = install &&
cannam@140 2328 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
cannam@140 2329 # AIX install. It has an incompatible calling convention.
cannam@140 2330 :
cannam@140 2331 elif test $ac_prog = install &&
cannam@140 2332 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
cannam@140 2333 # program-specific install script used by HP pwplus--don't use.
cannam@140 2334 :
cannam@140 2335 else
cannam@140 2336 rm -rf conftest.one conftest.two conftest.dir
cannam@140 2337 echo one > conftest.one
cannam@140 2338 echo two > conftest.two
cannam@140 2339 mkdir conftest.dir
cannam@140 2340 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
cannam@140 2341 test -s conftest.one && test -s conftest.two &&
cannam@140 2342 test -s conftest.dir/conftest.one &&
cannam@140 2343 test -s conftest.dir/conftest.two
cannam@140 2344 then
cannam@140 2345 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
cannam@140 2346 break 3
cannam@140 2347 fi
cannam@140 2348 fi
cannam@140 2349 fi
cannam@140 2350 done
cannam@140 2351 done
cannam@140 2352 ;;
cannam@140 2353 esac
cannam@140 2354
cannam@140 2355 done
cannam@140 2356 IFS=$as_save_IFS
cannam@140 2357
cannam@140 2358 rm -rf conftest.one conftest.two conftest.dir
cannam@140 2359
cannam@140 2360 fi
cannam@140 2361 if test "${ac_cv_path_install+set}" = set; then
cannam@140 2362 INSTALL=$ac_cv_path_install
cannam@140 2363 else
cannam@140 2364 # As a last resort, use the slow shell script. Don't cache a
cannam@140 2365 # value for INSTALL within a source directory, because that will
cannam@140 2366 # break other packages using the cache if that directory is
cannam@140 2367 # removed, or if the value is a relative name.
cannam@140 2368 INSTALL=$ac_install_sh
cannam@140 2369 fi
cannam@140 2370 fi
cannam@140 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cannam@140 2372 $as_echo "$INSTALL" >&6; }
cannam@140 2373
cannam@140 2374 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
cannam@140 2375 # It thinks the first close brace ends the variable substitution.
cannam@140 2376 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
cannam@140 2377
cannam@140 2378 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
cannam@140 2379
cannam@140 2380 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
cannam@140 2381
cannam@140 2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cannam@140 2383 $as_echo_n "checking whether build environment is sane... " >&6; }
cannam@140 2384 # Reject unsafe characters in $srcdir or the absolute working directory
cannam@140 2385 # name. Accept space and tab only in the latter.
cannam@140 2386 am_lf='
cannam@140 2387 '
cannam@140 2388 case `pwd` in
cannam@140 2389 *[\\\"\#\$\&\'\`$am_lf]*)
cannam@140 2390 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cannam@140 2391 esac
cannam@140 2392 case $srcdir in
cannam@140 2393 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cannam@140 2394 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cannam@140 2395 esac
cannam@140 2396
cannam@140 2397 # Do 'set' in a subshell so we don't clobber the current shell's
cannam@140 2398 # arguments. Must try -L first in case configure is actually a
cannam@140 2399 # symlink; some systems play weird games with the mod time of symlinks
cannam@140 2400 # (eg FreeBSD returns the mod time of the symlink's containing
cannam@140 2401 # directory).
cannam@140 2402 if (
cannam@140 2403 am_has_slept=no
cannam@140 2404 for am_try in 1 2; do
cannam@140 2405 echo "timestamp, slept: $am_has_slept" > conftest.file
cannam@140 2406 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
cannam@140 2407 if test "$*" = "X"; then
cannam@140 2408 # -L didn't work.
cannam@140 2409 set X `ls -t "$srcdir/configure" conftest.file`
cannam@140 2410 fi
cannam@140 2411 if test "$*" != "X $srcdir/configure conftest.file" \
cannam@140 2412 && test "$*" != "X conftest.file $srcdir/configure"; then
cannam@140 2413
cannam@140 2414 # If neither matched, then we have a broken ls. This can happen
cannam@140 2415 # if, for instance, CONFIG_SHELL is bash and it inherits a
cannam@140 2416 # broken ls alias from the environment. This has actually
cannam@140 2417 # happened. Such a system could not be considered "sane".
cannam@140 2418 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cannam@140 2419 alias in your environment" "$LINENO" 5
cannam@140 2420 fi
cannam@140 2421 if test "$2" = conftest.file || test $am_try -eq 2; then
cannam@140 2422 break
cannam@140 2423 fi
cannam@140 2424 # Just in case.
cannam@140 2425 sleep 1
cannam@140 2426 am_has_slept=yes
cannam@140 2427 done
cannam@140 2428 test "$2" = conftest.file
cannam@140 2429 )
cannam@140 2430 then
cannam@140 2431 # Ok.
cannam@140 2432 :
cannam@140 2433 else
cannam@140 2434 as_fn_error $? "newly created file is older than distributed files!
cannam@140 2435 Check your system clock" "$LINENO" 5
cannam@140 2436 fi
cannam@140 2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@140 2438 $as_echo "yes" >&6; }
cannam@140 2439 # If we didn't sleep, we still need to ensure time stamps of config.status and
cannam@140 2440 # generated files are strictly newer.
cannam@140 2441 am_sleep_pid=
cannam@140 2442 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
cannam@140 2443 ( sleep 1 ) &
cannam@140 2444 am_sleep_pid=$!
cannam@140 2445 fi
cannam@140 2446
cannam@140 2447 rm -f conftest.file
cannam@140 2448
cannam@140 2449 test "$program_prefix" != NONE &&
cannam@140 2450 program_transform_name="s&^&$program_prefix&;$program_transform_name"
cannam@140 2451 # Use a double $ so make ignores it.
cannam@140 2452 test "$program_suffix" != NONE &&
cannam@140 2453 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
cannam@140 2454 # Double any \ or $.
cannam@140 2455 # By default was `s,x,x', remove it if useless.
cannam@140 2456 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
cannam@140 2457 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cannam@140 2458
cannam@140 2459 # expand $ac_aux_dir to an absolute path
cannam@140 2460 am_aux_dir=`cd $ac_aux_dir && pwd`
cannam@140 2461
cannam@140 2462 if test x"${MISSING+set}" != xset; then
cannam@140 2463 case $am_aux_dir in
cannam@140 2464 *\ * | *\ *)
cannam@140 2465 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
cannam@140 2466 *)
cannam@140 2467 MISSING="\${SHELL} $am_aux_dir/missing" ;;
cannam@140 2468 esac
cannam@140 2469 fi
cannam@140 2470 # Use eval to expand $SHELL
cannam@140 2471 if eval "$MISSING --is-lightweight"; then
cannam@140 2472 am_missing_run="$MISSING "
cannam@140 2473 else
cannam@140 2474 am_missing_run=
cannam@140 2475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
cannam@140 2476 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cannam@140 2477 fi
cannam@140 2478
cannam@140 2479 if test x"${install_sh}" != xset; then
cannam@140 2480 case $am_aux_dir in
cannam@140 2481 *\ * | *\ *)
cannam@140 2482 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
cannam@140 2483 *)
cannam@140 2484 install_sh="\${SHELL} $am_aux_dir/install-sh"
cannam@140 2485 esac
cannam@140 2486 fi
cannam@140 2487
cannam@140 2488 # Installed binaries are usually stripped using 'strip' when the user
cannam@140 2489 # run "make install-strip". However 'strip' might not be the right
cannam@140 2490 # tool to use in cross-compilation environments, therefore Automake
cannam@140 2491 # will honor the 'STRIP' environment variable to overrule this program.
cannam@140 2492 if test "$cross_compiling" != no; then
cannam@140 2493 if test -n "$ac_tool_prefix"; then
cannam@140 2494 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
cannam@140 2495 set dummy ${ac_tool_prefix}strip; ac_word=$2
cannam@140 2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 2497 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 2498 if ${ac_cv_prog_STRIP+:} false; then :
cannam@140 2499 $as_echo_n "(cached) " >&6
cannam@140 2500 else
cannam@140 2501 if test -n "$STRIP"; then
cannam@140 2502 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
cannam@140 2503 else
cannam@140 2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 2505 for as_dir in $PATH
cannam@140 2506 do
cannam@140 2507 IFS=$as_save_IFS
cannam@140 2508 test -z "$as_dir" && as_dir=.
cannam@140 2509 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 2510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 2511 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cannam@140 2512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 2513 break 2
cannam@140 2514 fi
cannam@140 2515 done
cannam@140 2516 done
cannam@140 2517 IFS=$as_save_IFS
cannam@140 2518
cannam@140 2519 fi
cannam@140 2520 fi
cannam@140 2521 STRIP=$ac_cv_prog_STRIP
cannam@140 2522 if test -n "$STRIP"; then
cannam@140 2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cannam@140 2524 $as_echo "$STRIP" >&6; }
cannam@140 2525 else
cannam@140 2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 2527 $as_echo "no" >&6; }
cannam@140 2528 fi
cannam@140 2529
cannam@140 2530
cannam@140 2531 fi
cannam@140 2532 if test -z "$ac_cv_prog_STRIP"; then
cannam@140 2533 ac_ct_STRIP=$STRIP
cannam@140 2534 # Extract the first word of "strip", so it can be a program name with args.
cannam@140 2535 set dummy strip; ac_word=$2
cannam@140 2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 2537 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 2538 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cannam@140 2539 $as_echo_n "(cached) " >&6
cannam@140 2540 else
cannam@140 2541 if test -n "$ac_ct_STRIP"; then
cannam@140 2542 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
cannam@140 2543 else
cannam@140 2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 2545 for as_dir in $PATH
cannam@140 2546 do
cannam@140 2547 IFS=$as_save_IFS
cannam@140 2548 test -z "$as_dir" && as_dir=.
cannam@140 2549 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 2550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 2551 ac_cv_prog_ac_ct_STRIP="strip"
cannam@140 2552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 2553 break 2
cannam@140 2554 fi
cannam@140 2555 done
cannam@140 2556 done
cannam@140 2557 IFS=$as_save_IFS
cannam@140 2558
cannam@140 2559 fi
cannam@140 2560 fi
cannam@140 2561 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
cannam@140 2562 if test -n "$ac_ct_STRIP"; then
cannam@140 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cannam@140 2564 $as_echo "$ac_ct_STRIP" >&6; }
cannam@140 2565 else
cannam@140 2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 2567 $as_echo "no" >&6; }
cannam@140 2568 fi
cannam@140 2569
cannam@140 2570 if test "x$ac_ct_STRIP" = x; then
cannam@140 2571 STRIP=":"
cannam@140 2572 else
cannam@140 2573 case $cross_compiling:$ac_tool_warned in
cannam@140 2574 yes:)
cannam@140 2575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@140 2576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@140 2577 ac_tool_warned=yes ;;
cannam@140 2578 esac
cannam@140 2579 STRIP=$ac_ct_STRIP
cannam@140 2580 fi
cannam@140 2581 else
cannam@140 2582 STRIP="$ac_cv_prog_STRIP"
cannam@140 2583 fi
cannam@140 2584
cannam@140 2585 fi
cannam@140 2586 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
cannam@140 2587
cannam@140 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cannam@140 2589 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
cannam@140 2590 if test -z "$MKDIR_P"; then
cannam@140 2591 if ${ac_cv_path_mkdir+:} false; then :
cannam@140 2592 $as_echo_n "(cached) " >&6
cannam@140 2593 else
cannam@140 2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 2595 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
cannam@140 2596 do
cannam@140 2597 IFS=$as_save_IFS
cannam@140 2598 test -z "$as_dir" && as_dir=.
cannam@140 2599 for ac_prog in mkdir gmkdir; do
cannam@140 2600 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 2601 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cannam@140 2602 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
cannam@140 2603 'mkdir (GNU coreutils) '* | \
cannam@140 2604 'mkdir (coreutils) '* | \
cannam@140 2605 'mkdir (fileutils) '4.1*)
cannam@140 2606 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
cannam@140 2607 break 3;;
cannam@140 2608 esac
cannam@140 2609 done
cannam@140 2610 done
cannam@140 2611 done
cannam@140 2612 IFS=$as_save_IFS
cannam@140 2613
cannam@140 2614 fi
cannam@140 2615
cannam@140 2616 test -d ./--version && rmdir ./--version
cannam@140 2617 if test "${ac_cv_path_mkdir+set}" = set; then
cannam@140 2618 MKDIR_P="$ac_cv_path_mkdir -p"
cannam@140 2619 else
cannam@140 2620 # As a last resort, use the slow shell script. Don't cache a
cannam@140 2621 # value for MKDIR_P within a source directory, because that will
cannam@140 2622 # break other packages using the cache if that directory is
cannam@140 2623 # removed, or if the value is a relative name.
cannam@140 2624 MKDIR_P="$ac_install_sh -d"
cannam@140 2625 fi
cannam@140 2626 fi
cannam@140 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cannam@140 2628 $as_echo "$MKDIR_P" >&6; }
cannam@140 2629
cannam@140 2630 for ac_prog in gawk mawk nawk awk
cannam@140 2631 do
cannam@140 2632 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@140 2633 set dummy $ac_prog; ac_word=$2
cannam@140 2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 2635 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 2636 if ${ac_cv_prog_AWK+:} false; then :
cannam@140 2637 $as_echo_n "(cached) " >&6
cannam@140 2638 else
cannam@140 2639 if test -n "$AWK"; then
cannam@140 2640 ac_cv_prog_AWK="$AWK" # Let the user override the test.
cannam@140 2641 else
cannam@140 2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 2643 for as_dir in $PATH
cannam@140 2644 do
cannam@140 2645 IFS=$as_save_IFS
cannam@140 2646 test -z "$as_dir" && as_dir=.
cannam@140 2647 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 2648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 2649 ac_cv_prog_AWK="$ac_prog"
cannam@140 2650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 2651 break 2
cannam@140 2652 fi
cannam@140 2653 done
cannam@140 2654 done
cannam@140 2655 IFS=$as_save_IFS
cannam@140 2656
cannam@140 2657 fi
cannam@140 2658 fi
cannam@140 2659 AWK=$ac_cv_prog_AWK
cannam@140 2660 if test -n "$AWK"; then
cannam@140 2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cannam@140 2662 $as_echo "$AWK" >&6; }
cannam@140 2663 else
cannam@140 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 2665 $as_echo "no" >&6; }
cannam@140 2666 fi
cannam@140 2667
cannam@140 2668
cannam@140 2669 test -n "$AWK" && break
cannam@140 2670 done
cannam@140 2671
cannam@140 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cannam@140 2673 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
cannam@140 2674 set x ${MAKE-make}
cannam@140 2675 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cannam@140 2676 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cannam@140 2677 $as_echo_n "(cached) " >&6
cannam@140 2678 else
cannam@140 2679 cat >conftest.make <<\_ACEOF
cannam@140 2680 SHELL = /bin/sh
cannam@140 2681 all:
cannam@140 2682 @echo '@@@%%%=$(MAKE)=@@@%%%'
cannam@140 2683 _ACEOF
cannam@140 2684 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cannam@140 2685 case `${MAKE-make} -f conftest.make 2>/dev/null` in
cannam@140 2686 *@@@%%%=?*=@@@%%%*)
cannam@140 2687 eval ac_cv_prog_make_${ac_make}_set=yes;;
cannam@140 2688 *)
cannam@140 2689 eval ac_cv_prog_make_${ac_make}_set=no;;
cannam@140 2690 esac
cannam@140 2691 rm -f conftest.make
cannam@140 2692 fi
cannam@140 2693 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cannam@140 2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@140 2695 $as_echo "yes" >&6; }
cannam@140 2696 SET_MAKE=
cannam@140 2697 else
cannam@140 2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 2699 $as_echo "no" >&6; }
cannam@140 2700 SET_MAKE="MAKE=${MAKE-make}"
cannam@140 2701 fi
cannam@140 2702
cannam@140 2703 rm -rf .tst 2>/dev/null
cannam@140 2704 mkdir .tst 2>/dev/null
cannam@140 2705 if test -d .tst; then
cannam@140 2706 am__leading_dot=.
cannam@140 2707 else
cannam@140 2708 am__leading_dot=_
cannam@140 2709 fi
cannam@140 2710 rmdir .tst 2>/dev/null
cannam@140 2711
cannam@140 2712 # Check whether --enable-silent-rules was given.
cannam@140 2713 if test "${enable_silent_rules+set}" = set; then :
cannam@140 2714 enableval=$enable_silent_rules;
cannam@140 2715 fi
cannam@140 2716
cannam@140 2717 case $enable_silent_rules in # (((
cannam@140 2718 yes) AM_DEFAULT_VERBOSITY=0;;
cannam@140 2719 no) AM_DEFAULT_VERBOSITY=1;;
cannam@140 2720 *) AM_DEFAULT_VERBOSITY=1;;
cannam@140 2721 esac
cannam@140 2722 am_make=${MAKE-make}
cannam@140 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
cannam@140 2724 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
cannam@140 2725 if ${am_cv_make_support_nested_variables+:} false; then :
cannam@140 2726 $as_echo_n "(cached) " >&6
cannam@140 2727 else
cannam@140 2728 if $as_echo 'TRUE=$(BAR$(V))
cannam@140 2729 BAR0=false
cannam@140 2730 BAR1=true
cannam@140 2731 V=1
cannam@140 2732 am__doit:
cannam@140 2733 @$(TRUE)
cannam@140 2734 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
cannam@140 2735 am_cv_make_support_nested_variables=yes
cannam@140 2736 else
cannam@140 2737 am_cv_make_support_nested_variables=no
cannam@140 2738 fi
cannam@140 2739 fi
cannam@140 2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
cannam@140 2741 $as_echo "$am_cv_make_support_nested_variables" >&6; }
cannam@140 2742 if test $am_cv_make_support_nested_variables = yes; then
cannam@140 2743 AM_V='$(V)'
cannam@140 2744 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
cannam@140 2745 else
cannam@140 2746 AM_V=$AM_DEFAULT_VERBOSITY
cannam@140 2747 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
cannam@140 2748 fi
cannam@140 2749 AM_BACKSLASH='\'
cannam@140 2750
cannam@140 2751 if test "`cd $srcdir && pwd`" != "`pwd`"; then
cannam@140 2752 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
cannam@140 2753 # is not polluted with repeated "-I."
cannam@140 2754 am__isrc=' -I$(srcdir)'
cannam@140 2755 # test to see if srcdir already configured
cannam@140 2756 if test -f $srcdir/config.status; then
cannam@140 2757 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cannam@140 2758 fi
cannam@140 2759 fi
cannam@140 2760
cannam@140 2761 # test whether we have cygpath
cannam@140 2762 if test -z "$CYGPATH_W"; then
cannam@140 2763 if (cygpath --version) >/dev/null 2>/dev/null; then
cannam@140 2764 CYGPATH_W='cygpath -w'
cannam@140 2765 else
cannam@140 2766 CYGPATH_W=echo
cannam@140 2767 fi
cannam@140 2768 fi
cannam@140 2769
cannam@140 2770
cannam@140 2771 # Define the identity of the package.
cannam@140 2772 PACKAGE='portaudiocpp'
cannam@140 2773 VERSION='12'
cannam@140 2774
cannam@140 2775
cannam@140 2776 cat >>confdefs.h <<_ACEOF
cannam@140 2777 #define PACKAGE "$PACKAGE"
cannam@140 2778 _ACEOF
cannam@140 2779
cannam@140 2780
cannam@140 2781 cat >>confdefs.h <<_ACEOF
cannam@140 2782 #define VERSION "$VERSION"
cannam@140 2783 _ACEOF
cannam@140 2784
cannam@140 2785 # Some tools Automake needs.
cannam@140 2786
cannam@140 2787 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
cannam@140 2788
cannam@140 2789
cannam@140 2790 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
cannam@140 2791
cannam@140 2792
cannam@140 2793 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
cannam@140 2794
cannam@140 2795
cannam@140 2796 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
cannam@140 2797
cannam@140 2798
cannam@140 2799 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
cannam@140 2800
cannam@140 2801 # For better backward compatibility. To be removed once Automake 1.9.x
cannam@140 2802 # dies out for good. For more background, see:
cannam@140 2803 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
cannam@140 2804 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
cannam@140 2805 mkdir_p='$(MKDIR_P)'
cannam@140 2806
cannam@140 2807 # We need awk for the "check" target. The system "awk" is bad on
cannam@140 2808 # some platforms.
cannam@140 2809 # Always define AMTAR for backward compatibility. Yes, it's still used
cannam@140 2810 # in the wild :-( We should find a proper way to deprecate it ...
cannam@140 2811 AMTAR='$${TAR-tar}'
cannam@140 2812
cannam@140 2813
cannam@140 2814 # We'll loop over all known methods to create a tar archive until one works.
cannam@140 2815 _am_tools='gnutar pax cpio none'
cannam@140 2816
cannam@140 2817 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cannam@140 2818
cannam@140 2819
cannam@140 2820
cannam@140 2821
cannam@140 2822
cannam@140 2823
cannam@140 2824 # POSIX will say in a future version that running "rm -f" with no argument
cannam@140 2825 # is OK; and we want to be able to make that assumption in our Makefile
cannam@140 2826 # recipes. So use an aggressive probe to check that the usage we want is
cannam@140 2827 # actually supported "in the wild" to an acceptable degree.
cannam@140 2828 # See automake bug#10828.
cannam@140 2829 # To make any issue more visible, cause the running configure to be aborted
cannam@140 2830 # by default if the 'rm' program in use doesn't match our expectations; the
cannam@140 2831 # user can still override this though.
cannam@140 2832 if rm -f && rm -fr && rm -rf; then : OK; else
cannam@140 2833 cat >&2 <<'END'
cannam@140 2834 Oops!
cannam@140 2835
cannam@140 2836 Your 'rm' program seems unable to run without file operands specified
cannam@140 2837 on the command line, even when the '-f' option is present. This is contrary
cannam@140 2838 to the behaviour of most rm programs out there, and not conforming with
cannam@140 2839 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
cannam@140 2840
cannam@140 2841 Please tell bug-automake@gnu.org about your system, including the value
cannam@140 2842 of your $PATH and any error possibly output before this message. This
cannam@140 2843 can help us improve future automake versions.
cannam@140 2844
cannam@140 2845 END
cannam@140 2846 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
cannam@140 2847 echo 'Configuration will proceed anyway, since you have set the' >&2
cannam@140 2848 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
cannam@140 2849 echo >&2
cannam@140 2850 else
cannam@140 2851 cat >&2 <<'END'
cannam@140 2852 Aborting the configuration process, to ensure you take notice of the issue.
cannam@140 2853
cannam@140 2854 You can download and install GNU coreutils to get an 'rm' implementation
cannam@140 2855 that behaves properly: <http://www.gnu.org/software/coreutils/>.
cannam@140 2856
cannam@140 2857 If you want to complete the configuration process using your problematic
cannam@140 2858 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
cannam@140 2859 to "yes", and re-run configure.
cannam@140 2860
cannam@140 2861 END
cannam@140 2862 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
cannam@140 2863 fi
cannam@140 2864 fi
cannam@140 2865
cannam@140 2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cannam@140 2867 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
cannam@140 2868 # Check whether --enable-maintainer-mode was given.
cannam@140 2869 if test "${enable_maintainer_mode+set}" = set; then :
cannam@140 2870 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
cannam@140 2871 else
cannam@140 2872 USE_MAINTAINER_MODE=no
cannam@140 2873 fi
cannam@140 2874
cannam@140 2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cannam@140 2876 $as_echo "$USE_MAINTAINER_MODE" >&6; }
cannam@140 2877 if test $USE_MAINTAINER_MODE = yes; then
cannam@140 2878 MAINTAINER_MODE_TRUE=
cannam@140 2879 MAINTAINER_MODE_FALSE='#'
cannam@140 2880 else
cannam@140 2881 MAINTAINER_MODE_TRUE='#'
cannam@140 2882 MAINTAINER_MODE_FALSE=
cannam@140 2883 fi
cannam@140 2884
cannam@140 2885 MAINT=$MAINTAINER_MODE_TRUE
cannam@140 2886
cannam@140 2887
cannam@140 2888
cannam@140 2889 ###### Top-level directory of pacpp
cannam@140 2890 ###### This makes it easy to shuffle the build directories
cannam@140 2891 ###### Also edit AC_CONFIG_SRCDIR above (wouldn't accept this variable)!
cannam@140 2892 PACPP_ROOT="\$(top_srcdir)"
cannam@140 2893 PORTAUDIO_ROOT="../.."
cannam@140 2894
cannam@140 2895 # Various other variables and flags
cannam@140 2896 DEFAULT_INCLUDES="-I$PACPP_ROOT/include -I$PACPP_ROOT/$PORTAUDIO_ROOT/include"
cannam@140 2897 CFLAGS=${CFLAGS-"-g -O2 -Wall -ansi -pedantic"}
cannam@140 2898 CXXFLAGS=${CXXFLAGS-"${CFLAGS}"}
cannam@140 2899
cannam@140 2900 LT_VERSION_INFO="0:12:0"
cannam@140 2901
cannam@140 2902 # Checks for programs
cannam@140 2903
cannam@140 2904 ac_ext=c
cannam@140 2905 ac_cpp='$CPP $CPPFLAGS'
cannam@140 2906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@140 2907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@140 2908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@140 2909 if test -n "$ac_tool_prefix"; then
cannam@140 2910 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
cannam@140 2911 set dummy ${ac_tool_prefix}gcc; ac_word=$2
cannam@140 2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 2913 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 2914 if ${ac_cv_prog_CC+:} false; then :
cannam@140 2915 $as_echo_n "(cached) " >&6
cannam@140 2916 else
cannam@140 2917 if test -n "$CC"; then
cannam@140 2918 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@140 2919 else
cannam@140 2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 2921 for as_dir in $PATH
cannam@140 2922 do
cannam@140 2923 IFS=$as_save_IFS
cannam@140 2924 test -z "$as_dir" && as_dir=.
cannam@140 2925 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 2926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 2927 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cannam@140 2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 2929 break 2
cannam@140 2930 fi
cannam@140 2931 done
cannam@140 2932 done
cannam@140 2933 IFS=$as_save_IFS
cannam@140 2934
cannam@140 2935 fi
cannam@140 2936 fi
cannam@140 2937 CC=$ac_cv_prog_CC
cannam@140 2938 if test -n "$CC"; then
cannam@140 2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@140 2940 $as_echo "$CC" >&6; }
cannam@140 2941 else
cannam@140 2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 2943 $as_echo "no" >&6; }
cannam@140 2944 fi
cannam@140 2945
cannam@140 2946
cannam@140 2947 fi
cannam@140 2948 if test -z "$ac_cv_prog_CC"; then
cannam@140 2949 ac_ct_CC=$CC
cannam@140 2950 # Extract the first word of "gcc", so it can be a program name with args.
cannam@140 2951 set dummy gcc; ac_word=$2
cannam@140 2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 2953 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 2954 if ${ac_cv_prog_ac_ct_CC+:} false; then :
cannam@140 2955 $as_echo_n "(cached) " >&6
cannam@140 2956 else
cannam@140 2957 if test -n "$ac_ct_CC"; then
cannam@140 2958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
cannam@140 2959 else
cannam@140 2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 2961 for as_dir in $PATH
cannam@140 2962 do
cannam@140 2963 IFS=$as_save_IFS
cannam@140 2964 test -z "$as_dir" && as_dir=.
cannam@140 2965 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 2966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 2967 ac_cv_prog_ac_ct_CC="gcc"
cannam@140 2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 2969 break 2
cannam@140 2970 fi
cannam@140 2971 done
cannam@140 2972 done
cannam@140 2973 IFS=$as_save_IFS
cannam@140 2974
cannam@140 2975 fi
cannam@140 2976 fi
cannam@140 2977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
cannam@140 2978 if test -n "$ac_ct_CC"; then
cannam@140 2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cannam@140 2980 $as_echo "$ac_ct_CC" >&6; }
cannam@140 2981 else
cannam@140 2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 2983 $as_echo "no" >&6; }
cannam@140 2984 fi
cannam@140 2985
cannam@140 2986 if test "x$ac_ct_CC" = x; then
cannam@140 2987 CC=""
cannam@140 2988 else
cannam@140 2989 case $cross_compiling:$ac_tool_warned in
cannam@140 2990 yes:)
cannam@140 2991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@140 2992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@140 2993 ac_tool_warned=yes ;;
cannam@140 2994 esac
cannam@140 2995 CC=$ac_ct_CC
cannam@140 2996 fi
cannam@140 2997 else
cannam@140 2998 CC="$ac_cv_prog_CC"
cannam@140 2999 fi
cannam@140 3000
cannam@140 3001 if test -z "$CC"; then
cannam@140 3002 if test -n "$ac_tool_prefix"; then
cannam@140 3003 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
cannam@140 3004 set dummy ${ac_tool_prefix}cc; ac_word=$2
cannam@140 3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 3006 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 3007 if ${ac_cv_prog_CC+:} false; then :
cannam@140 3008 $as_echo_n "(cached) " >&6
cannam@140 3009 else
cannam@140 3010 if test -n "$CC"; then
cannam@140 3011 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@140 3012 else
cannam@140 3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 3014 for as_dir in $PATH
cannam@140 3015 do
cannam@140 3016 IFS=$as_save_IFS
cannam@140 3017 test -z "$as_dir" && as_dir=.
cannam@140 3018 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 3019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 3020 ac_cv_prog_CC="${ac_tool_prefix}cc"
cannam@140 3021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 3022 break 2
cannam@140 3023 fi
cannam@140 3024 done
cannam@140 3025 done
cannam@140 3026 IFS=$as_save_IFS
cannam@140 3027
cannam@140 3028 fi
cannam@140 3029 fi
cannam@140 3030 CC=$ac_cv_prog_CC
cannam@140 3031 if test -n "$CC"; then
cannam@140 3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@140 3033 $as_echo "$CC" >&6; }
cannam@140 3034 else
cannam@140 3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 3036 $as_echo "no" >&6; }
cannam@140 3037 fi
cannam@140 3038
cannam@140 3039
cannam@140 3040 fi
cannam@140 3041 fi
cannam@140 3042 if test -z "$CC"; then
cannam@140 3043 # Extract the first word of "cc", so it can be a program name with args.
cannam@140 3044 set dummy cc; ac_word=$2
cannam@140 3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 3046 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 3047 if ${ac_cv_prog_CC+:} false; then :
cannam@140 3048 $as_echo_n "(cached) " >&6
cannam@140 3049 else
cannam@140 3050 if test -n "$CC"; then
cannam@140 3051 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@140 3052 else
cannam@140 3053 ac_prog_rejected=no
cannam@140 3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 3055 for as_dir in $PATH
cannam@140 3056 do
cannam@140 3057 IFS=$as_save_IFS
cannam@140 3058 test -z "$as_dir" && as_dir=.
cannam@140 3059 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 3060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 3061 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
cannam@140 3062 ac_prog_rejected=yes
cannam@140 3063 continue
cannam@140 3064 fi
cannam@140 3065 ac_cv_prog_CC="cc"
cannam@140 3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 3067 break 2
cannam@140 3068 fi
cannam@140 3069 done
cannam@140 3070 done
cannam@140 3071 IFS=$as_save_IFS
cannam@140 3072
cannam@140 3073 if test $ac_prog_rejected = yes; then
cannam@140 3074 # We found a bogon in the path, so make sure we never use it.
cannam@140 3075 set dummy $ac_cv_prog_CC
cannam@140 3076 shift
cannam@140 3077 if test $# != 0; then
cannam@140 3078 # We chose a different compiler from the bogus one.
cannam@140 3079 # However, it has the same basename, so the bogon will be chosen
cannam@140 3080 # first if we set CC to just the basename; use the full file name.
cannam@140 3081 shift
cannam@140 3082 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
cannam@140 3083 fi
cannam@140 3084 fi
cannam@140 3085 fi
cannam@140 3086 fi
cannam@140 3087 CC=$ac_cv_prog_CC
cannam@140 3088 if test -n "$CC"; then
cannam@140 3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@140 3090 $as_echo "$CC" >&6; }
cannam@140 3091 else
cannam@140 3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 3093 $as_echo "no" >&6; }
cannam@140 3094 fi
cannam@140 3095
cannam@140 3096
cannam@140 3097 fi
cannam@140 3098 if test -z "$CC"; then
cannam@140 3099 if test -n "$ac_tool_prefix"; then
cannam@140 3100 for ac_prog in cl.exe
cannam@140 3101 do
cannam@140 3102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@140 3103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@140 3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 3105 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 3106 if ${ac_cv_prog_CC+:} false; then :
cannam@140 3107 $as_echo_n "(cached) " >&6
cannam@140 3108 else
cannam@140 3109 if test -n "$CC"; then
cannam@140 3110 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@140 3111 else
cannam@140 3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 3113 for as_dir in $PATH
cannam@140 3114 do
cannam@140 3115 IFS=$as_save_IFS
cannam@140 3116 test -z "$as_dir" && as_dir=.
cannam@140 3117 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 3118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 3119 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cannam@140 3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 3121 break 2
cannam@140 3122 fi
cannam@140 3123 done
cannam@140 3124 done
cannam@140 3125 IFS=$as_save_IFS
cannam@140 3126
cannam@140 3127 fi
cannam@140 3128 fi
cannam@140 3129 CC=$ac_cv_prog_CC
cannam@140 3130 if test -n "$CC"; then
cannam@140 3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@140 3132 $as_echo "$CC" >&6; }
cannam@140 3133 else
cannam@140 3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 3135 $as_echo "no" >&6; }
cannam@140 3136 fi
cannam@140 3137
cannam@140 3138
cannam@140 3139 test -n "$CC" && break
cannam@140 3140 done
cannam@140 3141 fi
cannam@140 3142 if test -z "$CC"; then
cannam@140 3143 ac_ct_CC=$CC
cannam@140 3144 for ac_prog in cl.exe
cannam@140 3145 do
cannam@140 3146 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@140 3147 set dummy $ac_prog; ac_word=$2
cannam@140 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 3149 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 3150 if ${ac_cv_prog_ac_ct_CC+:} false; then :
cannam@140 3151 $as_echo_n "(cached) " >&6
cannam@140 3152 else
cannam@140 3153 if test -n "$ac_ct_CC"; then
cannam@140 3154 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
cannam@140 3155 else
cannam@140 3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 3157 for as_dir in $PATH
cannam@140 3158 do
cannam@140 3159 IFS=$as_save_IFS
cannam@140 3160 test -z "$as_dir" && as_dir=.
cannam@140 3161 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 3162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 3163 ac_cv_prog_ac_ct_CC="$ac_prog"
cannam@140 3164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 3165 break 2
cannam@140 3166 fi
cannam@140 3167 done
cannam@140 3168 done
cannam@140 3169 IFS=$as_save_IFS
cannam@140 3170
cannam@140 3171 fi
cannam@140 3172 fi
cannam@140 3173 ac_ct_CC=$ac_cv_prog_ac_ct_CC
cannam@140 3174 if test -n "$ac_ct_CC"; then
cannam@140 3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cannam@140 3176 $as_echo "$ac_ct_CC" >&6; }
cannam@140 3177 else
cannam@140 3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 3179 $as_echo "no" >&6; }
cannam@140 3180 fi
cannam@140 3181
cannam@140 3182
cannam@140 3183 test -n "$ac_ct_CC" && break
cannam@140 3184 done
cannam@140 3185
cannam@140 3186 if test "x$ac_ct_CC" = x; then
cannam@140 3187 CC=""
cannam@140 3188 else
cannam@140 3189 case $cross_compiling:$ac_tool_warned in
cannam@140 3190 yes:)
cannam@140 3191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@140 3192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@140 3193 ac_tool_warned=yes ;;
cannam@140 3194 esac
cannam@140 3195 CC=$ac_ct_CC
cannam@140 3196 fi
cannam@140 3197 fi
cannam@140 3198
cannam@140 3199 fi
cannam@140 3200
cannam@140 3201
cannam@140 3202 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@140 3203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@140 3204 as_fn_error $? "no acceptable C compiler found in \$PATH
cannam@140 3205 See \`config.log' for more details" "$LINENO" 5; }
cannam@140 3206
cannam@140 3207 # Provide some information about the compiler.
cannam@140 3208 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cannam@140 3209 set X $ac_compile
cannam@140 3210 ac_compiler=$2
cannam@140 3211 for ac_option in --version -v -V -qversion; do
cannam@140 3212 { { ac_try="$ac_compiler $ac_option >&5"
cannam@140 3213 case "(($ac_try" in
cannam@140 3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@140 3215 *) ac_try_echo=$ac_try;;
cannam@140 3216 esac
cannam@140 3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@140 3218 $as_echo "$ac_try_echo"; } >&5
cannam@140 3219 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cannam@140 3220 ac_status=$?
cannam@140 3221 if test -s conftest.err; then
cannam@140 3222 sed '10a\
cannam@140 3223 ... rest of stderr output deleted ...
cannam@140 3224 10q' conftest.err >conftest.er1
cannam@140 3225 cat conftest.er1 >&5
cannam@140 3226 fi
cannam@140 3227 rm -f conftest.er1 conftest.err
cannam@140 3228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 3229 test $ac_status = 0; }
cannam@140 3230 done
cannam@140 3231
cannam@140 3232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 3233 /* end confdefs.h. */
cannam@140 3234
cannam@140 3235 int
cannam@140 3236 main ()
cannam@140 3237 {
cannam@140 3238
cannam@140 3239 ;
cannam@140 3240 return 0;
cannam@140 3241 }
cannam@140 3242 _ACEOF
cannam@140 3243 ac_clean_files_save=$ac_clean_files
cannam@140 3244 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cannam@140 3245 # Try to create an executable without -o first, disregard a.out.
cannam@140 3246 # It will help us diagnose broken compilers, and finding out an intuition
cannam@140 3247 # of exeext.
cannam@140 3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
cannam@140 3249 $as_echo_n "checking whether the C compiler works... " >&6; }
cannam@140 3250 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
cannam@140 3251
cannam@140 3252 # The possible output files:
cannam@140 3253 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
cannam@140 3254
cannam@140 3255 ac_rmfiles=
cannam@140 3256 for ac_file in $ac_files
cannam@140 3257 do
cannam@140 3258 case $ac_file in
cannam@140 3259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
cannam@140 3260 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
cannam@140 3261 esac
cannam@140 3262 done
cannam@140 3263 rm -f $ac_rmfiles
cannam@140 3264
cannam@140 3265 if { { ac_try="$ac_link_default"
cannam@140 3266 case "(($ac_try" in
cannam@140 3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@140 3268 *) ac_try_echo=$ac_try;;
cannam@140 3269 esac
cannam@140 3270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@140 3271 $as_echo "$ac_try_echo"; } >&5
cannam@140 3272 (eval "$ac_link_default") 2>&5
cannam@140 3273 ac_status=$?
cannam@140 3274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 3275 test $ac_status = 0; }; then :
cannam@140 3276 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
cannam@140 3277 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
cannam@140 3278 # in a Makefile. We should not override ac_cv_exeext if it was cached,
cannam@140 3279 # so that the user can short-circuit this test for compilers unknown to
cannam@140 3280 # Autoconf.
cannam@140 3281 for ac_file in $ac_files ''
cannam@140 3282 do
cannam@140 3283 test -f "$ac_file" || continue
cannam@140 3284 case $ac_file in
cannam@140 3285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
cannam@140 3286 ;;
cannam@140 3287 [ab].out )
cannam@140 3288 # We found the default executable, but exeext='' is most
cannam@140 3289 # certainly right.
cannam@140 3290 break;;
cannam@140 3291 *.* )
cannam@140 3292 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cannam@140 3293 then :; else
cannam@140 3294 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
cannam@140 3295 fi
cannam@140 3296 # We set ac_cv_exeext here because the later test for it is not
cannam@140 3297 # safe: cross compilers may not add the suffix if given an `-o'
cannam@140 3298 # argument, so we may need to know it at that point already.
cannam@140 3299 # Even if this section looks crufty: it has the advantage of
cannam@140 3300 # actually working.
cannam@140 3301 break;;
cannam@140 3302 * )
cannam@140 3303 break;;
cannam@140 3304 esac
cannam@140 3305 done
cannam@140 3306 test "$ac_cv_exeext" = no && ac_cv_exeext=
cannam@140 3307
cannam@140 3308 else
cannam@140 3309 ac_file=''
cannam@140 3310 fi
cannam@140 3311 if test -z "$ac_file"; then :
cannam@140 3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 3313 $as_echo "no" >&6; }
cannam@140 3314 $as_echo "$as_me: failed program was:" >&5
cannam@140 3315 sed 's/^/| /' conftest.$ac_ext >&5
cannam@140 3316
cannam@140 3317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@140 3318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@140 3319 as_fn_error 77 "C compiler cannot create executables
cannam@140 3320 See \`config.log' for more details" "$LINENO" 5; }
cannam@140 3321 else
cannam@140 3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@140 3323 $as_echo "yes" >&6; }
cannam@140 3324 fi
cannam@140 3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
cannam@140 3326 $as_echo_n "checking for C compiler default output file name... " >&6; }
cannam@140 3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
cannam@140 3328 $as_echo "$ac_file" >&6; }
cannam@140 3329 ac_exeext=$ac_cv_exeext
cannam@140 3330
cannam@140 3331 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cannam@140 3332 ac_clean_files=$ac_clean_files_save
cannam@140 3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cannam@140 3334 $as_echo_n "checking for suffix of executables... " >&6; }
cannam@140 3335 if { { ac_try="$ac_link"
cannam@140 3336 case "(($ac_try" in
cannam@140 3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@140 3338 *) ac_try_echo=$ac_try;;
cannam@140 3339 esac
cannam@140 3340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@140 3341 $as_echo "$ac_try_echo"; } >&5
cannam@140 3342 (eval "$ac_link") 2>&5
cannam@140 3343 ac_status=$?
cannam@140 3344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 3345 test $ac_status = 0; }; then :
cannam@140 3346 # If both `conftest.exe' and `conftest' are `present' (well, observable)
cannam@140 3347 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
cannam@140 3348 # work properly (i.e., refer to `conftest.exe'), while it won't with
cannam@140 3349 # `rm'.
cannam@140 3350 for ac_file in conftest.exe conftest conftest.*; do
cannam@140 3351 test -f "$ac_file" || continue
cannam@140 3352 case $ac_file in
cannam@140 3353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
cannam@140 3354 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
cannam@140 3355 break;;
cannam@140 3356 * ) break;;
cannam@140 3357 esac
cannam@140 3358 done
cannam@140 3359 else
cannam@140 3360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@140 3361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@140 3362 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
cannam@140 3363 See \`config.log' for more details" "$LINENO" 5; }
cannam@140 3364 fi
cannam@140 3365 rm -f conftest conftest$ac_cv_exeext
cannam@140 3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cannam@140 3367 $as_echo "$ac_cv_exeext" >&6; }
cannam@140 3368
cannam@140 3369 rm -f conftest.$ac_ext
cannam@140 3370 EXEEXT=$ac_cv_exeext
cannam@140 3371 ac_exeext=$EXEEXT
cannam@140 3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 3373 /* end confdefs.h. */
cannam@140 3374 #include <stdio.h>
cannam@140 3375 int
cannam@140 3376 main ()
cannam@140 3377 {
cannam@140 3378 FILE *f = fopen ("conftest.out", "w");
cannam@140 3379 return ferror (f) || fclose (f) != 0;
cannam@140 3380
cannam@140 3381 ;
cannam@140 3382 return 0;
cannam@140 3383 }
cannam@140 3384 _ACEOF
cannam@140 3385 ac_clean_files="$ac_clean_files conftest.out"
cannam@140 3386 # Check that the compiler produces executables we can run. If not, either
cannam@140 3387 # the compiler is broken, or we cross compile.
cannam@140 3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
cannam@140 3389 $as_echo_n "checking whether we are cross compiling... " >&6; }
cannam@140 3390 if test "$cross_compiling" != yes; then
cannam@140 3391 { { ac_try="$ac_link"
cannam@140 3392 case "(($ac_try" in
cannam@140 3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@140 3394 *) ac_try_echo=$ac_try;;
cannam@140 3395 esac
cannam@140 3396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@140 3397 $as_echo "$ac_try_echo"; } >&5
cannam@140 3398 (eval "$ac_link") 2>&5
cannam@140 3399 ac_status=$?
cannam@140 3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 3401 test $ac_status = 0; }
cannam@140 3402 if { ac_try='./conftest$ac_cv_exeext'
cannam@140 3403 { { case "(($ac_try" in
cannam@140 3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@140 3405 *) ac_try_echo=$ac_try;;
cannam@140 3406 esac
cannam@140 3407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@140 3408 $as_echo "$ac_try_echo"; } >&5
cannam@140 3409 (eval "$ac_try") 2>&5
cannam@140 3410 ac_status=$?
cannam@140 3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 3412 test $ac_status = 0; }; }; then
cannam@140 3413 cross_compiling=no
cannam@140 3414 else
cannam@140 3415 if test "$cross_compiling" = maybe; then
cannam@140 3416 cross_compiling=yes
cannam@140 3417 else
cannam@140 3418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@140 3419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@140 3420 as_fn_error $? "cannot run C compiled programs.
cannam@140 3421 If you meant to cross compile, use \`--host'.
cannam@140 3422 See \`config.log' for more details" "$LINENO" 5; }
cannam@140 3423 fi
cannam@140 3424 fi
cannam@140 3425 fi
cannam@140 3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
cannam@140 3427 $as_echo "$cross_compiling" >&6; }
cannam@140 3428
cannam@140 3429 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
cannam@140 3430 ac_clean_files=$ac_clean_files_save
cannam@140 3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cannam@140 3432 $as_echo_n "checking for suffix of object files... " >&6; }
cannam@140 3433 if ${ac_cv_objext+:} false; then :
cannam@140 3434 $as_echo_n "(cached) " >&6
cannam@140 3435 else
cannam@140 3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 3437 /* end confdefs.h. */
cannam@140 3438
cannam@140 3439 int
cannam@140 3440 main ()
cannam@140 3441 {
cannam@140 3442
cannam@140 3443 ;
cannam@140 3444 return 0;
cannam@140 3445 }
cannam@140 3446 _ACEOF
cannam@140 3447 rm -f conftest.o conftest.obj
cannam@140 3448 if { { ac_try="$ac_compile"
cannam@140 3449 case "(($ac_try" in
cannam@140 3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@140 3451 *) ac_try_echo=$ac_try;;
cannam@140 3452 esac
cannam@140 3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@140 3454 $as_echo "$ac_try_echo"; } >&5
cannam@140 3455 (eval "$ac_compile") 2>&5
cannam@140 3456 ac_status=$?
cannam@140 3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 3458 test $ac_status = 0; }; then :
cannam@140 3459 for ac_file in conftest.o conftest.obj conftest.*; do
cannam@140 3460 test -f "$ac_file" || continue;
cannam@140 3461 case $ac_file in
cannam@140 3462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
cannam@140 3463 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
cannam@140 3464 break;;
cannam@140 3465 esac
cannam@140 3466 done
cannam@140 3467 else
cannam@140 3468 $as_echo "$as_me: failed program was:" >&5
cannam@140 3469 sed 's/^/| /' conftest.$ac_ext >&5
cannam@140 3470
cannam@140 3471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@140 3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@140 3473 as_fn_error $? "cannot compute suffix of object files: cannot compile
cannam@140 3474 See \`config.log' for more details" "$LINENO" 5; }
cannam@140 3475 fi
cannam@140 3476 rm -f conftest.$ac_cv_objext conftest.$ac_ext
cannam@140 3477 fi
cannam@140 3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cannam@140 3479 $as_echo "$ac_cv_objext" >&6; }
cannam@140 3480 OBJEXT=$ac_cv_objext
cannam@140 3481 ac_objext=$OBJEXT
cannam@140 3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cannam@140 3483 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cannam@140 3484 if ${ac_cv_c_compiler_gnu+:} false; then :
cannam@140 3485 $as_echo_n "(cached) " >&6
cannam@140 3486 else
cannam@140 3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 3488 /* end confdefs.h. */
cannam@140 3489
cannam@140 3490 int
cannam@140 3491 main ()
cannam@140 3492 {
cannam@140 3493 #ifndef __GNUC__
cannam@140 3494 choke me
cannam@140 3495 #endif
cannam@140 3496
cannam@140 3497 ;
cannam@140 3498 return 0;
cannam@140 3499 }
cannam@140 3500 _ACEOF
cannam@140 3501 if ac_fn_c_try_compile "$LINENO"; then :
cannam@140 3502 ac_compiler_gnu=yes
cannam@140 3503 else
cannam@140 3504 ac_compiler_gnu=no
cannam@140 3505 fi
cannam@140 3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@140 3507 ac_cv_c_compiler_gnu=$ac_compiler_gnu
cannam@140 3508
cannam@140 3509 fi
cannam@140 3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cannam@140 3511 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
cannam@140 3512 if test $ac_compiler_gnu = yes; then
cannam@140 3513 GCC=yes
cannam@140 3514 else
cannam@140 3515 GCC=
cannam@140 3516 fi
cannam@140 3517 ac_test_CFLAGS=${CFLAGS+set}
cannam@140 3518 ac_save_CFLAGS=$CFLAGS
cannam@140 3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cannam@140 3520 $as_echo_n "checking whether $CC accepts -g... " >&6; }
cannam@140 3521 if ${ac_cv_prog_cc_g+:} false; then :
cannam@140 3522 $as_echo_n "(cached) " >&6
cannam@140 3523 else
cannam@140 3524 ac_save_c_werror_flag=$ac_c_werror_flag
cannam@140 3525 ac_c_werror_flag=yes
cannam@140 3526 ac_cv_prog_cc_g=no
cannam@140 3527 CFLAGS="-g"
cannam@140 3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 3529 /* end confdefs.h. */
cannam@140 3530
cannam@140 3531 int
cannam@140 3532 main ()
cannam@140 3533 {
cannam@140 3534
cannam@140 3535 ;
cannam@140 3536 return 0;
cannam@140 3537 }
cannam@140 3538 _ACEOF
cannam@140 3539 if ac_fn_c_try_compile "$LINENO"; then :
cannam@140 3540 ac_cv_prog_cc_g=yes
cannam@140 3541 else
cannam@140 3542 CFLAGS=""
cannam@140 3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 3544 /* end confdefs.h. */
cannam@140 3545
cannam@140 3546 int
cannam@140 3547 main ()
cannam@140 3548 {
cannam@140 3549
cannam@140 3550 ;
cannam@140 3551 return 0;
cannam@140 3552 }
cannam@140 3553 _ACEOF
cannam@140 3554 if ac_fn_c_try_compile "$LINENO"; then :
cannam@140 3555
cannam@140 3556 else
cannam@140 3557 ac_c_werror_flag=$ac_save_c_werror_flag
cannam@140 3558 CFLAGS="-g"
cannam@140 3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 3560 /* end confdefs.h. */
cannam@140 3561
cannam@140 3562 int
cannam@140 3563 main ()
cannam@140 3564 {
cannam@140 3565
cannam@140 3566 ;
cannam@140 3567 return 0;
cannam@140 3568 }
cannam@140 3569 _ACEOF
cannam@140 3570 if ac_fn_c_try_compile "$LINENO"; then :
cannam@140 3571 ac_cv_prog_cc_g=yes
cannam@140 3572 fi
cannam@140 3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@140 3574 fi
cannam@140 3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@140 3576 fi
cannam@140 3577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@140 3578 ac_c_werror_flag=$ac_save_c_werror_flag
cannam@140 3579 fi
cannam@140 3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cannam@140 3581 $as_echo "$ac_cv_prog_cc_g" >&6; }
cannam@140 3582 if test "$ac_test_CFLAGS" = set; then
cannam@140 3583 CFLAGS=$ac_save_CFLAGS
cannam@140 3584 elif test $ac_cv_prog_cc_g = yes; then
cannam@140 3585 if test "$GCC" = yes; then
cannam@140 3586 CFLAGS="-g -O2"
cannam@140 3587 else
cannam@140 3588 CFLAGS="-g"
cannam@140 3589 fi
cannam@140 3590 else
cannam@140 3591 if test "$GCC" = yes; then
cannam@140 3592 CFLAGS="-O2"
cannam@140 3593 else
cannam@140 3594 CFLAGS=
cannam@140 3595 fi
cannam@140 3596 fi
cannam@140 3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cannam@140 3598 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cannam@140 3599 if ${ac_cv_prog_cc_c89+:} false; then :
cannam@140 3600 $as_echo_n "(cached) " >&6
cannam@140 3601 else
cannam@140 3602 ac_cv_prog_cc_c89=no
cannam@140 3603 ac_save_CC=$CC
cannam@140 3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 3605 /* end confdefs.h. */
cannam@140 3606 #include <stdarg.h>
cannam@140 3607 #include <stdio.h>
cannam@140 3608 struct stat;
cannam@140 3609 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
cannam@140 3610 struct buf { int x; };
cannam@140 3611 FILE * (*rcsopen) (struct buf *, struct stat *, int);
cannam@140 3612 static char *e (p, i)
cannam@140 3613 char **p;
cannam@140 3614 int i;
cannam@140 3615 {
cannam@140 3616 return p[i];
cannam@140 3617 }
cannam@140 3618 static char *f (char * (*g) (char **, int), char **p, ...)
cannam@140 3619 {
cannam@140 3620 char *s;
cannam@140 3621 va_list v;
cannam@140 3622 va_start (v,p);
cannam@140 3623 s = g (p, va_arg (v,int));
cannam@140 3624 va_end (v);
cannam@140 3625 return s;
cannam@140 3626 }
cannam@140 3627
cannam@140 3628 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
cannam@140 3629 function prototypes and stuff, but not '\xHH' hex character constants.
cannam@140 3630 These don't provoke an error unfortunately, instead are silently treated
cannam@140 3631 as 'x'. The following induces an error, until -std is added to get
cannam@140 3632 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
cannam@140 3633 array size at least. It's necessary to write '\x00'==0 to get something
cannam@140 3634 that's true only with -std. */
cannam@140 3635 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
cannam@140 3636
cannam@140 3637 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
cannam@140 3638 inside strings and character constants. */
cannam@140 3639 #define FOO(x) 'x'
cannam@140 3640 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
cannam@140 3641
cannam@140 3642 int test (int i, double x);
cannam@140 3643 struct s1 {int (*f) (int a);};
cannam@140 3644 struct s2 {int (*f) (double a);};
cannam@140 3645 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
cannam@140 3646 int argc;
cannam@140 3647 char **argv;
cannam@140 3648 int
cannam@140 3649 main ()
cannam@140 3650 {
cannam@140 3651 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
cannam@140 3652 ;
cannam@140 3653 return 0;
cannam@140 3654 }
cannam@140 3655 _ACEOF
cannam@140 3656 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
cannam@140 3657 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
cannam@140 3658 do
cannam@140 3659 CC="$ac_save_CC $ac_arg"
cannam@140 3660 if ac_fn_c_try_compile "$LINENO"; then :
cannam@140 3661 ac_cv_prog_cc_c89=$ac_arg
cannam@140 3662 fi
cannam@140 3663 rm -f core conftest.err conftest.$ac_objext
cannam@140 3664 test "x$ac_cv_prog_cc_c89" != "xno" && break
cannam@140 3665 done
cannam@140 3666 rm -f conftest.$ac_ext
cannam@140 3667 CC=$ac_save_CC
cannam@140 3668
cannam@140 3669 fi
cannam@140 3670 # AC_CACHE_VAL
cannam@140 3671 case "x$ac_cv_prog_cc_c89" in
cannam@140 3672 x)
cannam@140 3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cannam@140 3674 $as_echo "none needed" >&6; } ;;
cannam@140 3675 xno)
cannam@140 3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cannam@140 3677 $as_echo "unsupported" >&6; } ;;
cannam@140 3678 *)
cannam@140 3679 CC="$CC $ac_cv_prog_cc_c89"
cannam@140 3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cannam@140 3681 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
cannam@140 3682 esac
cannam@140 3683 if test "x$ac_cv_prog_cc_c89" != xno; then :
cannam@140 3684
cannam@140 3685 fi
cannam@140 3686
cannam@140 3687 ac_ext=c
cannam@140 3688 ac_cpp='$CPP $CPPFLAGS'
cannam@140 3689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@140 3690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@140 3691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@140 3692
cannam@140 3693 ac_ext=c
cannam@140 3694 ac_cpp='$CPP $CPPFLAGS'
cannam@140 3695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@140 3696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@140 3697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@140 3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
cannam@140 3699 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
cannam@140 3700 if ${am_cv_prog_cc_c_o+:} false; then :
cannam@140 3701 $as_echo_n "(cached) " >&6
cannam@140 3702 else
cannam@140 3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 3704 /* end confdefs.h. */
cannam@140 3705
cannam@140 3706 int
cannam@140 3707 main ()
cannam@140 3708 {
cannam@140 3709
cannam@140 3710 ;
cannam@140 3711 return 0;
cannam@140 3712 }
cannam@140 3713 _ACEOF
cannam@140 3714 # Make sure it works both with $CC and with simple cc.
cannam@140 3715 # Following AC_PROG_CC_C_O, we do the test twice because some
cannam@140 3716 # compilers refuse to overwrite an existing .o file with -o,
cannam@140 3717 # though they will create one.
cannam@140 3718 am_cv_prog_cc_c_o=yes
cannam@140 3719 for am_i in 1 2; do
cannam@140 3720 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
cannam@140 3721 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
cannam@140 3722 ac_status=$?
cannam@140 3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@140 3724 (exit $ac_status); } \
cannam@140 3725 && test -f conftest2.$ac_objext; then
cannam@140 3726 : OK
cannam@140 3727 else
cannam@140 3728 am_cv_prog_cc_c_o=no
cannam@140 3729 break
cannam@140 3730 fi
cannam@140 3731 done
cannam@140 3732 rm -f core conftest*
cannam@140 3733 unset am_i
cannam@140 3734 fi
cannam@140 3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
cannam@140 3736 $as_echo "$am_cv_prog_cc_c_o" >&6; }
cannam@140 3737 if test "$am_cv_prog_cc_c_o" != yes; then
cannam@140 3738 # Losing compiler, so override with the script.
cannam@140 3739 # FIXME: It is wrong to rewrite CC.
cannam@140 3740 # But if we don't then we get into trouble of one sort or another.
cannam@140 3741 # A longer-term fix would be to have automake use am__CC in this case,
cannam@140 3742 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
cannam@140 3743 CC="$am_aux_dir/compile $CC"
cannam@140 3744 fi
cannam@140 3745 ac_ext=c
cannam@140 3746 ac_cpp='$CPP $CPPFLAGS'
cannam@140 3747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@140 3748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@140 3749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@140 3750
cannam@140 3751 DEPDIR="${am__leading_dot}deps"
cannam@140 3752
cannam@140 3753 ac_config_commands="$ac_config_commands depfiles"
cannam@140 3754
cannam@140 3755
cannam@140 3756 am_make=${MAKE-make}
cannam@140 3757 cat > confinc << 'END'
cannam@140 3758 am__doit:
cannam@140 3759 @echo this is the am__doit target
cannam@140 3760 .PHONY: am__doit
cannam@140 3761 END
cannam@140 3762 # If we don't find an include directive, just comment out the code.
cannam@140 3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
cannam@140 3764 $as_echo_n "checking for style of include used by $am_make... " >&6; }
cannam@140 3765 am__include="#"
cannam@140 3766 am__quote=
cannam@140 3767 _am_result=none
cannam@140 3768 # First try GNU make style include.
cannam@140 3769 echo "include confinc" > confmf
cannam@140 3770 # Ignore all kinds of additional output from 'make'.
cannam@140 3771 case `$am_make -s -f confmf 2> /dev/null` in #(
cannam@140 3772 *the\ am__doit\ target*)
cannam@140 3773 am__include=include
cannam@140 3774 am__quote=
cannam@140 3775 _am_result=GNU
cannam@140 3776 ;;
cannam@140 3777 esac
cannam@140 3778 # Now try BSD make style include.
cannam@140 3779 if test "$am__include" = "#"; then
cannam@140 3780 echo '.include "confinc"' > confmf
cannam@140 3781 case `$am_make -s -f confmf 2> /dev/null` in #(
cannam@140 3782 *the\ am__doit\ target*)
cannam@140 3783 am__include=.include
cannam@140 3784 am__quote="\""
cannam@140 3785 _am_result=BSD
cannam@140 3786 ;;
cannam@140 3787 esac
cannam@140 3788 fi
cannam@140 3789
cannam@140 3790
cannam@140 3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
cannam@140 3792 $as_echo "$_am_result" >&6; }
cannam@140 3793 rm -f confinc confmf
cannam@140 3794
cannam@140 3795 # Check whether --enable-dependency-tracking was given.
cannam@140 3796 if test "${enable_dependency_tracking+set}" = set; then :
cannam@140 3797 enableval=$enable_dependency_tracking;
cannam@140 3798 fi
cannam@140 3799
cannam@140 3800 if test "x$enable_dependency_tracking" != xno; then
cannam@140 3801 am_depcomp="$ac_aux_dir/depcomp"
cannam@140 3802 AMDEPBACKSLASH='\'
cannam@140 3803 am__nodep='_no'
cannam@140 3804 fi
cannam@140 3805 if test "x$enable_dependency_tracking" != xno; then
cannam@140 3806 AMDEP_TRUE=
cannam@140 3807 AMDEP_FALSE='#'
cannam@140 3808 else
cannam@140 3809 AMDEP_TRUE='#'
cannam@140 3810 AMDEP_FALSE=
cannam@140 3811 fi
cannam@140 3812
cannam@140 3813
cannam@140 3814
cannam@140 3815 depcc="$CC" am_compiler_list=
cannam@140 3816
cannam@140 3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cannam@140 3818 $as_echo_n "checking dependency style of $depcc... " >&6; }
cannam@140 3819 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cannam@140 3820 $as_echo_n "(cached) " >&6
cannam@140 3821 else
cannam@140 3822 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
cannam@140 3823 # We make a subdir and do the tests there. Otherwise we can end up
cannam@140 3824 # making bogus files that we don't know about and never remove. For
cannam@140 3825 # instance it was reported that on HP-UX the gcc test will end up
cannam@140 3826 # making a dummy file named 'D' -- because '-MD' means "put the output
cannam@140 3827 # in D".
cannam@140 3828 rm -rf conftest.dir
cannam@140 3829 mkdir conftest.dir
cannam@140 3830 # Copy depcomp to subdir because otherwise we won't find it if we're
cannam@140 3831 # using a relative directory.
cannam@140 3832 cp "$am_depcomp" conftest.dir
cannam@140 3833 cd conftest.dir
cannam@140 3834 # We will build objects and dependencies in a subdirectory because
cannam@140 3835 # it helps to detect inapplicable dependency modes. For instance
cannam@140 3836 # both Tru64's cc and ICC support -MD to output dependencies as a
cannam@140 3837 # side effect of compilation, but ICC will put the dependencies in
cannam@140 3838 # the current directory while Tru64 will put them in the object
cannam@140 3839 # directory.
cannam@140 3840 mkdir sub
cannam@140 3841
cannam@140 3842 am_cv_CC_dependencies_compiler_type=none
cannam@140 3843 if test "$am_compiler_list" = ""; then
cannam@140 3844 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
cannam@140 3845 fi
cannam@140 3846 am__universal=false
cannam@140 3847 case " $depcc " in #(
cannam@140 3848 *\ -arch\ *\ -arch\ *) am__universal=true ;;
cannam@140 3849 esac
cannam@140 3850
cannam@140 3851 for depmode in $am_compiler_list; do
cannam@140 3852 # Setup a source with many dependencies, because some compilers
cannam@140 3853 # like to wrap large dependency lists on column 80 (with \), and
cannam@140 3854 # we should not choose a depcomp mode which is confused by this.
cannam@140 3855 #
cannam@140 3856 # We need to recreate these files for each test, as the compiler may
cannam@140 3857 # overwrite some of them when testing with obscure command lines.
cannam@140 3858 # This happens at least with the AIX C compiler.
cannam@140 3859 : > sub/conftest.c
cannam@140 3860 for i in 1 2 3 4 5 6; do
cannam@140 3861 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cannam@140 3862 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
cannam@140 3863 # Solaris 10 /bin/sh.
cannam@140 3864 echo '/* dummy */' > sub/conftst$i.h
cannam@140 3865 done
cannam@140 3866 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
cannam@140 3867
cannam@140 3868 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cannam@140 3869 # mode. It turns out that the SunPro C++ compiler does not properly
cannam@140 3870 # handle '-M -o', and we need to detect this. Also, some Intel
cannam@140 3871 # versions had trouble with output in subdirs.
cannam@140 3872 am__obj=sub/conftest.${OBJEXT-o}
cannam@140 3873 am__minus_obj="-o $am__obj"
cannam@140 3874 case $depmode in
cannam@140 3875 gcc)
cannam@140 3876 # This depmode causes a compiler race in universal mode.
cannam@140 3877 test "$am__universal" = false || continue
cannam@140 3878 ;;
cannam@140 3879 nosideeffect)
cannam@140 3880 # After this tag, mechanisms are not by side-effect, so they'll
cannam@140 3881 # only be used when explicitly requested.
cannam@140 3882 if test "x$enable_dependency_tracking" = xyes; then
cannam@140 3883 continue
cannam@140 3884 else
cannam@140 3885 break
cannam@140 3886 fi
cannam@140 3887 ;;
cannam@140 3888 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cannam@140 3889 # This compiler won't grok '-c -o', but also, the minuso test has
cannam@140 3890 # not run yet. These depmodes are late enough in the game, and
cannam@140 3891 # so weak that their functioning should not be impacted.
cannam@140 3892 am__obj=conftest.${OBJEXT-o}
cannam@140 3893 am__minus_obj=
cannam@140 3894 ;;
cannam@140 3895 none) break ;;
cannam@140 3896 esac
cannam@140 3897 if depmode=$depmode \
cannam@140 3898 source=sub/conftest.c object=$am__obj \
cannam@140 3899 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cannam@140 3900 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
cannam@140 3901 >/dev/null 2>conftest.err &&
cannam@140 3902 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
cannam@140 3903 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cannam@140 3904 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
cannam@140 3905 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
cannam@140 3906 # icc doesn't choke on unknown options, it will just issue warnings
cannam@140 3907 # or remarks (even with -Werror). So we grep stderr for any message
cannam@140 3908 # that says an option was ignored or not supported.
cannam@140 3909 # When given -MP, icc 7.0 and 7.1 complain thusly:
cannam@140 3910 # icc: Command line warning: ignoring option '-M'; no argument required
cannam@140 3911 # The diagnosis changed in icc 8.0:
cannam@140 3912 # icc: Command line remark: option '-MP' not supported
cannam@140 3913 if (grep 'ignoring option' conftest.err ||
cannam@140 3914 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
cannam@140 3915 am_cv_CC_dependencies_compiler_type=$depmode
cannam@140 3916 break
cannam@140 3917 fi
cannam@140 3918 fi
cannam@140 3919 done
cannam@140 3920
cannam@140 3921 cd ..
cannam@140 3922 rm -rf conftest.dir
cannam@140 3923 else
cannam@140 3924 am_cv_CC_dependencies_compiler_type=none
cannam@140 3925 fi
cannam@140 3926
cannam@140 3927 fi
cannam@140 3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cannam@140 3929 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
cannam@140 3930 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
cannam@140 3931
cannam@140 3932 if
cannam@140 3933 test "x$enable_dependency_tracking" != xno \
cannam@140 3934 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
cannam@140 3935 am__fastdepCC_TRUE=
cannam@140 3936 am__fastdepCC_FALSE='#'
cannam@140 3937 else
cannam@140 3938 am__fastdepCC_TRUE='#'
cannam@140 3939 am__fastdepCC_FALSE=
cannam@140 3940 fi
cannam@140 3941
cannam@140 3942
cannam@140 3943 ac_ext=cpp
cannam@140 3944 ac_cpp='$CXXCPP $CPPFLAGS'
cannam@140 3945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@140 3946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@140 3947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cannam@140 3948 if test -z "$CXX"; then
cannam@140 3949 if test -n "$CCC"; then
cannam@140 3950 CXX=$CCC
cannam@140 3951 else
cannam@140 3952 if test -n "$ac_tool_prefix"; then
cannam@140 3953 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
cannam@140 3954 do
cannam@140 3955 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@140 3956 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@140 3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 3958 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 3959 if ${ac_cv_prog_CXX+:} false; then :
cannam@140 3960 $as_echo_n "(cached) " >&6
cannam@140 3961 else
cannam@140 3962 if test -n "$CXX"; then
cannam@140 3963 ac_cv_prog_CXX="$CXX" # Let the user override the test.
cannam@140 3964 else
cannam@140 3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 3966 for as_dir in $PATH
cannam@140 3967 do
cannam@140 3968 IFS=$as_save_IFS
cannam@140 3969 test -z "$as_dir" && as_dir=.
cannam@140 3970 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 3971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 3972 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cannam@140 3973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 3974 break 2
cannam@140 3975 fi
cannam@140 3976 done
cannam@140 3977 done
cannam@140 3978 IFS=$as_save_IFS
cannam@140 3979
cannam@140 3980 fi
cannam@140 3981 fi
cannam@140 3982 CXX=$ac_cv_prog_CXX
cannam@140 3983 if test -n "$CXX"; then
cannam@140 3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cannam@140 3985 $as_echo "$CXX" >&6; }
cannam@140 3986 else
cannam@140 3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 3988 $as_echo "no" >&6; }
cannam@140 3989 fi
cannam@140 3990
cannam@140 3991
cannam@140 3992 test -n "$CXX" && break
cannam@140 3993 done
cannam@140 3994 fi
cannam@140 3995 if test -z "$CXX"; then
cannam@140 3996 ac_ct_CXX=$CXX
cannam@140 3997 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
cannam@140 3998 do
cannam@140 3999 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@140 4000 set dummy $ac_prog; ac_word=$2
cannam@140 4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 4002 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 4003 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cannam@140 4004 $as_echo_n "(cached) " >&6
cannam@140 4005 else
cannam@140 4006 if test -n "$ac_ct_CXX"; then
cannam@140 4007 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
cannam@140 4008 else
cannam@140 4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 4010 for as_dir in $PATH
cannam@140 4011 do
cannam@140 4012 IFS=$as_save_IFS
cannam@140 4013 test -z "$as_dir" && as_dir=.
cannam@140 4014 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 4015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 4016 ac_cv_prog_ac_ct_CXX="$ac_prog"
cannam@140 4017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 4018 break 2
cannam@140 4019 fi
cannam@140 4020 done
cannam@140 4021 done
cannam@140 4022 IFS=$as_save_IFS
cannam@140 4023
cannam@140 4024 fi
cannam@140 4025 fi
cannam@140 4026 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
cannam@140 4027 if test -n "$ac_ct_CXX"; then
cannam@140 4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cannam@140 4029 $as_echo "$ac_ct_CXX" >&6; }
cannam@140 4030 else
cannam@140 4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 4032 $as_echo "no" >&6; }
cannam@140 4033 fi
cannam@140 4034
cannam@140 4035
cannam@140 4036 test -n "$ac_ct_CXX" && break
cannam@140 4037 done
cannam@140 4038
cannam@140 4039 if test "x$ac_ct_CXX" = x; then
cannam@140 4040 CXX="g++"
cannam@140 4041 else
cannam@140 4042 case $cross_compiling:$ac_tool_warned in
cannam@140 4043 yes:)
cannam@140 4044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@140 4045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@140 4046 ac_tool_warned=yes ;;
cannam@140 4047 esac
cannam@140 4048 CXX=$ac_ct_CXX
cannam@140 4049 fi
cannam@140 4050 fi
cannam@140 4051
cannam@140 4052 fi
cannam@140 4053 fi
cannam@140 4054 # Provide some information about the compiler.
cannam@140 4055 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cannam@140 4056 set X $ac_compile
cannam@140 4057 ac_compiler=$2
cannam@140 4058 for ac_option in --version -v -V -qversion; do
cannam@140 4059 { { ac_try="$ac_compiler $ac_option >&5"
cannam@140 4060 case "(($ac_try" in
cannam@140 4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@140 4062 *) ac_try_echo=$ac_try;;
cannam@140 4063 esac
cannam@140 4064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@140 4065 $as_echo "$ac_try_echo"; } >&5
cannam@140 4066 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cannam@140 4067 ac_status=$?
cannam@140 4068 if test -s conftest.err; then
cannam@140 4069 sed '10a\
cannam@140 4070 ... rest of stderr output deleted ...
cannam@140 4071 10q' conftest.err >conftest.er1
cannam@140 4072 cat conftest.er1 >&5
cannam@140 4073 fi
cannam@140 4074 rm -f conftest.er1 conftest.err
cannam@140 4075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 4076 test $ac_status = 0; }
cannam@140 4077 done
cannam@140 4078
cannam@140 4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cannam@140 4080 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cannam@140 4081 if ${ac_cv_cxx_compiler_gnu+:} false; then :
cannam@140 4082 $as_echo_n "(cached) " >&6
cannam@140 4083 else
cannam@140 4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 4085 /* end confdefs.h. */
cannam@140 4086
cannam@140 4087 int
cannam@140 4088 main ()
cannam@140 4089 {
cannam@140 4090 #ifndef __GNUC__
cannam@140 4091 choke me
cannam@140 4092 #endif
cannam@140 4093
cannam@140 4094 ;
cannam@140 4095 return 0;
cannam@140 4096 }
cannam@140 4097 _ACEOF
cannam@140 4098 if ac_fn_cxx_try_compile "$LINENO"; then :
cannam@140 4099 ac_compiler_gnu=yes
cannam@140 4100 else
cannam@140 4101 ac_compiler_gnu=no
cannam@140 4102 fi
cannam@140 4103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@140 4104 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
cannam@140 4105
cannam@140 4106 fi
cannam@140 4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cannam@140 4108 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
cannam@140 4109 if test $ac_compiler_gnu = yes; then
cannam@140 4110 GXX=yes
cannam@140 4111 else
cannam@140 4112 GXX=
cannam@140 4113 fi
cannam@140 4114 ac_test_CXXFLAGS=${CXXFLAGS+set}
cannam@140 4115 ac_save_CXXFLAGS=$CXXFLAGS
cannam@140 4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cannam@140 4117 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
cannam@140 4118 if ${ac_cv_prog_cxx_g+:} false; then :
cannam@140 4119 $as_echo_n "(cached) " >&6
cannam@140 4120 else
cannam@140 4121 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
cannam@140 4122 ac_cxx_werror_flag=yes
cannam@140 4123 ac_cv_prog_cxx_g=no
cannam@140 4124 CXXFLAGS="-g"
cannam@140 4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 4126 /* end confdefs.h. */
cannam@140 4127
cannam@140 4128 int
cannam@140 4129 main ()
cannam@140 4130 {
cannam@140 4131
cannam@140 4132 ;
cannam@140 4133 return 0;
cannam@140 4134 }
cannam@140 4135 _ACEOF
cannam@140 4136 if ac_fn_cxx_try_compile "$LINENO"; then :
cannam@140 4137 ac_cv_prog_cxx_g=yes
cannam@140 4138 else
cannam@140 4139 CXXFLAGS=""
cannam@140 4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 4141 /* end confdefs.h. */
cannam@140 4142
cannam@140 4143 int
cannam@140 4144 main ()
cannam@140 4145 {
cannam@140 4146
cannam@140 4147 ;
cannam@140 4148 return 0;
cannam@140 4149 }
cannam@140 4150 _ACEOF
cannam@140 4151 if ac_fn_cxx_try_compile "$LINENO"; then :
cannam@140 4152
cannam@140 4153 else
cannam@140 4154 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cannam@140 4155 CXXFLAGS="-g"
cannam@140 4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 4157 /* end confdefs.h. */
cannam@140 4158
cannam@140 4159 int
cannam@140 4160 main ()
cannam@140 4161 {
cannam@140 4162
cannam@140 4163 ;
cannam@140 4164 return 0;
cannam@140 4165 }
cannam@140 4166 _ACEOF
cannam@140 4167 if ac_fn_cxx_try_compile "$LINENO"; then :
cannam@140 4168 ac_cv_prog_cxx_g=yes
cannam@140 4169 fi
cannam@140 4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@140 4171 fi
cannam@140 4172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@140 4173 fi
cannam@140 4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@140 4175 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cannam@140 4176 fi
cannam@140 4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cannam@140 4178 $as_echo "$ac_cv_prog_cxx_g" >&6; }
cannam@140 4179 if test "$ac_test_CXXFLAGS" = set; then
cannam@140 4180 CXXFLAGS=$ac_save_CXXFLAGS
cannam@140 4181 elif test $ac_cv_prog_cxx_g = yes; then
cannam@140 4182 if test "$GXX" = yes; then
cannam@140 4183 CXXFLAGS="-g -O2"
cannam@140 4184 else
cannam@140 4185 CXXFLAGS="-g"
cannam@140 4186 fi
cannam@140 4187 else
cannam@140 4188 if test "$GXX" = yes; then
cannam@140 4189 CXXFLAGS="-O2"
cannam@140 4190 else
cannam@140 4191 CXXFLAGS=
cannam@140 4192 fi
cannam@140 4193 fi
cannam@140 4194 ac_ext=c
cannam@140 4195 ac_cpp='$CPP $CPPFLAGS'
cannam@140 4196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@140 4197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@140 4198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@140 4199
cannam@140 4200 depcc="$CXX" am_compiler_list=
cannam@140 4201
cannam@140 4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cannam@140 4203 $as_echo_n "checking dependency style of $depcc... " >&6; }
cannam@140 4204 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cannam@140 4205 $as_echo_n "(cached) " >&6
cannam@140 4206 else
cannam@140 4207 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
cannam@140 4208 # We make a subdir and do the tests there. Otherwise we can end up
cannam@140 4209 # making bogus files that we don't know about and never remove. For
cannam@140 4210 # instance it was reported that on HP-UX the gcc test will end up
cannam@140 4211 # making a dummy file named 'D' -- because '-MD' means "put the output
cannam@140 4212 # in D".
cannam@140 4213 rm -rf conftest.dir
cannam@140 4214 mkdir conftest.dir
cannam@140 4215 # Copy depcomp to subdir because otherwise we won't find it if we're
cannam@140 4216 # using a relative directory.
cannam@140 4217 cp "$am_depcomp" conftest.dir
cannam@140 4218 cd conftest.dir
cannam@140 4219 # We will build objects and dependencies in a subdirectory because
cannam@140 4220 # it helps to detect inapplicable dependency modes. For instance
cannam@140 4221 # both Tru64's cc and ICC support -MD to output dependencies as a
cannam@140 4222 # side effect of compilation, but ICC will put the dependencies in
cannam@140 4223 # the current directory while Tru64 will put them in the object
cannam@140 4224 # directory.
cannam@140 4225 mkdir sub
cannam@140 4226
cannam@140 4227 am_cv_CXX_dependencies_compiler_type=none
cannam@140 4228 if test "$am_compiler_list" = ""; then
cannam@140 4229 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
cannam@140 4230 fi
cannam@140 4231 am__universal=false
cannam@140 4232 case " $depcc " in #(
cannam@140 4233 *\ -arch\ *\ -arch\ *) am__universal=true ;;
cannam@140 4234 esac
cannam@140 4235
cannam@140 4236 for depmode in $am_compiler_list; do
cannam@140 4237 # Setup a source with many dependencies, because some compilers
cannam@140 4238 # like to wrap large dependency lists on column 80 (with \), and
cannam@140 4239 # we should not choose a depcomp mode which is confused by this.
cannam@140 4240 #
cannam@140 4241 # We need to recreate these files for each test, as the compiler may
cannam@140 4242 # overwrite some of them when testing with obscure command lines.
cannam@140 4243 # This happens at least with the AIX C compiler.
cannam@140 4244 : > sub/conftest.c
cannam@140 4245 for i in 1 2 3 4 5 6; do
cannam@140 4246 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cannam@140 4247 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
cannam@140 4248 # Solaris 10 /bin/sh.
cannam@140 4249 echo '/* dummy */' > sub/conftst$i.h
cannam@140 4250 done
cannam@140 4251 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
cannam@140 4252
cannam@140 4253 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cannam@140 4254 # mode. It turns out that the SunPro C++ compiler does not properly
cannam@140 4255 # handle '-M -o', and we need to detect this. Also, some Intel
cannam@140 4256 # versions had trouble with output in subdirs.
cannam@140 4257 am__obj=sub/conftest.${OBJEXT-o}
cannam@140 4258 am__minus_obj="-o $am__obj"
cannam@140 4259 case $depmode in
cannam@140 4260 gcc)
cannam@140 4261 # This depmode causes a compiler race in universal mode.
cannam@140 4262 test "$am__universal" = false || continue
cannam@140 4263 ;;
cannam@140 4264 nosideeffect)
cannam@140 4265 # After this tag, mechanisms are not by side-effect, so they'll
cannam@140 4266 # only be used when explicitly requested.
cannam@140 4267 if test "x$enable_dependency_tracking" = xyes; then
cannam@140 4268 continue
cannam@140 4269 else
cannam@140 4270 break
cannam@140 4271 fi
cannam@140 4272 ;;
cannam@140 4273 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cannam@140 4274 # This compiler won't grok '-c -o', but also, the minuso test has
cannam@140 4275 # not run yet. These depmodes are late enough in the game, and
cannam@140 4276 # so weak that their functioning should not be impacted.
cannam@140 4277 am__obj=conftest.${OBJEXT-o}
cannam@140 4278 am__minus_obj=
cannam@140 4279 ;;
cannam@140 4280 none) break ;;
cannam@140 4281 esac
cannam@140 4282 if depmode=$depmode \
cannam@140 4283 source=sub/conftest.c object=$am__obj \
cannam@140 4284 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cannam@140 4285 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
cannam@140 4286 >/dev/null 2>conftest.err &&
cannam@140 4287 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
cannam@140 4288 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cannam@140 4289 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
cannam@140 4290 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
cannam@140 4291 # icc doesn't choke on unknown options, it will just issue warnings
cannam@140 4292 # or remarks (even with -Werror). So we grep stderr for any message
cannam@140 4293 # that says an option was ignored or not supported.
cannam@140 4294 # When given -MP, icc 7.0 and 7.1 complain thusly:
cannam@140 4295 # icc: Command line warning: ignoring option '-M'; no argument required
cannam@140 4296 # The diagnosis changed in icc 8.0:
cannam@140 4297 # icc: Command line remark: option '-MP' not supported
cannam@140 4298 if (grep 'ignoring option' conftest.err ||
cannam@140 4299 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
cannam@140 4300 am_cv_CXX_dependencies_compiler_type=$depmode
cannam@140 4301 break
cannam@140 4302 fi
cannam@140 4303 fi
cannam@140 4304 done
cannam@140 4305
cannam@140 4306 cd ..
cannam@140 4307 rm -rf conftest.dir
cannam@140 4308 else
cannam@140 4309 am_cv_CXX_dependencies_compiler_type=none
cannam@140 4310 fi
cannam@140 4311
cannam@140 4312 fi
cannam@140 4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cannam@140 4314 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
cannam@140 4315 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
cannam@140 4316
cannam@140 4317 if
cannam@140 4318 test "x$enable_dependency_tracking" != xno \
cannam@140 4319 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
cannam@140 4320 am__fastdepCXX_TRUE=
cannam@140 4321 am__fastdepCXX_FALSE='#'
cannam@140 4322 else
cannam@140 4323 am__fastdepCXX_TRUE='#'
cannam@140 4324 am__fastdepCXX_FALSE=
cannam@140 4325 fi
cannam@140 4326
cannam@140 4327
cannam@140 4328 # Make sure we can run config.sub.
cannam@140 4329 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cannam@140 4330 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cannam@140 4331
cannam@140 4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cannam@140 4333 $as_echo_n "checking build system type... " >&6; }
cannam@140 4334 if ${ac_cv_build+:} false; then :
cannam@140 4335 $as_echo_n "(cached) " >&6
cannam@140 4336 else
cannam@140 4337 ac_build_alias=$build_alias
cannam@140 4338 test "x$ac_build_alias" = x &&
cannam@140 4339 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
cannam@140 4340 test "x$ac_build_alias" = x &&
cannam@140 4341 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cannam@140 4342 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cannam@140 4343 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cannam@140 4344
cannam@140 4345 fi
cannam@140 4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cannam@140 4347 $as_echo "$ac_cv_build" >&6; }
cannam@140 4348 case $ac_cv_build in
cannam@140 4349 *-*-*) ;;
cannam@140 4350 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cannam@140 4351 esac
cannam@140 4352 build=$ac_cv_build
cannam@140 4353 ac_save_IFS=$IFS; IFS='-'
cannam@140 4354 set x $ac_cv_build
cannam@140 4355 shift
cannam@140 4356 build_cpu=$1
cannam@140 4357 build_vendor=$2
cannam@140 4358 shift; shift
cannam@140 4359 # Remember, the first character of IFS is used to create $*,
cannam@140 4360 # except with old shells:
cannam@140 4361 build_os=$*
cannam@140 4362 IFS=$ac_save_IFS
cannam@140 4363 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
cannam@140 4364
cannam@140 4365
cannam@140 4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cannam@140 4367 $as_echo_n "checking host system type... " >&6; }
cannam@140 4368 if ${ac_cv_host+:} false; then :
cannam@140 4369 $as_echo_n "(cached) " >&6
cannam@140 4370 else
cannam@140 4371 if test "x$host_alias" = x; then
cannam@140 4372 ac_cv_host=$ac_cv_build
cannam@140 4373 else
cannam@140 4374 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cannam@140 4375 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cannam@140 4376 fi
cannam@140 4377
cannam@140 4378 fi
cannam@140 4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cannam@140 4380 $as_echo "$ac_cv_host" >&6; }
cannam@140 4381 case $ac_cv_host in
cannam@140 4382 *-*-*) ;;
cannam@140 4383 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cannam@140 4384 esac
cannam@140 4385 host=$ac_cv_host
cannam@140 4386 ac_save_IFS=$IFS; IFS='-'
cannam@140 4387 set x $ac_cv_host
cannam@140 4388 shift
cannam@140 4389 host_cpu=$1
cannam@140 4390 host_vendor=$2
cannam@140 4391 shift; shift
cannam@140 4392 # Remember, the first character of IFS is used to create $*,
cannam@140 4393 # except with old shells:
cannam@140 4394 host_os=$*
cannam@140 4395 IFS=$ac_save_IFS
cannam@140 4396 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
cannam@140 4397
cannam@140 4398
cannam@140 4399 enable_win32_dll=yes
cannam@140 4400
cannam@140 4401 case $host in
cannam@140 4402 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cannam@140 4403 if test -n "$ac_tool_prefix"; then
cannam@140 4404 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
cannam@140 4405 set dummy ${ac_tool_prefix}as; ac_word=$2
cannam@140 4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 4407 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 4408 if ${ac_cv_prog_AS+:} false; then :
cannam@140 4409 $as_echo_n "(cached) " >&6
cannam@140 4410 else
cannam@140 4411 if test -n "$AS"; then
cannam@140 4412 ac_cv_prog_AS="$AS" # Let the user override the test.
cannam@140 4413 else
cannam@140 4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 4415 for as_dir in $PATH
cannam@140 4416 do
cannam@140 4417 IFS=$as_save_IFS
cannam@140 4418 test -z "$as_dir" && as_dir=.
cannam@140 4419 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 4420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 4421 ac_cv_prog_AS="${ac_tool_prefix}as"
cannam@140 4422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 4423 break 2
cannam@140 4424 fi
cannam@140 4425 done
cannam@140 4426 done
cannam@140 4427 IFS=$as_save_IFS
cannam@140 4428
cannam@140 4429 fi
cannam@140 4430 fi
cannam@140 4431 AS=$ac_cv_prog_AS
cannam@140 4432 if test -n "$AS"; then
cannam@140 4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cannam@140 4434 $as_echo "$AS" >&6; }
cannam@140 4435 else
cannam@140 4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 4437 $as_echo "no" >&6; }
cannam@140 4438 fi
cannam@140 4439
cannam@140 4440
cannam@140 4441 fi
cannam@140 4442 if test -z "$ac_cv_prog_AS"; then
cannam@140 4443 ac_ct_AS=$AS
cannam@140 4444 # Extract the first word of "as", so it can be a program name with args.
cannam@140 4445 set dummy as; ac_word=$2
cannam@140 4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 4447 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 4448 if ${ac_cv_prog_ac_ct_AS+:} false; then :
cannam@140 4449 $as_echo_n "(cached) " >&6
cannam@140 4450 else
cannam@140 4451 if test -n "$ac_ct_AS"; then
cannam@140 4452 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
cannam@140 4453 else
cannam@140 4454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 4455 for as_dir in $PATH
cannam@140 4456 do
cannam@140 4457 IFS=$as_save_IFS
cannam@140 4458 test -z "$as_dir" && as_dir=.
cannam@140 4459 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 4460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 4461 ac_cv_prog_ac_ct_AS="as"
cannam@140 4462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 4463 break 2
cannam@140 4464 fi
cannam@140 4465 done
cannam@140 4466 done
cannam@140 4467 IFS=$as_save_IFS
cannam@140 4468
cannam@140 4469 fi
cannam@140 4470 fi
cannam@140 4471 ac_ct_AS=$ac_cv_prog_ac_ct_AS
cannam@140 4472 if test -n "$ac_ct_AS"; then
cannam@140 4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cannam@140 4474 $as_echo "$ac_ct_AS" >&6; }
cannam@140 4475 else
cannam@140 4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 4477 $as_echo "no" >&6; }
cannam@140 4478 fi
cannam@140 4479
cannam@140 4480 if test "x$ac_ct_AS" = x; then
cannam@140 4481 AS="false"
cannam@140 4482 else
cannam@140 4483 case $cross_compiling:$ac_tool_warned in
cannam@140 4484 yes:)
cannam@140 4485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@140 4486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@140 4487 ac_tool_warned=yes ;;
cannam@140 4488 esac
cannam@140 4489 AS=$ac_ct_AS
cannam@140 4490 fi
cannam@140 4491 else
cannam@140 4492 AS="$ac_cv_prog_AS"
cannam@140 4493 fi
cannam@140 4494
cannam@140 4495 if test -n "$ac_tool_prefix"; then
cannam@140 4496 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
cannam@140 4497 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cannam@140 4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 4499 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 4500 if ${ac_cv_prog_DLLTOOL+:} false; then :
cannam@140 4501 $as_echo_n "(cached) " >&6
cannam@140 4502 else
cannam@140 4503 if test -n "$DLLTOOL"; then
cannam@140 4504 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
cannam@140 4505 else
cannam@140 4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 4507 for as_dir in $PATH
cannam@140 4508 do
cannam@140 4509 IFS=$as_save_IFS
cannam@140 4510 test -z "$as_dir" && as_dir=.
cannam@140 4511 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 4512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 4513 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cannam@140 4514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 4515 break 2
cannam@140 4516 fi
cannam@140 4517 done
cannam@140 4518 done
cannam@140 4519 IFS=$as_save_IFS
cannam@140 4520
cannam@140 4521 fi
cannam@140 4522 fi
cannam@140 4523 DLLTOOL=$ac_cv_prog_DLLTOOL
cannam@140 4524 if test -n "$DLLTOOL"; then
cannam@140 4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cannam@140 4526 $as_echo "$DLLTOOL" >&6; }
cannam@140 4527 else
cannam@140 4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 4529 $as_echo "no" >&6; }
cannam@140 4530 fi
cannam@140 4531
cannam@140 4532
cannam@140 4533 fi
cannam@140 4534 if test -z "$ac_cv_prog_DLLTOOL"; then
cannam@140 4535 ac_ct_DLLTOOL=$DLLTOOL
cannam@140 4536 # Extract the first word of "dlltool", so it can be a program name with args.
cannam@140 4537 set dummy dlltool; ac_word=$2
cannam@140 4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 4539 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 4540 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cannam@140 4541 $as_echo_n "(cached) " >&6
cannam@140 4542 else
cannam@140 4543 if test -n "$ac_ct_DLLTOOL"; then
cannam@140 4544 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
cannam@140 4545 else
cannam@140 4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 4547 for as_dir in $PATH
cannam@140 4548 do
cannam@140 4549 IFS=$as_save_IFS
cannam@140 4550 test -z "$as_dir" && as_dir=.
cannam@140 4551 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 4552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 4553 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cannam@140 4554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 4555 break 2
cannam@140 4556 fi
cannam@140 4557 done
cannam@140 4558 done
cannam@140 4559 IFS=$as_save_IFS
cannam@140 4560
cannam@140 4561 fi
cannam@140 4562 fi
cannam@140 4563 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
cannam@140 4564 if test -n "$ac_ct_DLLTOOL"; then
cannam@140 4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cannam@140 4566 $as_echo "$ac_ct_DLLTOOL" >&6; }
cannam@140 4567 else
cannam@140 4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 4569 $as_echo "no" >&6; }
cannam@140 4570 fi
cannam@140 4571
cannam@140 4572 if test "x$ac_ct_DLLTOOL" = x; then
cannam@140 4573 DLLTOOL="false"
cannam@140 4574 else
cannam@140 4575 case $cross_compiling:$ac_tool_warned in
cannam@140 4576 yes:)
cannam@140 4577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@140 4578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@140 4579 ac_tool_warned=yes ;;
cannam@140 4580 esac
cannam@140 4581 DLLTOOL=$ac_ct_DLLTOOL
cannam@140 4582 fi
cannam@140 4583 else
cannam@140 4584 DLLTOOL="$ac_cv_prog_DLLTOOL"
cannam@140 4585 fi
cannam@140 4586
cannam@140 4587 if test -n "$ac_tool_prefix"; then
cannam@140 4588 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
cannam@140 4589 set dummy ${ac_tool_prefix}objdump; ac_word=$2
cannam@140 4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 4591 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 4592 if ${ac_cv_prog_OBJDUMP+:} false; then :
cannam@140 4593 $as_echo_n "(cached) " >&6
cannam@140 4594 else
cannam@140 4595 if test -n "$OBJDUMP"; then
cannam@140 4596 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
cannam@140 4597 else
cannam@140 4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 4599 for as_dir in $PATH
cannam@140 4600 do
cannam@140 4601 IFS=$as_save_IFS
cannam@140 4602 test -z "$as_dir" && as_dir=.
cannam@140 4603 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 4604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 4605 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cannam@140 4606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 4607 break 2
cannam@140 4608 fi
cannam@140 4609 done
cannam@140 4610 done
cannam@140 4611 IFS=$as_save_IFS
cannam@140 4612
cannam@140 4613 fi
cannam@140 4614 fi
cannam@140 4615 OBJDUMP=$ac_cv_prog_OBJDUMP
cannam@140 4616 if test -n "$OBJDUMP"; then
cannam@140 4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cannam@140 4618 $as_echo "$OBJDUMP" >&6; }
cannam@140 4619 else
cannam@140 4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 4621 $as_echo "no" >&6; }
cannam@140 4622 fi
cannam@140 4623
cannam@140 4624
cannam@140 4625 fi
cannam@140 4626 if test -z "$ac_cv_prog_OBJDUMP"; then
cannam@140 4627 ac_ct_OBJDUMP=$OBJDUMP
cannam@140 4628 # Extract the first word of "objdump", so it can be a program name with args.
cannam@140 4629 set dummy objdump; ac_word=$2
cannam@140 4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 4631 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 4632 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cannam@140 4633 $as_echo_n "(cached) " >&6
cannam@140 4634 else
cannam@140 4635 if test -n "$ac_ct_OBJDUMP"; then
cannam@140 4636 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
cannam@140 4637 else
cannam@140 4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 4639 for as_dir in $PATH
cannam@140 4640 do
cannam@140 4641 IFS=$as_save_IFS
cannam@140 4642 test -z "$as_dir" && as_dir=.
cannam@140 4643 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 4644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 4645 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cannam@140 4646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 4647 break 2
cannam@140 4648 fi
cannam@140 4649 done
cannam@140 4650 done
cannam@140 4651 IFS=$as_save_IFS
cannam@140 4652
cannam@140 4653 fi
cannam@140 4654 fi
cannam@140 4655 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
cannam@140 4656 if test -n "$ac_ct_OBJDUMP"; then
cannam@140 4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cannam@140 4658 $as_echo "$ac_ct_OBJDUMP" >&6; }
cannam@140 4659 else
cannam@140 4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 4661 $as_echo "no" >&6; }
cannam@140 4662 fi
cannam@140 4663
cannam@140 4664 if test "x$ac_ct_OBJDUMP" = x; then
cannam@140 4665 OBJDUMP="false"
cannam@140 4666 else
cannam@140 4667 case $cross_compiling:$ac_tool_warned in
cannam@140 4668 yes:)
cannam@140 4669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@140 4670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@140 4671 ac_tool_warned=yes ;;
cannam@140 4672 esac
cannam@140 4673 OBJDUMP=$ac_ct_OBJDUMP
cannam@140 4674 fi
cannam@140 4675 else
cannam@140 4676 OBJDUMP="$ac_cv_prog_OBJDUMP"
cannam@140 4677 fi
cannam@140 4678
cannam@140 4679 ;;
cannam@140 4680 esac
cannam@140 4681
cannam@140 4682 test -z "$AS" && AS=as
cannam@140 4683
cannam@140 4684
cannam@140 4685
cannam@140 4686
cannam@140 4687
cannam@140 4688 test -z "$DLLTOOL" && DLLTOOL=dlltool
cannam@140 4689
cannam@140 4690
cannam@140 4691
cannam@140 4692
cannam@140 4693
cannam@140 4694 test -z "$OBJDUMP" && OBJDUMP=objdump
cannam@140 4695
cannam@140 4696
cannam@140 4697
cannam@140 4698
cannam@140 4699
cannam@140 4700
cannam@140 4701
cannam@140 4702 case `pwd` in
cannam@140 4703 *\ * | *\ *)
cannam@140 4704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cannam@140 4705 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
cannam@140 4706 esac
cannam@140 4707
cannam@140 4708
cannam@140 4709
cannam@140 4710 macro_version='2.4.2'
cannam@140 4711 macro_revision='1.3337'
cannam@140 4712
cannam@140 4713
cannam@140 4714
cannam@140 4715
cannam@140 4716
cannam@140 4717
cannam@140 4718
cannam@140 4719
cannam@140 4720
cannam@140 4721
cannam@140 4722
cannam@140 4723
cannam@140 4724
cannam@140 4725 ltmain="$ac_aux_dir/ltmain.sh"
cannam@140 4726
cannam@140 4727 # Backslashify metacharacters that are still active within
cannam@140 4728 # double-quoted strings.
cannam@140 4729 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
cannam@140 4730
cannam@140 4731 # Same as above, but do not quote variable references.
cannam@140 4732 double_quote_subst='s/\(["`\\]\)/\\\1/g'
cannam@140 4733
cannam@140 4734 # Sed substitution to delay expansion of an escaped shell variable in a
cannam@140 4735 # double_quote_subst'ed string.
cannam@140 4736 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
cannam@140 4737
cannam@140 4738 # Sed substitution to delay expansion of an escaped single quote.
cannam@140 4739 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
cannam@140 4740
cannam@140 4741 # Sed substitution to avoid accidental globbing in evaled expressions
cannam@140 4742 no_glob_subst='s/\*/\\\*/g'
cannam@140 4743
cannam@140 4744 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@140 4745 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
cannam@140 4746 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
cannam@140 4747
cannam@140 4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
cannam@140 4749 $as_echo_n "checking how to print strings... " >&6; }
cannam@140 4750 # Test print first, because it will be a builtin if present.
cannam@140 4751 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cannam@140 4752 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
cannam@140 4753 ECHO='print -r --'
cannam@140 4754 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
cannam@140 4755 ECHO='printf %s\n'
cannam@140 4756 else
cannam@140 4757 # Use this function as a fallback that always works.
cannam@140 4758 func_fallback_echo ()
cannam@140 4759 {
cannam@140 4760 eval 'cat <<_LTECHO_EOF
cannam@140 4761 $1
cannam@140 4762 _LTECHO_EOF'
cannam@140 4763 }
cannam@140 4764 ECHO='func_fallback_echo'
cannam@140 4765 fi
cannam@140 4766
cannam@140 4767 # func_echo_all arg...
cannam@140 4768 # Invoke $ECHO with all args, space-separated.
cannam@140 4769 func_echo_all ()
cannam@140 4770 {
cannam@140 4771 $ECHO ""
cannam@140 4772 }
cannam@140 4773
cannam@140 4774 case "$ECHO" in
cannam@140 4775 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
cannam@140 4776 $as_echo "printf" >&6; } ;;
cannam@140 4777 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
cannam@140 4778 $as_echo "print -r" >&6; } ;;
cannam@140 4779 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
cannam@140 4780 $as_echo "cat" >&6; } ;;
cannam@140 4781 esac
cannam@140 4782
cannam@140 4783
cannam@140 4784
cannam@140 4785
cannam@140 4786
cannam@140 4787
cannam@140 4788
cannam@140 4789
cannam@140 4790
cannam@140 4791
cannam@140 4792
cannam@140 4793
cannam@140 4794
cannam@140 4795
cannam@140 4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cannam@140 4797 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
cannam@140 4798 if ${ac_cv_path_SED+:} false; then :
cannam@140 4799 $as_echo_n "(cached) " >&6
cannam@140 4800 else
cannam@140 4801 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
cannam@140 4802 for ac_i in 1 2 3 4 5 6 7; do
cannam@140 4803 ac_script="$ac_script$as_nl$ac_script"
cannam@140 4804 done
cannam@140 4805 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cannam@140 4806 { ac_script=; unset ac_script;}
cannam@140 4807 if test -z "$SED"; then
cannam@140 4808 ac_path_SED_found=false
cannam@140 4809 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@140 4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 4811 for as_dir in $PATH
cannam@140 4812 do
cannam@140 4813 IFS=$as_save_IFS
cannam@140 4814 test -z "$as_dir" && as_dir=.
cannam@140 4815 for ac_prog in sed gsed; do
cannam@140 4816 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 4817 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cannam@140 4818 as_fn_executable_p "$ac_path_SED" || continue
cannam@140 4819 # Check for GNU ac_path_SED and select it if it is found.
cannam@140 4820 # Check for GNU $ac_path_SED
cannam@140 4821 case `"$ac_path_SED" --version 2>&1` in
cannam@140 4822 *GNU*)
cannam@140 4823 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
cannam@140 4824 *)
cannam@140 4825 ac_count=0
cannam@140 4826 $as_echo_n 0123456789 >"conftest.in"
cannam@140 4827 while :
cannam@140 4828 do
cannam@140 4829 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@140 4830 mv "conftest.tmp" "conftest.in"
cannam@140 4831 cp "conftest.in" "conftest.nl"
cannam@140 4832 $as_echo '' >> "conftest.nl"
cannam@140 4833 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@140 4834 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@140 4835 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@140 4836 if test $ac_count -gt ${ac_path_SED_max-0}; then
cannam@140 4837 # Best one so far, save it but keep looking for a better one
cannam@140 4838 ac_cv_path_SED="$ac_path_SED"
cannam@140 4839 ac_path_SED_max=$ac_count
cannam@140 4840 fi
cannam@140 4841 # 10*(2^10) chars as input seems more than enough
cannam@140 4842 test $ac_count -gt 10 && break
cannam@140 4843 done
cannam@140 4844 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@140 4845 esac
cannam@140 4846
cannam@140 4847 $ac_path_SED_found && break 3
cannam@140 4848 done
cannam@140 4849 done
cannam@140 4850 done
cannam@140 4851 IFS=$as_save_IFS
cannam@140 4852 if test -z "$ac_cv_path_SED"; then
cannam@140 4853 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cannam@140 4854 fi
cannam@140 4855 else
cannam@140 4856 ac_cv_path_SED=$SED
cannam@140 4857 fi
cannam@140 4858
cannam@140 4859 fi
cannam@140 4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cannam@140 4861 $as_echo "$ac_cv_path_SED" >&6; }
cannam@140 4862 SED="$ac_cv_path_SED"
cannam@140 4863 rm -f conftest.sed
cannam@140 4864
cannam@140 4865 test -z "$SED" && SED=sed
cannam@140 4866 Xsed="$SED -e 1s/^X//"
cannam@140 4867
cannam@140 4868
cannam@140 4869
cannam@140 4870
cannam@140 4871
cannam@140 4872
cannam@140 4873
cannam@140 4874
cannam@140 4875
cannam@140 4876
cannam@140 4877
cannam@140 4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
cannam@140 4879 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cannam@140 4880 if ${ac_cv_path_GREP+:} false; then :
cannam@140 4881 $as_echo_n "(cached) " >&6
cannam@140 4882 else
cannam@140 4883 if test -z "$GREP"; then
cannam@140 4884 ac_path_GREP_found=false
cannam@140 4885 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@140 4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 4887 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
cannam@140 4888 do
cannam@140 4889 IFS=$as_save_IFS
cannam@140 4890 test -z "$as_dir" && as_dir=.
cannam@140 4891 for ac_prog in grep ggrep; do
cannam@140 4892 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 4893 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cannam@140 4894 as_fn_executable_p "$ac_path_GREP" || continue
cannam@140 4895 # Check for GNU ac_path_GREP and select it if it is found.
cannam@140 4896 # Check for GNU $ac_path_GREP
cannam@140 4897 case `"$ac_path_GREP" --version 2>&1` in
cannam@140 4898 *GNU*)
cannam@140 4899 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
cannam@140 4900 *)
cannam@140 4901 ac_count=0
cannam@140 4902 $as_echo_n 0123456789 >"conftest.in"
cannam@140 4903 while :
cannam@140 4904 do
cannam@140 4905 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@140 4906 mv "conftest.tmp" "conftest.in"
cannam@140 4907 cp "conftest.in" "conftest.nl"
cannam@140 4908 $as_echo 'GREP' >> "conftest.nl"
cannam@140 4909 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@140 4910 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@140 4911 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@140 4912 if test $ac_count -gt ${ac_path_GREP_max-0}; then
cannam@140 4913 # Best one so far, save it but keep looking for a better one
cannam@140 4914 ac_cv_path_GREP="$ac_path_GREP"
cannam@140 4915 ac_path_GREP_max=$ac_count
cannam@140 4916 fi
cannam@140 4917 # 10*(2^10) chars as input seems more than enough
cannam@140 4918 test $ac_count -gt 10 && break
cannam@140 4919 done
cannam@140 4920 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@140 4921 esac
cannam@140 4922
cannam@140 4923 $ac_path_GREP_found && break 3
cannam@140 4924 done
cannam@140 4925 done
cannam@140 4926 done
cannam@140 4927 IFS=$as_save_IFS
cannam@140 4928 if test -z "$ac_cv_path_GREP"; then
cannam@140 4929 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cannam@140 4930 fi
cannam@140 4931 else
cannam@140 4932 ac_cv_path_GREP=$GREP
cannam@140 4933 fi
cannam@140 4934
cannam@140 4935 fi
cannam@140 4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
cannam@140 4937 $as_echo "$ac_cv_path_GREP" >&6; }
cannam@140 4938 GREP="$ac_cv_path_GREP"
cannam@140 4939
cannam@140 4940
cannam@140 4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
cannam@140 4942 $as_echo_n "checking for egrep... " >&6; }
cannam@140 4943 if ${ac_cv_path_EGREP+:} false; then :
cannam@140 4944 $as_echo_n "(cached) " >&6
cannam@140 4945 else
cannam@140 4946 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
cannam@140 4947 then ac_cv_path_EGREP="$GREP -E"
cannam@140 4948 else
cannam@140 4949 if test -z "$EGREP"; then
cannam@140 4950 ac_path_EGREP_found=false
cannam@140 4951 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@140 4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 4953 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
cannam@140 4954 do
cannam@140 4955 IFS=$as_save_IFS
cannam@140 4956 test -z "$as_dir" && as_dir=.
cannam@140 4957 for ac_prog in egrep; do
cannam@140 4958 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 4959 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cannam@140 4960 as_fn_executable_p "$ac_path_EGREP" || continue
cannam@140 4961 # Check for GNU ac_path_EGREP and select it if it is found.
cannam@140 4962 # Check for GNU $ac_path_EGREP
cannam@140 4963 case `"$ac_path_EGREP" --version 2>&1` in
cannam@140 4964 *GNU*)
cannam@140 4965 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
cannam@140 4966 *)
cannam@140 4967 ac_count=0
cannam@140 4968 $as_echo_n 0123456789 >"conftest.in"
cannam@140 4969 while :
cannam@140 4970 do
cannam@140 4971 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@140 4972 mv "conftest.tmp" "conftest.in"
cannam@140 4973 cp "conftest.in" "conftest.nl"
cannam@140 4974 $as_echo 'EGREP' >> "conftest.nl"
cannam@140 4975 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@140 4976 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@140 4977 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@140 4978 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
cannam@140 4979 # Best one so far, save it but keep looking for a better one
cannam@140 4980 ac_cv_path_EGREP="$ac_path_EGREP"
cannam@140 4981 ac_path_EGREP_max=$ac_count
cannam@140 4982 fi
cannam@140 4983 # 10*(2^10) chars as input seems more than enough
cannam@140 4984 test $ac_count -gt 10 && break
cannam@140 4985 done
cannam@140 4986 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@140 4987 esac
cannam@140 4988
cannam@140 4989 $ac_path_EGREP_found && break 3
cannam@140 4990 done
cannam@140 4991 done
cannam@140 4992 done
cannam@140 4993 IFS=$as_save_IFS
cannam@140 4994 if test -z "$ac_cv_path_EGREP"; then
cannam@140 4995 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cannam@140 4996 fi
cannam@140 4997 else
cannam@140 4998 ac_cv_path_EGREP=$EGREP
cannam@140 4999 fi
cannam@140 5000
cannam@140 5001 fi
cannam@140 5002 fi
cannam@140 5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
cannam@140 5004 $as_echo "$ac_cv_path_EGREP" >&6; }
cannam@140 5005 EGREP="$ac_cv_path_EGREP"
cannam@140 5006
cannam@140 5007
cannam@140 5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cannam@140 5009 $as_echo_n "checking for fgrep... " >&6; }
cannam@140 5010 if ${ac_cv_path_FGREP+:} false; then :
cannam@140 5011 $as_echo_n "(cached) " >&6
cannam@140 5012 else
cannam@140 5013 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
cannam@140 5014 then ac_cv_path_FGREP="$GREP -F"
cannam@140 5015 else
cannam@140 5016 if test -z "$FGREP"; then
cannam@140 5017 ac_path_FGREP_found=false
cannam@140 5018 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@140 5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 5020 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
cannam@140 5021 do
cannam@140 5022 IFS=$as_save_IFS
cannam@140 5023 test -z "$as_dir" && as_dir=.
cannam@140 5024 for ac_prog in fgrep; do
cannam@140 5025 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 5026 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cannam@140 5027 as_fn_executable_p "$ac_path_FGREP" || continue
cannam@140 5028 # Check for GNU ac_path_FGREP and select it if it is found.
cannam@140 5029 # Check for GNU $ac_path_FGREP
cannam@140 5030 case `"$ac_path_FGREP" --version 2>&1` in
cannam@140 5031 *GNU*)
cannam@140 5032 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
cannam@140 5033 *)
cannam@140 5034 ac_count=0
cannam@140 5035 $as_echo_n 0123456789 >"conftest.in"
cannam@140 5036 while :
cannam@140 5037 do
cannam@140 5038 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@140 5039 mv "conftest.tmp" "conftest.in"
cannam@140 5040 cp "conftest.in" "conftest.nl"
cannam@140 5041 $as_echo 'FGREP' >> "conftest.nl"
cannam@140 5042 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@140 5043 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@140 5044 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@140 5045 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
cannam@140 5046 # Best one so far, save it but keep looking for a better one
cannam@140 5047 ac_cv_path_FGREP="$ac_path_FGREP"
cannam@140 5048 ac_path_FGREP_max=$ac_count
cannam@140 5049 fi
cannam@140 5050 # 10*(2^10) chars as input seems more than enough
cannam@140 5051 test $ac_count -gt 10 && break
cannam@140 5052 done
cannam@140 5053 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@140 5054 esac
cannam@140 5055
cannam@140 5056 $ac_path_FGREP_found && break 3
cannam@140 5057 done
cannam@140 5058 done
cannam@140 5059 done
cannam@140 5060 IFS=$as_save_IFS
cannam@140 5061 if test -z "$ac_cv_path_FGREP"; then
cannam@140 5062 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cannam@140 5063 fi
cannam@140 5064 else
cannam@140 5065 ac_cv_path_FGREP=$FGREP
cannam@140 5066 fi
cannam@140 5067
cannam@140 5068 fi
cannam@140 5069 fi
cannam@140 5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cannam@140 5071 $as_echo "$ac_cv_path_FGREP" >&6; }
cannam@140 5072 FGREP="$ac_cv_path_FGREP"
cannam@140 5073
cannam@140 5074
cannam@140 5075 test -z "$GREP" && GREP=grep
cannam@140 5076
cannam@140 5077
cannam@140 5078
cannam@140 5079
cannam@140 5080
cannam@140 5081
cannam@140 5082
cannam@140 5083
cannam@140 5084
cannam@140 5085
cannam@140 5086
cannam@140 5087
cannam@140 5088
cannam@140 5089
cannam@140 5090
cannam@140 5091
cannam@140 5092
cannam@140 5093
cannam@140 5094
cannam@140 5095 # Check whether --with-gnu-ld was given.
cannam@140 5096 if test "${with_gnu_ld+set}" = set; then :
cannam@140 5097 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
cannam@140 5098 else
cannam@140 5099 with_gnu_ld=no
cannam@140 5100 fi
cannam@140 5101
cannam@140 5102 ac_prog=ld
cannam@140 5103 if test "$GCC" = yes; then
cannam@140 5104 # Check if gcc -print-prog-name=ld gives a path.
cannam@140 5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cannam@140 5106 $as_echo_n "checking for ld used by $CC... " >&6; }
cannam@140 5107 case $host in
cannam@140 5108 *-*-mingw*)
cannam@140 5109 # gcc leaves a trailing carriage return which upsets mingw
cannam@140 5110 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
cannam@140 5111 *)
cannam@140 5112 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
cannam@140 5113 esac
cannam@140 5114 case $ac_prog in
cannam@140 5115 # Accept absolute paths.
cannam@140 5116 [\\/]* | ?:[\\/]*)
cannam@140 5117 re_direlt='/[^/][^/]*/\.\./'
cannam@140 5118 # Canonicalize the pathname of ld
cannam@140 5119 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
cannam@140 5120 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
cannam@140 5121 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cannam@140 5122 done
cannam@140 5123 test -z "$LD" && LD="$ac_prog"
cannam@140 5124 ;;
cannam@140 5125 "")
cannam@140 5126 # If it fails, then pretend we aren't using GCC.
cannam@140 5127 ac_prog=ld
cannam@140 5128 ;;
cannam@140 5129 *)
cannam@140 5130 # If it is relative, then search for the first ld in PATH.
cannam@140 5131 with_gnu_ld=unknown
cannam@140 5132 ;;
cannam@140 5133 esac
cannam@140 5134 elif test "$with_gnu_ld" = yes; then
cannam@140 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cannam@140 5136 $as_echo_n "checking for GNU ld... " >&6; }
cannam@140 5137 else
cannam@140 5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cannam@140 5139 $as_echo_n "checking for non-GNU ld... " >&6; }
cannam@140 5140 fi
cannam@140 5141 if ${lt_cv_path_LD+:} false; then :
cannam@140 5142 $as_echo_n "(cached) " >&6
cannam@140 5143 else
cannam@140 5144 if test -z "$LD"; then
cannam@140 5145 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@140 5146 for ac_dir in $PATH; do
cannam@140 5147 IFS="$lt_save_ifs"
cannam@140 5148 test -z "$ac_dir" && ac_dir=.
cannam@140 5149 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
cannam@140 5150 lt_cv_path_LD="$ac_dir/$ac_prog"
cannam@140 5151 # Check to see if the program is GNU ld. I'd rather use --version,
cannam@140 5152 # but apparently some variants of GNU ld only accept -v.
cannam@140 5153 # Break only if it was the GNU/non-GNU ld that we prefer.
cannam@140 5154 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
cannam@140 5155 *GNU* | *'with BFD'*)
cannam@140 5156 test "$with_gnu_ld" != no && break
cannam@140 5157 ;;
cannam@140 5158 *)
cannam@140 5159 test "$with_gnu_ld" != yes && break
cannam@140 5160 ;;
cannam@140 5161 esac
cannam@140 5162 fi
cannam@140 5163 done
cannam@140 5164 IFS="$lt_save_ifs"
cannam@140 5165 else
cannam@140 5166 lt_cv_path_LD="$LD" # Let the user override the test with a path.
cannam@140 5167 fi
cannam@140 5168 fi
cannam@140 5169
cannam@140 5170 LD="$lt_cv_path_LD"
cannam@140 5171 if test -n "$LD"; then
cannam@140 5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cannam@140 5173 $as_echo "$LD" >&6; }
cannam@140 5174 else
cannam@140 5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 5176 $as_echo "no" >&6; }
cannam@140 5177 fi
cannam@140 5178 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cannam@140 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cannam@140 5180 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cannam@140 5181 if ${lt_cv_prog_gnu_ld+:} false; then :
cannam@140 5182 $as_echo_n "(cached) " >&6
cannam@140 5183 else
cannam@140 5184 # I'd rather use --version here, but apparently some GNU lds only accept -v.
cannam@140 5185 case `$LD -v 2>&1 </dev/null` in
cannam@140 5186 *GNU* | *'with BFD'*)
cannam@140 5187 lt_cv_prog_gnu_ld=yes
cannam@140 5188 ;;
cannam@140 5189 *)
cannam@140 5190 lt_cv_prog_gnu_ld=no
cannam@140 5191 ;;
cannam@140 5192 esac
cannam@140 5193 fi
cannam@140 5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cannam@140 5195 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
cannam@140 5196 with_gnu_ld=$lt_cv_prog_gnu_ld
cannam@140 5197
cannam@140 5198
cannam@140 5199
cannam@140 5200
cannam@140 5201
cannam@140 5202
cannam@140 5203
cannam@140 5204
cannam@140 5205
cannam@140 5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cannam@140 5207 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cannam@140 5208 if ${lt_cv_path_NM+:} false; then :
cannam@140 5209 $as_echo_n "(cached) " >&6
cannam@140 5210 else
cannam@140 5211 if test -n "$NM"; then
cannam@140 5212 # Let the user override the test.
cannam@140 5213 lt_cv_path_NM="$NM"
cannam@140 5214 else
cannam@140 5215 lt_nm_to_check="${ac_tool_prefix}nm"
cannam@140 5216 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
cannam@140 5217 lt_nm_to_check="$lt_nm_to_check nm"
cannam@140 5218 fi
cannam@140 5219 for lt_tmp_nm in $lt_nm_to_check; do
cannam@140 5220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@140 5221 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
cannam@140 5222 IFS="$lt_save_ifs"
cannam@140 5223 test -z "$ac_dir" && ac_dir=.
cannam@140 5224 tmp_nm="$ac_dir/$lt_tmp_nm"
cannam@140 5225 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
cannam@140 5226 # Check to see if the nm accepts a BSD-compat flag.
cannam@140 5227 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
cannam@140 5228 # nm: unknown option "B" ignored
cannam@140 5229 # Tru64's nm complains that /dev/null is an invalid object file
cannam@140 5230 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
cannam@140 5231 */dev/null* | *'Invalid file or object type'*)
cannam@140 5232 lt_cv_path_NM="$tmp_nm -B"
cannam@140 5233 break
cannam@140 5234 ;;
cannam@140 5235 *)
cannam@140 5236 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
cannam@140 5237 */dev/null*)
cannam@140 5238 lt_cv_path_NM="$tmp_nm -p"
cannam@140 5239 break
cannam@140 5240 ;;
cannam@140 5241 *)
cannam@140 5242 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
cannam@140 5243 continue # so that we can try to find one that supports BSD flags
cannam@140 5244 ;;
cannam@140 5245 esac
cannam@140 5246 ;;
cannam@140 5247 esac
cannam@140 5248 fi
cannam@140 5249 done
cannam@140 5250 IFS="$lt_save_ifs"
cannam@140 5251 done
cannam@140 5252 : ${lt_cv_path_NM=no}
cannam@140 5253 fi
cannam@140 5254 fi
cannam@140 5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cannam@140 5256 $as_echo "$lt_cv_path_NM" >&6; }
cannam@140 5257 if test "$lt_cv_path_NM" != "no"; then
cannam@140 5258 NM="$lt_cv_path_NM"
cannam@140 5259 else
cannam@140 5260 # Didn't find any BSD compatible name lister, look for dumpbin.
cannam@140 5261 if test -n "$DUMPBIN"; then :
cannam@140 5262 # Let the user override the test.
cannam@140 5263 else
cannam@140 5264 if test -n "$ac_tool_prefix"; then
cannam@140 5265 for ac_prog in dumpbin "link -dump"
cannam@140 5266 do
cannam@140 5267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@140 5268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@140 5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 5270 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 5271 if ${ac_cv_prog_DUMPBIN+:} false; then :
cannam@140 5272 $as_echo_n "(cached) " >&6
cannam@140 5273 else
cannam@140 5274 if test -n "$DUMPBIN"; then
cannam@140 5275 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
cannam@140 5276 else
cannam@140 5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 5278 for as_dir in $PATH
cannam@140 5279 do
cannam@140 5280 IFS=$as_save_IFS
cannam@140 5281 test -z "$as_dir" && as_dir=.
cannam@140 5282 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 5283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 5284 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cannam@140 5285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 5286 break 2
cannam@140 5287 fi
cannam@140 5288 done
cannam@140 5289 done
cannam@140 5290 IFS=$as_save_IFS
cannam@140 5291
cannam@140 5292 fi
cannam@140 5293 fi
cannam@140 5294 DUMPBIN=$ac_cv_prog_DUMPBIN
cannam@140 5295 if test -n "$DUMPBIN"; then
cannam@140 5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cannam@140 5297 $as_echo "$DUMPBIN" >&6; }
cannam@140 5298 else
cannam@140 5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 5300 $as_echo "no" >&6; }
cannam@140 5301 fi
cannam@140 5302
cannam@140 5303
cannam@140 5304 test -n "$DUMPBIN" && break
cannam@140 5305 done
cannam@140 5306 fi
cannam@140 5307 if test -z "$DUMPBIN"; then
cannam@140 5308 ac_ct_DUMPBIN=$DUMPBIN
cannam@140 5309 for ac_prog in dumpbin "link -dump"
cannam@140 5310 do
cannam@140 5311 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@140 5312 set dummy $ac_prog; ac_word=$2
cannam@140 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 5314 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 5315 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cannam@140 5316 $as_echo_n "(cached) " >&6
cannam@140 5317 else
cannam@140 5318 if test -n "$ac_ct_DUMPBIN"; then
cannam@140 5319 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
cannam@140 5320 else
cannam@140 5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 5322 for as_dir in $PATH
cannam@140 5323 do
cannam@140 5324 IFS=$as_save_IFS
cannam@140 5325 test -z "$as_dir" && as_dir=.
cannam@140 5326 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 5327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 5328 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cannam@140 5329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 5330 break 2
cannam@140 5331 fi
cannam@140 5332 done
cannam@140 5333 done
cannam@140 5334 IFS=$as_save_IFS
cannam@140 5335
cannam@140 5336 fi
cannam@140 5337 fi
cannam@140 5338 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
cannam@140 5339 if test -n "$ac_ct_DUMPBIN"; then
cannam@140 5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cannam@140 5341 $as_echo "$ac_ct_DUMPBIN" >&6; }
cannam@140 5342 else
cannam@140 5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 5344 $as_echo "no" >&6; }
cannam@140 5345 fi
cannam@140 5346
cannam@140 5347
cannam@140 5348 test -n "$ac_ct_DUMPBIN" && break
cannam@140 5349 done
cannam@140 5350
cannam@140 5351 if test "x$ac_ct_DUMPBIN" = x; then
cannam@140 5352 DUMPBIN=":"
cannam@140 5353 else
cannam@140 5354 case $cross_compiling:$ac_tool_warned in
cannam@140 5355 yes:)
cannam@140 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@140 5357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@140 5358 ac_tool_warned=yes ;;
cannam@140 5359 esac
cannam@140 5360 DUMPBIN=$ac_ct_DUMPBIN
cannam@140 5361 fi
cannam@140 5362 fi
cannam@140 5363
cannam@140 5364 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
cannam@140 5365 *COFF*)
cannam@140 5366 DUMPBIN="$DUMPBIN -symbols"
cannam@140 5367 ;;
cannam@140 5368 *)
cannam@140 5369 DUMPBIN=:
cannam@140 5370 ;;
cannam@140 5371 esac
cannam@140 5372 fi
cannam@140 5373
cannam@140 5374 if test "$DUMPBIN" != ":"; then
cannam@140 5375 NM="$DUMPBIN"
cannam@140 5376 fi
cannam@140 5377 fi
cannam@140 5378 test -z "$NM" && NM=nm
cannam@140 5379
cannam@140 5380
cannam@140 5381
cannam@140 5382
cannam@140 5383
cannam@140 5384
cannam@140 5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cannam@140 5386 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
cannam@140 5387 if ${lt_cv_nm_interface+:} false; then :
cannam@140 5388 $as_echo_n "(cached) " >&6
cannam@140 5389 else
cannam@140 5390 lt_cv_nm_interface="BSD nm"
cannam@140 5391 echo "int some_variable = 0;" > conftest.$ac_ext
cannam@140 5392 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cannam@140 5393 (eval "$ac_compile" 2>conftest.err)
cannam@140 5394 cat conftest.err >&5
cannam@140 5395 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cannam@140 5396 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
cannam@140 5397 cat conftest.err >&5
cannam@140 5398 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cannam@140 5399 cat conftest.out >&5
cannam@140 5400 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
cannam@140 5401 lt_cv_nm_interface="MS dumpbin"
cannam@140 5402 fi
cannam@140 5403 rm -f conftest*
cannam@140 5404 fi
cannam@140 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cannam@140 5406 $as_echo "$lt_cv_nm_interface" >&6; }
cannam@140 5407
cannam@140 5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cannam@140 5409 $as_echo_n "checking whether ln -s works... " >&6; }
cannam@140 5410 LN_S=$as_ln_s
cannam@140 5411 if test "$LN_S" = "ln -s"; then
cannam@140 5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@140 5413 $as_echo "yes" >&6; }
cannam@140 5414 else
cannam@140 5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cannam@140 5416 $as_echo "no, using $LN_S" >&6; }
cannam@140 5417 fi
cannam@140 5418
cannam@140 5419 # find the maximum length of command line arguments
cannam@140 5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cannam@140 5421 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
cannam@140 5422 if ${lt_cv_sys_max_cmd_len+:} false; then :
cannam@140 5423 $as_echo_n "(cached) " >&6
cannam@140 5424 else
cannam@140 5425 i=0
cannam@140 5426 teststring="ABCD"
cannam@140 5427
cannam@140 5428 case $build_os in
cannam@140 5429 msdosdjgpp*)
cannam@140 5430 # On DJGPP, this test can blow up pretty badly due to problems in libc
cannam@140 5431 # (any single argument exceeding 2000 bytes causes a buffer overrun
cannam@140 5432 # during glob expansion). Even if it were fixed, the result of this
cannam@140 5433 # check would be larger than it should be.
cannam@140 5434 lt_cv_sys_max_cmd_len=12288; # 12K is about right
cannam@140 5435 ;;
cannam@140 5436
cannam@140 5437 gnu*)
cannam@140 5438 # Under GNU Hurd, this test is not required because there is
cannam@140 5439 # no limit to the length of command line arguments.
cannam@140 5440 # Libtool will interpret -1 as no limit whatsoever
cannam@140 5441 lt_cv_sys_max_cmd_len=-1;
cannam@140 5442 ;;
cannam@140 5443
cannam@140 5444 cygwin* | mingw* | cegcc*)
cannam@140 5445 # On Win9x/ME, this test blows up -- it succeeds, but takes
cannam@140 5446 # about 5 minutes as the teststring grows exponentially.
cannam@140 5447 # Worse, since 9x/ME are not pre-emptively multitasking,
cannam@140 5448 # you end up with a "frozen" computer, even though with patience
cannam@140 5449 # the test eventually succeeds (with a max line length of 256k).
cannam@140 5450 # Instead, let's just punt: use the minimum linelength reported by
cannam@140 5451 # all of the supported platforms: 8192 (on NT/2K/XP).
cannam@140 5452 lt_cv_sys_max_cmd_len=8192;
cannam@140 5453 ;;
cannam@140 5454
cannam@140 5455 mint*)
cannam@140 5456 # On MiNT this can take a long time and run out of memory.
cannam@140 5457 lt_cv_sys_max_cmd_len=8192;
cannam@140 5458 ;;
cannam@140 5459
cannam@140 5460 amigaos*)
cannam@140 5461 # On AmigaOS with pdksh, this test takes hours, literally.
cannam@140 5462 # So we just punt and use a minimum line length of 8192.
cannam@140 5463 lt_cv_sys_max_cmd_len=8192;
cannam@140 5464 ;;
cannam@140 5465
cannam@140 5466 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
cannam@140 5467 # This has been around since 386BSD, at least. Likely further.
cannam@140 5468 if test -x /sbin/sysctl; then
cannam@140 5469 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
cannam@140 5470 elif test -x /usr/sbin/sysctl; then
cannam@140 5471 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
cannam@140 5472 else
cannam@140 5473 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cannam@140 5474 fi
cannam@140 5475 # And add a safety zone
cannam@140 5476 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
cannam@140 5477 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
cannam@140 5478 ;;
cannam@140 5479
cannam@140 5480 interix*)
cannam@140 5481 # We know the value 262144 and hardcode it with a safety zone (like BSD)
cannam@140 5482 lt_cv_sys_max_cmd_len=196608
cannam@140 5483 ;;
cannam@140 5484
cannam@140 5485 os2*)
cannam@140 5486 # The test takes a long time on OS/2.
cannam@140 5487 lt_cv_sys_max_cmd_len=8192
cannam@140 5488 ;;
cannam@140 5489
cannam@140 5490 osf*)
cannam@140 5491 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
cannam@140 5492 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
cannam@140 5493 # nice to cause kernel panics so lets avoid the loop below.
cannam@140 5494 # First set a reasonable default.
cannam@140 5495 lt_cv_sys_max_cmd_len=16384
cannam@140 5496 #
cannam@140 5497 if test -x /sbin/sysconfig; then
cannam@140 5498 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
cannam@140 5499 *1*) lt_cv_sys_max_cmd_len=-1 ;;
cannam@140 5500 esac
cannam@140 5501 fi
cannam@140 5502 ;;
cannam@140 5503 sco3.2v5*)
cannam@140 5504 lt_cv_sys_max_cmd_len=102400
cannam@140 5505 ;;
cannam@140 5506 sysv5* | sco5v6* | sysv4.2uw2*)
cannam@140 5507 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
cannam@140 5508 if test -n "$kargmax"; then
cannam@140 5509 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
cannam@140 5510 else
cannam@140 5511 lt_cv_sys_max_cmd_len=32768
cannam@140 5512 fi
cannam@140 5513 ;;
cannam@140 5514 *)
cannam@140 5515 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
cannam@140 5516 if test -n "$lt_cv_sys_max_cmd_len" && \
cannam@140 5517 test undefined != "$lt_cv_sys_max_cmd_len"; then
cannam@140 5518 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
cannam@140 5519 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
cannam@140 5520 else
cannam@140 5521 # Make teststring a little bigger before we do anything with it.
cannam@140 5522 # a 1K string should be a reasonable start.
cannam@140 5523 for i in 1 2 3 4 5 6 7 8 ; do
cannam@140 5524 teststring=$teststring$teststring
cannam@140 5525 done
cannam@140 5526 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
cannam@140 5527 # If test is not a shell built-in, we'll probably end up computing a
cannam@140 5528 # maximum length that is only half of the actual maximum length, but
cannam@140 5529 # we can't tell.
cannam@140 5530 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cannam@140 5531 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cannam@140 5532 test $i != 17 # 1/2 MB should be enough
cannam@140 5533 do
cannam@140 5534 i=`expr $i + 1`
cannam@140 5535 teststring=$teststring$teststring
cannam@140 5536 done
cannam@140 5537 # Only check the string length outside the loop.
cannam@140 5538 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
cannam@140 5539 teststring=
cannam@140 5540 # Add a significant safety factor because C++ compilers can tack on
cannam@140 5541 # massive amounts of additional arguments before passing them to the
cannam@140 5542 # linker. It appears as though 1/2 is a usable value.
cannam@140 5543 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
cannam@140 5544 fi
cannam@140 5545 ;;
cannam@140 5546 esac
cannam@140 5547
cannam@140 5548 fi
cannam@140 5549
cannam@140 5550 if test -n $lt_cv_sys_max_cmd_len ; then
cannam@140 5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cannam@140 5552 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
cannam@140 5553 else
cannam@140 5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cannam@140 5555 $as_echo "none" >&6; }
cannam@140 5556 fi
cannam@140 5557 max_cmd_len=$lt_cv_sys_max_cmd_len
cannam@140 5558
cannam@140 5559
cannam@140 5560
cannam@140 5561
cannam@140 5562
cannam@140 5563
cannam@140 5564 : ${CP="cp -f"}
cannam@140 5565 : ${MV="mv -f"}
cannam@140 5566 : ${RM="rm -f"}
cannam@140 5567
cannam@140 5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cannam@140 5569 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
cannam@140 5570 # Try some XSI features
cannam@140 5571 xsi_shell=no
cannam@140 5572 ( _lt_dummy="a/b/c"
cannam@140 5573 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
cannam@140 5574 = c,a/b,b/c, \
cannam@140 5575 && eval 'test $(( 1 + 1 )) -eq 2 \
cannam@140 5576 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
cannam@140 5577 && xsi_shell=yes
cannam@140 5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cannam@140 5579 $as_echo "$xsi_shell" >&6; }
cannam@140 5580
cannam@140 5581
cannam@140 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cannam@140 5583 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
cannam@140 5584 lt_shell_append=no
cannam@140 5585 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
cannam@140 5586 >/dev/null 2>&1 \
cannam@140 5587 && lt_shell_append=yes
cannam@140 5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cannam@140 5589 $as_echo "$lt_shell_append" >&6; }
cannam@140 5590
cannam@140 5591
cannam@140 5592 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
cannam@140 5593 lt_unset=unset
cannam@140 5594 else
cannam@140 5595 lt_unset=false
cannam@140 5596 fi
cannam@140 5597
cannam@140 5598
cannam@140 5599
cannam@140 5600
cannam@140 5601
cannam@140 5602 # test EBCDIC or ASCII
cannam@140 5603 case `echo X|tr X '\101'` in
cannam@140 5604 A) # ASCII based system
cannam@140 5605 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
cannam@140 5606 lt_SP2NL='tr \040 \012'
cannam@140 5607 lt_NL2SP='tr \015\012 \040\040'
cannam@140 5608 ;;
cannam@140 5609 *) # EBCDIC based system
cannam@140 5610 lt_SP2NL='tr \100 \n'
cannam@140 5611 lt_NL2SP='tr \r\n \100\100'
cannam@140 5612 ;;
cannam@140 5613 esac
cannam@140 5614
cannam@140 5615
cannam@140 5616
cannam@140 5617
cannam@140 5618
cannam@140 5619
cannam@140 5620
cannam@140 5621
cannam@140 5622
cannam@140 5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
cannam@140 5624 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
cannam@140 5625 if ${lt_cv_to_host_file_cmd+:} false; then :
cannam@140 5626 $as_echo_n "(cached) " >&6
cannam@140 5627 else
cannam@140 5628 case $host in
cannam@140 5629 *-*-mingw* )
cannam@140 5630 case $build in
cannam@140 5631 *-*-mingw* ) # actually msys
cannam@140 5632 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
cannam@140 5633 ;;
cannam@140 5634 *-*-cygwin* )
cannam@140 5635 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
cannam@140 5636 ;;
cannam@140 5637 * ) # otherwise, assume *nix
cannam@140 5638 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
cannam@140 5639 ;;
cannam@140 5640 esac
cannam@140 5641 ;;
cannam@140 5642 *-*-cygwin* )
cannam@140 5643 case $build in
cannam@140 5644 *-*-mingw* ) # actually msys
cannam@140 5645 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
cannam@140 5646 ;;
cannam@140 5647 *-*-cygwin* )
cannam@140 5648 lt_cv_to_host_file_cmd=func_convert_file_noop
cannam@140 5649 ;;
cannam@140 5650 * ) # otherwise, assume *nix
cannam@140 5651 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
cannam@140 5652 ;;
cannam@140 5653 esac
cannam@140 5654 ;;
cannam@140 5655 * ) # unhandled hosts (and "normal" native builds)
cannam@140 5656 lt_cv_to_host_file_cmd=func_convert_file_noop
cannam@140 5657 ;;
cannam@140 5658 esac
cannam@140 5659
cannam@140 5660 fi
cannam@140 5661
cannam@140 5662 to_host_file_cmd=$lt_cv_to_host_file_cmd
cannam@140 5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
cannam@140 5664 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
cannam@140 5665
cannam@140 5666
cannam@140 5667
cannam@140 5668
cannam@140 5669
cannam@140 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
cannam@140 5671 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
cannam@140 5672 if ${lt_cv_to_tool_file_cmd+:} false; then :
cannam@140 5673 $as_echo_n "(cached) " >&6
cannam@140 5674 else
cannam@140 5675 #assume ordinary cross tools, or native build.
cannam@140 5676 lt_cv_to_tool_file_cmd=func_convert_file_noop
cannam@140 5677 case $host in
cannam@140 5678 *-*-mingw* )
cannam@140 5679 case $build in
cannam@140 5680 *-*-mingw* ) # actually msys
cannam@140 5681 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
cannam@140 5682 ;;
cannam@140 5683 esac
cannam@140 5684 ;;
cannam@140 5685 esac
cannam@140 5686
cannam@140 5687 fi
cannam@140 5688
cannam@140 5689 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
cannam@140 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
cannam@140 5691 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
cannam@140 5692
cannam@140 5693
cannam@140 5694
cannam@140 5695
cannam@140 5696
cannam@140 5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cannam@140 5698 $as_echo_n "checking for $LD option to reload object files... " >&6; }
cannam@140 5699 if ${lt_cv_ld_reload_flag+:} false; then :
cannam@140 5700 $as_echo_n "(cached) " >&6
cannam@140 5701 else
cannam@140 5702 lt_cv_ld_reload_flag='-r'
cannam@140 5703 fi
cannam@140 5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cannam@140 5705 $as_echo "$lt_cv_ld_reload_flag" >&6; }
cannam@140 5706 reload_flag=$lt_cv_ld_reload_flag
cannam@140 5707 case $reload_flag in
cannam@140 5708 "" | " "*) ;;
cannam@140 5709 *) reload_flag=" $reload_flag" ;;
cannam@140 5710 esac
cannam@140 5711 reload_cmds='$LD$reload_flag -o $output$reload_objs'
cannam@140 5712 case $host_os in
cannam@140 5713 cygwin* | mingw* | pw32* | cegcc*)
cannam@140 5714 if test "$GCC" != yes; then
cannam@140 5715 reload_cmds=false
cannam@140 5716 fi
cannam@140 5717 ;;
cannam@140 5718 darwin*)
cannam@140 5719 if test "$GCC" = yes; then
cannam@140 5720 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
cannam@140 5721 else
cannam@140 5722 reload_cmds='$LD$reload_flag -o $output$reload_objs'
cannam@140 5723 fi
cannam@140 5724 ;;
cannam@140 5725 esac
cannam@140 5726
cannam@140 5727
cannam@140 5728
cannam@140 5729
cannam@140 5730
cannam@140 5731
cannam@140 5732
cannam@140 5733
cannam@140 5734
cannam@140 5735 if test -n "$ac_tool_prefix"; then
cannam@140 5736 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
cannam@140 5737 set dummy ${ac_tool_prefix}objdump; ac_word=$2
cannam@140 5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 5739 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 5740 if ${ac_cv_prog_OBJDUMP+:} false; then :
cannam@140 5741 $as_echo_n "(cached) " >&6
cannam@140 5742 else
cannam@140 5743 if test -n "$OBJDUMP"; then
cannam@140 5744 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
cannam@140 5745 else
cannam@140 5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 5747 for as_dir in $PATH
cannam@140 5748 do
cannam@140 5749 IFS=$as_save_IFS
cannam@140 5750 test -z "$as_dir" && as_dir=.
cannam@140 5751 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 5752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 5753 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cannam@140 5754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 5755 break 2
cannam@140 5756 fi
cannam@140 5757 done
cannam@140 5758 done
cannam@140 5759 IFS=$as_save_IFS
cannam@140 5760
cannam@140 5761 fi
cannam@140 5762 fi
cannam@140 5763 OBJDUMP=$ac_cv_prog_OBJDUMP
cannam@140 5764 if test -n "$OBJDUMP"; then
cannam@140 5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cannam@140 5766 $as_echo "$OBJDUMP" >&6; }
cannam@140 5767 else
cannam@140 5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 5769 $as_echo "no" >&6; }
cannam@140 5770 fi
cannam@140 5771
cannam@140 5772
cannam@140 5773 fi
cannam@140 5774 if test -z "$ac_cv_prog_OBJDUMP"; then
cannam@140 5775 ac_ct_OBJDUMP=$OBJDUMP
cannam@140 5776 # Extract the first word of "objdump", so it can be a program name with args.
cannam@140 5777 set dummy objdump; ac_word=$2
cannam@140 5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 5779 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 5780 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cannam@140 5781 $as_echo_n "(cached) " >&6
cannam@140 5782 else
cannam@140 5783 if test -n "$ac_ct_OBJDUMP"; then
cannam@140 5784 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
cannam@140 5785 else
cannam@140 5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 5787 for as_dir in $PATH
cannam@140 5788 do
cannam@140 5789 IFS=$as_save_IFS
cannam@140 5790 test -z "$as_dir" && as_dir=.
cannam@140 5791 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 5792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 5793 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cannam@140 5794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 5795 break 2
cannam@140 5796 fi
cannam@140 5797 done
cannam@140 5798 done
cannam@140 5799 IFS=$as_save_IFS
cannam@140 5800
cannam@140 5801 fi
cannam@140 5802 fi
cannam@140 5803 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
cannam@140 5804 if test -n "$ac_ct_OBJDUMP"; then
cannam@140 5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cannam@140 5806 $as_echo "$ac_ct_OBJDUMP" >&6; }
cannam@140 5807 else
cannam@140 5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 5809 $as_echo "no" >&6; }
cannam@140 5810 fi
cannam@140 5811
cannam@140 5812 if test "x$ac_ct_OBJDUMP" = x; then
cannam@140 5813 OBJDUMP="false"
cannam@140 5814 else
cannam@140 5815 case $cross_compiling:$ac_tool_warned in
cannam@140 5816 yes:)
cannam@140 5817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@140 5818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@140 5819 ac_tool_warned=yes ;;
cannam@140 5820 esac
cannam@140 5821 OBJDUMP=$ac_ct_OBJDUMP
cannam@140 5822 fi
cannam@140 5823 else
cannam@140 5824 OBJDUMP="$ac_cv_prog_OBJDUMP"
cannam@140 5825 fi
cannam@140 5826
cannam@140 5827 test -z "$OBJDUMP" && OBJDUMP=objdump
cannam@140 5828
cannam@140 5829
cannam@140 5830
cannam@140 5831
cannam@140 5832
cannam@140 5833
cannam@140 5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cannam@140 5835 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
cannam@140 5836 if ${lt_cv_deplibs_check_method+:} false; then :
cannam@140 5837 $as_echo_n "(cached) " >&6
cannam@140 5838 else
cannam@140 5839 lt_cv_file_magic_cmd='$MAGIC_CMD'
cannam@140 5840 lt_cv_file_magic_test_file=
cannam@140 5841 lt_cv_deplibs_check_method='unknown'
cannam@140 5842 # Need to set the preceding variable on all platforms that support
cannam@140 5843 # interlibrary dependencies.
cannam@140 5844 # 'none' -- dependencies not supported.
cannam@140 5845 # `unknown' -- same as none, but documents that we really don't know.
cannam@140 5846 # 'pass_all' -- all dependencies passed with no checks.
cannam@140 5847 # 'test_compile' -- check by making test program.
cannam@140 5848 # 'file_magic [[regex]]' -- check by looking for files in library path
cannam@140 5849 # which responds to the $file_magic_cmd with a given extended regex.
cannam@140 5850 # If you have `file' or equivalent on your system and you're not sure
cannam@140 5851 # whether `pass_all' will *always* work, you probably want this one.
cannam@140 5852
cannam@140 5853 case $host_os in
cannam@140 5854 aix[4-9]*)
cannam@140 5855 lt_cv_deplibs_check_method=pass_all
cannam@140 5856 ;;
cannam@140 5857
cannam@140 5858 beos*)
cannam@140 5859 lt_cv_deplibs_check_method=pass_all
cannam@140 5860 ;;
cannam@140 5861
cannam@140 5862 bsdi[45]*)
cannam@140 5863 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
cannam@140 5864 lt_cv_file_magic_cmd='/usr/bin/file -L'
cannam@140 5865 lt_cv_file_magic_test_file=/shlib/libc.so
cannam@140 5866 ;;
cannam@140 5867
cannam@140 5868 cygwin*)
cannam@140 5869 # func_win32_libid is a shell function defined in ltmain.sh
cannam@140 5870 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
cannam@140 5871 lt_cv_file_magic_cmd='func_win32_libid'
cannam@140 5872 ;;
cannam@140 5873
cannam@140 5874 mingw* | pw32*)
cannam@140 5875 # Base MSYS/MinGW do not provide the 'file' command needed by
cannam@140 5876 # func_win32_libid shell function, so use a weaker test based on 'objdump',
cannam@140 5877 # unless we find 'file', for example because we are cross-compiling.
cannam@140 5878 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
cannam@140 5879 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cannam@140 5880 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
cannam@140 5881 lt_cv_file_magic_cmd='func_win32_libid'
cannam@140 5882 else
cannam@140 5883 # Keep this pattern in sync with the one in func_win32_libid.
cannam@140 5884 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
cannam@140 5885 lt_cv_file_magic_cmd='$OBJDUMP -f'
cannam@140 5886 fi
cannam@140 5887 ;;
cannam@140 5888
cannam@140 5889 cegcc*)
cannam@140 5890 # use the weaker test based on 'objdump'. See mingw*.
cannam@140 5891 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
cannam@140 5892 lt_cv_file_magic_cmd='$OBJDUMP -f'
cannam@140 5893 ;;
cannam@140 5894
cannam@140 5895 darwin* | rhapsody*)
cannam@140 5896 lt_cv_deplibs_check_method=pass_all
cannam@140 5897 ;;
cannam@140 5898
cannam@140 5899 freebsd* | dragonfly*)
cannam@140 5900 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
cannam@140 5901 case $host_cpu in
cannam@140 5902 i*86 )
cannam@140 5903 # Not sure whether the presence of OpenBSD here was a mistake.
cannam@140 5904 # Let's accept both of them until this is cleared up.
cannam@140 5905 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
cannam@140 5906 lt_cv_file_magic_cmd=/usr/bin/file
cannam@140 5907 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
cannam@140 5908 ;;
cannam@140 5909 esac
cannam@140 5910 else
cannam@140 5911 lt_cv_deplibs_check_method=pass_all
cannam@140 5912 fi
cannam@140 5913 ;;
cannam@140 5914
cannam@140 5915 haiku*)
cannam@140 5916 lt_cv_deplibs_check_method=pass_all
cannam@140 5917 ;;
cannam@140 5918
cannam@140 5919 hpux10.20* | hpux11*)
cannam@140 5920 lt_cv_file_magic_cmd=/usr/bin/file
cannam@140 5921 case $host_cpu in
cannam@140 5922 ia64*)
cannam@140 5923 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
cannam@140 5924 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
cannam@140 5925 ;;
cannam@140 5926 hppa*64*)
cannam@140 5927 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@140 5928 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
cannam@140 5929 ;;
cannam@140 5930 *)
cannam@140 5931 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
cannam@140 5932 lt_cv_file_magic_test_file=/usr/lib/libc.sl
cannam@140 5933 ;;
cannam@140 5934 esac
cannam@140 5935 ;;
cannam@140 5936
cannam@140 5937 interix[3-9]*)
cannam@140 5938 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
cannam@140 5939 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
cannam@140 5940 ;;
cannam@140 5941
cannam@140 5942 irix5* | irix6* | nonstopux*)
cannam@140 5943 case $LD in
cannam@140 5944 *-32|*"-32 ") libmagic=32-bit;;
cannam@140 5945 *-n32|*"-n32 ") libmagic=N32;;
cannam@140 5946 *-64|*"-64 ") libmagic=64-bit;;
cannam@140 5947 *) libmagic=never-match;;
cannam@140 5948 esac
cannam@140 5949 lt_cv_deplibs_check_method=pass_all
cannam@140 5950 ;;
cannam@140 5951
cannam@140 5952 # This must be glibc/ELF.
cannam@140 5953 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cannam@140 5954 lt_cv_deplibs_check_method=pass_all
cannam@140 5955 ;;
cannam@140 5956
cannam@140 5957 netbsd* | netbsdelf*-gnu)
cannam@140 5958 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
cannam@140 5959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cannam@140 5960 else
cannam@140 5961 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cannam@140 5962 fi
cannam@140 5963 ;;
cannam@140 5964
cannam@140 5965 newos6*)
cannam@140 5966 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
cannam@140 5967 lt_cv_file_magic_cmd=/usr/bin/file
cannam@140 5968 lt_cv_file_magic_test_file=/usr/lib/libnls.so
cannam@140 5969 ;;
cannam@140 5970
cannam@140 5971 *nto* | *qnx*)
cannam@140 5972 lt_cv_deplibs_check_method=pass_all
cannam@140 5973 ;;
cannam@140 5974
cannam@140 5975 openbsd*)
cannam@140 5976 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@140 5977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
cannam@140 5978 else
cannam@140 5979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cannam@140 5980 fi
cannam@140 5981 ;;
cannam@140 5982
cannam@140 5983 osf3* | osf4* | osf5*)
cannam@140 5984 lt_cv_deplibs_check_method=pass_all
cannam@140 5985 ;;
cannam@140 5986
cannam@140 5987 rdos*)
cannam@140 5988 lt_cv_deplibs_check_method=pass_all
cannam@140 5989 ;;
cannam@140 5990
cannam@140 5991 solaris*)
cannam@140 5992 lt_cv_deplibs_check_method=pass_all
cannam@140 5993 ;;
cannam@140 5994
cannam@140 5995 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
cannam@140 5996 lt_cv_deplibs_check_method=pass_all
cannam@140 5997 ;;
cannam@140 5998
cannam@140 5999 sysv4 | sysv4.3*)
cannam@140 6000 case $host_vendor in
cannam@140 6001 motorola)
cannam@140 6002 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@140 6003 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
cannam@140 6004 ;;
cannam@140 6005 ncr)
cannam@140 6006 lt_cv_deplibs_check_method=pass_all
cannam@140 6007 ;;
cannam@140 6008 sequent)
cannam@140 6009 lt_cv_file_magic_cmd='/bin/file'
cannam@140 6010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
cannam@140 6011 ;;
cannam@140 6012 sni)
cannam@140 6013 lt_cv_file_magic_cmd='/bin/file'
cannam@140 6014 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
cannam@140 6015 lt_cv_file_magic_test_file=/lib/libc.so
cannam@140 6016 ;;
cannam@140 6017 siemens)
cannam@140 6018 lt_cv_deplibs_check_method=pass_all
cannam@140 6019 ;;
cannam@140 6020 pc)
cannam@140 6021 lt_cv_deplibs_check_method=pass_all
cannam@140 6022 ;;
cannam@140 6023 esac
cannam@140 6024 ;;
cannam@140 6025
cannam@140 6026 tpf*)
cannam@140 6027 lt_cv_deplibs_check_method=pass_all
cannam@140 6028 ;;
cannam@140 6029 esac
cannam@140 6030
cannam@140 6031 fi
cannam@140 6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cannam@140 6033 $as_echo "$lt_cv_deplibs_check_method" >&6; }
cannam@140 6034
cannam@140 6035 file_magic_glob=
cannam@140 6036 want_nocaseglob=no
cannam@140 6037 if test "$build" = "$host"; then
cannam@140 6038 case $host_os in
cannam@140 6039 mingw* | pw32*)
cannam@140 6040 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
cannam@140 6041 want_nocaseglob=yes
cannam@140 6042 else
cannam@140 6043 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
cannam@140 6044 fi
cannam@140 6045 ;;
cannam@140 6046 esac
cannam@140 6047 fi
cannam@140 6048
cannam@140 6049 file_magic_cmd=$lt_cv_file_magic_cmd
cannam@140 6050 deplibs_check_method=$lt_cv_deplibs_check_method
cannam@140 6051 test -z "$deplibs_check_method" && deplibs_check_method=unknown
cannam@140 6052
cannam@140 6053
cannam@140 6054
cannam@140 6055
cannam@140 6056
cannam@140 6057
cannam@140 6058
cannam@140 6059
cannam@140 6060
cannam@140 6061
cannam@140 6062
cannam@140 6063
cannam@140 6064
cannam@140 6065
cannam@140 6066
cannam@140 6067
cannam@140 6068
cannam@140 6069
cannam@140 6070
cannam@140 6071
cannam@140 6072
cannam@140 6073
cannam@140 6074 if test -n "$ac_tool_prefix"; then
cannam@140 6075 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
cannam@140 6076 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cannam@140 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 6078 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 6079 if ${ac_cv_prog_DLLTOOL+:} false; then :
cannam@140 6080 $as_echo_n "(cached) " >&6
cannam@140 6081 else
cannam@140 6082 if test -n "$DLLTOOL"; then
cannam@140 6083 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
cannam@140 6084 else
cannam@140 6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 6086 for as_dir in $PATH
cannam@140 6087 do
cannam@140 6088 IFS=$as_save_IFS
cannam@140 6089 test -z "$as_dir" && as_dir=.
cannam@140 6090 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 6091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 6092 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cannam@140 6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 6094 break 2
cannam@140 6095 fi
cannam@140 6096 done
cannam@140 6097 done
cannam@140 6098 IFS=$as_save_IFS
cannam@140 6099
cannam@140 6100 fi
cannam@140 6101 fi
cannam@140 6102 DLLTOOL=$ac_cv_prog_DLLTOOL
cannam@140 6103 if test -n "$DLLTOOL"; then
cannam@140 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cannam@140 6105 $as_echo "$DLLTOOL" >&6; }
cannam@140 6106 else
cannam@140 6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 6108 $as_echo "no" >&6; }
cannam@140 6109 fi
cannam@140 6110
cannam@140 6111
cannam@140 6112 fi
cannam@140 6113 if test -z "$ac_cv_prog_DLLTOOL"; then
cannam@140 6114 ac_ct_DLLTOOL=$DLLTOOL
cannam@140 6115 # Extract the first word of "dlltool", so it can be a program name with args.
cannam@140 6116 set dummy dlltool; ac_word=$2
cannam@140 6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 6118 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 6119 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cannam@140 6120 $as_echo_n "(cached) " >&6
cannam@140 6121 else
cannam@140 6122 if test -n "$ac_ct_DLLTOOL"; then
cannam@140 6123 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
cannam@140 6124 else
cannam@140 6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 6126 for as_dir in $PATH
cannam@140 6127 do
cannam@140 6128 IFS=$as_save_IFS
cannam@140 6129 test -z "$as_dir" && as_dir=.
cannam@140 6130 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 6131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 6132 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cannam@140 6133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 6134 break 2
cannam@140 6135 fi
cannam@140 6136 done
cannam@140 6137 done
cannam@140 6138 IFS=$as_save_IFS
cannam@140 6139
cannam@140 6140 fi
cannam@140 6141 fi
cannam@140 6142 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
cannam@140 6143 if test -n "$ac_ct_DLLTOOL"; then
cannam@140 6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cannam@140 6145 $as_echo "$ac_ct_DLLTOOL" >&6; }
cannam@140 6146 else
cannam@140 6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 6148 $as_echo "no" >&6; }
cannam@140 6149 fi
cannam@140 6150
cannam@140 6151 if test "x$ac_ct_DLLTOOL" = x; then
cannam@140 6152 DLLTOOL="false"
cannam@140 6153 else
cannam@140 6154 case $cross_compiling:$ac_tool_warned in
cannam@140 6155 yes:)
cannam@140 6156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@140 6157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@140 6158 ac_tool_warned=yes ;;
cannam@140 6159 esac
cannam@140 6160 DLLTOOL=$ac_ct_DLLTOOL
cannam@140 6161 fi
cannam@140 6162 else
cannam@140 6163 DLLTOOL="$ac_cv_prog_DLLTOOL"
cannam@140 6164 fi
cannam@140 6165
cannam@140 6166 test -z "$DLLTOOL" && DLLTOOL=dlltool
cannam@140 6167
cannam@140 6168
cannam@140 6169
cannam@140 6170
cannam@140 6171
cannam@140 6172
cannam@140 6173
cannam@140 6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
cannam@140 6175 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
cannam@140 6176 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
cannam@140 6177 $as_echo_n "(cached) " >&6
cannam@140 6178 else
cannam@140 6179 lt_cv_sharedlib_from_linklib_cmd='unknown'
cannam@140 6180
cannam@140 6181 case $host_os in
cannam@140 6182 cygwin* | mingw* | pw32* | cegcc*)
cannam@140 6183 # two different shell functions defined in ltmain.sh
cannam@140 6184 # decide which to use based on capabilities of $DLLTOOL
cannam@140 6185 case `$DLLTOOL --help 2>&1` in
cannam@140 6186 *--identify-strict*)
cannam@140 6187 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
cannam@140 6188 ;;
cannam@140 6189 *)
cannam@140 6190 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
cannam@140 6191 ;;
cannam@140 6192 esac
cannam@140 6193 ;;
cannam@140 6194 *)
cannam@140 6195 # fallback: assume linklib IS sharedlib
cannam@140 6196 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
cannam@140 6197 ;;
cannam@140 6198 esac
cannam@140 6199
cannam@140 6200 fi
cannam@140 6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
cannam@140 6202 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
cannam@140 6203 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
cannam@140 6204 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
cannam@140 6205
cannam@140 6206
cannam@140 6207
cannam@140 6208
cannam@140 6209
cannam@140 6210
cannam@140 6211
cannam@140 6212
cannam@140 6213 if test -n "$ac_tool_prefix"; then
cannam@140 6214 for ac_prog in ar
cannam@140 6215 do
cannam@140 6216 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@140 6217 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@140 6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 6219 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 6220 if ${ac_cv_prog_AR+:} false; then :
cannam@140 6221 $as_echo_n "(cached) " >&6
cannam@140 6222 else
cannam@140 6223 if test -n "$AR"; then
cannam@140 6224 ac_cv_prog_AR="$AR" # Let the user override the test.
cannam@140 6225 else
cannam@140 6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 6227 for as_dir in $PATH
cannam@140 6228 do
cannam@140 6229 IFS=$as_save_IFS
cannam@140 6230 test -z "$as_dir" && as_dir=.
cannam@140 6231 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 6232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 6233 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cannam@140 6234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 6235 break 2
cannam@140 6236 fi
cannam@140 6237 done
cannam@140 6238 done
cannam@140 6239 IFS=$as_save_IFS
cannam@140 6240
cannam@140 6241 fi
cannam@140 6242 fi
cannam@140 6243 AR=$ac_cv_prog_AR
cannam@140 6244 if test -n "$AR"; then
cannam@140 6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cannam@140 6246 $as_echo "$AR" >&6; }
cannam@140 6247 else
cannam@140 6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 6249 $as_echo "no" >&6; }
cannam@140 6250 fi
cannam@140 6251
cannam@140 6252
cannam@140 6253 test -n "$AR" && break
cannam@140 6254 done
cannam@140 6255 fi
cannam@140 6256 if test -z "$AR"; then
cannam@140 6257 ac_ct_AR=$AR
cannam@140 6258 for ac_prog in ar
cannam@140 6259 do
cannam@140 6260 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@140 6261 set dummy $ac_prog; ac_word=$2
cannam@140 6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 6263 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 6264 if ${ac_cv_prog_ac_ct_AR+:} false; then :
cannam@140 6265 $as_echo_n "(cached) " >&6
cannam@140 6266 else
cannam@140 6267 if test -n "$ac_ct_AR"; then
cannam@140 6268 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
cannam@140 6269 else
cannam@140 6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 6271 for as_dir in $PATH
cannam@140 6272 do
cannam@140 6273 IFS=$as_save_IFS
cannam@140 6274 test -z "$as_dir" && as_dir=.
cannam@140 6275 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 6276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 6277 ac_cv_prog_ac_ct_AR="$ac_prog"
cannam@140 6278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 6279 break 2
cannam@140 6280 fi
cannam@140 6281 done
cannam@140 6282 done
cannam@140 6283 IFS=$as_save_IFS
cannam@140 6284
cannam@140 6285 fi
cannam@140 6286 fi
cannam@140 6287 ac_ct_AR=$ac_cv_prog_ac_ct_AR
cannam@140 6288 if test -n "$ac_ct_AR"; then
cannam@140 6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cannam@140 6290 $as_echo "$ac_ct_AR" >&6; }
cannam@140 6291 else
cannam@140 6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 6293 $as_echo "no" >&6; }
cannam@140 6294 fi
cannam@140 6295
cannam@140 6296
cannam@140 6297 test -n "$ac_ct_AR" && break
cannam@140 6298 done
cannam@140 6299
cannam@140 6300 if test "x$ac_ct_AR" = x; then
cannam@140 6301 AR="false"
cannam@140 6302 else
cannam@140 6303 case $cross_compiling:$ac_tool_warned in
cannam@140 6304 yes:)
cannam@140 6305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@140 6306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@140 6307 ac_tool_warned=yes ;;
cannam@140 6308 esac
cannam@140 6309 AR=$ac_ct_AR
cannam@140 6310 fi
cannam@140 6311 fi
cannam@140 6312
cannam@140 6313 : ${AR=ar}
cannam@140 6314 : ${AR_FLAGS=cru}
cannam@140 6315
cannam@140 6316
cannam@140 6317
cannam@140 6318
cannam@140 6319
cannam@140 6320
cannam@140 6321
cannam@140 6322
cannam@140 6323
cannam@140 6324
cannam@140 6325
cannam@140 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
cannam@140 6327 $as_echo_n "checking for archiver @FILE support... " >&6; }
cannam@140 6328 if ${lt_cv_ar_at_file+:} false; then :
cannam@140 6329 $as_echo_n "(cached) " >&6
cannam@140 6330 else
cannam@140 6331 lt_cv_ar_at_file=no
cannam@140 6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 6333 /* end confdefs.h. */
cannam@140 6334
cannam@140 6335 int
cannam@140 6336 main ()
cannam@140 6337 {
cannam@140 6338
cannam@140 6339 ;
cannam@140 6340 return 0;
cannam@140 6341 }
cannam@140 6342 _ACEOF
cannam@140 6343 if ac_fn_c_try_compile "$LINENO"; then :
cannam@140 6344 echo conftest.$ac_objext > conftest.lst
cannam@140 6345 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
cannam@140 6346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
cannam@140 6347 (eval $lt_ar_try) 2>&5
cannam@140 6348 ac_status=$?
cannam@140 6349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 6350 test $ac_status = 0; }
cannam@140 6351 if test "$ac_status" -eq 0; then
cannam@140 6352 # Ensure the archiver fails upon bogus file names.
cannam@140 6353 rm -f conftest.$ac_objext libconftest.a
cannam@140 6354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
cannam@140 6355 (eval $lt_ar_try) 2>&5
cannam@140 6356 ac_status=$?
cannam@140 6357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 6358 test $ac_status = 0; }
cannam@140 6359 if test "$ac_status" -ne 0; then
cannam@140 6360 lt_cv_ar_at_file=@
cannam@140 6361 fi
cannam@140 6362 fi
cannam@140 6363 rm -f conftest.* libconftest.a
cannam@140 6364
cannam@140 6365 fi
cannam@140 6366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@140 6367
cannam@140 6368 fi
cannam@140 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
cannam@140 6370 $as_echo "$lt_cv_ar_at_file" >&6; }
cannam@140 6371
cannam@140 6372 if test "x$lt_cv_ar_at_file" = xno; then
cannam@140 6373 archiver_list_spec=
cannam@140 6374 else
cannam@140 6375 archiver_list_spec=$lt_cv_ar_at_file
cannam@140 6376 fi
cannam@140 6377
cannam@140 6378
cannam@140 6379
cannam@140 6380
cannam@140 6381
cannam@140 6382
cannam@140 6383
cannam@140 6384 if test -n "$ac_tool_prefix"; then
cannam@140 6385 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
cannam@140 6386 set dummy ${ac_tool_prefix}strip; ac_word=$2
cannam@140 6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 6388 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 6389 if ${ac_cv_prog_STRIP+:} false; then :
cannam@140 6390 $as_echo_n "(cached) " >&6
cannam@140 6391 else
cannam@140 6392 if test -n "$STRIP"; then
cannam@140 6393 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
cannam@140 6394 else
cannam@140 6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 6396 for as_dir in $PATH
cannam@140 6397 do
cannam@140 6398 IFS=$as_save_IFS
cannam@140 6399 test -z "$as_dir" && as_dir=.
cannam@140 6400 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 6401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 6402 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cannam@140 6403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 6404 break 2
cannam@140 6405 fi
cannam@140 6406 done
cannam@140 6407 done
cannam@140 6408 IFS=$as_save_IFS
cannam@140 6409
cannam@140 6410 fi
cannam@140 6411 fi
cannam@140 6412 STRIP=$ac_cv_prog_STRIP
cannam@140 6413 if test -n "$STRIP"; then
cannam@140 6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cannam@140 6415 $as_echo "$STRIP" >&6; }
cannam@140 6416 else
cannam@140 6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 6418 $as_echo "no" >&6; }
cannam@140 6419 fi
cannam@140 6420
cannam@140 6421
cannam@140 6422 fi
cannam@140 6423 if test -z "$ac_cv_prog_STRIP"; then
cannam@140 6424 ac_ct_STRIP=$STRIP
cannam@140 6425 # Extract the first word of "strip", so it can be a program name with args.
cannam@140 6426 set dummy strip; ac_word=$2
cannam@140 6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 6428 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 6429 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cannam@140 6430 $as_echo_n "(cached) " >&6
cannam@140 6431 else
cannam@140 6432 if test -n "$ac_ct_STRIP"; then
cannam@140 6433 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
cannam@140 6434 else
cannam@140 6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 6436 for as_dir in $PATH
cannam@140 6437 do
cannam@140 6438 IFS=$as_save_IFS
cannam@140 6439 test -z "$as_dir" && as_dir=.
cannam@140 6440 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 6441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 6442 ac_cv_prog_ac_ct_STRIP="strip"
cannam@140 6443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 6444 break 2
cannam@140 6445 fi
cannam@140 6446 done
cannam@140 6447 done
cannam@140 6448 IFS=$as_save_IFS
cannam@140 6449
cannam@140 6450 fi
cannam@140 6451 fi
cannam@140 6452 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
cannam@140 6453 if test -n "$ac_ct_STRIP"; then
cannam@140 6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cannam@140 6455 $as_echo "$ac_ct_STRIP" >&6; }
cannam@140 6456 else
cannam@140 6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 6458 $as_echo "no" >&6; }
cannam@140 6459 fi
cannam@140 6460
cannam@140 6461 if test "x$ac_ct_STRIP" = x; then
cannam@140 6462 STRIP=":"
cannam@140 6463 else
cannam@140 6464 case $cross_compiling:$ac_tool_warned in
cannam@140 6465 yes:)
cannam@140 6466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@140 6467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@140 6468 ac_tool_warned=yes ;;
cannam@140 6469 esac
cannam@140 6470 STRIP=$ac_ct_STRIP
cannam@140 6471 fi
cannam@140 6472 else
cannam@140 6473 STRIP="$ac_cv_prog_STRIP"
cannam@140 6474 fi
cannam@140 6475
cannam@140 6476 test -z "$STRIP" && STRIP=:
cannam@140 6477
cannam@140 6478
cannam@140 6479
cannam@140 6480
cannam@140 6481
cannam@140 6482
cannam@140 6483 if test -n "$ac_tool_prefix"; then
cannam@140 6484 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
cannam@140 6485 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cannam@140 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 6487 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 6488 if ${ac_cv_prog_RANLIB+:} false; then :
cannam@140 6489 $as_echo_n "(cached) " >&6
cannam@140 6490 else
cannam@140 6491 if test -n "$RANLIB"; then
cannam@140 6492 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
cannam@140 6493 else
cannam@140 6494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 6495 for as_dir in $PATH
cannam@140 6496 do
cannam@140 6497 IFS=$as_save_IFS
cannam@140 6498 test -z "$as_dir" && as_dir=.
cannam@140 6499 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 6500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 6501 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cannam@140 6502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 6503 break 2
cannam@140 6504 fi
cannam@140 6505 done
cannam@140 6506 done
cannam@140 6507 IFS=$as_save_IFS
cannam@140 6508
cannam@140 6509 fi
cannam@140 6510 fi
cannam@140 6511 RANLIB=$ac_cv_prog_RANLIB
cannam@140 6512 if test -n "$RANLIB"; then
cannam@140 6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cannam@140 6514 $as_echo "$RANLIB" >&6; }
cannam@140 6515 else
cannam@140 6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 6517 $as_echo "no" >&6; }
cannam@140 6518 fi
cannam@140 6519
cannam@140 6520
cannam@140 6521 fi
cannam@140 6522 if test -z "$ac_cv_prog_RANLIB"; then
cannam@140 6523 ac_ct_RANLIB=$RANLIB
cannam@140 6524 # Extract the first word of "ranlib", so it can be a program name with args.
cannam@140 6525 set dummy ranlib; ac_word=$2
cannam@140 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 6527 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 6528 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cannam@140 6529 $as_echo_n "(cached) " >&6
cannam@140 6530 else
cannam@140 6531 if test -n "$ac_ct_RANLIB"; then
cannam@140 6532 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
cannam@140 6533 else
cannam@140 6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 6535 for as_dir in $PATH
cannam@140 6536 do
cannam@140 6537 IFS=$as_save_IFS
cannam@140 6538 test -z "$as_dir" && as_dir=.
cannam@140 6539 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 6540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 6541 ac_cv_prog_ac_ct_RANLIB="ranlib"
cannam@140 6542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 6543 break 2
cannam@140 6544 fi
cannam@140 6545 done
cannam@140 6546 done
cannam@140 6547 IFS=$as_save_IFS
cannam@140 6548
cannam@140 6549 fi
cannam@140 6550 fi
cannam@140 6551 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
cannam@140 6552 if test -n "$ac_ct_RANLIB"; then
cannam@140 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cannam@140 6554 $as_echo "$ac_ct_RANLIB" >&6; }
cannam@140 6555 else
cannam@140 6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 6557 $as_echo "no" >&6; }
cannam@140 6558 fi
cannam@140 6559
cannam@140 6560 if test "x$ac_ct_RANLIB" = x; then
cannam@140 6561 RANLIB=":"
cannam@140 6562 else
cannam@140 6563 case $cross_compiling:$ac_tool_warned in
cannam@140 6564 yes:)
cannam@140 6565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@140 6566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@140 6567 ac_tool_warned=yes ;;
cannam@140 6568 esac
cannam@140 6569 RANLIB=$ac_ct_RANLIB
cannam@140 6570 fi
cannam@140 6571 else
cannam@140 6572 RANLIB="$ac_cv_prog_RANLIB"
cannam@140 6573 fi
cannam@140 6574
cannam@140 6575 test -z "$RANLIB" && RANLIB=:
cannam@140 6576
cannam@140 6577
cannam@140 6578
cannam@140 6579
cannam@140 6580
cannam@140 6581
cannam@140 6582 # Determine commands to create old-style static archives.
cannam@140 6583 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
cannam@140 6584 old_postinstall_cmds='chmod 644 $oldlib'
cannam@140 6585 old_postuninstall_cmds=
cannam@140 6586
cannam@140 6587 if test -n "$RANLIB"; then
cannam@140 6588 case $host_os in
cannam@140 6589 openbsd*)
cannam@140 6590 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cannam@140 6591 ;;
cannam@140 6592 *)
cannam@140 6593 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cannam@140 6594 ;;
cannam@140 6595 esac
cannam@140 6596 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cannam@140 6597 fi
cannam@140 6598
cannam@140 6599 case $host_os in
cannam@140 6600 darwin*)
cannam@140 6601 lock_old_archive_extraction=yes ;;
cannam@140 6602 *)
cannam@140 6603 lock_old_archive_extraction=no ;;
cannam@140 6604 esac
cannam@140 6605
cannam@140 6606
cannam@140 6607
cannam@140 6608
cannam@140 6609
cannam@140 6610
cannam@140 6611
cannam@140 6612
cannam@140 6613
cannam@140 6614
cannam@140 6615
cannam@140 6616
cannam@140 6617
cannam@140 6618
cannam@140 6619
cannam@140 6620
cannam@140 6621
cannam@140 6622
cannam@140 6623
cannam@140 6624
cannam@140 6625
cannam@140 6626
cannam@140 6627
cannam@140 6628
cannam@140 6629
cannam@140 6630
cannam@140 6631
cannam@140 6632
cannam@140 6633
cannam@140 6634
cannam@140 6635
cannam@140 6636
cannam@140 6637
cannam@140 6638
cannam@140 6639
cannam@140 6640
cannam@140 6641
cannam@140 6642
cannam@140 6643
cannam@140 6644 # If no C compiler was specified, use CC.
cannam@140 6645 LTCC=${LTCC-"$CC"}
cannam@140 6646
cannam@140 6647 # If no C compiler flags were specified, use CFLAGS.
cannam@140 6648 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cannam@140 6649
cannam@140 6650 # Allow CC to be a program name with arguments.
cannam@140 6651 compiler=$CC
cannam@140 6652
cannam@140 6653
cannam@140 6654 # Check for command to grab the raw symbol name followed by C symbol from nm.
cannam@140 6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cannam@140 6656 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cannam@140 6657 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cannam@140 6658 $as_echo_n "(cached) " >&6
cannam@140 6659 else
cannam@140 6660
cannam@140 6661 # These are sane defaults that work on at least a few old systems.
cannam@140 6662 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
cannam@140 6663
cannam@140 6664 # Character class describing NM global symbol codes.
cannam@140 6665 symcode='[BCDEGRST]'
cannam@140 6666
cannam@140 6667 # Regexp to match symbols that can be accessed directly from C.
cannam@140 6668 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
cannam@140 6669
cannam@140 6670 # Define system-specific variables.
cannam@140 6671 case $host_os in
cannam@140 6672 aix*)
cannam@140 6673 symcode='[BCDT]'
cannam@140 6674 ;;
cannam@140 6675 cygwin* | mingw* | pw32* | cegcc*)
cannam@140 6676 symcode='[ABCDGISTW]'
cannam@140 6677 ;;
cannam@140 6678 hpux*)
cannam@140 6679 if test "$host_cpu" = ia64; then
cannam@140 6680 symcode='[ABCDEGRST]'
cannam@140 6681 fi
cannam@140 6682 ;;
cannam@140 6683 irix* | nonstopux*)
cannam@140 6684 symcode='[BCDEGRST]'
cannam@140 6685 ;;
cannam@140 6686 osf*)
cannam@140 6687 symcode='[BCDEGQRST]'
cannam@140 6688 ;;
cannam@140 6689 solaris*)
cannam@140 6690 symcode='[BDRT]'
cannam@140 6691 ;;
cannam@140 6692 sco3.2v5*)
cannam@140 6693 symcode='[DT]'
cannam@140 6694 ;;
cannam@140 6695 sysv4.2uw2*)
cannam@140 6696 symcode='[DT]'
cannam@140 6697 ;;
cannam@140 6698 sysv5* | sco5v6* | unixware* | OpenUNIX*)
cannam@140 6699 symcode='[ABDT]'
cannam@140 6700 ;;
cannam@140 6701 sysv4)
cannam@140 6702 symcode='[DFNSTU]'
cannam@140 6703 ;;
cannam@140 6704 esac
cannam@140 6705
cannam@140 6706 # If we're using GNU nm, then use its standard symbol codes.
cannam@140 6707 case `$NM -V 2>&1` in
cannam@140 6708 *GNU* | *'with BFD'*)
cannam@140 6709 symcode='[ABCDGIRSTW]' ;;
cannam@140 6710 esac
cannam@140 6711
cannam@140 6712 # Transform an extracted symbol line into a proper C declaration.
cannam@140 6713 # Some systems (esp. on ia64) link data and code symbols differently,
cannam@140 6714 # so use this general approach.
cannam@140 6715 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
cannam@140 6716
cannam@140 6717 # Transform an extracted symbol line into symbol name and symbol address
cannam@140 6718 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
cannam@140 6719 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
cannam@140 6720
cannam@140 6721 # Handle CRLF in mingw tool chain
cannam@140 6722 opt_cr=
cannam@140 6723 case $build_os in
cannam@140 6724 mingw*)
cannam@140 6725 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
cannam@140 6726 ;;
cannam@140 6727 esac
cannam@140 6728
cannam@140 6729 # Try without a prefix underscore, then with it.
cannam@140 6730 for ac_symprfx in "" "_"; do
cannam@140 6731
cannam@140 6732 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
cannam@140 6733 symxfrm="\\1 $ac_symprfx\\2 \\2"
cannam@140 6734
cannam@140 6735 # Write the raw and C identifiers.
cannam@140 6736 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
cannam@140 6737 # Fake it for dumpbin and say T for any non-static function
cannam@140 6738 # and D for any global variable.
cannam@140 6739 # Also find C++ and __fastcall symbols from MSVC++,
cannam@140 6740 # which start with @ or ?.
cannam@140 6741 lt_cv_sys_global_symbol_pipe="$AWK '"\
cannam@140 6742 " {last_section=section; section=\$ 3};"\
cannam@140 6743 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cannam@140 6744 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
cannam@140 6745 " \$ 0!~/External *\|/{next};"\
cannam@140 6746 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
cannam@140 6747 " {if(hide[section]) next};"\
cannam@140 6748 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
cannam@140 6749 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
cannam@140 6750 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
cannam@140 6751 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
cannam@140 6752 " ' prfx=^$ac_symprfx"
cannam@140 6753 else
cannam@140 6754 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
cannam@140 6755 fi
cannam@140 6756 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cannam@140 6757
cannam@140 6758 # Check to see that the pipe works correctly.
cannam@140 6759 pipe_works=no
cannam@140 6760
cannam@140 6761 rm -f conftest*
cannam@140 6762 cat > conftest.$ac_ext <<_LT_EOF
cannam@140 6763 #ifdef __cplusplus
cannam@140 6764 extern "C" {
cannam@140 6765 #endif
cannam@140 6766 char nm_test_var;
cannam@140 6767 void nm_test_func(void);
cannam@140 6768 void nm_test_func(void){}
cannam@140 6769 #ifdef __cplusplus
cannam@140 6770 }
cannam@140 6771 #endif
cannam@140 6772 int main(){nm_test_var='a';nm_test_func();return(0);}
cannam@140 6773 _LT_EOF
cannam@140 6774
cannam@140 6775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@140 6776 (eval $ac_compile) 2>&5
cannam@140 6777 ac_status=$?
cannam@140 6778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 6779 test $ac_status = 0; }; then
cannam@140 6780 # Now try to grab the symbols.
cannam@140 6781 nlist=conftest.nm
cannam@140 6782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
cannam@140 6783 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cannam@140 6784 ac_status=$?
cannam@140 6785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 6786 test $ac_status = 0; } && test -s "$nlist"; then
cannam@140 6787 # Try sorting and uniquifying the output.
cannam@140 6788 if sort "$nlist" | uniq > "$nlist"T; then
cannam@140 6789 mv -f "$nlist"T "$nlist"
cannam@140 6790 else
cannam@140 6791 rm -f "$nlist"T
cannam@140 6792 fi
cannam@140 6793
cannam@140 6794 # Make sure that we snagged all the symbols we need.
cannam@140 6795 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
cannam@140 6796 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
cannam@140 6797 cat <<_LT_EOF > conftest.$ac_ext
cannam@140 6798 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
cannam@140 6799 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
cannam@140 6800 /* DATA imports from DLLs on WIN32 con't be const, because runtime
cannam@140 6801 relocations are performed -- see ld's documentation on pseudo-relocs. */
cannam@140 6802 # define LT_DLSYM_CONST
cannam@140 6803 #elif defined(__osf__)
cannam@140 6804 /* This system does not cope well with relocations in const data. */
cannam@140 6805 # define LT_DLSYM_CONST
cannam@140 6806 #else
cannam@140 6807 # define LT_DLSYM_CONST const
cannam@140 6808 #endif
cannam@140 6809
cannam@140 6810 #ifdef __cplusplus
cannam@140 6811 extern "C" {
cannam@140 6812 #endif
cannam@140 6813
cannam@140 6814 _LT_EOF
cannam@140 6815 # Now generate the symbol file.
cannam@140 6816 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
cannam@140 6817
cannam@140 6818 cat <<_LT_EOF >> conftest.$ac_ext
cannam@140 6819
cannam@140 6820 /* The mapping between symbol names and symbols. */
cannam@140 6821 LT_DLSYM_CONST struct {
cannam@140 6822 const char *name;
cannam@140 6823 void *address;
cannam@140 6824 }
cannam@140 6825 lt__PROGRAM__LTX_preloaded_symbols[] =
cannam@140 6826 {
cannam@140 6827 { "@PROGRAM@", (void *) 0 },
cannam@140 6828 _LT_EOF
cannam@140 6829 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
cannam@140 6830 cat <<\_LT_EOF >> conftest.$ac_ext
cannam@140 6831 {0, (void *) 0}
cannam@140 6832 };
cannam@140 6833
cannam@140 6834 /* This works around a problem in FreeBSD linker */
cannam@140 6835 #ifdef FREEBSD_WORKAROUND
cannam@140 6836 static const void *lt_preloaded_setup() {
cannam@140 6837 return lt__PROGRAM__LTX_preloaded_symbols;
cannam@140 6838 }
cannam@140 6839 #endif
cannam@140 6840
cannam@140 6841 #ifdef __cplusplus
cannam@140 6842 }
cannam@140 6843 #endif
cannam@140 6844 _LT_EOF
cannam@140 6845 # Now try linking the two files.
cannam@140 6846 mv conftest.$ac_objext conftstm.$ac_objext
cannam@140 6847 lt_globsym_save_LIBS=$LIBS
cannam@140 6848 lt_globsym_save_CFLAGS=$CFLAGS
cannam@140 6849 LIBS="conftstm.$ac_objext"
cannam@140 6850 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cannam@140 6851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cannam@140 6852 (eval $ac_link) 2>&5
cannam@140 6853 ac_status=$?
cannam@140 6854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 6855 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cannam@140 6856 pipe_works=yes
cannam@140 6857 fi
cannam@140 6858 LIBS=$lt_globsym_save_LIBS
cannam@140 6859 CFLAGS=$lt_globsym_save_CFLAGS
cannam@140 6860 else
cannam@140 6861 echo "cannot find nm_test_func in $nlist" >&5
cannam@140 6862 fi
cannam@140 6863 else
cannam@140 6864 echo "cannot find nm_test_var in $nlist" >&5
cannam@140 6865 fi
cannam@140 6866 else
cannam@140 6867 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
cannam@140 6868 fi
cannam@140 6869 else
cannam@140 6870 echo "$progname: failed program was:" >&5
cannam@140 6871 cat conftest.$ac_ext >&5
cannam@140 6872 fi
cannam@140 6873 rm -rf conftest* conftst*
cannam@140 6874
cannam@140 6875 # Do not use the global_symbol_pipe unless it works.
cannam@140 6876 if test "$pipe_works" = yes; then
cannam@140 6877 break
cannam@140 6878 else
cannam@140 6879 lt_cv_sys_global_symbol_pipe=
cannam@140 6880 fi
cannam@140 6881 done
cannam@140 6882
cannam@140 6883 fi
cannam@140 6884
cannam@140 6885 if test -z "$lt_cv_sys_global_symbol_pipe"; then
cannam@140 6886 lt_cv_sys_global_symbol_to_cdecl=
cannam@140 6887 fi
cannam@140 6888 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cannam@140 6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cannam@140 6890 $as_echo "failed" >&6; }
cannam@140 6891 else
cannam@140 6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cannam@140 6893 $as_echo "ok" >&6; }
cannam@140 6894 fi
cannam@140 6895
cannam@140 6896 # Response file support.
cannam@140 6897 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
cannam@140 6898 nm_file_list_spec='@'
cannam@140 6899 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
cannam@140 6900 nm_file_list_spec='@'
cannam@140 6901 fi
cannam@140 6902
cannam@140 6903
cannam@140 6904
cannam@140 6905
cannam@140 6906
cannam@140 6907
cannam@140 6908
cannam@140 6909
cannam@140 6910
cannam@140 6911
cannam@140 6912
cannam@140 6913
cannam@140 6914
cannam@140 6915
cannam@140 6916
cannam@140 6917
cannam@140 6918
cannam@140 6919
cannam@140 6920
cannam@140 6921
cannam@140 6922
cannam@140 6923
cannam@140 6924
cannam@140 6925
cannam@140 6926
cannam@140 6927
cannam@140 6928
cannam@140 6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
cannam@140 6930 $as_echo_n "checking for sysroot... " >&6; }
cannam@140 6931
cannam@140 6932 # Check whether --with-sysroot was given.
cannam@140 6933 if test "${with_sysroot+set}" = set; then :
cannam@140 6934 withval=$with_sysroot;
cannam@140 6935 else
cannam@140 6936 with_sysroot=no
cannam@140 6937 fi
cannam@140 6938
cannam@140 6939
cannam@140 6940 lt_sysroot=
cannam@140 6941 case ${with_sysroot} in #(
cannam@140 6942 yes)
cannam@140 6943 if test "$GCC" = yes; then
cannam@140 6944 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
cannam@140 6945 fi
cannam@140 6946 ;; #(
cannam@140 6947 /*)
cannam@140 6948 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
cannam@140 6949 ;; #(
cannam@140 6950 no|'')
cannam@140 6951 ;; #(
cannam@140 6952 *)
cannam@140 6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
cannam@140 6954 $as_echo "${with_sysroot}" >&6; }
cannam@140 6955 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
cannam@140 6956 ;;
cannam@140 6957 esac
cannam@140 6958
cannam@140 6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
cannam@140 6960 $as_echo "${lt_sysroot:-no}" >&6; }
cannam@140 6961
cannam@140 6962
cannam@140 6963
cannam@140 6964
cannam@140 6965
cannam@140 6966 # Check whether --enable-libtool-lock was given.
cannam@140 6967 if test "${enable_libtool_lock+set}" = set; then :
cannam@140 6968 enableval=$enable_libtool_lock;
cannam@140 6969 fi
cannam@140 6970
cannam@140 6971 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
cannam@140 6972
cannam@140 6973 # Some flags need to be propagated to the compiler or linker for good
cannam@140 6974 # libtool support.
cannam@140 6975 case $host in
cannam@140 6976 ia64-*-hpux*)
cannam@140 6977 # Find out which ABI we are using.
cannam@140 6978 echo 'int i;' > conftest.$ac_ext
cannam@140 6979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@140 6980 (eval $ac_compile) 2>&5
cannam@140 6981 ac_status=$?
cannam@140 6982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 6983 test $ac_status = 0; }; then
cannam@140 6984 case `/usr/bin/file conftest.$ac_objext` in
cannam@140 6985 *ELF-32*)
cannam@140 6986 HPUX_IA64_MODE="32"
cannam@140 6987 ;;
cannam@140 6988 *ELF-64*)
cannam@140 6989 HPUX_IA64_MODE="64"
cannam@140 6990 ;;
cannam@140 6991 esac
cannam@140 6992 fi
cannam@140 6993 rm -rf conftest*
cannam@140 6994 ;;
cannam@140 6995 *-*-irix6*)
cannam@140 6996 # Find out which ABI we are using.
cannam@140 6997 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cannam@140 6998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@140 6999 (eval $ac_compile) 2>&5
cannam@140 7000 ac_status=$?
cannam@140 7001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 7002 test $ac_status = 0; }; then
cannam@140 7003 if test "$lt_cv_prog_gnu_ld" = yes; then
cannam@140 7004 case `/usr/bin/file conftest.$ac_objext` in
cannam@140 7005 *32-bit*)
cannam@140 7006 LD="${LD-ld} -melf32bsmip"
cannam@140 7007 ;;
cannam@140 7008 *N32*)
cannam@140 7009 LD="${LD-ld} -melf32bmipn32"
cannam@140 7010 ;;
cannam@140 7011 *64-bit*)
cannam@140 7012 LD="${LD-ld} -melf64bmip"
cannam@140 7013 ;;
cannam@140 7014 esac
cannam@140 7015 else
cannam@140 7016 case `/usr/bin/file conftest.$ac_objext` in
cannam@140 7017 *32-bit*)
cannam@140 7018 LD="${LD-ld} -32"
cannam@140 7019 ;;
cannam@140 7020 *N32*)
cannam@140 7021 LD="${LD-ld} -n32"
cannam@140 7022 ;;
cannam@140 7023 *64-bit*)
cannam@140 7024 LD="${LD-ld} -64"
cannam@140 7025 ;;
cannam@140 7026 esac
cannam@140 7027 fi
cannam@140 7028 fi
cannam@140 7029 rm -rf conftest*
cannam@140 7030 ;;
cannam@140 7031
cannam@140 7032 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cannam@140 7033 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
cannam@140 7034 # Find out which ABI we are using.
cannam@140 7035 echo 'int i;' > conftest.$ac_ext
cannam@140 7036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@140 7037 (eval $ac_compile) 2>&5
cannam@140 7038 ac_status=$?
cannam@140 7039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 7040 test $ac_status = 0; }; then
cannam@140 7041 case `/usr/bin/file conftest.o` in
cannam@140 7042 *32-bit*)
cannam@140 7043 case $host in
cannam@140 7044 x86_64-*kfreebsd*-gnu)
cannam@140 7045 LD="${LD-ld} -m elf_i386_fbsd"
cannam@140 7046 ;;
cannam@140 7047 x86_64-*linux*)
cannam@140 7048 case `/usr/bin/file conftest.o` in
cannam@140 7049 *x86-64*)
cannam@140 7050 LD="${LD-ld} -m elf32_x86_64"
cannam@140 7051 ;;
cannam@140 7052 *)
cannam@140 7053 LD="${LD-ld} -m elf_i386"
cannam@140 7054 ;;
cannam@140 7055 esac
cannam@140 7056 ;;
cannam@140 7057 powerpc64le-*)
cannam@140 7058 LD="${LD-ld} -m elf32lppclinux"
cannam@140 7059 ;;
cannam@140 7060 powerpc64-*)
cannam@140 7061 LD="${LD-ld} -m elf32ppclinux"
cannam@140 7062 ;;
cannam@140 7063 s390x-*linux*)
cannam@140 7064 LD="${LD-ld} -m elf_s390"
cannam@140 7065 ;;
cannam@140 7066 sparc64-*linux*)
cannam@140 7067 LD="${LD-ld} -m elf32_sparc"
cannam@140 7068 ;;
cannam@140 7069 esac
cannam@140 7070 ;;
cannam@140 7071 *64-bit*)
cannam@140 7072 case $host in
cannam@140 7073 x86_64-*kfreebsd*-gnu)
cannam@140 7074 LD="${LD-ld} -m elf_x86_64_fbsd"
cannam@140 7075 ;;
cannam@140 7076 x86_64-*linux*)
cannam@140 7077 LD="${LD-ld} -m elf_x86_64"
cannam@140 7078 ;;
cannam@140 7079 powerpcle-*)
cannam@140 7080 LD="${LD-ld} -m elf64lppc"
cannam@140 7081 ;;
cannam@140 7082 powerpc-*)
cannam@140 7083 LD="${LD-ld} -m elf64ppc"
cannam@140 7084 ;;
cannam@140 7085 s390*-*linux*|s390*-*tpf*)
cannam@140 7086 LD="${LD-ld} -m elf64_s390"
cannam@140 7087 ;;
cannam@140 7088 sparc*-*linux*)
cannam@140 7089 LD="${LD-ld} -m elf64_sparc"
cannam@140 7090 ;;
cannam@140 7091 esac
cannam@140 7092 ;;
cannam@140 7093 esac
cannam@140 7094 fi
cannam@140 7095 rm -rf conftest*
cannam@140 7096 ;;
cannam@140 7097
cannam@140 7098 *-*-sco3.2v5*)
cannam@140 7099 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
cannam@140 7100 SAVE_CFLAGS="$CFLAGS"
cannam@140 7101 CFLAGS="$CFLAGS -belf"
cannam@140 7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cannam@140 7103 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cannam@140 7104 if ${lt_cv_cc_needs_belf+:} false; then :
cannam@140 7105 $as_echo_n "(cached) " >&6
cannam@140 7106 else
cannam@140 7107 ac_ext=c
cannam@140 7108 ac_cpp='$CPP $CPPFLAGS'
cannam@140 7109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@140 7110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@140 7111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@140 7112
cannam@140 7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 7114 /* end confdefs.h. */
cannam@140 7115
cannam@140 7116 int
cannam@140 7117 main ()
cannam@140 7118 {
cannam@140 7119
cannam@140 7120 ;
cannam@140 7121 return 0;
cannam@140 7122 }
cannam@140 7123 _ACEOF
cannam@140 7124 if ac_fn_c_try_link "$LINENO"; then :
cannam@140 7125 lt_cv_cc_needs_belf=yes
cannam@140 7126 else
cannam@140 7127 lt_cv_cc_needs_belf=no
cannam@140 7128 fi
cannam@140 7129 rm -f core conftest.err conftest.$ac_objext \
cannam@140 7130 conftest$ac_exeext conftest.$ac_ext
cannam@140 7131 ac_ext=c
cannam@140 7132 ac_cpp='$CPP $CPPFLAGS'
cannam@140 7133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@140 7134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@140 7135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@140 7136
cannam@140 7137 fi
cannam@140 7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cannam@140 7139 $as_echo "$lt_cv_cc_needs_belf" >&6; }
cannam@140 7140 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
cannam@140 7141 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
cannam@140 7142 CFLAGS="$SAVE_CFLAGS"
cannam@140 7143 fi
cannam@140 7144 ;;
cannam@140 7145 *-*solaris*)
cannam@140 7146 # Find out which ABI we are using.
cannam@140 7147 echo 'int i;' > conftest.$ac_ext
cannam@140 7148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@140 7149 (eval $ac_compile) 2>&5
cannam@140 7150 ac_status=$?
cannam@140 7151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 7152 test $ac_status = 0; }; then
cannam@140 7153 case `/usr/bin/file conftest.o` in
cannam@140 7154 *64-bit*)
cannam@140 7155 case $lt_cv_prog_gnu_ld in
cannam@140 7156 yes*)
cannam@140 7157 case $host in
cannam@140 7158 i?86-*-solaris*)
cannam@140 7159 LD="${LD-ld} -m elf_x86_64"
cannam@140 7160 ;;
cannam@140 7161 sparc*-*-solaris*)
cannam@140 7162 LD="${LD-ld} -m elf64_sparc"
cannam@140 7163 ;;
cannam@140 7164 esac
cannam@140 7165 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
cannam@140 7166 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
cannam@140 7167 LD="${LD-ld}_sol2"
cannam@140 7168 fi
cannam@140 7169 ;;
cannam@140 7170 *)
cannam@140 7171 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
cannam@140 7172 LD="${LD-ld} -64"
cannam@140 7173 fi
cannam@140 7174 ;;
cannam@140 7175 esac
cannam@140 7176 ;;
cannam@140 7177 esac
cannam@140 7178 fi
cannam@140 7179 rm -rf conftest*
cannam@140 7180 ;;
cannam@140 7181 esac
cannam@140 7182
cannam@140 7183 need_locks="$enable_libtool_lock"
cannam@140 7184
cannam@140 7185 if test -n "$ac_tool_prefix"; then
cannam@140 7186 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
cannam@140 7187 set dummy ${ac_tool_prefix}mt; ac_word=$2
cannam@140 7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 7189 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 7190 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
cannam@140 7191 $as_echo_n "(cached) " >&6
cannam@140 7192 else
cannam@140 7193 if test -n "$MANIFEST_TOOL"; then
cannam@140 7194 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
cannam@140 7195 else
cannam@140 7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 7197 for as_dir in $PATH
cannam@140 7198 do
cannam@140 7199 IFS=$as_save_IFS
cannam@140 7200 test -z "$as_dir" && as_dir=.
cannam@140 7201 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 7202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 7203 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
cannam@140 7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 7205 break 2
cannam@140 7206 fi
cannam@140 7207 done
cannam@140 7208 done
cannam@140 7209 IFS=$as_save_IFS
cannam@140 7210
cannam@140 7211 fi
cannam@140 7212 fi
cannam@140 7213 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
cannam@140 7214 if test -n "$MANIFEST_TOOL"; then
cannam@140 7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
cannam@140 7216 $as_echo "$MANIFEST_TOOL" >&6; }
cannam@140 7217 else
cannam@140 7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 7219 $as_echo "no" >&6; }
cannam@140 7220 fi
cannam@140 7221
cannam@140 7222
cannam@140 7223 fi
cannam@140 7224 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
cannam@140 7225 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
cannam@140 7226 # Extract the first word of "mt", so it can be a program name with args.
cannam@140 7227 set dummy mt; ac_word=$2
cannam@140 7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 7229 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 7230 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
cannam@140 7231 $as_echo_n "(cached) " >&6
cannam@140 7232 else
cannam@140 7233 if test -n "$ac_ct_MANIFEST_TOOL"; then
cannam@140 7234 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
cannam@140 7235 else
cannam@140 7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 7237 for as_dir in $PATH
cannam@140 7238 do
cannam@140 7239 IFS=$as_save_IFS
cannam@140 7240 test -z "$as_dir" && as_dir=.
cannam@140 7241 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 7242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 7243 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
cannam@140 7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 7245 break 2
cannam@140 7246 fi
cannam@140 7247 done
cannam@140 7248 done
cannam@140 7249 IFS=$as_save_IFS
cannam@140 7250
cannam@140 7251 fi
cannam@140 7252 fi
cannam@140 7253 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
cannam@140 7254 if test -n "$ac_ct_MANIFEST_TOOL"; then
cannam@140 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
cannam@140 7256 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
cannam@140 7257 else
cannam@140 7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 7259 $as_echo "no" >&6; }
cannam@140 7260 fi
cannam@140 7261
cannam@140 7262 if test "x$ac_ct_MANIFEST_TOOL" = x; then
cannam@140 7263 MANIFEST_TOOL=":"
cannam@140 7264 else
cannam@140 7265 case $cross_compiling:$ac_tool_warned in
cannam@140 7266 yes:)
cannam@140 7267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@140 7268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@140 7269 ac_tool_warned=yes ;;
cannam@140 7270 esac
cannam@140 7271 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
cannam@140 7272 fi
cannam@140 7273 else
cannam@140 7274 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
cannam@140 7275 fi
cannam@140 7276
cannam@140 7277 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
cannam@140 7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
cannam@140 7279 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
cannam@140 7280 if ${lt_cv_path_mainfest_tool+:} false; then :
cannam@140 7281 $as_echo_n "(cached) " >&6
cannam@140 7282 else
cannam@140 7283 lt_cv_path_mainfest_tool=no
cannam@140 7284 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
cannam@140 7285 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
cannam@140 7286 cat conftest.err >&5
cannam@140 7287 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
cannam@140 7288 lt_cv_path_mainfest_tool=yes
cannam@140 7289 fi
cannam@140 7290 rm -f conftest*
cannam@140 7291 fi
cannam@140 7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
cannam@140 7293 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
cannam@140 7294 if test "x$lt_cv_path_mainfest_tool" != xyes; then
cannam@140 7295 MANIFEST_TOOL=:
cannam@140 7296 fi
cannam@140 7297
cannam@140 7298
cannam@140 7299
cannam@140 7300
cannam@140 7301
cannam@140 7302
cannam@140 7303 case $host_os in
cannam@140 7304 rhapsody* | darwin*)
cannam@140 7305 if test -n "$ac_tool_prefix"; then
cannam@140 7306 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
cannam@140 7307 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cannam@140 7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 7309 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 7310 if ${ac_cv_prog_DSYMUTIL+:} false; then :
cannam@140 7311 $as_echo_n "(cached) " >&6
cannam@140 7312 else
cannam@140 7313 if test -n "$DSYMUTIL"; then
cannam@140 7314 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
cannam@140 7315 else
cannam@140 7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 7317 for as_dir in $PATH
cannam@140 7318 do
cannam@140 7319 IFS=$as_save_IFS
cannam@140 7320 test -z "$as_dir" && as_dir=.
cannam@140 7321 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 7322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 7323 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cannam@140 7324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 7325 break 2
cannam@140 7326 fi
cannam@140 7327 done
cannam@140 7328 done
cannam@140 7329 IFS=$as_save_IFS
cannam@140 7330
cannam@140 7331 fi
cannam@140 7332 fi
cannam@140 7333 DSYMUTIL=$ac_cv_prog_DSYMUTIL
cannam@140 7334 if test -n "$DSYMUTIL"; then
cannam@140 7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cannam@140 7336 $as_echo "$DSYMUTIL" >&6; }
cannam@140 7337 else
cannam@140 7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 7339 $as_echo "no" >&6; }
cannam@140 7340 fi
cannam@140 7341
cannam@140 7342
cannam@140 7343 fi
cannam@140 7344 if test -z "$ac_cv_prog_DSYMUTIL"; then
cannam@140 7345 ac_ct_DSYMUTIL=$DSYMUTIL
cannam@140 7346 # Extract the first word of "dsymutil", so it can be a program name with args.
cannam@140 7347 set dummy dsymutil; ac_word=$2
cannam@140 7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 7349 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 7350 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cannam@140 7351 $as_echo_n "(cached) " >&6
cannam@140 7352 else
cannam@140 7353 if test -n "$ac_ct_DSYMUTIL"; then
cannam@140 7354 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
cannam@140 7355 else
cannam@140 7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 7357 for as_dir in $PATH
cannam@140 7358 do
cannam@140 7359 IFS=$as_save_IFS
cannam@140 7360 test -z "$as_dir" && as_dir=.
cannam@140 7361 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 7362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 7363 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cannam@140 7364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 7365 break 2
cannam@140 7366 fi
cannam@140 7367 done
cannam@140 7368 done
cannam@140 7369 IFS=$as_save_IFS
cannam@140 7370
cannam@140 7371 fi
cannam@140 7372 fi
cannam@140 7373 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
cannam@140 7374 if test -n "$ac_ct_DSYMUTIL"; then
cannam@140 7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cannam@140 7376 $as_echo "$ac_ct_DSYMUTIL" >&6; }
cannam@140 7377 else
cannam@140 7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 7379 $as_echo "no" >&6; }
cannam@140 7380 fi
cannam@140 7381
cannam@140 7382 if test "x$ac_ct_DSYMUTIL" = x; then
cannam@140 7383 DSYMUTIL=":"
cannam@140 7384 else
cannam@140 7385 case $cross_compiling:$ac_tool_warned in
cannam@140 7386 yes:)
cannam@140 7387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@140 7388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@140 7389 ac_tool_warned=yes ;;
cannam@140 7390 esac
cannam@140 7391 DSYMUTIL=$ac_ct_DSYMUTIL
cannam@140 7392 fi
cannam@140 7393 else
cannam@140 7394 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
cannam@140 7395 fi
cannam@140 7396
cannam@140 7397 if test -n "$ac_tool_prefix"; then
cannam@140 7398 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
cannam@140 7399 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cannam@140 7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 7401 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 7402 if ${ac_cv_prog_NMEDIT+:} false; then :
cannam@140 7403 $as_echo_n "(cached) " >&6
cannam@140 7404 else
cannam@140 7405 if test -n "$NMEDIT"; then
cannam@140 7406 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
cannam@140 7407 else
cannam@140 7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 7409 for as_dir in $PATH
cannam@140 7410 do
cannam@140 7411 IFS=$as_save_IFS
cannam@140 7412 test -z "$as_dir" && as_dir=.
cannam@140 7413 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 7414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 7415 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cannam@140 7416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 7417 break 2
cannam@140 7418 fi
cannam@140 7419 done
cannam@140 7420 done
cannam@140 7421 IFS=$as_save_IFS
cannam@140 7422
cannam@140 7423 fi
cannam@140 7424 fi
cannam@140 7425 NMEDIT=$ac_cv_prog_NMEDIT
cannam@140 7426 if test -n "$NMEDIT"; then
cannam@140 7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cannam@140 7428 $as_echo "$NMEDIT" >&6; }
cannam@140 7429 else
cannam@140 7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 7431 $as_echo "no" >&6; }
cannam@140 7432 fi
cannam@140 7433
cannam@140 7434
cannam@140 7435 fi
cannam@140 7436 if test -z "$ac_cv_prog_NMEDIT"; then
cannam@140 7437 ac_ct_NMEDIT=$NMEDIT
cannam@140 7438 # Extract the first word of "nmedit", so it can be a program name with args.
cannam@140 7439 set dummy nmedit; ac_word=$2
cannam@140 7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 7441 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 7442 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cannam@140 7443 $as_echo_n "(cached) " >&6
cannam@140 7444 else
cannam@140 7445 if test -n "$ac_ct_NMEDIT"; then
cannam@140 7446 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
cannam@140 7447 else
cannam@140 7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 7449 for as_dir in $PATH
cannam@140 7450 do
cannam@140 7451 IFS=$as_save_IFS
cannam@140 7452 test -z "$as_dir" && as_dir=.
cannam@140 7453 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 7454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 7455 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cannam@140 7456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 7457 break 2
cannam@140 7458 fi
cannam@140 7459 done
cannam@140 7460 done
cannam@140 7461 IFS=$as_save_IFS
cannam@140 7462
cannam@140 7463 fi
cannam@140 7464 fi
cannam@140 7465 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
cannam@140 7466 if test -n "$ac_ct_NMEDIT"; then
cannam@140 7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cannam@140 7468 $as_echo "$ac_ct_NMEDIT" >&6; }
cannam@140 7469 else
cannam@140 7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 7471 $as_echo "no" >&6; }
cannam@140 7472 fi
cannam@140 7473
cannam@140 7474 if test "x$ac_ct_NMEDIT" = x; then
cannam@140 7475 NMEDIT=":"
cannam@140 7476 else
cannam@140 7477 case $cross_compiling:$ac_tool_warned in
cannam@140 7478 yes:)
cannam@140 7479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@140 7480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@140 7481 ac_tool_warned=yes ;;
cannam@140 7482 esac
cannam@140 7483 NMEDIT=$ac_ct_NMEDIT
cannam@140 7484 fi
cannam@140 7485 else
cannam@140 7486 NMEDIT="$ac_cv_prog_NMEDIT"
cannam@140 7487 fi
cannam@140 7488
cannam@140 7489 if test -n "$ac_tool_prefix"; then
cannam@140 7490 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
cannam@140 7491 set dummy ${ac_tool_prefix}lipo; ac_word=$2
cannam@140 7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 7493 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 7494 if ${ac_cv_prog_LIPO+:} false; then :
cannam@140 7495 $as_echo_n "(cached) " >&6
cannam@140 7496 else
cannam@140 7497 if test -n "$LIPO"; then
cannam@140 7498 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
cannam@140 7499 else
cannam@140 7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 7501 for as_dir in $PATH
cannam@140 7502 do
cannam@140 7503 IFS=$as_save_IFS
cannam@140 7504 test -z "$as_dir" && as_dir=.
cannam@140 7505 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 7506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 7507 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cannam@140 7508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 7509 break 2
cannam@140 7510 fi
cannam@140 7511 done
cannam@140 7512 done
cannam@140 7513 IFS=$as_save_IFS
cannam@140 7514
cannam@140 7515 fi
cannam@140 7516 fi
cannam@140 7517 LIPO=$ac_cv_prog_LIPO
cannam@140 7518 if test -n "$LIPO"; then
cannam@140 7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cannam@140 7520 $as_echo "$LIPO" >&6; }
cannam@140 7521 else
cannam@140 7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 7523 $as_echo "no" >&6; }
cannam@140 7524 fi
cannam@140 7525
cannam@140 7526
cannam@140 7527 fi
cannam@140 7528 if test -z "$ac_cv_prog_LIPO"; then
cannam@140 7529 ac_ct_LIPO=$LIPO
cannam@140 7530 # Extract the first word of "lipo", so it can be a program name with args.
cannam@140 7531 set dummy lipo; ac_word=$2
cannam@140 7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 7533 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 7534 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cannam@140 7535 $as_echo_n "(cached) " >&6
cannam@140 7536 else
cannam@140 7537 if test -n "$ac_ct_LIPO"; then
cannam@140 7538 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
cannam@140 7539 else
cannam@140 7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 7541 for as_dir in $PATH
cannam@140 7542 do
cannam@140 7543 IFS=$as_save_IFS
cannam@140 7544 test -z "$as_dir" && as_dir=.
cannam@140 7545 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 7546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 7547 ac_cv_prog_ac_ct_LIPO="lipo"
cannam@140 7548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 7549 break 2
cannam@140 7550 fi
cannam@140 7551 done
cannam@140 7552 done
cannam@140 7553 IFS=$as_save_IFS
cannam@140 7554
cannam@140 7555 fi
cannam@140 7556 fi
cannam@140 7557 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
cannam@140 7558 if test -n "$ac_ct_LIPO"; then
cannam@140 7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cannam@140 7560 $as_echo "$ac_ct_LIPO" >&6; }
cannam@140 7561 else
cannam@140 7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 7563 $as_echo "no" >&6; }
cannam@140 7564 fi
cannam@140 7565
cannam@140 7566 if test "x$ac_ct_LIPO" = x; then
cannam@140 7567 LIPO=":"
cannam@140 7568 else
cannam@140 7569 case $cross_compiling:$ac_tool_warned in
cannam@140 7570 yes:)
cannam@140 7571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@140 7572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@140 7573 ac_tool_warned=yes ;;
cannam@140 7574 esac
cannam@140 7575 LIPO=$ac_ct_LIPO
cannam@140 7576 fi
cannam@140 7577 else
cannam@140 7578 LIPO="$ac_cv_prog_LIPO"
cannam@140 7579 fi
cannam@140 7580
cannam@140 7581 if test -n "$ac_tool_prefix"; then
cannam@140 7582 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
cannam@140 7583 set dummy ${ac_tool_prefix}otool; ac_word=$2
cannam@140 7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 7585 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 7586 if ${ac_cv_prog_OTOOL+:} false; then :
cannam@140 7587 $as_echo_n "(cached) " >&6
cannam@140 7588 else
cannam@140 7589 if test -n "$OTOOL"; then
cannam@140 7590 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
cannam@140 7591 else
cannam@140 7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 7593 for as_dir in $PATH
cannam@140 7594 do
cannam@140 7595 IFS=$as_save_IFS
cannam@140 7596 test -z "$as_dir" && as_dir=.
cannam@140 7597 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 7598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 7599 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cannam@140 7600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 7601 break 2
cannam@140 7602 fi
cannam@140 7603 done
cannam@140 7604 done
cannam@140 7605 IFS=$as_save_IFS
cannam@140 7606
cannam@140 7607 fi
cannam@140 7608 fi
cannam@140 7609 OTOOL=$ac_cv_prog_OTOOL
cannam@140 7610 if test -n "$OTOOL"; then
cannam@140 7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cannam@140 7612 $as_echo "$OTOOL" >&6; }
cannam@140 7613 else
cannam@140 7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 7615 $as_echo "no" >&6; }
cannam@140 7616 fi
cannam@140 7617
cannam@140 7618
cannam@140 7619 fi
cannam@140 7620 if test -z "$ac_cv_prog_OTOOL"; then
cannam@140 7621 ac_ct_OTOOL=$OTOOL
cannam@140 7622 # Extract the first word of "otool", so it can be a program name with args.
cannam@140 7623 set dummy otool; ac_word=$2
cannam@140 7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 7625 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 7626 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cannam@140 7627 $as_echo_n "(cached) " >&6
cannam@140 7628 else
cannam@140 7629 if test -n "$ac_ct_OTOOL"; then
cannam@140 7630 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
cannam@140 7631 else
cannam@140 7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 7633 for as_dir in $PATH
cannam@140 7634 do
cannam@140 7635 IFS=$as_save_IFS
cannam@140 7636 test -z "$as_dir" && as_dir=.
cannam@140 7637 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 7638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 7639 ac_cv_prog_ac_ct_OTOOL="otool"
cannam@140 7640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 7641 break 2
cannam@140 7642 fi
cannam@140 7643 done
cannam@140 7644 done
cannam@140 7645 IFS=$as_save_IFS
cannam@140 7646
cannam@140 7647 fi
cannam@140 7648 fi
cannam@140 7649 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
cannam@140 7650 if test -n "$ac_ct_OTOOL"; then
cannam@140 7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cannam@140 7652 $as_echo "$ac_ct_OTOOL" >&6; }
cannam@140 7653 else
cannam@140 7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 7655 $as_echo "no" >&6; }
cannam@140 7656 fi
cannam@140 7657
cannam@140 7658 if test "x$ac_ct_OTOOL" = x; then
cannam@140 7659 OTOOL=":"
cannam@140 7660 else
cannam@140 7661 case $cross_compiling:$ac_tool_warned in
cannam@140 7662 yes:)
cannam@140 7663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@140 7664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@140 7665 ac_tool_warned=yes ;;
cannam@140 7666 esac
cannam@140 7667 OTOOL=$ac_ct_OTOOL
cannam@140 7668 fi
cannam@140 7669 else
cannam@140 7670 OTOOL="$ac_cv_prog_OTOOL"
cannam@140 7671 fi
cannam@140 7672
cannam@140 7673 if test -n "$ac_tool_prefix"; then
cannam@140 7674 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
cannam@140 7675 set dummy ${ac_tool_prefix}otool64; ac_word=$2
cannam@140 7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 7677 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 7678 if ${ac_cv_prog_OTOOL64+:} false; then :
cannam@140 7679 $as_echo_n "(cached) " >&6
cannam@140 7680 else
cannam@140 7681 if test -n "$OTOOL64"; then
cannam@140 7682 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
cannam@140 7683 else
cannam@140 7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 7685 for as_dir in $PATH
cannam@140 7686 do
cannam@140 7687 IFS=$as_save_IFS
cannam@140 7688 test -z "$as_dir" && as_dir=.
cannam@140 7689 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 7690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 7691 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cannam@140 7692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 7693 break 2
cannam@140 7694 fi
cannam@140 7695 done
cannam@140 7696 done
cannam@140 7697 IFS=$as_save_IFS
cannam@140 7698
cannam@140 7699 fi
cannam@140 7700 fi
cannam@140 7701 OTOOL64=$ac_cv_prog_OTOOL64
cannam@140 7702 if test -n "$OTOOL64"; then
cannam@140 7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cannam@140 7704 $as_echo "$OTOOL64" >&6; }
cannam@140 7705 else
cannam@140 7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 7707 $as_echo "no" >&6; }
cannam@140 7708 fi
cannam@140 7709
cannam@140 7710
cannam@140 7711 fi
cannam@140 7712 if test -z "$ac_cv_prog_OTOOL64"; then
cannam@140 7713 ac_ct_OTOOL64=$OTOOL64
cannam@140 7714 # Extract the first word of "otool64", so it can be a program name with args.
cannam@140 7715 set dummy otool64; ac_word=$2
cannam@140 7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@140 7717 $as_echo_n "checking for $ac_word... " >&6; }
cannam@140 7718 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cannam@140 7719 $as_echo_n "(cached) " >&6
cannam@140 7720 else
cannam@140 7721 if test -n "$ac_ct_OTOOL64"; then
cannam@140 7722 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
cannam@140 7723 else
cannam@140 7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 7725 for as_dir in $PATH
cannam@140 7726 do
cannam@140 7727 IFS=$as_save_IFS
cannam@140 7728 test -z "$as_dir" && as_dir=.
cannam@140 7729 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@140 7730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@140 7731 ac_cv_prog_ac_ct_OTOOL64="otool64"
cannam@140 7732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@140 7733 break 2
cannam@140 7734 fi
cannam@140 7735 done
cannam@140 7736 done
cannam@140 7737 IFS=$as_save_IFS
cannam@140 7738
cannam@140 7739 fi
cannam@140 7740 fi
cannam@140 7741 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
cannam@140 7742 if test -n "$ac_ct_OTOOL64"; then
cannam@140 7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cannam@140 7744 $as_echo "$ac_ct_OTOOL64" >&6; }
cannam@140 7745 else
cannam@140 7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 7747 $as_echo "no" >&6; }
cannam@140 7748 fi
cannam@140 7749
cannam@140 7750 if test "x$ac_ct_OTOOL64" = x; then
cannam@140 7751 OTOOL64=":"
cannam@140 7752 else
cannam@140 7753 case $cross_compiling:$ac_tool_warned in
cannam@140 7754 yes:)
cannam@140 7755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@140 7756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@140 7757 ac_tool_warned=yes ;;
cannam@140 7758 esac
cannam@140 7759 OTOOL64=$ac_ct_OTOOL64
cannam@140 7760 fi
cannam@140 7761 else
cannam@140 7762 OTOOL64="$ac_cv_prog_OTOOL64"
cannam@140 7763 fi
cannam@140 7764
cannam@140 7765
cannam@140 7766
cannam@140 7767
cannam@140 7768
cannam@140 7769
cannam@140 7770
cannam@140 7771
cannam@140 7772
cannam@140 7773
cannam@140 7774
cannam@140 7775
cannam@140 7776
cannam@140 7777
cannam@140 7778
cannam@140 7779
cannam@140 7780
cannam@140 7781
cannam@140 7782
cannam@140 7783
cannam@140 7784
cannam@140 7785
cannam@140 7786
cannam@140 7787
cannam@140 7788
cannam@140 7789
cannam@140 7790
cannam@140 7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cannam@140 7792 $as_echo_n "checking for -single_module linker flag... " >&6; }
cannam@140 7793 if ${lt_cv_apple_cc_single_mod+:} false; then :
cannam@140 7794 $as_echo_n "(cached) " >&6
cannam@140 7795 else
cannam@140 7796 lt_cv_apple_cc_single_mod=no
cannam@140 7797 if test -z "${LT_MULTI_MODULE}"; then
cannam@140 7798 # By default we will add the -single_module flag. You can override
cannam@140 7799 # by either setting the environment variable LT_MULTI_MODULE
cannam@140 7800 # non-empty at configure time, or by adding -multi_module to the
cannam@140 7801 # link flags.
cannam@140 7802 rm -rf libconftest.dylib*
cannam@140 7803 echo "int foo(void){return 1;}" > conftest.c
cannam@140 7804 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
cannam@140 7805 -dynamiclib -Wl,-single_module conftest.c" >&5
cannam@140 7806 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
cannam@140 7807 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
cannam@140 7808 _lt_result=$?
cannam@140 7809 # If there is a non-empty error log, and "single_module"
cannam@140 7810 # appears in it, assume the flag caused a linker warning
cannam@140 7811 if test -s conftest.err && $GREP single_module conftest.err; then
cannam@140 7812 cat conftest.err >&5
cannam@140 7813 # Otherwise, if the output was created with a 0 exit code from
cannam@140 7814 # the compiler, it worked.
cannam@140 7815 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cannam@140 7816 lt_cv_apple_cc_single_mod=yes
cannam@140 7817 else
cannam@140 7818 cat conftest.err >&5
cannam@140 7819 fi
cannam@140 7820 rm -rf libconftest.dylib*
cannam@140 7821 rm -f conftest.*
cannam@140 7822 fi
cannam@140 7823 fi
cannam@140 7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cannam@140 7825 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cannam@140 7826
cannam@140 7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cannam@140 7828 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cannam@140 7829 if ${lt_cv_ld_exported_symbols_list+:} false; then :
cannam@140 7830 $as_echo_n "(cached) " >&6
cannam@140 7831 else
cannam@140 7832 lt_cv_ld_exported_symbols_list=no
cannam@140 7833 save_LDFLAGS=$LDFLAGS
cannam@140 7834 echo "_main" > conftest.sym
cannam@140 7835 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cannam@140 7836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 7837 /* end confdefs.h. */
cannam@140 7838
cannam@140 7839 int
cannam@140 7840 main ()
cannam@140 7841 {
cannam@140 7842
cannam@140 7843 ;
cannam@140 7844 return 0;
cannam@140 7845 }
cannam@140 7846 _ACEOF
cannam@140 7847 if ac_fn_c_try_link "$LINENO"; then :
cannam@140 7848 lt_cv_ld_exported_symbols_list=yes
cannam@140 7849 else
cannam@140 7850 lt_cv_ld_exported_symbols_list=no
cannam@140 7851 fi
cannam@140 7852 rm -f core conftest.err conftest.$ac_objext \
cannam@140 7853 conftest$ac_exeext conftest.$ac_ext
cannam@140 7854 LDFLAGS="$save_LDFLAGS"
cannam@140 7855
cannam@140 7856 fi
cannam@140 7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cannam@140 7858 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cannam@140 7859
cannam@140 7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
cannam@140 7861 $as_echo_n "checking for -force_load linker flag... " >&6; }
cannam@140 7862 if ${lt_cv_ld_force_load+:} false; then :
cannam@140 7863 $as_echo_n "(cached) " >&6
cannam@140 7864 else
cannam@140 7865 lt_cv_ld_force_load=no
cannam@140 7866 cat > conftest.c << _LT_EOF
cannam@140 7867 int forced_loaded() { return 2;}
cannam@140 7868 _LT_EOF
cannam@140 7869 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
cannam@140 7870 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
cannam@140 7871 echo "$AR cru libconftest.a conftest.o" >&5
cannam@140 7872 $AR cru libconftest.a conftest.o 2>&5
cannam@140 7873 echo "$RANLIB libconftest.a" >&5
cannam@140 7874 $RANLIB libconftest.a 2>&5
cannam@140 7875 cat > conftest.c << _LT_EOF
cannam@140 7876 int main() { return 0;}
cannam@140 7877 _LT_EOF
cannam@140 7878 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
cannam@140 7879 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
cannam@140 7880 _lt_result=$?
cannam@140 7881 if test -s conftest.err && $GREP force_load conftest.err; then
cannam@140 7882 cat conftest.err >&5
cannam@140 7883 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cannam@140 7884 lt_cv_ld_force_load=yes
cannam@140 7885 else
cannam@140 7886 cat conftest.err >&5
cannam@140 7887 fi
cannam@140 7888 rm -f conftest.err libconftest.a conftest conftest.c
cannam@140 7889 rm -rf conftest.dSYM
cannam@140 7890
cannam@140 7891 fi
cannam@140 7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
cannam@140 7893 $as_echo "$lt_cv_ld_force_load" >&6; }
cannam@140 7894 case $host_os in
cannam@140 7895 rhapsody* | darwin1.[012])
cannam@140 7896 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
cannam@140 7897 darwin1.*)
cannam@140 7898 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
cannam@140 7899 darwin*) # darwin 5.x on
cannam@140 7900 # if running on 10.5 or later, the deployment target defaults
cannam@140 7901 # to the OS version, if on x86, and 10.4, the deployment
cannam@140 7902 # target defaults to 10.4. Don't you love it?
cannam@140 7903 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
cannam@140 7904 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
cannam@140 7905 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
cannam@140 7906 10.[012]*)
cannam@140 7907 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
cannam@140 7908 10.*)
cannam@140 7909 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
cannam@140 7910 esac
cannam@140 7911 ;;
cannam@140 7912 esac
cannam@140 7913 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
cannam@140 7914 _lt_dar_single_mod='$single_module'
cannam@140 7915 fi
cannam@140 7916 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
cannam@140 7917 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
cannam@140 7918 else
cannam@140 7919 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
cannam@140 7920 fi
cannam@140 7921 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cannam@140 7922 _lt_dsymutil='~$DSYMUTIL $lib || :'
cannam@140 7923 else
cannam@140 7924 _lt_dsymutil=
cannam@140 7925 fi
cannam@140 7926 ;;
cannam@140 7927 esac
cannam@140 7928
cannam@140 7929 ac_ext=c
cannam@140 7930 ac_cpp='$CPP $CPPFLAGS'
cannam@140 7931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@140 7932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@140 7933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@140 7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cannam@140 7935 $as_echo_n "checking how to run the C preprocessor... " >&6; }
cannam@140 7936 # On Suns, sometimes $CPP names a directory.
cannam@140 7937 if test -n "$CPP" && test -d "$CPP"; then
cannam@140 7938 CPP=
cannam@140 7939 fi
cannam@140 7940 if test -z "$CPP"; then
cannam@140 7941 if ${ac_cv_prog_CPP+:} false; then :
cannam@140 7942 $as_echo_n "(cached) " >&6
cannam@140 7943 else
cannam@140 7944 # Double quotes because CPP needs to be expanded
cannam@140 7945 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
cannam@140 7946 do
cannam@140 7947 ac_preproc_ok=false
cannam@140 7948 for ac_c_preproc_warn_flag in '' yes
cannam@140 7949 do
cannam@140 7950 # Use a header file that comes with gcc, so configuring glibc
cannam@140 7951 # with a fresh cross-compiler works.
cannam@140 7952 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@140 7953 # <limits.h> exists even on freestanding compilers.
cannam@140 7954 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@140 7955 # not just through cpp. "Syntax error" is here to catch this case.
cannam@140 7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 7957 /* end confdefs.h. */
cannam@140 7958 #ifdef __STDC__
cannam@140 7959 # include <limits.h>
cannam@140 7960 #else
cannam@140 7961 # include <assert.h>
cannam@140 7962 #endif
cannam@140 7963 Syntax error
cannam@140 7964 _ACEOF
cannam@140 7965 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@140 7966
cannam@140 7967 else
cannam@140 7968 # Broken: fails on valid input.
cannam@140 7969 continue
cannam@140 7970 fi
cannam@140 7971 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@140 7972
cannam@140 7973 # OK, works on sane cases. Now check whether nonexistent headers
cannam@140 7974 # can be detected and how.
cannam@140 7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 7976 /* end confdefs.h. */
cannam@140 7977 #include <ac_nonexistent.h>
cannam@140 7978 _ACEOF
cannam@140 7979 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@140 7980 # Broken: success on invalid input.
cannam@140 7981 continue
cannam@140 7982 else
cannam@140 7983 # Passes both tests.
cannam@140 7984 ac_preproc_ok=:
cannam@140 7985 break
cannam@140 7986 fi
cannam@140 7987 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@140 7988
cannam@140 7989 done
cannam@140 7990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@140 7991 rm -f conftest.i conftest.err conftest.$ac_ext
cannam@140 7992 if $ac_preproc_ok; then :
cannam@140 7993 break
cannam@140 7994 fi
cannam@140 7995
cannam@140 7996 done
cannam@140 7997 ac_cv_prog_CPP=$CPP
cannam@140 7998
cannam@140 7999 fi
cannam@140 8000 CPP=$ac_cv_prog_CPP
cannam@140 8001 else
cannam@140 8002 ac_cv_prog_CPP=$CPP
cannam@140 8003 fi
cannam@140 8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cannam@140 8005 $as_echo "$CPP" >&6; }
cannam@140 8006 ac_preproc_ok=false
cannam@140 8007 for ac_c_preproc_warn_flag in '' yes
cannam@140 8008 do
cannam@140 8009 # Use a header file that comes with gcc, so configuring glibc
cannam@140 8010 # with a fresh cross-compiler works.
cannam@140 8011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@140 8012 # <limits.h> exists even on freestanding compilers.
cannam@140 8013 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@140 8014 # not just through cpp. "Syntax error" is here to catch this case.
cannam@140 8015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 8016 /* end confdefs.h. */
cannam@140 8017 #ifdef __STDC__
cannam@140 8018 # include <limits.h>
cannam@140 8019 #else
cannam@140 8020 # include <assert.h>
cannam@140 8021 #endif
cannam@140 8022 Syntax error
cannam@140 8023 _ACEOF
cannam@140 8024 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@140 8025
cannam@140 8026 else
cannam@140 8027 # Broken: fails on valid input.
cannam@140 8028 continue
cannam@140 8029 fi
cannam@140 8030 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@140 8031
cannam@140 8032 # OK, works on sane cases. Now check whether nonexistent headers
cannam@140 8033 # can be detected and how.
cannam@140 8034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 8035 /* end confdefs.h. */
cannam@140 8036 #include <ac_nonexistent.h>
cannam@140 8037 _ACEOF
cannam@140 8038 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@140 8039 # Broken: success on invalid input.
cannam@140 8040 continue
cannam@140 8041 else
cannam@140 8042 # Passes both tests.
cannam@140 8043 ac_preproc_ok=:
cannam@140 8044 break
cannam@140 8045 fi
cannam@140 8046 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@140 8047
cannam@140 8048 done
cannam@140 8049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@140 8050 rm -f conftest.i conftest.err conftest.$ac_ext
cannam@140 8051 if $ac_preproc_ok; then :
cannam@140 8052
cannam@140 8053 else
cannam@140 8054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@140 8055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@140 8056 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
cannam@140 8057 See \`config.log' for more details" "$LINENO" 5; }
cannam@140 8058 fi
cannam@140 8059
cannam@140 8060 ac_ext=c
cannam@140 8061 ac_cpp='$CPP $CPPFLAGS'
cannam@140 8062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@140 8063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@140 8064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@140 8065
cannam@140 8066
cannam@140 8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cannam@140 8068 $as_echo_n "checking for ANSI C header files... " >&6; }
cannam@140 8069 if ${ac_cv_header_stdc+:} false; then :
cannam@140 8070 $as_echo_n "(cached) " >&6
cannam@140 8071 else
cannam@140 8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 8073 /* end confdefs.h. */
cannam@140 8074 #include <stdlib.h>
cannam@140 8075 #include <stdarg.h>
cannam@140 8076 #include <string.h>
cannam@140 8077 #include <float.h>
cannam@140 8078
cannam@140 8079 int
cannam@140 8080 main ()
cannam@140 8081 {
cannam@140 8082
cannam@140 8083 ;
cannam@140 8084 return 0;
cannam@140 8085 }
cannam@140 8086 _ACEOF
cannam@140 8087 if ac_fn_c_try_compile "$LINENO"; then :
cannam@140 8088 ac_cv_header_stdc=yes
cannam@140 8089 else
cannam@140 8090 ac_cv_header_stdc=no
cannam@140 8091 fi
cannam@140 8092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@140 8093
cannam@140 8094 if test $ac_cv_header_stdc = yes; then
cannam@140 8095 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cannam@140 8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 8097 /* end confdefs.h. */
cannam@140 8098 #include <string.h>
cannam@140 8099
cannam@140 8100 _ACEOF
cannam@140 8101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@140 8102 $EGREP "memchr" >/dev/null 2>&1; then :
cannam@140 8103
cannam@140 8104 else
cannam@140 8105 ac_cv_header_stdc=no
cannam@140 8106 fi
cannam@140 8107 rm -f conftest*
cannam@140 8108
cannam@140 8109 fi
cannam@140 8110
cannam@140 8111 if test $ac_cv_header_stdc = yes; then
cannam@140 8112 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cannam@140 8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 8114 /* end confdefs.h. */
cannam@140 8115 #include <stdlib.h>
cannam@140 8116
cannam@140 8117 _ACEOF
cannam@140 8118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@140 8119 $EGREP "free" >/dev/null 2>&1; then :
cannam@140 8120
cannam@140 8121 else
cannam@140 8122 ac_cv_header_stdc=no
cannam@140 8123 fi
cannam@140 8124 rm -f conftest*
cannam@140 8125
cannam@140 8126 fi
cannam@140 8127
cannam@140 8128 if test $ac_cv_header_stdc = yes; then
cannam@140 8129 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cannam@140 8130 if test "$cross_compiling" = yes; then :
cannam@140 8131 :
cannam@140 8132 else
cannam@140 8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 8134 /* end confdefs.h. */
cannam@140 8135 #include <ctype.h>
cannam@140 8136 #include <stdlib.h>
cannam@140 8137 #if ((' ' & 0x0FF) == 0x020)
cannam@140 8138 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
cannam@140 8139 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
cannam@140 8140 #else
cannam@140 8141 # define ISLOWER(c) \
cannam@140 8142 (('a' <= (c) && (c) <= 'i') \
cannam@140 8143 || ('j' <= (c) && (c) <= 'r') \
cannam@140 8144 || ('s' <= (c) && (c) <= 'z'))
cannam@140 8145 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
cannam@140 8146 #endif
cannam@140 8147
cannam@140 8148 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
cannam@140 8149 int
cannam@140 8150 main ()
cannam@140 8151 {
cannam@140 8152 int i;
cannam@140 8153 for (i = 0; i < 256; i++)
cannam@140 8154 if (XOR (islower (i), ISLOWER (i))
cannam@140 8155 || toupper (i) != TOUPPER (i))
cannam@140 8156 return 2;
cannam@140 8157 return 0;
cannam@140 8158 }
cannam@140 8159 _ACEOF
cannam@140 8160 if ac_fn_c_try_run "$LINENO"; then :
cannam@140 8161
cannam@140 8162 else
cannam@140 8163 ac_cv_header_stdc=no
cannam@140 8164 fi
cannam@140 8165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@140 8166 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@140 8167 fi
cannam@140 8168
cannam@140 8169 fi
cannam@140 8170 fi
cannam@140 8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cannam@140 8172 $as_echo "$ac_cv_header_stdc" >&6; }
cannam@140 8173 if test $ac_cv_header_stdc = yes; then
cannam@140 8174
cannam@140 8175 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
cannam@140 8176
cannam@140 8177 fi
cannam@140 8178
cannam@140 8179 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
cannam@140 8180 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
cannam@140 8181 inttypes.h stdint.h unistd.h
cannam@140 8182 do :
cannam@140 8183 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cannam@140 8184 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
cannam@140 8185 "
cannam@140 8186 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cannam@140 8187 cat >>confdefs.h <<_ACEOF
cannam@140 8188 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
cannam@140 8189 _ACEOF
cannam@140 8190
cannam@140 8191 fi
cannam@140 8192
cannam@140 8193 done
cannam@140 8194
cannam@140 8195
cannam@140 8196 for ac_header in dlfcn.h
cannam@140 8197 do :
cannam@140 8198 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
cannam@140 8199 "
cannam@140 8200 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cannam@140 8201 cat >>confdefs.h <<_ACEOF
cannam@140 8202 #define HAVE_DLFCN_H 1
cannam@140 8203 _ACEOF
cannam@140 8204
cannam@140 8205 fi
cannam@140 8206
cannam@140 8207 done
cannam@140 8208
cannam@140 8209
cannam@140 8210
cannam@140 8211
cannam@140 8212 func_stripname_cnf ()
cannam@140 8213 {
cannam@140 8214 case ${2} in
cannam@140 8215 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
cannam@140 8216 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
cannam@140 8217 esac
cannam@140 8218 } # func_stripname_cnf
cannam@140 8219
cannam@140 8220
cannam@140 8221
cannam@140 8222
cannam@140 8223
cannam@140 8224 # Set options
cannam@140 8225
cannam@140 8226
cannam@140 8227
cannam@140 8228 enable_dlopen=no
cannam@140 8229
cannam@140 8230
cannam@140 8231
cannam@140 8232 # Check whether --enable-shared was given.
cannam@140 8233 if test "${enable_shared+set}" = set; then :
cannam@140 8234 enableval=$enable_shared; p=${PACKAGE-default}
cannam@140 8235 case $enableval in
cannam@140 8236 yes) enable_shared=yes ;;
cannam@140 8237 no) enable_shared=no ;;
cannam@140 8238 *)
cannam@140 8239 enable_shared=no
cannam@140 8240 # Look at the argument we got. We use all the common list separators.
cannam@140 8241 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@140 8242 for pkg in $enableval; do
cannam@140 8243 IFS="$lt_save_ifs"
cannam@140 8244 if test "X$pkg" = "X$p"; then
cannam@140 8245 enable_shared=yes
cannam@140 8246 fi
cannam@140 8247 done
cannam@140 8248 IFS="$lt_save_ifs"
cannam@140 8249 ;;
cannam@140 8250 esac
cannam@140 8251 else
cannam@140 8252 enable_shared=yes
cannam@140 8253 fi
cannam@140 8254
cannam@140 8255
cannam@140 8256
cannam@140 8257
cannam@140 8258
cannam@140 8259
cannam@140 8260
cannam@140 8261
cannam@140 8262
cannam@140 8263 # Check whether --enable-static was given.
cannam@140 8264 if test "${enable_static+set}" = set; then :
cannam@140 8265 enableval=$enable_static; p=${PACKAGE-default}
cannam@140 8266 case $enableval in
cannam@140 8267 yes) enable_static=yes ;;
cannam@140 8268 no) enable_static=no ;;
cannam@140 8269 *)
cannam@140 8270 enable_static=no
cannam@140 8271 # Look at the argument we got. We use all the common list separators.
cannam@140 8272 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@140 8273 for pkg in $enableval; do
cannam@140 8274 IFS="$lt_save_ifs"
cannam@140 8275 if test "X$pkg" = "X$p"; then
cannam@140 8276 enable_static=yes
cannam@140 8277 fi
cannam@140 8278 done
cannam@140 8279 IFS="$lt_save_ifs"
cannam@140 8280 ;;
cannam@140 8281 esac
cannam@140 8282 else
cannam@140 8283 enable_static=yes
cannam@140 8284 fi
cannam@140 8285
cannam@140 8286
cannam@140 8287
cannam@140 8288
cannam@140 8289
cannam@140 8290
cannam@140 8291
cannam@140 8292
cannam@140 8293
cannam@140 8294
cannam@140 8295 # Check whether --with-pic was given.
cannam@140 8296 if test "${with_pic+set}" = set; then :
cannam@140 8297 withval=$with_pic; lt_p=${PACKAGE-default}
cannam@140 8298 case $withval in
cannam@140 8299 yes|no) pic_mode=$withval ;;
cannam@140 8300 *)
cannam@140 8301 pic_mode=default
cannam@140 8302 # Look at the argument we got. We use all the common list separators.
cannam@140 8303 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@140 8304 for lt_pkg in $withval; do
cannam@140 8305 IFS="$lt_save_ifs"
cannam@140 8306 if test "X$lt_pkg" = "X$lt_p"; then
cannam@140 8307 pic_mode=yes
cannam@140 8308 fi
cannam@140 8309 done
cannam@140 8310 IFS="$lt_save_ifs"
cannam@140 8311 ;;
cannam@140 8312 esac
cannam@140 8313 else
cannam@140 8314 pic_mode=default
cannam@140 8315 fi
cannam@140 8316
cannam@140 8317
cannam@140 8318 test -z "$pic_mode" && pic_mode=default
cannam@140 8319
cannam@140 8320
cannam@140 8321
cannam@140 8322
cannam@140 8323
cannam@140 8324
cannam@140 8325
cannam@140 8326 # Check whether --enable-fast-install was given.
cannam@140 8327 if test "${enable_fast_install+set}" = set; then :
cannam@140 8328 enableval=$enable_fast_install; p=${PACKAGE-default}
cannam@140 8329 case $enableval in
cannam@140 8330 yes) enable_fast_install=yes ;;
cannam@140 8331 no) enable_fast_install=no ;;
cannam@140 8332 *)
cannam@140 8333 enable_fast_install=no
cannam@140 8334 # Look at the argument we got. We use all the common list separators.
cannam@140 8335 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@140 8336 for pkg in $enableval; do
cannam@140 8337 IFS="$lt_save_ifs"
cannam@140 8338 if test "X$pkg" = "X$p"; then
cannam@140 8339 enable_fast_install=yes
cannam@140 8340 fi
cannam@140 8341 done
cannam@140 8342 IFS="$lt_save_ifs"
cannam@140 8343 ;;
cannam@140 8344 esac
cannam@140 8345 else
cannam@140 8346 enable_fast_install=yes
cannam@140 8347 fi
cannam@140 8348
cannam@140 8349
cannam@140 8350
cannam@140 8351
cannam@140 8352
cannam@140 8353
cannam@140 8354
cannam@140 8355
cannam@140 8356
cannam@140 8357
cannam@140 8358
cannam@140 8359 # This can be used to rebuild libtool when needed
cannam@140 8360 LIBTOOL_DEPS="$ltmain"
cannam@140 8361
cannam@140 8362 # Always use our own libtool.
cannam@140 8363 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
cannam@140 8364
cannam@140 8365
cannam@140 8366
cannam@140 8367
cannam@140 8368
cannam@140 8369
cannam@140 8370
cannam@140 8371
cannam@140 8372
cannam@140 8373
cannam@140 8374
cannam@140 8375
cannam@140 8376
cannam@140 8377
cannam@140 8378
cannam@140 8379
cannam@140 8380
cannam@140 8381
cannam@140 8382
cannam@140 8383
cannam@140 8384
cannam@140 8385
cannam@140 8386
cannam@140 8387
cannam@140 8388
cannam@140 8389
cannam@140 8390
cannam@140 8391
cannam@140 8392
cannam@140 8393
cannam@140 8394 test -z "$LN_S" && LN_S="ln -s"
cannam@140 8395
cannam@140 8396
cannam@140 8397
cannam@140 8398
cannam@140 8399
cannam@140 8400
cannam@140 8401
cannam@140 8402
cannam@140 8403
cannam@140 8404
cannam@140 8405
cannam@140 8406
cannam@140 8407
cannam@140 8408
cannam@140 8409 if test -n "${ZSH_VERSION+set}" ; then
cannam@140 8410 setopt NO_GLOB_SUBST
cannam@140 8411 fi
cannam@140 8412
cannam@140 8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cannam@140 8414 $as_echo_n "checking for objdir... " >&6; }
cannam@140 8415 if ${lt_cv_objdir+:} false; then :
cannam@140 8416 $as_echo_n "(cached) " >&6
cannam@140 8417 else
cannam@140 8418 rm -f .libs 2>/dev/null
cannam@140 8419 mkdir .libs 2>/dev/null
cannam@140 8420 if test -d .libs; then
cannam@140 8421 lt_cv_objdir=.libs
cannam@140 8422 else
cannam@140 8423 # MS-DOS does not allow filenames that begin with a dot.
cannam@140 8424 lt_cv_objdir=_libs
cannam@140 8425 fi
cannam@140 8426 rmdir .libs 2>/dev/null
cannam@140 8427 fi
cannam@140 8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cannam@140 8429 $as_echo "$lt_cv_objdir" >&6; }
cannam@140 8430 objdir=$lt_cv_objdir
cannam@140 8431
cannam@140 8432
cannam@140 8433
cannam@140 8434
cannam@140 8435
cannam@140 8436 cat >>confdefs.h <<_ACEOF
cannam@140 8437 #define LT_OBJDIR "$lt_cv_objdir/"
cannam@140 8438 _ACEOF
cannam@140 8439
cannam@140 8440
cannam@140 8441
cannam@140 8442
cannam@140 8443 case $host_os in
cannam@140 8444 aix3*)
cannam@140 8445 # AIX sometimes has problems with the GCC collect2 program. For some
cannam@140 8446 # reason, if we set the COLLECT_NAMES environment variable, the problems
cannam@140 8447 # vanish in a puff of smoke.
cannam@140 8448 if test "X${COLLECT_NAMES+set}" != Xset; then
cannam@140 8449 COLLECT_NAMES=
cannam@140 8450 export COLLECT_NAMES
cannam@140 8451 fi
cannam@140 8452 ;;
cannam@140 8453 esac
cannam@140 8454
cannam@140 8455 # Global variables:
cannam@140 8456 ofile=libtool
cannam@140 8457 can_build_shared=yes
cannam@140 8458
cannam@140 8459 # All known linkers require a `.a' archive for static linking (except MSVC,
cannam@140 8460 # which needs '.lib').
cannam@140 8461 libext=a
cannam@140 8462
cannam@140 8463 with_gnu_ld="$lt_cv_prog_gnu_ld"
cannam@140 8464
cannam@140 8465 old_CC="$CC"
cannam@140 8466 old_CFLAGS="$CFLAGS"
cannam@140 8467
cannam@140 8468 # Set sane defaults for various variables
cannam@140 8469 test -z "$CC" && CC=cc
cannam@140 8470 test -z "$LTCC" && LTCC=$CC
cannam@140 8471 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
cannam@140 8472 test -z "$LD" && LD=ld
cannam@140 8473 test -z "$ac_objext" && ac_objext=o
cannam@140 8474
cannam@140 8475 for cc_temp in $compiler""; do
cannam@140 8476 case $cc_temp in
cannam@140 8477 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
cannam@140 8478 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
cannam@140 8479 \-*) ;;
cannam@140 8480 *) break;;
cannam@140 8481 esac
cannam@140 8482 done
cannam@140 8483 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cannam@140 8484
cannam@140 8485
cannam@140 8486 # Only perform the check for file, if the check method requires it
cannam@140 8487 test -z "$MAGIC_CMD" && MAGIC_CMD=file
cannam@140 8488 case $deplibs_check_method in
cannam@140 8489 file_magic*)
cannam@140 8490 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cannam@140 8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cannam@140 8492 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cannam@140 8493 if ${lt_cv_path_MAGIC_CMD+:} false; then :
cannam@140 8494 $as_echo_n "(cached) " >&6
cannam@140 8495 else
cannam@140 8496 case $MAGIC_CMD in
cannam@140 8497 [\\/*] | ?:[\\/]*)
cannam@140 8498 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
cannam@140 8499 ;;
cannam@140 8500 *)
cannam@140 8501 lt_save_MAGIC_CMD="$MAGIC_CMD"
cannam@140 8502 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@140 8503 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
cannam@140 8504 for ac_dir in $ac_dummy; do
cannam@140 8505 IFS="$lt_save_ifs"
cannam@140 8506 test -z "$ac_dir" && ac_dir=.
cannam@140 8507 if test -f $ac_dir/${ac_tool_prefix}file; then
cannam@140 8508 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
cannam@140 8509 if test -n "$file_magic_test_file"; then
cannam@140 8510 case $deplibs_check_method in
cannam@140 8511 "file_magic "*)
cannam@140 8512 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
cannam@140 8513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@140 8514 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
cannam@140 8515 $EGREP "$file_magic_regex" > /dev/null; then
cannam@140 8516 :
cannam@140 8517 else
cannam@140 8518 cat <<_LT_EOF 1>&2
cannam@140 8519
cannam@140 8520 *** Warning: the command libtool uses to detect shared libraries,
cannam@140 8521 *** $file_magic_cmd, produces output that libtool cannot recognize.
cannam@140 8522 *** The result is that libtool may fail to recognize shared libraries
cannam@140 8523 *** as such. This will affect the creation of libtool libraries that
cannam@140 8524 *** depend on shared libraries, but programs linked with such libtool
cannam@140 8525 *** libraries will work regardless of this problem. Nevertheless, you
cannam@140 8526 *** may want to report the problem to your system manager and/or to
cannam@140 8527 *** bug-libtool@gnu.org
cannam@140 8528
cannam@140 8529 _LT_EOF
cannam@140 8530 fi ;;
cannam@140 8531 esac
cannam@140 8532 fi
cannam@140 8533 break
cannam@140 8534 fi
cannam@140 8535 done
cannam@140 8536 IFS="$lt_save_ifs"
cannam@140 8537 MAGIC_CMD="$lt_save_MAGIC_CMD"
cannam@140 8538 ;;
cannam@140 8539 esac
cannam@140 8540 fi
cannam@140 8541
cannam@140 8542 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@140 8543 if test -n "$MAGIC_CMD"; then
cannam@140 8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cannam@140 8545 $as_echo "$MAGIC_CMD" >&6; }
cannam@140 8546 else
cannam@140 8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 8548 $as_echo "no" >&6; }
cannam@140 8549 fi
cannam@140 8550
cannam@140 8551
cannam@140 8552
cannam@140 8553
cannam@140 8554
cannam@140 8555 if test -z "$lt_cv_path_MAGIC_CMD"; then
cannam@140 8556 if test -n "$ac_tool_prefix"; then
cannam@140 8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cannam@140 8558 $as_echo_n "checking for file... " >&6; }
cannam@140 8559 if ${lt_cv_path_MAGIC_CMD+:} false; then :
cannam@140 8560 $as_echo_n "(cached) " >&6
cannam@140 8561 else
cannam@140 8562 case $MAGIC_CMD in
cannam@140 8563 [\\/*] | ?:[\\/]*)
cannam@140 8564 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
cannam@140 8565 ;;
cannam@140 8566 *)
cannam@140 8567 lt_save_MAGIC_CMD="$MAGIC_CMD"
cannam@140 8568 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@140 8569 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
cannam@140 8570 for ac_dir in $ac_dummy; do
cannam@140 8571 IFS="$lt_save_ifs"
cannam@140 8572 test -z "$ac_dir" && ac_dir=.
cannam@140 8573 if test -f $ac_dir/file; then
cannam@140 8574 lt_cv_path_MAGIC_CMD="$ac_dir/file"
cannam@140 8575 if test -n "$file_magic_test_file"; then
cannam@140 8576 case $deplibs_check_method in
cannam@140 8577 "file_magic "*)
cannam@140 8578 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
cannam@140 8579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@140 8580 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
cannam@140 8581 $EGREP "$file_magic_regex" > /dev/null; then
cannam@140 8582 :
cannam@140 8583 else
cannam@140 8584 cat <<_LT_EOF 1>&2
cannam@140 8585
cannam@140 8586 *** Warning: the command libtool uses to detect shared libraries,
cannam@140 8587 *** $file_magic_cmd, produces output that libtool cannot recognize.
cannam@140 8588 *** The result is that libtool may fail to recognize shared libraries
cannam@140 8589 *** as such. This will affect the creation of libtool libraries that
cannam@140 8590 *** depend on shared libraries, but programs linked with such libtool
cannam@140 8591 *** libraries will work regardless of this problem. Nevertheless, you
cannam@140 8592 *** may want to report the problem to your system manager and/or to
cannam@140 8593 *** bug-libtool@gnu.org
cannam@140 8594
cannam@140 8595 _LT_EOF
cannam@140 8596 fi ;;
cannam@140 8597 esac
cannam@140 8598 fi
cannam@140 8599 break
cannam@140 8600 fi
cannam@140 8601 done
cannam@140 8602 IFS="$lt_save_ifs"
cannam@140 8603 MAGIC_CMD="$lt_save_MAGIC_CMD"
cannam@140 8604 ;;
cannam@140 8605 esac
cannam@140 8606 fi
cannam@140 8607
cannam@140 8608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@140 8609 if test -n "$MAGIC_CMD"; then
cannam@140 8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cannam@140 8611 $as_echo "$MAGIC_CMD" >&6; }
cannam@140 8612 else
cannam@140 8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 8614 $as_echo "no" >&6; }
cannam@140 8615 fi
cannam@140 8616
cannam@140 8617
cannam@140 8618 else
cannam@140 8619 MAGIC_CMD=:
cannam@140 8620 fi
cannam@140 8621 fi
cannam@140 8622
cannam@140 8623 fi
cannam@140 8624 ;;
cannam@140 8625 esac
cannam@140 8626
cannam@140 8627 # Use C for the default configuration in the libtool script
cannam@140 8628
cannam@140 8629 lt_save_CC="$CC"
cannam@140 8630 ac_ext=c
cannam@140 8631 ac_cpp='$CPP $CPPFLAGS'
cannam@140 8632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@140 8633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@140 8634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@140 8635
cannam@140 8636
cannam@140 8637 # Source file extension for C test sources.
cannam@140 8638 ac_ext=c
cannam@140 8639
cannam@140 8640 # Object file extension for compiled C test sources.
cannam@140 8641 objext=o
cannam@140 8642 objext=$objext
cannam@140 8643
cannam@140 8644 # Code to be used in simple compile tests
cannam@140 8645 lt_simple_compile_test_code="int some_variable = 0;"
cannam@140 8646
cannam@140 8647 # Code to be used in simple link tests
cannam@140 8648 lt_simple_link_test_code='int main(){return(0);}'
cannam@140 8649
cannam@140 8650
cannam@140 8651
cannam@140 8652
cannam@140 8653
cannam@140 8654
cannam@140 8655
cannam@140 8656 # If no C compiler was specified, use CC.
cannam@140 8657 LTCC=${LTCC-"$CC"}
cannam@140 8658
cannam@140 8659 # If no C compiler flags were specified, use CFLAGS.
cannam@140 8660 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cannam@140 8661
cannam@140 8662 # Allow CC to be a program name with arguments.
cannam@140 8663 compiler=$CC
cannam@140 8664
cannam@140 8665 # Save the default compiler, since it gets overwritten when the other
cannam@140 8666 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
cannam@140 8667 compiler_DEFAULT=$CC
cannam@140 8668
cannam@140 8669 # save warnings/boilerplate of simple test code
cannam@140 8670 ac_outfile=conftest.$ac_objext
cannam@140 8671 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
cannam@140 8672 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@140 8673 _lt_compiler_boilerplate=`cat conftest.err`
cannam@140 8674 $RM conftest*
cannam@140 8675
cannam@140 8676 ac_outfile=conftest.$ac_objext
cannam@140 8677 echo "$lt_simple_link_test_code" >conftest.$ac_ext
cannam@140 8678 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@140 8679 _lt_linker_boilerplate=`cat conftest.err`
cannam@140 8680 $RM -r conftest*
cannam@140 8681
cannam@140 8682
cannam@140 8683 if test -n "$compiler"; then
cannam@140 8684
cannam@140 8685 lt_prog_compiler_no_builtin_flag=
cannam@140 8686
cannam@140 8687 if test "$GCC" = yes; then
cannam@140 8688 case $cc_basename in
cannam@140 8689 nvcc*)
cannam@140 8690 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
cannam@140 8691 *)
cannam@140 8692 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
cannam@140 8693 esac
cannam@140 8694
cannam@140 8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cannam@140 8696 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cannam@140 8697 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cannam@140 8698 $as_echo_n "(cached) " >&6
cannam@140 8699 else
cannam@140 8700 lt_cv_prog_compiler_rtti_exceptions=no
cannam@140 8701 ac_outfile=conftest.$ac_objext
cannam@140 8702 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@140 8703 lt_compiler_flag="-fno-rtti -fno-exceptions"
cannam@140 8704 # Insert the option either (1) after the last *FLAGS variable, or
cannam@140 8705 # (2) before a word containing "conftest.", or (3) at the end.
cannam@140 8706 # Note that $ac_compile itself does not contain backslashes and begins
cannam@140 8707 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@140 8708 # The option is referenced via a variable to avoid confusing sed.
cannam@140 8709 lt_compile=`echo "$ac_compile" | $SED \
cannam@140 8710 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@140 8711 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@140 8712 -e 's:$: $lt_compiler_flag:'`
cannam@140 8713 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@140 8714 (eval "$lt_compile" 2>conftest.err)
cannam@140 8715 ac_status=$?
cannam@140 8716 cat conftest.err >&5
cannam@140 8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@140 8718 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@140 8719 # The compiler can only warn and ignore the option if not recognized
cannam@140 8720 # So say no if there are warnings other than the usual output.
cannam@140 8721 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cannam@140 8722 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@140 8723 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
cannam@140 8724 lt_cv_prog_compiler_rtti_exceptions=yes
cannam@140 8725 fi
cannam@140 8726 fi
cannam@140 8727 $RM conftest*
cannam@140 8728
cannam@140 8729 fi
cannam@140 8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cannam@140 8731 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
cannam@140 8732
cannam@140 8733 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
cannam@140 8734 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
cannam@140 8735 else
cannam@140 8736 :
cannam@140 8737 fi
cannam@140 8738
cannam@140 8739 fi
cannam@140 8740
cannam@140 8741
cannam@140 8742
cannam@140 8743
cannam@140 8744
cannam@140 8745
cannam@140 8746 lt_prog_compiler_wl=
cannam@140 8747 lt_prog_compiler_pic=
cannam@140 8748 lt_prog_compiler_static=
cannam@140 8749
cannam@140 8750
cannam@140 8751 if test "$GCC" = yes; then
cannam@140 8752 lt_prog_compiler_wl='-Wl,'
cannam@140 8753 lt_prog_compiler_static='-static'
cannam@140 8754
cannam@140 8755 case $host_os in
cannam@140 8756 aix*)
cannam@140 8757 # All AIX code is PIC.
cannam@140 8758 if test "$host_cpu" = ia64; then
cannam@140 8759 # AIX 5 now supports IA64 processor
cannam@140 8760 lt_prog_compiler_static='-Bstatic'
cannam@140 8761 fi
cannam@140 8762 ;;
cannam@140 8763
cannam@140 8764 amigaos*)
cannam@140 8765 case $host_cpu in
cannam@140 8766 powerpc)
cannam@140 8767 # see comment about AmigaOS4 .so support
cannam@140 8768 lt_prog_compiler_pic='-fPIC'
cannam@140 8769 ;;
cannam@140 8770 m68k)
cannam@140 8771 # FIXME: we need at least 68020 code to build shared libraries, but
cannam@140 8772 # adding the `-m68020' flag to GCC prevents building anything better,
cannam@140 8773 # like `-m68040'.
cannam@140 8774 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
cannam@140 8775 ;;
cannam@140 8776 esac
cannam@140 8777 ;;
cannam@140 8778
cannam@140 8779 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
cannam@140 8780 # PIC is the default for these OSes.
cannam@140 8781 ;;
cannam@140 8782
cannam@140 8783 mingw* | cygwin* | pw32* | os2* | cegcc*)
cannam@140 8784 # This hack is so that the source file can tell whether it is being
cannam@140 8785 # built for inclusion in a dll (and should export symbols for example).
cannam@140 8786 # Although the cygwin gcc ignores -fPIC, still need this for old-style
cannam@140 8787 # (--disable-auto-import) libraries
cannam@140 8788 lt_prog_compiler_pic='-DDLL_EXPORT'
cannam@140 8789 ;;
cannam@140 8790
cannam@140 8791 darwin* | rhapsody*)
cannam@140 8792 # PIC is the default on this platform
cannam@140 8793 # Common symbols not allowed in MH_DYLIB files
cannam@140 8794 lt_prog_compiler_pic='-fno-common'
cannam@140 8795 ;;
cannam@140 8796
cannam@140 8797 haiku*)
cannam@140 8798 # PIC is the default for Haiku.
cannam@140 8799 # The "-static" flag exists, but is broken.
cannam@140 8800 lt_prog_compiler_static=
cannam@140 8801 ;;
cannam@140 8802
cannam@140 8803 hpux*)
cannam@140 8804 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
cannam@140 8805 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
cannam@140 8806 # sets the default TLS model and affects inlining.
cannam@140 8807 case $host_cpu in
cannam@140 8808 hppa*64*)
cannam@140 8809 # +Z the default
cannam@140 8810 ;;
cannam@140 8811 *)
cannam@140 8812 lt_prog_compiler_pic='-fPIC'
cannam@140 8813 ;;
cannam@140 8814 esac
cannam@140 8815 ;;
cannam@140 8816
cannam@140 8817 interix[3-9]*)
cannam@140 8818 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
cannam@140 8819 # Instead, we relocate shared libraries at runtime.
cannam@140 8820 ;;
cannam@140 8821
cannam@140 8822 msdosdjgpp*)
cannam@140 8823 # Just because we use GCC doesn't mean we suddenly get shared libraries
cannam@140 8824 # on systems that don't support them.
cannam@140 8825 lt_prog_compiler_can_build_shared=no
cannam@140 8826 enable_shared=no
cannam@140 8827 ;;
cannam@140 8828
cannam@140 8829 *nto* | *qnx*)
cannam@140 8830 # QNX uses GNU C++, but need to define -shared option too, otherwise
cannam@140 8831 # it will coredump.
cannam@140 8832 lt_prog_compiler_pic='-fPIC -shared'
cannam@140 8833 ;;
cannam@140 8834
cannam@140 8835 sysv4*MP*)
cannam@140 8836 if test -d /usr/nec; then
cannam@140 8837 lt_prog_compiler_pic=-Kconform_pic
cannam@140 8838 fi
cannam@140 8839 ;;
cannam@140 8840
cannam@140 8841 *)
cannam@140 8842 lt_prog_compiler_pic='-fPIC'
cannam@140 8843 ;;
cannam@140 8844 esac
cannam@140 8845
cannam@140 8846 case $cc_basename in
cannam@140 8847 nvcc*) # Cuda Compiler Driver 2.2
cannam@140 8848 lt_prog_compiler_wl='-Xlinker '
cannam@140 8849 if test -n "$lt_prog_compiler_pic"; then
cannam@140 8850 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
cannam@140 8851 fi
cannam@140 8852 ;;
cannam@140 8853 esac
cannam@140 8854 else
cannam@140 8855 # PORTME Check for flag to pass linker flags through the system compiler.
cannam@140 8856 case $host_os in
cannam@140 8857 aix*)
cannam@140 8858 lt_prog_compiler_wl='-Wl,'
cannam@140 8859 if test "$host_cpu" = ia64; then
cannam@140 8860 # AIX 5 now supports IA64 processor
cannam@140 8861 lt_prog_compiler_static='-Bstatic'
cannam@140 8862 else
cannam@140 8863 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
cannam@140 8864 fi
cannam@140 8865 ;;
cannam@140 8866
cannam@140 8867 mingw* | cygwin* | pw32* | os2* | cegcc*)
cannam@140 8868 # This hack is so that the source file can tell whether it is being
cannam@140 8869 # built for inclusion in a dll (and should export symbols for example).
cannam@140 8870 lt_prog_compiler_pic='-DDLL_EXPORT'
cannam@140 8871 ;;
cannam@140 8872
cannam@140 8873 hpux9* | hpux10* | hpux11*)
cannam@140 8874 lt_prog_compiler_wl='-Wl,'
cannam@140 8875 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cannam@140 8876 # not for PA HP-UX.
cannam@140 8877 case $host_cpu in
cannam@140 8878 hppa*64*|ia64*)
cannam@140 8879 # +Z the default
cannam@140 8880 ;;
cannam@140 8881 *)
cannam@140 8882 lt_prog_compiler_pic='+Z'
cannam@140 8883 ;;
cannam@140 8884 esac
cannam@140 8885 # Is there a better lt_prog_compiler_static that works with the bundled CC?
cannam@140 8886 lt_prog_compiler_static='${wl}-a ${wl}archive'
cannam@140 8887 ;;
cannam@140 8888
cannam@140 8889 irix5* | irix6* | nonstopux*)
cannam@140 8890 lt_prog_compiler_wl='-Wl,'
cannam@140 8891 # PIC (with -KPIC) is the default.
cannam@140 8892 lt_prog_compiler_static='-non_shared'
cannam@140 8893 ;;
cannam@140 8894
cannam@140 8895 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cannam@140 8896 case $cc_basename in
cannam@140 8897 # old Intel for x86_64 which still supported -KPIC.
cannam@140 8898 ecc*)
cannam@140 8899 lt_prog_compiler_wl='-Wl,'
cannam@140 8900 lt_prog_compiler_pic='-KPIC'
cannam@140 8901 lt_prog_compiler_static='-static'
cannam@140 8902 ;;
cannam@140 8903 # icc used to be incompatible with GCC.
cannam@140 8904 # ICC 10 doesn't accept -KPIC any more.
cannam@140 8905 icc* | ifort*)
cannam@140 8906 lt_prog_compiler_wl='-Wl,'
cannam@140 8907 lt_prog_compiler_pic='-fPIC'
cannam@140 8908 lt_prog_compiler_static='-static'
cannam@140 8909 ;;
cannam@140 8910 # Lahey Fortran 8.1.
cannam@140 8911 lf95*)
cannam@140 8912 lt_prog_compiler_wl='-Wl,'
cannam@140 8913 lt_prog_compiler_pic='--shared'
cannam@140 8914 lt_prog_compiler_static='--static'
cannam@140 8915 ;;
cannam@140 8916 nagfor*)
cannam@140 8917 # NAG Fortran compiler
cannam@140 8918 lt_prog_compiler_wl='-Wl,-Wl,,'
cannam@140 8919 lt_prog_compiler_pic='-PIC'
cannam@140 8920 lt_prog_compiler_static='-Bstatic'
cannam@140 8921 ;;
cannam@140 8922 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cannam@140 8923 # Portland Group compilers (*not* the Pentium gcc compiler,
cannam@140 8924 # which looks to be a dead project)
cannam@140 8925 lt_prog_compiler_wl='-Wl,'
cannam@140 8926 lt_prog_compiler_pic='-fpic'
cannam@140 8927 lt_prog_compiler_static='-Bstatic'
cannam@140 8928 ;;
cannam@140 8929 ccc*)
cannam@140 8930 lt_prog_compiler_wl='-Wl,'
cannam@140 8931 # All Alpha code is PIC.
cannam@140 8932 lt_prog_compiler_static='-non_shared'
cannam@140 8933 ;;
cannam@140 8934 xl* | bgxl* | bgf* | mpixl*)
cannam@140 8935 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cannam@140 8936 lt_prog_compiler_wl='-Wl,'
cannam@140 8937 lt_prog_compiler_pic='-qpic'
cannam@140 8938 lt_prog_compiler_static='-qstaticlink'
cannam@140 8939 ;;
cannam@140 8940 *)
cannam@140 8941 case `$CC -V 2>&1 | sed 5q` in
cannam@140 8942 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cannam@140 8943 # Sun Fortran 8.3 passes all unrecognized flags to the linker
cannam@140 8944 lt_prog_compiler_pic='-KPIC'
cannam@140 8945 lt_prog_compiler_static='-Bstatic'
cannam@140 8946 lt_prog_compiler_wl=''
cannam@140 8947 ;;
cannam@140 8948 *Sun\ F* | *Sun*Fortran*)
cannam@140 8949 lt_prog_compiler_pic='-KPIC'
cannam@140 8950 lt_prog_compiler_static='-Bstatic'
cannam@140 8951 lt_prog_compiler_wl='-Qoption ld '
cannam@140 8952 ;;
cannam@140 8953 *Sun\ C*)
cannam@140 8954 # Sun C 5.9
cannam@140 8955 lt_prog_compiler_pic='-KPIC'
cannam@140 8956 lt_prog_compiler_static='-Bstatic'
cannam@140 8957 lt_prog_compiler_wl='-Wl,'
cannam@140 8958 ;;
cannam@140 8959 *Intel*\ [CF]*Compiler*)
cannam@140 8960 lt_prog_compiler_wl='-Wl,'
cannam@140 8961 lt_prog_compiler_pic='-fPIC'
cannam@140 8962 lt_prog_compiler_static='-static'
cannam@140 8963 ;;
cannam@140 8964 *Portland\ Group*)
cannam@140 8965 lt_prog_compiler_wl='-Wl,'
cannam@140 8966 lt_prog_compiler_pic='-fpic'
cannam@140 8967 lt_prog_compiler_static='-Bstatic'
cannam@140 8968 ;;
cannam@140 8969 esac
cannam@140 8970 ;;
cannam@140 8971 esac
cannam@140 8972 ;;
cannam@140 8973
cannam@140 8974 newsos6)
cannam@140 8975 lt_prog_compiler_pic='-KPIC'
cannam@140 8976 lt_prog_compiler_static='-Bstatic'
cannam@140 8977 ;;
cannam@140 8978
cannam@140 8979 *nto* | *qnx*)
cannam@140 8980 # QNX uses GNU C++, but need to define -shared option too, otherwise
cannam@140 8981 # it will coredump.
cannam@140 8982 lt_prog_compiler_pic='-fPIC -shared'
cannam@140 8983 ;;
cannam@140 8984
cannam@140 8985 osf3* | osf4* | osf5*)
cannam@140 8986 lt_prog_compiler_wl='-Wl,'
cannam@140 8987 # All OSF/1 code is PIC.
cannam@140 8988 lt_prog_compiler_static='-non_shared'
cannam@140 8989 ;;
cannam@140 8990
cannam@140 8991 rdos*)
cannam@140 8992 lt_prog_compiler_static='-non_shared'
cannam@140 8993 ;;
cannam@140 8994
cannam@140 8995 solaris*)
cannam@140 8996 lt_prog_compiler_pic='-KPIC'
cannam@140 8997 lt_prog_compiler_static='-Bstatic'
cannam@140 8998 case $cc_basename in
cannam@140 8999 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cannam@140 9000 lt_prog_compiler_wl='-Qoption ld ';;
cannam@140 9001 *)
cannam@140 9002 lt_prog_compiler_wl='-Wl,';;
cannam@140 9003 esac
cannam@140 9004 ;;
cannam@140 9005
cannam@140 9006 sunos4*)
cannam@140 9007 lt_prog_compiler_wl='-Qoption ld '
cannam@140 9008 lt_prog_compiler_pic='-PIC'
cannam@140 9009 lt_prog_compiler_static='-Bstatic'
cannam@140 9010 ;;
cannam@140 9011
cannam@140 9012 sysv4 | sysv4.2uw2* | sysv4.3*)
cannam@140 9013 lt_prog_compiler_wl='-Wl,'
cannam@140 9014 lt_prog_compiler_pic='-KPIC'
cannam@140 9015 lt_prog_compiler_static='-Bstatic'
cannam@140 9016 ;;
cannam@140 9017
cannam@140 9018 sysv4*MP*)
cannam@140 9019 if test -d /usr/nec ;then
cannam@140 9020 lt_prog_compiler_pic='-Kconform_pic'
cannam@140 9021 lt_prog_compiler_static='-Bstatic'
cannam@140 9022 fi
cannam@140 9023 ;;
cannam@140 9024
cannam@140 9025 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
cannam@140 9026 lt_prog_compiler_wl='-Wl,'
cannam@140 9027 lt_prog_compiler_pic='-KPIC'
cannam@140 9028 lt_prog_compiler_static='-Bstatic'
cannam@140 9029 ;;
cannam@140 9030
cannam@140 9031 unicos*)
cannam@140 9032 lt_prog_compiler_wl='-Wl,'
cannam@140 9033 lt_prog_compiler_can_build_shared=no
cannam@140 9034 ;;
cannam@140 9035
cannam@140 9036 uts4*)
cannam@140 9037 lt_prog_compiler_pic='-pic'
cannam@140 9038 lt_prog_compiler_static='-Bstatic'
cannam@140 9039 ;;
cannam@140 9040
cannam@140 9041 *)
cannam@140 9042 lt_prog_compiler_can_build_shared=no
cannam@140 9043 ;;
cannam@140 9044 esac
cannam@140 9045 fi
cannam@140 9046
cannam@140 9047 case $host_os in
cannam@140 9048 # For platforms which do not support PIC, -DPIC is meaningless:
cannam@140 9049 *djgpp*)
cannam@140 9050 lt_prog_compiler_pic=
cannam@140 9051 ;;
cannam@140 9052 *)
cannam@140 9053 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
cannam@140 9054 ;;
cannam@140 9055 esac
cannam@140 9056
cannam@140 9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cannam@140 9058 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
cannam@140 9059 if ${lt_cv_prog_compiler_pic+:} false; then :
cannam@140 9060 $as_echo_n "(cached) " >&6
cannam@140 9061 else
cannam@140 9062 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
cannam@140 9063 fi
cannam@140 9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
cannam@140 9065 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
cannam@140 9066 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cannam@140 9067
cannam@140 9068 #
cannam@140 9069 # Check to make sure the PIC flag actually works.
cannam@140 9070 #
cannam@140 9071 if test -n "$lt_prog_compiler_pic"; then
cannam@140 9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cannam@140 9073 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cannam@140 9074 if ${lt_cv_prog_compiler_pic_works+:} false; then :
cannam@140 9075 $as_echo_n "(cached) " >&6
cannam@140 9076 else
cannam@140 9077 lt_cv_prog_compiler_pic_works=no
cannam@140 9078 ac_outfile=conftest.$ac_objext
cannam@140 9079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@140 9080 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
cannam@140 9081 # Insert the option either (1) after the last *FLAGS variable, or
cannam@140 9082 # (2) before a word containing "conftest.", or (3) at the end.
cannam@140 9083 # Note that $ac_compile itself does not contain backslashes and begins
cannam@140 9084 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@140 9085 # The option is referenced via a variable to avoid confusing sed.
cannam@140 9086 lt_compile=`echo "$ac_compile" | $SED \
cannam@140 9087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@140 9088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@140 9089 -e 's:$: $lt_compiler_flag:'`
cannam@140 9090 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@140 9091 (eval "$lt_compile" 2>conftest.err)
cannam@140 9092 ac_status=$?
cannam@140 9093 cat conftest.err >&5
cannam@140 9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@140 9095 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@140 9096 # The compiler can only warn and ignore the option if not recognized
cannam@140 9097 # So say no if there are warnings other than the usual output.
cannam@140 9098 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cannam@140 9099 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@140 9100 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
cannam@140 9101 lt_cv_prog_compiler_pic_works=yes
cannam@140 9102 fi
cannam@140 9103 fi
cannam@140 9104 $RM conftest*
cannam@140 9105
cannam@140 9106 fi
cannam@140 9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cannam@140 9108 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
cannam@140 9109
cannam@140 9110 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
cannam@140 9111 case $lt_prog_compiler_pic in
cannam@140 9112 "" | " "*) ;;
cannam@140 9113 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
cannam@140 9114 esac
cannam@140 9115 else
cannam@140 9116 lt_prog_compiler_pic=
cannam@140 9117 lt_prog_compiler_can_build_shared=no
cannam@140 9118 fi
cannam@140 9119
cannam@140 9120 fi
cannam@140 9121
cannam@140 9122
cannam@140 9123
cannam@140 9124
cannam@140 9125
cannam@140 9126
cannam@140 9127
cannam@140 9128
cannam@140 9129
cannam@140 9130
cannam@140 9131
cannam@140 9132 #
cannam@140 9133 # Check to make sure the static flag actually works.
cannam@140 9134 #
cannam@140 9135 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cannam@140 9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cannam@140 9137 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cannam@140 9138 if ${lt_cv_prog_compiler_static_works+:} false; then :
cannam@140 9139 $as_echo_n "(cached) " >&6
cannam@140 9140 else
cannam@140 9141 lt_cv_prog_compiler_static_works=no
cannam@140 9142 save_LDFLAGS="$LDFLAGS"
cannam@140 9143 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
cannam@140 9144 echo "$lt_simple_link_test_code" > conftest.$ac_ext
cannam@140 9145 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
cannam@140 9146 # The linker can only warn and ignore the option if not recognized
cannam@140 9147 # So say no if there are warnings
cannam@140 9148 if test -s conftest.err; then
cannam@140 9149 # Append any errors to the config.log.
cannam@140 9150 cat conftest.err 1>&5
cannam@140 9151 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cannam@140 9152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@140 9153 if diff conftest.exp conftest.er2 >/dev/null; then
cannam@140 9154 lt_cv_prog_compiler_static_works=yes
cannam@140 9155 fi
cannam@140 9156 else
cannam@140 9157 lt_cv_prog_compiler_static_works=yes
cannam@140 9158 fi
cannam@140 9159 fi
cannam@140 9160 $RM -r conftest*
cannam@140 9161 LDFLAGS="$save_LDFLAGS"
cannam@140 9162
cannam@140 9163 fi
cannam@140 9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cannam@140 9165 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
cannam@140 9166
cannam@140 9167 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
cannam@140 9168 :
cannam@140 9169 else
cannam@140 9170 lt_prog_compiler_static=
cannam@140 9171 fi
cannam@140 9172
cannam@140 9173
cannam@140 9174
cannam@140 9175
cannam@140 9176
cannam@140 9177
cannam@140 9178
cannam@140 9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@140 9180 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cannam@140 9181 if ${lt_cv_prog_compiler_c_o+:} false; then :
cannam@140 9182 $as_echo_n "(cached) " >&6
cannam@140 9183 else
cannam@140 9184 lt_cv_prog_compiler_c_o=no
cannam@140 9185 $RM -r conftest 2>/dev/null
cannam@140 9186 mkdir conftest
cannam@140 9187 cd conftest
cannam@140 9188 mkdir out
cannam@140 9189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@140 9190
cannam@140 9191 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@140 9192 # Insert the option either (1) after the last *FLAGS variable, or
cannam@140 9193 # (2) before a word containing "conftest.", or (3) at the end.
cannam@140 9194 # Note that $ac_compile itself does not contain backslashes and begins
cannam@140 9195 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@140 9196 lt_compile=`echo "$ac_compile" | $SED \
cannam@140 9197 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@140 9198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@140 9199 -e 's:$: $lt_compiler_flag:'`
cannam@140 9200 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@140 9201 (eval "$lt_compile" 2>out/conftest.err)
cannam@140 9202 ac_status=$?
cannam@140 9203 cat out/conftest.err >&5
cannam@140 9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@140 9205 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@140 9206 then
cannam@140 9207 # The compiler can only warn and ignore the option if not recognized
cannam@140 9208 # So say no if there are warnings
cannam@140 9209 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cannam@140 9210 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cannam@140 9211 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cannam@140 9212 lt_cv_prog_compiler_c_o=yes
cannam@140 9213 fi
cannam@140 9214 fi
cannam@140 9215 chmod u+w . 2>&5
cannam@140 9216 $RM conftest*
cannam@140 9217 # SGI C++ compiler will create directory out/ii_files/ for
cannam@140 9218 # template instantiation
cannam@140 9219 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
cannam@140 9220 $RM out/* && rmdir out
cannam@140 9221 cd ..
cannam@140 9222 $RM -r conftest
cannam@140 9223 $RM conftest*
cannam@140 9224
cannam@140 9225 fi
cannam@140 9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cannam@140 9227 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
cannam@140 9228
cannam@140 9229
cannam@140 9230
cannam@140 9231
cannam@140 9232
cannam@140 9233
cannam@140 9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@140 9235 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cannam@140 9236 if ${lt_cv_prog_compiler_c_o+:} false; then :
cannam@140 9237 $as_echo_n "(cached) " >&6
cannam@140 9238 else
cannam@140 9239 lt_cv_prog_compiler_c_o=no
cannam@140 9240 $RM -r conftest 2>/dev/null
cannam@140 9241 mkdir conftest
cannam@140 9242 cd conftest
cannam@140 9243 mkdir out
cannam@140 9244 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@140 9245
cannam@140 9246 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@140 9247 # Insert the option either (1) after the last *FLAGS variable, or
cannam@140 9248 # (2) before a word containing "conftest.", or (3) at the end.
cannam@140 9249 # Note that $ac_compile itself does not contain backslashes and begins
cannam@140 9250 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@140 9251 lt_compile=`echo "$ac_compile" | $SED \
cannam@140 9252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@140 9253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@140 9254 -e 's:$: $lt_compiler_flag:'`
cannam@140 9255 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@140 9256 (eval "$lt_compile" 2>out/conftest.err)
cannam@140 9257 ac_status=$?
cannam@140 9258 cat out/conftest.err >&5
cannam@140 9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@140 9260 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@140 9261 then
cannam@140 9262 # The compiler can only warn and ignore the option if not recognized
cannam@140 9263 # So say no if there are warnings
cannam@140 9264 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cannam@140 9265 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cannam@140 9266 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cannam@140 9267 lt_cv_prog_compiler_c_o=yes
cannam@140 9268 fi
cannam@140 9269 fi
cannam@140 9270 chmod u+w . 2>&5
cannam@140 9271 $RM conftest*
cannam@140 9272 # SGI C++ compiler will create directory out/ii_files/ for
cannam@140 9273 # template instantiation
cannam@140 9274 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
cannam@140 9275 $RM out/* && rmdir out
cannam@140 9276 cd ..
cannam@140 9277 $RM -r conftest
cannam@140 9278 $RM conftest*
cannam@140 9279
cannam@140 9280 fi
cannam@140 9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cannam@140 9282 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
cannam@140 9283
cannam@140 9284
cannam@140 9285
cannam@140 9286
cannam@140 9287 hard_links="nottested"
cannam@140 9288 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
cannam@140 9289 # do not overwrite the value of need_locks provided by the user
cannam@140 9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cannam@140 9291 $as_echo_n "checking if we can lock with hard links... " >&6; }
cannam@140 9292 hard_links=yes
cannam@140 9293 $RM conftest*
cannam@140 9294 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@140 9295 touch conftest.a
cannam@140 9296 ln conftest.a conftest.b 2>&5 || hard_links=no
cannam@140 9297 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@140 9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cannam@140 9299 $as_echo "$hard_links" >&6; }
cannam@140 9300 if test "$hard_links" = no; then
cannam@140 9301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cannam@140 9302 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
cannam@140 9303 need_locks=warn
cannam@140 9304 fi
cannam@140 9305 else
cannam@140 9306 need_locks=no
cannam@140 9307 fi
cannam@140 9308
cannam@140 9309
cannam@140 9310
cannam@140 9311
cannam@140 9312
cannam@140 9313
cannam@140 9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@140 9315 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
cannam@140 9316
cannam@140 9317 runpath_var=
cannam@140 9318 allow_undefined_flag=
cannam@140 9319 always_export_symbols=no
cannam@140 9320 archive_cmds=
cannam@140 9321 archive_expsym_cmds=
cannam@140 9322 compiler_needs_object=no
cannam@140 9323 enable_shared_with_static_runtimes=no
cannam@140 9324 export_dynamic_flag_spec=
cannam@140 9325 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@140 9326 hardcode_automatic=no
cannam@140 9327 hardcode_direct=no
cannam@140 9328 hardcode_direct_absolute=no
cannam@140 9329 hardcode_libdir_flag_spec=
cannam@140 9330 hardcode_libdir_separator=
cannam@140 9331 hardcode_minus_L=no
cannam@140 9332 hardcode_shlibpath_var=unsupported
cannam@140 9333 inherit_rpath=no
cannam@140 9334 link_all_deplibs=unknown
cannam@140 9335 module_cmds=
cannam@140 9336 module_expsym_cmds=
cannam@140 9337 old_archive_from_new_cmds=
cannam@140 9338 old_archive_from_expsyms_cmds=
cannam@140 9339 thread_safe_flag_spec=
cannam@140 9340 whole_archive_flag_spec=
cannam@140 9341 # include_expsyms should be a list of space-separated symbols to be *always*
cannam@140 9342 # included in the symbol list
cannam@140 9343 include_expsyms=
cannam@140 9344 # exclude_expsyms can be an extended regexp of symbols to exclude
cannam@140 9345 # it will be wrapped by ` (' and `)$', so one must not match beginning or
cannam@140 9346 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
cannam@140 9347 # as well as any symbol that contains `d'.
cannam@140 9348 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cannam@140 9349 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
cannam@140 9350 # platforms (ab)use it in PIC code, but their linkers get confused if
cannam@140 9351 # the symbol is explicitly referenced. Since portable code cannot
cannam@140 9352 # rely on this symbol name, it's probably fine to never include it in
cannam@140 9353 # preloaded symbol tables.
cannam@140 9354 # Exclude shared library initialization/finalization symbols.
cannam@140 9355 extract_expsyms_cmds=
cannam@140 9356
cannam@140 9357 case $host_os in
cannam@140 9358 cygwin* | mingw* | pw32* | cegcc*)
cannam@140 9359 # FIXME: the MSVC++ port hasn't been tested in a loooong time
cannam@140 9360 # When not using gcc, we currently assume that we are using
cannam@140 9361 # Microsoft Visual C++.
cannam@140 9362 if test "$GCC" != yes; then
cannam@140 9363 with_gnu_ld=no
cannam@140 9364 fi
cannam@140 9365 ;;
cannam@140 9366 interix*)
cannam@140 9367 # we just hope/assume this is gcc and not c89 (= MSVC++)
cannam@140 9368 with_gnu_ld=yes
cannam@140 9369 ;;
cannam@140 9370 openbsd*)
cannam@140 9371 with_gnu_ld=no
cannam@140 9372 ;;
cannam@140 9373 linux* | k*bsd*-gnu | gnu*)
cannam@140 9374 link_all_deplibs=no
cannam@140 9375 ;;
cannam@140 9376 esac
cannam@140 9377
cannam@140 9378 ld_shlibs=yes
cannam@140 9379
cannam@140 9380 # On some targets, GNU ld is compatible enough with the native linker
cannam@140 9381 # that we're better off using the native interface for both.
cannam@140 9382 lt_use_gnu_ld_interface=no
cannam@140 9383 if test "$with_gnu_ld" = yes; then
cannam@140 9384 case $host_os in
cannam@140 9385 aix*)
cannam@140 9386 # The AIX port of GNU ld has always aspired to compatibility
cannam@140 9387 # with the native linker. However, as the warning in the GNU ld
cannam@140 9388 # block says, versions before 2.19.5* couldn't really create working
cannam@140 9389 # shared libraries, regardless of the interface used.
cannam@140 9390 case `$LD -v 2>&1` in
cannam@140 9391 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
cannam@140 9392 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
cannam@140 9393 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
cannam@140 9394 *)
cannam@140 9395 lt_use_gnu_ld_interface=yes
cannam@140 9396 ;;
cannam@140 9397 esac
cannam@140 9398 ;;
cannam@140 9399 *)
cannam@140 9400 lt_use_gnu_ld_interface=yes
cannam@140 9401 ;;
cannam@140 9402 esac
cannam@140 9403 fi
cannam@140 9404
cannam@140 9405 if test "$lt_use_gnu_ld_interface" = yes; then
cannam@140 9406 # If archive_cmds runs LD, not CC, wlarc should be empty
cannam@140 9407 wlarc='${wl}'
cannam@140 9408
cannam@140 9409 # Set some defaults for GNU ld with shared library support. These
cannam@140 9410 # are reset later if shared libraries are not supported. Putting them
cannam@140 9411 # here allows them to be overridden if necessary.
cannam@140 9412 runpath_var=LD_RUN_PATH
cannam@140 9413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@140 9414 export_dynamic_flag_spec='${wl}--export-dynamic'
cannam@140 9415 # ancient GNU ld didn't support --whole-archive et. al.
cannam@140 9416 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
cannam@140 9417 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
cannam@140 9418 else
cannam@140 9419 whole_archive_flag_spec=
cannam@140 9420 fi
cannam@140 9421 supports_anon_versioning=no
cannam@140 9422 case `$LD -v 2>&1` in
cannam@140 9423 *GNU\ gold*) supports_anon_versioning=yes ;;
cannam@140 9424 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
cannam@140 9425 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
cannam@140 9426 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
cannam@140 9427 *\ 2.11.*) ;; # other 2.11 versions
cannam@140 9428 *) supports_anon_versioning=yes ;;
cannam@140 9429 esac
cannam@140 9430
cannam@140 9431 # See if GNU ld supports shared libraries.
cannam@140 9432 case $host_os in
cannam@140 9433 aix[3-9]*)
cannam@140 9434 # On AIX/PPC, the GNU linker is very broken
cannam@140 9435 if test "$host_cpu" != ia64; then
cannam@140 9436 ld_shlibs=no
cannam@140 9437 cat <<_LT_EOF 1>&2
cannam@140 9438
cannam@140 9439 *** Warning: the GNU linker, at least up to release 2.19, is reported
cannam@140 9440 *** to be unable to reliably create shared libraries on AIX.
cannam@140 9441 *** Therefore, libtool is disabling shared libraries support. If you
cannam@140 9442 *** really care for shared libraries, you may want to install binutils
cannam@140 9443 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
cannam@140 9444 *** You will then need to restart the configuration process.
cannam@140 9445
cannam@140 9446 _LT_EOF
cannam@140 9447 fi
cannam@140 9448 ;;
cannam@140 9449
cannam@140 9450 amigaos*)
cannam@140 9451 case $host_cpu in
cannam@140 9452 powerpc)
cannam@140 9453 # see comment about AmigaOS4 .so support
cannam@140 9454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@140 9455 archive_expsym_cmds=''
cannam@140 9456 ;;
cannam@140 9457 m68k)
cannam@140 9458 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@140 9459 hardcode_libdir_flag_spec='-L$libdir'
cannam@140 9460 hardcode_minus_L=yes
cannam@140 9461 ;;
cannam@140 9462 esac
cannam@140 9463 ;;
cannam@140 9464
cannam@140 9465 beos*)
cannam@140 9466 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@140 9467 allow_undefined_flag=unsupported
cannam@140 9468 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
cannam@140 9469 # support --undefined. This deserves some investigation. FIXME
cannam@140 9470 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@140 9471 else
cannam@140 9472 ld_shlibs=no
cannam@140 9473 fi
cannam@140 9474 ;;
cannam@140 9475
cannam@140 9476 cygwin* | mingw* | pw32* | cegcc*)
cannam@140 9477 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
cannam@140 9478 # as there is no search path for DLLs.
cannam@140 9479 hardcode_libdir_flag_spec='-L$libdir'
cannam@140 9480 export_dynamic_flag_spec='${wl}--export-all-symbols'
cannam@140 9481 allow_undefined_flag=unsupported
cannam@140 9482 always_export_symbols=no
cannam@140 9483 enable_shared_with_static_runtimes=yes
cannam@140 9484 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@140 9485 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
cannam@140 9486
cannam@140 9487 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
cannam@140 9488 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
cannam@140 9489 # If the export-symbols file already is a .def file (1st line
cannam@140 9490 # is EXPORTS), use it as is; otherwise, prepend...
cannam@140 9491 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@140 9492 cp $export_symbols $output_objdir/$soname.def;
cannam@140 9493 else
cannam@140 9494 echo EXPORTS > $output_objdir/$soname.def;
cannam@140 9495 cat $export_symbols >> $output_objdir/$soname.def;
cannam@140 9496 fi~
cannam@140 9497 $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@140 9498 else
cannam@140 9499 ld_shlibs=no
cannam@140 9500 fi
cannam@140 9501 ;;
cannam@140 9502
cannam@140 9503 haiku*)
cannam@140 9504 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@140 9505 link_all_deplibs=yes
cannam@140 9506 ;;
cannam@140 9507
cannam@140 9508 interix[3-9]*)
cannam@140 9509 hardcode_direct=no
cannam@140 9510 hardcode_shlibpath_var=no
cannam@140 9511 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
cannam@140 9512 export_dynamic_flag_spec='${wl}-E'
cannam@140 9513 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
cannam@140 9514 # Instead, shared libraries are loaded at an image base (0x10000000 by
cannam@140 9515 # default) and relocated if they conflict, which is a slow very memory
cannam@140 9516 # consuming and fragmenting process. To avoid this, we pick a random,
cannam@140 9517 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
cannam@140 9518 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
cannam@140 9519 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@140 9520 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@140 9521 ;;
cannam@140 9522
cannam@140 9523 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cannam@140 9524 tmp_diet=no
cannam@140 9525 if test "$host_os" = linux-dietlibc; then
cannam@140 9526 case $cc_basename in
cannam@140 9527 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
cannam@140 9528 esac
cannam@140 9529 fi
cannam@140 9530 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
cannam@140 9531 && test "$tmp_diet" = no
cannam@140 9532 then
cannam@140 9533 tmp_addflag=' $pic_flag'
cannam@140 9534 tmp_sharedflag='-shared'
cannam@140 9535 case $cc_basename,$host_cpu in
cannam@140 9536 pgcc*) # Portland Group C compiler
cannam@140 9537 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@140 9538 tmp_addflag=' $pic_flag'
cannam@140 9539 ;;
cannam@140 9540 pgf77* | pgf90* | pgf95* | pgfortran*)
cannam@140 9541 # Portland Group f77 and f90 compilers
cannam@140 9542 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@140 9543 tmp_addflag=' $pic_flag -Mnomain' ;;
cannam@140 9544 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
cannam@140 9545 tmp_addflag=' -i_dynamic' ;;
cannam@140 9546 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
cannam@140 9547 tmp_addflag=' -i_dynamic -nofor_main' ;;
cannam@140 9548 ifc* | ifort*) # Intel Fortran compiler
cannam@140 9549 tmp_addflag=' -nofor_main' ;;
cannam@140 9550 lf95*) # Lahey Fortran 8.1
cannam@140 9551 whole_archive_flag_spec=
cannam@140 9552 tmp_sharedflag='--shared' ;;
cannam@140 9553 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cannam@140 9554 tmp_sharedflag='-qmkshrobj'
cannam@140 9555 tmp_addflag= ;;
cannam@140 9556 nvcc*) # Cuda Compiler Driver 2.2
cannam@140 9557 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@140 9558 compiler_needs_object=yes
cannam@140 9559 ;;
cannam@140 9560 esac
cannam@140 9561 case `$CC -V 2>&1 | sed 5q` in
cannam@140 9562 *Sun\ C*) # Sun C 5.9
cannam@140 9563 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@140 9564 compiler_needs_object=yes
cannam@140 9565 tmp_sharedflag='-G' ;;
cannam@140 9566 *Sun\ F*) # Sun Fortran 8.3
cannam@140 9567 tmp_sharedflag='-G' ;;
cannam@140 9568 esac
cannam@140 9569 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@140 9570
cannam@140 9571 if test "x$supports_anon_versioning" = xyes; then
cannam@140 9572 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
cannam@140 9573 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@140 9574 echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@140 9575 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
cannam@140 9576 fi
cannam@140 9577
cannam@140 9578 case $cc_basename in
cannam@140 9579 xlf* | bgf* | bgxlf* | mpixlf*)
cannam@140 9580 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
cannam@140 9581 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cannam@140 9582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@140 9583 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cannam@140 9584 if test "x$supports_anon_versioning" = xyes; then
cannam@140 9585 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
cannam@140 9586 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@140 9587 echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@140 9588 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cannam@140 9589 fi
cannam@140 9590 ;;
cannam@140 9591 esac
cannam@140 9592 else
cannam@140 9593 ld_shlibs=no
cannam@140 9594 fi
cannam@140 9595 ;;
cannam@140 9596
cannam@140 9597 netbsd* | netbsdelf*-gnu)
cannam@140 9598 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@140 9599 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
cannam@140 9600 wlarc=
cannam@140 9601 else
cannam@140 9602 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@140 9603 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@140 9604 fi
cannam@140 9605 ;;
cannam@140 9606
cannam@140 9607 solaris*)
cannam@140 9608 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
cannam@140 9609 ld_shlibs=no
cannam@140 9610 cat <<_LT_EOF 1>&2
cannam@140 9611
cannam@140 9612 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
cannam@140 9613 *** create shared libraries on Solaris systems. Therefore, libtool
cannam@140 9614 *** is disabling shared libraries support. We urge you to upgrade GNU
cannam@140 9615 *** binutils to release 2.9.1 or newer. Another option is to modify
cannam@140 9616 *** your PATH or compiler configuration so that the native linker is
cannam@140 9617 *** used, and then restart.
cannam@140 9618
cannam@140 9619 _LT_EOF
cannam@140 9620 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@140 9621 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@140 9622 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@140 9623 else
cannam@140 9624 ld_shlibs=no
cannam@140 9625 fi
cannam@140 9626 ;;
cannam@140 9627
cannam@140 9628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
cannam@140 9629 case `$LD -v 2>&1` in
cannam@140 9630 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
cannam@140 9631 ld_shlibs=no
cannam@140 9632 cat <<_LT_EOF 1>&2
cannam@140 9633
cannam@140 9634 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
cannam@140 9635 *** reliably create shared libraries on SCO systems. Therefore, libtool
cannam@140 9636 *** is disabling shared libraries support. We urge you to upgrade GNU
cannam@140 9637 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
cannam@140 9638 *** your PATH or compiler configuration so that the native linker is
cannam@140 9639 *** used, and then restart.
cannam@140 9640
cannam@140 9641 _LT_EOF
cannam@140 9642 ;;
cannam@140 9643 *)
cannam@140 9644 # For security reasons, it is highly recommended that you always
cannam@140 9645 # use absolute paths for naming shared libraries, and exclude the
cannam@140 9646 # DT_RUNPATH tag from executables and libraries. But doing so
cannam@140 9647 # requires that you compile everything twice, which is a pain.
cannam@140 9648 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@140 9649 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@140 9650 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@140 9651 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@140 9652 else
cannam@140 9653 ld_shlibs=no
cannam@140 9654 fi
cannam@140 9655 ;;
cannam@140 9656 esac
cannam@140 9657 ;;
cannam@140 9658
cannam@140 9659 sunos4*)
cannam@140 9660 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@140 9661 wlarc=
cannam@140 9662 hardcode_direct=yes
cannam@140 9663 hardcode_shlibpath_var=no
cannam@140 9664 ;;
cannam@140 9665
cannam@140 9666 *)
cannam@140 9667 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@140 9668 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@140 9669 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@140 9670 else
cannam@140 9671 ld_shlibs=no
cannam@140 9672 fi
cannam@140 9673 ;;
cannam@140 9674 esac
cannam@140 9675
cannam@140 9676 if test "$ld_shlibs" = no; then
cannam@140 9677 runpath_var=
cannam@140 9678 hardcode_libdir_flag_spec=
cannam@140 9679 export_dynamic_flag_spec=
cannam@140 9680 whole_archive_flag_spec=
cannam@140 9681 fi
cannam@140 9682 else
cannam@140 9683 # PORTME fill in a description of your system's linker (not GNU ld)
cannam@140 9684 case $host_os in
cannam@140 9685 aix3*)
cannam@140 9686 allow_undefined_flag=unsupported
cannam@140 9687 always_export_symbols=yes
cannam@140 9688 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@140 9689 # Note: this linker hardcodes the directories in LIBPATH if there
cannam@140 9690 # are no directories specified by -L.
cannam@140 9691 hardcode_minus_L=yes
cannam@140 9692 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
cannam@140 9693 # Neither direct hardcoding nor static linking is supported with a
cannam@140 9694 # broken collect2.
cannam@140 9695 hardcode_direct=unsupported
cannam@140 9696 fi
cannam@140 9697 ;;
cannam@140 9698
cannam@140 9699 aix[4-9]*)
cannam@140 9700 if test "$host_cpu" = ia64; then
cannam@140 9701 # On IA64, the linker does run time linking by default, so we don't
cannam@140 9702 # have to do anything special.
cannam@140 9703 aix_use_runtimelinking=no
cannam@140 9704 exp_sym_flag='-Bexport'
cannam@140 9705 no_entry_flag=""
cannam@140 9706 else
cannam@140 9707 # If we're using GNU nm, then we don't want the "-C" option.
cannam@140 9708 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cannam@140 9709 # Also, AIX nm treats weak defined symbols like other global
cannam@140 9710 # defined symbols, whereas GNU nm marks them as "W".
cannam@140 9711 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cannam@140 9712 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cannam@140 9713 else
cannam@140 9714 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cannam@140 9715 fi
cannam@140 9716 aix_use_runtimelinking=no
cannam@140 9717
cannam@140 9718 # Test if we are trying to use run time linking or normal
cannam@140 9719 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cannam@140 9720 # need to do runtime linking.
cannam@140 9721 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
cannam@140 9722 for ld_flag in $LDFLAGS; do
cannam@140 9723 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
cannam@140 9724 aix_use_runtimelinking=yes
cannam@140 9725 break
cannam@140 9726 fi
cannam@140 9727 done
cannam@140 9728 ;;
cannam@140 9729 esac
cannam@140 9730
cannam@140 9731 exp_sym_flag='-bexport'
cannam@140 9732 no_entry_flag='-bnoentry'
cannam@140 9733 fi
cannam@140 9734
cannam@140 9735 # When large executables or shared objects are built, AIX ld can
cannam@140 9736 # have problems creating the table of contents. If linking a library
cannam@140 9737 # or program results in "error TOC overflow" add -mminimal-toc to
cannam@140 9738 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
cannam@140 9739 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
cannam@140 9740
cannam@140 9741 archive_cmds=''
cannam@140 9742 hardcode_direct=yes
cannam@140 9743 hardcode_direct_absolute=yes
cannam@140 9744 hardcode_libdir_separator=':'
cannam@140 9745 link_all_deplibs=yes
cannam@140 9746 file_list_spec='${wl}-f,'
cannam@140 9747
cannam@140 9748 if test "$GCC" = yes; then
cannam@140 9749 case $host_os in aix4.[012]|aix4.[012].*)
cannam@140 9750 # We only want to do this on AIX 4.2 and lower, the check
cannam@140 9751 # below for broken collect2 doesn't work under 4.3+
cannam@140 9752 collect2name=`${CC} -print-prog-name=collect2`
cannam@140 9753 if test -f "$collect2name" &&
cannam@140 9754 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
cannam@140 9755 then
cannam@140 9756 # We have reworked collect2
cannam@140 9757 :
cannam@140 9758 else
cannam@140 9759 # We have old collect2
cannam@140 9760 hardcode_direct=unsupported
cannam@140 9761 # It fails to find uninstalled libraries when the uninstalled
cannam@140 9762 # path is not listed in the libpath. Setting hardcode_minus_L
cannam@140 9763 # to unsupported forces relinking
cannam@140 9764 hardcode_minus_L=yes
cannam@140 9765 hardcode_libdir_flag_spec='-L$libdir'
cannam@140 9766 hardcode_libdir_separator=
cannam@140 9767 fi
cannam@140 9768 ;;
cannam@140 9769 esac
cannam@140 9770 shared_flag='-shared'
cannam@140 9771 if test "$aix_use_runtimelinking" = yes; then
cannam@140 9772 shared_flag="$shared_flag "'${wl}-G'
cannam@140 9773 fi
cannam@140 9774 link_all_deplibs=no
cannam@140 9775 else
cannam@140 9776 # not using gcc
cannam@140 9777 if test "$host_cpu" = ia64; then
cannam@140 9778 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
cannam@140 9779 # chokes on -Wl,-G. The following line is correct:
cannam@140 9780 shared_flag='-G'
cannam@140 9781 else
cannam@140 9782 if test "$aix_use_runtimelinking" = yes; then
cannam@140 9783 shared_flag='${wl}-G'
cannam@140 9784 else
cannam@140 9785 shared_flag='${wl}-bM:SRE'
cannam@140 9786 fi
cannam@140 9787 fi
cannam@140 9788 fi
cannam@140 9789
cannam@140 9790 export_dynamic_flag_spec='${wl}-bexpall'
cannam@140 9791 # It seems that -bexpall does not export symbols beginning with
cannam@140 9792 # underscore (_), so it is better to generate a list of symbols to export.
cannam@140 9793 always_export_symbols=yes
cannam@140 9794 if test "$aix_use_runtimelinking" = yes; then
cannam@140 9795 # Warning - without using the other runtime loading flags (-brtl),
cannam@140 9796 # -berok will link without error, but may produce a broken library.
cannam@140 9797 allow_undefined_flag='-berok'
cannam@140 9798 # Determine the default libpath from the value encoded in an
cannam@140 9799 # empty executable.
cannam@140 9800 if test "${lt_cv_aix_libpath+set}" = set; then
cannam@140 9801 aix_libpath=$lt_cv_aix_libpath
cannam@140 9802 else
cannam@140 9803 if ${lt_cv_aix_libpath_+:} false; then :
cannam@140 9804 $as_echo_n "(cached) " >&6
cannam@140 9805 else
cannam@140 9806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 9807 /* end confdefs.h. */
cannam@140 9808
cannam@140 9809 int
cannam@140 9810 main ()
cannam@140 9811 {
cannam@140 9812
cannam@140 9813 ;
cannam@140 9814 return 0;
cannam@140 9815 }
cannam@140 9816 _ACEOF
cannam@140 9817 if ac_fn_c_try_link "$LINENO"; then :
cannam@140 9818
cannam@140 9819 lt_aix_libpath_sed='
cannam@140 9820 /Import File Strings/,/^$/ {
cannam@140 9821 /^0/ {
cannam@140 9822 s/^0 *\([^ ]*\) *$/\1/
cannam@140 9823 p
cannam@140 9824 }
cannam@140 9825 }'
cannam@140 9826 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@140 9827 # Check for a 64-bit object if we didn't find anything.
cannam@140 9828 if test -z "$lt_cv_aix_libpath_"; then
cannam@140 9829 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@140 9830 fi
cannam@140 9831 fi
cannam@140 9832 rm -f core conftest.err conftest.$ac_objext \
cannam@140 9833 conftest$ac_exeext conftest.$ac_ext
cannam@140 9834 if test -z "$lt_cv_aix_libpath_"; then
cannam@140 9835 lt_cv_aix_libpath_="/usr/lib:/lib"
cannam@140 9836 fi
cannam@140 9837
cannam@140 9838 fi
cannam@140 9839
cannam@140 9840 aix_libpath=$lt_cv_aix_libpath_
cannam@140 9841 fi
cannam@140 9842
cannam@140 9843 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@140 9844 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cannam@140 9845 else
cannam@140 9846 if test "$host_cpu" = ia64; then
cannam@140 9847 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
cannam@140 9848 allow_undefined_flag="-z nodefs"
cannam@140 9849 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@140 9850 else
cannam@140 9851 # Determine the default libpath from the value encoded in an
cannam@140 9852 # empty executable.
cannam@140 9853 if test "${lt_cv_aix_libpath+set}" = set; then
cannam@140 9854 aix_libpath=$lt_cv_aix_libpath
cannam@140 9855 else
cannam@140 9856 if ${lt_cv_aix_libpath_+:} false; then :
cannam@140 9857 $as_echo_n "(cached) " >&6
cannam@140 9858 else
cannam@140 9859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 9860 /* end confdefs.h. */
cannam@140 9861
cannam@140 9862 int
cannam@140 9863 main ()
cannam@140 9864 {
cannam@140 9865
cannam@140 9866 ;
cannam@140 9867 return 0;
cannam@140 9868 }
cannam@140 9869 _ACEOF
cannam@140 9870 if ac_fn_c_try_link "$LINENO"; then :
cannam@140 9871
cannam@140 9872 lt_aix_libpath_sed='
cannam@140 9873 /Import File Strings/,/^$/ {
cannam@140 9874 /^0/ {
cannam@140 9875 s/^0 *\([^ ]*\) *$/\1/
cannam@140 9876 p
cannam@140 9877 }
cannam@140 9878 }'
cannam@140 9879 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@140 9880 # Check for a 64-bit object if we didn't find anything.
cannam@140 9881 if test -z "$lt_cv_aix_libpath_"; then
cannam@140 9882 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@140 9883 fi
cannam@140 9884 fi
cannam@140 9885 rm -f core conftest.err conftest.$ac_objext \
cannam@140 9886 conftest$ac_exeext conftest.$ac_ext
cannam@140 9887 if test -z "$lt_cv_aix_libpath_"; then
cannam@140 9888 lt_cv_aix_libpath_="/usr/lib:/lib"
cannam@140 9889 fi
cannam@140 9890
cannam@140 9891 fi
cannam@140 9892
cannam@140 9893 aix_libpath=$lt_cv_aix_libpath_
cannam@140 9894 fi
cannam@140 9895
cannam@140 9896 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@140 9897 # Warning - without using the other run time loading flags,
cannam@140 9898 # -berok will link without error, but may produce a broken library.
cannam@140 9899 no_undefined_flag=' ${wl}-bernotok'
cannam@140 9900 allow_undefined_flag=' ${wl}-berok'
cannam@140 9901 if test "$with_gnu_ld" = yes; then
cannam@140 9902 # We only use this code for GNU lds that support --whole-archive.
cannam@140 9903 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
cannam@140 9904 else
cannam@140 9905 # Exported symbols can be pulled into shared objects from archives
cannam@140 9906 whole_archive_flag_spec='$convenience'
cannam@140 9907 fi
cannam@140 9908 archive_cmds_need_lc=yes
cannam@140 9909 # This is similar to how AIX traditionally builds its shared libraries.
cannam@140 9910 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
cannam@140 9911 fi
cannam@140 9912 fi
cannam@140 9913 ;;
cannam@140 9914
cannam@140 9915 amigaos*)
cannam@140 9916 case $host_cpu in
cannam@140 9917 powerpc)
cannam@140 9918 # see comment about AmigaOS4 .so support
cannam@140 9919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@140 9920 archive_expsym_cmds=''
cannam@140 9921 ;;
cannam@140 9922 m68k)
cannam@140 9923 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@140 9924 hardcode_libdir_flag_spec='-L$libdir'
cannam@140 9925 hardcode_minus_L=yes
cannam@140 9926 ;;
cannam@140 9927 esac
cannam@140 9928 ;;
cannam@140 9929
cannam@140 9930 bsdi[45]*)
cannam@140 9931 export_dynamic_flag_spec=-rdynamic
cannam@140 9932 ;;
cannam@140 9933
cannam@140 9934 cygwin* | mingw* | pw32* | cegcc*)
cannam@140 9935 # When not using gcc, we currently assume that we are using
cannam@140 9936 # Microsoft Visual C++.
cannam@140 9937 # hardcode_libdir_flag_spec is actually meaningless, as there is
cannam@140 9938 # no search path for DLLs.
cannam@140 9939 case $cc_basename in
cannam@140 9940 cl*)
cannam@140 9941 # Native MSVC
cannam@140 9942 hardcode_libdir_flag_spec=' '
cannam@140 9943 allow_undefined_flag=unsupported
cannam@140 9944 always_export_symbols=yes
cannam@140 9945 file_list_spec='@'
cannam@140 9946 # Tell ltmain to make .lib files, not .a files.
cannam@140 9947 libext=lib
cannam@140 9948 # Tell ltmain to make .dll files, not .so files.
cannam@140 9949 shrext_cmds=".dll"
cannam@140 9950 # FIXME: Setting linknames here is a bad hack.
cannam@140 9951 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
cannam@140 9952 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@140 9953 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
cannam@140 9954 else
cannam@140 9955 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
cannam@140 9956 fi~
cannam@140 9957 $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@140 9958 linknames='
cannam@140 9959 # The linker will not automatically build a static lib if we build a DLL.
cannam@140 9960 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
cannam@140 9961 enable_shared_with_static_runtimes=yes
cannam@140 9962 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cannam@140 9963 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
cannam@140 9964 # Don't use ranlib
cannam@140 9965 old_postinstall_cmds='chmod 644 $oldlib'
cannam@140 9966 postlink_cmds='lt_outputfile="@OUTPUT@"~
cannam@140 9967 lt_tool_outputfile="@TOOL_OUTPUT@"~
cannam@140 9968 case $lt_outputfile in
cannam@140 9969 *.exe|*.EXE) ;;
cannam@140 9970 *)
cannam@140 9971 lt_outputfile="$lt_outputfile.exe"
cannam@140 9972 lt_tool_outputfile="$lt_tool_outputfile.exe"
cannam@140 9973 ;;
cannam@140 9974 esac~
cannam@140 9975 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
cannam@140 9976 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
cannam@140 9977 $RM "$lt_outputfile.manifest";
cannam@140 9978 fi'
cannam@140 9979 ;;
cannam@140 9980 *)
cannam@140 9981 # Assume MSVC wrapper
cannam@140 9982 hardcode_libdir_flag_spec=' '
cannam@140 9983 allow_undefined_flag=unsupported
cannam@140 9984 # Tell ltmain to make .lib files, not .a files.
cannam@140 9985 libext=lib
cannam@140 9986 # Tell ltmain to make .dll files, not .so files.
cannam@140 9987 shrext_cmds=".dll"
cannam@140 9988 # FIXME: Setting linknames here is a bad hack.
cannam@140 9989 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
cannam@140 9990 # The linker will automatically build a .lib file if we build a DLL.
cannam@140 9991 old_archive_from_new_cmds='true'
cannam@140 9992 # FIXME: Should let the user specify the lib program.
cannam@140 9993 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
cannam@140 9994 enable_shared_with_static_runtimes=yes
cannam@140 9995 ;;
cannam@140 9996 esac
cannam@140 9997 ;;
cannam@140 9998
cannam@140 9999 darwin* | rhapsody*)
cannam@140 10000
cannam@140 10001
cannam@140 10002 archive_cmds_need_lc=no
cannam@140 10003 hardcode_direct=no
cannam@140 10004 hardcode_automatic=yes
cannam@140 10005 hardcode_shlibpath_var=unsupported
cannam@140 10006 if test "$lt_cv_ld_force_load" = "yes"; then
cannam@140 10007 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@140 10008
cannam@140 10009 else
cannam@140 10010 whole_archive_flag_spec=''
cannam@140 10011 fi
cannam@140 10012 link_all_deplibs=yes
cannam@140 10013 allow_undefined_flag="$_lt_dar_allow_undefined"
cannam@140 10014 case $cc_basename in
cannam@140 10015 ifort*) _lt_dar_can_shared=yes ;;
cannam@140 10016 *) _lt_dar_can_shared=$GCC ;;
cannam@140 10017 esac
cannam@140 10018 if test "$_lt_dar_can_shared" = "yes"; then
cannam@140 10019 output_verbose_link_cmd=func_echo_all
cannam@140 10020 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@140 10021 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
cannam@140 10022 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@140 10023 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@140 10024
cannam@140 10025 else
cannam@140 10026 ld_shlibs=no
cannam@140 10027 fi
cannam@140 10028
cannam@140 10029 ;;
cannam@140 10030
cannam@140 10031 dgux*)
cannam@140 10032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@140 10033 hardcode_libdir_flag_spec='-L$libdir'
cannam@140 10034 hardcode_shlibpath_var=no
cannam@140 10035 ;;
cannam@140 10036
cannam@140 10037 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
cannam@140 10038 # support. Future versions do this automatically, but an explicit c++rt0.o
cannam@140 10039 # does not break anything, and helps significantly (at the cost of a little
cannam@140 10040 # extra space).
cannam@140 10041 freebsd2.2*)
cannam@140 10042 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
cannam@140 10043 hardcode_libdir_flag_spec='-R$libdir'
cannam@140 10044 hardcode_direct=yes
cannam@140 10045 hardcode_shlibpath_var=no
cannam@140 10046 ;;
cannam@140 10047
cannam@140 10048 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cannam@140 10049 freebsd2.*)
cannam@140 10050 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@140 10051 hardcode_direct=yes
cannam@140 10052 hardcode_minus_L=yes
cannam@140 10053 hardcode_shlibpath_var=no
cannam@140 10054 ;;
cannam@140 10055
cannam@140 10056 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
cannam@140 10057 freebsd* | dragonfly*)
cannam@140 10058 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 10059 hardcode_libdir_flag_spec='-R$libdir'
cannam@140 10060 hardcode_direct=yes
cannam@140 10061 hardcode_shlibpath_var=no
cannam@140 10062 ;;
cannam@140 10063
cannam@140 10064 hpux9*)
cannam@140 10065 if test "$GCC" = yes; then
cannam@140 10066 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cannam@140 10067 else
cannam@140 10068 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cannam@140 10069 fi
cannam@140 10070 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cannam@140 10071 hardcode_libdir_separator=:
cannam@140 10072 hardcode_direct=yes
cannam@140 10073
cannam@140 10074 # hardcode_minus_L: Not really in the search PATH,
cannam@140 10075 # but as the default location of the library.
cannam@140 10076 hardcode_minus_L=yes
cannam@140 10077 export_dynamic_flag_spec='${wl}-E'
cannam@140 10078 ;;
cannam@140 10079
cannam@140 10080 hpux10*)
cannam@140 10081 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cannam@140 10082 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 10083 else
cannam@140 10084 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
cannam@140 10085 fi
cannam@140 10086 if test "$with_gnu_ld" = no; then
cannam@140 10087 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cannam@140 10088 hardcode_libdir_separator=:
cannam@140 10089 hardcode_direct=yes
cannam@140 10090 hardcode_direct_absolute=yes
cannam@140 10091 export_dynamic_flag_spec='${wl}-E'
cannam@140 10092 # hardcode_minus_L: Not really in the search PATH,
cannam@140 10093 # but as the default location of the library.
cannam@140 10094 hardcode_minus_L=yes
cannam@140 10095 fi
cannam@140 10096 ;;
cannam@140 10097
cannam@140 10098 hpux11*)
cannam@140 10099 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cannam@140 10100 case $host_cpu in
cannam@140 10101 hppa*64*)
cannam@140 10102 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 10103 ;;
cannam@140 10104 ia64*)
cannam@140 10105 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 10106 ;;
cannam@140 10107 *)
cannam@140 10108 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 10109 ;;
cannam@140 10110 esac
cannam@140 10111 else
cannam@140 10112 case $host_cpu in
cannam@140 10113 hppa*64*)
cannam@140 10114 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 10115 ;;
cannam@140 10116 ia64*)
cannam@140 10117 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 10118 ;;
cannam@140 10119 *)
cannam@140 10120
cannam@140 10121 # Older versions of the 11.00 compiler do not understand -b yet
cannam@140 10122 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
cannam@140 10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
cannam@140 10124 $as_echo_n "checking if $CC understands -b... " >&6; }
cannam@140 10125 if ${lt_cv_prog_compiler__b+:} false; then :
cannam@140 10126 $as_echo_n "(cached) " >&6
cannam@140 10127 else
cannam@140 10128 lt_cv_prog_compiler__b=no
cannam@140 10129 save_LDFLAGS="$LDFLAGS"
cannam@140 10130 LDFLAGS="$LDFLAGS -b"
cannam@140 10131 echo "$lt_simple_link_test_code" > conftest.$ac_ext
cannam@140 10132 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
cannam@140 10133 # The linker can only warn and ignore the option if not recognized
cannam@140 10134 # So say no if there are warnings
cannam@140 10135 if test -s conftest.err; then
cannam@140 10136 # Append any errors to the config.log.
cannam@140 10137 cat conftest.err 1>&5
cannam@140 10138 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cannam@140 10139 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@140 10140 if diff conftest.exp conftest.er2 >/dev/null; then
cannam@140 10141 lt_cv_prog_compiler__b=yes
cannam@140 10142 fi
cannam@140 10143 else
cannam@140 10144 lt_cv_prog_compiler__b=yes
cannam@140 10145 fi
cannam@140 10146 fi
cannam@140 10147 $RM -r conftest*
cannam@140 10148 LDFLAGS="$save_LDFLAGS"
cannam@140 10149
cannam@140 10150 fi
cannam@140 10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
cannam@140 10152 $as_echo "$lt_cv_prog_compiler__b" >&6; }
cannam@140 10153
cannam@140 10154 if test x"$lt_cv_prog_compiler__b" = xyes; then
cannam@140 10155 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 10156 else
cannam@140 10157 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
cannam@140 10158 fi
cannam@140 10159
cannam@140 10160 ;;
cannam@140 10161 esac
cannam@140 10162 fi
cannam@140 10163 if test "$with_gnu_ld" = no; then
cannam@140 10164 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cannam@140 10165 hardcode_libdir_separator=:
cannam@140 10166
cannam@140 10167 case $host_cpu in
cannam@140 10168 hppa*64*|ia64*)
cannam@140 10169 hardcode_direct=no
cannam@140 10170 hardcode_shlibpath_var=no
cannam@140 10171 ;;
cannam@140 10172 *)
cannam@140 10173 hardcode_direct=yes
cannam@140 10174 hardcode_direct_absolute=yes
cannam@140 10175 export_dynamic_flag_spec='${wl}-E'
cannam@140 10176
cannam@140 10177 # hardcode_minus_L: Not really in the search PATH,
cannam@140 10178 # but as the default location of the library.
cannam@140 10179 hardcode_minus_L=yes
cannam@140 10180 ;;
cannam@140 10181 esac
cannam@140 10182 fi
cannam@140 10183 ;;
cannam@140 10184
cannam@140 10185 irix5* | irix6* | nonstopux*)
cannam@140 10186 if test "$GCC" = yes; then
cannam@140 10187 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@140 10188 # Try to use the -exported_symbol ld option, if it does not
cannam@140 10189 # work, assume that -exports_file does not work either and
cannam@140 10190 # implicitly export all symbols.
cannam@140 10191 # This should be the same for all languages, so no per-tag cache variable.
cannam@140 10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
cannam@140 10193 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
cannam@140 10194 if ${lt_cv_irix_exported_symbol+:} false; then :
cannam@140 10195 $as_echo_n "(cached) " >&6
cannam@140 10196 else
cannam@140 10197 save_LDFLAGS="$LDFLAGS"
cannam@140 10198 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cannam@140 10199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 10200 /* end confdefs.h. */
cannam@140 10201 int foo (void) { return 0; }
cannam@140 10202 _ACEOF
cannam@140 10203 if ac_fn_c_try_link "$LINENO"; then :
cannam@140 10204 lt_cv_irix_exported_symbol=yes
cannam@140 10205 else
cannam@140 10206 lt_cv_irix_exported_symbol=no
cannam@140 10207 fi
cannam@140 10208 rm -f core conftest.err conftest.$ac_objext \
cannam@140 10209 conftest$ac_exeext conftest.$ac_ext
cannam@140 10210 LDFLAGS="$save_LDFLAGS"
cannam@140 10211 fi
cannam@140 10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
cannam@140 10213 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
cannam@140 10214 if test "$lt_cv_irix_exported_symbol" = yes; then
cannam@140 10215 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@140 10216 fi
cannam@140 10217 else
cannam@140 10218 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@140 10219 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@140 10220 fi
cannam@140 10221 archive_cmds_need_lc='no'
cannam@140 10222 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@140 10223 hardcode_libdir_separator=:
cannam@140 10224 inherit_rpath=yes
cannam@140 10225 link_all_deplibs=yes
cannam@140 10226 ;;
cannam@140 10227
cannam@140 10228 netbsd* | netbsdelf*-gnu)
cannam@140 10229 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@140 10230 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
cannam@140 10231 else
cannam@140 10232 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
cannam@140 10233 fi
cannam@140 10234 hardcode_libdir_flag_spec='-R$libdir'
cannam@140 10235 hardcode_direct=yes
cannam@140 10236 hardcode_shlibpath_var=no
cannam@140 10237 ;;
cannam@140 10238
cannam@140 10239 newsos6)
cannam@140 10240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@140 10241 hardcode_direct=yes
cannam@140 10242 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@140 10243 hardcode_libdir_separator=:
cannam@140 10244 hardcode_shlibpath_var=no
cannam@140 10245 ;;
cannam@140 10246
cannam@140 10247 *nto* | *qnx*)
cannam@140 10248 ;;
cannam@140 10249
cannam@140 10250 openbsd*)
cannam@140 10251 if test -f /usr/libexec/ld.so; then
cannam@140 10252 hardcode_direct=yes
cannam@140 10253 hardcode_shlibpath_var=no
cannam@140 10254 hardcode_direct_absolute=yes
cannam@140 10255 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@140 10256 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 10257 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
cannam@140 10258 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
cannam@140 10259 export_dynamic_flag_spec='${wl}-E'
cannam@140 10260 else
cannam@140 10261 case $host_os in
cannam@140 10262 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
cannam@140 10263 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@140 10264 hardcode_libdir_flag_spec='-R$libdir'
cannam@140 10265 ;;
cannam@140 10266 *)
cannam@140 10267 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 10268 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
cannam@140 10269 ;;
cannam@140 10270 esac
cannam@140 10271 fi
cannam@140 10272 else
cannam@140 10273 ld_shlibs=no
cannam@140 10274 fi
cannam@140 10275 ;;
cannam@140 10276
cannam@140 10277 os2*)
cannam@140 10278 hardcode_libdir_flag_spec='-L$libdir'
cannam@140 10279 hardcode_minus_L=yes
cannam@140 10280 allow_undefined_flag=unsupported
cannam@140 10281 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
cannam@140 10282 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
cannam@140 10283 ;;
cannam@140 10284
cannam@140 10285 osf3*)
cannam@140 10286 if test "$GCC" = yes; then
cannam@140 10287 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cannam@140 10288 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@140 10289 else
cannam@140 10290 allow_undefined_flag=' -expect_unresolved \*'
cannam@140 10291 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@140 10292 fi
cannam@140 10293 archive_cmds_need_lc='no'
cannam@140 10294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@140 10295 hardcode_libdir_separator=:
cannam@140 10296 ;;
cannam@140 10297
cannam@140 10298 osf4* | osf5*) # as osf3* with the addition of -msym flag
cannam@140 10299 if test "$GCC" = yes; then
cannam@140 10300 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cannam@140 10301 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@140 10302 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@140 10303 else
cannam@140 10304 allow_undefined_flag=' -expect_unresolved \*'
cannam@140 10305 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@140 10306 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@140 10307 $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@140 10308
cannam@140 10309 # Both c and cxx compiler support -rpath directly
cannam@140 10310 hardcode_libdir_flag_spec='-rpath $libdir'
cannam@140 10311 fi
cannam@140 10312 archive_cmds_need_lc='no'
cannam@140 10313 hardcode_libdir_separator=:
cannam@140 10314 ;;
cannam@140 10315
cannam@140 10316 solaris*)
cannam@140 10317 no_undefined_flag=' -z defs'
cannam@140 10318 if test "$GCC" = yes; then
cannam@140 10319 wlarc='${wl}'
cannam@140 10320 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 10321 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@140 10322 $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@140 10323 else
cannam@140 10324 case `$CC -V 2>&1` in
cannam@140 10325 *"Compilers 5.0"*)
cannam@140 10326 wlarc=''
cannam@140 10327 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@140 10328 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@140 10329 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
cannam@140 10330 ;;
cannam@140 10331 *)
cannam@140 10332 wlarc='${wl}'
cannam@140 10333 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 10334 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@140 10335 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
cannam@140 10336 ;;
cannam@140 10337 esac
cannam@140 10338 fi
cannam@140 10339 hardcode_libdir_flag_spec='-R$libdir'
cannam@140 10340 hardcode_shlibpath_var=no
cannam@140 10341 case $host_os in
cannam@140 10342 solaris2.[0-5] | solaris2.[0-5].*) ;;
cannam@140 10343 *)
cannam@140 10344 # The compiler driver will combine and reorder linker options,
cannam@140 10345 # but understands `-z linker_flag'. GCC discards it without `$wl',
cannam@140 10346 # but is careful enough not to reorder.
cannam@140 10347 # Supported since Solaris 2.6 (maybe 2.5.1?)
cannam@140 10348 if test "$GCC" = yes; then
cannam@140 10349 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
cannam@140 10350 else
cannam@140 10351 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
cannam@140 10352 fi
cannam@140 10353 ;;
cannam@140 10354 esac
cannam@140 10355 link_all_deplibs=yes
cannam@140 10356 ;;
cannam@140 10357
cannam@140 10358 sunos4*)
cannam@140 10359 if test "x$host_vendor" = xsequent; then
cannam@140 10360 # Use $CC to link under sequent, because it throws in some extra .o
cannam@140 10361 # files that make .init and .fini sections work.
cannam@140 10362 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 10363 else
cannam@140 10364 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
cannam@140 10365 fi
cannam@140 10366 hardcode_libdir_flag_spec='-L$libdir'
cannam@140 10367 hardcode_direct=yes
cannam@140 10368 hardcode_minus_L=yes
cannam@140 10369 hardcode_shlibpath_var=no
cannam@140 10370 ;;
cannam@140 10371
cannam@140 10372 sysv4)
cannam@140 10373 case $host_vendor in
cannam@140 10374 sni)
cannam@140 10375 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@140 10376 hardcode_direct=yes # is this really true???
cannam@140 10377 ;;
cannam@140 10378 siemens)
cannam@140 10379 ## LD is ld it makes a PLAMLIB
cannam@140 10380 ## CC just makes a GrossModule.
cannam@140 10381 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
cannam@140 10382 reload_cmds='$CC -r -o $output$reload_objs'
cannam@140 10383 hardcode_direct=no
cannam@140 10384 ;;
cannam@140 10385 motorola)
cannam@140 10386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@140 10387 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
cannam@140 10388 ;;
cannam@140 10389 esac
cannam@140 10390 runpath_var='LD_RUN_PATH'
cannam@140 10391 hardcode_shlibpath_var=no
cannam@140 10392 ;;
cannam@140 10393
cannam@140 10394 sysv4.3*)
cannam@140 10395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@140 10396 hardcode_shlibpath_var=no
cannam@140 10397 export_dynamic_flag_spec='-Bexport'
cannam@140 10398 ;;
cannam@140 10399
cannam@140 10400 sysv4*MP*)
cannam@140 10401 if test -d /usr/nec; then
cannam@140 10402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@140 10403 hardcode_shlibpath_var=no
cannam@140 10404 runpath_var=LD_RUN_PATH
cannam@140 10405 hardcode_runpath_var=yes
cannam@140 10406 ld_shlibs=yes
cannam@140 10407 fi
cannam@140 10408 ;;
cannam@140 10409
cannam@140 10410 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
cannam@140 10411 no_undefined_flag='${wl}-z,text'
cannam@140 10412 archive_cmds_need_lc=no
cannam@140 10413 hardcode_shlibpath_var=no
cannam@140 10414 runpath_var='LD_RUN_PATH'
cannam@140 10415
cannam@140 10416 if test "$GCC" = yes; then
cannam@140 10417 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 10418 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 10419 else
cannam@140 10420 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 10421 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 10422 fi
cannam@140 10423 ;;
cannam@140 10424
cannam@140 10425 sysv5* | sco3.2v5* | sco5v6*)
cannam@140 10426 # Note: We can NOT use -z defs as we might desire, because we do not
cannam@140 10427 # link with -lc, and that would cause any symbols used from libc to
cannam@140 10428 # always be unresolved, which means just about no library would
cannam@140 10429 # ever link correctly. If we're not using GNU ld we use -z text
cannam@140 10430 # though, which does catch some bad symbols but isn't as heavy-handed
cannam@140 10431 # as -z defs.
cannam@140 10432 no_undefined_flag='${wl}-z,text'
cannam@140 10433 allow_undefined_flag='${wl}-z,nodefs'
cannam@140 10434 archive_cmds_need_lc=no
cannam@140 10435 hardcode_shlibpath_var=no
cannam@140 10436 hardcode_libdir_flag_spec='${wl}-R,$libdir'
cannam@140 10437 hardcode_libdir_separator=':'
cannam@140 10438 link_all_deplibs=yes
cannam@140 10439 export_dynamic_flag_spec='${wl}-Bexport'
cannam@140 10440 runpath_var='LD_RUN_PATH'
cannam@140 10441
cannam@140 10442 if test "$GCC" = yes; then
cannam@140 10443 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 10444 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 10445 else
cannam@140 10446 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 10447 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 10448 fi
cannam@140 10449 ;;
cannam@140 10450
cannam@140 10451 uts4*)
cannam@140 10452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@140 10453 hardcode_libdir_flag_spec='-L$libdir'
cannam@140 10454 hardcode_shlibpath_var=no
cannam@140 10455 ;;
cannam@140 10456
cannam@140 10457 *)
cannam@140 10458 ld_shlibs=no
cannam@140 10459 ;;
cannam@140 10460 esac
cannam@140 10461
cannam@140 10462 if test x$host_vendor = xsni; then
cannam@140 10463 case $host in
cannam@140 10464 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cannam@140 10465 export_dynamic_flag_spec='${wl}-Blargedynsym'
cannam@140 10466 ;;
cannam@140 10467 esac
cannam@140 10468 fi
cannam@140 10469 fi
cannam@140 10470
cannam@140 10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cannam@140 10472 $as_echo "$ld_shlibs" >&6; }
cannam@140 10473 test "$ld_shlibs" = no && can_build_shared=no
cannam@140 10474
cannam@140 10475 with_gnu_ld=$with_gnu_ld
cannam@140 10476
cannam@140 10477
cannam@140 10478
cannam@140 10479
cannam@140 10480
cannam@140 10481
cannam@140 10482
cannam@140 10483
cannam@140 10484
cannam@140 10485
cannam@140 10486
cannam@140 10487
cannam@140 10488
cannam@140 10489
cannam@140 10490
cannam@140 10491 #
cannam@140 10492 # Do we need to explicitly link libc?
cannam@140 10493 #
cannam@140 10494 case "x$archive_cmds_need_lc" in
cannam@140 10495 x|xyes)
cannam@140 10496 # Assume -lc should be added
cannam@140 10497 archive_cmds_need_lc=yes
cannam@140 10498
cannam@140 10499 if test "$enable_shared" = yes && test "$GCC" = yes; then
cannam@140 10500 case $archive_cmds in
cannam@140 10501 *'~'*)
cannam@140 10502 # FIXME: we may have to deal with multi-command sequences.
cannam@140 10503 ;;
cannam@140 10504 '$CC '*)
cannam@140 10505 # Test whether the compiler implicitly links with -lc since on some
cannam@140 10506 # systems, -lgcc has to come before -lc. If gcc already passes -lc
cannam@140 10507 # to ld, don't add -lc before -lgcc.
cannam@140 10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cannam@140 10509 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cannam@140 10510 if ${lt_cv_archive_cmds_need_lc+:} false; then :
cannam@140 10511 $as_echo_n "(cached) " >&6
cannam@140 10512 else
cannam@140 10513 $RM conftest*
cannam@140 10514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@140 10515
cannam@140 10516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@140 10517 (eval $ac_compile) 2>&5
cannam@140 10518 ac_status=$?
cannam@140 10519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 10520 test $ac_status = 0; } 2>conftest.err; then
cannam@140 10521 soname=conftest
cannam@140 10522 lib=conftest
cannam@140 10523 libobjs=conftest.$ac_objext
cannam@140 10524 deplibs=
cannam@140 10525 wl=$lt_prog_compiler_wl
cannam@140 10526 pic_flag=$lt_prog_compiler_pic
cannam@140 10527 compiler_flags=-v
cannam@140 10528 linker_flags=-v
cannam@140 10529 verstring=
cannam@140 10530 output_objdir=.
cannam@140 10531 libname=conftest
cannam@140 10532 lt_save_allow_undefined_flag=$allow_undefined_flag
cannam@140 10533 allow_undefined_flag=
cannam@140 10534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cannam@140 10535 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
cannam@140 10536 ac_status=$?
cannam@140 10537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 10538 test $ac_status = 0; }
cannam@140 10539 then
cannam@140 10540 lt_cv_archive_cmds_need_lc=no
cannam@140 10541 else
cannam@140 10542 lt_cv_archive_cmds_need_lc=yes
cannam@140 10543 fi
cannam@140 10544 allow_undefined_flag=$lt_save_allow_undefined_flag
cannam@140 10545 else
cannam@140 10546 cat conftest.err 1>&5
cannam@140 10547 fi
cannam@140 10548 $RM conftest*
cannam@140 10549
cannam@140 10550 fi
cannam@140 10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
cannam@140 10552 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
cannam@140 10553 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cannam@140 10554 ;;
cannam@140 10555 esac
cannam@140 10556 fi
cannam@140 10557 ;;
cannam@140 10558 esac
cannam@140 10559
cannam@140 10560
cannam@140 10561
cannam@140 10562
cannam@140 10563
cannam@140 10564
cannam@140 10565
cannam@140 10566
cannam@140 10567
cannam@140 10568
cannam@140 10569
cannam@140 10570
cannam@140 10571
cannam@140 10572
cannam@140 10573
cannam@140 10574
cannam@140 10575
cannam@140 10576
cannam@140 10577
cannam@140 10578
cannam@140 10579
cannam@140 10580
cannam@140 10581
cannam@140 10582
cannam@140 10583
cannam@140 10584
cannam@140 10585
cannam@140 10586
cannam@140 10587
cannam@140 10588
cannam@140 10589
cannam@140 10590
cannam@140 10591
cannam@140 10592
cannam@140 10593
cannam@140 10594
cannam@140 10595
cannam@140 10596
cannam@140 10597
cannam@140 10598
cannam@140 10599
cannam@140 10600
cannam@140 10601
cannam@140 10602
cannam@140 10603
cannam@140 10604
cannam@140 10605
cannam@140 10606
cannam@140 10607
cannam@140 10608
cannam@140 10609
cannam@140 10610
cannam@140 10611
cannam@140 10612
cannam@140 10613
cannam@140 10614
cannam@140 10615
cannam@140 10616
cannam@140 10617
cannam@140 10618
cannam@140 10619
cannam@140 10620
cannam@140 10621
cannam@140 10622
cannam@140 10623
cannam@140 10624
cannam@140 10625
cannam@140 10626
cannam@140 10627
cannam@140 10628
cannam@140 10629
cannam@140 10630
cannam@140 10631
cannam@140 10632
cannam@140 10633
cannam@140 10634
cannam@140 10635
cannam@140 10636
cannam@140 10637
cannam@140 10638
cannam@140 10639
cannam@140 10640
cannam@140 10641
cannam@140 10642
cannam@140 10643
cannam@140 10644
cannam@140 10645
cannam@140 10646
cannam@140 10647
cannam@140 10648
cannam@140 10649
cannam@140 10650
cannam@140 10651
cannam@140 10652
cannam@140 10653
cannam@140 10654
cannam@140 10655
cannam@140 10656
cannam@140 10657
cannam@140 10658
cannam@140 10659
cannam@140 10660
cannam@140 10661
cannam@140 10662
cannam@140 10663
cannam@140 10664
cannam@140 10665
cannam@140 10666
cannam@140 10667
cannam@140 10668
cannam@140 10669
cannam@140 10670
cannam@140 10671
cannam@140 10672
cannam@140 10673
cannam@140 10674
cannam@140 10675
cannam@140 10676
cannam@140 10677
cannam@140 10678
cannam@140 10679
cannam@140 10680
cannam@140 10681
cannam@140 10682
cannam@140 10683
cannam@140 10684
cannam@140 10685
cannam@140 10686
cannam@140 10687
cannam@140 10688
cannam@140 10689
cannam@140 10690
cannam@140 10691
cannam@140 10692
cannam@140 10693
cannam@140 10694
cannam@140 10695
cannam@140 10696
cannam@140 10697
cannam@140 10698
cannam@140 10699
cannam@140 10700
cannam@140 10701
cannam@140 10702
cannam@140 10703
cannam@140 10704
cannam@140 10705
cannam@140 10706
cannam@140 10707
cannam@140 10708
cannam@140 10709
cannam@140 10710
cannam@140 10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cannam@140 10712 $as_echo_n "checking dynamic linker characteristics... " >&6; }
cannam@140 10713
cannam@140 10714 if test "$GCC" = yes; then
cannam@140 10715 case $host_os in
cannam@140 10716 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
cannam@140 10717 *) lt_awk_arg="/^libraries:/" ;;
cannam@140 10718 esac
cannam@140 10719 case $host_os in
cannam@140 10720 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
cannam@140 10721 *) lt_sed_strip_eq="s,=/,/,g" ;;
cannam@140 10722 esac
cannam@140 10723 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
cannam@140 10724 case $lt_search_path_spec in
cannam@140 10725 *\;*)
cannam@140 10726 # if the path contains ";" then we assume it to be the separator
cannam@140 10727 # otherwise default to the standard path separator (i.e. ":") - it is
cannam@140 10728 # assumed that no part of a normal pathname contains ";" but that should
cannam@140 10729 # okay in the real world where ";" in dirpaths is itself problematic.
cannam@140 10730 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
cannam@140 10731 ;;
cannam@140 10732 *)
cannam@140 10733 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
cannam@140 10734 ;;
cannam@140 10735 esac
cannam@140 10736 # Ok, now we have the path, separated by spaces, we can step through it
cannam@140 10737 # and add multilib dir if necessary.
cannam@140 10738 lt_tmp_lt_search_path_spec=
cannam@140 10739 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
cannam@140 10740 for lt_sys_path in $lt_search_path_spec; do
cannam@140 10741 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
cannam@140 10742 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
cannam@140 10743 else
cannam@140 10744 test -d "$lt_sys_path" && \
cannam@140 10745 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
cannam@140 10746 fi
cannam@140 10747 done
cannam@140 10748 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cannam@140 10749 BEGIN {RS=" "; FS="/|\n";} {
cannam@140 10750 lt_foo="";
cannam@140 10751 lt_count=0;
cannam@140 10752 for (lt_i = NF; lt_i > 0; lt_i--) {
cannam@140 10753 if ($lt_i != "" && $lt_i != ".") {
cannam@140 10754 if ($lt_i == "..") {
cannam@140 10755 lt_count++;
cannam@140 10756 } else {
cannam@140 10757 if (lt_count == 0) {
cannam@140 10758 lt_foo="/" $lt_i lt_foo;
cannam@140 10759 } else {
cannam@140 10760 lt_count--;
cannam@140 10761 }
cannam@140 10762 }
cannam@140 10763 }
cannam@140 10764 }
cannam@140 10765 if (lt_foo != "") { lt_freq[lt_foo]++; }
cannam@140 10766 if (lt_freq[lt_foo] == 1) { print lt_foo; }
cannam@140 10767 }'`
cannam@140 10768 # AWK program above erroneously prepends '/' to C:/dos/paths
cannam@140 10769 # for these hosts.
cannam@140 10770 case $host_os in
cannam@140 10771 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
cannam@140 10772 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
cannam@140 10773 esac
cannam@140 10774 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cannam@140 10775 else
cannam@140 10776 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
cannam@140 10777 fi
cannam@140 10778 library_names_spec=
cannam@140 10779 libname_spec='lib$name'
cannam@140 10780 soname_spec=
cannam@140 10781 shrext_cmds=".so"
cannam@140 10782 postinstall_cmds=
cannam@140 10783 postuninstall_cmds=
cannam@140 10784 finish_cmds=
cannam@140 10785 finish_eval=
cannam@140 10786 shlibpath_var=
cannam@140 10787 shlibpath_overrides_runpath=unknown
cannam@140 10788 version_type=none
cannam@140 10789 dynamic_linker="$host_os ld.so"
cannam@140 10790 sys_lib_dlsearch_path_spec="/lib /usr/lib"
cannam@140 10791 need_lib_prefix=unknown
cannam@140 10792 hardcode_into_libs=no
cannam@140 10793
cannam@140 10794 # when you set need_version to no, make sure it does not cause -set_version
cannam@140 10795 # flags to be left without arguments
cannam@140 10796 need_version=unknown
cannam@140 10797
cannam@140 10798 case $host_os in
cannam@140 10799 aix3*)
cannam@140 10800 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 10801 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
cannam@140 10802 shlibpath_var=LIBPATH
cannam@140 10803
cannam@140 10804 # AIX 3 has no versioning support, so we append a major version to the name.
cannam@140 10805 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 10806 ;;
cannam@140 10807
cannam@140 10808 aix[4-9]*)
cannam@140 10809 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 10810 need_lib_prefix=no
cannam@140 10811 need_version=no
cannam@140 10812 hardcode_into_libs=yes
cannam@140 10813 if test "$host_cpu" = ia64; then
cannam@140 10814 # AIX 5 supports IA64
cannam@140 10815 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
cannam@140 10816 shlibpath_var=LD_LIBRARY_PATH
cannam@140 10817 else
cannam@140 10818 # With GCC up to 2.95.x, collect2 would create an import file
cannam@140 10819 # for dependence libraries. The import file would start with
cannam@140 10820 # the line `#! .'. This would cause the generated library to
cannam@140 10821 # depend on `.', always an invalid library. This was fixed in
cannam@140 10822 # development snapshots of GCC prior to 3.0.
cannam@140 10823 case $host_os in
cannam@140 10824 aix4 | aix4.[01] | aix4.[01].*)
cannam@140 10825 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
cannam@140 10826 echo ' yes '
cannam@140 10827 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
cannam@140 10828 :
cannam@140 10829 else
cannam@140 10830 can_build_shared=no
cannam@140 10831 fi
cannam@140 10832 ;;
cannam@140 10833 esac
cannam@140 10834 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
cannam@140 10835 # soname into executable. Probably we can add versioning support to
cannam@140 10836 # collect2, so additional links can be useful in future.
cannam@140 10837 if test "$aix_use_runtimelinking" = yes; then
cannam@140 10838 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
cannam@140 10839 # instead of lib<name>.a to let people know that these are not
cannam@140 10840 # typical AIX shared libraries.
cannam@140 10841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 10842 else
cannam@140 10843 # We preserve .a as extension for shared libraries through AIX4.2
cannam@140 10844 # and later when we are not doing run time linking.
cannam@140 10845 library_names_spec='${libname}${release}.a $libname.a'
cannam@140 10846 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 10847 fi
cannam@140 10848 shlibpath_var=LIBPATH
cannam@140 10849 fi
cannam@140 10850 ;;
cannam@140 10851
cannam@140 10852 amigaos*)
cannam@140 10853 case $host_cpu in
cannam@140 10854 powerpc)
cannam@140 10855 # Since July 2007 AmigaOS4 officially supports .so libraries.
cannam@140 10856 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
cannam@140 10857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 10858 ;;
cannam@140 10859 m68k)
cannam@140 10860 library_names_spec='$libname.ixlibrary $libname.a'
cannam@140 10861 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cannam@140 10862 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
cannam@140 10863 ;;
cannam@140 10864 esac
cannam@140 10865 ;;
cannam@140 10866
cannam@140 10867 beos*)
cannam@140 10868 library_names_spec='${libname}${shared_ext}'
cannam@140 10869 dynamic_linker="$host_os ld.so"
cannam@140 10870 shlibpath_var=LIBRARY_PATH
cannam@140 10871 ;;
cannam@140 10872
cannam@140 10873 bsdi[45]*)
cannam@140 10874 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 10875 need_version=no
cannam@140 10876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 10877 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 10878 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
cannam@140 10879 shlibpath_var=LD_LIBRARY_PATH
cannam@140 10880 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
cannam@140 10881 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
cannam@140 10882 # the default ld.so.conf also contains /usr/contrib/lib and
cannam@140 10883 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
cannam@140 10884 # libtool to hard-code these into programs
cannam@140 10885 ;;
cannam@140 10886
cannam@140 10887 cygwin* | mingw* | pw32* | cegcc*)
cannam@140 10888 version_type=windows
cannam@140 10889 shrext_cmds=".dll"
cannam@140 10890 need_version=no
cannam@140 10891 need_lib_prefix=no
cannam@140 10892
cannam@140 10893 case $GCC,$cc_basename in
cannam@140 10894 yes,*)
cannam@140 10895 # gcc
cannam@140 10896 library_names_spec='$libname.dll.a'
cannam@140 10897 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@140 10898 postinstall_cmds='base_file=`basename \${file}`~
cannam@140 10899 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
cannam@140 10900 dldir=$destdir/`dirname \$dlpath`~
cannam@140 10901 test -d \$dldir || mkdir -p \$dldir~
cannam@140 10902 $install_prog $dir/$dlname \$dldir/$dlname~
cannam@140 10903 chmod a+x \$dldir/$dlname~
cannam@140 10904 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
cannam@140 10905 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
cannam@140 10906 fi'
cannam@140 10907 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@140 10908 dlpath=$dir/\$dldll~
cannam@140 10909 $RM \$dlpath'
cannam@140 10910 shlibpath_overrides_runpath=yes
cannam@140 10911
cannam@140 10912 case $host_os in
cannam@140 10913 cygwin*)
cannam@140 10914 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
cannam@140 10915 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@140 10916
cannam@140 10917 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cannam@140 10918 ;;
cannam@140 10919 mingw* | cegcc*)
cannam@140 10920 # MinGW DLLs use traditional 'lib' prefix
cannam@140 10921 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@140 10922 ;;
cannam@140 10923 pw32*)
cannam@140 10924 # pw32 DLLs use 'pw' prefix rather than 'lib'
cannam@140 10925 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@140 10926 ;;
cannam@140 10927 esac
cannam@140 10928 dynamic_linker='Win32 ld.exe'
cannam@140 10929 ;;
cannam@140 10930
cannam@140 10931 *,cl*)
cannam@140 10932 # Native MSVC
cannam@140 10933 libname_spec='$name'
cannam@140 10934 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@140 10935 library_names_spec='${libname}.dll.lib'
cannam@140 10936
cannam@140 10937 case $build_os in
cannam@140 10938 mingw*)
cannam@140 10939 sys_lib_search_path_spec=
cannam@140 10940 lt_save_ifs=$IFS
cannam@140 10941 IFS=';'
cannam@140 10942 for lt_path in $LIB
cannam@140 10943 do
cannam@140 10944 IFS=$lt_save_ifs
cannam@140 10945 # Let DOS variable expansion print the short 8.3 style file name.
cannam@140 10946 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
cannam@140 10947 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
cannam@140 10948 done
cannam@140 10949 IFS=$lt_save_ifs
cannam@140 10950 # Convert to MSYS style.
cannam@140 10951 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@140 10952 ;;
cannam@140 10953 cygwin*)
cannam@140 10954 # Convert to unix form, then to dos form, then back to unix form
cannam@140 10955 # but this time dos style (no spaces!) so that the unix form looks
cannam@140 10956 # like /cygdrive/c/PROGRA~1:/cygdr...
cannam@140 10957 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
cannam@140 10958 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
cannam@140 10959 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@140 10960 ;;
cannam@140 10961 *)
cannam@140 10962 sys_lib_search_path_spec="$LIB"
cannam@140 10963 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
cannam@140 10964 # It is most probably a Windows format PATH.
cannam@140 10965 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@140 10966 else
cannam@140 10967 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@140 10968 fi
cannam@140 10969 # FIXME: find the short name or the path components, as spaces are
cannam@140 10970 # common. (e.g. "Program Files" -> "PROGRA~1")
cannam@140 10971 ;;
cannam@140 10972 esac
cannam@140 10973
cannam@140 10974 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@140 10975 postinstall_cmds='base_file=`basename \${file}`~
cannam@140 10976 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
cannam@140 10977 dldir=$destdir/`dirname \$dlpath`~
cannam@140 10978 test -d \$dldir || mkdir -p \$dldir~
cannam@140 10979 $install_prog $dir/$dlname \$dldir/$dlname'
cannam@140 10980 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@140 10981 dlpath=$dir/\$dldll~
cannam@140 10982 $RM \$dlpath'
cannam@140 10983 shlibpath_overrides_runpath=yes
cannam@140 10984 dynamic_linker='Win32 link.exe'
cannam@140 10985 ;;
cannam@140 10986
cannam@140 10987 *)
cannam@140 10988 # Assume MSVC wrapper
cannam@140 10989 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cannam@140 10990 dynamic_linker='Win32 ld.exe'
cannam@140 10991 ;;
cannam@140 10992 esac
cannam@140 10993 # FIXME: first we should search . and the directory the executable is in
cannam@140 10994 shlibpath_var=PATH
cannam@140 10995 ;;
cannam@140 10996
cannam@140 10997 darwin* | rhapsody*)
cannam@140 10998 dynamic_linker="$host_os dyld"
cannam@140 10999 version_type=darwin
cannam@140 11000 need_lib_prefix=no
cannam@140 11001 need_version=no
cannam@140 11002 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
cannam@140 11003 soname_spec='${libname}${release}${major}$shared_ext'
cannam@140 11004 shlibpath_overrides_runpath=yes
cannam@140 11005 shlibpath_var=DYLD_LIBRARY_PATH
cannam@140 11006 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
cannam@140 11007
cannam@140 11008 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
cannam@140 11009 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
cannam@140 11010 ;;
cannam@140 11011
cannam@140 11012 dgux*)
cannam@140 11013 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 11014 need_lib_prefix=no
cannam@140 11015 need_version=no
cannam@140 11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
cannam@140 11017 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 11018 shlibpath_var=LD_LIBRARY_PATH
cannam@140 11019 ;;
cannam@140 11020
cannam@140 11021 freebsd* | dragonfly*)
cannam@140 11022 # DragonFly does not have aout. When/if they implement a new
cannam@140 11023 # versioning mechanism, adjust this.
cannam@140 11024 if test -x /usr/bin/objformat; then
cannam@140 11025 objformat=`/usr/bin/objformat`
cannam@140 11026 else
cannam@140 11027 case $host_os in
cannam@140 11028 freebsd[23].*) objformat=aout ;;
cannam@140 11029 *) objformat=elf ;;
cannam@140 11030 esac
cannam@140 11031 fi
cannam@140 11032 version_type=freebsd-$objformat
cannam@140 11033 case $version_type in
cannam@140 11034 freebsd-elf*)
cannam@140 11035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@140 11036 need_version=no
cannam@140 11037 need_lib_prefix=no
cannam@140 11038 ;;
cannam@140 11039 freebsd-*)
cannam@140 11040 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
cannam@140 11041 need_version=yes
cannam@140 11042 ;;
cannam@140 11043 esac
cannam@140 11044 shlibpath_var=LD_LIBRARY_PATH
cannam@140 11045 case $host_os in
cannam@140 11046 freebsd2.*)
cannam@140 11047 shlibpath_overrides_runpath=yes
cannam@140 11048 ;;
cannam@140 11049 freebsd3.[01]* | freebsdelf3.[01]*)
cannam@140 11050 shlibpath_overrides_runpath=yes
cannam@140 11051 hardcode_into_libs=yes
cannam@140 11052 ;;
cannam@140 11053 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
cannam@140 11054 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
cannam@140 11055 shlibpath_overrides_runpath=no
cannam@140 11056 hardcode_into_libs=yes
cannam@140 11057 ;;
cannam@140 11058 *) # from 4.6 on, and DragonFly
cannam@140 11059 shlibpath_overrides_runpath=yes
cannam@140 11060 hardcode_into_libs=yes
cannam@140 11061 ;;
cannam@140 11062 esac
cannam@140 11063 ;;
cannam@140 11064
cannam@140 11065 haiku*)
cannam@140 11066 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 11067 need_lib_prefix=no
cannam@140 11068 need_version=no
cannam@140 11069 dynamic_linker="$host_os runtime_loader"
cannam@140 11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
cannam@140 11071 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 11072 shlibpath_var=LIBRARY_PATH
cannam@140 11073 shlibpath_overrides_runpath=yes
cannam@140 11074 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
cannam@140 11075 hardcode_into_libs=yes
cannam@140 11076 ;;
cannam@140 11077
cannam@140 11078 hpux9* | hpux10* | hpux11*)
cannam@140 11079 # Give a soname corresponding to the major version so that dld.sl refuses to
cannam@140 11080 # link against other versions.
cannam@140 11081 version_type=sunos
cannam@140 11082 need_lib_prefix=no
cannam@140 11083 need_version=no
cannam@140 11084 case $host_cpu in
cannam@140 11085 ia64*)
cannam@140 11086 shrext_cmds='.so'
cannam@140 11087 hardcode_into_libs=yes
cannam@140 11088 dynamic_linker="$host_os dld.so"
cannam@140 11089 shlibpath_var=LD_LIBRARY_PATH
cannam@140 11090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@140 11091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 11092 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 11093 if test "X$HPUX_IA64_MODE" = X32; then
cannam@140 11094 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
cannam@140 11095 else
cannam@140 11096 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
cannam@140 11097 fi
cannam@140 11098 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@140 11099 ;;
cannam@140 11100 hppa*64*)
cannam@140 11101 shrext_cmds='.sl'
cannam@140 11102 hardcode_into_libs=yes
cannam@140 11103 dynamic_linker="$host_os dld.sl"
cannam@140 11104 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
cannam@140 11105 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@140 11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 11107 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 11108 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
cannam@140 11109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@140 11110 ;;
cannam@140 11111 *)
cannam@140 11112 shrext_cmds='.sl'
cannam@140 11113 dynamic_linker="$host_os dld.sl"
cannam@140 11114 shlibpath_var=SHLIB_PATH
cannam@140 11115 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
cannam@140 11116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 11117 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 11118 ;;
cannam@140 11119 esac
cannam@140 11120 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cannam@140 11121 postinstall_cmds='chmod 555 $lib'
cannam@140 11122 # or fails outright, so override atomically:
cannam@140 11123 install_override_mode=555
cannam@140 11124 ;;
cannam@140 11125
cannam@140 11126 interix[3-9]*)
cannam@140 11127 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 11128 need_lib_prefix=no
cannam@140 11129 need_version=no
cannam@140 11130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@140 11131 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 11132 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
cannam@140 11133 shlibpath_var=LD_LIBRARY_PATH
cannam@140 11134 shlibpath_overrides_runpath=no
cannam@140 11135 hardcode_into_libs=yes
cannam@140 11136 ;;
cannam@140 11137
cannam@140 11138 irix5* | irix6* | nonstopux*)
cannam@140 11139 case $host_os in
cannam@140 11140 nonstopux*) version_type=nonstopux ;;
cannam@140 11141 *)
cannam@140 11142 if test "$lt_cv_prog_gnu_ld" = yes; then
cannam@140 11143 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 11144 else
cannam@140 11145 version_type=irix
cannam@140 11146 fi ;;
cannam@140 11147 esac
cannam@140 11148 need_lib_prefix=no
cannam@140 11149 need_version=no
cannam@140 11150 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 11151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@140 11152 case $host_os in
cannam@140 11153 irix5* | nonstopux*)
cannam@140 11154 libsuff= shlibsuff=
cannam@140 11155 ;;
cannam@140 11156 *)
cannam@140 11157 case $LD in # libtool.m4 will add one of these switches to LD
cannam@140 11158 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
cannam@140 11159 libsuff= shlibsuff= libmagic=32-bit;;
cannam@140 11160 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
cannam@140 11161 libsuff=32 shlibsuff=N32 libmagic=N32;;
cannam@140 11162 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
cannam@140 11163 libsuff=64 shlibsuff=64 libmagic=64-bit;;
cannam@140 11164 *) libsuff= shlibsuff= libmagic=never-match;;
cannam@140 11165 esac
cannam@140 11166 ;;
cannam@140 11167 esac
cannam@140 11168 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
cannam@140 11169 shlibpath_overrides_runpath=no
cannam@140 11170 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
cannam@140 11171 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
cannam@140 11172 hardcode_into_libs=yes
cannam@140 11173 ;;
cannam@140 11174
cannam@140 11175 # No shared lib support for Linux oldld, aout, or coff.
cannam@140 11176 linux*oldld* | linux*aout* | linux*coff*)
cannam@140 11177 dynamic_linker=no
cannam@140 11178 ;;
cannam@140 11179
cannam@140 11180 # This must be glibc/ELF.
cannam@140 11181 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cannam@140 11182 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 11183 need_lib_prefix=no
cannam@140 11184 need_version=no
cannam@140 11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 11186 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 11187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
cannam@140 11188 shlibpath_var=LD_LIBRARY_PATH
cannam@140 11189 shlibpath_overrides_runpath=no
cannam@140 11190
cannam@140 11191 # Some binutils ld are patched to set DT_RUNPATH
cannam@140 11192 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cannam@140 11193 $as_echo_n "(cached) " >&6
cannam@140 11194 else
cannam@140 11195 lt_cv_shlibpath_overrides_runpath=no
cannam@140 11196 save_LDFLAGS=$LDFLAGS
cannam@140 11197 save_libdir=$libdir
cannam@140 11198 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
cannam@140 11199 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
cannam@140 11200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 11201 /* end confdefs.h. */
cannam@140 11202
cannam@140 11203 int
cannam@140 11204 main ()
cannam@140 11205 {
cannam@140 11206
cannam@140 11207 ;
cannam@140 11208 return 0;
cannam@140 11209 }
cannam@140 11210 _ACEOF
cannam@140 11211 if ac_fn_c_try_link "$LINENO"; then :
cannam@140 11212 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cannam@140 11213 lt_cv_shlibpath_overrides_runpath=yes
cannam@140 11214 fi
cannam@140 11215 fi
cannam@140 11216 rm -f core conftest.err conftest.$ac_objext \
cannam@140 11217 conftest$ac_exeext conftest.$ac_ext
cannam@140 11218 LDFLAGS=$save_LDFLAGS
cannam@140 11219 libdir=$save_libdir
cannam@140 11220
cannam@140 11221 fi
cannam@140 11222
cannam@140 11223 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cannam@140 11224
cannam@140 11225 # This implies no fast_install, which is unacceptable.
cannam@140 11226 # Some rework will be needed to allow for fast_install
cannam@140 11227 # before this can be enabled.
cannam@140 11228 hardcode_into_libs=yes
cannam@140 11229
cannam@140 11230 # Append ld.so.conf contents to the search path
cannam@140 11231 if test -f /etc/ld.so.conf; then
cannam@140 11232 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@140 11233 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
cannam@140 11234 fi
cannam@140 11235
cannam@140 11236 # We used to test for /lib/ld.so.1 and disable shared libraries on
cannam@140 11237 # powerpc, because MkLinux only supported shared libraries with the
cannam@140 11238 # GNU dynamic linker. Since this was broken with cross compilers,
cannam@140 11239 # most powerpc-linux boxes support dynamic linking these days and
cannam@140 11240 # people can always --disable-shared, the test was removed, and we
cannam@140 11241 # assume the GNU/Linux dynamic linker is in use.
cannam@140 11242 dynamic_linker='GNU/Linux ld.so'
cannam@140 11243 ;;
cannam@140 11244
cannam@140 11245 netbsdelf*-gnu)
cannam@140 11246 version_type=linux
cannam@140 11247 need_lib_prefix=no
cannam@140 11248 need_version=no
cannam@140 11249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@140 11250 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 11251 shlibpath_var=LD_LIBRARY_PATH
cannam@140 11252 shlibpath_overrides_runpath=no
cannam@140 11253 hardcode_into_libs=yes
cannam@140 11254 dynamic_linker='NetBSD ld.elf_so'
cannam@140 11255 ;;
cannam@140 11256
cannam@140 11257 netbsd*)
cannam@140 11258 version_type=sunos
cannam@140 11259 need_lib_prefix=no
cannam@140 11260 need_version=no
cannam@140 11261 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@140 11262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@140 11263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@140 11264 dynamic_linker='NetBSD (a.out) ld.so'
cannam@140 11265 else
cannam@140 11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@140 11267 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 11268 dynamic_linker='NetBSD ld.elf_so'
cannam@140 11269 fi
cannam@140 11270 shlibpath_var=LD_LIBRARY_PATH
cannam@140 11271 shlibpath_overrides_runpath=yes
cannam@140 11272 hardcode_into_libs=yes
cannam@140 11273 ;;
cannam@140 11274
cannam@140 11275 newsos6)
cannam@140 11276 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 11278 shlibpath_var=LD_LIBRARY_PATH
cannam@140 11279 shlibpath_overrides_runpath=yes
cannam@140 11280 ;;
cannam@140 11281
cannam@140 11282 *nto* | *qnx*)
cannam@140 11283 version_type=qnx
cannam@140 11284 need_lib_prefix=no
cannam@140 11285 need_version=no
cannam@140 11286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 11287 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 11288 shlibpath_var=LD_LIBRARY_PATH
cannam@140 11289 shlibpath_overrides_runpath=no
cannam@140 11290 hardcode_into_libs=yes
cannam@140 11291 dynamic_linker='ldqnx.so'
cannam@140 11292 ;;
cannam@140 11293
cannam@140 11294 openbsd*)
cannam@140 11295 version_type=sunos
cannam@140 11296 sys_lib_dlsearch_path_spec="/usr/lib"
cannam@140 11297 need_lib_prefix=no
cannam@140 11298 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
cannam@140 11299 case $host_os in
cannam@140 11300 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
cannam@140 11301 *) need_version=no ;;
cannam@140 11302 esac
cannam@140 11303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@140 11304 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@140 11305 shlibpath_var=LD_LIBRARY_PATH
cannam@140 11306 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@140 11307 case $host_os in
cannam@140 11308 openbsd2.[89] | openbsd2.[89].*)
cannam@140 11309 shlibpath_overrides_runpath=no
cannam@140 11310 ;;
cannam@140 11311 *)
cannam@140 11312 shlibpath_overrides_runpath=yes
cannam@140 11313 ;;
cannam@140 11314 esac
cannam@140 11315 else
cannam@140 11316 shlibpath_overrides_runpath=yes
cannam@140 11317 fi
cannam@140 11318 ;;
cannam@140 11319
cannam@140 11320 os2*)
cannam@140 11321 libname_spec='$name'
cannam@140 11322 shrext_cmds=".dll"
cannam@140 11323 need_lib_prefix=no
cannam@140 11324 library_names_spec='$libname${shared_ext} $libname.a'
cannam@140 11325 dynamic_linker='OS/2 ld.exe'
cannam@140 11326 shlibpath_var=LIBPATH
cannam@140 11327 ;;
cannam@140 11328
cannam@140 11329 osf3* | osf4* | osf5*)
cannam@140 11330 version_type=osf
cannam@140 11331 need_lib_prefix=no
cannam@140 11332 need_version=no
cannam@140 11333 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 11334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 11335 shlibpath_var=LD_LIBRARY_PATH
cannam@140 11336 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
cannam@140 11337 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
cannam@140 11338 ;;
cannam@140 11339
cannam@140 11340 rdos*)
cannam@140 11341 dynamic_linker=no
cannam@140 11342 ;;
cannam@140 11343
cannam@140 11344 solaris*)
cannam@140 11345 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 11346 need_lib_prefix=no
cannam@140 11347 need_version=no
cannam@140 11348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 11349 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 11350 shlibpath_var=LD_LIBRARY_PATH
cannam@140 11351 shlibpath_overrides_runpath=yes
cannam@140 11352 hardcode_into_libs=yes
cannam@140 11353 # ldd complains unless libraries are executable
cannam@140 11354 postinstall_cmds='chmod +x $lib'
cannam@140 11355 ;;
cannam@140 11356
cannam@140 11357 sunos4*)
cannam@140 11358 version_type=sunos
cannam@140 11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@140 11360 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
cannam@140 11361 shlibpath_var=LD_LIBRARY_PATH
cannam@140 11362 shlibpath_overrides_runpath=yes
cannam@140 11363 if test "$with_gnu_ld" = yes; then
cannam@140 11364 need_lib_prefix=no
cannam@140 11365 fi
cannam@140 11366 need_version=yes
cannam@140 11367 ;;
cannam@140 11368
cannam@140 11369 sysv4 | sysv4.3*)
cannam@140 11370 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 11371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 11372 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 11373 shlibpath_var=LD_LIBRARY_PATH
cannam@140 11374 case $host_vendor in
cannam@140 11375 sni)
cannam@140 11376 shlibpath_overrides_runpath=no
cannam@140 11377 need_lib_prefix=no
cannam@140 11378 runpath_var=LD_RUN_PATH
cannam@140 11379 ;;
cannam@140 11380 siemens)
cannam@140 11381 need_lib_prefix=no
cannam@140 11382 ;;
cannam@140 11383 motorola)
cannam@140 11384 need_lib_prefix=no
cannam@140 11385 need_version=no
cannam@140 11386 shlibpath_overrides_runpath=no
cannam@140 11387 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
cannam@140 11388 ;;
cannam@140 11389 esac
cannam@140 11390 ;;
cannam@140 11391
cannam@140 11392 sysv4*MP*)
cannam@140 11393 if test -d /usr/nec ;then
cannam@140 11394 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 11395 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
cannam@140 11396 soname_spec='$libname${shared_ext}.$major'
cannam@140 11397 shlibpath_var=LD_LIBRARY_PATH
cannam@140 11398 fi
cannam@140 11399 ;;
cannam@140 11400
cannam@140 11401 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
cannam@140 11402 version_type=freebsd-elf
cannam@140 11403 need_lib_prefix=no
cannam@140 11404 need_version=no
cannam@140 11405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@140 11406 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 11407 shlibpath_var=LD_LIBRARY_PATH
cannam@140 11408 shlibpath_overrides_runpath=yes
cannam@140 11409 hardcode_into_libs=yes
cannam@140 11410 if test "$with_gnu_ld" = yes; then
cannam@140 11411 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
cannam@140 11412 else
cannam@140 11413 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
cannam@140 11414 case $host_os in
cannam@140 11415 sco3.2v5*)
cannam@140 11416 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
cannam@140 11417 ;;
cannam@140 11418 esac
cannam@140 11419 fi
cannam@140 11420 sys_lib_dlsearch_path_spec='/usr/lib'
cannam@140 11421 ;;
cannam@140 11422
cannam@140 11423 tpf*)
cannam@140 11424 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cannam@140 11425 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 11426 need_lib_prefix=no
cannam@140 11427 need_version=no
cannam@140 11428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 11429 shlibpath_var=LD_LIBRARY_PATH
cannam@140 11430 shlibpath_overrides_runpath=no
cannam@140 11431 hardcode_into_libs=yes
cannam@140 11432 ;;
cannam@140 11433
cannam@140 11434 uts4*)
cannam@140 11435 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 11436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 11437 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 11438 shlibpath_var=LD_LIBRARY_PATH
cannam@140 11439 ;;
cannam@140 11440
cannam@140 11441 *)
cannam@140 11442 dynamic_linker=no
cannam@140 11443 ;;
cannam@140 11444 esac
cannam@140 11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cannam@140 11446 $as_echo "$dynamic_linker" >&6; }
cannam@140 11447 test "$dynamic_linker" = no && can_build_shared=no
cannam@140 11448
cannam@140 11449 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
cannam@140 11450 if test "$GCC" = yes; then
cannam@140 11451 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
cannam@140 11452 fi
cannam@140 11453
cannam@140 11454 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
cannam@140 11455 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
cannam@140 11456 fi
cannam@140 11457 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
cannam@140 11458 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
cannam@140 11459 fi
cannam@140 11460
cannam@140 11461
cannam@140 11462
cannam@140 11463
cannam@140 11464
cannam@140 11465
cannam@140 11466
cannam@140 11467
cannam@140 11468
cannam@140 11469
cannam@140 11470
cannam@140 11471
cannam@140 11472
cannam@140 11473
cannam@140 11474
cannam@140 11475
cannam@140 11476
cannam@140 11477
cannam@140 11478
cannam@140 11479
cannam@140 11480
cannam@140 11481
cannam@140 11482
cannam@140 11483
cannam@140 11484
cannam@140 11485
cannam@140 11486
cannam@140 11487
cannam@140 11488
cannam@140 11489
cannam@140 11490
cannam@140 11491
cannam@140 11492
cannam@140 11493
cannam@140 11494
cannam@140 11495
cannam@140 11496
cannam@140 11497
cannam@140 11498
cannam@140 11499
cannam@140 11500
cannam@140 11501
cannam@140 11502
cannam@140 11503
cannam@140 11504
cannam@140 11505
cannam@140 11506
cannam@140 11507
cannam@140 11508
cannam@140 11509
cannam@140 11510
cannam@140 11511
cannam@140 11512
cannam@140 11513
cannam@140 11514
cannam@140 11515
cannam@140 11516
cannam@140 11517
cannam@140 11518
cannam@140 11519
cannam@140 11520
cannam@140 11521
cannam@140 11522
cannam@140 11523
cannam@140 11524
cannam@140 11525
cannam@140 11526
cannam@140 11527
cannam@140 11528
cannam@140 11529
cannam@140 11530
cannam@140 11531
cannam@140 11532
cannam@140 11533
cannam@140 11534
cannam@140 11535
cannam@140 11536
cannam@140 11537
cannam@140 11538
cannam@140 11539
cannam@140 11540
cannam@140 11541
cannam@140 11542
cannam@140 11543
cannam@140 11544
cannam@140 11545
cannam@140 11546
cannam@140 11547
cannam@140 11548
cannam@140 11549
cannam@140 11550
cannam@140 11551
cannam@140 11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cannam@140 11553 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
cannam@140 11554 hardcode_action=
cannam@140 11555 if test -n "$hardcode_libdir_flag_spec" ||
cannam@140 11556 test -n "$runpath_var" ||
cannam@140 11557 test "X$hardcode_automatic" = "Xyes" ; then
cannam@140 11558
cannam@140 11559 # We can hardcode non-existent directories.
cannam@140 11560 if test "$hardcode_direct" != no &&
cannam@140 11561 # If the only mechanism to avoid hardcoding is shlibpath_var, we
cannam@140 11562 # have to relink, otherwise we might link with an installed library
cannam@140 11563 # when we should be linking with a yet-to-be-installed one
cannam@140 11564 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
cannam@140 11565 test "$hardcode_minus_L" != no; then
cannam@140 11566 # Linking always hardcodes the temporary library directory.
cannam@140 11567 hardcode_action=relink
cannam@140 11568 else
cannam@140 11569 # We can link without hardcoding, and we can hardcode nonexisting dirs.
cannam@140 11570 hardcode_action=immediate
cannam@140 11571 fi
cannam@140 11572 else
cannam@140 11573 # We cannot hardcode anything, or else we can only hardcode existing
cannam@140 11574 # directories.
cannam@140 11575 hardcode_action=unsupported
cannam@140 11576 fi
cannam@140 11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cannam@140 11578 $as_echo "$hardcode_action" >&6; }
cannam@140 11579
cannam@140 11580 if test "$hardcode_action" = relink ||
cannam@140 11581 test "$inherit_rpath" = yes; then
cannam@140 11582 # Fast installation is not supported
cannam@140 11583 enable_fast_install=no
cannam@140 11584 elif test "$shlibpath_overrides_runpath" = yes ||
cannam@140 11585 test "$enable_shared" = no; then
cannam@140 11586 # Fast installation is not necessary
cannam@140 11587 enable_fast_install=needless
cannam@140 11588 fi
cannam@140 11589
cannam@140 11590
cannam@140 11591
cannam@140 11592
cannam@140 11593
cannam@140 11594
cannam@140 11595 if test "x$enable_dlopen" != xyes; then
cannam@140 11596 enable_dlopen=unknown
cannam@140 11597 enable_dlopen_self=unknown
cannam@140 11598 enable_dlopen_self_static=unknown
cannam@140 11599 else
cannam@140 11600 lt_cv_dlopen=no
cannam@140 11601 lt_cv_dlopen_libs=
cannam@140 11602
cannam@140 11603 case $host_os in
cannam@140 11604 beos*)
cannam@140 11605 lt_cv_dlopen="load_add_on"
cannam@140 11606 lt_cv_dlopen_libs=
cannam@140 11607 lt_cv_dlopen_self=yes
cannam@140 11608 ;;
cannam@140 11609
cannam@140 11610 mingw* | pw32* | cegcc*)
cannam@140 11611 lt_cv_dlopen="LoadLibrary"
cannam@140 11612 lt_cv_dlopen_libs=
cannam@140 11613 ;;
cannam@140 11614
cannam@140 11615 cygwin*)
cannam@140 11616 lt_cv_dlopen="dlopen"
cannam@140 11617 lt_cv_dlopen_libs=
cannam@140 11618 ;;
cannam@140 11619
cannam@140 11620 darwin*)
cannam@140 11621 # if libdl is installed we need to link against it
cannam@140 11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cannam@140 11623 $as_echo_n "checking for dlopen in -ldl... " >&6; }
cannam@140 11624 if ${ac_cv_lib_dl_dlopen+:} false; then :
cannam@140 11625 $as_echo_n "(cached) " >&6
cannam@140 11626 else
cannam@140 11627 ac_check_lib_save_LIBS=$LIBS
cannam@140 11628 LIBS="-ldl $LIBS"
cannam@140 11629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 11630 /* end confdefs.h. */
cannam@140 11631
cannam@140 11632 /* Override any GCC internal prototype to avoid an error.
cannam@140 11633 Use char because int might match the return type of a GCC
cannam@140 11634 builtin and then its argument prototype would still apply. */
cannam@140 11635 #ifdef __cplusplus
cannam@140 11636 extern "C"
cannam@140 11637 #endif
cannam@140 11638 char dlopen ();
cannam@140 11639 int
cannam@140 11640 main ()
cannam@140 11641 {
cannam@140 11642 return dlopen ();
cannam@140 11643 ;
cannam@140 11644 return 0;
cannam@140 11645 }
cannam@140 11646 _ACEOF
cannam@140 11647 if ac_fn_c_try_link "$LINENO"; then :
cannam@140 11648 ac_cv_lib_dl_dlopen=yes
cannam@140 11649 else
cannam@140 11650 ac_cv_lib_dl_dlopen=no
cannam@140 11651 fi
cannam@140 11652 rm -f core conftest.err conftest.$ac_objext \
cannam@140 11653 conftest$ac_exeext conftest.$ac_ext
cannam@140 11654 LIBS=$ac_check_lib_save_LIBS
cannam@140 11655 fi
cannam@140 11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cannam@140 11657 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cannam@140 11658 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cannam@140 11659 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
cannam@140 11660 else
cannam@140 11661
cannam@140 11662 lt_cv_dlopen="dyld"
cannam@140 11663 lt_cv_dlopen_libs=
cannam@140 11664 lt_cv_dlopen_self=yes
cannam@140 11665
cannam@140 11666 fi
cannam@140 11667
cannam@140 11668 ;;
cannam@140 11669
cannam@140 11670 *)
cannam@140 11671 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cannam@140 11672 if test "x$ac_cv_func_shl_load" = xyes; then :
cannam@140 11673 lt_cv_dlopen="shl_load"
cannam@140 11674 else
cannam@140 11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cannam@140 11676 $as_echo_n "checking for shl_load in -ldld... " >&6; }
cannam@140 11677 if ${ac_cv_lib_dld_shl_load+:} false; then :
cannam@140 11678 $as_echo_n "(cached) " >&6
cannam@140 11679 else
cannam@140 11680 ac_check_lib_save_LIBS=$LIBS
cannam@140 11681 LIBS="-ldld $LIBS"
cannam@140 11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 11683 /* end confdefs.h. */
cannam@140 11684
cannam@140 11685 /* Override any GCC internal prototype to avoid an error.
cannam@140 11686 Use char because int might match the return type of a GCC
cannam@140 11687 builtin and then its argument prototype would still apply. */
cannam@140 11688 #ifdef __cplusplus
cannam@140 11689 extern "C"
cannam@140 11690 #endif
cannam@140 11691 char shl_load ();
cannam@140 11692 int
cannam@140 11693 main ()
cannam@140 11694 {
cannam@140 11695 return shl_load ();
cannam@140 11696 ;
cannam@140 11697 return 0;
cannam@140 11698 }
cannam@140 11699 _ACEOF
cannam@140 11700 if ac_fn_c_try_link "$LINENO"; then :
cannam@140 11701 ac_cv_lib_dld_shl_load=yes
cannam@140 11702 else
cannam@140 11703 ac_cv_lib_dld_shl_load=no
cannam@140 11704 fi
cannam@140 11705 rm -f core conftest.err conftest.$ac_objext \
cannam@140 11706 conftest$ac_exeext conftest.$ac_ext
cannam@140 11707 LIBS=$ac_check_lib_save_LIBS
cannam@140 11708 fi
cannam@140 11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cannam@140 11710 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cannam@140 11711 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cannam@140 11712 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
cannam@140 11713 else
cannam@140 11714 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cannam@140 11715 if test "x$ac_cv_func_dlopen" = xyes; then :
cannam@140 11716 lt_cv_dlopen="dlopen"
cannam@140 11717 else
cannam@140 11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cannam@140 11719 $as_echo_n "checking for dlopen in -ldl... " >&6; }
cannam@140 11720 if ${ac_cv_lib_dl_dlopen+:} false; then :
cannam@140 11721 $as_echo_n "(cached) " >&6
cannam@140 11722 else
cannam@140 11723 ac_check_lib_save_LIBS=$LIBS
cannam@140 11724 LIBS="-ldl $LIBS"
cannam@140 11725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 11726 /* end confdefs.h. */
cannam@140 11727
cannam@140 11728 /* Override any GCC internal prototype to avoid an error.
cannam@140 11729 Use char because int might match the return type of a GCC
cannam@140 11730 builtin and then its argument prototype would still apply. */
cannam@140 11731 #ifdef __cplusplus
cannam@140 11732 extern "C"
cannam@140 11733 #endif
cannam@140 11734 char dlopen ();
cannam@140 11735 int
cannam@140 11736 main ()
cannam@140 11737 {
cannam@140 11738 return dlopen ();
cannam@140 11739 ;
cannam@140 11740 return 0;
cannam@140 11741 }
cannam@140 11742 _ACEOF
cannam@140 11743 if ac_fn_c_try_link "$LINENO"; then :
cannam@140 11744 ac_cv_lib_dl_dlopen=yes
cannam@140 11745 else
cannam@140 11746 ac_cv_lib_dl_dlopen=no
cannam@140 11747 fi
cannam@140 11748 rm -f core conftest.err conftest.$ac_objext \
cannam@140 11749 conftest$ac_exeext conftest.$ac_ext
cannam@140 11750 LIBS=$ac_check_lib_save_LIBS
cannam@140 11751 fi
cannam@140 11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cannam@140 11753 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cannam@140 11754 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cannam@140 11755 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
cannam@140 11756 else
cannam@140 11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cannam@140 11758 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
cannam@140 11759 if ${ac_cv_lib_svld_dlopen+:} false; then :
cannam@140 11760 $as_echo_n "(cached) " >&6
cannam@140 11761 else
cannam@140 11762 ac_check_lib_save_LIBS=$LIBS
cannam@140 11763 LIBS="-lsvld $LIBS"
cannam@140 11764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 11765 /* end confdefs.h. */
cannam@140 11766
cannam@140 11767 /* Override any GCC internal prototype to avoid an error.
cannam@140 11768 Use char because int might match the return type of a GCC
cannam@140 11769 builtin and then its argument prototype would still apply. */
cannam@140 11770 #ifdef __cplusplus
cannam@140 11771 extern "C"
cannam@140 11772 #endif
cannam@140 11773 char dlopen ();
cannam@140 11774 int
cannam@140 11775 main ()
cannam@140 11776 {
cannam@140 11777 return dlopen ();
cannam@140 11778 ;
cannam@140 11779 return 0;
cannam@140 11780 }
cannam@140 11781 _ACEOF
cannam@140 11782 if ac_fn_c_try_link "$LINENO"; then :
cannam@140 11783 ac_cv_lib_svld_dlopen=yes
cannam@140 11784 else
cannam@140 11785 ac_cv_lib_svld_dlopen=no
cannam@140 11786 fi
cannam@140 11787 rm -f core conftest.err conftest.$ac_objext \
cannam@140 11788 conftest$ac_exeext conftest.$ac_ext
cannam@140 11789 LIBS=$ac_check_lib_save_LIBS
cannam@140 11790 fi
cannam@140 11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cannam@140 11792 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cannam@140 11793 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cannam@140 11794 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
cannam@140 11795 else
cannam@140 11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cannam@140 11797 $as_echo_n "checking for dld_link in -ldld... " >&6; }
cannam@140 11798 if ${ac_cv_lib_dld_dld_link+:} false; then :
cannam@140 11799 $as_echo_n "(cached) " >&6
cannam@140 11800 else
cannam@140 11801 ac_check_lib_save_LIBS=$LIBS
cannam@140 11802 LIBS="-ldld $LIBS"
cannam@140 11803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 11804 /* end confdefs.h. */
cannam@140 11805
cannam@140 11806 /* Override any GCC internal prototype to avoid an error.
cannam@140 11807 Use char because int might match the return type of a GCC
cannam@140 11808 builtin and then its argument prototype would still apply. */
cannam@140 11809 #ifdef __cplusplus
cannam@140 11810 extern "C"
cannam@140 11811 #endif
cannam@140 11812 char dld_link ();
cannam@140 11813 int
cannam@140 11814 main ()
cannam@140 11815 {
cannam@140 11816 return dld_link ();
cannam@140 11817 ;
cannam@140 11818 return 0;
cannam@140 11819 }
cannam@140 11820 _ACEOF
cannam@140 11821 if ac_fn_c_try_link "$LINENO"; then :
cannam@140 11822 ac_cv_lib_dld_dld_link=yes
cannam@140 11823 else
cannam@140 11824 ac_cv_lib_dld_dld_link=no
cannam@140 11825 fi
cannam@140 11826 rm -f core conftest.err conftest.$ac_objext \
cannam@140 11827 conftest$ac_exeext conftest.$ac_ext
cannam@140 11828 LIBS=$ac_check_lib_save_LIBS
cannam@140 11829 fi
cannam@140 11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cannam@140 11831 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cannam@140 11832 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cannam@140 11833 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
cannam@140 11834 fi
cannam@140 11835
cannam@140 11836
cannam@140 11837 fi
cannam@140 11838
cannam@140 11839
cannam@140 11840 fi
cannam@140 11841
cannam@140 11842
cannam@140 11843 fi
cannam@140 11844
cannam@140 11845
cannam@140 11846 fi
cannam@140 11847
cannam@140 11848
cannam@140 11849 fi
cannam@140 11850
cannam@140 11851 ;;
cannam@140 11852 esac
cannam@140 11853
cannam@140 11854 if test "x$lt_cv_dlopen" != xno; then
cannam@140 11855 enable_dlopen=yes
cannam@140 11856 else
cannam@140 11857 enable_dlopen=no
cannam@140 11858 fi
cannam@140 11859
cannam@140 11860 case $lt_cv_dlopen in
cannam@140 11861 dlopen)
cannam@140 11862 save_CPPFLAGS="$CPPFLAGS"
cannam@140 11863 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
cannam@140 11864
cannam@140 11865 save_LDFLAGS="$LDFLAGS"
cannam@140 11866 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
cannam@140 11867
cannam@140 11868 save_LIBS="$LIBS"
cannam@140 11869 LIBS="$lt_cv_dlopen_libs $LIBS"
cannam@140 11870
cannam@140 11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cannam@140 11872 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
cannam@140 11873 if ${lt_cv_dlopen_self+:} false; then :
cannam@140 11874 $as_echo_n "(cached) " >&6
cannam@140 11875 else
cannam@140 11876 if test "$cross_compiling" = yes; then :
cannam@140 11877 lt_cv_dlopen_self=cross
cannam@140 11878 else
cannam@140 11879 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@140 11880 lt_status=$lt_dlunknown
cannam@140 11881 cat > conftest.$ac_ext <<_LT_EOF
cannam@140 11882 #line $LINENO "configure"
cannam@140 11883 #include "confdefs.h"
cannam@140 11884
cannam@140 11885 #if HAVE_DLFCN_H
cannam@140 11886 #include <dlfcn.h>
cannam@140 11887 #endif
cannam@140 11888
cannam@140 11889 #include <stdio.h>
cannam@140 11890
cannam@140 11891 #ifdef RTLD_GLOBAL
cannam@140 11892 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@140 11893 #else
cannam@140 11894 # ifdef DL_GLOBAL
cannam@140 11895 # define LT_DLGLOBAL DL_GLOBAL
cannam@140 11896 # else
cannam@140 11897 # define LT_DLGLOBAL 0
cannam@140 11898 # endif
cannam@140 11899 #endif
cannam@140 11900
cannam@140 11901 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@140 11902 find out it does not work in some platform. */
cannam@140 11903 #ifndef LT_DLLAZY_OR_NOW
cannam@140 11904 # ifdef RTLD_LAZY
cannam@140 11905 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@140 11906 # else
cannam@140 11907 # ifdef DL_LAZY
cannam@140 11908 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@140 11909 # else
cannam@140 11910 # ifdef RTLD_NOW
cannam@140 11911 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@140 11912 # else
cannam@140 11913 # ifdef DL_NOW
cannam@140 11914 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@140 11915 # else
cannam@140 11916 # define LT_DLLAZY_OR_NOW 0
cannam@140 11917 # endif
cannam@140 11918 # endif
cannam@140 11919 # endif
cannam@140 11920 # endif
cannam@140 11921 #endif
cannam@140 11922
cannam@140 11923 /* When -fvisbility=hidden is used, assume the code has been annotated
cannam@140 11924 correspondingly for the symbols needed. */
cannam@140 11925 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cannam@140 11926 int fnord () __attribute__((visibility("default")));
cannam@140 11927 #endif
cannam@140 11928
cannam@140 11929 int fnord () { return 42; }
cannam@140 11930 int main ()
cannam@140 11931 {
cannam@140 11932 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@140 11933 int status = $lt_dlunknown;
cannam@140 11934
cannam@140 11935 if (self)
cannam@140 11936 {
cannam@140 11937 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@140 11938 else
cannam@140 11939 {
cannam@140 11940 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@140 11941 else puts (dlerror ());
cannam@140 11942 }
cannam@140 11943 /* dlclose (self); */
cannam@140 11944 }
cannam@140 11945 else
cannam@140 11946 puts (dlerror ());
cannam@140 11947
cannam@140 11948 return status;
cannam@140 11949 }
cannam@140 11950 _LT_EOF
cannam@140 11951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cannam@140 11952 (eval $ac_link) 2>&5
cannam@140 11953 ac_status=$?
cannam@140 11954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 11955 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cannam@140 11956 (./conftest; exit; ) >&5 2>/dev/null
cannam@140 11957 lt_status=$?
cannam@140 11958 case x$lt_status in
cannam@140 11959 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
cannam@140 11960 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
cannam@140 11961 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
cannam@140 11962 esac
cannam@140 11963 else :
cannam@140 11964 # compilation failed
cannam@140 11965 lt_cv_dlopen_self=no
cannam@140 11966 fi
cannam@140 11967 fi
cannam@140 11968 rm -fr conftest*
cannam@140 11969
cannam@140 11970
cannam@140 11971 fi
cannam@140 11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cannam@140 11973 $as_echo "$lt_cv_dlopen_self" >&6; }
cannam@140 11974
cannam@140 11975 if test "x$lt_cv_dlopen_self" = xyes; then
cannam@140 11976 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cannam@140 11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cannam@140 11978 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cannam@140 11979 if ${lt_cv_dlopen_self_static+:} false; then :
cannam@140 11980 $as_echo_n "(cached) " >&6
cannam@140 11981 else
cannam@140 11982 if test "$cross_compiling" = yes; then :
cannam@140 11983 lt_cv_dlopen_self_static=cross
cannam@140 11984 else
cannam@140 11985 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@140 11986 lt_status=$lt_dlunknown
cannam@140 11987 cat > conftest.$ac_ext <<_LT_EOF
cannam@140 11988 #line $LINENO "configure"
cannam@140 11989 #include "confdefs.h"
cannam@140 11990
cannam@140 11991 #if HAVE_DLFCN_H
cannam@140 11992 #include <dlfcn.h>
cannam@140 11993 #endif
cannam@140 11994
cannam@140 11995 #include <stdio.h>
cannam@140 11996
cannam@140 11997 #ifdef RTLD_GLOBAL
cannam@140 11998 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@140 11999 #else
cannam@140 12000 # ifdef DL_GLOBAL
cannam@140 12001 # define LT_DLGLOBAL DL_GLOBAL
cannam@140 12002 # else
cannam@140 12003 # define LT_DLGLOBAL 0
cannam@140 12004 # endif
cannam@140 12005 #endif
cannam@140 12006
cannam@140 12007 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@140 12008 find out it does not work in some platform. */
cannam@140 12009 #ifndef LT_DLLAZY_OR_NOW
cannam@140 12010 # ifdef RTLD_LAZY
cannam@140 12011 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@140 12012 # else
cannam@140 12013 # ifdef DL_LAZY
cannam@140 12014 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@140 12015 # else
cannam@140 12016 # ifdef RTLD_NOW
cannam@140 12017 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@140 12018 # else
cannam@140 12019 # ifdef DL_NOW
cannam@140 12020 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@140 12021 # else
cannam@140 12022 # define LT_DLLAZY_OR_NOW 0
cannam@140 12023 # endif
cannam@140 12024 # endif
cannam@140 12025 # endif
cannam@140 12026 # endif
cannam@140 12027 #endif
cannam@140 12028
cannam@140 12029 /* When -fvisbility=hidden is used, assume the code has been annotated
cannam@140 12030 correspondingly for the symbols needed. */
cannam@140 12031 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cannam@140 12032 int fnord () __attribute__((visibility("default")));
cannam@140 12033 #endif
cannam@140 12034
cannam@140 12035 int fnord () { return 42; }
cannam@140 12036 int main ()
cannam@140 12037 {
cannam@140 12038 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@140 12039 int status = $lt_dlunknown;
cannam@140 12040
cannam@140 12041 if (self)
cannam@140 12042 {
cannam@140 12043 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@140 12044 else
cannam@140 12045 {
cannam@140 12046 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@140 12047 else puts (dlerror ());
cannam@140 12048 }
cannam@140 12049 /* dlclose (self); */
cannam@140 12050 }
cannam@140 12051 else
cannam@140 12052 puts (dlerror ());
cannam@140 12053
cannam@140 12054 return status;
cannam@140 12055 }
cannam@140 12056 _LT_EOF
cannam@140 12057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cannam@140 12058 (eval $ac_link) 2>&5
cannam@140 12059 ac_status=$?
cannam@140 12060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 12061 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cannam@140 12062 (./conftest; exit; ) >&5 2>/dev/null
cannam@140 12063 lt_status=$?
cannam@140 12064 case x$lt_status in
cannam@140 12065 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@140 12066 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@140 12067 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
cannam@140 12068 esac
cannam@140 12069 else :
cannam@140 12070 # compilation failed
cannam@140 12071 lt_cv_dlopen_self_static=no
cannam@140 12072 fi
cannam@140 12073 fi
cannam@140 12074 rm -fr conftest*
cannam@140 12075
cannam@140 12076
cannam@140 12077 fi
cannam@140 12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cannam@140 12079 $as_echo "$lt_cv_dlopen_self_static" >&6; }
cannam@140 12080 fi
cannam@140 12081
cannam@140 12082 CPPFLAGS="$save_CPPFLAGS"
cannam@140 12083 LDFLAGS="$save_LDFLAGS"
cannam@140 12084 LIBS="$save_LIBS"
cannam@140 12085 ;;
cannam@140 12086 esac
cannam@140 12087
cannam@140 12088 case $lt_cv_dlopen_self in
cannam@140 12089 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
cannam@140 12090 *) enable_dlopen_self=unknown ;;
cannam@140 12091 esac
cannam@140 12092
cannam@140 12093 case $lt_cv_dlopen_self_static in
cannam@140 12094 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
cannam@140 12095 *) enable_dlopen_self_static=unknown ;;
cannam@140 12096 esac
cannam@140 12097 fi
cannam@140 12098
cannam@140 12099
cannam@140 12100
cannam@140 12101
cannam@140 12102
cannam@140 12103
cannam@140 12104
cannam@140 12105
cannam@140 12106
cannam@140 12107
cannam@140 12108
cannam@140 12109
cannam@140 12110
cannam@140 12111
cannam@140 12112
cannam@140 12113
cannam@140 12114
cannam@140 12115 striplib=
cannam@140 12116 old_striplib=
cannam@140 12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cannam@140 12118 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
cannam@140 12119 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
cannam@140 12120 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
cannam@140 12121 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cannam@140 12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@140 12123 $as_echo "yes" >&6; }
cannam@140 12124 else
cannam@140 12125 # FIXME - insert some real tests, host_os isn't really good enough
cannam@140 12126 case $host_os in
cannam@140 12127 darwin*)
cannam@140 12128 if test -n "$STRIP" ; then
cannam@140 12129 striplib="$STRIP -x"
cannam@140 12130 old_striplib="$STRIP -S"
cannam@140 12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@140 12132 $as_echo "yes" >&6; }
cannam@140 12133 else
cannam@140 12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 12135 $as_echo "no" >&6; }
cannam@140 12136 fi
cannam@140 12137 ;;
cannam@140 12138 *)
cannam@140 12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 12140 $as_echo "no" >&6; }
cannam@140 12141 ;;
cannam@140 12142 esac
cannam@140 12143 fi
cannam@140 12144
cannam@140 12145
cannam@140 12146
cannam@140 12147
cannam@140 12148
cannam@140 12149
cannam@140 12150
cannam@140 12151
cannam@140 12152
cannam@140 12153
cannam@140 12154
cannam@140 12155
cannam@140 12156 # Report which library types will actually be built
cannam@140 12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cannam@140 12158 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
cannam@140 12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cannam@140 12160 $as_echo "$can_build_shared" >&6; }
cannam@140 12161
cannam@140 12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cannam@140 12163 $as_echo_n "checking whether to build shared libraries... " >&6; }
cannam@140 12164 test "$can_build_shared" = "no" && enable_shared=no
cannam@140 12165
cannam@140 12166 # On AIX, shared libraries and static libraries use the same namespace, and
cannam@140 12167 # are all built from PIC.
cannam@140 12168 case $host_os in
cannam@140 12169 aix3*)
cannam@140 12170 test "$enable_shared" = yes && enable_static=no
cannam@140 12171 if test -n "$RANLIB"; then
cannam@140 12172 archive_cmds="$archive_cmds~\$RANLIB \$lib"
cannam@140 12173 postinstall_cmds='$RANLIB $lib'
cannam@140 12174 fi
cannam@140 12175 ;;
cannam@140 12176
cannam@140 12177 aix[4-9]*)
cannam@140 12178 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
cannam@140 12179 test "$enable_shared" = yes && enable_static=no
cannam@140 12180 fi
cannam@140 12181 ;;
cannam@140 12182 esac
cannam@140 12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cannam@140 12184 $as_echo "$enable_shared" >&6; }
cannam@140 12185
cannam@140 12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cannam@140 12187 $as_echo_n "checking whether to build static libraries... " >&6; }
cannam@140 12188 # Make sure either enable_shared or enable_static is yes.
cannam@140 12189 test "$enable_shared" = yes || enable_static=yes
cannam@140 12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cannam@140 12191 $as_echo "$enable_static" >&6; }
cannam@140 12192
cannam@140 12193
cannam@140 12194
cannam@140 12195
cannam@140 12196 fi
cannam@140 12197 ac_ext=c
cannam@140 12198 ac_cpp='$CPP $CPPFLAGS'
cannam@140 12199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@140 12200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@140 12201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@140 12202
cannam@140 12203 CC="$lt_save_CC"
cannam@140 12204
cannam@140 12205 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
cannam@140 12206 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
cannam@140 12207 (test "X$CXX" != "Xg++"))) ; then
cannam@140 12208 ac_ext=cpp
cannam@140 12209 ac_cpp='$CXXCPP $CPPFLAGS'
cannam@140 12210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@140 12211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@140 12212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cannam@140 12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
cannam@140 12214 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
cannam@140 12215 if test -z "$CXXCPP"; then
cannam@140 12216 if ${ac_cv_prog_CXXCPP+:} false; then :
cannam@140 12217 $as_echo_n "(cached) " >&6
cannam@140 12218 else
cannam@140 12219 # Double quotes because CXXCPP needs to be expanded
cannam@140 12220 for CXXCPP in "$CXX -E" "/lib/cpp"
cannam@140 12221 do
cannam@140 12222 ac_preproc_ok=false
cannam@140 12223 for ac_cxx_preproc_warn_flag in '' yes
cannam@140 12224 do
cannam@140 12225 # Use a header file that comes with gcc, so configuring glibc
cannam@140 12226 # with a fresh cross-compiler works.
cannam@140 12227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@140 12228 # <limits.h> exists even on freestanding compilers.
cannam@140 12229 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@140 12230 # not just through cpp. "Syntax error" is here to catch this case.
cannam@140 12231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 12232 /* end confdefs.h. */
cannam@140 12233 #ifdef __STDC__
cannam@140 12234 # include <limits.h>
cannam@140 12235 #else
cannam@140 12236 # include <assert.h>
cannam@140 12237 #endif
cannam@140 12238 Syntax error
cannam@140 12239 _ACEOF
cannam@140 12240 if ac_fn_cxx_try_cpp "$LINENO"; then :
cannam@140 12241
cannam@140 12242 else
cannam@140 12243 # Broken: fails on valid input.
cannam@140 12244 continue
cannam@140 12245 fi
cannam@140 12246 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@140 12247
cannam@140 12248 # OK, works on sane cases. Now check whether nonexistent headers
cannam@140 12249 # can be detected and how.
cannam@140 12250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 12251 /* end confdefs.h. */
cannam@140 12252 #include <ac_nonexistent.h>
cannam@140 12253 _ACEOF
cannam@140 12254 if ac_fn_cxx_try_cpp "$LINENO"; then :
cannam@140 12255 # Broken: success on invalid input.
cannam@140 12256 continue
cannam@140 12257 else
cannam@140 12258 # Passes both tests.
cannam@140 12259 ac_preproc_ok=:
cannam@140 12260 break
cannam@140 12261 fi
cannam@140 12262 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@140 12263
cannam@140 12264 done
cannam@140 12265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@140 12266 rm -f conftest.i conftest.err conftest.$ac_ext
cannam@140 12267 if $ac_preproc_ok; then :
cannam@140 12268 break
cannam@140 12269 fi
cannam@140 12270
cannam@140 12271 done
cannam@140 12272 ac_cv_prog_CXXCPP=$CXXCPP
cannam@140 12273
cannam@140 12274 fi
cannam@140 12275 CXXCPP=$ac_cv_prog_CXXCPP
cannam@140 12276 else
cannam@140 12277 ac_cv_prog_CXXCPP=$CXXCPP
cannam@140 12278 fi
cannam@140 12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
cannam@140 12280 $as_echo "$CXXCPP" >&6; }
cannam@140 12281 ac_preproc_ok=false
cannam@140 12282 for ac_cxx_preproc_warn_flag in '' yes
cannam@140 12283 do
cannam@140 12284 # Use a header file that comes with gcc, so configuring glibc
cannam@140 12285 # with a fresh cross-compiler works.
cannam@140 12286 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@140 12287 # <limits.h> exists even on freestanding compilers.
cannam@140 12288 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@140 12289 # not just through cpp. "Syntax error" is here to catch this case.
cannam@140 12290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 12291 /* end confdefs.h. */
cannam@140 12292 #ifdef __STDC__
cannam@140 12293 # include <limits.h>
cannam@140 12294 #else
cannam@140 12295 # include <assert.h>
cannam@140 12296 #endif
cannam@140 12297 Syntax error
cannam@140 12298 _ACEOF
cannam@140 12299 if ac_fn_cxx_try_cpp "$LINENO"; then :
cannam@140 12300
cannam@140 12301 else
cannam@140 12302 # Broken: fails on valid input.
cannam@140 12303 continue
cannam@140 12304 fi
cannam@140 12305 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@140 12306
cannam@140 12307 # OK, works on sane cases. Now check whether nonexistent headers
cannam@140 12308 # can be detected and how.
cannam@140 12309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 12310 /* end confdefs.h. */
cannam@140 12311 #include <ac_nonexistent.h>
cannam@140 12312 _ACEOF
cannam@140 12313 if ac_fn_cxx_try_cpp "$LINENO"; then :
cannam@140 12314 # Broken: success on invalid input.
cannam@140 12315 continue
cannam@140 12316 else
cannam@140 12317 # Passes both tests.
cannam@140 12318 ac_preproc_ok=:
cannam@140 12319 break
cannam@140 12320 fi
cannam@140 12321 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@140 12322
cannam@140 12323 done
cannam@140 12324 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@140 12325 rm -f conftest.i conftest.err conftest.$ac_ext
cannam@140 12326 if $ac_preproc_ok; then :
cannam@140 12327
cannam@140 12328 else
cannam@140 12329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@140 12330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@140 12331 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
cannam@140 12332 See \`config.log' for more details" "$LINENO" 5; }
cannam@140 12333 fi
cannam@140 12334
cannam@140 12335 ac_ext=c
cannam@140 12336 ac_cpp='$CPP $CPPFLAGS'
cannam@140 12337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@140 12338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@140 12339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@140 12340
cannam@140 12341 else
cannam@140 12342 _lt_caught_CXX_error=yes
cannam@140 12343 fi
cannam@140 12344
cannam@140 12345 ac_ext=cpp
cannam@140 12346 ac_cpp='$CXXCPP $CPPFLAGS'
cannam@140 12347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@140 12348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@140 12349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cannam@140 12350
cannam@140 12351 archive_cmds_need_lc_CXX=no
cannam@140 12352 allow_undefined_flag_CXX=
cannam@140 12353 always_export_symbols_CXX=no
cannam@140 12354 archive_expsym_cmds_CXX=
cannam@140 12355 compiler_needs_object_CXX=no
cannam@140 12356 export_dynamic_flag_spec_CXX=
cannam@140 12357 hardcode_direct_CXX=no
cannam@140 12358 hardcode_direct_absolute_CXX=no
cannam@140 12359 hardcode_libdir_flag_spec_CXX=
cannam@140 12360 hardcode_libdir_separator_CXX=
cannam@140 12361 hardcode_minus_L_CXX=no
cannam@140 12362 hardcode_shlibpath_var_CXX=unsupported
cannam@140 12363 hardcode_automatic_CXX=no
cannam@140 12364 inherit_rpath_CXX=no
cannam@140 12365 module_cmds_CXX=
cannam@140 12366 module_expsym_cmds_CXX=
cannam@140 12367 link_all_deplibs_CXX=unknown
cannam@140 12368 old_archive_cmds_CXX=$old_archive_cmds
cannam@140 12369 reload_flag_CXX=$reload_flag
cannam@140 12370 reload_cmds_CXX=$reload_cmds
cannam@140 12371 no_undefined_flag_CXX=
cannam@140 12372 whole_archive_flag_spec_CXX=
cannam@140 12373 enable_shared_with_static_runtimes_CXX=no
cannam@140 12374
cannam@140 12375 # Source file extension for C++ test sources.
cannam@140 12376 ac_ext=cpp
cannam@140 12377
cannam@140 12378 # Object file extension for compiled C++ test sources.
cannam@140 12379 objext=o
cannam@140 12380 objext_CXX=$objext
cannam@140 12381
cannam@140 12382 # No sense in running all these tests if we already determined that
cannam@140 12383 # the CXX compiler isn't working. Some variables (like enable_shared)
cannam@140 12384 # are currently assumed to apply to all compilers on this platform,
cannam@140 12385 # and will be corrupted by setting them based on a non-working compiler.
cannam@140 12386 if test "$_lt_caught_CXX_error" != yes; then
cannam@140 12387 # Code to be used in simple compile tests
cannam@140 12388 lt_simple_compile_test_code="int some_variable = 0;"
cannam@140 12389
cannam@140 12390 # Code to be used in simple link tests
cannam@140 12391 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
cannam@140 12392
cannam@140 12393 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
cannam@140 12394
cannam@140 12395
cannam@140 12396
cannam@140 12397
cannam@140 12398
cannam@140 12399
cannam@140 12400 # If no C compiler was specified, use CC.
cannam@140 12401 LTCC=${LTCC-"$CC"}
cannam@140 12402
cannam@140 12403 # If no C compiler flags were specified, use CFLAGS.
cannam@140 12404 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cannam@140 12405
cannam@140 12406 # Allow CC to be a program name with arguments.
cannam@140 12407 compiler=$CC
cannam@140 12408
cannam@140 12409
cannam@140 12410 # save warnings/boilerplate of simple test code
cannam@140 12411 ac_outfile=conftest.$ac_objext
cannam@140 12412 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
cannam@140 12413 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@140 12414 _lt_compiler_boilerplate=`cat conftest.err`
cannam@140 12415 $RM conftest*
cannam@140 12416
cannam@140 12417 ac_outfile=conftest.$ac_objext
cannam@140 12418 echo "$lt_simple_link_test_code" >conftest.$ac_ext
cannam@140 12419 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@140 12420 _lt_linker_boilerplate=`cat conftest.err`
cannam@140 12421 $RM -r conftest*
cannam@140 12422
cannam@140 12423
cannam@140 12424 # Allow CC to be a program name with arguments.
cannam@140 12425 lt_save_CC=$CC
cannam@140 12426 lt_save_CFLAGS=$CFLAGS
cannam@140 12427 lt_save_LD=$LD
cannam@140 12428 lt_save_GCC=$GCC
cannam@140 12429 GCC=$GXX
cannam@140 12430 lt_save_with_gnu_ld=$with_gnu_ld
cannam@140 12431 lt_save_path_LD=$lt_cv_path_LD
cannam@140 12432 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
cannam@140 12433 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
cannam@140 12434 else
cannam@140 12435 $as_unset lt_cv_prog_gnu_ld
cannam@140 12436 fi
cannam@140 12437 if test -n "${lt_cv_path_LDCXX+set}"; then
cannam@140 12438 lt_cv_path_LD=$lt_cv_path_LDCXX
cannam@140 12439 else
cannam@140 12440 $as_unset lt_cv_path_LD
cannam@140 12441 fi
cannam@140 12442 test -z "${LDCXX+set}" || LD=$LDCXX
cannam@140 12443 CC=${CXX-"c++"}
cannam@140 12444 CFLAGS=$CXXFLAGS
cannam@140 12445 compiler=$CC
cannam@140 12446 compiler_CXX=$CC
cannam@140 12447 for cc_temp in $compiler""; do
cannam@140 12448 case $cc_temp in
cannam@140 12449 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
cannam@140 12450 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
cannam@140 12451 \-*) ;;
cannam@140 12452 *) break;;
cannam@140 12453 esac
cannam@140 12454 done
cannam@140 12455 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cannam@140 12456
cannam@140 12457
cannam@140 12458 if test -n "$compiler"; then
cannam@140 12459 # We don't want -fno-exception when compiling C++ code, so set the
cannam@140 12460 # no_builtin_flag separately
cannam@140 12461 if test "$GXX" = yes; then
cannam@140 12462 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
cannam@140 12463 else
cannam@140 12464 lt_prog_compiler_no_builtin_flag_CXX=
cannam@140 12465 fi
cannam@140 12466
cannam@140 12467 if test "$GXX" = yes; then
cannam@140 12468 # Set up default GNU C++ configuration
cannam@140 12469
cannam@140 12470
cannam@140 12471
cannam@140 12472 # Check whether --with-gnu-ld was given.
cannam@140 12473 if test "${with_gnu_ld+set}" = set; then :
cannam@140 12474 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
cannam@140 12475 else
cannam@140 12476 with_gnu_ld=no
cannam@140 12477 fi
cannam@140 12478
cannam@140 12479 ac_prog=ld
cannam@140 12480 if test "$GCC" = yes; then
cannam@140 12481 # Check if gcc -print-prog-name=ld gives a path.
cannam@140 12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cannam@140 12483 $as_echo_n "checking for ld used by $CC... " >&6; }
cannam@140 12484 case $host in
cannam@140 12485 *-*-mingw*)
cannam@140 12486 # gcc leaves a trailing carriage return which upsets mingw
cannam@140 12487 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
cannam@140 12488 *)
cannam@140 12489 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
cannam@140 12490 esac
cannam@140 12491 case $ac_prog in
cannam@140 12492 # Accept absolute paths.
cannam@140 12493 [\\/]* | ?:[\\/]*)
cannam@140 12494 re_direlt='/[^/][^/]*/\.\./'
cannam@140 12495 # Canonicalize the pathname of ld
cannam@140 12496 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
cannam@140 12497 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
cannam@140 12498 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cannam@140 12499 done
cannam@140 12500 test -z "$LD" && LD="$ac_prog"
cannam@140 12501 ;;
cannam@140 12502 "")
cannam@140 12503 # If it fails, then pretend we aren't using GCC.
cannam@140 12504 ac_prog=ld
cannam@140 12505 ;;
cannam@140 12506 *)
cannam@140 12507 # If it is relative, then search for the first ld in PATH.
cannam@140 12508 with_gnu_ld=unknown
cannam@140 12509 ;;
cannam@140 12510 esac
cannam@140 12511 elif test "$with_gnu_ld" = yes; then
cannam@140 12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cannam@140 12513 $as_echo_n "checking for GNU ld... " >&6; }
cannam@140 12514 else
cannam@140 12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cannam@140 12516 $as_echo_n "checking for non-GNU ld... " >&6; }
cannam@140 12517 fi
cannam@140 12518 if ${lt_cv_path_LD+:} false; then :
cannam@140 12519 $as_echo_n "(cached) " >&6
cannam@140 12520 else
cannam@140 12521 if test -z "$LD"; then
cannam@140 12522 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@140 12523 for ac_dir in $PATH; do
cannam@140 12524 IFS="$lt_save_ifs"
cannam@140 12525 test -z "$ac_dir" && ac_dir=.
cannam@140 12526 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
cannam@140 12527 lt_cv_path_LD="$ac_dir/$ac_prog"
cannam@140 12528 # Check to see if the program is GNU ld. I'd rather use --version,
cannam@140 12529 # but apparently some variants of GNU ld only accept -v.
cannam@140 12530 # Break only if it was the GNU/non-GNU ld that we prefer.
cannam@140 12531 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
cannam@140 12532 *GNU* | *'with BFD'*)
cannam@140 12533 test "$with_gnu_ld" != no && break
cannam@140 12534 ;;
cannam@140 12535 *)
cannam@140 12536 test "$with_gnu_ld" != yes && break
cannam@140 12537 ;;
cannam@140 12538 esac
cannam@140 12539 fi
cannam@140 12540 done
cannam@140 12541 IFS="$lt_save_ifs"
cannam@140 12542 else
cannam@140 12543 lt_cv_path_LD="$LD" # Let the user override the test with a path.
cannam@140 12544 fi
cannam@140 12545 fi
cannam@140 12546
cannam@140 12547 LD="$lt_cv_path_LD"
cannam@140 12548 if test -n "$LD"; then
cannam@140 12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cannam@140 12550 $as_echo "$LD" >&6; }
cannam@140 12551 else
cannam@140 12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@140 12553 $as_echo "no" >&6; }
cannam@140 12554 fi
cannam@140 12555 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cannam@140 12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cannam@140 12557 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cannam@140 12558 if ${lt_cv_prog_gnu_ld+:} false; then :
cannam@140 12559 $as_echo_n "(cached) " >&6
cannam@140 12560 else
cannam@140 12561 # I'd rather use --version here, but apparently some GNU lds only accept -v.
cannam@140 12562 case `$LD -v 2>&1 </dev/null` in
cannam@140 12563 *GNU* | *'with BFD'*)
cannam@140 12564 lt_cv_prog_gnu_ld=yes
cannam@140 12565 ;;
cannam@140 12566 *)
cannam@140 12567 lt_cv_prog_gnu_ld=no
cannam@140 12568 ;;
cannam@140 12569 esac
cannam@140 12570 fi
cannam@140 12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cannam@140 12572 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
cannam@140 12573 with_gnu_ld=$lt_cv_prog_gnu_ld
cannam@140 12574
cannam@140 12575
cannam@140 12576
cannam@140 12577
cannam@140 12578
cannam@140 12579
cannam@140 12580
cannam@140 12581 # Check if GNU C++ uses GNU ld as the underlying linker, since the
cannam@140 12582 # archiving commands below assume that GNU ld is being used.
cannam@140 12583 if test "$with_gnu_ld" = yes; then
cannam@140 12584 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@140 12585 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@140 12586
cannam@140 12587 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
cannam@140 12588 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cannam@140 12589
cannam@140 12590 # If archive_cmds runs LD, not CC, wlarc should be empty
cannam@140 12591 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
cannam@140 12592 # investigate it a little bit more. (MM)
cannam@140 12593 wlarc='${wl}'
cannam@140 12594
cannam@140 12595 # ancient GNU ld didn't support --whole-archive et. al.
cannam@140 12596 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
cannam@140 12597 $GREP 'no-whole-archive' > /dev/null; then
cannam@140 12598 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
cannam@140 12599 else
cannam@140 12600 whole_archive_flag_spec_CXX=
cannam@140 12601 fi
cannam@140 12602 else
cannam@140 12603 with_gnu_ld=no
cannam@140 12604 wlarc=
cannam@140 12605
cannam@140 12606 # A generic and very simple default shared library creation
cannam@140 12607 # command for GNU C++ for the case where it uses the native
cannam@140 12608 # linker, instead of GNU ld. If possible, this setting should
cannam@140 12609 # overridden to take advantage of the native linker features on
cannam@140 12610 # the platform it is being used on.
cannam@140 12611 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
cannam@140 12612 fi
cannam@140 12613
cannam@140 12614 # Commands to make compiler produce verbose output that lists
cannam@140 12615 # what "hidden" libraries, object files and flags are used when
cannam@140 12616 # linking a shared library.
cannam@140 12617 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cannam@140 12618
cannam@140 12619 else
cannam@140 12620 GXX=no
cannam@140 12621 with_gnu_ld=no
cannam@140 12622 wlarc=
cannam@140 12623 fi
cannam@140 12624
cannam@140 12625 # PORTME: fill in a description of your system's C++ link characteristics
cannam@140 12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@140 12627 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
cannam@140 12628 ld_shlibs_CXX=yes
cannam@140 12629 case $host_os in
cannam@140 12630 aix3*)
cannam@140 12631 # FIXME: insert proper C++ library support
cannam@140 12632 ld_shlibs_CXX=no
cannam@140 12633 ;;
cannam@140 12634 aix[4-9]*)
cannam@140 12635 if test "$host_cpu" = ia64; then
cannam@140 12636 # On IA64, the linker does run time linking by default, so we don't
cannam@140 12637 # have to do anything special.
cannam@140 12638 aix_use_runtimelinking=no
cannam@140 12639 exp_sym_flag='-Bexport'
cannam@140 12640 no_entry_flag=""
cannam@140 12641 else
cannam@140 12642 aix_use_runtimelinking=no
cannam@140 12643
cannam@140 12644 # Test if we are trying to use run time linking or normal
cannam@140 12645 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cannam@140 12646 # need to do runtime linking.
cannam@140 12647 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
cannam@140 12648 for ld_flag in $LDFLAGS; do
cannam@140 12649 case $ld_flag in
cannam@140 12650 *-brtl*)
cannam@140 12651 aix_use_runtimelinking=yes
cannam@140 12652 break
cannam@140 12653 ;;
cannam@140 12654 esac
cannam@140 12655 done
cannam@140 12656 ;;
cannam@140 12657 esac
cannam@140 12658
cannam@140 12659 exp_sym_flag='-bexport'
cannam@140 12660 no_entry_flag='-bnoentry'
cannam@140 12661 fi
cannam@140 12662
cannam@140 12663 # When large executables or shared objects are built, AIX ld can
cannam@140 12664 # have problems creating the table of contents. If linking a library
cannam@140 12665 # or program results in "error TOC overflow" add -mminimal-toc to
cannam@140 12666 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
cannam@140 12667 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
cannam@140 12668
cannam@140 12669 archive_cmds_CXX=''
cannam@140 12670 hardcode_direct_CXX=yes
cannam@140 12671 hardcode_direct_absolute_CXX=yes
cannam@140 12672 hardcode_libdir_separator_CXX=':'
cannam@140 12673 link_all_deplibs_CXX=yes
cannam@140 12674 file_list_spec_CXX='${wl}-f,'
cannam@140 12675
cannam@140 12676 if test "$GXX" = yes; then
cannam@140 12677 case $host_os in aix4.[012]|aix4.[012].*)
cannam@140 12678 # We only want to do this on AIX 4.2 and lower, the check
cannam@140 12679 # below for broken collect2 doesn't work under 4.3+
cannam@140 12680 collect2name=`${CC} -print-prog-name=collect2`
cannam@140 12681 if test -f "$collect2name" &&
cannam@140 12682 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
cannam@140 12683 then
cannam@140 12684 # We have reworked collect2
cannam@140 12685 :
cannam@140 12686 else
cannam@140 12687 # We have old collect2
cannam@140 12688 hardcode_direct_CXX=unsupported
cannam@140 12689 # It fails to find uninstalled libraries when the uninstalled
cannam@140 12690 # path is not listed in the libpath. Setting hardcode_minus_L
cannam@140 12691 # to unsupported forces relinking
cannam@140 12692 hardcode_minus_L_CXX=yes
cannam@140 12693 hardcode_libdir_flag_spec_CXX='-L$libdir'
cannam@140 12694 hardcode_libdir_separator_CXX=
cannam@140 12695 fi
cannam@140 12696 esac
cannam@140 12697 shared_flag='-shared'
cannam@140 12698 if test "$aix_use_runtimelinking" = yes; then
cannam@140 12699 shared_flag="$shared_flag "'${wl}-G'
cannam@140 12700 fi
cannam@140 12701 else
cannam@140 12702 # not using gcc
cannam@140 12703 if test "$host_cpu" = ia64; then
cannam@140 12704 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
cannam@140 12705 # chokes on -Wl,-G. The following line is correct:
cannam@140 12706 shared_flag='-G'
cannam@140 12707 else
cannam@140 12708 if test "$aix_use_runtimelinking" = yes; then
cannam@140 12709 shared_flag='${wl}-G'
cannam@140 12710 else
cannam@140 12711 shared_flag='${wl}-bM:SRE'
cannam@140 12712 fi
cannam@140 12713 fi
cannam@140 12714 fi
cannam@140 12715
cannam@140 12716 export_dynamic_flag_spec_CXX='${wl}-bexpall'
cannam@140 12717 # It seems that -bexpall does not export symbols beginning with
cannam@140 12718 # underscore (_), so it is better to generate a list of symbols to
cannam@140 12719 # export.
cannam@140 12720 always_export_symbols_CXX=yes
cannam@140 12721 if test "$aix_use_runtimelinking" = yes; then
cannam@140 12722 # Warning - without using the other runtime loading flags (-brtl),
cannam@140 12723 # -berok will link without error, but may produce a broken library.
cannam@140 12724 allow_undefined_flag_CXX='-berok'
cannam@140 12725 # Determine the default libpath from the value encoded in an empty
cannam@140 12726 # executable.
cannam@140 12727 if test "${lt_cv_aix_libpath+set}" = set; then
cannam@140 12728 aix_libpath=$lt_cv_aix_libpath
cannam@140 12729 else
cannam@140 12730 if ${lt_cv_aix_libpath__CXX+:} false; then :
cannam@140 12731 $as_echo_n "(cached) " >&6
cannam@140 12732 else
cannam@140 12733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 12734 /* end confdefs.h. */
cannam@140 12735
cannam@140 12736 int
cannam@140 12737 main ()
cannam@140 12738 {
cannam@140 12739
cannam@140 12740 ;
cannam@140 12741 return 0;
cannam@140 12742 }
cannam@140 12743 _ACEOF
cannam@140 12744 if ac_fn_cxx_try_link "$LINENO"; then :
cannam@140 12745
cannam@140 12746 lt_aix_libpath_sed='
cannam@140 12747 /Import File Strings/,/^$/ {
cannam@140 12748 /^0/ {
cannam@140 12749 s/^0 *\([^ ]*\) *$/\1/
cannam@140 12750 p
cannam@140 12751 }
cannam@140 12752 }'
cannam@140 12753 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@140 12754 # Check for a 64-bit object if we didn't find anything.
cannam@140 12755 if test -z "$lt_cv_aix_libpath__CXX"; then
cannam@140 12756 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@140 12757 fi
cannam@140 12758 fi
cannam@140 12759 rm -f core conftest.err conftest.$ac_objext \
cannam@140 12760 conftest$ac_exeext conftest.$ac_ext
cannam@140 12761 if test -z "$lt_cv_aix_libpath__CXX"; then
cannam@140 12762 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
cannam@140 12763 fi
cannam@140 12764
cannam@140 12765 fi
cannam@140 12766
cannam@140 12767 aix_libpath=$lt_cv_aix_libpath__CXX
cannam@140 12768 fi
cannam@140 12769
cannam@140 12770 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@140 12771
cannam@140 12772 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cannam@140 12773 else
cannam@140 12774 if test "$host_cpu" = ia64; then
cannam@140 12775 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
cannam@140 12776 allow_undefined_flag_CXX="-z nodefs"
cannam@140 12777 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@140 12778 else
cannam@140 12779 # Determine the default libpath from the value encoded in an
cannam@140 12780 # empty executable.
cannam@140 12781 if test "${lt_cv_aix_libpath+set}" = set; then
cannam@140 12782 aix_libpath=$lt_cv_aix_libpath
cannam@140 12783 else
cannam@140 12784 if ${lt_cv_aix_libpath__CXX+:} false; then :
cannam@140 12785 $as_echo_n "(cached) " >&6
cannam@140 12786 else
cannam@140 12787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 12788 /* end confdefs.h. */
cannam@140 12789
cannam@140 12790 int
cannam@140 12791 main ()
cannam@140 12792 {
cannam@140 12793
cannam@140 12794 ;
cannam@140 12795 return 0;
cannam@140 12796 }
cannam@140 12797 _ACEOF
cannam@140 12798 if ac_fn_cxx_try_link "$LINENO"; then :
cannam@140 12799
cannam@140 12800 lt_aix_libpath_sed='
cannam@140 12801 /Import File Strings/,/^$/ {
cannam@140 12802 /^0/ {
cannam@140 12803 s/^0 *\([^ ]*\) *$/\1/
cannam@140 12804 p
cannam@140 12805 }
cannam@140 12806 }'
cannam@140 12807 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@140 12808 # Check for a 64-bit object if we didn't find anything.
cannam@140 12809 if test -z "$lt_cv_aix_libpath__CXX"; then
cannam@140 12810 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@140 12811 fi
cannam@140 12812 fi
cannam@140 12813 rm -f core conftest.err conftest.$ac_objext \
cannam@140 12814 conftest$ac_exeext conftest.$ac_ext
cannam@140 12815 if test -z "$lt_cv_aix_libpath__CXX"; then
cannam@140 12816 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
cannam@140 12817 fi
cannam@140 12818
cannam@140 12819 fi
cannam@140 12820
cannam@140 12821 aix_libpath=$lt_cv_aix_libpath__CXX
cannam@140 12822 fi
cannam@140 12823
cannam@140 12824 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@140 12825 # Warning - without using the other run time loading flags,
cannam@140 12826 # -berok will link without error, but may produce a broken library.
cannam@140 12827 no_undefined_flag_CXX=' ${wl}-bernotok'
cannam@140 12828 allow_undefined_flag_CXX=' ${wl}-berok'
cannam@140 12829 if test "$with_gnu_ld" = yes; then
cannam@140 12830 # We only use this code for GNU lds that support --whole-archive.
cannam@140 12831 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
cannam@140 12832 else
cannam@140 12833 # Exported symbols can be pulled into shared objects from archives
cannam@140 12834 whole_archive_flag_spec_CXX='$convenience'
cannam@140 12835 fi
cannam@140 12836 archive_cmds_need_lc_CXX=yes
cannam@140 12837 # This is similar to how AIX traditionally builds its shared
cannam@140 12838 # libraries.
cannam@140 12839 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
cannam@140 12840 fi
cannam@140 12841 fi
cannam@140 12842 ;;
cannam@140 12843
cannam@140 12844 beos*)
cannam@140 12845 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@140 12846 allow_undefined_flag_CXX=unsupported
cannam@140 12847 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
cannam@140 12848 # support --undefined. This deserves some investigation. FIXME
cannam@140 12849 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@140 12850 else
cannam@140 12851 ld_shlibs_CXX=no
cannam@140 12852 fi
cannam@140 12853 ;;
cannam@140 12854
cannam@140 12855 chorus*)
cannam@140 12856 case $cc_basename in
cannam@140 12857 *)
cannam@140 12858 # FIXME: insert proper C++ library support
cannam@140 12859 ld_shlibs_CXX=no
cannam@140 12860 ;;
cannam@140 12861 esac
cannam@140 12862 ;;
cannam@140 12863
cannam@140 12864 cygwin* | mingw* | pw32* | cegcc*)
cannam@140 12865 case $GXX,$cc_basename in
cannam@140 12866 ,cl* | no,cl*)
cannam@140 12867 # Native MSVC
cannam@140 12868 # hardcode_libdir_flag_spec is actually meaningless, as there is
cannam@140 12869 # no search path for DLLs.
cannam@140 12870 hardcode_libdir_flag_spec_CXX=' '
cannam@140 12871 allow_undefined_flag_CXX=unsupported
cannam@140 12872 always_export_symbols_CXX=yes
cannam@140 12873 file_list_spec_CXX='@'
cannam@140 12874 # Tell ltmain to make .lib files, not .a files.
cannam@140 12875 libext=lib
cannam@140 12876 # Tell ltmain to make .dll files, not .so files.
cannam@140 12877 shrext_cmds=".dll"
cannam@140 12878 # FIXME: Setting linknames here is a bad hack.
cannam@140 12879 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
cannam@140 12880 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@140 12881 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
cannam@140 12882 else
cannam@140 12883 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
cannam@140 12884 fi~
cannam@140 12885 $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@140 12886 linknames='
cannam@140 12887 # The linker will not automatically build a static lib if we build a DLL.
cannam@140 12888 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
cannam@140 12889 enable_shared_with_static_runtimes_CXX=yes
cannam@140 12890 # Don't use ranlib
cannam@140 12891 old_postinstall_cmds_CXX='chmod 644 $oldlib'
cannam@140 12892 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
cannam@140 12893 lt_tool_outputfile="@TOOL_OUTPUT@"~
cannam@140 12894 case $lt_outputfile in
cannam@140 12895 *.exe|*.EXE) ;;
cannam@140 12896 *)
cannam@140 12897 lt_outputfile="$lt_outputfile.exe"
cannam@140 12898 lt_tool_outputfile="$lt_tool_outputfile.exe"
cannam@140 12899 ;;
cannam@140 12900 esac~
cannam@140 12901 func_to_tool_file "$lt_outputfile"~
cannam@140 12902 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
cannam@140 12903 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
cannam@140 12904 $RM "$lt_outputfile.manifest";
cannam@140 12905 fi'
cannam@140 12906 ;;
cannam@140 12907 *)
cannam@140 12908 # g++
cannam@140 12909 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
cannam@140 12910 # as there is no search path for DLLs.
cannam@140 12911 hardcode_libdir_flag_spec_CXX='-L$libdir'
cannam@140 12912 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
cannam@140 12913 allow_undefined_flag_CXX=unsupported
cannam@140 12914 always_export_symbols_CXX=no
cannam@140 12915 enable_shared_with_static_runtimes_CXX=yes
cannam@140 12916
cannam@140 12917 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
cannam@140 12918 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@140 12919 # If the export-symbols file already is a .def file (1st line
cannam@140 12920 # is EXPORTS), use it as is; otherwise, prepend...
cannam@140 12921 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@140 12922 cp $export_symbols $output_objdir/$soname.def;
cannam@140 12923 else
cannam@140 12924 echo EXPORTS > $output_objdir/$soname.def;
cannam@140 12925 cat $export_symbols >> $output_objdir/$soname.def;
cannam@140 12926 fi~
cannam@140 12927 $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@140 12928 else
cannam@140 12929 ld_shlibs_CXX=no
cannam@140 12930 fi
cannam@140 12931 ;;
cannam@140 12932 esac
cannam@140 12933 ;;
cannam@140 12934 darwin* | rhapsody*)
cannam@140 12935
cannam@140 12936
cannam@140 12937 archive_cmds_need_lc_CXX=no
cannam@140 12938 hardcode_direct_CXX=no
cannam@140 12939 hardcode_automatic_CXX=yes
cannam@140 12940 hardcode_shlibpath_var_CXX=unsupported
cannam@140 12941 if test "$lt_cv_ld_force_load" = "yes"; then
cannam@140 12942 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@140 12943
cannam@140 12944 else
cannam@140 12945 whole_archive_flag_spec_CXX=''
cannam@140 12946 fi
cannam@140 12947 link_all_deplibs_CXX=yes
cannam@140 12948 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
cannam@140 12949 case $cc_basename in
cannam@140 12950 ifort*) _lt_dar_can_shared=yes ;;
cannam@140 12951 *) _lt_dar_can_shared=$GCC ;;
cannam@140 12952 esac
cannam@140 12953 if test "$_lt_dar_can_shared" = "yes"; then
cannam@140 12954 output_verbose_link_cmd=func_echo_all
cannam@140 12955 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@140 12956 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
cannam@140 12957 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@140 12958 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@140 12959 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
cannam@140 12960 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@140 12961 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@140 12962 fi
cannam@140 12963
cannam@140 12964 else
cannam@140 12965 ld_shlibs_CXX=no
cannam@140 12966 fi
cannam@140 12967
cannam@140 12968 ;;
cannam@140 12969
cannam@140 12970 dgux*)
cannam@140 12971 case $cc_basename in
cannam@140 12972 ec++*)
cannam@140 12973 # FIXME: insert proper C++ library support
cannam@140 12974 ld_shlibs_CXX=no
cannam@140 12975 ;;
cannam@140 12976 ghcx*)
cannam@140 12977 # Green Hills C++ Compiler
cannam@140 12978 # FIXME: insert proper C++ library support
cannam@140 12979 ld_shlibs_CXX=no
cannam@140 12980 ;;
cannam@140 12981 *)
cannam@140 12982 # FIXME: insert proper C++ library support
cannam@140 12983 ld_shlibs_CXX=no
cannam@140 12984 ;;
cannam@140 12985 esac
cannam@140 12986 ;;
cannam@140 12987
cannam@140 12988 freebsd2.*)
cannam@140 12989 # C++ shared libraries reported to be fairly broken before
cannam@140 12990 # switch to ELF
cannam@140 12991 ld_shlibs_CXX=no
cannam@140 12992 ;;
cannam@140 12993
cannam@140 12994 freebsd-elf*)
cannam@140 12995 archive_cmds_need_lc_CXX=no
cannam@140 12996 ;;
cannam@140 12997
cannam@140 12998 freebsd* | dragonfly*)
cannam@140 12999 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
cannam@140 13000 # conventions
cannam@140 13001 ld_shlibs_CXX=yes
cannam@140 13002 ;;
cannam@140 13003
cannam@140 13004 haiku*)
cannam@140 13005 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@140 13006 link_all_deplibs_CXX=yes
cannam@140 13007 ;;
cannam@140 13008
cannam@140 13009 hpux9*)
cannam@140 13010 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
cannam@140 13011 hardcode_libdir_separator_CXX=:
cannam@140 13012 export_dynamic_flag_spec_CXX='${wl}-E'
cannam@140 13013 hardcode_direct_CXX=yes
cannam@140 13014 hardcode_minus_L_CXX=yes # Not in the search PATH,
cannam@140 13015 # but as the default
cannam@140 13016 # location of the library.
cannam@140 13017
cannam@140 13018 case $cc_basename in
cannam@140 13019 CC*)
cannam@140 13020 # FIXME: insert proper C++ library support
cannam@140 13021 ld_shlibs_CXX=no
cannam@140 13022 ;;
cannam@140 13023 aCC*)
cannam@140 13024 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cannam@140 13025 # Commands to make compiler produce verbose output that lists
cannam@140 13026 # what "hidden" libraries, object files and flags are used when
cannam@140 13027 # linking a shared library.
cannam@140 13028 #
cannam@140 13029 # There doesn't appear to be a way to prevent this compiler from
cannam@140 13030 # explicitly linking system object files so we need to strip them
cannam@140 13031 # from the output so that they don't get included in the library
cannam@140 13032 # dependencies.
cannam@140 13033 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@140 13034 ;;
cannam@140 13035 *)
cannam@140 13036 if test "$GXX" = yes; then
cannam@140 13037 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cannam@140 13038 else
cannam@140 13039 # FIXME: insert proper C++ library support
cannam@140 13040 ld_shlibs_CXX=no
cannam@140 13041 fi
cannam@140 13042 ;;
cannam@140 13043 esac
cannam@140 13044 ;;
cannam@140 13045
cannam@140 13046 hpux10*|hpux11*)
cannam@140 13047 if test $with_gnu_ld = no; then
cannam@140 13048 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
cannam@140 13049 hardcode_libdir_separator_CXX=:
cannam@140 13050
cannam@140 13051 case $host_cpu in
cannam@140 13052 hppa*64*|ia64*)
cannam@140 13053 ;;
cannam@140 13054 *)
cannam@140 13055 export_dynamic_flag_spec_CXX='${wl}-E'
cannam@140 13056 ;;
cannam@140 13057 esac
cannam@140 13058 fi
cannam@140 13059 case $host_cpu in
cannam@140 13060 hppa*64*|ia64*)
cannam@140 13061 hardcode_direct_CXX=no
cannam@140 13062 hardcode_shlibpath_var_CXX=no
cannam@140 13063 ;;
cannam@140 13064 *)
cannam@140 13065 hardcode_direct_CXX=yes
cannam@140 13066 hardcode_direct_absolute_CXX=yes
cannam@140 13067 hardcode_minus_L_CXX=yes # Not in the search PATH,
cannam@140 13068 # but as the default
cannam@140 13069 # location of the library.
cannam@140 13070 ;;
cannam@140 13071 esac
cannam@140 13072
cannam@140 13073 case $cc_basename in
cannam@140 13074 CC*)
cannam@140 13075 # FIXME: insert proper C++ library support
cannam@140 13076 ld_shlibs_CXX=no
cannam@140 13077 ;;
cannam@140 13078 aCC*)
cannam@140 13079 case $host_cpu in
cannam@140 13080 hppa*64*)
cannam@140 13081 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@140 13082 ;;
cannam@140 13083 ia64*)
cannam@140 13084 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@140 13085 ;;
cannam@140 13086 *)
cannam@140 13087 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@140 13088 ;;
cannam@140 13089 esac
cannam@140 13090 # Commands to make compiler produce verbose output that lists
cannam@140 13091 # what "hidden" libraries, object files and flags are used when
cannam@140 13092 # linking a shared library.
cannam@140 13093 #
cannam@140 13094 # There doesn't appear to be a way to prevent this compiler from
cannam@140 13095 # explicitly linking system object files so we need to strip them
cannam@140 13096 # from the output so that they don't get included in the library
cannam@140 13097 # dependencies.
cannam@140 13098 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@140 13099 ;;
cannam@140 13100 *)
cannam@140 13101 if test "$GXX" = yes; then
cannam@140 13102 if test $with_gnu_ld = no; then
cannam@140 13103 case $host_cpu in
cannam@140 13104 hppa*64*)
cannam@140 13105 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@140 13106 ;;
cannam@140 13107 ia64*)
cannam@140 13108 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@140 13109 ;;
cannam@140 13110 *)
cannam@140 13111 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@140 13112 ;;
cannam@140 13113 esac
cannam@140 13114 fi
cannam@140 13115 else
cannam@140 13116 # FIXME: insert proper C++ library support
cannam@140 13117 ld_shlibs_CXX=no
cannam@140 13118 fi
cannam@140 13119 ;;
cannam@140 13120 esac
cannam@140 13121 ;;
cannam@140 13122
cannam@140 13123 interix[3-9]*)
cannam@140 13124 hardcode_direct_CXX=no
cannam@140 13125 hardcode_shlibpath_var_CXX=no
cannam@140 13126 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
cannam@140 13127 export_dynamic_flag_spec_CXX='${wl}-E'
cannam@140 13128 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
cannam@140 13129 # Instead, shared libraries are loaded at an image base (0x10000000 by
cannam@140 13130 # default) and relocated if they conflict, which is a slow very memory
cannam@140 13131 # consuming and fragmenting process. To avoid this, we pick a random,
cannam@140 13132 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
cannam@140 13133 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
cannam@140 13134 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@140 13135 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@140 13136 ;;
cannam@140 13137 irix5* | irix6*)
cannam@140 13138 case $cc_basename in
cannam@140 13139 CC*)
cannam@140 13140 # SGI C++
cannam@140 13141 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@140 13142
cannam@140 13143 # Archives containing C++ object files must be created using
cannam@140 13144 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
cannam@140 13145 # necessary to make sure instantiated templates are included
cannam@140 13146 # in the archive.
cannam@140 13147 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
cannam@140 13148 ;;
cannam@140 13149 *)
cannam@140 13150 if test "$GXX" = yes; then
cannam@140 13151 if test "$with_gnu_ld" = no; then
cannam@140 13152 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@140 13153 else
cannam@140 13154 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@140 13155 fi
cannam@140 13156 fi
cannam@140 13157 link_all_deplibs_CXX=yes
cannam@140 13158 ;;
cannam@140 13159 esac
cannam@140 13160 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
cannam@140 13161 hardcode_libdir_separator_CXX=:
cannam@140 13162 inherit_rpath_CXX=yes
cannam@140 13163 ;;
cannam@140 13164
cannam@140 13165 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cannam@140 13166 case $cc_basename in
cannam@140 13167 KCC*)
cannam@140 13168 # Kuck and Associates, Inc. (KAI) C++ Compiler
cannam@140 13169
cannam@140 13170 # KCC will only create a shared library if the output file
cannam@140 13171 # ends with ".so" (or ".sl" for HP-UX), so rename the library
cannam@140 13172 # to its proper name (with version) after linking.
cannam@140 13173 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@140 13174 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@140 13175 # Commands to make compiler produce verbose output that lists
cannam@140 13176 # what "hidden" libraries, object files and flags are used when
cannam@140 13177 # linking a shared library.
cannam@140 13178 #
cannam@140 13179 # There doesn't appear to be a way to prevent this compiler from
cannam@140 13180 # explicitly linking system object files so we need to strip them
cannam@140 13181 # from the output so that they don't get included in the library
cannam@140 13182 # dependencies.
cannam@140 13183 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@140 13184
cannam@140 13185 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
cannam@140 13186 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cannam@140 13187
cannam@140 13188 # Archives containing C++ object files must be created using
cannam@140 13189 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
cannam@140 13190 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
cannam@140 13191 ;;
cannam@140 13192 icpc* | ecpc* )
cannam@140 13193 # Intel C++
cannam@140 13194 with_gnu_ld=yes
cannam@140 13195 # version 8.0 and above of icpc choke on multiply defined symbols
cannam@140 13196 # if we add $predep_objects and $postdep_objects, however 7.1 and
cannam@140 13197 # earlier do not add the objects themselves.
cannam@140 13198 case `$CC -V 2>&1` in
cannam@140 13199 *"Version 7."*)
cannam@140 13200 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@140 13201 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@140 13202 ;;
cannam@140 13203 *) # Version 8.0 or newer
cannam@140 13204 tmp_idyn=
cannam@140 13205 case $host_cpu in
cannam@140 13206 ia64*) tmp_idyn=' -i_dynamic';;
cannam@140 13207 esac
cannam@140 13208 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@140 13209 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@140 13210 ;;
cannam@140 13211 esac
cannam@140 13212 archive_cmds_need_lc_CXX=no
cannam@140 13213 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
cannam@140 13214 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cannam@140 13215 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
cannam@140 13216 ;;
cannam@140 13217 pgCC* | pgcpp*)
cannam@140 13218 # Portland Group C++ compiler
cannam@140 13219 case `$CC -V` in
cannam@140 13220 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cannam@140 13221 prelink_cmds_CXX='tpldir=Template.dir~
cannam@140 13222 rm -rf $tpldir~
cannam@140 13223 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cannam@140 13224 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cannam@140 13225 old_archive_cmds_CXX='tpldir=Template.dir~
cannam@140 13226 rm -rf $tpldir~
cannam@140 13227 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cannam@140 13228 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cannam@140 13229 $RANLIB $oldlib'
cannam@140 13230 archive_cmds_CXX='tpldir=Template.dir~
cannam@140 13231 rm -rf $tpldir~
cannam@140 13232 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cannam@140 13233 $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@140 13234 archive_expsym_cmds_CXX='tpldir=Template.dir~
cannam@140 13235 rm -rf $tpldir~
cannam@140 13236 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cannam@140 13237 $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@140 13238 ;;
cannam@140 13239 *) # Version 6 and above use weak symbols
cannam@140 13240 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
cannam@140 13241 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@140 13242 ;;
cannam@140 13243 esac
cannam@140 13244
cannam@140 13245 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
cannam@140 13246 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cannam@140 13247 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@140 13248 ;;
cannam@140 13249 cxx*)
cannam@140 13250 # Compaq C++
cannam@140 13251 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@140 13252 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@140 13253
cannam@140 13254 runpath_var=LD_RUN_PATH
cannam@140 13255 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
cannam@140 13256 hardcode_libdir_separator_CXX=:
cannam@140 13257
cannam@140 13258 # Commands to make compiler produce verbose output that lists
cannam@140 13259 # what "hidden" libraries, object files and flags are used when
cannam@140 13260 # linking a shared library.
cannam@140 13261 #
cannam@140 13262 # There doesn't appear to be a way to prevent this compiler from
cannam@140 13263 # explicitly linking system object files so we need to strip them
cannam@140 13264 # from the output so that they don't get included in the library
cannam@140 13265 # dependencies.
cannam@140 13266 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@140 13267 ;;
cannam@140 13268 xl* | mpixl* | bgxl*)
cannam@140 13269 # IBM XL 8.0 on PPC, with GNU ld
cannam@140 13270 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
cannam@140 13271 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cannam@140 13272 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@140 13273 if test "x$supports_anon_versioning" = xyes; then
cannam@140 13274 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
cannam@140 13275 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@140 13276 echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@140 13277 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
cannam@140 13278 fi
cannam@140 13279 ;;
cannam@140 13280 *)
cannam@140 13281 case `$CC -V 2>&1 | sed 5q` in
cannam@140 13282 *Sun\ C*)
cannam@140 13283 # Sun C++ 5.9
cannam@140 13284 no_undefined_flag_CXX=' -zdefs'
cannam@140 13285 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@140 13286 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@140 13287 hardcode_libdir_flag_spec_CXX='-R$libdir'
cannam@140 13288 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@140 13289 compiler_needs_object_CXX=yes
cannam@140 13290
cannam@140 13291 # Not sure whether something based on
cannam@140 13292 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
cannam@140 13293 # would be better.
cannam@140 13294 output_verbose_link_cmd='func_echo_all'
cannam@140 13295
cannam@140 13296 # Archives containing C++ object files must be created using
cannam@140 13297 # "CC -xar", where "CC" is the Sun C++ compiler. This is
cannam@140 13298 # necessary to make sure instantiated templates are included
cannam@140 13299 # in the archive.
cannam@140 13300 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
cannam@140 13301 ;;
cannam@140 13302 esac
cannam@140 13303 ;;
cannam@140 13304 esac
cannam@140 13305 ;;
cannam@140 13306
cannam@140 13307 lynxos*)
cannam@140 13308 # FIXME: insert proper C++ library support
cannam@140 13309 ld_shlibs_CXX=no
cannam@140 13310 ;;
cannam@140 13311
cannam@140 13312 m88k*)
cannam@140 13313 # FIXME: insert proper C++ library support
cannam@140 13314 ld_shlibs_CXX=no
cannam@140 13315 ;;
cannam@140 13316
cannam@140 13317 mvs*)
cannam@140 13318 case $cc_basename in
cannam@140 13319 cxx*)
cannam@140 13320 # FIXME: insert proper C++ library support
cannam@140 13321 ld_shlibs_CXX=no
cannam@140 13322 ;;
cannam@140 13323 *)
cannam@140 13324 # FIXME: insert proper C++ library support
cannam@140 13325 ld_shlibs_CXX=no
cannam@140 13326 ;;
cannam@140 13327 esac
cannam@140 13328 ;;
cannam@140 13329
cannam@140 13330 netbsd*)
cannam@140 13331 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@140 13332 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
cannam@140 13333 wlarc=
cannam@140 13334 hardcode_libdir_flag_spec_CXX='-R$libdir'
cannam@140 13335 hardcode_direct_CXX=yes
cannam@140 13336 hardcode_shlibpath_var_CXX=no
cannam@140 13337 fi
cannam@140 13338 # Workaround some broken pre-1.5 toolchains
cannam@140 13339 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
cannam@140 13340 ;;
cannam@140 13341
cannam@140 13342 *nto* | *qnx*)
cannam@140 13343 ld_shlibs_CXX=yes
cannam@140 13344 ;;
cannam@140 13345
cannam@140 13346 openbsd2*)
cannam@140 13347 # C++ shared libraries are fairly broken
cannam@140 13348 ld_shlibs_CXX=no
cannam@140 13349 ;;
cannam@140 13350
cannam@140 13351 openbsd*)
cannam@140 13352 if test -f /usr/libexec/ld.so; then
cannam@140 13353 hardcode_direct_CXX=yes
cannam@140 13354 hardcode_shlibpath_var_CXX=no
cannam@140 13355 hardcode_direct_absolute_CXX=yes
cannam@140 13356 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
cannam@140 13357 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
cannam@140 13358 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@140 13359 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@140 13360 export_dynamic_flag_spec_CXX='${wl}-E'
cannam@140 13361 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
cannam@140 13362 fi
cannam@140 13363 output_verbose_link_cmd=func_echo_all
cannam@140 13364 else
cannam@140 13365 ld_shlibs_CXX=no
cannam@140 13366 fi
cannam@140 13367 ;;
cannam@140 13368
cannam@140 13369 osf3* | osf4* | osf5*)
cannam@140 13370 case $cc_basename in
cannam@140 13371 KCC*)
cannam@140 13372 # Kuck and Associates, Inc. (KAI) C++ Compiler
cannam@140 13373
cannam@140 13374 # KCC will only create a shared library if the output file
cannam@140 13375 # ends with ".so" (or ".sl" for HP-UX), so rename the library
cannam@140 13376 # to its proper name (with version) after linking.
cannam@140 13377 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@140 13378
cannam@140 13379 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
cannam@140 13380 hardcode_libdir_separator_CXX=:
cannam@140 13381
cannam@140 13382 # Archives containing C++ object files must be created using
cannam@140 13383 # the KAI C++ compiler.
cannam@140 13384 case $host in
cannam@140 13385 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
cannam@140 13386 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
cannam@140 13387 esac
cannam@140 13388 ;;
cannam@140 13389 RCC*)
cannam@140 13390 # Rational C++ 2.4.1
cannam@140 13391 # FIXME: insert proper C++ library support
cannam@140 13392 ld_shlibs_CXX=no
cannam@140 13393 ;;
cannam@140 13394 cxx*)
cannam@140 13395 case $host in
cannam@140 13396 osf3*)
cannam@140 13397 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cannam@140 13398 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@140 13399 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
cannam@140 13400 ;;
cannam@140 13401 *)
cannam@140 13402 allow_undefined_flag_CXX=' -expect_unresolved \*'
cannam@140 13403 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@140 13404 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
cannam@140 13405 echo "-hidden">> $lib.exp~
cannam@140 13406 $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@140 13407 $RM $lib.exp'
cannam@140 13408 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
cannam@140 13409 ;;
cannam@140 13410 esac
cannam@140 13411
cannam@140 13412 hardcode_libdir_separator_CXX=:
cannam@140 13413
cannam@140 13414 # Commands to make compiler produce verbose output that lists
cannam@140 13415 # what "hidden" libraries, object files and flags are used when
cannam@140 13416 # linking a shared library.
cannam@140 13417 #
cannam@140 13418 # There doesn't appear to be a way to prevent this compiler from
cannam@140 13419 # explicitly linking system object files so we need to strip them
cannam@140 13420 # from the output so that they don't get included in the library
cannam@140 13421 # dependencies.
cannam@140 13422 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@140 13423 ;;
cannam@140 13424 *)
cannam@140 13425 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
cannam@140 13426 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cannam@140 13427 case $host in
cannam@140 13428 osf3*)
cannam@140 13429 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@140 13430 ;;
cannam@140 13431 *)
cannam@140 13432 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@140 13433 ;;
cannam@140 13434 esac
cannam@140 13435
cannam@140 13436 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
cannam@140 13437 hardcode_libdir_separator_CXX=:
cannam@140 13438
cannam@140 13439 # Commands to make compiler produce verbose output that lists
cannam@140 13440 # what "hidden" libraries, object files and flags are used when
cannam@140 13441 # linking a shared library.
cannam@140 13442 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cannam@140 13443
cannam@140 13444 else
cannam@140 13445 # FIXME: insert proper C++ library support
cannam@140 13446 ld_shlibs_CXX=no
cannam@140 13447 fi
cannam@140 13448 ;;
cannam@140 13449 esac
cannam@140 13450 ;;
cannam@140 13451
cannam@140 13452 psos*)
cannam@140 13453 # FIXME: insert proper C++ library support
cannam@140 13454 ld_shlibs_CXX=no
cannam@140 13455 ;;
cannam@140 13456
cannam@140 13457 sunos4*)
cannam@140 13458 case $cc_basename in
cannam@140 13459 CC*)
cannam@140 13460 # Sun C++ 4.x
cannam@140 13461 # FIXME: insert proper C++ library support
cannam@140 13462 ld_shlibs_CXX=no
cannam@140 13463 ;;
cannam@140 13464 lcc*)
cannam@140 13465 # Lucid
cannam@140 13466 # FIXME: insert proper C++ library support
cannam@140 13467 ld_shlibs_CXX=no
cannam@140 13468 ;;
cannam@140 13469 *)
cannam@140 13470 # FIXME: insert proper C++ library support
cannam@140 13471 ld_shlibs_CXX=no
cannam@140 13472 ;;
cannam@140 13473 esac
cannam@140 13474 ;;
cannam@140 13475
cannam@140 13476 solaris*)
cannam@140 13477 case $cc_basename in
cannam@140 13478 CC* | sunCC*)
cannam@140 13479 # Sun C++ 4.2, 5.x and Centerline C++
cannam@140 13480 archive_cmds_need_lc_CXX=yes
cannam@140 13481 no_undefined_flag_CXX=' -zdefs'
cannam@140 13482 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@140 13483 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@140 13484 $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@140 13485
cannam@140 13486 hardcode_libdir_flag_spec_CXX='-R$libdir'
cannam@140 13487 hardcode_shlibpath_var_CXX=no
cannam@140 13488 case $host_os in
cannam@140 13489 solaris2.[0-5] | solaris2.[0-5].*) ;;
cannam@140 13490 *)
cannam@140 13491 # The compiler driver will combine and reorder linker options,
cannam@140 13492 # but understands `-z linker_flag'.
cannam@140 13493 # Supported since Solaris 2.6 (maybe 2.5.1?)
cannam@140 13494 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
cannam@140 13495 ;;
cannam@140 13496 esac
cannam@140 13497 link_all_deplibs_CXX=yes
cannam@140 13498
cannam@140 13499 output_verbose_link_cmd='func_echo_all'
cannam@140 13500
cannam@140 13501 # Archives containing C++ object files must be created using
cannam@140 13502 # "CC -xar", where "CC" is the Sun C++ compiler. This is
cannam@140 13503 # necessary to make sure instantiated templates are included
cannam@140 13504 # in the archive.
cannam@140 13505 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
cannam@140 13506 ;;
cannam@140 13507 gcx*)
cannam@140 13508 # Green Hills C++ Compiler
cannam@140 13509 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cannam@140 13510
cannam@140 13511 # The C++ compiler must be used to create the archive.
cannam@140 13512 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
cannam@140 13513 ;;
cannam@140 13514 *)
cannam@140 13515 # GNU C++ compiler with Solaris linker
cannam@140 13516 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
cannam@140 13517 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
cannam@140 13518 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cannam@140 13519 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cannam@140 13520 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@140 13521 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
cannam@140 13522
cannam@140 13523 # Commands to make compiler produce verbose output that lists
cannam@140 13524 # what "hidden" libraries, object files and flags are used when
cannam@140 13525 # linking a shared library.
cannam@140 13526 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cannam@140 13527 else
cannam@140 13528 # g++ 2.7 appears to require `-G' NOT `-shared' on this
cannam@140 13529 # platform.
cannam@140 13530 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cannam@140 13531 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@140 13532 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
cannam@140 13533
cannam@140 13534 # Commands to make compiler produce verbose output that lists
cannam@140 13535 # what "hidden" libraries, object files and flags are used when
cannam@140 13536 # linking a shared library.
cannam@140 13537 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cannam@140 13538 fi
cannam@140 13539
cannam@140 13540 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
cannam@140 13541 case $host_os in
cannam@140 13542 solaris2.[0-5] | solaris2.[0-5].*) ;;
cannam@140 13543 *)
cannam@140 13544 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
cannam@140 13545 ;;
cannam@140 13546 esac
cannam@140 13547 fi
cannam@140 13548 ;;
cannam@140 13549 esac
cannam@140 13550 ;;
cannam@140 13551
cannam@140 13552 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
cannam@140 13553 no_undefined_flag_CXX='${wl}-z,text'
cannam@140 13554 archive_cmds_need_lc_CXX=no
cannam@140 13555 hardcode_shlibpath_var_CXX=no
cannam@140 13556 runpath_var='LD_RUN_PATH'
cannam@140 13557
cannam@140 13558 case $cc_basename in
cannam@140 13559 CC*)
cannam@140 13560 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 13561 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 13562 ;;
cannam@140 13563 *)
cannam@140 13564 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 13565 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 13566 ;;
cannam@140 13567 esac
cannam@140 13568 ;;
cannam@140 13569
cannam@140 13570 sysv5* | sco3.2v5* | sco5v6*)
cannam@140 13571 # Note: We can NOT use -z defs as we might desire, because we do not
cannam@140 13572 # link with -lc, and that would cause any symbols used from libc to
cannam@140 13573 # always be unresolved, which means just about no library would
cannam@140 13574 # ever link correctly. If we're not using GNU ld we use -z text
cannam@140 13575 # though, which does catch some bad symbols but isn't as heavy-handed
cannam@140 13576 # as -z defs.
cannam@140 13577 no_undefined_flag_CXX='${wl}-z,text'
cannam@140 13578 allow_undefined_flag_CXX='${wl}-z,nodefs'
cannam@140 13579 archive_cmds_need_lc_CXX=no
cannam@140 13580 hardcode_shlibpath_var_CXX=no
cannam@140 13581 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
cannam@140 13582 hardcode_libdir_separator_CXX=':'
cannam@140 13583 link_all_deplibs_CXX=yes
cannam@140 13584 export_dynamic_flag_spec_CXX='${wl}-Bexport'
cannam@140 13585 runpath_var='LD_RUN_PATH'
cannam@140 13586
cannam@140 13587 case $cc_basename in
cannam@140 13588 CC*)
cannam@140 13589 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 13590 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 13591 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
cannam@140 13592 '"$old_archive_cmds_CXX"
cannam@140 13593 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
cannam@140 13594 '"$reload_cmds_CXX"
cannam@140 13595 ;;
cannam@140 13596 *)
cannam@140 13597 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 13598 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@140 13599 ;;
cannam@140 13600 esac
cannam@140 13601 ;;
cannam@140 13602
cannam@140 13603 tandem*)
cannam@140 13604 case $cc_basename in
cannam@140 13605 NCC*)
cannam@140 13606 # NonStop-UX NCC 3.20
cannam@140 13607 # FIXME: insert proper C++ library support
cannam@140 13608 ld_shlibs_CXX=no
cannam@140 13609 ;;
cannam@140 13610 *)
cannam@140 13611 # FIXME: insert proper C++ library support
cannam@140 13612 ld_shlibs_CXX=no
cannam@140 13613 ;;
cannam@140 13614 esac
cannam@140 13615 ;;
cannam@140 13616
cannam@140 13617 vxworks*)
cannam@140 13618 # FIXME: insert proper C++ library support
cannam@140 13619 ld_shlibs_CXX=no
cannam@140 13620 ;;
cannam@140 13621
cannam@140 13622 *)
cannam@140 13623 # FIXME: insert proper C++ library support
cannam@140 13624 ld_shlibs_CXX=no
cannam@140 13625 ;;
cannam@140 13626 esac
cannam@140 13627
cannam@140 13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cannam@140 13629 $as_echo "$ld_shlibs_CXX" >&6; }
cannam@140 13630 test "$ld_shlibs_CXX" = no && can_build_shared=no
cannam@140 13631
cannam@140 13632 GCC_CXX="$GXX"
cannam@140 13633 LD_CXX="$LD"
cannam@140 13634
cannam@140 13635 ## CAVEAT EMPTOR:
cannam@140 13636 ## There is no encapsulation within the following macros, do not change
cannam@140 13637 ## the running order or otherwise move them around unless you know exactly
cannam@140 13638 ## what you are doing...
cannam@140 13639 # Dependencies to place before and after the object being linked:
cannam@140 13640 predep_objects_CXX=
cannam@140 13641 postdep_objects_CXX=
cannam@140 13642 predeps_CXX=
cannam@140 13643 postdeps_CXX=
cannam@140 13644 compiler_lib_search_path_CXX=
cannam@140 13645
cannam@140 13646 cat > conftest.$ac_ext <<_LT_EOF
cannam@140 13647 class Foo
cannam@140 13648 {
cannam@140 13649 public:
cannam@140 13650 Foo (void) { a = 0; }
cannam@140 13651 private:
cannam@140 13652 int a;
cannam@140 13653 };
cannam@140 13654 _LT_EOF
cannam@140 13655
cannam@140 13656
cannam@140 13657 _lt_libdeps_save_CFLAGS=$CFLAGS
cannam@140 13658 case "$CC $CFLAGS " in #(
cannam@140 13659 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
cannam@140 13660 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cannam@140 13661 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cannam@140 13662 esac
cannam@140 13663
cannam@140 13664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@140 13665 (eval $ac_compile) 2>&5
cannam@140 13666 ac_status=$?
cannam@140 13667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 13668 test $ac_status = 0; }; then
cannam@140 13669 # Parse the compiler output and extract the necessary
cannam@140 13670 # objects, libraries and library flags.
cannam@140 13671
cannam@140 13672 # Sentinel used to keep track of whether or not we are before
cannam@140 13673 # the conftest object file.
cannam@140 13674 pre_test_object_deps_done=no
cannam@140 13675
cannam@140 13676 for p in `eval "$output_verbose_link_cmd"`; do
cannam@140 13677 case ${prev}${p} in
cannam@140 13678
cannam@140 13679 -L* | -R* | -l*)
cannam@140 13680 # Some compilers place space between "-{L,R}" and the path.
cannam@140 13681 # Remove the space.
cannam@140 13682 if test $p = "-L" ||
cannam@140 13683 test $p = "-R"; then
cannam@140 13684 prev=$p
cannam@140 13685 continue
cannam@140 13686 fi
cannam@140 13687
cannam@140 13688 # Expand the sysroot to ease extracting the directories later.
cannam@140 13689 if test -z "$prev"; then
cannam@140 13690 case $p in
cannam@140 13691 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
cannam@140 13692 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
cannam@140 13693 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
cannam@140 13694 esac
cannam@140 13695 fi
cannam@140 13696 case $p in
cannam@140 13697 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
cannam@140 13698 esac
cannam@140 13699 if test "$pre_test_object_deps_done" = no; then
cannam@140 13700 case ${prev} in
cannam@140 13701 -L | -R)
cannam@140 13702 # Internal compiler library paths should come after those
cannam@140 13703 # provided the user. The postdeps already come after the
cannam@140 13704 # user supplied libs so there is no need to process them.
cannam@140 13705 if test -z "$compiler_lib_search_path_CXX"; then
cannam@140 13706 compiler_lib_search_path_CXX="${prev}${p}"
cannam@140 13707 else
cannam@140 13708 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
cannam@140 13709 fi
cannam@140 13710 ;;
cannam@140 13711 # The "-l" case would never come before the object being
cannam@140 13712 # linked, so don't bother handling this case.
cannam@140 13713 esac
cannam@140 13714 else
cannam@140 13715 if test -z "$postdeps_CXX"; then
cannam@140 13716 postdeps_CXX="${prev}${p}"
cannam@140 13717 else
cannam@140 13718 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
cannam@140 13719 fi
cannam@140 13720 fi
cannam@140 13721 prev=
cannam@140 13722 ;;
cannam@140 13723
cannam@140 13724 *.lto.$objext) ;; # Ignore GCC LTO objects
cannam@140 13725 *.$objext)
cannam@140 13726 # This assumes that the test object file only shows up
cannam@140 13727 # once in the compiler output.
cannam@140 13728 if test "$p" = "conftest.$objext"; then
cannam@140 13729 pre_test_object_deps_done=yes
cannam@140 13730 continue
cannam@140 13731 fi
cannam@140 13732
cannam@140 13733 if test "$pre_test_object_deps_done" = no; then
cannam@140 13734 if test -z "$predep_objects_CXX"; then
cannam@140 13735 predep_objects_CXX="$p"
cannam@140 13736 else
cannam@140 13737 predep_objects_CXX="$predep_objects_CXX $p"
cannam@140 13738 fi
cannam@140 13739 else
cannam@140 13740 if test -z "$postdep_objects_CXX"; then
cannam@140 13741 postdep_objects_CXX="$p"
cannam@140 13742 else
cannam@140 13743 postdep_objects_CXX="$postdep_objects_CXX $p"
cannam@140 13744 fi
cannam@140 13745 fi
cannam@140 13746 ;;
cannam@140 13747
cannam@140 13748 *) ;; # Ignore the rest.
cannam@140 13749
cannam@140 13750 esac
cannam@140 13751 done
cannam@140 13752
cannam@140 13753 # Clean up.
cannam@140 13754 rm -f a.out a.exe
cannam@140 13755 else
cannam@140 13756 echo "libtool.m4: error: problem compiling CXX test program"
cannam@140 13757 fi
cannam@140 13758
cannam@140 13759 $RM -f confest.$objext
cannam@140 13760 CFLAGS=$_lt_libdeps_save_CFLAGS
cannam@140 13761
cannam@140 13762 # PORTME: override above test on systems where it is broken
cannam@140 13763 case $host_os in
cannam@140 13764 interix[3-9]*)
cannam@140 13765 # Interix 3.5 installs completely hosed .la files for C++, so rather than
cannam@140 13766 # hack all around it, let's just trust "g++" to DTRT.
cannam@140 13767 predep_objects_CXX=
cannam@140 13768 postdep_objects_CXX=
cannam@140 13769 postdeps_CXX=
cannam@140 13770 ;;
cannam@140 13771
cannam@140 13772 linux*)
cannam@140 13773 case `$CC -V 2>&1 | sed 5q` in
cannam@140 13774 *Sun\ C*)
cannam@140 13775 # Sun C++ 5.9
cannam@140 13776
cannam@140 13777 # The more standards-conforming stlport4 library is
cannam@140 13778 # incompatible with the Cstd library. Avoid specifying
cannam@140 13779 # it if it's in CXXFLAGS. Ignore libCrun as
cannam@140 13780 # -library=stlport4 depends on it.
cannam@140 13781 case " $CXX $CXXFLAGS " in
cannam@140 13782 *" -library=stlport4 "*)
cannam@140 13783 solaris_use_stlport4=yes
cannam@140 13784 ;;
cannam@140 13785 esac
cannam@140 13786
cannam@140 13787 if test "$solaris_use_stlport4" != yes; then
cannam@140 13788 postdeps_CXX='-library=Cstd -library=Crun'
cannam@140 13789 fi
cannam@140 13790 ;;
cannam@140 13791 esac
cannam@140 13792 ;;
cannam@140 13793
cannam@140 13794 solaris*)
cannam@140 13795 case $cc_basename in
cannam@140 13796 CC* | sunCC*)
cannam@140 13797 # The more standards-conforming stlport4 library is
cannam@140 13798 # incompatible with the Cstd library. Avoid specifying
cannam@140 13799 # it if it's in CXXFLAGS. Ignore libCrun as
cannam@140 13800 # -library=stlport4 depends on it.
cannam@140 13801 case " $CXX $CXXFLAGS " in
cannam@140 13802 *" -library=stlport4 "*)
cannam@140 13803 solaris_use_stlport4=yes
cannam@140 13804 ;;
cannam@140 13805 esac
cannam@140 13806
cannam@140 13807 # Adding this requires a known-good setup of shared libraries for
cannam@140 13808 # Sun compiler versions before 5.6, else PIC objects from an old
cannam@140 13809 # archive will be linked into the output, leading to subtle bugs.
cannam@140 13810 if test "$solaris_use_stlport4" != yes; then
cannam@140 13811 postdeps_CXX='-library=Cstd -library=Crun'
cannam@140 13812 fi
cannam@140 13813 ;;
cannam@140 13814 esac
cannam@140 13815 ;;
cannam@140 13816 esac
cannam@140 13817
cannam@140 13818
cannam@140 13819 case " $postdeps_CXX " in
cannam@140 13820 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
cannam@140 13821 esac
cannam@140 13822 compiler_lib_search_dirs_CXX=
cannam@140 13823 if test -n "${compiler_lib_search_path_CXX}"; then
cannam@140 13824 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
cannam@140 13825 fi
cannam@140 13826
cannam@140 13827
cannam@140 13828
cannam@140 13829
cannam@140 13830
cannam@140 13831
cannam@140 13832
cannam@140 13833
cannam@140 13834
cannam@140 13835
cannam@140 13836
cannam@140 13837
cannam@140 13838
cannam@140 13839
cannam@140 13840
cannam@140 13841
cannam@140 13842
cannam@140 13843
cannam@140 13844
cannam@140 13845
cannam@140 13846
cannam@140 13847
cannam@140 13848
cannam@140 13849
cannam@140 13850
cannam@140 13851
cannam@140 13852
cannam@140 13853
cannam@140 13854
cannam@140 13855
cannam@140 13856
cannam@140 13857 lt_prog_compiler_wl_CXX=
cannam@140 13858 lt_prog_compiler_pic_CXX=
cannam@140 13859 lt_prog_compiler_static_CXX=
cannam@140 13860
cannam@140 13861
cannam@140 13862 # C++ specific cases for pic, static, wl, etc.
cannam@140 13863 if test "$GXX" = yes; then
cannam@140 13864 lt_prog_compiler_wl_CXX='-Wl,'
cannam@140 13865 lt_prog_compiler_static_CXX='-static'
cannam@140 13866
cannam@140 13867 case $host_os in
cannam@140 13868 aix*)
cannam@140 13869 # All AIX code is PIC.
cannam@140 13870 if test "$host_cpu" = ia64; then
cannam@140 13871 # AIX 5 now supports IA64 processor
cannam@140 13872 lt_prog_compiler_static_CXX='-Bstatic'
cannam@140 13873 fi
cannam@140 13874 ;;
cannam@140 13875
cannam@140 13876 amigaos*)
cannam@140 13877 case $host_cpu in
cannam@140 13878 powerpc)
cannam@140 13879 # see comment about AmigaOS4 .so support
cannam@140 13880 lt_prog_compiler_pic_CXX='-fPIC'
cannam@140 13881 ;;
cannam@140 13882 m68k)
cannam@140 13883 # FIXME: we need at least 68020 code to build shared libraries, but
cannam@140 13884 # adding the `-m68020' flag to GCC prevents building anything better,
cannam@140 13885 # like `-m68040'.
cannam@140 13886 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
cannam@140 13887 ;;
cannam@140 13888 esac
cannam@140 13889 ;;
cannam@140 13890
cannam@140 13891 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
cannam@140 13892 # PIC is the default for these OSes.
cannam@140 13893 ;;
cannam@140 13894 mingw* | cygwin* | os2* | pw32* | cegcc*)
cannam@140 13895 # This hack is so that the source file can tell whether it is being
cannam@140 13896 # built for inclusion in a dll (and should export symbols for example).
cannam@140 13897 # Although the cygwin gcc ignores -fPIC, still need this for old-style
cannam@140 13898 # (--disable-auto-import) libraries
cannam@140 13899 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
cannam@140 13900 ;;
cannam@140 13901 darwin* | rhapsody*)
cannam@140 13902 # PIC is the default on this platform
cannam@140 13903 # Common symbols not allowed in MH_DYLIB files
cannam@140 13904 lt_prog_compiler_pic_CXX='-fno-common'
cannam@140 13905 ;;
cannam@140 13906 *djgpp*)
cannam@140 13907 # DJGPP does not support shared libraries at all
cannam@140 13908 lt_prog_compiler_pic_CXX=
cannam@140 13909 ;;
cannam@140 13910 haiku*)
cannam@140 13911 # PIC is the default for Haiku.
cannam@140 13912 # The "-static" flag exists, but is broken.
cannam@140 13913 lt_prog_compiler_static_CXX=
cannam@140 13914 ;;
cannam@140 13915 interix[3-9]*)
cannam@140 13916 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
cannam@140 13917 # Instead, we relocate shared libraries at runtime.
cannam@140 13918 ;;
cannam@140 13919 sysv4*MP*)
cannam@140 13920 if test -d /usr/nec; then
cannam@140 13921 lt_prog_compiler_pic_CXX=-Kconform_pic
cannam@140 13922 fi
cannam@140 13923 ;;
cannam@140 13924 hpux*)
cannam@140 13925 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
cannam@140 13926 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
cannam@140 13927 # sets the default TLS model and affects inlining.
cannam@140 13928 case $host_cpu in
cannam@140 13929 hppa*64*)
cannam@140 13930 ;;
cannam@140 13931 *)
cannam@140 13932 lt_prog_compiler_pic_CXX='-fPIC'
cannam@140 13933 ;;
cannam@140 13934 esac
cannam@140 13935 ;;
cannam@140 13936 *qnx* | *nto*)
cannam@140 13937 # QNX uses GNU C++, but need to define -shared option too, otherwise
cannam@140 13938 # it will coredump.
cannam@140 13939 lt_prog_compiler_pic_CXX='-fPIC -shared'
cannam@140 13940 ;;
cannam@140 13941 *)
cannam@140 13942 lt_prog_compiler_pic_CXX='-fPIC'
cannam@140 13943 ;;
cannam@140 13944 esac
cannam@140 13945 else
cannam@140 13946 case $host_os in
cannam@140 13947 aix[4-9]*)
cannam@140 13948 # All AIX code is PIC.
cannam@140 13949 if test "$host_cpu" = ia64; then
cannam@140 13950 # AIX 5 now supports IA64 processor
cannam@140 13951 lt_prog_compiler_static_CXX='-Bstatic'
cannam@140 13952 else
cannam@140 13953 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
cannam@140 13954 fi
cannam@140 13955 ;;
cannam@140 13956 chorus*)
cannam@140 13957 case $cc_basename in
cannam@140 13958 cxch68*)
cannam@140 13959 # Green Hills C++ Compiler
cannam@140 13960 # _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@140 13961 ;;
cannam@140 13962 esac
cannam@140 13963 ;;
cannam@140 13964 mingw* | cygwin* | os2* | pw32* | cegcc*)
cannam@140 13965 # This hack is so that the source file can tell whether it is being
cannam@140 13966 # built for inclusion in a dll (and should export symbols for example).
cannam@140 13967 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
cannam@140 13968 ;;
cannam@140 13969 dgux*)
cannam@140 13970 case $cc_basename in
cannam@140 13971 ec++*)
cannam@140 13972 lt_prog_compiler_pic_CXX='-KPIC'
cannam@140 13973 ;;
cannam@140 13974 ghcx*)
cannam@140 13975 # Green Hills C++ Compiler
cannam@140 13976 lt_prog_compiler_pic_CXX='-pic'
cannam@140 13977 ;;
cannam@140 13978 *)
cannam@140 13979 ;;
cannam@140 13980 esac
cannam@140 13981 ;;
cannam@140 13982 freebsd* | dragonfly*)
cannam@140 13983 # FreeBSD uses GNU C++
cannam@140 13984 ;;
cannam@140 13985 hpux9* | hpux10* | hpux11*)
cannam@140 13986 case $cc_basename in
cannam@140 13987 CC*)
cannam@140 13988 lt_prog_compiler_wl_CXX='-Wl,'
cannam@140 13989 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
cannam@140 13990 if test "$host_cpu" != ia64; then
cannam@140 13991 lt_prog_compiler_pic_CXX='+Z'
cannam@140 13992 fi
cannam@140 13993 ;;
cannam@140 13994 aCC*)
cannam@140 13995 lt_prog_compiler_wl_CXX='-Wl,'
cannam@140 13996 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
cannam@140 13997 case $host_cpu in
cannam@140 13998 hppa*64*|ia64*)
cannam@140 13999 # +Z the default
cannam@140 14000 ;;
cannam@140 14001 *)
cannam@140 14002 lt_prog_compiler_pic_CXX='+Z'
cannam@140 14003 ;;
cannam@140 14004 esac
cannam@140 14005 ;;
cannam@140 14006 *)
cannam@140 14007 ;;
cannam@140 14008 esac
cannam@140 14009 ;;
cannam@140 14010 interix*)
cannam@140 14011 # This is c89, which is MS Visual C++ (no shared libs)
cannam@140 14012 # Anyone wants to do a port?
cannam@140 14013 ;;
cannam@140 14014 irix5* | irix6* | nonstopux*)
cannam@140 14015 case $cc_basename in
cannam@140 14016 CC*)
cannam@140 14017 lt_prog_compiler_wl_CXX='-Wl,'
cannam@140 14018 lt_prog_compiler_static_CXX='-non_shared'
cannam@140 14019 # CC pic flag -KPIC is the default.
cannam@140 14020 ;;
cannam@140 14021 *)
cannam@140 14022 ;;
cannam@140 14023 esac
cannam@140 14024 ;;
cannam@140 14025 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cannam@140 14026 case $cc_basename in
cannam@140 14027 KCC*)
cannam@140 14028 # KAI C++ Compiler
cannam@140 14029 lt_prog_compiler_wl_CXX='--backend -Wl,'
cannam@140 14030 lt_prog_compiler_pic_CXX='-fPIC'
cannam@140 14031 ;;
cannam@140 14032 ecpc* )
cannam@140 14033 # old Intel C++ for x86_64 which still supported -KPIC.
cannam@140 14034 lt_prog_compiler_wl_CXX='-Wl,'
cannam@140 14035 lt_prog_compiler_pic_CXX='-KPIC'
cannam@140 14036 lt_prog_compiler_static_CXX='-static'
cannam@140 14037 ;;
cannam@140 14038 icpc* )
cannam@140 14039 # Intel C++, used to be incompatible with GCC.
cannam@140 14040 # ICC 10 doesn't accept -KPIC any more.
cannam@140 14041 lt_prog_compiler_wl_CXX='-Wl,'
cannam@140 14042 lt_prog_compiler_pic_CXX='-fPIC'
cannam@140 14043 lt_prog_compiler_static_CXX='-static'
cannam@140 14044 ;;
cannam@140 14045 pgCC* | pgcpp*)
cannam@140 14046 # Portland Group C++ compiler
cannam@140 14047 lt_prog_compiler_wl_CXX='-Wl,'
cannam@140 14048 lt_prog_compiler_pic_CXX='-fpic'
cannam@140 14049 lt_prog_compiler_static_CXX='-Bstatic'
cannam@140 14050 ;;
cannam@140 14051 cxx*)
cannam@140 14052 # Compaq C++
cannam@140 14053 # Make sure the PIC flag is empty. It appears that all Alpha
cannam@140 14054 # Linux and Compaq Tru64 Unix objects are PIC.
cannam@140 14055 lt_prog_compiler_pic_CXX=
cannam@140 14056 lt_prog_compiler_static_CXX='-non_shared'
cannam@140 14057 ;;
cannam@140 14058 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
cannam@140 14059 # IBM XL 8.0, 9.0 on PPC and BlueGene
cannam@140 14060 lt_prog_compiler_wl_CXX='-Wl,'
cannam@140 14061 lt_prog_compiler_pic_CXX='-qpic'
cannam@140 14062 lt_prog_compiler_static_CXX='-qstaticlink'
cannam@140 14063 ;;
cannam@140 14064 *)
cannam@140 14065 case `$CC -V 2>&1 | sed 5q` in
cannam@140 14066 *Sun\ C*)
cannam@140 14067 # Sun C++ 5.9
cannam@140 14068 lt_prog_compiler_pic_CXX='-KPIC'
cannam@140 14069 lt_prog_compiler_static_CXX='-Bstatic'
cannam@140 14070 lt_prog_compiler_wl_CXX='-Qoption ld '
cannam@140 14071 ;;
cannam@140 14072 esac
cannam@140 14073 ;;
cannam@140 14074 esac
cannam@140 14075 ;;
cannam@140 14076 lynxos*)
cannam@140 14077 ;;
cannam@140 14078 m88k*)
cannam@140 14079 ;;
cannam@140 14080 mvs*)
cannam@140 14081 case $cc_basename in
cannam@140 14082 cxx*)
cannam@140 14083 lt_prog_compiler_pic_CXX='-W c,exportall'
cannam@140 14084 ;;
cannam@140 14085 *)
cannam@140 14086 ;;
cannam@140 14087 esac
cannam@140 14088 ;;
cannam@140 14089 netbsd* | netbsdelf*-gnu)
cannam@140 14090 ;;
cannam@140 14091 *qnx* | *nto*)
cannam@140 14092 # QNX uses GNU C++, but need to define -shared option too, otherwise
cannam@140 14093 # it will coredump.
cannam@140 14094 lt_prog_compiler_pic_CXX='-fPIC -shared'
cannam@140 14095 ;;
cannam@140 14096 osf3* | osf4* | osf5*)
cannam@140 14097 case $cc_basename in
cannam@140 14098 KCC*)
cannam@140 14099 lt_prog_compiler_wl_CXX='--backend -Wl,'
cannam@140 14100 ;;
cannam@140 14101 RCC*)
cannam@140 14102 # Rational C++ 2.4.1
cannam@140 14103 lt_prog_compiler_pic_CXX='-pic'
cannam@140 14104 ;;
cannam@140 14105 cxx*)
cannam@140 14106 # Digital/Compaq C++
cannam@140 14107 lt_prog_compiler_wl_CXX='-Wl,'
cannam@140 14108 # Make sure the PIC flag is empty. It appears that all Alpha
cannam@140 14109 # Linux and Compaq Tru64 Unix objects are PIC.
cannam@140 14110 lt_prog_compiler_pic_CXX=
cannam@140 14111 lt_prog_compiler_static_CXX='-non_shared'
cannam@140 14112 ;;
cannam@140 14113 *)
cannam@140 14114 ;;
cannam@140 14115 esac
cannam@140 14116 ;;
cannam@140 14117 psos*)
cannam@140 14118 ;;
cannam@140 14119 solaris*)
cannam@140 14120 case $cc_basename in
cannam@140 14121 CC* | sunCC*)
cannam@140 14122 # Sun C++ 4.2, 5.x and Centerline C++
cannam@140 14123 lt_prog_compiler_pic_CXX='-KPIC'
cannam@140 14124 lt_prog_compiler_static_CXX='-Bstatic'
cannam@140 14125 lt_prog_compiler_wl_CXX='-Qoption ld '
cannam@140 14126 ;;
cannam@140 14127 gcx*)
cannam@140 14128 # Green Hills C++ Compiler
cannam@140 14129 lt_prog_compiler_pic_CXX='-PIC'
cannam@140 14130 ;;
cannam@140 14131 *)
cannam@140 14132 ;;
cannam@140 14133 esac
cannam@140 14134 ;;
cannam@140 14135 sunos4*)
cannam@140 14136 case $cc_basename in
cannam@140 14137 CC*)
cannam@140 14138 # Sun C++ 4.x
cannam@140 14139 lt_prog_compiler_pic_CXX='-pic'
cannam@140 14140 lt_prog_compiler_static_CXX='-Bstatic'
cannam@140 14141 ;;
cannam@140 14142 lcc*)
cannam@140 14143 # Lucid
cannam@140 14144 lt_prog_compiler_pic_CXX='-pic'
cannam@140 14145 ;;
cannam@140 14146 *)
cannam@140 14147 ;;
cannam@140 14148 esac
cannam@140 14149 ;;
cannam@140 14150 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
cannam@140 14151 case $cc_basename in
cannam@140 14152 CC*)
cannam@140 14153 lt_prog_compiler_wl_CXX='-Wl,'
cannam@140 14154 lt_prog_compiler_pic_CXX='-KPIC'
cannam@140 14155 lt_prog_compiler_static_CXX='-Bstatic'
cannam@140 14156 ;;
cannam@140 14157 esac
cannam@140 14158 ;;
cannam@140 14159 tandem*)
cannam@140 14160 case $cc_basename in
cannam@140 14161 NCC*)
cannam@140 14162 # NonStop-UX NCC 3.20
cannam@140 14163 lt_prog_compiler_pic_CXX='-KPIC'
cannam@140 14164 ;;
cannam@140 14165 *)
cannam@140 14166 ;;
cannam@140 14167 esac
cannam@140 14168 ;;
cannam@140 14169 vxworks*)
cannam@140 14170 ;;
cannam@140 14171 *)
cannam@140 14172 lt_prog_compiler_can_build_shared_CXX=no
cannam@140 14173 ;;
cannam@140 14174 esac
cannam@140 14175 fi
cannam@140 14176
cannam@140 14177 case $host_os in
cannam@140 14178 # For platforms which do not support PIC, -DPIC is meaningless:
cannam@140 14179 *djgpp*)
cannam@140 14180 lt_prog_compiler_pic_CXX=
cannam@140 14181 ;;
cannam@140 14182 *)
cannam@140 14183 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
cannam@140 14184 ;;
cannam@140 14185 esac
cannam@140 14186
cannam@140 14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cannam@140 14188 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
cannam@140 14189 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
cannam@140 14190 $as_echo_n "(cached) " >&6
cannam@140 14191 else
cannam@140 14192 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
cannam@140 14193 fi
cannam@140 14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
cannam@140 14195 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
cannam@140 14196 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cannam@140 14197
cannam@140 14198 #
cannam@140 14199 # Check to make sure the PIC flag actually works.
cannam@140 14200 #
cannam@140 14201 if test -n "$lt_prog_compiler_pic_CXX"; then
cannam@140 14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
cannam@140 14203 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cannam@140 14204 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cannam@140 14205 $as_echo_n "(cached) " >&6
cannam@140 14206 else
cannam@140 14207 lt_cv_prog_compiler_pic_works_CXX=no
cannam@140 14208 ac_outfile=conftest.$ac_objext
cannam@140 14209 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@140 14210 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
cannam@140 14211 # Insert the option either (1) after the last *FLAGS variable, or
cannam@140 14212 # (2) before a word containing "conftest.", or (3) at the end.
cannam@140 14213 # Note that $ac_compile itself does not contain backslashes and begins
cannam@140 14214 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@140 14215 # The option is referenced via a variable to avoid confusing sed.
cannam@140 14216 lt_compile=`echo "$ac_compile" | $SED \
cannam@140 14217 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@140 14218 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@140 14219 -e 's:$: $lt_compiler_flag:'`
cannam@140 14220 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@140 14221 (eval "$lt_compile" 2>conftest.err)
cannam@140 14222 ac_status=$?
cannam@140 14223 cat conftest.err >&5
cannam@140 14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@140 14225 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@140 14226 # The compiler can only warn and ignore the option if not recognized
cannam@140 14227 # So say no if there are warnings other than the usual output.
cannam@140 14228 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cannam@140 14229 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@140 14230 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
cannam@140 14231 lt_cv_prog_compiler_pic_works_CXX=yes
cannam@140 14232 fi
cannam@140 14233 fi
cannam@140 14234 $RM conftest*
cannam@140 14235
cannam@140 14236 fi
cannam@140 14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cannam@140 14238 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
cannam@140 14239
cannam@140 14240 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
cannam@140 14241 case $lt_prog_compiler_pic_CXX in
cannam@140 14242 "" | " "*) ;;
cannam@140 14243 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
cannam@140 14244 esac
cannam@140 14245 else
cannam@140 14246 lt_prog_compiler_pic_CXX=
cannam@140 14247 lt_prog_compiler_can_build_shared_CXX=no
cannam@140 14248 fi
cannam@140 14249
cannam@140 14250 fi
cannam@140 14251
cannam@140 14252
cannam@140 14253
cannam@140 14254
cannam@140 14255
cannam@140 14256 #
cannam@140 14257 # Check to make sure the static flag actually works.
cannam@140 14258 #
cannam@140 14259 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cannam@140 14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cannam@140 14261 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cannam@140 14262 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cannam@140 14263 $as_echo_n "(cached) " >&6
cannam@140 14264 else
cannam@140 14265 lt_cv_prog_compiler_static_works_CXX=no
cannam@140 14266 save_LDFLAGS="$LDFLAGS"
cannam@140 14267 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
cannam@140 14268 echo "$lt_simple_link_test_code" > conftest.$ac_ext
cannam@140 14269 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
cannam@140 14270 # The linker can only warn and ignore the option if not recognized
cannam@140 14271 # So say no if there are warnings
cannam@140 14272 if test -s conftest.err; then
cannam@140 14273 # Append any errors to the config.log.
cannam@140 14274 cat conftest.err 1>&5
cannam@140 14275 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cannam@140 14276 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@140 14277 if diff conftest.exp conftest.er2 >/dev/null; then
cannam@140 14278 lt_cv_prog_compiler_static_works_CXX=yes
cannam@140 14279 fi
cannam@140 14280 else
cannam@140 14281 lt_cv_prog_compiler_static_works_CXX=yes
cannam@140 14282 fi
cannam@140 14283 fi
cannam@140 14284 $RM -r conftest*
cannam@140 14285 LDFLAGS="$save_LDFLAGS"
cannam@140 14286
cannam@140 14287 fi
cannam@140 14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cannam@140 14289 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
cannam@140 14290
cannam@140 14291 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
cannam@140 14292 :
cannam@140 14293 else
cannam@140 14294 lt_prog_compiler_static_CXX=
cannam@140 14295 fi
cannam@140 14296
cannam@140 14297
cannam@140 14298
cannam@140 14299
cannam@140 14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@140 14301 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cannam@140 14302 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cannam@140 14303 $as_echo_n "(cached) " >&6
cannam@140 14304 else
cannam@140 14305 lt_cv_prog_compiler_c_o_CXX=no
cannam@140 14306 $RM -r conftest 2>/dev/null
cannam@140 14307 mkdir conftest
cannam@140 14308 cd conftest
cannam@140 14309 mkdir out
cannam@140 14310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@140 14311
cannam@140 14312 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@140 14313 # Insert the option either (1) after the last *FLAGS variable, or
cannam@140 14314 # (2) before a word containing "conftest.", or (3) at the end.
cannam@140 14315 # Note that $ac_compile itself does not contain backslashes and begins
cannam@140 14316 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@140 14317 lt_compile=`echo "$ac_compile" | $SED \
cannam@140 14318 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@140 14319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@140 14320 -e 's:$: $lt_compiler_flag:'`
cannam@140 14321 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@140 14322 (eval "$lt_compile" 2>out/conftest.err)
cannam@140 14323 ac_status=$?
cannam@140 14324 cat out/conftest.err >&5
cannam@140 14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@140 14326 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@140 14327 then
cannam@140 14328 # The compiler can only warn and ignore the option if not recognized
cannam@140 14329 # So say no if there are warnings
cannam@140 14330 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cannam@140 14331 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cannam@140 14332 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cannam@140 14333 lt_cv_prog_compiler_c_o_CXX=yes
cannam@140 14334 fi
cannam@140 14335 fi
cannam@140 14336 chmod u+w . 2>&5
cannam@140 14337 $RM conftest*
cannam@140 14338 # SGI C++ compiler will create directory out/ii_files/ for
cannam@140 14339 # template instantiation
cannam@140 14340 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
cannam@140 14341 $RM out/* && rmdir out
cannam@140 14342 cd ..
cannam@140 14343 $RM -r conftest
cannam@140 14344 $RM conftest*
cannam@140 14345
cannam@140 14346 fi
cannam@140 14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cannam@140 14348 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
cannam@140 14349
cannam@140 14350
cannam@140 14351
cannam@140 14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@140 14353 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cannam@140 14354 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cannam@140 14355 $as_echo_n "(cached) " >&6
cannam@140 14356 else
cannam@140 14357 lt_cv_prog_compiler_c_o_CXX=no
cannam@140 14358 $RM -r conftest 2>/dev/null
cannam@140 14359 mkdir conftest
cannam@140 14360 cd conftest
cannam@140 14361 mkdir out
cannam@140 14362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@140 14363
cannam@140 14364 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@140 14365 # Insert the option either (1) after the last *FLAGS variable, or
cannam@140 14366 # (2) before a word containing "conftest.", or (3) at the end.
cannam@140 14367 # Note that $ac_compile itself does not contain backslashes and begins
cannam@140 14368 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@140 14369 lt_compile=`echo "$ac_compile" | $SED \
cannam@140 14370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@140 14371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@140 14372 -e 's:$: $lt_compiler_flag:'`
cannam@140 14373 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@140 14374 (eval "$lt_compile" 2>out/conftest.err)
cannam@140 14375 ac_status=$?
cannam@140 14376 cat out/conftest.err >&5
cannam@140 14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@140 14378 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@140 14379 then
cannam@140 14380 # The compiler can only warn and ignore the option if not recognized
cannam@140 14381 # So say no if there are warnings
cannam@140 14382 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cannam@140 14383 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cannam@140 14384 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cannam@140 14385 lt_cv_prog_compiler_c_o_CXX=yes
cannam@140 14386 fi
cannam@140 14387 fi
cannam@140 14388 chmod u+w . 2>&5
cannam@140 14389 $RM conftest*
cannam@140 14390 # SGI C++ compiler will create directory out/ii_files/ for
cannam@140 14391 # template instantiation
cannam@140 14392 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
cannam@140 14393 $RM out/* && rmdir out
cannam@140 14394 cd ..
cannam@140 14395 $RM -r conftest
cannam@140 14396 $RM conftest*
cannam@140 14397
cannam@140 14398 fi
cannam@140 14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cannam@140 14400 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
cannam@140 14401
cannam@140 14402
cannam@140 14403
cannam@140 14404
cannam@140 14405 hard_links="nottested"
cannam@140 14406 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
cannam@140 14407 # do not overwrite the value of need_locks provided by the user
cannam@140 14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cannam@140 14409 $as_echo_n "checking if we can lock with hard links... " >&6; }
cannam@140 14410 hard_links=yes
cannam@140 14411 $RM conftest*
cannam@140 14412 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@140 14413 touch conftest.a
cannam@140 14414 ln conftest.a conftest.b 2>&5 || hard_links=no
cannam@140 14415 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@140 14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cannam@140 14417 $as_echo "$hard_links" >&6; }
cannam@140 14418 if test "$hard_links" = no; then
cannam@140 14419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cannam@140 14420 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
cannam@140 14421 need_locks=warn
cannam@140 14422 fi
cannam@140 14423 else
cannam@140 14424 need_locks=no
cannam@140 14425 fi
cannam@140 14426
cannam@140 14427
cannam@140 14428
cannam@140 14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@140 14430 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
cannam@140 14431
cannam@140 14432 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@140 14433 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cannam@140 14434 case $host_os in
cannam@140 14435 aix[4-9]*)
cannam@140 14436 # If we're using GNU nm, then we don't want the "-C" option.
cannam@140 14437 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cannam@140 14438 # Also, AIX nm treats weak defined symbols like other global defined
cannam@140 14439 # symbols, whereas GNU nm marks them as "W".
cannam@140 14440 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cannam@140 14441 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cannam@140 14442 else
cannam@140 14443 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cannam@140 14444 fi
cannam@140 14445 ;;
cannam@140 14446 pw32*)
cannam@140 14447 export_symbols_cmds_CXX="$ltdll_cmds"
cannam@140 14448 ;;
cannam@140 14449 cygwin* | mingw* | cegcc*)
cannam@140 14450 case $cc_basename in
cannam@140 14451 cl*)
cannam@140 14452 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cannam@140 14453 ;;
cannam@140 14454 *)
cannam@140 14455 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@140 14456 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
cannam@140 14457 ;;
cannam@140 14458 esac
cannam@140 14459 ;;
cannam@140 14460 linux* | k*bsd*-gnu | gnu*)
cannam@140 14461 link_all_deplibs_CXX=no
cannam@140 14462 ;;
cannam@140 14463 *)
cannam@140 14464 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@140 14465 ;;
cannam@140 14466 esac
cannam@140 14467
cannam@140 14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cannam@140 14469 $as_echo "$ld_shlibs_CXX" >&6; }
cannam@140 14470 test "$ld_shlibs_CXX" = no && can_build_shared=no
cannam@140 14471
cannam@140 14472 with_gnu_ld_CXX=$with_gnu_ld
cannam@140 14473
cannam@140 14474
cannam@140 14475
cannam@140 14476
cannam@140 14477
cannam@140 14478
cannam@140 14479 #
cannam@140 14480 # Do we need to explicitly link libc?
cannam@140 14481 #
cannam@140 14482 case "x$archive_cmds_need_lc_CXX" in
cannam@140 14483 x|xyes)
cannam@140 14484 # Assume -lc should be added
cannam@140 14485 archive_cmds_need_lc_CXX=yes
cannam@140 14486
cannam@140 14487 if test "$enable_shared" = yes && test "$GCC" = yes; then
cannam@140 14488 case $archive_cmds_CXX in
cannam@140 14489 *'~'*)
cannam@140 14490 # FIXME: we may have to deal with multi-command sequences.
cannam@140 14491 ;;
cannam@140 14492 '$CC '*)
cannam@140 14493 # Test whether the compiler implicitly links with -lc since on some
cannam@140 14494 # systems, -lgcc has to come before -lc. If gcc already passes -lc
cannam@140 14495 # to ld, don't add -lc before -lgcc.
cannam@140 14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cannam@140 14497 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cannam@140 14498 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cannam@140 14499 $as_echo_n "(cached) " >&6
cannam@140 14500 else
cannam@140 14501 $RM conftest*
cannam@140 14502 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@140 14503
cannam@140 14504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@140 14505 (eval $ac_compile) 2>&5
cannam@140 14506 ac_status=$?
cannam@140 14507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 14508 test $ac_status = 0; } 2>conftest.err; then
cannam@140 14509 soname=conftest
cannam@140 14510 lib=conftest
cannam@140 14511 libobjs=conftest.$ac_objext
cannam@140 14512 deplibs=
cannam@140 14513 wl=$lt_prog_compiler_wl_CXX
cannam@140 14514 pic_flag=$lt_prog_compiler_pic_CXX
cannam@140 14515 compiler_flags=-v
cannam@140 14516 linker_flags=-v
cannam@140 14517 verstring=
cannam@140 14518 output_objdir=.
cannam@140 14519 libname=conftest
cannam@140 14520 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
cannam@140 14521 allow_undefined_flag_CXX=
cannam@140 14522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cannam@140 14523 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
cannam@140 14524 ac_status=$?
cannam@140 14525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@140 14526 test $ac_status = 0; }
cannam@140 14527 then
cannam@140 14528 lt_cv_archive_cmds_need_lc_CXX=no
cannam@140 14529 else
cannam@140 14530 lt_cv_archive_cmds_need_lc_CXX=yes
cannam@140 14531 fi
cannam@140 14532 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
cannam@140 14533 else
cannam@140 14534 cat conftest.err 1>&5
cannam@140 14535 fi
cannam@140 14536 $RM conftest*
cannam@140 14537
cannam@140 14538 fi
cannam@140 14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
cannam@140 14540 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
cannam@140 14541 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cannam@140 14542 ;;
cannam@140 14543 esac
cannam@140 14544 fi
cannam@140 14545 ;;
cannam@140 14546 esac
cannam@140 14547
cannam@140 14548
cannam@140 14549
cannam@140 14550
cannam@140 14551
cannam@140 14552
cannam@140 14553
cannam@140 14554
cannam@140 14555
cannam@140 14556
cannam@140 14557
cannam@140 14558
cannam@140 14559
cannam@140 14560
cannam@140 14561
cannam@140 14562
cannam@140 14563
cannam@140 14564
cannam@140 14565
cannam@140 14566
cannam@140 14567
cannam@140 14568
cannam@140 14569
cannam@140 14570
cannam@140 14571
cannam@140 14572
cannam@140 14573
cannam@140 14574
cannam@140 14575
cannam@140 14576
cannam@140 14577
cannam@140 14578
cannam@140 14579
cannam@140 14580
cannam@140 14581
cannam@140 14582
cannam@140 14583
cannam@140 14584
cannam@140 14585
cannam@140 14586
cannam@140 14587
cannam@140 14588
cannam@140 14589
cannam@140 14590
cannam@140 14591
cannam@140 14592
cannam@140 14593
cannam@140 14594
cannam@140 14595
cannam@140 14596
cannam@140 14597
cannam@140 14598
cannam@140 14599
cannam@140 14600
cannam@140 14601
cannam@140 14602
cannam@140 14603
cannam@140 14604
cannam@140 14605
cannam@140 14606
cannam@140 14607
cannam@140 14608
cannam@140 14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cannam@140 14610 $as_echo_n "checking dynamic linker characteristics... " >&6; }
cannam@140 14611
cannam@140 14612 library_names_spec=
cannam@140 14613 libname_spec='lib$name'
cannam@140 14614 soname_spec=
cannam@140 14615 shrext_cmds=".so"
cannam@140 14616 postinstall_cmds=
cannam@140 14617 postuninstall_cmds=
cannam@140 14618 finish_cmds=
cannam@140 14619 finish_eval=
cannam@140 14620 shlibpath_var=
cannam@140 14621 shlibpath_overrides_runpath=unknown
cannam@140 14622 version_type=none
cannam@140 14623 dynamic_linker="$host_os ld.so"
cannam@140 14624 sys_lib_dlsearch_path_spec="/lib /usr/lib"
cannam@140 14625 need_lib_prefix=unknown
cannam@140 14626 hardcode_into_libs=no
cannam@140 14627
cannam@140 14628 # when you set need_version to no, make sure it does not cause -set_version
cannam@140 14629 # flags to be left without arguments
cannam@140 14630 need_version=unknown
cannam@140 14631
cannam@140 14632 case $host_os in
cannam@140 14633 aix3*)
cannam@140 14634 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 14635 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
cannam@140 14636 shlibpath_var=LIBPATH
cannam@140 14637
cannam@140 14638 # AIX 3 has no versioning support, so we append a major version to the name.
cannam@140 14639 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 14640 ;;
cannam@140 14641
cannam@140 14642 aix[4-9]*)
cannam@140 14643 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 14644 need_lib_prefix=no
cannam@140 14645 need_version=no
cannam@140 14646 hardcode_into_libs=yes
cannam@140 14647 if test "$host_cpu" = ia64; then
cannam@140 14648 # AIX 5 supports IA64
cannam@140 14649 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
cannam@140 14650 shlibpath_var=LD_LIBRARY_PATH
cannam@140 14651 else
cannam@140 14652 # With GCC up to 2.95.x, collect2 would create an import file
cannam@140 14653 # for dependence libraries. The import file would start with
cannam@140 14654 # the line `#! .'. This would cause the generated library to
cannam@140 14655 # depend on `.', always an invalid library. This was fixed in
cannam@140 14656 # development snapshots of GCC prior to 3.0.
cannam@140 14657 case $host_os in
cannam@140 14658 aix4 | aix4.[01] | aix4.[01].*)
cannam@140 14659 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
cannam@140 14660 echo ' yes '
cannam@140 14661 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
cannam@140 14662 :
cannam@140 14663 else
cannam@140 14664 can_build_shared=no
cannam@140 14665 fi
cannam@140 14666 ;;
cannam@140 14667 esac
cannam@140 14668 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
cannam@140 14669 # soname into executable. Probably we can add versioning support to
cannam@140 14670 # collect2, so additional links can be useful in future.
cannam@140 14671 if test "$aix_use_runtimelinking" = yes; then
cannam@140 14672 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
cannam@140 14673 # instead of lib<name>.a to let people know that these are not
cannam@140 14674 # typical AIX shared libraries.
cannam@140 14675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 14676 else
cannam@140 14677 # We preserve .a as extension for shared libraries through AIX4.2
cannam@140 14678 # and later when we are not doing run time linking.
cannam@140 14679 library_names_spec='${libname}${release}.a $libname.a'
cannam@140 14680 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 14681 fi
cannam@140 14682 shlibpath_var=LIBPATH
cannam@140 14683 fi
cannam@140 14684 ;;
cannam@140 14685
cannam@140 14686 amigaos*)
cannam@140 14687 case $host_cpu in
cannam@140 14688 powerpc)
cannam@140 14689 # Since July 2007 AmigaOS4 officially supports .so libraries.
cannam@140 14690 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
cannam@140 14691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 14692 ;;
cannam@140 14693 m68k)
cannam@140 14694 library_names_spec='$libname.ixlibrary $libname.a'
cannam@140 14695 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cannam@140 14696 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
cannam@140 14697 ;;
cannam@140 14698 esac
cannam@140 14699 ;;
cannam@140 14700
cannam@140 14701 beos*)
cannam@140 14702 library_names_spec='${libname}${shared_ext}'
cannam@140 14703 dynamic_linker="$host_os ld.so"
cannam@140 14704 shlibpath_var=LIBRARY_PATH
cannam@140 14705 ;;
cannam@140 14706
cannam@140 14707 bsdi[45]*)
cannam@140 14708 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 14709 need_version=no
cannam@140 14710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 14711 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 14712 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
cannam@140 14713 shlibpath_var=LD_LIBRARY_PATH
cannam@140 14714 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
cannam@140 14715 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
cannam@140 14716 # the default ld.so.conf also contains /usr/contrib/lib and
cannam@140 14717 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
cannam@140 14718 # libtool to hard-code these into programs
cannam@140 14719 ;;
cannam@140 14720
cannam@140 14721 cygwin* | mingw* | pw32* | cegcc*)
cannam@140 14722 version_type=windows
cannam@140 14723 shrext_cmds=".dll"
cannam@140 14724 need_version=no
cannam@140 14725 need_lib_prefix=no
cannam@140 14726
cannam@140 14727 case $GCC,$cc_basename in
cannam@140 14728 yes,*)
cannam@140 14729 # gcc
cannam@140 14730 library_names_spec='$libname.dll.a'
cannam@140 14731 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@140 14732 postinstall_cmds='base_file=`basename \${file}`~
cannam@140 14733 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
cannam@140 14734 dldir=$destdir/`dirname \$dlpath`~
cannam@140 14735 test -d \$dldir || mkdir -p \$dldir~
cannam@140 14736 $install_prog $dir/$dlname \$dldir/$dlname~
cannam@140 14737 chmod a+x \$dldir/$dlname~
cannam@140 14738 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
cannam@140 14739 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
cannam@140 14740 fi'
cannam@140 14741 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@140 14742 dlpath=$dir/\$dldll~
cannam@140 14743 $RM \$dlpath'
cannam@140 14744 shlibpath_overrides_runpath=yes
cannam@140 14745
cannam@140 14746 case $host_os in
cannam@140 14747 cygwin*)
cannam@140 14748 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
cannam@140 14749 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@140 14750
cannam@140 14751 ;;
cannam@140 14752 mingw* | cegcc*)
cannam@140 14753 # MinGW DLLs use traditional 'lib' prefix
cannam@140 14754 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@140 14755 ;;
cannam@140 14756 pw32*)
cannam@140 14757 # pw32 DLLs use 'pw' prefix rather than 'lib'
cannam@140 14758 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@140 14759 ;;
cannam@140 14760 esac
cannam@140 14761 dynamic_linker='Win32 ld.exe'
cannam@140 14762 ;;
cannam@140 14763
cannam@140 14764 *,cl*)
cannam@140 14765 # Native MSVC
cannam@140 14766 libname_spec='$name'
cannam@140 14767 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@140 14768 library_names_spec='${libname}.dll.lib'
cannam@140 14769
cannam@140 14770 case $build_os in
cannam@140 14771 mingw*)
cannam@140 14772 sys_lib_search_path_spec=
cannam@140 14773 lt_save_ifs=$IFS
cannam@140 14774 IFS=';'
cannam@140 14775 for lt_path in $LIB
cannam@140 14776 do
cannam@140 14777 IFS=$lt_save_ifs
cannam@140 14778 # Let DOS variable expansion print the short 8.3 style file name.
cannam@140 14779 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
cannam@140 14780 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
cannam@140 14781 done
cannam@140 14782 IFS=$lt_save_ifs
cannam@140 14783 # Convert to MSYS style.
cannam@140 14784 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@140 14785 ;;
cannam@140 14786 cygwin*)
cannam@140 14787 # Convert to unix form, then to dos form, then back to unix form
cannam@140 14788 # but this time dos style (no spaces!) so that the unix form looks
cannam@140 14789 # like /cygdrive/c/PROGRA~1:/cygdr...
cannam@140 14790 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
cannam@140 14791 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
cannam@140 14792 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@140 14793 ;;
cannam@140 14794 *)
cannam@140 14795 sys_lib_search_path_spec="$LIB"
cannam@140 14796 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
cannam@140 14797 # It is most probably a Windows format PATH.
cannam@140 14798 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@140 14799 else
cannam@140 14800 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@140 14801 fi
cannam@140 14802 # FIXME: find the short name or the path components, as spaces are
cannam@140 14803 # common. (e.g. "Program Files" -> "PROGRA~1")
cannam@140 14804 ;;
cannam@140 14805 esac
cannam@140 14806
cannam@140 14807 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@140 14808 postinstall_cmds='base_file=`basename \${file}`~
cannam@140 14809 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
cannam@140 14810 dldir=$destdir/`dirname \$dlpath`~
cannam@140 14811 test -d \$dldir || mkdir -p \$dldir~
cannam@140 14812 $install_prog $dir/$dlname \$dldir/$dlname'
cannam@140 14813 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@140 14814 dlpath=$dir/\$dldll~
cannam@140 14815 $RM \$dlpath'
cannam@140 14816 shlibpath_overrides_runpath=yes
cannam@140 14817 dynamic_linker='Win32 link.exe'
cannam@140 14818 ;;
cannam@140 14819
cannam@140 14820 *)
cannam@140 14821 # Assume MSVC wrapper
cannam@140 14822 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cannam@140 14823 dynamic_linker='Win32 ld.exe'
cannam@140 14824 ;;
cannam@140 14825 esac
cannam@140 14826 # FIXME: first we should search . and the directory the executable is in
cannam@140 14827 shlibpath_var=PATH
cannam@140 14828 ;;
cannam@140 14829
cannam@140 14830 darwin* | rhapsody*)
cannam@140 14831 dynamic_linker="$host_os dyld"
cannam@140 14832 version_type=darwin
cannam@140 14833 need_lib_prefix=no
cannam@140 14834 need_version=no
cannam@140 14835 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
cannam@140 14836 soname_spec='${libname}${release}${major}$shared_ext'
cannam@140 14837 shlibpath_overrides_runpath=yes
cannam@140 14838 shlibpath_var=DYLD_LIBRARY_PATH
cannam@140 14839 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
cannam@140 14840
cannam@140 14841 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
cannam@140 14842 ;;
cannam@140 14843
cannam@140 14844 dgux*)
cannam@140 14845 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 14846 need_lib_prefix=no
cannam@140 14847 need_version=no
cannam@140 14848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
cannam@140 14849 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 14850 shlibpath_var=LD_LIBRARY_PATH
cannam@140 14851 ;;
cannam@140 14852
cannam@140 14853 freebsd* | dragonfly*)
cannam@140 14854 # DragonFly does not have aout. When/if they implement a new
cannam@140 14855 # versioning mechanism, adjust this.
cannam@140 14856 if test -x /usr/bin/objformat; then
cannam@140 14857 objformat=`/usr/bin/objformat`
cannam@140 14858 else
cannam@140 14859 case $host_os in
cannam@140 14860 freebsd[23].*) objformat=aout ;;
cannam@140 14861 *) objformat=elf ;;
cannam@140 14862 esac
cannam@140 14863 fi
cannam@140 14864 version_type=freebsd-$objformat
cannam@140 14865 case $version_type in
cannam@140 14866 freebsd-elf*)
cannam@140 14867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@140 14868 need_version=no
cannam@140 14869 need_lib_prefix=no
cannam@140 14870 ;;
cannam@140 14871 freebsd-*)
cannam@140 14872 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
cannam@140 14873 need_version=yes
cannam@140 14874 ;;
cannam@140 14875 esac
cannam@140 14876 shlibpath_var=LD_LIBRARY_PATH
cannam@140 14877 case $host_os in
cannam@140 14878 freebsd2.*)
cannam@140 14879 shlibpath_overrides_runpath=yes
cannam@140 14880 ;;
cannam@140 14881 freebsd3.[01]* | freebsdelf3.[01]*)
cannam@140 14882 shlibpath_overrides_runpath=yes
cannam@140 14883 hardcode_into_libs=yes
cannam@140 14884 ;;
cannam@140 14885 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
cannam@140 14886 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
cannam@140 14887 shlibpath_overrides_runpath=no
cannam@140 14888 hardcode_into_libs=yes
cannam@140 14889 ;;
cannam@140 14890 *) # from 4.6 on, and DragonFly
cannam@140 14891 shlibpath_overrides_runpath=yes
cannam@140 14892 hardcode_into_libs=yes
cannam@140 14893 ;;
cannam@140 14894 esac
cannam@140 14895 ;;
cannam@140 14896
cannam@140 14897 haiku*)
cannam@140 14898 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 14899 need_lib_prefix=no
cannam@140 14900 need_version=no
cannam@140 14901 dynamic_linker="$host_os runtime_loader"
cannam@140 14902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
cannam@140 14903 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 14904 shlibpath_var=LIBRARY_PATH
cannam@140 14905 shlibpath_overrides_runpath=yes
cannam@140 14906 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
cannam@140 14907 hardcode_into_libs=yes
cannam@140 14908 ;;
cannam@140 14909
cannam@140 14910 hpux9* | hpux10* | hpux11*)
cannam@140 14911 # Give a soname corresponding to the major version so that dld.sl refuses to
cannam@140 14912 # link against other versions.
cannam@140 14913 version_type=sunos
cannam@140 14914 need_lib_prefix=no
cannam@140 14915 need_version=no
cannam@140 14916 case $host_cpu in
cannam@140 14917 ia64*)
cannam@140 14918 shrext_cmds='.so'
cannam@140 14919 hardcode_into_libs=yes
cannam@140 14920 dynamic_linker="$host_os dld.so"
cannam@140 14921 shlibpath_var=LD_LIBRARY_PATH
cannam@140 14922 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@140 14923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 14924 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 14925 if test "X$HPUX_IA64_MODE" = X32; then
cannam@140 14926 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
cannam@140 14927 else
cannam@140 14928 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
cannam@140 14929 fi
cannam@140 14930 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@140 14931 ;;
cannam@140 14932 hppa*64*)
cannam@140 14933 shrext_cmds='.sl'
cannam@140 14934 hardcode_into_libs=yes
cannam@140 14935 dynamic_linker="$host_os dld.sl"
cannam@140 14936 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
cannam@140 14937 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@140 14938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 14939 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 14940 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
cannam@140 14941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@140 14942 ;;
cannam@140 14943 *)
cannam@140 14944 shrext_cmds='.sl'
cannam@140 14945 dynamic_linker="$host_os dld.sl"
cannam@140 14946 shlibpath_var=SHLIB_PATH
cannam@140 14947 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
cannam@140 14948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 14949 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 14950 ;;
cannam@140 14951 esac
cannam@140 14952 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cannam@140 14953 postinstall_cmds='chmod 555 $lib'
cannam@140 14954 # or fails outright, so override atomically:
cannam@140 14955 install_override_mode=555
cannam@140 14956 ;;
cannam@140 14957
cannam@140 14958 interix[3-9]*)
cannam@140 14959 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 14960 need_lib_prefix=no
cannam@140 14961 need_version=no
cannam@140 14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@140 14963 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 14964 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
cannam@140 14965 shlibpath_var=LD_LIBRARY_PATH
cannam@140 14966 shlibpath_overrides_runpath=no
cannam@140 14967 hardcode_into_libs=yes
cannam@140 14968 ;;
cannam@140 14969
cannam@140 14970 irix5* | irix6* | nonstopux*)
cannam@140 14971 case $host_os in
cannam@140 14972 nonstopux*) version_type=nonstopux ;;
cannam@140 14973 *)
cannam@140 14974 if test "$lt_cv_prog_gnu_ld" = yes; then
cannam@140 14975 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 14976 else
cannam@140 14977 version_type=irix
cannam@140 14978 fi ;;
cannam@140 14979 esac
cannam@140 14980 need_lib_prefix=no
cannam@140 14981 need_version=no
cannam@140 14982 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 14983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@140 14984 case $host_os in
cannam@140 14985 irix5* | nonstopux*)
cannam@140 14986 libsuff= shlibsuff=
cannam@140 14987 ;;
cannam@140 14988 *)
cannam@140 14989 case $LD in # libtool.m4 will add one of these switches to LD
cannam@140 14990 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
cannam@140 14991 libsuff= shlibsuff= libmagic=32-bit;;
cannam@140 14992 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
cannam@140 14993 libsuff=32 shlibsuff=N32 libmagic=N32;;
cannam@140 14994 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
cannam@140 14995 libsuff=64 shlibsuff=64 libmagic=64-bit;;
cannam@140 14996 *) libsuff= shlibsuff= libmagic=never-match;;
cannam@140 14997 esac
cannam@140 14998 ;;
cannam@140 14999 esac
cannam@140 15000 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
cannam@140 15001 shlibpath_overrides_runpath=no
cannam@140 15002 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
cannam@140 15003 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
cannam@140 15004 hardcode_into_libs=yes
cannam@140 15005 ;;
cannam@140 15006
cannam@140 15007 # No shared lib support for Linux oldld, aout, or coff.
cannam@140 15008 linux*oldld* | linux*aout* | linux*coff*)
cannam@140 15009 dynamic_linker=no
cannam@140 15010 ;;
cannam@140 15011
cannam@140 15012 # This must be glibc/ELF.
cannam@140 15013 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cannam@140 15014 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 15015 need_lib_prefix=no
cannam@140 15016 need_version=no
cannam@140 15017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 15018 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 15019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
cannam@140 15020 shlibpath_var=LD_LIBRARY_PATH
cannam@140 15021 shlibpath_overrides_runpath=no
cannam@140 15022
cannam@140 15023 # Some binutils ld are patched to set DT_RUNPATH
cannam@140 15024 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cannam@140 15025 $as_echo_n "(cached) " >&6
cannam@140 15026 else
cannam@140 15027 lt_cv_shlibpath_overrides_runpath=no
cannam@140 15028 save_LDFLAGS=$LDFLAGS
cannam@140 15029 save_libdir=$libdir
cannam@140 15030 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
cannam@140 15031 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
cannam@140 15032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@140 15033 /* end confdefs.h. */
cannam@140 15034
cannam@140 15035 int
cannam@140 15036 main ()
cannam@140 15037 {
cannam@140 15038
cannam@140 15039 ;
cannam@140 15040 return 0;
cannam@140 15041 }
cannam@140 15042 _ACEOF
cannam@140 15043 if ac_fn_cxx_try_link "$LINENO"; then :
cannam@140 15044 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cannam@140 15045 lt_cv_shlibpath_overrides_runpath=yes
cannam@140 15046 fi
cannam@140 15047 fi
cannam@140 15048 rm -f core conftest.err conftest.$ac_objext \
cannam@140 15049 conftest$ac_exeext conftest.$ac_ext
cannam@140 15050 LDFLAGS=$save_LDFLAGS
cannam@140 15051 libdir=$save_libdir
cannam@140 15052
cannam@140 15053 fi
cannam@140 15054
cannam@140 15055 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cannam@140 15056
cannam@140 15057 # This implies no fast_install, which is unacceptable.
cannam@140 15058 # Some rework will be needed to allow for fast_install
cannam@140 15059 # before this can be enabled.
cannam@140 15060 hardcode_into_libs=yes
cannam@140 15061
cannam@140 15062 # Append ld.so.conf contents to the search path
cannam@140 15063 if test -f /etc/ld.so.conf; then
cannam@140 15064 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@140 15065 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
cannam@140 15066 fi
cannam@140 15067
cannam@140 15068 # We used to test for /lib/ld.so.1 and disable shared libraries on
cannam@140 15069 # powerpc, because MkLinux only supported shared libraries with the
cannam@140 15070 # GNU dynamic linker. Since this was broken with cross compilers,
cannam@140 15071 # most powerpc-linux boxes support dynamic linking these days and
cannam@140 15072 # people can always --disable-shared, the test was removed, and we
cannam@140 15073 # assume the GNU/Linux dynamic linker is in use.
cannam@140 15074 dynamic_linker='GNU/Linux ld.so'
cannam@140 15075 ;;
cannam@140 15076
cannam@140 15077 netbsdelf*-gnu)
cannam@140 15078 version_type=linux
cannam@140 15079 need_lib_prefix=no
cannam@140 15080 need_version=no
cannam@140 15081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@140 15082 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 15083 shlibpath_var=LD_LIBRARY_PATH
cannam@140 15084 shlibpath_overrides_runpath=no
cannam@140 15085 hardcode_into_libs=yes
cannam@140 15086 dynamic_linker='NetBSD ld.elf_so'
cannam@140 15087 ;;
cannam@140 15088
cannam@140 15089 netbsd*)
cannam@140 15090 version_type=sunos
cannam@140 15091 need_lib_prefix=no
cannam@140 15092 need_version=no
cannam@140 15093 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@140 15094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@140 15095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@140 15096 dynamic_linker='NetBSD (a.out) ld.so'
cannam@140 15097 else
cannam@140 15098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@140 15099 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 15100 dynamic_linker='NetBSD ld.elf_so'
cannam@140 15101 fi
cannam@140 15102 shlibpath_var=LD_LIBRARY_PATH
cannam@140 15103 shlibpath_overrides_runpath=yes
cannam@140 15104 hardcode_into_libs=yes
cannam@140 15105 ;;
cannam@140 15106
cannam@140 15107 newsos6)
cannam@140 15108 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 15109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 15110 shlibpath_var=LD_LIBRARY_PATH
cannam@140 15111 shlibpath_overrides_runpath=yes
cannam@140 15112 ;;
cannam@140 15113
cannam@140 15114 *nto* | *qnx*)
cannam@140 15115 version_type=qnx
cannam@140 15116 need_lib_prefix=no
cannam@140 15117 need_version=no
cannam@140 15118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 15119 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 15120 shlibpath_var=LD_LIBRARY_PATH
cannam@140 15121 shlibpath_overrides_runpath=no
cannam@140 15122 hardcode_into_libs=yes
cannam@140 15123 dynamic_linker='ldqnx.so'
cannam@140 15124 ;;
cannam@140 15125
cannam@140 15126 openbsd*)
cannam@140 15127 version_type=sunos
cannam@140 15128 sys_lib_dlsearch_path_spec="/usr/lib"
cannam@140 15129 need_lib_prefix=no
cannam@140 15130 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
cannam@140 15131 case $host_os in
cannam@140 15132 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
cannam@140 15133 *) need_version=no ;;
cannam@140 15134 esac
cannam@140 15135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@140 15136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@140 15137 shlibpath_var=LD_LIBRARY_PATH
cannam@140 15138 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@140 15139 case $host_os in
cannam@140 15140 openbsd2.[89] | openbsd2.[89].*)
cannam@140 15141 shlibpath_overrides_runpath=no
cannam@140 15142 ;;
cannam@140 15143 *)
cannam@140 15144 shlibpath_overrides_runpath=yes
cannam@140 15145 ;;
cannam@140 15146 esac
cannam@140 15147 else
cannam@140 15148 shlibpath_overrides_runpath=yes
cannam@140 15149 fi
cannam@140 15150 ;;
cannam@140 15151
cannam@140 15152 os2*)
cannam@140 15153 libname_spec='$name'
cannam@140 15154 shrext_cmds=".dll"
cannam@140 15155 need_lib_prefix=no
cannam@140 15156 library_names_spec='$libname${shared_ext} $libname.a'
cannam@140 15157 dynamic_linker='OS/2 ld.exe'
cannam@140 15158 shlibpath_var=LIBPATH
cannam@140 15159 ;;
cannam@140 15160
cannam@140 15161 osf3* | osf4* | osf5*)
cannam@140 15162 version_type=osf
cannam@140 15163 need_lib_prefix=no
cannam@140 15164 need_version=no
cannam@140 15165 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 15166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 15167 shlibpath_var=LD_LIBRARY_PATH
cannam@140 15168 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
cannam@140 15169 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
cannam@140 15170 ;;
cannam@140 15171
cannam@140 15172 rdos*)
cannam@140 15173 dynamic_linker=no
cannam@140 15174 ;;
cannam@140 15175
cannam@140 15176 solaris*)
cannam@140 15177 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 15178 need_lib_prefix=no
cannam@140 15179 need_version=no
cannam@140 15180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 15181 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 15182 shlibpath_var=LD_LIBRARY_PATH
cannam@140 15183 shlibpath_overrides_runpath=yes
cannam@140 15184 hardcode_into_libs=yes
cannam@140 15185 # ldd complains unless libraries are executable
cannam@140 15186 postinstall_cmds='chmod +x $lib'
cannam@140 15187 ;;
cannam@140 15188
cannam@140 15189 sunos4*)
cannam@140 15190 version_type=sunos
cannam@140 15191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@140 15192 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
cannam@140 15193 shlibpath_var=LD_LIBRARY_PATH
cannam@140 15194 shlibpath_overrides_runpath=yes
cannam@140 15195 if test "$with_gnu_ld" = yes; then
cannam@140 15196 need_lib_prefix=no
cannam@140 15197 fi
cannam@140 15198 need_version=yes
cannam@140 15199 ;;
cannam@140 15200
cannam@140 15201 sysv4 | sysv4.3*)
cannam@140 15202 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 15203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 15204 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 15205 shlibpath_var=LD_LIBRARY_PATH
cannam@140 15206 case $host_vendor in
cannam@140 15207 sni)
cannam@140 15208 shlibpath_overrides_runpath=no
cannam@140 15209 need_lib_prefix=no
cannam@140 15210 runpath_var=LD_RUN_PATH
cannam@140 15211 ;;
cannam@140 15212 siemens)
cannam@140 15213 need_lib_prefix=no
cannam@140 15214 ;;
cannam@140 15215 motorola)
cannam@140 15216 need_lib_prefix=no
cannam@140 15217 need_version=no
cannam@140 15218 shlibpath_overrides_runpath=no
cannam@140 15219 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
cannam@140 15220 ;;
cannam@140 15221 esac
cannam@140 15222 ;;
cannam@140 15223
cannam@140 15224 sysv4*MP*)
cannam@140 15225 if test -d /usr/nec ;then
cannam@140 15226 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 15227 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
cannam@140 15228 soname_spec='$libname${shared_ext}.$major'
cannam@140 15229 shlibpath_var=LD_LIBRARY_PATH
cannam@140 15230 fi
cannam@140 15231 ;;
cannam@140 15232
cannam@140 15233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
cannam@140 15234 version_type=freebsd-elf
cannam@140 15235 need_lib_prefix=no
cannam@140 15236 need_version=no
cannam@140 15237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@140 15238 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 15239 shlibpath_var=LD_LIBRARY_PATH
cannam@140 15240 shlibpath_overrides_runpath=yes
cannam@140 15241 hardcode_into_libs=yes
cannam@140 15242 if test "$with_gnu_ld" = yes; then
cannam@140 15243 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
cannam@140 15244 else
cannam@140 15245 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
cannam@140 15246 case $host_os in
cannam@140 15247 sco3.2v5*)
cannam@140 15248 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
cannam@140 15249 ;;
cannam@140 15250 esac
cannam@140 15251 fi
cannam@140 15252 sys_lib_dlsearch_path_spec='/usr/lib'
cannam@140 15253 ;;
cannam@140 15254
cannam@140 15255 tpf*)
cannam@140 15256 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cannam@140 15257 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 15258 need_lib_prefix=no
cannam@140 15259 need_version=no
cannam@140 15260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 15261 shlibpath_var=LD_LIBRARY_PATH
cannam@140 15262 shlibpath_overrides_runpath=no
cannam@140 15263 hardcode_into_libs=yes
cannam@140 15264 ;;
cannam@140 15265
cannam@140 15266 uts4*)
cannam@140 15267 version_type=linux # correct to gnu/linux during the next big refactor
cannam@140 15268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@140 15269 soname_spec='${libname}${release}${shared_ext}$major'
cannam@140 15270 shlibpath_var=LD_LIBRARY_PATH
cannam@140 15271 ;;
cannam@140 15272
cannam@140 15273 *)
cannam@140 15274 dynamic_linker=no
cannam@140 15275 ;;
cannam@140 15276 esac
cannam@140 15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cannam@140 15278 $as_echo "$dynamic_linker" >&6; }
cannam@140 15279 test "$dynamic_linker" = no && can_build_shared=no
cannam@140 15280
cannam@140 15281 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
cannam@140 15282 if test "$GCC" = yes; then
cannam@140 15283 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
cannam@140 15284 fi
cannam@140 15285
cannam@140 15286 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
cannam@140 15287 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
cannam@140 15288 fi
cannam@140 15289 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
cannam@140 15290 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
cannam@140 15291 fi
cannam@140 15292
cannam@140 15293
cannam@140 15294
cannam@140 15295
cannam@140 15296
cannam@140 15297
cannam@140 15298
cannam@140 15299
cannam@140 15300
cannam@140 15301
cannam@140 15302
cannam@140 15303
cannam@140 15304
cannam@140 15305
cannam@140 15306
cannam@140 15307
cannam@140 15308
cannam@140 15309
cannam@140 15310
cannam@140 15311
cannam@140 15312
cannam@140 15313
cannam@140 15314
cannam@140 15315
cannam@140 15316
cannam@140 15317
cannam@140 15318
cannam@140 15319
cannam@140 15320
cannam@140 15321
cannam@140 15322
cannam@140 15323
cannam@140 15324
cannam@140 15325
cannam@140 15326
cannam@140 15327
cannam@140 15328
cannam@140 15329
cannam@140 15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cannam@140 15331 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
cannam@140 15332 hardcode_action_CXX=
cannam@140 15333 if test -n "$hardcode_libdir_flag_spec_CXX" ||
cannam@140 15334 test -n "$runpath_var_CXX" ||
cannam@140 15335 test "X$hardcode_automatic_CXX" = "Xyes" ; then
cannam@140 15336
cannam@140 15337 # We can hardcode non-existent directories.
cannam@140 15338 if test "$hardcode_direct_CXX" != no &&
cannam@140 15339 # If the only mechanism to avoid hardcoding is shlibpath_var, we
cannam@140 15340 # have to relink, otherwise we might link with an installed library
cannam@140 15341 # when we should be linking with a yet-to-be-installed one
cannam@140 15342 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
cannam@140 15343 test "$hardcode_minus_L_CXX" != no; then
cannam@140 15344 # Linking always hardcodes the temporary library directory.
cannam@140 15345 hardcode_action_CXX=relink
cannam@140 15346 else
cannam@140 15347 # We can link without hardcoding, and we can hardcode nonexisting dirs.
cannam@140 15348 hardcode_action_CXX=immediate
cannam@140 15349 fi
cannam@140 15350 else
cannam@140 15351 # We cannot hardcode anything, or else we can only hardcode existing
cannam@140 15352 # directories.
cannam@140 15353 hardcode_action_CXX=unsupported
cannam@140 15354 fi
cannam@140 15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cannam@140 15356 $as_echo "$hardcode_action_CXX" >&6; }
cannam@140 15357
cannam@140 15358 if test "$hardcode_action_CXX" = relink ||
cannam@140 15359 test "$inherit_rpath_CXX" = yes; then
cannam@140 15360 # Fast installation is not supported
cannam@140 15361 enable_fast_install=no
cannam@140 15362 elif test "$shlibpath_overrides_runpath" = yes ||
cannam@140 15363 test "$enable_shared" = no; then
cannam@140 15364 # Fast installation is not necessary
cannam@140 15365 enable_fast_install=needless
cannam@140 15366 fi
cannam@140 15367
cannam@140 15368
cannam@140 15369
cannam@140 15370
cannam@140 15371
cannam@140 15372
cannam@140 15373
cannam@140 15374 fi # test -n "$compiler"
cannam@140 15375
cannam@140 15376 CC=$lt_save_CC
cannam@140 15377 CFLAGS=$lt_save_CFLAGS
cannam@140 15378 LDCXX=$LD
cannam@140 15379 LD=$lt_save_LD
cannam@140 15380 GCC=$lt_save_GCC
cannam@140 15381 with_gnu_ld=$lt_save_with_gnu_ld
cannam@140 15382 lt_cv_path_LDCXX=$lt_cv_path_LD
cannam@140 15383 lt_cv_path_LD=$lt_save_path_LD
cannam@140 15384 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
cannam@140 15385 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
cannam@140 15386 fi # test "$_lt_caught_CXX_error" != yes
cannam@140 15387
cannam@140 15388 ac_ext=c
cannam@140 15389 ac_cpp='$CPP $CPPFLAGS'
cannam@140 15390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@140 15391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@140 15392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@140 15393
cannam@140 15394
cannam@140 15395
cannam@140 15396
cannam@140 15397
cannam@140 15398
cannam@140 15399
cannam@140 15400
cannam@140 15401
cannam@140 15402
cannam@140 15403
cannam@140 15404
cannam@140 15405
cannam@140 15406
cannam@140 15407
cannam@140 15408 ac_config_commands="$ac_config_commands libtool"
cannam@140 15409
cannam@140 15410
cannam@140 15411
cannam@140 15412
cannam@140 15413 # Only expand once:
cannam@140 15414
cannam@140 15415
cannam@140 15416
cannam@140 15417 # Transfer these variables to the Makefile
cannam@140 15418
cannam@140 15419
cannam@140 15420
cannam@140 15421
cannam@140 15422
cannam@140 15423 ac_config_files="$ac_config_files Makefile lib/Makefile include/Makefile bin/Makefile doc/Makefile portaudiocpp.pc"
cannam@140 15424
cannam@140 15425 cat >confcache <<\_ACEOF
cannam@140 15426 # This file is a shell script that caches the results of configure
cannam@140 15427 # tests run on this system so they can be shared between configure
cannam@140 15428 # scripts and configure runs, see configure's option --config-cache.
cannam@140 15429 # It is not useful on other systems. If it contains results you don't
cannam@140 15430 # want to keep, you may remove or edit it.
cannam@140 15431 #
cannam@140 15432 # config.status only pays attention to the cache file if you give it
cannam@140 15433 # the --recheck option to rerun configure.
cannam@140 15434 #
cannam@140 15435 # `ac_cv_env_foo' variables (set or unset) will be overridden when
cannam@140 15436 # loading this file, other *unset* `ac_cv_foo' will be assigned the
cannam@140 15437 # following values.
cannam@140 15438
cannam@140 15439 _ACEOF
cannam@140 15440
cannam@140 15441 # The following way of writing the cache mishandles newlines in values,
cannam@140 15442 # but we know of no workaround that is simple, portable, and efficient.
cannam@140 15443 # So, we kill variables containing newlines.
cannam@140 15444 # Ultrix sh set writes to stderr and can't be redirected directly,
cannam@140 15445 # and sets the high bit in the cache file unless we assign to the vars.
cannam@140 15446 (
cannam@140 15447 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
cannam@140 15448 eval ac_val=\$$ac_var
cannam@140 15449 case $ac_val in #(
cannam@140 15450 *${as_nl}*)
cannam@140 15451 case $ac_var in #(
cannam@140 15452 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cannam@140 15453 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
cannam@140 15454 esac
cannam@140 15455 case $ac_var in #(
cannam@140 15456 _ | IFS | as_nl) ;; #(
cannam@140 15457 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cannam@140 15458 *) { eval $ac_var=; unset $ac_var;} ;;
cannam@140 15459 esac ;;
cannam@140 15460 esac
cannam@140 15461 done
cannam@140 15462
cannam@140 15463 (set) 2>&1 |
cannam@140 15464 case $as_nl`(ac_space=' '; set) 2>&1` in #(
cannam@140 15465 *${as_nl}ac_space=\ *)
cannam@140 15466 # `set' does not quote correctly, so add quotes: double-quote
cannam@140 15467 # substitution turns \\\\ into \\, and sed turns \\ into \.
cannam@140 15468 sed -n \
cannam@140 15469 "s/'/'\\\\''/g;
cannam@140 15470 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cannam@140 15471 ;; #(
cannam@140 15472 *)
cannam@140 15473 # `set' quotes correctly as required by POSIX, so do not add quotes.
cannam@140 15474 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
cannam@140 15475 ;;
cannam@140 15476 esac |
cannam@140 15477 sort
cannam@140 15478 ) |
cannam@140 15479 sed '
cannam@140 15480 /^ac_cv_env_/b end
cannam@140 15481 t clear
cannam@140 15482 :clear
cannam@140 15483 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
cannam@140 15484 t end
cannam@140 15485 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
cannam@140 15486 :end' >>confcache
cannam@140 15487 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
cannam@140 15488 if test -w "$cache_file"; then
cannam@140 15489 if test "x$cache_file" != "x/dev/null"; then
cannam@140 15490 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cannam@140 15491 $as_echo "$as_me: updating cache $cache_file" >&6;}
cannam@140 15492 if test ! -f "$cache_file" || test -h "$cache_file"; then
cannam@140 15493 cat confcache >"$cache_file"
cannam@140 15494 else
cannam@140 15495 case $cache_file in #(
cannam@140 15496 */* | ?:*)
cannam@140 15497 mv -f confcache "$cache_file"$$ &&
cannam@140 15498 mv -f "$cache_file"$$ "$cache_file" ;; #(
cannam@140 15499 *)
cannam@140 15500 mv -f confcache "$cache_file" ;;
cannam@140 15501 esac
cannam@140 15502 fi
cannam@140 15503 fi
cannam@140 15504 else
cannam@140 15505 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cannam@140 15506 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
cannam@140 15507 fi
cannam@140 15508 fi
cannam@140 15509 rm -f confcache
cannam@140 15510
cannam@140 15511 test "x$prefix" = xNONE && prefix=$ac_default_prefix
cannam@140 15512 # Let make expand exec_prefix.
cannam@140 15513 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
cannam@140 15514
cannam@140 15515 # Transform confdefs.h into DEFS.
cannam@140 15516 # Protect against shell expansion while executing Makefile rules.
cannam@140 15517 # Protect against Makefile macro expansion.
cannam@140 15518 #
cannam@140 15519 # If the first sed substitution is executed (which looks for macros that
cannam@140 15520 # take arguments), then branch to the quote section. Otherwise,
cannam@140 15521 # look for a macro that doesn't take arguments.
cannam@140 15522 ac_script='
cannam@140 15523 :mline
cannam@140 15524 /\\$/{
cannam@140 15525 N
cannam@140 15526 s,\\\n,,
cannam@140 15527 b mline
cannam@140 15528 }
cannam@140 15529 t clear
cannam@140 15530 :clear
cannam@140 15531 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
cannam@140 15532 t quote
cannam@140 15533 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
cannam@140 15534 t quote
cannam@140 15535 b any
cannam@140 15536 :quote
cannam@140 15537 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
cannam@140 15538 s/\[/\\&/g
cannam@140 15539 s/\]/\\&/g
cannam@140 15540 s/\$/$$/g
cannam@140 15541 H
cannam@140 15542 :any
cannam@140 15543 ${
cannam@140 15544 g
cannam@140 15545 s/^\n//
cannam@140 15546 s/\n/ /g
cannam@140 15547 p
cannam@140 15548 }
cannam@140 15549 '
cannam@140 15550 DEFS=`sed -n "$ac_script" confdefs.h`
cannam@140 15551
cannam@140 15552
cannam@140 15553 ac_libobjs=
cannam@140 15554 ac_ltlibobjs=
cannam@140 15555 U=
cannam@140 15556 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
cannam@140 15557 # 1. Remove the extension, and $U if already installed.
cannam@140 15558 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
cannam@140 15559 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
cannam@140 15560 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
cannam@140 15561 # will be set to the directory where LIBOBJS objects are built.
cannam@140 15562 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
cannam@140 15563 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cannam@140 15564 done
cannam@140 15565 LIBOBJS=$ac_libobjs
cannam@140 15566
cannam@140 15567 LTLIBOBJS=$ac_ltlibobjs
cannam@140 15568
cannam@140 15569
cannam@140 15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
cannam@140 15571 $as_echo_n "checking that generated files are newer than configure... " >&6; }
cannam@140 15572 if test -n "$am_sleep_pid"; then
cannam@140 15573 # Hide warnings about reused PIDs.
cannam@140 15574 wait $am_sleep_pid 2>/dev/null
cannam@140 15575 fi
cannam@140 15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
cannam@140 15577 $as_echo "done" >&6; }
cannam@140 15578 if test -n "$EXEEXT"; then
cannam@140 15579 am__EXEEXT_TRUE=
cannam@140 15580 am__EXEEXT_FALSE='#'
cannam@140 15581 else
cannam@140 15582 am__EXEEXT_TRUE='#'
cannam@140 15583 am__EXEEXT_FALSE=
cannam@140 15584 fi
cannam@140 15585
cannam@140 15586 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cannam@140 15587 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cannam@140 15588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@140 15589 fi
cannam@140 15590 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cannam@140 15591 as_fn_error $? "conditional \"AMDEP\" was never defined.
cannam@140 15592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@140 15593 fi
cannam@140 15594 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cannam@140 15595 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cannam@140 15596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@140 15597 fi
cannam@140 15598 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cannam@140 15599 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cannam@140 15600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@140 15601 fi
cannam@140 15602
cannam@140 15603 : "${CONFIG_STATUS=./config.status}"
cannam@140 15604 ac_write_fail=0
cannam@140 15605 ac_clean_files_save=$ac_clean_files
cannam@140 15606 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cannam@140 15607 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cannam@140 15608 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cannam@140 15609 as_write_fail=0
cannam@140 15610 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cannam@140 15611 #! $SHELL
cannam@140 15612 # Generated by $as_me.
cannam@140 15613 # Run this file to recreate the current configuration.
cannam@140 15614 # Compiler output produced by configure, useful for debugging
cannam@140 15615 # configure, is in config.log if it exists.
cannam@140 15616
cannam@140 15617 debug=false
cannam@140 15618 ac_cs_recheck=false
cannam@140 15619 ac_cs_silent=false
cannam@140 15620
cannam@140 15621 SHELL=\${CONFIG_SHELL-$SHELL}
cannam@140 15622 export SHELL
cannam@140 15623 _ASEOF
cannam@140 15624 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
cannam@140 15625 ## -------------------- ##
cannam@140 15626 ## M4sh Initialization. ##
cannam@140 15627 ## -------------------- ##
cannam@140 15628
cannam@140 15629 # Be more Bourne compatible
cannam@140 15630 DUALCASE=1; export DUALCASE # for MKS sh
cannam@140 15631 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cannam@140 15632 emulate sh
cannam@140 15633 NULLCMD=:
cannam@140 15634 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
cannam@140 15635 # is contrary to our usage. Disable this feature.
cannam@140 15636 alias -g '${1+"$@"}'='"$@"'
cannam@140 15637 setopt NO_GLOB_SUBST
cannam@140 15638 else
cannam@140 15639 case `(set -o) 2>/dev/null` in #(
cannam@140 15640 *posix*) :
cannam@140 15641 set -o posix ;; #(
cannam@140 15642 *) :
cannam@140 15643 ;;
cannam@140 15644 esac
cannam@140 15645 fi
cannam@140 15646
cannam@140 15647
cannam@140 15648 as_nl='
cannam@140 15649 '
cannam@140 15650 export as_nl
cannam@140 15651 # Printing a long string crashes Solaris 7 /usr/bin/printf.
cannam@140 15652 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@140 15653 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@140 15654 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@140 15655 # Prefer a ksh shell builtin over an external printf program on Solaris,
cannam@140 15656 # but without wasting forks for bash or zsh.
cannam@140 15657 if test -z "$BASH_VERSION$ZSH_VERSION" \
cannam@140 15658 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@140 15659 as_echo='print -r --'
cannam@140 15660 as_echo_n='print -rn --'
cannam@140 15661 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@140 15662 as_echo='printf %s\n'
cannam@140 15663 as_echo_n='printf %s'
cannam@140 15664 else
cannam@140 15665 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
cannam@140 15666 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
cannam@140 15667 as_echo_n='/usr/ucb/echo -n'
cannam@140 15668 else
cannam@140 15669 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
cannam@140 15670 as_echo_n_body='eval
cannam@140 15671 arg=$1;
cannam@140 15672 case $arg in #(
cannam@140 15673 *"$as_nl"*)
cannam@140 15674 expr "X$arg" : "X\\(.*\\)$as_nl";
cannam@140 15675 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
cannam@140 15676 esac;
cannam@140 15677 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
cannam@140 15678 '
cannam@140 15679 export as_echo_n_body
cannam@140 15680 as_echo_n='sh -c $as_echo_n_body as_echo'
cannam@140 15681 fi
cannam@140 15682 export as_echo_body
cannam@140 15683 as_echo='sh -c $as_echo_body as_echo'
cannam@140 15684 fi
cannam@140 15685
cannam@140 15686 # The user is always right.
cannam@140 15687 if test "${PATH_SEPARATOR+set}" != set; then
cannam@140 15688 PATH_SEPARATOR=:
cannam@140 15689 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
cannam@140 15690 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
cannam@140 15691 PATH_SEPARATOR=';'
cannam@140 15692 }
cannam@140 15693 fi
cannam@140 15694
cannam@140 15695
cannam@140 15696 # IFS
cannam@140 15697 # We need space, tab and new line, in precisely that order. Quoting is
cannam@140 15698 # there to prevent editors from complaining about space-tab.
cannam@140 15699 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
cannam@140 15700 # splitting by setting IFS to empty value.)
cannam@140 15701 IFS=" "" $as_nl"
cannam@140 15702
cannam@140 15703 # Find who we are. Look in the path if we contain no directory separator.
cannam@140 15704 as_myself=
cannam@140 15705 case $0 in #((
cannam@140 15706 *[\\/]* ) as_myself=$0 ;;
cannam@140 15707 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@140 15708 for as_dir in $PATH
cannam@140 15709 do
cannam@140 15710 IFS=$as_save_IFS
cannam@140 15711 test -z "$as_dir" && as_dir=.
cannam@140 15712 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
cannam@140 15713 done
cannam@140 15714 IFS=$as_save_IFS
cannam@140 15715
cannam@140 15716 ;;
cannam@140 15717 esac
cannam@140 15718 # We did not find ourselves, most probably we were run as `sh COMMAND'
cannam@140 15719 # in which case we are not to be found in the path.
cannam@140 15720 if test "x$as_myself" = x; then
cannam@140 15721 as_myself=$0
cannam@140 15722 fi
cannam@140 15723 if test ! -f "$as_myself"; then
cannam@140 15724 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cannam@140 15725 exit 1
cannam@140 15726 fi
cannam@140 15727
cannam@140 15728 # Unset variables that we do not need and which cause bugs (e.g. in
cannam@140 15729 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
cannam@140 15730 # suppresses any "Segmentation fault" message there. '((' could
cannam@140 15731 # trigger a bug in pdksh 5.2.14.
cannam@140 15732 for as_var in BASH_ENV ENV MAIL MAILPATH
cannam@140 15733 do eval test x\${$as_var+set} = xset \
cannam@140 15734 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cannam@140 15735 done
cannam@140 15736 PS1='$ '
cannam@140 15737 PS2='> '
cannam@140 15738 PS4='+ '
cannam@140 15739
cannam@140 15740 # NLS nuisances.
cannam@140 15741 LC_ALL=C
cannam@140 15742 export LC_ALL
cannam@140 15743 LANGUAGE=C
cannam@140 15744 export LANGUAGE
cannam@140 15745
cannam@140 15746 # CDPATH.
cannam@140 15747 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cannam@140 15748
cannam@140 15749
cannam@140 15750 # as_fn_error STATUS ERROR [LINENO LOG_FD]
cannam@140 15751 # ----------------------------------------
cannam@140 15752 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
cannam@140 15753 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cannam@140 15754 # script with STATUS, using 1 if that was 0.
cannam@140 15755 as_fn_error ()
cannam@140 15756 {
cannam@140 15757 as_status=$1; test $as_status -eq 0 && as_status=1
cannam@140 15758 if test "$4"; then
cannam@140 15759 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@140 15760 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cannam@140 15761 fi
cannam@140 15762 $as_echo "$as_me: error: $2" >&2
cannam@140 15763 as_fn_exit $as_status
cannam@140 15764 } # as_fn_error
cannam@140 15765
cannam@140 15766
cannam@140 15767 # as_fn_set_status STATUS
cannam@140 15768 # -----------------------
cannam@140 15769 # Set $? to STATUS, without forking.
cannam@140 15770 as_fn_set_status ()
cannam@140 15771 {
cannam@140 15772 return $1
cannam@140 15773 } # as_fn_set_status
cannam@140 15774
cannam@140 15775 # as_fn_exit STATUS
cannam@140 15776 # -----------------
cannam@140 15777 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
cannam@140 15778 as_fn_exit ()
cannam@140 15779 {
cannam@140 15780 set +e
cannam@140 15781 as_fn_set_status $1
cannam@140 15782 exit $1
cannam@140 15783 } # as_fn_exit
cannam@140 15784
cannam@140 15785 # as_fn_unset VAR
cannam@140 15786 # ---------------
cannam@140 15787 # Portably unset VAR.
cannam@140 15788 as_fn_unset ()
cannam@140 15789 {
cannam@140 15790 { eval $1=; unset $1;}
cannam@140 15791 }
cannam@140 15792 as_unset=as_fn_unset
cannam@140 15793 # as_fn_append VAR VALUE
cannam@140 15794 # ----------------------
cannam@140 15795 # Append the text in VALUE to the end of the definition contained in VAR. Take
cannam@140 15796 # advantage of any shell optimizations that allow amortized linear growth over
cannam@140 15797 # repeated appends, instead of the typical quadratic growth present in naive
cannam@140 15798 # implementations.
cannam@140 15799 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
cannam@140 15800 eval 'as_fn_append ()
cannam@140 15801 {
cannam@140 15802 eval $1+=\$2
cannam@140 15803 }'
cannam@140 15804 else
cannam@140 15805 as_fn_append ()
cannam@140 15806 {
cannam@140 15807 eval $1=\$$1\$2
cannam@140 15808 }
cannam@140 15809 fi # as_fn_append
cannam@140 15810
cannam@140 15811 # as_fn_arith ARG...
cannam@140 15812 # ------------------
cannam@140 15813 # Perform arithmetic evaluation on the ARGs, and store the result in the
cannam@140 15814 # global $as_val. Take advantage of shells that can avoid forks. The arguments
cannam@140 15815 # must be portable across $(()) and expr.
cannam@140 15816 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
cannam@140 15817 eval 'as_fn_arith ()
cannam@140 15818 {
cannam@140 15819 as_val=$(( $* ))
cannam@140 15820 }'
cannam@140 15821 else
cannam@140 15822 as_fn_arith ()
cannam@140 15823 {
cannam@140 15824 as_val=`expr "$@" || test $? -eq 1`
cannam@140 15825 }
cannam@140 15826 fi # as_fn_arith
cannam@140 15827
cannam@140 15828
cannam@140 15829 if expr a : '\(a\)' >/dev/null 2>&1 &&
cannam@140 15830 test "X`expr 00001 : '.*\(...\)'`" = X001; then
cannam@140 15831 as_expr=expr
cannam@140 15832 else
cannam@140 15833 as_expr=false
cannam@140 15834 fi
cannam@140 15835
cannam@140 15836 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
cannam@140 15837 as_basename=basename
cannam@140 15838 else
cannam@140 15839 as_basename=false
cannam@140 15840 fi
cannam@140 15841
cannam@140 15842 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
cannam@140 15843 as_dirname=dirname
cannam@140 15844 else
cannam@140 15845 as_dirname=false
cannam@140 15846 fi
cannam@140 15847
cannam@140 15848 as_me=`$as_basename -- "$0" ||
cannam@140 15849 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
cannam@140 15850 X"$0" : 'X\(//\)$' \| \
cannam@140 15851 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
cannam@140 15852 $as_echo X/"$0" |
cannam@140 15853 sed '/^.*\/\([^/][^/]*\)\/*$/{
cannam@140 15854 s//\1/
cannam@140 15855 q
cannam@140 15856 }
cannam@140 15857 /^X\/\(\/\/\)$/{
cannam@140 15858 s//\1/
cannam@140 15859 q
cannam@140 15860 }
cannam@140 15861 /^X\/\(\/\).*/{
cannam@140 15862 s//\1/
cannam@140 15863 q
cannam@140 15864 }
cannam@140 15865 s/.*/./; q'`
cannam@140 15866
cannam@140 15867 # Avoid depending upon Character Ranges.
cannam@140 15868 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
cannam@140 15869 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
cannam@140 15870 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
cannam@140 15871 as_cr_digits='0123456789'
cannam@140 15872 as_cr_alnum=$as_cr_Letters$as_cr_digits
cannam@140 15873
cannam@140 15874 ECHO_C= ECHO_N= ECHO_T=
cannam@140 15875 case `echo -n x` in #(((((
cannam@140 15876 -n*)
cannam@140 15877 case `echo 'xy\c'` in
cannam@140 15878 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cannam@140 15879 xy) ECHO_C='\c';;
cannam@140 15880 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
cannam@140 15881 ECHO_T=' ';;
cannam@140 15882 esac;;
cannam@140 15883 *)
cannam@140 15884 ECHO_N='-n';;
cannam@140 15885 esac
cannam@140 15886
cannam@140 15887 rm -f conf$$ conf$$.exe conf$$.file
cannam@140 15888 if test -d conf$$.dir; then
cannam@140 15889 rm -f conf$$.dir/conf$$.file
cannam@140 15890 else
cannam@140 15891 rm -f conf$$.dir
cannam@140 15892 mkdir conf$$.dir 2>/dev/null
cannam@140 15893 fi
cannam@140 15894 if (echo >conf$$.file) 2>/dev/null; then
cannam@140 15895 if ln -s conf$$.file conf$$ 2>/dev/null; then
cannam@140 15896 as_ln_s='ln -s'
cannam@140 15897 # ... but there are two gotchas:
cannam@140 15898 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
cannam@140 15899 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cannam@140 15900 # In both cases, we have to default to `cp -pR'.
cannam@140 15901 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cannam@140 15902 as_ln_s='cp -pR'
cannam@140 15903 elif ln conf$$.file conf$$ 2>/dev/null; then
cannam@140 15904 as_ln_s=ln
cannam@140 15905 else
cannam@140 15906 as_ln_s='cp -pR'
cannam@140 15907 fi
cannam@140 15908 else
cannam@140 15909 as_ln_s='cp -pR'
cannam@140 15910 fi
cannam@140 15911 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
cannam@140 15912 rmdir conf$$.dir 2>/dev/null
cannam@140 15913
cannam@140 15914
cannam@140 15915 # as_fn_mkdir_p
cannam@140 15916 # -------------
cannam@140 15917 # Create "$as_dir" as a directory, including parents if necessary.
cannam@140 15918 as_fn_mkdir_p ()
cannam@140 15919 {
cannam@140 15920
cannam@140 15921 case $as_dir in #(
cannam@140 15922 -*) as_dir=./$as_dir;;
cannam@140 15923 esac
cannam@140 15924 test -d "$as_dir" || eval $as_mkdir_p || {
cannam@140 15925 as_dirs=
cannam@140 15926 while :; do
cannam@140 15927 case $as_dir in #(
cannam@140 15928 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
cannam@140 15929 *) as_qdir=$as_dir;;
cannam@140 15930 esac
cannam@140 15931 as_dirs="'$as_qdir' $as_dirs"
cannam@140 15932 as_dir=`$as_dirname -- "$as_dir" ||
cannam@140 15933 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@140 15934 X"$as_dir" : 'X\(//\)[^/]' \| \
cannam@140 15935 X"$as_dir" : 'X\(//\)$' \| \
cannam@140 15936 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
cannam@140 15937 $as_echo X"$as_dir" |
cannam@140 15938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@140 15939 s//\1/
cannam@140 15940 q
cannam@140 15941 }
cannam@140 15942 /^X\(\/\/\)[^/].*/{
cannam@140 15943 s//\1/
cannam@140 15944 q
cannam@140 15945 }
cannam@140 15946 /^X\(\/\/\)$/{
cannam@140 15947 s//\1/
cannam@140 15948 q
cannam@140 15949 }
cannam@140 15950 /^X\(\/\).*/{
cannam@140 15951 s//\1/
cannam@140 15952 q
cannam@140 15953 }
cannam@140 15954 s/.*/./; q'`
cannam@140 15955 test -d "$as_dir" && break
cannam@140 15956 done
cannam@140 15957 test -z "$as_dirs" || eval "mkdir $as_dirs"
cannam@140 15958 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cannam@140 15959
cannam@140 15960
cannam@140 15961 } # as_fn_mkdir_p
cannam@140 15962 if mkdir -p . 2>/dev/null; then
cannam@140 15963 as_mkdir_p='mkdir -p "$as_dir"'
cannam@140 15964 else
cannam@140 15965 test -d ./-p && rmdir ./-p
cannam@140 15966 as_mkdir_p=false
cannam@140 15967 fi
cannam@140 15968
cannam@140 15969
cannam@140 15970 # as_fn_executable_p FILE
cannam@140 15971 # -----------------------
cannam@140 15972 # Test if FILE is an executable regular file.
cannam@140 15973 as_fn_executable_p ()
cannam@140 15974 {
cannam@140 15975 test -f "$1" && test -x "$1"
cannam@140 15976 } # as_fn_executable_p
cannam@140 15977 as_test_x='test -x'
cannam@140 15978 as_executable_p=as_fn_executable_p
cannam@140 15979
cannam@140 15980 # Sed expression to map a string onto a valid CPP name.
cannam@140 15981 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
cannam@140 15982
cannam@140 15983 # Sed expression to map a string onto a valid variable name.
cannam@140 15984 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
cannam@140 15985
cannam@140 15986
cannam@140 15987 exec 6>&1
cannam@140 15988 ## ----------------------------------- ##
cannam@140 15989 ## Main body of $CONFIG_STATUS script. ##
cannam@140 15990 ## ----------------------------------- ##
cannam@140 15991 _ASEOF
cannam@140 15992 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cannam@140 15993
cannam@140 15994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@140 15995 # Save the log message, to keep $0 and so on meaningful, and to
cannam@140 15996 # report actual input values of CONFIG_FILES etc. instead of their
cannam@140 15997 # values after options handling.
cannam@140 15998 ac_log="
cannam@140 15999 This file was extended by PortAudioCpp $as_me 12, which was
cannam@140 16000 generated by GNU Autoconf 2.69. Invocation command line was
cannam@140 16001
cannam@140 16002 CONFIG_FILES = $CONFIG_FILES
cannam@140 16003 CONFIG_HEADERS = $CONFIG_HEADERS
cannam@140 16004 CONFIG_LINKS = $CONFIG_LINKS
cannam@140 16005 CONFIG_COMMANDS = $CONFIG_COMMANDS
cannam@140 16006 $ $0 $@
cannam@140 16007
cannam@140 16008 on `(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@140 16009 "
cannam@140 16010
cannam@140 16011 _ACEOF
cannam@140 16012
cannam@140 16013 case $ac_config_files in *"
cannam@140 16014 "*) set x $ac_config_files; shift; ac_config_files=$*;;
cannam@140 16015 esac
cannam@140 16016
cannam@140 16017
cannam@140 16018
cannam@140 16019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@140 16020 # Files that config.status was made for.
cannam@140 16021 config_files="$ac_config_files"
cannam@140 16022 config_commands="$ac_config_commands"
cannam@140 16023
cannam@140 16024 _ACEOF
cannam@140 16025
cannam@140 16026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@140 16027 ac_cs_usage="\
cannam@140 16028 \`$as_me' instantiates files and other configuration actions
cannam@140 16029 from templates according to the current configuration. Unless the files
cannam@140 16030 and actions are specified as TAGs, all are instantiated by default.
cannam@140 16031
cannam@140 16032 Usage: $0 [OPTION]... [TAG]...
cannam@140 16033
cannam@140 16034 -h, --help print this help, then exit
cannam@140 16035 -V, --version print version number and configuration settings, then exit
cannam@140 16036 --config print configuration, then exit
cannam@140 16037 -q, --quiet, --silent
cannam@140 16038 do not print progress messages
cannam@140 16039 -d, --debug don't remove temporary files
cannam@140 16040 --recheck update $as_me by reconfiguring in the same conditions
cannam@140 16041 --file=FILE[:TEMPLATE]
cannam@140 16042 instantiate the configuration file FILE
cannam@140 16043
cannam@140 16044 Configuration files:
cannam@140 16045 $config_files
cannam@140 16046
cannam@140 16047 Configuration commands:
cannam@140 16048 $config_commands
cannam@140 16049
cannam@140 16050 Report bugs to the package provider."
cannam@140 16051
cannam@140 16052 _ACEOF
cannam@140 16053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@140 16054 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cannam@140 16055 ac_cs_version="\\
cannam@140 16056 PortAudioCpp config.status 12
cannam@140 16057 configured by $0, generated by GNU Autoconf 2.69,
cannam@140 16058 with options \\"\$ac_cs_config\\"
cannam@140 16059
cannam@140 16060 Copyright (C) 2012 Free Software Foundation, Inc.
cannam@140 16061 This config.status script is free software; the Free Software Foundation
cannam@140 16062 gives unlimited permission to copy, distribute and modify it."
cannam@140 16063
cannam@140 16064 ac_pwd='$ac_pwd'
cannam@140 16065 srcdir='$srcdir'
cannam@140 16066 INSTALL='$INSTALL'
cannam@140 16067 MKDIR_P='$MKDIR_P'
cannam@140 16068 AWK='$AWK'
cannam@140 16069 test -n "\$AWK" || AWK=awk
cannam@140 16070 _ACEOF
cannam@140 16071
cannam@140 16072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@140 16073 # The default lists apply if the user does not specify any file.
cannam@140 16074 ac_need_defaults=:
cannam@140 16075 while test $# != 0
cannam@140 16076 do
cannam@140 16077 case $1 in
cannam@140 16078 --*=?*)
cannam@140 16079 ac_option=`expr "X$1" : 'X\([^=]*\)='`
cannam@140 16080 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
cannam@140 16081 ac_shift=:
cannam@140 16082 ;;
cannam@140 16083 --*=)
cannam@140 16084 ac_option=`expr "X$1" : 'X\([^=]*\)='`
cannam@140 16085 ac_optarg=
cannam@140 16086 ac_shift=:
cannam@140 16087 ;;
cannam@140 16088 *)
cannam@140 16089 ac_option=$1
cannam@140 16090 ac_optarg=$2
cannam@140 16091 ac_shift=shift
cannam@140 16092 ;;
cannam@140 16093 esac
cannam@140 16094
cannam@140 16095 case $ac_option in
cannam@140 16096 # Handling of the options.
cannam@140 16097 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
cannam@140 16098 ac_cs_recheck=: ;;
cannam@140 16099 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
cannam@140 16100 $as_echo "$ac_cs_version"; exit ;;
cannam@140 16101 --config | --confi | --conf | --con | --co | --c )
cannam@140 16102 $as_echo "$ac_cs_config"; exit ;;
cannam@140 16103 --debug | --debu | --deb | --de | --d | -d )
cannam@140 16104 debug=: ;;
cannam@140 16105 --file | --fil | --fi | --f )
cannam@140 16106 $ac_shift
cannam@140 16107 case $ac_optarg in
cannam@140 16108 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@140 16109 '') as_fn_error $? "missing file argument" ;;
cannam@140 16110 esac
cannam@140 16111 as_fn_append CONFIG_FILES " '$ac_optarg'"
cannam@140 16112 ac_need_defaults=false;;
cannam@140 16113 --he | --h | --help | --hel | -h )
cannam@140 16114 $as_echo "$ac_cs_usage"; exit ;;
cannam@140 16115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@140 16116 | -silent | --silent | --silen | --sile | --sil | --si | --s)
cannam@140 16117 ac_cs_silent=: ;;
cannam@140 16118
cannam@140 16119 # This is an error.
cannam@140 16120 -*) as_fn_error $? "unrecognized option: \`$1'
cannam@140 16121 Try \`$0 --help' for more information." ;;
cannam@140 16122
cannam@140 16123 *) as_fn_append ac_config_targets " $1"
cannam@140 16124 ac_need_defaults=false ;;
cannam@140 16125
cannam@140 16126 esac
cannam@140 16127 shift
cannam@140 16128 done
cannam@140 16129
cannam@140 16130 ac_configure_extra_args=
cannam@140 16131
cannam@140 16132 if $ac_cs_silent; then
cannam@140 16133 exec 6>/dev/null
cannam@140 16134 ac_configure_extra_args="$ac_configure_extra_args --silent"
cannam@140 16135 fi
cannam@140 16136
cannam@140 16137 _ACEOF
cannam@140 16138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@140 16139 if \$ac_cs_recheck; then
cannam@140 16140 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cannam@140 16141 shift
cannam@140 16142 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
cannam@140 16143 CONFIG_SHELL='$SHELL'
cannam@140 16144 export CONFIG_SHELL
cannam@140 16145 exec "\$@"
cannam@140 16146 fi
cannam@140 16147
cannam@140 16148 _ACEOF
cannam@140 16149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@140 16150 exec 5>>config.log
cannam@140 16151 {
cannam@140 16152 echo
cannam@140 16153 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
cannam@140 16154 ## Running $as_me. ##
cannam@140 16155 _ASBOX
cannam@140 16156 $as_echo "$ac_log"
cannam@140 16157 } >&5
cannam@140 16158
cannam@140 16159 _ACEOF
cannam@140 16160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@140 16161 #
cannam@140 16162 # INIT-COMMANDS
cannam@140 16163 #
cannam@140 16164 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
cannam@140 16165
cannam@140 16166
cannam@140 16167 # The HP-UX ksh and POSIX shell print the target directory to stdout
cannam@140 16168 # if CDPATH is set.
cannam@140 16169 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cannam@140 16170
cannam@140 16171 sed_quote_subst='$sed_quote_subst'
cannam@140 16172 double_quote_subst='$double_quote_subst'
cannam@140 16173 delay_variable_subst='$delay_variable_subst'
cannam@140 16174 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
cannam@140 16175 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
cannam@140 16176 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
cannam@140 16177 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
cannam@140 16178 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
cannam@140 16179 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
cannam@140 16180 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
cannam@140 16181 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
cannam@140 16182 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cannam@140 16183 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
cannam@140 16184 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
cannam@140 16185 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cannam@140 16186 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
cannam@140 16187 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
cannam@140 16188 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
cannam@140 16189 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
cannam@140 16190 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
cannam@140 16191 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
cannam@140 16192 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
cannam@140 16193 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
cannam@140 16194 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
cannam@140 16195 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
cannam@140 16196 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
cannam@140 16197 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
cannam@140 16198 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
cannam@140 16199 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
cannam@140 16200 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
cannam@140 16201 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
cannam@140 16202 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
cannam@140 16203 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
cannam@140 16204 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
cannam@140 16205 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cannam@140 16206 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
cannam@140 16207 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cannam@140 16208 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
cannam@140 16209 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
cannam@140 16210 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
cannam@140 16211 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cannam@140 16212 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
cannam@140 16213 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
cannam@140 16214 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cannam@140 16215 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
cannam@140 16216 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cannam@140 16217 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cannam@140 16218 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
cannam@140 16219 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
cannam@140 16220 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@140 16221 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@140 16222 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
cannam@140 16223 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
cannam@140 16224 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
cannam@140 16225 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
cannam@140 16226 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
cannam@140 16227 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
cannam@140 16228 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
cannam@140 16229 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
cannam@140 16230 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@140 16231 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@140 16232 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
cannam@140 16233 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cannam@140 16234 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
cannam@140 16235 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
cannam@140 16236 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cannam@140 16237 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cannam@140 16238 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cannam@140 16239 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
cannam@140 16240 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
cannam@140 16241 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cannam@140 16242 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cannam@140 16243 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
cannam@140 16244 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
cannam@140 16245 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
cannam@140 16246 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
cannam@140 16247 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
cannam@140 16248 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
cannam@140 16249 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
cannam@140 16250 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
cannam@140 16251 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
cannam@140 16252 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
cannam@140 16253 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
cannam@140 16254 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
cannam@140 16255 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
cannam@140 16256 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
cannam@140 16257 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
cannam@140 16258 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
cannam@140 16259 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
cannam@140 16260 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
cannam@140 16261 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
cannam@140 16262 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
cannam@140 16263 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
cannam@140 16264 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
cannam@140 16265 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cannam@140 16266 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
cannam@140 16267 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
cannam@140 16268 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
cannam@140 16269 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
cannam@140 16270 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
cannam@140 16271 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
cannam@140 16272 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
cannam@140 16273 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cannam@140 16274 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
cannam@140 16275 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
cannam@140 16276 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
cannam@140 16277 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
cannam@140 16278 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cannam@140 16279 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cannam@140 16280 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
cannam@140 16281 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
cannam@140 16282 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
cannam@140 16283 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
cannam@140 16284 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
cannam@140 16285 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
cannam@140 16286 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
cannam@140 16287 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
cannam@140 16288 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
cannam@140 16289 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
cannam@140 16290 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
cannam@140 16291 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
cannam@140 16292 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@140 16293 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@140 16294 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
cannam@140 16295 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
cannam@140 16296 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
cannam@140 16297 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
cannam@140 16298 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
cannam@140 16299 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
cannam@140 16300 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
cannam@140 16301 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
cannam@140 16302 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
cannam@140 16303 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
cannam@140 16304 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
cannam@140 16305 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
cannam@140 16306 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
cannam@140 16307 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
cannam@140 16308 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
cannam@140 16309 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
cannam@140 16310 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
cannam@140 16311 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16312 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16313 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16314 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16315 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16316 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16317 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16318 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16319 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16320 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16321 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16322 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16323 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16324 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16325 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16326 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16327 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16328 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16329 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16330 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16331 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16332 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16333 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16334 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16335 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16336 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16337 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16338 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16339 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16340 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16341 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16342 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16343 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16344 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16345 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16346 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16347 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16348 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16349 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16350 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16351 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16352 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16353 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16354 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16355 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16356 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16357 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16358 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cannam@140 16359
cannam@140 16360 LTCC='$LTCC'
cannam@140 16361 LTCFLAGS='$LTCFLAGS'
cannam@140 16362 compiler='$compiler_DEFAULT'
cannam@140 16363
cannam@140 16364 # A function that is used when there is no print builtin or printf.
cannam@140 16365 func_fallback_echo ()
cannam@140 16366 {
cannam@140 16367 eval 'cat <<_LTECHO_EOF
cannam@140 16368 \$1
cannam@140 16369 _LTECHO_EOF'
cannam@140 16370 }
cannam@140 16371
cannam@140 16372 # Quote evaled strings.
cannam@140 16373 for var in AS \
cannam@140 16374 DLLTOOL \
cannam@140 16375 OBJDUMP \
cannam@140 16376 SHELL \
cannam@140 16377 ECHO \
cannam@140 16378 PATH_SEPARATOR \
cannam@140 16379 SED \
cannam@140 16380 GREP \
cannam@140 16381 EGREP \
cannam@140 16382 FGREP \
cannam@140 16383 LD \
cannam@140 16384 NM \
cannam@140 16385 LN_S \
cannam@140 16386 lt_SP2NL \
cannam@140 16387 lt_NL2SP \
cannam@140 16388 reload_flag \
cannam@140 16389 deplibs_check_method \
cannam@140 16390 file_magic_cmd \
cannam@140 16391 file_magic_glob \
cannam@140 16392 want_nocaseglob \
cannam@140 16393 sharedlib_from_linklib_cmd \
cannam@140 16394 AR \
cannam@140 16395 AR_FLAGS \
cannam@140 16396 archiver_list_spec \
cannam@140 16397 STRIP \
cannam@140 16398 RANLIB \
cannam@140 16399 CC \
cannam@140 16400 CFLAGS \
cannam@140 16401 compiler \
cannam@140 16402 lt_cv_sys_global_symbol_pipe \
cannam@140 16403 lt_cv_sys_global_symbol_to_cdecl \
cannam@140 16404 lt_cv_sys_global_symbol_to_c_name_address \
cannam@140 16405 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cannam@140 16406 nm_file_list_spec \
cannam@140 16407 lt_prog_compiler_no_builtin_flag \
cannam@140 16408 lt_prog_compiler_pic \
cannam@140 16409 lt_prog_compiler_wl \
cannam@140 16410 lt_prog_compiler_static \
cannam@140 16411 lt_cv_prog_compiler_c_o \
cannam@140 16412 need_locks \
cannam@140 16413 MANIFEST_TOOL \
cannam@140 16414 DSYMUTIL \
cannam@140 16415 NMEDIT \
cannam@140 16416 LIPO \
cannam@140 16417 OTOOL \
cannam@140 16418 OTOOL64 \
cannam@140 16419 shrext_cmds \
cannam@140 16420 export_dynamic_flag_spec \
cannam@140 16421 whole_archive_flag_spec \
cannam@140 16422 compiler_needs_object \
cannam@140 16423 with_gnu_ld \
cannam@140 16424 allow_undefined_flag \
cannam@140 16425 no_undefined_flag \
cannam@140 16426 hardcode_libdir_flag_spec \
cannam@140 16427 hardcode_libdir_separator \
cannam@140 16428 exclude_expsyms \
cannam@140 16429 include_expsyms \
cannam@140 16430 file_list_spec \
cannam@140 16431 variables_saved_for_relink \
cannam@140 16432 libname_spec \
cannam@140 16433 library_names_spec \
cannam@140 16434 soname_spec \
cannam@140 16435 install_override_mode \
cannam@140 16436 finish_eval \
cannam@140 16437 old_striplib \
cannam@140 16438 striplib \
cannam@140 16439 compiler_lib_search_dirs \
cannam@140 16440 predep_objects \
cannam@140 16441 postdep_objects \
cannam@140 16442 predeps \
cannam@140 16443 postdeps \
cannam@140 16444 compiler_lib_search_path \
cannam@140 16445 LD_CXX \
cannam@140 16446 reload_flag_CXX \
cannam@140 16447 compiler_CXX \
cannam@140 16448 lt_prog_compiler_no_builtin_flag_CXX \
cannam@140 16449 lt_prog_compiler_pic_CXX \
cannam@140 16450 lt_prog_compiler_wl_CXX \
cannam@140 16451 lt_prog_compiler_static_CXX \
cannam@140 16452 lt_cv_prog_compiler_c_o_CXX \
cannam@140 16453 export_dynamic_flag_spec_CXX \
cannam@140 16454 whole_archive_flag_spec_CXX \
cannam@140 16455 compiler_needs_object_CXX \
cannam@140 16456 with_gnu_ld_CXX \
cannam@140 16457 allow_undefined_flag_CXX \
cannam@140 16458 no_undefined_flag_CXX \
cannam@140 16459 hardcode_libdir_flag_spec_CXX \
cannam@140 16460 hardcode_libdir_separator_CXX \
cannam@140 16461 exclude_expsyms_CXX \
cannam@140 16462 include_expsyms_CXX \
cannam@140 16463 file_list_spec_CXX \
cannam@140 16464 compiler_lib_search_dirs_CXX \
cannam@140 16465 predep_objects_CXX \
cannam@140 16466 postdep_objects_CXX \
cannam@140 16467 predeps_CXX \
cannam@140 16468 postdeps_CXX \
cannam@140 16469 compiler_lib_search_path_CXX; do
cannam@140 16470 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cannam@140 16471 *[\\\\\\\`\\"\\\$]*)
cannam@140 16472 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cannam@140 16473 ;;
cannam@140 16474 *)
cannam@140 16475 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
cannam@140 16476 ;;
cannam@140 16477 esac
cannam@140 16478 done
cannam@140 16479
cannam@140 16480 # Double-quote double-evaled strings.
cannam@140 16481 for var in reload_cmds \
cannam@140 16482 old_postinstall_cmds \
cannam@140 16483 old_postuninstall_cmds \
cannam@140 16484 old_archive_cmds \
cannam@140 16485 extract_expsyms_cmds \
cannam@140 16486 old_archive_from_new_cmds \
cannam@140 16487 old_archive_from_expsyms_cmds \
cannam@140 16488 archive_cmds \
cannam@140 16489 archive_expsym_cmds \
cannam@140 16490 module_cmds \
cannam@140 16491 module_expsym_cmds \
cannam@140 16492 export_symbols_cmds \
cannam@140 16493 prelink_cmds \
cannam@140 16494 postlink_cmds \
cannam@140 16495 postinstall_cmds \
cannam@140 16496 postuninstall_cmds \
cannam@140 16497 finish_cmds \
cannam@140 16498 sys_lib_search_path_spec \
cannam@140 16499 sys_lib_dlsearch_path_spec \
cannam@140 16500 reload_cmds_CXX \
cannam@140 16501 old_archive_cmds_CXX \
cannam@140 16502 old_archive_from_new_cmds_CXX \
cannam@140 16503 old_archive_from_expsyms_cmds_CXX \
cannam@140 16504 archive_cmds_CXX \
cannam@140 16505 archive_expsym_cmds_CXX \
cannam@140 16506 module_cmds_CXX \
cannam@140 16507 module_expsym_cmds_CXX \
cannam@140 16508 export_symbols_cmds_CXX \
cannam@140 16509 prelink_cmds_CXX \
cannam@140 16510 postlink_cmds_CXX; do
cannam@140 16511 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cannam@140 16512 *[\\\\\\\`\\"\\\$]*)
cannam@140 16513 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cannam@140 16514 ;;
cannam@140 16515 *)
cannam@140 16516 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
cannam@140 16517 ;;
cannam@140 16518 esac
cannam@140 16519 done
cannam@140 16520
cannam@140 16521 ac_aux_dir='$ac_aux_dir'
cannam@140 16522 xsi_shell='$xsi_shell'
cannam@140 16523 lt_shell_append='$lt_shell_append'
cannam@140 16524
cannam@140 16525 # See if we are running on zsh, and set the options which allow our
cannam@140 16526 # commands through without removal of \ escapes INIT.
cannam@140 16527 if test -n "\${ZSH_VERSION+set}" ; then
cannam@140 16528 setopt NO_GLOB_SUBST
cannam@140 16529 fi
cannam@140 16530
cannam@140 16531
cannam@140 16532 PACKAGE='$PACKAGE'
cannam@140 16533 VERSION='$VERSION'
cannam@140 16534 TIMESTAMP='$TIMESTAMP'
cannam@140 16535 RM='$RM'
cannam@140 16536 ofile='$ofile'
cannam@140 16537
cannam@140 16538
cannam@140 16539
cannam@140 16540
cannam@140 16541
cannam@140 16542
cannam@140 16543 _ACEOF
cannam@140 16544
cannam@140 16545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@140 16546
cannam@140 16547 # Handling of arguments.
cannam@140 16548 for ac_config_target in $ac_config_targets
cannam@140 16549 do
cannam@140 16550 case $ac_config_target in
cannam@140 16551 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
cannam@140 16552 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cannam@140 16553 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
cannam@140 16554 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
cannam@140 16555 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
cannam@140 16556 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
cannam@140 16557 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
cannam@140 16558 "portaudiocpp.pc") CONFIG_FILES="$CONFIG_FILES portaudiocpp.pc" ;;
cannam@140 16559
cannam@140 16560 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cannam@140 16561 esac
cannam@140 16562 done
cannam@140 16563
cannam@140 16564
cannam@140 16565 # If the user did not use the arguments to specify the items to instantiate,
cannam@140 16566 # then the envvar interface is used. Set only those that are not.
cannam@140 16567 # We use the long form for the default assignment because of an extremely
cannam@140 16568 # bizarre bug on SunOS 4.1.3.
cannam@140 16569 if $ac_need_defaults; then
cannam@140 16570 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
cannam@140 16571 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
cannam@140 16572 fi
cannam@140 16573
cannam@140 16574 # Have a temporary directory for convenience. Make it in the build tree
cannam@140 16575 # simply because there is no reason against having it here, and in addition,
cannam@140 16576 # creating and moving files from /tmp can sometimes cause problems.
cannam@140 16577 # Hook for its removal unless debugging.
cannam@140 16578 # Note that there is a small window in which the directory will not be cleaned:
cannam@140 16579 # after its creation but before its name has been assigned to `$tmp'.
cannam@140 16580 $debug ||
cannam@140 16581 {
cannam@140 16582 tmp= ac_tmp=
cannam@140 16583 trap 'exit_status=$?
cannam@140 16584 : "${ac_tmp:=$tmp}"
cannam@140 16585 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cannam@140 16586 ' 0
cannam@140 16587 trap 'as_fn_exit 1' 1 2 13 15
cannam@140 16588 }
cannam@140 16589 # Create a (secure) tmp directory for tmp files.
cannam@140 16590
cannam@140 16591 {
cannam@140 16592 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cannam@140 16593 test -d "$tmp"
cannam@140 16594 } ||
cannam@140 16595 {
cannam@140 16596 tmp=./conf$$-$RANDOM
cannam@140 16597 (umask 077 && mkdir "$tmp")
cannam@140 16598 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cannam@140 16599 ac_tmp=$tmp
cannam@140 16600
cannam@140 16601 # Set up the scripts for CONFIG_FILES section.
cannam@140 16602 # No need to generate them if there are no CONFIG_FILES.
cannam@140 16603 # This happens for instance with `./config.status config.h'.
cannam@140 16604 if test -n "$CONFIG_FILES"; then
cannam@140 16605
cannam@140 16606
cannam@140 16607 ac_cr=`echo X | tr X '\015'`
cannam@140 16608 # On cygwin, bash can eat \r inside `` if the user requested igncr.
cannam@140 16609 # But we know of no other shell where ac_cr would be empty at this
cannam@140 16610 # point, so we can use a bashism as a fallback.
cannam@140 16611 if test "x$ac_cr" = x; then
cannam@140 16612 eval ac_cr=\$\'\\r\'
cannam@140 16613 fi
cannam@140 16614 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
cannam@140 16615 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cannam@140 16616 ac_cs_awk_cr='\\r'
cannam@140 16617 else
cannam@140 16618 ac_cs_awk_cr=$ac_cr
cannam@140 16619 fi
cannam@140 16620
cannam@140 16621 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cannam@140 16622 _ACEOF
cannam@140 16623
cannam@140 16624
cannam@140 16625 {
cannam@140 16626 echo "cat >conf$$subs.awk <<_ACEOF" &&
cannam@140 16627 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
cannam@140 16628 echo "_ACEOF"
cannam@140 16629 } >conf$$subs.sh ||
cannam@140 16630 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cannam@140 16631 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cannam@140 16632 ac_delim='%!_!# '
cannam@140 16633 for ac_last_try in false false false false false :; do
cannam@140 16634 . ./conf$$subs.sh ||
cannam@140 16635 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cannam@140 16636
cannam@140 16637 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
cannam@140 16638 if test $ac_delim_n = $ac_delim_num; then
cannam@140 16639 break
cannam@140 16640 elif $ac_last_try; then
cannam@140 16641 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cannam@140 16642 else
cannam@140 16643 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
cannam@140 16644 fi
cannam@140 16645 done
cannam@140 16646 rm -f conf$$subs.sh
cannam@140 16647
cannam@140 16648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@140 16649 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cannam@140 16650 _ACEOF
cannam@140 16651 sed -n '
cannam@140 16652 h
cannam@140 16653 s/^/S["/; s/!.*/"]=/
cannam@140 16654 p
cannam@140 16655 g
cannam@140 16656 s/^[^!]*!//
cannam@140 16657 :repl
cannam@140 16658 t repl
cannam@140 16659 s/'"$ac_delim"'$//
cannam@140 16660 t delim
cannam@140 16661 :nl
cannam@140 16662 h
cannam@140 16663 s/\(.\{148\}\)..*/\1/
cannam@140 16664 t more1
cannam@140 16665 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
cannam@140 16666 p
cannam@140 16667 n
cannam@140 16668 b repl
cannam@140 16669 :more1
cannam@140 16670 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
cannam@140 16671 p
cannam@140 16672 g
cannam@140 16673 s/.\{148\}//
cannam@140 16674 t nl
cannam@140 16675 :delim
cannam@140 16676 h
cannam@140 16677 s/\(.\{148\}\)..*/\1/
cannam@140 16678 t more2
cannam@140 16679 s/["\\]/\\&/g; s/^/"/; s/$/"/
cannam@140 16680 p
cannam@140 16681 b
cannam@140 16682 :more2
cannam@140 16683 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
cannam@140 16684 p
cannam@140 16685 g
cannam@140 16686 s/.\{148\}//
cannam@140 16687 t delim
cannam@140 16688 ' <conf$$subs.awk | sed '
cannam@140 16689 /^[^""]/{
cannam@140 16690 N
cannam@140 16691 s/\n//
cannam@140 16692 }
cannam@140 16693 ' >>$CONFIG_STATUS || ac_write_fail=1
cannam@140 16694 rm -f conf$$subs.awk
cannam@140 16695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@140 16696 _ACAWK
cannam@140 16697 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cannam@140 16698 for (key in S) S_is_set[key] = 1
cannam@140 16699 FS = ""
cannam@140 16700
cannam@140 16701 }
cannam@140 16702 {
cannam@140 16703 line = $ 0
cannam@140 16704 nfields = split(line, field, "@")
cannam@140 16705 substed = 0
cannam@140 16706 len = length(field[1])
cannam@140 16707 for (i = 2; i < nfields; i++) {
cannam@140 16708 key = field[i]
cannam@140 16709 keylen = length(key)
cannam@140 16710 if (S_is_set[key]) {
cannam@140 16711 value = S[key]
cannam@140 16712 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
cannam@140 16713 len += length(value) + length(field[++i])
cannam@140 16714 substed = 1
cannam@140 16715 } else
cannam@140 16716 len += 1 + keylen
cannam@140 16717 }
cannam@140 16718
cannam@140 16719 print line
cannam@140 16720 }
cannam@140 16721
cannam@140 16722 _ACAWK
cannam@140 16723 _ACEOF
cannam@140 16724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@140 16725 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
cannam@140 16726 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
cannam@140 16727 else
cannam@140 16728 cat
cannam@140 16729 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cannam@140 16730 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cannam@140 16731 _ACEOF
cannam@140 16732
cannam@140 16733 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
cannam@140 16734 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cannam@140 16735 # trailing colons and then remove the whole line if VPATH becomes empty
cannam@140 16736 # (actually we leave an empty line to preserve line numbers).
cannam@140 16737 if test "x$srcdir" = x.; then
cannam@140 16738 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
cannam@140 16739 h
cannam@140 16740 s///
cannam@140 16741 s/^/:/
cannam@140 16742 s/[ ]*$/:/
cannam@140 16743 s/:\$(srcdir):/:/g
cannam@140 16744 s/:\${srcdir}:/:/g
cannam@140 16745 s/:@srcdir@:/:/g
cannam@140 16746 s/^:*//
cannam@140 16747 s/:*$//
cannam@140 16748 x
cannam@140 16749 s/\(=[ ]*\).*/\1/
cannam@140 16750 G
cannam@140 16751 s/\n//
cannam@140 16752 s/^[^=]*=[ ]*$//
cannam@140 16753 }'
cannam@140 16754 fi
cannam@140 16755
cannam@140 16756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@140 16757 fi # test -n "$CONFIG_FILES"
cannam@140 16758
cannam@140 16759
cannam@140 16760 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
cannam@140 16761 shift
cannam@140 16762 for ac_tag
cannam@140 16763 do
cannam@140 16764 case $ac_tag in
cannam@140 16765 :[FHLC]) ac_mode=$ac_tag; continue;;
cannam@140 16766 esac
cannam@140 16767 case $ac_mode$ac_tag in
cannam@140 16768 :[FHL]*:*);;
cannam@140 16769 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cannam@140 16770 :[FH]-) ac_tag=-:-;;
cannam@140 16771 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
cannam@140 16772 esac
cannam@140 16773 ac_save_IFS=$IFS
cannam@140 16774 IFS=:
cannam@140 16775 set x $ac_tag
cannam@140 16776 IFS=$ac_save_IFS
cannam@140 16777 shift
cannam@140 16778 ac_file=$1
cannam@140 16779 shift
cannam@140 16780
cannam@140 16781 case $ac_mode in
cannam@140 16782 :L) ac_source=$1;;
cannam@140 16783 :[FH])
cannam@140 16784 ac_file_inputs=
cannam@140 16785 for ac_f
cannam@140 16786 do
cannam@140 16787 case $ac_f in
cannam@140 16788 -) ac_f="$ac_tmp/stdin";;
cannam@140 16789 *) # Look for the file first in the build tree, then in the source tree
cannam@140 16790 # (if the path is not absolute). The absolute path cannot be DOS-style,
cannam@140 16791 # because $ac_f cannot contain `:'.
cannam@140 16792 test -f "$ac_f" ||
cannam@140 16793 case $ac_f in
cannam@140 16794 [\\/$]*) false;;
cannam@140 16795 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
cannam@140 16796 esac ||
cannam@140 16797 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cannam@140 16798 esac
cannam@140 16799 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cannam@140 16800 as_fn_append ac_file_inputs " '$ac_f'"
cannam@140 16801 done
cannam@140 16802
cannam@140 16803 # Let's still pretend it is `configure' which instantiates (i.e., don't
cannam@140 16804 # use $as_me), people would be surprised to read:
cannam@140 16805 # /* config.h. Generated by config.status. */
cannam@140 16806 configure_input='Generated from '`
cannam@140 16807 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
cannam@140 16808 `' by configure.'
cannam@140 16809 if test x"$ac_file" != x-; then
cannam@140 16810 configure_input="$ac_file. $configure_input"
cannam@140 16811 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cannam@140 16812 $as_echo "$as_me: creating $ac_file" >&6;}
cannam@140 16813 fi
cannam@140 16814 # Neutralize special characters interpreted by sed in replacement strings.
cannam@140 16815 case $configure_input in #(
cannam@140 16816 *\&* | *\|* | *\\* )
cannam@140 16817 ac_sed_conf_input=`$as_echo "$configure_input" |
cannam@140 16818 sed 's/[\\\\&|]/\\\\&/g'`;; #(
cannam@140 16819 *) ac_sed_conf_input=$configure_input;;
cannam@140 16820 esac
cannam@140 16821
cannam@140 16822 case $ac_tag in
cannam@140 16823 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cannam@140 16824 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cannam@140 16825 esac
cannam@140 16826 ;;
cannam@140 16827 esac
cannam@140 16828
cannam@140 16829 ac_dir=`$as_dirname -- "$ac_file" ||
cannam@140 16830 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@140 16831 X"$ac_file" : 'X\(//\)[^/]' \| \
cannam@140 16832 X"$ac_file" : 'X\(//\)$' \| \
cannam@140 16833 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
cannam@140 16834 $as_echo X"$ac_file" |
cannam@140 16835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@140 16836 s//\1/
cannam@140 16837 q
cannam@140 16838 }
cannam@140 16839 /^X\(\/\/\)[^/].*/{
cannam@140 16840 s//\1/
cannam@140 16841 q
cannam@140 16842 }
cannam@140 16843 /^X\(\/\/\)$/{
cannam@140 16844 s//\1/
cannam@140 16845 q
cannam@140 16846 }
cannam@140 16847 /^X\(\/\).*/{
cannam@140 16848 s//\1/
cannam@140 16849 q
cannam@140 16850 }
cannam@140 16851 s/.*/./; q'`
cannam@140 16852 as_dir="$ac_dir"; as_fn_mkdir_p
cannam@140 16853 ac_builddir=.
cannam@140 16854
cannam@140 16855 case "$ac_dir" in
cannam@140 16856 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@140 16857 *)
cannam@140 16858 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
cannam@140 16859 # A ".." for each directory in $ac_dir_suffix.
cannam@140 16860 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
cannam@140 16861 case $ac_top_builddir_sub in
cannam@140 16862 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@140 16863 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
cannam@140 16864 esac ;;
cannam@140 16865 esac
cannam@140 16866 ac_abs_top_builddir=$ac_pwd
cannam@140 16867 ac_abs_builddir=$ac_pwd$ac_dir_suffix
cannam@140 16868 # for backward compatibility:
cannam@140 16869 ac_top_builddir=$ac_top_build_prefix
cannam@140 16870
cannam@140 16871 case $srcdir in
cannam@140 16872 .) # We are building in place.
cannam@140 16873 ac_srcdir=.
cannam@140 16874 ac_top_srcdir=$ac_top_builddir_sub
cannam@140 16875 ac_abs_top_srcdir=$ac_pwd ;;
cannam@140 16876 [\\/]* | ?:[\\/]* ) # Absolute name.
cannam@140 16877 ac_srcdir=$srcdir$ac_dir_suffix;
cannam@140 16878 ac_top_srcdir=$srcdir
cannam@140 16879 ac_abs_top_srcdir=$srcdir ;;
cannam@140 16880 *) # Relative name.
cannam@140 16881 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
cannam@140 16882 ac_top_srcdir=$ac_top_build_prefix$srcdir
cannam@140 16883 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
cannam@140 16884 esac
cannam@140 16885 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
cannam@140 16886
cannam@140 16887
cannam@140 16888 case $ac_mode in
cannam@140 16889 :F)
cannam@140 16890 #
cannam@140 16891 # CONFIG_FILE
cannam@140 16892 #
cannam@140 16893
cannam@140 16894 case $INSTALL in
cannam@140 16895 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cannam@140 16896 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
cannam@140 16897 esac
cannam@140 16898 ac_MKDIR_P=$MKDIR_P
cannam@140 16899 case $MKDIR_P in
cannam@140 16900 [\\/$]* | ?:[\\/]* ) ;;
cannam@140 16901 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
cannam@140 16902 esac
cannam@140 16903 _ACEOF
cannam@140 16904
cannam@140 16905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@140 16906 # If the template does not know about datarootdir, expand it.
cannam@140 16907 # FIXME: This hack should be removed a few years after 2.60.
cannam@140 16908 ac_datarootdir_hack=; ac_datarootdir_seen=
cannam@140 16909 ac_sed_dataroot='
cannam@140 16910 /datarootdir/ {
cannam@140 16911 p
cannam@140 16912 q
cannam@140 16913 }
cannam@140 16914 /@datadir@/p
cannam@140 16915 /@docdir@/p
cannam@140 16916 /@infodir@/p
cannam@140 16917 /@localedir@/p
cannam@140 16918 /@mandir@/p'
cannam@140 16919 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
cannam@140 16920 *datarootdir*) ac_datarootdir_seen=yes;;
cannam@140 16921 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cannam@140 16922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cannam@140 16923 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
cannam@140 16924 _ACEOF
cannam@140 16925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@140 16926 ac_datarootdir_hack='
cannam@140 16927 s&@datadir@&$datadir&g
cannam@140 16928 s&@docdir@&$docdir&g
cannam@140 16929 s&@infodir@&$infodir&g
cannam@140 16930 s&@localedir@&$localedir&g
cannam@140 16931 s&@mandir@&$mandir&g
cannam@140 16932 s&\\\${datarootdir}&$datarootdir&g' ;;
cannam@140 16933 esac
cannam@140 16934 _ACEOF
cannam@140 16935
cannam@140 16936 # Neutralize VPATH when `$srcdir' = `.'.
cannam@140 16937 # Shell code in configure.ac might set extrasub.
cannam@140 16938 # FIXME: do we really want to maintain this feature?
cannam@140 16939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@140 16940 ac_sed_extra="$ac_vpsub
cannam@140 16941 $extrasub
cannam@140 16942 _ACEOF
cannam@140 16943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@140 16944 :t
cannam@140 16945 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
cannam@140 16946 s|@configure_input@|$ac_sed_conf_input|;t t
cannam@140 16947 s&@top_builddir@&$ac_top_builddir_sub&;t t
cannam@140 16948 s&@top_build_prefix@&$ac_top_build_prefix&;t t
cannam@140 16949 s&@srcdir@&$ac_srcdir&;t t
cannam@140 16950 s&@abs_srcdir@&$ac_abs_srcdir&;t t
cannam@140 16951 s&@top_srcdir@&$ac_top_srcdir&;t t
cannam@140 16952 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
cannam@140 16953 s&@builddir@&$ac_builddir&;t t
cannam@140 16954 s&@abs_builddir@&$ac_abs_builddir&;t t
cannam@140 16955 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
cannam@140 16956 s&@INSTALL@&$ac_INSTALL&;t t
cannam@140 16957 s&@MKDIR_P@&$ac_MKDIR_P&;t t
cannam@140 16958 $ac_datarootdir_hack
cannam@140 16959 "
cannam@140 16960 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
cannam@140 16961 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@140 16962
cannam@140 16963 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cannam@140 16964 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
cannam@140 16965 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
cannam@140 16966 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cannam@140 16967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cannam@140 16968 which seems to be undefined. Please make sure it is defined" >&5
cannam@140 16969 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cannam@140 16970 which seems to be undefined. Please make sure it is defined" >&2;}
cannam@140 16971
cannam@140 16972 rm -f "$ac_tmp/stdin"
cannam@140 16973 case $ac_file in
cannam@140 16974 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
cannam@140 16975 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cannam@140 16976 esac \
cannam@140 16977 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@140 16978 ;;
cannam@140 16979
cannam@140 16980
cannam@140 16981 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cannam@140 16982 $as_echo "$as_me: executing $ac_file commands" >&6;}
cannam@140 16983 ;;
cannam@140 16984 esac
cannam@140 16985
cannam@140 16986
cannam@140 16987 case $ac_file$ac_mode in
cannam@140 16988 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cannam@140 16989 # Older Autoconf quotes --file arguments for eval, but not when files
cannam@140 16990 # are listed without --file. Let's play safe and only enable the eval
cannam@140 16991 # if we detect the quoting.
cannam@140 16992 case $CONFIG_FILES in
cannam@140 16993 *\'*) eval set x "$CONFIG_FILES" ;;
cannam@140 16994 *) set x $CONFIG_FILES ;;
cannam@140 16995 esac
cannam@140 16996 shift
cannam@140 16997 for mf
cannam@140 16998 do
cannam@140 16999 # Strip MF so we end up with the name of the file.
cannam@140 17000 mf=`echo "$mf" | sed -e 's/:.*$//'`
cannam@140 17001 # Check whether this is an Automake generated Makefile or not.
cannam@140 17002 # We used to match only the files named 'Makefile.in', but
cannam@140 17003 # some people rename them; so instead we look at the file content.
cannam@140 17004 # Grep'ing the first line is not enough: some people post-process
cannam@140 17005 # each Makefile.in and add a new line on top of each file to say so.
cannam@140 17006 # Grep'ing the whole file is not good either: AIX grep has a line
cannam@140 17007 # limit of 2048, but all sed's we know have understand at least 4000.
cannam@140 17008 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
cannam@140 17009 dirpart=`$as_dirname -- "$mf" ||
cannam@140 17010 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@140 17011 X"$mf" : 'X\(//\)[^/]' \| \
cannam@140 17012 X"$mf" : 'X\(//\)$' \| \
cannam@140 17013 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
cannam@140 17014 $as_echo X"$mf" |
cannam@140 17015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@140 17016 s//\1/
cannam@140 17017 q
cannam@140 17018 }
cannam@140 17019 /^X\(\/\/\)[^/].*/{
cannam@140 17020 s//\1/
cannam@140 17021 q
cannam@140 17022 }
cannam@140 17023 /^X\(\/\/\)$/{
cannam@140 17024 s//\1/
cannam@140 17025 q
cannam@140 17026 }
cannam@140 17027 /^X\(\/\).*/{
cannam@140 17028 s//\1/
cannam@140 17029 q
cannam@140 17030 }
cannam@140 17031 s/.*/./; q'`
cannam@140 17032 else
cannam@140 17033 continue
cannam@140 17034 fi
cannam@140 17035 # Extract the definition of DEPDIR, am__include, and am__quote
cannam@140 17036 # from the Makefile without running 'make'.
cannam@140 17037 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
cannam@140 17038 test -z "$DEPDIR" && continue
cannam@140 17039 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cannam@140 17040 test -z "$am__include" && continue
cannam@140 17041 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cannam@140 17042 # Find all dependency output files, they are included files with
cannam@140 17043 # $(DEPDIR) in their names. We invoke sed twice because it is the
cannam@140 17044 # simplest approach to changing $(DEPDIR) to its actual value in the
cannam@140 17045 # expansion.
cannam@140 17046 for file in `sed -n "
cannam@140 17047 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cannam@140 17048 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cannam@140 17049 # Make sure the directory exists.
cannam@140 17050 test -f "$dirpart/$file" && continue
cannam@140 17051 fdir=`$as_dirname -- "$file" ||
cannam@140 17052 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@140 17053 X"$file" : 'X\(//\)[^/]' \| \
cannam@140 17054 X"$file" : 'X\(//\)$' \| \
cannam@140 17055 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
cannam@140 17056 $as_echo X"$file" |
cannam@140 17057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@140 17058 s//\1/
cannam@140 17059 q
cannam@140 17060 }
cannam@140 17061 /^X\(\/\/\)[^/].*/{
cannam@140 17062 s//\1/
cannam@140 17063 q
cannam@140 17064 }
cannam@140 17065 /^X\(\/\/\)$/{
cannam@140 17066 s//\1/
cannam@140 17067 q
cannam@140 17068 }
cannam@140 17069 /^X\(\/\).*/{
cannam@140 17070 s//\1/
cannam@140 17071 q
cannam@140 17072 }
cannam@140 17073 s/.*/./; q'`
cannam@140 17074 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cannam@140 17075 # echo "creating $dirpart/$file"
cannam@140 17076 echo '# dummy' > "$dirpart/$file"
cannam@140 17077 done
cannam@140 17078 done
cannam@140 17079 }
cannam@140 17080 ;;
cannam@140 17081 "libtool":C)
cannam@140 17082
cannam@140 17083 # See if we are running on zsh, and set the options which allow our
cannam@140 17084 # commands through without removal of \ escapes.
cannam@140 17085 if test -n "${ZSH_VERSION+set}" ; then
cannam@140 17086 setopt NO_GLOB_SUBST
cannam@140 17087 fi
cannam@140 17088
cannam@140 17089 cfgfile="${ofile}T"
cannam@140 17090 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
cannam@140 17091 $RM "$cfgfile"
cannam@140 17092
cannam@140 17093 cat <<_LT_EOF >> "$cfgfile"
cannam@140 17094 #! $SHELL
cannam@140 17095
cannam@140 17096 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
cannam@140 17097 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
cannam@140 17098 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
cannam@140 17099 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
cannam@140 17100 #
cannam@140 17101 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cannam@140 17102 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
cannam@140 17103 # Foundation, Inc.
cannam@140 17104 # Written by Gordon Matzigkeit, 1996
cannam@140 17105 #
cannam@140 17106 # This file is part of GNU Libtool.
cannam@140 17107 #
cannam@140 17108 # GNU Libtool is free software; you can redistribute it and/or
cannam@140 17109 # modify it under the terms of the GNU General Public License as
cannam@140 17110 # published by the Free Software Foundation; either version 2 of
cannam@140 17111 # the License, or (at your option) any later version.
cannam@140 17112 #
cannam@140 17113 # As a special exception to the GNU General Public License,
cannam@140 17114 # if you distribute this file as part of a program or library that
cannam@140 17115 # is built using GNU Libtool, you may include this file under the
cannam@140 17116 # same distribution terms that you use for the rest of that program.
cannam@140 17117 #
cannam@140 17118 # GNU Libtool is distributed in the hope that it will be useful,
cannam@140 17119 # but WITHOUT ANY WARRANTY; without even the implied warranty of
cannam@140 17120 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cannam@140 17121 # GNU General Public License for more details.
cannam@140 17122 #
cannam@140 17123 # You should have received a copy of the GNU General Public License
cannam@140 17124 # along with GNU Libtool; see the file COPYING. If not, a copy
cannam@140 17125 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
cannam@140 17126 # obtained by writing to the Free Software Foundation, Inc.,
cannam@140 17127 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
cannam@140 17128
cannam@140 17129
cannam@140 17130 # The names of the tagged configurations supported by this script.
cannam@140 17131 available_tags="CXX "
cannam@140 17132
cannam@140 17133 # ### BEGIN LIBTOOL CONFIG
cannam@140 17134
cannam@140 17135 # Assembler program.
cannam@140 17136 AS=$lt_AS
cannam@140 17137
cannam@140 17138 # DLL creation program.
cannam@140 17139 DLLTOOL=$lt_DLLTOOL
cannam@140 17140
cannam@140 17141 # Object dumper program.
cannam@140 17142 OBJDUMP=$lt_OBJDUMP
cannam@140 17143
cannam@140 17144 # Which release of libtool.m4 was used?
cannam@140 17145 macro_version=$macro_version
cannam@140 17146 macro_revision=$macro_revision
cannam@140 17147
cannam@140 17148 # Whether or not to build shared libraries.
cannam@140 17149 build_libtool_libs=$enable_shared
cannam@140 17150
cannam@140 17151 # Whether or not to build static libraries.
cannam@140 17152 build_old_libs=$enable_static
cannam@140 17153
cannam@140 17154 # What type of objects to build.
cannam@140 17155 pic_mode=$pic_mode
cannam@140 17156
cannam@140 17157 # Whether or not to optimize for fast installation.
cannam@140 17158 fast_install=$enable_fast_install
cannam@140 17159
cannam@140 17160 # Shell to use when invoking shell scripts.
cannam@140 17161 SHELL=$lt_SHELL
cannam@140 17162
cannam@140 17163 # An echo program that protects backslashes.
cannam@140 17164 ECHO=$lt_ECHO
cannam@140 17165
cannam@140 17166 # The PATH separator for the build system.
cannam@140 17167 PATH_SEPARATOR=$lt_PATH_SEPARATOR
cannam@140 17168
cannam@140 17169 # The host system.
cannam@140 17170 host_alias=$host_alias
cannam@140 17171 host=$host
cannam@140 17172 host_os=$host_os
cannam@140 17173
cannam@140 17174 # The build system.
cannam@140 17175 build_alias=$build_alias
cannam@140 17176 build=$build
cannam@140 17177 build_os=$build_os
cannam@140 17178
cannam@140 17179 # A sed program that does not truncate output.
cannam@140 17180 SED=$lt_SED
cannam@140 17181
cannam@140 17182 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
cannam@140 17183 Xsed="\$SED -e 1s/^X//"
cannam@140 17184
cannam@140 17185 # A grep program that handles long lines.
cannam@140 17186 GREP=$lt_GREP
cannam@140 17187
cannam@140 17188 # An ERE matcher.
cannam@140 17189 EGREP=$lt_EGREP
cannam@140 17190
cannam@140 17191 # A literal string matcher.
cannam@140 17192 FGREP=$lt_FGREP
cannam@140 17193
cannam@140 17194 # A BSD- or MS-compatible name lister.
cannam@140 17195 NM=$lt_NM
cannam@140 17196
cannam@140 17197 # Whether we need soft or hard links.
cannam@140 17198 LN_S=$lt_LN_S
cannam@140 17199
cannam@140 17200 # What is the maximum length of a command?
cannam@140 17201 max_cmd_len=$max_cmd_len
cannam@140 17202
cannam@140 17203 # Object file suffix (normally "o").
cannam@140 17204 objext=$ac_objext
cannam@140 17205
cannam@140 17206 # Executable file suffix (normally "").
cannam@140 17207 exeext=$exeext
cannam@140 17208
cannam@140 17209 # whether the shell understands "unset".
cannam@140 17210 lt_unset=$lt_unset
cannam@140 17211
cannam@140 17212 # turn spaces into newlines.
cannam@140 17213 SP2NL=$lt_lt_SP2NL
cannam@140 17214
cannam@140 17215 # turn newlines into spaces.
cannam@140 17216 NL2SP=$lt_lt_NL2SP
cannam@140 17217
cannam@140 17218 # convert \$build file names to \$host format.
cannam@140 17219 to_host_file_cmd=$lt_cv_to_host_file_cmd
cannam@140 17220
cannam@140 17221 # convert \$build files to toolchain format.
cannam@140 17222 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
cannam@140 17223
cannam@140 17224 # Method to check whether dependent libraries are shared objects.
cannam@140 17225 deplibs_check_method=$lt_deplibs_check_method
cannam@140 17226
cannam@140 17227 # Command to use when deplibs_check_method = "file_magic".
cannam@140 17228 file_magic_cmd=$lt_file_magic_cmd
cannam@140 17229
cannam@140 17230 # How to find potential files when deplibs_check_method = "file_magic".
cannam@140 17231 file_magic_glob=$lt_file_magic_glob
cannam@140 17232
cannam@140 17233 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
cannam@140 17234 want_nocaseglob=$lt_want_nocaseglob
cannam@140 17235
cannam@140 17236 # Command to associate shared and link libraries.
cannam@140 17237 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
cannam@140 17238
cannam@140 17239 # The archiver.
cannam@140 17240 AR=$lt_AR
cannam@140 17241
cannam@140 17242 # Flags to create an archive.
cannam@140 17243 AR_FLAGS=$lt_AR_FLAGS
cannam@140 17244
cannam@140 17245 # How to feed a file listing to the archiver.
cannam@140 17246 archiver_list_spec=$lt_archiver_list_spec
cannam@140 17247
cannam@140 17248 # A symbol stripping program.
cannam@140 17249 STRIP=$lt_STRIP
cannam@140 17250
cannam@140 17251 # Commands used to install an old-style archive.
cannam@140 17252 RANLIB=$lt_RANLIB
cannam@140 17253 old_postinstall_cmds=$lt_old_postinstall_cmds
cannam@140 17254 old_postuninstall_cmds=$lt_old_postuninstall_cmds
cannam@140 17255
cannam@140 17256 # Whether to use a lock for old archive extraction.
cannam@140 17257 lock_old_archive_extraction=$lock_old_archive_extraction
cannam@140 17258
cannam@140 17259 # A C compiler.
cannam@140 17260 LTCC=$lt_CC
cannam@140 17261
cannam@140 17262 # LTCC compiler flags.
cannam@140 17263 LTCFLAGS=$lt_CFLAGS
cannam@140 17264
cannam@140 17265 # Take the output of nm and produce a listing of raw symbols and C names.
cannam@140 17266 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
cannam@140 17267
cannam@140 17268 # Transform the output of nm in a proper C declaration.
cannam@140 17269 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
cannam@140 17270
cannam@140 17271 # Transform the output of nm in a C name address pair.
cannam@140 17272 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
cannam@140 17273
cannam@140 17274 # Transform the output of nm in a C name address pair when lib prefix is needed.
cannam@140 17275 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
cannam@140 17276
cannam@140 17277 # Specify filename containing input files for \$NM.
cannam@140 17278 nm_file_list_spec=$lt_nm_file_list_spec
cannam@140 17279
cannam@140 17280 # The root where to search for dependent libraries,and in which our libraries should be installed.
cannam@140 17281 lt_sysroot=$lt_sysroot
cannam@140 17282
cannam@140 17283 # The name of the directory that contains temporary libtool files.
cannam@140 17284 objdir=$objdir
cannam@140 17285
cannam@140 17286 # Used to examine libraries when file_magic_cmd begins with "file".
cannam@140 17287 MAGIC_CMD=$MAGIC_CMD
cannam@140 17288
cannam@140 17289 # Must we lock files when doing compilation?
cannam@140 17290 need_locks=$lt_need_locks
cannam@140 17291
cannam@140 17292 # Manifest tool.
cannam@140 17293 MANIFEST_TOOL=$lt_MANIFEST_TOOL
cannam@140 17294
cannam@140 17295 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
cannam@140 17296 DSYMUTIL=$lt_DSYMUTIL
cannam@140 17297
cannam@140 17298 # Tool to change global to local symbols on Mac OS X.
cannam@140 17299 NMEDIT=$lt_NMEDIT
cannam@140 17300
cannam@140 17301 # Tool to manipulate fat objects and archives on Mac OS X.
cannam@140 17302 LIPO=$lt_LIPO
cannam@140 17303
cannam@140 17304 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
cannam@140 17305 OTOOL=$lt_OTOOL
cannam@140 17306
cannam@140 17307 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
cannam@140 17308 OTOOL64=$lt_OTOOL64
cannam@140 17309
cannam@140 17310 # Old archive suffix (normally "a").
cannam@140 17311 libext=$libext
cannam@140 17312
cannam@140 17313 # Shared library suffix (normally ".so").
cannam@140 17314 shrext_cmds=$lt_shrext_cmds
cannam@140 17315
cannam@140 17316 # The commands to extract the exported symbol list from a shared archive.
cannam@140 17317 extract_expsyms_cmds=$lt_extract_expsyms_cmds
cannam@140 17318
cannam@140 17319 # Variables whose values should be saved in libtool wrapper scripts and
cannam@140 17320 # restored at link time.
cannam@140 17321 variables_saved_for_relink=$lt_variables_saved_for_relink
cannam@140 17322
cannam@140 17323 # Do we need the "lib" prefix for modules?
cannam@140 17324 need_lib_prefix=$need_lib_prefix
cannam@140 17325
cannam@140 17326 # Do we need a version for libraries?
cannam@140 17327 need_version=$need_version
cannam@140 17328
cannam@140 17329 # Library versioning type.
cannam@140 17330 version_type=$version_type
cannam@140 17331
cannam@140 17332 # Shared library runtime path variable.
cannam@140 17333 runpath_var=$runpath_var
cannam@140 17334
cannam@140 17335 # Shared library path variable.
cannam@140 17336 shlibpath_var=$shlibpath_var
cannam@140 17337
cannam@140 17338 # Is shlibpath searched before the hard-coded library search path?
cannam@140 17339 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
cannam@140 17340
cannam@140 17341 # Format of library name prefix.
cannam@140 17342 libname_spec=$lt_libname_spec
cannam@140 17343
cannam@140 17344 # List of archive names. First name is the real one, the rest are links.
cannam@140 17345 # The last name is the one that the linker finds with -lNAME
cannam@140 17346 library_names_spec=$lt_library_names_spec
cannam@140 17347
cannam@140 17348 # The coded name of the library, if different from the real name.
cannam@140 17349 soname_spec=$lt_soname_spec
cannam@140 17350
cannam@140 17351 # Permission mode override for installation of shared libraries.
cannam@140 17352 install_override_mode=$lt_install_override_mode
cannam@140 17353
cannam@140 17354 # Command to use after installation of a shared archive.
cannam@140 17355 postinstall_cmds=$lt_postinstall_cmds
cannam@140 17356
cannam@140 17357 # Command to use after uninstallation of a shared archive.
cannam@140 17358 postuninstall_cmds=$lt_postuninstall_cmds
cannam@140 17359
cannam@140 17360 # Commands used to finish a libtool library installation in a directory.
cannam@140 17361 finish_cmds=$lt_finish_cmds
cannam@140 17362
cannam@140 17363 # As "finish_cmds", except a single script fragment to be evaled but
cannam@140 17364 # not shown.
cannam@140 17365 finish_eval=$lt_finish_eval
cannam@140 17366
cannam@140 17367 # Whether we should hardcode library paths into libraries.
cannam@140 17368 hardcode_into_libs=$hardcode_into_libs
cannam@140 17369
cannam@140 17370 # Compile-time system search path for libraries.
cannam@140 17371 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
cannam@140 17372
cannam@140 17373 # Run-time system search path for libraries.
cannam@140 17374 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
cannam@140 17375
cannam@140 17376 # Whether dlopen is supported.
cannam@140 17377 dlopen_support=$enable_dlopen
cannam@140 17378
cannam@140 17379 # Whether dlopen of programs is supported.
cannam@140 17380 dlopen_self=$enable_dlopen_self
cannam@140 17381
cannam@140 17382 # Whether dlopen of statically linked programs is supported.
cannam@140 17383 dlopen_self_static=$enable_dlopen_self_static
cannam@140 17384
cannam@140 17385 # Commands to strip libraries.
cannam@140 17386 old_striplib=$lt_old_striplib
cannam@140 17387 striplib=$lt_striplib
cannam@140 17388
cannam@140 17389
cannam@140 17390 # The linker used to build libraries.
cannam@140 17391 LD=$lt_LD
cannam@140 17392
cannam@140 17393 # How to create reloadable object files.
cannam@140 17394 reload_flag=$lt_reload_flag
cannam@140 17395 reload_cmds=$lt_reload_cmds
cannam@140 17396
cannam@140 17397 # Commands used to build an old-style archive.
cannam@140 17398 old_archive_cmds=$lt_old_archive_cmds
cannam@140 17399
cannam@140 17400 # A language specific compiler.
cannam@140 17401 CC=$lt_compiler
cannam@140 17402
cannam@140 17403 # Is the compiler the GNU compiler?
cannam@140 17404 with_gcc=$GCC
cannam@140 17405
cannam@140 17406 # Compiler flag to turn off builtin functions.
cannam@140 17407 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
cannam@140 17408
cannam@140 17409 # Additional compiler flags for building library objects.
cannam@140 17410 pic_flag=$lt_lt_prog_compiler_pic
cannam@140 17411
cannam@140 17412 # How to pass a linker flag through the compiler.
cannam@140 17413 wl=$lt_lt_prog_compiler_wl
cannam@140 17414
cannam@140 17415 # Compiler flag to prevent dynamic linking.
cannam@140 17416 link_static_flag=$lt_lt_prog_compiler_static
cannam@140 17417
cannam@140 17418 # Does compiler simultaneously support -c and -o options?
cannam@140 17419 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
cannam@140 17420
cannam@140 17421 # Whether or not to add -lc for building shared libraries.
cannam@140 17422 build_libtool_need_lc=$archive_cmds_need_lc
cannam@140 17423
cannam@140 17424 # Whether or not to disallow shared libs when runtime libs are static.
cannam@140 17425 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
cannam@140 17426
cannam@140 17427 # Compiler flag to allow reflexive dlopens.
cannam@140 17428 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
cannam@140 17429
cannam@140 17430 # Compiler flag to generate shared objects directly from archives.
cannam@140 17431 whole_archive_flag_spec=$lt_whole_archive_flag_spec
cannam@140 17432
cannam@140 17433 # Whether the compiler copes with passing no objects directly.
cannam@140 17434 compiler_needs_object=$lt_compiler_needs_object
cannam@140 17435
cannam@140 17436 # Create an old-style archive from a shared archive.
cannam@140 17437 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
cannam@140 17438
cannam@140 17439 # Create a temporary old-style archive to link instead of a shared archive.
cannam@140 17440 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
cannam@140 17441
cannam@140 17442 # Commands used to build a shared archive.
cannam@140 17443 archive_cmds=$lt_archive_cmds
cannam@140 17444 archive_expsym_cmds=$lt_archive_expsym_cmds
cannam@140 17445
cannam@140 17446 # Commands used to build a loadable module if different from building
cannam@140 17447 # a shared archive.
cannam@140 17448 module_cmds=$lt_module_cmds
cannam@140 17449 module_expsym_cmds=$lt_module_expsym_cmds
cannam@140 17450
cannam@140 17451 # Whether we are building with GNU ld or not.
cannam@140 17452 with_gnu_ld=$lt_with_gnu_ld
cannam@140 17453
cannam@140 17454 # Flag that allows shared libraries with undefined symbols to be built.
cannam@140 17455 allow_undefined_flag=$lt_allow_undefined_flag
cannam@140 17456
cannam@140 17457 # Flag that enforces no undefined symbols.
cannam@140 17458 no_undefined_flag=$lt_no_undefined_flag
cannam@140 17459
cannam@140 17460 # Flag to hardcode \$libdir into a binary during linking.
cannam@140 17461 # This must work even if \$libdir does not exist
cannam@140 17462 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
cannam@140 17463
cannam@140 17464 # Whether we need a single "-rpath" flag with a separated argument.
cannam@140 17465 hardcode_libdir_separator=$lt_hardcode_libdir_separator
cannam@140 17466
cannam@140 17467 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
cannam@140 17468 # DIR into the resulting binary.
cannam@140 17469 hardcode_direct=$hardcode_direct
cannam@140 17470
cannam@140 17471 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
cannam@140 17472 # DIR into the resulting binary and the resulting library dependency is
cannam@140 17473 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
cannam@140 17474 # library is relocated.
cannam@140 17475 hardcode_direct_absolute=$hardcode_direct_absolute
cannam@140 17476
cannam@140 17477 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
cannam@140 17478 # into the resulting binary.
cannam@140 17479 hardcode_minus_L=$hardcode_minus_L
cannam@140 17480
cannam@140 17481 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
cannam@140 17482 # into the resulting binary.
cannam@140 17483 hardcode_shlibpath_var=$hardcode_shlibpath_var
cannam@140 17484
cannam@140 17485 # Set to "yes" if building a shared library automatically hardcodes DIR
cannam@140 17486 # into the library and all subsequent libraries and executables linked
cannam@140 17487 # against it.
cannam@140 17488 hardcode_automatic=$hardcode_automatic
cannam@140 17489
cannam@140 17490 # Set to yes if linker adds runtime paths of dependent libraries
cannam@140 17491 # to runtime path list.
cannam@140 17492 inherit_rpath=$inherit_rpath
cannam@140 17493
cannam@140 17494 # Whether libtool must link a program against all its dependency libraries.
cannam@140 17495 link_all_deplibs=$link_all_deplibs
cannam@140 17496
cannam@140 17497 # Set to "yes" if exported symbols are required.
cannam@140 17498 always_export_symbols=$always_export_symbols
cannam@140 17499
cannam@140 17500 # The commands to list exported symbols.
cannam@140 17501 export_symbols_cmds=$lt_export_symbols_cmds
cannam@140 17502
cannam@140 17503 # Symbols that should not be listed in the preloaded symbols.
cannam@140 17504 exclude_expsyms=$lt_exclude_expsyms
cannam@140 17505
cannam@140 17506 # Symbols that must always be exported.
cannam@140 17507 include_expsyms=$lt_include_expsyms
cannam@140 17508
cannam@140 17509 # Commands necessary for linking programs (against libraries) with templates.
cannam@140 17510 prelink_cmds=$lt_prelink_cmds
cannam@140 17511
cannam@140 17512 # Commands necessary for finishing linking programs.
cannam@140 17513 postlink_cmds=$lt_postlink_cmds
cannam@140 17514
cannam@140 17515 # Specify filename containing input files.
cannam@140 17516 file_list_spec=$lt_file_list_spec
cannam@140 17517
cannam@140 17518 # How to hardcode a shared library path into an executable.
cannam@140 17519 hardcode_action=$hardcode_action
cannam@140 17520
cannam@140 17521 # The directories searched by this compiler when creating a shared library.
cannam@140 17522 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
cannam@140 17523
cannam@140 17524 # Dependencies to place before and after the objects being linked to
cannam@140 17525 # create a shared library.
cannam@140 17526 predep_objects=$lt_predep_objects
cannam@140 17527 postdep_objects=$lt_postdep_objects
cannam@140 17528 predeps=$lt_predeps
cannam@140 17529 postdeps=$lt_postdeps
cannam@140 17530
cannam@140 17531 # The library search path used internally by the compiler when linking
cannam@140 17532 # a shared library.
cannam@140 17533 compiler_lib_search_path=$lt_compiler_lib_search_path
cannam@140 17534
cannam@140 17535 # ### END LIBTOOL CONFIG
cannam@140 17536
cannam@140 17537 _LT_EOF
cannam@140 17538
cannam@140 17539 case $host_os in
cannam@140 17540 aix3*)
cannam@140 17541 cat <<\_LT_EOF >> "$cfgfile"
cannam@140 17542 # AIX sometimes has problems with the GCC collect2 program. For some
cannam@140 17543 # reason, if we set the COLLECT_NAMES environment variable, the problems
cannam@140 17544 # vanish in a puff of smoke.
cannam@140 17545 if test "X${COLLECT_NAMES+set}" != Xset; then
cannam@140 17546 COLLECT_NAMES=
cannam@140 17547 export COLLECT_NAMES
cannam@140 17548 fi
cannam@140 17549 _LT_EOF
cannam@140 17550 ;;
cannam@140 17551 esac
cannam@140 17552
cannam@140 17553
cannam@140 17554 ltmain="$ac_aux_dir/ltmain.sh"
cannam@140 17555
cannam@140 17556
cannam@140 17557 # We use sed instead of cat because bash on DJGPP gets confused if
cannam@140 17558 # if finds mixed CR/LF and LF-only lines. Since sed operates in
cannam@140 17559 # text mode, it properly converts lines to CR/LF. This bash problem
cannam@140 17560 # is reportedly fixed, but why not run on old versions too?
cannam@140 17561 sed '$q' "$ltmain" >> "$cfgfile" \
cannam@140 17562 || (rm -f "$cfgfile"; exit 1)
cannam@140 17563
cannam@140 17564 if test x"$xsi_shell" = xyes; then
cannam@140 17565 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
cannam@140 17566 func_dirname ()\
cannam@140 17567 {\
cannam@140 17568 \ case ${1} in\
cannam@140 17569 \ */*) func_dirname_result="${1%/*}${2}" ;;\
cannam@140 17570 \ * ) func_dirname_result="${3}" ;;\
cannam@140 17571 \ esac\
cannam@140 17572 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
cannam@140 17573 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@140 17574 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@140 17575 test 0 -eq $? || _lt_function_replace_fail=:
cannam@140 17576
cannam@140 17577
cannam@140 17578 sed -e '/^func_basename ()$/,/^} # func_basename /c\
cannam@140 17579 func_basename ()\
cannam@140 17580 {\
cannam@140 17581 \ func_basename_result="${1##*/}"\
cannam@140 17582 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
cannam@140 17583 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@140 17584 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@140 17585 test 0 -eq $? || _lt_function_replace_fail=:
cannam@140 17586
cannam@140 17587
cannam@140 17588 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
cannam@140 17589 func_dirname_and_basename ()\
cannam@140 17590 {\
cannam@140 17591 \ case ${1} in\
cannam@140 17592 \ */*) func_dirname_result="${1%/*}${2}" ;;\
cannam@140 17593 \ * ) func_dirname_result="${3}" ;;\
cannam@140 17594 \ esac\
cannam@140 17595 \ func_basename_result="${1##*/}"\
cannam@140 17596 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
cannam@140 17597 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@140 17598 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@140 17599 test 0 -eq $? || _lt_function_replace_fail=:
cannam@140 17600
cannam@140 17601
cannam@140 17602 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
cannam@140 17603 func_stripname ()\
cannam@140 17604 {\
cannam@140 17605 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
cannam@140 17606 \ # positional parameters, so assign one to ordinary parameter first.\
cannam@140 17607 \ func_stripname_result=${3}\
cannam@140 17608 \ func_stripname_result=${func_stripname_result#"${1}"}\
cannam@140 17609 \ func_stripname_result=${func_stripname_result%"${2}"}\
cannam@140 17610 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
cannam@140 17611 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@140 17612 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@140 17613 test 0 -eq $? || _lt_function_replace_fail=:
cannam@140 17614
cannam@140 17615
cannam@140 17616 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
cannam@140 17617 func_split_long_opt ()\
cannam@140 17618 {\
cannam@140 17619 \ func_split_long_opt_name=${1%%=*}\
cannam@140 17620 \ func_split_long_opt_arg=${1#*=}\
cannam@140 17621 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
cannam@140 17622 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@140 17623 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@140 17624 test 0 -eq $? || _lt_function_replace_fail=:
cannam@140 17625
cannam@140 17626
cannam@140 17627 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
cannam@140 17628 func_split_short_opt ()\
cannam@140 17629 {\
cannam@140 17630 \ func_split_short_opt_arg=${1#??}\
cannam@140 17631 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
cannam@140 17632 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
cannam@140 17633 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@140 17634 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@140 17635 test 0 -eq $? || _lt_function_replace_fail=:
cannam@140 17636
cannam@140 17637
cannam@140 17638 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
cannam@140 17639 func_lo2o ()\
cannam@140 17640 {\
cannam@140 17641 \ case ${1} in\
cannam@140 17642 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
cannam@140 17643 \ *) func_lo2o_result=${1} ;;\
cannam@140 17644 \ esac\
cannam@140 17645 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
cannam@140 17646 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@140 17647 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@140 17648 test 0 -eq $? || _lt_function_replace_fail=:
cannam@140 17649
cannam@140 17650
cannam@140 17651 sed -e '/^func_xform ()$/,/^} # func_xform /c\
cannam@140 17652 func_xform ()\
cannam@140 17653 {\
cannam@140 17654 func_xform_result=${1%.*}.lo\
cannam@140 17655 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
cannam@140 17656 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@140 17657 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@140 17658 test 0 -eq $? || _lt_function_replace_fail=:
cannam@140 17659
cannam@140 17660
cannam@140 17661 sed -e '/^func_arith ()$/,/^} # func_arith /c\
cannam@140 17662 func_arith ()\
cannam@140 17663 {\
cannam@140 17664 func_arith_result=$(( $* ))\
cannam@140 17665 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
cannam@140 17666 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@140 17667 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@140 17668 test 0 -eq $? || _lt_function_replace_fail=:
cannam@140 17669
cannam@140 17670
cannam@140 17671 sed -e '/^func_len ()$/,/^} # func_len /c\
cannam@140 17672 func_len ()\
cannam@140 17673 {\
cannam@140 17674 func_len_result=${#1}\
cannam@140 17675 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
cannam@140 17676 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@140 17677 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@140 17678 test 0 -eq $? || _lt_function_replace_fail=:
cannam@140 17679
cannam@140 17680 fi
cannam@140 17681
cannam@140 17682 if test x"$lt_shell_append" = xyes; then
cannam@140 17683 sed -e '/^func_append ()$/,/^} # func_append /c\
cannam@140 17684 func_append ()\
cannam@140 17685 {\
cannam@140 17686 eval "${1}+=\\${2}"\
cannam@140 17687 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
cannam@140 17688 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@140 17689 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@140 17690 test 0 -eq $? || _lt_function_replace_fail=:
cannam@140 17691
cannam@140 17692
cannam@140 17693 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
cannam@140 17694 func_append_quoted ()\
cannam@140 17695 {\
cannam@140 17696 \ func_quote_for_eval "${2}"\
cannam@140 17697 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
cannam@140 17698 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
cannam@140 17699 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@140 17700 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@140 17701 test 0 -eq $? || _lt_function_replace_fail=:
cannam@140 17702
cannam@140 17703
cannam@140 17704 # Save a `func_append' function call where possible by direct use of '+='
cannam@140 17705 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
cannam@140 17706 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@140 17707 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@140 17708 test 0 -eq $? || _lt_function_replace_fail=:
cannam@140 17709 else
cannam@140 17710 # Save a `func_append' function call even when '+=' is not available
cannam@140 17711 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
cannam@140 17712 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@140 17713 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@140 17714 test 0 -eq $? || _lt_function_replace_fail=:
cannam@140 17715 fi
cannam@140 17716
cannam@140 17717 if test x"$_lt_function_replace_fail" = x":"; then
cannam@140 17718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
cannam@140 17719 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
cannam@140 17720 fi
cannam@140 17721
cannam@140 17722
cannam@140 17723 mv -f "$cfgfile" "$ofile" ||
cannam@140 17724 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
cannam@140 17725 chmod +x "$ofile"
cannam@140 17726
cannam@140 17727
cannam@140 17728 cat <<_LT_EOF >> "$ofile"
cannam@140 17729
cannam@140 17730 # ### BEGIN LIBTOOL TAG CONFIG: CXX
cannam@140 17731
cannam@140 17732 # The linker used to build libraries.
cannam@140 17733 LD=$lt_LD_CXX
cannam@140 17734
cannam@140 17735 # How to create reloadable object files.
cannam@140 17736 reload_flag=$lt_reload_flag_CXX
cannam@140 17737 reload_cmds=$lt_reload_cmds_CXX
cannam@140 17738
cannam@140 17739 # Commands used to build an old-style archive.
cannam@140 17740 old_archive_cmds=$lt_old_archive_cmds_CXX
cannam@140 17741
cannam@140 17742 # A language specific compiler.
cannam@140 17743 CC=$lt_compiler_CXX
cannam@140 17744
cannam@140 17745 # Is the compiler the GNU compiler?
cannam@140 17746 with_gcc=$GCC_CXX
cannam@140 17747
cannam@140 17748 # Compiler flag to turn off builtin functions.
cannam@140 17749 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
cannam@140 17750
cannam@140 17751 # Additional compiler flags for building library objects.
cannam@140 17752 pic_flag=$lt_lt_prog_compiler_pic_CXX
cannam@140 17753
cannam@140 17754 # How to pass a linker flag through the compiler.
cannam@140 17755 wl=$lt_lt_prog_compiler_wl_CXX
cannam@140 17756
cannam@140 17757 # Compiler flag to prevent dynamic linking.
cannam@140 17758 link_static_flag=$lt_lt_prog_compiler_static_CXX
cannam@140 17759
cannam@140 17760 # Does compiler simultaneously support -c and -o options?
cannam@140 17761 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
cannam@140 17762
cannam@140 17763 # Whether or not to add -lc for building shared libraries.
cannam@140 17764 build_libtool_need_lc=$archive_cmds_need_lc_CXX
cannam@140 17765
cannam@140 17766 # Whether or not to disallow shared libs when runtime libs are static.
cannam@140 17767 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
cannam@140 17768
cannam@140 17769 # Compiler flag to allow reflexive dlopens.
cannam@140 17770 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
cannam@140 17771
cannam@140 17772 # Compiler flag to generate shared objects directly from archives.
cannam@140 17773 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
cannam@140 17774
cannam@140 17775 # Whether the compiler copes with passing no objects directly.
cannam@140 17776 compiler_needs_object=$lt_compiler_needs_object_CXX
cannam@140 17777
cannam@140 17778 # Create an old-style archive from a shared archive.
cannam@140 17779 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
cannam@140 17780
cannam@140 17781 # Create a temporary old-style archive to link instead of a shared archive.
cannam@140 17782 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
cannam@140 17783
cannam@140 17784 # Commands used to build a shared archive.
cannam@140 17785 archive_cmds=$lt_archive_cmds_CXX
cannam@140 17786 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
cannam@140 17787
cannam@140 17788 # Commands used to build a loadable module if different from building
cannam@140 17789 # a shared archive.
cannam@140 17790 module_cmds=$lt_module_cmds_CXX
cannam@140 17791 module_expsym_cmds=$lt_module_expsym_cmds_CXX
cannam@140 17792
cannam@140 17793 # Whether we are building with GNU ld or not.
cannam@140 17794 with_gnu_ld=$lt_with_gnu_ld_CXX
cannam@140 17795
cannam@140 17796 # Flag that allows shared libraries with undefined symbols to be built.
cannam@140 17797 allow_undefined_flag=$lt_allow_undefined_flag_CXX
cannam@140 17798
cannam@140 17799 # Flag that enforces no undefined symbols.
cannam@140 17800 no_undefined_flag=$lt_no_undefined_flag_CXX
cannam@140 17801
cannam@140 17802 # Flag to hardcode \$libdir into a binary during linking.
cannam@140 17803 # This must work even if \$libdir does not exist
cannam@140 17804 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
cannam@140 17805
cannam@140 17806 # Whether we need a single "-rpath" flag with a separated argument.
cannam@140 17807 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
cannam@140 17808
cannam@140 17809 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
cannam@140 17810 # DIR into the resulting binary.
cannam@140 17811 hardcode_direct=$hardcode_direct_CXX
cannam@140 17812
cannam@140 17813 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
cannam@140 17814 # DIR into the resulting binary and the resulting library dependency is
cannam@140 17815 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
cannam@140 17816 # library is relocated.
cannam@140 17817 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
cannam@140 17818
cannam@140 17819 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
cannam@140 17820 # into the resulting binary.
cannam@140 17821 hardcode_minus_L=$hardcode_minus_L_CXX
cannam@140 17822
cannam@140 17823 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
cannam@140 17824 # into the resulting binary.
cannam@140 17825 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
cannam@140 17826
cannam@140 17827 # Set to "yes" if building a shared library automatically hardcodes DIR
cannam@140 17828 # into the library and all subsequent libraries and executables linked
cannam@140 17829 # against it.
cannam@140 17830 hardcode_automatic=$hardcode_automatic_CXX
cannam@140 17831
cannam@140 17832 # Set to yes if linker adds runtime paths of dependent libraries
cannam@140 17833 # to runtime path list.
cannam@140 17834 inherit_rpath=$inherit_rpath_CXX
cannam@140 17835
cannam@140 17836 # Whether libtool must link a program against all its dependency libraries.
cannam@140 17837 link_all_deplibs=$link_all_deplibs_CXX
cannam@140 17838
cannam@140 17839 # Set to "yes" if exported symbols are required.
cannam@140 17840 always_export_symbols=$always_export_symbols_CXX
cannam@140 17841
cannam@140 17842 # The commands to list exported symbols.
cannam@140 17843 export_symbols_cmds=$lt_export_symbols_cmds_CXX
cannam@140 17844
cannam@140 17845 # Symbols that should not be listed in the preloaded symbols.
cannam@140 17846 exclude_expsyms=$lt_exclude_expsyms_CXX
cannam@140 17847
cannam@140 17848 # Symbols that must always be exported.
cannam@140 17849 include_expsyms=$lt_include_expsyms_CXX
cannam@140 17850
cannam@140 17851 # Commands necessary for linking programs (against libraries) with templates.
cannam@140 17852 prelink_cmds=$lt_prelink_cmds_CXX
cannam@140 17853
cannam@140 17854 # Commands necessary for finishing linking programs.
cannam@140 17855 postlink_cmds=$lt_postlink_cmds_CXX
cannam@140 17856
cannam@140 17857 # Specify filename containing input files.
cannam@140 17858 file_list_spec=$lt_file_list_spec_CXX
cannam@140 17859
cannam@140 17860 # How to hardcode a shared library path into an executable.
cannam@140 17861 hardcode_action=$hardcode_action_CXX
cannam@140 17862
cannam@140 17863 # The directories searched by this compiler when creating a shared library.
cannam@140 17864 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
cannam@140 17865
cannam@140 17866 # Dependencies to place before and after the objects being linked to
cannam@140 17867 # create a shared library.
cannam@140 17868 predep_objects=$lt_predep_objects_CXX
cannam@140 17869 postdep_objects=$lt_postdep_objects_CXX
cannam@140 17870 predeps=$lt_predeps_CXX
cannam@140 17871 postdeps=$lt_postdeps_CXX
cannam@140 17872
cannam@140 17873 # The library search path used internally by the compiler when linking
cannam@140 17874 # a shared library.
cannam@140 17875 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
cannam@140 17876
cannam@140 17877 # ### END LIBTOOL TAG CONFIG: CXX
cannam@140 17878 _LT_EOF
cannam@140 17879
cannam@140 17880 ;;
cannam@140 17881
cannam@140 17882 esac
cannam@140 17883 done # for ac_tag
cannam@140 17884
cannam@140 17885
cannam@140 17886 as_fn_exit 0
cannam@140 17887 _ACEOF
cannam@140 17888 ac_clean_files=$ac_clean_files_save
cannam@140 17889
cannam@140 17890 test $ac_write_fail = 0 ||
cannam@140 17891 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cannam@140 17892
cannam@140 17893
cannam@140 17894 # configure is writing to config.log, and then calls config.status.
cannam@140 17895 # config.status does its own redirection, appending to config.log.
cannam@140 17896 # Unfortunately, on DOS this fails, as config.log is still kept open
cannam@140 17897 # by configure, so config.status won't be able to write to it; its
cannam@140 17898 # output is simply discarded. So we exec the FD to /dev/null,
cannam@140 17899 # effectively closing config.log, so it can be properly (re)opened and
cannam@140 17900 # appended to by config.status. When coming back to configure, we
cannam@140 17901 # need to make the FD available again.
cannam@140 17902 if test "$no_create" != yes; then
cannam@140 17903 ac_cs_success=:
cannam@140 17904 ac_config_status_args=
cannam@140 17905 test "$silent" = yes &&
cannam@140 17906 ac_config_status_args="$ac_config_status_args --quiet"
cannam@140 17907 exec 5>/dev/null
cannam@140 17908 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
cannam@140 17909 exec 5>>config.log
cannam@140 17910 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
cannam@140 17911 # would make configure fail if this is the last instruction.
cannam@140 17912 $ac_cs_success || as_fn_exit 1
cannam@140 17913 fi
cannam@140 17914 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cannam@140 17915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cannam@140 17916 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
cannam@140 17917 fi
cannam@140 17918