annotate configure @ 1138:b7118ffd32ae

Update Makefile.in's with new Autotools; add extra 'return NULL' to placate some -Wall
author Adam Chlipala <adamc@hcoop.net>
date Sat, 30 Jan 2010 11:21:26 -0500
parents d4cd54a4ea06
children f6cb1cb2d7a8
rev   line source
adamc@378 1 #! /bin/sh
adamc@378 2 # Guess values for system-dependent variables and create Makefiles.
adamc@1132 3 # Generated by GNU Autoconf 2.65 for urweb 1.0.
adamc@1095 4 #
adamc@378 5 #
adamc@378 6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
adamc@1095 7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
adamc@1095 8 # Inc.
adamc@1095 9 #
adamc@1095 10 #
adamc@378 11 # This configure script is free software; the Free Software Foundation
adamc@378 12 # gives unlimited permission to copy, distribute and modify it.
adamc@1095 13 ## -------------------- ##
adamc@1095 14 ## M4sh Initialization. ##
adamc@1095 15 ## -------------------- ##
adamc@378 16
adamc@378 17 # Be more Bourne compatible
adamc@378 18 DUALCASE=1; export DUALCASE # for MKS sh
adamc@1095 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
adamc@378 20 emulate sh
adamc@378 21 NULLCMD=:
adamc@1095 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
adamc@378 23 # is contrary to our usage. Disable this feature.
adamc@378 24 alias -g '${1+"$@"}'='"$@"'
adamc@378 25 setopt NO_GLOB_SUBST
adamc@378 26 else
adamc@1095 27 case `(set -o) 2>/dev/null` in #(
adamc@1095 28 *posix*) :
adamc@1095 29 set -o posix ;; #(
adamc@1095 30 *) :
adamc@1095 31 ;;
adamc@378 32 esac
adamc@378 33 fi
adamc@378 34
adamc@378 35
adamc@1095 36 as_nl='
adamc@1095 37 '
adamc@1095 38 export as_nl
adamc@1095 39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
adamc@1095 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
adamc@1095 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
adamc@1095 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
adamc@1095 43 # Prefer a ksh shell builtin over an external printf program on Solaris,
adamc@1095 44 # but without wasting forks for bash or zsh.
adamc@1095 45 if test -z "$BASH_VERSION$ZSH_VERSION" \
adamc@1095 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
adamc@1095 47 as_echo='print -r --'
adamc@1095 48 as_echo_n='print -rn --'
adamc@1095 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
adamc@1095 50 as_echo='printf %s\n'
adamc@1095 51 as_echo_n='printf %s'
adamc@1095 52 else
adamc@1095 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
adamc@1095 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
adamc@1095 55 as_echo_n='/usr/ucb/echo -n'
adamc@1095 56 else
adamc@1095 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
adamc@1095 58 as_echo_n_body='eval
adamc@1095 59 arg=$1;
adamc@1095 60 case $arg in #(
adamc@1095 61 *"$as_nl"*)
adamc@1095 62 expr "X$arg" : "X\\(.*\\)$as_nl";
adamc@1095 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
adamc@1095 64 esac;
adamc@1095 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
adamc@1095 66 '
adamc@1095 67 export as_echo_n_body
adamc@1095 68 as_echo_n='sh -c $as_echo_n_body as_echo'
adamc@1095 69 fi
adamc@1095 70 export as_echo_body
adamc@1095 71 as_echo='sh -c $as_echo_body as_echo'
adamc@1095 72 fi
adamc@378 73
adamc@378 74 # The user is always right.
adamc@378 75 if test "${PATH_SEPARATOR+set}" != set; then
adamc@1095 76 PATH_SEPARATOR=:
adamc@1095 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
adamc@1095 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
adamc@1095 79 PATH_SEPARATOR=';'
adamc@1095 80 }
adamc@378 81 fi
adamc@378 82
adamc@378 83
adamc@378 84 # IFS
adamc@378 85 # We need space, tab and new line, in precisely that order. Quoting is
adamc@378 86 # there to prevent editors from complaining about space-tab.
adamc@378 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
adamc@378 88 # splitting by setting IFS to empty value.)
adamc@378 89 IFS=" "" $as_nl"
adamc@378 90
adamc@378 91 # Find who we are. Look in the path if we contain no directory separator.
adamc@1095 92 case $0 in #((
adamc@378 93 *[\\/]* ) as_myself=$0 ;;
adamc@378 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@378 95 for as_dir in $PATH
adamc@378 96 do
adamc@378 97 IFS=$as_save_IFS
adamc@378 98 test -z "$as_dir" && as_dir=.
adamc@1095 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
adamc@1095 100 done
adamc@378 101 IFS=$as_save_IFS
adamc@378 102
adamc@378 103 ;;
adamc@378 104 esac
adamc@378 105 # We did not find ourselves, most probably we were run as `sh COMMAND'
adamc@378 106 # in which case we are not to be found in the path.
adamc@378 107 if test "x$as_myself" = x; then
adamc@378 108 as_myself=$0
adamc@378 109 fi
adamc@378 110 if test ! -f "$as_myself"; then
adamc@1095 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
adamc@1095 112 exit 1
adamc@378 113 fi
adamc@378 114
adamc@1095 115 # Unset variables that we do not need and which cause bugs (e.g. in
adamc@1095 116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
adamc@1095 117 # suppresses any "Segmentation fault" message there. '((' could
adamc@1095 118 # trigger a bug in pdksh 5.2.14.
adamc@1095 119 for as_var in BASH_ENV ENV MAIL MAILPATH
adamc@1095 120 do eval test x\${$as_var+set} = xset \
adamc@1095 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
adamc@378 122 done
adamc@378 123 PS1='$ '
adamc@378 124 PS2='> '
adamc@378 125 PS4='+ '
adamc@378 126
adamc@378 127 # NLS nuisances.
adamc@1095 128 LC_ALL=C
adamc@1095 129 export LC_ALL
adamc@1095 130 LANGUAGE=C
adamc@1095 131 export LANGUAGE
adamc@1095 132
adamc@1095 133 # CDPATH.
adamc@1095 134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
adamc@1095 135
adamc@1095 136 if test "x$CONFIG_SHELL" = x; then
adamc@1095 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
adamc@1095 138 emulate sh
adamc@1095 139 NULLCMD=:
adamc@1095 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
adamc@1095 141 # is contrary to our usage. Disable this feature.
adamc@1095 142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
adamc@1095 143 setopt NO_GLOB_SUBST
adamc@1095 144 else
adamc@1095 145 case \`(set -o) 2>/dev/null\` in #(
adamc@1095 146 *posix*) :
adamc@1095 147 set -o posix ;; #(
adamc@1095 148 *) :
adamc@1095 149 ;;
adamc@1095 150 esac
adamc@1095 151 fi
adamc@1095 152 "
adamc@1095 153 as_required="as_fn_return () { (exit \$1); }
adamc@1095 154 as_fn_success () { as_fn_return 0; }
adamc@1095 155 as_fn_failure () { as_fn_return 1; }
adamc@1095 156 as_fn_ret_success () { return 0; }
adamc@1095 157 as_fn_ret_failure () { return 1; }
adamc@1095 158
adamc@1095 159 exitcode=0
adamc@1095 160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
adamc@1095 161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
adamc@1095 162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
adamc@1095 163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
adamc@1095 164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
adamc@1095 165
adamc@1095 166 else
adamc@1095 167 exitcode=1; echo positional parameters were not saved.
adamc@1095 168 fi
adamc@1095 169 test x\$exitcode = x0 || exit 1"
adamc@1095 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
adamc@1095 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
adamc@1095 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
adamc@1132 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
adamc@1132 174 test \$(( 1 + 1 )) = 2 || exit 1"
adamc@1095 175 if (eval "$as_required") 2>/dev/null; then :
adamc@1095 176 as_have_required=yes
adamc@1095 177 else
adamc@1095 178 as_have_required=no
adamc@1095 179 fi
adamc@1095 180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
adamc@1095 181
adamc@1095 182 else
adamc@1095 183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1095 184 as_found=false
adamc@1095 185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
adamc@378 186 do
adamc@1095 187 IFS=$as_save_IFS
adamc@1095 188 test -z "$as_dir" && as_dir=.
adamc@1095 189 as_found=:
adamc@1095 190 case $as_dir in #(
adamc@1095 191 /*)
adamc@1095 192 for as_base in sh bash ksh sh5; do
adamc@1095 193 # Try only shells that exist, to save several forks.
adamc@1095 194 as_shell=$as_dir/$as_base
adamc@1095 195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
adamc@1095 196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
adamc@1095 197 CONFIG_SHELL=$as_shell as_have_required=yes
adamc@1095 198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
adamc@1095 199 break 2
adamc@1095 200 fi
adamc@1095 201 fi
adamc@1095 202 done;;
adamc@1095 203 esac
adamc@1095 204 as_found=false
adamc@1095 205 done
adamc@1095 206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
adamc@1095 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
adamc@1095 208 CONFIG_SHELL=$SHELL as_have_required=yes
adamc@1095 209 fi; }
adamc@1095 210 IFS=$as_save_IFS
adamc@1095 211
adamc@1095 212
adamc@1095 213 if test "x$CONFIG_SHELL" != x; then :
adamc@1095 214 # We cannot yet assume a decent shell, so we have to provide a
adamc@1095 215 # neutralization value for shells without unset; and this also
adamc@1095 216 # works around shells that cannot unset nonexistent variables.
adamc@1095 217 BASH_ENV=/dev/null
adamc@1095 218 ENV=/dev/null
adamc@1095 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
adamc@1095 220 export CONFIG_SHELL
adamc@1095 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
adamc@1095 222 fi
adamc@1095 223
adamc@1095 224 if test x$as_have_required = xno; then :
adamc@1095 225 $as_echo "$0: This script requires a shell more modern than all"
adamc@1095 226 $as_echo "$0: the shells that I found on your system."
adamc@1095 227 if test x${ZSH_VERSION+set} = xset ; then
adamc@1095 228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
adamc@1095 229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
adamc@378 230 else
adamc@1095 231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
adamc@1095 232 $0: including any error possibly output before this
adamc@1095 233 $0: message. Then install a modern shell, or manually run
adamc@1095 234 $0: the script under such a shell if you do have one."
adamc@378 235 fi
adamc@1095 236 exit 1
adamc@1095 237 fi
adamc@1095 238 fi
adamc@1095 239 fi
adamc@1095 240 SHELL=${CONFIG_SHELL-/bin/sh}
adamc@1095 241 export SHELL
adamc@1095 242 # Unset more variables known to interfere with behavior of common tools.
adamc@1095 243 CLICOLOR_FORCE= GREP_OPTIONS=
adamc@1095 244 unset CLICOLOR_FORCE GREP_OPTIONS
adamc@378 245
adamc@1095 246 ## --------------------- ##
adamc@1095 247 ## M4sh Shell Functions. ##
adamc@1095 248 ## --------------------- ##
adamc@1095 249 # as_fn_unset VAR
adamc@1095 250 # ---------------
adamc@1095 251 # Portably unset VAR.
adamc@1095 252 as_fn_unset ()
adamc@1095 253 {
adamc@1095 254 { eval $1=; unset $1;}
adamc@1095 255 }
adamc@1095 256 as_unset=as_fn_unset
adamc@1095 257
adamc@1095 258 # as_fn_set_status STATUS
adamc@1095 259 # -----------------------
adamc@1095 260 # Set $? to STATUS, without forking.
adamc@1095 261 as_fn_set_status ()
adamc@1095 262 {
adamc@1095 263 return $1
adamc@1095 264 } # as_fn_set_status
adamc@1095 265
adamc@1095 266 # as_fn_exit STATUS
adamc@1095 267 # -----------------
adamc@1095 268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
adamc@1095 269 as_fn_exit ()
adamc@1095 270 {
adamc@1095 271 set +e
adamc@1095 272 as_fn_set_status $1
adamc@1095 273 exit $1
adamc@1095 274 } # as_fn_exit
adamc@1095 275
adamc@1095 276 # as_fn_mkdir_p
adamc@1095 277 # -------------
adamc@1095 278 # Create "$as_dir" as a directory, including parents if necessary.
adamc@1095 279 as_fn_mkdir_p ()
adamc@1095 280 {
adamc@1095 281
adamc@1095 282 case $as_dir in #(
adamc@1095 283 -*) as_dir=./$as_dir;;
adamc@1095 284 esac
adamc@1095 285 test -d "$as_dir" || eval $as_mkdir_p || {
adamc@1095 286 as_dirs=
adamc@1095 287 while :; do
adamc@1095 288 case $as_dir in #(
adamc@1095 289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
adamc@1095 290 *) as_qdir=$as_dir;;
adamc@1095 291 esac
adamc@1095 292 as_dirs="'$as_qdir' $as_dirs"
adamc@1095 293 as_dir=`$as_dirname -- "$as_dir" ||
adamc@1095 294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
adamc@1095 295 X"$as_dir" : 'X\(//\)[^/]' \| \
adamc@1095 296 X"$as_dir" : 'X\(//\)$' \| \
adamc@1095 297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1095 298 $as_echo X"$as_dir" |
adamc@1095 299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
adamc@1095 300 s//\1/
adamc@1095 301 q
adamc@1095 302 }
adamc@1095 303 /^X\(\/\/\)[^/].*/{
adamc@1095 304 s//\1/
adamc@1095 305 q
adamc@1095 306 }
adamc@1095 307 /^X\(\/\/\)$/{
adamc@1095 308 s//\1/
adamc@1095 309 q
adamc@1095 310 }
adamc@1095 311 /^X\(\/\).*/{
adamc@1095 312 s//\1/
adamc@1095 313 q
adamc@1095 314 }
adamc@1095 315 s/.*/./; q'`
adamc@1095 316 test -d "$as_dir" && break
adamc@1095 317 done
adamc@1095 318 test -z "$as_dirs" || eval "mkdir $as_dirs"
adamc@1095 319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
adamc@1095 320
adamc@1095 321
adamc@1095 322 } # as_fn_mkdir_p
adamc@1095 323 # as_fn_append VAR VALUE
adamc@1095 324 # ----------------------
adamc@1095 325 # Append the text in VALUE to the end of the definition contained in VAR. Take
adamc@1095 326 # advantage of any shell optimizations that allow amortized linear growth over
adamc@1095 327 # repeated appends, instead of the typical quadratic growth present in naive
adamc@1095 328 # implementations.
adamc@1095 329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
adamc@1095 330 eval 'as_fn_append ()
adamc@1095 331 {
adamc@1095 332 eval $1+=\$2
adamc@1095 333 }'
adamc@1095 334 else
adamc@1095 335 as_fn_append ()
adamc@1095 336 {
adamc@1095 337 eval $1=\$$1\$2
adamc@1095 338 }
adamc@1095 339 fi # as_fn_append
adamc@1095 340
adamc@1095 341 # as_fn_arith ARG...
adamc@1095 342 # ------------------
adamc@1095 343 # Perform arithmetic evaluation on the ARGs, and store the result in the
adamc@1095 344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
adamc@1095 345 # must be portable across $(()) and expr.
adamc@1095 346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
adamc@1095 347 eval 'as_fn_arith ()
adamc@1095 348 {
adamc@1095 349 as_val=$(( $* ))
adamc@1095 350 }'
adamc@1095 351 else
adamc@1095 352 as_fn_arith ()
adamc@1095 353 {
adamc@1095 354 as_val=`expr "$@" || test $? -eq 1`
adamc@1095 355 }
adamc@1095 356 fi # as_fn_arith
adamc@1095 357
adamc@1095 358
adamc@1095 359 # as_fn_error ERROR [LINENO LOG_FD]
adamc@1095 360 # ---------------------------------
adamc@1095 361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
adamc@1095 362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
adamc@1095 363 # script with status $?, using 1 if that was 0.
adamc@1095 364 as_fn_error ()
adamc@1095 365 {
adamc@1095 366 as_status=$?; test $as_status -eq 0 && as_status=1
adamc@1095 367 if test "$3"; then
adamc@1095 368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adamc@1095 369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
adamc@1095 370 fi
adamc@1095 371 $as_echo "$as_me: error: $1" >&2
adamc@1095 372 as_fn_exit $as_status
adamc@1095 373 } # as_fn_error
adamc@1095 374
adamc@378 375 if expr a : '\(a\)' >/dev/null 2>&1 &&
adamc@378 376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
adamc@378 377 as_expr=expr
adamc@378 378 else
adamc@378 379 as_expr=false
adamc@378 380 fi
adamc@378 381
adamc@378 382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
adamc@378 383 as_basename=basename
adamc@378 384 else
adamc@378 385 as_basename=false
adamc@378 386 fi
adamc@378 387
adamc@1095 388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
adamc@1095 389 as_dirname=dirname
adamc@1095 390 else
adamc@1095 391 as_dirname=false
adamc@1095 392 fi
adamc@378 393
adamc@378 394 as_me=`$as_basename -- "$0" ||
adamc@378 395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
adamc@378 396 X"$0" : 'X\(//\)$' \| \
adamc@378 397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1095 398 $as_echo X/"$0" |
adamc@378 399 sed '/^.*\/\([^/][^/]*\)\/*$/{
adamc@378 400 s//\1/
adamc@378 401 q
adamc@378 402 }
adamc@378 403 /^X\/\(\/\/\)$/{
adamc@378 404 s//\1/
adamc@378 405 q
adamc@378 406 }
adamc@378 407 /^X\/\(\/\).*/{
adamc@378 408 s//\1/
adamc@378 409 q
adamc@378 410 }
adamc@378 411 s/.*/./; q'`
adamc@378 412
adamc@1095 413 # Avoid depending upon Character Ranges.
adamc@1095 414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
adamc@1095 415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
adamc@1095 416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
adamc@1095 417 as_cr_digits='0123456789'
adamc@1095 418 as_cr_alnum=$as_cr_Letters$as_cr_digits
adamc@378 419
adamc@378 420
adamc@1095 421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
adamc@1095 422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
adamc@1095 423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
adamc@1095 424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
adamc@1095 425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
adamc@378 426 sed -n '
adamc@378 427 p
adamc@378 428 /[$]LINENO/=
adamc@378 429 ' <$as_myself |
adamc@378 430 sed '
adamc@378 431 s/[$]LINENO.*/&-/
adamc@378 432 t lineno
adamc@378 433 b
adamc@378 434 :lineno
adamc@378 435 N
adamc@378 436 :loop
adamc@378 437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
adamc@378 438 t loop
adamc@378 439 s/-\n.*//
adamc@378 440 ' >$as_me.lineno &&
adamc@378 441 chmod +x "$as_me.lineno" ||
adamc@1095 442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
adamc@378 443
adamc@378 444 # Don't try to exec as it changes $[0], causing all sort of problems
adamc@378 445 # (the dirname of $[0] is not the place where we might find the
adamc@378 446 # original and so on. Autoconf is especially sensitive to this).
adamc@378 447 . "./$as_me.lineno"
adamc@378 448 # Exit status is that of the last command.
adamc@378 449 exit
adamc@378 450 }
adamc@378 451
adamc@378 452 ECHO_C= ECHO_N= ECHO_T=
adamc@1095 453 case `echo -n x` in #(((((
adamc@378 454 -n*)
adamc@1095 455 case `echo 'xy\c'` in
adamc@378 456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
adamc@1095 457 xy) ECHO_C='\c';;
adamc@1095 458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
adamc@1095 459 ECHO_T=' ';;
adamc@378 460 esac;;
adamc@378 461 *)
adamc@378 462 ECHO_N='-n';;
adamc@378 463 esac
adamc@378 464
adamc@378 465 rm -f conf$$ conf$$.exe conf$$.file
adamc@378 466 if test -d conf$$.dir; then
adamc@378 467 rm -f conf$$.dir/conf$$.file
adamc@378 468 else
adamc@378 469 rm -f conf$$.dir
adamc@1095 470 mkdir conf$$.dir 2>/dev/null
adamc@378 471 fi
adamc@1095 472 if (echo >conf$$.file) 2>/dev/null; then
adamc@1095 473 if ln -s conf$$.file conf$$ 2>/dev/null; then
adamc@1095 474 as_ln_s='ln -s'
adamc@1095 475 # ... but there are two gotchas:
adamc@1095 476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
adamc@1095 477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
adamc@1095 478 # In both cases, we have to default to `cp -p'.
adamc@1095 479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
adamc@1095 480 as_ln_s='cp -p'
adamc@1095 481 elif ln conf$$.file conf$$ 2>/dev/null; then
adamc@1095 482 as_ln_s=ln
adamc@1095 483 else
adamc@378 484 as_ln_s='cp -p'
adamc@1095 485 fi
adamc@378 486 else
adamc@378 487 as_ln_s='cp -p'
adamc@378 488 fi
adamc@378 489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
adamc@378 490 rmdir conf$$.dir 2>/dev/null
adamc@378 491
adamc@378 492 if mkdir -p . 2>/dev/null; then
adamc@1095 493 as_mkdir_p='mkdir -p "$as_dir"'
adamc@378 494 else
adamc@378 495 test -d ./-p && rmdir ./-p
adamc@378 496 as_mkdir_p=false
adamc@378 497 fi
adamc@378 498
adamc@378 499 if test -x / >/dev/null 2>&1; then
adamc@378 500 as_test_x='test -x'
adamc@378 501 else
adamc@378 502 if ls -dL / >/dev/null 2>&1; then
adamc@378 503 as_ls_L_option=L
adamc@378 504 else
adamc@378 505 as_ls_L_option=
adamc@378 506 fi
adamc@378 507 as_test_x='
adamc@378 508 eval sh -c '\''
adamc@378 509 if test -d "$1"; then
adamc@1095 510 test -d "$1/.";
adamc@378 511 else
adamc@1095 512 case $1 in #(
adamc@1095 513 -*)set "./$1";;
adamc@378 514 esac;
adamc@1095 515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
adamc@378 516 ???[sx]*):;;*)false;;esac;fi
adamc@378 517 '\'' sh
adamc@378 518 '
adamc@378 519 fi
adamc@378 520 as_executable_p=$as_test_x
adamc@378 521
adamc@378 522 # Sed expression to map a string onto a valid CPP name.
adamc@378 523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
adamc@378 524
adamc@378 525 # Sed expression to map a string onto a valid variable name.
adamc@378 526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
adamc@378 527
adamc@378 528
adamc@1132 529
adamc@1132 530 # Check that we are running under the correct shell.
adamc@1132 531 SHELL=${CONFIG_SHELL-/bin/sh}
adamc@1132 532
adamc@1132 533 case X$lt_ECHO in
adamc@1132 534 X*--fallback-echo)
adamc@1132 535 # Remove one level of quotation (which was required for Make).
adamc@1132 536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
adamc@1132 537 ;;
adamc@1132 538 esac
adamc@1132 539
adamc@1132 540 ECHO=${lt_ECHO-echo}
adamc@1132 541 if test "X$1" = X--no-reexec; then
adamc@1132 542 # Discard the --no-reexec flag, and continue.
adamc@1132 543 shift
adamc@1132 544 elif test "X$1" = X--fallback-echo; then
adamc@1132 545 # Avoid inline document here, it may be left over
adamc@1132 546 :
adamc@1132 547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
adamc@1132 548 # Yippee, $ECHO works!
adamc@1132 549 :
adamc@1132 550 else
adamc@1132 551 # Restart under the correct shell.
adamc@1132 552 exec $SHELL "$0" --no-reexec ${1+"$@"}
adamc@1132 553 fi
adamc@1132 554
adamc@1132 555 if test "X$1" = X--fallback-echo; then
adamc@1132 556 # used as fallback echo
adamc@1132 557 shift
adamc@1132 558 cat <<_LT_EOF
adamc@1132 559 $*
adamc@1132 560 _LT_EOF
adamc@1132 561 exit 0
adamc@1132 562 fi
adamc@1132 563
adamc@1132 564 # The HP-UX ksh and POSIX shell print the target directory to stdout
adamc@1132 565 # if CDPATH is set.
adamc@1132 566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
adamc@1132 567
adamc@1132 568 if test -z "$lt_ECHO"; then
adamc@1132 569 if test "X${echo_test_string+set}" != Xset; then
adamc@1132 570 # find a string as large as possible, as long as the shell can cope with it
adamc@1132 571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
adamc@1132 572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
adamc@1132 573 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
adamc@1132 574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
adamc@1132 575 then
adamc@1132 576 break
adamc@1132 577 fi
adamc@1132 578 done
adamc@1132 579 fi
adamc@1132 580
adamc@1132 581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
adamc@1132 582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
adamc@1132 583 test "X$echo_testing_string" = "X$echo_test_string"; then
adamc@1132 584 :
adamc@1132 585 else
adamc@1132 586 # The Solaris, AIX, and Digital Unix default echo programs unquote
adamc@1132 587 # backslashes. This makes it impossible to quote backslashes using
adamc@1132 588 # echo "$something" | sed 's/\\/\\\\/g'
adamc@1132 589 #
adamc@1132 590 # So, first we look for a working echo in the user's PATH.
adamc@1132 591
adamc@1132 592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
adamc@1132 593 for dir in $PATH /usr/ucb; do
adamc@1132 594 IFS="$lt_save_ifs"
adamc@1132 595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
adamc@1132 596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
adamc@1132 597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
adamc@1132 598 test "X$echo_testing_string" = "X$echo_test_string"; then
adamc@1132 599 ECHO="$dir/echo"
adamc@1132 600 break
adamc@1132 601 fi
adamc@1132 602 done
adamc@1132 603 IFS="$lt_save_ifs"
adamc@1132 604
adamc@1132 605 if test "X$ECHO" = Xecho; then
adamc@1132 606 # We didn't find a better echo, so look for alternatives.
adamc@1132 607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
adamc@1132 608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
adamc@1132 609 test "X$echo_testing_string" = "X$echo_test_string"; then
adamc@1132 610 # This shell has a builtin print -r that does the trick.
adamc@1132 611 ECHO='print -r'
adamc@1132 612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
adamc@1132 613 test "X$CONFIG_SHELL" != X/bin/ksh; then
adamc@1132 614 # If we have ksh, try running configure again with it.
adamc@1132 615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
adamc@1132 616 export ORIGINAL_CONFIG_SHELL
adamc@1132 617 CONFIG_SHELL=/bin/ksh
adamc@1132 618 export CONFIG_SHELL
adamc@1132 619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
adamc@1132 620 else
adamc@1132 621 # Try using printf.
adamc@1132 622 ECHO='printf %s\n'
adamc@1132 623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
adamc@1132 624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
adamc@1132 625 test "X$echo_testing_string" = "X$echo_test_string"; then
adamc@1132 626 # Cool, printf works
adamc@1132 627 :
adamc@1132 628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
adamc@1132 629 test "X$echo_testing_string" = 'X\t' &&
adamc@1132 630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
adamc@1132 631 test "X$echo_testing_string" = "X$echo_test_string"; then
adamc@1132 632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
adamc@1132 633 export CONFIG_SHELL
adamc@1132 634 SHELL="$CONFIG_SHELL"
adamc@1132 635 export SHELL
adamc@1132 636 ECHO="$CONFIG_SHELL $0 --fallback-echo"
adamc@1132 637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
adamc@1132 638 test "X$echo_testing_string" = 'X\t' &&
adamc@1132 639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
adamc@1132 640 test "X$echo_testing_string" = "X$echo_test_string"; then
adamc@1132 641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
adamc@1132 642 else
adamc@1132 643 # maybe with a smaller string...
adamc@1132 644 prev=:
adamc@1132 645
adamc@1132 646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
adamc@1132 647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
adamc@1132 648 then
adamc@1132 649 break
adamc@1132 650 fi
adamc@1132 651 prev="$cmd"
adamc@1132 652 done
adamc@1132 653
adamc@1132 654 if test "$prev" != 'sed 50q "$0"'; then
adamc@1132 655 echo_test_string=`eval $prev`
adamc@1132 656 export echo_test_string
adamc@1132 657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
adamc@1132 658 else
adamc@1132 659 # Oops. We lost completely, so just stick with echo.
adamc@1132 660 ECHO=echo
adamc@1132 661 fi
adamc@1132 662 fi
adamc@1132 663 fi
adamc@1132 664 fi
adamc@1132 665 fi
adamc@1132 666 fi
adamc@1132 667
adamc@1132 668 # Copy echo and quote the copy suitably for passing to libtool from
adamc@1132 669 # the Makefile, instead of quoting the original, which is used later.
adamc@1132 670 lt_ECHO=$ECHO
adamc@1132 671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
adamc@1132 672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
adamc@1132 673 fi
adamc@1132 674
adamc@1132 675
adamc@1132 676
adamc@1132 677
adamc@1095 678 test -n "$DJDIR" || exec 7<&0 </dev/null
adamc@1095 679 exec 6>&1
adamc@378 680
adamc@378 681 # Name of the host.
adamc@378 682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
adamc@378 683 # so uname gets run too.
adamc@378 684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
adamc@378 685
adamc@378 686 #
adamc@378 687 # Initializations.
adamc@378 688 #
adamc@378 689 ac_default_prefix=/usr/local
adamc@378 690 ac_clean_files=
adamc@378 691 ac_config_libobj_dir=.
adamc@378 692 LIBOBJS=
adamc@378 693 cross_compiling=no
adamc@378 694 subdirs=
adamc@378 695 MFLAGS=
adamc@378 696 MAKEFLAGS=
adamc@378 697
adamc@378 698 # Identity of this package.
adamc@1132 699 PACKAGE_NAME='urweb'
adamc@1132 700 PACKAGE_TARNAME='urweb'
adamc@1132 701 PACKAGE_VERSION='1.0'
adamc@1132 702 PACKAGE_STRING='urweb 1.0'
adamc@1132 703 PACKAGE_BUGREPORT=''
adamc@1132 704 PACKAGE_URL=''
adamc@1132 705
adamc@1132 706 # Factoring default headers for most tests.
adamc@1132 707 ac_includes_default="\
adamc@1132 708 #include <stdio.h>
adamc@1132 709 #ifdef HAVE_SYS_TYPES_H
adamc@1132 710 # include <sys/types.h>
adamc@1132 711 #endif
adamc@1132 712 #ifdef HAVE_SYS_STAT_H
adamc@1132 713 # include <sys/stat.h>
adamc@1132 714 #endif
adamc@1132 715 #ifdef STDC_HEADERS
adamc@1132 716 # include <stdlib.h>
adamc@1132 717 # include <stddef.h>
adamc@1132 718 #else
adamc@1132 719 # ifdef HAVE_STDLIB_H
adamc@1132 720 # include <stdlib.h>
adamc@1132 721 # endif
adamc@1132 722 #endif
adamc@1132 723 #ifdef HAVE_STRING_H
adamc@1132 724 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
adamc@1132 725 # include <memory.h>
adamc@1132 726 # endif
adamc@1132 727 # include <string.h>
adamc@1132 728 #endif
adamc@1132 729 #ifdef HAVE_STRINGS_H
adamc@1132 730 # include <strings.h>
adamc@1132 731 #endif
adamc@1132 732 #ifdef HAVE_INTTYPES_H
adamc@1132 733 # include <inttypes.h>
adamc@1132 734 #endif
adamc@1132 735 #ifdef HAVE_STDINT_H
adamc@1132 736 # include <stdint.h>
adamc@1132 737 #endif
adamc@1132 738 #ifdef HAVE_UNISTD_H
adamc@1132 739 # include <unistd.h>
adamc@1132 740 #endif"
adamc@1132 741
adamc@1132 742 ac_subst_vars='am__EXEEXT_FALSE
adamc@1132 743 am__EXEEXT_TRUE
adamc@1132 744 LTLIBOBJS
adamc@1095 745 LIBOBJS
adamc@1095 746 GCCARGS
adamc@1095 747 SITELISP
adamc@1095 748 INCLUDE
adamc@1095 749 LIB
adamc@1095 750 BIN
adamc@1132 751 CPP
adamc@1132 752 OTOOL64
adamc@1132 753 OTOOL
adamc@1132 754 LIPO
adamc@1132 755 NMEDIT
adamc@1132 756 DSYMUTIL
adamc@1132 757 lt_ECHO
adamc@1132 758 RANLIB
adamc@1132 759 AR
adamc@1132 760 OBJDUMP
adamc@1132 761 LN_S
adamc@1132 762 NM
adamc@1132 763 ac_ct_DUMPBIN
adamc@1132 764 DUMPBIN
adamc@1132 765 LD
adamc@1132 766 FGREP
adamc@1132 767 EGREP
adamc@1132 768 GREP
adamc@1132 769 SED
adamc@1132 770 host_os
adamc@1132 771 host_vendor
adamc@1132 772 host_cpu
adamc@1132 773 host
adamc@1132 774 build_os
adamc@1132 775 build_vendor
adamc@1132 776 build_cpu
adamc@1132 777 build
adamc@1132 778 LIBTOOL
adamc@1132 779 am__fastdepCC_FALSE
adamc@1132 780 am__fastdepCC_TRUE
adamc@1132 781 CCDEPMODE
adamc@1132 782 AMDEPBACKSLASH
adamc@1132 783 AMDEP_FALSE
adamc@1132 784 AMDEP_TRUE
adamc@1132 785 am__quote
adamc@1132 786 am__include
adamc@1132 787 DEPDIR
adamc@1132 788 OBJEXT
adamc@1132 789 EXEEXT
adamc@1132 790 ac_ct_CC
adamc@1132 791 CPPFLAGS
adamc@1132 792 LDFLAGS
adamc@1132 793 CFLAGS
adamc@1132 794 CC
adamc@1132 795 am__untar
adamc@1132 796 am__tar
adamc@1132 797 AMTAR
adamc@1132 798 am__leading_dot
adamc@1132 799 SET_MAKE
adamc@1132 800 AWK
adamc@1132 801 mkdir_p
adamc@1132 802 MKDIR_P
adamc@1132 803 INSTALL_STRIP_PROGRAM
adamc@1132 804 STRIP
adamc@1132 805 install_sh
adamc@1132 806 MAKEINFO
adamc@1132 807 AUTOHEADER
adamc@1132 808 AUTOMAKE
adamc@1132 809 AUTOCONF
adamc@1132 810 ACLOCAL
adamc@1132 811 VERSION
adamc@1132 812 PACKAGE
adamc@1132 813 CYGPATH_W
adamc@1132 814 am__isrc
adamc@1132 815 INSTALL_DATA
adamc@1132 816 INSTALL_SCRIPT
adamc@1132 817 INSTALL_PROGRAM
adamc@1095 818 target_alias
adamc@1095 819 host_alias
adamc@1095 820 build_alias
adamc@1095 821 LIBS
adamc@1095 822 ECHO_T
adamc@1095 823 ECHO_N
adamc@1095 824 ECHO_C
adamc@1095 825 DEFS
adamc@1095 826 mandir
adamc@1095 827 localedir
adamc@1095 828 libdir
adamc@1095 829 psdir
adamc@1095 830 pdfdir
adamc@1095 831 dvidir
adamc@1095 832 htmldir
adamc@1095 833 infodir
adamc@1095 834 docdir
adamc@1095 835 oldincludedir
adamc@1095 836 includedir
adamc@1095 837 localstatedir
adamc@1095 838 sharedstatedir
adamc@1095 839 sysconfdir
adamc@1095 840 datadir
adamc@1095 841 datarootdir
adamc@1095 842 libexecdir
adamc@1095 843 sbindir
adamc@1095 844 bindir
adamc@1095 845 program_transform_name
adamc@1095 846 prefix
adamc@1095 847 exec_prefix
adamc@1095 848 PACKAGE_URL
adamc@1095 849 PACKAGE_BUGREPORT
adamc@1095 850 PACKAGE_STRING
adamc@1095 851 PACKAGE_VERSION
adamc@1095 852 PACKAGE_TARNAME
adamc@1095 853 PACKAGE_NAME
adamc@378 854 PATH_SEPARATOR
adamc@1095 855 SHELL'
adamc@378 856 ac_subst_files=''
adamc@1095 857 ac_user_opts='
adamc@1095 858 enable_option_checking
adamc@1132 859 enable_dependency_tracking
adamc@1132 860 enable_shared
adamc@1132 861 enable_static
adamc@1132 862 with_pic
adamc@1132 863 enable_fast_install
adamc@1132 864 with_gnu_ld
adamc@1132 865 enable_libtool_lock
adamc@1095 866 '
adamc@378 867 ac_precious_vars='build_alias
adamc@378 868 host_alias
adamc@1132 869 target_alias
adamc@1132 870 CC
adamc@1132 871 CFLAGS
adamc@1132 872 LDFLAGS
adamc@1132 873 LIBS
adamc@1132 874 CPPFLAGS
adamc@1132 875 CPP'
adamc@378 876
adamc@378 877
adamc@378 878 # Initialize some variables set by options.
adamc@378 879 ac_init_help=
adamc@378 880 ac_init_version=false
adamc@1095 881 ac_unrecognized_opts=
adamc@1095 882 ac_unrecognized_sep=
adamc@378 883 # The variables have the same names as the options, with
adamc@378 884 # dashes changed to underlines.
adamc@378 885 cache_file=/dev/null
adamc@378 886 exec_prefix=NONE
adamc@378 887 no_create=
adamc@378 888 no_recursion=
adamc@378 889 prefix=NONE
adamc@378 890 program_prefix=NONE
adamc@378 891 program_suffix=NONE
adamc@378 892 program_transform_name=s,x,x,
adamc@378 893 silent=
adamc@378 894 site=
adamc@378 895 srcdir=
adamc@378 896 verbose=
adamc@378 897 x_includes=NONE
adamc@378 898 x_libraries=NONE
adamc@378 899
adamc@378 900 # Installation directory options.
adamc@378 901 # These are left unexpanded so users can "make install exec_prefix=/foo"
adamc@378 902 # and all the variables that are supposed to be based on exec_prefix
adamc@378 903 # by default will actually change.
adamc@378 904 # Use braces instead of parens because sh, perl, etc. also accept them.
adamc@378 905 # (The list follows the same order as the GNU Coding Standards.)
adamc@378 906 bindir='${exec_prefix}/bin'
adamc@378 907 sbindir='${exec_prefix}/sbin'
adamc@378 908 libexecdir='${exec_prefix}/libexec'
adamc@378 909 datarootdir='${prefix}/share'
adamc@378 910 datadir='${datarootdir}'
adamc@378 911 sysconfdir='${prefix}/etc'
adamc@378 912 sharedstatedir='${prefix}/com'
adamc@378 913 localstatedir='${prefix}/var'
adamc@378 914 includedir='${prefix}/include'
adamc@378 915 oldincludedir='/usr/include'
adamc@1132 916 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
adamc@378 917 infodir='${datarootdir}/info'
adamc@378 918 htmldir='${docdir}'
adamc@378 919 dvidir='${docdir}'
adamc@378 920 pdfdir='${docdir}'
adamc@378 921 psdir='${docdir}'
adamc@378 922 libdir='${exec_prefix}/lib'
adamc@378 923 localedir='${datarootdir}/locale'
adamc@378 924 mandir='${datarootdir}/man'
adamc@378 925
adamc@378 926 ac_prev=
adamc@378 927 ac_dashdash=
adamc@378 928 for ac_option
adamc@378 929 do
adamc@378 930 # If the previous option needs an argument, assign it.
adamc@378 931 if test -n "$ac_prev"; then
adamc@378 932 eval $ac_prev=\$ac_option
adamc@378 933 ac_prev=
adamc@378 934 continue
adamc@378 935 fi
adamc@378 936
adamc@378 937 case $ac_option in
adamc@378 938 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
adamc@378 939 *) ac_optarg=yes ;;
adamc@378 940 esac
adamc@378 941
adamc@378 942 # Accept the important Cygnus configure options, so we can diagnose typos.
adamc@378 943
adamc@378 944 case $ac_dashdash$ac_option in
adamc@378 945 --)
adamc@378 946 ac_dashdash=yes ;;
adamc@378 947
adamc@378 948 -bindir | --bindir | --bindi | --bind | --bin | --bi)
adamc@378 949 ac_prev=bindir ;;
adamc@378 950 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
adamc@378 951 bindir=$ac_optarg ;;
adamc@378 952
adamc@378 953 -build | --build | --buil | --bui | --bu)
adamc@378 954 ac_prev=build_alias ;;
adamc@378 955 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
adamc@378 956 build_alias=$ac_optarg ;;
adamc@378 957
adamc@378 958 -cache-file | --cache-file | --cache-fil | --cache-fi \
adamc@378 959 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
adamc@378 960 ac_prev=cache_file ;;
adamc@378 961 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
adamc@378 962 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
adamc@378 963 cache_file=$ac_optarg ;;
adamc@378 964
adamc@378 965 --config-cache | -C)
adamc@378 966 cache_file=config.cache ;;
adamc@378 967
adamc@378 968 -datadir | --datadir | --datadi | --datad)
adamc@378 969 ac_prev=datadir ;;
adamc@378 970 -datadir=* | --datadir=* | --datadi=* | --datad=*)
adamc@378 971 datadir=$ac_optarg ;;
adamc@378 972
adamc@378 973 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
adamc@378 974 | --dataroo | --dataro | --datar)
adamc@378 975 ac_prev=datarootdir ;;
adamc@378 976 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
adamc@378 977 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
adamc@378 978 datarootdir=$ac_optarg ;;
adamc@378 979
adamc@378 980 -disable-* | --disable-*)
adamc@1095 981 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
adamc@378 982 # Reject names that are not valid shell variable names.
adamc@1095 983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
adamc@1095 984 as_fn_error "invalid feature name: $ac_useropt"
adamc@1095 985 ac_useropt_orig=$ac_useropt
adamc@1095 986 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
adamc@1095 987 case $ac_user_opts in
adamc@1095 988 *"
adamc@1095 989 "enable_$ac_useropt"
adamc@1095 990 "*) ;;
adamc@1095 991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
adamc@1095 992 ac_unrecognized_sep=', ';;
adamc@1095 993 esac
adamc@1095 994 eval enable_$ac_useropt=no ;;
adamc@378 995
adamc@378 996 -docdir | --docdir | --docdi | --doc | --do)
adamc@378 997 ac_prev=docdir ;;
adamc@378 998 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
adamc@378 999 docdir=$ac_optarg ;;
adamc@378 1000
adamc@378 1001 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
adamc@378 1002 ac_prev=dvidir ;;
adamc@378 1003 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
adamc@378 1004 dvidir=$ac_optarg ;;
adamc@378 1005
adamc@378 1006 -enable-* | --enable-*)
adamc@1095 1007 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
adamc@378 1008 # Reject names that are not valid shell variable names.
adamc@1095 1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
adamc@1095 1010 as_fn_error "invalid feature name: $ac_useropt"
adamc@1095 1011 ac_useropt_orig=$ac_useropt
adamc@1095 1012 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
adamc@1095 1013 case $ac_user_opts in
adamc@1095 1014 *"
adamc@1095 1015 "enable_$ac_useropt"
adamc@1095 1016 "*) ;;
adamc@1095 1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
adamc@1095 1018 ac_unrecognized_sep=', ';;
adamc@1095 1019 esac
adamc@1095 1020 eval enable_$ac_useropt=\$ac_optarg ;;
adamc@378 1021
adamc@378 1022 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
adamc@378 1023 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
adamc@378 1024 | --exec | --exe | --ex)
adamc@378 1025 ac_prev=exec_prefix ;;
adamc@378 1026 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
adamc@378 1027 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
adamc@378 1028 | --exec=* | --exe=* | --ex=*)
adamc@378 1029 exec_prefix=$ac_optarg ;;
adamc@378 1030
adamc@378 1031 -gas | --gas | --ga | --g)
adamc@378 1032 # Obsolete; use --with-gas.
adamc@378 1033 with_gas=yes ;;
adamc@378 1034
adamc@378 1035 -help | --help | --hel | --he | -h)
adamc@378 1036 ac_init_help=long ;;
adamc@378 1037 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
adamc@378 1038 ac_init_help=recursive ;;
adamc@378 1039 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
adamc@378 1040 ac_init_help=short ;;
adamc@378 1041
adamc@378 1042 -host | --host | --hos | --ho)
adamc@378 1043 ac_prev=host_alias ;;
adamc@378 1044 -host=* | --host=* | --hos=* | --ho=*)
adamc@378 1045 host_alias=$ac_optarg ;;
adamc@378 1046
adamc@378 1047 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
adamc@378 1048 ac_prev=htmldir ;;
adamc@378 1049 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
adamc@378 1050 | --ht=*)
adamc@378 1051 htmldir=$ac_optarg ;;
adamc@378 1052
adamc@378 1053 -includedir | --includedir | --includedi | --included | --include \
adamc@378 1054 | --includ | --inclu | --incl | --inc)
adamc@378 1055 ac_prev=includedir ;;
adamc@378 1056 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
adamc@378 1057 | --includ=* | --inclu=* | --incl=* | --inc=*)
adamc@378 1058 includedir=$ac_optarg ;;
adamc@378 1059
adamc@378 1060 -infodir | --infodir | --infodi | --infod | --info | --inf)
adamc@378 1061 ac_prev=infodir ;;
adamc@378 1062 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
adamc@378 1063 infodir=$ac_optarg ;;
adamc@378 1064
adamc@378 1065 -libdir | --libdir | --libdi | --libd)
adamc@378 1066 ac_prev=libdir ;;
adamc@378 1067 -libdir=* | --libdir=* | --libdi=* | --libd=*)
adamc@378 1068 libdir=$ac_optarg ;;
adamc@378 1069
adamc@378 1070 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
adamc@378 1071 | --libexe | --libex | --libe)
adamc@378 1072 ac_prev=libexecdir ;;
adamc@378 1073 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
adamc@378 1074 | --libexe=* | --libex=* | --libe=*)
adamc@378 1075 libexecdir=$ac_optarg ;;
adamc@378 1076
adamc@378 1077 -localedir | --localedir | --localedi | --localed | --locale)
adamc@378 1078 ac_prev=localedir ;;
adamc@378 1079 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
adamc@378 1080 localedir=$ac_optarg ;;
adamc@378 1081
adamc@378 1082 -localstatedir | --localstatedir | --localstatedi | --localstated \
adamc@378 1083 | --localstate | --localstat | --localsta | --localst | --locals)
adamc@378 1084 ac_prev=localstatedir ;;
adamc@378 1085 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
adamc@378 1086 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
adamc@378 1087 localstatedir=$ac_optarg ;;
adamc@378 1088
adamc@378 1089 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
adamc@378 1090 ac_prev=mandir ;;
adamc@378 1091 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
adamc@378 1092 mandir=$ac_optarg ;;
adamc@378 1093
adamc@378 1094 -nfp | --nfp | --nf)
adamc@378 1095 # Obsolete; use --without-fp.
adamc@378 1096 with_fp=no ;;
adamc@378 1097
adamc@378 1098 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
adamc@378 1099 | --no-cr | --no-c | -n)
adamc@378 1100 no_create=yes ;;
adamc@378 1101
adamc@378 1102 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
adamc@378 1103 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
adamc@378 1104 no_recursion=yes ;;
adamc@378 1105
adamc@378 1106 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
adamc@378 1107 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
adamc@378 1108 | --oldin | --oldi | --old | --ol | --o)
adamc@378 1109 ac_prev=oldincludedir ;;
adamc@378 1110 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
adamc@378 1111 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
adamc@378 1112 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
adamc@378 1113 oldincludedir=$ac_optarg ;;
adamc@378 1114
adamc@378 1115 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
adamc@378 1116 ac_prev=prefix ;;
adamc@378 1117 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
adamc@378 1118 prefix=$ac_optarg ;;
adamc@378 1119
adamc@378 1120 -program-prefix | --program-prefix | --program-prefi | --program-pref \
adamc@378 1121 | --program-pre | --program-pr | --program-p)
adamc@378 1122 ac_prev=program_prefix ;;
adamc@378 1123 -program-prefix=* | --program-prefix=* | --program-prefi=* \
adamc@378 1124 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
adamc@378 1125 program_prefix=$ac_optarg ;;
adamc@378 1126
adamc@378 1127 -program-suffix | --program-suffix | --program-suffi | --program-suff \
adamc@378 1128 | --program-suf | --program-su | --program-s)
adamc@378 1129 ac_prev=program_suffix ;;
adamc@378 1130 -program-suffix=* | --program-suffix=* | --program-suffi=* \
adamc@378 1131 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
adamc@378 1132 program_suffix=$ac_optarg ;;
adamc@378 1133
adamc@378 1134 -program-transform-name | --program-transform-name \
adamc@378 1135 | --program-transform-nam | --program-transform-na \
adamc@378 1136 | --program-transform-n | --program-transform- \
adamc@378 1137 | --program-transform | --program-transfor \
adamc@378 1138 | --program-transfo | --program-transf \
adamc@378 1139 | --program-trans | --program-tran \
adamc@378 1140 | --progr-tra | --program-tr | --program-t)
adamc@378 1141 ac_prev=program_transform_name ;;
adamc@378 1142 -program-transform-name=* | --program-transform-name=* \
adamc@378 1143 | --program-transform-nam=* | --program-transform-na=* \
adamc@378 1144 | --program-transform-n=* | --program-transform-=* \
adamc@378 1145 | --program-transform=* | --program-transfor=* \
adamc@378 1146 | --program-transfo=* | --program-transf=* \
adamc@378 1147 | --program-trans=* | --program-tran=* \
adamc@378 1148 | --progr-tra=* | --program-tr=* | --program-t=*)
adamc@378 1149 program_transform_name=$ac_optarg ;;
adamc@378 1150
adamc@378 1151 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
adamc@378 1152 ac_prev=pdfdir ;;
adamc@378 1153 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
adamc@378 1154 pdfdir=$ac_optarg ;;
adamc@378 1155
adamc@378 1156 -psdir | --psdir | --psdi | --psd | --ps)
adamc@378 1157 ac_prev=psdir ;;
adamc@378 1158 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
adamc@378 1159 psdir=$ac_optarg ;;
adamc@378 1160
adamc@378 1161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
adamc@378 1162 | -silent | --silent | --silen | --sile | --sil)
adamc@378 1163 silent=yes ;;
adamc@378 1164
adamc@378 1165 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
adamc@378 1166 ac_prev=sbindir ;;
adamc@378 1167 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
adamc@378 1168 | --sbi=* | --sb=*)
adamc@378 1169 sbindir=$ac_optarg ;;
adamc@378 1170
adamc@378 1171 -sharedstatedir | --sharedstatedir | --sharedstatedi \
adamc@378 1172 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
adamc@378 1173 | --sharedst | --shareds | --shared | --share | --shar \
adamc@378 1174 | --sha | --sh)
adamc@378 1175 ac_prev=sharedstatedir ;;
adamc@378 1176 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
adamc@378 1177 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
adamc@378 1178 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
adamc@378 1179 | --sha=* | --sh=*)
adamc@378 1180 sharedstatedir=$ac_optarg ;;
adamc@378 1181
adamc@378 1182 -site | --site | --sit)
adamc@378 1183 ac_prev=site ;;
adamc@378 1184 -site=* | --site=* | --sit=*)
adamc@378 1185 site=$ac_optarg ;;
adamc@378 1186
adamc@378 1187 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
adamc@378 1188 ac_prev=srcdir ;;
adamc@378 1189 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
adamc@378 1190 srcdir=$ac_optarg ;;
adamc@378 1191
adamc@378 1192 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
adamc@378 1193 | --syscon | --sysco | --sysc | --sys | --sy)
adamc@378 1194 ac_prev=sysconfdir ;;
adamc@378 1195 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
adamc@378 1196 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
adamc@378 1197 sysconfdir=$ac_optarg ;;
adamc@378 1198
adamc@378 1199 -target | --target | --targe | --targ | --tar | --ta | --t)
adamc@378 1200 ac_prev=target_alias ;;
adamc@378 1201 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
adamc@378 1202 target_alias=$ac_optarg ;;
adamc@378 1203
adamc@378 1204 -v | -verbose | --verbose | --verbos | --verbo | --verb)
adamc@378 1205 verbose=yes ;;
adamc@378 1206
adamc@378 1207 -version | --version | --versio | --versi | --vers | -V)
adamc@378 1208 ac_init_version=: ;;
adamc@378 1209
adamc@378 1210 -with-* | --with-*)
adamc@1095 1211 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
adamc@378 1212 # Reject names that are not valid shell variable names.
adamc@1095 1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
adamc@1095 1214 as_fn_error "invalid package name: $ac_useropt"
adamc@1095 1215 ac_useropt_orig=$ac_useropt
adamc@1095 1216 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
adamc@1095 1217 case $ac_user_opts in
adamc@1095 1218 *"
adamc@1095 1219 "with_$ac_useropt"
adamc@1095 1220 "*) ;;
adamc@1095 1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
adamc@1095 1222 ac_unrecognized_sep=', ';;
adamc@1095 1223 esac
adamc@1095 1224 eval with_$ac_useropt=\$ac_optarg ;;
adamc@378 1225
adamc@378 1226 -without-* | --without-*)
adamc@1095 1227 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
adamc@378 1228 # Reject names that are not valid shell variable names.
adamc@1095 1229 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
adamc@1095 1230 as_fn_error "invalid package name: $ac_useropt"
adamc@1095 1231 ac_useropt_orig=$ac_useropt
adamc@1095 1232 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
adamc@1095 1233 case $ac_user_opts in
adamc@1095 1234 *"
adamc@1095 1235 "with_$ac_useropt"
adamc@1095 1236 "*) ;;
adamc@1095 1237 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
adamc@1095 1238 ac_unrecognized_sep=', ';;
adamc@1095 1239 esac
adamc@1095 1240 eval with_$ac_useropt=no ;;
adamc@378 1241
adamc@378 1242 --x)
adamc@378 1243 # Obsolete; use --with-x.
adamc@378 1244 with_x=yes ;;
adamc@378 1245
adamc@378 1246 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
adamc@378 1247 | --x-incl | --x-inc | --x-in | --x-i)
adamc@378 1248 ac_prev=x_includes ;;
adamc@378 1249 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
adamc@378 1250 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
adamc@378 1251 x_includes=$ac_optarg ;;
adamc@378 1252
adamc@378 1253 -x-libraries | --x-libraries | --x-librarie | --x-librari \
adamc@378 1254 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
adamc@378 1255 ac_prev=x_libraries ;;
adamc@378 1256 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
adamc@378 1257 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
adamc@378 1258 x_libraries=$ac_optarg ;;
adamc@378 1259
adamc@1095 1260 -*) as_fn_error "unrecognized option: \`$ac_option'
adamc@1095 1261 Try \`$0 --help' for more information."
adamc@378 1262 ;;
adamc@378 1263
adamc@378 1264 *=*)
adamc@378 1265 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
adamc@378 1266 # Reject names that are not valid shell variable names.
adamc@1095 1267 case $ac_envvar in #(
adamc@1095 1268 '' | [0-9]* | *[!_$as_cr_alnum]* )
adamc@1095 1269 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
adamc@1095 1270 esac
adamc@378 1271 eval $ac_envvar=\$ac_optarg
adamc@378 1272 export $ac_envvar ;;
adamc@378 1273
adamc@378 1274 *)
adamc@378 1275 # FIXME: should be removed in autoconf 3.0.
adamc@1095 1276 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
adamc@378 1277 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
adamc@1095 1278 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
adamc@378 1279 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
adamc@378 1280 ;;
adamc@378 1281
adamc@378 1282 esac
adamc@378 1283 done
adamc@378 1284
adamc@378 1285 if test -n "$ac_prev"; then
adamc@378 1286 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
adamc@1095 1287 as_fn_error "missing argument to $ac_option"
adamc@378 1288 fi
adamc@378 1289
adamc@1095 1290 if test -n "$ac_unrecognized_opts"; then
adamc@1095 1291 case $enable_option_checking in
adamc@1095 1292 no) ;;
adamc@1095 1293 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
adamc@1095 1294 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
adamc@1095 1295 esac
adamc@1095 1296 fi
adamc@1095 1297
adamc@1095 1298 # Check all directory arguments for consistency.
adamc@378 1299 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
adamc@378 1300 datadir sysconfdir sharedstatedir localstatedir includedir \
adamc@378 1301 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
adamc@378 1302 libdir localedir mandir
adamc@378 1303 do
adamc@378 1304 eval ac_val=\$$ac_var
adamc@1095 1305 # Remove trailing slashes.
adamc@1095 1306 case $ac_val in
adamc@1095 1307 */ )
adamc@1095 1308 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
adamc@1095 1309 eval $ac_var=\$ac_val;;
adamc@1095 1310 esac
adamc@1095 1311 # Be sure to have absolute directory names.
adamc@378 1312 case $ac_val in
adamc@378 1313 [\\/$]* | ?:[\\/]* ) continue;;
adamc@378 1314 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
adamc@378 1315 esac
adamc@1095 1316 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
adamc@378 1317 done
adamc@378 1318
adamc@378 1319 # There might be people who depend on the old broken behavior: `$host'
adamc@378 1320 # used to hold the argument of --host etc.
adamc@378 1321 # FIXME: To remove some day.
adamc@378 1322 build=$build_alias
adamc@378 1323 host=$host_alias
adamc@378 1324 target=$target_alias
adamc@378 1325
adamc@378 1326 # FIXME: To remove some day.
adamc@378 1327 if test "x$host_alias" != x; then
adamc@378 1328 if test "x$build_alias" = x; then
adamc@378 1329 cross_compiling=maybe
adamc@1095 1330 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
adamc@378 1331 If a cross compiler is detected then cross compile mode will be used." >&2
adamc@378 1332 elif test "x$build_alias" != "x$host_alias"; then
adamc@378 1333 cross_compiling=yes
adamc@378 1334 fi
adamc@378 1335 fi
adamc@378 1336
adamc@378 1337 ac_tool_prefix=
adamc@378 1338 test -n "$host_alias" && ac_tool_prefix=$host_alias-
adamc@378 1339
adamc@378 1340 test "$silent" = yes && exec 6>/dev/null
adamc@378 1341
adamc@378 1342
adamc@378 1343 ac_pwd=`pwd` && test -n "$ac_pwd" &&
adamc@378 1344 ac_ls_di=`ls -di .` &&
adamc@378 1345 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
adamc@1095 1346 as_fn_error "working directory cannot be determined"
adamc@378 1347 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
adamc@1095 1348 as_fn_error "pwd does not report name of working directory"
adamc@378 1349
adamc@378 1350
adamc@378 1351 # Find the source files, if location was not specified.
adamc@378 1352 if test -z "$srcdir"; then
adamc@378 1353 ac_srcdir_defaulted=yes
adamc@378 1354 # Try the directory containing this script, then the parent directory.
adamc@1095 1355 ac_confdir=`$as_dirname -- "$as_myself" ||
adamc@1095 1356 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
adamc@1095 1357 X"$as_myself" : 'X\(//\)[^/]' \| \
adamc@1095 1358 X"$as_myself" : 'X\(//\)$' \| \
adamc@1095 1359 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1095 1360 $as_echo X"$as_myself" |
adamc@378 1361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
adamc@378 1362 s//\1/
adamc@378 1363 q
adamc@378 1364 }
adamc@378 1365 /^X\(\/\/\)[^/].*/{
adamc@378 1366 s//\1/
adamc@378 1367 q
adamc@378 1368 }
adamc@378 1369 /^X\(\/\/\)$/{
adamc@378 1370 s//\1/
adamc@378 1371 q
adamc@378 1372 }
adamc@378 1373 /^X\(\/\).*/{
adamc@378 1374 s//\1/
adamc@378 1375 q
adamc@378 1376 }
adamc@378 1377 s/.*/./; q'`
adamc@378 1378 srcdir=$ac_confdir
adamc@378 1379 if test ! -r "$srcdir/$ac_unique_file"; then
adamc@378 1380 srcdir=..
adamc@378 1381 fi
adamc@378 1382 else
adamc@378 1383 ac_srcdir_defaulted=no
adamc@378 1384 fi
adamc@378 1385 if test ! -r "$srcdir/$ac_unique_file"; then
adamc@378 1386 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
adamc@1095 1387 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
adamc@378 1388 fi
adamc@378 1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
adamc@378 1390 ac_abs_confdir=`(
adamc@1095 1391 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
adamc@378 1392 pwd)`
adamc@378 1393 # When building in place, set srcdir=.
adamc@378 1394 if test "$ac_abs_confdir" = "$ac_pwd"; then
adamc@378 1395 srcdir=.
adamc@378 1396 fi
adamc@378 1397 # Remove unnecessary trailing slashes from srcdir.
adamc@378 1398 # Double slashes in file names in object file debugging info
adamc@378 1399 # mess up M-x gdb in Emacs.
adamc@378 1400 case $srcdir in
adamc@378 1401 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
adamc@378 1402 esac
adamc@378 1403 for ac_var in $ac_precious_vars; do
adamc@378 1404 eval ac_env_${ac_var}_set=\${${ac_var}+set}
adamc@378 1405 eval ac_env_${ac_var}_value=\$${ac_var}
adamc@378 1406 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
adamc@378 1407 eval ac_cv_env_${ac_var}_value=\$${ac_var}
adamc@378 1408 done
adamc@378 1409
adamc@378 1410 #
adamc@378 1411 # Report the --help message.
adamc@378 1412 #
adamc@378 1413 if test "$ac_init_help" = "long"; then
adamc@378 1414 # Omit some internal or obsolete options to make the list less imposing.
adamc@378 1415 # This message is too long to be a string in the A/UX 3.1 sh.
adamc@378 1416 cat <<_ACEOF
adamc@1132 1417 \`configure' configures urweb 1.0 to adapt to many kinds of systems.
adamc@378 1418
adamc@378 1419 Usage: $0 [OPTION]... [VAR=VALUE]...
adamc@378 1420
adamc@378 1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as
adamc@378 1422 VAR=VALUE. See below for descriptions of some of the useful variables.
adamc@378 1423
adamc@378 1424 Defaults for the options are specified in brackets.
adamc@378 1425
adamc@378 1426 Configuration:
adamc@378 1427 -h, --help display this help and exit
adamc@378 1428 --help=short display options specific to this package
adamc@378 1429 --help=recursive display the short help of all the included packages
adamc@378 1430 -V, --version display version information and exit
adamc@378 1431 -q, --quiet, --silent do not print \`checking...' messages
adamc@378 1432 --cache-file=FILE cache test results in FILE [disabled]
adamc@378 1433 -C, --config-cache alias for \`--cache-file=config.cache'
adamc@378 1434 -n, --no-create do not create output files
adamc@378 1435 --srcdir=DIR find the sources in DIR [configure dir or \`..']
adamc@378 1436
adamc@378 1437 Installation directories:
adamc@378 1438 --prefix=PREFIX install architecture-independent files in PREFIX
adamc@1095 1439 [$ac_default_prefix]
adamc@378 1440 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
adamc@1095 1441 [PREFIX]
adamc@378 1442
adamc@378 1443 By default, \`make install' will install all the files in
adamc@378 1444 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
adamc@378 1445 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
adamc@378 1446 for instance \`--prefix=\$HOME'.
adamc@378 1447
adamc@378 1448 For better control, use the options below.
adamc@378 1449
adamc@378 1450 Fine tuning of the installation directories:
adamc@1095 1451 --bindir=DIR user executables [EPREFIX/bin]
adamc@1095 1452 --sbindir=DIR system admin executables [EPREFIX/sbin]
adamc@1095 1453 --libexecdir=DIR program executables [EPREFIX/libexec]
adamc@1095 1454 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
adamc@1095 1455 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
adamc@1095 1456 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
adamc@1095 1457 --libdir=DIR object code libraries [EPREFIX/lib]
adamc@1095 1458 --includedir=DIR C header files [PREFIX/include]
adamc@1095 1459 --oldincludedir=DIR C header files for non-gcc [/usr/include]
adamc@1095 1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
adamc@1095 1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
adamc@1095 1462 --infodir=DIR info documentation [DATAROOTDIR/info]
adamc@1095 1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
adamc@1095 1464 --mandir=DIR man documentation [DATAROOTDIR/man]
adamc@1132 1465 --docdir=DIR documentation root [DATAROOTDIR/doc/urweb]
adamc@1095 1466 --htmldir=DIR html documentation [DOCDIR]
adamc@1095 1467 --dvidir=DIR dvi documentation [DOCDIR]
adamc@1095 1468 --pdfdir=DIR pdf documentation [DOCDIR]
adamc@1095 1469 --psdir=DIR ps documentation [DOCDIR]
adamc@378 1470 _ACEOF
adamc@378 1471
adamc@378 1472 cat <<\_ACEOF
adamc@1132 1473
adamc@1132 1474 Program names:
adamc@1132 1475 --program-prefix=PREFIX prepend PREFIX to installed program names
adamc@1132 1476 --program-suffix=SUFFIX append SUFFIX to installed program names
adamc@1132 1477 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
adamc@1132 1478
adamc@1132 1479 System types:
adamc@1132 1480 --build=BUILD configure for building on BUILD [guessed]
adamc@1132 1481 --host=HOST cross-compile to build programs to run on HOST [BUILD]
adamc@378 1482 _ACEOF
adamc@378 1483 fi
adamc@378 1484
adamc@378 1485 if test -n "$ac_init_help"; then
adamc@1132 1486 case $ac_init_help in
adamc@1132 1487 short | recursive ) echo "Configuration of urweb 1.0:";;
adamc@1132 1488 esac
adamc@378 1489 cat <<\_ACEOF
adamc@378 1490
adamc@1132 1491 Optional Features:
adamc@1132 1492 --disable-option-checking ignore unrecognized --enable/--with options
adamc@1132 1493 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
adamc@1132 1494 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
adamc@1132 1495 --disable-dependency-tracking speeds up one-time build
adamc@1132 1496 --enable-dependency-tracking do not reject slow dependency extractors
adamc@1132 1497 --enable-shared[=PKGS] build shared libraries [default=yes]
adamc@1132 1498 --enable-static[=PKGS] build static libraries [default=yes]
adamc@1132 1499 --enable-fast-install[=PKGS]
adamc@1132 1500 optimize for fast installation [default=yes]
adamc@1132 1501 --disable-libtool-lock avoid locking (might break parallel builds)
adamc@1132 1502
adamc@1132 1503 Optional Packages:
adamc@1132 1504 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
adamc@1132 1505 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
adamc@1132 1506 --with-pic try to use only PIC/non-PIC objects [default=use
adamc@1132 1507 both]
adamc@1132 1508 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
adamc@1132 1509
adamc@1132 1510 Some influential environment variables:
adamc@1132 1511 CC C compiler command
adamc@1132 1512 CFLAGS C compiler flags
adamc@1132 1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
adamc@1132 1514 nonstandard directory <lib dir>
adamc@1132 1515 LIBS libraries to pass to the linker, e.g. -l<library>
adamc@1132 1516 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
adamc@1132 1517 you have headers in a nonstandard directory <include dir>
adamc@1132 1518 CPP C preprocessor
adamc@1132 1519
adamc@1132 1520 Use these variables to override the choices made by `configure' or to help
adamc@1132 1521 it to find libraries and programs with nonstandard names/locations.
adamc@1132 1522
adamc@1095 1523 Report bugs to the package provider.
adamc@378 1524 _ACEOF
adamc@378 1525 ac_status=$?
adamc@378 1526 fi
adamc@378 1527
adamc@378 1528 if test "$ac_init_help" = "recursive"; then
adamc@378 1529 # If there are subdirs, report their specific --help.
adamc@378 1530 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
adamc@1095 1531 test -d "$ac_dir" ||
adamc@1095 1532 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
adamc@1095 1533 continue
adamc@378 1534 ac_builddir=.
adamc@378 1535
adamc@378 1536 case "$ac_dir" in
adamc@378 1537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
adamc@378 1538 *)
adamc@1095 1539 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
adamc@378 1540 # A ".." for each directory in $ac_dir_suffix.
adamc@1095 1541 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
adamc@378 1542 case $ac_top_builddir_sub in
adamc@378 1543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
adamc@378 1544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
adamc@378 1545 esac ;;
adamc@378 1546 esac
adamc@378 1547 ac_abs_top_builddir=$ac_pwd
adamc@378 1548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
adamc@378 1549 # for backward compatibility:
adamc@378 1550 ac_top_builddir=$ac_top_build_prefix
adamc@378 1551
adamc@378 1552 case $srcdir in
adamc@378 1553 .) # We are building in place.
adamc@378 1554 ac_srcdir=.
adamc@378 1555 ac_top_srcdir=$ac_top_builddir_sub
adamc@378 1556 ac_abs_top_srcdir=$ac_pwd ;;
adamc@378 1557 [\\/]* | ?:[\\/]* ) # Absolute name.
adamc@378 1558 ac_srcdir=$srcdir$ac_dir_suffix;
adamc@378 1559 ac_top_srcdir=$srcdir
adamc@378 1560 ac_abs_top_srcdir=$srcdir ;;
adamc@378 1561 *) # Relative name.
adamc@378 1562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
adamc@378 1563 ac_top_srcdir=$ac_top_build_prefix$srcdir
adamc@378 1564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
adamc@378 1565 esac
adamc@378 1566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
adamc@378 1567
adamc@378 1568 cd "$ac_dir" || { ac_status=$?; continue; }
adamc@378 1569 # Check for guested configure.
adamc@378 1570 if test -f "$ac_srcdir/configure.gnu"; then
adamc@378 1571 echo &&
adamc@378 1572 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
adamc@378 1573 elif test -f "$ac_srcdir/configure"; then
adamc@378 1574 echo &&
adamc@378 1575 $SHELL "$ac_srcdir/configure" --help=recursive
adamc@378 1576 else
adamc@1095 1577 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
adamc@378 1578 fi || ac_status=$?
adamc@378 1579 cd "$ac_pwd" || { ac_status=$?; break; }
adamc@378 1580 done
adamc@378 1581 fi
adamc@378 1582
adamc@378 1583 test -n "$ac_init_help" && exit $ac_status
adamc@378 1584 if $ac_init_version; then
adamc@378 1585 cat <<\_ACEOF
adamc@1132 1586 urweb configure 1.0
adamc@1095 1587 generated by GNU Autoconf 2.65
adamc@378 1588
adamc@1095 1589 Copyright (C) 2009 Free Software Foundation, Inc.
adamc@378 1590 This configure script is free software; the Free Software Foundation
adamc@378 1591 gives unlimited permission to copy, distribute and modify it.
adamc@378 1592 _ACEOF
adamc@378 1593 exit
adamc@378 1594 fi
adamc@1095 1595
adamc@1095 1596 ## ------------------------ ##
adamc@1095 1597 ## Autoconf initialization. ##
adamc@1095 1598 ## ------------------------ ##
adamc@1132 1599
adamc@1132 1600 # ac_fn_c_try_compile LINENO
adamc@1132 1601 # --------------------------
adamc@1132 1602 # Try to compile conftest.$ac_ext, and return whether this succeeded.
adamc@1132 1603 ac_fn_c_try_compile ()
adamc@1132 1604 {
adamc@1132 1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adamc@1132 1606 rm -f conftest.$ac_objext
adamc@1132 1607 if { { ac_try="$ac_compile"
adamc@1132 1608 case "(($ac_try" in
adamc@1132 1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1132 1610 *) ac_try_echo=$ac_try;;
adamc@1132 1611 esac
adamc@1132 1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1132 1613 $as_echo "$ac_try_echo"; } >&5
adamc@1132 1614 (eval "$ac_compile") 2>conftest.err
adamc@1132 1615 ac_status=$?
adamc@1132 1616 if test -s conftest.err; then
adamc@1132 1617 grep -v '^ *+' conftest.err >conftest.er1
adamc@1132 1618 cat conftest.er1 >&5
adamc@1132 1619 mv -f conftest.er1 conftest.err
adamc@1132 1620 fi
adamc@1132 1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 1622 test $ac_status = 0; } && {
adamc@1132 1623 test -z "$ac_c_werror_flag" ||
adamc@1132 1624 test ! -s conftest.err
adamc@1132 1625 } && test -s conftest.$ac_objext; then :
adamc@1132 1626 ac_retval=0
adamc@1132 1627 else
adamc@1132 1628 $as_echo "$as_me: failed program was:" >&5
adamc@1132 1629 sed 's/^/| /' conftest.$ac_ext >&5
adamc@1132 1630
adamc@1132 1631 ac_retval=1
adamc@1132 1632 fi
adamc@1132 1633 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
adamc@1132 1634 as_fn_set_status $ac_retval
adamc@1132 1635
adamc@1132 1636 } # ac_fn_c_try_compile
adamc@1132 1637
adamc@1132 1638 # ac_fn_c_try_link LINENO
adamc@1132 1639 # -----------------------
adamc@1132 1640 # Try to link conftest.$ac_ext, and return whether this succeeded.
adamc@1132 1641 ac_fn_c_try_link ()
adamc@1132 1642 {
adamc@1132 1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adamc@1132 1644 rm -f conftest.$ac_objext conftest$ac_exeext
adamc@1132 1645 if { { ac_try="$ac_link"
adamc@1132 1646 case "(($ac_try" in
adamc@1132 1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1132 1648 *) ac_try_echo=$ac_try;;
adamc@1132 1649 esac
adamc@1132 1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1132 1651 $as_echo "$ac_try_echo"; } >&5
adamc@1132 1652 (eval "$ac_link") 2>conftest.err
adamc@1132 1653 ac_status=$?
adamc@1132 1654 if test -s conftest.err; then
adamc@1132 1655 grep -v '^ *+' conftest.err >conftest.er1
adamc@1132 1656 cat conftest.er1 >&5
adamc@1132 1657 mv -f conftest.er1 conftest.err
adamc@1132 1658 fi
adamc@1132 1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 1660 test $ac_status = 0; } && {
adamc@1132 1661 test -z "$ac_c_werror_flag" ||
adamc@1132 1662 test ! -s conftest.err
adamc@1132 1663 } && test -s conftest$ac_exeext && {
adamc@1132 1664 test "$cross_compiling" = yes ||
adamc@1132 1665 $as_test_x conftest$ac_exeext
adamc@1132 1666 }; then :
adamc@1132 1667 ac_retval=0
adamc@1132 1668 else
adamc@1132 1669 $as_echo "$as_me: failed program was:" >&5
adamc@1132 1670 sed 's/^/| /' conftest.$ac_ext >&5
adamc@1132 1671
adamc@1132 1672 ac_retval=1
adamc@1132 1673 fi
adamc@1132 1674 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
adamc@1132 1675 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
adamc@1132 1676 # interfere with the next link command; also delete a directory that is
adamc@1132 1677 # left behind by Apple's compiler. We do this before executing the actions.
adamc@1132 1678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
adamc@1132 1679 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
adamc@1132 1680 as_fn_set_status $ac_retval
adamc@1132 1681
adamc@1132 1682 } # ac_fn_c_try_link
adamc@1132 1683
adamc@1132 1684 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
adamc@1132 1685 # -------------------------------------------------------
adamc@1132 1686 # Tests whether HEADER exists and can be compiled using the include files in
adamc@1132 1687 # INCLUDES, setting the cache variable VAR accordingly.
adamc@1132 1688 ac_fn_c_check_header_compile ()
adamc@1132 1689 {
adamc@1132 1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adamc@1132 1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
adamc@1132 1692 $as_echo_n "checking for $2... " >&6; }
adamc@1132 1693 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
adamc@1132 1694 $as_echo_n "(cached) " >&6
adamc@1132 1695 else
adamc@1132 1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 1697 /* end confdefs.h. */
adamc@1132 1698 $4
adamc@1132 1699 #include <$2>
adamc@1132 1700 _ACEOF
adamc@1132 1701 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1132 1702 eval "$3=yes"
adamc@1132 1703 else
adamc@1132 1704 eval "$3=no"
adamc@1132 1705 fi
adamc@1132 1706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1132 1707 fi
adamc@1132 1708 eval ac_res=\$$3
adamc@1132 1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
adamc@1132 1710 $as_echo "$ac_res" >&6; }
adamc@1132 1711 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
adamc@1132 1712
adamc@1132 1713 } # ac_fn_c_check_header_compile
adamc@1132 1714
adamc@1132 1715 # ac_fn_c_try_cpp LINENO
adamc@1132 1716 # ----------------------
adamc@1132 1717 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
adamc@1132 1718 ac_fn_c_try_cpp ()
adamc@1132 1719 {
adamc@1132 1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adamc@1132 1721 if { { ac_try="$ac_cpp conftest.$ac_ext"
adamc@1132 1722 case "(($ac_try" in
adamc@1132 1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1132 1724 *) ac_try_echo=$ac_try;;
adamc@1132 1725 esac
adamc@1132 1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1132 1727 $as_echo "$ac_try_echo"; } >&5
adamc@1132 1728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
adamc@1132 1729 ac_status=$?
adamc@1132 1730 if test -s conftest.err; then
adamc@1132 1731 grep -v '^ *+' conftest.err >conftest.er1
adamc@1132 1732 cat conftest.er1 >&5
adamc@1132 1733 mv -f conftest.er1 conftest.err
adamc@1132 1734 fi
adamc@1132 1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 1736 test $ac_status = 0; } >/dev/null && {
adamc@1132 1737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
adamc@1132 1738 test ! -s conftest.err
adamc@1132 1739 }; then :
adamc@1132 1740 ac_retval=0
adamc@1132 1741 else
adamc@1132 1742 $as_echo "$as_me: failed program was:" >&5
adamc@1132 1743 sed 's/^/| /' conftest.$ac_ext >&5
adamc@1132 1744
adamc@1132 1745 ac_retval=1
adamc@1132 1746 fi
adamc@1132 1747 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
adamc@1132 1748 as_fn_set_status $ac_retval
adamc@1132 1749
adamc@1132 1750 } # ac_fn_c_try_cpp
adamc@1132 1751
adamc@1132 1752 # ac_fn_c_try_run LINENO
adamc@1132 1753 # ----------------------
adamc@1132 1754 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
adamc@1132 1755 # that executables *can* be run.
adamc@1132 1756 ac_fn_c_try_run ()
adamc@1132 1757 {
adamc@1132 1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adamc@1132 1759 if { { ac_try="$ac_link"
adamc@1132 1760 case "(($ac_try" in
adamc@1132 1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1132 1762 *) ac_try_echo=$ac_try;;
adamc@1132 1763 esac
adamc@1132 1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1132 1765 $as_echo "$ac_try_echo"; } >&5
adamc@1132 1766 (eval "$ac_link") 2>&5
adamc@1132 1767 ac_status=$?
adamc@1132 1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 1769 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
adamc@1132 1770 { { case "(($ac_try" in
adamc@1132 1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1132 1772 *) ac_try_echo=$ac_try;;
adamc@1132 1773 esac
adamc@1132 1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1132 1775 $as_echo "$ac_try_echo"; } >&5
adamc@1132 1776 (eval "$ac_try") 2>&5
adamc@1132 1777 ac_status=$?
adamc@1132 1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 1779 test $ac_status = 0; }; }; then :
adamc@1132 1780 ac_retval=0
adamc@1132 1781 else
adamc@1132 1782 $as_echo "$as_me: program exited with status $ac_status" >&5
adamc@1132 1783 $as_echo "$as_me: failed program was:" >&5
adamc@1132 1784 sed 's/^/| /' conftest.$ac_ext >&5
adamc@1132 1785
adamc@1132 1786 ac_retval=$ac_status
adamc@1132 1787 fi
adamc@1132 1788 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
adamc@1132 1789 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
adamc@1132 1790 as_fn_set_status $ac_retval
adamc@1132 1791
adamc@1132 1792 } # ac_fn_c_try_run
adamc@1132 1793
adamc@1132 1794 # ac_fn_c_check_func LINENO FUNC VAR
adamc@1132 1795 # ----------------------------------
adamc@1132 1796 # Tests whether FUNC exists, setting the cache variable VAR accordingly
adamc@1132 1797 ac_fn_c_check_func ()
adamc@1132 1798 {
adamc@1132 1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adamc@1132 1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
adamc@1132 1801 $as_echo_n "checking for $2... " >&6; }
adamc@1132 1802 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
adamc@1132 1803 $as_echo_n "(cached) " >&6
adamc@1132 1804 else
adamc@1132 1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 1806 /* end confdefs.h. */
adamc@1132 1807 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
adamc@1132 1808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
adamc@1132 1809 #define $2 innocuous_$2
adamc@1132 1810
adamc@1132 1811 /* System header to define __stub macros and hopefully few prototypes,
adamc@1132 1812 which can conflict with char $2 (); below.
adamc@1132 1813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
adamc@1132 1814 <limits.h> exists even on freestanding compilers. */
adamc@1132 1815
adamc@1132 1816 #ifdef __STDC__
adamc@1132 1817 # include <limits.h>
adamc@1132 1818 #else
adamc@1132 1819 # include <assert.h>
adamc@1132 1820 #endif
adamc@1132 1821
adamc@1132 1822 #undef $2
adamc@1132 1823
adamc@1132 1824 /* Override any GCC internal prototype to avoid an error.
adamc@1132 1825 Use char because int might match the return type of a GCC
adamc@1132 1826 builtin and then its argument prototype would still apply. */
adamc@1132 1827 #ifdef __cplusplus
adamc@1132 1828 extern "C"
adamc@1132 1829 #endif
adamc@1132 1830 char $2 ();
adamc@1132 1831 /* The GNU C library defines this for functions which it implements
adamc@1132 1832 to always fail with ENOSYS. Some functions are actually named
adamc@1132 1833 something starting with __ and the normal name is an alias. */
adamc@1132 1834 #if defined __stub_$2 || defined __stub___$2
adamc@1132 1835 choke me
adamc@1132 1836 #endif
adamc@1132 1837
adamc@1132 1838 int
adamc@1132 1839 main ()
adamc@1132 1840 {
adamc@1132 1841 return $2 ();
adamc@1132 1842 ;
adamc@1132 1843 return 0;
adamc@1132 1844 }
adamc@1132 1845 _ACEOF
adamc@1132 1846 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 1847 eval "$3=yes"
adamc@1132 1848 else
adamc@1132 1849 eval "$3=no"
adamc@1132 1850 fi
adamc@1132 1851 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 1852 conftest$ac_exeext conftest.$ac_ext
adamc@1132 1853 fi
adamc@1132 1854 eval ac_res=\$$3
adamc@1132 1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
adamc@1132 1856 $as_echo "$ac_res" >&6; }
adamc@1132 1857 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
adamc@1132 1858
adamc@1132 1859 } # ac_fn_c_check_func
adamc@378 1860 cat >config.log <<_ACEOF
adamc@378 1861 This file contains any messages produced by compilers while
adamc@378 1862 running configure, to aid debugging if configure makes a mistake.
adamc@378 1863
adamc@1132 1864 It was created by urweb $as_me 1.0, which was
adamc@1095 1865 generated by GNU Autoconf 2.65. Invocation command line was
adamc@378 1866
adamc@378 1867 $ $0 $@
adamc@378 1868
adamc@378 1869 _ACEOF
adamc@378 1870 exec 5>>config.log
adamc@378 1871 {
adamc@378 1872 cat <<_ASUNAME
adamc@378 1873 ## --------- ##
adamc@378 1874 ## Platform. ##
adamc@378 1875 ## --------- ##
adamc@378 1876
adamc@378 1877 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
adamc@378 1878 uname -m = `(uname -m) 2>/dev/null || echo unknown`
adamc@378 1879 uname -r = `(uname -r) 2>/dev/null || echo unknown`
adamc@378 1880 uname -s = `(uname -s) 2>/dev/null || echo unknown`
adamc@378 1881 uname -v = `(uname -v) 2>/dev/null || echo unknown`
adamc@378 1882
adamc@378 1883 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
adamc@378 1884 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
adamc@378 1885
adamc@378 1886 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
adamc@378 1887 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
adamc@378 1888 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
adamc@378 1889 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
adamc@378 1890 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
adamc@378 1891 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
adamc@378 1892 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
adamc@378 1893
adamc@378 1894 _ASUNAME
adamc@378 1895
adamc@378 1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@378 1897 for as_dir in $PATH
adamc@378 1898 do
adamc@378 1899 IFS=$as_save_IFS
adamc@378 1900 test -z "$as_dir" && as_dir=.
adamc@1095 1901 $as_echo "PATH: $as_dir"
adamc@1095 1902 done
adamc@378 1903 IFS=$as_save_IFS
adamc@378 1904
adamc@378 1905 } >&5
adamc@378 1906
adamc@378 1907 cat >&5 <<_ACEOF
adamc@378 1908
adamc@378 1909
adamc@378 1910 ## ----------- ##
adamc@378 1911 ## Core tests. ##
adamc@378 1912 ## ----------- ##
adamc@378 1913
adamc@378 1914 _ACEOF
adamc@378 1915
adamc@378 1916
adamc@378 1917 # Keep a trace of the command line.
adamc@378 1918 # Strip out --no-create and --no-recursion so they do not pile up.
adamc@378 1919 # Strip out --silent because we don't want to record it for future runs.
adamc@378 1920 # Also quote any args containing shell meta-characters.
adamc@378 1921 # Make two passes to allow for proper duplicate-argument suppression.
adamc@378 1922 ac_configure_args=
adamc@378 1923 ac_configure_args0=
adamc@378 1924 ac_configure_args1=
adamc@378 1925 ac_must_keep_next=false
adamc@378 1926 for ac_pass in 1 2
adamc@378 1927 do
adamc@378 1928 for ac_arg
adamc@378 1929 do
adamc@378 1930 case $ac_arg in
adamc@378 1931 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
adamc@378 1932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
adamc@378 1933 | -silent | --silent | --silen | --sile | --sil)
adamc@378 1934 continue ;;
adamc@378 1935 *\'*)
adamc@1095 1936 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
adamc@378 1937 esac
adamc@378 1938 case $ac_pass in
adamc@1095 1939 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
adamc@378 1940 2)
adamc@1095 1941 as_fn_append ac_configure_args1 " '$ac_arg'"
adamc@378 1942 if test $ac_must_keep_next = true; then
adamc@378 1943 ac_must_keep_next=false # Got value, back to normal.
adamc@378 1944 else
adamc@378 1945 case $ac_arg in
adamc@378 1946 *=* | --config-cache | -C | -disable-* | --disable-* \
adamc@378 1947 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
adamc@378 1948 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
adamc@378 1949 | -with-* | --with-* | -without-* | --without-* | --x)
adamc@378 1950 case "$ac_configure_args0 " in
adamc@378 1951 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
adamc@378 1952 esac
adamc@378 1953 ;;
adamc@378 1954 -* ) ac_must_keep_next=true ;;
adamc@378 1955 esac
adamc@378 1956 fi
adamc@1095 1957 as_fn_append ac_configure_args " '$ac_arg'"
adamc@378 1958 ;;
adamc@378 1959 esac
adamc@378 1960 done
adamc@378 1961 done
adamc@1095 1962 { ac_configure_args0=; unset ac_configure_args0;}
adamc@1095 1963 { ac_configure_args1=; unset ac_configure_args1;}
adamc@378 1964
adamc@378 1965 # When interrupted or exit'd, cleanup temporary files, and complete
adamc@378 1966 # config.log. We remove comments because anyway the quotes in there
adamc@378 1967 # would cause problems or look ugly.
adamc@378 1968 # WARNING: Use '\'' to represent an apostrophe within the trap.
adamc@378 1969 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
adamc@378 1970 trap 'exit_status=$?
adamc@378 1971 # Save into config.log some information that might help in debugging.
adamc@378 1972 {
adamc@378 1973 echo
adamc@378 1974
adamc@378 1975 cat <<\_ASBOX
adamc@378 1976 ## ---------------- ##
adamc@378 1977 ## Cache variables. ##
adamc@378 1978 ## ---------------- ##
adamc@378 1979 _ASBOX
adamc@378 1980 echo
adamc@378 1981 # The following way of writing the cache mishandles newlines in values,
adamc@378 1982 (
adamc@378 1983 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
adamc@378 1984 eval ac_val=\$$ac_var
adamc@378 1985 case $ac_val in #(
adamc@378 1986 *${as_nl}*)
adamc@378 1987 case $ac_var in #(
adamc@1095 1988 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
adamc@1095 1989 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
adamc@378 1990 esac
adamc@378 1991 case $ac_var in #(
adamc@378 1992 _ | IFS | as_nl) ;; #(
adamc@1095 1993 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
adamc@1095 1994 *) { eval $ac_var=; unset $ac_var;} ;;
adamc@378 1995 esac ;;
adamc@378 1996 esac
adamc@378 1997 done
adamc@378 1998 (set) 2>&1 |
adamc@378 1999 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
adamc@378 2000 *${as_nl}ac_space=\ *)
adamc@378 2001 sed -n \
adamc@378 2002 "s/'\''/'\''\\\\'\'''\''/g;
adamc@378 2003 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
adamc@378 2004 ;; #(
adamc@378 2005 *)
adamc@378 2006 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
adamc@378 2007 ;;
adamc@378 2008 esac |
adamc@378 2009 sort
adamc@378 2010 )
adamc@378 2011 echo
adamc@378 2012
adamc@378 2013 cat <<\_ASBOX
adamc@378 2014 ## ----------------- ##
adamc@378 2015 ## Output variables. ##
adamc@378 2016 ## ----------------- ##
adamc@378 2017 _ASBOX
adamc@378 2018 echo
adamc@378 2019 for ac_var in $ac_subst_vars
adamc@378 2020 do
adamc@378 2021 eval ac_val=\$$ac_var
adamc@378 2022 case $ac_val in
adamc@1095 2023 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
adamc@378 2024 esac
adamc@1095 2025 $as_echo "$ac_var='\''$ac_val'\''"
adamc@378 2026 done | sort
adamc@378 2027 echo
adamc@378 2028
adamc@378 2029 if test -n "$ac_subst_files"; then
adamc@378 2030 cat <<\_ASBOX
adamc@378 2031 ## ------------------- ##
adamc@378 2032 ## File substitutions. ##
adamc@378 2033 ## ------------------- ##
adamc@378 2034 _ASBOX
adamc@378 2035 echo
adamc@378 2036 for ac_var in $ac_subst_files
adamc@378 2037 do
adamc@378 2038 eval ac_val=\$$ac_var
adamc@378 2039 case $ac_val in
adamc@1095 2040 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
adamc@378 2041 esac
adamc@1095 2042 $as_echo "$ac_var='\''$ac_val'\''"
adamc@378 2043 done | sort
adamc@378 2044 echo
adamc@378 2045 fi
adamc@378 2046
adamc@378 2047 if test -s confdefs.h; then
adamc@378 2048 cat <<\_ASBOX
adamc@378 2049 ## ----------- ##
adamc@378 2050 ## confdefs.h. ##
adamc@378 2051 ## ----------- ##
adamc@378 2052 _ASBOX
adamc@378 2053 echo
adamc@378 2054 cat confdefs.h
adamc@378 2055 echo
adamc@378 2056 fi
adamc@378 2057 test "$ac_signal" != 0 &&
adamc@1095 2058 $as_echo "$as_me: caught signal $ac_signal"
adamc@1095 2059 $as_echo "$as_me: exit $exit_status"
adamc@378 2060 } >&5
adamc@378 2061 rm -f core *.core core.conftest.* &&
adamc@378 2062 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
adamc@378 2063 exit $exit_status
adamc@378 2064 ' 0
adamc@378 2065 for ac_signal in 1 2 13 15; do
adamc@1095 2066 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
adamc@378 2067 done
adamc@378 2068 ac_signal=0
adamc@378 2069
adamc@378 2070 # confdefs.h avoids OS command line length limits that DEFS can exceed.
adamc@378 2071 rm -f -r conftest* confdefs.h
adamc@378 2072
adamc@1095 2073 $as_echo "/* confdefs.h */" > confdefs.h
adamc@1095 2074
adamc@378 2075 # Predefined preprocessor variables.
adamc@378 2076
adamc@378 2077 cat >>confdefs.h <<_ACEOF
adamc@378 2078 #define PACKAGE_NAME "$PACKAGE_NAME"
adamc@378 2079 _ACEOF
adamc@378 2080
adamc@378 2081 cat >>confdefs.h <<_ACEOF
adamc@378 2082 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
adamc@378 2083 _ACEOF
adamc@378 2084
adamc@378 2085 cat >>confdefs.h <<_ACEOF
adamc@378 2086 #define PACKAGE_VERSION "$PACKAGE_VERSION"
adamc@378 2087 _ACEOF
adamc@378 2088
adamc@378 2089 cat >>confdefs.h <<_ACEOF
adamc@378 2090 #define PACKAGE_STRING "$PACKAGE_STRING"
adamc@378 2091 _ACEOF
adamc@378 2092
adamc@378 2093 cat >>confdefs.h <<_ACEOF
adamc@378 2094 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
adamc@378 2095 _ACEOF
adamc@378 2096
adamc@1095 2097 cat >>confdefs.h <<_ACEOF
adamc@1095 2098 #define PACKAGE_URL "$PACKAGE_URL"
adamc@1095 2099 _ACEOF
adamc@1095 2100
adamc@378 2101
adamc@378 2102 # Let the site file select an alternate cache file if it wants to.
adamc@1095 2103 # Prefer an explicitly selected file to automatically selected ones.
adamc@1095 2104 ac_site_file1=NONE
adamc@1095 2105 ac_site_file2=NONE
adamc@378 2106 if test -n "$CONFIG_SITE"; then
adamc@1095 2107 ac_site_file1=$CONFIG_SITE
adamc@378 2108 elif test "x$prefix" != xNONE; then
adamc@1095 2109 ac_site_file1=$prefix/share/config.site
adamc@1095 2110 ac_site_file2=$prefix/etc/config.site
adamc@378 2111 else
adamc@1095 2112 ac_site_file1=$ac_default_prefix/share/config.site
adamc@1095 2113 ac_site_file2=$ac_default_prefix/etc/config.site
adamc@378 2114 fi
adamc@1095 2115 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
adamc@378 2116 do
adamc@1095 2117 test "x$ac_site_file" = xNONE && continue
adamc@1095 2118 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
adamc@1095 2119 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
adamc@1095 2120 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
adamc@378 2121 sed 's/^/| /' "$ac_site_file" >&5
adamc@378 2122 . "$ac_site_file"
adamc@378 2123 fi
adamc@378 2124 done
adamc@378 2125
adamc@378 2126 if test -r "$cache_file"; then
adamc@1095 2127 # Some versions of bash will fail to source /dev/null (special files
adamc@1095 2128 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
adamc@1095 2129 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
adamc@1095 2130 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
adamc@1095 2131 $as_echo "$as_me: loading cache $cache_file" >&6;}
adamc@378 2132 case $cache_file in
adamc@378 2133 [\\/]* | ?:[\\/]* ) . "$cache_file";;
adamc@378 2134 *) . "./$cache_file";;
adamc@378 2135 esac
adamc@378 2136 fi
adamc@378 2137 else
adamc@1095 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
adamc@1095 2139 $as_echo "$as_me: creating cache $cache_file" >&6;}
adamc@378 2140 >$cache_file
adamc@378 2141 fi
adamc@378 2142
adamc@378 2143 # Check that the precious variables saved in the cache have kept the same
adamc@378 2144 # value.
adamc@378 2145 ac_cache_corrupted=false
adamc@378 2146 for ac_var in $ac_precious_vars; do
adamc@378 2147 eval ac_old_set=\$ac_cv_env_${ac_var}_set
adamc@378 2148 eval ac_new_set=\$ac_env_${ac_var}_set
adamc@378 2149 eval ac_old_val=\$ac_cv_env_${ac_var}_value
adamc@378 2150 eval ac_new_val=\$ac_env_${ac_var}_value
adamc@378 2151 case $ac_old_set,$ac_new_set in
adamc@378 2152 set,)
adamc@1095 2153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
adamc@1095 2154 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
adamc@378 2155 ac_cache_corrupted=: ;;
adamc@378 2156 ,set)
adamc@1095 2157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
adamc@1095 2158 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
adamc@378 2159 ac_cache_corrupted=: ;;
adamc@378 2160 ,);;
adamc@378 2161 *)
adamc@378 2162 if test "x$ac_old_val" != "x$ac_new_val"; then
adamc@1095 2163 # differences in whitespace do not lead to failure.
adamc@1095 2164 ac_old_val_w=`echo x $ac_old_val`
adamc@1095 2165 ac_new_val_w=`echo x $ac_new_val`
adamc@1095 2166 if test "$ac_old_val_w" != "$ac_new_val_w"; then
adamc@1095 2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
adamc@1095 2168 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
adamc@1095 2169 ac_cache_corrupted=:
adamc@1095 2170 else
adamc@1095 2171 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
adamc@1095 2172 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
adamc@1095 2173 eval $ac_var=\$ac_old_val
adamc@1095 2174 fi
adamc@1095 2175 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
adamc@1095 2176 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
adamc@1095 2177 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
adamc@1095 2178 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
adamc@378 2179 fi;;
adamc@378 2180 esac
adamc@378 2181 # Pass precious variables to config.status.
adamc@378 2182 if test "$ac_new_set" = set; then
adamc@378 2183 case $ac_new_val in
adamc@1095 2184 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
adamc@378 2185 *) ac_arg=$ac_var=$ac_new_val ;;
adamc@378 2186 esac
adamc@378 2187 case " $ac_configure_args " in
adamc@378 2188 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
adamc@1095 2189 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
adamc@378 2190 esac
adamc@378 2191 fi
adamc@378 2192 done
adamc@378 2193 if $ac_cache_corrupted; then
adamc@1095 2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
adamc@1095 2195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
adamc@1095 2196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
adamc@1095 2197 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
adamc@1095 2198 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
adamc@378 2199 fi
adamc@1095 2200 ## -------------------- ##
adamc@1095 2201 ## Main body of script. ##
adamc@1095 2202 ## -------------------- ##
adamc@378 2203
adamc@378 2204 ac_ext=c
adamc@378 2205 ac_cpp='$CPP $CPPFLAGS'
adamc@378 2206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@378 2207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@378 2208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@378 2209
adamc@378 2210
adamc@1132 2211 am__api_version='1.11'
adamc@1132 2212
adamc@1132 2213 ac_aux_dir=
adamc@1132 2214 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
adamc@1132 2215 for ac_t in install-sh install.sh shtool; do
adamc@1132 2216 if test -f "$ac_dir/$ac_t"; then
adamc@1132 2217 ac_aux_dir=$ac_dir
adamc@1132 2218 ac_install_sh="$ac_aux_dir/$ac_t -c"
adamc@1132 2219 break 2
adamc@1132 2220 fi
adamc@1132 2221 done
adamc@1132 2222 done
adamc@1132 2223 if test -z "$ac_aux_dir"; then
adamc@1132 2224 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
adamc@1132 2225 fi
adamc@1132 2226
adamc@1132 2227 # These three variables are undocumented and unsupported,
adamc@1132 2228 # and are intended to be withdrawn in a future Autoconf release.
adamc@1132 2229 # They can cause serious problems if a builder's source tree is in a directory
adamc@1132 2230 # whose full name contains unusual characters.
adamc@1132 2231 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
adamc@1132 2232 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
adamc@1132 2233 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
adamc@1132 2234
adamc@1132 2235
adamc@1132 2236 # Find a good install program. We prefer a C program (faster),
adamc@1132 2237 # so one script is as good as another. But avoid the broken or
adamc@1132 2238 # incompatible versions:
adamc@1132 2239 # SysV /etc/install, /usr/sbin/install
adamc@1132 2240 # SunOS /usr/etc/install
adamc@1132 2241 # IRIX /sbin/install
adamc@1132 2242 # AIX /bin/install
adamc@1132 2243 # AmigaOS /C/install, which installs bootblocks on floppy discs
adamc@1132 2244 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
adamc@1132 2245 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
adamc@1132 2246 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
adamc@1132 2247 # OS/2's system install, which has a completely different semantic
adamc@1132 2248 # ./install, which can be erroneously created by make from ./install.sh.
adamc@1132 2249 # Reject install programs that cannot install multiple files.
adamc@1132 2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
adamc@1132 2251 $as_echo_n "checking for a BSD-compatible install... " >&6; }
adamc@1132 2252 if test -z "$INSTALL"; then
adamc@1132 2253 if test "${ac_cv_path_install+set}" = set; then :
adamc@1132 2254 $as_echo_n "(cached) " >&6
adamc@1132 2255 else
adamc@1132 2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 2257 for as_dir in $PATH
adamc@1132 2258 do
adamc@1132 2259 IFS=$as_save_IFS
adamc@1132 2260 test -z "$as_dir" && as_dir=.
adamc@1132 2261 # Account for people who put trailing slashes in PATH elements.
adamc@1132 2262 case $as_dir/ in #((
adamc@1132 2263 ./ | .// | /[cC]/* | \
adamc@1132 2264 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
adamc@1132 2265 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
adamc@1132 2266 /usr/ucb/* ) ;;
adamc@1132 2267 *)
adamc@1132 2268 # OSF1 and SCO ODT 3.0 have their own names for install.
adamc@1132 2269 # Don't use installbsd from OSF since it installs stuff as root
adamc@1132 2270 # by default.
adamc@1132 2271 for ac_prog in ginstall scoinst install; do
adamc@1132 2272 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 2273 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
adamc@1132 2274 if test $ac_prog = install &&
adamc@1132 2275 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
adamc@1132 2276 # AIX install. It has an incompatible calling convention.
adamc@1132 2277 :
adamc@1132 2278 elif test $ac_prog = install &&
adamc@1132 2279 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
adamc@1132 2280 # program-specific install script used by HP pwplus--don't use.
adamc@1132 2281 :
adamc@1132 2282 else
adamc@1132 2283 rm -rf conftest.one conftest.two conftest.dir
adamc@1132 2284 echo one > conftest.one
adamc@1132 2285 echo two > conftest.two
adamc@1132 2286 mkdir conftest.dir
adamc@1132 2287 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
adamc@1132 2288 test -s conftest.one && test -s conftest.two &&
adamc@1132 2289 test -s conftest.dir/conftest.one &&
adamc@1132 2290 test -s conftest.dir/conftest.two
adamc@1132 2291 then
adamc@1132 2292 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
adamc@1132 2293 break 3
adamc@1132 2294 fi
adamc@1132 2295 fi
adamc@1132 2296 fi
adamc@1132 2297 done
adamc@1132 2298 done
adamc@1132 2299 ;;
adamc@1132 2300 esac
adamc@1132 2301
adamc@1132 2302 done
adamc@1132 2303 IFS=$as_save_IFS
adamc@1132 2304
adamc@1132 2305 rm -rf conftest.one conftest.two conftest.dir
adamc@1132 2306
adamc@1132 2307 fi
adamc@1132 2308 if test "${ac_cv_path_install+set}" = set; then
adamc@1132 2309 INSTALL=$ac_cv_path_install
adamc@1132 2310 else
adamc@1132 2311 # As a last resort, use the slow shell script. Don't cache a
adamc@1132 2312 # value for INSTALL within a source directory, because that will
adamc@1132 2313 # break other packages using the cache if that directory is
adamc@1132 2314 # removed, or if the value is a relative name.
adamc@1132 2315 INSTALL=$ac_install_sh
adamc@1132 2316 fi
adamc@1132 2317 fi
adamc@1132 2318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
adamc@1132 2319 $as_echo "$INSTALL" >&6; }
adamc@1132 2320
adamc@1132 2321 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
adamc@1132 2322 # It thinks the first close brace ends the variable substitution.
adamc@1132 2323 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
adamc@1132 2324
adamc@1132 2325 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
adamc@1132 2326
adamc@1132 2327 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
adamc@1132 2328
adamc@1132 2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
adamc@1132 2330 $as_echo_n "checking whether build environment is sane... " >&6; }
adamc@1132 2331 # Just in case
adamc@1132 2332 sleep 1
adamc@1132 2333 echo timestamp > conftest.file
adamc@1132 2334 # Reject unsafe characters in $srcdir or the absolute working directory
adamc@1132 2335 # name. Accept space and tab only in the latter.
adamc@1132 2336 am_lf='
adamc@1132 2337 '
adamc@1132 2338 case `pwd` in
adamc@1132 2339 *[\\\"\#\$\&\'\`$am_lf]*)
adamc@1132 2340 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
adamc@1132 2341 esac
adamc@1132 2342 case $srcdir in
adamc@1132 2343 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
adamc@1132 2344 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
adamc@1132 2345 esac
adamc@1132 2346
adamc@1132 2347 # Do `set' in a subshell so we don't clobber the current shell's
adamc@1132 2348 # arguments. Must try -L first in case configure is actually a
adamc@1132 2349 # symlink; some systems play weird games with the mod time of symlinks
adamc@1132 2350 # (eg FreeBSD returns the mod time of the symlink's containing
adamc@1132 2351 # directory).
adamc@1132 2352 if (
adamc@1132 2353 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
adamc@1132 2354 if test "$*" = "X"; then
adamc@1132 2355 # -L didn't work.
adamc@1132 2356 set X `ls -t "$srcdir/configure" conftest.file`
adamc@1132 2357 fi
adamc@1132 2358 rm -f conftest.file
adamc@1132 2359 if test "$*" != "X $srcdir/configure conftest.file" \
adamc@1132 2360 && test "$*" != "X conftest.file $srcdir/configure"; then
adamc@1132 2361
adamc@1132 2362 # If neither matched, then we have a broken ls. This can happen
adamc@1132 2363 # if, for instance, CONFIG_SHELL is bash and it inherits a
adamc@1132 2364 # broken ls alias from the environment. This has actually
adamc@1132 2365 # happened. Such a system could not be considered "sane".
adamc@1132 2366 as_fn_error "ls -t appears to fail. Make sure there is not a broken
adamc@1132 2367 alias in your environment" "$LINENO" 5
adamc@1132 2368 fi
adamc@1132 2369
adamc@1132 2370 test "$2" = conftest.file
adamc@1132 2371 )
adamc@1132 2372 then
adamc@1132 2373 # Ok.
adamc@1132 2374 :
adamc@1132 2375 else
adamc@1132 2376 as_fn_error "newly created file is older than distributed files!
adamc@1132 2377 Check your system clock" "$LINENO" 5
adamc@1132 2378 fi
adamc@1132 2379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
adamc@1132 2380 $as_echo "yes" >&6; }
adamc@1132 2381 test "$program_prefix" != NONE &&
adamc@1132 2382 program_transform_name="s&^&$program_prefix&;$program_transform_name"
adamc@1132 2383 # Use a double $ so make ignores it.
adamc@1132 2384 test "$program_suffix" != NONE &&
adamc@1132 2385 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
adamc@1132 2386 # Double any \ or $.
adamc@1132 2387 # By default was `s,x,x', remove it if useless.
adamc@1132 2388 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
adamc@1132 2389 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
adamc@1132 2390
adamc@1132 2391 # expand $ac_aux_dir to an absolute path
adamc@1132 2392 am_aux_dir=`cd $ac_aux_dir && pwd`
adamc@1132 2393
adamc@1132 2394 if test x"${MISSING+set}" != xset; then
adamc@1132 2395 case $am_aux_dir in
adamc@1132 2396 *\ * | *\ *)
adamc@1132 2397 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
adamc@1132 2398 *)
adamc@1132 2399 MISSING="\${SHELL} $am_aux_dir/missing" ;;
adamc@1132 2400 esac
adamc@1132 2401 fi
adamc@1132 2402 # Use eval to expand $SHELL
adamc@1132 2403 if eval "$MISSING --run true"; then
adamc@1132 2404 am_missing_run="$MISSING --run "
adamc@1132 2405 else
adamc@1132 2406 am_missing_run=
adamc@1132 2407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
adamc@1132 2408 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
adamc@1132 2409 fi
adamc@1132 2410
adamc@1132 2411 if test x"${install_sh}" != xset; then
adamc@1132 2412 case $am_aux_dir in
adamc@1132 2413 *\ * | *\ *)
adamc@1132 2414 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
adamc@1132 2415 *)
adamc@1132 2416 install_sh="\${SHELL} $am_aux_dir/install-sh"
adamc@1132 2417 esac
adamc@1132 2418 fi
adamc@1132 2419
adamc@1132 2420 # Installed binaries are usually stripped using `strip' when the user
adamc@1132 2421 # run `make install-strip'. However `strip' might not be the right
adamc@1132 2422 # tool to use in cross-compilation environments, therefore Automake
adamc@1132 2423 # will honor the `STRIP' environment variable to overrule this program.
adamc@1132 2424 if test "$cross_compiling" != no; then
adamc@1132 2425 if test -n "$ac_tool_prefix"; then
adamc@1132 2426 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
adamc@1132 2427 set dummy ${ac_tool_prefix}strip; ac_word=$2
adamc@1132 2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 2429 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 2430 if test "${ac_cv_prog_STRIP+set}" = set; then :
adamc@1132 2431 $as_echo_n "(cached) " >&6
adamc@1132 2432 else
adamc@1132 2433 if test -n "$STRIP"; then
adamc@1132 2434 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
adamc@1132 2435 else
adamc@1132 2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 2437 for as_dir in $PATH
adamc@1132 2438 do
adamc@1132 2439 IFS=$as_save_IFS
adamc@1132 2440 test -z "$as_dir" && as_dir=.
adamc@1132 2441 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 2443 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
adamc@1132 2444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 2445 break 2
adamc@1132 2446 fi
adamc@1132 2447 done
adamc@1132 2448 done
adamc@1132 2449 IFS=$as_save_IFS
adamc@1132 2450
adamc@1132 2451 fi
adamc@1132 2452 fi
adamc@1132 2453 STRIP=$ac_cv_prog_STRIP
adamc@1132 2454 if test -n "$STRIP"; then
adamc@1132 2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
adamc@1132 2456 $as_echo "$STRIP" >&6; }
adamc@1132 2457 else
adamc@1132 2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 2459 $as_echo "no" >&6; }
adamc@1132 2460 fi
adamc@1132 2461
adamc@1132 2462
adamc@1132 2463 fi
adamc@1132 2464 if test -z "$ac_cv_prog_STRIP"; then
adamc@1132 2465 ac_ct_STRIP=$STRIP
adamc@1132 2466 # Extract the first word of "strip", so it can be a program name with args.
adamc@1132 2467 set dummy strip; ac_word=$2
adamc@1132 2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 2469 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 2470 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
adamc@1132 2471 $as_echo_n "(cached) " >&6
adamc@1132 2472 else
adamc@1132 2473 if test -n "$ac_ct_STRIP"; then
adamc@1132 2474 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
adamc@1132 2475 else
adamc@1132 2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 2477 for as_dir in $PATH
adamc@1132 2478 do
adamc@1132 2479 IFS=$as_save_IFS
adamc@1132 2480 test -z "$as_dir" && as_dir=.
adamc@1132 2481 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 2483 ac_cv_prog_ac_ct_STRIP="strip"
adamc@1132 2484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 2485 break 2
adamc@1132 2486 fi
adamc@1132 2487 done
adamc@1132 2488 done
adamc@1132 2489 IFS=$as_save_IFS
adamc@1132 2490
adamc@1132 2491 fi
adamc@1132 2492 fi
adamc@1132 2493 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
adamc@1132 2494 if test -n "$ac_ct_STRIP"; then
adamc@1132 2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
adamc@1132 2496 $as_echo "$ac_ct_STRIP" >&6; }
adamc@1132 2497 else
adamc@1132 2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 2499 $as_echo "no" >&6; }
adamc@1132 2500 fi
adamc@1132 2501
adamc@1132 2502 if test "x$ac_ct_STRIP" = x; then
adamc@1132 2503 STRIP=":"
adamc@1132 2504 else
adamc@1132 2505 case $cross_compiling:$ac_tool_warned in
adamc@1132 2506 yes:)
adamc@1132 2507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 2508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 2509 ac_tool_warned=yes ;;
adamc@1132 2510 esac
adamc@1132 2511 STRIP=$ac_ct_STRIP
adamc@1132 2512 fi
adamc@1132 2513 else
adamc@1132 2514 STRIP="$ac_cv_prog_STRIP"
adamc@1132 2515 fi
adamc@1132 2516
adamc@1132 2517 fi
adamc@1132 2518 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
adamc@1132 2519
adamc@1132 2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
adamc@1132 2521 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
adamc@1132 2522 if test -z "$MKDIR_P"; then
adamc@1132 2523 if test "${ac_cv_path_mkdir+set}" = set; then :
adamc@1132 2524 $as_echo_n "(cached) " >&6
adamc@1132 2525 else
adamc@1132 2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 2527 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
adamc@1132 2528 do
adamc@1132 2529 IFS=$as_save_IFS
adamc@1132 2530 test -z "$as_dir" && as_dir=.
adamc@1132 2531 for ac_prog in mkdir gmkdir; do
adamc@1132 2532 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 2533 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
adamc@1132 2534 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
adamc@1132 2535 'mkdir (GNU coreutils) '* | \
adamc@1132 2536 'mkdir (coreutils) '* | \
adamc@1132 2537 'mkdir (fileutils) '4.1*)
adamc@1132 2538 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
adamc@1132 2539 break 3;;
adamc@1132 2540 esac
adamc@1132 2541 done
adamc@1132 2542 done
adamc@1132 2543 done
adamc@1132 2544 IFS=$as_save_IFS
adamc@1132 2545
adamc@1132 2546 fi
adamc@1132 2547
adamc@1132 2548 test -d ./--version && rmdir ./--version
adamc@1132 2549 if test "${ac_cv_path_mkdir+set}" = set; then
adamc@1132 2550 MKDIR_P="$ac_cv_path_mkdir -p"
adamc@1132 2551 else
adamc@1132 2552 # As a last resort, use the slow shell script. Don't cache a
adamc@1132 2553 # value for MKDIR_P within a source directory, because that will
adamc@1132 2554 # break other packages using the cache if that directory is
adamc@1132 2555 # removed, or if the value is a relative name.
adamc@1132 2556 MKDIR_P="$ac_install_sh -d"
adamc@1132 2557 fi
adamc@1132 2558 fi
adamc@1132 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
adamc@1132 2560 $as_echo "$MKDIR_P" >&6; }
adamc@1132 2561
adamc@1132 2562 mkdir_p="$MKDIR_P"
adamc@1132 2563 case $mkdir_p in
adamc@1132 2564 [\\/$]* | ?:[\\/]*) ;;
adamc@1132 2565 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
adamc@1132 2566 esac
adamc@1132 2567
adamc@1132 2568 for ac_prog in gawk mawk nawk awk
adamc@1132 2569 do
adamc@1132 2570 # Extract the first word of "$ac_prog", so it can be a program name with args.
adamc@1132 2571 set dummy $ac_prog; ac_word=$2
adamc@1132 2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 2573 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 2574 if test "${ac_cv_prog_AWK+set}" = set; then :
adamc@1132 2575 $as_echo_n "(cached) " >&6
adamc@1132 2576 else
adamc@1132 2577 if test -n "$AWK"; then
adamc@1132 2578 ac_cv_prog_AWK="$AWK" # Let the user override the test.
adamc@1132 2579 else
adamc@1132 2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 2581 for as_dir in $PATH
adamc@1132 2582 do
adamc@1132 2583 IFS=$as_save_IFS
adamc@1132 2584 test -z "$as_dir" && as_dir=.
adamc@1132 2585 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 2587 ac_cv_prog_AWK="$ac_prog"
adamc@1132 2588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 2589 break 2
adamc@1132 2590 fi
adamc@1132 2591 done
adamc@1132 2592 done
adamc@1132 2593 IFS=$as_save_IFS
adamc@1132 2594
adamc@1132 2595 fi
adamc@1132 2596 fi
adamc@1132 2597 AWK=$ac_cv_prog_AWK
adamc@1132 2598 if test -n "$AWK"; then
adamc@1132 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
adamc@1132 2600 $as_echo "$AWK" >&6; }
adamc@1132 2601 else
adamc@1132 2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 2603 $as_echo "no" >&6; }
adamc@1132 2604 fi
adamc@1132 2605
adamc@1132 2606
adamc@1132 2607 test -n "$AWK" && break
adamc@1132 2608 done
adamc@1132 2609
adamc@1132 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
adamc@1132 2611 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
adamc@1132 2612 set x ${MAKE-make}
adamc@1132 2613 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
adamc@1132 2614 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
adamc@1132 2615 $as_echo_n "(cached) " >&6
adamc@1132 2616 else
adamc@1132 2617 cat >conftest.make <<\_ACEOF
adamc@1132 2618 SHELL = /bin/sh
adamc@1132 2619 all:
adamc@1132 2620 @echo '@@@%%%=$(MAKE)=@@@%%%'
adamc@1132 2621 _ACEOF
adamc@1132 2622 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
adamc@1132 2623 case `${MAKE-make} -f conftest.make 2>/dev/null` in
adamc@1132 2624 *@@@%%%=?*=@@@%%%*)
adamc@1132 2625 eval ac_cv_prog_make_${ac_make}_set=yes;;
adamc@1132 2626 *)
adamc@1132 2627 eval ac_cv_prog_make_${ac_make}_set=no;;
adamc@1132 2628 esac
adamc@1132 2629 rm -f conftest.make
adamc@1132 2630 fi
adamc@1132 2631 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
adamc@1132 2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
adamc@1132 2633 $as_echo "yes" >&6; }
adamc@1132 2634 SET_MAKE=
adamc@1132 2635 else
adamc@1132 2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 2637 $as_echo "no" >&6; }
adamc@1132 2638 SET_MAKE="MAKE=${MAKE-make}"
adamc@1132 2639 fi
adamc@1132 2640
adamc@1132 2641 rm -rf .tst 2>/dev/null
adamc@1132 2642 mkdir .tst 2>/dev/null
adamc@1132 2643 if test -d .tst; then
adamc@1132 2644 am__leading_dot=.
adamc@1132 2645 else
adamc@1132 2646 am__leading_dot=_
adamc@1132 2647 fi
adamc@1132 2648 rmdir .tst 2>/dev/null
adamc@1132 2649
adamc@1132 2650 if test "`cd $srcdir && pwd`" != "`pwd`"; then
adamc@1132 2651 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
adamc@1132 2652 # is not polluted with repeated "-I."
adamc@1132 2653 am__isrc=' -I$(srcdir)'
adamc@1132 2654 # test to see if srcdir already configured
adamc@1132 2655 if test -f $srcdir/config.status; then
adamc@1132 2656 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
adamc@1132 2657 fi
adamc@1132 2658 fi
adamc@1132 2659
adamc@1132 2660 # test whether we have cygpath
adamc@1132 2661 if test -z "$CYGPATH_W"; then
adamc@1132 2662 if (cygpath --version) >/dev/null 2>/dev/null; then
adamc@1132 2663 CYGPATH_W='cygpath -w'
adamc@1132 2664 else
adamc@1132 2665 CYGPATH_W=echo
adamc@1132 2666 fi
adamc@1132 2667 fi
adamc@1132 2668
adamc@1132 2669
adamc@1132 2670 # Define the identity of the package.
adamc@1132 2671 PACKAGE='urweb'
adamc@1132 2672 VERSION='1.0'
adamc@1132 2673
adamc@1132 2674
adamc@1132 2675 cat >>confdefs.h <<_ACEOF
adamc@1132 2676 #define PACKAGE "$PACKAGE"
adamc@1132 2677 _ACEOF
adamc@1132 2678
adamc@1132 2679
adamc@1132 2680 cat >>confdefs.h <<_ACEOF
adamc@1132 2681 #define VERSION "$VERSION"
adamc@1132 2682 _ACEOF
adamc@1132 2683
adamc@1132 2684 # Some tools Automake needs.
adamc@1132 2685
adamc@1132 2686 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
adamc@1132 2687
adamc@1132 2688
adamc@1132 2689 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
adamc@1132 2690
adamc@1132 2691
adamc@1132 2692 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
adamc@1132 2693
adamc@1132 2694
adamc@1132 2695 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
adamc@1132 2696
adamc@1132 2697
adamc@1132 2698 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
adamc@1132 2699
adamc@1132 2700 # We need awk for the "check" target. The system "awk" is bad on
adamc@1132 2701 # some platforms.
adamc@1132 2702 # Always define AMTAR for backward compatibility.
adamc@1132 2703
adamc@1132 2704 AMTAR=${AMTAR-"${am_missing_run}tar"}
adamc@1132 2705
adamc@1132 2706 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
adamc@1132 2707
adamc@1132 2708
adamc@1132 2709
adamc@1132 2710
adamc@1132 2711
adamc@1132 2712 ac_ext=c
adamc@1132 2713 ac_cpp='$CPP $CPPFLAGS'
adamc@1132 2714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1132 2715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1132 2716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1132 2717 if test -n "$ac_tool_prefix"; then
adamc@1132 2718 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
adamc@1132 2719 set dummy ${ac_tool_prefix}gcc; ac_word=$2
adamc@1132 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 2721 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 2722 if test "${ac_cv_prog_CC+set}" = set; then :
adamc@1132 2723 $as_echo_n "(cached) " >&6
adamc@1132 2724 else
adamc@1132 2725 if test -n "$CC"; then
adamc@1132 2726 ac_cv_prog_CC="$CC" # Let the user override the test.
adamc@1132 2727 else
adamc@1132 2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 2729 for as_dir in $PATH
adamc@1132 2730 do
adamc@1132 2731 IFS=$as_save_IFS
adamc@1132 2732 test -z "$as_dir" && as_dir=.
adamc@1132 2733 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 2734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 2735 ac_cv_prog_CC="${ac_tool_prefix}gcc"
adamc@1132 2736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 2737 break 2
adamc@1132 2738 fi
adamc@1132 2739 done
adamc@1132 2740 done
adamc@1132 2741 IFS=$as_save_IFS
adamc@1132 2742
adamc@1132 2743 fi
adamc@1132 2744 fi
adamc@1132 2745 CC=$ac_cv_prog_CC
adamc@1132 2746 if test -n "$CC"; then
adamc@1132 2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
adamc@1132 2748 $as_echo "$CC" >&6; }
adamc@1132 2749 else
adamc@1132 2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 2751 $as_echo "no" >&6; }
adamc@1132 2752 fi
adamc@1132 2753
adamc@1132 2754
adamc@1132 2755 fi
adamc@1132 2756 if test -z "$ac_cv_prog_CC"; then
adamc@1132 2757 ac_ct_CC=$CC
adamc@1132 2758 # Extract the first word of "gcc", so it can be a program name with args.
adamc@1132 2759 set dummy gcc; ac_word=$2
adamc@1132 2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 2761 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 2762 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
adamc@1132 2763 $as_echo_n "(cached) " >&6
adamc@1132 2764 else
adamc@1132 2765 if test -n "$ac_ct_CC"; then
adamc@1132 2766 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
adamc@1132 2767 else
adamc@1132 2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 2769 for as_dir in $PATH
adamc@1132 2770 do
adamc@1132 2771 IFS=$as_save_IFS
adamc@1132 2772 test -z "$as_dir" && as_dir=.
adamc@1132 2773 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 2775 ac_cv_prog_ac_ct_CC="gcc"
adamc@1132 2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 2777 break 2
adamc@1132 2778 fi
adamc@1132 2779 done
adamc@1132 2780 done
adamc@1132 2781 IFS=$as_save_IFS
adamc@1132 2782
adamc@1132 2783 fi
adamc@1132 2784 fi
adamc@1132 2785 ac_ct_CC=$ac_cv_prog_ac_ct_CC
adamc@1132 2786 if test -n "$ac_ct_CC"; then
adamc@1132 2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
adamc@1132 2788 $as_echo "$ac_ct_CC" >&6; }
adamc@1132 2789 else
adamc@1132 2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 2791 $as_echo "no" >&6; }
adamc@1132 2792 fi
adamc@1132 2793
adamc@1132 2794 if test "x$ac_ct_CC" = x; then
adamc@1132 2795 CC=""
adamc@1132 2796 else
adamc@1132 2797 case $cross_compiling:$ac_tool_warned in
adamc@1132 2798 yes:)
adamc@1132 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 2800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 2801 ac_tool_warned=yes ;;
adamc@1132 2802 esac
adamc@1132 2803 CC=$ac_ct_CC
adamc@1132 2804 fi
adamc@1132 2805 else
adamc@1132 2806 CC="$ac_cv_prog_CC"
adamc@1132 2807 fi
adamc@1132 2808
adamc@1132 2809 if test -z "$CC"; then
adamc@1132 2810 if test -n "$ac_tool_prefix"; then
adamc@1132 2811 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
adamc@1132 2812 set dummy ${ac_tool_prefix}cc; ac_word=$2
adamc@1132 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 2814 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 2815 if test "${ac_cv_prog_CC+set}" = set; then :
adamc@1132 2816 $as_echo_n "(cached) " >&6
adamc@1132 2817 else
adamc@1132 2818 if test -n "$CC"; then
adamc@1132 2819 ac_cv_prog_CC="$CC" # Let the user override the test.
adamc@1132 2820 else
adamc@1132 2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 2822 for as_dir in $PATH
adamc@1132 2823 do
adamc@1132 2824 IFS=$as_save_IFS
adamc@1132 2825 test -z "$as_dir" && as_dir=.
adamc@1132 2826 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 2828 ac_cv_prog_CC="${ac_tool_prefix}cc"
adamc@1132 2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 2830 break 2
adamc@1132 2831 fi
adamc@1132 2832 done
adamc@1132 2833 done
adamc@1132 2834 IFS=$as_save_IFS
adamc@1132 2835
adamc@1132 2836 fi
adamc@1132 2837 fi
adamc@1132 2838 CC=$ac_cv_prog_CC
adamc@1132 2839 if test -n "$CC"; then
adamc@1132 2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
adamc@1132 2841 $as_echo "$CC" >&6; }
adamc@1132 2842 else
adamc@1132 2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 2844 $as_echo "no" >&6; }
adamc@1132 2845 fi
adamc@1132 2846
adamc@1132 2847
adamc@1132 2848 fi
adamc@1132 2849 fi
adamc@1132 2850 if test -z "$CC"; then
adamc@1132 2851 # Extract the first word of "cc", so it can be a program name with args.
adamc@1132 2852 set dummy cc; ac_word=$2
adamc@1132 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 2854 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 2855 if test "${ac_cv_prog_CC+set}" = set; then :
adamc@1132 2856 $as_echo_n "(cached) " >&6
adamc@1132 2857 else
adamc@1132 2858 if test -n "$CC"; then
adamc@1132 2859 ac_cv_prog_CC="$CC" # Let the user override the test.
adamc@1132 2860 else
adamc@1132 2861 ac_prog_rejected=no
adamc@1132 2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 2863 for as_dir in $PATH
adamc@1132 2864 do
adamc@1132 2865 IFS=$as_save_IFS
adamc@1132 2866 test -z "$as_dir" && as_dir=.
adamc@1132 2867 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 2868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 2869 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
adamc@1132 2870 ac_prog_rejected=yes
adamc@1132 2871 continue
adamc@1132 2872 fi
adamc@1132 2873 ac_cv_prog_CC="cc"
adamc@1132 2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 2875 break 2
adamc@1132 2876 fi
adamc@1132 2877 done
adamc@1132 2878 done
adamc@1132 2879 IFS=$as_save_IFS
adamc@1132 2880
adamc@1132 2881 if test $ac_prog_rejected = yes; then
adamc@1132 2882 # We found a bogon in the path, so make sure we never use it.
adamc@1132 2883 set dummy $ac_cv_prog_CC
adamc@1132 2884 shift
adamc@1132 2885 if test $# != 0; then
adamc@1132 2886 # We chose a different compiler from the bogus one.
adamc@1132 2887 # However, it has the same basename, so the bogon will be chosen
adamc@1132 2888 # first if we set CC to just the basename; use the full file name.
adamc@1132 2889 shift
adamc@1132 2890 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
adamc@1132 2891 fi
adamc@1132 2892 fi
adamc@1132 2893 fi
adamc@1132 2894 fi
adamc@1132 2895 CC=$ac_cv_prog_CC
adamc@1132 2896 if test -n "$CC"; then
adamc@1132 2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
adamc@1132 2898 $as_echo "$CC" >&6; }
adamc@1132 2899 else
adamc@1132 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 2901 $as_echo "no" >&6; }
adamc@1132 2902 fi
adamc@1132 2903
adamc@1132 2904
adamc@1132 2905 fi
adamc@1132 2906 if test -z "$CC"; then
adamc@1132 2907 if test -n "$ac_tool_prefix"; then
adamc@1132 2908 for ac_prog in cl.exe
adamc@1132 2909 do
adamc@1132 2910 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
adamc@1132 2911 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
adamc@1132 2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 2913 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 2914 if test "${ac_cv_prog_CC+set}" = set; then :
adamc@1132 2915 $as_echo_n "(cached) " >&6
adamc@1132 2916 else
adamc@1132 2917 if test -n "$CC"; then
adamc@1132 2918 ac_cv_prog_CC="$CC" # Let the user override the test.
adamc@1132 2919 else
adamc@1132 2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 2921 for as_dir in $PATH
adamc@1132 2922 do
adamc@1132 2923 IFS=$as_save_IFS
adamc@1132 2924 test -z "$as_dir" && as_dir=.
adamc@1132 2925 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 2926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 2927 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
adamc@1132 2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 2929 break 2
adamc@1132 2930 fi
adamc@1132 2931 done
adamc@1132 2932 done
adamc@1132 2933 IFS=$as_save_IFS
adamc@1132 2934
adamc@1132 2935 fi
adamc@1132 2936 fi
adamc@1132 2937 CC=$ac_cv_prog_CC
adamc@1132 2938 if test -n "$CC"; then
adamc@1132 2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
adamc@1132 2940 $as_echo "$CC" >&6; }
adamc@1132 2941 else
adamc@1132 2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 2943 $as_echo "no" >&6; }
adamc@1132 2944 fi
adamc@1132 2945
adamc@1132 2946
adamc@1132 2947 test -n "$CC" && break
adamc@1132 2948 done
adamc@1132 2949 fi
adamc@1132 2950 if test -z "$CC"; then
adamc@1132 2951 ac_ct_CC=$CC
adamc@1132 2952 for ac_prog in cl.exe
adamc@1132 2953 do
adamc@1132 2954 # Extract the first word of "$ac_prog", so it can be a program name with args.
adamc@1132 2955 set dummy $ac_prog; ac_word=$2
adamc@1132 2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 2957 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 2958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
adamc@1132 2959 $as_echo_n "(cached) " >&6
adamc@1132 2960 else
adamc@1132 2961 if test -n "$ac_ct_CC"; then
adamc@1132 2962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
adamc@1132 2963 else
adamc@1132 2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 2965 for as_dir in $PATH
adamc@1132 2966 do
adamc@1132 2967 IFS=$as_save_IFS
adamc@1132 2968 test -z "$as_dir" && as_dir=.
adamc@1132 2969 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 2970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 2971 ac_cv_prog_ac_ct_CC="$ac_prog"
adamc@1132 2972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 2973 break 2
adamc@1132 2974 fi
adamc@1132 2975 done
adamc@1132 2976 done
adamc@1132 2977 IFS=$as_save_IFS
adamc@1132 2978
adamc@1132 2979 fi
adamc@1132 2980 fi
adamc@1132 2981 ac_ct_CC=$ac_cv_prog_ac_ct_CC
adamc@1132 2982 if test -n "$ac_ct_CC"; then
adamc@1132 2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
adamc@1132 2984 $as_echo "$ac_ct_CC" >&6; }
adamc@1132 2985 else
adamc@1132 2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 2987 $as_echo "no" >&6; }
adamc@1132 2988 fi
adamc@1132 2989
adamc@1132 2990
adamc@1132 2991 test -n "$ac_ct_CC" && break
adamc@1132 2992 done
adamc@1132 2993
adamc@1132 2994 if test "x$ac_ct_CC" = x; then
adamc@1132 2995 CC=""
adamc@1132 2996 else
adamc@1132 2997 case $cross_compiling:$ac_tool_warned in
adamc@1132 2998 yes:)
adamc@1132 2999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 3000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 3001 ac_tool_warned=yes ;;
adamc@1132 3002 esac
adamc@1132 3003 CC=$ac_ct_CC
adamc@1132 3004 fi
adamc@1132 3005 fi
adamc@1132 3006
adamc@1132 3007 fi
adamc@1132 3008
adamc@1132 3009
adamc@1132 3010 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
adamc@1132 3011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
adamc@1132 3012 as_fn_error "no acceptable C compiler found in \$PATH
adamc@1132 3013 See \`config.log' for more details." "$LINENO" 5; }
adamc@1132 3014
adamc@1132 3015 # Provide some information about the compiler.
adamc@1132 3016 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
adamc@1132 3017 set X $ac_compile
adamc@1132 3018 ac_compiler=$2
adamc@1132 3019 for ac_option in --version -v -V -qversion; do
adamc@1132 3020 { { ac_try="$ac_compiler $ac_option >&5"
adamc@1132 3021 case "(($ac_try" in
adamc@1132 3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1132 3023 *) ac_try_echo=$ac_try;;
adamc@1132 3024 esac
adamc@1132 3025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1132 3026 $as_echo "$ac_try_echo"; } >&5
adamc@1132 3027 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
adamc@1132 3028 ac_status=$?
adamc@1132 3029 if test -s conftest.err; then
adamc@1132 3030 sed '10a\
adamc@1132 3031 ... rest of stderr output deleted ...
adamc@1132 3032 10q' conftest.err >conftest.er1
adamc@1132 3033 cat conftest.er1 >&5
adamc@1132 3034 fi
adamc@1132 3035 rm -f conftest.er1 conftest.err
adamc@1132 3036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 3037 test $ac_status = 0; }
adamc@1132 3038 done
adamc@1132 3039
adamc@1132 3040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 3041 /* end confdefs.h. */
adamc@1132 3042
adamc@1132 3043 int
adamc@1132 3044 main ()
adamc@1132 3045 {
adamc@1132 3046
adamc@1132 3047 ;
adamc@1132 3048 return 0;
adamc@378 3049 }
adamc@1132 3050 _ACEOF
adamc@1132 3051 ac_clean_files_save=$ac_clean_files
adamc@1132 3052 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
adamc@1132 3053 # Try to create an executable without -o first, disregard a.out.
adamc@1132 3054 # It will help us diagnose broken compilers, and finding out an intuition
adamc@1132 3055 # of exeext.
adamc@1132 3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
adamc@1132 3057 $as_echo_n "checking whether the C compiler works... " >&6; }
adamc@1132 3058 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
adamc@1132 3059
adamc@1132 3060 # The possible output files:
adamc@1132 3061 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
adamc@1132 3062
adamc@1132 3063 ac_rmfiles=
adamc@1132 3064 for ac_file in $ac_files
adamc@1132 3065 do
adamc@1132 3066 case $ac_file in
adamc@1132 3067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
adamc@1132 3068 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
adamc@1132 3069 esac
adamc@1132 3070 done
adamc@1132 3071 rm -f $ac_rmfiles
adamc@1132 3072
adamc@1132 3073 if { { ac_try="$ac_link_default"
adamc@1132 3074 case "(($ac_try" in
adamc@1132 3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1132 3076 *) ac_try_echo=$ac_try;;
adamc@1132 3077 esac
adamc@1132 3078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1132 3079 $as_echo "$ac_try_echo"; } >&5
adamc@1132 3080 (eval "$ac_link_default") 2>&5
adamc@1132 3081 ac_status=$?
adamc@1132 3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 3083 test $ac_status = 0; }; then :
adamc@1132 3084 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
adamc@1132 3085 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
adamc@1132 3086 # in a Makefile. We should not override ac_cv_exeext if it was cached,
adamc@1132 3087 # so that the user can short-circuit this test for compilers unknown to
adamc@1132 3088 # Autoconf.
adamc@1132 3089 for ac_file in $ac_files ''
adamc@1132 3090 do
adamc@1132 3091 test -f "$ac_file" || continue
adamc@1132 3092 case $ac_file in
adamc@1132 3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
adamc@1132 3094 ;;
adamc@1132 3095 [ab].out )
adamc@1132 3096 # We found the default executable, but exeext='' is most
adamc@1132 3097 # certainly right.
adamc@1132 3098 break;;
adamc@1132 3099 *.* )
adamc@1132 3100 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
adamc@1132 3101 then :; else
adamc@1132 3102 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
adamc@1132 3103 fi
adamc@1132 3104 # We set ac_cv_exeext here because the later test for it is not
adamc@1132 3105 # safe: cross compilers may not add the suffix if given an `-o'
adamc@1132 3106 # argument, so we may need to know it at that point already.
adamc@1132 3107 # Even if this section looks crufty: it has the advantage of
adamc@1132 3108 # actually working.
adamc@1132 3109 break;;
adamc@1132 3110 * )
adamc@1132 3111 break;;
adamc@1132 3112 esac
adamc@1132 3113 done
adamc@1132 3114 test "$ac_cv_exeext" = no && ac_cv_exeext=
adamc@1132 3115
adamc@1132 3116 else
adamc@1132 3117 ac_file=''
adamc@1132 3118 fi
adamc@1132 3119 if test -z "$ac_file"; then :
adamc@1132 3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 3121 $as_echo "no" >&6; }
adamc@1132 3122 $as_echo "$as_me: failed program was:" >&5
adamc@1132 3123 sed 's/^/| /' conftest.$ac_ext >&5
adamc@1132 3124
adamc@1132 3125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
adamc@1132 3126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
adamc@1132 3127 { as_fn_set_status 77
adamc@1132 3128 as_fn_error "C compiler cannot create executables
adamc@1132 3129 See \`config.log' for more details." "$LINENO" 5; }; }
adamc@1132 3130 else
adamc@1132 3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
adamc@1132 3132 $as_echo "yes" >&6; }
adamc@1132 3133 fi
adamc@1132 3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
adamc@1132 3135 $as_echo_n "checking for C compiler default output file name... " >&6; }
adamc@1132 3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
adamc@1132 3137 $as_echo "$ac_file" >&6; }
adamc@1132 3138 ac_exeext=$ac_cv_exeext
adamc@1132 3139
adamc@1132 3140 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
adamc@1132 3141 ac_clean_files=$ac_clean_files_save
adamc@1132 3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
adamc@1132 3143 $as_echo_n "checking for suffix of executables... " >&6; }
adamc@1132 3144 if { { ac_try="$ac_link"
adamc@1132 3145 case "(($ac_try" in
adamc@1132 3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1132 3147 *) ac_try_echo=$ac_try;;
adamc@1132 3148 esac
adamc@1132 3149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1132 3150 $as_echo "$ac_try_echo"; } >&5
adamc@1132 3151 (eval "$ac_link") 2>&5
adamc@1132 3152 ac_status=$?
adamc@1132 3153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 3154 test $ac_status = 0; }; then :
adamc@1132 3155 # If both `conftest.exe' and `conftest' are `present' (well, observable)
adamc@1132 3156 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
adamc@1132 3157 # work properly (i.e., refer to `conftest.exe'), while it won't with
adamc@1132 3158 # `rm'.
adamc@1132 3159 for ac_file in conftest.exe conftest conftest.*; do
adamc@1132 3160 test -f "$ac_file" || continue
adamc@1132 3161 case $ac_file in
adamc@1132 3162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
adamc@1132 3163 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
adamc@1132 3164 break;;
adamc@1132 3165 * ) break;;
adamc@1132 3166 esac
adamc@1132 3167 done
adamc@1132 3168 else
adamc@1132 3169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
adamc@1132 3170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
adamc@1132 3171 as_fn_error "cannot compute suffix of executables: cannot compile and link
adamc@1132 3172 See \`config.log' for more details." "$LINENO" 5; }
adamc@1132 3173 fi
adamc@1132 3174 rm -f conftest conftest$ac_cv_exeext
adamc@1132 3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
adamc@1132 3176 $as_echo "$ac_cv_exeext" >&6; }
adamc@1132 3177
adamc@1132 3178 rm -f conftest.$ac_ext
adamc@1132 3179 EXEEXT=$ac_cv_exeext
adamc@1132 3180 ac_exeext=$EXEEXT
adamc@1132 3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 3182 /* end confdefs.h. */
adamc@1132 3183 #include <stdio.h>
adamc@1132 3184 int
adamc@1132 3185 main ()
adamc@1132 3186 {
adamc@1132 3187 FILE *f = fopen ("conftest.out", "w");
adamc@1132 3188 return ferror (f) || fclose (f) != 0;
adamc@1132 3189
adamc@1132 3190 ;
adamc@1132 3191 return 0;
adamc@1132 3192 }
adamc@1132 3193 _ACEOF
adamc@1132 3194 ac_clean_files="$ac_clean_files conftest.out"
adamc@1132 3195 # Check that the compiler produces executables we can run. If not, either
adamc@1132 3196 # the compiler is broken, or we cross compile.
adamc@1132 3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
adamc@1132 3198 $as_echo_n "checking whether we are cross compiling... " >&6; }
adamc@1132 3199 if test "$cross_compiling" != yes; then
adamc@1132 3200 { { ac_try="$ac_link"
adamc@1132 3201 case "(($ac_try" in
adamc@1132 3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1132 3203 *) ac_try_echo=$ac_try;;
adamc@1132 3204 esac
adamc@1132 3205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1132 3206 $as_echo "$ac_try_echo"; } >&5
adamc@1132 3207 (eval "$ac_link") 2>&5
adamc@1132 3208 ac_status=$?
adamc@1132 3209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 3210 test $ac_status = 0; }
adamc@1132 3211 if { ac_try='./conftest$ac_cv_exeext'
adamc@1132 3212 { { case "(($ac_try" in
adamc@1132 3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1132 3214 *) ac_try_echo=$ac_try;;
adamc@1132 3215 esac
adamc@1132 3216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1132 3217 $as_echo "$ac_try_echo"; } >&5
adamc@1132 3218 (eval "$ac_try") 2>&5
adamc@1132 3219 ac_status=$?
adamc@1132 3220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 3221 test $ac_status = 0; }; }; then
adamc@1132 3222 cross_compiling=no
adamc@1132 3223 else
adamc@1132 3224 if test "$cross_compiling" = maybe; then
adamc@1132 3225 cross_compiling=yes
adamc@1132 3226 else
adamc@1132 3227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
adamc@1132 3228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
adamc@1132 3229 as_fn_error "cannot run C compiled programs.
adamc@1132 3230 If you meant to cross compile, use \`--host'.
adamc@1132 3231 See \`config.log' for more details." "$LINENO" 5; }
adamc@1132 3232 fi
adamc@1132 3233 fi
adamc@1132 3234 fi
adamc@1132 3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
adamc@1132 3236 $as_echo "$cross_compiling" >&6; }
adamc@1132 3237
adamc@1132 3238 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
adamc@1132 3239 ac_clean_files=$ac_clean_files_save
adamc@1132 3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
adamc@1132 3241 $as_echo_n "checking for suffix of object files... " >&6; }
adamc@1132 3242 if test "${ac_cv_objext+set}" = set; then :
adamc@1132 3243 $as_echo_n "(cached) " >&6
adamc@1132 3244 else
adamc@1132 3245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 3246 /* end confdefs.h. */
adamc@1132 3247
adamc@1132 3248 int
adamc@1132 3249 main ()
adamc@1132 3250 {
adamc@1132 3251
adamc@1132 3252 ;
adamc@1132 3253 return 0;
adamc@1132 3254 }
adamc@1132 3255 _ACEOF
adamc@1132 3256 rm -f conftest.o conftest.obj
adamc@1132 3257 if { { ac_try="$ac_compile"
adamc@1132 3258 case "(($ac_try" in
adamc@1132 3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1132 3260 *) ac_try_echo=$ac_try;;
adamc@1132 3261 esac
adamc@1132 3262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1132 3263 $as_echo "$ac_try_echo"; } >&5
adamc@1132 3264 (eval "$ac_compile") 2>&5
adamc@1132 3265 ac_status=$?
adamc@1132 3266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 3267 test $ac_status = 0; }; then :
adamc@1132 3268 for ac_file in conftest.o conftest.obj conftest.*; do
adamc@1132 3269 test -f "$ac_file" || continue;
adamc@1132 3270 case $ac_file in
adamc@1132 3271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
adamc@1132 3272 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
adamc@1132 3273 break;;
adamc@1132 3274 esac
adamc@1132 3275 done
adamc@1132 3276 else
adamc@1132 3277 $as_echo "$as_me: failed program was:" >&5
adamc@1132 3278 sed 's/^/| /' conftest.$ac_ext >&5
adamc@1132 3279
adamc@1132 3280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
adamc@1132 3281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
adamc@1132 3282 as_fn_error "cannot compute suffix of object files: cannot compile
adamc@1132 3283 See \`config.log' for more details." "$LINENO" 5; }
adamc@1132 3284 fi
adamc@1132 3285 rm -f conftest.$ac_cv_objext conftest.$ac_ext
adamc@1132 3286 fi
adamc@1132 3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
adamc@1132 3288 $as_echo "$ac_cv_objext" >&6; }
adamc@1132 3289 OBJEXT=$ac_cv_objext
adamc@1132 3290 ac_objext=$OBJEXT
adamc@1132 3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
adamc@1132 3292 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
adamc@1132 3293 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
adamc@1132 3294 $as_echo_n "(cached) " >&6
adamc@1132 3295 else
adamc@1132 3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 3297 /* end confdefs.h. */
adamc@1132 3298
adamc@1132 3299 int
adamc@1132 3300 main ()
adamc@1132 3301 {
adamc@1132 3302 #ifndef __GNUC__
adamc@1132 3303 choke me
adamc@1132 3304 #endif
adamc@1132 3305
adamc@1132 3306 ;
adamc@1132 3307 return 0;
adamc@1132 3308 }
adamc@1132 3309 _ACEOF
adamc@1132 3310 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1132 3311 ac_compiler_gnu=yes
adamc@1132 3312 else
adamc@1132 3313 ac_compiler_gnu=no
adamc@1132 3314 fi
adamc@1132 3315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1132 3316 ac_cv_c_compiler_gnu=$ac_compiler_gnu
adamc@1132 3317
adamc@1132 3318 fi
adamc@1132 3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
adamc@1132 3320 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
adamc@1132 3321 if test $ac_compiler_gnu = yes; then
adamc@1132 3322 GCC=yes
adamc@1132 3323 else
adamc@1132 3324 GCC=
adamc@1132 3325 fi
adamc@1132 3326 ac_test_CFLAGS=${CFLAGS+set}
adamc@1132 3327 ac_save_CFLAGS=$CFLAGS
adamc@1132 3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
adamc@1132 3329 $as_echo_n "checking whether $CC accepts -g... " >&6; }
adamc@1132 3330 if test "${ac_cv_prog_cc_g+set}" = set; then :
adamc@1132 3331 $as_echo_n "(cached) " >&6
adamc@1132 3332 else
adamc@1132 3333 ac_save_c_werror_flag=$ac_c_werror_flag
adamc@1132 3334 ac_c_werror_flag=yes
adamc@1132 3335 ac_cv_prog_cc_g=no
adamc@1132 3336 CFLAGS="-g"
adamc@1132 3337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 3338 /* end confdefs.h. */
adamc@1132 3339
adamc@1132 3340 int
adamc@1132 3341 main ()
adamc@1132 3342 {
adamc@1132 3343
adamc@1132 3344 ;
adamc@1132 3345 return 0;
adamc@1132 3346 }
adamc@1132 3347 _ACEOF
adamc@1132 3348 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1132 3349 ac_cv_prog_cc_g=yes
adamc@1132 3350 else
adamc@1132 3351 CFLAGS=""
adamc@1132 3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 3353 /* end confdefs.h. */
adamc@1132 3354
adamc@1132 3355 int
adamc@1132 3356 main ()
adamc@1132 3357 {
adamc@1132 3358
adamc@1132 3359 ;
adamc@1132 3360 return 0;
adamc@1132 3361 }
adamc@1132 3362 _ACEOF
adamc@1132 3363 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1132 3364
adamc@1132 3365 else
adamc@1132 3366 ac_c_werror_flag=$ac_save_c_werror_flag
adamc@1132 3367 CFLAGS="-g"
adamc@1132 3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 3369 /* end confdefs.h. */
adamc@1132 3370
adamc@1132 3371 int
adamc@1132 3372 main ()
adamc@1132 3373 {
adamc@1132 3374
adamc@1132 3375 ;
adamc@1132 3376 return 0;
adamc@1132 3377 }
adamc@1132 3378 _ACEOF
adamc@1132 3379 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1132 3380 ac_cv_prog_cc_g=yes
adamc@1132 3381 fi
adamc@1132 3382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1132 3383 fi
adamc@1132 3384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1132 3385 fi
adamc@1132 3386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1132 3387 ac_c_werror_flag=$ac_save_c_werror_flag
adamc@1132 3388 fi
adamc@1132 3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
adamc@1132 3390 $as_echo "$ac_cv_prog_cc_g" >&6; }
adamc@1132 3391 if test "$ac_test_CFLAGS" = set; then
adamc@1132 3392 CFLAGS=$ac_save_CFLAGS
adamc@1132 3393 elif test $ac_cv_prog_cc_g = yes; then
adamc@1132 3394 if test "$GCC" = yes; then
adamc@1132 3395 CFLAGS="-g -O2"
adamc@1132 3396 else
adamc@1132 3397 CFLAGS="-g"
adamc@1132 3398 fi
adamc@1132 3399 else
adamc@1132 3400 if test "$GCC" = yes; then
adamc@1132 3401 CFLAGS="-O2"
adamc@1132 3402 else
adamc@1132 3403 CFLAGS=
adamc@1132 3404 fi
adamc@1132 3405 fi
adamc@1132 3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
adamc@1132 3407 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
adamc@1132 3408 if test "${ac_cv_prog_cc_c89+set}" = set; then :
adamc@1132 3409 $as_echo_n "(cached) " >&6
adamc@1132 3410 else
adamc@1132 3411 ac_cv_prog_cc_c89=no
adamc@1132 3412 ac_save_CC=$CC
adamc@1132 3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 3414 /* end confdefs.h. */
adamc@1132 3415 #include <stdarg.h>
adamc@1132 3416 #include <stdio.h>
adamc@1132 3417 #include <sys/types.h>
adamc@1132 3418 #include <sys/stat.h>
adamc@1132 3419 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
adamc@1132 3420 struct buf { int x; };
adamc@1132 3421 FILE * (*rcsopen) (struct buf *, struct stat *, int);
adamc@1132 3422 static char *e (p, i)
adamc@1132 3423 char **p;
adamc@1132 3424 int i;
adamc@1132 3425 {
adamc@1132 3426 return p[i];
adamc@1132 3427 }
adamc@1132 3428 static char *f (char * (*g) (char **, int), char **p, ...)
adamc@1132 3429 {
adamc@1132 3430 char *s;
adamc@1132 3431 va_list v;
adamc@1132 3432 va_start (v,p);
adamc@1132 3433 s = g (p, va_arg (v,int));
adamc@1132 3434 va_end (v);
adamc@1132 3435 return s;
adamc@1132 3436 }
adamc@1132 3437
adamc@1132 3438 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
adamc@1132 3439 function prototypes and stuff, but not '\xHH' hex character constants.
adamc@1132 3440 These don't provoke an error unfortunately, instead are silently treated
adamc@1132 3441 as 'x'. The following induces an error, until -std is added to get
adamc@1132 3442 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
adamc@1132 3443 array size at least. It's necessary to write '\x00'==0 to get something
adamc@1132 3444 that's true only with -std. */
adamc@1132 3445 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
adamc@1132 3446
adamc@1132 3447 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
adamc@1132 3448 inside strings and character constants. */
adamc@1132 3449 #define FOO(x) 'x'
adamc@1132 3450 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
adamc@1132 3451
adamc@1132 3452 int test (int i, double x);
adamc@1132 3453 struct s1 {int (*f) (int a);};
adamc@1132 3454 struct s2 {int (*f) (double a);};
adamc@1132 3455 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
adamc@1132 3456 int argc;
adamc@1132 3457 char **argv;
adamc@1132 3458 int
adamc@1132 3459 main ()
adamc@1132 3460 {
adamc@1132 3461 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
adamc@1132 3462 ;
adamc@1132 3463 return 0;
adamc@1132 3464 }
adamc@1132 3465 _ACEOF
adamc@1132 3466 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
adamc@1132 3467 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
adamc@1132 3468 do
adamc@1132 3469 CC="$ac_save_CC $ac_arg"
adamc@1132 3470 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1132 3471 ac_cv_prog_cc_c89=$ac_arg
adamc@1132 3472 fi
adamc@1132 3473 rm -f core conftest.err conftest.$ac_objext
adamc@1132 3474 test "x$ac_cv_prog_cc_c89" != "xno" && break
adamc@1132 3475 done
adamc@1132 3476 rm -f conftest.$ac_ext
adamc@1132 3477 CC=$ac_save_CC
adamc@1132 3478
adamc@1132 3479 fi
adamc@1132 3480 # AC_CACHE_VAL
adamc@1132 3481 case "x$ac_cv_prog_cc_c89" in
adamc@1132 3482 x)
adamc@1132 3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
adamc@1132 3484 $as_echo "none needed" >&6; } ;;
adamc@1132 3485 xno)
adamc@1132 3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
adamc@1132 3487 $as_echo "unsupported" >&6; } ;;
adamc@1132 3488 *)
adamc@1132 3489 CC="$CC $ac_cv_prog_cc_c89"
adamc@1132 3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
adamc@1132 3491 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
adamc@1132 3492 esac
adamc@1132 3493 if test "x$ac_cv_prog_cc_c89" != xno; then :
adamc@1132 3494
adamc@1132 3495 fi
adamc@1132 3496
adamc@1132 3497 ac_ext=c
adamc@1132 3498 ac_cpp='$CPP $CPPFLAGS'
adamc@1132 3499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1132 3500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1132 3501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1132 3502 DEPDIR="${am__leading_dot}deps"
adamc@1132 3503
adamc@1132 3504 ac_config_commands="$ac_config_commands depfiles"
adamc@1132 3505
adamc@1132 3506
adamc@1132 3507 am_make=${MAKE-make}
adamc@1132 3508 cat > confinc << 'END'
adamc@1132 3509 am__doit:
adamc@1132 3510 @echo this is the am__doit target
adamc@1132 3511 .PHONY: am__doit
adamc@1132 3512 END
adamc@1132 3513 # If we don't find an include directive, just comment out the code.
adamc@1132 3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
adamc@1132 3515 $as_echo_n "checking for style of include used by $am_make... " >&6; }
adamc@1132 3516 am__include="#"
adamc@1132 3517 am__quote=
adamc@1132 3518 _am_result=none
adamc@1132 3519 # First try GNU make style include.
adamc@1132 3520 echo "include confinc" > confmf
adamc@1132 3521 # Ignore all kinds of additional output from `make'.
adamc@1132 3522 case `$am_make -s -f confmf 2> /dev/null` in #(
adamc@1132 3523 *the\ am__doit\ target*)
adamc@1132 3524 am__include=include
adamc@1132 3525 am__quote=
adamc@1132 3526 _am_result=GNU
adamc@1132 3527 ;;
adamc@1132 3528 esac
adamc@1132 3529 # Now try BSD make style include.
adamc@1132 3530 if test "$am__include" = "#"; then
adamc@1132 3531 echo '.include "confinc"' > confmf
adamc@1132 3532 case `$am_make -s -f confmf 2> /dev/null` in #(
adamc@1132 3533 *the\ am__doit\ target*)
adamc@1132 3534 am__include=.include
adamc@1132 3535 am__quote="\""
adamc@1132 3536 _am_result=BSD
adamc@1132 3537 ;;
adamc@1132 3538 esac
adamc@1132 3539 fi
adamc@1132 3540
adamc@1132 3541
adamc@1132 3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
adamc@1132 3543 $as_echo "$_am_result" >&6; }
adamc@1132 3544 rm -f confinc confmf
adamc@1132 3545
adamc@1132 3546 # Check whether --enable-dependency-tracking was given.
adamc@1132 3547 if test "${enable_dependency_tracking+set}" = set; then :
adamc@1132 3548 enableval=$enable_dependency_tracking;
adamc@1132 3549 fi
adamc@1132 3550
adamc@1132 3551 if test "x$enable_dependency_tracking" != xno; then
adamc@1132 3552 am_depcomp="$ac_aux_dir/depcomp"
adamc@1132 3553 AMDEPBACKSLASH='\'
adamc@1132 3554 fi
adamc@1132 3555 if test "x$enable_dependency_tracking" != xno; then
adamc@1132 3556 AMDEP_TRUE=
adamc@1132 3557 AMDEP_FALSE='#'
adamc@1132 3558 else
adamc@1132 3559 AMDEP_TRUE='#'
adamc@1132 3560 AMDEP_FALSE=
adamc@1132 3561 fi
adamc@1132 3562
adamc@1132 3563
adamc@1132 3564
adamc@1132 3565 depcc="$CC" am_compiler_list=
adamc@1132 3566
adamc@1132 3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
adamc@1132 3568 $as_echo_n "checking dependency style of $depcc... " >&6; }
adamc@1132 3569 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
adamc@1132 3570 $as_echo_n "(cached) " >&6
adamc@1132 3571 else
adamc@1132 3572 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
adamc@1132 3573 # We make a subdir and do the tests there. Otherwise we can end up
adamc@1132 3574 # making bogus files that we don't know about and never remove. For
adamc@1132 3575 # instance it was reported that on HP-UX the gcc test will end up
adamc@1132 3576 # making a dummy file named `D' -- because `-MD' means `put the output
adamc@1132 3577 # in D'.
adamc@1132 3578 mkdir conftest.dir
adamc@1132 3579 # Copy depcomp to subdir because otherwise we won't find it if we're
adamc@1132 3580 # using a relative directory.
adamc@1132 3581 cp "$am_depcomp" conftest.dir
adamc@1132 3582 cd conftest.dir
adamc@1132 3583 # We will build objects and dependencies in a subdirectory because
adamc@1132 3584 # it helps to detect inapplicable dependency modes. For instance
adamc@1132 3585 # both Tru64's cc and ICC support -MD to output dependencies as a
adamc@1132 3586 # side effect of compilation, but ICC will put the dependencies in
adamc@1132 3587 # the current directory while Tru64 will put them in the object
adamc@1132 3588 # directory.
adamc@1132 3589 mkdir sub
adamc@1132 3590
adamc@1132 3591 am_cv_CC_dependencies_compiler_type=none
adamc@1132 3592 if test "$am_compiler_list" = ""; then
adamc@1132 3593 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
adamc@1132 3594 fi
adamc@1132 3595 am__universal=false
adamc@1132 3596 case " $depcc " in #(
adamc@1132 3597 *\ -arch\ *\ -arch\ *) am__universal=true ;;
adamc@1132 3598 esac
adamc@1132 3599
adamc@1132 3600 for depmode in $am_compiler_list; do
adamc@1132 3601 # Setup a source with many dependencies, because some compilers
adamc@1132 3602 # like to wrap large dependency lists on column 80 (with \), and
adamc@1132 3603 # we should not choose a depcomp mode which is confused by this.
adamc@1132 3604 #
adamc@1132 3605 # We need to recreate these files for each test, as the compiler may
adamc@1132 3606 # overwrite some of them when testing with obscure command lines.
adamc@1132 3607 # This happens at least with the AIX C compiler.
adamc@1132 3608 : > sub/conftest.c
adamc@1132 3609 for i in 1 2 3 4 5 6; do
adamc@1132 3610 echo '#include "conftst'$i'.h"' >> sub/conftest.c
adamc@1132 3611 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
adamc@1132 3612 # Solaris 8's {/usr,}/bin/sh.
adamc@1132 3613 touch sub/conftst$i.h
adamc@1132 3614 done
adamc@1132 3615 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
adamc@1132 3616
adamc@1132 3617 # We check with `-c' and `-o' for the sake of the "dashmstdout"
adamc@1132 3618 # mode. It turns out that the SunPro C++ compiler does not properly
adamc@1132 3619 # handle `-M -o', and we need to detect this. Also, some Intel
adamc@1132 3620 # versions had trouble with output in subdirs
adamc@1132 3621 am__obj=sub/conftest.${OBJEXT-o}
adamc@1132 3622 am__minus_obj="-o $am__obj"
adamc@1132 3623 case $depmode in
adamc@1132 3624 gcc)
adamc@1132 3625 # This depmode causes a compiler race in universal mode.
adamc@1132 3626 test "$am__universal" = false || continue
adamc@1132 3627 ;;
adamc@1132 3628 nosideeffect)
adamc@1132 3629 # after this tag, mechanisms are not by side-effect, so they'll
adamc@1132 3630 # only be used when explicitly requested
adamc@1132 3631 if test "x$enable_dependency_tracking" = xyes; then
adamc@1132 3632 continue
adamc@1132 3633 else
adamc@1132 3634 break
adamc@1132 3635 fi
adamc@1132 3636 ;;
adamc@1132 3637 msvisualcpp | msvcmsys)
adamc@1132 3638 # This compiler won't grok `-c -o', but also, the minuso test has
adamc@1132 3639 # not run yet. These depmodes are late enough in the game, and
adamc@1132 3640 # so weak that their functioning should not be impacted.
adamc@1132 3641 am__obj=conftest.${OBJEXT-o}
adamc@1132 3642 am__minus_obj=
adamc@1132 3643 ;;
adamc@1132 3644 none) break ;;
adamc@1132 3645 esac
adamc@1132 3646 if depmode=$depmode \
adamc@1132 3647 source=sub/conftest.c object=$am__obj \
adamc@1132 3648 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
adamc@1132 3649 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
adamc@1132 3650 >/dev/null 2>conftest.err &&
adamc@1132 3651 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
adamc@1132 3652 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
adamc@1132 3653 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
adamc@1132 3654 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
adamc@1132 3655 # icc doesn't choke on unknown options, it will just issue warnings
adamc@1132 3656 # or remarks (even with -Werror). So we grep stderr for any message
adamc@1132 3657 # that says an option was ignored or not supported.
adamc@1132 3658 # When given -MP, icc 7.0 and 7.1 complain thusly:
adamc@1132 3659 # icc: Command line warning: ignoring option '-M'; no argument required
adamc@1132 3660 # The diagnosis changed in icc 8.0:
adamc@1132 3661 # icc: Command line remark: option '-MP' not supported
adamc@1132 3662 if (grep 'ignoring option' conftest.err ||
adamc@1132 3663 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
adamc@1132 3664 am_cv_CC_dependencies_compiler_type=$depmode
adamc@1132 3665 break
adamc@1132 3666 fi
adamc@1132 3667 fi
adamc@1132 3668 done
adamc@1132 3669
adamc@1132 3670 cd ..
adamc@1132 3671 rm -rf conftest.dir
adamc@1132 3672 else
adamc@1132 3673 am_cv_CC_dependencies_compiler_type=none
adamc@1132 3674 fi
adamc@1132 3675
adamc@1132 3676 fi
adamc@1132 3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
adamc@1132 3678 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
adamc@1132 3679 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
adamc@1132 3680
adamc@1132 3681 if
adamc@1132 3682 test "x$enable_dependency_tracking" != xno \
adamc@1132 3683 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
adamc@1132 3684 am__fastdepCC_TRUE=
adamc@1132 3685 am__fastdepCC_FALSE='#'
adamc@1132 3686 else
adamc@1132 3687 am__fastdepCC_TRUE='#'
adamc@1132 3688 am__fastdepCC_FALSE=
adamc@1132 3689 fi
adamc@1132 3690
adamc@1132 3691
adamc@1132 3692 case `pwd` in
adamc@1132 3693 *\ * | *\ *)
adamc@1132 3694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
adamc@1132 3695 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
adamc@1132 3696 esac
adamc@1132 3697
adamc@1132 3698
adamc@1132 3699
adamc@1132 3700 macro_version='2.2.6b'
adamc@1132 3701 macro_revision='1.3017'
adamc@1132 3702
adamc@1132 3703
adamc@1132 3704
adamc@1132 3705
adamc@1132 3706
adamc@1132 3707
adamc@1132 3708
adamc@1132 3709
adamc@1132 3710
adamc@1132 3711
adamc@1132 3712
adamc@1132 3713
adamc@1132 3714
adamc@1132 3715 ltmain="$ac_aux_dir/ltmain.sh"
adamc@1132 3716
adamc@1132 3717 # Make sure we can run config.sub.
adamc@1132 3718 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
adamc@1132 3719 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
adamc@1132 3720
adamc@1132 3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
adamc@1132 3722 $as_echo_n "checking build system type... " >&6; }
adamc@1132 3723 if test "${ac_cv_build+set}" = set; then :
adamc@1132 3724 $as_echo_n "(cached) " >&6
adamc@1132 3725 else
adamc@1132 3726 ac_build_alias=$build_alias
adamc@1132 3727 test "x$ac_build_alias" = x &&
adamc@1132 3728 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
adamc@1132 3729 test "x$ac_build_alias" = x &&
adamc@1132 3730 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
adamc@1132 3731 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
adamc@1132 3732 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
adamc@1132 3733
adamc@1132 3734 fi
adamc@1132 3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
adamc@1132 3736 $as_echo "$ac_cv_build" >&6; }
adamc@1132 3737 case $ac_cv_build in
adamc@1132 3738 *-*-*) ;;
adamc@1132 3739 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
adamc@1132 3740 esac
adamc@1132 3741 build=$ac_cv_build
adamc@1132 3742 ac_save_IFS=$IFS; IFS='-'
adamc@1132 3743 set x $ac_cv_build
adamc@1132 3744 shift
adamc@1132 3745 build_cpu=$1
adamc@1132 3746 build_vendor=$2
adamc@1132 3747 shift; shift
adamc@1132 3748 # Remember, the first character of IFS is used to create $*,
adamc@1132 3749 # except with old shells:
adamc@1132 3750 build_os=$*
adamc@1132 3751 IFS=$ac_save_IFS
adamc@1132 3752 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
adamc@1132 3753
adamc@1132 3754
adamc@1132 3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
adamc@1132 3756 $as_echo_n "checking host system type... " >&6; }
adamc@1132 3757 if test "${ac_cv_host+set}" = set; then :
adamc@1132 3758 $as_echo_n "(cached) " >&6
adamc@1132 3759 else
adamc@1132 3760 if test "x$host_alias" = x; then
adamc@1132 3761 ac_cv_host=$ac_cv_build
adamc@1132 3762 else
adamc@1132 3763 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
adamc@1132 3764 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
adamc@1132 3765 fi
adamc@1132 3766
adamc@1132 3767 fi
adamc@1132 3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
adamc@1132 3769 $as_echo "$ac_cv_host" >&6; }
adamc@1132 3770 case $ac_cv_host in
adamc@1132 3771 *-*-*) ;;
adamc@1132 3772 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
adamc@1132 3773 esac
adamc@1132 3774 host=$ac_cv_host
adamc@1132 3775 ac_save_IFS=$IFS; IFS='-'
adamc@1132 3776 set x $ac_cv_host
adamc@1132 3777 shift
adamc@1132 3778 host_cpu=$1
adamc@1132 3779 host_vendor=$2
adamc@1132 3780 shift; shift
adamc@1132 3781 # Remember, the first character of IFS is used to create $*,
adamc@1132 3782 # except with old shells:
adamc@1132 3783 host_os=$*
adamc@1132 3784 IFS=$ac_save_IFS
adamc@1132 3785 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
adamc@1132 3786
adamc@1132 3787
adamc@1132 3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
adamc@1132 3789 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
adamc@1132 3790 if test "${ac_cv_path_SED+set}" = set; then :
adamc@1132 3791 $as_echo_n "(cached) " >&6
adamc@1132 3792 else
adamc@1132 3793 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
adamc@1132 3794 for ac_i in 1 2 3 4 5 6 7; do
adamc@1132 3795 ac_script="$ac_script$as_nl$ac_script"
adamc@1132 3796 done
adamc@1132 3797 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
adamc@1132 3798 { ac_script=; unset ac_script;}
adamc@1132 3799 if test -z "$SED"; then
adamc@1132 3800 ac_path_SED_found=false
adamc@1132 3801 # Loop through the user's path and test for each of PROGNAME-LIST
adamc@1132 3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 3803 for as_dir in $PATH
adamc@1132 3804 do
adamc@1132 3805 IFS=$as_save_IFS
adamc@1132 3806 test -z "$as_dir" && as_dir=.
adamc@1132 3807 for ac_prog in sed gsed; do
adamc@1132 3808 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 3809 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
adamc@1132 3810 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
adamc@1132 3811 # Check for GNU ac_path_SED and select it if it is found.
adamc@1132 3812 # Check for GNU $ac_path_SED
adamc@1132 3813 case `"$ac_path_SED" --version 2>&1` in
adamc@1132 3814 *GNU*)
adamc@1132 3815 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
adamc@1132 3816 *)
adamc@1132 3817 ac_count=0
adamc@1132 3818 $as_echo_n 0123456789 >"conftest.in"
adamc@1132 3819 while :
adamc@1132 3820 do
adamc@1132 3821 cat "conftest.in" "conftest.in" >"conftest.tmp"
adamc@1132 3822 mv "conftest.tmp" "conftest.in"
adamc@1132 3823 cp "conftest.in" "conftest.nl"
adamc@1132 3824 $as_echo '' >> "conftest.nl"
adamc@1132 3825 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
adamc@1132 3826 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
adamc@1132 3827 as_fn_arith $ac_count + 1 && ac_count=$as_val
adamc@1132 3828 if test $ac_count -gt ${ac_path_SED_max-0}; then
adamc@1132 3829 # Best one so far, save it but keep looking for a better one
adamc@1132 3830 ac_cv_path_SED="$ac_path_SED"
adamc@1132 3831 ac_path_SED_max=$ac_count
adamc@1132 3832 fi
adamc@1132 3833 # 10*(2^10) chars as input seems more than enough
adamc@1132 3834 test $ac_count -gt 10 && break
adamc@1132 3835 done
adamc@1132 3836 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
adamc@1132 3837 esac
adamc@1132 3838
adamc@1132 3839 $ac_path_SED_found && break 3
adamc@1132 3840 done
adamc@1132 3841 done
adamc@1132 3842 done
adamc@1132 3843 IFS=$as_save_IFS
adamc@1132 3844 if test -z "$ac_cv_path_SED"; then
adamc@1132 3845 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
adamc@1132 3846 fi
adamc@1132 3847 else
adamc@1132 3848 ac_cv_path_SED=$SED
adamc@1132 3849 fi
adamc@1132 3850
adamc@1132 3851 fi
adamc@1132 3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
adamc@1132 3853 $as_echo "$ac_cv_path_SED" >&6; }
adamc@1132 3854 SED="$ac_cv_path_SED"
adamc@1132 3855 rm -f conftest.sed
adamc@1132 3856
adamc@1132 3857 test -z "$SED" && SED=sed
adamc@1132 3858 Xsed="$SED -e 1s/^X//"
adamc@1132 3859
adamc@1132 3860
adamc@1132 3861
adamc@1132 3862
adamc@1132 3863
adamc@1132 3864
adamc@1132 3865
adamc@1132 3866
adamc@1132 3867
adamc@1132 3868
adamc@1132 3869
adamc@1132 3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
adamc@1132 3871 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
adamc@1132 3872 if test "${ac_cv_path_GREP+set}" = set; then :
adamc@1132 3873 $as_echo_n "(cached) " >&6
adamc@1132 3874 else
adamc@1132 3875 if test -z "$GREP"; then
adamc@1132 3876 ac_path_GREP_found=false
adamc@1132 3877 # Loop through the user's path and test for each of PROGNAME-LIST
adamc@1132 3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 3879 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
adamc@1132 3880 do
adamc@1132 3881 IFS=$as_save_IFS
adamc@1132 3882 test -z "$as_dir" && as_dir=.
adamc@1132 3883 for ac_prog in grep ggrep; do
adamc@1132 3884 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 3885 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
adamc@1132 3886 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
adamc@1132 3887 # Check for GNU ac_path_GREP and select it if it is found.
adamc@1132 3888 # Check for GNU $ac_path_GREP
adamc@1132 3889 case `"$ac_path_GREP" --version 2>&1` in
adamc@1132 3890 *GNU*)
adamc@1132 3891 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
adamc@1132 3892 *)
adamc@1132 3893 ac_count=0
adamc@1132 3894 $as_echo_n 0123456789 >"conftest.in"
adamc@1132 3895 while :
adamc@1132 3896 do
adamc@1132 3897 cat "conftest.in" "conftest.in" >"conftest.tmp"
adamc@1132 3898 mv "conftest.tmp" "conftest.in"
adamc@1132 3899 cp "conftest.in" "conftest.nl"
adamc@1132 3900 $as_echo 'GREP' >> "conftest.nl"
adamc@1132 3901 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
adamc@1132 3902 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
adamc@1132 3903 as_fn_arith $ac_count + 1 && ac_count=$as_val
adamc@1132 3904 if test $ac_count -gt ${ac_path_GREP_max-0}; then
adamc@1132 3905 # Best one so far, save it but keep looking for a better one
adamc@1132 3906 ac_cv_path_GREP="$ac_path_GREP"
adamc@1132 3907 ac_path_GREP_max=$ac_count
adamc@1132 3908 fi
adamc@1132 3909 # 10*(2^10) chars as input seems more than enough
adamc@1132 3910 test $ac_count -gt 10 && break
adamc@1132 3911 done
adamc@1132 3912 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
adamc@1132 3913 esac
adamc@1132 3914
adamc@1132 3915 $ac_path_GREP_found && break 3
adamc@1132 3916 done
adamc@1132 3917 done
adamc@1132 3918 done
adamc@1132 3919 IFS=$as_save_IFS
adamc@1132 3920 if test -z "$ac_cv_path_GREP"; then
adamc@1132 3921 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
adamc@1132 3922 fi
adamc@1132 3923 else
adamc@1132 3924 ac_cv_path_GREP=$GREP
adamc@1132 3925 fi
adamc@1132 3926
adamc@1132 3927 fi
adamc@1132 3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
adamc@1132 3929 $as_echo "$ac_cv_path_GREP" >&6; }
adamc@1132 3930 GREP="$ac_cv_path_GREP"
adamc@1132 3931
adamc@1132 3932
adamc@1132 3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
adamc@1132 3934 $as_echo_n "checking for egrep... " >&6; }
adamc@1132 3935 if test "${ac_cv_path_EGREP+set}" = set; then :
adamc@1132 3936 $as_echo_n "(cached) " >&6
adamc@1132 3937 else
adamc@1132 3938 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
adamc@1132 3939 then ac_cv_path_EGREP="$GREP -E"
adamc@1132 3940 else
adamc@1132 3941 if test -z "$EGREP"; then
adamc@1132 3942 ac_path_EGREP_found=false
adamc@1132 3943 # Loop through the user's path and test for each of PROGNAME-LIST
adamc@1132 3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 3945 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
adamc@1132 3946 do
adamc@1132 3947 IFS=$as_save_IFS
adamc@1132 3948 test -z "$as_dir" && as_dir=.
adamc@1132 3949 for ac_prog in egrep; do
adamc@1132 3950 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 3951 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
adamc@1132 3952 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
adamc@1132 3953 # Check for GNU ac_path_EGREP and select it if it is found.
adamc@1132 3954 # Check for GNU $ac_path_EGREP
adamc@1132 3955 case `"$ac_path_EGREP" --version 2>&1` in
adamc@1132 3956 *GNU*)
adamc@1132 3957 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
adamc@1132 3958 *)
adamc@1132 3959 ac_count=0
adamc@1132 3960 $as_echo_n 0123456789 >"conftest.in"
adamc@1132 3961 while :
adamc@1132 3962 do
adamc@1132 3963 cat "conftest.in" "conftest.in" >"conftest.tmp"
adamc@1132 3964 mv "conftest.tmp" "conftest.in"
adamc@1132 3965 cp "conftest.in" "conftest.nl"
adamc@1132 3966 $as_echo 'EGREP' >> "conftest.nl"
adamc@1132 3967 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
adamc@1132 3968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
adamc@1132 3969 as_fn_arith $ac_count + 1 && ac_count=$as_val
adamc@1132 3970 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
adamc@1132 3971 # Best one so far, save it but keep looking for a better one
adamc@1132 3972 ac_cv_path_EGREP="$ac_path_EGREP"
adamc@1132 3973 ac_path_EGREP_max=$ac_count
adamc@1132 3974 fi
adamc@1132 3975 # 10*(2^10) chars as input seems more than enough
adamc@1132 3976 test $ac_count -gt 10 && break
adamc@1132 3977 done
adamc@1132 3978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
adamc@1132 3979 esac
adamc@1132 3980
adamc@1132 3981 $ac_path_EGREP_found && break 3
adamc@1132 3982 done
adamc@1132 3983 done
adamc@1132 3984 done
adamc@1132 3985 IFS=$as_save_IFS
adamc@1132 3986 if test -z "$ac_cv_path_EGREP"; then
adamc@1132 3987 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
adamc@1132 3988 fi
adamc@1132 3989 else
adamc@1132 3990 ac_cv_path_EGREP=$EGREP
adamc@1132 3991 fi
adamc@1132 3992
adamc@1132 3993 fi
adamc@1132 3994 fi
adamc@1132 3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
adamc@1132 3996 $as_echo "$ac_cv_path_EGREP" >&6; }
adamc@1132 3997 EGREP="$ac_cv_path_EGREP"
adamc@1132 3998
adamc@1132 3999
adamc@1132 4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
adamc@1132 4001 $as_echo_n "checking for fgrep... " >&6; }
adamc@1132 4002 if test "${ac_cv_path_FGREP+set}" = set; then :
adamc@1132 4003 $as_echo_n "(cached) " >&6
adamc@1132 4004 else
adamc@1132 4005 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
adamc@1132 4006 then ac_cv_path_FGREP="$GREP -F"
adamc@1132 4007 else
adamc@1132 4008 if test -z "$FGREP"; then
adamc@1132 4009 ac_path_FGREP_found=false
adamc@1132 4010 # Loop through the user's path and test for each of PROGNAME-LIST
adamc@1132 4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 4012 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
adamc@1132 4013 do
adamc@1132 4014 IFS=$as_save_IFS
adamc@1132 4015 test -z "$as_dir" && as_dir=.
adamc@1132 4016 for ac_prog in fgrep; do
adamc@1132 4017 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 4018 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
adamc@1132 4019 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
adamc@1132 4020 # Check for GNU ac_path_FGREP and select it if it is found.
adamc@1132 4021 # Check for GNU $ac_path_FGREP
adamc@1132 4022 case `"$ac_path_FGREP" --version 2>&1` in
adamc@1132 4023 *GNU*)
adamc@1132 4024 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
adamc@1132 4025 *)
adamc@1132 4026 ac_count=0
adamc@1132 4027 $as_echo_n 0123456789 >"conftest.in"
adamc@1132 4028 while :
adamc@1132 4029 do
adamc@1132 4030 cat "conftest.in" "conftest.in" >"conftest.tmp"
adamc@1132 4031 mv "conftest.tmp" "conftest.in"
adamc@1132 4032 cp "conftest.in" "conftest.nl"
adamc@1132 4033 $as_echo 'FGREP' >> "conftest.nl"
adamc@1132 4034 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
adamc@1132 4035 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
adamc@1132 4036 as_fn_arith $ac_count + 1 && ac_count=$as_val
adamc@1132 4037 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
adamc@1132 4038 # Best one so far, save it but keep looking for a better one
adamc@1132 4039 ac_cv_path_FGREP="$ac_path_FGREP"
adamc@1132 4040 ac_path_FGREP_max=$ac_count
adamc@1132 4041 fi
adamc@1132 4042 # 10*(2^10) chars as input seems more than enough
adamc@1132 4043 test $ac_count -gt 10 && break
adamc@1132 4044 done
adamc@1132 4045 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
adamc@1132 4046 esac
adamc@1132 4047
adamc@1132 4048 $ac_path_FGREP_found && break 3
adamc@1132 4049 done
adamc@1132 4050 done
adamc@1132 4051 done
adamc@1132 4052 IFS=$as_save_IFS
adamc@1132 4053 if test -z "$ac_cv_path_FGREP"; then
adamc@1132 4054 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
adamc@1132 4055 fi
adamc@1132 4056 else
adamc@1132 4057 ac_cv_path_FGREP=$FGREP
adamc@1132 4058 fi
adamc@1132 4059
adamc@1132 4060 fi
adamc@1132 4061 fi
adamc@1132 4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
adamc@1132 4063 $as_echo "$ac_cv_path_FGREP" >&6; }
adamc@1132 4064 FGREP="$ac_cv_path_FGREP"
adamc@1132 4065
adamc@1132 4066
adamc@1132 4067 test -z "$GREP" && GREP=grep
adamc@1132 4068
adamc@1132 4069
adamc@1132 4070
adamc@1132 4071
adamc@1132 4072
adamc@1132 4073
adamc@1132 4074
adamc@1132 4075
adamc@1132 4076
adamc@1132 4077
adamc@1132 4078
adamc@1132 4079
adamc@1132 4080
adamc@1132 4081
adamc@1132 4082
adamc@1132 4083
adamc@1132 4084
adamc@1132 4085
adamc@1132 4086
adamc@1132 4087 # Check whether --with-gnu-ld was given.
adamc@1132 4088 if test "${with_gnu_ld+set}" = set; then :
adamc@1132 4089 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
adamc@1132 4090 else
adamc@1132 4091 with_gnu_ld=no
adamc@1132 4092 fi
adamc@1132 4093
adamc@1132 4094 ac_prog=ld
adamc@1132 4095 if test "$GCC" = yes; then
adamc@1132 4096 # Check if gcc -print-prog-name=ld gives a path.
adamc@1132 4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
adamc@1132 4098 $as_echo_n "checking for ld used by $CC... " >&6; }
adamc@1132 4099 case $host in
adamc@1132 4100 *-*-mingw*)
adamc@1132 4101 # gcc leaves a trailing carriage return which upsets mingw
adamc@1132 4102 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
adamc@1132 4103 *)
adamc@1132 4104 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
adamc@1132 4105 esac
adamc@1132 4106 case $ac_prog in
adamc@1132 4107 # Accept absolute paths.
adamc@1132 4108 [\\/]* | ?:[\\/]*)
adamc@1132 4109 re_direlt='/[^/][^/]*/\.\./'
adamc@1132 4110 # Canonicalize the pathname of ld
adamc@1132 4111 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
adamc@1132 4112 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
adamc@1132 4113 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
adamc@1132 4114 done
adamc@1132 4115 test -z "$LD" && LD="$ac_prog"
adamc@1132 4116 ;;
adamc@1132 4117 "")
adamc@1132 4118 # If it fails, then pretend we aren't using GCC.
adamc@1132 4119 ac_prog=ld
adamc@1132 4120 ;;
adamc@1132 4121 *)
adamc@1132 4122 # If it is relative, then search for the first ld in PATH.
adamc@1132 4123 with_gnu_ld=unknown
adamc@1132 4124 ;;
adamc@1132 4125 esac
adamc@1132 4126 elif test "$with_gnu_ld" = yes; then
adamc@1132 4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
adamc@1132 4128 $as_echo_n "checking for GNU ld... " >&6; }
adamc@1132 4129 else
adamc@1132 4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
adamc@1132 4131 $as_echo_n "checking for non-GNU ld... " >&6; }
adamc@1132 4132 fi
adamc@1132 4133 if test "${lt_cv_path_LD+set}" = set; then :
adamc@1132 4134 $as_echo_n "(cached) " >&6
adamc@1132 4135 else
adamc@1132 4136 if test -z "$LD"; then
adamc@1132 4137 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
adamc@1132 4138 for ac_dir in $PATH; do
adamc@1132 4139 IFS="$lt_save_ifs"
adamc@1132 4140 test -z "$ac_dir" && ac_dir=.
adamc@1132 4141 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
adamc@1132 4142 lt_cv_path_LD="$ac_dir/$ac_prog"
adamc@1132 4143 # Check to see if the program is GNU ld. I'd rather use --version,
adamc@1132 4144 # but apparently some variants of GNU ld only accept -v.
adamc@1132 4145 # Break only if it was the GNU/non-GNU ld that we prefer.
adamc@1132 4146 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
adamc@1132 4147 *GNU* | *'with BFD'*)
adamc@1132 4148 test "$with_gnu_ld" != no && break
adamc@1132 4149 ;;
adamc@1132 4150 *)
adamc@1132 4151 test "$with_gnu_ld" != yes && break
adamc@1132 4152 ;;
adamc@1132 4153 esac
adamc@1132 4154 fi
adamc@1132 4155 done
adamc@1132 4156 IFS="$lt_save_ifs"
adamc@1132 4157 else
adamc@1132 4158 lt_cv_path_LD="$LD" # Let the user override the test with a path.
adamc@1132 4159 fi
adamc@1132 4160 fi
adamc@1132 4161
adamc@1132 4162 LD="$lt_cv_path_LD"
adamc@1132 4163 if test -n "$LD"; then
adamc@1132 4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
adamc@1132 4165 $as_echo "$LD" >&6; }
adamc@1132 4166 else
adamc@1132 4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 4168 $as_echo "no" >&6; }
adamc@1132 4169 fi
adamc@1132 4170 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
adamc@1132 4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
adamc@1132 4172 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
adamc@1132 4173 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
adamc@1132 4174 $as_echo_n "(cached) " >&6
adamc@1132 4175 else
adamc@1132 4176 # I'd rather use --version here, but apparently some GNU lds only accept -v.
adamc@1132 4177 case `$LD -v 2>&1 </dev/null` in
adamc@1132 4178 *GNU* | *'with BFD'*)
adamc@1132 4179 lt_cv_prog_gnu_ld=yes
adamc@1132 4180 ;;
adamc@1132 4181 *)
adamc@1132 4182 lt_cv_prog_gnu_ld=no
adamc@1132 4183 ;;
adamc@1132 4184 esac
adamc@1132 4185 fi
adamc@1132 4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
adamc@1132 4187 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
adamc@1132 4188 with_gnu_ld=$lt_cv_prog_gnu_ld
adamc@1132 4189
adamc@1132 4190
adamc@1132 4191
adamc@1132 4192
adamc@1132 4193
adamc@1132 4194
adamc@1132 4195
adamc@1132 4196
adamc@1132 4197
adamc@1132 4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
adamc@1132 4199 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
adamc@1132 4200 if test "${lt_cv_path_NM+set}" = set; then :
adamc@1132 4201 $as_echo_n "(cached) " >&6
adamc@1132 4202 else
adamc@1132 4203 if test -n "$NM"; then
adamc@1132 4204 # Let the user override the test.
adamc@1132 4205 lt_cv_path_NM="$NM"
adamc@1132 4206 else
adamc@1132 4207 lt_nm_to_check="${ac_tool_prefix}nm"
adamc@1132 4208 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
adamc@1132 4209 lt_nm_to_check="$lt_nm_to_check nm"
adamc@1132 4210 fi
adamc@1132 4211 for lt_tmp_nm in $lt_nm_to_check; do
adamc@1132 4212 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
adamc@1132 4213 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
adamc@1132 4214 IFS="$lt_save_ifs"
adamc@1132 4215 test -z "$ac_dir" && ac_dir=.
adamc@1132 4216 tmp_nm="$ac_dir/$lt_tmp_nm"
adamc@1132 4217 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
adamc@1132 4218 # Check to see if the nm accepts a BSD-compat flag.
adamc@1132 4219 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
adamc@1132 4220 # nm: unknown option "B" ignored
adamc@1132 4221 # Tru64's nm complains that /dev/null is an invalid object file
adamc@1132 4222 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
adamc@1132 4223 */dev/null* | *'Invalid file or object type'*)
adamc@1132 4224 lt_cv_path_NM="$tmp_nm -B"
adamc@1132 4225 break
adamc@1132 4226 ;;
adamc@1132 4227 *)
adamc@1132 4228 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
adamc@1132 4229 */dev/null*)
adamc@1132 4230 lt_cv_path_NM="$tmp_nm -p"
adamc@1132 4231 break
adamc@1132 4232 ;;
adamc@1132 4233 *)
adamc@1132 4234 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
adamc@1132 4235 continue # so that we can try to find one that supports BSD flags
adamc@1132 4236 ;;
adamc@1132 4237 esac
adamc@1132 4238 ;;
adamc@1132 4239 esac
adamc@1132 4240 fi
adamc@1132 4241 done
adamc@1132 4242 IFS="$lt_save_ifs"
adamc@1132 4243 done
adamc@1132 4244 : ${lt_cv_path_NM=no}
adamc@1132 4245 fi
adamc@1132 4246 fi
adamc@1132 4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
adamc@1132 4248 $as_echo "$lt_cv_path_NM" >&6; }
adamc@1132 4249 if test "$lt_cv_path_NM" != "no"; then
adamc@1132 4250 NM="$lt_cv_path_NM"
adamc@1132 4251 else
adamc@1132 4252 # Didn't find any BSD compatible name lister, look for dumpbin.
adamc@1132 4253 if test -n "$ac_tool_prefix"; then
adamc@1132 4254 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
adamc@1132 4255 do
adamc@1132 4256 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
adamc@1132 4257 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
adamc@1132 4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 4259 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 4260 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
adamc@1132 4261 $as_echo_n "(cached) " >&6
adamc@1132 4262 else
adamc@1132 4263 if test -n "$DUMPBIN"; then
adamc@1132 4264 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
adamc@1132 4265 else
adamc@1132 4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 4267 for as_dir in $PATH
adamc@1132 4268 do
adamc@1132 4269 IFS=$as_save_IFS
adamc@1132 4270 test -z "$as_dir" && as_dir=.
adamc@1132 4271 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 4272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 4273 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
adamc@1132 4274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 4275 break 2
adamc@1132 4276 fi
adamc@1132 4277 done
adamc@1132 4278 done
adamc@1132 4279 IFS=$as_save_IFS
adamc@1132 4280
adamc@1132 4281 fi
adamc@1132 4282 fi
adamc@1132 4283 DUMPBIN=$ac_cv_prog_DUMPBIN
adamc@1132 4284 if test -n "$DUMPBIN"; then
adamc@1132 4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
adamc@1132 4286 $as_echo "$DUMPBIN" >&6; }
adamc@1132 4287 else
adamc@1132 4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 4289 $as_echo "no" >&6; }
adamc@1132 4290 fi
adamc@1132 4291
adamc@1132 4292
adamc@1132 4293 test -n "$DUMPBIN" && break
adamc@1132 4294 done
adamc@1132 4295 fi
adamc@1132 4296 if test -z "$DUMPBIN"; then
adamc@1132 4297 ac_ct_DUMPBIN=$DUMPBIN
adamc@1132 4298 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
adamc@1132 4299 do
adamc@1132 4300 # Extract the first word of "$ac_prog", so it can be a program name with args.
adamc@1132 4301 set dummy $ac_prog; ac_word=$2
adamc@1132 4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 4303 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 4304 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
adamc@1132 4305 $as_echo_n "(cached) " >&6
adamc@1132 4306 else
adamc@1132 4307 if test -n "$ac_ct_DUMPBIN"; then
adamc@1132 4308 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
adamc@1132 4309 else
adamc@1132 4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 4311 for as_dir in $PATH
adamc@1132 4312 do
adamc@1132 4313 IFS=$as_save_IFS
adamc@1132 4314 test -z "$as_dir" && as_dir=.
adamc@1132 4315 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 4316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 4317 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
adamc@1132 4318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 4319 break 2
adamc@1132 4320 fi
adamc@1132 4321 done
adamc@1132 4322 done
adamc@1132 4323 IFS=$as_save_IFS
adamc@1132 4324
adamc@1132 4325 fi
adamc@1132 4326 fi
adamc@1132 4327 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
adamc@1132 4328 if test -n "$ac_ct_DUMPBIN"; then
adamc@1132 4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
adamc@1132 4330 $as_echo "$ac_ct_DUMPBIN" >&6; }
adamc@1132 4331 else
adamc@1132 4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 4333 $as_echo "no" >&6; }
adamc@1132 4334 fi
adamc@1132 4335
adamc@1132 4336
adamc@1132 4337 test -n "$ac_ct_DUMPBIN" && break
adamc@1132 4338 done
adamc@1132 4339
adamc@1132 4340 if test "x$ac_ct_DUMPBIN" = x; then
adamc@1132 4341 DUMPBIN=":"
adamc@1132 4342 else
adamc@1132 4343 case $cross_compiling:$ac_tool_warned in
adamc@1132 4344 yes:)
adamc@1132 4345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 4346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 4347 ac_tool_warned=yes ;;
adamc@1132 4348 esac
adamc@1132 4349 DUMPBIN=$ac_ct_DUMPBIN
adamc@1132 4350 fi
adamc@1132 4351 fi
adamc@1132 4352
adamc@1132 4353
adamc@1132 4354 if test "$DUMPBIN" != ":"; then
adamc@1132 4355 NM="$DUMPBIN"
adamc@1132 4356 fi
adamc@1132 4357 fi
adamc@1132 4358 test -z "$NM" && NM=nm
adamc@1132 4359
adamc@1132 4360
adamc@1132 4361
adamc@1132 4362
adamc@1132 4363
adamc@1132 4364
adamc@1132 4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
adamc@1132 4366 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
adamc@1132 4367 if test "${lt_cv_nm_interface+set}" = set; then :
adamc@1132 4368 $as_echo_n "(cached) " >&6
adamc@1132 4369 else
adamc@1132 4370 lt_cv_nm_interface="BSD nm"
adamc@1132 4371 echo "int some_variable = 0;" > conftest.$ac_ext
adamc@1132 4372 (eval echo "\"\$as_me:4372: $ac_compile\"" >&5)
adamc@1132 4373 (eval "$ac_compile" 2>conftest.err)
adamc@1132 4374 cat conftest.err >&5
adamc@1132 4375 (eval echo "\"\$as_me:4375: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
adamc@1132 4376 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
adamc@1132 4377 cat conftest.err >&5
adamc@1132 4378 (eval echo "\"\$as_me:4378: output\"" >&5)
adamc@1132 4379 cat conftest.out >&5
adamc@1132 4380 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
adamc@1132 4381 lt_cv_nm_interface="MS dumpbin"
adamc@1132 4382 fi
adamc@1132 4383 rm -f conftest*
adamc@1132 4384 fi
adamc@1132 4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
adamc@1132 4386 $as_echo "$lt_cv_nm_interface" >&6; }
adamc@1132 4387
adamc@1132 4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
adamc@1132 4389 $as_echo_n "checking whether ln -s works... " >&6; }
adamc@1132 4390 LN_S=$as_ln_s
adamc@1132 4391 if test "$LN_S" = "ln -s"; then
adamc@1132 4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
adamc@1132 4393 $as_echo "yes" >&6; }
adamc@1132 4394 else
adamc@1132 4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
adamc@1132 4396 $as_echo "no, using $LN_S" >&6; }
adamc@1132 4397 fi
adamc@1132 4398
adamc@1132 4399 # find the maximum length of command line arguments
adamc@1132 4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
adamc@1132 4401 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
adamc@1132 4402 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
adamc@1132 4403 $as_echo_n "(cached) " >&6
adamc@1132 4404 else
adamc@1132 4405 i=0
adamc@1132 4406 teststring="ABCD"
adamc@1132 4407
adamc@1132 4408 case $build_os in
adamc@1132 4409 msdosdjgpp*)
adamc@1132 4410 # On DJGPP, this test can blow up pretty badly due to problems in libc
adamc@1132 4411 # (any single argument exceeding 2000 bytes causes a buffer overrun
adamc@1132 4412 # during glob expansion). Even if it were fixed, the result of this
adamc@1132 4413 # check would be larger than it should be.
adamc@1132 4414 lt_cv_sys_max_cmd_len=12288; # 12K is about right
adamc@1132 4415 ;;
adamc@1132 4416
adamc@1132 4417 gnu*)
adamc@1132 4418 # Under GNU Hurd, this test is not required because there is
adamc@1132 4419 # no limit to the length of command line arguments.
adamc@1132 4420 # Libtool will interpret -1 as no limit whatsoever
adamc@1132 4421 lt_cv_sys_max_cmd_len=-1;
adamc@1132 4422 ;;
adamc@1132 4423
adamc@1132 4424 cygwin* | mingw* | cegcc*)
adamc@1132 4425 # On Win9x/ME, this test blows up -- it succeeds, but takes
adamc@1132 4426 # about 5 minutes as the teststring grows exponentially.
adamc@1132 4427 # Worse, since 9x/ME are not pre-emptively multitasking,
adamc@1132 4428 # you end up with a "frozen" computer, even though with patience
adamc@1132 4429 # the test eventually succeeds (with a max line length of 256k).
adamc@1132 4430 # Instead, let's just punt: use the minimum linelength reported by
adamc@1132 4431 # all of the supported platforms: 8192 (on NT/2K/XP).
adamc@1132 4432 lt_cv_sys_max_cmd_len=8192;
adamc@1132 4433 ;;
adamc@1132 4434
adamc@1132 4435 amigaos*)
adamc@1132 4436 # On AmigaOS with pdksh, this test takes hours, literally.
adamc@1132 4437 # So we just punt and use a minimum line length of 8192.
adamc@1132 4438 lt_cv_sys_max_cmd_len=8192;
adamc@1132 4439 ;;
adamc@1132 4440
adamc@1132 4441 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
adamc@1132 4442 # This has been around since 386BSD, at least. Likely further.
adamc@1132 4443 if test -x /sbin/sysctl; then
adamc@1132 4444 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
adamc@1132 4445 elif test -x /usr/sbin/sysctl; then
adamc@1132 4446 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
adamc@1132 4447 else
adamc@1132 4448 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
adamc@1132 4449 fi
adamc@1132 4450 # And add a safety zone
adamc@1132 4451 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
adamc@1132 4452 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
adamc@1132 4453 ;;
adamc@1132 4454
adamc@1132 4455 interix*)
adamc@1132 4456 # We know the value 262144 and hardcode it with a safety zone (like BSD)
adamc@1132 4457 lt_cv_sys_max_cmd_len=196608
adamc@1132 4458 ;;
adamc@1132 4459
adamc@1132 4460 osf*)
adamc@1132 4461 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
adamc@1132 4462 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
adamc@1132 4463 # nice to cause kernel panics so lets avoid the loop below.
adamc@1132 4464 # First set a reasonable default.
adamc@1132 4465 lt_cv_sys_max_cmd_len=16384
adamc@1132 4466 #
adamc@1132 4467 if test -x /sbin/sysconfig; then
adamc@1132 4468 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
adamc@1132 4469 *1*) lt_cv_sys_max_cmd_len=-1 ;;
adamc@1132 4470 esac
adamc@1132 4471 fi
adamc@1132 4472 ;;
adamc@1132 4473 sco3.2v5*)
adamc@1132 4474 lt_cv_sys_max_cmd_len=102400
adamc@1132 4475 ;;
adamc@1132 4476 sysv5* | sco5v6* | sysv4.2uw2*)
adamc@1132 4477 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
adamc@1132 4478 if test -n "$kargmax"; then
adamc@1132 4479 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
adamc@1132 4480 else
adamc@1132 4481 lt_cv_sys_max_cmd_len=32768
adamc@1132 4482 fi
adamc@1132 4483 ;;
adamc@1132 4484 *)
adamc@1132 4485 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
adamc@1132 4486 if test -n "$lt_cv_sys_max_cmd_len"; then
adamc@1132 4487 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
adamc@1132 4488 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
adamc@1132 4489 else
adamc@1132 4490 # Make teststring a little bigger before we do anything with it.
adamc@1132 4491 # a 1K string should be a reasonable start.
adamc@1132 4492 for i in 1 2 3 4 5 6 7 8 ; do
adamc@1132 4493 teststring=$teststring$teststring
adamc@1132 4494 done
adamc@1132 4495 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
adamc@1132 4496 # If test is not a shell built-in, we'll probably end up computing a
adamc@1132 4497 # maximum length that is only half of the actual maximum length, but
adamc@1132 4498 # we can't tell.
adamc@1132 4499 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
adamc@1132 4500 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
adamc@1132 4501 test $i != 17 # 1/2 MB should be enough
adamc@1132 4502 do
adamc@1132 4503 i=`expr $i + 1`
adamc@1132 4504 teststring=$teststring$teststring
adamc@1132 4505 done
adamc@1132 4506 # Only check the string length outside the loop.
adamc@1132 4507 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
adamc@1132 4508 teststring=
adamc@1132 4509 # Add a significant safety factor because C++ compilers can tack on
adamc@1132 4510 # massive amounts of additional arguments before passing them to the
adamc@1132 4511 # linker. It appears as though 1/2 is a usable value.
adamc@1132 4512 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
adamc@1132 4513 fi
adamc@1132 4514 ;;
adamc@1132 4515 esac
adamc@1132 4516
adamc@1132 4517 fi
adamc@1132 4518
adamc@1132 4519 if test -n $lt_cv_sys_max_cmd_len ; then
adamc@1132 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
adamc@1132 4521 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
adamc@1132 4522 else
adamc@1132 4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
adamc@1132 4524 $as_echo "none" >&6; }
adamc@1132 4525 fi
adamc@1132 4526 max_cmd_len=$lt_cv_sys_max_cmd_len
adamc@1132 4527
adamc@1132 4528
adamc@1132 4529
adamc@1132 4530
adamc@1132 4531
adamc@1132 4532
adamc@1132 4533 : ${CP="cp -f"}
adamc@1132 4534 : ${MV="mv -f"}
adamc@1132 4535 : ${RM="rm -f"}
adamc@1132 4536
adamc@1132 4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
adamc@1132 4538 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
adamc@1132 4539 # Try some XSI features
adamc@1132 4540 xsi_shell=no
adamc@1132 4541 ( _lt_dummy="a/b/c"
adamc@1132 4542 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
adamc@1132 4543 = c,a/b,, \
adamc@1132 4544 && eval 'test $(( 1 + 1 )) -eq 2 \
adamc@1132 4545 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
adamc@1132 4546 && xsi_shell=yes
adamc@1132 4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
adamc@1132 4548 $as_echo "$xsi_shell" >&6; }
adamc@1132 4549
adamc@1132 4550
adamc@1132 4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
adamc@1132 4552 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
adamc@1132 4553 lt_shell_append=no
adamc@1132 4554 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
adamc@1132 4555 >/dev/null 2>&1 \
adamc@1132 4556 && lt_shell_append=yes
adamc@1132 4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
adamc@1132 4558 $as_echo "$lt_shell_append" >&6; }
adamc@1132 4559
adamc@1132 4560
adamc@1132 4561 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
adamc@1132 4562 lt_unset=unset
adamc@1132 4563 else
adamc@1132 4564 lt_unset=false
adamc@1132 4565 fi
adamc@1132 4566
adamc@1132 4567
adamc@1132 4568
adamc@1132 4569
adamc@1132 4570
adamc@1132 4571 # test EBCDIC or ASCII
adamc@1132 4572 case `echo X|tr X '\101'` in
adamc@1132 4573 A) # ASCII based system
adamc@1132 4574 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
adamc@1132 4575 lt_SP2NL='tr \040 \012'
adamc@1132 4576 lt_NL2SP='tr \015\012 \040\040'
adamc@1132 4577 ;;
adamc@1132 4578 *) # EBCDIC based system
adamc@1132 4579 lt_SP2NL='tr \100 \n'
adamc@1132 4580 lt_NL2SP='tr \r\n \100\100'
adamc@1132 4581 ;;
adamc@1132 4582 esac
adamc@1132 4583
adamc@1132 4584
adamc@1132 4585
adamc@1132 4586
adamc@1132 4587
adamc@1132 4588
adamc@1132 4589
adamc@1132 4590
adamc@1132 4591
adamc@1132 4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
adamc@1132 4593 $as_echo_n "checking for $LD option to reload object files... " >&6; }
adamc@1132 4594 if test "${lt_cv_ld_reload_flag+set}" = set; then :
adamc@1132 4595 $as_echo_n "(cached) " >&6
adamc@1132 4596 else
adamc@1132 4597 lt_cv_ld_reload_flag='-r'
adamc@1132 4598 fi
adamc@1132 4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
adamc@1132 4600 $as_echo "$lt_cv_ld_reload_flag" >&6; }
adamc@1132 4601 reload_flag=$lt_cv_ld_reload_flag
adamc@1132 4602 case $reload_flag in
adamc@1132 4603 "" | " "*) ;;
adamc@1132 4604 *) reload_flag=" $reload_flag" ;;
adamc@1132 4605 esac
adamc@1132 4606 reload_cmds='$LD$reload_flag -o $output$reload_objs'
adamc@1132 4607 case $host_os in
adamc@1132 4608 darwin*)
adamc@1132 4609 if test "$GCC" = yes; then
adamc@1132 4610 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
adamc@1132 4611 else
adamc@1132 4612 reload_cmds='$LD$reload_flag -o $output$reload_objs'
adamc@1132 4613 fi
adamc@1132 4614 ;;
adamc@1132 4615 esac
adamc@1132 4616
adamc@1132 4617
adamc@1132 4618
adamc@1132 4619
adamc@1132 4620
adamc@1132 4621
adamc@1132 4622
adamc@1132 4623
adamc@1132 4624
adamc@1132 4625 if test -n "$ac_tool_prefix"; then
adamc@1132 4626 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
adamc@1132 4627 set dummy ${ac_tool_prefix}objdump; ac_word=$2
adamc@1132 4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 4629 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 4630 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
adamc@1132 4631 $as_echo_n "(cached) " >&6
adamc@1132 4632 else
adamc@1132 4633 if test -n "$OBJDUMP"; then
adamc@1132 4634 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
adamc@1132 4635 else
adamc@1132 4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 4637 for as_dir in $PATH
adamc@1132 4638 do
adamc@1132 4639 IFS=$as_save_IFS
adamc@1132 4640 test -z "$as_dir" && as_dir=.
adamc@1132 4641 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 4642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 4643 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
adamc@1132 4644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 4645 break 2
adamc@1132 4646 fi
adamc@1132 4647 done
adamc@1132 4648 done
adamc@1132 4649 IFS=$as_save_IFS
adamc@1132 4650
adamc@1132 4651 fi
adamc@1132 4652 fi
adamc@1132 4653 OBJDUMP=$ac_cv_prog_OBJDUMP
adamc@1132 4654 if test -n "$OBJDUMP"; then
adamc@1132 4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
adamc@1132 4656 $as_echo "$OBJDUMP" >&6; }
adamc@1132 4657 else
adamc@1132 4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 4659 $as_echo "no" >&6; }
adamc@1132 4660 fi
adamc@1132 4661
adamc@1132 4662
adamc@1132 4663 fi
adamc@1132 4664 if test -z "$ac_cv_prog_OBJDUMP"; then
adamc@1132 4665 ac_ct_OBJDUMP=$OBJDUMP
adamc@1132 4666 # Extract the first word of "objdump", so it can be a program name with args.
adamc@1132 4667 set dummy objdump; ac_word=$2
adamc@1132 4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 4669 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 4670 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
adamc@1132 4671 $as_echo_n "(cached) " >&6
adamc@1132 4672 else
adamc@1132 4673 if test -n "$ac_ct_OBJDUMP"; then
adamc@1132 4674 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
adamc@1132 4675 else
adamc@1132 4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 4677 for as_dir in $PATH
adamc@1132 4678 do
adamc@1132 4679 IFS=$as_save_IFS
adamc@1132 4680 test -z "$as_dir" && as_dir=.
adamc@1132 4681 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 4682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 4683 ac_cv_prog_ac_ct_OBJDUMP="objdump"
adamc@1132 4684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 4685 break 2
adamc@1132 4686 fi
adamc@1132 4687 done
adamc@1132 4688 done
adamc@1132 4689 IFS=$as_save_IFS
adamc@1132 4690
adamc@1132 4691 fi
adamc@1132 4692 fi
adamc@1132 4693 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
adamc@1132 4694 if test -n "$ac_ct_OBJDUMP"; then
adamc@1132 4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
adamc@1132 4696 $as_echo "$ac_ct_OBJDUMP" >&6; }
adamc@1132 4697 else
adamc@1132 4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 4699 $as_echo "no" >&6; }
adamc@1132 4700 fi
adamc@1132 4701
adamc@1132 4702 if test "x$ac_ct_OBJDUMP" = x; then
adamc@1132 4703 OBJDUMP="false"
adamc@1132 4704 else
adamc@1132 4705 case $cross_compiling:$ac_tool_warned in
adamc@1132 4706 yes:)
adamc@1132 4707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 4708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 4709 ac_tool_warned=yes ;;
adamc@1132 4710 esac
adamc@1132 4711 OBJDUMP=$ac_ct_OBJDUMP
adamc@1132 4712 fi
adamc@1132 4713 else
adamc@1132 4714 OBJDUMP="$ac_cv_prog_OBJDUMP"
adamc@1132 4715 fi
adamc@1132 4716
adamc@1132 4717 test -z "$OBJDUMP" && OBJDUMP=objdump
adamc@1132 4718
adamc@1132 4719
adamc@1132 4720
adamc@1132 4721
adamc@1132 4722
adamc@1132 4723
adamc@1132 4724
adamc@1132 4725
adamc@1132 4726
adamc@1132 4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
adamc@1132 4728 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
adamc@1132 4729 if test "${lt_cv_deplibs_check_method+set}" = set; then :
adamc@1132 4730 $as_echo_n "(cached) " >&6
adamc@1132 4731 else
adamc@1132 4732 lt_cv_file_magic_cmd='$MAGIC_CMD'
adamc@1132 4733 lt_cv_file_magic_test_file=
adamc@1132 4734 lt_cv_deplibs_check_method='unknown'
adamc@1132 4735 # Need to set the preceding variable on all platforms that support
adamc@1132 4736 # interlibrary dependencies.
adamc@1132 4737 # 'none' -- dependencies not supported.
adamc@1132 4738 # `unknown' -- same as none, but documents that we really don't know.
adamc@1132 4739 # 'pass_all' -- all dependencies passed with no checks.
adamc@1132 4740 # 'test_compile' -- check by making test program.
adamc@1132 4741 # 'file_magic [[regex]]' -- check by looking for files in library path
adamc@1132 4742 # which responds to the $file_magic_cmd with a given extended regex.
adamc@1132 4743 # If you have `file' or equivalent on your system and you're not sure
adamc@1132 4744 # whether `pass_all' will *always* work, you probably want this one.
adamc@1132 4745
adamc@1132 4746 case $host_os in
adamc@1132 4747 aix[4-9]*)
adamc@1132 4748 lt_cv_deplibs_check_method=pass_all
adamc@1132 4749 ;;
adamc@1132 4750
adamc@1132 4751 beos*)
adamc@1132 4752 lt_cv_deplibs_check_method=pass_all
adamc@1132 4753 ;;
adamc@1132 4754
adamc@1132 4755 bsdi[45]*)
adamc@1132 4756 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
adamc@1132 4757 lt_cv_file_magic_cmd='/usr/bin/file -L'
adamc@1132 4758 lt_cv_file_magic_test_file=/shlib/libc.so
adamc@1132 4759 ;;
adamc@1132 4760
adamc@1132 4761 cygwin*)
adamc@1132 4762 # func_win32_libid is a shell function defined in ltmain.sh
adamc@1132 4763 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
adamc@1132 4764 lt_cv_file_magic_cmd='func_win32_libid'
adamc@1132 4765 ;;
adamc@1132 4766
adamc@1132 4767 mingw* | pw32*)
adamc@1132 4768 # Base MSYS/MinGW do not provide the 'file' command needed by
adamc@1132 4769 # func_win32_libid shell function, so use a weaker test based on 'objdump',
adamc@1132 4770 # unless we find 'file', for example because we are cross-compiling.
adamc@1132 4771 if ( file / ) >/dev/null 2>&1; then
adamc@1132 4772 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
adamc@1132 4773 lt_cv_file_magic_cmd='func_win32_libid'
adamc@1132 4774 else
adamc@1132 4775 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
adamc@1132 4776 lt_cv_file_magic_cmd='$OBJDUMP -f'
adamc@1132 4777 fi
adamc@1132 4778 ;;
adamc@1132 4779
adamc@1132 4780 cegcc)
adamc@1132 4781 # use the weaker test based on 'objdump'. See mingw*.
adamc@1132 4782 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
adamc@1132 4783 lt_cv_file_magic_cmd='$OBJDUMP -f'
adamc@1132 4784 ;;
adamc@1132 4785
adamc@1132 4786 darwin* | rhapsody*)
adamc@1132 4787 lt_cv_deplibs_check_method=pass_all
adamc@1132 4788 ;;
adamc@1132 4789
adamc@1132 4790 freebsd* | dragonfly*)
adamc@1132 4791 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
adamc@1132 4792 case $host_cpu in
adamc@1132 4793 i*86 )
adamc@1132 4794 # Not sure whether the presence of OpenBSD here was a mistake.
adamc@1132 4795 # Let's accept both of them until this is cleared up.
adamc@1132 4796 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
adamc@1132 4797 lt_cv_file_magic_cmd=/usr/bin/file
adamc@1132 4798 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
adamc@1132 4799 ;;
adamc@1132 4800 esac
adamc@1132 4801 else
adamc@1132 4802 lt_cv_deplibs_check_method=pass_all
adamc@1132 4803 fi
adamc@1132 4804 ;;
adamc@1132 4805
adamc@1132 4806 gnu*)
adamc@1132 4807 lt_cv_deplibs_check_method=pass_all
adamc@1132 4808 ;;
adamc@1132 4809
adamc@1132 4810 hpux10.20* | hpux11*)
adamc@1132 4811 lt_cv_file_magic_cmd=/usr/bin/file
adamc@1132 4812 case $host_cpu in
adamc@1132 4813 ia64*)
adamc@1132 4814 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
adamc@1132 4815 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
adamc@1132 4816 ;;
adamc@1132 4817 hppa*64*)
adamc@1132 4818 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
adamc@1132 4819 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
adamc@1132 4820 ;;
adamc@1132 4821 *)
adamc@1132 4822 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
adamc@1132 4823 lt_cv_file_magic_test_file=/usr/lib/libc.sl
adamc@1132 4824 ;;
adamc@1132 4825 esac
adamc@1132 4826 ;;
adamc@1132 4827
adamc@1132 4828 interix[3-9]*)
adamc@1132 4829 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
adamc@1132 4830 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
adamc@1132 4831 ;;
adamc@1132 4832
adamc@1132 4833 irix5* | irix6* | nonstopux*)
adamc@1132 4834 case $LD in
adamc@1132 4835 *-32|*"-32 ") libmagic=32-bit;;
adamc@1132 4836 *-n32|*"-n32 ") libmagic=N32;;
adamc@1132 4837 *-64|*"-64 ") libmagic=64-bit;;
adamc@1132 4838 *) libmagic=never-match;;
adamc@1132 4839 esac
adamc@1132 4840 lt_cv_deplibs_check_method=pass_all
adamc@1132 4841 ;;
adamc@1132 4842
adamc@1132 4843 # This must be Linux ELF.
adamc@1132 4844 linux* | k*bsd*-gnu | kopensolaris*-gnu)
adamc@1132 4845 lt_cv_deplibs_check_method=pass_all
adamc@1132 4846 ;;
adamc@1132 4847
adamc@1132 4848 netbsd* | netbsdelf*-gnu)
adamc@1132 4849 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
adamc@1132 4850 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
adamc@1132 4851 else
adamc@1132 4852 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
adamc@1132 4853 fi
adamc@1132 4854 ;;
adamc@1132 4855
adamc@1132 4856 newos6*)
adamc@1132 4857 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
adamc@1132 4858 lt_cv_file_magic_cmd=/usr/bin/file
adamc@1132 4859 lt_cv_file_magic_test_file=/usr/lib/libnls.so
adamc@1132 4860 ;;
adamc@1132 4861
adamc@1132 4862 *nto* | *qnx*)
adamc@1132 4863 lt_cv_deplibs_check_method=pass_all
adamc@1132 4864 ;;
adamc@1132 4865
adamc@1132 4866 openbsd*)
adamc@1132 4867 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
adamc@1132 4868 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
adamc@1132 4869 else
adamc@1132 4870 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
adamc@1132 4871 fi
adamc@1132 4872 ;;
adamc@1132 4873
adamc@1132 4874 osf3* | osf4* | osf5*)
adamc@1132 4875 lt_cv_deplibs_check_method=pass_all
adamc@1132 4876 ;;
adamc@1132 4877
adamc@1132 4878 rdos*)
adamc@1132 4879 lt_cv_deplibs_check_method=pass_all
adamc@1132 4880 ;;
adamc@1132 4881
adamc@1132 4882 solaris*)
adamc@1132 4883 lt_cv_deplibs_check_method=pass_all
adamc@1132 4884 ;;
adamc@1132 4885
adamc@1132 4886 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
adamc@1132 4887 lt_cv_deplibs_check_method=pass_all
adamc@1132 4888 ;;
adamc@1132 4889
adamc@1132 4890 sysv4 | sysv4.3*)
adamc@1132 4891 case $host_vendor in
adamc@1132 4892 motorola)
adamc@1132 4893 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]'
adamc@1132 4894 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
adamc@1132 4895 ;;
adamc@1132 4896 ncr)
adamc@1132 4897 lt_cv_deplibs_check_method=pass_all
adamc@1132 4898 ;;
adamc@1132 4899 sequent)
adamc@1132 4900 lt_cv_file_magic_cmd='/bin/file'
adamc@1132 4901 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
adamc@1132 4902 ;;
adamc@1132 4903 sni)
adamc@1132 4904 lt_cv_file_magic_cmd='/bin/file'
adamc@1132 4905 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
adamc@1132 4906 lt_cv_file_magic_test_file=/lib/libc.so
adamc@1132 4907 ;;
adamc@1132 4908 siemens)
adamc@1132 4909 lt_cv_deplibs_check_method=pass_all
adamc@1132 4910 ;;
adamc@1132 4911 pc)
adamc@1132 4912 lt_cv_deplibs_check_method=pass_all
adamc@1132 4913 ;;
adamc@1132 4914 esac
adamc@1132 4915 ;;
adamc@1132 4916
adamc@1132 4917 tpf*)
adamc@1132 4918 lt_cv_deplibs_check_method=pass_all
adamc@1132 4919 ;;
adamc@1132 4920 esac
adamc@1132 4921
adamc@1132 4922 fi
adamc@1132 4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
adamc@1132 4924 $as_echo "$lt_cv_deplibs_check_method" >&6; }
adamc@1132 4925 file_magic_cmd=$lt_cv_file_magic_cmd
adamc@1132 4926 deplibs_check_method=$lt_cv_deplibs_check_method
adamc@1132 4927 test -z "$deplibs_check_method" && deplibs_check_method=unknown
adamc@1132 4928
adamc@1132 4929
adamc@1132 4930
adamc@1132 4931
adamc@1132 4932
adamc@1132 4933
adamc@1132 4934
adamc@1132 4935
adamc@1132 4936
adamc@1132 4937
adamc@1132 4938
adamc@1132 4939
adamc@1132 4940 if test -n "$ac_tool_prefix"; then
adamc@1132 4941 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
adamc@1132 4942 set dummy ${ac_tool_prefix}ar; ac_word=$2
adamc@1132 4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 4944 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 4945 if test "${ac_cv_prog_AR+set}" = set; then :
adamc@1132 4946 $as_echo_n "(cached) " >&6
adamc@1132 4947 else
adamc@1132 4948 if test -n "$AR"; then
adamc@1132 4949 ac_cv_prog_AR="$AR" # Let the user override the test.
adamc@1132 4950 else
adamc@1132 4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 4952 for as_dir in $PATH
adamc@1132 4953 do
adamc@1132 4954 IFS=$as_save_IFS
adamc@1132 4955 test -z "$as_dir" && as_dir=.
adamc@1132 4956 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 4958 ac_cv_prog_AR="${ac_tool_prefix}ar"
adamc@1132 4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 4960 break 2
adamc@1132 4961 fi
adamc@1132 4962 done
adamc@1132 4963 done
adamc@1132 4964 IFS=$as_save_IFS
adamc@1132 4965
adamc@1132 4966 fi
adamc@1132 4967 fi
adamc@1132 4968 AR=$ac_cv_prog_AR
adamc@1132 4969 if test -n "$AR"; then
adamc@1132 4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
adamc@1132 4971 $as_echo "$AR" >&6; }
adamc@1132 4972 else
adamc@1132 4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 4974 $as_echo "no" >&6; }
adamc@1132 4975 fi
adamc@1132 4976
adamc@1132 4977
adamc@1132 4978 fi
adamc@1132 4979 if test -z "$ac_cv_prog_AR"; then
adamc@1132 4980 ac_ct_AR=$AR
adamc@1132 4981 # Extract the first word of "ar", so it can be a program name with args.
adamc@1132 4982 set dummy ar; ac_word=$2
adamc@1132 4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 4984 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 4985 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
adamc@1132 4986 $as_echo_n "(cached) " >&6
adamc@1132 4987 else
adamc@1132 4988 if test -n "$ac_ct_AR"; then
adamc@1132 4989 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
adamc@1132 4990 else
adamc@1132 4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 4992 for as_dir in $PATH
adamc@1132 4993 do
adamc@1132 4994 IFS=$as_save_IFS
adamc@1132 4995 test -z "$as_dir" && as_dir=.
adamc@1132 4996 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 4997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 4998 ac_cv_prog_ac_ct_AR="ar"
adamc@1132 4999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 5000 break 2
adamc@1132 5001 fi
adamc@1132 5002 done
adamc@1132 5003 done
adamc@1132 5004 IFS=$as_save_IFS
adamc@1132 5005
adamc@1132 5006 fi
adamc@1132 5007 fi
adamc@1132 5008 ac_ct_AR=$ac_cv_prog_ac_ct_AR
adamc@1132 5009 if test -n "$ac_ct_AR"; then
adamc@1132 5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
adamc@1132 5011 $as_echo "$ac_ct_AR" >&6; }
adamc@1132 5012 else
adamc@1132 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 5014 $as_echo "no" >&6; }
adamc@1132 5015 fi
adamc@1132 5016
adamc@1132 5017 if test "x$ac_ct_AR" = x; then
adamc@1132 5018 AR="false"
adamc@1132 5019 else
adamc@1132 5020 case $cross_compiling:$ac_tool_warned in
adamc@1132 5021 yes:)
adamc@1132 5022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 5023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 5024 ac_tool_warned=yes ;;
adamc@1132 5025 esac
adamc@1132 5026 AR=$ac_ct_AR
adamc@1132 5027 fi
adamc@1132 5028 else
adamc@1132 5029 AR="$ac_cv_prog_AR"
adamc@1132 5030 fi
adamc@1132 5031
adamc@1132 5032 test -z "$AR" && AR=ar
adamc@1132 5033 test -z "$AR_FLAGS" && AR_FLAGS=cru
adamc@1132 5034
adamc@1132 5035
adamc@1132 5036
adamc@1132 5037
adamc@1132 5038
adamc@1132 5039
adamc@1132 5040
adamc@1132 5041
adamc@1132 5042
adamc@1132 5043
adamc@1132 5044
adamc@1132 5045 if test -n "$ac_tool_prefix"; then
adamc@1132 5046 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
adamc@1132 5047 set dummy ${ac_tool_prefix}strip; ac_word=$2
adamc@1132 5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 5049 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 5050 if test "${ac_cv_prog_STRIP+set}" = set; then :
adamc@1132 5051 $as_echo_n "(cached) " >&6
adamc@1132 5052 else
adamc@1132 5053 if test -n "$STRIP"; then
adamc@1132 5054 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
adamc@1132 5055 else
adamc@1132 5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 5057 for as_dir in $PATH
adamc@1132 5058 do
adamc@1132 5059 IFS=$as_save_IFS
adamc@1132 5060 test -z "$as_dir" && as_dir=.
adamc@1132 5061 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 5063 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
adamc@1132 5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 5065 break 2
adamc@1132 5066 fi
adamc@1132 5067 done
adamc@1132 5068 done
adamc@1132 5069 IFS=$as_save_IFS
adamc@1132 5070
adamc@1132 5071 fi
adamc@1132 5072 fi
adamc@1132 5073 STRIP=$ac_cv_prog_STRIP
adamc@1132 5074 if test -n "$STRIP"; then
adamc@1132 5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
adamc@1132 5076 $as_echo "$STRIP" >&6; }
adamc@1132 5077 else
adamc@1132 5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 5079 $as_echo "no" >&6; }
adamc@1132 5080 fi
adamc@1132 5081
adamc@1132 5082
adamc@1132 5083 fi
adamc@1132 5084 if test -z "$ac_cv_prog_STRIP"; then
adamc@1132 5085 ac_ct_STRIP=$STRIP
adamc@1132 5086 # Extract the first word of "strip", so it can be a program name with args.
adamc@1132 5087 set dummy strip; ac_word=$2
adamc@1132 5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 5089 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 5090 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
adamc@1132 5091 $as_echo_n "(cached) " >&6
adamc@1132 5092 else
adamc@1132 5093 if test -n "$ac_ct_STRIP"; then
adamc@1132 5094 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
adamc@1132 5095 else
adamc@1132 5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 5097 for as_dir in $PATH
adamc@1132 5098 do
adamc@1132 5099 IFS=$as_save_IFS
adamc@1132 5100 test -z "$as_dir" && as_dir=.
adamc@1132 5101 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 5102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 5103 ac_cv_prog_ac_ct_STRIP="strip"
adamc@1132 5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 5105 break 2
adamc@1132 5106 fi
adamc@1132 5107 done
adamc@1132 5108 done
adamc@1132 5109 IFS=$as_save_IFS
adamc@1132 5110
adamc@1132 5111 fi
adamc@1132 5112 fi
adamc@1132 5113 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
adamc@1132 5114 if test -n "$ac_ct_STRIP"; then
adamc@1132 5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
adamc@1132 5116 $as_echo "$ac_ct_STRIP" >&6; }
adamc@1132 5117 else
adamc@1132 5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 5119 $as_echo "no" >&6; }
adamc@1132 5120 fi
adamc@1132 5121
adamc@1132 5122 if test "x$ac_ct_STRIP" = x; then
adamc@1132 5123 STRIP=":"
adamc@1132 5124 else
adamc@1132 5125 case $cross_compiling:$ac_tool_warned in
adamc@1132 5126 yes:)
adamc@1132 5127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 5128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 5129 ac_tool_warned=yes ;;
adamc@1132 5130 esac
adamc@1132 5131 STRIP=$ac_ct_STRIP
adamc@1132 5132 fi
adamc@1132 5133 else
adamc@1132 5134 STRIP="$ac_cv_prog_STRIP"
adamc@1132 5135 fi
adamc@1132 5136
adamc@1132 5137 test -z "$STRIP" && STRIP=:
adamc@1132 5138
adamc@1132 5139
adamc@1132 5140
adamc@1132 5141
adamc@1132 5142
adamc@1132 5143
adamc@1132 5144 if test -n "$ac_tool_prefix"; then
adamc@1132 5145 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
adamc@1132 5146 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
adamc@1132 5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 5148 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 5149 if test "${ac_cv_prog_RANLIB+set}" = set; then :
adamc@1132 5150 $as_echo_n "(cached) " >&6
adamc@1132 5151 else
adamc@1132 5152 if test -n "$RANLIB"; then
adamc@1132 5153 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
adamc@1132 5154 else
adamc@1132 5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 5156 for as_dir in $PATH
adamc@1132 5157 do
adamc@1132 5158 IFS=$as_save_IFS
adamc@1132 5159 test -z "$as_dir" && as_dir=.
adamc@1132 5160 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 5161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 5162 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
adamc@1132 5163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 5164 break 2
adamc@1132 5165 fi
adamc@1132 5166 done
adamc@1132 5167 done
adamc@1132 5168 IFS=$as_save_IFS
adamc@1132 5169
adamc@1132 5170 fi
adamc@1132 5171 fi
adamc@1132 5172 RANLIB=$ac_cv_prog_RANLIB
adamc@1132 5173 if test -n "$RANLIB"; then
adamc@1132 5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
adamc@1132 5175 $as_echo "$RANLIB" >&6; }
adamc@1132 5176 else
adamc@1132 5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 5178 $as_echo "no" >&6; }
adamc@1132 5179 fi
adamc@1132 5180
adamc@1132 5181
adamc@1132 5182 fi
adamc@1132 5183 if test -z "$ac_cv_prog_RANLIB"; then
adamc@1132 5184 ac_ct_RANLIB=$RANLIB
adamc@1132 5185 # Extract the first word of "ranlib", so it can be a program name with args.
adamc@1132 5186 set dummy ranlib; ac_word=$2
adamc@1132 5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 5188 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 5189 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
adamc@1132 5190 $as_echo_n "(cached) " >&6
adamc@1132 5191 else
adamc@1132 5192 if test -n "$ac_ct_RANLIB"; then
adamc@1132 5193 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
adamc@1132 5194 else
adamc@1132 5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 5196 for as_dir in $PATH
adamc@1132 5197 do
adamc@1132 5198 IFS=$as_save_IFS
adamc@1132 5199 test -z "$as_dir" && as_dir=.
adamc@1132 5200 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 5201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 5202 ac_cv_prog_ac_ct_RANLIB="ranlib"
adamc@1132 5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 5204 break 2
adamc@1132 5205 fi
adamc@1132 5206 done
adamc@1132 5207 done
adamc@1132 5208 IFS=$as_save_IFS
adamc@1132 5209
adamc@1132 5210 fi
adamc@1132 5211 fi
adamc@1132 5212 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
adamc@1132 5213 if test -n "$ac_ct_RANLIB"; then
adamc@1132 5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
adamc@1132 5215 $as_echo "$ac_ct_RANLIB" >&6; }
adamc@1132 5216 else
adamc@1132 5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 5218 $as_echo "no" >&6; }
adamc@1132 5219 fi
adamc@1132 5220
adamc@1132 5221 if test "x$ac_ct_RANLIB" = x; then
adamc@1132 5222 RANLIB=":"
adamc@1132 5223 else
adamc@1132 5224 case $cross_compiling:$ac_tool_warned in
adamc@1132 5225 yes:)
adamc@1132 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 5227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 5228 ac_tool_warned=yes ;;
adamc@1132 5229 esac
adamc@1132 5230 RANLIB=$ac_ct_RANLIB
adamc@1132 5231 fi
adamc@1132 5232 else
adamc@1132 5233 RANLIB="$ac_cv_prog_RANLIB"
adamc@1132 5234 fi
adamc@1132 5235
adamc@1132 5236 test -z "$RANLIB" && RANLIB=:
adamc@1132 5237
adamc@1132 5238
adamc@1132 5239
adamc@1132 5240
adamc@1132 5241
adamc@1132 5242
adamc@1132 5243 # Determine commands to create old-style static archives.
adamc@1132 5244 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
adamc@1132 5245 old_postinstall_cmds='chmod 644 $oldlib'
adamc@1132 5246 old_postuninstall_cmds=
adamc@1132 5247
adamc@1132 5248 if test -n "$RANLIB"; then
adamc@1132 5249 case $host_os in
adamc@1132 5250 openbsd*)
adamc@1132 5251 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
adamc@1132 5252 ;;
adamc@1132 5253 *)
adamc@1132 5254 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
adamc@1132 5255 ;;
adamc@1132 5256 esac
adamc@1132 5257 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
adamc@1132 5258 fi
adamc@1132 5259
adamc@1132 5260
adamc@1132 5261
adamc@1132 5262
adamc@1132 5263
adamc@1132 5264
adamc@1132 5265
adamc@1132 5266
adamc@1132 5267
adamc@1132 5268
adamc@1132 5269
adamc@1132 5270
adamc@1132 5271
adamc@1132 5272
adamc@1132 5273
adamc@1132 5274
adamc@1132 5275
adamc@1132 5276
adamc@1132 5277
adamc@1132 5278
adamc@1132 5279
adamc@1132 5280
adamc@1132 5281
adamc@1132 5282
adamc@1132 5283
adamc@1132 5284
adamc@1132 5285
adamc@1132 5286
adamc@1132 5287
adamc@1132 5288
adamc@1132 5289
adamc@1132 5290
adamc@1132 5291
adamc@1132 5292
adamc@1132 5293 # If no C compiler was specified, use CC.
adamc@1132 5294 LTCC=${LTCC-"$CC"}
adamc@1132 5295
adamc@1132 5296 # If no C compiler flags were specified, use CFLAGS.
adamc@1132 5297 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
adamc@1132 5298
adamc@1132 5299 # Allow CC to be a program name with arguments.
adamc@1132 5300 compiler=$CC
adamc@1132 5301
adamc@1132 5302
adamc@1132 5303 # Check for command to grab the raw symbol name followed by C symbol from nm.
adamc@1132 5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
adamc@1132 5305 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
adamc@1132 5306 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
adamc@1132 5307 $as_echo_n "(cached) " >&6
adamc@1132 5308 else
adamc@1132 5309
adamc@1132 5310 # These are sane defaults that work on at least a few old systems.
adamc@1132 5311 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
adamc@1132 5312
adamc@1132 5313 # Character class describing NM global symbol codes.
adamc@1132 5314 symcode='[BCDEGRST]'
adamc@1132 5315
adamc@1132 5316 # Regexp to match symbols that can be accessed directly from C.
adamc@1132 5317 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
adamc@1132 5318
adamc@1132 5319 # Define system-specific variables.
adamc@1132 5320 case $host_os in
adamc@1132 5321 aix*)
adamc@1132 5322 symcode='[BCDT]'
adamc@1132 5323 ;;
adamc@1132 5324 cygwin* | mingw* | pw32* | cegcc*)
adamc@1132 5325 symcode='[ABCDGISTW]'
adamc@1132 5326 ;;
adamc@1132 5327 hpux*)
adamc@1132 5328 if test "$host_cpu" = ia64; then
adamc@1132 5329 symcode='[ABCDEGRST]'
adamc@1132 5330 fi
adamc@1132 5331 ;;
adamc@1132 5332 irix* | nonstopux*)
adamc@1132 5333 symcode='[BCDEGRST]'
adamc@1132 5334 ;;
adamc@1132 5335 osf*)
adamc@1132 5336 symcode='[BCDEGQRST]'
adamc@1132 5337 ;;
adamc@1132 5338 solaris*)
adamc@1132 5339 symcode='[BDRT]'
adamc@1132 5340 ;;
adamc@1132 5341 sco3.2v5*)
adamc@1132 5342 symcode='[DT]'
adamc@1132 5343 ;;
adamc@1132 5344 sysv4.2uw2*)
adamc@1132 5345 symcode='[DT]'
adamc@1132 5346 ;;
adamc@1132 5347 sysv5* | sco5v6* | unixware* | OpenUNIX*)
adamc@1132 5348 symcode='[ABDT]'
adamc@1132 5349 ;;
adamc@1132 5350 sysv4)
adamc@1132 5351 symcode='[DFNSTU]'
adamc@1132 5352 ;;
adamc@1132 5353 esac
adamc@1132 5354
adamc@1132 5355 # If we're using GNU nm, then use its standard symbol codes.
adamc@1132 5356 case `$NM -V 2>&1` in
adamc@1132 5357 *GNU* | *'with BFD'*)
adamc@1132 5358 symcode='[ABCDGIRSTW]' ;;
adamc@1132 5359 esac
adamc@1132 5360
adamc@1132 5361 # Transform an extracted symbol line into a proper C declaration.
adamc@1132 5362 # Some systems (esp. on ia64) link data and code symbols differently,
adamc@1132 5363 # so use this general approach.
adamc@1132 5364 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
adamc@1132 5365
adamc@1132 5366 # Transform an extracted symbol line into symbol name and symbol address
adamc@1132 5367 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
adamc@1132 5368 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'"
adamc@1132 5369
adamc@1132 5370 # Handle CRLF in mingw tool chain
adamc@1132 5371 opt_cr=
adamc@1132 5372 case $build_os in
adamc@1132 5373 mingw*)
adamc@1132 5374 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
adamc@1132 5375 ;;
adamc@1132 5376 esac
adamc@1132 5377
adamc@1132 5378 # Try without a prefix underscore, then with it.
adamc@1132 5379 for ac_symprfx in "" "_"; do
adamc@1132 5380
adamc@1132 5381 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
adamc@1132 5382 symxfrm="\\1 $ac_symprfx\\2 \\2"
adamc@1132 5383
adamc@1132 5384 # Write the raw and C identifiers.
adamc@1132 5385 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
adamc@1132 5386 # Fake it for dumpbin and say T for any non-static function
adamc@1132 5387 # and D for any global variable.
adamc@1132 5388 # Also find C++ and __fastcall symbols from MSVC++,
adamc@1132 5389 # which start with @ or ?.
adamc@1132 5390 lt_cv_sys_global_symbol_pipe="$AWK '"\
adamc@1132 5391 " {last_section=section; section=\$ 3};"\
adamc@1132 5392 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
adamc@1132 5393 " \$ 0!~/External *\|/{next};"\
adamc@1132 5394 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
adamc@1132 5395 " {if(hide[section]) next};"\
adamc@1132 5396 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
adamc@1132 5397 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
adamc@1132 5398 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
adamc@1132 5399 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
adamc@1132 5400 " ' prfx=^$ac_symprfx"
adamc@1132 5401 else
adamc@1132 5402 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
adamc@1132 5403 fi
adamc@1132 5404
adamc@1132 5405 # Check to see that the pipe works correctly.
adamc@1132 5406 pipe_works=no
adamc@1132 5407
adamc@1132 5408 rm -f conftest*
adamc@1132 5409 cat > conftest.$ac_ext <<_LT_EOF
adamc@1132 5410 #ifdef __cplusplus
adamc@1132 5411 extern "C" {
adamc@1132 5412 #endif
adamc@1132 5413 char nm_test_var;
adamc@1132 5414 void nm_test_func(void);
adamc@1132 5415 void nm_test_func(void){}
adamc@1132 5416 #ifdef __cplusplus
adamc@1132 5417 }
adamc@1132 5418 #endif
adamc@1132 5419 int main(){nm_test_var='a';nm_test_func();return(0);}
adamc@1132 5420 _LT_EOF
adamc@1132 5421
adamc@1132 5422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
adamc@1132 5423 (eval $ac_compile) 2>&5
adamc@1132 5424 ac_status=$?
adamc@1132 5425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 5426 test $ac_status = 0; }; then
adamc@1132 5427 # Now try to grab the symbols.
adamc@1132 5428 nlist=conftest.nm
adamc@1132 5429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
adamc@1132 5430 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
adamc@1132 5431 ac_status=$?
adamc@1132 5432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 5433 test $ac_status = 0; } && test -s "$nlist"; then
adamc@1132 5434 # Try sorting and uniquifying the output.
adamc@1132 5435 if sort "$nlist" | uniq > "$nlist"T; then
adamc@1132 5436 mv -f "$nlist"T "$nlist"
adamc@1132 5437 else
adamc@1132 5438 rm -f "$nlist"T
adamc@1132 5439 fi
adamc@1132 5440
adamc@1132 5441 # Make sure that we snagged all the symbols we need.
adamc@1132 5442 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
adamc@1132 5443 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
adamc@1132 5444 cat <<_LT_EOF > conftest.$ac_ext
adamc@1132 5445 #ifdef __cplusplus
adamc@1132 5446 extern "C" {
adamc@1132 5447 #endif
adamc@1132 5448
adamc@1132 5449 _LT_EOF
adamc@1132 5450 # Now generate the symbol file.
adamc@1132 5451 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
adamc@1132 5452
adamc@1132 5453 cat <<_LT_EOF >> conftest.$ac_ext
adamc@1132 5454
adamc@1132 5455 /* The mapping between symbol names and symbols. */
adamc@1132 5456 const struct {
adamc@1132 5457 const char *name;
adamc@1132 5458 void *address;
adamc@1132 5459 }
adamc@1132 5460 lt__PROGRAM__LTX_preloaded_symbols[] =
adamc@1132 5461 {
adamc@1132 5462 { "@PROGRAM@", (void *) 0 },
adamc@1132 5463 _LT_EOF
adamc@1132 5464 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
adamc@1132 5465 cat <<\_LT_EOF >> conftest.$ac_ext
adamc@1132 5466 {0, (void *) 0}
adamc@1132 5467 };
adamc@1132 5468
adamc@1132 5469 /* This works around a problem in FreeBSD linker */
adamc@1132 5470 #ifdef FREEBSD_WORKAROUND
adamc@1132 5471 static const void *lt_preloaded_setup() {
adamc@1132 5472 return lt__PROGRAM__LTX_preloaded_symbols;
adamc@1132 5473 }
adamc@1132 5474 #endif
adamc@1132 5475
adamc@1132 5476 #ifdef __cplusplus
adamc@1132 5477 }
adamc@1132 5478 #endif
adamc@1132 5479 _LT_EOF
adamc@1132 5480 # Now try linking the two files.
adamc@1132 5481 mv conftest.$ac_objext conftstm.$ac_objext
adamc@1132 5482 lt_save_LIBS="$LIBS"
adamc@1132 5483 lt_save_CFLAGS="$CFLAGS"
adamc@1132 5484 LIBS="conftstm.$ac_objext"
adamc@1132 5485 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
adamc@1132 5486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
adamc@1132 5487 (eval $ac_link) 2>&5
adamc@1132 5488 ac_status=$?
adamc@1132 5489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 5490 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
adamc@1132 5491 pipe_works=yes
adamc@1132 5492 fi
adamc@1132 5493 LIBS="$lt_save_LIBS"
adamc@1132 5494 CFLAGS="$lt_save_CFLAGS"
adamc@1132 5495 else
adamc@1132 5496 echo "cannot find nm_test_func in $nlist" >&5
adamc@1132 5497 fi
adamc@1132 5498 else
adamc@1132 5499 echo "cannot find nm_test_var in $nlist" >&5
adamc@1132 5500 fi
adamc@1132 5501 else
adamc@1132 5502 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
adamc@1132 5503 fi
adamc@1132 5504 else
adamc@1132 5505 echo "$progname: failed program was:" >&5
adamc@1132 5506 cat conftest.$ac_ext >&5
adamc@1132 5507 fi
adamc@1132 5508 rm -rf conftest* conftst*
adamc@1132 5509
adamc@1132 5510 # Do not use the global_symbol_pipe unless it works.
adamc@1132 5511 if test "$pipe_works" = yes; then
adamc@1132 5512 break
adamc@1132 5513 else
adamc@1132 5514 lt_cv_sys_global_symbol_pipe=
adamc@1132 5515 fi
adamc@1132 5516 done
adamc@1132 5517
adamc@1132 5518 fi
adamc@1132 5519
adamc@1132 5520 if test -z "$lt_cv_sys_global_symbol_pipe"; then
adamc@1132 5521 lt_cv_sys_global_symbol_to_cdecl=
adamc@1132 5522 fi
adamc@1132 5523 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
adamc@1132 5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
adamc@1132 5525 $as_echo "failed" >&6; }
adamc@1132 5526 else
adamc@1132 5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
adamc@1132 5528 $as_echo "ok" >&6; }
adamc@1132 5529 fi
adamc@1132 5530
adamc@1132 5531
adamc@1132 5532
adamc@1132 5533
adamc@1132 5534
adamc@1132 5535
adamc@1132 5536
adamc@1132 5537
adamc@1132 5538
adamc@1132 5539
adamc@1132 5540
adamc@1132 5541
adamc@1132 5542
adamc@1132 5543
adamc@1132 5544
adamc@1132 5545
adamc@1132 5546
adamc@1132 5547
adamc@1132 5548
adamc@1132 5549
adamc@1132 5550
adamc@1132 5551
adamc@1132 5552
adamc@1132 5553 # Check whether --enable-libtool-lock was given.
adamc@1132 5554 if test "${enable_libtool_lock+set}" = set; then :
adamc@1132 5555 enableval=$enable_libtool_lock;
adamc@1132 5556 fi
adamc@1132 5557
adamc@1132 5558 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
adamc@1132 5559
adamc@1132 5560 # Some flags need to be propagated to the compiler or linker for good
adamc@1132 5561 # libtool support.
adamc@1132 5562 case $host in
adamc@1132 5563 ia64-*-hpux*)
adamc@1132 5564 # Find out which ABI we are using.
adamc@1132 5565 echo 'int i;' > conftest.$ac_ext
adamc@1132 5566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
adamc@1132 5567 (eval $ac_compile) 2>&5
adamc@1132 5568 ac_status=$?
adamc@1132 5569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 5570 test $ac_status = 0; }; then
adamc@1132 5571 case `/usr/bin/file conftest.$ac_objext` in
adamc@1132 5572 *ELF-32*)
adamc@1132 5573 HPUX_IA64_MODE="32"
adamc@1132 5574 ;;
adamc@1132 5575 *ELF-64*)
adamc@1132 5576 HPUX_IA64_MODE="64"
adamc@1132 5577 ;;
adamc@1132 5578 esac
adamc@1132 5579 fi
adamc@1132 5580 rm -rf conftest*
adamc@1132 5581 ;;
adamc@1132 5582 *-*-irix6*)
adamc@1132 5583 # Find out which ABI we are using.
adamc@1132 5584 echo '#line 5584 "configure"' > conftest.$ac_ext
adamc@1132 5585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
adamc@1132 5586 (eval $ac_compile) 2>&5
adamc@1132 5587 ac_status=$?
adamc@1132 5588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 5589 test $ac_status = 0; }; then
adamc@1132 5590 if test "$lt_cv_prog_gnu_ld" = yes; then
adamc@1132 5591 case `/usr/bin/file conftest.$ac_objext` in
adamc@1132 5592 *32-bit*)
adamc@1132 5593 LD="${LD-ld} -melf32bsmip"
adamc@1132 5594 ;;
adamc@1132 5595 *N32*)
adamc@1132 5596 LD="${LD-ld} -melf32bmipn32"
adamc@1132 5597 ;;
adamc@1132 5598 *64-bit*)
adamc@1132 5599 LD="${LD-ld} -melf64bmip"
adamc@1132 5600 ;;
adamc@1132 5601 esac
adamc@1132 5602 else
adamc@1132 5603 case `/usr/bin/file conftest.$ac_objext` in
adamc@1132 5604 *32-bit*)
adamc@1132 5605 LD="${LD-ld} -32"
adamc@1132 5606 ;;
adamc@1132 5607 *N32*)
adamc@1132 5608 LD="${LD-ld} -n32"
adamc@1132 5609 ;;
adamc@1132 5610 *64-bit*)
adamc@1132 5611 LD="${LD-ld} -64"
adamc@1132 5612 ;;
adamc@1132 5613 esac
adamc@1132 5614 fi
adamc@1132 5615 fi
adamc@1132 5616 rm -rf conftest*
adamc@1132 5617 ;;
adamc@1132 5618
adamc@1132 5619 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
adamc@1132 5620 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
adamc@1132 5621 # Find out which ABI we are using.
adamc@1132 5622 echo 'int i;' > conftest.$ac_ext
adamc@1132 5623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
adamc@1132 5624 (eval $ac_compile) 2>&5
adamc@1132 5625 ac_status=$?
adamc@1132 5626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 5627 test $ac_status = 0; }; then
adamc@1132 5628 case `/usr/bin/file conftest.o` in
adamc@1132 5629 *32-bit*)
adamc@1132 5630 case $host in
adamc@1132 5631 x86_64-*kfreebsd*-gnu)
adamc@1132 5632 LD="${LD-ld} -m elf_i386_fbsd"
adamc@1132 5633 ;;
adamc@1132 5634 x86_64-*linux*)
adamc@1132 5635 LD="${LD-ld} -m elf_i386"
adamc@1132 5636 ;;
adamc@1132 5637 ppc64-*linux*|powerpc64-*linux*)
adamc@1132 5638 LD="${LD-ld} -m elf32ppclinux"
adamc@1132 5639 ;;
adamc@1132 5640 s390x-*linux*)
adamc@1132 5641 LD="${LD-ld} -m elf_s390"
adamc@1132 5642 ;;
adamc@1132 5643 sparc64-*linux*)
adamc@1132 5644 LD="${LD-ld} -m elf32_sparc"
adamc@1132 5645 ;;
adamc@1132 5646 esac
adamc@1132 5647 ;;
adamc@1132 5648 *64-bit*)
adamc@1132 5649 case $host in
adamc@1132 5650 x86_64-*kfreebsd*-gnu)
adamc@1132 5651 LD="${LD-ld} -m elf_x86_64_fbsd"
adamc@1132 5652 ;;
adamc@1132 5653 x86_64-*linux*)
adamc@1132 5654 LD="${LD-ld} -m elf_x86_64"
adamc@1132 5655 ;;
adamc@1132 5656 ppc*-*linux*|powerpc*-*linux*)
adamc@1132 5657 LD="${LD-ld} -m elf64ppc"
adamc@1132 5658 ;;
adamc@1132 5659 s390*-*linux*|s390*-*tpf*)
adamc@1132 5660 LD="${LD-ld} -m elf64_s390"
adamc@1132 5661 ;;
adamc@1132 5662 sparc*-*linux*)
adamc@1132 5663 LD="${LD-ld} -m elf64_sparc"
adamc@1132 5664 ;;
adamc@1132 5665 esac
adamc@1132 5666 ;;
adamc@1132 5667 esac
adamc@1132 5668 fi
adamc@1132 5669 rm -rf conftest*
adamc@1132 5670 ;;
adamc@1132 5671
adamc@1132 5672 *-*-sco3.2v5*)
adamc@1132 5673 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
adamc@1132 5674 SAVE_CFLAGS="$CFLAGS"
adamc@1132 5675 CFLAGS="$CFLAGS -belf"
adamc@1132 5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
adamc@1132 5677 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
adamc@1132 5678 if test "${lt_cv_cc_needs_belf+set}" = set; then :
adamc@1132 5679 $as_echo_n "(cached) " >&6
adamc@1132 5680 else
adamc@1132 5681 ac_ext=c
adamc@1132 5682 ac_cpp='$CPP $CPPFLAGS'
adamc@1132 5683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1132 5684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1132 5685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1132 5686
adamc@1132 5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 5688 /* end confdefs.h. */
adamc@1132 5689
adamc@1132 5690 int
adamc@1132 5691 main ()
adamc@1132 5692 {
adamc@1132 5693
adamc@1132 5694 ;
adamc@1132 5695 return 0;
adamc@1132 5696 }
adamc@1132 5697 _ACEOF
adamc@1132 5698 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 5699 lt_cv_cc_needs_belf=yes
adamc@1132 5700 else
adamc@1132 5701 lt_cv_cc_needs_belf=no
adamc@1132 5702 fi
adamc@1132 5703 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 5704 conftest$ac_exeext conftest.$ac_ext
adamc@1132 5705 ac_ext=c
adamc@1132 5706 ac_cpp='$CPP $CPPFLAGS'
adamc@1132 5707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1132 5708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1132 5709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1132 5710
adamc@1132 5711 fi
adamc@1132 5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
adamc@1132 5713 $as_echo "$lt_cv_cc_needs_belf" >&6; }
adamc@1132 5714 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
adamc@1132 5715 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
adamc@1132 5716 CFLAGS="$SAVE_CFLAGS"
adamc@1132 5717 fi
adamc@1132 5718 ;;
adamc@1132 5719 sparc*-*solaris*)
adamc@1132 5720 # Find out which ABI we are using.
adamc@1132 5721 echo 'int i;' > conftest.$ac_ext
adamc@1132 5722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
adamc@1132 5723 (eval $ac_compile) 2>&5
adamc@1132 5724 ac_status=$?
adamc@1132 5725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 5726 test $ac_status = 0; }; then
adamc@1132 5727 case `/usr/bin/file conftest.o` in
adamc@1132 5728 *64-bit*)
adamc@1132 5729 case $lt_cv_prog_gnu_ld in
adamc@1132 5730 yes*) LD="${LD-ld} -m elf64_sparc" ;;
adamc@1132 5731 *)
adamc@1132 5732 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
adamc@1132 5733 LD="${LD-ld} -64"
adamc@1132 5734 fi
adamc@1132 5735 ;;
adamc@1132 5736 esac
adamc@1132 5737 ;;
adamc@1132 5738 esac
adamc@1132 5739 fi
adamc@1132 5740 rm -rf conftest*
adamc@1132 5741 ;;
adamc@1132 5742 esac
adamc@1132 5743
adamc@1132 5744 need_locks="$enable_libtool_lock"
adamc@1132 5745
adamc@1132 5746
adamc@1132 5747 case $host_os in
adamc@1132 5748 rhapsody* | darwin*)
adamc@1132 5749 if test -n "$ac_tool_prefix"; then
adamc@1132 5750 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
adamc@1132 5751 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
adamc@1132 5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 5753 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 5754 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
adamc@1132 5755 $as_echo_n "(cached) " >&6
adamc@1132 5756 else
adamc@1132 5757 if test -n "$DSYMUTIL"; then
adamc@1132 5758 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
adamc@1132 5759 else
adamc@1132 5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 5761 for as_dir in $PATH
adamc@1132 5762 do
adamc@1132 5763 IFS=$as_save_IFS
adamc@1132 5764 test -z "$as_dir" && as_dir=.
adamc@1132 5765 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 5766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 5767 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
adamc@1132 5768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 5769 break 2
adamc@1132 5770 fi
adamc@1132 5771 done
adamc@1132 5772 done
adamc@1132 5773 IFS=$as_save_IFS
adamc@1132 5774
adamc@1132 5775 fi
adamc@1132 5776 fi
adamc@1132 5777 DSYMUTIL=$ac_cv_prog_DSYMUTIL
adamc@1132 5778 if test -n "$DSYMUTIL"; then
adamc@1132 5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
adamc@1132 5780 $as_echo "$DSYMUTIL" >&6; }
adamc@1132 5781 else
adamc@1132 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 5783 $as_echo "no" >&6; }
adamc@1132 5784 fi
adamc@1132 5785
adamc@1132 5786
adamc@1132 5787 fi
adamc@1132 5788 if test -z "$ac_cv_prog_DSYMUTIL"; then
adamc@1132 5789 ac_ct_DSYMUTIL=$DSYMUTIL
adamc@1132 5790 # Extract the first word of "dsymutil", so it can be a program name with args.
adamc@1132 5791 set dummy dsymutil; ac_word=$2
adamc@1132 5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 5793 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 5794 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
adamc@1132 5795 $as_echo_n "(cached) " >&6
adamc@1132 5796 else
adamc@1132 5797 if test -n "$ac_ct_DSYMUTIL"; then
adamc@1132 5798 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
adamc@1132 5799 else
adamc@1132 5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 5801 for as_dir in $PATH
adamc@1132 5802 do
adamc@1132 5803 IFS=$as_save_IFS
adamc@1132 5804 test -z "$as_dir" && as_dir=.
adamc@1132 5805 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 5806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 5807 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
adamc@1132 5808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 5809 break 2
adamc@1132 5810 fi
adamc@1132 5811 done
adamc@1132 5812 done
adamc@1132 5813 IFS=$as_save_IFS
adamc@1132 5814
adamc@1132 5815 fi
adamc@1132 5816 fi
adamc@1132 5817 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
adamc@1132 5818 if test -n "$ac_ct_DSYMUTIL"; then
adamc@1132 5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
adamc@1132 5820 $as_echo "$ac_ct_DSYMUTIL" >&6; }
adamc@1132 5821 else
adamc@1132 5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 5823 $as_echo "no" >&6; }
adamc@1132 5824 fi
adamc@1132 5825
adamc@1132 5826 if test "x$ac_ct_DSYMUTIL" = x; then
adamc@1132 5827 DSYMUTIL=":"
adamc@1132 5828 else
adamc@1132 5829 case $cross_compiling:$ac_tool_warned in
adamc@1132 5830 yes:)
adamc@1132 5831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 5832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 5833 ac_tool_warned=yes ;;
adamc@1132 5834 esac
adamc@1132 5835 DSYMUTIL=$ac_ct_DSYMUTIL
adamc@1132 5836 fi
adamc@1132 5837 else
adamc@1132 5838 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
adamc@1132 5839 fi
adamc@1132 5840
adamc@1132 5841 if test -n "$ac_tool_prefix"; then
adamc@1132 5842 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
adamc@1132 5843 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
adamc@1132 5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 5845 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 5846 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
adamc@1132 5847 $as_echo_n "(cached) " >&6
adamc@1132 5848 else
adamc@1132 5849 if test -n "$NMEDIT"; then
adamc@1132 5850 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
adamc@1132 5851 else
adamc@1132 5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 5853 for as_dir in $PATH
adamc@1132 5854 do
adamc@1132 5855 IFS=$as_save_IFS
adamc@1132 5856 test -z "$as_dir" && as_dir=.
adamc@1132 5857 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 5858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 5859 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
adamc@1132 5860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 5861 break 2
adamc@1132 5862 fi
adamc@1132 5863 done
adamc@1132 5864 done
adamc@1132 5865 IFS=$as_save_IFS
adamc@1132 5866
adamc@1132 5867 fi
adamc@1132 5868 fi
adamc@1132 5869 NMEDIT=$ac_cv_prog_NMEDIT
adamc@1132 5870 if test -n "$NMEDIT"; then
adamc@1132 5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
adamc@1132 5872 $as_echo "$NMEDIT" >&6; }
adamc@1132 5873 else
adamc@1132 5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 5875 $as_echo "no" >&6; }
adamc@1132 5876 fi
adamc@1132 5877
adamc@1132 5878
adamc@1132 5879 fi
adamc@1132 5880 if test -z "$ac_cv_prog_NMEDIT"; then
adamc@1132 5881 ac_ct_NMEDIT=$NMEDIT
adamc@1132 5882 # Extract the first word of "nmedit", so it can be a program name with args.
adamc@1132 5883 set dummy nmedit; ac_word=$2
adamc@1132 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 5885 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 5886 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
adamc@1132 5887 $as_echo_n "(cached) " >&6
adamc@1132 5888 else
adamc@1132 5889 if test -n "$ac_ct_NMEDIT"; then
adamc@1132 5890 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
adamc@1132 5891 else
adamc@1132 5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 5893 for as_dir in $PATH
adamc@1132 5894 do
adamc@1132 5895 IFS=$as_save_IFS
adamc@1132 5896 test -z "$as_dir" && as_dir=.
adamc@1132 5897 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 5898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 5899 ac_cv_prog_ac_ct_NMEDIT="nmedit"
adamc@1132 5900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 5901 break 2
adamc@1132 5902 fi
adamc@1132 5903 done
adamc@1132 5904 done
adamc@1132 5905 IFS=$as_save_IFS
adamc@1132 5906
adamc@1132 5907 fi
adamc@1132 5908 fi
adamc@1132 5909 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
adamc@1132 5910 if test -n "$ac_ct_NMEDIT"; then
adamc@1132 5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
adamc@1132 5912 $as_echo "$ac_ct_NMEDIT" >&6; }
adamc@1132 5913 else
adamc@1132 5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 5915 $as_echo "no" >&6; }
adamc@1132 5916 fi
adamc@1132 5917
adamc@1132 5918 if test "x$ac_ct_NMEDIT" = x; then
adamc@1132 5919 NMEDIT=":"
adamc@1132 5920 else
adamc@1132 5921 case $cross_compiling:$ac_tool_warned in
adamc@1132 5922 yes:)
adamc@1132 5923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 5924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 5925 ac_tool_warned=yes ;;
adamc@1132 5926 esac
adamc@1132 5927 NMEDIT=$ac_ct_NMEDIT
adamc@1132 5928 fi
adamc@1132 5929 else
adamc@1132 5930 NMEDIT="$ac_cv_prog_NMEDIT"
adamc@1132 5931 fi
adamc@1132 5932
adamc@1132 5933 if test -n "$ac_tool_prefix"; then
adamc@1132 5934 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
adamc@1132 5935 set dummy ${ac_tool_prefix}lipo; ac_word=$2
adamc@1132 5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 5937 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 5938 if test "${ac_cv_prog_LIPO+set}" = set; then :
adamc@1132 5939 $as_echo_n "(cached) " >&6
adamc@1132 5940 else
adamc@1132 5941 if test -n "$LIPO"; then
adamc@1132 5942 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
adamc@1132 5943 else
adamc@1132 5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 5945 for as_dir in $PATH
adamc@1132 5946 do
adamc@1132 5947 IFS=$as_save_IFS
adamc@1132 5948 test -z "$as_dir" && as_dir=.
adamc@1132 5949 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 5950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 5951 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
adamc@1132 5952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 5953 break 2
adamc@1132 5954 fi
adamc@1132 5955 done
adamc@1132 5956 done
adamc@1132 5957 IFS=$as_save_IFS
adamc@1132 5958
adamc@1132 5959 fi
adamc@1132 5960 fi
adamc@1132 5961 LIPO=$ac_cv_prog_LIPO
adamc@1132 5962 if test -n "$LIPO"; then
adamc@1132 5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
adamc@1132 5964 $as_echo "$LIPO" >&6; }
adamc@1132 5965 else
adamc@1132 5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 5967 $as_echo "no" >&6; }
adamc@1132 5968 fi
adamc@1132 5969
adamc@1132 5970
adamc@1132 5971 fi
adamc@1132 5972 if test -z "$ac_cv_prog_LIPO"; then
adamc@1132 5973 ac_ct_LIPO=$LIPO
adamc@1132 5974 # Extract the first word of "lipo", so it can be a program name with args.
adamc@1132 5975 set dummy lipo; ac_word=$2
adamc@1132 5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 5977 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 5978 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
adamc@1132 5979 $as_echo_n "(cached) " >&6
adamc@1132 5980 else
adamc@1132 5981 if test -n "$ac_ct_LIPO"; then
adamc@1132 5982 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
adamc@1132 5983 else
adamc@1132 5984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 5985 for as_dir in $PATH
adamc@1132 5986 do
adamc@1132 5987 IFS=$as_save_IFS
adamc@1132 5988 test -z "$as_dir" && as_dir=.
adamc@1132 5989 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 5990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 5991 ac_cv_prog_ac_ct_LIPO="lipo"
adamc@1132 5992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 5993 break 2
adamc@1132 5994 fi
adamc@1132 5995 done
adamc@1132 5996 done
adamc@1132 5997 IFS=$as_save_IFS
adamc@1132 5998
adamc@1132 5999 fi
adamc@1132 6000 fi
adamc@1132 6001 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
adamc@1132 6002 if test -n "$ac_ct_LIPO"; then
adamc@1132 6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
adamc@1132 6004 $as_echo "$ac_ct_LIPO" >&6; }
adamc@1132 6005 else
adamc@1132 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 6007 $as_echo "no" >&6; }
adamc@1132 6008 fi
adamc@1132 6009
adamc@1132 6010 if test "x$ac_ct_LIPO" = x; then
adamc@1132 6011 LIPO=":"
adamc@1132 6012 else
adamc@1132 6013 case $cross_compiling:$ac_tool_warned in
adamc@1132 6014 yes:)
adamc@1132 6015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 6016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 6017 ac_tool_warned=yes ;;
adamc@1132 6018 esac
adamc@1132 6019 LIPO=$ac_ct_LIPO
adamc@1132 6020 fi
adamc@1132 6021 else
adamc@1132 6022 LIPO="$ac_cv_prog_LIPO"
adamc@1132 6023 fi
adamc@1132 6024
adamc@1132 6025 if test -n "$ac_tool_prefix"; then
adamc@1132 6026 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
adamc@1132 6027 set dummy ${ac_tool_prefix}otool; ac_word=$2
adamc@1132 6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 6029 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 6030 if test "${ac_cv_prog_OTOOL+set}" = set; then :
adamc@1132 6031 $as_echo_n "(cached) " >&6
adamc@1132 6032 else
adamc@1132 6033 if test -n "$OTOOL"; then
adamc@1132 6034 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
adamc@1132 6035 else
adamc@1132 6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 6037 for as_dir in $PATH
adamc@1132 6038 do
adamc@1132 6039 IFS=$as_save_IFS
adamc@1132 6040 test -z "$as_dir" && as_dir=.
adamc@1132 6041 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 6042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 6043 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
adamc@1132 6044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 6045 break 2
adamc@1132 6046 fi
adamc@1132 6047 done
adamc@1132 6048 done
adamc@1132 6049 IFS=$as_save_IFS
adamc@1132 6050
adamc@1132 6051 fi
adamc@1132 6052 fi
adamc@1132 6053 OTOOL=$ac_cv_prog_OTOOL
adamc@1132 6054 if test -n "$OTOOL"; then
adamc@1132 6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
adamc@1132 6056 $as_echo "$OTOOL" >&6; }
adamc@1132 6057 else
adamc@1132 6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 6059 $as_echo "no" >&6; }
adamc@1132 6060 fi
adamc@1132 6061
adamc@1132 6062
adamc@1132 6063 fi
adamc@1132 6064 if test -z "$ac_cv_prog_OTOOL"; then
adamc@1132 6065 ac_ct_OTOOL=$OTOOL
adamc@1132 6066 # Extract the first word of "otool", so it can be a program name with args.
adamc@1132 6067 set dummy otool; ac_word=$2
adamc@1132 6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 6069 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 6070 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
adamc@1132 6071 $as_echo_n "(cached) " >&6
adamc@1132 6072 else
adamc@1132 6073 if test -n "$ac_ct_OTOOL"; then
adamc@1132 6074 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
adamc@1132 6075 else
adamc@1132 6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 6077 for as_dir in $PATH
adamc@1132 6078 do
adamc@1132 6079 IFS=$as_save_IFS
adamc@1132 6080 test -z "$as_dir" && as_dir=.
adamc@1132 6081 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 6082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 6083 ac_cv_prog_ac_ct_OTOOL="otool"
adamc@1132 6084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 6085 break 2
adamc@1132 6086 fi
adamc@1132 6087 done
adamc@1132 6088 done
adamc@1132 6089 IFS=$as_save_IFS
adamc@1132 6090
adamc@1132 6091 fi
adamc@1132 6092 fi
adamc@1132 6093 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
adamc@1132 6094 if test -n "$ac_ct_OTOOL"; then
adamc@1132 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
adamc@1132 6096 $as_echo "$ac_ct_OTOOL" >&6; }
adamc@1132 6097 else
adamc@1132 6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 6099 $as_echo "no" >&6; }
adamc@1132 6100 fi
adamc@1132 6101
adamc@1132 6102 if test "x$ac_ct_OTOOL" = x; then
adamc@1132 6103 OTOOL=":"
adamc@1132 6104 else
adamc@1132 6105 case $cross_compiling:$ac_tool_warned in
adamc@1132 6106 yes:)
adamc@1132 6107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 6108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 6109 ac_tool_warned=yes ;;
adamc@1132 6110 esac
adamc@1132 6111 OTOOL=$ac_ct_OTOOL
adamc@1132 6112 fi
adamc@1132 6113 else
adamc@1132 6114 OTOOL="$ac_cv_prog_OTOOL"
adamc@1132 6115 fi
adamc@1132 6116
adamc@1132 6117 if test -n "$ac_tool_prefix"; then
adamc@1132 6118 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
adamc@1132 6119 set dummy ${ac_tool_prefix}otool64; ac_word=$2
adamc@1132 6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 6121 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 6122 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
adamc@1132 6123 $as_echo_n "(cached) " >&6
adamc@1132 6124 else
adamc@1132 6125 if test -n "$OTOOL64"; then
adamc@1132 6126 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
adamc@1132 6127 else
adamc@1132 6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 6129 for as_dir in $PATH
adamc@1132 6130 do
adamc@1132 6131 IFS=$as_save_IFS
adamc@1132 6132 test -z "$as_dir" && as_dir=.
adamc@1132 6133 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 6134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 6135 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
adamc@1132 6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 6137 break 2
adamc@1132 6138 fi
adamc@1132 6139 done
adamc@1132 6140 done
adamc@1132 6141 IFS=$as_save_IFS
adamc@1132 6142
adamc@1132 6143 fi
adamc@1132 6144 fi
adamc@1132 6145 OTOOL64=$ac_cv_prog_OTOOL64
adamc@1132 6146 if test -n "$OTOOL64"; then
adamc@1132 6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
adamc@1132 6148 $as_echo "$OTOOL64" >&6; }
adamc@1132 6149 else
adamc@1132 6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 6151 $as_echo "no" >&6; }
adamc@1132 6152 fi
adamc@1132 6153
adamc@1132 6154
adamc@1132 6155 fi
adamc@1132 6156 if test -z "$ac_cv_prog_OTOOL64"; then
adamc@1132 6157 ac_ct_OTOOL64=$OTOOL64
adamc@1132 6158 # Extract the first word of "otool64", so it can be a program name with args.
adamc@1132 6159 set dummy otool64; ac_word=$2
adamc@1132 6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 6161 $as_echo_n "checking for $ac_word... " >&6; }
adamc@1132 6162 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
adamc@1132 6163 $as_echo_n "(cached) " >&6
adamc@1132 6164 else
adamc@1132 6165 if test -n "$ac_ct_OTOOL64"; then
adamc@1132 6166 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
adamc@1132 6167 else
adamc@1132 6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 6169 for as_dir in $PATH
adamc@1132 6170 do
adamc@1132 6171 IFS=$as_save_IFS
adamc@1132 6172 test -z "$as_dir" && as_dir=.
adamc@1132 6173 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 6174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 6175 ac_cv_prog_ac_ct_OTOOL64="otool64"
adamc@1132 6176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 6177 break 2
adamc@1132 6178 fi
adamc@1132 6179 done
adamc@1132 6180 done
adamc@1132 6181 IFS=$as_save_IFS
adamc@1132 6182
adamc@1132 6183 fi
adamc@1132 6184 fi
adamc@1132 6185 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
adamc@1132 6186 if test -n "$ac_ct_OTOOL64"; then
adamc@1132 6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
adamc@1132 6188 $as_echo "$ac_ct_OTOOL64" >&6; }
adamc@1132 6189 else
adamc@1132 6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 6191 $as_echo "no" >&6; }
adamc@1132 6192 fi
adamc@1132 6193
adamc@1132 6194 if test "x$ac_ct_OTOOL64" = x; then
adamc@1132 6195 OTOOL64=":"
adamc@1132 6196 else
adamc@1132 6197 case $cross_compiling:$ac_tool_warned in
adamc@1132 6198 yes:)
adamc@1132 6199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 6200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 6201 ac_tool_warned=yes ;;
adamc@1132 6202 esac
adamc@1132 6203 OTOOL64=$ac_ct_OTOOL64
adamc@1132 6204 fi
adamc@1132 6205 else
adamc@1132 6206 OTOOL64="$ac_cv_prog_OTOOL64"
adamc@1132 6207 fi
adamc@1132 6208
adamc@1132 6209
adamc@1132 6210
adamc@1132 6211
adamc@1132 6212
adamc@1132 6213
adamc@1132 6214
adamc@1132 6215
adamc@1132 6216
adamc@1132 6217
adamc@1132 6218
adamc@1132 6219
adamc@1132 6220
adamc@1132 6221
adamc@1132 6222
adamc@1132 6223
adamc@1132 6224
adamc@1132 6225
adamc@1132 6226
adamc@1132 6227
adamc@1132 6228
adamc@1132 6229
adamc@1132 6230
adamc@1132 6231
adamc@1132 6232
adamc@1132 6233
adamc@1132 6234
adamc@1132 6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
adamc@1132 6236 $as_echo_n "checking for -single_module linker flag... " >&6; }
adamc@1132 6237 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
adamc@1132 6238 $as_echo_n "(cached) " >&6
adamc@1132 6239 else
adamc@1132 6240 lt_cv_apple_cc_single_mod=no
adamc@1132 6241 if test -z "${LT_MULTI_MODULE}"; then
adamc@1132 6242 # By default we will add the -single_module flag. You can override
adamc@1132 6243 # by either setting the environment variable LT_MULTI_MODULE
adamc@1132 6244 # non-empty at configure time, or by adding -multi_module to the
adamc@1132 6245 # link flags.
adamc@1132 6246 rm -rf libconftest.dylib*
adamc@1132 6247 echo "int foo(void){return 1;}" > conftest.c
adamc@1132 6248 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
adamc@1132 6249 -dynamiclib -Wl,-single_module conftest.c" >&5
adamc@1132 6250 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
adamc@1132 6251 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
adamc@1132 6252 _lt_result=$?
adamc@1132 6253 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
adamc@1132 6254 lt_cv_apple_cc_single_mod=yes
adamc@1132 6255 else
adamc@1132 6256 cat conftest.err >&5
adamc@1132 6257 fi
adamc@1132 6258 rm -rf libconftest.dylib*
adamc@1132 6259 rm -f conftest.*
adamc@1132 6260 fi
adamc@1132 6261 fi
adamc@1132 6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
adamc@1132 6263 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
adamc@1132 6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
adamc@1132 6265 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
adamc@1132 6266 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
adamc@1132 6267 $as_echo_n "(cached) " >&6
adamc@1132 6268 else
adamc@1132 6269 lt_cv_ld_exported_symbols_list=no
adamc@1132 6270 save_LDFLAGS=$LDFLAGS
adamc@1132 6271 echo "_main" > conftest.sym
adamc@1132 6272 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
adamc@1132 6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 6274 /* end confdefs.h. */
adamc@1132 6275
adamc@1132 6276 int
adamc@1132 6277 main ()
adamc@1132 6278 {
adamc@1132 6279
adamc@1132 6280 ;
adamc@1132 6281 return 0;
adamc@1132 6282 }
adamc@1132 6283 _ACEOF
adamc@1132 6284 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 6285 lt_cv_ld_exported_symbols_list=yes
adamc@1132 6286 else
adamc@1132 6287 lt_cv_ld_exported_symbols_list=no
adamc@1132 6288 fi
adamc@1132 6289 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 6290 conftest$ac_exeext conftest.$ac_ext
adamc@1132 6291 LDFLAGS="$save_LDFLAGS"
adamc@1132 6292
adamc@1132 6293 fi
adamc@1132 6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
adamc@1132 6295 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
adamc@1132 6296 case $host_os in
adamc@1132 6297 rhapsody* | darwin1.[012])
adamc@1132 6298 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
adamc@1132 6299 darwin1.*)
adamc@1132 6300 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
adamc@1132 6301 darwin*) # darwin 5.x on
adamc@1132 6302 # if running on 10.5 or later, the deployment target defaults
adamc@1132 6303 # to the OS version, if on x86, and 10.4, the deployment
adamc@1132 6304 # target defaults to 10.4. Don't you love it?
adamc@1132 6305 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
adamc@1132 6306 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
adamc@1132 6307 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
adamc@1132 6308 10.[012]*)
adamc@1132 6309 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
adamc@1132 6310 10.*)
adamc@1132 6311 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
adamc@1132 6312 esac
adamc@1132 6313 ;;
adamc@1132 6314 esac
adamc@1132 6315 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
adamc@1132 6316 _lt_dar_single_mod='$single_module'
adamc@1132 6317 fi
adamc@1132 6318 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
adamc@1132 6319 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
adamc@1132 6320 else
adamc@1132 6321 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
adamc@1132 6322 fi
adamc@1132 6323 if test "$DSYMUTIL" != ":"; then
adamc@1132 6324 _lt_dsymutil='~$DSYMUTIL $lib || :'
adamc@1132 6325 else
adamc@1132 6326 _lt_dsymutil=
adamc@1132 6327 fi
adamc@1132 6328 ;;
adamc@1132 6329 esac
adamc@1132 6330
adamc@1132 6331 ac_ext=c
adamc@1132 6332 ac_cpp='$CPP $CPPFLAGS'
adamc@1132 6333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1132 6334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1132 6335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1132 6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
adamc@1132 6337 $as_echo_n "checking how to run the C preprocessor... " >&6; }
adamc@1132 6338 # On Suns, sometimes $CPP names a directory.
adamc@1132 6339 if test -n "$CPP" && test -d "$CPP"; then
adamc@1132 6340 CPP=
adamc@1132 6341 fi
adamc@1132 6342 if test -z "$CPP"; then
adamc@1132 6343 if test "${ac_cv_prog_CPP+set}" = set; then :
adamc@1132 6344 $as_echo_n "(cached) " >&6
adamc@1132 6345 else
adamc@1132 6346 # Double quotes because CPP needs to be expanded
adamc@1132 6347 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
adamc@1132 6348 do
adamc@1132 6349 ac_preproc_ok=false
adamc@1132 6350 for ac_c_preproc_warn_flag in '' yes
adamc@1132 6351 do
adamc@1132 6352 # Use a header file that comes with gcc, so configuring glibc
adamc@1132 6353 # with a fresh cross-compiler works.
adamc@1132 6354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
adamc@1132 6355 # <limits.h> exists even on freestanding compilers.
adamc@1132 6356 # On the NeXT, cc -E runs the code through the compiler's parser,
adamc@1132 6357 # not just through cpp. "Syntax error" is here to catch this case.
adamc@1132 6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 6359 /* end confdefs.h. */
adamc@1132 6360 #ifdef __STDC__
adamc@1132 6361 # include <limits.h>
adamc@1132 6362 #else
adamc@1132 6363 # include <assert.h>
adamc@1132 6364 #endif
adamc@1132 6365 Syntax error
adamc@1132 6366 _ACEOF
adamc@1132 6367 if ac_fn_c_try_cpp "$LINENO"; then :
adamc@1132 6368
adamc@1132 6369 else
adamc@1132 6370 # Broken: fails on valid input.
adamc@1132 6371 continue
adamc@1132 6372 fi
adamc@1132 6373 rm -f conftest.err conftest.$ac_ext
adamc@1132 6374
adamc@1132 6375 # OK, works on sane cases. Now check whether nonexistent headers
adamc@1132 6376 # can be detected and how.
adamc@1132 6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 6378 /* end confdefs.h. */
adamc@1132 6379 #include <ac_nonexistent.h>
adamc@1132 6380 _ACEOF
adamc@1132 6381 if ac_fn_c_try_cpp "$LINENO"; then :
adamc@1132 6382 # Broken: success on invalid input.
adamc@1132 6383 continue
adamc@1132 6384 else
adamc@1132 6385 # Passes both tests.
adamc@1132 6386 ac_preproc_ok=:
adamc@1132 6387 break
adamc@1132 6388 fi
adamc@1132 6389 rm -f conftest.err conftest.$ac_ext
adamc@1132 6390
adamc@1132 6391 done
adamc@1132 6392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
adamc@1132 6393 rm -f conftest.err conftest.$ac_ext
adamc@1132 6394 if $ac_preproc_ok; then :
adamc@1132 6395 break
adamc@1132 6396 fi
adamc@1132 6397
adamc@1132 6398 done
adamc@1132 6399 ac_cv_prog_CPP=$CPP
adamc@1132 6400
adamc@1132 6401 fi
adamc@1132 6402 CPP=$ac_cv_prog_CPP
adamc@1132 6403 else
adamc@1132 6404 ac_cv_prog_CPP=$CPP
adamc@1132 6405 fi
adamc@1132 6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
adamc@1132 6407 $as_echo "$CPP" >&6; }
adamc@1132 6408 ac_preproc_ok=false
adamc@1132 6409 for ac_c_preproc_warn_flag in '' yes
adamc@1132 6410 do
adamc@1132 6411 # Use a header file that comes with gcc, so configuring glibc
adamc@1132 6412 # with a fresh cross-compiler works.
adamc@1132 6413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
adamc@1132 6414 # <limits.h> exists even on freestanding compilers.
adamc@1132 6415 # On the NeXT, cc -E runs the code through the compiler's parser,
adamc@1132 6416 # not just through cpp. "Syntax error" is here to catch this case.
adamc@1132 6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 6418 /* end confdefs.h. */
adamc@1132 6419 #ifdef __STDC__
adamc@1132 6420 # include <limits.h>
adamc@1132 6421 #else
adamc@1132 6422 # include <assert.h>
adamc@1132 6423 #endif
adamc@1132 6424 Syntax error
adamc@1132 6425 _ACEOF
adamc@1132 6426 if ac_fn_c_try_cpp "$LINENO"; then :
adamc@1132 6427
adamc@1132 6428 else
adamc@1132 6429 # Broken: fails on valid input.
adamc@1132 6430 continue
adamc@1132 6431 fi
adamc@1132 6432 rm -f conftest.err conftest.$ac_ext
adamc@1132 6433
adamc@1132 6434 # OK, works on sane cases. Now check whether nonexistent headers
adamc@1132 6435 # can be detected and how.
adamc@1132 6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 6437 /* end confdefs.h. */
adamc@1132 6438 #include <ac_nonexistent.h>
adamc@1132 6439 _ACEOF
adamc@1132 6440 if ac_fn_c_try_cpp "$LINENO"; then :
adamc@1132 6441 # Broken: success on invalid input.
adamc@1132 6442 continue
adamc@1132 6443 else
adamc@1132 6444 # Passes both tests.
adamc@1132 6445 ac_preproc_ok=:
adamc@1132 6446 break
adamc@1132 6447 fi
adamc@1132 6448 rm -f conftest.err conftest.$ac_ext
adamc@1132 6449
adamc@1132 6450 done
adamc@1132 6451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
adamc@1132 6452 rm -f conftest.err conftest.$ac_ext
adamc@1132 6453 if $ac_preproc_ok; then :
adamc@1132 6454
adamc@1132 6455 else
adamc@1132 6456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
adamc@1132 6457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
adamc@1132 6458 as_fn_error "C preprocessor \"$CPP\" fails sanity check
adamc@1132 6459 See \`config.log' for more details." "$LINENO" 5; }
adamc@1132 6460 fi
adamc@1132 6461
adamc@1132 6462 ac_ext=c
adamc@1132 6463 ac_cpp='$CPP $CPPFLAGS'
adamc@1132 6464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1132 6465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1132 6466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1132 6467
adamc@1132 6468
adamc@1132 6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
adamc@1132 6470 $as_echo_n "checking for ANSI C header files... " >&6; }
adamc@1132 6471 if test "${ac_cv_header_stdc+set}" = set; then :
adamc@1132 6472 $as_echo_n "(cached) " >&6
adamc@1132 6473 else
adamc@1132 6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 6475 /* end confdefs.h. */
adamc@1132 6476 #include <stdlib.h>
adamc@1132 6477 #include <stdarg.h>
adamc@1132 6478 #include <string.h>
adamc@1132 6479 #include <float.h>
adamc@1132 6480
adamc@1132 6481 int
adamc@1132 6482 main ()
adamc@1132 6483 {
adamc@1132 6484
adamc@1132 6485 ;
adamc@1132 6486 return 0;
adamc@1132 6487 }
adamc@1132 6488 _ACEOF
adamc@1132 6489 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1132 6490 ac_cv_header_stdc=yes
adamc@1132 6491 else
adamc@1132 6492 ac_cv_header_stdc=no
adamc@1132 6493 fi
adamc@1132 6494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1132 6495
adamc@1132 6496 if test $ac_cv_header_stdc = yes; then
adamc@1132 6497 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
adamc@1132 6498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 6499 /* end confdefs.h. */
adamc@1132 6500 #include <string.h>
adamc@1132 6501
adamc@1132 6502 _ACEOF
adamc@1132 6503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
adamc@1132 6504 $EGREP "memchr" >/dev/null 2>&1; then :
adamc@1132 6505
adamc@1132 6506 else
adamc@1132 6507 ac_cv_header_stdc=no
adamc@1132 6508 fi
adamc@1132 6509 rm -f conftest*
adamc@1132 6510
adamc@1132 6511 fi
adamc@1132 6512
adamc@1132 6513 if test $ac_cv_header_stdc = yes; then
adamc@1132 6514 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
adamc@1132 6515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 6516 /* end confdefs.h. */
adamc@1132 6517 #include <stdlib.h>
adamc@1132 6518
adamc@1132 6519 _ACEOF
adamc@1132 6520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
adamc@1132 6521 $EGREP "free" >/dev/null 2>&1; then :
adamc@1132 6522
adamc@1132 6523 else
adamc@1132 6524 ac_cv_header_stdc=no
adamc@1132 6525 fi
adamc@1132 6526 rm -f conftest*
adamc@1132 6527
adamc@1132 6528 fi
adamc@1132 6529
adamc@1132 6530 if test $ac_cv_header_stdc = yes; then
adamc@1132 6531 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
adamc@1132 6532 if test "$cross_compiling" = yes; then :
adamc@1132 6533 :
adamc@1132 6534 else
adamc@1132 6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 6536 /* end confdefs.h. */
adamc@1132 6537 #include <ctype.h>
adamc@1132 6538 #include <stdlib.h>
adamc@1132 6539 #if ((' ' & 0x0FF) == 0x020)
adamc@1132 6540 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
adamc@1132 6541 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
adamc@1132 6542 #else
adamc@1132 6543 # define ISLOWER(c) \
adamc@1132 6544 (('a' <= (c) && (c) <= 'i') \
adamc@1132 6545 || ('j' <= (c) && (c) <= 'r') \
adamc@1132 6546 || ('s' <= (c) && (c) <= 'z'))
adamc@1132 6547 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
adamc@1132 6548 #endif
adamc@1132 6549
adamc@1132 6550 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
adamc@1132 6551 int
adamc@1132 6552 main ()
adamc@1132 6553 {
adamc@1132 6554 int i;
adamc@1132 6555 for (i = 0; i < 256; i++)
adamc@1132 6556 if (XOR (islower (i), ISLOWER (i))
adamc@1132 6557 || toupper (i) != TOUPPER (i))
adamc@1132 6558 return 2;
adamc@1132 6559 return 0;
adamc@1132 6560 }
adamc@1132 6561 _ACEOF
adamc@1132 6562 if ac_fn_c_try_run "$LINENO"; then :
adamc@1132 6563
adamc@1132 6564 else
adamc@1132 6565 ac_cv_header_stdc=no
adamc@1132 6566 fi
adamc@1132 6567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
adamc@1132 6568 conftest.$ac_objext conftest.beam conftest.$ac_ext
adamc@1132 6569 fi
adamc@1132 6570
adamc@1132 6571 fi
adamc@1132 6572 fi
adamc@1132 6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
adamc@1132 6574 $as_echo "$ac_cv_header_stdc" >&6; }
adamc@1132 6575 if test $ac_cv_header_stdc = yes; then
adamc@1132 6576
adamc@1132 6577 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
adamc@1132 6578
adamc@1132 6579 fi
adamc@1132 6580
adamc@1132 6581 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
adamc@1132 6582 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
adamc@1132 6583 inttypes.h stdint.h unistd.h
adamc@1132 6584 do :
adamc@1132 6585 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
adamc@1132 6586 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
adamc@1132 6587 "
adamc@1132 6588 eval as_val=\$$as_ac_Header
adamc@1132 6589 if test "x$as_val" = x""yes; then :
adamc@1132 6590 cat >>confdefs.h <<_ACEOF
adamc@1132 6591 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
adamc@1132 6592 _ACEOF
adamc@1132 6593
adamc@1132 6594 fi
adamc@1132 6595
adamc@1132 6596 done
adamc@1132 6597
adamc@1132 6598
adamc@1132 6599 for ac_header in dlfcn.h
adamc@1132 6600 do :
adamc@1132 6601 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
adamc@1132 6602 "
adamc@1132 6603 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
adamc@1132 6604 cat >>confdefs.h <<_ACEOF
adamc@1132 6605 #define HAVE_DLFCN_H 1
adamc@1132 6606 _ACEOF
adamc@1132 6607
adamc@1132 6608 fi
adamc@1132 6609
adamc@1132 6610 done
adamc@1132 6611
adamc@1132 6612
adamc@1132 6613
adamc@1132 6614 # Set options
adamc@1132 6615
adamc@1132 6616
adamc@1132 6617
adamc@1132 6618 enable_dlopen=no
adamc@1132 6619
adamc@1132 6620
adamc@1132 6621 enable_win32_dll=no
adamc@1132 6622
adamc@1132 6623
adamc@1132 6624 # Check whether --enable-shared was given.
adamc@1132 6625 if test "${enable_shared+set}" = set; then :
adamc@1132 6626 enableval=$enable_shared; p=${PACKAGE-default}
adamc@1132 6627 case $enableval in
adamc@1132 6628 yes) enable_shared=yes ;;
adamc@1132 6629 no) enable_shared=no ;;
adamc@1132 6630 *)
adamc@1132 6631 enable_shared=no
adamc@1132 6632 # Look at the argument we got. We use all the common list separators.
adamc@1132 6633 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
adamc@1132 6634 for pkg in $enableval; do
adamc@1132 6635 IFS="$lt_save_ifs"
adamc@1132 6636 if test "X$pkg" = "X$p"; then
adamc@1132 6637 enable_shared=yes
adamc@1132 6638 fi
adamc@1132 6639 done
adamc@1132 6640 IFS="$lt_save_ifs"
adamc@1132 6641 ;;
adamc@1132 6642 esac
adamc@1132 6643 else
adamc@1132 6644 enable_shared=yes
adamc@1132 6645 fi
adamc@1132 6646
adamc@1132 6647
adamc@1132 6648
adamc@1132 6649
adamc@1132 6650
adamc@1132 6651
adamc@1132 6652
adamc@1132 6653
adamc@1132 6654
adamc@1132 6655 # Check whether --enable-static was given.
adamc@1132 6656 if test "${enable_static+set}" = set; then :
adamc@1132 6657 enableval=$enable_static; p=${PACKAGE-default}
adamc@1132 6658 case $enableval in
adamc@1132 6659 yes) enable_static=yes ;;
adamc@1132 6660 no) enable_static=no ;;
adamc@1132 6661 *)
adamc@1132 6662 enable_static=no
adamc@1132 6663 # Look at the argument we got. We use all the common list separators.
adamc@1132 6664 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
adamc@1132 6665 for pkg in $enableval; do
adamc@1132 6666 IFS="$lt_save_ifs"
adamc@1132 6667 if test "X$pkg" = "X$p"; then
adamc@1132 6668 enable_static=yes
adamc@1132 6669 fi
adamc@1132 6670 done
adamc@1132 6671 IFS="$lt_save_ifs"
adamc@1132 6672 ;;
adamc@1132 6673 esac
adamc@1132 6674 else
adamc@1132 6675 enable_static=yes
adamc@1132 6676 fi
adamc@1132 6677
adamc@1132 6678
adamc@1132 6679
adamc@1132 6680
adamc@1132 6681
adamc@1132 6682
adamc@1132 6683
adamc@1132 6684
adamc@1132 6685
adamc@1132 6686
adamc@1132 6687 # Check whether --with-pic was given.
adamc@1132 6688 if test "${with_pic+set}" = set; then :
adamc@1132 6689 withval=$with_pic; pic_mode="$withval"
adamc@1132 6690 else
adamc@1132 6691 pic_mode=default
adamc@1132 6692 fi
adamc@1132 6693
adamc@1132 6694
adamc@1132 6695 test -z "$pic_mode" && pic_mode=default
adamc@1132 6696
adamc@1132 6697
adamc@1132 6698
adamc@1132 6699
adamc@1132 6700
adamc@1132 6701
adamc@1132 6702
adamc@1132 6703 # Check whether --enable-fast-install was given.
adamc@1132 6704 if test "${enable_fast_install+set}" = set; then :
adamc@1132 6705 enableval=$enable_fast_install; p=${PACKAGE-default}
adamc@1132 6706 case $enableval in
adamc@1132 6707 yes) enable_fast_install=yes ;;
adamc@1132 6708 no) enable_fast_install=no ;;
adamc@1132 6709 *)
adamc@1132 6710 enable_fast_install=no
adamc@1132 6711 # Look at the argument we got. We use all the common list separators.
adamc@1132 6712 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
adamc@1132 6713 for pkg in $enableval; do
adamc@1132 6714 IFS="$lt_save_ifs"
adamc@1132 6715 if test "X$pkg" = "X$p"; then
adamc@1132 6716 enable_fast_install=yes
adamc@1132 6717 fi
adamc@1132 6718 done
adamc@1132 6719 IFS="$lt_save_ifs"
adamc@1132 6720 ;;
adamc@1132 6721 esac
adamc@1132 6722 else
adamc@1132 6723 enable_fast_install=yes
adamc@1132 6724 fi
adamc@1132 6725
adamc@1132 6726
adamc@1132 6727
adamc@1132 6728
adamc@1132 6729
adamc@1132 6730
adamc@1132 6731
adamc@1132 6732
adamc@1132 6733
adamc@1132 6734
adamc@1132 6735
adamc@1132 6736 # This can be used to rebuild libtool when needed
adamc@1132 6737 LIBTOOL_DEPS="$ltmain"
adamc@1132 6738
adamc@1132 6739 # Always use our own libtool.
adamc@1132 6740 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
adamc@1132 6741
adamc@1132 6742
adamc@1132 6743
adamc@1132 6744
adamc@1132 6745
adamc@1132 6746
adamc@1132 6747
adamc@1132 6748
adamc@1132 6749
adamc@1132 6750
adamc@1132 6751
adamc@1132 6752
adamc@1132 6753
adamc@1132 6754
adamc@1132 6755
adamc@1132 6756
adamc@1132 6757
adamc@1132 6758
adamc@1132 6759
adamc@1132 6760
adamc@1132 6761
adamc@1132 6762
adamc@1132 6763
adamc@1132 6764
adamc@1132 6765
adamc@1132 6766 test -z "$LN_S" && LN_S="ln -s"
adamc@1132 6767
adamc@1132 6768
adamc@1132 6769
adamc@1132 6770
adamc@1132 6771
adamc@1132 6772
adamc@1132 6773
adamc@1132 6774
adamc@1132 6775
adamc@1132 6776
adamc@1132 6777
adamc@1132 6778
adamc@1132 6779
adamc@1132 6780
adamc@1132 6781 if test -n "${ZSH_VERSION+set}" ; then
adamc@1132 6782 setopt NO_GLOB_SUBST
adamc@1132 6783 fi
adamc@1132 6784
adamc@1132 6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
adamc@1132 6786 $as_echo_n "checking for objdir... " >&6; }
adamc@1132 6787 if test "${lt_cv_objdir+set}" = set; then :
adamc@1132 6788 $as_echo_n "(cached) " >&6
adamc@1132 6789 else
adamc@1132 6790 rm -f .libs 2>/dev/null
adamc@1132 6791 mkdir .libs 2>/dev/null
adamc@1132 6792 if test -d .libs; then
adamc@1132 6793 lt_cv_objdir=.libs
adamc@1132 6794 else
adamc@1132 6795 # MS-DOS does not allow filenames that begin with a dot.
adamc@1132 6796 lt_cv_objdir=_libs
adamc@1132 6797 fi
adamc@1132 6798 rmdir .libs 2>/dev/null
adamc@1132 6799 fi
adamc@1132 6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
adamc@1132 6801 $as_echo "$lt_cv_objdir" >&6; }
adamc@1132 6802 objdir=$lt_cv_objdir
adamc@1132 6803
adamc@1132 6804
adamc@1132 6805
adamc@1132 6806
adamc@1132 6807
adamc@1132 6808 cat >>confdefs.h <<_ACEOF
adamc@1132 6809 #define LT_OBJDIR "$lt_cv_objdir/"
adamc@1132 6810 _ACEOF
adamc@1132 6811
adamc@1132 6812
adamc@1132 6813
adamc@1132 6814
adamc@1132 6815
adamc@1132 6816
adamc@1132 6817
adamc@1132 6818
adamc@1132 6819
adamc@1132 6820
adamc@1132 6821
adamc@1132 6822
adamc@1132 6823
adamc@1132 6824
adamc@1132 6825
adamc@1132 6826
adamc@1132 6827
adamc@1132 6828 case $host_os in
adamc@1132 6829 aix3*)
adamc@1132 6830 # AIX sometimes has problems with the GCC collect2 program. For some
adamc@1132 6831 # reason, if we set the COLLECT_NAMES environment variable, the problems
adamc@1132 6832 # vanish in a puff of smoke.
adamc@1132 6833 if test "X${COLLECT_NAMES+set}" != Xset; then
adamc@1132 6834 COLLECT_NAMES=
adamc@1132 6835 export COLLECT_NAMES
adamc@1132 6836 fi
adamc@1132 6837 ;;
adamc@1132 6838 esac
adamc@1132 6839
adamc@1132 6840 # Sed substitution that helps us do robust quoting. It backslashifies
adamc@1132 6841 # metacharacters that are still active within double-quoted strings.
adamc@1132 6842 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
adamc@1132 6843
adamc@1132 6844 # Same as above, but do not quote variable references.
adamc@1132 6845 double_quote_subst='s/\(["`\\]\)/\\\1/g'
adamc@1132 6846
adamc@1132 6847 # Sed substitution to delay expansion of an escaped shell variable in a
adamc@1132 6848 # double_quote_subst'ed string.
adamc@1132 6849 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
adamc@1132 6850
adamc@1132 6851 # Sed substitution to delay expansion of an escaped single quote.
adamc@1132 6852 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
adamc@1132 6853
adamc@1132 6854 # Sed substitution to avoid accidental globbing in evaled expressions
adamc@1132 6855 no_glob_subst='s/\*/\\\*/g'
adamc@1132 6856
adamc@1132 6857 # Global variables:
adamc@1132 6858 ofile=libtool
adamc@1132 6859 can_build_shared=yes
adamc@1132 6860
adamc@1132 6861 # All known linkers require a `.a' archive for static linking (except MSVC,
adamc@1132 6862 # which needs '.lib').
adamc@1132 6863 libext=a
adamc@1132 6864
adamc@1132 6865 with_gnu_ld="$lt_cv_prog_gnu_ld"
adamc@1132 6866
adamc@1132 6867 old_CC="$CC"
adamc@1132 6868 old_CFLAGS="$CFLAGS"
adamc@1132 6869
adamc@1132 6870 # Set sane defaults for various variables
adamc@1132 6871 test -z "$CC" && CC=cc
adamc@1132 6872 test -z "$LTCC" && LTCC=$CC
adamc@1132 6873 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
adamc@1132 6874 test -z "$LD" && LD=ld
adamc@1132 6875 test -z "$ac_objext" && ac_objext=o
adamc@1132 6876
adamc@1132 6877 for cc_temp in $compiler""; do
adamc@1132 6878 case $cc_temp in
adamc@1132 6879 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
adamc@1132 6880 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
adamc@1132 6881 \-*) ;;
adamc@1132 6882 *) break;;
adamc@1132 6883 esac
adamc@1132 6884 done
adamc@1132 6885 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
adamc@1132 6886
adamc@1132 6887
adamc@1132 6888 # Only perform the check for file, if the check method requires it
adamc@1132 6889 test -z "$MAGIC_CMD" && MAGIC_CMD=file
adamc@1132 6890 case $deplibs_check_method in
adamc@1132 6891 file_magic*)
adamc@1132 6892 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
adamc@1132 6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
adamc@1132 6894 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
adamc@1132 6895 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
adamc@1132 6896 $as_echo_n "(cached) " >&6
adamc@1132 6897 else
adamc@1132 6898 case $MAGIC_CMD in
adamc@1132 6899 [\\/*] | ?:[\\/]*)
adamc@1132 6900 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
adamc@1132 6901 ;;
adamc@1132 6902 *)
adamc@1132 6903 lt_save_MAGIC_CMD="$MAGIC_CMD"
adamc@1132 6904 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
adamc@1132 6905 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
adamc@1132 6906 for ac_dir in $ac_dummy; do
adamc@1132 6907 IFS="$lt_save_ifs"
adamc@1132 6908 test -z "$ac_dir" && ac_dir=.
adamc@1132 6909 if test -f $ac_dir/${ac_tool_prefix}file; then
adamc@1132 6910 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
adamc@1132 6911 if test -n "$file_magic_test_file"; then
adamc@1132 6912 case $deplibs_check_method in
adamc@1132 6913 "file_magic "*)
adamc@1132 6914 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
adamc@1132 6915 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
adamc@1132 6916 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
adamc@1132 6917 $EGREP "$file_magic_regex" > /dev/null; then
adamc@1132 6918 :
adamc@1132 6919 else
adamc@1132 6920 cat <<_LT_EOF 1>&2
adamc@1132 6921
adamc@1132 6922 *** Warning: the command libtool uses to detect shared libraries,
adamc@1132 6923 *** $file_magic_cmd, produces output that libtool cannot recognize.
adamc@1132 6924 *** The result is that libtool may fail to recognize shared libraries
adamc@1132 6925 *** as such. This will affect the creation of libtool libraries that
adamc@1132 6926 *** depend on shared libraries, but programs linked with such libtool
adamc@1132 6927 *** libraries will work regardless of this problem. Nevertheless, you
adamc@1132 6928 *** may want to report the problem to your system manager and/or to
adamc@1132 6929 *** bug-libtool@gnu.org
adamc@1132 6930
adamc@1132 6931 _LT_EOF
adamc@1132 6932 fi ;;
adamc@1132 6933 esac
adamc@1132 6934 fi
adamc@1132 6935 break
adamc@1132 6936 fi
adamc@1132 6937 done
adamc@1132 6938 IFS="$lt_save_ifs"
adamc@1132 6939 MAGIC_CMD="$lt_save_MAGIC_CMD"
adamc@1132 6940 ;;
adamc@1132 6941 esac
adamc@1132 6942 fi
adamc@1132 6943
adamc@1132 6944 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
adamc@1132 6945 if test -n "$MAGIC_CMD"; then
adamc@1132 6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
adamc@1132 6947 $as_echo "$MAGIC_CMD" >&6; }
adamc@1132 6948 else
adamc@1132 6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 6950 $as_echo "no" >&6; }
adamc@1132 6951 fi
adamc@1132 6952
adamc@1132 6953
adamc@1132 6954
adamc@1132 6955
adamc@1132 6956
adamc@1132 6957 if test -z "$lt_cv_path_MAGIC_CMD"; then
adamc@1132 6958 if test -n "$ac_tool_prefix"; then
adamc@1132 6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
adamc@1132 6960 $as_echo_n "checking for file... " >&6; }
adamc@1132 6961 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
adamc@1132 6962 $as_echo_n "(cached) " >&6
adamc@1132 6963 else
adamc@1132 6964 case $MAGIC_CMD in
adamc@1132 6965 [\\/*] | ?:[\\/]*)
adamc@1132 6966 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
adamc@1132 6967 ;;
adamc@1132 6968 *)
adamc@1132 6969 lt_save_MAGIC_CMD="$MAGIC_CMD"
adamc@1132 6970 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
adamc@1132 6971 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
adamc@1132 6972 for ac_dir in $ac_dummy; do
adamc@1132 6973 IFS="$lt_save_ifs"
adamc@1132 6974 test -z "$ac_dir" && ac_dir=.
adamc@1132 6975 if test -f $ac_dir/file; then
adamc@1132 6976 lt_cv_path_MAGIC_CMD="$ac_dir/file"
adamc@1132 6977 if test -n "$file_magic_test_file"; then
adamc@1132 6978 case $deplibs_check_method in
adamc@1132 6979 "file_magic "*)
adamc@1132 6980 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
adamc@1132 6981 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
adamc@1132 6982 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
adamc@1132 6983 $EGREP "$file_magic_regex" > /dev/null; then
adamc@1132 6984 :
adamc@1132 6985 else
adamc@1132 6986 cat <<_LT_EOF 1>&2
adamc@1132 6987
adamc@1132 6988 *** Warning: the command libtool uses to detect shared libraries,
adamc@1132 6989 *** $file_magic_cmd, produces output that libtool cannot recognize.
adamc@1132 6990 *** The result is that libtool may fail to recognize shared libraries
adamc@1132 6991 *** as such. This will affect the creation of libtool libraries that
adamc@1132 6992 *** depend on shared libraries, but programs linked with such libtool
adamc@1132 6993 *** libraries will work regardless of this problem. Nevertheless, you
adamc@1132 6994 *** may want to report the problem to your system manager and/or to
adamc@1132 6995 *** bug-libtool@gnu.org
adamc@1132 6996
adamc@1132 6997 _LT_EOF
adamc@1132 6998 fi ;;
adamc@1132 6999 esac
adamc@1132 7000 fi
adamc@1132 7001 break
adamc@1132 7002 fi
adamc@1132 7003 done
adamc@1132 7004 IFS="$lt_save_ifs"
adamc@1132 7005 MAGIC_CMD="$lt_save_MAGIC_CMD"
adamc@1132 7006 ;;
adamc@1132 7007 esac
adamc@1132 7008 fi
adamc@1132 7009
adamc@1132 7010 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
adamc@1132 7011 if test -n "$MAGIC_CMD"; then
adamc@1132 7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
adamc@1132 7013 $as_echo "$MAGIC_CMD" >&6; }
adamc@1132 7014 else
adamc@1132 7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 7016 $as_echo "no" >&6; }
adamc@1132 7017 fi
adamc@1132 7018
adamc@1132 7019
adamc@1132 7020 else
adamc@1132 7021 MAGIC_CMD=:
adamc@1132 7022 fi
adamc@1132 7023 fi
adamc@1132 7024
adamc@1132 7025 fi
adamc@1132 7026 ;;
adamc@1132 7027 esac
adamc@1132 7028
adamc@1132 7029 # Use C for the default configuration in the libtool script
adamc@1132 7030
adamc@1132 7031 lt_save_CC="$CC"
adamc@1132 7032 ac_ext=c
adamc@1132 7033 ac_cpp='$CPP $CPPFLAGS'
adamc@1132 7034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1132 7035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1132 7036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1132 7037
adamc@1132 7038
adamc@1132 7039 # Source file extension for C test sources.
adamc@1132 7040 ac_ext=c
adamc@1132 7041
adamc@1132 7042 # Object file extension for compiled C test sources.
adamc@1132 7043 objext=o
adamc@1132 7044 objext=$objext
adamc@1132 7045
adamc@1132 7046 # Code to be used in simple compile tests
adamc@1132 7047 lt_simple_compile_test_code="int some_variable = 0;"
adamc@1132 7048
adamc@1132 7049 # Code to be used in simple link tests
adamc@1132 7050 lt_simple_link_test_code='int main(){return(0);}'
adamc@1132 7051
adamc@1132 7052
adamc@1132 7053
adamc@1132 7054
adamc@1132 7055
adamc@1132 7056
adamc@1132 7057
adamc@1132 7058 # If no C compiler was specified, use CC.
adamc@1132 7059 LTCC=${LTCC-"$CC"}
adamc@1132 7060
adamc@1132 7061 # If no C compiler flags were specified, use CFLAGS.
adamc@1132 7062 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
adamc@1132 7063
adamc@1132 7064 # Allow CC to be a program name with arguments.
adamc@1132 7065 compiler=$CC
adamc@1132 7066
adamc@1132 7067 # Save the default compiler, since it gets overwritten when the other
adamc@1132 7068 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
adamc@1132 7069 compiler_DEFAULT=$CC
adamc@1132 7070
adamc@1132 7071 # save warnings/boilerplate of simple test code
adamc@1132 7072 ac_outfile=conftest.$ac_objext
adamc@1132 7073 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
adamc@1132 7074 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
adamc@1132 7075 _lt_compiler_boilerplate=`cat conftest.err`
adamc@1132 7076 $RM conftest*
adamc@1132 7077
adamc@1132 7078 ac_outfile=conftest.$ac_objext
adamc@1132 7079 echo "$lt_simple_link_test_code" >conftest.$ac_ext
adamc@1132 7080 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
adamc@1132 7081 _lt_linker_boilerplate=`cat conftest.err`
adamc@1132 7082 $RM -r conftest*
adamc@1132 7083
adamc@1132 7084
adamc@1132 7085 if test -n "$compiler"; then
adamc@1132 7086
adamc@1132 7087 lt_prog_compiler_no_builtin_flag=
adamc@1132 7088
adamc@1132 7089 if test "$GCC" = yes; then
adamc@1132 7090 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
adamc@1132 7091
adamc@1132 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
adamc@1132 7093 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
adamc@1132 7094 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
adamc@1132 7095 $as_echo_n "(cached) " >&6
adamc@1132 7096 else
adamc@1132 7097 lt_cv_prog_compiler_rtti_exceptions=no
adamc@1132 7098 ac_outfile=conftest.$ac_objext
adamc@1132 7099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
adamc@1132 7100 lt_compiler_flag="-fno-rtti -fno-exceptions"
adamc@1132 7101 # Insert the option either (1) after the last *FLAGS variable, or
adamc@1132 7102 # (2) before a word containing "conftest.", or (3) at the end.
adamc@1132 7103 # Note that $ac_compile itself does not contain backslashes and begins
adamc@1132 7104 # with a dollar sign (not a hyphen), so the echo should work correctly.
adamc@1132 7105 # The option is referenced via a variable to avoid confusing sed.
adamc@1132 7106 lt_compile=`echo "$ac_compile" | $SED \
adamc@1132 7107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
adamc@1132 7108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
adamc@1132 7109 -e 's:$: $lt_compiler_flag:'`
adamc@1132 7110 (eval echo "\"\$as_me:7110: $lt_compile\"" >&5)
adamc@1132 7111 (eval "$lt_compile" 2>conftest.err)
adamc@1132 7112 ac_status=$?
adamc@1132 7113 cat conftest.err >&5
adamc@1132 7114 echo "$as_me:7114: \$? = $ac_status" >&5
adamc@1132 7115 if (exit $ac_status) && test -s "$ac_outfile"; then
adamc@1132 7116 # The compiler can only warn and ignore the option if not recognized
adamc@1132 7117 # So say no if there are warnings other than the usual output.
adamc@1132 7118 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
adamc@1132 7119 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
adamc@1132 7120 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
adamc@1132 7121 lt_cv_prog_compiler_rtti_exceptions=yes
adamc@1132 7122 fi
adamc@1132 7123 fi
adamc@1132 7124 $RM conftest*
adamc@1132 7125
adamc@1132 7126 fi
adamc@1132 7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
adamc@1132 7128 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
adamc@1132 7129
adamc@1132 7130 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
adamc@1132 7131 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
adamc@1132 7132 else
adamc@1132 7133 :
adamc@1132 7134 fi
adamc@1132 7135
adamc@1132 7136 fi
adamc@1132 7137
adamc@1132 7138
adamc@1132 7139
adamc@1132 7140
adamc@1132 7141
adamc@1132 7142
adamc@1132 7143 lt_prog_compiler_wl=
adamc@1132 7144 lt_prog_compiler_pic=
adamc@1132 7145 lt_prog_compiler_static=
adamc@1132 7146
adamc@1132 7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
adamc@1132 7148 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
adamc@1132 7149
adamc@1132 7150 if test "$GCC" = yes; then
adamc@1132 7151 lt_prog_compiler_wl='-Wl,'
adamc@1132 7152 lt_prog_compiler_static='-static'
adamc@1132 7153
adamc@1132 7154 case $host_os in
adamc@1132 7155 aix*)
adamc@1132 7156 # All AIX code is PIC.
adamc@1132 7157 if test "$host_cpu" = ia64; then
adamc@1132 7158 # AIX 5 now supports IA64 processor
adamc@1132 7159 lt_prog_compiler_static='-Bstatic'
adamc@1132 7160 fi
adamc@1132 7161 ;;
adamc@1132 7162
adamc@1132 7163 amigaos*)
adamc@1132 7164 case $host_cpu in
adamc@1132 7165 powerpc)
adamc@1132 7166 # see comment about AmigaOS4 .so support
adamc@1132 7167 lt_prog_compiler_pic='-fPIC'
adamc@1132 7168 ;;
adamc@1132 7169 m68k)
adamc@1132 7170 # FIXME: we need at least 68020 code to build shared libraries, but
adamc@1132 7171 # adding the `-m68020' flag to GCC prevents building anything better,
adamc@1132 7172 # like `-m68040'.
adamc@1132 7173 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
adamc@1132 7174 ;;
adamc@1132 7175 esac
adamc@1132 7176 ;;
adamc@1132 7177
adamc@1132 7178 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
adamc@1132 7179 # PIC is the default for these OSes.
adamc@1132 7180 ;;
adamc@1132 7181
adamc@1132 7182 mingw* | cygwin* | pw32* | os2* | cegcc*)
adamc@1132 7183 # This hack is so that the source file can tell whether it is being
adamc@1132 7184 # built for inclusion in a dll (and should export symbols for example).
adamc@1132 7185 # Although the cygwin gcc ignores -fPIC, still need this for old-style
adamc@1132 7186 # (--disable-auto-import) libraries
adamc@1132 7187 lt_prog_compiler_pic='-DDLL_EXPORT'
adamc@1132 7188 ;;
adamc@1132 7189
adamc@1132 7190 darwin* | rhapsody*)
adamc@1132 7191 # PIC is the default on this platform
adamc@1132 7192 # Common symbols not allowed in MH_DYLIB files
adamc@1132 7193 lt_prog_compiler_pic='-fno-common'
adamc@1132 7194 ;;
adamc@1132 7195
adamc@1132 7196 hpux*)
adamc@1132 7197 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
adamc@1132 7198 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
adamc@1132 7199 # sets the default TLS model and affects inlining.
adamc@1132 7200 case $host_cpu in
adamc@1132 7201 hppa*64*)
adamc@1132 7202 # +Z the default
adamc@1132 7203 ;;
adamc@1132 7204 *)
adamc@1132 7205 lt_prog_compiler_pic='-fPIC'
adamc@1132 7206 ;;
adamc@1132 7207 esac
adamc@1132 7208 ;;
adamc@1132 7209
adamc@1132 7210 interix[3-9]*)
adamc@1132 7211 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
adamc@1132 7212 # Instead, we relocate shared libraries at runtime.
adamc@1132 7213 ;;
adamc@1132 7214
adamc@1132 7215 msdosdjgpp*)
adamc@1132 7216 # Just because we use GCC doesn't mean we suddenly get shared libraries
adamc@1132 7217 # on systems that don't support them.
adamc@1132 7218 lt_prog_compiler_can_build_shared=no
adamc@1132 7219 enable_shared=no
adamc@1132 7220 ;;
adamc@1132 7221
adamc@1132 7222 *nto* | *qnx*)
adamc@1132 7223 # QNX uses GNU C++, but need to define -shared option too, otherwise
adamc@1132 7224 # it will coredump.
adamc@1132 7225 lt_prog_compiler_pic='-fPIC -shared'
adamc@1132 7226 ;;
adamc@1132 7227
adamc@1132 7228 sysv4*MP*)
adamc@1132 7229 if test -d /usr/nec; then
adamc@1132 7230 lt_prog_compiler_pic=-Kconform_pic
adamc@1132 7231 fi
adamc@1132 7232 ;;
adamc@1132 7233
adamc@1132 7234 *)
adamc@1132 7235 lt_prog_compiler_pic='-fPIC'
adamc@1132 7236 ;;
adamc@1132 7237 esac
adamc@1132 7238 else
adamc@1132 7239 # PORTME Check for flag to pass linker flags through the system compiler.
adamc@1132 7240 case $host_os in
adamc@1132 7241 aix*)
adamc@1132 7242 lt_prog_compiler_wl='-Wl,'
adamc@1132 7243 if test "$host_cpu" = ia64; then
adamc@1132 7244 # AIX 5 now supports IA64 processor
adamc@1132 7245 lt_prog_compiler_static='-Bstatic'
adamc@1132 7246 else
adamc@1132 7247 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
adamc@1132 7248 fi
adamc@1132 7249 ;;
adamc@1132 7250
adamc@1132 7251 mingw* | cygwin* | pw32* | os2* | cegcc*)
adamc@1132 7252 # This hack is so that the source file can tell whether it is being
adamc@1132 7253 # built for inclusion in a dll (and should export symbols for example).
adamc@1132 7254 lt_prog_compiler_pic='-DDLL_EXPORT'
adamc@1132 7255 ;;
adamc@1132 7256
adamc@1132 7257 hpux9* | hpux10* | hpux11*)
adamc@1132 7258 lt_prog_compiler_wl='-Wl,'
adamc@1132 7259 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
adamc@1132 7260 # not for PA HP-UX.
adamc@1132 7261 case $host_cpu in
adamc@1132 7262 hppa*64*|ia64*)
adamc@1132 7263 # +Z the default
adamc@1132 7264 ;;
adamc@1132 7265 *)
adamc@1132 7266 lt_prog_compiler_pic='+Z'
adamc@1132 7267 ;;
adamc@1132 7268 esac
adamc@1132 7269 # Is there a better lt_prog_compiler_static that works with the bundled CC?
adamc@1132 7270 lt_prog_compiler_static='${wl}-a ${wl}archive'
adamc@1132 7271 ;;
adamc@1132 7272
adamc@1132 7273 irix5* | irix6* | nonstopux*)
adamc@1132 7274 lt_prog_compiler_wl='-Wl,'
adamc@1132 7275 # PIC (with -KPIC) is the default.
adamc@1132 7276 lt_prog_compiler_static='-non_shared'
adamc@1132 7277 ;;
adamc@1132 7278
adamc@1132 7279 linux* | k*bsd*-gnu | kopensolaris*-gnu)
adamc@1132 7280 case $cc_basename in
adamc@1132 7281 # old Intel for x86_64 which still supported -KPIC.
adamc@1132 7282 ecc*)
adamc@1132 7283 lt_prog_compiler_wl='-Wl,'
adamc@1132 7284 lt_prog_compiler_pic='-KPIC'
adamc@1132 7285 lt_prog_compiler_static='-static'
adamc@1132 7286 ;;
adamc@1132 7287 # icc used to be incompatible with GCC.
adamc@1132 7288 # ICC 10 doesn't accept -KPIC any more.
adamc@1132 7289 icc* | ifort*)
adamc@1132 7290 lt_prog_compiler_wl='-Wl,'
adamc@1132 7291 lt_prog_compiler_pic='-fPIC'
adamc@1132 7292 lt_prog_compiler_static='-static'
adamc@1132 7293 ;;
adamc@1132 7294 # Lahey Fortran 8.1.
adamc@1132 7295 lf95*)
adamc@1132 7296 lt_prog_compiler_wl='-Wl,'
adamc@1132 7297 lt_prog_compiler_pic='--shared'
adamc@1132 7298 lt_prog_compiler_static='--static'
adamc@1132 7299 ;;
adamc@1132 7300 pgcc* | pgf77* | pgf90* | pgf95*)
adamc@1132 7301 # Portland Group compilers (*not* the Pentium gcc compiler,
adamc@1132 7302 # which looks to be a dead project)
adamc@1132 7303 lt_prog_compiler_wl='-Wl,'
adamc@1132 7304 lt_prog_compiler_pic='-fpic'
adamc@1132 7305 lt_prog_compiler_static='-Bstatic'
adamc@1132 7306 ;;
adamc@1132 7307 ccc*)
adamc@1132 7308 lt_prog_compiler_wl='-Wl,'
adamc@1132 7309 # All Alpha code is PIC.
adamc@1132 7310 lt_prog_compiler_static='-non_shared'
adamc@1132 7311 ;;
adamc@1132 7312 xl*)
adamc@1132 7313 # IBM XL C 8.0/Fortran 10.1 on PPC
adamc@1132 7314 lt_prog_compiler_wl='-Wl,'
adamc@1132 7315 lt_prog_compiler_pic='-qpic'
adamc@1132 7316 lt_prog_compiler_static='-qstaticlink'
adamc@1132 7317 ;;
adamc@1132 7318 *)
adamc@1132 7319 case `$CC -V 2>&1 | sed 5q` in
adamc@1132 7320 *Sun\ C*)
adamc@1132 7321 # Sun C 5.9
adamc@1132 7322 lt_prog_compiler_pic='-KPIC'
adamc@1132 7323 lt_prog_compiler_static='-Bstatic'
adamc@1132 7324 lt_prog_compiler_wl='-Wl,'
adamc@1132 7325 ;;
adamc@1132 7326 *Sun\ F*)
adamc@1132 7327 # Sun Fortran 8.3 passes all unrecognized flags to the linker
adamc@1132 7328 lt_prog_compiler_pic='-KPIC'
adamc@1132 7329 lt_prog_compiler_static='-Bstatic'
adamc@1132 7330 lt_prog_compiler_wl=''
adamc@1132 7331 ;;
adamc@1132 7332 esac
adamc@1132 7333 ;;
adamc@1132 7334 esac
adamc@1132 7335 ;;
adamc@1132 7336
adamc@1132 7337 newsos6)
adamc@1132 7338 lt_prog_compiler_pic='-KPIC'
adamc@1132 7339 lt_prog_compiler_static='-Bstatic'
adamc@1132 7340 ;;
adamc@1132 7341
adamc@1132 7342 *nto* | *qnx*)
adamc@1132 7343 # QNX uses GNU C++, but need to define -shared option too, otherwise
adamc@1132 7344 # it will coredump.
adamc@1132 7345 lt_prog_compiler_pic='-fPIC -shared'
adamc@1132 7346 ;;
adamc@1132 7347
adamc@1132 7348 osf3* | osf4* | osf5*)
adamc@1132 7349 lt_prog_compiler_wl='-Wl,'
adamc@1132 7350 # All OSF/1 code is PIC.
adamc@1132 7351 lt_prog_compiler_static='-non_shared'
adamc@1132 7352 ;;
adamc@1132 7353
adamc@1132 7354 rdos*)
adamc@1132 7355 lt_prog_compiler_static='-non_shared'
adamc@1132 7356 ;;
adamc@1132 7357
adamc@1132 7358 solaris*)
adamc@1132 7359 lt_prog_compiler_pic='-KPIC'
adamc@1132 7360 lt_prog_compiler_static='-Bstatic'
adamc@1132 7361 case $cc_basename in
adamc@1132 7362 f77* | f90* | f95*)
adamc@1132 7363 lt_prog_compiler_wl='-Qoption ld ';;
adamc@1132 7364 *)
adamc@1132 7365 lt_prog_compiler_wl='-Wl,';;
adamc@1132 7366 esac
adamc@1132 7367 ;;
adamc@1132 7368
adamc@1132 7369 sunos4*)
adamc@1132 7370 lt_prog_compiler_wl='-Qoption ld '
adamc@1132 7371 lt_prog_compiler_pic='-PIC'
adamc@1132 7372 lt_prog_compiler_static='-Bstatic'
adamc@1132 7373 ;;
adamc@1132 7374
adamc@1132 7375 sysv4 | sysv4.2uw2* | sysv4.3*)
adamc@1132 7376 lt_prog_compiler_wl='-Wl,'
adamc@1132 7377 lt_prog_compiler_pic='-KPIC'
adamc@1132 7378 lt_prog_compiler_static='-Bstatic'
adamc@1132 7379 ;;
adamc@1132 7380
adamc@1132 7381 sysv4*MP*)
adamc@1132 7382 if test -d /usr/nec ;then
adamc@1132 7383 lt_prog_compiler_pic='-Kconform_pic'
adamc@1132 7384 lt_prog_compiler_static='-Bstatic'
adamc@1132 7385 fi
adamc@1132 7386 ;;
adamc@1132 7387
adamc@1132 7388 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
adamc@1132 7389 lt_prog_compiler_wl='-Wl,'
adamc@1132 7390 lt_prog_compiler_pic='-KPIC'
adamc@1132 7391 lt_prog_compiler_static='-Bstatic'
adamc@1132 7392 ;;
adamc@1132 7393
adamc@1132 7394 unicos*)
adamc@1132 7395 lt_prog_compiler_wl='-Wl,'
adamc@1132 7396 lt_prog_compiler_can_build_shared=no
adamc@1132 7397 ;;
adamc@1132 7398
adamc@1132 7399 uts4*)
adamc@1132 7400 lt_prog_compiler_pic='-pic'
adamc@1132 7401 lt_prog_compiler_static='-Bstatic'
adamc@1132 7402 ;;
adamc@1132 7403
adamc@1132 7404 *)
adamc@1132 7405 lt_prog_compiler_can_build_shared=no
adamc@1132 7406 ;;
adamc@1132 7407 esac
adamc@1132 7408 fi
adamc@1132 7409
adamc@1132 7410 case $host_os in
adamc@1132 7411 # For platforms which do not support PIC, -DPIC is meaningless:
adamc@1132 7412 *djgpp*)
adamc@1132 7413 lt_prog_compiler_pic=
adamc@1132 7414 ;;
adamc@1132 7415 *)
adamc@1132 7416 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
adamc@1132 7417 ;;
adamc@1132 7418 esac
adamc@1132 7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
adamc@1132 7420 $as_echo "$lt_prog_compiler_pic" >&6; }
adamc@1132 7421
adamc@1132 7422
adamc@1132 7423
adamc@1132 7424
adamc@1132 7425
adamc@1132 7426
adamc@1132 7427 #
adamc@1132 7428 # Check to make sure the PIC flag actually works.
adamc@1132 7429 #
adamc@1132 7430 if test -n "$lt_prog_compiler_pic"; then
adamc@1132 7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
adamc@1132 7432 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
adamc@1132 7433 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
adamc@1132 7434 $as_echo_n "(cached) " >&6
adamc@1132 7435 else
adamc@1132 7436 lt_cv_prog_compiler_pic_works=no
adamc@1132 7437 ac_outfile=conftest.$ac_objext
adamc@1132 7438 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
adamc@1132 7439 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
adamc@1132 7440 # Insert the option either (1) after the last *FLAGS variable, or
adamc@1132 7441 # (2) before a word containing "conftest.", or (3) at the end.
adamc@1132 7442 # Note that $ac_compile itself does not contain backslashes and begins
adamc@1132 7443 # with a dollar sign (not a hyphen), so the echo should work correctly.
adamc@1132 7444 # The option is referenced via a variable to avoid confusing sed.
adamc@1132 7445 lt_compile=`echo "$ac_compile" | $SED \
adamc@1132 7446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
adamc@1132 7447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
adamc@1132 7448 -e 's:$: $lt_compiler_flag:'`
adamc@1132 7449 (eval echo "\"\$as_me:7449: $lt_compile\"" >&5)
adamc@1132 7450 (eval "$lt_compile" 2>conftest.err)
adamc@1132 7451 ac_status=$?
adamc@1132 7452 cat conftest.err >&5
adamc@1132 7453 echo "$as_me:7453: \$? = $ac_status" >&5
adamc@1132 7454 if (exit $ac_status) && test -s "$ac_outfile"; then
adamc@1132 7455 # The compiler can only warn and ignore the option if not recognized
adamc@1132 7456 # So say no if there are warnings other than the usual output.
adamc@1132 7457 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
adamc@1132 7458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
adamc@1132 7459 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
adamc@1132 7460 lt_cv_prog_compiler_pic_works=yes
adamc@1132 7461 fi
adamc@1132 7462 fi
adamc@1132 7463 $RM conftest*
adamc@1132 7464
adamc@1132 7465 fi
adamc@1132 7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
adamc@1132 7467 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
adamc@1132 7468
adamc@1132 7469 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
adamc@1132 7470 case $lt_prog_compiler_pic in
adamc@1132 7471 "" | " "*) ;;
adamc@1132 7472 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
adamc@1132 7473 esac
adamc@1132 7474 else
adamc@1132 7475 lt_prog_compiler_pic=
adamc@1132 7476 lt_prog_compiler_can_build_shared=no
adamc@1132 7477 fi
adamc@1132 7478
adamc@1132 7479 fi
adamc@1132 7480
adamc@1132 7481
adamc@1132 7482
adamc@1132 7483
adamc@1132 7484
adamc@1132 7485
adamc@1132 7486 #
adamc@1132 7487 # Check to make sure the static flag actually works.
adamc@1132 7488 #
adamc@1132 7489 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
adamc@1132 7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
adamc@1132 7491 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
adamc@1132 7492 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
adamc@1132 7493 $as_echo_n "(cached) " >&6
adamc@1132 7494 else
adamc@1132 7495 lt_cv_prog_compiler_static_works=no
adamc@1132 7496 save_LDFLAGS="$LDFLAGS"
adamc@1132 7497 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
adamc@1132 7498 echo "$lt_simple_link_test_code" > conftest.$ac_ext
adamc@1132 7499 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
adamc@1132 7500 # The linker can only warn and ignore the option if not recognized
adamc@1132 7501 # So say no if there are warnings
adamc@1132 7502 if test -s conftest.err; then
adamc@1132 7503 # Append any errors to the config.log.
adamc@1132 7504 cat conftest.err 1>&5
adamc@1132 7505 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
adamc@1132 7506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
adamc@1132 7507 if diff conftest.exp conftest.er2 >/dev/null; then
adamc@1132 7508 lt_cv_prog_compiler_static_works=yes
adamc@1132 7509 fi
adamc@1132 7510 else
adamc@1132 7511 lt_cv_prog_compiler_static_works=yes
adamc@1132 7512 fi
adamc@1132 7513 fi
adamc@1132 7514 $RM -r conftest*
adamc@1132 7515 LDFLAGS="$save_LDFLAGS"
adamc@1132 7516
adamc@1132 7517 fi
adamc@1132 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
adamc@1132 7519 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
adamc@1132 7520
adamc@1132 7521 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
adamc@1132 7522 :
adamc@1132 7523 else
adamc@1132 7524 lt_prog_compiler_static=
adamc@1132 7525 fi
adamc@1132 7526
adamc@1132 7527
adamc@1132 7528
adamc@1132 7529
adamc@1132 7530
adamc@1132 7531
adamc@1132 7532
adamc@1132 7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
adamc@1132 7534 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
adamc@1132 7535 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
adamc@1132 7536 $as_echo_n "(cached) " >&6
adamc@1132 7537 else
adamc@1132 7538 lt_cv_prog_compiler_c_o=no
adamc@1132 7539 $RM -r conftest 2>/dev/null
adamc@1132 7540 mkdir conftest
adamc@1132 7541 cd conftest
adamc@1132 7542 mkdir out
adamc@1132 7543 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
adamc@1132 7544
adamc@1132 7545 lt_compiler_flag="-o out/conftest2.$ac_objext"
adamc@1132 7546 # Insert the option either (1) after the last *FLAGS variable, or
adamc@1132 7547 # (2) before a word containing "conftest.", or (3) at the end.
adamc@1132 7548 # Note that $ac_compile itself does not contain backslashes and begins
adamc@1132 7549 # with a dollar sign (not a hyphen), so the echo should work correctly.
adamc@1132 7550 lt_compile=`echo "$ac_compile" | $SED \
adamc@1132 7551 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
adamc@1132 7552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
adamc@1132 7553 -e 's:$: $lt_compiler_flag:'`
adamc@1132 7554 (eval echo "\"\$as_me:7554: $lt_compile\"" >&5)
adamc@1132 7555 (eval "$lt_compile" 2>out/conftest.err)
adamc@1132 7556 ac_status=$?
adamc@1132 7557 cat out/conftest.err >&5
adamc@1132 7558 echo "$as_me:7558: \$? = $ac_status" >&5
adamc@1132 7559 if (exit $ac_status) && test -s out/conftest2.$ac_objext
adamc@1132 7560 then
adamc@1132 7561 # The compiler can only warn and ignore the option if not recognized
adamc@1132 7562 # So say no if there are warnings
adamc@1132 7563 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
adamc@1132 7564 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
adamc@1132 7565 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
adamc@1132 7566 lt_cv_prog_compiler_c_o=yes
adamc@1132 7567 fi
adamc@1132 7568 fi
adamc@1132 7569 chmod u+w . 2>&5
adamc@1132 7570 $RM conftest*
adamc@1132 7571 # SGI C++ compiler will create directory out/ii_files/ for
adamc@1132 7572 # template instantiation
adamc@1132 7573 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
adamc@1132 7574 $RM out/* && rmdir out
adamc@1132 7575 cd ..
adamc@1132 7576 $RM -r conftest
adamc@1132 7577 $RM conftest*
adamc@1132 7578
adamc@1132 7579 fi
adamc@1132 7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
adamc@1132 7581 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
adamc@1132 7582
adamc@1132 7583
adamc@1132 7584
adamc@1132 7585
adamc@1132 7586
adamc@1132 7587
adamc@1132 7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
adamc@1132 7589 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
adamc@1132 7590 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
adamc@1132 7591 $as_echo_n "(cached) " >&6
adamc@1132 7592 else
adamc@1132 7593 lt_cv_prog_compiler_c_o=no
adamc@1132 7594 $RM -r conftest 2>/dev/null
adamc@1132 7595 mkdir conftest
adamc@1132 7596 cd conftest
adamc@1132 7597 mkdir out
adamc@1132 7598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
adamc@1132 7599
adamc@1132 7600 lt_compiler_flag="-o out/conftest2.$ac_objext"
adamc@1132 7601 # Insert the option either (1) after the last *FLAGS variable, or
adamc@1132 7602 # (2) before a word containing "conftest.", or (3) at the end.
adamc@1132 7603 # Note that $ac_compile itself does not contain backslashes and begins
adamc@1132 7604 # with a dollar sign (not a hyphen), so the echo should work correctly.
adamc@1132 7605 lt_compile=`echo "$ac_compile" | $SED \
adamc@1132 7606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
adamc@1132 7607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
adamc@1132 7608 -e 's:$: $lt_compiler_flag:'`
adamc@1132 7609 (eval echo "\"\$as_me:7609: $lt_compile\"" >&5)
adamc@1132 7610 (eval "$lt_compile" 2>out/conftest.err)
adamc@1132 7611 ac_status=$?
adamc@1132 7612 cat out/conftest.err >&5
adamc@1132 7613 echo "$as_me:7613: \$? = $ac_status" >&5
adamc@1132 7614 if (exit $ac_status) && test -s out/conftest2.$ac_objext
adamc@1132 7615 then
adamc@1132 7616 # The compiler can only warn and ignore the option if not recognized
adamc@1132 7617 # So say no if there are warnings
adamc@1132 7618 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
adamc@1132 7619 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
adamc@1132 7620 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
adamc@1132 7621 lt_cv_prog_compiler_c_o=yes
adamc@1132 7622 fi
adamc@1132 7623 fi
adamc@1132 7624 chmod u+w . 2>&5
adamc@1132 7625 $RM conftest*
adamc@1132 7626 # SGI C++ compiler will create directory out/ii_files/ for
adamc@1132 7627 # template instantiation
adamc@1132 7628 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
adamc@1132 7629 $RM out/* && rmdir out
adamc@1132 7630 cd ..
adamc@1132 7631 $RM -r conftest
adamc@1132 7632 $RM conftest*
adamc@1132 7633
adamc@1132 7634 fi
adamc@1132 7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
adamc@1132 7636 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
adamc@1132 7637
adamc@1132 7638
adamc@1132 7639
adamc@1132 7640
adamc@1132 7641 hard_links="nottested"
adamc@1132 7642 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
adamc@1132 7643 # do not overwrite the value of need_locks provided by the user
adamc@1132 7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
adamc@1132 7645 $as_echo_n "checking if we can lock with hard links... " >&6; }
adamc@1132 7646 hard_links=yes
adamc@1132 7647 $RM conftest*
adamc@1132 7648 ln conftest.a conftest.b 2>/dev/null && hard_links=no
adamc@1132 7649 touch conftest.a
adamc@1132 7650 ln conftest.a conftest.b 2>&5 || hard_links=no
adamc@1132 7651 ln conftest.a conftest.b 2>/dev/null && hard_links=no
adamc@1132 7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
adamc@1132 7653 $as_echo "$hard_links" >&6; }
adamc@1132 7654 if test "$hard_links" = no; then
adamc@1132 7655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
adamc@1132 7656 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
adamc@1132 7657 need_locks=warn
adamc@1132 7658 fi
adamc@1132 7659 else
adamc@1132 7660 need_locks=no
adamc@1132 7661 fi
adamc@1132 7662
adamc@1132 7663
adamc@1132 7664
adamc@1132 7665
adamc@1132 7666
adamc@1132 7667
adamc@1132 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
adamc@1132 7669 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
adamc@1132 7670
adamc@1132 7671 runpath_var=
adamc@1132 7672 allow_undefined_flag=
adamc@1132 7673 always_export_symbols=no
adamc@1132 7674 archive_cmds=
adamc@1132 7675 archive_expsym_cmds=
adamc@1132 7676 compiler_needs_object=no
adamc@1132 7677 enable_shared_with_static_runtimes=no
adamc@1132 7678 export_dynamic_flag_spec=
adamc@1132 7679 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
adamc@1132 7680 hardcode_automatic=no
adamc@1132 7681 hardcode_direct=no
adamc@1132 7682 hardcode_direct_absolute=no
adamc@1132 7683 hardcode_libdir_flag_spec=
adamc@1132 7684 hardcode_libdir_flag_spec_ld=
adamc@1132 7685 hardcode_libdir_separator=
adamc@1132 7686 hardcode_minus_L=no
adamc@1132 7687 hardcode_shlibpath_var=unsupported
adamc@1132 7688 inherit_rpath=no
adamc@1132 7689 link_all_deplibs=unknown
adamc@1132 7690 module_cmds=
adamc@1132 7691 module_expsym_cmds=
adamc@1132 7692 old_archive_from_new_cmds=
adamc@1132 7693 old_archive_from_expsyms_cmds=
adamc@1132 7694 thread_safe_flag_spec=
adamc@1132 7695 whole_archive_flag_spec=
adamc@1132 7696 # include_expsyms should be a list of space-separated symbols to be *always*
adamc@1132 7697 # included in the symbol list
adamc@1132 7698 include_expsyms=
adamc@1132 7699 # exclude_expsyms can be an extended regexp of symbols to exclude
adamc@1132 7700 # it will be wrapped by ` (' and `)$', so one must not match beginning or
adamc@1132 7701 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
adamc@1132 7702 # as well as any symbol that contains `d'.
adamc@1132 7703 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
adamc@1132 7704 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
adamc@1132 7705 # platforms (ab)use it in PIC code, but their linkers get confused if
adamc@1132 7706 # the symbol is explicitly referenced. Since portable code cannot
adamc@1132 7707 # rely on this symbol name, it's probably fine to never include it in
adamc@1132 7708 # preloaded symbol tables.
adamc@1132 7709 # Exclude shared library initialization/finalization symbols.
adamc@1132 7710 extract_expsyms_cmds=
adamc@1132 7711
adamc@1132 7712 case $host_os in
adamc@1132 7713 cygwin* | mingw* | pw32* | cegcc*)
adamc@1132 7714 # FIXME: the MSVC++ port hasn't been tested in a loooong time
adamc@1132 7715 # When not using gcc, we currently assume that we are using
adamc@1132 7716 # Microsoft Visual C++.
adamc@1132 7717 if test "$GCC" != yes; then
adamc@1132 7718 with_gnu_ld=no
adamc@1132 7719 fi
adamc@1132 7720 ;;
adamc@1132 7721 interix*)
adamc@1132 7722 # we just hope/assume this is gcc and not c89 (= MSVC++)
adamc@1132 7723 with_gnu_ld=yes
adamc@1132 7724 ;;
adamc@1132 7725 openbsd*)
adamc@1132 7726 with_gnu_ld=no
adamc@1132 7727 ;;
adamc@1132 7728 linux* | k*bsd*-gnu)
adamc@1132 7729 link_all_deplibs=no
adamc@1132 7730 ;;
adamc@1132 7731 esac
adamc@1132 7732
adamc@1132 7733 ld_shlibs=yes
adamc@1132 7734 if test "$with_gnu_ld" = yes; then
adamc@1132 7735 # If archive_cmds runs LD, not CC, wlarc should be empty
adamc@1132 7736 wlarc='${wl}'
adamc@1132 7737
adamc@1132 7738 # Set some defaults for GNU ld with shared library support. These
adamc@1132 7739 # are reset later if shared libraries are not supported. Putting them
adamc@1132 7740 # here allows them to be overridden if necessary.
adamc@1132 7741 runpath_var=LD_RUN_PATH
adamc@1132 7742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
adamc@1132 7743 export_dynamic_flag_spec='${wl}--export-dynamic'
adamc@1132 7744 # ancient GNU ld didn't support --whole-archive et. al.
adamc@1132 7745 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
adamc@1132 7746 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
adamc@1132 7747 else
adamc@1132 7748 whole_archive_flag_spec=
adamc@1132 7749 fi
adamc@1132 7750 supports_anon_versioning=no
adamc@1132 7751 case `$LD -v 2>&1` in
adamc@1132 7752 *GNU\ gold*) supports_anon_versioning=yes ;;
adamc@1132 7753 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
adamc@1132 7754 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
adamc@1132 7755 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
adamc@1132 7756 *\ 2.11.*) ;; # other 2.11 versions
adamc@1132 7757 *) supports_anon_versioning=yes ;;
adamc@1132 7758 esac
adamc@1132 7759
adamc@1132 7760 # See if GNU ld supports shared libraries.
adamc@1132 7761 case $host_os in
adamc@1132 7762 aix[3-9]*)
adamc@1132 7763 # On AIX/PPC, the GNU linker is very broken
adamc@1132 7764 if test "$host_cpu" != ia64; then
adamc@1132 7765 ld_shlibs=no
adamc@1132 7766 cat <<_LT_EOF 1>&2
adamc@1132 7767
adamc@1132 7768 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
adamc@1132 7769 *** to be unable to reliably create shared libraries on AIX.
adamc@1132 7770 *** Therefore, libtool is disabling shared libraries support. If you
adamc@1132 7771 *** really care for shared libraries, you may want to modify your PATH
adamc@1132 7772 *** so that a non-GNU linker is found, and then restart.
adamc@1132 7773
adamc@1132 7774 _LT_EOF
adamc@1132 7775 fi
adamc@1132 7776 ;;
adamc@1132 7777
adamc@1132 7778 amigaos*)
adamc@1132 7779 case $host_cpu in
adamc@1132 7780 powerpc)
adamc@1132 7781 # see comment about AmigaOS4 .so support
adamc@1132 7782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
adamc@1132 7783 archive_expsym_cmds=''
adamc@1132 7784 ;;
adamc@1132 7785 m68k)
adamc@1132 7786 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)'
adamc@1132 7787 hardcode_libdir_flag_spec='-L$libdir'
adamc@1132 7788 hardcode_minus_L=yes
adamc@1132 7789 ;;
adamc@1132 7790 esac
adamc@1132 7791 ;;
adamc@1132 7792
adamc@1132 7793 beos*)
adamc@1132 7794 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
adamc@1132 7795 allow_undefined_flag=unsupported
adamc@1132 7796 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
adamc@1132 7797 # support --undefined. This deserves some investigation. FIXME
adamc@1132 7798 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
adamc@1132 7799 else
adamc@1132 7800 ld_shlibs=no
adamc@1132 7801 fi
adamc@1132 7802 ;;
adamc@1132 7803
adamc@1132 7804 cygwin* | mingw* | pw32* | cegcc*)
adamc@1132 7805 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
adamc@1132 7806 # as there is no search path for DLLs.
adamc@1132 7807 hardcode_libdir_flag_spec='-L$libdir'
adamc@1132 7808 allow_undefined_flag=unsupported
adamc@1132 7809 always_export_symbols=no
adamc@1132 7810 enable_shared_with_static_runtimes=yes
adamc@1132 7811 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
adamc@1132 7812
adamc@1132 7813 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
adamc@1132 7814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
adamc@1132 7815 # If the export-symbols file already is a .def file (1st line
adamc@1132 7816 # is EXPORTS), use it as is; otherwise, prepend...
adamc@1132 7817 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
adamc@1132 7818 cp $export_symbols $output_objdir/$soname.def;
adamc@1132 7819 else
adamc@1132 7820 echo EXPORTS > $output_objdir/$soname.def;
adamc@1132 7821 cat $export_symbols >> $output_objdir/$soname.def;
adamc@1132 7822 fi~
adamc@1132 7823 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
adamc@1132 7824 else
adamc@1132 7825 ld_shlibs=no
adamc@1132 7826 fi
adamc@1132 7827 ;;
adamc@1132 7828
adamc@1132 7829 interix[3-9]*)
adamc@1132 7830 hardcode_direct=no
adamc@1132 7831 hardcode_shlibpath_var=no
adamc@1132 7832 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
adamc@1132 7833 export_dynamic_flag_spec='${wl}-E'
adamc@1132 7834 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
adamc@1132 7835 # Instead, shared libraries are loaded at an image base (0x10000000 by
adamc@1132 7836 # default) and relocated if they conflict, which is a slow very memory
adamc@1132 7837 # consuming and fragmenting process. To avoid this, we pick a random,
adamc@1132 7838 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
adamc@1132 7839 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
adamc@1132 7840 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
adamc@1132 7841 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'
adamc@1132 7842 ;;
adamc@1132 7843
adamc@1132 7844 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
adamc@1132 7845 tmp_diet=no
adamc@1132 7846 if test "$host_os" = linux-dietlibc; then
adamc@1132 7847 case $cc_basename in
adamc@1132 7848 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
adamc@1132 7849 esac
adamc@1132 7850 fi
adamc@1132 7851 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
adamc@1132 7852 && test "$tmp_diet" = no
adamc@1132 7853 then
adamc@1132 7854 tmp_addflag=
adamc@1132 7855 tmp_sharedflag='-shared'
adamc@1132 7856 case $cc_basename,$host_cpu in
adamc@1132 7857 pgcc*) # Portland Group C compiler
adamc@1132 7858 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
adamc@1132 7859 tmp_addflag=' $pic_flag'
adamc@1132 7860 ;;
adamc@1132 7861 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
adamc@1132 7862 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
adamc@1132 7863 tmp_addflag=' $pic_flag -Mnomain' ;;
adamc@1132 7864 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
adamc@1132 7865 tmp_addflag=' -i_dynamic' ;;
adamc@1132 7866 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
adamc@1132 7867 tmp_addflag=' -i_dynamic -nofor_main' ;;
adamc@1132 7868 ifc* | ifort*) # Intel Fortran compiler
adamc@1132 7869 tmp_addflag=' -nofor_main' ;;
adamc@1132 7870 lf95*) # Lahey Fortran 8.1
adamc@1132 7871 whole_archive_flag_spec=
adamc@1132 7872 tmp_sharedflag='--shared' ;;
adamc@1132 7873 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
adamc@1132 7874 tmp_sharedflag='-qmkshrobj'
adamc@1132 7875 tmp_addflag= ;;
adamc@1132 7876 esac
adamc@1132 7877 case `$CC -V 2>&1 | sed 5q` in
adamc@1132 7878 *Sun\ C*) # Sun C 5.9
adamc@1132 7879 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
adamc@1132 7880 compiler_needs_object=yes
adamc@1132 7881 tmp_sharedflag='-G' ;;
adamc@1132 7882 *Sun\ F*) # Sun Fortran 8.3
adamc@1132 7883 tmp_sharedflag='-G' ;;
adamc@1132 7884 esac
adamc@1132 7885 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
adamc@1132 7886
adamc@1132 7887 if test "x$supports_anon_versioning" = xyes; then
adamc@1132 7888 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
adamc@1132 7889 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
adamc@1132 7890 echo "local: *; };" >> $output_objdir/$libname.ver~
adamc@1132 7891 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
adamc@1132 7892 fi
adamc@1132 7893
adamc@1132 7894 case $cc_basename in
adamc@1132 7895 xlf*)
adamc@1132 7896 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
adamc@1132 7897 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
adamc@1132 7898 hardcode_libdir_flag_spec=
adamc@1132 7899 hardcode_libdir_flag_spec_ld='-rpath $libdir'
adamc@1132 7900 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
adamc@1132 7901 if test "x$supports_anon_versioning" = xyes; then
adamc@1132 7902 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
adamc@1132 7903 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
adamc@1132 7904 echo "local: *; };" >> $output_objdir/$libname.ver~
adamc@1132 7905 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
adamc@1132 7906 fi
adamc@1132 7907 ;;
adamc@1132 7908 esac
adamc@1132 7909 else
adamc@1132 7910 ld_shlibs=no
adamc@1132 7911 fi
adamc@1132 7912 ;;
adamc@1132 7913
adamc@1132 7914 netbsd* | netbsdelf*-gnu)
adamc@1132 7915 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
adamc@1132 7916 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
adamc@1132 7917 wlarc=
adamc@1132 7918 else
adamc@1132 7919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
adamc@1132 7920 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
adamc@1132 7921 fi
adamc@1132 7922 ;;
adamc@1132 7923
adamc@1132 7924 solaris*)
adamc@1132 7925 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
adamc@1132 7926 ld_shlibs=no
adamc@1132 7927 cat <<_LT_EOF 1>&2
adamc@1132 7928
adamc@1132 7929 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
adamc@1132 7930 *** create shared libraries on Solaris systems. Therefore, libtool
adamc@1132 7931 *** is disabling shared libraries support. We urge you to upgrade GNU
adamc@1132 7932 *** binutils to release 2.9.1 or newer. Another option is to modify
adamc@1132 7933 *** your PATH or compiler configuration so that the native linker is
adamc@1132 7934 *** used, and then restart.
adamc@1132 7935
adamc@1132 7936 _LT_EOF
adamc@1132 7937 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
adamc@1132 7938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
adamc@1132 7939 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
adamc@1132 7940 else
adamc@1132 7941 ld_shlibs=no
adamc@1132 7942 fi
adamc@1132 7943 ;;
adamc@1132 7944
adamc@1132 7945 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
adamc@1132 7946 case `$LD -v 2>&1` in
adamc@1132 7947 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
adamc@1132 7948 ld_shlibs=no
adamc@1132 7949 cat <<_LT_EOF 1>&2
adamc@1132 7950
adamc@1132 7951 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
adamc@1132 7952 *** reliably create shared libraries on SCO systems. Therefore, libtool
adamc@1132 7953 *** is disabling shared libraries support. We urge you to upgrade GNU
adamc@1132 7954 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
adamc@1132 7955 *** your PATH or compiler configuration so that the native linker is
adamc@1132 7956 *** used, and then restart.
adamc@1132 7957
adamc@1132 7958 _LT_EOF
adamc@1132 7959 ;;
adamc@1132 7960 *)
adamc@1132 7961 # For security reasons, it is highly recommended that you always
adamc@1132 7962 # use absolute paths for naming shared libraries, and exclude the
adamc@1132 7963 # DT_RUNPATH tag from executables and libraries. But doing so
adamc@1132 7964 # requires that you compile everything twice, which is a pain.
adamc@1132 7965 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
adamc@1132 7966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
adamc@1132 7967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
adamc@1132 7968 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
adamc@1132 7969 else
adamc@1132 7970 ld_shlibs=no
adamc@1132 7971 fi
adamc@1132 7972 ;;
adamc@1132 7973 esac
adamc@1132 7974 ;;
adamc@1132 7975
adamc@1132 7976 sunos4*)
adamc@1132 7977 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 7978 wlarc=
adamc@1132 7979 hardcode_direct=yes
adamc@1132 7980 hardcode_shlibpath_var=no
adamc@1132 7981 ;;
adamc@1132 7982
adamc@1132 7983 *)
adamc@1132 7984 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
adamc@1132 7985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
adamc@1132 7986 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
adamc@1132 7987 else
adamc@1132 7988 ld_shlibs=no
adamc@1132 7989 fi
adamc@1132 7990 ;;
adamc@1132 7991 esac
adamc@1132 7992
adamc@1132 7993 if test "$ld_shlibs" = no; then
adamc@1132 7994 runpath_var=
adamc@1132 7995 hardcode_libdir_flag_spec=
adamc@1132 7996 export_dynamic_flag_spec=
adamc@1132 7997 whole_archive_flag_spec=
adamc@1132 7998 fi
adamc@1132 7999 else
adamc@1132 8000 # PORTME fill in a description of your system's linker (not GNU ld)
adamc@1132 8001 case $host_os in
adamc@1132 8002 aix3*)
adamc@1132 8003 allow_undefined_flag=unsupported
adamc@1132 8004 always_export_symbols=yes
adamc@1132 8005 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'
adamc@1132 8006 # Note: this linker hardcodes the directories in LIBPATH if there
adamc@1132 8007 # are no directories specified by -L.
adamc@1132 8008 hardcode_minus_L=yes
adamc@1132 8009 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
adamc@1132 8010 # Neither direct hardcoding nor static linking is supported with a
adamc@1132 8011 # broken collect2.
adamc@1132 8012 hardcode_direct=unsupported
adamc@1132 8013 fi
adamc@1132 8014 ;;
adamc@1132 8015
adamc@1132 8016 aix[4-9]*)
adamc@1132 8017 if test "$host_cpu" = ia64; then
adamc@1132 8018 # On IA64, the linker does run time linking by default, so we don't
adamc@1132 8019 # have to do anything special.
adamc@1132 8020 aix_use_runtimelinking=no
adamc@1132 8021 exp_sym_flag='-Bexport'
adamc@1132 8022 no_entry_flag=""
adamc@1132 8023 else
adamc@1132 8024 # If we're using GNU nm, then we don't want the "-C" option.
adamc@1132 8025 # -C means demangle to AIX nm, but means don't demangle with GNU nm
adamc@1132 8026 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
adamc@1132 8027 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
adamc@1132 8028 else
adamc@1132 8029 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'
adamc@1132 8030 fi
adamc@1132 8031 aix_use_runtimelinking=no
adamc@1132 8032
adamc@1132 8033 # Test if we are trying to use run time linking or normal
adamc@1132 8034 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
adamc@1132 8035 # need to do runtime linking.
adamc@1132 8036 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
adamc@1132 8037 for ld_flag in $LDFLAGS; do
adamc@1132 8038 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
adamc@1132 8039 aix_use_runtimelinking=yes
adamc@1132 8040 break
adamc@1132 8041 fi
adamc@1132 8042 done
adamc@1132 8043 ;;
adamc@1132 8044 esac
adamc@1132 8045
adamc@1132 8046 exp_sym_flag='-bexport'
adamc@1132 8047 no_entry_flag='-bnoentry'
adamc@1132 8048 fi
adamc@1132 8049
adamc@1132 8050 # When large executables or shared objects are built, AIX ld can
adamc@1132 8051 # have problems creating the table of contents. If linking a library
adamc@1132 8052 # or program results in "error TOC overflow" add -mminimal-toc to
adamc@1132 8053 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
adamc@1132 8054 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
adamc@1132 8055
adamc@1132 8056 archive_cmds=''
adamc@1132 8057 hardcode_direct=yes
adamc@1132 8058 hardcode_direct_absolute=yes
adamc@1132 8059 hardcode_libdir_separator=':'
adamc@1132 8060 link_all_deplibs=yes
adamc@1132 8061 file_list_spec='${wl}-f,'
adamc@1132 8062
adamc@1132 8063 if test "$GCC" = yes; then
adamc@1132 8064 case $host_os in aix4.[012]|aix4.[012].*)
adamc@1132 8065 # We only want to do this on AIX 4.2 and lower, the check
adamc@1132 8066 # below for broken collect2 doesn't work under 4.3+
adamc@1132 8067 collect2name=`${CC} -print-prog-name=collect2`
adamc@1132 8068 if test -f "$collect2name" &&
adamc@1132 8069 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
adamc@1132 8070 then
adamc@1132 8071 # We have reworked collect2
adamc@1132 8072 :
adamc@1132 8073 else
adamc@1132 8074 # We have old collect2
adamc@1132 8075 hardcode_direct=unsupported
adamc@1132 8076 # It fails to find uninstalled libraries when the uninstalled
adamc@1132 8077 # path is not listed in the libpath. Setting hardcode_minus_L
adamc@1132 8078 # to unsupported forces relinking
adamc@1132 8079 hardcode_minus_L=yes
adamc@1132 8080 hardcode_libdir_flag_spec='-L$libdir'
adamc@1132 8081 hardcode_libdir_separator=
adamc@1132 8082 fi
adamc@1132 8083 ;;
adamc@1132 8084 esac
adamc@1132 8085 shared_flag='-shared'
adamc@1132 8086 if test "$aix_use_runtimelinking" = yes; then
adamc@1132 8087 shared_flag="$shared_flag "'${wl}-G'
adamc@1132 8088 fi
adamc@1132 8089 link_all_deplibs=no
adamc@1132 8090 else
adamc@1132 8091 # not using gcc
adamc@1132 8092 if test "$host_cpu" = ia64; then
adamc@1132 8093 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
adamc@1132 8094 # chokes on -Wl,-G. The following line is correct:
adamc@1132 8095 shared_flag='-G'
adamc@1132 8096 else
adamc@1132 8097 if test "$aix_use_runtimelinking" = yes; then
adamc@1132 8098 shared_flag='${wl}-G'
adamc@1132 8099 else
adamc@1132 8100 shared_flag='${wl}-bM:SRE'
adamc@1132 8101 fi
adamc@1132 8102 fi
adamc@1132 8103 fi
adamc@1132 8104
adamc@1132 8105 export_dynamic_flag_spec='${wl}-bexpall'
adamc@1132 8106 # It seems that -bexpall does not export symbols beginning with
adamc@1132 8107 # underscore (_), so it is better to generate a list of symbols to export.
adamc@1132 8108 always_export_symbols=yes
adamc@1132 8109 if test "$aix_use_runtimelinking" = yes; then
adamc@1132 8110 # Warning - without using the other runtime loading flags (-brtl),
adamc@1132 8111 # -berok will link without error, but may produce a broken library.
adamc@1132 8112 allow_undefined_flag='-berok'
adamc@1132 8113 # Determine the default libpath from the value encoded in an
adamc@1132 8114 # empty executable.
adamc@1132 8115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 8116 /* end confdefs.h. */
adamc@1132 8117
adamc@1132 8118 int
adamc@1132 8119 main ()
adamc@1132 8120 {
adamc@1132 8121
adamc@1132 8122 ;
adamc@1132 8123 return 0;
adamc@1132 8124 }
adamc@1132 8125 _ACEOF
adamc@1132 8126 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 8127
adamc@1132 8128 lt_aix_libpath_sed='
adamc@1132 8129 /Import File Strings/,/^$/ {
adamc@1132 8130 /^0/ {
adamc@1132 8131 s/^0 *\(.*\)$/\1/
adamc@1132 8132 p
adamc@1132 8133 }
adamc@1132 8134 }'
adamc@1132 8135 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
adamc@1132 8136 # Check for a 64-bit object if we didn't find anything.
adamc@1132 8137 if test -z "$aix_libpath"; then
adamc@1132 8138 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
adamc@1132 8139 fi
adamc@1132 8140 fi
adamc@1132 8141 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 8142 conftest$ac_exeext conftest.$ac_ext
adamc@1132 8143 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
adamc@1132 8144
adamc@1132 8145 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
adamc@1132 8146 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
adamc@1132 8147 else
adamc@1132 8148 if test "$host_cpu" = ia64; then
adamc@1132 8149 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
adamc@1132 8150 allow_undefined_flag="-z nodefs"
adamc@1132 8151 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"
adamc@1132 8152 else
adamc@1132 8153 # Determine the default libpath from the value encoded in an
adamc@1132 8154 # empty executable.
adamc@1132 8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 8156 /* end confdefs.h. */
adamc@1132 8157
adamc@1132 8158 int
adamc@1132 8159 main ()
adamc@1132 8160 {
adamc@1132 8161
adamc@1132 8162 ;
adamc@1132 8163 return 0;
adamc@1132 8164 }
adamc@1132 8165 _ACEOF
adamc@1132 8166 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 8167
adamc@1132 8168 lt_aix_libpath_sed='
adamc@1132 8169 /Import File Strings/,/^$/ {
adamc@1132 8170 /^0/ {
adamc@1132 8171 s/^0 *\(.*\)$/\1/
adamc@1132 8172 p
adamc@1132 8173 }
adamc@1132 8174 }'
adamc@1132 8175 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
adamc@1132 8176 # Check for a 64-bit object if we didn't find anything.
adamc@1132 8177 if test -z "$aix_libpath"; then
adamc@1132 8178 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
adamc@1132 8179 fi
adamc@1132 8180 fi
adamc@1132 8181 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 8182 conftest$ac_exeext conftest.$ac_ext
adamc@1132 8183 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
adamc@1132 8184
adamc@1132 8185 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
adamc@1132 8186 # Warning - without using the other run time loading flags,
adamc@1132 8187 # -berok will link without error, but may produce a broken library.
adamc@1132 8188 no_undefined_flag=' ${wl}-bernotok'
adamc@1132 8189 allow_undefined_flag=' ${wl}-berok'
adamc@1132 8190 # Exported symbols can be pulled into shared objects from archives
adamc@1132 8191 whole_archive_flag_spec='$convenience'
adamc@1132 8192 archive_cmds_need_lc=yes
adamc@1132 8193 # This is similar to how AIX traditionally builds its shared libraries.
adamc@1132 8194 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'
adamc@1132 8195 fi
adamc@1132 8196 fi
adamc@1132 8197 ;;
adamc@1132 8198
adamc@1132 8199 amigaos*)
adamc@1132 8200 case $host_cpu in
adamc@1132 8201 powerpc)
adamc@1132 8202 # see comment about AmigaOS4 .so support
adamc@1132 8203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
adamc@1132 8204 archive_expsym_cmds=''
adamc@1132 8205 ;;
adamc@1132 8206 m68k)
adamc@1132 8207 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)'
adamc@1132 8208 hardcode_libdir_flag_spec='-L$libdir'
adamc@1132 8209 hardcode_minus_L=yes
adamc@1132 8210 ;;
adamc@1132 8211 esac
adamc@1132 8212 ;;
adamc@1132 8213
adamc@1132 8214 bsdi[45]*)
adamc@1132 8215 export_dynamic_flag_spec=-rdynamic
adamc@1132 8216 ;;
adamc@1132 8217
adamc@1132 8218 cygwin* | mingw* | pw32* | cegcc*)
adamc@1132 8219 # When not using gcc, we currently assume that we are using
adamc@1132 8220 # Microsoft Visual C++.
adamc@1132 8221 # hardcode_libdir_flag_spec is actually meaningless, as there is
adamc@1132 8222 # no search path for DLLs.
adamc@1132 8223 hardcode_libdir_flag_spec=' '
adamc@1132 8224 allow_undefined_flag=unsupported
adamc@1132 8225 # Tell ltmain to make .lib files, not .a files.
adamc@1132 8226 libext=lib
adamc@1132 8227 # Tell ltmain to make .dll files, not .so files.
adamc@1132 8228 shrext_cmds=".dll"
adamc@1132 8229 # FIXME: Setting linknames here is a bad hack.
adamc@1132 8230 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
adamc@1132 8231 # The linker will automatically build a .lib file if we build a DLL.
adamc@1132 8232 old_archive_from_new_cmds='true'
adamc@1132 8233 # FIXME: Should let the user specify the lib program.
adamc@1132 8234 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
adamc@1132 8235 fix_srcfile_path='`cygpath -w "$srcfile"`'
adamc@1132 8236 enable_shared_with_static_runtimes=yes
adamc@1132 8237 ;;
adamc@1132 8238
adamc@1132 8239 darwin* | rhapsody*)
adamc@1132 8240
adamc@1132 8241
adamc@1132 8242 archive_cmds_need_lc=no
adamc@1132 8243 hardcode_direct=no
adamc@1132 8244 hardcode_automatic=yes
adamc@1132 8245 hardcode_shlibpath_var=unsupported
adamc@1132 8246 whole_archive_flag_spec=''
adamc@1132 8247 link_all_deplibs=yes
adamc@1132 8248 allow_undefined_flag="$_lt_dar_allow_undefined"
adamc@1132 8249 case $cc_basename in
adamc@1132 8250 ifort*) _lt_dar_can_shared=yes ;;
adamc@1132 8251 *) _lt_dar_can_shared=$GCC ;;
adamc@1132 8252 esac
adamc@1132 8253 if test "$_lt_dar_can_shared" = "yes"; then
adamc@1132 8254 output_verbose_link_cmd=echo
adamc@1132 8255 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
adamc@1132 8256 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
adamc@1132 8257 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}"
adamc@1132 8258 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}"
adamc@1132 8259
adamc@1132 8260 else
adamc@1132 8261 ld_shlibs=no
adamc@1132 8262 fi
adamc@1132 8263
adamc@1132 8264 ;;
adamc@1132 8265
adamc@1132 8266 dgux*)
adamc@1132 8267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 8268 hardcode_libdir_flag_spec='-L$libdir'
adamc@1132 8269 hardcode_shlibpath_var=no
adamc@1132 8270 ;;
adamc@1132 8271
adamc@1132 8272 freebsd1*)
adamc@1132 8273 ld_shlibs=no
adamc@1132 8274 ;;
adamc@1132 8275
adamc@1132 8276 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
adamc@1132 8277 # support. Future versions do this automatically, but an explicit c++rt0.o
adamc@1132 8278 # does not break anything, and helps significantly (at the cost of a little
adamc@1132 8279 # extra space).
adamc@1132 8280 freebsd2.2*)
adamc@1132 8281 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
adamc@1132 8282 hardcode_libdir_flag_spec='-R$libdir'
adamc@1132 8283 hardcode_direct=yes
adamc@1132 8284 hardcode_shlibpath_var=no
adamc@1132 8285 ;;
adamc@1132 8286
adamc@1132 8287 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
adamc@1132 8288 freebsd2*)
adamc@1132 8289 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 8290 hardcode_direct=yes
adamc@1132 8291 hardcode_minus_L=yes
adamc@1132 8292 hardcode_shlibpath_var=no
adamc@1132 8293 ;;
adamc@1132 8294
adamc@1132 8295 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
adamc@1132 8296 freebsd* | dragonfly*)
adamc@1132 8297 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 8298 hardcode_libdir_flag_spec='-R$libdir'
adamc@1132 8299 hardcode_direct=yes
adamc@1132 8300 hardcode_shlibpath_var=no
adamc@1132 8301 ;;
adamc@1132 8302
adamc@1132 8303 hpux9*)
adamc@1132 8304 if test "$GCC" = yes; then
adamc@1132 8305 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
adamc@1132 8306 else
adamc@1132 8307 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'
adamc@1132 8308 fi
adamc@1132 8309 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
adamc@1132 8310 hardcode_libdir_separator=:
adamc@1132 8311 hardcode_direct=yes
adamc@1132 8312
adamc@1132 8313 # hardcode_minus_L: Not really in the search PATH,
adamc@1132 8314 # but as the default location of the library.
adamc@1132 8315 hardcode_minus_L=yes
adamc@1132 8316 export_dynamic_flag_spec='${wl}-E'
adamc@1132 8317 ;;
adamc@1132 8318
adamc@1132 8319 hpux10*)
adamc@1132 8320 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
adamc@1132 8321 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 8322 else
adamc@1132 8323 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 8324 fi
adamc@1132 8325 if test "$with_gnu_ld" = no; then
adamc@1132 8326 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
adamc@1132 8327 hardcode_libdir_flag_spec_ld='+b $libdir'
adamc@1132 8328 hardcode_libdir_separator=:
adamc@1132 8329 hardcode_direct=yes
adamc@1132 8330 hardcode_direct_absolute=yes
adamc@1132 8331 export_dynamic_flag_spec='${wl}-E'
adamc@1132 8332 # hardcode_minus_L: Not really in the search PATH,
adamc@1132 8333 # but as the default location of the library.
adamc@1132 8334 hardcode_minus_L=yes
adamc@1132 8335 fi
adamc@1132 8336 ;;
adamc@1132 8337
adamc@1132 8338 hpux11*)
adamc@1132 8339 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
adamc@1132 8340 case $host_cpu in
adamc@1132 8341 hppa*64*)
adamc@1132 8342 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 8343 ;;
adamc@1132 8344 ia64*)
adamc@1132 8345 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 8346 ;;
adamc@1132 8347 *)
adamc@1132 8348 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 8349 ;;
adamc@1132 8350 esac
adamc@1132 8351 else
adamc@1132 8352 case $host_cpu in
adamc@1132 8353 hppa*64*)
adamc@1132 8354 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 8355 ;;
adamc@1132 8356 ia64*)
adamc@1132 8357 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 8358 ;;
adamc@1132 8359 *)
adamc@1132 8360 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 8361 ;;
adamc@1132 8362 esac
adamc@1132 8363 fi
adamc@1132 8364 if test "$with_gnu_ld" = no; then
adamc@1132 8365 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
adamc@1132 8366 hardcode_libdir_separator=:
adamc@1132 8367
adamc@1132 8368 case $host_cpu in
adamc@1132 8369 hppa*64*|ia64*)
adamc@1132 8370 hardcode_direct=no
adamc@1132 8371 hardcode_shlibpath_var=no
adamc@1132 8372 ;;
adamc@1132 8373 *)
adamc@1132 8374 hardcode_direct=yes
adamc@1132 8375 hardcode_direct_absolute=yes
adamc@1132 8376 export_dynamic_flag_spec='${wl}-E'
adamc@1132 8377
adamc@1132 8378 # hardcode_minus_L: Not really in the search PATH,
adamc@1132 8379 # but as the default location of the library.
adamc@1132 8380 hardcode_minus_L=yes
adamc@1132 8381 ;;
adamc@1132 8382 esac
adamc@1132 8383 fi
adamc@1132 8384 ;;
adamc@1132 8385
adamc@1132 8386 irix5* | irix6* | nonstopux*)
adamc@1132 8387 if test "$GCC" = yes; then
adamc@1132 8388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
adamc@1132 8389 # Try to use the -exported_symbol ld option, if it does not
adamc@1132 8390 # work, assume that -exports_file does not work either and
adamc@1132 8391 # implicitly export all symbols.
adamc@1132 8392 save_LDFLAGS="$LDFLAGS"
adamc@1132 8393 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
adamc@1132 8394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 8395 /* end confdefs.h. */
adamc@1132 8396 int foo(void) {}
adamc@1132 8397 _ACEOF
adamc@1132 8398 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 8399 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
adamc@1132 8400
adamc@1132 8401 fi
adamc@1132 8402 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 8403 conftest$ac_exeext conftest.$ac_ext
adamc@1132 8404 LDFLAGS="$save_LDFLAGS"
adamc@1132 8405 else
adamc@1132 8406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
adamc@1132 8407 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
adamc@1132 8408 fi
adamc@1132 8409 archive_cmds_need_lc='no'
adamc@1132 8410 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
adamc@1132 8411 hardcode_libdir_separator=:
adamc@1132 8412 inherit_rpath=yes
adamc@1132 8413 link_all_deplibs=yes
adamc@1132 8414 ;;
adamc@1132 8415
adamc@1132 8416 netbsd* | netbsdelf*-gnu)
adamc@1132 8417 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
adamc@1132 8418 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
adamc@1132 8419 else
adamc@1132 8420 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
adamc@1132 8421 fi
adamc@1132 8422 hardcode_libdir_flag_spec='-R$libdir'
adamc@1132 8423 hardcode_direct=yes
adamc@1132 8424 hardcode_shlibpath_var=no
adamc@1132 8425 ;;
adamc@1132 8426
adamc@1132 8427 newsos6)
adamc@1132 8428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 8429 hardcode_direct=yes
adamc@1132 8430 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
adamc@1132 8431 hardcode_libdir_separator=:
adamc@1132 8432 hardcode_shlibpath_var=no
adamc@1132 8433 ;;
adamc@1132 8434
adamc@1132 8435 *nto* | *qnx*)
adamc@1132 8436 ;;
adamc@1132 8437
adamc@1132 8438 openbsd*)
adamc@1132 8439 if test -f /usr/libexec/ld.so; then
adamc@1132 8440 hardcode_direct=yes
adamc@1132 8441 hardcode_shlibpath_var=no
adamc@1132 8442 hardcode_direct_absolute=yes
adamc@1132 8443 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
adamc@1132 8444 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 8445 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
adamc@1132 8446 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
adamc@1132 8447 export_dynamic_flag_spec='${wl}-E'
adamc@1132 8448 else
adamc@1132 8449 case $host_os in
adamc@1132 8450 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
adamc@1132 8451 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 8452 hardcode_libdir_flag_spec='-R$libdir'
adamc@1132 8453 ;;
adamc@1132 8454 *)
adamc@1132 8455 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 8456 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
adamc@1132 8457 ;;
adamc@1132 8458 esac
adamc@1132 8459 fi
adamc@1132 8460 else
adamc@1132 8461 ld_shlibs=no
adamc@1132 8462 fi
adamc@1132 8463 ;;
adamc@1132 8464
adamc@1132 8465 os2*)
adamc@1132 8466 hardcode_libdir_flag_spec='-L$libdir'
adamc@1132 8467 hardcode_minus_L=yes
adamc@1132 8468 allow_undefined_flag=unsupported
adamc@1132 8469 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'
adamc@1132 8470 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
adamc@1132 8471 ;;
adamc@1132 8472
adamc@1132 8473 osf3*)
adamc@1132 8474 if test "$GCC" = yes; then
adamc@1132 8475 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
adamc@1132 8476 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
adamc@1132 8477 else
adamc@1132 8478 allow_undefined_flag=' -expect_unresolved \*'
adamc@1132 8479 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
adamc@1132 8480 fi
adamc@1132 8481 archive_cmds_need_lc='no'
adamc@1132 8482 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
adamc@1132 8483 hardcode_libdir_separator=:
adamc@1132 8484 ;;
adamc@1132 8485
adamc@1132 8486 osf4* | osf5*) # as osf3* with the addition of -msym flag
adamc@1132 8487 if test "$GCC" = yes; then
adamc@1132 8488 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
adamc@1132 8489 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
adamc@1132 8490 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
adamc@1132 8491 else
adamc@1132 8492 allow_undefined_flag=' -expect_unresolved \*'
adamc@1132 8493 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
adamc@1132 8494 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~
adamc@1132 8495 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
adamc@1132 8496
adamc@1132 8497 # Both c and cxx compiler support -rpath directly
adamc@1132 8498 hardcode_libdir_flag_spec='-rpath $libdir'
adamc@1132 8499 fi
adamc@1132 8500 archive_cmds_need_lc='no'
adamc@1132 8501 hardcode_libdir_separator=:
adamc@1132 8502 ;;
adamc@1132 8503
adamc@1132 8504 solaris*)
adamc@1132 8505 no_undefined_flag=' -z defs'
adamc@1132 8506 if test "$GCC" = yes; then
adamc@1132 8507 wlarc='${wl}'
adamc@1132 8508 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 8509 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
adamc@1132 8510 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
adamc@1132 8511 else
adamc@1132 8512 case `$CC -V 2>&1` in
adamc@1132 8513 *"Compilers 5.0"*)
adamc@1132 8514 wlarc=''
adamc@1132 8515 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 8516 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
adamc@1132 8517 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
adamc@1132 8518 ;;
adamc@1132 8519 *)
adamc@1132 8520 wlarc='${wl}'
adamc@1132 8521 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 8522 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
adamc@1132 8523 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
adamc@1132 8524 ;;
adamc@1132 8525 esac
adamc@1132 8526 fi
adamc@1132 8527 hardcode_libdir_flag_spec='-R$libdir'
adamc@1132 8528 hardcode_shlibpath_var=no
adamc@1132 8529 case $host_os in
adamc@1132 8530 solaris2.[0-5] | solaris2.[0-5].*) ;;
adamc@1132 8531 *)
adamc@1132 8532 # The compiler driver will combine and reorder linker options,
adamc@1132 8533 # but understands `-z linker_flag'. GCC discards it without `$wl',
adamc@1132 8534 # but is careful enough not to reorder.
adamc@1132 8535 # Supported since Solaris 2.6 (maybe 2.5.1?)
adamc@1132 8536 if test "$GCC" = yes; then
adamc@1132 8537 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
adamc@1132 8538 else
adamc@1132 8539 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
adamc@1132 8540 fi
adamc@1132 8541 ;;
adamc@1132 8542 esac
adamc@1132 8543 link_all_deplibs=yes
adamc@1132 8544 ;;
adamc@1132 8545
adamc@1132 8546 sunos4*)
adamc@1132 8547 if test "x$host_vendor" = xsequent; then
adamc@1132 8548 # Use $CC to link under sequent, because it throws in some extra .o
adamc@1132 8549 # files that make .init and .fini sections work.
adamc@1132 8550 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 8551 else
adamc@1132 8552 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 8553 fi
adamc@1132 8554 hardcode_libdir_flag_spec='-L$libdir'
adamc@1132 8555 hardcode_direct=yes
adamc@1132 8556 hardcode_minus_L=yes
adamc@1132 8557 hardcode_shlibpath_var=no
adamc@1132 8558 ;;
adamc@1132 8559
adamc@1132 8560 sysv4)
adamc@1132 8561 case $host_vendor in
adamc@1132 8562 sni)
adamc@1132 8563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 8564 hardcode_direct=yes # is this really true???
adamc@1132 8565 ;;
adamc@1132 8566 siemens)
adamc@1132 8567 ## LD is ld it makes a PLAMLIB
adamc@1132 8568 ## CC just makes a GrossModule.
adamc@1132 8569 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 8570 reload_cmds='$CC -r -o $output$reload_objs'
adamc@1132 8571 hardcode_direct=no
adamc@1132 8572 ;;
adamc@1132 8573 motorola)
adamc@1132 8574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 8575 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
adamc@1132 8576 ;;
adamc@1132 8577 esac
adamc@1132 8578 runpath_var='LD_RUN_PATH'
adamc@1132 8579 hardcode_shlibpath_var=no
adamc@1132 8580 ;;
adamc@1132 8581
adamc@1132 8582 sysv4.3*)
adamc@1132 8583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 8584 hardcode_shlibpath_var=no
adamc@1132 8585 export_dynamic_flag_spec='-Bexport'
adamc@1132 8586 ;;
adamc@1132 8587
adamc@1132 8588 sysv4*MP*)
adamc@1132 8589 if test -d /usr/nec; then
adamc@1132 8590 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 8591 hardcode_shlibpath_var=no
adamc@1132 8592 runpath_var=LD_RUN_PATH
adamc@1132 8593 hardcode_runpath_var=yes
adamc@1132 8594 ld_shlibs=yes
adamc@1132 8595 fi
adamc@1132 8596 ;;
adamc@1132 8597
adamc@1132 8598 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
adamc@1132 8599 no_undefined_flag='${wl}-z,text'
adamc@1132 8600 archive_cmds_need_lc=no
adamc@1132 8601 hardcode_shlibpath_var=no
adamc@1132 8602 runpath_var='LD_RUN_PATH'
adamc@1132 8603
adamc@1132 8604 if test "$GCC" = yes; then
adamc@1132 8605 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 8606 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 8607 else
adamc@1132 8608 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 8609 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 8610 fi
adamc@1132 8611 ;;
adamc@1132 8612
adamc@1132 8613 sysv5* | sco3.2v5* | sco5v6*)
adamc@1132 8614 # Note: We can NOT use -z defs as we might desire, because we do not
adamc@1132 8615 # link with -lc, and that would cause any symbols used from libc to
adamc@1132 8616 # always be unresolved, which means just about no library would
adamc@1132 8617 # ever link correctly. If we're not using GNU ld we use -z text
adamc@1132 8618 # though, which does catch some bad symbols but isn't as heavy-handed
adamc@1132 8619 # as -z defs.
adamc@1132 8620 no_undefined_flag='${wl}-z,text'
adamc@1132 8621 allow_undefined_flag='${wl}-z,nodefs'
adamc@1132 8622 archive_cmds_need_lc=no
adamc@1132 8623 hardcode_shlibpath_var=no
adamc@1132 8624 hardcode_libdir_flag_spec='${wl}-R,$libdir'
adamc@1132 8625 hardcode_libdir_separator=':'
adamc@1132 8626 link_all_deplibs=yes
adamc@1132 8627 export_dynamic_flag_spec='${wl}-Bexport'
adamc@1132 8628 runpath_var='LD_RUN_PATH'
adamc@1132 8629
adamc@1132 8630 if test "$GCC" = yes; then
adamc@1132 8631 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 8632 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 8633 else
adamc@1132 8634 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 8635 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 8636 fi
adamc@1132 8637 ;;
adamc@1132 8638
adamc@1132 8639 uts4*)
adamc@1132 8640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 8641 hardcode_libdir_flag_spec='-L$libdir'
adamc@1132 8642 hardcode_shlibpath_var=no
adamc@1132 8643 ;;
adamc@1132 8644
adamc@1132 8645 *)
adamc@1132 8646 ld_shlibs=no
adamc@1132 8647 ;;
adamc@1132 8648 esac
adamc@1132 8649
adamc@1132 8650 if test x$host_vendor = xsni; then
adamc@1132 8651 case $host in
adamc@1132 8652 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
adamc@1132 8653 export_dynamic_flag_spec='${wl}-Blargedynsym'
adamc@1132 8654 ;;
adamc@1132 8655 esac
adamc@1132 8656 fi
adamc@1132 8657 fi
adamc@1132 8658
adamc@1132 8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
adamc@1132 8660 $as_echo "$ld_shlibs" >&6; }
adamc@1132 8661 test "$ld_shlibs" = no && can_build_shared=no
adamc@1132 8662
adamc@1132 8663 with_gnu_ld=$with_gnu_ld
adamc@1132 8664
adamc@1132 8665
adamc@1132 8666
adamc@1132 8667
adamc@1132 8668
adamc@1132 8669
adamc@1132 8670
adamc@1132 8671
adamc@1132 8672
adamc@1132 8673
adamc@1132 8674
adamc@1132 8675
adamc@1132 8676
adamc@1132 8677
adamc@1132 8678
adamc@1132 8679 #
adamc@1132 8680 # Do we need to explicitly link libc?
adamc@1132 8681 #
adamc@1132 8682 case "x$archive_cmds_need_lc" in
adamc@1132 8683 x|xyes)
adamc@1132 8684 # Assume -lc should be added
adamc@1132 8685 archive_cmds_need_lc=yes
adamc@1132 8686
adamc@1132 8687 if test "$enable_shared" = yes && test "$GCC" = yes; then
adamc@1132 8688 case $archive_cmds in
adamc@1132 8689 *'~'*)
adamc@1132 8690 # FIXME: we may have to deal with multi-command sequences.
adamc@1132 8691 ;;
adamc@1132 8692 '$CC '*)
adamc@1132 8693 # Test whether the compiler implicitly links with -lc since on some
adamc@1132 8694 # systems, -lgcc has to come before -lc. If gcc already passes -lc
adamc@1132 8695 # to ld, don't add -lc before -lgcc.
adamc@1132 8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
adamc@1132 8697 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
adamc@1132 8698 $RM conftest*
adamc@1132 8699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
adamc@1132 8700
adamc@1132 8701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
adamc@1132 8702 (eval $ac_compile) 2>&5
adamc@1132 8703 ac_status=$?
adamc@1132 8704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 8705 test $ac_status = 0; } 2>conftest.err; then
adamc@1132 8706 soname=conftest
adamc@1132 8707 lib=conftest
adamc@1132 8708 libobjs=conftest.$ac_objext
adamc@1132 8709 deplibs=
adamc@1132 8710 wl=$lt_prog_compiler_wl
adamc@1132 8711 pic_flag=$lt_prog_compiler_pic
adamc@1132 8712 compiler_flags=-v
adamc@1132 8713 linker_flags=-v
adamc@1132 8714 verstring=
adamc@1132 8715 output_objdir=.
adamc@1132 8716 libname=conftest
adamc@1132 8717 lt_save_allow_undefined_flag=$allow_undefined_flag
adamc@1132 8718 allow_undefined_flag=
adamc@1132 8719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
adamc@1132 8720 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
adamc@1132 8721 ac_status=$?
adamc@1132 8722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 8723 test $ac_status = 0; }
adamc@1132 8724 then
adamc@1132 8725 archive_cmds_need_lc=no
adamc@1132 8726 else
adamc@1132 8727 archive_cmds_need_lc=yes
adamc@1132 8728 fi
adamc@1132 8729 allow_undefined_flag=$lt_save_allow_undefined_flag
adamc@1132 8730 else
adamc@1132 8731 cat conftest.err 1>&5
adamc@1132 8732 fi
adamc@1132 8733 $RM conftest*
adamc@1132 8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
adamc@1132 8735 $as_echo "$archive_cmds_need_lc" >&6; }
adamc@1132 8736 ;;
adamc@1132 8737 esac
adamc@1132 8738 fi
adamc@1132 8739 ;;
adamc@1132 8740 esac
adamc@1132 8741
adamc@1132 8742
adamc@1132 8743
adamc@1132 8744
adamc@1132 8745
adamc@1132 8746
adamc@1132 8747
adamc@1132 8748
adamc@1132 8749
adamc@1132 8750
adamc@1132 8751
adamc@1132 8752
adamc@1132 8753
adamc@1132 8754
adamc@1132 8755
adamc@1132 8756
adamc@1132 8757
adamc@1132 8758
adamc@1132 8759
adamc@1132 8760
adamc@1132 8761
adamc@1132 8762
adamc@1132 8763
adamc@1132 8764
adamc@1132 8765
adamc@1132 8766
adamc@1132 8767
adamc@1132 8768
adamc@1132 8769
adamc@1132 8770
adamc@1132 8771
adamc@1132 8772
adamc@1132 8773
adamc@1132 8774
adamc@1132 8775
adamc@1132 8776
adamc@1132 8777
adamc@1132 8778
adamc@1132 8779
adamc@1132 8780
adamc@1132 8781
adamc@1132 8782
adamc@1132 8783
adamc@1132 8784
adamc@1132 8785
adamc@1132 8786
adamc@1132 8787
adamc@1132 8788
adamc@1132 8789
adamc@1132 8790
adamc@1132 8791
adamc@1132 8792
adamc@1132 8793
adamc@1132 8794
adamc@1132 8795
adamc@1132 8796
adamc@1132 8797
adamc@1132 8798
adamc@1132 8799
adamc@1132 8800
adamc@1132 8801
adamc@1132 8802
adamc@1132 8803
adamc@1132 8804
adamc@1132 8805
adamc@1132 8806
adamc@1132 8807
adamc@1132 8808
adamc@1132 8809
adamc@1132 8810
adamc@1132 8811
adamc@1132 8812
adamc@1132 8813
adamc@1132 8814
adamc@1132 8815
adamc@1132 8816
adamc@1132 8817
adamc@1132 8818
adamc@1132 8819
adamc@1132 8820
adamc@1132 8821
adamc@1132 8822
adamc@1132 8823
adamc@1132 8824
adamc@1132 8825
adamc@1132 8826
adamc@1132 8827
adamc@1132 8828
adamc@1132 8829
adamc@1132 8830
adamc@1132 8831
adamc@1132 8832
adamc@1132 8833
adamc@1132 8834
adamc@1132 8835
adamc@1132 8836
adamc@1132 8837
adamc@1132 8838
adamc@1132 8839
adamc@1132 8840
adamc@1132 8841
adamc@1132 8842
adamc@1132 8843
adamc@1132 8844
adamc@1132 8845
adamc@1132 8846
adamc@1132 8847
adamc@1132 8848
adamc@1132 8849
adamc@1132 8850
adamc@1132 8851
adamc@1132 8852
adamc@1132 8853
adamc@1132 8854
adamc@1132 8855
adamc@1132 8856
adamc@1132 8857
adamc@1132 8858
adamc@1132 8859
adamc@1132 8860
adamc@1132 8861
adamc@1132 8862
adamc@1132 8863
adamc@1132 8864
adamc@1132 8865
adamc@1132 8866
adamc@1132 8867
adamc@1132 8868
adamc@1132 8869
adamc@1132 8870
adamc@1132 8871
adamc@1132 8872
adamc@1132 8873
adamc@1132 8874
adamc@1132 8875
adamc@1132 8876
adamc@1132 8877
adamc@1132 8878
adamc@1132 8879
adamc@1132 8880
adamc@1132 8881
adamc@1132 8882
adamc@1132 8883
adamc@1132 8884
adamc@1132 8885
adamc@1132 8886
adamc@1132 8887
adamc@1132 8888
adamc@1132 8889
adamc@1132 8890
adamc@1132 8891
adamc@1132 8892
adamc@1132 8893
adamc@1132 8894
adamc@1132 8895
adamc@1132 8896
adamc@1132 8897
adamc@1132 8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
adamc@1132 8899 $as_echo_n "checking dynamic linker characteristics... " >&6; }
adamc@1132 8900
adamc@1132 8901 if test "$GCC" = yes; then
adamc@1132 8902 case $host_os in
adamc@1132 8903 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
adamc@1132 8904 *) lt_awk_arg="/^libraries:/" ;;
adamc@1132 8905 esac
adamc@1132 8906 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
adamc@1132 8907 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
adamc@1132 8908 # if the path contains ";" then we assume it to be the separator
adamc@1132 8909 # otherwise default to the standard path separator (i.e. ":") - it is
adamc@1132 8910 # assumed that no part of a normal pathname contains ";" but that should
adamc@1132 8911 # okay in the real world where ";" in dirpaths is itself problematic.
adamc@1132 8912 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
adamc@1132 8913 else
adamc@1132 8914 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
adamc@1132 8915 fi
adamc@1132 8916 # Ok, now we have the path, separated by spaces, we can step through it
adamc@1132 8917 # and add multilib dir if necessary.
adamc@1132 8918 lt_tmp_lt_search_path_spec=
adamc@1132 8919 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
adamc@1132 8920 for lt_sys_path in $lt_search_path_spec; do
adamc@1132 8921 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
adamc@1132 8922 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
adamc@1132 8923 else
adamc@1132 8924 test -d "$lt_sys_path" && \
adamc@1132 8925 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
adamc@1132 8926 fi
adamc@1132 8927 done
adamc@1132 8928 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
adamc@1132 8929 BEGIN {RS=" "; FS="/|\n";} {
adamc@1132 8930 lt_foo="";
adamc@1132 8931 lt_count=0;
adamc@1132 8932 for (lt_i = NF; lt_i > 0; lt_i--) {
adamc@1132 8933 if ($lt_i != "" && $lt_i != ".") {
adamc@1132 8934 if ($lt_i == "..") {
adamc@1132 8935 lt_count++;
adamc@1132 8936 } else {
adamc@1132 8937 if (lt_count == 0) {
adamc@1132 8938 lt_foo="/" $lt_i lt_foo;
adamc@1132 8939 } else {
adamc@1132 8940 lt_count--;
adamc@1132 8941 }
adamc@1132 8942 }
adamc@1132 8943 }
adamc@1132 8944 }
adamc@1132 8945 if (lt_foo != "") { lt_freq[lt_foo]++; }
adamc@1132 8946 if (lt_freq[lt_foo] == 1) { print lt_foo; }
adamc@1132 8947 }'`
adamc@1132 8948 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
adamc@1132 8949 else
adamc@1132 8950 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
adamc@1132 8951 fi
adamc@1132 8952 library_names_spec=
adamc@1132 8953 libname_spec='lib$name'
adamc@1132 8954 soname_spec=
adamc@1132 8955 shrext_cmds=".so"
adamc@1132 8956 postinstall_cmds=
adamc@1132 8957 postuninstall_cmds=
adamc@1132 8958 finish_cmds=
adamc@1132 8959 finish_eval=
adamc@1132 8960 shlibpath_var=
adamc@1132 8961 shlibpath_overrides_runpath=unknown
adamc@1132 8962 version_type=none
adamc@1132 8963 dynamic_linker="$host_os ld.so"
adamc@1132 8964 sys_lib_dlsearch_path_spec="/lib /usr/lib"
adamc@1132 8965 need_lib_prefix=unknown
adamc@1132 8966 hardcode_into_libs=no
adamc@1132 8967
adamc@1132 8968 # when you set need_version to no, make sure it does not cause -set_version
adamc@1132 8969 # flags to be left without arguments
adamc@1132 8970 need_version=unknown
adamc@1132 8971
adamc@1132 8972 case $host_os in
adamc@1132 8973 aix3*)
adamc@1132 8974 version_type=linux
adamc@1132 8975 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
adamc@1132 8976 shlibpath_var=LIBPATH
adamc@1132 8977
adamc@1132 8978 # AIX 3 has no versioning support, so we append a major version to the name.
adamc@1132 8979 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 8980 ;;
adamc@1132 8981
adamc@1132 8982 aix[4-9]*)
adamc@1132 8983 version_type=linux
adamc@1132 8984 need_lib_prefix=no
adamc@1132 8985 need_version=no
adamc@1132 8986 hardcode_into_libs=yes
adamc@1132 8987 if test "$host_cpu" = ia64; then
adamc@1132 8988 # AIX 5 supports IA64
adamc@1132 8989 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
adamc@1132 8990 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 8991 else
adamc@1132 8992 # With GCC up to 2.95.x, collect2 would create an import file
adamc@1132 8993 # for dependence libraries. The import file would start with
adamc@1132 8994 # the line `#! .'. This would cause the generated library to
adamc@1132 8995 # depend on `.', always an invalid library. This was fixed in
adamc@1132 8996 # development snapshots of GCC prior to 3.0.
adamc@1132 8997 case $host_os in
adamc@1132 8998 aix4 | aix4.[01] | aix4.[01].*)
adamc@1132 8999 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
adamc@1132 9000 echo ' yes '
adamc@1132 9001 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
adamc@1132 9002 :
adamc@1132 9003 else
adamc@1132 9004 can_build_shared=no
adamc@1132 9005 fi
adamc@1132 9006 ;;
adamc@1132 9007 esac
adamc@1132 9008 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
adamc@1132 9009 # soname into executable. Probably we can add versioning support to
adamc@1132 9010 # collect2, so additional links can be useful in future.
adamc@1132 9011 if test "$aix_use_runtimelinking" = yes; then
adamc@1132 9012 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
adamc@1132 9013 # instead of lib<name>.a to let people know that these are not
adamc@1132 9014 # typical AIX shared libraries.
adamc@1132 9015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 9016 else
adamc@1132 9017 # We preserve .a as extension for shared libraries through AIX4.2
adamc@1132 9018 # and later when we are not doing run time linking.
adamc@1132 9019 library_names_spec='${libname}${release}.a $libname.a'
adamc@1132 9020 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9021 fi
adamc@1132 9022 shlibpath_var=LIBPATH
adamc@1132 9023 fi
adamc@1132 9024 ;;
adamc@1132 9025
adamc@1132 9026 amigaos*)
adamc@1132 9027 case $host_cpu in
adamc@1132 9028 powerpc)
adamc@1132 9029 # Since July 2007 AmigaOS4 officially supports .so libraries.
adamc@1132 9030 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
adamc@1132 9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 9032 ;;
adamc@1132 9033 m68k)
adamc@1132 9034 library_names_spec='$libname.ixlibrary $libname.a'
adamc@1132 9035 # Create ${libname}_ixlibrary.a entries in /sys/libs.
adamc@1132 9036 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
adamc@1132 9037 ;;
adamc@1132 9038 esac
adamc@1132 9039 ;;
adamc@1132 9040
adamc@1132 9041 beos*)
adamc@1132 9042 library_names_spec='${libname}${shared_ext}'
adamc@1132 9043 dynamic_linker="$host_os ld.so"
adamc@1132 9044 shlibpath_var=LIBRARY_PATH
adamc@1132 9045 ;;
adamc@1132 9046
adamc@1132 9047 bsdi[45]*)
adamc@1132 9048 version_type=linux
adamc@1132 9049 need_version=no
adamc@1132 9050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 9051 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9052 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
adamc@1132 9053 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9054 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
adamc@1132 9055 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
adamc@1132 9056 # the default ld.so.conf also contains /usr/contrib/lib and
adamc@1132 9057 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
adamc@1132 9058 # libtool to hard-code these into programs
adamc@1132 9059 ;;
adamc@1132 9060
adamc@1132 9061 cygwin* | mingw* | pw32* | cegcc*)
adamc@1132 9062 version_type=windows
adamc@1132 9063 shrext_cmds=".dll"
adamc@1132 9064 need_version=no
adamc@1132 9065 need_lib_prefix=no
adamc@1132 9066
adamc@1132 9067 case $GCC,$host_os in
adamc@1132 9068 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
adamc@1132 9069 library_names_spec='$libname.dll.a'
adamc@1132 9070 # DLL is installed to $(libdir)/../bin by postinstall_cmds
adamc@1132 9071 postinstall_cmds='base_file=`basename \${file}`~
adamc@1132 9072 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
adamc@1132 9073 dldir=$destdir/`dirname \$dlpath`~
adamc@1132 9074 test -d \$dldir || mkdir -p \$dldir~
adamc@1132 9075 $install_prog $dir/$dlname \$dldir/$dlname~
adamc@1132 9076 chmod a+x \$dldir/$dlname~
adamc@1132 9077 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
adamc@1132 9078 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
adamc@1132 9079 fi'
adamc@1132 9080 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
adamc@1132 9081 dlpath=$dir/\$dldll~
adamc@1132 9082 $RM \$dlpath'
adamc@1132 9083 shlibpath_overrides_runpath=yes
adamc@1132 9084
adamc@1132 9085 case $host_os in
adamc@1132 9086 cygwin*)
adamc@1132 9087 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
adamc@1132 9088 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
adamc@1132 9089 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
adamc@1132 9090 ;;
adamc@1132 9091 mingw* | cegcc*)
adamc@1132 9092 # MinGW DLLs use traditional 'lib' prefix
adamc@1132 9093 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
adamc@1132 9094 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
adamc@1132 9095 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
adamc@1132 9096 # It is most probably a Windows format PATH printed by
adamc@1132 9097 # mingw gcc, but we are running on Cygwin. Gcc prints its search
adamc@1132 9098 # path with ; separators, and with drive letters. We can handle the
adamc@1132 9099 # drive letters (cygwin fileutils understands them), so leave them,
adamc@1132 9100 # especially as we might pass files found there to a mingw objdump,
adamc@1132 9101 # which wouldn't understand a cygwinified path. Ahh.
adamc@1132 9102 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
adamc@1132 9103 else
adamc@1132 9104 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
adamc@1132 9105 fi
adamc@1132 9106 ;;
adamc@1132 9107 pw32*)
adamc@1132 9108 # pw32 DLLs use 'pw' prefix rather than 'lib'
adamc@1132 9109 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
adamc@1132 9110 ;;
adamc@1132 9111 esac
adamc@1132 9112 ;;
adamc@1132 9113
adamc@1132 9114 *)
adamc@1132 9115 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
adamc@1132 9116 ;;
adamc@1132 9117 esac
adamc@1132 9118 dynamic_linker='Win32 ld.exe'
adamc@1132 9119 # FIXME: first we should search . and the directory the executable is in
adamc@1132 9120 shlibpath_var=PATH
adamc@1132 9121 ;;
adamc@1132 9122
adamc@1132 9123 darwin* | rhapsody*)
adamc@1132 9124 dynamic_linker="$host_os dyld"
adamc@1132 9125 version_type=darwin
adamc@1132 9126 need_lib_prefix=no
adamc@1132 9127 need_version=no
adamc@1132 9128 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
adamc@1132 9129 soname_spec='${libname}${release}${major}$shared_ext'
adamc@1132 9130 shlibpath_overrides_runpath=yes
adamc@1132 9131 shlibpath_var=DYLD_LIBRARY_PATH
adamc@1132 9132 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
adamc@1132 9133
adamc@1132 9134 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
adamc@1132 9135 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
adamc@1132 9136 ;;
adamc@1132 9137
adamc@1132 9138 dgux*)
adamc@1132 9139 version_type=linux
adamc@1132 9140 need_lib_prefix=no
adamc@1132 9141 need_version=no
adamc@1132 9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
adamc@1132 9143 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9144 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9145 ;;
adamc@1132 9146
adamc@1132 9147 freebsd1*)
adamc@1132 9148 dynamic_linker=no
adamc@1132 9149 ;;
adamc@1132 9150
adamc@1132 9151 freebsd* | dragonfly*)
adamc@1132 9152 # DragonFly does not have aout. When/if they implement a new
adamc@1132 9153 # versioning mechanism, adjust this.
adamc@1132 9154 if test -x /usr/bin/objformat; then
adamc@1132 9155 objformat=`/usr/bin/objformat`
adamc@1132 9156 else
adamc@1132 9157 case $host_os in
adamc@1132 9158 freebsd[123]*) objformat=aout ;;
adamc@1132 9159 *) objformat=elf ;;
adamc@1132 9160 esac
adamc@1132 9161 fi
adamc@1132 9162 version_type=freebsd-$objformat
adamc@1132 9163 case $version_type in
adamc@1132 9164 freebsd-elf*)
adamc@1132 9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
adamc@1132 9166 need_version=no
adamc@1132 9167 need_lib_prefix=no
adamc@1132 9168 ;;
adamc@1132 9169 freebsd-*)
adamc@1132 9170 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
adamc@1132 9171 need_version=yes
adamc@1132 9172 ;;
adamc@1132 9173 esac
adamc@1132 9174 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9175 case $host_os in
adamc@1132 9176 freebsd2*)
adamc@1132 9177 shlibpath_overrides_runpath=yes
adamc@1132 9178 ;;
adamc@1132 9179 freebsd3.[01]* | freebsdelf3.[01]*)
adamc@1132 9180 shlibpath_overrides_runpath=yes
adamc@1132 9181 hardcode_into_libs=yes
adamc@1132 9182 ;;
adamc@1132 9183 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
adamc@1132 9184 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
adamc@1132 9185 shlibpath_overrides_runpath=no
adamc@1132 9186 hardcode_into_libs=yes
adamc@1132 9187 ;;
adamc@1132 9188 *) # from 4.6 on, and DragonFly
adamc@1132 9189 shlibpath_overrides_runpath=yes
adamc@1132 9190 hardcode_into_libs=yes
adamc@1132 9191 ;;
adamc@1132 9192 esac
adamc@1132 9193 ;;
adamc@1132 9194
adamc@1132 9195 gnu*)
adamc@1132 9196 version_type=linux
adamc@1132 9197 need_lib_prefix=no
adamc@1132 9198 need_version=no
adamc@1132 9199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
adamc@1132 9200 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9201 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9202 hardcode_into_libs=yes
adamc@1132 9203 ;;
adamc@1132 9204
adamc@1132 9205 hpux9* | hpux10* | hpux11*)
adamc@1132 9206 # Give a soname corresponding to the major version so that dld.sl refuses to
adamc@1132 9207 # link against other versions.
adamc@1132 9208 version_type=sunos
adamc@1132 9209 need_lib_prefix=no
adamc@1132 9210 need_version=no
adamc@1132 9211 case $host_cpu in
adamc@1132 9212 ia64*)
adamc@1132 9213 shrext_cmds='.so'
adamc@1132 9214 hardcode_into_libs=yes
adamc@1132 9215 dynamic_linker="$host_os dld.so"
adamc@1132 9216 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9217 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
adamc@1132 9218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 9219 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9220 if test "X$HPUX_IA64_MODE" = X32; then
adamc@1132 9221 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
adamc@1132 9222 else
adamc@1132 9223 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
adamc@1132 9224 fi
adamc@1132 9225 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
adamc@1132 9226 ;;
adamc@1132 9227 hppa*64*)
adamc@1132 9228 shrext_cmds='.sl'
adamc@1132 9229 hardcode_into_libs=yes
adamc@1132 9230 dynamic_linker="$host_os dld.sl"
adamc@1132 9231 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
adamc@1132 9232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
adamc@1132 9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 9234 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9235 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
adamc@1132 9236 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
adamc@1132 9237 ;;
adamc@1132 9238 *)
adamc@1132 9239 shrext_cmds='.sl'
adamc@1132 9240 dynamic_linker="$host_os dld.sl"
adamc@1132 9241 shlibpath_var=SHLIB_PATH
adamc@1132 9242 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
adamc@1132 9243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 9244 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9245 ;;
adamc@1132 9246 esac
adamc@1132 9247 # HP-UX runs *really* slowly unless shared libraries are mode 555.
adamc@1132 9248 postinstall_cmds='chmod 555 $lib'
adamc@1132 9249 ;;
adamc@1132 9250
adamc@1132 9251 interix[3-9]*)
adamc@1132 9252 version_type=linux
adamc@1132 9253 need_lib_prefix=no
adamc@1132 9254 need_version=no
adamc@1132 9255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
adamc@1132 9256 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9257 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
adamc@1132 9258 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9259 shlibpath_overrides_runpath=no
adamc@1132 9260 hardcode_into_libs=yes
adamc@1132 9261 ;;
adamc@1132 9262
adamc@1132 9263 irix5* | irix6* | nonstopux*)
adamc@1132 9264 case $host_os in
adamc@1132 9265 nonstopux*) version_type=nonstopux ;;
adamc@1132 9266 *)
adamc@1132 9267 if test "$lt_cv_prog_gnu_ld" = yes; then
adamc@1132 9268 version_type=linux
adamc@1132 9269 else
adamc@1132 9270 version_type=irix
adamc@1132 9271 fi ;;
adamc@1132 9272 esac
adamc@1132 9273 need_lib_prefix=no
adamc@1132 9274 need_version=no
adamc@1132 9275 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
adamc@1132 9277 case $host_os in
adamc@1132 9278 irix5* | nonstopux*)
adamc@1132 9279 libsuff= shlibsuff=
adamc@1132 9280 ;;
adamc@1132 9281 *)
adamc@1132 9282 case $LD in # libtool.m4 will add one of these switches to LD
adamc@1132 9283 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
adamc@1132 9284 libsuff= shlibsuff= libmagic=32-bit;;
adamc@1132 9285 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
adamc@1132 9286 libsuff=32 shlibsuff=N32 libmagic=N32;;
adamc@1132 9287 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
adamc@1132 9288 libsuff=64 shlibsuff=64 libmagic=64-bit;;
adamc@1132 9289 *) libsuff= shlibsuff= libmagic=never-match;;
adamc@1132 9290 esac
adamc@1132 9291 ;;
adamc@1132 9292 esac
adamc@1132 9293 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
adamc@1132 9294 shlibpath_overrides_runpath=no
adamc@1132 9295 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
adamc@1132 9296 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
adamc@1132 9297 hardcode_into_libs=yes
adamc@1132 9298 ;;
adamc@1132 9299
adamc@1132 9300 # No shared lib support for Linux oldld, aout, or coff.
adamc@1132 9301 linux*oldld* | linux*aout* | linux*coff*)
adamc@1132 9302 dynamic_linker=no
adamc@1132 9303 ;;
adamc@1132 9304
adamc@1132 9305 # This must be Linux ELF.
adamc@1132 9306 linux* | k*bsd*-gnu | kopensolaris*-gnu)
adamc@1132 9307 version_type=linux
adamc@1132 9308 need_lib_prefix=no
adamc@1132 9309 need_version=no
adamc@1132 9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 9311 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
adamc@1132 9313 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9314 shlibpath_overrides_runpath=no
adamc@1132 9315 # Some binutils ld are patched to set DT_RUNPATH
adamc@1132 9316 save_LDFLAGS=$LDFLAGS
adamc@1132 9317 save_libdir=$libdir
adamc@1132 9318 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
adamc@1132 9319 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
adamc@1132 9320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 9321 /* end confdefs.h. */
adamc@1132 9322
adamc@1132 9323 int
adamc@1132 9324 main ()
adamc@1132 9325 {
adamc@1132 9326
adamc@1132 9327 ;
adamc@1132 9328 return 0;
adamc@1132 9329 }
adamc@1132 9330 _ACEOF
adamc@1132 9331 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 9332 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
adamc@1132 9333 shlibpath_overrides_runpath=yes
adamc@1132 9334 fi
adamc@1132 9335 fi
adamc@1132 9336 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 9337 conftest$ac_exeext conftest.$ac_ext
adamc@1132 9338 LDFLAGS=$save_LDFLAGS
adamc@1132 9339 libdir=$save_libdir
adamc@1132 9340
adamc@1132 9341 # This implies no fast_install, which is unacceptable.
adamc@1132 9342 # Some rework will be needed to allow for fast_install
adamc@1132 9343 # before this can be enabled.
adamc@1132 9344 hardcode_into_libs=yes
adamc@1132 9345
adamc@1132 9346 # Append ld.so.conf contents to the search path
adamc@1132 9347 if test -f /etc/ld.so.conf; then
adamc@1132 9348 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;/^$/d' | tr '\n' ' '`
adamc@1132 9349 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
adamc@1132 9350 fi
adamc@1132 9351
adamc@1132 9352 # We used to test for /lib/ld.so.1 and disable shared libraries on
adamc@1132 9353 # powerpc, because MkLinux only supported shared libraries with the
adamc@1132 9354 # GNU dynamic linker. Since this was broken with cross compilers,
adamc@1132 9355 # most powerpc-linux boxes support dynamic linking these days and
adamc@1132 9356 # people can always --disable-shared, the test was removed, and we
adamc@1132 9357 # assume the GNU/Linux dynamic linker is in use.
adamc@1132 9358 dynamic_linker='GNU/Linux ld.so'
adamc@1132 9359 ;;
adamc@1132 9360
adamc@1132 9361 netbsdelf*-gnu)
adamc@1132 9362 version_type=linux
adamc@1132 9363 need_lib_prefix=no
adamc@1132 9364 need_version=no
adamc@1132 9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
adamc@1132 9366 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9367 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9368 shlibpath_overrides_runpath=no
adamc@1132 9369 hardcode_into_libs=yes
adamc@1132 9370 dynamic_linker='NetBSD ld.elf_so'
adamc@1132 9371 ;;
adamc@1132 9372
adamc@1132 9373 netbsd*)
adamc@1132 9374 version_type=sunos
adamc@1132 9375 need_lib_prefix=no
adamc@1132 9376 need_version=no
adamc@1132 9377 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
adamc@1132 9378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
adamc@1132 9379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
adamc@1132 9380 dynamic_linker='NetBSD (a.out) ld.so'
adamc@1132 9381 else
adamc@1132 9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
adamc@1132 9383 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9384 dynamic_linker='NetBSD ld.elf_so'
adamc@1132 9385 fi
adamc@1132 9386 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9387 shlibpath_overrides_runpath=yes
adamc@1132 9388 hardcode_into_libs=yes
adamc@1132 9389 ;;
adamc@1132 9390
adamc@1132 9391 newsos6)
adamc@1132 9392 version_type=linux
adamc@1132 9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 9394 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9395 shlibpath_overrides_runpath=yes
adamc@1132 9396 ;;
adamc@1132 9397
adamc@1132 9398 *nto* | *qnx*)
adamc@1132 9399 version_type=qnx
adamc@1132 9400 need_lib_prefix=no
adamc@1132 9401 need_version=no
adamc@1132 9402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 9403 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9404 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9405 shlibpath_overrides_runpath=no
adamc@1132 9406 hardcode_into_libs=yes
adamc@1132 9407 dynamic_linker='ldqnx.so'
adamc@1132 9408 ;;
adamc@1132 9409
adamc@1132 9410 openbsd*)
adamc@1132 9411 version_type=sunos
adamc@1132 9412 sys_lib_dlsearch_path_spec="/usr/lib"
adamc@1132 9413 need_lib_prefix=no
adamc@1132 9414 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
adamc@1132 9415 case $host_os in
adamc@1132 9416 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
adamc@1132 9417 *) need_version=no ;;
adamc@1132 9418 esac
adamc@1132 9419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
adamc@1132 9420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
adamc@1132 9421 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9422 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
adamc@1132 9423 case $host_os in
adamc@1132 9424 openbsd2.[89] | openbsd2.[89].*)
adamc@1132 9425 shlibpath_overrides_runpath=no
adamc@1132 9426 ;;
adamc@1132 9427 *)
adamc@1132 9428 shlibpath_overrides_runpath=yes
adamc@1132 9429 ;;
adamc@1132 9430 esac
adamc@1132 9431 else
adamc@1132 9432 shlibpath_overrides_runpath=yes
adamc@1132 9433 fi
adamc@1132 9434 ;;
adamc@1132 9435
adamc@1132 9436 os2*)
adamc@1132 9437 libname_spec='$name'
adamc@1132 9438 shrext_cmds=".dll"
adamc@1132 9439 need_lib_prefix=no
adamc@1132 9440 library_names_spec='$libname${shared_ext} $libname.a'
adamc@1132 9441 dynamic_linker='OS/2 ld.exe'
adamc@1132 9442 shlibpath_var=LIBPATH
adamc@1132 9443 ;;
adamc@1132 9444
adamc@1132 9445 osf3* | osf4* | osf5*)
adamc@1132 9446 version_type=osf
adamc@1132 9447 need_lib_prefix=no
adamc@1132 9448 need_version=no
adamc@1132 9449 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 9451 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9452 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
adamc@1132 9453 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
adamc@1132 9454 ;;
adamc@1132 9455
adamc@1132 9456 rdos*)
adamc@1132 9457 dynamic_linker=no
adamc@1132 9458 ;;
adamc@1132 9459
adamc@1132 9460 solaris*)
adamc@1132 9461 version_type=linux
adamc@1132 9462 need_lib_prefix=no
adamc@1132 9463 need_version=no
adamc@1132 9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 9465 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9466 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9467 shlibpath_overrides_runpath=yes
adamc@1132 9468 hardcode_into_libs=yes
adamc@1132 9469 # ldd complains unless libraries are executable
adamc@1132 9470 postinstall_cmds='chmod +x $lib'
adamc@1132 9471 ;;
adamc@1132 9472
adamc@1132 9473 sunos4*)
adamc@1132 9474 version_type=sunos
adamc@1132 9475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
adamc@1132 9476 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
adamc@1132 9477 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9478 shlibpath_overrides_runpath=yes
adamc@1132 9479 if test "$with_gnu_ld" = yes; then
adamc@1132 9480 need_lib_prefix=no
adamc@1132 9481 fi
adamc@1132 9482 need_version=yes
adamc@1132 9483 ;;
adamc@1132 9484
adamc@1132 9485 sysv4 | sysv4.3*)
adamc@1132 9486 version_type=linux
adamc@1132 9487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 9488 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9489 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9490 case $host_vendor in
adamc@1132 9491 sni)
adamc@1132 9492 shlibpath_overrides_runpath=no
adamc@1132 9493 need_lib_prefix=no
adamc@1132 9494 runpath_var=LD_RUN_PATH
adamc@1132 9495 ;;
adamc@1132 9496 siemens)
adamc@1132 9497 need_lib_prefix=no
adamc@1132 9498 ;;
adamc@1132 9499 motorola)
adamc@1132 9500 need_lib_prefix=no
adamc@1132 9501 need_version=no
adamc@1132 9502 shlibpath_overrides_runpath=no
adamc@1132 9503 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
adamc@1132 9504 ;;
adamc@1132 9505 esac
adamc@1132 9506 ;;
adamc@1132 9507
adamc@1132 9508 sysv4*MP*)
adamc@1132 9509 if test -d /usr/nec ;then
adamc@1132 9510 version_type=linux
adamc@1132 9511 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
adamc@1132 9512 soname_spec='$libname${shared_ext}.$major'
adamc@1132 9513 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9514 fi
adamc@1132 9515 ;;
adamc@1132 9516
adamc@1132 9517 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
adamc@1132 9518 version_type=freebsd-elf
adamc@1132 9519 need_lib_prefix=no
adamc@1132 9520 need_version=no
adamc@1132 9521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
adamc@1132 9522 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9523 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9524 shlibpath_overrides_runpath=yes
adamc@1132 9525 hardcode_into_libs=yes
adamc@1132 9526 if test "$with_gnu_ld" = yes; then
adamc@1132 9527 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
adamc@1132 9528 else
adamc@1132 9529 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
adamc@1132 9530 case $host_os in
adamc@1132 9531 sco3.2v5*)
adamc@1132 9532 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
adamc@1132 9533 ;;
adamc@1132 9534 esac
adamc@1132 9535 fi
adamc@1132 9536 sys_lib_dlsearch_path_spec='/usr/lib'
adamc@1132 9537 ;;
adamc@1132 9538
adamc@1132 9539 tpf*)
adamc@1132 9540 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
adamc@1132 9541 version_type=linux
adamc@1132 9542 need_lib_prefix=no
adamc@1132 9543 need_version=no
adamc@1132 9544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 9545 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9546 shlibpath_overrides_runpath=no
adamc@1132 9547 hardcode_into_libs=yes
adamc@1132 9548 ;;
adamc@1132 9549
adamc@1132 9550 uts4*)
adamc@1132 9551 version_type=linux
adamc@1132 9552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 9553 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9554 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9555 ;;
adamc@1132 9556
adamc@1132 9557 *)
adamc@1132 9558 dynamic_linker=no
adamc@1132 9559 ;;
adamc@1132 9560 esac
adamc@1132 9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
adamc@1132 9562 $as_echo "$dynamic_linker" >&6; }
adamc@1132 9563 test "$dynamic_linker" = no && can_build_shared=no
adamc@1132 9564
adamc@1132 9565 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
adamc@1132 9566 if test "$GCC" = yes; then
adamc@1132 9567 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
adamc@1132 9568 fi
adamc@1132 9569
adamc@1132 9570 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
adamc@1132 9571 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
adamc@1132 9572 fi
adamc@1132 9573 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
adamc@1132 9574 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
adamc@1132 9575 fi
adamc@1132 9576
adamc@1132 9577
adamc@1132 9578
adamc@1132 9579
adamc@1132 9580
adamc@1132 9581
adamc@1132 9582
adamc@1132 9583
adamc@1132 9584
adamc@1132 9585
adamc@1132 9586
adamc@1132 9587
adamc@1132 9588
adamc@1132 9589
adamc@1132 9590
adamc@1132 9591
adamc@1132 9592
adamc@1132 9593
adamc@1132 9594
adamc@1132 9595
adamc@1132 9596
adamc@1132 9597
adamc@1132 9598
adamc@1132 9599
adamc@1132 9600
adamc@1132 9601
adamc@1132 9602
adamc@1132 9603
adamc@1132 9604
adamc@1132 9605
adamc@1132 9606
adamc@1132 9607
adamc@1132 9608
adamc@1132 9609
adamc@1132 9610
adamc@1132 9611
adamc@1132 9612
adamc@1132 9613
adamc@1132 9614
adamc@1132 9615
adamc@1132 9616
adamc@1132 9617
adamc@1132 9618
adamc@1132 9619
adamc@1132 9620
adamc@1132 9621
adamc@1132 9622
adamc@1132 9623
adamc@1132 9624
adamc@1132 9625
adamc@1132 9626
adamc@1132 9627
adamc@1132 9628
adamc@1132 9629
adamc@1132 9630
adamc@1132 9631
adamc@1132 9632
adamc@1132 9633
adamc@1132 9634
adamc@1132 9635
adamc@1132 9636
adamc@1132 9637
adamc@1132 9638
adamc@1132 9639
adamc@1132 9640
adamc@1132 9641
adamc@1132 9642
adamc@1132 9643
adamc@1132 9644
adamc@1132 9645
adamc@1132 9646
adamc@1132 9647
adamc@1132 9648
adamc@1132 9649
adamc@1132 9650
adamc@1132 9651
adamc@1132 9652
adamc@1132 9653
adamc@1132 9654
adamc@1132 9655
adamc@1132 9656
adamc@1132 9657
adamc@1132 9658
adamc@1132 9659
adamc@1132 9660
adamc@1132 9661
adamc@1132 9662
adamc@1132 9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
adamc@1132 9664 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
adamc@1132 9665 hardcode_action=
adamc@1132 9666 if test -n "$hardcode_libdir_flag_spec" ||
adamc@1132 9667 test -n "$runpath_var" ||
adamc@1132 9668 test "X$hardcode_automatic" = "Xyes" ; then
adamc@1132 9669
adamc@1132 9670 # We can hardcode non-existent directories.
adamc@1132 9671 if test "$hardcode_direct" != no &&
adamc@1132 9672 # If the only mechanism to avoid hardcoding is shlibpath_var, we
adamc@1132 9673 # have to relink, otherwise we might link with an installed library
adamc@1132 9674 # when we should be linking with a yet-to-be-installed one
adamc@1132 9675 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
adamc@1132 9676 test "$hardcode_minus_L" != no; then
adamc@1132 9677 # Linking always hardcodes the temporary library directory.
adamc@1132 9678 hardcode_action=relink
adamc@1132 9679 else
adamc@1132 9680 # We can link without hardcoding, and we can hardcode nonexisting dirs.
adamc@1132 9681 hardcode_action=immediate
adamc@1132 9682 fi
adamc@1132 9683 else
adamc@1132 9684 # We cannot hardcode anything, or else we can only hardcode existing
adamc@1132 9685 # directories.
adamc@1132 9686 hardcode_action=unsupported
adamc@1132 9687 fi
adamc@1132 9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
adamc@1132 9689 $as_echo "$hardcode_action" >&6; }
adamc@1132 9690
adamc@1132 9691 if test "$hardcode_action" = relink ||
adamc@1132 9692 test "$inherit_rpath" = yes; then
adamc@1132 9693 # Fast installation is not supported
adamc@1132 9694 enable_fast_install=no
adamc@1132 9695 elif test "$shlibpath_overrides_runpath" = yes ||
adamc@1132 9696 test "$enable_shared" = no; then
adamc@1132 9697 # Fast installation is not necessary
adamc@1132 9698 enable_fast_install=needless
adamc@1132 9699 fi
adamc@1132 9700
adamc@1132 9701
adamc@1132 9702
adamc@1132 9703
adamc@1132 9704
adamc@1132 9705
adamc@1132 9706 if test "x$enable_dlopen" != xyes; then
adamc@1132 9707 enable_dlopen=unknown
adamc@1132 9708 enable_dlopen_self=unknown
adamc@1132 9709 enable_dlopen_self_static=unknown
adamc@1132 9710 else
adamc@1132 9711 lt_cv_dlopen=no
adamc@1132 9712 lt_cv_dlopen_libs=
adamc@1132 9713
adamc@1132 9714 case $host_os in
adamc@1132 9715 beos*)
adamc@1132 9716 lt_cv_dlopen="load_add_on"
adamc@1132 9717 lt_cv_dlopen_libs=
adamc@1132 9718 lt_cv_dlopen_self=yes
adamc@1132 9719 ;;
adamc@1132 9720
adamc@1132 9721 mingw* | pw32* | cegcc*)
adamc@1132 9722 lt_cv_dlopen="LoadLibrary"
adamc@1132 9723 lt_cv_dlopen_libs=
adamc@1132 9724 ;;
adamc@1132 9725
adamc@1132 9726 cygwin*)
adamc@1132 9727 lt_cv_dlopen="dlopen"
adamc@1132 9728 lt_cv_dlopen_libs=
adamc@1132 9729 ;;
adamc@1132 9730
adamc@1132 9731 darwin*)
adamc@1132 9732 # if libdl is installed we need to link against it
adamc@1132 9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
adamc@1132 9734 $as_echo_n "checking for dlopen in -ldl... " >&6; }
adamc@1132 9735 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
adamc@1132 9736 $as_echo_n "(cached) " >&6
adamc@1132 9737 else
adamc@1132 9738 ac_check_lib_save_LIBS=$LIBS
adamc@1132 9739 LIBS="-ldl $LIBS"
adamc@1132 9740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 9741 /* end confdefs.h. */
adamc@1132 9742
adamc@1132 9743 /* Override any GCC internal prototype to avoid an error.
adamc@1132 9744 Use char because int might match the return type of a GCC
adamc@1132 9745 builtin and then its argument prototype would still apply. */
adamc@1132 9746 #ifdef __cplusplus
adamc@1132 9747 extern "C"
adamc@1132 9748 #endif
adamc@1132 9749 char dlopen ();
adamc@1132 9750 int
adamc@1132 9751 main ()
adamc@1132 9752 {
adamc@1132 9753 return dlopen ();
adamc@1132 9754 ;
adamc@1132 9755 return 0;
adamc@1132 9756 }
adamc@1132 9757 _ACEOF
adamc@1132 9758 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 9759 ac_cv_lib_dl_dlopen=yes
adamc@1132 9760 else
adamc@1132 9761 ac_cv_lib_dl_dlopen=no
adamc@1132 9762 fi
adamc@1132 9763 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 9764 conftest$ac_exeext conftest.$ac_ext
adamc@1132 9765 LIBS=$ac_check_lib_save_LIBS
adamc@1132 9766 fi
adamc@1132 9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
adamc@1132 9768 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
adamc@1132 9769 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
adamc@1132 9770 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
adamc@1132 9771 else
adamc@1132 9772
adamc@1132 9773 lt_cv_dlopen="dyld"
adamc@1132 9774 lt_cv_dlopen_libs=
adamc@1132 9775 lt_cv_dlopen_self=yes
adamc@1132 9776
adamc@1132 9777 fi
adamc@1132 9778
adamc@1132 9779 ;;
adamc@1132 9780
adamc@1132 9781 *)
adamc@1132 9782 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
adamc@1132 9783 if test "x$ac_cv_func_shl_load" = x""yes; then :
adamc@1132 9784 lt_cv_dlopen="shl_load"
adamc@1132 9785 else
adamc@1132 9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
adamc@1132 9787 $as_echo_n "checking for shl_load in -ldld... " >&6; }
adamc@1132 9788 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
adamc@1132 9789 $as_echo_n "(cached) " >&6
adamc@1132 9790 else
adamc@1132 9791 ac_check_lib_save_LIBS=$LIBS
adamc@1132 9792 LIBS="-ldld $LIBS"
adamc@1132 9793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 9794 /* end confdefs.h. */
adamc@1132 9795
adamc@1132 9796 /* Override any GCC internal prototype to avoid an error.
adamc@1132 9797 Use char because int might match the return type of a GCC
adamc@1132 9798 builtin and then its argument prototype would still apply. */
adamc@1132 9799 #ifdef __cplusplus
adamc@1132 9800 extern "C"
adamc@1132 9801 #endif
adamc@1132 9802 char shl_load ();
adamc@1132 9803 int
adamc@1132 9804 main ()
adamc@1132 9805 {
adamc@1132 9806 return shl_load ();
adamc@1132 9807 ;
adamc@1132 9808 return 0;
adamc@1132 9809 }
adamc@1132 9810 _ACEOF
adamc@1132 9811 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 9812 ac_cv_lib_dld_shl_load=yes
adamc@1132 9813 else
adamc@1132 9814 ac_cv_lib_dld_shl_load=no
adamc@1132 9815 fi
adamc@1132 9816 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 9817 conftest$ac_exeext conftest.$ac_ext
adamc@1132 9818 LIBS=$ac_check_lib_save_LIBS
adamc@1132 9819 fi
adamc@1132 9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
adamc@1132 9821 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
adamc@1132 9822 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
adamc@1132 9823 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
adamc@1132 9824 else
adamc@1132 9825 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
adamc@1132 9826 if test "x$ac_cv_func_dlopen" = x""yes; then :
adamc@1132 9827 lt_cv_dlopen="dlopen"
adamc@1132 9828 else
adamc@1132 9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
adamc@1132 9830 $as_echo_n "checking for dlopen in -ldl... " >&6; }
adamc@1132 9831 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
adamc@1132 9832 $as_echo_n "(cached) " >&6
adamc@1132 9833 else
adamc@1132 9834 ac_check_lib_save_LIBS=$LIBS
adamc@1132 9835 LIBS="-ldl $LIBS"
adamc@1132 9836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 9837 /* end confdefs.h. */
adamc@1132 9838
adamc@1132 9839 /* Override any GCC internal prototype to avoid an error.
adamc@1132 9840 Use char because int might match the return type of a GCC
adamc@1132 9841 builtin and then its argument prototype would still apply. */
adamc@1132 9842 #ifdef __cplusplus
adamc@1132 9843 extern "C"
adamc@1132 9844 #endif
adamc@1132 9845 char dlopen ();
adamc@1132 9846 int
adamc@1132 9847 main ()
adamc@1132 9848 {
adamc@1132 9849 return dlopen ();
adamc@1132 9850 ;
adamc@1132 9851 return 0;
adamc@1132 9852 }
adamc@1132 9853 _ACEOF
adamc@1132 9854 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 9855 ac_cv_lib_dl_dlopen=yes
adamc@1132 9856 else
adamc@1132 9857 ac_cv_lib_dl_dlopen=no
adamc@1132 9858 fi
adamc@1132 9859 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 9860 conftest$ac_exeext conftest.$ac_ext
adamc@1132 9861 LIBS=$ac_check_lib_save_LIBS
adamc@1132 9862 fi
adamc@1132 9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
adamc@1132 9864 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
adamc@1132 9865 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
adamc@1132 9866 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
adamc@1132 9867 else
adamc@1132 9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
adamc@1132 9869 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
adamc@1132 9870 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
adamc@1132 9871 $as_echo_n "(cached) " >&6
adamc@1132 9872 else
adamc@1132 9873 ac_check_lib_save_LIBS=$LIBS
adamc@1132 9874 LIBS="-lsvld $LIBS"
adamc@1132 9875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 9876 /* end confdefs.h. */
adamc@1132 9877
adamc@1132 9878 /* Override any GCC internal prototype to avoid an error.
adamc@1132 9879 Use char because int might match the return type of a GCC
adamc@1132 9880 builtin and then its argument prototype would still apply. */
adamc@1132 9881 #ifdef __cplusplus
adamc@1132 9882 extern "C"
adamc@1132 9883 #endif
adamc@1132 9884 char dlopen ();
adamc@1132 9885 int
adamc@1132 9886 main ()
adamc@1132 9887 {
adamc@1132 9888 return dlopen ();
adamc@1132 9889 ;
adamc@1132 9890 return 0;
adamc@1132 9891 }
adamc@1132 9892 _ACEOF
adamc@1132 9893 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 9894 ac_cv_lib_svld_dlopen=yes
adamc@1132 9895 else
adamc@1132 9896 ac_cv_lib_svld_dlopen=no
adamc@1132 9897 fi
adamc@1132 9898 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 9899 conftest$ac_exeext conftest.$ac_ext
adamc@1132 9900 LIBS=$ac_check_lib_save_LIBS
adamc@1132 9901 fi
adamc@1132 9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
adamc@1132 9903 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
adamc@1132 9904 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
adamc@1132 9905 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
adamc@1132 9906 else
adamc@1132 9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
adamc@1132 9908 $as_echo_n "checking for dld_link in -ldld... " >&6; }
adamc@1132 9909 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
adamc@1132 9910 $as_echo_n "(cached) " >&6
adamc@1132 9911 else
adamc@1132 9912 ac_check_lib_save_LIBS=$LIBS
adamc@1132 9913 LIBS="-ldld $LIBS"
adamc@1132 9914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 9915 /* end confdefs.h. */
adamc@1132 9916
adamc@1132 9917 /* Override any GCC internal prototype to avoid an error.
adamc@1132 9918 Use char because int might match the return type of a GCC
adamc@1132 9919 builtin and then its argument prototype would still apply. */
adamc@1132 9920 #ifdef __cplusplus
adamc@1132 9921 extern "C"
adamc@1132 9922 #endif
adamc@1132 9923 char dld_link ();
adamc@1132 9924 int
adamc@1132 9925 main ()
adamc@1132 9926 {
adamc@1132 9927 return dld_link ();
adamc@1132 9928 ;
adamc@1132 9929 return 0;
adamc@1132 9930 }
adamc@1132 9931 _ACEOF
adamc@1132 9932 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 9933 ac_cv_lib_dld_dld_link=yes
adamc@1132 9934 else
adamc@1132 9935 ac_cv_lib_dld_dld_link=no
adamc@1132 9936 fi
adamc@1132 9937 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 9938 conftest$ac_exeext conftest.$ac_ext
adamc@1132 9939 LIBS=$ac_check_lib_save_LIBS
adamc@1132 9940 fi
adamc@1132 9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
adamc@1132 9942 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
adamc@1132 9943 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
adamc@1132 9944 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
adamc@1132 9945 fi
adamc@1132 9946
adamc@1132 9947
adamc@1132 9948 fi
adamc@1132 9949
adamc@1132 9950
adamc@1132 9951 fi
adamc@1132 9952
adamc@1132 9953
adamc@1132 9954 fi
adamc@1132 9955
adamc@1132 9956
adamc@1132 9957 fi
adamc@1132 9958
adamc@1132 9959
adamc@1132 9960 fi
adamc@1132 9961
adamc@1132 9962 ;;
adamc@1132 9963 esac
adamc@1132 9964
adamc@1132 9965 if test "x$lt_cv_dlopen" != xno; then
adamc@1132 9966 enable_dlopen=yes
adamc@1132 9967 else
adamc@1132 9968 enable_dlopen=no
adamc@1132 9969 fi
adamc@1132 9970
adamc@1132 9971 case $lt_cv_dlopen in
adamc@1132 9972 dlopen)
adamc@1132 9973 save_CPPFLAGS="$CPPFLAGS"
adamc@1132 9974 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
adamc@1132 9975
adamc@1132 9976 save_LDFLAGS="$LDFLAGS"
adamc@1132 9977 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
adamc@1132 9978
adamc@1132 9979 save_LIBS="$LIBS"
adamc@1132 9980 LIBS="$lt_cv_dlopen_libs $LIBS"
adamc@1132 9981
adamc@1132 9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
adamc@1132 9983 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
adamc@1132 9984 if test "${lt_cv_dlopen_self+set}" = set; then :
adamc@1132 9985 $as_echo_n "(cached) " >&6
adamc@1132 9986 else
adamc@1132 9987 if test "$cross_compiling" = yes; then :
adamc@1132 9988 lt_cv_dlopen_self=cross
adamc@1132 9989 else
adamc@1132 9990 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
adamc@1132 9991 lt_status=$lt_dlunknown
adamc@1132 9992 cat > conftest.$ac_ext <<_LT_EOF
adamc@1132 9993 #line 9993 "configure"
adamc@1132 9994 #include "confdefs.h"
adamc@1132 9995
adamc@1132 9996 #if HAVE_DLFCN_H
adamc@1132 9997 #include <dlfcn.h>
adamc@1132 9998 #endif
adamc@1132 9999
adamc@1132 10000 #include <stdio.h>
adamc@1132 10001
adamc@1132 10002 #ifdef RTLD_GLOBAL
adamc@1132 10003 # define LT_DLGLOBAL RTLD_GLOBAL
adamc@1132 10004 #else
adamc@1132 10005 # ifdef DL_GLOBAL
adamc@1132 10006 # define LT_DLGLOBAL DL_GLOBAL
adamc@1132 10007 # else
adamc@1132 10008 # define LT_DLGLOBAL 0
adamc@1132 10009 # endif
adamc@1132 10010 #endif
adamc@1132 10011
adamc@1132 10012 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
adamc@1132 10013 find out it does not work in some platform. */
adamc@1132 10014 #ifndef LT_DLLAZY_OR_NOW
adamc@1132 10015 # ifdef RTLD_LAZY
adamc@1132 10016 # define LT_DLLAZY_OR_NOW RTLD_LAZY
adamc@1132 10017 # else
adamc@1132 10018 # ifdef DL_LAZY
adamc@1132 10019 # define LT_DLLAZY_OR_NOW DL_LAZY
adamc@1132 10020 # else
adamc@1132 10021 # ifdef RTLD_NOW
adamc@1132 10022 # define LT_DLLAZY_OR_NOW RTLD_NOW
adamc@1132 10023 # else
adamc@1132 10024 # ifdef DL_NOW
adamc@1132 10025 # define LT_DLLAZY_OR_NOW DL_NOW
adamc@1132 10026 # else
adamc@1132 10027 # define LT_DLLAZY_OR_NOW 0
adamc@1132 10028 # endif
adamc@1132 10029 # endif
adamc@1132 10030 # endif
adamc@1132 10031 # endif
adamc@1132 10032 #endif
adamc@1132 10033
adamc@1132 10034 void fnord() { int i=42;}
adamc@1132 10035 int main ()
adamc@1132 10036 {
adamc@1132 10037 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
adamc@1132 10038 int status = $lt_dlunknown;
adamc@1132 10039
adamc@1132 10040 if (self)
adamc@1132 10041 {
adamc@1132 10042 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
adamc@1132 10043 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
adamc@1132 10044 /* dlclose (self); */
adamc@1132 10045 }
adamc@1132 10046 else
adamc@1132 10047 puts (dlerror ());
adamc@1132 10048
adamc@1132 10049 return status;
adamc@1132 10050 }
adamc@1132 10051 _LT_EOF
adamc@1132 10052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
adamc@1132 10053 (eval $ac_link) 2>&5
adamc@1132 10054 ac_status=$?
adamc@1132 10055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 10056 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
adamc@1132 10057 (./conftest; exit; ) >&5 2>/dev/null
adamc@1132 10058 lt_status=$?
adamc@1132 10059 case x$lt_status in
adamc@1132 10060 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
adamc@1132 10061 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
adamc@1132 10062 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
adamc@1132 10063 esac
adamc@1132 10064 else :
adamc@1132 10065 # compilation failed
adamc@1132 10066 lt_cv_dlopen_self=no
adamc@1132 10067 fi
adamc@1132 10068 fi
adamc@1132 10069 rm -fr conftest*
adamc@1132 10070
adamc@1132 10071
adamc@1132 10072 fi
adamc@1132 10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
adamc@1132 10074 $as_echo "$lt_cv_dlopen_self" >&6; }
adamc@1132 10075
adamc@1132 10076 if test "x$lt_cv_dlopen_self" = xyes; then
adamc@1132 10077 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
adamc@1132 10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
adamc@1132 10079 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
adamc@1132 10080 if test "${lt_cv_dlopen_self_static+set}" = set; then :
adamc@1132 10081 $as_echo_n "(cached) " >&6
adamc@1132 10082 else
adamc@1132 10083 if test "$cross_compiling" = yes; then :
adamc@1132 10084 lt_cv_dlopen_self_static=cross
adamc@1132 10085 else
adamc@1132 10086 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
adamc@1132 10087 lt_status=$lt_dlunknown
adamc@1132 10088 cat > conftest.$ac_ext <<_LT_EOF
adamc@1132 10089 #line 10089 "configure"
adamc@1132 10090 #include "confdefs.h"
adamc@1132 10091
adamc@1132 10092 #if HAVE_DLFCN_H
adamc@1132 10093 #include <dlfcn.h>
adamc@1132 10094 #endif
adamc@1132 10095
adamc@1132 10096 #include <stdio.h>
adamc@1132 10097
adamc@1132 10098 #ifdef RTLD_GLOBAL
adamc@1132 10099 # define LT_DLGLOBAL RTLD_GLOBAL
adamc@1132 10100 #else
adamc@1132 10101 # ifdef DL_GLOBAL
adamc@1132 10102 # define LT_DLGLOBAL DL_GLOBAL
adamc@1132 10103 # else
adamc@1132 10104 # define LT_DLGLOBAL 0
adamc@1132 10105 # endif
adamc@1132 10106 #endif
adamc@1132 10107
adamc@1132 10108 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
adamc@1132 10109 find out it does not work in some platform. */
adamc@1132 10110 #ifndef LT_DLLAZY_OR_NOW
adamc@1132 10111 # ifdef RTLD_LAZY
adamc@1132 10112 # define LT_DLLAZY_OR_NOW RTLD_LAZY
adamc@1132 10113 # else
adamc@1132 10114 # ifdef DL_LAZY
adamc@1132 10115 # define LT_DLLAZY_OR_NOW DL_LAZY
adamc@1132 10116 # else
adamc@1132 10117 # ifdef RTLD_NOW
adamc@1132 10118 # define LT_DLLAZY_OR_NOW RTLD_NOW
adamc@1132 10119 # else
adamc@1132 10120 # ifdef DL_NOW
adamc@1132 10121 # define LT_DLLAZY_OR_NOW DL_NOW
adamc@1132 10122 # else
adamc@1132 10123 # define LT_DLLAZY_OR_NOW 0
adamc@1132 10124 # endif
adamc@1132 10125 # endif
adamc@1132 10126 # endif
adamc@1132 10127 # endif
adamc@1132 10128 #endif
adamc@1132 10129
adamc@1132 10130 void fnord() { int i=42;}
adamc@1132 10131 int main ()
adamc@1132 10132 {
adamc@1132 10133 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
adamc@1132 10134 int status = $lt_dlunknown;
adamc@1132 10135
adamc@1132 10136 if (self)
adamc@1132 10137 {
adamc@1132 10138 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
adamc@1132 10139 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
adamc@1132 10140 /* dlclose (self); */
adamc@1132 10141 }
adamc@1132 10142 else
adamc@1132 10143 puts (dlerror ());
adamc@1132 10144
adamc@1132 10145 return status;
adamc@1132 10146 }
adamc@1132 10147 _LT_EOF
adamc@1132 10148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
adamc@1132 10149 (eval $ac_link) 2>&5
adamc@1132 10150 ac_status=$?
adamc@1132 10151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 10152 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
adamc@1132 10153 (./conftest; exit; ) >&5 2>/dev/null
adamc@1132 10154 lt_status=$?
adamc@1132 10155 case x$lt_status in
adamc@1132 10156 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
adamc@1132 10157 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
adamc@1132 10158 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
adamc@1132 10159 esac
adamc@1132 10160 else :
adamc@1132 10161 # compilation failed
adamc@1132 10162 lt_cv_dlopen_self_static=no
adamc@1132 10163 fi
adamc@1132 10164 fi
adamc@1132 10165 rm -fr conftest*
adamc@1132 10166
adamc@1132 10167
adamc@1132 10168 fi
adamc@1132 10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
adamc@1132 10170 $as_echo "$lt_cv_dlopen_self_static" >&6; }
adamc@1132 10171 fi
adamc@1132 10172
adamc@1132 10173 CPPFLAGS="$save_CPPFLAGS"
adamc@1132 10174 LDFLAGS="$save_LDFLAGS"
adamc@1132 10175 LIBS="$save_LIBS"
adamc@1132 10176 ;;
adamc@1132 10177 esac
adamc@1132 10178
adamc@1132 10179 case $lt_cv_dlopen_self in
adamc@1132 10180 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
adamc@1132 10181 *) enable_dlopen_self=unknown ;;
adamc@1132 10182 esac
adamc@1132 10183
adamc@1132 10184 case $lt_cv_dlopen_self_static in
adamc@1132 10185 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
adamc@1132 10186 *) enable_dlopen_self_static=unknown ;;
adamc@1132 10187 esac
adamc@1132 10188 fi
adamc@1132 10189
adamc@1132 10190
adamc@1132 10191
adamc@1132 10192
adamc@1132 10193
adamc@1132 10194
adamc@1132 10195
adamc@1132 10196
adamc@1132 10197
adamc@1132 10198
adamc@1132 10199
adamc@1132 10200
adamc@1132 10201
adamc@1132 10202
adamc@1132 10203
adamc@1132 10204
adamc@1132 10205
adamc@1132 10206 striplib=
adamc@1132 10207 old_striplib=
adamc@1132 10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
adamc@1132 10209 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
adamc@1132 10210 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
adamc@1132 10211 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
adamc@1132 10212 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
adamc@1132 10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
adamc@1132 10214 $as_echo "yes" >&6; }
adamc@1132 10215 else
adamc@1132 10216 # FIXME - insert some real tests, host_os isn't really good enough
adamc@1132 10217 case $host_os in
adamc@1132 10218 darwin*)
adamc@1132 10219 if test -n "$STRIP" ; then
adamc@1132 10220 striplib="$STRIP -x"
adamc@1132 10221 old_striplib="$STRIP -S"
adamc@1132 10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
adamc@1132 10223 $as_echo "yes" >&6; }
adamc@1132 10224 else
adamc@1132 10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 10226 $as_echo "no" >&6; }
adamc@1132 10227 fi
adamc@1132 10228 ;;
adamc@1132 10229 *)
adamc@1132 10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 10231 $as_echo "no" >&6; }
adamc@1132 10232 ;;
adamc@1132 10233 esac
adamc@1132 10234 fi
adamc@1132 10235
adamc@1132 10236
adamc@1132 10237
adamc@1132 10238
adamc@1132 10239
adamc@1132 10240
adamc@1132 10241
adamc@1132 10242
adamc@1132 10243
adamc@1132 10244
adamc@1132 10245
adamc@1132 10246
adamc@1132 10247 # Report which library types will actually be built
adamc@1132 10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
adamc@1132 10249 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
adamc@1132 10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
adamc@1132 10251 $as_echo "$can_build_shared" >&6; }
adamc@1132 10252
adamc@1132 10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
adamc@1132 10254 $as_echo_n "checking whether to build shared libraries... " >&6; }
adamc@1132 10255 test "$can_build_shared" = "no" && enable_shared=no
adamc@1132 10256
adamc@1132 10257 # On AIX, shared libraries and static libraries use the same namespace, and
adamc@1132 10258 # are all built from PIC.
adamc@1132 10259 case $host_os in
adamc@1132 10260 aix3*)
adamc@1132 10261 test "$enable_shared" = yes && enable_static=no
adamc@1132 10262 if test -n "$RANLIB"; then
adamc@1132 10263 archive_cmds="$archive_cmds~\$RANLIB \$lib"
adamc@1132 10264 postinstall_cmds='$RANLIB $lib'
adamc@1132 10265 fi
adamc@1132 10266 ;;
adamc@1132 10267
adamc@1132 10268 aix[4-9]*)
adamc@1132 10269 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
adamc@1132 10270 test "$enable_shared" = yes && enable_static=no
adamc@1132 10271 fi
adamc@1132 10272 ;;
adamc@1132 10273 esac
adamc@1132 10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
adamc@1132 10275 $as_echo "$enable_shared" >&6; }
adamc@1132 10276
adamc@1132 10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
adamc@1132 10278 $as_echo_n "checking whether to build static libraries... " >&6; }
adamc@1132 10279 # Make sure either enable_shared or enable_static is yes.
adamc@1132 10280 test "$enable_shared" = yes || enable_static=yes
adamc@1132 10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
adamc@1132 10282 $as_echo "$enable_static" >&6; }
adamc@1132 10283
adamc@1132 10284
adamc@1132 10285
adamc@1132 10286
adamc@1132 10287 fi
adamc@1132 10288 ac_ext=c
adamc@1132 10289 ac_cpp='$CPP $CPPFLAGS'
adamc@1132 10290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1132 10291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1132 10292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1132 10293
adamc@1132 10294 CC="$lt_save_CC"
adamc@1132 10295
adamc@1132 10296
adamc@1132 10297
adamc@1132 10298
adamc@1132 10299
adamc@1132 10300
adamc@1132 10301
adamc@1132 10302
adamc@1132 10303
adamc@1132 10304
adamc@1132 10305
adamc@1132 10306
adamc@1132 10307
adamc@1132 10308 ac_config_commands="$ac_config_commands libtool"
adamc@1132 10309
adamc@1132 10310
adamc@1132 10311
adamc@1132 10312
adamc@1132 10313 # Only expand once:
adamc@1132 10314
adamc@1132 10315
adamc@378 10316
adamc@429 10317 if test $prefix = "NONE"; then
adamc@429 10318 prefix=/usr/local
adamc@429 10319 fi
adamc@429 10320
adamc@378 10321 if test -z $BIN; then
adamc@429 10322 BIN=$prefix/bin
adamc@378 10323 fi
adamc@378 10324
adamc@378 10325 if test -z $LIB; then
adamc@429 10326 LIB=$prefix/lib/urweb
adamc@378 10327 fi
adamc@378 10328
adamc@378 10329 if test -z $INCLUDE; then
adamc@429 10330 INCLUDE=$prefix/include/urweb
adamc@378 10331 fi
adamc@378 10332
adamc@378 10333 if test -z $SITELISP; then
adamc@429 10334 SITELISP=$prefix/share/emacs/site-lisp/urweb-mode
adamc@378 10335 fi
adamc@378 10336
adamc@378 10337
adamc@1132 10338
adamc@1132 10339
adamc@1132 10340
adamc@1132 10341
adamc@1132 10342
adamc@1132 10343 ac_config_files="$ac_config_files Makefile src/c/Makefile src/config.sml"
adamc@1132 10344
adamc@378 10345
adamc@378 10346 cat >confcache <<\_ACEOF
adamc@378 10347 # This file is a shell script that caches the results of configure
adamc@378 10348 # tests run on this system so they can be shared between configure
adamc@378 10349 # scripts and configure runs, see configure's option --config-cache.
adamc@378 10350 # It is not useful on other systems. If it contains results you don't
adamc@378 10351 # want to keep, you may remove or edit it.
adamc@378 10352 #
adamc@378 10353 # config.status only pays attention to the cache file if you give it
adamc@378 10354 # the --recheck option to rerun configure.
adamc@378 10355 #
adamc@378 10356 # `ac_cv_env_foo' variables (set or unset) will be overridden when
adamc@378 10357 # loading this file, other *unset* `ac_cv_foo' will be assigned the
adamc@378 10358 # following values.
adamc@378 10359
adamc@378 10360 _ACEOF
adamc@378 10361
adamc@378 10362 # The following way of writing the cache mishandles newlines in values,
adamc@378 10363 # but we know of no workaround that is simple, portable, and efficient.
adamc@378 10364 # So, we kill variables containing newlines.
adamc@378 10365 # Ultrix sh set writes to stderr and can't be redirected directly,
adamc@378 10366 # and sets the high bit in the cache file unless we assign to the vars.
adamc@378 10367 (
adamc@378 10368 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
adamc@378 10369 eval ac_val=\$$ac_var
adamc@378 10370 case $ac_val in #(
adamc@378 10371 *${as_nl}*)
adamc@378 10372 case $ac_var in #(
adamc@1095 10373 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
adamc@1095 10374 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
adamc@378 10375 esac
adamc@378 10376 case $ac_var in #(
adamc@378 10377 _ | IFS | as_nl) ;; #(
adamc@1095 10378 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
adamc@1095 10379 *) { eval $ac_var=; unset $ac_var;} ;;
adamc@378 10380 esac ;;
adamc@378 10381 esac
adamc@378 10382 done
adamc@378 10383
adamc@378 10384 (set) 2>&1 |
adamc@378 10385 case $as_nl`(ac_space=' '; set) 2>&1` in #(
adamc@378 10386 *${as_nl}ac_space=\ *)
adamc@1095 10387 # `set' does not quote correctly, so add quotes: double-quote
adamc@1095 10388 # substitution turns \\\\ into \\, and sed turns \\ into \.
adamc@378 10389 sed -n \
adamc@378 10390 "s/'/'\\\\''/g;
adamc@378 10391 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
adamc@378 10392 ;; #(
adamc@378 10393 *)
adamc@378 10394 # `set' quotes correctly as required by POSIX, so do not add quotes.
adamc@378 10395 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
adamc@378 10396 ;;
adamc@378 10397 esac |
adamc@378 10398 sort
adamc@378 10399 ) |
adamc@378 10400 sed '
adamc@378 10401 /^ac_cv_env_/b end
adamc@378 10402 t clear
adamc@378 10403 :clear
adamc@378 10404 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
adamc@378 10405 t end
adamc@378 10406 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
adamc@378 10407 :end' >>confcache
adamc@378 10408 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
adamc@378 10409 if test -w "$cache_file"; then
adamc@378 10410 test "x$cache_file" != "x/dev/null" &&
adamc@1095 10411 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
adamc@1095 10412 $as_echo "$as_me: updating cache $cache_file" >&6;}
adamc@378 10413 cat confcache >$cache_file
adamc@378 10414 else
adamc@1095 10415 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
adamc@1095 10416 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
adamc@378 10417 fi
adamc@378 10418 fi
adamc@378 10419 rm -f confcache
adamc@378 10420
adamc@378 10421 test "x$prefix" = xNONE && prefix=$ac_default_prefix
adamc@378 10422 # Let make expand exec_prefix.
adamc@378 10423 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
adamc@378 10424
adamc@378 10425 # Transform confdefs.h into DEFS.
adamc@378 10426 # Protect against shell expansion while executing Makefile rules.
adamc@378 10427 # Protect against Makefile macro expansion.
adamc@378 10428 #
adamc@378 10429 # If the first sed substitution is executed (which looks for macros that
adamc@378 10430 # take arguments), then branch to the quote section. Otherwise,
adamc@378 10431 # look for a macro that doesn't take arguments.
adamc@378 10432 ac_script='
adamc@1095 10433 :mline
adamc@1095 10434 /\\$/{
adamc@1095 10435 N
adamc@1095 10436 s,\\\n,,
adamc@1095 10437 b mline
adamc@1095 10438 }
adamc@378 10439 t clear
adamc@378 10440 :clear
adamc@378 10441 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
adamc@378 10442 t quote
adamc@378 10443 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
adamc@378 10444 t quote
adamc@378 10445 b any
adamc@378 10446 :quote
adamc@378 10447 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
adamc@378 10448 s/\[/\\&/g
adamc@378 10449 s/\]/\\&/g
adamc@378 10450 s/\$/$$/g
adamc@378 10451 H
adamc@378 10452 :any
adamc@378 10453 ${
adamc@378 10454 g
adamc@378 10455 s/^\n//
adamc@378 10456 s/\n/ /g
adamc@378 10457 p
adamc@378 10458 }
adamc@378 10459 '
adamc@378 10460 DEFS=`sed -n "$ac_script" confdefs.h`
adamc@378 10461
adamc@378 10462
adamc@378 10463 ac_libobjs=
adamc@378 10464 ac_ltlibobjs=
adamc@378 10465 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
adamc@378 10466 # 1. Remove the extension, and $U if already installed.
adamc@378 10467 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
adamc@1095 10468 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
adamc@378 10469 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
adamc@378 10470 # will be set to the directory where LIBOBJS objects are built.
adamc@1095 10471 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
adamc@1095 10472 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
adamc@378 10473 done
adamc@378 10474 LIBOBJS=$ac_libobjs
adamc@378 10475
adamc@378 10476 LTLIBOBJS=$ac_ltlibobjs
adamc@378 10477
adamc@378 10478
adamc@1132 10479 if test -n "$EXEEXT"; then
adamc@1132 10480 am__EXEEXT_TRUE=
adamc@1132 10481 am__EXEEXT_FALSE='#'
adamc@1132 10482 else
adamc@1132 10483 am__EXEEXT_TRUE='#'
adamc@1132 10484 am__EXEEXT_FALSE=
adamc@1132 10485 fi
adamc@1132 10486
adamc@1132 10487 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
adamc@1132 10488 as_fn_error "conditional \"AMDEP\" was never defined.
adamc@1132 10489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
adamc@1132 10490 fi
adamc@1132 10491 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
adamc@1132 10492 as_fn_error "conditional \"am__fastdepCC\" was never defined.
adamc@1132 10493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
adamc@1132 10494 fi
adamc@378 10495
adamc@378 10496 : ${CONFIG_STATUS=./config.status}
adamc@1095 10497 ac_write_fail=0
adamc@378 10498 ac_clean_files_save=$ac_clean_files
adamc@378 10499 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
adamc@1095 10500 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
adamc@1095 10501 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
adamc@1095 10502 as_write_fail=0
adamc@1095 10503 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
adamc@378 10504 #! $SHELL
adamc@378 10505 # Generated by $as_me.
adamc@378 10506 # Run this file to recreate the current configuration.
adamc@378 10507 # Compiler output produced by configure, useful for debugging
adamc@378 10508 # configure, is in config.log if it exists.
adamc@378 10509
adamc@378 10510 debug=false
adamc@378 10511 ac_cs_recheck=false
adamc@378 10512 ac_cs_silent=false
adamc@1095 10513
adamc@378 10514 SHELL=\${CONFIG_SHELL-$SHELL}
adamc@1095 10515 export SHELL
adamc@1095 10516 _ASEOF
adamc@1095 10517 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
adamc@1095 10518 ## -------------------- ##
adamc@1095 10519 ## M4sh Initialization. ##
adamc@1095 10520 ## -------------------- ##
adamc@378 10521
adamc@378 10522 # Be more Bourne compatible
adamc@378 10523 DUALCASE=1; export DUALCASE # for MKS sh
adamc@1095 10524 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
adamc@378 10525 emulate sh
adamc@378 10526 NULLCMD=:
adamc@1095 10527 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
adamc@378 10528 # is contrary to our usage. Disable this feature.
adamc@378 10529 alias -g '${1+"$@"}'='"$@"'
adamc@378 10530 setopt NO_GLOB_SUBST
adamc@378 10531 else
adamc@1095 10532 case `(set -o) 2>/dev/null` in #(
adamc@1095 10533 *posix*) :
adamc@1095 10534 set -o posix ;; #(
adamc@1095 10535 *) :
adamc@1095 10536 ;;
adamc@378 10537 esac
adamc@378 10538 fi
adamc@378 10539
adamc@378 10540
adamc@1095 10541 as_nl='
adamc@1095 10542 '
adamc@1095 10543 export as_nl
adamc@1095 10544 # Printing a long string crashes Solaris 7 /usr/bin/printf.
adamc@1095 10545 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
adamc@1095 10546 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
adamc@1095 10547 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
adamc@1095 10548 # Prefer a ksh shell builtin over an external printf program on Solaris,
adamc@1095 10549 # but without wasting forks for bash or zsh.
adamc@1095 10550 if test -z "$BASH_VERSION$ZSH_VERSION" \
adamc@1095 10551 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
adamc@1095 10552 as_echo='print -r --'
adamc@1095 10553 as_echo_n='print -rn --'
adamc@1095 10554 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
adamc@1095 10555 as_echo='printf %s\n'
adamc@1095 10556 as_echo_n='printf %s'
adamc@1095 10557 else
adamc@1095 10558 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
adamc@1095 10559 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
adamc@1095 10560 as_echo_n='/usr/ucb/echo -n'
adamc@1095 10561 else
adamc@1095 10562 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
adamc@1095 10563 as_echo_n_body='eval
adamc@1095 10564 arg=$1;
adamc@1095 10565 case $arg in #(
adamc@1095 10566 *"$as_nl"*)
adamc@1095 10567 expr "X$arg" : "X\\(.*\\)$as_nl";
adamc@1095 10568 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
adamc@1095 10569 esac;
adamc@1095 10570 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
adamc@1095 10571 '
adamc@1095 10572 export as_echo_n_body
adamc@1095 10573 as_echo_n='sh -c $as_echo_n_body as_echo'
adamc@1095 10574 fi
adamc@1095 10575 export as_echo_body
adamc@1095 10576 as_echo='sh -c $as_echo_body as_echo'
adamc@1095 10577 fi
adamc@378 10578
adamc@378 10579 # The user is always right.
adamc@378 10580 if test "${PATH_SEPARATOR+set}" != set; then
adamc@1095 10581 PATH_SEPARATOR=:
adamc@1095 10582 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
adamc@1095 10583 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
adamc@1095 10584 PATH_SEPARATOR=';'
adamc@1095 10585 }
adamc@378 10586 fi
adamc@378 10587
adamc@378 10588
adamc@378 10589 # IFS
adamc@378 10590 # We need space, tab and new line, in precisely that order. Quoting is
adamc@378 10591 # there to prevent editors from complaining about space-tab.
adamc@378 10592 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
adamc@378 10593 # splitting by setting IFS to empty value.)
adamc@378 10594 IFS=" "" $as_nl"
adamc@378 10595
adamc@378 10596 # Find who we are. Look in the path if we contain no directory separator.
adamc@1095 10597 case $0 in #((
adamc@378 10598 *[\\/]* ) as_myself=$0 ;;
adamc@378 10599 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@378 10600 for as_dir in $PATH
adamc@378 10601 do
adamc@378 10602 IFS=$as_save_IFS
adamc@378 10603 test -z "$as_dir" && as_dir=.
adamc@1095 10604 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
adamc@1095 10605 done
adamc@378 10606 IFS=$as_save_IFS
adamc@378 10607
adamc@378 10608 ;;
adamc@378 10609 esac
adamc@378 10610 # We did not find ourselves, most probably we were run as `sh COMMAND'
adamc@378 10611 # in which case we are not to be found in the path.
adamc@378 10612 if test "x$as_myself" = x; then
adamc@378 10613 as_myself=$0
adamc@378 10614 fi
adamc@378 10615 if test ! -f "$as_myself"; then
adamc@1095 10616 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
adamc@1095 10617 exit 1
adamc@378 10618 fi
adamc@378 10619
adamc@1095 10620 # Unset variables that we do not need and which cause bugs (e.g. in
adamc@1095 10621 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
adamc@1095 10622 # suppresses any "Segmentation fault" message there. '((' could
adamc@1095 10623 # trigger a bug in pdksh 5.2.14.
adamc@1095 10624 for as_var in BASH_ENV ENV MAIL MAILPATH
adamc@1095 10625 do eval test x\${$as_var+set} = xset \
adamc@1095 10626 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
adamc@378 10627 done
adamc@378 10628 PS1='$ '
adamc@378 10629 PS2='> '
adamc@378 10630 PS4='+ '
adamc@378 10631
adamc@378 10632 # NLS nuisances.
adamc@1095 10633 LC_ALL=C
adamc@1095 10634 export LC_ALL
adamc@1095 10635 LANGUAGE=C
adamc@1095 10636 export LANGUAGE
adamc@1095 10637
adamc@1095 10638 # CDPATH.
adamc@1095 10639 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
adamc@1095 10640
adamc@1095 10641
adamc@1095 10642 # as_fn_error ERROR [LINENO LOG_FD]
adamc@1095 10643 # ---------------------------------
adamc@1095 10644 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
adamc@1095 10645 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
adamc@1095 10646 # script with status $?, using 1 if that was 0.
adamc@1095 10647 as_fn_error ()
adamc@1095 10648 {
adamc@1095 10649 as_status=$?; test $as_status -eq 0 && as_status=1
adamc@1095 10650 if test "$3"; then
adamc@1095 10651 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adamc@1095 10652 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
adamc@378 10653 fi
adamc@1095 10654 $as_echo "$as_me: error: $1" >&2
adamc@1095 10655 as_fn_exit $as_status
adamc@1095 10656 } # as_fn_error
adamc@378 10657
adamc@1095 10658
adamc@1095 10659 # as_fn_set_status STATUS
adamc@1095 10660 # -----------------------
adamc@1095 10661 # Set $? to STATUS, without forking.
adamc@1095 10662 as_fn_set_status ()
adamc@1095 10663 {
adamc@1095 10664 return $1
adamc@1095 10665 } # as_fn_set_status
adamc@1095 10666
adamc@1095 10667 # as_fn_exit STATUS
adamc@1095 10668 # -----------------
adamc@1095 10669 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
adamc@1095 10670 as_fn_exit ()
adamc@1095 10671 {
adamc@1095 10672 set +e
adamc@1095 10673 as_fn_set_status $1
adamc@1095 10674 exit $1
adamc@1095 10675 } # as_fn_exit
adamc@1095 10676
adamc@1095 10677 # as_fn_unset VAR
adamc@1095 10678 # ---------------
adamc@1095 10679 # Portably unset VAR.
adamc@1095 10680 as_fn_unset ()
adamc@1095 10681 {
adamc@1095 10682 { eval $1=; unset $1;}
adamc@1095 10683 }
adamc@1095 10684 as_unset=as_fn_unset
adamc@1095 10685 # as_fn_append VAR VALUE
adamc@1095 10686 # ----------------------
adamc@1095 10687 # Append the text in VALUE to the end of the definition contained in VAR. Take
adamc@1095 10688 # advantage of any shell optimizations that allow amortized linear growth over
adamc@1095 10689 # repeated appends, instead of the typical quadratic growth present in naive
adamc@1095 10690 # implementations.
adamc@1095 10691 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
adamc@1095 10692 eval 'as_fn_append ()
adamc@1095 10693 {
adamc@1095 10694 eval $1+=\$2
adamc@1095 10695 }'
adamc@1095 10696 else
adamc@1095 10697 as_fn_append ()
adamc@1095 10698 {
adamc@1095 10699 eval $1=\$$1\$2
adamc@1095 10700 }
adamc@1095 10701 fi # as_fn_append
adamc@1095 10702
adamc@1095 10703 # as_fn_arith ARG...
adamc@1095 10704 # ------------------
adamc@1095 10705 # Perform arithmetic evaluation on the ARGs, and store the result in the
adamc@1095 10706 # global $as_val. Take advantage of shells that can avoid forks. The arguments
adamc@1095 10707 # must be portable across $(()) and expr.
adamc@1095 10708 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
adamc@1095 10709 eval 'as_fn_arith ()
adamc@1095 10710 {
adamc@1095 10711 as_val=$(( $* ))
adamc@1095 10712 }'
adamc@1095 10713 else
adamc@1095 10714 as_fn_arith ()
adamc@1095 10715 {
adamc@1095 10716 as_val=`expr "$@" || test $? -eq 1`
adamc@1095 10717 }
adamc@1095 10718 fi # as_fn_arith
adamc@1095 10719
adamc@1095 10720
adamc@378 10721 if expr a : '\(a\)' >/dev/null 2>&1 &&
adamc@378 10722 test "X`expr 00001 : '.*\(...\)'`" = X001; then
adamc@378 10723 as_expr=expr
adamc@378 10724 else
adamc@378 10725 as_expr=false
adamc@378 10726 fi
adamc@378 10727
adamc@378 10728 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
adamc@378 10729 as_basename=basename
adamc@378 10730 else
adamc@378 10731 as_basename=false
adamc@378 10732 fi
adamc@378 10733
adamc@1095 10734 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
adamc@1095 10735 as_dirname=dirname
adamc@1095 10736 else
adamc@1095 10737 as_dirname=false
adamc@1095 10738 fi
adamc@378 10739
adamc@378 10740 as_me=`$as_basename -- "$0" ||
adamc@378 10741 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
adamc@378 10742 X"$0" : 'X\(//\)$' \| \
adamc@378 10743 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1095 10744 $as_echo X/"$0" |
adamc@378 10745 sed '/^.*\/\([^/][^/]*\)\/*$/{
adamc@378 10746 s//\1/
adamc@378 10747 q
adamc@378 10748 }
adamc@378 10749 /^X\/\(\/\/\)$/{
adamc@378 10750 s//\1/
adamc@378 10751 q
adamc@378 10752 }
adamc@378 10753 /^X\/\(\/\).*/{
adamc@378 10754 s//\1/
adamc@378 10755 q
adamc@378 10756 }
adamc@378 10757 s/.*/./; q'`
adamc@378 10758
adamc@1095 10759 # Avoid depending upon Character Ranges.
adamc@1095 10760 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
adamc@1095 10761 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
adamc@1095 10762 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
adamc@1095 10763 as_cr_digits='0123456789'
adamc@1095 10764 as_cr_alnum=$as_cr_Letters$as_cr_digits
adamc@378 10765
adamc@378 10766 ECHO_C= ECHO_N= ECHO_T=
adamc@1095 10767 case `echo -n x` in #(((((
adamc@378 10768 -n*)
adamc@1095 10769 case `echo 'xy\c'` in
adamc@378 10770 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
adamc@1095 10771 xy) ECHO_C='\c';;
adamc@1095 10772 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
adamc@1095 10773 ECHO_T=' ';;
adamc@378 10774 esac;;
adamc@378 10775 *)
adamc@378 10776 ECHO_N='-n';;
adamc@378 10777 esac
adamc@378 10778
adamc@378 10779 rm -f conf$$ conf$$.exe conf$$.file
adamc@378 10780 if test -d conf$$.dir; then
adamc@378 10781 rm -f conf$$.dir/conf$$.file
adamc@378 10782 else
adamc@378 10783 rm -f conf$$.dir
adamc@1095 10784 mkdir conf$$.dir 2>/dev/null
adamc@378 10785 fi
adamc@1095 10786 if (echo >conf$$.file) 2>/dev/null; then
adamc@1095 10787 if ln -s conf$$.file conf$$ 2>/dev/null; then
adamc@1095 10788 as_ln_s='ln -s'
adamc@1095 10789 # ... but there are two gotchas:
adamc@1095 10790 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
adamc@1095 10791 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
adamc@1095 10792 # In both cases, we have to default to `cp -p'.
adamc@1095 10793 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
adamc@1095 10794 as_ln_s='cp -p'
adamc@1095 10795 elif ln conf$$.file conf$$ 2>/dev/null; then
adamc@1095 10796 as_ln_s=ln
adamc@1095 10797 else
adamc@378 10798 as_ln_s='cp -p'
adamc@1095 10799 fi
adamc@378 10800 else
adamc@378 10801 as_ln_s='cp -p'
adamc@378 10802 fi
adamc@378 10803 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
adamc@378 10804 rmdir conf$$.dir 2>/dev/null
adamc@378 10805
adamc@1095 10806
adamc@1095 10807 # as_fn_mkdir_p
adamc@1095 10808 # -------------
adamc@1095 10809 # Create "$as_dir" as a directory, including parents if necessary.
adamc@1095 10810 as_fn_mkdir_p ()
adamc@1095 10811 {
adamc@1095 10812
adamc@1095 10813 case $as_dir in #(
adamc@1095 10814 -*) as_dir=./$as_dir;;
adamc@1095 10815 esac
adamc@1095 10816 test -d "$as_dir" || eval $as_mkdir_p || {
adamc@1095 10817 as_dirs=
adamc@1095 10818 while :; do
adamc@1095 10819 case $as_dir in #(
adamc@1095 10820 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
adamc@1095 10821 *) as_qdir=$as_dir;;
adamc@1095 10822 esac
adamc@1095 10823 as_dirs="'$as_qdir' $as_dirs"
adamc@1095 10824 as_dir=`$as_dirname -- "$as_dir" ||
adamc@1095 10825 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
adamc@1095 10826 X"$as_dir" : 'X\(//\)[^/]' \| \
adamc@1095 10827 X"$as_dir" : 'X\(//\)$' \| \
adamc@1095 10828 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1095 10829 $as_echo X"$as_dir" |
adamc@1095 10830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
adamc@1095 10831 s//\1/
adamc@1095 10832 q
adamc@1095 10833 }
adamc@1095 10834 /^X\(\/\/\)[^/].*/{
adamc@1095 10835 s//\1/
adamc@1095 10836 q
adamc@1095 10837 }
adamc@1095 10838 /^X\(\/\/\)$/{
adamc@1095 10839 s//\1/
adamc@1095 10840 q
adamc@1095 10841 }
adamc@1095 10842 /^X\(\/\).*/{
adamc@1095 10843 s//\1/
adamc@1095 10844 q
adamc@1095 10845 }
adamc@1095 10846 s/.*/./; q'`
adamc@1095 10847 test -d "$as_dir" && break
adamc@1095 10848 done
adamc@1095 10849 test -z "$as_dirs" || eval "mkdir $as_dirs"
adamc@1095 10850 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
adamc@1095 10851
adamc@1095 10852
adamc@1095 10853 } # as_fn_mkdir_p
adamc@378 10854 if mkdir -p . 2>/dev/null; then
adamc@1095 10855 as_mkdir_p='mkdir -p "$as_dir"'
adamc@378 10856 else
adamc@378 10857 test -d ./-p && rmdir ./-p
adamc@378 10858 as_mkdir_p=false
adamc@378 10859 fi
adamc@378 10860
adamc@378 10861 if test -x / >/dev/null 2>&1; then
adamc@378 10862 as_test_x='test -x'
adamc@378 10863 else
adamc@378 10864 if ls -dL / >/dev/null 2>&1; then
adamc@378 10865 as_ls_L_option=L
adamc@378 10866 else
adamc@378 10867 as_ls_L_option=
adamc@378 10868 fi
adamc@378 10869 as_test_x='
adamc@378 10870 eval sh -c '\''
adamc@378 10871 if test -d "$1"; then
adamc@1095 10872 test -d "$1/.";
adamc@378 10873 else
adamc@1095 10874 case $1 in #(
adamc@1095 10875 -*)set "./$1";;
adamc@378 10876 esac;
adamc@1095 10877 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
adamc@378 10878 ???[sx]*):;;*)false;;esac;fi
adamc@378 10879 '\'' sh
adamc@378 10880 '
adamc@378 10881 fi
adamc@378 10882 as_executable_p=$as_test_x
adamc@378 10883
adamc@378 10884 # Sed expression to map a string onto a valid CPP name.
adamc@378 10885 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
adamc@378 10886
adamc@378 10887 # Sed expression to map a string onto a valid variable name.
adamc@378 10888 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
adamc@378 10889
adamc@378 10890
adamc@378 10891 exec 6>&1
adamc@1095 10892 ## ----------------------------------- ##
adamc@1095 10893 ## Main body of $CONFIG_STATUS script. ##
adamc@1095 10894 ## ----------------------------------- ##
adamc@1095 10895 _ASEOF
adamc@1095 10896 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
adamc@378 10897
adamc@1095 10898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@1095 10899 # Save the log message, to keep $0 and so on meaningful, and to
adamc@378 10900 # report actual input values of CONFIG_FILES etc. instead of their
adamc@378 10901 # values after options handling.
adamc@378 10902 ac_log="
adamc@1132 10903 This file was extended by urweb $as_me 1.0, which was
adamc@1095 10904 generated by GNU Autoconf 2.65. Invocation command line was
adamc@378 10905
adamc@378 10906 CONFIG_FILES = $CONFIG_FILES
adamc@378 10907 CONFIG_HEADERS = $CONFIG_HEADERS
adamc@378 10908 CONFIG_LINKS = $CONFIG_LINKS
adamc@378 10909 CONFIG_COMMANDS = $CONFIG_COMMANDS
adamc@378 10910 $ $0 $@
adamc@378 10911
adamc@378 10912 on `(hostname || uname -n) 2>/dev/null | sed 1q`
adamc@378 10913 "
adamc@378 10914
adamc@378 10915 _ACEOF
adamc@378 10916
adamc@1095 10917 case $ac_config_files in *"
adamc@1095 10918 "*) set x $ac_config_files; shift; ac_config_files=$*;;
adamc@1095 10919 esac
adamc@1095 10920
adamc@1095 10921
adamc@1095 10922
adamc@1095 10923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@378 10924 # Files that config.status was made for.
adamc@378 10925 config_files="$ac_config_files"
adamc@1132 10926 config_commands="$ac_config_commands"
adamc@378 10927
adamc@378 10928 _ACEOF
adamc@378 10929
adamc@1095 10930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@378 10931 ac_cs_usage="\
adamc@1095 10932 \`$as_me' instantiates files and other configuration actions
adamc@1095 10933 from templates according to the current configuration. Unless the files
adamc@1095 10934 and actions are specified as TAGs, all are instantiated by default.
adamc@378 10935
adamc@1095 10936 Usage: $0 [OPTION]... [TAG]...
adamc@378 10937
adamc@378 10938 -h, --help print this help, then exit
adamc@378 10939 -V, --version print version number and configuration settings, then exit
adamc@1095 10940 --config print configuration, then exit
adamc@1095 10941 -q, --quiet, --silent
adamc@1095 10942 do not print progress messages
adamc@378 10943 -d, --debug don't remove temporary files
adamc@378 10944 --recheck update $as_me by reconfiguring in the same conditions
adamc@1095 10945 --file=FILE[:TEMPLATE]
adamc@1095 10946 instantiate the configuration file FILE
adamc@378 10947
adamc@378 10948 Configuration files:
adamc@378 10949 $config_files
adamc@378 10950
adamc@1132 10951 Configuration commands:
adamc@1132 10952 $config_commands
adamc@1132 10953
adamc@1095 10954 Report bugs to the package provider."
adamc@378 10955
adamc@378 10956 _ACEOF
adamc@1095 10957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@1095 10958 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
adamc@378 10959 ac_cs_version="\\
adamc@1132 10960 urweb config.status 1.0
adamc@1095 10961 configured by $0, generated by GNU Autoconf 2.65,
adamc@1095 10962 with options \\"\$ac_cs_config\\"
adamc@378 10963
adamc@1095 10964 Copyright (C) 2009 Free Software Foundation, Inc.
adamc@378 10965 This config.status script is free software; the Free Software Foundation
adamc@378 10966 gives unlimited permission to copy, distribute and modify it."
adamc@378 10967
adamc@378 10968 ac_pwd='$ac_pwd'
adamc@378 10969 srcdir='$srcdir'
adamc@1132 10970 INSTALL='$INSTALL'
adamc@1132 10971 MKDIR_P='$MKDIR_P'
adamc@1132 10972 AWK='$AWK'
adamc@1095 10973 test -n "\$AWK" || AWK=awk
adamc@378 10974 _ACEOF
adamc@378 10975
adamc@1095 10976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@1095 10977 # The default lists apply if the user does not specify any file.
adamc@378 10978 ac_need_defaults=:
adamc@378 10979 while test $# != 0
adamc@378 10980 do
adamc@378 10981 case $1 in
adamc@378 10982 --*=*)
adamc@378 10983 ac_option=`expr "X$1" : 'X\([^=]*\)='`
adamc@378 10984 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
adamc@378 10985 ac_shift=:
adamc@378 10986 ;;
adamc@378 10987 *)
adamc@378 10988 ac_option=$1
adamc@378 10989 ac_optarg=$2
adamc@378 10990 ac_shift=shift
adamc@378 10991 ;;
adamc@378 10992 esac
adamc@378 10993
adamc@378 10994 case $ac_option in
adamc@378 10995 # Handling of the options.
adamc@378 10996 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
adamc@378 10997 ac_cs_recheck=: ;;
adamc@378 10998 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
adamc@1095 10999 $as_echo "$ac_cs_version"; exit ;;
adamc@1095 11000 --config | --confi | --conf | --con | --co | --c )
adamc@1095 11001 $as_echo "$ac_cs_config"; exit ;;
adamc@378 11002 --debug | --debu | --deb | --de | --d | -d )
adamc@378 11003 debug=: ;;
adamc@378 11004 --file | --fil | --fi | --f )
adamc@378 11005 $ac_shift
adamc@1095 11006 case $ac_optarg in
adamc@1095 11007 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
adamc@1095 11008 esac
adamc@1095 11009 as_fn_append CONFIG_FILES " '$ac_optarg'"
adamc@378 11010 ac_need_defaults=false;;
adamc@378 11011 --he | --h | --help | --hel | -h )
adamc@1095 11012 $as_echo "$ac_cs_usage"; exit ;;
adamc@378 11013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
adamc@378 11014 | -silent | --silent | --silen | --sile | --sil | --si | --s)
adamc@378 11015 ac_cs_silent=: ;;
adamc@378 11016
adamc@378 11017 # This is an error.
adamc@1095 11018 -*) as_fn_error "unrecognized option: \`$1'
adamc@1095 11019 Try \`$0 --help' for more information." ;;
adamc@378 11020
adamc@1095 11021 *) as_fn_append ac_config_targets " $1"
adamc@378 11022 ac_need_defaults=false ;;
adamc@378 11023
adamc@378 11024 esac
adamc@378 11025 shift
adamc@378 11026 done
adamc@378 11027
adamc@378 11028 ac_configure_extra_args=
adamc@378 11029
adamc@378 11030 if $ac_cs_silent; then
adamc@378 11031 exec 6>/dev/null
adamc@378 11032 ac_configure_extra_args="$ac_configure_extra_args --silent"
adamc@378 11033 fi
adamc@378 11034
adamc@378 11035 _ACEOF
adamc@1095 11036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@378 11037 if \$ac_cs_recheck; then
adamc@1095 11038 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
adamc@1095 11039 shift
adamc@1095 11040 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
adamc@1095 11041 CONFIG_SHELL='$SHELL'
adamc@378 11042 export CONFIG_SHELL
adamc@1095 11043 exec "\$@"
adamc@378 11044 fi
adamc@378 11045
adamc@378 11046 _ACEOF
adamc@1095 11047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@378 11048 exec 5>>config.log
adamc@378 11049 {
adamc@378 11050 echo
adamc@378 11051 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
adamc@378 11052 ## Running $as_me. ##
adamc@378 11053 _ASBOX
adamc@1095 11054 $as_echo "$ac_log"
adamc@378 11055 } >&5
adamc@378 11056
adamc@378 11057 _ACEOF
adamc@1095 11058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@1132 11059 #
adamc@1132 11060 # INIT-COMMANDS
adamc@1132 11061 #
adamc@1132 11062 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
adamc@1132 11063
adamc@1132 11064
adamc@1132 11065 # The HP-UX ksh and POSIX shell print the target directory to stdout
adamc@1132 11066 # if CDPATH is set.
adamc@1132 11067 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
adamc@1132 11068
adamc@1132 11069 sed_quote_subst='$sed_quote_subst'
adamc@1132 11070 double_quote_subst='$double_quote_subst'
adamc@1132 11071 delay_variable_subst='$delay_variable_subst'
adamc@1132 11072 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11073 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11074 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11075 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11076 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11077 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11078 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11079 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11080 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11081 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11082 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11083 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11084 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11085 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11086 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11087 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11088 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11089 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11090 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11091 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11092 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11093 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11094 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11095 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11096 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11097 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11098 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11099 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11100 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11101 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11102 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11103 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11104 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11105 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11106 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11107 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11108 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11109 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11110 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11111 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11112 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11113 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11114 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11115 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11116 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11117 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11118 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11119 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11120 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11121 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11122 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11123 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11124 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11125 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11126 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11127 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11128 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11129 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11130 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11131 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11132 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11133 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11134 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11135 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11136 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11137 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11138 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11139 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11140 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11141 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11142 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11143 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11144 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11145 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11146 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11147 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11148 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11149 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11150 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11151 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11152 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11153 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11154 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11155 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11156 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11157 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11158 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11159 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11160 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11161 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11162 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11163 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11164 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11165 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11166 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11167 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11168 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11169 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11170 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11171 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11172 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11173 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11174 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11175 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11176 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11177 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11178 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11179 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11180 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11181 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11182 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11183 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11184 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11185 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11186 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11187 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11188 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11189 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 11190
adamc@1132 11191 LTCC='$LTCC'
adamc@1132 11192 LTCFLAGS='$LTCFLAGS'
adamc@1132 11193 compiler='$compiler_DEFAULT'
adamc@1132 11194
adamc@1132 11195 # Quote evaled strings.
adamc@1132 11196 for var in SED \
adamc@1132 11197 GREP \
adamc@1132 11198 EGREP \
adamc@1132 11199 FGREP \
adamc@1132 11200 LD \
adamc@1132 11201 NM \
adamc@1132 11202 LN_S \
adamc@1132 11203 lt_SP2NL \
adamc@1132 11204 lt_NL2SP \
adamc@1132 11205 reload_flag \
adamc@1132 11206 OBJDUMP \
adamc@1132 11207 deplibs_check_method \
adamc@1132 11208 file_magic_cmd \
adamc@1132 11209 AR \
adamc@1132 11210 AR_FLAGS \
adamc@1132 11211 STRIP \
adamc@1132 11212 RANLIB \
adamc@1132 11213 CC \
adamc@1132 11214 CFLAGS \
adamc@1132 11215 compiler \
adamc@1132 11216 lt_cv_sys_global_symbol_pipe \
adamc@1132 11217 lt_cv_sys_global_symbol_to_cdecl \
adamc@1132 11218 lt_cv_sys_global_symbol_to_c_name_address \
adamc@1132 11219 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
adamc@1132 11220 SHELL \
adamc@1132 11221 ECHO \
adamc@1132 11222 lt_prog_compiler_no_builtin_flag \
adamc@1132 11223 lt_prog_compiler_wl \
adamc@1132 11224 lt_prog_compiler_pic \
adamc@1132 11225 lt_prog_compiler_static \
adamc@1132 11226 lt_cv_prog_compiler_c_o \
adamc@1132 11227 need_locks \
adamc@1132 11228 DSYMUTIL \
adamc@1132 11229 NMEDIT \
adamc@1132 11230 LIPO \
adamc@1132 11231 OTOOL \
adamc@1132 11232 OTOOL64 \
adamc@1132 11233 shrext_cmds \
adamc@1132 11234 export_dynamic_flag_spec \
adamc@1132 11235 whole_archive_flag_spec \
adamc@1132 11236 compiler_needs_object \
adamc@1132 11237 with_gnu_ld \
adamc@1132 11238 allow_undefined_flag \
adamc@1132 11239 no_undefined_flag \
adamc@1132 11240 hardcode_libdir_flag_spec \
adamc@1132 11241 hardcode_libdir_flag_spec_ld \
adamc@1132 11242 hardcode_libdir_separator \
adamc@1132 11243 fix_srcfile_path \
adamc@1132 11244 exclude_expsyms \
adamc@1132 11245 include_expsyms \
adamc@1132 11246 file_list_spec \
adamc@1132 11247 variables_saved_for_relink \
adamc@1132 11248 libname_spec \
adamc@1132 11249 library_names_spec \
adamc@1132 11250 soname_spec \
adamc@1132 11251 finish_eval \
adamc@1132 11252 old_striplib \
adamc@1132 11253 striplib; do
adamc@1132 11254 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
adamc@1132 11255 *[\\\\\\\`\\"\\\$]*)
adamc@1132 11256 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
adamc@1132 11257 ;;
adamc@1132 11258 *)
adamc@1132 11259 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
adamc@1132 11260 ;;
adamc@1132 11261 esac
adamc@1132 11262 done
adamc@1132 11263
adamc@1132 11264 # Double-quote double-evaled strings.
adamc@1132 11265 for var in reload_cmds \
adamc@1132 11266 old_postinstall_cmds \
adamc@1132 11267 old_postuninstall_cmds \
adamc@1132 11268 old_archive_cmds \
adamc@1132 11269 extract_expsyms_cmds \
adamc@1132 11270 old_archive_from_new_cmds \
adamc@1132 11271 old_archive_from_expsyms_cmds \
adamc@1132 11272 archive_cmds \
adamc@1132 11273 archive_expsym_cmds \
adamc@1132 11274 module_cmds \
adamc@1132 11275 module_expsym_cmds \
adamc@1132 11276 export_symbols_cmds \
adamc@1132 11277 prelink_cmds \
adamc@1132 11278 postinstall_cmds \
adamc@1132 11279 postuninstall_cmds \
adamc@1132 11280 finish_cmds \
adamc@1132 11281 sys_lib_search_path_spec \
adamc@1132 11282 sys_lib_dlsearch_path_spec; do
adamc@1132 11283 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
adamc@1132 11284 *[\\\\\\\`\\"\\\$]*)
adamc@1132 11285 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
adamc@1132 11286 ;;
adamc@1132 11287 *)
adamc@1132 11288 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
adamc@1132 11289 ;;
adamc@1132 11290 esac
adamc@1132 11291 done
adamc@1132 11292
adamc@1132 11293 # Fix-up fallback echo if it was mangled by the above quoting rules.
adamc@1132 11294 case \$lt_ECHO in
adamc@1132 11295 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
adamc@1132 11296 ;;
adamc@1132 11297 esac
adamc@1132 11298
adamc@1132 11299 ac_aux_dir='$ac_aux_dir'
adamc@1132 11300 xsi_shell='$xsi_shell'
adamc@1132 11301 lt_shell_append='$lt_shell_append'
adamc@1132 11302
adamc@1132 11303 # See if we are running on zsh, and set the options which allow our
adamc@1132 11304 # commands through without removal of \ escapes INIT.
adamc@1132 11305 if test -n "\${ZSH_VERSION+set}" ; then
adamc@1132 11306 setopt NO_GLOB_SUBST
adamc@1132 11307 fi
adamc@1132 11308
adamc@1132 11309
adamc@1132 11310 PACKAGE='$PACKAGE'
adamc@1132 11311 VERSION='$VERSION'
adamc@1132 11312 TIMESTAMP='$TIMESTAMP'
adamc@1132 11313 RM='$RM'
adamc@1132 11314 ofile='$ofile'
adamc@1132 11315
adamc@1132 11316
adamc@1132 11317
adamc@1132 11318
adamc@378 11319 _ACEOF
adamc@378 11320
adamc@1095 11321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@378 11322
adamc@378 11323 # Handling of arguments.
adamc@378 11324 for ac_config_target in $ac_config_targets
adamc@378 11325 do
adamc@378 11326 case $ac_config_target in
adamc@1132 11327 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
adamc@1132 11328 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
adamc@378 11329 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
adamc@1132 11330 "src/c/Makefile") CONFIG_FILES="$CONFIG_FILES src/c/Makefile" ;;
adamc@378 11331 "src/config.sml") CONFIG_FILES="$CONFIG_FILES src/config.sml" ;;
adamc@378 11332
adamc@1095 11333 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
adamc@378 11334 esac
adamc@378 11335 done
adamc@378 11336
adamc@378 11337
adamc@378 11338 # If the user did not use the arguments to specify the items to instantiate,
adamc@378 11339 # then the envvar interface is used. Set only those that are not.
adamc@378 11340 # We use the long form for the default assignment because of an extremely
adamc@378 11341 # bizarre bug on SunOS 4.1.3.
adamc@378 11342 if $ac_need_defaults; then
adamc@378 11343 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
adamc@1132 11344 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
adamc@378 11345 fi
adamc@378 11346
adamc@378 11347 # Have a temporary directory for convenience. Make it in the build tree
adamc@378 11348 # simply because there is no reason against having it here, and in addition,
adamc@378 11349 # creating and moving files from /tmp can sometimes cause problems.
adamc@378 11350 # Hook for its removal unless debugging.
adamc@378 11351 # Note that there is a small window in which the directory will not be cleaned:
adamc@378 11352 # after its creation but before its name has been assigned to `$tmp'.
adamc@378 11353 $debug ||
adamc@378 11354 {
adamc@378 11355 tmp=
adamc@378 11356 trap 'exit_status=$?
adamc@378 11357 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
adamc@378 11358 ' 0
adamc@1095 11359 trap 'as_fn_exit 1' 1 2 13 15
adamc@378 11360 }
adamc@378 11361 # Create a (secure) tmp directory for tmp files.
adamc@378 11362
adamc@378 11363 {
adamc@378 11364 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
adamc@378 11365 test -n "$tmp" && test -d "$tmp"
adamc@378 11366 } ||
adamc@378 11367 {
adamc@378 11368 tmp=./conf$$-$RANDOM
adamc@378 11369 (umask 077 && mkdir "$tmp")
adamc@1095 11370 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
adamc@378 11371
adamc@1095 11372 # Set up the scripts for CONFIG_FILES section.
adamc@1095 11373 # No need to generate them if there are no CONFIG_FILES.
adamc@1095 11374 # This happens for instance with `./config.status config.h'.
adamc@378 11375 if test -n "$CONFIG_FILES"; then
adamc@378 11376
adamc@1095 11377
adamc@1095 11378 ac_cr=`echo X | tr X '\015'`
adamc@1095 11379 # On cygwin, bash can eat \r inside `` if the user requested igncr.
adamc@1095 11380 # But we know of no other shell where ac_cr would be empty at this
adamc@1095 11381 # point, so we can use a bashism as a fallback.
adamc@1095 11382 if test "x$ac_cr" = x; then
adamc@1095 11383 eval ac_cr=\$\'\\r\'
adamc@1095 11384 fi
adamc@1095 11385 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
adamc@1095 11386 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
adamc@1095 11387 ac_cs_awk_cr='\r'
adamc@1095 11388 else
adamc@1095 11389 ac_cs_awk_cr=$ac_cr
adamc@1095 11390 fi
adamc@1095 11391
adamc@1095 11392 echo 'BEGIN {' >"$tmp/subs1.awk" &&
adamc@378 11393 _ACEOF
adamc@378 11394
adamc@378 11395
adamc@1095 11396 {
adamc@1095 11397 echo "cat >conf$$subs.awk <<_ACEOF" &&
adamc@1095 11398 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
adamc@1095 11399 echo "_ACEOF"
adamc@1095 11400 } >conf$$subs.sh ||
adamc@1095 11401 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
adamc@1095 11402 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
adamc@378 11403 ac_delim='%!_!# '
adamc@378 11404 for ac_last_try in false false false false false :; do
adamc@1095 11405 . ./conf$$subs.sh ||
adamc@1095 11406 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
adamc@378 11407
adamc@1095 11408 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
adamc@1095 11409 if test $ac_delim_n = $ac_delim_num; then
adamc@378 11410 break
adamc@378 11411 elif $ac_last_try; then
adamc@1095 11412 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
adamc@378 11413 else
adamc@378 11414 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
adamc@378 11415 fi
adamc@378 11416 done
adamc@1095 11417 rm -f conf$$subs.sh
adamc@378 11418
adamc@1095 11419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@1095 11420 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
adamc@1095 11421 _ACEOF
adamc@1095 11422 sed -n '
adamc@1095 11423 h
adamc@1095 11424 s/^/S["/; s/!.*/"]=/
adamc@1095 11425 p
adamc@1095 11426 g
adamc@1095 11427 s/^[^!]*!//
adamc@1095 11428 :repl
adamc@1095 11429 t repl
adamc@1095 11430 s/'"$ac_delim"'$//
adamc@1095 11431 t delim
adamc@1095 11432 :nl
adamc@1095 11433 h
adamc@1095 11434 s/\(.\{148\}\)..*/\1/
adamc@1095 11435 t more1
adamc@1095 11436 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
adamc@1095 11437 p
adamc@1095 11438 n
adamc@1095 11439 b repl
adamc@1095 11440 :more1
adamc@1095 11441 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
adamc@1095 11442 p
adamc@1095 11443 g
adamc@1095 11444 s/.\{148\}//
adamc@1095 11445 t nl
adamc@1095 11446 :delim
adamc@1095 11447 h
adamc@1095 11448 s/\(.\{148\}\)..*/\1/
adamc@1095 11449 t more2
adamc@1095 11450 s/["\\]/\\&/g; s/^/"/; s/$/"/
adamc@1095 11451 p
adamc@1095 11452 b
adamc@1095 11453 :more2
adamc@1095 11454 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
adamc@1095 11455 p
adamc@1095 11456 g
adamc@1095 11457 s/.\{148\}//
adamc@1095 11458 t delim
adamc@1095 11459 ' <conf$$subs.awk | sed '
adamc@1095 11460 /^[^""]/{
adamc@1095 11461 N
adamc@1095 11462 s/\n//
adamc@1095 11463 }
adamc@1095 11464 ' >>$CONFIG_STATUS || ac_write_fail=1
adamc@1095 11465 rm -f conf$$subs.awk
adamc@1095 11466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@1095 11467 _ACAWK
adamc@1095 11468 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
adamc@1095 11469 for (key in S) S_is_set[key] = 1
adamc@1095 11470 FS = ""
adamc@378 11471
adamc@1095 11472 }
adamc@1095 11473 {
adamc@1095 11474 line = $ 0
adamc@1095 11475 nfields = split(line, field, "@")
adamc@1095 11476 substed = 0
adamc@1095 11477 len = length(field[1])
adamc@1095 11478 for (i = 2; i < nfields; i++) {
adamc@1095 11479 key = field[i]
adamc@1095 11480 keylen = length(key)
adamc@1095 11481 if (S_is_set[key]) {
adamc@1095 11482 value = S[key]
adamc@1095 11483 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
adamc@1095 11484 len += length(value) + length(field[++i])
adamc@1095 11485 substed = 1
adamc@1095 11486 } else
adamc@1095 11487 len += 1 + keylen
adamc@1095 11488 }
adamc@1095 11489
adamc@1095 11490 print line
adamc@1095 11491 }
adamc@1095 11492
adamc@1095 11493 _ACAWK
adamc@378 11494 _ACEOF
adamc@1095 11495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@1095 11496 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
adamc@1095 11497 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
adamc@1095 11498 else
adamc@1095 11499 cat
adamc@1095 11500 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
adamc@1095 11501 || as_fn_error "could not setup config files machinery" "$LINENO" 5
adamc@378 11502 _ACEOF
adamc@378 11503
adamc@378 11504 # VPATH may cause trouble with some makes, so we remove $(srcdir),
adamc@378 11505 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
adamc@378 11506 # trailing colons and then remove the whole line if VPATH becomes empty
adamc@378 11507 # (actually we leave an empty line to preserve line numbers).
adamc@378 11508 if test "x$srcdir" = x.; then
adamc@378 11509 ac_vpsub='/^[ ]*VPATH[ ]*=/{
adamc@378 11510 s/:*\$(srcdir):*/:/
adamc@378 11511 s/:*\${srcdir}:*/:/
adamc@378 11512 s/:*@srcdir@:*/:/
adamc@378 11513 s/^\([^=]*=[ ]*\):*/\1/
adamc@378 11514 s/:*$//
adamc@378 11515 s/^[^=]*=[ ]*$//
adamc@378 11516 }'
adamc@378 11517 fi
adamc@378 11518
adamc@1095 11519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@378 11520 fi # test -n "$CONFIG_FILES"
adamc@378 11521
adamc@378 11522
adamc@1132 11523 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
adamc@1095 11524 shift
adamc@1095 11525 for ac_tag
adamc@378 11526 do
adamc@378 11527 case $ac_tag in
adamc@378 11528 :[FHLC]) ac_mode=$ac_tag; continue;;
adamc@378 11529 esac
adamc@378 11530 case $ac_mode$ac_tag in
adamc@378 11531 :[FHL]*:*);;
adamc@1095 11532 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
adamc@378 11533 :[FH]-) ac_tag=-:-;;
adamc@378 11534 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
adamc@378 11535 esac
adamc@378 11536 ac_save_IFS=$IFS
adamc@378 11537 IFS=:
adamc@378 11538 set x $ac_tag
adamc@378 11539 IFS=$ac_save_IFS
adamc@378 11540 shift
adamc@378 11541 ac_file=$1
adamc@378 11542 shift
adamc@378 11543
adamc@378 11544 case $ac_mode in
adamc@378 11545 :L) ac_source=$1;;
adamc@378 11546 :[FH])
adamc@378 11547 ac_file_inputs=
adamc@378 11548 for ac_f
adamc@378 11549 do
adamc@378 11550 case $ac_f in
adamc@378 11551 -) ac_f="$tmp/stdin";;
adamc@378 11552 *) # Look for the file first in the build tree, then in the source tree
adamc@378 11553 # (if the path is not absolute). The absolute path cannot be DOS-style,
adamc@378 11554 # because $ac_f cannot contain `:'.
adamc@378 11555 test -f "$ac_f" ||
adamc@378 11556 case $ac_f in
adamc@378 11557 [\\/$]*) false;;
adamc@378 11558 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
adamc@378 11559 esac ||
adamc@1095 11560 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
adamc@378 11561 esac
adamc@1095 11562 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
adamc@1095 11563 as_fn_append ac_file_inputs " '$ac_f'"
adamc@378 11564 done
adamc@378 11565
adamc@378 11566 # Let's still pretend it is `configure' which instantiates (i.e., don't
adamc@378 11567 # use $as_me), people would be surprised to read:
adamc@378 11568 # /* config.h. Generated by config.status. */
adamc@1095 11569 configure_input='Generated from '`
adamc@1095 11570 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
adamc@1095 11571 `' by configure.'
adamc@378 11572 if test x"$ac_file" != x-; then
adamc@378 11573 configure_input="$ac_file. $configure_input"
adamc@1095 11574 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
adamc@1095 11575 $as_echo "$as_me: creating $ac_file" >&6;}
adamc@378 11576 fi
adamc@1095 11577 # Neutralize special characters interpreted by sed in replacement strings.
adamc@1095 11578 case $configure_input in #(
adamc@1095 11579 *\&* | *\|* | *\\* )
adamc@1095 11580 ac_sed_conf_input=`$as_echo "$configure_input" |
adamc@1095 11581 sed 's/[\\\\&|]/\\\\&/g'`;; #(
adamc@1095 11582 *) ac_sed_conf_input=$configure_input;;
adamc@1095 11583 esac
adamc@378 11584
adamc@378 11585 case $ac_tag in
adamc@1095 11586 *:-:* | *:-) cat >"$tmp/stdin" \
adamc@1095 11587 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
adamc@378 11588 esac
adamc@378 11589 ;;
adamc@378 11590 esac
adamc@378 11591
adamc@378 11592 ac_dir=`$as_dirname -- "$ac_file" ||
adamc@378 11593 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
adamc@378 11594 X"$ac_file" : 'X\(//\)[^/]' \| \
adamc@378 11595 X"$ac_file" : 'X\(//\)$' \| \
adamc@378 11596 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1095 11597 $as_echo X"$ac_file" |
adamc@378 11598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
adamc@378 11599 s//\1/
adamc@378 11600 q
adamc@378 11601 }
adamc@378 11602 /^X\(\/\/\)[^/].*/{
adamc@378 11603 s//\1/
adamc@378 11604 q
adamc@378 11605 }
adamc@378 11606 /^X\(\/\/\)$/{
adamc@378 11607 s//\1/
adamc@378 11608 q
adamc@378 11609 }
adamc@378 11610 /^X\(\/\).*/{
adamc@378 11611 s//\1/
adamc@378 11612 q
adamc@378 11613 }
adamc@378 11614 s/.*/./; q'`
adamc@1095 11615 as_dir="$ac_dir"; as_fn_mkdir_p
adamc@378 11616 ac_builddir=.
adamc@378 11617
adamc@378 11618 case "$ac_dir" in
adamc@378 11619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
adamc@378 11620 *)
adamc@1095 11621 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
adamc@378 11622 # A ".." for each directory in $ac_dir_suffix.
adamc@1095 11623 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
adamc@378 11624 case $ac_top_builddir_sub in
adamc@378 11625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
adamc@378 11626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
adamc@378 11627 esac ;;
adamc@378 11628 esac
adamc@378 11629 ac_abs_top_builddir=$ac_pwd
adamc@378 11630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
adamc@378 11631 # for backward compatibility:
adamc@378 11632 ac_top_builddir=$ac_top_build_prefix
adamc@378 11633
adamc@378 11634 case $srcdir in
adamc@378 11635 .) # We are building in place.
adamc@378 11636 ac_srcdir=.
adamc@378 11637 ac_top_srcdir=$ac_top_builddir_sub
adamc@378 11638 ac_abs_top_srcdir=$ac_pwd ;;
adamc@378 11639 [\\/]* | ?:[\\/]* ) # Absolute name.
adamc@378 11640 ac_srcdir=$srcdir$ac_dir_suffix;
adamc@378 11641 ac_top_srcdir=$srcdir
adamc@378 11642 ac_abs_top_srcdir=$srcdir ;;
adamc@378 11643 *) # Relative name.
adamc@378 11644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
adamc@378 11645 ac_top_srcdir=$ac_top_build_prefix$srcdir
adamc@378 11646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
adamc@378 11647 esac
adamc@378 11648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
adamc@378 11649
adamc@378 11650
adamc@378 11651 case $ac_mode in
adamc@378 11652 :F)
adamc@378 11653 #
adamc@378 11654 # CONFIG_FILE
adamc@378 11655 #
adamc@378 11656
adamc@1132 11657 case $INSTALL in
adamc@1132 11658 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
adamc@1132 11659 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
adamc@1132 11660 esac
adamc@1132 11661 ac_MKDIR_P=$MKDIR_P
adamc@1132 11662 case $MKDIR_P in
adamc@1132 11663 [\\/$]* | ?:[\\/]* ) ;;
adamc@1132 11664 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
adamc@1132 11665 esac
adamc@378 11666 _ACEOF
adamc@378 11667
adamc@1095 11668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@378 11669 # If the template does not know about datarootdir, expand it.
adamc@378 11670 # FIXME: This hack should be removed a few years after 2.60.
adamc@378 11671 ac_datarootdir_hack=; ac_datarootdir_seen=
adamc@1095 11672 ac_sed_dataroot='
adamc@1095 11673 /datarootdir/ {
adamc@378 11674 p
adamc@378 11675 q
adamc@378 11676 }
adamc@378 11677 /@datadir@/p
adamc@378 11678 /@docdir@/p
adamc@378 11679 /@infodir@/p
adamc@378 11680 /@localedir@/p
adamc@1095 11681 /@mandir@/p'
adamc@1095 11682 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
adamc@378 11683 *datarootdir*) ac_datarootdir_seen=yes;;
adamc@378 11684 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
adamc@1095 11685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
adamc@1095 11686 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
adamc@378 11687 _ACEOF
adamc@1095 11688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@378 11689 ac_datarootdir_hack='
adamc@378 11690 s&@datadir@&$datadir&g
adamc@378 11691 s&@docdir@&$docdir&g
adamc@378 11692 s&@infodir@&$infodir&g
adamc@378 11693 s&@localedir@&$localedir&g
adamc@378 11694 s&@mandir@&$mandir&g
adamc@1095 11695 s&\\\${datarootdir}&$datarootdir&g' ;;
adamc@378 11696 esac
adamc@378 11697 _ACEOF
adamc@378 11698
adamc@378 11699 # Neutralize VPATH when `$srcdir' = `.'.
adamc@378 11700 # Shell code in configure.ac might set extrasub.
adamc@378 11701 # FIXME: do we really want to maintain this feature?
adamc@1095 11702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@1095 11703 ac_sed_extra="$ac_vpsub
adamc@378 11704 $extrasub
adamc@378 11705 _ACEOF
adamc@1095 11706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@378 11707 :t
adamc@378 11708 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
adamc@1095 11709 s|@configure_input@|$ac_sed_conf_input|;t t
adamc@378 11710 s&@top_builddir@&$ac_top_builddir_sub&;t t
adamc@1095 11711 s&@top_build_prefix@&$ac_top_build_prefix&;t t
adamc@378 11712 s&@srcdir@&$ac_srcdir&;t t
adamc@378 11713 s&@abs_srcdir@&$ac_abs_srcdir&;t t
adamc@378 11714 s&@top_srcdir@&$ac_top_srcdir&;t t
adamc@378 11715 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
adamc@378 11716 s&@builddir@&$ac_builddir&;t t
adamc@378 11717 s&@abs_builddir@&$ac_abs_builddir&;t t
adamc@378 11718 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
adamc@1132 11719 s&@INSTALL@&$ac_INSTALL&;t t
adamc@1132 11720 s&@MKDIR_P@&$ac_MKDIR_P&;t t
adamc@378 11721 $ac_datarootdir_hack
adamc@1095 11722 "
adamc@1095 11723 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
adamc@1095 11724 || as_fn_error "could not create $ac_file" "$LINENO" 5
adamc@378 11725
adamc@378 11726 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
adamc@378 11727 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
adamc@378 11728 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
adamc@1095 11729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
adamc@378 11730 which seems to be undefined. Please make sure it is defined." >&5
adamc@1095 11731 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
adamc@378 11732 which seems to be undefined. Please make sure it is defined." >&2;}
adamc@378 11733
adamc@378 11734 rm -f "$tmp/stdin"
adamc@378 11735 case $ac_file in
adamc@1095 11736 -) cat "$tmp/out" && rm -f "$tmp/out";;
adamc@1095 11737 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
adamc@1095 11738 esac \
adamc@1095 11739 || as_fn_error "could not create $ac_file" "$LINENO" 5
adamc@378 11740 ;;
adamc@378 11741
adamc@378 11742
adamc@1132 11743 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
adamc@1132 11744 $as_echo "$as_me: executing $ac_file commands" >&6;}
adamc@1132 11745 ;;
adamc@378 11746 esac
adamc@378 11747
adamc@378 11748
adamc@378 11749 case $ac_file$ac_mode in
adamc@1132 11750 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
adamc@1132 11751 # Autoconf 2.62 quotes --file arguments for eval, but not when files
adamc@1132 11752 # are listed without --file. Let's play safe and only enable the eval
adamc@1132 11753 # if we detect the quoting.
adamc@1132 11754 case $CONFIG_FILES in
adamc@1132 11755 *\'*) eval set x "$CONFIG_FILES" ;;
adamc@1132 11756 *) set x $CONFIG_FILES ;;
adamc@1132 11757 esac
adamc@1132 11758 shift
adamc@1132 11759 for mf
adamc@1132 11760 do
adamc@1132 11761 # Strip MF so we end up with the name of the file.
adamc@1132 11762 mf=`echo "$mf" | sed -e 's/:.*$//'`
adamc@1132 11763 # Check whether this is an Automake generated Makefile or not.
adamc@1132 11764 # We used to match only the files named `Makefile.in', but
adamc@1132 11765 # some people rename them; so instead we look at the file content.
adamc@1132 11766 # Grep'ing the first line is not enough: some people post-process
adamc@1132 11767 # each Makefile.in and add a new line on top of each file to say so.
adamc@1132 11768 # Grep'ing the whole file is not good either: AIX grep has a line
adamc@1132 11769 # limit of 2048, but all sed's we know have understand at least 4000.
adamc@1132 11770 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
adamc@1132 11771 dirpart=`$as_dirname -- "$mf" ||
adamc@1132 11772 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
adamc@1132 11773 X"$mf" : 'X\(//\)[^/]' \| \
adamc@1132 11774 X"$mf" : 'X\(//\)$' \| \
adamc@1132 11775 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1132 11776 $as_echo X"$mf" |
adamc@1132 11777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
adamc@1132 11778 s//\1/
adamc@1132 11779 q
adamc@1132 11780 }
adamc@1132 11781 /^X\(\/\/\)[^/].*/{
adamc@1132 11782 s//\1/
adamc@1132 11783 q
adamc@1132 11784 }
adamc@1132 11785 /^X\(\/\/\)$/{
adamc@1132 11786 s//\1/
adamc@1132 11787 q
adamc@1132 11788 }
adamc@1132 11789 /^X\(\/\).*/{
adamc@1132 11790 s//\1/
adamc@1132 11791 q
adamc@1132 11792 }
adamc@1132 11793 s/.*/./; q'`
adamc@1132 11794 else
adamc@1132 11795 continue
adamc@1132 11796 fi
adamc@1132 11797 # Extract the definition of DEPDIR, am__include, and am__quote
adamc@1132 11798 # from the Makefile without running `make'.
adamc@1132 11799 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
adamc@1132 11800 test -z "$DEPDIR" && continue
adamc@1132 11801 am__include=`sed -n 's/^am__include = //p' < "$mf"`
adamc@1132 11802 test -z "am__include" && continue
adamc@1132 11803 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
adamc@1132 11804 # When using ansi2knr, U may be empty or an underscore; expand it
adamc@1132 11805 U=`sed -n 's/^U = //p' < "$mf"`
adamc@1132 11806 # Find all dependency output files, they are included files with
adamc@1132 11807 # $(DEPDIR) in their names. We invoke sed twice because it is the
adamc@1132 11808 # simplest approach to changing $(DEPDIR) to its actual value in the
adamc@1132 11809 # expansion.
adamc@1132 11810 for file in `sed -n "
adamc@1132 11811 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
adamc@1132 11812 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
adamc@1132 11813 # Make sure the directory exists.
adamc@1132 11814 test -f "$dirpart/$file" && continue
adamc@1132 11815 fdir=`$as_dirname -- "$file" ||
adamc@1132 11816 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
adamc@1132 11817 X"$file" : 'X\(//\)[^/]' \| \
adamc@1132 11818 X"$file" : 'X\(//\)$' \| \
adamc@1132 11819 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1132 11820 $as_echo X"$file" |
adamc@1132 11821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
adamc@1132 11822 s//\1/
adamc@1132 11823 q
adamc@1132 11824 }
adamc@1132 11825 /^X\(\/\/\)[^/].*/{
adamc@1132 11826 s//\1/
adamc@1132 11827 q
adamc@1132 11828 }
adamc@1132 11829 /^X\(\/\/\)$/{
adamc@1132 11830 s//\1/
adamc@1132 11831 q
adamc@1132 11832 }
adamc@1132 11833 /^X\(\/\).*/{
adamc@1132 11834 s//\1/
adamc@1132 11835 q
adamc@1132 11836 }
adamc@1132 11837 s/.*/./; q'`
adamc@1132 11838 as_dir=$dirpart/$fdir; as_fn_mkdir_p
adamc@1132 11839 # echo "creating $dirpart/$file"
adamc@1132 11840 echo '# dummy' > "$dirpart/$file"
adamc@1132 11841 done
adamc@1132 11842 done
adamc@1132 11843 }
adamc@1132 11844 ;;
adamc@1132 11845 "libtool":C)
adamc@1132 11846
adamc@1132 11847 # See if we are running on zsh, and set the options which allow our
adamc@1132 11848 # commands through without removal of \ escapes.
adamc@1132 11849 if test -n "${ZSH_VERSION+set}" ; then
adamc@1132 11850 setopt NO_GLOB_SUBST
adamc@1132 11851 fi
adamc@1132 11852
adamc@1132 11853 cfgfile="${ofile}T"
adamc@1132 11854 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
adamc@1132 11855 $RM "$cfgfile"
adamc@1132 11856
adamc@1132 11857 cat <<_LT_EOF >> "$cfgfile"
adamc@1132 11858 #! $SHELL
adamc@1132 11859
adamc@1132 11860 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
adamc@1132 11861 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
adamc@1132 11862 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
adamc@1132 11863 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
adamc@1132 11864 #
adamc@1132 11865 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
adamc@1132 11866 # 2006, 2007, 2008 Free Software Foundation, Inc.
adamc@1132 11867 # Written by Gordon Matzigkeit, 1996
adamc@1132 11868 #
adamc@1132 11869 # This file is part of GNU Libtool.
adamc@1132 11870 #
adamc@1132 11871 # GNU Libtool is free software; you can redistribute it and/or
adamc@1132 11872 # modify it under the terms of the GNU General Public License as
adamc@1132 11873 # published by the Free Software Foundation; either version 2 of
adamc@1132 11874 # the License, or (at your option) any later version.
adamc@1132 11875 #
adamc@1132 11876 # As a special exception to the GNU General Public License,
adamc@1132 11877 # if you distribute this file as part of a program or library that
adamc@1132 11878 # is built using GNU Libtool, you may include this file under the
adamc@1132 11879 # same distribution terms that you use for the rest of that program.
adamc@1132 11880 #
adamc@1132 11881 # GNU Libtool is distributed in the hope that it will be useful,
adamc@1132 11882 # but WITHOUT ANY WARRANTY; without even the implied warranty of
adamc@1132 11883 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
adamc@1132 11884 # GNU General Public License for more details.
adamc@1132 11885 #
adamc@1132 11886 # You should have received a copy of the GNU General Public License
adamc@1132 11887 # along with GNU Libtool; see the file COPYING. If not, a copy
adamc@1132 11888 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
adamc@1132 11889 # obtained by writing to the Free Software Foundation, Inc.,
adamc@1132 11890 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
adamc@1132 11891
adamc@1132 11892
adamc@1132 11893 # The names of the tagged configurations supported by this script.
adamc@1132 11894 available_tags=""
adamc@1132 11895
adamc@1132 11896 # ### BEGIN LIBTOOL CONFIG
adamc@1132 11897
adamc@1132 11898 # Which release of libtool.m4 was used?
adamc@1132 11899 macro_version=$macro_version
adamc@1132 11900 macro_revision=$macro_revision
adamc@1132 11901
adamc@1132 11902 # Whether or not to build shared libraries.
adamc@1132 11903 build_libtool_libs=$enable_shared
adamc@1132 11904
adamc@1132 11905 # Whether or not to build static libraries.
adamc@1132 11906 build_old_libs=$enable_static
adamc@1132 11907
adamc@1132 11908 # What type of objects to build.
adamc@1132 11909 pic_mode=$pic_mode
adamc@1132 11910
adamc@1132 11911 # Whether or not to optimize for fast installation.
adamc@1132 11912 fast_install=$enable_fast_install
adamc@1132 11913
adamc@1132 11914 # The host system.
adamc@1132 11915 host_alias=$host_alias
adamc@1132 11916 host=$host
adamc@1132 11917 host_os=$host_os
adamc@1132 11918
adamc@1132 11919 # The build system.
adamc@1132 11920 build_alias=$build_alias
adamc@1132 11921 build=$build
adamc@1132 11922 build_os=$build_os
adamc@1132 11923
adamc@1132 11924 # A sed program that does not truncate output.
adamc@1132 11925 SED=$lt_SED
adamc@1132 11926
adamc@1132 11927 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
adamc@1132 11928 Xsed="\$SED -e 1s/^X//"
adamc@1132 11929
adamc@1132 11930 # A grep program that handles long lines.
adamc@1132 11931 GREP=$lt_GREP
adamc@1132 11932
adamc@1132 11933 # An ERE matcher.
adamc@1132 11934 EGREP=$lt_EGREP
adamc@1132 11935
adamc@1132 11936 # A literal string matcher.
adamc@1132 11937 FGREP=$lt_FGREP
adamc@1132 11938
adamc@1132 11939 # A BSD- or MS-compatible name lister.
adamc@1132 11940 NM=$lt_NM
adamc@1132 11941
adamc@1132 11942 # Whether we need soft or hard links.
adamc@1132 11943 LN_S=$lt_LN_S
adamc@1132 11944
adamc@1132 11945 # What is the maximum length of a command?
adamc@1132 11946 max_cmd_len=$max_cmd_len
adamc@1132 11947
adamc@1132 11948 # Object file suffix (normally "o").
adamc@1132 11949 objext=$ac_objext
adamc@1132 11950
adamc@1132 11951 # Executable file suffix (normally "").
adamc@1132 11952 exeext=$exeext
adamc@1132 11953
adamc@1132 11954 # whether the shell understands "unset".
adamc@1132 11955 lt_unset=$lt_unset
adamc@1132 11956
adamc@1132 11957 # turn spaces into newlines.
adamc@1132 11958 SP2NL=$lt_lt_SP2NL
adamc@1132 11959
adamc@1132 11960 # turn newlines into spaces.
adamc@1132 11961 NL2SP=$lt_lt_NL2SP
adamc@1132 11962
adamc@1132 11963 # How to create reloadable object files.
adamc@1132 11964 reload_flag=$lt_reload_flag
adamc@1132 11965 reload_cmds=$lt_reload_cmds
adamc@1132 11966
adamc@1132 11967 # An object symbol dumper.
adamc@1132 11968 OBJDUMP=$lt_OBJDUMP
adamc@1132 11969
adamc@1132 11970 # Method to check whether dependent libraries are shared objects.
adamc@1132 11971 deplibs_check_method=$lt_deplibs_check_method
adamc@1132 11972
adamc@1132 11973 # Command to use when deplibs_check_method == "file_magic".
adamc@1132 11974 file_magic_cmd=$lt_file_magic_cmd
adamc@1132 11975
adamc@1132 11976 # The archiver.
adamc@1132 11977 AR=$lt_AR
adamc@1132 11978 AR_FLAGS=$lt_AR_FLAGS
adamc@1132 11979
adamc@1132 11980 # A symbol stripping program.
adamc@1132 11981 STRIP=$lt_STRIP
adamc@1132 11982
adamc@1132 11983 # Commands used to install an old-style archive.
adamc@1132 11984 RANLIB=$lt_RANLIB
adamc@1132 11985 old_postinstall_cmds=$lt_old_postinstall_cmds
adamc@1132 11986 old_postuninstall_cmds=$lt_old_postuninstall_cmds
adamc@1132 11987
adamc@1132 11988 # A C compiler.
adamc@1132 11989 LTCC=$lt_CC
adamc@1132 11990
adamc@1132 11991 # LTCC compiler flags.
adamc@1132 11992 LTCFLAGS=$lt_CFLAGS
adamc@1132 11993
adamc@1132 11994 # Take the output of nm and produce a listing of raw symbols and C names.
adamc@1132 11995 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
adamc@1132 11996
adamc@1132 11997 # Transform the output of nm in a proper C declaration.
adamc@1132 11998 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
adamc@1132 11999
adamc@1132 12000 # Transform the output of nm in a C name address pair.
adamc@1132 12001 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
adamc@1132 12002
adamc@1132 12003 # Transform the output of nm in a C name address pair when lib prefix is needed.
adamc@1132 12004 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
adamc@1132 12005
adamc@1132 12006 # The name of the directory that contains temporary libtool files.
adamc@1132 12007 objdir=$objdir
adamc@1132 12008
adamc@1132 12009 # Shell to use when invoking shell scripts.
adamc@1132 12010 SHELL=$lt_SHELL
adamc@1132 12011
adamc@1132 12012 # An echo program that does not interpret backslashes.
adamc@1132 12013 ECHO=$lt_ECHO
adamc@1132 12014
adamc@1132 12015 # Used to examine libraries when file_magic_cmd begins with "file".
adamc@1132 12016 MAGIC_CMD=$MAGIC_CMD
adamc@1132 12017
adamc@1132 12018 # Must we lock files when doing compilation?
adamc@1132 12019 need_locks=$lt_need_locks
adamc@1132 12020
adamc@1132 12021 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
adamc@1132 12022 DSYMUTIL=$lt_DSYMUTIL
adamc@1132 12023
adamc@1132 12024 # Tool to change global to local symbols on Mac OS X.
adamc@1132 12025 NMEDIT=$lt_NMEDIT
adamc@1132 12026
adamc@1132 12027 # Tool to manipulate fat objects and archives on Mac OS X.
adamc@1132 12028 LIPO=$lt_LIPO
adamc@1132 12029
adamc@1132 12030 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
adamc@1132 12031 OTOOL=$lt_OTOOL
adamc@1132 12032
adamc@1132 12033 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
adamc@1132 12034 OTOOL64=$lt_OTOOL64
adamc@1132 12035
adamc@1132 12036 # Old archive suffix (normally "a").
adamc@1132 12037 libext=$libext
adamc@1132 12038
adamc@1132 12039 # Shared library suffix (normally ".so").
adamc@1132 12040 shrext_cmds=$lt_shrext_cmds
adamc@1132 12041
adamc@1132 12042 # The commands to extract the exported symbol list from a shared archive.
adamc@1132 12043 extract_expsyms_cmds=$lt_extract_expsyms_cmds
adamc@1132 12044
adamc@1132 12045 # Variables whose values should be saved in libtool wrapper scripts and
adamc@1132 12046 # restored at link time.
adamc@1132 12047 variables_saved_for_relink=$lt_variables_saved_for_relink
adamc@1132 12048
adamc@1132 12049 # Do we need the "lib" prefix for modules?
adamc@1132 12050 need_lib_prefix=$need_lib_prefix
adamc@1132 12051
adamc@1132 12052 # Do we need a version for libraries?
adamc@1132 12053 need_version=$need_version
adamc@1132 12054
adamc@1132 12055 # Library versioning type.
adamc@1132 12056 version_type=$version_type
adamc@1132 12057
adamc@1132 12058 # Shared library runtime path variable.
adamc@1132 12059 runpath_var=$runpath_var
adamc@1132 12060
adamc@1132 12061 # Shared library path variable.
adamc@1132 12062 shlibpath_var=$shlibpath_var
adamc@1132 12063
adamc@1132 12064 # Is shlibpath searched before the hard-coded library search path?
adamc@1132 12065 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
adamc@1132 12066
adamc@1132 12067 # Format of library name prefix.
adamc@1132 12068 libname_spec=$lt_libname_spec
adamc@1132 12069
adamc@1132 12070 # List of archive names. First name is the real one, the rest are links.
adamc@1132 12071 # The last name is the one that the linker finds with -lNAME
adamc@1132 12072 library_names_spec=$lt_library_names_spec
adamc@1132 12073
adamc@1132 12074 # The coded name of the library, if different from the real name.
adamc@1132 12075 soname_spec=$lt_soname_spec
adamc@1132 12076
adamc@1132 12077 # Command to use after installation of a shared archive.
adamc@1132 12078 postinstall_cmds=$lt_postinstall_cmds
adamc@1132 12079
adamc@1132 12080 # Command to use after uninstallation of a shared archive.
adamc@1132 12081 postuninstall_cmds=$lt_postuninstall_cmds
adamc@1132 12082
adamc@1132 12083 # Commands used to finish a libtool library installation in a directory.
adamc@1132 12084 finish_cmds=$lt_finish_cmds
adamc@1132 12085
adamc@1132 12086 # As "finish_cmds", except a single script fragment to be evaled but
adamc@1132 12087 # not shown.
adamc@1132 12088 finish_eval=$lt_finish_eval
adamc@1132 12089
adamc@1132 12090 # Whether we should hardcode library paths into libraries.
adamc@1132 12091 hardcode_into_libs=$hardcode_into_libs
adamc@1132 12092
adamc@1132 12093 # Compile-time system search path for libraries.
adamc@1132 12094 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
adamc@1132 12095
adamc@1132 12096 # Run-time system search path for libraries.
adamc@1132 12097 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
adamc@1132 12098
adamc@1132 12099 # Whether dlopen is supported.
adamc@1132 12100 dlopen_support=$enable_dlopen
adamc@1132 12101
adamc@1132 12102 # Whether dlopen of programs is supported.
adamc@1132 12103 dlopen_self=$enable_dlopen_self
adamc@1132 12104
adamc@1132 12105 # Whether dlopen of statically linked programs is supported.
adamc@1132 12106 dlopen_self_static=$enable_dlopen_self_static
adamc@1132 12107
adamc@1132 12108 # Commands to strip libraries.
adamc@1132 12109 old_striplib=$lt_old_striplib
adamc@1132 12110 striplib=$lt_striplib
adamc@1132 12111
adamc@1132 12112
adamc@1132 12113 # The linker used to build libraries.
adamc@1132 12114 LD=$lt_LD
adamc@1132 12115
adamc@1132 12116 # Commands used to build an old-style archive.
adamc@1132 12117 old_archive_cmds=$lt_old_archive_cmds
adamc@1132 12118
adamc@1132 12119 # A language specific compiler.
adamc@1132 12120 CC=$lt_compiler
adamc@1132 12121
adamc@1132 12122 # Is the compiler the GNU compiler?
adamc@1132 12123 with_gcc=$GCC
adamc@1132 12124
adamc@1132 12125 # Compiler flag to turn off builtin functions.
adamc@1132 12126 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
adamc@1132 12127
adamc@1132 12128 # How to pass a linker flag through the compiler.
adamc@1132 12129 wl=$lt_lt_prog_compiler_wl
adamc@1132 12130
adamc@1132 12131 # Additional compiler flags for building library objects.
adamc@1132 12132 pic_flag=$lt_lt_prog_compiler_pic
adamc@1132 12133
adamc@1132 12134 # Compiler flag to prevent dynamic linking.
adamc@1132 12135 link_static_flag=$lt_lt_prog_compiler_static
adamc@1132 12136
adamc@1132 12137 # Does compiler simultaneously support -c and -o options?
adamc@1132 12138 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
adamc@1132 12139
adamc@1132 12140 # Whether or not to add -lc for building shared libraries.
adamc@1132 12141 build_libtool_need_lc=$archive_cmds_need_lc
adamc@1132 12142
adamc@1132 12143 # Whether or not to disallow shared libs when runtime libs are static.
adamc@1132 12144 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
adamc@1132 12145
adamc@1132 12146 # Compiler flag to allow reflexive dlopens.
adamc@1132 12147 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
adamc@1132 12148
adamc@1132 12149 # Compiler flag to generate shared objects directly from archives.
adamc@1132 12150 whole_archive_flag_spec=$lt_whole_archive_flag_spec
adamc@1132 12151
adamc@1132 12152 # Whether the compiler copes with passing no objects directly.
adamc@1132 12153 compiler_needs_object=$lt_compiler_needs_object
adamc@1132 12154
adamc@1132 12155 # Create an old-style archive from a shared archive.
adamc@1132 12156 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
adamc@1132 12157
adamc@1132 12158 # Create a temporary old-style archive to link instead of a shared archive.
adamc@1132 12159 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
adamc@1132 12160
adamc@1132 12161 # Commands used to build a shared archive.
adamc@1132 12162 archive_cmds=$lt_archive_cmds
adamc@1132 12163 archive_expsym_cmds=$lt_archive_expsym_cmds
adamc@1132 12164
adamc@1132 12165 # Commands used to build a loadable module if different from building
adamc@1132 12166 # a shared archive.
adamc@1132 12167 module_cmds=$lt_module_cmds
adamc@1132 12168 module_expsym_cmds=$lt_module_expsym_cmds
adamc@1132 12169
adamc@1132 12170 # Whether we are building with GNU ld or not.
adamc@1132 12171 with_gnu_ld=$lt_with_gnu_ld
adamc@1132 12172
adamc@1132 12173 # Flag that allows shared libraries with undefined symbols to be built.
adamc@1132 12174 allow_undefined_flag=$lt_allow_undefined_flag
adamc@1132 12175
adamc@1132 12176 # Flag that enforces no undefined symbols.
adamc@1132 12177 no_undefined_flag=$lt_no_undefined_flag
adamc@1132 12178
adamc@1132 12179 # Flag to hardcode \$libdir into a binary during linking.
adamc@1132 12180 # This must work even if \$libdir does not exist
adamc@1132 12181 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
adamc@1132 12182
adamc@1132 12183 # If ld is used when linking, flag to hardcode \$libdir into a binary
adamc@1132 12184 # during linking. This must work even if \$libdir does not exist.
adamc@1132 12185 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
adamc@1132 12186
adamc@1132 12187 # Whether we need a single "-rpath" flag with a separated argument.
adamc@1132 12188 hardcode_libdir_separator=$lt_hardcode_libdir_separator
adamc@1132 12189
adamc@1132 12190 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
adamc@1132 12191 # DIR into the resulting binary.
adamc@1132 12192 hardcode_direct=$hardcode_direct
adamc@1132 12193
adamc@1132 12194 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
adamc@1132 12195 # DIR into the resulting binary and the resulting library dependency is
adamc@1132 12196 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
adamc@1132 12197 # library is relocated.
adamc@1132 12198 hardcode_direct_absolute=$hardcode_direct_absolute
adamc@1132 12199
adamc@1132 12200 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
adamc@1132 12201 # into the resulting binary.
adamc@1132 12202 hardcode_minus_L=$hardcode_minus_L
adamc@1132 12203
adamc@1132 12204 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
adamc@1132 12205 # into the resulting binary.
adamc@1132 12206 hardcode_shlibpath_var=$hardcode_shlibpath_var
adamc@1132 12207
adamc@1132 12208 # Set to "yes" if building a shared library automatically hardcodes DIR
adamc@1132 12209 # into the library and all subsequent libraries and executables linked
adamc@1132 12210 # against it.
adamc@1132 12211 hardcode_automatic=$hardcode_automatic
adamc@1132 12212
adamc@1132 12213 # Set to yes if linker adds runtime paths of dependent libraries
adamc@1132 12214 # to runtime path list.
adamc@1132 12215 inherit_rpath=$inherit_rpath
adamc@1132 12216
adamc@1132 12217 # Whether libtool must link a program against all its dependency libraries.
adamc@1132 12218 link_all_deplibs=$link_all_deplibs
adamc@1132 12219
adamc@1132 12220 # Fix the shell variable \$srcfile for the compiler.
adamc@1132 12221 fix_srcfile_path=$lt_fix_srcfile_path
adamc@1132 12222
adamc@1132 12223 # Set to "yes" if exported symbols are required.
adamc@1132 12224 always_export_symbols=$always_export_symbols
adamc@1132 12225
adamc@1132 12226 # The commands to list exported symbols.
adamc@1132 12227 export_symbols_cmds=$lt_export_symbols_cmds
adamc@1132 12228
adamc@1132 12229 # Symbols that should not be listed in the preloaded symbols.
adamc@1132 12230 exclude_expsyms=$lt_exclude_expsyms
adamc@1132 12231
adamc@1132 12232 # Symbols that must always be exported.
adamc@1132 12233 include_expsyms=$lt_include_expsyms
adamc@1132 12234
adamc@1132 12235 # Commands necessary for linking programs (against libraries) with templates.
adamc@1132 12236 prelink_cmds=$lt_prelink_cmds
adamc@1132 12237
adamc@1132 12238 # Specify filename containing input files.
adamc@1132 12239 file_list_spec=$lt_file_list_spec
adamc@1132 12240
adamc@1132 12241 # How to hardcode a shared library path into an executable.
adamc@1132 12242 hardcode_action=$hardcode_action
adamc@1132 12243
adamc@1132 12244 # ### END LIBTOOL CONFIG
adamc@1132 12245
adamc@1132 12246 _LT_EOF
adamc@1132 12247
adamc@1132 12248 case $host_os in
adamc@1132 12249 aix3*)
adamc@1132 12250 cat <<\_LT_EOF >> "$cfgfile"
adamc@1132 12251 # AIX sometimes has problems with the GCC collect2 program. For some
adamc@1132 12252 # reason, if we set the COLLECT_NAMES environment variable, the problems
adamc@1132 12253 # vanish in a puff of smoke.
adamc@1132 12254 if test "X${COLLECT_NAMES+set}" != Xset; then
adamc@1132 12255 COLLECT_NAMES=
adamc@1132 12256 export COLLECT_NAMES
adamc@1132 12257 fi
adamc@1132 12258 _LT_EOF
adamc@1132 12259 ;;
adamc@1132 12260 esac
adamc@1132 12261
adamc@1132 12262
adamc@1132 12263 ltmain="$ac_aux_dir/ltmain.sh"
adamc@1132 12264
adamc@1132 12265
adamc@1132 12266 # We use sed instead of cat because bash on DJGPP gets confused if
adamc@1132 12267 # if finds mixed CR/LF and LF-only lines. Since sed operates in
adamc@1132 12268 # text mode, it properly converts lines to CR/LF. This bash problem
adamc@1132 12269 # is reportedly fixed, but why not run on old versions too?
adamc@1132 12270 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
adamc@1132 12271 || (rm -f "$cfgfile"; exit 1)
adamc@1132 12272
adamc@1132 12273 case $xsi_shell in
adamc@1132 12274 yes)
adamc@1132 12275 cat << \_LT_EOF >> "$cfgfile"
adamc@1132 12276
adamc@1132 12277 # func_dirname file append nondir_replacement
adamc@1132 12278 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
adamc@1132 12279 # otherwise set result to NONDIR_REPLACEMENT.
adamc@1132 12280 func_dirname ()
adamc@1132 12281 {
adamc@1132 12282 case ${1} in
adamc@1132 12283 */*) func_dirname_result="${1%/*}${2}" ;;
adamc@1132 12284 * ) func_dirname_result="${3}" ;;
adamc@1132 12285 esac
adamc@1132 12286 }
adamc@1132 12287
adamc@1132 12288 # func_basename file
adamc@1132 12289 func_basename ()
adamc@1132 12290 {
adamc@1132 12291 func_basename_result="${1##*/}"
adamc@1132 12292 }
adamc@1132 12293
adamc@1132 12294 # func_dirname_and_basename file append nondir_replacement
adamc@1132 12295 # perform func_basename and func_dirname in a single function
adamc@1132 12296 # call:
adamc@1132 12297 # dirname: Compute the dirname of FILE. If nonempty,
adamc@1132 12298 # add APPEND to the result, otherwise set result
adamc@1132 12299 # to NONDIR_REPLACEMENT.
adamc@1132 12300 # value returned in "$func_dirname_result"
adamc@1132 12301 # basename: Compute filename of FILE.
adamc@1132 12302 # value retuned in "$func_basename_result"
adamc@1132 12303 # Implementation must be kept synchronized with func_dirname
adamc@1132 12304 # and func_basename. For efficiency, we do not delegate to
adamc@1132 12305 # those functions but instead duplicate the functionality here.
adamc@1132 12306 func_dirname_and_basename ()
adamc@1132 12307 {
adamc@1132 12308 case ${1} in
adamc@1132 12309 */*) func_dirname_result="${1%/*}${2}" ;;
adamc@1132 12310 * ) func_dirname_result="${3}" ;;
adamc@1132 12311 esac
adamc@1132 12312 func_basename_result="${1##*/}"
adamc@1132 12313 }
adamc@1132 12314
adamc@1132 12315 # func_stripname prefix suffix name
adamc@1132 12316 # strip PREFIX and SUFFIX off of NAME.
adamc@1132 12317 # PREFIX and SUFFIX must not contain globbing or regex special
adamc@1132 12318 # characters, hashes, percent signs, but SUFFIX may contain a leading
adamc@1132 12319 # dot (in which case that matches only a dot).
adamc@1132 12320 func_stripname ()
adamc@1132 12321 {
adamc@1132 12322 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
adamc@1132 12323 # positional parameters, so assign one to ordinary parameter first.
adamc@1132 12324 func_stripname_result=${3}
adamc@1132 12325 func_stripname_result=${func_stripname_result#"${1}"}
adamc@1132 12326 func_stripname_result=${func_stripname_result%"${2}"}
adamc@1132 12327 }
adamc@1132 12328
adamc@1132 12329 # func_opt_split
adamc@1132 12330 func_opt_split ()
adamc@1132 12331 {
adamc@1132 12332 func_opt_split_opt=${1%%=*}
adamc@1132 12333 func_opt_split_arg=${1#*=}
adamc@1132 12334 }
adamc@1132 12335
adamc@1132 12336 # func_lo2o object
adamc@1132 12337 func_lo2o ()
adamc@1132 12338 {
adamc@1132 12339 case ${1} in
adamc@1132 12340 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
adamc@1132 12341 *) func_lo2o_result=${1} ;;
adamc@1132 12342 esac
adamc@1132 12343 }
adamc@1132 12344
adamc@1132 12345 # func_xform libobj-or-source
adamc@1132 12346 func_xform ()
adamc@1132 12347 {
adamc@1132 12348 func_xform_result=${1%.*}.lo
adamc@1132 12349 }
adamc@1132 12350
adamc@1132 12351 # func_arith arithmetic-term...
adamc@1132 12352 func_arith ()
adamc@1132 12353 {
adamc@1132 12354 func_arith_result=$(( $* ))
adamc@1132 12355 }
adamc@1132 12356
adamc@1132 12357 # func_len string
adamc@1132 12358 # STRING may not start with a hyphen.
adamc@1132 12359 func_len ()
adamc@1132 12360 {
adamc@1132 12361 func_len_result=${#1}
adamc@1132 12362 }
adamc@1132 12363
adamc@1132 12364 _LT_EOF
adamc@1132 12365 ;;
adamc@1132 12366 *) # Bourne compatible functions.
adamc@1132 12367 cat << \_LT_EOF >> "$cfgfile"
adamc@1132 12368
adamc@1132 12369 # func_dirname file append nondir_replacement
adamc@1132 12370 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
adamc@1132 12371 # otherwise set result to NONDIR_REPLACEMENT.
adamc@1132 12372 func_dirname ()
adamc@1132 12373 {
adamc@1132 12374 # Extract subdirectory from the argument.
adamc@1132 12375 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
adamc@1132 12376 if test "X$func_dirname_result" = "X${1}"; then
adamc@1132 12377 func_dirname_result="${3}"
adamc@1132 12378 else
adamc@1132 12379 func_dirname_result="$func_dirname_result${2}"
adamc@1132 12380 fi
adamc@1132 12381 }
adamc@1132 12382
adamc@1132 12383 # func_basename file
adamc@1132 12384 func_basename ()
adamc@1132 12385 {
adamc@1132 12386 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
adamc@1132 12387 }
adamc@1132 12388
adamc@1132 12389
adamc@1132 12390 # func_stripname prefix suffix name
adamc@1132 12391 # strip PREFIX and SUFFIX off of NAME.
adamc@1132 12392 # PREFIX and SUFFIX must not contain globbing or regex special
adamc@1132 12393 # characters, hashes, percent signs, but SUFFIX may contain a leading
adamc@1132 12394 # dot (in which case that matches only a dot).
adamc@1132 12395 # func_strip_suffix prefix name
adamc@1132 12396 func_stripname ()
adamc@1132 12397 {
adamc@1132 12398 case ${2} in
adamc@1132 12399 .*) func_stripname_result=`$ECHO "X${3}" \
adamc@1132 12400 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
adamc@1132 12401 *) func_stripname_result=`$ECHO "X${3}" \
adamc@1132 12402 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
adamc@1132 12403 esac
adamc@1132 12404 }
adamc@1132 12405
adamc@1132 12406 # sed scripts:
adamc@1132 12407 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
adamc@1132 12408 my_sed_long_arg='1s/^-[^=]*=//'
adamc@1132 12409
adamc@1132 12410 # func_opt_split
adamc@1132 12411 func_opt_split ()
adamc@1132 12412 {
adamc@1132 12413 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
adamc@1132 12414 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
adamc@1132 12415 }
adamc@1132 12416
adamc@1132 12417 # func_lo2o object
adamc@1132 12418 func_lo2o ()
adamc@1132 12419 {
adamc@1132 12420 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
adamc@1132 12421 }
adamc@1132 12422
adamc@1132 12423 # func_xform libobj-or-source
adamc@1132 12424 func_xform ()
adamc@1132 12425 {
adamc@1132 12426 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
adamc@1132 12427 }
adamc@1132 12428
adamc@1132 12429 # func_arith arithmetic-term...
adamc@1132 12430 func_arith ()
adamc@1132 12431 {
adamc@1132 12432 func_arith_result=`expr "$@"`
adamc@1132 12433 }
adamc@1132 12434
adamc@1132 12435 # func_len string
adamc@1132 12436 # STRING may not start with a hyphen.
adamc@1132 12437 func_len ()
adamc@1132 12438 {
adamc@1132 12439 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
adamc@1132 12440 }
adamc@1132 12441
adamc@1132 12442 _LT_EOF
adamc@1132 12443 esac
adamc@1132 12444
adamc@1132 12445 case $lt_shell_append in
adamc@1132 12446 yes)
adamc@1132 12447 cat << \_LT_EOF >> "$cfgfile"
adamc@1132 12448
adamc@1132 12449 # func_append var value
adamc@1132 12450 # Append VALUE to the end of shell variable VAR.
adamc@1132 12451 func_append ()
adamc@1132 12452 {
adamc@1132 12453 eval "$1+=\$2"
adamc@1132 12454 }
adamc@1132 12455 _LT_EOF
adamc@1132 12456 ;;
adamc@1132 12457 *)
adamc@1132 12458 cat << \_LT_EOF >> "$cfgfile"
adamc@1132 12459
adamc@1132 12460 # func_append var value
adamc@1132 12461 # Append VALUE to the end of shell variable VAR.
adamc@1132 12462 func_append ()
adamc@1132 12463 {
adamc@1132 12464 eval "$1=\$$1\$2"
adamc@1132 12465 }
adamc@1132 12466
adamc@1132 12467 _LT_EOF
adamc@1132 12468 ;;
adamc@1132 12469 esac
adamc@1132 12470
adamc@1132 12471
adamc@1132 12472 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
adamc@1132 12473 || (rm -f "$cfgfile"; exit 1)
adamc@1132 12474
adamc@1132 12475 mv -f "$cfgfile" "$ofile" ||
adamc@1132 12476 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
adamc@1132 12477 chmod +x "$ofile"
adamc@1132 12478
adamc@1132 12479 ;;
adamc@378 12480
adamc@378 12481 esac
adamc@378 12482 done # for ac_tag
adamc@378 12483
adamc@378 12484
adamc@1095 12485 as_fn_exit 0
adamc@378 12486 _ACEOF
adamc@378 12487 ac_clean_files=$ac_clean_files_save
adamc@378 12488
adamc@1095 12489 test $ac_write_fail = 0 ||
adamc@1095 12490 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
adamc@1095 12491
adamc@378 12492
adamc@378 12493 # configure is writing to config.log, and then calls config.status.
adamc@378 12494 # config.status does its own redirection, appending to config.log.
adamc@378 12495 # Unfortunately, on DOS this fails, as config.log is still kept open
adamc@378 12496 # by configure, so config.status won't be able to write to it; its
adamc@378 12497 # output is simply discarded. So we exec the FD to /dev/null,
adamc@378 12498 # effectively closing config.log, so it can be properly (re)opened and
adamc@378 12499 # appended to by config.status. When coming back to configure, we
adamc@378 12500 # need to make the FD available again.
adamc@378 12501 if test "$no_create" != yes; then
adamc@378 12502 ac_cs_success=:
adamc@378 12503 ac_config_status_args=
adamc@378 12504 test "$silent" = yes &&
adamc@378 12505 ac_config_status_args="$ac_config_status_args --quiet"
adamc@378 12506 exec 5>/dev/null
adamc@378 12507 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
adamc@378 12508 exec 5>>config.log
adamc@378 12509 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
adamc@378 12510 # would make configure fail if this is the last instruction.
adamc@1095 12511 $ac_cs_success || as_fn_exit $?
adamc@1095 12512 fi
adamc@1095 12513 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
adamc@1095 12514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
adamc@1095 12515 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
adamc@378 12516 fi
adamc@378 12517
adamc@378 12518
adamc@378 12519 cat <<EOF
adamc@378 12520
adamc@378 12521 Ur/Web configuration:
adamc@378 12522 bin directory: BIN $BIN
adamc@378 12523 lib directory: LIB $LIB
adamc@378 12524 include directory: INCLUDE $INCLUDE
adamc@378 12525 site-lisp directory: SITELISP $SITELISP
adamc@435 12526 Extra GCC args: GCCARGS $GCCARGS
adamc@378 12527 EOF