annotate src/libvorbis-1.3.3/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 98c1576536ae
children
rev   line source
cannam@86 1 #! /bin/sh
cannam@86 2 # Guess values for system-dependent variables and create Makefiles.
cannam@86 3 # Generated by GNU Autoconf 2.68 for libvorbis 1.3.3.
cannam@86 4 #
cannam@86 5 # Report bugs to <vorbis-dev@xiph.org>.
cannam@86 6 #
cannam@86 7 #
cannam@86 8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cannam@86 9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
cannam@86 10 # Foundation, Inc.
cannam@86 11 #
cannam@86 12 #
cannam@86 13 # This configure script is free software; the Free Software Foundation
cannam@86 14 # gives unlimited permission to copy, distribute and modify it.
cannam@86 15 ## -------------------- ##
cannam@86 16 ## M4sh Initialization. ##
cannam@86 17 ## -------------------- ##
cannam@86 18
cannam@86 19 # Be more Bourne compatible
cannam@86 20 DUALCASE=1; export DUALCASE # for MKS sh
cannam@86 21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cannam@86 22 emulate sh
cannam@86 23 NULLCMD=:
cannam@86 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
cannam@86 25 # is contrary to our usage. Disable this feature.
cannam@86 26 alias -g '${1+"$@"}'='"$@"'
cannam@86 27 setopt NO_GLOB_SUBST
cannam@86 28 else
cannam@86 29 case `(set -o) 2>/dev/null` in #(
cannam@86 30 *posix*) :
cannam@86 31 set -o posix ;; #(
cannam@86 32 *) :
cannam@86 33 ;;
cannam@86 34 esac
cannam@86 35 fi
cannam@86 36
cannam@86 37
cannam@86 38 as_nl='
cannam@86 39 '
cannam@86 40 export as_nl
cannam@86 41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
cannam@86 42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@86 43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@86 44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@86 45 # Prefer a ksh shell builtin over an external printf program on Solaris,
cannam@86 46 # but without wasting forks for bash or zsh.
cannam@86 47 if test -z "$BASH_VERSION$ZSH_VERSION" \
cannam@86 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@86 49 as_echo='print -r --'
cannam@86 50 as_echo_n='print -rn --'
cannam@86 51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@86 52 as_echo='printf %s\n'
cannam@86 53 as_echo_n='printf %s'
cannam@86 54 else
cannam@86 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
cannam@86 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
cannam@86 57 as_echo_n='/usr/ucb/echo -n'
cannam@86 58 else
cannam@86 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
cannam@86 60 as_echo_n_body='eval
cannam@86 61 arg=$1;
cannam@86 62 case $arg in #(
cannam@86 63 *"$as_nl"*)
cannam@86 64 expr "X$arg" : "X\\(.*\\)$as_nl";
cannam@86 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
cannam@86 66 esac;
cannam@86 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
cannam@86 68 '
cannam@86 69 export as_echo_n_body
cannam@86 70 as_echo_n='sh -c $as_echo_n_body as_echo'
cannam@86 71 fi
cannam@86 72 export as_echo_body
cannam@86 73 as_echo='sh -c $as_echo_body as_echo'
cannam@86 74 fi
cannam@86 75
cannam@86 76 # The user is always right.
cannam@86 77 if test "${PATH_SEPARATOR+set}" != set; then
cannam@86 78 PATH_SEPARATOR=:
cannam@86 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
cannam@86 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
cannam@86 81 PATH_SEPARATOR=';'
cannam@86 82 }
cannam@86 83 fi
cannam@86 84
cannam@86 85
cannam@86 86 # IFS
cannam@86 87 # We need space, tab and new line, in precisely that order. Quoting is
cannam@86 88 # there to prevent editors from complaining about space-tab.
cannam@86 89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
cannam@86 90 # splitting by setting IFS to empty value.)
cannam@86 91 IFS=" "" $as_nl"
cannam@86 92
cannam@86 93 # Find who we are. Look in the path if we contain no directory separator.
cannam@86 94 as_myself=
cannam@86 95 case $0 in #((
cannam@86 96 *[\\/]* ) as_myself=$0 ;;
cannam@86 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 98 for as_dir in $PATH
cannam@86 99 do
cannam@86 100 IFS=$as_save_IFS
cannam@86 101 test -z "$as_dir" && as_dir=.
cannam@86 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
cannam@86 103 done
cannam@86 104 IFS=$as_save_IFS
cannam@86 105
cannam@86 106 ;;
cannam@86 107 esac
cannam@86 108 # We did not find ourselves, most probably we were run as `sh COMMAND'
cannam@86 109 # in which case we are not to be found in the path.
cannam@86 110 if test "x$as_myself" = x; then
cannam@86 111 as_myself=$0
cannam@86 112 fi
cannam@86 113 if test ! -f "$as_myself"; then
cannam@86 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cannam@86 115 exit 1
cannam@86 116 fi
cannam@86 117
cannam@86 118 # Unset variables that we do not need and which cause bugs (e.g. in
cannam@86 119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
cannam@86 120 # suppresses any "Segmentation fault" message there. '((' could
cannam@86 121 # trigger a bug in pdksh 5.2.14.
cannam@86 122 for as_var in BASH_ENV ENV MAIL MAILPATH
cannam@86 123 do eval test x\${$as_var+set} = xset \
cannam@86 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cannam@86 125 done
cannam@86 126 PS1='$ '
cannam@86 127 PS2='> '
cannam@86 128 PS4='+ '
cannam@86 129
cannam@86 130 # NLS nuisances.
cannam@86 131 LC_ALL=C
cannam@86 132 export LC_ALL
cannam@86 133 LANGUAGE=C
cannam@86 134 export LANGUAGE
cannam@86 135
cannam@86 136 # CDPATH.
cannam@86 137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cannam@86 138
cannam@86 139 if test "x$CONFIG_SHELL" = x; then
cannam@86 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
cannam@86 141 emulate sh
cannam@86 142 NULLCMD=:
cannam@86 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
cannam@86 144 # is contrary to our usage. Disable this feature.
cannam@86 145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
cannam@86 146 setopt NO_GLOB_SUBST
cannam@86 147 else
cannam@86 148 case \`(set -o) 2>/dev/null\` in #(
cannam@86 149 *posix*) :
cannam@86 150 set -o posix ;; #(
cannam@86 151 *) :
cannam@86 152 ;;
cannam@86 153 esac
cannam@86 154 fi
cannam@86 155 "
cannam@86 156 as_required="as_fn_return () { (exit \$1); }
cannam@86 157 as_fn_success () { as_fn_return 0; }
cannam@86 158 as_fn_failure () { as_fn_return 1; }
cannam@86 159 as_fn_ret_success () { return 0; }
cannam@86 160 as_fn_ret_failure () { return 1; }
cannam@86 161
cannam@86 162 exitcode=0
cannam@86 163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
cannam@86 164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
cannam@86 165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
cannam@86 166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
cannam@86 167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
cannam@86 168
cannam@86 169 else
cannam@86 170 exitcode=1; echo positional parameters were not saved.
cannam@86 171 fi
cannam@86 172 test x\$exitcode = x0 || exit 1"
cannam@86 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
cannam@86 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
cannam@86 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
cannam@86 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cannam@86 177
cannam@86 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
cannam@86 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@86 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
cannam@86 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
cannam@86 182 PATH=/empty FPATH=/empty; export PATH FPATH
cannam@86 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
cannam@86 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
cannam@86 185 test \$(( 1 + 1 )) = 2 || exit 1"
cannam@86 186 if (eval "$as_required") 2>/dev/null; then :
cannam@86 187 as_have_required=yes
cannam@86 188 else
cannam@86 189 as_have_required=no
cannam@86 190 fi
cannam@86 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
cannam@86 192
cannam@86 193 else
cannam@86 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 195 as_found=false
cannam@86 196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
cannam@86 197 do
cannam@86 198 IFS=$as_save_IFS
cannam@86 199 test -z "$as_dir" && as_dir=.
cannam@86 200 as_found=:
cannam@86 201 case $as_dir in #(
cannam@86 202 /*)
cannam@86 203 for as_base in sh bash ksh sh5; do
cannam@86 204 # Try only shells that exist, to save several forks.
cannam@86 205 as_shell=$as_dir/$as_base
cannam@86 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
cannam@86 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
cannam@86 208 CONFIG_SHELL=$as_shell as_have_required=yes
cannam@86 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
cannam@86 210 break 2
cannam@86 211 fi
cannam@86 212 fi
cannam@86 213 done;;
cannam@86 214 esac
cannam@86 215 as_found=false
cannam@86 216 done
cannam@86 217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
cannam@86 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
cannam@86 219 CONFIG_SHELL=$SHELL as_have_required=yes
cannam@86 220 fi; }
cannam@86 221 IFS=$as_save_IFS
cannam@86 222
cannam@86 223
cannam@86 224 if test "x$CONFIG_SHELL" != x; then :
cannam@86 225 # We cannot yet assume a decent shell, so we have to provide a
cannam@86 226 # neutralization value for shells without unset; and this also
cannam@86 227 # works around shells that cannot unset nonexistent variables.
cannam@86 228 # Preserve -v and -x to the replacement shell.
cannam@86 229 BASH_ENV=/dev/null
cannam@86 230 ENV=/dev/null
cannam@86 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
cannam@86 232 export CONFIG_SHELL
cannam@86 233 case $- in # ((((
cannam@86 234 *v*x* | *x*v* ) as_opts=-vx ;;
cannam@86 235 *v* ) as_opts=-v ;;
cannam@86 236 *x* ) as_opts=-x ;;
cannam@86 237 * ) as_opts= ;;
cannam@86 238 esac
cannam@86 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
cannam@86 240 fi
cannam@86 241
cannam@86 242 if test x$as_have_required = xno; then :
cannam@86 243 $as_echo "$0: This script requires a shell more modern than all"
cannam@86 244 $as_echo "$0: the shells that I found on your system."
cannam@86 245 if test x${ZSH_VERSION+set} = xset ; then
cannam@86 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
cannam@86 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
cannam@86 248 else
cannam@86 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
cannam@86 250 $0: vorbis-dev@xiph.org about your system, including any
cannam@86 251 $0: error possibly output before this message. Then install
cannam@86 252 $0: a modern shell, or manually run the script under such a
cannam@86 253 $0: shell if you do have one."
cannam@86 254 fi
cannam@86 255 exit 1
cannam@86 256 fi
cannam@86 257 fi
cannam@86 258 fi
cannam@86 259 SHELL=${CONFIG_SHELL-/bin/sh}
cannam@86 260 export SHELL
cannam@86 261 # Unset more variables known to interfere with behavior of common tools.
cannam@86 262 CLICOLOR_FORCE= GREP_OPTIONS=
cannam@86 263 unset CLICOLOR_FORCE GREP_OPTIONS
cannam@86 264
cannam@86 265 ## --------------------- ##
cannam@86 266 ## M4sh Shell Functions. ##
cannam@86 267 ## --------------------- ##
cannam@86 268 # as_fn_unset VAR
cannam@86 269 # ---------------
cannam@86 270 # Portably unset VAR.
cannam@86 271 as_fn_unset ()
cannam@86 272 {
cannam@86 273 { eval $1=; unset $1;}
cannam@86 274 }
cannam@86 275 as_unset=as_fn_unset
cannam@86 276
cannam@86 277 # as_fn_set_status STATUS
cannam@86 278 # -----------------------
cannam@86 279 # Set $? to STATUS, without forking.
cannam@86 280 as_fn_set_status ()
cannam@86 281 {
cannam@86 282 return $1
cannam@86 283 } # as_fn_set_status
cannam@86 284
cannam@86 285 # as_fn_exit STATUS
cannam@86 286 # -----------------
cannam@86 287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
cannam@86 288 as_fn_exit ()
cannam@86 289 {
cannam@86 290 set +e
cannam@86 291 as_fn_set_status $1
cannam@86 292 exit $1
cannam@86 293 } # as_fn_exit
cannam@86 294
cannam@86 295 # as_fn_mkdir_p
cannam@86 296 # -------------
cannam@86 297 # Create "$as_dir" as a directory, including parents if necessary.
cannam@86 298 as_fn_mkdir_p ()
cannam@86 299 {
cannam@86 300
cannam@86 301 case $as_dir in #(
cannam@86 302 -*) as_dir=./$as_dir;;
cannam@86 303 esac
cannam@86 304 test -d "$as_dir" || eval $as_mkdir_p || {
cannam@86 305 as_dirs=
cannam@86 306 while :; do
cannam@86 307 case $as_dir in #(
cannam@86 308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
cannam@86 309 *) as_qdir=$as_dir;;
cannam@86 310 esac
cannam@86 311 as_dirs="'$as_qdir' $as_dirs"
cannam@86 312 as_dir=`$as_dirname -- "$as_dir" ||
cannam@86 313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@86 314 X"$as_dir" : 'X\(//\)[^/]' \| \
cannam@86 315 X"$as_dir" : 'X\(//\)$' \| \
cannam@86 316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
cannam@86 317 $as_echo X"$as_dir" |
cannam@86 318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@86 319 s//\1/
cannam@86 320 q
cannam@86 321 }
cannam@86 322 /^X\(\/\/\)[^/].*/{
cannam@86 323 s//\1/
cannam@86 324 q
cannam@86 325 }
cannam@86 326 /^X\(\/\/\)$/{
cannam@86 327 s//\1/
cannam@86 328 q
cannam@86 329 }
cannam@86 330 /^X\(\/\).*/{
cannam@86 331 s//\1/
cannam@86 332 q
cannam@86 333 }
cannam@86 334 s/.*/./; q'`
cannam@86 335 test -d "$as_dir" && break
cannam@86 336 done
cannam@86 337 test -z "$as_dirs" || eval "mkdir $as_dirs"
cannam@86 338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cannam@86 339
cannam@86 340
cannam@86 341 } # as_fn_mkdir_p
cannam@86 342 # as_fn_append VAR VALUE
cannam@86 343 # ----------------------
cannam@86 344 # Append the text in VALUE to the end of the definition contained in VAR. Take
cannam@86 345 # advantage of any shell optimizations that allow amortized linear growth over
cannam@86 346 # repeated appends, instead of the typical quadratic growth present in naive
cannam@86 347 # implementations.
cannam@86 348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
cannam@86 349 eval 'as_fn_append ()
cannam@86 350 {
cannam@86 351 eval $1+=\$2
cannam@86 352 }'
cannam@86 353 else
cannam@86 354 as_fn_append ()
cannam@86 355 {
cannam@86 356 eval $1=\$$1\$2
cannam@86 357 }
cannam@86 358 fi # as_fn_append
cannam@86 359
cannam@86 360 # as_fn_arith ARG...
cannam@86 361 # ------------------
cannam@86 362 # Perform arithmetic evaluation on the ARGs, and store the result in the
cannam@86 363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
cannam@86 364 # must be portable across $(()) and expr.
cannam@86 365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
cannam@86 366 eval 'as_fn_arith ()
cannam@86 367 {
cannam@86 368 as_val=$(( $* ))
cannam@86 369 }'
cannam@86 370 else
cannam@86 371 as_fn_arith ()
cannam@86 372 {
cannam@86 373 as_val=`expr "$@" || test $? -eq 1`
cannam@86 374 }
cannam@86 375 fi # as_fn_arith
cannam@86 376
cannam@86 377
cannam@86 378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
cannam@86 379 # ----------------------------------------
cannam@86 380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
cannam@86 381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cannam@86 382 # script with STATUS, using 1 if that was 0.
cannam@86 383 as_fn_error ()
cannam@86 384 {
cannam@86 385 as_status=$1; test $as_status -eq 0 && as_status=1
cannam@86 386 if test "$4"; then
cannam@86 387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@86 388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cannam@86 389 fi
cannam@86 390 $as_echo "$as_me: error: $2" >&2
cannam@86 391 as_fn_exit $as_status
cannam@86 392 } # as_fn_error
cannam@86 393
cannam@86 394 if expr a : '\(a\)' >/dev/null 2>&1 &&
cannam@86 395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
cannam@86 396 as_expr=expr
cannam@86 397 else
cannam@86 398 as_expr=false
cannam@86 399 fi
cannam@86 400
cannam@86 401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
cannam@86 402 as_basename=basename
cannam@86 403 else
cannam@86 404 as_basename=false
cannam@86 405 fi
cannam@86 406
cannam@86 407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
cannam@86 408 as_dirname=dirname
cannam@86 409 else
cannam@86 410 as_dirname=false
cannam@86 411 fi
cannam@86 412
cannam@86 413 as_me=`$as_basename -- "$0" ||
cannam@86 414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
cannam@86 415 X"$0" : 'X\(//\)$' \| \
cannam@86 416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
cannam@86 417 $as_echo X/"$0" |
cannam@86 418 sed '/^.*\/\([^/][^/]*\)\/*$/{
cannam@86 419 s//\1/
cannam@86 420 q
cannam@86 421 }
cannam@86 422 /^X\/\(\/\/\)$/{
cannam@86 423 s//\1/
cannam@86 424 q
cannam@86 425 }
cannam@86 426 /^X\/\(\/\).*/{
cannam@86 427 s//\1/
cannam@86 428 q
cannam@86 429 }
cannam@86 430 s/.*/./; q'`
cannam@86 431
cannam@86 432 # Avoid depending upon Character Ranges.
cannam@86 433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
cannam@86 434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
cannam@86 435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
cannam@86 436 as_cr_digits='0123456789'
cannam@86 437 as_cr_alnum=$as_cr_Letters$as_cr_digits
cannam@86 438
cannam@86 439
cannam@86 440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
cannam@86 441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
cannam@86 442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
cannam@86 443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
cannam@86 444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cannam@86 445 sed -n '
cannam@86 446 p
cannam@86 447 /[$]LINENO/=
cannam@86 448 ' <$as_myself |
cannam@86 449 sed '
cannam@86 450 s/[$]LINENO.*/&-/
cannam@86 451 t lineno
cannam@86 452 b
cannam@86 453 :lineno
cannam@86 454 N
cannam@86 455 :loop
cannam@86 456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
cannam@86 457 t loop
cannam@86 458 s/-\n.*//
cannam@86 459 ' >$as_me.lineno &&
cannam@86 460 chmod +x "$as_me.lineno" ||
cannam@86 461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cannam@86 462
cannam@86 463 # Don't try to exec as it changes $[0], causing all sort of problems
cannam@86 464 # (the dirname of $[0] is not the place where we might find the
cannam@86 465 # original and so on. Autoconf is especially sensitive to this).
cannam@86 466 . "./$as_me.lineno"
cannam@86 467 # Exit status is that of the last command.
cannam@86 468 exit
cannam@86 469 }
cannam@86 470
cannam@86 471 ECHO_C= ECHO_N= ECHO_T=
cannam@86 472 case `echo -n x` in #(((((
cannam@86 473 -n*)
cannam@86 474 case `echo 'xy\c'` in
cannam@86 475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cannam@86 476 xy) ECHO_C='\c';;
cannam@86 477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
cannam@86 478 ECHO_T=' ';;
cannam@86 479 esac;;
cannam@86 480 *)
cannam@86 481 ECHO_N='-n';;
cannam@86 482 esac
cannam@86 483
cannam@86 484 rm -f conf$$ conf$$.exe conf$$.file
cannam@86 485 if test -d conf$$.dir; then
cannam@86 486 rm -f conf$$.dir/conf$$.file
cannam@86 487 else
cannam@86 488 rm -f conf$$.dir
cannam@86 489 mkdir conf$$.dir 2>/dev/null
cannam@86 490 fi
cannam@86 491 if (echo >conf$$.file) 2>/dev/null; then
cannam@86 492 if ln -s conf$$.file conf$$ 2>/dev/null; then
cannam@86 493 as_ln_s='ln -s'
cannam@86 494 # ... but there are two gotchas:
cannam@86 495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
cannam@86 496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cannam@86 497 # In both cases, we have to default to `cp -p'.
cannam@86 498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cannam@86 499 as_ln_s='cp -p'
cannam@86 500 elif ln conf$$.file conf$$ 2>/dev/null; then
cannam@86 501 as_ln_s=ln
cannam@86 502 else
cannam@86 503 as_ln_s='cp -p'
cannam@86 504 fi
cannam@86 505 else
cannam@86 506 as_ln_s='cp -p'
cannam@86 507 fi
cannam@86 508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
cannam@86 509 rmdir conf$$.dir 2>/dev/null
cannam@86 510
cannam@86 511 if mkdir -p . 2>/dev/null; then
cannam@86 512 as_mkdir_p='mkdir -p "$as_dir"'
cannam@86 513 else
cannam@86 514 test -d ./-p && rmdir ./-p
cannam@86 515 as_mkdir_p=false
cannam@86 516 fi
cannam@86 517
cannam@86 518 if test -x / >/dev/null 2>&1; then
cannam@86 519 as_test_x='test -x'
cannam@86 520 else
cannam@86 521 if ls -dL / >/dev/null 2>&1; then
cannam@86 522 as_ls_L_option=L
cannam@86 523 else
cannam@86 524 as_ls_L_option=
cannam@86 525 fi
cannam@86 526 as_test_x='
cannam@86 527 eval sh -c '\''
cannam@86 528 if test -d "$1"; then
cannam@86 529 test -d "$1/.";
cannam@86 530 else
cannam@86 531 case $1 in #(
cannam@86 532 -*)set "./$1";;
cannam@86 533 esac;
cannam@86 534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cannam@86 535 ???[sx]*):;;*)false;;esac;fi
cannam@86 536 '\'' sh
cannam@86 537 '
cannam@86 538 fi
cannam@86 539 as_executable_p=$as_test_x
cannam@86 540
cannam@86 541 # Sed expression to map a string onto a valid CPP name.
cannam@86 542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
cannam@86 543
cannam@86 544 # Sed expression to map a string onto a valid variable name.
cannam@86 545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
cannam@86 546
cannam@86 547 SHELL=${CONFIG_SHELL-/bin/sh}
cannam@86 548
cannam@86 549
cannam@86 550 test -n "$DJDIR" || exec 7<&0 </dev/null
cannam@86 551 exec 6>&1
cannam@86 552
cannam@86 553 # Name of the host.
cannam@86 554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cannam@86 555 # so uname gets run too.
cannam@86 556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@86 557
cannam@86 558 #
cannam@86 559 # Initializations.
cannam@86 560 #
cannam@86 561 ac_default_prefix=/usr/local
cannam@86 562 ac_clean_files=
cannam@86 563 ac_config_libobj_dir=.
cannam@86 564 LIBOBJS=
cannam@86 565 cross_compiling=no
cannam@86 566 subdirs=
cannam@86 567 MFLAGS=
cannam@86 568 MAKEFLAGS=
cannam@86 569
cannam@86 570 # Identity of this package.
cannam@86 571 PACKAGE_NAME='libvorbis'
cannam@86 572 PACKAGE_TARNAME='libvorbis'
cannam@86 573 PACKAGE_VERSION='1.3.3'
cannam@86 574 PACKAGE_STRING='libvorbis 1.3.3'
cannam@86 575 PACKAGE_BUGREPORT='vorbis-dev@xiph.org'
cannam@86 576 PACKAGE_URL=''
cannam@86 577
cannam@86 578 ac_unique_file="lib/mdct.c"
cannam@86 579 # Factoring default headers for most tests.
cannam@86 580 ac_includes_default="\
cannam@86 581 #include <stdio.h>
cannam@86 582 #ifdef HAVE_SYS_TYPES_H
cannam@86 583 # include <sys/types.h>
cannam@86 584 #endif
cannam@86 585 #ifdef HAVE_SYS_STAT_H
cannam@86 586 # include <sys/stat.h>
cannam@86 587 #endif
cannam@86 588 #ifdef STDC_HEADERS
cannam@86 589 # include <stdlib.h>
cannam@86 590 # include <stddef.h>
cannam@86 591 #else
cannam@86 592 # ifdef HAVE_STDLIB_H
cannam@86 593 # include <stdlib.h>
cannam@86 594 # endif
cannam@86 595 #endif
cannam@86 596 #ifdef HAVE_STRING_H
cannam@86 597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
cannam@86 598 # include <memory.h>
cannam@86 599 # endif
cannam@86 600 # include <string.h>
cannam@86 601 #endif
cannam@86 602 #ifdef HAVE_STRINGS_H
cannam@86 603 # include <strings.h>
cannam@86 604 #endif
cannam@86 605 #ifdef HAVE_INTTYPES_H
cannam@86 606 # include <inttypes.h>
cannam@86 607 #endif
cannam@86 608 #ifdef HAVE_STDINT_H
cannam@86 609 # include <stdint.h>
cannam@86 610 #endif
cannam@86 611 #ifdef HAVE_UNISTD_H
cannam@86 612 # include <unistd.h>
cannam@86 613 #endif"
cannam@86 614
cannam@86 615 ac_subst_vars='am__EXEEXT_FALSE
cannam@86 616 am__EXEEXT_TRUE
cannam@86 617 LTLIBOBJS
cannam@86 618 LIBTOOL_DEPS
cannam@86 619 pthread_lib
cannam@86 620 PROFILE
cannam@86 621 DEBUG
cannam@86 622 VORBIS_LIBS
cannam@86 623 LIBOBJS
cannam@86 624 ALLOCA
cannam@86 625 OGG_LIBS
cannam@86 626 OGG_CFLAGS
cannam@86 627 PKG_CONFIG
cannam@86 628 BUILD_EXAMPLES_FALSE
cannam@86 629 BUILD_EXAMPLES_TRUE
cannam@86 630 BUILD_DOCS_FALSE
cannam@86 631 BUILD_DOCS_TRUE
cannam@86 632 HTLATEX
cannam@86 633 PDFLATEX
cannam@86 634 HAVE_DOXYGEN_FALSE
cannam@86 635 HAVE_DOXYGEN_TRUE
cannam@86 636 HAVE_DOXYGEN
cannam@86 637 OTOOL64
cannam@86 638 OTOOL
cannam@86 639 LIPO
cannam@86 640 NMEDIT
cannam@86 641 DSYMUTIL
cannam@86 642 MANIFEST_TOOL
cannam@86 643 RANLIB
cannam@86 644 ac_ct_AR
cannam@86 645 AR
cannam@86 646 LN_S
cannam@86 647 NM
cannam@86 648 ac_ct_DUMPBIN
cannam@86 649 DUMPBIN
cannam@86 650 LD
cannam@86 651 FGREP
cannam@86 652 EGREP
cannam@86 653 GREP
cannam@86 654 SED
cannam@86 655 LIBTOOL
cannam@86 656 OBJDUMP
cannam@86 657 DLLTOOL
cannam@86 658 AS
cannam@86 659 CPP
cannam@86 660 am__fastdepCC_FALSE
cannam@86 661 am__fastdepCC_TRUE
cannam@86 662 CCDEPMODE
cannam@86 663 AMDEPBACKSLASH
cannam@86 664 AMDEP_FALSE
cannam@86 665 AMDEP_TRUE
cannam@86 666 am__quote
cannam@86 667 am__include
cannam@86 668 DEPDIR
cannam@86 669 OBJEXT
cannam@86 670 EXEEXT
cannam@86 671 ac_ct_CC
cannam@86 672 CPPFLAGS
cannam@86 673 LDFLAGS
cannam@86 674 CFLAGS
cannam@86 675 CC
cannam@86 676 VE_LIB_AGE
cannam@86 677 VE_LIB_REVISION
cannam@86 678 VE_LIB_CURRENT
cannam@86 679 VF_LIB_AGE
cannam@86 680 VF_LIB_REVISION
cannam@86 681 VF_LIB_CURRENT
cannam@86 682 V_LIB_AGE
cannam@86 683 V_LIB_REVISION
cannam@86 684 V_LIB_CURRENT
cannam@86 685 ACLOCAL_AMFLAGS
cannam@86 686 MAINT
cannam@86 687 MAINTAINER_MODE_FALSE
cannam@86 688 MAINTAINER_MODE_TRUE
cannam@86 689 am__untar
cannam@86 690 am__tar
cannam@86 691 AMTAR
cannam@86 692 am__leading_dot
cannam@86 693 SET_MAKE
cannam@86 694 AWK
cannam@86 695 mkdir_p
cannam@86 696 MKDIR_P
cannam@86 697 INSTALL_STRIP_PROGRAM
cannam@86 698 STRIP
cannam@86 699 install_sh
cannam@86 700 MAKEINFO
cannam@86 701 AUTOHEADER
cannam@86 702 AUTOMAKE
cannam@86 703 AUTOCONF
cannam@86 704 ACLOCAL
cannam@86 705 VERSION
cannam@86 706 PACKAGE
cannam@86 707 CYGPATH_W
cannam@86 708 am__isrc
cannam@86 709 INSTALL_DATA
cannam@86 710 INSTALL_SCRIPT
cannam@86 711 INSTALL_PROGRAM
cannam@86 712 target_os
cannam@86 713 target_vendor
cannam@86 714 target_cpu
cannam@86 715 target
cannam@86 716 host_os
cannam@86 717 host_vendor
cannam@86 718 host_cpu
cannam@86 719 host
cannam@86 720 build_os
cannam@86 721 build_vendor
cannam@86 722 build_cpu
cannam@86 723 build
cannam@86 724 target_alias
cannam@86 725 host_alias
cannam@86 726 build_alias
cannam@86 727 LIBS
cannam@86 728 ECHO_T
cannam@86 729 ECHO_N
cannam@86 730 ECHO_C
cannam@86 731 DEFS
cannam@86 732 mandir
cannam@86 733 localedir
cannam@86 734 libdir
cannam@86 735 psdir
cannam@86 736 pdfdir
cannam@86 737 dvidir
cannam@86 738 htmldir
cannam@86 739 infodir
cannam@86 740 docdir
cannam@86 741 oldincludedir
cannam@86 742 includedir
cannam@86 743 localstatedir
cannam@86 744 sharedstatedir
cannam@86 745 sysconfdir
cannam@86 746 datadir
cannam@86 747 datarootdir
cannam@86 748 libexecdir
cannam@86 749 sbindir
cannam@86 750 bindir
cannam@86 751 program_transform_name
cannam@86 752 prefix
cannam@86 753 exec_prefix
cannam@86 754 PACKAGE_URL
cannam@86 755 PACKAGE_BUGREPORT
cannam@86 756 PACKAGE_STRING
cannam@86 757 PACKAGE_VERSION
cannam@86 758 PACKAGE_TARNAME
cannam@86 759 PACKAGE_NAME
cannam@86 760 PATH_SEPARATOR
cannam@86 761 SHELL'
cannam@86 762 ac_subst_files=''
cannam@86 763 ac_user_opts='
cannam@86 764 enable_option_checking
cannam@86 765 enable_maintainer_mode
cannam@86 766 enable_dependency_tracking
cannam@86 767 enable_shared
cannam@86 768 enable_static
cannam@86 769 with_pic
cannam@86 770 enable_fast_install
cannam@86 771 with_gnu_ld
cannam@86 772 with_sysroot
cannam@86 773 enable_libtool_lock
cannam@86 774 enable_docs
cannam@86 775 enable_examples
cannam@86 776 with_ogg
cannam@86 777 with_ogg_libraries
cannam@86 778 with_ogg_includes
cannam@86 779 enable_oggtest
cannam@86 780 '
cannam@86 781 ac_precious_vars='build_alias
cannam@86 782 host_alias
cannam@86 783 target_alias
cannam@86 784 CC
cannam@86 785 CFLAGS
cannam@86 786 LDFLAGS
cannam@86 787 LIBS
cannam@86 788 CPPFLAGS
cannam@86 789 CPP
cannam@86 790 PKG_CONFIG
cannam@86 791 OGG_CFLAGS
cannam@86 792 OGG_LIBS'
cannam@86 793
cannam@86 794
cannam@86 795 # Initialize some variables set by options.
cannam@86 796 ac_init_help=
cannam@86 797 ac_init_version=false
cannam@86 798 ac_unrecognized_opts=
cannam@86 799 ac_unrecognized_sep=
cannam@86 800 # The variables have the same names as the options, with
cannam@86 801 # dashes changed to underlines.
cannam@86 802 cache_file=/dev/null
cannam@86 803 exec_prefix=NONE
cannam@86 804 no_create=
cannam@86 805 no_recursion=
cannam@86 806 prefix=NONE
cannam@86 807 program_prefix=NONE
cannam@86 808 program_suffix=NONE
cannam@86 809 program_transform_name=s,x,x,
cannam@86 810 silent=
cannam@86 811 site=
cannam@86 812 srcdir=
cannam@86 813 verbose=
cannam@86 814 x_includes=NONE
cannam@86 815 x_libraries=NONE
cannam@86 816
cannam@86 817 # Installation directory options.
cannam@86 818 # These are left unexpanded so users can "make install exec_prefix=/foo"
cannam@86 819 # and all the variables that are supposed to be based on exec_prefix
cannam@86 820 # by default will actually change.
cannam@86 821 # Use braces instead of parens because sh, perl, etc. also accept them.
cannam@86 822 # (The list follows the same order as the GNU Coding Standards.)
cannam@86 823 bindir='${exec_prefix}/bin'
cannam@86 824 sbindir='${exec_prefix}/sbin'
cannam@86 825 libexecdir='${exec_prefix}/libexec'
cannam@86 826 datarootdir='${prefix}/share'
cannam@86 827 datadir='${datarootdir}'
cannam@86 828 sysconfdir='${prefix}/etc'
cannam@86 829 sharedstatedir='${prefix}/com'
cannam@86 830 localstatedir='${prefix}/var'
cannam@86 831 includedir='${prefix}/include'
cannam@86 832 oldincludedir='/usr/include'
cannam@86 833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
cannam@86 834 infodir='${datarootdir}/info'
cannam@86 835 htmldir='${docdir}'
cannam@86 836 dvidir='${docdir}'
cannam@86 837 pdfdir='${docdir}'
cannam@86 838 psdir='${docdir}'
cannam@86 839 libdir='${exec_prefix}/lib'
cannam@86 840 localedir='${datarootdir}/locale'
cannam@86 841 mandir='${datarootdir}/man'
cannam@86 842
cannam@86 843 ac_prev=
cannam@86 844 ac_dashdash=
cannam@86 845 for ac_option
cannam@86 846 do
cannam@86 847 # If the previous option needs an argument, assign it.
cannam@86 848 if test -n "$ac_prev"; then
cannam@86 849 eval $ac_prev=\$ac_option
cannam@86 850 ac_prev=
cannam@86 851 continue
cannam@86 852 fi
cannam@86 853
cannam@86 854 case $ac_option in
cannam@86 855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
cannam@86 856 *=) ac_optarg= ;;
cannam@86 857 *) ac_optarg=yes ;;
cannam@86 858 esac
cannam@86 859
cannam@86 860 # Accept the important Cygnus configure options, so we can diagnose typos.
cannam@86 861
cannam@86 862 case $ac_dashdash$ac_option in
cannam@86 863 --)
cannam@86 864 ac_dashdash=yes ;;
cannam@86 865
cannam@86 866 -bindir | --bindir | --bindi | --bind | --bin | --bi)
cannam@86 867 ac_prev=bindir ;;
cannam@86 868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
cannam@86 869 bindir=$ac_optarg ;;
cannam@86 870
cannam@86 871 -build | --build | --buil | --bui | --bu)
cannam@86 872 ac_prev=build_alias ;;
cannam@86 873 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
cannam@86 874 build_alias=$ac_optarg ;;
cannam@86 875
cannam@86 876 -cache-file | --cache-file | --cache-fil | --cache-fi \
cannam@86 877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
cannam@86 878 ac_prev=cache_file ;;
cannam@86 879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
cannam@86 880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
cannam@86 881 cache_file=$ac_optarg ;;
cannam@86 882
cannam@86 883 --config-cache | -C)
cannam@86 884 cache_file=config.cache ;;
cannam@86 885
cannam@86 886 -datadir | --datadir | --datadi | --datad)
cannam@86 887 ac_prev=datadir ;;
cannam@86 888 -datadir=* | --datadir=* | --datadi=* | --datad=*)
cannam@86 889 datadir=$ac_optarg ;;
cannam@86 890
cannam@86 891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
cannam@86 892 | --dataroo | --dataro | --datar)
cannam@86 893 ac_prev=datarootdir ;;
cannam@86 894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
cannam@86 895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
cannam@86 896 datarootdir=$ac_optarg ;;
cannam@86 897
cannam@86 898 -disable-* | --disable-*)
cannam@86 899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
cannam@86 900 # Reject names that are not valid shell variable names.
cannam@86 901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@86 902 as_fn_error $? "invalid feature name: $ac_useropt"
cannam@86 903 ac_useropt_orig=$ac_useropt
cannam@86 904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@86 905 case $ac_user_opts in
cannam@86 906 *"
cannam@86 907 "enable_$ac_useropt"
cannam@86 908 "*) ;;
cannam@86 909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
cannam@86 910 ac_unrecognized_sep=', ';;
cannam@86 911 esac
cannam@86 912 eval enable_$ac_useropt=no ;;
cannam@86 913
cannam@86 914 -docdir | --docdir | --docdi | --doc | --do)
cannam@86 915 ac_prev=docdir ;;
cannam@86 916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
cannam@86 917 docdir=$ac_optarg ;;
cannam@86 918
cannam@86 919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
cannam@86 920 ac_prev=dvidir ;;
cannam@86 921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
cannam@86 922 dvidir=$ac_optarg ;;
cannam@86 923
cannam@86 924 -enable-* | --enable-*)
cannam@86 925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
cannam@86 926 # Reject names that are not valid shell variable names.
cannam@86 927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@86 928 as_fn_error $? "invalid feature name: $ac_useropt"
cannam@86 929 ac_useropt_orig=$ac_useropt
cannam@86 930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@86 931 case $ac_user_opts in
cannam@86 932 *"
cannam@86 933 "enable_$ac_useropt"
cannam@86 934 "*) ;;
cannam@86 935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
cannam@86 936 ac_unrecognized_sep=', ';;
cannam@86 937 esac
cannam@86 938 eval enable_$ac_useropt=\$ac_optarg ;;
cannam@86 939
cannam@86 940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
cannam@86 941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
cannam@86 942 | --exec | --exe | --ex)
cannam@86 943 ac_prev=exec_prefix ;;
cannam@86 944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
cannam@86 945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
cannam@86 946 | --exec=* | --exe=* | --ex=*)
cannam@86 947 exec_prefix=$ac_optarg ;;
cannam@86 948
cannam@86 949 -gas | --gas | --ga | --g)
cannam@86 950 # Obsolete; use --with-gas.
cannam@86 951 with_gas=yes ;;
cannam@86 952
cannam@86 953 -help | --help | --hel | --he | -h)
cannam@86 954 ac_init_help=long ;;
cannam@86 955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
cannam@86 956 ac_init_help=recursive ;;
cannam@86 957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
cannam@86 958 ac_init_help=short ;;
cannam@86 959
cannam@86 960 -host | --host | --hos | --ho)
cannam@86 961 ac_prev=host_alias ;;
cannam@86 962 -host=* | --host=* | --hos=* | --ho=*)
cannam@86 963 host_alias=$ac_optarg ;;
cannam@86 964
cannam@86 965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
cannam@86 966 ac_prev=htmldir ;;
cannam@86 967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
cannam@86 968 | --ht=*)
cannam@86 969 htmldir=$ac_optarg ;;
cannam@86 970
cannam@86 971 -includedir | --includedir | --includedi | --included | --include \
cannam@86 972 | --includ | --inclu | --incl | --inc)
cannam@86 973 ac_prev=includedir ;;
cannam@86 974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
cannam@86 975 | --includ=* | --inclu=* | --incl=* | --inc=*)
cannam@86 976 includedir=$ac_optarg ;;
cannam@86 977
cannam@86 978 -infodir | --infodir | --infodi | --infod | --info | --inf)
cannam@86 979 ac_prev=infodir ;;
cannam@86 980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
cannam@86 981 infodir=$ac_optarg ;;
cannam@86 982
cannam@86 983 -libdir | --libdir | --libdi | --libd)
cannam@86 984 ac_prev=libdir ;;
cannam@86 985 -libdir=* | --libdir=* | --libdi=* | --libd=*)
cannam@86 986 libdir=$ac_optarg ;;
cannam@86 987
cannam@86 988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
cannam@86 989 | --libexe | --libex | --libe)
cannam@86 990 ac_prev=libexecdir ;;
cannam@86 991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
cannam@86 992 | --libexe=* | --libex=* | --libe=*)
cannam@86 993 libexecdir=$ac_optarg ;;
cannam@86 994
cannam@86 995 -localedir | --localedir | --localedi | --localed | --locale)
cannam@86 996 ac_prev=localedir ;;
cannam@86 997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
cannam@86 998 localedir=$ac_optarg ;;
cannam@86 999
cannam@86 1000 -localstatedir | --localstatedir | --localstatedi | --localstated \
cannam@86 1001 | --localstate | --localstat | --localsta | --localst | --locals)
cannam@86 1002 ac_prev=localstatedir ;;
cannam@86 1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cannam@86 1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
cannam@86 1005 localstatedir=$ac_optarg ;;
cannam@86 1006
cannam@86 1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
cannam@86 1008 ac_prev=mandir ;;
cannam@86 1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
cannam@86 1010 mandir=$ac_optarg ;;
cannam@86 1011
cannam@86 1012 -nfp | --nfp | --nf)
cannam@86 1013 # Obsolete; use --without-fp.
cannam@86 1014 with_fp=no ;;
cannam@86 1015
cannam@86 1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
cannam@86 1017 | --no-cr | --no-c | -n)
cannam@86 1018 no_create=yes ;;
cannam@86 1019
cannam@86 1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
cannam@86 1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
cannam@86 1022 no_recursion=yes ;;
cannam@86 1023
cannam@86 1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
cannam@86 1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
cannam@86 1026 | --oldin | --oldi | --old | --ol | --o)
cannam@86 1027 ac_prev=oldincludedir ;;
cannam@86 1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
cannam@86 1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
cannam@86 1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
cannam@86 1031 oldincludedir=$ac_optarg ;;
cannam@86 1032
cannam@86 1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
cannam@86 1034 ac_prev=prefix ;;
cannam@86 1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
cannam@86 1036 prefix=$ac_optarg ;;
cannam@86 1037
cannam@86 1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \
cannam@86 1039 | --program-pre | --program-pr | --program-p)
cannam@86 1040 ac_prev=program_prefix ;;
cannam@86 1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \
cannam@86 1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
cannam@86 1043 program_prefix=$ac_optarg ;;
cannam@86 1044
cannam@86 1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \
cannam@86 1046 | --program-suf | --program-su | --program-s)
cannam@86 1047 ac_prev=program_suffix ;;
cannam@86 1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \
cannam@86 1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
cannam@86 1050 program_suffix=$ac_optarg ;;
cannam@86 1051
cannam@86 1052 -program-transform-name | --program-transform-name \
cannam@86 1053 | --program-transform-nam | --program-transform-na \
cannam@86 1054 | --program-transform-n | --program-transform- \
cannam@86 1055 | --program-transform | --program-transfor \
cannam@86 1056 | --program-transfo | --program-transf \
cannam@86 1057 | --program-trans | --program-tran \
cannam@86 1058 | --progr-tra | --program-tr | --program-t)
cannam@86 1059 ac_prev=program_transform_name ;;
cannam@86 1060 -program-transform-name=* | --program-transform-name=* \
cannam@86 1061 | --program-transform-nam=* | --program-transform-na=* \
cannam@86 1062 | --program-transform-n=* | --program-transform-=* \
cannam@86 1063 | --program-transform=* | --program-transfor=* \
cannam@86 1064 | --program-transfo=* | --program-transf=* \
cannam@86 1065 | --program-trans=* | --program-tran=* \
cannam@86 1066 | --progr-tra=* | --program-tr=* | --program-t=*)
cannam@86 1067 program_transform_name=$ac_optarg ;;
cannam@86 1068
cannam@86 1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
cannam@86 1070 ac_prev=pdfdir ;;
cannam@86 1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
cannam@86 1072 pdfdir=$ac_optarg ;;
cannam@86 1073
cannam@86 1074 -psdir | --psdir | --psdi | --psd | --ps)
cannam@86 1075 ac_prev=psdir ;;
cannam@86 1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
cannam@86 1077 psdir=$ac_optarg ;;
cannam@86 1078
cannam@86 1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@86 1080 | -silent | --silent | --silen | --sile | --sil)
cannam@86 1081 silent=yes ;;
cannam@86 1082
cannam@86 1083 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
cannam@86 1084 ac_prev=sbindir ;;
cannam@86 1085 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
cannam@86 1086 | --sbi=* | --sb=*)
cannam@86 1087 sbindir=$ac_optarg ;;
cannam@86 1088
cannam@86 1089 -sharedstatedir | --sharedstatedir | --sharedstatedi \
cannam@86 1090 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
cannam@86 1091 | --sharedst | --shareds | --shared | --share | --shar \
cannam@86 1092 | --sha | --sh)
cannam@86 1093 ac_prev=sharedstatedir ;;
cannam@86 1094 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
cannam@86 1095 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
cannam@86 1096 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
cannam@86 1097 | --sha=* | --sh=*)
cannam@86 1098 sharedstatedir=$ac_optarg ;;
cannam@86 1099
cannam@86 1100 -site | --site | --sit)
cannam@86 1101 ac_prev=site ;;
cannam@86 1102 -site=* | --site=* | --sit=*)
cannam@86 1103 site=$ac_optarg ;;
cannam@86 1104
cannam@86 1105 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
cannam@86 1106 ac_prev=srcdir ;;
cannam@86 1107 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
cannam@86 1108 srcdir=$ac_optarg ;;
cannam@86 1109
cannam@86 1110 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
cannam@86 1111 | --syscon | --sysco | --sysc | --sys | --sy)
cannam@86 1112 ac_prev=sysconfdir ;;
cannam@86 1113 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
cannam@86 1114 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
cannam@86 1115 sysconfdir=$ac_optarg ;;
cannam@86 1116
cannam@86 1117 -target | --target | --targe | --targ | --tar | --ta | --t)
cannam@86 1118 ac_prev=target_alias ;;
cannam@86 1119 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
cannam@86 1120 target_alias=$ac_optarg ;;
cannam@86 1121
cannam@86 1122 -v | -verbose | --verbose | --verbos | --verbo | --verb)
cannam@86 1123 verbose=yes ;;
cannam@86 1124
cannam@86 1125 -version | --version | --versio | --versi | --vers | -V)
cannam@86 1126 ac_init_version=: ;;
cannam@86 1127
cannam@86 1128 -with-* | --with-*)
cannam@86 1129 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
cannam@86 1130 # Reject names that are not valid shell variable names.
cannam@86 1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@86 1132 as_fn_error $? "invalid package name: $ac_useropt"
cannam@86 1133 ac_useropt_orig=$ac_useropt
cannam@86 1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@86 1135 case $ac_user_opts in
cannam@86 1136 *"
cannam@86 1137 "with_$ac_useropt"
cannam@86 1138 "*) ;;
cannam@86 1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
cannam@86 1140 ac_unrecognized_sep=', ';;
cannam@86 1141 esac
cannam@86 1142 eval with_$ac_useropt=\$ac_optarg ;;
cannam@86 1143
cannam@86 1144 -without-* | --without-*)
cannam@86 1145 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
cannam@86 1146 # Reject names that are not valid shell variable names.
cannam@86 1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@86 1148 as_fn_error $? "invalid package name: $ac_useropt"
cannam@86 1149 ac_useropt_orig=$ac_useropt
cannam@86 1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@86 1151 case $ac_user_opts in
cannam@86 1152 *"
cannam@86 1153 "with_$ac_useropt"
cannam@86 1154 "*) ;;
cannam@86 1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
cannam@86 1156 ac_unrecognized_sep=', ';;
cannam@86 1157 esac
cannam@86 1158 eval with_$ac_useropt=no ;;
cannam@86 1159
cannam@86 1160 --x)
cannam@86 1161 # Obsolete; use --with-x.
cannam@86 1162 with_x=yes ;;
cannam@86 1163
cannam@86 1164 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
cannam@86 1165 | --x-incl | --x-inc | --x-in | --x-i)
cannam@86 1166 ac_prev=x_includes ;;
cannam@86 1167 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
cannam@86 1168 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
cannam@86 1169 x_includes=$ac_optarg ;;
cannam@86 1170
cannam@86 1171 -x-libraries | --x-libraries | --x-librarie | --x-librari \
cannam@86 1172 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
cannam@86 1173 ac_prev=x_libraries ;;
cannam@86 1174 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
cannam@86 1175 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
cannam@86 1176 x_libraries=$ac_optarg ;;
cannam@86 1177
cannam@86 1178 -*) as_fn_error $? "unrecognized option: \`$ac_option'
cannam@86 1179 Try \`$0 --help' for more information"
cannam@86 1180 ;;
cannam@86 1181
cannam@86 1182 *=*)
cannam@86 1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
cannam@86 1184 # Reject names that are not valid shell variable names.
cannam@86 1185 case $ac_envvar in #(
cannam@86 1186 '' | [0-9]* | *[!_$as_cr_alnum]* )
cannam@86 1187 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cannam@86 1188 esac
cannam@86 1189 eval $ac_envvar=\$ac_optarg
cannam@86 1190 export $ac_envvar ;;
cannam@86 1191
cannam@86 1192 *)
cannam@86 1193 # FIXME: should be removed in autoconf 3.0.
cannam@86 1194 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
cannam@86 1195 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
cannam@86 1196 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cannam@86 1197 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cannam@86 1198 ;;
cannam@86 1199
cannam@86 1200 esac
cannam@86 1201 done
cannam@86 1202
cannam@86 1203 if test -n "$ac_prev"; then
cannam@86 1204 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cannam@86 1205 as_fn_error $? "missing argument to $ac_option"
cannam@86 1206 fi
cannam@86 1207
cannam@86 1208 if test -n "$ac_unrecognized_opts"; then
cannam@86 1209 case $enable_option_checking in
cannam@86 1210 no) ;;
cannam@86 1211 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cannam@86 1212 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
cannam@86 1213 esac
cannam@86 1214 fi
cannam@86 1215
cannam@86 1216 # Check all directory arguments for consistency.
cannam@86 1217 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
cannam@86 1218 datadir sysconfdir sharedstatedir localstatedir includedir \
cannam@86 1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
cannam@86 1220 libdir localedir mandir
cannam@86 1221 do
cannam@86 1222 eval ac_val=\$$ac_var
cannam@86 1223 # Remove trailing slashes.
cannam@86 1224 case $ac_val in
cannam@86 1225 */ )
cannam@86 1226 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
cannam@86 1227 eval $ac_var=\$ac_val;;
cannam@86 1228 esac
cannam@86 1229 # Be sure to have absolute directory names.
cannam@86 1230 case $ac_val in
cannam@86 1231 [\\/$]* | ?:[\\/]* ) continue;;
cannam@86 1232 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
cannam@86 1233 esac
cannam@86 1234 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cannam@86 1235 done
cannam@86 1236
cannam@86 1237 # There might be people who depend on the old broken behavior: `$host'
cannam@86 1238 # used to hold the argument of --host etc.
cannam@86 1239 # FIXME: To remove some day.
cannam@86 1240 build=$build_alias
cannam@86 1241 host=$host_alias
cannam@86 1242 target=$target_alias
cannam@86 1243
cannam@86 1244 # FIXME: To remove some day.
cannam@86 1245 if test "x$host_alias" != x; then
cannam@86 1246 if test "x$build_alias" = x; then
cannam@86 1247 cross_compiling=maybe
cannam@86 1248 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
cannam@86 1249 If a cross compiler is detected then cross compile mode will be used" >&2
cannam@86 1250 elif test "x$build_alias" != "x$host_alias"; then
cannam@86 1251 cross_compiling=yes
cannam@86 1252 fi
cannam@86 1253 fi
cannam@86 1254
cannam@86 1255 ac_tool_prefix=
cannam@86 1256 test -n "$host_alias" && ac_tool_prefix=$host_alias-
cannam@86 1257
cannam@86 1258 test "$silent" = yes && exec 6>/dev/null
cannam@86 1259
cannam@86 1260
cannam@86 1261 ac_pwd=`pwd` && test -n "$ac_pwd" &&
cannam@86 1262 ac_ls_di=`ls -di .` &&
cannam@86 1263 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cannam@86 1264 as_fn_error $? "working directory cannot be determined"
cannam@86 1265 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cannam@86 1266 as_fn_error $? "pwd does not report name of working directory"
cannam@86 1267
cannam@86 1268
cannam@86 1269 # Find the source files, if location was not specified.
cannam@86 1270 if test -z "$srcdir"; then
cannam@86 1271 ac_srcdir_defaulted=yes
cannam@86 1272 # Try the directory containing this script, then the parent directory.
cannam@86 1273 ac_confdir=`$as_dirname -- "$as_myself" ||
cannam@86 1274 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@86 1275 X"$as_myself" : 'X\(//\)[^/]' \| \
cannam@86 1276 X"$as_myself" : 'X\(//\)$' \| \
cannam@86 1277 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
cannam@86 1278 $as_echo X"$as_myself" |
cannam@86 1279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@86 1280 s//\1/
cannam@86 1281 q
cannam@86 1282 }
cannam@86 1283 /^X\(\/\/\)[^/].*/{
cannam@86 1284 s//\1/
cannam@86 1285 q
cannam@86 1286 }
cannam@86 1287 /^X\(\/\/\)$/{
cannam@86 1288 s//\1/
cannam@86 1289 q
cannam@86 1290 }
cannam@86 1291 /^X\(\/\).*/{
cannam@86 1292 s//\1/
cannam@86 1293 q
cannam@86 1294 }
cannam@86 1295 s/.*/./; q'`
cannam@86 1296 srcdir=$ac_confdir
cannam@86 1297 if test ! -r "$srcdir/$ac_unique_file"; then
cannam@86 1298 srcdir=..
cannam@86 1299 fi
cannam@86 1300 else
cannam@86 1301 ac_srcdir_defaulted=no
cannam@86 1302 fi
cannam@86 1303 if test ! -r "$srcdir/$ac_unique_file"; then
cannam@86 1304 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cannam@86 1305 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cannam@86 1306 fi
cannam@86 1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
cannam@86 1308 ac_abs_confdir=`(
cannam@86 1309 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cannam@86 1310 pwd)`
cannam@86 1311 # When building in place, set srcdir=.
cannam@86 1312 if test "$ac_abs_confdir" = "$ac_pwd"; then
cannam@86 1313 srcdir=.
cannam@86 1314 fi
cannam@86 1315 # Remove unnecessary trailing slashes from srcdir.
cannam@86 1316 # Double slashes in file names in object file debugging info
cannam@86 1317 # mess up M-x gdb in Emacs.
cannam@86 1318 case $srcdir in
cannam@86 1319 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
cannam@86 1320 esac
cannam@86 1321 for ac_var in $ac_precious_vars; do
cannam@86 1322 eval ac_env_${ac_var}_set=\${${ac_var}+set}
cannam@86 1323 eval ac_env_${ac_var}_value=\$${ac_var}
cannam@86 1324 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
cannam@86 1325 eval ac_cv_env_${ac_var}_value=\$${ac_var}
cannam@86 1326 done
cannam@86 1327
cannam@86 1328 #
cannam@86 1329 # Report the --help message.
cannam@86 1330 #
cannam@86 1331 if test "$ac_init_help" = "long"; then
cannam@86 1332 # Omit some internal or obsolete options to make the list less imposing.
cannam@86 1333 # This message is too long to be a string in the A/UX 3.1 sh.
cannam@86 1334 cat <<_ACEOF
cannam@86 1335 \`configure' configures libvorbis 1.3.3 to adapt to many kinds of systems.
cannam@86 1336
cannam@86 1337 Usage: $0 [OPTION]... [VAR=VALUE]...
cannam@86 1338
cannam@86 1339 To assign environment variables (e.g., CC, CFLAGS...), specify them as
cannam@86 1340 VAR=VALUE. See below for descriptions of some of the useful variables.
cannam@86 1341
cannam@86 1342 Defaults for the options are specified in brackets.
cannam@86 1343
cannam@86 1344 Configuration:
cannam@86 1345 -h, --help display this help and exit
cannam@86 1346 --help=short display options specific to this package
cannam@86 1347 --help=recursive display the short help of all the included packages
cannam@86 1348 -V, --version display version information and exit
cannam@86 1349 -q, --quiet, --silent do not print \`checking ...' messages
cannam@86 1350 --cache-file=FILE cache test results in FILE [disabled]
cannam@86 1351 -C, --config-cache alias for \`--cache-file=config.cache'
cannam@86 1352 -n, --no-create do not create output files
cannam@86 1353 --srcdir=DIR find the sources in DIR [configure dir or \`..']
cannam@86 1354
cannam@86 1355 Installation directories:
cannam@86 1356 --prefix=PREFIX install architecture-independent files in PREFIX
cannam@86 1357 [$ac_default_prefix]
cannam@86 1358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
cannam@86 1359 [PREFIX]
cannam@86 1360
cannam@86 1361 By default, \`make install' will install all the files in
cannam@86 1362 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
cannam@86 1363 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
cannam@86 1364 for instance \`--prefix=\$HOME'.
cannam@86 1365
cannam@86 1366 For better control, use the options below.
cannam@86 1367
cannam@86 1368 Fine tuning of the installation directories:
cannam@86 1369 --bindir=DIR user executables [EPREFIX/bin]
cannam@86 1370 --sbindir=DIR system admin executables [EPREFIX/sbin]
cannam@86 1371 --libexecdir=DIR program executables [EPREFIX/libexec]
cannam@86 1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
cannam@86 1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
cannam@86 1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
cannam@86 1375 --libdir=DIR object code libraries [EPREFIX/lib]
cannam@86 1376 --includedir=DIR C header files [PREFIX/include]
cannam@86 1377 --oldincludedir=DIR C header files for non-gcc [/usr/include]
cannam@86 1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
cannam@86 1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
cannam@86 1380 --infodir=DIR info documentation [DATAROOTDIR/info]
cannam@86 1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
cannam@86 1382 --mandir=DIR man documentation [DATAROOTDIR/man]
cannam@86 1383 --docdir=DIR documentation root [DATAROOTDIR/doc/libvorbis]
cannam@86 1384 --htmldir=DIR html documentation [DOCDIR]
cannam@86 1385 --dvidir=DIR dvi documentation [DOCDIR]
cannam@86 1386 --pdfdir=DIR pdf documentation [DOCDIR]
cannam@86 1387 --psdir=DIR ps documentation [DOCDIR]
cannam@86 1388 _ACEOF
cannam@86 1389
cannam@86 1390 cat <<\_ACEOF
cannam@86 1391
cannam@86 1392 Program names:
cannam@86 1393 --program-prefix=PREFIX prepend PREFIX to installed program names
cannam@86 1394 --program-suffix=SUFFIX append SUFFIX to installed program names
cannam@86 1395 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
cannam@86 1396
cannam@86 1397 System types:
cannam@86 1398 --build=BUILD configure for building on BUILD [guessed]
cannam@86 1399 --host=HOST cross-compile to build programs to run on HOST [BUILD]
cannam@86 1400 --target=TARGET configure for building compilers for TARGET [HOST]
cannam@86 1401 _ACEOF
cannam@86 1402 fi
cannam@86 1403
cannam@86 1404 if test -n "$ac_init_help"; then
cannam@86 1405 case $ac_init_help in
cannam@86 1406 short | recursive ) echo "Configuration of libvorbis 1.3.3:";;
cannam@86 1407 esac
cannam@86 1408 cat <<\_ACEOF
cannam@86 1409
cannam@86 1410 Optional Features:
cannam@86 1411 --disable-option-checking ignore unrecognized --enable/--with options
cannam@86 1412 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
cannam@86 1413 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cannam@86 1414 --enable-maintainer-mode enable make rules and dependencies not useful
cannam@86 1415 (and sometimes confusing) to the casual installer
cannam@86 1416 --disable-dependency-tracking speeds up one-time build
cannam@86 1417 --enable-dependency-tracking do not reject slow dependency extractors
cannam@86 1418 --enable-shared[=PKGS] build shared libraries [default=yes]
cannam@86 1419 --enable-static[=PKGS] build static libraries [default=yes]
cannam@86 1420 --enable-fast-install[=PKGS]
cannam@86 1421 optimize for fast installation [default=yes]
cannam@86 1422 --disable-libtool-lock avoid locking (might break parallel builds)
cannam@86 1423 --enable-docs build the documentation
cannam@86 1424 --enable-examples build the examples
cannam@86 1425 --disable-oggtest Do not try to compile and run a test Ogg program
cannam@86 1426
cannam@86 1427 Optional Packages:
cannam@86 1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
cannam@86 1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cannam@86 1430 --with-pic try to use only PIC/non-PIC objects [default=use
cannam@86 1431 both]
cannam@86 1432 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cannam@86 1433 --with-sysroot=DIR Search for dependent libraries within DIR
cannam@86 1434 (or the compiler's sysroot if not specified).
cannam@86 1435 --with-ogg=PFX Prefix where libogg is installed (optional)
cannam@86 1436 --with-ogg-libraries=DIR
cannam@86 1437 Directory where libogg library is installed
cannam@86 1438 (optional)
cannam@86 1439 --with-ogg-includes=DIR Directory where libogg header files are installed
cannam@86 1440 (optional)
cannam@86 1441
cannam@86 1442 Some influential environment variables:
cannam@86 1443 CC C compiler command
cannam@86 1444 CFLAGS C compiler flags
cannam@86 1445 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
cannam@86 1446 nonstandard directory <lib dir>
cannam@86 1447 LIBS libraries to pass to the linker, e.g. -l<library>
cannam@86 1448 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cannam@86 1449 you have headers in a nonstandard directory <include dir>
cannam@86 1450 CPP C preprocessor
cannam@86 1451 PKG_CONFIG path to pkg-config utility
cannam@86 1452 OGG_CFLAGS C compiler flags for OGG, overriding pkg-config
cannam@86 1453 OGG_LIBS linker flags for OGG, overriding pkg-config
cannam@86 1454
cannam@86 1455 Use these variables to override the choices made by `configure' or to help
cannam@86 1456 it to find libraries and programs with nonstandard names/locations.
cannam@86 1457
cannam@86 1458 Report bugs to <vorbis-dev@xiph.org>.
cannam@86 1459 _ACEOF
cannam@86 1460 ac_status=$?
cannam@86 1461 fi
cannam@86 1462
cannam@86 1463 if test "$ac_init_help" = "recursive"; then
cannam@86 1464 # If there are subdirs, report their specific --help.
cannam@86 1465 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
cannam@86 1466 test -d "$ac_dir" ||
cannam@86 1467 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
cannam@86 1468 continue
cannam@86 1469 ac_builddir=.
cannam@86 1470
cannam@86 1471 case "$ac_dir" in
cannam@86 1472 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@86 1473 *)
cannam@86 1474 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
cannam@86 1475 # A ".." for each directory in $ac_dir_suffix.
cannam@86 1476 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
cannam@86 1477 case $ac_top_builddir_sub in
cannam@86 1478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@86 1479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
cannam@86 1480 esac ;;
cannam@86 1481 esac
cannam@86 1482 ac_abs_top_builddir=$ac_pwd
cannam@86 1483 ac_abs_builddir=$ac_pwd$ac_dir_suffix
cannam@86 1484 # for backward compatibility:
cannam@86 1485 ac_top_builddir=$ac_top_build_prefix
cannam@86 1486
cannam@86 1487 case $srcdir in
cannam@86 1488 .) # We are building in place.
cannam@86 1489 ac_srcdir=.
cannam@86 1490 ac_top_srcdir=$ac_top_builddir_sub
cannam@86 1491 ac_abs_top_srcdir=$ac_pwd ;;
cannam@86 1492 [\\/]* | ?:[\\/]* ) # Absolute name.
cannam@86 1493 ac_srcdir=$srcdir$ac_dir_suffix;
cannam@86 1494 ac_top_srcdir=$srcdir
cannam@86 1495 ac_abs_top_srcdir=$srcdir ;;
cannam@86 1496 *) # Relative name.
cannam@86 1497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
cannam@86 1498 ac_top_srcdir=$ac_top_build_prefix$srcdir
cannam@86 1499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
cannam@86 1500 esac
cannam@86 1501 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
cannam@86 1502
cannam@86 1503 cd "$ac_dir" || { ac_status=$?; continue; }
cannam@86 1504 # Check for guested configure.
cannam@86 1505 if test -f "$ac_srcdir/configure.gnu"; then
cannam@86 1506 echo &&
cannam@86 1507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
cannam@86 1508 elif test -f "$ac_srcdir/configure"; then
cannam@86 1509 echo &&
cannam@86 1510 $SHELL "$ac_srcdir/configure" --help=recursive
cannam@86 1511 else
cannam@86 1512 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
cannam@86 1513 fi || ac_status=$?
cannam@86 1514 cd "$ac_pwd" || { ac_status=$?; break; }
cannam@86 1515 done
cannam@86 1516 fi
cannam@86 1517
cannam@86 1518 test -n "$ac_init_help" && exit $ac_status
cannam@86 1519 if $ac_init_version; then
cannam@86 1520 cat <<\_ACEOF
cannam@86 1521 libvorbis configure 1.3.3
cannam@86 1522 generated by GNU Autoconf 2.68
cannam@86 1523
cannam@86 1524 Copyright (C) 2010 Free Software Foundation, Inc.
cannam@86 1525 This configure script is free software; the Free Software Foundation
cannam@86 1526 gives unlimited permission to copy, distribute and modify it.
cannam@86 1527 _ACEOF
cannam@86 1528 exit
cannam@86 1529 fi
cannam@86 1530
cannam@86 1531 ## ------------------------ ##
cannam@86 1532 ## Autoconf initialization. ##
cannam@86 1533 ## ------------------------ ##
cannam@86 1534
cannam@86 1535 # ac_fn_c_try_compile LINENO
cannam@86 1536 # --------------------------
cannam@86 1537 # Try to compile conftest.$ac_ext, and return whether this succeeded.
cannam@86 1538 ac_fn_c_try_compile ()
cannam@86 1539 {
cannam@86 1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@86 1541 rm -f conftest.$ac_objext
cannam@86 1542 if { { ac_try="$ac_compile"
cannam@86 1543 case "(($ac_try" in
cannam@86 1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 1545 *) ac_try_echo=$ac_try;;
cannam@86 1546 esac
cannam@86 1547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 1548 $as_echo "$ac_try_echo"; } >&5
cannam@86 1549 (eval "$ac_compile") 2>conftest.err
cannam@86 1550 ac_status=$?
cannam@86 1551 if test -s conftest.err; then
cannam@86 1552 grep -v '^ *+' conftest.err >conftest.er1
cannam@86 1553 cat conftest.er1 >&5
cannam@86 1554 mv -f conftest.er1 conftest.err
cannam@86 1555 fi
cannam@86 1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 1557 test $ac_status = 0; } && {
cannam@86 1558 test -z "$ac_c_werror_flag" ||
cannam@86 1559 test ! -s conftest.err
cannam@86 1560 } && test -s conftest.$ac_objext; then :
cannam@86 1561 ac_retval=0
cannam@86 1562 else
cannam@86 1563 $as_echo "$as_me: failed program was:" >&5
cannam@86 1564 sed 's/^/| /' conftest.$ac_ext >&5
cannam@86 1565
cannam@86 1566 ac_retval=1
cannam@86 1567 fi
cannam@86 1568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@86 1569 as_fn_set_status $ac_retval
cannam@86 1570
cannam@86 1571 } # ac_fn_c_try_compile
cannam@86 1572
cannam@86 1573 # ac_fn_c_try_cpp LINENO
cannam@86 1574 # ----------------------
cannam@86 1575 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
cannam@86 1576 ac_fn_c_try_cpp ()
cannam@86 1577 {
cannam@86 1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@86 1579 if { { ac_try="$ac_cpp conftest.$ac_ext"
cannam@86 1580 case "(($ac_try" in
cannam@86 1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 1582 *) ac_try_echo=$ac_try;;
cannam@86 1583 esac
cannam@86 1584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 1585 $as_echo "$ac_try_echo"; } >&5
cannam@86 1586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
cannam@86 1587 ac_status=$?
cannam@86 1588 if test -s conftest.err; then
cannam@86 1589 grep -v '^ *+' conftest.err >conftest.er1
cannam@86 1590 cat conftest.er1 >&5
cannam@86 1591 mv -f conftest.er1 conftest.err
cannam@86 1592 fi
cannam@86 1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 1594 test $ac_status = 0; } > conftest.i && {
cannam@86 1595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
cannam@86 1596 test ! -s conftest.err
cannam@86 1597 }; then :
cannam@86 1598 ac_retval=0
cannam@86 1599 else
cannam@86 1600 $as_echo "$as_me: failed program was:" >&5
cannam@86 1601 sed 's/^/| /' conftest.$ac_ext >&5
cannam@86 1602
cannam@86 1603 ac_retval=1
cannam@86 1604 fi
cannam@86 1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@86 1606 as_fn_set_status $ac_retval
cannam@86 1607
cannam@86 1608 } # ac_fn_c_try_cpp
cannam@86 1609
cannam@86 1610 # ac_fn_c_try_link LINENO
cannam@86 1611 # -----------------------
cannam@86 1612 # Try to link conftest.$ac_ext, and return whether this succeeded.
cannam@86 1613 ac_fn_c_try_link ()
cannam@86 1614 {
cannam@86 1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@86 1616 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@86 1617 if { { ac_try="$ac_link"
cannam@86 1618 case "(($ac_try" in
cannam@86 1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 1620 *) ac_try_echo=$ac_try;;
cannam@86 1621 esac
cannam@86 1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 1623 $as_echo "$ac_try_echo"; } >&5
cannam@86 1624 (eval "$ac_link") 2>conftest.err
cannam@86 1625 ac_status=$?
cannam@86 1626 if test -s conftest.err; then
cannam@86 1627 grep -v '^ *+' conftest.err >conftest.er1
cannam@86 1628 cat conftest.er1 >&5
cannam@86 1629 mv -f conftest.er1 conftest.err
cannam@86 1630 fi
cannam@86 1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 1632 test $ac_status = 0; } && {
cannam@86 1633 test -z "$ac_c_werror_flag" ||
cannam@86 1634 test ! -s conftest.err
cannam@86 1635 } && test -s conftest$ac_exeext && {
cannam@86 1636 test "$cross_compiling" = yes ||
cannam@86 1637 $as_test_x conftest$ac_exeext
cannam@86 1638 }; then :
cannam@86 1639 ac_retval=0
cannam@86 1640 else
cannam@86 1641 $as_echo "$as_me: failed program was:" >&5
cannam@86 1642 sed 's/^/| /' conftest.$ac_ext >&5
cannam@86 1643
cannam@86 1644 ac_retval=1
cannam@86 1645 fi
cannam@86 1646 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
cannam@86 1647 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
cannam@86 1648 # interfere with the next link command; also delete a directory that is
cannam@86 1649 # left behind by Apple's compiler. We do this before executing the actions.
cannam@86 1650 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cannam@86 1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@86 1652 as_fn_set_status $ac_retval
cannam@86 1653
cannam@86 1654 } # ac_fn_c_try_link
cannam@86 1655
cannam@86 1656 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
cannam@86 1657 # -------------------------------------------------------
cannam@86 1658 # Tests whether HEADER exists and can be compiled using the include files in
cannam@86 1659 # INCLUDES, setting the cache variable VAR accordingly.
cannam@86 1660 ac_fn_c_check_header_compile ()
cannam@86 1661 {
cannam@86 1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@86 1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@86 1664 $as_echo_n "checking for $2... " >&6; }
cannam@86 1665 if eval \${$3+:} false; then :
cannam@86 1666 $as_echo_n "(cached) " >&6
cannam@86 1667 else
cannam@86 1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 1669 /* end confdefs.h. */
cannam@86 1670 $4
cannam@86 1671 #include <$2>
cannam@86 1672 _ACEOF
cannam@86 1673 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 1674 eval "$3=yes"
cannam@86 1675 else
cannam@86 1676 eval "$3=no"
cannam@86 1677 fi
cannam@86 1678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 1679 fi
cannam@86 1680 eval ac_res=\$$3
cannam@86 1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@86 1682 $as_echo "$ac_res" >&6; }
cannam@86 1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@86 1684
cannam@86 1685 } # ac_fn_c_check_header_compile
cannam@86 1686
cannam@86 1687 # ac_fn_c_try_run LINENO
cannam@86 1688 # ----------------------
cannam@86 1689 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
cannam@86 1690 # that executables *can* be run.
cannam@86 1691 ac_fn_c_try_run ()
cannam@86 1692 {
cannam@86 1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@86 1694 if { { ac_try="$ac_link"
cannam@86 1695 case "(($ac_try" in
cannam@86 1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 1697 *) ac_try_echo=$ac_try;;
cannam@86 1698 esac
cannam@86 1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 1700 $as_echo "$ac_try_echo"; } >&5
cannam@86 1701 (eval "$ac_link") 2>&5
cannam@86 1702 ac_status=$?
cannam@86 1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 1704 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
cannam@86 1705 { { case "(($ac_try" in
cannam@86 1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 1707 *) ac_try_echo=$ac_try;;
cannam@86 1708 esac
cannam@86 1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 1710 $as_echo "$ac_try_echo"; } >&5
cannam@86 1711 (eval "$ac_try") 2>&5
cannam@86 1712 ac_status=$?
cannam@86 1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 1714 test $ac_status = 0; }; }; then :
cannam@86 1715 ac_retval=0
cannam@86 1716 else
cannam@86 1717 $as_echo "$as_me: program exited with status $ac_status" >&5
cannam@86 1718 $as_echo "$as_me: failed program was:" >&5
cannam@86 1719 sed 's/^/| /' conftest.$ac_ext >&5
cannam@86 1720
cannam@86 1721 ac_retval=$ac_status
cannam@86 1722 fi
cannam@86 1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cannam@86 1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@86 1725 as_fn_set_status $ac_retval
cannam@86 1726
cannam@86 1727 } # ac_fn_c_try_run
cannam@86 1728
cannam@86 1729 # ac_fn_c_check_func LINENO FUNC VAR
cannam@86 1730 # ----------------------------------
cannam@86 1731 # Tests whether FUNC exists, setting the cache variable VAR accordingly
cannam@86 1732 ac_fn_c_check_func ()
cannam@86 1733 {
cannam@86 1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@86 1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@86 1736 $as_echo_n "checking for $2... " >&6; }
cannam@86 1737 if eval \${$3+:} false; then :
cannam@86 1738 $as_echo_n "(cached) " >&6
cannam@86 1739 else
cannam@86 1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 1741 /* end confdefs.h. */
cannam@86 1742 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
cannam@86 1743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
cannam@86 1744 #define $2 innocuous_$2
cannam@86 1745
cannam@86 1746 /* System header to define __stub macros and hopefully few prototypes,
cannam@86 1747 which can conflict with char $2 (); below.
cannam@86 1748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@86 1749 <limits.h> exists even on freestanding compilers. */
cannam@86 1750
cannam@86 1751 #ifdef __STDC__
cannam@86 1752 # include <limits.h>
cannam@86 1753 #else
cannam@86 1754 # include <assert.h>
cannam@86 1755 #endif
cannam@86 1756
cannam@86 1757 #undef $2
cannam@86 1758
cannam@86 1759 /* Override any GCC internal prototype to avoid an error.
cannam@86 1760 Use char because int might match the return type of a GCC
cannam@86 1761 builtin and then its argument prototype would still apply. */
cannam@86 1762 #ifdef __cplusplus
cannam@86 1763 extern "C"
cannam@86 1764 #endif
cannam@86 1765 char $2 ();
cannam@86 1766 /* The GNU C library defines this for functions which it implements
cannam@86 1767 to always fail with ENOSYS. Some functions are actually named
cannam@86 1768 something starting with __ and the normal name is an alias. */
cannam@86 1769 #if defined __stub_$2 || defined __stub___$2
cannam@86 1770 choke me
cannam@86 1771 #endif
cannam@86 1772
cannam@86 1773 int
cannam@86 1774 main ()
cannam@86 1775 {
cannam@86 1776 return $2 ();
cannam@86 1777 ;
cannam@86 1778 return 0;
cannam@86 1779 }
cannam@86 1780 _ACEOF
cannam@86 1781 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 1782 eval "$3=yes"
cannam@86 1783 else
cannam@86 1784 eval "$3=no"
cannam@86 1785 fi
cannam@86 1786 rm -f core conftest.err conftest.$ac_objext \
cannam@86 1787 conftest$ac_exeext conftest.$ac_ext
cannam@86 1788 fi
cannam@86 1789 eval ac_res=\$$3
cannam@86 1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@86 1791 $as_echo "$ac_res" >&6; }
cannam@86 1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@86 1793
cannam@86 1794 } # ac_fn_c_check_func
cannam@86 1795
cannam@86 1796 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
cannam@86 1797 # -------------------------------------------------------
cannam@86 1798 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
cannam@86 1799 # the include files in INCLUDES and setting the cache variable VAR
cannam@86 1800 # accordingly.
cannam@86 1801 ac_fn_c_check_header_mongrel ()
cannam@86 1802 {
cannam@86 1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@86 1804 if eval \${$3+:} false; then :
cannam@86 1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@86 1806 $as_echo_n "checking for $2... " >&6; }
cannam@86 1807 if eval \${$3+:} false; then :
cannam@86 1808 $as_echo_n "(cached) " >&6
cannam@86 1809 fi
cannam@86 1810 eval ac_res=\$$3
cannam@86 1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@86 1812 $as_echo "$ac_res" >&6; }
cannam@86 1813 else
cannam@86 1814 # Is the header compilable?
cannam@86 1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
cannam@86 1816 $as_echo_n "checking $2 usability... " >&6; }
cannam@86 1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 1818 /* end confdefs.h. */
cannam@86 1819 $4
cannam@86 1820 #include <$2>
cannam@86 1821 _ACEOF
cannam@86 1822 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 1823 ac_header_compiler=yes
cannam@86 1824 else
cannam@86 1825 ac_header_compiler=no
cannam@86 1826 fi
cannam@86 1827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
cannam@86 1829 $as_echo "$ac_header_compiler" >&6; }
cannam@86 1830
cannam@86 1831 # Is the header present?
cannam@86 1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
cannam@86 1833 $as_echo_n "checking $2 presence... " >&6; }
cannam@86 1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 1835 /* end confdefs.h. */
cannam@86 1836 #include <$2>
cannam@86 1837 _ACEOF
cannam@86 1838 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@86 1839 ac_header_preproc=yes
cannam@86 1840 else
cannam@86 1841 ac_header_preproc=no
cannam@86 1842 fi
cannam@86 1843 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@86 1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
cannam@86 1845 $as_echo "$ac_header_preproc" >&6; }
cannam@86 1846
cannam@86 1847 # So? What about this header?
cannam@86 1848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
cannam@86 1849 yes:no: )
cannam@86 1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
cannam@86 1851 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
cannam@86 1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
cannam@86 1853 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cannam@86 1854 ;;
cannam@86 1855 no:yes:* )
cannam@86 1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
cannam@86 1857 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
cannam@86 1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
cannam@86 1859 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
cannam@86 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
cannam@86 1861 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
cannam@86 1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
cannam@86 1863 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
cannam@86 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
cannam@86 1865 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cannam@86 1866 ( $as_echo "## ---------------------------------- ##
cannam@86 1867 ## Report this to vorbis-dev@xiph.org ##
cannam@86 1868 ## ---------------------------------- ##"
cannam@86 1869 ) | sed "s/^/$as_me: WARNING: /" >&2
cannam@86 1870 ;;
cannam@86 1871 esac
cannam@86 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@86 1873 $as_echo_n "checking for $2... " >&6; }
cannam@86 1874 if eval \${$3+:} false; then :
cannam@86 1875 $as_echo_n "(cached) " >&6
cannam@86 1876 else
cannam@86 1877 eval "$3=\$ac_header_compiler"
cannam@86 1878 fi
cannam@86 1879 eval ac_res=\$$3
cannam@86 1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@86 1881 $as_echo "$ac_res" >&6; }
cannam@86 1882 fi
cannam@86 1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@86 1884
cannam@86 1885 } # ac_fn_c_check_header_mongrel
cannam@86 1886
cannam@86 1887 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
cannam@86 1888 # -------------------------------------------
cannam@86 1889 # Tests whether TYPE exists after having included INCLUDES, setting cache
cannam@86 1890 # variable VAR accordingly.
cannam@86 1891 ac_fn_c_check_type ()
cannam@86 1892 {
cannam@86 1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@86 1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@86 1895 $as_echo_n "checking for $2... " >&6; }
cannam@86 1896 if eval \${$3+:} false; then :
cannam@86 1897 $as_echo_n "(cached) " >&6
cannam@86 1898 else
cannam@86 1899 eval "$3=no"
cannam@86 1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 1901 /* end confdefs.h. */
cannam@86 1902 $4
cannam@86 1903 int
cannam@86 1904 main ()
cannam@86 1905 {
cannam@86 1906 if (sizeof ($2))
cannam@86 1907 return 0;
cannam@86 1908 ;
cannam@86 1909 return 0;
cannam@86 1910 }
cannam@86 1911 _ACEOF
cannam@86 1912 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 1914 /* end confdefs.h. */
cannam@86 1915 $4
cannam@86 1916 int
cannam@86 1917 main ()
cannam@86 1918 {
cannam@86 1919 if (sizeof (($2)))
cannam@86 1920 return 0;
cannam@86 1921 ;
cannam@86 1922 return 0;
cannam@86 1923 }
cannam@86 1924 _ACEOF
cannam@86 1925 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 1926
cannam@86 1927 else
cannam@86 1928 eval "$3=yes"
cannam@86 1929 fi
cannam@86 1930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 1931 fi
cannam@86 1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 1933 fi
cannam@86 1934 eval ac_res=\$$3
cannam@86 1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@86 1936 $as_echo "$ac_res" >&6; }
cannam@86 1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@86 1938
cannam@86 1939 } # ac_fn_c_check_type
cannam@86 1940 cat >config.log <<_ACEOF
cannam@86 1941 This file contains any messages produced by compilers while
cannam@86 1942 running configure, to aid debugging if configure makes a mistake.
cannam@86 1943
cannam@86 1944 It was created by libvorbis $as_me 1.3.3, which was
cannam@86 1945 generated by GNU Autoconf 2.68. Invocation command line was
cannam@86 1946
cannam@86 1947 $ $0 $@
cannam@86 1948
cannam@86 1949 _ACEOF
cannam@86 1950 exec 5>>config.log
cannam@86 1951 {
cannam@86 1952 cat <<_ASUNAME
cannam@86 1953 ## --------- ##
cannam@86 1954 ## Platform. ##
cannam@86 1955 ## --------- ##
cannam@86 1956
cannam@86 1957 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@86 1958 uname -m = `(uname -m) 2>/dev/null || echo unknown`
cannam@86 1959 uname -r = `(uname -r) 2>/dev/null || echo unknown`
cannam@86 1960 uname -s = `(uname -s) 2>/dev/null || echo unknown`
cannam@86 1961 uname -v = `(uname -v) 2>/dev/null || echo unknown`
cannam@86 1962
cannam@86 1963 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
cannam@86 1964 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
cannam@86 1965
cannam@86 1966 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
cannam@86 1967 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
cannam@86 1968 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
cannam@86 1969 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
cannam@86 1970 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
cannam@86 1971 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
cannam@86 1972 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
cannam@86 1973
cannam@86 1974 _ASUNAME
cannam@86 1975
cannam@86 1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 1977 for as_dir in $PATH
cannam@86 1978 do
cannam@86 1979 IFS=$as_save_IFS
cannam@86 1980 test -z "$as_dir" && as_dir=.
cannam@86 1981 $as_echo "PATH: $as_dir"
cannam@86 1982 done
cannam@86 1983 IFS=$as_save_IFS
cannam@86 1984
cannam@86 1985 } >&5
cannam@86 1986
cannam@86 1987 cat >&5 <<_ACEOF
cannam@86 1988
cannam@86 1989
cannam@86 1990 ## ----------- ##
cannam@86 1991 ## Core tests. ##
cannam@86 1992 ## ----------- ##
cannam@86 1993
cannam@86 1994 _ACEOF
cannam@86 1995
cannam@86 1996
cannam@86 1997 # Keep a trace of the command line.
cannam@86 1998 # Strip out --no-create and --no-recursion so they do not pile up.
cannam@86 1999 # Strip out --silent because we don't want to record it for future runs.
cannam@86 2000 # Also quote any args containing shell meta-characters.
cannam@86 2001 # Make two passes to allow for proper duplicate-argument suppression.
cannam@86 2002 ac_configure_args=
cannam@86 2003 ac_configure_args0=
cannam@86 2004 ac_configure_args1=
cannam@86 2005 ac_must_keep_next=false
cannam@86 2006 for ac_pass in 1 2
cannam@86 2007 do
cannam@86 2008 for ac_arg
cannam@86 2009 do
cannam@86 2010 case $ac_arg in
cannam@86 2011 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
cannam@86 2012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@86 2013 | -silent | --silent | --silen | --sile | --sil)
cannam@86 2014 continue ;;
cannam@86 2015 *\'*)
cannam@86 2016 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@86 2017 esac
cannam@86 2018 case $ac_pass in
cannam@86 2019 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cannam@86 2020 2)
cannam@86 2021 as_fn_append ac_configure_args1 " '$ac_arg'"
cannam@86 2022 if test $ac_must_keep_next = true; then
cannam@86 2023 ac_must_keep_next=false # Got value, back to normal.
cannam@86 2024 else
cannam@86 2025 case $ac_arg in
cannam@86 2026 *=* | --config-cache | -C | -disable-* | --disable-* \
cannam@86 2027 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
cannam@86 2028 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
cannam@86 2029 | -with-* | --with-* | -without-* | --without-* | --x)
cannam@86 2030 case "$ac_configure_args0 " in
cannam@86 2031 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
cannam@86 2032 esac
cannam@86 2033 ;;
cannam@86 2034 -* ) ac_must_keep_next=true ;;
cannam@86 2035 esac
cannam@86 2036 fi
cannam@86 2037 as_fn_append ac_configure_args " '$ac_arg'"
cannam@86 2038 ;;
cannam@86 2039 esac
cannam@86 2040 done
cannam@86 2041 done
cannam@86 2042 { ac_configure_args0=; unset ac_configure_args0;}
cannam@86 2043 { ac_configure_args1=; unset ac_configure_args1;}
cannam@86 2044
cannam@86 2045 # When interrupted or exit'd, cleanup temporary files, and complete
cannam@86 2046 # config.log. We remove comments because anyway the quotes in there
cannam@86 2047 # would cause problems or look ugly.
cannam@86 2048 # WARNING: Use '\'' to represent an apostrophe within the trap.
cannam@86 2049 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
cannam@86 2050 trap 'exit_status=$?
cannam@86 2051 # Save into config.log some information that might help in debugging.
cannam@86 2052 {
cannam@86 2053 echo
cannam@86 2054
cannam@86 2055 $as_echo "## ---------------- ##
cannam@86 2056 ## Cache variables. ##
cannam@86 2057 ## ---------------- ##"
cannam@86 2058 echo
cannam@86 2059 # The following way of writing the cache mishandles newlines in values,
cannam@86 2060 (
cannam@86 2061 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
cannam@86 2062 eval ac_val=\$$ac_var
cannam@86 2063 case $ac_val in #(
cannam@86 2064 *${as_nl}*)
cannam@86 2065 case $ac_var in #(
cannam@86 2066 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cannam@86 2067 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
cannam@86 2068 esac
cannam@86 2069 case $ac_var in #(
cannam@86 2070 _ | IFS | as_nl) ;; #(
cannam@86 2071 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cannam@86 2072 *) { eval $ac_var=; unset $ac_var;} ;;
cannam@86 2073 esac ;;
cannam@86 2074 esac
cannam@86 2075 done
cannam@86 2076 (set) 2>&1 |
cannam@86 2077 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
cannam@86 2078 *${as_nl}ac_space=\ *)
cannam@86 2079 sed -n \
cannam@86 2080 "s/'\''/'\''\\\\'\'''\''/g;
cannam@86 2081 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
cannam@86 2082 ;; #(
cannam@86 2083 *)
cannam@86 2084 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
cannam@86 2085 ;;
cannam@86 2086 esac |
cannam@86 2087 sort
cannam@86 2088 )
cannam@86 2089 echo
cannam@86 2090
cannam@86 2091 $as_echo "## ----------------- ##
cannam@86 2092 ## Output variables. ##
cannam@86 2093 ## ----------------- ##"
cannam@86 2094 echo
cannam@86 2095 for ac_var in $ac_subst_vars
cannam@86 2096 do
cannam@86 2097 eval ac_val=\$$ac_var
cannam@86 2098 case $ac_val in
cannam@86 2099 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
cannam@86 2100 esac
cannam@86 2101 $as_echo "$ac_var='\''$ac_val'\''"
cannam@86 2102 done | sort
cannam@86 2103 echo
cannam@86 2104
cannam@86 2105 if test -n "$ac_subst_files"; then
cannam@86 2106 $as_echo "## ------------------- ##
cannam@86 2107 ## File substitutions. ##
cannam@86 2108 ## ------------------- ##"
cannam@86 2109 echo
cannam@86 2110 for ac_var in $ac_subst_files
cannam@86 2111 do
cannam@86 2112 eval ac_val=\$$ac_var
cannam@86 2113 case $ac_val in
cannam@86 2114 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
cannam@86 2115 esac
cannam@86 2116 $as_echo "$ac_var='\''$ac_val'\''"
cannam@86 2117 done | sort
cannam@86 2118 echo
cannam@86 2119 fi
cannam@86 2120
cannam@86 2121 if test -s confdefs.h; then
cannam@86 2122 $as_echo "## ----------- ##
cannam@86 2123 ## confdefs.h. ##
cannam@86 2124 ## ----------- ##"
cannam@86 2125 echo
cannam@86 2126 cat confdefs.h
cannam@86 2127 echo
cannam@86 2128 fi
cannam@86 2129 test "$ac_signal" != 0 &&
cannam@86 2130 $as_echo "$as_me: caught signal $ac_signal"
cannam@86 2131 $as_echo "$as_me: exit $exit_status"
cannam@86 2132 } >&5
cannam@86 2133 rm -f core *.core core.conftest.* &&
cannam@86 2134 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
cannam@86 2135 exit $exit_status
cannam@86 2136 ' 0
cannam@86 2137 for ac_signal in 1 2 13 15; do
cannam@86 2138 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cannam@86 2139 done
cannam@86 2140 ac_signal=0
cannam@86 2141
cannam@86 2142 # confdefs.h avoids OS command line length limits that DEFS can exceed.
cannam@86 2143 rm -f -r conftest* confdefs.h
cannam@86 2144
cannam@86 2145 $as_echo "/* confdefs.h */" > confdefs.h
cannam@86 2146
cannam@86 2147 # Predefined preprocessor variables.
cannam@86 2148
cannam@86 2149 cat >>confdefs.h <<_ACEOF
cannam@86 2150 #define PACKAGE_NAME "$PACKAGE_NAME"
cannam@86 2151 _ACEOF
cannam@86 2152
cannam@86 2153 cat >>confdefs.h <<_ACEOF
cannam@86 2154 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
cannam@86 2155 _ACEOF
cannam@86 2156
cannam@86 2157 cat >>confdefs.h <<_ACEOF
cannam@86 2158 #define PACKAGE_VERSION "$PACKAGE_VERSION"
cannam@86 2159 _ACEOF
cannam@86 2160
cannam@86 2161 cat >>confdefs.h <<_ACEOF
cannam@86 2162 #define PACKAGE_STRING "$PACKAGE_STRING"
cannam@86 2163 _ACEOF
cannam@86 2164
cannam@86 2165 cat >>confdefs.h <<_ACEOF
cannam@86 2166 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
cannam@86 2167 _ACEOF
cannam@86 2168
cannam@86 2169 cat >>confdefs.h <<_ACEOF
cannam@86 2170 #define PACKAGE_URL "$PACKAGE_URL"
cannam@86 2171 _ACEOF
cannam@86 2172
cannam@86 2173
cannam@86 2174 # Let the site file select an alternate cache file if it wants to.
cannam@86 2175 # Prefer an explicitly selected file to automatically selected ones.
cannam@86 2176 ac_site_file1=NONE
cannam@86 2177 ac_site_file2=NONE
cannam@86 2178 if test -n "$CONFIG_SITE"; then
cannam@86 2179 # We do not want a PATH search for config.site.
cannam@86 2180 case $CONFIG_SITE in #((
cannam@86 2181 -*) ac_site_file1=./$CONFIG_SITE;;
cannam@86 2182 */*) ac_site_file1=$CONFIG_SITE;;
cannam@86 2183 *) ac_site_file1=./$CONFIG_SITE;;
cannam@86 2184 esac
cannam@86 2185 elif test "x$prefix" != xNONE; then
cannam@86 2186 ac_site_file1=$prefix/share/config.site
cannam@86 2187 ac_site_file2=$prefix/etc/config.site
cannam@86 2188 else
cannam@86 2189 ac_site_file1=$ac_default_prefix/share/config.site
cannam@86 2190 ac_site_file2=$ac_default_prefix/etc/config.site
cannam@86 2191 fi
cannam@86 2192 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
cannam@86 2193 do
cannam@86 2194 test "x$ac_site_file" = xNONE && continue
cannam@86 2195 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cannam@86 2196 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cannam@86 2197 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
cannam@86 2198 sed 's/^/| /' "$ac_site_file" >&5
cannam@86 2199 . "$ac_site_file" \
cannam@86 2200 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 2201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 2202 as_fn_error $? "failed to load site script $ac_site_file
cannam@86 2203 See \`config.log' for more details" "$LINENO" 5; }
cannam@86 2204 fi
cannam@86 2205 done
cannam@86 2206
cannam@86 2207 if test -r "$cache_file"; then
cannam@86 2208 # Some versions of bash will fail to source /dev/null (special files
cannam@86 2209 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
cannam@86 2210 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cannam@86 2211 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cannam@86 2212 $as_echo "$as_me: loading cache $cache_file" >&6;}
cannam@86 2213 case $cache_file in
cannam@86 2214 [\\/]* | ?:[\\/]* ) . "$cache_file";;
cannam@86 2215 *) . "./$cache_file";;
cannam@86 2216 esac
cannam@86 2217 fi
cannam@86 2218 else
cannam@86 2219 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cannam@86 2220 $as_echo "$as_me: creating cache $cache_file" >&6;}
cannam@86 2221 >$cache_file
cannam@86 2222 fi
cannam@86 2223
cannam@86 2224 # Check that the precious variables saved in the cache have kept the same
cannam@86 2225 # value.
cannam@86 2226 ac_cache_corrupted=false
cannam@86 2227 for ac_var in $ac_precious_vars; do
cannam@86 2228 eval ac_old_set=\$ac_cv_env_${ac_var}_set
cannam@86 2229 eval ac_new_set=\$ac_env_${ac_var}_set
cannam@86 2230 eval ac_old_val=\$ac_cv_env_${ac_var}_value
cannam@86 2231 eval ac_new_val=\$ac_env_${ac_var}_value
cannam@86 2232 case $ac_old_set,$ac_new_set in
cannam@86 2233 set,)
cannam@86 2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
cannam@86 2235 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
cannam@86 2236 ac_cache_corrupted=: ;;
cannam@86 2237 ,set)
cannam@86 2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cannam@86 2239 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
cannam@86 2240 ac_cache_corrupted=: ;;
cannam@86 2241 ,);;
cannam@86 2242 *)
cannam@86 2243 if test "x$ac_old_val" != "x$ac_new_val"; then
cannam@86 2244 # differences in whitespace do not lead to failure.
cannam@86 2245 ac_old_val_w=`echo x $ac_old_val`
cannam@86 2246 ac_new_val_w=`echo x $ac_new_val`
cannam@86 2247 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cannam@86 2248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cannam@86 2249 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
cannam@86 2250 ac_cache_corrupted=:
cannam@86 2251 else
cannam@86 2252 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
cannam@86 2253 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
cannam@86 2254 eval $ac_var=\$ac_old_val
cannam@86 2255 fi
cannam@86 2256 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cannam@86 2257 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cannam@86 2258 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cannam@86 2259 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
cannam@86 2260 fi;;
cannam@86 2261 esac
cannam@86 2262 # Pass precious variables to config.status.
cannam@86 2263 if test "$ac_new_set" = set; then
cannam@86 2264 case $ac_new_val in
cannam@86 2265 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@86 2266 *) ac_arg=$ac_var=$ac_new_val ;;
cannam@86 2267 esac
cannam@86 2268 case " $ac_configure_args " in
cannam@86 2269 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cannam@86 2270 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cannam@86 2271 esac
cannam@86 2272 fi
cannam@86 2273 done
cannam@86 2274 if $ac_cache_corrupted; then
cannam@86 2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 2276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cannam@86 2278 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cannam@86 2279 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cannam@86 2280 fi
cannam@86 2281 ## -------------------- ##
cannam@86 2282 ## Main body of script. ##
cannam@86 2283 ## -------------------- ##
cannam@86 2284
cannam@86 2285 ac_ext=c
cannam@86 2286 ac_cpp='$CPP $CPPFLAGS'
cannam@86 2287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@86 2288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@86 2289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@86 2290
cannam@86 2291
cannam@86 2292
cannam@86 2293
cannam@86 2294
cannam@86 2295 ac_aux_dir=
cannam@86 2296 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
cannam@86 2297 if test -f "$ac_dir/install-sh"; then
cannam@86 2298 ac_aux_dir=$ac_dir
cannam@86 2299 ac_install_sh="$ac_aux_dir/install-sh -c"
cannam@86 2300 break
cannam@86 2301 elif test -f "$ac_dir/install.sh"; then
cannam@86 2302 ac_aux_dir=$ac_dir
cannam@86 2303 ac_install_sh="$ac_aux_dir/install.sh -c"
cannam@86 2304 break
cannam@86 2305 elif test -f "$ac_dir/shtool"; then
cannam@86 2306 ac_aux_dir=$ac_dir
cannam@86 2307 ac_install_sh="$ac_aux_dir/shtool install -c"
cannam@86 2308 break
cannam@86 2309 fi
cannam@86 2310 done
cannam@86 2311 if test -z "$ac_aux_dir"; then
cannam@86 2312 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
cannam@86 2313 fi
cannam@86 2314
cannam@86 2315 # These three variables are undocumented and unsupported,
cannam@86 2316 # and are intended to be withdrawn in a future Autoconf release.
cannam@86 2317 # They can cause serious problems if a builder's source tree is in a directory
cannam@86 2318 # whose full name contains unusual characters.
cannam@86 2319 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
cannam@86 2320 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
cannam@86 2321 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
cannam@86 2322
cannam@86 2323
cannam@86 2324 # Make sure we can run config.sub.
cannam@86 2325 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cannam@86 2326 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cannam@86 2327
cannam@86 2328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cannam@86 2329 $as_echo_n "checking build system type... " >&6; }
cannam@86 2330 if ${ac_cv_build+:} false; then :
cannam@86 2331 $as_echo_n "(cached) " >&6
cannam@86 2332 else
cannam@86 2333 ac_build_alias=$build_alias
cannam@86 2334 test "x$ac_build_alias" = x &&
cannam@86 2335 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
cannam@86 2336 test "x$ac_build_alias" = x &&
cannam@86 2337 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cannam@86 2338 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cannam@86 2339 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cannam@86 2340
cannam@86 2341 fi
cannam@86 2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cannam@86 2343 $as_echo "$ac_cv_build" >&6; }
cannam@86 2344 case $ac_cv_build in
cannam@86 2345 *-*-*) ;;
cannam@86 2346 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cannam@86 2347 esac
cannam@86 2348 build=$ac_cv_build
cannam@86 2349 ac_save_IFS=$IFS; IFS='-'
cannam@86 2350 set x $ac_cv_build
cannam@86 2351 shift
cannam@86 2352 build_cpu=$1
cannam@86 2353 build_vendor=$2
cannam@86 2354 shift; shift
cannam@86 2355 # Remember, the first character of IFS is used to create $*,
cannam@86 2356 # except with old shells:
cannam@86 2357 build_os=$*
cannam@86 2358 IFS=$ac_save_IFS
cannam@86 2359 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
cannam@86 2360
cannam@86 2361
cannam@86 2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cannam@86 2363 $as_echo_n "checking host system type... " >&6; }
cannam@86 2364 if ${ac_cv_host+:} false; then :
cannam@86 2365 $as_echo_n "(cached) " >&6
cannam@86 2366 else
cannam@86 2367 if test "x$host_alias" = x; then
cannam@86 2368 ac_cv_host=$ac_cv_build
cannam@86 2369 else
cannam@86 2370 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cannam@86 2371 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cannam@86 2372 fi
cannam@86 2373
cannam@86 2374 fi
cannam@86 2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cannam@86 2376 $as_echo "$ac_cv_host" >&6; }
cannam@86 2377 case $ac_cv_host in
cannam@86 2378 *-*-*) ;;
cannam@86 2379 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cannam@86 2380 esac
cannam@86 2381 host=$ac_cv_host
cannam@86 2382 ac_save_IFS=$IFS; IFS='-'
cannam@86 2383 set x $ac_cv_host
cannam@86 2384 shift
cannam@86 2385 host_cpu=$1
cannam@86 2386 host_vendor=$2
cannam@86 2387 shift; shift
cannam@86 2388 # Remember, the first character of IFS is used to create $*,
cannam@86 2389 # except with old shells:
cannam@86 2390 host_os=$*
cannam@86 2391 IFS=$ac_save_IFS
cannam@86 2392 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
cannam@86 2393
cannam@86 2394
cannam@86 2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cannam@86 2396 $as_echo_n "checking target system type... " >&6; }
cannam@86 2397 if ${ac_cv_target+:} false; then :
cannam@86 2398 $as_echo_n "(cached) " >&6
cannam@86 2399 else
cannam@86 2400 if test "x$target_alias" = x; then
cannam@86 2401 ac_cv_target=$ac_cv_host
cannam@86 2402 else
cannam@86 2403 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cannam@86 2404 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cannam@86 2405 fi
cannam@86 2406
cannam@86 2407 fi
cannam@86 2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cannam@86 2409 $as_echo "$ac_cv_target" >&6; }
cannam@86 2410 case $ac_cv_target in
cannam@86 2411 *-*-*) ;;
cannam@86 2412 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cannam@86 2413 esac
cannam@86 2414 target=$ac_cv_target
cannam@86 2415 ac_save_IFS=$IFS; IFS='-'
cannam@86 2416 set x $ac_cv_target
cannam@86 2417 shift
cannam@86 2418 target_cpu=$1
cannam@86 2419 target_vendor=$2
cannam@86 2420 shift; shift
cannam@86 2421 # Remember, the first character of IFS is used to create $*,
cannam@86 2422 # except with old shells:
cannam@86 2423 target_os=$*
cannam@86 2424 IFS=$ac_save_IFS
cannam@86 2425 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
cannam@86 2426
cannam@86 2427
cannam@86 2428 # The aliases save the names the user supplied, while $host etc.
cannam@86 2429 # will get canonicalized.
cannam@86 2430 test -n "$target_alias" &&
cannam@86 2431 test "$program_prefix$program_suffix$program_transform_name" = \
cannam@86 2432 NONENONEs,x,x, &&
cannam@86 2433 program_prefix=${target_alias}-
cannam@86 2434
cannam@86 2435 am__api_version='1.11'
cannam@86 2436
cannam@86 2437 # Find a good install program. We prefer a C program (faster),
cannam@86 2438 # so one script is as good as another. But avoid the broken or
cannam@86 2439 # incompatible versions:
cannam@86 2440 # SysV /etc/install, /usr/sbin/install
cannam@86 2441 # SunOS /usr/etc/install
cannam@86 2442 # IRIX /sbin/install
cannam@86 2443 # AIX /bin/install
cannam@86 2444 # AmigaOS /C/install, which installs bootblocks on floppy discs
cannam@86 2445 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
cannam@86 2446 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
cannam@86 2447 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
cannam@86 2448 # OS/2's system install, which has a completely different semantic
cannam@86 2449 # ./install, which can be erroneously created by make from ./install.sh.
cannam@86 2450 # Reject install programs that cannot install multiple files.
cannam@86 2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cannam@86 2452 $as_echo_n "checking for a BSD-compatible install... " >&6; }
cannam@86 2453 if test -z "$INSTALL"; then
cannam@86 2454 if ${ac_cv_path_install+:} false; then :
cannam@86 2455 $as_echo_n "(cached) " >&6
cannam@86 2456 else
cannam@86 2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 2458 for as_dir in $PATH
cannam@86 2459 do
cannam@86 2460 IFS=$as_save_IFS
cannam@86 2461 test -z "$as_dir" && as_dir=.
cannam@86 2462 # Account for people who put trailing slashes in PATH elements.
cannam@86 2463 case $as_dir/ in #((
cannam@86 2464 ./ | .// | /[cC]/* | \
cannam@86 2465 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cannam@86 2466 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cannam@86 2467 /usr/ucb/* ) ;;
cannam@86 2468 *)
cannam@86 2469 # OSF1 and SCO ODT 3.0 have their own names for install.
cannam@86 2470 # Don't use installbsd from OSF since it installs stuff as root
cannam@86 2471 # by default.
cannam@86 2472 for ac_prog in ginstall scoinst install; do
cannam@86 2473 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 2474 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
cannam@86 2475 if test $ac_prog = install &&
cannam@86 2476 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
cannam@86 2477 # AIX install. It has an incompatible calling convention.
cannam@86 2478 :
cannam@86 2479 elif test $ac_prog = install &&
cannam@86 2480 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
cannam@86 2481 # program-specific install script used by HP pwplus--don't use.
cannam@86 2482 :
cannam@86 2483 else
cannam@86 2484 rm -rf conftest.one conftest.two conftest.dir
cannam@86 2485 echo one > conftest.one
cannam@86 2486 echo two > conftest.two
cannam@86 2487 mkdir conftest.dir
cannam@86 2488 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
cannam@86 2489 test -s conftest.one && test -s conftest.two &&
cannam@86 2490 test -s conftest.dir/conftest.one &&
cannam@86 2491 test -s conftest.dir/conftest.two
cannam@86 2492 then
cannam@86 2493 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
cannam@86 2494 break 3
cannam@86 2495 fi
cannam@86 2496 fi
cannam@86 2497 fi
cannam@86 2498 done
cannam@86 2499 done
cannam@86 2500 ;;
cannam@86 2501 esac
cannam@86 2502
cannam@86 2503 done
cannam@86 2504 IFS=$as_save_IFS
cannam@86 2505
cannam@86 2506 rm -rf conftest.one conftest.two conftest.dir
cannam@86 2507
cannam@86 2508 fi
cannam@86 2509 if test "${ac_cv_path_install+set}" = set; then
cannam@86 2510 INSTALL=$ac_cv_path_install
cannam@86 2511 else
cannam@86 2512 # As a last resort, use the slow shell script. Don't cache a
cannam@86 2513 # value for INSTALL within a source directory, because that will
cannam@86 2514 # break other packages using the cache if that directory is
cannam@86 2515 # removed, or if the value is a relative name.
cannam@86 2516 INSTALL=$ac_install_sh
cannam@86 2517 fi
cannam@86 2518 fi
cannam@86 2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cannam@86 2520 $as_echo "$INSTALL" >&6; }
cannam@86 2521
cannam@86 2522 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
cannam@86 2523 # It thinks the first close brace ends the variable substitution.
cannam@86 2524 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
cannam@86 2525
cannam@86 2526 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
cannam@86 2527
cannam@86 2528 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
cannam@86 2529
cannam@86 2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cannam@86 2531 $as_echo_n "checking whether build environment is sane... " >&6; }
cannam@86 2532 # Just in case
cannam@86 2533 sleep 1
cannam@86 2534 echo timestamp > conftest.file
cannam@86 2535 # Reject unsafe characters in $srcdir or the absolute working directory
cannam@86 2536 # name. Accept space and tab only in the latter.
cannam@86 2537 am_lf='
cannam@86 2538 '
cannam@86 2539 case `pwd` in
cannam@86 2540 *[\\\"\#\$\&\'\`$am_lf]*)
cannam@86 2541 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cannam@86 2542 esac
cannam@86 2543 case $srcdir in
cannam@86 2544 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cannam@86 2545 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cannam@86 2546 esac
cannam@86 2547
cannam@86 2548 # Do `set' in a subshell so we don't clobber the current shell's
cannam@86 2549 # arguments. Must try -L first in case configure is actually a
cannam@86 2550 # symlink; some systems play weird games with the mod time of symlinks
cannam@86 2551 # (eg FreeBSD returns the mod time of the symlink's containing
cannam@86 2552 # directory).
cannam@86 2553 if (
cannam@86 2554 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
cannam@86 2555 if test "$*" = "X"; then
cannam@86 2556 # -L didn't work.
cannam@86 2557 set X `ls -t "$srcdir/configure" conftest.file`
cannam@86 2558 fi
cannam@86 2559 rm -f conftest.file
cannam@86 2560 if test "$*" != "X $srcdir/configure conftest.file" \
cannam@86 2561 && test "$*" != "X conftest.file $srcdir/configure"; then
cannam@86 2562
cannam@86 2563 # If neither matched, then we have a broken ls. This can happen
cannam@86 2564 # if, for instance, CONFIG_SHELL is bash and it inherits a
cannam@86 2565 # broken ls alias from the environment. This has actually
cannam@86 2566 # happened. Such a system could not be considered "sane".
cannam@86 2567 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cannam@86 2568 alias in your environment" "$LINENO" 5
cannam@86 2569 fi
cannam@86 2570
cannam@86 2571 test "$2" = conftest.file
cannam@86 2572 )
cannam@86 2573 then
cannam@86 2574 # Ok.
cannam@86 2575 :
cannam@86 2576 else
cannam@86 2577 as_fn_error $? "newly created file is older than distributed files!
cannam@86 2578 Check your system clock" "$LINENO" 5
cannam@86 2579 fi
cannam@86 2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@86 2581 $as_echo "yes" >&6; }
cannam@86 2582 test "$program_prefix" != NONE &&
cannam@86 2583 program_transform_name="s&^&$program_prefix&;$program_transform_name"
cannam@86 2584 # Use a double $ so make ignores it.
cannam@86 2585 test "$program_suffix" != NONE &&
cannam@86 2586 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
cannam@86 2587 # Double any \ or $.
cannam@86 2588 # By default was `s,x,x', remove it if useless.
cannam@86 2589 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
cannam@86 2590 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cannam@86 2591
cannam@86 2592 # expand $ac_aux_dir to an absolute path
cannam@86 2593 am_aux_dir=`cd $ac_aux_dir && pwd`
cannam@86 2594
cannam@86 2595 if test x"${MISSING+set}" != xset; then
cannam@86 2596 case $am_aux_dir in
cannam@86 2597 *\ * | *\ *)
cannam@86 2598 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
cannam@86 2599 *)
cannam@86 2600 MISSING="\${SHELL} $am_aux_dir/missing" ;;
cannam@86 2601 esac
cannam@86 2602 fi
cannam@86 2603 # Use eval to expand $SHELL
cannam@86 2604 if eval "$MISSING --run true"; then
cannam@86 2605 am_missing_run="$MISSING --run "
cannam@86 2606 else
cannam@86 2607 am_missing_run=
cannam@86 2608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cannam@86 2609 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
cannam@86 2610 fi
cannam@86 2611
cannam@86 2612 if test x"${install_sh}" != xset; then
cannam@86 2613 case $am_aux_dir in
cannam@86 2614 *\ * | *\ *)
cannam@86 2615 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
cannam@86 2616 *)
cannam@86 2617 install_sh="\${SHELL} $am_aux_dir/install-sh"
cannam@86 2618 esac
cannam@86 2619 fi
cannam@86 2620
cannam@86 2621 # Installed binaries are usually stripped using `strip' when the user
cannam@86 2622 # run `make install-strip'. However `strip' might not be the right
cannam@86 2623 # tool to use in cross-compilation environments, therefore Automake
cannam@86 2624 # will honor the `STRIP' environment variable to overrule this program.
cannam@86 2625 if test "$cross_compiling" != no; then
cannam@86 2626 if test -n "$ac_tool_prefix"; then
cannam@86 2627 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
cannam@86 2628 set dummy ${ac_tool_prefix}strip; ac_word=$2
cannam@86 2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 2630 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 2631 if ${ac_cv_prog_STRIP+:} false; then :
cannam@86 2632 $as_echo_n "(cached) " >&6
cannam@86 2633 else
cannam@86 2634 if test -n "$STRIP"; then
cannam@86 2635 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
cannam@86 2636 else
cannam@86 2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 2638 for as_dir in $PATH
cannam@86 2639 do
cannam@86 2640 IFS=$as_save_IFS
cannam@86 2641 test -z "$as_dir" && as_dir=.
cannam@86 2642 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 2643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 2644 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cannam@86 2645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 2646 break 2
cannam@86 2647 fi
cannam@86 2648 done
cannam@86 2649 done
cannam@86 2650 IFS=$as_save_IFS
cannam@86 2651
cannam@86 2652 fi
cannam@86 2653 fi
cannam@86 2654 STRIP=$ac_cv_prog_STRIP
cannam@86 2655 if test -n "$STRIP"; then
cannam@86 2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cannam@86 2657 $as_echo "$STRIP" >&6; }
cannam@86 2658 else
cannam@86 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 2660 $as_echo "no" >&6; }
cannam@86 2661 fi
cannam@86 2662
cannam@86 2663
cannam@86 2664 fi
cannam@86 2665 if test -z "$ac_cv_prog_STRIP"; then
cannam@86 2666 ac_ct_STRIP=$STRIP
cannam@86 2667 # Extract the first word of "strip", so it can be a program name with args.
cannam@86 2668 set dummy strip; ac_word=$2
cannam@86 2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 2670 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 2671 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cannam@86 2672 $as_echo_n "(cached) " >&6
cannam@86 2673 else
cannam@86 2674 if test -n "$ac_ct_STRIP"; then
cannam@86 2675 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
cannam@86 2676 else
cannam@86 2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 2678 for as_dir in $PATH
cannam@86 2679 do
cannam@86 2680 IFS=$as_save_IFS
cannam@86 2681 test -z "$as_dir" && as_dir=.
cannam@86 2682 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 2683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 2684 ac_cv_prog_ac_ct_STRIP="strip"
cannam@86 2685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 2686 break 2
cannam@86 2687 fi
cannam@86 2688 done
cannam@86 2689 done
cannam@86 2690 IFS=$as_save_IFS
cannam@86 2691
cannam@86 2692 fi
cannam@86 2693 fi
cannam@86 2694 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
cannam@86 2695 if test -n "$ac_ct_STRIP"; then
cannam@86 2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cannam@86 2697 $as_echo "$ac_ct_STRIP" >&6; }
cannam@86 2698 else
cannam@86 2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 2700 $as_echo "no" >&6; }
cannam@86 2701 fi
cannam@86 2702
cannam@86 2703 if test "x$ac_ct_STRIP" = x; then
cannam@86 2704 STRIP=":"
cannam@86 2705 else
cannam@86 2706 case $cross_compiling:$ac_tool_warned in
cannam@86 2707 yes:)
cannam@86 2708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 2709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 2710 ac_tool_warned=yes ;;
cannam@86 2711 esac
cannam@86 2712 STRIP=$ac_ct_STRIP
cannam@86 2713 fi
cannam@86 2714 else
cannam@86 2715 STRIP="$ac_cv_prog_STRIP"
cannam@86 2716 fi
cannam@86 2717
cannam@86 2718 fi
cannam@86 2719 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
cannam@86 2720
cannam@86 2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cannam@86 2722 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
cannam@86 2723 if test -z "$MKDIR_P"; then
cannam@86 2724 if ${ac_cv_path_mkdir+:} false; then :
cannam@86 2725 $as_echo_n "(cached) " >&6
cannam@86 2726 else
cannam@86 2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 2728 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
cannam@86 2729 do
cannam@86 2730 IFS=$as_save_IFS
cannam@86 2731 test -z "$as_dir" && as_dir=.
cannam@86 2732 for ac_prog in mkdir gmkdir; do
cannam@86 2733 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 2734 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
cannam@86 2735 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
cannam@86 2736 'mkdir (GNU coreutils) '* | \
cannam@86 2737 'mkdir (coreutils) '* | \
cannam@86 2738 'mkdir (fileutils) '4.1*)
cannam@86 2739 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
cannam@86 2740 break 3;;
cannam@86 2741 esac
cannam@86 2742 done
cannam@86 2743 done
cannam@86 2744 done
cannam@86 2745 IFS=$as_save_IFS
cannam@86 2746
cannam@86 2747 fi
cannam@86 2748
cannam@86 2749 test -d ./--version && rmdir ./--version
cannam@86 2750 if test "${ac_cv_path_mkdir+set}" = set; then
cannam@86 2751 MKDIR_P="$ac_cv_path_mkdir -p"
cannam@86 2752 else
cannam@86 2753 # As a last resort, use the slow shell script. Don't cache a
cannam@86 2754 # value for MKDIR_P within a source directory, because that will
cannam@86 2755 # break other packages using the cache if that directory is
cannam@86 2756 # removed, or if the value is a relative name.
cannam@86 2757 MKDIR_P="$ac_install_sh -d"
cannam@86 2758 fi
cannam@86 2759 fi
cannam@86 2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cannam@86 2761 $as_echo "$MKDIR_P" >&6; }
cannam@86 2762
cannam@86 2763 mkdir_p="$MKDIR_P"
cannam@86 2764 case $mkdir_p in
cannam@86 2765 [\\/$]* | ?:[\\/]*) ;;
cannam@86 2766 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
cannam@86 2767 esac
cannam@86 2768
cannam@86 2769 for ac_prog in gawk mawk nawk awk
cannam@86 2770 do
cannam@86 2771 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@86 2772 set dummy $ac_prog; ac_word=$2
cannam@86 2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 2774 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 2775 if ${ac_cv_prog_AWK+:} false; then :
cannam@86 2776 $as_echo_n "(cached) " >&6
cannam@86 2777 else
cannam@86 2778 if test -n "$AWK"; then
cannam@86 2779 ac_cv_prog_AWK="$AWK" # Let the user override the test.
cannam@86 2780 else
cannam@86 2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 2782 for as_dir in $PATH
cannam@86 2783 do
cannam@86 2784 IFS=$as_save_IFS
cannam@86 2785 test -z "$as_dir" && as_dir=.
cannam@86 2786 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 2787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 2788 ac_cv_prog_AWK="$ac_prog"
cannam@86 2789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 2790 break 2
cannam@86 2791 fi
cannam@86 2792 done
cannam@86 2793 done
cannam@86 2794 IFS=$as_save_IFS
cannam@86 2795
cannam@86 2796 fi
cannam@86 2797 fi
cannam@86 2798 AWK=$ac_cv_prog_AWK
cannam@86 2799 if test -n "$AWK"; then
cannam@86 2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cannam@86 2801 $as_echo "$AWK" >&6; }
cannam@86 2802 else
cannam@86 2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 2804 $as_echo "no" >&6; }
cannam@86 2805 fi
cannam@86 2806
cannam@86 2807
cannam@86 2808 test -n "$AWK" && break
cannam@86 2809 done
cannam@86 2810
cannam@86 2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cannam@86 2812 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
cannam@86 2813 set x ${MAKE-make}
cannam@86 2814 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cannam@86 2815 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cannam@86 2816 $as_echo_n "(cached) " >&6
cannam@86 2817 else
cannam@86 2818 cat >conftest.make <<\_ACEOF
cannam@86 2819 SHELL = /bin/sh
cannam@86 2820 all:
cannam@86 2821 @echo '@@@%%%=$(MAKE)=@@@%%%'
cannam@86 2822 _ACEOF
cannam@86 2823 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cannam@86 2824 case `${MAKE-make} -f conftest.make 2>/dev/null` in
cannam@86 2825 *@@@%%%=?*=@@@%%%*)
cannam@86 2826 eval ac_cv_prog_make_${ac_make}_set=yes;;
cannam@86 2827 *)
cannam@86 2828 eval ac_cv_prog_make_${ac_make}_set=no;;
cannam@86 2829 esac
cannam@86 2830 rm -f conftest.make
cannam@86 2831 fi
cannam@86 2832 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cannam@86 2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@86 2834 $as_echo "yes" >&6; }
cannam@86 2835 SET_MAKE=
cannam@86 2836 else
cannam@86 2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 2838 $as_echo "no" >&6; }
cannam@86 2839 SET_MAKE="MAKE=${MAKE-make}"
cannam@86 2840 fi
cannam@86 2841
cannam@86 2842 rm -rf .tst 2>/dev/null
cannam@86 2843 mkdir .tst 2>/dev/null
cannam@86 2844 if test -d .tst; then
cannam@86 2845 am__leading_dot=.
cannam@86 2846 else
cannam@86 2847 am__leading_dot=_
cannam@86 2848 fi
cannam@86 2849 rmdir .tst 2>/dev/null
cannam@86 2850
cannam@86 2851 if test "`cd $srcdir && pwd`" != "`pwd`"; then
cannam@86 2852 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
cannam@86 2853 # is not polluted with repeated "-I."
cannam@86 2854 am__isrc=' -I$(srcdir)'
cannam@86 2855 # test to see if srcdir already configured
cannam@86 2856 if test -f $srcdir/config.status; then
cannam@86 2857 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cannam@86 2858 fi
cannam@86 2859 fi
cannam@86 2860
cannam@86 2861 # test whether we have cygpath
cannam@86 2862 if test -z "$CYGPATH_W"; then
cannam@86 2863 if (cygpath --version) >/dev/null 2>/dev/null; then
cannam@86 2864 CYGPATH_W='cygpath -w'
cannam@86 2865 else
cannam@86 2866 CYGPATH_W=echo
cannam@86 2867 fi
cannam@86 2868 fi
cannam@86 2869
cannam@86 2870
cannam@86 2871 # Define the identity of the package.
cannam@86 2872 PACKAGE=$PACKAGE_NAME
cannam@86 2873 VERSION=$PACKAGE_VERSION
cannam@86 2874
cannam@86 2875
cannam@86 2876 cat >>confdefs.h <<_ACEOF
cannam@86 2877 #define PACKAGE "$PACKAGE"
cannam@86 2878 _ACEOF
cannam@86 2879
cannam@86 2880
cannam@86 2881 cat >>confdefs.h <<_ACEOF
cannam@86 2882 #define VERSION "$VERSION"
cannam@86 2883 _ACEOF
cannam@86 2884
cannam@86 2885 # Some tools Automake needs.
cannam@86 2886
cannam@86 2887 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
cannam@86 2888
cannam@86 2889
cannam@86 2890 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
cannam@86 2891
cannam@86 2892
cannam@86 2893 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
cannam@86 2894
cannam@86 2895
cannam@86 2896 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
cannam@86 2897
cannam@86 2898
cannam@86 2899 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
cannam@86 2900
cannam@86 2901 # We need awk for the "check" target. The system "awk" is bad on
cannam@86 2902 # some platforms.
cannam@86 2903 # Always define AMTAR for backward compatibility.
cannam@86 2904
cannam@86 2905 AMTAR=${AMTAR-"${am_missing_run}tar"}
cannam@86 2906
cannam@86 2907 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
cannam@86 2908
cannam@86 2909
cannam@86 2910
cannam@86 2911
cannam@86 2912
cannam@86 2913
cannam@86 2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cannam@86 2915 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
cannam@86 2916 # Check whether --enable-maintainer-mode was given.
cannam@86 2917 if test "${enable_maintainer_mode+set}" = set; then :
cannam@86 2918 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
cannam@86 2919 else
cannam@86 2920 USE_MAINTAINER_MODE=no
cannam@86 2921 fi
cannam@86 2922
cannam@86 2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cannam@86 2924 $as_echo "$USE_MAINTAINER_MODE" >&6; }
cannam@86 2925 if test $USE_MAINTAINER_MODE = yes; then
cannam@86 2926 MAINTAINER_MODE_TRUE=
cannam@86 2927 MAINTAINER_MODE_FALSE='#'
cannam@86 2928 else
cannam@86 2929 MAINTAINER_MODE_TRUE='#'
cannam@86 2930 MAINTAINER_MODE_FALSE=
cannam@86 2931 fi
cannam@86 2932
cannam@86 2933 MAINT=$MAINTAINER_MODE_TRUE
cannam@86 2934
cannam@86 2935
cannam@86 2936 ac_config_headers="$ac_config_headers config.h"
cannam@86 2937
cannam@86 2938
cannam@86 2939 ACLOCAL_AMFLAGS="-I m4"
cannam@86 2940
cannam@86 2941
cannam@86 2942
cannam@86 2943 V_LIB_CURRENT=4
cannam@86 2944 V_LIB_REVISION=6
cannam@86 2945 V_LIB_AGE=4
cannam@86 2946
cannam@86 2947 VF_LIB_CURRENT=6
cannam@86 2948 VF_LIB_REVISION=5
cannam@86 2949 VF_LIB_AGE=3
cannam@86 2950
cannam@86 2951 VE_LIB_CURRENT=2
cannam@86 2952 VE_LIB_REVISION=9
cannam@86 2953 VE_LIB_AGE=0
cannam@86 2954
cannam@86 2955
cannam@86 2956
cannam@86 2957
cannam@86 2958
cannam@86 2959
cannam@86 2960
cannam@86 2961
cannam@86 2962
cannam@86 2963
cannam@86 2964
cannam@86 2965
cannam@86 2966 cflags_save="$CFLAGS"
cannam@86 2967 ac_ext=c
cannam@86 2968 ac_cpp='$CPP $CPPFLAGS'
cannam@86 2969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@86 2970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@86 2971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@86 2972 if test -n "$ac_tool_prefix"; then
cannam@86 2973 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
cannam@86 2974 set dummy ${ac_tool_prefix}gcc; ac_word=$2
cannam@86 2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 2976 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 2977 if ${ac_cv_prog_CC+:} false; then :
cannam@86 2978 $as_echo_n "(cached) " >&6
cannam@86 2979 else
cannam@86 2980 if test -n "$CC"; then
cannam@86 2981 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@86 2982 else
cannam@86 2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 2984 for as_dir in $PATH
cannam@86 2985 do
cannam@86 2986 IFS=$as_save_IFS
cannam@86 2987 test -z "$as_dir" && as_dir=.
cannam@86 2988 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 2990 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cannam@86 2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 2992 break 2
cannam@86 2993 fi
cannam@86 2994 done
cannam@86 2995 done
cannam@86 2996 IFS=$as_save_IFS
cannam@86 2997
cannam@86 2998 fi
cannam@86 2999 fi
cannam@86 3000 CC=$ac_cv_prog_CC
cannam@86 3001 if test -n "$CC"; then
cannam@86 3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@86 3003 $as_echo "$CC" >&6; }
cannam@86 3004 else
cannam@86 3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 3006 $as_echo "no" >&6; }
cannam@86 3007 fi
cannam@86 3008
cannam@86 3009
cannam@86 3010 fi
cannam@86 3011 if test -z "$ac_cv_prog_CC"; then
cannam@86 3012 ac_ct_CC=$CC
cannam@86 3013 # Extract the first word of "gcc", so it can be a program name with args.
cannam@86 3014 set dummy gcc; ac_word=$2
cannam@86 3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 3016 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 3017 if ${ac_cv_prog_ac_ct_CC+:} false; then :
cannam@86 3018 $as_echo_n "(cached) " >&6
cannam@86 3019 else
cannam@86 3020 if test -n "$ac_ct_CC"; then
cannam@86 3021 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
cannam@86 3022 else
cannam@86 3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 3024 for as_dir in $PATH
cannam@86 3025 do
cannam@86 3026 IFS=$as_save_IFS
cannam@86 3027 test -z "$as_dir" && as_dir=.
cannam@86 3028 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 3029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 3030 ac_cv_prog_ac_ct_CC="gcc"
cannam@86 3031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 3032 break 2
cannam@86 3033 fi
cannam@86 3034 done
cannam@86 3035 done
cannam@86 3036 IFS=$as_save_IFS
cannam@86 3037
cannam@86 3038 fi
cannam@86 3039 fi
cannam@86 3040 ac_ct_CC=$ac_cv_prog_ac_ct_CC
cannam@86 3041 if test -n "$ac_ct_CC"; then
cannam@86 3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cannam@86 3043 $as_echo "$ac_ct_CC" >&6; }
cannam@86 3044 else
cannam@86 3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 3046 $as_echo "no" >&6; }
cannam@86 3047 fi
cannam@86 3048
cannam@86 3049 if test "x$ac_ct_CC" = x; then
cannam@86 3050 CC=""
cannam@86 3051 else
cannam@86 3052 case $cross_compiling:$ac_tool_warned in
cannam@86 3053 yes:)
cannam@86 3054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 3055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 3056 ac_tool_warned=yes ;;
cannam@86 3057 esac
cannam@86 3058 CC=$ac_ct_CC
cannam@86 3059 fi
cannam@86 3060 else
cannam@86 3061 CC="$ac_cv_prog_CC"
cannam@86 3062 fi
cannam@86 3063
cannam@86 3064 if test -z "$CC"; then
cannam@86 3065 if test -n "$ac_tool_prefix"; then
cannam@86 3066 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
cannam@86 3067 set dummy ${ac_tool_prefix}cc; ac_word=$2
cannam@86 3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 3069 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 3070 if ${ac_cv_prog_CC+:} false; then :
cannam@86 3071 $as_echo_n "(cached) " >&6
cannam@86 3072 else
cannam@86 3073 if test -n "$CC"; then
cannam@86 3074 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@86 3075 else
cannam@86 3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 3077 for as_dir in $PATH
cannam@86 3078 do
cannam@86 3079 IFS=$as_save_IFS
cannam@86 3080 test -z "$as_dir" && as_dir=.
cannam@86 3081 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 3082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 3083 ac_cv_prog_CC="${ac_tool_prefix}cc"
cannam@86 3084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 3085 break 2
cannam@86 3086 fi
cannam@86 3087 done
cannam@86 3088 done
cannam@86 3089 IFS=$as_save_IFS
cannam@86 3090
cannam@86 3091 fi
cannam@86 3092 fi
cannam@86 3093 CC=$ac_cv_prog_CC
cannam@86 3094 if test -n "$CC"; then
cannam@86 3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@86 3096 $as_echo "$CC" >&6; }
cannam@86 3097 else
cannam@86 3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 3099 $as_echo "no" >&6; }
cannam@86 3100 fi
cannam@86 3101
cannam@86 3102
cannam@86 3103 fi
cannam@86 3104 fi
cannam@86 3105 if test -z "$CC"; then
cannam@86 3106 # Extract the first word of "cc", so it can be a program name with args.
cannam@86 3107 set dummy cc; ac_word=$2
cannam@86 3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 3109 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 3110 if ${ac_cv_prog_CC+:} false; then :
cannam@86 3111 $as_echo_n "(cached) " >&6
cannam@86 3112 else
cannam@86 3113 if test -n "$CC"; then
cannam@86 3114 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@86 3115 else
cannam@86 3116 ac_prog_rejected=no
cannam@86 3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 3118 for as_dir in $PATH
cannam@86 3119 do
cannam@86 3120 IFS=$as_save_IFS
cannam@86 3121 test -z "$as_dir" && as_dir=.
cannam@86 3122 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 3123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 3124 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
cannam@86 3125 ac_prog_rejected=yes
cannam@86 3126 continue
cannam@86 3127 fi
cannam@86 3128 ac_cv_prog_CC="cc"
cannam@86 3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 3130 break 2
cannam@86 3131 fi
cannam@86 3132 done
cannam@86 3133 done
cannam@86 3134 IFS=$as_save_IFS
cannam@86 3135
cannam@86 3136 if test $ac_prog_rejected = yes; then
cannam@86 3137 # We found a bogon in the path, so make sure we never use it.
cannam@86 3138 set dummy $ac_cv_prog_CC
cannam@86 3139 shift
cannam@86 3140 if test $# != 0; then
cannam@86 3141 # We chose a different compiler from the bogus one.
cannam@86 3142 # However, it has the same basename, so the bogon will be chosen
cannam@86 3143 # first if we set CC to just the basename; use the full file name.
cannam@86 3144 shift
cannam@86 3145 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
cannam@86 3146 fi
cannam@86 3147 fi
cannam@86 3148 fi
cannam@86 3149 fi
cannam@86 3150 CC=$ac_cv_prog_CC
cannam@86 3151 if test -n "$CC"; then
cannam@86 3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@86 3153 $as_echo "$CC" >&6; }
cannam@86 3154 else
cannam@86 3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 3156 $as_echo "no" >&6; }
cannam@86 3157 fi
cannam@86 3158
cannam@86 3159
cannam@86 3160 fi
cannam@86 3161 if test -z "$CC"; then
cannam@86 3162 if test -n "$ac_tool_prefix"; then
cannam@86 3163 for ac_prog in cl.exe
cannam@86 3164 do
cannam@86 3165 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@86 3166 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@86 3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 3168 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 3169 if ${ac_cv_prog_CC+:} false; then :
cannam@86 3170 $as_echo_n "(cached) " >&6
cannam@86 3171 else
cannam@86 3172 if test -n "$CC"; then
cannam@86 3173 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@86 3174 else
cannam@86 3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 3176 for as_dir in $PATH
cannam@86 3177 do
cannam@86 3178 IFS=$as_save_IFS
cannam@86 3179 test -z "$as_dir" && as_dir=.
cannam@86 3180 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 3181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 3182 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cannam@86 3183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 3184 break 2
cannam@86 3185 fi
cannam@86 3186 done
cannam@86 3187 done
cannam@86 3188 IFS=$as_save_IFS
cannam@86 3189
cannam@86 3190 fi
cannam@86 3191 fi
cannam@86 3192 CC=$ac_cv_prog_CC
cannam@86 3193 if test -n "$CC"; then
cannam@86 3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@86 3195 $as_echo "$CC" >&6; }
cannam@86 3196 else
cannam@86 3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 3198 $as_echo "no" >&6; }
cannam@86 3199 fi
cannam@86 3200
cannam@86 3201
cannam@86 3202 test -n "$CC" && break
cannam@86 3203 done
cannam@86 3204 fi
cannam@86 3205 if test -z "$CC"; then
cannam@86 3206 ac_ct_CC=$CC
cannam@86 3207 for ac_prog in cl.exe
cannam@86 3208 do
cannam@86 3209 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@86 3210 set dummy $ac_prog; ac_word=$2
cannam@86 3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 3212 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 3213 if ${ac_cv_prog_ac_ct_CC+:} false; then :
cannam@86 3214 $as_echo_n "(cached) " >&6
cannam@86 3215 else
cannam@86 3216 if test -n "$ac_ct_CC"; then
cannam@86 3217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
cannam@86 3218 else
cannam@86 3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 3220 for as_dir in $PATH
cannam@86 3221 do
cannam@86 3222 IFS=$as_save_IFS
cannam@86 3223 test -z "$as_dir" && as_dir=.
cannam@86 3224 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 3225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 3226 ac_cv_prog_ac_ct_CC="$ac_prog"
cannam@86 3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 3228 break 2
cannam@86 3229 fi
cannam@86 3230 done
cannam@86 3231 done
cannam@86 3232 IFS=$as_save_IFS
cannam@86 3233
cannam@86 3234 fi
cannam@86 3235 fi
cannam@86 3236 ac_ct_CC=$ac_cv_prog_ac_ct_CC
cannam@86 3237 if test -n "$ac_ct_CC"; then
cannam@86 3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cannam@86 3239 $as_echo "$ac_ct_CC" >&6; }
cannam@86 3240 else
cannam@86 3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 3242 $as_echo "no" >&6; }
cannam@86 3243 fi
cannam@86 3244
cannam@86 3245
cannam@86 3246 test -n "$ac_ct_CC" && break
cannam@86 3247 done
cannam@86 3248
cannam@86 3249 if test "x$ac_ct_CC" = x; then
cannam@86 3250 CC=""
cannam@86 3251 else
cannam@86 3252 case $cross_compiling:$ac_tool_warned in
cannam@86 3253 yes:)
cannam@86 3254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 3255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 3256 ac_tool_warned=yes ;;
cannam@86 3257 esac
cannam@86 3258 CC=$ac_ct_CC
cannam@86 3259 fi
cannam@86 3260 fi
cannam@86 3261
cannam@86 3262 fi
cannam@86 3263
cannam@86 3264
cannam@86 3265 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 3266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 3267 as_fn_error $? "no acceptable C compiler found in \$PATH
cannam@86 3268 See \`config.log' for more details" "$LINENO" 5; }
cannam@86 3269
cannam@86 3270 # Provide some information about the compiler.
cannam@86 3271 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cannam@86 3272 set X $ac_compile
cannam@86 3273 ac_compiler=$2
cannam@86 3274 for ac_option in --version -v -V -qversion; do
cannam@86 3275 { { ac_try="$ac_compiler $ac_option >&5"
cannam@86 3276 case "(($ac_try" in
cannam@86 3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 3278 *) ac_try_echo=$ac_try;;
cannam@86 3279 esac
cannam@86 3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 3281 $as_echo "$ac_try_echo"; } >&5
cannam@86 3282 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cannam@86 3283 ac_status=$?
cannam@86 3284 if test -s conftest.err; then
cannam@86 3285 sed '10a\
cannam@86 3286 ... rest of stderr output deleted ...
cannam@86 3287 10q' conftest.err >conftest.er1
cannam@86 3288 cat conftest.er1 >&5
cannam@86 3289 fi
cannam@86 3290 rm -f conftest.er1 conftest.err
cannam@86 3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 3292 test $ac_status = 0; }
cannam@86 3293 done
cannam@86 3294
cannam@86 3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 3296 /* end confdefs.h. */
cannam@86 3297
cannam@86 3298 int
cannam@86 3299 main ()
cannam@86 3300 {
cannam@86 3301
cannam@86 3302 ;
cannam@86 3303 return 0;
cannam@86 3304 }
cannam@86 3305 _ACEOF
cannam@86 3306 ac_clean_files_save=$ac_clean_files
cannam@86 3307 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cannam@86 3308 # Try to create an executable without -o first, disregard a.out.
cannam@86 3309 # It will help us diagnose broken compilers, and finding out an intuition
cannam@86 3310 # of exeext.
cannam@86 3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
cannam@86 3312 $as_echo_n "checking whether the C compiler works... " >&6; }
cannam@86 3313 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
cannam@86 3314
cannam@86 3315 # The possible output files:
cannam@86 3316 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
cannam@86 3317
cannam@86 3318 ac_rmfiles=
cannam@86 3319 for ac_file in $ac_files
cannam@86 3320 do
cannam@86 3321 case $ac_file in
cannam@86 3322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
cannam@86 3323 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
cannam@86 3324 esac
cannam@86 3325 done
cannam@86 3326 rm -f $ac_rmfiles
cannam@86 3327
cannam@86 3328 if { { ac_try="$ac_link_default"
cannam@86 3329 case "(($ac_try" in
cannam@86 3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 3331 *) ac_try_echo=$ac_try;;
cannam@86 3332 esac
cannam@86 3333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 3334 $as_echo "$ac_try_echo"; } >&5
cannam@86 3335 (eval "$ac_link_default") 2>&5
cannam@86 3336 ac_status=$?
cannam@86 3337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 3338 test $ac_status = 0; }; then :
cannam@86 3339 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
cannam@86 3340 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
cannam@86 3341 # in a Makefile. We should not override ac_cv_exeext if it was cached,
cannam@86 3342 # so that the user can short-circuit this test for compilers unknown to
cannam@86 3343 # Autoconf.
cannam@86 3344 for ac_file in $ac_files ''
cannam@86 3345 do
cannam@86 3346 test -f "$ac_file" || continue
cannam@86 3347 case $ac_file in
cannam@86 3348 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
cannam@86 3349 ;;
cannam@86 3350 [ab].out )
cannam@86 3351 # We found the default executable, but exeext='' is most
cannam@86 3352 # certainly right.
cannam@86 3353 break;;
cannam@86 3354 *.* )
cannam@86 3355 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cannam@86 3356 then :; else
cannam@86 3357 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
cannam@86 3358 fi
cannam@86 3359 # We set ac_cv_exeext here because the later test for it is not
cannam@86 3360 # safe: cross compilers may not add the suffix if given an `-o'
cannam@86 3361 # argument, so we may need to know it at that point already.
cannam@86 3362 # Even if this section looks crufty: it has the advantage of
cannam@86 3363 # actually working.
cannam@86 3364 break;;
cannam@86 3365 * )
cannam@86 3366 break;;
cannam@86 3367 esac
cannam@86 3368 done
cannam@86 3369 test "$ac_cv_exeext" = no && ac_cv_exeext=
cannam@86 3370
cannam@86 3371 else
cannam@86 3372 ac_file=''
cannam@86 3373 fi
cannam@86 3374 if test -z "$ac_file"; then :
cannam@86 3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 3376 $as_echo "no" >&6; }
cannam@86 3377 $as_echo "$as_me: failed program was:" >&5
cannam@86 3378 sed 's/^/| /' conftest.$ac_ext >&5
cannam@86 3379
cannam@86 3380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 3381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 3382 as_fn_error 77 "C compiler cannot create executables
cannam@86 3383 See \`config.log' for more details" "$LINENO" 5; }
cannam@86 3384 else
cannam@86 3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@86 3386 $as_echo "yes" >&6; }
cannam@86 3387 fi
cannam@86 3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
cannam@86 3389 $as_echo_n "checking for C compiler default output file name... " >&6; }
cannam@86 3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
cannam@86 3391 $as_echo "$ac_file" >&6; }
cannam@86 3392 ac_exeext=$ac_cv_exeext
cannam@86 3393
cannam@86 3394 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cannam@86 3395 ac_clean_files=$ac_clean_files_save
cannam@86 3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cannam@86 3397 $as_echo_n "checking for suffix of executables... " >&6; }
cannam@86 3398 if { { ac_try="$ac_link"
cannam@86 3399 case "(($ac_try" in
cannam@86 3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 3401 *) ac_try_echo=$ac_try;;
cannam@86 3402 esac
cannam@86 3403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 3404 $as_echo "$ac_try_echo"; } >&5
cannam@86 3405 (eval "$ac_link") 2>&5
cannam@86 3406 ac_status=$?
cannam@86 3407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 3408 test $ac_status = 0; }; then :
cannam@86 3409 # If both `conftest.exe' and `conftest' are `present' (well, observable)
cannam@86 3410 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
cannam@86 3411 # work properly (i.e., refer to `conftest.exe'), while it won't with
cannam@86 3412 # `rm'.
cannam@86 3413 for ac_file in conftest.exe conftest conftest.*; do
cannam@86 3414 test -f "$ac_file" || continue
cannam@86 3415 case $ac_file in
cannam@86 3416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
cannam@86 3417 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
cannam@86 3418 break;;
cannam@86 3419 * ) break;;
cannam@86 3420 esac
cannam@86 3421 done
cannam@86 3422 else
cannam@86 3423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 3424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 3425 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
cannam@86 3426 See \`config.log' for more details" "$LINENO" 5; }
cannam@86 3427 fi
cannam@86 3428 rm -f conftest conftest$ac_cv_exeext
cannam@86 3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cannam@86 3430 $as_echo "$ac_cv_exeext" >&6; }
cannam@86 3431
cannam@86 3432 rm -f conftest.$ac_ext
cannam@86 3433 EXEEXT=$ac_cv_exeext
cannam@86 3434 ac_exeext=$EXEEXT
cannam@86 3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 3436 /* end confdefs.h. */
cannam@86 3437 #include <stdio.h>
cannam@86 3438 int
cannam@86 3439 main ()
cannam@86 3440 {
cannam@86 3441 FILE *f = fopen ("conftest.out", "w");
cannam@86 3442 return ferror (f) || fclose (f) != 0;
cannam@86 3443
cannam@86 3444 ;
cannam@86 3445 return 0;
cannam@86 3446 }
cannam@86 3447 _ACEOF
cannam@86 3448 ac_clean_files="$ac_clean_files conftest.out"
cannam@86 3449 # Check that the compiler produces executables we can run. If not, either
cannam@86 3450 # the compiler is broken, or we cross compile.
cannam@86 3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
cannam@86 3452 $as_echo_n "checking whether we are cross compiling... " >&6; }
cannam@86 3453 if test "$cross_compiling" != yes; then
cannam@86 3454 { { ac_try="$ac_link"
cannam@86 3455 case "(($ac_try" in
cannam@86 3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 3457 *) ac_try_echo=$ac_try;;
cannam@86 3458 esac
cannam@86 3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 3460 $as_echo "$ac_try_echo"; } >&5
cannam@86 3461 (eval "$ac_link") 2>&5
cannam@86 3462 ac_status=$?
cannam@86 3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 3464 test $ac_status = 0; }
cannam@86 3465 if { ac_try='./conftest$ac_cv_exeext'
cannam@86 3466 { { case "(($ac_try" in
cannam@86 3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 3468 *) ac_try_echo=$ac_try;;
cannam@86 3469 esac
cannam@86 3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 3471 $as_echo "$ac_try_echo"; } >&5
cannam@86 3472 (eval "$ac_try") 2>&5
cannam@86 3473 ac_status=$?
cannam@86 3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 3475 test $ac_status = 0; }; }; then
cannam@86 3476 cross_compiling=no
cannam@86 3477 else
cannam@86 3478 if test "$cross_compiling" = maybe; then
cannam@86 3479 cross_compiling=yes
cannam@86 3480 else
cannam@86 3481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 3482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 3483 as_fn_error $? "cannot run C compiled programs.
cannam@86 3484 If you meant to cross compile, use \`--host'.
cannam@86 3485 See \`config.log' for more details" "$LINENO" 5; }
cannam@86 3486 fi
cannam@86 3487 fi
cannam@86 3488 fi
cannam@86 3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
cannam@86 3490 $as_echo "$cross_compiling" >&6; }
cannam@86 3491
cannam@86 3492 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
cannam@86 3493 ac_clean_files=$ac_clean_files_save
cannam@86 3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cannam@86 3495 $as_echo_n "checking for suffix of object files... " >&6; }
cannam@86 3496 if ${ac_cv_objext+:} false; then :
cannam@86 3497 $as_echo_n "(cached) " >&6
cannam@86 3498 else
cannam@86 3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 3500 /* end confdefs.h. */
cannam@86 3501
cannam@86 3502 int
cannam@86 3503 main ()
cannam@86 3504 {
cannam@86 3505
cannam@86 3506 ;
cannam@86 3507 return 0;
cannam@86 3508 }
cannam@86 3509 _ACEOF
cannam@86 3510 rm -f conftest.o conftest.obj
cannam@86 3511 if { { ac_try="$ac_compile"
cannam@86 3512 case "(($ac_try" in
cannam@86 3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 3514 *) ac_try_echo=$ac_try;;
cannam@86 3515 esac
cannam@86 3516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 3517 $as_echo "$ac_try_echo"; } >&5
cannam@86 3518 (eval "$ac_compile") 2>&5
cannam@86 3519 ac_status=$?
cannam@86 3520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 3521 test $ac_status = 0; }; then :
cannam@86 3522 for ac_file in conftest.o conftest.obj conftest.*; do
cannam@86 3523 test -f "$ac_file" || continue;
cannam@86 3524 case $ac_file in
cannam@86 3525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
cannam@86 3526 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
cannam@86 3527 break;;
cannam@86 3528 esac
cannam@86 3529 done
cannam@86 3530 else
cannam@86 3531 $as_echo "$as_me: failed program was:" >&5
cannam@86 3532 sed 's/^/| /' conftest.$ac_ext >&5
cannam@86 3533
cannam@86 3534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 3535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 3536 as_fn_error $? "cannot compute suffix of object files: cannot compile
cannam@86 3537 See \`config.log' for more details" "$LINENO" 5; }
cannam@86 3538 fi
cannam@86 3539 rm -f conftest.$ac_cv_objext conftest.$ac_ext
cannam@86 3540 fi
cannam@86 3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cannam@86 3542 $as_echo "$ac_cv_objext" >&6; }
cannam@86 3543 OBJEXT=$ac_cv_objext
cannam@86 3544 ac_objext=$OBJEXT
cannam@86 3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cannam@86 3546 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cannam@86 3547 if ${ac_cv_c_compiler_gnu+:} false; then :
cannam@86 3548 $as_echo_n "(cached) " >&6
cannam@86 3549 else
cannam@86 3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 3551 /* end confdefs.h. */
cannam@86 3552
cannam@86 3553 int
cannam@86 3554 main ()
cannam@86 3555 {
cannam@86 3556 #ifndef __GNUC__
cannam@86 3557 choke me
cannam@86 3558 #endif
cannam@86 3559
cannam@86 3560 ;
cannam@86 3561 return 0;
cannam@86 3562 }
cannam@86 3563 _ACEOF
cannam@86 3564 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 3565 ac_compiler_gnu=yes
cannam@86 3566 else
cannam@86 3567 ac_compiler_gnu=no
cannam@86 3568 fi
cannam@86 3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 3570 ac_cv_c_compiler_gnu=$ac_compiler_gnu
cannam@86 3571
cannam@86 3572 fi
cannam@86 3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cannam@86 3574 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
cannam@86 3575 if test $ac_compiler_gnu = yes; then
cannam@86 3576 GCC=yes
cannam@86 3577 else
cannam@86 3578 GCC=
cannam@86 3579 fi
cannam@86 3580 ac_test_CFLAGS=${CFLAGS+set}
cannam@86 3581 ac_save_CFLAGS=$CFLAGS
cannam@86 3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cannam@86 3583 $as_echo_n "checking whether $CC accepts -g... " >&6; }
cannam@86 3584 if ${ac_cv_prog_cc_g+:} false; then :
cannam@86 3585 $as_echo_n "(cached) " >&6
cannam@86 3586 else
cannam@86 3587 ac_save_c_werror_flag=$ac_c_werror_flag
cannam@86 3588 ac_c_werror_flag=yes
cannam@86 3589 ac_cv_prog_cc_g=no
cannam@86 3590 CFLAGS="-g"
cannam@86 3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 3592 /* end confdefs.h. */
cannam@86 3593
cannam@86 3594 int
cannam@86 3595 main ()
cannam@86 3596 {
cannam@86 3597
cannam@86 3598 ;
cannam@86 3599 return 0;
cannam@86 3600 }
cannam@86 3601 _ACEOF
cannam@86 3602 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 3603 ac_cv_prog_cc_g=yes
cannam@86 3604 else
cannam@86 3605 CFLAGS=""
cannam@86 3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 3607 /* end confdefs.h. */
cannam@86 3608
cannam@86 3609 int
cannam@86 3610 main ()
cannam@86 3611 {
cannam@86 3612
cannam@86 3613 ;
cannam@86 3614 return 0;
cannam@86 3615 }
cannam@86 3616 _ACEOF
cannam@86 3617 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 3618
cannam@86 3619 else
cannam@86 3620 ac_c_werror_flag=$ac_save_c_werror_flag
cannam@86 3621 CFLAGS="-g"
cannam@86 3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 3623 /* end confdefs.h. */
cannam@86 3624
cannam@86 3625 int
cannam@86 3626 main ()
cannam@86 3627 {
cannam@86 3628
cannam@86 3629 ;
cannam@86 3630 return 0;
cannam@86 3631 }
cannam@86 3632 _ACEOF
cannam@86 3633 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 3634 ac_cv_prog_cc_g=yes
cannam@86 3635 fi
cannam@86 3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 3637 fi
cannam@86 3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 3639 fi
cannam@86 3640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 3641 ac_c_werror_flag=$ac_save_c_werror_flag
cannam@86 3642 fi
cannam@86 3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cannam@86 3644 $as_echo "$ac_cv_prog_cc_g" >&6; }
cannam@86 3645 if test "$ac_test_CFLAGS" = set; then
cannam@86 3646 CFLAGS=$ac_save_CFLAGS
cannam@86 3647 elif test $ac_cv_prog_cc_g = yes; then
cannam@86 3648 if test "$GCC" = yes; then
cannam@86 3649 CFLAGS="-g -O2"
cannam@86 3650 else
cannam@86 3651 CFLAGS="-g"
cannam@86 3652 fi
cannam@86 3653 else
cannam@86 3654 if test "$GCC" = yes; then
cannam@86 3655 CFLAGS="-O2"
cannam@86 3656 else
cannam@86 3657 CFLAGS=
cannam@86 3658 fi
cannam@86 3659 fi
cannam@86 3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cannam@86 3661 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cannam@86 3662 if ${ac_cv_prog_cc_c89+:} false; then :
cannam@86 3663 $as_echo_n "(cached) " >&6
cannam@86 3664 else
cannam@86 3665 ac_cv_prog_cc_c89=no
cannam@86 3666 ac_save_CC=$CC
cannam@86 3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 3668 /* end confdefs.h. */
cannam@86 3669 #include <stdarg.h>
cannam@86 3670 #include <stdio.h>
cannam@86 3671 #include <sys/types.h>
cannam@86 3672 #include <sys/stat.h>
cannam@86 3673 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
cannam@86 3674 struct buf { int x; };
cannam@86 3675 FILE * (*rcsopen) (struct buf *, struct stat *, int);
cannam@86 3676 static char *e (p, i)
cannam@86 3677 char **p;
cannam@86 3678 int i;
cannam@86 3679 {
cannam@86 3680 return p[i];
cannam@86 3681 }
cannam@86 3682 static char *f (char * (*g) (char **, int), char **p, ...)
cannam@86 3683 {
cannam@86 3684 char *s;
cannam@86 3685 va_list v;
cannam@86 3686 va_start (v,p);
cannam@86 3687 s = g (p, va_arg (v,int));
cannam@86 3688 va_end (v);
cannam@86 3689 return s;
cannam@86 3690 }
cannam@86 3691
cannam@86 3692 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
cannam@86 3693 function prototypes and stuff, but not '\xHH' hex character constants.
cannam@86 3694 These don't provoke an error unfortunately, instead are silently treated
cannam@86 3695 as 'x'. The following induces an error, until -std is added to get
cannam@86 3696 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
cannam@86 3697 array size at least. It's necessary to write '\x00'==0 to get something
cannam@86 3698 that's true only with -std. */
cannam@86 3699 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
cannam@86 3700
cannam@86 3701 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
cannam@86 3702 inside strings and character constants. */
cannam@86 3703 #define FOO(x) 'x'
cannam@86 3704 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
cannam@86 3705
cannam@86 3706 int test (int i, double x);
cannam@86 3707 struct s1 {int (*f) (int a);};
cannam@86 3708 struct s2 {int (*f) (double a);};
cannam@86 3709 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
cannam@86 3710 int argc;
cannam@86 3711 char **argv;
cannam@86 3712 int
cannam@86 3713 main ()
cannam@86 3714 {
cannam@86 3715 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
cannam@86 3716 ;
cannam@86 3717 return 0;
cannam@86 3718 }
cannam@86 3719 _ACEOF
cannam@86 3720 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
cannam@86 3721 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
cannam@86 3722 do
cannam@86 3723 CC="$ac_save_CC $ac_arg"
cannam@86 3724 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 3725 ac_cv_prog_cc_c89=$ac_arg
cannam@86 3726 fi
cannam@86 3727 rm -f core conftest.err conftest.$ac_objext
cannam@86 3728 test "x$ac_cv_prog_cc_c89" != "xno" && break
cannam@86 3729 done
cannam@86 3730 rm -f conftest.$ac_ext
cannam@86 3731 CC=$ac_save_CC
cannam@86 3732
cannam@86 3733 fi
cannam@86 3734 # AC_CACHE_VAL
cannam@86 3735 case "x$ac_cv_prog_cc_c89" in
cannam@86 3736 x)
cannam@86 3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cannam@86 3738 $as_echo "none needed" >&6; } ;;
cannam@86 3739 xno)
cannam@86 3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cannam@86 3741 $as_echo "unsupported" >&6; } ;;
cannam@86 3742 *)
cannam@86 3743 CC="$CC $ac_cv_prog_cc_c89"
cannam@86 3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cannam@86 3745 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
cannam@86 3746 esac
cannam@86 3747 if test "x$ac_cv_prog_cc_c89" != xno; then :
cannam@86 3748
cannam@86 3749 fi
cannam@86 3750
cannam@86 3751 ac_ext=c
cannam@86 3752 ac_cpp='$CPP $CPPFLAGS'
cannam@86 3753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@86 3754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@86 3755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@86 3756 DEPDIR="${am__leading_dot}deps"
cannam@86 3757
cannam@86 3758 ac_config_commands="$ac_config_commands depfiles"
cannam@86 3759
cannam@86 3760
cannam@86 3761 am_make=${MAKE-make}
cannam@86 3762 cat > confinc << 'END'
cannam@86 3763 am__doit:
cannam@86 3764 @echo this is the am__doit target
cannam@86 3765 .PHONY: am__doit
cannam@86 3766 END
cannam@86 3767 # If we don't find an include directive, just comment out the code.
cannam@86 3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
cannam@86 3769 $as_echo_n "checking for style of include used by $am_make... " >&6; }
cannam@86 3770 am__include="#"
cannam@86 3771 am__quote=
cannam@86 3772 _am_result=none
cannam@86 3773 # First try GNU make style include.
cannam@86 3774 echo "include confinc" > confmf
cannam@86 3775 # Ignore all kinds of additional output from `make'.
cannam@86 3776 case `$am_make -s -f confmf 2> /dev/null` in #(
cannam@86 3777 *the\ am__doit\ target*)
cannam@86 3778 am__include=include
cannam@86 3779 am__quote=
cannam@86 3780 _am_result=GNU
cannam@86 3781 ;;
cannam@86 3782 esac
cannam@86 3783 # Now try BSD make style include.
cannam@86 3784 if test "$am__include" = "#"; then
cannam@86 3785 echo '.include "confinc"' > confmf
cannam@86 3786 case `$am_make -s -f confmf 2> /dev/null` in #(
cannam@86 3787 *the\ am__doit\ target*)
cannam@86 3788 am__include=.include
cannam@86 3789 am__quote="\""
cannam@86 3790 _am_result=BSD
cannam@86 3791 ;;
cannam@86 3792 esac
cannam@86 3793 fi
cannam@86 3794
cannam@86 3795
cannam@86 3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
cannam@86 3797 $as_echo "$_am_result" >&6; }
cannam@86 3798 rm -f confinc confmf
cannam@86 3799
cannam@86 3800 # Check whether --enable-dependency-tracking was given.
cannam@86 3801 if test "${enable_dependency_tracking+set}" = set; then :
cannam@86 3802 enableval=$enable_dependency_tracking;
cannam@86 3803 fi
cannam@86 3804
cannam@86 3805 if test "x$enable_dependency_tracking" != xno; then
cannam@86 3806 am_depcomp="$ac_aux_dir/depcomp"
cannam@86 3807 AMDEPBACKSLASH='\'
cannam@86 3808 fi
cannam@86 3809 if test "x$enable_dependency_tracking" != xno; then
cannam@86 3810 AMDEP_TRUE=
cannam@86 3811 AMDEP_FALSE='#'
cannam@86 3812 else
cannam@86 3813 AMDEP_TRUE='#'
cannam@86 3814 AMDEP_FALSE=
cannam@86 3815 fi
cannam@86 3816
cannam@86 3817
cannam@86 3818
cannam@86 3819 depcc="$CC" am_compiler_list=
cannam@86 3820
cannam@86 3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cannam@86 3822 $as_echo_n "checking dependency style of $depcc... " >&6; }
cannam@86 3823 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cannam@86 3824 $as_echo_n "(cached) " >&6
cannam@86 3825 else
cannam@86 3826 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
cannam@86 3827 # We make a subdir and do the tests there. Otherwise we can end up
cannam@86 3828 # making bogus files that we don't know about and never remove. For
cannam@86 3829 # instance it was reported that on HP-UX the gcc test will end up
cannam@86 3830 # making a dummy file named `D' -- because `-MD' means `put the output
cannam@86 3831 # in D'.
cannam@86 3832 mkdir conftest.dir
cannam@86 3833 # Copy depcomp to subdir because otherwise we won't find it if we're
cannam@86 3834 # using a relative directory.
cannam@86 3835 cp "$am_depcomp" conftest.dir
cannam@86 3836 cd conftest.dir
cannam@86 3837 # We will build objects and dependencies in a subdirectory because
cannam@86 3838 # it helps to detect inapplicable dependency modes. For instance
cannam@86 3839 # both Tru64's cc and ICC support -MD to output dependencies as a
cannam@86 3840 # side effect of compilation, but ICC will put the dependencies in
cannam@86 3841 # the current directory while Tru64 will put them in the object
cannam@86 3842 # directory.
cannam@86 3843 mkdir sub
cannam@86 3844
cannam@86 3845 am_cv_CC_dependencies_compiler_type=none
cannam@86 3846 if test "$am_compiler_list" = ""; then
cannam@86 3847 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
cannam@86 3848 fi
cannam@86 3849 am__universal=false
cannam@86 3850 case " $depcc " in #(
cannam@86 3851 *\ -arch\ *\ -arch\ *) am__universal=true ;;
cannam@86 3852 esac
cannam@86 3853
cannam@86 3854 for depmode in $am_compiler_list; do
cannam@86 3855 # Setup a source with many dependencies, because some compilers
cannam@86 3856 # like to wrap large dependency lists on column 80 (with \), and
cannam@86 3857 # we should not choose a depcomp mode which is confused by this.
cannam@86 3858 #
cannam@86 3859 # We need to recreate these files for each test, as the compiler may
cannam@86 3860 # overwrite some of them when testing with obscure command lines.
cannam@86 3861 # This happens at least with the AIX C compiler.
cannam@86 3862 : > sub/conftest.c
cannam@86 3863 for i in 1 2 3 4 5 6; do
cannam@86 3864 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cannam@86 3865 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
cannam@86 3866 # Solaris 8's {/usr,}/bin/sh.
cannam@86 3867 touch sub/conftst$i.h
cannam@86 3868 done
cannam@86 3869 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
cannam@86 3870
cannam@86 3871 # We check with `-c' and `-o' for the sake of the "dashmstdout"
cannam@86 3872 # mode. It turns out that the SunPro C++ compiler does not properly
cannam@86 3873 # handle `-M -o', and we need to detect this. Also, some Intel
cannam@86 3874 # versions had trouble with output in subdirs
cannam@86 3875 am__obj=sub/conftest.${OBJEXT-o}
cannam@86 3876 am__minus_obj="-o $am__obj"
cannam@86 3877 case $depmode in
cannam@86 3878 gcc)
cannam@86 3879 # This depmode causes a compiler race in universal mode.
cannam@86 3880 test "$am__universal" = false || continue
cannam@86 3881 ;;
cannam@86 3882 nosideeffect)
cannam@86 3883 # after this tag, mechanisms are not by side-effect, so they'll
cannam@86 3884 # only be used when explicitly requested
cannam@86 3885 if test "x$enable_dependency_tracking" = xyes; then
cannam@86 3886 continue
cannam@86 3887 else
cannam@86 3888 break
cannam@86 3889 fi
cannam@86 3890 ;;
cannam@86 3891 msvisualcpp | msvcmsys)
cannam@86 3892 # This compiler won't grok `-c -o', but also, the minuso test has
cannam@86 3893 # not run yet. These depmodes are late enough in the game, and
cannam@86 3894 # so weak that their functioning should not be impacted.
cannam@86 3895 am__obj=conftest.${OBJEXT-o}
cannam@86 3896 am__minus_obj=
cannam@86 3897 ;;
cannam@86 3898 none) break ;;
cannam@86 3899 esac
cannam@86 3900 if depmode=$depmode \
cannam@86 3901 source=sub/conftest.c object=$am__obj \
cannam@86 3902 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cannam@86 3903 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
cannam@86 3904 >/dev/null 2>conftest.err &&
cannam@86 3905 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
cannam@86 3906 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cannam@86 3907 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
cannam@86 3908 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
cannam@86 3909 # icc doesn't choke on unknown options, it will just issue warnings
cannam@86 3910 # or remarks (even with -Werror). So we grep stderr for any message
cannam@86 3911 # that says an option was ignored or not supported.
cannam@86 3912 # When given -MP, icc 7.0 and 7.1 complain thusly:
cannam@86 3913 # icc: Command line warning: ignoring option '-M'; no argument required
cannam@86 3914 # The diagnosis changed in icc 8.0:
cannam@86 3915 # icc: Command line remark: option '-MP' not supported
cannam@86 3916 if (grep 'ignoring option' conftest.err ||
cannam@86 3917 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
cannam@86 3918 am_cv_CC_dependencies_compiler_type=$depmode
cannam@86 3919 break
cannam@86 3920 fi
cannam@86 3921 fi
cannam@86 3922 done
cannam@86 3923
cannam@86 3924 cd ..
cannam@86 3925 rm -rf conftest.dir
cannam@86 3926 else
cannam@86 3927 am_cv_CC_dependencies_compiler_type=none
cannam@86 3928 fi
cannam@86 3929
cannam@86 3930 fi
cannam@86 3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cannam@86 3932 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
cannam@86 3933 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
cannam@86 3934
cannam@86 3935 if
cannam@86 3936 test "x$enable_dependency_tracking" != xno \
cannam@86 3937 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
cannam@86 3938 am__fastdepCC_TRUE=
cannam@86 3939 am__fastdepCC_FALSE='#'
cannam@86 3940 else
cannam@86 3941 am__fastdepCC_TRUE='#'
cannam@86 3942 am__fastdepCC_FALSE=
cannam@86 3943 fi
cannam@86 3944
cannam@86 3945
cannam@86 3946 ac_ext=c
cannam@86 3947 ac_cpp='$CPP $CPPFLAGS'
cannam@86 3948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@86 3949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@86 3950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@86 3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cannam@86 3952 $as_echo_n "checking how to run the C preprocessor... " >&6; }
cannam@86 3953 # On Suns, sometimes $CPP names a directory.
cannam@86 3954 if test -n "$CPP" && test -d "$CPP"; then
cannam@86 3955 CPP=
cannam@86 3956 fi
cannam@86 3957 if test -z "$CPP"; then
cannam@86 3958 if ${ac_cv_prog_CPP+:} false; then :
cannam@86 3959 $as_echo_n "(cached) " >&6
cannam@86 3960 else
cannam@86 3961 # Double quotes because CPP needs to be expanded
cannam@86 3962 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
cannam@86 3963 do
cannam@86 3964 ac_preproc_ok=false
cannam@86 3965 for ac_c_preproc_warn_flag in '' yes
cannam@86 3966 do
cannam@86 3967 # Use a header file that comes with gcc, so configuring glibc
cannam@86 3968 # with a fresh cross-compiler works.
cannam@86 3969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@86 3970 # <limits.h> exists even on freestanding compilers.
cannam@86 3971 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@86 3972 # not just through cpp. "Syntax error" is here to catch this case.
cannam@86 3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 3974 /* end confdefs.h. */
cannam@86 3975 #ifdef __STDC__
cannam@86 3976 # include <limits.h>
cannam@86 3977 #else
cannam@86 3978 # include <assert.h>
cannam@86 3979 #endif
cannam@86 3980 Syntax error
cannam@86 3981 _ACEOF
cannam@86 3982 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@86 3983
cannam@86 3984 else
cannam@86 3985 # Broken: fails on valid input.
cannam@86 3986 continue
cannam@86 3987 fi
cannam@86 3988 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@86 3989
cannam@86 3990 # OK, works on sane cases. Now check whether nonexistent headers
cannam@86 3991 # can be detected and how.
cannam@86 3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 3993 /* end confdefs.h. */
cannam@86 3994 #include <ac_nonexistent.h>
cannam@86 3995 _ACEOF
cannam@86 3996 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@86 3997 # Broken: success on invalid input.
cannam@86 3998 continue
cannam@86 3999 else
cannam@86 4000 # Passes both tests.
cannam@86 4001 ac_preproc_ok=:
cannam@86 4002 break
cannam@86 4003 fi
cannam@86 4004 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@86 4005
cannam@86 4006 done
cannam@86 4007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@86 4008 rm -f conftest.i conftest.err conftest.$ac_ext
cannam@86 4009 if $ac_preproc_ok; then :
cannam@86 4010 break
cannam@86 4011 fi
cannam@86 4012
cannam@86 4013 done
cannam@86 4014 ac_cv_prog_CPP=$CPP
cannam@86 4015
cannam@86 4016 fi
cannam@86 4017 CPP=$ac_cv_prog_CPP
cannam@86 4018 else
cannam@86 4019 ac_cv_prog_CPP=$CPP
cannam@86 4020 fi
cannam@86 4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cannam@86 4022 $as_echo "$CPP" >&6; }
cannam@86 4023 ac_preproc_ok=false
cannam@86 4024 for ac_c_preproc_warn_flag in '' yes
cannam@86 4025 do
cannam@86 4026 # Use a header file that comes with gcc, so configuring glibc
cannam@86 4027 # with a fresh cross-compiler works.
cannam@86 4028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@86 4029 # <limits.h> exists even on freestanding compilers.
cannam@86 4030 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@86 4031 # not just through cpp. "Syntax error" is here to catch this case.
cannam@86 4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 4033 /* end confdefs.h. */
cannam@86 4034 #ifdef __STDC__
cannam@86 4035 # include <limits.h>
cannam@86 4036 #else
cannam@86 4037 # include <assert.h>
cannam@86 4038 #endif
cannam@86 4039 Syntax error
cannam@86 4040 _ACEOF
cannam@86 4041 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@86 4042
cannam@86 4043 else
cannam@86 4044 # Broken: fails on valid input.
cannam@86 4045 continue
cannam@86 4046 fi
cannam@86 4047 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@86 4048
cannam@86 4049 # OK, works on sane cases. Now check whether nonexistent headers
cannam@86 4050 # can be detected and how.
cannam@86 4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 4052 /* end confdefs.h. */
cannam@86 4053 #include <ac_nonexistent.h>
cannam@86 4054 _ACEOF
cannam@86 4055 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@86 4056 # Broken: success on invalid input.
cannam@86 4057 continue
cannam@86 4058 else
cannam@86 4059 # Passes both tests.
cannam@86 4060 ac_preproc_ok=:
cannam@86 4061 break
cannam@86 4062 fi
cannam@86 4063 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@86 4064
cannam@86 4065 done
cannam@86 4066 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@86 4067 rm -f conftest.i conftest.err conftest.$ac_ext
cannam@86 4068 if $ac_preproc_ok; then :
cannam@86 4069
cannam@86 4070 else
cannam@86 4071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 4072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 4073 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
cannam@86 4074 See \`config.log' for more details" "$LINENO" 5; }
cannam@86 4075 fi
cannam@86 4076
cannam@86 4077 ac_ext=c
cannam@86 4078 ac_cpp='$CPP $CPPFLAGS'
cannam@86 4079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@86 4080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@86 4081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@86 4082
cannam@86 4083 CFLAGS="$cflags_save"
cannam@86 4084
cannam@86 4085
cannam@86 4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cannam@86 4087 $as_echo_n "checking for inline... " >&6; }
cannam@86 4088 if ${ac_cv_c_inline+:} false; then :
cannam@86 4089 $as_echo_n "(cached) " >&6
cannam@86 4090 else
cannam@86 4091 ac_cv_c_inline=no
cannam@86 4092 for ac_kw in inline __inline__ __inline; do
cannam@86 4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 4094 /* end confdefs.h. */
cannam@86 4095 #ifndef __cplusplus
cannam@86 4096 typedef int foo_t;
cannam@86 4097 static $ac_kw foo_t static_foo () {return 0; }
cannam@86 4098 $ac_kw foo_t foo () {return 0; }
cannam@86 4099 #endif
cannam@86 4100
cannam@86 4101 _ACEOF
cannam@86 4102 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 4103 ac_cv_c_inline=$ac_kw
cannam@86 4104 fi
cannam@86 4105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 4106 test "$ac_cv_c_inline" != no && break
cannam@86 4107 done
cannam@86 4108
cannam@86 4109 fi
cannam@86 4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cannam@86 4111 $as_echo "$ac_cv_c_inline" >&6; }
cannam@86 4112
cannam@86 4113 case $ac_cv_c_inline in
cannam@86 4114 inline | yes) ;;
cannam@86 4115 *)
cannam@86 4116 case $ac_cv_c_inline in
cannam@86 4117 no) ac_val=;;
cannam@86 4118 *) ac_val=$ac_cv_c_inline;;
cannam@86 4119 esac
cannam@86 4120 cat >>confdefs.h <<_ACEOF
cannam@86 4121 #ifndef __cplusplus
cannam@86 4122 #define inline $ac_val
cannam@86 4123 #endif
cannam@86 4124 _ACEOF
cannam@86 4125 ;;
cannam@86 4126 esac
cannam@86 4127
cannam@86 4128
cannam@86 4129 enable_win32_dll=yes
cannam@86 4130
cannam@86 4131 case $host in
cannam@86 4132 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cannam@86 4133 if test -n "$ac_tool_prefix"; then
cannam@86 4134 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
cannam@86 4135 set dummy ${ac_tool_prefix}as; ac_word=$2
cannam@86 4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 4137 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 4138 if ${ac_cv_prog_AS+:} false; then :
cannam@86 4139 $as_echo_n "(cached) " >&6
cannam@86 4140 else
cannam@86 4141 if test -n "$AS"; then
cannam@86 4142 ac_cv_prog_AS="$AS" # Let the user override the test.
cannam@86 4143 else
cannam@86 4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 4145 for as_dir in $PATH
cannam@86 4146 do
cannam@86 4147 IFS=$as_save_IFS
cannam@86 4148 test -z "$as_dir" && as_dir=.
cannam@86 4149 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 4150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 4151 ac_cv_prog_AS="${ac_tool_prefix}as"
cannam@86 4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 4153 break 2
cannam@86 4154 fi
cannam@86 4155 done
cannam@86 4156 done
cannam@86 4157 IFS=$as_save_IFS
cannam@86 4158
cannam@86 4159 fi
cannam@86 4160 fi
cannam@86 4161 AS=$ac_cv_prog_AS
cannam@86 4162 if test -n "$AS"; then
cannam@86 4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cannam@86 4164 $as_echo "$AS" >&6; }
cannam@86 4165 else
cannam@86 4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 4167 $as_echo "no" >&6; }
cannam@86 4168 fi
cannam@86 4169
cannam@86 4170
cannam@86 4171 fi
cannam@86 4172 if test -z "$ac_cv_prog_AS"; then
cannam@86 4173 ac_ct_AS=$AS
cannam@86 4174 # Extract the first word of "as", so it can be a program name with args.
cannam@86 4175 set dummy as; ac_word=$2
cannam@86 4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 4177 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 4178 if ${ac_cv_prog_ac_ct_AS+:} false; then :
cannam@86 4179 $as_echo_n "(cached) " >&6
cannam@86 4180 else
cannam@86 4181 if test -n "$ac_ct_AS"; then
cannam@86 4182 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
cannam@86 4183 else
cannam@86 4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 4185 for as_dir in $PATH
cannam@86 4186 do
cannam@86 4187 IFS=$as_save_IFS
cannam@86 4188 test -z "$as_dir" && as_dir=.
cannam@86 4189 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 4190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 4191 ac_cv_prog_ac_ct_AS="as"
cannam@86 4192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 4193 break 2
cannam@86 4194 fi
cannam@86 4195 done
cannam@86 4196 done
cannam@86 4197 IFS=$as_save_IFS
cannam@86 4198
cannam@86 4199 fi
cannam@86 4200 fi
cannam@86 4201 ac_ct_AS=$ac_cv_prog_ac_ct_AS
cannam@86 4202 if test -n "$ac_ct_AS"; then
cannam@86 4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cannam@86 4204 $as_echo "$ac_ct_AS" >&6; }
cannam@86 4205 else
cannam@86 4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 4207 $as_echo "no" >&6; }
cannam@86 4208 fi
cannam@86 4209
cannam@86 4210 if test "x$ac_ct_AS" = x; then
cannam@86 4211 AS="false"
cannam@86 4212 else
cannam@86 4213 case $cross_compiling:$ac_tool_warned in
cannam@86 4214 yes:)
cannam@86 4215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 4216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 4217 ac_tool_warned=yes ;;
cannam@86 4218 esac
cannam@86 4219 AS=$ac_ct_AS
cannam@86 4220 fi
cannam@86 4221 else
cannam@86 4222 AS="$ac_cv_prog_AS"
cannam@86 4223 fi
cannam@86 4224
cannam@86 4225 if test -n "$ac_tool_prefix"; then
cannam@86 4226 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
cannam@86 4227 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cannam@86 4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 4229 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 4230 if ${ac_cv_prog_DLLTOOL+:} false; then :
cannam@86 4231 $as_echo_n "(cached) " >&6
cannam@86 4232 else
cannam@86 4233 if test -n "$DLLTOOL"; then
cannam@86 4234 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
cannam@86 4235 else
cannam@86 4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 4237 for as_dir in $PATH
cannam@86 4238 do
cannam@86 4239 IFS=$as_save_IFS
cannam@86 4240 test -z "$as_dir" && as_dir=.
cannam@86 4241 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 4242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 4243 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cannam@86 4244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 4245 break 2
cannam@86 4246 fi
cannam@86 4247 done
cannam@86 4248 done
cannam@86 4249 IFS=$as_save_IFS
cannam@86 4250
cannam@86 4251 fi
cannam@86 4252 fi
cannam@86 4253 DLLTOOL=$ac_cv_prog_DLLTOOL
cannam@86 4254 if test -n "$DLLTOOL"; then
cannam@86 4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cannam@86 4256 $as_echo "$DLLTOOL" >&6; }
cannam@86 4257 else
cannam@86 4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 4259 $as_echo "no" >&6; }
cannam@86 4260 fi
cannam@86 4261
cannam@86 4262
cannam@86 4263 fi
cannam@86 4264 if test -z "$ac_cv_prog_DLLTOOL"; then
cannam@86 4265 ac_ct_DLLTOOL=$DLLTOOL
cannam@86 4266 # Extract the first word of "dlltool", so it can be a program name with args.
cannam@86 4267 set dummy dlltool; ac_word=$2
cannam@86 4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 4269 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 4270 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cannam@86 4271 $as_echo_n "(cached) " >&6
cannam@86 4272 else
cannam@86 4273 if test -n "$ac_ct_DLLTOOL"; then
cannam@86 4274 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
cannam@86 4275 else
cannam@86 4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 4277 for as_dir in $PATH
cannam@86 4278 do
cannam@86 4279 IFS=$as_save_IFS
cannam@86 4280 test -z "$as_dir" && as_dir=.
cannam@86 4281 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 4282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 4283 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cannam@86 4284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 4285 break 2
cannam@86 4286 fi
cannam@86 4287 done
cannam@86 4288 done
cannam@86 4289 IFS=$as_save_IFS
cannam@86 4290
cannam@86 4291 fi
cannam@86 4292 fi
cannam@86 4293 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
cannam@86 4294 if test -n "$ac_ct_DLLTOOL"; then
cannam@86 4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cannam@86 4296 $as_echo "$ac_ct_DLLTOOL" >&6; }
cannam@86 4297 else
cannam@86 4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 4299 $as_echo "no" >&6; }
cannam@86 4300 fi
cannam@86 4301
cannam@86 4302 if test "x$ac_ct_DLLTOOL" = x; then
cannam@86 4303 DLLTOOL="false"
cannam@86 4304 else
cannam@86 4305 case $cross_compiling:$ac_tool_warned in
cannam@86 4306 yes:)
cannam@86 4307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 4308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 4309 ac_tool_warned=yes ;;
cannam@86 4310 esac
cannam@86 4311 DLLTOOL=$ac_ct_DLLTOOL
cannam@86 4312 fi
cannam@86 4313 else
cannam@86 4314 DLLTOOL="$ac_cv_prog_DLLTOOL"
cannam@86 4315 fi
cannam@86 4316
cannam@86 4317 if test -n "$ac_tool_prefix"; then
cannam@86 4318 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
cannam@86 4319 set dummy ${ac_tool_prefix}objdump; ac_word=$2
cannam@86 4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 4321 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 4322 if ${ac_cv_prog_OBJDUMP+:} false; then :
cannam@86 4323 $as_echo_n "(cached) " >&6
cannam@86 4324 else
cannam@86 4325 if test -n "$OBJDUMP"; then
cannam@86 4326 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
cannam@86 4327 else
cannam@86 4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 4329 for as_dir in $PATH
cannam@86 4330 do
cannam@86 4331 IFS=$as_save_IFS
cannam@86 4332 test -z "$as_dir" && as_dir=.
cannam@86 4333 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 4335 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cannam@86 4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 4337 break 2
cannam@86 4338 fi
cannam@86 4339 done
cannam@86 4340 done
cannam@86 4341 IFS=$as_save_IFS
cannam@86 4342
cannam@86 4343 fi
cannam@86 4344 fi
cannam@86 4345 OBJDUMP=$ac_cv_prog_OBJDUMP
cannam@86 4346 if test -n "$OBJDUMP"; then
cannam@86 4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cannam@86 4348 $as_echo "$OBJDUMP" >&6; }
cannam@86 4349 else
cannam@86 4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 4351 $as_echo "no" >&6; }
cannam@86 4352 fi
cannam@86 4353
cannam@86 4354
cannam@86 4355 fi
cannam@86 4356 if test -z "$ac_cv_prog_OBJDUMP"; then
cannam@86 4357 ac_ct_OBJDUMP=$OBJDUMP
cannam@86 4358 # Extract the first word of "objdump", so it can be a program name with args.
cannam@86 4359 set dummy objdump; ac_word=$2
cannam@86 4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 4361 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 4362 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cannam@86 4363 $as_echo_n "(cached) " >&6
cannam@86 4364 else
cannam@86 4365 if test -n "$ac_ct_OBJDUMP"; then
cannam@86 4366 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
cannam@86 4367 else
cannam@86 4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 4369 for as_dir in $PATH
cannam@86 4370 do
cannam@86 4371 IFS=$as_save_IFS
cannam@86 4372 test -z "$as_dir" && as_dir=.
cannam@86 4373 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 4375 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cannam@86 4376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 4377 break 2
cannam@86 4378 fi
cannam@86 4379 done
cannam@86 4380 done
cannam@86 4381 IFS=$as_save_IFS
cannam@86 4382
cannam@86 4383 fi
cannam@86 4384 fi
cannam@86 4385 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
cannam@86 4386 if test -n "$ac_ct_OBJDUMP"; then
cannam@86 4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cannam@86 4388 $as_echo "$ac_ct_OBJDUMP" >&6; }
cannam@86 4389 else
cannam@86 4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 4391 $as_echo "no" >&6; }
cannam@86 4392 fi
cannam@86 4393
cannam@86 4394 if test "x$ac_ct_OBJDUMP" = x; then
cannam@86 4395 OBJDUMP="false"
cannam@86 4396 else
cannam@86 4397 case $cross_compiling:$ac_tool_warned in
cannam@86 4398 yes:)
cannam@86 4399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 4400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 4401 ac_tool_warned=yes ;;
cannam@86 4402 esac
cannam@86 4403 OBJDUMP=$ac_ct_OBJDUMP
cannam@86 4404 fi
cannam@86 4405 else
cannam@86 4406 OBJDUMP="$ac_cv_prog_OBJDUMP"
cannam@86 4407 fi
cannam@86 4408
cannam@86 4409 ;;
cannam@86 4410 esac
cannam@86 4411
cannam@86 4412 test -z "$AS" && AS=as
cannam@86 4413
cannam@86 4414
cannam@86 4415
cannam@86 4416
cannam@86 4417
cannam@86 4418 test -z "$DLLTOOL" && DLLTOOL=dlltool
cannam@86 4419
cannam@86 4420
cannam@86 4421
cannam@86 4422
cannam@86 4423
cannam@86 4424 test -z "$OBJDUMP" && OBJDUMP=objdump
cannam@86 4425
cannam@86 4426
cannam@86 4427
cannam@86 4428
cannam@86 4429
cannam@86 4430
cannam@86 4431
cannam@86 4432 case `pwd` in
cannam@86 4433 *\ * | *\ *)
cannam@86 4434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cannam@86 4435 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
cannam@86 4436 esac
cannam@86 4437
cannam@86 4438
cannam@86 4439
cannam@86 4440 macro_version='2.4'
cannam@86 4441 macro_revision='1.3293'
cannam@86 4442
cannam@86 4443
cannam@86 4444
cannam@86 4445
cannam@86 4446
cannam@86 4447
cannam@86 4448
cannam@86 4449
cannam@86 4450
cannam@86 4451
cannam@86 4452
cannam@86 4453
cannam@86 4454
cannam@86 4455 ltmain="$ac_aux_dir/ltmain.sh"
cannam@86 4456
cannam@86 4457 # Backslashify metacharacters that are still active within
cannam@86 4458 # double-quoted strings.
cannam@86 4459 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
cannam@86 4460
cannam@86 4461 # Same as above, but do not quote variable references.
cannam@86 4462 double_quote_subst='s/\(["`\\]\)/\\\1/g'
cannam@86 4463
cannam@86 4464 # Sed substitution to delay expansion of an escaped shell variable in a
cannam@86 4465 # double_quote_subst'ed string.
cannam@86 4466 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
cannam@86 4467
cannam@86 4468 # Sed substitution to delay expansion of an escaped single quote.
cannam@86 4469 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
cannam@86 4470
cannam@86 4471 # Sed substitution to avoid accidental globbing in evaled expressions
cannam@86 4472 no_glob_subst='s/\*/\\\*/g'
cannam@86 4473
cannam@86 4474 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@86 4475 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
cannam@86 4476 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
cannam@86 4477
cannam@86 4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
cannam@86 4479 $as_echo_n "checking how to print strings... " >&6; }
cannam@86 4480 # Test print first, because it will be a builtin if present.
cannam@86 4481 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cannam@86 4482 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
cannam@86 4483 ECHO='print -r --'
cannam@86 4484 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
cannam@86 4485 ECHO='printf %s\n'
cannam@86 4486 else
cannam@86 4487 # Use this function as a fallback that always works.
cannam@86 4488 func_fallback_echo ()
cannam@86 4489 {
cannam@86 4490 eval 'cat <<_LTECHO_EOF
cannam@86 4491 $1
cannam@86 4492 _LTECHO_EOF'
cannam@86 4493 }
cannam@86 4494 ECHO='func_fallback_echo'
cannam@86 4495 fi
cannam@86 4496
cannam@86 4497 # func_echo_all arg...
cannam@86 4498 # Invoke $ECHO with all args, space-separated.
cannam@86 4499 func_echo_all ()
cannam@86 4500 {
cannam@86 4501 $ECHO ""
cannam@86 4502 }
cannam@86 4503
cannam@86 4504 case "$ECHO" in
cannam@86 4505 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
cannam@86 4506 $as_echo "printf" >&6; } ;;
cannam@86 4507 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
cannam@86 4508 $as_echo "print -r" >&6; } ;;
cannam@86 4509 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
cannam@86 4510 $as_echo "cat" >&6; } ;;
cannam@86 4511 esac
cannam@86 4512
cannam@86 4513
cannam@86 4514
cannam@86 4515
cannam@86 4516
cannam@86 4517
cannam@86 4518
cannam@86 4519
cannam@86 4520
cannam@86 4521
cannam@86 4522
cannam@86 4523
cannam@86 4524
cannam@86 4525
cannam@86 4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cannam@86 4527 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
cannam@86 4528 if ${ac_cv_path_SED+:} false; then :
cannam@86 4529 $as_echo_n "(cached) " >&6
cannam@86 4530 else
cannam@86 4531 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
cannam@86 4532 for ac_i in 1 2 3 4 5 6 7; do
cannam@86 4533 ac_script="$ac_script$as_nl$ac_script"
cannam@86 4534 done
cannam@86 4535 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cannam@86 4536 { ac_script=; unset ac_script;}
cannam@86 4537 if test -z "$SED"; then
cannam@86 4538 ac_path_SED_found=false
cannam@86 4539 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@86 4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 4541 for as_dir in $PATH
cannam@86 4542 do
cannam@86 4543 IFS=$as_save_IFS
cannam@86 4544 test -z "$as_dir" && as_dir=.
cannam@86 4545 for ac_prog in sed gsed; do
cannam@86 4546 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 4547 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cannam@86 4548 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
cannam@86 4549 # Check for GNU ac_path_SED and select it if it is found.
cannam@86 4550 # Check for GNU $ac_path_SED
cannam@86 4551 case `"$ac_path_SED" --version 2>&1` in
cannam@86 4552 *GNU*)
cannam@86 4553 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
cannam@86 4554 *)
cannam@86 4555 ac_count=0
cannam@86 4556 $as_echo_n 0123456789 >"conftest.in"
cannam@86 4557 while :
cannam@86 4558 do
cannam@86 4559 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@86 4560 mv "conftest.tmp" "conftest.in"
cannam@86 4561 cp "conftest.in" "conftest.nl"
cannam@86 4562 $as_echo '' >> "conftest.nl"
cannam@86 4563 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@86 4564 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@86 4565 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@86 4566 if test $ac_count -gt ${ac_path_SED_max-0}; then
cannam@86 4567 # Best one so far, save it but keep looking for a better one
cannam@86 4568 ac_cv_path_SED="$ac_path_SED"
cannam@86 4569 ac_path_SED_max=$ac_count
cannam@86 4570 fi
cannam@86 4571 # 10*(2^10) chars as input seems more than enough
cannam@86 4572 test $ac_count -gt 10 && break
cannam@86 4573 done
cannam@86 4574 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@86 4575 esac
cannam@86 4576
cannam@86 4577 $ac_path_SED_found && break 3
cannam@86 4578 done
cannam@86 4579 done
cannam@86 4580 done
cannam@86 4581 IFS=$as_save_IFS
cannam@86 4582 if test -z "$ac_cv_path_SED"; then
cannam@86 4583 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cannam@86 4584 fi
cannam@86 4585 else
cannam@86 4586 ac_cv_path_SED=$SED
cannam@86 4587 fi
cannam@86 4588
cannam@86 4589 fi
cannam@86 4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cannam@86 4591 $as_echo "$ac_cv_path_SED" >&6; }
cannam@86 4592 SED="$ac_cv_path_SED"
cannam@86 4593 rm -f conftest.sed
cannam@86 4594
cannam@86 4595 test -z "$SED" && SED=sed
cannam@86 4596 Xsed="$SED -e 1s/^X//"
cannam@86 4597
cannam@86 4598
cannam@86 4599
cannam@86 4600
cannam@86 4601
cannam@86 4602
cannam@86 4603
cannam@86 4604
cannam@86 4605
cannam@86 4606
cannam@86 4607
cannam@86 4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
cannam@86 4609 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cannam@86 4610 if ${ac_cv_path_GREP+:} false; then :
cannam@86 4611 $as_echo_n "(cached) " >&6
cannam@86 4612 else
cannam@86 4613 if test -z "$GREP"; then
cannam@86 4614 ac_path_GREP_found=false
cannam@86 4615 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@86 4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 4617 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
cannam@86 4618 do
cannam@86 4619 IFS=$as_save_IFS
cannam@86 4620 test -z "$as_dir" && as_dir=.
cannam@86 4621 for ac_prog in grep ggrep; do
cannam@86 4622 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 4623 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cannam@86 4624 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
cannam@86 4625 # Check for GNU ac_path_GREP and select it if it is found.
cannam@86 4626 # Check for GNU $ac_path_GREP
cannam@86 4627 case `"$ac_path_GREP" --version 2>&1` in
cannam@86 4628 *GNU*)
cannam@86 4629 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
cannam@86 4630 *)
cannam@86 4631 ac_count=0
cannam@86 4632 $as_echo_n 0123456789 >"conftest.in"
cannam@86 4633 while :
cannam@86 4634 do
cannam@86 4635 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@86 4636 mv "conftest.tmp" "conftest.in"
cannam@86 4637 cp "conftest.in" "conftest.nl"
cannam@86 4638 $as_echo 'GREP' >> "conftest.nl"
cannam@86 4639 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@86 4640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@86 4641 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@86 4642 if test $ac_count -gt ${ac_path_GREP_max-0}; then
cannam@86 4643 # Best one so far, save it but keep looking for a better one
cannam@86 4644 ac_cv_path_GREP="$ac_path_GREP"
cannam@86 4645 ac_path_GREP_max=$ac_count
cannam@86 4646 fi
cannam@86 4647 # 10*(2^10) chars as input seems more than enough
cannam@86 4648 test $ac_count -gt 10 && break
cannam@86 4649 done
cannam@86 4650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@86 4651 esac
cannam@86 4652
cannam@86 4653 $ac_path_GREP_found && break 3
cannam@86 4654 done
cannam@86 4655 done
cannam@86 4656 done
cannam@86 4657 IFS=$as_save_IFS
cannam@86 4658 if test -z "$ac_cv_path_GREP"; then
cannam@86 4659 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cannam@86 4660 fi
cannam@86 4661 else
cannam@86 4662 ac_cv_path_GREP=$GREP
cannam@86 4663 fi
cannam@86 4664
cannam@86 4665 fi
cannam@86 4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
cannam@86 4667 $as_echo "$ac_cv_path_GREP" >&6; }
cannam@86 4668 GREP="$ac_cv_path_GREP"
cannam@86 4669
cannam@86 4670
cannam@86 4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
cannam@86 4672 $as_echo_n "checking for egrep... " >&6; }
cannam@86 4673 if ${ac_cv_path_EGREP+:} false; then :
cannam@86 4674 $as_echo_n "(cached) " >&6
cannam@86 4675 else
cannam@86 4676 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
cannam@86 4677 then ac_cv_path_EGREP="$GREP -E"
cannam@86 4678 else
cannam@86 4679 if test -z "$EGREP"; then
cannam@86 4680 ac_path_EGREP_found=false
cannam@86 4681 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@86 4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 4683 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
cannam@86 4684 do
cannam@86 4685 IFS=$as_save_IFS
cannam@86 4686 test -z "$as_dir" && as_dir=.
cannam@86 4687 for ac_prog in egrep; do
cannam@86 4688 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 4689 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cannam@86 4690 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
cannam@86 4691 # Check for GNU ac_path_EGREP and select it if it is found.
cannam@86 4692 # Check for GNU $ac_path_EGREP
cannam@86 4693 case `"$ac_path_EGREP" --version 2>&1` in
cannam@86 4694 *GNU*)
cannam@86 4695 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
cannam@86 4696 *)
cannam@86 4697 ac_count=0
cannam@86 4698 $as_echo_n 0123456789 >"conftest.in"
cannam@86 4699 while :
cannam@86 4700 do
cannam@86 4701 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@86 4702 mv "conftest.tmp" "conftest.in"
cannam@86 4703 cp "conftest.in" "conftest.nl"
cannam@86 4704 $as_echo 'EGREP' >> "conftest.nl"
cannam@86 4705 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@86 4706 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@86 4707 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@86 4708 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
cannam@86 4709 # Best one so far, save it but keep looking for a better one
cannam@86 4710 ac_cv_path_EGREP="$ac_path_EGREP"
cannam@86 4711 ac_path_EGREP_max=$ac_count
cannam@86 4712 fi
cannam@86 4713 # 10*(2^10) chars as input seems more than enough
cannam@86 4714 test $ac_count -gt 10 && break
cannam@86 4715 done
cannam@86 4716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@86 4717 esac
cannam@86 4718
cannam@86 4719 $ac_path_EGREP_found && break 3
cannam@86 4720 done
cannam@86 4721 done
cannam@86 4722 done
cannam@86 4723 IFS=$as_save_IFS
cannam@86 4724 if test -z "$ac_cv_path_EGREP"; then
cannam@86 4725 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cannam@86 4726 fi
cannam@86 4727 else
cannam@86 4728 ac_cv_path_EGREP=$EGREP
cannam@86 4729 fi
cannam@86 4730
cannam@86 4731 fi
cannam@86 4732 fi
cannam@86 4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
cannam@86 4734 $as_echo "$ac_cv_path_EGREP" >&6; }
cannam@86 4735 EGREP="$ac_cv_path_EGREP"
cannam@86 4736
cannam@86 4737
cannam@86 4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cannam@86 4739 $as_echo_n "checking for fgrep... " >&6; }
cannam@86 4740 if ${ac_cv_path_FGREP+:} false; then :
cannam@86 4741 $as_echo_n "(cached) " >&6
cannam@86 4742 else
cannam@86 4743 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
cannam@86 4744 then ac_cv_path_FGREP="$GREP -F"
cannam@86 4745 else
cannam@86 4746 if test -z "$FGREP"; then
cannam@86 4747 ac_path_FGREP_found=false
cannam@86 4748 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@86 4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 4750 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
cannam@86 4751 do
cannam@86 4752 IFS=$as_save_IFS
cannam@86 4753 test -z "$as_dir" && as_dir=.
cannam@86 4754 for ac_prog in fgrep; do
cannam@86 4755 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 4756 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cannam@86 4757 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
cannam@86 4758 # Check for GNU ac_path_FGREP and select it if it is found.
cannam@86 4759 # Check for GNU $ac_path_FGREP
cannam@86 4760 case `"$ac_path_FGREP" --version 2>&1` in
cannam@86 4761 *GNU*)
cannam@86 4762 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
cannam@86 4763 *)
cannam@86 4764 ac_count=0
cannam@86 4765 $as_echo_n 0123456789 >"conftest.in"
cannam@86 4766 while :
cannam@86 4767 do
cannam@86 4768 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@86 4769 mv "conftest.tmp" "conftest.in"
cannam@86 4770 cp "conftest.in" "conftest.nl"
cannam@86 4771 $as_echo 'FGREP' >> "conftest.nl"
cannam@86 4772 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@86 4773 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@86 4774 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@86 4775 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
cannam@86 4776 # Best one so far, save it but keep looking for a better one
cannam@86 4777 ac_cv_path_FGREP="$ac_path_FGREP"
cannam@86 4778 ac_path_FGREP_max=$ac_count
cannam@86 4779 fi
cannam@86 4780 # 10*(2^10) chars as input seems more than enough
cannam@86 4781 test $ac_count -gt 10 && break
cannam@86 4782 done
cannam@86 4783 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@86 4784 esac
cannam@86 4785
cannam@86 4786 $ac_path_FGREP_found && break 3
cannam@86 4787 done
cannam@86 4788 done
cannam@86 4789 done
cannam@86 4790 IFS=$as_save_IFS
cannam@86 4791 if test -z "$ac_cv_path_FGREP"; then
cannam@86 4792 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cannam@86 4793 fi
cannam@86 4794 else
cannam@86 4795 ac_cv_path_FGREP=$FGREP
cannam@86 4796 fi
cannam@86 4797
cannam@86 4798 fi
cannam@86 4799 fi
cannam@86 4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cannam@86 4801 $as_echo "$ac_cv_path_FGREP" >&6; }
cannam@86 4802 FGREP="$ac_cv_path_FGREP"
cannam@86 4803
cannam@86 4804
cannam@86 4805 test -z "$GREP" && GREP=grep
cannam@86 4806
cannam@86 4807
cannam@86 4808
cannam@86 4809
cannam@86 4810
cannam@86 4811
cannam@86 4812
cannam@86 4813
cannam@86 4814
cannam@86 4815
cannam@86 4816
cannam@86 4817
cannam@86 4818
cannam@86 4819
cannam@86 4820
cannam@86 4821
cannam@86 4822
cannam@86 4823
cannam@86 4824
cannam@86 4825 # Check whether --with-gnu-ld was given.
cannam@86 4826 if test "${with_gnu_ld+set}" = set; then :
cannam@86 4827 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
cannam@86 4828 else
cannam@86 4829 with_gnu_ld=no
cannam@86 4830 fi
cannam@86 4831
cannam@86 4832 ac_prog=ld
cannam@86 4833 if test "$GCC" = yes; then
cannam@86 4834 # Check if gcc -print-prog-name=ld gives a path.
cannam@86 4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cannam@86 4836 $as_echo_n "checking for ld used by $CC... " >&6; }
cannam@86 4837 case $host in
cannam@86 4838 *-*-mingw*)
cannam@86 4839 # gcc leaves a trailing carriage return which upsets mingw
cannam@86 4840 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
cannam@86 4841 *)
cannam@86 4842 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
cannam@86 4843 esac
cannam@86 4844 case $ac_prog in
cannam@86 4845 # Accept absolute paths.
cannam@86 4846 [\\/]* | ?:[\\/]*)
cannam@86 4847 re_direlt='/[^/][^/]*/\.\./'
cannam@86 4848 # Canonicalize the pathname of ld
cannam@86 4849 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
cannam@86 4850 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
cannam@86 4851 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cannam@86 4852 done
cannam@86 4853 test -z "$LD" && LD="$ac_prog"
cannam@86 4854 ;;
cannam@86 4855 "")
cannam@86 4856 # If it fails, then pretend we aren't using GCC.
cannam@86 4857 ac_prog=ld
cannam@86 4858 ;;
cannam@86 4859 *)
cannam@86 4860 # If it is relative, then search for the first ld in PATH.
cannam@86 4861 with_gnu_ld=unknown
cannam@86 4862 ;;
cannam@86 4863 esac
cannam@86 4864 elif test "$with_gnu_ld" = yes; then
cannam@86 4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cannam@86 4866 $as_echo_n "checking for GNU ld... " >&6; }
cannam@86 4867 else
cannam@86 4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cannam@86 4869 $as_echo_n "checking for non-GNU ld... " >&6; }
cannam@86 4870 fi
cannam@86 4871 if ${lt_cv_path_LD+:} false; then :
cannam@86 4872 $as_echo_n "(cached) " >&6
cannam@86 4873 else
cannam@86 4874 if test -z "$LD"; then
cannam@86 4875 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@86 4876 for ac_dir in $PATH; do
cannam@86 4877 IFS="$lt_save_ifs"
cannam@86 4878 test -z "$ac_dir" && ac_dir=.
cannam@86 4879 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
cannam@86 4880 lt_cv_path_LD="$ac_dir/$ac_prog"
cannam@86 4881 # Check to see if the program is GNU ld. I'd rather use --version,
cannam@86 4882 # but apparently some variants of GNU ld only accept -v.
cannam@86 4883 # Break only if it was the GNU/non-GNU ld that we prefer.
cannam@86 4884 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
cannam@86 4885 *GNU* | *'with BFD'*)
cannam@86 4886 test "$with_gnu_ld" != no && break
cannam@86 4887 ;;
cannam@86 4888 *)
cannam@86 4889 test "$with_gnu_ld" != yes && break
cannam@86 4890 ;;
cannam@86 4891 esac
cannam@86 4892 fi
cannam@86 4893 done
cannam@86 4894 IFS="$lt_save_ifs"
cannam@86 4895 else
cannam@86 4896 lt_cv_path_LD="$LD" # Let the user override the test with a path.
cannam@86 4897 fi
cannam@86 4898 fi
cannam@86 4899
cannam@86 4900 LD="$lt_cv_path_LD"
cannam@86 4901 if test -n "$LD"; then
cannam@86 4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cannam@86 4903 $as_echo "$LD" >&6; }
cannam@86 4904 else
cannam@86 4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 4906 $as_echo "no" >&6; }
cannam@86 4907 fi
cannam@86 4908 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cannam@86 4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cannam@86 4910 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cannam@86 4911 if ${lt_cv_prog_gnu_ld+:} false; then :
cannam@86 4912 $as_echo_n "(cached) " >&6
cannam@86 4913 else
cannam@86 4914 # I'd rather use --version here, but apparently some GNU lds only accept -v.
cannam@86 4915 case `$LD -v 2>&1 </dev/null` in
cannam@86 4916 *GNU* | *'with BFD'*)
cannam@86 4917 lt_cv_prog_gnu_ld=yes
cannam@86 4918 ;;
cannam@86 4919 *)
cannam@86 4920 lt_cv_prog_gnu_ld=no
cannam@86 4921 ;;
cannam@86 4922 esac
cannam@86 4923 fi
cannam@86 4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cannam@86 4925 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
cannam@86 4926 with_gnu_ld=$lt_cv_prog_gnu_ld
cannam@86 4927
cannam@86 4928
cannam@86 4929
cannam@86 4930
cannam@86 4931
cannam@86 4932
cannam@86 4933
cannam@86 4934
cannam@86 4935
cannam@86 4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cannam@86 4937 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cannam@86 4938 if ${lt_cv_path_NM+:} false; then :
cannam@86 4939 $as_echo_n "(cached) " >&6
cannam@86 4940 else
cannam@86 4941 if test -n "$NM"; then
cannam@86 4942 # Let the user override the test.
cannam@86 4943 lt_cv_path_NM="$NM"
cannam@86 4944 else
cannam@86 4945 lt_nm_to_check="${ac_tool_prefix}nm"
cannam@86 4946 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
cannam@86 4947 lt_nm_to_check="$lt_nm_to_check nm"
cannam@86 4948 fi
cannam@86 4949 for lt_tmp_nm in $lt_nm_to_check; do
cannam@86 4950 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@86 4951 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
cannam@86 4952 IFS="$lt_save_ifs"
cannam@86 4953 test -z "$ac_dir" && ac_dir=.
cannam@86 4954 tmp_nm="$ac_dir/$lt_tmp_nm"
cannam@86 4955 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
cannam@86 4956 # Check to see if the nm accepts a BSD-compat flag.
cannam@86 4957 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
cannam@86 4958 # nm: unknown option "B" ignored
cannam@86 4959 # Tru64's nm complains that /dev/null is an invalid object file
cannam@86 4960 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
cannam@86 4961 */dev/null* | *'Invalid file or object type'*)
cannam@86 4962 lt_cv_path_NM="$tmp_nm -B"
cannam@86 4963 break
cannam@86 4964 ;;
cannam@86 4965 *)
cannam@86 4966 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
cannam@86 4967 */dev/null*)
cannam@86 4968 lt_cv_path_NM="$tmp_nm -p"
cannam@86 4969 break
cannam@86 4970 ;;
cannam@86 4971 *)
cannam@86 4972 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
cannam@86 4973 continue # so that we can try to find one that supports BSD flags
cannam@86 4974 ;;
cannam@86 4975 esac
cannam@86 4976 ;;
cannam@86 4977 esac
cannam@86 4978 fi
cannam@86 4979 done
cannam@86 4980 IFS="$lt_save_ifs"
cannam@86 4981 done
cannam@86 4982 : ${lt_cv_path_NM=no}
cannam@86 4983 fi
cannam@86 4984 fi
cannam@86 4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cannam@86 4986 $as_echo "$lt_cv_path_NM" >&6; }
cannam@86 4987 if test "$lt_cv_path_NM" != "no"; then
cannam@86 4988 NM="$lt_cv_path_NM"
cannam@86 4989 else
cannam@86 4990 # Didn't find any BSD compatible name lister, look for dumpbin.
cannam@86 4991 if test -n "$DUMPBIN"; then :
cannam@86 4992 # Let the user override the test.
cannam@86 4993 else
cannam@86 4994 if test -n "$ac_tool_prefix"; then
cannam@86 4995 for ac_prog in dumpbin "link -dump"
cannam@86 4996 do
cannam@86 4997 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@86 4998 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@86 4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 5000 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 5001 if ${ac_cv_prog_DUMPBIN+:} false; then :
cannam@86 5002 $as_echo_n "(cached) " >&6
cannam@86 5003 else
cannam@86 5004 if test -n "$DUMPBIN"; then
cannam@86 5005 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
cannam@86 5006 else
cannam@86 5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 5008 for as_dir in $PATH
cannam@86 5009 do
cannam@86 5010 IFS=$as_save_IFS
cannam@86 5011 test -z "$as_dir" && as_dir=.
cannam@86 5012 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 5013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 5014 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cannam@86 5015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 5016 break 2
cannam@86 5017 fi
cannam@86 5018 done
cannam@86 5019 done
cannam@86 5020 IFS=$as_save_IFS
cannam@86 5021
cannam@86 5022 fi
cannam@86 5023 fi
cannam@86 5024 DUMPBIN=$ac_cv_prog_DUMPBIN
cannam@86 5025 if test -n "$DUMPBIN"; then
cannam@86 5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cannam@86 5027 $as_echo "$DUMPBIN" >&6; }
cannam@86 5028 else
cannam@86 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 5030 $as_echo "no" >&6; }
cannam@86 5031 fi
cannam@86 5032
cannam@86 5033
cannam@86 5034 test -n "$DUMPBIN" && break
cannam@86 5035 done
cannam@86 5036 fi
cannam@86 5037 if test -z "$DUMPBIN"; then
cannam@86 5038 ac_ct_DUMPBIN=$DUMPBIN
cannam@86 5039 for ac_prog in dumpbin "link -dump"
cannam@86 5040 do
cannam@86 5041 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@86 5042 set dummy $ac_prog; ac_word=$2
cannam@86 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 5044 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 5045 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cannam@86 5046 $as_echo_n "(cached) " >&6
cannam@86 5047 else
cannam@86 5048 if test -n "$ac_ct_DUMPBIN"; then
cannam@86 5049 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
cannam@86 5050 else
cannam@86 5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 5052 for as_dir in $PATH
cannam@86 5053 do
cannam@86 5054 IFS=$as_save_IFS
cannam@86 5055 test -z "$as_dir" && as_dir=.
cannam@86 5056 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 5058 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cannam@86 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 5060 break 2
cannam@86 5061 fi
cannam@86 5062 done
cannam@86 5063 done
cannam@86 5064 IFS=$as_save_IFS
cannam@86 5065
cannam@86 5066 fi
cannam@86 5067 fi
cannam@86 5068 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
cannam@86 5069 if test -n "$ac_ct_DUMPBIN"; then
cannam@86 5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cannam@86 5071 $as_echo "$ac_ct_DUMPBIN" >&6; }
cannam@86 5072 else
cannam@86 5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 5074 $as_echo "no" >&6; }
cannam@86 5075 fi
cannam@86 5076
cannam@86 5077
cannam@86 5078 test -n "$ac_ct_DUMPBIN" && break
cannam@86 5079 done
cannam@86 5080
cannam@86 5081 if test "x$ac_ct_DUMPBIN" = x; then
cannam@86 5082 DUMPBIN=":"
cannam@86 5083 else
cannam@86 5084 case $cross_compiling:$ac_tool_warned in
cannam@86 5085 yes:)
cannam@86 5086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 5087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 5088 ac_tool_warned=yes ;;
cannam@86 5089 esac
cannam@86 5090 DUMPBIN=$ac_ct_DUMPBIN
cannam@86 5091 fi
cannam@86 5092 fi
cannam@86 5093
cannam@86 5094 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
cannam@86 5095 *COFF*)
cannam@86 5096 DUMPBIN="$DUMPBIN -symbols"
cannam@86 5097 ;;
cannam@86 5098 *)
cannam@86 5099 DUMPBIN=:
cannam@86 5100 ;;
cannam@86 5101 esac
cannam@86 5102 fi
cannam@86 5103
cannam@86 5104 if test "$DUMPBIN" != ":"; then
cannam@86 5105 NM="$DUMPBIN"
cannam@86 5106 fi
cannam@86 5107 fi
cannam@86 5108 test -z "$NM" && NM=nm
cannam@86 5109
cannam@86 5110
cannam@86 5111
cannam@86 5112
cannam@86 5113
cannam@86 5114
cannam@86 5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cannam@86 5116 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
cannam@86 5117 if ${lt_cv_nm_interface+:} false; then :
cannam@86 5118 $as_echo_n "(cached) " >&6
cannam@86 5119 else
cannam@86 5120 lt_cv_nm_interface="BSD nm"
cannam@86 5121 echo "int some_variable = 0;" > conftest.$ac_ext
cannam@86 5122 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cannam@86 5123 (eval "$ac_compile" 2>conftest.err)
cannam@86 5124 cat conftest.err >&5
cannam@86 5125 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cannam@86 5126 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
cannam@86 5127 cat conftest.err >&5
cannam@86 5128 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cannam@86 5129 cat conftest.out >&5
cannam@86 5130 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
cannam@86 5131 lt_cv_nm_interface="MS dumpbin"
cannam@86 5132 fi
cannam@86 5133 rm -f conftest*
cannam@86 5134 fi
cannam@86 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cannam@86 5136 $as_echo "$lt_cv_nm_interface" >&6; }
cannam@86 5137
cannam@86 5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cannam@86 5139 $as_echo_n "checking whether ln -s works... " >&6; }
cannam@86 5140 LN_S=$as_ln_s
cannam@86 5141 if test "$LN_S" = "ln -s"; then
cannam@86 5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@86 5143 $as_echo "yes" >&6; }
cannam@86 5144 else
cannam@86 5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cannam@86 5146 $as_echo "no, using $LN_S" >&6; }
cannam@86 5147 fi
cannam@86 5148
cannam@86 5149 # find the maximum length of command line arguments
cannam@86 5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cannam@86 5151 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
cannam@86 5152 if ${lt_cv_sys_max_cmd_len+:} false; then :
cannam@86 5153 $as_echo_n "(cached) " >&6
cannam@86 5154 else
cannam@86 5155 i=0
cannam@86 5156 teststring="ABCD"
cannam@86 5157
cannam@86 5158 case $build_os in
cannam@86 5159 msdosdjgpp*)
cannam@86 5160 # On DJGPP, this test can blow up pretty badly due to problems in libc
cannam@86 5161 # (any single argument exceeding 2000 bytes causes a buffer overrun
cannam@86 5162 # during glob expansion). Even if it were fixed, the result of this
cannam@86 5163 # check would be larger than it should be.
cannam@86 5164 lt_cv_sys_max_cmd_len=12288; # 12K is about right
cannam@86 5165 ;;
cannam@86 5166
cannam@86 5167 gnu*)
cannam@86 5168 # Under GNU Hurd, this test is not required because there is
cannam@86 5169 # no limit to the length of command line arguments.
cannam@86 5170 # Libtool will interpret -1 as no limit whatsoever
cannam@86 5171 lt_cv_sys_max_cmd_len=-1;
cannam@86 5172 ;;
cannam@86 5173
cannam@86 5174 cygwin* | mingw* | cegcc*)
cannam@86 5175 # On Win9x/ME, this test blows up -- it succeeds, but takes
cannam@86 5176 # about 5 minutes as the teststring grows exponentially.
cannam@86 5177 # Worse, since 9x/ME are not pre-emptively multitasking,
cannam@86 5178 # you end up with a "frozen" computer, even though with patience
cannam@86 5179 # the test eventually succeeds (with a max line length of 256k).
cannam@86 5180 # Instead, let's just punt: use the minimum linelength reported by
cannam@86 5181 # all of the supported platforms: 8192 (on NT/2K/XP).
cannam@86 5182 lt_cv_sys_max_cmd_len=8192;
cannam@86 5183 ;;
cannam@86 5184
cannam@86 5185 mint*)
cannam@86 5186 # On MiNT this can take a long time and run out of memory.
cannam@86 5187 lt_cv_sys_max_cmd_len=8192;
cannam@86 5188 ;;
cannam@86 5189
cannam@86 5190 amigaos*)
cannam@86 5191 # On AmigaOS with pdksh, this test takes hours, literally.
cannam@86 5192 # So we just punt and use a minimum line length of 8192.
cannam@86 5193 lt_cv_sys_max_cmd_len=8192;
cannam@86 5194 ;;
cannam@86 5195
cannam@86 5196 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
cannam@86 5197 # This has been around since 386BSD, at least. Likely further.
cannam@86 5198 if test -x /sbin/sysctl; then
cannam@86 5199 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
cannam@86 5200 elif test -x /usr/sbin/sysctl; then
cannam@86 5201 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
cannam@86 5202 else
cannam@86 5203 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cannam@86 5204 fi
cannam@86 5205 # And add a safety zone
cannam@86 5206 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
cannam@86 5207 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
cannam@86 5208 ;;
cannam@86 5209
cannam@86 5210 interix*)
cannam@86 5211 # We know the value 262144 and hardcode it with a safety zone (like BSD)
cannam@86 5212 lt_cv_sys_max_cmd_len=196608
cannam@86 5213 ;;
cannam@86 5214
cannam@86 5215 osf*)
cannam@86 5216 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
cannam@86 5217 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
cannam@86 5218 # nice to cause kernel panics so lets avoid the loop below.
cannam@86 5219 # First set a reasonable default.
cannam@86 5220 lt_cv_sys_max_cmd_len=16384
cannam@86 5221 #
cannam@86 5222 if test -x /sbin/sysconfig; then
cannam@86 5223 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
cannam@86 5224 *1*) lt_cv_sys_max_cmd_len=-1 ;;
cannam@86 5225 esac
cannam@86 5226 fi
cannam@86 5227 ;;
cannam@86 5228 sco3.2v5*)
cannam@86 5229 lt_cv_sys_max_cmd_len=102400
cannam@86 5230 ;;
cannam@86 5231 sysv5* | sco5v6* | sysv4.2uw2*)
cannam@86 5232 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
cannam@86 5233 if test -n "$kargmax"; then
cannam@86 5234 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
cannam@86 5235 else
cannam@86 5236 lt_cv_sys_max_cmd_len=32768
cannam@86 5237 fi
cannam@86 5238 ;;
cannam@86 5239 *)
cannam@86 5240 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
cannam@86 5241 if test -n "$lt_cv_sys_max_cmd_len"; then
cannam@86 5242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
cannam@86 5243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
cannam@86 5244 else
cannam@86 5245 # Make teststring a little bigger before we do anything with it.
cannam@86 5246 # a 1K string should be a reasonable start.
cannam@86 5247 for i in 1 2 3 4 5 6 7 8 ; do
cannam@86 5248 teststring=$teststring$teststring
cannam@86 5249 done
cannam@86 5250 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
cannam@86 5251 # If test is not a shell built-in, we'll probably end up computing a
cannam@86 5252 # maximum length that is only half of the actual maximum length, but
cannam@86 5253 # we can't tell.
cannam@86 5254 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
cannam@86 5255 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cannam@86 5256 test $i != 17 # 1/2 MB should be enough
cannam@86 5257 do
cannam@86 5258 i=`expr $i + 1`
cannam@86 5259 teststring=$teststring$teststring
cannam@86 5260 done
cannam@86 5261 # Only check the string length outside the loop.
cannam@86 5262 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
cannam@86 5263 teststring=
cannam@86 5264 # Add a significant safety factor because C++ compilers can tack on
cannam@86 5265 # massive amounts of additional arguments before passing them to the
cannam@86 5266 # linker. It appears as though 1/2 is a usable value.
cannam@86 5267 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
cannam@86 5268 fi
cannam@86 5269 ;;
cannam@86 5270 esac
cannam@86 5271
cannam@86 5272 fi
cannam@86 5273
cannam@86 5274 if test -n $lt_cv_sys_max_cmd_len ; then
cannam@86 5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cannam@86 5276 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
cannam@86 5277 else
cannam@86 5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cannam@86 5279 $as_echo "none" >&6; }
cannam@86 5280 fi
cannam@86 5281 max_cmd_len=$lt_cv_sys_max_cmd_len
cannam@86 5282
cannam@86 5283
cannam@86 5284
cannam@86 5285
cannam@86 5286
cannam@86 5287
cannam@86 5288 : ${CP="cp -f"}
cannam@86 5289 : ${MV="mv -f"}
cannam@86 5290 : ${RM="rm -f"}
cannam@86 5291
cannam@86 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cannam@86 5293 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
cannam@86 5294 # Try some XSI features
cannam@86 5295 xsi_shell=no
cannam@86 5296 ( _lt_dummy="a/b/c"
cannam@86 5297 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
cannam@86 5298 = c,a/b,b/c, \
cannam@86 5299 && eval 'test $(( 1 + 1 )) -eq 2 \
cannam@86 5300 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
cannam@86 5301 && xsi_shell=yes
cannam@86 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cannam@86 5303 $as_echo "$xsi_shell" >&6; }
cannam@86 5304
cannam@86 5305
cannam@86 5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cannam@86 5307 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
cannam@86 5308 lt_shell_append=no
cannam@86 5309 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
cannam@86 5310 >/dev/null 2>&1 \
cannam@86 5311 && lt_shell_append=yes
cannam@86 5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cannam@86 5313 $as_echo "$lt_shell_append" >&6; }
cannam@86 5314
cannam@86 5315
cannam@86 5316 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
cannam@86 5317 lt_unset=unset
cannam@86 5318 else
cannam@86 5319 lt_unset=false
cannam@86 5320 fi
cannam@86 5321
cannam@86 5322
cannam@86 5323
cannam@86 5324
cannam@86 5325
cannam@86 5326 # test EBCDIC or ASCII
cannam@86 5327 case `echo X|tr X '\101'` in
cannam@86 5328 A) # ASCII based system
cannam@86 5329 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
cannam@86 5330 lt_SP2NL='tr \040 \012'
cannam@86 5331 lt_NL2SP='tr \015\012 \040\040'
cannam@86 5332 ;;
cannam@86 5333 *) # EBCDIC based system
cannam@86 5334 lt_SP2NL='tr \100 \n'
cannam@86 5335 lt_NL2SP='tr \r\n \100\100'
cannam@86 5336 ;;
cannam@86 5337 esac
cannam@86 5338
cannam@86 5339
cannam@86 5340
cannam@86 5341
cannam@86 5342
cannam@86 5343
cannam@86 5344
cannam@86 5345
cannam@86 5346
cannam@86 5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
cannam@86 5348 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
cannam@86 5349 if ${lt_cv_to_host_file_cmd+:} false; then :
cannam@86 5350 $as_echo_n "(cached) " >&6
cannam@86 5351 else
cannam@86 5352 case $host in
cannam@86 5353 *-*-mingw* )
cannam@86 5354 case $build in
cannam@86 5355 *-*-mingw* ) # actually msys
cannam@86 5356 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
cannam@86 5357 ;;
cannam@86 5358 *-*-cygwin* )
cannam@86 5359 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
cannam@86 5360 ;;
cannam@86 5361 * ) # otherwise, assume *nix
cannam@86 5362 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
cannam@86 5363 ;;
cannam@86 5364 esac
cannam@86 5365 ;;
cannam@86 5366 *-*-cygwin* )
cannam@86 5367 case $build in
cannam@86 5368 *-*-mingw* ) # actually msys
cannam@86 5369 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
cannam@86 5370 ;;
cannam@86 5371 *-*-cygwin* )
cannam@86 5372 lt_cv_to_host_file_cmd=func_convert_file_noop
cannam@86 5373 ;;
cannam@86 5374 * ) # otherwise, assume *nix
cannam@86 5375 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
cannam@86 5376 ;;
cannam@86 5377 esac
cannam@86 5378 ;;
cannam@86 5379 * ) # unhandled hosts (and "normal" native builds)
cannam@86 5380 lt_cv_to_host_file_cmd=func_convert_file_noop
cannam@86 5381 ;;
cannam@86 5382 esac
cannam@86 5383
cannam@86 5384 fi
cannam@86 5385
cannam@86 5386 to_host_file_cmd=$lt_cv_to_host_file_cmd
cannam@86 5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
cannam@86 5388 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
cannam@86 5389
cannam@86 5390
cannam@86 5391
cannam@86 5392
cannam@86 5393
cannam@86 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
cannam@86 5395 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
cannam@86 5396 if ${lt_cv_to_tool_file_cmd+:} false; then :
cannam@86 5397 $as_echo_n "(cached) " >&6
cannam@86 5398 else
cannam@86 5399 #assume ordinary cross tools, or native build.
cannam@86 5400 lt_cv_to_tool_file_cmd=func_convert_file_noop
cannam@86 5401 case $host in
cannam@86 5402 *-*-mingw* )
cannam@86 5403 case $build in
cannam@86 5404 *-*-mingw* ) # actually msys
cannam@86 5405 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
cannam@86 5406 ;;
cannam@86 5407 esac
cannam@86 5408 ;;
cannam@86 5409 esac
cannam@86 5410
cannam@86 5411 fi
cannam@86 5412
cannam@86 5413 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
cannam@86 5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
cannam@86 5415 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
cannam@86 5416
cannam@86 5417
cannam@86 5418
cannam@86 5419
cannam@86 5420
cannam@86 5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cannam@86 5422 $as_echo_n "checking for $LD option to reload object files... " >&6; }
cannam@86 5423 if ${lt_cv_ld_reload_flag+:} false; then :
cannam@86 5424 $as_echo_n "(cached) " >&6
cannam@86 5425 else
cannam@86 5426 lt_cv_ld_reload_flag='-r'
cannam@86 5427 fi
cannam@86 5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cannam@86 5429 $as_echo "$lt_cv_ld_reload_flag" >&6; }
cannam@86 5430 reload_flag=$lt_cv_ld_reload_flag
cannam@86 5431 case $reload_flag in
cannam@86 5432 "" | " "*) ;;
cannam@86 5433 *) reload_flag=" $reload_flag" ;;
cannam@86 5434 esac
cannam@86 5435 reload_cmds='$LD$reload_flag -o $output$reload_objs'
cannam@86 5436 case $host_os in
cannam@86 5437 cygwin* | mingw* | pw32* | cegcc*)
cannam@86 5438 if test "$GCC" != yes; then
cannam@86 5439 reload_cmds=false
cannam@86 5440 fi
cannam@86 5441 ;;
cannam@86 5442 darwin*)
cannam@86 5443 if test "$GCC" = yes; then
cannam@86 5444 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
cannam@86 5445 else
cannam@86 5446 reload_cmds='$LD$reload_flag -o $output$reload_objs'
cannam@86 5447 fi
cannam@86 5448 ;;
cannam@86 5449 esac
cannam@86 5450
cannam@86 5451
cannam@86 5452
cannam@86 5453
cannam@86 5454
cannam@86 5455
cannam@86 5456
cannam@86 5457
cannam@86 5458
cannam@86 5459 if test -n "$ac_tool_prefix"; then
cannam@86 5460 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
cannam@86 5461 set dummy ${ac_tool_prefix}objdump; ac_word=$2
cannam@86 5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 5463 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 5464 if ${ac_cv_prog_OBJDUMP+:} false; then :
cannam@86 5465 $as_echo_n "(cached) " >&6
cannam@86 5466 else
cannam@86 5467 if test -n "$OBJDUMP"; then
cannam@86 5468 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
cannam@86 5469 else
cannam@86 5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 5471 for as_dir in $PATH
cannam@86 5472 do
cannam@86 5473 IFS=$as_save_IFS
cannam@86 5474 test -z "$as_dir" && as_dir=.
cannam@86 5475 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 5477 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cannam@86 5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 5479 break 2
cannam@86 5480 fi
cannam@86 5481 done
cannam@86 5482 done
cannam@86 5483 IFS=$as_save_IFS
cannam@86 5484
cannam@86 5485 fi
cannam@86 5486 fi
cannam@86 5487 OBJDUMP=$ac_cv_prog_OBJDUMP
cannam@86 5488 if test -n "$OBJDUMP"; then
cannam@86 5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cannam@86 5490 $as_echo "$OBJDUMP" >&6; }
cannam@86 5491 else
cannam@86 5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 5493 $as_echo "no" >&6; }
cannam@86 5494 fi
cannam@86 5495
cannam@86 5496
cannam@86 5497 fi
cannam@86 5498 if test -z "$ac_cv_prog_OBJDUMP"; then
cannam@86 5499 ac_ct_OBJDUMP=$OBJDUMP
cannam@86 5500 # Extract the first word of "objdump", so it can be a program name with args.
cannam@86 5501 set dummy objdump; ac_word=$2
cannam@86 5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 5503 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 5504 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cannam@86 5505 $as_echo_n "(cached) " >&6
cannam@86 5506 else
cannam@86 5507 if test -n "$ac_ct_OBJDUMP"; then
cannam@86 5508 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
cannam@86 5509 else
cannam@86 5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 5511 for as_dir in $PATH
cannam@86 5512 do
cannam@86 5513 IFS=$as_save_IFS
cannam@86 5514 test -z "$as_dir" && as_dir=.
cannam@86 5515 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 5516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 5517 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cannam@86 5518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 5519 break 2
cannam@86 5520 fi
cannam@86 5521 done
cannam@86 5522 done
cannam@86 5523 IFS=$as_save_IFS
cannam@86 5524
cannam@86 5525 fi
cannam@86 5526 fi
cannam@86 5527 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
cannam@86 5528 if test -n "$ac_ct_OBJDUMP"; then
cannam@86 5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cannam@86 5530 $as_echo "$ac_ct_OBJDUMP" >&6; }
cannam@86 5531 else
cannam@86 5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 5533 $as_echo "no" >&6; }
cannam@86 5534 fi
cannam@86 5535
cannam@86 5536 if test "x$ac_ct_OBJDUMP" = x; then
cannam@86 5537 OBJDUMP="false"
cannam@86 5538 else
cannam@86 5539 case $cross_compiling:$ac_tool_warned in
cannam@86 5540 yes:)
cannam@86 5541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 5542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 5543 ac_tool_warned=yes ;;
cannam@86 5544 esac
cannam@86 5545 OBJDUMP=$ac_ct_OBJDUMP
cannam@86 5546 fi
cannam@86 5547 else
cannam@86 5548 OBJDUMP="$ac_cv_prog_OBJDUMP"
cannam@86 5549 fi
cannam@86 5550
cannam@86 5551 test -z "$OBJDUMP" && OBJDUMP=objdump
cannam@86 5552
cannam@86 5553
cannam@86 5554
cannam@86 5555
cannam@86 5556
cannam@86 5557
cannam@86 5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cannam@86 5559 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
cannam@86 5560 if ${lt_cv_deplibs_check_method+:} false; then :
cannam@86 5561 $as_echo_n "(cached) " >&6
cannam@86 5562 else
cannam@86 5563 lt_cv_file_magic_cmd='$MAGIC_CMD'
cannam@86 5564 lt_cv_file_magic_test_file=
cannam@86 5565 lt_cv_deplibs_check_method='unknown'
cannam@86 5566 # Need to set the preceding variable on all platforms that support
cannam@86 5567 # interlibrary dependencies.
cannam@86 5568 # 'none' -- dependencies not supported.
cannam@86 5569 # `unknown' -- same as none, but documents that we really don't know.
cannam@86 5570 # 'pass_all' -- all dependencies passed with no checks.
cannam@86 5571 # 'test_compile' -- check by making test program.
cannam@86 5572 # 'file_magic [[regex]]' -- check by looking for files in library path
cannam@86 5573 # which responds to the $file_magic_cmd with a given extended regex.
cannam@86 5574 # If you have `file' or equivalent on your system and you're not sure
cannam@86 5575 # whether `pass_all' will *always* work, you probably want this one.
cannam@86 5576
cannam@86 5577 case $host_os in
cannam@86 5578 aix[4-9]*)
cannam@86 5579 lt_cv_deplibs_check_method=pass_all
cannam@86 5580 ;;
cannam@86 5581
cannam@86 5582 beos*)
cannam@86 5583 lt_cv_deplibs_check_method=pass_all
cannam@86 5584 ;;
cannam@86 5585
cannam@86 5586 bsdi[45]*)
cannam@86 5587 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
cannam@86 5588 lt_cv_file_magic_cmd='/usr/bin/file -L'
cannam@86 5589 lt_cv_file_magic_test_file=/shlib/libc.so
cannam@86 5590 ;;
cannam@86 5591
cannam@86 5592 cygwin*)
cannam@86 5593 # func_win32_libid is a shell function defined in ltmain.sh
cannam@86 5594 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
cannam@86 5595 lt_cv_file_magic_cmd='func_win32_libid'
cannam@86 5596 ;;
cannam@86 5597
cannam@86 5598 mingw* | pw32*)
cannam@86 5599 # Base MSYS/MinGW do not provide the 'file' command needed by
cannam@86 5600 # func_win32_libid shell function, so use a weaker test based on 'objdump',
cannam@86 5601 # unless we find 'file', for example because we are cross-compiling.
cannam@86 5602 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
cannam@86 5603 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cannam@86 5604 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
cannam@86 5605 lt_cv_file_magic_cmd='func_win32_libid'
cannam@86 5606 else
cannam@86 5607 # Keep this pattern in sync with the one in func_win32_libid.
cannam@86 5608 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
cannam@86 5609 lt_cv_file_magic_cmd='$OBJDUMP -f'
cannam@86 5610 fi
cannam@86 5611 ;;
cannam@86 5612
cannam@86 5613 cegcc*)
cannam@86 5614 # use the weaker test based on 'objdump'. See mingw*.
cannam@86 5615 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
cannam@86 5616 lt_cv_file_magic_cmd='$OBJDUMP -f'
cannam@86 5617 ;;
cannam@86 5618
cannam@86 5619 darwin* | rhapsody*)
cannam@86 5620 lt_cv_deplibs_check_method=pass_all
cannam@86 5621 ;;
cannam@86 5622
cannam@86 5623 freebsd* | dragonfly*)
cannam@86 5624 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
cannam@86 5625 case $host_cpu in
cannam@86 5626 i*86 )
cannam@86 5627 # Not sure whether the presence of OpenBSD here was a mistake.
cannam@86 5628 # Let's accept both of them until this is cleared up.
cannam@86 5629 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
cannam@86 5630 lt_cv_file_magic_cmd=/usr/bin/file
cannam@86 5631 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
cannam@86 5632 ;;
cannam@86 5633 esac
cannam@86 5634 else
cannam@86 5635 lt_cv_deplibs_check_method=pass_all
cannam@86 5636 fi
cannam@86 5637 ;;
cannam@86 5638
cannam@86 5639 gnu*)
cannam@86 5640 lt_cv_deplibs_check_method=pass_all
cannam@86 5641 ;;
cannam@86 5642
cannam@86 5643 haiku*)
cannam@86 5644 lt_cv_deplibs_check_method=pass_all
cannam@86 5645 ;;
cannam@86 5646
cannam@86 5647 hpux10.20* | hpux11*)
cannam@86 5648 lt_cv_file_magic_cmd=/usr/bin/file
cannam@86 5649 case $host_cpu in
cannam@86 5650 ia64*)
cannam@86 5651 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
cannam@86 5652 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
cannam@86 5653 ;;
cannam@86 5654 hppa*64*)
cannam@86 5655 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@86 5656 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
cannam@86 5657 ;;
cannam@86 5658 *)
cannam@86 5659 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
cannam@86 5660 lt_cv_file_magic_test_file=/usr/lib/libc.sl
cannam@86 5661 ;;
cannam@86 5662 esac
cannam@86 5663 ;;
cannam@86 5664
cannam@86 5665 interix[3-9]*)
cannam@86 5666 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
cannam@86 5667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
cannam@86 5668 ;;
cannam@86 5669
cannam@86 5670 irix5* | irix6* | nonstopux*)
cannam@86 5671 case $LD in
cannam@86 5672 *-32|*"-32 ") libmagic=32-bit;;
cannam@86 5673 *-n32|*"-n32 ") libmagic=N32;;
cannam@86 5674 *-64|*"-64 ") libmagic=64-bit;;
cannam@86 5675 *) libmagic=never-match;;
cannam@86 5676 esac
cannam@86 5677 lt_cv_deplibs_check_method=pass_all
cannam@86 5678 ;;
cannam@86 5679
cannam@86 5680 # This must be Linux ELF.
cannam@86 5681 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cannam@86 5682 lt_cv_deplibs_check_method=pass_all
cannam@86 5683 ;;
cannam@86 5684
cannam@86 5685 netbsd* | netbsdelf*-gnu)
cannam@86 5686 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
cannam@86 5687 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cannam@86 5688 else
cannam@86 5689 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cannam@86 5690 fi
cannam@86 5691 ;;
cannam@86 5692
cannam@86 5693 newos6*)
cannam@86 5694 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
cannam@86 5695 lt_cv_file_magic_cmd=/usr/bin/file
cannam@86 5696 lt_cv_file_magic_test_file=/usr/lib/libnls.so
cannam@86 5697 ;;
cannam@86 5698
cannam@86 5699 *nto* | *qnx*)
cannam@86 5700 lt_cv_deplibs_check_method=pass_all
cannam@86 5701 ;;
cannam@86 5702
cannam@86 5703 openbsd*)
cannam@86 5704 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@86 5705 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
cannam@86 5706 else
cannam@86 5707 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cannam@86 5708 fi
cannam@86 5709 ;;
cannam@86 5710
cannam@86 5711 osf3* | osf4* | osf5*)
cannam@86 5712 lt_cv_deplibs_check_method=pass_all
cannam@86 5713 ;;
cannam@86 5714
cannam@86 5715 rdos*)
cannam@86 5716 lt_cv_deplibs_check_method=pass_all
cannam@86 5717 ;;
cannam@86 5718
cannam@86 5719 solaris*)
cannam@86 5720 lt_cv_deplibs_check_method=pass_all
cannam@86 5721 ;;
cannam@86 5722
cannam@86 5723 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
cannam@86 5724 lt_cv_deplibs_check_method=pass_all
cannam@86 5725 ;;
cannam@86 5726
cannam@86 5727 sysv4 | sysv4.3*)
cannam@86 5728 case $host_vendor in
cannam@86 5729 motorola)
cannam@86 5730 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@86 5731 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
cannam@86 5732 ;;
cannam@86 5733 ncr)
cannam@86 5734 lt_cv_deplibs_check_method=pass_all
cannam@86 5735 ;;
cannam@86 5736 sequent)
cannam@86 5737 lt_cv_file_magic_cmd='/bin/file'
cannam@86 5738 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
cannam@86 5739 ;;
cannam@86 5740 sni)
cannam@86 5741 lt_cv_file_magic_cmd='/bin/file'
cannam@86 5742 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
cannam@86 5743 lt_cv_file_magic_test_file=/lib/libc.so
cannam@86 5744 ;;
cannam@86 5745 siemens)
cannam@86 5746 lt_cv_deplibs_check_method=pass_all
cannam@86 5747 ;;
cannam@86 5748 pc)
cannam@86 5749 lt_cv_deplibs_check_method=pass_all
cannam@86 5750 ;;
cannam@86 5751 esac
cannam@86 5752 ;;
cannam@86 5753
cannam@86 5754 tpf*)
cannam@86 5755 lt_cv_deplibs_check_method=pass_all
cannam@86 5756 ;;
cannam@86 5757 esac
cannam@86 5758
cannam@86 5759 fi
cannam@86 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cannam@86 5761 $as_echo "$lt_cv_deplibs_check_method" >&6; }
cannam@86 5762
cannam@86 5763 file_magic_glob=
cannam@86 5764 want_nocaseglob=no
cannam@86 5765 if test "$build" = "$host"; then
cannam@86 5766 case $host_os in
cannam@86 5767 mingw* | pw32*)
cannam@86 5768 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
cannam@86 5769 want_nocaseglob=yes
cannam@86 5770 else
cannam@86 5771 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
cannam@86 5772 fi
cannam@86 5773 ;;
cannam@86 5774 esac
cannam@86 5775 fi
cannam@86 5776
cannam@86 5777 file_magic_cmd=$lt_cv_file_magic_cmd
cannam@86 5778 deplibs_check_method=$lt_cv_deplibs_check_method
cannam@86 5779 test -z "$deplibs_check_method" && deplibs_check_method=unknown
cannam@86 5780
cannam@86 5781
cannam@86 5782
cannam@86 5783
cannam@86 5784
cannam@86 5785
cannam@86 5786
cannam@86 5787
cannam@86 5788
cannam@86 5789
cannam@86 5790
cannam@86 5791
cannam@86 5792
cannam@86 5793
cannam@86 5794
cannam@86 5795
cannam@86 5796
cannam@86 5797
cannam@86 5798
cannam@86 5799
cannam@86 5800
cannam@86 5801
cannam@86 5802 if test -n "$ac_tool_prefix"; then
cannam@86 5803 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
cannam@86 5804 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cannam@86 5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 5806 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 5807 if ${ac_cv_prog_DLLTOOL+:} false; then :
cannam@86 5808 $as_echo_n "(cached) " >&6
cannam@86 5809 else
cannam@86 5810 if test -n "$DLLTOOL"; then
cannam@86 5811 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
cannam@86 5812 else
cannam@86 5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 5814 for as_dir in $PATH
cannam@86 5815 do
cannam@86 5816 IFS=$as_save_IFS
cannam@86 5817 test -z "$as_dir" && as_dir=.
cannam@86 5818 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 5819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 5820 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cannam@86 5821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 5822 break 2
cannam@86 5823 fi
cannam@86 5824 done
cannam@86 5825 done
cannam@86 5826 IFS=$as_save_IFS
cannam@86 5827
cannam@86 5828 fi
cannam@86 5829 fi
cannam@86 5830 DLLTOOL=$ac_cv_prog_DLLTOOL
cannam@86 5831 if test -n "$DLLTOOL"; then
cannam@86 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cannam@86 5833 $as_echo "$DLLTOOL" >&6; }
cannam@86 5834 else
cannam@86 5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 5836 $as_echo "no" >&6; }
cannam@86 5837 fi
cannam@86 5838
cannam@86 5839
cannam@86 5840 fi
cannam@86 5841 if test -z "$ac_cv_prog_DLLTOOL"; then
cannam@86 5842 ac_ct_DLLTOOL=$DLLTOOL
cannam@86 5843 # Extract the first word of "dlltool", so it can be a program name with args.
cannam@86 5844 set dummy dlltool; ac_word=$2
cannam@86 5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 5846 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 5847 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cannam@86 5848 $as_echo_n "(cached) " >&6
cannam@86 5849 else
cannam@86 5850 if test -n "$ac_ct_DLLTOOL"; then
cannam@86 5851 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
cannam@86 5852 else
cannam@86 5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 5854 for as_dir in $PATH
cannam@86 5855 do
cannam@86 5856 IFS=$as_save_IFS
cannam@86 5857 test -z "$as_dir" && as_dir=.
cannam@86 5858 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 5859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 5860 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cannam@86 5861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 5862 break 2
cannam@86 5863 fi
cannam@86 5864 done
cannam@86 5865 done
cannam@86 5866 IFS=$as_save_IFS
cannam@86 5867
cannam@86 5868 fi
cannam@86 5869 fi
cannam@86 5870 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
cannam@86 5871 if test -n "$ac_ct_DLLTOOL"; then
cannam@86 5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cannam@86 5873 $as_echo "$ac_ct_DLLTOOL" >&6; }
cannam@86 5874 else
cannam@86 5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 5876 $as_echo "no" >&6; }
cannam@86 5877 fi
cannam@86 5878
cannam@86 5879 if test "x$ac_ct_DLLTOOL" = x; then
cannam@86 5880 DLLTOOL="false"
cannam@86 5881 else
cannam@86 5882 case $cross_compiling:$ac_tool_warned in
cannam@86 5883 yes:)
cannam@86 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 5885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 5886 ac_tool_warned=yes ;;
cannam@86 5887 esac
cannam@86 5888 DLLTOOL=$ac_ct_DLLTOOL
cannam@86 5889 fi
cannam@86 5890 else
cannam@86 5891 DLLTOOL="$ac_cv_prog_DLLTOOL"
cannam@86 5892 fi
cannam@86 5893
cannam@86 5894 test -z "$DLLTOOL" && DLLTOOL=dlltool
cannam@86 5895
cannam@86 5896
cannam@86 5897
cannam@86 5898
cannam@86 5899
cannam@86 5900
cannam@86 5901
cannam@86 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
cannam@86 5903 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
cannam@86 5904 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
cannam@86 5905 $as_echo_n "(cached) " >&6
cannam@86 5906 else
cannam@86 5907 lt_cv_sharedlib_from_linklib_cmd='unknown'
cannam@86 5908
cannam@86 5909 case $host_os in
cannam@86 5910 cygwin* | mingw* | pw32* | cegcc*)
cannam@86 5911 # two different shell functions defined in ltmain.sh
cannam@86 5912 # decide which to use based on capabilities of $DLLTOOL
cannam@86 5913 case `$DLLTOOL --help 2>&1` in
cannam@86 5914 *--identify-strict*)
cannam@86 5915 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
cannam@86 5916 ;;
cannam@86 5917 *)
cannam@86 5918 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
cannam@86 5919 ;;
cannam@86 5920 esac
cannam@86 5921 ;;
cannam@86 5922 *)
cannam@86 5923 # fallback: assume linklib IS sharedlib
cannam@86 5924 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
cannam@86 5925 ;;
cannam@86 5926 esac
cannam@86 5927
cannam@86 5928 fi
cannam@86 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
cannam@86 5930 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
cannam@86 5931 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
cannam@86 5932 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
cannam@86 5933
cannam@86 5934
cannam@86 5935
cannam@86 5936
cannam@86 5937
cannam@86 5938
cannam@86 5939
cannam@86 5940 if test -n "$ac_tool_prefix"; then
cannam@86 5941 for ac_prog in ar
cannam@86 5942 do
cannam@86 5943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@86 5944 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@86 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 5946 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 5947 if ${ac_cv_prog_AR+:} false; then :
cannam@86 5948 $as_echo_n "(cached) " >&6
cannam@86 5949 else
cannam@86 5950 if test -n "$AR"; then
cannam@86 5951 ac_cv_prog_AR="$AR" # Let the user override the test.
cannam@86 5952 else
cannam@86 5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 5954 for as_dir in $PATH
cannam@86 5955 do
cannam@86 5956 IFS=$as_save_IFS
cannam@86 5957 test -z "$as_dir" && as_dir=.
cannam@86 5958 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 5960 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cannam@86 5961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 5962 break 2
cannam@86 5963 fi
cannam@86 5964 done
cannam@86 5965 done
cannam@86 5966 IFS=$as_save_IFS
cannam@86 5967
cannam@86 5968 fi
cannam@86 5969 fi
cannam@86 5970 AR=$ac_cv_prog_AR
cannam@86 5971 if test -n "$AR"; then
cannam@86 5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cannam@86 5973 $as_echo "$AR" >&6; }
cannam@86 5974 else
cannam@86 5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 5976 $as_echo "no" >&6; }
cannam@86 5977 fi
cannam@86 5978
cannam@86 5979
cannam@86 5980 test -n "$AR" && break
cannam@86 5981 done
cannam@86 5982 fi
cannam@86 5983 if test -z "$AR"; then
cannam@86 5984 ac_ct_AR=$AR
cannam@86 5985 for ac_prog in ar
cannam@86 5986 do
cannam@86 5987 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@86 5988 set dummy $ac_prog; ac_word=$2
cannam@86 5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 5990 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 5991 if ${ac_cv_prog_ac_ct_AR+:} false; then :
cannam@86 5992 $as_echo_n "(cached) " >&6
cannam@86 5993 else
cannam@86 5994 if test -n "$ac_ct_AR"; then
cannam@86 5995 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
cannam@86 5996 else
cannam@86 5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 5998 for as_dir in $PATH
cannam@86 5999 do
cannam@86 6000 IFS=$as_save_IFS
cannam@86 6001 test -z "$as_dir" && as_dir=.
cannam@86 6002 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 6003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 6004 ac_cv_prog_ac_ct_AR="$ac_prog"
cannam@86 6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 6006 break 2
cannam@86 6007 fi
cannam@86 6008 done
cannam@86 6009 done
cannam@86 6010 IFS=$as_save_IFS
cannam@86 6011
cannam@86 6012 fi
cannam@86 6013 fi
cannam@86 6014 ac_ct_AR=$ac_cv_prog_ac_ct_AR
cannam@86 6015 if test -n "$ac_ct_AR"; then
cannam@86 6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cannam@86 6017 $as_echo "$ac_ct_AR" >&6; }
cannam@86 6018 else
cannam@86 6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 6020 $as_echo "no" >&6; }
cannam@86 6021 fi
cannam@86 6022
cannam@86 6023
cannam@86 6024 test -n "$ac_ct_AR" && break
cannam@86 6025 done
cannam@86 6026
cannam@86 6027 if test "x$ac_ct_AR" = x; then
cannam@86 6028 AR="false"
cannam@86 6029 else
cannam@86 6030 case $cross_compiling:$ac_tool_warned in
cannam@86 6031 yes:)
cannam@86 6032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 6033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 6034 ac_tool_warned=yes ;;
cannam@86 6035 esac
cannam@86 6036 AR=$ac_ct_AR
cannam@86 6037 fi
cannam@86 6038 fi
cannam@86 6039
cannam@86 6040 : ${AR=ar}
cannam@86 6041 : ${AR_FLAGS=cru}
cannam@86 6042
cannam@86 6043
cannam@86 6044
cannam@86 6045
cannam@86 6046
cannam@86 6047
cannam@86 6048
cannam@86 6049
cannam@86 6050
cannam@86 6051
cannam@86 6052
cannam@86 6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
cannam@86 6054 $as_echo_n "checking for archiver @FILE support... " >&6; }
cannam@86 6055 if ${lt_cv_ar_at_file+:} false; then :
cannam@86 6056 $as_echo_n "(cached) " >&6
cannam@86 6057 else
cannam@86 6058 lt_cv_ar_at_file=no
cannam@86 6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 6060 /* end confdefs.h. */
cannam@86 6061
cannam@86 6062 int
cannam@86 6063 main ()
cannam@86 6064 {
cannam@86 6065
cannam@86 6066 ;
cannam@86 6067 return 0;
cannam@86 6068 }
cannam@86 6069 _ACEOF
cannam@86 6070 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 6071 echo conftest.$ac_objext > conftest.lst
cannam@86 6072 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
cannam@86 6073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
cannam@86 6074 (eval $lt_ar_try) 2>&5
cannam@86 6075 ac_status=$?
cannam@86 6076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 6077 test $ac_status = 0; }
cannam@86 6078 if test "$ac_status" -eq 0; then
cannam@86 6079 # Ensure the archiver fails upon bogus file names.
cannam@86 6080 rm -f conftest.$ac_objext libconftest.a
cannam@86 6081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
cannam@86 6082 (eval $lt_ar_try) 2>&5
cannam@86 6083 ac_status=$?
cannam@86 6084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 6085 test $ac_status = 0; }
cannam@86 6086 if test "$ac_status" -ne 0; then
cannam@86 6087 lt_cv_ar_at_file=@
cannam@86 6088 fi
cannam@86 6089 fi
cannam@86 6090 rm -f conftest.* libconftest.a
cannam@86 6091
cannam@86 6092 fi
cannam@86 6093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 6094
cannam@86 6095 fi
cannam@86 6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
cannam@86 6097 $as_echo "$lt_cv_ar_at_file" >&6; }
cannam@86 6098
cannam@86 6099 if test "x$lt_cv_ar_at_file" = xno; then
cannam@86 6100 archiver_list_spec=
cannam@86 6101 else
cannam@86 6102 archiver_list_spec=$lt_cv_ar_at_file
cannam@86 6103 fi
cannam@86 6104
cannam@86 6105
cannam@86 6106
cannam@86 6107
cannam@86 6108
cannam@86 6109
cannam@86 6110
cannam@86 6111 if test -n "$ac_tool_prefix"; then
cannam@86 6112 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
cannam@86 6113 set dummy ${ac_tool_prefix}strip; ac_word=$2
cannam@86 6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 6115 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 6116 if ${ac_cv_prog_STRIP+:} false; then :
cannam@86 6117 $as_echo_n "(cached) " >&6
cannam@86 6118 else
cannam@86 6119 if test -n "$STRIP"; then
cannam@86 6120 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
cannam@86 6121 else
cannam@86 6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 6123 for as_dir in $PATH
cannam@86 6124 do
cannam@86 6125 IFS=$as_save_IFS
cannam@86 6126 test -z "$as_dir" && as_dir=.
cannam@86 6127 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 6128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 6129 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cannam@86 6130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 6131 break 2
cannam@86 6132 fi
cannam@86 6133 done
cannam@86 6134 done
cannam@86 6135 IFS=$as_save_IFS
cannam@86 6136
cannam@86 6137 fi
cannam@86 6138 fi
cannam@86 6139 STRIP=$ac_cv_prog_STRIP
cannam@86 6140 if test -n "$STRIP"; then
cannam@86 6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cannam@86 6142 $as_echo "$STRIP" >&6; }
cannam@86 6143 else
cannam@86 6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 6145 $as_echo "no" >&6; }
cannam@86 6146 fi
cannam@86 6147
cannam@86 6148
cannam@86 6149 fi
cannam@86 6150 if test -z "$ac_cv_prog_STRIP"; then
cannam@86 6151 ac_ct_STRIP=$STRIP
cannam@86 6152 # Extract the first word of "strip", so it can be a program name with args.
cannam@86 6153 set dummy strip; ac_word=$2
cannam@86 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 6155 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 6156 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cannam@86 6157 $as_echo_n "(cached) " >&6
cannam@86 6158 else
cannam@86 6159 if test -n "$ac_ct_STRIP"; then
cannam@86 6160 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
cannam@86 6161 else
cannam@86 6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 6163 for as_dir in $PATH
cannam@86 6164 do
cannam@86 6165 IFS=$as_save_IFS
cannam@86 6166 test -z "$as_dir" && as_dir=.
cannam@86 6167 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 6168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 6169 ac_cv_prog_ac_ct_STRIP="strip"
cannam@86 6170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 6171 break 2
cannam@86 6172 fi
cannam@86 6173 done
cannam@86 6174 done
cannam@86 6175 IFS=$as_save_IFS
cannam@86 6176
cannam@86 6177 fi
cannam@86 6178 fi
cannam@86 6179 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
cannam@86 6180 if test -n "$ac_ct_STRIP"; then
cannam@86 6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cannam@86 6182 $as_echo "$ac_ct_STRIP" >&6; }
cannam@86 6183 else
cannam@86 6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 6185 $as_echo "no" >&6; }
cannam@86 6186 fi
cannam@86 6187
cannam@86 6188 if test "x$ac_ct_STRIP" = x; then
cannam@86 6189 STRIP=":"
cannam@86 6190 else
cannam@86 6191 case $cross_compiling:$ac_tool_warned in
cannam@86 6192 yes:)
cannam@86 6193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 6194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 6195 ac_tool_warned=yes ;;
cannam@86 6196 esac
cannam@86 6197 STRIP=$ac_ct_STRIP
cannam@86 6198 fi
cannam@86 6199 else
cannam@86 6200 STRIP="$ac_cv_prog_STRIP"
cannam@86 6201 fi
cannam@86 6202
cannam@86 6203 test -z "$STRIP" && STRIP=:
cannam@86 6204
cannam@86 6205
cannam@86 6206
cannam@86 6207
cannam@86 6208
cannam@86 6209
cannam@86 6210 if test -n "$ac_tool_prefix"; then
cannam@86 6211 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
cannam@86 6212 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cannam@86 6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 6214 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 6215 if ${ac_cv_prog_RANLIB+:} false; then :
cannam@86 6216 $as_echo_n "(cached) " >&6
cannam@86 6217 else
cannam@86 6218 if test -n "$RANLIB"; then
cannam@86 6219 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
cannam@86 6220 else
cannam@86 6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 6222 for as_dir in $PATH
cannam@86 6223 do
cannam@86 6224 IFS=$as_save_IFS
cannam@86 6225 test -z "$as_dir" && as_dir=.
cannam@86 6226 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 6227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 6228 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cannam@86 6229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 6230 break 2
cannam@86 6231 fi
cannam@86 6232 done
cannam@86 6233 done
cannam@86 6234 IFS=$as_save_IFS
cannam@86 6235
cannam@86 6236 fi
cannam@86 6237 fi
cannam@86 6238 RANLIB=$ac_cv_prog_RANLIB
cannam@86 6239 if test -n "$RANLIB"; then
cannam@86 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cannam@86 6241 $as_echo "$RANLIB" >&6; }
cannam@86 6242 else
cannam@86 6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 6244 $as_echo "no" >&6; }
cannam@86 6245 fi
cannam@86 6246
cannam@86 6247
cannam@86 6248 fi
cannam@86 6249 if test -z "$ac_cv_prog_RANLIB"; then
cannam@86 6250 ac_ct_RANLIB=$RANLIB
cannam@86 6251 # Extract the first word of "ranlib", so it can be a program name with args.
cannam@86 6252 set dummy ranlib; ac_word=$2
cannam@86 6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 6254 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 6255 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cannam@86 6256 $as_echo_n "(cached) " >&6
cannam@86 6257 else
cannam@86 6258 if test -n "$ac_ct_RANLIB"; then
cannam@86 6259 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
cannam@86 6260 else
cannam@86 6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 6262 for as_dir in $PATH
cannam@86 6263 do
cannam@86 6264 IFS=$as_save_IFS
cannam@86 6265 test -z "$as_dir" && as_dir=.
cannam@86 6266 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 6267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 6268 ac_cv_prog_ac_ct_RANLIB="ranlib"
cannam@86 6269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 6270 break 2
cannam@86 6271 fi
cannam@86 6272 done
cannam@86 6273 done
cannam@86 6274 IFS=$as_save_IFS
cannam@86 6275
cannam@86 6276 fi
cannam@86 6277 fi
cannam@86 6278 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
cannam@86 6279 if test -n "$ac_ct_RANLIB"; then
cannam@86 6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cannam@86 6281 $as_echo "$ac_ct_RANLIB" >&6; }
cannam@86 6282 else
cannam@86 6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 6284 $as_echo "no" >&6; }
cannam@86 6285 fi
cannam@86 6286
cannam@86 6287 if test "x$ac_ct_RANLIB" = x; then
cannam@86 6288 RANLIB=":"
cannam@86 6289 else
cannam@86 6290 case $cross_compiling:$ac_tool_warned in
cannam@86 6291 yes:)
cannam@86 6292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 6293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 6294 ac_tool_warned=yes ;;
cannam@86 6295 esac
cannam@86 6296 RANLIB=$ac_ct_RANLIB
cannam@86 6297 fi
cannam@86 6298 else
cannam@86 6299 RANLIB="$ac_cv_prog_RANLIB"
cannam@86 6300 fi
cannam@86 6301
cannam@86 6302 test -z "$RANLIB" && RANLIB=:
cannam@86 6303
cannam@86 6304
cannam@86 6305
cannam@86 6306
cannam@86 6307
cannam@86 6308
cannam@86 6309 # Determine commands to create old-style static archives.
cannam@86 6310 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
cannam@86 6311 old_postinstall_cmds='chmod 644 $oldlib'
cannam@86 6312 old_postuninstall_cmds=
cannam@86 6313
cannam@86 6314 if test -n "$RANLIB"; then
cannam@86 6315 case $host_os in
cannam@86 6316 openbsd*)
cannam@86 6317 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
cannam@86 6318 ;;
cannam@86 6319 *)
cannam@86 6320 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
cannam@86 6321 ;;
cannam@86 6322 esac
cannam@86 6323 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
cannam@86 6324 fi
cannam@86 6325
cannam@86 6326 case $host_os in
cannam@86 6327 darwin*)
cannam@86 6328 lock_old_archive_extraction=yes ;;
cannam@86 6329 *)
cannam@86 6330 lock_old_archive_extraction=no ;;
cannam@86 6331 esac
cannam@86 6332
cannam@86 6333
cannam@86 6334
cannam@86 6335
cannam@86 6336
cannam@86 6337
cannam@86 6338
cannam@86 6339
cannam@86 6340
cannam@86 6341
cannam@86 6342
cannam@86 6343
cannam@86 6344
cannam@86 6345
cannam@86 6346
cannam@86 6347
cannam@86 6348
cannam@86 6349
cannam@86 6350
cannam@86 6351
cannam@86 6352
cannam@86 6353
cannam@86 6354
cannam@86 6355
cannam@86 6356
cannam@86 6357
cannam@86 6358
cannam@86 6359
cannam@86 6360
cannam@86 6361
cannam@86 6362
cannam@86 6363
cannam@86 6364
cannam@86 6365
cannam@86 6366
cannam@86 6367
cannam@86 6368
cannam@86 6369
cannam@86 6370
cannam@86 6371 # If no C compiler was specified, use CC.
cannam@86 6372 LTCC=${LTCC-"$CC"}
cannam@86 6373
cannam@86 6374 # If no C compiler flags were specified, use CFLAGS.
cannam@86 6375 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cannam@86 6376
cannam@86 6377 # Allow CC to be a program name with arguments.
cannam@86 6378 compiler=$CC
cannam@86 6379
cannam@86 6380
cannam@86 6381 # Check for command to grab the raw symbol name followed by C symbol from nm.
cannam@86 6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cannam@86 6383 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cannam@86 6384 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cannam@86 6385 $as_echo_n "(cached) " >&6
cannam@86 6386 else
cannam@86 6387
cannam@86 6388 # These are sane defaults that work on at least a few old systems.
cannam@86 6389 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
cannam@86 6390
cannam@86 6391 # Character class describing NM global symbol codes.
cannam@86 6392 symcode='[BCDEGRST]'
cannam@86 6393
cannam@86 6394 # Regexp to match symbols that can be accessed directly from C.
cannam@86 6395 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
cannam@86 6396
cannam@86 6397 # Define system-specific variables.
cannam@86 6398 case $host_os in
cannam@86 6399 aix*)
cannam@86 6400 symcode='[BCDT]'
cannam@86 6401 ;;
cannam@86 6402 cygwin* | mingw* | pw32* | cegcc*)
cannam@86 6403 symcode='[ABCDGISTW]'
cannam@86 6404 ;;
cannam@86 6405 hpux*)
cannam@86 6406 if test "$host_cpu" = ia64; then
cannam@86 6407 symcode='[ABCDEGRST]'
cannam@86 6408 fi
cannam@86 6409 ;;
cannam@86 6410 irix* | nonstopux*)
cannam@86 6411 symcode='[BCDEGRST]'
cannam@86 6412 ;;
cannam@86 6413 osf*)
cannam@86 6414 symcode='[BCDEGQRST]'
cannam@86 6415 ;;
cannam@86 6416 solaris*)
cannam@86 6417 symcode='[BDRT]'
cannam@86 6418 ;;
cannam@86 6419 sco3.2v5*)
cannam@86 6420 symcode='[DT]'
cannam@86 6421 ;;
cannam@86 6422 sysv4.2uw2*)
cannam@86 6423 symcode='[DT]'
cannam@86 6424 ;;
cannam@86 6425 sysv5* | sco5v6* | unixware* | OpenUNIX*)
cannam@86 6426 symcode='[ABDT]'
cannam@86 6427 ;;
cannam@86 6428 sysv4)
cannam@86 6429 symcode='[DFNSTU]'
cannam@86 6430 ;;
cannam@86 6431 esac
cannam@86 6432
cannam@86 6433 # If we're using GNU nm, then use its standard symbol codes.
cannam@86 6434 case `$NM -V 2>&1` in
cannam@86 6435 *GNU* | *'with BFD'*)
cannam@86 6436 symcode='[ABCDGIRSTW]' ;;
cannam@86 6437 esac
cannam@86 6438
cannam@86 6439 # Transform an extracted symbol line into a proper C declaration.
cannam@86 6440 # Some systems (esp. on ia64) link data and code symbols differently,
cannam@86 6441 # so use this general approach.
cannam@86 6442 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
cannam@86 6443
cannam@86 6444 # Transform an extracted symbol line into symbol name and symbol address
cannam@86 6445 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@86 6446 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@86 6447
cannam@86 6448 # Handle CRLF in mingw tool chain
cannam@86 6449 opt_cr=
cannam@86 6450 case $build_os in
cannam@86 6451 mingw*)
cannam@86 6452 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
cannam@86 6453 ;;
cannam@86 6454 esac
cannam@86 6455
cannam@86 6456 # Try without a prefix underscore, then with it.
cannam@86 6457 for ac_symprfx in "" "_"; do
cannam@86 6458
cannam@86 6459 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
cannam@86 6460 symxfrm="\\1 $ac_symprfx\\2 \\2"
cannam@86 6461
cannam@86 6462 # Write the raw and C identifiers.
cannam@86 6463 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
cannam@86 6464 # Fake it for dumpbin and say T for any non-static function
cannam@86 6465 # and D for any global variable.
cannam@86 6466 # Also find C++ and __fastcall symbols from MSVC++,
cannam@86 6467 # which start with @ or ?.
cannam@86 6468 lt_cv_sys_global_symbol_pipe="$AWK '"\
cannam@86 6469 " {last_section=section; section=\$ 3};"\
cannam@86 6470 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
cannam@86 6471 " \$ 0!~/External *\|/{next};"\
cannam@86 6472 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
cannam@86 6473 " {if(hide[section]) next};"\
cannam@86 6474 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
cannam@86 6475 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
cannam@86 6476 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
cannam@86 6477 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
cannam@86 6478 " ' prfx=^$ac_symprfx"
cannam@86 6479 else
cannam@86 6480 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
cannam@86 6481 fi
cannam@86 6482 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cannam@86 6483
cannam@86 6484 # Check to see that the pipe works correctly.
cannam@86 6485 pipe_works=no
cannam@86 6486
cannam@86 6487 rm -f conftest*
cannam@86 6488 cat > conftest.$ac_ext <<_LT_EOF
cannam@86 6489 #ifdef __cplusplus
cannam@86 6490 extern "C" {
cannam@86 6491 #endif
cannam@86 6492 char nm_test_var;
cannam@86 6493 void nm_test_func(void);
cannam@86 6494 void nm_test_func(void){}
cannam@86 6495 #ifdef __cplusplus
cannam@86 6496 }
cannam@86 6497 #endif
cannam@86 6498 int main(){nm_test_var='a';nm_test_func();return(0);}
cannam@86 6499 _LT_EOF
cannam@86 6500
cannam@86 6501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@86 6502 (eval $ac_compile) 2>&5
cannam@86 6503 ac_status=$?
cannam@86 6504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 6505 test $ac_status = 0; }; then
cannam@86 6506 # Now try to grab the symbols.
cannam@86 6507 nlist=conftest.nm
cannam@86 6508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
cannam@86 6509 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cannam@86 6510 ac_status=$?
cannam@86 6511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 6512 test $ac_status = 0; } && test -s "$nlist"; then
cannam@86 6513 # Try sorting and uniquifying the output.
cannam@86 6514 if sort "$nlist" | uniq > "$nlist"T; then
cannam@86 6515 mv -f "$nlist"T "$nlist"
cannam@86 6516 else
cannam@86 6517 rm -f "$nlist"T
cannam@86 6518 fi
cannam@86 6519
cannam@86 6520 # Make sure that we snagged all the symbols we need.
cannam@86 6521 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
cannam@86 6522 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
cannam@86 6523 cat <<_LT_EOF > conftest.$ac_ext
cannam@86 6524 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
cannam@86 6525 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
cannam@86 6526 /* DATA imports from DLLs on WIN32 con't be const, because runtime
cannam@86 6527 relocations are performed -- see ld's documentation on pseudo-relocs. */
cannam@86 6528 # define LT_DLSYM_CONST
cannam@86 6529 #elif defined(__osf__)
cannam@86 6530 /* This system does not cope well with relocations in const data. */
cannam@86 6531 # define LT_DLSYM_CONST
cannam@86 6532 #else
cannam@86 6533 # define LT_DLSYM_CONST const
cannam@86 6534 #endif
cannam@86 6535
cannam@86 6536 #ifdef __cplusplus
cannam@86 6537 extern "C" {
cannam@86 6538 #endif
cannam@86 6539
cannam@86 6540 _LT_EOF
cannam@86 6541 # Now generate the symbol file.
cannam@86 6542 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
cannam@86 6543
cannam@86 6544 cat <<_LT_EOF >> conftest.$ac_ext
cannam@86 6545
cannam@86 6546 /* The mapping between symbol names and symbols. */
cannam@86 6547 LT_DLSYM_CONST struct {
cannam@86 6548 const char *name;
cannam@86 6549 void *address;
cannam@86 6550 }
cannam@86 6551 lt__PROGRAM__LTX_preloaded_symbols[] =
cannam@86 6552 {
cannam@86 6553 { "@PROGRAM@", (void *) 0 },
cannam@86 6554 _LT_EOF
cannam@86 6555 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
cannam@86 6556 cat <<\_LT_EOF >> conftest.$ac_ext
cannam@86 6557 {0, (void *) 0}
cannam@86 6558 };
cannam@86 6559
cannam@86 6560 /* This works around a problem in FreeBSD linker */
cannam@86 6561 #ifdef FREEBSD_WORKAROUND
cannam@86 6562 static const void *lt_preloaded_setup() {
cannam@86 6563 return lt__PROGRAM__LTX_preloaded_symbols;
cannam@86 6564 }
cannam@86 6565 #endif
cannam@86 6566
cannam@86 6567 #ifdef __cplusplus
cannam@86 6568 }
cannam@86 6569 #endif
cannam@86 6570 _LT_EOF
cannam@86 6571 # Now try linking the two files.
cannam@86 6572 mv conftest.$ac_objext conftstm.$ac_objext
cannam@86 6573 lt_globsym_save_LIBS=$LIBS
cannam@86 6574 lt_globsym_save_CFLAGS=$CFLAGS
cannam@86 6575 LIBS="conftstm.$ac_objext"
cannam@86 6576 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cannam@86 6577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cannam@86 6578 (eval $ac_link) 2>&5
cannam@86 6579 ac_status=$?
cannam@86 6580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 6581 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cannam@86 6582 pipe_works=yes
cannam@86 6583 fi
cannam@86 6584 LIBS=$lt_globsym_save_LIBS
cannam@86 6585 CFLAGS=$lt_globsym_save_CFLAGS
cannam@86 6586 else
cannam@86 6587 echo "cannot find nm_test_func in $nlist" >&5
cannam@86 6588 fi
cannam@86 6589 else
cannam@86 6590 echo "cannot find nm_test_var in $nlist" >&5
cannam@86 6591 fi
cannam@86 6592 else
cannam@86 6593 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
cannam@86 6594 fi
cannam@86 6595 else
cannam@86 6596 echo "$progname: failed program was:" >&5
cannam@86 6597 cat conftest.$ac_ext >&5
cannam@86 6598 fi
cannam@86 6599 rm -rf conftest* conftst*
cannam@86 6600
cannam@86 6601 # Do not use the global_symbol_pipe unless it works.
cannam@86 6602 if test "$pipe_works" = yes; then
cannam@86 6603 break
cannam@86 6604 else
cannam@86 6605 lt_cv_sys_global_symbol_pipe=
cannam@86 6606 fi
cannam@86 6607 done
cannam@86 6608
cannam@86 6609 fi
cannam@86 6610
cannam@86 6611 if test -z "$lt_cv_sys_global_symbol_pipe"; then
cannam@86 6612 lt_cv_sys_global_symbol_to_cdecl=
cannam@86 6613 fi
cannam@86 6614 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cannam@86 6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cannam@86 6616 $as_echo "failed" >&6; }
cannam@86 6617 else
cannam@86 6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cannam@86 6619 $as_echo "ok" >&6; }
cannam@86 6620 fi
cannam@86 6621
cannam@86 6622 # Response file support.
cannam@86 6623 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
cannam@86 6624 nm_file_list_spec='@'
cannam@86 6625 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
cannam@86 6626 nm_file_list_spec='@'
cannam@86 6627 fi
cannam@86 6628
cannam@86 6629
cannam@86 6630
cannam@86 6631
cannam@86 6632
cannam@86 6633
cannam@86 6634
cannam@86 6635
cannam@86 6636
cannam@86 6637
cannam@86 6638
cannam@86 6639
cannam@86 6640
cannam@86 6641
cannam@86 6642
cannam@86 6643
cannam@86 6644
cannam@86 6645
cannam@86 6646
cannam@86 6647
cannam@86 6648
cannam@86 6649
cannam@86 6650
cannam@86 6651
cannam@86 6652
cannam@86 6653
cannam@86 6654
cannam@86 6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
cannam@86 6656 $as_echo_n "checking for sysroot... " >&6; }
cannam@86 6657
cannam@86 6658 # Check whether --with-sysroot was given.
cannam@86 6659 if test "${with_sysroot+set}" = set; then :
cannam@86 6660 withval=$with_sysroot;
cannam@86 6661 else
cannam@86 6662 with_sysroot=no
cannam@86 6663 fi
cannam@86 6664
cannam@86 6665
cannam@86 6666 lt_sysroot=
cannam@86 6667 case ${with_sysroot} in #(
cannam@86 6668 yes)
cannam@86 6669 if test "$GCC" = yes; then
cannam@86 6670 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
cannam@86 6671 fi
cannam@86 6672 ;; #(
cannam@86 6673 /*)
cannam@86 6674 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
cannam@86 6675 ;; #(
cannam@86 6676 no|'')
cannam@86 6677 ;; #(
cannam@86 6678 *)
cannam@86 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
cannam@86 6680 $as_echo "${with_sysroot}" >&6; }
cannam@86 6681 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
cannam@86 6682 ;;
cannam@86 6683 esac
cannam@86 6684
cannam@86 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
cannam@86 6686 $as_echo "${lt_sysroot:-no}" >&6; }
cannam@86 6687
cannam@86 6688
cannam@86 6689
cannam@86 6690
cannam@86 6691
cannam@86 6692 # Check whether --enable-libtool-lock was given.
cannam@86 6693 if test "${enable_libtool_lock+set}" = set; then :
cannam@86 6694 enableval=$enable_libtool_lock;
cannam@86 6695 fi
cannam@86 6696
cannam@86 6697 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
cannam@86 6698
cannam@86 6699 # Some flags need to be propagated to the compiler or linker for good
cannam@86 6700 # libtool support.
cannam@86 6701 case $host in
cannam@86 6702 ia64-*-hpux*)
cannam@86 6703 # Find out which ABI we are using.
cannam@86 6704 echo 'int i;' > conftest.$ac_ext
cannam@86 6705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@86 6706 (eval $ac_compile) 2>&5
cannam@86 6707 ac_status=$?
cannam@86 6708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 6709 test $ac_status = 0; }; then
cannam@86 6710 case `/usr/bin/file conftest.$ac_objext` in
cannam@86 6711 *ELF-32*)
cannam@86 6712 HPUX_IA64_MODE="32"
cannam@86 6713 ;;
cannam@86 6714 *ELF-64*)
cannam@86 6715 HPUX_IA64_MODE="64"
cannam@86 6716 ;;
cannam@86 6717 esac
cannam@86 6718 fi
cannam@86 6719 rm -rf conftest*
cannam@86 6720 ;;
cannam@86 6721 *-*-irix6*)
cannam@86 6722 # Find out which ABI we are using.
cannam@86 6723 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cannam@86 6724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@86 6725 (eval $ac_compile) 2>&5
cannam@86 6726 ac_status=$?
cannam@86 6727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 6728 test $ac_status = 0; }; then
cannam@86 6729 if test "$lt_cv_prog_gnu_ld" = yes; then
cannam@86 6730 case `/usr/bin/file conftest.$ac_objext` in
cannam@86 6731 *32-bit*)
cannam@86 6732 LD="${LD-ld} -melf32bsmip"
cannam@86 6733 ;;
cannam@86 6734 *N32*)
cannam@86 6735 LD="${LD-ld} -melf32bmipn32"
cannam@86 6736 ;;
cannam@86 6737 *64-bit*)
cannam@86 6738 LD="${LD-ld} -melf64bmip"
cannam@86 6739 ;;
cannam@86 6740 esac
cannam@86 6741 else
cannam@86 6742 case `/usr/bin/file conftest.$ac_objext` in
cannam@86 6743 *32-bit*)
cannam@86 6744 LD="${LD-ld} -32"
cannam@86 6745 ;;
cannam@86 6746 *N32*)
cannam@86 6747 LD="${LD-ld} -n32"
cannam@86 6748 ;;
cannam@86 6749 *64-bit*)
cannam@86 6750 LD="${LD-ld} -64"
cannam@86 6751 ;;
cannam@86 6752 esac
cannam@86 6753 fi
cannam@86 6754 fi
cannam@86 6755 rm -rf conftest*
cannam@86 6756 ;;
cannam@86 6757
cannam@86 6758 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
cannam@86 6759 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
cannam@86 6760 # Find out which ABI we are using.
cannam@86 6761 echo 'int i;' > conftest.$ac_ext
cannam@86 6762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@86 6763 (eval $ac_compile) 2>&5
cannam@86 6764 ac_status=$?
cannam@86 6765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 6766 test $ac_status = 0; }; then
cannam@86 6767 case `/usr/bin/file conftest.o` in
cannam@86 6768 *32-bit*)
cannam@86 6769 case $host in
cannam@86 6770 x86_64-*kfreebsd*-gnu)
cannam@86 6771 LD="${LD-ld} -m elf_i386_fbsd"
cannam@86 6772 ;;
cannam@86 6773 x86_64-*linux*)
cannam@86 6774 LD="${LD-ld} -m elf_i386"
cannam@86 6775 ;;
cannam@86 6776 ppc64-*linux*|powerpc64-*linux*)
cannam@86 6777 LD="${LD-ld} -m elf32ppclinux"
cannam@86 6778 ;;
cannam@86 6779 s390x-*linux*)
cannam@86 6780 LD="${LD-ld} -m elf_s390"
cannam@86 6781 ;;
cannam@86 6782 sparc64-*linux*)
cannam@86 6783 LD="${LD-ld} -m elf32_sparc"
cannam@86 6784 ;;
cannam@86 6785 esac
cannam@86 6786 ;;
cannam@86 6787 *64-bit*)
cannam@86 6788 case $host in
cannam@86 6789 x86_64-*kfreebsd*-gnu)
cannam@86 6790 LD="${LD-ld} -m elf_x86_64_fbsd"
cannam@86 6791 ;;
cannam@86 6792 x86_64-*linux*)
cannam@86 6793 LD="${LD-ld} -m elf_x86_64"
cannam@86 6794 ;;
cannam@86 6795 ppc*-*linux*|powerpc*-*linux*)
cannam@86 6796 LD="${LD-ld} -m elf64ppc"
cannam@86 6797 ;;
cannam@86 6798 s390*-*linux*|s390*-*tpf*)
cannam@86 6799 LD="${LD-ld} -m elf64_s390"
cannam@86 6800 ;;
cannam@86 6801 sparc*-*linux*)
cannam@86 6802 LD="${LD-ld} -m elf64_sparc"
cannam@86 6803 ;;
cannam@86 6804 esac
cannam@86 6805 ;;
cannam@86 6806 esac
cannam@86 6807 fi
cannam@86 6808 rm -rf conftest*
cannam@86 6809 ;;
cannam@86 6810
cannam@86 6811 *-*-sco3.2v5*)
cannam@86 6812 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
cannam@86 6813 SAVE_CFLAGS="$CFLAGS"
cannam@86 6814 CFLAGS="$CFLAGS -belf"
cannam@86 6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cannam@86 6816 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cannam@86 6817 if ${lt_cv_cc_needs_belf+:} false; then :
cannam@86 6818 $as_echo_n "(cached) " >&6
cannam@86 6819 else
cannam@86 6820 ac_ext=c
cannam@86 6821 ac_cpp='$CPP $CPPFLAGS'
cannam@86 6822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@86 6823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@86 6824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@86 6825
cannam@86 6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 6827 /* end confdefs.h. */
cannam@86 6828
cannam@86 6829 int
cannam@86 6830 main ()
cannam@86 6831 {
cannam@86 6832
cannam@86 6833 ;
cannam@86 6834 return 0;
cannam@86 6835 }
cannam@86 6836 _ACEOF
cannam@86 6837 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 6838 lt_cv_cc_needs_belf=yes
cannam@86 6839 else
cannam@86 6840 lt_cv_cc_needs_belf=no
cannam@86 6841 fi
cannam@86 6842 rm -f core conftest.err conftest.$ac_objext \
cannam@86 6843 conftest$ac_exeext conftest.$ac_ext
cannam@86 6844 ac_ext=c
cannam@86 6845 ac_cpp='$CPP $CPPFLAGS'
cannam@86 6846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@86 6847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@86 6848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@86 6849
cannam@86 6850 fi
cannam@86 6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cannam@86 6852 $as_echo "$lt_cv_cc_needs_belf" >&6; }
cannam@86 6853 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
cannam@86 6854 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
cannam@86 6855 CFLAGS="$SAVE_CFLAGS"
cannam@86 6856 fi
cannam@86 6857 ;;
cannam@86 6858 sparc*-*solaris*)
cannam@86 6859 # Find out which ABI we are using.
cannam@86 6860 echo 'int i;' > conftest.$ac_ext
cannam@86 6861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@86 6862 (eval $ac_compile) 2>&5
cannam@86 6863 ac_status=$?
cannam@86 6864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 6865 test $ac_status = 0; }; then
cannam@86 6866 case `/usr/bin/file conftest.o` in
cannam@86 6867 *64-bit*)
cannam@86 6868 case $lt_cv_prog_gnu_ld in
cannam@86 6869 yes*) LD="${LD-ld} -m elf64_sparc" ;;
cannam@86 6870 *)
cannam@86 6871 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
cannam@86 6872 LD="${LD-ld} -64"
cannam@86 6873 fi
cannam@86 6874 ;;
cannam@86 6875 esac
cannam@86 6876 ;;
cannam@86 6877 esac
cannam@86 6878 fi
cannam@86 6879 rm -rf conftest*
cannam@86 6880 ;;
cannam@86 6881 esac
cannam@86 6882
cannam@86 6883 need_locks="$enable_libtool_lock"
cannam@86 6884
cannam@86 6885 if test -n "$ac_tool_prefix"; then
cannam@86 6886 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
cannam@86 6887 set dummy ${ac_tool_prefix}mt; ac_word=$2
cannam@86 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 6889 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 6890 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
cannam@86 6891 $as_echo_n "(cached) " >&6
cannam@86 6892 else
cannam@86 6893 if test -n "$MANIFEST_TOOL"; then
cannam@86 6894 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
cannam@86 6895 else
cannam@86 6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 6897 for as_dir in $PATH
cannam@86 6898 do
cannam@86 6899 IFS=$as_save_IFS
cannam@86 6900 test -z "$as_dir" && as_dir=.
cannam@86 6901 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 6902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 6903 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
cannam@86 6904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 6905 break 2
cannam@86 6906 fi
cannam@86 6907 done
cannam@86 6908 done
cannam@86 6909 IFS=$as_save_IFS
cannam@86 6910
cannam@86 6911 fi
cannam@86 6912 fi
cannam@86 6913 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
cannam@86 6914 if test -n "$MANIFEST_TOOL"; then
cannam@86 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
cannam@86 6916 $as_echo "$MANIFEST_TOOL" >&6; }
cannam@86 6917 else
cannam@86 6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 6919 $as_echo "no" >&6; }
cannam@86 6920 fi
cannam@86 6921
cannam@86 6922
cannam@86 6923 fi
cannam@86 6924 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
cannam@86 6925 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
cannam@86 6926 # Extract the first word of "mt", so it can be a program name with args.
cannam@86 6927 set dummy mt; ac_word=$2
cannam@86 6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 6929 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 6930 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
cannam@86 6931 $as_echo_n "(cached) " >&6
cannam@86 6932 else
cannam@86 6933 if test -n "$ac_ct_MANIFEST_TOOL"; then
cannam@86 6934 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
cannam@86 6935 else
cannam@86 6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 6937 for as_dir in $PATH
cannam@86 6938 do
cannam@86 6939 IFS=$as_save_IFS
cannam@86 6940 test -z "$as_dir" && as_dir=.
cannam@86 6941 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 6942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 6943 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
cannam@86 6944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 6945 break 2
cannam@86 6946 fi
cannam@86 6947 done
cannam@86 6948 done
cannam@86 6949 IFS=$as_save_IFS
cannam@86 6950
cannam@86 6951 fi
cannam@86 6952 fi
cannam@86 6953 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
cannam@86 6954 if test -n "$ac_ct_MANIFEST_TOOL"; then
cannam@86 6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
cannam@86 6956 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
cannam@86 6957 else
cannam@86 6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 6959 $as_echo "no" >&6; }
cannam@86 6960 fi
cannam@86 6961
cannam@86 6962 if test "x$ac_ct_MANIFEST_TOOL" = x; then
cannam@86 6963 MANIFEST_TOOL=":"
cannam@86 6964 else
cannam@86 6965 case $cross_compiling:$ac_tool_warned in
cannam@86 6966 yes:)
cannam@86 6967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 6968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 6969 ac_tool_warned=yes ;;
cannam@86 6970 esac
cannam@86 6971 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
cannam@86 6972 fi
cannam@86 6973 else
cannam@86 6974 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
cannam@86 6975 fi
cannam@86 6976
cannam@86 6977 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
cannam@86 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
cannam@86 6979 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
cannam@86 6980 if ${lt_cv_path_mainfest_tool+:} false; then :
cannam@86 6981 $as_echo_n "(cached) " >&6
cannam@86 6982 else
cannam@86 6983 lt_cv_path_mainfest_tool=no
cannam@86 6984 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
cannam@86 6985 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
cannam@86 6986 cat conftest.err >&5
cannam@86 6987 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
cannam@86 6988 lt_cv_path_mainfest_tool=yes
cannam@86 6989 fi
cannam@86 6990 rm -f conftest*
cannam@86 6991 fi
cannam@86 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
cannam@86 6993 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
cannam@86 6994 if test "x$lt_cv_path_mainfest_tool" != xyes; then
cannam@86 6995 MANIFEST_TOOL=:
cannam@86 6996 fi
cannam@86 6997
cannam@86 6998
cannam@86 6999
cannam@86 7000
cannam@86 7001
cannam@86 7002
cannam@86 7003 case $host_os in
cannam@86 7004 rhapsody* | darwin*)
cannam@86 7005 if test -n "$ac_tool_prefix"; then
cannam@86 7006 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
cannam@86 7007 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cannam@86 7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 7009 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 7010 if ${ac_cv_prog_DSYMUTIL+:} false; then :
cannam@86 7011 $as_echo_n "(cached) " >&6
cannam@86 7012 else
cannam@86 7013 if test -n "$DSYMUTIL"; then
cannam@86 7014 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
cannam@86 7015 else
cannam@86 7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 7017 for as_dir in $PATH
cannam@86 7018 do
cannam@86 7019 IFS=$as_save_IFS
cannam@86 7020 test -z "$as_dir" && as_dir=.
cannam@86 7021 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 7023 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cannam@86 7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 7025 break 2
cannam@86 7026 fi
cannam@86 7027 done
cannam@86 7028 done
cannam@86 7029 IFS=$as_save_IFS
cannam@86 7030
cannam@86 7031 fi
cannam@86 7032 fi
cannam@86 7033 DSYMUTIL=$ac_cv_prog_DSYMUTIL
cannam@86 7034 if test -n "$DSYMUTIL"; then
cannam@86 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cannam@86 7036 $as_echo "$DSYMUTIL" >&6; }
cannam@86 7037 else
cannam@86 7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 7039 $as_echo "no" >&6; }
cannam@86 7040 fi
cannam@86 7041
cannam@86 7042
cannam@86 7043 fi
cannam@86 7044 if test -z "$ac_cv_prog_DSYMUTIL"; then
cannam@86 7045 ac_ct_DSYMUTIL=$DSYMUTIL
cannam@86 7046 # Extract the first word of "dsymutil", so it can be a program name with args.
cannam@86 7047 set dummy dsymutil; ac_word=$2
cannam@86 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 7049 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 7050 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cannam@86 7051 $as_echo_n "(cached) " >&6
cannam@86 7052 else
cannam@86 7053 if test -n "$ac_ct_DSYMUTIL"; then
cannam@86 7054 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
cannam@86 7055 else
cannam@86 7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 7057 for as_dir in $PATH
cannam@86 7058 do
cannam@86 7059 IFS=$as_save_IFS
cannam@86 7060 test -z "$as_dir" && as_dir=.
cannam@86 7061 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 7063 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cannam@86 7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 7065 break 2
cannam@86 7066 fi
cannam@86 7067 done
cannam@86 7068 done
cannam@86 7069 IFS=$as_save_IFS
cannam@86 7070
cannam@86 7071 fi
cannam@86 7072 fi
cannam@86 7073 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
cannam@86 7074 if test -n "$ac_ct_DSYMUTIL"; then
cannam@86 7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cannam@86 7076 $as_echo "$ac_ct_DSYMUTIL" >&6; }
cannam@86 7077 else
cannam@86 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 7079 $as_echo "no" >&6; }
cannam@86 7080 fi
cannam@86 7081
cannam@86 7082 if test "x$ac_ct_DSYMUTIL" = x; then
cannam@86 7083 DSYMUTIL=":"
cannam@86 7084 else
cannam@86 7085 case $cross_compiling:$ac_tool_warned in
cannam@86 7086 yes:)
cannam@86 7087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 7088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 7089 ac_tool_warned=yes ;;
cannam@86 7090 esac
cannam@86 7091 DSYMUTIL=$ac_ct_DSYMUTIL
cannam@86 7092 fi
cannam@86 7093 else
cannam@86 7094 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
cannam@86 7095 fi
cannam@86 7096
cannam@86 7097 if test -n "$ac_tool_prefix"; then
cannam@86 7098 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
cannam@86 7099 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cannam@86 7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 7101 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 7102 if ${ac_cv_prog_NMEDIT+:} false; then :
cannam@86 7103 $as_echo_n "(cached) " >&6
cannam@86 7104 else
cannam@86 7105 if test -n "$NMEDIT"; then
cannam@86 7106 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
cannam@86 7107 else
cannam@86 7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 7109 for as_dir in $PATH
cannam@86 7110 do
cannam@86 7111 IFS=$as_save_IFS
cannam@86 7112 test -z "$as_dir" && as_dir=.
cannam@86 7113 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 7115 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cannam@86 7116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 7117 break 2
cannam@86 7118 fi
cannam@86 7119 done
cannam@86 7120 done
cannam@86 7121 IFS=$as_save_IFS
cannam@86 7122
cannam@86 7123 fi
cannam@86 7124 fi
cannam@86 7125 NMEDIT=$ac_cv_prog_NMEDIT
cannam@86 7126 if test -n "$NMEDIT"; then
cannam@86 7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cannam@86 7128 $as_echo "$NMEDIT" >&6; }
cannam@86 7129 else
cannam@86 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 7131 $as_echo "no" >&6; }
cannam@86 7132 fi
cannam@86 7133
cannam@86 7134
cannam@86 7135 fi
cannam@86 7136 if test -z "$ac_cv_prog_NMEDIT"; then
cannam@86 7137 ac_ct_NMEDIT=$NMEDIT
cannam@86 7138 # Extract the first word of "nmedit", so it can be a program name with args.
cannam@86 7139 set dummy nmedit; ac_word=$2
cannam@86 7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 7141 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 7142 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cannam@86 7143 $as_echo_n "(cached) " >&6
cannam@86 7144 else
cannam@86 7145 if test -n "$ac_ct_NMEDIT"; then
cannam@86 7146 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
cannam@86 7147 else
cannam@86 7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 7149 for as_dir in $PATH
cannam@86 7150 do
cannam@86 7151 IFS=$as_save_IFS
cannam@86 7152 test -z "$as_dir" && as_dir=.
cannam@86 7153 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 7155 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cannam@86 7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 7157 break 2
cannam@86 7158 fi
cannam@86 7159 done
cannam@86 7160 done
cannam@86 7161 IFS=$as_save_IFS
cannam@86 7162
cannam@86 7163 fi
cannam@86 7164 fi
cannam@86 7165 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
cannam@86 7166 if test -n "$ac_ct_NMEDIT"; then
cannam@86 7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cannam@86 7168 $as_echo "$ac_ct_NMEDIT" >&6; }
cannam@86 7169 else
cannam@86 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 7171 $as_echo "no" >&6; }
cannam@86 7172 fi
cannam@86 7173
cannam@86 7174 if test "x$ac_ct_NMEDIT" = x; then
cannam@86 7175 NMEDIT=":"
cannam@86 7176 else
cannam@86 7177 case $cross_compiling:$ac_tool_warned in
cannam@86 7178 yes:)
cannam@86 7179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 7180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 7181 ac_tool_warned=yes ;;
cannam@86 7182 esac
cannam@86 7183 NMEDIT=$ac_ct_NMEDIT
cannam@86 7184 fi
cannam@86 7185 else
cannam@86 7186 NMEDIT="$ac_cv_prog_NMEDIT"
cannam@86 7187 fi
cannam@86 7188
cannam@86 7189 if test -n "$ac_tool_prefix"; then
cannam@86 7190 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
cannam@86 7191 set dummy ${ac_tool_prefix}lipo; ac_word=$2
cannam@86 7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 7193 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 7194 if ${ac_cv_prog_LIPO+:} false; then :
cannam@86 7195 $as_echo_n "(cached) " >&6
cannam@86 7196 else
cannam@86 7197 if test -n "$LIPO"; then
cannam@86 7198 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
cannam@86 7199 else
cannam@86 7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 7201 for as_dir in $PATH
cannam@86 7202 do
cannam@86 7203 IFS=$as_save_IFS
cannam@86 7204 test -z "$as_dir" && as_dir=.
cannam@86 7205 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 7206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 7207 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cannam@86 7208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 7209 break 2
cannam@86 7210 fi
cannam@86 7211 done
cannam@86 7212 done
cannam@86 7213 IFS=$as_save_IFS
cannam@86 7214
cannam@86 7215 fi
cannam@86 7216 fi
cannam@86 7217 LIPO=$ac_cv_prog_LIPO
cannam@86 7218 if test -n "$LIPO"; then
cannam@86 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cannam@86 7220 $as_echo "$LIPO" >&6; }
cannam@86 7221 else
cannam@86 7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 7223 $as_echo "no" >&6; }
cannam@86 7224 fi
cannam@86 7225
cannam@86 7226
cannam@86 7227 fi
cannam@86 7228 if test -z "$ac_cv_prog_LIPO"; then
cannam@86 7229 ac_ct_LIPO=$LIPO
cannam@86 7230 # Extract the first word of "lipo", so it can be a program name with args.
cannam@86 7231 set dummy lipo; ac_word=$2
cannam@86 7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 7233 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 7234 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cannam@86 7235 $as_echo_n "(cached) " >&6
cannam@86 7236 else
cannam@86 7237 if test -n "$ac_ct_LIPO"; then
cannam@86 7238 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
cannam@86 7239 else
cannam@86 7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 7241 for as_dir in $PATH
cannam@86 7242 do
cannam@86 7243 IFS=$as_save_IFS
cannam@86 7244 test -z "$as_dir" && as_dir=.
cannam@86 7245 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 7247 ac_cv_prog_ac_ct_LIPO="lipo"
cannam@86 7248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 7249 break 2
cannam@86 7250 fi
cannam@86 7251 done
cannam@86 7252 done
cannam@86 7253 IFS=$as_save_IFS
cannam@86 7254
cannam@86 7255 fi
cannam@86 7256 fi
cannam@86 7257 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
cannam@86 7258 if test -n "$ac_ct_LIPO"; then
cannam@86 7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cannam@86 7260 $as_echo "$ac_ct_LIPO" >&6; }
cannam@86 7261 else
cannam@86 7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 7263 $as_echo "no" >&6; }
cannam@86 7264 fi
cannam@86 7265
cannam@86 7266 if test "x$ac_ct_LIPO" = x; then
cannam@86 7267 LIPO=":"
cannam@86 7268 else
cannam@86 7269 case $cross_compiling:$ac_tool_warned in
cannam@86 7270 yes:)
cannam@86 7271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 7272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 7273 ac_tool_warned=yes ;;
cannam@86 7274 esac
cannam@86 7275 LIPO=$ac_ct_LIPO
cannam@86 7276 fi
cannam@86 7277 else
cannam@86 7278 LIPO="$ac_cv_prog_LIPO"
cannam@86 7279 fi
cannam@86 7280
cannam@86 7281 if test -n "$ac_tool_prefix"; then
cannam@86 7282 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
cannam@86 7283 set dummy ${ac_tool_prefix}otool; ac_word=$2
cannam@86 7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 7285 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 7286 if ${ac_cv_prog_OTOOL+:} false; then :
cannam@86 7287 $as_echo_n "(cached) " >&6
cannam@86 7288 else
cannam@86 7289 if test -n "$OTOOL"; then
cannam@86 7290 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
cannam@86 7291 else
cannam@86 7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 7293 for as_dir in $PATH
cannam@86 7294 do
cannam@86 7295 IFS=$as_save_IFS
cannam@86 7296 test -z "$as_dir" && as_dir=.
cannam@86 7297 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 7298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 7299 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cannam@86 7300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 7301 break 2
cannam@86 7302 fi
cannam@86 7303 done
cannam@86 7304 done
cannam@86 7305 IFS=$as_save_IFS
cannam@86 7306
cannam@86 7307 fi
cannam@86 7308 fi
cannam@86 7309 OTOOL=$ac_cv_prog_OTOOL
cannam@86 7310 if test -n "$OTOOL"; then
cannam@86 7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cannam@86 7312 $as_echo "$OTOOL" >&6; }
cannam@86 7313 else
cannam@86 7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 7315 $as_echo "no" >&6; }
cannam@86 7316 fi
cannam@86 7317
cannam@86 7318
cannam@86 7319 fi
cannam@86 7320 if test -z "$ac_cv_prog_OTOOL"; then
cannam@86 7321 ac_ct_OTOOL=$OTOOL
cannam@86 7322 # Extract the first word of "otool", so it can be a program name with args.
cannam@86 7323 set dummy otool; ac_word=$2
cannam@86 7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 7325 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 7326 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cannam@86 7327 $as_echo_n "(cached) " >&6
cannam@86 7328 else
cannam@86 7329 if test -n "$ac_ct_OTOOL"; then
cannam@86 7330 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
cannam@86 7331 else
cannam@86 7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 7333 for as_dir in $PATH
cannam@86 7334 do
cannam@86 7335 IFS=$as_save_IFS
cannam@86 7336 test -z "$as_dir" && as_dir=.
cannam@86 7337 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 7338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 7339 ac_cv_prog_ac_ct_OTOOL="otool"
cannam@86 7340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 7341 break 2
cannam@86 7342 fi
cannam@86 7343 done
cannam@86 7344 done
cannam@86 7345 IFS=$as_save_IFS
cannam@86 7346
cannam@86 7347 fi
cannam@86 7348 fi
cannam@86 7349 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
cannam@86 7350 if test -n "$ac_ct_OTOOL"; then
cannam@86 7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cannam@86 7352 $as_echo "$ac_ct_OTOOL" >&6; }
cannam@86 7353 else
cannam@86 7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 7355 $as_echo "no" >&6; }
cannam@86 7356 fi
cannam@86 7357
cannam@86 7358 if test "x$ac_ct_OTOOL" = x; then
cannam@86 7359 OTOOL=":"
cannam@86 7360 else
cannam@86 7361 case $cross_compiling:$ac_tool_warned in
cannam@86 7362 yes:)
cannam@86 7363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 7364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 7365 ac_tool_warned=yes ;;
cannam@86 7366 esac
cannam@86 7367 OTOOL=$ac_ct_OTOOL
cannam@86 7368 fi
cannam@86 7369 else
cannam@86 7370 OTOOL="$ac_cv_prog_OTOOL"
cannam@86 7371 fi
cannam@86 7372
cannam@86 7373 if test -n "$ac_tool_prefix"; then
cannam@86 7374 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
cannam@86 7375 set dummy ${ac_tool_prefix}otool64; ac_word=$2
cannam@86 7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 7377 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 7378 if ${ac_cv_prog_OTOOL64+:} false; then :
cannam@86 7379 $as_echo_n "(cached) " >&6
cannam@86 7380 else
cannam@86 7381 if test -n "$OTOOL64"; then
cannam@86 7382 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
cannam@86 7383 else
cannam@86 7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 7385 for as_dir in $PATH
cannam@86 7386 do
cannam@86 7387 IFS=$as_save_IFS
cannam@86 7388 test -z "$as_dir" && as_dir=.
cannam@86 7389 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 7390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 7391 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cannam@86 7392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 7393 break 2
cannam@86 7394 fi
cannam@86 7395 done
cannam@86 7396 done
cannam@86 7397 IFS=$as_save_IFS
cannam@86 7398
cannam@86 7399 fi
cannam@86 7400 fi
cannam@86 7401 OTOOL64=$ac_cv_prog_OTOOL64
cannam@86 7402 if test -n "$OTOOL64"; then
cannam@86 7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cannam@86 7404 $as_echo "$OTOOL64" >&6; }
cannam@86 7405 else
cannam@86 7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 7407 $as_echo "no" >&6; }
cannam@86 7408 fi
cannam@86 7409
cannam@86 7410
cannam@86 7411 fi
cannam@86 7412 if test -z "$ac_cv_prog_OTOOL64"; then
cannam@86 7413 ac_ct_OTOOL64=$OTOOL64
cannam@86 7414 # Extract the first word of "otool64", so it can be a program name with args.
cannam@86 7415 set dummy otool64; ac_word=$2
cannam@86 7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 7417 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 7418 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cannam@86 7419 $as_echo_n "(cached) " >&6
cannam@86 7420 else
cannam@86 7421 if test -n "$ac_ct_OTOOL64"; then
cannam@86 7422 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
cannam@86 7423 else
cannam@86 7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 7425 for as_dir in $PATH
cannam@86 7426 do
cannam@86 7427 IFS=$as_save_IFS
cannam@86 7428 test -z "$as_dir" && as_dir=.
cannam@86 7429 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 7430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 7431 ac_cv_prog_ac_ct_OTOOL64="otool64"
cannam@86 7432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 7433 break 2
cannam@86 7434 fi
cannam@86 7435 done
cannam@86 7436 done
cannam@86 7437 IFS=$as_save_IFS
cannam@86 7438
cannam@86 7439 fi
cannam@86 7440 fi
cannam@86 7441 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
cannam@86 7442 if test -n "$ac_ct_OTOOL64"; then
cannam@86 7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cannam@86 7444 $as_echo "$ac_ct_OTOOL64" >&6; }
cannam@86 7445 else
cannam@86 7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 7447 $as_echo "no" >&6; }
cannam@86 7448 fi
cannam@86 7449
cannam@86 7450 if test "x$ac_ct_OTOOL64" = x; then
cannam@86 7451 OTOOL64=":"
cannam@86 7452 else
cannam@86 7453 case $cross_compiling:$ac_tool_warned in
cannam@86 7454 yes:)
cannam@86 7455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 7456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 7457 ac_tool_warned=yes ;;
cannam@86 7458 esac
cannam@86 7459 OTOOL64=$ac_ct_OTOOL64
cannam@86 7460 fi
cannam@86 7461 else
cannam@86 7462 OTOOL64="$ac_cv_prog_OTOOL64"
cannam@86 7463 fi
cannam@86 7464
cannam@86 7465
cannam@86 7466
cannam@86 7467
cannam@86 7468
cannam@86 7469
cannam@86 7470
cannam@86 7471
cannam@86 7472
cannam@86 7473
cannam@86 7474
cannam@86 7475
cannam@86 7476
cannam@86 7477
cannam@86 7478
cannam@86 7479
cannam@86 7480
cannam@86 7481
cannam@86 7482
cannam@86 7483
cannam@86 7484
cannam@86 7485
cannam@86 7486
cannam@86 7487
cannam@86 7488
cannam@86 7489
cannam@86 7490
cannam@86 7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cannam@86 7492 $as_echo_n "checking for -single_module linker flag... " >&6; }
cannam@86 7493 if ${lt_cv_apple_cc_single_mod+:} false; then :
cannam@86 7494 $as_echo_n "(cached) " >&6
cannam@86 7495 else
cannam@86 7496 lt_cv_apple_cc_single_mod=no
cannam@86 7497 if test -z "${LT_MULTI_MODULE}"; then
cannam@86 7498 # By default we will add the -single_module flag. You can override
cannam@86 7499 # by either setting the environment variable LT_MULTI_MODULE
cannam@86 7500 # non-empty at configure time, or by adding -multi_module to the
cannam@86 7501 # link flags.
cannam@86 7502 rm -rf libconftest.dylib*
cannam@86 7503 echo "int foo(void){return 1;}" > conftest.c
cannam@86 7504 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
cannam@86 7505 -dynamiclib -Wl,-single_module conftest.c" >&5
cannam@86 7506 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
cannam@86 7507 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
cannam@86 7508 _lt_result=$?
cannam@86 7509 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
cannam@86 7510 lt_cv_apple_cc_single_mod=yes
cannam@86 7511 else
cannam@86 7512 cat conftest.err >&5
cannam@86 7513 fi
cannam@86 7514 rm -rf libconftest.dylib*
cannam@86 7515 rm -f conftest.*
cannam@86 7516 fi
cannam@86 7517 fi
cannam@86 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cannam@86 7519 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cannam@86 7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cannam@86 7521 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cannam@86 7522 if ${lt_cv_ld_exported_symbols_list+:} false; then :
cannam@86 7523 $as_echo_n "(cached) " >&6
cannam@86 7524 else
cannam@86 7525 lt_cv_ld_exported_symbols_list=no
cannam@86 7526 save_LDFLAGS=$LDFLAGS
cannam@86 7527 echo "_main" > conftest.sym
cannam@86 7528 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cannam@86 7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 7530 /* end confdefs.h. */
cannam@86 7531
cannam@86 7532 int
cannam@86 7533 main ()
cannam@86 7534 {
cannam@86 7535
cannam@86 7536 ;
cannam@86 7537 return 0;
cannam@86 7538 }
cannam@86 7539 _ACEOF
cannam@86 7540 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 7541 lt_cv_ld_exported_symbols_list=yes
cannam@86 7542 else
cannam@86 7543 lt_cv_ld_exported_symbols_list=no
cannam@86 7544 fi
cannam@86 7545 rm -f core conftest.err conftest.$ac_objext \
cannam@86 7546 conftest$ac_exeext conftest.$ac_ext
cannam@86 7547 LDFLAGS="$save_LDFLAGS"
cannam@86 7548
cannam@86 7549 fi
cannam@86 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cannam@86 7551 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cannam@86 7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
cannam@86 7553 $as_echo_n "checking for -force_load linker flag... " >&6; }
cannam@86 7554 if ${lt_cv_ld_force_load+:} false; then :
cannam@86 7555 $as_echo_n "(cached) " >&6
cannam@86 7556 else
cannam@86 7557 lt_cv_ld_force_load=no
cannam@86 7558 cat > conftest.c << _LT_EOF
cannam@86 7559 int forced_loaded() { return 2;}
cannam@86 7560 _LT_EOF
cannam@86 7561 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
cannam@86 7562 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
cannam@86 7563 echo "$AR cru libconftest.a conftest.o" >&5
cannam@86 7564 $AR cru libconftest.a conftest.o 2>&5
cannam@86 7565 echo "$RANLIB libconftest.a" >&5
cannam@86 7566 $RANLIB libconftest.a 2>&5
cannam@86 7567 cat > conftest.c << _LT_EOF
cannam@86 7568 int main() { return 0;}
cannam@86 7569 _LT_EOF
cannam@86 7570 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
cannam@86 7571 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
cannam@86 7572 _lt_result=$?
cannam@86 7573 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
cannam@86 7574 lt_cv_ld_force_load=yes
cannam@86 7575 else
cannam@86 7576 cat conftest.err >&5
cannam@86 7577 fi
cannam@86 7578 rm -f conftest.err libconftest.a conftest conftest.c
cannam@86 7579 rm -rf conftest.dSYM
cannam@86 7580
cannam@86 7581 fi
cannam@86 7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
cannam@86 7583 $as_echo "$lt_cv_ld_force_load" >&6; }
cannam@86 7584 case $host_os in
cannam@86 7585 rhapsody* | darwin1.[012])
cannam@86 7586 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
cannam@86 7587 darwin1.*)
cannam@86 7588 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
cannam@86 7589 darwin*) # darwin 5.x on
cannam@86 7590 # if running on 10.5 or later, the deployment target defaults
cannam@86 7591 # to the OS version, if on x86, and 10.4, the deployment
cannam@86 7592 # target defaults to 10.4. Don't you love it?
cannam@86 7593 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
cannam@86 7594 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
cannam@86 7595 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
cannam@86 7596 10.[012]*)
cannam@86 7597 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
cannam@86 7598 10.*)
cannam@86 7599 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
cannam@86 7600 esac
cannam@86 7601 ;;
cannam@86 7602 esac
cannam@86 7603 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
cannam@86 7604 _lt_dar_single_mod='$single_module'
cannam@86 7605 fi
cannam@86 7606 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
cannam@86 7607 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
cannam@86 7608 else
cannam@86 7609 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
cannam@86 7610 fi
cannam@86 7611 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cannam@86 7612 _lt_dsymutil='~$DSYMUTIL $lib || :'
cannam@86 7613 else
cannam@86 7614 _lt_dsymutil=
cannam@86 7615 fi
cannam@86 7616 ;;
cannam@86 7617 esac
cannam@86 7618
cannam@86 7619
cannam@86 7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cannam@86 7621 $as_echo_n "checking for ANSI C header files... " >&6; }
cannam@86 7622 if ${ac_cv_header_stdc+:} false; then :
cannam@86 7623 $as_echo_n "(cached) " >&6
cannam@86 7624 else
cannam@86 7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 7626 /* end confdefs.h. */
cannam@86 7627 #include <stdlib.h>
cannam@86 7628 #include <stdarg.h>
cannam@86 7629 #include <string.h>
cannam@86 7630 #include <float.h>
cannam@86 7631
cannam@86 7632 int
cannam@86 7633 main ()
cannam@86 7634 {
cannam@86 7635
cannam@86 7636 ;
cannam@86 7637 return 0;
cannam@86 7638 }
cannam@86 7639 _ACEOF
cannam@86 7640 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 7641 ac_cv_header_stdc=yes
cannam@86 7642 else
cannam@86 7643 ac_cv_header_stdc=no
cannam@86 7644 fi
cannam@86 7645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 7646
cannam@86 7647 if test $ac_cv_header_stdc = yes; then
cannam@86 7648 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cannam@86 7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 7650 /* end confdefs.h. */
cannam@86 7651 #include <string.h>
cannam@86 7652
cannam@86 7653 _ACEOF
cannam@86 7654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@86 7655 $EGREP "memchr" >/dev/null 2>&1; then :
cannam@86 7656
cannam@86 7657 else
cannam@86 7658 ac_cv_header_stdc=no
cannam@86 7659 fi
cannam@86 7660 rm -f conftest*
cannam@86 7661
cannam@86 7662 fi
cannam@86 7663
cannam@86 7664 if test $ac_cv_header_stdc = yes; then
cannam@86 7665 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cannam@86 7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 7667 /* end confdefs.h. */
cannam@86 7668 #include <stdlib.h>
cannam@86 7669
cannam@86 7670 _ACEOF
cannam@86 7671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@86 7672 $EGREP "free" >/dev/null 2>&1; then :
cannam@86 7673
cannam@86 7674 else
cannam@86 7675 ac_cv_header_stdc=no
cannam@86 7676 fi
cannam@86 7677 rm -f conftest*
cannam@86 7678
cannam@86 7679 fi
cannam@86 7680
cannam@86 7681 if test $ac_cv_header_stdc = yes; then
cannam@86 7682 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cannam@86 7683 if test "$cross_compiling" = yes; then :
cannam@86 7684 :
cannam@86 7685 else
cannam@86 7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 7687 /* end confdefs.h. */
cannam@86 7688 #include <ctype.h>
cannam@86 7689 #include <stdlib.h>
cannam@86 7690 #if ((' ' & 0x0FF) == 0x020)
cannam@86 7691 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
cannam@86 7692 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
cannam@86 7693 #else
cannam@86 7694 # define ISLOWER(c) \
cannam@86 7695 (('a' <= (c) && (c) <= 'i') \
cannam@86 7696 || ('j' <= (c) && (c) <= 'r') \
cannam@86 7697 || ('s' <= (c) && (c) <= 'z'))
cannam@86 7698 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
cannam@86 7699 #endif
cannam@86 7700
cannam@86 7701 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
cannam@86 7702 int
cannam@86 7703 main ()
cannam@86 7704 {
cannam@86 7705 int i;
cannam@86 7706 for (i = 0; i < 256; i++)
cannam@86 7707 if (XOR (islower (i), ISLOWER (i))
cannam@86 7708 || toupper (i) != TOUPPER (i))
cannam@86 7709 return 2;
cannam@86 7710 return 0;
cannam@86 7711 }
cannam@86 7712 _ACEOF
cannam@86 7713 if ac_fn_c_try_run "$LINENO"; then :
cannam@86 7714
cannam@86 7715 else
cannam@86 7716 ac_cv_header_stdc=no
cannam@86 7717 fi
cannam@86 7718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@86 7719 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@86 7720 fi
cannam@86 7721
cannam@86 7722 fi
cannam@86 7723 fi
cannam@86 7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cannam@86 7725 $as_echo "$ac_cv_header_stdc" >&6; }
cannam@86 7726 if test $ac_cv_header_stdc = yes; then
cannam@86 7727
cannam@86 7728 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
cannam@86 7729
cannam@86 7730 fi
cannam@86 7731
cannam@86 7732 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
cannam@86 7733 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
cannam@86 7734 inttypes.h stdint.h unistd.h
cannam@86 7735 do :
cannam@86 7736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cannam@86 7737 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
cannam@86 7738 "
cannam@86 7739 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cannam@86 7740 cat >>confdefs.h <<_ACEOF
cannam@86 7741 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
cannam@86 7742 _ACEOF
cannam@86 7743
cannam@86 7744 fi
cannam@86 7745
cannam@86 7746 done
cannam@86 7747
cannam@86 7748
cannam@86 7749 for ac_header in dlfcn.h
cannam@86 7750 do :
cannam@86 7751 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
cannam@86 7752 "
cannam@86 7753 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cannam@86 7754 cat >>confdefs.h <<_ACEOF
cannam@86 7755 #define HAVE_DLFCN_H 1
cannam@86 7756 _ACEOF
cannam@86 7757
cannam@86 7758 fi
cannam@86 7759
cannam@86 7760 done
cannam@86 7761
cannam@86 7762
cannam@86 7763
cannam@86 7764
cannam@86 7765
cannam@86 7766 # Set options
cannam@86 7767
cannam@86 7768
cannam@86 7769
cannam@86 7770 enable_dlopen=no
cannam@86 7771
cannam@86 7772
cannam@86 7773
cannam@86 7774 # Check whether --enable-shared was given.
cannam@86 7775 if test "${enable_shared+set}" = set; then :
cannam@86 7776 enableval=$enable_shared; p=${PACKAGE-default}
cannam@86 7777 case $enableval in
cannam@86 7778 yes) enable_shared=yes ;;
cannam@86 7779 no) enable_shared=no ;;
cannam@86 7780 *)
cannam@86 7781 enable_shared=no
cannam@86 7782 # Look at the argument we got. We use all the common list separators.
cannam@86 7783 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@86 7784 for pkg in $enableval; do
cannam@86 7785 IFS="$lt_save_ifs"
cannam@86 7786 if test "X$pkg" = "X$p"; then
cannam@86 7787 enable_shared=yes
cannam@86 7788 fi
cannam@86 7789 done
cannam@86 7790 IFS="$lt_save_ifs"
cannam@86 7791 ;;
cannam@86 7792 esac
cannam@86 7793 else
cannam@86 7794 enable_shared=yes
cannam@86 7795 fi
cannam@86 7796
cannam@86 7797
cannam@86 7798
cannam@86 7799
cannam@86 7800
cannam@86 7801
cannam@86 7802
cannam@86 7803
cannam@86 7804
cannam@86 7805 # Check whether --enable-static was given.
cannam@86 7806 if test "${enable_static+set}" = set; then :
cannam@86 7807 enableval=$enable_static; p=${PACKAGE-default}
cannam@86 7808 case $enableval in
cannam@86 7809 yes) enable_static=yes ;;
cannam@86 7810 no) enable_static=no ;;
cannam@86 7811 *)
cannam@86 7812 enable_static=no
cannam@86 7813 # Look at the argument we got. We use all the common list separators.
cannam@86 7814 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@86 7815 for pkg in $enableval; do
cannam@86 7816 IFS="$lt_save_ifs"
cannam@86 7817 if test "X$pkg" = "X$p"; then
cannam@86 7818 enable_static=yes
cannam@86 7819 fi
cannam@86 7820 done
cannam@86 7821 IFS="$lt_save_ifs"
cannam@86 7822 ;;
cannam@86 7823 esac
cannam@86 7824 else
cannam@86 7825 enable_static=yes
cannam@86 7826 fi
cannam@86 7827
cannam@86 7828
cannam@86 7829
cannam@86 7830
cannam@86 7831
cannam@86 7832
cannam@86 7833
cannam@86 7834
cannam@86 7835
cannam@86 7836
cannam@86 7837 # Check whether --with-pic was given.
cannam@86 7838 if test "${with_pic+set}" = set; then :
cannam@86 7839 withval=$with_pic; pic_mode="$withval"
cannam@86 7840 else
cannam@86 7841 pic_mode=default
cannam@86 7842 fi
cannam@86 7843
cannam@86 7844
cannam@86 7845 test -z "$pic_mode" && pic_mode=default
cannam@86 7846
cannam@86 7847
cannam@86 7848
cannam@86 7849
cannam@86 7850
cannam@86 7851
cannam@86 7852
cannam@86 7853 # Check whether --enable-fast-install was given.
cannam@86 7854 if test "${enable_fast_install+set}" = set; then :
cannam@86 7855 enableval=$enable_fast_install; p=${PACKAGE-default}
cannam@86 7856 case $enableval in
cannam@86 7857 yes) enable_fast_install=yes ;;
cannam@86 7858 no) enable_fast_install=no ;;
cannam@86 7859 *)
cannam@86 7860 enable_fast_install=no
cannam@86 7861 # Look at the argument we got. We use all the common list separators.
cannam@86 7862 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@86 7863 for pkg in $enableval; do
cannam@86 7864 IFS="$lt_save_ifs"
cannam@86 7865 if test "X$pkg" = "X$p"; then
cannam@86 7866 enable_fast_install=yes
cannam@86 7867 fi
cannam@86 7868 done
cannam@86 7869 IFS="$lt_save_ifs"
cannam@86 7870 ;;
cannam@86 7871 esac
cannam@86 7872 else
cannam@86 7873 enable_fast_install=yes
cannam@86 7874 fi
cannam@86 7875
cannam@86 7876
cannam@86 7877
cannam@86 7878
cannam@86 7879
cannam@86 7880
cannam@86 7881
cannam@86 7882
cannam@86 7883
cannam@86 7884
cannam@86 7885
cannam@86 7886 # This can be used to rebuild libtool when needed
cannam@86 7887 LIBTOOL_DEPS="$ltmain"
cannam@86 7888
cannam@86 7889 # Always use our own libtool.
cannam@86 7890 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
cannam@86 7891
cannam@86 7892
cannam@86 7893
cannam@86 7894
cannam@86 7895
cannam@86 7896
cannam@86 7897
cannam@86 7898
cannam@86 7899
cannam@86 7900
cannam@86 7901
cannam@86 7902
cannam@86 7903
cannam@86 7904
cannam@86 7905
cannam@86 7906
cannam@86 7907
cannam@86 7908
cannam@86 7909
cannam@86 7910
cannam@86 7911
cannam@86 7912
cannam@86 7913
cannam@86 7914
cannam@86 7915
cannam@86 7916
cannam@86 7917 test -z "$LN_S" && LN_S="ln -s"
cannam@86 7918
cannam@86 7919
cannam@86 7920
cannam@86 7921
cannam@86 7922
cannam@86 7923
cannam@86 7924
cannam@86 7925
cannam@86 7926
cannam@86 7927
cannam@86 7928
cannam@86 7929
cannam@86 7930
cannam@86 7931
cannam@86 7932 if test -n "${ZSH_VERSION+set}" ; then
cannam@86 7933 setopt NO_GLOB_SUBST
cannam@86 7934 fi
cannam@86 7935
cannam@86 7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cannam@86 7937 $as_echo_n "checking for objdir... " >&6; }
cannam@86 7938 if ${lt_cv_objdir+:} false; then :
cannam@86 7939 $as_echo_n "(cached) " >&6
cannam@86 7940 else
cannam@86 7941 rm -f .libs 2>/dev/null
cannam@86 7942 mkdir .libs 2>/dev/null
cannam@86 7943 if test -d .libs; then
cannam@86 7944 lt_cv_objdir=.libs
cannam@86 7945 else
cannam@86 7946 # MS-DOS does not allow filenames that begin with a dot.
cannam@86 7947 lt_cv_objdir=_libs
cannam@86 7948 fi
cannam@86 7949 rmdir .libs 2>/dev/null
cannam@86 7950 fi
cannam@86 7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cannam@86 7952 $as_echo "$lt_cv_objdir" >&6; }
cannam@86 7953 objdir=$lt_cv_objdir
cannam@86 7954
cannam@86 7955
cannam@86 7956
cannam@86 7957
cannam@86 7958
cannam@86 7959 cat >>confdefs.h <<_ACEOF
cannam@86 7960 #define LT_OBJDIR "$lt_cv_objdir/"
cannam@86 7961 _ACEOF
cannam@86 7962
cannam@86 7963
cannam@86 7964
cannam@86 7965
cannam@86 7966 case $host_os in
cannam@86 7967 aix3*)
cannam@86 7968 # AIX sometimes has problems with the GCC collect2 program. For some
cannam@86 7969 # reason, if we set the COLLECT_NAMES environment variable, the problems
cannam@86 7970 # vanish in a puff of smoke.
cannam@86 7971 if test "X${COLLECT_NAMES+set}" != Xset; then
cannam@86 7972 COLLECT_NAMES=
cannam@86 7973 export COLLECT_NAMES
cannam@86 7974 fi
cannam@86 7975 ;;
cannam@86 7976 esac
cannam@86 7977
cannam@86 7978 # Global variables:
cannam@86 7979 ofile=libtool
cannam@86 7980 can_build_shared=yes
cannam@86 7981
cannam@86 7982 # All known linkers require a `.a' archive for static linking (except MSVC,
cannam@86 7983 # which needs '.lib').
cannam@86 7984 libext=a
cannam@86 7985
cannam@86 7986 with_gnu_ld="$lt_cv_prog_gnu_ld"
cannam@86 7987
cannam@86 7988 old_CC="$CC"
cannam@86 7989 old_CFLAGS="$CFLAGS"
cannam@86 7990
cannam@86 7991 # Set sane defaults for various variables
cannam@86 7992 test -z "$CC" && CC=cc
cannam@86 7993 test -z "$LTCC" && LTCC=$CC
cannam@86 7994 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
cannam@86 7995 test -z "$LD" && LD=ld
cannam@86 7996 test -z "$ac_objext" && ac_objext=o
cannam@86 7997
cannam@86 7998 for cc_temp in $compiler""; do
cannam@86 7999 case $cc_temp in
cannam@86 8000 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
cannam@86 8001 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
cannam@86 8002 \-*) ;;
cannam@86 8003 *) break;;
cannam@86 8004 esac
cannam@86 8005 done
cannam@86 8006 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cannam@86 8007
cannam@86 8008
cannam@86 8009 # Only perform the check for file, if the check method requires it
cannam@86 8010 test -z "$MAGIC_CMD" && MAGIC_CMD=file
cannam@86 8011 case $deplibs_check_method in
cannam@86 8012 file_magic*)
cannam@86 8013 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cannam@86 8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cannam@86 8015 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cannam@86 8016 if ${lt_cv_path_MAGIC_CMD+:} false; then :
cannam@86 8017 $as_echo_n "(cached) " >&6
cannam@86 8018 else
cannam@86 8019 case $MAGIC_CMD in
cannam@86 8020 [\\/*] | ?:[\\/]*)
cannam@86 8021 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
cannam@86 8022 ;;
cannam@86 8023 *)
cannam@86 8024 lt_save_MAGIC_CMD="$MAGIC_CMD"
cannam@86 8025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@86 8026 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
cannam@86 8027 for ac_dir in $ac_dummy; do
cannam@86 8028 IFS="$lt_save_ifs"
cannam@86 8029 test -z "$ac_dir" && ac_dir=.
cannam@86 8030 if test -f $ac_dir/${ac_tool_prefix}file; then
cannam@86 8031 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
cannam@86 8032 if test -n "$file_magic_test_file"; then
cannam@86 8033 case $deplibs_check_method in
cannam@86 8034 "file_magic "*)
cannam@86 8035 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
cannam@86 8036 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@86 8037 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
cannam@86 8038 $EGREP "$file_magic_regex" > /dev/null; then
cannam@86 8039 :
cannam@86 8040 else
cannam@86 8041 cat <<_LT_EOF 1>&2
cannam@86 8042
cannam@86 8043 *** Warning: the command libtool uses to detect shared libraries,
cannam@86 8044 *** $file_magic_cmd, produces output that libtool cannot recognize.
cannam@86 8045 *** The result is that libtool may fail to recognize shared libraries
cannam@86 8046 *** as such. This will affect the creation of libtool libraries that
cannam@86 8047 *** depend on shared libraries, but programs linked with such libtool
cannam@86 8048 *** libraries will work regardless of this problem. Nevertheless, you
cannam@86 8049 *** may want to report the problem to your system manager and/or to
cannam@86 8050 *** bug-libtool@gnu.org
cannam@86 8051
cannam@86 8052 _LT_EOF
cannam@86 8053 fi ;;
cannam@86 8054 esac
cannam@86 8055 fi
cannam@86 8056 break
cannam@86 8057 fi
cannam@86 8058 done
cannam@86 8059 IFS="$lt_save_ifs"
cannam@86 8060 MAGIC_CMD="$lt_save_MAGIC_CMD"
cannam@86 8061 ;;
cannam@86 8062 esac
cannam@86 8063 fi
cannam@86 8064
cannam@86 8065 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@86 8066 if test -n "$MAGIC_CMD"; then
cannam@86 8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cannam@86 8068 $as_echo "$MAGIC_CMD" >&6; }
cannam@86 8069 else
cannam@86 8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 8071 $as_echo "no" >&6; }
cannam@86 8072 fi
cannam@86 8073
cannam@86 8074
cannam@86 8075
cannam@86 8076
cannam@86 8077
cannam@86 8078 if test -z "$lt_cv_path_MAGIC_CMD"; then
cannam@86 8079 if test -n "$ac_tool_prefix"; then
cannam@86 8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cannam@86 8081 $as_echo_n "checking for file... " >&6; }
cannam@86 8082 if ${lt_cv_path_MAGIC_CMD+:} false; then :
cannam@86 8083 $as_echo_n "(cached) " >&6
cannam@86 8084 else
cannam@86 8085 case $MAGIC_CMD in
cannam@86 8086 [\\/*] | ?:[\\/]*)
cannam@86 8087 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
cannam@86 8088 ;;
cannam@86 8089 *)
cannam@86 8090 lt_save_MAGIC_CMD="$MAGIC_CMD"
cannam@86 8091 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@86 8092 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
cannam@86 8093 for ac_dir in $ac_dummy; do
cannam@86 8094 IFS="$lt_save_ifs"
cannam@86 8095 test -z "$ac_dir" && ac_dir=.
cannam@86 8096 if test -f $ac_dir/file; then
cannam@86 8097 lt_cv_path_MAGIC_CMD="$ac_dir/file"
cannam@86 8098 if test -n "$file_magic_test_file"; then
cannam@86 8099 case $deplibs_check_method in
cannam@86 8100 "file_magic "*)
cannam@86 8101 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
cannam@86 8102 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@86 8103 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
cannam@86 8104 $EGREP "$file_magic_regex" > /dev/null; then
cannam@86 8105 :
cannam@86 8106 else
cannam@86 8107 cat <<_LT_EOF 1>&2
cannam@86 8108
cannam@86 8109 *** Warning: the command libtool uses to detect shared libraries,
cannam@86 8110 *** $file_magic_cmd, produces output that libtool cannot recognize.
cannam@86 8111 *** The result is that libtool may fail to recognize shared libraries
cannam@86 8112 *** as such. This will affect the creation of libtool libraries that
cannam@86 8113 *** depend on shared libraries, but programs linked with such libtool
cannam@86 8114 *** libraries will work regardless of this problem. Nevertheless, you
cannam@86 8115 *** may want to report the problem to your system manager and/or to
cannam@86 8116 *** bug-libtool@gnu.org
cannam@86 8117
cannam@86 8118 _LT_EOF
cannam@86 8119 fi ;;
cannam@86 8120 esac
cannam@86 8121 fi
cannam@86 8122 break
cannam@86 8123 fi
cannam@86 8124 done
cannam@86 8125 IFS="$lt_save_ifs"
cannam@86 8126 MAGIC_CMD="$lt_save_MAGIC_CMD"
cannam@86 8127 ;;
cannam@86 8128 esac
cannam@86 8129 fi
cannam@86 8130
cannam@86 8131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@86 8132 if test -n "$MAGIC_CMD"; then
cannam@86 8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cannam@86 8134 $as_echo "$MAGIC_CMD" >&6; }
cannam@86 8135 else
cannam@86 8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 8137 $as_echo "no" >&6; }
cannam@86 8138 fi
cannam@86 8139
cannam@86 8140
cannam@86 8141 else
cannam@86 8142 MAGIC_CMD=:
cannam@86 8143 fi
cannam@86 8144 fi
cannam@86 8145
cannam@86 8146 fi
cannam@86 8147 ;;
cannam@86 8148 esac
cannam@86 8149
cannam@86 8150 # Use C for the default configuration in the libtool script
cannam@86 8151
cannam@86 8152 lt_save_CC="$CC"
cannam@86 8153 ac_ext=c
cannam@86 8154 ac_cpp='$CPP $CPPFLAGS'
cannam@86 8155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@86 8156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@86 8157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@86 8158
cannam@86 8159
cannam@86 8160 # Source file extension for C test sources.
cannam@86 8161 ac_ext=c
cannam@86 8162
cannam@86 8163 # Object file extension for compiled C test sources.
cannam@86 8164 objext=o
cannam@86 8165 objext=$objext
cannam@86 8166
cannam@86 8167 # Code to be used in simple compile tests
cannam@86 8168 lt_simple_compile_test_code="int some_variable = 0;"
cannam@86 8169
cannam@86 8170 # Code to be used in simple link tests
cannam@86 8171 lt_simple_link_test_code='int main(){return(0);}'
cannam@86 8172
cannam@86 8173
cannam@86 8174
cannam@86 8175
cannam@86 8176
cannam@86 8177
cannam@86 8178
cannam@86 8179 # If no C compiler was specified, use CC.
cannam@86 8180 LTCC=${LTCC-"$CC"}
cannam@86 8181
cannam@86 8182 # If no C compiler flags were specified, use CFLAGS.
cannam@86 8183 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cannam@86 8184
cannam@86 8185 # Allow CC to be a program name with arguments.
cannam@86 8186 compiler=$CC
cannam@86 8187
cannam@86 8188 # Save the default compiler, since it gets overwritten when the other
cannam@86 8189 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
cannam@86 8190 compiler_DEFAULT=$CC
cannam@86 8191
cannam@86 8192 # save warnings/boilerplate of simple test code
cannam@86 8193 ac_outfile=conftest.$ac_objext
cannam@86 8194 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
cannam@86 8195 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@86 8196 _lt_compiler_boilerplate=`cat conftest.err`
cannam@86 8197 $RM conftest*
cannam@86 8198
cannam@86 8199 ac_outfile=conftest.$ac_objext
cannam@86 8200 echo "$lt_simple_link_test_code" >conftest.$ac_ext
cannam@86 8201 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@86 8202 _lt_linker_boilerplate=`cat conftest.err`
cannam@86 8203 $RM -r conftest*
cannam@86 8204
cannam@86 8205
cannam@86 8206 if test -n "$compiler"; then
cannam@86 8207
cannam@86 8208 lt_prog_compiler_no_builtin_flag=
cannam@86 8209
cannam@86 8210 if test "$GCC" = yes; then
cannam@86 8211 case $cc_basename in
cannam@86 8212 nvcc*)
cannam@86 8213 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
cannam@86 8214 *)
cannam@86 8215 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
cannam@86 8216 esac
cannam@86 8217
cannam@86 8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cannam@86 8219 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cannam@86 8220 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cannam@86 8221 $as_echo_n "(cached) " >&6
cannam@86 8222 else
cannam@86 8223 lt_cv_prog_compiler_rtti_exceptions=no
cannam@86 8224 ac_outfile=conftest.$ac_objext
cannam@86 8225 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@86 8226 lt_compiler_flag="-fno-rtti -fno-exceptions"
cannam@86 8227 # Insert the option either (1) after the last *FLAGS variable, or
cannam@86 8228 # (2) before a word containing "conftest.", or (3) at the end.
cannam@86 8229 # Note that $ac_compile itself does not contain backslashes and begins
cannam@86 8230 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@86 8231 # The option is referenced via a variable to avoid confusing sed.
cannam@86 8232 lt_compile=`echo "$ac_compile" | $SED \
cannam@86 8233 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@86 8234 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@86 8235 -e 's:$: $lt_compiler_flag:'`
cannam@86 8236 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@86 8237 (eval "$lt_compile" 2>conftest.err)
cannam@86 8238 ac_status=$?
cannam@86 8239 cat conftest.err >&5
cannam@86 8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@86 8241 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@86 8242 # The compiler can only warn and ignore the option if not recognized
cannam@86 8243 # So say no if there are warnings other than the usual output.
cannam@86 8244 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cannam@86 8245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@86 8246 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
cannam@86 8247 lt_cv_prog_compiler_rtti_exceptions=yes
cannam@86 8248 fi
cannam@86 8249 fi
cannam@86 8250 $RM conftest*
cannam@86 8251
cannam@86 8252 fi
cannam@86 8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cannam@86 8254 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
cannam@86 8255
cannam@86 8256 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
cannam@86 8257 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
cannam@86 8258 else
cannam@86 8259 :
cannam@86 8260 fi
cannam@86 8261
cannam@86 8262 fi
cannam@86 8263
cannam@86 8264
cannam@86 8265
cannam@86 8266
cannam@86 8267
cannam@86 8268
cannam@86 8269 lt_prog_compiler_wl=
cannam@86 8270 lt_prog_compiler_pic=
cannam@86 8271 lt_prog_compiler_static=
cannam@86 8272
cannam@86 8273
cannam@86 8274 if test "$GCC" = yes; then
cannam@86 8275 lt_prog_compiler_wl='-Wl,'
cannam@86 8276 lt_prog_compiler_static='-static'
cannam@86 8277
cannam@86 8278 case $host_os in
cannam@86 8279 aix*)
cannam@86 8280 # All AIX code is PIC.
cannam@86 8281 if test "$host_cpu" = ia64; then
cannam@86 8282 # AIX 5 now supports IA64 processor
cannam@86 8283 lt_prog_compiler_static='-Bstatic'
cannam@86 8284 fi
cannam@86 8285 ;;
cannam@86 8286
cannam@86 8287 amigaos*)
cannam@86 8288 case $host_cpu in
cannam@86 8289 powerpc)
cannam@86 8290 # see comment about AmigaOS4 .so support
cannam@86 8291 lt_prog_compiler_pic='-fPIC'
cannam@86 8292 ;;
cannam@86 8293 m68k)
cannam@86 8294 # FIXME: we need at least 68020 code to build shared libraries, but
cannam@86 8295 # adding the `-m68020' flag to GCC prevents building anything better,
cannam@86 8296 # like `-m68040'.
cannam@86 8297 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
cannam@86 8298 ;;
cannam@86 8299 esac
cannam@86 8300 ;;
cannam@86 8301
cannam@86 8302 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
cannam@86 8303 # PIC is the default for these OSes.
cannam@86 8304 ;;
cannam@86 8305
cannam@86 8306 mingw* | cygwin* | pw32* | os2* | cegcc*)
cannam@86 8307 # This hack is so that the source file can tell whether it is being
cannam@86 8308 # built for inclusion in a dll (and should export symbols for example).
cannam@86 8309 # Although the cygwin gcc ignores -fPIC, still need this for old-style
cannam@86 8310 # (--disable-auto-import) libraries
cannam@86 8311 lt_prog_compiler_pic='-DDLL_EXPORT'
cannam@86 8312 ;;
cannam@86 8313
cannam@86 8314 darwin* | rhapsody*)
cannam@86 8315 # PIC is the default on this platform
cannam@86 8316 # Common symbols not allowed in MH_DYLIB files
cannam@86 8317 lt_prog_compiler_pic='-fno-common'
cannam@86 8318 ;;
cannam@86 8319
cannam@86 8320 haiku*)
cannam@86 8321 # PIC is the default for Haiku.
cannam@86 8322 # The "-static" flag exists, but is broken.
cannam@86 8323 lt_prog_compiler_static=
cannam@86 8324 ;;
cannam@86 8325
cannam@86 8326 hpux*)
cannam@86 8327 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
cannam@86 8328 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
cannam@86 8329 # sets the default TLS model and affects inlining.
cannam@86 8330 case $host_cpu in
cannam@86 8331 hppa*64*)
cannam@86 8332 # +Z the default
cannam@86 8333 ;;
cannam@86 8334 *)
cannam@86 8335 lt_prog_compiler_pic='-fPIC'
cannam@86 8336 ;;
cannam@86 8337 esac
cannam@86 8338 ;;
cannam@86 8339
cannam@86 8340 interix[3-9]*)
cannam@86 8341 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
cannam@86 8342 # Instead, we relocate shared libraries at runtime.
cannam@86 8343 ;;
cannam@86 8344
cannam@86 8345 msdosdjgpp*)
cannam@86 8346 # Just because we use GCC doesn't mean we suddenly get shared libraries
cannam@86 8347 # on systems that don't support them.
cannam@86 8348 lt_prog_compiler_can_build_shared=no
cannam@86 8349 enable_shared=no
cannam@86 8350 ;;
cannam@86 8351
cannam@86 8352 *nto* | *qnx*)
cannam@86 8353 # QNX uses GNU C++, but need to define -shared option too, otherwise
cannam@86 8354 # it will coredump.
cannam@86 8355 lt_prog_compiler_pic='-fPIC -shared'
cannam@86 8356 ;;
cannam@86 8357
cannam@86 8358 sysv4*MP*)
cannam@86 8359 if test -d /usr/nec; then
cannam@86 8360 lt_prog_compiler_pic=-Kconform_pic
cannam@86 8361 fi
cannam@86 8362 ;;
cannam@86 8363
cannam@86 8364 *)
cannam@86 8365 lt_prog_compiler_pic='-fPIC'
cannam@86 8366 ;;
cannam@86 8367 esac
cannam@86 8368
cannam@86 8369 case $cc_basename in
cannam@86 8370 nvcc*) # Cuda Compiler Driver 2.2
cannam@86 8371 lt_prog_compiler_wl='-Xlinker '
cannam@86 8372 lt_prog_compiler_pic='-Xcompiler -fPIC'
cannam@86 8373 ;;
cannam@86 8374 esac
cannam@86 8375 else
cannam@86 8376 # PORTME Check for flag to pass linker flags through the system compiler.
cannam@86 8377 case $host_os in
cannam@86 8378 aix*)
cannam@86 8379 lt_prog_compiler_wl='-Wl,'
cannam@86 8380 if test "$host_cpu" = ia64; then
cannam@86 8381 # AIX 5 now supports IA64 processor
cannam@86 8382 lt_prog_compiler_static='-Bstatic'
cannam@86 8383 else
cannam@86 8384 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
cannam@86 8385 fi
cannam@86 8386 ;;
cannam@86 8387
cannam@86 8388 mingw* | cygwin* | pw32* | os2* | cegcc*)
cannam@86 8389 # This hack is so that the source file can tell whether it is being
cannam@86 8390 # built for inclusion in a dll (and should export symbols for example).
cannam@86 8391 lt_prog_compiler_pic='-DDLL_EXPORT'
cannam@86 8392 ;;
cannam@86 8393
cannam@86 8394 hpux9* | hpux10* | hpux11*)
cannam@86 8395 lt_prog_compiler_wl='-Wl,'
cannam@86 8396 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cannam@86 8397 # not for PA HP-UX.
cannam@86 8398 case $host_cpu in
cannam@86 8399 hppa*64*|ia64*)
cannam@86 8400 # +Z the default
cannam@86 8401 ;;
cannam@86 8402 *)
cannam@86 8403 lt_prog_compiler_pic='+Z'
cannam@86 8404 ;;
cannam@86 8405 esac
cannam@86 8406 # Is there a better lt_prog_compiler_static that works with the bundled CC?
cannam@86 8407 lt_prog_compiler_static='${wl}-a ${wl}archive'
cannam@86 8408 ;;
cannam@86 8409
cannam@86 8410 irix5* | irix6* | nonstopux*)
cannam@86 8411 lt_prog_compiler_wl='-Wl,'
cannam@86 8412 # PIC (with -KPIC) is the default.
cannam@86 8413 lt_prog_compiler_static='-non_shared'
cannam@86 8414 ;;
cannam@86 8415
cannam@86 8416 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cannam@86 8417 case $cc_basename in
cannam@86 8418 # old Intel for x86_64 which still supported -KPIC.
cannam@86 8419 ecc*)
cannam@86 8420 lt_prog_compiler_wl='-Wl,'
cannam@86 8421 lt_prog_compiler_pic='-KPIC'
cannam@86 8422 lt_prog_compiler_static='-static'
cannam@86 8423 ;;
cannam@86 8424 # icc used to be incompatible with GCC.
cannam@86 8425 # ICC 10 doesn't accept -KPIC any more.
cannam@86 8426 icc* | ifort*)
cannam@86 8427 lt_prog_compiler_wl='-Wl,'
cannam@86 8428 lt_prog_compiler_pic='-fPIC'
cannam@86 8429 lt_prog_compiler_static='-static'
cannam@86 8430 ;;
cannam@86 8431 # Lahey Fortran 8.1.
cannam@86 8432 lf95*)
cannam@86 8433 lt_prog_compiler_wl='-Wl,'
cannam@86 8434 lt_prog_compiler_pic='--shared'
cannam@86 8435 lt_prog_compiler_static='--static'
cannam@86 8436 ;;
cannam@86 8437 nagfor*)
cannam@86 8438 # NAG Fortran compiler
cannam@86 8439 lt_prog_compiler_wl='-Wl,-Wl,,'
cannam@86 8440 lt_prog_compiler_pic='-PIC'
cannam@86 8441 lt_prog_compiler_static='-Bstatic'
cannam@86 8442 ;;
cannam@86 8443 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cannam@86 8444 # Portland Group compilers (*not* the Pentium gcc compiler,
cannam@86 8445 # which looks to be a dead project)
cannam@86 8446 lt_prog_compiler_wl='-Wl,'
cannam@86 8447 lt_prog_compiler_pic='-fpic'
cannam@86 8448 lt_prog_compiler_static='-Bstatic'
cannam@86 8449 ;;
cannam@86 8450 ccc*)
cannam@86 8451 lt_prog_compiler_wl='-Wl,'
cannam@86 8452 # All Alpha code is PIC.
cannam@86 8453 lt_prog_compiler_static='-non_shared'
cannam@86 8454 ;;
cannam@86 8455 xl* | bgxl* | bgf* | mpixl*)
cannam@86 8456 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cannam@86 8457 lt_prog_compiler_wl='-Wl,'
cannam@86 8458 lt_prog_compiler_pic='-qpic'
cannam@86 8459 lt_prog_compiler_static='-qstaticlink'
cannam@86 8460 ;;
cannam@86 8461 *)
cannam@86 8462 case `$CC -V 2>&1 | sed 5q` in
cannam@86 8463 *Sun\ F* | *Sun*Fortran*)
cannam@86 8464 # Sun Fortran 8.3 passes all unrecognized flags to the linker
cannam@86 8465 lt_prog_compiler_pic='-KPIC'
cannam@86 8466 lt_prog_compiler_static='-Bstatic'
cannam@86 8467 lt_prog_compiler_wl=''
cannam@86 8468 ;;
cannam@86 8469 *Sun\ C*)
cannam@86 8470 # Sun C 5.9
cannam@86 8471 lt_prog_compiler_pic='-KPIC'
cannam@86 8472 lt_prog_compiler_static='-Bstatic'
cannam@86 8473 lt_prog_compiler_wl='-Wl,'
cannam@86 8474 ;;
cannam@86 8475 esac
cannam@86 8476 ;;
cannam@86 8477 esac
cannam@86 8478 ;;
cannam@86 8479
cannam@86 8480 newsos6)
cannam@86 8481 lt_prog_compiler_pic='-KPIC'
cannam@86 8482 lt_prog_compiler_static='-Bstatic'
cannam@86 8483 ;;
cannam@86 8484
cannam@86 8485 *nto* | *qnx*)
cannam@86 8486 # QNX uses GNU C++, but need to define -shared option too, otherwise
cannam@86 8487 # it will coredump.
cannam@86 8488 lt_prog_compiler_pic='-fPIC -shared'
cannam@86 8489 ;;
cannam@86 8490
cannam@86 8491 osf3* | osf4* | osf5*)
cannam@86 8492 lt_prog_compiler_wl='-Wl,'
cannam@86 8493 # All OSF/1 code is PIC.
cannam@86 8494 lt_prog_compiler_static='-non_shared'
cannam@86 8495 ;;
cannam@86 8496
cannam@86 8497 rdos*)
cannam@86 8498 lt_prog_compiler_static='-non_shared'
cannam@86 8499 ;;
cannam@86 8500
cannam@86 8501 solaris*)
cannam@86 8502 lt_prog_compiler_pic='-KPIC'
cannam@86 8503 lt_prog_compiler_static='-Bstatic'
cannam@86 8504 case $cc_basename in
cannam@86 8505 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cannam@86 8506 lt_prog_compiler_wl='-Qoption ld ';;
cannam@86 8507 *)
cannam@86 8508 lt_prog_compiler_wl='-Wl,';;
cannam@86 8509 esac
cannam@86 8510 ;;
cannam@86 8511
cannam@86 8512 sunos4*)
cannam@86 8513 lt_prog_compiler_wl='-Qoption ld '
cannam@86 8514 lt_prog_compiler_pic='-PIC'
cannam@86 8515 lt_prog_compiler_static='-Bstatic'
cannam@86 8516 ;;
cannam@86 8517
cannam@86 8518 sysv4 | sysv4.2uw2* | sysv4.3*)
cannam@86 8519 lt_prog_compiler_wl='-Wl,'
cannam@86 8520 lt_prog_compiler_pic='-KPIC'
cannam@86 8521 lt_prog_compiler_static='-Bstatic'
cannam@86 8522 ;;
cannam@86 8523
cannam@86 8524 sysv4*MP*)
cannam@86 8525 if test -d /usr/nec ;then
cannam@86 8526 lt_prog_compiler_pic='-Kconform_pic'
cannam@86 8527 lt_prog_compiler_static='-Bstatic'
cannam@86 8528 fi
cannam@86 8529 ;;
cannam@86 8530
cannam@86 8531 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
cannam@86 8532 lt_prog_compiler_wl='-Wl,'
cannam@86 8533 lt_prog_compiler_pic='-KPIC'
cannam@86 8534 lt_prog_compiler_static='-Bstatic'
cannam@86 8535 ;;
cannam@86 8536
cannam@86 8537 unicos*)
cannam@86 8538 lt_prog_compiler_wl='-Wl,'
cannam@86 8539 lt_prog_compiler_can_build_shared=no
cannam@86 8540 ;;
cannam@86 8541
cannam@86 8542 uts4*)
cannam@86 8543 lt_prog_compiler_pic='-pic'
cannam@86 8544 lt_prog_compiler_static='-Bstatic'
cannam@86 8545 ;;
cannam@86 8546
cannam@86 8547 *)
cannam@86 8548 lt_prog_compiler_can_build_shared=no
cannam@86 8549 ;;
cannam@86 8550 esac
cannam@86 8551 fi
cannam@86 8552
cannam@86 8553 case $host_os in
cannam@86 8554 # For platforms which do not support PIC, -DPIC is meaningless:
cannam@86 8555 *djgpp*)
cannam@86 8556 lt_prog_compiler_pic=
cannam@86 8557 ;;
cannam@86 8558 *)
cannam@86 8559 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
cannam@86 8560 ;;
cannam@86 8561 esac
cannam@86 8562
cannam@86 8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cannam@86 8564 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
cannam@86 8565 if ${lt_cv_prog_compiler_pic+:} false; then :
cannam@86 8566 $as_echo_n "(cached) " >&6
cannam@86 8567 else
cannam@86 8568 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
cannam@86 8569 fi
cannam@86 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
cannam@86 8571 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
cannam@86 8572 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cannam@86 8573
cannam@86 8574 #
cannam@86 8575 # Check to make sure the PIC flag actually works.
cannam@86 8576 #
cannam@86 8577 if test -n "$lt_prog_compiler_pic"; then
cannam@86 8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cannam@86 8579 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cannam@86 8580 if ${lt_cv_prog_compiler_pic_works+:} false; then :
cannam@86 8581 $as_echo_n "(cached) " >&6
cannam@86 8582 else
cannam@86 8583 lt_cv_prog_compiler_pic_works=no
cannam@86 8584 ac_outfile=conftest.$ac_objext
cannam@86 8585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@86 8586 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
cannam@86 8587 # Insert the option either (1) after the last *FLAGS variable, or
cannam@86 8588 # (2) before a word containing "conftest.", or (3) at the end.
cannam@86 8589 # Note that $ac_compile itself does not contain backslashes and begins
cannam@86 8590 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@86 8591 # The option is referenced via a variable to avoid confusing sed.
cannam@86 8592 lt_compile=`echo "$ac_compile" | $SED \
cannam@86 8593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@86 8594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@86 8595 -e 's:$: $lt_compiler_flag:'`
cannam@86 8596 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@86 8597 (eval "$lt_compile" 2>conftest.err)
cannam@86 8598 ac_status=$?
cannam@86 8599 cat conftest.err >&5
cannam@86 8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@86 8601 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@86 8602 # The compiler can only warn and ignore the option if not recognized
cannam@86 8603 # So say no if there are warnings other than the usual output.
cannam@86 8604 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cannam@86 8605 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@86 8606 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
cannam@86 8607 lt_cv_prog_compiler_pic_works=yes
cannam@86 8608 fi
cannam@86 8609 fi
cannam@86 8610 $RM conftest*
cannam@86 8611
cannam@86 8612 fi
cannam@86 8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cannam@86 8614 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
cannam@86 8615
cannam@86 8616 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
cannam@86 8617 case $lt_prog_compiler_pic in
cannam@86 8618 "" | " "*) ;;
cannam@86 8619 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
cannam@86 8620 esac
cannam@86 8621 else
cannam@86 8622 lt_prog_compiler_pic=
cannam@86 8623 lt_prog_compiler_can_build_shared=no
cannam@86 8624 fi
cannam@86 8625
cannam@86 8626 fi
cannam@86 8627
cannam@86 8628
cannam@86 8629
cannam@86 8630
cannam@86 8631
cannam@86 8632
cannam@86 8633
cannam@86 8634
cannam@86 8635
cannam@86 8636
cannam@86 8637
cannam@86 8638 #
cannam@86 8639 # Check to make sure the static flag actually works.
cannam@86 8640 #
cannam@86 8641 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cannam@86 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cannam@86 8643 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cannam@86 8644 if ${lt_cv_prog_compiler_static_works+:} false; then :
cannam@86 8645 $as_echo_n "(cached) " >&6
cannam@86 8646 else
cannam@86 8647 lt_cv_prog_compiler_static_works=no
cannam@86 8648 save_LDFLAGS="$LDFLAGS"
cannam@86 8649 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
cannam@86 8650 echo "$lt_simple_link_test_code" > conftest.$ac_ext
cannam@86 8651 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
cannam@86 8652 # The linker can only warn and ignore the option if not recognized
cannam@86 8653 # So say no if there are warnings
cannam@86 8654 if test -s conftest.err; then
cannam@86 8655 # Append any errors to the config.log.
cannam@86 8656 cat conftest.err 1>&5
cannam@86 8657 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cannam@86 8658 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@86 8659 if diff conftest.exp conftest.er2 >/dev/null; then
cannam@86 8660 lt_cv_prog_compiler_static_works=yes
cannam@86 8661 fi
cannam@86 8662 else
cannam@86 8663 lt_cv_prog_compiler_static_works=yes
cannam@86 8664 fi
cannam@86 8665 fi
cannam@86 8666 $RM -r conftest*
cannam@86 8667 LDFLAGS="$save_LDFLAGS"
cannam@86 8668
cannam@86 8669 fi
cannam@86 8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cannam@86 8671 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
cannam@86 8672
cannam@86 8673 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
cannam@86 8674 :
cannam@86 8675 else
cannam@86 8676 lt_prog_compiler_static=
cannam@86 8677 fi
cannam@86 8678
cannam@86 8679
cannam@86 8680
cannam@86 8681
cannam@86 8682
cannam@86 8683
cannam@86 8684
cannam@86 8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@86 8686 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cannam@86 8687 if ${lt_cv_prog_compiler_c_o+:} false; then :
cannam@86 8688 $as_echo_n "(cached) " >&6
cannam@86 8689 else
cannam@86 8690 lt_cv_prog_compiler_c_o=no
cannam@86 8691 $RM -r conftest 2>/dev/null
cannam@86 8692 mkdir conftest
cannam@86 8693 cd conftest
cannam@86 8694 mkdir out
cannam@86 8695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@86 8696
cannam@86 8697 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@86 8698 # Insert the option either (1) after the last *FLAGS variable, or
cannam@86 8699 # (2) before a word containing "conftest.", or (3) at the end.
cannam@86 8700 # Note that $ac_compile itself does not contain backslashes and begins
cannam@86 8701 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@86 8702 lt_compile=`echo "$ac_compile" | $SED \
cannam@86 8703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@86 8704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@86 8705 -e 's:$: $lt_compiler_flag:'`
cannam@86 8706 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@86 8707 (eval "$lt_compile" 2>out/conftest.err)
cannam@86 8708 ac_status=$?
cannam@86 8709 cat out/conftest.err >&5
cannam@86 8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@86 8711 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@86 8712 then
cannam@86 8713 # The compiler can only warn and ignore the option if not recognized
cannam@86 8714 # So say no if there are warnings
cannam@86 8715 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cannam@86 8716 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cannam@86 8717 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cannam@86 8718 lt_cv_prog_compiler_c_o=yes
cannam@86 8719 fi
cannam@86 8720 fi
cannam@86 8721 chmod u+w . 2>&5
cannam@86 8722 $RM conftest*
cannam@86 8723 # SGI C++ compiler will create directory out/ii_files/ for
cannam@86 8724 # template instantiation
cannam@86 8725 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
cannam@86 8726 $RM out/* && rmdir out
cannam@86 8727 cd ..
cannam@86 8728 $RM -r conftest
cannam@86 8729 $RM conftest*
cannam@86 8730
cannam@86 8731 fi
cannam@86 8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cannam@86 8733 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
cannam@86 8734
cannam@86 8735
cannam@86 8736
cannam@86 8737
cannam@86 8738
cannam@86 8739
cannam@86 8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@86 8741 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cannam@86 8742 if ${lt_cv_prog_compiler_c_o+:} false; then :
cannam@86 8743 $as_echo_n "(cached) " >&6
cannam@86 8744 else
cannam@86 8745 lt_cv_prog_compiler_c_o=no
cannam@86 8746 $RM -r conftest 2>/dev/null
cannam@86 8747 mkdir conftest
cannam@86 8748 cd conftest
cannam@86 8749 mkdir out
cannam@86 8750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@86 8751
cannam@86 8752 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@86 8753 # Insert the option either (1) after the last *FLAGS variable, or
cannam@86 8754 # (2) before a word containing "conftest.", or (3) at the end.
cannam@86 8755 # Note that $ac_compile itself does not contain backslashes and begins
cannam@86 8756 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@86 8757 lt_compile=`echo "$ac_compile" | $SED \
cannam@86 8758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@86 8759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@86 8760 -e 's:$: $lt_compiler_flag:'`
cannam@86 8761 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@86 8762 (eval "$lt_compile" 2>out/conftest.err)
cannam@86 8763 ac_status=$?
cannam@86 8764 cat out/conftest.err >&5
cannam@86 8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@86 8766 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@86 8767 then
cannam@86 8768 # The compiler can only warn and ignore the option if not recognized
cannam@86 8769 # So say no if there are warnings
cannam@86 8770 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cannam@86 8771 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cannam@86 8772 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cannam@86 8773 lt_cv_prog_compiler_c_o=yes
cannam@86 8774 fi
cannam@86 8775 fi
cannam@86 8776 chmod u+w . 2>&5
cannam@86 8777 $RM conftest*
cannam@86 8778 # SGI C++ compiler will create directory out/ii_files/ for
cannam@86 8779 # template instantiation
cannam@86 8780 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
cannam@86 8781 $RM out/* && rmdir out
cannam@86 8782 cd ..
cannam@86 8783 $RM -r conftest
cannam@86 8784 $RM conftest*
cannam@86 8785
cannam@86 8786 fi
cannam@86 8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cannam@86 8788 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
cannam@86 8789
cannam@86 8790
cannam@86 8791
cannam@86 8792
cannam@86 8793 hard_links="nottested"
cannam@86 8794 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
cannam@86 8795 # do not overwrite the value of need_locks provided by the user
cannam@86 8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cannam@86 8797 $as_echo_n "checking if we can lock with hard links... " >&6; }
cannam@86 8798 hard_links=yes
cannam@86 8799 $RM conftest*
cannam@86 8800 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@86 8801 touch conftest.a
cannam@86 8802 ln conftest.a conftest.b 2>&5 || hard_links=no
cannam@86 8803 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@86 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cannam@86 8805 $as_echo "$hard_links" >&6; }
cannam@86 8806 if test "$hard_links" = no; then
cannam@86 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cannam@86 8808 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
cannam@86 8809 need_locks=warn
cannam@86 8810 fi
cannam@86 8811 else
cannam@86 8812 need_locks=no
cannam@86 8813 fi
cannam@86 8814
cannam@86 8815
cannam@86 8816
cannam@86 8817
cannam@86 8818
cannam@86 8819
cannam@86 8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@86 8821 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
cannam@86 8822
cannam@86 8823 runpath_var=
cannam@86 8824 allow_undefined_flag=
cannam@86 8825 always_export_symbols=no
cannam@86 8826 archive_cmds=
cannam@86 8827 archive_expsym_cmds=
cannam@86 8828 compiler_needs_object=no
cannam@86 8829 enable_shared_with_static_runtimes=no
cannam@86 8830 export_dynamic_flag_spec=
cannam@86 8831 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@86 8832 hardcode_automatic=no
cannam@86 8833 hardcode_direct=no
cannam@86 8834 hardcode_direct_absolute=no
cannam@86 8835 hardcode_libdir_flag_spec=
cannam@86 8836 hardcode_libdir_flag_spec_ld=
cannam@86 8837 hardcode_libdir_separator=
cannam@86 8838 hardcode_minus_L=no
cannam@86 8839 hardcode_shlibpath_var=unsupported
cannam@86 8840 inherit_rpath=no
cannam@86 8841 link_all_deplibs=unknown
cannam@86 8842 module_cmds=
cannam@86 8843 module_expsym_cmds=
cannam@86 8844 old_archive_from_new_cmds=
cannam@86 8845 old_archive_from_expsyms_cmds=
cannam@86 8846 thread_safe_flag_spec=
cannam@86 8847 whole_archive_flag_spec=
cannam@86 8848 # include_expsyms should be a list of space-separated symbols to be *always*
cannam@86 8849 # included in the symbol list
cannam@86 8850 include_expsyms=
cannam@86 8851 # exclude_expsyms can be an extended regexp of symbols to exclude
cannam@86 8852 # it will be wrapped by ` (' and `)$', so one must not match beginning or
cannam@86 8853 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
cannam@86 8854 # as well as any symbol that contains `d'.
cannam@86 8855 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cannam@86 8856 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
cannam@86 8857 # platforms (ab)use it in PIC code, but their linkers get confused if
cannam@86 8858 # the symbol is explicitly referenced. Since portable code cannot
cannam@86 8859 # rely on this symbol name, it's probably fine to never include it in
cannam@86 8860 # preloaded symbol tables.
cannam@86 8861 # Exclude shared library initialization/finalization symbols.
cannam@86 8862 extract_expsyms_cmds=
cannam@86 8863
cannam@86 8864 case $host_os in
cannam@86 8865 cygwin* | mingw* | pw32* | cegcc*)
cannam@86 8866 # FIXME: the MSVC++ port hasn't been tested in a loooong time
cannam@86 8867 # When not using gcc, we currently assume that we are using
cannam@86 8868 # Microsoft Visual C++.
cannam@86 8869 if test "$GCC" != yes; then
cannam@86 8870 with_gnu_ld=no
cannam@86 8871 fi
cannam@86 8872 ;;
cannam@86 8873 interix*)
cannam@86 8874 # we just hope/assume this is gcc and not c89 (= MSVC++)
cannam@86 8875 with_gnu_ld=yes
cannam@86 8876 ;;
cannam@86 8877 openbsd*)
cannam@86 8878 with_gnu_ld=no
cannam@86 8879 ;;
cannam@86 8880 linux* | k*bsd*-gnu | gnu*)
cannam@86 8881 link_all_deplibs=no
cannam@86 8882 ;;
cannam@86 8883 esac
cannam@86 8884
cannam@86 8885 ld_shlibs=yes
cannam@86 8886
cannam@86 8887 # On some targets, GNU ld is compatible enough with the native linker
cannam@86 8888 # that we're better off using the native interface for both.
cannam@86 8889 lt_use_gnu_ld_interface=no
cannam@86 8890 if test "$with_gnu_ld" = yes; then
cannam@86 8891 case $host_os in
cannam@86 8892 aix*)
cannam@86 8893 # The AIX port of GNU ld has always aspired to compatibility
cannam@86 8894 # with the native linker. However, as the warning in the GNU ld
cannam@86 8895 # block says, versions before 2.19.5* couldn't really create working
cannam@86 8896 # shared libraries, regardless of the interface used.
cannam@86 8897 case `$LD -v 2>&1` in
cannam@86 8898 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
cannam@86 8899 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
cannam@86 8900 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
cannam@86 8901 *)
cannam@86 8902 lt_use_gnu_ld_interface=yes
cannam@86 8903 ;;
cannam@86 8904 esac
cannam@86 8905 ;;
cannam@86 8906 *)
cannam@86 8907 lt_use_gnu_ld_interface=yes
cannam@86 8908 ;;
cannam@86 8909 esac
cannam@86 8910 fi
cannam@86 8911
cannam@86 8912 if test "$lt_use_gnu_ld_interface" = yes; then
cannam@86 8913 # If archive_cmds runs LD, not CC, wlarc should be empty
cannam@86 8914 wlarc='${wl}'
cannam@86 8915
cannam@86 8916 # Set some defaults for GNU ld with shared library support. These
cannam@86 8917 # are reset later if shared libraries are not supported. Putting them
cannam@86 8918 # here allows them to be overridden if necessary.
cannam@86 8919 runpath_var=LD_RUN_PATH
cannam@86 8920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@86 8921 export_dynamic_flag_spec='${wl}--export-dynamic'
cannam@86 8922 # ancient GNU ld didn't support --whole-archive et. al.
cannam@86 8923 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
cannam@86 8924 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
cannam@86 8925 else
cannam@86 8926 whole_archive_flag_spec=
cannam@86 8927 fi
cannam@86 8928 supports_anon_versioning=no
cannam@86 8929 case `$LD -v 2>&1` in
cannam@86 8930 *GNU\ gold*) supports_anon_versioning=yes ;;
cannam@86 8931 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
cannam@86 8932 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
cannam@86 8933 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
cannam@86 8934 *\ 2.11.*) ;; # other 2.11 versions
cannam@86 8935 *) supports_anon_versioning=yes ;;
cannam@86 8936 esac
cannam@86 8937
cannam@86 8938 # See if GNU ld supports shared libraries.
cannam@86 8939 case $host_os in
cannam@86 8940 aix[3-9]*)
cannam@86 8941 # On AIX/PPC, the GNU linker is very broken
cannam@86 8942 if test "$host_cpu" != ia64; then
cannam@86 8943 ld_shlibs=no
cannam@86 8944 cat <<_LT_EOF 1>&2
cannam@86 8945
cannam@86 8946 *** Warning: the GNU linker, at least up to release 2.19, is reported
cannam@86 8947 *** to be unable to reliably create shared libraries on AIX.
cannam@86 8948 *** Therefore, libtool is disabling shared libraries support. If you
cannam@86 8949 *** really care for shared libraries, you may want to install binutils
cannam@86 8950 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
cannam@86 8951 *** You will then need to restart the configuration process.
cannam@86 8952
cannam@86 8953 _LT_EOF
cannam@86 8954 fi
cannam@86 8955 ;;
cannam@86 8956
cannam@86 8957 amigaos*)
cannam@86 8958 case $host_cpu in
cannam@86 8959 powerpc)
cannam@86 8960 # see comment about AmigaOS4 .so support
cannam@86 8961 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@86 8962 archive_expsym_cmds=''
cannam@86 8963 ;;
cannam@86 8964 m68k)
cannam@86 8965 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@86 8966 hardcode_libdir_flag_spec='-L$libdir'
cannam@86 8967 hardcode_minus_L=yes
cannam@86 8968 ;;
cannam@86 8969 esac
cannam@86 8970 ;;
cannam@86 8971
cannam@86 8972 beos*)
cannam@86 8973 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@86 8974 allow_undefined_flag=unsupported
cannam@86 8975 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
cannam@86 8976 # support --undefined. This deserves some investigation. FIXME
cannam@86 8977 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@86 8978 else
cannam@86 8979 ld_shlibs=no
cannam@86 8980 fi
cannam@86 8981 ;;
cannam@86 8982
cannam@86 8983 cygwin* | mingw* | pw32* | cegcc*)
cannam@86 8984 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
cannam@86 8985 # as there is no search path for DLLs.
cannam@86 8986 hardcode_libdir_flag_spec='-L$libdir'
cannam@86 8987 export_dynamic_flag_spec='${wl}--export-all-symbols'
cannam@86 8988 allow_undefined_flag=unsupported
cannam@86 8989 always_export_symbols=no
cannam@86 8990 enable_shared_with_static_runtimes=yes
cannam@86 8991 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@86 8992 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
cannam@86 8993
cannam@86 8994 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
cannam@86 8995 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
cannam@86 8996 # If the export-symbols file already is a .def file (1st line
cannam@86 8997 # is EXPORTS), use it as is; otherwise, prepend...
cannam@86 8998 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@86 8999 cp $export_symbols $output_objdir/$soname.def;
cannam@86 9000 else
cannam@86 9001 echo EXPORTS > $output_objdir/$soname.def;
cannam@86 9002 cat $export_symbols >> $output_objdir/$soname.def;
cannam@86 9003 fi~
cannam@86 9004 $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@86 9005 else
cannam@86 9006 ld_shlibs=no
cannam@86 9007 fi
cannam@86 9008 ;;
cannam@86 9009
cannam@86 9010 haiku*)
cannam@86 9011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@86 9012 link_all_deplibs=yes
cannam@86 9013 ;;
cannam@86 9014
cannam@86 9015 interix[3-9]*)
cannam@86 9016 hardcode_direct=no
cannam@86 9017 hardcode_shlibpath_var=no
cannam@86 9018 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
cannam@86 9019 export_dynamic_flag_spec='${wl}-E'
cannam@86 9020 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
cannam@86 9021 # Instead, shared libraries are loaded at an image base (0x10000000 by
cannam@86 9022 # default) and relocated if they conflict, which is a slow very memory
cannam@86 9023 # consuming and fragmenting process. To avoid this, we pick a random,
cannam@86 9024 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
cannam@86 9025 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
cannam@86 9026 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@86 9027 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@86 9028 ;;
cannam@86 9029
cannam@86 9030 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cannam@86 9031 tmp_diet=no
cannam@86 9032 if test "$host_os" = linux-dietlibc; then
cannam@86 9033 case $cc_basename in
cannam@86 9034 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
cannam@86 9035 esac
cannam@86 9036 fi
cannam@86 9037 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
cannam@86 9038 && test "$tmp_diet" = no
cannam@86 9039 then
cannam@86 9040 tmp_addflag=' $pic_flag'
cannam@86 9041 tmp_sharedflag='-shared'
cannam@86 9042 case $cc_basename,$host_cpu in
cannam@86 9043 pgcc*) # Portland Group C compiler
cannam@86 9044 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@86 9045 tmp_addflag=' $pic_flag'
cannam@86 9046 ;;
cannam@86 9047 pgf77* | pgf90* | pgf95* | pgfortran*)
cannam@86 9048 # Portland Group f77 and f90 compilers
cannam@86 9049 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@86 9050 tmp_addflag=' $pic_flag -Mnomain' ;;
cannam@86 9051 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
cannam@86 9052 tmp_addflag=' -i_dynamic' ;;
cannam@86 9053 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
cannam@86 9054 tmp_addflag=' -i_dynamic -nofor_main' ;;
cannam@86 9055 ifc* | ifort*) # Intel Fortran compiler
cannam@86 9056 tmp_addflag=' -nofor_main' ;;
cannam@86 9057 lf95*) # Lahey Fortran 8.1
cannam@86 9058 whole_archive_flag_spec=
cannam@86 9059 tmp_sharedflag='--shared' ;;
cannam@86 9060 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cannam@86 9061 tmp_sharedflag='-qmkshrobj'
cannam@86 9062 tmp_addflag= ;;
cannam@86 9063 nvcc*) # Cuda Compiler Driver 2.2
cannam@86 9064 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@86 9065 compiler_needs_object=yes
cannam@86 9066 ;;
cannam@86 9067 esac
cannam@86 9068 case `$CC -V 2>&1 | sed 5q` in
cannam@86 9069 *Sun\ C*) # Sun C 5.9
cannam@86 9070 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@86 9071 compiler_needs_object=yes
cannam@86 9072 tmp_sharedflag='-G' ;;
cannam@86 9073 *Sun\ F*) # Sun Fortran 8.3
cannam@86 9074 tmp_sharedflag='-G' ;;
cannam@86 9075 esac
cannam@86 9076 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@86 9077
cannam@86 9078 if test "x$supports_anon_versioning" = xyes; then
cannam@86 9079 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
cannam@86 9080 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@86 9081 echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@86 9082 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
cannam@86 9083 fi
cannam@86 9084
cannam@86 9085 case $cc_basename in
cannam@86 9086 xlf* | bgf* | bgxlf* | mpixlf*)
cannam@86 9087 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
cannam@86 9088 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cannam@86 9089 hardcode_libdir_flag_spec=
cannam@86 9090 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cannam@86 9091 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cannam@86 9092 if test "x$supports_anon_versioning" = xyes; then
cannam@86 9093 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
cannam@86 9094 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@86 9095 echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@86 9096 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cannam@86 9097 fi
cannam@86 9098 ;;
cannam@86 9099 esac
cannam@86 9100 else
cannam@86 9101 ld_shlibs=no
cannam@86 9102 fi
cannam@86 9103 ;;
cannam@86 9104
cannam@86 9105 netbsd* | netbsdelf*-gnu)
cannam@86 9106 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@86 9107 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
cannam@86 9108 wlarc=
cannam@86 9109 else
cannam@86 9110 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@86 9111 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@86 9112 fi
cannam@86 9113 ;;
cannam@86 9114
cannam@86 9115 solaris*)
cannam@86 9116 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
cannam@86 9117 ld_shlibs=no
cannam@86 9118 cat <<_LT_EOF 1>&2
cannam@86 9119
cannam@86 9120 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
cannam@86 9121 *** create shared libraries on Solaris systems. Therefore, libtool
cannam@86 9122 *** is disabling shared libraries support. We urge you to upgrade GNU
cannam@86 9123 *** binutils to release 2.9.1 or newer. Another option is to modify
cannam@86 9124 *** your PATH or compiler configuration so that the native linker is
cannam@86 9125 *** used, and then restart.
cannam@86 9126
cannam@86 9127 _LT_EOF
cannam@86 9128 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@86 9129 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@86 9130 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@86 9131 else
cannam@86 9132 ld_shlibs=no
cannam@86 9133 fi
cannam@86 9134 ;;
cannam@86 9135
cannam@86 9136 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
cannam@86 9137 case `$LD -v 2>&1` in
cannam@86 9138 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
cannam@86 9139 ld_shlibs=no
cannam@86 9140 cat <<_LT_EOF 1>&2
cannam@86 9141
cannam@86 9142 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
cannam@86 9143 *** reliably create shared libraries on SCO systems. Therefore, libtool
cannam@86 9144 *** is disabling shared libraries support. We urge you to upgrade GNU
cannam@86 9145 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
cannam@86 9146 *** your PATH or compiler configuration so that the native linker is
cannam@86 9147 *** used, and then restart.
cannam@86 9148
cannam@86 9149 _LT_EOF
cannam@86 9150 ;;
cannam@86 9151 *)
cannam@86 9152 # For security reasons, it is highly recommended that you always
cannam@86 9153 # use absolute paths for naming shared libraries, and exclude the
cannam@86 9154 # DT_RUNPATH tag from executables and libraries. But doing so
cannam@86 9155 # requires that you compile everything twice, which is a pain.
cannam@86 9156 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@86 9157 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@86 9158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@86 9159 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@86 9160 else
cannam@86 9161 ld_shlibs=no
cannam@86 9162 fi
cannam@86 9163 ;;
cannam@86 9164 esac
cannam@86 9165 ;;
cannam@86 9166
cannam@86 9167 sunos4*)
cannam@86 9168 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9169 wlarc=
cannam@86 9170 hardcode_direct=yes
cannam@86 9171 hardcode_shlibpath_var=no
cannam@86 9172 ;;
cannam@86 9173
cannam@86 9174 *)
cannam@86 9175 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@86 9176 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@86 9177 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@86 9178 else
cannam@86 9179 ld_shlibs=no
cannam@86 9180 fi
cannam@86 9181 ;;
cannam@86 9182 esac
cannam@86 9183
cannam@86 9184 if test "$ld_shlibs" = no; then
cannam@86 9185 runpath_var=
cannam@86 9186 hardcode_libdir_flag_spec=
cannam@86 9187 export_dynamic_flag_spec=
cannam@86 9188 whole_archive_flag_spec=
cannam@86 9189 fi
cannam@86 9190 else
cannam@86 9191 # PORTME fill in a description of your system's linker (not GNU ld)
cannam@86 9192 case $host_os in
cannam@86 9193 aix3*)
cannam@86 9194 allow_undefined_flag=unsupported
cannam@86 9195 always_export_symbols=yes
cannam@86 9196 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@86 9197 # Note: this linker hardcodes the directories in LIBPATH if there
cannam@86 9198 # are no directories specified by -L.
cannam@86 9199 hardcode_minus_L=yes
cannam@86 9200 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
cannam@86 9201 # Neither direct hardcoding nor static linking is supported with a
cannam@86 9202 # broken collect2.
cannam@86 9203 hardcode_direct=unsupported
cannam@86 9204 fi
cannam@86 9205 ;;
cannam@86 9206
cannam@86 9207 aix[4-9]*)
cannam@86 9208 if test "$host_cpu" = ia64; then
cannam@86 9209 # On IA64, the linker does run time linking by default, so we don't
cannam@86 9210 # have to do anything special.
cannam@86 9211 aix_use_runtimelinking=no
cannam@86 9212 exp_sym_flag='-Bexport'
cannam@86 9213 no_entry_flag=""
cannam@86 9214 else
cannam@86 9215 # If we're using GNU nm, then we don't want the "-C" option.
cannam@86 9216 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cannam@86 9217 # Also, AIX nm treats weak defined symbols like other global
cannam@86 9218 # defined symbols, whereas GNU nm marks them as "W".
cannam@86 9219 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cannam@86 9220 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@86 9221 else
cannam@86 9222 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@86 9223 fi
cannam@86 9224 aix_use_runtimelinking=no
cannam@86 9225
cannam@86 9226 # Test if we are trying to use run time linking or normal
cannam@86 9227 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cannam@86 9228 # need to do runtime linking.
cannam@86 9229 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
cannam@86 9230 for ld_flag in $LDFLAGS; do
cannam@86 9231 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
cannam@86 9232 aix_use_runtimelinking=yes
cannam@86 9233 break
cannam@86 9234 fi
cannam@86 9235 done
cannam@86 9236 ;;
cannam@86 9237 esac
cannam@86 9238
cannam@86 9239 exp_sym_flag='-bexport'
cannam@86 9240 no_entry_flag='-bnoentry'
cannam@86 9241 fi
cannam@86 9242
cannam@86 9243 # When large executables or shared objects are built, AIX ld can
cannam@86 9244 # have problems creating the table of contents. If linking a library
cannam@86 9245 # or program results in "error TOC overflow" add -mminimal-toc to
cannam@86 9246 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
cannam@86 9247 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
cannam@86 9248
cannam@86 9249 archive_cmds=''
cannam@86 9250 hardcode_direct=yes
cannam@86 9251 hardcode_direct_absolute=yes
cannam@86 9252 hardcode_libdir_separator=':'
cannam@86 9253 link_all_deplibs=yes
cannam@86 9254 file_list_spec='${wl}-f,'
cannam@86 9255
cannam@86 9256 if test "$GCC" = yes; then
cannam@86 9257 case $host_os in aix4.[012]|aix4.[012].*)
cannam@86 9258 # We only want to do this on AIX 4.2 and lower, the check
cannam@86 9259 # below for broken collect2 doesn't work under 4.3+
cannam@86 9260 collect2name=`${CC} -print-prog-name=collect2`
cannam@86 9261 if test -f "$collect2name" &&
cannam@86 9262 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
cannam@86 9263 then
cannam@86 9264 # We have reworked collect2
cannam@86 9265 :
cannam@86 9266 else
cannam@86 9267 # We have old collect2
cannam@86 9268 hardcode_direct=unsupported
cannam@86 9269 # It fails to find uninstalled libraries when the uninstalled
cannam@86 9270 # path is not listed in the libpath. Setting hardcode_minus_L
cannam@86 9271 # to unsupported forces relinking
cannam@86 9272 hardcode_minus_L=yes
cannam@86 9273 hardcode_libdir_flag_spec='-L$libdir'
cannam@86 9274 hardcode_libdir_separator=
cannam@86 9275 fi
cannam@86 9276 ;;
cannam@86 9277 esac
cannam@86 9278 shared_flag='-shared'
cannam@86 9279 if test "$aix_use_runtimelinking" = yes; then
cannam@86 9280 shared_flag="$shared_flag "'${wl}-G'
cannam@86 9281 fi
cannam@86 9282 link_all_deplibs=no
cannam@86 9283 else
cannam@86 9284 # not using gcc
cannam@86 9285 if test "$host_cpu" = ia64; then
cannam@86 9286 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
cannam@86 9287 # chokes on -Wl,-G. The following line is correct:
cannam@86 9288 shared_flag='-G'
cannam@86 9289 else
cannam@86 9290 if test "$aix_use_runtimelinking" = yes; then
cannam@86 9291 shared_flag='${wl}-G'
cannam@86 9292 else
cannam@86 9293 shared_flag='${wl}-bM:SRE'
cannam@86 9294 fi
cannam@86 9295 fi
cannam@86 9296 fi
cannam@86 9297
cannam@86 9298 export_dynamic_flag_spec='${wl}-bexpall'
cannam@86 9299 # It seems that -bexpall does not export symbols beginning with
cannam@86 9300 # underscore (_), so it is better to generate a list of symbols to export.
cannam@86 9301 always_export_symbols=yes
cannam@86 9302 if test "$aix_use_runtimelinking" = yes; then
cannam@86 9303 # Warning - without using the other runtime loading flags (-brtl),
cannam@86 9304 # -berok will link without error, but may produce a broken library.
cannam@86 9305 allow_undefined_flag='-berok'
cannam@86 9306 # Determine the default libpath from the value encoded in an
cannam@86 9307 # empty executable.
cannam@86 9308 if test "${lt_cv_aix_libpath+set}" = set; then
cannam@86 9309 aix_libpath=$lt_cv_aix_libpath
cannam@86 9310 else
cannam@86 9311 if ${lt_cv_aix_libpath_+:} false; then :
cannam@86 9312 $as_echo_n "(cached) " >&6
cannam@86 9313 else
cannam@86 9314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 9315 /* end confdefs.h. */
cannam@86 9316
cannam@86 9317 int
cannam@86 9318 main ()
cannam@86 9319 {
cannam@86 9320
cannam@86 9321 ;
cannam@86 9322 return 0;
cannam@86 9323 }
cannam@86 9324 _ACEOF
cannam@86 9325 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 9326
cannam@86 9327 lt_aix_libpath_sed='
cannam@86 9328 /Import File Strings/,/^$/ {
cannam@86 9329 /^0/ {
cannam@86 9330 s/^0 *\([^ ]*\) *$/\1/
cannam@86 9331 p
cannam@86 9332 }
cannam@86 9333 }'
cannam@86 9334 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@86 9335 # Check for a 64-bit object if we didn't find anything.
cannam@86 9336 if test -z "$lt_cv_aix_libpath_"; then
cannam@86 9337 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@86 9338 fi
cannam@86 9339 fi
cannam@86 9340 rm -f core conftest.err conftest.$ac_objext \
cannam@86 9341 conftest$ac_exeext conftest.$ac_ext
cannam@86 9342 if test -z "$lt_cv_aix_libpath_"; then
cannam@86 9343 lt_cv_aix_libpath_="/usr/lib:/lib"
cannam@86 9344 fi
cannam@86 9345
cannam@86 9346 fi
cannam@86 9347
cannam@86 9348 aix_libpath=$lt_cv_aix_libpath_
cannam@86 9349 fi
cannam@86 9350
cannam@86 9351 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@86 9352 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@86 9353 else
cannam@86 9354 if test "$host_cpu" = ia64; then
cannam@86 9355 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
cannam@86 9356 allow_undefined_flag="-z nodefs"
cannam@86 9357 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@86 9358 else
cannam@86 9359 # Determine the default libpath from the value encoded in an
cannam@86 9360 # empty executable.
cannam@86 9361 if test "${lt_cv_aix_libpath+set}" = set; then
cannam@86 9362 aix_libpath=$lt_cv_aix_libpath
cannam@86 9363 else
cannam@86 9364 if ${lt_cv_aix_libpath_+:} false; then :
cannam@86 9365 $as_echo_n "(cached) " >&6
cannam@86 9366 else
cannam@86 9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 9368 /* end confdefs.h. */
cannam@86 9369
cannam@86 9370 int
cannam@86 9371 main ()
cannam@86 9372 {
cannam@86 9373
cannam@86 9374 ;
cannam@86 9375 return 0;
cannam@86 9376 }
cannam@86 9377 _ACEOF
cannam@86 9378 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 9379
cannam@86 9380 lt_aix_libpath_sed='
cannam@86 9381 /Import File Strings/,/^$/ {
cannam@86 9382 /^0/ {
cannam@86 9383 s/^0 *\([^ ]*\) *$/\1/
cannam@86 9384 p
cannam@86 9385 }
cannam@86 9386 }'
cannam@86 9387 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@86 9388 # Check for a 64-bit object if we didn't find anything.
cannam@86 9389 if test -z "$lt_cv_aix_libpath_"; then
cannam@86 9390 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@86 9391 fi
cannam@86 9392 fi
cannam@86 9393 rm -f core conftest.err conftest.$ac_objext \
cannam@86 9394 conftest$ac_exeext conftest.$ac_ext
cannam@86 9395 if test -z "$lt_cv_aix_libpath_"; then
cannam@86 9396 lt_cv_aix_libpath_="/usr/lib:/lib"
cannam@86 9397 fi
cannam@86 9398
cannam@86 9399 fi
cannam@86 9400
cannam@86 9401 aix_libpath=$lt_cv_aix_libpath_
cannam@86 9402 fi
cannam@86 9403
cannam@86 9404 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@86 9405 # Warning - without using the other run time loading flags,
cannam@86 9406 # -berok will link without error, but may produce a broken library.
cannam@86 9407 no_undefined_flag=' ${wl}-bernotok'
cannam@86 9408 allow_undefined_flag=' ${wl}-berok'
cannam@86 9409 if test "$with_gnu_ld" = yes; then
cannam@86 9410 # We only use this code for GNU lds that support --whole-archive.
cannam@86 9411 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
cannam@86 9412 else
cannam@86 9413 # Exported symbols can be pulled into shared objects from archives
cannam@86 9414 whole_archive_flag_spec='$convenience'
cannam@86 9415 fi
cannam@86 9416 archive_cmds_need_lc=yes
cannam@86 9417 # This is similar to how AIX traditionally builds its shared libraries.
cannam@86 9418 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@86 9419 fi
cannam@86 9420 fi
cannam@86 9421 ;;
cannam@86 9422
cannam@86 9423 amigaos*)
cannam@86 9424 case $host_cpu in
cannam@86 9425 powerpc)
cannam@86 9426 # see comment about AmigaOS4 .so support
cannam@86 9427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@86 9428 archive_expsym_cmds=''
cannam@86 9429 ;;
cannam@86 9430 m68k)
cannam@86 9431 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@86 9432 hardcode_libdir_flag_spec='-L$libdir'
cannam@86 9433 hardcode_minus_L=yes
cannam@86 9434 ;;
cannam@86 9435 esac
cannam@86 9436 ;;
cannam@86 9437
cannam@86 9438 bsdi[45]*)
cannam@86 9439 export_dynamic_flag_spec=-rdynamic
cannam@86 9440 ;;
cannam@86 9441
cannam@86 9442 cygwin* | mingw* | pw32* | cegcc*)
cannam@86 9443 # When not using gcc, we currently assume that we are using
cannam@86 9444 # Microsoft Visual C++.
cannam@86 9445 # hardcode_libdir_flag_spec is actually meaningless, as there is
cannam@86 9446 # no search path for DLLs.
cannam@86 9447 case $cc_basename in
cannam@86 9448 cl*)
cannam@86 9449 # Native MSVC
cannam@86 9450 hardcode_libdir_flag_spec=' '
cannam@86 9451 allow_undefined_flag=unsupported
cannam@86 9452 always_export_symbols=yes
cannam@86 9453 file_list_spec='@'
cannam@86 9454 # Tell ltmain to make .lib files, not .a files.
cannam@86 9455 libext=lib
cannam@86 9456 # Tell ltmain to make .dll files, not .so files.
cannam@86 9457 shrext_cmds=".dll"
cannam@86 9458 # FIXME: Setting linknames here is a bad hack.
cannam@86 9459 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
cannam@86 9460 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@86 9461 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
cannam@86 9462 else
cannam@86 9463 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
cannam@86 9464 fi~
cannam@86 9465 $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@86 9466 linknames='
cannam@86 9467 # The linker will not automatically build a static lib if we build a DLL.
cannam@86 9468 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
cannam@86 9469 enable_shared_with_static_runtimes=yes
cannam@86 9470 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
cannam@86 9471 # Don't use ranlib
cannam@86 9472 old_postinstall_cmds='chmod 644 $oldlib'
cannam@86 9473 postlink_cmds='lt_outputfile="@OUTPUT@"~
cannam@86 9474 lt_tool_outputfile="@TOOL_OUTPUT@"~
cannam@86 9475 case $lt_outputfile in
cannam@86 9476 *.exe|*.EXE) ;;
cannam@86 9477 *)
cannam@86 9478 lt_outputfile="$lt_outputfile.exe"
cannam@86 9479 lt_tool_outputfile="$lt_tool_outputfile.exe"
cannam@86 9480 ;;
cannam@86 9481 esac~
cannam@86 9482 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
cannam@86 9483 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
cannam@86 9484 $RM "$lt_outputfile.manifest";
cannam@86 9485 fi'
cannam@86 9486 ;;
cannam@86 9487 *)
cannam@86 9488 # Assume MSVC wrapper
cannam@86 9489 hardcode_libdir_flag_spec=' '
cannam@86 9490 allow_undefined_flag=unsupported
cannam@86 9491 # Tell ltmain to make .lib files, not .a files.
cannam@86 9492 libext=lib
cannam@86 9493 # Tell ltmain to make .dll files, not .so files.
cannam@86 9494 shrext_cmds=".dll"
cannam@86 9495 # FIXME: Setting linknames here is a bad hack.
cannam@86 9496 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
cannam@86 9497 # The linker will automatically build a .lib file if we build a DLL.
cannam@86 9498 old_archive_from_new_cmds='true'
cannam@86 9499 # FIXME: Should let the user specify the lib program.
cannam@86 9500 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
cannam@86 9501 enable_shared_with_static_runtimes=yes
cannam@86 9502 ;;
cannam@86 9503 esac
cannam@86 9504 ;;
cannam@86 9505
cannam@86 9506 darwin* | rhapsody*)
cannam@86 9507
cannam@86 9508
cannam@86 9509 archive_cmds_need_lc=no
cannam@86 9510 hardcode_direct=no
cannam@86 9511 hardcode_automatic=yes
cannam@86 9512 hardcode_shlibpath_var=unsupported
cannam@86 9513 if test "$lt_cv_ld_force_load" = "yes"; then
cannam@86 9514 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@86 9515 else
cannam@86 9516 whole_archive_flag_spec=''
cannam@86 9517 fi
cannam@86 9518 link_all_deplibs=yes
cannam@86 9519 allow_undefined_flag="$_lt_dar_allow_undefined"
cannam@86 9520 case $cc_basename in
cannam@86 9521 ifort*) _lt_dar_can_shared=yes ;;
cannam@86 9522 *) _lt_dar_can_shared=$GCC ;;
cannam@86 9523 esac
cannam@86 9524 if test "$_lt_dar_can_shared" = "yes"; then
cannam@86 9525 output_verbose_link_cmd=func_echo_all
cannam@86 9526 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@86 9527 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
cannam@86 9528 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@86 9529 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@86 9530
cannam@86 9531 else
cannam@86 9532 ld_shlibs=no
cannam@86 9533 fi
cannam@86 9534
cannam@86 9535 ;;
cannam@86 9536
cannam@86 9537 dgux*)
cannam@86 9538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9539 hardcode_libdir_flag_spec='-L$libdir'
cannam@86 9540 hardcode_shlibpath_var=no
cannam@86 9541 ;;
cannam@86 9542
cannam@86 9543 freebsd1*)
cannam@86 9544 ld_shlibs=no
cannam@86 9545 ;;
cannam@86 9546
cannam@86 9547 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
cannam@86 9548 # support. Future versions do this automatically, but an explicit c++rt0.o
cannam@86 9549 # does not break anything, and helps significantly (at the cost of a little
cannam@86 9550 # extra space).
cannam@86 9551 freebsd2.2*)
cannam@86 9552 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
cannam@86 9553 hardcode_libdir_flag_spec='-R$libdir'
cannam@86 9554 hardcode_direct=yes
cannam@86 9555 hardcode_shlibpath_var=no
cannam@86 9556 ;;
cannam@86 9557
cannam@86 9558 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cannam@86 9559 freebsd2*)
cannam@86 9560 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9561 hardcode_direct=yes
cannam@86 9562 hardcode_minus_L=yes
cannam@86 9563 hardcode_shlibpath_var=no
cannam@86 9564 ;;
cannam@86 9565
cannam@86 9566 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
cannam@86 9567 freebsd* | dragonfly*)
cannam@86 9568 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9569 hardcode_libdir_flag_spec='-R$libdir'
cannam@86 9570 hardcode_direct=yes
cannam@86 9571 hardcode_shlibpath_var=no
cannam@86 9572 ;;
cannam@86 9573
cannam@86 9574 hpux9*)
cannam@86 9575 if test "$GCC" = yes; then
cannam@86 9576 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@86 9577 else
cannam@86 9578 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@86 9579 fi
cannam@86 9580 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cannam@86 9581 hardcode_libdir_separator=:
cannam@86 9582 hardcode_direct=yes
cannam@86 9583
cannam@86 9584 # hardcode_minus_L: Not really in the search PATH,
cannam@86 9585 # but as the default location of the library.
cannam@86 9586 hardcode_minus_L=yes
cannam@86 9587 export_dynamic_flag_spec='${wl}-E'
cannam@86 9588 ;;
cannam@86 9589
cannam@86 9590 hpux10*)
cannam@86 9591 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cannam@86 9592 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9593 else
cannam@86 9594 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9595 fi
cannam@86 9596 if test "$with_gnu_ld" = no; then
cannam@86 9597 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cannam@86 9598 hardcode_libdir_flag_spec_ld='+b $libdir'
cannam@86 9599 hardcode_libdir_separator=:
cannam@86 9600 hardcode_direct=yes
cannam@86 9601 hardcode_direct_absolute=yes
cannam@86 9602 export_dynamic_flag_spec='${wl}-E'
cannam@86 9603 # hardcode_minus_L: Not really in the search PATH,
cannam@86 9604 # but as the default location of the library.
cannam@86 9605 hardcode_minus_L=yes
cannam@86 9606 fi
cannam@86 9607 ;;
cannam@86 9608
cannam@86 9609 hpux11*)
cannam@86 9610 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cannam@86 9611 case $host_cpu in
cannam@86 9612 hppa*64*)
cannam@86 9613 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9614 ;;
cannam@86 9615 ia64*)
cannam@86 9616 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9617 ;;
cannam@86 9618 *)
cannam@86 9619 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9620 ;;
cannam@86 9621 esac
cannam@86 9622 else
cannam@86 9623 case $host_cpu in
cannam@86 9624 hppa*64*)
cannam@86 9625 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9626 ;;
cannam@86 9627 ia64*)
cannam@86 9628 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9629 ;;
cannam@86 9630 *)
cannam@86 9631
cannam@86 9632 # Older versions of the 11.00 compiler do not understand -b yet
cannam@86 9633 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
cannam@86 9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
cannam@86 9635 $as_echo_n "checking if $CC understands -b... " >&6; }
cannam@86 9636 if ${lt_cv_prog_compiler__b+:} false; then :
cannam@86 9637 $as_echo_n "(cached) " >&6
cannam@86 9638 else
cannam@86 9639 lt_cv_prog_compiler__b=no
cannam@86 9640 save_LDFLAGS="$LDFLAGS"
cannam@86 9641 LDFLAGS="$LDFLAGS -b"
cannam@86 9642 echo "$lt_simple_link_test_code" > conftest.$ac_ext
cannam@86 9643 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
cannam@86 9644 # The linker can only warn and ignore the option if not recognized
cannam@86 9645 # So say no if there are warnings
cannam@86 9646 if test -s conftest.err; then
cannam@86 9647 # Append any errors to the config.log.
cannam@86 9648 cat conftest.err 1>&5
cannam@86 9649 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cannam@86 9650 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@86 9651 if diff conftest.exp conftest.er2 >/dev/null; then
cannam@86 9652 lt_cv_prog_compiler__b=yes
cannam@86 9653 fi
cannam@86 9654 else
cannam@86 9655 lt_cv_prog_compiler__b=yes
cannam@86 9656 fi
cannam@86 9657 fi
cannam@86 9658 $RM -r conftest*
cannam@86 9659 LDFLAGS="$save_LDFLAGS"
cannam@86 9660
cannam@86 9661 fi
cannam@86 9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
cannam@86 9663 $as_echo "$lt_cv_prog_compiler__b" >&6; }
cannam@86 9664
cannam@86 9665 if test x"$lt_cv_prog_compiler__b" = xyes; then
cannam@86 9666 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9667 else
cannam@86 9668 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9669 fi
cannam@86 9670
cannam@86 9671 ;;
cannam@86 9672 esac
cannam@86 9673 fi
cannam@86 9674 if test "$with_gnu_ld" = no; then
cannam@86 9675 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cannam@86 9676 hardcode_libdir_separator=:
cannam@86 9677
cannam@86 9678 case $host_cpu in
cannam@86 9679 hppa*64*|ia64*)
cannam@86 9680 hardcode_direct=no
cannam@86 9681 hardcode_shlibpath_var=no
cannam@86 9682 ;;
cannam@86 9683 *)
cannam@86 9684 hardcode_direct=yes
cannam@86 9685 hardcode_direct_absolute=yes
cannam@86 9686 export_dynamic_flag_spec='${wl}-E'
cannam@86 9687
cannam@86 9688 # hardcode_minus_L: Not really in the search PATH,
cannam@86 9689 # but as the default location of the library.
cannam@86 9690 hardcode_minus_L=yes
cannam@86 9691 ;;
cannam@86 9692 esac
cannam@86 9693 fi
cannam@86 9694 ;;
cannam@86 9695
cannam@86 9696 irix5* | irix6* | nonstopux*)
cannam@86 9697 if test "$GCC" = yes; then
cannam@86 9698 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@86 9699 # Try to use the -exported_symbol ld option, if it does not
cannam@86 9700 # work, assume that -exports_file does not work either and
cannam@86 9701 # implicitly export all symbols.
cannam@86 9702 # This should be the same for all languages, so no per-tag cache variable.
cannam@86 9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
cannam@86 9704 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
cannam@86 9705 if ${lt_cv_irix_exported_symbol+:} false; then :
cannam@86 9706 $as_echo_n "(cached) " >&6
cannam@86 9707 else
cannam@86 9708 save_LDFLAGS="$LDFLAGS"
cannam@86 9709 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cannam@86 9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 9711 /* end confdefs.h. */
cannam@86 9712 int foo (void) { return 0; }
cannam@86 9713 _ACEOF
cannam@86 9714 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 9715 lt_cv_irix_exported_symbol=yes
cannam@86 9716 else
cannam@86 9717 lt_cv_irix_exported_symbol=no
cannam@86 9718 fi
cannam@86 9719 rm -f core conftest.err conftest.$ac_objext \
cannam@86 9720 conftest$ac_exeext conftest.$ac_ext
cannam@86 9721 LDFLAGS="$save_LDFLAGS"
cannam@86 9722 fi
cannam@86 9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
cannam@86 9724 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
cannam@86 9725 if test "$lt_cv_irix_exported_symbol" = yes; then
cannam@86 9726 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@86 9727 fi
cannam@86 9728 else
cannam@86 9729 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@86 9730 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@86 9731 fi
cannam@86 9732 archive_cmds_need_lc='no'
cannam@86 9733 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@86 9734 hardcode_libdir_separator=:
cannam@86 9735 inherit_rpath=yes
cannam@86 9736 link_all_deplibs=yes
cannam@86 9737 ;;
cannam@86 9738
cannam@86 9739 netbsd* | netbsdelf*-gnu)
cannam@86 9740 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@86 9741 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
cannam@86 9742 else
cannam@86 9743 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
cannam@86 9744 fi
cannam@86 9745 hardcode_libdir_flag_spec='-R$libdir'
cannam@86 9746 hardcode_direct=yes
cannam@86 9747 hardcode_shlibpath_var=no
cannam@86 9748 ;;
cannam@86 9749
cannam@86 9750 newsos6)
cannam@86 9751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9752 hardcode_direct=yes
cannam@86 9753 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@86 9754 hardcode_libdir_separator=:
cannam@86 9755 hardcode_shlibpath_var=no
cannam@86 9756 ;;
cannam@86 9757
cannam@86 9758 *nto* | *qnx*)
cannam@86 9759 ;;
cannam@86 9760
cannam@86 9761 openbsd*)
cannam@86 9762 if test -f /usr/libexec/ld.so; then
cannam@86 9763 hardcode_direct=yes
cannam@86 9764 hardcode_shlibpath_var=no
cannam@86 9765 hardcode_direct_absolute=yes
cannam@86 9766 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@86 9767 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9768 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
cannam@86 9769 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
cannam@86 9770 export_dynamic_flag_spec='${wl}-E'
cannam@86 9771 else
cannam@86 9772 case $host_os in
cannam@86 9773 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
cannam@86 9774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9775 hardcode_libdir_flag_spec='-R$libdir'
cannam@86 9776 ;;
cannam@86 9777 *)
cannam@86 9778 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9779 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
cannam@86 9780 ;;
cannam@86 9781 esac
cannam@86 9782 fi
cannam@86 9783 else
cannam@86 9784 ld_shlibs=no
cannam@86 9785 fi
cannam@86 9786 ;;
cannam@86 9787
cannam@86 9788 os2*)
cannam@86 9789 hardcode_libdir_flag_spec='-L$libdir'
cannam@86 9790 hardcode_minus_L=yes
cannam@86 9791 allow_undefined_flag=unsupported
cannam@86 9792 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@86 9793 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
cannam@86 9794 ;;
cannam@86 9795
cannam@86 9796 osf3*)
cannam@86 9797 if test "$GCC" = yes; then
cannam@86 9798 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cannam@86 9799 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@86 9800 else
cannam@86 9801 allow_undefined_flag=' -expect_unresolved \*'
cannam@86 9802 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@86 9803 fi
cannam@86 9804 archive_cmds_need_lc='no'
cannam@86 9805 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@86 9806 hardcode_libdir_separator=:
cannam@86 9807 ;;
cannam@86 9808
cannam@86 9809 osf4* | osf5*) # as osf3* with the addition of -msym flag
cannam@86 9810 if test "$GCC" = yes; then
cannam@86 9811 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cannam@86 9812 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@86 9813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@86 9814 else
cannam@86 9815 allow_undefined_flag=' -expect_unresolved \*'
cannam@86 9816 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@86 9817 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@86 9818 $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@86 9819
cannam@86 9820 # Both c and cxx compiler support -rpath directly
cannam@86 9821 hardcode_libdir_flag_spec='-rpath $libdir'
cannam@86 9822 fi
cannam@86 9823 archive_cmds_need_lc='no'
cannam@86 9824 hardcode_libdir_separator=:
cannam@86 9825 ;;
cannam@86 9826
cannam@86 9827 solaris*)
cannam@86 9828 no_undefined_flag=' -z defs'
cannam@86 9829 if test "$GCC" = yes; then
cannam@86 9830 wlarc='${wl}'
cannam@86 9831 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9832 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@86 9833 $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@86 9834 else
cannam@86 9835 case `$CC -V 2>&1` in
cannam@86 9836 *"Compilers 5.0"*)
cannam@86 9837 wlarc=''
cannam@86 9838 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9839 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@86 9840 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
cannam@86 9841 ;;
cannam@86 9842 *)
cannam@86 9843 wlarc='${wl}'
cannam@86 9844 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9845 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@86 9846 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
cannam@86 9847 ;;
cannam@86 9848 esac
cannam@86 9849 fi
cannam@86 9850 hardcode_libdir_flag_spec='-R$libdir'
cannam@86 9851 hardcode_shlibpath_var=no
cannam@86 9852 case $host_os in
cannam@86 9853 solaris2.[0-5] | solaris2.[0-5].*) ;;
cannam@86 9854 *)
cannam@86 9855 # The compiler driver will combine and reorder linker options,
cannam@86 9856 # but understands `-z linker_flag'. GCC discards it without `$wl',
cannam@86 9857 # but is careful enough not to reorder.
cannam@86 9858 # Supported since Solaris 2.6 (maybe 2.5.1?)
cannam@86 9859 if test "$GCC" = yes; then
cannam@86 9860 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
cannam@86 9861 else
cannam@86 9862 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
cannam@86 9863 fi
cannam@86 9864 ;;
cannam@86 9865 esac
cannam@86 9866 link_all_deplibs=yes
cannam@86 9867 ;;
cannam@86 9868
cannam@86 9869 sunos4*)
cannam@86 9870 if test "x$host_vendor" = xsequent; then
cannam@86 9871 # Use $CC to link under sequent, because it throws in some extra .o
cannam@86 9872 # files that make .init and .fini sections work.
cannam@86 9873 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9874 else
cannam@86 9875 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9876 fi
cannam@86 9877 hardcode_libdir_flag_spec='-L$libdir'
cannam@86 9878 hardcode_direct=yes
cannam@86 9879 hardcode_minus_L=yes
cannam@86 9880 hardcode_shlibpath_var=no
cannam@86 9881 ;;
cannam@86 9882
cannam@86 9883 sysv4)
cannam@86 9884 case $host_vendor in
cannam@86 9885 sni)
cannam@86 9886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9887 hardcode_direct=yes # is this really true???
cannam@86 9888 ;;
cannam@86 9889 siemens)
cannam@86 9890 ## LD is ld it makes a PLAMLIB
cannam@86 9891 ## CC just makes a GrossModule.
cannam@86 9892 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9893 reload_cmds='$CC -r -o $output$reload_objs'
cannam@86 9894 hardcode_direct=no
cannam@86 9895 ;;
cannam@86 9896 motorola)
cannam@86 9897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9898 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
cannam@86 9899 ;;
cannam@86 9900 esac
cannam@86 9901 runpath_var='LD_RUN_PATH'
cannam@86 9902 hardcode_shlibpath_var=no
cannam@86 9903 ;;
cannam@86 9904
cannam@86 9905 sysv4.3*)
cannam@86 9906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9907 hardcode_shlibpath_var=no
cannam@86 9908 export_dynamic_flag_spec='-Bexport'
cannam@86 9909 ;;
cannam@86 9910
cannam@86 9911 sysv4*MP*)
cannam@86 9912 if test -d /usr/nec; then
cannam@86 9913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9914 hardcode_shlibpath_var=no
cannam@86 9915 runpath_var=LD_RUN_PATH
cannam@86 9916 hardcode_runpath_var=yes
cannam@86 9917 ld_shlibs=yes
cannam@86 9918 fi
cannam@86 9919 ;;
cannam@86 9920
cannam@86 9921 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
cannam@86 9922 no_undefined_flag='${wl}-z,text'
cannam@86 9923 archive_cmds_need_lc=no
cannam@86 9924 hardcode_shlibpath_var=no
cannam@86 9925 runpath_var='LD_RUN_PATH'
cannam@86 9926
cannam@86 9927 if test "$GCC" = yes; then
cannam@86 9928 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9929 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9930 else
cannam@86 9931 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9932 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9933 fi
cannam@86 9934 ;;
cannam@86 9935
cannam@86 9936 sysv5* | sco3.2v5* | sco5v6*)
cannam@86 9937 # Note: We can NOT use -z defs as we might desire, because we do not
cannam@86 9938 # link with -lc, and that would cause any symbols used from libc to
cannam@86 9939 # always be unresolved, which means just about no library would
cannam@86 9940 # ever link correctly. If we're not using GNU ld we use -z text
cannam@86 9941 # though, which does catch some bad symbols but isn't as heavy-handed
cannam@86 9942 # as -z defs.
cannam@86 9943 no_undefined_flag='${wl}-z,text'
cannam@86 9944 allow_undefined_flag='${wl}-z,nodefs'
cannam@86 9945 archive_cmds_need_lc=no
cannam@86 9946 hardcode_shlibpath_var=no
cannam@86 9947 hardcode_libdir_flag_spec='${wl}-R,$libdir'
cannam@86 9948 hardcode_libdir_separator=':'
cannam@86 9949 link_all_deplibs=yes
cannam@86 9950 export_dynamic_flag_spec='${wl}-Bexport'
cannam@86 9951 runpath_var='LD_RUN_PATH'
cannam@86 9952
cannam@86 9953 if test "$GCC" = yes; then
cannam@86 9954 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9955 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9956 else
cannam@86 9957 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9958 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9959 fi
cannam@86 9960 ;;
cannam@86 9961
cannam@86 9962 uts4*)
cannam@86 9963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9964 hardcode_libdir_flag_spec='-L$libdir'
cannam@86 9965 hardcode_shlibpath_var=no
cannam@86 9966 ;;
cannam@86 9967
cannam@86 9968 *)
cannam@86 9969 ld_shlibs=no
cannam@86 9970 ;;
cannam@86 9971 esac
cannam@86 9972
cannam@86 9973 if test x$host_vendor = xsni; then
cannam@86 9974 case $host in
cannam@86 9975 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cannam@86 9976 export_dynamic_flag_spec='${wl}-Blargedynsym'
cannam@86 9977 ;;
cannam@86 9978 esac
cannam@86 9979 fi
cannam@86 9980 fi
cannam@86 9981
cannam@86 9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cannam@86 9983 $as_echo "$ld_shlibs" >&6; }
cannam@86 9984 test "$ld_shlibs" = no && can_build_shared=no
cannam@86 9985
cannam@86 9986 with_gnu_ld=$with_gnu_ld
cannam@86 9987
cannam@86 9988
cannam@86 9989
cannam@86 9990
cannam@86 9991
cannam@86 9992
cannam@86 9993
cannam@86 9994
cannam@86 9995
cannam@86 9996
cannam@86 9997
cannam@86 9998
cannam@86 9999
cannam@86 10000
cannam@86 10001
cannam@86 10002 #
cannam@86 10003 # Do we need to explicitly link libc?
cannam@86 10004 #
cannam@86 10005 case "x$archive_cmds_need_lc" in
cannam@86 10006 x|xyes)
cannam@86 10007 # Assume -lc should be added
cannam@86 10008 archive_cmds_need_lc=yes
cannam@86 10009
cannam@86 10010 if test "$enable_shared" = yes && test "$GCC" = yes; then
cannam@86 10011 case $archive_cmds in
cannam@86 10012 *'~'*)
cannam@86 10013 # FIXME: we may have to deal with multi-command sequences.
cannam@86 10014 ;;
cannam@86 10015 '$CC '*)
cannam@86 10016 # Test whether the compiler implicitly links with -lc since on some
cannam@86 10017 # systems, -lgcc has to come before -lc. If gcc already passes -lc
cannam@86 10018 # to ld, don't add -lc before -lgcc.
cannam@86 10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cannam@86 10020 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cannam@86 10021 if ${lt_cv_archive_cmds_need_lc+:} false; then :
cannam@86 10022 $as_echo_n "(cached) " >&6
cannam@86 10023 else
cannam@86 10024 $RM conftest*
cannam@86 10025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@86 10026
cannam@86 10027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@86 10028 (eval $ac_compile) 2>&5
cannam@86 10029 ac_status=$?
cannam@86 10030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 10031 test $ac_status = 0; } 2>conftest.err; then
cannam@86 10032 soname=conftest
cannam@86 10033 lib=conftest
cannam@86 10034 libobjs=conftest.$ac_objext
cannam@86 10035 deplibs=
cannam@86 10036 wl=$lt_prog_compiler_wl
cannam@86 10037 pic_flag=$lt_prog_compiler_pic
cannam@86 10038 compiler_flags=-v
cannam@86 10039 linker_flags=-v
cannam@86 10040 verstring=
cannam@86 10041 output_objdir=.
cannam@86 10042 libname=conftest
cannam@86 10043 lt_save_allow_undefined_flag=$allow_undefined_flag
cannam@86 10044 allow_undefined_flag=
cannam@86 10045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cannam@86 10046 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
cannam@86 10047 ac_status=$?
cannam@86 10048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 10049 test $ac_status = 0; }
cannam@86 10050 then
cannam@86 10051 lt_cv_archive_cmds_need_lc=no
cannam@86 10052 else
cannam@86 10053 lt_cv_archive_cmds_need_lc=yes
cannam@86 10054 fi
cannam@86 10055 allow_undefined_flag=$lt_save_allow_undefined_flag
cannam@86 10056 else
cannam@86 10057 cat conftest.err 1>&5
cannam@86 10058 fi
cannam@86 10059 $RM conftest*
cannam@86 10060
cannam@86 10061 fi
cannam@86 10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
cannam@86 10063 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
cannam@86 10064 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cannam@86 10065 ;;
cannam@86 10066 esac
cannam@86 10067 fi
cannam@86 10068 ;;
cannam@86 10069 esac
cannam@86 10070
cannam@86 10071
cannam@86 10072
cannam@86 10073
cannam@86 10074
cannam@86 10075
cannam@86 10076
cannam@86 10077
cannam@86 10078
cannam@86 10079
cannam@86 10080
cannam@86 10081
cannam@86 10082
cannam@86 10083
cannam@86 10084
cannam@86 10085
cannam@86 10086
cannam@86 10087
cannam@86 10088
cannam@86 10089
cannam@86 10090
cannam@86 10091
cannam@86 10092
cannam@86 10093
cannam@86 10094
cannam@86 10095
cannam@86 10096
cannam@86 10097
cannam@86 10098
cannam@86 10099
cannam@86 10100
cannam@86 10101
cannam@86 10102
cannam@86 10103
cannam@86 10104
cannam@86 10105
cannam@86 10106
cannam@86 10107
cannam@86 10108
cannam@86 10109
cannam@86 10110
cannam@86 10111
cannam@86 10112
cannam@86 10113
cannam@86 10114
cannam@86 10115
cannam@86 10116
cannam@86 10117
cannam@86 10118
cannam@86 10119
cannam@86 10120
cannam@86 10121
cannam@86 10122
cannam@86 10123
cannam@86 10124
cannam@86 10125
cannam@86 10126
cannam@86 10127
cannam@86 10128
cannam@86 10129
cannam@86 10130
cannam@86 10131
cannam@86 10132
cannam@86 10133
cannam@86 10134
cannam@86 10135
cannam@86 10136
cannam@86 10137
cannam@86 10138
cannam@86 10139
cannam@86 10140
cannam@86 10141
cannam@86 10142
cannam@86 10143
cannam@86 10144
cannam@86 10145
cannam@86 10146
cannam@86 10147
cannam@86 10148
cannam@86 10149
cannam@86 10150
cannam@86 10151
cannam@86 10152
cannam@86 10153
cannam@86 10154
cannam@86 10155
cannam@86 10156
cannam@86 10157
cannam@86 10158
cannam@86 10159
cannam@86 10160
cannam@86 10161
cannam@86 10162
cannam@86 10163
cannam@86 10164
cannam@86 10165
cannam@86 10166
cannam@86 10167
cannam@86 10168
cannam@86 10169
cannam@86 10170
cannam@86 10171
cannam@86 10172
cannam@86 10173
cannam@86 10174
cannam@86 10175
cannam@86 10176
cannam@86 10177
cannam@86 10178
cannam@86 10179
cannam@86 10180
cannam@86 10181
cannam@86 10182
cannam@86 10183
cannam@86 10184
cannam@86 10185
cannam@86 10186
cannam@86 10187
cannam@86 10188
cannam@86 10189
cannam@86 10190
cannam@86 10191
cannam@86 10192
cannam@86 10193
cannam@86 10194
cannam@86 10195
cannam@86 10196
cannam@86 10197
cannam@86 10198
cannam@86 10199
cannam@86 10200
cannam@86 10201
cannam@86 10202
cannam@86 10203
cannam@86 10204
cannam@86 10205
cannam@86 10206
cannam@86 10207
cannam@86 10208
cannam@86 10209
cannam@86 10210
cannam@86 10211
cannam@86 10212
cannam@86 10213
cannam@86 10214
cannam@86 10215
cannam@86 10216
cannam@86 10217
cannam@86 10218
cannam@86 10219
cannam@86 10220
cannam@86 10221
cannam@86 10222
cannam@86 10223
cannam@86 10224
cannam@86 10225
cannam@86 10226
cannam@86 10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cannam@86 10228 $as_echo_n "checking dynamic linker characteristics... " >&6; }
cannam@86 10229
cannam@86 10230 if test "$GCC" = yes; then
cannam@86 10231 case $host_os in
cannam@86 10232 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
cannam@86 10233 *) lt_awk_arg="/^libraries:/" ;;
cannam@86 10234 esac
cannam@86 10235 case $host_os in
cannam@86 10236 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
cannam@86 10237 *) lt_sed_strip_eq="s,=/,/,g" ;;
cannam@86 10238 esac
cannam@86 10239 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
cannam@86 10240 case $lt_search_path_spec in
cannam@86 10241 *\;*)
cannam@86 10242 # if the path contains ";" then we assume it to be the separator
cannam@86 10243 # otherwise default to the standard path separator (i.e. ":") - it is
cannam@86 10244 # assumed that no part of a normal pathname contains ";" but that should
cannam@86 10245 # okay in the real world where ";" in dirpaths is itself problematic.
cannam@86 10246 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
cannam@86 10247 ;;
cannam@86 10248 *)
cannam@86 10249 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
cannam@86 10250 ;;
cannam@86 10251 esac
cannam@86 10252 # Ok, now we have the path, separated by spaces, we can step through it
cannam@86 10253 # and add multilib dir if necessary.
cannam@86 10254 lt_tmp_lt_search_path_spec=
cannam@86 10255 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
cannam@86 10256 for lt_sys_path in $lt_search_path_spec; do
cannam@86 10257 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
cannam@86 10258 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
cannam@86 10259 else
cannam@86 10260 test -d "$lt_sys_path" && \
cannam@86 10261 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
cannam@86 10262 fi
cannam@86 10263 done
cannam@86 10264 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cannam@86 10265 BEGIN {RS=" "; FS="/|\n";} {
cannam@86 10266 lt_foo="";
cannam@86 10267 lt_count=0;
cannam@86 10268 for (lt_i = NF; lt_i > 0; lt_i--) {
cannam@86 10269 if ($lt_i != "" && $lt_i != ".") {
cannam@86 10270 if ($lt_i == "..") {
cannam@86 10271 lt_count++;
cannam@86 10272 } else {
cannam@86 10273 if (lt_count == 0) {
cannam@86 10274 lt_foo="/" $lt_i lt_foo;
cannam@86 10275 } else {
cannam@86 10276 lt_count--;
cannam@86 10277 }
cannam@86 10278 }
cannam@86 10279 }
cannam@86 10280 }
cannam@86 10281 if (lt_foo != "") { lt_freq[lt_foo]++; }
cannam@86 10282 if (lt_freq[lt_foo] == 1) { print lt_foo; }
cannam@86 10283 }'`
cannam@86 10284 # AWK program above erroneously prepends '/' to C:/dos/paths
cannam@86 10285 # for these hosts.
cannam@86 10286 case $host_os in
cannam@86 10287 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
cannam@86 10288 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
cannam@86 10289 esac
cannam@86 10290 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cannam@86 10291 else
cannam@86 10292 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
cannam@86 10293 fi
cannam@86 10294 library_names_spec=
cannam@86 10295 libname_spec='lib$name'
cannam@86 10296 soname_spec=
cannam@86 10297 shrext_cmds=".so"
cannam@86 10298 postinstall_cmds=
cannam@86 10299 postuninstall_cmds=
cannam@86 10300 finish_cmds=
cannam@86 10301 finish_eval=
cannam@86 10302 shlibpath_var=
cannam@86 10303 shlibpath_overrides_runpath=unknown
cannam@86 10304 version_type=none
cannam@86 10305 dynamic_linker="$host_os ld.so"
cannam@86 10306 sys_lib_dlsearch_path_spec="/lib /usr/lib"
cannam@86 10307 need_lib_prefix=unknown
cannam@86 10308 hardcode_into_libs=no
cannam@86 10309
cannam@86 10310 # when you set need_version to no, make sure it does not cause -set_version
cannam@86 10311 # flags to be left without arguments
cannam@86 10312 need_version=unknown
cannam@86 10313
cannam@86 10314 case $host_os in
cannam@86 10315 aix3*)
cannam@86 10316 version_type=linux
cannam@86 10317 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
cannam@86 10318 shlibpath_var=LIBPATH
cannam@86 10319
cannam@86 10320 # AIX 3 has no versioning support, so we append a major version to the name.
cannam@86 10321 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10322 ;;
cannam@86 10323
cannam@86 10324 aix[4-9]*)
cannam@86 10325 version_type=linux
cannam@86 10326 need_lib_prefix=no
cannam@86 10327 need_version=no
cannam@86 10328 hardcode_into_libs=yes
cannam@86 10329 if test "$host_cpu" = ia64; then
cannam@86 10330 # AIX 5 supports IA64
cannam@86 10331 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
cannam@86 10332 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10333 else
cannam@86 10334 # With GCC up to 2.95.x, collect2 would create an import file
cannam@86 10335 # for dependence libraries. The import file would start with
cannam@86 10336 # the line `#! .'. This would cause the generated library to
cannam@86 10337 # depend on `.', always an invalid library. This was fixed in
cannam@86 10338 # development snapshots of GCC prior to 3.0.
cannam@86 10339 case $host_os in
cannam@86 10340 aix4 | aix4.[01] | aix4.[01].*)
cannam@86 10341 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
cannam@86 10342 echo ' yes '
cannam@86 10343 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
cannam@86 10344 :
cannam@86 10345 else
cannam@86 10346 can_build_shared=no
cannam@86 10347 fi
cannam@86 10348 ;;
cannam@86 10349 esac
cannam@86 10350 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
cannam@86 10351 # soname into executable. Probably we can add versioning support to
cannam@86 10352 # collect2, so additional links can be useful in future.
cannam@86 10353 if test "$aix_use_runtimelinking" = yes; then
cannam@86 10354 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
cannam@86 10355 # instead of lib<name>.a to let people know that these are not
cannam@86 10356 # typical AIX shared libraries.
cannam@86 10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10358 else
cannam@86 10359 # We preserve .a as extension for shared libraries through AIX4.2
cannam@86 10360 # and later when we are not doing run time linking.
cannam@86 10361 library_names_spec='${libname}${release}.a $libname.a'
cannam@86 10362 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10363 fi
cannam@86 10364 shlibpath_var=LIBPATH
cannam@86 10365 fi
cannam@86 10366 ;;
cannam@86 10367
cannam@86 10368 amigaos*)
cannam@86 10369 case $host_cpu in
cannam@86 10370 powerpc)
cannam@86 10371 # Since July 2007 AmigaOS4 officially supports .so libraries.
cannam@86 10372 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
cannam@86 10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10374 ;;
cannam@86 10375 m68k)
cannam@86 10376 library_names_spec='$libname.ixlibrary $libname.a'
cannam@86 10377 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cannam@86 10378 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@86 10379 ;;
cannam@86 10380 esac
cannam@86 10381 ;;
cannam@86 10382
cannam@86 10383 beos*)
cannam@86 10384 library_names_spec='${libname}${shared_ext}'
cannam@86 10385 dynamic_linker="$host_os ld.so"
cannam@86 10386 shlibpath_var=LIBRARY_PATH
cannam@86 10387 ;;
cannam@86 10388
cannam@86 10389 bsdi[45]*)
cannam@86 10390 version_type=linux
cannam@86 10391 need_version=no
cannam@86 10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10393 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10394 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
cannam@86 10395 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10396 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
cannam@86 10397 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
cannam@86 10398 # the default ld.so.conf also contains /usr/contrib/lib and
cannam@86 10399 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
cannam@86 10400 # libtool to hard-code these into programs
cannam@86 10401 ;;
cannam@86 10402
cannam@86 10403 cygwin* | mingw* | pw32* | cegcc*)
cannam@86 10404 version_type=windows
cannam@86 10405 shrext_cmds=".dll"
cannam@86 10406 need_version=no
cannam@86 10407 need_lib_prefix=no
cannam@86 10408
cannam@86 10409 case $GCC,$cc_basename in
cannam@86 10410 yes,*)
cannam@86 10411 # gcc
cannam@86 10412 library_names_spec='$libname.dll.a'
cannam@86 10413 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@86 10414 postinstall_cmds='base_file=`basename \${file}`~
cannam@86 10415 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
cannam@86 10416 dldir=$destdir/`dirname \$dlpath`~
cannam@86 10417 test -d \$dldir || mkdir -p \$dldir~
cannam@86 10418 $install_prog $dir/$dlname \$dldir/$dlname~
cannam@86 10419 chmod a+x \$dldir/$dlname~
cannam@86 10420 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
cannam@86 10421 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
cannam@86 10422 fi'
cannam@86 10423 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@86 10424 dlpath=$dir/\$dldll~
cannam@86 10425 $RM \$dlpath'
cannam@86 10426 shlibpath_overrides_runpath=yes
cannam@86 10427
cannam@86 10428 case $host_os in
cannam@86 10429 cygwin*)
cannam@86 10430 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
cannam@86 10431 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@86 10432
cannam@86 10433 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cannam@86 10434 ;;
cannam@86 10435 mingw* | cegcc*)
cannam@86 10436 # MinGW DLLs use traditional 'lib' prefix
cannam@86 10437 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@86 10438 ;;
cannam@86 10439 pw32*)
cannam@86 10440 # pw32 DLLs use 'pw' prefix rather than 'lib'
cannam@86 10441 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@86 10442 ;;
cannam@86 10443 esac
cannam@86 10444 dynamic_linker='Win32 ld.exe'
cannam@86 10445 ;;
cannam@86 10446
cannam@86 10447 *,cl*)
cannam@86 10448 # Native MSVC
cannam@86 10449 libname_spec='$name'
cannam@86 10450 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@86 10451 library_names_spec='${libname}.dll.lib'
cannam@86 10452
cannam@86 10453 case $build_os in
cannam@86 10454 mingw*)
cannam@86 10455 sys_lib_search_path_spec=
cannam@86 10456 lt_save_ifs=$IFS
cannam@86 10457 IFS=';'
cannam@86 10458 for lt_path in $LIB
cannam@86 10459 do
cannam@86 10460 IFS=$lt_save_ifs
cannam@86 10461 # Let DOS variable expansion print the short 8.3 style file name.
cannam@86 10462 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
cannam@86 10463 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
cannam@86 10464 done
cannam@86 10465 IFS=$lt_save_ifs
cannam@86 10466 # Convert to MSYS style.
cannam@86 10467 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@86 10468 ;;
cannam@86 10469 cygwin*)
cannam@86 10470 # Convert to unix form, then to dos form, then back to unix form
cannam@86 10471 # but this time dos style (no spaces!) so that the unix form looks
cannam@86 10472 # like /cygdrive/c/PROGRA~1:/cygdr...
cannam@86 10473 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
cannam@86 10474 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
cannam@86 10475 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@86 10476 ;;
cannam@86 10477 *)
cannam@86 10478 sys_lib_search_path_spec="$LIB"
cannam@86 10479 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
cannam@86 10480 # It is most probably a Windows format PATH.
cannam@86 10481 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@86 10482 else
cannam@86 10483 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@86 10484 fi
cannam@86 10485 # FIXME: find the short name or the path components, as spaces are
cannam@86 10486 # common. (e.g. "Program Files" -> "PROGRA~1")
cannam@86 10487 ;;
cannam@86 10488 esac
cannam@86 10489
cannam@86 10490 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@86 10491 postinstall_cmds='base_file=`basename \${file}`~
cannam@86 10492 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
cannam@86 10493 dldir=$destdir/`dirname \$dlpath`~
cannam@86 10494 test -d \$dldir || mkdir -p \$dldir~
cannam@86 10495 $install_prog $dir/$dlname \$dldir/$dlname'
cannam@86 10496 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@86 10497 dlpath=$dir/\$dldll~
cannam@86 10498 $RM \$dlpath'
cannam@86 10499 shlibpath_overrides_runpath=yes
cannam@86 10500 dynamic_linker='Win32 link.exe'
cannam@86 10501 ;;
cannam@86 10502
cannam@86 10503 *)
cannam@86 10504 # Assume MSVC wrapper
cannam@86 10505 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cannam@86 10506 dynamic_linker='Win32 ld.exe'
cannam@86 10507 ;;
cannam@86 10508 esac
cannam@86 10509 # FIXME: first we should search . and the directory the executable is in
cannam@86 10510 shlibpath_var=PATH
cannam@86 10511 ;;
cannam@86 10512
cannam@86 10513 darwin* | rhapsody*)
cannam@86 10514 dynamic_linker="$host_os dyld"
cannam@86 10515 version_type=darwin
cannam@86 10516 need_lib_prefix=no
cannam@86 10517 need_version=no
cannam@86 10518 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
cannam@86 10519 soname_spec='${libname}${release}${major}$shared_ext'
cannam@86 10520 shlibpath_overrides_runpath=yes
cannam@86 10521 shlibpath_var=DYLD_LIBRARY_PATH
cannam@86 10522 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
cannam@86 10523
cannam@86 10524 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
cannam@86 10525 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
cannam@86 10526 ;;
cannam@86 10527
cannam@86 10528 dgux*)
cannam@86 10529 version_type=linux
cannam@86 10530 need_lib_prefix=no
cannam@86 10531 need_version=no
cannam@86 10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
cannam@86 10533 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10534 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10535 ;;
cannam@86 10536
cannam@86 10537 freebsd1*)
cannam@86 10538 dynamic_linker=no
cannam@86 10539 ;;
cannam@86 10540
cannam@86 10541 freebsd* | dragonfly*)
cannam@86 10542 # DragonFly does not have aout. When/if they implement a new
cannam@86 10543 # versioning mechanism, adjust this.
cannam@86 10544 if test -x /usr/bin/objformat; then
cannam@86 10545 objformat=`/usr/bin/objformat`
cannam@86 10546 else
cannam@86 10547 case $host_os in
cannam@86 10548 freebsd[123]*) objformat=aout ;;
cannam@86 10549 *) objformat=elf ;;
cannam@86 10550 esac
cannam@86 10551 fi
cannam@86 10552 version_type=freebsd-$objformat
cannam@86 10553 case $version_type in
cannam@86 10554 freebsd-elf*)
cannam@86 10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@86 10556 need_version=no
cannam@86 10557 need_lib_prefix=no
cannam@86 10558 ;;
cannam@86 10559 freebsd-*)
cannam@86 10560 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
cannam@86 10561 need_version=yes
cannam@86 10562 ;;
cannam@86 10563 esac
cannam@86 10564 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10565 case $host_os in
cannam@86 10566 freebsd2*)
cannam@86 10567 shlibpath_overrides_runpath=yes
cannam@86 10568 ;;
cannam@86 10569 freebsd3.[01]* | freebsdelf3.[01]*)
cannam@86 10570 shlibpath_overrides_runpath=yes
cannam@86 10571 hardcode_into_libs=yes
cannam@86 10572 ;;
cannam@86 10573 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
cannam@86 10574 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
cannam@86 10575 shlibpath_overrides_runpath=no
cannam@86 10576 hardcode_into_libs=yes
cannam@86 10577 ;;
cannam@86 10578 *) # from 4.6 on, and DragonFly
cannam@86 10579 shlibpath_overrides_runpath=yes
cannam@86 10580 hardcode_into_libs=yes
cannam@86 10581 ;;
cannam@86 10582 esac
cannam@86 10583 ;;
cannam@86 10584
cannam@86 10585 gnu*)
cannam@86 10586 version_type=linux
cannam@86 10587 need_lib_prefix=no
cannam@86 10588 need_version=no
cannam@86 10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
cannam@86 10590 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10591 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10592 shlibpath_overrides_runpath=no
cannam@86 10593 hardcode_into_libs=yes
cannam@86 10594 ;;
cannam@86 10595
cannam@86 10596 haiku*)
cannam@86 10597 version_type=linux
cannam@86 10598 need_lib_prefix=no
cannam@86 10599 need_version=no
cannam@86 10600 dynamic_linker="$host_os runtime_loader"
cannam@86 10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
cannam@86 10602 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10603 shlibpath_var=LIBRARY_PATH
cannam@86 10604 shlibpath_overrides_runpath=yes
cannam@86 10605 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
cannam@86 10606 hardcode_into_libs=yes
cannam@86 10607 ;;
cannam@86 10608
cannam@86 10609 hpux9* | hpux10* | hpux11*)
cannam@86 10610 # Give a soname corresponding to the major version so that dld.sl refuses to
cannam@86 10611 # link against other versions.
cannam@86 10612 version_type=sunos
cannam@86 10613 need_lib_prefix=no
cannam@86 10614 need_version=no
cannam@86 10615 case $host_cpu in
cannam@86 10616 ia64*)
cannam@86 10617 shrext_cmds='.so'
cannam@86 10618 hardcode_into_libs=yes
cannam@86 10619 dynamic_linker="$host_os dld.so"
cannam@86 10620 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@86 10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10623 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10624 if test "X$HPUX_IA64_MODE" = X32; then
cannam@86 10625 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
cannam@86 10626 else
cannam@86 10627 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
cannam@86 10628 fi
cannam@86 10629 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@86 10630 ;;
cannam@86 10631 hppa*64*)
cannam@86 10632 shrext_cmds='.sl'
cannam@86 10633 hardcode_into_libs=yes
cannam@86 10634 dynamic_linker="$host_os dld.sl"
cannam@86 10635 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
cannam@86 10636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@86 10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10638 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10639 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
cannam@86 10640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@86 10641 ;;
cannam@86 10642 *)
cannam@86 10643 shrext_cmds='.sl'
cannam@86 10644 dynamic_linker="$host_os dld.sl"
cannam@86 10645 shlibpath_var=SHLIB_PATH
cannam@86 10646 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
cannam@86 10647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10648 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10649 ;;
cannam@86 10650 esac
cannam@86 10651 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cannam@86 10652 postinstall_cmds='chmod 555 $lib'
cannam@86 10653 # or fails outright, so override atomically:
cannam@86 10654 install_override_mode=555
cannam@86 10655 ;;
cannam@86 10656
cannam@86 10657 interix[3-9]*)
cannam@86 10658 version_type=linux
cannam@86 10659 need_lib_prefix=no
cannam@86 10660 need_version=no
cannam@86 10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@86 10662 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10663 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
cannam@86 10664 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10665 shlibpath_overrides_runpath=no
cannam@86 10666 hardcode_into_libs=yes
cannam@86 10667 ;;
cannam@86 10668
cannam@86 10669 irix5* | irix6* | nonstopux*)
cannam@86 10670 case $host_os in
cannam@86 10671 nonstopux*) version_type=nonstopux ;;
cannam@86 10672 *)
cannam@86 10673 if test "$lt_cv_prog_gnu_ld" = yes; then
cannam@86 10674 version_type=linux
cannam@86 10675 else
cannam@86 10676 version_type=irix
cannam@86 10677 fi ;;
cannam@86 10678 esac
cannam@86 10679 need_lib_prefix=no
cannam@86 10680 need_version=no
cannam@86 10681 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@86 10683 case $host_os in
cannam@86 10684 irix5* | nonstopux*)
cannam@86 10685 libsuff= shlibsuff=
cannam@86 10686 ;;
cannam@86 10687 *)
cannam@86 10688 case $LD in # libtool.m4 will add one of these switches to LD
cannam@86 10689 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
cannam@86 10690 libsuff= shlibsuff= libmagic=32-bit;;
cannam@86 10691 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
cannam@86 10692 libsuff=32 shlibsuff=N32 libmagic=N32;;
cannam@86 10693 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
cannam@86 10694 libsuff=64 shlibsuff=64 libmagic=64-bit;;
cannam@86 10695 *) libsuff= shlibsuff= libmagic=never-match;;
cannam@86 10696 esac
cannam@86 10697 ;;
cannam@86 10698 esac
cannam@86 10699 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
cannam@86 10700 shlibpath_overrides_runpath=no
cannam@86 10701 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
cannam@86 10702 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
cannam@86 10703 hardcode_into_libs=yes
cannam@86 10704 ;;
cannam@86 10705
cannam@86 10706 # No shared lib support for Linux oldld, aout, or coff.
cannam@86 10707 linux*oldld* | linux*aout* | linux*coff*)
cannam@86 10708 dynamic_linker=no
cannam@86 10709 ;;
cannam@86 10710
cannam@86 10711 # This must be Linux ELF.
cannam@86 10712 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cannam@86 10713 version_type=linux
cannam@86 10714 need_lib_prefix=no
cannam@86 10715 need_version=no
cannam@86 10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10717 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
cannam@86 10719 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10720 shlibpath_overrides_runpath=no
cannam@86 10721
cannam@86 10722 # Some binutils ld are patched to set DT_RUNPATH
cannam@86 10723 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cannam@86 10724 $as_echo_n "(cached) " >&6
cannam@86 10725 else
cannam@86 10726 lt_cv_shlibpath_overrides_runpath=no
cannam@86 10727 save_LDFLAGS=$LDFLAGS
cannam@86 10728 save_libdir=$libdir
cannam@86 10729 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
cannam@86 10730 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
cannam@86 10731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 10732 /* end confdefs.h. */
cannam@86 10733
cannam@86 10734 int
cannam@86 10735 main ()
cannam@86 10736 {
cannam@86 10737
cannam@86 10738 ;
cannam@86 10739 return 0;
cannam@86 10740 }
cannam@86 10741 _ACEOF
cannam@86 10742 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 10743 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cannam@86 10744 lt_cv_shlibpath_overrides_runpath=yes
cannam@86 10745 fi
cannam@86 10746 fi
cannam@86 10747 rm -f core conftest.err conftest.$ac_objext \
cannam@86 10748 conftest$ac_exeext conftest.$ac_ext
cannam@86 10749 LDFLAGS=$save_LDFLAGS
cannam@86 10750 libdir=$save_libdir
cannam@86 10751
cannam@86 10752 fi
cannam@86 10753
cannam@86 10754 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cannam@86 10755
cannam@86 10756 # This implies no fast_install, which is unacceptable.
cannam@86 10757 # Some rework will be needed to allow for fast_install
cannam@86 10758 # before this can be enabled.
cannam@86 10759 hardcode_into_libs=yes
cannam@86 10760
cannam@86 10761 # Append ld.so.conf contents to the search path
cannam@86 10762 if test -f /etc/ld.so.conf; then
cannam@86 10763 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@86 10764 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
cannam@86 10765 fi
cannam@86 10766
cannam@86 10767 # We used to test for /lib/ld.so.1 and disable shared libraries on
cannam@86 10768 # powerpc, because MkLinux only supported shared libraries with the
cannam@86 10769 # GNU dynamic linker. Since this was broken with cross compilers,
cannam@86 10770 # most powerpc-linux boxes support dynamic linking these days and
cannam@86 10771 # people can always --disable-shared, the test was removed, and we
cannam@86 10772 # assume the GNU/Linux dynamic linker is in use.
cannam@86 10773 dynamic_linker='GNU/Linux ld.so'
cannam@86 10774 ;;
cannam@86 10775
cannam@86 10776 netbsdelf*-gnu)
cannam@86 10777 version_type=linux
cannam@86 10778 need_lib_prefix=no
cannam@86 10779 need_version=no
cannam@86 10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@86 10781 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10782 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10783 shlibpath_overrides_runpath=no
cannam@86 10784 hardcode_into_libs=yes
cannam@86 10785 dynamic_linker='NetBSD ld.elf_so'
cannam@86 10786 ;;
cannam@86 10787
cannam@86 10788 netbsd*)
cannam@86 10789 version_type=sunos
cannam@86 10790 need_lib_prefix=no
cannam@86 10791 need_version=no
cannam@86 10792 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@86 10793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@86 10794 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@86 10795 dynamic_linker='NetBSD (a.out) ld.so'
cannam@86 10796 else
cannam@86 10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@86 10798 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10799 dynamic_linker='NetBSD ld.elf_so'
cannam@86 10800 fi
cannam@86 10801 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10802 shlibpath_overrides_runpath=yes
cannam@86 10803 hardcode_into_libs=yes
cannam@86 10804 ;;
cannam@86 10805
cannam@86 10806 newsos6)
cannam@86 10807 version_type=linux
cannam@86 10808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10809 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10810 shlibpath_overrides_runpath=yes
cannam@86 10811 ;;
cannam@86 10812
cannam@86 10813 *nto* | *qnx*)
cannam@86 10814 version_type=qnx
cannam@86 10815 need_lib_prefix=no
cannam@86 10816 need_version=no
cannam@86 10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10818 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10819 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10820 shlibpath_overrides_runpath=no
cannam@86 10821 hardcode_into_libs=yes
cannam@86 10822 dynamic_linker='ldqnx.so'
cannam@86 10823 ;;
cannam@86 10824
cannam@86 10825 openbsd*)
cannam@86 10826 version_type=sunos
cannam@86 10827 sys_lib_dlsearch_path_spec="/usr/lib"
cannam@86 10828 need_lib_prefix=no
cannam@86 10829 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
cannam@86 10830 case $host_os in
cannam@86 10831 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
cannam@86 10832 *) need_version=no ;;
cannam@86 10833 esac
cannam@86 10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@86 10835 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@86 10836 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10837 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@86 10838 case $host_os in
cannam@86 10839 openbsd2.[89] | openbsd2.[89].*)
cannam@86 10840 shlibpath_overrides_runpath=no
cannam@86 10841 ;;
cannam@86 10842 *)
cannam@86 10843 shlibpath_overrides_runpath=yes
cannam@86 10844 ;;
cannam@86 10845 esac
cannam@86 10846 else
cannam@86 10847 shlibpath_overrides_runpath=yes
cannam@86 10848 fi
cannam@86 10849 ;;
cannam@86 10850
cannam@86 10851 os2*)
cannam@86 10852 libname_spec='$name'
cannam@86 10853 shrext_cmds=".dll"
cannam@86 10854 need_lib_prefix=no
cannam@86 10855 library_names_spec='$libname${shared_ext} $libname.a'
cannam@86 10856 dynamic_linker='OS/2 ld.exe'
cannam@86 10857 shlibpath_var=LIBPATH
cannam@86 10858 ;;
cannam@86 10859
cannam@86 10860 osf3* | osf4* | osf5*)
cannam@86 10861 version_type=osf
cannam@86 10862 need_lib_prefix=no
cannam@86 10863 need_version=no
cannam@86 10864 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10866 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10867 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
cannam@86 10868 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
cannam@86 10869 ;;
cannam@86 10870
cannam@86 10871 rdos*)
cannam@86 10872 dynamic_linker=no
cannam@86 10873 ;;
cannam@86 10874
cannam@86 10875 solaris*)
cannam@86 10876 version_type=linux
cannam@86 10877 need_lib_prefix=no
cannam@86 10878 need_version=no
cannam@86 10879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10880 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10881 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10882 shlibpath_overrides_runpath=yes
cannam@86 10883 hardcode_into_libs=yes
cannam@86 10884 # ldd complains unless libraries are executable
cannam@86 10885 postinstall_cmds='chmod +x $lib'
cannam@86 10886 ;;
cannam@86 10887
cannam@86 10888 sunos4*)
cannam@86 10889 version_type=sunos
cannam@86 10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@86 10891 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
cannam@86 10892 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10893 shlibpath_overrides_runpath=yes
cannam@86 10894 if test "$with_gnu_ld" = yes; then
cannam@86 10895 need_lib_prefix=no
cannam@86 10896 fi
cannam@86 10897 need_version=yes
cannam@86 10898 ;;
cannam@86 10899
cannam@86 10900 sysv4 | sysv4.3*)
cannam@86 10901 version_type=linux
cannam@86 10902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10903 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10904 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10905 case $host_vendor in
cannam@86 10906 sni)
cannam@86 10907 shlibpath_overrides_runpath=no
cannam@86 10908 need_lib_prefix=no
cannam@86 10909 runpath_var=LD_RUN_PATH
cannam@86 10910 ;;
cannam@86 10911 siemens)
cannam@86 10912 need_lib_prefix=no
cannam@86 10913 ;;
cannam@86 10914 motorola)
cannam@86 10915 need_lib_prefix=no
cannam@86 10916 need_version=no
cannam@86 10917 shlibpath_overrides_runpath=no
cannam@86 10918 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
cannam@86 10919 ;;
cannam@86 10920 esac
cannam@86 10921 ;;
cannam@86 10922
cannam@86 10923 sysv4*MP*)
cannam@86 10924 if test -d /usr/nec ;then
cannam@86 10925 version_type=linux
cannam@86 10926 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
cannam@86 10927 soname_spec='$libname${shared_ext}.$major'
cannam@86 10928 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10929 fi
cannam@86 10930 ;;
cannam@86 10931
cannam@86 10932 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
cannam@86 10933 version_type=freebsd-elf
cannam@86 10934 need_lib_prefix=no
cannam@86 10935 need_version=no
cannam@86 10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@86 10937 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10938 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10939 shlibpath_overrides_runpath=yes
cannam@86 10940 hardcode_into_libs=yes
cannam@86 10941 if test "$with_gnu_ld" = yes; then
cannam@86 10942 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
cannam@86 10943 else
cannam@86 10944 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
cannam@86 10945 case $host_os in
cannam@86 10946 sco3.2v5*)
cannam@86 10947 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
cannam@86 10948 ;;
cannam@86 10949 esac
cannam@86 10950 fi
cannam@86 10951 sys_lib_dlsearch_path_spec='/usr/lib'
cannam@86 10952 ;;
cannam@86 10953
cannam@86 10954 tpf*)
cannam@86 10955 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cannam@86 10956 version_type=linux
cannam@86 10957 need_lib_prefix=no
cannam@86 10958 need_version=no
cannam@86 10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10960 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10961 shlibpath_overrides_runpath=no
cannam@86 10962 hardcode_into_libs=yes
cannam@86 10963 ;;
cannam@86 10964
cannam@86 10965 uts4*)
cannam@86 10966 version_type=linux
cannam@86 10967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10968 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10969 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10970 ;;
cannam@86 10971
cannam@86 10972 *)
cannam@86 10973 dynamic_linker=no
cannam@86 10974 ;;
cannam@86 10975 esac
cannam@86 10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cannam@86 10977 $as_echo "$dynamic_linker" >&6; }
cannam@86 10978 test "$dynamic_linker" = no && can_build_shared=no
cannam@86 10979
cannam@86 10980 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
cannam@86 10981 if test "$GCC" = yes; then
cannam@86 10982 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
cannam@86 10983 fi
cannam@86 10984
cannam@86 10985 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
cannam@86 10986 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
cannam@86 10987 fi
cannam@86 10988 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
cannam@86 10989 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
cannam@86 10990 fi
cannam@86 10991
cannam@86 10992
cannam@86 10993
cannam@86 10994
cannam@86 10995
cannam@86 10996
cannam@86 10997
cannam@86 10998
cannam@86 10999
cannam@86 11000
cannam@86 11001
cannam@86 11002
cannam@86 11003
cannam@86 11004
cannam@86 11005
cannam@86 11006
cannam@86 11007
cannam@86 11008
cannam@86 11009
cannam@86 11010
cannam@86 11011
cannam@86 11012
cannam@86 11013
cannam@86 11014
cannam@86 11015
cannam@86 11016
cannam@86 11017
cannam@86 11018
cannam@86 11019
cannam@86 11020
cannam@86 11021
cannam@86 11022
cannam@86 11023
cannam@86 11024
cannam@86 11025
cannam@86 11026
cannam@86 11027
cannam@86 11028
cannam@86 11029
cannam@86 11030
cannam@86 11031
cannam@86 11032
cannam@86 11033
cannam@86 11034
cannam@86 11035
cannam@86 11036
cannam@86 11037
cannam@86 11038
cannam@86 11039
cannam@86 11040
cannam@86 11041
cannam@86 11042
cannam@86 11043
cannam@86 11044
cannam@86 11045
cannam@86 11046
cannam@86 11047
cannam@86 11048
cannam@86 11049
cannam@86 11050
cannam@86 11051
cannam@86 11052
cannam@86 11053
cannam@86 11054
cannam@86 11055
cannam@86 11056
cannam@86 11057
cannam@86 11058
cannam@86 11059
cannam@86 11060
cannam@86 11061
cannam@86 11062
cannam@86 11063
cannam@86 11064
cannam@86 11065
cannam@86 11066
cannam@86 11067
cannam@86 11068
cannam@86 11069
cannam@86 11070
cannam@86 11071
cannam@86 11072
cannam@86 11073
cannam@86 11074
cannam@86 11075
cannam@86 11076
cannam@86 11077
cannam@86 11078
cannam@86 11079
cannam@86 11080
cannam@86 11081
cannam@86 11082
cannam@86 11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cannam@86 11084 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
cannam@86 11085 hardcode_action=
cannam@86 11086 if test -n "$hardcode_libdir_flag_spec" ||
cannam@86 11087 test -n "$runpath_var" ||
cannam@86 11088 test "X$hardcode_automatic" = "Xyes" ; then
cannam@86 11089
cannam@86 11090 # We can hardcode non-existent directories.
cannam@86 11091 if test "$hardcode_direct" != no &&
cannam@86 11092 # If the only mechanism to avoid hardcoding is shlibpath_var, we
cannam@86 11093 # have to relink, otherwise we might link with an installed library
cannam@86 11094 # when we should be linking with a yet-to-be-installed one
cannam@86 11095 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
cannam@86 11096 test "$hardcode_minus_L" != no; then
cannam@86 11097 # Linking always hardcodes the temporary library directory.
cannam@86 11098 hardcode_action=relink
cannam@86 11099 else
cannam@86 11100 # We can link without hardcoding, and we can hardcode nonexisting dirs.
cannam@86 11101 hardcode_action=immediate
cannam@86 11102 fi
cannam@86 11103 else
cannam@86 11104 # We cannot hardcode anything, or else we can only hardcode existing
cannam@86 11105 # directories.
cannam@86 11106 hardcode_action=unsupported
cannam@86 11107 fi
cannam@86 11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cannam@86 11109 $as_echo "$hardcode_action" >&6; }
cannam@86 11110
cannam@86 11111 if test "$hardcode_action" = relink ||
cannam@86 11112 test "$inherit_rpath" = yes; then
cannam@86 11113 # Fast installation is not supported
cannam@86 11114 enable_fast_install=no
cannam@86 11115 elif test "$shlibpath_overrides_runpath" = yes ||
cannam@86 11116 test "$enable_shared" = no; then
cannam@86 11117 # Fast installation is not necessary
cannam@86 11118 enable_fast_install=needless
cannam@86 11119 fi
cannam@86 11120
cannam@86 11121
cannam@86 11122
cannam@86 11123
cannam@86 11124
cannam@86 11125
cannam@86 11126 if test "x$enable_dlopen" != xyes; then
cannam@86 11127 enable_dlopen=unknown
cannam@86 11128 enable_dlopen_self=unknown
cannam@86 11129 enable_dlopen_self_static=unknown
cannam@86 11130 else
cannam@86 11131 lt_cv_dlopen=no
cannam@86 11132 lt_cv_dlopen_libs=
cannam@86 11133
cannam@86 11134 case $host_os in
cannam@86 11135 beos*)
cannam@86 11136 lt_cv_dlopen="load_add_on"
cannam@86 11137 lt_cv_dlopen_libs=
cannam@86 11138 lt_cv_dlopen_self=yes
cannam@86 11139 ;;
cannam@86 11140
cannam@86 11141 mingw* | pw32* | cegcc*)
cannam@86 11142 lt_cv_dlopen="LoadLibrary"
cannam@86 11143 lt_cv_dlopen_libs=
cannam@86 11144 ;;
cannam@86 11145
cannam@86 11146 cygwin*)
cannam@86 11147 lt_cv_dlopen="dlopen"
cannam@86 11148 lt_cv_dlopen_libs=
cannam@86 11149 ;;
cannam@86 11150
cannam@86 11151 darwin*)
cannam@86 11152 # if libdl is installed we need to link against it
cannam@86 11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cannam@86 11154 $as_echo_n "checking for dlopen in -ldl... " >&6; }
cannam@86 11155 if ${ac_cv_lib_dl_dlopen+:} false; then :
cannam@86 11156 $as_echo_n "(cached) " >&6
cannam@86 11157 else
cannam@86 11158 ac_check_lib_save_LIBS=$LIBS
cannam@86 11159 LIBS="-ldl $LIBS"
cannam@86 11160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 11161 /* end confdefs.h. */
cannam@86 11162
cannam@86 11163 /* Override any GCC internal prototype to avoid an error.
cannam@86 11164 Use char because int might match the return type of a GCC
cannam@86 11165 builtin and then its argument prototype would still apply. */
cannam@86 11166 #ifdef __cplusplus
cannam@86 11167 extern "C"
cannam@86 11168 #endif
cannam@86 11169 char dlopen ();
cannam@86 11170 int
cannam@86 11171 main ()
cannam@86 11172 {
cannam@86 11173 return dlopen ();
cannam@86 11174 ;
cannam@86 11175 return 0;
cannam@86 11176 }
cannam@86 11177 _ACEOF
cannam@86 11178 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 11179 ac_cv_lib_dl_dlopen=yes
cannam@86 11180 else
cannam@86 11181 ac_cv_lib_dl_dlopen=no
cannam@86 11182 fi
cannam@86 11183 rm -f core conftest.err conftest.$ac_objext \
cannam@86 11184 conftest$ac_exeext conftest.$ac_ext
cannam@86 11185 LIBS=$ac_check_lib_save_LIBS
cannam@86 11186 fi
cannam@86 11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cannam@86 11188 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cannam@86 11189 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cannam@86 11190 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
cannam@86 11191 else
cannam@86 11192
cannam@86 11193 lt_cv_dlopen="dyld"
cannam@86 11194 lt_cv_dlopen_libs=
cannam@86 11195 lt_cv_dlopen_self=yes
cannam@86 11196
cannam@86 11197 fi
cannam@86 11198
cannam@86 11199 ;;
cannam@86 11200
cannam@86 11201 *)
cannam@86 11202 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cannam@86 11203 if test "x$ac_cv_func_shl_load" = xyes; then :
cannam@86 11204 lt_cv_dlopen="shl_load"
cannam@86 11205 else
cannam@86 11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cannam@86 11207 $as_echo_n "checking for shl_load in -ldld... " >&6; }
cannam@86 11208 if ${ac_cv_lib_dld_shl_load+:} false; then :
cannam@86 11209 $as_echo_n "(cached) " >&6
cannam@86 11210 else
cannam@86 11211 ac_check_lib_save_LIBS=$LIBS
cannam@86 11212 LIBS="-ldld $LIBS"
cannam@86 11213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 11214 /* end confdefs.h. */
cannam@86 11215
cannam@86 11216 /* Override any GCC internal prototype to avoid an error.
cannam@86 11217 Use char because int might match the return type of a GCC
cannam@86 11218 builtin and then its argument prototype would still apply. */
cannam@86 11219 #ifdef __cplusplus
cannam@86 11220 extern "C"
cannam@86 11221 #endif
cannam@86 11222 char shl_load ();
cannam@86 11223 int
cannam@86 11224 main ()
cannam@86 11225 {
cannam@86 11226 return shl_load ();
cannam@86 11227 ;
cannam@86 11228 return 0;
cannam@86 11229 }
cannam@86 11230 _ACEOF
cannam@86 11231 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 11232 ac_cv_lib_dld_shl_load=yes
cannam@86 11233 else
cannam@86 11234 ac_cv_lib_dld_shl_load=no
cannam@86 11235 fi
cannam@86 11236 rm -f core conftest.err conftest.$ac_objext \
cannam@86 11237 conftest$ac_exeext conftest.$ac_ext
cannam@86 11238 LIBS=$ac_check_lib_save_LIBS
cannam@86 11239 fi
cannam@86 11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cannam@86 11241 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cannam@86 11242 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cannam@86 11243 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
cannam@86 11244 else
cannam@86 11245 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cannam@86 11246 if test "x$ac_cv_func_dlopen" = xyes; then :
cannam@86 11247 lt_cv_dlopen="dlopen"
cannam@86 11248 else
cannam@86 11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cannam@86 11250 $as_echo_n "checking for dlopen in -ldl... " >&6; }
cannam@86 11251 if ${ac_cv_lib_dl_dlopen+:} false; then :
cannam@86 11252 $as_echo_n "(cached) " >&6
cannam@86 11253 else
cannam@86 11254 ac_check_lib_save_LIBS=$LIBS
cannam@86 11255 LIBS="-ldl $LIBS"
cannam@86 11256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 11257 /* end confdefs.h. */
cannam@86 11258
cannam@86 11259 /* Override any GCC internal prototype to avoid an error.
cannam@86 11260 Use char because int might match the return type of a GCC
cannam@86 11261 builtin and then its argument prototype would still apply. */
cannam@86 11262 #ifdef __cplusplus
cannam@86 11263 extern "C"
cannam@86 11264 #endif
cannam@86 11265 char dlopen ();
cannam@86 11266 int
cannam@86 11267 main ()
cannam@86 11268 {
cannam@86 11269 return dlopen ();
cannam@86 11270 ;
cannam@86 11271 return 0;
cannam@86 11272 }
cannam@86 11273 _ACEOF
cannam@86 11274 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 11275 ac_cv_lib_dl_dlopen=yes
cannam@86 11276 else
cannam@86 11277 ac_cv_lib_dl_dlopen=no
cannam@86 11278 fi
cannam@86 11279 rm -f core conftest.err conftest.$ac_objext \
cannam@86 11280 conftest$ac_exeext conftest.$ac_ext
cannam@86 11281 LIBS=$ac_check_lib_save_LIBS
cannam@86 11282 fi
cannam@86 11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cannam@86 11284 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cannam@86 11285 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cannam@86 11286 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
cannam@86 11287 else
cannam@86 11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cannam@86 11289 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
cannam@86 11290 if ${ac_cv_lib_svld_dlopen+:} false; then :
cannam@86 11291 $as_echo_n "(cached) " >&6
cannam@86 11292 else
cannam@86 11293 ac_check_lib_save_LIBS=$LIBS
cannam@86 11294 LIBS="-lsvld $LIBS"
cannam@86 11295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 11296 /* end confdefs.h. */
cannam@86 11297
cannam@86 11298 /* Override any GCC internal prototype to avoid an error.
cannam@86 11299 Use char because int might match the return type of a GCC
cannam@86 11300 builtin and then its argument prototype would still apply. */
cannam@86 11301 #ifdef __cplusplus
cannam@86 11302 extern "C"
cannam@86 11303 #endif
cannam@86 11304 char dlopen ();
cannam@86 11305 int
cannam@86 11306 main ()
cannam@86 11307 {
cannam@86 11308 return dlopen ();
cannam@86 11309 ;
cannam@86 11310 return 0;
cannam@86 11311 }
cannam@86 11312 _ACEOF
cannam@86 11313 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 11314 ac_cv_lib_svld_dlopen=yes
cannam@86 11315 else
cannam@86 11316 ac_cv_lib_svld_dlopen=no
cannam@86 11317 fi
cannam@86 11318 rm -f core conftest.err conftest.$ac_objext \
cannam@86 11319 conftest$ac_exeext conftest.$ac_ext
cannam@86 11320 LIBS=$ac_check_lib_save_LIBS
cannam@86 11321 fi
cannam@86 11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cannam@86 11323 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cannam@86 11324 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cannam@86 11325 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
cannam@86 11326 else
cannam@86 11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cannam@86 11328 $as_echo_n "checking for dld_link in -ldld... " >&6; }
cannam@86 11329 if ${ac_cv_lib_dld_dld_link+:} false; then :
cannam@86 11330 $as_echo_n "(cached) " >&6
cannam@86 11331 else
cannam@86 11332 ac_check_lib_save_LIBS=$LIBS
cannam@86 11333 LIBS="-ldld $LIBS"
cannam@86 11334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 11335 /* end confdefs.h. */
cannam@86 11336
cannam@86 11337 /* Override any GCC internal prototype to avoid an error.
cannam@86 11338 Use char because int might match the return type of a GCC
cannam@86 11339 builtin and then its argument prototype would still apply. */
cannam@86 11340 #ifdef __cplusplus
cannam@86 11341 extern "C"
cannam@86 11342 #endif
cannam@86 11343 char dld_link ();
cannam@86 11344 int
cannam@86 11345 main ()
cannam@86 11346 {
cannam@86 11347 return dld_link ();
cannam@86 11348 ;
cannam@86 11349 return 0;
cannam@86 11350 }
cannam@86 11351 _ACEOF
cannam@86 11352 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 11353 ac_cv_lib_dld_dld_link=yes
cannam@86 11354 else
cannam@86 11355 ac_cv_lib_dld_dld_link=no
cannam@86 11356 fi
cannam@86 11357 rm -f core conftest.err conftest.$ac_objext \
cannam@86 11358 conftest$ac_exeext conftest.$ac_ext
cannam@86 11359 LIBS=$ac_check_lib_save_LIBS
cannam@86 11360 fi
cannam@86 11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cannam@86 11362 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cannam@86 11363 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cannam@86 11364 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
cannam@86 11365 fi
cannam@86 11366
cannam@86 11367
cannam@86 11368 fi
cannam@86 11369
cannam@86 11370
cannam@86 11371 fi
cannam@86 11372
cannam@86 11373
cannam@86 11374 fi
cannam@86 11375
cannam@86 11376
cannam@86 11377 fi
cannam@86 11378
cannam@86 11379
cannam@86 11380 fi
cannam@86 11381
cannam@86 11382 ;;
cannam@86 11383 esac
cannam@86 11384
cannam@86 11385 if test "x$lt_cv_dlopen" != xno; then
cannam@86 11386 enable_dlopen=yes
cannam@86 11387 else
cannam@86 11388 enable_dlopen=no
cannam@86 11389 fi
cannam@86 11390
cannam@86 11391 case $lt_cv_dlopen in
cannam@86 11392 dlopen)
cannam@86 11393 save_CPPFLAGS="$CPPFLAGS"
cannam@86 11394 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
cannam@86 11395
cannam@86 11396 save_LDFLAGS="$LDFLAGS"
cannam@86 11397 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
cannam@86 11398
cannam@86 11399 save_LIBS="$LIBS"
cannam@86 11400 LIBS="$lt_cv_dlopen_libs $LIBS"
cannam@86 11401
cannam@86 11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cannam@86 11403 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
cannam@86 11404 if ${lt_cv_dlopen_self+:} false; then :
cannam@86 11405 $as_echo_n "(cached) " >&6
cannam@86 11406 else
cannam@86 11407 if test "$cross_compiling" = yes; then :
cannam@86 11408 lt_cv_dlopen_self=cross
cannam@86 11409 else
cannam@86 11410 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@86 11411 lt_status=$lt_dlunknown
cannam@86 11412 cat > conftest.$ac_ext <<_LT_EOF
cannam@86 11413 #line $LINENO "configure"
cannam@86 11414 #include "confdefs.h"
cannam@86 11415
cannam@86 11416 #if HAVE_DLFCN_H
cannam@86 11417 #include <dlfcn.h>
cannam@86 11418 #endif
cannam@86 11419
cannam@86 11420 #include <stdio.h>
cannam@86 11421
cannam@86 11422 #ifdef RTLD_GLOBAL
cannam@86 11423 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@86 11424 #else
cannam@86 11425 # ifdef DL_GLOBAL
cannam@86 11426 # define LT_DLGLOBAL DL_GLOBAL
cannam@86 11427 # else
cannam@86 11428 # define LT_DLGLOBAL 0
cannam@86 11429 # endif
cannam@86 11430 #endif
cannam@86 11431
cannam@86 11432 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@86 11433 find out it does not work in some platform. */
cannam@86 11434 #ifndef LT_DLLAZY_OR_NOW
cannam@86 11435 # ifdef RTLD_LAZY
cannam@86 11436 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@86 11437 # else
cannam@86 11438 # ifdef DL_LAZY
cannam@86 11439 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@86 11440 # else
cannam@86 11441 # ifdef RTLD_NOW
cannam@86 11442 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@86 11443 # else
cannam@86 11444 # ifdef DL_NOW
cannam@86 11445 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@86 11446 # else
cannam@86 11447 # define LT_DLLAZY_OR_NOW 0
cannam@86 11448 # endif
cannam@86 11449 # endif
cannam@86 11450 # endif
cannam@86 11451 # endif
cannam@86 11452 #endif
cannam@86 11453
cannam@86 11454 /* When -fvisbility=hidden is used, assume the code has been annotated
cannam@86 11455 correspondingly for the symbols needed. */
cannam@86 11456 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cannam@86 11457 int fnord () __attribute__((visibility("default")));
cannam@86 11458 #endif
cannam@86 11459
cannam@86 11460 int fnord () { return 42; }
cannam@86 11461 int main ()
cannam@86 11462 {
cannam@86 11463 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@86 11464 int status = $lt_dlunknown;
cannam@86 11465
cannam@86 11466 if (self)
cannam@86 11467 {
cannam@86 11468 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@86 11469 else
cannam@86 11470 {
cannam@86 11471 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@86 11472 else puts (dlerror ());
cannam@86 11473 }
cannam@86 11474 /* dlclose (self); */
cannam@86 11475 }
cannam@86 11476 else
cannam@86 11477 puts (dlerror ());
cannam@86 11478
cannam@86 11479 return status;
cannam@86 11480 }
cannam@86 11481 _LT_EOF
cannam@86 11482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cannam@86 11483 (eval $ac_link) 2>&5
cannam@86 11484 ac_status=$?
cannam@86 11485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 11486 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cannam@86 11487 (./conftest; exit; ) >&5 2>/dev/null
cannam@86 11488 lt_status=$?
cannam@86 11489 case x$lt_status in
cannam@86 11490 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
cannam@86 11491 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
cannam@86 11492 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
cannam@86 11493 esac
cannam@86 11494 else :
cannam@86 11495 # compilation failed
cannam@86 11496 lt_cv_dlopen_self=no
cannam@86 11497 fi
cannam@86 11498 fi
cannam@86 11499 rm -fr conftest*
cannam@86 11500
cannam@86 11501
cannam@86 11502 fi
cannam@86 11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cannam@86 11504 $as_echo "$lt_cv_dlopen_self" >&6; }
cannam@86 11505
cannam@86 11506 if test "x$lt_cv_dlopen_self" = xyes; then
cannam@86 11507 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cannam@86 11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cannam@86 11509 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cannam@86 11510 if ${lt_cv_dlopen_self_static+:} false; then :
cannam@86 11511 $as_echo_n "(cached) " >&6
cannam@86 11512 else
cannam@86 11513 if test "$cross_compiling" = yes; then :
cannam@86 11514 lt_cv_dlopen_self_static=cross
cannam@86 11515 else
cannam@86 11516 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@86 11517 lt_status=$lt_dlunknown
cannam@86 11518 cat > conftest.$ac_ext <<_LT_EOF
cannam@86 11519 #line $LINENO "configure"
cannam@86 11520 #include "confdefs.h"
cannam@86 11521
cannam@86 11522 #if HAVE_DLFCN_H
cannam@86 11523 #include <dlfcn.h>
cannam@86 11524 #endif
cannam@86 11525
cannam@86 11526 #include <stdio.h>
cannam@86 11527
cannam@86 11528 #ifdef RTLD_GLOBAL
cannam@86 11529 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@86 11530 #else
cannam@86 11531 # ifdef DL_GLOBAL
cannam@86 11532 # define LT_DLGLOBAL DL_GLOBAL
cannam@86 11533 # else
cannam@86 11534 # define LT_DLGLOBAL 0
cannam@86 11535 # endif
cannam@86 11536 #endif
cannam@86 11537
cannam@86 11538 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@86 11539 find out it does not work in some platform. */
cannam@86 11540 #ifndef LT_DLLAZY_OR_NOW
cannam@86 11541 # ifdef RTLD_LAZY
cannam@86 11542 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@86 11543 # else
cannam@86 11544 # ifdef DL_LAZY
cannam@86 11545 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@86 11546 # else
cannam@86 11547 # ifdef RTLD_NOW
cannam@86 11548 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@86 11549 # else
cannam@86 11550 # ifdef DL_NOW
cannam@86 11551 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@86 11552 # else
cannam@86 11553 # define LT_DLLAZY_OR_NOW 0
cannam@86 11554 # endif
cannam@86 11555 # endif
cannam@86 11556 # endif
cannam@86 11557 # endif
cannam@86 11558 #endif
cannam@86 11559
cannam@86 11560 /* When -fvisbility=hidden is used, assume the code has been annotated
cannam@86 11561 correspondingly for the symbols needed. */
cannam@86 11562 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cannam@86 11563 int fnord () __attribute__((visibility("default")));
cannam@86 11564 #endif
cannam@86 11565
cannam@86 11566 int fnord () { return 42; }
cannam@86 11567 int main ()
cannam@86 11568 {
cannam@86 11569 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@86 11570 int status = $lt_dlunknown;
cannam@86 11571
cannam@86 11572 if (self)
cannam@86 11573 {
cannam@86 11574 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@86 11575 else
cannam@86 11576 {
cannam@86 11577 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@86 11578 else puts (dlerror ());
cannam@86 11579 }
cannam@86 11580 /* dlclose (self); */
cannam@86 11581 }
cannam@86 11582 else
cannam@86 11583 puts (dlerror ());
cannam@86 11584
cannam@86 11585 return status;
cannam@86 11586 }
cannam@86 11587 _LT_EOF
cannam@86 11588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cannam@86 11589 (eval $ac_link) 2>&5
cannam@86 11590 ac_status=$?
cannam@86 11591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 11592 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cannam@86 11593 (./conftest; exit; ) >&5 2>/dev/null
cannam@86 11594 lt_status=$?
cannam@86 11595 case x$lt_status in
cannam@86 11596 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@86 11597 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@86 11598 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
cannam@86 11599 esac
cannam@86 11600 else :
cannam@86 11601 # compilation failed
cannam@86 11602 lt_cv_dlopen_self_static=no
cannam@86 11603 fi
cannam@86 11604 fi
cannam@86 11605 rm -fr conftest*
cannam@86 11606
cannam@86 11607
cannam@86 11608 fi
cannam@86 11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cannam@86 11610 $as_echo "$lt_cv_dlopen_self_static" >&6; }
cannam@86 11611 fi
cannam@86 11612
cannam@86 11613 CPPFLAGS="$save_CPPFLAGS"
cannam@86 11614 LDFLAGS="$save_LDFLAGS"
cannam@86 11615 LIBS="$save_LIBS"
cannam@86 11616 ;;
cannam@86 11617 esac
cannam@86 11618
cannam@86 11619 case $lt_cv_dlopen_self in
cannam@86 11620 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
cannam@86 11621 *) enable_dlopen_self=unknown ;;
cannam@86 11622 esac
cannam@86 11623
cannam@86 11624 case $lt_cv_dlopen_self_static in
cannam@86 11625 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
cannam@86 11626 *) enable_dlopen_self_static=unknown ;;
cannam@86 11627 esac
cannam@86 11628 fi
cannam@86 11629
cannam@86 11630
cannam@86 11631
cannam@86 11632
cannam@86 11633
cannam@86 11634
cannam@86 11635
cannam@86 11636
cannam@86 11637
cannam@86 11638
cannam@86 11639
cannam@86 11640
cannam@86 11641
cannam@86 11642
cannam@86 11643
cannam@86 11644
cannam@86 11645
cannam@86 11646 striplib=
cannam@86 11647 old_striplib=
cannam@86 11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cannam@86 11649 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
cannam@86 11650 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
cannam@86 11651 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
cannam@86 11652 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cannam@86 11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@86 11654 $as_echo "yes" >&6; }
cannam@86 11655 else
cannam@86 11656 # FIXME - insert some real tests, host_os isn't really good enough
cannam@86 11657 case $host_os in
cannam@86 11658 darwin*)
cannam@86 11659 if test -n "$STRIP" ; then
cannam@86 11660 striplib="$STRIP -x"
cannam@86 11661 old_striplib="$STRIP -S"
cannam@86 11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@86 11663 $as_echo "yes" >&6; }
cannam@86 11664 else
cannam@86 11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 11666 $as_echo "no" >&6; }
cannam@86 11667 fi
cannam@86 11668 ;;
cannam@86 11669 *)
cannam@86 11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 11671 $as_echo "no" >&6; }
cannam@86 11672 ;;
cannam@86 11673 esac
cannam@86 11674 fi
cannam@86 11675
cannam@86 11676
cannam@86 11677
cannam@86 11678
cannam@86 11679
cannam@86 11680
cannam@86 11681
cannam@86 11682
cannam@86 11683
cannam@86 11684
cannam@86 11685
cannam@86 11686
cannam@86 11687 # Report which library types will actually be built
cannam@86 11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cannam@86 11689 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
cannam@86 11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cannam@86 11691 $as_echo "$can_build_shared" >&6; }
cannam@86 11692
cannam@86 11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cannam@86 11694 $as_echo_n "checking whether to build shared libraries... " >&6; }
cannam@86 11695 test "$can_build_shared" = "no" && enable_shared=no
cannam@86 11696
cannam@86 11697 # On AIX, shared libraries and static libraries use the same namespace, and
cannam@86 11698 # are all built from PIC.
cannam@86 11699 case $host_os in
cannam@86 11700 aix3*)
cannam@86 11701 test "$enable_shared" = yes && enable_static=no
cannam@86 11702 if test -n "$RANLIB"; then
cannam@86 11703 archive_cmds="$archive_cmds~\$RANLIB \$lib"
cannam@86 11704 postinstall_cmds='$RANLIB $lib'
cannam@86 11705 fi
cannam@86 11706 ;;
cannam@86 11707
cannam@86 11708 aix[4-9]*)
cannam@86 11709 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
cannam@86 11710 test "$enable_shared" = yes && enable_static=no
cannam@86 11711 fi
cannam@86 11712 ;;
cannam@86 11713 esac
cannam@86 11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cannam@86 11715 $as_echo "$enable_shared" >&6; }
cannam@86 11716
cannam@86 11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cannam@86 11718 $as_echo_n "checking whether to build static libraries... " >&6; }
cannam@86 11719 # Make sure either enable_shared or enable_static is yes.
cannam@86 11720 test "$enable_shared" = yes || enable_static=yes
cannam@86 11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cannam@86 11722 $as_echo "$enable_static" >&6; }
cannam@86 11723
cannam@86 11724
cannam@86 11725
cannam@86 11726
cannam@86 11727 fi
cannam@86 11728 ac_ext=c
cannam@86 11729 ac_cpp='$CPP $CPPFLAGS'
cannam@86 11730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@86 11731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@86 11732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@86 11733
cannam@86 11734 CC="$lt_save_CC"
cannam@86 11735
cannam@86 11736
cannam@86 11737
cannam@86 11738
cannam@86 11739
cannam@86 11740
cannam@86 11741
cannam@86 11742
cannam@86 11743
cannam@86 11744
cannam@86 11745
cannam@86 11746
cannam@86 11747
cannam@86 11748 ac_config_commands="$ac_config_commands libtool"
cannam@86 11749
cannam@86 11750
cannam@86 11751
cannam@86 11752
cannam@86 11753 # Only expand once:
cannam@86 11754
cannam@86 11755
cannam@86 11756 if test "x$CC" != xcc; then
cannam@86 11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cannam@86 11758 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
cannam@86 11759 else
cannam@86 11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cannam@86 11761 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
cannam@86 11762 fi
cannam@86 11763 set dummy $CC; ac_cc=`$as_echo "$2" |
cannam@86 11764 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cannam@86 11765 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cannam@86 11766 $as_echo_n "(cached) " >&6
cannam@86 11767 else
cannam@86 11768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 11769 /* end confdefs.h. */
cannam@86 11770
cannam@86 11771 int
cannam@86 11772 main ()
cannam@86 11773 {
cannam@86 11774
cannam@86 11775 ;
cannam@86 11776 return 0;
cannam@86 11777 }
cannam@86 11778 _ACEOF
cannam@86 11779 # Make sure it works both with $CC and with simple cc.
cannam@86 11780 # We do the test twice because some compilers refuse to overwrite an
cannam@86 11781 # existing .o file with -o, though they will create one.
cannam@86 11782 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
cannam@86 11783 rm -f conftest2.*
cannam@86 11784 if { { case "(($ac_try" in
cannam@86 11785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 11786 *) ac_try_echo=$ac_try;;
cannam@86 11787 esac
cannam@86 11788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 11789 $as_echo "$ac_try_echo"; } >&5
cannam@86 11790 (eval "$ac_try") 2>&5
cannam@86 11791 ac_status=$?
cannam@86 11792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 11793 test $ac_status = 0; } &&
cannam@86 11794 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cannam@86 11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 11796 *) ac_try_echo=$ac_try;;
cannam@86 11797 esac
cannam@86 11798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 11799 $as_echo "$ac_try_echo"; } >&5
cannam@86 11800 (eval "$ac_try") 2>&5
cannam@86 11801 ac_status=$?
cannam@86 11802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 11803 test $ac_status = 0; };
cannam@86 11804 then
cannam@86 11805 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
cannam@86 11806 if test "x$CC" != xcc; then
cannam@86 11807 # Test first that cc exists at all.
cannam@86 11808 if { ac_try='cc -c conftest.$ac_ext >&5'
cannam@86 11809 { { case "(($ac_try" in
cannam@86 11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 11811 *) ac_try_echo=$ac_try;;
cannam@86 11812 esac
cannam@86 11813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 11814 $as_echo "$ac_try_echo"; } >&5
cannam@86 11815 (eval "$ac_try") 2>&5
cannam@86 11816 ac_status=$?
cannam@86 11817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 11818 test $ac_status = 0; }; }; then
cannam@86 11819 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
cannam@86 11820 rm -f conftest2.*
cannam@86 11821 if { { case "(($ac_try" in
cannam@86 11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 11823 *) ac_try_echo=$ac_try;;
cannam@86 11824 esac
cannam@86 11825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 11826 $as_echo "$ac_try_echo"; } >&5
cannam@86 11827 (eval "$ac_try") 2>&5
cannam@86 11828 ac_status=$?
cannam@86 11829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 11830 test $ac_status = 0; } &&
cannam@86 11831 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cannam@86 11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 11833 *) ac_try_echo=$ac_try;;
cannam@86 11834 esac
cannam@86 11835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 11836 $as_echo "$ac_try_echo"; } >&5
cannam@86 11837 (eval "$ac_try") 2>&5
cannam@86 11838 ac_status=$?
cannam@86 11839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 11840 test $ac_status = 0; };
cannam@86 11841 then
cannam@86 11842 # cc works too.
cannam@86 11843 :
cannam@86 11844 else
cannam@86 11845 # cc exists but doesn't like -o.
cannam@86 11846 eval ac_cv_prog_cc_${ac_cc}_c_o=no
cannam@86 11847 fi
cannam@86 11848 fi
cannam@86 11849 fi
cannam@86 11850 else
cannam@86 11851 eval ac_cv_prog_cc_${ac_cc}_c_o=no
cannam@86 11852 fi
cannam@86 11853 rm -f core conftest*
cannam@86 11854
cannam@86 11855 fi
cannam@86 11856 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cannam@86 11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@86 11858 $as_echo "yes" >&6; }
cannam@86 11859 else
cannam@86 11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 11861 $as_echo "no" >&6; }
cannam@86 11862
cannam@86 11863 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cannam@86 11864
cannam@86 11865 fi
cannam@86 11866
cannam@86 11867 # FIXME: we rely on the cache variable name because
cannam@86 11868 # there is no other way.
cannam@86 11869 set dummy $CC
cannam@86 11870 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cannam@86 11871 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
cannam@86 11872 if test "$am_t" != yes; then
cannam@86 11873 # Losing compiler, so override with the script.
cannam@86 11874 # FIXME: It is wrong to rewrite CC.
cannam@86 11875 # But if we don't then we get into trouble of one sort or another.
cannam@86 11876 # A longer-term fix would be to have automake use am__CC in this case,
cannam@86 11877 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
cannam@86 11878 CC="$am_aux_dir/compile $CC"
cannam@86 11879 fi
cannam@86 11880
cannam@86 11881
cannam@86 11882
cannam@86 11883 if test "x$enable_docs" = xyes; then
cannam@86 11884 # Extract the first word of "doxygen", so it can be a program name with args.
cannam@86 11885 set dummy doxygen; ac_word=$2
cannam@86 11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 11887 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 11888 if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then :
cannam@86 11889 $as_echo_n "(cached) " >&6
cannam@86 11890 else
cannam@86 11891 if test -n "$HAVE_DOXYGEN"; then
cannam@86 11892 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
cannam@86 11893 else
cannam@86 11894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 11895 for as_dir in $PATH
cannam@86 11896 do
cannam@86 11897 IFS=$as_save_IFS
cannam@86 11898 test -z "$as_dir" && as_dir=.
cannam@86 11899 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 11900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 11901 ac_cv_prog_HAVE_DOXYGEN="true"
cannam@86 11902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 11903 break 2
cannam@86 11904 fi
cannam@86 11905 done
cannam@86 11906 done
cannam@86 11907 IFS=$as_save_IFS
cannam@86 11908
cannam@86 11909 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="false"
cannam@86 11910 fi
cannam@86 11911 fi
cannam@86 11912 HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
cannam@86 11913 if test -n "$HAVE_DOXYGEN"; then
cannam@86 11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
cannam@86 11915 $as_echo "$HAVE_DOXYGEN" >&6; }
cannam@86 11916 else
cannam@86 11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 11918 $as_echo "no" >&6; }
cannam@86 11919 fi
cannam@86 11920
cannam@86 11921
cannam@86 11922 if test $HAVE_DOXYGEN = "false"; then
cannam@86 11923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** doxygen not found, API documentation will not be built" >&5
cannam@86 11924 $as_echo "$as_me: WARNING: *** doxygen not found, API documentation will not be built" >&2;}
cannam@86 11925 fi
cannam@86 11926 else
cannam@86 11927 HAVE_DOXYGEN=false
cannam@86 11928 fi
cannam@86 11929 if $HAVE_DOXYGEN; then
cannam@86 11930 HAVE_DOXYGEN_TRUE=
cannam@86 11931 HAVE_DOXYGEN_FALSE='#'
cannam@86 11932 else
cannam@86 11933 HAVE_DOXYGEN_TRUE='#'
cannam@86 11934 HAVE_DOXYGEN_FALSE=
cannam@86 11935 fi
cannam@86 11936
cannam@86 11937
cannam@86 11938 # Check whether --enable-docs was given.
cannam@86 11939 if test "${enable_docs+set}" = set; then :
cannam@86 11940 enableval=$enable_docs;
cannam@86 11941 fi
cannam@86 11942
cannam@86 11943
cannam@86 11944 if test "x$enable_docs" = xyes; then
cannam@86 11945 for ac_prog in pdflatex
cannam@86 11946 do
cannam@86 11947 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@86 11948 set dummy $ac_prog; ac_word=$2
cannam@86 11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 11950 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 11951 if ${ac_cv_prog_PDFLATEX+:} false; then :
cannam@86 11952 $as_echo_n "(cached) " >&6
cannam@86 11953 else
cannam@86 11954 if test -n "$PDFLATEX"; then
cannam@86 11955 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
cannam@86 11956 else
cannam@86 11957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 11958 for as_dir in $PATH
cannam@86 11959 do
cannam@86 11960 IFS=$as_save_IFS
cannam@86 11961 test -z "$as_dir" && as_dir=.
cannam@86 11962 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 11963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 11964 ac_cv_prog_PDFLATEX="$ac_prog"
cannam@86 11965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 11966 break 2
cannam@86 11967 fi
cannam@86 11968 done
cannam@86 11969 done
cannam@86 11970 IFS=$as_save_IFS
cannam@86 11971
cannam@86 11972 fi
cannam@86 11973 fi
cannam@86 11974 PDFLATEX=$ac_cv_prog_PDFLATEX
cannam@86 11975 if test -n "$PDFLATEX"; then
cannam@86 11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
cannam@86 11977 $as_echo "$PDFLATEX" >&6; }
cannam@86 11978 else
cannam@86 11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 11980 $as_echo "no" >&6; }
cannam@86 11981 fi
cannam@86 11982
cannam@86 11983
cannam@86 11984 test -n "$PDFLATEX" && break
cannam@86 11985 done
cannam@86 11986 test -n "$PDFLATEX" || PDFLATEX="/bin/false"
cannam@86 11987
cannam@86 11988 for ac_prog in htlatex
cannam@86 11989 do
cannam@86 11990 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@86 11991 set dummy $ac_prog; ac_word=$2
cannam@86 11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 11993 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 11994 if ${ac_cv_prog_HTLATEX+:} false; then :
cannam@86 11995 $as_echo_n "(cached) " >&6
cannam@86 11996 else
cannam@86 11997 if test -n "$HTLATEX"; then
cannam@86 11998 ac_cv_prog_HTLATEX="$HTLATEX" # Let the user override the test.
cannam@86 11999 else
cannam@86 12000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 12001 for as_dir in $PATH
cannam@86 12002 do
cannam@86 12003 IFS=$as_save_IFS
cannam@86 12004 test -z "$as_dir" && as_dir=.
cannam@86 12005 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 12006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 12007 ac_cv_prog_HTLATEX="$ac_prog"
cannam@86 12008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 12009 break 2
cannam@86 12010 fi
cannam@86 12011 done
cannam@86 12012 done
cannam@86 12013 IFS=$as_save_IFS
cannam@86 12014
cannam@86 12015 fi
cannam@86 12016 fi
cannam@86 12017 HTLATEX=$ac_cv_prog_HTLATEX
cannam@86 12018 if test -n "$HTLATEX"; then
cannam@86 12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTLATEX" >&5
cannam@86 12020 $as_echo "$HTLATEX" >&6; }
cannam@86 12021 else
cannam@86 12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 12023 $as_echo "no" >&6; }
cannam@86 12024 fi
cannam@86 12025
cannam@86 12026
cannam@86 12027 test -n "$HTLATEX" && break
cannam@86 12028 done
cannam@86 12029 test -n "$HTLATEX" || HTLATEX="/bin/false"
cannam@86 12030
cannam@86 12031 if test "x$PDFLATEX" = x/bin/false || test "x$HTLATEX" = x/bin/false; then
cannam@86 12032 enable_docs=no
cannam@86 12033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation will not be built!" >&5
cannam@86 12034 $as_echo "$as_me: WARNING: Documentation will not be built!" >&2;}
cannam@86 12035 fi
cannam@86 12036 fi
cannam@86 12037
cannam@86 12038 if test "x$enable_docs" = xyes; then
cannam@86 12039 BUILD_DOCS_TRUE=
cannam@86 12040 BUILD_DOCS_FALSE='#'
cannam@86 12041 else
cannam@86 12042 BUILD_DOCS_TRUE='#'
cannam@86 12043 BUILD_DOCS_FALSE=
cannam@86 12044 fi
cannam@86 12045
cannam@86 12046
cannam@86 12047 # Check whether --enable-examples was given.
cannam@86 12048 if test "${enable_examples+set}" = set; then :
cannam@86 12049 enableval=$enable_examples;
cannam@86 12050 fi
cannam@86 12051
cannam@86 12052
cannam@86 12053 if test "x$enable_examples" = xyes; then
cannam@86 12054 BUILD_EXAMPLES_TRUE=
cannam@86 12055 BUILD_EXAMPLES_FALSE='#'
cannam@86 12056 else
cannam@86 12057 BUILD_EXAMPLES_TRUE='#'
cannam@86 12058 BUILD_EXAMPLES_FALSE=
cannam@86 12059 fi
cannam@86 12060
cannam@86 12061
cannam@86 12062
cannam@86 12063
cannam@86 12064 cflags_save="$CFLAGS"
cannam@86 12065 if test -z "$GCC"; then
cannam@86 12066 case $host in
cannam@86 12067 *-*-irix*)
cannam@86 12068 if test -z "$CC"; then
cannam@86 12069 CC=cc
cannam@86 12070 fi
cannam@86 12071 DEBUG="-g -signed"
cannam@86 12072 CFLAGS="-O2 -w -signed"
cannam@86 12073 PROFILE="-p -g3 -O2 -signed" ;;
cannam@86 12074 sparc-sun-solaris*)
cannam@86 12075 DEBUG="-v -g"
cannam@86 12076 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
cannam@86 12077 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc" ;;
cannam@86 12078 *)
cannam@86 12079 DEBUG="-g"
cannam@86 12080 CFLAGS="-O"
cannam@86 12081 PROFILE="-g -p" ;;
cannam@86 12082 esac
cannam@86 12083 else
cannam@86 12084
cannam@86 12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC version" >&5
cannam@86 12086 $as_echo_n "checking GCC version... " >&6; }
cannam@86 12087 GCC_VERSION=`$CC -dumpversion`
cannam@86 12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5
cannam@86 12089 $as_echo "$GCC_VERSION" >&6; }
cannam@86 12090 case $host in
cannam@86 12091 *86-*-linux*)
cannam@86 12092 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
cannam@86 12093 CFLAGS="-O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char"
cannam@86 12094 # PROFILE="-Wall -Wextra -pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char -fno-inline -static"
cannam@86 12095 PROFILE="-Wall -Wextra -pg -g -O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -fno-inline"
cannam@86 12096
cannam@86 12097 # glibc < 2.1.3 has a serious FP bug in the math inline header
cannam@86 12098 # that will cripple Vorbis. Look to see if the magic FP stack
cannam@86 12099 # clobber is missing in the mathinline header, thus indicating
cannam@86 12100 # the buggy version
cannam@86 12101
cannam@86 12102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 12103 /* end confdefs.h. */
cannam@86 12104
cannam@86 12105 #define __LIBC_INTERNAL_MATH_INLINES 1
cannam@86 12106 #define __OPTIMIZE__
cannam@86 12107 #include <math.h>
cannam@86 12108
cannam@86 12109 _ACEOF
cannam@86 12110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@86 12111 $EGREP "log10.*fldlg2.*fxch" >/dev/null 2>&1; then :
cannam@86 12112 bad=maybe
cannam@86 12113 else
cannam@86 12114 bad=no
cannam@86 12115 fi
cannam@86 12116 rm -f conftest*
cannam@86 12117
cannam@86 12118 if test ${bad} = "maybe" ;then
cannam@86 12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 12120 /* end confdefs.h. */
cannam@86 12121
cannam@86 12122 #define __LIBC_INTERNAL_MATH_INLINES 1
cannam@86 12123 #define __OPTIMIZE__
cannam@86 12124 #include <math.h>
cannam@86 12125
cannam@86 12126 _ACEOF
cannam@86 12127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@86 12128 $EGREP "log10.*fldlg2.*fxch.*st\([0123456789]*\)" >/dev/null 2>&1; then :
cannam@86 12129 bad=no
cannam@86 12130 else
cannam@86 12131 bad=yes
cannam@86 12132 fi
cannam@86 12133 rm -f conftest*
cannam@86 12134
cannam@86 12135 fi
cannam@86 12136 if test ${bad} = "yes" ;then
cannam@86 12137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
cannam@86 12138 $as_echo "$as_me: WARNING: " >&2;}
cannam@86 12139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ********************************************************" >&5
cannam@86 12140 $as_echo "$as_me: WARNING: ********************************************************" >&2;}
cannam@86 12141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * The glibc headers on this machine have a serious bug *" >&5
cannam@86 12142 $as_echo "$as_me: WARNING: * The glibc headers on this machine have a serious bug *" >&2;}
cannam@86 12143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&5
cannam@86 12144 $as_echo "$as_me: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&2;}
cannam@86 12145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * all floating point code, not just Ogg, built on this *" >&5
cannam@86 12146 $as_echo "$as_me: WARNING: * all floating point code, not just Ogg, built on this *" >&2;}
cannam@86 12147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * machine. Upgrading to glibc 2.1.3 is strongly urged *" >&5
cannam@86 12148 $as_echo "$as_me: WARNING: * machine. Upgrading to glibc 2.1.3 is strongly urged *" >&2;}
cannam@86 12149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * to correct the problem. Note that upgrading glibc *" >&5
cannam@86 12150 $as_echo "$as_me: WARNING: * to correct the problem. Note that upgrading glibc *" >&2;}
cannam@86 12151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * will not fix any previously built programs; this is *" >&5
cannam@86 12152 $as_echo "$as_me: WARNING: * will not fix any previously built programs; this is *" >&2;}
cannam@86 12153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * a compile-time time bug. *" >&5
cannam@86 12154 $as_echo "$as_me: WARNING: * a compile-time time bug. *" >&2;}
cannam@86 12155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * To work around the problem for this build of Ogg, *" >&5
cannam@86 12156 $as_echo "$as_me: WARNING: * To work around the problem for this build of Ogg, *" >&2;}
cannam@86 12157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * autoconf is disabling all math inlining. This will *" >&5
cannam@86 12158 $as_echo "$as_me: WARNING: * autoconf is disabling all math inlining. This will *" >&2;}
cannam@86 12159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&5
cannam@86 12160 $as_echo "$as_me: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&2;}
cannam@86 12161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * will actually work. Once glibc is upgraded, rerun *" >&5
cannam@86 12162 $as_echo "$as_me: WARNING: * will actually work. Once glibc is upgraded, rerun *" >&2;}
cannam@86 12163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * configure and make to build with inlining. *" >&5
cannam@86 12164 $as_echo "$as_me: WARNING: * configure and make to build with inlining. *" >&2;}
cannam@86 12165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ********************************************************" >&5
cannam@86 12166 $as_echo "$as_me: WARNING: ********************************************************" >&2;}
cannam@86 12167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
cannam@86 12168 $as_echo "$as_me: WARNING: " >&2;}
cannam@86 12169
cannam@86 12170 CFLAGS=${OPT}" -D__NO_MATH_INLINES"
cannam@86 12171 PROFILE=${PROFILE}" -D__NO_MATH_INLINES"
cannam@86 12172 fi;;
cannam@86 12173 powerpc-*-linux*spe)
cannam@86 12174 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES"
cannam@86 12175 CFLAGS="-O3 -Wall -Wextra -ffast-math -mfused-madd -D_REENTRANT"
cannam@86 12176 PROFILE="-pg -g -O3 -ffast-math -mfused-madd -D_REENTRANT";;
cannam@86 12177 powerpc-*-linux*)
cannam@86 12178 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES"
cannam@86 12179 CFLAGS="-O3 -Wall -Wextra -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT"
cannam@86 12180 PROFILE="-pg -g -O3 -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT";;
cannam@86 12181 *-*-linux*)
cannam@86 12182 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
cannam@86 12183 CFLAGS="-O20 -Wall -Wextra -ffast-math -D_REENTRANT -fsigned-char"
cannam@86 12184 PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";;
cannam@86 12185 sparc-sun-*)
cannam@86 12186 sparc_cpu=""
cannam@86 12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -mv8" >&5
cannam@86 12188 $as_echo_n "checking if gcc supports -mv8... " >&6; }
cannam@86 12189 old_cflags="$CFLAGS"
cannam@86 12190 CFLAGS="$CFLAGS -mv8"
cannam@86 12191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 12192 /* end confdefs.h. */
cannam@86 12193
cannam@86 12194 int
cannam@86 12195 main ()
cannam@86 12196 {
cannam@86 12197 return 0;
cannam@86 12198 ;
cannam@86 12199 return 0;
cannam@86 12200 }
cannam@86 12201 _ACEOF
cannam@86 12202 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 12203
cannam@86 12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@86 12205 $as_echo "yes" >&6; }
cannam@86 12206 sparc_cpu="-mv8"
cannam@86 12207
cannam@86 12208 fi
cannam@86 12209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 12210 CFLAGS="$old_cflags"
cannam@86 12211 DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char $sparc_cpu"
cannam@86 12212 CFLAGS="-O20 -Wall -Wextra -ffast-math -D__NO_MATH_INLINES -fsigned-char $sparc_cpu"
cannam@86 12213 PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char $sparc_cpu" ;;
cannam@86 12214 *-*-darwin*)
cannam@86 12215 DEBUG="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O0 -fsigned-char"
cannam@86 12216 CFLAGS="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O4 -ffast-math -fsigned-char"
cannam@86 12217 PROFILE="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -pg -O4 -ffast-math -fsigned-char";;
cannam@86 12218 *-*-os2*)
cannam@86 12219 # Use -W instead of -Wextra because gcc on OS/2 is an old version.
cannam@86 12220 DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
cannam@86 12221 CFLAGS="-O20 -Wall -W -ffast-math -D_REENTRANT -fsigned-char"
cannam@86 12222 PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";;
cannam@86 12223 *)
cannam@86 12224 DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char"
cannam@86 12225 CFLAGS="-O20 -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char"
cannam@86 12226 PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
cannam@86 12227 esac
cannam@86 12228
cannam@86 12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wdeclaration-after-statement" >&5
cannam@86 12230 $as_echo_n "checking if $CC accepts -Wdeclaration-after-statement... " >&6; }
cannam@86 12231 ac_add_cflags__old_cflags="$CFLAGS"
cannam@86 12232 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
cannam@86 12233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 12234 /* end confdefs.h. */
cannam@86 12235 #include <stdio.h>
cannam@86 12236 int
cannam@86 12237 main ()
cannam@86 12238 {
cannam@86 12239 puts("Hello, World!"); return 0;
cannam@86 12240 ;
cannam@86 12241 return 0;
cannam@86 12242 }
cannam@86 12243 _ACEOF
cannam@86 12244 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@86 12246 $as_echo "yes" >&6; }
cannam@86 12247 else
cannam@86 12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 12249 $as_echo "no" >&6; }
cannam@86 12250 CFLAGS="$ac_add_cflags__old_cflags"
cannam@86 12251 fi
cannam@86 12252 rm -f core conftest.err conftest.$ac_objext \
cannam@86 12253 conftest$ac_exeext conftest.$ac_ext
cannam@86 12254
cannam@86 12255 fi
cannam@86 12256 CFLAGS="$CFLAGS $cflags_save"
cannam@86 12257
cannam@86 12258
cannam@86 12259 ac_fn_c_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
cannam@86 12260 if test "x$ac_cv_header_memory_h" = xyes; then :
cannam@86 12261 CFLAGS="$CFLAGS -DUSE_MEMORY_H"
cannam@86 12262 else
cannam@86 12263 :
cannam@86 12264 fi
cannam@86 12265
cannam@86 12266
cannam@86 12267
cannam@86 12268
cannam@86 12269
cannam@86 12270
cannam@86 12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
cannam@86 12272 $as_echo_n "checking for cos in -lm... " >&6; }
cannam@86 12273 if ${ac_cv_lib_m_cos+:} false; then :
cannam@86 12274 $as_echo_n "(cached) " >&6
cannam@86 12275 else
cannam@86 12276 ac_check_lib_save_LIBS=$LIBS
cannam@86 12277 LIBS="-lm $LIBS"
cannam@86 12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 12279 /* end confdefs.h. */
cannam@86 12280
cannam@86 12281 /* Override any GCC internal prototype to avoid an error.
cannam@86 12282 Use char because int might match the return type of a GCC
cannam@86 12283 builtin and then its argument prototype would still apply. */
cannam@86 12284 #ifdef __cplusplus
cannam@86 12285 extern "C"
cannam@86 12286 #endif
cannam@86 12287 char cos ();
cannam@86 12288 int
cannam@86 12289 main ()
cannam@86 12290 {
cannam@86 12291 return cos ();
cannam@86 12292 ;
cannam@86 12293 return 0;
cannam@86 12294 }
cannam@86 12295 _ACEOF
cannam@86 12296 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 12297 ac_cv_lib_m_cos=yes
cannam@86 12298 else
cannam@86 12299 ac_cv_lib_m_cos=no
cannam@86 12300 fi
cannam@86 12301 rm -f core conftest.err conftest.$ac_objext \
cannam@86 12302 conftest$ac_exeext conftest.$ac_ext
cannam@86 12303 LIBS=$ac_check_lib_save_LIBS
cannam@86 12304 fi
cannam@86 12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
cannam@86 12306 $as_echo "$ac_cv_lib_m_cos" >&6; }
cannam@86 12307 if test "x$ac_cv_lib_m_cos" = xyes; then :
cannam@86 12308 VORBIS_LIBS="-lm"
cannam@86 12309 else
cannam@86 12310 VORBIS_LIBS=""
cannam@86 12311 fi
cannam@86 12312
cannam@86 12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
cannam@86 12314 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
cannam@86 12315 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
cannam@86 12316 $as_echo_n "(cached) " >&6
cannam@86 12317 else
cannam@86 12318 ac_check_lib_save_LIBS=$LIBS
cannam@86 12319 LIBS="-lpthread $LIBS"
cannam@86 12320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 12321 /* end confdefs.h. */
cannam@86 12322
cannam@86 12323 /* Override any GCC internal prototype to avoid an error.
cannam@86 12324 Use char because int might match the return type of a GCC
cannam@86 12325 builtin and then its argument prototype would still apply. */
cannam@86 12326 #ifdef __cplusplus
cannam@86 12327 extern "C"
cannam@86 12328 #endif
cannam@86 12329 char pthread_create ();
cannam@86 12330 int
cannam@86 12331 main ()
cannam@86 12332 {
cannam@86 12333 return pthread_create ();
cannam@86 12334 ;
cannam@86 12335 return 0;
cannam@86 12336 }
cannam@86 12337 _ACEOF
cannam@86 12338 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 12339 ac_cv_lib_pthread_pthread_create=yes
cannam@86 12340 else
cannam@86 12341 ac_cv_lib_pthread_pthread_create=no
cannam@86 12342 fi
cannam@86 12343 rm -f core conftest.err conftest.$ac_objext \
cannam@86 12344 conftest$ac_exeext conftest.$ac_ext
cannam@86 12345 LIBS=$ac_check_lib_save_LIBS
cannam@86 12346 fi
cannam@86 12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
cannam@86 12348 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
cannam@86 12349 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
cannam@86 12350 pthread_lib="-lpthread"
cannam@86 12351 else
cannam@86 12352 :
cannam@86 12353 fi
cannam@86 12354
cannam@86 12355
cannam@86 12356
cannam@86 12357
cannam@86 12358 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
cannam@86 12359 if test -n "$ac_tool_prefix"; then
cannam@86 12360 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
cannam@86 12361 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cannam@86 12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 12363 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 12364 if ${ac_cv_path_PKG_CONFIG+:} false; then :
cannam@86 12365 $as_echo_n "(cached) " >&6
cannam@86 12366 else
cannam@86 12367 case $PKG_CONFIG in
cannam@86 12368 [\\/]* | ?:[\\/]*)
cannam@86 12369 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
cannam@86 12370 ;;
cannam@86 12371 *)
cannam@86 12372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 12373 for as_dir in $PATH
cannam@86 12374 do
cannam@86 12375 IFS=$as_save_IFS
cannam@86 12376 test -z "$as_dir" && as_dir=.
cannam@86 12377 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 12378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 12379 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cannam@86 12380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 12381 break 2
cannam@86 12382 fi
cannam@86 12383 done
cannam@86 12384 done
cannam@86 12385 IFS=$as_save_IFS
cannam@86 12386
cannam@86 12387 ;;
cannam@86 12388 esac
cannam@86 12389 fi
cannam@86 12390 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
cannam@86 12391 if test -n "$PKG_CONFIG"; then
cannam@86 12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cannam@86 12393 $as_echo "$PKG_CONFIG" >&6; }
cannam@86 12394 else
cannam@86 12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 12396 $as_echo "no" >&6; }
cannam@86 12397 fi
cannam@86 12398
cannam@86 12399
cannam@86 12400 fi
cannam@86 12401 if test -z "$ac_cv_path_PKG_CONFIG"; then
cannam@86 12402 ac_pt_PKG_CONFIG=$PKG_CONFIG
cannam@86 12403 # Extract the first word of "pkg-config", so it can be a program name with args.
cannam@86 12404 set dummy pkg-config; ac_word=$2
cannam@86 12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 12406 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 12407 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cannam@86 12408 $as_echo_n "(cached) " >&6
cannam@86 12409 else
cannam@86 12410 case $ac_pt_PKG_CONFIG in
cannam@86 12411 [\\/]* | ?:[\\/]*)
cannam@86 12412 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
cannam@86 12413 ;;
cannam@86 12414 *)
cannam@86 12415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 12416 for as_dir in $PATH
cannam@86 12417 do
cannam@86 12418 IFS=$as_save_IFS
cannam@86 12419 test -z "$as_dir" && as_dir=.
cannam@86 12420 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 12421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 12422 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cannam@86 12423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 12424 break 2
cannam@86 12425 fi
cannam@86 12426 done
cannam@86 12427 done
cannam@86 12428 IFS=$as_save_IFS
cannam@86 12429
cannam@86 12430 ;;
cannam@86 12431 esac
cannam@86 12432 fi
cannam@86 12433 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
cannam@86 12434 if test -n "$ac_pt_PKG_CONFIG"; then
cannam@86 12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cannam@86 12436 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
cannam@86 12437 else
cannam@86 12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 12439 $as_echo "no" >&6; }
cannam@86 12440 fi
cannam@86 12441
cannam@86 12442 if test "x$ac_pt_PKG_CONFIG" = x; then
cannam@86 12443 PKG_CONFIG=""
cannam@86 12444 else
cannam@86 12445 case $cross_compiling:$ac_tool_warned in
cannam@86 12446 yes:)
cannam@86 12447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 12448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 12449 ac_tool_warned=yes ;;
cannam@86 12450 esac
cannam@86 12451 PKG_CONFIG=$ac_pt_PKG_CONFIG
cannam@86 12452 fi
cannam@86 12453 else
cannam@86 12454 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
cannam@86 12455 fi
cannam@86 12456
cannam@86 12457 fi
cannam@86 12458 if test -n "$PKG_CONFIG"; then
cannam@86 12459 _pkg_min_version=0.9.0
cannam@86 12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cannam@86 12461 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
cannam@86 12462 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cannam@86 12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@86 12464 $as_echo "yes" >&6; }
cannam@86 12465 else
cannam@86 12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 12467 $as_echo "no" >&6; }
cannam@86 12468 PKG_CONFIG=""
cannam@86 12469 fi
cannam@86 12470
cannam@86 12471 fi
cannam@86 12472
cannam@86 12473 HAVE_OGG=no
cannam@86 12474 if test "x$PKG_CONFIG" != "x"
cannam@86 12475 then
cannam@86 12476
cannam@86 12477 pkg_failed=no
cannam@86 12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OGG" >&5
cannam@86 12479 $as_echo_n "checking for OGG... " >&6; }
cannam@86 12480
cannam@86 12481 if test -n "$PKG_CONFIG"; then
cannam@86 12482 if test -n "$OGG_CFLAGS"; then
cannam@86 12483 pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
cannam@86 12484 else
cannam@86 12485 if test -n "$PKG_CONFIG" && \
cannam@86 12486 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\""; } >&5
cannam@86 12487 ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5
cannam@86 12488 ac_status=$?
cannam@86 12489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 12490 test $ac_status = 0; }; then
cannam@86 12491 pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.0" 2>/dev/null`
cannam@86 12492 else
cannam@86 12493 pkg_failed=yes
cannam@86 12494 fi
cannam@86 12495 fi
cannam@86 12496 else
cannam@86 12497 pkg_failed=untried
cannam@86 12498 fi
cannam@86 12499 if test -n "$PKG_CONFIG"; then
cannam@86 12500 if test -n "$OGG_LIBS"; then
cannam@86 12501 pkg_cv_OGG_LIBS="$OGG_LIBS"
cannam@86 12502 else
cannam@86 12503 if test -n "$PKG_CONFIG" && \
cannam@86 12504 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\""; } >&5
cannam@86 12505 ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5
cannam@86 12506 ac_status=$?
cannam@86 12507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 12508 test $ac_status = 0; }; then
cannam@86 12509 pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.0" 2>/dev/null`
cannam@86 12510 else
cannam@86 12511 pkg_failed=yes
cannam@86 12512 fi
cannam@86 12513 fi
cannam@86 12514 else
cannam@86 12515 pkg_failed=untried
cannam@86 12516 fi
cannam@86 12517
cannam@86 12518
cannam@86 12519
cannam@86 12520 if test $pkg_failed = yes; then
cannam@86 12521
cannam@86 12522 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
cannam@86 12523 _pkg_short_errors_supported=yes
cannam@86 12524 else
cannam@86 12525 _pkg_short_errors_supported=no
cannam@86 12526 fi
cannam@86 12527 if test $_pkg_short_errors_supported = yes; then
cannam@86 12528 OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ogg >= 1.0"`
cannam@86 12529 else
cannam@86 12530 OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.0"`
cannam@86 12531 fi
cannam@86 12532 # Put the nasty error message in config.log where it belongs
cannam@86 12533 echo "$OGG_PKG_ERRORS" >&5
cannam@86 12534
cannam@86 12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 12536 $as_echo "no" >&6; }
cannam@86 12537 HAVE_OGG=no
cannam@86 12538 elif test $pkg_failed = untried; then
cannam@86 12539 HAVE_OGG=no
cannam@86 12540 else
cannam@86 12541 OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
cannam@86 12542 OGG_LIBS=$pkg_cv_OGG_LIBS
cannam@86 12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@86 12544 $as_echo "yes" >&6; }
cannam@86 12545 HAVE_OGG=yes
cannam@86 12546 fi
cannam@86 12547 fi
cannam@86 12548 if test "x$HAVE_OGG" = "xno"
cannam@86 12549 then
cannam@86 12550
cannam@86 12551 # Check whether --with-ogg was given.
cannam@86 12552 if test "${with_ogg+set}" = set; then :
cannam@86 12553 withval=$with_ogg; ogg_prefix="$withval"
cannam@86 12554 else
cannam@86 12555 ogg_prefix=""
cannam@86 12556 fi
cannam@86 12557
cannam@86 12558
cannam@86 12559 # Check whether --with-ogg-libraries was given.
cannam@86 12560 if test "${with_ogg_libraries+set}" = set; then :
cannam@86 12561 withval=$with_ogg_libraries; ogg_libraries="$withval"
cannam@86 12562 else
cannam@86 12563 ogg_libraries=""
cannam@86 12564 fi
cannam@86 12565
cannam@86 12566
cannam@86 12567 # Check whether --with-ogg-includes was given.
cannam@86 12568 if test "${with_ogg_includes+set}" = set; then :
cannam@86 12569 withval=$with_ogg_includes; ogg_includes="$withval"
cannam@86 12570 else
cannam@86 12571 ogg_includes=""
cannam@86 12572 fi
cannam@86 12573
cannam@86 12574 # Check whether --enable-oggtest was given.
cannam@86 12575 if test "${enable_oggtest+set}" = set; then :
cannam@86 12576 enableval=$enable_oggtest;
cannam@86 12577 else
cannam@86 12578 enable_oggtest=yes
cannam@86 12579 fi
cannam@86 12580
cannam@86 12581
cannam@86 12582 if test "x$ogg_libraries" != "x" ; then
cannam@86 12583 OGG_LIBS="-L$ogg_libraries"
cannam@86 12584 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
cannam@86 12585 OGG_LIBS=""
cannam@86 12586 elif test "x$ogg_prefix" != "x" ; then
cannam@86 12587 OGG_LIBS="-L$ogg_prefix/lib"
cannam@86 12588 elif test "x$prefix" != "xNONE" ; then
cannam@86 12589 OGG_LIBS="-L$prefix/lib"
cannam@86 12590 fi
cannam@86 12591
cannam@86 12592 if test "x$ogg_prefix" != "xno" ; then
cannam@86 12593 OGG_LIBS="$OGG_LIBS -logg"
cannam@86 12594 fi
cannam@86 12595
cannam@86 12596 if test "x$ogg_includes" != "x" ; then
cannam@86 12597 OGG_CFLAGS="-I$ogg_includes"
cannam@86 12598 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
cannam@86 12599 OGG_CFLAGS=""
cannam@86 12600 elif test "x$ogg_prefix" != "x" ; then
cannam@86 12601 OGG_CFLAGS="-I$ogg_prefix/include"
cannam@86 12602 elif test "x$prefix" != "xNONE"; then
cannam@86 12603 OGG_CFLAGS="-I$prefix/include"
cannam@86 12604 fi
cannam@86 12605
cannam@86 12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ogg" >&5
cannam@86 12607 $as_echo_n "checking for Ogg... " >&6; }
cannam@86 12608 if test "x$ogg_prefix" = "xno" ; then
cannam@86 12609 no_ogg="disabled"
cannam@86 12610 enable_oggtest="no"
cannam@86 12611 else
cannam@86 12612 no_ogg=""
cannam@86 12613 fi
cannam@86 12614
cannam@86 12615
cannam@86 12616 if test "x$enable_oggtest" = "xyes" ; then
cannam@86 12617 ac_save_CFLAGS="$CFLAGS"
cannam@86 12618 ac_save_LIBS="$LIBS"
cannam@86 12619 CFLAGS="$CFLAGS $OGG_CFLAGS"
cannam@86 12620 LIBS="$LIBS $OGG_LIBS"
cannam@86 12621 rm -f conf.oggtest
cannam@86 12622 if test "$cross_compiling" = yes; then :
cannam@86 12623 echo $ac_n "cross compiling; assumed OK... $ac_c"
cannam@86 12624 else
cannam@86 12625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 12626 /* end confdefs.h. */
cannam@86 12627
cannam@86 12628 #include <stdio.h>
cannam@86 12629 #include <stdlib.h>
cannam@86 12630 #include <string.h>
cannam@86 12631 #include <ogg/ogg.h>
cannam@86 12632
cannam@86 12633 int main ()
cannam@86 12634 {
cannam@86 12635 system("touch conf.oggtest");
cannam@86 12636 return 0;
cannam@86 12637 }
cannam@86 12638
cannam@86 12639
cannam@86 12640 _ACEOF
cannam@86 12641 if ac_fn_c_try_run "$LINENO"; then :
cannam@86 12642
cannam@86 12643 else
cannam@86 12644 no_ogg=yes
cannam@86 12645 fi
cannam@86 12646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@86 12647 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@86 12648 fi
cannam@86 12649
cannam@86 12650 CFLAGS="$ac_save_CFLAGS"
cannam@86 12651 LIBS="$ac_save_LIBS"
cannam@86 12652 fi
cannam@86 12653
cannam@86 12654 if test "x$no_ogg" = "xdisabled" ; then
cannam@86 12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 12656 $as_echo "no" >&6; }
cannam@86 12657 as_fn_error $? "must have Ogg installed!" "$LINENO" 5
cannam@86 12658 elif test "x$no_ogg" = "x" ; then
cannam@86 12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@86 12660 $as_echo "yes" >&6; }
cannam@86 12661 :
cannam@86 12662 else
cannam@86 12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 12664 $as_echo "no" >&6; }
cannam@86 12665 if test -f conf.oggtest ; then
cannam@86 12666 :
cannam@86 12667 else
cannam@86 12668 echo "*** Could not run Ogg test program, checking why..."
cannam@86 12669 CFLAGS="$CFLAGS $OGG_CFLAGS"
cannam@86 12670 LIBS="$LIBS $OGG_LIBS"
cannam@86 12671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 12672 /* end confdefs.h. */
cannam@86 12673
cannam@86 12674 #include <stdio.h>
cannam@86 12675 #include <ogg/ogg.h>
cannam@86 12676
cannam@86 12677 int
cannam@86 12678 main ()
cannam@86 12679 {
cannam@86 12680 return 0;
cannam@86 12681 ;
cannam@86 12682 return 0;
cannam@86 12683 }
cannam@86 12684 _ACEOF
cannam@86 12685 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 12686 echo "*** The test program compiled, but did not run. This usually means"
cannam@86 12687 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
cannam@86 12688 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
cannam@86 12689 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
cannam@86 12690 echo "*** to the installed location Also, make sure you have run ldconfig if that"
cannam@86 12691 echo "*** is required on your system"
cannam@86 12692 echo "***"
cannam@86 12693 echo "*** If you have an old version installed, it is best to remove it, although"
cannam@86 12694 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
cannam@86 12695 else
cannam@86 12696 echo "*** The test program failed to compile or link. See the file config.log for the"
cannam@86 12697 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
cannam@86 12698 echo "*** or that you have moved Ogg since it was installed."
cannam@86 12699 fi
cannam@86 12700 rm -f core conftest.err conftest.$ac_objext \
cannam@86 12701 conftest$ac_exeext conftest.$ac_ext
cannam@86 12702 CFLAGS="$ac_save_CFLAGS"
cannam@86 12703 LIBS="$ac_save_LIBS"
cannam@86 12704 fi
cannam@86 12705 OGG_CFLAGS=""
cannam@86 12706 OGG_LIBS=""
cannam@86 12707 as_fn_error $? "must have Ogg installed!" "$LINENO" 5
cannam@86 12708 fi
cannam@86 12709
cannam@86 12710
cannam@86 12711 rm -f conf.oggtest
cannam@86 12712
cannam@86 12713 libs_save=$LIBS
cannam@86 12714 LIBS="$OGG_LIBS $VORBIS_LIBS"
cannam@86 12715 ac_fn_c_check_func "$LINENO" "oggpack_writealign" "ac_cv_func_oggpack_writealign"
cannam@86 12716 if test "x$ac_cv_func_oggpack_writealign" = xyes; then :
cannam@86 12717
cannam@86 12718 else
cannam@86 12719 as_fn_error $? "Ogg >= 1.0 required !" "$LINENO" 5
cannam@86 12720 fi
cannam@86 12721
cannam@86 12722 LIBS=$libs_save
cannam@86 12723 fi
cannam@86 12724
cannam@86 12725
cannam@86 12726 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
cannam@86 12727 if test "x$ac_cv_type_size_t" = xyes; then :
cannam@86 12728
cannam@86 12729 else
cannam@86 12730
cannam@86 12731 cat >>confdefs.h <<_ACEOF
cannam@86 12732 #define size_t unsigned int
cannam@86 12733 _ACEOF
cannam@86 12734
cannam@86 12735 fi
cannam@86 12736
cannam@86 12737 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
cannam@86 12738 # for constant arguments. Useless!
cannam@86 12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
cannam@86 12740 $as_echo_n "checking for working alloca.h... " >&6; }
cannam@86 12741 if ${ac_cv_working_alloca_h+:} false; then :
cannam@86 12742 $as_echo_n "(cached) " >&6
cannam@86 12743 else
cannam@86 12744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 12745 /* end confdefs.h. */
cannam@86 12746 #include <alloca.h>
cannam@86 12747 int
cannam@86 12748 main ()
cannam@86 12749 {
cannam@86 12750 char *p = (char *) alloca (2 * sizeof (int));
cannam@86 12751 if (p) return 0;
cannam@86 12752 ;
cannam@86 12753 return 0;
cannam@86 12754 }
cannam@86 12755 _ACEOF
cannam@86 12756 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 12757 ac_cv_working_alloca_h=yes
cannam@86 12758 else
cannam@86 12759 ac_cv_working_alloca_h=no
cannam@86 12760 fi
cannam@86 12761 rm -f core conftest.err conftest.$ac_objext \
cannam@86 12762 conftest$ac_exeext conftest.$ac_ext
cannam@86 12763 fi
cannam@86 12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
cannam@86 12765 $as_echo "$ac_cv_working_alloca_h" >&6; }
cannam@86 12766 if test $ac_cv_working_alloca_h = yes; then
cannam@86 12767
cannam@86 12768 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
cannam@86 12769
cannam@86 12770 fi
cannam@86 12771
cannam@86 12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
cannam@86 12773 $as_echo_n "checking for alloca... " >&6; }
cannam@86 12774 if ${ac_cv_func_alloca_works+:} false; then :
cannam@86 12775 $as_echo_n "(cached) " >&6
cannam@86 12776 else
cannam@86 12777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 12778 /* end confdefs.h. */
cannam@86 12779 #ifdef __GNUC__
cannam@86 12780 # define alloca __builtin_alloca
cannam@86 12781 #else
cannam@86 12782 # ifdef _MSC_VER
cannam@86 12783 # include <malloc.h>
cannam@86 12784 # define alloca _alloca
cannam@86 12785 # else
cannam@86 12786 # ifdef HAVE_ALLOCA_H
cannam@86 12787 # include <alloca.h>
cannam@86 12788 # else
cannam@86 12789 # ifdef _AIX
cannam@86 12790 #pragma alloca
cannam@86 12791 # else
cannam@86 12792 # ifndef alloca /* predefined by HP cc +Olibcalls */
cannam@86 12793 void *alloca (size_t);
cannam@86 12794 # endif
cannam@86 12795 # endif
cannam@86 12796 # endif
cannam@86 12797 # endif
cannam@86 12798 #endif
cannam@86 12799
cannam@86 12800 int
cannam@86 12801 main ()
cannam@86 12802 {
cannam@86 12803 char *p = (char *) alloca (1);
cannam@86 12804 if (p) return 0;
cannam@86 12805 ;
cannam@86 12806 return 0;
cannam@86 12807 }
cannam@86 12808 _ACEOF
cannam@86 12809 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 12810 ac_cv_func_alloca_works=yes
cannam@86 12811 else
cannam@86 12812 ac_cv_func_alloca_works=no
cannam@86 12813 fi
cannam@86 12814 rm -f core conftest.err conftest.$ac_objext \
cannam@86 12815 conftest$ac_exeext conftest.$ac_ext
cannam@86 12816 fi
cannam@86 12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
cannam@86 12818 $as_echo "$ac_cv_func_alloca_works" >&6; }
cannam@86 12819
cannam@86 12820 if test $ac_cv_func_alloca_works = yes; then
cannam@86 12821
cannam@86 12822 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
cannam@86 12823
cannam@86 12824 else
cannam@86 12825 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
cannam@86 12826 # that cause trouble. Some versions do not even contain alloca or
cannam@86 12827 # contain a buggy version. If you still want to use their alloca,
cannam@86 12828 # use ar to extract alloca.o from them instead of compiling alloca.c.
cannam@86 12829
cannam@86 12830 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
cannam@86 12831
cannam@86 12832 $as_echo "#define C_ALLOCA 1" >>confdefs.h
cannam@86 12833
cannam@86 12834
cannam@86 12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
cannam@86 12836 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
cannam@86 12837 if ${ac_cv_os_cray+:} false; then :
cannam@86 12838 $as_echo_n "(cached) " >&6
cannam@86 12839 else
cannam@86 12840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 12841 /* end confdefs.h. */
cannam@86 12842 #if defined CRAY && ! defined CRAY2
cannam@86 12843 webecray
cannam@86 12844 #else
cannam@86 12845 wenotbecray
cannam@86 12846 #endif
cannam@86 12847
cannam@86 12848 _ACEOF
cannam@86 12849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@86 12850 $EGREP "webecray" >/dev/null 2>&1; then :
cannam@86 12851 ac_cv_os_cray=yes
cannam@86 12852 else
cannam@86 12853 ac_cv_os_cray=no
cannam@86 12854 fi
cannam@86 12855 rm -f conftest*
cannam@86 12856
cannam@86 12857 fi
cannam@86 12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
cannam@86 12859 $as_echo "$ac_cv_os_cray" >&6; }
cannam@86 12860 if test $ac_cv_os_cray = yes; then
cannam@86 12861 for ac_func in _getb67 GETB67 getb67; do
cannam@86 12862 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
cannam@86 12863 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cannam@86 12864 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cannam@86 12865
cannam@86 12866 cat >>confdefs.h <<_ACEOF
cannam@86 12867 #define CRAY_STACKSEG_END $ac_func
cannam@86 12868 _ACEOF
cannam@86 12869
cannam@86 12870 break
cannam@86 12871 fi
cannam@86 12872
cannam@86 12873 done
cannam@86 12874 fi
cannam@86 12875
cannam@86 12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
cannam@86 12877 $as_echo_n "checking stack direction for C alloca... " >&6; }
cannam@86 12878 if ${ac_cv_c_stack_direction+:} false; then :
cannam@86 12879 $as_echo_n "(cached) " >&6
cannam@86 12880 else
cannam@86 12881 if test "$cross_compiling" = yes; then :
cannam@86 12882 ac_cv_c_stack_direction=0
cannam@86 12883 else
cannam@86 12884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 12885 /* end confdefs.h. */
cannam@86 12886 $ac_includes_default
cannam@86 12887 int
cannam@86 12888 find_stack_direction ()
cannam@86 12889 {
cannam@86 12890 static char *addr = 0;
cannam@86 12891 auto char dummy;
cannam@86 12892 if (addr == 0)
cannam@86 12893 {
cannam@86 12894 addr = &dummy;
cannam@86 12895 return find_stack_direction ();
cannam@86 12896 }
cannam@86 12897 else
cannam@86 12898 return (&dummy > addr) ? 1 : -1;
cannam@86 12899 }
cannam@86 12900
cannam@86 12901 int
cannam@86 12902 main ()
cannam@86 12903 {
cannam@86 12904 return find_stack_direction () < 0;
cannam@86 12905 }
cannam@86 12906 _ACEOF
cannam@86 12907 if ac_fn_c_try_run "$LINENO"; then :
cannam@86 12908 ac_cv_c_stack_direction=1
cannam@86 12909 else
cannam@86 12910 ac_cv_c_stack_direction=-1
cannam@86 12911 fi
cannam@86 12912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@86 12913 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@86 12914 fi
cannam@86 12915
cannam@86 12916 fi
cannam@86 12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
cannam@86 12918 $as_echo "$ac_cv_c_stack_direction" >&6; }
cannam@86 12919 cat >>confdefs.h <<_ACEOF
cannam@86 12920 #define STACK_DIRECTION $ac_cv_c_stack_direction
cannam@86 12921 _ACEOF
cannam@86 12922
cannam@86 12923
cannam@86 12924 fi
cannam@86 12925
cannam@86 12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cannam@86 12927 $as_echo_n "checking for working memcmp... " >&6; }
cannam@86 12928 if ${ac_cv_func_memcmp_working+:} false; then :
cannam@86 12929 $as_echo_n "(cached) " >&6
cannam@86 12930 else
cannam@86 12931 if test "$cross_compiling" = yes; then :
cannam@86 12932 ac_cv_func_memcmp_working=no
cannam@86 12933 else
cannam@86 12934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 12935 /* end confdefs.h. */
cannam@86 12936 $ac_includes_default
cannam@86 12937 int
cannam@86 12938 main ()
cannam@86 12939 {
cannam@86 12940
cannam@86 12941 /* Some versions of memcmp are not 8-bit clean. */
cannam@86 12942 char c0 = '\100', c1 = '\200', c2 = '\201';
cannam@86 12943 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
cannam@86 12944 return 1;
cannam@86 12945
cannam@86 12946 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
cannam@86 12947 or more and with at least one buffer not starting on a 4-byte boundary.
cannam@86 12948 William Lewis provided this test program. */
cannam@86 12949 {
cannam@86 12950 char foo[21];
cannam@86 12951 char bar[21];
cannam@86 12952 int i;
cannam@86 12953 for (i = 0; i < 4; i++)
cannam@86 12954 {
cannam@86 12955 char *a = foo + i;
cannam@86 12956 char *b = bar + i;
cannam@86 12957 strcpy (a, "--------01111111");
cannam@86 12958 strcpy (b, "--------10000000");
cannam@86 12959 if (memcmp (a, b, 16) >= 0)
cannam@86 12960 return 1;
cannam@86 12961 }
cannam@86 12962 return 0;
cannam@86 12963 }
cannam@86 12964
cannam@86 12965 ;
cannam@86 12966 return 0;
cannam@86 12967 }
cannam@86 12968 _ACEOF
cannam@86 12969 if ac_fn_c_try_run "$LINENO"; then :
cannam@86 12970 ac_cv_func_memcmp_working=yes
cannam@86 12971 else
cannam@86 12972 ac_cv_func_memcmp_working=no
cannam@86 12973 fi
cannam@86 12974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@86 12975 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@86 12976 fi
cannam@86 12977
cannam@86 12978 fi
cannam@86 12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cannam@86 12980 $as_echo "$ac_cv_func_memcmp_working" >&6; }
cannam@86 12981 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
cannam@86 12982 *" memcmp.$ac_objext "* ) ;;
cannam@86 12983 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
cannam@86 12984 ;;
cannam@86 12985 esac
cannam@86 12986
cannam@86 12987
cannam@86 12988
cannam@86 12989
cannam@86 12990
cannam@86 12991
cannam@86 12992
cannam@86 12993
cannam@86 12994
cannam@86 12995
cannam@86 12996
cannam@86 12997 ac_config_files="$ac_config_files Makefile m4/Makefile lib/Makefile lib/modes/Makefile lib/books/Makefile lib/books/coupled/Makefile lib/books/uncoupled/Makefile lib/books/floor/Makefile doc/Makefile doc/vorbisfile/Makefile doc/vorbisenc/Makefile doc/libvorbis/Makefile doc/Doxyfile include/Makefile include/vorbis/Makefile examples/Makefile test/Makefile vq/Makefile libvorbis.spec vorbis.pc vorbisenc.pc vorbisfile.pc vorbis-uninstalled.pc vorbisenc-uninstalled.pc vorbisfile-uninstalled.pc"
cannam@86 12998
cannam@86 12999 cat >confcache <<\_ACEOF
cannam@86 13000 # This file is a shell script that caches the results of configure
cannam@86 13001 # tests run on this system so they can be shared between configure
cannam@86 13002 # scripts and configure runs, see configure's option --config-cache.
cannam@86 13003 # It is not useful on other systems. If it contains results you don't
cannam@86 13004 # want to keep, you may remove or edit it.
cannam@86 13005 #
cannam@86 13006 # config.status only pays attention to the cache file if you give it
cannam@86 13007 # the --recheck option to rerun configure.
cannam@86 13008 #
cannam@86 13009 # `ac_cv_env_foo' variables (set or unset) will be overridden when
cannam@86 13010 # loading this file, other *unset* `ac_cv_foo' will be assigned the
cannam@86 13011 # following values.
cannam@86 13012
cannam@86 13013 _ACEOF
cannam@86 13014
cannam@86 13015 # The following way of writing the cache mishandles newlines in values,
cannam@86 13016 # but we know of no workaround that is simple, portable, and efficient.
cannam@86 13017 # So, we kill variables containing newlines.
cannam@86 13018 # Ultrix sh set writes to stderr and can't be redirected directly,
cannam@86 13019 # and sets the high bit in the cache file unless we assign to the vars.
cannam@86 13020 (
cannam@86 13021 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
cannam@86 13022 eval ac_val=\$$ac_var
cannam@86 13023 case $ac_val in #(
cannam@86 13024 *${as_nl}*)
cannam@86 13025 case $ac_var in #(
cannam@86 13026 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cannam@86 13027 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
cannam@86 13028 esac
cannam@86 13029 case $ac_var in #(
cannam@86 13030 _ | IFS | as_nl) ;; #(
cannam@86 13031 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cannam@86 13032 *) { eval $ac_var=; unset $ac_var;} ;;
cannam@86 13033 esac ;;
cannam@86 13034 esac
cannam@86 13035 done
cannam@86 13036
cannam@86 13037 (set) 2>&1 |
cannam@86 13038 case $as_nl`(ac_space=' '; set) 2>&1` in #(
cannam@86 13039 *${as_nl}ac_space=\ *)
cannam@86 13040 # `set' does not quote correctly, so add quotes: double-quote
cannam@86 13041 # substitution turns \\\\ into \\, and sed turns \\ into \.
cannam@86 13042 sed -n \
cannam@86 13043 "s/'/'\\\\''/g;
cannam@86 13044 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cannam@86 13045 ;; #(
cannam@86 13046 *)
cannam@86 13047 # `set' quotes correctly as required by POSIX, so do not add quotes.
cannam@86 13048 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
cannam@86 13049 ;;
cannam@86 13050 esac |
cannam@86 13051 sort
cannam@86 13052 ) |
cannam@86 13053 sed '
cannam@86 13054 /^ac_cv_env_/b end
cannam@86 13055 t clear
cannam@86 13056 :clear
cannam@86 13057 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
cannam@86 13058 t end
cannam@86 13059 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
cannam@86 13060 :end' >>confcache
cannam@86 13061 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
cannam@86 13062 if test -w "$cache_file"; then
cannam@86 13063 if test "x$cache_file" != "x/dev/null"; then
cannam@86 13064 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cannam@86 13065 $as_echo "$as_me: updating cache $cache_file" >&6;}
cannam@86 13066 if test ! -f "$cache_file" || test -h "$cache_file"; then
cannam@86 13067 cat confcache >"$cache_file"
cannam@86 13068 else
cannam@86 13069 case $cache_file in #(
cannam@86 13070 */* | ?:*)
cannam@86 13071 mv -f confcache "$cache_file"$$ &&
cannam@86 13072 mv -f "$cache_file"$$ "$cache_file" ;; #(
cannam@86 13073 *)
cannam@86 13074 mv -f confcache "$cache_file" ;;
cannam@86 13075 esac
cannam@86 13076 fi
cannam@86 13077 fi
cannam@86 13078 else
cannam@86 13079 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cannam@86 13080 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
cannam@86 13081 fi
cannam@86 13082 fi
cannam@86 13083 rm -f confcache
cannam@86 13084
cannam@86 13085 test "x$prefix" = xNONE && prefix=$ac_default_prefix
cannam@86 13086 # Let make expand exec_prefix.
cannam@86 13087 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
cannam@86 13088
cannam@86 13089 DEFS=-DHAVE_CONFIG_H
cannam@86 13090
cannam@86 13091 ac_libobjs=
cannam@86 13092 ac_ltlibobjs=
cannam@86 13093 U=
cannam@86 13094 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
cannam@86 13095 # 1. Remove the extension, and $U if already installed.
cannam@86 13096 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
cannam@86 13097 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
cannam@86 13098 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
cannam@86 13099 # will be set to the directory where LIBOBJS objects are built.
cannam@86 13100 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
cannam@86 13101 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cannam@86 13102 done
cannam@86 13103 LIBOBJS=$ac_libobjs
cannam@86 13104
cannam@86 13105 LTLIBOBJS=$ac_ltlibobjs
cannam@86 13106
cannam@86 13107
cannam@86 13108 if test -n "$EXEEXT"; then
cannam@86 13109 am__EXEEXT_TRUE=
cannam@86 13110 am__EXEEXT_FALSE='#'
cannam@86 13111 else
cannam@86 13112 am__EXEEXT_TRUE='#'
cannam@86 13113 am__EXEEXT_FALSE=
cannam@86 13114 fi
cannam@86 13115
cannam@86 13116 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cannam@86 13117 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cannam@86 13118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@86 13119 fi
cannam@86 13120 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cannam@86 13121 as_fn_error $? "conditional \"AMDEP\" was never defined.
cannam@86 13122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@86 13123 fi
cannam@86 13124 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cannam@86 13125 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cannam@86 13126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@86 13127 fi
cannam@86 13128 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
cannam@86 13129 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
cannam@86 13130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@86 13131 fi
cannam@86 13132 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
cannam@86 13133 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
cannam@86 13134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@86 13135 fi
cannam@86 13136 if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
cannam@86 13137 as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
cannam@86 13138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@86 13139 fi
cannam@86 13140
cannam@86 13141 : "${CONFIG_STATUS=./config.status}"
cannam@86 13142 ac_write_fail=0
cannam@86 13143 ac_clean_files_save=$ac_clean_files
cannam@86 13144 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cannam@86 13145 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cannam@86 13146 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cannam@86 13147 as_write_fail=0
cannam@86 13148 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cannam@86 13149 #! $SHELL
cannam@86 13150 # Generated by $as_me.
cannam@86 13151 # Run this file to recreate the current configuration.
cannam@86 13152 # Compiler output produced by configure, useful for debugging
cannam@86 13153 # configure, is in config.log if it exists.
cannam@86 13154
cannam@86 13155 debug=false
cannam@86 13156 ac_cs_recheck=false
cannam@86 13157 ac_cs_silent=false
cannam@86 13158
cannam@86 13159 SHELL=\${CONFIG_SHELL-$SHELL}
cannam@86 13160 export SHELL
cannam@86 13161 _ASEOF
cannam@86 13162 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
cannam@86 13163 ## -------------------- ##
cannam@86 13164 ## M4sh Initialization. ##
cannam@86 13165 ## -------------------- ##
cannam@86 13166
cannam@86 13167 # Be more Bourne compatible
cannam@86 13168 DUALCASE=1; export DUALCASE # for MKS sh
cannam@86 13169 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cannam@86 13170 emulate sh
cannam@86 13171 NULLCMD=:
cannam@86 13172 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
cannam@86 13173 # is contrary to our usage. Disable this feature.
cannam@86 13174 alias -g '${1+"$@"}'='"$@"'
cannam@86 13175 setopt NO_GLOB_SUBST
cannam@86 13176 else
cannam@86 13177 case `(set -o) 2>/dev/null` in #(
cannam@86 13178 *posix*) :
cannam@86 13179 set -o posix ;; #(
cannam@86 13180 *) :
cannam@86 13181 ;;
cannam@86 13182 esac
cannam@86 13183 fi
cannam@86 13184
cannam@86 13185
cannam@86 13186 as_nl='
cannam@86 13187 '
cannam@86 13188 export as_nl
cannam@86 13189 # Printing a long string crashes Solaris 7 /usr/bin/printf.
cannam@86 13190 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@86 13191 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@86 13192 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@86 13193 # Prefer a ksh shell builtin over an external printf program on Solaris,
cannam@86 13194 # but without wasting forks for bash or zsh.
cannam@86 13195 if test -z "$BASH_VERSION$ZSH_VERSION" \
cannam@86 13196 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@86 13197 as_echo='print -r --'
cannam@86 13198 as_echo_n='print -rn --'
cannam@86 13199 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@86 13200 as_echo='printf %s\n'
cannam@86 13201 as_echo_n='printf %s'
cannam@86 13202 else
cannam@86 13203 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
cannam@86 13204 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
cannam@86 13205 as_echo_n='/usr/ucb/echo -n'
cannam@86 13206 else
cannam@86 13207 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
cannam@86 13208 as_echo_n_body='eval
cannam@86 13209 arg=$1;
cannam@86 13210 case $arg in #(
cannam@86 13211 *"$as_nl"*)
cannam@86 13212 expr "X$arg" : "X\\(.*\\)$as_nl";
cannam@86 13213 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
cannam@86 13214 esac;
cannam@86 13215 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
cannam@86 13216 '
cannam@86 13217 export as_echo_n_body
cannam@86 13218 as_echo_n='sh -c $as_echo_n_body as_echo'
cannam@86 13219 fi
cannam@86 13220 export as_echo_body
cannam@86 13221 as_echo='sh -c $as_echo_body as_echo'
cannam@86 13222 fi
cannam@86 13223
cannam@86 13224 # The user is always right.
cannam@86 13225 if test "${PATH_SEPARATOR+set}" != set; then
cannam@86 13226 PATH_SEPARATOR=:
cannam@86 13227 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
cannam@86 13228 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
cannam@86 13229 PATH_SEPARATOR=';'
cannam@86 13230 }
cannam@86 13231 fi
cannam@86 13232
cannam@86 13233
cannam@86 13234 # IFS
cannam@86 13235 # We need space, tab and new line, in precisely that order. Quoting is
cannam@86 13236 # there to prevent editors from complaining about space-tab.
cannam@86 13237 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
cannam@86 13238 # splitting by setting IFS to empty value.)
cannam@86 13239 IFS=" "" $as_nl"
cannam@86 13240
cannam@86 13241 # Find who we are. Look in the path if we contain no directory separator.
cannam@86 13242 as_myself=
cannam@86 13243 case $0 in #((
cannam@86 13244 *[\\/]* ) as_myself=$0 ;;
cannam@86 13245 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 13246 for as_dir in $PATH
cannam@86 13247 do
cannam@86 13248 IFS=$as_save_IFS
cannam@86 13249 test -z "$as_dir" && as_dir=.
cannam@86 13250 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
cannam@86 13251 done
cannam@86 13252 IFS=$as_save_IFS
cannam@86 13253
cannam@86 13254 ;;
cannam@86 13255 esac
cannam@86 13256 # We did not find ourselves, most probably we were run as `sh COMMAND'
cannam@86 13257 # in which case we are not to be found in the path.
cannam@86 13258 if test "x$as_myself" = x; then
cannam@86 13259 as_myself=$0
cannam@86 13260 fi
cannam@86 13261 if test ! -f "$as_myself"; then
cannam@86 13262 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cannam@86 13263 exit 1
cannam@86 13264 fi
cannam@86 13265
cannam@86 13266 # Unset variables that we do not need and which cause bugs (e.g. in
cannam@86 13267 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
cannam@86 13268 # suppresses any "Segmentation fault" message there. '((' could
cannam@86 13269 # trigger a bug in pdksh 5.2.14.
cannam@86 13270 for as_var in BASH_ENV ENV MAIL MAILPATH
cannam@86 13271 do eval test x\${$as_var+set} = xset \
cannam@86 13272 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cannam@86 13273 done
cannam@86 13274 PS1='$ '
cannam@86 13275 PS2='> '
cannam@86 13276 PS4='+ '
cannam@86 13277
cannam@86 13278 # NLS nuisances.
cannam@86 13279 LC_ALL=C
cannam@86 13280 export LC_ALL
cannam@86 13281 LANGUAGE=C
cannam@86 13282 export LANGUAGE
cannam@86 13283
cannam@86 13284 # CDPATH.
cannam@86 13285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cannam@86 13286
cannam@86 13287
cannam@86 13288 # as_fn_error STATUS ERROR [LINENO LOG_FD]
cannam@86 13289 # ----------------------------------------
cannam@86 13290 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
cannam@86 13291 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cannam@86 13292 # script with STATUS, using 1 if that was 0.
cannam@86 13293 as_fn_error ()
cannam@86 13294 {
cannam@86 13295 as_status=$1; test $as_status -eq 0 && as_status=1
cannam@86 13296 if test "$4"; then
cannam@86 13297 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@86 13298 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cannam@86 13299 fi
cannam@86 13300 $as_echo "$as_me: error: $2" >&2
cannam@86 13301 as_fn_exit $as_status
cannam@86 13302 } # as_fn_error
cannam@86 13303
cannam@86 13304
cannam@86 13305 # as_fn_set_status STATUS
cannam@86 13306 # -----------------------
cannam@86 13307 # Set $? to STATUS, without forking.
cannam@86 13308 as_fn_set_status ()
cannam@86 13309 {
cannam@86 13310 return $1
cannam@86 13311 } # as_fn_set_status
cannam@86 13312
cannam@86 13313 # as_fn_exit STATUS
cannam@86 13314 # -----------------
cannam@86 13315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
cannam@86 13316 as_fn_exit ()
cannam@86 13317 {
cannam@86 13318 set +e
cannam@86 13319 as_fn_set_status $1
cannam@86 13320 exit $1
cannam@86 13321 } # as_fn_exit
cannam@86 13322
cannam@86 13323 # as_fn_unset VAR
cannam@86 13324 # ---------------
cannam@86 13325 # Portably unset VAR.
cannam@86 13326 as_fn_unset ()
cannam@86 13327 {
cannam@86 13328 { eval $1=; unset $1;}
cannam@86 13329 }
cannam@86 13330 as_unset=as_fn_unset
cannam@86 13331 # as_fn_append VAR VALUE
cannam@86 13332 # ----------------------
cannam@86 13333 # Append the text in VALUE to the end of the definition contained in VAR. Take
cannam@86 13334 # advantage of any shell optimizations that allow amortized linear growth over
cannam@86 13335 # repeated appends, instead of the typical quadratic growth present in naive
cannam@86 13336 # implementations.
cannam@86 13337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
cannam@86 13338 eval 'as_fn_append ()
cannam@86 13339 {
cannam@86 13340 eval $1+=\$2
cannam@86 13341 }'
cannam@86 13342 else
cannam@86 13343 as_fn_append ()
cannam@86 13344 {
cannam@86 13345 eval $1=\$$1\$2
cannam@86 13346 }
cannam@86 13347 fi # as_fn_append
cannam@86 13348
cannam@86 13349 # as_fn_arith ARG...
cannam@86 13350 # ------------------
cannam@86 13351 # Perform arithmetic evaluation on the ARGs, and store the result in the
cannam@86 13352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
cannam@86 13353 # must be portable across $(()) and expr.
cannam@86 13354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
cannam@86 13355 eval 'as_fn_arith ()
cannam@86 13356 {
cannam@86 13357 as_val=$(( $* ))
cannam@86 13358 }'
cannam@86 13359 else
cannam@86 13360 as_fn_arith ()
cannam@86 13361 {
cannam@86 13362 as_val=`expr "$@" || test $? -eq 1`
cannam@86 13363 }
cannam@86 13364 fi # as_fn_arith
cannam@86 13365
cannam@86 13366
cannam@86 13367 if expr a : '\(a\)' >/dev/null 2>&1 &&
cannam@86 13368 test "X`expr 00001 : '.*\(...\)'`" = X001; then
cannam@86 13369 as_expr=expr
cannam@86 13370 else
cannam@86 13371 as_expr=false
cannam@86 13372 fi
cannam@86 13373
cannam@86 13374 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
cannam@86 13375 as_basename=basename
cannam@86 13376 else
cannam@86 13377 as_basename=false
cannam@86 13378 fi
cannam@86 13379
cannam@86 13380 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
cannam@86 13381 as_dirname=dirname
cannam@86 13382 else
cannam@86 13383 as_dirname=false
cannam@86 13384 fi
cannam@86 13385
cannam@86 13386 as_me=`$as_basename -- "$0" ||
cannam@86 13387 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
cannam@86 13388 X"$0" : 'X\(//\)$' \| \
cannam@86 13389 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
cannam@86 13390 $as_echo X/"$0" |
cannam@86 13391 sed '/^.*\/\([^/][^/]*\)\/*$/{
cannam@86 13392 s//\1/
cannam@86 13393 q
cannam@86 13394 }
cannam@86 13395 /^X\/\(\/\/\)$/{
cannam@86 13396 s//\1/
cannam@86 13397 q
cannam@86 13398 }
cannam@86 13399 /^X\/\(\/\).*/{
cannam@86 13400 s//\1/
cannam@86 13401 q
cannam@86 13402 }
cannam@86 13403 s/.*/./; q'`
cannam@86 13404
cannam@86 13405 # Avoid depending upon Character Ranges.
cannam@86 13406 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
cannam@86 13407 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
cannam@86 13408 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
cannam@86 13409 as_cr_digits='0123456789'
cannam@86 13410 as_cr_alnum=$as_cr_Letters$as_cr_digits
cannam@86 13411
cannam@86 13412 ECHO_C= ECHO_N= ECHO_T=
cannam@86 13413 case `echo -n x` in #(((((
cannam@86 13414 -n*)
cannam@86 13415 case `echo 'xy\c'` in
cannam@86 13416 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cannam@86 13417 xy) ECHO_C='\c';;
cannam@86 13418 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
cannam@86 13419 ECHO_T=' ';;
cannam@86 13420 esac;;
cannam@86 13421 *)
cannam@86 13422 ECHO_N='-n';;
cannam@86 13423 esac
cannam@86 13424
cannam@86 13425 rm -f conf$$ conf$$.exe conf$$.file
cannam@86 13426 if test -d conf$$.dir; then
cannam@86 13427 rm -f conf$$.dir/conf$$.file
cannam@86 13428 else
cannam@86 13429 rm -f conf$$.dir
cannam@86 13430 mkdir conf$$.dir 2>/dev/null
cannam@86 13431 fi
cannam@86 13432 if (echo >conf$$.file) 2>/dev/null; then
cannam@86 13433 if ln -s conf$$.file conf$$ 2>/dev/null; then
cannam@86 13434 as_ln_s='ln -s'
cannam@86 13435 # ... but there are two gotchas:
cannam@86 13436 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
cannam@86 13437 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cannam@86 13438 # In both cases, we have to default to `cp -p'.
cannam@86 13439 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cannam@86 13440 as_ln_s='cp -p'
cannam@86 13441 elif ln conf$$.file conf$$ 2>/dev/null; then
cannam@86 13442 as_ln_s=ln
cannam@86 13443 else
cannam@86 13444 as_ln_s='cp -p'
cannam@86 13445 fi
cannam@86 13446 else
cannam@86 13447 as_ln_s='cp -p'
cannam@86 13448 fi
cannam@86 13449 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
cannam@86 13450 rmdir conf$$.dir 2>/dev/null
cannam@86 13451
cannam@86 13452
cannam@86 13453 # as_fn_mkdir_p
cannam@86 13454 # -------------
cannam@86 13455 # Create "$as_dir" as a directory, including parents if necessary.
cannam@86 13456 as_fn_mkdir_p ()
cannam@86 13457 {
cannam@86 13458
cannam@86 13459 case $as_dir in #(
cannam@86 13460 -*) as_dir=./$as_dir;;
cannam@86 13461 esac
cannam@86 13462 test -d "$as_dir" || eval $as_mkdir_p || {
cannam@86 13463 as_dirs=
cannam@86 13464 while :; do
cannam@86 13465 case $as_dir in #(
cannam@86 13466 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
cannam@86 13467 *) as_qdir=$as_dir;;
cannam@86 13468 esac
cannam@86 13469 as_dirs="'$as_qdir' $as_dirs"
cannam@86 13470 as_dir=`$as_dirname -- "$as_dir" ||
cannam@86 13471 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@86 13472 X"$as_dir" : 'X\(//\)[^/]' \| \
cannam@86 13473 X"$as_dir" : 'X\(//\)$' \| \
cannam@86 13474 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
cannam@86 13475 $as_echo X"$as_dir" |
cannam@86 13476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@86 13477 s//\1/
cannam@86 13478 q
cannam@86 13479 }
cannam@86 13480 /^X\(\/\/\)[^/].*/{
cannam@86 13481 s//\1/
cannam@86 13482 q
cannam@86 13483 }
cannam@86 13484 /^X\(\/\/\)$/{
cannam@86 13485 s//\1/
cannam@86 13486 q
cannam@86 13487 }
cannam@86 13488 /^X\(\/\).*/{
cannam@86 13489 s//\1/
cannam@86 13490 q
cannam@86 13491 }
cannam@86 13492 s/.*/./; q'`
cannam@86 13493 test -d "$as_dir" && break
cannam@86 13494 done
cannam@86 13495 test -z "$as_dirs" || eval "mkdir $as_dirs"
cannam@86 13496 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cannam@86 13497
cannam@86 13498
cannam@86 13499 } # as_fn_mkdir_p
cannam@86 13500 if mkdir -p . 2>/dev/null; then
cannam@86 13501 as_mkdir_p='mkdir -p "$as_dir"'
cannam@86 13502 else
cannam@86 13503 test -d ./-p && rmdir ./-p
cannam@86 13504 as_mkdir_p=false
cannam@86 13505 fi
cannam@86 13506
cannam@86 13507 if test -x / >/dev/null 2>&1; then
cannam@86 13508 as_test_x='test -x'
cannam@86 13509 else
cannam@86 13510 if ls -dL / >/dev/null 2>&1; then
cannam@86 13511 as_ls_L_option=L
cannam@86 13512 else
cannam@86 13513 as_ls_L_option=
cannam@86 13514 fi
cannam@86 13515 as_test_x='
cannam@86 13516 eval sh -c '\''
cannam@86 13517 if test -d "$1"; then
cannam@86 13518 test -d "$1/.";
cannam@86 13519 else
cannam@86 13520 case $1 in #(
cannam@86 13521 -*)set "./$1";;
cannam@86 13522 esac;
cannam@86 13523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cannam@86 13524 ???[sx]*):;;*)false;;esac;fi
cannam@86 13525 '\'' sh
cannam@86 13526 '
cannam@86 13527 fi
cannam@86 13528 as_executable_p=$as_test_x
cannam@86 13529
cannam@86 13530 # Sed expression to map a string onto a valid CPP name.
cannam@86 13531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
cannam@86 13532
cannam@86 13533 # Sed expression to map a string onto a valid variable name.
cannam@86 13534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
cannam@86 13535
cannam@86 13536
cannam@86 13537 exec 6>&1
cannam@86 13538 ## ----------------------------------- ##
cannam@86 13539 ## Main body of $CONFIG_STATUS script. ##
cannam@86 13540 ## ----------------------------------- ##
cannam@86 13541 _ASEOF
cannam@86 13542 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cannam@86 13543
cannam@86 13544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@86 13545 # Save the log message, to keep $0 and so on meaningful, and to
cannam@86 13546 # report actual input values of CONFIG_FILES etc. instead of their
cannam@86 13547 # values after options handling.
cannam@86 13548 ac_log="
cannam@86 13549 This file was extended by libvorbis $as_me 1.3.3, which was
cannam@86 13550 generated by GNU Autoconf 2.68. Invocation command line was
cannam@86 13551
cannam@86 13552 CONFIG_FILES = $CONFIG_FILES
cannam@86 13553 CONFIG_HEADERS = $CONFIG_HEADERS
cannam@86 13554 CONFIG_LINKS = $CONFIG_LINKS
cannam@86 13555 CONFIG_COMMANDS = $CONFIG_COMMANDS
cannam@86 13556 $ $0 $@
cannam@86 13557
cannam@86 13558 on `(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@86 13559 "
cannam@86 13560
cannam@86 13561 _ACEOF
cannam@86 13562
cannam@86 13563 case $ac_config_files in *"
cannam@86 13564 "*) set x $ac_config_files; shift; ac_config_files=$*;;
cannam@86 13565 esac
cannam@86 13566
cannam@86 13567 case $ac_config_headers in *"
cannam@86 13568 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
cannam@86 13569 esac
cannam@86 13570
cannam@86 13571
cannam@86 13572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@86 13573 # Files that config.status was made for.
cannam@86 13574 config_files="$ac_config_files"
cannam@86 13575 config_headers="$ac_config_headers"
cannam@86 13576 config_commands="$ac_config_commands"
cannam@86 13577
cannam@86 13578 _ACEOF
cannam@86 13579
cannam@86 13580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@86 13581 ac_cs_usage="\
cannam@86 13582 \`$as_me' instantiates files and other configuration actions
cannam@86 13583 from templates according to the current configuration. Unless the files
cannam@86 13584 and actions are specified as TAGs, all are instantiated by default.
cannam@86 13585
cannam@86 13586 Usage: $0 [OPTION]... [TAG]...
cannam@86 13587
cannam@86 13588 -h, --help print this help, then exit
cannam@86 13589 -V, --version print version number and configuration settings, then exit
cannam@86 13590 --config print configuration, then exit
cannam@86 13591 -q, --quiet, --silent
cannam@86 13592 do not print progress messages
cannam@86 13593 -d, --debug don't remove temporary files
cannam@86 13594 --recheck update $as_me by reconfiguring in the same conditions
cannam@86 13595 --file=FILE[:TEMPLATE]
cannam@86 13596 instantiate the configuration file FILE
cannam@86 13597 --header=FILE[:TEMPLATE]
cannam@86 13598 instantiate the configuration header FILE
cannam@86 13599
cannam@86 13600 Configuration files:
cannam@86 13601 $config_files
cannam@86 13602
cannam@86 13603 Configuration headers:
cannam@86 13604 $config_headers
cannam@86 13605
cannam@86 13606 Configuration commands:
cannam@86 13607 $config_commands
cannam@86 13608
cannam@86 13609 Report bugs to <vorbis-dev@xiph.org>."
cannam@86 13610
cannam@86 13611 _ACEOF
cannam@86 13612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@86 13613 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cannam@86 13614 ac_cs_version="\\
cannam@86 13615 libvorbis config.status 1.3.3
cannam@86 13616 configured by $0, generated by GNU Autoconf 2.68,
cannam@86 13617 with options \\"\$ac_cs_config\\"
cannam@86 13618
cannam@86 13619 Copyright (C) 2010 Free Software Foundation, Inc.
cannam@86 13620 This config.status script is free software; the Free Software Foundation
cannam@86 13621 gives unlimited permission to copy, distribute and modify it."
cannam@86 13622
cannam@86 13623 ac_pwd='$ac_pwd'
cannam@86 13624 srcdir='$srcdir'
cannam@86 13625 INSTALL='$INSTALL'
cannam@86 13626 MKDIR_P='$MKDIR_P'
cannam@86 13627 AWK='$AWK'
cannam@86 13628 test -n "\$AWK" || AWK=awk
cannam@86 13629 _ACEOF
cannam@86 13630
cannam@86 13631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@86 13632 # The default lists apply if the user does not specify any file.
cannam@86 13633 ac_need_defaults=:
cannam@86 13634 while test $# != 0
cannam@86 13635 do
cannam@86 13636 case $1 in
cannam@86 13637 --*=?*)
cannam@86 13638 ac_option=`expr "X$1" : 'X\([^=]*\)='`
cannam@86 13639 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
cannam@86 13640 ac_shift=:
cannam@86 13641 ;;
cannam@86 13642 --*=)
cannam@86 13643 ac_option=`expr "X$1" : 'X\([^=]*\)='`
cannam@86 13644 ac_optarg=
cannam@86 13645 ac_shift=:
cannam@86 13646 ;;
cannam@86 13647 *)
cannam@86 13648 ac_option=$1
cannam@86 13649 ac_optarg=$2
cannam@86 13650 ac_shift=shift
cannam@86 13651 ;;
cannam@86 13652 esac
cannam@86 13653
cannam@86 13654 case $ac_option in
cannam@86 13655 # Handling of the options.
cannam@86 13656 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
cannam@86 13657 ac_cs_recheck=: ;;
cannam@86 13658 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
cannam@86 13659 $as_echo "$ac_cs_version"; exit ;;
cannam@86 13660 --config | --confi | --conf | --con | --co | --c )
cannam@86 13661 $as_echo "$ac_cs_config"; exit ;;
cannam@86 13662 --debug | --debu | --deb | --de | --d | -d )
cannam@86 13663 debug=: ;;
cannam@86 13664 --file | --fil | --fi | --f )
cannam@86 13665 $ac_shift
cannam@86 13666 case $ac_optarg in
cannam@86 13667 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@86 13668 '') as_fn_error $? "missing file argument" ;;
cannam@86 13669 esac
cannam@86 13670 as_fn_append CONFIG_FILES " '$ac_optarg'"
cannam@86 13671 ac_need_defaults=false;;
cannam@86 13672 --header | --heade | --head | --hea )
cannam@86 13673 $ac_shift
cannam@86 13674 case $ac_optarg in
cannam@86 13675 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@86 13676 esac
cannam@86 13677 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cannam@86 13678 ac_need_defaults=false;;
cannam@86 13679 --he | --h)
cannam@86 13680 # Conflict between --help and --header
cannam@86 13681 as_fn_error $? "ambiguous option: \`$1'
cannam@86 13682 Try \`$0 --help' for more information.";;
cannam@86 13683 --help | --hel | -h )
cannam@86 13684 $as_echo "$ac_cs_usage"; exit ;;
cannam@86 13685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@86 13686 | -silent | --silent | --silen | --sile | --sil | --si | --s)
cannam@86 13687 ac_cs_silent=: ;;
cannam@86 13688
cannam@86 13689 # This is an error.
cannam@86 13690 -*) as_fn_error $? "unrecognized option: \`$1'
cannam@86 13691 Try \`$0 --help' for more information." ;;
cannam@86 13692
cannam@86 13693 *) as_fn_append ac_config_targets " $1"
cannam@86 13694 ac_need_defaults=false ;;
cannam@86 13695
cannam@86 13696 esac
cannam@86 13697 shift
cannam@86 13698 done
cannam@86 13699
cannam@86 13700 ac_configure_extra_args=
cannam@86 13701
cannam@86 13702 if $ac_cs_silent; then
cannam@86 13703 exec 6>/dev/null
cannam@86 13704 ac_configure_extra_args="$ac_configure_extra_args --silent"
cannam@86 13705 fi
cannam@86 13706
cannam@86 13707 _ACEOF
cannam@86 13708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@86 13709 if \$ac_cs_recheck; then
cannam@86 13710 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cannam@86 13711 shift
cannam@86 13712 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
cannam@86 13713 CONFIG_SHELL='$SHELL'
cannam@86 13714 export CONFIG_SHELL
cannam@86 13715 exec "\$@"
cannam@86 13716 fi
cannam@86 13717
cannam@86 13718 _ACEOF
cannam@86 13719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@86 13720 exec 5>>config.log
cannam@86 13721 {
cannam@86 13722 echo
cannam@86 13723 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
cannam@86 13724 ## Running $as_me. ##
cannam@86 13725 _ASBOX
cannam@86 13726 $as_echo "$ac_log"
cannam@86 13727 } >&5
cannam@86 13728
cannam@86 13729 _ACEOF
cannam@86 13730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@86 13731 #
cannam@86 13732 # INIT-COMMANDS
cannam@86 13733 #
cannam@86 13734 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
cannam@86 13735
cannam@86 13736
cannam@86 13737 # The HP-UX ksh and POSIX shell print the target directory to stdout
cannam@86 13738 # if CDPATH is set.
cannam@86 13739 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cannam@86 13740
cannam@86 13741 sed_quote_subst='$sed_quote_subst'
cannam@86 13742 double_quote_subst='$double_quote_subst'
cannam@86 13743 delay_variable_subst='$delay_variable_subst'
cannam@86 13744 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
cannam@86 13745 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
cannam@86 13746 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
cannam@86 13747 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
cannam@86 13748 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
cannam@86 13749 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
cannam@86 13750 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
cannam@86 13751 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
cannam@86 13752 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cannam@86 13753 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
cannam@86 13754 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
cannam@86 13755 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
cannam@86 13756 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
cannam@86 13757 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
cannam@86 13758 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
cannam@86 13759 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
cannam@86 13760 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
cannam@86 13761 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
cannam@86 13762 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
cannam@86 13763 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
cannam@86 13764 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
cannam@86 13765 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
cannam@86 13766 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
cannam@86 13767 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
cannam@86 13768 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
cannam@86 13769 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
cannam@86 13770 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
cannam@86 13771 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
cannam@86 13772 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
cannam@86 13773 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
cannam@86 13774 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cannam@86 13775 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
cannam@86 13776 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cannam@86 13777 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
cannam@86 13778 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13779 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
cannam@86 13780 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cannam@86 13781 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
cannam@86 13782 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
cannam@86 13783 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cannam@86 13784 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
cannam@86 13785 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cannam@86 13786 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cannam@86 13787 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
cannam@86 13788 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
cannam@86 13789 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13790 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13791 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13792 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
cannam@86 13793 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
cannam@86 13794 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
cannam@86 13795 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
cannam@86 13796 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
cannam@86 13797 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
cannam@86 13798 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
cannam@86 13799 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@86 13800 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@86 13801 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
cannam@86 13802 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cannam@86 13803 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
cannam@86 13804 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
cannam@86 13805 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cannam@86 13806 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cannam@86 13807 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cannam@86 13808 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
cannam@86 13809 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
cannam@86 13810 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cannam@86 13811 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cannam@86 13812 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
cannam@86 13813 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
cannam@86 13814 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
cannam@86 13815 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
cannam@86 13816 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
cannam@86 13817 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
cannam@86 13818 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13819 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13820 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
cannam@86 13821 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
cannam@86 13822 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
cannam@86 13823 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
cannam@86 13824 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
cannam@86 13825 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13826 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13827 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13828 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13829 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13830 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13831 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
cannam@86 13832 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
cannam@86 13833 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
cannam@86 13834 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cannam@86 13835 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
cannam@86 13836 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
cannam@86 13837 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
cannam@86 13838 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
cannam@86 13839 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
cannam@86 13840 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
cannam@86 13841 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
cannam@86 13842 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
cannam@86 13843 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cannam@86 13844 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
cannam@86 13845 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13846 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
cannam@86 13847 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
cannam@86 13848 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13849 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13850 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
cannam@86 13851 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
cannam@86 13852 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
cannam@86 13853 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
cannam@86 13854 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
cannam@86 13855 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
cannam@86 13856 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
cannam@86 13857 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
cannam@86 13858 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
cannam@86 13859 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
cannam@86 13860 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
cannam@86 13861 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
cannam@86 13862 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13863 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13864 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13865 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
cannam@86 13866 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
cannam@86 13867 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
cannam@86 13868 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
cannam@86 13869 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
cannam@86 13870 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
cannam@86 13871 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
cannam@86 13872 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
cannam@86 13873 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
cannam@86 13874 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
cannam@86 13875
cannam@86 13876 LTCC='$LTCC'
cannam@86 13877 LTCFLAGS='$LTCFLAGS'
cannam@86 13878 compiler='$compiler_DEFAULT'
cannam@86 13879
cannam@86 13880 # A function that is used when there is no print builtin or printf.
cannam@86 13881 func_fallback_echo ()
cannam@86 13882 {
cannam@86 13883 eval 'cat <<_LTECHO_EOF
cannam@86 13884 \$1
cannam@86 13885 _LTECHO_EOF'
cannam@86 13886 }
cannam@86 13887
cannam@86 13888 # Quote evaled strings.
cannam@86 13889 for var in AS \
cannam@86 13890 DLLTOOL \
cannam@86 13891 OBJDUMP \
cannam@86 13892 SHELL \
cannam@86 13893 ECHO \
cannam@86 13894 SED \
cannam@86 13895 GREP \
cannam@86 13896 EGREP \
cannam@86 13897 FGREP \
cannam@86 13898 LD \
cannam@86 13899 NM \
cannam@86 13900 LN_S \
cannam@86 13901 lt_SP2NL \
cannam@86 13902 lt_NL2SP \
cannam@86 13903 reload_flag \
cannam@86 13904 deplibs_check_method \
cannam@86 13905 file_magic_cmd \
cannam@86 13906 file_magic_glob \
cannam@86 13907 want_nocaseglob \
cannam@86 13908 sharedlib_from_linklib_cmd \
cannam@86 13909 AR \
cannam@86 13910 AR_FLAGS \
cannam@86 13911 archiver_list_spec \
cannam@86 13912 STRIP \
cannam@86 13913 RANLIB \
cannam@86 13914 CC \
cannam@86 13915 CFLAGS \
cannam@86 13916 compiler \
cannam@86 13917 lt_cv_sys_global_symbol_pipe \
cannam@86 13918 lt_cv_sys_global_symbol_to_cdecl \
cannam@86 13919 lt_cv_sys_global_symbol_to_c_name_address \
cannam@86 13920 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cannam@86 13921 nm_file_list_spec \
cannam@86 13922 lt_prog_compiler_no_builtin_flag \
cannam@86 13923 lt_prog_compiler_pic \
cannam@86 13924 lt_prog_compiler_wl \
cannam@86 13925 lt_prog_compiler_static \
cannam@86 13926 lt_cv_prog_compiler_c_o \
cannam@86 13927 need_locks \
cannam@86 13928 MANIFEST_TOOL \
cannam@86 13929 DSYMUTIL \
cannam@86 13930 NMEDIT \
cannam@86 13931 LIPO \
cannam@86 13932 OTOOL \
cannam@86 13933 OTOOL64 \
cannam@86 13934 shrext_cmds \
cannam@86 13935 export_dynamic_flag_spec \
cannam@86 13936 whole_archive_flag_spec \
cannam@86 13937 compiler_needs_object \
cannam@86 13938 with_gnu_ld \
cannam@86 13939 allow_undefined_flag \
cannam@86 13940 no_undefined_flag \
cannam@86 13941 hardcode_libdir_flag_spec \
cannam@86 13942 hardcode_libdir_flag_spec_ld \
cannam@86 13943 hardcode_libdir_separator \
cannam@86 13944 exclude_expsyms \
cannam@86 13945 include_expsyms \
cannam@86 13946 file_list_spec \
cannam@86 13947 variables_saved_for_relink \
cannam@86 13948 libname_spec \
cannam@86 13949 library_names_spec \
cannam@86 13950 soname_spec \
cannam@86 13951 install_override_mode \
cannam@86 13952 finish_eval \
cannam@86 13953 old_striplib \
cannam@86 13954 striplib; do
cannam@86 13955 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cannam@86 13956 *[\\\\\\\`\\"\\\$]*)
cannam@86 13957 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cannam@86 13958 ;;
cannam@86 13959 *)
cannam@86 13960 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
cannam@86 13961 ;;
cannam@86 13962 esac
cannam@86 13963 done
cannam@86 13964
cannam@86 13965 # Double-quote double-evaled strings.
cannam@86 13966 for var in reload_cmds \
cannam@86 13967 old_postinstall_cmds \
cannam@86 13968 old_postuninstall_cmds \
cannam@86 13969 old_archive_cmds \
cannam@86 13970 extract_expsyms_cmds \
cannam@86 13971 old_archive_from_new_cmds \
cannam@86 13972 old_archive_from_expsyms_cmds \
cannam@86 13973 archive_cmds \
cannam@86 13974 archive_expsym_cmds \
cannam@86 13975 module_cmds \
cannam@86 13976 module_expsym_cmds \
cannam@86 13977 export_symbols_cmds \
cannam@86 13978 prelink_cmds \
cannam@86 13979 postlink_cmds \
cannam@86 13980 postinstall_cmds \
cannam@86 13981 postuninstall_cmds \
cannam@86 13982 finish_cmds \
cannam@86 13983 sys_lib_search_path_spec \
cannam@86 13984 sys_lib_dlsearch_path_spec; do
cannam@86 13985 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cannam@86 13986 *[\\\\\\\`\\"\\\$]*)
cannam@86 13987 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cannam@86 13988 ;;
cannam@86 13989 *)
cannam@86 13990 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
cannam@86 13991 ;;
cannam@86 13992 esac
cannam@86 13993 done
cannam@86 13994
cannam@86 13995 ac_aux_dir='$ac_aux_dir'
cannam@86 13996 xsi_shell='$xsi_shell'
cannam@86 13997 lt_shell_append='$lt_shell_append'
cannam@86 13998
cannam@86 13999 # See if we are running on zsh, and set the options which allow our
cannam@86 14000 # commands through without removal of \ escapes INIT.
cannam@86 14001 if test -n "\${ZSH_VERSION+set}" ; then
cannam@86 14002 setopt NO_GLOB_SUBST
cannam@86 14003 fi
cannam@86 14004
cannam@86 14005
cannam@86 14006 PACKAGE='$PACKAGE'
cannam@86 14007 VERSION='$VERSION'
cannam@86 14008 TIMESTAMP='$TIMESTAMP'
cannam@86 14009 RM='$RM'
cannam@86 14010 ofile='$ofile'
cannam@86 14011
cannam@86 14012
cannam@86 14013
cannam@86 14014
cannam@86 14015 _ACEOF
cannam@86 14016
cannam@86 14017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@86 14018
cannam@86 14019 # Handling of arguments.
cannam@86 14020 for ac_config_target in $ac_config_targets
cannam@86 14021 do
cannam@86 14022 case $ac_config_target in
cannam@86 14023 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
cannam@86 14024 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
cannam@86 14025 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cannam@86 14026 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
cannam@86 14027 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
cannam@86 14028 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
cannam@86 14029 "lib/modes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/modes/Makefile" ;;
cannam@86 14030 "lib/books/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/Makefile" ;;
cannam@86 14031 "lib/books/coupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/coupled/Makefile" ;;
cannam@86 14032 "lib/books/uncoupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/uncoupled/Makefile" ;;
cannam@86 14033 "lib/books/floor/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/floor/Makefile" ;;
cannam@86 14034 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
cannam@86 14035 "doc/vorbisfile/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisfile/Makefile" ;;
cannam@86 14036 "doc/vorbisenc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisenc/Makefile" ;;
cannam@86 14037 "doc/libvorbis/Makefile") CONFIG_FILES="$CONFIG_FILES doc/libvorbis/Makefile" ;;
cannam@86 14038 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
cannam@86 14039 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
cannam@86 14040 "include/vorbis/Makefile") CONFIG_FILES="$CONFIG_FILES include/vorbis/Makefile" ;;
cannam@86 14041 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
cannam@86 14042 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
cannam@86 14043 "vq/Makefile") CONFIG_FILES="$CONFIG_FILES vq/Makefile" ;;
cannam@86 14044 "libvorbis.spec") CONFIG_FILES="$CONFIG_FILES libvorbis.spec" ;;
cannam@86 14045 "vorbis.pc") CONFIG_FILES="$CONFIG_FILES vorbis.pc" ;;
cannam@86 14046 "vorbisenc.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc.pc" ;;
cannam@86 14047 "vorbisfile.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile.pc" ;;
cannam@86 14048 "vorbis-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbis-uninstalled.pc" ;;
cannam@86 14049 "vorbisenc-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc-uninstalled.pc" ;;
cannam@86 14050 "vorbisfile-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile-uninstalled.pc" ;;
cannam@86 14051
cannam@86 14052 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cannam@86 14053 esac
cannam@86 14054 done
cannam@86 14055
cannam@86 14056
cannam@86 14057 # If the user did not use the arguments to specify the items to instantiate,
cannam@86 14058 # then the envvar interface is used. Set only those that are not.
cannam@86 14059 # We use the long form for the default assignment because of an extremely
cannam@86 14060 # bizarre bug on SunOS 4.1.3.
cannam@86 14061 if $ac_need_defaults; then
cannam@86 14062 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
cannam@86 14063 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
cannam@86 14064 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
cannam@86 14065 fi
cannam@86 14066
cannam@86 14067 # Have a temporary directory for convenience. Make it in the build tree
cannam@86 14068 # simply because there is no reason against having it here, and in addition,
cannam@86 14069 # creating and moving files from /tmp can sometimes cause problems.
cannam@86 14070 # Hook for its removal unless debugging.
cannam@86 14071 # Note that there is a small window in which the directory will not be cleaned:
cannam@86 14072 # after its creation but before its name has been assigned to `$tmp'.
cannam@86 14073 $debug ||
cannam@86 14074 {
cannam@86 14075 tmp= ac_tmp=
cannam@86 14076 trap 'exit_status=$?
cannam@86 14077 : "${ac_tmp:=$tmp}"
cannam@86 14078 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cannam@86 14079 ' 0
cannam@86 14080 trap 'as_fn_exit 1' 1 2 13 15
cannam@86 14081 }
cannam@86 14082 # Create a (secure) tmp directory for tmp files.
cannam@86 14083
cannam@86 14084 {
cannam@86 14085 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cannam@86 14086 test -d "$tmp"
cannam@86 14087 } ||
cannam@86 14088 {
cannam@86 14089 tmp=./conf$$-$RANDOM
cannam@86 14090 (umask 077 && mkdir "$tmp")
cannam@86 14091 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cannam@86 14092 ac_tmp=$tmp
cannam@86 14093
cannam@86 14094 # Set up the scripts for CONFIG_FILES section.
cannam@86 14095 # No need to generate them if there are no CONFIG_FILES.
cannam@86 14096 # This happens for instance with `./config.status config.h'.
cannam@86 14097 if test -n "$CONFIG_FILES"; then
cannam@86 14098
cannam@86 14099
cannam@86 14100 ac_cr=`echo X | tr X '\015'`
cannam@86 14101 # On cygwin, bash can eat \r inside `` if the user requested igncr.
cannam@86 14102 # But we know of no other shell where ac_cr would be empty at this
cannam@86 14103 # point, so we can use a bashism as a fallback.
cannam@86 14104 if test "x$ac_cr" = x; then
cannam@86 14105 eval ac_cr=\$\'\\r\'
cannam@86 14106 fi
cannam@86 14107 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
cannam@86 14108 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cannam@86 14109 ac_cs_awk_cr='\\r'
cannam@86 14110 else
cannam@86 14111 ac_cs_awk_cr=$ac_cr
cannam@86 14112 fi
cannam@86 14113
cannam@86 14114 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cannam@86 14115 _ACEOF
cannam@86 14116
cannam@86 14117
cannam@86 14118 {
cannam@86 14119 echo "cat >conf$$subs.awk <<_ACEOF" &&
cannam@86 14120 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
cannam@86 14121 echo "_ACEOF"
cannam@86 14122 } >conf$$subs.sh ||
cannam@86 14123 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cannam@86 14124 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cannam@86 14125 ac_delim='%!_!# '
cannam@86 14126 for ac_last_try in false false false false false :; do
cannam@86 14127 . ./conf$$subs.sh ||
cannam@86 14128 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cannam@86 14129
cannam@86 14130 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
cannam@86 14131 if test $ac_delim_n = $ac_delim_num; then
cannam@86 14132 break
cannam@86 14133 elif $ac_last_try; then
cannam@86 14134 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cannam@86 14135 else
cannam@86 14136 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
cannam@86 14137 fi
cannam@86 14138 done
cannam@86 14139 rm -f conf$$subs.sh
cannam@86 14140
cannam@86 14141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@86 14142 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cannam@86 14143 _ACEOF
cannam@86 14144 sed -n '
cannam@86 14145 h
cannam@86 14146 s/^/S["/; s/!.*/"]=/
cannam@86 14147 p
cannam@86 14148 g
cannam@86 14149 s/^[^!]*!//
cannam@86 14150 :repl
cannam@86 14151 t repl
cannam@86 14152 s/'"$ac_delim"'$//
cannam@86 14153 t delim
cannam@86 14154 :nl
cannam@86 14155 h
cannam@86 14156 s/\(.\{148\}\)..*/\1/
cannam@86 14157 t more1
cannam@86 14158 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
cannam@86 14159 p
cannam@86 14160 n
cannam@86 14161 b repl
cannam@86 14162 :more1
cannam@86 14163 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
cannam@86 14164 p
cannam@86 14165 g
cannam@86 14166 s/.\{148\}//
cannam@86 14167 t nl
cannam@86 14168 :delim
cannam@86 14169 h
cannam@86 14170 s/\(.\{148\}\)..*/\1/
cannam@86 14171 t more2
cannam@86 14172 s/["\\]/\\&/g; s/^/"/; s/$/"/
cannam@86 14173 p
cannam@86 14174 b
cannam@86 14175 :more2
cannam@86 14176 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
cannam@86 14177 p
cannam@86 14178 g
cannam@86 14179 s/.\{148\}//
cannam@86 14180 t delim
cannam@86 14181 ' <conf$$subs.awk | sed '
cannam@86 14182 /^[^""]/{
cannam@86 14183 N
cannam@86 14184 s/\n//
cannam@86 14185 }
cannam@86 14186 ' >>$CONFIG_STATUS || ac_write_fail=1
cannam@86 14187 rm -f conf$$subs.awk
cannam@86 14188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@86 14189 _ACAWK
cannam@86 14190 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cannam@86 14191 for (key in S) S_is_set[key] = 1
cannam@86 14192 FS = ""
cannam@86 14193
cannam@86 14194 }
cannam@86 14195 {
cannam@86 14196 line = $ 0
cannam@86 14197 nfields = split(line, field, "@")
cannam@86 14198 substed = 0
cannam@86 14199 len = length(field[1])
cannam@86 14200 for (i = 2; i < nfields; i++) {
cannam@86 14201 key = field[i]
cannam@86 14202 keylen = length(key)
cannam@86 14203 if (S_is_set[key]) {
cannam@86 14204 value = S[key]
cannam@86 14205 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
cannam@86 14206 len += length(value) + length(field[++i])
cannam@86 14207 substed = 1
cannam@86 14208 } else
cannam@86 14209 len += 1 + keylen
cannam@86 14210 }
cannam@86 14211
cannam@86 14212 print line
cannam@86 14213 }
cannam@86 14214
cannam@86 14215 _ACAWK
cannam@86 14216 _ACEOF
cannam@86 14217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@86 14218 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
cannam@86 14219 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
cannam@86 14220 else
cannam@86 14221 cat
cannam@86 14222 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cannam@86 14223 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cannam@86 14224 _ACEOF
cannam@86 14225
cannam@86 14226 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
cannam@86 14227 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cannam@86 14228 # trailing colons and then remove the whole line if VPATH becomes empty
cannam@86 14229 # (actually we leave an empty line to preserve line numbers).
cannam@86 14230 if test "x$srcdir" = x.; then
cannam@86 14231 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
cannam@86 14232 h
cannam@86 14233 s///
cannam@86 14234 s/^/:/
cannam@86 14235 s/[ ]*$/:/
cannam@86 14236 s/:\$(srcdir):/:/g
cannam@86 14237 s/:\${srcdir}:/:/g
cannam@86 14238 s/:@srcdir@:/:/g
cannam@86 14239 s/^:*//
cannam@86 14240 s/:*$//
cannam@86 14241 x
cannam@86 14242 s/\(=[ ]*\).*/\1/
cannam@86 14243 G
cannam@86 14244 s/\n//
cannam@86 14245 s/^[^=]*=[ ]*$//
cannam@86 14246 }'
cannam@86 14247 fi
cannam@86 14248
cannam@86 14249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@86 14250 fi # test -n "$CONFIG_FILES"
cannam@86 14251
cannam@86 14252 # Set up the scripts for CONFIG_HEADERS section.
cannam@86 14253 # No need to generate them if there are no CONFIG_HEADERS.
cannam@86 14254 # This happens for instance with `./config.status Makefile'.
cannam@86 14255 if test -n "$CONFIG_HEADERS"; then
cannam@86 14256 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cannam@86 14257 BEGIN {
cannam@86 14258 _ACEOF
cannam@86 14259
cannam@86 14260 # Transform confdefs.h into an awk script `defines.awk', embedded as
cannam@86 14261 # here-document in config.status, that substitutes the proper values into
cannam@86 14262 # config.h.in to produce config.h.
cannam@86 14263
cannam@86 14264 # Create a delimiter string that does not exist in confdefs.h, to ease
cannam@86 14265 # handling of long lines.
cannam@86 14266 ac_delim='%!_!# '
cannam@86 14267 for ac_last_try in false false :; do
cannam@86 14268 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
cannam@86 14269 if test -z "$ac_tt"; then
cannam@86 14270 break
cannam@86 14271 elif $ac_last_try; then
cannam@86 14272 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cannam@86 14273 else
cannam@86 14274 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
cannam@86 14275 fi
cannam@86 14276 done
cannam@86 14277
cannam@86 14278 # For the awk script, D is an array of macro values keyed by name,
cannam@86 14279 # likewise P contains macro parameters if any. Preserve backslash
cannam@86 14280 # newline sequences.
cannam@86 14281
cannam@86 14282 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
cannam@86 14283 sed -n '
cannam@86 14284 s/.\{148\}/&'"$ac_delim"'/g
cannam@86 14285 t rset
cannam@86 14286 :rset
cannam@86 14287 s/^[ ]*#[ ]*define[ ][ ]*/ /
cannam@86 14288 t def
cannam@86 14289 d
cannam@86 14290 :def
cannam@86 14291 s/\\$//
cannam@86 14292 t bsnl
cannam@86 14293 s/["\\]/\\&/g
cannam@86 14294 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
cannam@86 14295 D["\1"]=" \3"/p
cannam@86 14296 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
cannam@86 14297 d
cannam@86 14298 :bsnl
cannam@86 14299 s/["\\]/\\&/g
cannam@86 14300 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
cannam@86 14301 D["\1"]=" \3\\\\\\n"\\/p
cannam@86 14302 t cont
cannam@86 14303 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
cannam@86 14304 t cont
cannam@86 14305 d
cannam@86 14306 :cont
cannam@86 14307 n
cannam@86 14308 s/.\{148\}/&'"$ac_delim"'/g
cannam@86 14309 t clear
cannam@86 14310 :clear
cannam@86 14311 s/\\$//
cannam@86 14312 t bsnlc
cannam@86 14313 s/["\\]/\\&/g; s/^/"/; s/$/"/p
cannam@86 14314 d
cannam@86 14315 :bsnlc
cannam@86 14316 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
cannam@86 14317 b cont
cannam@86 14318 ' <confdefs.h | sed '
cannam@86 14319 s/'"$ac_delim"'/"\\\
cannam@86 14320 "/g' >>$CONFIG_STATUS || ac_write_fail=1
cannam@86 14321
cannam@86 14322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@86 14323 for (key in D) D_is_set[key] = 1
cannam@86 14324 FS = ""
cannam@86 14325 }
cannam@86 14326 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
cannam@86 14327 line = \$ 0
cannam@86 14328 split(line, arg, " ")
cannam@86 14329 if (arg[1] == "#") {
cannam@86 14330 defundef = arg[2]
cannam@86 14331 mac1 = arg[3]
cannam@86 14332 } else {
cannam@86 14333 defundef = substr(arg[1], 2)
cannam@86 14334 mac1 = arg[2]
cannam@86 14335 }
cannam@86 14336 split(mac1, mac2, "(") #)
cannam@86 14337 macro = mac2[1]
cannam@86 14338 prefix = substr(line, 1, index(line, defundef) - 1)
cannam@86 14339 if (D_is_set[macro]) {
cannam@86 14340 # Preserve the white space surrounding the "#".
cannam@86 14341 print prefix "define", macro P[macro] D[macro]
cannam@86 14342 next
cannam@86 14343 } else {
cannam@86 14344 # Replace #undef with comments. This is necessary, for example,
cannam@86 14345 # in the case of _POSIX_SOURCE, which is predefined and required
cannam@86 14346 # on some systems where configure will not decide to define it.
cannam@86 14347 if (defundef == "undef") {
cannam@86 14348 print "/*", prefix defundef, macro, "*/"
cannam@86 14349 next
cannam@86 14350 }
cannam@86 14351 }
cannam@86 14352 }
cannam@86 14353 { print }
cannam@86 14354 _ACAWK
cannam@86 14355 _ACEOF
cannam@86 14356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@86 14357 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cannam@86 14358 fi # test -n "$CONFIG_HEADERS"
cannam@86 14359
cannam@86 14360
cannam@86 14361 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
cannam@86 14362 shift
cannam@86 14363 for ac_tag
cannam@86 14364 do
cannam@86 14365 case $ac_tag in
cannam@86 14366 :[FHLC]) ac_mode=$ac_tag; continue;;
cannam@86 14367 esac
cannam@86 14368 case $ac_mode$ac_tag in
cannam@86 14369 :[FHL]*:*);;
cannam@86 14370 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cannam@86 14371 :[FH]-) ac_tag=-:-;;
cannam@86 14372 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
cannam@86 14373 esac
cannam@86 14374 ac_save_IFS=$IFS
cannam@86 14375 IFS=:
cannam@86 14376 set x $ac_tag
cannam@86 14377 IFS=$ac_save_IFS
cannam@86 14378 shift
cannam@86 14379 ac_file=$1
cannam@86 14380 shift
cannam@86 14381
cannam@86 14382 case $ac_mode in
cannam@86 14383 :L) ac_source=$1;;
cannam@86 14384 :[FH])
cannam@86 14385 ac_file_inputs=
cannam@86 14386 for ac_f
cannam@86 14387 do
cannam@86 14388 case $ac_f in
cannam@86 14389 -) ac_f="$ac_tmp/stdin";;
cannam@86 14390 *) # Look for the file first in the build tree, then in the source tree
cannam@86 14391 # (if the path is not absolute). The absolute path cannot be DOS-style,
cannam@86 14392 # because $ac_f cannot contain `:'.
cannam@86 14393 test -f "$ac_f" ||
cannam@86 14394 case $ac_f in
cannam@86 14395 [\\/$]*) false;;
cannam@86 14396 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
cannam@86 14397 esac ||
cannam@86 14398 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cannam@86 14399 esac
cannam@86 14400 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cannam@86 14401 as_fn_append ac_file_inputs " '$ac_f'"
cannam@86 14402 done
cannam@86 14403
cannam@86 14404 # Let's still pretend it is `configure' which instantiates (i.e., don't
cannam@86 14405 # use $as_me), people would be surprised to read:
cannam@86 14406 # /* config.h. Generated by config.status. */
cannam@86 14407 configure_input='Generated from '`
cannam@86 14408 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
cannam@86 14409 `' by configure.'
cannam@86 14410 if test x"$ac_file" != x-; then
cannam@86 14411 configure_input="$ac_file. $configure_input"
cannam@86 14412 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cannam@86 14413 $as_echo "$as_me: creating $ac_file" >&6;}
cannam@86 14414 fi
cannam@86 14415 # Neutralize special characters interpreted by sed in replacement strings.
cannam@86 14416 case $configure_input in #(
cannam@86 14417 *\&* | *\|* | *\\* )
cannam@86 14418 ac_sed_conf_input=`$as_echo "$configure_input" |
cannam@86 14419 sed 's/[\\\\&|]/\\\\&/g'`;; #(
cannam@86 14420 *) ac_sed_conf_input=$configure_input;;
cannam@86 14421 esac
cannam@86 14422
cannam@86 14423 case $ac_tag in
cannam@86 14424 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cannam@86 14425 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cannam@86 14426 esac
cannam@86 14427 ;;
cannam@86 14428 esac
cannam@86 14429
cannam@86 14430 ac_dir=`$as_dirname -- "$ac_file" ||
cannam@86 14431 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@86 14432 X"$ac_file" : 'X\(//\)[^/]' \| \
cannam@86 14433 X"$ac_file" : 'X\(//\)$' \| \
cannam@86 14434 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
cannam@86 14435 $as_echo X"$ac_file" |
cannam@86 14436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@86 14437 s//\1/
cannam@86 14438 q
cannam@86 14439 }
cannam@86 14440 /^X\(\/\/\)[^/].*/{
cannam@86 14441 s//\1/
cannam@86 14442 q
cannam@86 14443 }
cannam@86 14444 /^X\(\/\/\)$/{
cannam@86 14445 s//\1/
cannam@86 14446 q
cannam@86 14447 }
cannam@86 14448 /^X\(\/\).*/{
cannam@86 14449 s//\1/
cannam@86 14450 q
cannam@86 14451 }
cannam@86 14452 s/.*/./; q'`
cannam@86 14453 as_dir="$ac_dir"; as_fn_mkdir_p
cannam@86 14454 ac_builddir=.
cannam@86 14455
cannam@86 14456 case "$ac_dir" in
cannam@86 14457 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@86 14458 *)
cannam@86 14459 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
cannam@86 14460 # A ".." for each directory in $ac_dir_suffix.
cannam@86 14461 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
cannam@86 14462 case $ac_top_builddir_sub in
cannam@86 14463 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@86 14464 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
cannam@86 14465 esac ;;
cannam@86 14466 esac
cannam@86 14467 ac_abs_top_builddir=$ac_pwd
cannam@86 14468 ac_abs_builddir=$ac_pwd$ac_dir_suffix
cannam@86 14469 # for backward compatibility:
cannam@86 14470 ac_top_builddir=$ac_top_build_prefix
cannam@86 14471
cannam@86 14472 case $srcdir in
cannam@86 14473 .) # We are building in place.
cannam@86 14474 ac_srcdir=.
cannam@86 14475 ac_top_srcdir=$ac_top_builddir_sub
cannam@86 14476 ac_abs_top_srcdir=$ac_pwd ;;
cannam@86 14477 [\\/]* | ?:[\\/]* ) # Absolute name.
cannam@86 14478 ac_srcdir=$srcdir$ac_dir_suffix;
cannam@86 14479 ac_top_srcdir=$srcdir
cannam@86 14480 ac_abs_top_srcdir=$srcdir ;;
cannam@86 14481 *) # Relative name.
cannam@86 14482 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
cannam@86 14483 ac_top_srcdir=$ac_top_build_prefix$srcdir
cannam@86 14484 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
cannam@86 14485 esac
cannam@86 14486 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
cannam@86 14487
cannam@86 14488
cannam@86 14489 case $ac_mode in
cannam@86 14490 :F)
cannam@86 14491 #
cannam@86 14492 # CONFIG_FILE
cannam@86 14493 #
cannam@86 14494
cannam@86 14495 case $INSTALL in
cannam@86 14496 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cannam@86 14497 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
cannam@86 14498 esac
cannam@86 14499 ac_MKDIR_P=$MKDIR_P
cannam@86 14500 case $MKDIR_P in
cannam@86 14501 [\\/$]* | ?:[\\/]* ) ;;
cannam@86 14502 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
cannam@86 14503 esac
cannam@86 14504 _ACEOF
cannam@86 14505
cannam@86 14506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@86 14507 # If the template does not know about datarootdir, expand it.
cannam@86 14508 # FIXME: This hack should be removed a few years after 2.60.
cannam@86 14509 ac_datarootdir_hack=; ac_datarootdir_seen=
cannam@86 14510 ac_sed_dataroot='
cannam@86 14511 /datarootdir/ {
cannam@86 14512 p
cannam@86 14513 q
cannam@86 14514 }
cannam@86 14515 /@datadir@/p
cannam@86 14516 /@docdir@/p
cannam@86 14517 /@infodir@/p
cannam@86 14518 /@localedir@/p
cannam@86 14519 /@mandir@/p'
cannam@86 14520 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
cannam@86 14521 *datarootdir*) ac_datarootdir_seen=yes;;
cannam@86 14522 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cannam@86 14523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cannam@86 14524 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
cannam@86 14525 _ACEOF
cannam@86 14526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@86 14527 ac_datarootdir_hack='
cannam@86 14528 s&@datadir@&$datadir&g
cannam@86 14529 s&@docdir@&$docdir&g
cannam@86 14530 s&@infodir@&$infodir&g
cannam@86 14531 s&@localedir@&$localedir&g
cannam@86 14532 s&@mandir@&$mandir&g
cannam@86 14533 s&\\\${datarootdir}&$datarootdir&g' ;;
cannam@86 14534 esac
cannam@86 14535 _ACEOF
cannam@86 14536
cannam@86 14537 # Neutralize VPATH when `$srcdir' = `.'.
cannam@86 14538 # Shell code in configure.ac might set extrasub.
cannam@86 14539 # FIXME: do we really want to maintain this feature?
cannam@86 14540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@86 14541 ac_sed_extra="$ac_vpsub
cannam@86 14542 $extrasub
cannam@86 14543 _ACEOF
cannam@86 14544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@86 14545 :t
cannam@86 14546 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
cannam@86 14547 s|@configure_input@|$ac_sed_conf_input|;t t
cannam@86 14548 s&@top_builddir@&$ac_top_builddir_sub&;t t
cannam@86 14549 s&@top_build_prefix@&$ac_top_build_prefix&;t t
cannam@86 14550 s&@srcdir@&$ac_srcdir&;t t
cannam@86 14551 s&@abs_srcdir@&$ac_abs_srcdir&;t t
cannam@86 14552 s&@top_srcdir@&$ac_top_srcdir&;t t
cannam@86 14553 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
cannam@86 14554 s&@builddir@&$ac_builddir&;t t
cannam@86 14555 s&@abs_builddir@&$ac_abs_builddir&;t t
cannam@86 14556 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
cannam@86 14557 s&@INSTALL@&$ac_INSTALL&;t t
cannam@86 14558 s&@MKDIR_P@&$ac_MKDIR_P&;t t
cannam@86 14559 $ac_datarootdir_hack
cannam@86 14560 "
cannam@86 14561 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
cannam@86 14562 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@86 14563
cannam@86 14564 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cannam@86 14565 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
cannam@86 14566 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
cannam@86 14567 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cannam@86 14568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cannam@86 14569 which seems to be undefined. Please make sure it is defined" >&5
cannam@86 14570 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cannam@86 14571 which seems to be undefined. Please make sure it is defined" >&2;}
cannam@86 14572
cannam@86 14573 rm -f "$ac_tmp/stdin"
cannam@86 14574 case $ac_file in
cannam@86 14575 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
cannam@86 14576 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cannam@86 14577 esac \
cannam@86 14578 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@86 14579 ;;
cannam@86 14580 :H)
cannam@86 14581 #
cannam@86 14582 # CONFIG_HEADER
cannam@86 14583 #
cannam@86 14584 if test x"$ac_file" != x-; then
cannam@86 14585 {
cannam@86 14586 $as_echo "/* $configure_input */" \
cannam@86 14587 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
cannam@86 14588 } >"$ac_tmp/config.h" \
cannam@86 14589 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@86 14590 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cannam@86 14591 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cannam@86 14592 $as_echo "$as_me: $ac_file is unchanged" >&6;}
cannam@86 14593 else
cannam@86 14594 rm -f "$ac_file"
cannam@86 14595 mv "$ac_tmp/config.h" "$ac_file" \
cannam@86 14596 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@86 14597 fi
cannam@86 14598 else
cannam@86 14599 $as_echo "/* $configure_input */" \
cannam@86 14600 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cannam@86 14601 || as_fn_error $? "could not create -" "$LINENO" 5
cannam@86 14602 fi
cannam@86 14603 # Compute "$ac_file"'s index in $config_headers.
cannam@86 14604 _am_arg="$ac_file"
cannam@86 14605 _am_stamp_count=1
cannam@86 14606 for _am_header in $config_headers :; do
cannam@86 14607 case $_am_header in
cannam@86 14608 $_am_arg | $_am_arg:* )
cannam@86 14609 break ;;
cannam@86 14610 * )
cannam@86 14611 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
cannam@86 14612 esac
cannam@86 14613 done
cannam@86 14614 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
cannam@86 14615 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@86 14616 X"$_am_arg" : 'X\(//\)[^/]' \| \
cannam@86 14617 X"$_am_arg" : 'X\(//\)$' \| \
cannam@86 14618 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
cannam@86 14619 $as_echo X"$_am_arg" |
cannam@86 14620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@86 14621 s//\1/
cannam@86 14622 q
cannam@86 14623 }
cannam@86 14624 /^X\(\/\/\)[^/].*/{
cannam@86 14625 s//\1/
cannam@86 14626 q
cannam@86 14627 }
cannam@86 14628 /^X\(\/\/\)$/{
cannam@86 14629 s//\1/
cannam@86 14630 q
cannam@86 14631 }
cannam@86 14632 /^X\(\/\).*/{
cannam@86 14633 s//\1/
cannam@86 14634 q
cannam@86 14635 }
cannam@86 14636 s/.*/./; q'`/stamp-h$_am_stamp_count
cannam@86 14637 ;;
cannam@86 14638
cannam@86 14639 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cannam@86 14640 $as_echo "$as_me: executing $ac_file commands" >&6;}
cannam@86 14641 ;;
cannam@86 14642 esac
cannam@86 14643
cannam@86 14644
cannam@86 14645 case $ac_file$ac_mode in
cannam@86 14646 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cannam@86 14647 # Autoconf 2.62 quotes --file arguments for eval, but not when files
cannam@86 14648 # are listed without --file. Let's play safe and only enable the eval
cannam@86 14649 # if we detect the quoting.
cannam@86 14650 case $CONFIG_FILES in
cannam@86 14651 *\'*) eval set x "$CONFIG_FILES" ;;
cannam@86 14652 *) set x $CONFIG_FILES ;;
cannam@86 14653 esac
cannam@86 14654 shift
cannam@86 14655 for mf
cannam@86 14656 do
cannam@86 14657 # Strip MF so we end up with the name of the file.
cannam@86 14658 mf=`echo "$mf" | sed -e 's/:.*$//'`
cannam@86 14659 # Check whether this is an Automake generated Makefile or not.
cannam@86 14660 # We used to match only the files named `Makefile.in', but
cannam@86 14661 # some people rename them; so instead we look at the file content.
cannam@86 14662 # Grep'ing the first line is not enough: some people post-process
cannam@86 14663 # each Makefile.in and add a new line on top of each file to say so.
cannam@86 14664 # Grep'ing the whole file is not good either: AIX grep has a line
cannam@86 14665 # limit of 2048, but all sed's we know have understand at least 4000.
cannam@86 14666 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
cannam@86 14667 dirpart=`$as_dirname -- "$mf" ||
cannam@86 14668 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@86 14669 X"$mf" : 'X\(//\)[^/]' \| \
cannam@86 14670 X"$mf" : 'X\(//\)$' \| \
cannam@86 14671 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
cannam@86 14672 $as_echo X"$mf" |
cannam@86 14673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@86 14674 s//\1/
cannam@86 14675 q
cannam@86 14676 }
cannam@86 14677 /^X\(\/\/\)[^/].*/{
cannam@86 14678 s//\1/
cannam@86 14679 q
cannam@86 14680 }
cannam@86 14681 /^X\(\/\/\)$/{
cannam@86 14682 s//\1/
cannam@86 14683 q
cannam@86 14684 }
cannam@86 14685 /^X\(\/\).*/{
cannam@86 14686 s//\1/
cannam@86 14687 q
cannam@86 14688 }
cannam@86 14689 s/.*/./; q'`
cannam@86 14690 else
cannam@86 14691 continue
cannam@86 14692 fi
cannam@86 14693 # Extract the definition of DEPDIR, am__include, and am__quote
cannam@86 14694 # from the Makefile without running `make'.
cannam@86 14695 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
cannam@86 14696 test -z "$DEPDIR" && continue
cannam@86 14697 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cannam@86 14698 test -z "am__include" && continue
cannam@86 14699 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cannam@86 14700 # When using ansi2knr, U may be empty or an underscore; expand it
cannam@86 14701 U=`sed -n 's/^U = //p' < "$mf"`
cannam@86 14702 # Find all dependency output files, they are included files with
cannam@86 14703 # $(DEPDIR) in their names. We invoke sed twice because it is the
cannam@86 14704 # simplest approach to changing $(DEPDIR) to its actual value in the
cannam@86 14705 # expansion.
cannam@86 14706 for file in `sed -n "
cannam@86 14707 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cannam@86 14708 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
cannam@86 14709 # Make sure the directory exists.
cannam@86 14710 test -f "$dirpart/$file" && continue
cannam@86 14711 fdir=`$as_dirname -- "$file" ||
cannam@86 14712 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@86 14713 X"$file" : 'X\(//\)[^/]' \| \
cannam@86 14714 X"$file" : 'X\(//\)$' \| \
cannam@86 14715 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
cannam@86 14716 $as_echo X"$file" |
cannam@86 14717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@86 14718 s//\1/
cannam@86 14719 q
cannam@86 14720 }
cannam@86 14721 /^X\(\/\/\)[^/].*/{
cannam@86 14722 s//\1/
cannam@86 14723 q
cannam@86 14724 }
cannam@86 14725 /^X\(\/\/\)$/{
cannam@86 14726 s//\1/
cannam@86 14727 q
cannam@86 14728 }
cannam@86 14729 /^X\(\/\).*/{
cannam@86 14730 s//\1/
cannam@86 14731 q
cannam@86 14732 }
cannam@86 14733 s/.*/./; q'`
cannam@86 14734 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cannam@86 14735 # echo "creating $dirpart/$file"
cannam@86 14736 echo '# dummy' > "$dirpart/$file"
cannam@86 14737 done
cannam@86 14738 done
cannam@86 14739 }
cannam@86 14740 ;;
cannam@86 14741 "libtool":C)
cannam@86 14742
cannam@86 14743 # See if we are running on zsh, and set the options which allow our
cannam@86 14744 # commands through without removal of \ escapes.
cannam@86 14745 if test -n "${ZSH_VERSION+set}" ; then
cannam@86 14746 setopt NO_GLOB_SUBST
cannam@86 14747 fi
cannam@86 14748
cannam@86 14749 cfgfile="${ofile}T"
cannam@86 14750 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
cannam@86 14751 $RM "$cfgfile"
cannam@86 14752
cannam@86 14753 cat <<_LT_EOF >> "$cfgfile"
cannam@86 14754 #! $SHELL
cannam@86 14755
cannam@86 14756 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
cannam@86 14757 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
cannam@86 14758 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
cannam@86 14759 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
cannam@86 14760 #
cannam@86 14761 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cannam@86 14762 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
cannam@86 14763 # Inc.
cannam@86 14764 # Written by Gordon Matzigkeit, 1996
cannam@86 14765 #
cannam@86 14766 # This file is part of GNU Libtool.
cannam@86 14767 #
cannam@86 14768 # GNU Libtool is free software; you can redistribute it and/or
cannam@86 14769 # modify it under the terms of the GNU General Public License as
cannam@86 14770 # published by the Free Software Foundation; either version 2 of
cannam@86 14771 # the License, or (at your option) any later version.
cannam@86 14772 #
cannam@86 14773 # As a special exception to the GNU General Public License,
cannam@86 14774 # if you distribute this file as part of a program or library that
cannam@86 14775 # is built using GNU Libtool, you may include this file under the
cannam@86 14776 # same distribution terms that you use for the rest of that program.
cannam@86 14777 #
cannam@86 14778 # GNU Libtool is distributed in the hope that it will be useful,
cannam@86 14779 # but WITHOUT ANY WARRANTY; without even the implied warranty of
cannam@86 14780 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cannam@86 14781 # GNU General Public License for more details.
cannam@86 14782 #
cannam@86 14783 # You should have received a copy of the GNU General Public License
cannam@86 14784 # along with GNU Libtool; see the file COPYING. If not, a copy
cannam@86 14785 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
cannam@86 14786 # obtained by writing to the Free Software Foundation, Inc.,
cannam@86 14787 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
cannam@86 14788
cannam@86 14789
cannam@86 14790 # The names of the tagged configurations supported by this script.
cannam@86 14791 available_tags=""
cannam@86 14792
cannam@86 14793 # ### BEGIN LIBTOOL CONFIG
cannam@86 14794
cannam@86 14795 # Assembler program.
cannam@86 14796 AS=$lt_AS
cannam@86 14797
cannam@86 14798 # DLL creation program.
cannam@86 14799 DLLTOOL=$lt_DLLTOOL
cannam@86 14800
cannam@86 14801 # Object dumper program.
cannam@86 14802 OBJDUMP=$lt_OBJDUMP
cannam@86 14803
cannam@86 14804 # Which release of libtool.m4 was used?
cannam@86 14805 macro_version=$macro_version
cannam@86 14806 macro_revision=$macro_revision
cannam@86 14807
cannam@86 14808 # Whether or not to build shared libraries.
cannam@86 14809 build_libtool_libs=$enable_shared
cannam@86 14810
cannam@86 14811 # Whether or not to build static libraries.
cannam@86 14812 build_old_libs=$enable_static
cannam@86 14813
cannam@86 14814 # What type of objects to build.
cannam@86 14815 pic_mode=$pic_mode
cannam@86 14816
cannam@86 14817 # Whether or not to optimize for fast installation.
cannam@86 14818 fast_install=$enable_fast_install
cannam@86 14819
cannam@86 14820 # Shell to use when invoking shell scripts.
cannam@86 14821 SHELL=$lt_SHELL
cannam@86 14822
cannam@86 14823 # An echo program that protects backslashes.
cannam@86 14824 ECHO=$lt_ECHO
cannam@86 14825
cannam@86 14826 # The host system.
cannam@86 14827 host_alias=$host_alias
cannam@86 14828 host=$host
cannam@86 14829 host_os=$host_os
cannam@86 14830
cannam@86 14831 # The build system.
cannam@86 14832 build_alias=$build_alias
cannam@86 14833 build=$build
cannam@86 14834 build_os=$build_os
cannam@86 14835
cannam@86 14836 # A sed program that does not truncate output.
cannam@86 14837 SED=$lt_SED
cannam@86 14838
cannam@86 14839 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
cannam@86 14840 Xsed="\$SED -e 1s/^X//"
cannam@86 14841
cannam@86 14842 # A grep program that handles long lines.
cannam@86 14843 GREP=$lt_GREP
cannam@86 14844
cannam@86 14845 # An ERE matcher.
cannam@86 14846 EGREP=$lt_EGREP
cannam@86 14847
cannam@86 14848 # A literal string matcher.
cannam@86 14849 FGREP=$lt_FGREP
cannam@86 14850
cannam@86 14851 # A BSD- or MS-compatible name lister.
cannam@86 14852 NM=$lt_NM
cannam@86 14853
cannam@86 14854 # Whether we need soft or hard links.
cannam@86 14855 LN_S=$lt_LN_S
cannam@86 14856
cannam@86 14857 # What is the maximum length of a command?
cannam@86 14858 max_cmd_len=$max_cmd_len
cannam@86 14859
cannam@86 14860 # Object file suffix (normally "o").
cannam@86 14861 objext=$ac_objext
cannam@86 14862
cannam@86 14863 # Executable file suffix (normally "").
cannam@86 14864 exeext=$exeext
cannam@86 14865
cannam@86 14866 # whether the shell understands "unset".
cannam@86 14867 lt_unset=$lt_unset
cannam@86 14868
cannam@86 14869 # turn spaces into newlines.
cannam@86 14870 SP2NL=$lt_lt_SP2NL
cannam@86 14871
cannam@86 14872 # turn newlines into spaces.
cannam@86 14873 NL2SP=$lt_lt_NL2SP
cannam@86 14874
cannam@86 14875 # convert \$build file names to \$host format.
cannam@86 14876 to_host_file_cmd=$lt_cv_to_host_file_cmd
cannam@86 14877
cannam@86 14878 # convert \$build files to toolchain format.
cannam@86 14879 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
cannam@86 14880
cannam@86 14881 # Method to check whether dependent libraries are shared objects.
cannam@86 14882 deplibs_check_method=$lt_deplibs_check_method
cannam@86 14883
cannam@86 14884 # Command to use when deplibs_check_method = "file_magic".
cannam@86 14885 file_magic_cmd=$lt_file_magic_cmd
cannam@86 14886
cannam@86 14887 # How to find potential files when deplibs_check_method = "file_magic".
cannam@86 14888 file_magic_glob=$lt_file_magic_glob
cannam@86 14889
cannam@86 14890 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
cannam@86 14891 want_nocaseglob=$lt_want_nocaseglob
cannam@86 14892
cannam@86 14893 # Command to associate shared and link libraries.
cannam@86 14894 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
cannam@86 14895
cannam@86 14896 # The archiver.
cannam@86 14897 AR=$lt_AR
cannam@86 14898
cannam@86 14899 # Flags to create an archive.
cannam@86 14900 AR_FLAGS=$lt_AR_FLAGS
cannam@86 14901
cannam@86 14902 # How to feed a file listing to the archiver.
cannam@86 14903 archiver_list_spec=$lt_archiver_list_spec
cannam@86 14904
cannam@86 14905 # A symbol stripping program.
cannam@86 14906 STRIP=$lt_STRIP
cannam@86 14907
cannam@86 14908 # Commands used to install an old-style archive.
cannam@86 14909 RANLIB=$lt_RANLIB
cannam@86 14910 old_postinstall_cmds=$lt_old_postinstall_cmds
cannam@86 14911 old_postuninstall_cmds=$lt_old_postuninstall_cmds
cannam@86 14912
cannam@86 14913 # Whether to use a lock for old archive extraction.
cannam@86 14914 lock_old_archive_extraction=$lock_old_archive_extraction
cannam@86 14915
cannam@86 14916 # A C compiler.
cannam@86 14917 LTCC=$lt_CC
cannam@86 14918
cannam@86 14919 # LTCC compiler flags.
cannam@86 14920 LTCFLAGS=$lt_CFLAGS
cannam@86 14921
cannam@86 14922 # Take the output of nm and produce a listing of raw symbols and C names.
cannam@86 14923 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
cannam@86 14924
cannam@86 14925 # Transform the output of nm in a proper C declaration.
cannam@86 14926 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
cannam@86 14927
cannam@86 14928 # Transform the output of nm in a C name address pair.
cannam@86 14929 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
cannam@86 14930
cannam@86 14931 # Transform the output of nm in a C name address pair when lib prefix is needed.
cannam@86 14932 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
cannam@86 14933
cannam@86 14934 # Specify filename containing input files for \$NM.
cannam@86 14935 nm_file_list_spec=$lt_nm_file_list_spec
cannam@86 14936
cannam@86 14937 # The root where to search for dependent libraries,and in which our libraries should be installed.
cannam@86 14938 lt_sysroot=$lt_sysroot
cannam@86 14939
cannam@86 14940 # The name of the directory that contains temporary libtool files.
cannam@86 14941 objdir=$objdir
cannam@86 14942
cannam@86 14943 # Used to examine libraries when file_magic_cmd begins with "file".
cannam@86 14944 MAGIC_CMD=$MAGIC_CMD
cannam@86 14945
cannam@86 14946 # Must we lock files when doing compilation?
cannam@86 14947 need_locks=$lt_need_locks
cannam@86 14948
cannam@86 14949 # Manifest tool.
cannam@86 14950 MANIFEST_TOOL=$lt_MANIFEST_TOOL
cannam@86 14951
cannam@86 14952 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
cannam@86 14953 DSYMUTIL=$lt_DSYMUTIL
cannam@86 14954
cannam@86 14955 # Tool to change global to local symbols on Mac OS X.
cannam@86 14956 NMEDIT=$lt_NMEDIT
cannam@86 14957
cannam@86 14958 # Tool to manipulate fat objects and archives on Mac OS X.
cannam@86 14959 LIPO=$lt_LIPO
cannam@86 14960
cannam@86 14961 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
cannam@86 14962 OTOOL=$lt_OTOOL
cannam@86 14963
cannam@86 14964 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
cannam@86 14965 OTOOL64=$lt_OTOOL64
cannam@86 14966
cannam@86 14967 # Old archive suffix (normally "a").
cannam@86 14968 libext=$libext
cannam@86 14969
cannam@86 14970 # Shared library suffix (normally ".so").
cannam@86 14971 shrext_cmds=$lt_shrext_cmds
cannam@86 14972
cannam@86 14973 # The commands to extract the exported symbol list from a shared archive.
cannam@86 14974 extract_expsyms_cmds=$lt_extract_expsyms_cmds
cannam@86 14975
cannam@86 14976 # Variables whose values should be saved in libtool wrapper scripts and
cannam@86 14977 # restored at link time.
cannam@86 14978 variables_saved_for_relink=$lt_variables_saved_for_relink
cannam@86 14979
cannam@86 14980 # Do we need the "lib" prefix for modules?
cannam@86 14981 need_lib_prefix=$need_lib_prefix
cannam@86 14982
cannam@86 14983 # Do we need a version for libraries?
cannam@86 14984 need_version=$need_version
cannam@86 14985
cannam@86 14986 # Library versioning type.
cannam@86 14987 version_type=$version_type
cannam@86 14988
cannam@86 14989 # Shared library runtime path variable.
cannam@86 14990 runpath_var=$runpath_var
cannam@86 14991
cannam@86 14992 # Shared library path variable.
cannam@86 14993 shlibpath_var=$shlibpath_var
cannam@86 14994
cannam@86 14995 # Is shlibpath searched before the hard-coded library search path?
cannam@86 14996 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
cannam@86 14997
cannam@86 14998 # Format of library name prefix.
cannam@86 14999 libname_spec=$lt_libname_spec
cannam@86 15000
cannam@86 15001 # List of archive names. First name is the real one, the rest are links.
cannam@86 15002 # The last name is the one that the linker finds with -lNAME
cannam@86 15003 library_names_spec=$lt_library_names_spec
cannam@86 15004
cannam@86 15005 # The coded name of the library, if different from the real name.
cannam@86 15006 soname_spec=$lt_soname_spec
cannam@86 15007
cannam@86 15008 # Permission mode override for installation of shared libraries.
cannam@86 15009 install_override_mode=$lt_install_override_mode
cannam@86 15010
cannam@86 15011 # Command to use after installation of a shared archive.
cannam@86 15012 postinstall_cmds=$lt_postinstall_cmds
cannam@86 15013
cannam@86 15014 # Command to use after uninstallation of a shared archive.
cannam@86 15015 postuninstall_cmds=$lt_postuninstall_cmds
cannam@86 15016
cannam@86 15017 # Commands used to finish a libtool library installation in a directory.
cannam@86 15018 finish_cmds=$lt_finish_cmds
cannam@86 15019
cannam@86 15020 # As "finish_cmds", except a single script fragment to be evaled but
cannam@86 15021 # not shown.
cannam@86 15022 finish_eval=$lt_finish_eval
cannam@86 15023
cannam@86 15024 # Whether we should hardcode library paths into libraries.
cannam@86 15025 hardcode_into_libs=$hardcode_into_libs
cannam@86 15026
cannam@86 15027 # Compile-time system search path for libraries.
cannam@86 15028 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
cannam@86 15029
cannam@86 15030 # Run-time system search path for libraries.
cannam@86 15031 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
cannam@86 15032
cannam@86 15033 # Whether dlopen is supported.
cannam@86 15034 dlopen_support=$enable_dlopen
cannam@86 15035
cannam@86 15036 # Whether dlopen of programs is supported.
cannam@86 15037 dlopen_self=$enable_dlopen_self
cannam@86 15038
cannam@86 15039 # Whether dlopen of statically linked programs is supported.
cannam@86 15040 dlopen_self_static=$enable_dlopen_self_static
cannam@86 15041
cannam@86 15042 # Commands to strip libraries.
cannam@86 15043 old_striplib=$lt_old_striplib
cannam@86 15044 striplib=$lt_striplib
cannam@86 15045
cannam@86 15046
cannam@86 15047 # The linker used to build libraries.
cannam@86 15048 LD=$lt_LD
cannam@86 15049
cannam@86 15050 # How to create reloadable object files.
cannam@86 15051 reload_flag=$lt_reload_flag
cannam@86 15052 reload_cmds=$lt_reload_cmds
cannam@86 15053
cannam@86 15054 # Commands used to build an old-style archive.
cannam@86 15055 old_archive_cmds=$lt_old_archive_cmds
cannam@86 15056
cannam@86 15057 # A language specific compiler.
cannam@86 15058 CC=$lt_compiler
cannam@86 15059
cannam@86 15060 # Is the compiler the GNU compiler?
cannam@86 15061 with_gcc=$GCC
cannam@86 15062
cannam@86 15063 # Compiler flag to turn off builtin functions.
cannam@86 15064 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
cannam@86 15065
cannam@86 15066 # Additional compiler flags for building library objects.
cannam@86 15067 pic_flag=$lt_lt_prog_compiler_pic
cannam@86 15068
cannam@86 15069 # How to pass a linker flag through the compiler.
cannam@86 15070 wl=$lt_lt_prog_compiler_wl
cannam@86 15071
cannam@86 15072 # Compiler flag to prevent dynamic linking.
cannam@86 15073 link_static_flag=$lt_lt_prog_compiler_static
cannam@86 15074
cannam@86 15075 # Does compiler simultaneously support -c and -o options?
cannam@86 15076 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
cannam@86 15077
cannam@86 15078 # Whether or not to add -lc for building shared libraries.
cannam@86 15079 build_libtool_need_lc=$archive_cmds_need_lc
cannam@86 15080
cannam@86 15081 # Whether or not to disallow shared libs when runtime libs are static.
cannam@86 15082 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
cannam@86 15083
cannam@86 15084 # Compiler flag to allow reflexive dlopens.
cannam@86 15085 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
cannam@86 15086
cannam@86 15087 # Compiler flag to generate shared objects directly from archives.
cannam@86 15088 whole_archive_flag_spec=$lt_whole_archive_flag_spec
cannam@86 15089
cannam@86 15090 # Whether the compiler copes with passing no objects directly.
cannam@86 15091 compiler_needs_object=$lt_compiler_needs_object
cannam@86 15092
cannam@86 15093 # Create an old-style archive from a shared archive.
cannam@86 15094 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
cannam@86 15095
cannam@86 15096 # Create a temporary old-style archive to link instead of a shared archive.
cannam@86 15097 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
cannam@86 15098
cannam@86 15099 # Commands used to build a shared archive.
cannam@86 15100 archive_cmds=$lt_archive_cmds
cannam@86 15101 archive_expsym_cmds=$lt_archive_expsym_cmds
cannam@86 15102
cannam@86 15103 # Commands used to build a loadable module if different from building
cannam@86 15104 # a shared archive.
cannam@86 15105 module_cmds=$lt_module_cmds
cannam@86 15106 module_expsym_cmds=$lt_module_expsym_cmds
cannam@86 15107
cannam@86 15108 # Whether we are building with GNU ld or not.
cannam@86 15109 with_gnu_ld=$lt_with_gnu_ld
cannam@86 15110
cannam@86 15111 # Flag that allows shared libraries with undefined symbols to be built.
cannam@86 15112 allow_undefined_flag=$lt_allow_undefined_flag
cannam@86 15113
cannam@86 15114 # Flag that enforces no undefined symbols.
cannam@86 15115 no_undefined_flag=$lt_no_undefined_flag
cannam@86 15116
cannam@86 15117 # Flag to hardcode \$libdir into a binary during linking.
cannam@86 15118 # This must work even if \$libdir does not exist
cannam@86 15119 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
cannam@86 15120
cannam@86 15121 # If ld is used when linking, flag to hardcode \$libdir into a binary
cannam@86 15122 # during linking. This must work even if \$libdir does not exist.
cannam@86 15123 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
cannam@86 15124
cannam@86 15125 # Whether we need a single "-rpath" flag with a separated argument.
cannam@86 15126 hardcode_libdir_separator=$lt_hardcode_libdir_separator
cannam@86 15127
cannam@86 15128 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
cannam@86 15129 # DIR into the resulting binary.
cannam@86 15130 hardcode_direct=$hardcode_direct
cannam@86 15131
cannam@86 15132 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
cannam@86 15133 # DIR into the resulting binary and the resulting library dependency is
cannam@86 15134 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
cannam@86 15135 # library is relocated.
cannam@86 15136 hardcode_direct_absolute=$hardcode_direct_absolute
cannam@86 15137
cannam@86 15138 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
cannam@86 15139 # into the resulting binary.
cannam@86 15140 hardcode_minus_L=$hardcode_minus_L
cannam@86 15141
cannam@86 15142 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
cannam@86 15143 # into the resulting binary.
cannam@86 15144 hardcode_shlibpath_var=$hardcode_shlibpath_var
cannam@86 15145
cannam@86 15146 # Set to "yes" if building a shared library automatically hardcodes DIR
cannam@86 15147 # into the library and all subsequent libraries and executables linked
cannam@86 15148 # against it.
cannam@86 15149 hardcode_automatic=$hardcode_automatic
cannam@86 15150
cannam@86 15151 # Set to yes if linker adds runtime paths of dependent libraries
cannam@86 15152 # to runtime path list.
cannam@86 15153 inherit_rpath=$inherit_rpath
cannam@86 15154
cannam@86 15155 # Whether libtool must link a program against all its dependency libraries.
cannam@86 15156 link_all_deplibs=$link_all_deplibs
cannam@86 15157
cannam@86 15158 # Set to "yes" if exported symbols are required.
cannam@86 15159 always_export_symbols=$always_export_symbols
cannam@86 15160
cannam@86 15161 # The commands to list exported symbols.
cannam@86 15162 export_symbols_cmds=$lt_export_symbols_cmds
cannam@86 15163
cannam@86 15164 # Symbols that should not be listed in the preloaded symbols.
cannam@86 15165 exclude_expsyms=$lt_exclude_expsyms
cannam@86 15166
cannam@86 15167 # Symbols that must always be exported.
cannam@86 15168 include_expsyms=$lt_include_expsyms
cannam@86 15169
cannam@86 15170 # Commands necessary for linking programs (against libraries) with templates.
cannam@86 15171 prelink_cmds=$lt_prelink_cmds
cannam@86 15172
cannam@86 15173 # Commands necessary for finishing linking programs.
cannam@86 15174 postlink_cmds=$lt_postlink_cmds
cannam@86 15175
cannam@86 15176 # Specify filename containing input files.
cannam@86 15177 file_list_spec=$lt_file_list_spec
cannam@86 15178
cannam@86 15179 # How to hardcode a shared library path into an executable.
cannam@86 15180 hardcode_action=$hardcode_action
cannam@86 15181
cannam@86 15182 # ### END LIBTOOL CONFIG
cannam@86 15183
cannam@86 15184 _LT_EOF
cannam@86 15185
cannam@86 15186 case $host_os in
cannam@86 15187 aix3*)
cannam@86 15188 cat <<\_LT_EOF >> "$cfgfile"
cannam@86 15189 # AIX sometimes has problems with the GCC collect2 program. For some
cannam@86 15190 # reason, if we set the COLLECT_NAMES environment variable, the problems
cannam@86 15191 # vanish in a puff of smoke.
cannam@86 15192 if test "X${COLLECT_NAMES+set}" != Xset; then
cannam@86 15193 COLLECT_NAMES=
cannam@86 15194 export COLLECT_NAMES
cannam@86 15195 fi
cannam@86 15196 _LT_EOF
cannam@86 15197 ;;
cannam@86 15198 esac
cannam@86 15199
cannam@86 15200
cannam@86 15201 ltmain="$ac_aux_dir/ltmain.sh"
cannam@86 15202
cannam@86 15203
cannam@86 15204 # We use sed instead of cat because bash on DJGPP gets confused if
cannam@86 15205 # if finds mixed CR/LF and LF-only lines. Since sed operates in
cannam@86 15206 # text mode, it properly converts lines to CR/LF. This bash problem
cannam@86 15207 # is reportedly fixed, but why not run on old versions too?
cannam@86 15208 sed '$q' "$ltmain" >> "$cfgfile" \
cannam@86 15209 || (rm -f "$cfgfile"; exit 1)
cannam@86 15210
cannam@86 15211 if test x"$xsi_shell" = xyes; then
cannam@86 15212 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
cannam@86 15213 func_dirname ()\
cannam@86 15214 {\
cannam@86 15215 \ case ${1} in\
cannam@86 15216 \ */*) func_dirname_result="${1%/*}${2}" ;;\
cannam@86 15217 \ * ) func_dirname_result="${3}" ;;\
cannam@86 15218 \ esac\
cannam@86 15219 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
cannam@86 15220 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 15221 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 15222 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 15223
cannam@86 15224
cannam@86 15225 sed -e '/^func_basename ()$/,/^} # func_basename /c\
cannam@86 15226 func_basename ()\
cannam@86 15227 {\
cannam@86 15228 \ func_basename_result="${1##*/}"\
cannam@86 15229 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
cannam@86 15230 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 15231 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 15232 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 15233
cannam@86 15234
cannam@86 15235 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
cannam@86 15236 func_dirname_and_basename ()\
cannam@86 15237 {\
cannam@86 15238 \ case ${1} in\
cannam@86 15239 \ */*) func_dirname_result="${1%/*}${2}" ;;\
cannam@86 15240 \ * ) func_dirname_result="${3}" ;;\
cannam@86 15241 \ esac\
cannam@86 15242 \ func_basename_result="${1##*/}"\
cannam@86 15243 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
cannam@86 15244 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 15245 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 15246 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 15247
cannam@86 15248
cannam@86 15249 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
cannam@86 15250 func_stripname ()\
cannam@86 15251 {\
cannam@86 15252 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
cannam@86 15253 \ # positional parameters, so assign one to ordinary parameter first.\
cannam@86 15254 \ func_stripname_result=${3}\
cannam@86 15255 \ func_stripname_result=${func_stripname_result#"${1}"}\
cannam@86 15256 \ func_stripname_result=${func_stripname_result%"${2}"}\
cannam@86 15257 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
cannam@86 15258 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 15259 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 15260 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 15261
cannam@86 15262
cannam@86 15263 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
cannam@86 15264 func_split_long_opt ()\
cannam@86 15265 {\
cannam@86 15266 \ func_split_long_opt_name=${1%%=*}\
cannam@86 15267 \ func_split_long_opt_arg=${1#*=}\
cannam@86 15268 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
cannam@86 15269 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 15270 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 15271 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 15272
cannam@86 15273
cannam@86 15274 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
cannam@86 15275 func_split_short_opt ()\
cannam@86 15276 {\
cannam@86 15277 \ func_split_short_opt_arg=${1#??}\
cannam@86 15278 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
cannam@86 15279 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
cannam@86 15280 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 15281 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 15282 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 15283
cannam@86 15284
cannam@86 15285 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
cannam@86 15286 func_lo2o ()\
cannam@86 15287 {\
cannam@86 15288 \ case ${1} in\
cannam@86 15289 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
cannam@86 15290 \ *) func_lo2o_result=${1} ;;\
cannam@86 15291 \ esac\
cannam@86 15292 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
cannam@86 15293 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 15294 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 15295 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 15296
cannam@86 15297
cannam@86 15298 sed -e '/^func_xform ()$/,/^} # func_xform /c\
cannam@86 15299 func_xform ()\
cannam@86 15300 {\
cannam@86 15301 func_xform_result=${1%.*}.lo\
cannam@86 15302 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
cannam@86 15303 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 15304 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 15305 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 15306
cannam@86 15307
cannam@86 15308 sed -e '/^func_arith ()$/,/^} # func_arith /c\
cannam@86 15309 func_arith ()\
cannam@86 15310 {\
cannam@86 15311 func_arith_result=$(( $* ))\
cannam@86 15312 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
cannam@86 15313 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 15314 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 15315 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 15316
cannam@86 15317
cannam@86 15318 sed -e '/^func_len ()$/,/^} # func_len /c\
cannam@86 15319 func_len ()\
cannam@86 15320 {\
cannam@86 15321 func_len_result=${#1}\
cannam@86 15322 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
cannam@86 15323 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 15324 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 15325 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 15326
cannam@86 15327 fi
cannam@86 15328
cannam@86 15329 if test x"$lt_shell_append" = xyes; then
cannam@86 15330 sed -e '/^func_append ()$/,/^} # func_append /c\
cannam@86 15331 func_append ()\
cannam@86 15332 {\
cannam@86 15333 eval "${1}+=\\${2}"\
cannam@86 15334 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
cannam@86 15335 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 15336 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 15337 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 15338
cannam@86 15339
cannam@86 15340 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
cannam@86 15341 func_append_quoted ()\
cannam@86 15342 {\
cannam@86 15343 \ func_quote_for_eval "${2}"\
cannam@86 15344 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
cannam@86 15345 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
cannam@86 15346 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 15347 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 15348 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 15349
cannam@86 15350
cannam@86 15351 # Save a `func_append' function call where possible by direct use of '+='
cannam@86 15352 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
cannam@86 15353 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 15354 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 15355 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 15356 else
cannam@86 15357 # Save a `func_append' function call even when '+=' is not available
cannam@86 15358 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
cannam@86 15359 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 15360 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 15361 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 15362 fi
cannam@86 15363
cannam@86 15364 if test x"$_lt_function_replace_fail" = x":"; then
cannam@86 15365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
cannam@86 15366 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
cannam@86 15367 fi
cannam@86 15368
cannam@86 15369
cannam@86 15370 mv -f "$cfgfile" "$ofile" ||
cannam@86 15371 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
cannam@86 15372 chmod +x "$ofile"
cannam@86 15373
cannam@86 15374 ;;
cannam@86 15375
cannam@86 15376 esac
cannam@86 15377 done # for ac_tag
cannam@86 15378
cannam@86 15379
cannam@86 15380 as_fn_exit 0
cannam@86 15381 _ACEOF
cannam@86 15382 ac_clean_files=$ac_clean_files_save
cannam@86 15383
cannam@86 15384 test $ac_write_fail = 0 ||
cannam@86 15385 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cannam@86 15386
cannam@86 15387
cannam@86 15388 # configure is writing to config.log, and then calls config.status.
cannam@86 15389 # config.status does its own redirection, appending to config.log.
cannam@86 15390 # Unfortunately, on DOS this fails, as config.log is still kept open
cannam@86 15391 # by configure, so config.status won't be able to write to it; its
cannam@86 15392 # output is simply discarded. So we exec the FD to /dev/null,
cannam@86 15393 # effectively closing config.log, so it can be properly (re)opened and
cannam@86 15394 # appended to by config.status. When coming back to configure, we
cannam@86 15395 # need to make the FD available again.
cannam@86 15396 if test "$no_create" != yes; then
cannam@86 15397 ac_cs_success=:
cannam@86 15398 ac_config_status_args=
cannam@86 15399 test "$silent" = yes &&
cannam@86 15400 ac_config_status_args="$ac_config_status_args --quiet"
cannam@86 15401 exec 5>/dev/null
cannam@86 15402 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
cannam@86 15403 exec 5>>config.log
cannam@86 15404 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
cannam@86 15405 # would make configure fail if this is the last instruction.
cannam@86 15406 $ac_cs_success || as_fn_exit 1
cannam@86 15407 fi
cannam@86 15408 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cannam@86 15409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cannam@86 15410 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
cannam@86 15411 fi
cannam@86 15412