annotate src/libsamplerate-0.1.8/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 545efbb81310
children
rev   line source
cannam@85 1 #! /bin/sh
cannam@85 2 # Guess values for system-dependent variables and create Makefiles.
cannam@85 3 # Generated by GNU Autoconf 2.68 for libsamplerate 0.1.8.
cannam@85 4 #
cannam@85 5 # Report bugs to <erikd@mega-nerd.com>.
cannam@85 6 #
cannam@85 7 #
cannam@85 8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cannam@85 9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
cannam@85 10 # Foundation, Inc.
cannam@85 11 #
cannam@85 12 #
cannam@85 13 # This configure script is free software; the Free Software Foundation
cannam@85 14 # gives unlimited permission to copy, distribute and modify it.
cannam@85 15 ## -------------------- ##
cannam@85 16 ## M4sh Initialization. ##
cannam@85 17 ## -------------------- ##
cannam@85 18
cannam@85 19 # Be more Bourne compatible
cannam@85 20 DUALCASE=1; export DUALCASE # for MKS sh
cannam@85 21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cannam@85 22 emulate sh
cannam@85 23 NULLCMD=:
cannam@85 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
cannam@85 25 # is contrary to our usage. Disable this feature.
cannam@85 26 alias -g '${1+"$@"}'='"$@"'
cannam@85 27 setopt NO_GLOB_SUBST
cannam@85 28 else
cannam@85 29 case `(set -o) 2>/dev/null` in #(
cannam@85 30 *posix*) :
cannam@85 31 set -o posix ;; #(
cannam@85 32 *) :
cannam@85 33 ;;
cannam@85 34 esac
cannam@85 35 fi
cannam@85 36
cannam@85 37
cannam@85 38 as_nl='
cannam@85 39 '
cannam@85 40 export as_nl
cannam@85 41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
cannam@85 42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@85 43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@85 44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@85 45 # Prefer a ksh shell builtin over an external printf program on Solaris,
cannam@85 46 # but without wasting forks for bash or zsh.
cannam@85 47 if test -z "$BASH_VERSION$ZSH_VERSION" \
cannam@85 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@85 49 as_echo='print -r --'
cannam@85 50 as_echo_n='print -rn --'
cannam@85 51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@85 52 as_echo='printf %s\n'
cannam@85 53 as_echo_n='printf %s'
cannam@85 54 else
cannam@85 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
cannam@85 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
cannam@85 57 as_echo_n='/usr/ucb/echo -n'
cannam@85 58 else
cannam@85 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
cannam@85 60 as_echo_n_body='eval
cannam@85 61 arg=$1;
cannam@85 62 case $arg in #(
cannam@85 63 *"$as_nl"*)
cannam@85 64 expr "X$arg" : "X\\(.*\\)$as_nl";
cannam@85 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
cannam@85 66 esac;
cannam@85 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
cannam@85 68 '
cannam@85 69 export as_echo_n_body
cannam@85 70 as_echo_n='sh -c $as_echo_n_body as_echo'
cannam@85 71 fi
cannam@85 72 export as_echo_body
cannam@85 73 as_echo='sh -c $as_echo_body as_echo'
cannam@85 74 fi
cannam@85 75
cannam@85 76 # The user is always right.
cannam@85 77 if test "${PATH_SEPARATOR+set}" != set; then
cannam@85 78 PATH_SEPARATOR=:
cannam@85 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
cannam@85 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
cannam@85 81 PATH_SEPARATOR=';'
cannam@85 82 }
cannam@85 83 fi
cannam@85 84
cannam@85 85
cannam@85 86 # IFS
cannam@85 87 # We need space, tab and new line, in precisely that order. Quoting is
cannam@85 88 # there to prevent editors from complaining about space-tab.
cannam@85 89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
cannam@85 90 # splitting by setting IFS to empty value.)
cannam@85 91 IFS=" "" $as_nl"
cannam@85 92
cannam@85 93 # Find who we are. Look in the path if we contain no directory separator.
cannam@85 94 as_myself=
cannam@85 95 case $0 in #((
cannam@85 96 *[\\/]* ) as_myself=$0 ;;
cannam@85 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 98 for as_dir in $PATH
cannam@85 99 do
cannam@85 100 IFS=$as_save_IFS
cannam@85 101 test -z "$as_dir" && as_dir=.
cannam@85 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
cannam@85 103 done
cannam@85 104 IFS=$as_save_IFS
cannam@85 105
cannam@85 106 ;;
cannam@85 107 esac
cannam@85 108 # We did not find ourselves, most probably we were run as `sh COMMAND'
cannam@85 109 # in which case we are not to be found in the path.
cannam@85 110 if test "x$as_myself" = x; then
cannam@85 111 as_myself=$0
cannam@85 112 fi
cannam@85 113 if test ! -f "$as_myself"; then
cannam@85 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cannam@85 115 exit 1
cannam@85 116 fi
cannam@85 117
cannam@85 118 # Unset variables that we do not need and which cause bugs (e.g. in
cannam@85 119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
cannam@85 120 # suppresses any "Segmentation fault" message there. '((' could
cannam@85 121 # trigger a bug in pdksh 5.2.14.
cannam@85 122 for as_var in BASH_ENV ENV MAIL MAILPATH
cannam@85 123 do eval test x\${$as_var+set} = xset \
cannam@85 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cannam@85 125 done
cannam@85 126 PS1='$ '
cannam@85 127 PS2='> '
cannam@85 128 PS4='+ '
cannam@85 129
cannam@85 130 # NLS nuisances.
cannam@85 131 LC_ALL=C
cannam@85 132 export LC_ALL
cannam@85 133 LANGUAGE=C
cannam@85 134 export LANGUAGE
cannam@85 135
cannam@85 136 # CDPATH.
cannam@85 137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cannam@85 138
cannam@85 139 if test "x$CONFIG_SHELL" = x; then
cannam@85 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
cannam@85 141 emulate sh
cannam@85 142 NULLCMD=:
cannam@85 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
cannam@85 144 # is contrary to our usage. Disable this feature.
cannam@85 145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
cannam@85 146 setopt NO_GLOB_SUBST
cannam@85 147 else
cannam@85 148 case \`(set -o) 2>/dev/null\` in #(
cannam@85 149 *posix*) :
cannam@85 150 set -o posix ;; #(
cannam@85 151 *) :
cannam@85 152 ;;
cannam@85 153 esac
cannam@85 154 fi
cannam@85 155 "
cannam@85 156 as_required="as_fn_return () { (exit \$1); }
cannam@85 157 as_fn_success () { as_fn_return 0; }
cannam@85 158 as_fn_failure () { as_fn_return 1; }
cannam@85 159 as_fn_ret_success () { return 0; }
cannam@85 160 as_fn_ret_failure () { return 1; }
cannam@85 161
cannam@85 162 exitcode=0
cannam@85 163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
cannam@85 164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
cannam@85 165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
cannam@85 166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
cannam@85 167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
cannam@85 168
cannam@85 169 else
cannam@85 170 exitcode=1; echo positional parameters were not saved.
cannam@85 171 fi
cannam@85 172 test x\$exitcode = x0 || exit 1"
cannam@85 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
cannam@85 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
cannam@85 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
cannam@85 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cannam@85 177 test \$(( 1 + 1 )) = 2 || exit 1
cannam@85 178
cannam@85 179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
cannam@85 180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@85 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
cannam@85 182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
cannam@85 183 PATH=/empty FPATH=/empty; export PATH FPATH
cannam@85 184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
cannam@85 185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cannam@85 186 if (eval "$as_required") 2>/dev/null; then :
cannam@85 187 as_have_required=yes
cannam@85 188 else
cannam@85 189 as_have_required=no
cannam@85 190 fi
cannam@85 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
cannam@85 192
cannam@85 193 else
cannam@85 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 195 as_found=false
cannam@85 196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
cannam@85 197 do
cannam@85 198 IFS=$as_save_IFS
cannam@85 199 test -z "$as_dir" && as_dir=.
cannam@85 200 as_found=:
cannam@85 201 case $as_dir in #(
cannam@85 202 /*)
cannam@85 203 for as_base in sh bash ksh sh5; do
cannam@85 204 # Try only shells that exist, to save several forks.
cannam@85 205 as_shell=$as_dir/$as_base
cannam@85 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
cannam@85 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
cannam@85 208 CONFIG_SHELL=$as_shell as_have_required=yes
cannam@85 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
cannam@85 210 break 2
cannam@85 211 fi
cannam@85 212 fi
cannam@85 213 done;;
cannam@85 214 esac
cannam@85 215 as_found=false
cannam@85 216 done
cannam@85 217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
cannam@85 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
cannam@85 219 CONFIG_SHELL=$SHELL as_have_required=yes
cannam@85 220 fi; }
cannam@85 221 IFS=$as_save_IFS
cannam@85 222
cannam@85 223
cannam@85 224 if test "x$CONFIG_SHELL" != x; then :
cannam@85 225 # We cannot yet assume a decent shell, so we have to provide a
cannam@85 226 # neutralization value for shells without unset; and this also
cannam@85 227 # works around shells that cannot unset nonexistent variables.
cannam@85 228 # Preserve -v and -x to the replacement shell.
cannam@85 229 BASH_ENV=/dev/null
cannam@85 230 ENV=/dev/null
cannam@85 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
cannam@85 232 export CONFIG_SHELL
cannam@85 233 case $- in # ((((
cannam@85 234 *v*x* | *x*v* ) as_opts=-vx ;;
cannam@85 235 *v* ) as_opts=-v ;;
cannam@85 236 *x* ) as_opts=-x ;;
cannam@85 237 * ) as_opts= ;;
cannam@85 238 esac
cannam@85 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
cannam@85 240 fi
cannam@85 241
cannam@85 242 if test x$as_have_required = xno; then :
cannam@85 243 $as_echo "$0: This script requires a shell more modern than all"
cannam@85 244 $as_echo "$0: the shells that I found on your system."
cannam@85 245 if test x${ZSH_VERSION+set} = xset ; then
cannam@85 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
cannam@85 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
cannam@85 248 else
cannam@85 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
cannam@85 250 $0: erikd@mega-nerd.com about your system, including any
cannam@85 251 $0: error possibly output before this message. Then install
cannam@85 252 $0: a modern shell, or manually run the script under such a
cannam@85 253 $0: shell if you do have one."
cannam@85 254 fi
cannam@85 255 exit 1
cannam@85 256 fi
cannam@85 257 fi
cannam@85 258 fi
cannam@85 259 SHELL=${CONFIG_SHELL-/bin/sh}
cannam@85 260 export SHELL
cannam@85 261 # Unset more variables known to interfere with behavior of common tools.
cannam@85 262 CLICOLOR_FORCE= GREP_OPTIONS=
cannam@85 263 unset CLICOLOR_FORCE GREP_OPTIONS
cannam@85 264
cannam@85 265 ## --------------------- ##
cannam@85 266 ## M4sh Shell Functions. ##
cannam@85 267 ## --------------------- ##
cannam@85 268 # as_fn_unset VAR
cannam@85 269 # ---------------
cannam@85 270 # Portably unset VAR.
cannam@85 271 as_fn_unset ()
cannam@85 272 {
cannam@85 273 { eval $1=; unset $1;}
cannam@85 274 }
cannam@85 275 as_unset=as_fn_unset
cannam@85 276
cannam@85 277 # as_fn_set_status STATUS
cannam@85 278 # -----------------------
cannam@85 279 # Set $? to STATUS, without forking.
cannam@85 280 as_fn_set_status ()
cannam@85 281 {
cannam@85 282 return $1
cannam@85 283 } # as_fn_set_status
cannam@85 284
cannam@85 285 # as_fn_exit STATUS
cannam@85 286 # -----------------
cannam@85 287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
cannam@85 288 as_fn_exit ()
cannam@85 289 {
cannam@85 290 set +e
cannam@85 291 as_fn_set_status $1
cannam@85 292 exit $1
cannam@85 293 } # as_fn_exit
cannam@85 294
cannam@85 295 # as_fn_mkdir_p
cannam@85 296 # -------------
cannam@85 297 # Create "$as_dir" as a directory, including parents if necessary.
cannam@85 298 as_fn_mkdir_p ()
cannam@85 299 {
cannam@85 300
cannam@85 301 case $as_dir in #(
cannam@85 302 -*) as_dir=./$as_dir;;
cannam@85 303 esac
cannam@85 304 test -d "$as_dir" || eval $as_mkdir_p || {
cannam@85 305 as_dirs=
cannam@85 306 while :; do
cannam@85 307 case $as_dir in #(
cannam@85 308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
cannam@85 309 *) as_qdir=$as_dir;;
cannam@85 310 esac
cannam@85 311 as_dirs="'$as_qdir' $as_dirs"
cannam@85 312 as_dir=`$as_dirname -- "$as_dir" ||
cannam@85 313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 314 X"$as_dir" : 'X\(//\)[^/]' \| \
cannam@85 315 X"$as_dir" : 'X\(//\)$' \| \
cannam@85 316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
cannam@85 317 $as_echo X"$as_dir" |
cannam@85 318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@85 319 s//\1/
cannam@85 320 q
cannam@85 321 }
cannam@85 322 /^X\(\/\/\)[^/].*/{
cannam@85 323 s//\1/
cannam@85 324 q
cannam@85 325 }
cannam@85 326 /^X\(\/\/\)$/{
cannam@85 327 s//\1/
cannam@85 328 q
cannam@85 329 }
cannam@85 330 /^X\(\/\).*/{
cannam@85 331 s//\1/
cannam@85 332 q
cannam@85 333 }
cannam@85 334 s/.*/./; q'`
cannam@85 335 test -d "$as_dir" && break
cannam@85 336 done
cannam@85 337 test -z "$as_dirs" || eval "mkdir $as_dirs"
cannam@85 338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cannam@85 339
cannam@85 340
cannam@85 341 } # as_fn_mkdir_p
cannam@85 342 # as_fn_append VAR VALUE
cannam@85 343 # ----------------------
cannam@85 344 # Append the text in VALUE to the end of the definition contained in VAR. Take
cannam@85 345 # advantage of any shell optimizations that allow amortized linear growth over
cannam@85 346 # repeated appends, instead of the typical quadratic growth present in naive
cannam@85 347 # implementations.
cannam@85 348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
cannam@85 349 eval 'as_fn_append ()
cannam@85 350 {
cannam@85 351 eval $1+=\$2
cannam@85 352 }'
cannam@85 353 else
cannam@85 354 as_fn_append ()
cannam@85 355 {
cannam@85 356 eval $1=\$$1\$2
cannam@85 357 }
cannam@85 358 fi # as_fn_append
cannam@85 359
cannam@85 360 # as_fn_arith ARG...
cannam@85 361 # ------------------
cannam@85 362 # Perform arithmetic evaluation on the ARGs, and store the result in the
cannam@85 363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
cannam@85 364 # must be portable across $(()) and expr.
cannam@85 365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
cannam@85 366 eval 'as_fn_arith ()
cannam@85 367 {
cannam@85 368 as_val=$(( $* ))
cannam@85 369 }'
cannam@85 370 else
cannam@85 371 as_fn_arith ()
cannam@85 372 {
cannam@85 373 as_val=`expr "$@" || test $? -eq 1`
cannam@85 374 }
cannam@85 375 fi # as_fn_arith
cannam@85 376
cannam@85 377
cannam@85 378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
cannam@85 379 # ----------------------------------------
cannam@85 380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
cannam@85 381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cannam@85 382 # script with STATUS, using 1 if that was 0.
cannam@85 383 as_fn_error ()
cannam@85 384 {
cannam@85 385 as_status=$1; test $as_status -eq 0 && as_status=1
cannam@85 386 if test "$4"; then
cannam@85 387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@85 388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cannam@85 389 fi
cannam@85 390 $as_echo "$as_me: error: $2" >&2
cannam@85 391 as_fn_exit $as_status
cannam@85 392 } # as_fn_error
cannam@85 393
cannam@85 394 if expr a : '\(a\)' >/dev/null 2>&1 &&
cannam@85 395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
cannam@85 396 as_expr=expr
cannam@85 397 else
cannam@85 398 as_expr=false
cannam@85 399 fi
cannam@85 400
cannam@85 401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
cannam@85 402 as_basename=basename
cannam@85 403 else
cannam@85 404 as_basename=false
cannam@85 405 fi
cannam@85 406
cannam@85 407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
cannam@85 408 as_dirname=dirname
cannam@85 409 else
cannam@85 410 as_dirname=false
cannam@85 411 fi
cannam@85 412
cannam@85 413 as_me=`$as_basename -- "$0" ||
cannam@85 414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
cannam@85 415 X"$0" : 'X\(//\)$' \| \
cannam@85 416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
cannam@85 417 $as_echo X/"$0" |
cannam@85 418 sed '/^.*\/\([^/][^/]*\)\/*$/{
cannam@85 419 s//\1/
cannam@85 420 q
cannam@85 421 }
cannam@85 422 /^X\/\(\/\/\)$/{
cannam@85 423 s//\1/
cannam@85 424 q
cannam@85 425 }
cannam@85 426 /^X\/\(\/\).*/{
cannam@85 427 s//\1/
cannam@85 428 q
cannam@85 429 }
cannam@85 430 s/.*/./; q'`
cannam@85 431
cannam@85 432 # Avoid depending upon Character Ranges.
cannam@85 433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
cannam@85 434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
cannam@85 435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
cannam@85 436 as_cr_digits='0123456789'
cannam@85 437 as_cr_alnum=$as_cr_Letters$as_cr_digits
cannam@85 438
cannam@85 439
cannam@85 440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
cannam@85 441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
cannam@85 442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
cannam@85 443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
cannam@85 444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cannam@85 445 sed -n '
cannam@85 446 p
cannam@85 447 /[$]LINENO/=
cannam@85 448 ' <$as_myself |
cannam@85 449 sed '
cannam@85 450 s/[$]LINENO.*/&-/
cannam@85 451 t lineno
cannam@85 452 b
cannam@85 453 :lineno
cannam@85 454 N
cannam@85 455 :loop
cannam@85 456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
cannam@85 457 t loop
cannam@85 458 s/-\n.*//
cannam@85 459 ' >$as_me.lineno &&
cannam@85 460 chmod +x "$as_me.lineno" ||
cannam@85 461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cannam@85 462
cannam@85 463 # Don't try to exec as it changes $[0], causing all sort of problems
cannam@85 464 # (the dirname of $[0] is not the place where we might find the
cannam@85 465 # original and so on. Autoconf is especially sensitive to this).
cannam@85 466 . "./$as_me.lineno"
cannam@85 467 # Exit status is that of the last command.
cannam@85 468 exit
cannam@85 469 }
cannam@85 470
cannam@85 471 ECHO_C= ECHO_N= ECHO_T=
cannam@85 472 case `echo -n x` in #(((((
cannam@85 473 -n*)
cannam@85 474 case `echo 'xy\c'` in
cannam@85 475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cannam@85 476 xy) ECHO_C='\c';;
cannam@85 477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
cannam@85 478 ECHO_T=' ';;
cannam@85 479 esac;;
cannam@85 480 *)
cannam@85 481 ECHO_N='-n';;
cannam@85 482 esac
cannam@85 483
cannam@85 484 rm -f conf$$ conf$$.exe conf$$.file
cannam@85 485 if test -d conf$$.dir; then
cannam@85 486 rm -f conf$$.dir/conf$$.file
cannam@85 487 else
cannam@85 488 rm -f conf$$.dir
cannam@85 489 mkdir conf$$.dir 2>/dev/null
cannam@85 490 fi
cannam@85 491 if (echo >conf$$.file) 2>/dev/null; then
cannam@85 492 if ln -s conf$$.file conf$$ 2>/dev/null; then
cannam@85 493 as_ln_s='ln -s'
cannam@85 494 # ... but there are two gotchas:
cannam@85 495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
cannam@85 496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cannam@85 497 # In both cases, we have to default to `cp -p'.
cannam@85 498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cannam@85 499 as_ln_s='cp -p'
cannam@85 500 elif ln conf$$.file conf$$ 2>/dev/null; then
cannam@85 501 as_ln_s=ln
cannam@85 502 else
cannam@85 503 as_ln_s='cp -p'
cannam@85 504 fi
cannam@85 505 else
cannam@85 506 as_ln_s='cp -p'
cannam@85 507 fi
cannam@85 508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
cannam@85 509 rmdir conf$$.dir 2>/dev/null
cannam@85 510
cannam@85 511 if mkdir -p . 2>/dev/null; then
cannam@85 512 as_mkdir_p='mkdir -p "$as_dir"'
cannam@85 513 else
cannam@85 514 test -d ./-p && rmdir ./-p
cannam@85 515 as_mkdir_p=false
cannam@85 516 fi
cannam@85 517
cannam@85 518 if test -x / >/dev/null 2>&1; then
cannam@85 519 as_test_x='test -x'
cannam@85 520 else
cannam@85 521 if ls -dL / >/dev/null 2>&1; then
cannam@85 522 as_ls_L_option=L
cannam@85 523 else
cannam@85 524 as_ls_L_option=
cannam@85 525 fi
cannam@85 526 as_test_x='
cannam@85 527 eval sh -c '\''
cannam@85 528 if test -d "$1"; then
cannam@85 529 test -d "$1/.";
cannam@85 530 else
cannam@85 531 case $1 in #(
cannam@85 532 -*)set "./$1";;
cannam@85 533 esac;
cannam@85 534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cannam@85 535 ???[sx]*):;;*)false;;esac;fi
cannam@85 536 '\'' sh
cannam@85 537 '
cannam@85 538 fi
cannam@85 539 as_executable_p=$as_test_x
cannam@85 540
cannam@85 541 # Sed expression to map a string onto a valid CPP name.
cannam@85 542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
cannam@85 543
cannam@85 544 # Sed expression to map a string onto a valid variable name.
cannam@85 545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
cannam@85 546
cannam@85 547 SHELL=${CONFIG_SHELL-/bin/sh}
cannam@85 548
cannam@85 549
cannam@85 550 test -n "$DJDIR" || exec 7<&0 </dev/null
cannam@85 551 exec 6>&1
cannam@85 552
cannam@85 553 # Name of the host.
cannam@85 554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cannam@85 555 # so uname gets run too.
cannam@85 556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@85 557
cannam@85 558 #
cannam@85 559 # Initializations.
cannam@85 560 #
cannam@85 561 ac_default_prefix=/usr/local
cannam@85 562 ac_clean_files=
cannam@85 563 ac_config_libobj_dir=.
cannam@85 564 LIBOBJS=
cannam@85 565 cross_compiling=no
cannam@85 566 subdirs=
cannam@85 567 MFLAGS=
cannam@85 568 MAKEFLAGS=
cannam@85 569
cannam@85 570 # Identity of this package.
cannam@85 571 PACKAGE_NAME='libsamplerate'
cannam@85 572 PACKAGE_TARNAME='libsamplerate'
cannam@85 573 PACKAGE_VERSION='0.1.8'
cannam@85 574 PACKAGE_STRING='libsamplerate 0.1.8'
cannam@85 575 PACKAGE_BUGREPORT='erikd@mega-nerd.com'
cannam@85 576 PACKAGE_URL='http://www.mega-nerd.com/libsamplerate/'
cannam@85 577
cannam@85 578 ac_unique_file="src/samplerate.c"
cannam@85 579 # Factoring default headers for most tests.
cannam@85 580 ac_includes_default="\
cannam@85 581 #include <stdio.h>
cannam@85 582 #ifdef HAVE_SYS_TYPES_H
cannam@85 583 # include <sys/types.h>
cannam@85 584 #endif
cannam@85 585 #ifdef HAVE_SYS_STAT_H
cannam@85 586 # include <sys/stat.h>
cannam@85 587 #endif
cannam@85 588 #ifdef STDC_HEADERS
cannam@85 589 # include <stdlib.h>
cannam@85 590 # include <stddef.h>
cannam@85 591 #else
cannam@85 592 # ifdef HAVE_STDLIB_H
cannam@85 593 # include <stdlib.h>
cannam@85 594 # endif
cannam@85 595 #endif
cannam@85 596 #ifdef HAVE_STRING_H
cannam@85 597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
cannam@85 598 # include <memory.h>
cannam@85 599 # endif
cannam@85 600 # include <string.h>
cannam@85 601 #endif
cannam@85 602 #ifdef HAVE_STRINGS_H
cannam@85 603 # include <strings.h>
cannam@85 604 #endif
cannam@85 605 #ifdef HAVE_INTTYPES_H
cannam@85 606 # include <inttypes.h>
cannam@85 607 #endif
cannam@85 608 #ifdef HAVE_STDINT_H
cannam@85 609 # include <stdint.h>
cannam@85 610 #endif
cannam@85 611 #ifdef HAVE_UNISTD_H
cannam@85 612 # include <unistd.h>
cannam@85 613 #endif"
cannam@85 614
cannam@85 615 ac_subst_vars='am__EXEEXT_FALSE
cannam@85 616 am__EXEEXT_TRUE
cannam@85 617 LTLIBOBJS
cannam@85 618 LIBOBJS
cannam@85 619 HAVE_SNDFILE
cannam@85 620 HAVE_FFTW3
cannam@85 621 GCC_MAJOR_VERSION
cannam@85 622 COMPILER_IS_GCC
cannam@85 623 OS_SPECIFIC_LINKS
cannam@85 624 OS_SPECIFIC_INCLUDES
cannam@85 625 SHARED_VERSION_INFO
cannam@85 626 SHLIB_VERSION_ARG
cannam@85 627 htmldocdir
cannam@85 628 FFTW3_LIBS
cannam@85 629 FFTW3_CFLAGS
cannam@85 630 SNDFILE_LIBS
cannam@85 631 SNDFILE_CFLAGS
cannam@85 632 PKG_CONFIG_LIBDIR
cannam@85 633 PKG_CONFIG_PATH
cannam@85 634 PKG_CONFIG
cannam@85 635 PEXPORTS
cannam@85 636 DLLWRAP
cannam@85 637 RC
cannam@85 638 CXXCPP
cannam@85 639 CPP
cannam@85 640 OTOOL64
cannam@85 641 OTOOL
cannam@85 642 LIPO
cannam@85 643 NMEDIT
cannam@85 644 DSYMUTIL
cannam@85 645 MANIFEST_TOOL
cannam@85 646 RANLIB
cannam@85 647 ac_ct_AR
cannam@85 648 AR
cannam@85 649 DLLTOOL
cannam@85 650 OBJDUMP
cannam@85 651 LN_S
cannam@85 652 NM
cannam@85 653 ac_ct_DUMPBIN
cannam@85 654 DUMPBIN
cannam@85 655 LD
cannam@85 656 FGREP
cannam@85 657 EGREP
cannam@85 658 GREP
cannam@85 659 LIBTOOL
cannam@85 660 SED
cannam@85 661 am__fastdepCXX_FALSE
cannam@85 662 am__fastdepCXX_TRUE
cannam@85 663 CXXDEPMODE
cannam@85 664 ac_ct_CXX
cannam@85 665 CXXFLAGS
cannam@85 666 CXX
cannam@85 667 am__fastdepCC_FALSE
cannam@85 668 am__fastdepCC_TRUE
cannam@85 669 CCDEPMODE
cannam@85 670 AMDEPBACKSLASH
cannam@85 671 AMDEP_FALSE
cannam@85 672 AMDEP_TRUE
cannam@85 673 am__quote
cannam@85 674 am__include
cannam@85 675 DEPDIR
cannam@85 676 OBJEXT
cannam@85 677 EXEEXT
cannam@85 678 ac_ct_CC
cannam@85 679 CPPFLAGS
cannam@85 680 LDFLAGS
cannam@85 681 CFLAGS
cannam@85 682 CC
cannam@85 683 ACLOCAL_AMFLAGS
cannam@85 684 AM_BACKSLASH
cannam@85 685 AM_DEFAULT_VERBOSITY
cannam@85 686 am__untar
cannam@85 687 am__tar
cannam@85 688 AMTAR
cannam@85 689 am__leading_dot
cannam@85 690 SET_MAKE
cannam@85 691 AWK
cannam@85 692 mkdir_p
cannam@85 693 MKDIR_P
cannam@85 694 INSTALL_STRIP_PROGRAM
cannam@85 695 STRIP
cannam@85 696 install_sh
cannam@85 697 MAKEINFO
cannam@85 698 AUTOHEADER
cannam@85 699 AUTOMAKE
cannam@85 700 AUTOCONF
cannam@85 701 ACLOCAL
cannam@85 702 VERSION
cannam@85 703 PACKAGE
cannam@85 704 CYGPATH_W
cannam@85 705 am__isrc
cannam@85 706 INSTALL_DATA
cannam@85 707 INSTALL_SCRIPT
cannam@85 708 INSTALL_PROGRAM
cannam@85 709 target_os
cannam@85 710 target_vendor
cannam@85 711 target_cpu
cannam@85 712 target
cannam@85 713 host_os
cannam@85 714 host_vendor
cannam@85 715 host_cpu
cannam@85 716 host
cannam@85 717 build_os
cannam@85 718 build_vendor
cannam@85 719 build_cpu
cannam@85 720 build
cannam@85 721 target_alias
cannam@85 722 host_alias
cannam@85 723 build_alias
cannam@85 724 LIBS
cannam@85 725 ECHO_T
cannam@85 726 ECHO_N
cannam@85 727 ECHO_C
cannam@85 728 DEFS
cannam@85 729 mandir
cannam@85 730 localedir
cannam@85 731 libdir
cannam@85 732 psdir
cannam@85 733 pdfdir
cannam@85 734 dvidir
cannam@85 735 htmldir
cannam@85 736 infodir
cannam@85 737 docdir
cannam@85 738 oldincludedir
cannam@85 739 includedir
cannam@85 740 localstatedir
cannam@85 741 sharedstatedir
cannam@85 742 sysconfdir
cannam@85 743 datadir
cannam@85 744 datarootdir
cannam@85 745 libexecdir
cannam@85 746 sbindir
cannam@85 747 bindir
cannam@85 748 program_transform_name
cannam@85 749 prefix
cannam@85 750 exec_prefix
cannam@85 751 PACKAGE_URL
cannam@85 752 PACKAGE_BUGREPORT
cannam@85 753 PACKAGE_STRING
cannam@85 754 PACKAGE_VERSION
cannam@85 755 PACKAGE_TARNAME
cannam@85 756 PACKAGE_NAME
cannam@85 757 PATH_SEPARATOR
cannam@85 758 SHELL'
cannam@85 759 ac_subst_files=''
cannam@85 760 ac_user_opts='
cannam@85 761 enable_option_checking
cannam@85 762 enable_silent_rules
cannam@85 763 enable_dependency_tracking
cannam@85 764 enable_shared
cannam@85 765 enable_static
cannam@85 766 with_pic
cannam@85 767 enable_fast_install
cannam@85 768 with_gnu_ld
cannam@85 769 with_sysroot
cannam@85 770 enable_libtool_lock
cannam@85 771 enable_gcc_werror
cannam@85 772 enable_gcc_pipe
cannam@85 773 enable_gcc_opt
cannam@85 774 enable_fftw
cannam@85 775 enable_cpu_clip
cannam@85 776 enable_sndfile
cannam@85 777 '
cannam@85 778 ac_precious_vars='build_alias
cannam@85 779 host_alias
cannam@85 780 target_alias
cannam@85 781 CC
cannam@85 782 CFLAGS
cannam@85 783 LDFLAGS
cannam@85 784 LIBS
cannam@85 785 CPPFLAGS
cannam@85 786 CXX
cannam@85 787 CXXFLAGS
cannam@85 788 CCC
cannam@85 789 CPP
cannam@85 790 CXXCPP
cannam@85 791 PKG_CONFIG
cannam@85 792 PKG_CONFIG_PATH
cannam@85 793 PKG_CONFIG_LIBDIR
cannam@85 794 SNDFILE_CFLAGS
cannam@85 795 SNDFILE_LIBS
cannam@85 796 FFTW3_CFLAGS
cannam@85 797 FFTW3_LIBS'
cannam@85 798
cannam@85 799
cannam@85 800 # Initialize some variables set by options.
cannam@85 801 ac_init_help=
cannam@85 802 ac_init_version=false
cannam@85 803 ac_unrecognized_opts=
cannam@85 804 ac_unrecognized_sep=
cannam@85 805 # The variables have the same names as the options, with
cannam@85 806 # dashes changed to underlines.
cannam@85 807 cache_file=/dev/null
cannam@85 808 exec_prefix=NONE
cannam@85 809 no_create=
cannam@85 810 no_recursion=
cannam@85 811 prefix=NONE
cannam@85 812 program_prefix=NONE
cannam@85 813 program_suffix=NONE
cannam@85 814 program_transform_name=s,x,x,
cannam@85 815 silent=
cannam@85 816 site=
cannam@85 817 srcdir=
cannam@85 818 verbose=
cannam@85 819 x_includes=NONE
cannam@85 820 x_libraries=NONE
cannam@85 821
cannam@85 822 # Installation directory options.
cannam@85 823 # These are left unexpanded so users can "make install exec_prefix=/foo"
cannam@85 824 # and all the variables that are supposed to be based on exec_prefix
cannam@85 825 # by default will actually change.
cannam@85 826 # Use braces instead of parens because sh, perl, etc. also accept them.
cannam@85 827 # (The list follows the same order as the GNU Coding Standards.)
cannam@85 828 bindir='${exec_prefix}/bin'
cannam@85 829 sbindir='${exec_prefix}/sbin'
cannam@85 830 libexecdir='${exec_prefix}/libexec'
cannam@85 831 datarootdir='${prefix}/share'
cannam@85 832 datadir='${datarootdir}'
cannam@85 833 sysconfdir='${prefix}/etc'
cannam@85 834 sharedstatedir='${prefix}/com'
cannam@85 835 localstatedir='${prefix}/var'
cannam@85 836 includedir='${prefix}/include'
cannam@85 837 oldincludedir='/usr/include'
cannam@85 838 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
cannam@85 839 infodir='${datarootdir}/info'
cannam@85 840 htmldir='${docdir}'
cannam@85 841 dvidir='${docdir}'
cannam@85 842 pdfdir='${docdir}'
cannam@85 843 psdir='${docdir}'
cannam@85 844 libdir='${exec_prefix}/lib'
cannam@85 845 localedir='${datarootdir}/locale'
cannam@85 846 mandir='${datarootdir}/man'
cannam@85 847
cannam@85 848 ac_prev=
cannam@85 849 ac_dashdash=
cannam@85 850 for ac_option
cannam@85 851 do
cannam@85 852 # If the previous option needs an argument, assign it.
cannam@85 853 if test -n "$ac_prev"; then
cannam@85 854 eval $ac_prev=\$ac_option
cannam@85 855 ac_prev=
cannam@85 856 continue
cannam@85 857 fi
cannam@85 858
cannam@85 859 case $ac_option in
cannam@85 860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
cannam@85 861 *=) ac_optarg= ;;
cannam@85 862 *) ac_optarg=yes ;;
cannam@85 863 esac
cannam@85 864
cannam@85 865 # Accept the important Cygnus configure options, so we can diagnose typos.
cannam@85 866
cannam@85 867 case $ac_dashdash$ac_option in
cannam@85 868 --)
cannam@85 869 ac_dashdash=yes ;;
cannam@85 870
cannam@85 871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
cannam@85 872 ac_prev=bindir ;;
cannam@85 873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
cannam@85 874 bindir=$ac_optarg ;;
cannam@85 875
cannam@85 876 -build | --build | --buil | --bui | --bu)
cannam@85 877 ac_prev=build_alias ;;
cannam@85 878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
cannam@85 879 build_alias=$ac_optarg ;;
cannam@85 880
cannam@85 881 -cache-file | --cache-file | --cache-fil | --cache-fi \
cannam@85 882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
cannam@85 883 ac_prev=cache_file ;;
cannam@85 884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
cannam@85 885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
cannam@85 886 cache_file=$ac_optarg ;;
cannam@85 887
cannam@85 888 --config-cache | -C)
cannam@85 889 cache_file=config.cache ;;
cannam@85 890
cannam@85 891 -datadir | --datadir | --datadi | --datad)
cannam@85 892 ac_prev=datadir ;;
cannam@85 893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
cannam@85 894 datadir=$ac_optarg ;;
cannam@85 895
cannam@85 896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
cannam@85 897 | --dataroo | --dataro | --datar)
cannam@85 898 ac_prev=datarootdir ;;
cannam@85 899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
cannam@85 900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
cannam@85 901 datarootdir=$ac_optarg ;;
cannam@85 902
cannam@85 903 -disable-* | --disable-*)
cannam@85 904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
cannam@85 905 # Reject names that are not valid shell variable names.
cannam@85 906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@85 907 as_fn_error $? "invalid feature name: $ac_useropt"
cannam@85 908 ac_useropt_orig=$ac_useropt
cannam@85 909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@85 910 case $ac_user_opts in
cannam@85 911 *"
cannam@85 912 "enable_$ac_useropt"
cannam@85 913 "*) ;;
cannam@85 914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
cannam@85 915 ac_unrecognized_sep=', ';;
cannam@85 916 esac
cannam@85 917 eval enable_$ac_useropt=no ;;
cannam@85 918
cannam@85 919 -docdir | --docdir | --docdi | --doc | --do)
cannam@85 920 ac_prev=docdir ;;
cannam@85 921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
cannam@85 922 docdir=$ac_optarg ;;
cannam@85 923
cannam@85 924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
cannam@85 925 ac_prev=dvidir ;;
cannam@85 926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
cannam@85 927 dvidir=$ac_optarg ;;
cannam@85 928
cannam@85 929 -enable-* | --enable-*)
cannam@85 930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
cannam@85 931 # Reject names that are not valid shell variable names.
cannam@85 932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@85 933 as_fn_error $? "invalid feature name: $ac_useropt"
cannam@85 934 ac_useropt_orig=$ac_useropt
cannam@85 935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@85 936 case $ac_user_opts in
cannam@85 937 *"
cannam@85 938 "enable_$ac_useropt"
cannam@85 939 "*) ;;
cannam@85 940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
cannam@85 941 ac_unrecognized_sep=', ';;
cannam@85 942 esac
cannam@85 943 eval enable_$ac_useropt=\$ac_optarg ;;
cannam@85 944
cannam@85 945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
cannam@85 946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
cannam@85 947 | --exec | --exe | --ex)
cannam@85 948 ac_prev=exec_prefix ;;
cannam@85 949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
cannam@85 950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
cannam@85 951 | --exec=* | --exe=* | --ex=*)
cannam@85 952 exec_prefix=$ac_optarg ;;
cannam@85 953
cannam@85 954 -gas | --gas | --ga | --g)
cannam@85 955 # Obsolete; use --with-gas.
cannam@85 956 with_gas=yes ;;
cannam@85 957
cannam@85 958 -help | --help | --hel | --he | -h)
cannam@85 959 ac_init_help=long ;;
cannam@85 960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
cannam@85 961 ac_init_help=recursive ;;
cannam@85 962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
cannam@85 963 ac_init_help=short ;;
cannam@85 964
cannam@85 965 -host | --host | --hos | --ho)
cannam@85 966 ac_prev=host_alias ;;
cannam@85 967 -host=* | --host=* | --hos=* | --ho=*)
cannam@85 968 host_alias=$ac_optarg ;;
cannam@85 969
cannam@85 970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
cannam@85 971 ac_prev=htmldir ;;
cannam@85 972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
cannam@85 973 | --ht=*)
cannam@85 974 htmldir=$ac_optarg ;;
cannam@85 975
cannam@85 976 -includedir | --includedir | --includedi | --included | --include \
cannam@85 977 | --includ | --inclu | --incl | --inc)
cannam@85 978 ac_prev=includedir ;;
cannam@85 979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
cannam@85 980 | --includ=* | --inclu=* | --incl=* | --inc=*)
cannam@85 981 includedir=$ac_optarg ;;
cannam@85 982
cannam@85 983 -infodir | --infodir | --infodi | --infod | --info | --inf)
cannam@85 984 ac_prev=infodir ;;
cannam@85 985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
cannam@85 986 infodir=$ac_optarg ;;
cannam@85 987
cannam@85 988 -libdir | --libdir | --libdi | --libd)
cannam@85 989 ac_prev=libdir ;;
cannam@85 990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
cannam@85 991 libdir=$ac_optarg ;;
cannam@85 992
cannam@85 993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
cannam@85 994 | --libexe | --libex | --libe)
cannam@85 995 ac_prev=libexecdir ;;
cannam@85 996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
cannam@85 997 | --libexe=* | --libex=* | --libe=*)
cannam@85 998 libexecdir=$ac_optarg ;;
cannam@85 999
cannam@85 1000 -localedir | --localedir | --localedi | --localed | --locale)
cannam@85 1001 ac_prev=localedir ;;
cannam@85 1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
cannam@85 1003 localedir=$ac_optarg ;;
cannam@85 1004
cannam@85 1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
cannam@85 1006 | --localstate | --localstat | --localsta | --localst | --locals)
cannam@85 1007 ac_prev=localstatedir ;;
cannam@85 1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cannam@85 1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
cannam@85 1010 localstatedir=$ac_optarg ;;
cannam@85 1011
cannam@85 1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
cannam@85 1013 ac_prev=mandir ;;
cannam@85 1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
cannam@85 1015 mandir=$ac_optarg ;;
cannam@85 1016
cannam@85 1017 -nfp | --nfp | --nf)
cannam@85 1018 # Obsolete; use --without-fp.
cannam@85 1019 with_fp=no ;;
cannam@85 1020
cannam@85 1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
cannam@85 1022 | --no-cr | --no-c | -n)
cannam@85 1023 no_create=yes ;;
cannam@85 1024
cannam@85 1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
cannam@85 1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
cannam@85 1027 no_recursion=yes ;;
cannam@85 1028
cannam@85 1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
cannam@85 1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
cannam@85 1031 | --oldin | --oldi | --old | --ol | --o)
cannam@85 1032 ac_prev=oldincludedir ;;
cannam@85 1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
cannam@85 1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
cannam@85 1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
cannam@85 1036 oldincludedir=$ac_optarg ;;
cannam@85 1037
cannam@85 1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
cannam@85 1039 ac_prev=prefix ;;
cannam@85 1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
cannam@85 1041 prefix=$ac_optarg ;;
cannam@85 1042
cannam@85 1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
cannam@85 1044 | --program-pre | --program-pr | --program-p)
cannam@85 1045 ac_prev=program_prefix ;;
cannam@85 1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
cannam@85 1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
cannam@85 1048 program_prefix=$ac_optarg ;;
cannam@85 1049
cannam@85 1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
cannam@85 1051 | --program-suf | --program-su | --program-s)
cannam@85 1052 ac_prev=program_suffix ;;
cannam@85 1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
cannam@85 1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
cannam@85 1055 program_suffix=$ac_optarg ;;
cannam@85 1056
cannam@85 1057 -program-transform-name | --program-transform-name \
cannam@85 1058 | --program-transform-nam | --program-transform-na \
cannam@85 1059 | --program-transform-n | --program-transform- \
cannam@85 1060 | --program-transform | --program-transfor \
cannam@85 1061 | --program-transfo | --program-transf \
cannam@85 1062 | --program-trans | --program-tran \
cannam@85 1063 | --progr-tra | --program-tr | --program-t)
cannam@85 1064 ac_prev=program_transform_name ;;
cannam@85 1065 -program-transform-name=* | --program-transform-name=* \
cannam@85 1066 | --program-transform-nam=* | --program-transform-na=* \
cannam@85 1067 | --program-transform-n=* | --program-transform-=* \
cannam@85 1068 | --program-transform=* | --program-transfor=* \
cannam@85 1069 | --program-transfo=* | --program-transf=* \
cannam@85 1070 | --program-trans=* | --program-tran=* \
cannam@85 1071 | --progr-tra=* | --program-tr=* | --program-t=*)
cannam@85 1072 program_transform_name=$ac_optarg ;;
cannam@85 1073
cannam@85 1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
cannam@85 1075 ac_prev=pdfdir ;;
cannam@85 1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
cannam@85 1077 pdfdir=$ac_optarg ;;
cannam@85 1078
cannam@85 1079 -psdir | --psdir | --psdi | --psd | --ps)
cannam@85 1080 ac_prev=psdir ;;
cannam@85 1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
cannam@85 1082 psdir=$ac_optarg ;;
cannam@85 1083
cannam@85 1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@85 1085 | -silent | --silent | --silen | --sile | --sil)
cannam@85 1086 silent=yes ;;
cannam@85 1087
cannam@85 1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
cannam@85 1089 ac_prev=sbindir ;;
cannam@85 1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
cannam@85 1091 | --sbi=* | --sb=*)
cannam@85 1092 sbindir=$ac_optarg ;;
cannam@85 1093
cannam@85 1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
cannam@85 1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
cannam@85 1096 | --sharedst | --shareds | --shared | --share | --shar \
cannam@85 1097 | --sha | --sh)
cannam@85 1098 ac_prev=sharedstatedir ;;
cannam@85 1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
cannam@85 1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
cannam@85 1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
cannam@85 1102 | --sha=* | --sh=*)
cannam@85 1103 sharedstatedir=$ac_optarg ;;
cannam@85 1104
cannam@85 1105 -site | --site | --sit)
cannam@85 1106 ac_prev=site ;;
cannam@85 1107 -site=* | --site=* | --sit=*)
cannam@85 1108 site=$ac_optarg ;;
cannam@85 1109
cannam@85 1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
cannam@85 1111 ac_prev=srcdir ;;
cannam@85 1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
cannam@85 1113 srcdir=$ac_optarg ;;
cannam@85 1114
cannam@85 1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
cannam@85 1116 | --syscon | --sysco | --sysc | --sys | --sy)
cannam@85 1117 ac_prev=sysconfdir ;;
cannam@85 1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
cannam@85 1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
cannam@85 1120 sysconfdir=$ac_optarg ;;
cannam@85 1121
cannam@85 1122 -target | --target | --targe | --targ | --tar | --ta | --t)
cannam@85 1123 ac_prev=target_alias ;;
cannam@85 1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
cannam@85 1125 target_alias=$ac_optarg ;;
cannam@85 1126
cannam@85 1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
cannam@85 1128 verbose=yes ;;
cannam@85 1129
cannam@85 1130 -version | --version | --versio | --versi | --vers | -V)
cannam@85 1131 ac_init_version=: ;;
cannam@85 1132
cannam@85 1133 -with-* | --with-*)
cannam@85 1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
cannam@85 1135 # Reject names that are not valid shell variable names.
cannam@85 1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@85 1137 as_fn_error $? "invalid package name: $ac_useropt"
cannam@85 1138 ac_useropt_orig=$ac_useropt
cannam@85 1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@85 1140 case $ac_user_opts in
cannam@85 1141 *"
cannam@85 1142 "with_$ac_useropt"
cannam@85 1143 "*) ;;
cannam@85 1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
cannam@85 1145 ac_unrecognized_sep=', ';;
cannam@85 1146 esac
cannam@85 1147 eval with_$ac_useropt=\$ac_optarg ;;
cannam@85 1148
cannam@85 1149 -without-* | --without-*)
cannam@85 1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
cannam@85 1151 # Reject names that are not valid shell variable names.
cannam@85 1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@85 1153 as_fn_error $? "invalid package name: $ac_useropt"
cannam@85 1154 ac_useropt_orig=$ac_useropt
cannam@85 1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@85 1156 case $ac_user_opts in
cannam@85 1157 *"
cannam@85 1158 "with_$ac_useropt"
cannam@85 1159 "*) ;;
cannam@85 1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
cannam@85 1161 ac_unrecognized_sep=', ';;
cannam@85 1162 esac
cannam@85 1163 eval with_$ac_useropt=no ;;
cannam@85 1164
cannam@85 1165 --x)
cannam@85 1166 # Obsolete; use --with-x.
cannam@85 1167 with_x=yes ;;
cannam@85 1168
cannam@85 1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
cannam@85 1170 | --x-incl | --x-inc | --x-in | --x-i)
cannam@85 1171 ac_prev=x_includes ;;
cannam@85 1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
cannam@85 1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
cannam@85 1174 x_includes=$ac_optarg ;;
cannam@85 1175
cannam@85 1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
cannam@85 1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
cannam@85 1178 ac_prev=x_libraries ;;
cannam@85 1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
cannam@85 1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
cannam@85 1181 x_libraries=$ac_optarg ;;
cannam@85 1182
cannam@85 1183 -*) as_fn_error $? "unrecognized option: \`$ac_option'
cannam@85 1184 Try \`$0 --help' for more information"
cannam@85 1185 ;;
cannam@85 1186
cannam@85 1187 *=*)
cannam@85 1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
cannam@85 1189 # Reject names that are not valid shell variable names.
cannam@85 1190 case $ac_envvar in #(
cannam@85 1191 '' | [0-9]* | *[!_$as_cr_alnum]* )
cannam@85 1192 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cannam@85 1193 esac
cannam@85 1194 eval $ac_envvar=\$ac_optarg
cannam@85 1195 export $ac_envvar ;;
cannam@85 1196
cannam@85 1197 *)
cannam@85 1198 # FIXME: should be removed in autoconf 3.0.
cannam@85 1199 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
cannam@85 1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
cannam@85 1201 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cannam@85 1202 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cannam@85 1203 ;;
cannam@85 1204
cannam@85 1205 esac
cannam@85 1206 done
cannam@85 1207
cannam@85 1208 if test -n "$ac_prev"; then
cannam@85 1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cannam@85 1210 as_fn_error $? "missing argument to $ac_option"
cannam@85 1211 fi
cannam@85 1212
cannam@85 1213 if test -n "$ac_unrecognized_opts"; then
cannam@85 1214 case $enable_option_checking in
cannam@85 1215 no) ;;
cannam@85 1216 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cannam@85 1217 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
cannam@85 1218 esac
cannam@85 1219 fi
cannam@85 1220
cannam@85 1221 # Check all directory arguments for consistency.
cannam@85 1222 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
cannam@85 1223 datadir sysconfdir sharedstatedir localstatedir includedir \
cannam@85 1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
cannam@85 1225 libdir localedir mandir
cannam@85 1226 do
cannam@85 1227 eval ac_val=\$$ac_var
cannam@85 1228 # Remove trailing slashes.
cannam@85 1229 case $ac_val in
cannam@85 1230 */ )
cannam@85 1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
cannam@85 1232 eval $ac_var=\$ac_val;;
cannam@85 1233 esac
cannam@85 1234 # Be sure to have absolute directory names.
cannam@85 1235 case $ac_val in
cannam@85 1236 [\\/$]* | ?:[\\/]* ) continue;;
cannam@85 1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
cannam@85 1238 esac
cannam@85 1239 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cannam@85 1240 done
cannam@85 1241
cannam@85 1242 # There might be people who depend on the old broken behavior: `$host'
cannam@85 1243 # used to hold the argument of --host etc.
cannam@85 1244 # FIXME: To remove some day.
cannam@85 1245 build=$build_alias
cannam@85 1246 host=$host_alias
cannam@85 1247 target=$target_alias
cannam@85 1248
cannam@85 1249 # FIXME: To remove some day.
cannam@85 1250 if test "x$host_alias" != x; then
cannam@85 1251 if test "x$build_alias" = x; then
cannam@85 1252 cross_compiling=maybe
cannam@85 1253 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
cannam@85 1254 If a cross compiler is detected then cross compile mode will be used" >&2
cannam@85 1255 elif test "x$build_alias" != "x$host_alias"; then
cannam@85 1256 cross_compiling=yes
cannam@85 1257 fi
cannam@85 1258 fi
cannam@85 1259
cannam@85 1260 ac_tool_prefix=
cannam@85 1261 test -n "$host_alias" && ac_tool_prefix=$host_alias-
cannam@85 1262
cannam@85 1263 test "$silent" = yes && exec 6>/dev/null
cannam@85 1264
cannam@85 1265
cannam@85 1266 ac_pwd=`pwd` && test -n "$ac_pwd" &&
cannam@85 1267 ac_ls_di=`ls -di .` &&
cannam@85 1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cannam@85 1269 as_fn_error $? "working directory cannot be determined"
cannam@85 1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cannam@85 1271 as_fn_error $? "pwd does not report name of working directory"
cannam@85 1272
cannam@85 1273
cannam@85 1274 # Find the source files, if location was not specified.
cannam@85 1275 if test -z "$srcdir"; then
cannam@85 1276 ac_srcdir_defaulted=yes
cannam@85 1277 # Try the directory containing this script, then the parent directory.
cannam@85 1278 ac_confdir=`$as_dirname -- "$as_myself" ||
cannam@85 1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 1280 X"$as_myself" : 'X\(//\)[^/]' \| \
cannam@85 1281 X"$as_myself" : 'X\(//\)$' \| \
cannam@85 1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
cannam@85 1283 $as_echo X"$as_myself" |
cannam@85 1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@85 1285 s//\1/
cannam@85 1286 q
cannam@85 1287 }
cannam@85 1288 /^X\(\/\/\)[^/].*/{
cannam@85 1289 s//\1/
cannam@85 1290 q
cannam@85 1291 }
cannam@85 1292 /^X\(\/\/\)$/{
cannam@85 1293 s//\1/
cannam@85 1294 q
cannam@85 1295 }
cannam@85 1296 /^X\(\/\).*/{
cannam@85 1297 s//\1/
cannam@85 1298 q
cannam@85 1299 }
cannam@85 1300 s/.*/./; q'`
cannam@85 1301 srcdir=$ac_confdir
cannam@85 1302 if test ! -r "$srcdir/$ac_unique_file"; then
cannam@85 1303 srcdir=..
cannam@85 1304 fi
cannam@85 1305 else
cannam@85 1306 ac_srcdir_defaulted=no
cannam@85 1307 fi
cannam@85 1308 if test ! -r "$srcdir/$ac_unique_file"; then
cannam@85 1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cannam@85 1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cannam@85 1311 fi
cannam@85 1312 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
cannam@85 1313 ac_abs_confdir=`(
cannam@85 1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cannam@85 1315 pwd)`
cannam@85 1316 # When building in place, set srcdir=.
cannam@85 1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
cannam@85 1318 srcdir=.
cannam@85 1319 fi
cannam@85 1320 # Remove unnecessary trailing slashes from srcdir.
cannam@85 1321 # Double slashes in file names in object file debugging info
cannam@85 1322 # mess up M-x gdb in Emacs.
cannam@85 1323 case $srcdir in
cannam@85 1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
cannam@85 1325 esac
cannam@85 1326 for ac_var in $ac_precious_vars; do
cannam@85 1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
cannam@85 1328 eval ac_env_${ac_var}_value=\$${ac_var}
cannam@85 1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
cannam@85 1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
cannam@85 1331 done
cannam@85 1332
cannam@85 1333 #
cannam@85 1334 # Report the --help message.
cannam@85 1335 #
cannam@85 1336 if test "$ac_init_help" = "long"; then
cannam@85 1337 # Omit some internal or obsolete options to make the list less imposing.
cannam@85 1338 # This message is too long to be a string in the A/UX 3.1 sh.
cannam@85 1339 cat <<_ACEOF
cannam@85 1340 \`configure' configures libsamplerate 0.1.8 to adapt to many kinds of systems.
cannam@85 1341
cannam@85 1342 Usage: $0 [OPTION]... [VAR=VALUE]...
cannam@85 1343
cannam@85 1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
cannam@85 1345 VAR=VALUE. See below for descriptions of some of the useful variables.
cannam@85 1346
cannam@85 1347 Defaults for the options are specified in brackets.
cannam@85 1348
cannam@85 1349 Configuration:
cannam@85 1350 -h, --help display this help and exit
cannam@85 1351 --help=short display options specific to this package
cannam@85 1352 --help=recursive display the short help of all the included packages
cannam@85 1353 -V, --version display version information and exit
cannam@85 1354 -q, --quiet, --silent do not print \`checking ...' messages
cannam@85 1355 --cache-file=FILE cache test results in FILE [disabled]
cannam@85 1356 -C, --config-cache alias for \`--cache-file=config.cache'
cannam@85 1357 -n, --no-create do not create output files
cannam@85 1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
cannam@85 1359
cannam@85 1360 Installation directories:
cannam@85 1361 --prefix=PREFIX install architecture-independent files in PREFIX
cannam@85 1362 [$ac_default_prefix]
cannam@85 1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
cannam@85 1364 [PREFIX]
cannam@85 1365
cannam@85 1366 By default, \`make install' will install all the files in
cannam@85 1367 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
cannam@85 1368 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
cannam@85 1369 for instance \`--prefix=\$HOME'.
cannam@85 1370
cannam@85 1371 For better control, use the options below.
cannam@85 1372
cannam@85 1373 Fine tuning of the installation directories:
cannam@85 1374 --bindir=DIR user executables [EPREFIX/bin]
cannam@85 1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
cannam@85 1376 --libexecdir=DIR program executables [EPREFIX/libexec]
cannam@85 1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
cannam@85 1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
cannam@85 1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
cannam@85 1380 --libdir=DIR object code libraries [EPREFIX/lib]
cannam@85 1381 --includedir=DIR C header files [PREFIX/include]
cannam@85 1382 --oldincludedir=DIR C header files for non-gcc [/usr/include]
cannam@85 1383 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
cannam@85 1384 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
cannam@85 1385 --infodir=DIR info documentation [DATAROOTDIR/info]
cannam@85 1386 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
cannam@85 1387 --mandir=DIR man documentation [DATAROOTDIR/man]
cannam@85 1388 --docdir=DIR documentation root [DATAROOTDIR/doc/libsamplerate]
cannam@85 1389 --htmldir=DIR html documentation [DOCDIR]
cannam@85 1390 --dvidir=DIR dvi documentation [DOCDIR]
cannam@85 1391 --pdfdir=DIR pdf documentation [DOCDIR]
cannam@85 1392 --psdir=DIR ps documentation [DOCDIR]
cannam@85 1393 _ACEOF
cannam@85 1394
cannam@85 1395 cat <<\_ACEOF
cannam@85 1396
cannam@85 1397 Program names:
cannam@85 1398 --program-prefix=PREFIX prepend PREFIX to installed program names
cannam@85 1399 --program-suffix=SUFFIX append SUFFIX to installed program names
cannam@85 1400 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
cannam@85 1401
cannam@85 1402 System types:
cannam@85 1403 --build=BUILD configure for building on BUILD [guessed]
cannam@85 1404 --host=HOST cross-compile to build programs to run on HOST [BUILD]
cannam@85 1405 --target=TARGET configure for building compilers for TARGET [HOST]
cannam@85 1406 _ACEOF
cannam@85 1407 fi
cannam@85 1408
cannam@85 1409 if test -n "$ac_init_help"; then
cannam@85 1410 case $ac_init_help in
cannam@85 1411 short | recursive ) echo "Configuration of libsamplerate 0.1.8:";;
cannam@85 1412 esac
cannam@85 1413 cat <<\_ACEOF
cannam@85 1414
cannam@85 1415 Optional Features:
cannam@85 1416 --disable-option-checking ignore unrecognized --enable/--with options
cannam@85 1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
cannam@85 1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cannam@85 1419 --enable-silent-rules less verbose build output (undo: `make V=1')
cannam@85 1420 --disable-silent-rules verbose build output (undo: `make V=0')
cannam@85 1421 --disable-dependency-tracking speeds up one-time build
cannam@85 1422 --enable-dependency-tracking do not reject slow dependency extractors
cannam@85 1423 --enable-shared[=PKGS] build shared libraries [default=yes]
cannam@85 1424 --enable-static[=PKGS] build static libraries [default=yes]
cannam@85 1425 --enable-fast-install[=PKGS]
cannam@85 1426 optimize for fast installation [default=yes]
cannam@85 1427 --disable-libtool-lock avoid locking (might break parallel builds)
cannam@85 1428 --enable-gcc-werror enable -Werror in all Makefiles
cannam@85 1429 --disable-gcc-pipe disable gcc -pipe option
cannam@85 1430 --disable-gcc-opt disable gcc optimisations
cannam@85 1431 --disable-fftw disable usage of FFTW
cannam@85 1432 --disable-cpu-clip disable tricky cpu specific clipper
cannam@85 1433 --disable-sndfile disable support for sndfile (default=autodetect)
cannam@85 1434
cannam@85 1435 Optional Packages:
cannam@85 1436 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
cannam@85 1437 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cannam@85 1438 --with-pic try to use only PIC/non-PIC objects [default=use
cannam@85 1439 both]
cannam@85 1440 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cannam@85 1441 --with-sysroot=DIR Search for dependent libraries within DIR
cannam@85 1442 (or the compiler's sysroot if not specified).
cannam@85 1443
cannam@85 1444 Some influential environment variables:
cannam@85 1445 CC C compiler command
cannam@85 1446 CFLAGS C compiler flags
cannam@85 1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
cannam@85 1448 nonstandard directory <lib dir>
cannam@85 1449 LIBS libraries to pass to the linker, e.g. -l<library>
cannam@85 1450 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cannam@85 1451 you have headers in a nonstandard directory <include dir>
cannam@85 1452 CXX C++ compiler command
cannam@85 1453 CXXFLAGS C++ compiler flags
cannam@85 1454 CPP C preprocessor
cannam@85 1455 CXXCPP C++ preprocessor
cannam@85 1456 PKG_CONFIG path to pkg-config utility
cannam@85 1457 PKG_CONFIG_PATH
cannam@85 1458 directories to add to pkg-config's search path
cannam@85 1459 PKG_CONFIG_LIBDIR
cannam@85 1460 path overriding pkg-config's built-in search path
cannam@85 1461 SNDFILE_CFLAGS
cannam@85 1462 C compiler flags for SNDFILE, overriding pkg-config
cannam@85 1463 SNDFILE_LIBS
cannam@85 1464 linker flags for SNDFILE, overriding pkg-config
cannam@85 1465 FFTW3_CFLAGS
cannam@85 1466 C compiler flags for FFTW3, overriding pkg-config
cannam@85 1467 FFTW3_LIBS linker flags for FFTW3, overriding pkg-config
cannam@85 1468
cannam@85 1469 Use these variables to override the choices made by `configure' or to help
cannam@85 1470 it to find libraries and programs with nonstandard names/locations.
cannam@85 1471
cannam@85 1472 Report bugs to <erikd@mega-nerd.com>.
cannam@85 1473 libsamplerate home page: <http://www.mega-nerd.com/libsamplerate/>.
cannam@85 1474 _ACEOF
cannam@85 1475 ac_status=$?
cannam@85 1476 fi
cannam@85 1477
cannam@85 1478 if test "$ac_init_help" = "recursive"; then
cannam@85 1479 # If there are subdirs, report their specific --help.
cannam@85 1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
cannam@85 1481 test -d "$ac_dir" ||
cannam@85 1482 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
cannam@85 1483 continue
cannam@85 1484 ac_builddir=.
cannam@85 1485
cannam@85 1486 case "$ac_dir" in
cannam@85 1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@85 1488 *)
cannam@85 1489 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
cannam@85 1490 # A ".." for each directory in $ac_dir_suffix.
cannam@85 1491 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
cannam@85 1492 case $ac_top_builddir_sub in
cannam@85 1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@85 1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
cannam@85 1495 esac ;;
cannam@85 1496 esac
cannam@85 1497 ac_abs_top_builddir=$ac_pwd
cannam@85 1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
cannam@85 1499 # for backward compatibility:
cannam@85 1500 ac_top_builddir=$ac_top_build_prefix
cannam@85 1501
cannam@85 1502 case $srcdir in
cannam@85 1503 .) # We are building in place.
cannam@85 1504 ac_srcdir=.
cannam@85 1505 ac_top_srcdir=$ac_top_builddir_sub
cannam@85 1506 ac_abs_top_srcdir=$ac_pwd ;;
cannam@85 1507 [\\/]* | ?:[\\/]* ) # Absolute name.
cannam@85 1508 ac_srcdir=$srcdir$ac_dir_suffix;
cannam@85 1509 ac_top_srcdir=$srcdir
cannam@85 1510 ac_abs_top_srcdir=$srcdir ;;
cannam@85 1511 *) # Relative name.
cannam@85 1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
cannam@85 1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
cannam@85 1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
cannam@85 1515 esac
cannam@85 1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
cannam@85 1517
cannam@85 1518 cd "$ac_dir" || { ac_status=$?; continue; }
cannam@85 1519 # Check for guested configure.
cannam@85 1520 if test -f "$ac_srcdir/configure.gnu"; then
cannam@85 1521 echo &&
cannam@85 1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
cannam@85 1523 elif test -f "$ac_srcdir/configure"; then
cannam@85 1524 echo &&
cannam@85 1525 $SHELL "$ac_srcdir/configure" --help=recursive
cannam@85 1526 else
cannam@85 1527 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
cannam@85 1528 fi || ac_status=$?
cannam@85 1529 cd "$ac_pwd" || { ac_status=$?; break; }
cannam@85 1530 done
cannam@85 1531 fi
cannam@85 1532
cannam@85 1533 test -n "$ac_init_help" && exit $ac_status
cannam@85 1534 if $ac_init_version; then
cannam@85 1535 cat <<\_ACEOF
cannam@85 1536 libsamplerate configure 0.1.8
cannam@85 1537 generated by GNU Autoconf 2.68
cannam@85 1538
cannam@85 1539 Copyright (C) 2010 Free Software Foundation, Inc.
cannam@85 1540 This configure script is free software; the Free Software Foundation
cannam@85 1541 gives unlimited permission to copy, distribute and modify it.
cannam@85 1542 _ACEOF
cannam@85 1543 exit
cannam@85 1544 fi
cannam@85 1545
cannam@85 1546 ## ------------------------ ##
cannam@85 1547 ## Autoconf initialization. ##
cannam@85 1548 ## ------------------------ ##
cannam@85 1549
cannam@85 1550 # ac_fn_c_try_compile LINENO
cannam@85 1551 # --------------------------
cannam@85 1552 # Try to compile conftest.$ac_ext, and return whether this succeeded.
cannam@85 1553 ac_fn_c_try_compile ()
cannam@85 1554 {
cannam@85 1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@85 1556 rm -f conftest.$ac_objext
cannam@85 1557 if { { ac_try="$ac_compile"
cannam@85 1558 case "(($ac_try" in
cannam@85 1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@85 1560 *) ac_try_echo=$ac_try;;
cannam@85 1561 esac
cannam@85 1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@85 1563 $as_echo "$ac_try_echo"; } >&5
cannam@85 1564 (eval "$ac_compile") 2>conftest.err
cannam@85 1565 ac_status=$?
cannam@85 1566 if test -s conftest.err; then
cannam@85 1567 grep -v '^ *+' conftest.err >conftest.er1
cannam@85 1568 cat conftest.er1 >&5
cannam@85 1569 mv -f conftest.er1 conftest.err
cannam@85 1570 fi
cannam@85 1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 1572 test $ac_status = 0; } && {
cannam@85 1573 test -z "$ac_c_werror_flag" ||
cannam@85 1574 test ! -s conftest.err
cannam@85 1575 } && test -s conftest.$ac_objext; then :
cannam@85 1576 ac_retval=0
cannam@85 1577 else
cannam@85 1578 $as_echo "$as_me: failed program was:" >&5
cannam@85 1579 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 1580
cannam@85 1581 ac_retval=1
cannam@85 1582 fi
cannam@85 1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@85 1584 as_fn_set_status $ac_retval
cannam@85 1585
cannam@85 1586 } # ac_fn_c_try_compile
cannam@85 1587
cannam@85 1588 # ac_fn_cxx_try_compile LINENO
cannam@85 1589 # ----------------------------
cannam@85 1590 # Try to compile conftest.$ac_ext, and return whether this succeeded.
cannam@85 1591 ac_fn_cxx_try_compile ()
cannam@85 1592 {
cannam@85 1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@85 1594 rm -f conftest.$ac_objext
cannam@85 1595 if { { ac_try="$ac_compile"
cannam@85 1596 case "(($ac_try" in
cannam@85 1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@85 1598 *) ac_try_echo=$ac_try;;
cannam@85 1599 esac
cannam@85 1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@85 1601 $as_echo "$ac_try_echo"; } >&5
cannam@85 1602 (eval "$ac_compile") 2>conftest.err
cannam@85 1603 ac_status=$?
cannam@85 1604 if test -s conftest.err; then
cannam@85 1605 grep -v '^ *+' conftest.err >conftest.er1
cannam@85 1606 cat conftest.er1 >&5
cannam@85 1607 mv -f conftest.er1 conftest.err
cannam@85 1608 fi
cannam@85 1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 1610 test $ac_status = 0; } && {
cannam@85 1611 test -z "$ac_cxx_werror_flag" ||
cannam@85 1612 test ! -s conftest.err
cannam@85 1613 } && test -s conftest.$ac_objext; then :
cannam@85 1614 ac_retval=0
cannam@85 1615 else
cannam@85 1616 $as_echo "$as_me: failed program was:" >&5
cannam@85 1617 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 1618
cannam@85 1619 ac_retval=1
cannam@85 1620 fi
cannam@85 1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@85 1622 as_fn_set_status $ac_retval
cannam@85 1623
cannam@85 1624 } # ac_fn_cxx_try_compile
cannam@85 1625
cannam@85 1626 # ac_fn_c_try_link LINENO
cannam@85 1627 # -----------------------
cannam@85 1628 # Try to link conftest.$ac_ext, and return whether this succeeded.
cannam@85 1629 ac_fn_c_try_link ()
cannam@85 1630 {
cannam@85 1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@85 1632 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 1633 if { { ac_try="$ac_link"
cannam@85 1634 case "(($ac_try" in
cannam@85 1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@85 1636 *) ac_try_echo=$ac_try;;
cannam@85 1637 esac
cannam@85 1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@85 1639 $as_echo "$ac_try_echo"; } >&5
cannam@85 1640 (eval "$ac_link") 2>conftest.err
cannam@85 1641 ac_status=$?
cannam@85 1642 if test -s conftest.err; then
cannam@85 1643 grep -v '^ *+' conftest.err >conftest.er1
cannam@85 1644 cat conftest.er1 >&5
cannam@85 1645 mv -f conftest.er1 conftest.err
cannam@85 1646 fi
cannam@85 1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 1648 test $ac_status = 0; } && {
cannam@85 1649 test -z "$ac_c_werror_flag" ||
cannam@85 1650 test ! -s conftest.err
cannam@85 1651 } && test -s conftest$ac_exeext && {
cannam@85 1652 test "$cross_compiling" = yes ||
cannam@85 1653 $as_test_x conftest$ac_exeext
cannam@85 1654 }; then :
cannam@85 1655 ac_retval=0
cannam@85 1656 else
cannam@85 1657 $as_echo "$as_me: failed program was:" >&5
cannam@85 1658 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 1659
cannam@85 1660 ac_retval=1
cannam@85 1661 fi
cannam@85 1662 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
cannam@85 1663 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
cannam@85 1664 # interfere with the next link command; also delete a directory that is
cannam@85 1665 # left behind by Apple's compiler. We do this before executing the actions.
cannam@85 1666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cannam@85 1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@85 1668 as_fn_set_status $ac_retval
cannam@85 1669
cannam@85 1670 } # ac_fn_c_try_link
cannam@85 1671
cannam@85 1672 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
cannam@85 1673 # -------------------------------------------------------
cannam@85 1674 # Tests whether HEADER exists and can be compiled using the include files in
cannam@85 1675 # INCLUDES, setting the cache variable VAR accordingly.
cannam@85 1676 ac_fn_c_check_header_compile ()
cannam@85 1677 {
cannam@85 1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@85 1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@85 1680 $as_echo_n "checking for $2... " >&6; }
cannam@85 1681 if eval \${$3+:} false; then :
cannam@85 1682 $as_echo_n "(cached) " >&6
cannam@85 1683 else
cannam@85 1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 1685 /* end confdefs.h. */
cannam@85 1686 $4
cannam@85 1687 #include <$2>
cannam@85 1688 _ACEOF
cannam@85 1689 if ac_fn_c_try_compile "$LINENO"; then :
cannam@85 1690 eval "$3=yes"
cannam@85 1691 else
cannam@85 1692 eval "$3=no"
cannam@85 1693 fi
cannam@85 1694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 1695 fi
cannam@85 1696 eval ac_res=\$$3
cannam@85 1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@85 1698 $as_echo "$ac_res" >&6; }
cannam@85 1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@85 1700
cannam@85 1701 } # ac_fn_c_check_header_compile
cannam@85 1702
cannam@85 1703 # ac_fn_c_try_cpp LINENO
cannam@85 1704 # ----------------------
cannam@85 1705 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
cannam@85 1706 ac_fn_c_try_cpp ()
cannam@85 1707 {
cannam@85 1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@85 1709 if { { ac_try="$ac_cpp conftest.$ac_ext"
cannam@85 1710 case "(($ac_try" in
cannam@85 1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@85 1712 *) ac_try_echo=$ac_try;;
cannam@85 1713 esac
cannam@85 1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@85 1715 $as_echo "$ac_try_echo"; } >&5
cannam@85 1716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
cannam@85 1717 ac_status=$?
cannam@85 1718 if test -s conftest.err; then
cannam@85 1719 grep -v '^ *+' conftest.err >conftest.er1
cannam@85 1720 cat conftest.er1 >&5
cannam@85 1721 mv -f conftest.er1 conftest.err
cannam@85 1722 fi
cannam@85 1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 1724 test $ac_status = 0; } > conftest.i && {
cannam@85 1725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
cannam@85 1726 test ! -s conftest.err
cannam@85 1727 }; then :
cannam@85 1728 ac_retval=0
cannam@85 1729 else
cannam@85 1730 $as_echo "$as_me: failed program was:" >&5
cannam@85 1731 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 1732
cannam@85 1733 ac_retval=1
cannam@85 1734 fi
cannam@85 1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@85 1736 as_fn_set_status $ac_retval
cannam@85 1737
cannam@85 1738 } # ac_fn_c_try_cpp
cannam@85 1739
cannam@85 1740 # ac_fn_c_try_run LINENO
cannam@85 1741 # ----------------------
cannam@85 1742 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
cannam@85 1743 # that executables *can* be run.
cannam@85 1744 ac_fn_c_try_run ()
cannam@85 1745 {
cannam@85 1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@85 1747 if { { ac_try="$ac_link"
cannam@85 1748 case "(($ac_try" in
cannam@85 1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@85 1750 *) ac_try_echo=$ac_try;;
cannam@85 1751 esac
cannam@85 1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@85 1753 $as_echo "$ac_try_echo"; } >&5
cannam@85 1754 (eval "$ac_link") 2>&5
cannam@85 1755 ac_status=$?
cannam@85 1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 1757 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
cannam@85 1758 { { case "(($ac_try" in
cannam@85 1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@85 1760 *) ac_try_echo=$ac_try;;
cannam@85 1761 esac
cannam@85 1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@85 1763 $as_echo "$ac_try_echo"; } >&5
cannam@85 1764 (eval "$ac_try") 2>&5
cannam@85 1765 ac_status=$?
cannam@85 1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 1767 test $ac_status = 0; }; }; then :
cannam@85 1768 ac_retval=0
cannam@85 1769 else
cannam@85 1770 $as_echo "$as_me: program exited with status $ac_status" >&5
cannam@85 1771 $as_echo "$as_me: failed program was:" >&5
cannam@85 1772 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 1773
cannam@85 1774 ac_retval=$ac_status
cannam@85 1775 fi
cannam@85 1776 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cannam@85 1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@85 1778 as_fn_set_status $ac_retval
cannam@85 1779
cannam@85 1780 } # ac_fn_c_try_run
cannam@85 1781
cannam@85 1782 # ac_fn_c_check_func LINENO FUNC VAR
cannam@85 1783 # ----------------------------------
cannam@85 1784 # Tests whether FUNC exists, setting the cache variable VAR accordingly
cannam@85 1785 ac_fn_c_check_func ()
cannam@85 1786 {
cannam@85 1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@85 1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@85 1789 $as_echo_n "checking for $2... " >&6; }
cannam@85 1790 if eval \${$3+:} false; then :
cannam@85 1791 $as_echo_n "(cached) " >&6
cannam@85 1792 else
cannam@85 1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 1794 /* end confdefs.h. */
cannam@85 1795 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
cannam@85 1796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
cannam@85 1797 #define $2 innocuous_$2
cannam@85 1798
cannam@85 1799 /* System header to define __stub macros and hopefully few prototypes,
cannam@85 1800 which can conflict with char $2 (); below.
cannam@85 1801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 1802 <limits.h> exists even on freestanding compilers. */
cannam@85 1803
cannam@85 1804 #ifdef __STDC__
cannam@85 1805 # include <limits.h>
cannam@85 1806 #else
cannam@85 1807 # include <assert.h>
cannam@85 1808 #endif
cannam@85 1809
cannam@85 1810 #undef $2
cannam@85 1811
cannam@85 1812 /* Override any GCC internal prototype to avoid an error.
cannam@85 1813 Use char because int might match the return type of a GCC
cannam@85 1814 builtin and then its argument prototype would still apply. */
cannam@85 1815 #ifdef __cplusplus
cannam@85 1816 extern "C"
cannam@85 1817 #endif
cannam@85 1818 char $2 ();
cannam@85 1819 /* The GNU C library defines this for functions which it implements
cannam@85 1820 to always fail with ENOSYS. Some functions are actually named
cannam@85 1821 something starting with __ and the normal name is an alias. */
cannam@85 1822 #if defined __stub_$2 || defined __stub___$2
cannam@85 1823 choke me
cannam@85 1824 #endif
cannam@85 1825
cannam@85 1826 int
cannam@85 1827 main ()
cannam@85 1828 {
cannam@85 1829 return $2 ();
cannam@85 1830 ;
cannam@85 1831 return 0;
cannam@85 1832 }
cannam@85 1833 _ACEOF
cannam@85 1834 if ac_fn_c_try_link "$LINENO"; then :
cannam@85 1835 eval "$3=yes"
cannam@85 1836 else
cannam@85 1837 eval "$3=no"
cannam@85 1838 fi
cannam@85 1839 rm -f core conftest.err conftest.$ac_objext \
cannam@85 1840 conftest$ac_exeext conftest.$ac_ext
cannam@85 1841 fi
cannam@85 1842 eval ac_res=\$$3
cannam@85 1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@85 1844 $as_echo "$ac_res" >&6; }
cannam@85 1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@85 1846
cannam@85 1847 } # ac_fn_c_check_func
cannam@85 1848
cannam@85 1849 # ac_fn_cxx_try_cpp LINENO
cannam@85 1850 # ------------------------
cannam@85 1851 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
cannam@85 1852 ac_fn_cxx_try_cpp ()
cannam@85 1853 {
cannam@85 1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@85 1855 if { { ac_try="$ac_cpp conftest.$ac_ext"
cannam@85 1856 case "(($ac_try" in
cannam@85 1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@85 1858 *) ac_try_echo=$ac_try;;
cannam@85 1859 esac
cannam@85 1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@85 1861 $as_echo "$ac_try_echo"; } >&5
cannam@85 1862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
cannam@85 1863 ac_status=$?
cannam@85 1864 if test -s conftest.err; then
cannam@85 1865 grep -v '^ *+' conftest.err >conftest.er1
cannam@85 1866 cat conftest.er1 >&5
cannam@85 1867 mv -f conftest.er1 conftest.err
cannam@85 1868 fi
cannam@85 1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 1870 test $ac_status = 0; } > conftest.i && {
cannam@85 1871 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
cannam@85 1872 test ! -s conftest.err
cannam@85 1873 }; then :
cannam@85 1874 ac_retval=0
cannam@85 1875 else
cannam@85 1876 $as_echo "$as_me: failed program was:" >&5
cannam@85 1877 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 1878
cannam@85 1879 ac_retval=1
cannam@85 1880 fi
cannam@85 1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@85 1882 as_fn_set_status $ac_retval
cannam@85 1883
cannam@85 1884 } # ac_fn_cxx_try_cpp
cannam@85 1885
cannam@85 1886 # ac_fn_cxx_try_link LINENO
cannam@85 1887 # -------------------------
cannam@85 1888 # Try to link conftest.$ac_ext, and return whether this succeeded.
cannam@85 1889 ac_fn_cxx_try_link ()
cannam@85 1890 {
cannam@85 1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@85 1892 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 1893 if { { ac_try="$ac_link"
cannam@85 1894 case "(($ac_try" in
cannam@85 1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@85 1896 *) ac_try_echo=$ac_try;;
cannam@85 1897 esac
cannam@85 1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@85 1899 $as_echo "$ac_try_echo"; } >&5
cannam@85 1900 (eval "$ac_link") 2>conftest.err
cannam@85 1901 ac_status=$?
cannam@85 1902 if test -s conftest.err; then
cannam@85 1903 grep -v '^ *+' conftest.err >conftest.er1
cannam@85 1904 cat conftest.er1 >&5
cannam@85 1905 mv -f conftest.er1 conftest.err
cannam@85 1906 fi
cannam@85 1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 1908 test $ac_status = 0; } && {
cannam@85 1909 test -z "$ac_cxx_werror_flag" ||
cannam@85 1910 test ! -s conftest.err
cannam@85 1911 } && test -s conftest$ac_exeext && {
cannam@85 1912 test "$cross_compiling" = yes ||
cannam@85 1913 $as_test_x conftest$ac_exeext
cannam@85 1914 }; then :
cannam@85 1915 ac_retval=0
cannam@85 1916 else
cannam@85 1917 $as_echo "$as_me: failed program was:" >&5
cannam@85 1918 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 1919
cannam@85 1920 ac_retval=1
cannam@85 1921 fi
cannam@85 1922 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
cannam@85 1923 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
cannam@85 1924 # interfere with the next link command; also delete a directory that is
cannam@85 1925 # left behind by Apple's compiler. We do this before executing the actions.
cannam@85 1926 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cannam@85 1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@85 1928 as_fn_set_status $ac_retval
cannam@85 1929
cannam@85 1930 } # ac_fn_cxx_try_link
cannam@85 1931
cannam@85 1932 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
cannam@85 1933 # -------------------------------------------------------
cannam@85 1934 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
cannam@85 1935 # the include files in INCLUDES and setting the cache variable VAR
cannam@85 1936 # accordingly.
cannam@85 1937 ac_fn_c_check_header_mongrel ()
cannam@85 1938 {
cannam@85 1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@85 1940 if eval \${$3+:} false; then :
cannam@85 1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@85 1942 $as_echo_n "checking for $2... " >&6; }
cannam@85 1943 if eval \${$3+:} false; then :
cannam@85 1944 $as_echo_n "(cached) " >&6
cannam@85 1945 fi
cannam@85 1946 eval ac_res=\$$3
cannam@85 1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@85 1948 $as_echo "$ac_res" >&6; }
cannam@85 1949 else
cannam@85 1950 # Is the header compilable?
cannam@85 1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
cannam@85 1952 $as_echo_n "checking $2 usability... " >&6; }
cannam@85 1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 1954 /* end confdefs.h. */
cannam@85 1955 $4
cannam@85 1956 #include <$2>
cannam@85 1957 _ACEOF
cannam@85 1958 if ac_fn_c_try_compile "$LINENO"; then :
cannam@85 1959 ac_header_compiler=yes
cannam@85 1960 else
cannam@85 1961 ac_header_compiler=no
cannam@85 1962 fi
cannam@85 1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
cannam@85 1965 $as_echo "$ac_header_compiler" >&6; }
cannam@85 1966
cannam@85 1967 # Is the header present?
cannam@85 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
cannam@85 1969 $as_echo_n "checking $2 presence... " >&6; }
cannam@85 1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 1971 /* end confdefs.h. */
cannam@85 1972 #include <$2>
cannam@85 1973 _ACEOF
cannam@85 1974 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@85 1975 ac_header_preproc=yes
cannam@85 1976 else
cannam@85 1977 ac_header_preproc=no
cannam@85 1978 fi
cannam@85 1979 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@85 1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
cannam@85 1981 $as_echo "$ac_header_preproc" >&6; }
cannam@85 1982
cannam@85 1983 # So? What about this header?
cannam@85 1984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
cannam@85 1985 yes:no: )
cannam@85 1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
cannam@85 1987 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
cannam@85 1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
cannam@85 1989 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cannam@85 1990 ;;
cannam@85 1991 no:yes:* )
cannam@85 1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
cannam@85 1993 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
cannam@85 1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
cannam@85 1995 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
cannam@85 1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
cannam@85 1997 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
cannam@85 1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
cannam@85 1999 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
cannam@85 2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
cannam@85 2001 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cannam@85 2002 ( $as_echo "## ---------------------------------- ##
cannam@85 2003 ## Report this to erikd@mega-nerd.com ##
cannam@85 2004 ## ---------------------------------- ##"
cannam@85 2005 ) | sed "s/^/$as_me: WARNING: /" >&2
cannam@85 2006 ;;
cannam@85 2007 esac
cannam@85 2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@85 2009 $as_echo_n "checking for $2... " >&6; }
cannam@85 2010 if eval \${$3+:} false; then :
cannam@85 2011 $as_echo_n "(cached) " >&6
cannam@85 2012 else
cannam@85 2013 eval "$3=\$ac_header_compiler"
cannam@85 2014 fi
cannam@85 2015 eval ac_res=\$$3
cannam@85 2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@85 2017 $as_echo "$ac_res" >&6; }
cannam@85 2018 fi
cannam@85 2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@85 2020
cannam@85 2021 } # ac_fn_c_check_header_mongrel
cannam@85 2022
cannam@85 2023 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
cannam@85 2024 # --------------------------------------------
cannam@85 2025 # Tries to find the compile-time value of EXPR in a program that includes
cannam@85 2026 # INCLUDES, setting VAR accordingly. Returns whether the value could be
cannam@85 2027 # computed
cannam@85 2028 ac_fn_c_compute_int ()
cannam@85 2029 {
cannam@85 2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@85 2031 if test "$cross_compiling" = yes; then
cannam@85 2032 # Depending upon the size, compute the lo and hi bounds.
cannam@85 2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 2034 /* end confdefs.h. */
cannam@85 2035 $4
cannam@85 2036 int
cannam@85 2037 main ()
cannam@85 2038 {
cannam@85 2039 static int test_array [1 - 2 * !(($2) >= 0)];
cannam@85 2040 test_array [0] = 0
cannam@85 2041
cannam@85 2042 ;
cannam@85 2043 return 0;
cannam@85 2044 }
cannam@85 2045 _ACEOF
cannam@85 2046 if ac_fn_c_try_compile "$LINENO"; then :
cannam@85 2047 ac_lo=0 ac_mid=0
cannam@85 2048 while :; do
cannam@85 2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 2050 /* end confdefs.h. */
cannam@85 2051 $4
cannam@85 2052 int
cannam@85 2053 main ()
cannam@85 2054 {
cannam@85 2055 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cannam@85 2056 test_array [0] = 0
cannam@85 2057
cannam@85 2058 ;
cannam@85 2059 return 0;
cannam@85 2060 }
cannam@85 2061 _ACEOF
cannam@85 2062 if ac_fn_c_try_compile "$LINENO"; then :
cannam@85 2063 ac_hi=$ac_mid; break
cannam@85 2064 else
cannam@85 2065 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
cannam@85 2066 if test $ac_lo -le $ac_mid; then
cannam@85 2067 ac_lo= ac_hi=
cannam@85 2068 break
cannam@85 2069 fi
cannam@85 2070 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
cannam@85 2071 fi
cannam@85 2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 2073 done
cannam@85 2074 else
cannam@85 2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 2076 /* end confdefs.h. */
cannam@85 2077 $4
cannam@85 2078 int
cannam@85 2079 main ()
cannam@85 2080 {
cannam@85 2081 static int test_array [1 - 2 * !(($2) < 0)];
cannam@85 2082 test_array [0] = 0
cannam@85 2083
cannam@85 2084 ;
cannam@85 2085 return 0;
cannam@85 2086 }
cannam@85 2087 _ACEOF
cannam@85 2088 if ac_fn_c_try_compile "$LINENO"; then :
cannam@85 2089 ac_hi=-1 ac_mid=-1
cannam@85 2090 while :; do
cannam@85 2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 2092 /* end confdefs.h. */
cannam@85 2093 $4
cannam@85 2094 int
cannam@85 2095 main ()
cannam@85 2096 {
cannam@85 2097 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cannam@85 2098 test_array [0] = 0
cannam@85 2099
cannam@85 2100 ;
cannam@85 2101 return 0;
cannam@85 2102 }
cannam@85 2103 _ACEOF
cannam@85 2104 if ac_fn_c_try_compile "$LINENO"; then :
cannam@85 2105 ac_lo=$ac_mid; break
cannam@85 2106 else
cannam@85 2107 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
cannam@85 2108 if test $ac_mid -le $ac_hi; then
cannam@85 2109 ac_lo= ac_hi=
cannam@85 2110 break
cannam@85 2111 fi
cannam@85 2112 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
cannam@85 2113 fi
cannam@85 2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 2115 done
cannam@85 2116 else
cannam@85 2117 ac_lo= ac_hi=
cannam@85 2118 fi
cannam@85 2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 2120 fi
cannam@85 2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 2122 # Binary search between lo and hi bounds.
cannam@85 2123 while test "x$ac_lo" != "x$ac_hi"; do
cannam@85 2124 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
cannam@85 2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 2126 /* end confdefs.h. */
cannam@85 2127 $4
cannam@85 2128 int
cannam@85 2129 main ()
cannam@85 2130 {
cannam@85 2131 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cannam@85 2132 test_array [0] = 0
cannam@85 2133
cannam@85 2134 ;
cannam@85 2135 return 0;
cannam@85 2136 }
cannam@85 2137 _ACEOF
cannam@85 2138 if ac_fn_c_try_compile "$LINENO"; then :
cannam@85 2139 ac_hi=$ac_mid
cannam@85 2140 else
cannam@85 2141 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
cannam@85 2142 fi
cannam@85 2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 2144 done
cannam@85 2145 case $ac_lo in #((
cannam@85 2146 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
cannam@85 2147 '') ac_retval=1 ;;
cannam@85 2148 esac
cannam@85 2149 else
cannam@85 2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 2151 /* end confdefs.h. */
cannam@85 2152 $4
cannam@85 2153 static long int longval () { return $2; }
cannam@85 2154 static unsigned long int ulongval () { return $2; }
cannam@85 2155 #include <stdio.h>
cannam@85 2156 #include <stdlib.h>
cannam@85 2157 int
cannam@85 2158 main ()
cannam@85 2159 {
cannam@85 2160
cannam@85 2161 FILE *f = fopen ("conftest.val", "w");
cannam@85 2162 if (! f)
cannam@85 2163 return 1;
cannam@85 2164 if (($2) < 0)
cannam@85 2165 {
cannam@85 2166 long int i = longval ();
cannam@85 2167 if (i != ($2))
cannam@85 2168 return 1;
cannam@85 2169 fprintf (f, "%ld", i);
cannam@85 2170 }
cannam@85 2171 else
cannam@85 2172 {
cannam@85 2173 unsigned long int i = ulongval ();
cannam@85 2174 if (i != ($2))
cannam@85 2175 return 1;
cannam@85 2176 fprintf (f, "%lu", i);
cannam@85 2177 }
cannam@85 2178 /* Do not output a trailing newline, as this causes \r\n confusion
cannam@85 2179 on some platforms. */
cannam@85 2180 return ferror (f) || fclose (f) != 0;
cannam@85 2181
cannam@85 2182 ;
cannam@85 2183 return 0;
cannam@85 2184 }
cannam@85 2185 _ACEOF
cannam@85 2186 if ac_fn_c_try_run "$LINENO"; then :
cannam@85 2187 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
cannam@85 2188 else
cannam@85 2189 ac_retval=1
cannam@85 2190 fi
cannam@85 2191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@85 2192 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@85 2193 rm -f conftest.val
cannam@85 2194
cannam@85 2195 fi
cannam@85 2196 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@85 2197 as_fn_set_status $ac_retval
cannam@85 2198
cannam@85 2199 } # ac_fn_c_compute_int
cannam@85 2200 cat >config.log <<_ACEOF
cannam@85 2201 This file contains any messages produced by compilers while
cannam@85 2202 running configure, to aid debugging if configure makes a mistake.
cannam@85 2203
cannam@85 2204 It was created by libsamplerate $as_me 0.1.8, which was
cannam@85 2205 generated by GNU Autoconf 2.68. Invocation command line was
cannam@85 2206
cannam@85 2207 $ $0 $@
cannam@85 2208
cannam@85 2209 _ACEOF
cannam@85 2210 exec 5>>config.log
cannam@85 2211 {
cannam@85 2212 cat <<_ASUNAME
cannam@85 2213 ## --------- ##
cannam@85 2214 ## Platform. ##
cannam@85 2215 ## --------- ##
cannam@85 2216
cannam@85 2217 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@85 2218 uname -m = `(uname -m) 2>/dev/null || echo unknown`
cannam@85 2219 uname -r = `(uname -r) 2>/dev/null || echo unknown`
cannam@85 2220 uname -s = `(uname -s) 2>/dev/null || echo unknown`
cannam@85 2221 uname -v = `(uname -v) 2>/dev/null || echo unknown`
cannam@85 2222
cannam@85 2223 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
cannam@85 2224 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
cannam@85 2225
cannam@85 2226 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
cannam@85 2227 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
cannam@85 2228 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
cannam@85 2229 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
cannam@85 2230 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
cannam@85 2231 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
cannam@85 2232 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
cannam@85 2233
cannam@85 2234 _ASUNAME
cannam@85 2235
cannam@85 2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 2237 for as_dir in $PATH
cannam@85 2238 do
cannam@85 2239 IFS=$as_save_IFS
cannam@85 2240 test -z "$as_dir" && as_dir=.
cannam@85 2241 $as_echo "PATH: $as_dir"
cannam@85 2242 done
cannam@85 2243 IFS=$as_save_IFS
cannam@85 2244
cannam@85 2245 } >&5
cannam@85 2246
cannam@85 2247 cat >&5 <<_ACEOF
cannam@85 2248
cannam@85 2249
cannam@85 2250 ## ----------- ##
cannam@85 2251 ## Core tests. ##
cannam@85 2252 ## ----------- ##
cannam@85 2253
cannam@85 2254 _ACEOF
cannam@85 2255
cannam@85 2256
cannam@85 2257 # Keep a trace of the command line.
cannam@85 2258 # Strip out --no-create and --no-recursion so they do not pile up.
cannam@85 2259 # Strip out --silent because we don't want to record it for future runs.
cannam@85 2260 # Also quote any args containing shell meta-characters.
cannam@85 2261 # Make two passes to allow for proper duplicate-argument suppression.
cannam@85 2262 ac_configure_args=
cannam@85 2263 ac_configure_args0=
cannam@85 2264 ac_configure_args1=
cannam@85 2265 ac_must_keep_next=false
cannam@85 2266 for ac_pass in 1 2
cannam@85 2267 do
cannam@85 2268 for ac_arg
cannam@85 2269 do
cannam@85 2270 case $ac_arg in
cannam@85 2271 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
cannam@85 2272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@85 2273 | -silent | --silent | --silen | --sile | --sil)
cannam@85 2274 continue ;;
cannam@85 2275 *\'*)
cannam@85 2276 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@85 2277 esac
cannam@85 2278 case $ac_pass in
cannam@85 2279 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cannam@85 2280 2)
cannam@85 2281 as_fn_append ac_configure_args1 " '$ac_arg'"
cannam@85 2282 if test $ac_must_keep_next = true; then
cannam@85 2283 ac_must_keep_next=false # Got value, back to normal.
cannam@85 2284 else
cannam@85 2285 case $ac_arg in
cannam@85 2286 *=* | --config-cache | -C | -disable-* | --disable-* \
cannam@85 2287 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
cannam@85 2288 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
cannam@85 2289 | -with-* | --with-* | -without-* | --without-* | --x)
cannam@85 2290 case "$ac_configure_args0 " in
cannam@85 2291 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
cannam@85 2292 esac
cannam@85 2293 ;;
cannam@85 2294 -* ) ac_must_keep_next=true ;;
cannam@85 2295 esac
cannam@85 2296 fi
cannam@85 2297 as_fn_append ac_configure_args " '$ac_arg'"
cannam@85 2298 ;;
cannam@85 2299 esac
cannam@85 2300 done
cannam@85 2301 done
cannam@85 2302 { ac_configure_args0=; unset ac_configure_args0;}
cannam@85 2303 { ac_configure_args1=; unset ac_configure_args1;}
cannam@85 2304
cannam@85 2305 # When interrupted or exit'd, cleanup temporary files, and complete
cannam@85 2306 # config.log. We remove comments because anyway the quotes in there
cannam@85 2307 # would cause problems or look ugly.
cannam@85 2308 # WARNING: Use '\'' to represent an apostrophe within the trap.
cannam@85 2309 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
cannam@85 2310 trap 'exit_status=$?
cannam@85 2311 # Save into config.log some information that might help in debugging.
cannam@85 2312 {
cannam@85 2313 echo
cannam@85 2314
cannam@85 2315 $as_echo "## ---------------- ##
cannam@85 2316 ## Cache variables. ##
cannam@85 2317 ## ---------------- ##"
cannam@85 2318 echo
cannam@85 2319 # The following way of writing the cache mishandles newlines in values,
cannam@85 2320 (
cannam@85 2321 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
cannam@85 2322 eval ac_val=\$$ac_var
cannam@85 2323 case $ac_val in #(
cannam@85 2324 *${as_nl}*)
cannam@85 2325 case $ac_var in #(
cannam@85 2326 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cannam@85 2327 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
cannam@85 2328 esac
cannam@85 2329 case $ac_var in #(
cannam@85 2330 _ | IFS | as_nl) ;; #(
cannam@85 2331 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cannam@85 2332 *) { eval $ac_var=; unset $ac_var;} ;;
cannam@85 2333 esac ;;
cannam@85 2334 esac
cannam@85 2335 done
cannam@85 2336 (set) 2>&1 |
cannam@85 2337 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
cannam@85 2338 *${as_nl}ac_space=\ *)
cannam@85 2339 sed -n \
cannam@85 2340 "s/'\''/'\''\\\\'\'''\''/g;
cannam@85 2341 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
cannam@85 2342 ;; #(
cannam@85 2343 *)
cannam@85 2344 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
cannam@85 2345 ;;
cannam@85 2346 esac |
cannam@85 2347 sort
cannam@85 2348 )
cannam@85 2349 echo
cannam@85 2350
cannam@85 2351 $as_echo "## ----------------- ##
cannam@85 2352 ## Output variables. ##
cannam@85 2353 ## ----------------- ##"
cannam@85 2354 echo
cannam@85 2355 for ac_var in $ac_subst_vars
cannam@85 2356 do
cannam@85 2357 eval ac_val=\$$ac_var
cannam@85 2358 case $ac_val in
cannam@85 2359 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
cannam@85 2360 esac
cannam@85 2361 $as_echo "$ac_var='\''$ac_val'\''"
cannam@85 2362 done | sort
cannam@85 2363 echo
cannam@85 2364
cannam@85 2365 if test -n "$ac_subst_files"; then
cannam@85 2366 $as_echo "## ------------------- ##
cannam@85 2367 ## File substitutions. ##
cannam@85 2368 ## ------------------- ##"
cannam@85 2369 echo
cannam@85 2370 for ac_var in $ac_subst_files
cannam@85 2371 do
cannam@85 2372 eval ac_val=\$$ac_var
cannam@85 2373 case $ac_val in
cannam@85 2374 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
cannam@85 2375 esac
cannam@85 2376 $as_echo "$ac_var='\''$ac_val'\''"
cannam@85 2377 done | sort
cannam@85 2378 echo
cannam@85 2379 fi
cannam@85 2380
cannam@85 2381 if test -s confdefs.h; then
cannam@85 2382 $as_echo "## ----------- ##
cannam@85 2383 ## confdefs.h. ##
cannam@85 2384 ## ----------- ##"
cannam@85 2385 echo
cannam@85 2386 cat confdefs.h
cannam@85 2387 echo
cannam@85 2388 fi
cannam@85 2389 test "$ac_signal" != 0 &&
cannam@85 2390 $as_echo "$as_me: caught signal $ac_signal"
cannam@85 2391 $as_echo "$as_me: exit $exit_status"
cannam@85 2392 } >&5
cannam@85 2393 rm -f core *.core core.conftest.* &&
cannam@85 2394 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
cannam@85 2395 exit $exit_status
cannam@85 2396 ' 0
cannam@85 2397 for ac_signal in 1 2 13 15; do
cannam@85 2398 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cannam@85 2399 done
cannam@85 2400 ac_signal=0
cannam@85 2401
cannam@85 2402 # confdefs.h avoids OS command line length limits that DEFS can exceed.
cannam@85 2403 rm -f -r conftest* confdefs.h
cannam@85 2404
cannam@85 2405 $as_echo "/* confdefs.h */" > confdefs.h
cannam@85 2406
cannam@85 2407 # Predefined preprocessor variables.
cannam@85 2408
cannam@85 2409 cat >>confdefs.h <<_ACEOF
cannam@85 2410 #define PACKAGE_NAME "$PACKAGE_NAME"
cannam@85 2411 _ACEOF
cannam@85 2412
cannam@85 2413 cat >>confdefs.h <<_ACEOF
cannam@85 2414 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
cannam@85 2415 _ACEOF
cannam@85 2416
cannam@85 2417 cat >>confdefs.h <<_ACEOF
cannam@85 2418 #define PACKAGE_VERSION "$PACKAGE_VERSION"
cannam@85 2419 _ACEOF
cannam@85 2420
cannam@85 2421 cat >>confdefs.h <<_ACEOF
cannam@85 2422 #define PACKAGE_STRING "$PACKAGE_STRING"
cannam@85 2423 _ACEOF
cannam@85 2424
cannam@85 2425 cat >>confdefs.h <<_ACEOF
cannam@85 2426 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
cannam@85 2427 _ACEOF
cannam@85 2428
cannam@85 2429 cat >>confdefs.h <<_ACEOF
cannam@85 2430 #define PACKAGE_URL "$PACKAGE_URL"
cannam@85 2431 _ACEOF
cannam@85 2432
cannam@85 2433
cannam@85 2434 # Let the site file select an alternate cache file if it wants to.
cannam@85 2435 # Prefer an explicitly selected file to automatically selected ones.
cannam@85 2436 ac_site_file1=NONE
cannam@85 2437 ac_site_file2=NONE
cannam@85 2438 if test -n "$CONFIG_SITE"; then
cannam@85 2439 # We do not want a PATH search for config.site.
cannam@85 2440 case $CONFIG_SITE in #((
cannam@85 2441 -*) ac_site_file1=./$CONFIG_SITE;;
cannam@85 2442 */*) ac_site_file1=$CONFIG_SITE;;
cannam@85 2443 *) ac_site_file1=./$CONFIG_SITE;;
cannam@85 2444 esac
cannam@85 2445 elif test "x$prefix" != xNONE; then
cannam@85 2446 ac_site_file1=$prefix/share/config.site
cannam@85 2447 ac_site_file2=$prefix/etc/config.site
cannam@85 2448 else
cannam@85 2449 ac_site_file1=$ac_default_prefix/share/config.site
cannam@85 2450 ac_site_file2=$ac_default_prefix/etc/config.site
cannam@85 2451 fi
cannam@85 2452 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
cannam@85 2453 do
cannam@85 2454 test "x$ac_site_file" = xNONE && continue
cannam@85 2455 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cannam@85 2456 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cannam@85 2457 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
cannam@85 2458 sed 's/^/| /' "$ac_site_file" >&5
cannam@85 2459 . "$ac_site_file" \
cannam@85 2460 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@85 2461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@85 2462 as_fn_error $? "failed to load site script $ac_site_file
cannam@85 2463 See \`config.log' for more details" "$LINENO" 5; }
cannam@85 2464 fi
cannam@85 2465 done
cannam@85 2466
cannam@85 2467 if test -r "$cache_file"; then
cannam@85 2468 # Some versions of bash will fail to source /dev/null (special files
cannam@85 2469 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
cannam@85 2470 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cannam@85 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cannam@85 2472 $as_echo "$as_me: loading cache $cache_file" >&6;}
cannam@85 2473 case $cache_file in
cannam@85 2474 [\\/]* | ?:[\\/]* ) . "$cache_file";;
cannam@85 2475 *) . "./$cache_file";;
cannam@85 2476 esac
cannam@85 2477 fi
cannam@85 2478 else
cannam@85 2479 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cannam@85 2480 $as_echo "$as_me: creating cache $cache_file" >&6;}
cannam@85 2481 >$cache_file
cannam@85 2482 fi
cannam@85 2483
cannam@85 2484 # Check that the precious variables saved in the cache have kept the same
cannam@85 2485 # value.
cannam@85 2486 ac_cache_corrupted=false
cannam@85 2487 for ac_var in $ac_precious_vars; do
cannam@85 2488 eval ac_old_set=\$ac_cv_env_${ac_var}_set
cannam@85 2489 eval ac_new_set=\$ac_env_${ac_var}_set
cannam@85 2490 eval ac_old_val=\$ac_cv_env_${ac_var}_value
cannam@85 2491 eval ac_new_val=\$ac_env_${ac_var}_value
cannam@85 2492 case $ac_old_set,$ac_new_set in
cannam@85 2493 set,)
cannam@85 2494 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
cannam@85 2495 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
cannam@85 2496 ac_cache_corrupted=: ;;
cannam@85 2497 ,set)
cannam@85 2498 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cannam@85 2499 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
cannam@85 2500 ac_cache_corrupted=: ;;
cannam@85 2501 ,);;
cannam@85 2502 *)
cannam@85 2503 if test "x$ac_old_val" != "x$ac_new_val"; then
cannam@85 2504 # differences in whitespace do not lead to failure.
cannam@85 2505 ac_old_val_w=`echo x $ac_old_val`
cannam@85 2506 ac_new_val_w=`echo x $ac_new_val`
cannam@85 2507 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cannam@85 2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cannam@85 2509 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
cannam@85 2510 ac_cache_corrupted=:
cannam@85 2511 else
cannam@85 2512 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
cannam@85 2513 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
cannam@85 2514 eval $ac_var=\$ac_old_val
cannam@85 2515 fi
cannam@85 2516 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cannam@85 2517 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cannam@85 2518 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cannam@85 2519 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
cannam@85 2520 fi;;
cannam@85 2521 esac
cannam@85 2522 # Pass precious variables to config.status.
cannam@85 2523 if test "$ac_new_set" = set; then
cannam@85 2524 case $ac_new_val in
cannam@85 2525 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@85 2526 *) ac_arg=$ac_var=$ac_new_val ;;
cannam@85 2527 esac
cannam@85 2528 case " $ac_configure_args " in
cannam@85 2529 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cannam@85 2530 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cannam@85 2531 esac
cannam@85 2532 fi
cannam@85 2533 done
cannam@85 2534 if $ac_cache_corrupted; then
cannam@85 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@85 2536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@85 2537 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cannam@85 2538 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cannam@85 2539 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cannam@85 2540 fi
cannam@85 2541 ## -------------------- ##
cannam@85 2542 ## Main body of script. ##
cannam@85 2543 ## -------------------- ##
cannam@85 2544
cannam@85 2545 ac_ext=c
cannam@85 2546 ac_cpp='$CPP $CPPFLAGS'
cannam@85 2547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 2548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 2549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 2550
cannam@85 2551
cannam@85 2552
cannam@85 2553 # Put config stuff in Cfg.
cannam@85 2554 ac_aux_dir=
cannam@85 2555 for ac_dir in Cfg "$srcdir"/Cfg; do
cannam@85 2556 if test -f "$ac_dir/install-sh"; then
cannam@85 2557 ac_aux_dir=$ac_dir
cannam@85 2558 ac_install_sh="$ac_aux_dir/install-sh -c"
cannam@85 2559 break
cannam@85 2560 elif test -f "$ac_dir/install.sh"; then
cannam@85 2561 ac_aux_dir=$ac_dir
cannam@85 2562 ac_install_sh="$ac_aux_dir/install.sh -c"
cannam@85 2563 break
cannam@85 2564 elif test -f "$ac_dir/shtool"; then
cannam@85 2565 ac_aux_dir=$ac_dir
cannam@85 2566 ac_install_sh="$ac_aux_dir/shtool install -c"
cannam@85 2567 break
cannam@85 2568 fi
cannam@85 2569 done
cannam@85 2570 if test -z "$ac_aux_dir"; then
cannam@85 2571 as_fn_error $? "cannot find install-sh, install.sh, or shtool in Cfg \"$srcdir\"/Cfg" "$LINENO" 5
cannam@85 2572 fi
cannam@85 2573
cannam@85 2574 # These three variables are undocumented and unsupported,
cannam@85 2575 # and are intended to be withdrawn in a future Autoconf release.
cannam@85 2576 # They can cause serious problems if a builder's source tree is in a directory
cannam@85 2577 # whose full name contains unusual characters.
cannam@85 2578 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
cannam@85 2579 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
cannam@85 2580 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
cannam@85 2581
cannam@85 2582
cannam@85 2583
cannam@85 2584
cannam@85 2585 # Make sure we can run config.sub.
cannam@85 2586 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cannam@85 2587 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cannam@85 2588
cannam@85 2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cannam@85 2590 $as_echo_n "checking build system type... " >&6; }
cannam@85 2591 if ${ac_cv_build+:} false; then :
cannam@85 2592 $as_echo_n "(cached) " >&6
cannam@85 2593 else
cannam@85 2594 ac_build_alias=$build_alias
cannam@85 2595 test "x$ac_build_alias" = x &&
cannam@85 2596 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
cannam@85 2597 test "x$ac_build_alias" = x &&
cannam@85 2598 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cannam@85 2599 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cannam@85 2600 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cannam@85 2601
cannam@85 2602 fi
cannam@85 2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cannam@85 2604 $as_echo "$ac_cv_build" >&6; }
cannam@85 2605 case $ac_cv_build in
cannam@85 2606 *-*-*) ;;
cannam@85 2607 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cannam@85 2608 esac
cannam@85 2609 build=$ac_cv_build
cannam@85 2610 ac_save_IFS=$IFS; IFS='-'
cannam@85 2611 set x $ac_cv_build
cannam@85 2612 shift
cannam@85 2613 build_cpu=$1
cannam@85 2614 build_vendor=$2
cannam@85 2615 shift; shift
cannam@85 2616 # Remember, the first character of IFS is used to create $*,
cannam@85 2617 # except with old shells:
cannam@85 2618 build_os=$*
cannam@85 2619 IFS=$ac_save_IFS
cannam@85 2620 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
cannam@85 2621
cannam@85 2622
cannam@85 2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cannam@85 2624 $as_echo_n "checking host system type... " >&6; }
cannam@85 2625 if ${ac_cv_host+:} false; then :
cannam@85 2626 $as_echo_n "(cached) " >&6
cannam@85 2627 else
cannam@85 2628 if test "x$host_alias" = x; then
cannam@85 2629 ac_cv_host=$ac_cv_build
cannam@85 2630 else
cannam@85 2631 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cannam@85 2632 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cannam@85 2633 fi
cannam@85 2634
cannam@85 2635 fi
cannam@85 2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cannam@85 2637 $as_echo "$ac_cv_host" >&6; }
cannam@85 2638 case $ac_cv_host in
cannam@85 2639 *-*-*) ;;
cannam@85 2640 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cannam@85 2641 esac
cannam@85 2642 host=$ac_cv_host
cannam@85 2643 ac_save_IFS=$IFS; IFS='-'
cannam@85 2644 set x $ac_cv_host
cannam@85 2645 shift
cannam@85 2646 host_cpu=$1
cannam@85 2647 host_vendor=$2
cannam@85 2648 shift; shift
cannam@85 2649 # Remember, the first character of IFS is used to create $*,
cannam@85 2650 # except with old shells:
cannam@85 2651 host_os=$*
cannam@85 2652 IFS=$ac_save_IFS
cannam@85 2653 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
cannam@85 2654
cannam@85 2655
cannam@85 2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cannam@85 2657 $as_echo_n "checking target system type... " >&6; }
cannam@85 2658 if ${ac_cv_target+:} false; then :
cannam@85 2659 $as_echo_n "(cached) " >&6
cannam@85 2660 else
cannam@85 2661 if test "x$target_alias" = x; then
cannam@85 2662 ac_cv_target=$ac_cv_host
cannam@85 2663 else
cannam@85 2664 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cannam@85 2665 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cannam@85 2666 fi
cannam@85 2667
cannam@85 2668 fi
cannam@85 2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cannam@85 2670 $as_echo "$ac_cv_target" >&6; }
cannam@85 2671 case $ac_cv_target in
cannam@85 2672 *-*-*) ;;
cannam@85 2673 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cannam@85 2674 esac
cannam@85 2675 target=$ac_cv_target
cannam@85 2676 ac_save_IFS=$IFS; IFS='-'
cannam@85 2677 set x $ac_cv_target
cannam@85 2678 shift
cannam@85 2679 target_cpu=$1
cannam@85 2680 target_vendor=$2
cannam@85 2681 shift; shift
cannam@85 2682 # Remember, the first character of IFS is used to create $*,
cannam@85 2683 # except with old shells:
cannam@85 2684 target_os=$*
cannam@85 2685 IFS=$ac_save_IFS
cannam@85 2686 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
cannam@85 2687
cannam@85 2688
cannam@85 2689 # The aliases save the names the user supplied, while $host etc.
cannam@85 2690 # will get canonicalized.
cannam@85 2691 test -n "$target_alias" &&
cannam@85 2692 test "$program_prefix$program_suffix$program_transform_name" = \
cannam@85 2693 NONENONEs,x,x, &&
cannam@85 2694 program_prefix=${target_alias}-
cannam@85 2695
cannam@85 2696
cannam@85 2697 ac_config_headers="$ac_config_headers src/config.h"
cannam@85 2698
cannam@85 2699
cannam@85 2700 am__api_version='1.11'
cannam@85 2701
cannam@85 2702 # Find a good install program. We prefer a C program (faster),
cannam@85 2703 # so one script is as good as another. But avoid the broken or
cannam@85 2704 # incompatible versions:
cannam@85 2705 # SysV /etc/install, /usr/sbin/install
cannam@85 2706 # SunOS /usr/etc/install
cannam@85 2707 # IRIX /sbin/install
cannam@85 2708 # AIX /bin/install
cannam@85 2709 # AmigaOS /C/install, which installs bootblocks on floppy discs
cannam@85 2710 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
cannam@85 2711 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
cannam@85 2712 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
cannam@85 2713 # OS/2's system install, which has a completely different semantic
cannam@85 2714 # ./install, which can be erroneously created by make from ./install.sh.
cannam@85 2715 # Reject install programs that cannot install multiple files.
cannam@85 2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cannam@85 2717 $as_echo_n "checking for a BSD-compatible install... " >&6; }
cannam@85 2718 if test -z "$INSTALL"; then
cannam@85 2719 if ${ac_cv_path_install+:} false; then :
cannam@85 2720 $as_echo_n "(cached) " >&6
cannam@85 2721 else
cannam@85 2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 2723 for as_dir in $PATH
cannam@85 2724 do
cannam@85 2725 IFS=$as_save_IFS
cannam@85 2726 test -z "$as_dir" && as_dir=.
cannam@85 2727 # Account for people who put trailing slashes in PATH elements.
cannam@85 2728 case $as_dir/ in #((
cannam@85 2729 ./ | .// | /[cC]/* | \
cannam@85 2730 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cannam@85 2731 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cannam@85 2732 /usr/ucb/* ) ;;
cannam@85 2733 *)
cannam@85 2734 # OSF1 and SCO ODT 3.0 have their own names for install.
cannam@85 2735 # Don't use installbsd from OSF since it installs stuff as root
cannam@85 2736 # by default.
cannam@85 2737 for ac_prog in ginstall scoinst install; do
cannam@85 2738 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 2739 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
cannam@85 2740 if test $ac_prog = install &&
cannam@85 2741 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
cannam@85 2742 # AIX install. It has an incompatible calling convention.
cannam@85 2743 :
cannam@85 2744 elif test $ac_prog = install &&
cannam@85 2745 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
cannam@85 2746 # program-specific install script used by HP pwplus--don't use.
cannam@85 2747 :
cannam@85 2748 else
cannam@85 2749 rm -rf conftest.one conftest.two conftest.dir
cannam@85 2750 echo one > conftest.one
cannam@85 2751 echo two > conftest.two
cannam@85 2752 mkdir conftest.dir
cannam@85 2753 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
cannam@85 2754 test -s conftest.one && test -s conftest.two &&
cannam@85 2755 test -s conftest.dir/conftest.one &&
cannam@85 2756 test -s conftest.dir/conftest.two
cannam@85 2757 then
cannam@85 2758 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
cannam@85 2759 break 3
cannam@85 2760 fi
cannam@85 2761 fi
cannam@85 2762 fi
cannam@85 2763 done
cannam@85 2764 done
cannam@85 2765 ;;
cannam@85 2766 esac
cannam@85 2767
cannam@85 2768 done
cannam@85 2769 IFS=$as_save_IFS
cannam@85 2770
cannam@85 2771 rm -rf conftest.one conftest.two conftest.dir
cannam@85 2772
cannam@85 2773 fi
cannam@85 2774 if test "${ac_cv_path_install+set}" = set; then
cannam@85 2775 INSTALL=$ac_cv_path_install
cannam@85 2776 else
cannam@85 2777 # As a last resort, use the slow shell script. Don't cache a
cannam@85 2778 # value for INSTALL within a source directory, because that will
cannam@85 2779 # break other packages using the cache if that directory is
cannam@85 2780 # removed, or if the value is a relative name.
cannam@85 2781 INSTALL=$ac_install_sh
cannam@85 2782 fi
cannam@85 2783 fi
cannam@85 2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cannam@85 2785 $as_echo "$INSTALL" >&6; }
cannam@85 2786
cannam@85 2787 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
cannam@85 2788 # It thinks the first close brace ends the variable substitution.
cannam@85 2789 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
cannam@85 2790
cannam@85 2791 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
cannam@85 2792
cannam@85 2793 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
cannam@85 2794
cannam@85 2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cannam@85 2796 $as_echo_n "checking whether build environment is sane... " >&6; }
cannam@85 2797 # Just in case
cannam@85 2798 sleep 1
cannam@85 2799 echo timestamp > conftest.file
cannam@85 2800 # Reject unsafe characters in $srcdir or the absolute working directory
cannam@85 2801 # name. Accept space and tab only in the latter.
cannam@85 2802 am_lf='
cannam@85 2803 '
cannam@85 2804 case `pwd` in
cannam@85 2805 *[\\\"\#\$\&\'\`$am_lf]*)
cannam@85 2806 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cannam@85 2807 esac
cannam@85 2808 case $srcdir in
cannam@85 2809 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cannam@85 2810 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cannam@85 2811 esac
cannam@85 2812
cannam@85 2813 # Do `set' in a subshell so we don't clobber the current shell's
cannam@85 2814 # arguments. Must try -L first in case configure is actually a
cannam@85 2815 # symlink; some systems play weird games with the mod time of symlinks
cannam@85 2816 # (eg FreeBSD returns the mod time of the symlink's containing
cannam@85 2817 # directory).
cannam@85 2818 if (
cannam@85 2819 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
cannam@85 2820 if test "$*" = "X"; then
cannam@85 2821 # -L didn't work.
cannam@85 2822 set X `ls -t "$srcdir/configure" conftest.file`
cannam@85 2823 fi
cannam@85 2824 rm -f conftest.file
cannam@85 2825 if test "$*" != "X $srcdir/configure conftest.file" \
cannam@85 2826 && test "$*" != "X conftest.file $srcdir/configure"; then
cannam@85 2827
cannam@85 2828 # If neither matched, then we have a broken ls. This can happen
cannam@85 2829 # if, for instance, CONFIG_SHELL is bash and it inherits a
cannam@85 2830 # broken ls alias from the environment. This has actually
cannam@85 2831 # happened. Such a system could not be considered "sane".
cannam@85 2832 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cannam@85 2833 alias in your environment" "$LINENO" 5
cannam@85 2834 fi
cannam@85 2835
cannam@85 2836 test "$2" = conftest.file
cannam@85 2837 )
cannam@85 2838 then
cannam@85 2839 # Ok.
cannam@85 2840 :
cannam@85 2841 else
cannam@85 2842 as_fn_error $? "newly created file is older than distributed files!
cannam@85 2843 Check your system clock" "$LINENO" 5
cannam@85 2844 fi
cannam@85 2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@85 2846 $as_echo "yes" >&6; }
cannam@85 2847 test "$program_prefix" != NONE &&
cannam@85 2848 program_transform_name="s&^&$program_prefix&;$program_transform_name"
cannam@85 2849 # Use a double $ so make ignores it.
cannam@85 2850 test "$program_suffix" != NONE &&
cannam@85 2851 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
cannam@85 2852 # Double any \ or $.
cannam@85 2853 # By default was `s,x,x', remove it if useless.
cannam@85 2854 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
cannam@85 2855 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cannam@85 2856
cannam@85 2857 # expand $ac_aux_dir to an absolute path
cannam@85 2858 am_aux_dir=`cd $ac_aux_dir && pwd`
cannam@85 2859
cannam@85 2860 if test x"${MISSING+set}" != xset; then
cannam@85 2861 case $am_aux_dir in
cannam@85 2862 *\ * | *\ *)
cannam@85 2863 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
cannam@85 2864 *)
cannam@85 2865 MISSING="\${SHELL} $am_aux_dir/missing" ;;
cannam@85 2866 esac
cannam@85 2867 fi
cannam@85 2868 # Use eval to expand $SHELL
cannam@85 2869 if eval "$MISSING --run true"; then
cannam@85 2870 am_missing_run="$MISSING --run "
cannam@85 2871 else
cannam@85 2872 am_missing_run=
cannam@85 2873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cannam@85 2874 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
cannam@85 2875 fi
cannam@85 2876
cannam@85 2877 if test x"${install_sh}" != xset; then
cannam@85 2878 case $am_aux_dir in
cannam@85 2879 *\ * | *\ *)
cannam@85 2880 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
cannam@85 2881 *)
cannam@85 2882 install_sh="\${SHELL} $am_aux_dir/install-sh"
cannam@85 2883 esac
cannam@85 2884 fi
cannam@85 2885
cannam@85 2886 # Installed binaries are usually stripped using `strip' when the user
cannam@85 2887 # run `make install-strip'. However `strip' might not be the right
cannam@85 2888 # tool to use in cross-compilation environments, therefore Automake
cannam@85 2889 # will honor the `STRIP' environment variable to overrule this program.
cannam@85 2890 if test "$cross_compiling" != no; then
cannam@85 2891 if test -n "$ac_tool_prefix"; then
cannam@85 2892 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
cannam@85 2893 set dummy ${ac_tool_prefix}strip; ac_word=$2
cannam@85 2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 2895 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 2896 if ${ac_cv_prog_STRIP+:} false; then :
cannam@85 2897 $as_echo_n "(cached) " >&6
cannam@85 2898 else
cannam@85 2899 if test -n "$STRIP"; then
cannam@85 2900 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
cannam@85 2901 else
cannam@85 2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 2903 for as_dir in $PATH
cannam@85 2904 do
cannam@85 2905 IFS=$as_save_IFS
cannam@85 2906 test -z "$as_dir" && as_dir=.
cannam@85 2907 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 2909 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cannam@85 2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 2911 break 2
cannam@85 2912 fi
cannam@85 2913 done
cannam@85 2914 done
cannam@85 2915 IFS=$as_save_IFS
cannam@85 2916
cannam@85 2917 fi
cannam@85 2918 fi
cannam@85 2919 STRIP=$ac_cv_prog_STRIP
cannam@85 2920 if test -n "$STRIP"; then
cannam@85 2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cannam@85 2922 $as_echo "$STRIP" >&6; }
cannam@85 2923 else
cannam@85 2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 2925 $as_echo "no" >&6; }
cannam@85 2926 fi
cannam@85 2927
cannam@85 2928
cannam@85 2929 fi
cannam@85 2930 if test -z "$ac_cv_prog_STRIP"; then
cannam@85 2931 ac_ct_STRIP=$STRIP
cannam@85 2932 # Extract the first word of "strip", so it can be a program name with args.
cannam@85 2933 set dummy strip; ac_word=$2
cannam@85 2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 2935 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 2936 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cannam@85 2937 $as_echo_n "(cached) " >&6
cannam@85 2938 else
cannam@85 2939 if test -n "$ac_ct_STRIP"; then
cannam@85 2940 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
cannam@85 2941 else
cannam@85 2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 2943 for as_dir in $PATH
cannam@85 2944 do
cannam@85 2945 IFS=$as_save_IFS
cannam@85 2946 test -z "$as_dir" && as_dir=.
cannam@85 2947 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 2948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 2949 ac_cv_prog_ac_ct_STRIP="strip"
cannam@85 2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 2951 break 2
cannam@85 2952 fi
cannam@85 2953 done
cannam@85 2954 done
cannam@85 2955 IFS=$as_save_IFS
cannam@85 2956
cannam@85 2957 fi
cannam@85 2958 fi
cannam@85 2959 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
cannam@85 2960 if test -n "$ac_ct_STRIP"; then
cannam@85 2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cannam@85 2962 $as_echo "$ac_ct_STRIP" >&6; }
cannam@85 2963 else
cannam@85 2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 2965 $as_echo "no" >&6; }
cannam@85 2966 fi
cannam@85 2967
cannam@85 2968 if test "x$ac_ct_STRIP" = x; then
cannam@85 2969 STRIP=":"
cannam@85 2970 else
cannam@85 2971 case $cross_compiling:$ac_tool_warned in
cannam@85 2972 yes:)
cannam@85 2973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@85 2974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@85 2975 ac_tool_warned=yes ;;
cannam@85 2976 esac
cannam@85 2977 STRIP=$ac_ct_STRIP
cannam@85 2978 fi
cannam@85 2979 else
cannam@85 2980 STRIP="$ac_cv_prog_STRIP"
cannam@85 2981 fi
cannam@85 2982
cannam@85 2983 fi
cannam@85 2984 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
cannam@85 2985
cannam@85 2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cannam@85 2987 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
cannam@85 2988 if test -z "$MKDIR_P"; then
cannam@85 2989 if ${ac_cv_path_mkdir+:} false; then :
cannam@85 2990 $as_echo_n "(cached) " >&6
cannam@85 2991 else
cannam@85 2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 2993 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
cannam@85 2994 do
cannam@85 2995 IFS=$as_save_IFS
cannam@85 2996 test -z "$as_dir" && as_dir=.
cannam@85 2997 for ac_prog in mkdir gmkdir; do
cannam@85 2998 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 2999 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
cannam@85 3000 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
cannam@85 3001 'mkdir (GNU coreutils) '* | \
cannam@85 3002 'mkdir (coreutils) '* | \
cannam@85 3003 'mkdir (fileutils) '4.1*)
cannam@85 3004 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
cannam@85 3005 break 3;;
cannam@85 3006 esac
cannam@85 3007 done
cannam@85 3008 done
cannam@85 3009 done
cannam@85 3010 IFS=$as_save_IFS
cannam@85 3011
cannam@85 3012 fi
cannam@85 3013
cannam@85 3014 test -d ./--version && rmdir ./--version
cannam@85 3015 if test "${ac_cv_path_mkdir+set}" = set; then
cannam@85 3016 MKDIR_P="$ac_cv_path_mkdir -p"
cannam@85 3017 else
cannam@85 3018 # As a last resort, use the slow shell script. Don't cache a
cannam@85 3019 # value for MKDIR_P within a source directory, because that will
cannam@85 3020 # break other packages using the cache if that directory is
cannam@85 3021 # removed, or if the value is a relative name.
cannam@85 3022 MKDIR_P="$ac_install_sh -d"
cannam@85 3023 fi
cannam@85 3024 fi
cannam@85 3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cannam@85 3026 $as_echo "$MKDIR_P" >&6; }
cannam@85 3027
cannam@85 3028 mkdir_p="$MKDIR_P"
cannam@85 3029 case $mkdir_p in
cannam@85 3030 [\\/$]* | ?:[\\/]*) ;;
cannam@85 3031 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
cannam@85 3032 esac
cannam@85 3033
cannam@85 3034 for ac_prog in gawk mawk nawk awk
cannam@85 3035 do
cannam@85 3036 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@85 3037 set dummy $ac_prog; ac_word=$2
cannam@85 3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 3039 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 3040 if ${ac_cv_prog_AWK+:} false; then :
cannam@85 3041 $as_echo_n "(cached) " >&6
cannam@85 3042 else
cannam@85 3043 if test -n "$AWK"; then
cannam@85 3044 ac_cv_prog_AWK="$AWK" # Let the user override the test.
cannam@85 3045 else
cannam@85 3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 3047 for as_dir in $PATH
cannam@85 3048 do
cannam@85 3049 IFS=$as_save_IFS
cannam@85 3050 test -z "$as_dir" && as_dir=.
cannam@85 3051 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 3052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 3053 ac_cv_prog_AWK="$ac_prog"
cannam@85 3054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 3055 break 2
cannam@85 3056 fi
cannam@85 3057 done
cannam@85 3058 done
cannam@85 3059 IFS=$as_save_IFS
cannam@85 3060
cannam@85 3061 fi
cannam@85 3062 fi
cannam@85 3063 AWK=$ac_cv_prog_AWK
cannam@85 3064 if test -n "$AWK"; then
cannam@85 3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cannam@85 3066 $as_echo "$AWK" >&6; }
cannam@85 3067 else
cannam@85 3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 3069 $as_echo "no" >&6; }
cannam@85 3070 fi
cannam@85 3071
cannam@85 3072
cannam@85 3073 test -n "$AWK" && break
cannam@85 3074 done
cannam@85 3075
cannam@85 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cannam@85 3077 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
cannam@85 3078 set x ${MAKE-make}
cannam@85 3079 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cannam@85 3080 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cannam@85 3081 $as_echo_n "(cached) " >&6
cannam@85 3082 else
cannam@85 3083 cat >conftest.make <<\_ACEOF
cannam@85 3084 SHELL = /bin/sh
cannam@85 3085 all:
cannam@85 3086 @echo '@@@%%%=$(MAKE)=@@@%%%'
cannam@85 3087 _ACEOF
cannam@85 3088 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cannam@85 3089 case `${MAKE-make} -f conftest.make 2>/dev/null` in
cannam@85 3090 *@@@%%%=?*=@@@%%%*)
cannam@85 3091 eval ac_cv_prog_make_${ac_make}_set=yes;;
cannam@85 3092 *)
cannam@85 3093 eval ac_cv_prog_make_${ac_make}_set=no;;
cannam@85 3094 esac
cannam@85 3095 rm -f conftest.make
cannam@85 3096 fi
cannam@85 3097 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cannam@85 3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@85 3099 $as_echo "yes" >&6; }
cannam@85 3100 SET_MAKE=
cannam@85 3101 else
cannam@85 3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 3103 $as_echo "no" >&6; }
cannam@85 3104 SET_MAKE="MAKE=${MAKE-make}"
cannam@85 3105 fi
cannam@85 3106
cannam@85 3107 rm -rf .tst 2>/dev/null
cannam@85 3108 mkdir .tst 2>/dev/null
cannam@85 3109 if test -d .tst; then
cannam@85 3110 am__leading_dot=.
cannam@85 3111 else
cannam@85 3112 am__leading_dot=_
cannam@85 3113 fi
cannam@85 3114 rmdir .tst 2>/dev/null
cannam@85 3115
cannam@85 3116 if test "`cd $srcdir && pwd`" != "`pwd`"; then
cannam@85 3117 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
cannam@85 3118 # is not polluted with repeated "-I."
cannam@85 3119 am__isrc=' -I$(srcdir)'
cannam@85 3120 # test to see if srcdir already configured
cannam@85 3121 if test -f $srcdir/config.status; then
cannam@85 3122 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cannam@85 3123 fi
cannam@85 3124 fi
cannam@85 3125
cannam@85 3126 # test whether we have cygpath
cannam@85 3127 if test -z "$CYGPATH_W"; then
cannam@85 3128 if (cygpath --version) >/dev/null 2>/dev/null; then
cannam@85 3129 CYGPATH_W='cygpath -w'
cannam@85 3130 else
cannam@85 3131 CYGPATH_W=echo
cannam@85 3132 fi
cannam@85 3133 fi
cannam@85 3134
cannam@85 3135
cannam@85 3136 # Define the identity of the package.
cannam@85 3137 PACKAGE=$PACKAGE_NAME
cannam@85 3138 VERSION=$PACKAGE_VERSION
cannam@85 3139
cannam@85 3140
cannam@85 3141 cat >>confdefs.h <<_ACEOF
cannam@85 3142 #define PACKAGE "$PACKAGE"
cannam@85 3143 _ACEOF
cannam@85 3144
cannam@85 3145
cannam@85 3146 cat >>confdefs.h <<_ACEOF
cannam@85 3147 #define VERSION "$VERSION"
cannam@85 3148 _ACEOF
cannam@85 3149
cannam@85 3150 # Some tools Automake needs.
cannam@85 3151
cannam@85 3152 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
cannam@85 3153
cannam@85 3154
cannam@85 3155 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
cannam@85 3156
cannam@85 3157
cannam@85 3158 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
cannam@85 3159
cannam@85 3160
cannam@85 3161 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
cannam@85 3162
cannam@85 3163
cannam@85 3164 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
cannam@85 3165
cannam@85 3166 # We need awk for the "check" target. The system "awk" is bad on
cannam@85 3167 # some platforms.
cannam@85 3168 # Always define AMTAR for backward compatibility.
cannam@85 3169
cannam@85 3170 AMTAR=${AMTAR-"${am_missing_run}tar"}
cannam@85 3171
cannam@85 3172 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
cannam@85 3173
cannam@85 3174
cannam@85 3175
cannam@85 3176
cannam@85 3177
cannam@85 3178 # Check whether --enable-silent-rules was given.
cannam@85 3179 if test "${enable_silent_rules+set}" = set; then :
cannam@85 3180 enableval=$enable_silent_rules;
cannam@85 3181 fi
cannam@85 3182
cannam@85 3183 case $enable_silent_rules in
cannam@85 3184 yes) AM_DEFAULT_VERBOSITY=0;;
cannam@85 3185 no) AM_DEFAULT_VERBOSITY=1;;
cannam@85 3186 *) AM_DEFAULT_VERBOSITY=0;;
cannam@85 3187 esac
cannam@85 3188 AM_BACKSLASH='\'
cannam@85 3189
cannam@85 3190
cannam@85 3191 ACLOCAL_AMFLAGS="-I M4"
cannam@85 3192
cannam@85 3193
cannam@85 3194 ac_ext=c
cannam@85 3195 ac_cpp='$CPP $CPPFLAGS'
cannam@85 3196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 3197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 3198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 3199
cannam@85 3200
cannam@85 3201 ac_ext=c
cannam@85 3202 ac_cpp='$CPP $CPPFLAGS'
cannam@85 3203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 3204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 3205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 3206 if test -n "$ac_tool_prefix"; then
cannam@85 3207 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
cannam@85 3208 set dummy ${ac_tool_prefix}gcc; ac_word=$2
cannam@85 3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 3210 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 3211 if ${ac_cv_prog_CC+:} false; then :
cannam@85 3212 $as_echo_n "(cached) " >&6
cannam@85 3213 else
cannam@85 3214 if test -n "$CC"; then
cannam@85 3215 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@85 3216 else
cannam@85 3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 3218 for as_dir in $PATH
cannam@85 3219 do
cannam@85 3220 IFS=$as_save_IFS
cannam@85 3221 test -z "$as_dir" && as_dir=.
cannam@85 3222 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 3223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 3224 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cannam@85 3225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 3226 break 2
cannam@85 3227 fi
cannam@85 3228 done
cannam@85 3229 done
cannam@85 3230 IFS=$as_save_IFS
cannam@85 3231
cannam@85 3232 fi
cannam@85 3233 fi
cannam@85 3234 CC=$ac_cv_prog_CC
cannam@85 3235 if test -n "$CC"; then
cannam@85 3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@85 3237 $as_echo "$CC" >&6; }
cannam@85 3238 else
cannam@85 3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 3240 $as_echo "no" >&6; }
cannam@85 3241 fi
cannam@85 3242
cannam@85 3243
cannam@85 3244 fi
cannam@85 3245 if test -z "$ac_cv_prog_CC"; then
cannam@85 3246 ac_ct_CC=$CC
cannam@85 3247 # Extract the first word of "gcc", so it can be a program name with args.
cannam@85 3248 set dummy gcc; ac_word=$2
cannam@85 3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 3250 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 3251 if ${ac_cv_prog_ac_ct_CC+:} false; then :
cannam@85 3252 $as_echo_n "(cached) " >&6
cannam@85 3253 else
cannam@85 3254 if test -n "$ac_ct_CC"; then
cannam@85 3255 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
cannam@85 3256 else
cannam@85 3257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 3258 for as_dir in $PATH
cannam@85 3259 do
cannam@85 3260 IFS=$as_save_IFS
cannam@85 3261 test -z "$as_dir" && as_dir=.
cannam@85 3262 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 3263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 3264 ac_cv_prog_ac_ct_CC="gcc"
cannam@85 3265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 3266 break 2
cannam@85 3267 fi
cannam@85 3268 done
cannam@85 3269 done
cannam@85 3270 IFS=$as_save_IFS
cannam@85 3271
cannam@85 3272 fi
cannam@85 3273 fi
cannam@85 3274 ac_ct_CC=$ac_cv_prog_ac_ct_CC
cannam@85 3275 if test -n "$ac_ct_CC"; then
cannam@85 3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cannam@85 3277 $as_echo "$ac_ct_CC" >&6; }
cannam@85 3278 else
cannam@85 3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 3280 $as_echo "no" >&6; }
cannam@85 3281 fi
cannam@85 3282
cannam@85 3283 if test "x$ac_ct_CC" = x; then
cannam@85 3284 CC=""
cannam@85 3285 else
cannam@85 3286 case $cross_compiling:$ac_tool_warned in
cannam@85 3287 yes:)
cannam@85 3288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@85 3289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@85 3290 ac_tool_warned=yes ;;
cannam@85 3291 esac
cannam@85 3292 CC=$ac_ct_CC
cannam@85 3293 fi
cannam@85 3294 else
cannam@85 3295 CC="$ac_cv_prog_CC"
cannam@85 3296 fi
cannam@85 3297
cannam@85 3298 if test -z "$CC"; then
cannam@85 3299 if test -n "$ac_tool_prefix"; then
cannam@85 3300 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
cannam@85 3301 set dummy ${ac_tool_prefix}cc; ac_word=$2
cannam@85 3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 3303 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 3304 if ${ac_cv_prog_CC+:} false; then :
cannam@85 3305 $as_echo_n "(cached) " >&6
cannam@85 3306 else
cannam@85 3307 if test -n "$CC"; then
cannam@85 3308 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@85 3309 else
cannam@85 3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 3311 for as_dir in $PATH
cannam@85 3312 do
cannam@85 3313 IFS=$as_save_IFS
cannam@85 3314 test -z "$as_dir" && as_dir=.
cannam@85 3315 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 3316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 3317 ac_cv_prog_CC="${ac_tool_prefix}cc"
cannam@85 3318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 3319 break 2
cannam@85 3320 fi
cannam@85 3321 done
cannam@85 3322 done
cannam@85 3323 IFS=$as_save_IFS
cannam@85 3324
cannam@85 3325 fi
cannam@85 3326 fi
cannam@85 3327 CC=$ac_cv_prog_CC
cannam@85 3328 if test -n "$CC"; then
cannam@85 3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@85 3330 $as_echo "$CC" >&6; }
cannam@85 3331 else
cannam@85 3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 3333 $as_echo "no" >&6; }
cannam@85 3334 fi
cannam@85 3335
cannam@85 3336
cannam@85 3337 fi
cannam@85 3338 fi
cannam@85 3339 if test -z "$CC"; then
cannam@85 3340 # Extract the first word of "cc", so it can be a program name with args.
cannam@85 3341 set dummy cc; ac_word=$2
cannam@85 3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 3343 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 3344 if ${ac_cv_prog_CC+:} false; then :
cannam@85 3345 $as_echo_n "(cached) " >&6
cannam@85 3346 else
cannam@85 3347 if test -n "$CC"; then
cannam@85 3348 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@85 3349 else
cannam@85 3350 ac_prog_rejected=no
cannam@85 3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 3352 for as_dir in $PATH
cannam@85 3353 do
cannam@85 3354 IFS=$as_save_IFS
cannam@85 3355 test -z "$as_dir" && as_dir=.
cannam@85 3356 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 3357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 3358 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
cannam@85 3359 ac_prog_rejected=yes
cannam@85 3360 continue
cannam@85 3361 fi
cannam@85 3362 ac_cv_prog_CC="cc"
cannam@85 3363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 3364 break 2
cannam@85 3365 fi
cannam@85 3366 done
cannam@85 3367 done
cannam@85 3368 IFS=$as_save_IFS
cannam@85 3369
cannam@85 3370 if test $ac_prog_rejected = yes; then
cannam@85 3371 # We found a bogon in the path, so make sure we never use it.
cannam@85 3372 set dummy $ac_cv_prog_CC
cannam@85 3373 shift
cannam@85 3374 if test $# != 0; then
cannam@85 3375 # We chose a different compiler from the bogus one.
cannam@85 3376 # However, it has the same basename, so the bogon will be chosen
cannam@85 3377 # first if we set CC to just the basename; use the full file name.
cannam@85 3378 shift
cannam@85 3379 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
cannam@85 3380 fi
cannam@85 3381 fi
cannam@85 3382 fi
cannam@85 3383 fi
cannam@85 3384 CC=$ac_cv_prog_CC
cannam@85 3385 if test -n "$CC"; then
cannam@85 3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@85 3387 $as_echo "$CC" >&6; }
cannam@85 3388 else
cannam@85 3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 3390 $as_echo "no" >&6; }
cannam@85 3391 fi
cannam@85 3392
cannam@85 3393
cannam@85 3394 fi
cannam@85 3395 if test -z "$CC"; then
cannam@85 3396 if test -n "$ac_tool_prefix"; then
cannam@85 3397 for ac_prog in cl.exe
cannam@85 3398 do
cannam@85 3399 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@85 3400 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@85 3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 3402 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 3403 if ${ac_cv_prog_CC+:} false; then :
cannam@85 3404 $as_echo_n "(cached) " >&6
cannam@85 3405 else
cannam@85 3406 if test -n "$CC"; then
cannam@85 3407 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@85 3408 else
cannam@85 3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 3410 for as_dir in $PATH
cannam@85 3411 do
cannam@85 3412 IFS=$as_save_IFS
cannam@85 3413 test -z "$as_dir" && as_dir=.
cannam@85 3414 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 3415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 3416 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cannam@85 3417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 3418 break 2
cannam@85 3419 fi
cannam@85 3420 done
cannam@85 3421 done
cannam@85 3422 IFS=$as_save_IFS
cannam@85 3423
cannam@85 3424 fi
cannam@85 3425 fi
cannam@85 3426 CC=$ac_cv_prog_CC
cannam@85 3427 if test -n "$CC"; then
cannam@85 3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@85 3429 $as_echo "$CC" >&6; }
cannam@85 3430 else
cannam@85 3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 3432 $as_echo "no" >&6; }
cannam@85 3433 fi
cannam@85 3434
cannam@85 3435
cannam@85 3436 test -n "$CC" && break
cannam@85 3437 done
cannam@85 3438 fi
cannam@85 3439 if test -z "$CC"; then
cannam@85 3440 ac_ct_CC=$CC
cannam@85 3441 for ac_prog in cl.exe
cannam@85 3442 do
cannam@85 3443 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@85 3444 set dummy $ac_prog; ac_word=$2
cannam@85 3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 3446 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 3447 if ${ac_cv_prog_ac_ct_CC+:} false; then :
cannam@85 3448 $as_echo_n "(cached) " >&6
cannam@85 3449 else
cannam@85 3450 if test -n "$ac_ct_CC"; then
cannam@85 3451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
cannam@85 3452 else
cannam@85 3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 3454 for as_dir in $PATH
cannam@85 3455 do
cannam@85 3456 IFS=$as_save_IFS
cannam@85 3457 test -z "$as_dir" && as_dir=.
cannam@85 3458 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 3459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 3460 ac_cv_prog_ac_ct_CC="$ac_prog"
cannam@85 3461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 3462 break 2
cannam@85 3463 fi
cannam@85 3464 done
cannam@85 3465 done
cannam@85 3466 IFS=$as_save_IFS
cannam@85 3467
cannam@85 3468 fi
cannam@85 3469 fi
cannam@85 3470 ac_ct_CC=$ac_cv_prog_ac_ct_CC
cannam@85 3471 if test -n "$ac_ct_CC"; then
cannam@85 3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cannam@85 3473 $as_echo "$ac_ct_CC" >&6; }
cannam@85 3474 else
cannam@85 3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 3476 $as_echo "no" >&6; }
cannam@85 3477 fi
cannam@85 3478
cannam@85 3479
cannam@85 3480 test -n "$ac_ct_CC" && break
cannam@85 3481 done
cannam@85 3482
cannam@85 3483 if test "x$ac_ct_CC" = x; then
cannam@85 3484 CC=""
cannam@85 3485 else
cannam@85 3486 case $cross_compiling:$ac_tool_warned in
cannam@85 3487 yes:)
cannam@85 3488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@85 3489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@85 3490 ac_tool_warned=yes ;;
cannam@85 3491 esac
cannam@85 3492 CC=$ac_ct_CC
cannam@85 3493 fi
cannam@85 3494 fi
cannam@85 3495
cannam@85 3496 fi
cannam@85 3497
cannam@85 3498
cannam@85 3499 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@85 3500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@85 3501 as_fn_error $? "no acceptable C compiler found in \$PATH
cannam@85 3502 See \`config.log' for more details" "$LINENO" 5; }
cannam@85 3503
cannam@85 3504 # Provide some information about the compiler.
cannam@85 3505 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cannam@85 3506 set X $ac_compile
cannam@85 3507 ac_compiler=$2
cannam@85 3508 for ac_option in --version -v -V -qversion; do
cannam@85 3509 { { ac_try="$ac_compiler $ac_option >&5"
cannam@85 3510 case "(($ac_try" in
cannam@85 3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@85 3512 *) ac_try_echo=$ac_try;;
cannam@85 3513 esac
cannam@85 3514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@85 3515 $as_echo "$ac_try_echo"; } >&5
cannam@85 3516 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cannam@85 3517 ac_status=$?
cannam@85 3518 if test -s conftest.err; then
cannam@85 3519 sed '10a\
cannam@85 3520 ... rest of stderr output deleted ...
cannam@85 3521 10q' conftest.err >conftest.er1
cannam@85 3522 cat conftest.er1 >&5
cannam@85 3523 fi
cannam@85 3524 rm -f conftest.er1 conftest.err
cannam@85 3525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 3526 test $ac_status = 0; }
cannam@85 3527 done
cannam@85 3528
cannam@85 3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 3530 /* end confdefs.h. */
cannam@85 3531
cannam@85 3532 int
cannam@85 3533 main ()
cannam@85 3534 {
cannam@85 3535
cannam@85 3536 ;
cannam@85 3537 return 0;
cannam@85 3538 }
cannam@85 3539 _ACEOF
cannam@85 3540 ac_clean_files_save=$ac_clean_files
cannam@85 3541 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cannam@85 3542 # Try to create an executable without -o first, disregard a.out.
cannam@85 3543 # It will help us diagnose broken compilers, and finding out an intuition
cannam@85 3544 # of exeext.
cannam@85 3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
cannam@85 3546 $as_echo_n "checking whether the C compiler works... " >&6; }
cannam@85 3547 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
cannam@85 3548
cannam@85 3549 # The possible output files:
cannam@85 3550 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
cannam@85 3551
cannam@85 3552 ac_rmfiles=
cannam@85 3553 for ac_file in $ac_files
cannam@85 3554 do
cannam@85 3555 case $ac_file in
cannam@85 3556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
cannam@85 3557 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
cannam@85 3558 esac
cannam@85 3559 done
cannam@85 3560 rm -f $ac_rmfiles
cannam@85 3561
cannam@85 3562 if { { ac_try="$ac_link_default"
cannam@85 3563 case "(($ac_try" in
cannam@85 3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@85 3565 *) ac_try_echo=$ac_try;;
cannam@85 3566 esac
cannam@85 3567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@85 3568 $as_echo "$ac_try_echo"; } >&5
cannam@85 3569 (eval "$ac_link_default") 2>&5
cannam@85 3570 ac_status=$?
cannam@85 3571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 3572 test $ac_status = 0; }; then :
cannam@85 3573 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
cannam@85 3574 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
cannam@85 3575 # in a Makefile. We should not override ac_cv_exeext if it was cached,
cannam@85 3576 # so that the user can short-circuit this test for compilers unknown to
cannam@85 3577 # Autoconf.
cannam@85 3578 for ac_file in $ac_files ''
cannam@85 3579 do
cannam@85 3580 test -f "$ac_file" || continue
cannam@85 3581 case $ac_file in
cannam@85 3582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
cannam@85 3583 ;;
cannam@85 3584 [ab].out )
cannam@85 3585 # We found the default executable, but exeext='' is most
cannam@85 3586 # certainly right.
cannam@85 3587 break;;
cannam@85 3588 *.* )
cannam@85 3589 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cannam@85 3590 then :; else
cannam@85 3591 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
cannam@85 3592 fi
cannam@85 3593 # We set ac_cv_exeext here because the later test for it is not
cannam@85 3594 # safe: cross compilers may not add the suffix if given an `-o'
cannam@85 3595 # argument, so we may need to know it at that point already.
cannam@85 3596 # Even if this section looks crufty: it has the advantage of
cannam@85 3597 # actually working.
cannam@85 3598 break;;
cannam@85 3599 * )
cannam@85 3600 break;;
cannam@85 3601 esac
cannam@85 3602 done
cannam@85 3603 test "$ac_cv_exeext" = no && ac_cv_exeext=
cannam@85 3604
cannam@85 3605 else
cannam@85 3606 ac_file=''
cannam@85 3607 fi
cannam@85 3608 if test -z "$ac_file"; then :
cannam@85 3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 3610 $as_echo "no" >&6; }
cannam@85 3611 $as_echo "$as_me: failed program was:" >&5
cannam@85 3612 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 3613
cannam@85 3614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@85 3615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@85 3616 as_fn_error 77 "C compiler cannot create executables
cannam@85 3617 See \`config.log' for more details" "$LINENO" 5; }
cannam@85 3618 else
cannam@85 3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@85 3620 $as_echo "yes" >&6; }
cannam@85 3621 fi
cannam@85 3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
cannam@85 3623 $as_echo_n "checking for C compiler default output file name... " >&6; }
cannam@85 3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
cannam@85 3625 $as_echo "$ac_file" >&6; }
cannam@85 3626 ac_exeext=$ac_cv_exeext
cannam@85 3627
cannam@85 3628 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cannam@85 3629 ac_clean_files=$ac_clean_files_save
cannam@85 3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cannam@85 3631 $as_echo_n "checking for suffix of executables... " >&6; }
cannam@85 3632 if { { ac_try="$ac_link"
cannam@85 3633 case "(($ac_try" in
cannam@85 3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@85 3635 *) ac_try_echo=$ac_try;;
cannam@85 3636 esac
cannam@85 3637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@85 3638 $as_echo "$ac_try_echo"; } >&5
cannam@85 3639 (eval "$ac_link") 2>&5
cannam@85 3640 ac_status=$?
cannam@85 3641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 3642 test $ac_status = 0; }; then :
cannam@85 3643 # If both `conftest.exe' and `conftest' are `present' (well, observable)
cannam@85 3644 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
cannam@85 3645 # work properly (i.e., refer to `conftest.exe'), while it won't with
cannam@85 3646 # `rm'.
cannam@85 3647 for ac_file in conftest.exe conftest conftest.*; do
cannam@85 3648 test -f "$ac_file" || continue
cannam@85 3649 case $ac_file in
cannam@85 3650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
cannam@85 3651 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
cannam@85 3652 break;;
cannam@85 3653 * ) break;;
cannam@85 3654 esac
cannam@85 3655 done
cannam@85 3656 else
cannam@85 3657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@85 3658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@85 3659 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
cannam@85 3660 See \`config.log' for more details" "$LINENO" 5; }
cannam@85 3661 fi
cannam@85 3662 rm -f conftest conftest$ac_cv_exeext
cannam@85 3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cannam@85 3664 $as_echo "$ac_cv_exeext" >&6; }
cannam@85 3665
cannam@85 3666 rm -f conftest.$ac_ext
cannam@85 3667 EXEEXT=$ac_cv_exeext
cannam@85 3668 ac_exeext=$EXEEXT
cannam@85 3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 3670 /* end confdefs.h. */
cannam@85 3671 #include <stdio.h>
cannam@85 3672 int
cannam@85 3673 main ()
cannam@85 3674 {
cannam@85 3675 FILE *f = fopen ("conftest.out", "w");
cannam@85 3676 return ferror (f) || fclose (f) != 0;
cannam@85 3677
cannam@85 3678 ;
cannam@85 3679 return 0;
cannam@85 3680 }
cannam@85 3681 _ACEOF
cannam@85 3682 ac_clean_files="$ac_clean_files conftest.out"
cannam@85 3683 # Check that the compiler produces executables we can run. If not, either
cannam@85 3684 # the compiler is broken, or we cross compile.
cannam@85 3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
cannam@85 3686 $as_echo_n "checking whether we are cross compiling... " >&6; }
cannam@85 3687 if test "$cross_compiling" != yes; then
cannam@85 3688 { { ac_try="$ac_link"
cannam@85 3689 case "(($ac_try" in
cannam@85 3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@85 3691 *) ac_try_echo=$ac_try;;
cannam@85 3692 esac
cannam@85 3693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@85 3694 $as_echo "$ac_try_echo"; } >&5
cannam@85 3695 (eval "$ac_link") 2>&5
cannam@85 3696 ac_status=$?
cannam@85 3697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 3698 test $ac_status = 0; }
cannam@85 3699 if { ac_try='./conftest$ac_cv_exeext'
cannam@85 3700 { { case "(($ac_try" in
cannam@85 3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@85 3702 *) ac_try_echo=$ac_try;;
cannam@85 3703 esac
cannam@85 3704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@85 3705 $as_echo "$ac_try_echo"; } >&5
cannam@85 3706 (eval "$ac_try") 2>&5
cannam@85 3707 ac_status=$?
cannam@85 3708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 3709 test $ac_status = 0; }; }; then
cannam@85 3710 cross_compiling=no
cannam@85 3711 else
cannam@85 3712 if test "$cross_compiling" = maybe; then
cannam@85 3713 cross_compiling=yes
cannam@85 3714 else
cannam@85 3715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@85 3716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@85 3717 as_fn_error $? "cannot run C compiled programs.
cannam@85 3718 If you meant to cross compile, use \`--host'.
cannam@85 3719 See \`config.log' for more details" "$LINENO" 5; }
cannam@85 3720 fi
cannam@85 3721 fi
cannam@85 3722 fi
cannam@85 3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
cannam@85 3724 $as_echo "$cross_compiling" >&6; }
cannam@85 3725
cannam@85 3726 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
cannam@85 3727 ac_clean_files=$ac_clean_files_save
cannam@85 3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cannam@85 3729 $as_echo_n "checking for suffix of object files... " >&6; }
cannam@85 3730 if ${ac_cv_objext+:} false; then :
cannam@85 3731 $as_echo_n "(cached) " >&6
cannam@85 3732 else
cannam@85 3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 3734 /* end confdefs.h. */
cannam@85 3735
cannam@85 3736 int
cannam@85 3737 main ()
cannam@85 3738 {
cannam@85 3739
cannam@85 3740 ;
cannam@85 3741 return 0;
cannam@85 3742 }
cannam@85 3743 _ACEOF
cannam@85 3744 rm -f conftest.o conftest.obj
cannam@85 3745 if { { ac_try="$ac_compile"
cannam@85 3746 case "(($ac_try" in
cannam@85 3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@85 3748 *) ac_try_echo=$ac_try;;
cannam@85 3749 esac
cannam@85 3750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@85 3751 $as_echo "$ac_try_echo"; } >&5
cannam@85 3752 (eval "$ac_compile") 2>&5
cannam@85 3753 ac_status=$?
cannam@85 3754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 3755 test $ac_status = 0; }; then :
cannam@85 3756 for ac_file in conftest.o conftest.obj conftest.*; do
cannam@85 3757 test -f "$ac_file" || continue;
cannam@85 3758 case $ac_file in
cannam@85 3759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
cannam@85 3760 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
cannam@85 3761 break;;
cannam@85 3762 esac
cannam@85 3763 done
cannam@85 3764 else
cannam@85 3765 $as_echo "$as_me: failed program was:" >&5
cannam@85 3766 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 3767
cannam@85 3768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@85 3769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@85 3770 as_fn_error $? "cannot compute suffix of object files: cannot compile
cannam@85 3771 See \`config.log' for more details" "$LINENO" 5; }
cannam@85 3772 fi
cannam@85 3773 rm -f conftest.$ac_cv_objext conftest.$ac_ext
cannam@85 3774 fi
cannam@85 3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cannam@85 3776 $as_echo "$ac_cv_objext" >&6; }
cannam@85 3777 OBJEXT=$ac_cv_objext
cannam@85 3778 ac_objext=$OBJEXT
cannam@85 3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cannam@85 3780 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cannam@85 3781 if ${ac_cv_c_compiler_gnu+:} false; then :
cannam@85 3782 $as_echo_n "(cached) " >&6
cannam@85 3783 else
cannam@85 3784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 3785 /* end confdefs.h. */
cannam@85 3786
cannam@85 3787 int
cannam@85 3788 main ()
cannam@85 3789 {
cannam@85 3790 #ifndef __GNUC__
cannam@85 3791 choke me
cannam@85 3792 #endif
cannam@85 3793
cannam@85 3794 ;
cannam@85 3795 return 0;
cannam@85 3796 }
cannam@85 3797 _ACEOF
cannam@85 3798 if ac_fn_c_try_compile "$LINENO"; then :
cannam@85 3799 ac_compiler_gnu=yes
cannam@85 3800 else
cannam@85 3801 ac_compiler_gnu=no
cannam@85 3802 fi
cannam@85 3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 3804 ac_cv_c_compiler_gnu=$ac_compiler_gnu
cannam@85 3805
cannam@85 3806 fi
cannam@85 3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cannam@85 3808 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
cannam@85 3809 if test $ac_compiler_gnu = yes; then
cannam@85 3810 GCC=yes
cannam@85 3811 else
cannam@85 3812 GCC=
cannam@85 3813 fi
cannam@85 3814 ac_test_CFLAGS=${CFLAGS+set}
cannam@85 3815 ac_save_CFLAGS=$CFLAGS
cannam@85 3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cannam@85 3817 $as_echo_n "checking whether $CC accepts -g... " >&6; }
cannam@85 3818 if ${ac_cv_prog_cc_g+:} false; then :
cannam@85 3819 $as_echo_n "(cached) " >&6
cannam@85 3820 else
cannam@85 3821 ac_save_c_werror_flag=$ac_c_werror_flag
cannam@85 3822 ac_c_werror_flag=yes
cannam@85 3823 ac_cv_prog_cc_g=no
cannam@85 3824 CFLAGS="-g"
cannam@85 3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 3826 /* end confdefs.h. */
cannam@85 3827
cannam@85 3828 int
cannam@85 3829 main ()
cannam@85 3830 {
cannam@85 3831
cannam@85 3832 ;
cannam@85 3833 return 0;
cannam@85 3834 }
cannam@85 3835 _ACEOF
cannam@85 3836 if ac_fn_c_try_compile "$LINENO"; then :
cannam@85 3837 ac_cv_prog_cc_g=yes
cannam@85 3838 else
cannam@85 3839 CFLAGS=""
cannam@85 3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 3841 /* end confdefs.h. */
cannam@85 3842
cannam@85 3843 int
cannam@85 3844 main ()
cannam@85 3845 {
cannam@85 3846
cannam@85 3847 ;
cannam@85 3848 return 0;
cannam@85 3849 }
cannam@85 3850 _ACEOF
cannam@85 3851 if ac_fn_c_try_compile "$LINENO"; then :
cannam@85 3852
cannam@85 3853 else
cannam@85 3854 ac_c_werror_flag=$ac_save_c_werror_flag
cannam@85 3855 CFLAGS="-g"
cannam@85 3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 3857 /* end confdefs.h. */
cannam@85 3858
cannam@85 3859 int
cannam@85 3860 main ()
cannam@85 3861 {
cannam@85 3862
cannam@85 3863 ;
cannam@85 3864 return 0;
cannam@85 3865 }
cannam@85 3866 _ACEOF
cannam@85 3867 if ac_fn_c_try_compile "$LINENO"; then :
cannam@85 3868 ac_cv_prog_cc_g=yes
cannam@85 3869 fi
cannam@85 3870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 3871 fi
cannam@85 3872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 3873 fi
cannam@85 3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 3875 ac_c_werror_flag=$ac_save_c_werror_flag
cannam@85 3876 fi
cannam@85 3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cannam@85 3878 $as_echo "$ac_cv_prog_cc_g" >&6; }
cannam@85 3879 if test "$ac_test_CFLAGS" = set; then
cannam@85 3880 CFLAGS=$ac_save_CFLAGS
cannam@85 3881 elif test $ac_cv_prog_cc_g = yes; then
cannam@85 3882 if test "$GCC" = yes; then
cannam@85 3883 CFLAGS="-g -O2"
cannam@85 3884 else
cannam@85 3885 CFLAGS="-g"
cannam@85 3886 fi
cannam@85 3887 else
cannam@85 3888 if test "$GCC" = yes; then
cannam@85 3889 CFLAGS="-O2"
cannam@85 3890 else
cannam@85 3891 CFLAGS=
cannam@85 3892 fi
cannam@85 3893 fi
cannam@85 3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cannam@85 3895 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cannam@85 3896 if ${ac_cv_prog_cc_c89+:} false; then :
cannam@85 3897 $as_echo_n "(cached) " >&6
cannam@85 3898 else
cannam@85 3899 ac_cv_prog_cc_c89=no
cannam@85 3900 ac_save_CC=$CC
cannam@85 3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 3902 /* end confdefs.h. */
cannam@85 3903 #include <stdarg.h>
cannam@85 3904 #include <stdio.h>
cannam@85 3905 #include <sys/types.h>
cannam@85 3906 #include <sys/stat.h>
cannam@85 3907 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
cannam@85 3908 struct buf { int x; };
cannam@85 3909 FILE * (*rcsopen) (struct buf *, struct stat *, int);
cannam@85 3910 static char *e (p, i)
cannam@85 3911 char **p;
cannam@85 3912 int i;
cannam@85 3913 {
cannam@85 3914 return p[i];
cannam@85 3915 }
cannam@85 3916 static char *f (char * (*g) (char **, int), char **p, ...)
cannam@85 3917 {
cannam@85 3918 char *s;
cannam@85 3919 va_list v;
cannam@85 3920 va_start (v,p);
cannam@85 3921 s = g (p, va_arg (v,int));
cannam@85 3922 va_end (v);
cannam@85 3923 return s;
cannam@85 3924 }
cannam@85 3925
cannam@85 3926 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
cannam@85 3927 function prototypes and stuff, but not '\xHH' hex character constants.
cannam@85 3928 These don't provoke an error unfortunately, instead are silently treated
cannam@85 3929 as 'x'. The following induces an error, until -std is added to get
cannam@85 3930 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
cannam@85 3931 array size at least. It's necessary to write '\x00'==0 to get something
cannam@85 3932 that's true only with -std. */
cannam@85 3933 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
cannam@85 3934
cannam@85 3935 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
cannam@85 3936 inside strings and character constants. */
cannam@85 3937 #define FOO(x) 'x'
cannam@85 3938 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
cannam@85 3939
cannam@85 3940 int test (int i, double x);
cannam@85 3941 struct s1 {int (*f) (int a);};
cannam@85 3942 struct s2 {int (*f) (double a);};
cannam@85 3943 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
cannam@85 3944 int argc;
cannam@85 3945 char **argv;
cannam@85 3946 int
cannam@85 3947 main ()
cannam@85 3948 {
cannam@85 3949 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
cannam@85 3950 ;
cannam@85 3951 return 0;
cannam@85 3952 }
cannam@85 3953 _ACEOF
cannam@85 3954 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
cannam@85 3955 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
cannam@85 3956 do
cannam@85 3957 CC="$ac_save_CC $ac_arg"
cannam@85 3958 if ac_fn_c_try_compile "$LINENO"; then :
cannam@85 3959 ac_cv_prog_cc_c89=$ac_arg
cannam@85 3960 fi
cannam@85 3961 rm -f core conftest.err conftest.$ac_objext
cannam@85 3962 test "x$ac_cv_prog_cc_c89" != "xno" && break
cannam@85 3963 done
cannam@85 3964 rm -f conftest.$ac_ext
cannam@85 3965 CC=$ac_save_CC
cannam@85 3966
cannam@85 3967 fi
cannam@85 3968 # AC_CACHE_VAL
cannam@85 3969 case "x$ac_cv_prog_cc_c89" in
cannam@85 3970 x)
cannam@85 3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cannam@85 3972 $as_echo "none needed" >&6; } ;;
cannam@85 3973 xno)
cannam@85 3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cannam@85 3975 $as_echo "unsupported" >&6; } ;;
cannam@85 3976 *)
cannam@85 3977 CC="$CC $ac_cv_prog_cc_c89"
cannam@85 3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cannam@85 3979 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
cannam@85 3980 esac
cannam@85 3981 if test "x$ac_cv_prog_cc_c89" != xno; then :
cannam@85 3982
cannam@85 3983 fi
cannam@85 3984
cannam@85 3985 ac_ext=c
cannam@85 3986 ac_cpp='$CPP $CPPFLAGS'
cannam@85 3987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 3988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 3989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 3990 DEPDIR="${am__leading_dot}deps"
cannam@85 3991
cannam@85 3992 ac_config_commands="$ac_config_commands depfiles"
cannam@85 3993
cannam@85 3994
cannam@85 3995 am_make=${MAKE-make}
cannam@85 3996 cat > confinc << 'END'
cannam@85 3997 am__doit:
cannam@85 3998 @echo this is the am__doit target
cannam@85 3999 .PHONY: am__doit
cannam@85 4000 END
cannam@85 4001 # If we don't find an include directive, just comment out the code.
cannam@85 4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
cannam@85 4003 $as_echo_n "checking for style of include used by $am_make... " >&6; }
cannam@85 4004 am__include="#"
cannam@85 4005 am__quote=
cannam@85 4006 _am_result=none
cannam@85 4007 # First try GNU make style include.
cannam@85 4008 echo "include confinc" > confmf
cannam@85 4009 # Ignore all kinds of additional output from `make'.
cannam@85 4010 case `$am_make -s -f confmf 2> /dev/null` in #(
cannam@85 4011 *the\ am__doit\ target*)
cannam@85 4012 am__include=include
cannam@85 4013 am__quote=
cannam@85 4014 _am_result=GNU
cannam@85 4015 ;;
cannam@85 4016 esac
cannam@85 4017 # Now try BSD make style include.
cannam@85 4018 if test "$am__include" = "#"; then
cannam@85 4019 echo '.include "confinc"' > confmf
cannam@85 4020 case `$am_make -s -f confmf 2> /dev/null` in #(
cannam@85 4021 *the\ am__doit\ target*)
cannam@85 4022 am__include=.include
cannam@85 4023 am__quote="\""
cannam@85 4024 _am_result=BSD
cannam@85 4025 ;;
cannam@85 4026 esac
cannam@85 4027 fi
cannam@85 4028
cannam@85 4029
cannam@85 4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
cannam@85 4031 $as_echo "$_am_result" >&6; }
cannam@85 4032 rm -f confinc confmf
cannam@85 4033
cannam@85 4034 # Check whether --enable-dependency-tracking was given.
cannam@85 4035 if test "${enable_dependency_tracking+set}" = set; then :
cannam@85 4036 enableval=$enable_dependency_tracking;
cannam@85 4037 fi
cannam@85 4038
cannam@85 4039 if test "x$enable_dependency_tracking" != xno; then
cannam@85 4040 am_depcomp="$ac_aux_dir/depcomp"
cannam@85 4041 AMDEPBACKSLASH='\'
cannam@85 4042 fi
cannam@85 4043 if test "x$enable_dependency_tracking" != xno; then
cannam@85 4044 AMDEP_TRUE=
cannam@85 4045 AMDEP_FALSE='#'
cannam@85 4046 else
cannam@85 4047 AMDEP_TRUE='#'
cannam@85 4048 AMDEP_FALSE=
cannam@85 4049 fi
cannam@85 4050
cannam@85 4051
cannam@85 4052
cannam@85 4053 depcc="$CC" am_compiler_list=
cannam@85 4054
cannam@85 4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cannam@85 4056 $as_echo_n "checking dependency style of $depcc... " >&6; }
cannam@85 4057 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cannam@85 4058 $as_echo_n "(cached) " >&6
cannam@85 4059 else
cannam@85 4060 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
cannam@85 4061 # We make a subdir and do the tests there. Otherwise we can end up
cannam@85 4062 # making bogus files that we don't know about and never remove. For
cannam@85 4063 # instance it was reported that on HP-UX the gcc test will end up
cannam@85 4064 # making a dummy file named `D' -- because `-MD' means `put the output
cannam@85 4065 # in D'.
cannam@85 4066 mkdir conftest.dir
cannam@85 4067 # Copy depcomp to subdir because otherwise we won't find it if we're
cannam@85 4068 # using a relative directory.
cannam@85 4069 cp "$am_depcomp" conftest.dir
cannam@85 4070 cd conftest.dir
cannam@85 4071 # We will build objects and dependencies in a subdirectory because
cannam@85 4072 # it helps to detect inapplicable dependency modes. For instance
cannam@85 4073 # both Tru64's cc and ICC support -MD to output dependencies as a
cannam@85 4074 # side effect of compilation, but ICC will put the dependencies in
cannam@85 4075 # the current directory while Tru64 will put them in the object
cannam@85 4076 # directory.
cannam@85 4077 mkdir sub
cannam@85 4078
cannam@85 4079 am_cv_CC_dependencies_compiler_type=none
cannam@85 4080 if test "$am_compiler_list" = ""; then
cannam@85 4081 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
cannam@85 4082 fi
cannam@85 4083 am__universal=false
cannam@85 4084 case " $depcc " in #(
cannam@85 4085 *\ -arch\ *\ -arch\ *) am__universal=true ;;
cannam@85 4086 esac
cannam@85 4087
cannam@85 4088 for depmode in $am_compiler_list; do
cannam@85 4089 # Setup a source with many dependencies, because some compilers
cannam@85 4090 # like to wrap large dependency lists on column 80 (with \), and
cannam@85 4091 # we should not choose a depcomp mode which is confused by this.
cannam@85 4092 #
cannam@85 4093 # We need to recreate these files for each test, as the compiler may
cannam@85 4094 # overwrite some of them when testing with obscure command lines.
cannam@85 4095 # This happens at least with the AIX C compiler.
cannam@85 4096 : > sub/conftest.c
cannam@85 4097 for i in 1 2 3 4 5 6; do
cannam@85 4098 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cannam@85 4099 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
cannam@85 4100 # Solaris 8's {/usr,}/bin/sh.
cannam@85 4101 touch sub/conftst$i.h
cannam@85 4102 done
cannam@85 4103 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
cannam@85 4104
cannam@85 4105 # We check with `-c' and `-o' for the sake of the "dashmstdout"
cannam@85 4106 # mode. It turns out that the SunPro C++ compiler does not properly
cannam@85 4107 # handle `-M -o', and we need to detect this. Also, some Intel
cannam@85 4108 # versions had trouble with output in subdirs
cannam@85 4109 am__obj=sub/conftest.${OBJEXT-o}
cannam@85 4110 am__minus_obj="-o $am__obj"
cannam@85 4111 case $depmode in
cannam@85 4112 gcc)
cannam@85 4113 # This depmode causes a compiler race in universal mode.
cannam@85 4114 test "$am__universal" = false || continue
cannam@85 4115 ;;
cannam@85 4116 nosideeffect)
cannam@85 4117 # after this tag, mechanisms are not by side-effect, so they'll
cannam@85 4118 # only be used when explicitly requested
cannam@85 4119 if test "x$enable_dependency_tracking" = xyes; then
cannam@85 4120 continue
cannam@85 4121 else
cannam@85 4122 break
cannam@85 4123 fi
cannam@85 4124 ;;
cannam@85 4125 msvisualcpp | msvcmsys)
cannam@85 4126 # This compiler won't grok `-c -o', but also, the minuso test has
cannam@85 4127 # not run yet. These depmodes are late enough in the game, and
cannam@85 4128 # so weak that their functioning should not be impacted.
cannam@85 4129 am__obj=conftest.${OBJEXT-o}
cannam@85 4130 am__minus_obj=
cannam@85 4131 ;;
cannam@85 4132 none) break ;;
cannam@85 4133 esac
cannam@85 4134 if depmode=$depmode \
cannam@85 4135 source=sub/conftest.c object=$am__obj \
cannam@85 4136 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cannam@85 4137 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
cannam@85 4138 >/dev/null 2>conftest.err &&
cannam@85 4139 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
cannam@85 4140 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cannam@85 4141 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
cannam@85 4142 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
cannam@85 4143 # icc doesn't choke on unknown options, it will just issue warnings
cannam@85 4144 # or remarks (even with -Werror). So we grep stderr for any message
cannam@85 4145 # that says an option was ignored or not supported.
cannam@85 4146 # When given -MP, icc 7.0 and 7.1 complain thusly:
cannam@85 4147 # icc: Command line warning: ignoring option '-M'; no argument required
cannam@85 4148 # The diagnosis changed in icc 8.0:
cannam@85 4149 # icc: Command line remark: option '-MP' not supported
cannam@85 4150 if (grep 'ignoring option' conftest.err ||
cannam@85 4151 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
cannam@85 4152 am_cv_CC_dependencies_compiler_type=$depmode
cannam@85 4153 break
cannam@85 4154 fi
cannam@85 4155 fi
cannam@85 4156 done
cannam@85 4157
cannam@85 4158 cd ..
cannam@85 4159 rm -rf conftest.dir
cannam@85 4160 else
cannam@85 4161 am_cv_CC_dependencies_compiler_type=none
cannam@85 4162 fi
cannam@85 4163
cannam@85 4164 fi
cannam@85 4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cannam@85 4166 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
cannam@85 4167 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
cannam@85 4168
cannam@85 4169 if
cannam@85 4170 test "x$enable_dependency_tracking" != xno \
cannam@85 4171 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
cannam@85 4172 am__fastdepCC_TRUE=
cannam@85 4173 am__fastdepCC_FALSE='#'
cannam@85 4174 else
cannam@85 4175 am__fastdepCC_TRUE='#'
cannam@85 4176 am__fastdepCC_FALSE=
cannam@85 4177 fi
cannam@85 4178
cannam@85 4179
cannam@85 4180 if test "x$CC" != xcc; then
cannam@85 4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cannam@85 4182 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
cannam@85 4183 else
cannam@85 4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cannam@85 4185 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
cannam@85 4186 fi
cannam@85 4187 set dummy $CC; ac_cc=`$as_echo "$2" |
cannam@85 4188 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cannam@85 4189 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cannam@85 4190 $as_echo_n "(cached) " >&6
cannam@85 4191 else
cannam@85 4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 4193 /* end confdefs.h. */
cannam@85 4194
cannam@85 4195 int
cannam@85 4196 main ()
cannam@85 4197 {
cannam@85 4198
cannam@85 4199 ;
cannam@85 4200 return 0;
cannam@85 4201 }
cannam@85 4202 _ACEOF
cannam@85 4203 # Make sure it works both with $CC and with simple cc.
cannam@85 4204 # We do the test twice because some compilers refuse to overwrite an
cannam@85 4205 # existing .o file with -o, though they will create one.
cannam@85 4206 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
cannam@85 4207 rm -f conftest2.*
cannam@85 4208 if { { case "(($ac_try" in
cannam@85 4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@85 4210 *) ac_try_echo=$ac_try;;
cannam@85 4211 esac
cannam@85 4212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@85 4213 $as_echo "$ac_try_echo"; } >&5
cannam@85 4214 (eval "$ac_try") 2>&5
cannam@85 4215 ac_status=$?
cannam@85 4216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 4217 test $ac_status = 0; } &&
cannam@85 4218 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cannam@85 4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@85 4220 *) ac_try_echo=$ac_try;;
cannam@85 4221 esac
cannam@85 4222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@85 4223 $as_echo "$ac_try_echo"; } >&5
cannam@85 4224 (eval "$ac_try") 2>&5
cannam@85 4225 ac_status=$?
cannam@85 4226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 4227 test $ac_status = 0; };
cannam@85 4228 then
cannam@85 4229 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
cannam@85 4230 if test "x$CC" != xcc; then
cannam@85 4231 # Test first that cc exists at all.
cannam@85 4232 if { ac_try='cc -c conftest.$ac_ext >&5'
cannam@85 4233 { { case "(($ac_try" in
cannam@85 4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@85 4235 *) ac_try_echo=$ac_try;;
cannam@85 4236 esac
cannam@85 4237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@85 4238 $as_echo "$ac_try_echo"; } >&5
cannam@85 4239 (eval "$ac_try") 2>&5
cannam@85 4240 ac_status=$?
cannam@85 4241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 4242 test $ac_status = 0; }; }; then
cannam@85 4243 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
cannam@85 4244 rm -f conftest2.*
cannam@85 4245 if { { case "(($ac_try" in
cannam@85 4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@85 4247 *) ac_try_echo=$ac_try;;
cannam@85 4248 esac
cannam@85 4249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@85 4250 $as_echo "$ac_try_echo"; } >&5
cannam@85 4251 (eval "$ac_try") 2>&5
cannam@85 4252 ac_status=$?
cannam@85 4253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 4254 test $ac_status = 0; } &&
cannam@85 4255 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cannam@85 4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@85 4257 *) ac_try_echo=$ac_try;;
cannam@85 4258 esac
cannam@85 4259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@85 4260 $as_echo "$ac_try_echo"; } >&5
cannam@85 4261 (eval "$ac_try") 2>&5
cannam@85 4262 ac_status=$?
cannam@85 4263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 4264 test $ac_status = 0; };
cannam@85 4265 then
cannam@85 4266 # cc works too.
cannam@85 4267 :
cannam@85 4268 else
cannam@85 4269 # cc exists but doesn't like -o.
cannam@85 4270 eval ac_cv_prog_cc_${ac_cc}_c_o=no
cannam@85 4271 fi
cannam@85 4272 fi
cannam@85 4273 fi
cannam@85 4274 else
cannam@85 4275 eval ac_cv_prog_cc_${ac_cc}_c_o=no
cannam@85 4276 fi
cannam@85 4277 rm -f core conftest*
cannam@85 4278
cannam@85 4279 fi
cannam@85 4280 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cannam@85 4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@85 4282 $as_echo "yes" >&6; }
cannam@85 4283 else
cannam@85 4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 4285 $as_echo "no" >&6; }
cannam@85 4286
cannam@85 4287 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cannam@85 4288
cannam@85 4289 fi
cannam@85 4290
cannam@85 4291 # FIXME: we rely on the cache variable name because
cannam@85 4292 # there is no other way.
cannam@85 4293 set dummy $CC
cannam@85 4294 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cannam@85 4295 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
cannam@85 4296 if test "$am_t" != yes; then
cannam@85 4297 # Losing compiler, so override with the script.
cannam@85 4298 # FIXME: It is wrong to rewrite CC.
cannam@85 4299 # But if we don't then we get into trouble of one sort or another.
cannam@85 4300 # A longer-term fix would be to have automake use am__CC in this case,
cannam@85 4301 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
cannam@85 4302 CC="$am_aux_dir/compile $CC"
cannam@85 4303 fi
cannam@85 4304
cannam@85 4305
cannam@85 4306 ac_ext=cpp
cannam@85 4307 ac_cpp='$CXXCPP $CPPFLAGS'
cannam@85 4308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 4309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 4310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cannam@85 4311 if test -z "$CXX"; then
cannam@85 4312 if test -n "$CCC"; then
cannam@85 4313 CXX=$CCC
cannam@85 4314 else
cannam@85 4315 if test -n "$ac_tool_prefix"; then
cannam@85 4316 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
cannam@85 4317 do
cannam@85 4318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@85 4319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@85 4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 4321 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 4322 if ${ac_cv_prog_CXX+:} false; then :
cannam@85 4323 $as_echo_n "(cached) " >&6
cannam@85 4324 else
cannam@85 4325 if test -n "$CXX"; then
cannam@85 4326 ac_cv_prog_CXX="$CXX" # Let the user override the test.
cannam@85 4327 else
cannam@85 4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 4329 for as_dir in $PATH
cannam@85 4330 do
cannam@85 4331 IFS=$as_save_IFS
cannam@85 4332 test -z "$as_dir" && as_dir=.
cannam@85 4333 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 4335 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cannam@85 4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 4337 break 2
cannam@85 4338 fi
cannam@85 4339 done
cannam@85 4340 done
cannam@85 4341 IFS=$as_save_IFS
cannam@85 4342
cannam@85 4343 fi
cannam@85 4344 fi
cannam@85 4345 CXX=$ac_cv_prog_CXX
cannam@85 4346 if test -n "$CXX"; then
cannam@85 4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cannam@85 4348 $as_echo "$CXX" >&6; }
cannam@85 4349 else
cannam@85 4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 4351 $as_echo "no" >&6; }
cannam@85 4352 fi
cannam@85 4353
cannam@85 4354
cannam@85 4355 test -n "$CXX" && break
cannam@85 4356 done
cannam@85 4357 fi
cannam@85 4358 if test -z "$CXX"; then
cannam@85 4359 ac_ct_CXX=$CXX
cannam@85 4360 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
cannam@85 4361 do
cannam@85 4362 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@85 4363 set dummy $ac_prog; ac_word=$2
cannam@85 4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 4365 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 4366 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cannam@85 4367 $as_echo_n "(cached) " >&6
cannam@85 4368 else
cannam@85 4369 if test -n "$ac_ct_CXX"; then
cannam@85 4370 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
cannam@85 4371 else
cannam@85 4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 4373 for as_dir in $PATH
cannam@85 4374 do
cannam@85 4375 IFS=$as_save_IFS
cannam@85 4376 test -z "$as_dir" && as_dir=.
cannam@85 4377 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 4378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 4379 ac_cv_prog_ac_ct_CXX="$ac_prog"
cannam@85 4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 4381 break 2
cannam@85 4382 fi
cannam@85 4383 done
cannam@85 4384 done
cannam@85 4385 IFS=$as_save_IFS
cannam@85 4386
cannam@85 4387 fi
cannam@85 4388 fi
cannam@85 4389 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
cannam@85 4390 if test -n "$ac_ct_CXX"; then
cannam@85 4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cannam@85 4392 $as_echo "$ac_ct_CXX" >&6; }
cannam@85 4393 else
cannam@85 4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 4395 $as_echo "no" >&6; }
cannam@85 4396 fi
cannam@85 4397
cannam@85 4398
cannam@85 4399 test -n "$ac_ct_CXX" && break
cannam@85 4400 done
cannam@85 4401
cannam@85 4402 if test "x$ac_ct_CXX" = x; then
cannam@85 4403 CXX="g++"
cannam@85 4404 else
cannam@85 4405 case $cross_compiling:$ac_tool_warned in
cannam@85 4406 yes:)
cannam@85 4407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@85 4408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@85 4409 ac_tool_warned=yes ;;
cannam@85 4410 esac
cannam@85 4411 CXX=$ac_ct_CXX
cannam@85 4412 fi
cannam@85 4413 fi
cannam@85 4414
cannam@85 4415 fi
cannam@85 4416 fi
cannam@85 4417 # Provide some information about the compiler.
cannam@85 4418 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cannam@85 4419 set X $ac_compile
cannam@85 4420 ac_compiler=$2
cannam@85 4421 for ac_option in --version -v -V -qversion; do
cannam@85 4422 { { ac_try="$ac_compiler $ac_option >&5"
cannam@85 4423 case "(($ac_try" in
cannam@85 4424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@85 4425 *) ac_try_echo=$ac_try;;
cannam@85 4426 esac
cannam@85 4427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@85 4428 $as_echo "$ac_try_echo"; } >&5
cannam@85 4429 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cannam@85 4430 ac_status=$?
cannam@85 4431 if test -s conftest.err; then
cannam@85 4432 sed '10a\
cannam@85 4433 ... rest of stderr output deleted ...
cannam@85 4434 10q' conftest.err >conftest.er1
cannam@85 4435 cat conftest.er1 >&5
cannam@85 4436 fi
cannam@85 4437 rm -f conftest.er1 conftest.err
cannam@85 4438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 4439 test $ac_status = 0; }
cannam@85 4440 done
cannam@85 4441
cannam@85 4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cannam@85 4443 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cannam@85 4444 if ${ac_cv_cxx_compiler_gnu+:} false; then :
cannam@85 4445 $as_echo_n "(cached) " >&6
cannam@85 4446 else
cannam@85 4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 4448 /* end confdefs.h. */
cannam@85 4449
cannam@85 4450 int
cannam@85 4451 main ()
cannam@85 4452 {
cannam@85 4453 #ifndef __GNUC__
cannam@85 4454 choke me
cannam@85 4455 #endif
cannam@85 4456
cannam@85 4457 ;
cannam@85 4458 return 0;
cannam@85 4459 }
cannam@85 4460 _ACEOF
cannam@85 4461 if ac_fn_cxx_try_compile "$LINENO"; then :
cannam@85 4462 ac_compiler_gnu=yes
cannam@85 4463 else
cannam@85 4464 ac_compiler_gnu=no
cannam@85 4465 fi
cannam@85 4466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 4467 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
cannam@85 4468
cannam@85 4469 fi
cannam@85 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cannam@85 4471 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
cannam@85 4472 if test $ac_compiler_gnu = yes; then
cannam@85 4473 GXX=yes
cannam@85 4474 else
cannam@85 4475 GXX=
cannam@85 4476 fi
cannam@85 4477 ac_test_CXXFLAGS=${CXXFLAGS+set}
cannam@85 4478 ac_save_CXXFLAGS=$CXXFLAGS
cannam@85 4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cannam@85 4480 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
cannam@85 4481 if ${ac_cv_prog_cxx_g+:} false; then :
cannam@85 4482 $as_echo_n "(cached) " >&6
cannam@85 4483 else
cannam@85 4484 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
cannam@85 4485 ac_cxx_werror_flag=yes
cannam@85 4486 ac_cv_prog_cxx_g=no
cannam@85 4487 CXXFLAGS="-g"
cannam@85 4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 4489 /* end confdefs.h. */
cannam@85 4490
cannam@85 4491 int
cannam@85 4492 main ()
cannam@85 4493 {
cannam@85 4494
cannam@85 4495 ;
cannam@85 4496 return 0;
cannam@85 4497 }
cannam@85 4498 _ACEOF
cannam@85 4499 if ac_fn_cxx_try_compile "$LINENO"; then :
cannam@85 4500 ac_cv_prog_cxx_g=yes
cannam@85 4501 else
cannam@85 4502 CXXFLAGS=""
cannam@85 4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 4504 /* end confdefs.h. */
cannam@85 4505
cannam@85 4506 int
cannam@85 4507 main ()
cannam@85 4508 {
cannam@85 4509
cannam@85 4510 ;
cannam@85 4511 return 0;
cannam@85 4512 }
cannam@85 4513 _ACEOF
cannam@85 4514 if ac_fn_cxx_try_compile "$LINENO"; then :
cannam@85 4515
cannam@85 4516 else
cannam@85 4517 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cannam@85 4518 CXXFLAGS="-g"
cannam@85 4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 4520 /* end confdefs.h. */
cannam@85 4521
cannam@85 4522 int
cannam@85 4523 main ()
cannam@85 4524 {
cannam@85 4525
cannam@85 4526 ;
cannam@85 4527 return 0;
cannam@85 4528 }
cannam@85 4529 _ACEOF
cannam@85 4530 if ac_fn_cxx_try_compile "$LINENO"; then :
cannam@85 4531 ac_cv_prog_cxx_g=yes
cannam@85 4532 fi
cannam@85 4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 4534 fi
cannam@85 4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 4536 fi
cannam@85 4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 4538 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cannam@85 4539 fi
cannam@85 4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cannam@85 4541 $as_echo "$ac_cv_prog_cxx_g" >&6; }
cannam@85 4542 if test "$ac_test_CXXFLAGS" = set; then
cannam@85 4543 CXXFLAGS=$ac_save_CXXFLAGS
cannam@85 4544 elif test $ac_cv_prog_cxx_g = yes; then
cannam@85 4545 if test "$GXX" = yes; then
cannam@85 4546 CXXFLAGS="-g -O2"
cannam@85 4547 else
cannam@85 4548 CXXFLAGS="-g"
cannam@85 4549 fi
cannam@85 4550 else
cannam@85 4551 if test "$GXX" = yes; then
cannam@85 4552 CXXFLAGS="-O2"
cannam@85 4553 else
cannam@85 4554 CXXFLAGS=
cannam@85 4555 fi
cannam@85 4556 fi
cannam@85 4557 ac_ext=c
cannam@85 4558 ac_cpp='$CPP $CPPFLAGS'
cannam@85 4559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 4560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 4561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 4562
cannam@85 4563 depcc="$CXX" am_compiler_list=
cannam@85 4564
cannam@85 4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cannam@85 4566 $as_echo_n "checking dependency style of $depcc... " >&6; }
cannam@85 4567 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cannam@85 4568 $as_echo_n "(cached) " >&6
cannam@85 4569 else
cannam@85 4570 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
cannam@85 4571 # We make a subdir and do the tests there. Otherwise we can end up
cannam@85 4572 # making bogus files that we don't know about and never remove. For
cannam@85 4573 # instance it was reported that on HP-UX the gcc test will end up
cannam@85 4574 # making a dummy file named `D' -- because `-MD' means `put the output
cannam@85 4575 # in D'.
cannam@85 4576 mkdir conftest.dir
cannam@85 4577 # Copy depcomp to subdir because otherwise we won't find it if we're
cannam@85 4578 # using a relative directory.
cannam@85 4579 cp "$am_depcomp" conftest.dir
cannam@85 4580 cd conftest.dir
cannam@85 4581 # We will build objects and dependencies in a subdirectory because
cannam@85 4582 # it helps to detect inapplicable dependency modes. For instance
cannam@85 4583 # both Tru64's cc and ICC support -MD to output dependencies as a
cannam@85 4584 # side effect of compilation, but ICC will put the dependencies in
cannam@85 4585 # the current directory while Tru64 will put them in the object
cannam@85 4586 # directory.
cannam@85 4587 mkdir sub
cannam@85 4588
cannam@85 4589 am_cv_CXX_dependencies_compiler_type=none
cannam@85 4590 if test "$am_compiler_list" = ""; then
cannam@85 4591 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
cannam@85 4592 fi
cannam@85 4593 am__universal=false
cannam@85 4594 case " $depcc " in #(
cannam@85 4595 *\ -arch\ *\ -arch\ *) am__universal=true ;;
cannam@85 4596 esac
cannam@85 4597
cannam@85 4598 for depmode in $am_compiler_list; do
cannam@85 4599 # Setup a source with many dependencies, because some compilers
cannam@85 4600 # like to wrap large dependency lists on column 80 (with \), and
cannam@85 4601 # we should not choose a depcomp mode which is confused by this.
cannam@85 4602 #
cannam@85 4603 # We need to recreate these files for each test, as the compiler may
cannam@85 4604 # overwrite some of them when testing with obscure command lines.
cannam@85 4605 # This happens at least with the AIX C compiler.
cannam@85 4606 : > sub/conftest.c
cannam@85 4607 for i in 1 2 3 4 5 6; do
cannam@85 4608 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cannam@85 4609 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
cannam@85 4610 # Solaris 8's {/usr,}/bin/sh.
cannam@85 4611 touch sub/conftst$i.h
cannam@85 4612 done
cannam@85 4613 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
cannam@85 4614
cannam@85 4615 # We check with `-c' and `-o' for the sake of the "dashmstdout"
cannam@85 4616 # mode. It turns out that the SunPro C++ compiler does not properly
cannam@85 4617 # handle `-M -o', and we need to detect this. Also, some Intel
cannam@85 4618 # versions had trouble with output in subdirs
cannam@85 4619 am__obj=sub/conftest.${OBJEXT-o}
cannam@85 4620 am__minus_obj="-o $am__obj"
cannam@85 4621 case $depmode in
cannam@85 4622 gcc)
cannam@85 4623 # This depmode causes a compiler race in universal mode.
cannam@85 4624 test "$am__universal" = false || continue
cannam@85 4625 ;;
cannam@85 4626 nosideeffect)
cannam@85 4627 # after this tag, mechanisms are not by side-effect, so they'll
cannam@85 4628 # only be used when explicitly requested
cannam@85 4629 if test "x$enable_dependency_tracking" = xyes; then
cannam@85 4630 continue
cannam@85 4631 else
cannam@85 4632 break
cannam@85 4633 fi
cannam@85 4634 ;;
cannam@85 4635 msvisualcpp | msvcmsys)
cannam@85 4636 # This compiler won't grok `-c -o', but also, the minuso test has
cannam@85 4637 # not run yet. These depmodes are late enough in the game, and
cannam@85 4638 # so weak that their functioning should not be impacted.
cannam@85 4639 am__obj=conftest.${OBJEXT-o}
cannam@85 4640 am__minus_obj=
cannam@85 4641 ;;
cannam@85 4642 none) break ;;
cannam@85 4643 esac
cannam@85 4644 if depmode=$depmode \
cannam@85 4645 source=sub/conftest.c object=$am__obj \
cannam@85 4646 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cannam@85 4647 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
cannam@85 4648 >/dev/null 2>conftest.err &&
cannam@85 4649 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
cannam@85 4650 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cannam@85 4651 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
cannam@85 4652 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
cannam@85 4653 # icc doesn't choke on unknown options, it will just issue warnings
cannam@85 4654 # or remarks (even with -Werror). So we grep stderr for any message
cannam@85 4655 # that says an option was ignored or not supported.
cannam@85 4656 # When given -MP, icc 7.0 and 7.1 complain thusly:
cannam@85 4657 # icc: Command line warning: ignoring option '-M'; no argument required
cannam@85 4658 # The diagnosis changed in icc 8.0:
cannam@85 4659 # icc: Command line remark: option '-MP' not supported
cannam@85 4660 if (grep 'ignoring option' conftest.err ||
cannam@85 4661 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
cannam@85 4662 am_cv_CXX_dependencies_compiler_type=$depmode
cannam@85 4663 break
cannam@85 4664 fi
cannam@85 4665 fi
cannam@85 4666 done
cannam@85 4667
cannam@85 4668 cd ..
cannam@85 4669 rm -rf conftest.dir
cannam@85 4670 else
cannam@85 4671 am_cv_CXX_dependencies_compiler_type=none
cannam@85 4672 fi
cannam@85 4673
cannam@85 4674 fi
cannam@85 4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cannam@85 4676 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
cannam@85 4677 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
cannam@85 4678
cannam@85 4679 if
cannam@85 4680 test "x$enable_dependency_tracking" != xno \
cannam@85 4681 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
cannam@85 4682 am__fastdepCXX_TRUE=
cannam@85 4683 am__fastdepCXX_FALSE='#'
cannam@85 4684 else
cannam@85 4685 am__fastdepCXX_TRUE='#'
cannam@85 4686 am__fastdepCXX_FALSE=
cannam@85 4687 fi
cannam@85 4688
cannam@85 4689
cannam@85 4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cannam@85 4691 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
cannam@85 4692 if ${ac_cv_path_SED+:} false; then :
cannam@85 4693 $as_echo_n "(cached) " >&6
cannam@85 4694 else
cannam@85 4695 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
cannam@85 4696 for ac_i in 1 2 3 4 5 6 7; do
cannam@85 4697 ac_script="$ac_script$as_nl$ac_script"
cannam@85 4698 done
cannam@85 4699 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cannam@85 4700 { ac_script=; unset ac_script;}
cannam@85 4701 if test -z "$SED"; then
cannam@85 4702 ac_path_SED_found=false
cannam@85 4703 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@85 4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 4705 for as_dir in $PATH
cannam@85 4706 do
cannam@85 4707 IFS=$as_save_IFS
cannam@85 4708 test -z "$as_dir" && as_dir=.
cannam@85 4709 for ac_prog in sed gsed; do
cannam@85 4710 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 4711 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cannam@85 4712 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
cannam@85 4713 # Check for GNU ac_path_SED and select it if it is found.
cannam@85 4714 # Check for GNU $ac_path_SED
cannam@85 4715 case `"$ac_path_SED" --version 2>&1` in
cannam@85 4716 *GNU*)
cannam@85 4717 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
cannam@85 4718 *)
cannam@85 4719 ac_count=0
cannam@85 4720 $as_echo_n 0123456789 >"conftest.in"
cannam@85 4721 while :
cannam@85 4722 do
cannam@85 4723 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@85 4724 mv "conftest.tmp" "conftest.in"
cannam@85 4725 cp "conftest.in" "conftest.nl"
cannam@85 4726 $as_echo '' >> "conftest.nl"
cannam@85 4727 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@85 4728 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@85 4729 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@85 4730 if test $ac_count -gt ${ac_path_SED_max-0}; then
cannam@85 4731 # Best one so far, save it but keep looking for a better one
cannam@85 4732 ac_cv_path_SED="$ac_path_SED"
cannam@85 4733 ac_path_SED_max=$ac_count
cannam@85 4734 fi
cannam@85 4735 # 10*(2^10) chars as input seems more than enough
cannam@85 4736 test $ac_count -gt 10 && break
cannam@85 4737 done
cannam@85 4738 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@85 4739 esac
cannam@85 4740
cannam@85 4741 $ac_path_SED_found && break 3
cannam@85 4742 done
cannam@85 4743 done
cannam@85 4744 done
cannam@85 4745 IFS=$as_save_IFS
cannam@85 4746 if test -z "$ac_cv_path_SED"; then
cannam@85 4747 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cannam@85 4748 fi
cannam@85 4749 else
cannam@85 4750 ac_cv_path_SED=$SED
cannam@85 4751 fi
cannam@85 4752
cannam@85 4753 fi
cannam@85 4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cannam@85 4755 $as_echo "$ac_cv_path_SED" >&6; }
cannam@85 4756 SED="$ac_cv_path_SED"
cannam@85 4757 rm -f conftest.sed
cannam@85 4758
cannam@85 4759
cannam@85 4760 # Do not check for F77.
cannam@85 4761
cannam@85 4762 case `pwd` in
cannam@85 4763 *\ * | *\ *)
cannam@85 4764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cannam@85 4765 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
cannam@85 4766 esac
cannam@85 4767
cannam@85 4768
cannam@85 4769
cannam@85 4770 macro_version='2.4'
cannam@85 4771 macro_revision='1.3293'
cannam@85 4772
cannam@85 4773
cannam@85 4774
cannam@85 4775
cannam@85 4776
cannam@85 4777
cannam@85 4778
cannam@85 4779
cannam@85 4780
cannam@85 4781
cannam@85 4782
cannam@85 4783
cannam@85 4784
cannam@85 4785 ltmain="$ac_aux_dir/ltmain.sh"
cannam@85 4786
cannam@85 4787 # Backslashify metacharacters that are still active within
cannam@85 4788 # double-quoted strings.
cannam@85 4789 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
cannam@85 4790
cannam@85 4791 # Same as above, but do not quote variable references.
cannam@85 4792 double_quote_subst='s/\(["`\\]\)/\\\1/g'
cannam@85 4793
cannam@85 4794 # Sed substitution to delay expansion of an escaped shell variable in a
cannam@85 4795 # double_quote_subst'ed string.
cannam@85 4796 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
cannam@85 4797
cannam@85 4798 # Sed substitution to delay expansion of an escaped single quote.
cannam@85 4799 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
cannam@85 4800
cannam@85 4801 # Sed substitution to avoid accidental globbing in evaled expressions
cannam@85 4802 no_glob_subst='s/\*/\\\*/g'
cannam@85 4803
cannam@85 4804 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@85 4805 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
cannam@85 4806 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
cannam@85 4807
cannam@85 4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
cannam@85 4809 $as_echo_n "checking how to print strings... " >&6; }
cannam@85 4810 # Test print first, because it will be a builtin if present.
cannam@85 4811 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cannam@85 4812 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
cannam@85 4813 ECHO='print -r --'
cannam@85 4814 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
cannam@85 4815 ECHO='printf %s\n'
cannam@85 4816 else
cannam@85 4817 # Use this function as a fallback that always works.
cannam@85 4818 func_fallback_echo ()
cannam@85 4819 {
cannam@85 4820 eval 'cat <<_LTECHO_EOF
cannam@85 4821 $1
cannam@85 4822 _LTECHO_EOF'
cannam@85 4823 }
cannam@85 4824 ECHO='func_fallback_echo'
cannam@85 4825 fi
cannam@85 4826
cannam@85 4827 # func_echo_all arg...
cannam@85 4828 # Invoke $ECHO with all args, space-separated.
cannam@85 4829 func_echo_all ()
cannam@85 4830 {
cannam@85 4831 $ECHO ""
cannam@85 4832 }
cannam@85 4833
cannam@85 4834 case "$ECHO" in
cannam@85 4835 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
cannam@85 4836 $as_echo "printf" >&6; } ;;
cannam@85 4837 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
cannam@85 4838 $as_echo "print -r" >&6; } ;;
cannam@85 4839 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
cannam@85 4840 $as_echo "cat" >&6; } ;;
cannam@85 4841 esac
cannam@85 4842
cannam@85 4843
cannam@85 4844
cannam@85 4845
cannam@85 4846
cannam@85 4847
cannam@85 4848
cannam@85 4849
cannam@85 4850
cannam@85 4851
cannam@85 4852
cannam@85 4853
cannam@85 4854
cannam@85 4855
cannam@85 4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cannam@85 4857 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
cannam@85 4858 if ${ac_cv_path_SED+:} false; then :
cannam@85 4859 $as_echo_n "(cached) " >&6
cannam@85 4860 else
cannam@85 4861 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
cannam@85 4862 for ac_i in 1 2 3 4 5 6 7; do
cannam@85 4863 ac_script="$ac_script$as_nl$ac_script"
cannam@85 4864 done
cannam@85 4865 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cannam@85 4866 { ac_script=; unset ac_script;}
cannam@85 4867 if test -z "$SED"; then
cannam@85 4868 ac_path_SED_found=false
cannam@85 4869 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@85 4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 4871 for as_dir in $PATH
cannam@85 4872 do
cannam@85 4873 IFS=$as_save_IFS
cannam@85 4874 test -z "$as_dir" && as_dir=.
cannam@85 4875 for ac_prog in sed gsed; do
cannam@85 4876 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 4877 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cannam@85 4878 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
cannam@85 4879 # Check for GNU ac_path_SED and select it if it is found.
cannam@85 4880 # Check for GNU $ac_path_SED
cannam@85 4881 case `"$ac_path_SED" --version 2>&1` in
cannam@85 4882 *GNU*)
cannam@85 4883 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
cannam@85 4884 *)
cannam@85 4885 ac_count=0
cannam@85 4886 $as_echo_n 0123456789 >"conftest.in"
cannam@85 4887 while :
cannam@85 4888 do
cannam@85 4889 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@85 4890 mv "conftest.tmp" "conftest.in"
cannam@85 4891 cp "conftest.in" "conftest.nl"
cannam@85 4892 $as_echo '' >> "conftest.nl"
cannam@85 4893 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@85 4894 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@85 4895 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@85 4896 if test $ac_count -gt ${ac_path_SED_max-0}; then
cannam@85 4897 # Best one so far, save it but keep looking for a better one
cannam@85 4898 ac_cv_path_SED="$ac_path_SED"
cannam@85 4899 ac_path_SED_max=$ac_count
cannam@85 4900 fi
cannam@85 4901 # 10*(2^10) chars as input seems more than enough
cannam@85 4902 test $ac_count -gt 10 && break
cannam@85 4903 done
cannam@85 4904 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@85 4905 esac
cannam@85 4906
cannam@85 4907 $ac_path_SED_found && break 3
cannam@85 4908 done
cannam@85 4909 done
cannam@85 4910 done
cannam@85 4911 IFS=$as_save_IFS
cannam@85 4912 if test -z "$ac_cv_path_SED"; then
cannam@85 4913 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cannam@85 4914 fi
cannam@85 4915 else
cannam@85 4916 ac_cv_path_SED=$SED
cannam@85 4917 fi
cannam@85 4918
cannam@85 4919 fi
cannam@85 4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cannam@85 4921 $as_echo "$ac_cv_path_SED" >&6; }
cannam@85 4922 SED="$ac_cv_path_SED"
cannam@85 4923 rm -f conftest.sed
cannam@85 4924
cannam@85 4925 test -z "$SED" && SED=sed
cannam@85 4926 Xsed="$SED -e 1s/^X//"
cannam@85 4927
cannam@85 4928
cannam@85 4929
cannam@85 4930
cannam@85 4931
cannam@85 4932
cannam@85 4933
cannam@85 4934
cannam@85 4935
cannam@85 4936
cannam@85 4937
cannam@85 4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
cannam@85 4939 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cannam@85 4940 if ${ac_cv_path_GREP+:} false; then :
cannam@85 4941 $as_echo_n "(cached) " >&6
cannam@85 4942 else
cannam@85 4943 if test -z "$GREP"; then
cannam@85 4944 ac_path_GREP_found=false
cannam@85 4945 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@85 4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 4947 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
cannam@85 4948 do
cannam@85 4949 IFS=$as_save_IFS
cannam@85 4950 test -z "$as_dir" && as_dir=.
cannam@85 4951 for ac_prog in grep ggrep; do
cannam@85 4952 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 4953 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cannam@85 4954 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
cannam@85 4955 # Check for GNU ac_path_GREP and select it if it is found.
cannam@85 4956 # Check for GNU $ac_path_GREP
cannam@85 4957 case `"$ac_path_GREP" --version 2>&1` in
cannam@85 4958 *GNU*)
cannam@85 4959 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
cannam@85 4960 *)
cannam@85 4961 ac_count=0
cannam@85 4962 $as_echo_n 0123456789 >"conftest.in"
cannam@85 4963 while :
cannam@85 4964 do
cannam@85 4965 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@85 4966 mv "conftest.tmp" "conftest.in"
cannam@85 4967 cp "conftest.in" "conftest.nl"
cannam@85 4968 $as_echo 'GREP' >> "conftest.nl"
cannam@85 4969 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@85 4970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@85 4971 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@85 4972 if test $ac_count -gt ${ac_path_GREP_max-0}; then
cannam@85 4973 # Best one so far, save it but keep looking for a better one
cannam@85 4974 ac_cv_path_GREP="$ac_path_GREP"
cannam@85 4975 ac_path_GREP_max=$ac_count
cannam@85 4976 fi
cannam@85 4977 # 10*(2^10) chars as input seems more than enough
cannam@85 4978 test $ac_count -gt 10 && break
cannam@85 4979 done
cannam@85 4980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@85 4981 esac
cannam@85 4982
cannam@85 4983 $ac_path_GREP_found && break 3
cannam@85 4984 done
cannam@85 4985 done
cannam@85 4986 done
cannam@85 4987 IFS=$as_save_IFS
cannam@85 4988 if test -z "$ac_cv_path_GREP"; then
cannam@85 4989 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cannam@85 4990 fi
cannam@85 4991 else
cannam@85 4992 ac_cv_path_GREP=$GREP
cannam@85 4993 fi
cannam@85 4994
cannam@85 4995 fi
cannam@85 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
cannam@85 4997 $as_echo "$ac_cv_path_GREP" >&6; }
cannam@85 4998 GREP="$ac_cv_path_GREP"
cannam@85 4999
cannam@85 5000
cannam@85 5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
cannam@85 5002 $as_echo_n "checking for egrep... " >&6; }
cannam@85 5003 if ${ac_cv_path_EGREP+:} false; then :
cannam@85 5004 $as_echo_n "(cached) " >&6
cannam@85 5005 else
cannam@85 5006 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
cannam@85 5007 then ac_cv_path_EGREP="$GREP -E"
cannam@85 5008 else
cannam@85 5009 if test -z "$EGREP"; then
cannam@85 5010 ac_path_EGREP_found=false
cannam@85 5011 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@85 5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 5013 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
cannam@85 5014 do
cannam@85 5015 IFS=$as_save_IFS
cannam@85 5016 test -z "$as_dir" && as_dir=.
cannam@85 5017 for ac_prog in egrep; do
cannam@85 5018 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 5019 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cannam@85 5020 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
cannam@85 5021 # Check for GNU ac_path_EGREP and select it if it is found.
cannam@85 5022 # Check for GNU $ac_path_EGREP
cannam@85 5023 case `"$ac_path_EGREP" --version 2>&1` in
cannam@85 5024 *GNU*)
cannam@85 5025 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
cannam@85 5026 *)
cannam@85 5027 ac_count=0
cannam@85 5028 $as_echo_n 0123456789 >"conftest.in"
cannam@85 5029 while :
cannam@85 5030 do
cannam@85 5031 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@85 5032 mv "conftest.tmp" "conftest.in"
cannam@85 5033 cp "conftest.in" "conftest.nl"
cannam@85 5034 $as_echo 'EGREP' >> "conftest.nl"
cannam@85 5035 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@85 5036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@85 5037 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@85 5038 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
cannam@85 5039 # Best one so far, save it but keep looking for a better one
cannam@85 5040 ac_cv_path_EGREP="$ac_path_EGREP"
cannam@85 5041 ac_path_EGREP_max=$ac_count
cannam@85 5042 fi
cannam@85 5043 # 10*(2^10) chars as input seems more than enough
cannam@85 5044 test $ac_count -gt 10 && break
cannam@85 5045 done
cannam@85 5046 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@85 5047 esac
cannam@85 5048
cannam@85 5049 $ac_path_EGREP_found && break 3
cannam@85 5050 done
cannam@85 5051 done
cannam@85 5052 done
cannam@85 5053 IFS=$as_save_IFS
cannam@85 5054 if test -z "$ac_cv_path_EGREP"; then
cannam@85 5055 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cannam@85 5056 fi
cannam@85 5057 else
cannam@85 5058 ac_cv_path_EGREP=$EGREP
cannam@85 5059 fi
cannam@85 5060
cannam@85 5061 fi
cannam@85 5062 fi
cannam@85 5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
cannam@85 5064 $as_echo "$ac_cv_path_EGREP" >&6; }
cannam@85 5065 EGREP="$ac_cv_path_EGREP"
cannam@85 5066
cannam@85 5067
cannam@85 5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cannam@85 5069 $as_echo_n "checking for fgrep... " >&6; }
cannam@85 5070 if ${ac_cv_path_FGREP+:} false; then :
cannam@85 5071 $as_echo_n "(cached) " >&6
cannam@85 5072 else
cannam@85 5073 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
cannam@85 5074 then ac_cv_path_FGREP="$GREP -F"
cannam@85 5075 else
cannam@85 5076 if test -z "$FGREP"; then
cannam@85 5077 ac_path_FGREP_found=false
cannam@85 5078 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@85 5079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 5080 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
cannam@85 5081 do
cannam@85 5082 IFS=$as_save_IFS
cannam@85 5083 test -z "$as_dir" && as_dir=.
cannam@85 5084 for ac_prog in fgrep; do
cannam@85 5085 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 5086 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cannam@85 5087 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
cannam@85 5088 # Check for GNU ac_path_FGREP and select it if it is found.
cannam@85 5089 # Check for GNU $ac_path_FGREP
cannam@85 5090 case `"$ac_path_FGREP" --version 2>&1` in
cannam@85 5091 *GNU*)
cannam@85 5092 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
cannam@85 5093 *)
cannam@85 5094 ac_count=0
cannam@85 5095 $as_echo_n 0123456789 >"conftest.in"
cannam@85 5096 while :
cannam@85 5097 do
cannam@85 5098 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@85 5099 mv "conftest.tmp" "conftest.in"
cannam@85 5100 cp "conftest.in" "conftest.nl"
cannam@85 5101 $as_echo 'FGREP' >> "conftest.nl"
cannam@85 5102 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@85 5103 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@85 5104 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@85 5105 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
cannam@85 5106 # Best one so far, save it but keep looking for a better one
cannam@85 5107 ac_cv_path_FGREP="$ac_path_FGREP"
cannam@85 5108 ac_path_FGREP_max=$ac_count
cannam@85 5109 fi
cannam@85 5110 # 10*(2^10) chars as input seems more than enough
cannam@85 5111 test $ac_count -gt 10 && break
cannam@85 5112 done
cannam@85 5113 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@85 5114 esac
cannam@85 5115
cannam@85 5116 $ac_path_FGREP_found && break 3
cannam@85 5117 done
cannam@85 5118 done
cannam@85 5119 done
cannam@85 5120 IFS=$as_save_IFS
cannam@85 5121 if test -z "$ac_cv_path_FGREP"; then
cannam@85 5122 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cannam@85 5123 fi
cannam@85 5124 else
cannam@85 5125 ac_cv_path_FGREP=$FGREP
cannam@85 5126 fi
cannam@85 5127
cannam@85 5128 fi
cannam@85 5129 fi
cannam@85 5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cannam@85 5131 $as_echo "$ac_cv_path_FGREP" >&6; }
cannam@85 5132 FGREP="$ac_cv_path_FGREP"
cannam@85 5133
cannam@85 5134
cannam@85 5135 test -z "$GREP" && GREP=grep
cannam@85 5136
cannam@85 5137
cannam@85 5138
cannam@85 5139
cannam@85 5140
cannam@85 5141
cannam@85 5142
cannam@85 5143
cannam@85 5144
cannam@85 5145
cannam@85 5146
cannam@85 5147
cannam@85 5148
cannam@85 5149
cannam@85 5150
cannam@85 5151
cannam@85 5152
cannam@85 5153
cannam@85 5154
cannam@85 5155 # Check whether --with-gnu-ld was given.
cannam@85 5156 if test "${with_gnu_ld+set}" = set; then :
cannam@85 5157 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
cannam@85 5158 else
cannam@85 5159 with_gnu_ld=no
cannam@85 5160 fi
cannam@85 5161
cannam@85 5162 ac_prog=ld
cannam@85 5163 if test "$GCC" = yes; then
cannam@85 5164 # Check if gcc -print-prog-name=ld gives a path.
cannam@85 5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cannam@85 5166 $as_echo_n "checking for ld used by $CC... " >&6; }
cannam@85 5167 case $host in
cannam@85 5168 *-*-mingw*)
cannam@85 5169 # gcc leaves a trailing carriage return which upsets mingw
cannam@85 5170 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
cannam@85 5171 *)
cannam@85 5172 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
cannam@85 5173 esac
cannam@85 5174 case $ac_prog in
cannam@85 5175 # Accept absolute paths.
cannam@85 5176 [\\/]* | ?:[\\/]*)
cannam@85 5177 re_direlt='/[^/][^/]*/\.\./'
cannam@85 5178 # Canonicalize the pathname of ld
cannam@85 5179 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
cannam@85 5180 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
cannam@85 5181 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cannam@85 5182 done
cannam@85 5183 test -z "$LD" && LD="$ac_prog"
cannam@85 5184 ;;
cannam@85 5185 "")
cannam@85 5186 # If it fails, then pretend we aren't using GCC.
cannam@85 5187 ac_prog=ld
cannam@85 5188 ;;
cannam@85 5189 *)
cannam@85 5190 # If it is relative, then search for the first ld in PATH.
cannam@85 5191 with_gnu_ld=unknown
cannam@85 5192 ;;
cannam@85 5193 esac
cannam@85 5194 elif test "$with_gnu_ld" = yes; then
cannam@85 5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cannam@85 5196 $as_echo_n "checking for GNU ld... " >&6; }
cannam@85 5197 else
cannam@85 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cannam@85 5199 $as_echo_n "checking for non-GNU ld... " >&6; }
cannam@85 5200 fi
cannam@85 5201 if ${lt_cv_path_LD+:} false; then :
cannam@85 5202 $as_echo_n "(cached) " >&6
cannam@85 5203 else
cannam@85 5204 if test -z "$LD"; then
cannam@85 5205 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@85 5206 for ac_dir in $PATH; do
cannam@85 5207 IFS="$lt_save_ifs"
cannam@85 5208 test -z "$ac_dir" && ac_dir=.
cannam@85 5209 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
cannam@85 5210 lt_cv_path_LD="$ac_dir/$ac_prog"
cannam@85 5211 # Check to see if the program is GNU ld. I'd rather use --version,
cannam@85 5212 # but apparently some variants of GNU ld only accept -v.
cannam@85 5213 # Break only if it was the GNU/non-GNU ld that we prefer.
cannam@85 5214 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
cannam@85 5215 *GNU* | *'with BFD'*)
cannam@85 5216 test "$with_gnu_ld" != no && break
cannam@85 5217 ;;
cannam@85 5218 *)
cannam@85 5219 test "$with_gnu_ld" != yes && break
cannam@85 5220 ;;
cannam@85 5221 esac
cannam@85 5222 fi
cannam@85 5223 done
cannam@85 5224 IFS="$lt_save_ifs"
cannam@85 5225 else
cannam@85 5226 lt_cv_path_LD="$LD" # Let the user override the test with a path.
cannam@85 5227 fi
cannam@85 5228 fi
cannam@85 5229
cannam@85 5230 LD="$lt_cv_path_LD"
cannam@85 5231 if test -n "$LD"; then
cannam@85 5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cannam@85 5233 $as_echo "$LD" >&6; }
cannam@85 5234 else
cannam@85 5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 5236 $as_echo "no" >&6; }
cannam@85 5237 fi
cannam@85 5238 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cannam@85 5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cannam@85 5240 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cannam@85 5241 if ${lt_cv_prog_gnu_ld+:} false; then :
cannam@85 5242 $as_echo_n "(cached) " >&6
cannam@85 5243 else
cannam@85 5244 # I'd rather use --version here, but apparently some GNU lds only accept -v.
cannam@85 5245 case `$LD -v 2>&1 </dev/null` in
cannam@85 5246 *GNU* | *'with BFD'*)
cannam@85 5247 lt_cv_prog_gnu_ld=yes
cannam@85 5248 ;;
cannam@85 5249 *)
cannam@85 5250 lt_cv_prog_gnu_ld=no
cannam@85 5251 ;;
cannam@85 5252 esac
cannam@85 5253 fi
cannam@85 5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cannam@85 5255 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
cannam@85 5256 with_gnu_ld=$lt_cv_prog_gnu_ld
cannam@85 5257
cannam@85 5258
cannam@85 5259
cannam@85 5260
cannam@85 5261
cannam@85 5262
cannam@85 5263
cannam@85 5264
cannam@85 5265
cannam@85 5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cannam@85 5267 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cannam@85 5268 if ${lt_cv_path_NM+:} false; then :
cannam@85 5269 $as_echo_n "(cached) " >&6
cannam@85 5270 else
cannam@85 5271 if test -n "$NM"; then
cannam@85 5272 # Let the user override the test.
cannam@85 5273 lt_cv_path_NM="$NM"
cannam@85 5274 else
cannam@85 5275 lt_nm_to_check="${ac_tool_prefix}nm"
cannam@85 5276 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
cannam@85 5277 lt_nm_to_check="$lt_nm_to_check nm"
cannam@85 5278 fi
cannam@85 5279 for lt_tmp_nm in $lt_nm_to_check; do
cannam@85 5280 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@85 5281 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
cannam@85 5282 IFS="$lt_save_ifs"
cannam@85 5283 test -z "$ac_dir" && ac_dir=.
cannam@85 5284 tmp_nm="$ac_dir/$lt_tmp_nm"
cannam@85 5285 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
cannam@85 5286 # Check to see if the nm accepts a BSD-compat flag.
cannam@85 5287 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
cannam@85 5288 # nm: unknown option "B" ignored
cannam@85 5289 # Tru64's nm complains that /dev/null is an invalid object file
cannam@85 5290 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
cannam@85 5291 */dev/null* | *'Invalid file or object type'*)
cannam@85 5292 lt_cv_path_NM="$tmp_nm -B"
cannam@85 5293 break
cannam@85 5294 ;;
cannam@85 5295 *)
cannam@85 5296 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
cannam@85 5297 */dev/null*)
cannam@85 5298 lt_cv_path_NM="$tmp_nm -p"
cannam@85 5299 break
cannam@85 5300 ;;
cannam@85 5301 *)
cannam@85 5302 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
cannam@85 5303 continue # so that we can try to find one that supports BSD flags
cannam@85 5304 ;;
cannam@85 5305 esac
cannam@85 5306 ;;
cannam@85 5307 esac
cannam@85 5308 fi
cannam@85 5309 done
cannam@85 5310 IFS="$lt_save_ifs"
cannam@85 5311 done
cannam@85 5312 : ${lt_cv_path_NM=no}
cannam@85 5313 fi
cannam@85 5314 fi
cannam@85 5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cannam@85 5316 $as_echo "$lt_cv_path_NM" >&6; }
cannam@85 5317 if test "$lt_cv_path_NM" != "no"; then
cannam@85 5318 NM="$lt_cv_path_NM"
cannam@85 5319 else
cannam@85 5320 # Didn't find any BSD compatible name lister, look for dumpbin.
cannam@85 5321 if test -n "$DUMPBIN"; then :
cannam@85 5322 # Let the user override the test.
cannam@85 5323 else
cannam@85 5324 if test -n "$ac_tool_prefix"; then
cannam@85 5325 for ac_prog in dumpbin "link -dump"
cannam@85 5326 do
cannam@85 5327 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@85 5328 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@85 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 5330 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 5331 if ${ac_cv_prog_DUMPBIN+:} false; then :
cannam@85 5332 $as_echo_n "(cached) " >&6
cannam@85 5333 else
cannam@85 5334 if test -n "$DUMPBIN"; then
cannam@85 5335 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
cannam@85 5336 else
cannam@85 5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 5338 for as_dir in $PATH
cannam@85 5339 do
cannam@85 5340 IFS=$as_save_IFS
cannam@85 5341 test -z "$as_dir" && as_dir=.
cannam@85 5342 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 5343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 5344 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cannam@85 5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 5346 break 2
cannam@85 5347 fi
cannam@85 5348 done
cannam@85 5349 done
cannam@85 5350 IFS=$as_save_IFS
cannam@85 5351
cannam@85 5352 fi
cannam@85 5353 fi
cannam@85 5354 DUMPBIN=$ac_cv_prog_DUMPBIN
cannam@85 5355 if test -n "$DUMPBIN"; then
cannam@85 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cannam@85 5357 $as_echo "$DUMPBIN" >&6; }
cannam@85 5358 else
cannam@85 5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 5360 $as_echo "no" >&6; }
cannam@85 5361 fi
cannam@85 5362
cannam@85 5363
cannam@85 5364 test -n "$DUMPBIN" && break
cannam@85 5365 done
cannam@85 5366 fi
cannam@85 5367 if test -z "$DUMPBIN"; then
cannam@85 5368 ac_ct_DUMPBIN=$DUMPBIN
cannam@85 5369 for ac_prog in dumpbin "link -dump"
cannam@85 5370 do
cannam@85 5371 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@85 5372 set dummy $ac_prog; ac_word=$2
cannam@85 5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 5374 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 5375 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cannam@85 5376 $as_echo_n "(cached) " >&6
cannam@85 5377 else
cannam@85 5378 if test -n "$ac_ct_DUMPBIN"; then
cannam@85 5379 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
cannam@85 5380 else
cannam@85 5381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 5382 for as_dir in $PATH
cannam@85 5383 do
cannam@85 5384 IFS=$as_save_IFS
cannam@85 5385 test -z "$as_dir" && as_dir=.
cannam@85 5386 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 5387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 5388 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cannam@85 5389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 5390 break 2
cannam@85 5391 fi
cannam@85 5392 done
cannam@85 5393 done
cannam@85 5394 IFS=$as_save_IFS
cannam@85 5395
cannam@85 5396 fi
cannam@85 5397 fi
cannam@85 5398 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
cannam@85 5399 if test -n "$ac_ct_DUMPBIN"; then
cannam@85 5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cannam@85 5401 $as_echo "$ac_ct_DUMPBIN" >&6; }
cannam@85 5402 else
cannam@85 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 5404 $as_echo "no" >&6; }
cannam@85 5405 fi
cannam@85 5406
cannam@85 5407
cannam@85 5408 test -n "$ac_ct_DUMPBIN" && break
cannam@85 5409 done
cannam@85 5410
cannam@85 5411 if test "x$ac_ct_DUMPBIN" = x; then
cannam@85 5412 DUMPBIN=":"
cannam@85 5413 else
cannam@85 5414 case $cross_compiling:$ac_tool_warned in
cannam@85 5415 yes:)
cannam@85 5416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@85 5417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@85 5418 ac_tool_warned=yes ;;
cannam@85 5419 esac
cannam@85 5420 DUMPBIN=$ac_ct_DUMPBIN
cannam@85 5421 fi
cannam@85 5422 fi
cannam@85 5423
cannam@85 5424 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
cannam@85 5425 *COFF*)
cannam@85 5426 DUMPBIN="$DUMPBIN -symbols"
cannam@85 5427 ;;
cannam@85 5428 *)
cannam@85 5429 DUMPBIN=:
cannam@85 5430 ;;
cannam@85 5431 esac
cannam@85 5432 fi
cannam@85 5433
cannam@85 5434 if test "$DUMPBIN" != ":"; then
cannam@85 5435 NM="$DUMPBIN"
cannam@85 5436 fi
cannam@85 5437 fi
cannam@85 5438 test -z "$NM" && NM=nm
cannam@85 5439
cannam@85 5440
cannam@85 5441
cannam@85 5442
cannam@85 5443
cannam@85 5444
cannam@85 5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cannam@85 5446 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
cannam@85 5447 if ${lt_cv_nm_interface+:} false; then :
cannam@85 5448 $as_echo_n "(cached) " >&6
cannam@85 5449 else
cannam@85 5450 lt_cv_nm_interface="BSD nm"
cannam@85 5451 echo "int some_variable = 0;" > conftest.$ac_ext
cannam@85 5452 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cannam@85 5453 (eval "$ac_compile" 2>conftest.err)
cannam@85 5454 cat conftest.err >&5
cannam@85 5455 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cannam@85 5456 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
cannam@85 5457 cat conftest.err >&5
cannam@85 5458 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cannam@85 5459 cat conftest.out >&5
cannam@85 5460 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
cannam@85 5461 lt_cv_nm_interface="MS dumpbin"
cannam@85 5462 fi
cannam@85 5463 rm -f conftest*
cannam@85 5464 fi
cannam@85 5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cannam@85 5466 $as_echo "$lt_cv_nm_interface" >&6; }
cannam@85 5467
cannam@85 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cannam@85 5469 $as_echo_n "checking whether ln -s works... " >&6; }
cannam@85 5470 LN_S=$as_ln_s
cannam@85 5471 if test "$LN_S" = "ln -s"; then
cannam@85 5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@85 5473 $as_echo "yes" >&6; }
cannam@85 5474 else
cannam@85 5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cannam@85 5476 $as_echo "no, using $LN_S" >&6; }
cannam@85 5477 fi
cannam@85 5478
cannam@85 5479 # find the maximum length of command line arguments
cannam@85 5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cannam@85 5481 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
cannam@85 5482 if ${lt_cv_sys_max_cmd_len+:} false; then :
cannam@85 5483 $as_echo_n "(cached) " >&6
cannam@85 5484 else
cannam@85 5485 i=0
cannam@85 5486 teststring="ABCD"
cannam@85 5487
cannam@85 5488 case $build_os in
cannam@85 5489 msdosdjgpp*)
cannam@85 5490 # On DJGPP, this test can blow up pretty badly due to problems in libc
cannam@85 5491 # (any single argument exceeding 2000 bytes causes a buffer overrun
cannam@85 5492 # during glob expansion). Even if it were fixed, the result of this
cannam@85 5493 # check would be larger than it should be.
cannam@85 5494 lt_cv_sys_max_cmd_len=12288; # 12K is about right
cannam@85 5495 ;;
cannam@85 5496
cannam@85 5497 gnu*)
cannam@85 5498 # Under GNU Hurd, this test is not required because there is
cannam@85 5499 # no limit to the length of command line arguments.
cannam@85 5500 # Libtool will interpret -1 as no limit whatsoever
cannam@85 5501 lt_cv_sys_max_cmd_len=-1;
cannam@85 5502 ;;
cannam@85 5503
cannam@85 5504 cygwin* | mingw* | cegcc*)
cannam@85 5505 # On Win9x/ME, this test blows up -- it succeeds, but takes
cannam@85 5506 # about 5 minutes as the teststring grows exponentially.
cannam@85 5507 # Worse, since 9x/ME are not pre-emptively multitasking,
cannam@85 5508 # you end up with a "frozen" computer, even though with patience
cannam@85 5509 # the test eventually succeeds (with a max line length of 256k).
cannam@85 5510 # Instead, let's just punt: use the minimum linelength reported by
cannam@85 5511 # all of the supported platforms: 8192 (on NT/2K/XP).
cannam@85 5512 lt_cv_sys_max_cmd_len=8192;
cannam@85 5513 ;;
cannam@85 5514
cannam@85 5515 mint*)
cannam@85 5516 # On MiNT this can take a long time and run out of memory.
cannam@85 5517 lt_cv_sys_max_cmd_len=8192;
cannam@85 5518 ;;
cannam@85 5519
cannam@85 5520 amigaos*)
cannam@85 5521 # On AmigaOS with pdksh, this test takes hours, literally.
cannam@85 5522 # So we just punt and use a minimum line length of 8192.
cannam@85 5523 lt_cv_sys_max_cmd_len=8192;
cannam@85 5524 ;;
cannam@85 5525
cannam@85 5526 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
cannam@85 5527 # This has been around since 386BSD, at least. Likely further.
cannam@85 5528 if test -x /sbin/sysctl; then
cannam@85 5529 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
cannam@85 5530 elif test -x /usr/sbin/sysctl; then
cannam@85 5531 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
cannam@85 5532 else
cannam@85 5533 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cannam@85 5534 fi
cannam@85 5535 # And add a safety zone
cannam@85 5536 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
cannam@85 5537 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
cannam@85 5538 ;;
cannam@85 5539
cannam@85 5540 interix*)
cannam@85 5541 # We know the value 262144 and hardcode it with a safety zone (like BSD)
cannam@85 5542 lt_cv_sys_max_cmd_len=196608
cannam@85 5543 ;;
cannam@85 5544
cannam@85 5545 osf*)
cannam@85 5546 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
cannam@85 5547 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
cannam@85 5548 # nice to cause kernel panics so lets avoid the loop below.
cannam@85 5549 # First set a reasonable default.
cannam@85 5550 lt_cv_sys_max_cmd_len=16384
cannam@85 5551 #
cannam@85 5552 if test -x /sbin/sysconfig; then
cannam@85 5553 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
cannam@85 5554 *1*) lt_cv_sys_max_cmd_len=-1 ;;
cannam@85 5555 esac
cannam@85 5556 fi
cannam@85 5557 ;;
cannam@85 5558 sco3.2v5*)
cannam@85 5559 lt_cv_sys_max_cmd_len=102400
cannam@85 5560 ;;
cannam@85 5561 sysv5* | sco5v6* | sysv4.2uw2*)
cannam@85 5562 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
cannam@85 5563 if test -n "$kargmax"; then
cannam@85 5564 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
cannam@85 5565 else
cannam@85 5566 lt_cv_sys_max_cmd_len=32768
cannam@85 5567 fi
cannam@85 5568 ;;
cannam@85 5569 *)
cannam@85 5570 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
cannam@85 5571 if test -n "$lt_cv_sys_max_cmd_len"; then
cannam@85 5572 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
cannam@85 5573 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
cannam@85 5574 else
cannam@85 5575 # Make teststring a little bigger before we do anything with it.
cannam@85 5576 # a 1K string should be a reasonable start.
cannam@85 5577 for i in 1 2 3 4 5 6 7 8 ; do
cannam@85 5578 teststring=$teststring$teststring
cannam@85 5579 done
cannam@85 5580 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
cannam@85 5581 # If test is not a shell built-in, we'll probably end up computing a
cannam@85 5582 # maximum length that is only half of the actual maximum length, but
cannam@85 5583 # we can't tell.
cannam@85 5584 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
cannam@85 5585 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cannam@85 5586 test $i != 17 # 1/2 MB should be enough
cannam@85 5587 do
cannam@85 5588 i=`expr $i + 1`
cannam@85 5589 teststring=$teststring$teststring
cannam@85 5590 done
cannam@85 5591 # Only check the string length outside the loop.
cannam@85 5592 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
cannam@85 5593 teststring=
cannam@85 5594 # Add a significant safety factor because C++ compilers can tack on
cannam@85 5595 # massive amounts of additional arguments before passing them to the
cannam@85 5596 # linker. It appears as though 1/2 is a usable value.
cannam@85 5597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
cannam@85 5598 fi
cannam@85 5599 ;;
cannam@85 5600 esac
cannam@85 5601
cannam@85 5602 fi
cannam@85 5603
cannam@85 5604 if test -n $lt_cv_sys_max_cmd_len ; then
cannam@85 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cannam@85 5606 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
cannam@85 5607 else
cannam@85 5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cannam@85 5609 $as_echo "none" >&6; }
cannam@85 5610 fi
cannam@85 5611 max_cmd_len=$lt_cv_sys_max_cmd_len
cannam@85 5612
cannam@85 5613
cannam@85 5614
cannam@85 5615
cannam@85 5616
cannam@85 5617
cannam@85 5618 : ${CP="cp -f"}
cannam@85 5619 : ${MV="mv -f"}
cannam@85 5620 : ${RM="rm -f"}
cannam@85 5621
cannam@85 5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cannam@85 5623 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
cannam@85 5624 # Try some XSI features
cannam@85 5625 xsi_shell=no
cannam@85 5626 ( _lt_dummy="a/b/c"
cannam@85 5627 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
cannam@85 5628 = c,a/b,b/c, \
cannam@85 5629 && eval 'test $(( 1 + 1 )) -eq 2 \
cannam@85 5630 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
cannam@85 5631 && xsi_shell=yes
cannam@85 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cannam@85 5633 $as_echo "$xsi_shell" >&6; }
cannam@85 5634
cannam@85 5635
cannam@85 5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cannam@85 5637 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
cannam@85 5638 lt_shell_append=no
cannam@85 5639 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
cannam@85 5640 >/dev/null 2>&1 \
cannam@85 5641 && lt_shell_append=yes
cannam@85 5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cannam@85 5643 $as_echo "$lt_shell_append" >&6; }
cannam@85 5644
cannam@85 5645
cannam@85 5646 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
cannam@85 5647 lt_unset=unset
cannam@85 5648 else
cannam@85 5649 lt_unset=false
cannam@85 5650 fi
cannam@85 5651
cannam@85 5652
cannam@85 5653
cannam@85 5654
cannam@85 5655
cannam@85 5656 # test EBCDIC or ASCII
cannam@85 5657 case `echo X|tr X '\101'` in
cannam@85 5658 A) # ASCII based system
cannam@85 5659 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
cannam@85 5660 lt_SP2NL='tr \040 \012'
cannam@85 5661 lt_NL2SP='tr \015\012 \040\040'
cannam@85 5662 ;;
cannam@85 5663 *) # EBCDIC based system
cannam@85 5664 lt_SP2NL='tr \100 \n'
cannam@85 5665 lt_NL2SP='tr \r\n \100\100'
cannam@85 5666 ;;
cannam@85 5667 esac
cannam@85 5668
cannam@85 5669
cannam@85 5670
cannam@85 5671
cannam@85 5672
cannam@85 5673
cannam@85 5674
cannam@85 5675
cannam@85 5676
cannam@85 5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
cannam@85 5678 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
cannam@85 5679 if ${lt_cv_to_host_file_cmd+:} false; then :
cannam@85 5680 $as_echo_n "(cached) " >&6
cannam@85 5681 else
cannam@85 5682 case $host in
cannam@85 5683 *-*-mingw* )
cannam@85 5684 case $build in
cannam@85 5685 *-*-mingw* ) # actually msys
cannam@85 5686 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
cannam@85 5687 ;;
cannam@85 5688 *-*-cygwin* )
cannam@85 5689 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
cannam@85 5690 ;;
cannam@85 5691 * ) # otherwise, assume *nix
cannam@85 5692 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
cannam@85 5693 ;;
cannam@85 5694 esac
cannam@85 5695 ;;
cannam@85 5696 *-*-cygwin* )
cannam@85 5697 case $build in
cannam@85 5698 *-*-mingw* ) # actually msys
cannam@85 5699 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
cannam@85 5700 ;;
cannam@85 5701 *-*-cygwin* )
cannam@85 5702 lt_cv_to_host_file_cmd=func_convert_file_noop
cannam@85 5703 ;;
cannam@85 5704 * ) # otherwise, assume *nix
cannam@85 5705 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
cannam@85 5706 ;;
cannam@85 5707 esac
cannam@85 5708 ;;
cannam@85 5709 * ) # unhandled hosts (and "normal" native builds)
cannam@85 5710 lt_cv_to_host_file_cmd=func_convert_file_noop
cannam@85 5711 ;;
cannam@85 5712 esac
cannam@85 5713
cannam@85 5714 fi
cannam@85 5715
cannam@85 5716 to_host_file_cmd=$lt_cv_to_host_file_cmd
cannam@85 5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
cannam@85 5718 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
cannam@85 5719
cannam@85 5720
cannam@85 5721
cannam@85 5722
cannam@85 5723
cannam@85 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
cannam@85 5725 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
cannam@85 5726 if ${lt_cv_to_tool_file_cmd+:} false; then :
cannam@85 5727 $as_echo_n "(cached) " >&6
cannam@85 5728 else
cannam@85 5729 #assume ordinary cross tools, or native build.
cannam@85 5730 lt_cv_to_tool_file_cmd=func_convert_file_noop
cannam@85 5731 case $host in
cannam@85 5732 *-*-mingw* )
cannam@85 5733 case $build in
cannam@85 5734 *-*-mingw* ) # actually msys
cannam@85 5735 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
cannam@85 5736 ;;
cannam@85 5737 esac
cannam@85 5738 ;;
cannam@85 5739 esac
cannam@85 5740
cannam@85 5741 fi
cannam@85 5742
cannam@85 5743 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
cannam@85 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
cannam@85 5745 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
cannam@85 5746
cannam@85 5747
cannam@85 5748
cannam@85 5749
cannam@85 5750
cannam@85 5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cannam@85 5752 $as_echo_n "checking for $LD option to reload object files... " >&6; }
cannam@85 5753 if ${lt_cv_ld_reload_flag+:} false; then :
cannam@85 5754 $as_echo_n "(cached) " >&6
cannam@85 5755 else
cannam@85 5756 lt_cv_ld_reload_flag='-r'
cannam@85 5757 fi
cannam@85 5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cannam@85 5759 $as_echo "$lt_cv_ld_reload_flag" >&6; }
cannam@85 5760 reload_flag=$lt_cv_ld_reload_flag
cannam@85 5761 case $reload_flag in
cannam@85 5762 "" | " "*) ;;
cannam@85 5763 *) reload_flag=" $reload_flag" ;;
cannam@85 5764 esac
cannam@85 5765 reload_cmds='$LD$reload_flag -o $output$reload_objs'
cannam@85 5766 case $host_os in
cannam@85 5767 cygwin* | mingw* | pw32* | cegcc*)
cannam@85 5768 if test "$GCC" != yes; then
cannam@85 5769 reload_cmds=false
cannam@85 5770 fi
cannam@85 5771 ;;
cannam@85 5772 darwin*)
cannam@85 5773 if test "$GCC" = yes; then
cannam@85 5774 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
cannam@85 5775 else
cannam@85 5776 reload_cmds='$LD$reload_flag -o $output$reload_objs'
cannam@85 5777 fi
cannam@85 5778 ;;
cannam@85 5779 esac
cannam@85 5780
cannam@85 5781
cannam@85 5782
cannam@85 5783
cannam@85 5784
cannam@85 5785
cannam@85 5786
cannam@85 5787
cannam@85 5788
cannam@85 5789 if test -n "$ac_tool_prefix"; then
cannam@85 5790 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
cannam@85 5791 set dummy ${ac_tool_prefix}objdump; ac_word=$2
cannam@85 5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 5793 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 5794 if ${ac_cv_prog_OBJDUMP+:} false; then :
cannam@85 5795 $as_echo_n "(cached) " >&6
cannam@85 5796 else
cannam@85 5797 if test -n "$OBJDUMP"; then
cannam@85 5798 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
cannam@85 5799 else
cannam@85 5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 5801 for as_dir in $PATH
cannam@85 5802 do
cannam@85 5803 IFS=$as_save_IFS
cannam@85 5804 test -z "$as_dir" && as_dir=.
cannam@85 5805 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 5806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 5807 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cannam@85 5808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 5809 break 2
cannam@85 5810 fi
cannam@85 5811 done
cannam@85 5812 done
cannam@85 5813 IFS=$as_save_IFS
cannam@85 5814
cannam@85 5815 fi
cannam@85 5816 fi
cannam@85 5817 OBJDUMP=$ac_cv_prog_OBJDUMP
cannam@85 5818 if test -n "$OBJDUMP"; then
cannam@85 5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cannam@85 5820 $as_echo "$OBJDUMP" >&6; }
cannam@85 5821 else
cannam@85 5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 5823 $as_echo "no" >&6; }
cannam@85 5824 fi
cannam@85 5825
cannam@85 5826
cannam@85 5827 fi
cannam@85 5828 if test -z "$ac_cv_prog_OBJDUMP"; then
cannam@85 5829 ac_ct_OBJDUMP=$OBJDUMP
cannam@85 5830 # Extract the first word of "objdump", so it can be a program name with args.
cannam@85 5831 set dummy objdump; ac_word=$2
cannam@85 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 5833 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 5834 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cannam@85 5835 $as_echo_n "(cached) " >&6
cannam@85 5836 else
cannam@85 5837 if test -n "$ac_ct_OBJDUMP"; then
cannam@85 5838 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
cannam@85 5839 else
cannam@85 5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 5841 for as_dir in $PATH
cannam@85 5842 do
cannam@85 5843 IFS=$as_save_IFS
cannam@85 5844 test -z "$as_dir" && as_dir=.
cannam@85 5845 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 5846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 5847 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cannam@85 5848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 5849 break 2
cannam@85 5850 fi
cannam@85 5851 done
cannam@85 5852 done
cannam@85 5853 IFS=$as_save_IFS
cannam@85 5854
cannam@85 5855 fi
cannam@85 5856 fi
cannam@85 5857 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
cannam@85 5858 if test -n "$ac_ct_OBJDUMP"; then
cannam@85 5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cannam@85 5860 $as_echo "$ac_ct_OBJDUMP" >&6; }
cannam@85 5861 else
cannam@85 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 5863 $as_echo "no" >&6; }
cannam@85 5864 fi
cannam@85 5865
cannam@85 5866 if test "x$ac_ct_OBJDUMP" = x; then
cannam@85 5867 OBJDUMP="false"
cannam@85 5868 else
cannam@85 5869 case $cross_compiling:$ac_tool_warned in
cannam@85 5870 yes:)
cannam@85 5871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@85 5872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@85 5873 ac_tool_warned=yes ;;
cannam@85 5874 esac
cannam@85 5875 OBJDUMP=$ac_ct_OBJDUMP
cannam@85 5876 fi
cannam@85 5877 else
cannam@85 5878 OBJDUMP="$ac_cv_prog_OBJDUMP"
cannam@85 5879 fi
cannam@85 5880
cannam@85 5881 test -z "$OBJDUMP" && OBJDUMP=objdump
cannam@85 5882
cannam@85 5883
cannam@85 5884
cannam@85 5885
cannam@85 5886
cannam@85 5887
cannam@85 5888
cannam@85 5889
cannam@85 5890
cannam@85 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cannam@85 5892 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
cannam@85 5893 if ${lt_cv_deplibs_check_method+:} false; then :
cannam@85 5894 $as_echo_n "(cached) " >&6
cannam@85 5895 else
cannam@85 5896 lt_cv_file_magic_cmd='$MAGIC_CMD'
cannam@85 5897 lt_cv_file_magic_test_file=
cannam@85 5898 lt_cv_deplibs_check_method='unknown'
cannam@85 5899 # Need to set the preceding variable on all platforms that support
cannam@85 5900 # interlibrary dependencies.
cannam@85 5901 # 'none' -- dependencies not supported.
cannam@85 5902 # `unknown' -- same as none, but documents that we really don't know.
cannam@85 5903 # 'pass_all' -- all dependencies passed with no checks.
cannam@85 5904 # 'test_compile' -- check by making test program.
cannam@85 5905 # 'file_magic [[regex]]' -- check by looking for files in library path
cannam@85 5906 # which responds to the $file_magic_cmd with a given extended regex.
cannam@85 5907 # If you have `file' or equivalent on your system and you're not sure
cannam@85 5908 # whether `pass_all' will *always* work, you probably want this one.
cannam@85 5909
cannam@85 5910 case $host_os in
cannam@85 5911 aix[4-9]*)
cannam@85 5912 lt_cv_deplibs_check_method=pass_all
cannam@85 5913 ;;
cannam@85 5914
cannam@85 5915 beos*)
cannam@85 5916 lt_cv_deplibs_check_method=pass_all
cannam@85 5917 ;;
cannam@85 5918
cannam@85 5919 bsdi[45]*)
cannam@85 5920 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
cannam@85 5921 lt_cv_file_magic_cmd='/usr/bin/file -L'
cannam@85 5922 lt_cv_file_magic_test_file=/shlib/libc.so
cannam@85 5923 ;;
cannam@85 5924
cannam@85 5925 cygwin*)
cannam@85 5926 # func_win32_libid is a shell function defined in ltmain.sh
cannam@85 5927 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
cannam@85 5928 lt_cv_file_magic_cmd='func_win32_libid'
cannam@85 5929 ;;
cannam@85 5930
cannam@85 5931 mingw* | pw32*)
cannam@85 5932 # Base MSYS/MinGW do not provide the 'file' command needed by
cannam@85 5933 # func_win32_libid shell function, so use a weaker test based on 'objdump',
cannam@85 5934 # unless we find 'file', for example because we are cross-compiling.
cannam@85 5935 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
cannam@85 5936 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cannam@85 5937 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
cannam@85 5938 lt_cv_file_magic_cmd='func_win32_libid'
cannam@85 5939 else
cannam@85 5940 # Keep this pattern in sync with the one in func_win32_libid.
cannam@85 5941 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
cannam@85 5942 lt_cv_file_magic_cmd='$OBJDUMP -f'
cannam@85 5943 fi
cannam@85 5944 ;;
cannam@85 5945
cannam@85 5946 cegcc*)
cannam@85 5947 # use the weaker test based on 'objdump'. See mingw*.
cannam@85 5948 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
cannam@85 5949 lt_cv_file_magic_cmd='$OBJDUMP -f'
cannam@85 5950 ;;
cannam@85 5951
cannam@85 5952 darwin* | rhapsody*)
cannam@85 5953 lt_cv_deplibs_check_method=pass_all
cannam@85 5954 ;;
cannam@85 5955
cannam@85 5956 freebsd* | dragonfly*)
cannam@85 5957 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
cannam@85 5958 case $host_cpu in
cannam@85 5959 i*86 )
cannam@85 5960 # Not sure whether the presence of OpenBSD here was a mistake.
cannam@85 5961 # Let's accept both of them until this is cleared up.
cannam@85 5962 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
cannam@85 5963 lt_cv_file_magic_cmd=/usr/bin/file
cannam@85 5964 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
cannam@85 5965 ;;
cannam@85 5966 esac
cannam@85 5967 else
cannam@85 5968 lt_cv_deplibs_check_method=pass_all
cannam@85 5969 fi
cannam@85 5970 ;;
cannam@85 5971
cannam@85 5972 gnu*)
cannam@85 5973 lt_cv_deplibs_check_method=pass_all
cannam@85 5974 ;;
cannam@85 5975
cannam@85 5976 haiku*)
cannam@85 5977 lt_cv_deplibs_check_method=pass_all
cannam@85 5978 ;;
cannam@85 5979
cannam@85 5980 hpux10.20* | hpux11*)
cannam@85 5981 lt_cv_file_magic_cmd=/usr/bin/file
cannam@85 5982 case $host_cpu in
cannam@85 5983 ia64*)
cannam@85 5984 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
cannam@85 5985 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
cannam@85 5986 ;;
cannam@85 5987 hppa*64*)
cannam@85 5988 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@85 5989 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
cannam@85 5990 ;;
cannam@85 5991 *)
cannam@85 5992 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
cannam@85 5993 lt_cv_file_magic_test_file=/usr/lib/libc.sl
cannam@85 5994 ;;
cannam@85 5995 esac
cannam@85 5996 ;;
cannam@85 5997
cannam@85 5998 interix[3-9]*)
cannam@85 5999 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
cannam@85 6000 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
cannam@85 6001 ;;
cannam@85 6002
cannam@85 6003 irix5* | irix6* | nonstopux*)
cannam@85 6004 case $LD in
cannam@85 6005 *-32|*"-32 ") libmagic=32-bit;;
cannam@85 6006 *-n32|*"-n32 ") libmagic=N32;;
cannam@85 6007 *-64|*"-64 ") libmagic=64-bit;;
cannam@85 6008 *) libmagic=never-match;;
cannam@85 6009 esac
cannam@85 6010 lt_cv_deplibs_check_method=pass_all
cannam@85 6011 ;;
cannam@85 6012
cannam@85 6013 # This must be Linux ELF.
cannam@85 6014 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cannam@85 6015 lt_cv_deplibs_check_method=pass_all
cannam@85 6016 ;;
cannam@85 6017
cannam@85 6018 netbsd* | netbsdelf*-gnu)
cannam@85 6019 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
cannam@85 6020 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cannam@85 6021 else
cannam@85 6022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cannam@85 6023 fi
cannam@85 6024 ;;
cannam@85 6025
cannam@85 6026 newos6*)
cannam@85 6027 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
cannam@85 6028 lt_cv_file_magic_cmd=/usr/bin/file
cannam@85 6029 lt_cv_file_magic_test_file=/usr/lib/libnls.so
cannam@85 6030 ;;
cannam@85 6031
cannam@85 6032 *nto* | *qnx*)
cannam@85 6033 lt_cv_deplibs_check_method=pass_all
cannam@85 6034 ;;
cannam@85 6035
cannam@85 6036 openbsd*)
cannam@85 6037 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@85 6038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
cannam@85 6039 else
cannam@85 6040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cannam@85 6041 fi
cannam@85 6042 ;;
cannam@85 6043
cannam@85 6044 osf3* | osf4* | osf5*)
cannam@85 6045 lt_cv_deplibs_check_method=pass_all
cannam@85 6046 ;;
cannam@85 6047
cannam@85 6048 rdos*)
cannam@85 6049 lt_cv_deplibs_check_method=pass_all
cannam@85 6050 ;;
cannam@85 6051
cannam@85 6052 solaris*)
cannam@85 6053 lt_cv_deplibs_check_method=pass_all
cannam@85 6054 ;;
cannam@85 6055
cannam@85 6056 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
cannam@85 6057 lt_cv_deplibs_check_method=pass_all
cannam@85 6058 ;;
cannam@85 6059
cannam@85 6060 sysv4 | sysv4.3*)
cannam@85 6061 case $host_vendor in
cannam@85 6062 motorola)
cannam@85 6063 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@85 6064 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
cannam@85 6065 ;;
cannam@85 6066 ncr)
cannam@85 6067 lt_cv_deplibs_check_method=pass_all
cannam@85 6068 ;;
cannam@85 6069 sequent)
cannam@85 6070 lt_cv_file_magic_cmd='/bin/file'
cannam@85 6071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
cannam@85 6072 ;;
cannam@85 6073 sni)
cannam@85 6074 lt_cv_file_magic_cmd='/bin/file'
cannam@85 6075 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
cannam@85 6076 lt_cv_file_magic_test_file=/lib/libc.so
cannam@85 6077 ;;
cannam@85 6078 siemens)
cannam@85 6079 lt_cv_deplibs_check_method=pass_all
cannam@85 6080 ;;
cannam@85 6081 pc)
cannam@85 6082 lt_cv_deplibs_check_method=pass_all
cannam@85 6083 ;;
cannam@85 6084 esac
cannam@85 6085 ;;
cannam@85 6086
cannam@85 6087 tpf*)
cannam@85 6088 lt_cv_deplibs_check_method=pass_all
cannam@85 6089 ;;
cannam@85 6090 esac
cannam@85 6091
cannam@85 6092 fi
cannam@85 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cannam@85 6094 $as_echo "$lt_cv_deplibs_check_method" >&6; }
cannam@85 6095
cannam@85 6096 file_magic_glob=
cannam@85 6097 want_nocaseglob=no
cannam@85 6098 if test "$build" = "$host"; then
cannam@85 6099 case $host_os in
cannam@85 6100 mingw* | pw32*)
cannam@85 6101 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
cannam@85 6102 want_nocaseglob=yes
cannam@85 6103 else
cannam@85 6104 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
cannam@85 6105 fi
cannam@85 6106 ;;
cannam@85 6107 esac
cannam@85 6108 fi
cannam@85 6109
cannam@85 6110 file_magic_cmd=$lt_cv_file_magic_cmd
cannam@85 6111 deplibs_check_method=$lt_cv_deplibs_check_method
cannam@85 6112 test -z "$deplibs_check_method" && deplibs_check_method=unknown
cannam@85 6113
cannam@85 6114
cannam@85 6115
cannam@85 6116
cannam@85 6117
cannam@85 6118
cannam@85 6119
cannam@85 6120
cannam@85 6121
cannam@85 6122
cannam@85 6123
cannam@85 6124
cannam@85 6125
cannam@85 6126
cannam@85 6127
cannam@85 6128
cannam@85 6129
cannam@85 6130
cannam@85 6131
cannam@85 6132
cannam@85 6133
cannam@85 6134
cannam@85 6135 if test -n "$ac_tool_prefix"; then
cannam@85 6136 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
cannam@85 6137 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cannam@85 6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 6139 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 6140 if ${ac_cv_prog_DLLTOOL+:} false; then :
cannam@85 6141 $as_echo_n "(cached) " >&6
cannam@85 6142 else
cannam@85 6143 if test -n "$DLLTOOL"; then
cannam@85 6144 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
cannam@85 6145 else
cannam@85 6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 6147 for as_dir in $PATH
cannam@85 6148 do
cannam@85 6149 IFS=$as_save_IFS
cannam@85 6150 test -z "$as_dir" && as_dir=.
cannam@85 6151 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 6152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 6153 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cannam@85 6154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 6155 break 2
cannam@85 6156 fi
cannam@85 6157 done
cannam@85 6158 done
cannam@85 6159 IFS=$as_save_IFS
cannam@85 6160
cannam@85 6161 fi
cannam@85 6162 fi
cannam@85 6163 DLLTOOL=$ac_cv_prog_DLLTOOL
cannam@85 6164 if test -n "$DLLTOOL"; then
cannam@85 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cannam@85 6166 $as_echo "$DLLTOOL" >&6; }
cannam@85 6167 else
cannam@85 6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 6169 $as_echo "no" >&6; }
cannam@85 6170 fi
cannam@85 6171
cannam@85 6172
cannam@85 6173 fi
cannam@85 6174 if test -z "$ac_cv_prog_DLLTOOL"; then
cannam@85 6175 ac_ct_DLLTOOL=$DLLTOOL
cannam@85 6176 # Extract the first word of "dlltool", so it can be a program name with args.
cannam@85 6177 set dummy dlltool; ac_word=$2
cannam@85 6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 6179 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 6180 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cannam@85 6181 $as_echo_n "(cached) " >&6
cannam@85 6182 else
cannam@85 6183 if test -n "$ac_ct_DLLTOOL"; then
cannam@85 6184 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
cannam@85 6185 else
cannam@85 6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 6187 for as_dir in $PATH
cannam@85 6188 do
cannam@85 6189 IFS=$as_save_IFS
cannam@85 6190 test -z "$as_dir" && as_dir=.
cannam@85 6191 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 6192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 6193 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cannam@85 6194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 6195 break 2
cannam@85 6196 fi
cannam@85 6197 done
cannam@85 6198 done
cannam@85 6199 IFS=$as_save_IFS
cannam@85 6200
cannam@85 6201 fi
cannam@85 6202 fi
cannam@85 6203 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
cannam@85 6204 if test -n "$ac_ct_DLLTOOL"; then
cannam@85 6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cannam@85 6206 $as_echo "$ac_ct_DLLTOOL" >&6; }
cannam@85 6207 else
cannam@85 6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 6209 $as_echo "no" >&6; }
cannam@85 6210 fi
cannam@85 6211
cannam@85 6212 if test "x$ac_ct_DLLTOOL" = x; then
cannam@85 6213 DLLTOOL="false"
cannam@85 6214 else
cannam@85 6215 case $cross_compiling:$ac_tool_warned in
cannam@85 6216 yes:)
cannam@85 6217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@85 6218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@85 6219 ac_tool_warned=yes ;;
cannam@85 6220 esac
cannam@85 6221 DLLTOOL=$ac_ct_DLLTOOL
cannam@85 6222 fi
cannam@85 6223 else
cannam@85 6224 DLLTOOL="$ac_cv_prog_DLLTOOL"
cannam@85 6225 fi
cannam@85 6226
cannam@85 6227 test -z "$DLLTOOL" && DLLTOOL=dlltool
cannam@85 6228
cannam@85 6229
cannam@85 6230
cannam@85 6231
cannam@85 6232
cannam@85 6233
cannam@85 6234
cannam@85 6235
cannam@85 6236
cannam@85 6237
cannam@85 6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
cannam@85 6239 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
cannam@85 6240 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
cannam@85 6241 $as_echo_n "(cached) " >&6
cannam@85 6242 else
cannam@85 6243 lt_cv_sharedlib_from_linklib_cmd='unknown'
cannam@85 6244
cannam@85 6245 case $host_os in
cannam@85 6246 cygwin* | mingw* | pw32* | cegcc*)
cannam@85 6247 # two different shell functions defined in ltmain.sh
cannam@85 6248 # decide which to use based on capabilities of $DLLTOOL
cannam@85 6249 case `$DLLTOOL --help 2>&1` in
cannam@85 6250 *--identify-strict*)
cannam@85 6251 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
cannam@85 6252 ;;
cannam@85 6253 *)
cannam@85 6254 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
cannam@85 6255 ;;
cannam@85 6256 esac
cannam@85 6257 ;;
cannam@85 6258 *)
cannam@85 6259 # fallback: assume linklib IS sharedlib
cannam@85 6260 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
cannam@85 6261 ;;
cannam@85 6262 esac
cannam@85 6263
cannam@85 6264 fi
cannam@85 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
cannam@85 6266 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
cannam@85 6267 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
cannam@85 6268 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
cannam@85 6269
cannam@85 6270
cannam@85 6271
cannam@85 6272
cannam@85 6273
cannam@85 6274
cannam@85 6275
cannam@85 6276
cannam@85 6277 if test -n "$ac_tool_prefix"; then
cannam@85 6278 for ac_prog in ar
cannam@85 6279 do
cannam@85 6280 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@85 6281 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@85 6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 6283 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 6284 if ${ac_cv_prog_AR+:} false; then :
cannam@85 6285 $as_echo_n "(cached) " >&6
cannam@85 6286 else
cannam@85 6287 if test -n "$AR"; then
cannam@85 6288 ac_cv_prog_AR="$AR" # Let the user override the test.
cannam@85 6289 else
cannam@85 6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 6291 for as_dir in $PATH
cannam@85 6292 do
cannam@85 6293 IFS=$as_save_IFS
cannam@85 6294 test -z "$as_dir" && as_dir=.
cannam@85 6295 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 6297 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cannam@85 6298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 6299 break 2
cannam@85 6300 fi
cannam@85 6301 done
cannam@85 6302 done
cannam@85 6303 IFS=$as_save_IFS
cannam@85 6304
cannam@85 6305 fi
cannam@85 6306 fi
cannam@85 6307 AR=$ac_cv_prog_AR
cannam@85 6308 if test -n "$AR"; then
cannam@85 6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cannam@85 6310 $as_echo "$AR" >&6; }
cannam@85 6311 else
cannam@85 6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 6313 $as_echo "no" >&6; }
cannam@85 6314 fi
cannam@85 6315
cannam@85 6316
cannam@85 6317 test -n "$AR" && break
cannam@85 6318 done
cannam@85 6319 fi
cannam@85 6320 if test -z "$AR"; then
cannam@85 6321 ac_ct_AR=$AR
cannam@85 6322 for ac_prog in ar
cannam@85 6323 do
cannam@85 6324 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@85 6325 set dummy $ac_prog; ac_word=$2
cannam@85 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 6327 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 6328 if ${ac_cv_prog_ac_ct_AR+:} false; then :
cannam@85 6329 $as_echo_n "(cached) " >&6
cannam@85 6330 else
cannam@85 6331 if test -n "$ac_ct_AR"; then
cannam@85 6332 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
cannam@85 6333 else
cannam@85 6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 6335 for as_dir in $PATH
cannam@85 6336 do
cannam@85 6337 IFS=$as_save_IFS
cannam@85 6338 test -z "$as_dir" && as_dir=.
cannam@85 6339 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 6340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 6341 ac_cv_prog_ac_ct_AR="$ac_prog"
cannam@85 6342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 6343 break 2
cannam@85 6344 fi
cannam@85 6345 done
cannam@85 6346 done
cannam@85 6347 IFS=$as_save_IFS
cannam@85 6348
cannam@85 6349 fi
cannam@85 6350 fi
cannam@85 6351 ac_ct_AR=$ac_cv_prog_ac_ct_AR
cannam@85 6352 if test -n "$ac_ct_AR"; then
cannam@85 6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cannam@85 6354 $as_echo "$ac_ct_AR" >&6; }
cannam@85 6355 else
cannam@85 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 6357 $as_echo "no" >&6; }
cannam@85 6358 fi
cannam@85 6359
cannam@85 6360
cannam@85 6361 test -n "$ac_ct_AR" && break
cannam@85 6362 done
cannam@85 6363
cannam@85 6364 if test "x$ac_ct_AR" = x; then
cannam@85 6365 AR="false"
cannam@85 6366 else
cannam@85 6367 case $cross_compiling:$ac_tool_warned in
cannam@85 6368 yes:)
cannam@85 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@85 6370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@85 6371 ac_tool_warned=yes ;;
cannam@85 6372 esac
cannam@85 6373 AR=$ac_ct_AR
cannam@85 6374 fi
cannam@85 6375 fi
cannam@85 6376
cannam@85 6377 : ${AR=ar}
cannam@85 6378 : ${AR_FLAGS=cru}
cannam@85 6379
cannam@85 6380
cannam@85 6381
cannam@85 6382
cannam@85 6383
cannam@85 6384
cannam@85 6385
cannam@85 6386
cannam@85 6387
cannam@85 6388
cannam@85 6389
cannam@85 6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
cannam@85 6391 $as_echo_n "checking for archiver @FILE support... " >&6; }
cannam@85 6392 if ${lt_cv_ar_at_file+:} false; then :
cannam@85 6393 $as_echo_n "(cached) " >&6
cannam@85 6394 else
cannam@85 6395 lt_cv_ar_at_file=no
cannam@85 6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 6397 /* end confdefs.h. */
cannam@85 6398
cannam@85 6399 int
cannam@85 6400 main ()
cannam@85 6401 {
cannam@85 6402
cannam@85 6403 ;
cannam@85 6404 return 0;
cannam@85 6405 }
cannam@85 6406 _ACEOF
cannam@85 6407 if ac_fn_c_try_compile "$LINENO"; then :
cannam@85 6408 echo conftest.$ac_objext > conftest.lst
cannam@85 6409 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
cannam@85 6410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
cannam@85 6411 (eval $lt_ar_try) 2>&5
cannam@85 6412 ac_status=$?
cannam@85 6413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 6414 test $ac_status = 0; }
cannam@85 6415 if test "$ac_status" -eq 0; then
cannam@85 6416 # Ensure the archiver fails upon bogus file names.
cannam@85 6417 rm -f conftest.$ac_objext libconftest.a
cannam@85 6418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
cannam@85 6419 (eval $lt_ar_try) 2>&5
cannam@85 6420 ac_status=$?
cannam@85 6421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 6422 test $ac_status = 0; }
cannam@85 6423 if test "$ac_status" -ne 0; then
cannam@85 6424 lt_cv_ar_at_file=@
cannam@85 6425 fi
cannam@85 6426 fi
cannam@85 6427 rm -f conftest.* libconftest.a
cannam@85 6428
cannam@85 6429 fi
cannam@85 6430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 6431
cannam@85 6432 fi
cannam@85 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
cannam@85 6434 $as_echo "$lt_cv_ar_at_file" >&6; }
cannam@85 6435
cannam@85 6436 if test "x$lt_cv_ar_at_file" = xno; then
cannam@85 6437 archiver_list_spec=
cannam@85 6438 else
cannam@85 6439 archiver_list_spec=$lt_cv_ar_at_file
cannam@85 6440 fi
cannam@85 6441
cannam@85 6442
cannam@85 6443
cannam@85 6444
cannam@85 6445
cannam@85 6446
cannam@85 6447
cannam@85 6448 if test -n "$ac_tool_prefix"; then
cannam@85 6449 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
cannam@85 6450 set dummy ${ac_tool_prefix}strip; ac_word=$2
cannam@85 6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 6452 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 6453 if ${ac_cv_prog_STRIP+:} false; then :
cannam@85 6454 $as_echo_n "(cached) " >&6
cannam@85 6455 else
cannam@85 6456 if test -n "$STRIP"; then
cannam@85 6457 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
cannam@85 6458 else
cannam@85 6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 6460 for as_dir in $PATH
cannam@85 6461 do
cannam@85 6462 IFS=$as_save_IFS
cannam@85 6463 test -z "$as_dir" && as_dir=.
cannam@85 6464 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 6465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 6466 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cannam@85 6467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 6468 break 2
cannam@85 6469 fi
cannam@85 6470 done
cannam@85 6471 done
cannam@85 6472 IFS=$as_save_IFS
cannam@85 6473
cannam@85 6474 fi
cannam@85 6475 fi
cannam@85 6476 STRIP=$ac_cv_prog_STRIP
cannam@85 6477 if test -n "$STRIP"; then
cannam@85 6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cannam@85 6479 $as_echo "$STRIP" >&6; }
cannam@85 6480 else
cannam@85 6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 6482 $as_echo "no" >&6; }
cannam@85 6483 fi
cannam@85 6484
cannam@85 6485
cannam@85 6486 fi
cannam@85 6487 if test -z "$ac_cv_prog_STRIP"; then
cannam@85 6488 ac_ct_STRIP=$STRIP
cannam@85 6489 # Extract the first word of "strip", so it can be a program name with args.
cannam@85 6490 set dummy strip; ac_word=$2
cannam@85 6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 6492 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 6493 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cannam@85 6494 $as_echo_n "(cached) " >&6
cannam@85 6495 else
cannam@85 6496 if test -n "$ac_ct_STRIP"; then
cannam@85 6497 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
cannam@85 6498 else
cannam@85 6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 6500 for as_dir in $PATH
cannam@85 6501 do
cannam@85 6502 IFS=$as_save_IFS
cannam@85 6503 test -z "$as_dir" && as_dir=.
cannam@85 6504 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 6505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 6506 ac_cv_prog_ac_ct_STRIP="strip"
cannam@85 6507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 6508 break 2
cannam@85 6509 fi
cannam@85 6510 done
cannam@85 6511 done
cannam@85 6512 IFS=$as_save_IFS
cannam@85 6513
cannam@85 6514 fi
cannam@85 6515 fi
cannam@85 6516 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
cannam@85 6517 if test -n "$ac_ct_STRIP"; then
cannam@85 6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cannam@85 6519 $as_echo "$ac_ct_STRIP" >&6; }
cannam@85 6520 else
cannam@85 6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 6522 $as_echo "no" >&6; }
cannam@85 6523 fi
cannam@85 6524
cannam@85 6525 if test "x$ac_ct_STRIP" = x; then
cannam@85 6526 STRIP=":"
cannam@85 6527 else
cannam@85 6528 case $cross_compiling:$ac_tool_warned in
cannam@85 6529 yes:)
cannam@85 6530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@85 6531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@85 6532 ac_tool_warned=yes ;;
cannam@85 6533 esac
cannam@85 6534 STRIP=$ac_ct_STRIP
cannam@85 6535 fi
cannam@85 6536 else
cannam@85 6537 STRIP="$ac_cv_prog_STRIP"
cannam@85 6538 fi
cannam@85 6539
cannam@85 6540 test -z "$STRIP" && STRIP=:
cannam@85 6541
cannam@85 6542
cannam@85 6543
cannam@85 6544
cannam@85 6545
cannam@85 6546
cannam@85 6547 if test -n "$ac_tool_prefix"; then
cannam@85 6548 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
cannam@85 6549 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cannam@85 6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 6551 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 6552 if ${ac_cv_prog_RANLIB+:} false; then :
cannam@85 6553 $as_echo_n "(cached) " >&6
cannam@85 6554 else
cannam@85 6555 if test -n "$RANLIB"; then
cannam@85 6556 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
cannam@85 6557 else
cannam@85 6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 6559 for as_dir in $PATH
cannam@85 6560 do
cannam@85 6561 IFS=$as_save_IFS
cannam@85 6562 test -z "$as_dir" && as_dir=.
cannam@85 6563 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 6564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 6565 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cannam@85 6566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 6567 break 2
cannam@85 6568 fi
cannam@85 6569 done
cannam@85 6570 done
cannam@85 6571 IFS=$as_save_IFS
cannam@85 6572
cannam@85 6573 fi
cannam@85 6574 fi
cannam@85 6575 RANLIB=$ac_cv_prog_RANLIB
cannam@85 6576 if test -n "$RANLIB"; then
cannam@85 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cannam@85 6578 $as_echo "$RANLIB" >&6; }
cannam@85 6579 else
cannam@85 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 6581 $as_echo "no" >&6; }
cannam@85 6582 fi
cannam@85 6583
cannam@85 6584
cannam@85 6585 fi
cannam@85 6586 if test -z "$ac_cv_prog_RANLIB"; then
cannam@85 6587 ac_ct_RANLIB=$RANLIB
cannam@85 6588 # Extract the first word of "ranlib", so it can be a program name with args.
cannam@85 6589 set dummy ranlib; ac_word=$2
cannam@85 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 6591 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 6592 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cannam@85 6593 $as_echo_n "(cached) " >&6
cannam@85 6594 else
cannam@85 6595 if test -n "$ac_ct_RANLIB"; then
cannam@85 6596 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
cannam@85 6597 else
cannam@85 6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 6599 for as_dir in $PATH
cannam@85 6600 do
cannam@85 6601 IFS=$as_save_IFS
cannam@85 6602 test -z "$as_dir" && as_dir=.
cannam@85 6603 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 6604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 6605 ac_cv_prog_ac_ct_RANLIB="ranlib"
cannam@85 6606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 6607 break 2
cannam@85 6608 fi
cannam@85 6609 done
cannam@85 6610 done
cannam@85 6611 IFS=$as_save_IFS
cannam@85 6612
cannam@85 6613 fi
cannam@85 6614 fi
cannam@85 6615 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
cannam@85 6616 if test -n "$ac_ct_RANLIB"; then
cannam@85 6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cannam@85 6618 $as_echo "$ac_ct_RANLIB" >&6; }
cannam@85 6619 else
cannam@85 6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 6621 $as_echo "no" >&6; }
cannam@85 6622 fi
cannam@85 6623
cannam@85 6624 if test "x$ac_ct_RANLIB" = x; then
cannam@85 6625 RANLIB=":"
cannam@85 6626 else
cannam@85 6627 case $cross_compiling:$ac_tool_warned in
cannam@85 6628 yes:)
cannam@85 6629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@85 6630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@85 6631 ac_tool_warned=yes ;;
cannam@85 6632 esac
cannam@85 6633 RANLIB=$ac_ct_RANLIB
cannam@85 6634 fi
cannam@85 6635 else
cannam@85 6636 RANLIB="$ac_cv_prog_RANLIB"
cannam@85 6637 fi
cannam@85 6638
cannam@85 6639 test -z "$RANLIB" && RANLIB=:
cannam@85 6640
cannam@85 6641
cannam@85 6642
cannam@85 6643
cannam@85 6644
cannam@85 6645
cannam@85 6646 # Determine commands to create old-style static archives.
cannam@85 6647 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
cannam@85 6648 old_postinstall_cmds='chmod 644 $oldlib'
cannam@85 6649 old_postuninstall_cmds=
cannam@85 6650
cannam@85 6651 if test -n "$RANLIB"; then
cannam@85 6652 case $host_os in
cannam@85 6653 openbsd*)
cannam@85 6654 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
cannam@85 6655 ;;
cannam@85 6656 *)
cannam@85 6657 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
cannam@85 6658 ;;
cannam@85 6659 esac
cannam@85 6660 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
cannam@85 6661 fi
cannam@85 6662
cannam@85 6663 case $host_os in
cannam@85 6664 darwin*)
cannam@85 6665 lock_old_archive_extraction=yes ;;
cannam@85 6666 *)
cannam@85 6667 lock_old_archive_extraction=no ;;
cannam@85 6668 esac
cannam@85 6669
cannam@85 6670
cannam@85 6671
cannam@85 6672
cannam@85 6673
cannam@85 6674
cannam@85 6675
cannam@85 6676
cannam@85 6677
cannam@85 6678
cannam@85 6679
cannam@85 6680
cannam@85 6681
cannam@85 6682
cannam@85 6683
cannam@85 6684
cannam@85 6685
cannam@85 6686
cannam@85 6687
cannam@85 6688
cannam@85 6689
cannam@85 6690
cannam@85 6691
cannam@85 6692
cannam@85 6693
cannam@85 6694
cannam@85 6695
cannam@85 6696
cannam@85 6697
cannam@85 6698
cannam@85 6699
cannam@85 6700
cannam@85 6701
cannam@85 6702
cannam@85 6703
cannam@85 6704
cannam@85 6705
cannam@85 6706
cannam@85 6707
cannam@85 6708 # If no C compiler was specified, use CC.
cannam@85 6709 LTCC=${LTCC-"$CC"}
cannam@85 6710
cannam@85 6711 # If no C compiler flags were specified, use CFLAGS.
cannam@85 6712 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cannam@85 6713
cannam@85 6714 # Allow CC to be a program name with arguments.
cannam@85 6715 compiler=$CC
cannam@85 6716
cannam@85 6717
cannam@85 6718 # Check for command to grab the raw symbol name followed by C symbol from nm.
cannam@85 6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cannam@85 6720 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cannam@85 6721 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cannam@85 6722 $as_echo_n "(cached) " >&6
cannam@85 6723 else
cannam@85 6724
cannam@85 6725 # These are sane defaults that work on at least a few old systems.
cannam@85 6726 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
cannam@85 6727
cannam@85 6728 # Character class describing NM global symbol codes.
cannam@85 6729 symcode='[BCDEGRST]'
cannam@85 6730
cannam@85 6731 # Regexp to match symbols that can be accessed directly from C.
cannam@85 6732 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
cannam@85 6733
cannam@85 6734 # Define system-specific variables.
cannam@85 6735 case $host_os in
cannam@85 6736 aix*)
cannam@85 6737 symcode='[BCDT]'
cannam@85 6738 ;;
cannam@85 6739 cygwin* | mingw* | pw32* | cegcc*)
cannam@85 6740 symcode='[ABCDGISTW]'
cannam@85 6741 ;;
cannam@85 6742 hpux*)
cannam@85 6743 if test "$host_cpu" = ia64; then
cannam@85 6744 symcode='[ABCDEGRST]'
cannam@85 6745 fi
cannam@85 6746 ;;
cannam@85 6747 irix* | nonstopux*)
cannam@85 6748 symcode='[BCDEGRST]'
cannam@85 6749 ;;
cannam@85 6750 osf*)
cannam@85 6751 symcode='[BCDEGQRST]'
cannam@85 6752 ;;
cannam@85 6753 solaris*)
cannam@85 6754 symcode='[BDRT]'
cannam@85 6755 ;;
cannam@85 6756 sco3.2v5*)
cannam@85 6757 symcode='[DT]'
cannam@85 6758 ;;
cannam@85 6759 sysv4.2uw2*)
cannam@85 6760 symcode='[DT]'
cannam@85 6761 ;;
cannam@85 6762 sysv5* | sco5v6* | unixware* | OpenUNIX*)
cannam@85 6763 symcode='[ABDT]'
cannam@85 6764 ;;
cannam@85 6765 sysv4)
cannam@85 6766 symcode='[DFNSTU]'
cannam@85 6767 ;;
cannam@85 6768 esac
cannam@85 6769
cannam@85 6770 # If we're using GNU nm, then use its standard symbol codes.
cannam@85 6771 case `$NM -V 2>&1` in
cannam@85 6772 *GNU* | *'with BFD'*)
cannam@85 6773 symcode='[ABCDGIRSTW]' ;;
cannam@85 6774 esac
cannam@85 6775
cannam@85 6776 # Transform an extracted symbol line into a proper C declaration.
cannam@85 6777 # Some systems (esp. on ia64) link data and code symbols differently,
cannam@85 6778 # so use this general approach.
cannam@85 6779 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
cannam@85 6780
cannam@85 6781 # Transform an extracted symbol line into symbol name and symbol address
cannam@85 6782 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@85 6783 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@85 6784
cannam@85 6785 # Handle CRLF in mingw tool chain
cannam@85 6786 opt_cr=
cannam@85 6787 case $build_os in
cannam@85 6788 mingw*)
cannam@85 6789 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
cannam@85 6790 ;;
cannam@85 6791 esac
cannam@85 6792
cannam@85 6793 # Try without a prefix underscore, then with it.
cannam@85 6794 for ac_symprfx in "" "_"; do
cannam@85 6795
cannam@85 6796 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
cannam@85 6797 symxfrm="\\1 $ac_symprfx\\2 \\2"
cannam@85 6798
cannam@85 6799 # Write the raw and C identifiers.
cannam@85 6800 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
cannam@85 6801 # Fake it for dumpbin and say T for any non-static function
cannam@85 6802 # and D for any global variable.
cannam@85 6803 # Also find C++ and __fastcall symbols from MSVC++,
cannam@85 6804 # which start with @ or ?.
cannam@85 6805 lt_cv_sys_global_symbol_pipe="$AWK '"\
cannam@85 6806 " {last_section=section; section=\$ 3};"\
cannam@85 6807 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
cannam@85 6808 " \$ 0!~/External *\|/{next};"\
cannam@85 6809 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
cannam@85 6810 " {if(hide[section]) next};"\
cannam@85 6811 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
cannam@85 6812 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
cannam@85 6813 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
cannam@85 6814 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
cannam@85 6815 " ' prfx=^$ac_symprfx"
cannam@85 6816 else
cannam@85 6817 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
cannam@85 6818 fi
cannam@85 6819 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cannam@85 6820
cannam@85 6821 # Check to see that the pipe works correctly.
cannam@85 6822 pipe_works=no
cannam@85 6823
cannam@85 6824 rm -f conftest*
cannam@85 6825 cat > conftest.$ac_ext <<_LT_EOF
cannam@85 6826 #ifdef __cplusplus
cannam@85 6827 extern "C" {
cannam@85 6828 #endif
cannam@85 6829 char nm_test_var;
cannam@85 6830 void nm_test_func(void);
cannam@85 6831 void nm_test_func(void){}
cannam@85 6832 #ifdef __cplusplus
cannam@85 6833 }
cannam@85 6834 #endif
cannam@85 6835 int main(){nm_test_var='a';nm_test_func();return(0);}
cannam@85 6836 _LT_EOF
cannam@85 6837
cannam@85 6838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@85 6839 (eval $ac_compile) 2>&5
cannam@85 6840 ac_status=$?
cannam@85 6841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 6842 test $ac_status = 0; }; then
cannam@85 6843 # Now try to grab the symbols.
cannam@85 6844 nlist=conftest.nm
cannam@85 6845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
cannam@85 6846 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cannam@85 6847 ac_status=$?
cannam@85 6848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 6849 test $ac_status = 0; } && test -s "$nlist"; then
cannam@85 6850 # Try sorting and uniquifying the output.
cannam@85 6851 if sort "$nlist" | uniq > "$nlist"T; then
cannam@85 6852 mv -f "$nlist"T "$nlist"
cannam@85 6853 else
cannam@85 6854 rm -f "$nlist"T
cannam@85 6855 fi
cannam@85 6856
cannam@85 6857 # Make sure that we snagged all the symbols we need.
cannam@85 6858 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
cannam@85 6859 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
cannam@85 6860 cat <<_LT_EOF > conftest.$ac_ext
cannam@85 6861 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
cannam@85 6862 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
cannam@85 6863 /* DATA imports from DLLs on WIN32 con't be const, because runtime
cannam@85 6864 relocations are performed -- see ld's documentation on pseudo-relocs. */
cannam@85 6865 # define LT_DLSYM_CONST
cannam@85 6866 #elif defined(__osf__)
cannam@85 6867 /* This system does not cope well with relocations in const data. */
cannam@85 6868 # define LT_DLSYM_CONST
cannam@85 6869 #else
cannam@85 6870 # define LT_DLSYM_CONST const
cannam@85 6871 #endif
cannam@85 6872
cannam@85 6873 #ifdef __cplusplus
cannam@85 6874 extern "C" {
cannam@85 6875 #endif
cannam@85 6876
cannam@85 6877 _LT_EOF
cannam@85 6878 # Now generate the symbol file.
cannam@85 6879 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
cannam@85 6880
cannam@85 6881 cat <<_LT_EOF >> conftest.$ac_ext
cannam@85 6882
cannam@85 6883 /* The mapping between symbol names and symbols. */
cannam@85 6884 LT_DLSYM_CONST struct {
cannam@85 6885 const char *name;
cannam@85 6886 void *address;
cannam@85 6887 }
cannam@85 6888 lt__PROGRAM__LTX_preloaded_symbols[] =
cannam@85 6889 {
cannam@85 6890 { "@PROGRAM@", (void *) 0 },
cannam@85 6891 _LT_EOF
cannam@85 6892 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
cannam@85 6893 cat <<\_LT_EOF >> conftest.$ac_ext
cannam@85 6894 {0, (void *) 0}
cannam@85 6895 };
cannam@85 6896
cannam@85 6897 /* This works around a problem in FreeBSD linker */
cannam@85 6898 #ifdef FREEBSD_WORKAROUND
cannam@85 6899 static const void *lt_preloaded_setup() {
cannam@85 6900 return lt__PROGRAM__LTX_preloaded_symbols;
cannam@85 6901 }
cannam@85 6902 #endif
cannam@85 6903
cannam@85 6904 #ifdef __cplusplus
cannam@85 6905 }
cannam@85 6906 #endif
cannam@85 6907 _LT_EOF
cannam@85 6908 # Now try linking the two files.
cannam@85 6909 mv conftest.$ac_objext conftstm.$ac_objext
cannam@85 6910 lt_globsym_save_LIBS=$LIBS
cannam@85 6911 lt_globsym_save_CFLAGS=$CFLAGS
cannam@85 6912 LIBS="conftstm.$ac_objext"
cannam@85 6913 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cannam@85 6914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cannam@85 6915 (eval $ac_link) 2>&5
cannam@85 6916 ac_status=$?
cannam@85 6917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 6918 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cannam@85 6919 pipe_works=yes
cannam@85 6920 fi
cannam@85 6921 LIBS=$lt_globsym_save_LIBS
cannam@85 6922 CFLAGS=$lt_globsym_save_CFLAGS
cannam@85 6923 else
cannam@85 6924 echo "cannot find nm_test_func in $nlist" >&5
cannam@85 6925 fi
cannam@85 6926 else
cannam@85 6927 echo "cannot find nm_test_var in $nlist" >&5
cannam@85 6928 fi
cannam@85 6929 else
cannam@85 6930 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
cannam@85 6931 fi
cannam@85 6932 else
cannam@85 6933 echo "$progname: failed program was:" >&5
cannam@85 6934 cat conftest.$ac_ext >&5
cannam@85 6935 fi
cannam@85 6936 rm -rf conftest* conftst*
cannam@85 6937
cannam@85 6938 # Do not use the global_symbol_pipe unless it works.
cannam@85 6939 if test "$pipe_works" = yes; then
cannam@85 6940 break
cannam@85 6941 else
cannam@85 6942 lt_cv_sys_global_symbol_pipe=
cannam@85 6943 fi
cannam@85 6944 done
cannam@85 6945
cannam@85 6946 fi
cannam@85 6947
cannam@85 6948 if test -z "$lt_cv_sys_global_symbol_pipe"; then
cannam@85 6949 lt_cv_sys_global_symbol_to_cdecl=
cannam@85 6950 fi
cannam@85 6951 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cannam@85 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cannam@85 6953 $as_echo "failed" >&6; }
cannam@85 6954 else
cannam@85 6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cannam@85 6956 $as_echo "ok" >&6; }
cannam@85 6957 fi
cannam@85 6958
cannam@85 6959 # Response file support.
cannam@85 6960 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
cannam@85 6961 nm_file_list_spec='@'
cannam@85 6962 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
cannam@85 6963 nm_file_list_spec='@'
cannam@85 6964 fi
cannam@85 6965
cannam@85 6966
cannam@85 6967
cannam@85 6968
cannam@85 6969
cannam@85 6970
cannam@85 6971
cannam@85 6972
cannam@85 6973
cannam@85 6974
cannam@85 6975
cannam@85 6976
cannam@85 6977
cannam@85 6978
cannam@85 6979
cannam@85 6980
cannam@85 6981
cannam@85 6982
cannam@85 6983
cannam@85 6984
cannam@85 6985
cannam@85 6986
cannam@85 6987
cannam@85 6988
cannam@85 6989
cannam@85 6990
cannam@85 6991
cannam@85 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
cannam@85 6993 $as_echo_n "checking for sysroot... " >&6; }
cannam@85 6994
cannam@85 6995 # Check whether --with-sysroot was given.
cannam@85 6996 if test "${with_sysroot+set}" = set; then :
cannam@85 6997 withval=$with_sysroot;
cannam@85 6998 else
cannam@85 6999 with_sysroot=no
cannam@85 7000 fi
cannam@85 7001
cannam@85 7002
cannam@85 7003 lt_sysroot=
cannam@85 7004 case ${with_sysroot} in #(
cannam@85 7005 yes)
cannam@85 7006 if test "$GCC" = yes; then
cannam@85 7007 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
cannam@85 7008 fi
cannam@85 7009 ;; #(
cannam@85 7010 /*)
cannam@85 7011 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
cannam@85 7012 ;; #(
cannam@85 7013 no|'')
cannam@85 7014 ;; #(
cannam@85 7015 *)
cannam@85 7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
cannam@85 7017 $as_echo "${with_sysroot}" >&6; }
cannam@85 7018 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
cannam@85 7019 ;;
cannam@85 7020 esac
cannam@85 7021
cannam@85 7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
cannam@85 7023 $as_echo "${lt_sysroot:-no}" >&6; }
cannam@85 7024
cannam@85 7025
cannam@85 7026
cannam@85 7027
cannam@85 7028
cannam@85 7029 # Check whether --enable-libtool-lock was given.
cannam@85 7030 if test "${enable_libtool_lock+set}" = set; then :
cannam@85 7031 enableval=$enable_libtool_lock;
cannam@85 7032 fi
cannam@85 7033
cannam@85 7034 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
cannam@85 7035
cannam@85 7036 # Some flags need to be propagated to the compiler or linker for good
cannam@85 7037 # libtool support.
cannam@85 7038 case $host in
cannam@85 7039 ia64-*-hpux*)
cannam@85 7040 # Find out which ABI we are using.
cannam@85 7041 echo 'int i;' > conftest.$ac_ext
cannam@85 7042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@85 7043 (eval $ac_compile) 2>&5
cannam@85 7044 ac_status=$?
cannam@85 7045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 7046 test $ac_status = 0; }; then
cannam@85 7047 case `/usr/bin/file conftest.$ac_objext` in
cannam@85 7048 *ELF-32*)
cannam@85 7049 HPUX_IA64_MODE="32"
cannam@85 7050 ;;
cannam@85 7051 *ELF-64*)
cannam@85 7052 HPUX_IA64_MODE="64"
cannam@85 7053 ;;
cannam@85 7054 esac
cannam@85 7055 fi
cannam@85 7056 rm -rf conftest*
cannam@85 7057 ;;
cannam@85 7058 *-*-irix6*)
cannam@85 7059 # Find out which ABI we are using.
cannam@85 7060 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cannam@85 7061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@85 7062 (eval $ac_compile) 2>&5
cannam@85 7063 ac_status=$?
cannam@85 7064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 7065 test $ac_status = 0; }; then
cannam@85 7066 if test "$lt_cv_prog_gnu_ld" = yes; then
cannam@85 7067 case `/usr/bin/file conftest.$ac_objext` in
cannam@85 7068 *32-bit*)
cannam@85 7069 LD="${LD-ld} -melf32bsmip"
cannam@85 7070 ;;
cannam@85 7071 *N32*)
cannam@85 7072 LD="${LD-ld} -melf32bmipn32"
cannam@85 7073 ;;
cannam@85 7074 *64-bit*)
cannam@85 7075 LD="${LD-ld} -melf64bmip"
cannam@85 7076 ;;
cannam@85 7077 esac
cannam@85 7078 else
cannam@85 7079 case `/usr/bin/file conftest.$ac_objext` in
cannam@85 7080 *32-bit*)
cannam@85 7081 LD="${LD-ld} -32"
cannam@85 7082 ;;
cannam@85 7083 *N32*)
cannam@85 7084 LD="${LD-ld} -n32"
cannam@85 7085 ;;
cannam@85 7086 *64-bit*)
cannam@85 7087 LD="${LD-ld} -64"
cannam@85 7088 ;;
cannam@85 7089 esac
cannam@85 7090 fi
cannam@85 7091 fi
cannam@85 7092 rm -rf conftest*
cannam@85 7093 ;;
cannam@85 7094
cannam@85 7095 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
cannam@85 7096 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
cannam@85 7097 # Find out which ABI we are using.
cannam@85 7098 echo 'int i;' > conftest.$ac_ext
cannam@85 7099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@85 7100 (eval $ac_compile) 2>&5
cannam@85 7101 ac_status=$?
cannam@85 7102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 7103 test $ac_status = 0; }; then
cannam@85 7104 case `/usr/bin/file conftest.o` in
cannam@85 7105 *32-bit*)
cannam@85 7106 case $host in
cannam@85 7107 x86_64-*kfreebsd*-gnu)
cannam@85 7108 LD="${LD-ld} -m elf_i386_fbsd"
cannam@85 7109 ;;
cannam@85 7110 x86_64-*linux*)
cannam@85 7111 LD="${LD-ld} -m elf_i386"
cannam@85 7112 ;;
cannam@85 7113 ppc64-*linux*|powerpc64-*linux*)
cannam@85 7114 LD="${LD-ld} -m elf32ppclinux"
cannam@85 7115 ;;
cannam@85 7116 s390x-*linux*)
cannam@85 7117 LD="${LD-ld} -m elf_s390"
cannam@85 7118 ;;
cannam@85 7119 sparc64-*linux*)
cannam@85 7120 LD="${LD-ld} -m elf32_sparc"
cannam@85 7121 ;;
cannam@85 7122 esac
cannam@85 7123 ;;
cannam@85 7124 *64-bit*)
cannam@85 7125 case $host in
cannam@85 7126 x86_64-*kfreebsd*-gnu)
cannam@85 7127 LD="${LD-ld} -m elf_x86_64_fbsd"
cannam@85 7128 ;;
cannam@85 7129 x86_64-*linux*)
cannam@85 7130 LD="${LD-ld} -m elf_x86_64"
cannam@85 7131 ;;
cannam@85 7132 ppc*-*linux*|powerpc*-*linux*)
cannam@85 7133 LD="${LD-ld} -m elf64ppc"
cannam@85 7134 ;;
cannam@85 7135 s390*-*linux*|s390*-*tpf*)
cannam@85 7136 LD="${LD-ld} -m elf64_s390"
cannam@85 7137 ;;
cannam@85 7138 sparc*-*linux*)
cannam@85 7139 LD="${LD-ld} -m elf64_sparc"
cannam@85 7140 ;;
cannam@85 7141 esac
cannam@85 7142 ;;
cannam@85 7143 esac
cannam@85 7144 fi
cannam@85 7145 rm -rf conftest*
cannam@85 7146 ;;
cannam@85 7147
cannam@85 7148 *-*-sco3.2v5*)
cannam@85 7149 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
cannam@85 7150 SAVE_CFLAGS="$CFLAGS"
cannam@85 7151 CFLAGS="$CFLAGS -belf"
cannam@85 7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cannam@85 7153 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cannam@85 7154 if ${lt_cv_cc_needs_belf+:} false; then :
cannam@85 7155 $as_echo_n "(cached) " >&6
cannam@85 7156 else
cannam@85 7157 ac_ext=c
cannam@85 7158 ac_cpp='$CPP $CPPFLAGS'
cannam@85 7159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 7160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 7161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 7162
cannam@85 7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 7164 /* end confdefs.h. */
cannam@85 7165
cannam@85 7166 int
cannam@85 7167 main ()
cannam@85 7168 {
cannam@85 7169
cannam@85 7170 ;
cannam@85 7171 return 0;
cannam@85 7172 }
cannam@85 7173 _ACEOF
cannam@85 7174 if ac_fn_c_try_link "$LINENO"; then :
cannam@85 7175 lt_cv_cc_needs_belf=yes
cannam@85 7176 else
cannam@85 7177 lt_cv_cc_needs_belf=no
cannam@85 7178 fi
cannam@85 7179 rm -f core conftest.err conftest.$ac_objext \
cannam@85 7180 conftest$ac_exeext conftest.$ac_ext
cannam@85 7181 ac_ext=c
cannam@85 7182 ac_cpp='$CPP $CPPFLAGS'
cannam@85 7183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 7184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 7185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 7186
cannam@85 7187 fi
cannam@85 7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cannam@85 7189 $as_echo "$lt_cv_cc_needs_belf" >&6; }
cannam@85 7190 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
cannam@85 7191 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
cannam@85 7192 CFLAGS="$SAVE_CFLAGS"
cannam@85 7193 fi
cannam@85 7194 ;;
cannam@85 7195 sparc*-*solaris*)
cannam@85 7196 # Find out which ABI we are using.
cannam@85 7197 echo 'int i;' > conftest.$ac_ext
cannam@85 7198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@85 7199 (eval $ac_compile) 2>&5
cannam@85 7200 ac_status=$?
cannam@85 7201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 7202 test $ac_status = 0; }; then
cannam@85 7203 case `/usr/bin/file conftest.o` in
cannam@85 7204 *64-bit*)
cannam@85 7205 case $lt_cv_prog_gnu_ld in
cannam@85 7206 yes*) LD="${LD-ld} -m elf64_sparc" ;;
cannam@85 7207 *)
cannam@85 7208 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
cannam@85 7209 LD="${LD-ld} -64"
cannam@85 7210 fi
cannam@85 7211 ;;
cannam@85 7212 esac
cannam@85 7213 ;;
cannam@85 7214 esac
cannam@85 7215 fi
cannam@85 7216 rm -rf conftest*
cannam@85 7217 ;;
cannam@85 7218 esac
cannam@85 7219
cannam@85 7220 need_locks="$enable_libtool_lock"
cannam@85 7221
cannam@85 7222 if test -n "$ac_tool_prefix"; then
cannam@85 7223 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
cannam@85 7224 set dummy ${ac_tool_prefix}mt; ac_word=$2
cannam@85 7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 7226 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 7227 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
cannam@85 7228 $as_echo_n "(cached) " >&6
cannam@85 7229 else
cannam@85 7230 if test -n "$MANIFEST_TOOL"; then
cannam@85 7231 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
cannam@85 7232 else
cannam@85 7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 7234 for as_dir in $PATH
cannam@85 7235 do
cannam@85 7236 IFS=$as_save_IFS
cannam@85 7237 test -z "$as_dir" && as_dir=.
cannam@85 7238 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 7239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 7240 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
cannam@85 7241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 7242 break 2
cannam@85 7243 fi
cannam@85 7244 done
cannam@85 7245 done
cannam@85 7246 IFS=$as_save_IFS
cannam@85 7247
cannam@85 7248 fi
cannam@85 7249 fi
cannam@85 7250 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
cannam@85 7251 if test -n "$MANIFEST_TOOL"; then
cannam@85 7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
cannam@85 7253 $as_echo "$MANIFEST_TOOL" >&6; }
cannam@85 7254 else
cannam@85 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 7256 $as_echo "no" >&6; }
cannam@85 7257 fi
cannam@85 7258
cannam@85 7259
cannam@85 7260 fi
cannam@85 7261 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
cannam@85 7262 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
cannam@85 7263 # Extract the first word of "mt", so it can be a program name with args.
cannam@85 7264 set dummy mt; ac_word=$2
cannam@85 7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 7266 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 7267 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
cannam@85 7268 $as_echo_n "(cached) " >&6
cannam@85 7269 else
cannam@85 7270 if test -n "$ac_ct_MANIFEST_TOOL"; then
cannam@85 7271 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
cannam@85 7272 else
cannam@85 7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 7274 for as_dir in $PATH
cannam@85 7275 do
cannam@85 7276 IFS=$as_save_IFS
cannam@85 7277 test -z "$as_dir" && as_dir=.
cannam@85 7278 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 7279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 7280 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
cannam@85 7281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 7282 break 2
cannam@85 7283 fi
cannam@85 7284 done
cannam@85 7285 done
cannam@85 7286 IFS=$as_save_IFS
cannam@85 7287
cannam@85 7288 fi
cannam@85 7289 fi
cannam@85 7290 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
cannam@85 7291 if test -n "$ac_ct_MANIFEST_TOOL"; then
cannam@85 7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
cannam@85 7293 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
cannam@85 7294 else
cannam@85 7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 7296 $as_echo "no" >&6; }
cannam@85 7297 fi
cannam@85 7298
cannam@85 7299 if test "x$ac_ct_MANIFEST_TOOL" = x; then
cannam@85 7300 MANIFEST_TOOL=":"
cannam@85 7301 else
cannam@85 7302 case $cross_compiling:$ac_tool_warned in
cannam@85 7303 yes:)
cannam@85 7304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@85 7305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@85 7306 ac_tool_warned=yes ;;
cannam@85 7307 esac
cannam@85 7308 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
cannam@85 7309 fi
cannam@85 7310 else
cannam@85 7311 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
cannam@85 7312 fi
cannam@85 7313
cannam@85 7314 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
cannam@85 7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
cannam@85 7316 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
cannam@85 7317 if ${lt_cv_path_mainfest_tool+:} false; then :
cannam@85 7318 $as_echo_n "(cached) " >&6
cannam@85 7319 else
cannam@85 7320 lt_cv_path_mainfest_tool=no
cannam@85 7321 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
cannam@85 7322 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
cannam@85 7323 cat conftest.err >&5
cannam@85 7324 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
cannam@85 7325 lt_cv_path_mainfest_tool=yes
cannam@85 7326 fi
cannam@85 7327 rm -f conftest*
cannam@85 7328 fi
cannam@85 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
cannam@85 7330 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
cannam@85 7331 if test "x$lt_cv_path_mainfest_tool" != xyes; then
cannam@85 7332 MANIFEST_TOOL=:
cannam@85 7333 fi
cannam@85 7334
cannam@85 7335
cannam@85 7336
cannam@85 7337
cannam@85 7338
cannam@85 7339
cannam@85 7340 case $host_os in
cannam@85 7341 rhapsody* | darwin*)
cannam@85 7342 if test -n "$ac_tool_prefix"; then
cannam@85 7343 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
cannam@85 7344 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cannam@85 7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 7346 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 7347 if ${ac_cv_prog_DSYMUTIL+:} false; then :
cannam@85 7348 $as_echo_n "(cached) " >&6
cannam@85 7349 else
cannam@85 7350 if test -n "$DSYMUTIL"; then
cannam@85 7351 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
cannam@85 7352 else
cannam@85 7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 7354 for as_dir in $PATH
cannam@85 7355 do
cannam@85 7356 IFS=$as_save_IFS
cannam@85 7357 test -z "$as_dir" && as_dir=.
cannam@85 7358 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 7359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 7360 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cannam@85 7361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 7362 break 2
cannam@85 7363 fi
cannam@85 7364 done
cannam@85 7365 done
cannam@85 7366 IFS=$as_save_IFS
cannam@85 7367
cannam@85 7368 fi
cannam@85 7369 fi
cannam@85 7370 DSYMUTIL=$ac_cv_prog_DSYMUTIL
cannam@85 7371 if test -n "$DSYMUTIL"; then
cannam@85 7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cannam@85 7373 $as_echo "$DSYMUTIL" >&6; }
cannam@85 7374 else
cannam@85 7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 7376 $as_echo "no" >&6; }
cannam@85 7377 fi
cannam@85 7378
cannam@85 7379
cannam@85 7380 fi
cannam@85 7381 if test -z "$ac_cv_prog_DSYMUTIL"; then
cannam@85 7382 ac_ct_DSYMUTIL=$DSYMUTIL
cannam@85 7383 # Extract the first word of "dsymutil", so it can be a program name with args.
cannam@85 7384 set dummy dsymutil; ac_word=$2
cannam@85 7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 7386 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 7387 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cannam@85 7388 $as_echo_n "(cached) " >&6
cannam@85 7389 else
cannam@85 7390 if test -n "$ac_ct_DSYMUTIL"; then
cannam@85 7391 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
cannam@85 7392 else
cannam@85 7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 7394 for as_dir in $PATH
cannam@85 7395 do
cannam@85 7396 IFS=$as_save_IFS
cannam@85 7397 test -z "$as_dir" && as_dir=.
cannam@85 7398 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 7399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 7400 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cannam@85 7401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 7402 break 2
cannam@85 7403 fi
cannam@85 7404 done
cannam@85 7405 done
cannam@85 7406 IFS=$as_save_IFS
cannam@85 7407
cannam@85 7408 fi
cannam@85 7409 fi
cannam@85 7410 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
cannam@85 7411 if test -n "$ac_ct_DSYMUTIL"; then
cannam@85 7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cannam@85 7413 $as_echo "$ac_ct_DSYMUTIL" >&6; }
cannam@85 7414 else
cannam@85 7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 7416 $as_echo "no" >&6; }
cannam@85 7417 fi
cannam@85 7418
cannam@85 7419 if test "x$ac_ct_DSYMUTIL" = x; then
cannam@85 7420 DSYMUTIL=":"
cannam@85 7421 else
cannam@85 7422 case $cross_compiling:$ac_tool_warned in
cannam@85 7423 yes:)
cannam@85 7424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@85 7425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@85 7426 ac_tool_warned=yes ;;
cannam@85 7427 esac
cannam@85 7428 DSYMUTIL=$ac_ct_DSYMUTIL
cannam@85 7429 fi
cannam@85 7430 else
cannam@85 7431 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
cannam@85 7432 fi
cannam@85 7433
cannam@85 7434 if test -n "$ac_tool_prefix"; then
cannam@85 7435 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
cannam@85 7436 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cannam@85 7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 7438 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 7439 if ${ac_cv_prog_NMEDIT+:} false; then :
cannam@85 7440 $as_echo_n "(cached) " >&6
cannam@85 7441 else
cannam@85 7442 if test -n "$NMEDIT"; then
cannam@85 7443 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
cannam@85 7444 else
cannam@85 7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 7446 for as_dir in $PATH
cannam@85 7447 do
cannam@85 7448 IFS=$as_save_IFS
cannam@85 7449 test -z "$as_dir" && as_dir=.
cannam@85 7450 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 7451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 7452 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cannam@85 7453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 7454 break 2
cannam@85 7455 fi
cannam@85 7456 done
cannam@85 7457 done
cannam@85 7458 IFS=$as_save_IFS
cannam@85 7459
cannam@85 7460 fi
cannam@85 7461 fi
cannam@85 7462 NMEDIT=$ac_cv_prog_NMEDIT
cannam@85 7463 if test -n "$NMEDIT"; then
cannam@85 7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cannam@85 7465 $as_echo "$NMEDIT" >&6; }
cannam@85 7466 else
cannam@85 7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 7468 $as_echo "no" >&6; }
cannam@85 7469 fi
cannam@85 7470
cannam@85 7471
cannam@85 7472 fi
cannam@85 7473 if test -z "$ac_cv_prog_NMEDIT"; then
cannam@85 7474 ac_ct_NMEDIT=$NMEDIT
cannam@85 7475 # Extract the first word of "nmedit", so it can be a program name with args.
cannam@85 7476 set dummy nmedit; ac_word=$2
cannam@85 7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 7478 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 7479 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cannam@85 7480 $as_echo_n "(cached) " >&6
cannam@85 7481 else
cannam@85 7482 if test -n "$ac_ct_NMEDIT"; then
cannam@85 7483 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
cannam@85 7484 else
cannam@85 7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 7486 for as_dir in $PATH
cannam@85 7487 do
cannam@85 7488 IFS=$as_save_IFS
cannam@85 7489 test -z "$as_dir" && as_dir=.
cannam@85 7490 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 7491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 7492 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cannam@85 7493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 7494 break 2
cannam@85 7495 fi
cannam@85 7496 done
cannam@85 7497 done
cannam@85 7498 IFS=$as_save_IFS
cannam@85 7499
cannam@85 7500 fi
cannam@85 7501 fi
cannam@85 7502 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
cannam@85 7503 if test -n "$ac_ct_NMEDIT"; then
cannam@85 7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cannam@85 7505 $as_echo "$ac_ct_NMEDIT" >&6; }
cannam@85 7506 else
cannam@85 7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 7508 $as_echo "no" >&6; }
cannam@85 7509 fi
cannam@85 7510
cannam@85 7511 if test "x$ac_ct_NMEDIT" = x; then
cannam@85 7512 NMEDIT=":"
cannam@85 7513 else
cannam@85 7514 case $cross_compiling:$ac_tool_warned in
cannam@85 7515 yes:)
cannam@85 7516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@85 7517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@85 7518 ac_tool_warned=yes ;;
cannam@85 7519 esac
cannam@85 7520 NMEDIT=$ac_ct_NMEDIT
cannam@85 7521 fi
cannam@85 7522 else
cannam@85 7523 NMEDIT="$ac_cv_prog_NMEDIT"
cannam@85 7524 fi
cannam@85 7525
cannam@85 7526 if test -n "$ac_tool_prefix"; then
cannam@85 7527 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
cannam@85 7528 set dummy ${ac_tool_prefix}lipo; ac_word=$2
cannam@85 7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 7530 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 7531 if ${ac_cv_prog_LIPO+:} false; then :
cannam@85 7532 $as_echo_n "(cached) " >&6
cannam@85 7533 else
cannam@85 7534 if test -n "$LIPO"; then
cannam@85 7535 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
cannam@85 7536 else
cannam@85 7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 7538 for as_dir in $PATH
cannam@85 7539 do
cannam@85 7540 IFS=$as_save_IFS
cannam@85 7541 test -z "$as_dir" && as_dir=.
cannam@85 7542 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 7543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 7544 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cannam@85 7545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 7546 break 2
cannam@85 7547 fi
cannam@85 7548 done
cannam@85 7549 done
cannam@85 7550 IFS=$as_save_IFS
cannam@85 7551
cannam@85 7552 fi
cannam@85 7553 fi
cannam@85 7554 LIPO=$ac_cv_prog_LIPO
cannam@85 7555 if test -n "$LIPO"; then
cannam@85 7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cannam@85 7557 $as_echo "$LIPO" >&6; }
cannam@85 7558 else
cannam@85 7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 7560 $as_echo "no" >&6; }
cannam@85 7561 fi
cannam@85 7562
cannam@85 7563
cannam@85 7564 fi
cannam@85 7565 if test -z "$ac_cv_prog_LIPO"; then
cannam@85 7566 ac_ct_LIPO=$LIPO
cannam@85 7567 # Extract the first word of "lipo", so it can be a program name with args.
cannam@85 7568 set dummy lipo; ac_word=$2
cannam@85 7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 7570 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 7571 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cannam@85 7572 $as_echo_n "(cached) " >&6
cannam@85 7573 else
cannam@85 7574 if test -n "$ac_ct_LIPO"; then
cannam@85 7575 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
cannam@85 7576 else
cannam@85 7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 7578 for as_dir in $PATH
cannam@85 7579 do
cannam@85 7580 IFS=$as_save_IFS
cannam@85 7581 test -z "$as_dir" && as_dir=.
cannam@85 7582 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 7583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 7584 ac_cv_prog_ac_ct_LIPO="lipo"
cannam@85 7585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 7586 break 2
cannam@85 7587 fi
cannam@85 7588 done
cannam@85 7589 done
cannam@85 7590 IFS=$as_save_IFS
cannam@85 7591
cannam@85 7592 fi
cannam@85 7593 fi
cannam@85 7594 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
cannam@85 7595 if test -n "$ac_ct_LIPO"; then
cannam@85 7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cannam@85 7597 $as_echo "$ac_ct_LIPO" >&6; }
cannam@85 7598 else
cannam@85 7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 7600 $as_echo "no" >&6; }
cannam@85 7601 fi
cannam@85 7602
cannam@85 7603 if test "x$ac_ct_LIPO" = x; then
cannam@85 7604 LIPO=":"
cannam@85 7605 else
cannam@85 7606 case $cross_compiling:$ac_tool_warned in
cannam@85 7607 yes:)
cannam@85 7608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@85 7609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@85 7610 ac_tool_warned=yes ;;
cannam@85 7611 esac
cannam@85 7612 LIPO=$ac_ct_LIPO
cannam@85 7613 fi
cannam@85 7614 else
cannam@85 7615 LIPO="$ac_cv_prog_LIPO"
cannam@85 7616 fi
cannam@85 7617
cannam@85 7618 if test -n "$ac_tool_prefix"; then
cannam@85 7619 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
cannam@85 7620 set dummy ${ac_tool_prefix}otool; ac_word=$2
cannam@85 7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 7622 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 7623 if ${ac_cv_prog_OTOOL+:} false; then :
cannam@85 7624 $as_echo_n "(cached) " >&6
cannam@85 7625 else
cannam@85 7626 if test -n "$OTOOL"; then
cannam@85 7627 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
cannam@85 7628 else
cannam@85 7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 7630 for as_dir in $PATH
cannam@85 7631 do
cannam@85 7632 IFS=$as_save_IFS
cannam@85 7633 test -z "$as_dir" && as_dir=.
cannam@85 7634 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 7635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 7636 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cannam@85 7637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 7638 break 2
cannam@85 7639 fi
cannam@85 7640 done
cannam@85 7641 done
cannam@85 7642 IFS=$as_save_IFS
cannam@85 7643
cannam@85 7644 fi
cannam@85 7645 fi
cannam@85 7646 OTOOL=$ac_cv_prog_OTOOL
cannam@85 7647 if test -n "$OTOOL"; then
cannam@85 7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cannam@85 7649 $as_echo "$OTOOL" >&6; }
cannam@85 7650 else
cannam@85 7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 7652 $as_echo "no" >&6; }
cannam@85 7653 fi
cannam@85 7654
cannam@85 7655
cannam@85 7656 fi
cannam@85 7657 if test -z "$ac_cv_prog_OTOOL"; then
cannam@85 7658 ac_ct_OTOOL=$OTOOL
cannam@85 7659 # Extract the first word of "otool", so it can be a program name with args.
cannam@85 7660 set dummy otool; ac_word=$2
cannam@85 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 7662 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 7663 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cannam@85 7664 $as_echo_n "(cached) " >&6
cannam@85 7665 else
cannam@85 7666 if test -n "$ac_ct_OTOOL"; then
cannam@85 7667 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
cannam@85 7668 else
cannam@85 7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 7670 for as_dir in $PATH
cannam@85 7671 do
cannam@85 7672 IFS=$as_save_IFS
cannam@85 7673 test -z "$as_dir" && as_dir=.
cannam@85 7674 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 7675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 7676 ac_cv_prog_ac_ct_OTOOL="otool"
cannam@85 7677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 7678 break 2
cannam@85 7679 fi
cannam@85 7680 done
cannam@85 7681 done
cannam@85 7682 IFS=$as_save_IFS
cannam@85 7683
cannam@85 7684 fi
cannam@85 7685 fi
cannam@85 7686 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
cannam@85 7687 if test -n "$ac_ct_OTOOL"; then
cannam@85 7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cannam@85 7689 $as_echo "$ac_ct_OTOOL" >&6; }
cannam@85 7690 else
cannam@85 7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 7692 $as_echo "no" >&6; }
cannam@85 7693 fi
cannam@85 7694
cannam@85 7695 if test "x$ac_ct_OTOOL" = x; then
cannam@85 7696 OTOOL=":"
cannam@85 7697 else
cannam@85 7698 case $cross_compiling:$ac_tool_warned in
cannam@85 7699 yes:)
cannam@85 7700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@85 7701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@85 7702 ac_tool_warned=yes ;;
cannam@85 7703 esac
cannam@85 7704 OTOOL=$ac_ct_OTOOL
cannam@85 7705 fi
cannam@85 7706 else
cannam@85 7707 OTOOL="$ac_cv_prog_OTOOL"
cannam@85 7708 fi
cannam@85 7709
cannam@85 7710 if test -n "$ac_tool_prefix"; then
cannam@85 7711 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
cannam@85 7712 set dummy ${ac_tool_prefix}otool64; ac_word=$2
cannam@85 7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 7714 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 7715 if ${ac_cv_prog_OTOOL64+:} false; then :
cannam@85 7716 $as_echo_n "(cached) " >&6
cannam@85 7717 else
cannam@85 7718 if test -n "$OTOOL64"; then
cannam@85 7719 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
cannam@85 7720 else
cannam@85 7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 7722 for as_dir in $PATH
cannam@85 7723 do
cannam@85 7724 IFS=$as_save_IFS
cannam@85 7725 test -z "$as_dir" && as_dir=.
cannam@85 7726 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 7727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 7728 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cannam@85 7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 7730 break 2
cannam@85 7731 fi
cannam@85 7732 done
cannam@85 7733 done
cannam@85 7734 IFS=$as_save_IFS
cannam@85 7735
cannam@85 7736 fi
cannam@85 7737 fi
cannam@85 7738 OTOOL64=$ac_cv_prog_OTOOL64
cannam@85 7739 if test -n "$OTOOL64"; then
cannam@85 7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cannam@85 7741 $as_echo "$OTOOL64" >&6; }
cannam@85 7742 else
cannam@85 7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 7744 $as_echo "no" >&6; }
cannam@85 7745 fi
cannam@85 7746
cannam@85 7747
cannam@85 7748 fi
cannam@85 7749 if test -z "$ac_cv_prog_OTOOL64"; then
cannam@85 7750 ac_ct_OTOOL64=$OTOOL64
cannam@85 7751 # Extract the first word of "otool64", so it can be a program name with args.
cannam@85 7752 set dummy otool64; ac_word=$2
cannam@85 7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 7754 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 7755 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cannam@85 7756 $as_echo_n "(cached) " >&6
cannam@85 7757 else
cannam@85 7758 if test -n "$ac_ct_OTOOL64"; then
cannam@85 7759 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
cannam@85 7760 else
cannam@85 7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 7762 for as_dir in $PATH
cannam@85 7763 do
cannam@85 7764 IFS=$as_save_IFS
cannam@85 7765 test -z "$as_dir" && as_dir=.
cannam@85 7766 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 7767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 7768 ac_cv_prog_ac_ct_OTOOL64="otool64"
cannam@85 7769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 7770 break 2
cannam@85 7771 fi
cannam@85 7772 done
cannam@85 7773 done
cannam@85 7774 IFS=$as_save_IFS
cannam@85 7775
cannam@85 7776 fi
cannam@85 7777 fi
cannam@85 7778 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
cannam@85 7779 if test -n "$ac_ct_OTOOL64"; then
cannam@85 7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cannam@85 7781 $as_echo "$ac_ct_OTOOL64" >&6; }
cannam@85 7782 else
cannam@85 7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 7784 $as_echo "no" >&6; }
cannam@85 7785 fi
cannam@85 7786
cannam@85 7787 if test "x$ac_ct_OTOOL64" = x; then
cannam@85 7788 OTOOL64=":"
cannam@85 7789 else
cannam@85 7790 case $cross_compiling:$ac_tool_warned in
cannam@85 7791 yes:)
cannam@85 7792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@85 7793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@85 7794 ac_tool_warned=yes ;;
cannam@85 7795 esac
cannam@85 7796 OTOOL64=$ac_ct_OTOOL64
cannam@85 7797 fi
cannam@85 7798 else
cannam@85 7799 OTOOL64="$ac_cv_prog_OTOOL64"
cannam@85 7800 fi
cannam@85 7801
cannam@85 7802
cannam@85 7803
cannam@85 7804
cannam@85 7805
cannam@85 7806
cannam@85 7807
cannam@85 7808
cannam@85 7809
cannam@85 7810
cannam@85 7811
cannam@85 7812
cannam@85 7813
cannam@85 7814
cannam@85 7815
cannam@85 7816
cannam@85 7817
cannam@85 7818
cannam@85 7819
cannam@85 7820
cannam@85 7821
cannam@85 7822
cannam@85 7823
cannam@85 7824
cannam@85 7825
cannam@85 7826
cannam@85 7827
cannam@85 7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cannam@85 7829 $as_echo_n "checking for -single_module linker flag... " >&6; }
cannam@85 7830 if ${lt_cv_apple_cc_single_mod+:} false; then :
cannam@85 7831 $as_echo_n "(cached) " >&6
cannam@85 7832 else
cannam@85 7833 lt_cv_apple_cc_single_mod=no
cannam@85 7834 if test -z "${LT_MULTI_MODULE}"; then
cannam@85 7835 # By default we will add the -single_module flag. You can override
cannam@85 7836 # by either setting the environment variable LT_MULTI_MODULE
cannam@85 7837 # non-empty at configure time, or by adding -multi_module to the
cannam@85 7838 # link flags.
cannam@85 7839 rm -rf libconftest.dylib*
cannam@85 7840 echo "int foo(void){return 1;}" > conftest.c
cannam@85 7841 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
cannam@85 7842 -dynamiclib -Wl,-single_module conftest.c" >&5
cannam@85 7843 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
cannam@85 7844 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
cannam@85 7845 _lt_result=$?
cannam@85 7846 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
cannam@85 7847 lt_cv_apple_cc_single_mod=yes
cannam@85 7848 else
cannam@85 7849 cat conftest.err >&5
cannam@85 7850 fi
cannam@85 7851 rm -rf libconftest.dylib*
cannam@85 7852 rm -f conftest.*
cannam@85 7853 fi
cannam@85 7854 fi
cannam@85 7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cannam@85 7856 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cannam@85 7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cannam@85 7858 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cannam@85 7859 if ${lt_cv_ld_exported_symbols_list+:} false; then :
cannam@85 7860 $as_echo_n "(cached) " >&6
cannam@85 7861 else
cannam@85 7862 lt_cv_ld_exported_symbols_list=no
cannam@85 7863 save_LDFLAGS=$LDFLAGS
cannam@85 7864 echo "_main" > conftest.sym
cannam@85 7865 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cannam@85 7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 7867 /* end confdefs.h. */
cannam@85 7868
cannam@85 7869 int
cannam@85 7870 main ()
cannam@85 7871 {
cannam@85 7872
cannam@85 7873 ;
cannam@85 7874 return 0;
cannam@85 7875 }
cannam@85 7876 _ACEOF
cannam@85 7877 if ac_fn_c_try_link "$LINENO"; then :
cannam@85 7878 lt_cv_ld_exported_symbols_list=yes
cannam@85 7879 else
cannam@85 7880 lt_cv_ld_exported_symbols_list=no
cannam@85 7881 fi
cannam@85 7882 rm -f core conftest.err conftest.$ac_objext \
cannam@85 7883 conftest$ac_exeext conftest.$ac_ext
cannam@85 7884 LDFLAGS="$save_LDFLAGS"
cannam@85 7885
cannam@85 7886 fi
cannam@85 7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cannam@85 7888 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cannam@85 7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
cannam@85 7890 $as_echo_n "checking for -force_load linker flag... " >&6; }
cannam@85 7891 if ${lt_cv_ld_force_load+:} false; then :
cannam@85 7892 $as_echo_n "(cached) " >&6
cannam@85 7893 else
cannam@85 7894 lt_cv_ld_force_load=no
cannam@85 7895 cat > conftest.c << _LT_EOF
cannam@85 7896 int forced_loaded() { return 2;}
cannam@85 7897 _LT_EOF
cannam@85 7898 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
cannam@85 7899 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
cannam@85 7900 echo "$AR cru libconftest.a conftest.o" >&5
cannam@85 7901 $AR cru libconftest.a conftest.o 2>&5
cannam@85 7902 echo "$RANLIB libconftest.a" >&5
cannam@85 7903 $RANLIB libconftest.a 2>&5
cannam@85 7904 cat > conftest.c << _LT_EOF
cannam@85 7905 int main() { return 0;}
cannam@85 7906 _LT_EOF
cannam@85 7907 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
cannam@85 7908 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
cannam@85 7909 _lt_result=$?
cannam@85 7910 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
cannam@85 7911 lt_cv_ld_force_load=yes
cannam@85 7912 else
cannam@85 7913 cat conftest.err >&5
cannam@85 7914 fi
cannam@85 7915 rm -f conftest.err libconftest.a conftest conftest.c
cannam@85 7916 rm -rf conftest.dSYM
cannam@85 7917
cannam@85 7918 fi
cannam@85 7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
cannam@85 7920 $as_echo "$lt_cv_ld_force_load" >&6; }
cannam@85 7921 case $host_os in
cannam@85 7922 rhapsody* | darwin1.[012])
cannam@85 7923 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
cannam@85 7924 darwin1.*)
cannam@85 7925 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
cannam@85 7926 darwin*) # darwin 5.x on
cannam@85 7927 # if running on 10.5 or later, the deployment target defaults
cannam@85 7928 # to the OS version, if on x86, and 10.4, the deployment
cannam@85 7929 # target defaults to 10.4. Don't you love it?
cannam@85 7930 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
cannam@85 7931 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
cannam@85 7932 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
cannam@85 7933 10.[012]*)
cannam@85 7934 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
cannam@85 7935 10.*)
cannam@85 7936 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
cannam@85 7937 esac
cannam@85 7938 ;;
cannam@85 7939 esac
cannam@85 7940 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
cannam@85 7941 _lt_dar_single_mod='$single_module'
cannam@85 7942 fi
cannam@85 7943 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
cannam@85 7944 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
cannam@85 7945 else
cannam@85 7946 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
cannam@85 7947 fi
cannam@85 7948 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cannam@85 7949 _lt_dsymutil='~$DSYMUTIL $lib || :'
cannam@85 7950 else
cannam@85 7951 _lt_dsymutil=
cannam@85 7952 fi
cannam@85 7953 ;;
cannam@85 7954 esac
cannam@85 7955
cannam@85 7956 ac_ext=c
cannam@85 7957 ac_cpp='$CPP $CPPFLAGS'
cannam@85 7958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 7959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 7960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cannam@85 7962 $as_echo_n "checking how to run the C preprocessor... " >&6; }
cannam@85 7963 # On Suns, sometimes $CPP names a directory.
cannam@85 7964 if test -n "$CPP" && test -d "$CPP"; then
cannam@85 7965 CPP=
cannam@85 7966 fi
cannam@85 7967 if test -z "$CPP"; then
cannam@85 7968 if ${ac_cv_prog_CPP+:} false; then :
cannam@85 7969 $as_echo_n "(cached) " >&6
cannam@85 7970 else
cannam@85 7971 # Double quotes because CPP needs to be expanded
cannam@85 7972 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
cannam@85 7973 do
cannam@85 7974 ac_preproc_ok=false
cannam@85 7975 for ac_c_preproc_warn_flag in '' yes
cannam@85 7976 do
cannam@85 7977 # Use a header file that comes with gcc, so configuring glibc
cannam@85 7978 # with a fresh cross-compiler works.
cannam@85 7979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 7980 # <limits.h> exists even on freestanding compilers.
cannam@85 7981 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@85 7982 # not just through cpp. "Syntax error" is here to catch this case.
cannam@85 7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 7984 /* end confdefs.h. */
cannam@85 7985 #ifdef __STDC__
cannam@85 7986 # include <limits.h>
cannam@85 7987 #else
cannam@85 7988 # include <assert.h>
cannam@85 7989 #endif
cannam@85 7990 Syntax error
cannam@85 7991 _ACEOF
cannam@85 7992 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@85 7993
cannam@85 7994 else
cannam@85 7995 # Broken: fails on valid input.
cannam@85 7996 continue
cannam@85 7997 fi
cannam@85 7998 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@85 7999
cannam@85 8000 # OK, works on sane cases. Now check whether nonexistent headers
cannam@85 8001 # can be detected and how.
cannam@85 8002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 8003 /* end confdefs.h. */
cannam@85 8004 #include <ac_nonexistent.h>
cannam@85 8005 _ACEOF
cannam@85 8006 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@85 8007 # Broken: success on invalid input.
cannam@85 8008 continue
cannam@85 8009 else
cannam@85 8010 # Passes both tests.
cannam@85 8011 ac_preproc_ok=:
cannam@85 8012 break
cannam@85 8013 fi
cannam@85 8014 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@85 8015
cannam@85 8016 done
cannam@85 8017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@85 8018 rm -f conftest.i conftest.err conftest.$ac_ext
cannam@85 8019 if $ac_preproc_ok; then :
cannam@85 8020 break
cannam@85 8021 fi
cannam@85 8022
cannam@85 8023 done
cannam@85 8024 ac_cv_prog_CPP=$CPP
cannam@85 8025
cannam@85 8026 fi
cannam@85 8027 CPP=$ac_cv_prog_CPP
cannam@85 8028 else
cannam@85 8029 ac_cv_prog_CPP=$CPP
cannam@85 8030 fi
cannam@85 8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cannam@85 8032 $as_echo "$CPP" >&6; }
cannam@85 8033 ac_preproc_ok=false
cannam@85 8034 for ac_c_preproc_warn_flag in '' yes
cannam@85 8035 do
cannam@85 8036 # Use a header file that comes with gcc, so configuring glibc
cannam@85 8037 # with a fresh cross-compiler works.
cannam@85 8038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 8039 # <limits.h> exists even on freestanding compilers.
cannam@85 8040 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@85 8041 # not just through cpp. "Syntax error" is here to catch this case.
cannam@85 8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 8043 /* end confdefs.h. */
cannam@85 8044 #ifdef __STDC__
cannam@85 8045 # include <limits.h>
cannam@85 8046 #else
cannam@85 8047 # include <assert.h>
cannam@85 8048 #endif
cannam@85 8049 Syntax error
cannam@85 8050 _ACEOF
cannam@85 8051 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@85 8052
cannam@85 8053 else
cannam@85 8054 # Broken: fails on valid input.
cannam@85 8055 continue
cannam@85 8056 fi
cannam@85 8057 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@85 8058
cannam@85 8059 # OK, works on sane cases. Now check whether nonexistent headers
cannam@85 8060 # can be detected and how.
cannam@85 8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 8062 /* end confdefs.h. */
cannam@85 8063 #include <ac_nonexistent.h>
cannam@85 8064 _ACEOF
cannam@85 8065 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@85 8066 # Broken: success on invalid input.
cannam@85 8067 continue
cannam@85 8068 else
cannam@85 8069 # Passes both tests.
cannam@85 8070 ac_preproc_ok=:
cannam@85 8071 break
cannam@85 8072 fi
cannam@85 8073 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@85 8074
cannam@85 8075 done
cannam@85 8076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@85 8077 rm -f conftest.i conftest.err conftest.$ac_ext
cannam@85 8078 if $ac_preproc_ok; then :
cannam@85 8079
cannam@85 8080 else
cannam@85 8081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@85 8082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@85 8083 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
cannam@85 8084 See \`config.log' for more details" "$LINENO" 5; }
cannam@85 8085 fi
cannam@85 8086
cannam@85 8087 ac_ext=c
cannam@85 8088 ac_cpp='$CPP $CPPFLAGS'
cannam@85 8089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 8090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 8091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 8092
cannam@85 8093
cannam@85 8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cannam@85 8095 $as_echo_n "checking for ANSI C header files... " >&6; }
cannam@85 8096 if ${ac_cv_header_stdc+:} false; then :
cannam@85 8097 $as_echo_n "(cached) " >&6
cannam@85 8098 else
cannam@85 8099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 8100 /* end confdefs.h. */
cannam@85 8101 #include <stdlib.h>
cannam@85 8102 #include <stdarg.h>
cannam@85 8103 #include <string.h>
cannam@85 8104 #include <float.h>
cannam@85 8105
cannam@85 8106 int
cannam@85 8107 main ()
cannam@85 8108 {
cannam@85 8109
cannam@85 8110 ;
cannam@85 8111 return 0;
cannam@85 8112 }
cannam@85 8113 _ACEOF
cannam@85 8114 if ac_fn_c_try_compile "$LINENO"; then :
cannam@85 8115 ac_cv_header_stdc=yes
cannam@85 8116 else
cannam@85 8117 ac_cv_header_stdc=no
cannam@85 8118 fi
cannam@85 8119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 8120
cannam@85 8121 if test $ac_cv_header_stdc = yes; then
cannam@85 8122 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cannam@85 8123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 8124 /* end confdefs.h. */
cannam@85 8125 #include <string.h>
cannam@85 8126
cannam@85 8127 _ACEOF
cannam@85 8128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@85 8129 $EGREP "memchr" >/dev/null 2>&1; then :
cannam@85 8130
cannam@85 8131 else
cannam@85 8132 ac_cv_header_stdc=no
cannam@85 8133 fi
cannam@85 8134 rm -f conftest*
cannam@85 8135
cannam@85 8136 fi
cannam@85 8137
cannam@85 8138 if test $ac_cv_header_stdc = yes; then
cannam@85 8139 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cannam@85 8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 8141 /* end confdefs.h. */
cannam@85 8142 #include <stdlib.h>
cannam@85 8143
cannam@85 8144 _ACEOF
cannam@85 8145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@85 8146 $EGREP "free" >/dev/null 2>&1; then :
cannam@85 8147
cannam@85 8148 else
cannam@85 8149 ac_cv_header_stdc=no
cannam@85 8150 fi
cannam@85 8151 rm -f conftest*
cannam@85 8152
cannam@85 8153 fi
cannam@85 8154
cannam@85 8155 if test $ac_cv_header_stdc = yes; then
cannam@85 8156 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cannam@85 8157 if test "$cross_compiling" = yes; then :
cannam@85 8158 :
cannam@85 8159 else
cannam@85 8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 8161 /* end confdefs.h. */
cannam@85 8162 #include <ctype.h>
cannam@85 8163 #include <stdlib.h>
cannam@85 8164 #if ((' ' & 0x0FF) == 0x020)
cannam@85 8165 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
cannam@85 8166 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
cannam@85 8167 #else
cannam@85 8168 # define ISLOWER(c) \
cannam@85 8169 (('a' <= (c) && (c) <= 'i') \
cannam@85 8170 || ('j' <= (c) && (c) <= 'r') \
cannam@85 8171 || ('s' <= (c) && (c) <= 'z'))
cannam@85 8172 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
cannam@85 8173 #endif
cannam@85 8174
cannam@85 8175 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
cannam@85 8176 int
cannam@85 8177 main ()
cannam@85 8178 {
cannam@85 8179 int i;
cannam@85 8180 for (i = 0; i < 256; i++)
cannam@85 8181 if (XOR (islower (i), ISLOWER (i))
cannam@85 8182 || toupper (i) != TOUPPER (i))
cannam@85 8183 return 2;
cannam@85 8184 return 0;
cannam@85 8185 }
cannam@85 8186 _ACEOF
cannam@85 8187 if ac_fn_c_try_run "$LINENO"; then :
cannam@85 8188
cannam@85 8189 else
cannam@85 8190 ac_cv_header_stdc=no
cannam@85 8191 fi
cannam@85 8192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@85 8193 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@85 8194 fi
cannam@85 8195
cannam@85 8196 fi
cannam@85 8197 fi
cannam@85 8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cannam@85 8199 $as_echo "$ac_cv_header_stdc" >&6; }
cannam@85 8200 if test $ac_cv_header_stdc = yes; then
cannam@85 8201
cannam@85 8202 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
cannam@85 8203
cannam@85 8204 fi
cannam@85 8205
cannam@85 8206 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
cannam@85 8207 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
cannam@85 8208 inttypes.h stdint.h unistd.h
cannam@85 8209 do :
cannam@85 8210 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cannam@85 8211 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
cannam@85 8212 "
cannam@85 8213 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cannam@85 8214 cat >>confdefs.h <<_ACEOF
cannam@85 8215 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
cannam@85 8216 _ACEOF
cannam@85 8217
cannam@85 8218 fi
cannam@85 8219
cannam@85 8220 done
cannam@85 8221
cannam@85 8222
cannam@85 8223 for ac_header in dlfcn.h
cannam@85 8224 do :
cannam@85 8225 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
cannam@85 8226 "
cannam@85 8227 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cannam@85 8228 cat >>confdefs.h <<_ACEOF
cannam@85 8229 #define HAVE_DLFCN_H 1
cannam@85 8230 _ACEOF
cannam@85 8231
cannam@85 8232 fi
cannam@85 8233
cannam@85 8234 done
cannam@85 8235
cannam@85 8236
cannam@85 8237
cannam@85 8238
cannam@85 8239 func_stripname_cnf ()
cannam@85 8240 {
cannam@85 8241 case ${2} in
cannam@85 8242 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
cannam@85 8243 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
cannam@85 8244 esac
cannam@85 8245 } # func_stripname_cnf
cannam@85 8246
cannam@85 8247
cannam@85 8248
cannam@85 8249
cannam@85 8250
cannam@85 8251 # Set options
cannam@85 8252
cannam@85 8253
cannam@85 8254
cannam@85 8255 enable_dlopen=no
cannam@85 8256
cannam@85 8257
cannam@85 8258 enable_win32_dll=no
cannam@85 8259
cannam@85 8260
cannam@85 8261 # Check whether --enable-shared was given.
cannam@85 8262 if test "${enable_shared+set}" = set; then :
cannam@85 8263 enableval=$enable_shared; p=${PACKAGE-default}
cannam@85 8264 case $enableval in
cannam@85 8265 yes) enable_shared=yes ;;
cannam@85 8266 no) enable_shared=no ;;
cannam@85 8267 *)
cannam@85 8268 enable_shared=no
cannam@85 8269 # Look at the argument we got. We use all the common list separators.
cannam@85 8270 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@85 8271 for pkg in $enableval; do
cannam@85 8272 IFS="$lt_save_ifs"
cannam@85 8273 if test "X$pkg" = "X$p"; then
cannam@85 8274 enable_shared=yes
cannam@85 8275 fi
cannam@85 8276 done
cannam@85 8277 IFS="$lt_save_ifs"
cannam@85 8278 ;;
cannam@85 8279 esac
cannam@85 8280 else
cannam@85 8281 enable_shared=yes
cannam@85 8282 fi
cannam@85 8283
cannam@85 8284
cannam@85 8285
cannam@85 8286
cannam@85 8287
cannam@85 8288
cannam@85 8289
cannam@85 8290
cannam@85 8291
cannam@85 8292 # Check whether --enable-static was given.
cannam@85 8293 if test "${enable_static+set}" = set; then :
cannam@85 8294 enableval=$enable_static; p=${PACKAGE-default}
cannam@85 8295 case $enableval in
cannam@85 8296 yes) enable_static=yes ;;
cannam@85 8297 no) enable_static=no ;;
cannam@85 8298 *)
cannam@85 8299 enable_static=no
cannam@85 8300 # Look at the argument we got. We use all the common list separators.
cannam@85 8301 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@85 8302 for pkg in $enableval; do
cannam@85 8303 IFS="$lt_save_ifs"
cannam@85 8304 if test "X$pkg" = "X$p"; then
cannam@85 8305 enable_static=yes
cannam@85 8306 fi
cannam@85 8307 done
cannam@85 8308 IFS="$lt_save_ifs"
cannam@85 8309 ;;
cannam@85 8310 esac
cannam@85 8311 else
cannam@85 8312 enable_static=yes
cannam@85 8313 fi
cannam@85 8314
cannam@85 8315
cannam@85 8316
cannam@85 8317
cannam@85 8318
cannam@85 8319
cannam@85 8320
cannam@85 8321
cannam@85 8322
cannam@85 8323
cannam@85 8324 # Check whether --with-pic was given.
cannam@85 8325 if test "${with_pic+set}" = set; then :
cannam@85 8326 withval=$with_pic; pic_mode="$withval"
cannam@85 8327 else
cannam@85 8328 pic_mode=default
cannam@85 8329 fi
cannam@85 8330
cannam@85 8331
cannam@85 8332 test -z "$pic_mode" && pic_mode=default
cannam@85 8333
cannam@85 8334
cannam@85 8335
cannam@85 8336
cannam@85 8337
cannam@85 8338
cannam@85 8339
cannam@85 8340 # Check whether --enable-fast-install was given.
cannam@85 8341 if test "${enable_fast_install+set}" = set; then :
cannam@85 8342 enableval=$enable_fast_install; p=${PACKAGE-default}
cannam@85 8343 case $enableval in
cannam@85 8344 yes) enable_fast_install=yes ;;
cannam@85 8345 no) enable_fast_install=no ;;
cannam@85 8346 *)
cannam@85 8347 enable_fast_install=no
cannam@85 8348 # Look at the argument we got. We use all the common list separators.
cannam@85 8349 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@85 8350 for pkg in $enableval; do
cannam@85 8351 IFS="$lt_save_ifs"
cannam@85 8352 if test "X$pkg" = "X$p"; then
cannam@85 8353 enable_fast_install=yes
cannam@85 8354 fi
cannam@85 8355 done
cannam@85 8356 IFS="$lt_save_ifs"
cannam@85 8357 ;;
cannam@85 8358 esac
cannam@85 8359 else
cannam@85 8360 enable_fast_install=yes
cannam@85 8361 fi
cannam@85 8362
cannam@85 8363
cannam@85 8364
cannam@85 8365
cannam@85 8366
cannam@85 8367
cannam@85 8368
cannam@85 8369
cannam@85 8370
cannam@85 8371
cannam@85 8372
cannam@85 8373 # This can be used to rebuild libtool when needed
cannam@85 8374 LIBTOOL_DEPS="$ltmain"
cannam@85 8375
cannam@85 8376 # Always use our own libtool.
cannam@85 8377 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
cannam@85 8378
cannam@85 8379
cannam@85 8380
cannam@85 8381
cannam@85 8382
cannam@85 8383
cannam@85 8384
cannam@85 8385
cannam@85 8386
cannam@85 8387
cannam@85 8388
cannam@85 8389
cannam@85 8390
cannam@85 8391
cannam@85 8392
cannam@85 8393
cannam@85 8394
cannam@85 8395
cannam@85 8396
cannam@85 8397
cannam@85 8398
cannam@85 8399
cannam@85 8400
cannam@85 8401
cannam@85 8402
cannam@85 8403
cannam@85 8404 test -z "$LN_S" && LN_S="ln -s"
cannam@85 8405
cannam@85 8406
cannam@85 8407
cannam@85 8408
cannam@85 8409
cannam@85 8410
cannam@85 8411
cannam@85 8412
cannam@85 8413
cannam@85 8414
cannam@85 8415
cannam@85 8416
cannam@85 8417
cannam@85 8418
cannam@85 8419 if test -n "${ZSH_VERSION+set}" ; then
cannam@85 8420 setopt NO_GLOB_SUBST
cannam@85 8421 fi
cannam@85 8422
cannam@85 8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cannam@85 8424 $as_echo_n "checking for objdir... " >&6; }
cannam@85 8425 if ${lt_cv_objdir+:} false; then :
cannam@85 8426 $as_echo_n "(cached) " >&6
cannam@85 8427 else
cannam@85 8428 rm -f .libs 2>/dev/null
cannam@85 8429 mkdir .libs 2>/dev/null
cannam@85 8430 if test -d .libs; then
cannam@85 8431 lt_cv_objdir=.libs
cannam@85 8432 else
cannam@85 8433 # MS-DOS does not allow filenames that begin with a dot.
cannam@85 8434 lt_cv_objdir=_libs
cannam@85 8435 fi
cannam@85 8436 rmdir .libs 2>/dev/null
cannam@85 8437 fi
cannam@85 8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cannam@85 8439 $as_echo "$lt_cv_objdir" >&6; }
cannam@85 8440 objdir=$lt_cv_objdir
cannam@85 8441
cannam@85 8442
cannam@85 8443
cannam@85 8444
cannam@85 8445
cannam@85 8446 cat >>confdefs.h <<_ACEOF
cannam@85 8447 #define LT_OBJDIR "$lt_cv_objdir/"
cannam@85 8448 _ACEOF
cannam@85 8449
cannam@85 8450
cannam@85 8451
cannam@85 8452
cannam@85 8453 case $host_os in
cannam@85 8454 aix3*)
cannam@85 8455 # AIX sometimes has problems with the GCC collect2 program. For some
cannam@85 8456 # reason, if we set the COLLECT_NAMES environment variable, the problems
cannam@85 8457 # vanish in a puff of smoke.
cannam@85 8458 if test "X${COLLECT_NAMES+set}" != Xset; then
cannam@85 8459 COLLECT_NAMES=
cannam@85 8460 export COLLECT_NAMES
cannam@85 8461 fi
cannam@85 8462 ;;
cannam@85 8463 esac
cannam@85 8464
cannam@85 8465 # Global variables:
cannam@85 8466 ofile=libtool
cannam@85 8467 can_build_shared=yes
cannam@85 8468
cannam@85 8469 # All known linkers require a `.a' archive for static linking (except MSVC,
cannam@85 8470 # which needs '.lib').
cannam@85 8471 libext=a
cannam@85 8472
cannam@85 8473 with_gnu_ld="$lt_cv_prog_gnu_ld"
cannam@85 8474
cannam@85 8475 old_CC="$CC"
cannam@85 8476 old_CFLAGS="$CFLAGS"
cannam@85 8477
cannam@85 8478 # Set sane defaults for various variables
cannam@85 8479 test -z "$CC" && CC=cc
cannam@85 8480 test -z "$LTCC" && LTCC=$CC
cannam@85 8481 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
cannam@85 8482 test -z "$LD" && LD=ld
cannam@85 8483 test -z "$ac_objext" && ac_objext=o
cannam@85 8484
cannam@85 8485 for cc_temp in $compiler""; do
cannam@85 8486 case $cc_temp in
cannam@85 8487 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
cannam@85 8488 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
cannam@85 8489 \-*) ;;
cannam@85 8490 *) break;;
cannam@85 8491 esac
cannam@85 8492 done
cannam@85 8493 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cannam@85 8494
cannam@85 8495
cannam@85 8496 # Only perform the check for file, if the check method requires it
cannam@85 8497 test -z "$MAGIC_CMD" && MAGIC_CMD=file
cannam@85 8498 case $deplibs_check_method in
cannam@85 8499 file_magic*)
cannam@85 8500 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cannam@85 8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cannam@85 8502 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cannam@85 8503 if ${lt_cv_path_MAGIC_CMD+:} false; then :
cannam@85 8504 $as_echo_n "(cached) " >&6
cannam@85 8505 else
cannam@85 8506 case $MAGIC_CMD in
cannam@85 8507 [\\/*] | ?:[\\/]*)
cannam@85 8508 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
cannam@85 8509 ;;
cannam@85 8510 *)
cannam@85 8511 lt_save_MAGIC_CMD="$MAGIC_CMD"
cannam@85 8512 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@85 8513 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
cannam@85 8514 for ac_dir in $ac_dummy; do
cannam@85 8515 IFS="$lt_save_ifs"
cannam@85 8516 test -z "$ac_dir" && ac_dir=.
cannam@85 8517 if test -f $ac_dir/${ac_tool_prefix}file; then
cannam@85 8518 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
cannam@85 8519 if test -n "$file_magic_test_file"; then
cannam@85 8520 case $deplibs_check_method in
cannam@85 8521 "file_magic "*)
cannam@85 8522 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
cannam@85 8523 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@85 8524 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
cannam@85 8525 $EGREP "$file_magic_regex" > /dev/null; then
cannam@85 8526 :
cannam@85 8527 else
cannam@85 8528 cat <<_LT_EOF 1>&2
cannam@85 8529
cannam@85 8530 *** Warning: the command libtool uses to detect shared libraries,
cannam@85 8531 *** $file_magic_cmd, produces output that libtool cannot recognize.
cannam@85 8532 *** The result is that libtool may fail to recognize shared libraries
cannam@85 8533 *** as such. This will affect the creation of libtool libraries that
cannam@85 8534 *** depend on shared libraries, but programs linked with such libtool
cannam@85 8535 *** libraries will work regardless of this problem. Nevertheless, you
cannam@85 8536 *** may want to report the problem to your system manager and/or to
cannam@85 8537 *** bug-libtool@gnu.org
cannam@85 8538
cannam@85 8539 _LT_EOF
cannam@85 8540 fi ;;
cannam@85 8541 esac
cannam@85 8542 fi
cannam@85 8543 break
cannam@85 8544 fi
cannam@85 8545 done
cannam@85 8546 IFS="$lt_save_ifs"
cannam@85 8547 MAGIC_CMD="$lt_save_MAGIC_CMD"
cannam@85 8548 ;;
cannam@85 8549 esac
cannam@85 8550 fi
cannam@85 8551
cannam@85 8552 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@85 8553 if test -n "$MAGIC_CMD"; then
cannam@85 8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cannam@85 8555 $as_echo "$MAGIC_CMD" >&6; }
cannam@85 8556 else
cannam@85 8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 8558 $as_echo "no" >&6; }
cannam@85 8559 fi
cannam@85 8560
cannam@85 8561
cannam@85 8562
cannam@85 8563
cannam@85 8564
cannam@85 8565 if test -z "$lt_cv_path_MAGIC_CMD"; then
cannam@85 8566 if test -n "$ac_tool_prefix"; then
cannam@85 8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cannam@85 8568 $as_echo_n "checking for file... " >&6; }
cannam@85 8569 if ${lt_cv_path_MAGIC_CMD+:} false; then :
cannam@85 8570 $as_echo_n "(cached) " >&6
cannam@85 8571 else
cannam@85 8572 case $MAGIC_CMD in
cannam@85 8573 [\\/*] | ?:[\\/]*)
cannam@85 8574 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
cannam@85 8575 ;;
cannam@85 8576 *)
cannam@85 8577 lt_save_MAGIC_CMD="$MAGIC_CMD"
cannam@85 8578 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@85 8579 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
cannam@85 8580 for ac_dir in $ac_dummy; do
cannam@85 8581 IFS="$lt_save_ifs"
cannam@85 8582 test -z "$ac_dir" && ac_dir=.
cannam@85 8583 if test -f $ac_dir/file; then
cannam@85 8584 lt_cv_path_MAGIC_CMD="$ac_dir/file"
cannam@85 8585 if test -n "$file_magic_test_file"; then
cannam@85 8586 case $deplibs_check_method in
cannam@85 8587 "file_magic "*)
cannam@85 8588 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
cannam@85 8589 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@85 8590 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
cannam@85 8591 $EGREP "$file_magic_regex" > /dev/null; then
cannam@85 8592 :
cannam@85 8593 else
cannam@85 8594 cat <<_LT_EOF 1>&2
cannam@85 8595
cannam@85 8596 *** Warning: the command libtool uses to detect shared libraries,
cannam@85 8597 *** $file_magic_cmd, produces output that libtool cannot recognize.
cannam@85 8598 *** The result is that libtool may fail to recognize shared libraries
cannam@85 8599 *** as such. This will affect the creation of libtool libraries that
cannam@85 8600 *** depend on shared libraries, but programs linked with such libtool
cannam@85 8601 *** libraries will work regardless of this problem. Nevertheless, you
cannam@85 8602 *** may want to report the problem to your system manager and/or to
cannam@85 8603 *** bug-libtool@gnu.org
cannam@85 8604
cannam@85 8605 _LT_EOF
cannam@85 8606 fi ;;
cannam@85 8607 esac
cannam@85 8608 fi
cannam@85 8609 break
cannam@85 8610 fi
cannam@85 8611 done
cannam@85 8612 IFS="$lt_save_ifs"
cannam@85 8613 MAGIC_CMD="$lt_save_MAGIC_CMD"
cannam@85 8614 ;;
cannam@85 8615 esac
cannam@85 8616 fi
cannam@85 8617
cannam@85 8618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@85 8619 if test -n "$MAGIC_CMD"; then
cannam@85 8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cannam@85 8621 $as_echo "$MAGIC_CMD" >&6; }
cannam@85 8622 else
cannam@85 8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 8624 $as_echo "no" >&6; }
cannam@85 8625 fi
cannam@85 8626
cannam@85 8627
cannam@85 8628 else
cannam@85 8629 MAGIC_CMD=:
cannam@85 8630 fi
cannam@85 8631 fi
cannam@85 8632
cannam@85 8633 fi
cannam@85 8634 ;;
cannam@85 8635 esac
cannam@85 8636
cannam@85 8637 # Use C for the default configuration in the libtool script
cannam@85 8638
cannam@85 8639 lt_save_CC="$CC"
cannam@85 8640 ac_ext=c
cannam@85 8641 ac_cpp='$CPP $CPPFLAGS'
cannam@85 8642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 8643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 8644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 8645
cannam@85 8646
cannam@85 8647 # Source file extension for C test sources.
cannam@85 8648 ac_ext=c
cannam@85 8649
cannam@85 8650 # Object file extension for compiled C test sources.
cannam@85 8651 objext=o
cannam@85 8652 objext=$objext
cannam@85 8653
cannam@85 8654 # Code to be used in simple compile tests
cannam@85 8655 lt_simple_compile_test_code="int some_variable = 0;"
cannam@85 8656
cannam@85 8657 # Code to be used in simple link tests
cannam@85 8658 lt_simple_link_test_code='int main(){return(0);}'
cannam@85 8659
cannam@85 8660
cannam@85 8661
cannam@85 8662
cannam@85 8663
cannam@85 8664
cannam@85 8665
cannam@85 8666 # If no C compiler was specified, use CC.
cannam@85 8667 LTCC=${LTCC-"$CC"}
cannam@85 8668
cannam@85 8669 # If no C compiler flags were specified, use CFLAGS.
cannam@85 8670 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cannam@85 8671
cannam@85 8672 # Allow CC to be a program name with arguments.
cannam@85 8673 compiler=$CC
cannam@85 8674
cannam@85 8675 # Save the default compiler, since it gets overwritten when the other
cannam@85 8676 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
cannam@85 8677 compiler_DEFAULT=$CC
cannam@85 8678
cannam@85 8679 # save warnings/boilerplate of simple test code
cannam@85 8680 ac_outfile=conftest.$ac_objext
cannam@85 8681 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
cannam@85 8682 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@85 8683 _lt_compiler_boilerplate=`cat conftest.err`
cannam@85 8684 $RM conftest*
cannam@85 8685
cannam@85 8686 ac_outfile=conftest.$ac_objext
cannam@85 8687 echo "$lt_simple_link_test_code" >conftest.$ac_ext
cannam@85 8688 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@85 8689 _lt_linker_boilerplate=`cat conftest.err`
cannam@85 8690 $RM -r conftest*
cannam@85 8691
cannam@85 8692
cannam@85 8693 ## CAVEAT EMPTOR:
cannam@85 8694 ## There is no encapsulation within the following macros, do not change
cannam@85 8695 ## the running order or otherwise move them around unless you know exactly
cannam@85 8696 ## what you are doing...
cannam@85 8697 if test -n "$compiler"; then
cannam@85 8698
cannam@85 8699 lt_prog_compiler_no_builtin_flag=
cannam@85 8700
cannam@85 8701 if test "$GCC" = yes; then
cannam@85 8702 case $cc_basename in
cannam@85 8703 nvcc*)
cannam@85 8704 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
cannam@85 8705 *)
cannam@85 8706 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
cannam@85 8707 esac
cannam@85 8708
cannam@85 8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cannam@85 8710 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cannam@85 8711 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cannam@85 8712 $as_echo_n "(cached) " >&6
cannam@85 8713 else
cannam@85 8714 lt_cv_prog_compiler_rtti_exceptions=no
cannam@85 8715 ac_outfile=conftest.$ac_objext
cannam@85 8716 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 8717 lt_compiler_flag="-fno-rtti -fno-exceptions"
cannam@85 8718 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 8719 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 8720 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 8721 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 8722 # The option is referenced via a variable to avoid confusing sed.
cannam@85 8723 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 8724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@85 8725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 8726 -e 's:$: $lt_compiler_flag:'`
cannam@85 8727 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@85 8728 (eval "$lt_compile" 2>conftest.err)
cannam@85 8729 ac_status=$?
cannam@85 8730 cat conftest.err >&5
cannam@85 8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8732 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@85 8733 # The compiler can only warn and ignore the option if not recognized
cannam@85 8734 # So say no if there are warnings other than the usual output.
cannam@85 8735 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cannam@85 8736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@85 8737 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
cannam@85 8738 lt_cv_prog_compiler_rtti_exceptions=yes
cannam@85 8739 fi
cannam@85 8740 fi
cannam@85 8741 $RM conftest*
cannam@85 8742
cannam@85 8743 fi
cannam@85 8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cannam@85 8745 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
cannam@85 8746
cannam@85 8747 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
cannam@85 8748 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
cannam@85 8749 else
cannam@85 8750 :
cannam@85 8751 fi
cannam@85 8752
cannam@85 8753 fi
cannam@85 8754
cannam@85 8755
cannam@85 8756
cannam@85 8757
cannam@85 8758
cannam@85 8759
cannam@85 8760 lt_prog_compiler_wl=
cannam@85 8761 lt_prog_compiler_pic=
cannam@85 8762 lt_prog_compiler_static=
cannam@85 8763
cannam@85 8764
cannam@85 8765 if test "$GCC" = yes; then
cannam@85 8766 lt_prog_compiler_wl='-Wl,'
cannam@85 8767 lt_prog_compiler_static='-static'
cannam@85 8768
cannam@85 8769 case $host_os in
cannam@85 8770 aix*)
cannam@85 8771 # All AIX code is PIC.
cannam@85 8772 if test "$host_cpu" = ia64; then
cannam@85 8773 # AIX 5 now supports IA64 processor
cannam@85 8774 lt_prog_compiler_static='-Bstatic'
cannam@85 8775 fi
cannam@85 8776 ;;
cannam@85 8777
cannam@85 8778 amigaos*)
cannam@85 8779 case $host_cpu in
cannam@85 8780 powerpc)
cannam@85 8781 # see comment about AmigaOS4 .so support
cannam@85 8782 lt_prog_compiler_pic='-fPIC'
cannam@85 8783 ;;
cannam@85 8784 m68k)
cannam@85 8785 # FIXME: we need at least 68020 code to build shared libraries, but
cannam@85 8786 # adding the `-m68020' flag to GCC prevents building anything better,
cannam@85 8787 # like `-m68040'.
cannam@85 8788 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
cannam@85 8789 ;;
cannam@85 8790 esac
cannam@85 8791 ;;
cannam@85 8792
cannam@85 8793 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
cannam@85 8794 # PIC is the default for these OSes.
cannam@85 8795 ;;
cannam@85 8796
cannam@85 8797 mingw* | cygwin* | pw32* | os2* | cegcc*)
cannam@85 8798 # This hack is so that the source file can tell whether it is being
cannam@85 8799 # built for inclusion in a dll (and should export symbols for example).
cannam@85 8800 # Although the cygwin gcc ignores -fPIC, still need this for old-style
cannam@85 8801 # (--disable-auto-import) libraries
cannam@85 8802 lt_prog_compiler_pic='-DDLL_EXPORT'
cannam@85 8803 ;;
cannam@85 8804
cannam@85 8805 darwin* | rhapsody*)
cannam@85 8806 # PIC is the default on this platform
cannam@85 8807 # Common symbols not allowed in MH_DYLIB files
cannam@85 8808 lt_prog_compiler_pic='-fno-common'
cannam@85 8809 ;;
cannam@85 8810
cannam@85 8811 haiku*)
cannam@85 8812 # PIC is the default for Haiku.
cannam@85 8813 # The "-static" flag exists, but is broken.
cannam@85 8814 lt_prog_compiler_static=
cannam@85 8815 ;;
cannam@85 8816
cannam@85 8817 hpux*)
cannam@85 8818 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
cannam@85 8819 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
cannam@85 8820 # sets the default TLS model and affects inlining.
cannam@85 8821 case $host_cpu in
cannam@85 8822 hppa*64*)
cannam@85 8823 # +Z the default
cannam@85 8824 ;;
cannam@85 8825 *)
cannam@85 8826 lt_prog_compiler_pic='-fPIC'
cannam@85 8827 ;;
cannam@85 8828 esac
cannam@85 8829 ;;
cannam@85 8830
cannam@85 8831 interix[3-9]*)
cannam@85 8832 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
cannam@85 8833 # Instead, we relocate shared libraries at runtime.
cannam@85 8834 ;;
cannam@85 8835
cannam@85 8836 msdosdjgpp*)
cannam@85 8837 # Just because we use GCC doesn't mean we suddenly get shared libraries
cannam@85 8838 # on systems that don't support them.
cannam@85 8839 lt_prog_compiler_can_build_shared=no
cannam@85 8840 enable_shared=no
cannam@85 8841 ;;
cannam@85 8842
cannam@85 8843 *nto* | *qnx*)
cannam@85 8844 # QNX uses GNU C++, but need to define -shared option too, otherwise
cannam@85 8845 # it will coredump.
cannam@85 8846 lt_prog_compiler_pic='-fPIC -shared'
cannam@85 8847 ;;
cannam@85 8848
cannam@85 8849 sysv4*MP*)
cannam@85 8850 if test -d /usr/nec; then
cannam@85 8851 lt_prog_compiler_pic=-Kconform_pic
cannam@85 8852 fi
cannam@85 8853 ;;
cannam@85 8854
cannam@85 8855 *)
cannam@85 8856 lt_prog_compiler_pic='-fPIC'
cannam@85 8857 ;;
cannam@85 8858 esac
cannam@85 8859
cannam@85 8860 case $cc_basename in
cannam@85 8861 nvcc*) # Cuda Compiler Driver 2.2
cannam@85 8862 lt_prog_compiler_wl='-Xlinker '
cannam@85 8863 lt_prog_compiler_pic='-Xcompiler -fPIC'
cannam@85 8864 ;;
cannam@85 8865 esac
cannam@85 8866 else
cannam@85 8867 # PORTME Check for flag to pass linker flags through the system compiler.
cannam@85 8868 case $host_os in
cannam@85 8869 aix*)
cannam@85 8870 lt_prog_compiler_wl='-Wl,'
cannam@85 8871 if test "$host_cpu" = ia64; then
cannam@85 8872 # AIX 5 now supports IA64 processor
cannam@85 8873 lt_prog_compiler_static='-Bstatic'
cannam@85 8874 else
cannam@85 8875 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
cannam@85 8876 fi
cannam@85 8877 ;;
cannam@85 8878
cannam@85 8879 mingw* | cygwin* | pw32* | os2* | cegcc*)
cannam@85 8880 # This hack is so that the source file can tell whether it is being
cannam@85 8881 # built for inclusion in a dll (and should export symbols for example).
cannam@85 8882 lt_prog_compiler_pic='-DDLL_EXPORT'
cannam@85 8883 ;;
cannam@85 8884
cannam@85 8885 hpux9* | hpux10* | hpux11*)
cannam@85 8886 lt_prog_compiler_wl='-Wl,'
cannam@85 8887 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cannam@85 8888 # not for PA HP-UX.
cannam@85 8889 case $host_cpu in
cannam@85 8890 hppa*64*|ia64*)
cannam@85 8891 # +Z the default
cannam@85 8892 ;;
cannam@85 8893 *)
cannam@85 8894 lt_prog_compiler_pic='+Z'
cannam@85 8895 ;;
cannam@85 8896 esac
cannam@85 8897 # Is there a better lt_prog_compiler_static that works with the bundled CC?
cannam@85 8898 lt_prog_compiler_static='${wl}-a ${wl}archive'
cannam@85 8899 ;;
cannam@85 8900
cannam@85 8901 irix5* | irix6* | nonstopux*)
cannam@85 8902 lt_prog_compiler_wl='-Wl,'
cannam@85 8903 # PIC (with -KPIC) is the default.
cannam@85 8904 lt_prog_compiler_static='-non_shared'
cannam@85 8905 ;;
cannam@85 8906
cannam@85 8907 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cannam@85 8908 case $cc_basename in
cannam@85 8909 # old Intel for x86_64 which still supported -KPIC.
cannam@85 8910 ecc*)
cannam@85 8911 lt_prog_compiler_wl='-Wl,'
cannam@85 8912 lt_prog_compiler_pic='-KPIC'
cannam@85 8913 lt_prog_compiler_static='-static'
cannam@85 8914 ;;
cannam@85 8915 # icc used to be incompatible with GCC.
cannam@85 8916 # ICC 10 doesn't accept -KPIC any more.
cannam@85 8917 icc* | ifort*)
cannam@85 8918 lt_prog_compiler_wl='-Wl,'
cannam@85 8919 lt_prog_compiler_pic='-fPIC'
cannam@85 8920 lt_prog_compiler_static='-static'
cannam@85 8921 ;;
cannam@85 8922 # Lahey Fortran 8.1.
cannam@85 8923 lf95*)
cannam@85 8924 lt_prog_compiler_wl='-Wl,'
cannam@85 8925 lt_prog_compiler_pic='--shared'
cannam@85 8926 lt_prog_compiler_static='--static'
cannam@85 8927 ;;
cannam@85 8928 nagfor*)
cannam@85 8929 # NAG Fortran compiler
cannam@85 8930 lt_prog_compiler_wl='-Wl,-Wl,,'
cannam@85 8931 lt_prog_compiler_pic='-PIC'
cannam@85 8932 lt_prog_compiler_static='-Bstatic'
cannam@85 8933 ;;
cannam@85 8934 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cannam@85 8935 # Portland Group compilers (*not* the Pentium gcc compiler,
cannam@85 8936 # which looks to be a dead project)
cannam@85 8937 lt_prog_compiler_wl='-Wl,'
cannam@85 8938 lt_prog_compiler_pic='-fpic'
cannam@85 8939 lt_prog_compiler_static='-Bstatic'
cannam@85 8940 ;;
cannam@85 8941 ccc*)
cannam@85 8942 lt_prog_compiler_wl='-Wl,'
cannam@85 8943 # All Alpha code is PIC.
cannam@85 8944 lt_prog_compiler_static='-non_shared'
cannam@85 8945 ;;
cannam@85 8946 xl* | bgxl* | bgf* | mpixl*)
cannam@85 8947 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cannam@85 8948 lt_prog_compiler_wl='-Wl,'
cannam@85 8949 lt_prog_compiler_pic='-qpic'
cannam@85 8950 lt_prog_compiler_static='-qstaticlink'
cannam@85 8951 ;;
cannam@85 8952 *)
cannam@85 8953 case `$CC -V 2>&1 | sed 5q` in
cannam@85 8954 *Sun\ F* | *Sun*Fortran*)
cannam@85 8955 # Sun Fortran 8.3 passes all unrecognized flags to the linker
cannam@85 8956 lt_prog_compiler_pic='-KPIC'
cannam@85 8957 lt_prog_compiler_static='-Bstatic'
cannam@85 8958 lt_prog_compiler_wl=''
cannam@85 8959 ;;
cannam@85 8960 *Sun\ C*)
cannam@85 8961 # Sun C 5.9
cannam@85 8962 lt_prog_compiler_pic='-KPIC'
cannam@85 8963 lt_prog_compiler_static='-Bstatic'
cannam@85 8964 lt_prog_compiler_wl='-Wl,'
cannam@85 8965 ;;
cannam@85 8966 esac
cannam@85 8967 ;;
cannam@85 8968 esac
cannam@85 8969 ;;
cannam@85 8970
cannam@85 8971 newsos6)
cannam@85 8972 lt_prog_compiler_pic='-KPIC'
cannam@85 8973 lt_prog_compiler_static='-Bstatic'
cannam@85 8974 ;;
cannam@85 8975
cannam@85 8976 *nto* | *qnx*)
cannam@85 8977 # QNX uses GNU C++, but need to define -shared option too, otherwise
cannam@85 8978 # it will coredump.
cannam@85 8979 lt_prog_compiler_pic='-fPIC -shared'
cannam@85 8980 ;;
cannam@85 8981
cannam@85 8982 osf3* | osf4* | osf5*)
cannam@85 8983 lt_prog_compiler_wl='-Wl,'
cannam@85 8984 # All OSF/1 code is PIC.
cannam@85 8985 lt_prog_compiler_static='-non_shared'
cannam@85 8986 ;;
cannam@85 8987
cannam@85 8988 rdos*)
cannam@85 8989 lt_prog_compiler_static='-non_shared'
cannam@85 8990 ;;
cannam@85 8991
cannam@85 8992 solaris*)
cannam@85 8993 lt_prog_compiler_pic='-KPIC'
cannam@85 8994 lt_prog_compiler_static='-Bstatic'
cannam@85 8995 case $cc_basename in
cannam@85 8996 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cannam@85 8997 lt_prog_compiler_wl='-Qoption ld ';;
cannam@85 8998 *)
cannam@85 8999 lt_prog_compiler_wl='-Wl,';;
cannam@85 9000 esac
cannam@85 9001 ;;
cannam@85 9002
cannam@85 9003 sunos4*)
cannam@85 9004 lt_prog_compiler_wl='-Qoption ld '
cannam@85 9005 lt_prog_compiler_pic='-PIC'
cannam@85 9006 lt_prog_compiler_static='-Bstatic'
cannam@85 9007 ;;
cannam@85 9008
cannam@85 9009 sysv4 | sysv4.2uw2* | sysv4.3*)
cannam@85 9010 lt_prog_compiler_wl='-Wl,'
cannam@85 9011 lt_prog_compiler_pic='-KPIC'
cannam@85 9012 lt_prog_compiler_static='-Bstatic'
cannam@85 9013 ;;
cannam@85 9014
cannam@85 9015 sysv4*MP*)
cannam@85 9016 if test -d /usr/nec ;then
cannam@85 9017 lt_prog_compiler_pic='-Kconform_pic'
cannam@85 9018 lt_prog_compiler_static='-Bstatic'
cannam@85 9019 fi
cannam@85 9020 ;;
cannam@85 9021
cannam@85 9022 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
cannam@85 9023 lt_prog_compiler_wl='-Wl,'
cannam@85 9024 lt_prog_compiler_pic='-KPIC'
cannam@85 9025 lt_prog_compiler_static='-Bstatic'
cannam@85 9026 ;;
cannam@85 9027
cannam@85 9028 unicos*)
cannam@85 9029 lt_prog_compiler_wl='-Wl,'
cannam@85 9030 lt_prog_compiler_can_build_shared=no
cannam@85 9031 ;;
cannam@85 9032
cannam@85 9033 uts4*)
cannam@85 9034 lt_prog_compiler_pic='-pic'
cannam@85 9035 lt_prog_compiler_static='-Bstatic'
cannam@85 9036 ;;
cannam@85 9037
cannam@85 9038 *)
cannam@85 9039 lt_prog_compiler_can_build_shared=no
cannam@85 9040 ;;
cannam@85 9041 esac
cannam@85 9042 fi
cannam@85 9043
cannam@85 9044 case $host_os in
cannam@85 9045 # For platforms which do not support PIC, -DPIC is meaningless:
cannam@85 9046 *djgpp*)
cannam@85 9047 lt_prog_compiler_pic=
cannam@85 9048 ;;
cannam@85 9049 *)
cannam@85 9050 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
cannam@85 9051 ;;
cannam@85 9052 esac
cannam@85 9053
cannam@85 9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cannam@85 9055 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
cannam@85 9056 if ${lt_cv_prog_compiler_pic+:} false; then :
cannam@85 9057 $as_echo_n "(cached) " >&6
cannam@85 9058 else
cannam@85 9059 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
cannam@85 9060 fi
cannam@85 9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
cannam@85 9062 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
cannam@85 9063 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cannam@85 9064
cannam@85 9065 #
cannam@85 9066 # Check to make sure the PIC flag actually works.
cannam@85 9067 #
cannam@85 9068 if test -n "$lt_prog_compiler_pic"; then
cannam@85 9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cannam@85 9070 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cannam@85 9071 if ${lt_cv_prog_compiler_pic_works+:} false; then :
cannam@85 9072 $as_echo_n "(cached) " >&6
cannam@85 9073 else
cannam@85 9074 lt_cv_prog_compiler_pic_works=no
cannam@85 9075 ac_outfile=conftest.$ac_objext
cannam@85 9076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 9077 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
cannam@85 9078 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 9079 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 9080 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 9081 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 9082 # The option is referenced via a variable to avoid confusing sed.
cannam@85 9083 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 9084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@85 9085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 9086 -e 's:$: $lt_compiler_flag:'`
cannam@85 9087 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@85 9088 (eval "$lt_compile" 2>conftest.err)
cannam@85 9089 ac_status=$?
cannam@85 9090 cat conftest.err >&5
cannam@85 9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 9092 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@85 9093 # The compiler can only warn and ignore the option if not recognized
cannam@85 9094 # So say no if there are warnings other than the usual output.
cannam@85 9095 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cannam@85 9096 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@85 9097 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
cannam@85 9098 lt_cv_prog_compiler_pic_works=yes
cannam@85 9099 fi
cannam@85 9100 fi
cannam@85 9101 $RM conftest*
cannam@85 9102
cannam@85 9103 fi
cannam@85 9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cannam@85 9105 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
cannam@85 9106
cannam@85 9107 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
cannam@85 9108 case $lt_prog_compiler_pic in
cannam@85 9109 "" | " "*) ;;
cannam@85 9110 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
cannam@85 9111 esac
cannam@85 9112 else
cannam@85 9113 lt_prog_compiler_pic=
cannam@85 9114 lt_prog_compiler_can_build_shared=no
cannam@85 9115 fi
cannam@85 9116
cannam@85 9117 fi
cannam@85 9118
cannam@85 9119
cannam@85 9120
cannam@85 9121
cannam@85 9122
cannam@85 9123
cannam@85 9124
cannam@85 9125
cannam@85 9126
cannam@85 9127
cannam@85 9128
cannam@85 9129 #
cannam@85 9130 # Check to make sure the static flag actually works.
cannam@85 9131 #
cannam@85 9132 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cannam@85 9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cannam@85 9134 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cannam@85 9135 if ${lt_cv_prog_compiler_static_works+:} false; then :
cannam@85 9136 $as_echo_n "(cached) " >&6
cannam@85 9137 else
cannam@85 9138 lt_cv_prog_compiler_static_works=no
cannam@85 9139 save_LDFLAGS="$LDFLAGS"
cannam@85 9140 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
cannam@85 9141 echo "$lt_simple_link_test_code" > conftest.$ac_ext
cannam@85 9142 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
cannam@85 9143 # The linker can only warn and ignore the option if not recognized
cannam@85 9144 # So say no if there are warnings
cannam@85 9145 if test -s conftest.err; then
cannam@85 9146 # Append any errors to the config.log.
cannam@85 9147 cat conftest.err 1>&5
cannam@85 9148 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cannam@85 9149 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@85 9150 if diff conftest.exp conftest.er2 >/dev/null; then
cannam@85 9151 lt_cv_prog_compiler_static_works=yes
cannam@85 9152 fi
cannam@85 9153 else
cannam@85 9154 lt_cv_prog_compiler_static_works=yes
cannam@85 9155 fi
cannam@85 9156 fi
cannam@85 9157 $RM -r conftest*
cannam@85 9158 LDFLAGS="$save_LDFLAGS"
cannam@85 9159
cannam@85 9160 fi
cannam@85 9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cannam@85 9162 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
cannam@85 9163
cannam@85 9164 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
cannam@85 9165 :
cannam@85 9166 else
cannam@85 9167 lt_prog_compiler_static=
cannam@85 9168 fi
cannam@85 9169
cannam@85 9170
cannam@85 9171
cannam@85 9172
cannam@85 9173
cannam@85 9174
cannam@85 9175
cannam@85 9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@85 9177 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cannam@85 9178 if ${lt_cv_prog_compiler_c_o+:} false; then :
cannam@85 9179 $as_echo_n "(cached) " >&6
cannam@85 9180 else
cannam@85 9181 lt_cv_prog_compiler_c_o=no
cannam@85 9182 $RM -r conftest 2>/dev/null
cannam@85 9183 mkdir conftest
cannam@85 9184 cd conftest
cannam@85 9185 mkdir out
cannam@85 9186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 9187
cannam@85 9188 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@85 9189 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 9190 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 9191 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 9192 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 9193 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 9194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@85 9195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 9196 -e 's:$: $lt_compiler_flag:'`
cannam@85 9197 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@85 9198 (eval "$lt_compile" 2>out/conftest.err)
cannam@85 9199 ac_status=$?
cannam@85 9200 cat out/conftest.err >&5
cannam@85 9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 9202 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@85 9203 then
cannam@85 9204 # The compiler can only warn and ignore the option if not recognized
cannam@85 9205 # So say no if there are warnings
cannam@85 9206 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cannam@85 9207 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cannam@85 9208 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cannam@85 9209 lt_cv_prog_compiler_c_o=yes
cannam@85 9210 fi
cannam@85 9211 fi
cannam@85 9212 chmod u+w . 2>&5
cannam@85 9213 $RM conftest*
cannam@85 9214 # SGI C++ compiler will create directory out/ii_files/ for
cannam@85 9215 # template instantiation
cannam@85 9216 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
cannam@85 9217 $RM out/* && rmdir out
cannam@85 9218 cd ..
cannam@85 9219 $RM -r conftest
cannam@85 9220 $RM conftest*
cannam@85 9221
cannam@85 9222 fi
cannam@85 9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cannam@85 9224 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
cannam@85 9225
cannam@85 9226
cannam@85 9227
cannam@85 9228
cannam@85 9229
cannam@85 9230
cannam@85 9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@85 9232 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cannam@85 9233 if ${lt_cv_prog_compiler_c_o+:} false; then :
cannam@85 9234 $as_echo_n "(cached) " >&6
cannam@85 9235 else
cannam@85 9236 lt_cv_prog_compiler_c_o=no
cannam@85 9237 $RM -r conftest 2>/dev/null
cannam@85 9238 mkdir conftest
cannam@85 9239 cd conftest
cannam@85 9240 mkdir out
cannam@85 9241 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 9242
cannam@85 9243 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@85 9244 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 9245 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 9246 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 9247 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 9248 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 9249 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@85 9250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 9251 -e 's:$: $lt_compiler_flag:'`
cannam@85 9252 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@85 9253 (eval "$lt_compile" 2>out/conftest.err)
cannam@85 9254 ac_status=$?
cannam@85 9255 cat out/conftest.err >&5
cannam@85 9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 9257 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@85 9258 then
cannam@85 9259 # The compiler can only warn and ignore the option if not recognized
cannam@85 9260 # So say no if there are warnings
cannam@85 9261 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cannam@85 9262 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cannam@85 9263 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cannam@85 9264 lt_cv_prog_compiler_c_o=yes
cannam@85 9265 fi
cannam@85 9266 fi
cannam@85 9267 chmod u+w . 2>&5
cannam@85 9268 $RM conftest*
cannam@85 9269 # SGI C++ compiler will create directory out/ii_files/ for
cannam@85 9270 # template instantiation
cannam@85 9271 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
cannam@85 9272 $RM out/* && rmdir out
cannam@85 9273 cd ..
cannam@85 9274 $RM -r conftest
cannam@85 9275 $RM conftest*
cannam@85 9276
cannam@85 9277 fi
cannam@85 9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cannam@85 9279 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
cannam@85 9280
cannam@85 9281
cannam@85 9282
cannam@85 9283
cannam@85 9284 hard_links="nottested"
cannam@85 9285 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
cannam@85 9286 # do not overwrite the value of need_locks provided by the user
cannam@85 9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cannam@85 9288 $as_echo_n "checking if we can lock with hard links... " >&6; }
cannam@85 9289 hard_links=yes
cannam@85 9290 $RM conftest*
cannam@85 9291 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@85 9292 touch conftest.a
cannam@85 9293 ln conftest.a conftest.b 2>&5 || hard_links=no
cannam@85 9294 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@85 9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cannam@85 9296 $as_echo "$hard_links" >&6; }
cannam@85 9297 if test "$hard_links" = no; then
cannam@85 9298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cannam@85 9299 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
cannam@85 9300 need_locks=warn
cannam@85 9301 fi
cannam@85 9302 else
cannam@85 9303 need_locks=no
cannam@85 9304 fi
cannam@85 9305
cannam@85 9306
cannam@85 9307
cannam@85 9308
cannam@85 9309
cannam@85 9310
cannam@85 9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@85 9312 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
cannam@85 9313
cannam@85 9314 runpath_var=
cannam@85 9315 allow_undefined_flag=
cannam@85 9316 always_export_symbols=no
cannam@85 9317 archive_cmds=
cannam@85 9318 archive_expsym_cmds=
cannam@85 9319 compiler_needs_object=no
cannam@85 9320 enable_shared_with_static_runtimes=no
cannam@85 9321 export_dynamic_flag_spec=
cannam@85 9322 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@85 9323 hardcode_automatic=no
cannam@85 9324 hardcode_direct=no
cannam@85 9325 hardcode_direct_absolute=no
cannam@85 9326 hardcode_libdir_flag_spec=
cannam@85 9327 hardcode_libdir_flag_spec_ld=
cannam@85 9328 hardcode_libdir_separator=
cannam@85 9329 hardcode_minus_L=no
cannam@85 9330 hardcode_shlibpath_var=unsupported
cannam@85 9331 inherit_rpath=no
cannam@85 9332 link_all_deplibs=unknown
cannam@85 9333 module_cmds=
cannam@85 9334 module_expsym_cmds=
cannam@85 9335 old_archive_from_new_cmds=
cannam@85 9336 old_archive_from_expsyms_cmds=
cannam@85 9337 thread_safe_flag_spec=
cannam@85 9338 whole_archive_flag_spec=
cannam@85 9339 # include_expsyms should be a list of space-separated symbols to be *always*
cannam@85 9340 # included in the symbol list
cannam@85 9341 include_expsyms=
cannam@85 9342 # exclude_expsyms can be an extended regexp of symbols to exclude
cannam@85 9343 # it will be wrapped by ` (' and `)$', so one must not match beginning or
cannam@85 9344 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
cannam@85 9345 # as well as any symbol that contains `d'.
cannam@85 9346 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cannam@85 9347 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
cannam@85 9348 # platforms (ab)use it in PIC code, but their linkers get confused if
cannam@85 9349 # the symbol is explicitly referenced. Since portable code cannot
cannam@85 9350 # rely on this symbol name, it's probably fine to never include it in
cannam@85 9351 # preloaded symbol tables.
cannam@85 9352 # Exclude shared library initialization/finalization symbols.
cannam@85 9353 extract_expsyms_cmds=
cannam@85 9354
cannam@85 9355 case $host_os in
cannam@85 9356 cygwin* | mingw* | pw32* | cegcc*)
cannam@85 9357 # FIXME: the MSVC++ port hasn't been tested in a loooong time
cannam@85 9358 # When not using gcc, we currently assume that we are using
cannam@85 9359 # Microsoft Visual C++.
cannam@85 9360 if test "$GCC" != yes; then
cannam@85 9361 with_gnu_ld=no
cannam@85 9362 fi
cannam@85 9363 ;;
cannam@85 9364 interix*)
cannam@85 9365 # we just hope/assume this is gcc and not c89 (= MSVC++)
cannam@85 9366 with_gnu_ld=yes
cannam@85 9367 ;;
cannam@85 9368 openbsd*)
cannam@85 9369 with_gnu_ld=no
cannam@85 9370 ;;
cannam@85 9371 linux* | k*bsd*-gnu | gnu*)
cannam@85 9372 link_all_deplibs=no
cannam@85 9373 ;;
cannam@85 9374 esac
cannam@85 9375
cannam@85 9376 ld_shlibs=yes
cannam@85 9377
cannam@85 9378 # On some targets, GNU ld is compatible enough with the native linker
cannam@85 9379 # that we're better off using the native interface for both.
cannam@85 9380 lt_use_gnu_ld_interface=no
cannam@85 9381 if test "$with_gnu_ld" = yes; then
cannam@85 9382 case $host_os in
cannam@85 9383 aix*)
cannam@85 9384 # The AIX port of GNU ld has always aspired to compatibility
cannam@85 9385 # with the native linker. However, as the warning in the GNU ld
cannam@85 9386 # block says, versions before 2.19.5* couldn't really create working
cannam@85 9387 # shared libraries, regardless of the interface used.
cannam@85 9388 case `$LD -v 2>&1` in
cannam@85 9389 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
cannam@85 9390 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
cannam@85 9391 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
cannam@85 9392 *)
cannam@85 9393 lt_use_gnu_ld_interface=yes
cannam@85 9394 ;;
cannam@85 9395 esac
cannam@85 9396 ;;
cannam@85 9397 *)
cannam@85 9398 lt_use_gnu_ld_interface=yes
cannam@85 9399 ;;
cannam@85 9400 esac
cannam@85 9401 fi
cannam@85 9402
cannam@85 9403 if test "$lt_use_gnu_ld_interface" = yes; then
cannam@85 9404 # If archive_cmds runs LD, not CC, wlarc should be empty
cannam@85 9405 wlarc='${wl}'
cannam@85 9406
cannam@85 9407 # Set some defaults for GNU ld with shared library support. These
cannam@85 9408 # are reset later if shared libraries are not supported. Putting them
cannam@85 9409 # here allows them to be overridden if necessary.
cannam@85 9410 runpath_var=LD_RUN_PATH
cannam@85 9411 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@85 9412 export_dynamic_flag_spec='${wl}--export-dynamic'
cannam@85 9413 # ancient GNU ld didn't support --whole-archive et. al.
cannam@85 9414 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
cannam@85 9415 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
cannam@85 9416 else
cannam@85 9417 whole_archive_flag_spec=
cannam@85 9418 fi
cannam@85 9419 supports_anon_versioning=no
cannam@85 9420 case `$LD -v 2>&1` in
cannam@85 9421 *GNU\ gold*) supports_anon_versioning=yes ;;
cannam@85 9422 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
cannam@85 9423 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
cannam@85 9424 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
cannam@85 9425 *\ 2.11.*) ;; # other 2.11 versions
cannam@85 9426 *) supports_anon_versioning=yes ;;
cannam@85 9427 esac
cannam@85 9428
cannam@85 9429 # See if GNU ld supports shared libraries.
cannam@85 9430 case $host_os in
cannam@85 9431 aix[3-9]*)
cannam@85 9432 # On AIX/PPC, the GNU linker is very broken
cannam@85 9433 if test "$host_cpu" != ia64; then
cannam@85 9434 ld_shlibs=no
cannam@85 9435 cat <<_LT_EOF 1>&2
cannam@85 9436
cannam@85 9437 *** Warning: the GNU linker, at least up to release 2.19, is reported
cannam@85 9438 *** to be unable to reliably create shared libraries on AIX.
cannam@85 9439 *** Therefore, libtool is disabling shared libraries support. If you
cannam@85 9440 *** really care for shared libraries, you may want to install binutils
cannam@85 9441 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
cannam@85 9442 *** You will then need to restart the configuration process.
cannam@85 9443
cannam@85 9444 _LT_EOF
cannam@85 9445 fi
cannam@85 9446 ;;
cannam@85 9447
cannam@85 9448 amigaos*)
cannam@85 9449 case $host_cpu in
cannam@85 9450 powerpc)
cannam@85 9451 # see comment about AmigaOS4 .so support
cannam@85 9452 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 9453 archive_expsym_cmds=''
cannam@85 9454 ;;
cannam@85 9455 m68k)
cannam@85 9456 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@85 9457 hardcode_libdir_flag_spec='-L$libdir'
cannam@85 9458 hardcode_minus_L=yes
cannam@85 9459 ;;
cannam@85 9460 esac
cannam@85 9461 ;;
cannam@85 9462
cannam@85 9463 beos*)
cannam@85 9464 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@85 9465 allow_undefined_flag=unsupported
cannam@85 9466 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
cannam@85 9467 # support --undefined. This deserves some investigation. FIXME
cannam@85 9468 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 9469 else
cannam@85 9470 ld_shlibs=no
cannam@85 9471 fi
cannam@85 9472 ;;
cannam@85 9473
cannam@85 9474 cygwin* | mingw* | pw32* | cegcc*)
cannam@85 9475 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
cannam@85 9476 # as there is no search path for DLLs.
cannam@85 9477 hardcode_libdir_flag_spec='-L$libdir'
cannam@85 9478 export_dynamic_flag_spec='${wl}--export-all-symbols'
cannam@85 9479 allow_undefined_flag=unsupported
cannam@85 9480 always_export_symbols=no
cannam@85 9481 enable_shared_with_static_runtimes=yes
cannam@85 9482 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@85 9483 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
cannam@85 9484
cannam@85 9485 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
cannam@85 9486 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
cannam@85 9487 # If the export-symbols file already is a .def file (1st line
cannam@85 9488 # is EXPORTS), use it as is; otherwise, prepend...
cannam@85 9489 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@85 9490 cp $export_symbols $output_objdir/$soname.def;
cannam@85 9491 else
cannam@85 9492 echo EXPORTS > $output_objdir/$soname.def;
cannam@85 9493 cat $export_symbols >> $output_objdir/$soname.def;
cannam@85 9494 fi~
cannam@85 9495 $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@85 9496 else
cannam@85 9497 ld_shlibs=no
cannam@85 9498 fi
cannam@85 9499 ;;
cannam@85 9500
cannam@85 9501 haiku*)
cannam@85 9502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 9503 link_all_deplibs=yes
cannam@85 9504 ;;
cannam@85 9505
cannam@85 9506 interix[3-9]*)
cannam@85 9507 hardcode_direct=no
cannam@85 9508 hardcode_shlibpath_var=no
cannam@85 9509 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
cannam@85 9510 export_dynamic_flag_spec='${wl}-E'
cannam@85 9511 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
cannam@85 9512 # Instead, shared libraries are loaded at an image base (0x10000000 by
cannam@85 9513 # default) and relocated if they conflict, which is a slow very memory
cannam@85 9514 # consuming and fragmenting process. To avoid this, we pick a random,
cannam@85 9515 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
cannam@85 9516 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
cannam@85 9517 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@85 9518 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@85 9519 ;;
cannam@85 9520
cannam@85 9521 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cannam@85 9522 tmp_diet=no
cannam@85 9523 if test "$host_os" = linux-dietlibc; then
cannam@85 9524 case $cc_basename in
cannam@85 9525 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
cannam@85 9526 esac
cannam@85 9527 fi
cannam@85 9528 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
cannam@85 9529 && test "$tmp_diet" = no
cannam@85 9530 then
cannam@85 9531 tmp_addflag=' $pic_flag'
cannam@85 9532 tmp_sharedflag='-shared'
cannam@85 9533 case $cc_basename,$host_cpu in
cannam@85 9534 pgcc*) # Portland Group C compiler
cannam@85 9535 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@85 9536 tmp_addflag=' $pic_flag'
cannam@85 9537 ;;
cannam@85 9538 pgf77* | pgf90* | pgf95* | pgfortran*)
cannam@85 9539 # Portland Group f77 and f90 compilers
cannam@85 9540 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@85 9541 tmp_addflag=' $pic_flag -Mnomain' ;;
cannam@85 9542 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
cannam@85 9543 tmp_addflag=' -i_dynamic' ;;
cannam@85 9544 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
cannam@85 9545 tmp_addflag=' -i_dynamic -nofor_main' ;;
cannam@85 9546 ifc* | ifort*) # Intel Fortran compiler
cannam@85 9547 tmp_addflag=' -nofor_main' ;;
cannam@85 9548 lf95*) # Lahey Fortran 8.1
cannam@85 9549 whole_archive_flag_spec=
cannam@85 9550 tmp_sharedflag='--shared' ;;
cannam@85 9551 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cannam@85 9552 tmp_sharedflag='-qmkshrobj'
cannam@85 9553 tmp_addflag= ;;
cannam@85 9554 nvcc*) # Cuda Compiler Driver 2.2
cannam@85 9555 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@85 9556 compiler_needs_object=yes
cannam@85 9557 ;;
cannam@85 9558 esac
cannam@85 9559 case `$CC -V 2>&1 | sed 5q` in
cannam@85 9560 *Sun\ C*) # Sun C 5.9
cannam@85 9561 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@85 9562 compiler_needs_object=yes
cannam@85 9563 tmp_sharedflag='-G' ;;
cannam@85 9564 *Sun\ F*) # Sun Fortran 8.3
cannam@85 9565 tmp_sharedflag='-G' ;;
cannam@85 9566 esac
cannam@85 9567 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 9568
cannam@85 9569 if test "x$supports_anon_versioning" = xyes; then
cannam@85 9570 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
cannam@85 9571 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@85 9572 echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@85 9573 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
cannam@85 9574 fi
cannam@85 9575
cannam@85 9576 case $cc_basename in
cannam@85 9577 xlf* | bgf* | bgxlf* | mpixlf*)
cannam@85 9578 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
cannam@85 9579 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cannam@85 9580 hardcode_libdir_flag_spec=
cannam@85 9581 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cannam@85 9582 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cannam@85 9583 if test "x$supports_anon_versioning" = xyes; then
cannam@85 9584 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
cannam@85 9585 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@85 9586 echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@85 9587 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cannam@85 9588 fi
cannam@85 9589 ;;
cannam@85 9590 esac
cannam@85 9591 else
cannam@85 9592 ld_shlibs=no
cannam@85 9593 fi
cannam@85 9594 ;;
cannam@85 9595
cannam@85 9596 netbsd* | netbsdelf*-gnu)
cannam@85 9597 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@85 9598 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
cannam@85 9599 wlarc=
cannam@85 9600 else
cannam@85 9601 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 9602 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@85 9603 fi
cannam@85 9604 ;;
cannam@85 9605
cannam@85 9606 solaris*)
cannam@85 9607 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
cannam@85 9608 ld_shlibs=no
cannam@85 9609 cat <<_LT_EOF 1>&2
cannam@85 9610
cannam@85 9611 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
cannam@85 9612 *** create shared libraries on Solaris systems. Therefore, libtool
cannam@85 9613 *** is disabling shared libraries support. We urge you to upgrade GNU
cannam@85 9614 *** binutils to release 2.9.1 or newer. Another option is to modify
cannam@85 9615 *** your PATH or compiler configuration so that the native linker is
cannam@85 9616 *** used, and then restart.
cannam@85 9617
cannam@85 9618 _LT_EOF
cannam@85 9619 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@85 9620 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 9621 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@85 9622 else
cannam@85 9623 ld_shlibs=no
cannam@85 9624 fi
cannam@85 9625 ;;
cannam@85 9626
cannam@85 9627 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
cannam@85 9628 case `$LD -v 2>&1` in
cannam@85 9629 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
cannam@85 9630 ld_shlibs=no
cannam@85 9631 cat <<_LT_EOF 1>&2
cannam@85 9632
cannam@85 9633 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
cannam@85 9634 *** reliably create shared libraries on SCO systems. Therefore, libtool
cannam@85 9635 *** is disabling shared libraries support. We urge you to upgrade GNU
cannam@85 9636 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
cannam@85 9637 *** your PATH or compiler configuration so that the native linker is
cannam@85 9638 *** used, and then restart.
cannam@85 9639
cannam@85 9640 _LT_EOF
cannam@85 9641 ;;
cannam@85 9642 *)
cannam@85 9643 # For security reasons, it is highly recommended that you always
cannam@85 9644 # use absolute paths for naming shared libraries, and exclude the
cannam@85 9645 # DT_RUNPATH tag from executables and libraries. But doing so
cannam@85 9646 # requires that you compile everything twice, which is a pain.
cannam@85 9647 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@85 9648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@85 9649 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 9650 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@85 9651 else
cannam@85 9652 ld_shlibs=no
cannam@85 9653 fi
cannam@85 9654 ;;
cannam@85 9655 esac
cannam@85 9656 ;;
cannam@85 9657
cannam@85 9658 sunos4*)
cannam@85 9659 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@85 9660 wlarc=
cannam@85 9661 hardcode_direct=yes
cannam@85 9662 hardcode_shlibpath_var=no
cannam@85 9663 ;;
cannam@85 9664
cannam@85 9665 *)
cannam@85 9666 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@85 9667 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 9668 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@85 9669 else
cannam@85 9670 ld_shlibs=no
cannam@85 9671 fi
cannam@85 9672 ;;
cannam@85 9673 esac
cannam@85 9674
cannam@85 9675 if test "$ld_shlibs" = no; then
cannam@85 9676 runpath_var=
cannam@85 9677 hardcode_libdir_flag_spec=
cannam@85 9678 export_dynamic_flag_spec=
cannam@85 9679 whole_archive_flag_spec=
cannam@85 9680 fi
cannam@85 9681 else
cannam@85 9682 # PORTME fill in a description of your system's linker (not GNU ld)
cannam@85 9683 case $host_os in
cannam@85 9684 aix3*)
cannam@85 9685 allow_undefined_flag=unsupported
cannam@85 9686 always_export_symbols=yes
cannam@85 9687 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@85 9688 # Note: this linker hardcodes the directories in LIBPATH if there
cannam@85 9689 # are no directories specified by -L.
cannam@85 9690 hardcode_minus_L=yes
cannam@85 9691 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
cannam@85 9692 # Neither direct hardcoding nor static linking is supported with a
cannam@85 9693 # broken collect2.
cannam@85 9694 hardcode_direct=unsupported
cannam@85 9695 fi
cannam@85 9696 ;;
cannam@85 9697
cannam@85 9698 aix[4-9]*)
cannam@85 9699 if test "$host_cpu" = ia64; then
cannam@85 9700 # On IA64, the linker does run time linking by default, so we don't
cannam@85 9701 # have to do anything special.
cannam@85 9702 aix_use_runtimelinking=no
cannam@85 9703 exp_sym_flag='-Bexport'
cannam@85 9704 no_entry_flag=""
cannam@85 9705 else
cannam@85 9706 # If we're using GNU nm, then we don't want the "-C" option.
cannam@85 9707 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cannam@85 9708 # Also, AIX nm treats weak defined symbols like other global
cannam@85 9709 # defined symbols, whereas GNU nm marks them as "W".
cannam@85 9710 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cannam@85 9711 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@85 9712 else
cannam@85 9713 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@85 9714 fi
cannam@85 9715 aix_use_runtimelinking=no
cannam@85 9716
cannam@85 9717 # Test if we are trying to use run time linking or normal
cannam@85 9718 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cannam@85 9719 # need to do runtime linking.
cannam@85 9720 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
cannam@85 9721 for ld_flag in $LDFLAGS; do
cannam@85 9722 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
cannam@85 9723 aix_use_runtimelinking=yes
cannam@85 9724 break
cannam@85 9725 fi
cannam@85 9726 done
cannam@85 9727 ;;
cannam@85 9728 esac
cannam@85 9729
cannam@85 9730 exp_sym_flag='-bexport'
cannam@85 9731 no_entry_flag='-bnoentry'
cannam@85 9732 fi
cannam@85 9733
cannam@85 9734 # When large executables or shared objects are built, AIX ld can
cannam@85 9735 # have problems creating the table of contents. If linking a library
cannam@85 9736 # or program results in "error TOC overflow" add -mminimal-toc to
cannam@85 9737 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
cannam@85 9738 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
cannam@85 9739
cannam@85 9740 archive_cmds=''
cannam@85 9741 hardcode_direct=yes
cannam@85 9742 hardcode_direct_absolute=yes
cannam@85 9743 hardcode_libdir_separator=':'
cannam@85 9744 link_all_deplibs=yes
cannam@85 9745 file_list_spec='${wl}-f,'
cannam@85 9746
cannam@85 9747 if test "$GCC" = yes; then
cannam@85 9748 case $host_os in aix4.[012]|aix4.[012].*)
cannam@85 9749 # We only want to do this on AIX 4.2 and lower, the check
cannam@85 9750 # below for broken collect2 doesn't work under 4.3+
cannam@85 9751 collect2name=`${CC} -print-prog-name=collect2`
cannam@85 9752 if test -f "$collect2name" &&
cannam@85 9753 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
cannam@85 9754 then
cannam@85 9755 # We have reworked collect2
cannam@85 9756 :
cannam@85 9757 else
cannam@85 9758 # We have old collect2
cannam@85 9759 hardcode_direct=unsupported
cannam@85 9760 # It fails to find uninstalled libraries when the uninstalled
cannam@85 9761 # path is not listed in the libpath. Setting hardcode_minus_L
cannam@85 9762 # to unsupported forces relinking
cannam@85 9763 hardcode_minus_L=yes
cannam@85 9764 hardcode_libdir_flag_spec='-L$libdir'
cannam@85 9765 hardcode_libdir_separator=
cannam@85 9766 fi
cannam@85 9767 ;;
cannam@85 9768 esac
cannam@85 9769 shared_flag='-shared'
cannam@85 9770 if test "$aix_use_runtimelinking" = yes; then
cannam@85 9771 shared_flag="$shared_flag "'${wl}-G'
cannam@85 9772 fi
cannam@85 9773 link_all_deplibs=no
cannam@85 9774 else
cannam@85 9775 # not using gcc
cannam@85 9776 if test "$host_cpu" = ia64; then
cannam@85 9777 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
cannam@85 9778 # chokes on -Wl,-G. The following line is correct:
cannam@85 9779 shared_flag='-G'
cannam@85 9780 else
cannam@85 9781 if test "$aix_use_runtimelinking" = yes; then
cannam@85 9782 shared_flag='${wl}-G'
cannam@85 9783 else
cannam@85 9784 shared_flag='${wl}-bM:SRE'
cannam@85 9785 fi
cannam@85 9786 fi
cannam@85 9787 fi
cannam@85 9788
cannam@85 9789 export_dynamic_flag_spec='${wl}-bexpall'
cannam@85 9790 # It seems that -bexpall does not export symbols beginning with
cannam@85 9791 # underscore (_), so it is better to generate a list of symbols to export.
cannam@85 9792 always_export_symbols=yes
cannam@85 9793 if test "$aix_use_runtimelinking" = yes; then
cannam@85 9794 # Warning - without using the other runtime loading flags (-brtl),
cannam@85 9795 # -berok will link without error, but may produce a broken library.
cannam@85 9796 allow_undefined_flag='-berok'
cannam@85 9797 # Determine the default libpath from the value encoded in an
cannam@85 9798 # empty executable.
cannam@85 9799 if test "${lt_cv_aix_libpath+set}" = set; then
cannam@85 9800 aix_libpath=$lt_cv_aix_libpath
cannam@85 9801 else
cannam@85 9802 if ${lt_cv_aix_libpath_+:} false; then :
cannam@85 9803 $as_echo_n "(cached) " >&6
cannam@85 9804 else
cannam@85 9805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 9806 /* end confdefs.h. */
cannam@85 9807
cannam@85 9808 int
cannam@85 9809 main ()
cannam@85 9810 {
cannam@85 9811
cannam@85 9812 ;
cannam@85 9813 return 0;
cannam@85 9814 }
cannam@85 9815 _ACEOF
cannam@85 9816 if ac_fn_c_try_link "$LINENO"; then :
cannam@85 9817
cannam@85 9818 lt_aix_libpath_sed='
cannam@85 9819 /Import File Strings/,/^$/ {
cannam@85 9820 /^0/ {
cannam@85 9821 s/^0 *\([^ ]*\) *$/\1/
cannam@85 9822 p
cannam@85 9823 }
cannam@85 9824 }'
cannam@85 9825 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@85 9826 # Check for a 64-bit object if we didn't find anything.
cannam@85 9827 if test -z "$lt_cv_aix_libpath_"; then
cannam@85 9828 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@85 9829 fi
cannam@85 9830 fi
cannam@85 9831 rm -f core conftest.err conftest.$ac_objext \
cannam@85 9832 conftest$ac_exeext conftest.$ac_ext
cannam@85 9833 if test -z "$lt_cv_aix_libpath_"; then
cannam@85 9834 lt_cv_aix_libpath_="/usr/lib:/lib"
cannam@85 9835 fi
cannam@85 9836
cannam@85 9837 fi
cannam@85 9838
cannam@85 9839 aix_libpath=$lt_cv_aix_libpath_
cannam@85 9840 fi
cannam@85 9841
cannam@85 9842 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@85 9843 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@85 9844 else
cannam@85 9845 if test "$host_cpu" = ia64; then
cannam@85 9846 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
cannam@85 9847 allow_undefined_flag="-z nodefs"
cannam@85 9848 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@85 9849 else
cannam@85 9850 # Determine the default libpath from the value encoded in an
cannam@85 9851 # empty executable.
cannam@85 9852 if test "${lt_cv_aix_libpath+set}" = set; then
cannam@85 9853 aix_libpath=$lt_cv_aix_libpath
cannam@85 9854 else
cannam@85 9855 if ${lt_cv_aix_libpath_+:} false; then :
cannam@85 9856 $as_echo_n "(cached) " >&6
cannam@85 9857 else
cannam@85 9858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 9859 /* end confdefs.h. */
cannam@85 9860
cannam@85 9861 int
cannam@85 9862 main ()
cannam@85 9863 {
cannam@85 9864
cannam@85 9865 ;
cannam@85 9866 return 0;
cannam@85 9867 }
cannam@85 9868 _ACEOF
cannam@85 9869 if ac_fn_c_try_link "$LINENO"; then :
cannam@85 9870
cannam@85 9871 lt_aix_libpath_sed='
cannam@85 9872 /Import File Strings/,/^$/ {
cannam@85 9873 /^0/ {
cannam@85 9874 s/^0 *\([^ ]*\) *$/\1/
cannam@85 9875 p
cannam@85 9876 }
cannam@85 9877 }'
cannam@85 9878 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@85 9879 # Check for a 64-bit object if we didn't find anything.
cannam@85 9880 if test -z "$lt_cv_aix_libpath_"; then
cannam@85 9881 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@85 9882 fi
cannam@85 9883 fi
cannam@85 9884 rm -f core conftest.err conftest.$ac_objext \
cannam@85 9885 conftest$ac_exeext conftest.$ac_ext
cannam@85 9886 if test -z "$lt_cv_aix_libpath_"; then
cannam@85 9887 lt_cv_aix_libpath_="/usr/lib:/lib"
cannam@85 9888 fi
cannam@85 9889
cannam@85 9890 fi
cannam@85 9891
cannam@85 9892 aix_libpath=$lt_cv_aix_libpath_
cannam@85 9893 fi
cannam@85 9894
cannam@85 9895 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@85 9896 # Warning - without using the other run time loading flags,
cannam@85 9897 # -berok will link without error, but may produce a broken library.
cannam@85 9898 no_undefined_flag=' ${wl}-bernotok'
cannam@85 9899 allow_undefined_flag=' ${wl}-berok'
cannam@85 9900 if test "$with_gnu_ld" = yes; then
cannam@85 9901 # We only use this code for GNU lds that support --whole-archive.
cannam@85 9902 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
cannam@85 9903 else
cannam@85 9904 # Exported symbols can be pulled into shared objects from archives
cannam@85 9905 whole_archive_flag_spec='$convenience'
cannam@85 9906 fi
cannam@85 9907 archive_cmds_need_lc=yes
cannam@85 9908 # This is similar to how AIX traditionally builds its shared libraries.
cannam@85 9909 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@85 9910 fi
cannam@85 9911 fi
cannam@85 9912 ;;
cannam@85 9913
cannam@85 9914 amigaos*)
cannam@85 9915 case $host_cpu in
cannam@85 9916 powerpc)
cannam@85 9917 # see comment about AmigaOS4 .so support
cannam@85 9918 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 9919 archive_expsym_cmds=''
cannam@85 9920 ;;
cannam@85 9921 m68k)
cannam@85 9922 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@85 9923 hardcode_libdir_flag_spec='-L$libdir'
cannam@85 9924 hardcode_minus_L=yes
cannam@85 9925 ;;
cannam@85 9926 esac
cannam@85 9927 ;;
cannam@85 9928
cannam@85 9929 bsdi[45]*)
cannam@85 9930 export_dynamic_flag_spec=-rdynamic
cannam@85 9931 ;;
cannam@85 9932
cannam@85 9933 cygwin* | mingw* | pw32* | cegcc*)
cannam@85 9934 # When not using gcc, we currently assume that we are using
cannam@85 9935 # Microsoft Visual C++.
cannam@85 9936 # hardcode_libdir_flag_spec is actually meaningless, as there is
cannam@85 9937 # no search path for DLLs.
cannam@85 9938 case $cc_basename in
cannam@85 9939 cl*)
cannam@85 9940 # Native MSVC
cannam@85 9941 hardcode_libdir_flag_spec=' '
cannam@85 9942 allow_undefined_flag=unsupported
cannam@85 9943 always_export_symbols=yes
cannam@85 9944 file_list_spec='@'
cannam@85 9945 # Tell ltmain to make .lib files, not .a files.
cannam@85 9946 libext=lib
cannam@85 9947 # Tell ltmain to make .dll files, not .so files.
cannam@85 9948 shrext_cmds=".dll"
cannam@85 9949 # FIXME: Setting linknames here is a bad hack.
cannam@85 9950 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
cannam@85 9951 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@85 9952 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
cannam@85 9953 else
cannam@85 9954 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
cannam@85 9955 fi~
cannam@85 9956 $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@85 9957 linknames='
cannam@85 9958 # The linker will not automatically build a static lib if we build a DLL.
cannam@85 9959 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
cannam@85 9960 enable_shared_with_static_runtimes=yes
cannam@85 9961 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
cannam@85 9962 # Don't use ranlib
cannam@85 9963 old_postinstall_cmds='chmod 644 $oldlib'
cannam@85 9964 postlink_cmds='lt_outputfile="@OUTPUT@"~
cannam@85 9965 lt_tool_outputfile="@TOOL_OUTPUT@"~
cannam@85 9966 case $lt_outputfile in
cannam@85 9967 *.exe|*.EXE) ;;
cannam@85 9968 *)
cannam@85 9969 lt_outputfile="$lt_outputfile.exe"
cannam@85 9970 lt_tool_outputfile="$lt_tool_outputfile.exe"
cannam@85 9971 ;;
cannam@85 9972 esac~
cannam@85 9973 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
cannam@85 9974 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
cannam@85 9975 $RM "$lt_outputfile.manifest";
cannam@85 9976 fi'
cannam@85 9977 ;;
cannam@85 9978 *)
cannam@85 9979 # Assume MSVC wrapper
cannam@85 9980 hardcode_libdir_flag_spec=' '
cannam@85 9981 allow_undefined_flag=unsupported
cannam@85 9982 # Tell ltmain to make .lib files, not .a files.
cannam@85 9983 libext=lib
cannam@85 9984 # Tell ltmain to make .dll files, not .so files.
cannam@85 9985 shrext_cmds=".dll"
cannam@85 9986 # FIXME: Setting linknames here is a bad hack.
cannam@85 9987 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
cannam@85 9988 # The linker will automatically build a .lib file if we build a DLL.
cannam@85 9989 old_archive_from_new_cmds='true'
cannam@85 9990 # FIXME: Should let the user specify the lib program.
cannam@85 9991 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
cannam@85 9992 enable_shared_with_static_runtimes=yes
cannam@85 9993 ;;
cannam@85 9994 esac
cannam@85 9995 ;;
cannam@85 9996
cannam@85 9997 darwin* | rhapsody*)
cannam@85 9998
cannam@85 9999
cannam@85 10000 archive_cmds_need_lc=no
cannam@85 10001 hardcode_direct=no
cannam@85 10002 hardcode_automatic=yes
cannam@85 10003 hardcode_shlibpath_var=unsupported
cannam@85 10004 if test "$lt_cv_ld_force_load" = "yes"; then
cannam@85 10005 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@85 10006 else
cannam@85 10007 whole_archive_flag_spec=''
cannam@85 10008 fi
cannam@85 10009 link_all_deplibs=yes
cannam@85 10010 allow_undefined_flag="$_lt_dar_allow_undefined"
cannam@85 10011 case $cc_basename in
cannam@85 10012 ifort*) _lt_dar_can_shared=yes ;;
cannam@85 10013 *) _lt_dar_can_shared=$GCC ;;
cannam@85 10014 esac
cannam@85 10015 if test "$_lt_dar_can_shared" = "yes"; then
cannam@85 10016 output_verbose_link_cmd=func_echo_all
cannam@85 10017 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@85 10018 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
cannam@85 10019 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@85 10020 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@85 10021
cannam@85 10022 else
cannam@85 10023 ld_shlibs=no
cannam@85 10024 fi
cannam@85 10025
cannam@85 10026 ;;
cannam@85 10027
cannam@85 10028 dgux*)
cannam@85 10029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 10030 hardcode_libdir_flag_spec='-L$libdir'
cannam@85 10031 hardcode_shlibpath_var=no
cannam@85 10032 ;;
cannam@85 10033
cannam@85 10034 freebsd1*)
cannam@85 10035 ld_shlibs=no
cannam@85 10036 ;;
cannam@85 10037
cannam@85 10038 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
cannam@85 10039 # support. Future versions do this automatically, but an explicit c++rt0.o
cannam@85 10040 # does not break anything, and helps significantly (at the cost of a little
cannam@85 10041 # extra space).
cannam@85 10042 freebsd2.2*)
cannam@85 10043 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
cannam@85 10044 hardcode_libdir_flag_spec='-R$libdir'
cannam@85 10045 hardcode_direct=yes
cannam@85 10046 hardcode_shlibpath_var=no
cannam@85 10047 ;;
cannam@85 10048
cannam@85 10049 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cannam@85 10050 freebsd2*)
cannam@85 10051 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@85 10052 hardcode_direct=yes
cannam@85 10053 hardcode_minus_L=yes
cannam@85 10054 hardcode_shlibpath_var=no
cannam@85 10055 ;;
cannam@85 10056
cannam@85 10057 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
cannam@85 10058 freebsd* | dragonfly*)
cannam@85 10059 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 10060 hardcode_libdir_flag_spec='-R$libdir'
cannam@85 10061 hardcode_direct=yes
cannam@85 10062 hardcode_shlibpath_var=no
cannam@85 10063 ;;
cannam@85 10064
cannam@85 10065 hpux9*)
cannam@85 10066 if test "$GCC" = yes; then
cannam@85 10067 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@85 10068 else
cannam@85 10069 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@85 10070 fi
cannam@85 10071 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cannam@85 10072 hardcode_libdir_separator=:
cannam@85 10073 hardcode_direct=yes
cannam@85 10074
cannam@85 10075 # hardcode_minus_L: Not really in the search PATH,
cannam@85 10076 # but as the default location of the library.
cannam@85 10077 hardcode_minus_L=yes
cannam@85 10078 export_dynamic_flag_spec='${wl}-E'
cannam@85 10079 ;;
cannam@85 10080
cannam@85 10081 hpux10*)
cannam@85 10082 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cannam@85 10083 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 10084 else
cannam@85 10085 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
cannam@85 10086 fi
cannam@85 10087 if test "$with_gnu_ld" = no; then
cannam@85 10088 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cannam@85 10089 hardcode_libdir_flag_spec_ld='+b $libdir'
cannam@85 10090 hardcode_libdir_separator=:
cannam@85 10091 hardcode_direct=yes
cannam@85 10092 hardcode_direct_absolute=yes
cannam@85 10093 export_dynamic_flag_spec='${wl}-E'
cannam@85 10094 # hardcode_minus_L: Not really in the search PATH,
cannam@85 10095 # but as the default location of the library.
cannam@85 10096 hardcode_minus_L=yes
cannam@85 10097 fi
cannam@85 10098 ;;
cannam@85 10099
cannam@85 10100 hpux11*)
cannam@85 10101 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cannam@85 10102 case $host_cpu in
cannam@85 10103 hppa*64*)
cannam@85 10104 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 10105 ;;
cannam@85 10106 ia64*)
cannam@85 10107 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 10108 ;;
cannam@85 10109 *)
cannam@85 10110 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 10111 ;;
cannam@85 10112 esac
cannam@85 10113 else
cannam@85 10114 case $host_cpu in
cannam@85 10115 hppa*64*)
cannam@85 10116 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 10117 ;;
cannam@85 10118 ia64*)
cannam@85 10119 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 10120 ;;
cannam@85 10121 *)
cannam@85 10122
cannam@85 10123 # Older versions of the 11.00 compiler do not understand -b yet
cannam@85 10124 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
cannam@85 10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
cannam@85 10126 $as_echo_n "checking if $CC understands -b... " >&6; }
cannam@85 10127 if ${lt_cv_prog_compiler__b+:} false; then :
cannam@85 10128 $as_echo_n "(cached) " >&6
cannam@85 10129 else
cannam@85 10130 lt_cv_prog_compiler__b=no
cannam@85 10131 save_LDFLAGS="$LDFLAGS"
cannam@85 10132 LDFLAGS="$LDFLAGS -b"
cannam@85 10133 echo "$lt_simple_link_test_code" > conftest.$ac_ext
cannam@85 10134 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
cannam@85 10135 # The linker can only warn and ignore the option if not recognized
cannam@85 10136 # So say no if there are warnings
cannam@85 10137 if test -s conftest.err; then
cannam@85 10138 # Append any errors to the config.log.
cannam@85 10139 cat conftest.err 1>&5
cannam@85 10140 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cannam@85 10141 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@85 10142 if diff conftest.exp conftest.er2 >/dev/null; then
cannam@85 10143 lt_cv_prog_compiler__b=yes
cannam@85 10144 fi
cannam@85 10145 else
cannam@85 10146 lt_cv_prog_compiler__b=yes
cannam@85 10147 fi
cannam@85 10148 fi
cannam@85 10149 $RM -r conftest*
cannam@85 10150 LDFLAGS="$save_LDFLAGS"
cannam@85 10151
cannam@85 10152 fi
cannam@85 10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
cannam@85 10154 $as_echo "$lt_cv_prog_compiler__b" >&6; }
cannam@85 10155
cannam@85 10156 if test x"$lt_cv_prog_compiler__b" = xyes; then
cannam@85 10157 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 10158 else
cannam@85 10159 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
cannam@85 10160 fi
cannam@85 10161
cannam@85 10162 ;;
cannam@85 10163 esac
cannam@85 10164 fi
cannam@85 10165 if test "$with_gnu_ld" = no; then
cannam@85 10166 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cannam@85 10167 hardcode_libdir_separator=:
cannam@85 10168
cannam@85 10169 case $host_cpu in
cannam@85 10170 hppa*64*|ia64*)
cannam@85 10171 hardcode_direct=no
cannam@85 10172 hardcode_shlibpath_var=no
cannam@85 10173 ;;
cannam@85 10174 *)
cannam@85 10175 hardcode_direct=yes
cannam@85 10176 hardcode_direct_absolute=yes
cannam@85 10177 export_dynamic_flag_spec='${wl}-E'
cannam@85 10178
cannam@85 10179 # hardcode_minus_L: Not really in the search PATH,
cannam@85 10180 # but as the default location of the library.
cannam@85 10181 hardcode_minus_L=yes
cannam@85 10182 ;;
cannam@85 10183 esac
cannam@85 10184 fi
cannam@85 10185 ;;
cannam@85 10186
cannam@85 10187 irix5* | irix6* | nonstopux*)
cannam@85 10188 if test "$GCC" = yes; then
cannam@85 10189 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@85 10190 # Try to use the -exported_symbol ld option, if it does not
cannam@85 10191 # work, assume that -exports_file does not work either and
cannam@85 10192 # implicitly export all symbols.
cannam@85 10193 # This should be the same for all languages, so no per-tag cache variable.
cannam@85 10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
cannam@85 10195 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
cannam@85 10196 if ${lt_cv_irix_exported_symbol+:} false; then :
cannam@85 10197 $as_echo_n "(cached) " >&6
cannam@85 10198 else
cannam@85 10199 save_LDFLAGS="$LDFLAGS"
cannam@85 10200 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cannam@85 10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 10202 /* end confdefs.h. */
cannam@85 10203 int foo (void) { return 0; }
cannam@85 10204 _ACEOF
cannam@85 10205 if ac_fn_c_try_link "$LINENO"; then :
cannam@85 10206 lt_cv_irix_exported_symbol=yes
cannam@85 10207 else
cannam@85 10208 lt_cv_irix_exported_symbol=no
cannam@85 10209 fi
cannam@85 10210 rm -f core conftest.err conftest.$ac_objext \
cannam@85 10211 conftest$ac_exeext conftest.$ac_ext
cannam@85 10212 LDFLAGS="$save_LDFLAGS"
cannam@85 10213 fi
cannam@85 10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
cannam@85 10215 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
cannam@85 10216 if test "$lt_cv_irix_exported_symbol" = yes; then
cannam@85 10217 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@85 10218 fi
cannam@85 10219 else
cannam@85 10220 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@85 10221 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@85 10222 fi
cannam@85 10223 archive_cmds_need_lc='no'
cannam@85 10224 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@85 10225 hardcode_libdir_separator=:
cannam@85 10226 inherit_rpath=yes
cannam@85 10227 link_all_deplibs=yes
cannam@85 10228 ;;
cannam@85 10229
cannam@85 10230 netbsd* | netbsdelf*-gnu)
cannam@85 10231 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@85 10232 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
cannam@85 10233 else
cannam@85 10234 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
cannam@85 10235 fi
cannam@85 10236 hardcode_libdir_flag_spec='-R$libdir'
cannam@85 10237 hardcode_direct=yes
cannam@85 10238 hardcode_shlibpath_var=no
cannam@85 10239 ;;
cannam@85 10240
cannam@85 10241 newsos6)
cannam@85 10242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 10243 hardcode_direct=yes
cannam@85 10244 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@85 10245 hardcode_libdir_separator=:
cannam@85 10246 hardcode_shlibpath_var=no
cannam@85 10247 ;;
cannam@85 10248
cannam@85 10249 *nto* | *qnx*)
cannam@85 10250 ;;
cannam@85 10251
cannam@85 10252 openbsd*)
cannam@85 10253 if test -f /usr/libexec/ld.so; then
cannam@85 10254 hardcode_direct=yes
cannam@85 10255 hardcode_shlibpath_var=no
cannam@85 10256 hardcode_direct_absolute=yes
cannam@85 10257 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@85 10258 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 10259 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
cannam@85 10260 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
cannam@85 10261 export_dynamic_flag_spec='${wl}-E'
cannam@85 10262 else
cannam@85 10263 case $host_os in
cannam@85 10264 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
cannam@85 10265 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@85 10266 hardcode_libdir_flag_spec='-R$libdir'
cannam@85 10267 ;;
cannam@85 10268 *)
cannam@85 10269 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 10270 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
cannam@85 10271 ;;
cannam@85 10272 esac
cannam@85 10273 fi
cannam@85 10274 else
cannam@85 10275 ld_shlibs=no
cannam@85 10276 fi
cannam@85 10277 ;;
cannam@85 10278
cannam@85 10279 os2*)
cannam@85 10280 hardcode_libdir_flag_spec='-L$libdir'
cannam@85 10281 hardcode_minus_L=yes
cannam@85 10282 allow_undefined_flag=unsupported
cannam@85 10283 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@85 10284 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
cannam@85 10285 ;;
cannam@85 10286
cannam@85 10287 osf3*)
cannam@85 10288 if test "$GCC" = yes; then
cannam@85 10289 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cannam@85 10290 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@85 10291 else
cannam@85 10292 allow_undefined_flag=' -expect_unresolved \*'
cannam@85 10293 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@85 10294 fi
cannam@85 10295 archive_cmds_need_lc='no'
cannam@85 10296 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@85 10297 hardcode_libdir_separator=:
cannam@85 10298 ;;
cannam@85 10299
cannam@85 10300 osf4* | osf5*) # as osf3* with the addition of -msym flag
cannam@85 10301 if test "$GCC" = yes; then
cannam@85 10302 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cannam@85 10303 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@85 10304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@85 10305 else
cannam@85 10306 allow_undefined_flag=' -expect_unresolved \*'
cannam@85 10307 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@85 10308 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@85 10309 $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@85 10310
cannam@85 10311 # Both c and cxx compiler support -rpath directly
cannam@85 10312 hardcode_libdir_flag_spec='-rpath $libdir'
cannam@85 10313 fi
cannam@85 10314 archive_cmds_need_lc='no'
cannam@85 10315 hardcode_libdir_separator=:
cannam@85 10316 ;;
cannam@85 10317
cannam@85 10318 solaris*)
cannam@85 10319 no_undefined_flag=' -z defs'
cannam@85 10320 if test "$GCC" = yes; then
cannam@85 10321 wlarc='${wl}'
cannam@85 10322 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 10323 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@85 10324 $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@85 10325 else
cannam@85 10326 case `$CC -V 2>&1` in
cannam@85 10327 *"Compilers 5.0"*)
cannam@85 10328 wlarc=''
cannam@85 10329 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 10330 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@85 10331 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
cannam@85 10332 ;;
cannam@85 10333 *)
cannam@85 10334 wlarc='${wl}'
cannam@85 10335 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 10336 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@85 10337 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
cannam@85 10338 ;;
cannam@85 10339 esac
cannam@85 10340 fi
cannam@85 10341 hardcode_libdir_flag_spec='-R$libdir'
cannam@85 10342 hardcode_shlibpath_var=no
cannam@85 10343 case $host_os in
cannam@85 10344 solaris2.[0-5] | solaris2.[0-5].*) ;;
cannam@85 10345 *)
cannam@85 10346 # The compiler driver will combine and reorder linker options,
cannam@85 10347 # but understands `-z linker_flag'. GCC discards it without `$wl',
cannam@85 10348 # but is careful enough not to reorder.
cannam@85 10349 # Supported since Solaris 2.6 (maybe 2.5.1?)
cannam@85 10350 if test "$GCC" = yes; then
cannam@85 10351 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
cannam@85 10352 else
cannam@85 10353 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
cannam@85 10354 fi
cannam@85 10355 ;;
cannam@85 10356 esac
cannam@85 10357 link_all_deplibs=yes
cannam@85 10358 ;;
cannam@85 10359
cannam@85 10360 sunos4*)
cannam@85 10361 if test "x$host_vendor" = xsequent; then
cannam@85 10362 # Use $CC to link under sequent, because it throws in some extra .o
cannam@85 10363 # files that make .init and .fini sections work.
cannam@85 10364 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 10365 else
cannam@85 10366 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
cannam@85 10367 fi
cannam@85 10368 hardcode_libdir_flag_spec='-L$libdir'
cannam@85 10369 hardcode_direct=yes
cannam@85 10370 hardcode_minus_L=yes
cannam@85 10371 hardcode_shlibpath_var=no
cannam@85 10372 ;;
cannam@85 10373
cannam@85 10374 sysv4)
cannam@85 10375 case $host_vendor in
cannam@85 10376 sni)
cannam@85 10377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 10378 hardcode_direct=yes # is this really true???
cannam@85 10379 ;;
cannam@85 10380 siemens)
cannam@85 10381 ## LD is ld it makes a PLAMLIB
cannam@85 10382 ## CC just makes a GrossModule.
cannam@85 10383 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
cannam@85 10384 reload_cmds='$CC -r -o $output$reload_objs'
cannam@85 10385 hardcode_direct=no
cannam@85 10386 ;;
cannam@85 10387 motorola)
cannam@85 10388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 10389 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
cannam@85 10390 ;;
cannam@85 10391 esac
cannam@85 10392 runpath_var='LD_RUN_PATH'
cannam@85 10393 hardcode_shlibpath_var=no
cannam@85 10394 ;;
cannam@85 10395
cannam@85 10396 sysv4.3*)
cannam@85 10397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 10398 hardcode_shlibpath_var=no
cannam@85 10399 export_dynamic_flag_spec='-Bexport'
cannam@85 10400 ;;
cannam@85 10401
cannam@85 10402 sysv4*MP*)
cannam@85 10403 if test -d /usr/nec; then
cannam@85 10404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 10405 hardcode_shlibpath_var=no
cannam@85 10406 runpath_var=LD_RUN_PATH
cannam@85 10407 hardcode_runpath_var=yes
cannam@85 10408 ld_shlibs=yes
cannam@85 10409 fi
cannam@85 10410 ;;
cannam@85 10411
cannam@85 10412 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
cannam@85 10413 no_undefined_flag='${wl}-z,text'
cannam@85 10414 archive_cmds_need_lc=no
cannam@85 10415 hardcode_shlibpath_var=no
cannam@85 10416 runpath_var='LD_RUN_PATH'
cannam@85 10417
cannam@85 10418 if test "$GCC" = yes; then
cannam@85 10419 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 10420 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 10421 else
cannam@85 10422 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 10423 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 10424 fi
cannam@85 10425 ;;
cannam@85 10426
cannam@85 10427 sysv5* | sco3.2v5* | sco5v6*)
cannam@85 10428 # Note: We can NOT use -z defs as we might desire, because we do not
cannam@85 10429 # link with -lc, and that would cause any symbols used from libc to
cannam@85 10430 # always be unresolved, which means just about no library would
cannam@85 10431 # ever link correctly. If we're not using GNU ld we use -z text
cannam@85 10432 # though, which does catch some bad symbols but isn't as heavy-handed
cannam@85 10433 # as -z defs.
cannam@85 10434 no_undefined_flag='${wl}-z,text'
cannam@85 10435 allow_undefined_flag='${wl}-z,nodefs'
cannam@85 10436 archive_cmds_need_lc=no
cannam@85 10437 hardcode_shlibpath_var=no
cannam@85 10438 hardcode_libdir_flag_spec='${wl}-R,$libdir'
cannam@85 10439 hardcode_libdir_separator=':'
cannam@85 10440 link_all_deplibs=yes
cannam@85 10441 export_dynamic_flag_spec='${wl}-Bexport'
cannam@85 10442 runpath_var='LD_RUN_PATH'
cannam@85 10443
cannam@85 10444 if test "$GCC" = yes; then
cannam@85 10445 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 10446 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 10447 else
cannam@85 10448 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 10449 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 10450 fi
cannam@85 10451 ;;
cannam@85 10452
cannam@85 10453 uts4*)
cannam@85 10454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 10455 hardcode_libdir_flag_spec='-L$libdir'
cannam@85 10456 hardcode_shlibpath_var=no
cannam@85 10457 ;;
cannam@85 10458
cannam@85 10459 *)
cannam@85 10460 ld_shlibs=no
cannam@85 10461 ;;
cannam@85 10462 esac
cannam@85 10463
cannam@85 10464 if test x$host_vendor = xsni; then
cannam@85 10465 case $host in
cannam@85 10466 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cannam@85 10467 export_dynamic_flag_spec='${wl}-Blargedynsym'
cannam@85 10468 ;;
cannam@85 10469 esac
cannam@85 10470 fi
cannam@85 10471 fi
cannam@85 10472
cannam@85 10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cannam@85 10474 $as_echo "$ld_shlibs" >&6; }
cannam@85 10475 test "$ld_shlibs" = no && can_build_shared=no
cannam@85 10476
cannam@85 10477 with_gnu_ld=$with_gnu_ld
cannam@85 10478
cannam@85 10479
cannam@85 10480
cannam@85 10481
cannam@85 10482
cannam@85 10483
cannam@85 10484
cannam@85 10485
cannam@85 10486
cannam@85 10487
cannam@85 10488
cannam@85 10489
cannam@85 10490
cannam@85 10491
cannam@85 10492
cannam@85 10493 #
cannam@85 10494 # Do we need to explicitly link libc?
cannam@85 10495 #
cannam@85 10496 case "x$archive_cmds_need_lc" in
cannam@85 10497 x|xyes)
cannam@85 10498 # Assume -lc should be added
cannam@85 10499 archive_cmds_need_lc=yes
cannam@85 10500
cannam@85 10501 if test "$enable_shared" = yes && test "$GCC" = yes; then
cannam@85 10502 case $archive_cmds in
cannam@85 10503 *'~'*)
cannam@85 10504 # FIXME: we may have to deal with multi-command sequences.
cannam@85 10505 ;;
cannam@85 10506 '$CC '*)
cannam@85 10507 # Test whether the compiler implicitly links with -lc since on some
cannam@85 10508 # systems, -lgcc has to come before -lc. If gcc already passes -lc
cannam@85 10509 # to ld, don't add -lc before -lgcc.
cannam@85 10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cannam@85 10511 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cannam@85 10512 if ${lt_cv_archive_cmds_need_lc+:} false; then :
cannam@85 10513 $as_echo_n "(cached) " >&6
cannam@85 10514 else
cannam@85 10515 $RM conftest*
cannam@85 10516 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 10517
cannam@85 10518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@85 10519 (eval $ac_compile) 2>&5
cannam@85 10520 ac_status=$?
cannam@85 10521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 10522 test $ac_status = 0; } 2>conftest.err; then
cannam@85 10523 soname=conftest
cannam@85 10524 lib=conftest
cannam@85 10525 libobjs=conftest.$ac_objext
cannam@85 10526 deplibs=
cannam@85 10527 wl=$lt_prog_compiler_wl
cannam@85 10528 pic_flag=$lt_prog_compiler_pic
cannam@85 10529 compiler_flags=-v
cannam@85 10530 linker_flags=-v
cannam@85 10531 verstring=
cannam@85 10532 output_objdir=.
cannam@85 10533 libname=conftest
cannam@85 10534 lt_save_allow_undefined_flag=$allow_undefined_flag
cannam@85 10535 allow_undefined_flag=
cannam@85 10536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cannam@85 10537 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
cannam@85 10538 ac_status=$?
cannam@85 10539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 10540 test $ac_status = 0; }
cannam@85 10541 then
cannam@85 10542 lt_cv_archive_cmds_need_lc=no
cannam@85 10543 else
cannam@85 10544 lt_cv_archive_cmds_need_lc=yes
cannam@85 10545 fi
cannam@85 10546 allow_undefined_flag=$lt_save_allow_undefined_flag
cannam@85 10547 else
cannam@85 10548 cat conftest.err 1>&5
cannam@85 10549 fi
cannam@85 10550 $RM conftest*
cannam@85 10551
cannam@85 10552 fi
cannam@85 10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
cannam@85 10554 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
cannam@85 10555 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cannam@85 10556 ;;
cannam@85 10557 esac
cannam@85 10558 fi
cannam@85 10559 ;;
cannam@85 10560 esac
cannam@85 10561
cannam@85 10562
cannam@85 10563
cannam@85 10564
cannam@85 10565
cannam@85 10566
cannam@85 10567
cannam@85 10568
cannam@85 10569
cannam@85 10570
cannam@85 10571
cannam@85 10572
cannam@85 10573
cannam@85 10574
cannam@85 10575
cannam@85 10576
cannam@85 10577
cannam@85 10578
cannam@85 10579
cannam@85 10580
cannam@85 10581
cannam@85 10582
cannam@85 10583
cannam@85 10584
cannam@85 10585
cannam@85 10586
cannam@85 10587
cannam@85 10588
cannam@85 10589
cannam@85 10590
cannam@85 10591
cannam@85 10592
cannam@85 10593
cannam@85 10594
cannam@85 10595
cannam@85 10596
cannam@85 10597
cannam@85 10598
cannam@85 10599
cannam@85 10600
cannam@85 10601
cannam@85 10602
cannam@85 10603
cannam@85 10604
cannam@85 10605
cannam@85 10606
cannam@85 10607
cannam@85 10608
cannam@85 10609
cannam@85 10610
cannam@85 10611
cannam@85 10612
cannam@85 10613
cannam@85 10614
cannam@85 10615
cannam@85 10616
cannam@85 10617
cannam@85 10618
cannam@85 10619
cannam@85 10620
cannam@85 10621
cannam@85 10622
cannam@85 10623
cannam@85 10624
cannam@85 10625
cannam@85 10626
cannam@85 10627
cannam@85 10628
cannam@85 10629
cannam@85 10630
cannam@85 10631
cannam@85 10632
cannam@85 10633
cannam@85 10634
cannam@85 10635
cannam@85 10636
cannam@85 10637
cannam@85 10638
cannam@85 10639
cannam@85 10640
cannam@85 10641
cannam@85 10642
cannam@85 10643
cannam@85 10644
cannam@85 10645
cannam@85 10646
cannam@85 10647
cannam@85 10648
cannam@85 10649
cannam@85 10650
cannam@85 10651
cannam@85 10652
cannam@85 10653
cannam@85 10654
cannam@85 10655
cannam@85 10656
cannam@85 10657
cannam@85 10658
cannam@85 10659
cannam@85 10660
cannam@85 10661
cannam@85 10662
cannam@85 10663
cannam@85 10664
cannam@85 10665
cannam@85 10666
cannam@85 10667
cannam@85 10668
cannam@85 10669
cannam@85 10670
cannam@85 10671
cannam@85 10672
cannam@85 10673
cannam@85 10674
cannam@85 10675
cannam@85 10676
cannam@85 10677
cannam@85 10678
cannam@85 10679
cannam@85 10680
cannam@85 10681
cannam@85 10682
cannam@85 10683
cannam@85 10684
cannam@85 10685
cannam@85 10686
cannam@85 10687
cannam@85 10688
cannam@85 10689
cannam@85 10690
cannam@85 10691
cannam@85 10692
cannam@85 10693
cannam@85 10694
cannam@85 10695
cannam@85 10696
cannam@85 10697
cannam@85 10698
cannam@85 10699
cannam@85 10700
cannam@85 10701
cannam@85 10702
cannam@85 10703
cannam@85 10704
cannam@85 10705
cannam@85 10706
cannam@85 10707
cannam@85 10708
cannam@85 10709
cannam@85 10710
cannam@85 10711
cannam@85 10712
cannam@85 10713
cannam@85 10714
cannam@85 10715
cannam@85 10716
cannam@85 10717
cannam@85 10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cannam@85 10719 $as_echo_n "checking dynamic linker characteristics... " >&6; }
cannam@85 10720
cannam@85 10721 if test "$GCC" = yes; then
cannam@85 10722 case $host_os in
cannam@85 10723 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
cannam@85 10724 *) lt_awk_arg="/^libraries:/" ;;
cannam@85 10725 esac
cannam@85 10726 case $host_os in
cannam@85 10727 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
cannam@85 10728 *) lt_sed_strip_eq="s,=/,/,g" ;;
cannam@85 10729 esac
cannam@85 10730 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
cannam@85 10731 case $lt_search_path_spec in
cannam@85 10732 *\;*)
cannam@85 10733 # if the path contains ";" then we assume it to be the separator
cannam@85 10734 # otherwise default to the standard path separator (i.e. ":") - it is
cannam@85 10735 # assumed that no part of a normal pathname contains ";" but that should
cannam@85 10736 # okay in the real world where ";" in dirpaths is itself problematic.
cannam@85 10737 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
cannam@85 10738 ;;
cannam@85 10739 *)
cannam@85 10740 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
cannam@85 10741 ;;
cannam@85 10742 esac
cannam@85 10743 # Ok, now we have the path, separated by spaces, we can step through it
cannam@85 10744 # and add multilib dir if necessary.
cannam@85 10745 lt_tmp_lt_search_path_spec=
cannam@85 10746 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
cannam@85 10747 for lt_sys_path in $lt_search_path_spec; do
cannam@85 10748 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
cannam@85 10749 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
cannam@85 10750 else
cannam@85 10751 test -d "$lt_sys_path" && \
cannam@85 10752 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
cannam@85 10753 fi
cannam@85 10754 done
cannam@85 10755 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cannam@85 10756 BEGIN {RS=" "; FS="/|\n";} {
cannam@85 10757 lt_foo="";
cannam@85 10758 lt_count=0;
cannam@85 10759 for (lt_i = NF; lt_i > 0; lt_i--) {
cannam@85 10760 if ($lt_i != "" && $lt_i != ".") {
cannam@85 10761 if ($lt_i == "..") {
cannam@85 10762 lt_count++;
cannam@85 10763 } else {
cannam@85 10764 if (lt_count == 0) {
cannam@85 10765 lt_foo="/" $lt_i lt_foo;
cannam@85 10766 } else {
cannam@85 10767 lt_count--;
cannam@85 10768 }
cannam@85 10769 }
cannam@85 10770 }
cannam@85 10771 }
cannam@85 10772 if (lt_foo != "") { lt_freq[lt_foo]++; }
cannam@85 10773 if (lt_freq[lt_foo] == 1) { print lt_foo; }
cannam@85 10774 }'`
cannam@85 10775 # AWK program above erroneously prepends '/' to C:/dos/paths
cannam@85 10776 # for these hosts.
cannam@85 10777 case $host_os in
cannam@85 10778 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
cannam@85 10779 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
cannam@85 10780 esac
cannam@85 10781 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cannam@85 10782 else
cannam@85 10783 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
cannam@85 10784 fi
cannam@85 10785 library_names_spec=
cannam@85 10786 libname_spec='lib$name'
cannam@85 10787 soname_spec=
cannam@85 10788 shrext_cmds=".so"
cannam@85 10789 postinstall_cmds=
cannam@85 10790 postuninstall_cmds=
cannam@85 10791 finish_cmds=
cannam@85 10792 finish_eval=
cannam@85 10793 shlibpath_var=
cannam@85 10794 shlibpath_overrides_runpath=unknown
cannam@85 10795 version_type=none
cannam@85 10796 dynamic_linker="$host_os ld.so"
cannam@85 10797 sys_lib_dlsearch_path_spec="/lib /usr/lib"
cannam@85 10798 need_lib_prefix=unknown
cannam@85 10799 hardcode_into_libs=no
cannam@85 10800
cannam@85 10801 # when you set need_version to no, make sure it does not cause -set_version
cannam@85 10802 # flags to be left without arguments
cannam@85 10803 need_version=unknown
cannam@85 10804
cannam@85 10805 case $host_os in
cannam@85 10806 aix3*)
cannam@85 10807 version_type=linux
cannam@85 10808 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
cannam@85 10809 shlibpath_var=LIBPATH
cannam@85 10810
cannam@85 10811 # AIX 3 has no versioning support, so we append a major version to the name.
cannam@85 10812 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 10813 ;;
cannam@85 10814
cannam@85 10815 aix[4-9]*)
cannam@85 10816 version_type=linux
cannam@85 10817 need_lib_prefix=no
cannam@85 10818 need_version=no
cannam@85 10819 hardcode_into_libs=yes
cannam@85 10820 if test "$host_cpu" = ia64; then
cannam@85 10821 # AIX 5 supports IA64
cannam@85 10822 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
cannam@85 10823 shlibpath_var=LD_LIBRARY_PATH
cannam@85 10824 else
cannam@85 10825 # With GCC up to 2.95.x, collect2 would create an import file
cannam@85 10826 # for dependence libraries. The import file would start with
cannam@85 10827 # the line `#! .'. This would cause the generated library to
cannam@85 10828 # depend on `.', always an invalid library. This was fixed in
cannam@85 10829 # development snapshots of GCC prior to 3.0.
cannam@85 10830 case $host_os in
cannam@85 10831 aix4 | aix4.[01] | aix4.[01].*)
cannam@85 10832 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
cannam@85 10833 echo ' yes '
cannam@85 10834 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
cannam@85 10835 :
cannam@85 10836 else
cannam@85 10837 can_build_shared=no
cannam@85 10838 fi
cannam@85 10839 ;;
cannam@85 10840 esac
cannam@85 10841 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
cannam@85 10842 # soname into executable. Probably we can add versioning support to
cannam@85 10843 # collect2, so additional links can be useful in future.
cannam@85 10844 if test "$aix_use_runtimelinking" = yes; then
cannam@85 10845 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
cannam@85 10846 # instead of lib<name>.a to let people know that these are not
cannam@85 10847 # typical AIX shared libraries.
cannam@85 10848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 10849 else
cannam@85 10850 # We preserve .a as extension for shared libraries through AIX4.2
cannam@85 10851 # and later when we are not doing run time linking.
cannam@85 10852 library_names_spec='${libname}${release}.a $libname.a'
cannam@85 10853 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 10854 fi
cannam@85 10855 shlibpath_var=LIBPATH
cannam@85 10856 fi
cannam@85 10857 ;;
cannam@85 10858
cannam@85 10859 amigaos*)
cannam@85 10860 case $host_cpu in
cannam@85 10861 powerpc)
cannam@85 10862 # Since July 2007 AmigaOS4 officially supports .so libraries.
cannam@85 10863 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
cannam@85 10864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 10865 ;;
cannam@85 10866 m68k)
cannam@85 10867 library_names_spec='$libname.ixlibrary $libname.a'
cannam@85 10868 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cannam@85 10869 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@85 10870 ;;
cannam@85 10871 esac
cannam@85 10872 ;;
cannam@85 10873
cannam@85 10874 beos*)
cannam@85 10875 library_names_spec='${libname}${shared_ext}'
cannam@85 10876 dynamic_linker="$host_os ld.so"
cannam@85 10877 shlibpath_var=LIBRARY_PATH
cannam@85 10878 ;;
cannam@85 10879
cannam@85 10880 bsdi[45]*)
cannam@85 10881 version_type=linux
cannam@85 10882 need_version=no
cannam@85 10883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 10884 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 10885 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
cannam@85 10886 shlibpath_var=LD_LIBRARY_PATH
cannam@85 10887 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
cannam@85 10888 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
cannam@85 10889 # the default ld.so.conf also contains /usr/contrib/lib and
cannam@85 10890 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
cannam@85 10891 # libtool to hard-code these into programs
cannam@85 10892 ;;
cannam@85 10893
cannam@85 10894 cygwin* | mingw* | pw32* | cegcc*)
cannam@85 10895 version_type=windows
cannam@85 10896 shrext_cmds=".dll"
cannam@85 10897 need_version=no
cannam@85 10898 need_lib_prefix=no
cannam@85 10899
cannam@85 10900 case $GCC,$cc_basename in
cannam@85 10901 yes,*)
cannam@85 10902 # gcc
cannam@85 10903 library_names_spec='$libname.dll.a'
cannam@85 10904 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@85 10905 postinstall_cmds='base_file=`basename \${file}`~
cannam@85 10906 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
cannam@85 10907 dldir=$destdir/`dirname \$dlpath`~
cannam@85 10908 test -d \$dldir || mkdir -p \$dldir~
cannam@85 10909 $install_prog $dir/$dlname \$dldir/$dlname~
cannam@85 10910 chmod a+x \$dldir/$dlname~
cannam@85 10911 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
cannam@85 10912 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
cannam@85 10913 fi'
cannam@85 10914 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@85 10915 dlpath=$dir/\$dldll~
cannam@85 10916 $RM \$dlpath'
cannam@85 10917 shlibpath_overrides_runpath=yes
cannam@85 10918
cannam@85 10919 case $host_os in
cannam@85 10920 cygwin*)
cannam@85 10921 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
cannam@85 10922 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@85 10923
cannam@85 10924 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cannam@85 10925 ;;
cannam@85 10926 mingw* | cegcc*)
cannam@85 10927 # MinGW DLLs use traditional 'lib' prefix
cannam@85 10928 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@85 10929 ;;
cannam@85 10930 pw32*)
cannam@85 10931 # pw32 DLLs use 'pw' prefix rather than 'lib'
cannam@85 10932 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@85 10933 ;;
cannam@85 10934 esac
cannam@85 10935 dynamic_linker='Win32 ld.exe'
cannam@85 10936 ;;
cannam@85 10937
cannam@85 10938 *,cl*)
cannam@85 10939 # Native MSVC
cannam@85 10940 libname_spec='$name'
cannam@85 10941 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@85 10942 library_names_spec='${libname}.dll.lib'
cannam@85 10943
cannam@85 10944 case $build_os in
cannam@85 10945 mingw*)
cannam@85 10946 sys_lib_search_path_spec=
cannam@85 10947 lt_save_ifs=$IFS
cannam@85 10948 IFS=';'
cannam@85 10949 for lt_path in $LIB
cannam@85 10950 do
cannam@85 10951 IFS=$lt_save_ifs
cannam@85 10952 # Let DOS variable expansion print the short 8.3 style file name.
cannam@85 10953 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
cannam@85 10954 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
cannam@85 10955 done
cannam@85 10956 IFS=$lt_save_ifs
cannam@85 10957 # Convert to MSYS style.
cannam@85 10958 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@85 10959 ;;
cannam@85 10960 cygwin*)
cannam@85 10961 # Convert to unix form, then to dos form, then back to unix form
cannam@85 10962 # but this time dos style (no spaces!) so that the unix form looks
cannam@85 10963 # like /cygdrive/c/PROGRA~1:/cygdr...
cannam@85 10964 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
cannam@85 10965 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
cannam@85 10966 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@85 10967 ;;
cannam@85 10968 *)
cannam@85 10969 sys_lib_search_path_spec="$LIB"
cannam@85 10970 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
cannam@85 10971 # It is most probably a Windows format PATH.
cannam@85 10972 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@85 10973 else
cannam@85 10974 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@85 10975 fi
cannam@85 10976 # FIXME: find the short name or the path components, as spaces are
cannam@85 10977 # common. (e.g. "Program Files" -> "PROGRA~1")
cannam@85 10978 ;;
cannam@85 10979 esac
cannam@85 10980
cannam@85 10981 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@85 10982 postinstall_cmds='base_file=`basename \${file}`~
cannam@85 10983 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
cannam@85 10984 dldir=$destdir/`dirname \$dlpath`~
cannam@85 10985 test -d \$dldir || mkdir -p \$dldir~
cannam@85 10986 $install_prog $dir/$dlname \$dldir/$dlname'
cannam@85 10987 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@85 10988 dlpath=$dir/\$dldll~
cannam@85 10989 $RM \$dlpath'
cannam@85 10990 shlibpath_overrides_runpath=yes
cannam@85 10991 dynamic_linker='Win32 link.exe'
cannam@85 10992 ;;
cannam@85 10993
cannam@85 10994 *)
cannam@85 10995 # Assume MSVC wrapper
cannam@85 10996 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cannam@85 10997 dynamic_linker='Win32 ld.exe'
cannam@85 10998 ;;
cannam@85 10999 esac
cannam@85 11000 # FIXME: first we should search . and the directory the executable is in
cannam@85 11001 shlibpath_var=PATH
cannam@85 11002 ;;
cannam@85 11003
cannam@85 11004 darwin* | rhapsody*)
cannam@85 11005 dynamic_linker="$host_os dyld"
cannam@85 11006 version_type=darwin
cannam@85 11007 need_lib_prefix=no
cannam@85 11008 need_version=no
cannam@85 11009 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
cannam@85 11010 soname_spec='${libname}${release}${major}$shared_ext'
cannam@85 11011 shlibpath_overrides_runpath=yes
cannam@85 11012 shlibpath_var=DYLD_LIBRARY_PATH
cannam@85 11013 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
cannam@85 11014
cannam@85 11015 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
cannam@85 11016 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
cannam@85 11017 ;;
cannam@85 11018
cannam@85 11019 dgux*)
cannam@85 11020 version_type=linux
cannam@85 11021 need_lib_prefix=no
cannam@85 11022 need_version=no
cannam@85 11023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
cannam@85 11024 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11025 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11026 ;;
cannam@85 11027
cannam@85 11028 freebsd1*)
cannam@85 11029 dynamic_linker=no
cannam@85 11030 ;;
cannam@85 11031
cannam@85 11032 freebsd* | dragonfly*)
cannam@85 11033 # DragonFly does not have aout. When/if they implement a new
cannam@85 11034 # versioning mechanism, adjust this.
cannam@85 11035 if test -x /usr/bin/objformat; then
cannam@85 11036 objformat=`/usr/bin/objformat`
cannam@85 11037 else
cannam@85 11038 case $host_os in
cannam@85 11039 freebsd[123]*) objformat=aout ;;
cannam@85 11040 *) objformat=elf ;;
cannam@85 11041 esac
cannam@85 11042 fi
cannam@85 11043 version_type=freebsd-$objformat
cannam@85 11044 case $version_type in
cannam@85 11045 freebsd-elf*)
cannam@85 11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@85 11047 need_version=no
cannam@85 11048 need_lib_prefix=no
cannam@85 11049 ;;
cannam@85 11050 freebsd-*)
cannam@85 11051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
cannam@85 11052 need_version=yes
cannam@85 11053 ;;
cannam@85 11054 esac
cannam@85 11055 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11056 case $host_os in
cannam@85 11057 freebsd2*)
cannam@85 11058 shlibpath_overrides_runpath=yes
cannam@85 11059 ;;
cannam@85 11060 freebsd3.[01]* | freebsdelf3.[01]*)
cannam@85 11061 shlibpath_overrides_runpath=yes
cannam@85 11062 hardcode_into_libs=yes
cannam@85 11063 ;;
cannam@85 11064 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
cannam@85 11065 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
cannam@85 11066 shlibpath_overrides_runpath=no
cannam@85 11067 hardcode_into_libs=yes
cannam@85 11068 ;;
cannam@85 11069 *) # from 4.6 on, and DragonFly
cannam@85 11070 shlibpath_overrides_runpath=yes
cannam@85 11071 hardcode_into_libs=yes
cannam@85 11072 ;;
cannam@85 11073 esac
cannam@85 11074 ;;
cannam@85 11075
cannam@85 11076 gnu*)
cannam@85 11077 version_type=linux
cannam@85 11078 need_lib_prefix=no
cannam@85 11079 need_version=no
cannam@85 11080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
cannam@85 11081 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11082 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11083 shlibpath_overrides_runpath=no
cannam@85 11084 hardcode_into_libs=yes
cannam@85 11085 ;;
cannam@85 11086
cannam@85 11087 haiku*)
cannam@85 11088 version_type=linux
cannam@85 11089 need_lib_prefix=no
cannam@85 11090 need_version=no
cannam@85 11091 dynamic_linker="$host_os runtime_loader"
cannam@85 11092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
cannam@85 11093 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11094 shlibpath_var=LIBRARY_PATH
cannam@85 11095 shlibpath_overrides_runpath=yes
cannam@85 11096 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
cannam@85 11097 hardcode_into_libs=yes
cannam@85 11098 ;;
cannam@85 11099
cannam@85 11100 hpux9* | hpux10* | hpux11*)
cannam@85 11101 # Give a soname corresponding to the major version so that dld.sl refuses to
cannam@85 11102 # link against other versions.
cannam@85 11103 version_type=sunos
cannam@85 11104 need_lib_prefix=no
cannam@85 11105 need_version=no
cannam@85 11106 case $host_cpu in
cannam@85 11107 ia64*)
cannam@85 11108 shrext_cmds='.so'
cannam@85 11109 hardcode_into_libs=yes
cannam@85 11110 dynamic_linker="$host_os dld.so"
cannam@85 11111 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11112 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@85 11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11114 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11115 if test "X$HPUX_IA64_MODE" = X32; then
cannam@85 11116 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
cannam@85 11117 else
cannam@85 11118 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
cannam@85 11119 fi
cannam@85 11120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@85 11121 ;;
cannam@85 11122 hppa*64*)
cannam@85 11123 shrext_cmds='.sl'
cannam@85 11124 hardcode_into_libs=yes
cannam@85 11125 dynamic_linker="$host_os dld.sl"
cannam@85 11126 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
cannam@85 11127 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@85 11128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11129 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11130 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
cannam@85 11131 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@85 11132 ;;
cannam@85 11133 *)
cannam@85 11134 shrext_cmds='.sl'
cannam@85 11135 dynamic_linker="$host_os dld.sl"
cannam@85 11136 shlibpath_var=SHLIB_PATH
cannam@85 11137 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
cannam@85 11138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11139 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11140 ;;
cannam@85 11141 esac
cannam@85 11142 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cannam@85 11143 postinstall_cmds='chmod 555 $lib'
cannam@85 11144 # or fails outright, so override atomically:
cannam@85 11145 install_override_mode=555
cannam@85 11146 ;;
cannam@85 11147
cannam@85 11148 interix[3-9]*)
cannam@85 11149 version_type=linux
cannam@85 11150 need_lib_prefix=no
cannam@85 11151 need_version=no
cannam@85 11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 11153 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11154 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
cannam@85 11155 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11156 shlibpath_overrides_runpath=no
cannam@85 11157 hardcode_into_libs=yes
cannam@85 11158 ;;
cannam@85 11159
cannam@85 11160 irix5* | irix6* | nonstopux*)
cannam@85 11161 case $host_os in
cannam@85 11162 nonstopux*) version_type=nonstopux ;;
cannam@85 11163 *)
cannam@85 11164 if test "$lt_cv_prog_gnu_ld" = yes; then
cannam@85 11165 version_type=linux
cannam@85 11166 else
cannam@85 11167 version_type=irix
cannam@85 11168 fi ;;
cannam@85 11169 esac
cannam@85 11170 need_lib_prefix=no
cannam@85 11171 need_version=no
cannam@85 11172 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@85 11174 case $host_os in
cannam@85 11175 irix5* | nonstopux*)
cannam@85 11176 libsuff= shlibsuff=
cannam@85 11177 ;;
cannam@85 11178 *)
cannam@85 11179 case $LD in # libtool.m4 will add one of these switches to LD
cannam@85 11180 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
cannam@85 11181 libsuff= shlibsuff= libmagic=32-bit;;
cannam@85 11182 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
cannam@85 11183 libsuff=32 shlibsuff=N32 libmagic=N32;;
cannam@85 11184 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
cannam@85 11185 libsuff=64 shlibsuff=64 libmagic=64-bit;;
cannam@85 11186 *) libsuff= shlibsuff= libmagic=never-match;;
cannam@85 11187 esac
cannam@85 11188 ;;
cannam@85 11189 esac
cannam@85 11190 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
cannam@85 11191 shlibpath_overrides_runpath=no
cannam@85 11192 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
cannam@85 11193 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
cannam@85 11194 hardcode_into_libs=yes
cannam@85 11195 ;;
cannam@85 11196
cannam@85 11197 # No shared lib support for Linux oldld, aout, or coff.
cannam@85 11198 linux*oldld* | linux*aout* | linux*coff*)
cannam@85 11199 dynamic_linker=no
cannam@85 11200 ;;
cannam@85 11201
cannam@85 11202 # This must be Linux ELF.
cannam@85 11203 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cannam@85 11204 version_type=linux
cannam@85 11205 need_lib_prefix=no
cannam@85 11206 need_version=no
cannam@85 11207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11208 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
cannam@85 11210 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11211 shlibpath_overrides_runpath=no
cannam@85 11212
cannam@85 11213 # Some binutils ld are patched to set DT_RUNPATH
cannam@85 11214 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cannam@85 11215 $as_echo_n "(cached) " >&6
cannam@85 11216 else
cannam@85 11217 lt_cv_shlibpath_overrides_runpath=no
cannam@85 11218 save_LDFLAGS=$LDFLAGS
cannam@85 11219 save_libdir=$libdir
cannam@85 11220 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
cannam@85 11221 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
cannam@85 11222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 11223 /* end confdefs.h. */
cannam@85 11224
cannam@85 11225 int
cannam@85 11226 main ()
cannam@85 11227 {
cannam@85 11228
cannam@85 11229 ;
cannam@85 11230 return 0;
cannam@85 11231 }
cannam@85 11232 _ACEOF
cannam@85 11233 if ac_fn_c_try_link "$LINENO"; then :
cannam@85 11234 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cannam@85 11235 lt_cv_shlibpath_overrides_runpath=yes
cannam@85 11236 fi
cannam@85 11237 fi
cannam@85 11238 rm -f core conftest.err conftest.$ac_objext \
cannam@85 11239 conftest$ac_exeext conftest.$ac_ext
cannam@85 11240 LDFLAGS=$save_LDFLAGS
cannam@85 11241 libdir=$save_libdir
cannam@85 11242
cannam@85 11243 fi
cannam@85 11244
cannam@85 11245 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cannam@85 11246
cannam@85 11247 # This implies no fast_install, which is unacceptable.
cannam@85 11248 # Some rework will be needed to allow for fast_install
cannam@85 11249 # before this can be enabled.
cannam@85 11250 hardcode_into_libs=yes
cannam@85 11251
cannam@85 11252 # Append ld.so.conf contents to the search path
cannam@85 11253 if test -f /etc/ld.so.conf; then
cannam@85 11254 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@85 11255 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
cannam@85 11256 fi
cannam@85 11257
cannam@85 11258 # We used to test for /lib/ld.so.1 and disable shared libraries on
cannam@85 11259 # powerpc, because MkLinux only supported shared libraries with the
cannam@85 11260 # GNU dynamic linker. Since this was broken with cross compilers,
cannam@85 11261 # most powerpc-linux boxes support dynamic linking these days and
cannam@85 11262 # people can always --disable-shared, the test was removed, and we
cannam@85 11263 # assume the GNU/Linux dynamic linker is in use.
cannam@85 11264 dynamic_linker='GNU/Linux ld.so'
cannam@85 11265 ;;
cannam@85 11266
cannam@85 11267 netbsdelf*-gnu)
cannam@85 11268 version_type=linux
cannam@85 11269 need_lib_prefix=no
cannam@85 11270 need_version=no
cannam@85 11271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 11272 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11273 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11274 shlibpath_overrides_runpath=no
cannam@85 11275 hardcode_into_libs=yes
cannam@85 11276 dynamic_linker='NetBSD ld.elf_so'
cannam@85 11277 ;;
cannam@85 11278
cannam@85 11279 netbsd*)
cannam@85 11280 version_type=sunos
cannam@85 11281 need_lib_prefix=no
cannam@85 11282 need_version=no
cannam@85 11283 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@85 11284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 11285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@85 11286 dynamic_linker='NetBSD (a.out) ld.so'
cannam@85 11287 else
cannam@85 11288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 11289 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11290 dynamic_linker='NetBSD ld.elf_so'
cannam@85 11291 fi
cannam@85 11292 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11293 shlibpath_overrides_runpath=yes
cannam@85 11294 hardcode_into_libs=yes
cannam@85 11295 ;;
cannam@85 11296
cannam@85 11297 newsos6)
cannam@85 11298 version_type=linux
cannam@85 11299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11300 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11301 shlibpath_overrides_runpath=yes
cannam@85 11302 ;;
cannam@85 11303
cannam@85 11304 *nto* | *qnx*)
cannam@85 11305 version_type=qnx
cannam@85 11306 need_lib_prefix=no
cannam@85 11307 need_version=no
cannam@85 11308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11309 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11310 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11311 shlibpath_overrides_runpath=no
cannam@85 11312 hardcode_into_libs=yes
cannam@85 11313 dynamic_linker='ldqnx.so'
cannam@85 11314 ;;
cannam@85 11315
cannam@85 11316 openbsd*)
cannam@85 11317 version_type=sunos
cannam@85 11318 sys_lib_dlsearch_path_spec="/usr/lib"
cannam@85 11319 need_lib_prefix=no
cannam@85 11320 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
cannam@85 11321 case $host_os in
cannam@85 11322 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
cannam@85 11323 *) need_version=no ;;
cannam@85 11324 esac
cannam@85 11325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 11326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@85 11327 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11328 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@85 11329 case $host_os in
cannam@85 11330 openbsd2.[89] | openbsd2.[89].*)
cannam@85 11331 shlibpath_overrides_runpath=no
cannam@85 11332 ;;
cannam@85 11333 *)
cannam@85 11334 shlibpath_overrides_runpath=yes
cannam@85 11335 ;;
cannam@85 11336 esac
cannam@85 11337 else
cannam@85 11338 shlibpath_overrides_runpath=yes
cannam@85 11339 fi
cannam@85 11340 ;;
cannam@85 11341
cannam@85 11342 os2*)
cannam@85 11343 libname_spec='$name'
cannam@85 11344 shrext_cmds=".dll"
cannam@85 11345 need_lib_prefix=no
cannam@85 11346 library_names_spec='$libname${shared_ext} $libname.a'
cannam@85 11347 dynamic_linker='OS/2 ld.exe'
cannam@85 11348 shlibpath_var=LIBPATH
cannam@85 11349 ;;
cannam@85 11350
cannam@85 11351 osf3* | osf4* | osf5*)
cannam@85 11352 version_type=osf
cannam@85 11353 need_lib_prefix=no
cannam@85 11354 need_version=no
cannam@85 11355 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11357 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11358 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
cannam@85 11359 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
cannam@85 11360 ;;
cannam@85 11361
cannam@85 11362 rdos*)
cannam@85 11363 dynamic_linker=no
cannam@85 11364 ;;
cannam@85 11365
cannam@85 11366 solaris*)
cannam@85 11367 version_type=linux
cannam@85 11368 need_lib_prefix=no
cannam@85 11369 need_version=no
cannam@85 11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11371 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11372 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11373 shlibpath_overrides_runpath=yes
cannam@85 11374 hardcode_into_libs=yes
cannam@85 11375 # ldd complains unless libraries are executable
cannam@85 11376 postinstall_cmds='chmod +x $lib'
cannam@85 11377 ;;
cannam@85 11378
cannam@85 11379 sunos4*)
cannam@85 11380 version_type=sunos
cannam@85 11381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 11382 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
cannam@85 11383 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11384 shlibpath_overrides_runpath=yes
cannam@85 11385 if test "$with_gnu_ld" = yes; then
cannam@85 11386 need_lib_prefix=no
cannam@85 11387 fi
cannam@85 11388 need_version=yes
cannam@85 11389 ;;
cannam@85 11390
cannam@85 11391 sysv4 | sysv4.3*)
cannam@85 11392 version_type=linux
cannam@85 11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11394 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11395 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11396 case $host_vendor in
cannam@85 11397 sni)
cannam@85 11398 shlibpath_overrides_runpath=no
cannam@85 11399 need_lib_prefix=no
cannam@85 11400 runpath_var=LD_RUN_PATH
cannam@85 11401 ;;
cannam@85 11402 siemens)
cannam@85 11403 need_lib_prefix=no
cannam@85 11404 ;;
cannam@85 11405 motorola)
cannam@85 11406 need_lib_prefix=no
cannam@85 11407 need_version=no
cannam@85 11408 shlibpath_overrides_runpath=no
cannam@85 11409 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
cannam@85 11410 ;;
cannam@85 11411 esac
cannam@85 11412 ;;
cannam@85 11413
cannam@85 11414 sysv4*MP*)
cannam@85 11415 if test -d /usr/nec ;then
cannam@85 11416 version_type=linux
cannam@85 11417 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
cannam@85 11418 soname_spec='$libname${shared_ext}.$major'
cannam@85 11419 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11420 fi
cannam@85 11421 ;;
cannam@85 11422
cannam@85 11423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
cannam@85 11424 version_type=freebsd-elf
cannam@85 11425 need_lib_prefix=no
cannam@85 11426 need_version=no
cannam@85 11427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@85 11428 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11429 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11430 shlibpath_overrides_runpath=yes
cannam@85 11431 hardcode_into_libs=yes
cannam@85 11432 if test "$with_gnu_ld" = yes; then
cannam@85 11433 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
cannam@85 11434 else
cannam@85 11435 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
cannam@85 11436 case $host_os in
cannam@85 11437 sco3.2v5*)
cannam@85 11438 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
cannam@85 11439 ;;
cannam@85 11440 esac
cannam@85 11441 fi
cannam@85 11442 sys_lib_dlsearch_path_spec='/usr/lib'
cannam@85 11443 ;;
cannam@85 11444
cannam@85 11445 tpf*)
cannam@85 11446 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cannam@85 11447 version_type=linux
cannam@85 11448 need_lib_prefix=no
cannam@85 11449 need_version=no
cannam@85 11450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11451 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11452 shlibpath_overrides_runpath=no
cannam@85 11453 hardcode_into_libs=yes
cannam@85 11454 ;;
cannam@85 11455
cannam@85 11456 uts4*)
cannam@85 11457 version_type=linux
cannam@85 11458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11459 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11460 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11461 ;;
cannam@85 11462
cannam@85 11463 *)
cannam@85 11464 dynamic_linker=no
cannam@85 11465 ;;
cannam@85 11466 esac
cannam@85 11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cannam@85 11468 $as_echo "$dynamic_linker" >&6; }
cannam@85 11469 test "$dynamic_linker" = no && can_build_shared=no
cannam@85 11470
cannam@85 11471 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
cannam@85 11472 if test "$GCC" = yes; then
cannam@85 11473 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
cannam@85 11474 fi
cannam@85 11475
cannam@85 11476 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
cannam@85 11477 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
cannam@85 11478 fi
cannam@85 11479 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
cannam@85 11480 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
cannam@85 11481 fi
cannam@85 11482
cannam@85 11483
cannam@85 11484
cannam@85 11485
cannam@85 11486
cannam@85 11487
cannam@85 11488
cannam@85 11489
cannam@85 11490
cannam@85 11491
cannam@85 11492
cannam@85 11493
cannam@85 11494
cannam@85 11495
cannam@85 11496
cannam@85 11497
cannam@85 11498
cannam@85 11499
cannam@85 11500
cannam@85 11501
cannam@85 11502
cannam@85 11503
cannam@85 11504
cannam@85 11505
cannam@85 11506
cannam@85 11507
cannam@85 11508
cannam@85 11509
cannam@85 11510
cannam@85 11511
cannam@85 11512
cannam@85 11513
cannam@85 11514
cannam@85 11515
cannam@85 11516
cannam@85 11517
cannam@85 11518
cannam@85 11519
cannam@85 11520
cannam@85 11521
cannam@85 11522
cannam@85 11523
cannam@85 11524
cannam@85 11525
cannam@85 11526
cannam@85 11527
cannam@85 11528
cannam@85 11529
cannam@85 11530
cannam@85 11531
cannam@85 11532
cannam@85 11533
cannam@85 11534
cannam@85 11535
cannam@85 11536
cannam@85 11537
cannam@85 11538
cannam@85 11539
cannam@85 11540
cannam@85 11541
cannam@85 11542
cannam@85 11543
cannam@85 11544
cannam@85 11545
cannam@85 11546
cannam@85 11547
cannam@85 11548
cannam@85 11549
cannam@85 11550
cannam@85 11551
cannam@85 11552
cannam@85 11553
cannam@85 11554
cannam@85 11555
cannam@85 11556
cannam@85 11557
cannam@85 11558
cannam@85 11559
cannam@85 11560
cannam@85 11561
cannam@85 11562
cannam@85 11563
cannam@85 11564
cannam@85 11565
cannam@85 11566
cannam@85 11567
cannam@85 11568
cannam@85 11569
cannam@85 11570
cannam@85 11571
cannam@85 11572
cannam@85 11573
cannam@85 11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cannam@85 11575 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
cannam@85 11576 hardcode_action=
cannam@85 11577 if test -n "$hardcode_libdir_flag_spec" ||
cannam@85 11578 test -n "$runpath_var" ||
cannam@85 11579 test "X$hardcode_automatic" = "Xyes" ; then
cannam@85 11580
cannam@85 11581 # We can hardcode non-existent directories.
cannam@85 11582 if test "$hardcode_direct" != no &&
cannam@85 11583 # If the only mechanism to avoid hardcoding is shlibpath_var, we
cannam@85 11584 # have to relink, otherwise we might link with an installed library
cannam@85 11585 # when we should be linking with a yet-to-be-installed one
cannam@85 11586 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
cannam@85 11587 test "$hardcode_minus_L" != no; then
cannam@85 11588 # Linking always hardcodes the temporary library directory.
cannam@85 11589 hardcode_action=relink
cannam@85 11590 else
cannam@85 11591 # We can link without hardcoding, and we can hardcode nonexisting dirs.
cannam@85 11592 hardcode_action=immediate
cannam@85 11593 fi
cannam@85 11594 else
cannam@85 11595 # We cannot hardcode anything, or else we can only hardcode existing
cannam@85 11596 # directories.
cannam@85 11597 hardcode_action=unsupported
cannam@85 11598 fi
cannam@85 11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cannam@85 11600 $as_echo "$hardcode_action" >&6; }
cannam@85 11601
cannam@85 11602 if test "$hardcode_action" = relink ||
cannam@85 11603 test "$inherit_rpath" = yes; then
cannam@85 11604 # Fast installation is not supported
cannam@85 11605 enable_fast_install=no
cannam@85 11606 elif test "$shlibpath_overrides_runpath" = yes ||
cannam@85 11607 test "$enable_shared" = no; then
cannam@85 11608 # Fast installation is not necessary
cannam@85 11609 enable_fast_install=needless
cannam@85 11610 fi
cannam@85 11611
cannam@85 11612
cannam@85 11613
cannam@85 11614
cannam@85 11615
cannam@85 11616
cannam@85 11617 if test "x$enable_dlopen" != xyes; then
cannam@85 11618 enable_dlopen=unknown
cannam@85 11619 enable_dlopen_self=unknown
cannam@85 11620 enable_dlopen_self_static=unknown
cannam@85 11621 else
cannam@85 11622 lt_cv_dlopen=no
cannam@85 11623 lt_cv_dlopen_libs=
cannam@85 11624
cannam@85 11625 case $host_os in
cannam@85 11626 beos*)
cannam@85 11627 lt_cv_dlopen="load_add_on"
cannam@85 11628 lt_cv_dlopen_libs=
cannam@85 11629 lt_cv_dlopen_self=yes
cannam@85 11630 ;;
cannam@85 11631
cannam@85 11632 mingw* | pw32* | cegcc*)
cannam@85 11633 lt_cv_dlopen="LoadLibrary"
cannam@85 11634 lt_cv_dlopen_libs=
cannam@85 11635 ;;
cannam@85 11636
cannam@85 11637 cygwin*)
cannam@85 11638 lt_cv_dlopen="dlopen"
cannam@85 11639 lt_cv_dlopen_libs=
cannam@85 11640 ;;
cannam@85 11641
cannam@85 11642 darwin*)
cannam@85 11643 # if libdl is installed we need to link against it
cannam@85 11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cannam@85 11645 $as_echo_n "checking for dlopen in -ldl... " >&6; }
cannam@85 11646 if ${ac_cv_lib_dl_dlopen+:} false; then :
cannam@85 11647 $as_echo_n "(cached) " >&6
cannam@85 11648 else
cannam@85 11649 ac_check_lib_save_LIBS=$LIBS
cannam@85 11650 LIBS="-ldl $LIBS"
cannam@85 11651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 11652 /* end confdefs.h. */
cannam@85 11653
cannam@85 11654 /* Override any GCC internal prototype to avoid an error.
cannam@85 11655 Use char because int might match the return type of a GCC
cannam@85 11656 builtin and then its argument prototype would still apply. */
cannam@85 11657 #ifdef __cplusplus
cannam@85 11658 extern "C"
cannam@85 11659 #endif
cannam@85 11660 char dlopen ();
cannam@85 11661 int
cannam@85 11662 main ()
cannam@85 11663 {
cannam@85 11664 return dlopen ();
cannam@85 11665 ;
cannam@85 11666 return 0;
cannam@85 11667 }
cannam@85 11668 _ACEOF
cannam@85 11669 if ac_fn_c_try_link "$LINENO"; then :
cannam@85 11670 ac_cv_lib_dl_dlopen=yes
cannam@85 11671 else
cannam@85 11672 ac_cv_lib_dl_dlopen=no
cannam@85 11673 fi
cannam@85 11674 rm -f core conftest.err conftest.$ac_objext \
cannam@85 11675 conftest$ac_exeext conftest.$ac_ext
cannam@85 11676 LIBS=$ac_check_lib_save_LIBS
cannam@85 11677 fi
cannam@85 11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cannam@85 11679 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cannam@85 11680 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cannam@85 11681 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
cannam@85 11682 else
cannam@85 11683
cannam@85 11684 lt_cv_dlopen="dyld"
cannam@85 11685 lt_cv_dlopen_libs=
cannam@85 11686 lt_cv_dlopen_self=yes
cannam@85 11687
cannam@85 11688 fi
cannam@85 11689
cannam@85 11690 ;;
cannam@85 11691
cannam@85 11692 *)
cannam@85 11693 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cannam@85 11694 if test "x$ac_cv_func_shl_load" = xyes; then :
cannam@85 11695 lt_cv_dlopen="shl_load"
cannam@85 11696 else
cannam@85 11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cannam@85 11698 $as_echo_n "checking for shl_load in -ldld... " >&6; }
cannam@85 11699 if ${ac_cv_lib_dld_shl_load+:} false; then :
cannam@85 11700 $as_echo_n "(cached) " >&6
cannam@85 11701 else
cannam@85 11702 ac_check_lib_save_LIBS=$LIBS
cannam@85 11703 LIBS="-ldld $LIBS"
cannam@85 11704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 11705 /* end confdefs.h. */
cannam@85 11706
cannam@85 11707 /* Override any GCC internal prototype to avoid an error.
cannam@85 11708 Use char because int might match the return type of a GCC
cannam@85 11709 builtin and then its argument prototype would still apply. */
cannam@85 11710 #ifdef __cplusplus
cannam@85 11711 extern "C"
cannam@85 11712 #endif
cannam@85 11713 char shl_load ();
cannam@85 11714 int
cannam@85 11715 main ()
cannam@85 11716 {
cannam@85 11717 return shl_load ();
cannam@85 11718 ;
cannam@85 11719 return 0;
cannam@85 11720 }
cannam@85 11721 _ACEOF
cannam@85 11722 if ac_fn_c_try_link "$LINENO"; then :
cannam@85 11723 ac_cv_lib_dld_shl_load=yes
cannam@85 11724 else
cannam@85 11725 ac_cv_lib_dld_shl_load=no
cannam@85 11726 fi
cannam@85 11727 rm -f core conftest.err conftest.$ac_objext \
cannam@85 11728 conftest$ac_exeext conftest.$ac_ext
cannam@85 11729 LIBS=$ac_check_lib_save_LIBS
cannam@85 11730 fi
cannam@85 11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cannam@85 11732 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cannam@85 11733 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cannam@85 11734 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
cannam@85 11735 else
cannam@85 11736 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cannam@85 11737 if test "x$ac_cv_func_dlopen" = xyes; then :
cannam@85 11738 lt_cv_dlopen="dlopen"
cannam@85 11739 else
cannam@85 11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cannam@85 11741 $as_echo_n "checking for dlopen in -ldl... " >&6; }
cannam@85 11742 if ${ac_cv_lib_dl_dlopen+:} false; then :
cannam@85 11743 $as_echo_n "(cached) " >&6
cannam@85 11744 else
cannam@85 11745 ac_check_lib_save_LIBS=$LIBS
cannam@85 11746 LIBS="-ldl $LIBS"
cannam@85 11747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 11748 /* end confdefs.h. */
cannam@85 11749
cannam@85 11750 /* Override any GCC internal prototype to avoid an error.
cannam@85 11751 Use char because int might match the return type of a GCC
cannam@85 11752 builtin and then its argument prototype would still apply. */
cannam@85 11753 #ifdef __cplusplus
cannam@85 11754 extern "C"
cannam@85 11755 #endif
cannam@85 11756 char dlopen ();
cannam@85 11757 int
cannam@85 11758 main ()
cannam@85 11759 {
cannam@85 11760 return dlopen ();
cannam@85 11761 ;
cannam@85 11762 return 0;
cannam@85 11763 }
cannam@85 11764 _ACEOF
cannam@85 11765 if ac_fn_c_try_link "$LINENO"; then :
cannam@85 11766 ac_cv_lib_dl_dlopen=yes
cannam@85 11767 else
cannam@85 11768 ac_cv_lib_dl_dlopen=no
cannam@85 11769 fi
cannam@85 11770 rm -f core conftest.err conftest.$ac_objext \
cannam@85 11771 conftest$ac_exeext conftest.$ac_ext
cannam@85 11772 LIBS=$ac_check_lib_save_LIBS
cannam@85 11773 fi
cannam@85 11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cannam@85 11775 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cannam@85 11776 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cannam@85 11777 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
cannam@85 11778 else
cannam@85 11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cannam@85 11780 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
cannam@85 11781 if ${ac_cv_lib_svld_dlopen+:} false; then :
cannam@85 11782 $as_echo_n "(cached) " >&6
cannam@85 11783 else
cannam@85 11784 ac_check_lib_save_LIBS=$LIBS
cannam@85 11785 LIBS="-lsvld $LIBS"
cannam@85 11786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 11787 /* end confdefs.h. */
cannam@85 11788
cannam@85 11789 /* Override any GCC internal prototype to avoid an error.
cannam@85 11790 Use char because int might match the return type of a GCC
cannam@85 11791 builtin and then its argument prototype would still apply. */
cannam@85 11792 #ifdef __cplusplus
cannam@85 11793 extern "C"
cannam@85 11794 #endif
cannam@85 11795 char dlopen ();
cannam@85 11796 int
cannam@85 11797 main ()
cannam@85 11798 {
cannam@85 11799 return dlopen ();
cannam@85 11800 ;
cannam@85 11801 return 0;
cannam@85 11802 }
cannam@85 11803 _ACEOF
cannam@85 11804 if ac_fn_c_try_link "$LINENO"; then :
cannam@85 11805 ac_cv_lib_svld_dlopen=yes
cannam@85 11806 else
cannam@85 11807 ac_cv_lib_svld_dlopen=no
cannam@85 11808 fi
cannam@85 11809 rm -f core conftest.err conftest.$ac_objext \
cannam@85 11810 conftest$ac_exeext conftest.$ac_ext
cannam@85 11811 LIBS=$ac_check_lib_save_LIBS
cannam@85 11812 fi
cannam@85 11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cannam@85 11814 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cannam@85 11815 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cannam@85 11816 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
cannam@85 11817 else
cannam@85 11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cannam@85 11819 $as_echo_n "checking for dld_link in -ldld... " >&6; }
cannam@85 11820 if ${ac_cv_lib_dld_dld_link+:} false; then :
cannam@85 11821 $as_echo_n "(cached) " >&6
cannam@85 11822 else
cannam@85 11823 ac_check_lib_save_LIBS=$LIBS
cannam@85 11824 LIBS="-ldld $LIBS"
cannam@85 11825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 11826 /* end confdefs.h. */
cannam@85 11827
cannam@85 11828 /* Override any GCC internal prototype to avoid an error.
cannam@85 11829 Use char because int might match the return type of a GCC
cannam@85 11830 builtin and then its argument prototype would still apply. */
cannam@85 11831 #ifdef __cplusplus
cannam@85 11832 extern "C"
cannam@85 11833 #endif
cannam@85 11834 char dld_link ();
cannam@85 11835 int
cannam@85 11836 main ()
cannam@85 11837 {
cannam@85 11838 return dld_link ();
cannam@85 11839 ;
cannam@85 11840 return 0;
cannam@85 11841 }
cannam@85 11842 _ACEOF
cannam@85 11843 if ac_fn_c_try_link "$LINENO"; then :
cannam@85 11844 ac_cv_lib_dld_dld_link=yes
cannam@85 11845 else
cannam@85 11846 ac_cv_lib_dld_dld_link=no
cannam@85 11847 fi
cannam@85 11848 rm -f core conftest.err conftest.$ac_objext \
cannam@85 11849 conftest$ac_exeext conftest.$ac_ext
cannam@85 11850 LIBS=$ac_check_lib_save_LIBS
cannam@85 11851 fi
cannam@85 11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cannam@85 11853 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cannam@85 11854 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cannam@85 11855 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
cannam@85 11856 fi
cannam@85 11857
cannam@85 11858
cannam@85 11859 fi
cannam@85 11860
cannam@85 11861
cannam@85 11862 fi
cannam@85 11863
cannam@85 11864
cannam@85 11865 fi
cannam@85 11866
cannam@85 11867
cannam@85 11868 fi
cannam@85 11869
cannam@85 11870
cannam@85 11871 fi
cannam@85 11872
cannam@85 11873 ;;
cannam@85 11874 esac
cannam@85 11875
cannam@85 11876 if test "x$lt_cv_dlopen" != xno; then
cannam@85 11877 enable_dlopen=yes
cannam@85 11878 else
cannam@85 11879 enable_dlopen=no
cannam@85 11880 fi
cannam@85 11881
cannam@85 11882 case $lt_cv_dlopen in
cannam@85 11883 dlopen)
cannam@85 11884 save_CPPFLAGS="$CPPFLAGS"
cannam@85 11885 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
cannam@85 11886
cannam@85 11887 save_LDFLAGS="$LDFLAGS"
cannam@85 11888 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
cannam@85 11889
cannam@85 11890 save_LIBS="$LIBS"
cannam@85 11891 LIBS="$lt_cv_dlopen_libs $LIBS"
cannam@85 11892
cannam@85 11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cannam@85 11894 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
cannam@85 11895 if ${lt_cv_dlopen_self+:} false; then :
cannam@85 11896 $as_echo_n "(cached) " >&6
cannam@85 11897 else
cannam@85 11898 if test "$cross_compiling" = yes; then :
cannam@85 11899 lt_cv_dlopen_self=cross
cannam@85 11900 else
cannam@85 11901 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@85 11902 lt_status=$lt_dlunknown
cannam@85 11903 cat > conftest.$ac_ext <<_LT_EOF
cannam@85 11904 #line $LINENO "configure"
cannam@85 11905 #include "confdefs.h"
cannam@85 11906
cannam@85 11907 #if HAVE_DLFCN_H
cannam@85 11908 #include <dlfcn.h>
cannam@85 11909 #endif
cannam@85 11910
cannam@85 11911 #include <stdio.h>
cannam@85 11912
cannam@85 11913 #ifdef RTLD_GLOBAL
cannam@85 11914 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@85 11915 #else
cannam@85 11916 # ifdef DL_GLOBAL
cannam@85 11917 # define LT_DLGLOBAL DL_GLOBAL
cannam@85 11918 # else
cannam@85 11919 # define LT_DLGLOBAL 0
cannam@85 11920 # endif
cannam@85 11921 #endif
cannam@85 11922
cannam@85 11923 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@85 11924 find out it does not work in some platform. */
cannam@85 11925 #ifndef LT_DLLAZY_OR_NOW
cannam@85 11926 # ifdef RTLD_LAZY
cannam@85 11927 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@85 11928 # else
cannam@85 11929 # ifdef DL_LAZY
cannam@85 11930 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@85 11931 # else
cannam@85 11932 # ifdef RTLD_NOW
cannam@85 11933 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@85 11934 # else
cannam@85 11935 # ifdef DL_NOW
cannam@85 11936 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@85 11937 # else
cannam@85 11938 # define LT_DLLAZY_OR_NOW 0
cannam@85 11939 # endif
cannam@85 11940 # endif
cannam@85 11941 # endif
cannam@85 11942 # endif
cannam@85 11943 #endif
cannam@85 11944
cannam@85 11945 /* When -fvisbility=hidden is used, assume the code has been annotated
cannam@85 11946 correspondingly for the symbols needed. */
cannam@85 11947 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cannam@85 11948 int fnord () __attribute__((visibility("default")));
cannam@85 11949 #endif
cannam@85 11950
cannam@85 11951 int fnord () { return 42; }
cannam@85 11952 int main ()
cannam@85 11953 {
cannam@85 11954 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@85 11955 int status = $lt_dlunknown;
cannam@85 11956
cannam@85 11957 if (self)
cannam@85 11958 {
cannam@85 11959 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@85 11960 else
cannam@85 11961 {
cannam@85 11962 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@85 11963 else puts (dlerror ());
cannam@85 11964 }
cannam@85 11965 /* dlclose (self); */
cannam@85 11966 }
cannam@85 11967 else
cannam@85 11968 puts (dlerror ());
cannam@85 11969
cannam@85 11970 return status;
cannam@85 11971 }
cannam@85 11972 _LT_EOF
cannam@85 11973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cannam@85 11974 (eval $ac_link) 2>&5
cannam@85 11975 ac_status=$?
cannam@85 11976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 11977 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cannam@85 11978 (./conftest; exit; ) >&5 2>/dev/null
cannam@85 11979 lt_status=$?
cannam@85 11980 case x$lt_status in
cannam@85 11981 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
cannam@85 11982 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
cannam@85 11983 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
cannam@85 11984 esac
cannam@85 11985 else :
cannam@85 11986 # compilation failed
cannam@85 11987 lt_cv_dlopen_self=no
cannam@85 11988 fi
cannam@85 11989 fi
cannam@85 11990 rm -fr conftest*
cannam@85 11991
cannam@85 11992
cannam@85 11993 fi
cannam@85 11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cannam@85 11995 $as_echo "$lt_cv_dlopen_self" >&6; }
cannam@85 11996
cannam@85 11997 if test "x$lt_cv_dlopen_self" = xyes; then
cannam@85 11998 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cannam@85 11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cannam@85 12000 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cannam@85 12001 if ${lt_cv_dlopen_self_static+:} false; then :
cannam@85 12002 $as_echo_n "(cached) " >&6
cannam@85 12003 else
cannam@85 12004 if test "$cross_compiling" = yes; then :
cannam@85 12005 lt_cv_dlopen_self_static=cross
cannam@85 12006 else
cannam@85 12007 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@85 12008 lt_status=$lt_dlunknown
cannam@85 12009 cat > conftest.$ac_ext <<_LT_EOF
cannam@85 12010 #line $LINENO "configure"
cannam@85 12011 #include "confdefs.h"
cannam@85 12012
cannam@85 12013 #if HAVE_DLFCN_H
cannam@85 12014 #include <dlfcn.h>
cannam@85 12015 #endif
cannam@85 12016
cannam@85 12017 #include <stdio.h>
cannam@85 12018
cannam@85 12019 #ifdef RTLD_GLOBAL
cannam@85 12020 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@85 12021 #else
cannam@85 12022 # ifdef DL_GLOBAL
cannam@85 12023 # define LT_DLGLOBAL DL_GLOBAL
cannam@85 12024 # else
cannam@85 12025 # define LT_DLGLOBAL 0
cannam@85 12026 # endif
cannam@85 12027 #endif
cannam@85 12028
cannam@85 12029 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@85 12030 find out it does not work in some platform. */
cannam@85 12031 #ifndef LT_DLLAZY_OR_NOW
cannam@85 12032 # ifdef RTLD_LAZY
cannam@85 12033 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@85 12034 # else
cannam@85 12035 # ifdef DL_LAZY
cannam@85 12036 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@85 12037 # else
cannam@85 12038 # ifdef RTLD_NOW
cannam@85 12039 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@85 12040 # else
cannam@85 12041 # ifdef DL_NOW
cannam@85 12042 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@85 12043 # else
cannam@85 12044 # define LT_DLLAZY_OR_NOW 0
cannam@85 12045 # endif
cannam@85 12046 # endif
cannam@85 12047 # endif
cannam@85 12048 # endif
cannam@85 12049 #endif
cannam@85 12050
cannam@85 12051 /* When -fvisbility=hidden is used, assume the code has been annotated
cannam@85 12052 correspondingly for the symbols needed. */
cannam@85 12053 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cannam@85 12054 int fnord () __attribute__((visibility("default")));
cannam@85 12055 #endif
cannam@85 12056
cannam@85 12057 int fnord () { return 42; }
cannam@85 12058 int main ()
cannam@85 12059 {
cannam@85 12060 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@85 12061 int status = $lt_dlunknown;
cannam@85 12062
cannam@85 12063 if (self)
cannam@85 12064 {
cannam@85 12065 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@85 12066 else
cannam@85 12067 {
cannam@85 12068 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@85 12069 else puts (dlerror ());
cannam@85 12070 }
cannam@85 12071 /* dlclose (self); */
cannam@85 12072 }
cannam@85 12073 else
cannam@85 12074 puts (dlerror ());
cannam@85 12075
cannam@85 12076 return status;
cannam@85 12077 }
cannam@85 12078 _LT_EOF
cannam@85 12079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cannam@85 12080 (eval $ac_link) 2>&5
cannam@85 12081 ac_status=$?
cannam@85 12082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 12083 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cannam@85 12084 (./conftest; exit; ) >&5 2>/dev/null
cannam@85 12085 lt_status=$?
cannam@85 12086 case x$lt_status in
cannam@85 12087 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@85 12088 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@85 12089 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
cannam@85 12090 esac
cannam@85 12091 else :
cannam@85 12092 # compilation failed
cannam@85 12093 lt_cv_dlopen_self_static=no
cannam@85 12094 fi
cannam@85 12095 fi
cannam@85 12096 rm -fr conftest*
cannam@85 12097
cannam@85 12098
cannam@85 12099 fi
cannam@85 12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cannam@85 12101 $as_echo "$lt_cv_dlopen_self_static" >&6; }
cannam@85 12102 fi
cannam@85 12103
cannam@85 12104 CPPFLAGS="$save_CPPFLAGS"
cannam@85 12105 LDFLAGS="$save_LDFLAGS"
cannam@85 12106 LIBS="$save_LIBS"
cannam@85 12107 ;;
cannam@85 12108 esac
cannam@85 12109
cannam@85 12110 case $lt_cv_dlopen_self in
cannam@85 12111 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
cannam@85 12112 *) enable_dlopen_self=unknown ;;
cannam@85 12113 esac
cannam@85 12114
cannam@85 12115 case $lt_cv_dlopen_self_static in
cannam@85 12116 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
cannam@85 12117 *) enable_dlopen_self_static=unknown ;;
cannam@85 12118 esac
cannam@85 12119 fi
cannam@85 12120
cannam@85 12121
cannam@85 12122
cannam@85 12123
cannam@85 12124
cannam@85 12125
cannam@85 12126
cannam@85 12127
cannam@85 12128
cannam@85 12129
cannam@85 12130
cannam@85 12131
cannam@85 12132
cannam@85 12133
cannam@85 12134
cannam@85 12135
cannam@85 12136
cannam@85 12137 striplib=
cannam@85 12138 old_striplib=
cannam@85 12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cannam@85 12140 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
cannam@85 12141 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
cannam@85 12142 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
cannam@85 12143 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cannam@85 12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@85 12145 $as_echo "yes" >&6; }
cannam@85 12146 else
cannam@85 12147 # FIXME - insert some real tests, host_os isn't really good enough
cannam@85 12148 case $host_os in
cannam@85 12149 darwin*)
cannam@85 12150 if test -n "$STRIP" ; then
cannam@85 12151 striplib="$STRIP -x"
cannam@85 12152 old_striplib="$STRIP -S"
cannam@85 12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@85 12154 $as_echo "yes" >&6; }
cannam@85 12155 else
cannam@85 12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 12157 $as_echo "no" >&6; }
cannam@85 12158 fi
cannam@85 12159 ;;
cannam@85 12160 *)
cannam@85 12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 12162 $as_echo "no" >&6; }
cannam@85 12163 ;;
cannam@85 12164 esac
cannam@85 12165 fi
cannam@85 12166
cannam@85 12167
cannam@85 12168
cannam@85 12169
cannam@85 12170
cannam@85 12171
cannam@85 12172
cannam@85 12173
cannam@85 12174
cannam@85 12175
cannam@85 12176
cannam@85 12177
cannam@85 12178 # Report which library types will actually be built
cannam@85 12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cannam@85 12180 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
cannam@85 12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cannam@85 12182 $as_echo "$can_build_shared" >&6; }
cannam@85 12183
cannam@85 12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cannam@85 12185 $as_echo_n "checking whether to build shared libraries... " >&6; }
cannam@85 12186 test "$can_build_shared" = "no" && enable_shared=no
cannam@85 12187
cannam@85 12188 # On AIX, shared libraries and static libraries use the same namespace, and
cannam@85 12189 # are all built from PIC.
cannam@85 12190 case $host_os in
cannam@85 12191 aix3*)
cannam@85 12192 test "$enable_shared" = yes && enable_static=no
cannam@85 12193 if test -n "$RANLIB"; then
cannam@85 12194 archive_cmds="$archive_cmds~\$RANLIB \$lib"
cannam@85 12195 postinstall_cmds='$RANLIB $lib'
cannam@85 12196 fi
cannam@85 12197 ;;
cannam@85 12198
cannam@85 12199 aix[4-9]*)
cannam@85 12200 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
cannam@85 12201 test "$enable_shared" = yes && enable_static=no
cannam@85 12202 fi
cannam@85 12203 ;;
cannam@85 12204 esac
cannam@85 12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cannam@85 12206 $as_echo "$enable_shared" >&6; }
cannam@85 12207
cannam@85 12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cannam@85 12209 $as_echo_n "checking whether to build static libraries... " >&6; }
cannam@85 12210 # Make sure either enable_shared or enable_static is yes.
cannam@85 12211 test "$enable_shared" = yes || enable_static=yes
cannam@85 12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cannam@85 12213 $as_echo "$enable_static" >&6; }
cannam@85 12214
cannam@85 12215
cannam@85 12216
cannam@85 12217
cannam@85 12218 fi
cannam@85 12219 ac_ext=c
cannam@85 12220 ac_cpp='$CPP $CPPFLAGS'
cannam@85 12221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 12222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 12223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 12224
cannam@85 12225 CC="$lt_save_CC"
cannam@85 12226
cannam@85 12227 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
cannam@85 12228 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
cannam@85 12229 (test "X$CXX" != "Xg++"))) ; then
cannam@85 12230 ac_ext=cpp
cannam@85 12231 ac_cpp='$CXXCPP $CPPFLAGS'
cannam@85 12232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 12233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 12234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cannam@85 12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
cannam@85 12236 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
cannam@85 12237 if test -z "$CXXCPP"; then
cannam@85 12238 if ${ac_cv_prog_CXXCPP+:} false; then :
cannam@85 12239 $as_echo_n "(cached) " >&6
cannam@85 12240 else
cannam@85 12241 # Double quotes because CXXCPP needs to be expanded
cannam@85 12242 for CXXCPP in "$CXX -E" "/lib/cpp"
cannam@85 12243 do
cannam@85 12244 ac_preproc_ok=false
cannam@85 12245 for ac_cxx_preproc_warn_flag in '' yes
cannam@85 12246 do
cannam@85 12247 # Use a header file that comes with gcc, so configuring glibc
cannam@85 12248 # with a fresh cross-compiler works.
cannam@85 12249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 12250 # <limits.h> exists even on freestanding compilers.
cannam@85 12251 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@85 12252 # not just through cpp. "Syntax error" is here to catch this case.
cannam@85 12253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 12254 /* end confdefs.h. */
cannam@85 12255 #ifdef __STDC__
cannam@85 12256 # include <limits.h>
cannam@85 12257 #else
cannam@85 12258 # include <assert.h>
cannam@85 12259 #endif
cannam@85 12260 Syntax error
cannam@85 12261 _ACEOF
cannam@85 12262 if ac_fn_cxx_try_cpp "$LINENO"; then :
cannam@85 12263
cannam@85 12264 else
cannam@85 12265 # Broken: fails on valid input.
cannam@85 12266 continue
cannam@85 12267 fi
cannam@85 12268 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@85 12269
cannam@85 12270 # OK, works on sane cases. Now check whether nonexistent headers
cannam@85 12271 # can be detected and how.
cannam@85 12272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 12273 /* end confdefs.h. */
cannam@85 12274 #include <ac_nonexistent.h>
cannam@85 12275 _ACEOF
cannam@85 12276 if ac_fn_cxx_try_cpp "$LINENO"; then :
cannam@85 12277 # Broken: success on invalid input.
cannam@85 12278 continue
cannam@85 12279 else
cannam@85 12280 # Passes both tests.
cannam@85 12281 ac_preproc_ok=:
cannam@85 12282 break
cannam@85 12283 fi
cannam@85 12284 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@85 12285
cannam@85 12286 done
cannam@85 12287 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@85 12288 rm -f conftest.i conftest.err conftest.$ac_ext
cannam@85 12289 if $ac_preproc_ok; then :
cannam@85 12290 break
cannam@85 12291 fi
cannam@85 12292
cannam@85 12293 done
cannam@85 12294 ac_cv_prog_CXXCPP=$CXXCPP
cannam@85 12295
cannam@85 12296 fi
cannam@85 12297 CXXCPP=$ac_cv_prog_CXXCPP
cannam@85 12298 else
cannam@85 12299 ac_cv_prog_CXXCPP=$CXXCPP
cannam@85 12300 fi
cannam@85 12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
cannam@85 12302 $as_echo "$CXXCPP" >&6; }
cannam@85 12303 ac_preproc_ok=false
cannam@85 12304 for ac_cxx_preproc_warn_flag in '' yes
cannam@85 12305 do
cannam@85 12306 # Use a header file that comes with gcc, so configuring glibc
cannam@85 12307 # with a fresh cross-compiler works.
cannam@85 12308 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 12309 # <limits.h> exists even on freestanding compilers.
cannam@85 12310 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@85 12311 # not just through cpp. "Syntax error" is here to catch this case.
cannam@85 12312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 12313 /* end confdefs.h. */
cannam@85 12314 #ifdef __STDC__
cannam@85 12315 # include <limits.h>
cannam@85 12316 #else
cannam@85 12317 # include <assert.h>
cannam@85 12318 #endif
cannam@85 12319 Syntax error
cannam@85 12320 _ACEOF
cannam@85 12321 if ac_fn_cxx_try_cpp "$LINENO"; then :
cannam@85 12322
cannam@85 12323 else
cannam@85 12324 # Broken: fails on valid input.
cannam@85 12325 continue
cannam@85 12326 fi
cannam@85 12327 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@85 12328
cannam@85 12329 # OK, works on sane cases. Now check whether nonexistent headers
cannam@85 12330 # can be detected and how.
cannam@85 12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 12332 /* end confdefs.h. */
cannam@85 12333 #include <ac_nonexistent.h>
cannam@85 12334 _ACEOF
cannam@85 12335 if ac_fn_cxx_try_cpp "$LINENO"; then :
cannam@85 12336 # Broken: success on invalid input.
cannam@85 12337 continue
cannam@85 12338 else
cannam@85 12339 # Passes both tests.
cannam@85 12340 ac_preproc_ok=:
cannam@85 12341 break
cannam@85 12342 fi
cannam@85 12343 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@85 12344
cannam@85 12345 done
cannam@85 12346 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@85 12347 rm -f conftest.i conftest.err conftest.$ac_ext
cannam@85 12348 if $ac_preproc_ok; then :
cannam@85 12349
cannam@85 12350 else
cannam@85 12351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@85 12352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@85 12353 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
cannam@85 12354 See \`config.log' for more details" "$LINENO" 5; }
cannam@85 12355 fi
cannam@85 12356
cannam@85 12357 ac_ext=c
cannam@85 12358 ac_cpp='$CPP $CPPFLAGS'
cannam@85 12359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 12360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 12361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 12362
cannam@85 12363 else
cannam@85 12364 _lt_caught_CXX_error=yes
cannam@85 12365 fi
cannam@85 12366
cannam@85 12367 ac_ext=cpp
cannam@85 12368 ac_cpp='$CXXCPP $CPPFLAGS'
cannam@85 12369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 12370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 12371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cannam@85 12372
cannam@85 12373 archive_cmds_need_lc_CXX=no
cannam@85 12374 allow_undefined_flag_CXX=
cannam@85 12375 always_export_symbols_CXX=no
cannam@85 12376 archive_expsym_cmds_CXX=
cannam@85 12377 compiler_needs_object_CXX=no
cannam@85 12378 export_dynamic_flag_spec_CXX=
cannam@85 12379 hardcode_direct_CXX=no
cannam@85 12380 hardcode_direct_absolute_CXX=no
cannam@85 12381 hardcode_libdir_flag_spec_CXX=
cannam@85 12382 hardcode_libdir_flag_spec_ld_CXX=
cannam@85 12383 hardcode_libdir_separator_CXX=
cannam@85 12384 hardcode_minus_L_CXX=no
cannam@85 12385 hardcode_shlibpath_var_CXX=unsupported
cannam@85 12386 hardcode_automatic_CXX=no
cannam@85 12387 inherit_rpath_CXX=no
cannam@85 12388 module_cmds_CXX=
cannam@85 12389 module_expsym_cmds_CXX=
cannam@85 12390 link_all_deplibs_CXX=unknown
cannam@85 12391 old_archive_cmds_CXX=$old_archive_cmds
cannam@85 12392 reload_flag_CXX=$reload_flag
cannam@85 12393 reload_cmds_CXX=$reload_cmds
cannam@85 12394 no_undefined_flag_CXX=
cannam@85 12395 whole_archive_flag_spec_CXX=
cannam@85 12396 enable_shared_with_static_runtimes_CXX=no
cannam@85 12397
cannam@85 12398 # Source file extension for C++ test sources.
cannam@85 12399 ac_ext=cpp
cannam@85 12400
cannam@85 12401 # Object file extension for compiled C++ test sources.
cannam@85 12402 objext=o
cannam@85 12403 objext_CXX=$objext
cannam@85 12404
cannam@85 12405 # No sense in running all these tests if we already determined that
cannam@85 12406 # the CXX compiler isn't working. Some variables (like enable_shared)
cannam@85 12407 # are currently assumed to apply to all compilers on this platform,
cannam@85 12408 # and will be corrupted by setting them based on a non-working compiler.
cannam@85 12409 if test "$_lt_caught_CXX_error" != yes; then
cannam@85 12410 # Code to be used in simple compile tests
cannam@85 12411 lt_simple_compile_test_code="int some_variable = 0;"
cannam@85 12412
cannam@85 12413 # Code to be used in simple link tests
cannam@85 12414 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
cannam@85 12415
cannam@85 12416 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
cannam@85 12417
cannam@85 12418
cannam@85 12419
cannam@85 12420
cannam@85 12421
cannam@85 12422
cannam@85 12423 # If no C compiler was specified, use CC.
cannam@85 12424 LTCC=${LTCC-"$CC"}
cannam@85 12425
cannam@85 12426 # If no C compiler flags were specified, use CFLAGS.
cannam@85 12427 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cannam@85 12428
cannam@85 12429 # Allow CC to be a program name with arguments.
cannam@85 12430 compiler=$CC
cannam@85 12431
cannam@85 12432
cannam@85 12433 # save warnings/boilerplate of simple test code
cannam@85 12434 ac_outfile=conftest.$ac_objext
cannam@85 12435 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
cannam@85 12436 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@85 12437 _lt_compiler_boilerplate=`cat conftest.err`
cannam@85 12438 $RM conftest*
cannam@85 12439
cannam@85 12440 ac_outfile=conftest.$ac_objext
cannam@85 12441 echo "$lt_simple_link_test_code" >conftest.$ac_ext
cannam@85 12442 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@85 12443 _lt_linker_boilerplate=`cat conftest.err`
cannam@85 12444 $RM -r conftest*
cannam@85 12445
cannam@85 12446
cannam@85 12447 # Allow CC to be a program name with arguments.
cannam@85 12448 lt_save_CC=$CC
cannam@85 12449 lt_save_CFLAGS=$CFLAGS
cannam@85 12450 lt_save_LD=$LD
cannam@85 12451 lt_save_GCC=$GCC
cannam@85 12452 GCC=$GXX
cannam@85 12453 lt_save_with_gnu_ld=$with_gnu_ld
cannam@85 12454 lt_save_path_LD=$lt_cv_path_LD
cannam@85 12455 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
cannam@85 12456 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
cannam@85 12457 else
cannam@85 12458 $as_unset lt_cv_prog_gnu_ld
cannam@85 12459 fi
cannam@85 12460 if test -n "${lt_cv_path_LDCXX+set}"; then
cannam@85 12461 lt_cv_path_LD=$lt_cv_path_LDCXX
cannam@85 12462 else
cannam@85 12463 $as_unset lt_cv_path_LD
cannam@85 12464 fi
cannam@85 12465 test -z "${LDCXX+set}" || LD=$LDCXX
cannam@85 12466 CC=${CXX-"c++"}
cannam@85 12467 CFLAGS=$CXXFLAGS
cannam@85 12468 compiler=$CC
cannam@85 12469 compiler_CXX=$CC
cannam@85 12470 for cc_temp in $compiler""; do
cannam@85 12471 case $cc_temp in
cannam@85 12472 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
cannam@85 12473 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
cannam@85 12474 \-*) ;;
cannam@85 12475 *) break;;
cannam@85 12476 esac
cannam@85 12477 done
cannam@85 12478 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cannam@85 12479
cannam@85 12480
cannam@85 12481 if test -n "$compiler"; then
cannam@85 12482 # We don't want -fno-exception when compiling C++ code, so set the
cannam@85 12483 # no_builtin_flag separately
cannam@85 12484 if test "$GXX" = yes; then
cannam@85 12485 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
cannam@85 12486 else
cannam@85 12487 lt_prog_compiler_no_builtin_flag_CXX=
cannam@85 12488 fi
cannam@85 12489
cannam@85 12490 if test "$GXX" = yes; then
cannam@85 12491 # Set up default GNU C++ configuration
cannam@85 12492
cannam@85 12493
cannam@85 12494
cannam@85 12495 # Check whether --with-gnu-ld was given.
cannam@85 12496 if test "${with_gnu_ld+set}" = set; then :
cannam@85 12497 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
cannam@85 12498 else
cannam@85 12499 with_gnu_ld=no
cannam@85 12500 fi
cannam@85 12501
cannam@85 12502 ac_prog=ld
cannam@85 12503 if test "$GCC" = yes; then
cannam@85 12504 # Check if gcc -print-prog-name=ld gives a path.
cannam@85 12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cannam@85 12506 $as_echo_n "checking for ld used by $CC... " >&6; }
cannam@85 12507 case $host in
cannam@85 12508 *-*-mingw*)
cannam@85 12509 # gcc leaves a trailing carriage return which upsets mingw
cannam@85 12510 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
cannam@85 12511 *)
cannam@85 12512 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
cannam@85 12513 esac
cannam@85 12514 case $ac_prog in
cannam@85 12515 # Accept absolute paths.
cannam@85 12516 [\\/]* | ?:[\\/]*)
cannam@85 12517 re_direlt='/[^/][^/]*/\.\./'
cannam@85 12518 # Canonicalize the pathname of ld
cannam@85 12519 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
cannam@85 12520 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
cannam@85 12521 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cannam@85 12522 done
cannam@85 12523 test -z "$LD" && LD="$ac_prog"
cannam@85 12524 ;;
cannam@85 12525 "")
cannam@85 12526 # If it fails, then pretend we aren't using GCC.
cannam@85 12527 ac_prog=ld
cannam@85 12528 ;;
cannam@85 12529 *)
cannam@85 12530 # If it is relative, then search for the first ld in PATH.
cannam@85 12531 with_gnu_ld=unknown
cannam@85 12532 ;;
cannam@85 12533 esac
cannam@85 12534 elif test "$with_gnu_ld" = yes; then
cannam@85 12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cannam@85 12536 $as_echo_n "checking for GNU ld... " >&6; }
cannam@85 12537 else
cannam@85 12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cannam@85 12539 $as_echo_n "checking for non-GNU ld... " >&6; }
cannam@85 12540 fi
cannam@85 12541 if ${lt_cv_path_LD+:} false; then :
cannam@85 12542 $as_echo_n "(cached) " >&6
cannam@85 12543 else
cannam@85 12544 if test -z "$LD"; then
cannam@85 12545 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@85 12546 for ac_dir in $PATH; do
cannam@85 12547 IFS="$lt_save_ifs"
cannam@85 12548 test -z "$ac_dir" && ac_dir=.
cannam@85 12549 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
cannam@85 12550 lt_cv_path_LD="$ac_dir/$ac_prog"
cannam@85 12551 # Check to see if the program is GNU ld. I'd rather use --version,
cannam@85 12552 # but apparently some variants of GNU ld only accept -v.
cannam@85 12553 # Break only if it was the GNU/non-GNU ld that we prefer.
cannam@85 12554 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
cannam@85 12555 *GNU* | *'with BFD'*)
cannam@85 12556 test "$with_gnu_ld" != no && break
cannam@85 12557 ;;
cannam@85 12558 *)
cannam@85 12559 test "$with_gnu_ld" != yes && break
cannam@85 12560 ;;
cannam@85 12561 esac
cannam@85 12562 fi
cannam@85 12563 done
cannam@85 12564 IFS="$lt_save_ifs"
cannam@85 12565 else
cannam@85 12566 lt_cv_path_LD="$LD" # Let the user override the test with a path.
cannam@85 12567 fi
cannam@85 12568 fi
cannam@85 12569
cannam@85 12570 LD="$lt_cv_path_LD"
cannam@85 12571 if test -n "$LD"; then
cannam@85 12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cannam@85 12573 $as_echo "$LD" >&6; }
cannam@85 12574 else
cannam@85 12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 12576 $as_echo "no" >&6; }
cannam@85 12577 fi
cannam@85 12578 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cannam@85 12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cannam@85 12580 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cannam@85 12581 if ${lt_cv_prog_gnu_ld+:} false; then :
cannam@85 12582 $as_echo_n "(cached) " >&6
cannam@85 12583 else
cannam@85 12584 # I'd rather use --version here, but apparently some GNU lds only accept -v.
cannam@85 12585 case `$LD -v 2>&1 </dev/null` in
cannam@85 12586 *GNU* | *'with BFD'*)
cannam@85 12587 lt_cv_prog_gnu_ld=yes
cannam@85 12588 ;;
cannam@85 12589 *)
cannam@85 12590 lt_cv_prog_gnu_ld=no
cannam@85 12591 ;;
cannam@85 12592 esac
cannam@85 12593 fi
cannam@85 12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cannam@85 12595 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
cannam@85 12596 with_gnu_ld=$lt_cv_prog_gnu_ld
cannam@85 12597
cannam@85 12598
cannam@85 12599
cannam@85 12600
cannam@85 12601
cannam@85 12602
cannam@85 12603
cannam@85 12604 # Check if GNU C++ uses GNU ld as the underlying linker, since the
cannam@85 12605 # archiving commands below assume that GNU ld is being used.
cannam@85 12606 if test "$with_gnu_ld" = yes; then
cannam@85 12607 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 12608 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@85 12609
cannam@85 12610 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
cannam@85 12611 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cannam@85 12612
cannam@85 12613 # If archive_cmds runs LD, not CC, wlarc should be empty
cannam@85 12614 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
cannam@85 12615 # investigate it a little bit more. (MM)
cannam@85 12616 wlarc='${wl}'
cannam@85 12617
cannam@85 12618 # ancient GNU ld didn't support --whole-archive et. al.
cannam@85 12619 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
cannam@85 12620 $GREP 'no-whole-archive' > /dev/null; then
cannam@85 12621 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
cannam@85 12622 else
cannam@85 12623 whole_archive_flag_spec_CXX=
cannam@85 12624 fi
cannam@85 12625 else
cannam@85 12626 with_gnu_ld=no
cannam@85 12627 wlarc=
cannam@85 12628
cannam@85 12629 # A generic and very simple default shared library creation
cannam@85 12630 # command for GNU C++ for the case where it uses the native
cannam@85 12631 # linker, instead of GNU ld. If possible, this setting should
cannam@85 12632 # overridden to take advantage of the native linker features on
cannam@85 12633 # the platform it is being used on.
cannam@85 12634 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
cannam@85 12635 fi
cannam@85 12636
cannam@85 12637 # Commands to make compiler produce verbose output that lists
cannam@85 12638 # what "hidden" libraries, object files and flags are used when
cannam@85 12639 # linking a shared library.
cannam@85 12640 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cannam@85 12641
cannam@85 12642 else
cannam@85 12643 GXX=no
cannam@85 12644 with_gnu_ld=no
cannam@85 12645 wlarc=
cannam@85 12646 fi
cannam@85 12647
cannam@85 12648 # PORTME: fill in a description of your system's C++ link characteristics
cannam@85 12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@85 12650 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
cannam@85 12651 ld_shlibs_CXX=yes
cannam@85 12652 case $host_os in
cannam@85 12653 aix3*)
cannam@85 12654 # FIXME: insert proper C++ library support
cannam@85 12655 ld_shlibs_CXX=no
cannam@85 12656 ;;
cannam@85 12657 aix[4-9]*)
cannam@85 12658 if test "$host_cpu" = ia64; then
cannam@85 12659 # On IA64, the linker does run time linking by default, so we don't
cannam@85 12660 # have to do anything special.
cannam@85 12661 aix_use_runtimelinking=no
cannam@85 12662 exp_sym_flag='-Bexport'
cannam@85 12663 no_entry_flag=""
cannam@85 12664 else
cannam@85 12665 aix_use_runtimelinking=no
cannam@85 12666
cannam@85 12667 # Test if we are trying to use run time linking or normal
cannam@85 12668 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cannam@85 12669 # need to do runtime linking.
cannam@85 12670 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
cannam@85 12671 for ld_flag in $LDFLAGS; do
cannam@85 12672 case $ld_flag in
cannam@85 12673 *-brtl*)
cannam@85 12674 aix_use_runtimelinking=yes
cannam@85 12675 break
cannam@85 12676 ;;
cannam@85 12677 esac
cannam@85 12678 done
cannam@85 12679 ;;
cannam@85 12680 esac
cannam@85 12681
cannam@85 12682 exp_sym_flag='-bexport'
cannam@85 12683 no_entry_flag='-bnoentry'
cannam@85 12684 fi
cannam@85 12685
cannam@85 12686 # When large executables or shared objects are built, AIX ld can
cannam@85 12687 # have problems creating the table of contents. If linking a library
cannam@85 12688 # or program results in "error TOC overflow" add -mminimal-toc to
cannam@85 12689 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
cannam@85 12690 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
cannam@85 12691
cannam@85 12692 archive_cmds_CXX=''
cannam@85 12693 hardcode_direct_CXX=yes
cannam@85 12694 hardcode_direct_absolute_CXX=yes
cannam@85 12695 hardcode_libdir_separator_CXX=':'
cannam@85 12696 link_all_deplibs_CXX=yes
cannam@85 12697 file_list_spec_CXX='${wl}-f,'
cannam@85 12698
cannam@85 12699 if test "$GXX" = yes; then
cannam@85 12700 case $host_os in aix4.[012]|aix4.[012].*)
cannam@85 12701 # We only want to do this on AIX 4.2 and lower, the check
cannam@85 12702 # below for broken collect2 doesn't work under 4.3+
cannam@85 12703 collect2name=`${CC} -print-prog-name=collect2`
cannam@85 12704 if test -f "$collect2name" &&
cannam@85 12705 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
cannam@85 12706 then
cannam@85 12707 # We have reworked collect2
cannam@85 12708 :
cannam@85 12709 else
cannam@85 12710 # We have old collect2
cannam@85 12711 hardcode_direct_CXX=unsupported
cannam@85 12712 # It fails to find uninstalled libraries when the uninstalled
cannam@85 12713 # path is not listed in the libpath. Setting hardcode_minus_L
cannam@85 12714 # to unsupported forces relinking
cannam@85 12715 hardcode_minus_L_CXX=yes
cannam@85 12716 hardcode_libdir_flag_spec_CXX='-L$libdir'
cannam@85 12717 hardcode_libdir_separator_CXX=
cannam@85 12718 fi
cannam@85 12719 esac
cannam@85 12720 shared_flag='-shared'
cannam@85 12721 if test "$aix_use_runtimelinking" = yes; then
cannam@85 12722 shared_flag="$shared_flag "'${wl}-G'
cannam@85 12723 fi
cannam@85 12724 else
cannam@85 12725 # not using gcc
cannam@85 12726 if test "$host_cpu" = ia64; then
cannam@85 12727 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
cannam@85 12728 # chokes on -Wl,-G. The following line is correct:
cannam@85 12729 shared_flag='-G'
cannam@85 12730 else
cannam@85 12731 if test "$aix_use_runtimelinking" = yes; then
cannam@85 12732 shared_flag='${wl}-G'
cannam@85 12733 else
cannam@85 12734 shared_flag='${wl}-bM:SRE'
cannam@85 12735 fi
cannam@85 12736 fi
cannam@85 12737 fi
cannam@85 12738
cannam@85 12739 export_dynamic_flag_spec_CXX='${wl}-bexpall'
cannam@85 12740 # It seems that -bexpall does not export symbols beginning with
cannam@85 12741 # underscore (_), so it is better to generate a list of symbols to
cannam@85 12742 # export.
cannam@85 12743 always_export_symbols_CXX=yes
cannam@85 12744 if test "$aix_use_runtimelinking" = yes; then
cannam@85 12745 # Warning - without using the other runtime loading flags (-brtl),
cannam@85 12746 # -berok will link without error, but may produce a broken library.
cannam@85 12747 allow_undefined_flag_CXX='-berok'
cannam@85 12748 # Determine the default libpath from the value encoded in an empty
cannam@85 12749 # executable.
cannam@85 12750 if test "${lt_cv_aix_libpath+set}" = set; then
cannam@85 12751 aix_libpath=$lt_cv_aix_libpath
cannam@85 12752 else
cannam@85 12753 if ${lt_cv_aix_libpath__CXX+:} false; then :
cannam@85 12754 $as_echo_n "(cached) " >&6
cannam@85 12755 else
cannam@85 12756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 12757 /* end confdefs.h. */
cannam@85 12758
cannam@85 12759 int
cannam@85 12760 main ()
cannam@85 12761 {
cannam@85 12762
cannam@85 12763 ;
cannam@85 12764 return 0;
cannam@85 12765 }
cannam@85 12766 _ACEOF
cannam@85 12767 if ac_fn_cxx_try_link "$LINENO"; then :
cannam@85 12768
cannam@85 12769 lt_aix_libpath_sed='
cannam@85 12770 /Import File Strings/,/^$/ {
cannam@85 12771 /^0/ {
cannam@85 12772 s/^0 *\([^ ]*\) *$/\1/
cannam@85 12773 p
cannam@85 12774 }
cannam@85 12775 }'
cannam@85 12776 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@85 12777 # Check for a 64-bit object if we didn't find anything.
cannam@85 12778 if test -z "$lt_cv_aix_libpath__CXX"; then
cannam@85 12779 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@85 12780 fi
cannam@85 12781 fi
cannam@85 12782 rm -f core conftest.err conftest.$ac_objext \
cannam@85 12783 conftest$ac_exeext conftest.$ac_ext
cannam@85 12784 if test -z "$lt_cv_aix_libpath__CXX"; then
cannam@85 12785 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
cannam@85 12786 fi
cannam@85 12787
cannam@85 12788 fi
cannam@85 12789
cannam@85 12790 aix_libpath=$lt_cv_aix_libpath__CXX
cannam@85 12791 fi
cannam@85 12792
cannam@85 12793 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@85 12794
cannam@85 12795 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@85 12796 else
cannam@85 12797 if test "$host_cpu" = ia64; then
cannam@85 12798 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
cannam@85 12799 allow_undefined_flag_CXX="-z nodefs"
cannam@85 12800 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@85 12801 else
cannam@85 12802 # Determine the default libpath from the value encoded in an
cannam@85 12803 # empty executable.
cannam@85 12804 if test "${lt_cv_aix_libpath+set}" = set; then
cannam@85 12805 aix_libpath=$lt_cv_aix_libpath
cannam@85 12806 else
cannam@85 12807 if ${lt_cv_aix_libpath__CXX+:} false; then :
cannam@85 12808 $as_echo_n "(cached) " >&6
cannam@85 12809 else
cannam@85 12810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 12811 /* end confdefs.h. */
cannam@85 12812
cannam@85 12813 int
cannam@85 12814 main ()
cannam@85 12815 {
cannam@85 12816
cannam@85 12817 ;
cannam@85 12818 return 0;
cannam@85 12819 }
cannam@85 12820 _ACEOF
cannam@85 12821 if ac_fn_cxx_try_link "$LINENO"; then :
cannam@85 12822
cannam@85 12823 lt_aix_libpath_sed='
cannam@85 12824 /Import File Strings/,/^$/ {
cannam@85 12825 /^0/ {
cannam@85 12826 s/^0 *\([^ ]*\) *$/\1/
cannam@85 12827 p
cannam@85 12828 }
cannam@85 12829 }'
cannam@85 12830 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@85 12831 # Check for a 64-bit object if we didn't find anything.
cannam@85 12832 if test -z "$lt_cv_aix_libpath__CXX"; then
cannam@85 12833 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@85 12834 fi
cannam@85 12835 fi
cannam@85 12836 rm -f core conftest.err conftest.$ac_objext \
cannam@85 12837 conftest$ac_exeext conftest.$ac_ext
cannam@85 12838 if test -z "$lt_cv_aix_libpath__CXX"; then
cannam@85 12839 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
cannam@85 12840 fi
cannam@85 12841
cannam@85 12842 fi
cannam@85 12843
cannam@85 12844 aix_libpath=$lt_cv_aix_libpath__CXX
cannam@85 12845 fi
cannam@85 12846
cannam@85 12847 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@85 12848 # Warning - without using the other run time loading flags,
cannam@85 12849 # -berok will link without error, but may produce a broken library.
cannam@85 12850 no_undefined_flag_CXX=' ${wl}-bernotok'
cannam@85 12851 allow_undefined_flag_CXX=' ${wl}-berok'
cannam@85 12852 if test "$with_gnu_ld" = yes; then
cannam@85 12853 # We only use this code for GNU lds that support --whole-archive.
cannam@85 12854 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
cannam@85 12855 else
cannam@85 12856 # Exported symbols can be pulled into shared objects from archives
cannam@85 12857 whole_archive_flag_spec_CXX='$convenience'
cannam@85 12858 fi
cannam@85 12859 archive_cmds_need_lc_CXX=yes
cannam@85 12860 # This is similar to how AIX traditionally builds its shared
cannam@85 12861 # libraries.
cannam@85 12862 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@85 12863 fi
cannam@85 12864 fi
cannam@85 12865 ;;
cannam@85 12866
cannam@85 12867 beos*)
cannam@85 12868 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@85 12869 allow_undefined_flag_CXX=unsupported
cannam@85 12870 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
cannam@85 12871 # support --undefined. This deserves some investigation. FIXME
cannam@85 12872 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 12873 else
cannam@85 12874 ld_shlibs_CXX=no
cannam@85 12875 fi
cannam@85 12876 ;;
cannam@85 12877
cannam@85 12878 chorus*)
cannam@85 12879 case $cc_basename in
cannam@85 12880 *)
cannam@85 12881 # FIXME: insert proper C++ library support
cannam@85 12882 ld_shlibs_CXX=no
cannam@85 12883 ;;
cannam@85 12884 esac
cannam@85 12885 ;;
cannam@85 12886
cannam@85 12887 cygwin* | mingw* | pw32* | cegcc*)
cannam@85 12888 case $GXX,$cc_basename in
cannam@85 12889 ,cl* | no,cl*)
cannam@85 12890 # Native MSVC
cannam@85 12891 # hardcode_libdir_flag_spec is actually meaningless, as there is
cannam@85 12892 # no search path for DLLs.
cannam@85 12893 hardcode_libdir_flag_spec_CXX=' '
cannam@85 12894 allow_undefined_flag_CXX=unsupported
cannam@85 12895 always_export_symbols_CXX=yes
cannam@85 12896 file_list_spec_CXX='@'
cannam@85 12897 # Tell ltmain to make .lib files, not .a files.
cannam@85 12898 libext=lib
cannam@85 12899 # Tell ltmain to make .dll files, not .so files.
cannam@85 12900 shrext_cmds=".dll"
cannam@85 12901 # FIXME: Setting linknames here is a bad hack.
cannam@85 12902 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
cannam@85 12903 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@85 12904 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
cannam@85 12905 else
cannam@85 12906 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
cannam@85 12907 fi~
cannam@85 12908 $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@85 12909 linknames='
cannam@85 12910 # The linker will not automatically build a static lib if we build a DLL.
cannam@85 12911 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
cannam@85 12912 enable_shared_with_static_runtimes_CXX=yes
cannam@85 12913 # Don't use ranlib
cannam@85 12914 old_postinstall_cmds_CXX='chmod 644 $oldlib'
cannam@85 12915 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
cannam@85 12916 lt_tool_outputfile="@TOOL_OUTPUT@"~
cannam@85 12917 case $lt_outputfile in
cannam@85 12918 *.exe|*.EXE) ;;
cannam@85 12919 *)
cannam@85 12920 lt_outputfile="$lt_outputfile.exe"
cannam@85 12921 lt_tool_outputfile="$lt_tool_outputfile.exe"
cannam@85 12922 ;;
cannam@85 12923 esac~
cannam@85 12924 func_to_tool_file "$lt_outputfile"~
cannam@85 12925 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
cannam@85 12926 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
cannam@85 12927 $RM "$lt_outputfile.manifest";
cannam@85 12928 fi'
cannam@85 12929 ;;
cannam@85 12930 *)
cannam@85 12931 # g++
cannam@85 12932 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
cannam@85 12933 # as there is no search path for DLLs.
cannam@85 12934 hardcode_libdir_flag_spec_CXX='-L$libdir'
cannam@85 12935 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
cannam@85 12936 allow_undefined_flag_CXX=unsupported
cannam@85 12937 always_export_symbols_CXX=no
cannam@85 12938 enable_shared_with_static_runtimes_CXX=yes
cannam@85 12939
cannam@85 12940 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
cannam@85 12941 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@85 12942 # If the export-symbols file already is a .def file (1st line
cannam@85 12943 # is EXPORTS), use it as is; otherwise, prepend...
cannam@85 12944 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@85 12945 cp $export_symbols $output_objdir/$soname.def;
cannam@85 12946 else
cannam@85 12947 echo EXPORTS > $output_objdir/$soname.def;
cannam@85 12948 cat $export_symbols >> $output_objdir/$soname.def;
cannam@85 12949 fi~
cannam@85 12950 $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@85 12951 else
cannam@85 12952 ld_shlibs_CXX=no
cannam@85 12953 fi
cannam@85 12954 ;;
cannam@85 12955 esac
cannam@85 12956 ;;
cannam@85 12957 darwin* | rhapsody*)
cannam@85 12958
cannam@85 12959
cannam@85 12960 archive_cmds_need_lc_CXX=no
cannam@85 12961 hardcode_direct_CXX=no
cannam@85 12962 hardcode_automatic_CXX=yes
cannam@85 12963 hardcode_shlibpath_var_CXX=unsupported
cannam@85 12964 if test "$lt_cv_ld_force_load" = "yes"; then
cannam@85 12965 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@85 12966 else
cannam@85 12967 whole_archive_flag_spec_CXX=''
cannam@85 12968 fi
cannam@85 12969 link_all_deplibs_CXX=yes
cannam@85 12970 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
cannam@85 12971 case $cc_basename in
cannam@85 12972 ifort*) _lt_dar_can_shared=yes ;;
cannam@85 12973 *) _lt_dar_can_shared=$GCC ;;
cannam@85 12974 esac
cannam@85 12975 if test "$_lt_dar_can_shared" = "yes"; then
cannam@85 12976 output_verbose_link_cmd=func_echo_all
cannam@85 12977 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@85 12978 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
cannam@85 12979 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@85 12980 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@85 12981 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
cannam@85 12982 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@85 12983 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@85 12984 fi
cannam@85 12985
cannam@85 12986 else
cannam@85 12987 ld_shlibs_CXX=no
cannam@85 12988 fi
cannam@85 12989
cannam@85 12990 ;;
cannam@85 12991
cannam@85 12992 dgux*)
cannam@85 12993 case $cc_basename in
cannam@85 12994 ec++*)
cannam@85 12995 # FIXME: insert proper C++ library support
cannam@85 12996 ld_shlibs_CXX=no
cannam@85 12997 ;;
cannam@85 12998 ghcx*)
cannam@85 12999 # Green Hills C++ Compiler
cannam@85 13000 # FIXME: insert proper C++ library support
cannam@85 13001 ld_shlibs_CXX=no
cannam@85 13002 ;;
cannam@85 13003 *)
cannam@85 13004 # FIXME: insert proper C++ library support
cannam@85 13005 ld_shlibs_CXX=no
cannam@85 13006 ;;
cannam@85 13007 esac
cannam@85 13008 ;;
cannam@85 13009
cannam@85 13010 freebsd[12]*)
cannam@85 13011 # C++ shared libraries reported to be fairly broken before
cannam@85 13012 # switch to ELF
cannam@85 13013 ld_shlibs_CXX=no
cannam@85 13014 ;;
cannam@85 13015
cannam@85 13016 freebsd-elf*)
cannam@85 13017 archive_cmds_need_lc_CXX=no
cannam@85 13018 ;;
cannam@85 13019
cannam@85 13020 freebsd* | dragonfly*)
cannam@85 13021 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
cannam@85 13022 # conventions
cannam@85 13023 ld_shlibs_CXX=yes
cannam@85 13024 ;;
cannam@85 13025
cannam@85 13026 gnu*)
cannam@85 13027 ;;
cannam@85 13028
cannam@85 13029 haiku*)
cannam@85 13030 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 13031 link_all_deplibs_CXX=yes
cannam@85 13032 ;;
cannam@85 13033
cannam@85 13034 hpux9*)
cannam@85 13035 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
cannam@85 13036 hardcode_libdir_separator_CXX=:
cannam@85 13037 export_dynamic_flag_spec_CXX='${wl}-E'
cannam@85 13038 hardcode_direct_CXX=yes
cannam@85 13039 hardcode_minus_L_CXX=yes # Not in the search PATH,
cannam@85 13040 # but as the default
cannam@85 13041 # location of the library.
cannam@85 13042
cannam@85 13043 case $cc_basename in
cannam@85 13044 CC*)
cannam@85 13045 # FIXME: insert proper C++ library support
cannam@85 13046 ld_shlibs_CXX=no
cannam@85 13047 ;;
cannam@85 13048 aCC*)
cannam@85 13049 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@85 13050 # Commands to make compiler produce verbose output that lists
cannam@85 13051 # what "hidden" libraries, object files and flags are used when
cannam@85 13052 # linking a shared library.
cannam@85 13053 #
cannam@85 13054 # There doesn't appear to be a way to prevent this compiler from
cannam@85 13055 # explicitly linking system object files so we need to strip them
cannam@85 13056 # from the output so that they don't get included in the library
cannam@85 13057 # dependencies.
cannam@85 13058 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@85 13059 ;;
cannam@85 13060 *)
cannam@85 13061 if test "$GXX" = yes; then
cannam@85 13062 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@85 13063 else
cannam@85 13064 # FIXME: insert proper C++ library support
cannam@85 13065 ld_shlibs_CXX=no
cannam@85 13066 fi
cannam@85 13067 ;;
cannam@85 13068 esac
cannam@85 13069 ;;
cannam@85 13070
cannam@85 13071 hpux10*|hpux11*)
cannam@85 13072 if test $with_gnu_ld = no; then
cannam@85 13073 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
cannam@85 13074 hardcode_libdir_separator_CXX=:
cannam@85 13075
cannam@85 13076 case $host_cpu in
cannam@85 13077 hppa*64*|ia64*)
cannam@85 13078 ;;
cannam@85 13079 *)
cannam@85 13080 export_dynamic_flag_spec_CXX='${wl}-E'
cannam@85 13081 ;;
cannam@85 13082 esac
cannam@85 13083 fi
cannam@85 13084 case $host_cpu in
cannam@85 13085 hppa*64*|ia64*)
cannam@85 13086 hardcode_direct_CXX=no
cannam@85 13087 hardcode_shlibpath_var_CXX=no
cannam@85 13088 ;;
cannam@85 13089 *)
cannam@85 13090 hardcode_direct_CXX=yes
cannam@85 13091 hardcode_direct_absolute_CXX=yes
cannam@85 13092 hardcode_minus_L_CXX=yes # Not in the search PATH,
cannam@85 13093 # but as the default
cannam@85 13094 # location of the library.
cannam@85 13095 ;;
cannam@85 13096 esac
cannam@85 13097
cannam@85 13098 case $cc_basename in
cannam@85 13099 CC*)
cannam@85 13100 # FIXME: insert proper C++ library support
cannam@85 13101 ld_shlibs_CXX=no
cannam@85 13102 ;;
cannam@85 13103 aCC*)
cannam@85 13104 case $host_cpu in
cannam@85 13105 hppa*64*)
cannam@85 13106 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@85 13107 ;;
cannam@85 13108 ia64*)
cannam@85 13109 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@85 13110 ;;
cannam@85 13111 *)
cannam@85 13112 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@85 13113 ;;
cannam@85 13114 esac
cannam@85 13115 # Commands to make compiler produce verbose output that lists
cannam@85 13116 # what "hidden" libraries, object files and flags are used when
cannam@85 13117 # linking a shared library.
cannam@85 13118 #
cannam@85 13119 # There doesn't appear to be a way to prevent this compiler from
cannam@85 13120 # explicitly linking system object files so we need to strip them
cannam@85 13121 # from the output so that they don't get included in the library
cannam@85 13122 # dependencies.
cannam@85 13123 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@85 13124 ;;
cannam@85 13125 *)
cannam@85 13126 if test "$GXX" = yes; then
cannam@85 13127 if test $with_gnu_ld = no; then
cannam@85 13128 case $host_cpu in
cannam@85 13129 hppa*64*)
cannam@85 13130 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@85 13131 ;;
cannam@85 13132 ia64*)
cannam@85 13133 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@85 13134 ;;
cannam@85 13135 *)
cannam@85 13136 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@85 13137 ;;
cannam@85 13138 esac
cannam@85 13139 fi
cannam@85 13140 else
cannam@85 13141 # FIXME: insert proper C++ library support
cannam@85 13142 ld_shlibs_CXX=no
cannam@85 13143 fi
cannam@85 13144 ;;
cannam@85 13145 esac
cannam@85 13146 ;;
cannam@85 13147
cannam@85 13148 interix[3-9]*)
cannam@85 13149 hardcode_direct_CXX=no
cannam@85 13150 hardcode_shlibpath_var_CXX=no
cannam@85 13151 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
cannam@85 13152 export_dynamic_flag_spec_CXX='${wl}-E'
cannam@85 13153 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
cannam@85 13154 # Instead, shared libraries are loaded at an image base (0x10000000 by
cannam@85 13155 # default) and relocated if they conflict, which is a slow very memory
cannam@85 13156 # consuming and fragmenting process. To avoid this, we pick a random,
cannam@85 13157 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
cannam@85 13158 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
cannam@85 13159 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@85 13160 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@85 13161 ;;
cannam@85 13162 irix5* | irix6*)
cannam@85 13163 case $cc_basename in
cannam@85 13164 CC*)
cannam@85 13165 # SGI C++
cannam@85 13166 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@85 13167
cannam@85 13168 # Archives containing C++ object files must be created using
cannam@85 13169 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
cannam@85 13170 # necessary to make sure instantiated templates are included
cannam@85 13171 # in the archive.
cannam@85 13172 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
cannam@85 13173 ;;
cannam@85 13174 *)
cannam@85 13175 if test "$GXX" = yes; then
cannam@85 13176 if test "$with_gnu_ld" = no; then
cannam@85 13177 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@85 13178 else
cannam@85 13179 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@85 13180 fi
cannam@85 13181 fi
cannam@85 13182 link_all_deplibs_CXX=yes
cannam@85 13183 ;;
cannam@85 13184 esac
cannam@85 13185 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
cannam@85 13186 hardcode_libdir_separator_CXX=:
cannam@85 13187 inherit_rpath_CXX=yes
cannam@85 13188 ;;
cannam@85 13189
cannam@85 13190 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cannam@85 13191 case $cc_basename in
cannam@85 13192 KCC*)
cannam@85 13193 # Kuck and Associates, Inc. (KAI) C++ Compiler
cannam@85 13194
cannam@85 13195 # KCC will only create a shared library if the output file
cannam@85 13196 # ends with ".so" (or ".sl" for HP-UX), so rename the library
cannam@85 13197 # to its proper name (with version) after linking.
cannam@85 13198 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@85 13199 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@85 13200 # Commands to make compiler produce verbose output that lists
cannam@85 13201 # what "hidden" libraries, object files and flags are used when
cannam@85 13202 # linking a shared library.
cannam@85 13203 #
cannam@85 13204 # There doesn't appear to be a way to prevent this compiler from
cannam@85 13205 # explicitly linking system object files so we need to strip them
cannam@85 13206 # from the output so that they don't get included in the library
cannam@85 13207 # dependencies.
cannam@85 13208 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@85 13209
cannam@85 13210 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
cannam@85 13211 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cannam@85 13212
cannam@85 13213 # Archives containing C++ object files must be created using
cannam@85 13214 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
cannam@85 13215 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
cannam@85 13216 ;;
cannam@85 13217 icpc* | ecpc* )
cannam@85 13218 # Intel C++
cannam@85 13219 with_gnu_ld=yes
cannam@85 13220 # version 8.0 and above of icpc choke on multiply defined symbols
cannam@85 13221 # if we add $predep_objects and $postdep_objects, however 7.1 and
cannam@85 13222 # earlier do not add the objects themselves.
cannam@85 13223 case `$CC -V 2>&1` in
cannam@85 13224 *"Version 7."*)
cannam@85 13225 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 13226 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@85 13227 ;;
cannam@85 13228 *) # Version 8.0 or newer
cannam@85 13229 tmp_idyn=
cannam@85 13230 case $host_cpu in
cannam@85 13231 ia64*) tmp_idyn=' -i_dynamic';;
cannam@85 13232 esac
cannam@85 13233 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 13234 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@85 13235 ;;
cannam@85 13236 esac
cannam@85 13237 archive_cmds_need_lc_CXX=no
cannam@85 13238 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
cannam@85 13239 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cannam@85 13240 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
cannam@85 13241 ;;
cannam@85 13242 pgCC* | pgcpp*)
cannam@85 13243 # Portland Group C++ compiler
cannam@85 13244 case `$CC -V` in
cannam@85 13245 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cannam@85 13246 prelink_cmds_CXX='tpldir=Template.dir~
cannam@85 13247 rm -rf $tpldir~
cannam@85 13248 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cannam@85 13249 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cannam@85 13250 old_archive_cmds_CXX='tpldir=Template.dir~
cannam@85 13251 rm -rf $tpldir~
cannam@85 13252 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cannam@85 13253 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cannam@85 13254 $RANLIB $oldlib'
cannam@85 13255 archive_cmds_CXX='tpldir=Template.dir~
cannam@85 13256 rm -rf $tpldir~
cannam@85 13257 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cannam@85 13258 $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@85 13259 archive_expsym_cmds_CXX='tpldir=Template.dir~
cannam@85 13260 rm -rf $tpldir~
cannam@85 13261 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cannam@85 13262 $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@85 13263 ;;
cannam@85 13264 *) # Version 6 and above use weak symbols
cannam@85 13265 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
cannam@85 13266 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@85 13267 ;;
cannam@85 13268 esac
cannam@85 13269
cannam@85 13270 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
cannam@85 13271 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cannam@85 13272 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@85 13273 ;;
cannam@85 13274 cxx*)
cannam@85 13275 # Compaq C++
cannam@85 13276 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 13277 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@85 13278
cannam@85 13279 runpath_var=LD_RUN_PATH
cannam@85 13280 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
cannam@85 13281 hardcode_libdir_separator_CXX=:
cannam@85 13282
cannam@85 13283 # Commands to make compiler produce verbose output that lists
cannam@85 13284 # what "hidden" libraries, object files and flags are used when
cannam@85 13285 # linking a shared library.
cannam@85 13286 #
cannam@85 13287 # There doesn't appear to be a way to prevent this compiler from
cannam@85 13288 # explicitly linking system object files so we need to strip them
cannam@85 13289 # from the output so that they don't get included in the library
cannam@85 13290 # dependencies.
cannam@85 13291 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@85 13292 ;;
cannam@85 13293 xl* | mpixl* | bgxl*)
cannam@85 13294 # IBM XL 8.0 on PPC, with GNU ld
cannam@85 13295 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
cannam@85 13296 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cannam@85 13297 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 13298 if test "x$supports_anon_versioning" = xyes; then
cannam@85 13299 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
cannam@85 13300 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@85 13301 echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@85 13302 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
cannam@85 13303 fi
cannam@85 13304 ;;
cannam@85 13305 *)
cannam@85 13306 case `$CC -V 2>&1 | sed 5q` in
cannam@85 13307 *Sun\ C*)
cannam@85 13308 # Sun C++ 5.9
cannam@85 13309 no_undefined_flag_CXX=' -zdefs'
cannam@85 13310 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@85 13311 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@85 13312 hardcode_libdir_flag_spec_CXX='-R$libdir'
cannam@85 13313 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@85 13314 compiler_needs_object_CXX=yes
cannam@85 13315
cannam@85 13316 # Not sure whether something based on
cannam@85 13317 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
cannam@85 13318 # would be better.
cannam@85 13319 output_verbose_link_cmd='func_echo_all'
cannam@85 13320
cannam@85 13321 # Archives containing C++ object files must be created using
cannam@85 13322 # "CC -xar", where "CC" is the Sun C++ compiler. This is
cannam@85 13323 # necessary to make sure instantiated templates are included
cannam@85 13324 # in the archive.
cannam@85 13325 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
cannam@85 13326 ;;
cannam@85 13327 esac
cannam@85 13328 ;;
cannam@85 13329 esac
cannam@85 13330 ;;
cannam@85 13331
cannam@85 13332 lynxos*)
cannam@85 13333 # FIXME: insert proper C++ library support
cannam@85 13334 ld_shlibs_CXX=no
cannam@85 13335 ;;
cannam@85 13336
cannam@85 13337 m88k*)
cannam@85 13338 # FIXME: insert proper C++ library support
cannam@85 13339 ld_shlibs_CXX=no
cannam@85 13340 ;;
cannam@85 13341
cannam@85 13342 mvs*)
cannam@85 13343 case $cc_basename in
cannam@85 13344 cxx*)
cannam@85 13345 # FIXME: insert proper C++ library support
cannam@85 13346 ld_shlibs_CXX=no
cannam@85 13347 ;;
cannam@85 13348 *)
cannam@85 13349 # FIXME: insert proper C++ library support
cannam@85 13350 ld_shlibs_CXX=no
cannam@85 13351 ;;
cannam@85 13352 esac
cannam@85 13353 ;;
cannam@85 13354
cannam@85 13355 netbsd*)
cannam@85 13356 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@85 13357 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
cannam@85 13358 wlarc=
cannam@85 13359 hardcode_libdir_flag_spec_CXX='-R$libdir'
cannam@85 13360 hardcode_direct_CXX=yes
cannam@85 13361 hardcode_shlibpath_var_CXX=no
cannam@85 13362 fi
cannam@85 13363 # Workaround some broken pre-1.5 toolchains
cannam@85 13364 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
cannam@85 13365 ;;
cannam@85 13366
cannam@85 13367 *nto* | *qnx*)
cannam@85 13368 ld_shlibs_CXX=yes
cannam@85 13369 ;;
cannam@85 13370
cannam@85 13371 openbsd2*)
cannam@85 13372 # C++ shared libraries are fairly broken
cannam@85 13373 ld_shlibs_CXX=no
cannam@85 13374 ;;
cannam@85 13375
cannam@85 13376 openbsd*)
cannam@85 13377 if test -f /usr/libexec/ld.so; then
cannam@85 13378 hardcode_direct_CXX=yes
cannam@85 13379 hardcode_shlibpath_var_CXX=no
cannam@85 13380 hardcode_direct_absolute_CXX=yes
cannam@85 13381 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
cannam@85 13382 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
cannam@85 13383 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@85 13384 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@85 13385 export_dynamic_flag_spec_CXX='${wl}-E'
cannam@85 13386 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
cannam@85 13387 fi
cannam@85 13388 output_verbose_link_cmd=func_echo_all
cannam@85 13389 else
cannam@85 13390 ld_shlibs_CXX=no
cannam@85 13391 fi
cannam@85 13392 ;;
cannam@85 13393
cannam@85 13394 osf3* | osf4* | osf5*)
cannam@85 13395 case $cc_basename in
cannam@85 13396 KCC*)
cannam@85 13397 # Kuck and Associates, Inc. (KAI) C++ Compiler
cannam@85 13398
cannam@85 13399 # KCC will only create a shared library if the output file
cannam@85 13400 # ends with ".so" (or ".sl" for HP-UX), so rename the library
cannam@85 13401 # to its proper name (with version) after linking.
cannam@85 13402 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@85 13403
cannam@85 13404 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
cannam@85 13405 hardcode_libdir_separator_CXX=:
cannam@85 13406
cannam@85 13407 # Archives containing C++ object files must be created using
cannam@85 13408 # the KAI C++ compiler.
cannam@85 13409 case $host in
cannam@85 13410 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
cannam@85 13411 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
cannam@85 13412 esac
cannam@85 13413 ;;
cannam@85 13414 RCC*)
cannam@85 13415 # Rational C++ 2.4.1
cannam@85 13416 # FIXME: insert proper C++ library support
cannam@85 13417 ld_shlibs_CXX=no
cannam@85 13418 ;;
cannam@85 13419 cxx*)
cannam@85 13420 case $host in
cannam@85 13421 osf3*)
cannam@85 13422 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cannam@85 13423 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@85 13424 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
cannam@85 13425 ;;
cannam@85 13426 *)
cannam@85 13427 allow_undefined_flag_CXX=' -expect_unresolved \*'
cannam@85 13428 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@85 13429 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
cannam@85 13430 echo "-hidden">> $lib.exp~
cannam@85 13431 $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@85 13432 $RM $lib.exp'
cannam@85 13433 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
cannam@85 13434 ;;
cannam@85 13435 esac
cannam@85 13436
cannam@85 13437 hardcode_libdir_separator_CXX=:
cannam@85 13438
cannam@85 13439 # Commands to make compiler produce verbose output that lists
cannam@85 13440 # what "hidden" libraries, object files and flags are used when
cannam@85 13441 # linking a shared library.
cannam@85 13442 #
cannam@85 13443 # There doesn't appear to be a way to prevent this compiler from
cannam@85 13444 # explicitly linking system object files so we need to strip them
cannam@85 13445 # from the output so that they don't get included in the library
cannam@85 13446 # dependencies.
cannam@85 13447 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@85 13448 ;;
cannam@85 13449 *)
cannam@85 13450 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
cannam@85 13451 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cannam@85 13452 case $host in
cannam@85 13453 osf3*)
cannam@85 13454 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@85 13455 ;;
cannam@85 13456 *)
cannam@85 13457 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@85 13458 ;;
cannam@85 13459 esac
cannam@85 13460
cannam@85 13461 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
cannam@85 13462 hardcode_libdir_separator_CXX=:
cannam@85 13463
cannam@85 13464 # Commands to make compiler produce verbose output that lists
cannam@85 13465 # what "hidden" libraries, object files and flags are used when
cannam@85 13466 # linking a shared library.
cannam@85 13467 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cannam@85 13468
cannam@85 13469 else
cannam@85 13470 # FIXME: insert proper C++ library support
cannam@85 13471 ld_shlibs_CXX=no
cannam@85 13472 fi
cannam@85 13473 ;;
cannam@85 13474 esac
cannam@85 13475 ;;
cannam@85 13476
cannam@85 13477 psos*)
cannam@85 13478 # FIXME: insert proper C++ library support
cannam@85 13479 ld_shlibs_CXX=no
cannam@85 13480 ;;
cannam@85 13481
cannam@85 13482 sunos4*)
cannam@85 13483 case $cc_basename in
cannam@85 13484 CC*)
cannam@85 13485 # Sun C++ 4.x
cannam@85 13486 # FIXME: insert proper C++ library support
cannam@85 13487 ld_shlibs_CXX=no
cannam@85 13488 ;;
cannam@85 13489 lcc*)
cannam@85 13490 # Lucid
cannam@85 13491 # FIXME: insert proper C++ library support
cannam@85 13492 ld_shlibs_CXX=no
cannam@85 13493 ;;
cannam@85 13494 *)
cannam@85 13495 # FIXME: insert proper C++ library support
cannam@85 13496 ld_shlibs_CXX=no
cannam@85 13497 ;;
cannam@85 13498 esac
cannam@85 13499 ;;
cannam@85 13500
cannam@85 13501 solaris*)
cannam@85 13502 case $cc_basename in
cannam@85 13503 CC* | sunCC*)
cannam@85 13504 # Sun C++ 4.2, 5.x and Centerline C++
cannam@85 13505 archive_cmds_need_lc_CXX=yes
cannam@85 13506 no_undefined_flag_CXX=' -zdefs'
cannam@85 13507 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@85 13508 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@85 13509 $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@85 13510
cannam@85 13511 hardcode_libdir_flag_spec_CXX='-R$libdir'
cannam@85 13512 hardcode_shlibpath_var_CXX=no
cannam@85 13513 case $host_os in
cannam@85 13514 solaris2.[0-5] | solaris2.[0-5].*) ;;
cannam@85 13515 *)
cannam@85 13516 # The compiler driver will combine and reorder linker options,
cannam@85 13517 # but understands `-z linker_flag'.
cannam@85 13518 # Supported since Solaris 2.6 (maybe 2.5.1?)
cannam@85 13519 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
cannam@85 13520 ;;
cannam@85 13521 esac
cannam@85 13522 link_all_deplibs_CXX=yes
cannam@85 13523
cannam@85 13524 output_verbose_link_cmd='func_echo_all'
cannam@85 13525
cannam@85 13526 # Archives containing C++ object files must be created using
cannam@85 13527 # "CC -xar", where "CC" is the Sun C++ compiler. This is
cannam@85 13528 # necessary to make sure instantiated templates are included
cannam@85 13529 # in the archive.
cannam@85 13530 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
cannam@85 13531 ;;
cannam@85 13532 gcx*)
cannam@85 13533 # Green Hills C++ Compiler
cannam@85 13534 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cannam@85 13535
cannam@85 13536 # The C++ compiler must be used to create the archive.
cannam@85 13537 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
cannam@85 13538 ;;
cannam@85 13539 *)
cannam@85 13540 # GNU C++ compiler with Solaris linker
cannam@85 13541 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
cannam@85 13542 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
cannam@85 13543 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cannam@85 13544 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cannam@85 13545 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@85 13546 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
cannam@85 13547
cannam@85 13548 # Commands to make compiler produce verbose output that lists
cannam@85 13549 # what "hidden" libraries, object files and flags are used when
cannam@85 13550 # linking a shared library.
cannam@85 13551 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cannam@85 13552 else
cannam@85 13553 # g++ 2.7 appears to require `-G' NOT `-shared' on this
cannam@85 13554 # platform.
cannam@85 13555 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cannam@85 13556 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@85 13557 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
cannam@85 13558
cannam@85 13559 # Commands to make compiler produce verbose output that lists
cannam@85 13560 # what "hidden" libraries, object files and flags are used when
cannam@85 13561 # linking a shared library.
cannam@85 13562 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cannam@85 13563 fi
cannam@85 13564
cannam@85 13565 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
cannam@85 13566 case $host_os in
cannam@85 13567 solaris2.[0-5] | solaris2.[0-5].*) ;;
cannam@85 13568 *)
cannam@85 13569 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
cannam@85 13570 ;;
cannam@85 13571 esac
cannam@85 13572 fi
cannam@85 13573 ;;
cannam@85 13574 esac
cannam@85 13575 ;;
cannam@85 13576
cannam@85 13577 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
cannam@85 13578 no_undefined_flag_CXX='${wl}-z,text'
cannam@85 13579 archive_cmds_need_lc_CXX=no
cannam@85 13580 hardcode_shlibpath_var_CXX=no
cannam@85 13581 runpath_var='LD_RUN_PATH'
cannam@85 13582
cannam@85 13583 case $cc_basename in
cannam@85 13584 CC*)
cannam@85 13585 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 13586 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 13587 ;;
cannam@85 13588 *)
cannam@85 13589 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 13590 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 13591 ;;
cannam@85 13592 esac
cannam@85 13593 ;;
cannam@85 13594
cannam@85 13595 sysv5* | sco3.2v5* | sco5v6*)
cannam@85 13596 # Note: We can NOT use -z defs as we might desire, because we do not
cannam@85 13597 # link with -lc, and that would cause any symbols used from libc to
cannam@85 13598 # always be unresolved, which means just about no library would
cannam@85 13599 # ever link correctly. If we're not using GNU ld we use -z text
cannam@85 13600 # though, which does catch some bad symbols but isn't as heavy-handed
cannam@85 13601 # as -z defs.
cannam@85 13602 no_undefined_flag_CXX='${wl}-z,text'
cannam@85 13603 allow_undefined_flag_CXX='${wl}-z,nodefs'
cannam@85 13604 archive_cmds_need_lc_CXX=no
cannam@85 13605 hardcode_shlibpath_var_CXX=no
cannam@85 13606 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
cannam@85 13607 hardcode_libdir_separator_CXX=':'
cannam@85 13608 link_all_deplibs_CXX=yes
cannam@85 13609 export_dynamic_flag_spec_CXX='${wl}-Bexport'
cannam@85 13610 runpath_var='LD_RUN_PATH'
cannam@85 13611
cannam@85 13612 case $cc_basename in
cannam@85 13613 CC*)
cannam@85 13614 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 13615 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 13616 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
cannam@85 13617 '"$old_archive_cmds_CXX"
cannam@85 13618 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
cannam@85 13619 '"$reload_cmds_CXX"
cannam@85 13620 ;;
cannam@85 13621 *)
cannam@85 13622 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 13623 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 13624 ;;
cannam@85 13625 esac
cannam@85 13626 ;;
cannam@85 13627
cannam@85 13628 tandem*)
cannam@85 13629 case $cc_basename in
cannam@85 13630 NCC*)
cannam@85 13631 # NonStop-UX NCC 3.20
cannam@85 13632 # FIXME: insert proper C++ library support
cannam@85 13633 ld_shlibs_CXX=no
cannam@85 13634 ;;
cannam@85 13635 *)
cannam@85 13636 # FIXME: insert proper C++ library support
cannam@85 13637 ld_shlibs_CXX=no
cannam@85 13638 ;;
cannam@85 13639 esac
cannam@85 13640 ;;
cannam@85 13641
cannam@85 13642 vxworks*)
cannam@85 13643 # FIXME: insert proper C++ library support
cannam@85 13644 ld_shlibs_CXX=no
cannam@85 13645 ;;
cannam@85 13646
cannam@85 13647 *)
cannam@85 13648 # FIXME: insert proper C++ library support
cannam@85 13649 ld_shlibs_CXX=no
cannam@85 13650 ;;
cannam@85 13651 esac
cannam@85 13652
cannam@85 13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cannam@85 13654 $as_echo "$ld_shlibs_CXX" >&6; }
cannam@85 13655 test "$ld_shlibs_CXX" = no && can_build_shared=no
cannam@85 13656
cannam@85 13657 GCC_CXX="$GXX"
cannam@85 13658 LD_CXX="$LD"
cannam@85 13659
cannam@85 13660 ## CAVEAT EMPTOR:
cannam@85 13661 ## There is no encapsulation within the following macros, do not change
cannam@85 13662 ## the running order or otherwise move them around unless you know exactly
cannam@85 13663 ## what you are doing...
cannam@85 13664 # Dependencies to place before and after the object being linked:
cannam@85 13665 predep_objects_CXX=
cannam@85 13666 postdep_objects_CXX=
cannam@85 13667 predeps_CXX=
cannam@85 13668 postdeps_CXX=
cannam@85 13669 compiler_lib_search_path_CXX=
cannam@85 13670
cannam@85 13671 cat > conftest.$ac_ext <<_LT_EOF
cannam@85 13672 class Foo
cannam@85 13673 {
cannam@85 13674 public:
cannam@85 13675 Foo (void) { a = 0; }
cannam@85 13676 private:
cannam@85 13677 int a;
cannam@85 13678 };
cannam@85 13679 _LT_EOF
cannam@85 13680
cannam@85 13681
cannam@85 13682 _lt_libdeps_save_CFLAGS=$CFLAGS
cannam@85 13683 case "$CC $CFLAGS " in #(
cannam@85 13684 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
cannam@85 13685 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cannam@85 13686 esac
cannam@85 13687
cannam@85 13688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@85 13689 (eval $ac_compile) 2>&5
cannam@85 13690 ac_status=$?
cannam@85 13691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 13692 test $ac_status = 0; }; then
cannam@85 13693 # Parse the compiler output and extract the necessary
cannam@85 13694 # objects, libraries and library flags.
cannam@85 13695
cannam@85 13696 # Sentinel used to keep track of whether or not we are before
cannam@85 13697 # the conftest object file.
cannam@85 13698 pre_test_object_deps_done=no
cannam@85 13699
cannam@85 13700 for p in `eval "$output_verbose_link_cmd"`; do
cannam@85 13701 case ${prev}${p} in
cannam@85 13702
cannam@85 13703 -L* | -R* | -l*)
cannam@85 13704 # Some compilers place space between "-{L,R}" and the path.
cannam@85 13705 # Remove the space.
cannam@85 13706 if test $p = "-L" ||
cannam@85 13707 test $p = "-R"; then
cannam@85 13708 prev=$p
cannam@85 13709 continue
cannam@85 13710 fi
cannam@85 13711
cannam@85 13712 # Expand the sysroot to ease extracting the directories later.
cannam@85 13713 if test -z "$prev"; then
cannam@85 13714 case $p in
cannam@85 13715 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
cannam@85 13716 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
cannam@85 13717 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
cannam@85 13718 esac
cannam@85 13719 fi
cannam@85 13720 case $p in
cannam@85 13721 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
cannam@85 13722 esac
cannam@85 13723 if test "$pre_test_object_deps_done" = no; then
cannam@85 13724 case ${prev} in
cannam@85 13725 -L | -R)
cannam@85 13726 # Internal compiler library paths should come after those
cannam@85 13727 # provided the user. The postdeps already come after the
cannam@85 13728 # user supplied libs so there is no need to process them.
cannam@85 13729 if test -z "$compiler_lib_search_path_CXX"; then
cannam@85 13730 compiler_lib_search_path_CXX="${prev}${p}"
cannam@85 13731 else
cannam@85 13732 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
cannam@85 13733 fi
cannam@85 13734 ;;
cannam@85 13735 # The "-l" case would never come before the object being
cannam@85 13736 # linked, so don't bother handling this case.
cannam@85 13737 esac
cannam@85 13738 else
cannam@85 13739 if test -z "$postdeps_CXX"; then
cannam@85 13740 postdeps_CXX="${prev}${p}"
cannam@85 13741 else
cannam@85 13742 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
cannam@85 13743 fi
cannam@85 13744 fi
cannam@85 13745 prev=
cannam@85 13746 ;;
cannam@85 13747
cannam@85 13748 *.lto.$objext) ;; # Ignore GCC LTO objects
cannam@85 13749 *.$objext)
cannam@85 13750 # This assumes that the test object file only shows up
cannam@85 13751 # once in the compiler output.
cannam@85 13752 if test "$p" = "conftest.$objext"; then
cannam@85 13753 pre_test_object_deps_done=yes
cannam@85 13754 continue
cannam@85 13755 fi
cannam@85 13756
cannam@85 13757 if test "$pre_test_object_deps_done" = no; then
cannam@85 13758 if test -z "$predep_objects_CXX"; then
cannam@85 13759 predep_objects_CXX="$p"
cannam@85 13760 else
cannam@85 13761 predep_objects_CXX="$predep_objects_CXX $p"
cannam@85 13762 fi
cannam@85 13763 else
cannam@85 13764 if test -z "$postdep_objects_CXX"; then
cannam@85 13765 postdep_objects_CXX="$p"
cannam@85 13766 else
cannam@85 13767 postdep_objects_CXX="$postdep_objects_CXX $p"
cannam@85 13768 fi
cannam@85 13769 fi
cannam@85 13770 ;;
cannam@85 13771
cannam@85 13772 *) ;; # Ignore the rest.
cannam@85 13773
cannam@85 13774 esac
cannam@85 13775 done
cannam@85 13776
cannam@85 13777 # Clean up.
cannam@85 13778 rm -f a.out a.exe
cannam@85 13779 else
cannam@85 13780 echo "libtool.m4: error: problem compiling CXX test program"
cannam@85 13781 fi
cannam@85 13782
cannam@85 13783 $RM -f confest.$objext
cannam@85 13784 CFLAGS=$_lt_libdeps_save_CFLAGS
cannam@85 13785
cannam@85 13786 # PORTME: override above test on systems where it is broken
cannam@85 13787 case $host_os in
cannam@85 13788 interix[3-9]*)
cannam@85 13789 # Interix 3.5 installs completely hosed .la files for C++, so rather than
cannam@85 13790 # hack all around it, let's just trust "g++" to DTRT.
cannam@85 13791 predep_objects_CXX=
cannam@85 13792 postdep_objects_CXX=
cannam@85 13793 postdeps_CXX=
cannam@85 13794 ;;
cannam@85 13795
cannam@85 13796 linux*)
cannam@85 13797 case `$CC -V 2>&1 | sed 5q` in
cannam@85 13798 *Sun\ C*)
cannam@85 13799 # Sun C++ 5.9
cannam@85 13800
cannam@85 13801 # The more standards-conforming stlport4 library is
cannam@85 13802 # incompatible with the Cstd library. Avoid specifying
cannam@85 13803 # it if it's in CXXFLAGS. Ignore libCrun as
cannam@85 13804 # -library=stlport4 depends on it.
cannam@85 13805 case " $CXX $CXXFLAGS " in
cannam@85 13806 *" -library=stlport4 "*)
cannam@85 13807 solaris_use_stlport4=yes
cannam@85 13808 ;;
cannam@85 13809 esac
cannam@85 13810
cannam@85 13811 if test "$solaris_use_stlport4" != yes; then
cannam@85 13812 postdeps_CXX='-library=Cstd -library=Crun'
cannam@85 13813 fi
cannam@85 13814 ;;
cannam@85 13815 esac
cannam@85 13816 ;;
cannam@85 13817
cannam@85 13818 solaris*)
cannam@85 13819 case $cc_basename in
cannam@85 13820 CC* | sunCC*)
cannam@85 13821 # The more standards-conforming stlport4 library is
cannam@85 13822 # incompatible with the Cstd library. Avoid specifying
cannam@85 13823 # it if it's in CXXFLAGS. Ignore libCrun as
cannam@85 13824 # -library=stlport4 depends on it.
cannam@85 13825 case " $CXX $CXXFLAGS " in
cannam@85 13826 *" -library=stlport4 "*)
cannam@85 13827 solaris_use_stlport4=yes
cannam@85 13828 ;;
cannam@85 13829 esac
cannam@85 13830
cannam@85 13831 # Adding this requires a known-good setup of shared libraries for
cannam@85 13832 # Sun compiler versions before 5.6, else PIC objects from an old
cannam@85 13833 # archive will be linked into the output, leading to subtle bugs.
cannam@85 13834 if test "$solaris_use_stlport4" != yes; then
cannam@85 13835 postdeps_CXX='-library=Cstd -library=Crun'
cannam@85 13836 fi
cannam@85 13837 ;;
cannam@85 13838 esac
cannam@85 13839 ;;
cannam@85 13840 esac
cannam@85 13841
cannam@85 13842
cannam@85 13843 case " $postdeps_CXX " in
cannam@85 13844 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
cannam@85 13845 esac
cannam@85 13846 compiler_lib_search_dirs_CXX=
cannam@85 13847 if test -n "${compiler_lib_search_path_CXX}"; then
cannam@85 13848 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
cannam@85 13849 fi
cannam@85 13850
cannam@85 13851
cannam@85 13852
cannam@85 13853
cannam@85 13854
cannam@85 13855
cannam@85 13856
cannam@85 13857
cannam@85 13858
cannam@85 13859
cannam@85 13860
cannam@85 13861
cannam@85 13862
cannam@85 13863
cannam@85 13864
cannam@85 13865
cannam@85 13866
cannam@85 13867
cannam@85 13868
cannam@85 13869
cannam@85 13870
cannam@85 13871
cannam@85 13872
cannam@85 13873
cannam@85 13874
cannam@85 13875
cannam@85 13876
cannam@85 13877
cannam@85 13878
cannam@85 13879
cannam@85 13880
cannam@85 13881 lt_prog_compiler_wl_CXX=
cannam@85 13882 lt_prog_compiler_pic_CXX=
cannam@85 13883 lt_prog_compiler_static_CXX=
cannam@85 13884
cannam@85 13885
cannam@85 13886 # C++ specific cases for pic, static, wl, etc.
cannam@85 13887 if test "$GXX" = yes; then
cannam@85 13888 lt_prog_compiler_wl_CXX='-Wl,'
cannam@85 13889 lt_prog_compiler_static_CXX='-static'
cannam@85 13890
cannam@85 13891 case $host_os in
cannam@85 13892 aix*)
cannam@85 13893 # All AIX code is PIC.
cannam@85 13894 if test "$host_cpu" = ia64; then
cannam@85 13895 # AIX 5 now supports IA64 processor
cannam@85 13896 lt_prog_compiler_static_CXX='-Bstatic'
cannam@85 13897 fi
cannam@85 13898 ;;
cannam@85 13899
cannam@85 13900 amigaos*)
cannam@85 13901 case $host_cpu in
cannam@85 13902 powerpc)
cannam@85 13903 # see comment about AmigaOS4 .so support
cannam@85 13904 lt_prog_compiler_pic_CXX='-fPIC'
cannam@85 13905 ;;
cannam@85 13906 m68k)
cannam@85 13907 # FIXME: we need at least 68020 code to build shared libraries, but
cannam@85 13908 # adding the `-m68020' flag to GCC prevents building anything better,
cannam@85 13909 # like `-m68040'.
cannam@85 13910 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
cannam@85 13911 ;;
cannam@85 13912 esac
cannam@85 13913 ;;
cannam@85 13914
cannam@85 13915 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
cannam@85 13916 # PIC is the default for these OSes.
cannam@85 13917 ;;
cannam@85 13918 mingw* | cygwin* | os2* | pw32* | cegcc*)
cannam@85 13919 # This hack is so that the source file can tell whether it is being
cannam@85 13920 # built for inclusion in a dll (and should export symbols for example).
cannam@85 13921 # Although the cygwin gcc ignores -fPIC, still need this for old-style
cannam@85 13922 # (--disable-auto-import) libraries
cannam@85 13923 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
cannam@85 13924 ;;
cannam@85 13925 darwin* | rhapsody*)
cannam@85 13926 # PIC is the default on this platform
cannam@85 13927 # Common symbols not allowed in MH_DYLIB files
cannam@85 13928 lt_prog_compiler_pic_CXX='-fno-common'
cannam@85 13929 ;;
cannam@85 13930 *djgpp*)
cannam@85 13931 # DJGPP does not support shared libraries at all
cannam@85 13932 lt_prog_compiler_pic_CXX=
cannam@85 13933 ;;
cannam@85 13934 haiku*)
cannam@85 13935 # PIC is the default for Haiku.
cannam@85 13936 # The "-static" flag exists, but is broken.
cannam@85 13937 lt_prog_compiler_static_CXX=
cannam@85 13938 ;;
cannam@85 13939 interix[3-9]*)
cannam@85 13940 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
cannam@85 13941 # Instead, we relocate shared libraries at runtime.
cannam@85 13942 ;;
cannam@85 13943 sysv4*MP*)
cannam@85 13944 if test -d /usr/nec; then
cannam@85 13945 lt_prog_compiler_pic_CXX=-Kconform_pic
cannam@85 13946 fi
cannam@85 13947 ;;
cannam@85 13948 hpux*)
cannam@85 13949 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
cannam@85 13950 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
cannam@85 13951 # sets the default TLS model and affects inlining.
cannam@85 13952 case $host_cpu in
cannam@85 13953 hppa*64*)
cannam@85 13954 ;;
cannam@85 13955 *)
cannam@85 13956 lt_prog_compiler_pic_CXX='-fPIC'
cannam@85 13957 ;;
cannam@85 13958 esac
cannam@85 13959 ;;
cannam@85 13960 *qnx* | *nto*)
cannam@85 13961 # QNX uses GNU C++, but need to define -shared option too, otherwise
cannam@85 13962 # it will coredump.
cannam@85 13963 lt_prog_compiler_pic_CXX='-fPIC -shared'
cannam@85 13964 ;;
cannam@85 13965 *)
cannam@85 13966 lt_prog_compiler_pic_CXX='-fPIC'
cannam@85 13967 ;;
cannam@85 13968 esac
cannam@85 13969 else
cannam@85 13970 case $host_os in
cannam@85 13971 aix[4-9]*)
cannam@85 13972 # All AIX code is PIC.
cannam@85 13973 if test "$host_cpu" = ia64; then
cannam@85 13974 # AIX 5 now supports IA64 processor
cannam@85 13975 lt_prog_compiler_static_CXX='-Bstatic'
cannam@85 13976 else
cannam@85 13977 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
cannam@85 13978 fi
cannam@85 13979 ;;
cannam@85 13980 chorus*)
cannam@85 13981 case $cc_basename in
cannam@85 13982 cxch68*)
cannam@85 13983 # Green Hills C++ Compiler
cannam@85 13984 # _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@85 13985 ;;
cannam@85 13986 esac
cannam@85 13987 ;;
cannam@85 13988 mingw* | cygwin* | os2* | pw32* | cegcc*)
cannam@85 13989 # This hack is so that the source file can tell whether it is being
cannam@85 13990 # built for inclusion in a dll (and should export symbols for example).
cannam@85 13991 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
cannam@85 13992 ;;
cannam@85 13993 dgux*)
cannam@85 13994 case $cc_basename in
cannam@85 13995 ec++*)
cannam@85 13996 lt_prog_compiler_pic_CXX='-KPIC'
cannam@85 13997 ;;
cannam@85 13998 ghcx*)
cannam@85 13999 # Green Hills C++ Compiler
cannam@85 14000 lt_prog_compiler_pic_CXX='-pic'
cannam@85 14001 ;;
cannam@85 14002 *)
cannam@85 14003 ;;
cannam@85 14004 esac
cannam@85 14005 ;;
cannam@85 14006 freebsd* | dragonfly*)
cannam@85 14007 # FreeBSD uses GNU C++
cannam@85 14008 ;;
cannam@85 14009 hpux9* | hpux10* | hpux11*)
cannam@85 14010 case $cc_basename in
cannam@85 14011 CC*)
cannam@85 14012 lt_prog_compiler_wl_CXX='-Wl,'
cannam@85 14013 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
cannam@85 14014 if test "$host_cpu" != ia64; then
cannam@85 14015 lt_prog_compiler_pic_CXX='+Z'
cannam@85 14016 fi
cannam@85 14017 ;;
cannam@85 14018 aCC*)
cannam@85 14019 lt_prog_compiler_wl_CXX='-Wl,'
cannam@85 14020 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
cannam@85 14021 case $host_cpu in
cannam@85 14022 hppa*64*|ia64*)
cannam@85 14023 # +Z the default
cannam@85 14024 ;;
cannam@85 14025 *)
cannam@85 14026 lt_prog_compiler_pic_CXX='+Z'
cannam@85 14027 ;;
cannam@85 14028 esac
cannam@85 14029 ;;
cannam@85 14030 *)
cannam@85 14031 ;;
cannam@85 14032 esac
cannam@85 14033 ;;
cannam@85 14034 interix*)
cannam@85 14035 # This is c89, which is MS Visual C++ (no shared libs)
cannam@85 14036 # Anyone wants to do a port?
cannam@85 14037 ;;
cannam@85 14038 irix5* | irix6* | nonstopux*)
cannam@85 14039 case $cc_basename in
cannam@85 14040 CC*)
cannam@85 14041 lt_prog_compiler_wl_CXX='-Wl,'
cannam@85 14042 lt_prog_compiler_static_CXX='-non_shared'
cannam@85 14043 # CC pic flag -KPIC is the default.
cannam@85 14044 ;;
cannam@85 14045 *)
cannam@85 14046 ;;
cannam@85 14047 esac
cannam@85 14048 ;;
cannam@85 14049 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cannam@85 14050 case $cc_basename in
cannam@85 14051 KCC*)
cannam@85 14052 # KAI C++ Compiler
cannam@85 14053 lt_prog_compiler_wl_CXX='--backend -Wl,'
cannam@85 14054 lt_prog_compiler_pic_CXX='-fPIC'
cannam@85 14055 ;;
cannam@85 14056 ecpc* )
cannam@85 14057 # old Intel C++ for x86_64 which still supported -KPIC.
cannam@85 14058 lt_prog_compiler_wl_CXX='-Wl,'
cannam@85 14059 lt_prog_compiler_pic_CXX='-KPIC'
cannam@85 14060 lt_prog_compiler_static_CXX='-static'
cannam@85 14061 ;;
cannam@85 14062 icpc* )
cannam@85 14063 # Intel C++, used to be incompatible with GCC.
cannam@85 14064 # ICC 10 doesn't accept -KPIC any more.
cannam@85 14065 lt_prog_compiler_wl_CXX='-Wl,'
cannam@85 14066 lt_prog_compiler_pic_CXX='-fPIC'
cannam@85 14067 lt_prog_compiler_static_CXX='-static'
cannam@85 14068 ;;
cannam@85 14069 pgCC* | pgcpp*)
cannam@85 14070 # Portland Group C++ compiler
cannam@85 14071 lt_prog_compiler_wl_CXX='-Wl,'
cannam@85 14072 lt_prog_compiler_pic_CXX='-fpic'
cannam@85 14073 lt_prog_compiler_static_CXX='-Bstatic'
cannam@85 14074 ;;
cannam@85 14075 cxx*)
cannam@85 14076 # Compaq C++
cannam@85 14077 # Make sure the PIC flag is empty. It appears that all Alpha
cannam@85 14078 # Linux and Compaq Tru64 Unix objects are PIC.
cannam@85 14079 lt_prog_compiler_pic_CXX=
cannam@85 14080 lt_prog_compiler_static_CXX='-non_shared'
cannam@85 14081 ;;
cannam@85 14082 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
cannam@85 14083 # IBM XL 8.0, 9.0 on PPC and BlueGene
cannam@85 14084 lt_prog_compiler_wl_CXX='-Wl,'
cannam@85 14085 lt_prog_compiler_pic_CXX='-qpic'
cannam@85 14086 lt_prog_compiler_static_CXX='-qstaticlink'
cannam@85 14087 ;;
cannam@85 14088 *)
cannam@85 14089 case `$CC -V 2>&1 | sed 5q` in
cannam@85 14090 *Sun\ C*)
cannam@85 14091 # Sun C++ 5.9
cannam@85 14092 lt_prog_compiler_pic_CXX='-KPIC'
cannam@85 14093 lt_prog_compiler_static_CXX='-Bstatic'
cannam@85 14094 lt_prog_compiler_wl_CXX='-Qoption ld '
cannam@85 14095 ;;
cannam@85 14096 esac
cannam@85 14097 ;;
cannam@85 14098 esac
cannam@85 14099 ;;
cannam@85 14100 lynxos*)
cannam@85 14101 ;;
cannam@85 14102 m88k*)
cannam@85 14103 ;;
cannam@85 14104 mvs*)
cannam@85 14105 case $cc_basename in
cannam@85 14106 cxx*)
cannam@85 14107 lt_prog_compiler_pic_CXX='-W c,exportall'
cannam@85 14108 ;;
cannam@85 14109 *)
cannam@85 14110 ;;
cannam@85 14111 esac
cannam@85 14112 ;;
cannam@85 14113 netbsd* | netbsdelf*-gnu)
cannam@85 14114 ;;
cannam@85 14115 *qnx* | *nto*)
cannam@85 14116 # QNX uses GNU C++, but need to define -shared option too, otherwise
cannam@85 14117 # it will coredump.
cannam@85 14118 lt_prog_compiler_pic_CXX='-fPIC -shared'
cannam@85 14119 ;;
cannam@85 14120 osf3* | osf4* | osf5*)
cannam@85 14121 case $cc_basename in
cannam@85 14122 KCC*)
cannam@85 14123 lt_prog_compiler_wl_CXX='--backend -Wl,'
cannam@85 14124 ;;
cannam@85 14125 RCC*)
cannam@85 14126 # Rational C++ 2.4.1
cannam@85 14127 lt_prog_compiler_pic_CXX='-pic'
cannam@85 14128 ;;
cannam@85 14129 cxx*)
cannam@85 14130 # Digital/Compaq C++
cannam@85 14131 lt_prog_compiler_wl_CXX='-Wl,'
cannam@85 14132 # Make sure the PIC flag is empty. It appears that all Alpha
cannam@85 14133 # Linux and Compaq Tru64 Unix objects are PIC.
cannam@85 14134 lt_prog_compiler_pic_CXX=
cannam@85 14135 lt_prog_compiler_static_CXX='-non_shared'
cannam@85 14136 ;;
cannam@85 14137 *)
cannam@85 14138 ;;
cannam@85 14139 esac
cannam@85 14140 ;;
cannam@85 14141 psos*)
cannam@85 14142 ;;
cannam@85 14143 solaris*)
cannam@85 14144 case $cc_basename in
cannam@85 14145 CC* | sunCC*)
cannam@85 14146 # Sun C++ 4.2, 5.x and Centerline C++
cannam@85 14147 lt_prog_compiler_pic_CXX='-KPIC'
cannam@85 14148 lt_prog_compiler_static_CXX='-Bstatic'
cannam@85 14149 lt_prog_compiler_wl_CXX='-Qoption ld '
cannam@85 14150 ;;
cannam@85 14151 gcx*)
cannam@85 14152 # Green Hills C++ Compiler
cannam@85 14153 lt_prog_compiler_pic_CXX='-PIC'
cannam@85 14154 ;;
cannam@85 14155 *)
cannam@85 14156 ;;
cannam@85 14157 esac
cannam@85 14158 ;;
cannam@85 14159 sunos4*)
cannam@85 14160 case $cc_basename in
cannam@85 14161 CC*)
cannam@85 14162 # Sun C++ 4.x
cannam@85 14163 lt_prog_compiler_pic_CXX='-pic'
cannam@85 14164 lt_prog_compiler_static_CXX='-Bstatic'
cannam@85 14165 ;;
cannam@85 14166 lcc*)
cannam@85 14167 # Lucid
cannam@85 14168 lt_prog_compiler_pic_CXX='-pic'
cannam@85 14169 ;;
cannam@85 14170 *)
cannam@85 14171 ;;
cannam@85 14172 esac
cannam@85 14173 ;;
cannam@85 14174 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
cannam@85 14175 case $cc_basename in
cannam@85 14176 CC*)
cannam@85 14177 lt_prog_compiler_wl_CXX='-Wl,'
cannam@85 14178 lt_prog_compiler_pic_CXX='-KPIC'
cannam@85 14179 lt_prog_compiler_static_CXX='-Bstatic'
cannam@85 14180 ;;
cannam@85 14181 esac
cannam@85 14182 ;;
cannam@85 14183 tandem*)
cannam@85 14184 case $cc_basename in
cannam@85 14185 NCC*)
cannam@85 14186 # NonStop-UX NCC 3.20
cannam@85 14187 lt_prog_compiler_pic_CXX='-KPIC'
cannam@85 14188 ;;
cannam@85 14189 *)
cannam@85 14190 ;;
cannam@85 14191 esac
cannam@85 14192 ;;
cannam@85 14193 vxworks*)
cannam@85 14194 ;;
cannam@85 14195 *)
cannam@85 14196 lt_prog_compiler_can_build_shared_CXX=no
cannam@85 14197 ;;
cannam@85 14198 esac
cannam@85 14199 fi
cannam@85 14200
cannam@85 14201 case $host_os in
cannam@85 14202 # For platforms which do not support PIC, -DPIC is meaningless:
cannam@85 14203 *djgpp*)
cannam@85 14204 lt_prog_compiler_pic_CXX=
cannam@85 14205 ;;
cannam@85 14206 *)
cannam@85 14207 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
cannam@85 14208 ;;
cannam@85 14209 esac
cannam@85 14210
cannam@85 14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cannam@85 14212 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
cannam@85 14213 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
cannam@85 14214 $as_echo_n "(cached) " >&6
cannam@85 14215 else
cannam@85 14216 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
cannam@85 14217 fi
cannam@85 14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
cannam@85 14219 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
cannam@85 14220 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cannam@85 14221
cannam@85 14222 #
cannam@85 14223 # Check to make sure the PIC flag actually works.
cannam@85 14224 #
cannam@85 14225 if test -n "$lt_prog_compiler_pic_CXX"; then
cannam@85 14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
cannam@85 14227 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cannam@85 14228 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cannam@85 14229 $as_echo_n "(cached) " >&6
cannam@85 14230 else
cannam@85 14231 lt_cv_prog_compiler_pic_works_CXX=no
cannam@85 14232 ac_outfile=conftest.$ac_objext
cannam@85 14233 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 14234 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
cannam@85 14235 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 14236 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 14237 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 14238 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 14239 # The option is referenced via a variable to avoid confusing sed.
cannam@85 14240 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 14241 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@85 14242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 14243 -e 's:$: $lt_compiler_flag:'`
cannam@85 14244 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@85 14245 (eval "$lt_compile" 2>conftest.err)
cannam@85 14246 ac_status=$?
cannam@85 14247 cat conftest.err >&5
cannam@85 14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 14249 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@85 14250 # The compiler can only warn and ignore the option if not recognized
cannam@85 14251 # So say no if there are warnings other than the usual output.
cannam@85 14252 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cannam@85 14253 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@85 14254 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
cannam@85 14255 lt_cv_prog_compiler_pic_works_CXX=yes
cannam@85 14256 fi
cannam@85 14257 fi
cannam@85 14258 $RM conftest*
cannam@85 14259
cannam@85 14260 fi
cannam@85 14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cannam@85 14262 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
cannam@85 14263
cannam@85 14264 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
cannam@85 14265 case $lt_prog_compiler_pic_CXX in
cannam@85 14266 "" | " "*) ;;
cannam@85 14267 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
cannam@85 14268 esac
cannam@85 14269 else
cannam@85 14270 lt_prog_compiler_pic_CXX=
cannam@85 14271 lt_prog_compiler_can_build_shared_CXX=no
cannam@85 14272 fi
cannam@85 14273
cannam@85 14274 fi
cannam@85 14275
cannam@85 14276
cannam@85 14277
cannam@85 14278
cannam@85 14279
cannam@85 14280 #
cannam@85 14281 # Check to make sure the static flag actually works.
cannam@85 14282 #
cannam@85 14283 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cannam@85 14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cannam@85 14285 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cannam@85 14286 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cannam@85 14287 $as_echo_n "(cached) " >&6
cannam@85 14288 else
cannam@85 14289 lt_cv_prog_compiler_static_works_CXX=no
cannam@85 14290 save_LDFLAGS="$LDFLAGS"
cannam@85 14291 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
cannam@85 14292 echo "$lt_simple_link_test_code" > conftest.$ac_ext
cannam@85 14293 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
cannam@85 14294 # The linker can only warn and ignore the option if not recognized
cannam@85 14295 # So say no if there are warnings
cannam@85 14296 if test -s conftest.err; then
cannam@85 14297 # Append any errors to the config.log.
cannam@85 14298 cat conftest.err 1>&5
cannam@85 14299 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cannam@85 14300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@85 14301 if diff conftest.exp conftest.er2 >/dev/null; then
cannam@85 14302 lt_cv_prog_compiler_static_works_CXX=yes
cannam@85 14303 fi
cannam@85 14304 else
cannam@85 14305 lt_cv_prog_compiler_static_works_CXX=yes
cannam@85 14306 fi
cannam@85 14307 fi
cannam@85 14308 $RM -r conftest*
cannam@85 14309 LDFLAGS="$save_LDFLAGS"
cannam@85 14310
cannam@85 14311 fi
cannam@85 14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cannam@85 14313 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
cannam@85 14314
cannam@85 14315 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
cannam@85 14316 :
cannam@85 14317 else
cannam@85 14318 lt_prog_compiler_static_CXX=
cannam@85 14319 fi
cannam@85 14320
cannam@85 14321
cannam@85 14322
cannam@85 14323
cannam@85 14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@85 14325 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cannam@85 14326 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cannam@85 14327 $as_echo_n "(cached) " >&6
cannam@85 14328 else
cannam@85 14329 lt_cv_prog_compiler_c_o_CXX=no
cannam@85 14330 $RM -r conftest 2>/dev/null
cannam@85 14331 mkdir conftest
cannam@85 14332 cd conftest
cannam@85 14333 mkdir out
cannam@85 14334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 14335
cannam@85 14336 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@85 14337 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 14338 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 14339 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 14340 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 14341 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 14342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@85 14343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 14344 -e 's:$: $lt_compiler_flag:'`
cannam@85 14345 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@85 14346 (eval "$lt_compile" 2>out/conftest.err)
cannam@85 14347 ac_status=$?
cannam@85 14348 cat out/conftest.err >&5
cannam@85 14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 14350 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@85 14351 then
cannam@85 14352 # The compiler can only warn and ignore the option if not recognized
cannam@85 14353 # So say no if there are warnings
cannam@85 14354 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cannam@85 14355 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cannam@85 14356 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cannam@85 14357 lt_cv_prog_compiler_c_o_CXX=yes
cannam@85 14358 fi
cannam@85 14359 fi
cannam@85 14360 chmod u+w . 2>&5
cannam@85 14361 $RM conftest*
cannam@85 14362 # SGI C++ compiler will create directory out/ii_files/ for
cannam@85 14363 # template instantiation
cannam@85 14364 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
cannam@85 14365 $RM out/* && rmdir out
cannam@85 14366 cd ..
cannam@85 14367 $RM -r conftest
cannam@85 14368 $RM conftest*
cannam@85 14369
cannam@85 14370 fi
cannam@85 14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cannam@85 14372 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
cannam@85 14373
cannam@85 14374
cannam@85 14375
cannam@85 14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@85 14377 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cannam@85 14378 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cannam@85 14379 $as_echo_n "(cached) " >&6
cannam@85 14380 else
cannam@85 14381 lt_cv_prog_compiler_c_o_CXX=no
cannam@85 14382 $RM -r conftest 2>/dev/null
cannam@85 14383 mkdir conftest
cannam@85 14384 cd conftest
cannam@85 14385 mkdir out
cannam@85 14386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 14387
cannam@85 14388 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@85 14389 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 14390 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 14391 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 14392 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 14393 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 14394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@85 14395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 14396 -e 's:$: $lt_compiler_flag:'`
cannam@85 14397 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@85 14398 (eval "$lt_compile" 2>out/conftest.err)
cannam@85 14399 ac_status=$?
cannam@85 14400 cat out/conftest.err >&5
cannam@85 14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 14402 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@85 14403 then
cannam@85 14404 # The compiler can only warn and ignore the option if not recognized
cannam@85 14405 # So say no if there are warnings
cannam@85 14406 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cannam@85 14407 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cannam@85 14408 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cannam@85 14409 lt_cv_prog_compiler_c_o_CXX=yes
cannam@85 14410 fi
cannam@85 14411 fi
cannam@85 14412 chmod u+w . 2>&5
cannam@85 14413 $RM conftest*
cannam@85 14414 # SGI C++ compiler will create directory out/ii_files/ for
cannam@85 14415 # template instantiation
cannam@85 14416 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
cannam@85 14417 $RM out/* && rmdir out
cannam@85 14418 cd ..
cannam@85 14419 $RM -r conftest
cannam@85 14420 $RM conftest*
cannam@85 14421
cannam@85 14422 fi
cannam@85 14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cannam@85 14424 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
cannam@85 14425
cannam@85 14426
cannam@85 14427
cannam@85 14428
cannam@85 14429 hard_links="nottested"
cannam@85 14430 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
cannam@85 14431 # do not overwrite the value of need_locks provided by the user
cannam@85 14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cannam@85 14433 $as_echo_n "checking if we can lock with hard links... " >&6; }
cannam@85 14434 hard_links=yes
cannam@85 14435 $RM conftest*
cannam@85 14436 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@85 14437 touch conftest.a
cannam@85 14438 ln conftest.a conftest.b 2>&5 || hard_links=no
cannam@85 14439 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@85 14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cannam@85 14441 $as_echo "$hard_links" >&6; }
cannam@85 14442 if test "$hard_links" = no; then
cannam@85 14443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cannam@85 14444 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
cannam@85 14445 need_locks=warn
cannam@85 14446 fi
cannam@85 14447 else
cannam@85 14448 need_locks=no
cannam@85 14449 fi
cannam@85 14450
cannam@85 14451
cannam@85 14452
cannam@85 14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@85 14454 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
cannam@85 14455
cannam@85 14456 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@85 14457 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cannam@85 14458 case $host_os in
cannam@85 14459 aix[4-9]*)
cannam@85 14460 # If we're using GNU nm, then we don't want the "-C" option.
cannam@85 14461 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cannam@85 14462 # Also, AIX nm treats weak defined symbols like other global defined
cannam@85 14463 # symbols, whereas GNU nm marks them as "W".
cannam@85 14464 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cannam@85 14465 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@85 14466 else
cannam@85 14467 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@85 14468 fi
cannam@85 14469 ;;
cannam@85 14470 pw32*)
cannam@85 14471 export_symbols_cmds_CXX="$ltdll_cmds"
cannam@85 14472 ;;
cannam@85 14473 cygwin* | mingw* | cegcc*)
cannam@85 14474 case $cc_basename in
cannam@85 14475 cl*) ;;
cannam@85 14476 *)
cannam@85 14477 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@85 14478 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
cannam@85 14479 ;;
cannam@85 14480 esac
cannam@85 14481 ;;
cannam@85 14482 linux* | k*bsd*-gnu | gnu*)
cannam@85 14483 link_all_deplibs_CXX=no
cannam@85 14484 ;;
cannam@85 14485 *)
cannam@85 14486 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@85 14487 ;;
cannam@85 14488 esac
cannam@85 14489
cannam@85 14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cannam@85 14491 $as_echo "$ld_shlibs_CXX" >&6; }
cannam@85 14492 test "$ld_shlibs_CXX" = no && can_build_shared=no
cannam@85 14493
cannam@85 14494 with_gnu_ld_CXX=$with_gnu_ld
cannam@85 14495
cannam@85 14496
cannam@85 14497
cannam@85 14498
cannam@85 14499
cannam@85 14500
cannam@85 14501 #
cannam@85 14502 # Do we need to explicitly link libc?
cannam@85 14503 #
cannam@85 14504 case "x$archive_cmds_need_lc_CXX" in
cannam@85 14505 x|xyes)
cannam@85 14506 # Assume -lc should be added
cannam@85 14507 archive_cmds_need_lc_CXX=yes
cannam@85 14508
cannam@85 14509 if test "$enable_shared" = yes && test "$GCC" = yes; then
cannam@85 14510 case $archive_cmds_CXX in
cannam@85 14511 *'~'*)
cannam@85 14512 # FIXME: we may have to deal with multi-command sequences.
cannam@85 14513 ;;
cannam@85 14514 '$CC '*)
cannam@85 14515 # Test whether the compiler implicitly links with -lc since on some
cannam@85 14516 # systems, -lgcc has to come before -lc. If gcc already passes -lc
cannam@85 14517 # to ld, don't add -lc before -lgcc.
cannam@85 14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cannam@85 14519 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cannam@85 14520 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cannam@85 14521 $as_echo_n "(cached) " >&6
cannam@85 14522 else
cannam@85 14523 $RM conftest*
cannam@85 14524 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 14525
cannam@85 14526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@85 14527 (eval $ac_compile) 2>&5
cannam@85 14528 ac_status=$?
cannam@85 14529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 14530 test $ac_status = 0; } 2>conftest.err; then
cannam@85 14531 soname=conftest
cannam@85 14532 lib=conftest
cannam@85 14533 libobjs=conftest.$ac_objext
cannam@85 14534 deplibs=
cannam@85 14535 wl=$lt_prog_compiler_wl_CXX
cannam@85 14536 pic_flag=$lt_prog_compiler_pic_CXX
cannam@85 14537 compiler_flags=-v
cannam@85 14538 linker_flags=-v
cannam@85 14539 verstring=
cannam@85 14540 output_objdir=.
cannam@85 14541 libname=conftest
cannam@85 14542 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
cannam@85 14543 allow_undefined_flag_CXX=
cannam@85 14544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cannam@85 14545 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
cannam@85 14546 ac_status=$?
cannam@85 14547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 14548 test $ac_status = 0; }
cannam@85 14549 then
cannam@85 14550 lt_cv_archive_cmds_need_lc_CXX=no
cannam@85 14551 else
cannam@85 14552 lt_cv_archive_cmds_need_lc_CXX=yes
cannam@85 14553 fi
cannam@85 14554 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
cannam@85 14555 else
cannam@85 14556 cat conftest.err 1>&5
cannam@85 14557 fi
cannam@85 14558 $RM conftest*
cannam@85 14559
cannam@85 14560 fi
cannam@85 14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
cannam@85 14562 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
cannam@85 14563 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cannam@85 14564 ;;
cannam@85 14565 esac
cannam@85 14566 fi
cannam@85 14567 ;;
cannam@85 14568 esac
cannam@85 14569
cannam@85 14570
cannam@85 14571
cannam@85 14572
cannam@85 14573
cannam@85 14574
cannam@85 14575
cannam@85 14576
cannam@85 14577
cannam@85 14578
cannam@85 14579
cannam@85 14580
cannam@85 14581
cannam@85 14582
cannam@85 14583
cannam@85 14584
cannam@85 14585
cannam@85 14586
cannam@85 14587
cannam@85 14588
cannam@85 14589
cannam@85 14590
cannam@85 14591
cannam@85 14592
cannam@85 14593
cannam@85 14594
cannam@85 14595
cannam@85 14596
cannam@85 14597
cannam@85 14598
cannam@85 14599
cannam@85 14600
cannam@85 14601
cannam@85 14602
cannam@85 14603
cannam@85 14604
cannam@85 14605
cannam@85 14606
cannam@85 14607
cannam@85 14608
cannam@85 14609
cannam@85 14610
cannam@85 14611
cannam@85 14612
cannam@85 14613
cannam@85 14614
cannam@85 14615
cannam@85 14616
cannam@85 14617
cannam@85 14618
cannam@85 14619
cannam@85 14620
cannam@85 14621
cannam@85 14622
cannam@85 14623
cannam@85 14624
cannam@85 14625
cannam@85 14626
cannam@85 14627
cannam@85 14628
cannam@85 14629
cannam@85 14630
cannam@85 14631
cannam@85 14632
cannam@85 14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cannam@85 14634 $as_echo_n "checking dynamic linker characteristics... " >&6; }
cannam@85 14635
cannam@85 14636 library_names_spec=
cannam@85 14637 libname_spec='lib$name'
cannam@85 14638 soname_spec=
cannam@85 14639 shrext_cmds=".so"
cannam@85 14640 postinstall_cmds=
cannam@85 14641 postuninstall_cmds=
cannam@85 14642 finish_cmds=
cannam@85 14643 finish_eval=
cannam@85 14644 shlibpath_var=
cannam@85 14645 shlibpath_overrides_runpath=unknown
cannam@85 14646 version_type=none
cannam@85 14647 dynamic_linker="$host_os ld.so"
cannam@85 14648 sys_lib_dlsearch_path_spec="/lib /usr/lib"
cannam@85 14649 need_lib_prefix=unknown
cannam@85 14650 hardcode_into_libs=no
cannam@85 14651
cannam@85 14652 # when you set need_version to no, make sure it does not cause -set_version
cannam@85 14653 # flags to be left without arguments
cannam@85 14654 need_version=unknown
cannam@85 14655
cannam@85 14656 case $host_os in
cannam@85 14657 aix3*)
cannam@85 14658 version_type=linux
cannam@85 14659 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
cannam@85 14660 shlibpath_var=LIBPATH
cannam@85 14661
cannam@85 14662 # AIX 3 has no versioning support, so we append a major version to the name.
cannam@85 14663 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14664 ;;
cannam@85 14665
cannam@85 14666 aix[4-9]*)
cannam@85 14667 version_type=linux
cannam@85 14668 need_lib_prefix=no
cannam@85 14669 need_version=no
cannam@85 14670 hardcode_into_libs=yes
cannam@85 14671 if test "$host_cpu" = ia64; then
cannam@85 14672 # AIX 5 supports IA64
cannam@85 14673 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
cannam@85 14674 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14675 else
cannam@85 14676 # With GCC up to 2.95.x, collect2 would create an import file
cannam@85 14677 # for dependence libraries. The import file would start with
cannam@85 14678 # the line `#! .'. This would cause the generated library to
cannam@85 14679 # depend on `.', always an invalid library. This was fixed in
cannam@85 14680 # development snapshots of GCC prior to 3.0.
cannam@85 14681 case $host_os in
cannam@85 14682 aix4 | aix4.[01] | aix4.[01].*)
cannam@85 14683 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
cannam@85 14684 echo ' yes '
cannam@85 14685 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
cannam@85 14686 :
cannam@85 14687 else
cannam@85 14688 can_build_shared=no
cannam@85 14689 fi
cannam@85 14690 ;;
cannam@85 14691 esac
cannam@85 14692 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
cannam@85 14693 # soname into executable. Probably we can add versioning support to
cannam@85 14694 # collect2, so additional links can be useful in future.
cannam@85 14695 if test "$aix_use_runtimelinking" = yes; then
cannam@85 14696 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
cannam@85 14697 # instead of lib<name>.a to let people know that these are not
cannam@85 14698 # typical AIX shared libraries.
cannam@85 14699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14700 else
cannam@85 14701 # We preserve .a as extension for shared libraries through AIX4.2
cannam@85 14702 # and later when we are not doing run time linking.
cannam@85 14703 library_names_spec='${libname}${release}.a $libname.a'
cannam@85 14704 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14705 fi
cannam@85 14706 shlibpath_var=LIBPATH
cannam@85 14707 fi
cannam@85 14708 ;;
cannam@85 14709
cannam@85 14710 amigaos*)
cannam@85 14711 case $host_cpu in
cannam@85 14712 powerpc)
cannam@85 14713 # Since July 2007 AmigaOS4 officially supports .so libraries.
cannam@85 14714 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
cannam@85 14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14716 ;;
cannam@85 14717 m68k)
cannam@85 14718 library_names_spec='$libname.ixlibrary $libname.a'
cannam@85 14719 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cannam@85 14720 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@85 14721 ;;
cannam@85 14722 esac
cannam@85 14723 ;;
cannam@85 14724
cannam@85 14725 beos*)
cannam@85 14726 library_names_spec='${libname}${shared_ext}'
cannam@85 14727 dynamic_linker="$host_os ld.so"
cannam@85 14728 shlibpath_var=LIBRARY_PATH
cannam@85 14729 ;;
cannam@85 14730
cannam@85 14731 bsdi[45]*)
cannam@85 14732 version_type=linux
cannam@85 14733 need_version=no
cannam@85 14734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14735 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14736 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
cannam@85 14737 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14738 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
cannam@85 14739 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
cannam@85 14740 # the default ld.so.conf also contains /usr/contrib/lib and
cannam@85 14741 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
cannam@85 14742 # libtool to hard-code these into programs
cannam@85 14743 ;;
cannam@85 14744
cannam@85 14745 cygwin* | mingw* | pw32* | cegcc*)
cannam@85 14746 version_type=windows
cannam@85 14747 shrext_cmds=".dll"
cannam@85 14748 need_version=no
cannam@85 14749 need_lib_prefix=no
cannam@85 14750
cannam@85 14751 case $GCC,$cc_basename in
cannam@85 14752 yes,*)
cannam@85 14753 # gcc
cannam@85 14754 library_names_spec='$libname.dll.a'
cannam@85 14755 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@85 14756 postinstall_cmds='base_file=`basename \${file}`~
cannam@85 14757 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
cannam@85 14758 dldir=$destdir/`dirname \$dlpath`~
cannam@85 14759 test -d \$dldir || mkdir -p \$dldir~
cannam@85 14760 $install_prog $dir/$dlname \$dldir/$dlname~
cannam@85 14761 chmod a+x \$dldir/$dlname~
cannam@85 14762 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
cannam@85 14763 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
cannam@85 14764 fi'
cannam@85 14765 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@85 14766 dlpath=$dir/\$dldll~
cannam@85 14767 $RM \$dlpath'
cannam@85 14768 shlibpath_overrides_runpath=yes
cannam@85 14769
cannam@85 14770 case $host_os in
cannam@85 14771 cygwin*)
cannam@85 14772 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
cannam@85 14773 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@85 14774
cannam@85 14775 ;;
cannam@85 14776 mingw* | cegcc*)
cannam@85 14777 # MinGW DLLs use traditional 'lib' prefix
cannam@85 14778 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@85 14779 ;;
cannam@85 14780 pw32*)
cannam@85 14781 # pw32 DLLs use 'pw' prefix rather than 'lib'
cannam@85 14782 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@85 14783 ;;
cannam@85 14784 esac
cannam@85 14785 dynamic_linker='Win32 ld.exe'
cannam@85 14786 ;;
cannam@85 14787
cannam@85 14788 *,cl*)
cannam@85 14789 # Native MSVC
cannam@85 14790 libname_spec='$name'
cannam@85 14791 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@85 14792 library_names_spec='${libname}.dll.lib'
cannam@85 14793
cannam@85 14794 case $build_os in
cannam@85 14795 mingw*)
cannam@85 14796 sys_lib_search_path_spec=
cannam@85 14797 lt_save_ifs=$IFS
cannam@85 14798 IFS=';'
cannam@85 14799 for lt_path in $LIB
cannam@85 14800 do
cannam@85 14801 IFS=$lt_save_ifs
cannam@85 14802 # Let DOS variable expansion print the short 8.3 style file name.
cannam@85 14803 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
cannam@85 14804 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
cannam@85 14805 done
cannam@85 14806 IFS=$lt_save_ifs
cannam@85 14807 # Convert to MSYS style.
cannam@85 14808 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@85 14809 ;;
cannam@85 14810 cygwin*)
cannam@85 14811 # Convert to unix form, then to dos form, then back to unix form
cannam@85 14812 # but this time dos style (no spaces!) so that the unix form looks
cannam@85 14813 # like /cygdrive/c/PROGRA~1:/cygdr...
cannam@85 14814 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
cannam@85 14815 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
cannam@85 14816 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@85 14817 ;;
cannam@85 14818 *)
cannam@85 14819 sys_lib_search_path_spec="$LIB"
cannam@85 14820 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
cannam@85 14821 # It is most probably a Windows format PATH.
cannam@85 14822 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@85 14823 else
cannam@85 14824 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@85 14825 fi
cannam@85 14826 # FIXME: find the short name or the path components, as spaces are
cannam@85 14827 # common. (e.g. "Program Files" -> "PROGRA~1")
cannam@85 14828 ;;
cannam@85 14829 esac
cannam@85 14830
cannam@85 14831 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@85 14832 postinstall_cmds='base_file=`basename \${file}`~
cannam@85 14833 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
cannam@85 14834 dldir=$destdir/`dirname \$dlpath`~
cannam@85 14835 test -d \$dldir || mkdir -p \$dldir~
cannam@85 14836 $install_prog $dir/$dlname \$dldir/$dlname'
cannam@85 14837 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@85 14838 dlpath=$dir/\$dldll~
cannam@85 14839 $RM \$dlpath'
cannam@85 14840 shlibpath_overrides_runpath=yes
cannam@85 14841 dynamic_linker='Win32 link.exe'
cannam@85 14842 ;;
cannam@85 14843
cannam@85 14844 *)
cannam@85 14845 # Assume MSVC wrapper
cannam@85 14846 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cannam@85 14847 dynamic_linker='Win32 ld.exe'
cannam@85 14848 ;;
cannam@85 14849 esac
cannam@85 14850 # FIXME: first we should search . and the directory the executable is in
cannam@85 14851 shlibpath_var=PATH
cannam@85 14852 ;;
cannam@85 14853
cannam@85 14854 darwin* | rhapsody*)
cannam@85 14855 dynamic_linker="$host_os dyld"
cannam@85 14856 version_type=darwin
cannam@85 14857 need_lib_prefix=no
cannam@85 14858 need_version=no
cannam@85 14859 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
cannam@85 14860 soname_spec='${libname}${release}${major}$shared_ext'
cannam@85 14861 shlibpath_overrides_runpath=yes
cannam@85 14862 shlibpath_var=DYLD_LIBRARY_PATH
cannam@85 14863 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
cannam@85 14864
cannam@85 14865 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
cannam@85 14866 ;;
cannam@85 14867
cannam@85 14868 dgux*)
cannam@85 14869 version_type=linux
cannam@85 14870 need_lib_prefix=no
cannam@85 14871 need_version=no
cannam@85 14872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
cannam@85 14873 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14874 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14875 ;;
cannam@85 14876
cannam@85 14877 freebsd1*)
cannam@85 14878 dynamic_linker=no
cannam@85 14879 ;;
cannam@85 14880
cannam@85 14881 freebsd* | dragonfly*)
cannam@85 14882 # DragonFly does not have aout. When/if they implement a new
cannam@85 14883 # versioning mechanism, adjust this.
cannam@85 14884 if test -x /usr/bin/objformat; then
cannam@85 14885 objformat=`/usr/bin/objformat`
cannam@85 14886 else
cannam@85 14887 case $host_os in
cannam@85 14888 freebsd[123]*) objformat=aout ;;
cannam@85 14889 *) objformat=elf ;;
cannam@85 14890 esac
cannam@85 14891 fi
cannam@85 14892 version_type=freebsd-$objformat
cannam@85 14893 case $version_type in
cannam@85 14894 freebsd-elf*)
cannam@85 14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@85 14896 need_version=no
cannam@85 14897 need_lib_prefix=no
cannam@85 14898 ;;
cannam@85 14899 freebsd-*)
cannam@85 14900 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
cannam@85 14901 need_version=yes
cannam@85 14902 ;;
cannam@85 14903 esac
cannam@85 14904 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14905 case $host_os in
cannam@85 14906 freebsd2*)
cannam@85 14907 shlibpath_overrides_runpath=yes
cannam@85 14908 ;;
cannam@85 14909 freebsd3.[01]* | freebsdelf3.[01]*)
cannam@85 14910 shlibpath_overrides_runpath=yes
cannam@85 14911 hardcode_into_libs=yes
cannam@85 14912 ;;
cannam@85 14913 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
cannam@85 14914 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
cannam@85 14915 shlibpath_overrides_runpath=no
cannam@85 14916 hardcode_into_libs=yes
cannam@85 14917 ;;
cannam@85 14918 *) # from 4.6 on, and DragonFly
cannam@85 14919 shlibpath_overrides_runpath=yes
cannam@85 14920 hardcode_into_libs=yes
cannam@85 14921 ;;
cannam@85 14922 esac
cannam@85 14923 ;;
cannam@85 14924
cannam@85 14925 gnu*)
cannam@85 14926 version_type=linux
cannam@85 14927 need_lib_prefix=no
cannam@85 14928 need_version=no
cannam@85 14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
cannam@85 14930 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14931 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14932 shlibpath_overrides_runpath=no
cannam@85 14933 hardcode_into_libs=yes
cannam@85 14934 ;;
cannam@85 14935
cannam@85 14936 haiku*)
cannam@85 14937 version_type=linux
cannam@85 14938 need_lib_prefix=no
cannam@85 14939 need_version=no
cannam@85 14940 dynamic_linker="$host_os runtime_loader"
cannam@85 14941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
cannam@85 14942 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14943 shlibpath_var=LIBRARY_PATH
cannam@85 14944 shlibpath_overrides_runpath=yes
cannam@85 14945 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
cannam@85 14946 hardcode_into_libs=yes
cannam@85 14947 ;;
cannam@85 14948
cannam@85 14949 hpux9* | hpux10* | hpux11*)
cannam@85 14950 # Give a soname corresponding to the major version so that dld.sl refuses to
cannam@85 14951 # link against other versions.
cannam@85 14952 version_type=sunos
cannam@85 14953 need_lib_prefix=no
cannam@85 14954 need_version=no
cannam@85 14955 case $host_cpu in
cannam@85 14956 ia64*)
cannam@85 14957 shrext_cmds='.so'
cannam@85 14958 hardcode_into_libs=yes
cannam@85 14959 dynamic_linker="$host_os dld.so"
cannam@85 14960 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14961 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@85 14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14963 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14964 if test "X$HPUX_IA64_MODE" = X32; then
cannam@85 14965 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
cannam@85 14966 else
cannam@85 14967 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
cannam@85 14968 fi
cannam@85 14969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@85 14970 ;;
cannam@85 14971 hppa*64*)
cannam@85 14972 shrext_cmds='.sl'
cannam@85 14973 hardcode_into_libs=yes
cannam@85 14974 dynamic_linker="$host_os dld.sl"
cannam@85 14975 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
cannam@85 14976 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@85 14977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14978 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14979 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
cannam@85 14980 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@85 14981 ;;
cannam@85 14982 *)
cannam@85 14983 shrext_cmds='.sl'
cannam@85 14984 dynamic_linker="$host_os dld.sl"
cannam@85 14985 shlibpath_var=SHLIB_PATH
cannam@85 14986 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
cannam@85 14987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14988 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14989 ;;
cannam@85 14990 esac
cannam@85 14991 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cannam@85 14992 postinstall_cmds='chmod 555 $lib'
cannam@85 14993 # or fails outright, so override atomically:
cannam@85 14994 install_override_mode=555
cannam@85 14995 ;;
cannam@85 14996
cannam@85 14997 interix[3-9]*)
cannam@85 14998 version_type=linux
cannam@85 14999 need_lib_prefix=no
cannam@85 15000 need_version=no
cannam@85 15001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 15002 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 15003 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
cannam@85 15004 shlibpath_var=LD_LIBRARY_PATH
cannam@85 15005 shlibpath_overrides_runpath=no
cannam@85 15006 hardcode_into_libs=yes
cannam@85 15007 ;;
cannam@85 15008
cannam@85 15009 irix5* | irix6* | nonstopux*)
cannam@85 15010 case $host_os in
cannam@85 15011 nonstopux*) version_type=nonstopux ;;
cannam@85 15012 *)
cannam@85 15013 if test "$lt_cv_prog_gnu_ld" = yes; then
cannam@85 15014 version_type=linux
cannam@85 15015 else
cannam@85 15016 version_type=irix
cannam@85 15017 fi ;;
cannam@85 15018 esac
cannam@85 15019 need_lib_prefix=no
cannam@85 15020 need_version=no
cannam@85 15021 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 15022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@85 15023 case $host_os in
cannam@85 15024 irix5* | nonstopux*)
cannam@85 15025 libsuff= shlibsuff=
cannam@85 15026 ;;
cannam@85 15027 *)
cannam@85 15028 case $LD in # libtool.m4 will add one of these switches to LD
cannam@85 15029 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
cannam@85 15030 libsuff= shlibsuff= libmagic=32-bit;;
cannam@85 15031 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
cannam@85 15032 libsuff=32 shlibsuff=N32 libmagic=N32;;
cannam@85 15033 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
cannam@85 15034 libsuff=64 shlibsuff=64 libmagic=64-bit;;
cannam@85 15035 *) libsuff= shlibsuff= libmagic=never-match;;
cannam@85 15036 esac
cannam@85 15037 ;;
cannam@85 15038 esac
cannam@85 15039 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
cannam@85 15040 shlibpath_overrides_runpath=no
cannam@85 15041 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
cannam@85 15042 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
cannam@85 15043 hardcode_into_libs=yes
cannam@85 15044 ;;
cannam@85 15045
cannam@85 15046 # No shared lib support for Linux oldld, aout, or coff.
cannam@85 15047 linux*oldld* | linux*aout* | linux*coff*)
cannam@85 15048 dynamic_linker=no
cannam@85 15049 ;;
cannam@85 15050
cannam@85 15051 # This must be Linux ELF.
cannam@85 15052 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cannam@85 15053 version_type=linux
cannam@85 15054 need_lib_prefix=no
cannam@85 15055 need_version=no
cannam@85 15056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 15057 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 15058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
cannam@85 15059 shlibpath_var=LD_LIBRARY_PATH
cannam@85 15060 shlibpath_overrides_runpath=no
cannam@85 15061
cannam@85 15062 # Some binutils ld are patched to set DT_RUNPATH
cannam@85 15063 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cannam@85 15064 $as_echo_n "(cached) " >&6
cannam@85 15065 else
cannam@85 15066 lt_cv_shlibpath_overrides_runpath=no
cannam@85 15067 save_LDFLAGS=$LDFLAGS
cannam@85 15068 save_libdir=$libdir
cannam@85 15069 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
cannam@85 15070 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
cannam@85 15071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 15072 /* end confdefs.h. */
cannam@85 15073
cannam@85 15074 int
cannam@85 15075 main ()
cannam@85 15076 {
cannam@85 15077
cannam@85 15078 ;
cannam@85 15079 return 0;
cannam@85 15080 }
cannam@85 15081 _ACEOF
cannam@85 15082 if ac_fn_cxx_try_link "$LINENO"; then :
cannam@85 15083 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cannam@85 15084 lt_cv_shlibpath_overrides_runpath=yes
cannam@85 15085 fi
cannam@85 15086 fi
cannam@85 15087 rm -f core conftest.err conftest.$ac_objext \
cannam@85 15088 conftest$ac_exeext conftest.$ac_ext
cannam@85 15089 LDFLAGS=$save_LDFLAGS
cannam@85 15090 libdir=$save_libdir
cannam@85 15091
cannam@85 15092 fi
cannam@85 15093
cannam@85 15094 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cannam@85 15095
cannam@85 15096 # This implies no fast_install, which is unacceptable.
cannam@85 15097 # Some rework will be needed to allow for fast_install
cannam@85 15098 # before this can be enabled.
cannam@85 15099 hardcode_into_libs=yes
cannam@85 15100
cannam@85 15101 # Append ld.so.conf contents to the search path
cannam@85 15102 if test -f /etc/ld.so.conf; then
cannam@85 15103 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@85 15104 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
cannam@85 15105 fi
cannam@85 15106
cannam@85 15107 # We used to test for /lib/ld.so.1 and disable shared libraries on
cannam@85 15108 # powerpc, because MkLinux only supported shared libraries with the
cannam@85 15109 # GNU dynamic linker. Since this was broken with cross compilers,
cannam@85 15110 # most powerpc-linux boxes support dynamic linking these days and
cannam@85 15111 # people can always --disable-shared, the test was removed, and we
cannam@85 15112 # assume the GNU/Linux dynamic linker is in use.
cannam@85 15113 dynamic_linker='GNU/Linux ld.so'
cannam@85 15114 ;;
cannam@85 15115
cannam@85 15116 netbsdelf*-gnu)
cannam@85 15117 version_type=linux
cannam@85 15118 need_lib_prefix=no
cannam@85 15119 need_version=no
cannam@85 15120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 15121 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 15122 shlibpath_var=LD_LIBRARY_PATH
cannam@85 15123 shlibpath_overrides_runpath=no
cannam@85 15124 hardcode_into_libs=yes
cannam@85 15125 dynamic_linker='NetBSD ld.elf_so'
cannam@85 15126 ;;
cannam@85 15127
cannam@85 15128 netbsd*)
cannam@85 15129 version_type=sunos
cannam@85 15130 need_lib_prefix=no
cannam@85 15131 need_version=no
cannam@85 15132 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@85 15133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 15134 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@85 15135 dynamic_linker='NetBSD (a.out) ld.so'
cannam@85 15136 else
cannam@85 15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 15138 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 15139 dynamic_linker='NetBSD ld.elf_so'
cannam@85 15140 fi
cannam@85 15141 shlibpath_var=LD_LIBRARY_PATH
cannam@85 15142 shlibpath_overrides_runpath=yes
cannam@85 15143 hardcode_into_libs=yes
cannam@85 15144 ;;
cannam@85 15145
cannam@85 15146 newsos6)
cannam@85 15147 version_type=linux
cannam@85 15148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 15149 shlibpath_var=LD_LIBRARY_PATH
cannam@85 15150 shlibpath_overrides_runpath=yes
cannam@85 15151 ;;
cannam@85 15152
cannam@85 15153 *nto* | *qnx*)
cannam@85 15154 version_type=qnx
cannam@85 15155 need_lib_prefix=no
cannam@85 15156 need_version=no
cannam@85 15157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 15158 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 15159 shlibpath_var=LD_LIBRARY_PATH
cannam@85 15160 shlibpath_overrides_runpath=no
cannam@85 15161 hardcode_into_libs=yes
cannam@85 15162 dynamic_linker='ldqnx.so'
cannam@85 15163 ;;
cannam@85 15164
cannam@85 15165 openbsd*)
cannam@85 15166 version_type=sunos
cannam@85 15167 sys_lib_dlsearch_path_spec="/usr/lib"
cannam@85 15168 need_lib_prefix=no
cannam@85 15169 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
cannam@85 15170 case $host_os in
cannam@85 15171 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
cannam@85 15172 *) need_version=no ;;
cannam@85 15173 esac
cannam@85 15174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 15175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@85 15176 shlibpath_var=LD_LIBRARY_PATH
cannam@85 15177 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@85 15178 case $host_os in
cannam@85 15179 openbsd2.[89] | openbsd2.[89].*)
cannam@85 15180 shlibpath_overrides_runpath=no
cannam@85 15181 ;;
cannam@85 15182 *)
cannam@85 15183 shlibpath_overrides_runpath=yes
cannam@85 15184 ;;
cannam@85 15185 esac
cannam@85 15186 else
cannam@85 15187 shlibpath_overrides_runpath=yes
cannam@85 15188 fi
cannam@85 15189 ;;
cannam@85 15190
cannam@85 15191 os2*)
cannam@85 15192 libname_spec='$name'
cannam@85 15193 shrext_cmds=".dll"
cannam@85 15194 need_lib_prefix=no
cannam@85 15195 library_names_spec='$libname${shared_ext} $libname.a'
cannam@85 15196 dynamic_linker='OS/2 ld.exe'
cannam@85 15197 shlibpath_var=LIBPATH
cannam@85 15198 ;;
cannam@85 15199
cannam@85 15200 osf3* | osf4* | osf5*)
cannam@85 15201 version_type=osf
cannam@85 15202 need_lib_prefix=no
cannam@85 15203 need_version=no
cannam@85 15204 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 15206 shlibpath_var=LD_LIBRARY_PATH
cannam@85 15207 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
cannam@85 15208 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
cannam@85 15209 ;;
cannam@85 15210
cannam@85 15211 rdos*)
cannam@85 15212 dynamic_linker=no
cannam@85 15213 ;;
cannam@85 15214
cannam@85 15215 solaris*)
cannam@85 15216 version_type=linux
cannam@85 15217 need_lib_prefix=no
cannam@85 15218 need_version=no
cannam@85 15219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 15220 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 15221 shlibpath_var=LD_LIBRARY_PATH
cannam@85 15222 shlibpath_overrides_runpath=yes
cannam@85 15223 hardcode_into_libs=yes
cannam@85 15224 # ldd complains unless libraries are executable
cannam@85 15225 postinstall_cmds='chmod +x $lib'
cannam@85 15226 ;;
cannam@85 15227
cannam@85 15228 sunos4*)
cannam@85 15229 version_type=sunos
cannam@85 15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 15231 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
cannam@85 15232 shlibpath_var=LD_LIBRARY_PATH
cannam@85 15233 shlibpath_overrides_runpath=yes
cannam@85 15234 if test "$with_gnu_ld" = yes; then
cannam@85 15235 need_lib_prefix=no
cannam@85 15236 fi
cannam@85 15237 need_version=yes
cannam@85 15238 ;;
cannam@85 15239
cannam@85 15240 sysv4 | sysv4.3*)
cannam@85 15241 version_type=linux
cannam@85 15242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 15243 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 15244 shlibpath_var=LD_LIBRARY_PATH
cannam@85 15245 case $host_vendor in
cannam@85 15246 sni)
cannam@85 15247 shlibpath_overrides_runpath=no
cannam@85 15248 need_lib_prefix=no
cannam@85 15249 runpath_var=LD_RUN_PATH
cannam@85 15250 ;;
cannam@85 15251 siemens)
cannam@85 15252 need_lib_prefix=no
cannam@85 15253 ;;
cannam@85 15254 motorola)
cannam@85 15255 need_lib_prefix=no
cannam@85 15256 need_version=no
cannam@85 15257 shlibpath_overrides_runpath=no
cannam@85 15258 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
cannam@85 15259 ;;
cannam@85 15260 esac
cannam@85 15261 ;;
cannam@85 15262
cannam@85 15263 sysv4*MP*)
cannam@85 15264 if test -d /usr/nec ;then
cannam@85 15265 version_type=linux
cannam@85 15266 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
cannam@85 15267 soname_spec='$libname${shared_ext}.$major'
cannam@85 15268 shlibpath_var=LD_LIBRARY_PATH
cannam@85 15269 fi
cannam@85 15270 ;;
cannam@85 15271
cannam@85 15272 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
cannam@85 15273 version_type=freebsd-elf
cannam@85 15274 need_lib_prefix=no
cannam@85 15275 need_version=no
cannam@85 15276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@85 15277 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 15278 shlibpath_var=LD_LIBRARY_PATH
cannam@85 15279 shlibpath_overrides_runpath=yes
cannam@85 15280 hardcode_into_libs=yes
cannam@85 15281 if test "$with_gnu_ld" = yes; then
cannam@85 15282 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
cannam@85 15283 else
cannam@85 15284 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
cannam@85 15285 case $host_os in
cannam@85 15286 sco3.2v5*)
cannam@85 15287 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
cannam@85 15288 ;;
cannam@85 15289 esac
cannam@85 15290 fi
cannam@85 15291 sys_lib_dlsearch_path_spec='/usr/lib'
cannam@85 15292 ;;
cannam@85 15293
cannam@85 15294 tpf*)
cannam@85 15295 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cannam@85 15296 version_type=linux
cannam@85 15297 need_lib_prefix=no
cannam@85 15298 need_version=no
cannam@85 15299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 15300 shlibpath_var=LD_LIBRARY_PATH
cannam@85 15301 shlibpath_overrides_runpath=no
cannam@85 15302 hardcode_into_libs=yes
cannam@85 15303 ;;
cannam@85 15304
cannam@85 15305 uts4*)
cannam@85 15306 version_type=linux
cannam@85 15307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 15308 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 15309 shlibpath_var=LD_LIBRARY_PATH
cannam@85 15310 ;;
cannam@85 15311
cannam@85 15312 *)
cannam@85 15313 dynamic_linker=no
cannam@85 15314 ;;
cannam@85 15315 esac
cannam@85 15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cannam@85 15317 $as_echo "$dynamic_linker" >&6; }
cannam@85 15318 test "$dynamic_linker" = no && can_build_shared=no
cannam@85 15319
cannam@85 15320 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
cannam@85 15321 if test "$GCC" = yes; then
cannam@85 15322 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
cannam@85 15323 fi
cannam@85 15324
cannam@85 15325 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
cannam@85 15326 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
cannam@85 15327 fi
cannam@85 15328 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
cannam@85 15329 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
cannam@85 15330 fi
cannam@85 15331
cannam@85 15332
cannam@85 15333
cannam@85 15334
cannam@85 15335
cannam@85 15336
cannam@85 15337
cannam@85 15338
cannam@85 15339
cannam@85 15340
cannam@85 15341
cannam@85 15342
cannam@85 15343
cannam@85 15344
cannam@85 15345
cannam@85 15346
cannam@85 15347
cannam@85 15348
cannam@85 15349
cannam@85 15350
cannam@85 15351
cannam@85 15352
cannam@85 15353
cannam@85 15354
cannam@85 15355
cannam@85 15356
cannam@85 15357
cannam@85 15358
cannam@85 15359
cannam@85 15360
cannam@85 15361
cannam@85 15362
cannam@85 15363
cannam@85 15364
cannam@85 15365
cannam@85 15366
cannam@85 15367
cannam@85 15368
cannam@85 15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cannam@85 15370 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
cannam@85 15371 hardcode_action_CXX=
cannam@85 15372 if test -n "$hardcode_libdir_flag_spec_CXX" ||
cannam@85 15373 test -n "$runpath_var_CXX" ||
cannam@85 15374 test "X$hardcode_automatic_CXX" = "Xyes" ; then
cannam@85 15375
cannam@85 15376 # We can hardcode non-existent directories.
cannam@85 15377 if test "$hardcode_direct_CXX" != no &&
cannam@85 15378 # If the only mechanism to avoid hardcoding is shlibpath_var, we
cannam@85 15379 # have to relink, otherwise we might link with an installed library
cannam@85 15380 # when we should be linking with a yet-to-be-installed one
cannam@85 15381 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
cannam@85 15382 test "$hardcode_minus_L_CXX" != no; then
cannam@85 15383 # Linking always hardcodes the temporary library directory.
cannam@85 15384 hardcode_action_CXX=relink
cannam@85 15385 else
cannam@85 15386 # We can link without hardcoding, and we can hardcode nonexisting dirs.
cannam@85 15387 hardcode_action_CXX=immediate
cannam@85 15388 fi
cannam@85 15389 else
cannam@85 15390 # We cannot hardcode anything, or else we can only hardcode existing
cannam@85 15391 # directories.
cannam@85 15392 hardcode_action_CXX=unsupported
cannam@85 15393 fi
cannam@85 15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cannam@85 15395 $as_echo "$hardcode_action_CXX" >&6; }
cannam@85 15396
cannam@85 15397 if test "$hardcode_action_CXX" = relink ||
cannam@85 15398 test "$inherit_rpath_CXX" = yes; then
cannam@85 15399 # Fast installation is not supported
cannam@85 15400 enable_fast_install=no
cannam@85 15401 elif test "$shlibpath_overrides_runpath" = yes ||
cannam@85 15402 test "$enable_shared" = no; then
cannam@85 15403 # Fast installation is not necessary
cannam@85 15404 enable_fast_install=needless
cannam@85 15405 fi
cannam@85 15406
cannam@85 15407
cannam@85 15408
cannam@85 15409
cannam@85 15410
cannam@85 15411
cannam@85 15412
cannam@85 15413 fi # test -n "$compiler"
cannam@85 15414
cannam@85 15415 CC=$lt_save_CC
cannam@85 15416 CFLAGS=$lt_save_CFLAGS
cannam@85 15417 LDCXX=$LD
cannam@85 15418 LD=$lt_save_LD
cannam@85 15419 GCC=$lt_save_GCC
cannam@85 15420 with_gnu_ld=$lt_save_with_gnu_ld
cannam@85 15421 lt_cv_path_LDCXX=$lt_cv_path_LD
cannam@85 15422 lt_cv_path_LD=$lt_save_path_LD
cannam@85 15423 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
cannam@85 15424 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
cannam@85 15425 fi # test "$_lt_caught_CXX_error" != yes
cannam@85 15426
cannam@85 15427 ac_ext=c
cannam@85 15428 ac_cpp='$CPP $CPPFLAGS'
cannam@85 15429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 15430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 15431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 15432
cannam@85 15433
cannam@85 15434
cannam@85 15435
cannam@85 15436
cannam@85 15437
cannam@85 15438
cannam@85 15439
cannam@85 15440
cannam@85 15441
cannam@85 15442
cannam@85 15443
cannam@85 15444
cannam@85 15445 ac_config_commands="$ac_config_commands libtool"
cannam@85 15446
cannam@85 15447
cannam@85 15448
cannam@85 15449
cannam@85 15450 # Only expand once:
cannam@85 15451
cannam@85 15452
cannam@85 15453 if test -n "$ac_tool_prefix"; then
cannam@85 15454 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
cannam@85 15455 set dummy ${ac_tool_prefix}windres; ac_word=$2
cannam@85 15456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 15457 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 15458 if ${ac_cv_prog_RC+:} false; then :
cannam@85 15459 $as_echo_n "(cached) " >&6
cannam@85 15460 else
cannam@85 15461 if test -n "$RC"; then
cannam@85 15462 ac_cv_prog_RC="$RC" # Let the user override the test.
cannam@85 15463 else
cannam@85 15464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 15465 for as_dir in $PATH
cannam@85 15466 do
cannam@85 15467 IFS=$as_save_IFS
cannam@85 15468 test -z "$as_dir" && as_dir=.
cannam@85 15469 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 15470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 15471 ac_cv_prog_RC="${ac_tool_prefix}windres"
cannam@85 15472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 15473 break 2
cannam@85 15474 fi
cannam@85 15475 done
cannam@85 15476 done
cannam@85 15477 IFS=$as_save_IFS
cannam@85 15478
cannam@85 15479 fi
cannam@85 15480 fi
cannam@85 15481 RC=$ac_cv_prog_RC
cannam@85 15482 if test -n "$RC"; then
cannam@85 15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
cannam@85 15484 $as_echo "$RC" >&6; }
cannam@85 15485 else
cannam@85 15486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 15487 $as_echo "no" >&6; }
cannam@85 15488 fi
cannam@85 15489
cannam@85 15490
cannam@85 15491 fi
cannam@85 15492 if test -z "$ac_cv_prog_RC"; then
cannam@85 15493 ac_ct_RC=$RC
cannam@85 15494 # Extract the first word of "windres", so it can be a program name with args.
cannam@85 15495 set dummy windres; ac_word=$2
cannam@85 15496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 15497 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 15498 if ${ac_cv_prog_ac_ct_RC+:} false; then :
cannam@85 15499 $as_echo_n "(cached) " >&6
cannam@85 15500 else
cannam@85 15501 if test -n "$ac_ct_RC"; then
cannam@85 15502 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
cannam@85 15503 else
cannam@85 15504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 15505 for as_dir in $PATH
cannam@85 15506 do
cannam@85 15507 IFS=$as_save_IFS
cannam@85 15508 test -z "$as_dir" && as_dir=.
cannam@85 15509 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 15510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 15511 ac_cv_prog_ac_ct_RC="windres"
cannam@85 15512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 15513 break 2
cannam@85 15514 fi
cannam@85 15515 done
cannam@85 15516 done
cannam@85 15517 IFS=$as_save_IFS
cannam@85 15518
cannam@85 15519 fi
cannam@85 15520 fi
cannam@85 15521 ac_ct_RC=$ac_cv_prog_ac_ct_RC
cannam@85 15522 if test -n "$ac_ct_RC"; then
cannam@85 15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
cannam@85 15524 $as_echo "$ac_ct_RC" >&6; }
cannam@85 15525 else
cannam@85 15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 15527 $as_echo "no" >&6; }
cannam@85 15528 fi
cannam@85 15529
cannam@85 15530 if test "x$ac_ct_RC" = x; then
cannam@85 15531 RC=""
cannam@85 15532 else
cannam@85 15533 case $cross_compiling:$ac_tool_warned in
cannam@85 15534 yes:)
cannam@85 15535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@85 15536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@85 15537 ac_tool_warned=yes ;;
cannam@85 15538 esac
cannam@85 15539 RC=$ac_ct_RC
cannam@85 15540 fi
cannam@85 15541 else
cannam@85 15542 RC="$ac_cv_prog_RC"
cannam@85 15543 fi
cannam@85 15544
cannam@85 15545
cannam@85 15546
cannam@85 15547 # Source file extension for RC test sources.
cannam@85 15548 ac_ext=rc
cannam@85 15549
cannam@85 15550 # Object file extension for compiled RC test sources.
cannam@85 15551 objext=o
cannam@85 15552 objext_RC=$objext
cannam@85 15553
cannam@85 15554 # Code to be used in simple compile tests
cannam@85 15555 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
cannam@85 15556
cannam@85 15557 # Code to be used in simple link tests
cannam@85 15558 lt_simple_link_test_code="$lt_simple_compile_test_code"
cannam@85 15559
cannam@85 15560 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
cannam@85 15561
cannam@85 15562
cannam@85 15563
cannam@85 15564
cannam@85 15565
cannam@85 15566
cannam@85 15567 # If no C compiler was specified, use CC.
cannam@85 15568 LTCC=${LTCC-"$CC"}
cannam@85 15569
cannam@85 15570 # If no C compiler flags were specified, use CFLAGS.
cannam@85 15571 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cannam@85 15572
cannam@85 15573 # Allow CC to be a program name with arguments.
cannam@85 15574 compiler=$CC
cannam@85 15575
cannam@85 15576
cannam@85 15577 # save warnings/boilerplate of simple test code
cannam@85 15578 ac_outfile=conftest.$ac_objext
cannam@85 15579 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
cannam@85 15580 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@85 15581 _lt_compiler_boilerplate=`cat conftest.err`
cannam@85 15582 $RM conftest*
cannam@85 15583
cannam@85 15584 ac_outfile=conftest.$ac_objext
cannam@85 15585 echo "$lt_simple_link_test_code" >conftest.$ac_ext
cannam@85 15586 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@85 15587 _lt_linker_boilerplate=`cat conftest.err`
cannam@85 15588 $RM -r conftest*
cannam@85 15589
cannam@85 15590
cannam@85 15591 # Allow CC to be a program name with arguments.
cannam@85 15592 lt_save_CC="$CC"
cannam@85 15593 lt_save_CFLAGS=$CFLAGS
cannam@85 15594 lt_save_GCC=$GCC
cannam@85 15595 GCC=
cannam@85 15596 CC=${RC-"windres"}
cannam@85 15597 CFLAGS=
cannam@85 15598 compiler=$CC
cannam@85 15599 compiler_RC=$CC
cannam@85 15600 for cc_temp in $compiler""; do
cannam@85 15601 case $cc_temp in
cannam@85 15602 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
cannam@85 15603 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
cannam@85 15604 \-*) ;;
cannam@85 15605 *) break;;
cannam@85 15606 esac
cannam@85 15607 done
cannam@85 15608 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cannam@85 15609
cannam@85 15610 lt_cv_prog_compiler_c_o_RC=yes
cannam@85 15611
cannam@85 15612 if test -n "$compiler"; then
cannam@85 15613 :
cannam@85 15614
cannam@85 15615
cannam@85 15616
cannam@85 15617 fi
cannam@85 15618
cannam@85 15619 GCC=$lt_save_GCC
cannam@85 15620 ac_ext=c
cannam@85 15621 ac_cpp='$CPP $CPPFLAGS'
cannam@85 15622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 15623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 15624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 15625
cannam@85 15626 CC=$lt_save_CC
cannam@85 15627 CFLAGS=$lt_save_CFLAGS
cannam@85 15628
cannam@85 15629
cannam@85 15630
cannam@85 15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cannam@85 15632 $as_echo_n "checking whether ln -s works... " >&6; }
cannam@85 15633 LN_S=$as_ln_s
cannam@85 15634 if test "$LN_S" = "ln -s"; then
cannam@85 15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@85 15636 $as_echo "yes" >&6; }
cannam@85 15637 else
cannam@85 15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cannam@85 15639 $as_echo "no, using $LN_S" >&6; }
cannam@85 15640 fi
cannam@85 15641
cannam@85 15642
cannam@85 15643 #------------------------------------------------------------------------------------
cannam@85 15644 # Rules for library version information:
cannam@85 15645 #
cannam@85 15646 # 1. Start with version information of `0:0:0' for each libtool library.
cannam@85 15647 # 2. Update the version information only immediately before a public release of
cannam@85 15648 # your software. More frequent updates are unnecessary, and only guarantee
cannam@85 15649 # that the current interface number gets larger faster.
cannam@85 15650 # 3. If the library source code has changed at all since the last update, then
cannam@85 15651 # increment revision (`c:r:a' becomes `c:r+1:a').
cannam@85 15652 # 4. If any interfaces have been added, removed, or changed since the last update,
cannam@85 15653 # increment current, and set revision to 0.
cannam@85 15654 # 5. If any interfaces have been added since the last public release, then increment
cannam@85 15655 # age.
cannam@85 15656 # 6. If any interfaces have been removed since the last public release, then set age
cannam@85 15657 # to 0.
cannam@85 15658
cannam@85 15659 SHARED_VERSION_INFO="1:8:1"
cannam@85 15660
cannam@85 15661
cannam@85 15662
cannam@85 15663
cannam@85 15664
cannam@85 15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cannam@85 15666 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
cannam@85 15667 set x ${MAKE-make}
cannam@85 15668 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cannam@85 15669 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cannam@85 15670 $as_echo_n "(cached) " >&6
cannam@85 15671 else
cannam@85 15672 cat >conftest.make <<\_ACEOF
cannam@85 15673 SHELL = /bin/sh
cannam@85 15674 all:
cannam@85 15675 @echo '@@@%%%=$(MAKE)=@@@%%%'
cannam@85 15676 _ACEOF
cannam@85 15677 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cannam@85 15678 case `${MAKE-make} -f conftest.make 2>/dev/null` in
cannam@85 15679 *@@@%%%=?*=@@@%%%*)
cannam@85 15680 eval ac_cv_prog_make_${ac_make}_set=yes;;
cannam@85 15681 *)
cannam@85 15682 eval ac_cv_prog_make_${ac_make}_set=no;;
cannam@85 15683 esac
cannam@85 15684 rm -f conftest.make
cannam@85 15685 fi
cannam@85 15686 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cannam@85 15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@85 15688 $as_echo "yes" >&6; }
cannam@85 15689 SET_MAKE=
cannam@85 15690 else
cannam@85 15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 15692 $as_echo "no" >&6; }
cannam@85 15693 SET_MAKE="MAKE=${MAKE-make}"
cannam@85 15694 fi
cannam@85 15695
cannam@85 15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cannam@85 15697 $as_echo_n "checking whether ln -s works... " >&6; }
cannam@85 15698 LN_S=$as_ln_s
cannam@85 15699 if test "$LN_S" = "ln -s"; then
cannam@85 15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@85 15701 $as_echo "yes" >&6; }
cannam@85 15702 else
cannam@85 15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cannam@85 15704 $as_echo "no, using $LN_S" >&6; }
cannam@85 15705 fi
cannam@85 15706
cannam@85 15707
cannam@85 15708
cannam@85 15709 if test "x-$build_os-$host_os-$target_os" = x-mingw32-mingw32-mingw32 ; then
cannam@85 15710 # Extract the first word of "dlltool", so it can be a program name with args.
cannam@85 15711 set dummy dlltool; ac_word=$2
cannam@85 15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 15713 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 15714 if ${ac_cv_prog_DLLTOOL+:} false; then :
cannam@85 15715 $as_echo_n "(cached) " >&6
cannam@85 15716 else
cannam@85 15717 if test -n "$DLLTOOL"; then
cannam@85 15718 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
cannam@85 15719 else
cannam@85 15720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 15721 for as_dir in $PATH
cannam@85 15722 do
cannam@85 15723 IFS=$as_save_IFS
cannam@85 15724 test -z "$as_dir" && as_dir=.
cannam@85 15725 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 15726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 15727 ac_cv_prog_DLLTOOL="dlltool"
cannam@85 15728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 15729 break 2
cannam@85 15730 fi
cannam@85 15731 done
cannam@85 15732 done
cannam@85 15733 IFS=$as_save_IFS
cannam@85 15734
cannam@85 15735 fi
cannam@85 15736 fi
cannam@85 15737 DLLTOOL=$ac_cv_prog_DLLTOOL
cannam@85 15738 if test -n "$DLLTOOL"; then
cannam@85 15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cannam@85 15740 $as_echo "$DLLTOOL" >&6; }
cannam@85 15741 else
cannam@85 15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 15743 $as_echo "no" >&6; }
cannam@85 15744 fi
cannam@85 15745
cannam@85 15746
cannam@85 15747 # Extract the first word of "dllwrap", so it can be a program name with args.
cannam@85 15748 set dummy dllwrap; ac_word=$2
cannam@85 15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 15750 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 15751 if ${ac_cv_prog_DLLWRAP+:} false; then :
cannam@85 15752 $as_echo_n "(cached) " >&6
cannam@85 15753 else
cannam@85 15754 if test -n "$DLLWRAP"; then
cannam@85 15755 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
cannam@85 15756 else
cannam@85 15757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 15758 for as_dir in $PATH
cannam@85 15759 do
cannam@85 15760 IFS=$as_save_IFS
cannam@85 15761 test -z "$as_dir" && as_dir=.
cannam@85 15762 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 15763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 15764 ac_cv_prog_DLLWRAP="dllwrap"
cannam@85 15765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 15766 break 2
cannam@85 15767 fi
cannam@85 15768 done
cannam@85 15769 done
cannam@85 15770 IFS=$as_save_IFS
cannam@85 15771
cannam@85 15772 fi
cannam@85 15773 fi
cannam@85 15774 DLLWRAP=$ac_cv_prog_DLLWRAP
cannam@85 15775 if test -n "$DLLWRAP"; then
cannam@85 15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
cannam@85 15777 $as_echo "$DLLWRAP" >&6; }
cannam@85 15778 else
cannam@85 15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 15780 $as_echo "no" >&6; }
cannam@85 15781 fi
cannam@85 15782
cannam@85 15783
cannam@85 15784 # Extract the first word of "pexports", so it can be a program name with args.
cannam@85 15785 set dummy pexports; ac_word=$2
cannam@85 15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 15787 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 15788 if ${ac_cv_prog_PEXPORTS+:} false; then :
cannam@85 15789 $as_echo_n "(cached) " >&6
cannam@85 15790 else
cannam@85 15791 if test -n "$PEXPORTS"; then
cannam@85 15792 ac_cv_prog_PEXPORTS="$PEXPORTS" # Let the user override the test.
cannam@85 15793 else
cannam@85 15794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 15795 for as_dir in $PATH
cannam@85 15796 do
cannam@85 15797 IFS=$as_save_IFS
cannam@85 15798 test -z "$as_dir" && as_dir=.
cannam@85 15799 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 15800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 15801 ac_cv_prog_PEXPORTS="pexports"
cannam@85 15802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 15803 break 2
cannam@85 15804 fi
cannam@85 15805 done
cannam@85 15806 done
cannam@85 15807 IFS=$as_save_IFS
cannam@85 15808
cannam@85 15809 fi
cannam@85 15810 fi
cannam@85 15811 PEXPORTS=$ac_cv_prog_PEXPORTS
cannam@85 15812 if test -n "$PEXPORTS"; then
cannam@85 15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PEXPORTS" >&5
cannam@85 15814 $as_echo "$PEXPORTS" >&6; }
cannam@85 15815 else
cannam@85 15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 15817 $as_echo "no" >&6; }
cannam@85 15818 fi
cannam@85 15819
cannam@85 15820
cannam@85 15821 fi
cannam@85 15822
cannam@85 15823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cannam@85 15824 $as_echo_n "checking for ANSI C header files... " >&6; }
cannam@85 15825 if ${ac_cv_header_stdc+:} false; then :
cannam@85 15826 $as_echo_n "(cached) " >&6
cannam@85 15827 else
cannam@85 15828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 15829 /* end confdefs.h. */
cannam@85 15830 #include <stdlib.h>
cannam@85 15831 #include <stdarg.h>
cannam@85 15832 #include <string.h>
cannam@85 15833 #include <float.h>
cannam@85 15834
cannam@85 15835 int
cannam@85 15836 main ()
cannam@85 15837 {
cannam@85 15838
cannam@85 15839 ;
cannam@85 15840 return 0;
cannam@85 15841 }
cannam@85 15842 _ACEOF
cannam@85 15843 if ac_fn_c_try_compile "$LINENO"; then :
cannam@85 15844 ac_cv_header_stdc=yes
cannam@85 15845 else
cannam@85 15846 ac_cv_header_stdc=no
cannam@85 15847 fi
cannam@85 15848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 15849
cannam@85 15850 if test $ac_cv_header_stdc = yes; then
cannam@85 15851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cannam@85 15852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 15853 /* end confdefs.h. */
cannam@85 15854 #include <string.h>
cannam@85 15855
cannam@85 15856 _ACEOF
cannam@85 15857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@85 15858 $EGREP "memchr" >/dev/null 2>&1; then :
cannam@85 15859
cannam@85 15860 else
cannam@85 15861 ac_cv_header_stdc=no
cannam@85 15862 fi
cannam@85 15863 rm -f conftest*
cannam@85 15864
cannam@85 15865 fi
cannam@85 15866
cannam@85 15867 if test $ac_cv_header_stdc = yes; then
cannam@85 15868 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cannam@85 15869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 15870 /* end confdefs.h. */
cannam@85 15871 #include <stdlib.h>
cannam@85 15872
cannam@85 15873 _ACEOF
cannam@85 15874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@85 15875 $EGREP "free" >/dev/null 2>&1; then :
cannam@85 15876
cannam@85 15877 else
cannam@85 15878 ac_cv_header_stdc=no
cannam@85 15879 fi
cannam@85 15880 rm -f conftest*
cannam@85 15881
cannam@85 15882 fi
cannam@85 15883
cannam@85 15884 if test $ac_cv_header_stdc = yes; then
cannam@85 15885 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cannam@85 15886 if test "$cross_compiling" = yes; then :
cannam@85 15887 :
cannam@85 15888 else
cannam@85 15889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 15890 /* end confdefs.h. */
cannam@85 15891 #include <ctype.h>
cannam@85 15892 #include <stdlib.h>
cannam@85 15893 #if ((' ' & 0x0FF) == 0x020)
cannam@85 15894 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
cannam@85 15895 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
cannam@85 15896 #else
cannam@85 15897 # define ISLOWER(c) \
cannam@85 15898 (('a' <= (c) && (c) <= 'i') \
cannam@85 15899 || ('j' <= (c) && (c) <= 'r') \
cannam@85 15900 || ('s' <= (c) && (c) <= 'z'))
cannam@85 15901 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
cannam@85 15902 #endif
cannam@85 15903
cannam@85 15904 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
cannam@85 15905 int
cannam@85 15906 main ()
cannam@85 15907 {
cannam@85 15908 int i;
cannam@85 15909 for (i = 0; i < 256; i++)
cannam@85 15910 if (XOR (islower (i), ISLOWER (i))
cannam@85 15911 || toupper (i) != TOUPPER (i))
cannam@85 15912 return 2;
cannam@85 15913 return 0;
cannam@85 15914 }
cannam@85 15915 _ACEOF
cannam@85 15916 if ac_fn_c_try_run "$LINENO"; then :
cannam@85 15917
cannam@85 15918 else
cannam@85 15919 ac_cv_header_stdc=no
cannam@85 15920 fi
cannam@85 15921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@85 15922 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@85 15923 fi
cannam@85 15924
cannam@85 15925 fi
cannam@85 15926 fi
cannam@85 15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cannam@85 15928 $as_echo "$ac_cv_header_stdc" >&6; }
cannam@85 15929 if test $ac_cv_header_stdc = yes; then
cannam@85 15930
cannam@85 15931 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
cannam@85 15932
cannam@85 15933 fi
cannam@85 15934
cannam@85 15935
cannam@85 15936 for ac_header in stdint.h sys/times.h
cannam@85 15937 do :
cannam@85 15938 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cannam@85 15939 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cannam@85 15940 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cannam@85 15941 cat >>confdefs.h <<_ACEOF
cannam@85 15942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
cannam@85 15943 _ACEOF
cannam@85 15944
cannam@85 15945 fi
cannam@85 15946
cannam@85 15947 done
cannam@85 15948
cannam@85 15949
cannam@85 15950 #====================================================================================
cannam@85 15951 # Couple of initializations here. Fill in real values later.
cannam@85 15952
cannam@85 15953 SHLIB_VERSION_ARG=""
cannam@85 15954
cannam@85 15955 #====================================================================================
cannam@85 15956 # Finished checking, handle options.
cannam@85 15957
cannam@85 15958 # Check whether --enable-gcc-werror was given.
cannam@85 15959 if test "${enable_gcc_werror+set}" = set; then :
cannam@85 15960 enableval=$enable_gcc_werror; ac_arg_gcc_werror=yes
cannam@85 15961 else
cannam@85 15962 ac_arg_gcc_werror=no
cannam@85 15963 fi
cannam@85 15964
cannam@85 15965
cannam@85 15966 # Check whether --enable-gcc-pipe was given.
cannam@85 15967 if test "${enable_gcc_pipe+set}" = set; then :
cannam@85 15968 enableval=$enable_gcc_pipe; ac_arg_gcc_pipe="N"
cannam@85 15969 else
cannam@85 15970 ac_arg_gcc_pipe="Y"
cannam@85 15971 fi
cannam@85 15972
cannam@85 15973
cannam@85 15974 # Check whether --enable-gcc-opt was given.
cannam@85 15975 if test "${enable_gcc_opt+set}" = set; then :
cannam@85 15976 enableval=$enable_gcc_opt; ac_arg_gcc_opt="N"
cannam@85 15977 else
cannam@85 15978 ac_arg_gcc_opt="Y"
cannam@85 15979 fi
cannam@85 15980
cannam@85 15981
cannam@85 15982 # Check whether --enable-fftw was given.
cannam@85 15983 if test "${enable_fftw+set}" = set; then :
cannam@85 15984 enableval=$enable_fftw; ac_arg_fftw="N"
cannam@85 15985 else
cannam@85 15986 ac_arg_fftw="Y"
cannam@85 15987 fi
cannam@85 15988
cannam@85 15989
cannam@85 15990 # Check whether --enable-cpu-clip was given.
cannam@85 15991 if test "${enable_cpu_clip+set}" = set; then :
cannam@85 15992 enableval=$enable_cpu_clip; ac_arg_cpu_clip="N"
cannam@85 15993 else
cannam@85 15994 ac_arg_cpu_clip="Y"
cannam@85 15995 fi
cannam@85 15996
cannam@85 15997
cannam@85 15998 #====================================================================================
cannam@85 15999 # Check types and their sizes.
cannam@85 16000
cannam@85 16001 # The cast to long int works around a bug in the HP C Compiler
cannam@85 16002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@85 16003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@85 16004 # This bug is HP SR number 8606223364.
cannam@85 16005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
cannam@85 16006 $as_echo_n "checking size of int... " >&6; }
cannam@85 16007 if ${ac_cv_sizeof_int+:} false; then :
cannam@85 16008 $as_echo_n "(cached) " >&6
cannam@85 16009 else
cannam@85 16010 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
cannam@85 16011
cannam@85 16012 else
cannam@85 16013 if test "$ac_cv_type_int" = yes; then
cannam@85 16014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@85 16015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@85 16016 as_fn_error 77 "cannot compute sizeof (int)
cannam@85 16017 See \`config.log' for more details" "$LINENO" 5; }
cannam@85 16018 else
cannam@85 16019 ac_cv_sizeof_int=0
cannam@85 16020 fi
cannam@85 16021 fi
cannam@85 16022
cannam@85 16023 fi
cannam@85 16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
cannam@85 16025 $as_echo "$ac_cv_sizeof_int" >&6; }
cannam@85 16026
cannam@85 16027
cannam@85 16028
cannam@85 16029 cat >>confdefs.h <<_ACEOF
cannam@85 16030 #define SIZEOF_INT $ac_cv_sizeof_int
cannam@85 16031 _ACEOF
cannam@85 16032
cannam@85 16033
cannam@85 16034 # The cast to long int works around a bug in the HP C Compiler
cannam@85 16035 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@85 16036 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@85 16037 # This bug is HP SR number 8606223364.
cannam@85 16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
cannam@85 16039 $as_echo_n "checking size of long... " >&6; }
cannam@85 16040 if ${ac_cv_sizeof_long+:} false; then :
cannam@85 16041 $as_echo_n "(cached) " >&6
cannam@85 16042 else
cannam@85 16043 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
cannam@85 16044
cannam@85 16045 else
cannam@85 16046 if test "$ac_cv_type_long" = yes; then
cannam@85 16047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@85 16048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@85 16049 as_fn_error 77 "cannot compute sizeof (long)
cannam@85 16050 See \`config.log' for more details" "$LINENO" 5; }
cannam@85 16051 else
cannam@85 16052 ac_cv_sizeof_long=0
cannam@85 16053 fi
cannam@85 16054 fi
cannam@85 16055
cannam@85 16056 fi
cannam@85 16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
cannam@85 16058 $as_echo "$ac_cv_sizeof_long" >&6; }
cannam@85 16059
cannam@85 16060
cannam@85 16061
cannam@85 16062 cat >>confdefs.h <<_ACEOF
cannam@85 16063 #define SIZEOF_LONG $ac_cv_sizeof_long
cannam@85 16064 _ACEOF
cannam@85 16065
cannam@85 16066
cannam@85 16067 # The cast to long int works around a bug in the HP C Compiler
cannam@85 16068 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@85 16069 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@85 16070 # This bug is HP SR number 8606223364.
cannam@85 16071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
cannam@85 16072 $as_echo_n "checking size of float... " >&6; }
cannam@85 16073 if ${ac_cv_sizeof_float+:} false; then :
cannam@85 16074 $as_echo_n "(cached) " >&6
cannam@85 16075 else
cannam@85 16076 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
cannam@85 16077
cannam@85 16078 else
cannam@85 16079 if test "$ac_cv_type_float" = yes; then
cannam@85 16080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@85 16081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@85 16082 as_fn_error 77 "cannot compute sizeof (float)
cannam@85 16083 See \`config.log' for more details" "$LINENO" 5; }
cannam@85 16084 else
cannam@85 16085 ac_cv_sizeof_float=0
cannam@85 16086 fi
cannam@85 16087 fi
cannam@85 16088
cannam@85 16089 fi
cannam@85 16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
cannam@85 16091 $as_echo "$ac_cv_sizeof_float" >&6; }
cannam@85 16092
cannam@85 16093
cannam@85 16094
cannam@85 16095 cat >>confdefs.h <<_ACEOF
cannam@85 16096 #define SIZEOF_FLOAT $ac_cv_sizeof_float
cannam@85 16097 _ACEOF
cannam@85 16098
cannam@85 16099
cannam@85 16100 # The cast to long int works around a bug in the HP C Compiler
cannam@85 16101 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@85 16102 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@85 16103 # This bug is HP SR number 8606223364.
cannam@85 16104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
cannam@85 16105 $as_echo_n "checking size of double... " >&6; }
cannam@85 16106 if ${ac_cv_sizeof_double+:} false; then :
cannam@85 16107 $as_echo_n "(cached) " >&6
cannam@85 16108 else
cannam@85 16109 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
cannam@85 16110
cannam@85 16111 else
cannam@85 16112 if test "$ac_cv_type_double" = yes; then
cannam@85 16113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@85 16114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@85 16115 as_fn_error 77 "cannot compute sizeof (double)
cannam@85 16116 See \`config.log' for more details" "$LINENO" 5; }
cannam@85 16117 else
cannam@85 16118 ac_cv_sizeof_double=0
cannam@85 16119 fi
cannam@85 16120 fi
cannam@85 16121
cannam@85 16122 fi
cannam@85 16123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
cannam@85 16124 $as_echo "$ac_cv_sizeof_double" >&6; }
cannam@85 16125
cannam@85 16126
cannam@85 16127
cannam@85 16128 cat >>confdefs.h <<_ACEOF
cannam@85 16129 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
cannam@85 16130 _ACEOF
cannam@85 16131
cannam@85 16132
cannam@85 16133
cannam@85 16134 #====================================================================================
cannam@85 16135 # Determine endian-ness of target processor.
cannam@85 16136
cannam@85 16137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor byte ordering" >&5
cannam@85 16138 $as_echo_n "checking processor byte ordering... " >&6; }
cannam@85 16139 if ${ac_cv_c_byte_order+:} false; then :
cannam@85 16140 $as_echo_n "(cached) " >&6
cannam@85 16141 else
cannam@85 16142 # Initialize to unknown
cannam@85 16143 ac_cv_c_byte_order=unknown
cannam@85 16144
cannam@85 16145 if test x$ac_cv_header_endian_h = xyes ; then
cannam@85 16146
cannam@85 16147 # First try <endian.h> which should set BYTE_ORDER.
cannam@85 16148
cannam@85 16149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 16150 /* end confdefs.h. */
cannam@85 16151
cannam@85 16152 #include <endian.h>
cannam@85 16153 #if BYTE_ORDER != LITTLE_ENDIAN
cannam@85 16154 not big endian
cannam@85 16155 #endif
cannam@85 16156
cannam@85 16157 int
cannam@85 16158 main ()
cannam@85 16159 {
cannam@85 16160 return 0 ;
cannam@85 16161 ;
cannam@85 16162 return 0;
cannam@85 16163 }
cannam@85 16164 _ACEOF
cannam@85 16165 if ac_fn_c_try_link "$LINENO"; then :
cannam@85 16166 ac_cv_c_byte_order=little
cannam@85 16167
cannam@85 16168 fi
cannam@85 16169 rm -f core conftest.err conftest.$ac_objext \
cannam@85 16170 conftest$ac_exeext conftest.$ac_ext
cannam@85 16171
cannam@85 16172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 16173 /* end confdefs.h. */
cannam@85 16174
cannam@85 16175 #include <endian.h>
cannam@85 16176 #if BYTE_ORDER != BIG_ENDIAN
cannam@85 16177 not big endian
cannam@85 16178 #endif
cannam@85 16179
cannam@85 16180 int
cannam@85 16181 main ()
cannam@85 16182 {
cannam@85 16183 return 0 ;
cannam@85 16184 ;
cannam@85 16185 return 0;
cannam@85 16186 }
cannam@85 16187 _ACEOF
cannam@85 16188 if ac_fn_c_try_link "$LINENO"; then :
cannam@85 16189 ac_cv_c_byte_order=big
cannam@85 16190
cannam@85 16191 fi
cannam@85 16192 rm -f core conftest.err conftest.$ac_objext \
cannam@85 16193 conftest$ac_exeext conftest.$ac_ext
cannam@85 16194
cannam@85 16195 fi
cannam@85 16196
cannam@85 16197 if test $ac_cv_c_byte_order = unknown ; then
cannam@85 16198
cannam@85 16199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 16200 /* end confdefs.h. */
cannam@85 16201
cannam@85 16202 #include <sys/types.h>
cannam@85 16203 #include <sys/param.h>
cannam@85 16204 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
cannam@85 16205 bogus endian macros
cannam@85 16206 #endif
cannam@85 16207
cannam@85 16208 int
cannam@85 16209 main ()
cannam@85 16210 {
cannam@85 16211 return 0 ;
cannam@85 16212 ;
cannam@85 16213 return 0;
cannam@85 16214 }
cannam@85 16215 _ACEOF
cannam@85 16216 if ac_fn_c_try_link "$LINENO"; then :
cannam@85 16217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 16218 /* end confdefs.h. */
cannam@85 16219
cannam@85 16220 #include <sys/types.h>
cannam@85 16221 #include <sys/param.h>
cannam@85 16222 #if BYTE_ORDER != LITTLE_ENDIAN
cannam@85 16223 not big endian
cannam@85 16224 #endif
cannam@85 16225
cannam@85 16226 int
cannam@85 16227 main ()
cannam@85 16228 {
cannam@85 16229 return 0 ;
cannam@85 16230 ;
cannam@85 16231 return 0;
cannam@85 16232 }
cannam@85 16233 _ACEOF
cannam@85 16234 if ac_fn_c_try_link "$LINENO"; then :
cannam@85 16235 ac_cv_c_byte_order=little
cannam@85 16236
cannam@85 16237 fi
cannam@85 16238 rm -f core conftest.err conftest.$ac_objext \
cannam@85 16239 conftest$ac_exeext conftest.$ac_ext
cannam@85 16240
cannam@85 16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 16242 /* end confdefs.h. */
cannam@85 16243
cannam@85 16244 #include <sys/types.h>
cannam@85 16245 #include <sys/param.h>
cannam@85 16246 #if BYTE_ORDER != LITTLE_ENDIAN
cannam@85 16247 not big endian
cannam@85 16248 #endif
cannam@85 16249
cannam@85 16250 int
cannam@85 16251 main ()
cannam@85 16252 {
cannam@85 16253 return 0 ;
cannam@85 16254 ;
cannam@85 16255 return 0;
cannam@85 16256 }
cannam@85 16257 _ACEOF
cannam@85 16258 if ac_fn_c_try_link "$LINENO"; then :
cannam@85 16259 ac_cv_c_byte_order=little
cannam@85 16260
cannam@85 16261 fi
cannam@85 16262 rm -f core conftest.err conftest.$ac_objext \
cannam@85 16263 conftest$ac_exeext conftest.$ac_ext
cannam@85 16264
cannam@85 16265
cannam@85 16266 fi
cannam@85 16267 rm -f core conftest.err conftest.$ac_objext \
cannam@85 16268 conftest$ac_exeext conftest.$ac_ext
cannam@85 16269
cannam@85 16270 fi
cannam@85 16271
cannam@85 16272 if test $ac_cv_c_byte_order = unknown ; then
cannam@85 16273 if test $cross_compiling = yes ; then
cannam@85 16274 # This is the last resort. Try to guess the target processor endian-ness
cannam@85 16275 # by looking at the target CPU type.
cannam@85 16276
cannam@85 16277 case "$target_cpu" in
cannam@85 16278 alpha* | i?86* | mipsel* | ia64*)
cannam@85 16279 ac_cv_c_byte_order=little
cannam@85 16280 ;;
cannam@85 16281
cannam@85 16282 m68* | mips* | powerpc* | hppa* | sparc*)
cannam@85 16283 ac_cv_c_byte_order=big
cannam@85 16284 ;;
cannam@85 16285
cannam@85 16286 esac
cannam@85 16287
cannam@85 16288 else
cannam@85 16289 if test "$cross_compiling" = yes; then :
cannam@85 16290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@85 16291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@85 16292 as_fn_error $? "cannot run test program while cross compiling
cannam@85 16293 See \`config.log' for more details" "$LINENO" 5; }
cannam@85 16294 else
cannam@85 16295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 16296 /* end confdefs.h. */
cannam@85 16297
cannam@85 16298 int main (void)
cannam@85 16299 { /* Are we little or big endian? From Harbison&Steele. */
cannam@85 16300 union
cannam@85 16301 { long l ;
cannam@85 16302 char c [sizeof (long)] ;
cannam@85 16303 } u ;
cannam@85 16304 u.l = 1 ;
cannam@85 16305 return (u.c [sizeof (long) - 1] == 1);
cannam@85 16306 }
cannam@85 16307
cannam@85 16308 _ACEOF
cannam@85 16309 if ac_fn_c_try_run "$LINENO"; then :
cannam@85 16310
cannam@85 16311 else
cannam@85 16312 ac_cv_c_byte_order=big
cannam@85 16313 fi
cannam@85 16314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@85 16315 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@85 16316 fi
cannam@85 16317
cannam@85 16318
cannam@85 16319 if test "$cross_compiling" = yes; then :
cannam@85 16320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@85 16321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@85 16322 as_fn_error $? "cannot run test program while cross compiling
cannam@85 16323 See \`config.log' for more details" "$LINENO" 5; }
cannam@85 16324 else
cannam@85 16325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 16326 /* end confdefs.h. */
cannam@85 16327 int main (void)
cannam@85 16328 { /* Are we little or big endian? From Harbison&Steele. */
cannam@85 16329 union
cannam@85 16330 { long l ;
cannam@85 16331 char c [sizeof (long)] ;
cannam@85 16332 } u ;
cannam@85 16333 u.l = 1 ;
cannam@85 16334 return (u.c [0] == 1);
cannam@85 16335 }
cannam@85 16336 _ACEOF
cannam@85 16337 if ac_fn_c_try_run "$LINENO"; then :
cannam@85 16338
cannam@85 16339 else
cannam@85 16340 ac_cv_c_byte_order=little
cannam@85 16341 fi
cannam@85 16342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@85 16343 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@85 16344 fi
cannam@85 16345
cannam@85 16346 fi
cannam@85 16347 fi
cannam@85 16348
cannam@85 16349
cannam@85 16350 fi
cannam@85 16351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_byte_order" >&5
cannam@85 16352 $as_echo "$ac_cv_c_byte_order" >&6; }
cannam@85 16353
cannam@85 16354 if test $ac_cv_c_byte_order = big ; then
cannam@85 16355 ac_cv_c_big_endian=1
cannam@85 16356 ac_cv_c_little_endian=0
cannam@85 16357 elif test $ac_cv_c_byte_order = little ; then
cannam@85 16358 ac_cv_c_big_endian=0
cannam@85 16359 ac_cv_c_little_endian=1
cannam@85 16360 else
cannam@85 16361 ac_cv_c_big_endian=0
cannam@85 16362 ac_cv_c_little_endian=0
cannam@85 16363
cannam@85 16364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5
cannam@85 16365 $as_echo "$as_me: WARNING: *****************************************************************" >&2;}
cannam@85 16366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Not able to determine endian-ness of target processor. " >&5
cannam@85 16367 $as_echo "$as_me: WARNING: *** Not able to determine endian-ness of target processor. " >&2;}
cannam@85 16368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&5
cannam@85 16369 $as_echo "$as_me: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&2;}
cannam@85 16370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** src/config.h may need to be hand editied. " >&5
cannam@85 16371 $as_echo "$as_me: WARNING: *** src/config.h may need to be hand editied. " >&2;}
cannam@85 16372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5
cannam@85 16373 $as_echo "$as_me: WARNING: *****************************************************************" >&2;}
cannam@85 16374 fi
cannam@85 16375
cannam@85 16376
cannam@85 16377
cannam@85 16378
cannam@85 16379
cannam@85 16380 cat >>confdefs.h <<_ACEOF
cannam@85 16381 #define CPU_IS_BIG_ENDIAN ${ac_cv_c_big_endian}
cannam@85 16382 _ACEOF
cannam@85 16383
cannam@85 16384
cannam@85 16385 cat >>confdefs.h <<_ACEOF
cannam@85 16386 #define CPU_IS_LITTLE_ENDIAN ${ac_cv_c_little_endian}
cannam@85 16387 _ACEOF
cannam@85 16388
cannam@85 16389
cannam@85 16390 #====================================================================================
cannam@85 16391 # Check for functions.
cannam@85 16392
cannam@85 16393 for ac_func in malloc calloc free memcpy memmove alarm signal
cannam@85 16394 do :
cannam@85 16395 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
cannam@85 16396 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cannam@85 16397 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cannam@85 16398 cat >>confdefs.h <<_ACEOF
cannam@85 16399 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
cannam@85 16400 _ACEOF
cannam@85 16401
cannam@85 16402 fi
cannam@85 16403 done
cannam@85 16404
cannam@85 16405
cannam@85 16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
cannam@85 16407 $as_echo_n "checking for floor in -lm... " >&6; }
cannam@85 16408 if ${ac_cv_lib_m_floor+:} false; then :
cannam@85 16409 $as_echo_n "(cached) " >&6
cannam@85 16410 else
cannam@85 16411 ac_check_lib_save_LIBS=$LIBS
cannam@85 16412 LIBS="-lm $LIBS"
cannam@85 16413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 16414 /* end confdefs.h. */
cannam@85 16415
cannam@85 16416 /* Override any GCC internal prototype to avoid an error.
cannam@85 16417 Use char because int might match the return type of a GCC
cannam@85 16418 builtin and then its argument prototype would still apply. */
cannam@85 16419 #ifdef __cplusplus
cannam@85 16420 extern "C"
cannam@85 16421 #endif
cannam@85 16422 char floor ();
cannam@85 16423 int
cannam@85 16424 main ()
cannam@85 16425 {
cannam@85 16426 return floor ();
cannam@85 16427 ;
cannam@85 16428 return 0;
cannam@85 16429 }
cannam@85 16430 _ACEOF
cannam@85 16431 if ac_fn_c_try_link "$LINENO"; then :
cannam@85 16432 ac_cv_lib_m_floor=yes
cannam@85 16433 else
cannam@85 16434 ac_cv_lib_m_floor=no
cannam@85 16435 fi
cannam@85 16436 rm -f core conftest.err conftest.$ac_objext \
cannam@85 16437 conftest$ac_exeext conftest.$ac_ext
cannam@85 16438 LIBS=$ac_check_lib_save_LIBS
cannam@85 16439 fi
cannam@85 16440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
cannam@85 16441 $as_echo "$ac_cv_lib_m_floor" >&6; }
cannam@85 16442 if test "x$ac_cv_lib_m_floor" = xyes; then :
cannam@85 16443 cat >>confdefs.h <<_ACEOF
cannam@85 16444 #define HAVE_LIBM 1
cannam@85 16445 _ACEOF
cannam@85 16446
cannam@85 16447 LIBS="-lm $LIBS"
cannam@85 16448
cannam@85 16449 fi
cannam@85 16450
cannam@85 16451 for ac_func in floor ceil fmod
cannam@85 16452 do :
cannam@85 16453 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
cannam@85 16454 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cannam@85 16455 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cannam@85 16456 cat >>confdefs.h <<_ACEOF
cannam@85 16457 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
cannam@85 16458 _ACEOF
cannam@85 16459
cannam@85 16460 fi
cannam@85 16461 done
cannam@85 16462
cannam@85 16463
cannam@85 16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGALRM" >&5
cannam@85 16465 $as_echo_n "checking for SIGALRM... " >&6; }
cannam@85 16466 if ${ac_cv_signal_SIGALRM+:} false; then :
cannam@85 16467 $as_echo_n "(cached) " >&6
cannam@85 16468 else
cannam@85 16469
cannam@85 16470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 16471 /* end confdefs.h. */
cannam@85 16472
cannam@85 16473 #include <signal.h>
cannam@85 16474
cannam@85 16475
cannam@85 16476 int
cannam@85 16477 main ()
cannam@85 16478 {
cannam@85 16479 signal(SIGALRM, SIG_DFL) ;
cannam@85 16480 ;
cannam@85 16481 return 0;
cannam@85 16482 }
cannam@85 16483 _ACEOF
cannam@85 16484 if ac_fn_c_try_link "$LINENO"; then :
cannam@85 16485 ac_cv_signal_SIGALRM=yes
cannam@85 16486 else
cannam@85 16487 ac_cv_signal_SIGALRM=no
cannam@85 16488 fi
cannam@85 16489 rm -f core conftest.err conftest.$ac_objext \
cannam@85 16490 conftest$ac_exeext conftest.$ac_ext
cannam@85 16491
cannam@85 16492
cannam@85 16493 fi
cannam@85 16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_signal_SIGALRM" >&5
cannam@85 16495 $as_echo "$ac_cv_signal_SIGALRM" >&6; }
cannam@85 16496
cannam@85 16497 if test "$ac_cv_signal_SIGALRM" = yes; then
cannam@85 16498
cannam@85 16499 $as_echo "#define HAVE_SIGALRM 1" >>confdefs.h
cannam@85 16500
cannam@85 16501 fi
cannam@85 16502
cannam@85 16503
cannam@85 16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrint" >&5
cannam@85 16505 $as_echo_n "checking for lrint... " >&6; }
cannam@85 16506 if ${ac_cv_c99_lrint+:} false; then :
cannam@85 16507 $as_echo_n "(cached) " >&6
cannam@85 16508 else
cannam@85 16509
cannam@85 16510 lrint_save_CFLAGS=$CFLAGS
cannam@85 16511 CFLAGS="-lm"
cannam@85 16512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 16513 /* end confdefs.h. */
cannam@85 16514
cannam@85 16515 #define _ISOC9X_SOURCE 1
cannam@85 16516 #define _ISOC99_SOURCE 1
cannam@85 16517 #define __USE_ISOC99 1
cannam@85 16518 #define __USE_ISOC9X 1
cannam@85 16519
cannam@85 16520 #include <math.h>
cannam@85 16521
cannam@85 16522 int
cannam@85 16523 main ()
cannam@85 16524 {
cannam@85 16525 if (!lrint(3.14159)) lrint(2.7183);
cannam@85 16526 ;
cannam@85 16527 return 0;
cannam@85 16528 }
cannam@85 16529 _ACEOF
cannam@85 16530 if ac_fn_c_try_link "$LINENO"; then :
cannam@85 16531 ac_cv_c99_lrint=yes
cannam@85 16532 else
cannam@85 16533 ac_cv_c99_lrint=no
cannam@85 16534 fi
cannam@85 16535 rm -f core conftest.err conftest.$ac_objext \
cannam@85 16536 conftest$ac_exeext conftest.$ac_ext
cannam@85 16537
cannam@85 16538 CFLAGS=$lrint_save_CFLAGS
cannam@85 16539
cannam@85 16540
cannam@85 16541 fi
cannam@85 16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrint" >&5
cannam@85 16543 $as_echo "$ac_cv_c99_lrint" >&6; }
cannam@85 16544
cannam@85 16545 if test "$ac_cv_c99_lrint" = yes; then
cannam@85 16546
cannam@85 16547 $as_echo "#define HAVE_LRINT 1" >>confdefs.h
cannam@85 16548
cannam@85 16549 fi
cannam@85 16550
cannam@85 16551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrintf" >&5
cannam@85 16552 $as_echo_n "checking for lrintf... " >&6; }
cannam@85 16553 if ${ac_cv_c99_lrintf+:} false; then :
cannam@85 16554 $as_echo_n "(cached) " >&6
cannam@85 16555 else
cannam@85 16556
cannam@85 16557 lrintf_save_CFLAGS=$CFLAGS
cannam@85 16558 CFLAGS="-lm"
cannam@85 16559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 16560 /* end confdefs.h. */
cannam@85 16561
cannam@85 16562 #define _ISOC9X_SOURCE 1
cannam@85 16563 #define _ISOC99_SOURCE 1
cannam@85 16564 #define __USE_ISOC99 1
cannam@85 16565 #define __USE_ISOC9X 1
cannam@85 16566
cannam@85 16567 #include <math.h>
cannam@85 16568
cannam@85 16569 int
cannam@85 16570 main ()
cannam@85 16571 {
cannam@85 16572 if (!lrintf(3.14159)) lrintf(2.7183);
cannam@85 16573 ;
cannam@85 16574 return 0;
cannam@85 16575 }
cannam@85 16576 _ACEOF
cannam@85 16577 if ac_fn_c_try_link "$LINENO"; then :
cannam@85 16578 ac_cv_c99_lrintf=yes
cannam@85 16579 else
cannam@85 16580 ac_cv_c99_lrintf=no
cannam@85 16581 fi
cannam@85 16582 rm -f core conftest.err conftest.$ac_objext \
cannam@85 16583 conftest$ac_exeext conftest.$ac_ext
cannam@85 16584
cannam@85 16585 CFLAGS=$lrintf_save_CFLAGS
cannam@85 16586
cannam@85 16587
cannam@85 16588 fi
cannam@85 16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrintf" >&5
cannam@85 16590 $as_echo "$ac_cv_c99_lrintf" >&6; }
cannam@85 16591
cannam@85 16592 if test "$ac_cv_c99_lrintf" = yes; then
cannam@85 16593
cannam@85 16594 $as_echo "#define HAVE_LRINTF 1" >>confdefs.h
cannam@85 16595
cannam@85 16596 fi
cannam@85 16597
cannam@85 16598 # AC_C99_FUNC_LLRINT Don't need this (yet?).
cannam@85 16599
cannam@85 16600 case "x$ac_cv_c99_lrint$ac_cv_c99_lrintf" in
cannam@85 16601 xyesyes)
cannam@85 16602 ;;
cannam@85 16603 *)
cannam@85 16604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Missing C99 standard functions lrint() and lrintf()." >&5
cannam@85 16605 $as_echo "$as_me: WARNING: *** Missing C99 standard functions lrint() and lrintf()." >&2;}
cannam@85 16606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** This may cause benign compiler warnings on some systems (ie Solaris)." >&5
cannam@85 16607 $as_echo "$as_me: WARNING: *** This may cause benign compiler warnings on some systems (ie Solaris)." >&2;}
cannam@85 16608 ;;
cannam@85 16609 esac
cannam@85 16610
cannam@85 16611 #====================================================================================
cannam@85 16612 # Determine if the processor can do clipping on float to int conversions.
cannam@85 16613
cannam@85 16614 if test x$ac_arg_cpu_clip = "xY" ; then
cannam@85 16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor clipping capabilities" >&5
cannam@85 16616 $as_echo_n "checking processor clipping capabilities... " >&6; }
cannam@85 16617 if ${ac_cv_c_clip_type+:} false; then :
cannam@85 16618 $as_echo_n "(cached) " >&6
cannam@85 16619 else
cannam@85 16620 # Initialize to unknown
cannam@85 16621 ac_cv_c_clip_positive=unknown
cannam@85 16622 ac_cv_c_clip_negative=unknown
cannam@85 16623
cannam@85 16624
cannam@85 16625 if test $ac_cv_c_clip_positive = unknown ; then
cannam@85 16626 if test "$cross_compiling" = yes; then :
cannam@85 16627 ac_cv_c_clip_positive=unknown
cannam@85 16628
cannam@85 16629 else
cannam@85 16630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 16631 /* end confdefs.h. */
cannam@85 16632
cannam@85 16633 #define _ISOC9X_SOURCE 1
cannam@85 16634 #define _ISOC99_SOURCE 1
cannam@85 16635 #define __USE_ISOC99 1
cannam@85 16636 #define __USE_ISOC9X 1
cannam@85 16637 #include <math.h>
cannam@85 16638 int main (void)
cannam@85 16639 { double fval ;
cannam@85 16640 int k, ival ;
cannam@85 16641
cannam@85 16642 fval = 1.0 * 0x7FFFFFFF ;
cannam@85 16643 for (k = 0 ; k < 100 ; k++)
cannam@85 16644 { ival = (lrint (fval)) >> 24 ;
cannam@85 16645 if (ival != 127)
cannam@85 16646 return 1 ;
cannam@85 16647
cannam@85 16648 fval *= 1.2499999 ;
cannam@85 16649 } ;
cannam@85 16650
cannam@85 16651 return 0 ;
cannam@85 16652 }
cannam@85 16653
cannam@85 16654 _ACEOF
cannam@85 16655 if ac_fn_c_try_run "$LINENO"; then :
cannam@85 16656 ac_cv_c_clip_positive=yes
cannam@85 16657 else
cannam@85 16658 ac_cv_c_clip_positive=no
cannam@85 16659 fi
cannam@85 16660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@85 16661 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@85 16662 fi
cannam@85 16663
cannam@85 16664
cannam@85 16665 if test "$cross_compiling" = yes; then :
cannam@85 16666 ac_cv_c_clip_negative=unknown
cannam@85 16667
cannam@85 16668 else
cannam@85 16669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@85 16670 /* end confdefs.h. */
cannam@85 16671
cannam@85 16672 #define _ISOC9X_SOURCE 1
cannam@85 16673 #define _ISOC99_SOURCE 1
cannam@85 16674 #define __USE_ISOC99 1
cannam@85 16675 #define __USE_ISOC9X 1
cannam@85 16676 #include <math.h>
cannam@85 16677 int main (void)
cannam@85 16678 { double fval ;
cannam@85 16679 int k, ival ;
cannam@85 16680
cannam@85 16681 fval = -8.0 * 0x10000000 ;
cannam@85 16682 for (k = 0 ; k < 100 ; k++)
cannam@85 16683 { ival = (lrint (fval)) >> 24 ;
cannam@85 16684 if (ival != -128)
cannam@85 16685 return 1 ;
cannam@85 16686
cannam@85 16687 fval *= 1.2499999 ;
cannam@85 16688 } ;
cannam@85 16689
cannam@85 16690 return 0 ;
cannam@85 16691 }
cannam@85 16692
cannam@85 16693 _ACEOF
cannam@85 16694 if ac_fn_c_try_run "$LINENO"; then :
cannam@85 16695 ac_cv_c_clip_negative=yes
cannam@85 16696 else
cannam@85 16697 ac_cv_c_clip_negative=no
cannam@85 16698 fi
cannam@85 16699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@85 16700 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@85 16701 fi
cannam@85 16702
cannam@85 16703 fi
cannam@85 16704
cannam@85 16705 if test $ac_cv_c_clip_positive = yes ; then
cannam@85 16706 ac_cv_c_clip_positive=1
cannam@85 16707 else
cannam@85 16708 ac_cv_c_clip_positive=0
cannam@85 16709 fi
cannam@85 16710
cannam@85 16711 if test $ac_cv_c_clip_negative = yes ; then
cannam@85 16712 ac_cv_c_clip_negative=1
cannam@85 16713 else
cannam@85 16714 ac_cv_c_clip_negative=0
cannam@85 16715 fi
cannam@85 16716
cannam@85 16717
cannam@85 16718 case "$ac_cv_c_clip_positive$ac_cv_c_clip_negative" in
cannam@85 16719 "00")
cannam@85 16720 ac_cv_c_clip_type="none"
cannam@85 16721 ;;
cannam@85 16722 "10")
cannam@85 16723 ac_cv_c_clip_type="positive"
cannam@85 16724 ;;
cannam@85 16725 "01")
cannam@85 16726 ac_cv_c_clip_type="negative"
cannam@85 16727 ;;
cannam@85 16728 "11")
cannam@85 16729 ac_cv_c_clip_type="both"
cannam@85 16730 ;;
cannam@85 16731 esac
cannam@85 16732
cannam@85 16733
cannam@85 16734
cannam@85 16735 fi
cannam@85 16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_clip_type" >&5
cannam@85 16737 $as_echo "$ac_cv_c_clip_type" >&6; }
cannam@85 16738
cannam@85 16739
cannam@85 16740
cannam@85 16741 else
cannam@85 16742 echo "checking processor clipping capabilities... disabled"
cannam@85 16743 ac_cv_c_clip_positive=0
cannam@85 16744 ac_cv_c_clip_negative=0
cannam@85 16745 fi
cannam@85 16746
cannam@85 16747
cannam@85 16748 cat >>confdefs.h <<_ACEOF
cannam@85 16749 #define CPU_CLIPS_POSITIVE ${ac_cv_c_clip_positive}
cannam@85 16750 _ACEOF
cannam@85 16751
cannam@85 16752
cannam@85 16753 cat >>confdefs.h <<_ACEOF
cannam@85 16754 #define CPU_CLIPS_NEGATIVE ${ac_cv_c_clip_negative}
cannam@85 16755 _ACEOF
cannam@85 16756
cannam@85 16757
cannam@85 16758 #====================================================================================
cannam@85 16759 # Check for libsndfile which is required for the test and example programs.
cannam@85 16760
cannam@85 16761 # Check whether --enable-sndfile was given.
cannam@85 16762 if test "${enable_sndfile+set}" = set; then :
cannam@85 16763 enableval=$enable_sndfile; enable_sndfile=$enableval
cannam@85 16764 else
cannam@85 16765 enable_sndfile=yes
cannam@85 16766 fi
cannam@85 16767
cannam@85 16768
cannam@85 16769 # Check for pkg-config outside the if statement.
cannam@85 16770
cannam@85 16771
cannam@85 16772
cannam@85 16773
cannam@85 16774
cannam@85 16775
cannam@85 16776
cannam@85 16777 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
cannam@85 16778 if test -n "$ac_tool_prefix"; then
cannam@85 16779 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
cannam@85 16780 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cannam@85 16781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 16782 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 16783 if ${ac_cv_path_PKG_CONFIG+:} false; then :
cannam@85 16784 $as_echo_n "(cached) " >&6
cannam@85 16785 else
cannam@85 16786 case $PKG_CONFIG in
cannam@85 16787 [\\/]* | ?:[\\/]*)
cannam@85 16788 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
cannam@85 16789 ;;
cannam@85 16790 *)
cannam@85 16791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 16792 for as_dir in $PATH
cannam@85 16793 do
cannam@85 16794 IFS=$as_save_IFS
cannam@85 16795 test -z "$as_dir" && as_dir=.
cannam@85 16796 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 16797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 16798 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cannam@85 16799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 16800 break 2
cannam@85 16801 fi
cannam@85 16802 done
cannam@85 16803 done
cannam@85 16804 IFS=$as_save_IFS
cannam@85 16805
cannam@85 16806 ;;
cannam@85 16807 esac
cannam@85 16808 fi
cannam@85 16809 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
cannam@85 16810 if test -n "$PKG_CONFIG"; then
cannam@85 16811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cannam@85 16812 $as_echo "$PKG_CONFIG" >&6; }
cannam@85 16813 else
cannam@85 16814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 16815 $as_echo "no" >&6; }
cannam@85 16816 fi
cannam@85 16817
cannam@85 16818
cannam@85 16819 fi
cannam@85 16820 if test -z "$ac_cv_path_PKG_CONFIG"; then
cannam@85 16821 ac_pt_PKG_CONFIG=$PKG_CONFIG
cannam@85 16822 # Extract the first word of "pkg-config", so it can be a program name with args.
cannam@85 16823 set dummy pkg-config; ac_word=$2
cannam@85 16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@85 16825 $as_echo_n "checking for $ac_word... " >&6; }
cannam@85 16826 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cannam@85 16827 $as_echo_n "(cached) " >&6
cannam@85 16828 else
cannam@85 16829 case $ac_pt_PKG_CONFIG in
cannam@85 16830 [\\/]* | ?:[\\/]*)
cannam@85 16831 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
cannam@85 16832 ;;
cannam@85 16833 *)
cannam@85 16834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 16835 for as_dir in $PATH
cannam@85 16836 do
cannam@85 16837 IFS=$as_save_IFS
cannam@85 16838 test -z "$as_dir" && as_dir=.
cannam@85 16839 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 16840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@85 16841 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cannam@85 16842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 16843 break 2
cannam@85 16844 fi
cannam@85 16845 done
cannam@85 16846 done
cannam@85 16847 IFS=$as_save_IFS
cannam@85 16848
cannam@85 16849 ;;
cannam@85 16850 esac
cannam@85 16851 fi
cannam@85 16852 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
cannam@85 16853 if test -n "$ac_pt_PKG_CONFIG"; then
cannam@85 16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cannam@85 16855 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
cannam@85 16856 else
cannam@85 16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 16858 $as_echo "no" >&6; }
cannam@85 16859 fi
cannam@85 16860
cannam@85 16861 if test "x$ac_pt_PKG_CONFIG" = x; then
cannam@85 16862 PKG_CONFIG=""
cannam@85 16863 else
cannam@85 16864 case $cross_compiling:$ac_tool_warned in
cannam@85 16865 yes:)
cannam@85 16866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@85 16867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@85 16868 ac_tool_warned=yes ;;
cannam@85 16869 esac
cannam@85 16870 PKG_CONFIG=$ac_pt_PKG_CONFIG
cannam@85 16871 fi
cannam@85 16872 else
cannam@85 16873 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
cannam@85 16874 fi
cannam@85 16875
cannam@85 16876 fi
cannam@85 16877 if test -n "$PKG_CONFIG"; then
cannam@85 16878 _pkg_min_version=0.9.0
cannam@85 16879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cannam@85 16880 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
cannam@85 16881 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cannam@85 16882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@85 16883 $as_echo "yes" >&6; }
cannam@85 16884 else
cannam@85 16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 16886 $as_echo "no" >&6; }
cannam@85 16887 PKG_CONFIG=""
cannam@85 16888 fi
cannam@85 16889 fi
cannam@85 16890
cannam@85 16891 if test "x$enable_sndfile" = "xyes"; then
cannam@85 16892
cannam@85 16893 pkg_failed=no
cannam@85 16894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5
cannam@85 16895 $as_echo_n "checking for SNDFILE... " >&6; }
cannam@85 16896
cannam@85 16897 if test -n "$SNDFILE_CFLAGS"; then
cannam@85 16898 pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS"
cannam@85 16899 elif test -n "$PKG_CONFIG"; then
cannam@85 16900 if test -n "$PKG_CONFIG" && \
cannam@85 16901 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.6\""; } >&5
cannam@85 16902 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.6") 2>&5
cannam@85 16903 ac_status=$?
cannam@85 16904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 16905 test $ac_status = 0; }; then
cannam@85 16906 pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.6" 2>/dev/null`
cannam@85 16907 test "x$?" != "x0" && pkg_failed=yes
cannam@85 16908 else
cannam@85 16909 pkg_failed=yes
cannam@85 16910 fi
cannam@85 16911 else
cannam@85 16912 pkg_failed=untried
cannam@85 16913 fi
cannam@85 16914 if test -n "$SNDFILE_LIBS"; then
cannam@85 16915 pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS"
cannam@85 16916 elif test -n "$PKG_CONFIG"; then
cannam@85 16917 if test -n "$PKG_CONFIG" && \
cannam@85 16918 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.6\""; } >&5
cannam@85 16919 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.6") 2>&5
cannam@85 16920 ac_status=$?
cannam@85 16921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 16922 test $ac_status = 0; }; then
cannam@85 16923 pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.6" 2>/dev/null`
cannam@85 16924 test "x$?" != "x0" && pkg_failed=yes
cannam@85 16925 else
cannam@85 16926 pkg_failed=yes
cannam@85 16927 fi
cannam@85 16928 else
cannam@85 16929 pkg_failed=untried
cannam@85 16930 fi
cannam@85 16931
cannam@85 16932
cannam@85 16933
cannam@85 16934 if test $pkg_failed = yes; then
cannam@85 16935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 16936 $as_echo "no" >&6; }
cannam@85 16937
cannam@85 16938 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
cannam@85 16939 _pkg_short_errors_supported=yes
cannam@85 16940 else
cannam@85 16941 _pkg_short_errors_supported=no
cannam@85 16942 fi
cannam@85 16943 if test $_pkg_short_errors_supported = yes; then
cannam@85 16944 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile >= 1.0.6" 2>&1`
cannam@85 16945 else
cannam@85 16946 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile >= 1.0.6" 2>&1`
cannam@85 16947 fi
cannam@85 16948 # Put the nasty error message in config.log where it belongs
cannam@85 16949 echo "$SNDFILE_PKG_ERRORS" >&5
cannam@85 16950
cannam@85 16951 ac_cv_sndfile=0
cannam@85 16952 elif test $pkg_failed = untried; then
cannam@85 16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 16954 $as_echo "no" >&6; }
cannam@85 16955 ac_cv_sndfile=0
cannam@85 16956 else
cannam@85 16957 SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS
cannam@85 16958 SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS
cannam@85 16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@85 16960 $as_echo "yes" >&6; }
cannam@85 16961 ac_cv_sndfile=1
cannam@85 16962 fi
cannam@85 16963 else
cannam@85 16964 ac_cv_sndfile=0
cannam@85 16965 fi
cannam@85 16966
cannam@85 16967
cannam@85 16968 cat >>confdefs.h <<_ACEOF
cannam@85 16969 #define HAVE_SNDFILE $ac_cv_sndfile
cannam@85 16970 _ACEOF
cannam@85 16971
cannam@85 16972
cannam@85 16973 if test x$ac_cv_sndfile = x1 ; then
cannam@85 16974 ac_cv_sndfile=yes
cannam@85 16975 HAVE_SNDFILE=1
cannam@85 16976 else
cannam@85 16977 ac_cv_sndfile=no
cannam@85 16978 HAVE_SNDFILE=0
cannam@85 16979 fi
cannam@85 16980
cannam@85 16981 #====================================================================================
cannam@85 16982 # Check for libfftw3 which is required for the test and example programs.
cannam@85 16983
cannam@85 16984 if test $ac_arg_fftw = "Y" ; then
cannam@85 16985
cannam@85 16986 pkg_failed=no
cannam@85 16987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW3" >&5
cannam@85 16988 $as_echo_n "checking for FFTW3... " >&6; }
cannam@85 16989
cannam@85 16990 if test -n "$FFTW3_CFLAGS"; then
cannam@85 16991 pkg_cv_FFTW3_CFLAGS="$FFTW3_CFLAGS"
cannam@85 16992 elif test -n "$PKG_CONFIG"; then
cannam@85 16993 if test -n "$PKG_CONFIG" && \
cannam@85 16994 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 0.15.0\""; } >&5
cannam@85 16995 ($PKG_CONFIG --exists --print-errors "fftw3 >= 0.15.0") 2>&5
cannam@85 16996 ac_status=$?
cannam@85 16997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 16998 test $ac_status = 0; }; then
cannam@85 16999 pkg_cv_FFTW3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 0.15.0" 2>/dev/null`
cannam@85 17000 test "x$?" != "x0" && pkg_failed=yes
cannam@85 17001 else
cannam@85 17002 pkg_failed=yes
cannam@85 17003 fi
cannam@85 17004 else
cannam@85 17005 pkg_failed=untried
cannam@85 17006 fi
cannam@85 17007 if test -n "$FFTW3_LIBS"; then
cannam@85 17008 pkg_cv_FFTW3_LIBS="$FFTW3_LIBS"
cannam@85 17009 elif test -n "$PKG_CONFIG"; then
cannam@85 17010 if test -n "$PKG_CONFIG" && \
cannam@85 17011 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 0.15.0\""; } >&5
cannam@85 17012 ($PKG_CONFIG --exists --print-errors "fftw3 >= 0.15.0") 2>&5
cannam@85 17013 ac_status=$?
cannam@85 17014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@85 17015 test $ac_status = 0; }; then
cannam@85 17016 pkg_cv_FFTW3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 0.15.0" 2>/dev/null`
cannam@85 17017 test "x$?" != "x0" && pkg_failed=yes
cannam@85 17018 else
cannam@85 17019 pkg_failed=yes
cannam@85 17020 fi
cannam@85 17021 else
cannam@85 17022 pkg_failed=untried
cannam@85 17023 fi
cannam@85 17024
cannam@85 17025
cannam@85 17026
cannam@85 17027 if test $pkg_failed = yes; then
cannam@85 17028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 17029 $as_echo "no" >&6; }
cannam@85 17030
cannam@85 17031 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
cannam@85 17032 _pkg_short_errors_supported=yes
cannam@85 17033 else
cannam@85 17034 _pkg_short_errors_supported=no
cannam@85 17035 fi
cannam@85 17036 if test $_pkg_short_errors_supported = yes; then
cannam@85 17037 FFTW3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 0.15.0" 2>&1`
cannam@85 17038 else
cannam@85 17039 FFTW3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 0.15.0" 2>&1`
cannam@85 17040 fi
cannam@85 17041 # Put the nasty error message in config.log where it belongs
cannam@85 17042 echo "$FFTW3_PKG_ERRORS" >&5
cannam@85 17043
cannam@85 17044 ac_cv_fftw3=0
cannam@85 17045 elif test $pkg_failed = untried; then
cannam@85 17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@85 17047 $as_echo "no" >&6; }
cannam@85 17048 ac_cv_fftw3=0
cannam@85 17049 else
cannam@85 17050 FFTW3_CFLAGS=$pkg_cv_FFTW3_CFLAGS
cannam@85 17051 FFTW3_LIBS=$pkg_cv_FFTW3_LIBS
cannam@85 17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@85 17053 $as_echo "yes" >&6; }
cannam@85 17054 ac_cv_fftw3=1
cannam@85 17055 fi
cannam@85 17056
cannam@85 17057 cat >>confdefs.h <<_ACEOF
cannam@85 17058 #define HAVE_FFTW3 $ac_cv_fftw3
cannam@85 17059 _ACEOF
cannam@85 17060
cannam@85 17061
cannam@85 17062 if test x$ac_cv_fftw3 = x1 ; then
cannam@85 17063 ac_cv_fftw3=yes
cannam@85 17064 HAVE_FFTW3=1
cannam@85 17065 fi
cannam@85 17066 fi
cannam@85 17067
cannam@85 17068 if test x$ac_cv_fftw3 != xyes ; then
cannam@85 17069 ac_cv_fftw3=no
cannam@85 17070 HAVE_FFTW3=0
cannam@85 17071 fi
cannam@85 17072
cannam@85 17073 #====================================================================================
cannam@85 17074 # GCC stuff.
cannam@85 17075
cannam@85 17076 if test $ac_cv_c_compiler_gnu = yes ; then
cannam@85 17077 CFLAGS="$CFLAGS -std=gnu99 -W -Wstrict-prototypes -Wmissing-prototypes -Wall -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wpointer-arith"
cannam@85 17078 # -Wundef -Wbad-function-cast -Wmissing-declarations -Wconversion -Winline"
cannam@85 17079 if test "$ac_arg_gcc_opt" = "N" ; then
cannam@85 17080 temp_CFLAGS=`echo $CFLAGS | sed "s/O2/O0/"`
cannam@85 17081 CFLAGS=$temp_CFLAGS
cannam@85 17082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Compiler optimisations switched off. ***" >&5
cannam@85 17083 $as_echo "$as_me: WARNING: *** Compiler optimisations switched off. ***" >&2;}
cannam@85 17084 fi
cannam@85 17085
cannam@85 17086 # Disable -Wall for Apple Darwin/Rhapsody.
cannam@85 17087 # System headers on these systems are broken.
cannam@85 17088 case "$target_os" in
cannam@85 17089 darwin* | rhapsody*)
cannam@85 17090 temp_CFLAGS=`echo $CFLAGS | sed "s/-Wall//"`
cannam@85 17091 CFLAGS=$temp_CFLAGS
cannam@85 17092 ;;
cannam@85 17093
cannam@85 17094 linux*|kfreebsd*-gnu*|gnu*)
cannam@85 17095 SHLIB_VERSION_ARG="-Wl,--version-script=Version_script"
cannam@85 17096 ;;
cannam@85 17097 *)
cannam@85 17098 ;;
cannam@85 17099 esac
cannam@85 17100 if test x$ac_arg_gcc_pipe != "xN" ; then
cannam@85 17101 CFLAGS="$CFLAGS -pipe"
cannam@85 17102 fi
cannam@85 17103
cannam@85 17104 if test x$ac_arg_gcc_werror = "xyes" ; then
cannam@85 17105 CFLAGS="-Werror $CFLAGS"
cannam@85 17106 fi
cannam@85 17107
cannam@85 17108
cannam@85 17109 $as_echo "#define COMPILER_IS_GCC 1" >>confdefs.h
cannam@85 17110
cannam@85 17111 GCC_MAJOR_VERSION=`$CC -dumpversion | sed "s/\..*//"`
cannam@85 17112
cannam@85 17113 cat >>confdefs.h <<_ACEOF
cannam@85 17114 #define GCC_MAJOR_VERSION ${GCC_MAJOR_VERSION}
cannam@85 17115 _ACEOF
cannam@85 17116
cannam@85 17117 fi
cannam@85 17118
cannam@85 17119 #====================================================================================
cannam@85 17120 # Find known target OS.
cannam@85 17121
cannam@85 17122 OS_SPECIFIC_INCLUDES=""
cannam@85 17123 os_is_win32=0
cannam@85 17124
cannam@85 17125 case "$target_os" in
cannam@85 17126 darwin* | rhapsody*)
cannam@85 17127 OS_SPECIFIC_INCLUDES="-fpascal-strings -I/Developer/Headers/FlatCarbon"
cannam@85 17128 OS_SPECIFIC_LINKS="-framework CoreAudio"
cannam@85 17129 ;;
cannam@85 17130 mingw32*)
cannam@85 17131 OS_SPECIFIC_LINKS="-lwinmm"
cannam@85 17132 os_is_win32=1
cannam@85 17133 ;;
cannam@85 17134 *)
cannam@85 17135 OS_SPECIFIC_INCLUDES=""
cannam@85 17136 OS_SPECIFIC_LINKS=""
cannam@85 17137 ;;
cannam@85 17138 esac
cannam@85 17139
cannam@85 17140 htmldocdir=$prefix/share/doc/libsamplerate0-dev/html
cannam@85 17141
cannam@85 17142 if test $prefix = "NONE" ; then
cannam@85 17143 htmldocdir=/usr/local/share/doc/libsamplerate0-dev/html
cannam@85 17144 else
cannam@85 17145 htmldocdir=$prefix/share/doc/libsamplerate0-dev/html
cannam@85 17146 fi
cannam@85 17147
cannam@85 17148 #====================================================================================
cannam@85 17149 # Now use the information from the checking stage.
cannam@85 17150
cannam@85 17151
cannam@85 17152 cat >>confdefs.h <<_ACEOF
cannam@85 17153 #define OS_IS_WIN32 ${os_is_win32}
cannam@85 17154 _ACEOF
cannam@85 17155
cannam@85 17156
cannam@85 17157
cannam@85 17158
cannam@85 17159
cannam@85 17160
cannam@85 17161
cannam@85 17162
cannam@85 17163
cannam@85 17164
cannam@85 17165
cannam@85 17166
cannam@85 17167
cannam@85 17168
cannam@85 17169
cannam@85 17170
cannam@85 17171
cannam@85 17172
cannam@85 17173
cannam@85 17174
cannam@85 17175 ac_config_files="$ac_config_files Makefile M4/Makefile src/Version_script Win32/Makefile Win32/Makefile.mingw src/Makefile examples/Makefile tests/Makefile doc/Makefile libsamplerate.spec samplerate.pc"
cannam@85 17176
cannam@85 17177 cat >confcache <<\_ACEOF
cannam@85 17178 # This file is a shell script that caches the results of configure
cannam@85 17179 # tests run on this system so they can be shared between configure
cannam@85 17180 # scripts and configure runs, see configure's option --config-cache.
cannam@85 17181 # It is not useful on other systems. If it contains results you don't
cannam@85 17182 # want to keep, you may remove or edit it.
cannam@85 17183 #
cannam@85 17184 # config.status only pays attention to the cache file if you give it
cannam@85 17185 # the --recheck option to rerun configure.
cannam@85 17186 #
cannam@85 17187 # `ac_cv_env_foo' variables (set or unset) will be overridden when
cannam@85 17188 # loading this file, other *unset* `ac_cv_foo' will be assigned the
cannam@85 17189 # following values.
cannam@85 17190
cannam@85 17191 _ACEOF
cannam@85 17192
cannam@85 17193 # The following way of writing the cache mishandles newlines in values,
cannam@85 17194 # but we know of no workaround that is simple, portable, and efficient.
cannam@85 17195 # So, we kill variables containing newlines.
cannam@85 17196 # Ultrix sh set writes to stderr and can't be redirected directly,
cannam@85 17197 # and sets the high bit in the cache file unless we assign to the vars.
cannam@85 17198 (
cannam@85 17199 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
cannam@85 17200 eval ac_val=\$$ac_var
cannam@85 17201 case $ac_val in #(
cannam@85 17202 *${as_nl}*)
cannam@85 17203 case $ac_var in #(
cannam@85 17204 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cannam@85 17205 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
cannam@85 17206 esac
cannam@85 17207 case $ac_var in #(
cannam@85 17208 _ | IFS | as_nl) ;; #(
cannam@85 17209 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cannam@85 17210 *) { eval $ac_var=; unset $ac_var;} ;;
cannam@85 17211 esac ;;
cannam@85 17212 esac
cannam@85 17213 done
cannam@85 17214
cannam@85 17215 (set) 2>&1 |
cannam@85 17216 case $as_nl`(ac_space=' '; set) 2>&1` in #(
cannam@85 17217 *${as_nl}ac_space=\ *)
cannam@85 17218 # `set' does not quote correctly, so add quotes: double-quote
cannam@85 17219 # substitution turns \\\\ into \\, and sed turns \\ into \.
cannam@85 17220 sed -n \
cannam@85 17221 "s/'/'\\\\''/g;
cannam@85 17222 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cannam@85 17223 ;; #(
cannam@85 17224 *)
cannam@85 17225 # `set' quotes correctly as required by POSIX, so do not add quotes.
cannam@85 17226 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
cannam@85 17227 ;;
cannam@85 17228 esac |
cannam@85 17229 sort
cannam@85 17230 ) |
cannam@85 17231 sed '
cannam@85 17232 /^ac_cv_env_/b end
cannam@85 17233 t clear
cannam@85 17234 :clear
cannam@85 17235 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
cannam@85 17236 t end
cannam@85 17237 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
cannam@85 17238 :end' >>confcache
cannam@85 17239 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
cannam@85 17240 if test -w "$cache_file"; then
cannam@85 17241 if test "x$cache_file" != "x/dev/null"; then
cannam@85 17242 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cannam@85 17243 $as_echo "$as_me: updating cache $cache_file" >&6;}
cannam@85 17244 if test ! -f "$cache_file" || test -h "$cache_file"; then
cannam@85 17245 cat confcache >"$cache_file"
cannam@85 17246 else
cannam@85 17247 case $cache_file in #(
cannam@85 17248 */* | ?:*)
cannam@85 17249 mv -f confcache "$cache_file"$$ &&
cannam@85 17250 mv -f "$cache_file"$$ "$cache_file" ;; #(
cannam@85 17251 *)
cannam@85 17252 mv -f confcache "$cache_file" ;;
cannam@85 17253 esac
cannam@85 17254 fi
cannam@85 17255 fi
cannam@85 17256 else
cannam@85 17257 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cannam@85 17258 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
cannam@85 17259 fi
cannam@85 17260 fi
cannam@85 17261 rm -f confcache
cannam@85 17262
cannam@85 17263 test "x$prefix" = xNONE && prefix=$ac_default_prefix
cannam@85 17264 # Let make expand exec_prefix.
cannam@85 17265 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
cannam@85 17266
cannam@85 17267 DEFS=-DHAVE_CONFIG_H
cannam@85 17268
cannam@85 17269 ac_libobjs=
cannam@85 17270 ac_ltlibobjs=
cannam@85 17271 U=
cannam@85 17272 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
cannam@85 17273 # 1. Remove the extension, and $U if already installed.
cannam@85 17274 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
cannam@85 17275 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
cannam@85 17276 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
cannam@85 17277 # will be set to the directory where LIBOBJS objects are built.
cannam@85 17278 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
cannam@85 17279 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cannam@85 17280 done
cannam@85 17281 LIBOBJS=$ac_libobjs
cannam@85 17282
cannam@85 17283 LTLIBOBJS=$ac_ltlibobjs
cannam@85 17284
cannam@85 17285
cannam@85 17286 if test -n "$EXEEXT"; then
cannam@85 17287 am__EXEEXT_TRUE=
cannam@85 17288 am__EXEEXT_FALSE='#'
cannam@85 17289 else
cannam@85 17290 am__EXEEXT_TRUE='#'
cannam@85 17291 am__EXEEXT_FALSE=
cannam@85 17292 fi
cannam@85 17293
cannam@85 17294 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cannam@85 17295 as_fn_error $? "conditional \"AMDEP\" was never defined.
cannam@85 17296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@85 17297 fi
cannam@85 17298 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cannam@85 17299 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cannam@85 17300 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@85 17301 fi
cannam@85 17302 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cannam@85 17303 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cannam@85 17304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@85 17305 fi
cannam@85 17306
cannam@85 17307 : "${CONFIG_STATUS=./config.status}"
cannam@85 17308 ac_write_fail=0
cannam@85 17309 ac_clean_files_save=$ac_clean_files
cannam@85 17310 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cannam@85 17311 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cannam@85 17312 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cannam@85 17313 as_write_fail=0
cannam@85 17314 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cannam@85 17315 #! $SHELL
cannam@85 17316 # Generated by $as_me.
cannam@85 17317 # Run this file to recreate the current configuration.
cannam@85 17318 # Compiler output produced by configure, useful for debugging
cannam@85 17319 # configure, is in config.log if it exists.
cannam@85 17320
cannam@85 17321 debug=false
cannam@85 17322 ac_cs_recheck=false
cannam@85 17323 ac_cs_silent=false
cannam@85 17324
cannam@85 17325 SHELL=\${CONFIG_SHELL-$SHELL}
cannam@85 17326 export SHELL
cannam@85 17327 _ASEOF
cannam@85 17328 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
cannam@85 17329 ## -------------------- ##
cannam@85 17330 ## M4sh Initialization. ##
cannam@85 17331 ## -------------------- ##
cannam@85 17332
cannam@85 17333 # Be more Bourne compatible
cannam@85 17334 DUALCASE=1; export DUALCASE # for MKS sh
cannam@85 17335 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cannam@85 17336 emulate sh
cannam@85 17337 NULLCMD=:
cannam@85 17338 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
cannam@85 17339 # is contrary to our usage. Disable this feature.
cannam@85 17340 alias -g '${1+"$@"}'='"$@"'
cannam@85 17341 setopt NO_GLOB_SUBST
cannam@85 17342 else
cannam@85 17343 case `(set -o) 2>/dev/null` in #(
cannam@85 17344 *posix*) :
cannam@85 17345 set -o posix ;; #(
cannam@85 17346 *) :
cannam@85 17347 ;;
cannam@85 17348 esac
cannam@85 17349 fi
cannam@85 17350
cannam@85 17351
cannam@85 17352 as_nl='
cannam@85 17353 '
cannam@85 17354 export as_nl
cannam@85 17355 # Printing a long string crashes Solaris 7 /usr/bin/printf.
cannam@85 17356 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@85 17357 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@85 17358 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@85 17359 # Prefer a ksh shell builtin over an external printf program on Solaris,
cannam@85 17360 # but without wasting forks for bash or zsh.
cannam@85 17361 if test -z "$BASH_VERSION$ZSH_VERSION" \
cannam@85 17362 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@85 17363 as_echo='print -r --'
cannam@85 17364 as_echo_n='print -rn --'
cannam@85 17365 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@85 17366 as_echo='printf %s\n'
cannam@85 17367 as_echo_n='printf %s'
cannam@85 17368 else
cannam@85 17369 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
cannam@85 17370 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
cannam@85 17371 as_echo_n='/usr/ucb/echo -n'
cannam@85 17372 else
cannam@85 17373 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
cannam@85 17374 as_echo_n_body='eval
cannam@85 17375 arg=$1;
cannam@85 17376 case $arg in #(
cannam@85 17377 *"$as_nl"*)
cannam@85 17378 expr "X$arg" : "X\\(.*\\)$as_nl";
cannam@85 17379 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
cannam@85 17380 esac;
cannam@85 17381 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
cannam@85 17382 '
cannam@85 17383 export as_echo_n_body
cannam@85 17384 as_echo_n='sh -c $as_echo_n_body as_echo'
cannam@85 17385 fi
cannam@85 17386 export as_echo_body
cannam@85 17387 as_echo='sh -c $as_echo_body as_echo'
cannam@85 17388 fi
cannam@85 17389
cannam@85 17390 # The user is always right.
cannam@85 17391 if test "${PATH_SEPARATOR+set}" != set; then
cannam@85 17392 PATH_SEPARATOR=:
cannam@85 17393 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
cannam@85 17394 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
cannam@85 17395 PATH_SEPARATOR=';'
cannam@85 17396 }
cannam@85 17397 fi
cannam@85 17398
cannam@85 17399
cannam@85 17400 # IFS
cannam@85 17401 # We need space, tab and new line, in precisely that order. Quoting is
cannam@85 17402 # there to prevent editors from complaining about space-tab.
cannam@85 17403 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
cannam@85 17404 # splitting by setting IFS to empty value.)
cannam@85 17405 IFS=" "" $as_nl"
cannam@85 17406
cannam@85 17407 # Find who we are. Look in the path if we contain no directory separator.
cannam@85 17408 as_myself=
cannam@85 17409 case $0 in #((
cannam@85 17410 *[\\/]* ) as_myself=$0 ;;
cannam@85 17411 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 17412 for as_dir in $PATH
cannam@85 17413 do
cannam@85 17414 IFS=$as_save_IFS
cannam@85 17415 test -z "$as_dir" && as_dir=.
cannam@85 17416 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
cannam@85 17417 done
cannam@85 17418 IFS=$as_save_IFS
cannam@85 17419
cannam@85 17420 ;;
cannam@85 17421 esac
cannam@85 17422 # We did not find ourselves, most probably we were run as `sh COMMAND'
cannam@85 17423 # in which case we are not to be found in the path.
cannam@85 17424 if test "x$as_myself" = x; then
cannam@85 17425 as_myself=$0
cannam@85 17426 fi
cannam@85 17427 if test ! -f "$as_myself"; then
cannam@85 17428 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cannam@85 17429 exit 1
cannam@85 17430 fi
cannam@85 17431
cannam@85 17432 # Unset variables that we do not need and which cause bugs (e.g. in
cannam@85 17433 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
cannam@85 17434 # suppresses any "Segmentation fault" message there. '((' could
cannam@85 17435 # trigger a bug in pdksh 5.2.14.
cannam@85 17436 for as_var in BASH_ENV ENV MAIL MAILPATH
cannam@85 17437 do eval test x\${$as_var+set} = xset \
cannam@85 17438 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cannam@85 17439 done
cannam@85 17440 PS1='$ '
cannam@85 17441 PS2='> '
cannam@85 17442 PS4='+ '
cannam@85 17443
cannam@85 17444 # NLS nuisances.
cannam@85 17445 LC_ALL=C
cannam@85 17446 export LC_ALL
cannam@85 17447 LANGUAGE=C
cannam@85 17448 export LANGUAGE
cannam@85 17449
cannam@85 17450 # CDPATH.
cannam@85 17451 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cannam@85 17452
cannam@85 17453
cannam@85 17454 # as_fn_error STATUS ERROR [LINENO LOG_FD]
cannam@85 17455 # ----------------------------------------
cannam@85 17456 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
cannam@85 17457 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cannam@85 17458 # script with STATUS, using 1 if that was 0.
cannam@85 17459 as_fn_error ()
cannam@85 17460 {
cannam@85 17461 as_status=$1; test $as_status -eq 0 && as_status=1
cannam@85 17462 if test "$4"; then
cannam@85 17463 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@85 17464 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cannam@85 17465 fi
cannam@85 17466 $as_echo "$as_me: error: $2" >&2
cannam@85 17467 as_fn_exit $as_status
cannam@85 17468 } # as_fn_error
cannam@85 17469
cannam@85 17470
cannam@85 17471 # as_fn_set_status STATUS
cannam@85 17472 # -----------------------
cannam@85 17473 # Set $? to STATUS, without forking.
cannam@85 17474 as_fn_set_status ()
cannam@85 17475 {
cannam@85 17476 return $1
cannam@85 17477 } # as_fn_set_status
cannam@85 17478
cannam@85 17479 # as_fn_exit STATUS
cannam@85 17480 # -----------------
cannam@85 17481 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
cannam@85 17482 as_fn_exit ()
cannam@85 17483 {
cannam@85 17484 set +e
cannam@85 17485 as_fn_set_status $1
cannam@85 17486 exit $1
cannam@85 17487 } # as_fn_exit
cannam@85 17488
cannam@85 17489 # as_fn_unset VAR
cannam@85 17490 # ---------------
cannam@85 17491 # Portably unset VAR.
cannam@85 17492 as_fn_unset ()
cannam@85 17493 {
cannam@85 17494 { eval $1=; unset $1;}
cannam@85 17495 }
cannam@85 17496 as_unset=as_fn_unset
cannam@85 17497 # as_fn_append VAR VALUE
cannam@85 17498 # ----------------------
cannam@85 17499 # Append the text in VALUE to the end of the definition contained in VAR. Take
cannam@85 17500 # advantage of any shell optimizations that allow amortized linear growth over
cannam@85 17501 # repeated appends, instead of the typical quadratic growth present in naive
cannam@85 17502 # implementations.
cannam@85 17503 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
cannam@85 17504 eval 'as_fn_append ()
cannam@85 17505 {
cannam@85 17506 eval $1+=\$2
cannam@85 17507 }'
cannam@85 17508 else
cannam@85 17509 as_fn_append ()
cannam@85 17510 {
cannam@85 17511 eval $1=\$$1\$2
cannam@85 17512 }
cannam@85 17513 fi # as_fn_append
cannam@85 17514
cannam@85 17515 # as_fn_arith ARG...
cannam@85 17516 # ------------------
cannam@85 17517 # Perform arithmetic evaluation on the ARGs, and store the result in the
cannam@85 17518 # global $as_val. Take advantage of shells that can avoid forks. The arguments
cannam@85 17519 # must be portable across $(()) and expr.
cannam@85 17520 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
cannam@85 17521 eval 'as_fn_arith ()
cannam@85 17522 {
cannam@85 17523 as_val=$(( $* ))
cannam@85 17524 }'
cannam@85 17525 else
cannam@85 17526 as_fn_arith ()
cannam@85 17527 {
cannam@85 17528 as_val=`expr "$@" || test $? -eq 1`
cannam@85 17529 }
cannam@85 17530 fi # as_fn_arith
cannam@85 17531
cannam@85 17532
cannam@85 17533 if expr a : '\(a\)' >/dev/null 2>&1 &&
cannam@85 17534 test "X`expr 00001 : '.*\(...\)'`" = X001; then
cannam@85 17535 as_expr=expr
cannam@85 17536 else
cannam@85 17537 as_expr=false
cannam@85 17538 fi
cannam@85 17539
cannam@85 17540 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
cannam@85 17541 as_basename=basename
cannam@85 17542 else
cannam@85 17543 as_basename=false
cannam@85 17544 fi
cannam@85 17545
cannam@85 17546 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
cannam@85 17547 as_dirname=dirname
cannam@85 17548 else
cannam@85 17549 as_dirname=false
cannam@85 17550 fi
cannam@85 17551
cannam@85 17552 as_me=`$as_basename -- "$0" ||
cannam@85 17553 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
cannam@85 17554 X"$0" : 'X\(//\)$' \| \
cannam@85 17555 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
cannam@85 17556 $as_echo X/"$0" |
cannam@85 17557 sed '/^.*\/\([^/][^/]*\)\/*$/{
cannam@85 17558 s//\1/
cannam@85 17559 q
cannam@85 17560 }
cannam@85 17561 /^X\/\(\/\/\)$/{
cannam@85 17562 s//\1/
cannam@85 17563 q
cannam@85 17564 }
cannam@85 17565 /^X\/\(\/\).*/{
cannam@85 17566 s//\1/
cannam@85 17567 q
cannam@85 17568 }
cannam@85 17569 s/.*/./; q'`
cannam@85 17570
cannam@85 17571 # Avoid depending upon Character Ranges.
cannam@85 17572 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
cannam@85 17573 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
cannam@85 17574 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
cannam@85 17575 as_cr_digits='0123456789'
cannam@85 17576 as_cr_alnum=$as_cr_Letters$as_cr_digits
cannam@85 17577
cannam@85 17578 ECHO_C= ECHO_N= ECHO_T=
cannam@85 17579 case `echo -n x` in #(((((
cannam@85 17580 -n*)
cannam@85 17581 case `echo 'xy\c'` in
cannam@85 17582 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cannam@85 17583 xy) ECHO_C='\c';;
cannam@85 17584 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
cannam@85 17585 ECHO_T=' ';;
cannam@85 17586 esac;;
cannam@85 17587 *)
cannam@85 17588 ECHO_N='-n';;
cannam@85 17589 esac
cannam@85 17590
cannam@85 17591 rm -f conf$$ conf$$.exe conf$$.file
cannam@85 17592 if test -d conf$$.dir; then
cannam@85 17593 rm -f conf$$.dir/conf$$.file
cannam@85 17594 else
cannam@85 17595 rm -f conf$$.dir
cannam@85 17596 mkdir conf$$.dir 2>/dev/null
cannam@85 17597 fi
cannam@85 17598 if (echo >conf$$.file) 2>/dev/null; then
cannam@85 17599 if ln -s conf$$.file conf$$ 2>/dev/null; then
cannam@85 17600 as_ln_s='ln -s'
cannam@85 17601 # ... but there are two gotchas:
cannam@85 17602 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
cannam@85 17603 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cannam@85 17604 # In both cases, we have to default to `cp -p'.
cannam@85 17605 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cannam@85 17606 as_ln_s='cp -p'
cannam@85 17607 elif ln conf$$.file conf$$ 2>/dev/null; then
cannam@85 17608 as_ln_s=ln
cannam@85 17609 else
cannam@85 17610 as_ln_s='cp -p'
cannam@85 17611 fi
cannam@85 17612 else
cannam@85 17613 as_ln_s='cp -p'
cannam@85 17614 fi
cannam@85 17615 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
cannam@85 17616 rmdir conf$$.dir 2>/dev/null
cannam@85 17617
cannam@85 17618
cannam@85 17619 # as_fn_mkdir_p
cannam@85 17620 # -------------
cannam@85 17621 # Create "$as_dir" as a directory, including parents if necessary.
cannam@85 17622 as_fn_mkdir_p ()
cannam@85 17623 {
cannam@85 17624
cannam@85 17625 case $as_dir in #(
cannam@85 17626 -*) as_dir=./$as_dir;;
cannam@85 17627 esac
cannam@85 17628 test -d "$as_dir" || eval $as_mkdir_p || {
cannam@85 17629 as_dirs=
cannam@85 17630 while :; do
cannam@85 17631 case $as_dir in #(
cannam@85 17632 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
cannam@85 17633 *) as_qdir=$as_dir;;
cannam@85 17634 esac
cannam@85 17635 as_dirs="'$as_qdir' $as_dirs"
cannam@85 17636 as_dir=`$as_dirname -- "$as_dir" ||
cannam@85 17637 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 17638 X"$as_dir" : 'X\(//\)[^/]' \| \
cannam@85 17639 X"$as_dir" : 'X\(//\)$' \| \
cannam@85 17640 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
cannam@85 17641 $as_echo X"$as_dir" |
cannam@85 17642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@85 17643 s//\1/
cannam@85 17644 q
cannam@85 17645 }
cannam@85 17646 /^X\(\/\/\)[^/].*/{
cannam@85 17647 s//\1/
cannam@85 17648 q
cannam@85 17649 }
cannam@85 17650 /^X\(\/\/\)$/{
cannam@85 17651 s//\1/
cannam@85 17652 q
cannam@85 17653 }
cannam@85 17654 /^X\(\/\).*/{
cannam@85 17655 s//\1/
cannam@85 17656 q
cannam@85 17657 }
cannam@85 17658 s/.*/./; q'`
cannam@85 17659 test -d "$as_dir" && break
cannam@85 17660 done
cannam@85 17661 test -z "$as_dirs" || eval "mkdir $as_dirs"
cannam@85 17662 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cannam@85 17663
cannam@85 17664
cannam@85 17665 } # as_fn_mkdir_p
cannam@85 17666 if mkdir -p . 2>/dev/null; then
cannam@85 17667 as_mkdir_p='mkdir -p "$as_dir"'
cannam@85 17668 else
cannam@85 17669 test -d ./-p && rmdir ./-p
cannam@85 17670 as_mkdir_p=false
cannam@85 17671 fi
cannam@85 17672
cannam@85 17673 if test -x / >/dev/null 2>&1; then
cannam@85 17674 as_test_x='test -x'
cannam@85 17675 else
cannam@85 17676 if ls -dL / >/dev/null 2>&1; then
cannam@85 17677 as_ls_L_option=L
cannam@85 17678 else
cannam@85 17679 as_ls_L_option=
cannam@85 17680 fi
cannam@85 17681 as_test_x='
cannam@85 17682 eval sh -c '\''
cannam@85 17683 if test -d "$1"; then
cannam@85 17684 test -d "$1/.";
cannam@85 17685 else
cannam@85 17686 case $1 in #(
cannam@85 17687 -*)set "./$1";;
cannam@85 17688 esac;
cannam@85 17689 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cannam@85 17690 ???[sx]*):;;*)false;;esac;fi
cannam@85 17691 '\'' sh
cannam@85 17692 '
cannam@85 17693 fi
cannam@85 17694 as_executable_p=$as_test_x
cannam@85 17695
cannam@85 17696 # Sed expression to map a string onto a valid CPP name.
cannam@85 17697 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
cannam@85 17698
cannam@85 17699 # Sed expression to map a string onto a valid variable name.
cannam@85 17700 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
cannam@85 17701
cannam@85 17702
cannam@85 17703 exec 6>&1
cannam@85 17704 ## ----------------------------------- ##
cannam@85 17705 ## Main body of $CONFIG_STATUS script. ##
cannam@85 17706 ## ----------------------------------- ##
cannam@85 17707 _ASEOF
cannam@85 17708 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cannam@85 17709
cannam@85 17710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@85 17711 # Save the log message, to keep $0 and so on meaningful, and to
cannam@85 17712 # report actual input values of CONFIG_FILES etc. instead of their
cannam@85 17713 # values after options handling.
cannam@85 17714 ac_log="
cannam@85 17715 This file was extended by libsamplerate $as_me 0.1.8, which was
cannam@85 17716 generated by GNU Autoconf 2.68. Invocation command line was
cannam@85 17717
cannam@85 17718 CONFIG_FILES = $CONFIG_FILES
cannam@85 17719 CONFIG_HEADERS = $CONFIG_HEADERS
cannam@85 17720 CONFIG_LINKS = $CONFIG_LINKS
cannam@85 17721 CONFIG_COMMANDS = $CONFIG_COMMANDS
cannam@85 17722 $ $0 $@
cannam@85 17723
cannam@85 17724 on `(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@85 17725 "
cannam@85 17726
cannam@85 17727 _ACEOF
cannam@85 17728
cannam@85 17729 case $ac_config_files in *"
cannam@85 17730 "*) set x $ac_config_files; shift; ac_config_files=$*;;
cannam@85 17731 esac
cannam@85 17732
cannam@85 17733 case $ac_config_headers in *"
cannam@85 17734 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
cannam@85 17735 esac
cannam@85 17736
cannam@85 17737
cannam@85 17738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@85 17739 # Files that config.status was made for.
cannam@85 17740 config_files="$ac_config_files"
cannam@85 17741 config_headers="$ac_config_headers"
cannam@85 17742 config_commands="$ac_config_commands"
cannam@85 17743
cannam@85 17744 _ACEOF
cannam@85 17745
cannam@85 17746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@85 17747 ac_cs_usage="\
cannam@85 17748 \`$as_me' instantiates files and other configuration actions
cannam@85 17749 from templates according to the current configuration. Unless the files
cannam@85 17750 and actions are specified as TAGs, all are instantiated by default.
cannam@85 17751
cannam@85 17752 Usage: $0 [OPTION]... [TAG]...
cannam@85 17753
cannam@85 17754 -h, --help print this help, then exit
cannam@85 17755 -V, --version print version number and configuration settings, then exit
cannam@85 17756 --config print configuration, then exit
cannam@85 17757 -q, --quiet, --silent
cannam@85 17758 do not print progress messages
cannam@85 17759 -d, --debug don't remove temporary files
cannam@85 17760 --recheck update $as_me by reconfiguring in the same conditions
cannam@85 17761 --file=FILE[:TEMPLATE]
cannam@85 17762 instantiate the configuration file FILE
cannam@85 17763 --header=FILE[:TEMPLATE]
cannam@85 17764 instantiate the configuration header FILE
cannam@85 17765
cannam@85 17766 Configuration files:
cannam@85 17767 $config_files
cannam@85 17768
cannam@85 17769 Configuration headers:
cannam@85 17770 $config_headers
cannam@85 17771
cannam@85 17772 Configuration commands:
cannam@85 17773 $config_commands
cannam@85 17774
cannam@85 17775 Report bugs to <erikd@mega-nerd.com>.
cannam@85 17776 libsamplerate home page: <http://www.mega-nerd.com/libsamplerate/>."
cannam@85 17777
cannam@85 17778 _ACEOF
cannam@85 17779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@85 17780 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cannam@85 17781 ac_cs_version="\\
cannam@85 17782 libsamplerate config.status 0.1.8
cannam@85 17783 configured by $0, generated by GNU Autoconf 2.68,
cannam@85 17784 with options \\"\$ac_cs_config\\"
cannam@85 17785
cannam@85 17786 Copyright (C) 2010 Free Software Foundation, Inc.
cannam@85 17787 This config.status script is free software; the Free Software Foundation
cannam@85 17788 gives unlimited permission to copy, distribute and modify it."
cannam@85 17789
cannam@85 17790 ac_pwd='$ac_pwd'
cannam@85 17791 srcdir='$srcdir'
cannam@85 17792 INSTALL='$INSTALL'
cannam@85 17793 MKDIR_P='$MKDIR_P'
cannam@85 17794 AWK='$AWK'
cannam@85 17795 test -n "\$AWK" || AWK=awk
cannam@85 17796 _ACEOF
cannam@85 17797
cannam@85 17798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@85 17799 # The default lists apply if the user does not specify any file.
cannam@85 17800 ac_need_defaults=:
cannam@85 17801 while test $# != 0
cannam@85 17802 do
cannam@85 17803 case $1 in
cannam@85 17804 --*=?*)
cannam@85 17805 ac_option=`expr "X$1" : 'X\([^=]*\)='`
cannam@85 17806 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
cannam@85 17807 ac_shift=:
cannam@85 17808 ;;
cannam@85 17809 --*=)
cannam@85 17810 ac_option=`expr "X$1" : 'X\([^=]*\)='`
cannam@85 17811 ac_optarg=
cannam@85 17812 ac_shift=:
cannam@85 17813 ;;
cannam@85 17814 *)
cannam@85 17815 ac_option=$1
cannam@85 17816 ac_optarg=$2
cannam@85 17817 ac_shift=shift
cannam@85 17818 ;;
cannam@85 17819 esac
cannam@85 17820
cannam@85 17821 case $ac_option in
cannam@85 17822 # Handling of the options.
cannam@85 17823 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
cannam@85 17824 ac_cs_recheck=: ;;
cannam@85 17825 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
cannam@85 17826 $as_echo "$ac_cs_version"; exit ;;
cannam@85 17827 --config | --confi | --conf | --con | --co | --c )
cannam@85 17828 $as_echo "$ac_cs_config"; exit ;;
cannam@85 17829 --debug | --debu | --deb | --de | --d | -d )
cannam@85 17830 debug=: ;;
cannam@85 17831 --file | --fil | --fi | --f )
cannam@85 17832 $ac_shift
cannam@85 17833 case $ac_optarg in
cannam@85 17834 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@85 17835 '') as_fn_error $? "missing file argument" ;;
cannam@85 17836 esac
cannam@85 17837 as_fn_append CONFIG_FILES " '$ac_optarg'"
cannam@85 17838 ac_need_defaults=false;;
cannam@85 17839 --header | --heade | --head | --hea )
cannam@85 17840 $ac_shift
cannam@85 17841 case $ac_optarg in
cannam@85 17842 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@85 17843 esac
cannam@85 17844 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cannam@85 17845 ac_need_defaults=false;;
cannam@85 17846 --he | --h)
cannam@85 17847 # Conflict between --help and --header
cannam@85 17848 as_fn_error $? "ambiguous option: \`$1'
cannam@85 17849 Try \`$0 --help' for more information.";;
cannam@85 17850 --help | --hel | -h )
cannam@85 17851 $as_echo "$ac_cs_usage"; exit ;;
cannam@85 17852 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@85 17853 | -silent | --silent | --silen | --sile | --sil | --si | --s)
cannam@85 17854 ac_cs_silent=: ;;
cannam@85 17855
cannam@85 17856 # This is an error.
cannam@85 17857 -*) as_fn_error $? "unrecognized option: \`$1'
cannam@85 17858 Try \`$0 --help' for more information." ;;
cannam@85 17859
cannam@85 17860 *) as_fn_append ac_config_targets " $1"
cannam@85 17861 ac_need_defaults=false ;;
cannam@85 17862
cannam@85 17863 esac
cannam@85 17864 shift
cannam@85 17865 done
cannam@85 17866
cannam@85 17867 ac_configure_extra_args=
cannam@85 17868
cannam@85 17869 if $ac_cs_silent; then
cannam@85 17870 exec 6>/dev/null
cannam@85 17871 ac_configure_extra_args="$ac_configure_extra_args --silent"
cannam@85 17872 fi
cannam@85 17873
cannam@85 17874 _ACEOF
cannam@85 17875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@85 17876 if \$ac_cs_recheck; then
cannam@85 17877 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cannam@85 17878 shift
cannam@85 17879 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
cannam@85 17880 CONFIG_SHELL='$SHELL'
cannam@85 17881 export CONFIG_SHELL
cannam@85 17882 exec "\$@"
cannam@85 17883 fi
cannam@85 17884
cannam@85 17885 _ACEOF
cannam@85 17886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@85 17887 exec 5>>config.log
cannam@85 17888 {
cannam@85 17889 echo
cannam@85 17890 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
cannam@85 17891 ## Running $as_me. ##
cannam@85 17892 _ASBOX
cannam@85 17893 $as_echo "$ac_log"
cannam@85 17894 } >&5
cannam@85 17895
cannam@85 17896 _ACEOF
cannam@85 17897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@85 17898 #
cannam@85 17899 # INIT-COMMANDS
cannam@85 17900 #
cannam@85 17901 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
cannam@85 17902
cannam@85 17903
cannam@85 17904 # The HP-UX ksh and POSIX shell print the target directory to stdout
cannam@85 17905 # if CDPATH is set.
cannam@85 17906 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cannam@85 17907
cannam@85 17908 sed_quote_subst='$sed_quote_subst'
cannam@85 17909 double_quote_subst='$double_quote_subst'
cannam@85 17910 delay_variable_subst='$delay_variable_subst'
cannam@85 17911 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
cannam@85 17912 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
cannam@85 17913 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
cannam@85 17914 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
cannam@85 17915 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
cannam@85 17916 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cannam@85 17917 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
cannam@85 17918 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
cannam@85 17919 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
cannam@85 17920 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
cannam@85 17921 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
cannam@85 17922 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
cannam@85 17923 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
cannam@85 17924 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
cannam@85 17925 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
cannam@85 17926 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
cannam@85 17927 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
cannam@85 17928 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
cannam@85 17929 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
cannam@85 17930 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
cannam@85 17931 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
cannam@85 17932 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
cannam@85 17933 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
cannam@85 17934 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
cannam@85 17935 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
cannam@85 17936 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
cannam@85 17937 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
cannam@85 17938 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cannam@85 17939 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
cannam@85 17940 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cannam@85 17941 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
cannam@85 17942 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
cannam@85 17943 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
cannam@85 17944 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
cannam@85 17945 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cannam@85 17946 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
cannam@85 17947 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
cannam@85 17948 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
cannam@85 17949 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cannam@85 17950 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
cannam@85 17951 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cannam@85 17952 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cannam@85 17953 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
cannam@85 17954 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
cannam@85 17955 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@85 17956 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@85 17957 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
cannam@85 17958 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
cannam@85 17959 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
cannam@85 17960 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
cannam@85 17961 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
cannam@85 17962 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
cannam@85 17963 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
cannam@85 17964 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
cannam@85 17965 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@85 17966 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@85 17967 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
cannam@85 17968 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cannam@85 17969 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
cannam@85 17970 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
cannam@85 17971 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cannam@85 17972 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cannam@85 17973 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cannam@85 17974 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
cannam@85 17975 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
cannam@85 17976 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cannam@85 17977 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cannam@85 17978 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
cannam@85 17979 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
cannam@85 17980 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
cannam@85 17981 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
cannam@85 17982 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
cannam@85 17983 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
cannam@85 17984 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
cannam@85 17985 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
cannam@85 17986 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
cannam@85 17987 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
cannam@85 17988 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
cannam@85 17989 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
cannam@85 17990 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
cannam@85 17991 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
cannam@85 17992 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
cannam@85 17993 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
cannam@85 17994 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
cannam@85 17995 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
cannam@85 17996 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
cannam@85 17997 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
cannam@85 17998 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
cannam@85 17999 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
cannam@85 18000 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cannam@85 18001 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
cannam@85 18002 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
cannam@85 18003 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
cannam@85 18004 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
cannam@85 18005 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
cannam@85 18006 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
cannam@85 18007 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
cannam@85 18008 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
cannam@85 18009 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cannam@85 18010 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
cannam@85 18011 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
cannam@85 18012 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
cannam@85 18013 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
cannam@85 18014 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cannam@85 18015 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cannam@85 18016 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
cannam@85 18017 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
cannam@85 18018 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
cannam@85 18019 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
cannam@85 18020 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
cannam@85 18021 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
cannam@85 18022 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
cannam@85 18023 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
cannam@85 18024 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
cannam@85 18025 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
cannam@85 18026 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
cannam@85 18027 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
cannam@85 18028 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@85 18029 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@85 18030 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
cannam@85 18031 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
cannam@85 18032 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
cannam@85 18033 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
cannam@85 18034 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
cannam@85 18035 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
cannam@85 18036 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
cannam@85 18037 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
cannam@85 18038 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
cannam@85 18039 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
cannam@85 18040 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
cannam@85 18041 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
cannam@85 18042 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
cannam@85 18043 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
cannam@85 18044 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
cannam@85 18045 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
cannam@85 18046 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
cannam@85 18047 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18048 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18049 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18050 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18051 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18052 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18053 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18054 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18055 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18056 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18057 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18058 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18059 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18060 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18061 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18062 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18063 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18064 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18065 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18066 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18067 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18068 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18069 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18070 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18071 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18072 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18073 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18074 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18075 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18076 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18077 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18078 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18079 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18080 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18081 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18082 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18083 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18084 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18085 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18086 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18087 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18088 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18089 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18090 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18091 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18092 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18093 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18094 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18095 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18096 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18097 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18098 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18099 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18100 hardcode_libdir_flag_spec_ld_RC='`$ECHO "$hardcode_libdir_flag_spec_ld_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18101 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18102 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18103 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18104 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18105 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18106 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18107 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18108 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18109 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18110 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18111 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18112 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18113 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18114 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18115 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18116 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18117 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18118 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18119 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18120 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18121 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18122 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18123 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18124 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18125 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18126 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18127 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18128 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18129 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18130 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18131 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18132 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18133 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18134 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18135 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18136 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18137 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18138 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18139 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18140 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18141 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18142 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18143 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cannam@85 18144 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
cannam@85 18145
cannam@85 18146 LTCC='$LTCC'
cannam@85 18147 LTCFLAGS='$LTCFLAGS'
cannam@85 18148 compiler='$compiler_DEFAULT'
cannam@85 18149
cannam@85 18150 # A function that is used when there is no print builtin or printf.
cannam@85 18151 func_fallback_echo ()
cannam@85 18152 {
cannam@85 18153 eval 'cat <<_LTECHO_EOF
cannam@85 18154 \$1
cannam@85 18155 _LTECHO_EOF'
cannam@85 18156 }
cannam@85 18157
cannam@85 18158 # Quote evaled strings.
cannam@85 18159 for var in SHELL \
cannam@85 18160 ECHO \
cannam@85 18161 SED \
cannam@85 18162 GREP \
cannam@85 18163 EGREP \
cannam@85 18164 FGREP \
cannam@85 18165 LD \
cannam@85 18166 NM \
cannam@85 18167 LN_S \
cannam@85 18168 lt_SP2NL \
cannam@85 18169 lt_NL2SP \
cannam@85 18170 reload_flag \
cannam@85 18171 OBJDUMP \
cannam@85 18172 deplibs_check_method \
cannam@85 18173 file_magic_cmd \
cannam@85 18174 file_magic_glob \
cannam@85 18175 want_nocaseglob \
cannam@85 18176 DLLTOOL \
cannam@85 18177 sharedlib_from_linklib_cmd \
cannam@85 18178 AR \
cannam@85 18179 AR_FLAGS \
cannam@85 18180 archiver_list_spec \
cannam@85 18181 STRIP \
cannam@85 18182 RANLIB \
cannam@85 18183 CC \
cannam@85 18184 CFLAGS \
cannam@85 18185 compiler \
cannam@85 18186 lt_cv_sys_global_symbol_pipe \
cannam@85 18187 lt_cv_sys_global_symbol_to_cdecl \
cannam@85 18188 lt_cv_sys_global_symbol_to_c_name_address \
cannam@85 18189 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cannam@85 18190 nm_file_list_spec \
cannam@85 18191 lt_prog_compiler_no_builtin_flag \
cannam@85 18192 lt_prog_compiler_pic \
cannam@85 18193 lt_prog_compiler_wl \
cannam@85 18194 lt_prog_compiler_static \
cannam@85 18195 lt_cv_prog_compiler_c_o \
cannam@85 18196 need_locks \
cannam@85 18197 MANIFEST_TOOL \
cannam@85 18198 DSYMUTIL \
cannam@85 18199 NMEDIT \
cannam@85 18200 LIPO \
cannam@85 18201 OTOOL \
cannam@85 18202 OTOOL64 \
cannam@85 18203 shrext_cmds \
cannam@85 18204 export_dynamic_flag_spec \
cannam@85 18205 whole_archive_flag_spec \
cannam@85 18206 compiler_needs_object \
cannam@85 18207 with_gnu_ld \
cannam@85 18208 allow_undefined_flag \
cannam@85 18209 no_undefined_flag \
cannam@85 18210 hardcode_libdir_flag_spec \
cannam@85 18211 hardcode_libdir_flag_spec_ld \
cannam@85 18212 hardcode_libdir_separator \
cannam@85 18213 exclude_expsyms \
cannam@85 18214 include_expsyms \
cannam@85 18215 file_list_spec \
cannam@85 18216 variables_saved_for_relink \
cannam@85 18217 libname_spec \
cannam@85 18218 library_names_spec \
cannam@85 18219 soname_spec \
cannam@85 18220 install_override_mode \
cannam@85 18221 finish_eval \
cannam@85 18222 old_striplib \
cannam@85 18223 striplib \
cannam@85 18224 compiler_lib_search_dirs \
cannam@85 18225 predep_objects \
cannam@85 18226 postdep_objects \
cannam@85 18227 predeps \
cannam@85 18228 postdeps \
cannam@85 18229 compiler_lib_search_path \
cannam@85 18230 LD_CXX \
cannam@85 18231 LD_RC \
cannam@85 18232 reload_flag_CXX \
cannam@85 18233 reload_flag_RC \
cannam@85 18234 compiler_CXX \
cannam@85 18235 compiler_RC \
cannam@85 18236 lt_prog_compiler_no_builtin_flag_CXX \
cannam@85 18237 lt_prog_compiler_no_builtin_flag_RC \
cannam@85 18238 lt_prog_compiler_pic_CXX \
cannam@85 18239 lt_prog_compiler_pic_RC \
cannam@85 18240 lt_prog_compiler_wl_CXX \
cannam@85 18241 lt_prog_compiler_wl_RC \
cannam@85 18242 lt_prog_compiler_static_CXX \
cannam@85 18243 lt_prog_compiler_static_RC \
cannam@85 18244 lt_cv_prog_compiler_c_o_CXX \
cannam@85 18245 lt_cv_prog_compiler_c_o_RC \
cannam@85 18246 export_dynamic_flag_spec_CXX \
cannam@85 18247 export_dynamic_flag_spec_RC \
cannam@85 18248 whole_archive_flag_spec_CXX \
cannam@85 18249 whole_archive_flag_spec_RC \
cannam@85 18250 compiler_needs_object_CXX \
cannam@85 18251 compiler_needs_object_RC \
cannam@85 18252 with_gnu_ld_CXX \
cannam@85 18253 with_gnu_ld_RC \
cannam@85 18254 allow_undefined_flag_CXX \
cannam@85 18255 allow_undefined_flag_RC \
cannam@85 18256 no_undefined_flag_CXX \
cannam@85 18257 no_undefined_flag_RC \
cannam@85 18258 hardcode_libdir_flag_spec_CXX \
cannam@85 18259 hardcode_libdir_flag_spec_RC \
cannam@85 18260 hardcode_libdir_flag_spec_ld_CXX \
cannam@85 18261 hardcode_libdir_flag_spec_ld_RC \
cannam@85 18262 hardcode_libdir_separator_CXX \
cannam@85 18263 hardcode_libdir_separator_RC \
cannam@85 18264 exclude_expsyms_CXX \
cannam@85 18265 exclude_expsyms_RC \
cannam@85 18266 include_expsyms_CXX \
cannam@85 18267 include_expsyms_RC \
cannam@85 18268 file_list_spec_CXX \
cannam@85 18269 file_list_spec_RC \
cannam@85 18270 compiler_lib_search_dirs_CXX \
cannam@85 18271 compiler_lib_search_dirs_RC \
cannam@85 18272 predep_objects_CXX \
cannam@85 18273 predep_objects_RC \
cannam@85 18274 postdep_objects_CXX \
cannam@85 18275 postdep_objects_RC \
cannam@85 18276 predeps_CXX \
cannam@85 18277 predeps_RC \
cannam@85 18278 postdeps_CXX \
cannam@85 18279 postdeps_RC \
cannam@85 18280 compiler_lib_search_path_CXX \
cannam@85 18281 compiler_lib_search_path_RC; do
cannam@85 18282 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cannam@85 18283 *[\\\\\\\`\\"\\\$]*)
cannam@85 18284 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cannam@85 18285 ;;
cannam@85 18286 *)
cannam@85 18287 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
cannam@85 18288 ;;
cannam@85 18289 esac
cannam@85 18290 done
cannam@85 18291
cannam@85 18292 # Double-quote double-evaled strings.
cannam@85 18293 for var in reload_cmds \
cannam@85 18294 old_postinstall_cmds \
cannam@85 18295 old_postuninstall_cmds \
cannam@85 18296 old_archive_cmds \
cannam@85 18297 extract_expsyms_cmds \
cannam@85 18298 old_archive_from_new_cmds \
cannam@85 18299 old_archive_from_expsyms_cmds \
cannam@85 18300 archive_cmds \
cannam@85 18301 archive_expsym_cmds \
cannam@85 18302 module_cmds \
cannam@85 18303 module_expsym_cmds \
cannam@85 18304 export_symbols_cmds \
cannam@85 18305 prelink_cmds \
cannam@85 18306 postlink_cmds \
cannam@85 18307 postinstall_cmds \
cannam@85 18308 postuninstall_cmds \
cannam@85 18309 finish_cmds \
cannam@85 18310 sys_lib_search_path_spec \
cannam@85 18311 sys_lib_dlsearch_path_spec \
cannam@85 18312 reload_cmds_CXX \
cannam@85 18313 reload_cmds_RC \
cannam@85 18314 old_archive_cmds_CXX \
cannam@85 18315 old_archive_cmds_RC \
cannam@85 18316 old_archive_from_new_cmds_CXX \
cannam@85 18317 old_archive_from_new_cmds_RC \
cannam@85 18318 old_archive_from_expsyms_cmds_CXX \
cannam@85 18319 old_archive_from_expsyms_cmds_RC \
cannam@85 18320 archive_cmds_CXX \
cannam@85 18321 archive_cmds_RC \
cannam@85 18322 archive_expsym_cmds_CXX \
cannam@85 18323 archive_expsym_cmds_RC \
cannam@85 18324 module_cmds_CXX \
cannam@85 18325 module_cmds_RC \
cannam@85 18326 module_expsym_cmds_CXX \
cannam@85 18327 module_expsym_cmds_RC \
cannam@85 18328 export_symbols_cmds_CXX \
cannam@85 18329 export_symbols_cmds_RC \
cannam@85 18330 prelink_cmds_CXX \
cannam@85 18331 prelink_cmds_RC \
cannam@85 18332 postlink_cmds_CXX \
cannam@85 18333 postlink_cmds_RC; do
cannam@85 18334 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cannam@85 18335 *[\\\\\\\`\\"\\\$]*)
cannam@85 18336 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cannam@85 18337 ;;
cannam@85 18338 *)
cannam@85 18339 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
cannam@85 18340 ;;
cannam@85 18341 esac
cannam@85 18342 done
cannam@85 18343
cannam@85 18344 ac_aux_dir='$ac_aux_dir'
cannam@85 18345 xsi_shell='$xsi_shell'
cannam@85 18346 lt_shell_append='$lt_shell_append'
cannam@85 18347
cannam@85 18348 # See if we are running on zsh, and set the options which allow our
cannam@85 18349 # commands through without removal of \ escapes INIT.
cannam@85 18350 if test -n "\${ZSH_VERSION+set}" ; then
cannam@85 18351 setopt NO_GLOB_SUBST
cannam@85 18352 fi
cannam@85 18353
cannam@85 18354
cannam@85 18355 PACKAGE='$PACKAGE'
cannam@85 18356 VERSION='$VERSION'
cannam@85 18357 TIMESTAMP='$TIMESTAMP'
cannam@85 18358 RM='$RM'
cannam@85 18359 ofile='$ofile'
cannam@85 18360
cannam@85 18361
cannam@85 18362
cannam@85 18363
cannam@85 18364
cannam@85 18365
cannam@85 18366
cannam@85 18367
cannam@85 18368 _ACEOF
cannam@85 18369
cannam@85 18370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@85 18371
cannam@85 18372 # Handling of arguments.
cannam@85 18373 for ac_config_target in $ac_config_targets
cannam@85 18374 do
cannam@85 18375 case $ac_config_target in
cannam@85 18376 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
cannam@85 18377 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
cannam@85 18378 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cannam@85 18379 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
cannam@85 18380 "M4/Makefile") CONFIG_FILES="$CONFIG_FILES M4/Makefile" ;;
cannam@85 18381 "src/Version_script") CONFIG_FILES="$CONFIG_FILES src/Version_script" ;;
cannam@85 18382 "Win32/Makefile") CONFIG_FILES="$CONFIG_FILES Win32/Makefile" ;;
cannam@85 18383 "Win32/Makefile.mingw") CONFIG_FILES="$CONFIG_FILES Win32/Makefile.mingw" ;;
cannam@85 18384 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
cannam@85 18385 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
cannam@85 18386 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
cannam@85 18387 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
cannam@85 18388 "libsamplerate.spec") CONFIG_FILES="$CONFIG_FILES libsamplerate.spec" ;;
cannam@85 18389 "samplerate.pc") CONFIG_FILES="$CONFIG_FILES samplerate.pc" ;;
cannam@85 18390
cannam@85 18391 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cannam@85 18392 esac
cannam@85 18393 done
cannam@85 18394
cannam@85 18395
cannam@85 18396 # If the user did not use the arguments to specify the items to instantiate,
cannam@85 18397 # then the envvar interface is used. Set only those that are not.
cannam@85 18398 # We use the long form for the default assignment because of an extremely
cannam@85 18399 # bizarre bug on SunOS 4.1.3.
cannam@85 18400 if $ac_need_defaults; then
cannam@85 18401 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
cannam@85 18402 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
cannam@85 18403 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
cannam@85 18404 fi
cannam@85 18405
cannam@85 18406 # Have a temporary directory for convenience. Make it in the build tree
cannam@85 18407 # simply because there is no reason against having it here, and in addition,
cannam@85 18408 # creating and moving files from /tmp can sometimes cause problems.
cannam@85 18409 # Hook for its removal unless debugging.
cannam@85 18410 # Note that there is a small window in which the directory will not be cleaned:
cannam@85 18411 # after its creation but before its name has been assigned to `$tmp'.
cannam@85 18412 $debug ||
cannam@85 18413 {
cannam@85 18414 tmp= ac_tmp=
cannam@85 18415 trap 'exit_status=$?
cannam@85 18416 : "${ac_tmp:=$tmp}"
cannam@85 18417 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cannam@85 18418 ' 0
cannam@85 18419 trap 'as_fn_exit 1' 1 2 13 15
cannam@85 18420 }
cannam@85 18421 # Create a (secure) tmp directory for tmp files.
cannam@85 18422
cannam@85 18423 {
cannam@85 18424 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cannam@85 18425 test -d "$tmp"
cannam@85 18426 } ||
cannam@85 18427 {
cannam@85 18428 tmp=./conf$$-$RANDOM
cannam@85 18429 (umask 077 && mkdir "$tmp")
cannam@85 18430 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cannam@85 18431 ac_tmp=$tmp
cannam@85 18432
cannam@85 18433 # Set up the scripts for CONFIG_FILES section.
cannam@85 18434 # No need to generate them if there are no CONFIG_FILES.
cannam@85 18435 # This happens for instance with `./config.status config.h'.
cannam@85 18436 if test -n "$CONFIG_FILES"; then
cannam@85 18437
cannam@85 18438
cannam@85 18439 ac_cr=`echo X | tr X '\015'`
cannam@85 18440 # On cygwin, bash can eat \r inside `` if the user requested igncr.
cannam@85 18441 # But we know of no other shell where ac_cr would be empty at this
cannam@85 18442 # point, so we can use a bashism as a fallback.
cannam@85 18443 if test "x$ac_cr" = x; then
cannam@85 18444 eval ac_cr=\$\'\\r\'
cannam@85 18445 fi
cannam@85 18446 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
cannam@85 18447 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cannam@85 18448 ac_cs_awk_cr='\\r'
cannam@85 18449 else
cannam@85 18450 ac_cs_awk_cr=$ac_cr
cannam@85 18451 fi
cannam@85 18452
cannam@85 18453 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cannam@85 18454 _ACEOF
cannam@85 18455
cannam@85 18456
cannam@85 18457 {
cannam@85 18458 echo "cat >conf$$subs.awk <<_ACEOF" &&
cannam@85 18459 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
cannam@85 18460 echo "_ACEOF"
cannam@85 18461 } >conf$$subs.sh ||
cannam@85 18462 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cannam@85 18463 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cannam@85 18464 ac_delim='%!_!# '
cannam@85 18465 for ac_last_try in false false false false false :; do
cannam@85 18466 . ./conf$$subs.sh ||
cannam@85 18467 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cannam@85 18468
cannam@85 18469 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
cannam@85 18470 if test $ac_delim_n = $ac_delim_num; then
cannam@85 18471 break
cannam@85 18472 elif $ac_last_try; then
cannam@85 18473 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cannam@85 18474 else
cannam@85 18475 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
cannam@85 18476 fi
cannam@85 18477 done
cannam@85 18478 rm -f conf$$subs.sh
cannam@85 18479
cannam@85 18480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@85 18481 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cannam@85 18482 _ACEOF
cannam@85 18483 sed -n '
cannam@85 18484 h
cannam@85 18485 s/^/S["/; s/!.*/"]=/
cannam@85 18486 p
cannam@85 18487 g
cannam@85 18488 s/^[^!]*!//
cannam@85 18489 :repl
cannam@85 18490 t repl
cannam@85 18491 s/'"$ac_delim"'$//
cannam@85 18492 t delim
cannam@85 18493 :nl
cannam@85 18494 h
cannam@85 18495 s/\(.\{148\}\)..*/\1/
cannam@85 18496 t more1
cannam@85 18497 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
cannam@85 18498 p
cannam@85 18499 n
cannam@85 18500 b repl
cannam@85 18501 :more1
cannam@85 18502 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
cannam@85 18503 p
cannam@85 18504 g
cannam@85 18505 s/.\{148\}//
cannam@85 18506 t nl
cannam@85 18507 :delim
cannam@85 18508 h
cannam@85 18509 s/\(.\{148\}\)..*/\1/
cannam@85 18510 t more2
cannam@85 18511 s/["\\]/\\&/g; s/^/"/; s/$/"/
cannam@85 18512 p
cannam@85 18513 b
cannam@85 18514 :more2
cannam@85 18515 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
cannam@85 18516 p
cannam@85 18517 g
cannam@85 18518 s/.\{148\}//
cannam@85 18519 t delim
cannam@85 18520 ' <conf$$subs.awk | sed '
cannam@85 18521 /^[^""]/{
cannam@85 18522 N
cannam@85 18523 s/\n//
cannam@85 18524 }
cannam@85 18525 ' >>$CONFIG_STATUS || ac_write_fail=1
cannam@85 18526 rm -f conf$$subs.awk
cannam@85 18527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@85 18528 _ACAWK
cannam@85 18529 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cannam@85 18530 for (key in S) S_is_set[key] = 1
cannam@85 18531 FS = ""
cannam@85 18532
cannam@85 18533 }
cannam@85 18534 {
cannam@85 18535 line = $ 0
cannam@85 18536 nfields = split(line, field, "@")
cannam@85 18537 substed = 0
cannam@85 18538 len = length(field[1])
cannam@85 18539 for (i = 2; i < nfields; i++) {
cannam@85 18540 key = field[i]
cannam@85 18541 keylen = length(key)
cannam@85 18542 if (S_is_set[key]) {
cannam@85 18543 value = S[key]
cannam@85 18544 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
cannam@85 18545 len += length(value) + length(field[++i])
cannam@85 18546 substed = 1
cannam@85 18547 } else
cannam@85 18548 len += 1 + keylen
cannam@85 18549 }
cannam@85 18550
cannam@85 18551 print line
cannam@85 18552 }
cannam@85 18553
cannam@85 18554 _ACAWK
cannam@85 18555 _ACEOF
cannam@85 18556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@85 18557 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
cannam@85 18558 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
cannam@85 18559 else
cannam@85 18560 cat
cannam@85 18561 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cannam@85 18562 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cannam@85 18563 _ACEOF
cannam@85 18564
cannam@85 18565 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
cannam@85 18566 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cannam@85 18567 # trailing colons and then remove the whole line if VPATH becomes empty
cannam@85 18568 # (actually we leave an empty line to preserve line numbers).
cannam@85 18569 if test "x$srcdir" = x.; then
cannam@85 18570 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
cannam@85 18571 h
cannam@85 18572 s///
cannam@85 18573 s/^/:/
cannam@85 18574 s/[ ]*$/:/
cannam@85 18575 s/:\$(srcdir):/:/g
cannam@85 18576 s/:\${srcdir}:/:/g
cannam@85 18577 s/:@srcdir@:/:/g
cannam@85 18578 s/^:*//
cannam@85 18579 s/:*$//
cannam@85 18580 x
cannam@85 18581 s/\(=[ ]*\).*/\1/
cannam@85 18582 G
cannam@85 18583 s/\n//
cannam@85 18584 s/^[^=]*=[ ]*$//
cannam@85 18585 }'
cannam@85 18586 fi
cannam@85 18587
cannam@85 18588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@85 18589 fi # test -n "$CONFIG_FILES"
cannam@85 18590
cannam@85 18591 # Set up the scripts for CONFIG_HEADERS section.
cannam@85 18592 # No need to generate them if there are no CONFIG_HEADERS.
cannam@85 18593 # This happens for instance with `./config.status Makefile'.
cannam@85 18594 if test -n "$CONFIG_HEADERS"; then
cannam@85 18595 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cannam@85 18596 BEGIN {
cannam@85 18597 _ACEOF
cannam@85 18598
cannam@85 18599 # Transform confdefs.h into an awk script `defines.awk', embedded as
cannam@85 18600 # here-document in config.status, that substitutes the proper values into
cannam@85 18601 # config.h.in to produce config.h.
cannam@85 18602
cannam@85 18603 # Create a delimiter string that does not exist in confdefs.h, to ease
cannam@85 18604 # handling of long lines.
cannam@85 18605 ac_delim='%!_!# '
cannam@85 18606 for ac_last_try in false false :; do
cannam@85 18607 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
cannam@85 18608 if test -z "$ac_tt"; then
cannam@85 18609 break
cannam@85 18610 elif $ac_last_try; then
cannam@85 18611 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cannam@85 18612 else
cannam@85 18613 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
cannam@85 18614 fi
cannam@85 18615 done
cannam@85 18616
cannam@85 18617 # For the awk script, D is an array of macro values keyed by name,
cannam@85 18618 # likewise P contains macro parameters if any. Preserve backslash
cannam@85 18619 # newline sequences.
cannam@85 18620
cannam@85 18621 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
cannam@85 18622 sed -n '
cannam@85 18623 s/.\{148\}/&'"$ac_delim"'/g
cannam@85 18624 t rset
cannam@85 18625 :rset
cannam@85 18626 s/^[ ]*#[ ]*define[ ][ ]*/ /
cannam@85 18627 t def
cannam@85 18628 d
cannam@85 18629 :def
cannam@85 18630 s/\\$//
cannam@85 18631 t bsnl
cannam@85 18632 s/["\\]/\\&/g
cannam@85 18633 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
cannam@85 18634 D["\1"]=" \3"/p
cannam@85 18635 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
cannam@85 18636 d
cannam@85 18637 :bsnl
cannam@85 18638 s/["\\]/\\&/g
cannam@85 18639 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
cannam@85 18640 D["\1"]=" \3\\\\\\n"\\/p
cannam@85 18641 t cont
cannam@85 18642 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
cannam@85 18643 t cont
cannam@85 18644 d
cannam@85 18645 :cont
cannam@85 18646 n
cannam@85 18647 s/.\{148\}/&'"$ac_delim"'/g
cannam@85 18648 t clear
cannam@85 18649 :clear
cannam@85 18650 s/\\$//
cannam@85 18651 t bsnlc
cannam@85 18652 s/["\\]/\\&/g; s/^/"/; s/$/"/p
cannam@85 18653 d
cannam@85 18654 :bsnlc
cannam@85 18655 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
cannam@85 18656 b cont
cannam@85 18657 ' <confdefs.h | sed '
cannam@85 18658 s/'"$ac_delim"'/"\\\
cannam@85 18659 "/g' >>$CONFIG_STATUS || ac_write_fail=1
cannam@85 18660
cannam@85 18661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@85 18662 for (key in D) D_is_set[key] = 1
cannam@85 18663 FS = ""
cannam@85 18664 }
cannam@85 18665 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
cannam@85 18666 line = \$ 0
cannam@85 18667 split(line, arg, " ")
cannam@85 18668 if (arg[1] == "#") {
cannam@85 18669 defundef = arg[2]
cannam@85 18670 mac1 = arg[3]
cannam@85 18671 } else {
cannam@85 18672 defundef = substr(arg[1], 2)
cannam@85 18673 mac1 = arg[2]
cannam@85 18674 }
cannam@85 18675 split(mac1, mac2, "(") #)
cannam@85 18676 macro = mac2[1]
cannam@85 18677 prefix = substr(line, 1, index(line, defundef) - 1)
cannam@85 18678 if (D_is_set[macro]) {
cannam@85 18679 # Preserve the white space surrounding the "#".
cannam@85 18680 print prefix "define", macro P[macro] D[macro]
cannam@85 18681 next
cannam@85 18682 } else {
cannam@85 18683 # Replace #undef with comments. This is necessary, for example,
cannam@85 18684 # in the case of _POSIX_SOURCE, which is predefined and required
cannam@85 18685 # on some systems where configure will not decide to define it.
cannam@85 18686 if (defundef == "undef") {
cannam@85 18687 print "/*", prefix defundef, macro, "*/"
cannam@85 18688 next
cannam@85 18689 }
cannam@85 18690 }
cannam@85 18691 }
cannam@85 18692 { print }
cannam@85 18693 _ACAWK
cannam@85 18694 _ACEOF
cannam@85 18695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@85 18696 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cannam@85 18697 fi # test -n "$CONFIG_HEADERS"
cannam@85 18698
cannam@85 18699
cannam@85 18700 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
cannam@85 18701 shift
cannam@85 18702 for ac_tag
cannam@85 18703 do
cannam@85 18704 case $ac_tag in
cannam@85 18705 :[FHLC]) ac_mode=$ac_tag; continue;;
cannam@85 18706 esac
cannam@85 18707 case $ac_mode$ac_tag in
cannam@85 18708 :[FHL]*:*);;
cannam@85 18709 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cannam@85 18710 :[FH]-) ac_tag=-:-;;
cannam@85 18711 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
cannam@85 18712 esac
cannam@85 18713 ac_save_IFS=$IFS
cannam@85 18714 IFS=:
cannam@85 18715 set x $ac_tag
cannam@85 18716 IFS=$ac_save_IFS
cannam@85 18717 shift
cannam@85 18718 ac_file=$1
cannam@85 18719 shift
cannam@85 18720
cannam@85 18721 case $ac_mode in
cannam@85 18722 :L) ac_source=$1;;
cannam@85 18723 :[FH])
cannam@85 18724 ac_file_inputs=
cannam@85 18725 for ac_f
cannam@85 18726 do
cannam@85 18727 case $ac_f in
cannam@85 18728 -) ac_f="$ac_tmp/stdin";;
cannam@85 18729 *) # Look for the file first in the build tree, then in the source tree
cannam@85 18730 # (if the path is not absolute). The absolute path cannot be DOS-style,
cannam@85 18731 # because $ac_f cannot contain `:'.
cannam@85 18732 test -f "$ac_f" ||
cannam@85 18733 case $ac_f in
cannam@85 18734 [\\/$]*) false;;
cannam@85 18735 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
cannam@85 18736 esac ||
cannam@85 18737 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cannam@85 18738 esac
cannam@85 18739 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cannam@85 18740 as_fn_append ac_file_inputs " '$ac_f'"
cannam@85 18741 done
cannam@85 18742
cannam@85 18743 # Let's still pretend it is `configure' which instantiates (i.e., don't
cannam@85 18744 # use $as_me), people would be surprised to read:
cannam@85 18745 # /* config.h. Generated by config.status. */
cannam@85 18746 configure_input='Generated from '`
cannam@85 18747 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
cannam@85 18748 `' by configure.'
cannam@85 18749 if test x"$ac_file" != x-; then
cannam@85 18750 configure_input="$ac_file. $configure_input"
cannam@85 18751 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cannam@85 18752 $as_echo "$as_me: creating $ac_file" >&6;}
cannam@85 18753 fi
cannam@85 18754 # Neutralize special characters interpreted by sed in replacement strings.
cannam@85 18755 case $configure_input in #(
cannam@85 18756 *\&* | *\|* | *\\* )
cannam@85 18757 ac_sed_conf_input=`$as_echo "$configure_input" |
cannam@85 18758 sed 's/[\\\\&|]/\\\\&/g'`;; #(
cannam@85 18759 *) ac_sed_conf_input=$configure_input;;
cannam@85 18760 esac
cannam@85 18761
cannam@85 18762 case $ac_tag in
cannam@85 18763 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cannam@85 18764 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cannam@85 18765 esac
cannam@85 18766 ;;
cannam@85 18767 esac
cannam@85 18768
cannam@85 18769 ac_dir=`$as_dirname -- "$ac_file" ||
cannam@85 18770 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 18771 X"$ac_file" : 'X\(//\)[^/]' \| \
cannam@85 18772 X"$ac_file" : 'X\(//\)$' \| \
cannam@85 18773 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
cannam@85 18774 $as_echo X"$ac_file" |
cannam@85 18775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@85 18776 s//\1/
cannam@85 18777 q
cannam@85 18778 }
cannam@85 18779 /^X\(\/\/\)[^/].*/{
cannam@85 18780 s//\1/
cannam@85 18781 q
cannam@85 18782 }
cannam@85 18783 /^X\(\/\/\)$/{
cannam@85 18784 s//\1/
cannam@85 18785 q
cannam@85 18786 }
cannam@85 18787 /^X\(\/\).*/{
cannam@85 18788 s//\1/
cannam@85 18789 q
cannam@85 18790 }
cannam@85 18791 s/.*/./; q'`
cannam@85 18792 as_dir="$ac_dir"; as_fn_mkdir_p
cannam@85 18793 ac_builddir=.
cannam@85 18794
cannam@85 18795 case "$ac_dir" in
cannam@85 18796 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@85 18797 *)
cannam@85 18798 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
cannam@85 18799 # A ".." for each directory in $ac_dir_suffix.
cannam@85 18800 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
cannam@85 18801 case $ac_top_builddir_sub in
cannam@85 18802 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@85 18803 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
cannam@85 18804 esac ;;
cannam@85 18805 esac
cannam@85 18806 ac_abs_top_builddir=$ac_pwd
cannam@85 18807 ac_abs_builddir=$ac_pwd$ac_dir_suffix
cannam@85 18808 # for backward compatibility:
cannam@85 18809 ac_top_builddir=$ac_top_build_prefix
cannam@85 18810
cannam@85 18811 case $srcdir in
cannam@85 18812 .) # We are building in place.
cannam@85 18813 ac_srcdir=.
cannam@85 18814 ac_top_srcdir=$ac_top_builddir_sub
cannam@85 18815 ac_abs_top_srcdir=$ac_pwd ;;
cannam@85 18816 [\\/]* | ?:[\\/]* ) # Absolute name.
cannam@85 18817 ac_srcdir=$srcdir$ac_dir_suffix;
cannam@85 18818 ac_top_srcdir=$srcdir
cannam@85 18819 ac_abs_top_srcdir=$srcdir ;;
cannam@85 18820 *) # Relative name.
cannam@85 18821 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
cannam@85 18822 ac_top_srcdir=$ac_top_build_prefix$srcdir
cannam@85 18823 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
cannam@85 18824 esac
cannam@85 18825 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
cannam@85 18826
cannam@85 18827
cannam@85 18828 case $ac_mode in
cannam@85 18829 :F)
cannam@85 18830 #
cannam@85 18831 # CONFIG_FILE
cannam@85 18832 #
cannam@85 18833
cannam@85 18834 case $INSTALL in
cannam@85 18835 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cannam@85 18836 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
cannam@85 18837 esac
cannam@85 18838 ac_MKDIR_P=$MKDIR_P
cannam@85 18839 case $MKDIR_P in
cannam@85 18840 [\\/$]* | ?:[\\/]* ) ;;
cannam@85 18841 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
cannam@85 18842 esac
cannam@85 18843 _ACEOF
cannam@85 18844
cannam@85 18845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@85 18846 # If the template does not know about datarootdir, expand it.
cannam@85 18847 # FIXME: This hack should be removed a few years after 2.60.
cannam@85 18848 ac_datarootdir_hack=; ac_datarootdir_seen=
cannam@85 18849 ac_sed_dataroot='
cannam@85 18850 /datarootdir/ {
cannam@85 18851 p
cannam@85 18852 q
cannam@85 18853 }
cannam@85 18854 /@datadir@/p
cannam@85 18855 /@docdir@/p
cannam@85 18856 /@infodir@/p
cannam@85 18857 /@localedir@/p
cannam@85 18858 /@mandir@/p'
cannam@85 18859 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
cannam@85 18860 *datarootdir*) ac_datarootdir_seen=yes;;
cannam@85 18861 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cannam@85 18862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cannam@85 18863 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
cannam@85 18864 _ACEOF
cannam@85 18865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@85 18866 ac_datarootdir_hack='
cannam@85 18867 s&@datadir@&$datadir&g
cannam@85 18868 s&@docdir@&$docdir&g
cannam@85 18869 s&@infodir@&$infodir&g
cannam@85 18870 s&@localedir@&$localedir&g
cannam@85 18871 s&@mandir@&$mandir&g
cannam@85 18872 s&\\\${datarootdir}&$datarootdir&g' ;;
cannam@85 18873 esac
cannam@85 18874 _ACEOF
cannam@85 18875
cannam@85 18876 # Neutralize VPATH when `$srcdir' = `.'.
cannam@85 18877 # Shell code in configure.ac might set extrasub.
cannam@85 18878 # FIXME: do we really want to maintain this feature?
cannam@85 18879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@85 18880 ac_sed_extra="$ac_vpsub
cannam@85 18881 $extrasub
cannam@85 18882 _ACEOF
cannam@85 18883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@85 18884 :t
cannam@85 18885 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
cannam@85 18886 s|@configure_input@|$ac_sed_conf_input|;t t
cannam@85 18887 s&@top_builddir@&$ac_top_builddir_sub&;t t
cannam@85 18888 s&@top_build_prefix@&$ac_top_build_prefix&;t t
cannam@85 18889 s&@srcdir@&$ac_srcdir&;t t
cannam@85 18890 s&@abs_srcdir@&$ac_abs_srcdir&;t t
cannam@85 18891 s&@top_srcdir@&$ac_top_srcdir&;t t
cannam@85 18892 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
cannam@85 18893 s&@builddir@&$ac_builddir&;t t
cannam@85 18894 s&@abs_builddir@&$ac_abs_builddir&;t t
cannam@85 18895 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
cannam@85 18896 s&@INSTALL@&$ac_INSTALL&;t t
cannam@85 18897 s&@MKDIR_P@&$ac_MKDIR_P&;t t
cannam@85 18898 $ac_datarootdir_hack
cannam@85 18899 "
cannam@85 18900 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
cannam@85 18901 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@85 18902
cannam@85 18903 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cannam@85 18904 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
cannam@85 18905 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
cannam@85 18906 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cannam@85 18907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cannam@85 18908 which seems to be undefined. Please make sure it is defined" >&5
cannam@85 18909 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cannam@85 18910 which seems to be undefined. Please make sure it is defined" >&2;}
cannam@85 18911
cannam@85 18912 rm -f "$ac_tmp/stdin"
cannam@85 18913 case $ac_file in
cannam@85 18914 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
cannam@85 18915 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cannam@85 18916 esac \
cannam@85 18917 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@85 18918 ;;
cannam@85 18919 :H)
cannam@85 18920 #
cannam@85 18921 # CONFIG_HEADER
cannam@85 18922 #
cannam@85 18923 if test x"$ac_file" != x-; then
cannam@85 18924 {
cannam@85 18925 $as_echo "/* $configure_input */" \
cannam@85 18926 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
cannam@85 18927 } >"$ac_tmp/config.h" \
cannam@85 18928 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@85 18929 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cannam@85 18930 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cannam@85 18931 $as_echo "$as_me: $ac_file is unchanged" >&6;}
cannam@85 18932 else
cannam@85 18933 rm -f "$ac_file"
cannam@85 18934 mv "$ac_tmp/config.h" "$ac_file" \
cannam@85 18935 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@85 18936 fi
cannam@85 18937 else
cannam@85 18938 $as_echo "/* $configure_input */" \
cannam@85 18939 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cannam@85 18940 || as_fn_error $? "could not create -" "$LINENO" 5
cannam@85 18941 fi
cannam@85 18942 # Compute "$ac_file"'s index in $config_headers.
cannam@85 18943 _am_arg="$ac_file"
cannam@85 18944 _am_stamp_count=1
cannam@85 18945 for _am_header in $config_headers :; do
cannam@85 18946 case $_am_header in
cannam@85 18947 $_am_arg | $_am_arg:* )
cannam@85 18948 break ;;
cannam@85 18949 * )
cannam@85 18950 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
cannam@85 18951 esac
cannam@85 18952 done
cannam@85 18953 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
cannam@85 18954 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 18955 X"$_am_arg" : 'X\(//\)[^/]' \| \
cannam@85 18956 X"$_am_arg" : 'X\(//\)$' \| \
cannam@85 18957 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
cannam@85 18958 $as_echo X"$_am_arg" |
cannam@85 18959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@85 18960 s//\1/
cannam@85 18961 q
cannam@85 18962 }
cannam@85 18963 /^X\(\/\/\)[^/].*/{
cannam@85 18964 s//\1/
cannam@85 18965 q
cannam@85 18966 }
cannam@85 18967 /^X\(\/\/\)$/{
cannam@85 18968 s//\1/
cannam@85 18969 q
cannam@85 18970 }
cannam@85 18971 /^X\(\/\).*/{
cannam@85 18972 s//\1/
cannam@85 18973 q
cannam@85 18974 }
cannam@85 18975 s/.*/./; q'`/stamp-h$_am_stamp_count
cannam@85 18976 ;;
cannam@85 18977
cannam@85 18978 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cannam@85 18979 $as_echo "$as_me: executing $ac_file commands" >&6;}
cannam@85 18980 ;;
cannam@85 18981 esac
cannam@85 18982
cannam@85 18983
cannam@85 18984 case $ac_file$ac_mode in
cannam@85 18985 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cannam@85 18986 # Autoconf 2.62 quotes --file arguments for eval, but not when files
cannam@85 18987 # are listed without --file. Let's play safe and only enable the eval
cannam@85 18988 # if we detect the quoting.
cannam@85 18989 case $CONFIG_FILES in
cannam@85 18990 *\'*) eval set x "$CONFIG_FILES" ;;
cannam@85 18991 *) set x $CONFIG_FILES ;;
cannam@85 18992 esac
cannam@85 18993 shift
cannam@85 18994 for mf
cannam@85 18995 do
cannam@85 18996 # Strip MF so we end up with the name of the file.
cannam@85 18997 mf=`echo "$mf" | sed -e 's/:.*$//'`
cannam@85 18998 # Check whether this is an Automake generated Makefile or not.
cannam@85 18999 # We used to match only the files named `Makefile.in', but
cannam@85 19000 # some people rename them; so instead we look at the file content.
cannam@85 19001 # Grep'ing the first line is not enough: some people post-process
cannam@85 19002 # each Makefile.in and add a new line on top of each file to say so.
cannam@85 19003 # Grep'ing the whole file is not good either: AIX grep has a line
cannam@85 19004 # limit of 2048, but all sed's we know have understand at least 4000.
cannam@85 19005 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
cannam@85 19006 dirpart=`$as_dirname -- "$mf" ||
cannam@85 19007 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 19008 X"$mf" : 'X\(//\)[^/]' \| \
cannam@85 19009 X"$mf" : 'X\(//\)$' \| \
cannam@85 19010 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
cannam@85 19011 $as_echo X"$mf" |
cannam@85 19012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@85 19013 s//\1/
cannam@85 19014 q
cannam@85 19015 }
cannam@85 19016 /^X\(\/\/\)[^/].*/{
cannam@85 19017 s//\1/
cannam@85 19018 q
cannam@85 19019 }
cannam@85 19020 /^X\(\/\/\)$/{
cannam@85 19021 s//\1/
cannam@85 19022 q
cannam@85 19023 }
cannam@85 19024 /^X\(\/\).*/{
cannam@85 19025 s//\1/
cannam@85 19026 q
cannam@85 19027 }
cannam@85 19028 s/.*/./; q'`
cannam@85 19029 else
cannam@85 19030 continue
cannam@85 19031 fi
cannam@85 19032 # Extract the definition of DEPDIR, am__include, and am__quote
cannam@85 19033 # from the Makefile without running `make'.
cannam@85 19034 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
cannam@85 19035 test -z "$DEPDIR" && continue
cannam@85 19036 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cannam@85 19037 test -z "am__include" && continue
cannam@85 19038 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cannam@85 19039 # When using ansi2knr, U may be empty or an underscore; expand it
cannam@85 19040 U=`sed -n 's/^U = //p' < "$mf"`
cannam@85 19041 # Find all dependency output files, they are included files with
cannam@85 19042 # $(DEPDIR) in their names. We invoke sed twice because it is the
cannam@85 19043 # simplest approach to changing $(DEPDIR) to its actual value in the
cannam@85 19044 # expansion.
cannam@85 19045 for file in `sed -n "
cannam@85 19046 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cannam@85 19047 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
cannam@85 19048 # Make sure the directory exists.
cannam@85 19049 test -f "$dirpart/$file" && continue
cannam@85 19050 fdir=`$as_dirname -- "$file" ||
cannam@85 19051 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 19052 X"$file" : 'X\(//\)[^/]' \| \
cannam@85 19053 X"$file" : 'X\(//\)$' \| \
cannam@85 19054 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
cannam@85 19055 $as_echo X"$file" |
cannam@85 19056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@85 19057 s//\1/
cannam@85 19058 q
cannam@85 19059 }
cannam@85 19060 /^X\(\/\/\)[^/].*/{
cannam@85 19061 s//\1/
cannam@85 19062 q
cannam@85 19063 }
cannam@85 19064 /^X\(\/\/\)$/{
cannam@85 19065 s//\1/
cannam@85 19066 q
cannam@85 19067 }
cannam@85 19068 /^X\(\/\).*/{
cannam@85 19069 s//\1/
cannam@85 19070 q
cannam@85 19071 }
cannam@85 19072 s/.*/./; q'`
cannam@85 19073 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cannam@85 19074 # echo "creating $dirpart/$file"
cannam@85 19075 echo '# dummy' > "$dirpart/$file"
cannam@85 19076 done
cannam@85 19077 done
cannam@85 19078 }
cannam@85 19079 ;;
cannam@85 19080 "libtool":C)
cannam@85 19081
cannam@85 19082 # See if we are running on zsh, and set the options which allow our
cannam@85 19083 # commands through without removal of \ escapes.
cannam@85 19084 if test -n "${ZSH_VERSION+set}" ; then
cannam@85 19085 setopt NO_GLOB_SUBST
cannam@85 19086 fi
cannam@85 19087
cannam@85 19088 cfgfile="${ofile}T"
cannam@85 19089 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
cannam@85 19090 $RM "$cfgfile"
cannam@85 19091
cannam@85 19092 cat <<_LT_EOF >> "$cfgfile"
cannam@85 19093 #! $SHELL
cannam@85 19094
cannam@85 19095 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
cannam@85 19096 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
cannam@85 19097 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
cannam@85 19098 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
cannam@85 19099 #
cannam@85 19100 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cannam@85 19101 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
cannam@85 19102 # Inc.
cannam@85 19103 # Written by Gordon Matzigkeit, 1996
cannam@85 19104 #
cannam@85 19105 # This file is part of GNU Libtool.
cannam@85 19106 #
cannam@85 19107 # GNU Libtool is free software; you can redistribute it and/or
cannam@85 19108 # modify it under the terms of the GNU General Public License as
cannam@85 19109 # published by the Free Software Foundation; either version 2 of
cannam@85 19110 # the License, or (at your option) any later version.
cannam@85 19111 #
cannam@85 19112 # As a special exception to the GNU General Public License,
cannam@85 19113 # if you distribute this file as part of a program or library that
cannam@85 19114 # is built using GNU Libtool, you may include this file under the
cannam@85 19115 # same distribution terms that you use for the rest of that program.
cannam@85 19116 #
cannam@85 19117 # GNU Libtool is distributed in the hope that it will be useful,
cannam@85 19118 # but WITHOUT ANY WARRANTY; without even the implied warranty of
cannam@85 19119 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cannam@85 19120 # GNU General Public License for more details.
cannam@85 19121 #
cannam@85 19122 # You should have received a copy of the GNU General Public License
cannam@85 19123 # along with GNU Libtool; see the file COPYING. If not, a copy
cannam@85 19124 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
cannam@85 19125 # obtained by writing to the Free Software Foundation, Inc.,
cannam@85 19126 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
cannam@85 19127
cannam@85 19128
cannam@85 19129 # The names of the tagged configurations supported by this script.
cannam@85 19130 available_tags="CXX RC "
cannam@85 19131
cannam@85 19132 # ### BEGIN LIBTOOL CONFIG
cannam@85 19133
cannam@85 19134 # Which release of libtool.m4 was used?
cannam@85 19135 macro_version=$macro_version
cannam@85 19136 macro_revision=$macro_revision
cannam@85 19137
cannam@85 19138 # Whether or not to build shared libraries.
cannam@85 19139 build_libtool_libs=$enable_shared
cannam@85 19140
cannam@85 19141 # Whether or not to build static libraries.
cannam@85 19142 build_old_libs=$enable_static
cannam@85 19143
cannam@85 19144 # What type of objects to build.
cannam@85 19145 pic_mode=$pic_mode
cannam@85 19146
cannam@85 19147 # Whether or not to optimize for fast installation.
cannam@85 19148 fast_install=$enable_fast_install
cannam@85 19149
cannam@85 19150 # Shell to use when invoking shell scripts.
cannam@85 19151 SHELL=$lt_SHELL
cannam@85 19152
cannam@85 19153 # An echo program that protects backslashes.
cannam@85 19154 ECHO=$lt_ECHO
cannam@85 19155
cannam@85 19156 # The host system.
cannam@85 19157 host_alias=$host_alias
cannam@85 19158 host=$host
cannam@85 19159 host_os=$host_os
cannam@85 19160
cannam@85 19161 # The build system.
cannam@85 19162 build_alias=$build_alias
cannam@85 19163 build=$build
cannam@85 19164 build_os=$build_os
cannam@85 19165
cannam@85 19166 # A sed program that does not truncate output.
cannam@85 19167 SED=$lt_SED
cannam@85 19168
cannam@85 19169 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
cannam@85 19170 Xsed="\$SED -e 1s/^X//"
cannam@85 19171
cannam@85 19172 # A grep program that handles long lines.
cannam@85 19173 GREP=$lt_GREP
cannam@85 19174
cannam@85 19175 # An ERE matcher.
cannam@85 19176 EGREP=$lt_EGREP
cannam@85 19177
cannam@85 19178 # A literal string matcher.
cannam@85 19179 FGREP=$lt_FGREP
cannam@85 19180
cannam@85 19181 # A BSD- or MS-compatible name lister.
cannam@85 19182 NM=$lt_NM
cannam@85 19183
cannam@85 19184 # Whether we need soft or hard links.
cannam@85 19185 LN_S=$lt_LN_S
cannam@85 19186
cannam@85 19187 # What is the maximum length of a command?
cannam@85 19188 max_cmd_len=$max_cmd_len
cannam@85 19189
cannam@85 19190 # Object file suffix (normally "o").
cannam@85 19191 objext=$ac_objext
cannam@85 19192
cannam@85 19193 # Executable file suffix (normally "").
cannam@85 19194 exeext=$exeext
cannam@85 19195
cannam@85 19196 # whether the shell understands "unset".
cannam@85 19197 lt_unset=$lt_unset
cannam@85 19198
cannam@85 19199 # turn spaces into newlines.
cannam@85 19200 SP2NL=$lt_lt_SP2NL
cannam@85 19201
cannam@85 19202 # turn newlines into spaces.
cannam@85 19203 NL2SP=$lt_lt_NL2SP
cannam@85 19204
cannam@85 19205 # convert \$build file names to \$host format.
cannam@85 19206 to_host_file_cmd=$lt_cv_to_host_file_cmd
cannam@85 19207
cannam@85 19208 # convert \$build files to toolchain format.
cannam@85 19209 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
cannam@85 19210
cannam@85 19211 # An object symbol dumper.
cannam@85 19212 OBJDUMP=$lt_OBJDUMP
cannam@85 19213
cannam@85 19214 # Method to check whether dependent libraries are shared objects.
cannam@85 19215 deplibs_check_method=$lt_deplibs_check_method
cannam@85 19216
cannam@85 19217 # Command to use when deplibs_check_method = "file_magic".
cannam@85 19218 file_magic_cmd=$lt_file_magic_cmd
cannam@85 19219
cannam@85 19220 # How to find potential files when deplibs_check_method = "file_magic".
cannam@85 19221 file_magic_glob=$lt_file_magic_glob
cannam@85 19222
cannam@85 19223 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
cannam@85 19224 want_nocaseglob=$lt_want_nocaseglob
cannam@85 19225
cannam@85 19226 # DLL creation program.
cannam@85 19227 DLLTOOL=$lt_DLLTOOL
cannam@85 19228
cannam@85 19229 # Command to associate shared and link libraries.
cannam@85 19230 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
cannam@85 19231
cannam@85 19232 # The archiver.
cannam@85 19233 AR=$lt_AR
cannam@85 19234
cannam@85 19235 # Flags to create an archive.
cannam@85 19236 AR_FLAGS=$lt_AR_FLAGS
cannam@85 19237
cannam@85 19238 # How to feed a file listing to the archiver.
cannam@85 19239 archiver_list_spec=$lt_archiver_list_spec
cannam@85 19240
cannam@85 19241 # A symbol stripping program.
cannam@85 19242 STRIP=$lt_STRIP
cannam@85 19243
cannam@85 19244 # Commands used to install an old-style archive.
cannam@85 19245 RANLIB=$lt_RANLIB
cannam@85 19246 old_postinstall_cmds=$lt_old_postinstall_cmds
cannam@85 19247 old_postuninstall_cmds=$lt_old_postuninstall_cmds
cannam@85 19248
cannam@85 19249 # Whether to use a lock for old archive extraction.
cannam@85 19250 lock_old_archive_extraction=$lock_old_archive_extraction
cannam@85 19251
cannam@85 19252 # A C compiler.
cannam@85 19253 LTCC=$lt_CC
cannam@85 19254
cannam@85 19255 # LTCC compiler flags.
cannam@85 19256 LTCFLAGS=$lt_CFLAGS
cannam@85 19257
cannam@85 19258 # Take the output of nm and produce a listing of raw symbols and C names.
cannam@85 19259 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
cannam@85 19260
cannam@85 19261 # Transform the output of nm in a proper C declaration.
cannam@85 19262 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
cannam@85 19263
cannam@85 19264 # Transform the output of nm in a C name address pair.
cannam@85 19265 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
cannam@85 19266
cannam@85 19267 # Transform the output of nm in a C name address pair when lib prefix is needed.
cannam@85 19268 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
cannam@85 19269
cannam@85 19270 # Specify filename containing input files for \$NM.
cannam@85 19271 nm_file_list_spec=$lt_nm_file_list_spec
cannam@85 19272
cannam@85 19273 # The root where to search for dependent libraries,and in which our libraries should be installed.
cannam@85 19274 lt_sysroot=$lt_sysroot
cannam@85 19275
cannam@85 19276 # The name of the directory that contains temporary libtool files.
cannam@85 19277 objdir=$objdir
cannam@85 19278
cannam@85 19279 # Used to examine libraries when file_magic_cmd begins with "file".
cannam@85 19280 MAGIC_CMD=$MAGIC_CMD
cannam@85 19281
cannam@85 19282 # Must we lock files when doing compilation?
cannam@85 19283 need_locks=$lt_need_locks
cannam@85 19284
cannam@85 19285 # Manifest tool.
cannam@85 19286 MANIFEST_TOOL=$lt_MANIFEST_TOOL
cannam@85 19287
cannam@85 19288 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
cannam@85 19289 DSYMUTIL=$lt_DSYMUTIL
cannam@85 19290
cannam@85 19291 # Tool to change global to local symbols on Mac OS X.
cannam@85 19292 NMEDIT=$lt_NMEDIT
cannam@85 19293
cannam@85 19294 # Tool to manipulate fat objects and archives on Mac OS X.
cannam@85 19295 LIPO=$lt_LIPO
cannam@85 19296
cannam@85 19297 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
cannam@85 19298 OTOOL=$lt_OTOOL
cannam@85 19299
cannam@85 19300 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
cannam@85 19301 OTOOL64=$lt_OTOOL64
cannam@85 19302
cannam@85 19303 # Old archive suffix (normally "a").
cannam@85 19304 libext=$libext
cannam@85 19305
cannam@85 19306 # Shared library suffix (normally ".so").
cannam@85 19307 shrext_cmds=$lt_shrext_cmds
cannam@85 19308
cannam@85 19309 # The commands to extract the exported symbol list from a shared archive.
cannam@85 19310 extract_expsyms_cmds=$lt_extract_expsyms_cmds
cannam@85 19311
cannam@85 19312 # Variables whose values should be saved in libtool wrapper scripts and
cannam@85 19313 # restored at link time.
cannam@85 19314 variables_saved_for_relink=$lt_variables_saved_for_relink
cannam@85 19315
cannam@85 19316 # Do we need the "lib" prefix for modules?
cannam@85 19317 need_lib_prefix=$need_lib_prefix
cannam@85 19318
cannam@85 19319 # Do we need a version for libraries?
cannam@85 19320 need_version=$need_version
cannam@85 19321
cannam@85 19322 # Library versioning type.
cannam@85 19323 version_type=$version_type
cannam@85 19324
cannam@85 19325 # Shared library runtime path variable.
cannam@85 19326 runpath_var=$runpath_var
cannam@85 19327
cannam@85 19328 # Shared library path variable.
cannam@85 19329 shlibpath_var=$shlibpath_var
cannam@85 19330
cannam@85 19331 # Is shlibpath searched before the hard-coded library search path?
cannam@85 19332 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
cannam@85 19333
cannam@85 19334 # Format of library name prefix.
cannam@85 19335 libname_spec=$lt_libname_spec
cannam@85 19336
cannam@85 19337 # List of archive names. First name is the real one, the rest are links.
cannam@85 19338 # The last name is the one that the linker finds with -lNAME
cannam@85 19339 library_names_spec=$lt_library_names_spec
cannam@85 19340
cannam@85 19341 # The coded name of the library, if different from the real name.
cannam@85 19342 soname_spec=$lt_soname_spec
cannam@85 19343
cannam@85 19344 # Permission mode override for installation of shared libraries.
cannam@85 19345 install_override_mode=$lt_install_override_mode
cannam@85 19346
cannam@85 19347 # Command to use after installation of a shared archive.
cannam@85 19348 postinstall_cmds=$lt_postinstall_cmds
cannam@85 19349
cannam@85 19350 # Command to use after uninstallation of a shared archive.
cannam@85 19351 postuninstall_cmds=$lt_postuninstall_cmds
cannam@85 19352
cannam@85 19353 # Commands used to finish a libtool library installation in a directory.
cannam@85 19354 finish_cmds=$lt_finish_cmds
cannam@85 19355
cannam@85 19356 # As "finish_cmds", except a single script fragment to be evaled but
cannam@85 19357 # not shown.
cannam@85 19358 finish_eval=$lt_finish_eval
cannam@85 19359
cannam@85 19360 # Whether we should hardcode library paths into libraries.
cannam@85 19361 hardcode_into_libs=$hardcode_into_libs
cannam@85 19362
cannam@85 19363 # Compile-time system search path for libraries.
cannam@85 19364 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
cannam@85 19365
cannam@85 19366 # Run-time system search path for libraries.
cannam@85 19367 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
cannam@85 19368
cannam@85 19369 # Whether dlopen is supported.
cannam@85 19370 dlopen_support=$enable_dlopen
cannam@85 19371
cannam@85 19372 # Whether dlopen of programs is supported.
cannam@85 19373 dlopen_self=$enable_dlopen_self
cannam@85 19374
cannam@85 19375 # Whether dlopen of statically linked programs is supported.
cannam@85 19376 dlopen_self_static=$enable_dlopen_self_static
cannam@85 19377
cannam@85 19378 # Commands to strip libraries.
cannam@85 19379 old_striplib=$lt_old_striplib
cannam@85 19380 striplib=$lt_striplib
cannam@85 19381
cannam@85 19382
cannam@85 19383 # The linker used to build libraries.
cannam@85 19384 LD=$lt_LD
cannam@85 19385
cannam@85 19386 # How to create reloadable object files.
cannam@85 19387 reload_flag=$lt_reload_flag
cannam@85 19388 reload_cmds=$lt_reload_cmds
cannam@85 19389
cannam@85 19390 # Commands used to build an old-style archive.
cannam@85 19391 old_archive_cmds=$lt_old_archive_cmds
cannam@85 19392
cannam@85 19393 # A language specific compiler.
cannam@85 19394 CC=$lt_compiler
cannam@85 19395
cannam@85 19396 # Is the compiler the GNU compiler?
cannam@85 19397 with_gcc=$GCC
cannam@85 19398
cannam@85 19399 # Compiler flag to turn off builtin functions.
cannam@85 19400 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
cannam@85 19401
cannam@85 19402 # Additional compiler flags for building library objects.
cannam@85 19403 pic_flag=$lt_lt_prog_compiler_pic
cannam@85 19404
cannam@85 19405 # How to pass a linker flag through the compiler.
cannam@85 19406 wl=$lt_lt_prog_compiler_wl
cannam@85 19407
cannam@85 19408 # Compiler flag to prevent dynamic linking.
cannam@85 19409 link_static_flag=$lt_lt_prog_compiler_static
cannam@85 19410
cannam@85 19411 # Does compiler simultaneously support -c and -o options?
cannam@85 19412 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
cannam@85 19413
cannam@85 19414 # Whether or not to add -lc for building shared libraries.
cannam@85 19415 build_libtool_need_lc=$archive_cmds_need_lc
cannam@85 19416
cannam@85 19417 # Whether or not to disallow shared libs when runtime libs are static.
cannam@85 19418 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
cannam@85 19419
cannam@85 19420 # Compiler flag to allow reflexive dlopens.
cannam@85 19421 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
cannam@85 19422
cannam@85 19423 # Compiler flag to generate shared objects directly from archives.
cannam@85 19424 whole_archive_flag_spec=$lt_whole_archive_flag_spec
cannam@85 19425
cannam@85 19426 # Whether the compiler copes with passing no objects directly.
cannam@85 19427 compiler_needs_object=$lt_compiler_needs_object
cannam@85 19428
cannam@85 19429 # Create an old-style archive from a shared archive.
cannam@85 19430 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
cannam@85 19431
cannam@85 19432 # Create a temporary old-style archive to link instead of a shared archive.
cannam@85 19433 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
cannam@85 19434
cannam@85 19435 # Commands used to build a shared archive.
cannam@85 19436 archive_cmds=$lt_archive_cmds
cannam@85 19437 archive_expsym_cmds=$lt_archive_expsym_cmds
cannam@85 19438
cannam@85 19439 # Commands used to build a loadable module if different from building
cannam@85 19440 # a shared archive.
cannam@85 19441 module_cmds=$lt_module_cmds
cannam@85 19442 module_expsym_cmds=$lt_module_expsym_cmds
cannam@85 19443
cannam@85 19444 # Whether we are building with GNU ld or not.
cannam@85 19445 with_gnu_ld=$lt_with_gnu_ld
cannam@85 19446
cannam@85 19447 # Flag that allows shared libraries with undefined symbols to be built.
cannam@85 19448 allow_undefined_flag=$lt_allow_undefined_flag
cannam@85 19449
cannam@85 19450 # Flag that enforces no undefined symbols.
cannam@85 19451 no_undefined_flag=$lt_no_undefined_flag
cannam@85 19452
cannam@85 19453 # Flag to hardcode \$libdir into a binary during linking.
cannam@85 19454 # This must work even if \$libdir does not exist
cannam@85 19455 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
cannam@85 19456
cannam@85 19457 # If ld is used when linking, flag to hardcode \$libdir into a binary
cannam@85 19458 # during linking. This must work even if \$libdir does not exist.
cannam@85 19459 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
cannam@85 19460
cannam@85 19461 # Whether we need a single "-rpath" flag with a separated argument.
cannam@85 19462 hardcode_libdir_separator=$lt_hardcode_libdir_separator
cannam@85 19463
cannam@85 19464 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
cannam@85 19465 # DIR into the resulting binary.
cannam@85 19466 hardcode_direct=$hardcode_direct
cannam@85 19467
cannam@85 19468 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
cannam@85 19469 # DIR into the resulting binary and the resulting library dependency is
cannam@85 19470 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
cannam@85 19471 # library is relocated.
cannam@85 19472 hardcode_direct_absolute=$hardcode_direct_absolute
cannam@85 19473
cannam@85 19474 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
cannam@85 19475 # into the resulting binary.
cannam@85 19476 hardcode_minus_L=$hardcode_minus_L
cannam@85 19477
cannam@85 19478 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
cannam@85 19479 # into the resulting binary.
cannam@85 19480 hardcode_shlibpath_var=$hardcode_shlibpath_var
cannam@85 19481
cannam@85 19482 # Set to "yes" if building a shared library automatically hardcodes DIR
cannam@85 19483 # into the library and all subsequent libraries and executables linked
cannam@85 19484 # against it.
cannam@85 19485 hardcode_automatic=$hardcode_automatic
cannam@85 19486
cannam@85 19487 # Set to yes if linker adds runtime paths of dependent libraries
cannam@85 19488 # to runtime path list.
cannam@85 19489 inherit_rpath=$inherit_rpath
cannam@85 19490
cannam@85 19491 # Whether libtool must link a program against all its dependency libraries.
cannam@85 19492 link_all_deplibs=$link_all_deplibs
cannam@85 19493
cannam@85 19494 # Set to "yes" if exported symbols are required.
cannam@85 19495 always_export_symbols=$always_export_symbols
cannam@85 19496
cannam@85 19497 # The commands to list exported symbols.
cannam@85 19498 export_symbols_cmds=$lt_export_symbols_cmds
cannam@85 19499
cannam@85 19500 # Symbols that should not be listed in the preloaded symbols.
cannam@85 19501 exclude_expsyms=$lt_exclude_expsyms
cannam@85 19502
cannam@85 19503 # Symbols that must always be exported.
cannam@85 19504 include_expsyms=$lt_include_expsyms
cannam@85 19505
cannam@85 19506 # Commands necessary for linking programs (against libraries) with templates.
cannam@85 19507 prelink_cmds=$lt_prelink_cmds
cannam@85 19508
cannam@85 19509 # Commands necessary for finishing linking programs.
cannam@85 19510 postlink_cmds=$lt_postlink_cmds
cannam@85 19511
cannam@85 19512 # Specify filename containing input files.
cannam@85 19513 file_list_spec=$lt_file_list_spec
cannam@85 19514
cannam@85 19515 # How to hardcode a shared library path into an executable.
cannam@85 19516 hardcode_action=$hardcode_action
cannam@85 19517
cannam@85 19518 # The directories searched by this compiler when creating a shared library.
cannam@85 19519 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
cannam@85 19520
cannam@85 19521 # Dependencies to place before and after the objects being linked to
cannam@85 19522 # create a shared library.
cannam@85 19523 predep_objects=$lt_predep_objects
cannam@85 19524 postdep_objects=$lt_postdep_objects
cannam@85 19525 predeps=$lt_predeps
cannam@85 19526 postdeps=$lt_postdeps
cannam@85 19527
cannam@85 19528 # The library search path used internally by the compiler when linking
cannam@85 19529 # a shared library.
cannam@85 19530 compiler_lib_search_path=$lt_compiler_lib_search_path
cannam@85 19531
cannam@85 19532 # ### END LIBTOOL CONFIG
cannam@85 19533
cannam@85 19534 _LT_EOF
cannam@85 19535
cannam@85 19536 case $host_os in
cannam@85 19537 aix3*)
cannam@85 19538 cat <<\_LT_EOF >> "$cfgfile"
cannam@85 19539 # AIX sometimes has problems with the GCC collect2 program. For some
cannam@85 19540 # reason, if we set the COLLECT_NAMES environment variable, the problems
cannam@85 19541 # vanish in a puff of smoke.
cannam@85 19542 if test "X${COLLECT_NAMES+set}" != Xset; then
cannam@85 19543 COLLECT_NAMES=
cannam@85 19544 export COLLECT_NAMES
cannam@85 19545 fi
cannam@85 19546 _LT_EOF
cannam@85 19547 ;;
cannam@85 19548 esac
cannam@85 19549
cannam@85 19550
cannam@85 19551 ltmain="$ac_aux_dir/ltmain.sh"
cannam@85 19552
cannam@85 19553
cannam@85 19554 # We use sed instead of cat because bash on DJGPP gets confused if
cannam@85 19555 # if finds mixed CR/LF and LF-only lines. Since sed operates in
cannam@85 19556 # text mode, it properly converts lines to CR/LF. This bash problem
cannam@85 19557 # is reportedly fixed, but why not run on old versions too?
cannam@85 19558 sed '$q' "$ltmain" >> "$cfgfile" \
cannam@85 19559 || (rm -f "$cfgfile"; exit 1)
cannam@85 19560
cannam@85 19561 if test x"$xsi_shell" = xyes; then
cannam@85 19562 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
cannam@85 19563 func_dirname ()\
cannam@85 19564 {\
cannam@85 19565 \ case ${1} in\
cannam@85 19566 \ */*) func_dirname_result="${1%/*}${2}" ;;\
cannam@85 19567 \ * ) func_dirname_result="${3}" ;;\
cannam@85 19568 \ esac\
cannam@85 19569 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
cannam@85 19570 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@85 19571 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@85 19572 test 0 -eq $? || _lt_function_replace_fail=:
cannam@85 19573
cannam@85 19574
cannam@85 19575 sed -e '/^func_basename ()$/,/^} # func_basename /c\
cannam@85 19576 func_basename ()\
cannam@85 19577 {\
cannam@85 19578 \ func_basename_result="${1##*/}"\
cannam@85 19579 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
cannam@85 19580 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@85 19581 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@85 19582 test 0 -eq $? || _lt_function_replace_fail=:
cannam@85 19583
cannam@85 19584
cannam@85 19585 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
cannam@85 19586 func_dirname_and_basename ()\
cannam@85 19587 {\
cannam@85 19588 \ case ${1} in\
cannam@85 19589 \ */*) func_dirname_result="${1%/*}${2}" ;;\
cannam@85 19590 \ * ) func_dirname_result="${3}" ;;\
cannam@85 19591 \ esac\
cannam@85 19592 \ func_basename_result="${1##*/}"\
cannam@85 19593 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
cannam@85 19594 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@85 19595 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@85 19596 test 0 -eq $? || _lt_function_replace_fail=:
cannam@85 19597
cannam@85 19598
cannam@85 19599 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
cannam@85 19600 func_stripname ()\
cannam@85 19601 {\
cannam@85 19602 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
cannam@85 19603 \ # positional parameters, so assign one to ordinary parameter first.\
cannam@85 19604 \ func_stripname_result=${3}\
cannam@85 19605 \ func_stripname_result=${func_stripname_result#"${1}"}\
cannam@85 19606 \ func_stripname_result=${func_stripname_result%"${2}"}\
cannam@85 19607 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
cannam@85 19608 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@85 19609 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@85 19610 test 0 -eq $? || _lt_function_replace_fail=:
cannam@85 19611
cannam@85 19612
cannam@85 19613 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
cannam@85 19614 func_split_long_opt ()\
cannam@85 19615 {\
cannam@85 19616 \ func_split_long_opt_name=${1%%=*}\
cannam@85 19617 \ func_split_long_opt_arg=${1#*=}\
cannam@85 19618 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
cannam@85 19619 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@85 19620 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@85 19621 test 0 -eq $? || _lt_function_replace_fail=:
cannam@85 19622
cannam@85 19623
cannam@85 19624 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
cannam@85 19625 func_split_short_opt ()\
cannam@85 19626 {\
cannam@85 19627 \ func_split_short_opt_arg=${1#??}\
cannam@85 19628 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
cannam@85 19629 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
cannam@85 19630 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@85 19631 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@85 19632 test 0 -eq $? || _lt_function_replace_fail=:
cannam@85 19633
cannam@85 19634
cannam@85 19635 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
cannam@85 19636 func_lo2o ()\
cannam@85 19637 {\
cannam@85 19638 \ case ${1} in\
cannam@85 19639 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
cannam@85 19640 \ *) func_lo2o_result=${1} ;;\
cannam@85 19641 \ esac\
cannam@85 19642 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
cannam@85 19643 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@85 19644 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@85 19645 test 0 -eq $? || _lt_function_replace_fail=:
cannam@85 19646
cannam@85 19647
cannam@85 19648 sed -e '/^func_xform ()$/,/^} # func_xform /c\
cannam@85 19649 func_xform ()\
cannam@85 19650 {\
cannam@85 19651 func_xform_result=${1%.*}.lo\
cannam@85 19652 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
cannam@85 19653 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@85 19654 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@85 19655 test 0 -eq $? || _lt_function_replace_fail=:
cannam@85 19656
cannam@85 19657
cannam@85 19658 sed -e '/^func_arith ()$/,/^} # func_arith /c\
cannam@85 19659 func_arith ()\
cannam@85 19660 {\
cannam@85 19661 func_arith_result=$(( $* ))\
cannam@85 19662 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
cannam@85 19663 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@85 19664 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@85 19665 test 0 -eq $? || _lt_function_replace_fail=:
cannam@85 19666
cannam@85 19667
cannam@85 19668 sed -e '/^func_len ()$/,/^} # func_len /c\
cannam@85 19669 func_len ()\
cannam@85 19670 {\
cannam@85 19671 func_len_result=${#1}\
cannam@85 19672 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
cannam@85 19673 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@85 19674 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@85 19675 test 0 -eq $? || _lt_function_replace_fail=:
cannam@85 19676
cannam@85 19677 fi
cannam@85 19678
cannam@85 19679 if test x"$lt_shell_append" = xyes; then
cannam@85 19680 sed -e '/^func_append ()$/,/^} # func_append /c\
cannam@85 19681 func_append ()\
cannam@85 19682 {\
cannam@85 19683 eval "${1}+=\\${2}"\
cannam@85 19684 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
cannam@85 19685 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@85 19686 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@85 19687 test 0 -eq $? || _lt_function_replace_fail=:
cannam@85 19688
cannam@85 19689
cannam@85 19690 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
cannam@85 19691 func_append_quoted ()\
cannam@85 19692 {\
cannam@85 19693 \ func_quote_for_eval "${2}"\
cannam@85 19694 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
cannam@85 19695 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
cannam@85 19696 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@85 19697 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@85 19698 test 0 -eq $? || _lt_function_replace_fail=:
cannam@85 19699
cannam@85 19700
cannam@85 19701 # Save a `func_append' function call where possible by direct use of '+='
cannam@85 19702 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
cannam@85 19703 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@85 19704 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@85 19705 test 0 -eq $? || _lt_function_replace_fail=:
cannam@85 19706 else
cannam@85 19707 # Save a `func_append' function call even when '+=' is not available
cannam@85 19708 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
cannam@85 19709 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@85 19710 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@85 19711 test 0 -eq $? || _lt_function_replace_fail=:
cannam@85 19712 fi
cannam@85 19713
cannam@85 19714 if test x"$_lt_function_replace_fail" = x":"; then
cannam@85 19715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
cannam@85 19716 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
cannam@85 19717 fi
cannam@85 19718
cannam@85 19719
cannam@85 19720 mv -f "$cfgfile" "$ofile" ||
cannam@85 19721 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
cannam@85 19722 chmod +x "$ofile"
cannam@85 19723
cannam@85 19724
cannam@85 19725 cat <<_LT_EOF >> "$ofile"
cannam@85 19726
cannam@85 19727 # ### BEGIN LIBTOOL TAG CONFIG: CXX
cannam@85 19728
cannam@85 19729 # The linker used to build libraries.
cannam@85 19730 LD=$lt_LD_CXX
cannam@85 19731
cannam@85 19732 # How to create reloadable object files.
cannam@85 19733 reload_flag=$lt_reload_flag_CXX
cannam@85 19734 reload_cmds=$lt_reload_cmds_CXX
cannam@85 19735
cannam@85 19736 # Commands used to build an old-style archive.
cannam@85 19737 old_archive_cmds=$lt_old_archive_cmds_CXX
cannam@85 19738
cannam@85 19739 # A language specific compiler.
cannam@85 19740 CC=$lt_compiler_CXX
cannam@85 19741
cannam@85 19742 # Is the compiler the GNU compiler?
cannam@85 19743 with_gcc=$GCC_CXX
cannam@85 19744
cannam@85 19745 # Compiler flag to turn off builtin functions.
cannam@85 19746 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
cannam@85 19747
cannam@85 19748 # Additional compiler flags for building library objects.
cannam@85 19749 pic_flag=$lt_lt_prog_compiler_pic_CXX
cannam@85 19750
cannam@85 19751 # How to pass a linker flag through the compiler.
cannam@85 19752 wl=$lt_lt_prog_compiler_wl_CXX
cannam@85 19753
cannam@85 19754 # Compiler flag to prevent dynamic linking.
cannam@85 19755 link_static_flag=$lt_lt_prog_compiler_static_CXX
cannam@85 19756
cannam@85 19757 # Does compiler simultaneously support -c and -o options?
cannam@85 19758 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
cannam@85 19759
cannam@85 19760 # Whether or not to add -lc for building shared libraries.
cannam@85 19761 build_libtool_need_lc=$archive_cmds_need_lc_CXX
cannam@85 19762
cannam@85 19763 # Whether or not to disallow shared libs when runtime libs are static.
cannam@85 19764 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
cannam@85 19765
cannam@85 19766 # Compiler flag to allow reflexive dlopens.
cannam@85 19767 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
cannam@85 19768
cannam@85 19769 # Compiler flag to generate shared objects directly from archives.
cannam@85 19770 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
cannam@85 19771
cannam@85 19772 # Whether the compiler copes with passing no objects directly.
cannam@85 19773 compiler_needs_object=$lt_compiler_needs_object_CXX
cannam@85 19774
cannam@85 19775 # Create an old-style archive from a shared archive.
cannam@85 19776 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
cannam@85 19777
cannam@85 19778 # Create a temporary old-style archive to link instead of a shared archive.
cannam@85 19779 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
cannam@85 19780
cannam@85 19781 # Commands used to build a shared archive.
cannam@85 19782 archive_cmds=$lt_archive_cmds_CXX
cannam@85 19783 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
cannam@85 19784
cannam@85 19785 # Commands used to build a loadable module if different from building
cannam@85 19786 # a shared archive.
cannam@85 19787 module_cmds=$lt_module_cmds_CXX
cannam@85 19788 module_expsym_cmds=$lt_module_expsym_cmds_CXX
cannam@85 19789
cannam@85 19790 # Whether we are building with GNU ld or not.
cannam@85 19791 with_gnu_ld=$lt_with_gnu_ld_CXX
cannam@85 19792
cannam@85 19793 # Flag that allows shared libraries with undefined symbols to be built.
cannam@85 19794 allow_undefined_flag=$lt_allow_undefined_flag_CXX
cannam@85 19795
cannam@85 19796 # Flag that enforces no undefined symbols.
cannam@85 19797 no_undefined_flag=$lt_no_undefined_flag_CXX
cannam@85 19798
cannam@85 19799 # Flag to hardcode \$libdir into a binary during linking.
cannam@85 19800 # This must work even if \$libdir does not exist
cannam@85 19801 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
cannam@85 19802
cannam@85 19803 # If ld is used when linking, flag to hardcode \$libdir into a binary
cannam@85 19804 # during linking. This must work even if \$libdir does not exist.
cannam@85 19805 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
cannam@85 19806
cannam@85 19807 # Whether we need a single "-rpath" flag with a separated argument.
cannam@85 19808 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
cannam@85 19809
cannam@85 19810 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
cannam@85 19811 # DIR into the resulting binary.
cannam@85 19812 hardcode_direct=$hardcode_direct_CXX
cannam@85 19813
cannam@85 19814 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
cannam@85 19815 # DIR into the resulting binary and the resulting library dependency is
cannam@85 19816 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
cannam@85 19817 # library is relocated.
cannam@85 19818 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
cannam@85 19819
cannam@85 19820 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
cannam@85 19821 # into the resulting binary.
cannam@85 19822 hardcode_minus_L=$hardcode_minus_L_CXX
cannam@85 19823
cannam@85 19824 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
cannam@85 19825 # into the resulting binary.
cannam@85 19826 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
cannam@85 19827
cannam@85 19828 # Set to "yes" if building a shared library automatically hardcodes DIR
cannam@85 19829 # into the library and all subsequent libraries and executables linked
cannam@85 19830 # against it.
cannam@85 19831 hardcode_automatic=$hardcode_automatic_CXX
cannam@85 19832
cannam@85 19833 # Set to yes if linker adds runtime paths of dependent libraries
cannam@85 19834 # to runtime path list.
cannam@85 19835 inherit_rpath=$inherit_rpath_CXX
cannam@85 19836
cannam@85 19837 # Whether libtool must link a program against all its dependency libraries.
cannam@85 19838 link_all_deplibs=$link_all_deplibs_CXX
cannam@85 19839
cannam@85 19840 # Set to "yes" if exported symbols are required.
cannam@85 19841 always_export_symbols=$always_export_symbols_CXX
cannam@85 19842
cannam@85 19843 # The commands to list exported symbols.
cannam@85 19844 export_symbols_cmds=$lt_export_symbols_cmds_CXX
cannam@85 19845
cannam@85 19846 # Symbols that should not be listed in the preloaded symbols.
cannam@85 19847 exclude_expsyms=$lt_exclude_expsyms_CXX
cannam@85 19848
cannam@85 19849 # Symbols that must always be exported.
cannam@85 19850 include_expsyms=$lt_include_expsyms_CXX
cannam@85 19851
cannam@85 19852 # Commands necessary for linking programs (against libraries) with templates.
cannam@85 19853 prelink_cmds=$lt_prelink_cmds_CXX
cannam@85 19854
cannam@85 19855 # Commands necessary for finishing linking programs.
cannam@85 19856 postlink_cmds=$lt_postlink_cmds_CXX
cannam@85 19857
cannam@85 19858 # Specify filename containing input files.
cannam@85 19859 file_list_spec=$lt_file_list_spec_CXX
cannam@85 19860
cannam@85 19861 # How to hardcode a shared library path into an executable.
cannam@85 19862 hardcode_action=$hardcode_action_CXX
cannam@85 19863
cannam@85 19864 # The directories searched by this compiler when creating a shared library.
cannam@85 19865 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
cannam@85 19866
cannam@85 19867 # Dependencies to place before and after the objects being linked to
cannam@85 19868 # create a shared library.
cannam@85 19869 predep_objects=$lt_predep_objects_CXX
cannam@85 19870 postdep_objects=$lt_postdep_objects_CXX
cannam@85 19871 predeps=$lt_predeps_CXX
cannam@85 19872 postdeps=$lt_postdeps_CXX
cannam@85 19873
cannam@85 19874 # The library search path used internally by the compiler when linking
cannam@85 19875 # a shared library.
cannam@85 19876 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
cannam@85 19877
cannam@85 19878 # ### END LIBTOOL TAG CONFIG: CXX
cannam@85 19879 _LT_EOF
cannam@85 19880
cannam@85 19881
cannam@85 19882 cat <<_LT_EOF >> "$ofile"
cannam@85 19883
cannam@85 19884 # ### BEGIN LIBTOOL TAG CONFIG: RC
cannam@85 19885
cannam@85 19886 # The linker used to build libraries.
cannam@85 19887 LD=$lt_LD_RC
cannam@85 19888
cannam@85 19889 # How to create reloadable object files.
cannam@85 19890 reload_flag=$lt_reload_flag_RC
cannam@85 19891 reload_cmds=$lt_reload_cmds_RC
cannam@85 19892
cannam@85 19893 # Commands used to build an old-style archive.
cannam@85 19894 old_archive_cmds=$lt_old_archive_cmds_RC
cannam@85 19895
cannam@85 19896 # A language specific compiler.
cannam@85 19897 CC=$lt_compiler_RC
cannam@85 19898
cannam@85 19899 # Is the compiler the GNU compiler?
cannam@85 19900 with_gcc=$GCC_RC
cannam@85 19901
cannam@85 19902 # Compiler flag to turn off builtin functions.
cannam@85 19903 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
cannam@85 19904
cannam@85 19905 # Additional compiler flags for building library objects.
cannam@85 19906 pic_flag=$lt_lt_prog_compiler_pic_RC
cannam@85 19907
cannam@85 19908 # How to pass a linker flag through the compiler.
cannam@85 19909 wl=$lt_lt_prog_compiler_wl_RC
cannam@85 19910
cannam@85 19911 # Compiler flag to prevent dynamic linking.
cannam@85 19912 link_static_flag=$lt_lt_prog_compiler_static_RC
cannam@85 19913
cannam@85 19914 # Does compiler simultaneously support -c and -o options?
cannam@85 19915 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
cannam@85 19916
cannam@85 19917 # Whether or not to add -lc for building shared libraries.
cannam@85 19918 build_libtool_need_lc=$archive_cmds_need_lc_RC
cannam@85 19919
cannam@85 19920 # Whether or not to disallow shared libs when runtime libs are static.
cannam@85 19921 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
cannam@85 19922
cannam@85 19923 # Compiler flag to allow reflexive dlopens.
cannam@85 19924 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
cannam@85 19925
cannam@85 19926 # Compiler flag to generate shared objects directly from archives.
cannam@85 19927 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
cannam@85 19928
cannam@85 19929 # Whether the compiler copes with passing no objects directly.
cannam@85 19930 compiler_needs_object=$lt_compiler_needs_object_RC
cannam@85 19931
cannam@85 19932 # Create an old-style archive from a shared archive.
cannam@85 19933 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
cannam@85 19934
cannam@85 19935 # Create a temporary old-style archive to link instead of a shared archive.
cannam@85 19936 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
cannam@85 19937
cannam@85 19938 # Commands used to build a shared archive.
cannam@85 19939 archive_cmds=$lt_archive_cmds_RC
cannam@85 19940 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
cannam@85 19941
cannam@85 19942 # Commands used to build a loadable module if different from building
cannam@85 19943 # a shared archive.
cannam@85 19944 module_cmds=$lt_module_cmds_RC
cannam@85 19945 module_expsym_cmds=$lt_module_expsym_cmds_RC
cannam@85 19946
cannam@85 19947 # Whether we are building with GNU ld or not.
cannam@85 19948 with_gnu_ld=$lt_with_gnu_ld_RC
cannam@85 19949
cannam@85 19950 # Flag that allows shared libraries with undefined symbols to be built.
cannam@85 19951 allow_undefined_flag=$lt_allow_undefined_flag_RC
cannam@85 19952
cannam@85 19953 # Flag that enforces no undefined symbols.
cannam@85 19954 no_undefined_flag=$lt_no_undefined_flag_RC
cannam@85 19955
cannam@85 19956 # Flag to hardcode \$libdir into a binary during linking.
cannam@85 19957 # This must work even if \$libdir does not exist
cannam@85 19958 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
cannam@85 19959
cannam@85 19960 # If ld is used when linking, flag to hardcode \$libdir into a binary
cannam@85 19961 # during linking. This must work even if \$libdir does not exist.
cannam@85 19962 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
cannam@85 19963
cannam@85 19964 # Whether we need a single "-rpath" flag with a separated argument.
cannam@85 19965 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
cannam@85 19966
cannam@85 19967 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
cannam@85 19968 # DIR into the resulting binary.
cannam@85 19969 hardcode_direct=$hardcode_direct_RC
cannam@85 19970
cannam@85 19971 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
cannam@85 19972 # DIR into the resulting binary and the resulting library dependency is
cannam@85 19973 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
cannam@85 19974 # library is relocated.
cannam@85 19975 hardcode_direct_absolute=$hardcode_direct_absolute_RC
cannam@85 19976
cannam@85 19977 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
cannam@85 19978 # into the resulting binary.
cannam@85 19979 hardcode_minus_L=$hardcode_minus_L_RC
cannam@85 19980
cannam@85 19981 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
cannam@85 19982 # into the resulting binary.
cannam@85 19983 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
cannam@85 19984
cannam@85 19985 # Set to "yes" if building a shared library automatically hardcodes DIR
cannam@85 19986 # into the library and all subsequent libraries and executables linked
cannam@85 19987 # against it.
cannam@85 19988 hardcode_automatic=$hardcode_automatic_RC
cannam@85 19989
cannam@85 19990 # Set to yes if linker adds runtime paths of dependent libraries
cannam@85 19991 # to runtime path list.
cannam@85 19992 inherit_rpath=$inherit_rpath_RC
cannam@85 19993
cannam@85 19994 # Whether libtool must link a program against all its dependency libraries.
cannam@85 19995 link_all_deplibs=$link_all_deplibs_RC
cannam@85 19996
cannam@85 19997 # Set to "yes" if exported symbols are required.
cannam@85 19998 always_export_symbols=$always_export_symbols_RC
cannam@85 19999
cannam@85 20000 # The commands to list exported symbols.
cannam@85 20001 export_symbols_cmds=$lt_export_symbols_cmds_RC
cannam@85 20002
cannam@85 20003 # Symbols that should not be listed in the preloaded symbols.
cannam@85 20004 exclude_expsyms=$lt_exclude_expsyms_RC
cannam@85 20005
cannam@85 20006 # Symbols that must always be exported.
cannam@85 20007 include_expsyms=$lt_include_expsyms_RC
cannam@85 20008
cannam@85 20009 # Commands necessary for linking programs (against libraries) with templates.
cannam@85 20010 prelink_cmds=$lt_prelink_cmds_RC
cannam@85 20011
cannam@85 20012 # Commands necessary for finishing linking programs.
cannam@85 20013 postlink_cmds=$lt_postlink_cmds_RC
cannam@85 20014
cannam@85 20015 # Specify filename containing input files.
cannam@85 20016 file_list_spec=$lt_file_list_spec_RC
cannam@85 20017
cannam@85 20018 # How to hardcode a shared library path into an executable.
cannam@85 20019 hardcode_action=$hardcode_action_RC
cannam@85 20020
cannam@85 20021 # The directories searched by this compiler when creating a shared library.
cannam@85 20022 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
cannam@85 20023
cannam@85 20024 # Dependencies to place before and after the objects being linked to
cannam@85 20025 # create a shared library.
cannam@85 20026 predep_objects=$lt_predep_objects_RC
cannam@85 20027 postdep_objects=$lt_postdep_objects_RC
cannam@85 20028 predeps=$lt_predeps_RC
cannam@85 20029 postdeps=$lt_postdeps_RC
cannam@85 20030
cannam@85 20031 # The library search path used internally by the compiler when linking
cannam@85 20032 # a shared library.
cannam@85 20033 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
cannam@85 20034
cannam@85 20035 # ### END LIBTOOL TAG CONFIG: RC
cannam@85 20036 _LT_EOF
cannam@85 20037
cannam@85 20038 ;;
cannam@85 20039
cannam@85 20040 esac
cannam@85 20041 done # for ac_tag
cannam@85 20042
cannam@85 20043
cannam@85 20044 as_fn_exit 0
cannam@85 20045 _ACEOF
cannam@85 20046 ac_clean_files=$ac_clean_files_save
cannam@85 20047
cannam@85 20048 test $ac_write_fail = 0 ||
cannam@85 20049 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cannam@85 20050
cannam@85 20051
cannam@85 20052 # configure is writing to config.log, and then calls config.status.
cannam@85 20053 # config.status does its own redirection, appending to config.log.
cannam@85 20054 # Unfortunately, on DOS this fails, as config.log is still kept open
cannam@85 20055 # by configure, so config.status won't be able to write to it; its
cannam@85 20056 # output is simply discarded. So we exec the FD to /dev/null,
cannam@85 20057 # effectively closing config.log, so it can be properly (re)opened and
cannam@85 20058 # appended to by config.status. When coming back to configure, we
cannam@85 20059 # need to make the FD available again.
cannam@85 20060 if test "$no_create" != yes; then
cannam@85 20061 ac_cs_success=:
cannam@85 20062 ac_config_status_args=
cannam@85 20063 test "$silent" = yes &&
cannam@85 20064 ac_config_status_args="$ac_config_status_args --quiet"
cannam@85 20065 exec 5>/dev/null
cannam@85 20066 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
cannam@85 20067 exec 5>>config.log
cannam@85 20068 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
cannam@85 20069 # would make configure fail if this is the last instruction.
cannam@85 20070 $ac_cs_success || as_fn_exit 1
cannam@85 20071 fi
cannam@85 20072 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cannam@85 20073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cannam@85 20074 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
cannam@85 20075 fi
cannam@85 20076
cannam@85 20077
cannam@85 20078 #====================================================================================
cannam@85 20079
cannam@85 20080 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
cannam@85 20081 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-=-
cannam@85 20082
cannam@85 20083 Configuration summary :
cannam@85 20084
cannam@85 20085 Version : ..................... ${VERSION}
cannam@85 20086
cannam@85 20087 Host CPU : .................... ${host_cpu}
cannam@85 20088 Host Vendor : ................. ${host_vendor}
cannam@85 20089 Host OS : ..................... ${host_os}
cannam@85 20090 " >&5
cannam@85 20091 $as_echo "
cannam@85 20092 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-=-
cannam@85 20093
cannam@85 20094 Configuration summary :
cannam@85 20095
cannam@85 20096 Version : ..................... ${VERSION}
cannam@85 20097
cannam@85 20098 Host CPU : .................... ${host_cpu}
cannam@85 20099 Host Vendor : ................. ${host_vendor}
cannam@85 20100 Host OS : ..................... ${host_os}
cannam@85 20101 " >&6; }
cannam@85 20102
cannam@85 20103 if test x$ac_cv_c_compiler_gnu = xyes ; then
cannam@85 20104 echo -e " Tools :\n"
cannam@85 20105 echo " Compiler is GCC : ............. ${ac_cv_c_compiler_gnu}"
cannam@85 20106 echo " GCC major version : ........... ${GCC_MAJOR_VERSION}"
cannam@85 20107 fi
cannam@85 20108
cannam@85 20109 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
cannam@85 20110 Extra tools required for testing and examples :
cannam@85 20111
cannam@85 20112 Use FFTW : .................... ${ac_cv_fftw3}" >&5
cannam@85 20113 $as_echo "
cannam@85 20114 Extra tools required for testing and examples :
cannam@85 20115
cannam@85 20116 Use FFTW : .................... ${ac_cv_fftw3}" >&6; }
cannam@85 20117
cannam@85 20118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Have libsndfile : ............. ${ac_cv_sndfile}
cannam@85 20119 " >&5
cannam@85 20120 $as_echo " Have libsndfile : ............. ${ac_cv_sndfile}
cannam@85 20121 " >&6; }
cannam@85 20122
cannam@85 20123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Installation directories :
cannam@85 20124
cannam@85 20125 Library directory : ........... ${prefix}/lib
cannam@85 20126 Program directory : ........... ${prefix}/bin
cannam@85 20127 Pkgconfig directory : ......... ${prefix}/lib/pkgconfig
cannam@85 20128 " >&5
cannam@85 20129 $as_echo " Installation directories :
cannam@85 20130
cannam@85 20131 Library directory : ........... ${prefix}/lib
cannam@85 20132 Program directory : ........... ${prefix}/bin
cannam@85 20133 Pkgconfig directory : ......... ${prefix}/lib/pkgconfig
cannam@85 20134 " >&6; }
cannam@85 20135
cannam@85 20136 if test x$prefix != "x/usr" ; then
cannam@85 20137 echo "Compiling some other packages against ${PACKAGE} may require "
cannam@85 20138 echo -e "the addition of \"${prefix}/lib/pkgconfig\" to the "
cannam@85 20139 echo -e "PKG_CONFIG_PATH environment variable.\n"
cannam@85 20140 fi
cannam@85 20141